{"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ContactHeaderWidget extends FrameLayout implements View . OnClickList \n public void bindFromEmail ( String emailAddress ) { \n Cursor c = null ; \n try { \n - c = mContentResolver . query ( Uri . withAppendedPath ( \n - RawContacts . CONTENT_FILTER_EMAIL_URI , Uri . encode ( emailAddress ) ) , \n - EMAIL_LOOKUP_PROJECTION , null , null , null ) ; \n + c = mContentResolver . query ( Uri . withAppendedPath ( Email . CONTENT_FILTER_EMAIL_URI , Uri \n + . encode ( emailAddress ) ) , EMAIL_LOOKUP_PROJECTION , null , null , null ) ; \n if ( c != null && c . moveToFirst ( ) ) { \n long contactId = c . getLong ( EMAIL_LOOKUP_CONTACT_ID_COLUMN_INDEX ) ; \n bindFromContactId ( contactId ) ;", "msg_token": "Don t use deprecated API in contact header widget"} {"diff": " public class RecordProjectOperator \n Page page = pageBuilder . build ( ) ; \n pageBuilder . reset ( ) ; \n \n - operatorContext . recordGeneratedInput ( page . getDataSize ( ) , page . getPositionCount ( ) ) ; \n - \n return page ; \n } \n }", "msg_token": "Don t double count bytes and rows in RecordProjectOperator"} {"diff": " public class JSONPropertySupport { \n public static < T > T getValueFromJSON ( AbstractModel model , JSONProperty < T > property , Type javaType ) { \n if ( ! model . hasTransitory ( property . getName ( ) ) ) { \n T data = null ; \n - if ( model . containsNonNullValue ( property ) ) { \n - String value = model . get ( property ) ; \n + String value = model . get ( property ) ; SINGLE \n + if ( value != null ) { \n try { \n if ( MAPPER == null ) { \n throw new NullPointerException ( STRING0", "msg_token": "JSONProperty getter should throw if model doesn t have property the same as all other properties do"} {"diff": " public abstract class PsiElementListCellRenderer < T extends PsiElement > extends J \n \n if ( nameAttributes == null ) nameAttributes = new SimpleTextAttributes ( Font . PLAIN , color ) ; \n \n + assert name != null : STRING0 + element ; \n append ( name , nameAttributes ) ; \n setIcon ( PsiElementListCellRenderer . this . getIcon ( element ) ) ;", "msg_token": "implement getPresentableText for alias statements"} {"diff": " public class FirstUsageWizardFragment extends Fragment implements OsmAndLocation \n view . findViewById ( R . id . map_downloading_action_button ) . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View v ) { \n - showOnMap ( new LatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) , NUMBER0 ) ; \n + if ( location != null ) { \n + showOnMap ( new LatLon ( location . getLatitude ( ) , location . getLongitude ( ) ) , NUMBER0 ) ; \n + } \n } \n } ) ; \n view . findViewById ( R . id . map_downloading_card ) . setVisibility ( View . VISIBLE ) ;", "msg_token": "Fix first usage wizard"} {"diff": " public class Ls extends NeoApp \n displayProperties = true ; \n displayRelationships = true ; \n } \n - Node node = this . getCurrentNode ( session ) ; \n + \n + Node node = null ; \n + if ( parser . arguments ( ) . isEmpty ( ) ) \n + { \n + node = this . getCurrentNode ( session ) ; \n + } \n + else \n + { \n + node = this . getNodeById ( \n + Long . parseLong ( parser . arguments ( ) . get ( NUMBER0 ) ) ) ; \n + } \n + \n this . displayProperties ( node , out , displayProperties , displayValues , \n verbose ) ; \n this . displayRelationships ( parser , node , out , displayRelationships ) ;", "msg_token": "Added ls node id possibility"} {"diff": " public class ResolverActivity extends Activity implements AdapterView . OnItemClic \n } \n \n final Intent intent = intentForDisplayResolveInfo ( dri ) ; \n - onIntentSelected ( dri . ri , intent , mAlwaysUseOption ) ; \n + onIntentSelected ( dri . ri , intent , false ) ; \n finish ( ) ; \n } \n } ) ;", "msg_token": "Never set Work or Personal apps as prefered activities"} {"diff": " public class TaskController extends AbstractController { \n COMMENT \n public Cursor getBackupTaskListCursor ( ) { \n return database . query ( tasksTable , TaskModelForXml . FIELD_LIST , \n - AbstractTaskModel . PROGRESS_PERCENTAGE + STRING0 + \n - AbstractTaskModel . COMPLETE_PERCENTAGE , null , null , null , \n + null , null , null , null , \n null , null ) ; \n }", "msg_token": "Legacy backup now backs up completed tasks"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class MUCRoomHistory { \n } \n } \n \n + SINGLE \n + if ( ( packet . getSubject ( ) == null || STRING0 . equals ( packet . getSubject ( ) . trim ( ) ) ) && \n + ( packet . getBody ( ) == null || STRING0 . equals ( packet . getBody ( ) . trim ( ) ) ) ) { \n + return ; \n + } \n + \n Message packetToAdd = packet . createCopy ( ) ; \n \n SINGLE", "msg_token": "Ignore messages with no body and no subject"} {"diff": " public class MapActivity extends AccessibleActivity implements DownloadEvents , \n System . err . println ( STRING0 + ( System . currentTimeMillis ( ) - tm ) + STRING1 ) ; \n } \n \n - if ( ! permissionDone && ! app . getAppInitializer ( ) . isFirstTime ( ) ) { \n + if ( ! permissionDone ) { \n if ( ! permissionAsked ) { \n if ( app . isExternalStorageDirectoryReadOnly ( ) \n && getSupportFragmentManager ( ) . findFragmentByTag ( DataStoragePlaceDialogFragment . TAG ) == null ) {", "msg_token": "Revert Skip permission and storage dialog first time"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added comment to Javadoc for PasswordComparisonAuthenticator to indicate that it won t work with SSHA passwords"} {"diff": " public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Single < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix delay methods typos in documenation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Replace p with p in a Javadoc comment"} {"diff": " public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor { \n if ( labelName != null ) { \n LabelResolver . LabeledReceiverResolutionResult resolutionResult = \n LabelResolver . INSTANCE . resolveThisOrSuperLabel ( expression , context , Name . identifier ( labelName ) ) ; \n - if ( onlyClassReceivers && resolutionResult . success ( ) ) { \n - if ( ! isDeclaredInClass ( resolutionResult . getReceiverParameterDescriptor ( ) ) ) { \n + if ( resolutionResult . success ( ) ) { \n + ReceiverParameterDescriptor receiverParameterDescriptor = resolutionResult . getReceiverParameterDescriptor ( ) ; \n + recordThisOrSuperCallInTraceAndCallExtension ( context , receiverParameterDescriptor , expression ) ; \n + if ( onlyClassReceivers && ! isDeclaredInClass ( receiverParameterDescriptor ) ) { \n return LabelResolver . LabeledReceiverResolutionResult . labelResolutionSuccess ( NO_RECEIVER_PARAMETER ) ; \n } \n } \n public class BasicExpressionTypingVisitor extends ExpressionTypingVisitor { \n if ( result != NO_RECEIVER_PARAMETER ) { \n context . trace . record ( REFERENCE_TARGET , expression . getInstanceReference ( ) , result . getContainingDeclaration ( ) ) ; \n recordThisOrSuperCallInTraceAndCallExtension ( context , result , expression ) ; \n - \n } \n return LabelResolver . LabeledReceiverResolutionResult . labelResolutionSuccess ( result ) ; \n }", "msg_token": "Record resolved calls for labeled this expressions"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n public class Classifier", "msg_token": "Add missing import"} {"diff": " public class ArgDelegationActivator \n COMMENT \n COMMENT \n COMMENT \n - public void start ( BundleContext context ) throws Exception \n + public void start ( BundleContext bc ) throws Exception \n { \n bundleContext = bc ; \n delegationPeer = new ArgDelegationPeerImpl ( bc ) ;", "msg_token": "Fixes a wrong var name argh i am getting too distracted"} {"diff": " public class State implements Cloneable { \n return stateData . serviceDay ; \n } \n \n - public void setServiceDay ( ServiceDay sd ) { \n - stateData . serviceDay = sd ; \n - } \n - \n public Set < String > getBikeRentalNetworks ( ) { \n return stateData . bikeRentalNetworks ; \n }", "msg_token": "Remove setter from State"} {"diff": " public class ContributionListPanel extends JPanel implements Scrollable , Contrib \n boolean isFlagged = ContributionManager . isFlaggedForDeletion ( contrib ) ; \n if ( isFlagged ) { \n description . append ( ContributionListPanel . DELETION_MESSAGE ) ; \n - } else if ( contrib . getSentence ( ) != null ) { \n - String sentence = ContributionListPanel . sanitizeHtmlTags ( contrib . getSentence ( ) ) ; \n - sentence = ContributionListPanel . toHtmlLinks ( sentence ) ; \n + } else { \n + String sentence = contrib . getSentence ( ) ; \n + \n + if ( sentence == null || sentence . isEmpty ( ) ) { \n + sentence = STRING0 ; \n + } else { \n + sentence = ContributionListPanel . sanitizeHtmlTags ( sentence ) ; \n + sentence = ContributionListPanel . toHtmlLinks ( sentence ) ; \n + } \n + \n description . append ( sentence ) ; \n }", "msg_token": "Added Description unavailable"} {"diff": " public class PyPackageManager { \n runPythonHelper ( PACKAGING_TOOL , args ) ; \n } \n \n + public void install ( @ notnull PyRequirement requirement ) throws PyExternalProcessException { \n + myPackagesCache = null ; \n + final List < String > args = new ArrayList < String > ( ) ; \n + args . add ( STRING0 ) ; \n + args . add ( requirement . toString ( ) ) ; \n + runPythonHelper ( PACKAGING_TOOL , args ) ; \n + } \n + \n + @ deprecated \n public void install ( @ notnull PyPackage pkg ) throws PyExternalProcessException { \n SINGLE \n myPackagesCache = null ;", "msg_token": "added checkbox for package version"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix compilation failures"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n public abstract class SupposeThreadHandler extends BaseAnnotationHandler < EComponentHolder > { \n \n public SupposeThreadHandler ( Class < ? > targetClass , ProcessingEnvironment processingEnvironment ) { \n public abstract class SupposeThreadHandler extends BaseAnnotationHandler < ECompon \n protected void validate ( Element element , AnnotationElements validatedElements , IsValid valid ) { \n validatorHelper . enclosingElementHasEnhancedComponentAnnotation ( element , validatedElements , valid ) ; \n validatorHelper . isNotPrivate ( element , valid ) ; \n + validatorHelper . isNotFinal ( element , valid ) ; \n } \n \n }", "msg_token": "Fix validation of SupposeXXX"} {"diff": " public class RestrictionsManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed a typo in convertRestrictionsToBundle JavaDoc"} {"diff": " public class AntScriptGenerator { \n for ( int i = NUMBER0 ; i < libsDirs . size ( ) ; i ++ ) { \n pack . append ( STRING0 + libsDirs . get ( i ) + STRING1 + sharedLibFiles . get ( i ) + STRING2 ) ; \n } \n + \n + if ( config . sharedLibs != null ) { \n + for ( String sharedLib : config . sharedLibs ) { \n + pack . append ( STRING0 + sharedLib + STRING2 ) ; \n + } \n + } \n \n template = template . replace ( STRING3 , config . sharedLibName + STRING4 ) ; \n template = template . replace ( STRING5 , clean . toString ( ) ) ; \n public class BuildConfig { \n public final FileDescriptor libsDir ; \n COMMENT \n public final FileDescriptor jniDir ; \n + COMMENT \n + public String [ ] sharedLibs ; \n \n COMMENT \n COMMENT", "msg_token": "added shared libs linking to jnigen"} {"diff": " public class XMPPTCPConnection extends XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n - void streamCompressionDenied ( ) { \n - synchronized ( this ) { \n - this . notify ( ) ; \n - } \n + synchronized void streamCompressionDenied ( ) { \n + this . notify ( ) ; \n } \n \n COMMENT", "msg_token": "Replace sync block with sync method"} {"diff": " public class NativeApiPatchingTestCase extends AbstractPatchingTestCase { \n } \n \n private ModelControllerClient getControllerClient ( ) throws UnknownHostException { \n - return ModelControllerClient . Factory . create ( System . getProperty ( STRING0 , STRING1 ) , NUMBER0 ) ; \n + return ModelControllerClient . Factory . create ( STRING2 , System . getProperty ( STRING0 , STRING1 ) , NUMBER1 ) ; \n } \n \n }", "msg_token": "Convert test to http remoting"} {"diff": " class IRFactory { \n \n private boolean validAssignmentTarget ( Node target ) { \n switch ( target . getType ( ) ) { \n + case Token . CAST : SINGLE \n case Token . NAME : \n case Token . GETPROP : \n case Token . GETELEM : \n public class IntegrationTest extends IntegrationTestCase { \n STRING0 ) ; \n } \n \n + public void testLhsCast ( ) { \n + CompilerOptions options = createCompilerOptions ( ) ; \n + test ( \n + options , \n + STRING1 + \n + STRING2 , \n + STRING1 + \n + STRING3 ) ; \n + } \n + \n public void testRenamePrefix ( ) { \n String code = STRING4 ; \n CompilerOptions options = createCompilerOptions ( ) ;", "msg_token": "fix a cryptic warning due to an equally cryptic cast"} {"diff": " public class ReportGenerator implements Job { \n try { \n generateReports ( context . getJobDetail ( ) . getDescription ( ) , context . getJobDetail ( ) . getJobDataMap ( ) ) ; \n } catch ( Exception e ) { \n - e . printStackTrace ( ) ; \n - LOGGER . error ( e . toString ( ) ) ; \n + LOGGER . error ( STRING0 , e ) ; \n } \n } \n \n public class ReportGenerator implements Job { \n reportEmailSender . emailReport ( ) ; \n \n } catch ( IOException e ) { \n - e . printStackTrace ( ) ; \n - LOGGER . error ( e . toString ( ) ) ; \n + LOGGER . error ( STRING1 , e ) ; \n } \n }", "msg_token": "Add support for ratio of metrics to thirdeye reporting"} {"diff": " public class PVector { \n return this . x * x + this . y * y + this . z * z ; \n } \n \n + \n + static public float dot ( PVector v1 , PVector v2 ) { \n + return v1 . x * v2 . x + v1 . y * v2 . y + v1 . z * v2 . z ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Added static dot PVector v1 PVector v2 to PVector"} {"diff": " public class LogView extends Request { \n } \n \n private String getOutputLogStem ( ) { \n - String pattern = STRING0 ; \n + String pattern = STRING1 ; \n SimpleDateFormat formatter = new SimpleDateFormat ( pattern ) ; \n String now = formatter . format ( new Date ( ) ) ; \n \n - return STRING2 + now ; \n + return STRING3 + now ; \n } \n \n private byte [ ] zipLogs ( byte [ ] [ ] results , String topDir ) throws IOException {", "msg_token": "Tweak log file stem name to include full year"} {"diff": " public class GeneralConfigurationForm \n historySizeSpinner . setEnabled ( false ) ; \n } \n \n + if ( ! ConfigurationManager . isHistoryShown ( ) ) \n + { \n + historySizeSpinner . setEnabled ( false ) ; \n + } \n + \n sendMessageComboBox . setSelectedItem ( \n ConfigurationManager . getSendMessageCommand ( ) ) ;", "msg_token": "Disable chat history size box if the Show history checkbox is false"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class SetColumnNames extends Request { \n @ override protected Response serve ( ) { \n ValueArray tgt = _tgtKey . value ( ) ; \n tgt . setColumnNames ( _srcKey . value ( ) . colNames ( ) ) ; \n + SINGLE \n + SINGLE \n + Futures fs = new Futures ( ) ; \n + DKV . put ( tgt . _key , tgt , fs ) ; \n + fs . blockForPending ( ) ; \n return Inspect . redirect ( new JsonObject ( ) , tgt . _key ) ; \n } \n public static String link ( Key k , String s ) {", "msg_token": "Fix header names not getting written back"} {"diff": " public enum ActiveThreadCountErrorType { \n UNSUPPORTED_VERSION ( ( short ) NUMBER0 , STRING0 , StreamCode . TYPE_UNSUPPORT . name ( ) ) , \n CLUSTER_OPTION_NOT_SET ( ( short ) NUMBER1 , STRING1 , StreamCode . CONNECTION_UNSUPPORT . name ( ) ) , \n \n + TIMEOUT ( ( short ) NUMBER2 , STRING2 , TRouteResult . TIMEOUT . name ( ) ) , \n + \n NOT_FOUND ( ( short ) - NUMBER3 , STRING3 , StreamCode . CONNECTION_NOT_FOUND . name ( ) ) , \n CLUSTER_CHANNEL_CLOSED ( ( short ) - NUMBER3 , STRING4 , StreamCode . STATE_CLOSED . name ( ) ) , \n - TIMEOUT ( ( short ) - NUMBER3 , STRING2 , TRouteResult . TIMEOUT . name ( ) ) , \n PINPOINT_INTERNAL_ERROR ( ( short ) - NUMBER3 , STRING5 ) ; \n \n private final static Map < String , ActiveThreadCountErrorType > CODE_MAP = Collections . unmodifiableMap ( initializeCodeMapping ( ) ) ;", "msg_token": "Trace current active requests info"} {"diff": " public class PlanUpdateService extends Service { \n context . startService ( intent ) ; \n } \n \n + public static void stopService ( Context context ) { \n + if ( context == null ) return ; \n + \n + Intent intent = new Intent ( context , PlanUpdateService . class ) ; \n + context . stopService ( intent ) ; \n + } \n + \n @ override \n public IBinder onBind ( Intent intent ) { \n return null ; \n public class PlansActivity extends AppCompatActivity { \n } ) ; \n } \n \n + @ override \n + protected void onDestroy ( ) { \n + PlanUpdateService . stopService ( this ) ; \n + super . onDestroy ( ) ; \n + } \n + \n private void updatePurchaseUI ( int position ) { \n Fragment fragment = getPageAdapter ( ) . getItem ( position ) ; \n if ( ! ( fragment instanceof PlanFragment ) ) {", "msg_token": "Stop service when activity is destroyed"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class BasicAction extends DumbAwareAction { \n SINGLE \n \n presentation . setEnabled ( enabled ) ; \n - presentation . setVisible ( enabled ) ; \n + if ( ActionPlaces . isPopupPlace ( e . getPlace ( ) ) ) { \n + presentation . setVisible ( enabled ) ; \n + } \n + else { \n + presentation . setVisible ( true ) ; \n + } \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "showing disabled actions in main menu"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class Screen { \n protected static Random random = new Random ( ) ; \n private Metagun metagun ; \n + protected SpriteBatch spriteBatch = new SpriteBatch ( NUMBER0 ) ; \n \n - public void removed ( ) { \n + public void removed ( ) { \n + spriteBatch . dispose ( ) ; \n } \n \n public final void init ( Metagun metagun ) {", "msg_token": "changed small change to metagun Screen"} {"diff": " public class LocalStopFinder { \n } \n } \n } \n - \n + \n SINGLE \n \n neighborhoods = new HashMap < Stop , HashMap < TableTripPattern , P2 < Double > > > ( ) ; \n public class LocalStopFinder { \n P2 < Double > distance = entry . getValue ( ) ; \n P2 < Double > previousDistance = previousDistances . get ( key ) ; \n P2 < Double > nextDistance = nextDistances . get ( key ) ; \n - if ( previousDistance == null ) { \n + if ( distance . getFirst ( ) == NUMBER0 ) { \n + local = false ; \n + } else if ( previousDistance == null ) { \n if ( nextDistance == null \n || nextDistance . getFirst ( ) > distance . getFirst ( ) \n || nextDistance . getSecond ( ) > distance . getSecond ( ) ) {", "msg_token": "Fix bug where same stop transfers were ignored in considering local stops"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class TitleRetriever extends SupplementalInfoRetriever { \n if ( m . find ( ) ) { \n String title = m . group ( NUMBER0 ) ; \n if ( title != null && ! title . isEmpty ( ) ) { \n + title = Html . fromHtml ( title ) . toString ( ) ; \n if ( title . length ( ) > MAX_TITLE_LEN ) { \n title = title . substring ( NUMBER1 , MAX_TITLE_LEN ) + STRING0 ; \n }", "msg_token": "Decode HTML entities in titles"} {"diff": " public final class AudioAttributes implements Parcelable { \n COMMENT \n public final static int USAGE_NOTIFICATION_RINGTONE = NUMBER0 ; \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public final static int USAGE_NOTIFICATION_TELEPHONY_RINGTONE = USAGE_NOTIFICATION_RINGTONE ; \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove obsolete USAGE_NOTIFICATION_TELEPHONY_RINGTONE definition"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n - @ test ( groups = STRING0 ) \n public class TestHiveClient \n extends AbstractTestHiveClient \n { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n - @ test ( groups = STRING0 ) \n public class TestHiveClientChunkIteratorBackPressure \n extends AbstractTestHiveClient \n {", "msg_token": "Remove unused annotations"} {"diff": " public class PathTrieTests { \n assertThat ( trie . retrieve ( STRING0 , params ) , equalTo ( STRING1 ) ) ; \n assertThat ( params . get ( STRING2 ) , equalTo ( STRING3 ) ) ; \n } \n + \n + @ test public void testSameNameOnDifferentPath ( ) { \n + PathTrie < String > trie = new PathTrie < String > ( ) ; \n + trie . insert ( STRING4 , STRING5 ) ; \n + trie . insert ( STRING6 , STRING1 ) ; \n + \n + Map < String , String > params = newHashMap ( ) ; \n + assertThat ( trie . retrieve ( STRING7 , params ) , equalTo ( STRING5 ) ) ; \n + assertThat ( params . get ( STRING2 ) , equalTo ( STRING8 ) ) ; \n + \n + params . clear ( ) ; \n + assertThat ( trie . retrieve ( STRING0 , params ) , equalTo ( STRING1 ) ) ; \n + assertThat ( params . get ( STRING2 ) , equalTo ( STRING3 ) ) ; \n + } \n }", "msg_token": "add another path trie test"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public interface LanguageSourceSetInternal extends LanguageSourceSet { \n - \n - ModelType < LanguageSourceSet > PUBLIC_MODEL_TYPE = ModelType . of ( LanguageSourceSet . class ) ; \n - \n COMMENT \n COMMENT \n COMMENT \n String getProjectScopedName ( ) ; \n \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed unused field"} {"diff": " final class WindowState implements WindowManagerPolicy . WindowState { \n SINGLE \n final int layoutXDiff ; \n final int layoutYDiff ; \n - if ( mInsetFrame . isEmpty ( ) && ( fullscreenTask || layoutInParentFrame ( ) ) ) { \n + if ( fullscreenTask || layoutInParentFrame ( ) ) { \n SINGLE \n mContainingFrame . set ( pf ) ; \n mDisplayFrame . set ( df ) ;", "msg_token": "Fixed bug with pop up window placement at the bottom in split screen"} {"diff": " public abstract class AbstractPersistentMethods { \n throws IntrospectionException { \n super ( ) ; \n new DelegatingMetaClass ( theClass , this ) ; \n + this . clazz = theClass ; \n this . dynamicMethodInvocations = new ArrayList ( ) ; \n this . staticMethodInvocations = new ArrayList ( ) ; \n }", "msg_token": "fixed bug where local clazz field was not being set and then passed on as null"} {"diff": " public class SearchManagerTest extends ActivityInstrumentationTestCase2 < LocalAct \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ mediumtest \n - public void testSearchManagerContextRestrictions ( ) { \n - SearchManager searchManager1 = ( SearchManager ) \n - mContext . getSystemService ( Context . SEARCH_SERVICE ) ; \n - assertNotNull ( searchManager1 ) ; \n - \n - Context applicationContext = mContext . getApplicationContext ( ) ; \n - SINGLE \n - try { \n - applicationContext . getSystemService ( Context . SEARCH_SERVICE ) ; \n - assertFalse ( STRING0 , true ) ; \n - } catch ( AndroidRuntimeException e ) { \n - SINGLE \n - } \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove test for SearchManager activity context restriction"} {"diff": " public class WelcomeActivity extends ThemeableActivity implements ICacheWordSubs \n if ( ! mDoLock ) \n { \n mApp . maybeInit ( this ) ; \n - mApp . checkForCrashes ( this ) ; \n + \n } \n \n if ( ImApp . mUsingCacheword )", "msg_token": "don t show crash dialog here"} {"diff": " \n specific language governing permissions and limitations \n under the License . \n COMMENT \n - p \n \n package NAMESPACE ; \n \n \n specific language governing permissions and limitations \n under the License . \n COMMENT \n - p \n \n package NAMESPACE ; \n \n \n specific language governing permissions and limitations \n under the License . \n COMMENT \n - p \n + \n \n package NAMESPACE ;", "msg_token": "Accidentally added stray char when changing the licence"} {"diff": " public class RoutingRequest implements Cloneable , Serializable { \n public String getBannedRouteStr ( ) { \n return getRouteSetStr ( bannedRoutes ) ; \n } \n + \n + public void setMaxWalkDistance ( double maxWalkDistance ) { \n + this . maxWalkDistance = maxWalkDistance ; \n + if ( walkingOptions != null && walkingOptions != this ) { \n + this . walkingOptions . setMaxWalkDistance ( maxWalkDistance ) ; \n + } \n + } \n }", "msg_token": "propagate max walk distance to walking params"} {"diff": " class Clicker { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for the clickOnEditText int method both in Solo and Clicker"} {"diff": " public class AvroVersionedGenericSerializer implements Serializer < Object > { \n \n Integer version = Integer . valueOf ( bytes [ NUMBER0 ] ) ; \n \n + if ( version > newestVersion ) \n + throw new SerializationException ( STRING0 ) ; \n + \n Schema typeDefWriter = Schema . parse ( typeDefVersions . get ( version ) ) ; \n \n byte [ ] dataBytes = new byte [ bytes . length - NUMBER1 ] ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added check in serializer"} {"diff": " public final class LeaderInquireClient { \n if ( masters . size ( ) >= NUMBER0 ) { \n if ( masters . size ( ) == NUMBER0 ) { \n String leader = masters . get ( NUMBER1 ) ; \n - LOG . info ( STRING0 + leader ) ; \n return leader ; \n }", "msg_token": "Remove extraneous log message"} {"diff": " public class ServerCookieEncoderTest { \n assertTrue ( matcher . find ( ) ) ; \n Date expiresDate = HttpHeaderDateFormat . get ( ) . parse ( matcher . group ( NUMBER0 ) ) ; \n long diff = ( expiresDate . getTime ( ) - System . currentTimeMillis ( ) ) / NUMBER1 ; \n - SINGLE \n - assertTrue ( Math . abs ( diff - maxAge ) <= NUMBER0 ) ; \n + SINGLE \n + assertTrue ( Math . abs ( diff - maxAge ) <= NUMBER2 ) ; \n } \n \n @ test", "msg_token": "Fix an sporadic failure in ServerCookieEncoderTest"} {"diff": " public abstract class FluidRegistry \n FMLLog . getLogger ( ) . log ( Level . ERROR , STRING0 , defaultName , localDefault ) ; \n } \n FMLLog . getLogger ( ) . log ( Level . DEBUG , STRING1 , defaultName , fluid . getName ( ) ) ; \n - fluids . put ( fluid . getName ( ) , fluid ) ; \n - Integer id = fluidIDs . remove ( fluid ) ; \n + Fluid oldFluid = fluids . put ( fluid . getName ( ) , fluid ) ; \n + Integer id = fluidIDs . remove ( oldFluid ) ; \n fluidIDs . put ( fluid , id ) ; \n } \n fluidBlocks = null ;", "msg_token": "Replace the OLD fluid in the fluidID map not the new one"} {"diff": " public class DefaultByteBufferPool implements ByteBufferPool { \n } \n } \n } \n + queueIfUnderMax ( buffer ) ; \n + } \n + \n + private void queueIfUnderMax ( ByteBuffer buffer ) { \n int size ; \n do { \n size = currentQueueLength ; \n public class DefaultByteBufferPool implements ByteBufferPool { \n protected void finalize ( ) throws Throwable { \n super . finalize ( ) ; \n reclaimedThreadLocalsUpdater . incrementAndGet ( DefaultByteBufferPool . this ) ; \n + if ( buffers != null ) { \n + SINGLE \n + ByteBuffer buffer ; \n + while ( ( buffer = buffers . poll ( ) ) != null ) { \n + queueIfUnderMax ( buffer ) ; \n + } \n + } \n } \n }", "msg_token": "Reclaim thread buffers after thread collection instead of reallocating"} {"diff": " public class CreateProcedureGenerator extends AbstractSqlGenerator < CreateProcedu \n public Sql [ ] generateSql ( CreateProcedureStatement statement , Database database , SqlGeneratorChain sqlGeneratorChain ) { \n List < Sql > sql = new ArrayList < Sql > ( ) ; \n \n - String procedureText = addSchemaToText ( statement . getProcedureText ( ) , statement . getSchemaName ( ) , STRING0 , database ) ; \n + String procedureText = statement . getProcedureText ( ) ; \n + SINGLE \n \n \n if ( statement . getReplaceIfExists ( ) != null && statement . getReplaceIfExists ( ) ) { \n public class CreateProcedureGenerator extends AbstractSqlGenerator < CreateProcedu \n sql . add ( new UnparsedSql ( procedureText , statement . getEndDelimiter ( ) ) ) ; \n \n \n - surroundWithSchemaSets ( sql , statement . getSchemaName ( ) , database ) ; \n + SINGLE \n return sql . toArray ( new Sql [ sql . size ( ) ] ) ; \n }", "msg_token": "Commented out multi schema improvement code cherry picked in"} {"diff": " class FileHistoryCache implements HistoryCache { \n public void store ( History history , File file ) throws Exception { \n \n File cache = getCachedFile ( file ) ; \n - \n + \n File dir = cache . getParentFile ( ) ; \n if ( ! dir . isDirectory ( ) ) { \n if ( ! dir . mkdirs ( ) ) { \n class FileHistoryCache implements HistoryCache { \n ( time > env . getHistoryReaderTimeLimit ( ) ) ) ) { \n SINGLE \n try { \n - store ( history , cache ) ; \n + store ( history , file ) ; \n } catch ( Exception e ) { \n OpenGrokLogger . getLogger ( ) . log ( Level . WARNING , \n STRING0 + cache + STRING1 , e ) ;", "msg_token": "Store the history cache to the correct file"} {"diff": " public class ReducerValueUpdater implements ValueUpdater < Object > { \n \n @ override \n public Object update ( Object stored ) { \n - Object ret = stored ; \n + Object ret = ( stored == null ) ? this . agg . init ( ) : stored ; \n for ( TridentTuple t : tuples ) { \n ret = this . agg . reduce ( ret , t ) ; \n } \n return ret ; \n } \n - } \n + }", "msg_token": "Initialising ReducerAggregator if when state is null"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class StringCleaning { \n \n + private static final Pattern punctPattern = Pattern . compile ( STRING0 ) ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public static String stripPunct ( String base ) { \n - return base . replaceAll ( STRING0 , STRING1 ) ; \n - \n + return punctPattern . matcher ( base ) . replaceAll ( STRING1 ) ; \n } \n - \n - \n }", "msg_token": "Changed stripPunct function to use a pre compiled regex instead of compiling it every time it is getting called"} {"diff": " import NAMESPACE ; \n @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , property = STRING0 ) \n @ jsonsubtypes ( value = { \n @ jsonsubtypes.type ( name = STRING1 , value = LockAcquireAction . class ) , \n + @ jsonsubtypes.type ( name = STRING2 , value = LockTryAcquireAction . class ) , \n @ jsonsubtypes.type ( name = STRING3 , value = LockListAction . class ) , \n @ jsonsubtypes.type ( name = STRING4 , value = LockReleaseAction . class ) , \n @ jsonsubtypes.type ( name = STRING5 , value = SegmentInsertAction . class ) ,", "msg_token": "Add JsonSubType for LockTryAcquireAction"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MyResourceTest { \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n + @ deployment \n SINGLE \n public static WebArchive createDeployment ( ) { \n WebArchive war = ShrinkWrap . create ( WebArchive . class ) .", "msg_token": "Commenting Arquillian annotations for interim debugging"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n if ( relation . hasTag ( STRING0 ) && relation . hasTag ( STRING1 ) && \n relation . hasTag ( STRING2 ) && relation . hasTag ( STRING3 ) ) { \n \n - tag . time = RepeatingTimePeriod . parseFromOsmTurnRestriction ( \n - relation . getTag ( STRING0 ) , relation . getTag ( STRING1 ) , \n - relation . getTag ( STRING2 ) , relation . getTag ( STRING3 ) ) ; \n + try { \n + tag . time = RepeatingTimePeriod . parseFromOsmTurnRestriction ( \n + relation . getTag ( STRING0 ) , relation . getTag ( STRING1 ) , \n + relation . getTag ( STRING2 ) , relation . getTag ( STRING3 ) ) ; \n + } catch ( NumberFormatException e ) { \n + _log . info ( STRING4 + relation . getId ( ) ) ; \n + } \n } \n \n MapUtils . addToMapList ( turnRestrictionsByFromWay , from , tag ) ;", "msg_token": "handle unparseable turn restrictions bug reported by Colin Tompo"} {"diff": " public class JmsTestConnectionOnStartupTest extends CamelTestSupport { \n context . start ( ) ; \n fail ( STRING0 ) ; \n } catch ( FailedToCreateConsumerException e ) { \n - SINGLE \n assertEquals ( STRING1 \n + STRING2 , e . getMessage ( ) ) ; \n } \n public class JmsTestConnectionOnStartupTest extends CamelTestSupport { \n context . start ( ) ; \n fail ( STRING0 ) ; \n } catch ( FailedToCreateProducerException e ) { \n - SINGLE \n - assertEquals ( STRING3 \n - + STRING4 \n - + STRING5 \n - + STRING6 , \n - e . getMessage ( ) ) ; \n + assertTrue ( e . getMessage ( ) . startsWith ( STRING7 ) ) ; \n + assertTrue ( e . getMessage ( ) . contains ( STRING8 ) ) ; \n } \n }", "msg_token": "Fixed test on windows"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpResponseConcurrentAbortTest extends AbstractHttpClientServerTes \n \n private void abort ( final Response response ) \n { \n - Logger logger = Log . getLogger ( getClass ( ) ) ; \n - \n new Thread ( STRING0 ) \n { \n @ override \n public class HttpResponseConcurrentAbortTest extends AbstractHttpClientServerTes \n SINGLE \n boolean latched = failureLatch . await ( NUMBER0 , TimeUnit . SECONDS ) ; \n success . set ( latched ) ; \n - logger . info ( STRING1 ) ; \n \n SINGLE \n SINGLE \n latched = completeLatch . await ( NUMBER1 , TimeUnit . SECONDS ) ; \n success . set ( ! latched ) ; \n - logger . info ( STRING2 ) ; \n \n callbackLatch . countDown ( ) ; \n }", "msg_token": "Removed debugging statements"} {"diff": " public class SimplePropertyPreFilter implements PropertyPreFilter { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public int getMaxLevel ( ) { \n return maxLevel ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setMaxLevel ( int maxLevel ) { \n this . maxLevel = maxLevel ; \n }", "msg_token": "SimplePropertyPreFilter add java doc since info D"} {"diff": " public class BlobServerGetTest { \n try { \n byte [ ] remainder = new byte [ data . length - NUMBER0 * receiveBuffer . length ] ; \n BlobUtils . readFully ( is , remainder , NUMBER1 , remainder . length , null ) ; \n - fail ( ) ; \n + SINGLE \n + SINGLE \n } \n catch ( IOException e ) { \n SINGLE", "msg_token": "blob manager Fix flakey test"} {"diff": " public class PdfJsWindow extends WindowEx \n } - * / ; \n \n public final native String getLocationHash ( ) COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT ; \n \n public final native void applyLocationHash ( String hash ) / * - {", "msg_token": "use bookmark href to cache PDF viewer location reduce coupling"} {"diff": " public class NetworkUtilImpl implements NetworkUtil , NetworkEventProvider { \n if ( VERSION . SDK_INT >= Build . VERSION_CODES . M ) { \n listenForIdle ( context ) ; \n } \n - listeNetworkViaConnectivityManager ( context ) ; \n + listenNetworkViaConnectivityManager ( context ) ; \n } else { \n context . getApplicationContext ( ) . registerReceiver ( new BroadcastReceiver ( ) { \n @ override \n public class NetworkUtilImpl implements NetworkUtil , NetworkEventProvider { \n } \n \n @ targetapi ( NUMBER0 ) \n - private void listeNetworkViaConnectivityManager ( final Context context ) { \n + private void listenNetworkViaConnectivityManager ( final Context context ) { \n ConnectivityManager cm = ( ConnectivityManager ) context . getApplicationContext ( ) \n . getSystemService ( Context . CONNECTIVITY_SERVICE ) ; \n NetworkRequest request = new NetworkRequest . Builder ( )", "msg_token": "Corrected the function name"} {"diff": " public class AWSClient { \n } \n \n public Collection < String > getPrivateIpAddresses ( ) throws Exception { \n - final Map < String , String > result = new DescribeInstances ( awsConfig ) . execute ( endpoint ) ; \n + final Map < String , String > result = new DescribeInstances ( awsConfig ) . execute ( ) ; \n return result . keySet ( ) ; \n } \n \n public Map < String , String > getAddresses ( ) throws Exception { \n - return new DescribeInstances ( awsConfig ) . execute ( endpoint ) ; \n + return new DescribeInstances ( awsConfig ) . execute ( ) ; \n } \n \n public void setEndpoint ( String s ) {", "msg_token": "Fix compile errors"} {"diff": " public class DirectionalLight extends Light { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Changed DirectionalLight setDirection javadoc to be more explicit"} {"diff": " public class JobContextService extends AbstractLifecycleComponent < JobContextServ \n SINGLE \n numKilled ++ ; \n } \n - assert activeContexts . size ( ) == NUMBER0 : \n - STRING0 ; \n } finally { \n writeLock . unlock ( ) ; \n }", "msg_token": "remove activeContexts assertion from JobContextService"} {"diff": " final class NodeAndNPMInstaller { \n File destination = new File ( targetDir + STRING0 ) ; \n nodeBinary . renameTo ( destination ) ; \n \n - SINGLE \n + nodeBinary . setExecutable ( true ) ; \n + \n + FileUtils . deleteDirectory ( new File ( targetDir + File . separator + STRING1 ) ) ; \n \n log . info ( STRING2 ) ; \n }", "msg_token": "Make Node executable"} {"diff": " public class RollingTheMonkey extends SimpleApplication implements ActionListene \n pickUp . rotate ( pickUpSpeed , pickUpSpeed , pickUpSpeed ) ; \n } \n \n - TempVars tempVars = TempVars . get ( ) ; \n - \n - Vector3f centralForce = tempVars . vect1 . set ( Vector3f . ZERO ) ; \n + Vector3f centralForce = new Vector3f ( ) ; \n \n if ( keyForward ) centralForce . addLocal ( cam . getDirection ( ) ) ; \n if ( keyBackward ) centralForce . addLocal ( cam . getDirection ( ) . negate ( ) ) ; \n public class RollingTheMonkey extends SimpleApplication implements ActionListene \n \n player . applyCentralForce ( centralForce ) ; SINGLE \n } \n - tempVars . release ( ) ; \n \n cam . lookAt ( player . getPhysicsLocation ( ) , Vector3f . UNIT_Y ) ; \n }", "msg_token": "Removed tempvars from update"} {"diff": " public enum OGlobalConfiguration { \n SERVER_CACHE_STATIC_RESOURCES ( STRING0 , STRING1 , Boolean . class , false ) , \n \n SINGLE \n - DISTRIBUTED_SERVER_SYNC_REPLICAS ( STRING2 , \n - STRING3 , Integer . class , NUMBER0 ) , \n + DISTRIBUTED_ASYNC_TIME_DELAY ( STRING4 , \n + STRING5 , Integer . class , NUMBER1 ) , \n \n - DISTRIBUTED_SERVER_SYNC_TIME_DELAY ( STRING6 , STRING7 , \n - Integer . class , NUMBER2 ) , \n - \n - DISTRIBUTED_SERVER_SYNC_MAXRECORDS_BUFFER ( STRING8 , \n + DISTRIBUTED_SYNC_MAXRECORDS_BUFFER ( STRING9 , \n STRING10 , Integer . class , NUMBER3 ) ; \n \n private final String key ;", "msg_token": "Changed parameter with a better name"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n } catch ( Throwable t ) { \n logger . error ( STRING0 , t ) ; \n \n + Throwable a ; \n + while ( ( a = t . getCause ( ) ) != null ) { \n + logger . error ( STRING0 , a ) ; \n + } \n + \n if ( t instanceof ServletException ) { \n throw ( ServletException ) t ; \n }", "msg_token": "Improve error reporting"} {"diff": " public class CheckedTextView extends TextView implements Checkable { \n right = width - mBasePadding ; \n left = right - mCheckMarkWidth ; \n } \n - checkMarkDrawable . setBounds ( left , top , right , bottom ) ; \n + checkMarkDrawable . setBounds ( mScrollX + left , top , mScrollX + right , bottom ) ; \n checkMarkDrawable . draw ( canvas ) ; \n } \n }", "msg_token": "Consider mScrollX when drawing the checkMarkDrawable"} {"diff": " public class SubstitutionUtils { \n } \n \n private static void fillInSubstitutionContext ( List < TypeParameterDescriptor > parameters , List < TypeProjection > contextArguments , Map < TypeConstructor , TypeProjection > parameterValues ) { \n + if ( parameters . size ( ) != contextArguments . size ( ) ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n for ( int i = NUMBER0 , parametersSize = parameters . size ( ) ; i < parametersSize ; i ++ ) { \n TypeParameterDescriptor parameter = parameters . get ( i ) ; \n TypeProjection value = contextArguments . get ( i ) ;", "msg_token": "Validate parameters in fillInSubstitutionContext"} {"diff": " public class FileBasedDeclarationProviderFactory implements DeclarationProviderF \n \n @ override \n public PackageMemberDeclarationProvider getPackageMemberDeclarationProvider ( @ notnull FqName packageFqName ) { \n - PackageMemberDeclarationProvider declarationProvider = packageDeclarationProviders . get ( packageFqName ) ; \n - if ( declarationProvider != null ) { \n - return declarationProvider ; \n + PackageMemberDeclarationProvider cached = packageDeclarationProviders . get ( packageFqName ) ; \n + if ( cached != null ) { \n + return cached ; \n } \n \n if ( ! isPackageDeclaredExplicitly ( packageFqName ) ) { \n public class FileBasedDeclarationProviderFactory implements DeclarationProviderF \n FileBasedPackageMemberDeclarationProvider provider = \n new FileBasedPackageMemberDeclarationProvider ( storageManager , packageFqName , this , index . get ( ) . filesByPackage . get ( packageFqName ) ) ; \n \n - return packageDeclarationProviders . putIfAbsent ( packageFqName , provider ) ; \n + PackageMemberDeclarationProvider oldValue = packageDeclarationProviders . putIfAbsent ( packageFqName , provider ) ; \n + if ( oldValue != null ) { \n + return oldValue ; \n + } \n + \n + return provider ; \n } \n \n @ notnull", "msg_token": "Correctly return existing provider if it is there"} {"diff": " public interface Query < T > extends QueryResults < T > , Cloneable { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add mod to list of filters"} {"diff": " public class AlarmManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AlarmManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve alarm manager docs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ configurationproperties ( prefix = STRING0 , ignoreUnknownFields = false ) \n + @ configurationproperties ( prefix = STRING0 , ignoreUnknownFields = true ) \n public class ServerProperties implements EmbeddedServletContainerCustomizer , Ordered { \n \n COMMENT", "msg_token": "Set ignoreUnknownFields true on ServerProperties"} {"diff": " public class NetworkMonitor extends StateMachine { \n httpResponseCode = NUMBER0 ; \n } \n \n - sendNetworkConditionsBroadcast ( true COMMENT , httpResponseCode == NUMBER0 , \n + sendNetworkConditionsBroadcast ( true COMMENT , \n + httpResponseCode != NUMBER0 COMMENT , \n requestTimestamp , responseTimestamp ) ; \n } catch ( IOException e ) { \n if ( DBG ) log ( STRING0 + e ) ;", "msg_token": "Fix flipped captive portal bit in network conditions bcast"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class OSecurityShared { \n + public class OSecurityShared implements OSecurity { \n private OSharedResourceExternal lock = new OSharedResourceExternal ( ) ; \n \n public OUser authenticate ( final String iUserName , final String iUserPassword ) {", "msg_token": "OSecurityShared class now implements OSecurity interface"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class TileAssemblyTable extends TileEntity implements IInventory , IPipeConnection { \n + public class TileAssemblyTable extends TileEntity implements IMachine , IInventory , IPipeConnection { \n \n ItemStack [ ] items = new ItemStack [ NUMBER0 ] ; \n \n public class TileAssemblyTable extends TileEntity implements IInventory , IPipeCo \n iCrafting . updateCraftingInventoryInfo ( container , NUMBER1 , ( int ) energyStored ) ; \n } \n \n + @ override \n + public boolean isActive ( ) { \n + return currentRecipe != null ; \n + } \n + \n + @ override \n + public boolean manageLiquids ( ) { \n + return false ; \n + } \n + \n + @ override \n + public boolean manageSolids ( ) { \n + return false ; \n + } \n + \n + @ override \n + public boolean allowActions ( ) { \n + return false ; \n + } \n + \n }", "msg_token": "Added Work scheduled and Work done triggers to Assembly Table"} {"diff": " public class GraphSail < T extends KeyIndexableGraph > extends NotifyingSailBase im \n \n String [ ] a = tripleIndexes . split ( STRING0 ) ; \n for ( String s : a ) { \n - u . add ( s . trim ( ) ) ; \n + String pattern = s . trim ( ) ; \n + if ( pattern . length ( ) > NUMBER0 ) { \n + u . add ( pattern ) ; \n + } \n } \n \n if ( ! u . contains ( STRING1 ) ) {", "msg_token": "Allow empty index list in GraphSail"} {"diff": " public abstract class SessionBeanComponent extends EJBComponent implements org . j \n } \n return ( T ) instance . createProxy ( ) ; \n } else { \n - throw new IllegalArgumentException ( STRING0 + businessInterface + STRING1 + this ) ; \n + throw new IllegalStateException ( STRING0 + businessInterface + STRING1 + this ) ; \n } \n \n }", "msg_token": "Throw IllegalStateException as required by the spec"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n public class HttpSetting extends BaseSetting < HttpResponseSetting > implements Set \n \n @ override \n public HttpResponseSetting redirectTo ( String url ) { \n - return this . response ( status ( HttpResponseStatus . FOUND . code ( ) ) , header ( STRING0 , checkNotNullOrEmpty ( url , STRING1 ) ) ) ; \n + return this . response ( status ( HttpResponseStatus . FOUND . code ( ) ) , header ( HttpHeaders . LOCATION , checkNotNullOrEmpty ( url , STRING1 ) ) ) ; \n } \n }", "msg_token": "changed magic string in redirectTo api to enum"} {"diff": " public class ListIndexExpression extends ExpressionImpl < Integer > implements Seri \n \n public String render ( RenderingContext renderingContext ) { \n return STRING0 \n - + origin . getPathIdentifier ( ) + STRING1 + getListAttribute ( ) . getName ( ) \n + + origin . getPathIdentifier ( ) \n + STRING2 ; \n }", "msg_token": "Correctly render ListIndexExpression"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix ComponentBinaries autoTested sample"} {"diff": " public abstract class ChangeSignatureDialogBase < P extends ParameterInfo , M exten \n \n @ nullable \n @ override \n - public TableCellEditor getCellEditor ( final int row , final int column ) { \n + public TableCellEditor getCellEditor ( int row , int column ) { \n final TableCellEditor editor = super . getCellEditor ( row , column ) ; \n final DocumentAdapter listener = new DocumentAdapter ( ) { \n @ override \n public abstract class ChangeSignatureDialogBase < P extends ParameterInfo , M exten \n final TableCellEditor ed = myParametersTable . getCellEditor ( ) ; \n if ( ed != null ) { \n Object editorValue = ed . getCellEditorValue ( ) ; \n - myParametersTableModel . setValueAtWithoutUpdate ( editorValue , row , column ) ; \n + myParametersTableModel . setValueAtWithoutUpdate ( editorValue , myParametersTable . getSelectedRow ( ) , myParametersTable . getSelectedColumn ( ) ) ; \n updateSignature ( ) ; \n } \n }", "msg_token": "always update selected row and selected column"} {"diff": " public class ExtendsTest extends UnitTestCase { \n } \n } \n \n - public void testEntityNamesWithPackageFailureExpected ( ) { \n + public void testEntityNamesWithPackage ( ) { \n Configuration cfg = new Configuration ( ) ; \n try { \n cfg . addResource ( getBaseForMappings ( ) + STRING0 ) ;", "msg_token": "fixed validation of failure expected results"} {"diff": " public class ContactDetail \n Map < Class < ? extends OperationSet > , String > preferredProtocols ) \n { \n this . preferredProtocols = preferredProtocols ; \n + \n + SINGLE \n + for ( Class < ? extends OperationSet > opsetClass \n + : preferredProtocols . keySet ( ) ) \n + { \n + if ( supportedOpSets == null || ! supportedOpSets . contains ( opsetClass ) ) \n + addSupportedOpSet ( opsetClass ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fixes call buttons behaviour if provider info is missing and preferred protocol is set"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n class PicassoExecutorService extends ThreadPoolExecutor { \n } \n \n private void setThreadCount ( int threadCount ) { \n - setMaximumPoolSize ( threadCount ) ; \n - setCorePoolSize ( threadCount ) ; \n + if ( Build . VERSION . SDK_INT > NUMBER0 ) { \n + setMaximumPoolSize ( threadCount ) ; \n + setCorePoolSize ( threadCount ) ; \n + } else { \n + setCorePoolSize ( threadCount ) ; \n + setMaximumPoolSize ( threadCount ) ; \n + } \n } \n \n @ override", "msg_token": "Set max pool size and core size according to Android SDK version"} {"diff": " public class CompletableEntityStore < T > implements CompletionStageEntityStore < T > \n return CompletableFuture . supplyAsync ( new Supplier < E > ( ) { \n @ override \n public E get ( ) { \n - return delegate . update ( entity ) ; \n + return delegate . upsert ( entity ) ; \n } \n } , executor ) ; \n }", "msg_token": "Fix CompletableEntityStore upsert operation"} {"diff": " public class JabberAccountRegistrationWizard \n { \n try \n { \n - SwingUtilities . invokeAndWait ( \n - new Runnable ( ) \n - { \n - public void run ( ) \n + if ( SwingUtilities . isEventDispatchThread ( ) ) \n + { \n + accPanel . setUsername ( userName ) ; \n + accPanel . setPassword ( password ) ; \n + accPanel . setRememberPassword ( rememberPassword ) ; \n + } \n + else \n + { \n + SwingUtilities . invokeAndWait ( \n + new Runnable ( ) \n { \n - accPanel . setUsername ( userName ) ; \n - accPanel . setPassword ( password ) ; \n - accPanel . setRememberPassword ( rememberPassword ) ; \n - } \n - } ) ; \n + public void run ( ) \n + { \n + accPanel . setUsername ( userName ) ; \n + accPanel . setPassword ( password ) ; \n + accPanel . setRememberPassword ( \n + rememberPassword ) ; \n + } \n + } ) ; \n + } \n } \n catch ( Exception e ) \n {", "msg_token": "Fixes error Cannot call invokeAndWait from the event dispatcher thread when creating xmpp account from simple account wizard"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LiveTemplatesTest extends LightCodeInsightFixtureTestCase { \n \n @ override \n protected void tearDown ( ) throws Exception { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + getProject ( ) . getMessageBus ( ) . syncPublisher ( ProjectTopics . PROJECT_ROOTS ) . rootsChanged ( new ModuleRootEventImpl ( getProject ( ) , true ) ) ; \n + \n ( ( TemplateManagerImpl ) TemplateManager . getInstance ( getProject ( ) ) ) . setTemplateTesting ( false ) ; \n super . tearDown ( ) ; \n }", "msg_token": "Fix blinking test see comments in the code"} {"diff": " public class DiskBasedCache implements Cache { \n COMMENT \n COMMENT \n COMMENT \n - private File getFileForKey ( String key ) { \n + public File getFileForKey ( String key ) { \n return new File ( mRootDirectory , getFilenameForKey ( key ) ) ; \n }", "msg_token": "Make getFileForKey public"} {"diff": " public class BitmapUtils { \n \n SINGLE \n resultBitmap = Bitmap . createBitmap ( bitmap , NUMBER0 , NUMBER0 , bitmap . getWidth ( ) , bitmap . getHeight ( ) , matrix , true ) ; \n + if ( resultBitmap != bitmap ) { \n + bitmap . recycle ( ) ; \n + } \n } \n catch ( Exception exception ) \n {", "msg_token": "Hurry up release of source bitmap in rotations"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class GoFile extends PsiFileBase { \n return PathUtil . getParentPath ( fullPackageName ) ; \n } \n } \n + else { \n + final String path = PathUtil . getParentPath ( virtualFile . getPath ( ) ) ; \n + final int srcFolder = path . indexOf ( STRING0 ) ; \n + if ( srcFolder > - NUMBER0 ) { \n + return StringUtil . nullize ( path . substring ( srcFolder + NUMBER1 ) ) ; \n + } \n + } \n return null ; \n }", "msg_token": "Fix full package name for files from libraries"} {"diff": " public class FMLModContainer implements ModContainer \n \n private void parseSimpleFieldAnnotation ( SetMultimap < String , ASMData > annotations , String annotationClassName , Function < ModContainer , Object > retreiver ) throws IllegalAccessException \n { \n - System . out . println ( annotationClassName ) ; \n String [ ] annName = annotationClassName . split ( STRING0 ) ; \n - System . out . println ( Arrays . toString ( annName ) ) ; \n String annotationName = annName [ annName . length - NUMBER0 ] ; \n for ( ASMData targets : annotations . get ( annotationClassName ) ) \n {", "msg_token": "Remove debug statements"} {"diff": " public class HttpClientTimeoutTest extends AbstractHttpClientServerTest \n SINGLE \n Assume . assumeTrue ( true ) ; \n } \n + catch ( Throwable x ) \n + { \n + SINGLE \n + Assume . assumeTrue ( false ) ; \n + } \n } \n \n private class TimeoutHandler extends AbstractHandler", "msg_token": "Fixed test assumption"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IgnoredFilesInfoImpl implements IgnoredFilesInfo { \n new SimpleStringPattern ( STRING0 ) \n } ; \n \n - public static IgnoredFilesInfo EMPTY_FILTER = new IgnoredFilesInfoImpl ( ) { \n + public static final IgnoredFilesInfo EMPTY_FILTER = new IgnoredFilesInfoImpl ( ) { \n public boolean shouldBeIgnored ( String fileName ) { \n if ( checkPatterns ( CvsEntriesManager . getInstance ( ) . getUserDirIgnores ( ) . getPatterns ( ) , fileName ) ) return true ; \n if ( checkPatterns ( PREDEFINED_PATTERNS , fileName ) ) return true ;", "msg_token": "make public field final"} {"diff": " public class HttpBindServlet extends HttpServlet { \n if ( async ) { \n response . getOutputStream ( ) . setWriteListener ( new WriteListenerImpl ( context , byteContent ) ) ; \n } else { \n - SINGLE \n - SINGLE \n - context . getResponse ( ) . setBufferSize ( byteContent . length ) ; \n + SINGLE \n + SINGLE \n + context . getResponse ( ) . setContentLength ( byteContent . length ) ; \n context . getResponse ( ) . getOutputStream ( ) . write ( byteContent ) ; \n context . getResponse ( ) . getOutputStream ( ) . flush ( ) ; \n context . complete ( ) ;", "msg_token": "Avoid chunked encoding for BOSH"} {"diff": " public class HtmlExporterTests extends RefineTest { \n \n SINGLE \n SINGLE \n - @ test \n + @ test ( enabled = false ) \n public void exportSimpleHtmlTableNoHeader ( ) { \n CreateGrid ( NUMBER0 , NUMBER0 ) ; \n when ( options . getProperty ( STRING0 ) ) . thenReturn ( STRING1 ) ; \n public class TemplatingExporterTests extends RefineTest { \n Assert . fail ( ) ; \n } \n \n - SINGLE \n - SINGLE \n + SINGLE \n Assert . assertEquals ( writer . toString ( ) , \n prefix \n + rowPrefix + STRING2 + cellSeparator + STRING3 + cellSeparator + STRING4 + rowSeparator \n - + rowPrefix + STRING5 + cellSeparator + cellSeparator + STRING6 + rowSeparator \n - + rowPrefix + cellSeparator + STRING7 + cellSeparator + STRING8 \n + + rowPrefix + STRING5 + cellSeparator + STRING9 + cellSeparator + STRING6 + rowSeparator \n + + rowPrefix + STRING9 + cellSeparator + STRING7 + cellSeparator + STRING8 \n + suffix ) ; \n \n }", "msg_token": "Fix failing template exporter test"} {"diff": " public class ActivityLauncher { \n } \n \n public static void showSignInForResult ( Activity activity ) { \n - if ( shouldShowMagicLinksLogin ( activity ) ; ) { \n + if ( shouldShowMagicLinksLogin ( activity ) ) { \n Intent intent = new Intent ( activity , MagicLinkSignInActivity . class ) ; \n activity . startActivityForResult ( intent , RequestCodes . ADD_ACCOUNT ) ; \n } else {", "msg_token": "Removing extra semi colon"} {"diff": " public class h2odriver extends Configured implements Tool { \n Thread . sleep ( NUMBER0 ) ; \n } \n } \n - catch ( Exception _ ) { \n + catch ( Exception e ) { \n } \n finally { \n if ( ! killed ) { \n public class h2omapper extends Mapper < Text , Text , Text , Text > { \n try { \n e . printStackTrace ( ) ; \n } \n - catch ( Exception _ ) { \n + catch ( Exception e2 ) { \n System . err . println ( STRING0 ) ; \n - _ . printStackTrace ( ) ; \n + e2 . printStackTrace ( ) ; \n } \n } \n finally {", "msg_token": "Rename swallowed exceptions to not be named _"} {"diff": " public final class Display { \n mGlobal = global ; \n mDisplayId = displayId ; \n mDisplayInfo = displayInfo ; \n - mDisplayAdjustments = daj ; \n + mDisplayAdjustments = new DisplayAdjustments ( daj ) ; \n mIsValid = true ; \n \n SINGLE \n public class DisplayAdjustments { \n mActivityToken = token ; \n } \n \n + public DisplayAdjustments ( DisplayAdjustments daj ) { \n + this ( daj . getCompatibilityInfo ( ) , daj . getActivityToken ( ) ) ; \n + } \n + \n public DisplayAdjustments ( CompatibilityInfo compatInfo , IBinder token ) { \n setCompatibilityInfo ( compatInfo ) ; \n mActivityToken = token ;", "msg_token": "Do not reuse DisplayAdjustment in Display"} {"diff": " public class S3UnderFileSystem extends UnderFileSystem { \n COMMENT \n COMMENT \n public S3UnderFileSystem ( AlluxioURI uri , Configuration conf , AWSCredentials awsCredentials ) \n - throws ServiceException { \n + throws ServiceException { \n super ( uri , conf ) ; \n String bucketName = uri . getHost ( ) ; \n mBucketName = bucketName ;", "msg_token": "Revert Fix indentation after PR review"} {"diff": " public class EdgeServerReplicationIT \n \n executeOnLeaderWithRetry ( this : : createData , cluster ) ; \n \n - cluster . addEdgeMemberWithId ( edgeServerId ) ; \n + cluster . addEdgeMemberWithId ( edgeServerId ) . start ( ) ; \n \n SINGLE \n executeOnLeaderWithRetry ( this : : createData , cluster ) ; \n \n + awaitEx ( ( ) - > edgesUpToDateAsTheLeader ( cluster . awaitLeader ( ) , cluster . edgeMembers ( ) ) , NUMBER0 , TimeUnit . MINUTES ) ; \n cluster . removeEdgeMemberWithMemberId ( edgeServerId ) ; \n \n SINGLE", "msg_token": "should actually start the edge server"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , \n - include = JsonTypeInfo . As . PROPERTY , \n - property = STRING0 , \n - defaultImpl = HttpConnectorFactory . class ) \n + @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , include = JsonTypeInfo . As . PROPERTY , property = STRING0 ) \n public interface ConnectorFactory { \n Connector build ( Server server , \n MetricRegistry metrics ,", "msg_token": "Require types on connectors"} {"diff": " public class AsyncHttpClient { \n } \n \n public < T > Future < T > execute ( AsyncHandler < T > handler ) throws IOException { \n - return AsyncHttpClient . this . executeRequest ( build ( ) , decorate ( handler ) ) ; \n + return AsyncHttpClient . this . executeRequest ( build ( ) , handler ) ; \n } \n \n public Future < Response > execute ( ) throws IOException { \n - return AsyncHttpClient . this . executeRequest ( build ( ) , decorate ( new AsyncCompletionHandlerBase ( ) ) ) ; \n + return AsyncHttpClient . this . executeRequest ( build ( ) , new AsyncCompletionHandlerBase ( ) ) ; \n } \n \n SINGLE", "msg_token": "Avoid double decoration"} {"diff": " public class WindowOperatorTest extends TestLogger { \n expectedOutput . add ( new StreamRecord < > ( new Tuple2 < > ( STRING0 , NUMBER0 ) , Long . MAX_VALUE ) ) ; \n expectedOutput . add ( new StreamRecord < > ( new Tuple2 < > ( STRING1 , NUMBER0 ) , Long . MAX_VALUE ) ) ; \n \n - System . out . println ( STRING2 + outputBeforeClose ) ; \n - System . out . println ( STRING3 + testHarness . getOutput ( ) ) ; \n - \n TestHarnessUtil . assertOutputEqualsSorted ( STRING4 , expectedOutput , Iterables . concat ( outputBeforeClose , testHarness . getOutput ( ) ) , new Tuple2ResultSortComparator ( ) ) ; \n \n testHarness . close ( ) ;", "msg_token": "hotfix tests Remove leftover sysout logging code"} {"diff": " abstract class BasicInvocation implements ResponseHandler , Runnable { \n return error ; \n } \n \n + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( value = STRING0 , \n + justification = STRING1 ) \n private Object resolveCallTimeout ( ) { \n if ( logger . isFinestEnabled ( ) ) { \n logger . finest ( STRING2 + toString ( ) ) ;", "msg_token": "Resolved findbugs issue"} {"diff": " public class OsmandApplication extends Application implements ClientContext { \n uiHandler . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - AccessibleToast . makeText ( uiContext , b . toString ( ) , Toast . LENGTH_LONG ) . show ( ) ; \n + AccessibleToast . makeText ( uiContext , b , Toast . LENGTH_LONG ) . show ( ) ; \n } \n } ) ; \n }", "msg_token": "Fix redundant toString on a String object"} {"diff": " public class Tsurgeon { \n SINGLE \n break ; \n } \n - Matcher m = commentPattern . matcher ( thisLine ) ; \n - if ( m . matches ( ) ) { \n - SINGLE \n - thisLine = m . replaceFirst ( STRING0 ) ; \n - } \n + thisLine = removeComments ( thisLine ) ; \n if ( ! emptyLinePattern . matcher ( thisLine ) . matches ( ) ) { \n matchString . append ( thisLine ) ; \n }", "msg_token": "Fix comment escaping in Tsurgeon command files"} {"diff": " public class MaterialAutoCompleteTextView extends AutoCompleteTextView { \n postInvalidate ( ) ; \n } \n \n - public boolean getHideUnderline ( ) { \n + public boolean isHideUnderline ( ) { \n return hideUnderline ; \n } \n \n public class MaterialEditText extends EditText { \n postInvalidate ( ) ; \n } \n \n - public boolean getHideUnderline ( ) { \n + public boolean isHideUnderline ( ) { \n return hideUnderline ; \n } \n \n public class MaterialMultiAutoCompleteTextView extends MultiAutoCompleteTextView \n postInvalidate ( ) ; \n } \n \n - public boolean getHideUnderline ( ) { \n + public boolean isHideUnderline ( ) { \n return hideUnderline ; \n }", "msg_token": "Rename getHideUnderline to isHideUnderline"} {"diff": " public abstract class LangScriptingContextConfigurable implements Configurable , \n private final ScriptingLibrariesPanelStub myPanel ; \n private final ScriptingLibraryManager myLibManager ; \n private ScriptingContextsConfigurable myContextsConfigurable ; \n - private final String productName = System . getProperty ( STRING0 ) ; \n \n public LangScriptingContextConfigurable ( Project project , LangScriptingContextProvider provider ) { \n myLibManager = new ScriptingLibraryManager ( project , provider . getLibraryType ( ) ) ; \n - myPanel = useDedicatedLibraryUI ( ) ? new ScriptingLibrariesPanel ( provider , project , myLibManager ) : new ScriptingLibrariesPanelStub ( ) ; \n + myPanel = useDedicatedLibraryUI ( project ) ? new ScriptingLibrariesPanel ( provider , project , myLibManager ) : new ScriptingLibrariesPanelStub ( ) ; \n myContextsConfigurable = new ScriptingContextsConfigurable ( project , provider . getLibraryMappings ( project ) ) ; \n } \n \n - private boolean useDedicatedLibraryUI ( ) { \n - SINGLE \n - return STRING1 . equalsIgnoreCase ( productName ) || STRING2 . equalsIgnoreCase ( productName ) ; \n + private static boolean useDedicatedLibraryUI ( Project project ) { \n + return project . getPicoContainer ( ) . getComponentInstance ( STRING3 ) == null ; \n } \n \n @ nls", "msg_token": "correctly detect availability of global library configuration UI"} {"diff": " public class NIOConnection implements Connection { \n \n public void deliver ( Packet packet ) throws UnauthorizedException { \n if ( state != State . RUNNING ) { \n - SINGLE \n - if ( backupDeliverer == null ) { \n - Log . error ( STRING0 + packet . toXML ( ) ) ; \n - throw new IllegalStateException ( STRING1 ) ; \n - } \n - SINGLE \n - PacketDeliverer backup = backupDeliverer ; \n - backupDeliverer = null ; \n - backup . deliver ( packet ) ; \n + backupDeliverer . deliver ( packet ) ; \n } \n else { \n boolean errorDelivering = false ;", "msg_token": "Simplify backup packet delivery"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add leak detection example"} {"diff": " import NAMESPACE ; \n public class ScoreSortBuilder extends SortBuilder < ScoreSortBuilder > { \n \n public static final String NAME = STRING0 ; \n - public static final ParseField REVERSE_FIELD = new ParseField ( STRING1 ) ; \n public static final ParseField ORDER_FIELD = new ParseField ( STRING2 ) ; \n - private static final ParseField REVERSE_FORBIDDEN = new ParseField ( STRING1 ) ; \n private static final SortField SORT_SCORE = new SortField ( null , SortField . Type . SCORE ) ; \n private static final SortField SORT_SCORE_REVERSE = new SortField ( null , SortField . Type . SCORE , true ) ;", "msg_token": "Remove unused reverse parse field from ScoreSortBuilder"} {"diff": " public class SelectBeforeRunTaskDialog extends DialogWrapper { \n \n myCheckbox . setBackground ( UIUtil . getTreeTextBackground ( ) ) ; \n setBackground ( selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ) ; \n - Color foreground = selected ? UIUtil . getTreeSelectonForeground ( ) : UIUtil . getTreeTextForeground ( ) ; \n + Color foreground = selected ? UIUtil . getTreeSelectionForeground ( ) : UIUtil . getTreeTextForeground ( ) ; \n setForeground ( foreground ) ; \n myCheckbox . setForeground ( foreground ) ; \n myLabel . setForeground ( foreground ) ; \n public class MavenUIUtil { \n return baseComponent ; \n } \n \n - final Color foreground = selected ? UIUtil . getTreeSelectonForeground ( ) : UIUtil . getTreeTextForeground ( ) ; \n + final Color foreground = selected ? UIUtil . getTreeSelectionForeground ( ) : UIUtil . getTreeTextForeground ( ) ; \n \n panel . add ( baseComponent , BorderLayout . CENTER ) ; \n panel . setBackground ( selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ) ;", "msg_token": "remove duplicate typo method getTreeSelectonForeground"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class ConfigurableVisitor { \n - protected boolean accept ( Configurable configurable ) { \n - return true ; \n - } \n + public static final ConfigurableVisitor ALL = new ConfigurableVisitor ( ) { \n + @ override \n + protected boolean accept ( Configurable configurable ) { \n + return true ; \n + } \n + } ; \n + \n + protected abstract boolean accept ( Configurable configurable ) ; \n \n public final Configurable find ( @ notnull ConfigurableGroup . . . groups ) { \n for ( ConfigurableGroup group : groups ) {", "msg_token": "Add predefined instance of ConfigurableVisitor to visit all configurables"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class EmbeddedMongoAutoConfiguration { \n COMMENT \n COMMENT \n @ configuration \n - @ conditionalonclass ( MongoClient . class ) \n + @ conditionalonclass ( { MongoClient . class , MongoClientFactoryBean . class } ) \n protected static class EmbeddedMongoDependencyConfiguration \n extends MongoClientDependsOnBeanFactoryPostProcessor {", "msg_token": "Add condition on MongoClientFactoryBean"} {"diff": " import NAMESPACE ; \n \n \n abstract public class Contribution { \n + static final String SPECIAL_CATEGORY_NAME = STRING0 ; \n static final List validCategories = \n Arrays . asList ( STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , \n - STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , \n + STRING7 , STRING8 , STRING9 , STRING10 , SPECIAL_CATEGORY_NAME , STRING11 , \n STRING12 , STRING13 , STRING14 ) ; \n \n SINGLE \n abstract public class Contribution { \n } \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isSpecial ( ) { \n + if ( authorList . indexOf ( STRING15 ) != - NUMBER0 || categories . contains ( SPECIAL_CATEGORY_NAME ) ) \n + return true ; \n + return false ; \n + } \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added isSpecial to check if contrib is to be highlighted"} {"diff": " public class SettingsPort implements Serializable \n @ override \n public List < ? extends Option > options ( ) \n { \n - return Arrays . asList ( nativePort , thriftPort ) ; \n + return Arrays . asList ( nativePort , thriftPort , jmxPort ) ; \n } \n }", "msg_token": "add jmxPort to stress args ninja"} {"diff": " public class TieredBlockStoreTest { \n private static final long TEMP_BLOCK_ID = NUMBER0 ; \n private static final long BLOCK_SIZE = NUMBER1 ; \n private static final StorageLevelAlias FIRST_TIER_ALIAS = TieredBlockStoreTestUtils . TIER_ALIAS [ NUMBER2 ] ; \n - private static final StorageLevelAlias SECOND_TIER_ALIAS = \n - TieredBlockStoreTestUtils . TIER_ALIAS [ NUMBER3 ] ; \n + \n @ rule \n public TemporaryFolder mTestFolder = new TemporaryFolder ( ) ; \n @ rule", "msg_token": "Remove unused variable"} {"diff": " public interface Cache { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Cache get key type explicitly defines an IllegalStateException in case of a type mismatch"} {"diff": " public class WPActivityUtils { \n resources . updateConfiguration ( conf , resources . getDisplayMetrics ( ) ) ; \n \n if ( restart ) { \n - Intent refresh = new Intent ( context , context . getClass ( ) ) ; \n + SINGLE \n + Intent refresh = context . getIntent ( ) ; \n + if ( refresh == null ) { \n + refresh = new Intent ( context , context . getClass ( ) ) ; \n + } \n + \n refresh . addFlags ( Intent . FLAG_ACTIVITY_NO_ANIMATION ) ; \n context . startActivity ( refresh ) ; \n context . finish ( ) ;", "msg_token": "Using original intent of activity it was started with to restart it"} {"diff": " public final class Native implements Version { \n } \n \n \n - private static Map registeredClasses = new HashMap ( ) ; \n - private static Map registeredLibraries = new HashMap ( ) ; \n + private static Map registeredClasses = new WeakHashMap ( ) ; \n + private static Map registeredLibraries = new WeakHashMap ( ) ; \n \n private static void unregisterAll ( ) { \n synchronized ( registeredClasses ) {", "msg_token": "weakly hold direct mapped classes"} {"diff": " import NAMESPACE ; \n COMMENT \n public class TransactionCommittingResponseUnpacker implements ResponseUnpacker , Lifecycle \n { \n - private static final int DEFAULT_BATCH_SIZE = NUMBER0 ; \n + private static final int DEFAULT_BATCH_SIZE = NUMBER1 ; \n \n private class BatchingResponseHandler implements Response . Handler , \n Visitor < CommittedTransactionRepresentation , IOException >", "msg_token": "Increase slave commit batch size to reduce effects of forcing"} {"diff": " public class TextMergeChange extends ThreesideDiffChangeBase { \n \n @ nullable \n private MyGutterOperation createOperation ( @ notnull ThreeSide side ) { \n - if ( side == ThreeSide . BASE ) return null ; \n if ( isResolved ( side ) ) return null ; \n \n EditorEx editor = myViewer . getEditor ( side ) ; \n public class TextMergeChange extends ThreesideDiffChangeBase { \n myCtrlPressed = myViewer . getModifierProvider ( ) . isCtrlPressed ( ) ; \n myShiftPressed = myViewer . getModifierProvider ( ) . isShiftPressed ( ) ; \n \n - if ( mySide != ThreeSide . BASE ) { \n + if ( mySide == ThreeSide . BASE ) { \n + return createRevertRenderer ( ) ; \n + } \n + else { \n Side versionSide = mySide . select ( Side . LEFT , null , Side . RIGHT ) ; \n assert versionSide != null ; \n \n public class TextMergeChange extends ThreesideDiffChangeBase { \n } \n return createApplyRenderer ( versionSide ) ; \n } \n - \n - return null ; \n } \n }", "msg_token": "show cancel change action the middle editor"} {"diff": " public final class AlluxioWorkerRestApiTest extends RestApiTest { \n Map < String , Long > metrics = ( Map < String , Long > ) new ObjectMapper ( ) . readValue ( result , \n new TypeReference < Map < String , Long > > ( ) { } ) ; \n \n - Assert . assertTrue ( metrics . get ( STRING0 ) >= NUMBER0 ) ; \n + String blocksAccessedMetricName = \n + WorkerContext . getWorkerSource ( ) . getName ( ) + STRING1 + WorkerSource . BLOCKS_ACCESSED ; \n + Assert . assertTrue ( metrics . get ( blocksAccessedMetricName ) >= NUMBER0 ) ; \n } \n \n @ test", "msg_token": "Fix metrics test"} {"diff": " public class StreamRouterEngine { \n final List < Rule > regexRules = Lists . newArrayList ( ) ; \n \n for ( Stream stream : streams ) { \n - final boolean sufficient = stream . getMatchingType ( ) == Stream . MatchingType . OR ; \n for ( StreamRule streamRule : stream . getStreamRules ( ) ) { \n final Rule rule ; \n try { \n public class StreamRouterEngine { \n } \n } \n \n - \n for ( Stream stream : result ) { \n streamMetrics . markIncomingMeter ( stream . getId ( ) ) ; \n } \n public class StreamRouterEngine { \n private final StreamRuleMatcher matcher ; \n private final Stream . MatchingType matchingType ; \n \n - \n public Rule ( Stream stream , StreamRule rule , Stream . MatchingType matchingType ) throws InvalidStreamRuleTypeException { \n this . stream = stream ; \n this . rule = rule ;", "msg_token": "Remove unused local variable"} {"diff": " public class ActivityMain extends ActivityBase implements OnItemSelectedListener \n boolean parentAsked = ( ! ondemand || parentValue . contains ( STRING0 ) ) ; \n \n SINGLE \n - String value = PrivacyManager . getSetting ( userId , Meta . cTypeTemplate , settingName , \n - Boolean . toString ( parentRestricted && ! hook . isDangerous ( ) ) + ( parentAsked ? STRING1 : STRING2 ) ) ; \n + String value = PrivacyManager . getSetting ( userId , Meta . cTypeTemplate , settingName , null ) ; \n + if ( value == null ) \n + value = Boolean . toString ( parentRestricted && ! hook . isDangerous ( ) ) + ( parentAsked ? STRING1 : STRING2 ) ; \n holder . restricted = value . contains ( STRING3 ) ; \n holder . asked = ( ! ondemand || value . contains ( STRING0 ) ) ; \n Bitmap bmRestricted = ( parentRestricted && holder . restricted ? getFullCheckBox ( ) : getOffCheckBox ( ) ) ;", "msg_token": "Fix template value caching"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n + attrs . token + STRING0 ) ; \n return WindowManagerGlobal . ADD_BAD_APP_TOKEN ; \n } \n + } else if ( token . appWindowToken != null ) { \n + Slog . i ( TAG , STRING1 + type ) ; \n + SINGLE \n + token . appWindowToken = null ; \n } \n \n win = new WindowState ( this , session , client , token ,", "msg_token": "Disassociate system windows from apps"} {"diff": " public class DefaultDaemonCommandExecuter implements DaemonCommandExecuter { \n new CatchAndForwardDaemonFailure ( ) , \n new HandleStop ( ) , \n new UpdateDaemonStateAndHandleBusyDaemon ( ) , \n + new ForwardClientInput ( executorFactory ) , \n new ReturnResult ( ) , \n new ForwardOutput ( loggingOutput ) , \n new ResetDeprecationLogger ( ) , \n public class DefaultDaemonCommandExecuter implements DaemonCommandExecuter { \n new HandleSleep ( ) , \n new EstablishBuildEnvironment ( ) , \n new WatchForDisconnection ( ) , \n - new ForwardClientInput ( executorFactory ) , \n new ExecuteBuild ( loggingServices , launcherFactory ) \n ) . proceed ( ) ; \n } \n public class ForwardClientInput implements DaemonCommandAction { \n } catch ( Exception e ) { \n throw UncheckedException . asUncheckedException ( e ) ; \n } finally { \n - inputReceiver . requestStop ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + inputReceiver . stop ( ) ; \n } \n }", "msg_token": "Change the daemon processing pipeline to continue to wait for forwarded input until the client closes the connection"} {"diff": " public class ODistributedServerManager extends OServerHandlerAbstract { \n protected int serverOutSynchMaxBuffers ; \n protected boolean serverElectedForLeadership ; \n \n - private ODistributedServerDiscoverySignaler discoverySignaler ; \n - private ODistributedServerDiscoveryListener discoveryListener ; \n - private ODistributedServerLeaderChecker leaderCheckerTask ; \n + private volatile ODistributedServerDiscoverySignaler discoverySignaler ; \n + private volatile ODistributedServerDiscoveryListener discoveryListener ; \n + private volatile ODistributedServerLeaderChecker leaderCheckerTask ; \n private ODistributedServerRecordHook trigger ; \n private final OSharedResourceExternal lock = new OSharedResourceExternal ( ) ;", "msg_token": "fixed bug on leader election when there are few seconds between messages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectWorkspace { \n new DefaultClock ( ) ) ; \n } \n \n + public BuildTarget newBuildTarget ( String fullyQualifiedName ) \n + throws IOException , InterruptedException { \n + return BuildTargetFactory . newInstance ( asCell ( ) . getFilesystem ( ) , fullyQualifiedName ) ; \n + } \n + \n COMMENT \n public static class ProcessResult { \n private final int exitCode ;", "msg_token": "Add a newBuildTarget method to ProjectWorkspace"} {"diff": " public class ContextPreparer { \n COMMENT \n private void postPrepare ( JobExecutionContext . Builder contextBuilder , \n PreparerContext preparerContext ) { \n - while ( ! preparerContext . executionPhasesToProcess . isEmpty ( ) ) { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + int reProcessLimit = preparerContext . executionPhasesToProcess . size ( ) * NUMBER0 ; \n + for ( int i = NUMBER1 ; i < reProcessLimit && ! preparerContext . executionPhasesToProcess . isEmpty ( ) ; i ++ ) { \n List < ExecutionPhase > executionPhasesToProcess = Lists . newArrayList ( preparerContext . executionPhasesToProcess ) ; \n preparerContext . executionPhasesToProcess . clear ( ) ; \n for ( ExecutionPhase executionPhase : executionPhasesToProcess ) { \n processExecutionPhase ( executionPhase , preparerContext , contextBuilder ) ; \n } \n } \n + if ( ! preparerContext . executionPhasesToProcess . isEmpty ( ) ) { \n + throw new IllegalStateException ( STRING0 ) ; \n + } \n } \n \n private void processExecutionPhase ( ExecutionPhase executionPhase ,", "msg_token": "add infinite loop protection to ContextPreparer"} {"diff": " \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding missing license headers"} {"diff": " public class FallbackFactoryTest { \n public void fallbackFactory_example_retro ( ) { \n server . enqueue ( new MockResponse ( ) . setResponseCode ( NUMBER0 ) ) ; \n \n - SINGLE \n TestInterface api = target ( new FallbackApiRetro ( ) ) ; \n \n assertThat ( api . invoke ( ) ) . isEqualTo ( STRING0 ) ;", "msg_token": "Removes invalid comment"} {"diff": " abstract class HdmiCecLocalDevice { \n void addAndStartAction ( final HdmiCecFeatureAction action ) { \n assertRunOnServiceThread ( ) ; \n mActions . add ( action ) ; \n - if ( mService . isPowerStandbyOrTransient ( ) ) { \n + if ( mService . isPowerStandby ( ) ) { \n Slog . i ( TAG , STRING0 + action ) ; \n return ; \n } \n final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { \n @ override \n @ servicethreadonly \n protected void disableDevice ( boolean initiatedByCec , PendingActionClearedCallback callback ) { \n - super . disableDevice ( initiatedByCec , callback ) ; \n assertRunOnServiceThread ( ) ; \n mService . unregisterTvInputCallback ( mTvInputCallback ) ; \n SINGLE \n final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { \n \n disableSystemAudioIfExist ( ) ; \n disableArcIfExist ( ) ; \n + \n + super . disableDevice ( initiatedByCec , callback ) ; \n clearDeviceInfoList ( ) ; \n checkIfPendingActionsCleared ( ) ; \n }", "msg_token": "Let arc termination start before standby"} {"diff": " public class DocumentsActivity extends BaseActivity { \n \n private volatile boolean mRestoredStack ; \n private volatile boolean mExternal ; \n - private Context mContext ; \n private State mState ; \n \n public RestoreStackTask ( DocumentsActivity activity ) { \n public class DocumentsActivity extends BaseActivity { \n if ( DEBUG && ! mState . stack . isEmpty ( ) ) { \n Log . w ( TAG , STRING0 ) ; \n } \n - RootsCache roots = DocumentsApplication . getRootsCache ( mContext ) ; \n + RootsCache roots = DocumentsApplication . getRootsCache ( mOwner ) ; \n \n String packageName = mOwner . getCallingPackageMaybeExtra ( ) ; \n Uri resumeUri = RecentsProvider . buildResume ( packageName ) ;", "msg_token": "Fix an NPE in RestoreStackTask"} {"diff": " public class Element { \n } \n final boolean setsPos = tokenReference . setsPos ( ) ; \n if ( ! setsPos ) { \n - stringToken = referenceString . replaceAll ( STRING0 \n + stringToken = referenceString . replace ( STRING1 \n + tokenReference . getTokenRef ( ) , \n tokenReference . toTokenString ( ) ) ; \n } \n public class Element { \n } \n setPosElement ( posReference , tokenReference . posRegExp ( ) , negation ) ; \n } \n - stringToken = referenceString . replaceAll ( STRING0 \n + stringToken = referenceString . replace ( STRING1 \n + tokenReference . getTokenRef ( ) , STRING2 ) ; \n inflected = true ; \n }", "msg_token": "fix in case the checked text contains backslashes in unexpected places"} {"diff": " public class TiledMapPacker { \n final Settings texturePackerSettings = new Settings ( ) ; \n texturePackerSettings . paddingX = NUMBER0 ; \n texturePackerSettings . paddingY = NUMBER0 ; \n - texturePackerSettings . duplicatePadding = true ; \n + texturePackerSettings . bleed = true ; \n texturePackerSettings . alias = true ; \n texturePackerSettings . useIndexes = true ;", "msg_token": "Replace duplicatePadding with bleed"} {"diff": " public class TechnicalDebt implements Serializable { \n return result ; \n } \n \n - @ override \n - public String toString ( ) { \n - return super . toString ( ) ; \n - } \n }", "msg_token": "Fix quality flaw"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed java doc in FileInputFormat java"} {"diff": " public class PyActiveSdkConfigurable implements UnnamedConfigurable { \n if ( ! sdkList . contains ( selection ) ) { \n selection = null ; \n } \n - final boolean showAll = VirtualEnvProjectFilter . removeNotMatching ( myProject , sdkList ) ; \n + VirtualEnvProjectFilter . removeNotMatching ( myProject , sdkList ) ; \n SINGLE \n if ( selection != null && ! sdkList . contains ( selection ) ) { \n sdkList . add ( NUMBER0 , selection ) ; \n public class PyActiveSdkConfigurable implements UnnamedConfigurable { \n items . add ( sdk ) ; \n } \n \n - if ( showAll ) { \n - items . add ( PySdkListCellRenderer . SEPARATOR ) ; \n - items . add ( SHOW_ALL ) ; \n - } \n + items . add ( PySdkListCellRenderer . SEPARATOR ) ; \n + items . add ( SHOW_ALL ) ; \n \n mySdkCombo . setRenderer ( new PySdkListCellRenderer ( ) ) ; \n SINGLE", "msg_token": "show all in project interpreter combobox regardless virtualenv association"} {"diff": " public class SingleInspectionProfilePanel extends JPanel { \n \n @ override \n protected void onScopeAdded ( ) { \n + myTreeTable . updateUI ( ) ; \n updateOptionsAndDescriptionPanel ( ) ; \n }", "msg_token": "adding scope to group does not update containing inspections in tree view"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n COMMENT \n public static final int LAYER_TYPE_HARDWARE = NUMBER0 ; \n \n - @ viewdebug.exportedproperty ( category = STRING0 ) \n + @ viewdebug.exportedproperty ( category = STRING0 , mapping = { \n + @ viewdebug.inttostring ( from = LAYER_TYPE_NONE , to = STRING1 ) , \n + @ viewdebug.inttostring ( from = LAYER_TYPE_SOFTWARE , to = STRING2 ) , \n + @ viewdebug.inttostring ( from = LAYER_TYPE_HARDWARE , to = STRING3 ) \n + } ) \n int mLayerType = LAYER_TYPE_NONE ; \n Paint mLayerPaint ;", "msg_token": "Better debug info for layers"} {"diff": " public class ServiceBuilder { \n \n System . out . println ( STRING0 + entity . getName ( ) ) ; \n \n - if ( true || \n + if ( true ) { / * || \n entity . getName ( ) . equals ( STRING1 ) || \n - entity . getName ( ) . equals ( STRING2 ) ) { \n + COMMENT \n \n if ( entity . hasColumns ( ) ) { \n _createHbm ( entity ) ;", "msg_token": "Remove unused code"} {"diff": " public class TelephonyManager { \n public void listen ( PhoneStateListener listener , int events ) { \n String pkgForDebug = mContext != null ? mContext . getPackageName ( ) : STRING0 ; \n try { \n - Boolean notifyNow = ( getITelephony ( ) != null ) ; \n + Boolean notifyNow = true ; \n sRegistry . listen ( pkgForDebug , listener . callback , events , notifyNow ) ; \n } catch ( RemoteException ex ) { \n SINGLE", "msg_token": "TelephonyManager listen can have notifyNow always true"} {"diff": " public class ChartCalculator { \n } \n \n public void setAxesMargin ( int axisXMargin , int axisYMargin ) { \n - mContentRectWithMargins . left = mContentRectWithMargins . left + axisXMargin ; \n - mContentRectWithMargins . bottom = mContentRectWithMargins . bottom - axisYMargin ; \n - mContentRect . left = mContentRect . left + axisXMargin ; \n - mContentRect . bottom = mContentRect . bottom - axisYMargin ; \n + mContentRectWithMargins . bottom = mContentRectWithMargins . bottom - axisXMargin ; \n + mContentRectWithMargins . left = mContentRectWithMargins . left + axisYMargin ; \n + mContentRect . left = mContentRect . left + axisYMargin ; \n + mContentRect . bottom = mContentRect . bottom - axisXMargin ; \n } \n \n public void calculateViewport ( ) {", "msg_token": "Fixed setAxesMaring method"} {"diff": " public class IntegrationTest { \n \n @ test \n public void resolveSomeUrls ( ) throws InterruptedException { \n - physicalWebCollection . addUrlDevice ( new RankedDevice ( STRING0 , STRING1 , FLOAT0 ) ) ; \n - physicalWebCollection . addUrlDevice ( new RankedDevice ( STRING2 , STRING3 , FLOAT1 ) ) ; \n + physicalWebCollection . addUrlDevice ( new UrlDevice ( STRING0 , STRING1 ) ) ; \n + physicalWebCollection . addUrlDevice ( new UrlDevice ( STRING2 , STRING3 ) ) ; \n FetchPwsResultsTask task = new FetchPwsResultsTask ( NUMBER0 ) ; \n assertTrue ( task . run ( ) ) ; \n assertNull ( task . getException ( ) ) ;", "msg_token": "Removed RankedDevice from IntegrationTest"} {"diff": " public class IndicesMemoryCleaner extends AbstractComponent { \n public void fullMemoryClean ( ) { \n for ( IndexService indexService : indicesService ) { \n for ( IndexShard indexShard : indexService ) { \n - indexShard . flush ( new Engine . Flush ( ) . full ( true ) ) ; \n + try { \n + indexShard . flush ( new Engine . Flush ( ) . full ( true ) ) ; \n + } catch ( FlushNotAllowedEngineException e ) { \n + SINGLE \n + } catch ( IllegalIndexShardStateException e ) { \n + SINGLE \n + } catch ( Exception e ) { \n + logger . warn ( indexShard . shardId ( ) + STRING0 , e ) ; \n + } \n } \n } \n }", "msg_token": "ignore state exceptions when trying to flush"} {"diff": " class ViewFetcher { \n T viewToReturn = null ; \n long drawingTime = NUMBER0 ; \n if ( views == null ) { \n - views = getCurrentViews ( classToFilterBy ) ; \n + views = RobotiumUtils . removeInvisibleViews ( getCurrentViews ( classToFilterBy ) ) ; \n } \n for ( T view : views ) { \n if ( view . getDrawingTime ( ) > drawingTime && view . getHeight ( ) > NUMBER0 ) {", "msg_token": "Modified getView to only return a visible view"} {"diff": " public class MediaBrowserActivity extends ActionBarActivity implements MediaGrid \n mMediaItemFragment = MediaItemFragment . newInstance ( mediaId ) ; \n ft . add ( R . id . media_browser_container , mMediaItemFragment , MediaItemFragment . TAG ) ; \n ft . addToBackStack ( null ) ; \n - ft . commit ( ) ; \n + ft . commitAllowingStateLoss ( ) ; \n } \n }", "msg_token": "Using commitAllowingStateLoss to avoid runtime issues"} {"diff": " public class PaneManager \n case Build : \n return STRING0 ; \n case Learning : \n - return STRING1 ; \n + return getTab ( tab ) . getTitle ( ) ; \n } \n return STRING2 ; \n }", "msg_token": "use correct caption for minimized version of learning tab"} {"diff": " public class RunClassInSeparateJvmMachine { \n String systemPropertyDevMode \n = STRING0 + NinjaConstant . MODE_KEY_NAME + STRING1 + NinjaConstant . MODE_DEV ; \n \n + String contextPath = System . getProperty ( STRING2 , STRING3 ) ; \n + \n + String systemPropertyContextPath = STRING4 + contextPath ; \n + \n ProcessBuilder builder = new ProcessBuilder ( \n - javaBin , systemPropertyDevMode , STRING5 , classpathAsString , \n - classNameWithMainToRun ) ; \n + javaBin , systemPropertyDevMode , systemPropertyContextPath , \n + STRING5 , classpathAsString , classNameWithMainToRun ) ; \n \n builder . directory ( new File ( System . getProperty ( NinjaMavenPluginConstants . USER_DIR ) ) ) ;", "msg_token": "Adding support of ninja context for SuperDevMode"} {"diff": " public class HttpDownloader extends Downloader { \n SINGLE \n SINGLE \n if ( request . getFeedfileType ( ) == FeedMedia . FEEDFILETYPE_FEEDMEDIA ) { \n - String contentType = response . header ( STRING0 ) ; \n - Log . d ( TAG , STRING1 + contentType ) ; \n int contentLength = - NUMBER0 ; \n String contentLen = response . header ( STRING2 ) ; \n if ( contentLen != null ) { \n public class HttpDownloader extends Downloader { \n } catch ( NumberFormatException e ) { } \n } \n Log . d ( TAG , STRING3 + contentLength ) ; \n - if ( contentType . startsWith ( STRING4 ) && contentLength < NUMBER1 * NUMBER2 ) { \n + String contentType = response . header ( STRING0 ) ; \n + Log . d ( TAG , STRING1 + contentType ) ; \n + if ( contentType != null && contentType . startsWith ( STRING4 ) && \n + contentLength < NUMBER1 * NUMBER2 ) { \n onFail ( DownloadError . ERROR_FILE_TYPE , null ) ; \n return ; \n }", "msg_token": "Check content type for null"} {"diff": " public class HttpClientCodec implements ChannelUpstreamHandler , \n SINGLE \n SINGLE \n if ( HttpMethod . HEAD . equals ( method ) ) { \n - return true ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + return ! msg . isChunked ( ) ; \n } \n break ; \n case STRING0 :", "msg_token": "Fixed a bug where HEAD response is not read completely if it s transfer encoding is chunked"} {"diff": " public class FXAAFilter extends Filter { \n public void setSubPixelShift ( float subPixelShift ) { \n this . subPixelShift = subPixelShift ; \n if ( material != null ) { \n - material . setFloat ( STRING0 , this . subPixelShift ) ; \n + material . setFloat ( STRING1 , this . subPixelShift ) ; \n } \n }", "msg_token": "Fixed a typo in the setSubPixelShift in the FXAA filter that was causing a crash"} {"diff": " public abstract class ActivityManagerNative extends Binder implements IActivityM \n IActivityController watcher = IActivityController . Stub . asInterface ( \n data . readStrongBinder ( ) ) ; \n setActivityController ( watcher ) ; \n + reply . writeNoException ( ) ; \n return true ; \n }", "msg_token": "add reply writeNoException for quick response"} {"diff": " public class MetaClassImpl implements MetaClass , MutableMetaClass { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n public final static class MetaConstructor extends MetaMethod {", "msg_token": "dup author tag shouldn t be at method level"} {"diff": " public class DocumentImpl extends UserDataHolderBase implements DocumentEx { \n \n boolean markAsNeedsStrippingLater = false ; \n CharSequence text = myText . getCharArray ( ) ; \n - RangeMarker caretMarker = caretOffset < NUMBER0 ? null : createRangeMarker ( caretOffset , caretOffset ) ; \n + RangeMarker caretMarker = caretOffset < NUMBER0 || caretOffset > getTextLength ( ) ? null : createRangeMarker ( caretOffset , caretOffset ) ; \n try { \n for ( int line = NUMBER0 ; line < myLineSet . getLineCount ( ) ; line ++ ) { \n if ( inChangedLinesOnly && ! myLineSet . isModified ( line ) ) continue ;", "msg_token": "fix strip trailing spaces when caret points after end of document"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + @ runwith ( Arquillian . class ) \n + @ runasclient \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class InherritanceAnnSFSBTestCase extends AnnSBTest { \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - @ stateless \n + @ stateful \n @ securitydomain ( STRING0 ) \n - public class InherritanceAnnOnlyCheckSFSB extends ParentAnnOnlyCheck { \n + public class InherritanceAnnOnlyCheckSFSB extends ParentAnnOnlyCheck implements SimpleAuthorizationRemote { \n } \n import NAMESPACE ; \n COMMENT \n @ stateless \n @ securitydomain ( STRING0 ) \n - public class InherritanceAnnOnlyCheckSLSB extends ParentAnnOnlyCheck { \n + public class InherritanceAnnOnlyCheckSLSB extends ParentAnnOnlyCheck implements SimpleAuthorizationRemote { \n }", "msg_token": "fixing Inherritance test cases"} {"diff": " public final class EmbeddedGraphDatabase extends AbstractGraphDatabase implement \n graphDbImpl . shutdown ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean enableRemoteShell ( ) \n { \n return graphDbImpl . enableRemoteShell ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean enableRemoteShell ( \n final Map < String , Serializable > initialProperties ) \n { \n public final class EmbeddedReadOnlyGraphDatabase extends AbstractGraphDatabase \n graphDbImpl . shutdown ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean enableRemoteShell ( ) \n { \n return graphDbImpl . enableRemoteShell ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean enableRemoteShell ( \n final Map < String , Serializable > initialProperties ) \n {", "msg_token": "Added missing deprecated tags they are not copied from the interface"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EditPostActivity extends AppCompatActivity implements EditorFragmen \n mEditorFragment = ( EditorFragmentAbstract ) fragment ; \n if ( mEditorFragment instanceof EditorMediaUploadListener ) { \n mEditorMediaUploadListener = ( EditorMediaUploadListener ) mEditorFragment ; \n + \n + SINGLE \n + mEditorFragment . setWebViewHeader ( STRING0 , WordPress . getUserAgent ( ) ) ; \n + \n + SINGLE \n + SINGLE \n + Blog currentBlog = WordPress . getCurrentBlog ( ) ; \n + String token = AccountHelper . getDefaultAccount ( ) . getAccessToken ( ) ; \n + if ( currentBlog != null && currentBlog . isPrivate ( ) && ! TextUtils . isEmpty ( token ) ) { \n + mEditorFragment . setWebViewHeader ( STRING1 , STRING2 + token ) ; \n + } \n } \n break ; \n case NUMBER0 :", "msg_token": "Set User Agent and Authorization HTTP headers for the visual editor"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TransactionManagerPostProcessor extends InstantiationAwareBeanPostP \n private PlatformTransactionManager transactionManager ; \n private boolean initialized = false ; \n \n - public void setTransactionManager ( PlatformTransactionManager transactionManager ) { \n - this . transactionManager = transactionManager ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT \n public class TransactionManagerPostProcessor extends InstantiationAwareBeanPostP \n SINGLE \n SINGLE \n if ( ! this . initialized ) { \n - String [ ] beanNames = this . beanFactory . getBeanNamesForType ( PlatformTransactionManager . class ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + String [ ] beanNames = BeanFactoryUtils . beanNamesForTypeIncludingAncestors ( \n + this . beanFactory , \n + PlatformTransactionManager . class , \n + false , \n + false ) ; \n \n SINGLE \n SINGLE", "msg_token": "Fixed bug that was causing Grails applications to hang on startup and throw OutOfMemoryErrors"} {"diff": " public class TaskListActivity extends AstridActivity implements MainMenuListener \n mainMenuPopover . suppressNextKeyEvent ( ) ; \n mainMenu . performClick ( ) ; \n return true ; \n + } else if ( keyCode == KeyEvent . KEYCODE_BACK ) { \n + TaskEditFragment tef = getTaskEditFragment ( ) ; \n + if ( tef != null && tef . onKeyDown ( keyCode ) ) \n + return true ; \n } \n return super . onKeyDown ( keyCode , event ) ; \n }", "msg_token": "Fixed a bug where tablet back button wouldn t fully dismiss the task edit screen"} {"diff": " public abstract class Number implements java . io . Serializable { \n public short shortValue ( ) { \n return NUMBER0 ; \n } \n - \n - private static final long serialVersionUID = - NUMBER1 \n }", "msg_token": "Fixed syntax error in previous pull request"} {"diff": " public abstract class LagartoServletFilter implements Filter { \n BufferResponseWrapper wrapper = new BufferResponseWrapper ( response ) ; \n filterChain . doFilter ( servletRequest , wrapper ) ; \n \n + SINGLE \n + SINGLE \n + servletResponse . setContentLength ( - NUMBER0 ) ; \n + \n char [ ] content = wrapper . getBufferContentAsChars ( ) ; \n \n if ( ( content != null ) && ( content . length != NUMBER1 ) ) {", "msg_token": "Resets content len in lagarto filter"} {"diff": " public class JavaParameters extends SimpleJavaParameters { \n \n private ProjectRootsTraversing . RootTraversePolicy getPolicy ( Project project , Module module , int classPathType ) { \n ProjectRootsTraversing . RootTraversePolicy result = ( classPathType & TESTS_ONLY ) != NUMBER0 \n - ? ProjectClasspathTraversing . FULL_CLASSPATH_RECURSIVE \n - : ProjectClasspathTraversing . FULL_CLASSPATH_WITHOUT_TESTS ; \n + ? ( classPathType & JDK_ONLY ) != NUMBER0 ? ProjectClasspathTraversing . FULL_CLASSPATH_RECURSIVE : ProjectClasspathTraversing . FULL_CLASS_RECURSIVE_WO_JDK \n + : ( classPathType & JDK_ONLY ) != NUMBER0 ? ProjectClasspathTraversing . FULL_CLASSPATH_WITHOUT_TESTS : ProjectClasspathTraversing . FULL_CLASSPATH_WITHOUT_JDK_AND_TESTS ; \n \n for ( JavaClasspathPolicyExtender each : Extensions . getExtensions ( JavaClasspathPolicyExtender . EP_NAME ) ) { \n if ( project == null ) {", "msg_token": "add groovy all jar to script classpath in case of embeddable distribution"} {"diff": " public class MapRoutePreferencesControl extends MapControls { \n list . add ( new GPXLocalRoutingParameter ( R . string . calculate_osmand_route_gpx , \n getString ( R . string . calculate_osmand_route_gpx ) , rparams . isCalculateOsmAndRoute ( ) ) ) ; \n } \n - if ( rm == null || ! settings . CALC_GPX_ROUTE . get ( ) ) { \n + if ( rm == null || ( rparams != null && ! rparams . isCalculateOsmAndRoute ( ) ) ) { \n return list ; \n } \n for ( RoutingParameter r : rm . getParameters ( ) . values ( ) ) { \n public class MapRoutePreferencesControl extends MapControls { \n public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { \n if ( position == NUMBER0 ) { \n mapActivity . getRoutingHelper ( ) . setGpxParams ( null ) ; \n + updateParameters ( ) ; \n } else if ( position == NUMBER1 ) { \n openGPXFileSelection ( gpxSpinner ) ; \n } else if ( position == NUMBER2 ) {", "msg_token": "Fix small issues"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ApacheDSContainer implements InitializingBean , DisposableBean , Life \n SINGLE \n \n if ( ldifs != null && ldifs . length > NUMBER0 ) { \n - String ldifFile = ldifs [ NUMBER0 ] . getURI ( ) . toString ( ) ; \n + String ldifFile ; \n + \n + try { \n + ldifFile = ldifs [ NUMBER0 ] . getFile ( ) . getAbsolutePath ( ) ; \n + } catch ( IOException e ) { \n + ldifFile = ldifs [ NUMBER0 ] . getURI ( ) . toString ( ) ; \n + } \n logger . info ( STRING0 + ldifFile ) ; \n LdifFileLoader loader = new LdifFileLoader ( service . getAdminSession ( ) , ldifFile ) ; \n loader . execute ( ) ;", "msg_token": "Only use URI for ldif path if file isn t found"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class InstalledPluginsManagerMain extends PluginManagerMain { \n myActionsPanel . add ( installFromDisk ) ; \n \n StatusText emptyText = pluginTable . getEmptyText ( ) ; \n - emptyText . setText ( STRING0 ) ; \n - emptyText . appendText ( STRING1 ) ; \n - emptyText . appendText ( STRING2 , SimpleTextAttributes . LINK_ATTRIBUTES , new BrowseRepoListener ( null ) ) ; \n - emptyText . appendText ( STRING3 ) ; \n + emptyText . setText ( STRING4 ) ; \n + emptyText . appendText ( STRING5 , SimpleTextAttributes . LINK_ATTRIBUTES , new BrowseRepoListener ( null ) ) ; \n } \n \n private static void chooseAndInstall ( @ notnull final InstalledPluginsTableModel model ,", "msg_token": "tweak empty text for plugin manager"} {"diff": " \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class LiquidStack \n { \n return true ; \n } \n - \n + \n return isLiquidEqual ( LiquidContainerRegistry . getLiquidForFilledItem ( other ) ) ; \n } \n \n public class LiquidStack \n liquidstack . readFromNBT ( nbt ) ; \n return liquidstack . itemID == NUMBER0 ? null : liquidstack ; \n } \n + \n + @ sideonly ( CLIENT ) \n + private Icon renderingIcon ; \n + \n + @ sideonly ( CLIENT ) \n + public Icon getRenderingIcon ( ) \n + { \n + return renderingIcon ; \n + } \n + \n + @ sideonly ( CLIENT ) \n + public void setRenderingIcon ( Icon icon ) \n + { \n + this . renderingIcon = icon ; \n + } \n }", "msg_token": "Add an Icon to the LiquidStack for rendering the liquid in various ways"} {"diff": " public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n mHandler . post ( new Runnable ( ) { \n public void run ( ) { \n try { \n - ActivityManagerNative . getDefault ( ) . switchUser ( UserHandle . USER_OWNER ) ; \n + IActivityManager am = ActivityManagerNative . getDefault ( ) ; \n + if ( am . getCurrentUser ( ) . id == userHandle ) { \n + am . switchUser ( UserHandle . USER_OWNER ) ; \n + } \n if ( ! mUserManager . removeUser ( userHandle ) ) { \n Slog . w ( LOG_TAG , STRING0 + userHandle ) ; \n }", "msg_token": "Only switch user if current user is being wiped"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DialogBuilder implements Disposable { \n } \n \n private MyDialogWrapper showImpl ( boolean isModal ) { \n - LOG . assertTrue ( myTitle != null && myTitle . trim ( ) . length ( ) != NUMBER0 , \n + LOG . assertTrue ( ! StringUtil . isEmptyOrSpaces ( myTitle ) , \n String . format ( STRING0 , myTitle ) ) ; \n myDialogWrapper . setTitle ( myTitle ) ; \n myDialogWrapper . init ( ) ; \n public class DialogBuilder implements Disposable { \n myDialogWrapper . setOKActionEnabled ( isEnabled ) ; \n } \n \n + @ notnull \n + public DialogBuilder okActionEnabled ( boolean isEnabled ) { \n + myDialogWrapper . setOKActionEnabled ( isEnabled ) ; \n + return this ; \n + } \n + \n public CustomizableAction getOkAction ( ) { \n return get ( getActionDescriptors ( ) , OkActionDescriptor . class ) ; \n }", "msg_token": "use our string util add convenient okActionEnabled"} {"diff": " public class RecipientListParallelTest extends ContextTestSupport { \n \n public void testRecipientListParallel ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n - mock . expectedBodiesReceived ( STRING1 , STRING2 , STRING3 ) ; \n + mock . expectedBodiesReceivedInAnyOrder ( STRING1 , STRING2 , STRING3 ) ; \n \n template . sendBodyAndHeader ( STRING4 , STRING5 , STRING6 , STRING7 ) ;", "msg_token": "Fixed test on slow boxes"} {"diff": " abstract public class GDataExtension { \n } \n } \n } \n + scanner . close ( ) ; \n if ( row != null ) { \n rows . add ( row ) ; \n }", "msg_token": "Fix resource leak"} {"diff": " public class IndexDatabase { \n COMMENT \n COMMENT \n COMMENT \n - void addIndexChangedListener ( IndexChangedListener listener ) { \n + public void addIndexChangedListener ( IndexChangedListener listener ) { \n listeners . add ( listener ) ; \n } \n \n public class IndexDatabase { \n COMMENT \n COMMENT \n COMMENT \n - void removeIndexChangedListener ( IndexChangedListener listener ) { \n + public void removeIndexChangedListener ( IndexChangedListener listener ) { \n listeners . remove ( listener ) ; \n }", "msg_token": "Make IndexChangedListener public"} {"diff": " class Clicker { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class Clicker { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n class Clicker { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for the clickOnText methods both in Solo and Clicker"} {"diff": " public abstract class GrTypeDefinitionImpl extends GroovyPsiElementImpl implemen \n } \n i = extendsRefs . length ; \n } else if ( ! isInterface ( ) ) { \n - SINGLE \n - result [ NUMBER0 ] = getManager ( ) . getElementFactory ( ) . createTypeByFQClassName ( STRING0 , getResolveScope ( ) ) ; \n + result [ NUMBER0 ] = getManager ( ) . getElementFactory ( ) . createTypeByFQClassName ( STRING1 , getResolveScope ( ) ) ; \n i = NUMBER1 ; \n }", "msg_token": "changed default implementation"} {"diff": " public class DataBindingUtils { \n public static BindingResult bindObjectToDomainInstance ( GrailsDomainClass domain , Object object , \n Object source , List include , List exclude , String filter ) { \n BindingResult bindingResult = null ; \n - SINGLE \n boolean useLegacyBinder = false ; \n - final GrailsApplication grailsApplication = GrailsWebRequest . lookupApplication ( ) ; \n + GrailsApplication grailsApplication = null ; \n + if ( domain != null ) { \n + grailsApplication = domain . getGrailsApplication ( ) ; \n + } \n + if ( grailsApplication == null ) { \n + grailsApplication = GrailsWebRequest . lookupApplication ( ) ; \n + } \n if ( grailsApplication != null ) { \n if ( Boolean . TRUE . equals ( grailsApplication . getFlatConfig ( ) . get ( STRING0 ) ) ) { \n useLegacyBinder = true ;", "msg_token": "rearrange code which retrieves GrailsApplication for data binding"} {"diff": " public class FunctionUtil { \n return best ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + public static float [ ] toFloat ( List < Double > list ) { \n + float [ ] result = new float [ list . size ( ) ] ; \n + for ( int i = NUMBER0 ; i < result . length ; i ++ ) { \n + result [ i ] = list . get ( i ) . floatValue ( ) ; \n + } \n + return result ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fix merge issue"} {"diff": " public class QuickTimeStream \n { \n CVPixelBuffer pixelBuffer = ( CVPixelBuffer ) videoFrame ; \n boolean transferData ; \n + Format videoFrameFormat = getVideoFrameFormat ( pixelBuffer ) ; \n \n synchronized ( dataSyncRoot ) \n { \n public class QuickTimeStream \n nextData . capacity ) ) ; \n nextDataTimeStamp = System . nanoTime ( ) ; \n if ( nextDataFormat == null ) \n - nextDataFormat = getVideoFrameFormat ( pixelBuffer ) ; \n + nextDataFormat = videoFrameFormat ; \n } \n return ; \n } \n public class QuickTimeStream \n data . setLength ( pixelBuffer . getBytes ( data . ptr , data . capacity ) ) ; \n dataTimeStamp = System . nanoTime ( ) ; \n if ( dataFormat == null ) \n - dataFormat = getVideoFrameFormat ( pixelBuffer ) ; \n + dataFormat = videoFrameFormat ; \n } \n if ( nextData != null ) \n {", "msg_token": "Fix possible deadlock when switching very quickly from media configuration form and another form"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n abstract public class DaemonClientServicesSupport extends DefaultServiceRegistry \n return new TcpOutgoingConnector ( ) ; \n } \n \n - protected ProgressLoggerFactory createProgressLoggerFactory ( ) { \n - return new DefaultProgressLoggerFactory ( new ProgressLoggingBridge ( get ( OutputEventListener . class ) ) , new TrueTimeProvider ( ) ) ; \n - } \n - \n DaemonConnector createDaemonConnector ( DaemonRegistry daemonRegistry , OutgoingConnector outgoingConnector , DaemonStarter daemonStarter ) { \n return new DefaultDaemonConnector ( daemonRegistry , outgoingConnector , daemonStarter ) ; \n }", "msg_token": "Cleanup an unused service provider in daemon client services registry"} {"diff": " public class AndroidGDataClient implements GDataClient { \n GDataSerializer entry ) \n throws HttpException , IOException { \n HttpEntity entity = createEntityForEntry ( entry , GDataSerializer . FORMAT_UPDATE ) ; \n + final String method = entry . doesSupportPartial ( ) ? STRING0 : STRING1 ; \n InputStream in = createAndExecuteMethod ( \n - new PostRequestCreator ( STRING1 , entity ) , \n + new PostRequestCreator ( method , entity ) , \n editUri , \n authToken , \n eTag ,", "msg_token": "Added patch support based on serializer state in the android client"} {"diff": " public class PVector implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void set ( float x , float y , float z ) { \n this . x = x ; \n public class PVector implements Serializable { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public void set ( float x , float y ) { \n this . x = x ;", "msg_token": "Conform PVector set reference to standard practice"} {"diff": " public class FileSystemSourceCache { \n \n Content content = ensureContent ( directory ) ; \n synchronized ( content ) { \n - if ( content . lastChecked != NEVER_CHECKED && now - content . lastChecked < RECHECK_FILESYSTEM && getLastModifiedOrMissing ( configFile ) == content . lastModified ) { \n + if ( content . lastChecked != NEVER_CHECKED && now - content . lastChecked < RECHECK_FILESYSTEM ) { \n return content . source ; \n } \n content . lastChecked = now ;", "msg_token": "config Don t access the file system nearly every call"} {"diff": " public class JavadocTypeCheck \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private void checkTag ( \n - int aLineNo , String [ ] aCmt , \n - String aTag , RE aTagRE , RE aFormatRE , String aFormat ) \n + int aLineNo , \n + String [ ] aCmt , \n + String aTag , \n + RE aTagRE , \n + RE aFormatRE , \n + String aFormat ) \n { \n if ( aTagRE == null ) { \n return ; \n public class JavadocTypeCheck \n tagCount += NUMBER0 ; \n final int contentStart = aTagRE . getParenStart ( NUMBER0 ) ; \n final String content = s . substring ( contentStart ) ; \n - if ( ! aFormatRE . match ( content ) ) \n - { \n + if ( ! aFormatRE . match ( content ) ) { \n log ( aLineNo , STRING0 , aTag , aFormat ) ; \n }", "msg_token": "corrected Checkstyle errors"} {"diff": " public class InnerClassEntity extends FieldEntity { \n ( ( InnerClassEntity ) fieldEntity ) . generateSupperFiled ( mFactory , subClass ) ; \n ( ( InnerClassEntity ) fieldEntity ) . setFieldTypeSuffix ( getClassFieldType ( ) ) ; \n ( ( InnerClassEntity ) fieldEntity ) . generateClass ( mFactory , subClass ) ; \n - fieldEntity . generateFiled ( mFactory , subClass , this ) ; \n } else { \n fieldEntity . generateFiled ( mFactory , subClass , this ) ; \n }", "msg_token": "fix bug for nested issue"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class PoolBagEntry extends BagEntry \n + public final class PoolBagEntry extends BagEntry \n { \n public final Connection connection ; \n public final long expirationTime ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class PoolBagEntry extends BagEntry \n + public final class PoolBagEntry extends BagEntry \n { \n public final Connection connection ; \n public final long expirationTime ;", "msg_token": "Declare PoolBagEntry class final"} {"diff": " public class CoverageConfigurable extends SettingsEditor < RunConfigurationBase > { \n \n final GridBagConstraints gc = new GridBagConstraints ( NUMBER0 , GridBagConstraints . RELATIVE , \n NUMBER1 , NUMBER1 , NUMBER1 , NUMBER0 , \n - GridBagConstraints . NORTHWEST , GridBagConstraints . BOTH , \n + GridBagConstraints . NORTHWEST , GridBagConstraints . HORIZONTAL , \n JBUI . emptyInsets ( ) , NUMBER0 , NUMBER0 ) ; \n result . add ( myRunnerPanel , gc ) ; \n \n public class CoverageConfigurable extends SettingsEditor < RunConfigurationBase > { \n myTrackTestSourcesCb = new JCheckBox ( STRING0 ) ; \n panel . add ( myTrackTestSourcesCb , bagConstraints ) ; \n \n + gc . weighty = NUMBER1 ; \n + gc . fill = GridBagConstraints . BOTH ; \n result . add ( panel , gc ) ; \n \n myCoverageNotSupportedLabel = new JLabel ( CodeInsightBundle . message ( STRING1 ) ) ;", "msg_token": "give rest space to filters"} {"diff": " public class JavaStubGenerator \n this . outputPath = outputPath ; \n this . requireSuperResolved = requireSuperResolved ; \n this . java5 = java5 ; \n + outputPath . mkdirs ( ) ; \n } \n \n public JavaStubGenerator ( final File outputPath ) {", "msg_token": "Make the dest dir"} {"diff": " public class ByteBuddyAgent { \n @ override \n public Accessor resolve ( Class < ? > virtualMachineType ) { \n try { \n - return new Simple ( virtualMachineType , ( String ) getPid . invoke ( current . invoke ( STATIC_MEMBER ) ) ) ; \n + return new Simple ( virtualMachineType , getPid . invoke ( current . invoke ( STATIC_MEMBER ) ) . toString ( ) ) ; \n } catch ( IllegalAccessException exception ) { \n throw new UnsupportedOperationException ( STRING0 ) ; \n } catch ( InvocationTargetException exception ) {", "msg_token": "Fixed assumed type of the process handler to be a long rather than a string"} {"diff": " public class DruidDataSourceC3P0Adapter implements DataSource , DruidDataSourceC3 \n this . setAcquireIncrement ( NUMBER0 ) ; \n this . setAcquireIncrement ( NUMBER1 ) ; \n this . setAcquireRetryDelay ( NUMBER2 ) ; \n - this . setAutoCommitOnClose ( false ) ; \n + this . setAutoCommitOnClose ( true ) ; \n this . setAutomaticTestTable ( null ) ; \n this . setCheckoutTimeout ( NUMBER3 ) ; \n this . setDebugUnreturnedConnectionStackTraces ( false ) ;", "msg_token": "bug fixed for DruidDataSourceC3P0Adapter set autocommit true"} {"diff": " public class GradleVersion implements Comparable < GradleVersion > { \n \n static { \n URL resource = GradleVersion . class . getResource ( RESOURCE_NAME ) ; \n + if ( resource == null ) { \n + throw new GradleException ( format ( STRING0 , RESOURCE_NAME ) ) ; \n + } \n \n InputStream inputStream = null ; \n try {", "msg_token": "Replace NRE by proper GradleException"} {"diff": " public class VirtualEnvSdkFlavor extends CPythonSdkFlavor { \n final String childName = child . getName ( ) ; \n for ( String name : NAMES ) { \n if ( childName . startsWith ( name ) ) { \n - if ( ! childName . endsWith ( STRING0 ) ) candidates . add ( PythonSdkType . shortenDirName ( child . getPath ( ) ) ) ; \n + if ( ! childName . endsWith ( STRING0 ) ) candidates . add ( child . getPath ( ) ) ; \n break ; \n } \n }", "msg_token": "fixed duplicated path in add suggestions to Add interpreter"} {"diff": " abstract class GraphObjectListFragment < T extends GraphObject > extends Fragment \n @ override \n void updateCheckboxState ( CheckBox checkBox , boolean graphObjectSelected ) { \n checkBox . setChecked ( graphObjectSelected ) ; \n - checkBox . setVisibility ( selectionStrategy . shouldShowCheckBoxIfUnselected ( ) ? \n - View . VISIBLE : View . GONE ) ; \n + int visible = ( graphObjectSelected || selectionStrategy . shouldShowCheckBoxIfUnselected ( ) ) ? View . VISIBLE : View . GONE ; \n + checkBox . setVisibility ( visible ) ; \n } \n } \n }", "msg_token": "FriendPickerFragment should show check marks in single select mode"} {"diff": " public abstract class AbstractAjaxCallback < T , K > implements Runnable { \n public void failure ( int code , String message ) { \n \n if ( status != null ) { \n - status . code ( code ) . message ( message ) ; \n - callback ( ) ; \n + status . code ( code ) . message ( message ) . done ( ) ; \n + \n + if ( uiCallback ) { \n + AQUtility . post ( this ) ; \n + } else { \n + afterWork ( ) ; \n + } \n + \n + SINGLE \n } \n \n }", "msg_token": "Fix issue where auth failure callback might not be called with ui"} {"diff": " import static NAMESPACE ; \n COMMENT \n public class ConfigureUtil { \n \n - public static < T > T configureByMap ( Map < String , ? > properties , T delegate ) { \n + public static < T > T configureByMap ( Map < ? , ? > properties , T delegate ) { \n DynamicObject dynamicObject = DynamicObjectUtil . asDynamicObject ( delegate ) ; \n \n - for ( Map . Entry < String , ? > entry : properties . entrySet ( ) ) { \n - String name = entry . getKey ( ) ; \n + for ( Map . Entry < ? , ? > entry : properties . entrySet ( ) ) { \n + String name = entry . getKey ( ) . toString ( ) ; \n Object value = entry . getValue ( ) ; \n \n if ( dynamicObject . hasProperty ( name ) ) {", "msg_token": "Accept a map with any key type for configureByMap implicitly toString ing the keys"} {"diff": " public class FavoritesTreeFragment extends OsmandExpandableListFragment { \n sendIntent . setType ( STRING0 ) ; \n startActivity ( sendIntent ) ; \n } catch ( IOException e ) { \n - Toast . makeText ( getActivity ( ) , STRING1 + e . getMessage ( ) , Toast . LENGTH_LONG ) . show ( ) ; \n + SINGLE \n e . printStackTrace ( ) ; \n } \n }", "msg_token": "remove test toast again"} {"diff": " public class EditPoiDialogFragment extends DialogFragment { \n @ override \n public void onItemSelected ( AdapterView < ? > parent , View view , int position , long id ) { \n Object item = parent . getAdapter ( ) . getItem ( position ) ; \n - SINGLE \n - if ( subCategories . containsKey ( item . toString ( ) . toLowerCase ( ) ) ) { \n - SINGLE \n - PoiType pt = subCategories . get ( item ) ; \n - String keyName = pt . getKeyName ( ) ; \n - setAdapterForPoiTypeEditText ( ) ; \n - poiTypeEditText . setText ( keyName ) ; \n - } \n + poiTypeEditText . setText ( item . toString ( ) ) ; \n + setAdapterForPoiTypeEditText ( ) ; \n } \n \n @ override", "msg_token": "Fix issues related to poi editing"} {"diff": " public abstract class AbstractOption \n protected AbstractOption ( String aStrRep ) \n { \n mStrRep = aStrRep . trim ( ) . toLowerCase ( ) ; \n - Map strToOpt = getStrToOpt ( ) ; \n + final Map strToOpt = getStrToOpt ( ) ; \n strToOpt . put ( mStrRep , this ) ; \n } \n \n public abstract class AbstractOption \n COMMENT \n public AbstractOption decode ( String aStrRep ) \n { \n - Map strToOpt = getStrToOpt ( ) ; \n + final Map strToOpt = getStrToOpt ( ) ; \n return ( AbstractOption ) strToOpt . get ( aStrRep . trim ( ) . toLowerCase ( ) ) ; \n }", "msg_token": "tighten the noose"} {"diff": " public class DefaultFailover implements Failover { \n } \n \n private ImmutableList < Session > prepareTargetSessions ( Session targetSession ) { \n + if ( file . length ( ) == NUMBER0 ) { \n + return of ( targetSession ) ; \n + } \n + \n ImmutableList < Session > sessions = restoreSessions ( this . file ) ; \n Optional < Session > session = tryFind ( sessions , isForRequest ( targetSession . getRequest ( ) ) ) ; \n if ( session . isPresent ( ) ) {", "msg_token": "checked empty failover file to avoid warning"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface BandwidthMeter { \n + public interface BandwidthMeter extends TransferListener { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public interface EventListener { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + void onBandwidthSample ( int elapsedMs , long bytes , long bitrate ) ; \n + } \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class DefaultBandwidthMeter implements BandwidthMeter , TransferListener { \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - public interface EventListener { \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - void onBandwidthSample ( int elapsedMs , long bytes , long bitrate ) ; \n - \n - } \n + public class DefaultBandwidthMeter implements BandwidthMeter { \n \n private static final int DEFAULT_MAX_WEIGHT = NUMBER0 ;", "msg_token": "Reorganize BandwidthMeter interface"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public class IcedWrapper < I extends IcedWrapper , S extends IcedWrapper COMMENT > extends Schema < I , IcedWrapper < I , S > > { \n + public class IcedWrapper extends Schema < Iced , IcedWrapper > { \n + public IcedWrapper ( ) { super ( ) ; } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix IcedWrapper schema warning by making it extend Schema"} {"diff": " public class MessageFramer { \n \n COMMENT \n private class OutputStreamAdapter extends OutputStream { \n - private final byte [ ] singleByte = new byte [ NUMBER0 ] ; \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n public void write ( int b ) { \n - singleByte [ NUMBER1 ] = ( byte ) b ; \n + byte [ ] singleByte = new byte [ ] { ( byte ) b } ; \n write ( singleByte , NUMBER1 , NUMBER0 ) ; \n } \n \n public class MessageFramer { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ override", "msg_token": "remove extra allocation in MessageFramer"} {"diff": " public abstract class AbstractMapDataStore < K , V > implements MapDataStore < K , V > { \n if ( keys == null || keys . isEmpty ( ) ) { \n return Collections . emptyList ( ) ; \n } \n - final List < Object > objectKeys = new ArrayList < Object > ( ) ; \n + final List < Object > objectKeys = new ArrayList < Object > ( keys . size ( ) ) ; \n for ( Object key : keys ) { \n objectKeys . add ( toObject ( key ) ) ; \n }", "msg_token": "give capacity during init"} {"diff": " public abstract class Operation implements DataSerializable { \n private long invocationTime = - NUMBER0 ; \n private long callTimeout = Long . MAX_VALUE ; \n private String callerUuid ; \n - SINGLE \n - @ deprecated \n - private boolean async = false ; \n private String executorName ; \n \n SINGLE \n public abstract class Operation implements DataSerializable { \n out . writeLong ( invocationTime ) ; \n out . writeLong ( callTimeout ) ; \n out . writeUTF ( callerUuid ) ; \n - out . writeBoolean ( async ) ; SINGLE \n out . writeUTF ( executorName ) ; \n writeInternal ( out ) ; \n } \n public abstract class Operation implements DataSerializable { \n invocationTime = in . readLong ( ) ; \n callTimeout = in . readLong ( ) ; \n callerUuid = in . readUTF ( ) ; \n - async = in . readBoolean ( ) ; SINGLE \n executorName = in . readUTF ( ) ; \n readInternal ( in ) ; \n }", "msg_token": "Removed unsued operation field"} {"diff": " public abstract class AbstractByteBufferedOutputChannel < T extends Record > extend \n COMMENT \n private long amountOfDataTransmitted = NUMBER0 L ; \n \n - private static final Log LOG = LogFactory . getLog ( AbstractByteBufferedInputChannel . class ) ; \n + private static final Log LOG = LogFactory . getLog ( AbstractByteBufferedOutputChannel . class ) ; \n \n COMMENT \n COMMENT \n public abstract class AbstractByteBufferedOutputChannel < T extends Record > extend \n \n if ( ! this . closeRequested ) { \n this . closeRequested = true ; \n + if ( this . serializationBuffer . dataLeftFromPreviousSerialization ( ) ) { \n + SINGLE \n + flush ( ) ; \n + } \n \n if ( ! isBroadcastChannel ( ) || getChannelIndex ( ) == NUMBER0 ) { \n transferEvent ( new ByteBufferedChannelCloseEvent ( ) ) ;", "msg_token": "fixed too early closevent for large records"} {"diff": " import NAMESPACE ; \n } \n CharSequence text = getText ( ) ; \n SINGLE \n - mLayout = new WebTextViewLayout ( text , text , getPaint ( ) , w , \n + mLayout = new WebTextViewLayout ( text , text , getPaint ( ) , mLayout . getWidth ( ) , \n mLayout . getAlignment ( ) , mLayout . getSpacingMultiplier ( ) , \n mLayout . getSpacingAdd ( ) , false , null , ellipsisWidth , \n lineHeight ) ;", "msg_token": "Use the same width as the TextView created layout"} {"diff": " public class KeyguardPasswordView extends KeyguardAbsKeyInputView \n post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - mPasswordEntry . requestFocus ( ) ; \n - if ( reason != KeyguardSecurityView . SCREEN_ON || mShowImeAtScreenOn ) { \n - mImm . showSoftInput ( mPasswordEntry , InputMethodManager . SHOW_IMPLICIT ) ; \n + if ( isShown ( ) ) { \n + mPasswordEntry . requestFocus ( ) ; \n + if ( reason != KeyguardSecurityView . SCREEN_ON || mShowImeAtScreenOn ) { \n + mImm . showSoftInput ( mPasswordEntry , InputMethodManager . SHOW_IMPLICIT ) ; \n + } \n } \n } \n } ) ;", "msg_token": "Only request IME if password view is showing"} {"diff": " public class SvnVcs extends AbstractVcs < CommittedChangeList > { \n final String property = System . getProperty ( KEEP_CONNECTIONS_KEY ) ; \n final boolean keep ; \n if ( StringUtil . isEmptyOrSpaces ( property ) ) { \n - keep = true ; SINGLE \n + keep = ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ; SINGLE \n } else { \n keep = Boolean . getBoolean ( KEEP_CONNECTIONS_KEY ) ; \n } \n public abstract class SvnTestCase extends AbstractVcsTestCase { \n \n @ before \n public void setUp ( ) throws Exception { \n - System . setProperty ( STRING0 , STRING1 ) ; \n + SINGLE \n UIUtil . invokeAndWaitIfNeeded ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "do not keep connection in pool for tests mode"} {"diff": " public class ReaderPostListFragment extends Fragment \n } \n mCurrentBlogId = args . getLong ( ReaderConstants . ARG_BLOG_ID ) ; \n mCurrentBlogUrl = args . getString ( ReaderConstants . ARG_BLOG_URL ) ; \n - if ( TextUtils . isEmpty ( mCurrentBlogUrl ) ) { \n - mCurrentBlogUrl = ReaderBlogTable . getBlogUrl ( mCurrentBlogId ) ; \n - } \n \n if ( getPostListType ( ) == ReaderPostListType . TAG_PREVIEW && hasCurrentTag ( ) ) { \n mTagPreviewHistory . push ( getCurrentTagName ( ) ) ; \n public class ReaderPostListFragment extends Fragment \n break ; \n } \n \n + SINGLE \n + SINGLE \n + if ( getPostListType ( ) . isPreviewType ( ) ) { \n + int height = container . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_extra_small ) ; \n + ReaderUtils . addListViewHeader ( mListView , height ) ; \n + } \n + \n SINGLE \n mEmptyView = rootView . findViewById ( R . id . empty_view ) ;", "msg_token": "Added space between header and posts when showing tag or blog preview"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n if ( mBackground instanceof ColorDrawable ) { \n ( ( ColorDrawable ) mBackground . mutate ( ) ) . setColor ( color ) ; \n computeOpaqueFlags ( ) ; \n + mBackgroundResource = NUMBER0 ; \n } else { \n setBackground ( new ColorDrawable ( color ) ) ; \n }", "msg_token": "Reset stored background resource when setting a bg color"} {"diff": " public class EventTrackerHandler extends AbstractHandler { \n } \n \n private synchronized long addEvent ( final HttpServletRequest request ) { \n + String date = request . getParameter ( STRING0 ) ; \n + if ( date == null ) { \n + date = dateHelper . getDate ( ) ; \n + } \n Event event = new Event . Builder ( \n request . getParameter ( STRING1 ) , \n request . getParameter ( STRING2 ) , \n - dateHelper . getDate ( ) , \n + date , \n toProperties ( request ) ) . build ( ) ; \n return eventTracker . addEvent ( event ) ; \n }", "msg_token": "Allow EventTrackerHandler to have date query param"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unnecessary import"} {"diff": " public class ThriftUtils { \n COMMENT \n public static < M extends TBase < ? , ? > > TypeRef < M > getTypeRef ( String thriftClassName , ClassLoader classLoader ) { \n try { \n - Class < ? > tClass = Class . forName ( thriftClassName , true , classLoader ) ; \n + Class < ? > tClass = classLoader == null ? \n + Class . forName ( thriftClassName ) : \n + Class . forName ( thriftClassName , true , classLoader ) ; \n \n verifyAncestry ( tClass ) ;", "msg_token": "null for classLoader does not imply default loader"} {"diff": " public class DateTools { \n public static DateTime nowInUTC ( ) { \n return DateTime . now ( DateTimeZone . UTC ) ; \n } \n + \n + public static int getUserTimeZoneOffset ( ) { \n + DateTimeZone tz = globalTimezone ; \n + \n + final User currentUser = UserService . current ( ) ; \n + \n + if ( currentUser != null && currentUser . getTimeZone ( ) != null ) { \n + tz = currentUser . getTimeZone ( ) ; \n + } \n + \n + int offsetMillis = tz . toTimeZone ( ) . getRawOffset ( ) / NUMBER0 ; \n + \n + if ( tz . toTimeZone ( ) . useDaylightTime ( ) ) { \n + offsetMillis += NUMBER1 ; \n + } \n + \n + return ( offsetMillis / NUMBER2 ) * - NUMBER3 ; \n + } \n }", "msg_token": "Add DateTools getUserTimeZoneOffset method"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SybaseASADatabase extends AbstractDatabase { \n \n - public static final String PRODUCT_NAME = STRING0 ; \n private static final Set < String > systemTablesAndViews ; \n static { \n systemTablesAndViews = new HashSet < String > ( ) ; \n public class SybaseASADatabase extends AbstractDatabase { \n COMMENT \n COMMENT \n COMMENT \n - public boolean isCorrectDatabaseImplementation ( Connection conn ) \n - throws JDBCException { \n - return PRODUCT_NAME . equalsIgnoreCase ( getDatabaseProductName ( conn ) ) ; \n + public boolean isCorrectDatabaseImplementation ( Connection conn ) throws JDBCException { \n + return STRING0 . equalsIgnoreCase ( getDatabaseProductName ( conn ) ) \n + || STRING1 . equalsIgnoreCase ( getDatabaseProductName ( conn ) ) ; \n } \n \n @ override", "msg_token": "Added additional sysbase product name according to liquibase user mailing list message"} {"diff": " public class XmlNode extends RubyObject { \n relink_namespace ( context ) ; \n SINGLE \n \n - return this ; \n + return other ; \n } \n \n protected void adoptAsChild ( ThreadContext context , Node parent ,", "msg_token": "Fix return node after addding other node"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class BaseGameActivity extends BaseActivity implements IGameInte \n return this . mEngine . enableAccelerometerSensor ( this , pAccelerometerListener ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n protected boolean enableAccelerometerSensor ( final IAccelerometerListener pAccelerometerListener , final int pRate ) { \n return this . mEngine . enableAccelerometerSensor ( this , pAccelerometerListener , pRate ) ; \n } \n public abstract class BaseGameActivity extends BaseActivity implements IGameInte \n return this . mEngine . enableOrientationSensor ( this , pOrientationListener ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n protected boolean enableOrientationSensor ( final IOrientationListener pOrientationListener , final int pRate ) { \n return this . mEngine . enableOrientationSensor ( this , pOrientationListener , pRate ) ; \n }", "msg_token": "Added Javadoc to explain what the can be passed as the Rate of a Sensor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class PipelineLabel implements Serializable { \n } \n \n private static String lookupMaterialRevision ( Matcher matcher , Map < String , String > materialRevisions ) { \n - final String material = matcher . group ( NUMBER0 ) ; \n + final String material = matcher . group ( NUMBER0 ) . toLowerCase ( ) ; \n \n if ( ! materialRevisions . containsKey ( material ) ) { \n return STRING0 + matcher . group ( NUMBER1 ) ;", "msg_token": "now making material lookup case insensitive"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "remove unused import"} {"diff": " public class TransitToTaggedStopsGraphBuilderImpl implements GraphBuilder { \n \n private boolean connectVertexToStop ( TransitStop ts , boolean wheelchairAccessible ) { \n String stopCode = ts . getStopCode ( ) ; \n - Envelope envelope = new Envelope ( ts . getCoordinate ( ) ) ; \n - envelope . expandBy ( FLOAT0 ) ; SINGLE \n - Collection < Vertex > vertices = index . getVerticesForEnvelope ( envelope ) ; \n if ( stopCode == null ) { \n return false ; \n } \n + Envelope envelope = new Envelope ( ts . getCoordinate ( ) ) ; \n + envelope . expandBy ( FLOAT0 ) ; SINGLE \n + Collection < Vertex > vertices = index . getVerticesForEnvelope ( envelope ) ; \n for ( Vertex v : vertices ) { \n if ( ! ( v instanceof TransitStopStreetVertex ) ) { \n continue ;", "msg_token": "do less processing if no stop code defined"} {"diff": " public class Observable < T > { \n } \n \n COMMENT \n - < < < < < < < HEAD \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove stray HEAD line"} {"diff": " public class CouchdbRiver extends AbstractRiverComponent implements River { \n } \n String seq = map . get ( STRING0 ) . toString ( ) ; \n String id = map . get ( STRING1 ) . toString ( ) ; \n + \n + SINGLE \n + if ( id . startsWith ( STRING2 ) ) { \n + logger . info ( STRING3 , id ) ; \n + return seq ; \n + } \n + \n if ( map . containsKey ( STRING4 ) && map . get ( STRING5 ) . equals ( STRING6 ) ) { \n bulk . add ( deleteRequest ( indexName ) . type ( typeName ) . id ( id ) ) ; \n } else if ( map . containsKey ( STRING7 ) ) {", "msg_token": "Couchdb river plugin ignore design documents"} {"diff": " public class SocketConnection implements Connection { \n } \n } \n catch ( Exception e ) { \n - SINGLE \n + Log . error ( LocaleUtils . getLocalizedString ( STRING0 ) \n + + STRING1 + this . toString ( ) , e ) ; \n } \n try { \n socket . close ( ) ; \n public class SocketConnection implements Connection { \n xmlSerializer . flush ( ) ; \n } \n catch ( IOException e ) { \n - Log . warn ( e ) ; \n + Log . warn ( LocaleUtils . getLocalizedString ( STRING0 ) \n + + STRING1 + this . toString ( ) , e ) ; \n close ( ) ; \n SINGLE \n SINGLE \n public class SocketConnection implements Connection { \n } \n } \n } \n + \n + public String toString ( ) { \n + return super . toString ( ) + STRING2 + socket + STRING3 + session ; \n + } \n }", "msg_token": "Improved logging information"} {"diff": " public abstract class AbstractArrayElementBlock \n @ override \n public Block getSingleValueBlock ( int position ) \n { \n - throw new UnsupportedOperationException ( ) ; \n + checkReadablePosition ( position ) ; \n + return getBlock ( ) . getSingleValueBlock ( position + start ) ; \n } \n \n @ override", "msg_token": "Implement AbstractArrayElementBlock getSingleValueBlock"} {"diff": " public class TestActivityBehaviorFactory extends AbstractBehaviorFactory impleme \n \n @ override \n public EventSubProcessStartEventActivityBehavior createEventSubProcessStartEventActivityBehavior ( StartEvent startEvent , String activityId ) { \n - return createEventSubProcessStartEventActivityBehavior ( startEvent , activityId ) ; \n + return wrappedActivityBehaviorFactory . createEventSubProcessStartEventActivityBehavior ( startEvent , activityId ) ; \n } \n \n @ override", "msg_token": "Fix for event sub process testing"} {"diff": " public class MethodAnalyzer { \n Instruction3rc instruction = ( Instruction3rc ) analyzedInstruction . instruction ; \n \n Instruction3rc deodexedInstruction = new ImmutableInstruction3rc ( Opcode . INVOKE_DIRECT_RANGE , \n - instruction . getRegisterCount ( ) , instruction . getStartRegister ( ) , instruction . getReference ( ) ) ; \n + instruction . getStartRegister ( ) , instruction . getRegisterCount ( ) , instruction . getReference ( ) ) ; \n \n analyzedInstruction . setDeodexedInstruction ( deodexedInstruction ) ;", "msg_token": "Fix issue when deodexing invoke object init range instruction"} {"diff": " public class Paint { \n COMMENT \n COMMENT \n public long getNativeInstance ( ) { \n - if ( mShader != null && mShader . getNativeInstance ( ) != mNativeShader ) { \n - mNativeShader = mShader . getNativeInstance ( ) ; \n + long newNativeShader = mShader == null ? NUMBER0 : mShader . getNativeInstance ( ) ; \n + if ( newNativeShader != mNativeShader ) { \n + mNativeShader = newNativeShader ; \n native_setShader ( mNativePaint , mNativeShader ) ; \n } \n return mNativePaint ;", "msg_token": "Fix push shader to native"} {"diff": " public class PendingConnectRequestFragment extends BaseFragment < PendingConnectRe \n SINGLE \n footerMenu . setVisibility ( View . VISIBLE ) ; \n isShowingFooterMenu = true ; \n + footerMenu . setRightActionText ( STRING0 ) ; \n \n footerMenu . setCallback ( new FooterMenuCallback ( ) { \n @ override \n public class PendingConnectRequestFragment extends BaseFragment < PendingConnectRe \n \n @ override \n public void onRightActionClicked ( ) { \n - user . block ( ) ; \n } \n } ) ; \n }", "msg_token": "Remove block button from outgoing connection request"} {"diff": " public class ExtractorsResource extends RestResource { \n \n final Map < String , String > result = ImmutableMap . of ( STRING0 , id ) ; \n final URI extractorUri = UriBuilder . fromResource ( ExtractorsResource . class ) \n - . path ( STRING1 ) \n - . build ( id ) ; \n + . path ( STRING2 ) \n + . build ( input . getId ( ) ) ; \n \n return Response . created ( extractorUri ) . entity ( result ) . build ( ) ; \n } \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class CreateExtractorRequest { \n @ jsonproperty \n public abstract int order ( ) ; \n \n + @ jsoncreator \n public static CreateExtractorRequest create ( @ jsonproperty ( STRING3 ) @ notempty String title , \n @ jsonproperty ( STRING4 ) String cutOrCopy , \n @ jsonproperty ( STRING5 ) @ notempty String sourceField ,", "msg_token": "Fixing minor bugs due to REST overhaul"} {"diff": " public class AndroidHarness extends Activity implements TouchListener , DialogInt \n COMMENT \n COMMENT \n protected int splashPicID = NUMBER0 ; \n + \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n protected int screenOrientation = ActivityInfo . SCREEN_ORIENTATION_SENSOR ; \n + \n protected OGLESContext ctx ; \n protected GLSurfaceView view = null ; \n protected boolean isGLThreadPaused = true ; \n public class AndroidHarness extends Activity implements TouchListener , DialogInt \n } \n } \n \n - setRequestedOrientation ( screenOrientation ) ; \n - \n final DataObject data = ( DataObject ) getLastNonConfigurationInstance ( ) ; \n if ( data != null ) { \n logger . log ( Level . FINE , STRING0 ) ;", "msg_token": "Deprecate screenOrientation from AndroidHarness"} {"diff": " public class PsiDirectoryNode extends BasePsiNode < PsiDirectory > implements Navig \n return ! PlatformUtils . isCidr ( ) ; \n } \n \n + protected boolean shouldShowSourcesRoot ( ) { \n + return true ; \n + } \n + \n @ override \n protected void updateImpl ( PresentationData data ) { \n Project project = getProject ( ) ; \n public class PsiDirectoryNode extends BasePsiNode < PsiDirectory > implements Navig \n final String location = FileUtil . getLocationRelativeToUserHome ( directoryFile . getPresentableUrl ( ) ) ; \n data . addText ( STRING0 + location + STRING1 , SimpleTextAttributes . GRAYED_ATTRIBUTES ) ; \n } \n - else { \n + else if ( shouldShowSourcesRoot ( ) ) { \n SourceFolder sourceRoot = ProjectRootsUtil . getModuleSourceRoot ( directoryFile , project ) ; \n if ( sourceRoot != null ) { \n ModuleSourceRootEditHandler < ? > handler = ModuleSourceRootEditHandler . getEditHandler ( sourceRoot . getRootType ( ) ) ;", "msg_token": "support hiding PsiDirectoryNode sources roots"} {"diff": " public class RouterActor extends ModuleActor { \n } \n } \n \n - \n + \n SINGLE \n SINGLE \n SINGLE \n public class RouterActor extends ModuleActor { \n conversationStates . addOrUpdateItem ( state ) ; \n \n dialogsActor ( new DialogsActor . CounterChanged ( peer , counter ) ) ; \n + \n + notifyActiveDialogsVM ( ) ; \n }", "msg_token": "Fixing non notifying active dialogs on read by me"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WorldEditPlugin extends JavaPlugin { \n COMMENT \n COMMENT \n protected void registerEvents ( ) { \n - PlayerListener playerListener = new WorldEditPlayerListener ( this ) ; \n - PlayerListener criticalPlayerListener = new WorldEditCriticalPlayerListener ( this ) ; \n + new WorldEditPlayerListener ( this ) ; \n + new WorldEditCriticalPlayerListener ( this ) ; \n \n SINGLE \n ( new PermissionsResolverServerListener ( perms ) ) . register ( this ) ;", "msg_token": "Fixed some warnings"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused import"} {"diff": " public class SwipeLayout extends FrameLayout \n mDragHelper = ViewDragHelper . create ( this , mDragHelperCallback ) ; \n \n TypedArray a = context . obtainStyledAttributes ( attrs , R . styleable . SwipeLayout ) ; \n - int dragEdgeChoices = a . getInt ( R . styleable . SwipeLayout_drag_edge , DragEdge . Right . ordinal ( ) ) ; \n + int dragEdgeChoices = a . getInt ( R . styleable . SwipeLayout_drag_edge , DRAG_RIGHT ) ; \n mLeftEdgeSwipeOffset = a . getDimension ( R . styleable . SwipeLayout_leftEdgeSwipeOffset , NUMBER0 ) ; \n mRightEdgeSwipeOffset = a . getDimension ( R . styleable . SwipeLayout_rightEdgeSwipeOffset , NUMBER0 ) ; \n mTopEdgeSwipeOffset = a . getDimension ( R . styleable . SwipeLayout_topEdgeSwipeOffset , NUMBER0 ) ;", "msg_token": "Fixing default direction"} {"diff": " class Client implements IConnection { \n close ( ) ; \n } \n } catch ( InterruptedException e ) { \n - LOG . info ( STRING0 , e ) ; \n + LOG . warn ( STRING0 , e ) ; \n } \n } \n \n class Client implements IConnection { \n @ override \n public void run ( ) { \n if ( ready_to_release_resource . get ( ) ) { \n - LOG . info ( STRING1 ) ; \n + LOG . debug ( STRING1 ) ; \n factory . releaseExternalResources ( ) ; \n timer . cancel ( ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class MessageDecoder extends FrameDecoder { \n - private static final Logger LOG = LoggerFactory . getLogger ( MessageDecoder . class ) ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "debug message removed"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class GrClassImplUtil { \n return result == null || result . booleanValue ( ) ; \n } \n \n - public static void addExpandingReflectedMethods ( List < PsiMethod > result , PsiMethod method ) { \n + public static void addExpandingReflectedMethods ( Collection < PsiMethod > result , PsiMethod method ) { \n if ( method instanceof GrMethod ) { \n final GrReflectedMethod [ ] reflectedMethods = ( ( GrMethod ) method ) . getReflectedMethods ( ) ; \n if ( reflectedMethods . length > NUMBER0 ) { \n public class GrClassImplUtil { \n result . add ( method ) ; \n } \n \n - public static void collectMethodsFromBody ( @ notnull GrTypeDefinition definition , List < PsiMethod > result ) { \n + public static void collectMethodsFromBody ( @ notnull GrTypeDefinition definition , Collection < PsiMethod > result ) { \n for ( GrMethod method : definition . getCodeMethods ( ) ) { \n addExpandingReflectedMethods ( result , method ) ; \n }", "msg_token": "groovy use more general type in parameters Collection instead of List"} {"diff": " public class DeepLearningTask extends FrameTask < DeepLearningTask > { \n assert ( _training ) ; \n if ( _localmodel . _classification ) \n ( ( Neurons . Softmax ) _neurons [ _neurons . length - NUMBER0 ] ) . bprop ( n ) ; \n - else \n + else if ( ! _localmodel . get_params ( ) . _autoencoder ) \n ( ( Neurons . Linear ) _neurons [ _neurons . length - NUMBER0 ] ) . bprop ( n ) ; \n + else \n + _neurons [ _neurons . length - NUMBER0 ] . bprop ( ) ; \n \n for ( int i = _neurons . length - NUMBER1 ; i > NUMBER2 ; -- i ) \n _neurons [ i ] . bprop ( ) ;", "msg_token": "Fix prior commit for DL AE"} {"diff": " public class HttpChannelState \n \n private final static long DEFAULT_TIMEOUT = NUMBER0 ; \n \n + COMMENT \n + COMMENT \n public enum State \n { \n IDLE , SINGLE \n DISPATCHED , SINGLE \n - ASYNC_WAIT , SINGLE \n - ASYNC_WOKEN , SINGLE \n - ASYNC_IO , SINGLE \n + ASYNC_WAIT , SINGLE \n + ASYNC_WOKEN , SINGLE \n + ASYNC_IO , SINGLE \n COMPLETING , SINGLE \n COMPLETED SINGLE \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public enum Action \n { \n REQUEST_DISPATCH , SINGLE \n public class HttpChannelState \n COMPLETE SINGLE \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public enum Async \n { \n STARTED ,", "msg_token": "Added ASYNC_WOKEN state to HttpChannelState"} {"diff": " public final class LineageMaster extends MasterBase { \n persistFilesFromEntry ( ( PersistFilesEntry ) entry ) ; \n } else if ( entry instanceof RequestFilePersistenceEntry ) { \n requestFilePersistenceFromEntry ( ( RequestFilePersistenceEntry ) entry ) ; \n - } else if ( entry instanceof DeleteLineageEntry ) { \n + } else if ( entry instanceof DeleteLineageEntry ) { \n deleteLineageFromEntry ( ( DeleteLineageEntry ) entry ) ; \n } else { \n throw new IOException ( ExceptionMessage . UNEXPECETD_JOURNAL_ENTRY . getMessage ( entry ) ) ; \n public final class LineageMaster extends MasterBase { \n COMMENT \n public synchronized boolean deleteLineage ( long lineageId , boolean cascade ) \n throws LineageDoesNotExistException , LineageDeletionException { \n - deleteLineageInternal ( lineageId , cascade ) ; \n + deleteLineageInternal ( lineageId , cascade ) ; \n writeJournalEntry ( new DeleteLineageEntry ( lineageId , cascade ) ) ; \n flushJournal ( ) ; \n return true ;", "msg_token": "Fixed style issue"} {"diff": " public class RealmObjectTest extends AndroidTestCase { \n CyclicType ct1 = testRealm . where ( CyclicType . class ) . findFirst ( ) ; \n CyclicType ct2 = testRealm . where ( CyclicType . class ) . findFirst ( ) ; \n \n - assertTrue ( ct1 . equals ( ct1 ) ) ; \n - assertTrue ( ct2 . equals ( ct2 ) ) ; \n + assertTrue ( ct1 . equals ( ct2 ) ) ; \n + assertTrue ( ct2 . equals ( ct1 ) ) ; \n } \n \n public void testEqualsDifferentRealmObjects ( ) {", "msg_token": "Fixed equals unit test"} {"diff": " public abstract class Layout { \n if ( bm != null ) { \n workPaint . set ( paint ) ; \n Styled . measureText ( paint , workPaint , text , \n - offset , offset + NUMBER0 , null ) ; \n + j , j + NUMBER1 , null ) ; \n \n float wid = ( float ) bm . getWidth ( ) * \n - workPaint . ascent ( ) / bm . getHeight ( ) ;", "msg_token": "Fix an emoji measuring bug that caused an exception when editing a contact"} {"diff": " public class ContentView extends LinearLayout { \n } \n \n @ override \n - public void ` onReceivedIcon ( WebView webView , Bitmap bitmap ) { \n + public void onReceivedIcon ( WebView webView , Bitmap bitmap ) { \n super . onReceivedIcon ( webView , bitmap ) ; \n mEventHandler . onReceivedIcon ( bitmap ) ; \n }", "msg_token": "Fix bad commit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class GitblitContext extends GuiceServletContextListener { \n } \n \n protected void extractResources ( ServletContext context , String path , File toDir ) { \n - for ( String resource : context . getResourcePaths ( path ) ) { \n + Set < String > resources = context . getResourcePaths ( path ) ; \n + if ( resources == null ) { \n + logger . warn ( STRING0 , path ) ; \n + return ; \n + } \n + for ( String resource : resources ) { \n SINGLE \n File f = new File ( toDir , resource . substring ( path . length ( ) ) ) ; \n if ( ! f . exists ( ) ) {", "msg_token": "Handle possible NPE when extracting WAR resources into a new directory"} {"diff": " public class SyncManager implements OnAccountsUpdateListener { \n newDelayInMs = maxSyncRetryTimeInSeconds * NUMBER0 ; \n } \n \n + final long backoff = now + newDelayInMs ; \n + \n mSyncStorageEngine . setBackoff ( op . account , op . authority , \n - now + newDelayInMs , newDelayInMs ) ; \n + backoff , newDelayInMs ) ; \n + \n + op . backoff = backoff ; \n + op . updateEffectiveRunTime ( ) ; \n + \n synchronized ( mSyncQueue ) { \n - mSyncQueue . onBackoffChanged ( op . account , op . authority , now + newDelayInMs ) ; \n + mSyncQueue . onBackoffChanged ( op . account , op . authority , backoff ) ; \n } \n }", "msg_token": "Apply backoff to operation that caused it"} {"diff": " public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen \n \n @ override \n public void onFailure ( String source , Throwable t ) { \n - logger . error ( STRING0 , t , source ) ; \n + if ( t instanceof ClusterService . NoLongerMasterException ) { \n + logger . debug ( STRING1 , source ) ; \n + } else { \n + logger . error ( STRING0 , t , source ) ; \n + } \n callback . onFailure ( t ) ; \n }", "msg_token": "Discovery Improved logging when a join request is not executed because local node is no longer master"} {"diff": " public class RobolectricTestRunner extends BlockJUnit4ClassRunner { \n int i = NUMBER0 ; \n for ( String path : artifacts . values ( ) ) { \n try { \n - urls [ i ++ ] = new URL ( STRING0 + path ) ; \n + urls [ i ++ ] = new URL ( STRING1 + path ) ; \n } catch ( MalformedURLException e ) { \n throw new RuntimeException ( e ) ; \n }", "msg_token": "fixed Url issue"} {"diff": " public class MediaSessionCompat { \n \n @ override \n public void setPlaybackState ( PlaybackStateCompat state ) { \n - MediaSessionCompatApi21 . setPlaybackState ( mSessionObj , state . getPlaybackState ( ) ) ; \n + MediaSessionCompatApi21 . setPlaybackState ( mSessionObj , \n + state == null ? null : state . getPlaybackState ( ) ) ; \n } \n \n @ override \n public void setMetadata ( MediaMetadataCompat metadata ) { \n - MediaSessionCompatApi21 . setMetadata ( mSessionObj , metadata . getMediaMetadata ( ) ) ; \n + MediaSessionCompatApi21 . setMetadata ( mSessionObj , \n + metadata == null ? null : metadata . getMediaMetadata ( ) ) ; \n } \n \n @ override", "msg_token": "Add null check to MediaSessionCompat setMetadata and setPlaybackState"} {"diff": " import NAMESPACE ; \n COMMENT \n public interface Decorator extends BatchExtension , CheckProject { \n \n + COMMENT \n + COMMENT \n + COMMENT \n void decorate ( Resource resource , DecoratorContext context ) ; \n \n } \n public abstract class SonarIndex implements DirectedGraphAccessor < Resource , Depe \n public abstract void setSource ( Resource reference , String source ) throws DuplicatedSourceException ; \n \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract String getSource ( Resource resource ) ; \n public abstract class SonarIndex implements DirectedGraphAccessor < Resource , Depe \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class SonarIndex implements DirectedGraphAccessor < Resource , Depe \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add some Javadocs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ReportComputeEngineContainerPopulator implements ContainerPop \n \n MetricModule . class , \n \n + SINGLE \n + PropertiesDao . class , \n + \n SINGLE \n AnalysisMetadataHolderImpl . class , \n CrossProjectDuplicationStatusHolderImpl . class ,", "msg_token": "Add PropertiesDao in CE container"} {"diff": " public abstract class WsRemoteEndpointBase implements RemoteEndpoint { \n \n @ override \n public SendResult get ( ) throws InterruptedException , \n - ExecutionException { \n + ExecutionException { \n latch . await ( ) ; \n return result ; \n } \n public abstract class WsRemoteEndpointBase implements RemoteEndpoint { \n public SendResult get ( long timeout , TimeUnit unit ) \n throws InterruptedException , ExecutionException , \n TimeoutException { \n - latch . await ( timeout , unit ) ; \n + boolean retval = latch . await ( timeout , unit ) ; \n + if ( retval == false ) { \n + throw new TimeoutException ( ) ; \n + } \n return result ; \n } \n }", "msg_token": "Fix Findbugs warning"} {"diff": " public class AprioriPhraseExtractorTest { \n for ( String s : SimpleSentenceSplitter . getInstance ( ) . split ( paragraph ) ) { \n String [ ] sentence = tokenizer . split ( s ) ; \n for ( int i = NUMBER0 ; i < sentence . length ; i ++ ) { \n - if ( stemmer . stripPluralParticiple ( sentence [ i ] ) . toLowerCase ( ) . equals ( STRING0 ) ) { \n - System . out . println ( Arrays . toString ( sentence ) ) ; \n - } \n sentence [ i ] = stemmer . stripPluralParticiple ( sentence [ i ] ) . toLowerCase ( ) ; \n } \n sentences . add ( sentence ) ;", "msg_token": "remove debug print"} {"diff": " public final class MccTable \n table . add ( new MccEntry ( NUMBER0 , STRING0 , NUMBER1 ) ) ; SINGLE \n table . add ( new MccEntry ( NUMBER2 , STRING1 , NUMBER1 ) ) ; SINGLE \n table . add ( new MccEntry ( NUMBER3 , STRING2 , NUMBER1 ) ) ; SINGLE \n - table . add ( new MccEntry ( NUMBER4 , STRING3 , NUMBER1 ) ) ; SINGLE \n + table . add ( new MccEntry ( NUMBER4 , STRING4 , NUMBER1 ) ) ; SINGLE \n table . add ( new MccEntry ( NUMBER5 , STRING5 , NUMBER1 ) ) ; SINGLE \n table . add ( new MccEntry ( NUMBER6 , STRING6 , NUMBER1 ) ) ; SINGLE \n table . add ( new MccEntry ( NUMBER7 , STRING7 , NUMBER1 ) ) ; SINGLE", "msg_token": "Fix ISO country code of Slovenia"} {"diff": " class MemberSignatureParser { \n if ( method . annotationDefault != null ) { \n result . setCode ( new ReturnStatement ( new ConstantExpression ( method . annotationDefault ) ) ) ; \n result . setAnnotationDefault ( true ) ; \n + } else { \n + SINGLE \n + result . setCode ( new ReturnStatement ( ConstantExpression . NULL ) ) ; \n } \n \n }", "msg_token": "let all asm decompiled methods have some dummy body"} {"diff": " public class ActivityChooserModel extends DataSetObservable { \n } \n try { \n XmlPullParser parser = Xml . newPullParser ( ) ; \n - parser . setInput ( fis , null ) ; \n + parser . setInput ( fis , STRING0 ) ; \n \n int type = XmlPullParser . START_DOCUMENT ; \n while ( type != XmlPullParser . END_DOCUMENT && type != XmlPullParser . START_TAG ) {", "msg_token": "Pass charset to XmlPullParser setInput instead of null"} {"diff": " public class OSQLFunctionSum extends OSQLFunctionMathAbstract { \n \n public Object execute ( final OIdentifiable iCurrentRecord , ODocument iCurrentResult , final Object [ ] iParameters , \n OCommandContext iContext ) { \n - if ( iParameters . length == NUMBER0 ) { \n + if ( iParameters . length == NUMBER1 ) { \n if ( iParameters [ NUMBER0 ] instanceof Number ) \n sum ( ( Number ) iParameters [ NUMBER0 ] ) ; \n else if ( OMultiValue . isMultiValue ( iParameters [ NUMBER0 ] ) )", "msg_token": "fixed bug in sum function"} {"diff": " public class MemoizingEvaluatorTest { \n assertEquals ( STRING0 , old . getValue ( ) ) ; \n tester . invalidate ( ) ; \n StringValue current = ( StringValue ) tester . evalAndGet ( STRING1 ) ; \n - assertSame ( old , current ) ; \n + assertThat ( current ) . isEqualTo ( old ) ; \n } \n \n @ test \n public class MemoizingEvaluatorTest { \n tester . getOrCreate ( errorKey , COMMENT false ) . setHasTransientError ( true ) ; \n tester . invalidateTransientErrors ( ) ; \n stringValue = ( StringValue ) tester . evalAndGet ( COMMENT true , errorKey ) ; \n - assertSame ( stringValue , value ) ; \n + assertThat ( stringValue ) . isEqualTo ( value ) ; \n } \n \n @ test", "msg_token": "Allow value equality in some MemoizingEvaluatorTest tests"} {"diff": " public class TransposeRowsIntoColumnsOperation extends AbstractOperation { \n int columnIndex = project . columnModel . getColumnIndexByName ( _columnName ) ; \n int columnCount = oldColumns . size ( ) ; \n \n - newColumns . addAll ( oldColumns . subList ( NUMBER0 , columnIndex ) ) ; \n - \n for ( int i = NUMBER0 ; i < columnCount ; i ++ ) { \n Column column = oldColumns . get ( i ) ;", "msg_token": "Fixed transpose rows into columns command which previously duplicated columns that precede the column being transposed"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class JsBlock extends SourceInfoAwareJsNode implements JsStatement { \n } \n \n public JsBlock ( JsStatement statement ) { \n - this ( Collections . singletonList ( statement ) ) ; \n + this ( new SmartList < JsStatement > ( statement ) ) ; \n } \n \n public JsBlock ( JsStatement . . . statements ) { \n - this ( Arrays . asList ( statements ) ) ; \n + this ( new SmartList < JsStatement > ( statements ) ) ; \n } \n \n public JsBlock ( @ notnull List < JsStatement > statements ) {", "msg_token": "made JsBlock statements list modifieable"} {"diff": " public class Http11AprProtocol extends AbstractHttp11Protocol < Long > { \n \n private final Http11ConnectionHandler cHandler ; \n \n - public boolean getUseSendfile ( ) { return ( ( AprEndpoint ) endpoint ) . getUseSendfile ( ) ; } \n + public boolean getUseSendfile ( ) { return endpoint . getUseSendfile ( ) ; } \n public void setUseSendfile ( boolean useSendfile ) { ( ( AprEndpoint ) endpoint ) . setUseSendfile ( useSendfile ) ; } \n \n public int getPollTime ( ) { return ( ( AprEndpoint ) endpoint ) . getPollTime ( ) ; } \n public class Http11NioProtocol extends AbstractHttp11JsseProtocol < NioChannel > { \n \n \n public boolean getUseSendfile ( ) { \n - return ( ( NioEndpoint ) endpoint ) . getUseSendfile ( ) ; \n + return endpoint . getUseSendfile ( ) ; \n } \n \n public void setUseSendfile ( boolean useSendfile ) {", "msg_token": "Remove unnecessary casts"} {"diff": " public class DefaultProjectFileSystem implements ProjectFileSystem { \n \n protected static final Predicate < File > DIRECTORY_EXISTS = new Predicate < File > ( ) { \n public boolean apply ( File input ) { \n - System . out . println ( input . toString ( ) + STRING0 + input . exists ( ) ) ; \n return input . exists ( ) && input . isDirectory ( ) ; \n } \n } ;", "msg_token": "Remove System out println"} {"diff": " public abstract class BaseOutputReader extends BaseDataReader { \n } \n \n private void sendText ( @ notnull StringBuilder line ) { \n - onTextAvailable ( line . toString ( ) ) ; \n + String text = line . toString ( ) ; \n line . setLength ( NUMBER0 ) ; \n + onTextAvailable ( text ) ; \n } \n \n @ override", "msg_token": "do not sendText twice in case of exception"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class FloatList implements Iterable < Float > { \n int count ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class IntList implements Iterable < Integer > { \n protected int count ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class StringList implements Iterable < String > { \n int count ;", "msg_token": "Added related links to reference for IntList FloatList StringList"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class UsageViewUtil { \n } \n \n final Language lang = psiElement . getLanguage ( ) ; \n - FindUsagesProvider provider = LanguageFindUsages . INSTANCE . forLanguage ( lang ) ; \n + final FindUsagesProvider provider = LanguageFindUsages . INSTANCE . forLanguage ( lang ) ; \n + assert provider != null : lang ; \n return provider . getDescriptiveName ( psiElement ) ; \n } \n \n public class UsageViewUtil { \n } \n \n @ notnull \n - public static UsageInfo [ ] toUsageInfoArray ( @ notnull final Collection < UsageInfo > collection ) { \n + public static UsageInfo [ ] toUsageInfoArray ( @ notnull final Collection < ? extends UsageInfo > collection ) { \n final int size = collection . size ( ) ; \n return size == NUMBER0 ? UsageInfo . EMPTY_ARRAY : collection . toArray ( new UsageInfo [ size ] ) ; \n }", "msg_token": "Accept UsageInfo subclasses for a conversion to an array"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class JetGotoImplementationMultifileTest extends KotlinCodeInsightTestCase { \n + public class JetGotoImplementationMultifileTest extends JetLightCodeInsightFixtureTestCase { \n public void testImplementFunInJava ( ) throws Exception { \n doKotlinJavaTest ( ) ; \n } \n public class JetGotoImplementationMultifileTest extends KotlinCodeInsightTestCas \n doMultifileTest ( getTestName ( false ) + STRING0 , getTestName ( false ) + STRING1 ) ; \n } \n \n + @ notnull \n + @ override \n + protected LightProjectDescriptor getProjectDescriptor ( ) { \n + return JetLightProjectDescriptor . INSTANCE ; \n + } \n + \n private void doMultifileTest ( String . . . fileNames ) throws Exception { \n - configureByFiles ( null , fileNames ) ; \n + myFixture . configureByFiles ( fileNames ) ; \n GotoTargetHandler . GotoData gotoData = NavigationTestUtils . invokeGotoImplementations ( getEditor ( ) , getFile ( ) ) ; \n NavigationTestUtils . assertGotoImplementations ( getEditor ( ) , gotoData ) ; \n }", "msg_token": "Test base class of the test to be closer emulate IDE behaviour"} {"diff": " public class PersistentCookieStore implements CookieStore { \n cookies . remove ( name ) ; \n } \n \n - SINGLE \n - cookies . put ( name , cookie ) ; \n - \n SINGLE \n SharedPreferences . Editor prefsWriter = cookiePrefs . edit ( ) ; \n prefsWriter . putString ( COOKIE_NAME_STORE , TextUtils . join ( STRING0 , cookies . keySet ( ) ) ) ;", "msg_token": "Fix merge failure in addCookie"} {"diff": " public class WorldEdit { \n else skullType = NUMBER0 ; \n } \n if ( skullType == NUMBER0 ) { \n - return new SkullBlock ( data , rot , type ) ; \n + return new SkullBlock ( data , rot , type . replace ( STRING0 , STRING1 ) ) ; SINGLE \n } else { \n return new SkullBlock ( data , skullType , rot ) ; \n }", "msg_token": "Skulls should use underscores for player names not spaces"} {"diff": " public class ContainerMediaChunk extends BaseMediaChunk implements SingleTrackMe \n trackOutput . setSampleOffsetUs ( sampleOffsetUs ) ; \n extractorWrapper . init ( this , trackOutput ) ; \n } \n - SINGLE \n + SINGLE \n try { \n int result = Extractor . RESULT_CONTINUE ; \n while ( result == Extractor . RESULT_CONTINUE && ! loadCanceled ) {", "msg_token": "Fix spurious comment"} {"diff": " public class OQueryOperatorBetween extends OQueryOperatorEqualityNotNulls { \n else \n result = index . getValuesBetween ( keyOne , true , keyTwo , true ) ; \n \n + if ( iOperationType == INDEX_OPERATION_TYPE . COUNT ) \n + return OMultiValue . getSize ( result ) ; \n + \n } else { \n final OCompositeIndexDefinition compositeIndexDefinition = ( OCompositeIndexDefinition ) indexDefinition ; \n \n public class OQueryOperatorBetween extends OQueryOperatorEqualityNotNulls { \n else \n result = index . getValuesBetween ( keyOne , true , keyTwo , true ) ; \n \n + if ( iOperationType == INDEX_OPERATION_TYPE . COUNT ) \n + return OMultiValue . getSize ( result ) ; \n } \n \n updateProfiler ( iContext , index , keyParams , indexDefinition ) ;", "msg_token": "improved count against range using indexes"} {"diff": " public class CallerRunsAccumulationExecutor implements AccumulationExecutor { \n this . serializationService = serializationService ; \n } \n \n + @ override \n @ suppresswarnings ( STRING0 ) \n public AggregationResult execute ( \n Aggregator aggregator , Collection < QueryableEntry > entries , Collection < Integer > partitionIds ) { \n public class CallerRunsAccumulationExecutor implements AccumulationExecutor { \n result . setPartitionIds ( partitionIds ) ; \n return result ; \n } \n - \n }", "msg_token": "Added missing Override annotation in CallerRunsAccumulationExecutor"} {"diff": " public class CoreAPI extends ApiImplementor { \n int sessionId = ( ( Integer ) v . get ( i ) ) . intValue ( ) ; \n RecordHistory recAlert = tableHistory . read ( sessionId ) ; \n HttpMessage msg = recAlert . getHttpMessage ( ) ; \n - if ( ! msg . getRequestHeader ( ) . isImage ( ) ) { \n + if ( ! msg . getRequestHeader ( ) . isImage ( ) && ! msg . getResponseHeader ( ) . isImage ( ) ) { \n mgss . add ( msg ) ; \n } \n }", "msg_token": "Check isImage in response as well as request"} {"diff": " import NAMESPACE ; \n COMMENT \n public final class QuasarInstrumentor { \n final static String EXAMINED_CLASS = null ; SINGLE \n - private final ThreadLocal < Boolean > recursive = new ThreadLocal < Boolean > ( ) ; \n private final MethodDatabase db ; \n private boolean check ; \n \n public final class QuasarInstrumentor { \n } \n \n public byte [ ] instrumentClass ( String className , byte [ ] data ) { \n - if ( recursive . get ( ) == Boolean . TRUE ) SINGLE \n - return data ; \n - \n - recursive . set ( Boolean . TRUE ) ; \n - try { \n - return shouldInstrument ( className ) ? instrumentClass ( className , new ClassReader ( data ) ) : data ; \n - } finally { \n - recursive . remove ( ) ; \n - } \n + return shouldInstrument ( className ) ? instrumentClass ( className , new ClassReader ( data ) ) : data ; \n } \n \n byte [ ] instrumentClass ( String className , FileInputStream fis ) throws IOException {", "msg_token": "Removed recursion test in instrumentor unneeded and possibly harmful"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class ModulesTest", "msg_token": "Using static ref"} {"diff": " public final class TvInputManagerService extends SystemService { \n } \n \n private void ensureParentalControlsPermission ( ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + if ( mContext . checkCallingPermission ( \n + android . Manifest . permission . MODIFY_PARENTAL_CONTROLS ) \n + != PackageManager . PERMISSION_GRANTED ) { \n + throw new SecurityException ( \n + STRING0 ) ; \n + } \n } \n \n @ override", "msg_token": "Temporarily disable permission check for parental controls"} {"diff": " public class SparkTask extends Task < SparkWork > { \n LOG . info ( String . format ( STRING0 , jobRef . getJobId ( ) ) ) ; \n logSparkStatistic ( sparkStatistics ) ; \n } \n + LOG . info ( STRING1 ) ; \n } else if ( rc == NUMBER0 ) { SINGLE \n jobRef . cancelJob ( ) ; \n }", "msg_token": "Print Execution completed successfully as part of spark job info Spark Branch Ferdinand Xu reviewed by Xuefu Zhang"} {"diff": " public class WebDavStore extends RemoteStore { \n builder . append ( STRING0 ) ; \n builder . append ( STRING1 ) ; \n builder . append ( STRING2 ) ; \n - builder . append ( STRING3 ) . append ( this . mUrl ) . append ( STRING4 ) ; \n + builder . append ( STRING5 ) . append ( this . mUrl ) . append ( STRING4 ) ; \n builder . append ( STRING6 ) ; \n builder . append ( STRING7 ) ; \n return builder . toString ( ) ;", "msg_token": "Fetch sub folders when fetching folder list for WebDAV"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n if ( splitDomain [ NUMBER0 ] . equals ( STRING0 ) ) { \n if ( action . equals ( STRING1 ) ) { \n if ( networkMonitor != null ) \n - networkMonitor . startHeal ( ) ; \n + networkMonitor . rescheduleHeal ( ) ; \n } \n } \n } \n public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n logger . debug ( STRING2 , assocId , assocArg ) ; \n this . zController . sendData ( associationCommandClass . removeAssociationMessage ( assocId , assocArg ) ) ; \n } \n + \n + SINGLE \n + SINGLE \n + if ( networkMonitor != null ) \n + networkMonitor . healNode ( nodeId ) ; \n } \n } \n }", "msg_token": "Automatically update routes after associations are changed"} {"diff": " public final class HikariPool implements HikariPoolMBean , IBagStateListener \n HikariMBeanElf . registerMBeans ( configuration , this ) ; \n } \n \n - addConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING0 , configuration . getThreadFactory ( ) ) ; \n - closeConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING1 , configuration . getThreadFactory ( ) ) ; \n + addConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING2 + configuration . getPoolName ( ) + STRING3 , configuration . getThreadFactory ( ) ) ; \n + closeConnectionExecutor = createThreadPoolExecutor ( configuration . getMaximumPoolSize ( ) , STRING4 + configuration . getPoolName ( ) + STRING3 , configuration . getThreadFactory ( ) ) ; \n \n fillPool ( ) ;", "msg_token": "Add pool name to filler and closer threads"} {"diff": " import NAMESPACE ; \n COMMENT \n public class FiberAsyncListenableFuture < V > extends FiberAsync < V , Runnable , Void , ExecutionException > { \n public static < V > V get ( ListenableFuture < V > future ) throws ExecutionException , InterruptedException , SuspendExecution { \n - return new FiberAsyncListenableFuture < > ( future ) . run ( ) ; \n + if ( Fiber . currentFiber ( ) != null ) \n + return new FiberAsyncListenableFuture < > ( future ) . run ( ) ; \n + else \n + return future . get ( ) ; \n } \n \n private final ListenableFuture < V > fut ; \n public class FiberAsyncListenableFuture < V > extends FiberAsync < V , Runnable , Void , \n fut . addListener ( listener , sameThreadExecutor ) ; \n return null ; \n } \n - \n - private static final Executor sameThreadExecutor = new Executor ( ) { \n \n + private static final Executor sameThreadExecutor = new Executor ( ) { \n @ override \n public void execute ( Runnable command ) { \n command . run ( ) ;", "msg_token": "FiberAsyncListenableFuture get now simply calls future get if called from a thread"} {"diff": " class IntToIntBtree { \n FileUtil . delete ( file ) ; \n } \n \n - storage = new ResizeableMappedFile ( file , pageSize , storageLockContext , pageSize , true , IOUtil . ourByteBuffersUseNativeByteOrder ) ; \n + storage = new ResizeableMappedFile ( file , pageSize , storageLockContext , NUMBER0 * NUMBER0 , true , IOUtil . ourByteBuffersUseNativeByteOrder ) ; \n root = new BtreeIndexNodeView ( this ) ; \n \n if ( initial ) {", "msg_token": "revert memory page size back"} {"diff": " public class RequestArguments extends RequestStatics { \n String [ ] names = new String [ vecs . length ] ; \n int j = NUMBER0 ; \n for ( int i = NUMBER0 ; i < vecs . length ; ++ i ) { \n - if ( vecs [ i ] . min ( ) < vecs [ i ] . max ( ) && \n - ( ( double ) vecs [ i ] . naCnt ( ) ) / vecs [ i ] . length ( ) <= FLOAT0 && \n - ! vecs [ i ] . isUUID ( ) ) SINGLE \n - names [ j ++ ] = fr ( ) . _names [ i ] ; SINGLE \n + if ( ! vecs [ i ] . isUUID ( ) ) SINGLE \n + names [ j ++ ] = fr ( ) . _names [ i ] ; \n } \n return Arrays . copyOf ( names , j ) ; \n }", "msg_token": "Remove NA and constant check for column filter"} {"diff": " class PackageManagerService extends IPackageManager . Stub { \n mHandler . sendMessage ( msg ) ; \n } \n \n - public void setInstallerPackageName ( String targetPackage , \n - String installerPackageName ) { \n - PackageSetting pkgSetting ; \n + public void setInstallerPackageName ( String targetPackage , String installerPackageName ) { \n final int uid = Binder . getCallingUid ( ) ; \n - final int permission = mContext . checkCallingPermission ( \n - android . Manifest . permission . INSTALL_PACKAGES ) ; \n - final boolean allowedByPermission = ( permission == PackageManager . PERMISSION_GRANTED ) ; \n synchronized ( mPackages ) { \n PackageSetting targetPackageSetting = mSettings . mPackages . get ( targetPackage ) ; \n if ( targetPackageSetting == null ) {", "msg_token": "Remove unused items in setInstallerPackageName"} {"diff": " public class InternalTwitterContentUtils { \n if ( ! selectionArgs . isEmpty ( ) ) { \n builder . append ( STRING0 ) ; \n } \n - selectionArgs . add ( String . valueOf ( selectionArgs ) ) ; \n + selectionArgs . add ( String . valueOf ( userKey ) ) ; \n builder . append ( STRING1 ) . append ( STRING2 ) . append ( STRING3 ) . append ( Filters . Users . USER_ID ) . append ( STRING4 ) . append ( Filters . Users . TABLE_NAME ) . append ( STRING5 ) ; \n } \n if ( retweetedById != null ) {", "msg_token": "fixed wrong filter query"} {"diff": " public class TestConnections \n config . setInitializationFailFast ( true ) ; \n config . setConnectionTestQuery ( STRING0 ) ; \n config . setDataSourceClassName ( STRING1 ) ; \n + config . setPoolName ( STRING2 ) ; \n \n StubConnection . count . set ( NUMBER0 ) ;", "msg_token": "added poolname to debug"} {"diff": " public class GeneralCommandLine { \n if ( myEnvParams == null ) { \n return null ; \n } \n - final Map < String , String > envParams = new HashMap < String , String > ( myEnvParams ) ; \n + final Map < String , String > envParams = new HashMap < String , String > ( ) ; \n if ( myPassParentEnvs ) { \n envParams . putAll ( System . getenv ( ) ) ; \n } \n + envParams . putAll ( myEnvParams ) ; \n final String [ ] result = new String [ envParams . size ( ) ] ; \n int i = NUMBER0 ; \n for ( final String key : envParams . keySet ( ) ) {", "msg_token": "override envs by parent values"} {"diff": " \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n package NAMESPACE ;", "msg_token": "Modified license to apache"} {"diff": " public static Object invokeStaticMethod ( String className , String methodName , Obj \n \n public static Object getStaticField ( String className , String fieldName ) throws Exception { \n Class c = Class . forName ( className ) ; \n + if ( fieldName . equals ( STRING0 ) ) \n + return c ; \n Field f = getField ( c , fieldName , true ) ; \n if ( f != null ) \n {", "msg_token": "added class as implicit static field"} {"diff": " public abstract class ChannelInitializer < C extends Channel > extends ChannelState \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract void initChannel ( C ch ) throws Exception ; \n \n public abstract class AbstractNioChannel extends AbstractChannel { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract boolean doConnect ( SocketAddress remoteAddress , SocketAddress localAddress ) throws Exception ; \n \n public final class NioEventLoop extends SingleThreadEventLoop { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a few typos"} {"diff": " class LogStoreResource implements Resource { \n static class LogStoreRuntimeResource extends AbstractModelResource { \n \n private final ObjectName objectName ; \n - private volatile ModelNode model ; \n + private volatile ModelNode model = new ModelNode ( ) ; \n \n LogStoreRuntimeResource ( ObjectName objectName ) { \n this . objectName = objectName ;", "msg_token": "initialize the model for the log store runtime resource"} {"diff": " public interface WebSocketBase < T > extends ReadStream < T > , WriteStream < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n + @ fluent \n T writeMessage ( Buffer data ) ;", "msg_token": "Missing Fluent annotation"} {"diff": " public final class AutoBuffer { \n return this ; \n } \n SINGLE \n + @ suppresswarnings ( STRING0 ) \n public AutoBuffer putStr ( String s ) { \n if ( s == null ) return putInt ( - NUMBER0 ) ; \n SINGLE", "msg_token": "Ignore deprecation warning inside autobuffer"} {"diff": " public abstract class IStoredSettings { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean hasSettings ( String key ) { \n + return getString ( key , null ) != null ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a method to test for the existence of a setting"} {"diff": " import NAMESPACE ; \n public abstract class BetterAsyncTask < ParameterT , ProgressT , ReturnT > extends \n AsyncTask < ParameterT , ProgressT , ReturnT > { \n \n - private DroidFuApplication appContext ; \n + private final DroidFuApplication appContext ; \n + private final boolean contextIsDroidFuActivity ; \n \n private Exception error ; \n \n - private boolean contextIsDroidFuActivity , isTitleProgressEnabled , \n + private boolean isTitleProgressEnabled , \n isTitleProgressIndeterminateEnabled = true ; \n \n - private String callerId ; \n + private final String callerId ; \n \n private BetterAsyncTaskCallable < ParameterT , ProgressT , ReturnT > callable ;", "msg_token": "Changed some variables to be final in BetterAsyncTask"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public final class ColorLineMarkerProvider implements LineMarkerProvider { \n + private final ElementColorProvider [ ] myExtensions = ElementColorProvider . EP_NAME . getExtensions ( ) ; \n + \n @ override \n public LineMarkerInfo getLineMarkerInfo ( PsiElement element ) { \n - for ( ElementColorProvider colorProvider : ElementColorProvider . EP_NAME . getExtensions ( ) ) { \n + for ( ElementColorProvider colorProvider : myExtensions ) { \n final Color color = colorProvider . getColorFrom ( element ) ; \n if ( color != null ) { \n return new MyInfo ( element , color , colorProvider ) ;", "msg_token": "retrieve extension point implementations once per line marker provider"} {"diff": " public class SemVer implements Comparable < SemVer > { \n } \n \n @ notnull \n - public static SemVer parseFromTextNonNullize ( @ notnull final String text ) { \n + public static SemVer parseFromTextNonNullize ( @ nullable final String text ) { \n + if ( text == null ) return UNKNOWN ; \n final SemVer ver = parseFromText ( text ) ; \n return ver == null ? UNKNOWN : ver ; \n }", "msg_token": "SemVer create unknown version also from null text"} {"diff": " public abstract class SherlockMapActivity extends MapActivity implements OnCreat \n \n @ override \n protected void onPostCreate ( Bundle savedInstanceState ) { \n - mSherlock . dispatchPostCreate ( savedInstanceState ) ; \n super . onPostCreate ( savedInstanceState ) ; \n + mSherlock . dispatchPostCreate ( savedInstanceState ) ; \n } \n \n @ override \n public class FragmentActivity extends Activity implements OnCreatePanelMenuListe \n } \n \n @ override \n + protected void onPostCreate ( Bundle savedInstanceState ) { \n + super . onPostCreate ( savedInstanceState ) ; \n + mSherlock . dispatchPostCreate ( savedInstanceState ) ; \n + } \n + \n + @ override \n public boolean onKeyUp ( int keyCode , KeyEvent event ) { \n if ( mSherlock . dispatchKeyUp ( keyCode , event ) ) { \n return true ;", "msg_token": "Add proper title handling to plugins"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Fixed import error"} {"diff": " public abstract class DB { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public boolean isAuthenticated ( ) { \n return getAuthenticationCredentials ( ) != null ; \n } \n public abstract class DB { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public boolean authenticate ( String username , char [ ] password ) { \n + @ deprecated \n + public boolean authenticate ( String username , char [ ] password ) { \n return authenticateCommandHelper ( username , password ) . failure == null ; \n } \n \n public abstract class DB { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public synchronized CommandResult authenticateCommand ( String username , char [ ] password ) { \n + @ deprecated \n + public synchronized CommandResult authenticateCommand ( String username , char [ ] password ) { \n CommandResultPair commandResultPair = authenticateCommandHelper ( username , password ) ; \n if ( commandResultPair . failure != null ) { \n throw commandResultPair . failure ;", "msg_token": "deprecate DB authenticate"} {"diff": " public class XMLTokenizeLanguage extends LanguageSupport { \n public void setMode ( char mode ) { \n this . mode = mode ; \n } \n + \n public int getGroup ( ) { \n return group ; \n } \n public class XMLTokenizerExpression extends NamespaceAwareExpression { \n @ override \n protected void configureExpression ( CamelContext camelContext , Expression expression ) { \n super . configureExpression ( camelContext , expression ) ; \n + if ( headerName != null ) { \n + setProperty ( expression , STRING0 , headerName ) ; \n + } \n if ( mode != null ) { \n setProperty ( expression , STRING1 , mode ) ; \n } \n public class XMLTokenizerExpression extends NamespaceAwareExpression { \n @ override \n protected void configurePredicate ( CamelContext camelContext , Predicate predicate ) { \n super . configurePredicate ( camelContext , predicate ) ; \n + if ( headerName != null ) { \n + setProperty ( predicate , STRING0 , headerName ) ; \n + } \n if ( mode != null ) { \n setProperty ( predicate , STRING1 , mode ) ; \n }", "msg_token": "xmltokenizer did not set headerName option"} {"diff": " public class CacheManagingDrawTask extends DrawTask { \n BaseDanmaku danmaku = ( BaseDanmaku ) msg . obj ; \n if ( ! danmaku . isTimeOut ( ) ) { \n createCache ( danmaku ) ; \n + if ( danmaku . cache != null ) { \n + push ( danmaku , danmaku . cache . size ( ) , true ) ; \n + } \n } \n break ; \n case REBUILD_CACHE :", "msg_token": "add live danmaku to cache danmakus"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "SMALLFIX Fix a minor comment"} {"diff": " public class TelephonyIntents { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TelephonyIntents { \n public static final String ACTION_CARRIER_SETUP = STRING0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static final String CATEGORY_MCCMNC_PREFIX = STRING1 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused constant from TelephonyIntents"} {"diff": " public final class ZWaveNetworkMonitor implements ZWaveEventListener { \n COMMENT \n COMMENT \n private void nextHealStage ( HealNode healing ) { \n - logger . debug ( STRING0 , healing . state , healing . retryCnt ) ; \n + logger . debug ( STRING0 , healing . nodeId , healing . state , healing . retryCnt ) ; \n \n SINGLE \n if ( healing . state == HealState . FAILED ) { \n public final class ZWaveNetworkMonitor implements ZWaveEventListener { \n SINGLE \n SINGLE \n if ( healing . state == HealState . UPDATENEIGHBORS ) { \n + healing . retryCnt = NUMBER0 ; \n healing . state = healing . stateNext ; \n logger . debug ( STRING1 , healing . nodeId , healing . stateNext ) ; \n } else {", "msg_token": "Reset retire counter during failed heal"} {"diff": " public class CompressionServletResponseWrapper \n \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setCompressionThreshold ( int threshold ) { \n if ( debug > NUMBER0 ) {", "msg_token": "Trivial Javadoc commit to trigger a CI build"} {"diff": " public class Version { \n \n \n public static final boolean SNAPSHOT = true ; \n - public static final Version CURRENT = new Version ( NUMBER0 , SNAPSHOT , org . elasticsearch . Version . V_2_4_2 ) ; \n + public static final Version CURRENT = new Version ( NUMBER1 , SNAPSHOT , org . elasticsearch . Version . V_2_4_2 ) ; \n \n static { \n SINGLE", "msg_token": "update the crate snapshot version"} {"diff": " class ASTIsNA extends ASTPrim { \n double op ( double d ) { return Double . isNaN ( d ) ? NUMBER0 : NUMBER1 ; } \n } \n \n - COMMENT \n - Currently this is NOT in place replacement ! \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n class ASTNAOmit extends ASTPrim { \n @ override public String [ ] args ( ) { return new String [ ] { STRING0 } ; } \n @ override", "msg_token": "Add proper comments to NAOmit"} {"diff": " public class Meter implements Metered { \n final long age = newTick - oldTick ; \n if ( age > TICK_INTERVAL && lastTick . compareAndSet ( oldTick , newTick ) ) { \n final long requiredTicks = age / TICK_INTERVAL ; \n - System . out . println ( STRING0 + requiredTicks ) ; \n for ( long i = NUMBER0 ; i < requiredTicks ; i ++ ) { \n tick ( ) ; \n }", "msg_token": "Remove debug println"} {"diff": " public class Amenity extends MapObject { \n if ( this . additionalInfo == null ) { \n this . additionalInfo = new LinkedHashMap < String , String > ( ) ; \n } \n - this . additionalInfo . put ( tag , value ) ; \n - if ( OPENING_HOURS . equals ( tag ) ) { \n - this . openingHours = value ; \n + if ( STRING0 . equals ( tag ) ) { \n + setName ( value ) ; \n + } else if ( STRING1 . equals ( tag ) ) { \n + setEnName ( value ) ; \n + } else { \n + this . additionalInfo . put ( tag , value ) ; \n + if ( OPENING_HOURS . equals ( tag ) ) { \n + this . openingHours = value ; \n + } \n } \n }", "msg_token": "Fix text types"} {"diff": " public class Environment { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public static String DIRECTORY_DOWNLOADS = STRING0 ; \n + public static String DIRECTORY_DOWNLOADS = STRING1 ; \n \n COMMENT \n COMMENT", "msg_token": "playing audio file downloaded by the browser"} {"diff": " public class MobileDataStateTracker implements NetworkStateTracker { \n case TelephonyManager . NETWORK_TYPE_HSPA : \n networkTypeStr = STRING0 ; \n break ; \n + case TelephonyManager . NETWORK_TYPE_HSPAP : \n + networkTypeStr = STRING1 ; \n + break ; \n case TelephonyManager . NETWORK_TYPE_CDMA : \n networkTypeStr = STRING2 ; \n break ;", "msg_token": "Add HSPAP to getTcpBufferSizesPropName"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class IndexSamplingControllerTest \n \n SINGLE \n assertEquals ( NUMBER0 , concurrentCount . get ( ) ) ; \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n int expected = totalCount . get ( ) ; \n - assertTrue ( STRING0 + expected , NUMBER1 >= expected || expected <= NUMBER2 ) ; \n + assertTrue ( STRING0 + expected , NUMBER1 >= expected && expected <= NUMBER2 ) ; \n } \n \n @ test", "msg_token": "Revert Fix flaky index sampling test"} {"diff": " public class ExtractorService { \n } \n \n public void delete ( Node node , Input input , String extractorId ) throws IOException , APIException { \n - api . path ( resource . terminate ( input . getId ( ) , extractorId ) ) \n + api . path ( resource . removeExtractor ( input . getId ( ) , extractorId ) ) \n . node ( node ) \n . expect ( Http . Status . NO_CONTENT ) \n . execute ( ) ;", "msg_token": "Fix ExtractorService after renaming ExtractorsResource terminate"} {"diff": " public class NewStringBufferWithCharArgumentInspection extends BaseInspection { \n super . visitNewExpression ( expression ) ; \n final PsiExpressionList argumentList = expression . getArgumentList ( ) ; \n if ( argumentList == null ) { \n - System . out . println ( STRING0 ) ; \n return ; \n } \n final PsiExpression [ ] arguments = argumentList . getExpressions ( ) ; \n if ( arguments . length != NUMBER0 ) { \n - System . out . println ( STRING1 ) ; \n return ; \n } \n final PsiExpression argument = arguments [ NUMBER1 ] ; \n final PsiType type = argument . getType ( ) ; \n if ( ! PsiType . CHAR . equals ( type ) ) { \n - System . out . println ( STRING2 ) ; \n return ; \n } \n final PsiMethod constructor = expression . resolveConstructor ( ) ;", "msg_token": "remove system outs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Registry implements RegistryMBean , MBeanRegistration { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove comments that refer to code long since removed"} {"diff": " public class DefaultGroovyMethods { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static BitSet getAt ( BitSet self , IntRange range ) { \n int from = DefaultTypeTransformation . intUnbox ( range . getFrom ( ) ) ;", "msg_token": "updated a javadoc ref"} {"diff": " public class PinotSegmentRecordReader extends BaseRecordReader { \n dictionaryId = svSortedReader . getInt ( docNumber ) ; \n } \n if ( dictionary == null ) { \n - throw new IllegalStateException ( STRING0 + column ) ; \n + throw new IllegalStateException ( STRING1 + column ) ; \n } \n fields . put ( column , dictionary . get ( dictionaryId ) ) ;", "msg_token": "Create PinotSegmentRecordReader and PinotSegmentToAvroConverter tool"} {"diff": " public class WebParsingDeploymentProcessor implements DeploymentUnitProcessor { \n XMLSchemaValidator validator = new XMLSchemaValidator ( new XMLResourceResolver ( ) ) ; \n InputStream xmlInput = webXml . openStream ( ) ; \n try { \n - validator . validate ( webMetaData . getSchemaLocation ( ) , xmlInput ) ; \n + if ( webMetaData . is23 ( ) ) \n + validator . validate ( STRING0 , xmlInput ) ; \n + else if ( webMetaData . is24 ( ) ) \n + validator . validate ( STRING1 , xmlInput ) ; \n + else if ( webMetaData . is25 ( ) ) \n + validator . validate ( STRING2 , xmlInput ) ; \n + else if ( webMetaData . is30 ( ) ) \n + validator . validate ( STRING3 , xmlInput ) ; \n + else \n + validator . validate ( STRING4 , xmlInput ) ; \n } catch ( SAXException e ) { \n throw new DeploymentUnitProcessingException ( STRING5 + webXml , e ) ; \n } finally {", "msg_token": "Use the schema corresponding to the version for validation"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MavenDependencyTypeConverter extends MavenProjectConstantListConver \n Set < String > res = new LinkedHashSet < String > ( ) ; \n \n res . addAll ( MavenProjectsManager . getInstance ( context . getProject ( ) ) . getImportingSettings ( ) . getDependencyTypesAsSet ( ) ) ; \n + \n + res . add ( MavenConstants . TYPE_POM ) ; \n + \n res . addAll ( project . getDependencyTypesFromImporters ( SupportedRequestType . FOR_COMPLETION ) ) ; \n \n return res ; \n public class MavenImportingSettings implements Cloneable { \n \n private GeneratedSourcesFolder generatedSourcesFolder = GeneratedSourcesFolder . AUTODETECT ; \n \n - private String dependencyTypes = STRING0 ; \n + private String dependencyTypes = STRING1 ; \n private Set < String > myDependencyTypesAsSet ; \n \n private List < Listener > myListeners = ContainerUtil . createLockFreeCopyOnWriteList ( ) ;", "msg_token": "Fix Maven tests"} {"diff": " public class TestAssemblyProcessor \n { \n String [ ] lines = new String [ ] { \n STRING0 , \n - STRING1 , \n + STRING2 , \n STRING3 , \n STRING4 , \n STRING5 , \n public class TestAssemblyProcessor \n SINGLE \n int expectedAssemblyResults = ZERO ; \n String [ ] lines = new String [ ] { \n - STRING6 , \n + STRING7 , \n STRING2 \n } ; \n \n public class TestTagProcessor \n Given a line containing an open tag \n And the closing angle bracket of the tag is missing \n When the tag processor parses such a line \n - Then no tags should be returned \n + Then nested tags should be returned \n COMMENT \n @ test \n - public void givenNestedLinesWithAParent_WhenTheTagProcessorActionsIt_ThenANestTagIsReturned ( ) { \n + public void givenNestedLinesWithAParent_WhenTheTagProcessorActionsIt_ThenANestedTagsAreReturned ( ) { \n SINGLE \n String expectedParseResult = \n STRING8 +", "msg_token": "Fixed formatting corrected test name and scenario description"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n SINGLE \n SINGLE \n + boolean visibilityChanged = false ; \n if ( wtoken . hidden == visible || ( wtoken . hidden && wtoken . mIsExiting ) || \n ( visible && wtoken . waitingForReplacement ( ) ) ) { \n boolean changed = false ; \n public class WindowManagerService extends IWindowManager . Stub \n } \n \n wtoken . hidden = wtoken . hiddenRequested = ! visible ; \n + visibilityChanged = true ; \n if ( ! visible ) { \n unsetAppFreezingScreenLocked ( wtoken , true , true ) ; \n } else { \n public class WindowManagerService extends IWindowManager . Stub \n } \n } \n \n + if ( visibilityChanged && visible && ! delayed ) { \n + SINGLE \n + SINGLE \n + wtoken . mEnteringAnimation = true ; \n + mActivityManagerAppTransitionNotifier . onAppTransitionFinishedLocked ( wtoken . token ) ; \n + } \n + \n return delayed ; \n }", "msg_token": "Deliver onEnterAnimationComplete when there is no transition animation"} {"diff": " public class TestVersions extends com . fasterxml . jackson . test . BaseTest \n assertEquals ( MAJOR_VERSION , v . getMajorVersion ( ) ) ; \n assertEquals ( MINOR_VERSION , v . getMinorVersion ( ) ) ; \n SINGLE \n - assertEquals ( NUMBER0 , v . getPatchLevel ( ) ) ; \n + SINGLE \n assertEquals ( GROUP_ID , v . getGroupId ( ) ) ; \n assertEquals ( ARTIFACT_ID , v . getArtifactId ( ) ) ; \n }", "msg_token": "fix a unit test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final class CategoryIds {", "msg_token": "de add javadoc"} {"diff": " public class DiscoveryClient implements LookupService { \n arrangeListBasedonHostname ( serviceUrls ) ; \n serviceUrls . add ( NUMBER0 , primaryServiceUrl ) ; \n \n - logger . info ( \n + logger . debug ( \n STRING0 , \n Arrays . toString ( serviceUrls . toArray ( ) ) ) ; \n t . stop ( ) ; \n public class DiscoveryClient implements LookupService { \n return ; \n } \n if ( ! serviceUrlList . equals ( eurekaServiceUrls . get ( ) ) ) { \n - logger . debug ( \n + logger . info ( \n STRING1 , \n Arrays . toString ( eurekaServiceUrls . get ( ) \n . toArray ( ) ) , Arrays", "msg_token": "Fix log level for serviceUrls"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class TransformUtil { \n public static Double quantize ( double val , double delta ) {", "msg_token": "Add comments to TransformUtil"} {"diff": " public final class Gmail { \n public static final String LABEL_OUTBOX = STRING0 ; \n \n public static final String AUTHORITY = STRING1 ; \n - private static final String TAG = STRING1 ; \n + private static final String TAG = STRING2 ; \n private static final String AUTHORITY_PLUS_CONVERSATIONS = \n STRING3 + AUTHORITY + STRING4 ; \n private static final String AUTHORITY_PLUS_LABELS =", "msg_token": "Rename gmail ls log tag to Gmail"} {"diff": " public class HttpRequest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class HttpRequest { \n return this ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Tweak comment for progress method"} {"diff": " public class RegistrationState \n COMMENT \n public String toString ( ) \n { \n - return new StringBuffer ( STRING0 ) \n - . append ( getStateName ( ) ) . toString ( ) ; \n + return STRING0 + getStateName ( ) ; \n } \n \n COMMENT", "msg_token": "replaced use of a StringBuffer by a simple String concatenation as it is now optimized by the JVM"} {"diff": " public class TimerHandler implements IUpdateHandler { \n private float mSecondsPassed ; \n private boolean mCallbackTriggered = false ; \n private final ITimerCallback mTimerCallback ; \n - private final boolean mAutoReset ; \n + private boolean mAutoReset ; \n \n SINGLE \n SINGLE \n public class TimerHandler implements IUpdateHandler { \n SINGLE \n SINGLE \n \n + public boolean isAutoReset ( ) { \n + return this . mAutoReset ; \n + } \n + \n + public void setAutoReset ( final boolean pAutoReset ) { \n + this . mAutoReset = pAutoReset ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Made Auto Resetting of TimerHandler dis enable able"} {"diff": " class KeyguardStatusViewManager implements OnClickListener { \n COMMENT \n COMMENT \n private static CharSequence makeCarierString ( CharSequence plmn , CharSequence spn ) { \n - if ( plmn != null && spn == null ) { \n - return plmn ; \n - } else if ( plmn != null && spn != null ) { \n + final boolean plmnValid = ! TextUtils . isEmpty ( plmn ) ; \n + final boolean spnValid = ! TextUtils . isEmpty ( spn ) ; \n + if ( plmnValid && spnValid ) { \n return plmn + STRING0 + spn ; \n - } else if ( plmn == null && spn != null ) { \n + } else if ( plmnValid ) { \n + return plmn ; \n + } else if ( spnValid ) { \n return spn ; \n } else { \n return STRING1 ;", "msg_token": "Check for empty plmn spn strings instead of just null"} {"diff": " public class NioClientManager extends AbstractExecutionThreadService implements \n try { \n if ( sc . finishConnect ( ) ) { \n log . info ( STRING0 , sc . socket ( ) . getRemoteSocketAddress ( ) ) ; \n - handler . parser . connectionOpened ( ) ; \n key . interestOps ( SelectionKey . OP_READ ) . attach ( handler ) ; \n + handler . parser . connectionOpened ( ) ; \n } else { \n log . error ( STRING1 , sc . socket ( ) . getRemoteSocketAddress ( ) ) ; \n handler . closeConnection ( ) ; SINGLE", "msg_token": "Fix reentrance bug when writing in connectionOpened"} {"diff": " import NAMESPACE ; \n public class SettingsFragment extends PreferenceFragment { \n public static final String SETTINGS_PREFERENCES = STRING0 ; \n \n + private AlertDialog mDialog ; \n private SharedPreferences mSettings ; \n private WPEditTextPreference mTaglineTextPreference ; \n \n public class SettingsFragment extends PreferenceFragment { \n } \n } ; \n \n - private AlertDialog mDialog ; \n private final OnPreferenceClickListener languagePreferenceClickListener = new OnPreferenceClickListener ( ) { \n @ override \n public boolean onPreferenceClick ( Preference preference ) {", "msg_token": "Moving field to top of class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class SchematicBlock extends SchematicBlockBase implements Comparable < SchematicBlock > { \n + public class SchematicBlock extends SchematicBlockBase { \n \n public Block block = null ; \n public int meta = NUMBER0 ; \n public class SchematicBlock extends SchematicBlockBase implements Comparable < Sc \n } \n \n @ override \n - public int compareTo ( SchematicBlock o ) { \n - return NUMBER0 ; \n - } \n - \n public boolean isStandalone ( ) { \n return block . isOpaqueCube ( ) ; \n }", "msg_token": "fixed previous check in"} {"diff": " public class JMXAccessorQueryTask extends JMXAccessorTask { \n return isError ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - protected void bindAttributes ( MBeanServerConnection jmxServerConnection , \n - String resultproperty , String pname , ObjectName oname ) { \n - bindAttributes ( jmxServerConnection , pname , oname ) ; \n - } \n - \n protected void bindAttributes ( MBeanServerConnection jmxServerConnection , String pname , ObjectName oname ) { \n try { \n MBeanInfo minfo = jmxServerConnection . getMBeanInfo ( oname ) ;", "msg_token": "Remove deprecated code"} {"diff": " public class NumpyDocStringTypeProvider extends PyTypeProviderBase { \n } \n if ( paramType != null ) { \n if ( isUfuncType ( function , paramType ) ) { \n - return getPsiFacade ( function ) . parseTypeAnnotation ( STRING0 , function ) ; \n + return getPsiFacade ( function ) . parseTypeAnnotation ( STRING1 , function ) ; \n } \n final PyType numpyDocType = parseNumpyDocType ( function , paramType ) ; \n if ( STRING2 . equals ( parameterName ) ) {", "msg_token": "allow passing all sequence types for array and array like parameters"} {"diff": " public class MainActivity extends SherlockFragmentActivity { \n viewpager . setAdapter ( pagerAdapter ) ; \n \n Tab feedsTab = getSupportActionBar ( ) . newTab ( ) ; \n - feedsTab . setText ( R . string . feeds_label ) ; \n + feedsTab . setText ( R . string . podcasts_label ) ; \n Tab episodesTab = getSupportActionBar ( ) . newTab ( ) ; \n episodesTab . setText ( R . string . episodes_label ) ;", "msg_token": "Used wrong label for tab"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add missing closing paren"} {"diff": " public class FragmentMain extends Fragment { \n searchView . setOnQueryTextListener ( onQuerySearchView ) ; \n \n menu . findItem ( R . id . menu_add ) . setVisible ( true ) ; \n - \n + \n mSearchCheck = false ; \n }", "msg_token": "Remove unnecessary dependency of AppCompat library"} {"diff": " public class ControllerActionTransformer implements GrailsArtefactClassInjector , \n commandObjectNode , \n grails . validation . Validateable . class , \n grails . persistence . Entity . class , \n - javax . persistence . Entity . class ) ; \n + javax . persistence . Entity . class ) || \n + commandObjectNode . implementsInterface ( ClassHelper . make ( grails . artefact . Validateable . class ) ) ; \n \n if ( ! argumentIsValidateable ) { \n final ModuleNode commandObjectModule = commandObjectNode . getModule ( ) ; \n public class ControllerActionTransformer implements GrailsArtefactClassInjector , \n \n final String warningMessage = STRING0 + actionName + STRING1 + \n commandObjectNode . getName ( ) + \n - STRING2 + \n + STRING3 + \n STRING4 ; \n GrailsASTUtils . warning ( source , actionNode , warningMessage ) ; \n }", "msg_token": "command objects should respect the Validateable trait"} {"diff": " public final class HttpString implements Comparable < HttpString > , Serializable { \n COMMENT \n COMMENT \n public void appendTo ( ByteBuffer buffer ) { \n - buffer . put ( bytes ) ; \n + for ( int i = NUMBER0 ; i < bytes . length ; ++ i ) { \n + buffer . put ( bytes [ i ] ) ; \n + } \n } \n \n COMMENT", "msg_token": "Use put for appendTo"} {"diff": " public class RedisDecoder extends ReplayingDecoder < Reply , VoidEnum > { \n } \n \n @ override \n - public Reply decode ( ChannelInboundHandlerContext < Byte > channelHandlerContext , ChannelBuffer channelBuffer , VoidEnum anEnum ) throws Exception { \n + public Reply decode ( ChannelInboundHandlerContext < Byte > channelHandlerContext , ChannelBuffer channelBuffer ) throws Exception { \n if ( reply != null ) { \n reply . read ( this , channelBuffer ) ; \n Reply ret = reply ; \n public class ReplayingDecoderTest { \n } \n \n @ override \n - public ChannelBuffer decode ( ChannelInboundHandlerContext < Byte > ctx , \n - ChannelBuffer in , VoidEnum state ) throws Exception { \n + public ChannelBuffer decode ( ChannelInboundHandlerContext < Byte > ctx , ChannelBuffer in ) { \n ChannelBuffer msg = in . readBytes ( in . bytesBefore ( ChannelBufferIndexFinder . LF ) ) ; \n in . skipBytes ( NUMBER0 ) ; \n return msg ;", "msg_token": "Fix compilation errors"} {"diff": " public class PathFinding implements IIterableAlgorithm { \n int y = from . index . y + dy ; \n int z = from . index . z + dz ; \n \n - if ( endReached ( x , y , z ) ) { \n + if ( y < NUMBER0 ) { \n + resultMoves [ dx + NUMBER1 ] [ dy + NUMBER1 ] [ dz + NUMBER1 ] = NUMBER0 ; \n + } else if ( endReached ( x , y , z ) ) { \n resultMoves [ dx + NUMBER1 ] [ dy + NUMBER1 ] [ dz + NUMBER1 ] = NUMBER2 ; \n } else if ( ! BuildCraftAPI . isSoftBlock ( world , x , y , z ) ) { \n resultMoves [ dx + NUMBER1 ] [ dy + NUMBER1 ] [ dz + NUMBER1 ] = NUMBER0 ;", "msg_token": "fix a robot error on void worlds or worlds with holes in bedrock"} {"diff": " public class Solo { \n COMMENT \n COMMENT \n \n - public boolean waitForActivityStackToBeEmpty ( int timeout ) \n + public boolean waitForEmptyActivityStack ( int timeout ) \n { \n return waiter . waitForCondition ( \n new Condition ( ) {", "msg_token": "Changed method name"} {"diff": " public class ZygoteInit { \n count ++ ; \n } catch ( ClassNotFoundException e ) { \n Log . w ( TAG , STRING0 + line ) ; \n + } catch ( UnsatisfiedLinkError e ) { \n + Log . w ( TAG , STRING1 + line + STRING2 + e ) ; \n } catch ( Throwable t ) { \n Log . e ( TAG , STRING3 + line + STRING4 , t ) ; \n if ( t instanceof Error ) {", "msg_token": "Treat UnsatisfiedLinkError as non fatal"} {"diff": " public class FunctionRegistry \n \n SINGLE \n Type type = typeManager . getType ( typeName ) ; \n - checkArgument ( type != null , STRING0 , typeName ) ; \n + checkNotNull ( type , STRING0 , typeName ) ; \n \n SINGLE \n checkArgument ( parameterTypes . size ( ) == NUMBER0 , STRING1 , parameterTypes ) ;", "msg_token": "Fix intellij warning"} {"diff": " final class AttributeProviderRegistry { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public boolean hasReader ( Class < ? extends BasicFileAttributes > type ) { \n - return readers . containsKey ( type ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 )", "msg_token": "Remove an unused method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class LambdaTest { \n + public class LambdaIT { \n \n @ test \n public void test ( ) throws Exception { \n public class LambdaTest { \n } \n \n public static void main ( String args [ ] ) throws Exception { \n - new LambdaTest ( ) . test ( ) ; \n + new LambdaIT ( ) . test ( ) ; \n } \n \n }", "msg_token": "Rename LambdaTest to LambdaIT"} {"diff": " public class SourceFormatter { \n String content = _fileUtil . read ( file ) ; \n \n if ( _isGenerated ( content ) ) { \n - return ; \n + continue ; \n } \n \n String className = file . getName ( ) ;", "msg_token": "Fix source formatter"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public abstract class ExternalResourceManager { \n + public abstract class ExternalResourceManager implements ModificationTracker { \n public static ExternalResourceManager getInstance ( ) { \n return ApplicationManager . getApplication ( ) . getComponent ( ExternalResourceManager . class ) ; \n } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ExternalResourceManagerImpl extends ExternalResourceManagerEx implements JDOMExternalizable , ApplicationComponent , ModificationTracker { \n + public class ExternalResourceManagerImpl extends ExternalResourceManagerEx implements JDOMExternalizable , ApplicationComponent { \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n \n @ nonnls public static final String J2EE_1_3 = STRING1 ;", "msg_token": "implement ModificationTracker explicitely"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove import of removed view"} {"diff": " public abstract class Language { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add a comment"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n public final class IntIntHashMap extends TIntIntHashMap { \n - public IntIntHashMap ( int initialCapacity ) { \n + private static final int DEFAULT_NULL_VALUE = - NUMBER0 ; \n + \n + private final int NULL_VALUE ; \n + \n + public IntIntHashMap ( int initialCapacity , int null_value ) { \n super ( initialCapacity ) ; \n + NULL_VALUE = null_value ; \n + } \n + \n + public IntIntHashMap ( int initialCapacity ) { \n + this ( initialCapacity , DEFAULT_NULL_VALUE ) ; \n } \n \n public IntIntHashMap ( ) { \n + NULL_VALUE = DEFAULT_NULL_VALUE ; \n } \n \n @ override \n public int get ( int key ) { \n int index = index ( key ) ; \n - return index < NUMBER1 ? - NUMBER0 : _values [ index ] ; \n + return index < NUMBER1 ? NULL_VALUE : _values [ index ] ; \n } \n }", "msg_token": "Add NULL_VALUE to IntIntHashMap"} {"diff": " public class TruncatedRecoveryTests extends ElasticsearchIntegrationTest { \n public void sendRequest ( DiscoveryNode node , long requestId , String action , TransportRequest request , TransportRequestOptions options ) throws IOException , TransportException { \n if ( action . equals ( RecoveryTarget . Actions . FILE_CHUNK ) ) { \n RecoveryFileChunkRequest req = ( RecoveryFileChunkRequest ) request ; \n - if ( ( req . name ( ) . endsWith ( STRING0 ) || req . name ( ) . endsWith ( STRING1 ) ) && req . lastChunk ( ) && truncate . get ( ) ) { \n + logger . debug ( STRING2 + req . toString ( ) + STRING3 + req . lastChunk ( ) ) ; \n + if ( ( req . name ( ) . endsWith ( STRING0 ) || req . name ( ) . endsWith ( STRING1 ) ) && req . lastChunk ( ) && truncate . get ( ) ) { \n latch . countDown ( ) ; \n throw new RuntimeException ( STRING4 ) ; \n }", "msg_token": "TEST Add more logging to TruncatedRecoveryTests"} {"diff": " public class Callbacks { \n Collection < StringCache . S > getClassFiles ( ) ; \n \n void associate ( String classFileName , SourceFileNameLookup sourceLookup , ClassReader cr ) ; \n - \n - void associate ( Set < Pair < ClassRepr , Set < StringCache . S > > > classes , \n - Pair < UsageRepr . Cluster , Set < UsageRepr . Usage > > usages , \n - String sourceFileName ) ; \n - \n void associateForm ( StringCache . S formName , StringCache . S className ) ; \n } \n }", "msg_token": "Fixed dependency update essentially simplified representation JPS incremental"} {"diff": " public class OStorageRemote extends OStorageAbstract implements OStorageProxy { \n try { \n engine . getConnectionManager ( ) . remove ( iNetwork ) ; \n } catch ( Exception e ) { \n - OLogManager . instance ( ) . error ( this , STRING0 , e ) ; \n + OLogManager . instance ( ) . debug ( this , STRING1 , e ) ; \n } \n } else { \n OLogManager . instance ( ) . warn ( this , STRING2 ,", "msg_token": "fixed typo on message"} {"diff": " public class PolishIndicesAnalysis extends AbstractComponent { \n @ inject \n public PolishIndicesAnalysis ( Settings settings , IndicesAnalysisService indicesAnalysisService ) { \n super ( settings ) ; \n - indicesAnalysisService . analyzerProviderFactories ( ) . put ( STRING0 , new PreBuiltAnalyzerProviderFactory ( STRING0 , AnalyzerScope . INDICES , new PolishAnalyzer ( Lucene . ANALYZER_VERSION ) ) ) ; \n + indicesAnalysisService . analyzerProviderFactories ( ) . put ( STRING1 , new PreBuiltAnalyzerProviderFactory ( STRING1 , AnalyzerScope . INDICES , new PolishAnalyzer ( Lucene . ANALYZER_VERSION ) ) ) ; \n \n indicesAnalysisService . tokenFilterFactories ( ) . put ( STRING2 , new PreBuiltTokenFilterFactoryFactory ( new TokenFilterFactory ( ) { \n @ override public String name ( ) {", "msg_token": "Stempel sets itself as the default analyzer"} {"diff": " public class MBeanUtils { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public static String getDomain ( Container container ) { \n \n String domain = null ;", "msg_token": "Deprecate code to be removed"} {"diff": " import NAMESPACE ; \n public class BroadcasterConfig { \n public final static Logger logger = LoggerUtils . getLogger ( ) ; \n \n - final static int numOfProcessor = Runtime . getRuntime ( ) . availableProcessors ( ) ; \n - \n protected final ConcurrentLinkedQueue < BroadcastFilter > filters = \n new ConcurrentLinkedQueue < BroadcastFilter > ( ) ; \n \n public class BroadcasterConfig { \n public ScheduledExecutorService getScheduledExecutorService ( ) { \n synchronized ( lock ) { \n if ( scheduler == null ) { \n - scheduler = Executors . newScheduledThreadPool ( numOfProcessor ) ; \n + scheduler = Executors . newSingleThreadScheduledExecutor ( ) ; \n } \n } \n return scheduler ;", "msg_token": "Use a single thread"} {"diff": " public class EntityChangeBlockEvent extends EntityEvent implements Cancellable { \n private final Block block ; \n private boolean cancel ; \n private final Material to ; \n + private final byte data ; \n \n public EntityChangeBlockEvent ( final LivingEntity what , final Block block , final Material to ) { \n + this ( what , block , to , ( byte ) NUMBER0 ) ; \n + } \n + \n + public EntityChangeBlockEvent ( final LivingEntity what , final Block block , final Material to , final byte data ) { \n super ( what ) ; \n this . block = block ; \n this . cancel = false ; \n this . to = to ; \n + this . data = data ; \n } \n \n @ override \n public class EntityChangeBlockEvent extends EntityEvent implements Cancellable { \n return to ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public byte getData ( ) { \n + return data ; \n + } \n + \n @ override \n public HandlerList getHandlers ( ) { \n return handlers ;", "msg_token": "Add data values for entity change block event"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add license header to EventCollectingHandler"} {"diff": " public class ShadowContextImpl extends ShadowContext { \n SYSTEM_SERVICE_MAP . put ( Context . TEXT_SERVICES_MANAGER_SERVICE , STRING0 ) ; \n SYSTEM_SERVICE_MAP . put ( Context . DEVICE_POLICY_SERVICE , STRING1 ) ; \n SYSTEM_SERVICE_MAP . put ( Context . DROPBOX_SERVICE , STRING2 ) ; \n + SYSTEM_SERVICE_MAP . put ( Context . MEDIA_ROUTER_SERVICE , STRING3 ) ; \n } \n \n @ realobject private Context realContextImpl ; \n public class ApplicationTest { \n checkSystemService ( Context . DOWNLOAD_SERVICE , android . app . DownloadManager . class ) ; \n checkSystemService ( Context . DEVICE_POLICY_SERVICE , android . app . admin . DevicePolicyManager . class ) ; \n checkSystemService ( Context . DROPBOX_SERVICE , android . os . DropBoxManager . class ) ; \n + checkSystemService ( Context . MEDIA_ROUTER_SERVICE , android . media . MediaRouter . class ) ; \n } \n \n @ test public void shouldProvideLayoutInflater ( ) throws Exception {", "msg_token": "Implement Context getSystemService for MediaRouter"} {"diff": " public class SessionFactoryFactory { \n \n final ServiceRegistry registry = new ServiceRegistryBuilder ( ) \n . addService ( ConnectionProvider . class , connectionProvider ) \n + . applySettings ( properties ) \n . buildServiceRegistry ( ) ; \n \n return configuration . buildSessionFactory ( registry ) ;", "msg_token": "Pass properties everywhere"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Corrected the package name"} {"diff": " public class MockEndpoint extends DefaultEndpoint implements BrowsableEndpoint { \n SINGLE \n SINGLE \n protected volatile Processor reporter ; \n + \n + @ uriparam ( defaultValue = STRING0 ) \n + protected boolean copyOnExchange = true ; \n \n private volatile Processor defaultProcessor ; \n private volatile Map < Integer , Processor > processors ; \n public class MockEndpoint extends DefaultEndpoint implements BrowsableEndpoint { \n \n @ uripath ( description = STRING1 ) \n private String name ; \n - @ uriparam ( defaultValue = STRING0 ) \n - protected boolean copyOnExchange = true ; \n @ uriparam \n private volatile int expectedCount ; \n @ uriparam \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed the CS errors of camel core"} {"diff": " public interface BaseDownloadTask { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add note in the method BaseDownloadTask asInQueueTask to declare no need to invoke this method when user use FileDownloadQueueSet"} {"diff": " public class ORecordSerializerJSON extends ORecordSerializerStringAbstract { \n \n final String [ ] fields = OStringParser . getWords ( iSource , STRING0 , true ) ; \n \n + if ( fields . length % NUMBER0 != NUMBER1 ) \n + throw new OSerializationException ( STRING1 ) ; \n + \n String fieldName ; \n String fieldValue ; \n String fieldValueAsString ;", "msg_token": "improved error message when the format is wrong"} {"diff": " public class TextViewTransformState extends TransformState { \n if ( TextUtils . equals ( otherTvs . mText . getText ( ) , mText . getText ( ) ) ) { \n int ownEllipsized = getEllipsisCount ( ) ; \n int otherEllipsized = otherTvs . getEllipsisCount ( ) ; \n - return ownEllipsized == otherEllipsized ; \n + return ownEllipsized == otherEllipsized \n + && mText . getHeight ( ) == otherTvs . mText . getHeight ( ) ; \n } \n } \n return super . sameAs ( otherState ) ;", "msg_token": "Fixed a bug where text would still not animate"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class FuzzyLikeThisActionTests extends ElasticsearchIntegrationTest { \n @ test \n SINGLE \n public void testNumericField ( ) throws Exception { \n - prepareCreate ( STRING0 ) . execute ( ) . actionGet ( ) ; \n + assertAcked ( prepareCreate ( STRING0 ) \n + . setSettings ( settingsBuilder ( ) \n + . put ( SETTING_NUMBER_OF_SHARDS , between ( NUMBER0 , NUMBER1 ) ) \n + . put ( SETTING_NUMBER_OF_REPLICAS , between ( NUMBER2 , NUMBER0 ) ) ) \n + . addMapping ( STRING1 , STRING2 , STRING3 ) ) ; \n ensureGreen ( ) ; \n client ( ) . prepareIndex ( STRING0 , STRING1 , STRING4 ) \n . setSource ( jsonBuilder ( ) . startObject ( ) . field ( STRING5 , STRING6 ) . field ( STRING2 , NUMBER0 ) . endObject ( ) )", "msg_token": "Randomized number of shards replicas add mapping for numeric fields"} {"diff": " public class SurfaceView extends View { \n final boolean formatChanged = mFormat != mRequestedFormat ; \n final boolean sizeChanged = mWidth != myWidth || mHeight != myHeight ; \n final boolean visibleChanged = mVisible != mRequestedVisible ; \n + final boolean layoutSizeChanged = getWidth ( ) != mLayout . width || getHeight ( ) != mLayout . height ; \n \n if ( force || creating || formatChanged || sizeChanged || visibleChanged \n || mLeft != mLocation [ NUMBER0 ] || mTop != mLocation [ NUMBER1 ] \n - || mUpdateWindowNeeded || mReportDrawNeeded || redrawNeeded ) { \n + || mUpdateWindowNeeded || mReportDrawNeeded || redrawNeeded || layoutSizeChanged ) { \n \n if ( DEBUG ) Log . i ( TAG , STRING0 + creating \n + STRING1 + formatChanged + STRING2 + sizeChanged", "msg_token": "Ensure SurfaceView requests WM relayout when size changes"} {"diff": " public abstract class JettyHttpComponent extends HttpComponent implements RestCo \n COMMENT \n COMMENT \n COMMENT \n - @ metadata ( description = STRING0 ) \n + @ metadata ( description = STRING1 \n + + STRING2 ) \n public void setSslKeyPassword ( String sslKeyPassword ) { \n this . sslKeyPassword = sslKeyPassword ; \n }", "msg_token": "Fixed the CS error in camel jetty common"} {"diff": " public class ClobType extends LiquibaseDataType { \n return new DatabaseDataType ( STRING0 ) ; \n } else if ( database instanceof OracleDatabase ) { \n return new DatabaseDataType ( STRING1 ) ; \n + } else if ( database instanceof InformixDatabase ) { \n + if ( originalDefinition . toLowerCase ( ) . startsWith ( STRING2 ) ) { \n + return new DatabaseDataType ( STRING0 ) ; \n + } \n } \n return super . toDatabaseDataType ( database ) ; \n }", "msg_token": "Fix text datatype for informix"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove incorrect import"} {"diff": " public class InitOperation extends AbstractInitOperation { \n options . getConfigTO ( ) . save ( configFile ) ; \n \n SINGLE \n - logger . log ( Level . INFO , STRING0 ) ; \n - \n - initRemoteRepository ( ) ; \n + logger . log ( Level . INFO , STRING1 ) ; \n + initRemoteRepository ( configFile ) ; \n \n try { \n if ( options . isEncryptionEnabled ( ) ) { \n public class InitOperation extends AbstractInitOperation { \n } \n } \n \n - private void initRemoteRepository ( ) throws Exception { \n + private void initRemoteRepository ( File configFile ) throws Exception { \n try { \n + SINGLE \n transferManager . init ( options . isCreateTarget ( ) ) ; \n + \n + SINGLE \n + options . getConfigTO ( ) . save ( configFile ) ; \n } \n catch ( StorageException e ) { \n SINGLE", "msg_token": "Allow TM init to alter the transfer settings Flickr plugin needs this"} {"diff": " public class ForgeHooks \n Blocks . iron_block . setHarvestLevel ( STRING0 , NUMBER0 ) ; \n Blocks . lapis_ore . setHarvestLevel ( STRING0 , NUMBER0 ) ; \n Blocks . lapis_block . setHarvestLevel ( STRING0 , NUMBER0 ) ; \n + Blocks . quartz_ore . setHarvestLevel ( STRING0 , NUMBER1 ) ; \n } \n \n public static int getTotalArmorValue ( EntityPlayer player ) \n public class ForgeEventFactory \n changed |= ItemStack . areItemStacksEqual ( tmp [ x ] , stacks [ x ] ) ; \n stacks [ x ] = event . getItem ( x ) ; \n } \n - onPotionBrewed ( stacks ) ; \n + if ( changed ) \n + onPotionBrewed ( stacks ) ; \n return true ; \n } \n return false ;", "msg_token": "Add quartz_ore tool init more mojang special casing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class KMeansIteration implements PlanAssembler , PlanAssemblerDescription \n SINGLE \n FileDataSource dataPoints = new FileDataSource ( PointInFormat . class , dataPointInput , STRING0 ) ; \n dataPoints . setParameter ( DelimitedInputFormat . RECORD_DELIMITER , STRING1 ) ; \n - SINGLE \n + dataPoints . getCompilerHints ( ) . setUniqueField ( new FieldSet ( NUMBER0 ) ) ; \n \n SINGLE \n FileDataSource clusterPoints = new FileDataSource ( PointInFormat . class , clusterInput , STRING2 ) ; \n clusterPoints . setParameter ( DelimitedInputFormat . RECORD_DELIMITER , STRING1 ) ; \n clusterPoints . setDegreeOfParallelism ( NUMBER1 ) ; \n - SINGLE \n + clusterPoints . getCompilerHints ( ) . setUniqueField ( new FieldSet ( NUMBER0 ) ) ; \n \n SINGLE \n CrossContract computeDistance = new CrossContract ( ComputeDistance . class , dataPoints , clusterPoints , STRING3 ) ;", "msg_token": "Added uniqueness hints to k means iteration example"} {"diff": " public class ReadTimeoutTimerTask extends TimeoutTimerTask { \n \n if ( durationBeforeCurrentReadTimeout <= NUMBER0 L ) { \n SINGLE \n - String message = STRING0 + remoteAddress + STRING1 + readTimeout + STRING2 ; \n + String message = STRING0 + remoteAddress + STRING3 + readTimeout + STRING2 ; \n long durationSinceLastTouch = now - nettyResponseFuture . getLastTouch ( ) ; \n expire ( message , durationSinceLastTouch ) ; \n SINGLE \n public class RequestTimeoutTimerTask extends TimeoutTimerTask { \n if ( nettyResponseFuture . isDone ( ) ) \n return ; \n \n - String message = STRING4 + remoteAddress + STRING1 + requestTimeout + STRING2 ; \n + String message = STRING5 + remoteAddress + STRING3 + requestTimeout + STRING6 ; \n long age = millisTime ( ) - nettyResponseFuture . getStart ( ) ; \n expire ( message , age ) ; \n }", "msg_token": "Fix error messages"} {"diff": " public class SQLiteDatabase extends SQLiteClosable { \n } \n mCompiledQueries = new LruCache < String , SQLiteCompiledSql > ( cacheSize ) { \n @ override \n - protected void entryEvicted ( String key , SQLiteCompiledSql value ) { \n + protected void entryRemoved ( boolean evicted , String key , SQLiteCompiledSql oldValue , \n + SQLiteCompiledSql newValue ) { \n verifyLockOwner ( ) ; \n - value . releaseIfNotInUse ( ) ; \n + oldValue . releaseIfNotInUse ( ) ; \n } \n } ; \n if ( oldCompiledQueries != null ) { \n public class SettingsProvider extends ContentProvider { \n } \n \n @ override \n - protected synchronized void entryEvicted ( String key , Bundle value ) { \n - mCacheFullyMatchesDisk = false ; \n + protected void entryRemoved ( boolean evicted , String key , Bundle oldValue , Bundle newValue ) { \n + if ( evicted ) { \n + mCacheFullyMatchesDisk = false ; \n + } \n } \n \n COMMENT", "msg_token": "Handle rename of LruCache entryEvicted to entryRemoved"} {"diff": " public final class SceneViewerTopComponent extends TopComponent { \n public static void showOpenGLError ( String e ) { \n Message msg = new NotifyDescriptor . Message ( \n STRING0 \n - + STRING1 \n - + STRING2 \n + STRING3 + e , \n NotifyDescriptor . ERROR_MESSAGE ) ; \n DialogDisplayer . getDefault ( ) . notifyLater ( msg ) ;", "msg_token": "remove default update drivers message from jMP error screen on startup"} {"diff": " public class OrganizeQueueActivity extends SherlockListActivity implements \n } \n \n @ override \n - protected void onStop ( ) { \n + protected void onPause ( ) { \n super . onPause ( ) ; \n EventDistributor . getInstance ( ) . unregister ( contentUpdate ) ; \n } \n \n @ override \n - protected void onDestroy ( ) { \n - super . onDestroy ( ) ; \n + protected void onStop ( ) { \n + super . onStop ( ) ; \n FeedManager . getInstance ( ) . autodownloadUndownloadedItems ( \n getApplicationContext ( ) ) ; \n - \n } \n \n @ override", "msg_token": "Used wrong methods"} {"diff": " public class SpockUtils { \n \n PsiFile containingFile = method . getContainingFile ( ) ; \n if ( containingFile != containingFile . getOriginalFile ( ) ) { \n - PsiElement originalPlace = containingFile . getOriginalFile ( ) . findElementAt ( method . getTextOffset ( ) ) ; \n + int methodOffset = method . getTextOffset ( ) ; \n + PsiElement originalPlace = containingFile . getOriginalFile ( ) . findElementAt ( methodOffset ) ; \n originalMethod = PsiTreeUtil . getParentOfType ( originalPlace , GrMethod . class ) ; \n - assert originalMethod != null ; \n + assert originalMethod != null : containingFile . getOriginalFile ( ) . getText ( ) . substring ( Math . max ( NUMBER0 , methodOffset - NUMBER1 ) , Math . min ( methodOffset + NUMBER1 , containingFile . getOriginalFile ( ) . getText ( ) . length ( ) ) ) ; \n } \n else { \n originalMethod = method ;", "msg_token": "Add additional loggin"} {"diff": " import NAMESPACE ; \n \n public class HttpProxyRouteTest extends BaseJettyTest { \n \n - private int size = NUMBER0 ; \n + private int size = NUMBER1 ; \n \n @ test \n public void testHttpProxy ( ) throws Exception {", "msg_token": "Fixed test on CI"} {"diff": " public class StickyGridHeadersSimpleAdapterWrapper extends BaseAdapter implement \n } \n \n @ override \n + public int getItemViewType ( int position ) { \n + return mDelegate . getItemViewType ( position ) ; \n + } \n + \n + @ override \n public int getNumHeaders ( ) { \n return mHeaders . length ; \n } \n public class StickyGridHeadersSimpleAdapterWrapper extends BaseAdapter implement \n @ override \n public View getView ( int position , View convertView , ViewGroup parent ) { \n return mDelegate . getView ( position , convertView , parent ) ; \n + \n + } \n + \n + @ override \n + public int getViewTypeCount ( ) { \n + return mDelegate . getViewTypeCount ( ) ; \n } \n \n protected HeaderData [ ] generateHeaderList ( StickyGridHeadersSimpleAdapter adapter ) {", "msg_token": "Add missing methods to delgate wrapper"} {"diff": " public class Duration \n return new Duration ( duration ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public final Duration withDurationAdded ( ReadableDuration durationToAdd ) { \n + return withDurationAdded ( durationToAdd , NUMBER0 ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public final Duration withDurationAdded ( ReadableDuration durationToAdd , int scalar ) { \n + if ( durationToAdd == null || scalar == NUMBER1 ) { \n + return this ; \n + } \n + long add = FieldUtils . safeMultiply ( durationToAdd . getMillis ( ) , scalar ) ; \n + long duration = FieldUtils . safeAdd ( getMillis ( ) , add ) ; \n + return new Duration ( duration ) ; \n + } \n + \n }", "msg_token": "Add more withXxx methods"} {"diff": " public final class AnimatorProxy extends Animation { \n return mView . getScrollX ( ) ; \n } \n public void setScrollX ( int value ) { \n - mView . setScrollX ( value ) ; \n + mView . scrollTo ( value , mView . getScrollY ( ) ) ; \n } \n public int getScrollY ( ) { \n return mView . getScrollY ( ) ; \n } \n public void setScrollY ( int value ) { \n - mView . setScrollY ( value ) ; \n + mView . scrollTo ( mView . getScrollY ( ) , value ) ; \n } \n public int getTop ( ) { \n return mView . getTop ( ) ;", "msg_token": "Properly set scroll x y"} {"diff": " public class GenericVertex implements Vertex , Serializable { \n return distanceToNearestTransitStop ; \n } \n \n + public int getIndex ( ) { \n + return index ; \n + } \n + \n }", "msg_token": "Add getIndex to GenericVertex"} {"diff": " public class SiteMap extends DefaultTreeModel { \n \n SINGLE \n private String getHostName ( URI uri ) throws URIException { \n + StringBuilder host = new StringBuilder ( ) ; \n + \n String scheme = uri . getScheme ( ) ; \n - String host = scheme + STRING0 + uri . getHost ( ) ; \n - int port = uri . getPort ( ) ; \n + host . append ( scheme ) . append ( STRING0 ) . append ( uri . getHost ( ) ) ; \n \n + int port = uri . getPort ( ) ; \n if ( port != - NUMBER0 && \n ( ( port == NUMBER1 && ! STRING1 . equals ( scheme ) ) || \n ( port == NUMBER2 && ! STRING2 . equals ( scheme ) ) ) ) { \n - host = host + STRING3 + port ; \n + host . append ( STRING3 ) . append ( port ) ; \n } \n \n - return host ; \n + return host . toString ( ) ; \n } \n }", "msg_token": "using StringBuilder instead of simple string concatenation"} {"diff": " public class WaypointDialogHelper { \n \n case WaypointHelper . FAVORITES : \n FavouritePoint favPoint = ( FavouritePoint ) ps . point ; \n - pointDescription = favPoint . getCategory ( ) ; \n + pointDescription = Algorithms . isEmpty ( favPoint . getCategory ( ) ) ? activity . getResources ( ) . getString ( R . string . shared_string_favorites ) : favPoint . getCategory ( ) ; \n break ; \n } \n }", "msg_token": "Fix display group name Favorites at Waypoints"} {"diff": " public class AtmosphereResponse extends HttpServletResponseWrapper { \n private HttpServletResponse atmosphereResponse = dsr ; \n private AtomicBoolean writeStatusAndHeader = new AtomicBoolean ( true ) ; \n private final Map < String , String > headers = new HashMap < String , String > ( ) ; \n - public boolean destroyable = true ; \n + private boolean destroyable = true ; \n \n public Builder ( ) { \n }", "msg_token": "Fix unwanted scope change"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import static NAMESPACE ; \n public class IndexWithShadowReplicasTests extends ElasticsearchIntegrationTest { \n \n @ test \n + @ testlogging ( STRING0 ) \n public void testIndexWithFewDocuments ( ) throws Exception { \n Settings nodeSettings = ImmutableSettings . builder ( ) \n . put ( STRING1 , false )", "msg_token": "TEST Enable trace logging for translog recovery"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class ClusterManager < T extends ClusterItem > implements GoogleMap . OnCameraChangeListener , GoogleMap . OnMarkerClickListener , GoogleMap . OnInfoWindowClickListener { \n - private static final String TAG = ClusterManager . class . getName ( ) ; \n - \n private final MarkerManager mMarkerManager ; \n private final MarkerManager . Collection mMarkers ; \n private final MarkerManager . Collection mClusterMarkers ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class GridBasedAlgorithm < T extends ClusterItem > implements Algorithm < T > { \n - private static final String TAG = GridBasedAlgorithm . class . getName ( ) ; \n private static final int GRID_SIZE = NUMBER0 ; \n \n private final Set < T > mItems = Collections . synchronizedSet ( new HashSet < T > ( ) ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class PreCachingAlgorithmDecorator < T extends ClusterItem > implements Algorithm < T > { \n - private final static String TAG = PreCachingAlgorithmDecorator . class . getName ( ) ; \n private final Algorithm < T > mAlgorithm ; \n \n SINGLE", "msg_token": "Removed unused fields"} {"diff": " public class ReportIncidentRoutes extends RouteBuilder { \n \n SINGLE \n SINGLE \n - String cxfEndpointAddress = STRING0 ; \n + SINGLE \n + String cxfEndpointAddress = STRING1 ; \n SINGLE \n if ( ! usingServletTransport ) { \n - cxfEndpointAddress = STRING2 ; \n + cxfEndpointAddress = STRING3 ; \n } \n String cxfEndpoint = cxfEndpointAddress \n - + STRING4 \n + + STRING5 \n + STRING6 ; \n \n SINGLE", "msg_token": "run issue of camel example reportincident"} {"diff": " public class ClassPath { \n for ( String ext : new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } ) { \n File file = new File ( classPathDir , baseEntryName + ext ) ; \n \n - if ( file . exists ( ) ) { \n + if ( file . exists ( ) && file . isFile ( ) ) { \n if ( ! file . canRead ( ) ) { \n System . err . println ( String . format ( \n STRING5 , file . getPath ( ) ) ) ;", "msg_token": "Fix an issue when there s a dir with the same base name as a class path entry"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative implemen \n \n mConfiguration = newConfig ; \n Log . i ( TAG , STRING0 + newConfig ) ; \n + \n + AttributeCache ac = AttributeCache . instance ( ) ; \n + if ( ac != null ) { \n + ac . updateConfiguration ( mConfiguration ) ; \n + } \n \n Message msg = mHandler . obtainMessage ( UPDATE_CONFIGURATION_MSG ) ; \n msg . obj = new Configuration ( mConfiguration ) ; \n public final class ActivityManagerService extends ActivityManagerNative implemen \n null , null , NUMBER0 , null , null , \n null , false , false , MY_PID , Process . SYSTEM_UID ) ; \n } \n - \n - AttributeCache ac = AttributeCache . instance ( ) ; \n - if ( ac != null ) { \n - ac . updateConfiguration ( mConfiguration ) ; \n - } \n } \n }", "msg_token": "Package manager sends bad broadcasts when components change"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BuildCraftSilicon extends BuildCraftMod { \n public void remap ( FMLMissingMappingsEvent event ) { \n for ( FMLMissingMappingsEvent . MissingMapping mapping : event . get ( ) ) { \n if ( mapping . name . equals ( STRING0 ) ) { \n + if ( mapping . type == GameRegistry . Type . ITEM ) { \n mapping . remap ( Item . getItemFromBlock ( laserBlock ) ) ; \n + } else { \n + mapping . remap ( laserBlock ) ; \n + } \n } \n } \n }", "msg_token": "Fixed laser remapping"} {"diff": " class BuckConfig { \n @ visiblefortesting \n String getCacheDir ( ) { \n String cacheDir = getValue ( STRING0 , STRING1 ) . or ( DEFAULT_CACHE_DIR ) ; \n + if ( ! cacheDir . isEmpty ( ) && cacheDir . charAt ( NUMBER0 ) == STRING2 ) { \n + return cacheDir ; \n + } \n return projectFilesystem . getPathRelativizer ( ) . apply ( cacheDir ) ; \n } \n \n public class BuckConfigTest { \n public void testIgnorePathsWithAbsoluteCacheDir ( ) throws IOException { \n \n ProjectFilesystem filesystem = EasyMock . createMock ( ProjectFilesystem . class ) ; \n - EasyMock . expect ( filesystem . getPathRelativizer ( ) ) . andReturn ( Functions . < String > identity ( ) ) ; \n BuildTargetParser parser = EasyMock . createMock ( BuildTargetParser . class ) ; \n EasyMock . replay ( filesystem , parser ) ; \n Reader reader = new StringReader ( Joiner . on ( STRING3 ) . join (", "msg_token": "Fix support for absolute paths in cache dir"} {"diff": " public final class LafManagerImpl extends LafManager implements ApplicationCompo \n popupWeight = HEAVY_WEIGHT_POPUP ; \n } \n \n + popupWeight = popupWeight . trim ( ) ; \n + \n PopupFactory popupFactory ; \n \n if ( HEAVY_WEIGHT_POPUP . equals ( popupWeight ) ) {", "msg_token": "trim user defined string"} {"diff": " public final class SuspendExecution extends Exception { SINGLE \n static final SuspendExecution YIELD = new SuspendExecution ( ) ; \n \n protected SuspendExecution ( ) { \n + super ( STRING0 ) ; \n } \n \n @ override", "msg_token": "Added message to SuspendExecution"} {"diff": " public interface ListableBeanFactory extends BeanFactory { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a typo"} {"diff": " public class OServerPluginManager implements OService { \n boolean hotReload = true ; \n boolean dynamic = true ; \n \n - if ( server . getConfiguration ( ) != null ) \n + if ( server . getConfiguration ( ) != null && server . getConfiguration ( ) . properties != null ) \n for ( OServerEntryConfiguration p : server . getConfiguration ( ) . properties ) { \n if ( p . name . equals ( STRING0 ) ) \n hotReload = Boolean . parseBoolean ( p . value ) ;", "msg_token": "fixed NPE when no cfg is present"} {"diff": " public class GeneralConfigPluginActivator \n COMMENT \n COMMENT \n COMMENT \n - bundleContext . addServiceListener ( this ) ; \n + ServiceReference [ ] protocolRefs = bundleContext . getServiceReferences ( \n + ProtocolProviderService . class . getName ( ) , null ) ; \n + if ( protocolRefs != null && protocolRefs . length > NUMBER0 ) \n + { \n + try \n + { \n + synchronized ( GeneralConfigPluginActivator . class ) \n + { \n + if ( ! startThreadIsCalled ) \n + { \n + startThread ( ) ; \n + startThreadIsCalled = true ; \n + } \n + } \n + } \n + catch ( Throwable t ) \n + { \n + SINGLE \n + logger . error ( STRING0 , t ) ; \n + } \n + } \n + else \n + bundleContext . addServiceListener ( this ) ; \n \n if ( logger . isInfoEnabled ( ) ) \n logger . info ( STRING1 ) ;", "msg_token": "Fixes starting auto away thread"} {"diff": " final class MarkableInputStream extends InputStream { \n @ override public int read ( byte [ ] buffer , int offset , int length ) throws IOException { \n int count = in . read ( buffer , offset , length ) ; \n if ( count != - NUMBER0 ) { \n - offset += count ; \n + this . offset += count ; \n } \n return count ; \n }", "msg_token": "Fix namespace collision"} {"diff": " public final class DiskLruCache implements Closeable { \n SINGLE \n SINGLE \n SINGLE \n + File outFile = entry . getDirtyFile ( index ) ; \n FileOutputStream out ; \n try { \n - out = new FileOutputStream ( entry . getDirtyFile ( index ) ) ; \n + out = new FileOutputStream ( outFile ) ; \n } catch ( FileNotFoundException e ) { \n directory . mkdirs ( ) ; \n - out = new FileOutputStream ( entry . getDirtyFile ( index ) ) ; \n + out = new FileOutputStream ( outFile ) ; \n } \n return new FaultHidingOutputStream ( out ) ; \n }", "msg_token": "Only create file name once"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SettingsImpl implements EditorSettings { \n public int getTabSize ( Project project ) { \n if ( myTabSize != null ) return myTabSize . intValue ( ) ; \n if ( myCachedTabSize != null ) return myCachedTabSize . intValue ( ) ; \n - int tabSize = NUMBER0 ; \n - if ( project != null && ! project . isDisposed ( ) ) { \n + int tabSize ; \n + if ( project == null || project . isDisposed ( ) ) { \n + tabSize = CodeStyleSettingsManager . getSettings ( null ) . getTabSize ( null ) ; \n + } \n + else { \n PsiFile file = getPsiFile ( project ) ; \n tabSize = CodeStyleSettingsManager . getSettings ( project ) . getIndentOptionsByFile ( file ) . TAB_SIZE ; \n }", "msg_token": "don t return zero tab size use default value instead"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ configurationproperties ( prefix = STRING0 ) \n public class JacksonProperties {", "msg_token": "Add missing since tag"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class PreviewPostActivity extends AuthenticatedWebViewActivity { \n } catch ( Exception e ) { \n e . printStackTrace ( ) ; \n } \n - if ( isPrivate || post . isLocalDraft ( ) || post . isLocalChange ( ) \n + \n + Date d = new Date ( ) ; \n + if ( isPrivate SINGLE \n + || post . isLocalDraft ( ) \n + || post . isLocalChange ( ) \n + || post . getDate_created_gmt ( ) > d . getTime ( ) SINGLE \n || ! post . getPost_status ( ) . equals ( STRING0 ) ) { \n if ( - NUMBER0 == url . indexOf ( STRING1 ) ) { \n url = url . concat ( STRING2 ) ;", "msg_token": "Load the authenticated preview on scheduled post"} {"diff": " public class StaticColumnFamilyTests extends KeyspaceTests { \n @ beforeclass \n public static void init ( ) throws Exception { \n initContext ( ) ; \n - SINGLE \n + keyspace . prepareQuery ( CF_ACCOUNTS ) \n + . withCql ( STRING0 ) \n + . execute ( ) ; \n CF_ACCOUNTS . describe ( keyspace ) ; \n } \n \n @ afterclass \n public static void tearDown ( ) throws Exception { \n - SINGLE \n + keyspace . dropColumnFamily ( CF_ACCOUNTS ) ; \n } \n \n @ test \n public void testReadWriteOpsWithStaticNamedColumns ( ) throws Exception { \n \n populateRowsForAccountsTable ( keyspace ) ; \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n boolean rowDeleted = false ; \n \n performSimpleRowQuery ( rowDeleted ) ; \n public class StaticColumnFamilyTests extends KeyspaceTests { \n performRowSliceQueryWithColumnSlice ( rowDeleted ) ; \n \n deleteRowsForAccountsTable ( keyspace ) ; \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n rowDeleted = true ; \n \n performSimpleRowQuery ( rowDeleted ) ;", "msg_token": "Fixing static column family unit test"} {"diff": " public class Controller { \n \n public void refreshBalanceLabel ( ) { \n final Coin amount = bitcoin . wallet ( ) . getBalance ( Wallet . BalanceType . ESTIMATED ) ; \n - balance . setText ( amount . toFriendlyString ( ) ) ; \n + balance . setText ( amount . toPlainString ( ) ) ; \n } \n }", "msg_token": "fix rendering of balance label after coin toFriendlyString change"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class KafkaConsumer < K , V > implements Consumer < K , V > { \n try { \n log . debug ( STRING0 ) ; \n this . requestTimeoutMs = config . getInt ( ConsumerConfig . REQUEST_TIMEOUT_MS_CONFIG ) ; \n + int sessionTimeOutMs = config . getInt ( ConsumerConfig . SESSION_TIMEOUT_MS_CONFIG ) ; \n + int fetchMaxWaitMs = config . getInt ( ConsumerConfig . FETCH_MAX_WAIT_MS_CONFIG ) ; \n + if ( this . requestTimeoutMs <= sessionTimeOutMs || this . requestTimeoutMs <= fetchMaxWaitMs ) \n + throw new ConfigException ( ConsumerConfig . REQUEST_TIMEOUT_MS_CONFIG + STRING1 + ConsumerConfig . SESSION_TIMEOUT_MS_CONFIG + STRING2 + ConsumerConfig . FETCH_MAX_WAIT_MS_CONFIG ) ; \n this . time = new SystemTime ( ) ; \n \n MetricConfig metricConfig = new MetricConfig ( ) . samples ( config . getInt ( ConsumerConfig . METRICS_NUM_SAMPLES_CONFIG ) )", "msg_token": "Add sanity check in KafkaConsumer for the timeouts"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "removed unused import"} {"diff": " public class ClassPathResolver { \n STRING0 , \n STRING1 , \n STRING2 ) ; \n - } else COMMENT { \n + } else if ( apiLevel <= NUMBER0 ) { \n return Lists . newArrayList ( \n STRING3 , \n STRING4 , \n public class ClassPathResolver { \n STRING5 , \n STRING2 , \n STRING6 ) ; \n + } else COMMENT { \n + return Lists . newArrayList ( \n + STRING7 , \n + STRING3 , \n + STRING4 , \n + STRING8 , \n + STRING9 , \n + STRING10 , \n + STRING11 , \n + STRING12 , \n + STRING13 , \n + STRING14 , \n + STRING5 , \n + STRING2 , \n + STRING6 ) ; \n } \n - SINGLE \n } \n }", "msg_token": "Add default dependencies for Android N"} {"diff": " final class HttpTunnelWorker implements Runnable { \n break ; \n } \n \n - ChannelBuffer buffer = ChannelBuffers . wrappedBuffer ( buf ) ; \n - \n - fireMessageReceived ( channel , buffer ) ; \n + if ( buf != null ) { \n + fireMessageReceived ( channel , ChannelBuffers . wrappedBuffer ( buf ) ) ; \n + } \n } \n \n SINGLE", "msg_token": "Fixed NPE on interruption"} {"diff": " public interface ApplicationConfig { \n COMMENT \n String DISABLE_ONSTATE_EVENT = STRING0 ; \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n String MAX_INACTIVE = STRING1 ; \n public class IdleResourceInterceptor extends AtmosphereInterceptorAdapter { \n public void configure ( AtmosphereConfig config ) { \n this . config = config ; \n \n - String maxInactive = config . getInitParameter ( MAX_INACTIVE ) != null ? config . getInitParameter ( MAX_INACTIVE ) : \n - config . getInitParameter ( MAX_INACTIVE ) ; \n - \n + String maxInactive = config . getInitParameter ( MAX_INACTIVE ) ; \n if ( maxInactive != null ) { \n maxInactiveTime = Long . parseLong ( maxInactive ) ; \n if ( maxInactiveTime <= NUMBER0 ) return ;", "msg_token": "fix cut paste issue clarify docs"} {"diff": " public abstract class PaymentOperation extends OperationCallbackBase < PaymentTran \n } else { \n try { \n return doSimpleOperationCallback ( ) ; \n - } catch ( final OperationException e ) { \n - throw convertToUnknownTransactionStatusAndErroredPaymentState ( e ) ; \n - } \n - } \n + } catch ( final OperationException e ) { \n + throw convertToUnknownTransactionStatusAndErroredPaymentState ( e ) ; \n + } \n + } \n } \n \n @ override", "msg_token": "Fixes code formatting"} {"diff": " public class ActivityLauncher { \n \n public static void viewCurrentBlogPages ( Context context ) { \n Intent intent = new Intent ( context , PagesActivity . class ) ; \n + intent . putExtra ( PostsActivity . EXTRA_VIEW_PAGES , true ) ; \n context . startActivity ( intent ) ; \n }", "msg_token": "Pages link in my sites correctly shows Pages"} {"diff": " public class RecyclableBroadcaster extends JerseyBroadcaster { \n COMMENT \n COMMENT \n public void destroy ( ) { \n - broadcasterCache = new BroadcasterConfig . DefaultBroadcasterCache ( ) ; \n + bc . setBroadcasterCache ( new BroadcasterConfig . DefaultBroadcasterCache ( ) ) ; \n setScope ( SCOPE . APPLICATION ) ; \n } \n }", "msg_token": "Fix build again"} {"diff": " public class RangeFilterBuilder extends BaseFilterBuilder { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public RangeFilterBuilder lte ( Object to ) { \n + this . to = to ; \n + this . includeUpper = true ; \n + return this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public RangeFilterBuilder includeLower ( boolean includeLower ) {", "msg_token": "add lt Object to range filter builder"} {"diff": " final class WindowState implements WindowManagerPolicy . WindowState { \n Slog . i ( TAG , STRING0 + win ) ; \n if ( win != null ) { \n mService . removeWindowLocked ( mSession , win ) ; \n + } else if ( WindowState . this . mHasSurface ) { \n + Slog . e ( TAG , STRING1 ) ; \n + mService . removeWindowLocked ( mSession , WindowState . this ) ; \n } \n } \n } catch ( IllegalArgumentException ex ) {", "msg_token": "Add window leak check and possible recovery"} {"diff": " public class WarningsPrinterImplTest extends TestBase { \n verify ( finder ) . find ( arg . capture ( ) ) ; \n assertEquals ( true , arg . getValue ( ) . isWarnAboutUnstubbed ( ) ) ; \n } \n + \n + @ test \n + public void shouldPrintToString ( ) { \n + SINGLE \n + WarningsPrinterImpl printer = spy ( new WarningsPrinterImpl ( true , finder ) ) ; \n + \n + SINGLE \n + String out = printer . print ( ) ; \n + \n + SINGLE \n + verify ( printer ) . print ( ( MockitoLogger ) notNull ( ) ) ; \n + assertNotNull ( out ) ; \n + } \n }", "msg_token": "Added missing test"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyUserSkeletonsModuleMembersProvider extends PyModuleMembersProvide \n if ( moduleSkeleton != null ) { \n final List < PyDynamicMember > results = new ArrayList < PyDynamicMember > ( ) ; \n for ( PyElement element : moduleSkeleton . iterateNames ( ) ) { \n + if ( element instanceof PsiFileSystemItem ) { \n + continue ; \n + } \n final String name = element . getName ( ) ; \n if ( name != null ) { \n results . add ( new PyDynamicMember ( name , element ) ) ;", "msg_token": "Don t complete files and directories available as user skeleton module members"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractTestHiveClient \n for ( MaterializedRow row : result ) { \n rowNumber ++ ; \n \n - assertEquals ( row . getField ( columnIndex . get ( STRING0 ) ) , FLOAT0 + rowNumber ) ; \n + assertEquals ( row . getField ( columnIndex . get ( STRING0 ) ) , FLOAT0 + rowNumber ) ; \n assertEquals ( row . getField ( columnIndex . get ( STRING1 ) ) , ds ) ; \n assertEquals ( row . getField ( columnIndex . get ( STRING2 ) ) , fileFormat ) ; \n assertEquals ( row . getField ( columnIndex . get ( STRING3 ) ) , dummyPartition ) ;", "msg_token": "Remove extra space"} {"diff": " public class InsertBase extends AbstractBaseTest { \n } \n \n @ test \n - @ excludein ( { HSQLDB , DERBY } ) \n + @ excludein ( { HSQLDB , CUBRID , DERBY } ) \n public void Insert_With_SubQuery2 ( ) { \n SINGLE \n SINGLE \n public class InsertBase extends AbstractBaseTest { \n } \n \n @ test \n - @ excludein ( { HSQLDB , DERBY } ) \n + @ excludein ( { HSQLDB , CUBRID , DERBY } ) \n public void Insert_With_SubQuery3 ( ) { \n SINGLE \n SINGLE \n public class SelectBase extends AbstractBaseTest { \n } \n \n @ test \n + @ excludein ( CUBRID ) \n public void DateTime_To_Date ( ) { \n query ( ) . singleResult ( SQLExpressions . date ( DateTimeExpression . currentTimestamp ( ) ) ) ; \n }", "msg_token": "Add cubrid exclusions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class AceEditor implements DocDisplay , InputEditorDisplay \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings for unused imports"} {"diff": " public class RecordingStatus \n \n private static final String STATUS_ATTRIBUTE = STRING0 ; \n \n + private static final String URL_ATTRIBUTE = STRING1 ; \n + \n public RecordingStatus ( ) \n { \n super ( NAMESPACE , ELEMENT_NAME ) ; \n public class RecordingStatus \n { \n setAttribute ( STATUS_ATTRIBUTE , String . valueOf ( status ) ) ; \n } \n + \n + public String getUrl ( ) \n + { \n + return getAttributeAsString ( URL_ATTRIBUTE ) ; \n + } \n + \n + public void setAttribute ( String url ) \n + { \n + setAttribute ( URL_ATTRIBUTE , url ) ; \n + } \n }", "msg_token": "Adds URL to RecordingStatus"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class HashingTest extends TestCase { \n new ConcatenatedHashFunction ( Hashing . md5 ( ) , Hashing . murmur3_32 ( ) ) . hashLong ( NUMBER0 ) ) ; \n } \n \n + public void testHashIntReverseBytesVsHashBytesIntsToByteArray ( ) { \n + int input = NUMBER1 ; \n + assertEquals ( \n + Hashing . md5 ( ) . hashBytes ( Ints . toByteArray ( input ) ) , \n + Hashing . md5 ( ) . hashInt ( Integer . reverseBytes ( input ) ) ) ; \n + } \n + \n private static final String EMPTY_STRING = STRING0 ; \n private static final String TQBFJOTLD = STRING1 ; \n private static final String TQBFJOTLDP = STRING2 ;", "msg_token": "Add a test to demonstrate that hashBytes Ints toByteArray i"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExpandableUploadListAdapter extends BaseExpandableListAdapter imple \n if ( binder . isUploadingNow ( upload1 ) ) { \n return - NUMBER0 ; \n } else if ( binder . isUploadingNow ( upload2 ) ) { \n - return - NUMBER0 ; \n + return NUMBER0 ; \n } \n } \n } \n public class ExpandableUploadListAdapter extends BaseExpandableListAdapter imple \n \n \n private OCUpload [ ] trimToMaxLength ( OCUpload [ ] items ) { \n - if ( items . length > NUMBER1 ) { \n - OCUpload [ ] arrayTrim = new OCUpload [ NUMBER1 ] ; \n + if ( items . length > MAX_NUM_UPLOADS_SHOWN ) { \n + OCUpload [ ] arrayTrim = new OCUpload [ MAX_NUM_UPLOADS_SHOWN ] ; \n \n for ( int i = NUMBER2 ; i < MAX_NUM_UPLOADS_SHOWN ; i ++ ) { \n arrayTrim [ i ] = items [ i ] ;", "msg_token": "Fixed comparator upload really in progress now REALLY on the top"} {"diff": " public class PersistentInterval implements CompositeUserType \n return null ; \n } \n PersistentDateTime pst = new PersistentDateTime ( ) ; \n - DateTime begin = ( DateTime ) pst . nullSafeGet ( resultSet , names [ NUMBER0 ] ) ; \n + DateTime start = ( DateTime ) pst . nullSafeGet ( resultSet , names [ NUMBER0 ] ) ; \n DateTime end = ( DateTime ) pst . nullSafeGet ( resultSet , names [ NUMBER1 ] ) ; \n - return new Interval ( begin , end ) ; \n + return new Interval ( start , end ) ; \n } \n \n public void nullSafeSet ( PreparedStatement statement , Object value ,", "msg_token": "In nullSafeGet changed variable name from begin to start for consistency"} {"diff": " public class GestureController implements View . OnTouchListener { \n } \n \n if ( isScrollDetected ) { \n - SINGLE \n - if ( State . compare ( state . getZoom ( ) , stateController . getEffectiveMinZoom ( ) ) >= NUMBER0 ) { \n + SINGLE \n + float minZoom = stateController . getEffectiveMinZoom ( ) ; \n + boolean isZoomedOut = State . compare ( state . getZoom ( ) , minZoom ) < NUMBER0 ; \n + if ( ! isZoomedOut || ! settings . isRestrictBounds ( ) ) { \n state . translateBy ( - dx , - dy ) ; \n isStateChangedDuringTouch = true ; \n }", "msg_token": "Fixed scroll when zoomed out with no bounds restrictions"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class UIDropdownScrollable < T > extends UIDropdown < T > { \n optionRenderer = itemRenderer ; \n } \n \n - public void setVisibleOptions ( int num ) { visibleOptionsNum = num ; } \n + public void setVisibleOptions ( int num ) { \n + visibleOptionsNum = num ; \n + } \n \n - public int getVisibleOptions ( ) { return visibleOptionsNum ; } \n + public int getVisibleOptions ( ) { \n + return visibleOptionsNum ; \n + } \n \n private class ItemListener extends BaseInteractionListener { \n private int index ;", "msg_token": "Corrected the checkstyle warnings updated license date"} {"diff": " public class ReplaceMethodCallsAdapter extends ClassVisitor { \n assert isNeeded ( owner , name , desc ) && output . length == NUMBER0 \n && opcodeOut . length == NUMBER1 ; \n opcodeOut [ NUMBER2 ] = Opcodes . INVOKESTATIC ; \n - output [ NUMBER2 ] = STRING0 ; \n + output [ NUMBER2 ] = STRING1 ; \n output [ NUMBER1 ] = name ; \n output [ NUMBER3 ] = STRING2 ; \n }", "msg_token": "Fix classpath for AndroidLocale"} {"diff": " public class SourceFormatter { \n STRING0 \n } ) ; \n \n + if ( line . startsWith ( StringPool . SPACE ) && ! line . startsWith ( STRING1 ) ) { \n + if ( ! line . startsWith ( StringPool . FOUR_SPACES ) ) { \n + while ( line . startsWith ( StringPool . SPACE ) ) { \n + line = StringUtil . replaceFirst ( \n + line , StringPool . SPACE , StringPool . BLANK ) ; \n + } \n + } \n + else { \n + int pos = NUMBER0 ; \n + String temp = line ; \n + \n + while ( temp . startsWith ( StringPool . FOUR_SPACES ) ) { \n + line = StringUtil . replaceFirst ( \n + line , StringPool . FOUR_SPACES , StringPool . TAB ) ; \n + \n + pos ++ ; \n + \n + temp = line . substring ( pos ) ; \n + } \n + } \n + } \n + \n line = _replacePrimitiveWrapperInstantiation ( \n fileName , line , lineCount ) ;", "msg_token": "SourceFormatter remove spaces at start of line"} {"diff": " public class HystrixConfigurationDefinition extends IdentifiedType { \n @ metadata ( label = STRING0 , defaultValue = STRING1 ) \n private Boolean metricsRollingPercentileEnabled ; \n @ xmlattribute \n - @ metadata ( label = STRING0 , defaultValue = STRING2 ) \n + @ metadata ( label = STRING0 , defaultValue = STRING3 ) \n private Integer metricsRollingPercentileWindowInMilliseconds ; \n @ xmlattribute \n @ metadata ( label = STRING0 , defaultValue = STRING4 )", "msg_token": "Fixed wrong default"} {"diff": " public class Node extends Spatial implements Savable { \n \n public int collideWith ( Collidable other , CollisionResults results ) { \n int total = NUMBER0 ; \n + \n + SINGLE \n + if ( children . size ( ) > NUMBER1 ) \n + { \n + BoundingVolume bv = this . getWorldBound ( ) ; \n + CollisionResults bvColRes = new CollisionResults ( ) ; \n + if ( bv . collideWith ( other , bvColRes ) == NUMBER0 ) \n + { \n + System . out . println ( STRING0 + getName ( ) ) ; \n + return NUMBER0 ; \n + } \n + } \n for ( Spatial child : children . getArray ( ) ) { \n total += child . collideWith ( other , results ) ; \n }", "msg_token": "optimize CollideWith using preliminary BoundingVolume collide check"} {"diff": " public class AtmosphereResourceImpl implements AtmosphereResource { \n } catch ( Throwable t ) { \n logger . trace ( STRING0 , this , t ) ; \n } \n + notifyListeners ( new AtmosphereResourceEventImpl ( this , true , false ) ) ; \n return this ; \n }", "msg_token": "Invoke the onDisconnect callback when a connection has been resumed"} {"diff": " public interface Constant { \n STRING0 , \n } ; \n \n - String LIULISHUO_APK_URL = STRING1 ; \n - String LIULISHUO_CONTENT_DISPOSITION_FILENAME = STRING2 ; \n + String LIULISHUO_APK_URL = STRING3 ; \n + String LIULISHUO_CONTENT_DISPOSITION_FILENAME = STRING4 ; \n \n String [ ] BIG_FILE_URLS = { \n SINGLE", "msg_token": "replace the Urls for the single task test"} {"diff": " public class LayoutTransition { \n COMMENT \n private void setupChangeAnimation ( final ViewGroup parent , final int changeReason , \n Animator baseAnimator , final long duration , final View child ) { \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( layoutChangeListenerMap . get ( child ) != null ) { \n + return ; \n + } \n + \n SINGLE \n final Animator anim = baseAnimator . clone ( ) ;", "msg_token": "Fix leak in LayoutTransition"} {"diff": " public class XActivityManagerService extends XHook { \n listHook . add ( new XActivityManagerService ( Methods . appNotResponding , Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) ) ; \n listHook . add ( new XActivityManagerService ( Methods . systemReady , Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) ) ; \n listHook . add ( new XActivityManagerService ( Methods . finishBooting , Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) ) ; \n - listHook . add ( new XActivityManagerService ( Methods . setLockScreenShown , Build . VERSION_CODES . JELLY_BEAN_MR1 ) ) ; \n + listHook . add ( new XActivityManagerService ( Methods . setLockScreenShown , Build . VERSION_CODES . JELLY_BEAN_MR1 ) \n + . optional ( ) ) ; \n listHook . add ( new XActivityManagerService ( Methods . goingToSleep , Build . VERSION_CODES . JELLY_BEAN ) ) ; \n listHook . add ( new XActivityManagerService ( Methods . wakingUp , Build . VERSION_CODES . JELLY_BEAN ) ) ; \n listHook . add ( new XActivityManagerService ( Methods . shutdown , Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) ) ;", "msg_token": "Make setLockScreenShown optional again"} {"diff": " public class JsLibraryStdDetectionUtil { \n if ( root . getFileSystem ( ) . getProtocol ( ) != StandardFileSystems . JAR_PROTOCOL ) continue ; \n \n VirtualFile jar = VfsUtilCore . getVirtualFileForJar ( root ) ; \n - assert jar != null : STRING0 + root . getPath ( ) + STRING1 ; \n - \n - if ( LibraryUtils . isKotlinJavascriptStdLibrary ( new File ( jar . getPath ( ) ) ) ) { \n + if ( jar != null && LibraryUtils . isKotlinJavascriptStdLibrary ( new File ( jar . getPath ( ) ) ) ) { \n return jar ; \n } \n }", "msg_token": "Fix AssertionError in JsLibraryStdDetectionUtil"} {"diff": " public class GeoDistanceQueryBuilderTests extends AbstractQueryTestCase < GeoDista \n double distance = queryBuilder . distance ( ) ; \n if ( queryBuilder . geoDistance ( ) != null ) { \n distance = queryBuilder . geoDistance ( ) . normalize ( distance , DistanceUnit . DEFAULT ) ; \n + distance = org . elasticsearch . common . geo . GeoUtils . maxRadialDistance ( queryBuilder . point ( ) , distance ) ; \n assertThat ( geoQuery . getRadiusMeters ( ) , closeTo ( distance , GeoUtils . TOLERANCE ) ) ; \n } \n }", "msg_token": "Fix small error in distance normalization in test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AtmosphereFramework { \n protected boolean isDestroyed = false ; \n protected boolean externalizeDestroy = false ; \n protected AnnotationProcessor annotationProcessor = null ; \n - protected boolean reconfigureInitParams = false ; \n \n protected final Class < ? extends AtmosphereInterceptor > [ ] defaultInterceptors = new Class [ ] { \n + SINGLE \n + CorsInterceptor . class , \n SINGLE \n - DefaultHeadersInterceptor . class , \n + CacheHeadersInterceptor . class , \n SINGLE \n PaddingAtmosphereInterceptor . class , \n SINGLE \n public class AtmosphereFramework { \n SINGLE \n WebSocketMessageSuspendInterceptor . class , \n SINGLE \n - OnDisconnectInterceptor . class \n + OnDisconnectInterceptor . class , \n } ; \n \n COMMENT", "msg_token": "Add CORS by default"} {"diff": " public class Messages { \n checkboxPanel . setLayout ( new BoxLayout ( checkboxPanel , BoxLayout . X_AXIS ) ) ; \n \n myCheckBox = new JCheckBox ( myCheckboxText ) ; \n + myCheckBox . setSelected ( true ) ; \n messagePanel . add ( myCheckBox , BorderLayout . SOUTH ) ; \n panel . add ( messagePanel , BorderLayout . CENTER ) ;", "msg_token": "preselect checkbox in twostepconfirmation dialog"} {"diff": " public class TargetGraphFactory { \n \n MutableDirectedGraph < TargetNode < ? > > graph = new MutableDirectedGraph < > ( ) ; \n for ( TargetNode < ? > node : map . values ( ) ) { \n + graph . addNode ( node ) ; \n for ( BuildTarget dep : node . getDeps ( ) ) { \n graph . addEdge ( node , Preconditions . checkNotNull ( map . get ( dep ) , dep ) ) ; \n }", "msg_token": "Fix TargetGraphFactory not adding nodes"} {"diff": " public class AxolotlService implements OnAdvancedStreamFeaturesLoaded { \n \n @ override \n public void onAdvancedStreamFeaturesAvailable ( Account account ) { \n - if ( account . getXmppConnection ( ) != null && account . getXmppConnection ( ) . getFeatures ( ) . pep ( ) ) { \n + if ( Config . supportOmemo ( ) \n + && account . getXmppConnection ( ) != null \n + && account . getXmppConnection ( ) . getFeatures ( ) . pep ( ) ) { \n publishBundlesIfNeeded ( true , false ) ; \n } else { \n Log . d ( Config . LOGTAG , account . getJid ( ) . toBareJid ( ) + STRING0 ) ;", "msg_token": "only publish keys if omemo is enabled"} {"diff": " public class HttpMessage extends DefaultMessage { \n getEndpoint ( ) . getHttpBinding ( ) . readRequest ( request , this ) ; \n } \n \n + private HttpMessage ( HttpServletRequest request , HttpServletResponse response , Exchange exchange ) { \n + this . request = request ; \n + this . response = response ; \n + setExchange ( getExchange ( ) ) ; \n + } \n + \n public HttpServletRequest getRequest ( ) { \n return request ; \n } \n public class HttpMessage extends DefaultMessage { \n throw new RuntimeCamelException ( e ) ; \n } \n } \n - \n + \n + @ override \n + public HttpMessage newInstance ( ) { \n + return new HttpMessage ( request , response , getExchange ( ) ) ; \n + } \n + \n private HttpCommonEndpoint getEndpoint ( ) { \n return ( HttpCommonEndpoint ) getExchange ( ) . getFromEndpoint ( ) ; \n }", "msg_token": "The HttpMessage should override newInstance when using a specialzed Message class"} {"diff": " public class NinePatchDrawable extends Drawable { \n mAutoMirrored = autoMirror ; \n \n SINGLE \n - if ( mPadding . left < mOpticalInsets . left ) { \n - mPadding . left = mOpticalInsets . left ; \n - mPadding . right = mOpticalInsets . right ; \n - } \n - if ( mPadding . top < mOpticalInsets . top ) { \n - mPadding . top = mOpticalInsets . top ; \n - mPadding . bottom = mOpticalInsets . bottom ; \n + if ( ! opticalInsets . isEmpty ( ) ) { \n + if ( mPadding == null ) { \n + mPadding = new Rect ( ) ; \n + } \n + if ( mPadding . left < opticalInsets . left ) { \n + mPadding . left = opticalInsets . left ; \n + mPadding . right = opticalInsets . right ; \n + } \n + if ( mPadding . top < opticalInsets . top ) { \n + mPadding . top = opticalInsets . top ; \n + mPadding . bottom = opticalInsets . bottom ; \n + } \n } \n }", "msg_token": "Fix CTS test for nine patch padding sanity check"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ order ( WithSecurityContextTestExecutionListener . ORDER ) \n + @ order ( NUMBER0 ) \n public class WithSecurityContextTestExecutionListener extends \n AbstractTestExecutionListener { \n \n - public static final int ORDER = NUMBER0 ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove ORDER constant"} {"diff": " public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea \n } \n } \n } \n + if ( _score_training_samples < NUMBER0 ) { \n + dl . error ( STRING0 , STRING1 ) ; \n + } \n + if ( _score_validation_samples < NUMBER0 ) { \n + dl . error ( STRING2 , STRING1 ) ; \n + } \n \n if ( _autoencoder && _sparsity_beta > NUMBER0 ) { \n if ( _activation == Activation . Tanh || _activation == Activation . TanhWithDropout ) {", "msg_token": "Add more error checking"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FMLClientHandler implements IFMLSidedHandler \n if ( badType == null ) \n { \n badType = Sets . newHashSet ( ) ; \n - brokenTextures . put ( resourceLocation . getResourceDomain ( ) , error , badType ) ; \n + brokenTextures . put ( resourceLocation . getResourceDomain ( ) , Objects . firstNonNull ( error , STRING0 ) , badType ) ; \n } \n badType . add ( resourceLocation ) ; \n }", "msg_token": "Fix crash when texture loading throws RuntimeException without message"} {"diff": " public class WindowDecorActionBar extends ActionBar implements \n \n @ override \n public void invalidate ( ) { \n + if ( mActionMode != this ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + return ; \n + } \n + \n mMenu . stopDispatchingItemsChanged ( ) ; \n try { \n mCallback . onPrepareActionMode ( this , mMenu ) ;", "msg_token": "Fix crash on pasting text in a WebView"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class GitTestRepo extends TestRepo { \n public class GitTestRepo extends TestRepo { \n if ( returnValue != NUMBER0 ) { \n throw new RuntimeException ( String . format ( STRING0 , from . getAbsolutePath ( ) , returnValue , outputStreamConsumer . getAllOutput ( ) ) ) ; \n } \n + \n + createCommandLine ( STRING1 ) . withEncoding ( STRING2 ) . withWorkingDir ( workingDir ) . withArgs ( STRING3 , STRING4 , STRING5 ) . runOrBomb ( true , STRING6 ) ; \n + createCommandLine ( STRING1 ) . withEncoding ( STRING2 ) . withWorkingDir ( workingDir ) . withArgs ( STRING3 , STRING7 , STRING8 ) . runOrBomb ( true , STRING6 ) ; \n } \n \n private GitCommand git ( File workingDir ) {", "msg_token": "Fix another failing git test"} {"diff": " public class WorldEdit { \n } else if ( split [ NUMBER0 ] . equalsIgnoreCase ( STRING0 ) ) { \n checkArgs ( split , NUMBER0 , NUMBER0 , split [ NUMBER0 ] ) ; \n player . giveItem ( NUMBER1 , NUMBER2 ) ; \n - player . print ( STRING1 ) ; \n + player . print ( STRING2 ) ; \n return true ; \n \n SINGLE", "msg_token": "Fixed help emitted by wand"} {"diff": " public interface IHikariConnectionProxy extends Connection , IBagManagable \n \n boolean isBrokenConnection ( ) ; \n \n - boolean isTransactionIsolationDirty ( ) ; \n - \n - boolean isAutoCommitDirty ( ) ; \n - \n long getCreationTime ( ) ; \n \n long getLastAccess ( ) ;", "msg_token": "Remove unused methods from signature"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n class ParallelForkingGradleExecuter extends ForkingGradleExecuter { \n protected List < String > getAllArgs ( ) { \n List < String > args = new ArrayList < String > ( ) ; \n args . addAll ( super . getAllArgs ( ) ) ; \n - args . add ( STRING0 ) ; \n - args . add ( STRING1 ) ; \n + if ( getDistribution ( ) . getVersion ( ) . compareTo ( GradleVersion . version ( STRING2 ) ) <= NUMBER0 ) { \n + args . add ( STRING3 ) ; \n + } else { \n + args . add ( STRING0 ) ; \n + args . add ( STRING1 ) ; \n + } \n args . add ( STRING4 + DefaultTaskExecutionPlan . INTRA_PROJECT_TOGGLE + STRING5 ) ; \n return args ; \n }", "msg_token": "Adjust the switches used per version by the parallel executor now that parallel threads is deprecated"} {"diff": " public final class InputMethodManager { \n COMMENT \n private CursorAnchorInfo mCursorAnchorInfo = null ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - private final int [ ] mViewTopLeft = new int [ NUMBER0 ] ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - private final Matrix mViewToScreenMatrix = new Matrix ( ) ; \n - \n SINGLE \n \n COMMENT", "msg_token": "Remove obsolete fields from InputMethodManager"} {"diff": " package NAMESPACE ; \n public class SizeWidget extends CoreWidget { \n \n public SizeWidget ( ) { \n - super ( STRING0 , STRING1 , STRING2 ) ; \n + super ( STRING0 , STRING1 , STRING3 ) ; \n } \n }", "msg_token": "Fix bad commit"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public interface ModuleRevisionResolveState extends Versioned { \n - String getId ( ) ; \n + ModuleVersionIdentifier getId ( ) ; \n \n ComponentSelectionReason getSelectionReason ( ) ; \n \n public class DependencyGraphBuilder { \n return id . getVersion ( ) ; \n } \n \n - public String getId ( ) { \n - return String . format ( STRING0 , id . getGroup ( ) , id . getName ( ) , id . getVersion ( ) ) ; \n + public ModuleVersionIdentifier getId ( ) { \n + return id ; \n } \n \n public ModuleVersionResolveException getFailure ( ) {", "msg_token": "Changed the method signature so that it returns ModuleVersionIdentifier instead of String"} {"diff": " public class FileBasedIndex implements ApplicationComponent { \n if ( file . isDirectory ( ) ) { \n final ContentIterator iterator = new ContentIterator ( ) { \n public boolean processFile ( final VirtualFile fileOrDir ) { \n - if ( ! fileOrDir . isDirectory ( ) ) { \n + if ( ! fileOrDir . isDirectory ( ) && ! SingleRootFileViewProvider . isTooLarge ( fileOrDir ) ) { \n processor . process ( fileOrDir ) ; \n } \n return true ; \n public class FileBasedIndex implements ApplicationComponent { \n } \n } \n else { \n - for ( IndexableFileSet set : myIndexableSets ) { \n - if ( set . isInSet ( file ) ) { \n - processor . process ( file ) ; \n - break ; \n + if ( ! SingleRootFileViewProvider . isTooLarge ( file ) ) { \n + for ( IndexableFileSet set : myIndexableSets ) { \n + if ( set . isInSet ( file ) ) { \n + processor . process ( file ) ; \n + break ; \n + } \n } \n } \n }", "msg_token": "do not index large files"} {"diff": " public class MessageList \n addOrUpdateMessages ( account , folder , messages , verifyAgainstSearch ) ; \n } \n \n - private void addOrUpdateMessages ( Account account , String folder , List < Message > messages , boolean verifyAgainstSearch ) \n + private void addOrUpdateMessages ( final Account account , final String folder , final List < Message > providedMessages , final boolean verifyAgainstSearch ) \n { \n + SINGLE \n + SINGLE \n + final List < Message > messages = new ArrayList < Message > ( providedMessages ) ; \n + \n + runOnUiThread ( new Runnable ( ) \n + { \n + public void run ( ) \n + { \n boolean needsSort = false ; \n final List < MessageInfoHolder > messagesToAdd = new ArrayList < MessageInfoHolder > ( ) ; \n List < MessageInfoHolder > messagesToRemove = new ArrayList < MessageInfoHolder > ( ) ; \n public class MessageList \n mHandler . sortMessages ( ) ; \n mHandler . resetUnreadCount ( ) ; \n } \n + } \n + } ) ; \n } \n public MessageInfoHolder getMessage ( Message message ) \n {", "msg_token": "do our messagelist updates from sync on the ui thread rather than the"} {"diff": " public class Invoker { \n if ( object == null ) { \n return null ; \n } \n + \n + if ( type == object . getClass ( ) ) return object ; \n + \n SINGLE \n SINGLE \n if ( type . isArray ( ) ) {", "msg_token": "avoid creation of new objects if type matches"} {"diff": " public class HeliosSoloDeployment implements HeliosDeployment { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - public Builder containerDockerHost ( final DockerHost dockerHost ) { \n + public Builder containerDockerHost ( final DockerHost containerDockerHost ) { \n this . containerDockerHost = containerDockerHost ; \n return this ; \n }", "msg_token": "Fix noop assignment in HeliosSoloDeployment"} {"diff": " public class TreeGraph implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - public void addNodeToIndexMap ( int index , TreeGraphNode node ) { \n + void addNodeToIndexMap ( int index , TreeGraphNode node ) { \n indexMap . put ( Integer . valueOf ( index ) , node ) ; \n } \n \n public class TreeGraph implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - public TreeGraphNode getNodeByIndex ( int index ) { \n + TreeGraphNode getNodeByIndex ( int index ) { \n return indexMap . get ( Integer . valueOf ( index ) ) ; \n } \n \n - public Collection < TreeGraphNode > getNodes ( ) { \n + Collection < TreeGraphNode > getNodes ( ) { \n return indexMap . values ( ) ; \n }", "msg_token": "Reduce access privileges for some various methods I d like to kill"} {"diff": " public class LocalSearchScope extends SearchScope { \n for ( int j = NUMBER0 ; j < elements2 . length ; j ++ ) { \n final PsiElement element2 = elements2 [ j ] ; \n final PsiElement unionElement = scopeElementsUnion ( element1 , element2 ) ; \n - if ( unionElement != null ) { \n + if ( unionElement != null && unionElement . getContainingFile ( ) != null ) { \n result . add ( unionElement ) ; \n united [ j ] = true ; \n break loop1 ;", "msg_token": "avoid assertion in LocalSearchScope union when calculating union of scopes for several trees of JSP JSPX file"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class DefaultModifierRegistry implements ModifierRegistry { \n private void addIBatisSupport ( ) { \n if ( profilerConfig . isIBatisEnabled ( ) ) { \n addModifier ( new SqlMapModifier ( byteCodeInstrumentor , agent ) ) ; \n + addModifier ( new SqlMapClientTemplateModifier ( byteCodeInstrumentor , agent ) ) ; \n } \n }", "msg_token": "improved matching api"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove an unused import"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix TransitionSet javadoc to use transitionOrdering attribute"} {"diff": " public class LockPatternUtils { \n COMMENT \n public int getActivePasswordQuality ( ) { \n int activePasswordQuality = DevicePolicyManager . PASSWORD_QUALITY_UNSPECIFIED ; \n - switch ( getKeyguardStoredPasswordQuality ( ) ) { \n + SINGLE \n + SINGLE \n + int quality = \n + ( int ) getLong ( PASSWORD_TYPE_KEY , DevicePolicyManager . PASSWORD_QUALITY_SOMETHING ) ; \n + switch ( quality ) { \n case DevicePolicyManager . PASSWORD_QUALITY_SOMETHING : \n if ( isLockPatternEnabled ( ) ) { \n activePasswordQuality = DevicePolicyManager . PASSWORD_QUALITY_SOMETHING ; \n } \n break ; \n + case DevicePolicyManager . PASSWORD_QUALITY_BIOMETRIC_WEAK : \n + if ( isBiometricWeakInstalled ( ) ) { \n + activePasswordQuality = DevicePolicyManager . PASSWORD_QUALITY_BIOMETRIC_WEAK ; \n + } \n + break ; \n case DevicePolicyManager . PASSWORD_QUALITY_NUMERIC : \n if ( isLockPasswordEnabled ( ) ) { \n activePasswordQuality = DevicePolicyManager . PASSWORD_QUALITY_NUMERIC ; \n public class LockPatternUtils { \n } \n break ; \n } \n + \n return activePasswordQuality ; \n }", "msg_token": "DevicePolicyManager doesn t allow Face Unlock"} {"diff": " public class ArrayFunctions extends FunctionsContainer { \n } \n \n public static Memory range ( Environment env , TraceInfo trace , Memory low , Memory high , Memory step ) { \n - int err = NUMBER0 ; \n if ( low . getRealType ( ) == Memory . Type . DOUBLE || high . getRealType ( ) == Memory . Type . DOUBLE || step . getRealType ( ) == Memory . Type . DOUBLE ) { \n return _range_double ( env , trace , low . toDouble ( ) , high . toDouble ( ) , step . toDouble ( ) ) ; \n } else {", "msg_token": "Remove unused variable"} {"diff": " public class SphericalMercatorProjection { \n return new Point ( x * mWorldWidth , y * mWorldWidth ) ; \n } \n \n - public LatLng toLatLng ( Point point ) { \n + public LatLng toLatLng ( com . google . maps . android . geometry . Point point ) { \n final double x = point . x / mWorldWidth - FLOAT0 ; \n final double lng = x * NUMBER0 ;", "msg_token": "Remove use of deprecated projection Point"} {"diff": " class StringToConstraintsTransformer { \n private static Pattern p = Pattern . compile ( P_STR ) ; \n @ nonnls private static final String P2_STR = STRING0 ; \n private static Pattern p2 = Pattern . compile ( P2_STR ) ; \n - @ nonnls private static final String P3_STR = STRING1 ; \n + @ nonnls private static final String P3_STR = STRING2 ; \n private static Pattern p3 = Pattern . compile ( P3_STR ) ; \n @ nonnls private static final String REF = STRING3 ; \n @ nonnls private static final String READ = STRING4 ; \n public class PredefinedConfiguration extends Configuration { \n CLASS_TYPE \n ) , \n \n + createSearchTemplateInfo ( \n + SSRBundle . message ( STRING5 ) , \n + STRING6 , \n + CLASS_TYPE \n + ) , \n + \n SINGLE \n createSearchTemplateInfo ( SSRBundle . message ( STRING7 ) , STRING8 , GENERICS_TYPE ) , \n createSearchTemplateInfo ( SSRBundle . message ( STRING9 ) , STRING10 , GENERICS_TYPE ) ,", "msg_token": "added template to search for static w o final script constraint"} {"diff": " public class AdvancedLSystemTreeDefinition implements TreeDefinition { \n \n private static final int GROWTH_SAFE_DISTANCE = NUMBER0 ; \n private static final float MAX_ANGLE_OFFSET = ( float ) Math . PI / NUMBER1 f ; \n - private static final int GROWTH_INTERVAL = NUMBER2 ; SINGLE \n + private static final int GROWTH_INTERVAL = NUMBER3 * NUMBER4 ; \n \n private Map < Character , AxionElementGeneration > blockMap ; \n private Map < Character , AxionElementReplacement > axionElementReplacements ;", "msg_token": "Restored default growing speed of trees"} {"diff": " public class GitblitContext extends DaggerContext { \n COMMENT \n COMMENT \n public GitblitContext ( ) { \n - this . goSettings = null ; \n - this . goBaseFolder = null ; \n - gitblit = this ; \n + this ( null , null ) ; \n } \n \n COMMENT", "msg_token": "findbugs Reduce static variable assignment to one location"} {"diff": " public class BranchedUnfoldingUtils { \n public static void unfoldAssignmentToWhen ( @ notnull JetBinaryExpression assignment ) { \n Project project = assignment . getProject ( ) ; \n String op = assignment . getOperationReference ( ) . getText ( ) ; \n - JetExpression lhs = ( JetExpression ) assignment . getLeft ( ) . copy ( ) ; \n + String lhsText = assignment . getLeft ( ) . getText ( ) ; \n JetWhenExpression whenExpression = ( JetWhenExpression ) assignment . getRight ( ) ; \n \n assert whenExpression != null : UNFOLD_WITHOUT_CHECK ; \n public class BranchedUnfoldingUtils { \n \n assert currExpr != null : UNFOLD_WITHOUT_CHECK ; \n \n - currExpr . replace ( JetPsiFactory . createBinaryExpression ( project , lhs , op , currExpr ) ) ; \n + currExpr . replace ( JetPsiFactory . createBinaryExpression ( project , JetPsiFactory . createExpression ( project , lhsText ) , op , currExpr ) ) ; \n } \n }", "msg_token": "Fix bug in assignment to when unfolding"} {"diff": " public class SeverityMatchFilter \n mAcceptOnMatch = aAcceptOnMatch ; \n } \n \n - COMMENT \n + COMMENT \n public boolean accept ( Object aObject ) \n { \n if ( ! ( aObject instanceof AuditEvent ) ) {", "msg_token": "Fixed javadoc typo"} {"diff": " public class BinaryExpressionHelper { \n SINGLE \n SINGLE \n ArgumentListExpression ae = new ArgumentListExpression ( index , rhsValueLoader ) ; \n - controller . getCallSiteWriter ( ) . makeCallSite ( receiver , STRING0 , ae , false , false , false , false ) ; \n + controller . getInvocationWriter ( ) . makeCall ( \n + parent , receiver , new ConstantExpression ( STRING0 ) , \n + ae , InvocationWriter . invokeMethod , false , false , false ) ; \n controller . getOperandStack ( ) . pop ( ) ; \n SINGLE \n rhsValueLoader . visit ( controller . getAcg ( ) ) ;", "msg_token": "replace call site shortcut by InvocationWriter code to allow for example indy use a dummy writer for the call site"} {"diff": " public class OTPMain { \n try { \n JCommander jc = new JCommander ( params , args ) ; \n if ( params . help ) { \n + jc . setProgramName ( STRING0 ) ; \n jc . usage ( ) ; \n System . exit ( NUMBER0 ) ; \n }", "msg_token": "add program invocation information to usage"} {"diff": " public abstract class BaseWeatherConsumerTest extends CamelTestSupport { \n \n protected void checkWeatherContent ( String weather ) { \n SINGLE \n + log . debug ( STRING0 , new Object [ ] { WeatherMode . JSON , LS , weather } ) ; \n + \n assertStringContains ( weather , STRING1 ) ; \n assertStringContains ( weather , STRING2 ) ; \n }", "msg_token": "Added a log statement"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public @ interface Test { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n long timeout ( ) default NUMBER0 L ; \n }", "msg_token": "Added thread safety warnings to Test javadoc"} {"diff": " public class KeyguardHostView extends KeyguardViewBase { \n private KeyguardSecurityModel mSecurityModel ; \n private KeyguardViewStateManager mViewStateManager ; \n \n - boolean mPersitentStickyWidgetLoaded = false ; \n - \n private Rect mTempRect = new Rect ( ) ; \n \n private int mDisabledFeatures ; \n public class KeyguardHostView extends KeyguardViewBase { \n SINGLE \n SINGLE \n SINGLE \n - if ( ! mSafeModeEnabled && ! cameraDisabledByDpm ( ) \n + if ( ! mSafeModeEnabled && ! cameraDisabledByDpm ( ) && mUserSetupCompleted \n && mContext . getResources ( ) . getBoolean ( R . bool . kg_enable_camera_default_widget ) ) { \n View cameraWidget = \n CameraWidgetFrame . create ( mContext , mCameraWidgetCallbacks , mActivityLauncher ) ;", "msg_token": "Only show camera widget to setup users"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public class ExitCodeGenerators implements Iterable < ExitCodeGenerator > { \n + class ExitCodeGenerators implements Iterable < ExitCodeGenerator > { \n \n private List < ExitCodeGenerator > generators = new ArrayList < ExitCodeGenerator > ( ) ;", "msg_token": "Make ExitCodeGenerators package private"} {"diff": " public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat \n @ override \n public void onClick ( final View v ) { \n \n - if ( copyTextToClipboard ( otrFingerprint , R . string . otr_fingerprint ) ) { \n + if ( copyTextToClipboard ( CryptoHelper . prettifyFingerprint ( otrFingerprint ) , R . string . otr_fingerprint ) ) { \n Toast . makeText ( \n EditAccountActivity . this , \n R . string . toast_message_otr_fingerprint ,", "msg_token": "add spaces to otr fingerprints copied to clipboard"} {"diff": " public abstract class AbstractOutputBuffer implements OutputBuffer { \n COMMENT \n COMMENT \n COMMENT \n - protected static org . apache . juli . logging . Log log \n + private static final org . apache . juli . logging . Log log \n = org . apache . juli . logging . LogFactory . getLog ( AbstractOutputBuffer . class ) ; \n \n SINGLE", "msg_token": "Fix logger visibility"} {"diff": " class ImageDecoder { \n int imageWidth = options . outWidth ; \n int imageHeight = options . outHeight ; \n int widthScale = imageWidth / targetWidth ; \n - int heightScale = imageWidth / targetHeight ; \n + int heightScale = imageHeight / targetHeight ; \n switch ( viewScaleType ) { \n case FIT_CENTER : \n case FIT_XY :", "msg_token": "Fixed bug of calculation of original image scale for decoding"} {"diff": " public abstract class DefaultExpressionTraversalVisitor < R , C > \n SINGLE \n return null ; \n } \n + \n + @ override \n + protected R visitExists ( ExistsPredicate node , C context ) \n + { \n + SINGLE \n + return null ; \n + } \n }", "msg_token": "Don t traverse EXISTS in default Expression visitor"} {"diff": " public class BenchmarkQueryResult \n \n public static BenchmarkQueryResult passResult ( Suite suite , BenchmarkQuery benchmarkQuery , Stat wallTimeNanos , Stat processCpuTimeNanos , Stat queryCpuTimeNanos ) \n { \n - return new BenchmarkQueryResult ( suite , benchmarkQuery , Status . PASS , null , wallTimeNanos , processCpuTimeNanos , queryCpuTimeNanos ) ; \n + return new BenchmarkQueryResult ( suite , benchmarkQuery , Status . PASS , Optional . empty ( ) , wallTimeNanos , processCpuTimeNanos , queryCpuTimeNanos ) ; \n } \n \n public static BenchmarkQueryResult failResult ( Suite suite , BenchmarkQuery benchmarkQuery , String errorMessage )", "msg_token": "Fix NPE in BenchmarkQueryResult"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Observable < T > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Observable < T > distinctUntilChanged ( ) { \n + return create ( OperationDistinctUntilChanged . distinctUntilChanged ( this ) ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public < U > Observable < T > distinctUntilChanged ( Func1 < ? super T , ? extends U > keySelector ) { \n + return create ( OperationDistinctUntilChanged . distinctUntilChanged ( this , keySelector ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added distinctUntilChanged member methods to Observable"} {"diff": " abstract class AbstractTFS extends FileSystem { \n } \n \n @ override \n + public long getDefaultBlockSize ( ) { \n + return getConf ( ) . getLong ( STRING0 , Constants . DEFAULT_BLOCK_SIZE_BYTE ) ; \n + } \n + \n + @ override \n public BlockLocation [ ] getFileBlockLocations ( FileStatus file , long start , long len ) \n throws IOException { \n if ( file == null ) {", "msg_token": "Set the default block size in AbstractTFS to be the default block size in Tachyon"} {"diff": " public class DbUtils { \n Table . remove ( this , entityType ) ; \n } \n \n + public void close ( ) { \n + String dbName = this . daoConfig . getDbName ( ) ; \n + if ( daoMap . containsKey ( dbName ) ) { \n + daoMap . remove ( dbName ) ; \n + this . database . close ( ) ; \n + } \n + } \n + \n SINGLE \n private void debugSql ( String sql ) { \n if ( debug ) {", "msg_token": "add close method to DbUtils"} {"diff": " public class DeepLearningModel extends Model implements Comparable < DeepLearningM \n if ( printme ) Log . info ( STRING0 ) ; \n final Frame reconstructed = score ( ftrain ) ; \n Log . info ( reconstructed . toStringAll ( ) ) ; \n + reconstructed . delete ( ) ; \n } \n else { \n if ( printme ) Log . info ( STRING1 ) ;", "msg_token": "Fix memory leak"} {"diff": " public abstract class GeneratorBase extends JsonGenerator \n return this ; \n } \n \n - @ override public final ObjectCodec getCodec ( ) { return _objectCodec ; } \n + @ override public ObjectCodec getCodec ( ) { return _objectCodec ; } \n \n COMMENT \n COMMENT \n public abstract class GeneratorBase extends JsonGenerator \n COMMENT \n COMMENT \n COMMENT \n - @ override public final JsonWriteContext getOutputContext ( ) { return _writeContext ; } \n + @ override public JsonWriteContext getOutputContext ( ) { return _writeContext ; } \n \n COMMENT \n COMMENT", "msg_token": "remove finality of getOutputContext"} {"diff": " public class GenericsHighlightUtil { \n \n if ( ! ( resolved instanceof PsiField ) ) return null ; \n if ( ! ( ( PsiModifierListOwner ) resolved ) . hasModifierProperty ( PsiModifier . STATIC ) ) return null ; \n + if ( expr . getParent ( ) instanceof PsiSwitchLabelStatement ) return null ; \n final PsiMember constructorOrInitializer = PsiUtil . findEnclosingConstructorOrInitializer ( expr ) ; \n if ( constructorOrInitializer == null ) return null ; \n if ( constructorOrInitializer . hasModifierProperty ( PsiModifier . STATIC ) ) return null ;", "msg_token": "ignore enum vals references from switch statements"} {"diff": " public class WebdavServlet \n copyResource ( errorList , childSrc , childDest ) ; \n } \n } else if ( sourceResource . isFile ( ) ) { \n + WebResource destResource = resources . getResource ( dest ) ; \n + if ( ! destResource . exists ( ) && ! destResource . getWebappPath ( ) . endsWith ( STRING0 ) ) { \n + int lastSlash = destResource . getWebappPath ( ) . lastIndexOf ( STRING1 ) ; \n + if ( lastSlash > NUMBER0 ) { \n + String parent = destResource . getWebappPath ( ) . substring ( NUMBER0 , lastSlash ) ; \n + WebResource parentResource = resources . getResource ( parent ) ; \n + if ( ! parentResource . isDirectory ( ) ) { \n + errorList . put ( source , new Integer ( WebdavStatus . SC_CONFLICT ) ) ; \n + return false ; \n + } \n + } \n + } \n if ( ! resources . write ( dest , sourceResource . getInputStream ( ) , \n false ) ) { \n errorList . put ( source ,", "msg_token": "Fix a warning with the Litmus WebDAV testsuite"} {"diff": " public class OtrAndroidKeyManagerImpl extends IOtrKeyManager . Stub implements Otr \n \n try { \n String fingerprint = cryptoEngine . getFingerprint ( pubKey ) ; \n - \n - OtrDebugLogger . log ( STRING0 + userId + STRING1 + fingerprint ) ; \n - \n + SINGLE \n return fingerprint ; \n \n } catch ( OtrCryptoException e ) {", "msg_token": "remove this log value"} {"diff": " final class Common { \n ( ( Worker ) message . obj ) . sendUpdate ( ) ; \n break ; \n case MSG_FIRST_ADDED : \n - ( ( Worker ) message . obj ) . callFirstUpdatableAdded ( ) ; \n + if ( ! hasMessages ( MSG_LAST_REMOVED , message . obj ) ) { \n + ( ( Worker ) message . obj ) . callFirstUpdatableAdded ( ) ; \n + } \n break ; \n case MSG_LAST_REMOVED : \n - ( ( Worker ) message . obj ) . callLastUpdatableRemoved ( ) ; \n + if ( ! hasMessages ( MSG_FIRST_ADDED , message . obj ) ) { \n + ( ( Worker ) message . obj ) . callLastUpdatableRemoved ( ) ; \n + } \n break ; \n case MSG_CALL_UPDATABLE : \n ( ( Updatable ) message . obj ) . update ( ) ;", "msg_token": "Changed WorkerHandler to make Observables survive rotation"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class PyEnvTestCase extends UsefulTestCase { \n } \n \n if ( ! wasExecuted ) { \n - throw new RuntimeException ( STRING0 + getTestName ( false ) + STRING1 + joinStrings ( roots , STRING2 ) ) ; \n + throw new RuntimeException ( STRING0 + getTestName ( false ) + STRING1 + joinStrings ( roots , STRING2 ) + STRING3 + joinStrings ( testTask . getTags ( ) , STRING4 ) ) ; \n + \n } \n } \n \n public abstract class PyEnvTestCase extends UsefulTestCase { \n return necessaryTags . isEmpty ( ) ; \n } \n \n - public static String joinStrings ( List < String > roots , String rootsName ) { \n + public static String joinStrings ( Collection < String > roots , String rootsName ) { \n return roots . size ( ) > NUMBER0 ? rootsName + StringUtil . join ( roots , STRING5 ) + STRING3 : STRING6 ; \n }", "msg_token": "Added more clear message about missing tags"} {"diff": " public class SunCalc { \n Calendar cal = DateTimeUtils . truncateToMidnight ( calendar ) ; \n Sun sun = new Sun ( ) ; \n for ( int minutes = NUMBER0 ; minutes <= MINUTES_PER_DAY ; minutes += CURVE_TIME_INTERVAL ) { \n - setSunPosition ( calendar , latitude , longitude , sun ) ; \n + setSunPosition ( cal , latitude , longitude , sun ) ; \n if ( sun . getPosition ( ) . getElevation ( ) < SUN_ANGLE ) { \n return false ; \n }", "msg_token": "Fixed isSunUpAllDay calculation"} {"diff": " public final class Realm implements Closeable { \n } \n if ( sharedGroup != null && references == NUMBER0 ) { \n realmsCache . get ( ) . remove ( configuration ) ; \n - globalPathConfigurationCache . get ( canonicalPath ) . remove ( configuration ) ; \n sharedGroup . close ( ) ; \n sharedGroup = null ; \n - AtomicInteger counter = globalOpenInstanceCounter . get ( canonicalPath ) ; \n - if ( counter . decrementAndGet ( ) == NUMBER1 ) { \n - globalOpenInstanceCounter . remove ( canonicalPath ) ; \n + \n + SINGLE \n + SINGLE \n + synchronized ( Realm . class ) { \n + globalPathConfigurationCache . get ( canonicalPath ) . remove ( configuration ) ; \n + AtomicInteger counter = globalOpenInstanceCounter . get ( canonicalPath ) ; \n + if ( counter . decrementAndGet ( ) == NUMBER1 ) { \n + globalOpenInstanceCounter . remove ( canonicalPath ) ; \n + } \n } \n }", "msg_token": "Add synchronized block to Realm close"} {"diff": " public class HttpServletRequestWrapper implements HttpServletRequest { \n return req . getCharacterEncoding ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public int getContentLength ( ) { \n - if ( parameters != null ) { \n - try { \n - parseRequest ( ) ; \n - } catch ( IOException e ) { \n - throw new IllegalStateException ( STRING0 , e ) ; \n - } \n - } \n - return contentData == null ? - NUMBER0 : contentData . length ; \n + return req . getContentLength ( ) ; \n } \n \n COMMENT", "msg_token": "Reverting a previous change to HttpServletRequestWrapper that overrode the getContentLength method because it caused other issues"} {"diff": " public class StructureViewComponent extends JPanel implements TreeActionsOwner , \n \n public void storeState ( ) { \n myStructureViewState = new StructureViewState ( ) ; \n - myStructureViewState . setExpandedElements ( getExpandedPsiElements ( ) ) ; \n - myStructureViewState . setSelectedElements ( getSelectedPsiElements ( ) ) ; \n + myStructureViewState . setExpandedElements ( getExpandedElements ( ) ) ; \n + myStructureViewState . setSelectedElements ( getSelectedElements ( ) ) ; \n myFileEditor . putUserData ( STRUCTURE_VIEW_STATE_KEY , myStructureViewState ) ; \n } \n \n - private Object [ ] getExpandedPsiElements ( ) { \n + private Object [ ] getExpandedElements ( ) { \n final ArrayList < TreePath > expandedPaths = TreeUtil . collectExpandedPaths ( getTree ( ) ) ; \n - return filterPsiElements ( convertPathsToValues ( expandedPaths . toArray ( new TreePath [ expandedPaths . size ( ) ] ) ) ) ; \n + return convertPathsToValues ( expandedPaths . toArray ( new TreePath [ expandedPaths . size ( ) ] ) ) ; \n }", "msg_token": "StructureViewState sould contain not only psi elements"} {"diff": " public class TaskStackLayoutAlgorithm { \n COMMENT \n COMMENT \n private void updateFrontBackTransforms ( ) { \n + SINGLE \n + if ( mStackRect . isEmpty ( ) ) { \n + return ; \n + } \n + \n float min = mUnfocusedRange . relativeMin + \n mFocusState * ( mFocusedRange . relativeMin - mUnfocusedRange . relativeMin ) ; \n float max = mUnfocusedRange . relativeMax +", "msg_token": "Fix crash when trying to use uninitialized layout"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public interface PersistentStateComponent < T > { \n COMMENT", "msg_token": "add link to confluence"} {"diff": " public final class WindowManagerGlobal { \n boolean hasVisibleWindows = false ; \n synchronized ( mLock ) { \n for ( int i = mRoots . size ( ) - NUMBER0 ; i >= NUMBER1 ; -- i ) { \n - if ( mRoots . get ( i ) . getHostVisibility ( ) == View . VISIBLE \n - && mRoots . get ( i ) . mAttachInfo . mHardwareRenderer != null ) { \n + final ViewRootImpl root = mRoots . get ( i ) ; \n + if ( root . mView != null && root . getHostVisibility ( ) == View . VISIBLE \n + && root . mAttachInfo . mHardwareRenderer != null ) { \n hasVisibleWindows = true ; \n } else { \n - mRoots . get ( i ) . destroyHardwareResources ( ) ; \n + root . destroyHardwareResources ( ) ; \n } \n } \n }", "msg_token": "Missing null check"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface Context { \n \n import NAMESPACE ; \n public final class InjectionHelper { \n private static final Logger logger = LoggerFactory . getLogger ( InjectionHelper . class ) ; \n \n - public InjectionHelper ( Context context ) { \n + private InjectionHelper ( ) { \n } \n \n public static void inject ( final Object object , Context context ) {", "msg_token": "Fixed a typo and removed and made static helpre class constructor private again"} {"diff": " public final class SystemServer { \n \n mSystemServiceManager . startService ( TrustManagerService . class ) ; \n \n - mSystemServiceManager . startService ( FingerprintService . class ) ; \n + if ( mPackageManager . hasSystemFeature ( PackageManager . FEATURE_FINGERPRINT ) ) { \n + mSystemServiceManager . startService ( FingerprintService . class ) ; \n + } \n \n try { \n Slog . i ( TAG , STRING0 ) ;", "msg_token": "DO NOT MERGE ANYWHERE Start the FingnerprintService only if it has FEATURE_FINGERPRINT"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n return false ; \n } \n \n + SINGLE \n + bounds . left = Math . max ( bounds . left , NUMBER0 ) ; \n + bounds . top = Math . max ( bounds . top , NUMBER0 ) ; \n + bounds . right = Math . min ( bounds . right , mRight ) ; \n + bounds . bottom = Math . min ( bounds . bottom , mBottom ) ; \n + \n Iterator < View > iterator = obtainOrderedChildIterator ( ) ; \n while ( iterator . hasNext ( ) ) { \n View sibling = iterator . next ( ) ;", "msg_token": "Fix an edge case in computing click location in accessibility mode"} {"diff": " public class ManageNodeFunctionalTest extends AbstractRestFunctionalTestBase \n . toString ( ) \n . matches ( NODE_URI_PATTERN ) ) ; \n } \n + \n + @ test \n + public void create_Node_with_array_properties ( ) throws Exception \n + { \n + String response = gen . get ( ) \n + . payload ( STRING0 ) \n + . expectedStatus ( NUMBER0 ) \n + . expectedHeader ( STRING1 ) \n + . expectedHeader ( STRING2 ) \n + . post ( functionalTestHelper . nodeUri ( ) ) \n + . response ( ) . getEntity ( ) ; \n + assertTrue ( response . contains ( STRING3 ) ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "adding array JSON test"} {"diff": " public abstract class DaoTestCase { \n \n @ after \n public void tearDownDbUnit ( ) throws Exception { \n - databaseTester . onTearDown ( ) ; \n + if ( databaseTester != null ) { \n + databaseTester . onTearDown ( ) ; \n + } \n if ( connection != null ) { \n connection . close ( ) ; \n } \n public abstract class DaoTestCase { \n private void truncateTables ( ) throws SQLException { \n Connection connection = myBatis . openSession ( ) . getConnection ( ) ; \n Statement statement = connection . createStatement ( ) ; \n - LoggerFactory . getLogger ( getClass ( ) ) . info ( STRING0 ) ; \n for ( String table : DatabaseUtils . TABLE_NAMES ) { \n SINGLE \n String truncateCommand = databaseCommands . truncate ( table ) ; \n + LoggerFactory . getLogger ( getClass ( ) ) . info ( STRING1 + truncateCommand ) ; \n statement . executeUpdate ( truncateCommand ) ; \n connection . commit ( ) ;", "msg_token": "Add log to debug integration tests with Oracle"} {"diff": " public class DropwizardResourceConfigTest { \n final DropwizardResourceConfig rc = DropwizardResourceConfig . forTesting ( new MetricRegistry ( ) ) ; \n rc . init ( new PackageNamesScanner ( new String [ ] { DummyResource . class . getPackage ( ) . getName ( ) } ) ) ; \n \n - assertThat ( rc . getEndpointsInfo ( ) ) . isEqualTo ( STRING0 + \n - STRING1 + \n + assertThat ( rc . getEndpointsInfo ( ) ) . isEqualTo ( String . format ( STRING2 + \n + STRING3 + \n STRING4 + \n - STRING1 ) ; \n + STRING3 ) ) ; \n } \n \n @ path ( STRING5 )", "msg_token": "Make DropwizardResourceConfigTest cross platform"} {"diff": " public class Node implements Writable { \n } \n \n public List children ( ) { \n - return this . children ( ) ; \n + return this . children ; \n } \n \n public void addChild ( final Object child ) {", "msg_token": "Fix typo which cause stack overflow if children was called"} {"diff": " public class RTSSubsystemTestCase extends AbstractSubsystemBaseTest { \n return readResource ( STRING0 ) ; \n } \n \n + @ override \n + protected String getSubsystemXsdPath ( ) throws Exception { \n + return STRING1 ; \n + } \n + \n + @ override \n + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { \n + return new String [ ] { \n + STRING2 \n + } ; \n + } \n }", "msg_token": "add XML validation for rts subsystem"} {"diff": " public class NEDGraphBuilderImpl implements GraphBuilder { \n PackedCoordinateSequence profile = new PackedCoordinateSequence . Double ( coords ) ; \n \n if ( edge . setElevationProfile ( profile , true ) ) { \n - log . warn ( GraphBuilderAnnotation . register ( graph , Variety . ELEVATION_FLATTENED , edge ) ) ; \n - \n + log . trace ( GraphBuilderAnnotation . register ( graph , Variety . ELEVATION_FLATTENED , edge ) ) ; \n } \n } \n } \n public class NEDGraphBuilderImpl implements GraphBuilder { \n \n \n if ( ee . setElevationProfile ( elevPCS , true ) ) { \n - log . warn ( GraphBuilderAnnotation . register ( graph , Variety . ELEVATION_FLATTENED , ee ) ) ; \n + log . trace ( GraphBuilderAnnotation . register ( graph , Variety . ELEVATION_FLATTENED , ee ) ) ; \n } \n }", "msg_token": "demote baldwin street warnings to trace level because there are so many"} {"diff": " public class Utils { \n \n if ( anAction instanceof ActionGroup ) { \n ActionGroup childGroup = ( ActionGroup ) anAction ; \n + final Presentation presentation = factory . getPresentation ( childGroup ) ; \n + AnActionEvent event1 = new AnActionEvent ( null , context , place , presentation , ActionManager . getInstance ( ) , NUMBER0 ) ; \n + event1 . setInjectedContext ( childGroup . isInInjectedContext ( ) ) ; \n + doUpdate ( childGroup , event1 , presentation ) ; \n \n SINGLE \n if ( childGroup . isPopup ( ) ) { \n - final Presentation presentation = factory . getPresentation ( childGroup ) ; \n - AnActionEvent event1 = new AnActionEvent ( null , context , place , presentation , ActionManager . getInstance ( ) , NUMBER0 ) ; \n - event1 . setInjectedContext ( childGroup . isInInjectedContext ( ) ) ; \n - doUpdate ( childGroup , event1 , presentation ) ; \n if ( ! presentation . isVisible ( ) ) { \n continue ; \n }", "msg_token": "always update action group before checking for visible children"} {"diff": " public class JpaProperties { \n @ deprecated \n public void setNamingstrategy ( Class < ? > namingStrategy ) { \n logger . warn ( STRING0 \n - + STRING1 ) ; \n + + STRING2 ) ; \n this . setNamingStrategy ( namingStrategy ) ; \n }", "msg_token": "Fix typo in warning"} {"diff": " public class ModelTypeValidator implements ParameterValidator { \n public void validateParameter ( String parameterName , ModelNode value ) throws OperationFailedException { \n if ( ! value . isDefined ( ) ) { \n if ( ! nullable ) \n - throw new OperationFailedException ( new ModelNode ( ) . set ( parameterName + STRING0 ) ) ; SINGLE \n + throw new OperationFailedException ( new ModelNode ( ) . set ( parameterName + STRING1 ) ) ; SINGLE \n } else { \n boolean matched = false ; \n if ( strictType ) { \n public class BoundedQueueThreadPoolAdd implements OperationStepHandler , Descript \n if ( params . getQueueLength ( ) != null ) { \n model . get ( QUEUE_LENGTH ) . set ( operation . get ( QUEUE_LENGTH ) ) ; \n } else { \n - throw new OperationFailedException ( new ModelNode ( ) . set ( STRING2 + QUEUE_LENGTH + STRING0 ) ) ; \n + throw new OperationFailedException ( new ModelNode ( ) . set ( STRING2 + QUEUE_LENGTH + STRING1 ) ) ; \n } \n \n if ( params . getCoreThreads ( ) != null ) {", "msg_token": "changed spaces at the end of messages to dots"} {"diff": " public class PdeRuntime implements PdeMessageConsumer { \n \n public void message ( String s ) { \n SINGLE \n + if ( s . length ( ) > NUMBER0 ) System . err . println ( s ) ; \n + \n if ( s . indexOf ( BApplet . LEECH_WAKEUP ) == NUMBER1 ) { \n newMessage = true ; \n return ; SINGLE", "msg_token": "spew more errors"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class BlobColumnAccess extends WrapperColumnAccess { \n @ override \n String setColumnAccessString ( TypeName fieldType , String elementName , String fullElementName , boolean isModelContainerAdapter , String variableNameString , CodeBlock formattedAccess ) { \n CodeBlock newFormattedAccess = CodeBlock . builder ( ) \n - . add ( STRING0 , variableNameString , formattedAccess ) \n + . add ( STRING1 , ClassName . get ( Blob . class ) , formattedAccess ) \n . build ( ) ; \n return getExistingColumnAccess ( ) \n . setColumnAccessString ( fieldType , elementName , fullElementName , isModelContainerAdapter , variableNameString , newFormattedAccess ) ; \n } \n + \n + @ override \n + SQLiteType getSqliteTypeForTypeName ( TypeName elementTypeName , boolean isModelContainerAdapter ) { \n + return SQLiteType . BLOB ; \n + } \n }", "msg_token": "fixed issue where blob was not set properly"} {"diff": " \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n public class VBAnalyzer extends PlainAnalyzer { \n \n - private VBSymbolTokenizer cref ; \n - private VBXref xref ; \n - private Reader dummy = new StringReader ( STRING0 ) ; \n + private final VBSymbolTokenizer cref ; \n + private final VBXref xref ; \n + private final Reader dummy = new StringReader ( STRING0 ) ; \n \n COMMENT \n protected VBAnalyzer ( FileAnalyzerFactory factory ) {", "msg_token": "Made fields final to silence PMD warnings"} {"diff": " public class UUIDBroadcasterCacheTest { \n c . close ( ) ; \n } \n \n - @ test ( timeOut = NUMBER0 , enabled = true ) \n + @ test ( timeOut = NUMBER0 , enabled = false ) \n public void testConcurrentInAndOutEventCacheBroadcasterCache ( ) throws IllegalAccessException , ClassNotFoundException , InstantiationException { \n logger . info ( STRING0 , getClass ( ) . getSimpleName ( ) ) ;", "msg_token": "Disable this test for now as it is unpredictable"} {"diff": " public class NetworkStatsService extends INetworkStatsService . Stub { \n final int callingUid = Binder . getCallingUid ( ) ; \n final DevicePolicyManagerInternal dpmi = LocalServices . getService ( \n DevicePolicyManagerInternal . class ) ; \n - if ( dpmi . isActiveAdminWithPolicy ( callingUid , DeviceAdminInfo . USES_POLICY_PROFILE_OWNER ) \n - || dpmi . isActiveAdminWithPolicy ( callingUid , \n - DeviceAdminInfo . USES_POLICY_DEVICE_OWNER ) ) { \n + \n + SINGLE \n + if ( dpmi != null && dpmi . isActiveAdminWithPolicy ( callingUid , \n + DeviceAdminInfo . USES_POLICY_PROFILE_OWNER ) ) { \n return ; \n } \n }", "msg_token": "Fix potential NPE on devices without DPMS"} {"diff": " public class PsiLiteralExpressionImpl \n @ override \n @ notnull \n public PsiReference [ ] getReferences ( ) { \n - if ( textMatches ( PsiKeyword . NULL ) ) return PsiReference . EMPTY_ARRAY ; \n + IElementType type = getLiteralElementType ( ) ; \n + if ( type != JavaTokenType . STRING_LITERAL && type != JavaTokenType . INTEGER_LITERAL ) { \n + return PsiReference . EMPTY_ARRAY ; SINGLE \n + } \n return PsiReferenceService . getService ( ) . getContributedReferences ( this ) ; \n }", "msg_token": "allow only string and int literals to have provided references in java"} {"diff": " public final class NettyRemoteBlockReader implements RemoteBlockReader { \n if ( response . getType ( ) == RPCMessage . Type . RPC_BLOCK_RESPONSE ) { \n RPCBlockResponse blockResponse = ( RPCBlockResponse ) response ; \n LOG . info ( STRING0 + blockId + STRING1 + address + STRING2 ) ; \n + \n + if ( blockResponse . getBlockId ( ) < NUMBER0 ) { \n + LOG . info ( STRING0 + blockResponse . getBlockId ( ) + STRING3 ) ; \n + return null ; \n + } \n return blockResponse . getPayloadDataBuffer ( ) . getReadOnlyByteBuffer ( ) ; \n } \n } catch ( Exception e ) { \n - LOG . error ( STRING4 + e . getMessage ( ) ) ; \n + LOG . error ( STRING4 + e + STRING5 + e . getMessage ( ) ) ; \n } \n - \n return null ; \n }", "msg_token": "handle error blockid like tcp block reader"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class QueryIndexMigrationTest extends HazelcastTestSupport { \n } \n \n @ test \n + @ ignore \n public void testQueryWithIndexesWhileMigrating ( ) throws Exception { \n \n HazelcastInstance h1 = nodeFactory . newHazelcastInstance ( ) ; \n public class QueryIndexMigrationTest extends HazelcastTestSupport { \n COMMENT \n COMMENT \n @ test ( timeout = MINUTE ) \n + @ ignore \n public void testIndexCleanupOnMigration ( ) throws Exception { \n final int n = NUMBER0 ; \n final int runCount = NUMBER1 ;", "msg_token": "Ignoring tests whose fix is scheduled for the next release"} {"diff": " public class CSVDataFetcher extends BaseDataFetcher { \n } \n \n this . numOutcomes = labels . size ( ) ; \n + this . totalExamples = l . size ( ) ; \n + \n all = DataSet . merge ( l ) ; \n - \n - \n }", "msg_token": "Fix the bug of totalExamples in CSVDataFetcher java"} {"diff": " \n - package NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "corrected TODO task"} {"diff": " public class SlidingUpPanelLayout extends ViewGroup { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - public boolean expandPanel ( float mSlideOffset ) { \n - if ( mSlideableView == null || mSlideState == PanelState . EXPANDED ) return false ; \n + public boolean expandPanel ( float slideOffset ) { \n + if ( mSlideableView == null || ( mSlideState == PanelState . EXPANDED && slideOffset == FLOAT0 ) ) return false ; \n mSlideableView . setVisibility ( View . VISIBLE ) ; \n - return expandPanel ( mSlideableView , NUMBER0 , mSlideOffset ) ; \n + return expandPanel ( mSlideableView , NUMBER0 , slideOffset ) ; \n } \n \n COMMENT", "msg_token": "Fixed anchoring bug"} {"diff": " public class ProxyServlet implements Servlet \n { \n client . setMaxConnectionsPerAddress ( Integer . parseInt ( t ) ) ; \n } \n + \n + t = config . getInitParameter ( STRING0 ) ; \n + \n + if ( t != null ) \n + { \n + client . setTimeout ( Long . parseLong ( t ) ) ; \n + } \n + \n + t = config . getInitParameter ( STRING1 ) ; \n + \n + if ( t != null ) \n + { \n + client . setIdleTimeout ( Long . parseLong ( t ) ) ; \n + } \n \n client . start ( ) ;", "msg_token": "Add timeout and idleTimeout servlet init parameters to the creation of the http client"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PermissionsExResolver extends DinnerPermsResolver { \n } \n \n public boolean inGroup ( OfflinePlayer player , String group ) { \n - if ( getPermissible ( player ) == null ) { \n - return manager . getUser ( player . getName ( ) ) . inGroup ( group ) ; \n - } else { \n - return hasPermission ( player , GROUP_PREFIX + group ) ; \n - } \n + return super . inGroup ( player , group ) || manager . getUser ( player . getName ( ) ) . inGroup ( group ) ; \n } \n \n public String [ ] getGroups ( OfflinePlayer player ) {", "msg_token": "Check both superperms and PEX directly to support older versions of PEX with inGroup"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n } \n final TaskStack stack = task . mStack ; \n stack . moveTaskToBottom ( task ) ; \n - task . getDisplayContent ( ) . moveStack ( stack , false ) ; \n moveStackWindowsLocked ( stack ) ; \n } \n } finally {", "msg_token": "Remove over aggressive stack movement"} {"diff": " public class AclDAO { \n private static final Logger logger = LoggerFactory . getLogger ( AclDAO . class ) ; \n \n private final DSLContext dslContext ; \n - private ClientDAO clientDAO ; \n - private GroupDAO groupDAO ; \n - private SecretContentDAO secretContentDAO ; \n - private SecretSeriesDAO secretSeriesDAO ; \n - private ObjectMapper mapper ; \n + private final ClientDAO clientDAO ; \n + private final GroupDAO groupDAO ; \n + private final SecretContentDAO secretContentDAO ; \n + private final SecretSeriesDAO secretSeriesDAO ; \n + private final ObjectMapper mapper ; \n \n @ inject \n public AclDAO ( DSLContext dslContext , ClientDAO clientDAO , GroupDAO groupDAO , \n import static NAMESPACE ; \n COMMENT \n public class SecretDAO { \n private final DSLContext dslContext ; \n - private SecretContentDAO secretContentDAO ; \n - private SecretSeriesDAO secretSeriesDAO ; \n + private final SecretContentDAO secretContentDAO ; \n + private final SecretSeriesDAO secretSeriesDAO ; \n \n @ inject \n public SecretDAO ( DSLContext dslContext , SecretContentDAO secretContentDAO ,", "msg_token": "Makes some member variables final"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Move platform UI component out of util module"} {"diff": " public class IncProjectBuilder { \n private boolean runBuildersForChunk ( final CompileContext context , final BuildTargetChunk chunk ) throws ProjectBuildException , IOException { \n Set < ? extends BuildTarget < ? > > targets = chunk . getTargets ( ) ; \n if ( targets . size ( ) > NUMBER0 ) { \n - Set < ModuleBuildTarget > moduleTargets = new HashSet < ModuleBuildTarget > ( ) ; \n + Set < ModuleBuildTarget > moduleTargets = new LinkedHashSet < ModuleBuildTarget > ( ) ; \n for ( BuildTarget < ? > target : targets ) { \n if ( target instanceof ModuleBuildTarget ) { \n moduleTargets . add ( ( ModuleBuildTarget ) target ) ;", "msg_token": "build targets from a cycle in predictable order"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class HistoryReference { \n this . addAlert ( new Alert ( alert , this ) ) ; \n } \n } catch ( SQLException e ) { \n - SINGLE \n e . printStackTrace ( ) ; \n } \n } \n public class HistoryReference { \n if ( alerts != null ) \n return this . alerts ; \n else \n - return new ArrayList < Alert > ( ) ; \n + return Collections . emptyList ( ) ; \n } \n }", "msg_token": "Fixed small issue in HistoryReference"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class XFramesView extends XDebugViewBase { \n myThreadComboBox = new JComboBox ( ) ; \n myThreadComboBox . setRenderer ( new ThreadComboBoxRenderer ( ) ) ; \n myThreadComboBox . addItemListener ( new MyItemListener ( ) ) ; \n - myMainPanel . add ( myThreadComboBox ) ; \n + myMainPanel . add ( myThreadComboBox , BorderLayout . NORTH ) ; \n \n myFramesList = new XDebuggerFramesList ( ) ; \n myFramesList . addListSelectionListener ( new MyListSelectionListener ( ) ) ;", "msg_token": "Fix layout in XFrameView"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ beta \n @ deprecated", "msg_token": "Fix remaining callers of NullOutputStream in c g common"} {"diff": " public class MainActivity extends QKActivity implements SlidingMenu . SlidingMenuL \n if ( mConversationList == null ) { \n mConversationList = new ConversationListFragment ( ) ; \n } \n - mConversationList = new ConversationListFragment ( ) ; \n FragmentTransaction menuTransaction = fm . beginTransaction ( ) ; \n menuTransaction . replace ( R . id . menu_frame , mConversationList ) ; \n menuTransaction . commit ( ) ;", "msg_token": "Only recreate ConversationListFragment if it doesn t exist"} {"diff": " public final class BlockUtil { \n public static FluidStack drainBlock ( Block block , World world , int x , int y , int z , boolean doDrain ) { \n Fluid fluid = FluidRegistry . lookupFluidForBlock ( block ) ; \n \n - if ( fluid != null ) { \n + if ( fluid != null && FluidRegistry . isFluidRegistered ( fluid ) ) { \n int meta = world . getBlockMetadata ( x , y , z ) ; \n \n if ( meta != NUMBER0 ) {", "msg_token": "Fix pump crash"} {"diff": " public class Scroller { \n COMMENT \n COMMENT \n public final void setFriction ( float friction ) { \n - computeDeceleration ( friction ) ; \n + mDeceleration = computeDeceleration ( friction ) ; \n } \n \n private float computeDeceleration ( float friction ) {", "msg_token": "Actually store the newly computed deceleration"} {"diff": " public class DefaultModuleFileSystemTest { \n public void should_filter_changed_files ( ) throws Exception { \n File basedir = new File ( resourcesDir ( ) , STRING0 ) ; \n Settings settings = new Settings ( ) ; \n + settings . setProperty ( CoreProperties . ENCODING_PROPERTY , STRING1 ) ; \n File mainDir = new File ( basedir , STRING2 ) ; \n File testDir = new File ( basedir , STRING3 ) ; \n File foo = new File ( mainDir , STRING4 ) ;", "msg_token": "Fix UT on Windows"} {"diff": " public class LogInspector \n b = NUMBER0 ; \n } \n \n - chars [ i ] = ( char ) ( b & NUMBER1 ) ; \n + chars [ i ] = ( char ) b ; \n } \n \n return chars ;", "msg_token": "Java Remove mask as byte will not be negative"} {"diff": " public class CreateUserAndBlog { \n @ override \n public void onResponse ( JSONObject response ) { \n AppLog . d ( T . NUX , String . format ( STRING0 , mStep . name ( ) ) ) ; \n - AppLog . d ( T . NUX , String . format ( STRING1 , response . toString ( ) ) ) ; \n nextStep ( response ) ; \n } \n }", "msg_token": "Remove unused debug log"} {"diff": " public class GridSearchHandler < G extends Grid < MP > , \n paramsSchema . getClass ( ) ) ; \n fields . add ( name ) ; \n } catch ( NoSuchFieldException e ) { \n - throw new IllegalArgumentException ( STRING0 + name + STRING1 , e ) ; \n + throw new IllegalArgumentException ( STRING0 + name + STRING1 + STRING2 + value , e ) ; \n } catch ( IllegalAccessException e ) { \n - throw new IllegalArgumentException ( STRING3 + name + STRING1 , e ) ; \n + throw new IllegalArgumentException ( STRING3 + name + STRING1 + STRING2 + value , e ) ; \n } catch ( RuntimeException e ) { \n - throw new IllegalArgumentException ( STRING3 + name + STRING1 , e ) ; \n + throw new IllegalArgumentException ( STRING3 + name + STRING1 + STRING4 + value , e ) ; \n } \n return this ; \n }", "msg_token": "CORE Improve error reporting in cases when reflection fails"} {"diff": " public class OSQLMethodFormat extends OAbstractSQLMethod { \n \n final Object v = getParameterValue ( iRecord , iMethodParams [ NUMBER0 ] . toString ( ) ) ; \n if ( v != null ) { \n - if ( ioResult instanceof Long ) \n - ioResult = new Date ( ( Long ) ioResult ) ; \n + if ( ioResult instanceof Number ) \n + ioResult = new Date ( ( ( Long ) ioResult ) . longValue ( ) ) ; \n \n if ( ioResult instanceof Date ) { \n final SimpleDateFormat format = new SimpleDateFormat ( v . toString ( ) ) ;", "msg_token": "supported conversion from any Number"} {"diff": " public class ClusterImpl implements Cluster { \n if ( clusterMember == null ) { \n clusterMember = dummy ; \n if ( listenerSet != null && listenerSet . size ( ) > NUMBER0 ) { \n - node . executorManager . executeLocaly ( new Runnable ( ) { \n + node . executorManager . executeLocally ( new Runnable ( ) { \n public void run ( ) { \n MembershipEvent membershipEvent = new MembershipEvent ( ClusterImpl . this , \n dummy , MembershipEvent . MEMBER_ADDED ) ; \n public class ClusterImpl implements Cluster { \n Set < Member > it = clusterMembers . keySet ( ) ; \n for ( final Member cm : it ) { \n if ( ! setNew . contains ( cm ) ) { \n - node . executorManager . executeLocaly ( new Runnable ( ) { \n + node . executorManager . executeLocally ( new Runnable ( ) { \n public void run ( ) { \n MembershipEvent membershipEvent = new MembershipEvent ( ClusterImpl . this , \n cm , MembershipEvent . MEMBER_REMOVED ) ;", "msg_token": "Fixed compilation error"} {"diff": " public class Editor { \n } \n } \n mPrevOffset = offset ; \n - mTouchWordOffset = trueOffset - offset ; \n + mTouchWordOffset = Math . max ( trueOffset - offset , NUMBER0 ) ; \n mInWord = ! isStartBoundary ( offset ) ; \n positionCursor = true ; \n } else if ( offset - mTouchWordOffset > mPrevOffset ) { \n public class Editor { \n } \n } \n mPrevOffset = offset ; \n - mTouchWordOffset = offset - trueOffset ; \n + mTouchWordOffset = Math . max ( offset - trueOffset , NUMBER0 ) ; \n mInWord = ! isEndBoundary ( offset ) ; \n positionCursor = true ; \n } else if ( offset + mTouchWordOffset < mPrevOffset ) {", "msg_token": "Fix negative touch word offset that caused crashing when selecting text"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ComponentModelBasePlugin implements Plugin < ProjectInternal > { \n } \n } \n \n - SINGLE \n - @ mutate \n - void closeSourcesForBinaries ( BinaryContainer binaries , ProjectSourceSet sources ) { \n - SINGLE \n - } \n - \n @ model \n PlatformContainer platforms ( ServiceRegistry serviceRegistry ) { \n Instantiator instantiator = serviceRegistry . get ( Instantiator . class ) ;", "msg_token": "Removed empty rule that is no longer required"} {"diff": " public class ReaderPostPagerActivity extends AppCompatActivity \n EventBus . getDefault ( ) . register ( this ) ; \n \n if ( ! hasPagerAdapter ( ) || mBackFromLogin ) { \n - handleDeepLinking ( ) ; \n + if ( isDeepLinking ( ) ) { \n + handleDeepLinking ( ) ; \n + } \n \n loadPosts ( mBlogId , mPostId ) ;", "msg_token": "handle deeplinking only when deeplinked"} {"diff": " public class ConversationFragment extends Fragment { \n ConversationActivity activity = ( ConversationActivity ) getActivity ( ) ; \n if ( this . conversation != null ) { \n for ( Message message : this . conversation . getMessages ( ) ) { \n - if ( message . getEncryption ( ) == Message . ENCRYPTION_PGP ) { \n + if ( ( message . getEncryption ( ) == Message . ENCRYPTION_PGP ) && ( ( message . getStatus ( ) == Message . STATUS_RECIEVED ) || ( message . getStatus ( ) == Message . STATUS_SEND ) ) ) { \n decryptMessage ( message ) ; \n break ; \n }", "msg_token": "receiving pgp images important bug fix"} {"diff": " public class ConfigurationNode { \n COMMENT \n @ suppresswarnings ( STRING0 ) \n public List < String > getKeys ( String path ) { \n + if ( path == null ) return new ArrayList < String > ( root . keySet ( ) ) ; \n Object o = getProperty ( path ) ; \n if ( o == null ) { \n return null ;", "msg_token": "Adds suppport for node lists"} {"diff": " public class JsonType \n } \n \n @ override \n + public boolean equalTo ( Block leftBlock , int leftPosition , Block rightBlock , int rightPosition ) \n + { \n + Slice leftValue = leftBlock . getSlice ( leftPosition , NUMBER0 , leftBlock . getLength ( leftPosition ) ) ; \n + Slice rightValue = rightBlock . getSlice ( rightPosition , NUMBER0 , rightBlock . getLength ( rightPosition ) ) ; \n + return leftValue . equals ( rightValue ) ; \n + } \n + \n + @ override \n + public int hash ( Block block , int position ) \n + { \n + return block . hash ( position , NUMBER0 , block . getLength ( position ) ) ; \n + } \n + \n + @ override \n public int compareTo ( Block leftBlock , int leftPosition , Block rightBlock , int rightPosition ) \n { \n int leftLength = leftBlock . getLength ( leftPosition ) ;", "msg_token": "Implement hash equalTo for json type"} {"diff": " public class TextureAtlas implements Disposable { \n ObjectMap < Page , Texture > pageToTexture = new ObjectMap < Page , Texture > ( ) ; \n for ( Page page : data . pages ) { \n Texture texture = new Texture ( page . textureFile , page . format , page . useMipMaps ) ; \n + texture . setFilter ( page . minFilter , page . magFilter ) ; \n + texture . setWrap ( page . uWrap , page . vWrap ) ; \n textures . add ( texture ) ; \n pageToTexture . put ( page , texture ) ; \n }", "msg_token": "fixed TextureAtlas didn t apply filters to texture s"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public abstract class LocalWorld extends AbstractWorld { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - @ suppresswarnings ( STRING0 ) \n - @ deprecated \n - protected Random random = new Random ( ) ; \n - \n @ override \n public BaseBlock getLazyBlock ( Vector position ) { \n return getBlock ( position ) ;", "msg_token": "Delete protected Random instance from LocalWorld"} {"diff": " public class KotlinParameterTablePanel extends JPanel { \n \n myTable . setTableHeader ( null ) ; \n myTable . getSelectionModel ( ) . setSelectionMode ( ListSelectionModel . SINGLE_SELECTION ) ; \n + myTable . setCellSelectionEnabled ( true ) ; \n \n TableColumn checkBoxColumn = myTable . getColumnModel ( ) . getColumn ( MyTableModel . CHECKMARK_COLUMN ) ; \n TableUtil . setupCheckboxColumn ( checkBoxColumn ) ;", "msg_token": "Allow to select individual cells in Extract Function dialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AnimatorInflater_Delegate { \n SINGLE \n return new FakeAnimator ( ) ; \n } \n + \n + @ layoutlibdelegate \n + COMMENT \n + AttributeSet attrs , ValueAnimator anim , float pathErrorScale ) \n + throws NotFoundException { \n + return anim ; \n + } \n }", "msg_token": "Add missing delegate for AnimatorInflater"} {"diff": " public final class PactRecord implements Value \n { \n SINGLE \n if ( fieldNum < NUMBER0 || fieldNum >= this . numFields ) { \n - throw new IndexOutOfBoundsException ( ) ; \n + throw new IndexOutOfBoundsException ( fieldNum + STRING0 + ( this . numFields - NUMBER1 ) + STRING1 ) ; \n } \n \n SINGLE \n public class ObjectSchema implements Schema { \n @ override \n public PactRecord jsonToRecord ( IJsonNode value , PactRecord target , EvaluationContext context ) { \n IObjectNode others ; \n - if ( target == null ) { \n + if ( target == null || target . getNumFields ( ) < this . mappings . size ( ) + NUMBER1 ) { \n SINGLE \n target = new PactRecord ( this . mappings . size ( ) + NUMBER1 ) ; \n for ( int i = NUMBER0 ; i < this . mappings . size ( ) ; i ++ )", "msg_token": "Fixed refitting of PactRecords for ObjectSchemas"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class DefaultNioDatagramChannelConfig extends DefaultDatagramChannelConfig \n \n private volatile int writeBufferHighWaterMark = NUMBER0 * NUMBER1 ; \n private volatile int writeBufferLowWaterMark = NUMBER2 * NUMBER1 ; \n - private volatile ReceiveBufferSizePredictor predictor = \n - new AdaptiveReceiveBufferSizePredictor ( ) ; \n private volatile int writeSpinCount = NUMBER3 ; \n \n DefaultNioDatagramChannelConfig ( DatagramSocket socket ) { \n class DefaultNioDatagramChannelConfig extends DefaultDatagramChannelConfig \n } \n this . writeSpinCount = writeSpinCount ; \n } \n - \n - @ override \n - public ReceiveBufferSizePredictor getReceiveBufferSizePredictor ( ) { \n - return predictor ; \n - } \n - \n - @ override \n - public void setReceiveBufferSizePredictor ( \n - ReceiveBufferSizePredictor predictor ) { \n - if ( predictor == null ) { \n - throw new NullPointerException ( STRING0 ) ; \n - } \n - this . predictor = predictor ; \n - } \n }", "msg_token": "Removed predictor from DefaultNioDatagramChannelConfig because it s already implemented in its superclass"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Util { \n } \n \n public static void bug ( XHook hook , Throwable ex ) { \n + if ( ex instanceof InvocationTargetException ) { \n + InvocationTargetException exex = ( InvocationTargetException ) ex ; \n + if ( exex . getTargetException ( ) != null ) \n + ex = exex . getTargetException ( ) ; \n + } \n + \n int priority ; \n if ( ex instanceof ActivityShare . AbortException ) \n priority = Log . WARN ;", "msg_token": "Get target exception debug info"} {"diff": " public interface AgentBuilder { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed javadoc formatting error"} {"diff": " public class IndexAPI { \n \n COMMENT \n @ get \n - @ path ( STRING0 ) \n + @ path ( STRING1 ) \n public Response getAllStopClusters ( ) { \n SINGLE \n List < StopClusterDetail > scl = StopClusterDetail . list ( index . stopClusterForId . values ( ) , detail ) ; \n public class IndexAPI { \n \n COMMENT \n @ get \n - @ path ( STRING2 ) \n + @ path ( STRING3 ) \n public Response getStopCluster ( @ pathparam ( STRING4 ) String clusterIdString ) { \n StopCluster cluster = index . stopClusterForId . get ( clusterIdString ) ; \n if ( cluster != null ) {", "msg_token": "rename cluster index API endpoint"} {"diff": " public class BootStrapperTest \n public void report ( InetAddress ep ) { throw new UnsupportedOperationException ( ) ; } \n public void registerFailureDetectionEventListener ( IFailureDetectionEventListener listener ) { throw new UnsupportedOperationException ( ) ; } \n public void unregisterFailureDetectionEventListener ( IFailureDetectionEventListener listener ) { throw new UnsupportedOperationException ( ) ; } \n + public void remove ( InetAddress ep ) { throw new UnsupportedOperationException ( ) ; } \n } ; \n Multimap < InetAddress , Range > temp = BootStrapper . getWorkMap ( res , mockFailureDetector ) ; \n assertEquals ( NUMBER0 , temp . keySet ( ) . size ( ) ) ;", "msg_token": "fixed broken test"} {"diff": " public class SpeakerInfo { \n private String speakerName ; \n private String [ ] speakerNameStrings ; SINGLE \n private String speakerDesc ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n private Set < Mention > mentions = Generics . newHashSet ( ) ; SINGLE \n private boolean speakerIdIsNumber ; SINGLE \n private boolean speakerIdIsAutoDetermined ; SINGLE \n public class SpeakerInfo { \n return corefClusterId ; \n } \n \n - public String toString ( ) { \n - return speakerId ; \n - } \n - \n }", "msg_token": "Fixed target prefix OOV handling"} {"diff": " public class NumpyDocStringTypeProvider extends PyTypeProviderBase { \n } \n \n private static boolean isInsideNumPy ( @ notnull PsiElement element ) { \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return true ; \n final PsiFile file = element . getContainingFile ( ) ; \n \n if ( file != null ) { \n public class NumpyDocStringTypeProvider extends PyTypeProviderBase { \n } \n \n private static boolean isApplicable ( @ notnull PsiElement element ) { \n - if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return true ; \n final Module module = ModuleUtilCore . findModuleForPsiElement ( element ) ; \n if ( module != null ) { \n if ( PyDocumentationSettings . getInstance ( module ) . isNumpyFormat ( element . getContainingFile ( ) ) ) {", "msg_token": "fixed numpy ufunc test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class BaseGeneratedClassHolder implements GeneratedClassHolder { \n return environment ; \n } \n \n + protected ProcessingEnvironment getProcessingEnvironment ( ) { \n + return environment . getProcessingEnvironment ( ) ; \n + } \n + \n protected ProcessHolder . Classes getClasses ( ) { \n return environment . getClasses ( ) ; \n }", "msg_token": "add getProcessingEnvironment to BaseGeneratedClassHolder"} {"diff": " public class IndexBufferObject implements IndexData { \n if ( Gdx . gl11 != null ) { \n GL11 gl = Gdx . gl11 ; \n gl . glBufferData ( GL11 . GL_ELEMENT_ARRAY_BUFFER , byteBuffer . limit ( ) , byteBuffer , usage ) ; \n - } else if ( Gdx . gl11 != null ) { \n + } else if ( Gdx . gl20 != null ) { \n GL20 gl = Gdx . gl20 ; \n gl . glBufferData ( GL20 . GL_ELEMENT_ARRAY_BUFFER , byteBuffer . limit ( ) , byteBuffer , usage ) ; \n }", "msg_token": "fixed IndexBufferObject setIndices Thanks Dumi"} {"diff": " public class ScriptSupport { \n File scriptFile = new File ( text ) ; \n GroovyShell shell = new GroovyShell ( ) ; \n try { \n - script = scriptFile . exists ( ) ? shell . parse ( scriptFile ) : shell . parse ( text , name ) ; \n + script = scriptFile . exists ( ) ? shell . parse ( scriptFile ) : shell . parse ( text , name + STRING0 ) ; \n } catch ( Exception ex ) { \n Logger . getInstance ( getClass ( ) . getName ( ) ) . error ( ex ) ; \n throw new RuntimeException ( ex ) ; \n public class StructuralSearchTest extends StructuralSearchTestCase { \n findMatchesCount ( source2 , \n STRING1 + \n STRING2 + \n + STRING3 + \n STRING4 + \n STRING5 + \n STRING6 + \n public class StructuralSearchTest extends StructuralSearchTestCase { \n STRING7 + \n STRING8 + \n STRING9 + \n - STRING10 + \n - STRING11 + \n + STRING12 + \n + STRING13 + \n STRING14 + \n STRING15 + \n STRING16 +", "msg_token": "give script a different name from the var name so it doesn t hide the var"} {"diff": " public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi \n if ( wasPending ) { \n SINGLE \n addWalletTransaction ( Pool . PENDING , tx ) ; \n + log . info ( STRING0 ) ; \n } else { \n SINGLE \n SINGLE \n public class Wallet implements Serializable , BlockChainListener , PeerFilterProvi \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add a bit more logging to make output during chain splits less confusing"} {"diff": " public class BasicDBObjectTest { \n document = BasicDBObject . parse ( STRING0 , getDefaultCodecRegistry ( ) . get ( BasicDBObject . class ) ) ; \n assertEquals ( new BasicDBObject ( STRING1 , NUMBER0 ) . append ( STRING2 , STRING3 ) , document ) ; \n \n - document = BasicDBObject . parse ( STRING4 ) ; \n - assertEquals ( new BasicDBObject ( STRING5 , new BasicDBObject ( STRING6 , new Date ( NUMBER1 ) ) . append ( STRING7 , new Date ( NUMBER2 ) ) ) , \n - document ) ; \n + document = BasicDBObject . parse ( STRING8 ) ; \n + assertEquals ( new BasicDBObject ( STRING9 , new ObjectId ( STRING10 ) ) , document ) ; \n } \n \n @ test", "msg_token": "Changed test for BasicDBObject parse method to remove timezone dependency"} {"diff": " public class IabHelper { \n \n \n int queryPurchases ( Inventory inv , String itemType ) throws JSONException , RemoteException { \n + SINGLE \n + if ( mDisposed ) { \n + return IABHELPER_VERIFICATION_FAILED ; \n + } \n + \n SINGLE \n logDebug ( STRING0 + itemType ) ; \n logDebug ( STRING1 + mContext . getPackageName ( ) ) ;", "msg_token": "Fix crash if activity was finished but Iab purchase check was not"} {"diff": " public class GrammaticalRelation implements Comparable < GrammaticalRelation > , Ser \n return this ; \n SINGLE \n } \n + return rel ; \n } \n default : { \n throw new RuntimeException ( STRING0 + language ) ;", "msg_token": "Return the disambiguated Chinese relation"} {"diff": " public class Resources { \n remainder = languageTag . substring ( separator ) ; \n } \n \n - if ( STRING0 . equals ( language ) ) { \n - return STRING1 + remainder ; \n - } else if ( STRING2 . equals ( language ) ) { \n - return STRING3 + remainder ; \n - } else if ( STRING4 . equals ( language ) ) { \n - return STRING5 + remainder ; \n - } else { \n - return languageTag ; \n - } \n + return Locale . adjustLanguageCode ( language ) + remainder ; \n } \n \n COMMENT", "msg_token": "Remove copy of Locale adjustLanguageCode"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ sharable \n public class NetworkEventFiringHandler extends SimpleChannelInboundHandler < FMLProxyPacket > { \n private FMLEventChannel eventChannel ;", "msg_token": "Make NetworkEventFiringHandler sharable"} {"diff": " public class Job extends Request2 { \n @ override protected void logStart ( ) { \n super . logStart ( ) ; \n int idx = source . find ( response ) ; \n + if ( idx == - NUMBER0 ) { \n + Vec vm = response . masterVec ( ) ; \n + if ( vm != null ) idx = source . find ( vm ) ; \n + } \n Log . info ( STRING0 + ( idx == - NUMBER0 ? STRING1 : source . _names [ idx ] ) ) ; \n Log . info ( STRING2 + ( classification ? STRING3 : STRING4 ) ) ; \n }", "msg_token": "Fix Model synopsis response col"} {"diff": " public class DanmakusRetainer { \n topPos = item . getTop ( ) - drawItem . paintHeight ; \n \n } \n + \n + topPos = checkVerticalEdge ( false , drawItem , disp , topPos , firstItem , \n + null ) ; \n \n }", "msg_token": "check the Vertical Edge"} {"diff": " public class DumbServiceImpl extends DumbService implements Disposable , Modifica \n \n private final Queue < Runnable > myRunWhenSmartQueue = new Queue < Runnable > ( NUMBER0 ) ; \n private final Project myProject ; \n - private ThreadLocal < Integer > myAlternativeResolution = new ThreadLocal < Integer > ( ) ; \n + private final ThreadLocal < Integer > myAlternativeResolution = new ThreadLocal < Integer > ( ) ; \n \n public DumbServiceImpl ( Project project ) { \n myProject = project ;", "msg_token": "made field final"} {"diff": " public class SitePickerActivity extends ActionBarActivity { \n holder . txtTitle . setTextColor ( textColor ) ; \n holder . txtDomain . setTextColor ( textColor ) ; \n holder . txtTitle . setTypeface ( holder . txtTitle . getTypeface ( ) , site . isHidden ? Typeface . NORMAL : Typeface . BOLD ) ; \n + holder . imgBlavatar . setAlpha ( site . isHidden ? FLOAT0 : FLOAT1 ) ; \n } \n }", "msg_token": "Using alpha on blavatars of hidden sites"} {"diff": " public class JettyEmbeddedServletContainerFactory \n if ( getSslStoreProvider ( ) != null ) { \n try { \n factory . setKeyStore ( getSslStoreProvider ( ) . getKeyStore ( ) ) ; \n - factory . setTrustStore ( getSslStoreProvider ( ) . getKeyStore ( ) ) ; \n + factory . setTrustStore ( getSslStoreProvider ( ) . getTrustStore ( ) ) ; \n } \n catch ( Exception ex ) { \n throw new IllegalStateException ( STRING0 , ex ) ;", "msg_token": "Fix customization of Jetty s SSL trust store"} {"diff": " public @ interface ExtractBy { \n \n Type type ( ) default Type . XPath ; \n \n - boolean notNull ( ) default true ; \n + boolean notNull ( ) default false ; \n \n boolean multi ( ) default false ; \n \n public @ interface ExtractByRaw { \n \n Type type ( ) default Type . XPath ; \n \n - boolean notNull ( ) default true ; \n + boolean notNull ( ) default false ; \n \n boolean multi ( ) default false ; \n \n public @ interface ExtractByUrl { \n \n String value ( ) default STRING0 ; \n \n - boolean notNull ( ) default true ; \n + boolean notNull ( ) default false ; \n \n boolean multi ( ) default false ;", "msg_token": "update notnull default to false"} {"diff": " public class LwjglAudioRenderer implements AudioRenderer , Runnable { \n SINGLE \n if ( audioThread . isAlive ( ) ) { \n audioThread . interrupt ( ) ; \n + try { \n + audioThread . join ( ) ; \n + } catch ( InterruptedException ex ) { \n + } \n } \n }", "msg_token": "Avoid AL not closed error by joining with audio thread when exiting app"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed extra import"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class DijkstraSimpleTest extends AbstractRoutingAlgorithmTester { \n + public class DijkstraTest extends AbstractRoutingAlgorithmTester { \n \n @ override \n public AlgorithmPreparation prepareGraph ( Graph g , final WeightCalculation calc , final EdgePropertyEncoder encoder ) {", "msg_token": "fixed test case name for Dijkstra"} {"diff": " public class HamleDTMultiWordClassifier { \n public List < String > apply ( String mwe ) { \n String [ ] words = mwe . split ( STRING0 ) ; \n \n - if ( allowedWords . contains ( words [ NUMBER0 ] ) ) \n + if ( allowedWords . contains ( words [ NUMBER0 ] . toLowerCase ( ) ) ) \n return positiveRet ; \n return negativeRet ; \n }", "msg_token": "Look up POSs by lower case word"} {"diff": " public class ReadFromKafka { \n StreamExecutionEnvironment env = StreamExecutionEnvironment . getExecutionEnvironment ( ) ; \n env . getConfig ( ) . disableSysoutLogging ( ) ; \n env . getConfig ( ) . setRestartStrategy ( RestartStrategies . fixedDelayRestart ( NUMBER0 , NUMBER1 ) ) ; \n - env . enableCheckpointing ( NUMBER2 ) ; SINGLE \n + env . enableCheckpointing ( NUMBER2 ) ; SINGLE \n env . getConfig ( ) . setGlobalJobParameters ( parameterTool ) ; SINGLE \n \n DataStream < String > messageStream = env", "msg_token": "hotfix streamExamples Fix typo in comment"} {"diff": " public class DateHandlerTestCase { \n Header date = result . getHeaders ( STRING0 ) [ NUMBER0 ] ; \n final long firstDate = DateUtils . parseDate ( date . getValue ( ) ) . getTime ( ) ; \n Assert . assertTrue ( ( firstDate + NUMBER1 ) > System . currentTimeMillis ( ) ) ; \n - Assert . assertTrue ( System . currentTimeMillis ( ) > firstDate ) ; \n + Assert . assertTrue ( System . currentTimeMillis ( ) >= firstDate ) ; \n HttpClientUtils . readResponse ( result ) ; \n Thread . sleep ( NUMBER2 ) ; \n result = client . execute ( get ) ;", "msg_token": "Fix minor test issue"} {"diff": " public class DeterministicCorefAnnotator implements Annotator { \n Tree tree = sentence . get ( TreeCoreAnnotations . TreeAnnotation . class ) ; \n trees . add ( tree ) ; \n \n - SemanticGraph dependencies = SemanticGraphFactory . makeFromTree ( tree , Mode . COLLAPSED , Extras . NONE , false , null , true ) ; \n + SemanticGraph dependencies = SemanticGraphFactory . makeFromTree ( tree , Mode . COLLAPSED , Extras . NONE , true , null , true ) ; \n sentence . set ( SemanticGraphCoreAnnotations . AlternativeDependenciesAnnotation . class , dependencies ) ; \n \n if ( ! hasSpeakerAnnotations ) {", "msg_token": "Make the call to converting tree old dependencies threadsafe"} {"diff": " public class WPImageGetter implements Html . ImageGetter { \n return remote ; \n } \n \n - private static class RemoteDrawable extends BitmapDrawable { \n + public static class RemoteDrawable extends BitmapDrawable { \n Drawable mRemoteDrawable ; \n final Drawable mLoadingDrawable ; \n final Drawable mFailedDrawable ;", "msg_token": "Added image spans directly instead of using Html fromHtml"} {"diff": " public class Catalina extends Embedded { \n public void process ( String args [ ] ) { \n \n setAwait ( true ) ; \n - setCatalinaHome ( ) ; \n - setCatalinaBase ( ) ; \n + initDirs ( ) ; \n try { \n if ( arguments ( args ) ) { \n if ( starting ) { \n public class Catalina extends Embedded { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void setCatalinaBase ( ) { \n - initDirs ( ) ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void setCatalinaHome ( ) { \n - initDirs ( ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n public void load ( ) {", "msg_token": "Remove use of deprecated code"} {"diff": " public class DefaultStackTraceFilterer implements StackTraceFilterer { \n public static final Log STACK_LOG = LogFactory . getLog ( STRING0 ) ; \n \n private static final String [ ] DEFAULT_INTERNAL_PACKAGES = new String [ ] { \n + STRING1 , \n STRING2 , \n STRING3 , \n STRING4 ,", "msg_token": "filter resources plugin DevModeSanityFilter by default"} {"diff": " public class TestingPrestoServer \n private final InternalNodeManager nodeManager ; \n private final ServiceSelectorManager serviceSelectorManager ; \n private final Announcer announcer ; \n - private QueryManager queryManager ; \n + private final QueryManager queryManager ; \n \n public TestingPrestoServer ( ) \n throws Exception", "msg_token": "Make QueryManager final in TestingPrestoServer"} {"diff": " public class AccountManagerService \n if ( sessionBundle != null ) { \n String accountType = sessionBundle . getString ( AccountManager . KEY_ACCOUNT_TYPE ) ; \n if ( TextUtils . isEmpty ( accountType ) \n - && ! mAccountType . equalsIgnoreCase ( mAccountType ) ) { \n + || ! mAccountType . equalsIgnoreCase ( accountType ) ) { \n Log . w ( TAG , STRING0 ) ; \n } \n SINGLE", "msg_token": "Fix typo in AccountManagerService"} {"diff": " public final class DefaultPassConfig extends PassConfig { \n checks . add ( jqueryAliases ) ; \n } \n \n + if ( options . angularPass && ! options . skipNonTranspilationPasses ) { \n + checks . add ( angularPass ) ; \n + } \n + \n if ( options . getLanguageIn ( ) == LanguageMode . ECMASCRIPT6_TYPED \n && options . getLanguageOut ( ) != LanguageMode . ECMASCRIPT6_TYPED ) { \n checks . add ( convertEs6TypedToEs6 ) ; \n public final class DefaultPassConfig extends PassConfig { \n checks . add ( es6RewriteDestructuring ) ; \n } \n \n - if ( options . angularPass && ! options . skipNonTranspilationPasses ) { \n - checks . add ( angularPass ) ; \n - } \n - \n if ( options . generateExports && ! options . skipNonTranspilationPasses ) { \n checks . add ( generateExports ) ; \n }", "msg_token": "Moving AngularPass forward"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public class AbstractTfsShellTest { \n + public abstract class AbstractTfsShellTest { \n protected static final int SIZE_BYTES = Constants . MB * NUMBER0 ; \n @ rule \n public LocalTachyonClusterResource mLocalTachyonClusterResource =", "msg_token": "change AbstractTfsShell to abstract"} {"diff": " public class TestWebSocketFrameClientSSL extends TomcatBaseTest { \n public void testConnectToServerEndpoint ( ) throws Exception { \n Logger logger = Logger . getLogger ( STRING0 ) ; \n logger . setLevel ( Level . ALL ) ; \n - logger = Logger . getLogger ( STRING1 ) ; \n - logger . setLevel ( Level . ALL ) ; \n Tomcat tomcat = getTomcatInstance ( ) ; \n SINGLE \n Context ctx = tomcat . addContext ( STRING2 , null ) ;", "msg_token": "Drop some of the extra debug logging"} {"diff": " public final class HttpHelper { \n \n private static final Collection < String > REDIRECTOR_DOMAINS = new HashSet < String > ( Arrays . asList ( \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , \n - STRING9 , STRING10 , STRING11 , STRING12 , STRING13 \n + STRING14 , STRING15 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 \n ) ) ; \n \n private HttpHelper ( ) {", "msg_token": "accept a singleletterdomainelement com"} {"diff": " public interface Seq < T > extends Traversable < T > , Function1 < Integer , T > { \n return ( Seq < T > ) seq ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n - static < T extends Comparable < ? super T > , S extends Seq < T > > S sorted2 ( S seq ) { \n - return ( S ) seq . sorted ( Comparator . naturalOrder ( ) ) ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "removed old sorted proposal"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class RoundedBitmapDisplayer implements BitmapDisplayer { \n \n @ override \n public Bitmap display ( Bitmap bitmap , ImageView imageView ) { \n - Bitmap roundBitmap = getRoundedCornerBitmap ( bitmap ) ; \n + Bitmap roundBitmap ; \n + try { \n + roundBitmap = getRoundedCornerBitmap ( bitmap ) ; \n + } catch ( OutOfMemoryError e ) { \n + Log . e ( ImageLoader . TAG , STRING0 , e ) ; \n + roundBitmap = bitmap ; \n + } \n imageView . setImageBitmap ( roundBitmap ) ; \n return roundBitmap ; \n }", "msg_token": "Catch OOM while create rounded bitmap"} {"diff": " public class Wallet implements Serializable , BlockChainListener { \n if ( Utils . isWindows ( ) ) { \n SINGLE \n File canonical = destFile . getCanonicalFile ( ) ; \n - if ( canonical . delete ( ) && temp . renameTo ( canonical ) ) \n + canonical . delete ( ) ; \n + if ( temp . renameTo ( canonical ) ) \n return ; SINGLE \n throw new IOException ( STRING0 + temp + STRING1 + canonical ) ; \n } else if ( ! temp . renameTo ( destFile ) ) {", "msg_token": "Fix a regression in saving wallets on Windows"} {"diff": " public final class OnSubscribeRefCount < T > implements OnSubscribe < T > { \n source . connect ( onSubscribe ( subscriber , writeLocked ) ) ; \n } finally { \n SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n if ( writeLocked . get ( ) ) { \n - SINGLE \n + SINGLE \n lock . unlock ( ) ; \n } \n } \n public final class OnSubscribeRefCount < T > implements OnSubscribe < T > { \n subscriber . onCompleted ( ) ; \n } \n void cleanup ( ) { \n + SINGLE \n + SINGLE \n lock . lock ( ) ; \n try { \n if ( baseSubscription == currentBase ) {", "msg_token": "improve OnSubscribeRefCount comments"} {"diff": " class AudioPortEventHandler { \n mListeners = new ArrayList < AudioManager . OnAudioPortUpdateListener > ( ) ; \n \n SINGLE \n - Looper looper = Looper . myLooper ( ) ; \n - if ( looper == null ) { \n - looper = Looper . getMainLooper ( ) ; \n - } \n + Looper looper = Looper . getMainLooper ( ) ; \n \n if ( looper != null ) { \n mHandler = new Handler ( looper ) {", "msg_token": "only use main looper for AudioPort event handler"} {"diff": " public class HttpRequest { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - public OutputStreamWriter writer ( ) { \n + public OutputStreamWriter writer ( ) throws HttpRequestException { \n try { \n openOutput ( ) ; \n return new OutputStreamWriter ( output , output . encoder . charset ( ) ) ;", "msg_token": "Add missing throws declaration on writer method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "moved AbstractFileSetCheck to api package"} {"diff": " public interface MessageCounterManager { \n \n public void register ( String name ) ; \n \n - public Map < Integer , MessageCounter > get ( String name ) ; \n + public MessageCounter get ( String name ) ; \n \n - public Map < String , Map < Integer , MessageCounter > > getAllCounters ( ) ; \n + public Map < String , MessageCounter > getAllCounters ( ) ; \n \n }", "msg_token": "Revert Store message counters in timestamp keyed maps"} {"diff": " public abstract class ClientCall < ReqT , RespT > { \n public abstract void request ( int numMessages ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void cancel ( ) { \n - cancel ( STRING0 , null ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class ForwardingClientCall < ReqT , RespT > extends ClientCall < ReqT , \n delegate ( ) . request ( numMessages ) ; \n } \n \n - @ deprecated \n - @ override \n - public void cancel ( ) { \n - delegate ( ) . cancel ( ) ; \n - } \n - \n @ override \n public void cancel ( @ nullable String message , @ nullable Throwable cause ) { \n delegate ( ) . cancel ( message , cause ) ;", "msg_token": "Delete the old ClientCall cancel"} {"diff": " class RelationshipTypeHolder \n } \n catch ( Throwable t ) \n { \n + t . printStackTrace ( ) ; \n try \n { \n transactionManager . rollback ( ) ; \n } \n catch ( Throwable tt ) \n { \n + tt . printStackTrace ( ) ; \n } \n } \n finally", "msg_token": "Dump rel type creation fail stacktrace"} {"diff": " final class SocketReceiveBufferPool { \n } \n \n ByteBuffer buf = ByteBuffer . allocateDirect ( normalizeCapacity ( size ) ) ; \n - buf . clear ( ) ; \n return buf ; \n }", "msg_token": "Remove not needed call of ByteBuffer clear"} {"diff": " public class RouteInfoWidgetsFactory { \n } \n } \n } \n - if ( r != null && r . distanceTo > NUMBER0 && r . directionInfo != null ) { \n + if ( r != null && r . distanceTo > NUMBER0 && r . directionInfo != null ) { \n turnType = r . directionInfo . getTurnType ( ) ; \n turnImminent = r . imminent ; \n nextTurnDistance = r . distanceTo ;", "msg_token": "remove old typo"} {"diff": " public class AnvilText extends HText { \n int dstHeight = ( int ) ( smoke . getHeight ( ) * FLOAT0 / smoke . getWidth ( ) * dstWidth ) ; \n smokes [ i ] = Bitmap . createScaledBitmap ( smoke , dstWidth , dstHeight , false ) ; \n smoke . recycle ( ) ; \n + System . gc ( ) ; \n } \n }", "msg_token": "fix the OOM exception"} {"diff": " public class DataFlowInspection extends DataFlowInspectionBase { \n } ) ; \n \n myReportNullArguments = new JCheckBox ( STRING0 ) ; \n - myTreatUnknownMembersAsNullable . setSelected ( REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER ) ; \n - myTreatUnknownMembersAsNullable . getModel ( ) . addChangeListener ( new ChangeListener ( ) { \n + myReportNullArguments . setSelected ( REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER ) ; \n + myReportNullArguments . getModel ( ) . addChangeListener ( new ChangeListener ( ) { \n @ override \n public void stateChanged ( ChangeEvent e ) { \n - REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER = myTreatUnknownMembersAsNullable . isSelected ( ) ; \n + REPORT_NULLS_PASSED_TO_NOT_NULL_PARAMETER = myReportNullArguments . isSelected ( ) ; \n } \n } ) ;", "msg_token": "Cannot re enable option"} {"diff": " mTabHost . addTab ( TAB_TAG_1 , STRING0 , STRING1 ) ; \n mLocalActivityManager = activityGroup ; \n } \n \n - \n - @ override \n - protected void onAttachedToWindow ( ) { \n - super . onAttachedToWindow ( ) ; \n - final ViewTreeObserver treeObserver = getViewTreeObserver ( ) ; \n - treeObserver . addOnTouchModeChangeListener ( this ) ; \n - } \n - \n @ override \n - protected void onDetachedFromWindow ( ) { \n - super . onDetachedFromWindow ( ) ; \n - final ViewTreeObserver treeObserver = getViewTreeObserver ( ) ; \n - treeObserver . removeOnTouchModeChangeListener ( this ) ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n public void onTouchModeChanged ( boolean isInTouchMode ) { \n - if ( ! isInTouchMode ) { \n - SINGLE \n - SINGLE \n - if ( mCurrentView != null && ( ! mCurrentView . hasFocus ( ) || mCurrentView . isFocused ( ) ) ) { \n - mTabWidget . getChildTabViewAt ( mCurrentTab ) . requestFocus ( ) ; \n - } \n - } \n + SINGLE \n } \n \n COMMENT", "msg_token": "Fix TabHost stealing focus on hardware keyboard keypress"} {"diff": " import NAMESPACE ; \n public abstract class OCommandExecutorSQLResultsetAbstract extends OCommandExecutorSQLAbstract implements Iterator < OIdentifiable > , \n Iterable < OIdentifiable > { \n protected static final String KEYWORD_FROM_2FIND = STRING0 + KEYWORD_FROM + STRING0 ; \n + protected static final String KEYWORD_LET_2FIND = STRING0 + KEYWORD_LET + STRING0 ; \n \n protected OSQLAsynchQuery < ORecordSchemaAware < ? > > request ; \n protected OSQLTarget parsedTarget ; \n public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr \n return - NUMBER0 ; \n \n int upperBound = OStringSerializerHelper . getLowerIndexOf ( parserTextUpperCase , parserGetCurrentPosition ( ) , KEYWORD_FROM_2FIND , \n - KEYWORD_LET ) ; \n + KEYWORD_LET_2FIND ) ; \n if ( upperBound == - NUMBER0 ) \n SINGLE \n upperBound = parserText . length ( ) - NUMBER0 ;", "msg_token": "Fixed bug on SQL parser"} {"diff": " public class HibernateMappedClassTests extends \n InvokerHelper . invokeMethod ( hmc , STRING0 , new Object [ NUMBER0 ] ) ; \n String className = hmc . getClass ( ) . getName ( ) ; \n hmc = null ; \n - \n - hmc = ( HibernateMappedClass ) InvokerHelper . invokeStaticMethod ( className , STRING1 , new Object [ ] { new Integer ( NUMBER1 ) } ) ; \n + \n + hmc = ( HibernateMappedClass ) InvokerHelper . invokeStaticMethod ( hmc . getClass ( ) , STRING1 , new Object [ ] { new Integer ( NUMBER1 ) } ) ; \n + \n assertEquals ( STRING2 , hmc . getMyProp ( ) ) ; \n } \n }", "msg_token": "upgraded Groovy jar to latest build fixing compatabilities"} {"diff": " public class $ { name } Component extends UriEndpointComponent { \n try { \n apiName = $ { name } ApiName . fromValue ( apiNameStr ) ; \n } catch ( IllegalArgumentException e ) { \n - throw new CamelException ( STRING0 + apiNameStr + \n + throw new CamelException ( STRING1 + remaining + \n STRING2 + collection . getApiNames ( ) ) ; \n }", "msg_token": "Fixed error message on invalid endpoint URI"} {"diff": " public class EntityDamageEvent extends EntityEvent implements Cancellable { \n COMMENT \n FIRE_TICK , \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + MELTING , \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added new MELTING DamageCause"} {"diff": " public class DefaultMessage extends MessageSupport { \n } \n \n public boolean hasHeaders ( ) { \n + if ( ! hasPopulatedHeaders ( ) ) { \n + SINGLE \n + getHeaders ( ) ; \n + } \n return headers != null && ! headers . isEmpty ( ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class FileRouteToJmsToFileTest extends CamelTestSupport { \n @ test \n public void testRouteFileToFile ( ) throws Exception { \n deleteDirectory ( STRING0 ) ; \n + \n MockEndpoint mock = getMockEndpoint ( STRING1 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n \n template . sendBodyAndHeader ( STRING2 , STRING3 , Exchange . FILE_NAME , STRING4 ) ; \n \n assertMockEndpointsSatisfied ( ) ; \n - Thread . sleep ( NUMBER1 ) ; \n + \n + SINGLE \n + Thread . sleep ( NUMBER2 ) ; \n \n File file = new File ( STRING5 ) ; \n file = file . getAbsoluteFile ( ) ;", "msg_token": "Fixed unit tests reported by hudson"} {"diff": " public abstract class AbsListView extends AdapterView < ListAdapter > implements Te \n final int lastPos = firstPos + getChildCount ( ) - NUMBER0 ; \n \n int viewTravelCount = NUMBER1 ; \n - if ( position < firstPos ) { \n + if ( position <= firstPos ) { \n final int boundPosFromLast = lastPos - boundPosition ; \n if ( boundPosFromLast < NUMBER0 ) { \n SINGLE \n public abstract class AbsListView extends AdapterView < ListAdapter > implements Te \n viewTravelCount = posTravel ; \n mMode = MOVE_UP_POS ; \n } \n - } else if ( position > lastPos ) { \n + } else if ( position >= lastPos ) { \n final int boundPosFromFirst = boundPosition - firstPos ; \n if ( boundPosFromFirst < NUMBER0 ) { \n SINGLE", "msg_token": "Fix bug with AbsListView position scrolling"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ViewerTab extends DelayLoadWorkbenchTab < ViewerPresenter > \n { \n public abstract static class Shim \n extends DelayLoadTabShim < ViewerPresenter , ViewerTab > \n - implements ViewerNavigateEvent . Handler { } \n + implements ViewerNavigateEvent . Handler , \n + ShinyApplicationStatusEvent . Handler { } \n \n @ inject \n public ViewerTab ( Shim shim , Session session , EventBus eventBus ) \n public class ViewerTab extends DelayLoadWorkbenchTab < ViewerPresenter > \n session_ = session ; \n \n eventBus . addHandler ( ViewerNavigateEvent . TYPE , shim ) ; \n + eventBus . addHandler ( ShinyApplicationStatusEvent . TYPE , shim ) ; \n + \n } \n \n @ suppresswarnings ( STRING0 )", "msg_token": "Handle shiny application status event in shim"} {"diff": " public class WeldJoint extends Joint { \n } \n \n public float getReferenceAngle ( ) { \n - return NUMBER0 ; \n + return joint . getReferenceAngle ( ) ; \n } \n + \n + public float getFrequency ( ) { \n + return joint . getFrequency ( ) ; \n + } \n + \n + public void setFrequency ( float frequencyHz ) { \n + joint . setFrequency ( frequencyHz ) ; \n + } \n + \n + public float getDampingRatio ( ) { \n + return joint . getDampingRatio ( ) ; \n + } \n + \n + public void setDampingRatio ( float dampingRatio ) { \n + joint . setDampingRatio ( dampingRatio ) ; \n + } \n + \n }", "msg_token": "added missing methods to GWT WeldJoint"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n final class PlatformInternal { \n Field unsafeField = Unsafe . class . getDeclaredField ( STRING0 ) ; \n unsafeField . setAccessible ( true ) ; \n unsafe = ( Unsafe ) unsafeField . get ( null ) ; \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - try { \n - if ( unsafe != null ) { \n - unsafe . getClass ( ) . getDeclaredMethod ( \n - STRING1 , Object . class , long . class , Object . class , long . class , long . class ) ; \n - } \n - } \n - catch ( NoSuchMethodError | NoSuchMethodException ex ) { \n - throw ex ; \n - } \n } \n catch ( Throwable cause ) { \n SINGLE", "msg_token": "Removing copyMemory detection as we are not using it yet"} {"diff": " public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public void setDefaultPersistenceUnitRootLocation ( String defaultPersistenceUnitRootLocation ) { \n + public void setPersistenceUnitRootLocation ( String defaultPersistenceUnitRootLocation ) { \n this . internalPersistenceUnitManager . setDefaultPersistenceUnitRootLocation ( defaultPersistenceUnitRootLocation ) ; \n } \n \n public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class LocalContainerEntityManagerFactoryBean extends AbstractEntityManage \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultPersistenceUnitManager \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setSharedCacheMode ( SharedCacheMode sharedCacheMode ) { \n public class DefaultPersistenceUnitManager \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setValidationMode ( ValidationMode validationMode ) {", "msg_token": "Renamed setDefaultPersistenceUnitRootLocation to setPersistenceUnitRootLocation"} {"diff": " public class PrepareLocalWorld implements LoadProcess { \n if ( spawningPlayer ) { \n spawnZoneEntity = entityManager . create ( ) ; \n spawnZoneEntity . addComponent ( new LocationComponent ( new Vector3f ( Chunk . SIZE_X / NUMBER0 , Chunk . SIZE_Y / NUMBER0 , Chunk . SIZE_Z / NUMBER0 ) ) ) ; \n - worldRenderer . getChunkProvider ( ) . addRegionEntity ( spawnZoneEntity , NUMBER1 ) ; \n + worldRenderer . getChunkProvider ( ) . addRegionEntity ( spawnZoneEntity , NUMBER2 ) ; \n targetPos = Vector3i . zero ( ) ; \n } else { \n CoreRegistry . get ( LocalPlayer . class ) . setEntity ( iterator . next ( ) ) ;", "msg_token": "Fixed issue with PrepareLocalWorld not pulling in enough of the world around the spawn chunk"} {"diff": " public class AssetManager implements Disposable { \n } \n \n COMMENT \n - public synchronized String getDiagonistics ( ) { \n + public synchronized String getDiagnostics ( ) { \n StringBuffer buffer = new StringBuffer ( ) ; \n for ( String fileName : assetTypes . keys ( ) ) { \n buffer . append ( fileName ) ; \n public class AssetManagerTest extends GdxTest implements AssetErrorListener { \n Gdx . gl . glClear ( GL10 . GL_COLOR_BUFFER_BIT ) ; \n boolean result = manager . update ( ) ; \n if ( result & ! diagnosed ) { \n - Gdx . app . log ( STRING0 , STRING1 + manager . getDiagonistics ( ) + STRING1 + Texture . getManagedStatus ( ) ) ; \n + Gdx . app . log ( STRING0 , STRING1 + manager . getDiagnostics ( ) + STRING1 + Texture . getManagedStatus ( ) ) ; \n diagnosed = false ; \n SINGLE \n SINGLE", "msg_token": "fixed AssetManager getDiagnostics"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class GrailsViewResolver extends InternalResourceViewResolver { \n - private String localSuffix ; \n private String localPrefix ; \n private static final String GSP_SUFFIX = STRING0 ; \n private Map resolvedCache = new HashMap ( ) ; \n public class GrailsViewResolver extends InternalResourceViewResolver { \n \n public void setSuffix ( String suffix ) { \n super . setSuffix ( suffix ) ; \n - this . localSuffix = suffix ; \n } \n \n protected View loadView ( String viewName , Locale locale ) throws Exception { \n public class GrailsViewResolver extends InternalResourceViewResolver { \n view . afterPropertiesSet ( ) ; \n return view ; \n } \n - \n - private String localUrlForView ( String viewName ) { \n - return null ; \n - } \n }", "msg_token": "cleaned up imports removed unused method"} {"diff": " public class Classifier { \n COMMENT \n public void merge ( Cost otherCost ) { \n this . cost += otherCost . getCost ( ) ; \n + this . percentCorrect += otherCost . getPercentCorrect ( ) ; \n \n addInPlace ( gradW1 , otherCost . getGradW1 ( ) ) ; \n addInPlace ( gradb1 , otherCost . getGradb1 ( ) ) ;", "msg_token": "Properly merge Cost percentCorrect"} {"diff": " public class CleaningJavaCompiler extends CleaningJavaCompilerSupport < JavaCompil \n } \n \n protected StaleClassCleaner createCleaner ( JavaCompileSpec spec ) { \n + SINGLE \n + SINGLE \n if ( spec . getCompileOptions ( ) . isUseDepend ( ) ) { \n AntDependsStaleClassCleaner cleaner = new AntDependsStaleClassCleaner ( antBuilderFactory , spec . getCompileOptions ( ) ) ; \n cleaner . setDependencyCacheDir ( spec . getDependencyCacheDir ( ) ) ; \n public class CompileOptions extends AbstractOptions { \n \n private ForkOptions forkOptions = new ForkOptions ( ) ; \n \n - private boolean useDepend ; SINGLE \n + private boolean useDepend ; \n \n private DependOptions dependOptions = new DependOptions ( ) ;", "msg_token": "Documented useDepend problem"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Iterator characteristics row fixed"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix stupid IDEA refactoring of imports"} {"diff": " public class TachyonFileAppender extends FileAppender { \n } \n \n private String getNewLogFileName ( String fileName ) { \n - if ( fileName != null ) { \n + if ( ! fileName . isEmpty ( ) ) { \n String newFileName = STRING0 ; \n int dotIndex = fileName . indexOf ( STRING1 ) ; \n if ( dotIndex != - NUMBER0 && fileName . indexOf ( STRING2 ) == - NUMBER0 ) { \n public class TachyonFileAppender extends FileAppender { \n mLastDate = CommonUtils . convertMsToSimpleDate ( System . currentTimeMillis ( ) ) ; \n mCurrentFileName = newFileName ; \n return newFileName ; \n + } else { \n + throw new RuntimeException ( STRING3 ) ; \n } \n - return null ; \n } \n \n private void rotateLogs ( String fileName ) {", "msg_token": "throw exception when there is a empty log path"} {"diff": " public class HistogramIterationListener implements IterationListener { \n SINGLE \n \n \n - int idx = indexFromString ( newName ) ; \n + int idx = indexFromString ( param ) ; \n if ( idx >= meanMagHistoryUpdates . size ( ) ) { \n SINGLE \n meanMagHistoryUpdates . add ( new LinkedHashMap < String , List < Double > > ( ) ) ; \n - idx = indexFromString ( newName ) ; \n } \n \n \n public class HistogramIterationListener implements IterationListener { \n newParams . put ( newName , histogram . getData ( ) ) ; \n SINGLE \n \n - int idx = indexFromString ( newName ) ; \n + int idx = indexFromString ( param ) ; \n if ( idx >= meanMagHistoryParams . size ( ) ) { \n SINGLE \n meanMagHistoryParams . add ( new LinkedHashMap < String , List < Double > > ( ) ) ; \n - idx = indexFromString ( newName ) ; \n } \n \n Map < String , List < Double > > map = meanMagHistoryParams . get ( idx ) ;", "msg_token": "Fix indexing on histogram mean magnitudes calculation"} {"diff": " public class BrowserContract { \n COMMENT \n COMMENT \n public static final String ACCOUNT_TYPE = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String ROOT_ID = STRING1 ; \n } \n \n COMMENT", "msg_token": "Add ROOT_ID to Accounts column"} {"diff": " public class GraphDatabaseConfiguration { \n \n public static final ConfigOption < Boolean > ALLOW_SETTING_VERTEX_ID = new ConfigOption < Boolean > ( GRAPH_NS , STRING0 , \n STRING1 + \n - STRING2 + \n - STRING3 , \n + STRING4 + \n + STRING3 , \n ConfigOption . Type . FIXED , false ) ; \n \n public static final ConfigOption < Timestamps > TIMESTAMP_PROVIDER = new ConfigOption < Timestamps > ( GRAPH_NS , STRING5 ,", "msg_token": "Fix whitespace in graph set vertex id description"} {"diff": " import NAMESPACE ; \n public class OperationResult implements Parcelable { \n public final int resultCode ; \n public final IBinder token ; \n + public final long operationHandle ; \n public final int inputConsumed ; \n public final byte [ ] output ; \n \n public class OperationResult implements Parcelable { \n protected OperationResult ( Parcel in ) { \n resultCode = in . readInt ( ) ; \n token = in . readStrongBinder ( ) ; \n + operationHandle = in . readLong ( ) ; \n inputConsumed = in . readInt ( ) ; \n output = in . createByteArray ( ) ; \n } \n public class OperationResult implements Parcelable { \n public void writeToParcel ( Parcel out , int flags ) { \n out . writeInt ( resultCode ) ; \n out . writeStrongBinder ( token ) ; \n + out . writeLong ( operationHandle ) ; \n out . writeInt ( inputConsumed ) ; \n out . writeByteArray ( output ) ; \n }", "msg_token": "Include operation handle in OperationResult"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ConfigFileApplicationListener implements EnvironmentPostProcessor , \n msg . append ( STRING0 ) ; \n } \n msg . append ( STRING1 ) ; \n - msg . append ( STRING2 ) . append ( location ) . append ( STRING2 ) ; \n + String resourceDescription ; \n + try { \n + resourceDescription = String . format ( STRING3 , \n + resource . getURI ( ) . toASCIIString ( ) , location ) ; \n + } \n + catch ( IOException ex ) { \n + resourceDescription = String . format ( STRING4 , location ) ; \n + } \n + msg . append ( resourceDescription ) ; \n if ( StringUtils . hasLength ( profile ) ) { \n msg . append ( STRING5 ) . append ( profile ) ; \n }", "msg_token": "Improve location diagnostics in ConfigFileApplicationListener"} {"diff": " public class TestDateTimeFormat extends TestCase { \n } catch ( IllegalArgumentException ex ) { } \n } \n \n + public void testFormat_samples ( ) { \n + DateTime dt = new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , UTC ) ; \n + DateTimeFormatter f = DateTimeFormat . forPattern ( STRING0 ) ; \n + assertEquals ( STRING1 , f . print ( dt ) ) ; \n + } \n + \n }", "msg_token": "Add more tests"} {"diff": " public class SettingsActivity extends PreferenceActivity { \n setContentView ( R . layout . activity_settings ) ; \n setTitle ( R . string . title_settings ) ; \n \n + SINGLE \n + SINGLE \n getActionBar ( ) . setDisplayHomeAsUpEnabled ( true ) ; \n + View view = Util . getActionBarUpView ( this ) ; \n + if ( view != null ) { \n + view . setVisibility ( View . GONE ) ; \n + } \n } \n \n @ override \n public class SettingsActivity extends PreferenceActivity { \n } \n } \n \n - \n - \n void checkDefaultBrowser ( ) { \n \n PackageManager packageManager = getActivity ( ) . getPackageManager ( ) ;", "msg_token": "Fix appearance of Up button in Settings"} {"diff": " public class DirectoryFragment extends Fragment { \n } \n \n mRecView . setLayoutManager ( layout ) ; \n + SINGLE \n + SINGLE \n + mSelectionManager . handleLayoutChanged ( ) ; \n SINGLE \n mThumbSize = new Point ( thumbSize , thumbSize ) ; \n } \n public final class MultiSelectManager { \n notifySelectionChanged ( ) ; \n } \n \n + public void handleLayoutChanged ( ) { \n + mBandSelectManager . handleLayoutChanged ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public final class MultiSelectManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void handleLayoutChanged ( ) { \n + mModel . removeOnSelectionChangedListener ( this ) ; \n + mModel . stopListening ( ) ; \n + \n + mModel = new BandSelectModel ( ( RuntimeRecyclerViewHelper ) mHelper ) ; \n + mModel . addOnSelectionChangedListener ( this ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add handling for layout changes"} {"diff": " public class NamespaceComparator { \n FileUtil . writeToFile ( txtFile , serialized ) ; \n Assert . fail ( STRING0 + txtFile ) ; \n } \n - String expected = FileUtil . loadFile ( txtFile ) ; \n + String expected = FileUtil . loadFile ( txtFile , true ) ; \n \n SINGLE \n Assert . assertEquals ( expected , serialized ) ;", "msg_token": "Fix line separators in expected string"} {"diff": " public final class RealmObjectSchema { \n FieldMetaData metadata = SUPPORTED_SIMPLE_FIELDS . get ( fieldType ) ; \n if ( metadata == null ) { \n if ( SUPPORTED_LINKED_FIELDS . containsKey ( fieldType ) ) { \n - throw new IllegalArgumentException ( STRING0 + fieldName ) ; \n + throw new IllegalArgumentException ( STRING1 + fieldName ) ; \n } else { \n throw new IllegalArgumentException ( String . format ( STRING2 , \n fieldName , fieldType ) ) ;", "msg_token": "Fixed wrong method name in exception"} {"diff": " public class DeepLearningAutoEncoderTest extends TestUtil { \n \n SINGLE \n mymodel . delete ( ) ; \n + frame . add ( STRING0 , resp ) ; \n frame . delete ( ) ; \n p . delete ( ) ; \n l2_frame . delete ( ) ; \n public class DeepLearningAutoEncoderTest extends TestUtil { \n reconstructed . delete ( ) ; \n ( ( Frame ) DKV . get ( Key . make ( STRING1 ) ) . get ( ) ) . delete ( ) ; \n diff . delete ( ) ; \n - resp . remove ( null ) ; \n } \n }", "msg_token": "Fix memory leak"} {"diff": " public class HgMergeProvider implements MergeProvider { \n final VirtualFile repo = HgUtil . getHgRootOrThrow ( myProject , file ) ; \n final HgFile hgFile = new HgFile ( myProject , file ) ; \n \n - HgRevisionNumber serverRevisionNumber , baseRevisionNumber = null , localRevisionNumber ; \n + HgRevisionNumber serverRevisionNumber ; \n + HgRevisionNumber localRevisionNumber ; \n + HgRevisionNumber baseRevisionNumber = null ; \n SINGLE \n if ( wasFileCheckedIn ( repo , file ) ) { \n SINGLE \n public class HgMergeProvider implements MergeProvider { \n } \n } \n catch ( HgCommandException e ) { \n - new HgCommandResultNotifier ( myProject ) \n - . notifyError ( null , HgVcsMessages . message ( STRING0 ) , e . getMessage ( ) ) ; \n + throw new VcsException ( HgVcsMessages . message ( STRING0 ) , e ) ; \n } \n } else { \n SINGLE", "msg_token": "split declaration throw VCSException instead of HgCommandResultNotifier notidyError"} {"diff": " public class AntTypeDefImpl extends AntTaskImpl implements AntTypeDef { \n } \n \n public boolean typesLoaded ( ) { \n - return myClassesLoaded ; \n + return myClassesLoaded || ! isSupported ( ) ; \n } \n \n @ nullable \n public class AntTypeDefImpl extends AntTaskImpl implements AntTypeDef { \n return STRING0 . equals ( getSourceElement ( ) . getName ( ) ) ; \n } \n \n + private boolean isSupported ( ) { \n + return getSourceElement ( ) . findFirstSubTag ( STRING1 ) == null ; \n + } \n + \n private static PsiFile createDummyFile ( @ nonnls final String name , \n final LanguageFileType type , \n final CharSequence str ,", "msg_token": "don t highlight taskdefs which we are not supporting"} {"diff": " public class SQLSemanticProcessor { \n SINGLE \n FromItem fromItem = select . getFromItem ( ) ; \n String tableAlias = fromItem . getAlias ( ) == null ? null : fromItem . getAlias ( ) . getName ( ) ; \n + if ( tableAlias == null ) { \n + if ( fromItem instanceof Table ) { \n + tableAlias = ( ( Table ) fromItem ) . getName ( ) ; \n + } \n + } \n if ( filter . hasConditions ( ) ) { \n StringBuilder whereString = new StringBuilder ( ) ; \n SQLUtils . appendConditionString ( filter , dataSource , tableAlias , whereString , true ) ;", "msg_token": "Query filters apply fix"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n \n - public class SessionOutputMem { \n + public class SessionOutputUtil { \n \n private static Map < Long , SessionOutput > sessionOutputMap = new LinkedHashMap < Long , SessionOutput > ( ) ;", "msg_token": "added error msg if no systems selected"} {"diff": " public class Jsr299BindingsCreateInterceptor implements org . jboss . invocation . Int \n private final InjectedValue < InterceptorBindings > interceptorBindings = new InjectedValue < InterceptorBindings > ( ) ; \n private final String beanArchiveId ; \n private final String ejbName ; \n + private volatile BeanManagerImpl beanManager ; \n \n public Jsr299BindingsCreateInterceptor ( String beanArchiveId , String ejbName ) { \n this . beanArchiveId = beanArchiveId ; \n public class Jsr299BindingsCreateInterceptor implements org . jboss . invocation . Int \n \n @ override \n public Object processInvocation ( InterceptorContext interceptorContext ) throws Exception { \n - BeanManagerImpl beanManager = this . weldContainer . getValue ( ) . getBeanManager ( beanArchiveId ) ; \n + \n + BeanManagerImpl beanManager = this . beanManager ; \n + if ( beanManager == null ) { \n + SINGLE \n + beanManager = this . beanManager = this . weldContainer . getValue ( ) . getBeanManager ( beanArchiveId ) ; \n + } \n SINGLE \n SINGLE \n SessionBean < Object > bean = null ;", "msg_token": "Cache the bean manager in the bindings interceptor"} {"diff": " public class TimerTask < T extends TimerImpl > implements Runnable { \n \n SINGLE \n if ( ! timerService . shouldRun ( timer ) ) { \n - ROOT_LOGGER . debugf ( STRING0 , timer . getTimedObjectId ( ) ) ; \n + ROOT_LOGGER . debugf ( STRING1 , timer . getTimedObjectId ( ) ) ; \n timer . setNextTimeout ( calculateNextTimeout ( timer ) ) ; \n scheduleTimeoutIfRequired ( timer ) ; \n return ;", "msg_token": "change the debug message to reflect that the timer execution can be suppressed by configuration"} {"diff": " public class DiscourseFormat { \n SINGLE \n \n SINGLE \n - StringBuffer cf = new StringBuffer ( STRING0 ) ; \n + StringBuffer cf = new StringBuffer ( STRING1 ) ; \n \n int selStart = parent . getSelectionStart ( ) ; \n int selStop = parent . getSelectionEnd ( ) ; \n public class DiscourseFormat { \n appendFormattedLine ( cf , i ) ; \n } \n \n - cf . append ( STRING2 ) ; \n + cf . append ( STRING3 ) ; \n \n StringSelection formatted = new StringSelection ( cf . toString ( ) ) ; \n Clipboard clipboard = Toolkit . getDefaultToolkit ( ) . getSystemClipboard ( ) ;", "msg_token": "add back a little bit o space"} {"diff": " public class DummyTest extends ActivityInstrumentationTestCase2 < AIMSICD > { \n \n public void testSomething ( ) { \n try { Thread . sleep ( NUMBER0 ) ; } catch ( Exception e ) { } \n - assertEquals ( getActivity ( ) . getTitle ( ) , getActivity ( ) . getString ( R . string . app_name_short ) ) ; \n + assertTrue ( true ) ; \n } \n }", "msg_token": "removed assertion for title as it might fail on first launch e g in Travis CI"} {"diff": " public class AnnotationDescriptionAbstractPreparedExceptionTest { \n \n @ test ( expected = ClassNotFoundException . class ) \n public void testThrowWithoutClassLoader ( ) throws Exception { \n - new PseudoDescription ( ) . load ( ) ; \n + new PseudoDescription ( ) . loadSilent ( ) ; \n } \n \n @ test ( expected = ClassNotFoundException . class ) \n public void testThrowWithClassLoader ( ) throws Exception { \n - new PseudoDescription ( ) . load ( getClass ( ) . getClassLoader ( ) ) ; \n + new PseudoDescription ( ) . loadSilent ( getClass ( ) . getClassLoader ( ) ) ; \n } \n \n private static class PseudoDescription extends AnnotationDescription . AbstractAnnotationDescription . ForPrepared < Annotation > {", "msg_token": "Fixed minor test error"} {"diff": " class MCMPHandler implements HttpHandler { \n final InetSocketAddress addr = exchange . getDestinationAddress ( ) ; \n SINGLE \n if ( addr . getPort ( ) != config . getManagementPort ( ) || ! addr . getHostString ( ) . equals ( config . getManagementHost ( ) ) ) { \n + SINGLE \n + UndertowLogger . REQUEST_LOGGER . error ( STRING0 + addr . getPort ( ) + STRING1 + config . getManagementPort ( ) + STRING2 + addr . getHostString ( ) + STRING1 + config . getManagementHost ( ) ) ; \n next . handleRequest ( exchange ) ; \n return ; \n }", "msg_token": "Add temporary logging to debug CI issue"} {"diff": " public abstract class AbstractInterval implements ReadableInterval { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public boolean isEqual ( ReadableInterval other ) { \n return getStartMillis ( ) == other . getStartMillis ( ) &&", "msg_token": "Add since tag"} {"diff": " public class ResArrayValue extends ResBagValue implements ResXmlSerializable { \n } \n \n public String getType ( ) { \n + if ( mItems . length == NUMBER0 ) { \n + return null ; \n + } \n String type = mItems [ NUMBER0 ] . getType ( ) ; \n if ( ! STRING0 . equals ( type ) && ! STRING1 . equals ( type ) ) { \n return null ;", "msg_token": "added support for empty arrays"} {"diff": " public class HttpConnection implements Connection \n switch ( HttpMethods . CACHE . getOrdinal ( method ) ) \n { \n case HttpMethods . CONNECT_ORDINAL : \n - _uri . parseConnect ( uri . array ( ) , uri . getIndex ( ) , uri . length ( ) ) ; \n + SINGLE \n + _uri . parse ( STRING0 + uri + STRING1 ) ; \n break ; \n \n case HttpMethods . HEAD_ORDINAL :", "msg_token": "Improve handling of CONNECT method"} {"diff": " public abstract class ZuulFilter implements IZuulFilter , Comparable < ZuulFilter > \n } \n \n public int compareTo ( ZuulFilter filter ) { \n - return this . filterOrder ( ) - filter . filterOrder ( ) ; \n + return Integer . compare ( this . filterOrder ( ) , filter . filterOrder ( ) ) ; \n } \n \n public static class TestUnit {", "msg_token": "fixed integer overflow in compareTo"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n mHandler = new MyHandler ( handlerThread . getLooper ( ) ) ; \n \n SINGLE \n - String id = Settings . Secure . getString ( context . getContentResolver ( ) , \n - Settings . Secure . ANDROID_ID ) ; \n - if ( id != null && id . length ( ) > NUMBER0 ) { \n - String name = new String ( STRING0 ) . concat ( id ) ; \n - SystemProperties . set ( STRING1 , name ) ; \n + if ( TextUtils . isEmpty ( SystemProperties . get ( STRING1 ) ) ) { \n + String id = Settings . Secure . getString ( context . getContentResolver ( ) , \n + Settings . Secure . ANDROID_ID ) ; \n + if ( id != null && id . length ( ) > NUMBER0 ) { \n + String name = new String ( STRING0 ) . concat ( id ) ; \n + SystemProperties . set ( STRING1 , name ) ; \n + } \n } \n \n SINGLE", "msg_token": "Don t clobber the net hostname if it s already set"} {"diff": " public final class PayloadBuilder { \n return this ; \n } \n \n + public CustomAlertBuilder actionKey ( String actionKey ) { \n + if ( actionKey == null ) \n + actionKey = STRING0 ; \n + aps . put ( STRING1 , actionKey ) ; \n + return this ; \n + } \n + \n public CustomAlertBuilder localizedKey ( String key ) { \n aps . put ( STRING2 , key ) ; \n return this ;", "msg_token": "add action key custom alert support"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class Parameterized extends Suite {", "msg_token": "Use the same name as in the test"} {"diff": " public abstract class BaseTest < T extends ODatabase > { \n } \n } \n \n - if ( url . startsWith ( STRING0 ) ) { \n + if ( url . startsWith ( STRING0 ) && ! url . startsWith ( STRING1 ) ) { \n final ODatabaseDocumentTx db = new ODatabaseDocumentTx ( url ) ; \n if ( ! db . exists ( ) ) \n db . create ( ) . close ( ) ;", "msg_token": "add check for remote file clean in tests module"} {"diff": " public class OSMNode extends OSMWithTags { \n public boolean isMultiLevel ( ) { \n return hasTag ( STRING0 ) && STRING1 . equals ( getTag ( STRING0 ) ) ; \n } \n + \n + public boolean hasTrafficLight ( ) { \n + return hasTag ( STRING0 ) && STRING2 . equals ( getTag ( STRING0 ) ) ; \n + } \n \n }", "msg_token": "Add a method to check if an OSMNode has a traffic light"} {"diff": " public class ConvertProcessDefinitionPopupWindow extends PopupWindow implements \n \n URL explorerURL = ExplorerApp . get ( ) . getURL ( ) ; \n URL url = new URL ( explorerURL . getProtocol ( ) , explorerURL . getHost ( ) , explorerURL . getPort ( ) , \n - explorerURL . getPath ( ) . replace ( STRING0 , STRING1 ) + STRING2 + modelData . getId ( ) ) ; \n + explorerURL . getPath ( ) . replace ( STRING0 , STRING1 ) + STRING3 + modelData . getId ( ) ) ; \n ExplorerApp . get ( ) . getMainWindow ( ) . open ( new ExternalResource ( url ) ) ; \n } \n }", "msg_token": "Fix the redirected URL when converting deploy process to editable model"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class ColumnImpl implements Column { \n \n private final String column ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public class TableImpl implements Table { \n \n private final String table ;", "msg_token": "added SuppressWarnings to annotation implementations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GrailsScriptRunner { \n COMMENT \n public static void main ( String [ ] args ) { \n System . setProperty ( STRING0 , STRING1 ) ; \n - \n + ExpandoMetaClass . enableGlobally ( ) ; \n originalIn = System . in ; \n originalOut = System . out ;", "msg_token": "enable EMC as early as possible to prevent meta class inconsistencies"} {"diff": " public class TestBasicSemanticErrors extends BaseTest { \n STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING1 + \n STRING2 + ErrorType . TOKEN_NAMES_MUST_START_UPPER . code + STRING3 + \n STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING4 + \n - STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING5 + \n - STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING6 + \n + STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING7 + \n + STRING2 + ErrorType . REPEATED_PREQUEL . code + STRING8 + \n STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING9 + \n STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING10 + \n STRING0 + ErrorType . ILLEGAL_OPTION . code + STRING11 +", "msg_token": "Fix test failure due to change error message text"} {"diff": " public abstract class OStorageEmbedded extends OStorageAbstract { \n SINGLE \n break ; \n } catch ( Exception e ) { \n - OLogManager . instance ( ) . error ( this , STRING0 , recordToCheck . getIdentity ( ) , e ) ; \n + OLogManager . instance ( ) . error ( this , STRING1 , recordToCheck . getIdentity ( ) , e ) ; \n } \n } \n } finally {", "msg_token": "Improved error message"} {"diff": " public class InventoryGrid extends CoreWidget { \n SINGLE \n if ( numSlots < cells . size ( ) ) { \n for ( int i = cells . size ( ) ; i > numSlots && i > NUMBER0 ; -- i ) { \n - cells . remove ( i ) ; \n + cells . remove ( i - NUMBER1 ) ; \n } \n } else if ( numSlots > cells . size ( ) ) { \n for ( int i = cells . size ( ) ; i < numSlots && i < getMaxCellCount ( ) ; ++ i ) {", "msg_token": "cell remove fix"} {"diff": " public class OrcEncodedDataReader extends CallableWithNdc < Void > \n } \n \n if ( processStop ( ) ) { \n - cleanupReaders ( ) ; \n recordReaderTime ( startTime ) ; \n return null ; \n } \n public class OrcEncodedDataReader extends CallableWithNdc < Void > \n OrcBatchKey stripeKey = hasFileId ? new OrcBatchKey ( fileKey , - NUMBER0 , NUMBER1 ) : null ; \n for ( int stripeIxMod = NUMBER1 ; stripeIxMod < readState . length ; ++ stripeIxMod ) { \n if ( processStop ( ) ) { \n - cleanupReaders ( ) ; \n recordReaderTime ( startTime ) ; \n return null ; \n } \n public class OrcEncodedDataReader extends CallableWithNdc < Void > \n return null ; \n } \n if ( processStop ( ) ) { \n - cleanupReaders ( ) ; \n recordReaderTime ( startTime ) ; \n return null ; \n }", "msg_token": "remove useless cleanupReaders in OrcEncodedDataReader Fei Hui reviewed by Prasanth Jayachandran"} {"diff": " public class OnClickTest { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 , \n STRING4 , \n STRING5 , \n STRING6 , \n public class OnClickTest { \n . processedWith ( butterknifeProcessors ( ) ) \n . failsToCompile ( ) \n . withErrorContaining ( STRING7 ) \n - . in ( source ) . onLine ( NUMBER0 ) ; \n + . in ( source ) . onLine ( NUMBER1 ) ; \n } \n \n @ test public void failsIfPrivateMethod ( ) {", "msg_token": "Remove unused import in test"} {"diff": " public abstract class CustomParser extends Iced { \n \n public static class StreamData implements CustomParser . DataIn { \n final transient InputStream _is ; \n - private byte [ ] _bits0 = new byte [ NUMBER0 * NUMBER1 ] ; \n - private byte [ ] _bits1 = new byte [ NUMBER0 * NUMBER1 ] ; \n + private byte [ ] _bits0 = new byte [ NUMBER2 * NUMBER1 ] ; \n + private byte [ ] _bits1 = new byte [ NUMBER2 * NUMBER1 ] ; \n private int _cidx0 = - NUMBER3 , _cidx1 = - NUMBER3 ; SINGLE \n public StreamData ( InputStream is ) { _is = is ; } \n @ override public byte [ ] getChunkData ( int cidx ) {", "msg_token": "Increased buffer size when uncompressing during parse to avoid problems with a line not fitting into the combined buffer"} {"diff": " public class DebuggerSessionTab implements LogConsoleManager , DebuggerContentInf \n content . setActions ( consoleActions , ActionPlaces . DEBUGGER_TOOLBAR ) ; \n \n Content [ ] contents = myViewsContentManager . getContents ( ) ; \n + final Content [ ] selected = myViewsContentManager . getSelectedContents ( ) ; \n myViewsContentManager . removeAllContents ( ) ; \n \n myViewsContentManager . addContent ( content ) ; \n - for ( Content content1 : contents ) { \n - myViewsContentManager . addContent ( content1 ) ; \n + for ( Content each : contents ) { \n + myViewsContentManager . addContent ( each ) ; \n } \n + for ( Content each : selected ) { \n + myViewsContentManager . addSelectedContent ( each ) ; \n + } \n + \n \n if ( myConfiguration instanceof RunConfigurationBase && ! ( myConfiguration instanceof JUnitConfiguration ) ) { \n myManager . initLogConsoles ( ( RunConfigurationBase ) myConfiguration , myRunContentDescriptor . getProcessHandler ( ) ) ;", "msg_token": "debugger views update fix"} {"diff": " public abstract class SkylarkType implements Serializable { \n COMMENT \n COMMENT \n public static Object convertFromSkylark ( Object value ) { \n - if ( value instanceof SkylarkList ) { \n - return new ArrayList < > ( ( ( SkylarkList ) value ) . getList ( ) ) ; \n + if ( value instanceof MutableList ) { \n + return new ArrayList < > ( ( ( MutableList ) value ) . getList ( ) ) ; \n + } else if ( value instanceof Tuple ) { \n + return ( ( Tuple ) value ) . getImmutableList ( ) ; \n + } else { \n + return value ; \n } \n - return value ; \n } \n }", "msg_token": "When loading a Skylark list or tuple preserve the type in the BUILD file"} {"diff": " public class InodeRawTable extends InodeFolder { \n public InodeRawTable ( String name , int id , int parentId , int columns , List < Byte > metadata ) { \n super ( name , id , parentId , true ) ; \n COLUMNS = columns ; \n - METADATA = new ArrayList < Byte > ( metadata . size ( ) ) ; \n - for ( int k = NUMBER0 ; k < metadata . size ( ) ; k ++ ) { \n - METADATA . add ( metadata . get ( k ) ) ; \n + if ( metadata == null ) { \n + METADATA = new ArrayList < Byte > ( NUMBER0 ) ; \n + } else { \n + METADATA = new ArrayList < Byte > ( metadata . size ( ) ) ; \n + for ( int k = NUMBER0 ; k < metadata . size ( ) ; k ++ ) { \n + METADATA . add ( metadata . get ( k ) ) ; \n + } \n } \n }", "msg_token": "fix a null pointer bug"} {"diff": " public class NumberPicker extends LinearLayout implements OnClickListener , \n } \n \n private void validateCurrentView ( CharSequence str , boolean notifyChange ) { \n - int val = getSelectedPos ( str . toString ( ) ) ; \n - if ( ( val >= mStart ) && ( val <= mEnd ) ) { \n - mPrevious = mCurrent ; \n - mCurrent = val ; \n - if ( notifyChange ) \n - notifyChange ( mCurrent ) ; \n + if ( ! TextUtils . isEmpty ( str ) ) { \n + int val = getSelectedPos ( str . toString ( ) ) ; \n + if ( ( val >= mStart ) && ( val <= mEnd ) ) { \n + mPrevious = mCurrent ; \n + mCurrent = val ; \n + if ( notifyChange ) \n + notifyChange ( mCurrent ) ; \n + } \n } \n updateView ( ) ; \n }", "msg_token": "Fixed a bug in the number picker that could throw a numberformatexception"} {"diff": " public class SipMessageFactory \n \n String localDialogTag = dialog . getLocalTag ( ) ; \n \n + if ( localDialogTag == null || localDialogTag . length ( ) == NUMBER0 ) \n + { \n + SINGLE \n + return ; \n + } \n + \n ToHeader to = ( ToHeader ) response . getHeader ( ToHeader . NAME ) ; \n \n if ( to == null )", "msg_token": "Fixes a NullPointerExc in response creation"} {"diff": " public class IdentityInputFilter implements InputFilter { \n protected final ByteChunk endChunk = new ByteChunk ( ) ; \n \n \n - SINGLE \n - \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public long getContentLength ( ) { \n - return contentLength ; \n - } \n - \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public long getRemaining ( ) { \n - return remaining ; \n - } \n - \n - \n SINGLE \n \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " final public class MediaCodec { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int ERROR_NO_KEY = NUMBER0 ;", "msg_token": "Clarify wording of MediaCrypto exception ERROR_NO_KEY"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Version { \n COMMENT \n - public static final String VERSION = STRING0 ; \n + public static final String VERSION = STRING1 ; \n \n COMMENT \n public static final int MAJOR ;", "msg_token": "Updated to next development version"} {"diff": " public enum JavaVersion { \n } else if ( name . matches ( STRING0 ) ) { \n int number = Integer . parseInt ( name ) ; \n int index = number - NUMBER0 ; SINGLE \n - if ( index < values ( ) . length && values ( ) [ index ] . hasMajorVersion ) { \n + if ( index > NUMBER1 && index < values ( ) . length && values ( ) [ index ] . hasMajorVersion ) { \n return values ( ) [ index ] ; \n } \n }", "msg_token": "Fix JavaVersion for class descriptions"} {"diff": " public class HttpRequest { \n COMMENT \n COMMENT \n public HttpRequest progress ( final ProgressCallback callback ) { \n - if ( callback != null ) { \n + if ( callback == null ) \n + progress = NULL_PROGRESS_CALLBACK ; \n + else \n progress = callback ; \n - } \n return this ; \n }", "msg_token": "Set progress to NULL_PROGRESS_CALLBACK if callback is null"} {"diff": " public class GetIndexTemplatesRequest extends MasterNodeOperationRequest < GetInde \n if ( out . getVersion ( ) . onOrAfter ( Version . V_0_90_4 ) ) { \n out . writeStringArray ( names ) ; \n } else { \n - out . writeString ( names [ NUMBER0 ] ) ; \n + out . writeString ( names . length == NUMBER0 ? STRING0 : names [ NUMBER0 ] ) ; \n } \n } \n }", "msg_token": "Fix GetIndexTemlatesRequest if serialized with includeAll and a old ES version"} {"diff": " public abstract class Item < T extends Item > implements Comparable < T > { \n \n if ( out . getCursor ( ) != offset ) { \n throw new RuntimeException ( STRING0 + Integer . toHexString ( offset ) + \n - STRING1 + Integer . toHexString ( out . getCursor ( ) ) ) ; \n + STRING2 + Integer . toHexString ( out . getCursor ( ) ) ) ; \n } \n \n if ( out . annotates ( ) ) {", "msg_token": "Fixed space issue in exception text"} {"diff": " public class HiveSplit \n . put ( STRING0 , start ) \n . put ( STRING1 , length ) \n . put ( STRING2 , addresses ) \n + . put ( STRING3 , partitionId ) \n . build ( ) ; \n }", "msg_token": "Add partitionId to HiveSplit info object"} {"diff": " import NAMESPACE ; \n @ autovalue \n @ jsonautodetect \n public abstract class IndexRangeSummary { \n - @ jsonproperty ( STRING0 ) \n + @ jsonproperty ( STRING1 ) \n public abstract String indexName ( ) ; \n \n @ nullable @ jsonproperty ( STRING2 )", "msg_token": "Fix the JSON field name for IndexRangeSummary"} {"diff": " public class AsyncClientTest extends AbstractBasicTest { \n @ test \n public void multipleMaxConnectionOpenTest ( ) throws Throwable { \n AsyncHttpClientConfig cg = new AsyncHttpClientConfig . Builder ( ) . setKeepAlive ( true ) \n - . setConnectionTimeoutInMs ( NUMBER0 ) . setMaximumConnectionsTotal ( NUMBER1 ) . build ( ) ; \n + . setConnectionTimeoutInMs ( NUMBER2 ) . setMaximumConnectionsTotal ( NUMBER1 ) . build ( ) ; \n AsyncHttpClient c = new AsyncHttpClient ( cg ) ; \n \n String body = STRING0 ; \n public class BasicHttpsTest { \n httpResponse . getOutputStream ( ) . write ( bytes ) ; \n } \n \n - \n httpResponse . setStatus ( NUMBER3 ) ; \n httpResponse . getOutputStream ( ) . flush ( ) ; \n httpResponse . getOutputStream ( ) . close ( ) ;", "msg_token": "Fix the test which randomly fail on Hudson"} {"diff": " public class SearchEverywhereAction extends AnAction implements CustomComponentA \n } \n final AnActionEvent anActionEvent = new AnActionEvent ( event , \n DataManager . getInstance ( ) . getDataContext ( IdeFocusManager . findInstance ( ) . getFocusOwner ( ) ) , \n - ActionPlaces . UNKNOWN , \n + ActionPlaces . MAIN_MENU , \n action . getTemplatePresentation ( ) , \n actionManager , \n NUMBER0 ) ;", "msg_token": "change action place to Main Menu"} {"diff": " public class DataImportOptionsUiCsvLocale extends ModalDialog < DataImportOptionsC \n OperationWithInput < DataImportOptionsCsvLocale > operation , \n DataImportOptionsCsvLocale locale ) \n { \n - super ( STRING0 , operation ) ; \n + super ( STRING1 , operation ) ; \n widget_ = GWT . < Binder > create ( Binder . class ) . createAndBindUi ( this ) ; \n initialLocale_ = locale ; \n }", "msg_token": "rename csv import locale dialog to match other ui elements"} {"diff": " public class TomcatWebSocketHandler extends StreamInbound { \n private final AtmosphereRequest request ; \n private final AtmosphereFramework framework ; \n private WebSocket webSocket ; \n - private final int webSocketWriteTimeout ; \n \n public TomcatWebSocketHandler ( AtmosphereRequest request , AtmosphereFramework framework , WebSocketProcessor webSocketProcessor ) { \n this . request = request ; \n public class TomcatWebSocketHandler extends StreamInbound { \n \n String s = framework . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . WEBSOCKET_IDLETIME ) ; \n if ( s != null ) { \n - webSocketWriteTimeout = Integer . valueOf ( s ) ; \n - } else { \n - webSocketWriteTimeout = - NUMBER0 ; \n + logger . warn ( STRING0 ) ; \n } \n \n s = framework . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . WEBSOCKET_BUFFER_SIZE ) ;", "msg_token": "Tomcat doesn t support timeout"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class AbstractAttachable implements Attachable { \n \n - private final Map < AttachmentKey < ? > , Object > attachments = new IdentityHashMap < > ( NUMBER0 ) ; \n + private final Map < AttachmentKey < ? > , Object > attachments = new IdentityHashMap < > ( NUMBER1 ) ; \n \n COMMENT \n COMMENT", "msg_token": "Use more reasonable object size for attachments"} {"diff": " public abstract class GenericCheckInDialogFragment extends DialogFragment { \n COMMENT \n COMMENT \n COMMENT \n - String EPISODE_TVDB_ID = STRING0 ; \n + String EPISODE_TVDB_ID = STRING1 ; \n } \n \n public class CheckInDialogDismissedEvent {", "msg_token": "Fix episode check in using incorrect TheTVDB id"} {"diff": " class GlobalTypeInfo implements CompilerPass , TypeIRegistry { \n } else if ( defSite . isSetterDef ( ) ) { \n pname = JSType . createSetterPropName ( pname ) ; \n } \n - } else if ( jsdoc != null && jsdoc . containsFunctionDeclaration ( ) ) { \n + } else if ( jsdoc != null && jsdoc . containsFunctionDeclaration ( ) \n + SINGLE \n + && ! defSite . isStringKey ( ) ) { \n SINGLE \n methodType = computeFnDeclaredType ( jsdoc , pname , defSite , rawType , currentScope ) ; \n } \n public final class NewTypeInferenceTest extends NewTypeInferenceTestBase { \n STRING0 ) , \n GlobalTypeInfo . COULD_NOT_INFER_CONST_TYPE ) ; \n } \n + \n + public void testDontCrashWithPolymerJsdoc ( ) { \n + typeCheck ( LINE_JOINER . join ( \n + STRING1 , \n + STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 ) ) ; \n + } \n }", "msg_token": "NTI Fix crash when jsdoc is meant for object literal passed to Polymer"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AnnotationConfigApplicationContext extends GenericApplicationContex \n COMMENT \n COMMENT \n public void register ( Class < ? > . . . annotatedClasses ) { \n + Assert . notEmpty ( annotatedClasses , STRING0 ) ; \n this . reader . register ( annotatedClasses ) ; \n } \n \n public class AnnotationConfigApplicationContext extends GenericApplicationContex \n COMMENT \n COMMENT \n public void scan ( String . . . basePackages ) { \n + Assert . notEmpty ( basePackages , STRING1 ) ; \n this . scanner . scan ( basePackages ) ; \n }", "msg_token": "Prevent empty calls to ACAC register and scan"} {"diff": " public class EnterKeyScreen extends MainScreen implements AuthenticatorResource , \n \n private static final int MIN_KEY_BYTES = NUMBER0 ; \n \n + private static final boolean INTEGRITY_CHECK_ENABLED = false ; \n + \n private LabelField mDescriptionText ; \n private LabelField mStatusText ; \n private LabelField mVersionText ; \n public class EnterKeyScreen extends MainScreen implements AuthenticatorResource , \n mStatusColor = Color . BLACK ; \n return false ; \n } else { \n - String checkCode = CheckCodeScreen . getCheckCode ( mKeyEntryField \n - . getText ( ) ) ; \n - mStatusText . setText ( STRING0 + checkCode ) ; \n - mStatusColor = Color . GREEN ; \n + if ( INTEGRITY_CHECK_ENABLED ) { \n + String checkCode = CheckCodeScreen . getCheckCode ( mKeyEntryField . getText ( ) ) ; \n + mStatusText . setText ( STRING0 + checkCode ) ; \n + mStatusColor = Color . GREEN ; \n + } else { \n + mStatusText . setText ( STRING1 ) ; \n + } \n return true ; \n } \n } catch ( Base32String . DecodingException e ) {", "msg_token": "Hide integrity check"} {"diff": " public class MoonCalc { \n } \n \n double moonJd = Math . floor ( DateTimeUtils . midnightDateToJulianDate ( calendar ) ) - FLOAT0 ; \n - moonJd -= ( ( calendar . getTimeZone ( ) . getRawOffset ( ) + calendar . getTimeZone ( ) . getDSTSavings ( ) ) / FLOAT1 ) / FLOAT2 ; \n + moonJd -= ( ( calendar . get ( Calendar . ZONE_OFFSET ) + calendar . get ( Calendar . DST_OFFSET ) ) / FLOAT1 ) / FLOAT2 ; \n \n double sphi = SN ( phi ) ; \n double cphi = CS ( phi ) ;", "msg_token": "Fixed daylight saving offset for moon rise set"} {"diff": " public abstract class AbstractBidirAlgo extends AbstractRoutingAlgorithm \n return extractPath ( ) ; \n } \n \n - void runAlgo ( ) \n + protected void runAlgo ( ) \n { \n while ( ! finished ( ) ) \n { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "made algo runAlgo public"} {"diff": " public class BooksIntegrationTest { \n \n @ afterclass \n public static void tearDown ( ) { \n - Spark . clearRoutes ( ) ; \n Spark . stop ( ) ; \n }", "msg_token": "remove undefined methodcall in AfterClass"} {"diff": " public class MainActivity extends Activity { \n GuidedStepFragment . add ( getFragmentManager ( ) , mGuidedStepFragment ) ; \n } \n \n - private static class StepFragment extends GuidedStepFragment { \n + public static class StepFragment extends GuidedStepFragment { \n @ override \n public Guidance onCreateGuidance ( Bundle savedInstanceState ) { \n String title = getString ( R . string . main_title ) ;", "msg_token": "Make StepFragment public"} {"diff": " public class TraceSupportTest extends JerseyTest { \n return App . create ( ) ; \n } \n private String [ ] expectedFragmentsProgrammatic = new String [ ] { \n - STRING0 \n + STRING1 + this . getPort ( ) + STRING2 \n } ; \n private String [ ] expectedFragmentsAnnotated = new String [ ] { \n - STRING3 \n + STRING1 + this . getPort ( ) + STRING4 \n } ; \n \n private Target prepareTarget ( String path ) {", "msg_token": "Fixed TraceSupportTest to not use hard coded port"} {"diff": " import NAMESPACE ; \n public class AttributeColumnImpl implements AttributeColumn { \n \n protected final AttributeTableImpl table ; \n - protected final int index ; \n + protected int index ; \n protected final String id ; \n protected final String title ; \n protected final AttributeType type ; \n public class AttributeTableImpl implements AttributeTable { \n } \n \n public synchronized void removeColumn ( AttributeColumn column ) { \n + int index = columns . indexOf ( column ) ; \n + if ( index == - NUMBER0 ) { \n + return ; \n + } \n + \n + SINGLE \n + AttributeColumnImpl c ; \n + for ( index = index + NUMBER0 ; index < columns . size ( ) ; index ++ ) { \n + c = columns . get ( index ) ; \n + c . index -- ; \n + } \n SINGLE \n columns . remove ( ( AttributeColumnImpl ) column ) ; \n columnsMap . remove ( column . getId ( ) ) ;", "msg_token": "Fix bug in attributes API when deleting a column"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class ImageResizer { \n - private static final int TEMP_BYTES_SIZE = NUMBER0 * NUMBER1 ; SINGLE \n - private static final int MARK_POSITION = NUMBER1 * NUMBER1 ; SINGLE \n + private static final int TEMP_BYTES_SIZE = NUMBER2 * NUMBER1 ; SINGLE \n + private static final int MARK_POSITION = TEMP_BYTES_SIZE ; SINGLE \n private static final boolean CAN_RECYCLE = Build . VERSION . SDK_INT >= NUMBER3 ; \n private final Queue < byte [ ] > tempQueue = new LinkedList < byte [ ] > ( ) ; \n private final BitmapPool bitmapPool ;", "msg_token": "Fix mark position causing gcs"} {"diff": " public class ClipboardModule extends ReactContextBaseJavaModule { \n @ suppresslint ( STRING0 ) \n @ reactmethod \n public void setString ( String text ) { \n - ReactApplicationContext reactContext = getReactApplicationContext ( ) ; \n if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { \n ClipData clipdata = ClipData . newPlainText ( null , text ) ; \n ClipboardManager clipboard = getClipboardService ( ) ;", "msg_token": "Remove unused ApplicationContext fetch"} {"diff": " public class PrivacyList implements Cacheable , Externalizable { \n \n public void writeExternal ( ObjectOutput out ) throws IOException { \n ExternalizableUtil . getInstance ( ) . writeSafeUTF ( out , userJID . toString ( ) ) ; \n + ExternalizableUtil . getInstance ( ) . writeSafeUTF ( out , name ) ; \n ExternalizableUtil . getInstance ( ) . writeBoolean ( out , isDefault ) ; \n ExternalizableUtil . getInstance ( ) . writeSafeUTF ( out , asElement ( ) . asXML ( ) ) ; \n } \n \n public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { \n userJID = new JID ( ExternalizableUtil . getInstance ( ) . readSafeUTF ( in ) ) ; \n + name = ExternalizableUtil . getInstance ( ) . readSafeUTF ( in ) ; \n isDefault = ExternalizableUtil . getInstance ( ) . readBoolean ( in ) ; \n String xml = ExternalizableUtil . getInstance ( ) . readSafeUTF ( in ) ; \n try {", "msg_token": "Include name attribute when persisting privacy lists"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class GitRebaseProblemDetector extends GitLineHandlerAdapter { \n - private final static String [ ] REBASE_CONFLICT_INDICATORS = { STRING0 , STRING1 } ; \n + private final static String [ ] REBASE_CONFLICT_INDICATORS = { \n + STRING0 , \n + STRING1 , \n + STRING2 } ; \n private static final String REBASE_NO_CHANGE_INDICATOR = STRING3 ; \n \n private AtomicBoolean mergeConflict = new AtomicBoolean ( false ) ;", "msg_token": "detect rename rename conflict"} {"diff": " public class Tag { \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 \n } ; \n private static final String [ ] formSubmitTags = { \n - STRING0 , STRING2 , STRING3 , STRING4 , STRING6 , STRING7 \n + STRING2 , STRING3 , STRING4 , STRING6 , STRING7 \n } ; \n \n static {", "msg_token": "Don t auto submit buttons"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final class ContactsContract { \n COMMENT \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class SocialContract { \n COMMENT", "msg_token": "Making sure non public API is marked with hide"} {"diff": " public class CoreRegistryTest { \n } \n \n \n - private class ContextImplementation implements Context { \n + private static class ContextImplementation implements Context { \n private final Map < Class < ? > , Object > map = Maps . newConcurrentMap ( ) ; \n \n @ override", "msg_token": "Fix FindBugs warning"} {"diff": " public class WXListComponent extends WXVContainer implements \n IRecyclerAdapterListener < ListBaseViewHolder > , IOnLoadMoreListener { \n \n private String TAG = STRING0 ; \n - private ArrayList < Integer > mFakeCells ; \n private int listCellCount = NUMBER0 ; \n private WXRefresh mRefresh ; \n private WXLoading mLoading ;", "msg_token": "android remove unused object"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class MonitorServiceRepresentation implements Representation", "msg_token": "Tidying up unused imports"} {"diff": " public class DependencyManager implements InstallShinyEvent . Handler \n STRING0 , \n userPrompt , \n new Dependency [ ] { \n - Dependency . cranPackage ( STRING1 , STRING2 ) , \n + Dependency . cranPackage ( STRING1 , STRING3 ) , \n Dependency . cranPackage ( STRING4 , STRING5 ) , \n - Dependency . cranPackage ( STRING6 , STRING7 ) , \n + Dependency . cranPackage ( STRING8 , STRING9 ) , \n + Dependency . cranPackage ( STRING10 , STRING11 ) , \n Dependency . cranPackage ( STRING12 , STRING13 ) , \n Dependency . cranPackage ( STRING14 , STRING15 ) , \n - Dependency . cranPackage ( STRING16 , STRING17 ) , \n - Dependency . cranPackage ( STRING18 , STRING19 , true ) \n + Dependency . cranPackage ( STRING16 , STRING20 ) , \n + Dependency . cranPackage ( STRING21 , STRING22 ) , \n + Dependency . cranPackage ( STRING18 , STRING23 , true ) \n } , \n true , \n command", "msg_token": "update version requirements for shiny and related dependencies"} {"diff": " public class IntPairComparator extends TypeComparator < IntPair > \n \n @ override \n public int hash ( IntPair object ) { \n - return object . getKey ( ) ; \n + return object . getKey ( ) * NUMBER0 ; \n } \n \n @ override", "msg_token": "Fixed hash join tests with after salting hashes"} {"diff": " public class FPSLogger extends AverageFPSCounter { \n \n @ override \n public void onUpdate ( final float pSecondsElapsed ) { \n + super . onUpdate ( pSecondsElapsed ) ; \n + \n this . mShortestFrame = Math . min ( this . mShortestFrame , pSecondsElapsed ) ; \n this . mLongestFrame = Math . max ( this . mLongestFrame , pSecondsElapsed ) ; \n }", "msg_token": "Fixed FPSLogger not logging FPS D a super call was missing"} {"diff": " public class DatabaseFactory { \n return returnList ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public List < Database > getInternalDatabases ( ) { \n + List < Database > returnList = new ArrayList < Database > ( ) ; \n + for ( SortedSet < Database > set : internalDatabases . values ( ) ) { \n + returnList . add ( set . iterator ( ) . next ( ) ) ; \n + } \n + return returnList ; \n + } \n + \n public void register ( Database database ) { \n Map < String , SortedSet < Database > > map = null ; \n if ( database instanceof InternalDatabase ) { \n public class LockServiceFactoryTest { \n \n private MockDatabase getMockDatabase ( ) { \n DatabaseFactory factory = DatabaseFactory . getInstance ( ) ; \n - for ( Database db : factory . getImplementedDatabases ( ) ) { \n + for ( Database db : factory . getInternalDatabases ( ) ) { \n if ( db instanceof MockDatabase ) { \n return ( MockDatabase ) db ; \n }", "msg_token": "Fixed test and added method to expose internal database types"} {"diff": " public class UIdGenerator { \n try { \n hostName = InetAddress . getLocalHost ( ) . getHostName ( ) ; \n ServerSocket ss = new ServerSocket ( NUMBER0 ) ; \n - stub = STRING0 + ss . getLocalPort ( ) + STRING0 + System . currentTimeMillis ( ) + STRING0 ; \n + stub = STRING1 + ss . getLocalPort ( ) + STRING0 + System . currentTimeMillis ( ) + STRING1 ; \n Thread . sleep ( NUMBER1 ) ; \n ss . close ( ) ; \n } catch ( Exception ioe ) { \n public class UIdGenerator { \n \n public UIdGenerator ( String prefix ) { \n synchronized ( UNIQUE_STUB ) { \n - this . seed = prefix + UNIQUE_STUB + ( instanceCount ++ ) + STRING2 ; \n + this . seed = prefix + UNIQUE_STUB + ( instanceCount ++ ) + STRING0 ; \n } \n } \n \n public UIdGenerator ( ) { \n - this ( STRING3 + hostName ) ; \n + this ( STRING4 + hostName ) ; \n } \n \n COMMENT", "msg_token": "characters to avoid issues on windows file systems"} {"diff": " class NotesAdapter extends BaseAdapter { \n try { \n if ( clearBeforeAdding ) \n mNotes . clear ( ) ; \n - for ( Note note : notes ) { \n - mNotes . add ( note ) ; \n - } \n + mNotes . addAll ( notes ) ; \n } finally { \n notifyDataSetChanged ( ) ; \n mIsAddingNotes = false ;", "msg_token": "Simplified NotesAdapter addAll"} {"diff": " public abstract class AbstractTreeNode extends DefaultMutableTreeNode { \n protected boolean acceptFilter ( @ nullable Pair < PackageSetBase , NamedScopesHolder > filter , boolean showOnlyFilteredItems ) { \n boolean apply = false ; \n if ( children != null && filter != null ) { \n - for ( Iterator I = children . iterator ( ) ; I . hasNext ( ) ; ) { \n - AbstractTreeNode node = ( AbstractTreeNode ) I . next ( ) ; \n + for ( Iterator it = children . iterator ( ) ; it . hasNext ( ) ; ) { \n + AbstractTreeNode node = ( AbstractTreeNode ) it . next ( ) ; \n if ( node . acceptFilter ( filter , showOnlyFilteredItems ) ) { \n apply = true ; \n } \n public abstract class AbstractTreeNode extends DefaultMutableTreeNode { \n if ( node instanceof Disposable ) { \n Disposer . dispose ( ( Disposable ) node ) ; \n } \n - I . remove ( ) ; \n + it . remove ( ) ; \n } \n } \n applyFilter ( apply ) ;", "msg_token": "vcs code style"} {"diff": " public class AppCompatTintableViewActions { \n return new ViewAction ( ) { \n @ override \n public Matcher < View > getConstraints ( ) { \n - return allOf ( isDisplayingAtLeast ( NUMBER0 ) , TestUtilsMatchers . isTintableBackgroundView ( ) ) ; \n + return allOf ( isDisplayed ( ) , TestUtilsMatchers . isTintableBackgroundView ( ) ) ; \n } \n \n @ override", "msg_token": "Fix AppCompatBaseViewTest to work in landscape mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FindDialog extends DialogWrapper { \n pane . insertTab ( STRING0 , null , optionsPanel , null , NUMBER0 ) ; \n pane . insertTab ( PREVIEW_TITLE , null , myPreviewSplitter , null , RESULTS_PREVIEW_TAB_INDEX ) ; \n myContent = pane ; \n - final AnAction anAction = new AnAction ( ) { \n + final AnAction anAction = new DumbAwareAction ( ) { \n @ override \n public void actionPerformed ( AnActionEvent e ) { \n int selectedIndex = myContent . getSelectedIndex ( ) ;", "msg_token": "make switch action in Find Dialog DumbAware"} {"diff": " public class WeldModuleResourceLoader implements ResourceLoader { \n final Class < ? > clazz = module . getClassLoader ( ) . loadClass ( name ) ; \n classes . put ( name , clazz ) ; \n return clazz ; \n - } catch ( NoClassDefFoundError e ) { \n - throw new ResourceLoadingException ( e ) ; \n - } catch ( ClassNotFoundException e ) { \n - throw new ResourceLoadingException ( e ) ; \n - } catch ( LinkageError e ) { \n + } catch ( ClassNotFoundException | LinkageError e ) { \n throw new ResourceLoadingException ( e ) ; \n } \n }", "msg_token": "Optimize catch block"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n COMMENT \n COMMENT \n COMMENT \n - boolean mInTouchMode = false ; \n + boolean mInTouchMode = true ; \n \n private ViewServer mViewServer ; \n private ArrayList < WindowChangeListener > mWindowChangeListeners =", "msg_token": "On device startup be in touch mode"} {"diff": " public class UndertowDeploymentProcessor implements DeploymentUnitProcessor { \n d . setMinorVersion ( Integer . parseInt ( servletVersion . charAt ( NUMBER0 ) + STRING0 ) ) ; \n } else { \n d . setMajorVersion ( NUMBER1 ) ; \n - d . setMajorVersion ( NUMBER2 ) ; \n + d . setMinorVersion ( NUMBER2 ) ; \n } \n \n SINGLE", "msg_token": "Fix servlet version"} {"diff": " public class OldTraverserWrapper \n \n public boolean isStartNode ( ) \n { \n - return position . length ( ) > NUMBER0 ; \n + return position . length ( ) == NUMBER0 ; \n } \n \n public boolean notStartNode ( )", "msg_token": "Fixed a bug that was accidantilly introduced during refactoring"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n SINGLE \n long [ ] mSafeModeEnabledVibePattern ; \n \n + SINGLE \n + long [ ] mScrollBarrierVibePattern ; \n + \n COMMENT \n boolean mEnableShiftMenuBugReports = false ; \n \n public class PhoneWindowManager implements WindowManagerPolicy { \n com . android . internal . R . array . config_safeModeDisabledVibePattern ) ; \n mSafeModeEnabledVibePattern = getLongIntArray ( mContext . getResources ( ) , \n com . android . internal . R . array . config_safeModeEnabledVibePattern ) ; \n + mScrollBarrierVibePattern = getLongIntArray ( mContext . getResources ( ) , \n + com . android . internal . R . array . config_scrollBarrierVibePattern ) ; \n } \n \n void updatePlugged ( Intent powerIntent ) { \n public class PhoneWindowManager implements WindowManagerPolicy { \n case HapticFeedbackConstants . SAFE_MODE_ENABLED : \n mVibrator . vibrate ( mSafeModeEnabledVibePattern , - NUMBER0 ) ; \n return true ; \n + case HapticFeedbackConstants . SCROLL_BARRIER : \n + mVibrator . vibrate ( mScrollBarrierVibePattern , - NUMBER0 ) ; \n + return true ; \n } \n return false ; \n }", "msg_token": "Added haptic feedback support for scroll barriers"} {"diff": " public class AccessTransformer implements IClassTransformer \n { \n Manifest manifest = jar . getManifest ( ) ; \n String atList = manifest . getMainAttributes ( ) . getValue ( STRING0 ) ; \n + if ( atList == null ) return ; \n for ( String at : atList . split ( STRING1 ) ) \n { \n JarEntry jarEntry = jar . getJarEntry ( STRING2 + at ) ; \n public class CoreModManager { \n jar = new JarFile ( coreMod ) ; \n if ( jar . getManifest ( ) == null ) \n { \n - SINGLE \n + SINGLE \n continue ; \n } \n ModAccessTransformer . addJar ( jar ) ;", "msg_token": "Fix NPE when no FMLAT is defined"} {"diff": " public class DRF extends FrameJob { \n Log . info ( Sys . DRF__ , STRING0 + t_drf ) ; \n \n SINGLE \n - while ( fr . numCols ( ) > ncols ) \n + while ( fr . numCols ( ) > ncols + NUMBER0 COMMENT ) \n UKV . remove ( fr . remove ( fr . numCols ( ) - NUMBER0 ) . _key ) ; \n remove ( ) ; \n tryComplete ( ) ; \n public class GBM extends FrameJob { \n Log . info ( Sys . GBM__ , STRING1 + t_gbm ) ; \n \n SINGLE \n - while ( fr . numCols ( ) > ncols ) \n + while ( fr . numCols ( ) > ncols + NUMBER0 COMMENT ) \n UKV . remove ( fr . remove ( fr . numCols ( ) - NUMBER0 ) . _key ) ; \n remove ( ) ; \n tryComplete ( ) ;", "msg_token": "Was over nuking the response col by mistake"} {"diff": " public final class JPAProvider { \n addMapping ( STRING0 , EclipseLinkTemplates . DEFAULT ) ; \n addMapping ( STRING1 , OpenJPATemplates . DEFAULT ) ; \n addMapping ( STRING2 , DataNucleusTemplates . DEFAULT ) ; \n + addMapping ( STRING3 , DataNucleusTemplates . DEFAULT ) ; \n addMapping ( STRING4 , DataNucleusTemplates . DEFAULT ) ; \n }", "msg_token": "improved DataNucleus detection"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class FieldProcessor < T > { \n COMMENT \n COMMENT \n public void processLinks ( T entity , UriInfo uriInfo , ResourceMappingContext rmc ) { \n - Set < Object > processed = new HashSet < Object > ( ) ; SINGLE \n + Set < Object > processed = new HashSet < Object > ( ) ; \n Object resource = uriInfo . getMatchedResources ( ) . get ( NUMBER0 ) ; \n processLinks ( entity , resource , entity , processed , uriInfo , rmc ) ; \n }", "msg_token": "Remove code that is not longer required"} {"diff": " public class Bootstrap { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + static final String SECURITY_SETTING = STRING0 ; \n + \n private void setupSecurity ( Settings settings , Environment environment ) throws Exception { \n - if ( settings . getAsBoolean ( STRING0 , true ) ) { \n + if ( settings . getAsBoolean ( SECURITY_SETTING , true ) ) { \n Security . configure ( environment ) ; \n } \n }", "msg_token": "add constant only used once to make it harder to read the code"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public @ interface DeleteMapping { \n @ aliasfor ( annotation = RequestMapping . class ) \n String [ ] headers ( ) default { } ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ aliasfor ( annotation = RequestMapping . class ) \n + String [ ] consumes ( ) default { } ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + @ aliasfor ( annotation = RequestMapping . class ) \n + String [ ] produces ( ) default { } ; \n + \n }", "msg_token": "Support produces and consumes attributes in DeleteMapping"} {"diff": " public class MissingSymbolsHandler { \n COMMENT \n COMMENT \n private String formatTarget ( BuildTarget buildTarget ) { \n - String targetString = buildTarget . toString ( ) ; \n return String . format ( STRING0 , \n buildTarget . getBuildFilePath ( ) , \n buildTarget . getShortNameOnly ( ) ) ;", "msg_token": "Fix a lint error"} {"diff": " public class RoutingHelper { \n log . info ( STRING0 + dist ) ; SINGLE \n calculateRoute = true ; \n } \n - if ( dist > NUMBER0 && currentGPXRoute != null ) { \n + if ( dist > NUMBER0 ) { \n voiceRouter . announceOffRoute ( dist ) ; \n } \n }", "msg_token": "Make feature off route global"} {"diff": " public class GradlePomModuleDescriptorBuilder { \n index += NUMBER0 ; \n } \n } \n - SINGLE \n - ivyModuleDescriptor . addDependencyDescriptorMediator ( \n - ModuleId . newInstance ( dep . getGroupId ( ) , dep . getArtifactId ( ) ) , \n - ExactPatternMatcher . INSTANCE , \n - new OverrideDependencyDescriptorMediator ( null , dep . getVersion ( ) ) ) ; \n } \n \n public void addPlugin ( PomDependencyMgt plugin ) {", "msg_token": "Don t set any dependency mediators"} {"diff": " public class LocationFixes extends ArrayList < SignatureOuterClass . Signature . Locat \n for ( int i = NUMBER0 ; i < providerCount ; i ++ ) { \n float latitude = offsetOnLatLong ( api . getLatitude ( ) , random . nextInt ( NUMBER1 ) + NUMBER2 ) ; \n float longitude = offsetOnLatLong ( api . getLongitude ( ) , random . nextInt ( NUMBER1 ) + NUMBER2 ) ; \n - float altitude = NUMBER3 ; \n - if ( api . getAltitude ( ) != Double . NaN ) { \n - altitude = ( float ) api . getAltitude ( ) ; \n - } \n + float altitude = ( float ) api . getAltitude ( ) ; \n float verticalAccuracy = ( float ) ( NUMBER4 + ( NUMBER5 - NUMBER4 ) * random . nextDouble ( ) ) ; \n \n SINGLE", "msg_token": "Remove unnecessary check for empty altitude"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class TileEngineWood extends TileEngine { \n \n public class TileEngineWood extends TileEngine { \n super . engineUpdate ( ) ; \n \n if ( isRedstonePowered ) \n - if ( worldObj . getWorldTime ( ) % NUMBER0 == NUMBER1 ) \n + if ( worldObj . getTotalWorldTime ( ) % NUMBER0 == NUMBER1 ) \n addEnergy ( NUMBER2 ) ; \n }", "msg_token": "Fix engine not working if doDaylightCycle is set to false"} {"diff": " public class MediaRouteControllerDialog extends AlertDialog { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix the incorrect documentation of MRCD onCreateMediaControlView"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "remove unused imports"} {"diff": " public class WebSocketDeploymentInfo { \n return dispatchToWorkerThread ; \n } \n \n - public void setDispatchToWorkerThread ( boolean dispatchToWorkerThread ) { \n + public WebSocketDeploymentInfo setDispatchToWorkerThread ( boolean dispatchToWorkerThread ) { \n this . dispatchToWorkerThread = dispatchToWorkerThread ; \n + return this ; \n } \n \n public interface ContainerReadyListener {", "msg_token": "Fix up builder pattern"} {"diff": " public abstract class MixinSpongeImplFactory { \n return tile . shouldRefresh ( world , pos , oldState , newState ) ; \n } \n \n + @ overwrite \n + public static TileEntity createTileEntity ( Block block , net . minecraft . world . World world , IBlockState state ) { \n + return block . createTileEntity ( world , state ) ; \n + } \n + \n SINGLE \n @ overwrite \n public static void updateComparatorOutputLevel ( net . minecraft . world . World world , BlockPos pos , Block blockIn ) {", "msg_token": "Actually overwrite SpongeImplFactory createTileEntity"} {"diff": " public final class Utils { \n } \n \n try { \n - return InjectableObjectFactory . class . cast ( config . framework ( ) . objectFactory ( ) ) . needRequestScoped ( injectWith ( h ) . getClass ( ) ) ; \n + Object obj = injectWith ( h ) ; \n + return obj == null ? false : InjectableObjectFactory . class . cast ( config . framework ( ) . objectFactory ( ) ) . needRequestScoped ( obj . getClass ( ) ) ; \n } catch ( Exception e ) { \n LOGGER . error ( STRING0 , e ) ; \n return false ;", "msg_token": "handle the case of ReflectorServletProcessor getServlet being null gracefully"} {"diff": " public class RobotiumUtils { \n COMMENT \n \n public static int getNumberOfMatches ( String regex , TextView view , Set < TextView > uniqueTextViews ) { \n + if ( view == null ) { \n + return NUMBER0 ; \n + } \n + \n Pattern pattern = null ; \n try { \n pattern = Pattern . compile ( regex ) ; \n public class RobotiumUtils { \n String viewText = view . getText ( ) . toString ( ) ; \n viewText = viewText . replaceAll ( STRING0 , STRING1 ) ; \n Matcher matcher = pattern . matcher ( viewText ) ; \n - \n + \n if ( matcher . find ( ) ) { \n uniqueTextViews . add ( view ) ; \n }", "msg_token": "Added null check in getNumberOfMatches"} {"diff": " public class MUCUserImpl implements MUCUser { \n } \n \n public void process ( IQ packet ) { \n + SINGLE \n + if ( IQ . Type . error == packet . getType ( ) ) { \n + return ; \n + } \n lastPacketTime = System . currentTimeMillis ( ) ; \n JID recipient = packet . getTo ( ) ; \n String group = recipient . getNode ( ) ; \n public class MUCUserImpl implements MUCUser { \n } \n \n public void process ( Presence packet ) { \n + SINGLE \n + if ( Presence . Type . error == packet . getType ( ) ) { \n + return ; \n + } \n lastPacketTime = System . currentTimeMillis ( ) ; \n JID recipient = packet . getTo ( ) ; \n String group = recipient . getNode ( ) ;", "msg_token": "Ignore packets of type ERROR"} {"diff": " public final class MathFunctions \n @ sqltype ( StandardTypes . INTEGER ) \n public static long absInt ( @ sqltype ( StandardTypes . INTEGER ) long num ) \n { \n + checkCondition ( num != Integer . MIN_VALUE , NUMERIC_VALUE_OUT_OF_RANGE , STRING0 ) ; \n return Math . abs ( num ) ; \n }", "msg_token": "Add check for Integer MIN_VALUE to abs int"} {"diff": " public class JacksonAnnotationIntrospector \n COMMENT \n \n @ override \n - public Class < ? extends JsonDeserializer < ? > > findDeserializer ( Annotated a ) \n + public Object findDeserializer ( Annotated a ) \n { \n JsonDeserialize ann = _findAnnotation ( a , JsonDeserialize . class ) ; \n if ( ann != null ) {", "msg_token": "Change return type for findDeserializer to Object"} {"diff": " import NAMESPACE ; \n public abstract class GenModel implements IGenModel , IGeneratedModel { \n \n COMMENT \n - public final String [ ] _names ; \n + public final String [ ] _names ; \n \n COMMENT \n COMMENT \n public abstract class GenModel implements IGenModel , IGeneratedModel { \n return cat == ModelCategory . Binomial || cat == ModelCategory . Multinomial ; \n } \n \n + @ override public boolean isAutoEncoder ( ) { \n + ModelCategory cat = getModelCategory ( ) ; \n + return cat == ModelCategory . AutoEncoder ; \n + } \n + \n @ override public int getPredsSize ( ) { \n return isClassifier ( ) ? NUMBER0 + getNumResponseClasses ( ) : NUMBER1 ; \n } \n public interface IGeneratedModel { \n COMMENT \n public boolean isClassifier ( ) ; \n \n + COMMENT \n + public boolean isAutoEncoder ( ) ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding isAutoEncoder method"} {"diff": " public final class NioEventLoop extends SingleThreadEventLoop { \n return selector ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public SelectorProvider selectorProvider ( ) { \n + return provider ; \n + } \n + \n @ override \n protected Queue < Runnable > newTaskQueue ( ) { \n SINGLE", "msg_token": "Expose the SelectorProvider used by the NioEventLoop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SaveGame { \n } \n UUEncoder enc = new UUEncoder ( ) ; \n String dataString = enc . encodeBuffer ( out . toByteArray ( ) ) ; \n - System . out . println ( out ) ; \n if ( dataString . length ( ) > Preferences . MAX_VALUE_LENGTH ) { \n throw new IllegalStateException ( STRING0 ) ; \n }", "msg_token": "remove System out println from SaveGame class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ExecutableValidator { \n \n public static final String NOTIFICATION_ID = STRING0 ; \n + \n + private static final Logger LOG = Logger . getInstance ( ExecutableValidator . class ) ; \n + \n private final NotificationGroup myNotificationGroup = new NotificationGroup ( NOTIFICATION_ID , NotificationDisplayType . TOOL_WINDOW , true , \n ToolWindowId . VCS ) ; \n \n public abstract class ExecutableValidator { \n return ; \n } \n \n + LOG . info ( STRING1 + getCurrentExecutable ( ) ) ; \n myNotificationGroup . createNotification ( STRING2 , prepareDescription ( ) , NotificationType . ERROR , \n new NotificationListener ( ) { \n public void hyperlinkUpdate ( @ notnull Notification notification , @ notnull HyperlinkEvent event ) {", "msg_token": "log the fact of invalid executable"} {"diff": " public class MavenModuleImporter { \n addAttachArtifactDependency ( buildHelperCfg , scope , depProject , artifact ) ; \n } \n } \n - if ( STRING0 . equals ( artifact . getScope ( ) ) ) { \n + else if ( STRING0 . equals ( artifact . getScope ( ) ) ) { \n myRootModelAdapter . addSystemDependency ( artifact , scope ) ; \n } \n else {", "msg_token": "Fix broken tests"} {"diff": " class FastScroller { \n COMMENT \n private boolean mShowingPreview ; \n \n - private BaseAdapter mListAdapter ; \n + private Adapter mListAdapter ; \n private SectionIndexer mSectionIndexer ; \n \n COMMENT \n class FastScroller { \n . getAdapter ( ) ; \n if ( expAdapter instanceof SectionIndexer ) { \n mSectionIndexer = ( SectionIndexer ) expAdapter ; \n - mListAdapter = ( BaseAdapter ) adapter ; \n + mListAdapter = adapter ; \n mSections = mSectionIndexer . getSections ( ) ; \n } \n } else if ( adapter instanceof SectionIndexer ) { \n - mListAdapter = ( BaseAdapter ) adapter ; \n + mListAdapter = adapter ; \n mSectionIndexer = ( SectionIndexer ) adapter ; \n mSections = mSectionIndexer . getSections ( ) ; \n } else { \n - mListAdapter = ( BaseAdapter ) adapter ; \n + mListAdapter = adapter ; \n mSections = null ; \n } \n }", "msg_token": "Don t cast FastScroller adapter to BaseAdapter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class NewMatrix \n { \n public class NewMatrix \n } \n \n SINGLE \n - private static Traverser getFriends ( \n + private Traverser getFriends ( \n final Node person ) \n { \n - TraversalDescription td = Traversal . description ( ) \n + TraversalDescription td = graphDb . traversalDescription ( ) \n . breadthFirst ( ) \n . relationships ( RelTypes . KNOWS , Direction . OUTGOING ) \n . evaluator ( Evaluators . excludeStartPosition ( ) ) ; \n public class NewMatrix \n } \n \n SINGLE \n - private static Traverser findHackers ( final Node startNode ) \n + private Traverser findHackers ( final Node startNode ) \n { \n - TraversalDescription td = Traversal . description ( ) \n + TraversalDescription td = graphDb . traversalDescription ( ) \n . breadthFirst ( ) \n . relationships ( RelTypes . CODED_BY , Direction . OUTGOING ) \n . relationships ( RelTypes . KNOWS , Direction . OUTGOING )", "msg_token": "Removed use of deprecated Traversal description method"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix misleading example in ByteBuf"} {"diff": " class CodeProcessor { \n return totalLinesProcessed ; \n } \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ notnull \n private String prepareMessage ( ) { \n StringBuilder builder = new StringBuilder ( STRING0 ) ;", "msg_token": "Added javadoc about message structure"} {"diff": " public class ContactsSyncActor extends ModuleActor { \n } \n } \n notifyState ( ) ; \n - SINGLE \n + self ( ) . send ( new PerformSync ( ) ) ; \n } \n \n public void performSync ( ) {", "msg_token": "recover contact sync"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved Javadoc as suggested by Frederic"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class CommonWebApi implements GrailsApplicationAware , ServletContextAware , ApplicationContextAware { \n + public class CommonWebApi implements ServletContextAware , ApplicationContextAware { \n private GrailsPluginManager pluginManager ; \n private GrailsApplication grailsApplication ; \n private ServletContext servletContext ; \n public class CommonWebApi implements GrailsApplicationAware , ServletContextAware \n return pluginPath != null ? pluginPath : STRING0 ; \n } \n \n - public void setGrailsApplication ( GrailsApplication grailsApplication ) { \n + public void setGrailsApplication ( @ suppresswarnings ( STRING1 ) Object instance , GrailsApplication grailsApplication ) { \n this . grailsApplication = grailsApplication ; \n }", "msg_token": "remove implements GrailsApplicationAware so the setGrailsApplication method can accept a first parameter of type Object"} {"diff": " public class Validator { \n mAnnotationsProcessed = true ; \n } \n \n + if ( mViewsAndRules . size ( ) == NUMBER0 ) { \n + Log . i ( TAG , STRING0 ) ; \n + return null ; \n + } \n + \n ViewRulePair failedViewRulePair = null ; \n for ( ViewRulePair pair : mViewsAndRules ) { \n if ( pair == null ) continue ;", "msg_token": "Display a log message when no rules are defined"} {"diff": " public class ApkBuilderStep implements Step { \n KeyStore keystore = KeyStore . getInstance ( JARSIGNER_KEY_STORE_TYPE ) ; \n InputStream inputStream = projectFilesystem . getInputStreamForRelativePath ( pathToKeystore ) ; \n char [ ] keystorePassword = keystoreProperties . getStorepass ( ) . toCharArray ( ) ; \n - keystore . load ( inputStream , keystorePassword ) ; \n + try { \n + keystore . load ( inputStream , keystorePassword ) ; \n + } catch ( IOException | NoSuchAlgorithmException | CertificateException e ) { \n + throw new HumanReadableException ( e , STRING0 , pathToKeystore ) ; \n + } \n \n String alias = keystoreProperties . getAlias ( ) ; \n char [ ] keyPassword = keystoreProperties . getKeypass ( ) . toCharArray ( ) ;", "msg_token": "Add a more constructive error message when the keystore is invalid"} {"diff": " public class CordovaWebView extends WebView { \n String baseUrl ; \n private Stack < String > urls = new Stack < String > ( ) ; \n \n - boolean useBrowserHistory = false ; \n + boolean useBrowserHistory = true ; \n \n SINGLE \n int loadUrlTimeout = NUMBER0 ; \n public class CordovaWebView extends WebView { \n } \n \n SINGLE \n - if ( STRING0 . equals ( this . getProperty ( STRING1 , STRING2 ) ) ) { \n - this . useBrowserHistory = true ; \n + if ( STRING2 . equals ( this . getProperty ( STRING1 , STRING2 ) ) ) { \n + this . useBrowserHistory = false ; \n } \n else { \n - this . useBrowserHistory = false ; \n + this . useBrowserHistory = true ; \n } \n \n if ( STRING0 . equals ( this . getProperty ( STRING3 , STRING2 ) ) ) {", "msg_token": "Setting browser history as the default"} {"diff": " public class ClusteredSingleSignOnTestCase { \n } \n \n @ test \n - @ insequence ( NUMBER0 ) \n - public void stopServers ( ) throws Exception { \n + @ insequence ( NUMBER0 ) \n + public void stopServers ( \n + @ arquillianresource @ operateondeployment ( DEPLOYMENT_1 ) ManagementClient client1 , \n + @ arquillianresource @ operateondeployment ( DEPLOYMENT_2 ) ManagementClient client2 ) throws Exception { \n + \n + SSOTestBase . removeSso ( client1 . getControllerClient ( ) ) ; \n + SSOTestBase . removeSso ( client2 . getControllerClient ( ) ) ; \n + \n deployer . undeploy ( DEPLOYMENT_1 ) ; \n controller . stop ( CONTAINER_1 ) ; \n deployer . undeploy ( DEPLOYMENT_2 ) ;", "msg_token": "ClusteredSingleSignOnTestCase remove SSO config after test"} {"diff": " public final class RaptorQueryRunner \n \n if ( loadTpch ) { \n copyTables ( queryRunner , STRING0 , createSession ( ) , bucketed ) ; \n - if ( ! bucketed ) { \n - SINGLE \n - copyTables ( queryRunner , STRING1 , createSampledSession ( ) , false ) ; \n - } \n + copyTables ( queryRunner , STRING1 , createSampledSession ( ) , bucketed ) ; \n } \n \n return queryRunner ; \n public class TestRaptorDistributedQueries \n public TestRaptorDistributedQueries ( ) \n throws Exception \n { \n - super ( createRaptorQueryRunner ( ImmutableMap . of ( ) , true , false ) , createSampledSession ( ) ) ; \n + this ( createRaptorQueryRunner ( ImmutableMap . of ( ) , true , false ) ) ; \n } \n \n protected TestRaptorDistributedQueries ( QueryRunner queryRunner ) \n { \n - super ( queryRunner ) ; \n + super ( queryRunner , createSampledSession ( ) ) ; \n } \n \n @ test", "msg_token": "Enable sampled queries for Raptor bucketed tests"} {"diff": " public class CreateColumnFamilyStatement extends SchemaAlteringStatement \n } \n catch ( ConfigurationException e ) \n { \n - throw new InvalidRequestException ( e . toString ( ) ) ; \n + throw new InvalidRequestException ( e . getMessage ( ) ) ; \n } \n return newCFMD ; \n }", "msg_token": "Don t include original exception class name in CQL message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT \n public class Membership implements Cloneable { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - protected synchronized MbrEntry [ ] getMemberEntries ( ) { \n - MbrEntry [ ] result = new MbrEntry [ map . size ( ) ] ; \n - Iterator < Map . Entry < Member , MbrEntry > > i = map . entrySet ( ) . iterator ( ) ; \n - int pos = NUMBER0 ; \n - while ( i . hasNext ( ) ) \n - result [ pos ++ ] = i . next ( ) . getValue ( ) ; \n - return result ; \n - } \n \n SINGLE", "msg_token": "Remove deprecated unused code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestCommand extends AbstractCommandRunner < TestCommandOptions > { \n SINGLE \n TestResults testResults = \n new TestResults ( \n + testRule . getBuildTarget ( ) , \n ImmutableList . of ( \n new TestCaseSummary ( \n testRule . getBuildTarget ( ) . toString ( ) , \n public class TestCommand extends AbstractCommandRunner < TestCommandOptions > { \n throwable . getMessage ( ) , \n getStackTrace ( throwable ) , \n STRING0 , \n - STRING0 ) ) ) ) ) ; \n + STRING0 ) ) ) ) , \n + testRule . getContacts ( ) , \n + FluentIterable . from ( \n + testRule . getLabels ( ) ) . transform ( Functions . toStringFunction ( ) ) . toSet ( ) ) ; \n if ( printTestResults ) { \n postTestResults ( testResults ) ; \n }", "msg_token": "Do not use a VisibleForTesting constructor to report failure"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ResoureBundleEditorProvider implements FileEditorProvider , Applicat \n public void initComponent ( ) { } \n \n public void disposeComponent ( ) { \n - ApplicationManager . getApplication ( ) . runWriteAction ( new Runnable ( ) { \n - public void run ( ) { \n - FileTypeManagerEx . getInstanceEx ( ) . unregisterFileType ( RESOURCE_BUNDLE_FILE_TYPE ) ; \n - } \n - } ) ; \n } \n }", "msg_token": "Don t unregister filetypes on shutdown"} {"diff": " public class VizGui extends JFrame implements VertexSelectionListener , Remaining \n boolean found = false ; \n \n SINGLE \n - ArrayList < Edge > edges = new ArrayList < Edge > ( ) ; \n ArrayList < Vertex > vertices = new ArrayList < Vertex > ( ) ; \n \n for ( Object obj : getReferencedObjects ( ) ) { \n if ( obj instanceof Edge ) { \n found = true ; \n Edge e = ( Edge ) obj ; \n + show . enqueueHighlightedEdge ( e ) ; \n env . expandToInclude ( e . getFromVertex ( ) . getCoordinate ( ) ) ; \n env . expandToInclude ( e . getToVertex ( ) . getCoordinate ( ) ) ; \n - edges . add ( e ) ; \n } \n else if ( obj instanceof Vertex ) { \n found = true ; \n public class VizGui extends JFrame implements VertexSelectionListener , Remaining \n \n SINGLE \n show . clearHighlights ( ) ; \n - show . setHighlightedEdges ( edges ) ; \n show . setHighlightedVertices ( vertices ) ; \n \n SINGLE", "msg_token": "correctly highlight edges from annotations"} {"diff": " public class StateController { \n SINGLE \n SINGLE \n SINGLE \n + state . set ( FLOAT0 , FLOAT0 , FLOAT1 , FLOAT0 ) ; \n boolean updated = adjustZoomLevels ( state ) ; \n - \n state . set ( FLOAT0 , FLOAT0 , mMinZoom , FLOAT0 ) ; \n MovementBounds . setupInitialMovement ( state , mSettings ) ;", "msg_token": "Fixed zoom adjustment logic if state includes rotation"} {"diff": " public class ExpressionDefinition implements Expression , Predicate { \n this . expressionValue = expressionValue ; \n } \n \n + public ExpressionDefinition getExpressionType ( ) { \n + return expressionType ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added getter needed by the web console for dynamic route scripting"} {"diff": " public class Scope { \n @ notnull \n private Binding insertOrUpdate ( @ nullable Binding binding , String id , @ notnull Node loc , \n @ notnull Type type , Binding . Kind kind , int tag ) { \n - if ( binding == null ) { \n - binding = update ( id , new Binding ( id , loc , type , kind , tag ) ) ; \n - } else if ( tag == binding . tag ) { \n + if ( binding == null || tag == binding . tag ) { \n binding = update ( id , new Binding ( id , loc , type , kind , tag ) ) ; \n } else { \n binding . addDef ( loc ) ; \n public class Scope { \n SINGLE \n @ notnull \n public Binding update ( String id , @ notnull Binding b ) { \n + b . setQname ( extendPath ( id ) ) ; \n getInternalTable ( ) . put ( id , b ) ; \n return b ; \n }", "msg_token": "simplify and correct qname"} {"diff": " public final class SSL { \n public static final int SSL_OP_NO_SSLv2 = NUMBER0 ; \n public static final int SSL_OP_NO_SSLv3 = NUMBER1 ; \n public static final int SSL_OP_NO_TLSv1 = NUMBER2 ; \n + public static final int SSL_OP_NO_TLSv1_1 = NUMBER3 ; \n + public static final int SSL_OP_NO_TLSv1_2 = NUMBER4 ; \n + \n public static final int SSL_OP_NO_TICKET = NUMBER5 ; \n \n COMMENT", "msg_token": "add SSL_OP_NO_TLSv1_1 and SSL_OP_NO_TLSv1_2"} {"diff": " public class SparkUtilsTest { \n List < String > actual = SparkUtils . convertRouteToList ( STRING0 ) ; \n \n assertThat ( STRING1 , \n + actual , \n is ( expected ) ) ; \n \n }", "msg_token": "fixed accidentally deleted line in SparkUtilsTest"} {"diff": " public class RepositoryAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol \n data [ resolvedRepositoryIndex ] , resolvedItemIndex , holder ) ; \n } \n \n + @ override \n + public void onViewRecycled ( RecyclerView . ViewHolder holder ) { \n + super . onViewRecycled ( holder ) ; \n + presenters [ resolvedRepositoryIndex ] . recycled ( holder ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public abstract class RepositoryPresenter < T > { \n COMMENT \n COMMENT \n public abstract void bind ( @ nonnull T data , int index , @ nonnull RecyclerView . ViewHolder holder ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void recycled ( @ nonnull final RecyclerView . ViewHolder holder ) { } \n }", "msg_token": "Exposed onViewRecycled to RepositoryPresenter"} {"diff": " public class LockScreenActivity extends SherlockActivity implements ICacheWordSu \n \n @ override \n public void onCacheWordUninitialized ( ) { \n + \n + Intent intentOrig ; \n + \n + if ( ( intentOrig = getIntent ( ) . getParcelableExtra ( STRING0 ) ) != null ) \n + { \n + if ( intentOrig . getData ( ) . getScheme ( ) . equals ( STRING1 ) || \n + intentOrig . getData ( ) . getScheme ( ) . equals ( STRING2 ) ) \n + { \n + \n + initializeWithPassphrase ( ) ; \n + return ; \n + } \n + } \n + \n + \n initializePassphrase ( ) ; \n \n }", "msg_token": "set blank app password if launched first time from external app"} {"diff": " public class UsbPreferenceActivity extends Activity implements View . OnClickListe \n if ( v . equals ( mMtpPtpButton ) ) { \n if ( mPtpActive ) { \n mUsbManager . setPrimaryFunction ( UsbManager . USB_FUNCTION_MTP ) ; \n + mUsbManager . setDefaultFunction ( UsbManager . USB_FUNCTION_MTP ) ; \n } else { \n mUsbManager . setPrimaryFunction ( UsbManager . USB_FUNCTION_PTP ) ; \n + mUsbManager . setDefaultFunction ( UsbManager . USB_FUNCTION_PTP ) ; \n } \n } else if ( v . equals ( mInstallerCdButton ) ) { \n mUsbManager . setPrimaryFunction ( UsbManager . USB_FUNCTION_MASS_STORAGE ) ;", "msg_token": "Make MTP PTP toggle in the USB preferences set the default mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ContentService extends IContentService . Stub { \n STRING0 ) ; \n int userId = UserHandle . getCallingUserId ( ) ; \n \n - if ( pollFrequency <= DateUtils . MINUTE_IN_MILLIS ) { \n + if ( pollFrequency < NUMBER0 ) { \n Slog . w ( TAG , STRING1 + pollFrequency \n - + STRING2 ) ; \n - pollFrequency = DateUtils . MINUTE_IN_MILLIS ; \n + + STRING3 ) ; \n + pollFrequency = NUMBER0 ; \n } \n \n long identityToken = clearCallingIdentity ( ) ;", "msg_token": "Sync APIs use seconds instead of ms"} {"diff": " public abstract class AbstractChannel extends DefaultAttributeMap implements Cha \n COMMENT \n protected abstract class AbstractUnsafe implements Unsafe { \n \n + private final Runnable flushTask = new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + flush0 ( ) ; \n + } \n + } ; \n + \n @ override \n public final SocketAddress localAddress ( ) { \n return localAddress0 ( ) ; \n public abstract class AbstractChannel extends DefaultAttributeMap implements Cha \n } else { \n if ( ! flushNowPending ) { \n flushNowPending = true ; \n - eventLoop ( ) . execute ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - flush0 ( ) ; \n - } \n - } ) ; \n + eventLoop ( ) . execute ( flushTask ) ; \n } \n } \n }", "msg_token": "Reduce garbage in AbstractUnsafe flush0"} {"diff": " public class GitCommandResult { \n \n @ notnull \n public String getErrorOutputAsHtmlString ( ) { \n - SINGLE \n - List < String > outputToDisplay = myErrorOutput . isEmpty ( ) && ! success ( ) ? myOutput : myErrorOutput ; \n - return StringUtil . join ( cleanup ( outputToDisplay ) , STRING0 ) ; \n + return StringUtil . join ( cleanup ( getErrorOrStdOutput ( ) ) , STRING0 ) ; \n } \n \n @ notnull \n public String getErrorOutputAsJoinedString ( ) { \n - return StringUtil . join ( myErrorOutput , STRING1 ) ; \n + return StringUtil . join ( getErrorOrStdOutput ( ) , STRING1 ) ; \n + } \n + \n + SINGLE \n + @ notnull \n + private List < String > getErrorOrStdOutput ( ) { \n + return myErrorOutput . isEmpty ( ) && ! success ( ) ? myOutput : myErrorOutput ; \n } \n \n @ notnull", "msg_token": "git display stdout if git command fails but no error output is given"} {"diff": " public class ShadowDrawable { \n private Rect bounds = new Rect ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n private int intrinsicWidth = - NUMBER1 ; \n private int intrinsicHeight = - NUMBER1 ; \n + private int alpha ; \n \n @ implementation \n public static Drawable createFromStream ( InputStream is , String srcName ) { \n public class ShadowDrawable { \n result = NUMBER2 * result + intrinsicHeight ; \n return result ; \n } \n + \n + @ implementation \n + public void setAlpha ( int alpha ) { \n + this . alpha = alpha ; \n + } \n + \n + public int getAlpha ( ) { \n + return alpha ; \n + } \n }", "msg_token": "add getter and setter for alpha"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class BackgroundTaskQueue { \n return ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ; \n } \n \n - public void setForcedTestMode ( Boolean forcedTestMode ) { \n + @ testonly \n + public void setForcedTestMode ( Boolean forcedTestMode , Disposable parentDisposable ) { \n myForcedTestMode = forcedTestMode ; \n + Disposer . register ( parentDisposable , new Disposable ( ) { \n + @ override \n + public void dispose ( ) { \n + myForcedTestMode = null ; \n + } \n + } ) ; \n } \n }", "msg_token": "remove side effects from BackgroundTaskQueue tests"} {"diff": " public class PublishReportSourcePage \n String staticSubtitle = STRING0 + \n STRING1 ; \n if ( input . isConnectUIEnabled ( ) && input . isExternalUIEnabled ( ) && \n - input . isSelfContained ( ) ) \n + input . isSelfContained ( ) && ! asMultiple ) \n { \n SINGLE \n SINGLE", "msg_token": "prune rpubs from decision tree when publishing mulitiple HTML"} {"diff": " public class MethodLibrary { \n setupMethodEnvironment ( env , List . class , listPureFunctions ) ; \n setupMethodEnvironment ( env , SkylarkList . class , listPureFunctions ) ; \n setupMethodEnvironment ( env , SkylarkNestedSet . class , setFunctions ) ; \n + SINGLE \n + env . registerFunction ( SkylarkList . class , indexOperator . getName ( ) , indexOperator ) ; \n + env . registerFunction ( List . class , indexOperator . getName ( ) , indexOperator ) ; \n + env . registerFunction ( ImmutableList . class , indexOperator . getName ( ) , indexOperator ) ; \n + \n if ( env . isSkylarkEnabled ( ) ) { \n - env . registerFunction ( SkylarkList . class , indexOperator . getName ( ) , indexOperator ) ; \n setupMethodEnvironment ( env , skylarkGlobalFunctions ) ; \n } else { \n - env . registerFunction ( List . class , indexOperator . getName ( ) , indexOperator ) ; \n - env . registerFunction ( ImmutableList . class , indexOperator . getName ( ) , indexOperator ) ; \n SINGLE \n SINGLE \n setupMethodEnvironment ( env , List . class , listFunctions ) ;", "msg_token": "Define operator in the same way in BUILD and in bzl files"} {"diff": " public class VertexIDAssignerTest { \n configurations . add ( new Object [ ] { false , Integer . MAX_VALUE , null } ) ; \n \n for ( int max : new int [ ] { Integer . MAX_VALUE , NUMBER0 } ) { \n - for ( int [ ] local : new int [ ] [ ] { null , { NUMBER1 , NUMBER2 } , { - NUMBER3 , - NUMBER4 } , { - NUMBER5 , NUMBER5 } } ) { \n + for ( int [ ] local : new int [ ] [ ] { null , { NUMBER1 , NUMBER2 } , { - NUMBER3 , - NUMBER4 } , { NUMBER5 , - NUMBER5 } } ) { \n configurations . add ( new Object [ ] { true , max , local } ) ; \n } \n }", "msg_token": "Flip broken VertexIDAssignerTest partition bounds"} {"diff": " public class TestNGTestClassProcessor implements TestClassProcessor { \n JavaReflectionUtil . method ( TestNG . class , void . class , STRING0 , boolean . class ) . invoke ( testNg , options . getPreserveOrder ( ) ) ; \n } catch ( NoSuchMethodException e ) { \n if ( options . getPreserveOrder ( ) ) { \n - throw e ; \n + throw new GradleException ( STRING1 , e ) ; \n } \n } \n try { \n JavaReflectionUtil . method ( TestNG . class , void . class , STRING2 , boolean . class ) . invoke ( testNg , options . getGroupByInstances ( ) ) ; \n } catch ( NoSuchMethodException e ) { \n if ( options . getGroupByInstances ( ) ) { \n - throw e ; \n + throw new GradleException ( STRING3 , e ) ; \n } \n }", "msg_token": "Modified exception handling when TestNG does not support preserving order or grouping by instances"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added magic empty line"} {"diff": " public class SearchActivity extends SherlockFragmentActivity implements OsmAndLo \n LatLon l = new LatLon ( lat , lon ) ; \n if ( ! Algorithms . objectEquals ( reqSearchPoint , l ) ) { \n reqSearchPoint = l ; \n - updateSearchPoint ( reqSearchPoint , getString ( R . string . select_search_position ) + STRING0 , true ) ; \n + if ( ! Algorithms . objectEquals ( reqSearchPoint , settings . getLastKnownMapLocation ( ) ) { \n + updateSearchPoint ( reqSearchPoint , getString ( R . string . select_search_position ) + STRING0 + getString ( R . string . search_position_map_view ) , false ) ; \n + } else { \n + updateSearchPoint ( reqSearchPoint , getString ( R . string . select_search_position ) + STRING0 , true ) ; \n + } \n } \n } \n }", "msg_token": "fix correct Current map center getString R string select_search_position getString R string search_position_map_view init if called from the map screen"} {"diff": " public class SiteSettingsFragment extends PreferenceFragment \n } ) ; \n } \n \n - private boolean hasActivePurchases ( JSONArray purchases ) { \n + private boolean hasActivePurchases ( JSONArray purchases ) throws JSONException { \n for ( int i = NUMBER0 ; i < purchases . length ( ) ; i ++ ) { \n - try { \n - JSONObject purchase = purchases . getJSONObject ( i ) ; \n - int active = purchase . getInt ( STRING0 ) ; \n + JSONObject purchase = purchases . getJSONObject ( i ) ; \n + int active = purchase . getInt ( STRING0 ) ; \n \n - if ( active == NUMBER1 ) { \n - return true ; \n - } \n - } catch ( JSONException e ) { \n - e . printStackTrace ( ) ; \n + if ( active == NUMBER1 ) { \n + return true ; \n } \n }", "msg_token": "Changing method to throw exception instad of catching"} {"diff": " public class Frame extends Lockable < Frame > { \n String name = fr . _names [ i ] ; \n int cnt = NUMBER0 ; \n while ( find ( name ) != - NUMBER1 ) \n - name = fr . _names [ i ] + ( cnt ++ ) ; \n + name = fr . _names [ i ] + STRING0 + ( cnt ++ ) ; \n names [ i ] = name ; \n } \n return add ( fr , names ) ;", "msg_token": "Change the naming convention for duplicate col names to use underscore"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Catalina { \n COMMENT \n protected boolean useNaming = true ; \n \n + \n + SINGLE \n + \n + public Catalina ( ) { \n + setSecurityProtection ( ) ; \n + } \n + \n + \n SINGLE \n \n \n public class Catalina { \n } \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + protected void setSecurityProtection ( ) { \n + SecurityConfig securityConfig = SecurityConfig . newInstance ( ) ; \n + securityConfig . setPackageDefinition ( ) ; \n + securityConfig . setPackageAccess ( ) ; \n + } \n + \n + \n SINGLE \n \n SINGLE", "msg_token": "After deprecating the Embedded class move the package access protection initialisation to Catalina"} {"diff": " public class Updator { \n return null ; \n } \n \n + responseBuilder . incrementModified ( NUMBER0 ) ; \n + \n ToroDocument . DocumentBuilder newDocBuilder = documentBuilderFactory . newDocBuilder ( ) ; \n newDocBuilder . setRoot ( candidate . getRoot ( ) ) ; \n newDocBuilder . setRoot ( copyBuilder . build ( ) ) ; \n public class UpdateImplementation implements CommandImplementation < UpdateArgumen \n SINGLE \n if ( response . isSuccess ( ) ) { \n updateResult = new UpdateResult ( \n - response . getCandidates ( ) , \n - response . getModified ( ) \n + response . getModified ( ) , \n + response . getCandidates ( ) \n ) ; \n writeOpResult = new UpdateOpResult ( \n response . getCandidates ( ) , \n public class UpdateImplementation implements CommandImplementation < UpdateArgumen \n String errMsg = STRING0 ; \n SINGLE \n updateResult = new UpdateResult ( \n - response . getCandidates ( ) , \n response . getModified ( ) , \n + response . getCandidates ( ) , \n errMsg , \n null , \n null", "msg_token": "Fixed update result"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n if ( activity == null ) { \n Slog . w ( TAG , STRING0 ) ; \n validActivity = false ; \n - } \n - if ( activity . app == null || activity . app . thread == null ) { \n + } else if ( activity . app == null || activity . app . thread == null ) { \n Slog . w ( TAG , STRING1 + activity ) ; \n validActivity = false ; \n - } \n - if ( activity . app . pid == Binder . getCallingPid ( ) ) { \n + } else if ( activity . app . pid == Binder . getCallingPid ( ) ) { \n Slog . w ( TAG , STRING2 + activity ) ; \n validActivity = false ; \n }", "msg_token": "Fix NPE in ActivityManagerService"} {"diff": " public class AppInitializer implements IProgress { \n \n \n private void saveGPXTracks ( ) { \n + if ( app . getSettings ( ) . SAVE_GLOBAL_TRACK_TO_GPX . get ( ) ) { \n + app . startNavigationService ( NavigationService . USED_BY_GPX ) ; \n + } \n if ( app . savingTrackHelper . hasDataToSave ( ) ) { \n long timeUpdated = app . savingTrackHelper . getLastTrackPointTime ( ) ; \n if ( System . currentTimeMillis ( ) - timeUpdated >= NUMBER0 * NUMBER1 * NUMBER2 ) { \n public class AppInitializer implements IProgress { \n app . savingTrackHelper . loadGpxFromDatabase ( ) ; \n } \n } \n - if ( app . getSettings ( ) . SAVE_GLOBAL_TRACK_TO_GPX . get ( ) ) { \n - app . startNavigationService ( NavigationService . USED_BY_GPX ) ; \n - } \n }", "msg_token": "Try change task order in AppInitializer to restart NavigationService"} {"diff": " public class ByteEncoder extends Bytes { \n } \n } ; \n \n - public ByteEncoder ( ByteBuffer buf ) { \n - _buf = buf ; \n - _buf . order ( Bytes . ORDER ) ; \n - } \n \n SINGLE", "msg_token": "remove dangerous CTOR not used in this driver"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public class ImageUtil { \n public static Image filter ( Image image , ImageFilter filter ) { \n if ( image == null || filter == null ) return image ; \n return Toolkit . getDefaultToolkit ( ) . createImage ( \n - new FilteredImageSource ( image . getSource ( ) , filter ) ) ; \n + new FilteredImageSource ( toBufferedImage ( image ) . getSource ( ) , filter ) ) ; \n } \n }", "msg_token": "convert image to buffered one before filtering"} {"diff": " public class DelegateAsyncTransformation implements ASTTransformation { \n \n \n private class NoopDelegateAsyncTransactionalMethodTransformer implements DelegateAsyncTransactionalMethodTransformer { \n - @ override \n public void transformTransactionalMethod ( ClassNode classNode , ClassNode delegateClassNode , MethodNode methodNode , ListExpression promiseDecoratorLookupArguments ) { \n SINGLE \n }", "msg_token": "remove Override to make this class compile in Eclipse STS"} {"diff": " \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class CLIOpResult {", "msg_token": "Fixed CLIOpResult comments"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ActivityShare extends ActivityBase { \n SINGLE \n Util . log ( null , Log . INFO , STRING0 ) ; \n return null ; \n - } catch ( FileNotFoundException ex ) { \n - return ex ; \n } catch ( Throwable ex ) { \n - Util . bug ( null , ex ) ; \n return ex ; \n } \n }", "msg_token": "Ignore all import errors support info"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public class TemplateCompiler { \n \n private final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ;", "msg_token": "Fix some comments"} {"diff": " import NAMESPACE ; \n COMMENT \n @ retention ( RetentionPolicy . SOURCE ) \n @ target ( ElementType . TYPE ) \n - public @ interface AutoValue { } \n + public @ interface AutoValue { \n + }", "msg_token": "Add a new line in the annotaiton body to conform to Google style"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class FunctionTranslator extends AbstractTranslator { \n \n @ notnull \n private JsFunction createFunctionObject ( ) { \n - SINGLE \n return context ( ) . getFunctionObject ( descriptor ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n } \n \n private void translateBody ( ) { \n public final class FunctionTranslator extends AbstractTranslator { \n private boolean isLiteral ( ) { \n return functionDeclaration instanceof JetFunctionLiteralExpression ; \n } \n - \n - private boolean isDeclaration ( ) { \n - return ( functionDeclaration instanceof JetNamedFunction ) || \n - ( functionDeclaration instanceof JetPropertyAccessor ) ; \n - } \n }", "msg_token": "remove outdated commented code"} {"diff": " public final class GraphBackedRecursivePackageProvider implements RecursivePacka \n \n SetView < SkyKey > unknownKeys = Sets . difference ( pkgKeys , packages . keySet ( ) ) ; \n if ( ! Iterables . isEmpty ( unknownKeys ) ) { \n - LOGGER . warning ( STRING0 + unknownKeys + STRING1 + pkgKeys ) ; \n + LOGGER . warning ( STRING0 + unknownKeys + STRING1 + pkgKeys \n + + STRING2 + packages . keySet ( ) ) ; \n } \n for ( Map . Entry < SkyKey , Exception > missingOrExceptionEntry : \n graph . getMissingAndExceptions ( unknownKeys ) . entrySet ( ) ) {", "msg_token": "Add some additional logging when packages are not found in the bulk lookup"} {"diff": " public class JsonPathTest { \n private final String JSON_PATH_WITH_NUMBER = STRING0 + \n STRING1 ; \n \n + private final String JSON_PATH_WITH_SIZE = STRING2 + \n + STRING1 ; \n + \n private final String JSON_PATH_WITH_BOOLEAN = STRING3 + \n STRING4 ; \n \n public class JsonPathTest { \n SINGLE \n assertThat ( value , equalTo ( STRING5 ) ) ; \n } \n + \n + @ test public void \n + parses_json_document_with_attribute_name_equal_to_size ( ) { \n + SINGLE \n + final float anInt = new JsonPath ( JSON_PATH_WITH_SIZE ) . getFloat ( STRING6 ) ; \n + \n + SINGLE \n + assertThat ( anInt , is ( FLOAT0 ) ) ; \n + } \n }", "msg_token": "Added test that demonstrates that size can be used in JsonPath expression"} {"diff": " public class OperatorWrapCheck \n SINGLE \n SINGLE \n SINGLE \n - if ( CheckUtils . isOperatorTokenPartOfGenericDeclaration ( aAST ) ) \n - { \n + if ( CheckUtils . isOperatorTokenPartOfGenericDeclaration ( aAST ) ) { \n return ; \n } \n else if ( wOp == OperatorWrapOption . NL", "msg_token": "Fix some Checkstyle errors that have crept in"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZooKeeperMasterModel implements MasterModel { \n private List < String > getHosts ( final ZooKeeperClient client , final String path ) { \n try { \n return Json . read ( client . getNode ( path ) . getBytes ( ) , STRING_LIST_TYPE ) ; \n - } catch ( JsonMappingException | NoNodeException e ) { \n + } catch ( JsonMappingException | JsonParseException | NoNodeException e ) { \n return Collections . emptyList ( ) ; \n } catch ( KeeperException | IOException e ) { \n throw new HeliosRuntimeException ( STRING0 + path , e ) ;", "msg_token": "Handle unparseable JSON when reading hosts"} {"diff": " public class GenericPrincipal implements TomcatPrincipal { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public GenericPrincipal ( String name , String password ) { \n \n this ( name , password , null ) ; \n public class JAASRealm \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - @ deprecated \n public void setAppName ( String name ) { \n appName = name ; \n } \n public class JDBCRealm \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n protected void release ( Connection dbConnection ) { \n \n SINGLE \n public class MemoryRealm extends RealmBase { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n protected Map < String , GenericPrincipal > getPrincipals ( ) { \n return principals ; \n }", "msg_token": "Deprecate unused code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SemanticAnalyzer extends BaseSemanticAnalyzer { \n SINGLE \n SINGLE \n SINGLE \n - basePlan = hepPlan ( basePlan , true , mdProvider , new PushFilterPastProjectRule ( \n + \n + SINGLE \n + basePlan = hepPlan ( basePlan , true , mdProvider , \n + PushSemiJoinPastJoinRule . INSTANCE , \n + new PushSemiJoinPastFilterRule ( HiveFilterRel . DEFAULT_FILTER_FACTORY ) , \n + new PushSemiJoinPastProjectRule ( HiveProjectRel . DEFAULT_PROJECT_FACTORY ) ) ; \n + \n + basePlan = hepPlan ( basePlan , true , mdProvider , \n + new PushFilterPastProjectRule ( \n FilterRelBase . class , HiveFilterRel . DEFAULT_FILTER_FACTORY , HiveProjectRel . class , \n HiveProjectRel . DEFAULT_PROJECT_FACTORY ) , new PushFilterPastSetOpRule ( \n HiveFilterRel . DEFAULT_FILTER_FACTORY ) , new MergeFilterRule (", "msg_token": "Push Semi Join through Project Filter Join John Pullokkaran via Ashutosh Chauhan"} {"diff": " public class EBeansHolder { \n return refClass ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - JClass uniqueClass ( String fullyQualifiedClassName ) { \n - JClass refClass = loadedClasses . get ( fullyQualifiedClassName ) ; \n - if ( refClass == null ) { \n - refClass = codeModel . directClass ( fullyQualifiedClassName ) ; \n - loadedClasses . put ( fullyQualifiedClassName , refClass ) ; \n - } \n - return refClass ; \n - } \n - \n public JCodeModel codeModel ( ) { \n return codeModel ; \n }", "msg_token": "Removed unused method"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " public class ExpandableListView extends ListView { \n \n final int groupPos = posMetadata . position . groupPos ; \n final int groupFlatPos = posMetadata . position . flatListPos ; \n - \n - smoothScrollToPosition ( groupFlatPos + mAdapter . getChildrenCount ( groupPos ) , \n - groupFlatPos ) ; \n + \n + final int shiftedGroupPosition = groupFlatPos + getHeaderViewsCount ( ) ; \n + smoothScrollToPosition ( shiftedGroupPosition + mAdapter . getChildrenCount ( groupPos ) , \n + shiftedGroupPosition ) ; \n } \n \n returnValue = true ;", "msg_token": "Take headers into account when expanding a ExpListView group"} {"diff": " public class ForkingTaskRunner implements TaskRunner , TaskLogStreamer \n } \n \n SINGLE \n - for ( String propName : task . getContext ( ) . keySet ( ) ) { \n - if ( propName . startsWith ( CHILD_PROPERTY_PREFIX ) ) { \n - command . add ( \n - String . format ( \n - STRING0 , \n - propName . substring ( CHILD_PROPERTY_PREFIX . length ( ) ) , \n - task . getContextValue ( propName ) \n - ) \n - ) ; \n + final Map < String , Object > context = task . getContext ( ) ; \n + if ( context != null ) { \n + for ( String propName : context . keySet ( ) ) { \n + if ( propName . startsWith ( CHILD_PROPERTY_PREFIX ) ) { \n + command . add ( \n + String . format ( \n + STRING0 , \n + propName . substring ( CHILD_PROPERTY_PREFIX . length ( ) ) , \n + task . getContextValue ( propName ) \n + ) \n + ) ; \n + } \n } \n }", "msg_token": "add null check for task context"} {"diff": " public interface FileWriteLocationPolicy { \n COMMENT \n COMMENT \n COMMENT \n - public WorkerNetAddress getWorkerForNextBlock ( List < BlockWorkerInfo > workerInfoList , \n - long blockSizeBytes ) ; \n + WorkerNetAddress getWorkerForNextBlock ( List < BlockWorkerInfo > workerInfoList , long blockSizeBytes ) ; \n }", "msg_token": "Removing redundant modifier"} {"diff": " public abstract class AbstractMetrics < QP extends AbstractMetrics . QueryPhase , M e \n COMMENT \n COMMENT \n private String buildMetricName ( BrokerRequest request , String metricName ) { \n - return _metricPrefix + request . getQuerySource ( ) . getTableName ( ) + STRING0 + metricName ; \n + if ( request != null && request . getQuerySource ( ) != null && request . getQuerySource ( ) . getTableName ( ) != null ) { \n + return _metricPrefix + request . getQuerySource ( ) . getTableName ( ) + STRING0 + metricName ; \n + } else { \n + return _metricPrefix + STRING1 + metricName ; \n + } \n } \n \n COMMENT", "msg_token": "Fix NPE in metrics if the BrokerRequest has a null query source"} {"diff": " public class TimeTest { \n Assert . assertEquals ( Time . secsToMillisLong ( FLOAT0 ) , NUMBER0 ) ; \n } \n \n - @ test \n - public void ifNotSimulatingIsSimulatingReturnsFalse ( ) { \n - Assert . assertFalse ( Time . isSimulating ( ) ) ; \n - } \n - \n @ test ( expected = IllegalStateException . class ) \n public void ifNotSimulatingAdvanceTimeThrows ( ) { \n Time . advanceTime ( NUMBER1 ) ; \n } \n \n @ test \n - public void ifSimulatingIsSimulatingReturnsTrue ( ) { \n + public void isSimulatingReturnsTrueDuringSimulationTest ( ) { \n + Assert . assertFalse ( Time . isSimulating ( ) ) ; \n Time . startSimulating ( ) ; \n Assert . assertTrue ( Time . isSimulating ( ) ) ; \n Time . stopSimulating ( ) ;", "msg_token": "combine two tests to make things clearer"} {"diff": " public class ReceiverTestCase { \n \n @ override \n public void onComplete ( HttpServerExchange exchange , Sender sender ) { \n + System . out . println ( STRING0 ) ; \n receiver . resume ( ) ; \n } \n \n @ override \n public void onException ( HttpServerExchange exchange , Sender sender , IOException exception ) { \n + System . out . println ( STRING1 ) ; \n + exception . printStackTrace ( ) ; \n exchange . setResponseCode ( StatusCodes . INTERNAL_SERVER_ERROR ) ; \n exchange . endExchange ( ) ; \n } \n \n @ override \n public void handle ( HttpServerExchange exchange , byte [ ] message , boolean last ) { \n + System . out . println ( STRING2 + message . length + STRING3 + last ) ; \n receiver . pause ( ) ; \n sender . send ( ByteBuffer . wrap ( message ) , last ? IoCallback . END_EXCHANGE : this ) ; \n }", "msg_token": "Add additional output to test"} {"diff": " public class BeaconManager { \n COMMENT \n public static final long DEFAULT_EXIT_PERIOD = NUMBER0 ; \n \n + private static long sExitRegionPeriod = DEFAULT_EXIT_PERIOD ; \n + \n private long foregroundScanPeriod = DEFAULT_FOREGROUND_SCAN_PERIOD ; \n private long foregroundBetweenScanPeriod = DEFAULT_FOREGROUND_BETWEEN_SCAN_PERIOD ; \n private long backgroundScanPeriod = DEFAULT_BACKGROUND_SCAN_PERIOD ; \n private long backgroundBetweenScanPeriod = DEFAULT_BACKGROUND_BETWEEN_SCAN_PERIOD ; \n \n - private static long exitRegionPeriod = DEFAULT_EXIT_PERIOD ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class BeaconManager { \n COMMENT \n COMMENT \n public static void setRegionExitPeriod ( long regionExitPeriod ) { \n - exitRegionPeriod = regionExitPeriod ; \n + sExitRegionPeriod = regionExitPeriod ; \n } \n \n COMMENT \n public class BeaconManager { \n COMMENT \n COMMENT \n public static long getRegionExitPeriod ( ) { \n - return exitRegionPeriod ; \n + return sExitRegionPeriod ; \n } \n \n COMMENT", "msg_token": "follow the android style spec for static variables"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n \n - public class ManagedBeanSubsystemElementParser implements XMLElementReader < ParseResult < ManagedBeansSubsystemElement > > { \n + public class ManagedBeanSubsystemElementParser implements XMLElementReader < ParseResult < ? super ManagedBeansSubsystemElement > > { \n \n COMMENT \n - public void readElement ( final XMLExtendedStreamReader xmlExtendedStreamReader , final ParseResult < ManagedBeansSubsystemElement > result ) throws XMLStreamException { \n + public void readElement ( final XMLExtendedStreamReader xmlExtendedStreamReader , final ParseResult < ? super ManagedBeansSubsystemElement > result ) throws XMLStreamException { \n result . setResult ( new ManagedBeansSubsystemElement ( xmlExtendedStreamReader ) ) ; \n } \n } \n final class ManagedBeansSubsystemElement extends AbstractSubsystemElement < Manage \n \n COMMENT \n public void writeContent ( XMLExtendedStreamWriter streamWriter ) throws XMLStreamException { \n + streamWriter . writeEndElement ( ) ; \n } \n }", "msg_token": "Fix parser bugs in managed bean subsystem"} {"diff": " public class ImportUtils { \n if ( referenceFound ) { \n return ; \n } \n - final String text = StringUtils . stripAngleBrackets ( reference . getText ( ) ) ; \n - if ( text . indexOf ( ( int ) STRING0 ) >= NUMBER0 || ! name . equals ( text ) ) { \n - return ; \n - } \n + \n + if ( reference . getQualifier ( ) != null || reference . getParameterList ( ) != null ) return ; \n + \n final PsiElement element = reference . resolve ( ) ; \n if ( ! ( element instanceof PsiClass ) || element instanceof PsiTypeParameter ) { \n return ;", "msg_token": "do not obtain text"} {"diff": " public class RotationLockTile extends QSTile < QSTile . BooleanState > { \n : mController . isRotationLocked ( ) ; \n final boolean userInitiated = arg != null ? ( ( UserBoolean ) arg ) . userInitiated : false ; \n state . visible = mController . isRotationLockAffordanceVisible ( ) ; \n - if ( state . value == rotationLocked ) { \n - SINGLE \n + if ( state . value == rotationLocked && state . contentDescription != null ) { \n + SINGLE \n return ; \n } \n state . value = rotationLocked ;", "msg_token": "Fix invisible rotation tile"} {"diff": " public abstract class FileInputFormat < OT > implements InputFormat < OT , FileInputSp \n for ( FileStatus dir : fs . listStatus ( path ) ) { \n if ( dir . isDir ( ) ) { \n if ( acceptFile ( dir ) ) { \n - addNestedFiles ( dir . getPath ( ) , files , length , logExcludedFiles ) ; \n + length += addNestedFiles ( dir . getPath ( ) , files , length , logExcludedFiles ) ; \n } else { \n if ( logExcludedFiles && LOG . isDebugEnabled ( ) ) { \n LOG . debug ( STRING0 + dir . getPath ( ) . toString ( ) + STRING1 ) ;", "msg_token": "bugfix fix FileInputFormat for exclusively two level deep nested files"} {"diff": " public class DefaultGradient implements Gradient { \n List < INDArray > ret = new ArrayList < > ( ) ; \n for ( String s : order ) { \n if ( ! gradientForVariable ( ) . containsKey ( s ) ) \n - throw new IllegalStateException ( STRING0 + s + STRING1 ) ; \n + continue ; \n ret . add ( gradientForVariable ( ) . get ( s ) ) ; \n } \n return Nd4j . toFlattened ( ret ) ;", "msg_token": "prevent exception with not found values"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n public class TestRaptorDistributedQueries \n throws Exception \n { \n assertUpdate ( STRING0 , STRING1 ) ; \n + \n MaterializedResult actualResults = computeActual ( STRING2 ) ; \n assertEquals ( actualResults . getTypes ( ) , ImmutableList . of ( DATE , BIGINT , VARCHAR ) ) ; \n - List < MaterializedRow > actualRows = actualResults . getMaterializedRows ( ) ; \n - String arbitraryUuid = null ; \n - for ( MaterializedRow row : actualRows ) { \n + UUID arbitraryUuid = null ; \n + for ( MaterializedRow row : actualResults . getMaterializedRows ( ) ) { \n Object uuid = row . getField ( NUMBER0 ) ; \n assertInstanceOf ( uuid , String . class ) ; \n - SINGLE \n - UUID . fromString ( ( String ) uuid ) ; \n - arbitraryUuid = ( String ) uuid ; \n + arbitraryUuid = UUID . fromString ( ( String ) uuid ) ; \n } \n assertNotNull ( arbitraryUuid ) ;", "msg_token": "Simplify Raptor testShardUuidHiddenColumn"} {"diff": " public class ComputationGraph implements Serializable , Model { \n COMMENT \n public void fit ( MultiDataSet multiDataSet ) { \n if ( multiDataSet . hasMaskArrays ( ) ) { \n - throw new UnsupportedOperationException ( STRING0 ) ; \n + setLayerMaskArrays ( multiDataSet . getFeaturesMaskArrays ( ) , multiDataSet . getLabelsMaskArrays ( ) ) ; \n } \n fit ( multiDataSet . getFeatures ( ) , multiDataSet . getLabels ( ) ) ; \n + if ( multiDataSet . hasMaskArrays ( ) ) clearLayerMaskArrays ( ) ; \n } \n \n COMMENT", "msg_token": "Fix mask arrays for compgraph fit MultiDataSet"} {"diff": " public class Http403ForbiddenEntryPoint implements AuthenticationEntryPoint { \n if ( logger . isDebugEnabled ( ) ) { \n logger . debug ( STRING0 ) ; \n } \n - HttpServletResponse httpResponse = ( HttpServletResponse ) response ; \n - httpResponse . sendError ( HttpServletResponse . SC_FORBIDDEN , STRING1 ) ; \n + response . sendError ( HttpServletResponse . SC_FORBIDDEN , STRING1 ) ; \n }", "msg_token": "Remove unnecessary cast in Http403ForbiddenEntryPoint"} {"diff": " public class WebView extends AbsoluteLayout \n protected void finalize ( ) throws Throwable { \n try { \n if ( mNativeClass != NUMBER0 ) { \n - post ( new Runnable ( ) { \n + mPrivateHandler . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n destroy ( ) ;", "msg_token": "DO NOT MERGE Fix finalization"} {"diff": " public class SystemConfig { \n \n private boolean debugEnabled ; \n private boolean monitoringEnabled ; \n - private boolean reflectionsCacheEnabled ; \n \n public long getDayNightLengthInMs ( ) { \n return dayNightLengthInMs ; \n public class SystemConfig { \n this . debugEnabled = debugEnabled ; \n } \n \n - public boolean isReflectionsCacheEnabled ( ) { \n - return reflectionsCacheEnabled ; \n - } \n - \n - public void setReflectionsCacheEnabled ( boolean reflectionsCacheEnabled ) { \n - this . reflectionsCacheEnabled = reflectionsCacheEnabled ; \n - } \n - \n public boolean isMonitoringEnabled ( ) { \n return monitoringEnabled ; \n }", "msg_token": "Removed reflection cache flag from system config moved to build system"} {"diff": " public class MyAdvancedEchoCreator implements WebSocketCreator \n @ override \n public Object createWebSocket ( UpgradeRequest req , UpgradeResponse resp ) \n { \n - String [ ] type = req . getParameterMap ( ) . get ( STRING0 ) ; \n - if ( ( type != null ) && ( type . length >= NUMBER0 ) && ( STRING1 . equals ( type [ NUMBER1 ] ) ) ) \n + for ( String subprotocol : req . getSubProtocols ( ) ) \n { \n - return binaryEcho ; \n + if ( STRING1 . equals ( subprotocol ) ) \n + { \n + resp . setAcceptedSubProtocol ( subprotocol ) ; \n + return binaryEcho ; \n + } \n + if ( STRING2 . equals ( subprotocol ) ) \n + { \n + resp . setAcceptedSubProtocol ( subprotocol ) ; \n + return textEcho ; \n + } \n } \n - return textEcho ; \n + \n + SINGLE \n + return null ; \n } \n }", "msg_token": "Using subprotocols its more websockety in example instead"} {"diff": " public final class ContactsContract { \n COMMENT \n COMMENT \n public static final String DELETED = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String SHOULD_SYNC = STRING1 ; \n } \n \n COMMENT", "msg_token": "Bring back SHOULD_SYNC flag so sync groups can be edited"} {"diff": " public final class ZWaveNetworkMonitor implements ZWaveEventListener { \n SINGLE \n node . resetResendCount ( ) ; \n } \n + else { \n + logger . debug ( STRING0 , node . getNodeId ( ) ) ; \n + } \n } \n }", "msg_token": "Add debug message for dead nodes"} {"diff": " public class AccessibilityNodeInfoCache { \n refreshCachedNode ( event . getSourceNodeId ( ) ) ; \n } break ; \n case AccessibilityEvent . TYPE_VIEW_SCROLLED : { \n - clearSubTreeLocked ( event . getSourceNodeId ( ) ) ; \n + synchronized ( mLock ) { \n + clearSubTreeLocked ( event . getSourceNodeId ( ) ) ; \n + } \n } break ; \n case AccessibilityEvent . TYPE_WINDOW_CONTENT_CHANGED : { \n synchronized ( mLock ) {", "msg_token": "Add missing locking when updating the accessibility node info cache"} {"diff": " public class AvoidEscapedUnicodeCharactersCheck \n \n final String literal = ast . getText ( ) ; \n \n - if ( hasUnicodeChar ( literal ) && ! ( allowByTailComment && haastrailComment ( ast ) \n + if ( hasUnicodeChar ( literal ) && ! ( allowByTailComment && hasTrailComment ( ast ) \n || isAllCharactersEscaped ( literal ) \n || allowEscapesForControlCharacters \n && isOnlyUnicodeValidChars ( literal , sUnicodeControl ) \n public class AvoidEscapedUnicodeCharactersCheck \n COMMENT \n COMMENT \n COMMENT \n - private boolean haastrailComment ( DetailAST ast ) \n + private boolean hasTrailComment ( DetailAST ast ) \n { \n boolean result = false ; \n final DetailAST variableDef = getVariableDef ( ast ) ;", "msg_token": "Rename method haastrailComment to hasTrailComment"} {"diff": " public class LibraryService extends Service { \n \n @ override \n public Bitmap getCover ( final String book , final int maxWidth , final int maxHeight , boolean [ ] delayed ) { \n - System . err . println ( SerializerUtil . deserializeBook ( book ) . getTitle ( ) + i ++ ) ; \n delayed [ NUMBER0 ] = false ; \n final BitmapCache . Container container = myCoversCache . get ( book ) ; \n if ( container != null ) {", "msg_token": "deleted debug line"} {"diff": " public class CommitChangeListDialog extends DialogWrapper implements CheckinProj \n protected void selectChange ( @ notnull Change change ) { \n myBrowser . select ( Collections . singletonList ( change ) ) ; \n } \n + \n + @ override \n + protected void onAfterNavigate ( ) { \n + doCancelAction ( ) ; \n + } \n } \n }", "msg_token": "close commit dialog of GoToSource"} {"diff": " public class AndroidInput implements Input , OnKeyListener , OnTouchListener { \n if ( context instanceof Activity ) { \n orientation = ( ( Activity ) context ) . getWindowManager ( ) . getDefaultDisplay ( ) . getOrientation ( ) ; \n } else { \n - final DisplayMetrics metrics = new DisplayMetrics ( ) ; \n - final Display display = ( ( WindowManager ) context . getSystemService ( Context . WINDOW_SERVICE ) ) . getDefaultDisplay ( ) ; \n - \n - display . getMetrics ( metrics ) ; \n - \n - orientation = display . getOrientation ( ) ; \n + orientation = ( ( WindowManager ) context . getSystemService ( Context . WINDOW_SERVICE ) ) . getDefaultDisplay ( ) . getOrientation ( ) ; \n } \n \n switch ( orientation ) {", "msg_token": "Remove unnecessary staff"} {"diff": " public class TfsShellUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static List < TachyonURI > getTachyonURIs ( TachyonFileSystem tachyonClient , \n TachyonURI inputURI ) throws IOException { \n public class TfsShellUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private static List < TachyonURI > getTachyonURIs ( TachyonFileSystem tachyonClient , \n TachyonURI inputURI , TachyonURI parentDir ) throws IOException { \n import NAMESPACE ; \n public final class TouchCommand extends AbstractTfsShellCommand { \n \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public final class UnmountCommand extends AbstractTfsShellCommand { \n \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public final class UnpinCommand extends WithWildCardPathCommand { \n \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public final class UnsetTTLCommand extends AbstractTfsShellCommand { \n \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Incorporated PR comments"} {"diff": " public class NotificationsActivity extends WPActionBarActivity \n ReaderPostDetailFragment readerFragment = ReaderPostDetailFragment . newInstance ( remoteBlogId , postId ) ; \n String tagForFragment = getString ( R . string . fragment_tag_reader_post_detail ) ; \n FragmentTransaction ft = getFragmentManager ( ) . beginTransaction ( ) ; \n - ft . replace ( R . id . layout_fragment_container , readerFragment , tagForFragment ) \n + ft . add ( R . id . layout_fragment_container , readerFragment , tagForFragment ) \n . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_FADE ) \n . addToBackStack ( tagForFragment ) \n . commit ( ) ; \n public class NotificationsActivity extends WPActionBarActivity \n CommentDetailFragment commentFragment = CommentDetailFragment . newInstance ( note ) ; \n String tagForFragment = getString ( R . string . fragment_tag_comment_detail ) ; \n FragmentTransaction ft = getFragmentManager ( ) . beginTransaction ( ) ; \n - ft . replace ( R . id . layout_fragment_container , commentFragment , tagForFragment ) \n + ft . add ( R . id . layout_fragment_container , commentFragment , tagForFragment ) \n . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_FADE ) \n . addToBackStack ( tagForFragment ) \n . commit ( ) ;", "msg_token": "Using add instead of replace for the Comment Post FragmentTransactions"} {"diff": " public class TestSsl extends TomcatBaseTest { \n } \n \n private void doRequest ( OutputStream os , Reader r ) throws IOException { \n - char [ ] expectedResponseLine = STRING0 . toCharArray ( ) ; \n + char [ ] expectedResponseLine = STRING1 . toCharArray ( ) ; \n \n os . write ( STRING2 . getBytes ( ) ) ; \n os . write ( STRING3 . getBytes ( ) ) ;", "msg_token": "Remove test message comparison"} {"diff": " import NAMESPACE ; \n public class SquidConfiguration { \n \n private Charset charset = Charset . defaultCharset ( ) ; \n + private boolean stopSquidOnException = false ; \n \n public SquidConfiguration ( ) { \n } \n public class SquidConfiguration { \n return charset ; \n } \n \n + public void setStopSquidOnException ( boolean stopSquidOnException ) { \n + this . stopSquidOnException = stopSquidOnException ; \n + } \n + \n + public boolean stopSquidOnException ( ) { \n + return stopSquidOnException ; \n + } \n + \n }", "msg_token": "Add a new property stopSquidOnException to the SquidConfiguration bean"} {"diff": " public class DefaultProjectFileSystem implements ProjectFileSystem { \n this . file = file ; \n } \n \n - public File getBaseDir ( ) { \n + public File getFileBaseDir ( ) { \n return basedir ; \n } \n \n import NAMESPACE ; \n COMMENT \n public interface InputFile { \n \n - File getBaseDir ( ) ; \n + File getFileBaseDir ( ) ; \n \n File getFile ( ) ;", "msg_token": "Rename method in InputFile from getBaseDir to getFileBaseDir"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class JdbcDaoTests extends TestCase { \n + public class JdbcDaoImplTests extends TestCase { \n SINGLE \n \n - public JdbcDaoTests ( ) { \n + public JdbcDaoImplTests ( ) { \n } \n \n - public JdbcDaoTests ( String arg0 ) { \n + public JdbcDaoImplTests ( String arg0 ) { \n super ( arg0 ) ; \n } \n \n public class JdbcDaoTests extends TestCase { \n return dao ; \n } \n \n - private JdbcDaoImpl makePopulatedJdbcDaoWithRolePrefix ( ) \n - throws Exception { \n + private JdbcDaoImpl makePopulatedJdbcDaoWithRolePrefix ( ) throws Exception { \n JdbcDaoImpl dao = new JdbcDaoImpl ( ) ; \n dao . setDataSource ( PopulatedDatabase . getDataSource ( ) ) ; \n dao . setRolePrefix ( STRING0 ) ;", "msg_token": "Renamed test class to match target JdbcDaoImpl"} {"diff": " public class DelegateInvocationHandler < T > implements InvocationHandler \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n + STRING4 + \n STRING5 + \n STRING6 ) ; \n }", "msg_token": "Removing core edge from error message"} {"diff": " public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen \n clusterService . submitStateUpdateTask ( STRING0 + node + STRING1 , new ClusterStateUpdateTask ( ) { \n @ override public ClusterState execute ( ClusterState currentState ) { \n if ( currentState . nodes ( ) . nodeExists ( node . id ( ) ) ) { \n - SINGLE \n + SINGLE \n logger . warn ( STRING2 , node ) ; \n - return currentState ; \n + SINGLE \n + return ClusterState . builder ( ) . state ( currentState ) . build ( ) ; \n } \n return newClusterStateBuilder ( ) . state ( currentState ) . nodes ( currentState . nodes ( ) . newNode ( node ) ) . build ( ) ; \n }", "msg_token": "republish the cluster state if a node exists in the cluster"} {"diff": " public class ChartTouchHandler { \n return false ; \n } \n boolean needInvalidate = false ; \n - SINGLE \n - \n - needInvalidate = scaleGestureDetector . onTouchEvent ( event ) ; \n - needInvalidate = gestureDetector . onTouchEvent ( event ) || needInvalidate ; \n \n if ( isValueTouchEnabled ) { \n needInvalidate = computeTouch ( event ) || needInvalidate ; \n } \n \n + SINGLE \n + SINGLE \n + if ( ! needInvalidate ) { \n + \n + needInvalidate = scaleGestureDetector . onTouchEvent ( event ) ; \n + \n + needInvalidate = gestureDetector . onTouchEvent ( event ) || needInvalidate ; \n + } \n + \n return needInvalidate ; \n } \n \n public class ChartTouchHandler { \n needInvalidate = true ; \n } \n } \n + \n break ; \n case MotionEvent . ACTION_CANCEL : \n if ( renderer . isTouched ( ) ) {", "msg_token": "Improved touch handling now gestures don t obscure value touch events"} {"diff": " public class SimpleJdbcCall extends AbstractJdbcCall implements SimpleJdbcCallOp \n return doExecute ( args ) ; \n } \n \n - public Map < String , Object > execute ( Map < String , Object > args ) { \n + public Map < String , Object > execute ( Map < String , ? > args ) { \n return doExecute ( args ) ; \n } \n \n public interface SimpleJdbcCallOperations { \n COMMENT \n COMMENT \n COMMENT \n - Map < String , Object > execute ( Map < String , Object > args ) ; \n + Map < String , Object > execute ( Map < String , ? > args ) ; \n \n COMMENT \n COMMENT", "msg_token": "relaxed Map String Object to Map String"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class DGMMemberContributor extends NonCodeMembersContributor { \n + \n @ override \n public void processDynamicElements ( @ notnull PsiType qualifierType , \n PsiClass aClass , \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( { STRING0 } ) \n public class ResolveUtil { \n private static final Logger LOG = Logger . getInstance ( ResolveUtil . class ) ;", "msg_token": "docs added warning unsuppressed"} {"diff": " public final class Main implements ActionListener { \n . getToPos ( ) , text ) ; \n sb . append ( STRING0 + messages . getString ( STRING1 ) + STRING2 + context ) ; \n sb . append ( STRING3 ) ; \n + \n + COMMENT \n + COMMENT \n + if ( match . getRule ( ) . getUrl ( ) != null ) { \n + sb . append ( STRING4 ) ; \n + sb . append ( match . getRule ( ) . getUrl ( ) . toString ( ) ) ; \n + sb . append ( STRING5 ) ; \n + } \n + COMMENT \n i ++ ; \n } \n final long endTime = System . currentTimeMillis ( ) ;", "msg_token": "add a comment not yet anything useful"} {"diff": " class BottomBarBadge extends TextView { \n \n void adjustPositionAndSize ( BottomBarTab tab ) { \n AppCompatImageView iconView = tab . getIconView ( ) ; \n - setX ( iconView . getX ( ) + iconView . getWidth ( ) ) ; \n - setTranslationY ( NUMBER0 ) ; \n + ViewGroup . LayoutParams params = getLayoutParams ( ) ; \n \n int size = Math . max ( getWidth ( ) , getHeight ( ) ) ; \n + float xOffset = iconView . getWidth ( ) ; \n \n - ViewGroup . LayoutParams params = getLayoutParams ( ) ; \n + if ( tab . getType ( ) == BottomBarTab . Type . TABLET ) { \n + xOffset /= FLOAT0 ; \n + } \n + \n + setX ( iconView . getX ( ) + xOffset ) ; \n + setTranslationY ( NUMBER0 ) ; \n \n if ( params . width != size || params . height != size ) { \n params . width = size ;", "msg_token": "Fixed the badge position on tablets"} {"diff": " public class DexMojo extends AbstractAndroidMojo \n \n Set < File > inputFiles = getDexInputFiles ( ) ; \n StringBuilder sb = new StringBuilder ( ) ; \n - sb . append ( STRING0 ) . append ( StringUtils . join ( inputFiles , File . pathSeparatorChar ) ) . append ( STRING0 ) ; \n + sb . append ( StringUtils . join ( inputFiles , File . pathSeparatorChar ) ) ; \n commands . add ( sb . toString ( ) ) ; \n \n String executable = getAndroidSdk ( ) . getMainDexClasses ( ) . getAbsolutePath ( ) ;", "msg_token": "Fix quotes problem with dex and multidex"} {"diff": " public class WithingsGenericBindingProvider extends \n MeasureType measureType = null ; \n \n if ( configElements . length == NUMBER0 ) { \n - measureType = MeasureType . valueOf ( configElements [ NUMBER0 ] . toUpperCase ( ) ) ; \n + measureType = MeasureType . valueOf ( configElements [ NUMBER1 ] . toUpperCase ( ) ) ; \n } \n else if ( configElements . length == NUMBER2 ) { \n accountId = configElements [ NUMBER1 ] ;", "msg_token": "Fixed bad array index in withings binding config"} {"diff": " public final class Channels { \n return newDoubleChannel ( bufferSize , defaultPolicy ) ; \n } \n \n - SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean isTickerChannel ( ReceivePort < ? > channel ) { \n + return channel instanceof QueueChannel \n + && ( ( QueueChannel ) channel ) . overflowPolicy == OverflowPolicy . DISPLACE && ( ( QueueChannel ) channel ) . capacity ( ) > NUMBER0 ; \n + } \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added Channels isTickerChannel"} {"diff": " public class BinaryClient extends Connection { \n } \n \n public BinaryClient ( ) { \n - this ( Protocol . DEFAULT_HOST , Protocol . DEFAULT_PORT ) ; \n + super ( Protocol . DEFAULT_HOST , Protocol . DEFAULT_PORT ) ; \n } \n \n public BinaryClient ( final String host ) { \n import NAMESPACE ; \n public class Client extends BinaryClient implements Commands { \n \n public Client ( ) { \n - this ( Protocol . DEFAULT_HOST , Protocol . DEFAULT_PORT ) ; \n + super ( Protocol . DEFAULT_HOST , Protocol . DEFAULT_PORT ) ; \n } \n \n public Client ( final String host ) { \n public class Jedis extends BinaryJedis implements JedisCommands , \n \n protected Pool < Jedis > dataSource = null ; \n \n - public Jedis ( ) { \n - super ( Protocol . DEFAULT_HOST , Protocol . DEFAULT_PORT ) ; \n - } \n + public Jedis ( ) { } \n \n public Jedis ( final String host ) { \n super ( host ) ;", "msg_token": "using super instead of this to keep the code style"} {"diff": " public class Activity extends ContextThemeWrapper \n COMMENT \n COMMENT \n private boolean isTopOfTask ( ) { \n - if ( mToken == null || mWindow == null || ! mWindowAdded ) { \n + if ( mToken == null || mWindow == null ) { \n return false ; \n } \n try {", "msg_token": "Fix Activity Transition mess up"} {"diff": " public class ASTNode { \n COMMENT \n COMMENT \n public Object getNodeMetaData ( Object key ) { \n - if ( metaDataMap == null ) return null ; \n return metaDataMap . get ( key ) ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void copyNodeMetaData ( ASTNode other ) { \n + metaDataMap . putAll ( other . metaDataMap ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "enable ASTNode to copy meta data from another node"} {"diff": " public class ChangesViewContentManager extends AbstractProjectComponent implemen \n } \n \n public void removeContent ( final Content content ) { \n - if ( myContentManager != null ) { SINGLE \n + if ( myContentManager != null && ( ! myContentManager . isDisposed ( ) ) ) { SINGLE \n myContentManager . removeContent ( content , true ) ; \n } \n }", "msg_token": "do not remove contents if project is being disposed"} {"diff": " public class WorldEditPlugin extends JavaPlugin { \n } \n controller . clearSessions ( ) ; \n config . unload ( ) ; \n + this . getServer ( ) . getScheduler ( ) . cancelTasks ( this ) ; \n } \n \n COMMENT", "msg_token": "Cancel scheduler tasks onDisable to prevent nag warnings"} {"diff": " class EditSignatureBalloon { \n } \n \n private Balloon createBalloon ( JPanel panel ) { \n - BalloonBuilder builder = JBPopupFactory . getInstance ( ) . createDialogBalloonBuilder ( panel , STRING0 ) ; \n - builder . setHideOnClickOutside ( true ) ; \n - builder . setHideOnKeyOutside ( true ) ; \n + Balloon balloon = JBPopupFactory . getInstance ( ) . createDialogBalloonBuilder ( panel , STRING0 ) \n + . setHideOnClickOutside ( true ) \n + . setHideOnKeyOutside ( true ) \n + . setBlockClicksThroughBalloon ( true ) . createBalloon ( ) ; \n \n - Balloon balloon = builder . createBalloon ( ) ; \n balloon . addListener ( new JBPopupAdapter ( ) { \n @ override \n public void onClosed ( LightweightWindowEvent event ) {", "msg_token": "Blocking clicks through balloon"} {"diff": " public class Accounts extends K9ListActivity implements OnItemClickListener { \n . deleteAccount ( realAccount ) ; \n K9 . setServicesEnabled ( Accounts . this ) ; \n refresh ( ) ; \n + mActionMode . finish ( ) ; \n } \n } \n } ) ;", "msg_token": "Correctly close the context action mode when deleting an account"} {"diff": " public class ImmediateDirectoryBuildTargetPattern implements BuildTargetPattern \n return Objects . hashCode ( cellPath , pathWithinCell ) ; \n } \n \n + @ override \n + public String toString ( ) { \n + return STRING0 + cellPath . getFileName ( ) . toString ( ) + STRING1 + pathWithinCell . toString ( ) + STRING2 ; \n + } \n + \n } \n public class SingletonBuildTargetPattern implements BuildTargetPattern { \n return target . hashCode ( ) ; \n } \n \n + @ override \n + public String toString ( ) { \n + return target . toString ( ) ; \n + } \n + \n } \n public class SubdirectoryBuildTargetPattern implements BuildTargetPattern { \n return Objects . hashCode ( cellPath , pathWithinCell ) ; \n } \n \n + @ override \n + public String toString ( ) { \n + return STRING0 + cellPath . getFileName ( ) . toString ( ) + STRING1 + pathWithinCell . toString ( ) + STRING3 ; \n + } \n + \n }", "msg_token": "Add a toString method for BuildTargetPattern"} {"diff": " public class HomematicBinding extends AbstractActiveBinding < HomematicBindingProv \n } \n } \n \n + protected void addBindingProvider ( HomematicBindingProvider bindingProvider ) { \n + super . addBindingProvider ( bindingProvider ) ; \n + } \n + \n + protected void removeBindingProvider ( HomematicBindingProvider bindingProvider ) { \n + super . removeBindingProvider ( bindingProvider ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class HomematicBinding extends AbstractActiveBinding < HomematicBindingProv \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private void informCommunicator ( HomematicBindingProvider hmProvider , String itemName ) {", "msg_token": "homematic add add removeBindingProvider methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class PeerGroup extends AbstractExecutionThreadService implements Transac \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void removePeerFilterProvider ( PeerFilterProvider provider ) { \n + lock . lock ( ) ; \n + try { \n + checkNotNull ( provider ) ; \n + checkArgument ( peerFilterProviders . remove ( provider ) ) ; \n + } finally { \n + lock . unlock ( ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public void removeWallet ( Wallet wallet ) {", "msg_token": "add a removePeerFilterProvider to complement add"} {"diff": " public class JavaGenerator implements CodeGenerator \n final String lengthJavaType = javaTypeName ( lengthEncoding . primitiveType ( ) ) ; \n final String byteOrderStr = byteOrderString ( lengthEncoding ) ; \n \n + sb . append ( String . format ( \n + STRING0 + \n + indent + STRING1 + \n + indent + STRING2 + \n + indent + STRING3 + \n + indent + STRING4 , \n + toLowerFirstChar ( propertyName ) , \n + sizeOfLengthField \n + ) ) ; \n + \n generateDataEncodeMethods ( \n sb , \n propertyName ,", "msg_token": "Java Generate header length accessor in in encoders for var data fields"} {"diff": " public class UsbDebuggingManager implements Runnable { \n \n mOutputStream = null ; \n mSocket = null ; \n + break ; \n \n case MESSAGE_ADB_ALLOW : { \n String key = ( String ) msg . obj ;", "msg_token": "add missing break in switch"} {"diff": " public interface OfflinePlayer extends ServerOperator , AnimalTamer , Configuratio \n COMMENT \n COMMENT \n public Player getPlayer ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public long getFirstPlayed ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public long getLastPlayed ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean hasPlayedBefore ( ) ; \n }", "msg_token": "Added OfflinePlayer Player"} {"diff": " public class CertificateVerificationServiceImpl \n \n this . getContentPane ( ) . add ( southPanel , BorderLayout . SOUTH ) ; \n \n - validateTree ( ) ; \n pack ( ) ; \n } \n \n public class CertificateVerificationServiceImpl \n certPanel . removeAll ( ) ; \n certButton . setText ( GuiActivator . getResources ( ) \n . getI18NString ( STRING0 ) ) ; \n + \n + certPanel . revalidate ( ) ; \n + certPanel . repaint ( ) ; \n pack ( ) ; \n - validateTree ( ) ; \n - repaint ( ) ; \n certOpened = false ; \n setLocationRelativeTo ( getParent ( ) ) ; \n return ; \n public class CertificateVerificationServiceImpl \n certButton . setText ( GuiActivator . getResources ( ) \n . getI18NString ( STRING1 ) ) ; \n \n - validateTree ( ) ; \n + certPanel . revalidate ( ) ; \n + certPanel . repaint ( ) ; \n pack ( ) ; \n - repaint ( ) ; \n certOpened = true ; \n setLocationRelativeTo ( getParent ( ) ) ; \n }", "msg_token": "Fix certificate dialog under macosx"} {"diff": " public class RecyclerRefreshLayout extends ViewGroup \n } \n \n private void setTargetOrRefreshViewOffsetY ( int offsetY ) { \n + if ( mTarget == null ) { \n + return ; \n + } \n + \n switch ( mRefreshStyle ) { \n case FLOAT : \n mRefreshView . offsetTopAndBottom ( offsetY ) ;", "msg_token": "fix mTarget throws NullPointerException bug"} {"diff": " public class SelectorKernel extends AbstractKernel \n \n SINGLE \n try { \n - select ( ) ; \n + select ( ) ; \n } catch ( ClosedSelectorException e ) { \n if ( ! go . get ( ) ) \n return ; SINGLE \n throw new KernelException ( STRING0 , e ) ; \n + } catch ( CancelledKeyException e ) { \n + if ( ! go . get ( ) ) \n + return ; SINGLE \n + throw new KernelException ( STRING1 , e ) ; \n } catch ( IOException e ) { \n if ( ! go . get ( ) ) \n return ; SINGLE", "msg_token": "Catch another case where shutdown state can cause a"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class App { \n public class App { \n \n @ override \n public void configure ( ) throws Exception { \n + from ( STRING0 ) . to ( STRING1 ) ; \n from ( STRING1 ) . to ( STRING2 ) ; \n } \n } ) ;", "msg_token": "Added second message channel"} {"diff": " public class BeanDefinition extends NoOutputDefinition < BeanDefinition > { \n private String method ; \n @ xmlattribute \n private String beanType ; \n - @ xmlattribute \n + @ xmlattribute @ metadata ( defaultValue = STRING0 ) \n private Boolean cache ; \n @ xmlattribute \n @ deprecated \n public class RecipientListDefinition < Type extends ProcessorDefinition < Type > > ext \n private AggregationStrategy aggregationStrategy ; \n @ xmltransient \n private ExecutorService executorService ; \n - @ xmlattribute \n + @ xmlattribute @ metadata ( defaultValue = STRING1 ) \n private String delimiter ; \n @ xmlattribute \n private Boolean parallelProcessing ; \n public class CircuitBreakerLoadBalancer extends LoadBalancerSupport implements T \n } \n \n private boolean openCircuit ( final Exchange exchange , final AsyncCallback callback ) { \n - \n boolean output = rejectExchange ( exchange , callback ) ; \n state . set ( STATE_OPEN ) ; \n logState ( ) ;", "msg_token": "Corrected default values for Camel model"} {"diff": " public class StatsCommentsFragment extends StatsAbstractListFragment { \n if ( mDatamodels [ NUMBER0 ] != null && ! isErrorResponse ( NUMBER0 ) ) { SINGLE \n mTotalsLabel . setVisibility ( View . VISIBLE ) ; \n int totalNumberOfFollowers = ( ( CommentFollowersModel ) mDatamodels [ NUMBER0 ] ) . getTotal ( ) ; \n - try { \n - String totalCommentsFollowers = getString ( R . string . stats_comments_total_comments_followers ) ; \n - mTotalsLabel . setText ( \n - String . format ( totalCommentsFollowers , FormatUtils . formatDecimal ( totalNumberOfFollowers ) ) \n - ) ; \n - } catch ( AssertionError e ) { \n - SINGLE \n - SINGLE \n - mTotalsLabel . setVisibility ( View . GONE ) ; \n - } \n + String totalCommentsFollowers = getString ( R . string . stats_comments_total_comments_followers ) ; \n + mTotalsLabel . setText ( \n + String . format ( totalCommentsFollowers , FormatUtils . formatDecimal ( totalNumberOfFollowers ) ) \n + ) ; \n } else { \n mTotalsLabel . setVisibility ( View . GONE ) ; \n }", "msg_token": "Remove the old workaround that catches AssertionError and try by splitting string creation"} {"diff": " public class DesktopAssetManager implements AssetManager { \n public Shader loadShader ( ShaderKey key ) { \n SINGLE \n SINGLE \n - System . out . println ( ) ; \n AssetCache cache = handler . getCache ( SimpleAssetCache . class ) ; \n Shader shader = ( Shader ) cache . getFromCache ( key ) ; \n if ( shader == null ) {", "msg_token": "Removed a Sysout"} {"diff": " public class JumpToObjectAction extends DebuggerAction { \n final ClassType clsType = ( ClassType ) type ; \n Location lambdaLocation = null ; \n if ( DebuggerUtilsEx . isLambdaClassName ( clsType . name ( ) ) ) { \n - List < Method > applicableMethods = ContainerUtil . filter ( clsType . methods ( ) , \n - m - > ! m . isConstructor ( ) && ! STRING0 . equals ( m . name ( ) ) ) ; \n + List < Method > applicableMethods = ContainerUtil . filter ( clsType . methods ( ) , m - > m . isPublic ( ) && ! m . isBridge ( ) ) ; \n if ( applicableMethods . size ( ) == NUMBER0 ) { \n AtomicReference < Location > locationRef = new AtomicReference < > ( ) ; \n MethodBytecodeUtil . visit ( clsType , applicableMethods . get ( NUMBER1 ) , new MethodVisitor ( Opcodes . API_VERSION ) {", "msg_token": "fixed incorrect navigation to lambda class type source better fix"} {"diff": " \n \n package NAMESPACE ; \n \n - public class APISettings { \n + public class ApiSettings { \n public static final String API_ENDPOINT = STRING0 ; \n public static final String USER_AGENT = STRING1 ; \n } \n public class RequestHandler { \n public RequestHandler ( PokemonGo api , RequestEnvelopeOuterClass . RequestEnvelope . AuthInfo auth , OkHttpClient client ) { \n this . api = api ; \n this . client = client ; \n - api_endpoint = APISettings . API_ENDPOINT ; \n + api_endpoint = ApiSettings . API_ENDPOINT ; \n this . auth = auth ; \n serverRequests = new ArrayList < ServerRequest > ( ) ; \n resetBuilder ( ) ;", "msg_token": "BEGIN CORRECTIONS APISettings ApiSettings"} {"diff": " public class CompositeExceptionTest { \n private final CompositeException compositeEx ; \n \n public CompositeExceptionTest ( ) { \n + ex1 . initCause ( ex2 ) ; \n List < Throwable > throwables = new ArrayList < Throwable > ( ) ; \n throwables . add ( ex1 ) ; \n throwables . add ( ex2 ) ; \n public class CompositeExceptionTest { \n CompositeException . attachCallingThreadStack ( compositeEx , compositeEx ) ; \n assertEquals ( CompositeException . CompositeExceptionCausalChain . MESSAGE , compositeEx . getCause ( ) . getMessage ( ) ) ; \n } \n + \n + @ test \n + public void testAttachCallingThreadStackAddExceptionsToEachOther ( ) { \n + CompositeException . attachCallingThreadStack ( ex1 , ex2 ) ; \n + CompositeException . attachCallingThreadStack ( ex2 , ex1 ) ; \n + assertEquals ( STRING0 , ex1 . getCause ( ) . getMessage ( ) ) ; \n + assertEquals ( STRING1 , ex2 . getCause ( ) . getMessage ( ) ) ; \n + } \n }", "msg_token": "Added more possible failure cases to CompositeExceptionTest"} {"diff": " public class TestOperationSetMultiUserChat2 \n \n suite . addTest ( \n new TestOperationSetMultiUserChat2 ( STRING0 ) ) ; \n - \n - suite . addTest ( \n - new TestOperationSetMultiUserChat2 ( STRING1 ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n \n \n SINGLE \n public class TestOperationSetMultiUserChat2 \n , nameIsOnMemberList ( user1SecondNick , opSet1Room . getMembers ( ) ) ) ; \n \n SINGLE \n - assertTrue ( STRING2 + \n - STRING3 , \n + assertTrue ( STRING4 + \n + STRING5 , \n nameIsOnMemberList ( user1SecondNick , opSet2Room . getMembers ( ) ) ) ; \n \n SINGLE", "msg_token": "also disable testNickName"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class LruCache < K , V > { \n private final LinkedHashMap < K , V > map ;", "msg_token": "Add a link from LruCache to the Android support package compatibility library"} {"diff": " public class NEDGraphBuilderImpl implements GraphBuilder { \n SINGLE \n double totalDistance = bestDistance + state . distance ; \n SINGLE \n - if ( state . backEdge != null ) { \n - System . out . println ( STRING0 ) ; \n - } \n while ( true ) { \n double elevation = ( bestElevation * state . distance + state . initialElevation \n COMMENT \n public class NEDGraphBuilderImpl implements GraphBuilder { \n continue ; \n } \n \n + if ( edge . getElevationProfile ( ) != null && edge . getElevationProfile ( ) . size ( ) > NUMBER0 ) { \n + continue ; \n + } \n + \n Coordinate [ ] coords = new Coordinate [ NUMBER0 ] ; \n coords [ NUMBER1 ] = new Coordinate ( NUMBER1 , fromElevation ) ; \n coords [ NUMBER2 ] = new Coordinate ( edge . getDistance ( ) , toElevation ) ;", "msg_token": "Do not override elevation on edges that already have elevation"} {"diff": " public abstract class BufferedBlockInStream extends BlockInStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n SINGLE \n public BufferedBlockInStream ( long blockId , long blockSize ) {", "msg_token": "SMALLFIX Removed not used location parameter in JavaDoc"} {"diff": " public class CurlMesh { \n SINGLE \n v . mPosX = radius * Math . cos ( rotY ) ; \n v . mPosZ = radius + ( radius * - Math . sin ( rotY ) ) ; \n - v . mColor = ( Math . cos ( rotY ) / FLOAT0 ) + NUMBER0 ; \n + v . mColor = Math . sqrt ( Math . cos ( rotY ) + NUMBER0 ) ; \n } \n \n SINGLE \n public class CurlMesh { \n mVertices . put ( ( float ) vertex . mPosZ ) ; \n mTexCoords . put ( ( float ) vertex . mTexX ) ; \n mTexCoords . put ( ( float ) vertex . mTexY ) ; \n - \n - Log . d ( STRING0 , STRING1 + vertex . mColor ) ; \n mColors . put ( ( float ) vertex . mColor ) ; \n mColors . put ( ( float ) vertex . mColor ) ; \n mColors . put ( ( float ) vertex . mColor ) ;", "msg_token": "Added square root for light color density calculation"} {"diff": " public class Array2DHashSet < T > implements Set < T > { \n if ( bucket == null ) continue ; \n for ( Object o : bucket ) { \n if ( o == null ) break ; \n - if ( ! this . contains ( o ) ) return false ; \n + if ( ! this . containsFast ( asElementType ( o ) ) ) return false ; \n } \n } \n } \n else { \n for ( Object o : collection ) { \n - if ( ! this . contains ( o ) ) return false ; \n + if ( ! this . containsFast ( asElementType ( o ) ) ) return false ; \n } \n } \n return true ;", "msg_token": "Call containsFast directly to avoid an IDE warning about calling contains with an unexpected object type"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Added changes to formatting package in some classes"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final class ConfigUtil { \n private ConfigUtil ( ) { \n \n public final class ConfigUtil { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ConfigUtil { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add doc comment to ConfigUtil"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class StringContainsInOrder extends TypeSafeMatcher < String > { \n private final Iterable < String > substrings ; \n \n public StringContainsInOrder ( Iterable < String > substrings ) { \n this . substrings = substrings ; \n } \n - \n + \n @ override \n public boolean matchesSafely ( String s ) { \n int fromIndex = NUMBER0 ; \n public class StringContainsInOrder extends TypeSafeMatcher < String > { \n public static Matcher < String > stringContainsInOrder ( Iterable < String > substrings ) { \n return new StringContainsInOrder ( substrings ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ factory \n + public static Matcher < String > stringContainsInOrder ( String . . . substrings ) { \n + return new StringContainsInOrder ( Arrays . asList ( substrings ) ) ; \n + } \n }", "msg_token": "Added varargs method for stringContainsInOrder"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ threadsafe \n + @ notthreadsafe \n public final class TachyonConf { \n COMMENT \n public static final String DEFAULT_PROPERTIES = STRING0 ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ threadsafe \n + @ notthreadsafe \n public final class UnderFileSystemRegistry { \n \n private static final List < UnderFileSystemFactory > FACTORIES = \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - @ notthreadsafe \n + @ threadsafe \n public final class ByteIOUtils { \n \n private ByteIOUtils ( ) { } SINGLE", "msg_token": "Addressing review comments"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class MavenDeployAction extends AbstractMavenPublishAction { \n private static final Logger LOGGER = LoggerFactory . getLogger ( MavenDeployAction . class ) ;", "msg_token": "Remove irrelevant comment"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface ApplicationLike { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n void onCreate ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n void onLowMemory ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n void onTrimMemory ( int level ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n void onTerminate ( ) ;", "msg_token": "Fix links in ApplicationLike javadoc"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class ImmutableClassToInstanceMap < B > extends \n @ override \n @ suppresswarnings ( STRING0 ) SINGLE \n @ nullable \n - SINGLE \n - public < T extends B > T getInstance ( @ nullable Class < T > type ) { \n - return ( T ) delegate . get ( type ) ; \n + public < T extends B > T getInstance ( Class < T > type ) { \n + return ( T ) delegate . get ( checkNotNull ( type ) ) ; \n } \n \n COMMENT", "msg_token": "Change ImmutableClassToInstanceMap getInstance to reject null Class"} {"diff": " public class UpdatesIndexFragment extends SherlockListFragment { \n if ( listAdapter == null ) { \n return ; \n } \n - listAdapter . setIndexFiles ( items ) ; \n + listAdapter = new UpdateIndexAdapter ( getDownloadActivity ( ) , R . layout . download_index_list_item , items ) ; \n + setListAdapter ( listAdapter ) ; \n } \n \n @ override", "msg_token": "Fixed bug with updates not showing after rotation"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n \n config . getBroadcasterFactory ( ) . remove ( this , name ) ; \n this . name = id ; \n - < < < < < < < HEAD \n - BroadcasterFactory . getDefault ( ) . add ( this , name ) ; \n - == == == = \n config . getBroadcasterFactory ( ) . add ( this , name ) ; \n \n bc . broadcasterID ( name ) ; \n - > > > > > > > b964c4d . . . One more fix for # NUMBER0 : make sure the factory is used from the AtmosphereFramework class \n } \n \n COMMENT", "msg_token": "Fix merge conflict"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n @ runwith ( PaxExam . class ) \n @ examreactorstrategy ( PerMethod . class )", "msg_token": "Fix compilation error"} {"diff": " public class IssueChangesEmailTemplate extends EmailTemplate { \n appendField ( sb , STRING0 , notif . getFieldValue ( STRING1 ) , notif . getFieldValue ( STRING2 ) ) ; \n appendField ( sb , STRING3 , notif . getFieldValue ( STRING4 ) , notif . getFieldValue ( STRING5 ) ) ; \n appendField ( sb , STRING6 , notif . getFieldValue ( STRING7 ) , notif . getFieldValue ( STRING8 ) ) ; \n + appendField ( sb , STRING9 , notif . getFieldValue ( STRING10 ) , notif . getFieldValue ( STRING11 ) ) ; \n + appendField ( sb , STRING12 , notif . getFieldValue ( STRING13 ) , notif . getFieldValue ( STRING14 ) ) ; \n } \n \n private void appendHeader ( Notification notif , StringBuilder sb ) {", "msg_token": "Add author and action plan to issue change emails"} {"diff": " public class CallInfoFrame \n resources . getI18NString ( STRING0 ) , \n preferredTransport . toString ( ) ) ) ; \n \n - final OperationSetTLS tlsDetails = aCall . getProtocolProvider ( ) \n + final OperationSetTLS opSetTls = aCall . getProtocolProvider ( ) \n . getOperationSet ( OperationSetTLS . class ) ; \n - if ( tlsDetails != null ) \n + if ( opSetTls != null ) \n { \n stringBuffer . append ( getLineString ( \n resources . getI18NString ( \n STRING1 ) , \n - tlsDetails . getProtocol ( ) ) ) ; \n + opSetTls . getProtocol ( ) ) ) ; \n stringBuffer . append ( getLineString ( \n resources . getI18NString ( \n STRING2 ) , \n - tlsDetails . getCipherSuite ( ) ) ) ; \n + opSetTls . getCipherSuite ( ) ) ) ; \n \n stringBuffer . append ( STRING3 ) \n . append ( CERTIFICATE_URL )", "msg_token": "Renaming local variable as suggested in review"} {"diff": " public class DashboardPage extends RootPage { \n String message = readMarkdown ( messageSource , STRING0 ) ; \n Component repositoriesMessage = new Label ( STRING1 , message ) ; \n add ( repositoriesMessage . setEscapeModelStrings ( false ) ) ; \n - add ( new Label ( STRING2 ) ) ; \n + add ( new Label ( STRING3 ) ) ; \n + add ( new Label ( STRING4 ) . setVisible ( false ) ) ; \n + add ( new Label ( STRING5 ) . setVisible ( false ) ) ; \n + add ( new Label ( STRING6 ) . setVisible ( false ) ) ; \n return ; \n }", "msg_token": "Fixed bug in DashboardPage when anonymous browsing is disabled"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ServiceUtils { \n return ( ! username . equalsIgnoreCase ( STRING0 ) && ! password . equalsIgnoreCase ( STRING0 ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean ensureTraktCredentials ( Context context ) { \n + if ( ! isTraktCredentialsValid ( context ) ) { \n + SINGLE \n + context . startActivity ( new Intent ( context , ConnectTraktActivity . class ) ) ; \n + return false ; \n + } \n + return true ; \n + } \n + \n public static void clearTraktCredentials ( Context context ) { \n Editor editor = PreferenceManager . getDefaultSharedPreferences ( context \n . getApplicationContext ( ) ) . edit ( ) ;", "msg_token": "Add trakt credentials helper that will launch auth flow"} {"diff": " public class JetSourceNavigationHelper { \n getBindingContextAndClassOrNamespaceDescriptor ( @ notnull WritableSlice < FqName , D > slice , \n @ notnull JetDeclaration declaration , \n @ nullable FqName fqName ) { \n - if ( fqName == null ) { \n + if ( fqName == null || DumbService . isDumb ( declaration . getProject ( ) ) ) { \n return null ; \n } \n final List < JetFile > libraryFiles = findAllSourceFilesWhichContainIdentifier ( declaration ) ;", "msg_token": "Added check for dumb mode in JetSourceNavigationHelper"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IdentifierHighlighterPass extends TextEditorHighlightingPass { \n } \n \n int flags = TargetElementUtilBase . ELEMENT_NAME_ACCEPTED | TargetElementUtilBase . REFERENCED_ELEMENT_ACCEPTED ; \n - PsiElement myTarget = TargetElementUtilBase . getInstance ( ) . findTargetElement ( myEditor , flags , myCaretOffset ) ; \n + PsiElement myTarget ; \n + try { \n + myTarget = TargetElementUtilBase . getInstance ( ) . findTargetElement ( myEditor , flags , myCaretOffset ) ; \n + } \n + catch ( IndexNotReadyException e ) { \n + return ; \n + } \n \n if ( myTarget == null ) { \n if ( ! PsiDocumentManager . getInstance ( myProject ) . isUncommited ( myEditor . getDocument ( ) ) ) {", "msg_token": "catch IndexNotReadyException in IdentifierHighlighterPass don t highlight anything in that case"} {"diff": " public class OProfiler implements OProfilerMBean { \n final float totMem = Runtime . getRuntime ( ) . totalMemory ( ) / NUMBER0 f ; \n final float freeMem = Runtime . getRuntime ( ) . freeMemory ( ) / NUMBER0 f ; \n \n + final long now = System . currentTimeMillis ( ) ; \n + \n final StringBuilder buffer = new StringBuilder ( ) ; \n buffer . append ( STRING0 ) ; \n - buffer . append ( new Date ( ) ) ; \n + buffer . append ( new Date ( now ) ) ; \n + buffer . append ( STRING1 ) ; \n + buffer . append ( ( now - recording ) / NUMBER1 ) ; \n + buffer . append ( STRING2 ) ; \n buffer . append ( String . format ( STRING3 , \n freeMem , ( freeMem * NUMBER2 / ( float ) maxMem ) , totMem , maxMem , Runtime . getRuntime ( ) . availableProcessors ( ) ) ) ; \n buffer . append ( STRING4 ) ;", "msg_token": "added total recording time in dump"} {"diff": " public class StaticInvocationWriter extends InvocationWriter { \n if ( target != null \n && classNode . isDerivedFrom ( ClassHelper . CLOSURE_TYPE ) \n && controller . isInClosure ( ) \n - && ! target . isPublic ( ) \n + && ! ( target . isPublic ( ) || target . isProtected ( ) ) \n && target . getDeclaringClass ( ) != classNode ) { \n SINGLE \n SINGLE \n public class StaticTypesUnaryExpressionHelper extends UnaryExpressionHelper impl \n ClassNode classNode = controller . getClassNode ( ) ; \n if ( typeChooser . resolveType ( subExpression , classNode ) == boolean_TYPE ) { \n subExpression . visit ( controller . getAcg ( ) ) ; \n + controller . getOperandStack ( ) . doGroovyCast ( boolean_TYPE ) ; \n BytecodeExpression bytecodeExpression = new BytecodeExpression ( ) { \n @ override \n public void visit ( final MethodVisitor mv ) {", "msg_token": "Fix VerifyError if calling a protected method of the owner from a closure"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed syntax error in Javadoc"} {"diff": " public abstract class AbstractEvictionPolicyEvaluator < A , E extends Evictable > \n Expirable expirable = ( Expirable ) evictable ; \n SINGLE \n if ( expirable . isExpiredAt ( now ) ) { \n - return Collections . singleton ( candidate ) ; \n + if ( candidate instanceof Iterable ) { \n + return ( Iterable < C > ) candidate ; \n + } else { \n + return Collections . singleton ( candidate ) ; \n + } \n } \n } \n \n public abstract class AbstractEvictionPolicyEvaluator < A , E extends Evictable > \n } \n } \n } \n - return evictionCandidate == null ? null : Collections . singleton ( evictionCandidate ) ; \n + if ( evictionCandidate == null ) { \n + return null ; \n + } else { \n + if ( evictionCandidate instanceof Iterable ) { \n + return ( Iterable < C > ) evictionCandidate ; \n + } else { \n + return Collections . singleton ( evictionCandidate ) ; \n + } \n + } \n } \n \n }", "msg_token": "Checking about if eviction candidate is Iterable so there will be no extra object creation"} {"diff": " public abstract class AbstractProcessingFilter implements Filter , InitializingBe \n uri = uri . substring ( NUMBER0 , pathParamIndex ) ; \n } \n \n + if ( STRING0 . equals ( request . getContextPath ( ) ) ) { \n + return uri . endsWith ( filterProcessesUrl ) ; \n + } \n + \n return uri . endsWith ( request . getContextPath ( ) + filterProcessesUrl ) ; \n } \n \n public class LogoutFilter implements Filter { \n uri = uri . substring ( NUMBER0 , pathParamIndex ) ; \n } \n \n + if ( STRING0 . equals ( request . getContextPath ( ) ) ) { \n + return uri . endsWith ( filterProcessesUrl ) ; \n + } \n + \n return uri . endsWith ( request . getContextPath ( ) + filterProcessesUrl ) ; \n }", "msg_token": "Correctly handle an empty context path"} {"diff": " public abstract class Chunk extends Iced implements Cloneable { \n protected int pformat_len0 ( double scale , int lg ) { \n double dx = Math . log10 ( scale ) ; \n int x = ( int ) dx ; \n - if ( PrettyPrint . pow10i ( x ) != scale ) throw H2O . unimpl ( ) ; \n + if ( x >= NUMBER0 && PrettyPrint . pow10i ( x ) != scale ) throw H2O . unimpl ( ) ; \n int w = NUMBER1 COMMENT + lg COMMENT + NUMBER1 COMMENT + NUMBER1 COMMENT + NUMBER1 COMMENT + NUMBER2 COMMENT ; \n return w ; \n }", "msg_token": "Prevent NPE in pformat_len0"} {"diff": " public class Glide implements ComponentCallbacks2 { \n private final ArrayPool arrayPool ; \n private final ConnectivityMonitorFactory connectivityMonitorFactory ; \n private final List < RequestManager > managers = new ArrayList < > ( ) ; \n + private MemoryCategory memoryCategory = MemoryCategory . NORMAL ; \n \n COMMENT \n COMMENT \n public class Glide implements ComponentCallbacks2 { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public void setMemoryCategory ( MemoryCategory memoryCategory ) { \n + public MemoryCategory setMemoryCategory ( MemoryCategory memoryCategory ) { \n SINGLE \n Util . assertMainThread ( ) ; \n SINGLE \n memoryCache . setSizeMultiplier ( memoryCategory . getMultiplier ( ) ) ; \n bitmapPool . setSizeMultiplier ( memoryCategory . getMultiplier ( ) ) ; \n + MemoryCategory oldCategory = this . memoryCategory ; \n + this . memoryCategory = memoryCategory ; \n + return oldCategory ; \n } \n \n COMMENT", "msg_token": "return the old MemoryCategory used by Glide"} {"diff": " final public class H2O { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n - STRING4 + \n - STRING2 + \n STRING5 + \n STRING6 + \n STRING2 + \n final public class H2O { \n COMMENT \n public String hdfs = null ; \n \n - COMMENT \n - public String hdfs_version = null ; \n - \n COMMENT \n public String hdfs_config = null ; \n \n final public class H2O { \n i = s . incrementAndCheck ( i , args ) ; \n ARGS . hdfs = args [ i ] ; \n } \n - else if ( s . matches ( STRING7 ) ) { \n - i = s . incrementAndCheck ( i , args ) ; \n - ARGS . hdfs_version = args [ i ] ; \n - } \n else if ( s . matches ( STRING8 ) ) { \n i = s . incrementAndCheck ( i , args ) ; \n ARGS . hdfs_config = args [ i ] ;", "msg_token": "Remove hdfs_version argument since the hdfs version is now baked in by the assembly process"} {"diff": " public class MaterialEditTextPreference extends DialogPreference { \n SINGLE \n ViewGroup layout = ( ViewGroup ) LayoutInflater . from ( context ) . inflate ( R . layout . md_input_dialog_stub , null ) ; \n mEditText . append ( mValue ) ; \n + if ( mEditText . getParent ( ) != null ) \n + ( ( ViewGroup ) mEditText . getParent ( ) ) . removeView ( mEditText ) ; \n layout . addView ( mEditText , new LinearLayout . LayoutParams ( \n ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . WRAP_CONTENT ) ) ;", "msg_token": "Fixed MaterialEditTextPreference crash when opened more than once"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ImmutableASTTransformation extends AbstractASTTransformation { \n ) , \n new IfStatement ( \n new BooleanExpression ( \n - new BinaryExpression ( \n - new VariableExpression ( STRING0 , ClassHelper . OBJECT_TYPE ) , \n - new Token ( Types . COMPARE_NOT_EQUAL , STRING1 , - NUMBER0 , - NUMBER0 ) , \n - new VariableExpression ( STRING2 , ClassHelper . OBJECT_TYPE ) \n + new NotExpression ( \n + new MethodCallExpression ( \n + new ClassExpression ( ClassHelper . make ( DefaultTypeTransformation . class ) ) , \n + STRING3 , \n + new ArgumentListExpression ( new Expression [ ] { \n + new VariableExpression ( STRING0 , ClassHelper . OBJECT_TYPE ) , \n + new VariableExpression ( STRING2 , ClassHelper . OBJECT_TYPE ) \n + } ) \n + ) \n ) \n ) , \n new BlockStatement ( new Statement [ ] {", "msg_token": "Changed newValue oldValue to DefaultTypeTransformation compareEqual"} {"diff": " public class ReaderPostTable { \n + STRING0 SINGLE \n + STRING1 SINGLE \n + STRING2 SINGLE \n - + STRING3 SINGLE \n + + STRING3 SINGLE \n + STRING4 SINGLE \n + STRING5 SINGLE \n + STRING6 SINGLE \n public class ReaderPostListFragment extends Fragment \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private boolean isSwipeToRefreshSupported ( ) { \n return getPostListType ( ) != ReaderPostListType . SEARCH_RESULTS ;", "msg_token": "Remove comments about score"} {"diff": " public class ImplementationConflictException extends RuntimeException { \n \n public ImplementationConflictException ( String message , Throwable cause , @ notnull Object . . . implementationObjects ) { \n super ( message , cause ) ; \n - final List < Class < ? > > classes = new ArrayList < Class < ? > > ( ) ; \n + final List < Class < ? > > classes = new ArrayList < Class < ? > > ( implementationObjects . length ) ; \n for ( Object object : implementationObjects ) { \n classes . add ( object . getClass ( ) ) ; \n }", "msg_token": "Create list of the appropriate length"} {"diff": " public interface Server { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public World [ ] getWorlds ( ) ; \n + public List < World > getWorlds ( ) ; \n + \n + public World createWorld ( String name , boolean nether ) ; \n \n COMMENT \n COMMENT", "msg_token": "Changed getWorlds to List and added createWorld"} {"diff": " public final class JavaWriter implements Closeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public JavaWriter beginInitializer ( String type ) throws IOException { \n indent ( ) ; \n public final class JavaWriter implements Closeable { \n return this ; \n } \n \n - COMMENT \n + COMMENT \n public JavaWriter endInitializer ( ) throws IOException { \n popScope ( Scope . INITIALIZER ) ; \n indent ( ) ;", "msg_token": "Neaten up the Javadoc a bit"} {"diff": " public class FaviconFetcher { \n private static Logger log = LoggerFactory . getLogger ( FeedFetcher . class ) ; \n \n private static long MIN_ICON_LENGTH = NUMBER0 ; \n - private static long MAX_ICON_LENGTH = NUMBER1 ; \n + private static long MAX_ICON_LENGTH = NUMBER2 ; \n private static int TIMEOUT = NUMBER3 ; \n \n protected static List < String > ICON_MIMETYPES = Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 ,", "msg_token": "increase maximum allowed favicon size"} {"diff": " import NAMESPACE ; \n public class ElasticsearchHealthIndicatorProperties { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private List < String > indices = new ArrayList < String > ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private long responseTimeout = NUMBER0 ;", "msg_token": "Add missing dot in property description"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ runwith ( TestRunners . WithDefaults . class ) \n + @ runwith ( TestRunners . MultiApiWithDefaults . class ) \n public class ShadowContextWrapperTest { \n public Transcript transcript ; \n private ContextWrapper contextWrapper ;", "msg_token": "Use the correct test runner for ShadowContextWrapperTest"} {"diff": " public class TileAdapter extends RecyclerView . Adapter < Holder > implements TileSta \n \n public void saveSpecs ( QSTileHost host ) { \n List < String > newSpecs = new ArrayList < > ( ) ; \n - for ( int i = NUMBER0 ; mTiles . get ( i ) != null ; i ++ ) { \n + for ( int i = NUMBER0 ; i < mTiles . size ( ) && mTiles . get ( i ) != null ; i ++ ) { \n newSpecs . add ( mTiles . get ( i ) . spec ) ; \n } \n host . changeTiles ( mCurrentSpecs , newSpecs ) ;", "msg_token": "Fix inability to add all tiles"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n public void setFontPreferences ( @ notnull FontPreferences preferences ) { \n if ( Comparing . equal ( preferences , myFontPreferences ) ) return ; \n preferences . copyTo ( myFontPreferences ) ; \n - reinitSettings ( ) ; \n + reinitFontsAndSettings ( ) ; \n } \n \n @ override", "msg_token": "revert setFontPreferences changes batrak"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class SbeTool", "msg_token": "added javadoc for sbe ir filename option to SbeTool"} {"diff": " public abstract class PullToRefreshAdapterViewBase < T extends AbsListView > extend \n public final void onScroll ( final AbsListView view , final int firstVisibleItem , final int visibleItemCount , \n final int totalItemCount ) { \n \n + if ( DEBUG ) { \n + Log . d ( LOG_TAG , STRING0 + firstVisibleItem + STRING1 + visibleItemCount \n + + STRING2 + totalItemCount ) ; \n + } \n + \n boolean lastItemChanged = false ; \n boolean firstItemChanged = false ; \n \n public abstract class PullToRefreshAdapterViewBase < T extends AbsListView > extend \n } \n \n if ( null != mIndicatorIvBottom ) { \n - if ( ! isRefreshing ( ) && isReadyForPullDown ( ) ) { \n + if ( ! isRefreshing ( ) && isReadyForPullUp ( ) ) { \n if ( ! mIndicatorIvBottom . isVisible ( ) ) { \n mIndicatorIvBottom . show ( ) ; \n }", "msg_token": "Fix Showing Indicator for Pull Ups"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class CentralAuthenticationServiceImpl implements CentralAuthentica \n @ notnull \n private PrincipalFactory principalFactory = new DefaultPrincipalFactory ( ) ; \n \n + COMMENT \n + @ notnull \n + private final UniqueTicketIdGenerator defaultServiceTicketIdGenerator \n + = new DefaultUniqueTicketIdGenerator ( ) ; \n COMMENT \n COMMENT \n COMMENT \n public final class CentralAuthenticationServiceImpl implements CentralAuthentica \n UniqueTicketIdGenerator serviceTicketUniqueTicketIdGenerator = \n this . uniqueTicketIdGeneratorsForService . get ( uniqueTicketIdGenKey ) ; \n if ( serviceTicketUniqueTicketIdGenerator == null ) { \n - serviceTicketUniqueTicketIdGenerator = UniqueTicketIdGenerator . DEFAULT ; \n + serviceTicketUniqueTicketIdGenerator = this . defaultServiceTicketIdGenerator ; \n logger . debug ( STRING0 , \n uniqueTicketIdGenKey ) ; \n } \n package NAMESPACE ; \n COMMENT \n public interface UniqueTicketIdGenerator { \n COMMENT \n - COMMENT \n - COMMENT \n - UniqueTicketIdGenerator DEFAULT = new DefaultUniqueTicketIdGenerator ( ) ; \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "moved default ticket id generator to CASImpl"} {"diff": " public abstract class Expression extends ExpressionTemplate \n value instanceof String || \n value instanceof Long || \n value instanceof Integer || \n - value instanceof Double ) ) \n + value instanceof Double || \n + value instanceof Boolean ) ) \n { \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n class MethodWriter implements MethodEmitter , ExpressionVisitor \n { \n append ( value . toString ( ) ) ; \n } \n + else if ( value instanceof Boolean ) \n + { \n + append ( value . toString ( ) ) ; \n + } \n else \n { \n throw new UnsupportedOperationException ( value . getClass ( ) + STRING1 ) ; \n class MethodWriter implements MethodEmitter , ExpressionVisitor \n @ override \n public void not ( Expression expression ) \n { \n - append ( STRING2 ) ; \n + append ( STRING3 ) ; \n expression . accept ( this ) ; \n append ( STRING4 ) ; \n }", "msg_token": "Added boolean constants to Expressions"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "move BaseTest to be in the runtime test area to be consistent with other targets"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ConversationActivity extends XmppActivity \n } \n \n private long getMaxHttpUploadSize ( Conversation conversation ) { \n - return conversation . getAccount ( ) . getXmppConnection ( ) . getFeatures ( ) . getMaxHttpUploadSize ( ) ; \n + final XmppConnection connection = conversation . getAccount ( ) . getXmppConnection ( ) ; \n + return connection == null ? - NUMBER0 : connection . getFeatures ( ) . getMaxHttpUploadSize ( ) ; \n } \n \n private void setNeverAskForBatteryOptimizationsAgain ( ) {", "msg_token": "handle file attachment when missing connection"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "Add missing license headers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class BeatrixListener { \n public class BeatrixListener { \n objectMapper . disable ( SerializationFeature . WRITE_DATES_AS_TIMESTAMPS ) ; \n } \n \n + @ allowconcurrentevents \n @ subscribe \n public void handleAllInternalKillbillEvents ( final BusInternalEvent event ) { \n final InternalCallContext internalContext = internalCallContextFactory . createInternalCallContext ( event . getSearchKey2 ( ) , event . getSearchKey1 ( ) , STRING0 , CallOrigin . INTERNAL , UserType . SYSTEM , event . getUserToken ( ) ) ;", "msg_token": "Add missing AllowConcurrentEvents to prevent guava bus from serializing the events"} {"diff": " public abstract class MixinBlockSnapshot implements BlockSnapshot { \n @ shadow private NBTTagCompound nbt ; \n @ shadow public int flag ; \n \n - private Vector3i vecPos = VecHelper . toVector ( this . pos ) ; \n + private Vector3i vecPos ; \n \n - @ shadow \n - public abstract void writeToNBT ( NBTTagCompound compound ) ; \n + @ shadow public abstract void writeToNBT ( NBTTagCompound compound ) ; \n \n @ override \n public BlockState getState ( ) { \n public abstract class MixinBlockSnapshot implements BlockSnapshot { \n \n @ override \n public Vector3i getLocation ( ) { \n + if ( this . vecPos == null ) { \n + this . vecPos = VecHelper . toVector ( this . pos ) ; \n + } \n return this . vecPos ; \n }", "msg_token": "Fix BlockSnapshot NPE"} {"diff": " public class EpisodesFragment extends SherlockListFragment implements \n getLoaderManager ( ) . restartLoader ( EPISODES_LOADER , null , EpisodesFragment . this ) ; \n getSherlockActivity ( ) . invalidateOptionsMenu ( ) ; \n \n - EasyTracker . getTracker ( ) . trackEvent ( STRING0 , STRING1 , mSorting . name ( ) , ( long ) NUMBER0 ) ; \n + EasyTracker . getTracker ( ) . sendEvent ( TAG , STRING1 , mSorting . name ( ) , ( long ) NUMBER0 ) ; \n } \n \n @ targetapi ( NUMBER1 )", "msg_token": "Use new send event method"} {"diff": " public class ImmediateExecutorTest { \n @ test \n public void shouldExecuteImmediately ( ) { \n ImmediateExecutor e = ImmediateExecutor . INSTANCE ; \n - long startTime = System . currentTimeMillis ( ) ; \n + long startTime = System . nanoTime ( ) ; \n e . execute ( new Runnable ( ) { \n public void run ( ) { \n for ( ; ; ) { \n public class ImmediateExecutorTest { \n SINGLE \n } \n } \n - } \n + } \n } ) ; \n - assertTrue ( System . currentTimeMillis ( ) - startTime > NUMBER0 ) ; \n + assertTrue ( System . nanoTime ( ) - startTime > NUMBER1 ) ; \n } \n }", "msg_token": "Changed ImmediateExecutorTest to use nanoTime"} {"diff": " public class Linkify { \n \n if ( ( mask & WEB_URLS ) != NUMBER0 ) { \n gatherLinks ( links , text , Regex . WEB_URL_PATTERN , \n - new String [ ] { STRING0 , STRING1 } , \n + new String [ ] { STRING0 , STRING1 , STRING2 } , \n sUrlMatchFilter , null ) ; \n } \n \n public class Regex { \n COMMENT \n public static final Pattern WEB_URL_PATTERN \n = Pattern . compile ( \n - STRING3 \n + STRING4 \n + STRING5 \n + STRING6 \n + STRING7 SINGLE", "msg_token": "Add rtsp to the list of URL schemes that get linkified"} {"diff": " public class BulletVehicleDebugControl extends AbstractPhysicsDebugControl { \n dirGeom . setLocalTranslation ( location ) ; \n axleGeom . setLocalTranslation ( location . add ( direction ) ) ; \n wheelGeom . setLocalTranslation ( location . add ( direction ) ) ; \n - locGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ; \n - dirGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ; \n - axleGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ; \n - wheelGeom . setMaterial ( debugAppState . DEBUG_GREEN ) ; \n + locGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ; \n + dirGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ; \n + axleGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ; \n + wheelGeom . setMaterial ( debugAppState . DEBUG_MAGENTA ) ; \n suspensionNode . attachChild ( locGeom ) ; \n suspensionNode . attachChild ( dirGeom ) ; \n suspensionNode . attachChild ( axleGeom ) ;", "msg_token": "give own color to bullet vehicle constraint in debug view"} {"diff": " public class SearchTextField extends JPanel { \n } \n } \n \n - @ override \n - protected void paintComponent ( Graphics g ) { \n - super . paintComponent ( g ) ; \n - if ( UIUtil . isUnderDarcula ( ) && false ) { SINGLE \n - g . setColor ( myTextField . getBackground ( ) ) ; \n - g . fillRect ( NUMBER0 , NUMBER1 , getWidth ( ) , getHeight ( ) - NUMBER2 ) ; \n - } \n - } \n - \n private static boolean hasNativeLeopardSearchControl ( ) { \n return ( SystemInfo . isMacOSLeopard && UIUtil . isUnderAquaLookAndFeel ( ) ) || UIUtil . isUnderDarcula ( ) ; \n }", "msg_token": "remove dead code"} {"diff": " public class CommentActions { \n new Thread ( ) { \n @ override \n public void run ( ) { \n - @ suppresswarnings ( STRING0 ) \n - XMLRPCClientInterface client = XMLRPCFactory . instantiate ( blog . getUri ( ) , blog . getHttpuser ( ) , \n - blog . getHttppassword ( ) ) ; \n + XMLRPCFactory . instantiate ( blog . getUri ( ) , blog . getHttpuser ( ) , blog . getHttppassword ( ) ) ; \n \n final boolean success = ApiHelper . editComment ( blog , comment , newStatus ) ;", "msg_token": "Remove unused variable and suppression"} {"diff": " public class OSGiIntegrationTest { \n SINGLE \n systemProperty ( STRING0 ) . value ( STRING1 ) , \n \n - SINGLE \n + SINGLE \n mavenBundleAsInProject ( STRING2 , STRING3 ) , \n - \n wrappedBundle ( mavenBundleAsInProject ( STRING4 , STRING4 ) ) , \n \n felix ( ) , equinox ( ) ) ;", "msg_token": "removed duff comment"} {"diff": " public class SourceMapConsumerV3 implements SourceMapConsumer , \n COMMENT \n COMMENT \n private void validateEntry ( Entry entry ) { \n - Preconditions . checkState ( ( lineCount < NUMBER0 ) || ( line < lineCount ) ) ; \n + Preconditions . checkState ( ( lineCount < NUMBER0 ) || ( line < lineCount ) , \n + STRING0 , line , lineCount ) ; \n Preconditions . checkState ( entry . getSourceFileId ( ) == UNMAPPED \n || entry . getSourceFileId ( ) < sources . length ) ; \n Preconditions . checkState ( entry . getNameId ( ) == UNMAPPED", "msg_token": "Add more logging to a checkState call to debug reported issue"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ repeat ( NUMBER0 ) \n @ runwith ( HazelcastParallelClassRunner . class ) \n @ category ( QuickTest . class ) \n public class ReplicatedMapTest extends ReplicatedMapBaseTest {", "msg_token": "remove leftover Repeat annotation"} {"diff": " public class Uploader extends FileActivity \n } else { \n throw new SecurityException ( ) ; \n } \n - if ( data == null ) { \n + SINGLE \n mRemoteCacheData . add ( filePath ) ; \n CopyTmpFileAsyncTask copyTask = new CopyTmpFileAsyncTask ( this ) ; \n Object [ ] params = { uri , filePath , mRemoteCacheData . size ( ) - NUMBER0 , \n public class Uploader extends FileActivity \n mNumCacheFile ++ ; \n showWaitingCopyDialog ( ) ; \n copyTask . execute ( params ) ; \n - } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n } else { \n throw new SecurityException ( ) ; \n }", "msg_token": "Rewired code path to upload files sent from other apps"} {"diff": " public class TaskStack implements DimLayer . DimLayerUser , \n } \n } else { \n if ( splitHorizontally ) { \n - outBounds . left = position - dockDividerWidth ; \n + outBounds . left = position + dockDividerWidth ; \n } else { \n - outBounds . top = position - dockDividerWidth ; \n + outBounds . top = position + dockDividerWidth ; \n } \n } \n return ;", "msg_token": "Fix invalid stack position when docked on right"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DebugOverlay extends CoreScreenLayer { \n Vector3f pos = localPlayer . getPosition ( ) ; \n CharacterComponent character = localPlayer . getCharacterEntity ( ) . getComponent ( CharacterComponent . class ) ; \n float yaw = ( character != null ) ? character . yaw : NUMBER0 ; \n - return String . format ( Locale . US , STRING0 , pos . x , pos . y , pos . z , yaw ) ; \n + Vector3i chunkPos = TeraMath . calcChunkPos ( ( int ) pos . x , ( int ) pos . y , ( int ) pos . z ) ; \n + return String . format ( Locale . US , STRING1 , pos . x , pos . y , pos . z , chunkPos . x , chunkPos . y , chunkPos . z , yaw ) ; \n } \n } ) ; \n }", "msg_token": "Display the current chunk in the debug overlay"} {"diff": " public class UpdateIntegrationTest extends SQLTransportIntegrationTest { \n } \n \n @ test \n + public void testUpdateWithExpressionReferenceUpdated ( ) throws Exception { \n + SINGLE \n + \n + execute ( STRING0 ) ; \n + ensureYellow ( ) ; \n + \n + execute ( STRING1 ) ; \n + assertEquals ( NUMBER0 , response . rowCount ( ) ) ; \n + refresh ( ) ; \n + \n + execute ( STRING2 ) ; \n + assertEquals ( NUMBER0 , response . rowCount ( ) ) ; \n + refresh ( ) ; \n + \n + execute ( STRING3 ) ; \n + assertEquals ( NUMBER1 , response . rows ( ) [ NUMBER2 ] [ NUMBER2 ] ) ; \n + } \n + \n + @ test \n public void testUpdateByPrimaryKeyWithExpression ( ) throws Exception { \n execute ( STRING4 ) ; \n ensureYellow ( ) ;", "msg_token": "add update expression validation test"} {"diff": " public abstract class SelectBaseTest extends AbstractBaseTest { \n . uniqueResult ( employee . firstname ) ) ; \n } \n \n + @ test \n + public void complex_boolean ( ) { \n + EBoolean first = employee . firstname . eq ( STRING0 ) . and ( employee . lastname . eq ( STRING1 ) ) ; \n + EBoolean second = employee . firstname . eq ( STRING2 ) . and ( employee . lastname . eq ( STRING3 ) ) ; \n + assertEquals ( NUMBER0 , query ( ) . from ( employee ) . where ( first . or ( second ) ) . count ( ) ) ; \n + \n + assertEquals ( NUMBER1 , query ( ) . from ( employee ) . where ( \n + employee . firstname . eq ( STRING0 ) , \n + employee . lastname . eq ( STRING1 ) . or ( employee . firstname . eq ( STRING2 ) ) , \n + employee . lastname . eq ( STRING3 ) \n + ) . count ( ) ) ; \n + } \n }", "msg_token": "added boolean serialization test"} {"diff": " public abstract class Patch implements Serializable { \n \n private long endTime ; \n private long startTime ; \n - private int startTimeOfDay ; \n - private int endTimeOfDay ; \n + private int startTimeOfDay = NUMBER0 ; SINGLE \n + private int endTimeOfDay = NUMBER1 ; \n protected String notes ; \n \n private String id ;", "msg_token": "sensible defaults for patch start end time will make integration with systems not supporting time of day patches easier"} {"diff": " public class Connector extends LifecycleMBeanBase { \n sb . append ( STRING0 ) ; \n int port = getPort ( ) ; \n if ( port > NUMBER0 ) { \n - sb . append ( getPort ( ) ) ; \n + sb . append ( port ) ; \n } else { \n sb . append ( STRING1 ) ; \n sb . append ( getProperty ( STRING2 ) ) ; \n public class Connector extends LifecycleMBeanBase { \n sb . append ( STRING3 ) ; \n int port = getPort ( ) ; \n if ( port > NUMBER0 ) { \n - sb . append ( getPort ( ) ) ; \n + sb . append ( port ) ; \n } else { \n sb . append ( STRING1 ) ; \n sb . append ( getProperty ( STRING2 ) ) ;", "msg_token": "Do not call a getter twice use the value from a local variable"} {"diff": " public class NeoServer implements WrapperListener , JobScheduler \n start ( ) ; \n } \n \n - public void scheduleToRunEvery_Seconds ( Job job , int runEverySeconds ) \n + public void scheduleToRunEveryXSeconds ( Job job , int runEverySeconds ) \n { \n ScheduledJob scheduledJob = new ScheduledJob ( job , NUMBER0 ) ; \n scheduledJobs . add ( scheduledJob ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixing the compilation error on the build server"} {"diff": " public interface LivingEntity extends Entity { \n COMMENT \n public void setNoDamageTicks ( int ticks ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Player getKiller ( ) ; \n }", "msg_token": "Added getKiller method to LivingEntity to determine the killer of an entity"} {"diff": " public final class GitBranchesCollection { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - public GitBranchesCollection ( @ notnull GitBranchesCollection branches ) { \n - this ( branches . getLocalBranches ( ) , branches . getRemoteBranches ( ) ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n @ notnull", "msg_token": "git remove unused method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Requirements { \n sendSupportInfo ( ex . toString ( ) , context ) ; \n } \n \n + SINGLE \n + if ( ! checkField ( GpsStatus . class , STRING0 ) ) \n + reportClass ( GpsStatus . class , context ) ; \n + \n SINGLE \n try { \n Class < ? > clazz = Class . forName ( STRING1 , false , null ) ;", "msg_token": "Check GPS status requirements"} {"diff": " public final class Settings { \n STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final String GTALK_PICASA_ALBUM_URL = \n STRING1 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final String GTALK_FLICKR_PHOTO_INFO_URL = \n STRING2 ; \n public final class Settings { \n STRING3 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final String GTALK_YOUTUBE_VIDEO_URL = \n STRING4 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public static final String GTALK_URL_SCRAPING_FOR_JPG = \n + STRING5 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final String GTALK_CHAT_MESSAGE_LIFETIME = \n public final class Settings { \n STRING6 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - public static final String GTALK_URL_SCRAPING_FOR_JPG = \n - STRING5 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n public static final String GSYNC_USE_RMQ2_ROUTING_INFO = STRING7 ;", "msg_token": "Fix code placement and comments for gtalk url scraping settings"} {"diff": " public class RebalanceClientConfig extends AdminClientConfig { \n private int rebalancingClientTimeoutSeconds = NUMBER0 * NUMBER1 * NUMBER2 * NUMBER2 ; \n private boolean deleteAfterRebalancingEnabled ; \n \n - public static String MaxParallelRebalancingString = STRING0 ; \n - public static String RebalancingClientTimeoutSeconds = STRING1 ; \n - public static String EnableDeleteAfterRebalancing = STRING2 ; \n + public static final String MaxParallelRebalancingString = STRING0 ; \n + public static final String RebalancingClientTimeoutSeconds = STRING1 ; \n + public static final String EnableDeleteAfterRebalancing = STRING2 ; \n \n public RebalanceClientConfig ( Properties properties ) { \n super ( properties ) ;", "msg_token": "Add final to static fields"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public interface ExternalResourceRepository COMMENT { \n + public interface ExternalResourceRepository { \n \n void downloadResource ( ExternalResource resource , File destination ) throws IOException ; \n \n import NAMESPACE ; \n public interface ExternalResource extends Resource { \n void writeTo ( File destination ) throws IOException ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n void writeTo ( OutputStream destination ) throws IOException ; \n \n void close ( ) throws IOException ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class MetaDataOnlyExternalResource extends AbstractExternalResource { \n this . local = local ; \n } \n \n - public void writeTo ( File destination , CopyProgressListener progress ) throws IOException { \n - throw new UnsupportedOperationException ( ) ; \n - } \n - \n public ExternalResourceMetaData getMetaData ( ) { \n return metaData ; \n }", "msg_token": "Removed unused method and a couple of other tidy ups"} {"diff": " public class ParentRunnerTest { \n . filterWith ( new Exclude ( STRING0 ) ) ; \n Result result = junitCore . run ( requestFilteredFiltered ) ; \n assertThat ( result . getFailures ( ) , isEmpty ( ) ) ; \n - assertEquals ( NUMBER0 , result . getRunCount ( ) ) ; SINGLE \n + assertEquals ( NUMBER0 , result . getRunCount ( ) ) ; \n } \n \n private Matcher < List < ? > > isEmpty ( ) {", "msg_token": "Remove no longer correct comment from test"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaBinaryRule extends AbstractCachingBuildRule implements BinaryBu \n Command jar = new JarDirectoryCommand ( outputFile , includePaths , mainClass , manifestFile ) ; \n commands . add ( jar ) ; \n \n - Command echo = new EchoCommand ( String . format ( STRING0 , outputFile ) ) ; \n - commands . add ( echo ) ; \n - \n return commands . build ( ) ; \n }", "msg_token": "Remove EchoCommand from JavaBinaryRule"} {"diff": " import NAMESPACE ; \n public class HumanInteractionClassifier extends Classifier { \n private static final String HIC_ENABLE = STRING0 ; \n private static final float FINGER_DISTANCE = FLOAT0 ; \n + \n + COMMENT \n + private static final int HIC_ENABLE_DEFAULT = NUMBER0 ; \n + \n private static HumanInteractionClassifier sInstance = null ; \n \n private final Handler mHandler = new Handler ( ) ; \n public class HumanInteractionClassifier extends Classifier { \n } \n \n private void updateConfiguration ( ) { \n - mEnableClassifier = Build . IS_DEBUGGABLE && NUMBER1 != Settings . Global . getInt ( \n + mEnableClassifier = NUMBER1 != Settings . Global . getInt ( \n mContext . getContentResolver ( ) , \n - HIC_ENABLE , NUMBER1 ) ; \n + HIC_ENABLE , HIC_ENABLE_DEFAULT ) ; \n } \n \n public void setType ( int type ) {", "msg_token": "Flipping the bit on the HIC"} {"diff": " public class ShowsFragment extends SherlockFragment implements \n mCursor . getLong ( ShowsQuery . AIRSTIME ) , \n mCursor . getString ( ShowsQuery . AIRSDAYOFWEEK ) , mContext ) ; \n if ( getResources ( ) . getBoolean ( R . bool . isLargeTablet ) ) { \n - viewHolder . airsTime . setText ( STRING0 + values [ NUMBER0 ] + STRING1 + values [ NUMBER1 ] ) ; \n + viewHolder . airsTime . setText ( STRING2 + values [ NUMBER0 ] + STRING1 + values [ NUMBER1 ] ) ; \n } else { \n viewHolder . airsTime . setText ( values [ NUMBER0 ] + STRING1 + values [ NUMBER1 ] ) ; \n }", "msg_token": "Remove space from separator"} {"diff": " public class PivotTest { \n \n Random random = new Random ( NUMBER0 ) ; \n \n - for ( long i = NUMBER1 ; i < NUMBER2 ; i ++ ) { \n + for ( long i = NUMBER1 ; i < NUMBER3 ; i ++ ) { \n if ( i % NUMBER3 == NUMBER1 ) { \n System . out . println ( STRING0 + i ) ; \n } \n public class PivotTest { \n assertEquals ( NUMBER4 , res . minimumInt ( NUMBER5 ) ) ; \n assertEquals ( NUMBER4 , res . maximumInt ( NUMBER5 ) ) ; \n \n - \n + \n + res = dataView . pivot ( STRING_COL_INDEX , INTEGER_COL_INDEX , PivotType . COUNT ) ; \n + res . getColumnName ( NUMBER5 ) . contains ( STRING1 ) ; \n } \n }", "msg_token": "made test case faster"} {"diff": " public class Main implements Runnable { \n \n if ( getSystemJavaCompiler ( ) == null ) { \n System . err . println ( STRING0 + \n - STRING1 ) ; \n + STRING2 ) ; \n return ; \n }", "msg_token": "tidy up text for compiler verification"} {"diff": " public class ShAnalyzerFactory extends FileAnalyzerFactory { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n STRING4 , \n STRING5 , \n STRING6 ,", "msg_token": "Add mk to Shell script group"} {"diff": " public class Messages { \n try { \n resourceString = GuiActivator . getResources ( ) . getI18NString ( key ) ; \n \n + SINGLE \n + resourceString = resourceString . replaceAll ( STRING0 , STRING1 ) ; \n + \n char mnemonicIndex = GuiActivator . getResources ( ) . getI18nMnemonic ( key ) ; \n \n resourceString = MessageFormat . format (", "msg_token": "auto escape the single quote"} {"diff": " public class ExecutionImpl implements \n } \n } \n \n - protected void setVariableLocally ( String variableName , Object value ) { \n + public void setVariableLocally ( String variableName , Object value ) { \n log . fine ( STRING0 + variableName + STRING1 + value + STRING2 + this ) ; \n variables . put ( variableName , value ) ; \n } \n public class ExecutionBindings implements Bindings { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected static final Set < String > UNSTORED_KEYS = \n - new HashSet < String > ( Arrays . asList ( STRING3 , STRING4 , STRING5 , STRING6 , STRING7 ) ) ; \n + new HashSet < String > ( Arrays . asList ( STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 ) ) ; \n \n protected ExecutionImpl execution ;", "msg_token": "Added variable ignores for ExecutionBindings js made setVariablesLocally public on ExecutionImpl class"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SimpleQueryStringParser extends BaseQueryParser { \n \n - public static final String NAME = STRING0 ; \n - \n @ inject \n public SimpleQueryStringParser ( ) { \n \n public class SimpleQueryStringParser extends BaseQueryParser { \n fieldsAndWeights . put ( fField , fBoost ) ; \n } \n } else { \n - throw new QueryParsingException ( parseContext , STRING1 + NAME + STRING2 + currentFieldName + STRING3 ) ; \n + throw new QueryParsingException ( parseContext , STRING1 + SimpleQueryStringBuilder . NAME + STRING2 + currentFieldName + STRING3 ) ; \n } \n } else if ( token . isValue ( ) ) { \n if ( STRING4 . equals ( currentFieldName ) ) {", "msg_token": "delete SimpleQueryStringParser NAME constant"} {"diff": " public abstract class JsonBuilder < T extends JsonBuilder > { \n \n private final static DateTimeFormatter defaultDatePrinter = ISODateTimeFormat . dateTime ( ) . withZone ( DateTimeZone . UTC ) ; \n \n - protected static FieldCaseConversion globalFieldCaseConversion = FieldCaseConversion . CAMELCASE ; \n + protected static FieldCaseConversion globalFieldCaseConversion = FieldCaseConversion . NONE ; \n \n public static void globalFieldCaseConversion ( FieldCaseConversion globalFieldCaseConversion ) { \n JsonBuilder . globalFieldCaseConversion = globalFieldCaseConversion ;", "msg_token": "add field case casing support for JsonBuilder"} {"diff": " public class BasicTest extends AbstractTest { \n . whenNotMatchedThenInsert ( FIELD_ID1 , FIELD_NAME1 , FIELD_DATE1 ) \n . values ( NUMBER0 , STRING0 , new Date ( NUMBER1 ) ) ; \n \n - assertEquals ( STRING1 + zeroDate ( ) + STRING2 + zeroDate ( ) + STRING3 , r_refI ( ) . render ( q ) ) ; \n - assertEquals ( STRING4 , r_ref ( ) . render ( q ) ) ; \n + assertEquals ( STRING5 + zeroDate ( ) + STRING2 + zeroDate ( ) + STRING3 , r_refI ( ) . render ( q ) ) ; \n + assertEquals ( STRING6 , r_ref ( ) . render ( q ) ) ; \n \n context . checking ( new Expectations ( ) { { \n oneOf ( statement ) . setInt ( NUMBER0 , NUMBER0 ) ;", "msg_token": "Fixed broken test"} {"diff": " public class AndroidCompiledStatement implements CompiledStatement { \n return NUMBER0 ; \n } \n \n - public boolean runExecute ( ) throws SQLException { \n + public int runExecute ( ) throws SQLException { \n if ( type != StatementType . EXECUTE ) { \n throw new IllegalArgumentException ( STRING0 + type + STRING1 ) ; \n } \n public class AndroidCompiledStatement implements CompiledStatement { \n } catch ( android . database . SQLException e ) { \n throw SqlExceptionUtil . create ( STRING2 + sql , e ) ; \n } \n - return true ; \n + return NUMBER1 ; \n } \n \n public DatabaseResults getGeneratedKeys ( ) throws SQLException {", "msg_token": "Make runExecute return int again after reading the docs more"} {"diff": " package NAMESPACE ; \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Refine the documentation a little bit more"} {"diff": " class BinaryRenderer extends ReportRenderer < BinarySpec , TextReportBuilder > { \n \n if ( binary instanceof JvmLibraryBinarySpec ) { \n JvmLibraryBinarySpec libraryBinary = ( JvmLibraryBinarySpec ) binary ; \n - if ( libraryBinary . getTargetPlatform ( ) != null ) { \n - textOutput . formatln ( STRING0 , libraryBinary . getTargetPlatform ( ) . getName ( ) ) ; \n - } \n + textOutput . formatln ( STRING0 , libraryBinary . getTargetPlatform ( ) . getName ( ) ) ; \n textOutput . formatln ( STRING1 , libraryBinary . getToolChain ( ) . toString ( ) ) ; \n if ( binary instanceof JarBinarySpec ) { \n JarBinarySpec jarBinary = ( JarBinarySpec ) binary ;", "msg_token": "Remove unecessary null check"} {"diff": " public class ImporterGraphML implements FileImporter , LongTask { \n } \n \n SINGLE \n - AttributeColumn column = container . getAttributeModel ( ) . getNodeTable ( ) . getColumn ( fore ) ; \n + AttributeColumn column = container . getAttributeModel ( ) . getEdgeTable ( ) . getColumn ( fore ) ; \n if ( column != null ) { \n try { \n Object val = column . getType ( ) . parse ( value ) ;", "msg_token": "fixed ImporterGraphML now it imports values for edges custom columns correctly"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface JetClassOrObject extends PsiNameIdentifierOwner , JetDeclarationContainer { \n + public interface JetClassOrObject extends PsiNameIdentifierOwner , JetDeclarationContainer , JetElement { \n @ nullable \n JetDelegationSpecifierList getDelegationSpecifierList ( ) ;", "msg_token": "JetClassOrObject extends JetElement"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class RNNOptions implements Serializable { \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public int randomSeed ; \n + public int randomSeed = ( new Random ( ) ) . nextInt ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Initialize the random seed randomly"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Single < T > { \n COMMENT \n @ experimental \n public final Single < T > doAfterTerminate ( Action0 action ) { \n - return lift ( new OperatorFinally < T > ( action ) ) ; \n + return lift ( new OperatorDoAfterTerminate < T > ( action ) ) ; \n } \n }", "msg_token": "fix renamed operator in Single"} {"diff": " public final class RecordBatch { \n if ( ( this . records . isFull ( ) && requestTimeout < ( now - this . lastAppendTime ) ) || requestTimeout < ( now - ( this . lastAttemptMs + lingerMs ) ) ) { \n expire = true ; \n this . records . close ( ) ; \n - this . done ( - NUMBER0 , Record . NO_TIMESTAMP , new TimeoutException ( STRING0 ) ) ; \n + this . done ( - NUMBER0 , Record . NO_TIMESTAMP , new TimeoutException ( STRING1 + recordCount + STRING2 + topicPartition ) ) ; \n } \n \n return expire ;", "msg_token": "Display the topic partition in the exception message for expired batches in recordAccumulator"} {"diff": " public class SecureServlet extends HttpServlet { \n out . println ( STRING0 ) ; \n out . println ( STRING1 ) ; \n out . println ( STRING2 ) ; \n - out . println ( STRING3 ) ; \n + out . println ( STRING4 ) ; \n out . println ( STRING5 ) ; \n out . println ( STRING6 ) ; \n out . println ( STRING7 + method + STRING8 ) ;", "msg_token": "Fixing the title"} {"diff": " public class ParallelGatewayTest extends ActivitiTestCase { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n SINGLE \n }", "msg_token": "improved parallel gateway test code"} {"diff": " public class Catalan extends Language { \n \n @ override \n public String [ ] getCountryVariants ( ) { \n - return new String [ ] { STRING0 } ; \n + return new String [ ] { STRING1 } ; \n } \n \n @ override", "msg_token": "ca Set country variant to ANY in order to test grammar rules"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + \n public class CamelNamespaceHandler implements NamespaceHandler { \n \n private static final String CAMEL_CONTEXT = STRING0 ;", "msg_token": "Fixed the CS error of camel blueprint"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GrailsRuntimeConfiguratorTests extends TestCase { \n org . codehaus . groovy . grails . validation . GrailsDomainClassValidator validator = ( org . codehaus . groovy . grails . validation . GrailsDomainClassValidator ) ctx . getBean ( STRING0 ) ; \n assertTrue ( validator . supports ( dc ) ) ; \n \n - SINGLE \n - HotSwappableTargetSource ts = ( HotSwappableTargetSource ) ctx . getBean ( GrailsUrlHandlerMapping . APPLICATION_CONTEXT_TARGET_SOURCE ) ; \n - assertNotNull ( ts . getTarget ( ) ) ; \n - \n GroovyObject controller = ( GroovyObject ) ctx . getBean ( STRING1 ) ; \n assertEquals ( c , controller . getClass ( ) ) ; \n }", "msg_token": "fixed another failing test"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class CustomViewActivity extends BaseActivity implements View . OnClickList \n actionBar . setCustomView ( R . layout . action_bar ) ; \n materialMenu = ( MaterialMenuView ) actionBar . getCustomView ( ) . findViewById ( R . id . action_bar_menu ) ; \n materialMenu . setOnClickListener ( this ) ; \n - new Handler ( ) . postDelayed ( new Runnable ( ) { \n - @ override public void run ( ) { \n - Log . i ( STRING0 , STRING1 + materialMenu . getMeasuredWidth ( ) + STRING2 + materialMenu . getMeasuredHeight ( ) ) ; \n - Log . i ( STRING0 , STRING1 + materialMenu . getWidth ( ) + STRING2 + materialMenu . getHeight ( ) ) ; \n - } \n - } , NUMBER0 ) ; \n - \n } \n \n @ override public void onClick ( View v ) {", "msg_token": "Remove redundant code in demo"} {"diff": " public class PackageManager implements ParsingScope { \n throw new IllegalArgumentException ( String . format ( STRING0 , packageName ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setDefaultJarPath ( String defaultJarPath ) { \n + if ( defaultJarPath == null ) \n + throw new NullPointerException ( STRING1 ) ; \n + \n + this . defaultJarPath = defaultJarPath ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getDefaultJarPath ( ) { \n + return this . defaultJarPath ; \n + } \n + \n public void importPackage ( String packageName ) { \n this . importPackage ( this . getPackageInfo ( packageName ) ) ; \n }", "msg_token": "Made the default location of jars configurable"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Fix out of place import"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n i -= lastBelow ; \n if ( i != numRemoved ) { \n displayContent . layoutNeeded = true ; \n - Slog . w ( TAG_WM , STRING0 + displayContent . getDisplayId ( ) + STRING1 + \n - numRemoved + STRING2 + i , \n - new RuntimeException ( STRING3 ) . fillInStackTrace ( ) ) ; \n - for ( i = NUMBER0 ; i < numRemoved ; i ++ ) { \n + Slog . w ( TAG_WM , STRING0 + displayContent . getDisplayId ( ) + STRING1 \n + + numRemoved + STRING2 + i + STRING4 \n + + STRING5 + Debug . getCallers ( NUMBER1 ) ) ; \n + for ( i = NUMBER0 ; i < numRemoved ; i ++ ) { \n WindowState ws = mRebuildTmp [ i ] ; \n if ( ws . mRebuilding ) { \n StringWriter sw = new StringWriter ( ) ;", "msg_token": "Changed logging format of lost windows to reduce confusion"} {"diff": " public class UndertowInputStream extends InputStream { \n if ( read == - NUMBER0 ) { \n return - NUMBER0 ; \n } \n - return b [ NUMBER1 ] ; \n + return b [ NUMBER1 ] & NUMBER2 ; \n } \n \n @ override \n public class ServletInputStreamImpl extends ServletInputStream { \n if ( read == - NUMBER0 ) { \n return - NUMBER0 ; \n } \n - return b [ NUMBER1 ] ; \n + return b [ NUMBER1 ] & NUMBER2 ; \n } \n \n @ override", "msg_token": "Fix bug in servlet input stream read method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public class WearableController { \n . build ( ) ; \n ConnectionResult connectionResult = googleApiClient . blockingConnect ( NUMBER0 , TimeUnit . SECONDS ) ; \n if ( ! connectionResult . isSuccess ( ) ) { \n - LOGW ( TAG , STRING0 + connectionResult ) ; \n + if ( connectionResult . getErrorCode ( ) != ConnectionResult . API_UNAVAILABLE ) { \n + LOGV ( TAG , STRING1 ) ; \n + } else { \n + LOGW ( TAG , STRING0 + connectionResult ) ; \n + } \n return ; \n } \n Rect rect = new Rect ( ) ;", "msg_token": "Remove Wearable API warning messages when API is unavailable"} {"diff": " import NAMESPACE ; \n public class RexsterGraph implements IndexableGraph { \n \n private final String graphURI ; \n - private final String graphName ; \n \n public RexsterGraph ( final String graphURI ) { \n this . graphURI = graphURI ; \n SINGLE \n - JSONObject object = RestHelper . get ( graphURI ) ; \n - graphName = ( String ) object . get ( RexsterTokens . GRAPH ) ; \n + RestHelper . get ( graphURI ) ; \n } \n \n public String getGraphURI ( ) { \n public class RexsterGraph implements IndexableGraph { \n } \n \n public String toString ( ) { \n - return STRING0 + this . graphURI + STRING1 + this . graphName + STRING2 ; \n + JSONObject object = RestHelper . get ( graphURI ) ; \n + String graphName = ( String ) object . get ( RexsterTokens . GRAPH ) ; \n + return STRING0 + this . graphURI + STRING1 + graphName + STRING2 ; \n } \n }", "msg_token": "updated the toString method of RexsterGraph"} {"diff": " public class ModifyKeyboardShortcutsWidget extends ModalDialogBase \n if ( KeyboardHelper . isModifierKey ( event . getKeyCode ( ) ) ) \n return ; \n \n + event . stopPropagation ( ) ; \n + event . preventDefault ( ) ; \n + \n CommandBinding binding = preview . getValue ( ) ; \n \n if ( event . getKeyCode ( ) == KeyCodes . KEY_BACKSPACE ) \n { \n - event . stopPropagation ( ) ; \n - event . preventDefault ( ) ; \n buffer_ . pop ( ) ; \n binding . setKeySequence ( buffer_ ) ; \n } \n else if ( event . getKeyCode ( ) == KeyCodes . KEY_DELETE ) \n { \n - event . stopPropagation ( ) ; \n - event . preventDefault ( ) ; \n buffer_ . clear ( ) ; \n binding . restoreOriginalKeySequence ( ) ; \n }", "msg_token": "always stop event propagation when editting shortcut"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public class AsExistingPropertyTypeSerializer \n extends AsPropertyTypeSerializer \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n @ jacksonstdimpl \n public class EnumSerializer \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public final class LinkedNode < T > \n {", "msg_token": "remove obsolete author tags"} {"diff": " public class TransformingSendPort < T > extends DelegatingSendPort < T > { \n COMMENT \n COMMENT \n COMMENT \n - public TransformingSendPort < T > fixedTap ( final SendPort < ? super T > forwardTo , final StrandFactory strandFactory ) { \n + public TransformingSendPort < T > tap ( final SendPort < ? super T > forwardTo , final StrandFactory strandFactory ) { \n return Channels . transformSend ( Channels . tapSend ( this , forwardTo , strandFactory ) ) ; \n } \n \n public class TransformingSendPort < T > extends DelegatingSendPort < T > { \n COMMENT \n COMMENT \n COMMENT \n - public TransformingSendPort < T > fixedTap ( final SendPort < ? super T > forwardTo ) { \n + public TransformingSendPort < T > tap ( final SendPort < ? super T > forwardTo ) { \n return Channels . transformSend ( Channels . tapSend ( this , forwardTo ) ) ; \n }", "msg_token": "Convention fixies for send tap"} {"diff": " public class DevicePolicyManager { \n = STRING0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DevicePolicyManager { \n = STRING1 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix doc for package checksum in DevicePolicyManager"} {"diff": " public class PlainTextDocumentReaderAndWriter < IN extends CoreMap > implements Doc \n } \n \n private static final Pattern sgml = Pattern . compile ( STRING0 ) ; \n - private final WordToSentenceProcessor < IN > wts = new WordToSentenceProcessor < IN > ( ) ; \n + private final WordToSentenceProcessor < IN > wts = new WordToSentenceProcessor < IN > ( WordToSentenceProcessor . NewlineIsSentenceBreak . ALWAYS ) ; \n \n private SeqClassifierFlags flags ; SINGLE \n private TokenizerFactory < IN > tokenizerFactory ;", "msg_token": "Fix the sentence splitting behavior in the NER"} {"diff": " public final class AztecBlackBox2TestCase extends AbstractBlackBoxTestCase { \n public AztecBlackBox2TestCase ( ) { \n super ( STRING0 , new AztecReader ( ) , BarcodeFormat . AZTEC ) ; \n addTest ( NUMBER0 , NUMBER0 , FLOAT0 ) ; \n - addTest ( NUMBER1 , NUMBER1 , FLOAT1 ) ; \n + addTest ( NUMBER0 , NUMBER0 , FLOAT1 ) ; \n addTest ( NUMBER2 , NUMBER2 , FLOAT2 ) ; \n addTest ( NUMBER1 , NUMBER1 , FLOAT3 ) ; \n }", "msg_token": "Missed a test improvement"} {"diff": " final static class HashCollisionNode implements INode { \n private HashCollisionNode ensureEditable ( AtomicReference < Thread > edit ) { \n if ( this . edit == edit ) \n return this ; \n - return new HashCollisionNode ( edit , count , hash , array ) ; \n + return new HashCollisionNode ( edit , hash , count , array ) ; \n } \n \n private HashCollisionNode ensureEditable ( AtomicReference < Thread > edit , int count , Object [ ] array ) { \n final static class HashCollisionNode implements INode { \n this . array = array ; \n return this ; \n } \n - return new HashCollisionNode ( edit , count , hash , array ) ; \n + return new HashCollisionNode ( edit , hash , count , array ) ; \n } \n \n private HashCollisionNode editAndSet ( AtomicReference < Thread > edit , int i , Object a ) {", "msg_token": "fixed bug in HashCollisionNode"} {"diff": " public class ReturnChange { \n COMMENT \n public List < Integer > calculate ( int [ ] moneys , int billAmount ) { \n validateInputData ( moneys , billAmount ) ; \n + \n List < Integer > change = new LinkedList < Integer > ( ) ; \n while ( billAmount > NUMBER0 && moneys . length > NUMBER0 ) { \n for ( int i = moneys . length - NUMBER1 ; i >= NUMBER0 ; i -- ) { \n public class ReturnChange { \n private void validateInputData ( int [ ] moneys , int billAmount ) { \n if ( moneys == null || moneys . length == NUMBER0 || billAmount <= NUMBER0 ) { \n throw new IllegalArgumentException ( \n - STRING0 ) ; \n + STRING1 \n + + STRING2 ) ; \n } \n } \n }", "msg_token": "Fix check style issue"} {"diff": " public abstract class MixinItemLilyPad extends ItemColored { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n @ overwrite \n public ItemStack onItemRightClick ( ItemStack itemStackIn , World worldIn , EntityPlayer playerIn ) { \n MovingObjectPosition movingobjectposition = this . getMovingObjectPositionFromPlayer ( worldIn , playerIn , true ) ; \n public abstract class MixinMinecraftServer implements Server { \n return this . worldTickTimes ; \n } \n \n + @ override \n public ChunkTicketManager getChunkTicketManager ( ) { \n return this . chunkTicketManager ; \n }", "msg_token": "Add missing override annotations"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class JSON { \n public final static JsonFactory getFactory ( ) { \n return jsonMapper . getFactory ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static class UniqueIdTypeDeserializer \n + extends JsonDeserializer < UniqueIdType > { \n + \n + @ override \n + public UniqueIdType deserialize ( final JsonParser parser , final \n + DeserializationContext context ) throws IOException { \n + return UniqueId . stringToUniqueIdType ( parser . getValueAsString ( ) ) ; \n + } \n + } \n }", "msg_token": "Add JSON UniqueIdTypeDeserializer for deserializing human readable types to the UniqueIdType enumerator"} {"diff": " import NAMESPACE ; \n @ configurationproperties ( STRING0 ) \n public class AuthorizationServerProperties { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private String checkTokenAccess ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private String tokenKeyAccess ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private String realm ; \n \n public String getCheckTokenAccess ( ) {", "msg_token": "Add javadocs to auth server config props"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n COMMENT \n @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 ) \n + @ testlogging ( STRING0 ) \n public class RelocationTests extends ElasticsearchIntegrationTest { \n private final TimeValue ACCEPTABLE_RELOCATION_TIME = new TimeValue ( NUMBER1 , TimeUnit . MINUTES ) ;", "msg_token": "TEST add back accidetially removed test logging"} {"diff": " public class Uploader extends SherlockListActivity implements OnItemClickListene \n case DIALOG_MULTIPLE_ACCOUNT : \n CharSequence ac [ ] = new CharSequence [ mAccountManager . getAccountsByType ( MainApp . getAccountType ( ) ) . length ] ; \n for ( int i = NUMBER0 ; i < ac . length ; ++ i ) { \n - ac [ i ] = mAccountManager . getAccountsByType ( MainApp . getAccountType ( ) ) [ i ] . name ; \n + ac [ i ] = DisplayUtils . convertIdn ( mAccountManager . getAccountsByType ( MainApp . getAccountType ( ) ) [ i ] . name , false ) ; \n } \n builder . setTitle ( R . string . common_choose_account ) ; \n builder . setItems ( ac , new OnClickListener ( ) {", "msg_token": "Convert IDN from ASCII to Unicode in Upload Dialog"} {"diff": " public class MTLLoader implements AssetLoader { \n else \n color = new ColorRGBA ( ColorRGBA . White ) ; \n \n - color . a = scan . nextFloat ( ) ; \n + color . a = alpha ; \n material . setColor ( STRING0 , color ) ; \n material . setTransparent ( true ) ; \n material . getAdditionalRenderState ( ) . setBlendMode ( BlendMode . Alpha ) ;", "msg_token": "Fixed MTL loader bug when handling Tr d statement"} {"diff": " public class ProguardMojo extends AbstractAndroidMojo \n SINGLE \n String javaHome = System . getProperty ( STRING0 ) ; \n String jdkLibsPath = null ; \n - if ( javaHome . startsWith ( STRING1 ) || javaHome . startsWith ( STRING2 ) ) \n + if ( isMacOSXJDKbyApple ( javaHome ) ) \n { \n SINGLE \n - jdkLibsPath = javaHome + STRING3 ; \n + jdkLibsPath = appleJDKLibsPath ( javaHome ) ; \n addLibraryJar ( jdkLibsPath + STRING4 ) ; \n } \n else \n public class ProguardMojo extends AbstractAndroidMojo \n } \n } \n \n + private boolean isMacOSXJDKbyApple ( String javaHome ) \n + { \n + return ( javaHome . startsWith ( STRING1 ) || javaHome . startsWith ( STRING2 ) ) \n + && new File ( appleJDKLibsPath ( javaHome ) ) . exists ( ) ; \n + } \n + \n + private String appleJDKLibsPath ( String javaHome ) \n + { \n + return javaHome + STRING3 ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Only use the Mac OS X JDK path tweak if the path exists"} {"diff": " public abstract class SQLTransportIntegrationTest extends ElasticsearchIntegrati \n return ImmutableSettings . builder ( ) . put ( STRING0 , NUMBER0 ) . build ( ) ; \n } \n \n + @ override \n + public void waitForConcreteMappingsOnAll ( String index , String type , String . . . fieldNames ) throws Exception { \n + waitForMappingUpdateOnAll ( index , fieldNames ) ; \n + } \n + \n @ after \n public void assertNoJobExecutionContextAreLeftOpen ( ) throws Exception { \n final Field activeContexts = JobContextService . class . getDeclaredField ( STRING1 ) ;", "msg_token": "always use waitForMappingUpdateOnAll"} {"diff": " public class PVector implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public void lerp ( PVector v , float amt ) { \n x = PApplet . lerp ( x , v . x , amt ) ;", "msg_token": "Removed a see reference from PVector lerp as it wasn t being parsed by the ref generator script correctly"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public boolean executeHardwareAction ( Runnable action ) { \n - SINGLE \n - if ( mAttachInfo != null && mAttachInfo . mHardwareRenderer != null ) { \n - return mAttachInfo . mHardwareRenderer . safelyRun ( action ) ; \n - } \n - return false ; \n - } \n - \n void invalidateInheritedLayoutMode ( int layoutModeOfRoot ) { \n }", "msg_token": "Remove View executeHardwareAction"} {"diff": " public class Http11Processor extends AbstractHttp11Processor implements ActionHo \n SINGLE \n async = true ; \n } else if ( actionCode == ActionCode . ACTION_ASYNC_COMPLETE ) { \n - SINGLE \n + SINGLE \n AtomicBoolean dispatch = ( AtomicBoolean ) param ; \n RequestInfo rp = request . getRequestProcessor ( ) ; \n if ( rp . getStage ( ) != org . apache . coyote . Constants . STAGE_SERVICE ) { SINGLE", "msg_token": "Trivial align comment"} {"diff": " public class StandaloneCatalogMapper { \n if ( tmpDefaultProducts == null ) { \n final Map < String , Product > map = new HashMap < String , Product > ( ) ; \n for ( final Product product : input ) map . put ( product . getName ( ) , toDefaultProduct ( product ) ) ; \n - tmpDefaultProducts = ImmutableMap . copyOf ( map ) ; \n + tmpDefaultProducts = map ; \n } \n return tmpDefaultProducts . values ( ) ; \n } \n public class StandaloneCatalogMapper { \n if ( tmpDefaultPlans == null ) { \n final Map < String , Plan > map = new HashMap < String , Plan > ( ) ; \n for ( final Plan plan : input ) map . put ( plan . getName ( ) , toDefaultPlan ( plan ) ) ; \n - tmpDefaultPlans = ImmutableMap . copyOf ( map ) ; \n + tmpDefaultPlans = map ; \n } \n return tmpDefaultPlans . values ( ) ; \n }", "msg_token": "Remove unused copy of plans and products"} {"diff": " public class ActionBarView extends AbsActionBarView { \n private SpinnerAdapter mSpinnerAdapter ; \n private OnNavigationListener mCallback ; \n \n + SINGLE \n + \n private ExpandedActionViewMenuPresenter mExpandedMenuPresenter ; \n View mExpandedActionView ; \n \n public class ActionBarView extends AbsActionBarView { \n @ override \n public void onDetachedFromWindow ( ) { \n super . onDetachedFromWindow ( ) ; \n + SINGLE \n if ( mActionMenuPresenter != null ) { \n mActionMenuPresenter . hideOverflowMenu ( ) ; \n mActionMenuPresenter . hideSubMenus ( ) ;", "msg_token": "Using UNUSED comments instead of removing the unused code"} {"diff": " public final class ZLAndroidLibrary extends ZLibrary { \n intent . putExtra ( BookDownloaderService . SHOW_NOTIFICATIONS_KEY , BookDownloaderService . Notifications . ALL ) ; \n externalUrl = false ; \n } \n - reference = NetworkLibrary . Instance ( ) . rewriteUrl ( reference , externalUrl ) ; \n + SINGLE \n + SINGLE \n intent . setData ( Uri . parse ( reference ) ) ; \n myActivity . startActivity ( intent ) ; \n }", "msg_token": "rewriting URLs when clicked in the Book is disabled"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DexFile \n sectionsPosition ++ ; \n } \n \n + \n + offset = AlignmentUtils . alignOffset ( offset , ItemType . TYPE_MAP_LIST . ItemAlignment ) ; \n offset = MapItem . placeAt ( offset , NUMBER0 ) ; \n \n fileSize = offset ;", "msg_token": "Align the offset before placing the map item"} {"diff": " public class IDE { \n \n private static void print ( Writer writer , Object o ) { \n try { \n - writer . append ( String . valueOf ( o ) ) ; \n + writer . append ( String . valueOf ( o ) ) . append ( STRING0 ) ; \n } \n catch ( IOException e ) { \n throw new RuntimeException ( e ) ;", "msg_token": "add n on print"} {"diff": " public class AjpNioProtocol extends AbstractAjpProtocol { \n COMMENT \n @ override \n public void release ( SocketWrapper < NioChannel > socket ) { \n - Processor < NioChannel > processor = connections . remove ( socket ) ; \n + Processor < NioChannel > processor = \n + connections . remove ( socket . getSocket ( ) ) ; \n if ( processor != null ) { \n processor . recycle ( true ) ; \n recycledProcessors . push ( processor ) ;", "msg_token": "Fix release of processors in AjpNioProtocol"} {"diff": " public class FMLModContainer implements ModContainer \n { \n return certificate ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return STRING0 + getModId ( ) + STRING1 + getVersion ( ) + STRING2 ; \n + } \n }", "msg_token": "should mean less derpy cyclic dependency data"} {"diff": " public class BufferUtil \n if ( buffer . hasArray ( ) ) \n buf . append ( Integer . toHexString ( ( ( Object ) buffer . array ( ) ) . hashCode ( ) ) ) ; \n else \n - buf . append ( STRING0 ) ; \n + buf . append ( Integer . toHexString ( buf . hashCode ( ) ) ) ; \n buf . append ( STRING1 ) ; \n buf . append ( buffer . position ( ) ) ; \n buf . append ( STRING2 ) ;", "msg_token": "Including hashcode in BufferUtils toDetailString"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class DescribingMatcher < T extends Tree > implements Matcher < T > { \n + STRING0 ) ; \n } \n name = annotation . name ( ) ; \n - names = Lists . newArrayListWithCapacity ( annotation . altNames ( ) . length + NUMBER0 ) ; \n + names = new ArrayList < String > ( annotation . altNames ( ) . length + NUMBER0 ) ; \n names . add ( name ) ; \n names . addAll ( Arrays . asList ( annotation . altNames ( ) ) ) ; \n diagnosticMessage = STRING1 + annotation . name ( ) + STRING2 + annotation . summary ( )", "msg_token": "Fix broken build"} {"diff": " public class AnnotationLookup { \n SECTION_KEY ( CoreAnnotations . SectionAnnotation . class , STRING0 ) , \n SECTIONID_KEY ( CoreAnnotations . SectionIDAnnotation . class , STRING1 ) , \n SECTIONDATE_KEY ( CoreAnnotations . SectionDateAnnotation . class , STRING2 ) , \n + STACKED_NER_KEY ( CoreAnnotations . StackedNamedEntityTagAnnotation . class , STRING3 ) , \n \n SINGLE \n HEAD_KEY ( CoreAnnotations . HeadWordStringAnnotation . class , STRING4 ) ,", "msg_token": "Add stackedNer key to AnnotationLookup to allow hybrid NER training"} {"diff": " public class Cluster \n ExecutorService executor = Executors . newCachedThreadPool ( new NamedThreadFactory ( STRING0 ) ) ; \n try \n { \n - CompletionService < EdgeGraphDatabase > edgeGraphDatabaseCompletionService = startEdgeMembers ( executor ) ; \n startCoreMembers ( executor ) ; \n - waitForEdgeServers ( edgeGraphDatabaseCompletionService ) ; \n + startEdgeMembers ( executor ) ; \n } \n finally \n { \n public class Cluster \n } \n } \n \n - private CompletionService < EdgeGraphDatabase > startEdgeMembers ( ExecutorService executor ) throws InterruptedException , ExecutionException \n + private void startEdgeMembers ( ExecutorService executor ) throws InterruptedException , ExecutionException \n { \n CompletionService < EdgeGraphDatabase > ecs = new ExecutorCompletionService < > ( executor ) ; \n \n public class Cluster \n return edgeClusterMember . database ( ) ; \n } ) ; \n } \n - return ecs ; \n + \n + for ( int i = NUMBER0 ; i < edgeMembers . size ( ) ; i ++ ) \n + { \n + ecs . take ( ) . get ( ) ; \n + } \n } \n \n private void createEdgeMembers ( int noOfEdgeMembers ,", "msg_token": "start core servers first while we sort out shutting down CatchupServer when a core server is copying the store down"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class BridgedCollections { \n . descriptor ( descriptor ) ; \n } \n \n - public static Transformer < String , String > itemDescriptor ( String parentDescriptor ) { \n - return new StandardDescriptorFactory ( parentDescriptor ) ; \n - } \n - \n private static class ExtractFromParentContainer < I , C extends NamedDomainObjectCollection < I > > implements Transformer < I , MutableModelNode > { \n \n private final String name ;", "msg_token": "Removed unused method"} {"diff": " public class SearchDialog extends DialogWrapper implements ConfigurationCreator \n contextLanguage = psiElement != null ? psiElement . getParent ( ) . getLanguage ( ) : null ; \n } \n \n - if ( file . getFileType ( ) == StdFileTypes . HTML || \n + if ( file . getLanguage ( ) == StdLanguages . HTML || \n ( file . getFileType ( ) == StdFileTypes . JSP && \n contextLanguage == StdLanguages . HTML \n ) \n ) { \n ourFileType = STRING0 ; \n } \n - else if ( file . getFileType ( ) == StdFileTypes . XHTML || \n + else if ( file . getLanguage ( ) == StdLanguages . XHTML || \n ( file . getFileType ( ) == StdFileTypes . JSPX && \n contextLanguage == StdLanguages . HTML \n ) ) {", "msg_token": "use right PsiFile"} {"diff": " public class MasterUtil \n { \n try \n { \n - SINGLE \n long extractedTxId = finalLogExtractor . extractNext ( buffer ) ; \n if ( extractedTxId == - NUMBER0 ) throw new RuntimeException ( STRING0 ) ; \n + if ( extractedTxId != tx ) throw new RuntimeException ( STRING1 + tx + STRING2 + extractedTxId ) ; \n } \n catch ( IOException e ) \n { \n public abstract class Server < M , R > extends Protocol implements ChannelPipelineFa \n } \n catch ( Throwable e ) \n { \n + e . printStackTrace ( ) ; \n channel . close ( ) ; \n tryToFinishOffChannel ( channel , context ) ; \n throw Exceptions . launderedException ( e ) ;", "msg_token": "Added more assertions regarding extracted transactions"} {"diff": " public class MotionGroup extends AbstractActionGroup { \n } \n SINGLE \n else if ( ( flags & Command . FLAG_MOT_INCLUSIVE ) != NUMBER0 ) { \n - end = end + ( start <= end ? NUMBER1 : - NUMBER1 ) ; \n + end ++ ; \n } \n \n SINGLE \n public class MotionActionTest extends VimTestCase { \n assertSelection ( STRING0 ) ; \n } \n \n + SINGLE \n + public void testChangeEmptyQuotedString ( ) { \n + typeTextInFile ( stringToKeys ( STRING1 ) , \n + STRING2 ) ; \n + myFixture . checkResult ( STRING3 ) ; \n + } \n + \n SINGLE \n public void testDeleteInnerSingleQuoteString ( ) { \n typeTextInFile ( stringToKeys ( STRING4 ) ,", "msg_token": "Fixed ci for empty strings"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public interface LocalTerminalCustomizer { \n ExtensionPointName < LocalTerminalCustomizer > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n \n void setupEnvironment ( @ notnull Project project , @ notnull Map < String , String > envs ) ; \n + \n + @ nullable \n + String getDefaultFolder ( ) ; \n } \n public class LocalTerminalDirectRunner extends AbstractTerminalRunner < PtyProcess \n \n for ( LocalTerminalCustomizer customizer : LocalTerminalCustomizer . EP_NAME . getExtensions ( ) ) { \n customizer . setupEnvironment ( myProject , envs ) ; \n + \n + if ( directory == null ) { \n + directory = customizer . getDefaultFolder ( ) ; \n + } \n } \n \n try {", "msg_token": "Provide way to setup default folder"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public interface ResolutionStrategy { \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Tweaked the DSL and the documentation related to the strict resolution strategy"} {"diff": " class ActivityUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n \n public void goBackToActivity ( String name )", "msg_token": "Clarified javadoc for goBackToActivity in Solo and ActivityUtils"} {"diff": " public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . \n private void checkTagByDescriptor ( final XmlTag tag ) { \n String name = tag . getName ( ) ; \n \n - XmlElementDescriptor elementDescriptor ; \n + XmlElementDescriptor elementDescriptor = null ; \n \n final PsiElement parent = tag . getParent ( ) ; \n if ( parent instanceof XmlTag ) { \n XmlTag parentTag = ( XmlTag ) parent ; \n - elementDescriptor = parentTag . getDescriptor ( ) ; \n + final XmlElementDescriptor parentDescriptor = parentTag . getDescriptor ( ) ; \n boolean nullParentDescriptor = false ; \n \n - if ( elementDescriptor != null ) { \n - elementDescriptor = elementDescriptor . getElementDescriptor ( tag ) ; \n + if ( parentDescriptor != null ) { \n + elementDescriptor = parentDescriptor . getElementDescriptor ( tag ) ; \n } else { \n nullParentDescriptor = true ; \n }", "msg_token": "fixed issue with wrong jsp xml view generation for single tags"} {"diff": " public interface WindowManager extends ViewManager { \n @ viewdebug.inttostring ( from = TYPE_HIDDEN_NAV_CONSUMER , to = STRING0 ) , \n @ viewdebug.inttostring ( from = TYPE_DREAM , to = STRING1 ) , \n @ viewdebug.inttostring ( from = TYPE_NAVIGATION_BAR_PANEL , to = STRING2 ) , \n - @ viewdebug.inttostring ( from = TYPE_DISPLAY_OVERLAY , to = STRING3 ) , \n + @ viewdebug.inttostring ( from = TYPE_DISPLAY_OVERLAY , to = STRING3 ) \n } ) \n public int type ;", "msg_token": "Fix build for some javac compilers"} {"diff": " public final class PairedStatsAccumulator { \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n - void addAll ( PairedStats values ) { \n + public void addAll ( PairedStats values ) { \n if ( values . count ( ) == NUMBER0 ) { \n return ; \n } \n public final class StatsAccumulator { \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n - void addAll ( Stats values ) { \n + public void addAll ( Stats values ) { \n if ( values . count ( ) == NUMBER0 ) { \n return ; \n }", "msg_token": "Publishes the new StatsAccumulator addAll Stats and PairedStatsAccumulator addAll PairedStats methods"} {"diff": " public class FileBasedIndex implements ApplicationComponent { \n break ; SINGLE \n } \n } \n - if ( allDocsProcessed ) { \n - myUpToDateIndices . add ( indexId ) ; SINGLE \n + if ( allDocsProcessed && ! hasActiveTransactions ( ) ) { \n + myUpToDateIndices . add ( indexId ) ; SINGLE \n } \n } \n } \n public class FileBasedIndex implements ApplicationComponent { \n } \n } \n \n + private boolean hasActiveTransactions ( ) { \n + synchronized ( myTransactionMap ) { \n + return ! myTransactionMap . isEmpty ( ) ; \n + } \n + } \n + \n private interface DocumentContent { \n String getText ( ) ; \n long getModificationStamp ( ) ;", "msg_token": "Disable index is up to date optimization while in transaction"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n public class SiteNode extends DefaultMutableTreeNode { \n COMMENT \n COMMENT \n public void setHistoryReference ( HistoryReference historyReference ) { \n + \n + if ( HistoryReference . TYPE_SCANNER == historyReference . getHistoryType ( ) ) { \n + return ; \n + } \n \n if ( getHistoryReference ( ) != null ) { \n SINGLE", "msg_token": "Ignore Active scanner history refs"} {"diff": " public abstract class ConfusionProbabilityRule extends Rule { \n throw new RuntimeException ( e ) ; \n } \n this . lm = Objects . requireNonNull ( languageModel ) ; \n + if ( grams < NUMBER0 || grams > NUMBER1 ) { \n + throw new IllegalArgumentException ( STRING0 + grams ) ; \n + } \n this . grams = grams ; \n totalTokenCount = languageModel . getTotalTokenCount ( ) ; \n }", "msg_token": "improve error handling"} {"diff": " public class TransactionalGraphTestSuite extends TestSuite { \n vertexCount ( graph , NUMBER0 ) ; \n \n Vertex v2 = graph . addVertex ( null ) ; \n + v1 = graph . getVertex ( v1 . getId ( ) ) ; \n graph . addEdge ( null , v1 , v2 , convertId ( graph , STRING0 ) ) ; \n \n vertexCount ( graph , NUMBER1 ) ; \n public class TransactionalGraphTestSuite extends TestSuite { \n graph . stopTransaction ( Conclusion . SUCCESS ) ; \n \n vertexCount ( graph , NUMBER1 ) ; \n - \n + graph . shutdown ( ) ; \n } \n \n public void testBulkTransactionsOnEdges ( ) {", "msg_token": "Correcting test case to respect transactional boundary"} {"diff": " public class PrintActivity extends Activity implements RemotePrintDocument . Updat \n } \n \n private void ensureProgressUiShown ( ) { \n + if ( isFinishing ( ) ) { \n + return ; \n + } \n if ( mUiState != UI_STATE_PROGRESS ) { \n mUiState = UI_STATE_PROGRESS ; \n mPrintPreviewController . setUiShown ( false ) ; \n public class PrintActivity extends Activity implements RemotePrintDocument . Updat \n } \n \n private void ensurePreviewUiShown ( ) { \n + if ( isFinishing ( ) ) { \n + return ; \n + } \n if ( mUiState != UI_STATE_PREVIEW ) { \n mUiState = UI_STATE_PREVIEW ; \n mPrintPreviewController . setUiShown ( true ) ; \n public class PrintActivity extends Activity implements RemotePrintDocument . Updat \n } \n \n private void ensureErrorUiShown ( CharSequence message , int action ) { \n + if ( isFinishing ( ) ) { \n + return ; \n + } \n if ( mUiState != UI_STATE_ERROR ) { \n mUiState = UI_STATE_ERROR ; \n mPrintPreviewController . setUiShown ( false ) ;", "msg_token": "Do not change fragments if print activity finishing"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultPaymentApi implements PaymentApi { \n invoicePaymentApi . notifyOfPaymentAttempt ( new DefaultInvoicePayment ( paymentAttempt . getPaymentAttemptId ( ) , \n invoice . getId ( ) , \n paymentAttempt . getPaymentAttemptDate ( ) , \n - paymentInfo == null ? null : paymentInfo . getAmount ( ) , \n + paymentInfo == null || paymentInfo . getStatus ( ) . equalsIgnoreCase ( STRING0 ) ? null : paymentInfo . getAmount ( ) , \n SINGLE \n - paymentInfo == null ? null : invoice . getCurrency ( ) ) ) ; \n + paymentInfo == null || paymentInfo . getStatus ( ) . equalsIgnoreCase ( STRING0 ) ? null : invoice . getCurrency ( ) ) ) ; \n \n } \n }", "msg_token": "Tweaked handling of payment attempt notification when the status is error"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n public class CompilerSettings { \n - private static final String DEFAULT_ADDITIONAL_ARGUMENTS = STRING0 ; \n + private static final String DEFAULT_ADDITIONAL_ARGUMENTS = STRING1 ; \n \n @ notnull \n private String additionalArguments = DEFAULT_ADDITIONAL_ARGUMENTS ;", "msg_token": "Not writing compiler arguments from JPS plugin by default"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ClusterTest extends ControllerTest { \n Configuration configuration = BrokerTestUtils . getDefaultBrokerConfiguration ( ) ; \n configuration . setProperty ( STRING0 , NUMBER0 * NUMBER1 ) ; \n configuration . setProperty ( STRING1 , Integer . toString ( NUMBER2 + i ) ) ; \n + configuration . setProperty ( STRING2 , STRING3 ) ; \n overrideBrokerConf ( configuration ) ; \n _brokerStarters . add ( BrokerTestUtils . startBroker ( helixClusterName , ZkTestUtils . DEFAULT_ZK_STR , configuration ) ) ; \n }", "msg_token": "Fix NPE in integration tests when starting the broker"} {"diff": " public class Application extends android . app . Application { \n private DatabaseManager mDatabaseManager ; \n private Set < ActiveRecordBase < ? > > mEntities ; \n \n - private boolean mShowTrialToast ; \n - \n @ override \n public void onCreate ( ) { \n super . onCreate ( ) ; \n public class Application extends android . app . Application { \n if ( Params . LOGGING_ENABLED ) { \n Log . e ( Params . LOGGING_TAG , STRING0 ) ; \n } \n - \n + \n System . exit ( NUMBER0 ) ; \n } \n \n public class Application extends android . app . Application { \n mDatabaseManager . closeDB ( ) ; \n } \n \n - mShowTrialToast = false ; \n - \n super . onTerminate ( ) ; \n }", "msg_token": "Remove unused member"} {"diff": " public class AnnotationMethodMessageHandler implements MessageHandler , Applicati \n \n initHandlerMethods ( ) ; \n \n - SINGLE \n - this . argumentResolvers . addResolver ( new MessageBodyMethodArgumentResolver ( this . messageConverter ) ) ; \n - \n SINGLE \n this . argumentResolvers . addResolver ( new PrincipalMethodArgumentResolver ( ) ) ; \n this . argumentResolvers . addResolver ( new MessageMethodArgumentResolver ( ) ) ; \n public class AnnotationMethodMessageHandler implements MessageHandler , Applicati \n SINGLE \n this . argumentResolvers . addResolvers ( this . customArgumentResolvers ) ; \n \n + SINGLE \n + this . argumentResolvers . addResolver ( new MessageBodyMethodArgumentResolver ( this . messageConverter ) ) ; \n + \n SINGLE \n this . returnValueHandlers . addHandler ( new ReplyToMethodReturnValueHandler ( this . dispatchMessagingTemplate ) ) ; \n this . returnValueHandlers . addHandler ( new SubscriptionMethodReturnValueHandler ( this . webSocketSessionMessagingTemplate ) ) ;", "msg_token": "Fix bug with the order of messaging arg resolvers"} {"diff": " public class GitBlitDiffFormatter extends DiffFormatter { \n String [ ] lines = html . split ( STRING0 ) ; \n StringBuilder sb = new StringBuilder ( ) ; \n for ( String line : lines ) { \n - if ( line . startsWith ( STRING1 ) ) { \n + if ( line . startsWith ( STRING1 ) || line . startsWith ( STRING2 ) \n + || line . startsWith ( STRING3 ) || line . startsWith ( STRING4 ) ) { \n SINGLE \n } else if ( line . startsWith ( STRING5 ) || line . startsWith ( STRING6 ) ) { \n SINGLE", "msg_token": "Cleanup diff rename output"} {"diff": " public class ZooKeeperMap < V > extends ForwardingMap < String , V > { \n ZooKeeperMap ( ZooKeeperClient zkClient , String nodePath , \n Function < byte [ ] , V > deserializer ) throws InterruptedException , KeeperException , \n ZooKeeperConnectionException { \n - this ( zkClient , nodePath , deserializer , null ) ; \n + this ( zkClient , nodePath , deserializer , ZooKeeperMap . < V > noopListener ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fix constructor that was passing null"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class MapPropertySource extends EnumerablePropertySource < Map < String , Obje \n return StringUtils . toStringArray ( this . source . keySet ( ) ) ; \n } \n \n + @ override \n + public boolean containsProperty ( String name ) { \n + Assert . notNull ( name , STRING0 ) ; \n + boolean containsProperty = this . source . containsKey ( name ) ; \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( String . format ( STRING1 , getName ( ) , \n + ( containsProperty ? STRING2 : STRING3 ) , name ) ) ; \n + } \n + return containsProperty ; \n + } \n + \n }", "msg_token": "Implement containsProperty on MapPropertySource"} {"diff": " public class WebView extends AbsoluteLayout \n if ( ! nativeCursorIntersects ( visibleRect ) ) { \n return false ; \n } \n - nativeSetFollowedLink ( true ) ; \n nativeUpdatePluginReceivesEvents ( ) ; \n WebViewCore . CursorData data = cursorData ( ) ; \n mWebViewCore . sendMessage ( EventHub . SET_MOVE_MOUSE , data ) ; \n playSoundEffect ( SoundEffectConstants . CLICK ) ; \n - boolean isTextInput = nativeCursorIsTextInput ( ) ; \n - if ( isTextInput || ! mCallbackProxy . uiOverrideUrlLoading ( \n - nativeCursorText ( ) ) ) { \n + if ( nativeCursorIsTextInput ( ) ) { \n + rebuildWebTextView ( ) ; \n + return true ; \n + } \n + nativeSetFollowedLink ( true ) ; \n + if ( ! mCallbackProxy . uiOverrideUrlLoading ( nativeCursorText ( ) ) ) { \n mWebViewCore . sendMessage ( EventHub . CLICK , data . mFrame , \n nativeCursorNodePointer ( ) ) ; \n } \n - if ( isTextInput ) { \n - rebuildWebTextView ( ) ; \n - displaySoftKeyboard ( true ) ; \n - } \n return true ; \n }", "msg_token": "Do not hide the cursor ring when clicking on an input field"} {"diff": " final class WindowState implements WindowManagerPolicy . WindowState { \n mStableFrame . set ( mContentFrame ) ; \n } else if ( mAttrs . type == TYPE_DOCK_DIVIDER ) { \n mDisplayContent . mDividerControllerLocked . positionDockedStackedDivider ( mFrame ) ; \n + mContentFrame . set ( mFrame ) ; \n } else { \n mContentFrame . set ( Math . max ( mContentFrame . left , mFrame . left ) , \n Math . max ( mContentFrame . top , mFrame . top ) ,", "msg_token": "Fix frequent recreation of dock divider surface"} {"diff": " import NAMESPACE ; \n \n public class Address implements DataSerializable { \n \n - private String host = null ; \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final long serialVersionUID = - NUMBER0 ; \n + \n + private String host = null ; \n \n private byte [ ] ip ;", "msg_token": "Added serial version UID"} {"diff": " public class EnglishGrammaticalStructureTest extends TestCase { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , SINGLE \n } ; \n \n \n public class EnglishGrammaticalStructureTest extends TestCase { \n STRING4 + \n STRING5 + \n STRING6 , \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING10 + \n + STRING11 + \n + STRING12 + \n + STRING13 + \n + STRING14 + \n + STRING15 + \n + STRING16 + \n + STRING17 + \n + STRING18 + \n + STRING19 + \n + STRING20 , \n } ; \n \n assertEquals ( STRING21 , testTrees . length , testAnswers . length ) ;", "msg_token": "Add a test for the negcc collapsing for but not"} {"diff": " public class RestMainAction extends BaseRestHandler { \n \n @ override \n public void handleRequest ( final RestRequest request , final RestChannel channel ) { \n + if ( ! request . hasParam ( STRING0 ) ) { \n + request . params ( ) . put ( STRING0 , STRING1 ) ; \n + } \n ClusterStateRequest clusterStateRequest = new ClusterStateRequest ( ) ; \n clusterStateRequest . listenerThreaded ( false ) ; \n clusterStateRequest . masterNodeTimeout ( TimeValue . timeValueMillis ( NUMBER0 ) ) ; \n public class RestMainAction extends BaseRestHandler { \n } \n \n try { \n - XContentBuilder builder = RestXContentBuilder . restContentBuilder ( request ) . prettyPrint ( ) ; \n + XContentBuilder builder = RestXContentBuilder . restContentBuilder ( request ) ; \n builder . startObject ( ) ; \n builder . field ( STRING2 , true ) ; \n builder . field ( STRING3 , status . getStatus ( ) ) ;", "msg_token": "Handle pretty false and missing line feed for pretty true which is the default for main REST action"} {"diff": " public class BSONFileInputFormat extends FileInputFormat { \n public RecordReader createRecordReader ( final InputSplit split , final TaskAttemptContext context ) \n throws IOException , InterruptedException { \n \n - BSONFileRecordReader reader = new BSONFileRecordReader ( ) ; \n - reader . initialize ( split , context ) ; \n - return reader ; \n + return new BSONFileRecordReader ( ) ; \n } \n \n public static PathFilter getInputPathFilter ( final JobContext context ) {", "msg_token": "it causes http socket connection leak"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing Apache comments to new files"} {"diff": " public class ZMQ { \n base = base_ ; \n } \n \n - protected SocketBase base ( ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public SocketBase base ( ) { \n return base ; \n }", "msg_token": "expose special purpose raw zmq SocketBase"} {"diff": " public class RenderScript { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RenderScript { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n static public void forceCompat ( ) { \n sNative = NUMBER0 ;", "msg_token": "RenderScript fix unhide after cherry pick to aosp"} {"diff": " public class NumberPicker extends LinearLayout { \n mInputText . selectAll ( ) ; \n } else { \n mInputText . setSelection ( NUMBER0 , NUMBER0 ) ; \n - validateInputTextView ( v ) ; \n + validateInputTextView ( mInputText ) ; \n } \n } \n } ) ; \n public class NumberPicker extends LinearLayout { \n return false ; \n } \n \n - private void validateInputTextView ( View v ) { \n - String str = String . valueOf ( ( ( TextView ) v ) . getText ( ) ) ; \n + private void validateInputTextView ( NumberPickerEditText v ) { \n + String str = String . valueOf ( v . getText ( ) ) ; \n if ( TextUtils . isEmpty ( str ) ) { \n updateInputTextView ( ) ; \n } else {", "msg_token": "Fix crashing with using NumberPicker"} {"diff": " public enum Biome { \n ICE_DESERT , \n TUNDRA , \n HELL , \n - SKY \n + SKY , \n + OCEAN , \n + RIVER , \n + EXTREME_HILLS , \n }", "msg_token": "Ok so we need this"} {"diff": " public final class Ray implements Savable , Cloneable , Collidable , java . io . Serial \n COMMENT \n COMMENT \n public void setDirection ( Vector3f direction ) { \n - if ( ! direction . isUnitVector ( ) ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n - } \n + assert direction . isUnitVector ( ) ; \n this . direction . set ( direction ) ; \n }", "msg_token": "Replaced mandatory check in Ray setDirection with assertion"} {"diff": " public class GrailsCoreDependencies { \n \n String springVersion = STRING0 ; \n String antVersion = STRING1 ; \n - String groovyVersion = STRING2 ; \n String slf4jVersion = STRING3 ; \n String junitVersion = STRING4 ; \n ModuleRevisionId [ ] buildDependencies = { \n public class GrailsCoreDependencies { \n ModuleRevisionId . newInstance ( STRING5 , STRING5 , junitVersion ) , \n } ; \n registerDependencies ( dependencyManager , STRING6 , buildDependencies ) ; \n - \n + \n ModuleRevisionId [ ] antDependencies = { \n ModuleRevisionId . newInstance ( STRING7 , STRING8 , antVersion ) , \n ModuleRevisionId . newInstance ( STRING7 , STRING9 , antVersion ) , \n public class GrailsCoreDependencies { \n \n SINGLE \n ModuleRevisionId [ ] groovyDependencies = { \n - ModuleRevisionId . newInstance ( STRING10 , STRING11 , groovyVersion ) \n + ModuleRevisionId . newInstance ( STRING10 , STRING11 , STRING1 ) \n } ; \n registerDependencies ( dependencyManager , compileTimeDependenciesMethod , groovyDependencies , STRING12 ) ;", "msg_token": "Revert updated Groovy version"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class OptionsEditorDialog extends DialogWrapper { \n + public class OptionsEditorDialog extends DialogWrapper implements DataProvider { \n \n private Project myProject ; \n private ConfigurableGroup [ ] myGroups ; \n public class OptionsEditorDialog extends DialogWrapper { \n return myEditor . getPreferredFocusedComponent ( ) ; \n } \n \n + public Object getData ( @ nonnls String dataId ) { \n + if ( dataId . equals ( OptionsEditor . KEY . getName ( ) ) ) { \n + return myEditor ; \n + } \n + return null ; \n + } \n + \n private class ApplyAction extends AbstractAction { \n public ApplyAction ( ) { \n super ( CommonBundle . getApplyButtonText ( ) ) ;", "msg_token": "extend options editor context"} {"diff": " public class DexBackedDexFile extends BaseDexBuffer implements DexFile { \n \n public int getMethodIdItemOffset ( int methodIndex ) { \n if ( methodIndex < NUMBER0 || methodIndex >= methodCount ) { \n - throw new InvalidItemIndex ( methodIndex , STRING0 , methodIndex ) ; \n + throw new InvalidItemIndex ( methodIndex , STRING1 , methodIndex ) ; \n } \n return methodStartOffset + methodIndex * MethodIdItem . ITEM_SIZE ; \n }", "msg_token": "Fix typo in method index OOB error message"} {"diff": " public class StandardContext extends ContainerBase \n ApplicationListener listener = listeners [ i ] ; \n results [ i ] = instanceManager . newInstance ( \n listener . getClassName ( ) ) ; \n - if ( listener . isAllowedPluggability ( ) ) { \n + if ( listener . isPluggabilityBlocked ( ) ) { \n tldListeners . add ( results [ i ] ) ; \n } \n } catch ( Throwable t ) { \n package NAMESPACE ; \n public class ApplicationListener { \n \n private final String className ; \n - private final boolean allowedPluggability ; \n + private final boolean pluggabilityBlocked ; \n \n public ApplicationListener ( String className , \n - boolean allowedPluggability ) { \n + boolean pluggabilityBlocked ) { \n this . className = className ; \n - this . allowedPluggability = allowedPluggability ; \n + this . pluggabilityBlocked = pluggabilityBlocked ; \n } \n \n \n public class ApplicationListener { \n } \n \n \n - public boolean isAllowedPluggability ( ) { \n - return allowedPluggability ; \n + public boolean isPluggabilityBlocked ( ) { \n + return pluggabilityBlocked ; \n } \n }", "msg_token": "Align name with logic"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ReadOnlyHadoopSwapperTest extends TestCase { \n Store < ByteArray , byte [ ] > store2 = server2 . getStoreMap ( ) . get ( storeName ) ; \n \n SerializerDefinition serDef = new SerializerDefinition ( STRING0 , STRING1 ) ; \n - Serializer < Object > serializer = ( Serializer < Object > ) new DefaultSerializerFactory ( ) . getSerializer ( serDef ) ; \n + Serializer < Object > serializer = StoreUtils . unsafeGetSerializer ( new DefaultSerializerFactory ( ) , \n + serDef ) ; \n \n SINGLE \n for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {", "msg_token": "Eliminate compiler warnings"} {"diff": " public class PropertyExpression extends Expression { \n } \n \n public Expression transformExpression ( ExpressionTransformer transformer ) { \n - property = transformer . transform ( property ) ; \n - objectExpression = transformer . transform ( objectExpression ) ; \n - return this ; \n + PropertyExpression ret = new PropertyExpression ( transformer . transform ( objectExpression ) , \n + transformer . transform ( property ) , safe ) ; \n + ret . setSpreadSafe ( spreadSafe ) ; \n + ret . setStatic ( isStatic ) ; \n + ret . setImplicitThis ( implicitThis ) ; \n + ret . setSourcePosition ( this ) ; \n + return ret ; \n } \n \n public Expression getObjectExpression ( ) {", "msg_token": "fixed implementation of PropertyExpression transformExpression"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub \n } \n int user = UserHandle . getUserId ( Binder . getCallingUid ( ) ) ; \n synchronized ( mVpns ) { \n - setLockdownTracker ( new LockdownVpnTracker ( mContext , mNetd , this , mVpns . get ( user ) , \n - profile ) ) ; \n + Vpn vpn = mVpns . get ( user ) ; \n + if ( vpn == null ) { \n + Slog . w ( TAG , STRING0 + user + STRING1 ) ; \n + return false ; \n + } \n + setLockdownTracker ( new LockdownVpnTracker ( mContext , mNetd , this , vpn , profile ) ) ; \n } \n } else { \n setLockdownTracker ( null ) ;", "msg_token": "Skip lockdown setup if user is not up yet"} {"diff": " public abstract class AbstractScheduler implements InstanceListener { \n final ExecutionState state = vertex . getExecutionState ( ) ; \n \n if ( state != ExecutionState . CREATED && state != ExecutionState . FINISHED \n - && state != ExecutionState . FAILED ) { \n + && state != ExecutionState . FAILED && state != ExecutionState . CANCELED ) { \n + \n instanceCanBeReleased = false ; \n break ; \n }", "msg_token": "Fixed instance leak bug in case of canceled jobs"} {"diff": " public class SharedBlockingCallback \n return STRING0 ; \n } \n } ; \n + \n + private static Throwable FAILED = new Throwable ( ) \n + { \n + @ override \n + public String toString ( ) \n + { \n + return STRING1 ; \n + } \n + } ; \n \n final Blocker _blocker ; \n \n public class SharedBlockingCallback \n { \n if ( _state == null ) \n { \n - _state = cause ; \n + SINGLE \n + if ( cause == null ) \n + LOG . warn ( STRING2 , new Throwable ( ) ) ; \n + _state = cause == null ? FAILED : cause ; \n _complete . signalAll ( ) ; \n } \n else if ( _state == IDLE )", "msg_token": "Protect blocker against null failed callback"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class SerializerBase < S extends SerializerBase < S > > implements Vis \n int i = element . getIndex ( ) ; \n boolean wrap = false ; \n Expression arg = args . get ( i ) ; \n - if ( arg instanceof BooleanBuilder ) { \n - arg = ( ( BooleanBuilder ) arg ) . getValue ( ) ; \n + if ( arg instanceof Operation && ( ( Operation ) arg ) . getOperator ( ) == Ops . DELEGATE ) { \n + arg = ( ( Operation ) arg ) . getArg ( NUMBER0 ) ; \n } \n if ( arg instanceof Operation ) { \n wrap = precedence < templates . getPrecedence ( ( ( Operation < ? > ) arg ) . getOperator ( ) ) ;", "msg_token": "removed BooleanBuilder usage from SerializerBase"} {"diff": " public final class DoubleMath { \n throw new AssertionError ( ) ; \n } \n } \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public final class DoubleMath { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class DoubleMath { \n FLOAT0 , \n FLOAT1 , \n FLOAT2 } ; \n + \n + private DoubleMath ( ) { } \n }", "msg_token": "Add private constructor pointed out by Louis"} {"diff": " public class JBScrollPane extends JScrollPane { \n return ltr ? LEFT : RIGHT ; \n } \n } \n + SINGLE \n + SINGLE \n + if ( component instanceof JScrollBar ) { \n + JScrollBar bar = ( JScrollBar ) component ; \n + switch ( bar . getOrientation ( ) ) { \n + case Adjustable . HORIZONTAL : \n + return BOTTOM ; \n + case Adjustable . VERTICAL : \n + return bar . getComponentOrientation ( ) . isLeftToRight ( ) \n + ? RIGHT \n + : LEFT ; \n + } \n + } \n } \n return null ; \n }", "msg_token": "support a scroll bar which is not contained in a scroll pane"} {"diff": " public class OreDictionary \n replacements . put ( new ItemStack ( Blocks . planks , NUMBER0 , WILDCARD_VALUE ) , STRING0 ) ; \n replacements . put ( new ItemStack ( Blocks . wooden_slab , NUMBER0 , WILDCARD_VALUE ) , STRING1 ) ; \n replacements . put ( new ItemStack ( Blocks . stone ) , STRING2 ) ; \n - replacements . put ( new ItemStack ( Blocks . stone , NUMBER0 , WILDCARD_VALUE ) , STRING2 ) ; \n + SINGLE \n replacements . put ( new ItemStack ( Blocks . cobblestone ) , STRING3 ) ; \n replacements . put ( new ItemStack ( Blocks . cobblestone , NUMBER0 , WILDCARD_VALUE ) , STRING3 ) ; \n replacements . put ( new ItemStack ( Items . gold_ingot ) , STRING4 ) ;", "msg_token": "Fix recipies for stone variants"} {"diff": " public class DeepLinkingIntentReceiverActivity extends AppCompatActivity { \n startActivityForResult ( intent , INTENT_WELCOME ) ; \n } \n } else if ( uri . equals ( STRING0 ) ) { \n - attemptLogin ( uri ) ; \n + attemptLoginWithMagicLink ( uri ) ; \n } else { \n finish ( ) ; \n } \n public class DeepLinkingIntentReceiverActivity extends AppCompatActivity { \n finish ( ) ; \n } \n \n - private void attemptLogin ( Uri uri ) { \n - \n + private void attemptLoginWithMagicLink ( Uri uri ) { \n + SINGLE \n } \n \n @ override", "msg_token": "Clarifying magic link handling"} {"diff": " public class SimpleListDividerDecorator extends RecyclerView . ItemDecoration { \n if ( mHorizontalDividerHeight != NUMBER0 ) { \n final int left = child . getLeft ( ) ; \n final int right = child . getRight ( ) ; \n - final int top = child . getBottom ( ) ; \n + final int top = child . getBottom ( ) - ( mOverlap ? mHorizontalDividerHeight : NUMBER0 ) ; \n final int bottom = top + mHorizontalDividerHeight ; \n \n mHorizontalDrawable . setAlpha ( ( int ) ( ( FLOAT0 * NUMBER1 ) * ( childAlpha + nextChildAlpha ) + FLOAT0 ) ) ; \n public class SimpleListDividerDecorator extends RecyclerView . ItemDecoration { \n } \n \n if ( mVerticalDividerWidth != NUMBER0 ) { \n - final int left = child . getRight ( ) ; \n + final int left = child . getRight ( ) - ( mOverlap ? mVerticalDividerWidth : NUMBER0 ) ; \n final int right = left + mVerticalDividerWidth ; \n final int top = child . getTop ( ) ; \n final int bottom = child . getBottom ( ) ;", "msg_token": "Fix list divider drawn position"} {"diff": " public interface AccessLog { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Javadoc warnings"} {"diff": " enum ControlMessage { \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n ChannelBuffer buffer ( ) throws Exception { \n - ChannelBufferOutputStream bout = new ChannelBufferOutputStream ( ChannelBuffers . dynamicBuffer ( ) ) ; \n + ChannelBufferOutputStream bout = new ChannelBufferOutputStream ( ChannelBuffers . buffer ( NUMBER0 ) ) ; \n write ( bout ) ; \n bout . close ( ) ; \n return bout . buffer ( ) ;", "msg_token": "use fixed size buffer for control messages"} {"diff": " public class HighlighterSearchTests extends AbstractNodesTests { \n . execute ( ) . actionGet ( ) ; \n \n assertThat ( search . hits ( ) . totalHits ( ) , equalTo ( NUMBER0 ) ) ; \n + assertThat ( search . hits ( ) . hits ( ) . length , equalTo ( NUMBER1 ) ) ; \n + assertThat ( search . getFailedShards ( ) , equalTo ( NUMBER2 ) ) ; \n \n for ( SearchHit hit : search . hits ( ) ) { \n SINGLE", "msg_token": "check hits length and zero failures"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - public class StdLibTestSupport extends SingleFileTranslationTest { \n + abstract class StdLibTestSupport extends SingleFileTranslationTest { \n \n - public StdLibTestSupport ( ) { \n + protected StdLibTestSupport ( ) { \n super ( STRING0 ) ; \n }", "msg_token": "exclude the base class from being executed as a test case"} {"diff": " public abstract class AdminClient { \n COMMENT \n protected abstract Versioned < byte [ ] > doGetRemoteMetadata ( int remoteNodeId , ByteArray key ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean waitForCompletion ( int nodeId , int requestId , long maxWait , TimeUnit timeUnit ) { \n long delay = NUMBER0 ; \n - long maxDelay = NUMBER1 * NUMBER2 ; \n + COMMENT \n long waitUntil = System . currentTimeMillis ( ) + timeUnit . toMillis ( maxWait ) ; \n \n while ( System . currentTimeMillis ( ) < waitUntil ) { \n AsyncOperationStatus status = getAsyncRequestStatus ( nodeId , requestId ) ; \n if ( status . isComplete ( ) ) \n return true ; \n - if ( delay < maxDelay ) \n + COMMENT \n delay < <= NUMBER3 ; \n try { \n Thread . sleep ( delay ) ;", "msg_token": "Added documentation to waitForCompletion"} {"diff": " public class SearchPlugin implements Component , Plugin , PropertyEventListener { \n String query = entry . getValue ( ) ; \n \n Collection < User > foundUsers = new ArrayList < User > ( ) ; \n + SINGLE \n if ( userManager != null ) { \n if ( query . length ( ) > NUMBER0 \n && ! query . equals ( NAMESPACE_JABBER_IQ_SEARCH ) ) {", "msg_token": "Aded TODO for handling max number of results"} {"diff": " public class OMMapManager { \n SINGLE \n try { \n entry = mapBuffer ( iFile , iBeginOffset , bufferSize ) ; \n + } catch ( IllegalArgumentException e ) { \n + throw e ; \n } catch ( Exception e ) { \n SINGLE \n maxMemory = maxMemory * NUMBER0 / NUMBER1 ;", "msg_token": "Re thrown a non io exception"} {"diff": " public class TestHyperLogLogPlus \n public void testComputeCount ( ) \n { \n HyperLogLogPlus hyperLogLogPlus = new HyperLogLogPlus ( NUMBER0 , NUMBER1 ) ; \n - hyperLogLogPlus . offer ( NUMBER2 ) ; \n - hyperLogLogPlus . offer ( NUMBER3 ) ; \n - hyperLogLogPlus . offer ( NUMBER4 ) ; \n - hyperLogLogPlus . offer ( NUMBER5 ) ; \n - hyperLogLogPlus . offer ( NUMBER6 ) ; \n - hyperLogLogPlus . offer ( NUMBER7 ) ; \n - hyperLogLogPlus . offer ( NUMBER8 ) ; \n - hyperLogLogPlus . offer ( NUMBER9 ) ; \n - hyperLogLogPlus . offer ( NUMBER9 ) ; \n - assertEquals ( NUMBER10 , hyperLogLogPlus . cardinality ( ) ) ; \n + int count = NUMBER11 ; \n + for ( int i = NUMBER2 ; i < count ; i ++ ) \n + { \n + hyperLogLogPlus . offer ( STRING0 + i ) ; \n + } \n + assertEquals ( NUMBER11 , hyperLogLogPlus . cardinality ( ) ) ; \n } \n \n @ test", "msg_token": "make sparse test a little tougher"} {"diff": " public class GrailsRuntimeConfigurator implements ApplicationContextAware { \n else { \n ResourcePatternResolver patternResolver = new PathMatchingResourcePatternResolver ( ) ; \n springResources = patternResolver . getResource ( DEVELOPMENT_SPRING_RESOURCES_XML ) ; \n - System . out . println ( STRING0 + springResources + STRING1 + springResources . exists ( ) ) ; \n } \n \n if ( springResources != null && springResources . exists ( ) ) {", "msg_token": "removed unnecessary comment"} {"diff": " public class InferenceSession { \n } \n doesNotContainFalseBound = repeatInferencePhases ( true ) ; \n \n - PsiSubstitutor substitutor = resolveBounds ( myInferenceVariables . values ( ) , mySiteSubstitutor , false ) ; \n + PsiSubstitutor substitutor = resolveBounds ( myInferenceVariables . values ( ) , mySiteSubstitutor , ! policy . allowPostponeInference ( ) ) ; \n LOG . assertTrue ( parent != null ) ; \n PsiExpressionList argumentList = ( ( PsiCallExpression ) parent ) . getArgumentList ( ) ; \n LOG . assertTrue ( argumentList != null ) ;", "msg_token": "accept parameter bounds on return step"} {"diff": " public class DruidDataSource extends DruidAbstractDataSource implements DruidDat \n long timeMillis = currentMillis - activeInfo . getConnectTime ( ) ; \n \n if ( timeMillis >= removeAbandonedTimeoutMillis ) { \n - pooledConnection . abandond ( ) ; \n JdbcUtils . close ( pooledConnection ) ; \n + pooledConnection . abandond ( ) ; \n removeAbandonedCount ++ ; \n removeCount ++ ; \n abandonedList . add ( pooledConnection ) ;", "msg_token": "fixed removedAbandond problem"} {"diff": " public class PlaybackService extends Service { \n COMMENT \n COMMENT \n COMMENT \n - public static boolean headphonePause = false ; \n + public static boolean transientPause = false ; \n \n private static final int NOTIFICATION_ID = NUMBER0 ; \n \n public class PlaybackService extends Service { \n private void pauseIfPauseOnDisconnect ( ) { \n if ( UserPreferences . isPauseOnHeadsetDisconnect ( ) ) { \n if ( mediaPlayer . getPlayerStatus ( ) == PlayerStatus . PLAYING ) { \n - headphonePause = true ; \n + transientPause = true ; \n } \n if ( UserPreferences . isPersistNotify ( ) ) { \n mediaPlayer . pause ( false , true ) ; \n public class PlaybackService extends Service { \n } \n \n private void unpauseIfPauseOnDisconnect ( ) { \n - if ( UserPreferences . isPauseOnHeadsetDisconnect ( ) && headphonePause ) { \n - headphonePause = false ; \n + if ( UserPreferences . isPauseOnHeadsetDisconnect ( ) && transientPause ) { \n + transientPause = false ; \n mediaPlayer . resume ( ) ; \n } \n }", "msg_token": "Renamed headphonePause to transientPause"} {"diff": " public class XmlSlurper extends DefaultHandler { \n COMMENT \n COMMENT \n COMMENT \n - public void setEntityResolver ( final URL base ) { \n + public void setEntityBaseUrl ( final URL base ) { \n this . reader . setEntityResolver ( new EntityResolver ( ) { \n public InputSource resolveEntity ( final String publicId , final String systemId ) throws IOException { \n return new InputSource ( new URL ( base , systemId ) . openStream ( ) ) ;", "msg_token": "change the name of the aetEntityResolver URL to setEntityBaseUrl"} {"diff": " final class PDF417HighLevelEncoder { \n if ( b == NUMBER0 ) { \n b = NUMBER1 ; \n } \n - byte [ ] bytes = msg . substring ( p , b ) . getBytes ( encoding ) ; \n + byte [ ] bytes = msg . substring ( p , p + b ) . getBytes ( encoding ) ; \n if ( bytes . length == NUMBER1 && encodingMode == TEXT_COMPACTION ) { \n SINGLE \n encodeBinary ( bytes , NUMBER0 , NUMBER1 , TEXT_COMPACTION , sb ) ;", "msg_token": "Fixed substring call"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n public abstract class ByteIterator implements Iterator < Byte > { \n \n COMMENT \n public String toString ( ) { \n - StringBuilder sb = new StringBuilder ( ) ; \n - while ( this . hasNext ( ) ) { sb . append ( ( char ) nextByte ( ) ) ; } \n - return sb . toString ( ) ; \n + Charset cset = Charset . forName ( STRING0 ) ; \n + CharBuffer cb = cset . decode ( ByteBuffer . wrap ( this . toArray ( ) ) ) ; \n + return cb . toString ( ) ; \n } \n + \n COMMENT \n public byte [ ] toArray ( ) { \n long left = bytesLeft ( ) ;", "msg_token": "core ByteIterators toString method now uses java nio CharBuffer to decode the byte array"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClientIssueTest extends HazelcastTestSupport { \n } \n \n @ test \n - @ category ( ProblematicTest . class ) \n public void testOperationRedo ( ) throws Exception { \n final HazelcastInstance hz1 = Hazelcast . newHazelcastInstance ( ) ; \n final HazelcastInstance hz2 = Hazelcast . newHazelcastInstance ( ) ;", "msg_token": "Remove testOperationRedo from problematic"} {"diff": " public class BinaryTempFileBody implements Body { \n boolean closeStream = false ; \n InputStream in = getInputStream ( ) ; \n if ( MimeUtil . isBase64Encoding ( mEncoding ) ) { \n - out = ( OutputStream ) new Base64OutputStream ( out ) ; \n + out = new Base64OutputStream ( out ) ; \n closeStream = true ; \n } else if ( MimeUtil . isQuotedPrintableEncoded ( mEncoding ) ) { \n out = new QuotedPrintableOutputStream ( out , false ) ; \n public class LocalStore extends Store implements Serializable { \n boolean closeStream = false ; \n InputStream in = getInputStream ( ) ; \n if ( MimeUtil . isBase64Encoding ( mEncoding ) ) { \n - out = ( OutputStream ) new Base64OutputStream ( out ) ; \n + out = new Base64OutputStream ( out ) ; \n closeStream = true ; \n } else if ( MimeUtil . isQuotedPrintableEncoded ( mEncoding ) ) { \n out = new QuotedPrintableOutputStream ( out , false ) ;", "msg_token": "Remove unnecessary type cast"} {"diff": " public class AnnotatedServerEndpointConfig implements ServerEndpointConfig \n userProperties . putAll ( baseConfig . getUserProperties ( ) ) ; \n } \n \n - if ( anno . configurator ( ) == null ) \n + if ( anno . configurator ( ) == ServerEndpointConfig . Configurator . class ) \n { \n if ( configr != null ) \n {", "msg_token": "cannot specify a custom ServerEndpointConfig Configurator"} {"diff": " public class MultiselectSampleActivity extends AppCompatActivity { \n @ override \n public boolean onActionItemClicked ( ActionMode mode , MenuItem item ) { \n mUndoHelper . remove ( findViewById ( android . R . id . content ) , STRING0 , STRING1 , Snackbar . LENGTH_LONG , mFastAdapter . getSelections ( ) ) ; \n - SINGLE \n + SINGLE \n + mode . finish ( ) ; \n + SINGLE \n return true ; \n }", "msg_token": "improve behavior of the MultiSelectActivity"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n getLocationInWindow ( location ) ; \n region . op ( location [ NUMBER0 ] , location [ NUMBER1 ] , location [ NUMBER0 ] + mRight - mLeft , \n location [ NUMBER1 ] + mBottom - mTop , Region . Op . DIFFERENCE ) ; \n - } else if ( ( pflags & PFLAG_ONLY_DRAWS_BACKGROUND ) != NUMBER0 && mBackground != null ) { \n + } else if ( ( pflags & PFLAG_ONLY_DRAWS_BACKGROUND ) != NUMBER0 && mBackground != null && \n + mBackground . getOpacity ( ) != PixelFormat . TRANSPARENT ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Optimize gatherTransparentRegions to account for transparent bg"} {"diff": " enum TokeniserState { \n break ; \n case eof : \n t . eofError ( this ) ; \n + t . emitTagPending ( ) ; \n t . transition ( Data ) ; \n break ; \n case STRING0 : \n public class XmlTreeBuilderTest { \n Document doc = Jsoup . parse ( STRING1 , STRING2 , Parser . xmlParser ( ) ) ; \n assertEquals ( Syntax . xml , doc . outputSettings ( ) . syntax ( ) ) ; \n } \n + \n + @ test \n + public void testDoesHandleEOFInTag ( ) { \n + String html = STRING3 ; \n + Document xmlDoc = Jsoup . parse ( html , STRING2 , Parser . xmlParser ( ) ) ; \n + assertEquals ( STRING4 , xmlDoc . html ( ) ) ; \n + } \n }", "msg_token": "Keep tag that have not been closed by before reaching EOF"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "improved ContainerLifeCycle javadoc"} {"diff": " public class Roster { \n } \n \n public void initContact ( final Contact contact ) { \n + if ( contact == null ) { \n + return ; \n + } \n contact . setAccount ( account ) ; \n contact . setOption ( Contact . Options . IN_ROSTER ) ; \n synchronized ( this . contacts ) { \n public class DatabaseBackend extends SQLiteOpenHelper { \n SQLiteDatabase db = this . getReadableDatabase ( ) ; \n Cursor cursor ; \n String args [ ] = { roster . getAccount ( ) . getUuid ( ) } ; \n - cursor = db . query ( Contact . TABLENAME , null , Contact . ACCOUNT + STRING0 , \n - args , null , null , null ) ; \n + cursor = db . query ( Contact . TABLENAME , null , Contact . ACCOUNT + STRING0 , args , null , null , null ) ; \n while ( cursor . moveToNext ( ) ) { \n roster . initContact ( Contact . fromCursor ( cursor ) ) ; \n }", "msg_token": "avoid very rare npe"} {"diff": " public class OOrientDBLoader extends OAbstractLoader implements OLoader { \n for ( ODocument idx : indexes ) { \n OIndex index ; \n \n + final ODocument metadata = ( ODocument ) resolve ( idx . field ( STRING0 ) ) ; \n + log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING1 , getName ( ) , metadata ) ; \n + \n String idxName = ( String ) resolve ( idx . field ( STRING2 ) ) ; \n if ( idxName != null ) { \n index = documentDatabase . getMetadata ( ) . getIndexManager ( ) . getIndex ( idxName ) ; \n public class OOrientDBLoader extends OAbstractLoader implements OLoader { \n SINGLE \n continue ; \n \n - index = cls . createIndex ( idxName , idxType , fields ) ; \n + index = cls . createIndex ( idxName , idxType , null , metadata , fields ) ; \n log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING3 , \n idxName , idxType , idxClass , idxFields ) ; \n }", "msg_token": "Allow metadata field in indexes defined in output section"} {"diff": " public final class BluetoothA2dp implements BluetoothProfile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class BluetoothA2dp implements BluetoothProfile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class BluetoothHeadset implements BluetoothProfile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class BluetoothHeadset implements BluetoothProfile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class BluetoothHeadset implements BluetoothProfile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class BluetoothHeadset implements BluetoothProfile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some unmatched javadoc tags"} {"diff": " import NAMESPACE ; \n COMMENT \n public class AudioNode extends Node { \n \n - protected final AudioRenderer renderer ; \n + protected AudioRenderer renderer ; \n \n protected boolean loop = false ; \n protected float volume = NUMBER0 ; \n public class AudioNode extends Node { \n Stopped , \n } \n \n + public AudioNode ( ) { \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add empty constructore to AudioNode to reenable serialization temp fix"} {"diff": " public class ClassifyingModuleLoaderService implements Service < ClassifyingModule \n COMMENT \n COMMENT \n COMMENT \n - public void start ( StartContext context ) throws StartException { \n + public synchronized void start ( StartContext context ) throws StartException { \n classifyingModuleLoader = new ClassifyingModuleLoader ( delegates , Module . getCurrentLoader ( ) ) ; \n Module . setModuleLoaderSelector ( new SimpleModuleLoaderSelector ( classifyingModuleLoader ) ) ; \n }", "msg_token": "Fix sync issue in ClassifyingModuleLoaderService"} {"diff": " class MonthView extends GridLayout implements View . OnClickListener { \n CalendarWrapper . copyDateTo ( calendarOfRecord , tempWorkingCalendar ) ; \n int dow = tempWorkingCalendar . getDayOfWeek ( ) ; \n int delta = firstDayOfWeek - dow ; \n - if ( delta >= NUMBER0 ) { \n + SINGLE \n + boolean removeRow = showOtherMonths ? delta >= NUMBER0 : delta > NUMBER0 ; \n + if ( removeRow ) { \n delta -= NUMBER1 ; \n } \n tempWorkingCalendar . add ( DATE , delta ) ;", "msg_token": "Don t show blank rows"} {"diff": " public class ViewWebStats extends Activity { \n public void onClick ( View v ) { \n \n Intent intent = new Intent ( Intent . ACTION_VIEW ) ; \n - intent . setData ( Uri . parse ( STRING0 ) ) ; \n + intent . setData ( Uri . parse ( STRING1 ) ) ; \n startActivity ( intent ) ; \n \n }", "msg_token": "Updating the Need Help"} {"diff": " public class ReplacePathToMacroMap extends PathMacroMap { \n } \n \n public String substitute ( String text , boolean caseSensitive ) { \n + if ( text == null ) return null ; \n for ( final String path : getPathIndex ( ) ) { \n final String macro = get ( path ) ; \n text = replacePathMacro ( text , path , macro , caseSensitive ) ; \n public class ExpandMacroToPathMap extends PathMacroMap { \n } \n \n public String substitute ( String text , boolean caseSensitive ) { \n + if ( text == null ) return null ; \n for ( Map . Entry < String , String > entry : entries ( ) ) { \n SINGLE \n SINGLE", "msg_token": "tolerate null arguments just return them"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class RxJavaTests extends AndroidTestCase { \n public class RxJavaTests extends AndroidTestCase { \n dynamicRealm . close ( ) ; \n } \n \n + public void testUnsubscribe ( ) { \n + final AtomicBoolean subscribedNotified = new AtomicBoolean ( false ) ; \n + Subscription subscription = realm . asObservable ( ) . subscribe ( new Action1 < Realm > ( ) { \n + @ override \n + public void call ( Realm rxRealm ) { \n + assertTrue ( rxRealm == realm ) ; \n + subscribedNotified . set ( true ) ; \n + } \n + } ) ; \n + assertEquals ( NUMBER0 , realm . handlerController . changeListeners . size ( ) ) ; \n + subscription . unsubscribe ( ) ; \n + assertEquals ( NUMBER1 , realm . handlerController . changeListeners . size ( ) ) ; \n + } \n + \n }", "msg_token": "Add unsubscribe test"} {"diff": " public final class Field { \n COMMENT \n COMMENT \n public Class getElementType ( int index ) { \n - return field . getElementType ( index ) . getClassOfType ( ) ; \n + Type elementType = field . getElementType ( index ) ; \n + return elementType != null ? elementType . getClassOfType ( ) : null ; \n } \n \n COMMENT", "msg_token": "Add null check"} {"diff": " public class RosieUseCase { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix wrong aligned javadoc"} {"diff": " public class CheckInDialogFragment extends SherlockDialogFragment { \n mGetGlueChecked = prefs . getBoolean ( SeriesGuidePreferences . KEY_SHAREWITHGETGLUE , false ) ; \n mTraktChecked = prefs . getBoolean ( SeriesGuidePreferences . KEY_SHAREWITHTRAKT , false ) ; \n \n - SINGLE \n + SINGLE \n mMessageBox = ( EditText ) layout . findViewById ( R . id . message ) ; \n + mMessageBox . setText ( defaultMessage ) ; \n \n SINGLE \n layout . findViewById ( R . id . pasteEpisode ) . setOnClickListener ( new OnClickListener ( ) {", "msg_token": "Set episode title as default check in comment"} {"diff": " public class BackgroundDexOptService extends JobService { \n STRING0 , \n BackgroundDexOptService . class . getName ( ) ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + static final ArraySet < String > sFailedPackageNames = new ArraySet < String > ( ) ; \n + \n final AtomicBoolean mIdleTime = new AtomicBoolean ( false ) ; \n \n public static void schedule ( Context context ) { \n public class BackgroundDexOptService extends JobService { \n schedule ( BackgroundDexOptService . this ) ; \n return ; \n } \n - pm . performDexOpt ( pkg , null COMMENT , true ) ; \n + if ( sFailedPackageNames . contains ( pkg ) ) { \n + SINGLE \n + continue ; \n + } \n + if ( ! pm . performDexOpt ( pkg , null COMMENT , true ) ) { \n + SINGLE \n + SINGLE \n + sFailedPackageNames . add ( pkg ) ; \n + } \n } \n SINGLE \n jobFinished ( jobParams , false ) ;", "msg_token": "Remember failed dexopt to avoid retry"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public interface ServletModuleBinding {", "msg_token": "add since tag"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectImpl extends ComponentManagerImpl implements ProjectEx { \n private final ProjectFileIndex myFileIndex = projectRootManager . getFileIndex ( ) ; \n \n public boolean contains ( VirtualFile file ) { \n - return myFileIndex . isInContent ( file ) ; \n + return file instanceof VirtualFileDelegate || myFileIndex . isInContent ( file ) ; \n } \n \n public int compare ( VirtualFile file1 , VirtualFile file2 ) {", "msg_token": "injected files do belong to project scope"} {"diff": " public class Array < T > implements Iterable < T > { \n COMMENT \n COMMENT \n public Array ( boolean ordered , int capacity , Class < T > arrayType ) { \n + this . ordered = ordered ; \n items = ( T [ ] ) java . lang . reflect . Array . newInstance ( arrayType , capacity ) ; \n }", "msg_token": "fixed Array constructor didn t use ordered parameter"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class IterationState { \n private final Color myReadOnlyColor ; \n \n public IterationState ( EditorEx editor , int start , boolean useCaretAndSelection ) { \n - ApplicationManagerEx . getApplicationEx ( ) . assertIsDispatchThread ( editor . getComponent ( ) ) ; \n + ApplicationManager . getApplication ( ) . assertReadAccessAllowed ( ) ; \n myDocument = ( DocumentEx ) editor . getDocument ( ) ; \n myStartOffset = start ; \n myEnd = editor . getDocument ( ) . getTextLength ( ) ; \n public final class IterationState { \n return o1Length - o2Length ; \n } \n } \n - } \n + }", "msg_token": "Relax assertion as IterationState is necessary for correct column calc"} {"diff": " final class NameGenerator { \n COMMENT \n public void favors ( CharSequence sequence ) { \n for ( int i = NUMBER0 ; i < sequence . length ( ) ; i ++ ) { \n - priorityLookupMap . get ( sequence . charAt ( i ) ) . occurance ++ ; \n + CharPriority c = priorityLookupMap . get ( sequence . charAt ( i ) ) ; \n + if ( c != null ) { \n + c . occurance ++ ; \n + } \n } \n }", "msg_token": "Make favors ignore chars that are not in the name charset"} {"diff": " public abstract class InCallService extends Service { \n \n @ override \n public boolean onUnbind ( Intent intent ) { \n - Phone oldPhone = mPhone ; \n - mPhone = null ; \n + if ( mPhone != null ) { \n + Phone oldPhone = mPhone ; \n + mPhone = null ; \n \n - oldPhone . destroy ( ) ; \n - onPhoneDestroyed ( oldPhone ) ; \n + oldPhone . destroy ( ) ; \n + onPhoneDestroyed ( oldPhone ) ; \n + } \n return false ; \n }", "msg_token": "Fix NPE in onDestroy"} {"diff": " public class OAutoshardedStorageImpl implements OAutoshardedStorage { \n return wrapped . existsResource ( iName ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n public < T > T removeResource ( final String iName ) { \n - return wrapped . removeResource ( iName ) ; \n + return ( T ) wrapped . removeResource ( iName ) ; \n } \n \n public < T > T getResource ( final String iName , final Callable < T > iCallback ) { \n - return wrapped . getResource ( iName , iCallback ) ; \n + return ( T ) wrapped . getResource ( iName , iCallback ) ; \n } \n \n public void open ( final String iUserName , final String iUserPassword , final Map < String , Object > iProperties ) {", "msg_token": "Fixed compilation problem"} {"diff": " public class DefaultServer extends BlockJUnit4ClassRunner { \n \n if ( ! DebuggingSlicePool . BUFFERS . isEmpty ( ) ) { \n try { \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n + if ( ! DebuggingSlicePool . BUFFERS . isEmpty ( ) ) { \n + Thread . sleep ( NUMBER0 ) ; \n + } \n } catch ( InterruptedException e ) { \n throw new RuntimeException ( e ) ; \n }", "msg_token": "Increase the buffer leak detector timeout"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n public class Application extends ActorSDKApplication { \n \n public class Application extends ActorSDKApplication { \n } \n \n private class ActorSDKDelegate extends BaseActorSDKDelegate { \n - @ override \n - public BaseAuthFragment getSignFragment ( ) { \n - return new SignEmailFragment ( ) ; \n - } \n \n @ override \n public ActorIntent getSettingsIntent ( ) {", "msg_token": "remove email sign"} {"diff": " public class PrintJobConfigActivity extends Activity { \n builder . append ( STRING0 ) ; \n } \n PageRange pageRange = pageRanges [ i ] ; \n - builder . append ( pageRange . getStart ( ) ) ; \n - builder . append ( STRING1 ) ; \n - builder . append ( pageRange . getEnd ( ) ) ; \n + final int shownStartPage = pageRange . getStart ( ) + NUMBER0 ; \n + final int shownEndPage = pageRange . getEnd ( ) + NUMBER0 ; \n + builder . append ( shownStartPage ) ; \n + if ( shownStartPage != shownEndPage ) { \n + builder . append ( STRING1 ) ; \n + builder . append ( shownEndPage ) ; \n + } \n } \n mPageRangeEditText . setText ( builder . toString ( ) ) ; \n }", "msg_token": "Fix incorrent page range parsing when custom print options used"} {"diff": " public abstract class PullToRefreshBase < T extends View > extends LinearLayout { \n COMMENT \n COMMENT \n COMMENT \n - public final void setPullToRefreshEnabled ( boolean enabled ) { \n - this . isPullToRefreshEnabled = enabled ; \n + public final void setPullToRefreshEnabled ( boolean enable ) { \n + this . isPullToRefreshEnabled = enable ; \n } \n \n public final void setReleaseLabel ( String releaseLabel ) {", "msg_token": "fix a typo"} {"diff": " public final class ImportCommand extends Command { \n \n final KeywordSubstitution keywordSubstMode = getKeywordSubstMode ( file . getName ( ) ) ; \n final boolean writable = clientEnvironment . getLocalFileReader ( ) . isWritable ( fileObject , clientEnvironment . getCvsFileSystem ( ) ) ; \n - requests . addKoptRequest ( keywordSubstMode ) ; \n + if ( keywordSubstMode != null ) { \n + requests . addKoptRequest ( keywordSubstMode ) ; \n + } \n requests . addModifiedRequest ( fileObject , keywordSubstMode == KeywordSubstitution . BINARY , writable ) ; \n } \n }", "msg_token": "max do not pass null KeywordSubstitution"} {"diff": " public class XmppConnection implements Runnable { \n } \n sslSocket . setEnabledProtocols ( supportProtocols ) ; \n \n - if ( verifier != null \n - && ! verifier . verify ( account . getServer ( ) . getDomainpart ( ) , \n - sslSocket . getSession ( ) ) ) { \n - sslSocket . close ( ) ; \n - throw new IOException ( STRING0 ) ; \n - } \n + if ( verifier != null \n + && ! verifier . verify ( account . getServer ( ) . getDomainpart ( ) , \n + sslSocket . getSession ( ) ) ) { \n + account . setStatus ( Account . State . SECURITY_ERROR ) ; \n + sslSocket . close ( ) ; \n + throw new IOException ( STRING1 ) ; \n + } \n tagReader . setInputStream ( sslSocket . getInputStream ( ) ) ; \n tagWriter . setOutputStream ( sslSocket . getOutputStream ( ) ) ; \n sendStartStream ( ) ;", "msg_token": "Set security error status on TLS cert mismatch"} {"diff": " public final class PDF417ScanningDecoder { \n if ( detectionResult == null ) { \n throw NotFoundException . getNotFoundInstance ( ) ; \n } \n - if ( i == NUMBER0 && \n + if ( i == NUMBER0 && detectionResult . getBoundingBox ( ) != null && \n ( detectionResult . getBoundingBox ( ) . getMinY ( ) < boundingBox . getMinY ( ) || detectionResult . getBoundingBox ( ) \n . getMaxY ( ) > boundingBox . getMaxY ( ) ) ) { \n boundingBox = detectionResult . getBoundingBox ( ) ;", "msg_token": "Avoid possible NPE when there is no bounding box"} {"diff": " public class InStreamOptionsTest { \n TachyonConf originalConf = ClientContext . getConf ( ) ; \n TachyonConf conf = new TachyonConf ( ) ; \n conf . set ( Constants . USER_FILE_READ_TYPE_DEFAULT , ReadType . NO_CACHE . toString ( ) ) ; \n + ClientContext . reset ( conf ) ; \n \n InStreamOptions options = InStreamOptions . defaults ( ) ; \n Assert . assertEquals ( ReadType . NO_CACHE . getTachyonStorageType ( ) , options . getTachyonStorageType ( ) ) ;", "msg_token": "Fix failing tests during merge in tachyon client file options InStreamOptionsTest modifiedConfTest"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n if ( drawingWithRenderNode ) { \n renderNode . setAlpha ( alpha * getAlpha ( ) * getTransitionAlpha ( ) ) ; \n } else if ( layerType == LAYER_TYPE_NONE ) { \n - int layerFlags = Canvas . HAS_ALPHA_LAYER_SAVE_FLAG ; \n - if ( ( parentFlags & ViewGroup . FLAG_CLIP_CHILDREN ) != NUMBER0 ) { \n - layerFlags |= Canvas . CLIP_TO_LAYER_SAVE_FLAG ; \n - } \n canvas . saveLayerAlpha ( sx , sy , sx + getWidth ( ) , sy + getHeight ( ) , \n - multipliedAlpha , layerFlags ) ; \n + multipliedAlpha ) ; \n } \n } else { \n SINGLE", "msg_token": "Unify View alpha implies clipping behavior"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n \n - public final class JDBCAccessLogValve extends ValveBase { \n + public final class JDBCAccessLogValve extends ValveBase implements AccessLog { \n \n SINGLE \n \n public final class JDBCAccessLogValve extends ValveBase { \n @ override \n public void invoke ( Request request , Response response ) \n throws IOException , ServletException { \n - final String EMPTY = STRING0 ; \n \n getNext ( ) . invoke ( request , response ) ; \n \n + log ( request , response , NUMBER0 ) ; \n + } \n + \n + \n + @ override \n + public void log ( Request request , Response response , long time ) { \n + final String EMPTY = STRING0 ; \n + \n String remoteHost ; \n if ( resolveHosts ) \n remoteHost = request . getRemoteHost ( ) ;", "msg_token": "Add AccessLog interface to JDBCAccessLog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class ManagementCenterIdentifier implements Serializable { \n } \n return version ; \n } \n - throw new IllegalArgumentException ( STRING0 ) ; \n + throw new IllegalArgumentException ( format ( STRING1 , versionString ) ) ; \n } \n \n public static String convertVersionToString ( int version ) {", "msg_token": "Included the actual version when there is a failure to convert the version to an int"} {"diff": " class PackageManagerService extends IPackageManager . Stub { \n SINGLE \n } \n } \n - if ( libraryPath != null ) { \n - NativeLibraryHelper . removeNativeBinariesLI ( libraryPath ) ; \n - } \n } \n \n private boolean setPermissions ( ) {", "msg_token": "Handle native library deletion in scanPackage"} {"diff": " public interface Entity { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void teleportTo ( Location location ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void teleportTo ( Entity destination ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added Entity teleportTo Entity"} {"diff": " public class FingerprintManager { \n if ( mRemovalCallback != null ) { \n int reqFingerId = mRemovalFingerprint . getFingerId ( ) ; \n int reqGroupId = mRemovalFingerprint . getGroupId ( ) ; \n - if ( fingerId != reqFingerId ) { \n + if ( reqFingerId != NUMBER0 && fingerId != reqFingerId ) { \n Log . w ( TAG , STRING0 + fingerId + STRING1 + reqFingerId ) ; \n } \n if ( groupId != reqGroupId ) { \n public class FingerprintManager { \n } ; \n \n } \n -", "msg_token": "Eliminate false error messages when removing all fingerprints"} {"diff": " public class GenericItemAdapter < Model , Item extends GenericAbstractItem < Model , I \n COMMENT \n COMMENT \n public GenericItemAdapter ( Class < ? extends Item > itemClass , Class < ? extends Model > modelClass ) { \n - this ( new ReflectionBasedItemFactory < Model , Item > ( modelClass , itemClass ) ) ; \n + this ( new ReflectionBasedItemFactory < > ( modelClass , itemClass ) ) ; \n } \n \n COMMENT", "msg_token": "remove unnecessary type definition"} {"diff": " public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr \n \n } \n } catch ( Exception e ) { \n + if ( exceptions [ current ] == null ) { \n + exceptions [ current ] = new RuntimeException ( e ) ; \n + } \n e . printStackTrace ( ) ; \n } \n }", "msg_token": "Fix exception handling in parallel queries"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n @ suppresswarnings ( STRING0 ) \n - public class Astrid44SyncMigrator { \n + public class AstridNewSyncMigrator { \n \n @ autowired private MetadataService metadataService ; \n @ autowired private TagDataService tagDataService ; \n public class Astrid44SyncMigrator { \n \n private static final String LOG_TAG = STRING1 ; \n \n - public Astrid44SyncMigrator ( ) { \n + public AstridNewSyncMigrator ( ) { \n DependencyInjectionService . getInstance ( ) . inject ( this ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class UpgradeService { \n new SubtasksMetadataMigration ( ) . performMigration ( ) ; \n \n if ( from < V4_5_0 ) \n - new Astrid44SyncMigrator ( ) . performMigration ( ) ; \n + new AstridNewSyncMigrator ( ) . performMigration ( ) ; \n \n } finally { \n DialogUtilities . dismissDialog ( UpgradeActivity . this , dialog ) ;", "msg_token": "Renamed a file"} {"diff": " public class DbTester extends ExternalResource { \n if ( value instanceof Clob ) { \n Clob clob = ( Clob ) value ; \n value = IOUtils . toString ( ( clob . getAsciiStream ( ) ) ) ; \n - clob . free ( ) ; \n + doClobFree ( clob ) ; \n } else if ( value instanceof BigDecimal ) { \n SINGLE \n value = ( ( BigDecimal ) value ) . longValue ( ) ; \n public class DbTester extends ExternalResource { \n IOUtils . closeQuietly ( input ) ; \n } \n } \n + \n + private static void doClobFree ( Clob clob ) throws SQLException { \n + try { \n + clob . free ( ) ; \n + } catch ( AbstractMethodError e ) { \n + SINGLE \n + } \n + } \n }", "msg_token": "Fix usage of clob free on MsSQL"} {"diff": " public abstract class AsyncHttpResponseHandler implements ResponseHandlerInterfa \n \n @ override \n public void setUseSynchronousMode ( boolean value ) { \n - SINGLE \n - if ( value && null == Looper . myLooper ( ) ) { \n - value = false ; \n - Log . i ( LOG_TAG , STRING0 ) ; \n + SINGLE \n + if ( ! value && Looper . myLooper ( ) == null ) { \n + value = true ; \n + Log . w ( LOG_TAG , STRING0 ) ; \n } \n \n - SINGLE \n - if ( value && handler == null ) { \n + SINGLE \n + if ( ! value && handler == null ) { \n SINGLE \n handler = new ResponderHandler ( this ) ; \n - } else if ( ! value && handler != null ) { \n + } else if ( value && handler != null ) { \n SINGLE \n handler = null ; \n }", "msg_token": "Fix a logical bug when setting async sync mode"} {"diff": " public class FlatWelcomeFrame extends JFrame implements IdeFrame { \n ListSelectionListener selectionListener = new ListSelectionListener ( ) { \n @ override \n public void valueChanged ( ListSelectionEvent e ) { \n + if ( e . getValueIsAdjusting ( ) ) { \n + SINGLE \n + SINGLE \n + return ; \n + } \n if ( ! selected . isNull ( ) ) { \n main . remove ( selected . get ( ) ) ; \n }", "msg_token": "update UI when change has been finalized otherwise New Project validation listeners are doubled"} {"diff": " public class ReaderPostPagerActivity extends Activity \n view . setAlpha ( NUMBER0 ) ; \n view . setVisibility ( View . INVISIBLE ) ; \n } \n - \n - AppLog . w ( AppLog . T . READER , STRING0 + position ) ; \n } \n } \n }", "msg_token": "Removed unnecessary AppLog call"} {"diff": " public class CloudWatchMetricObserver extends BaseMetricObserver { \n try { \n cloudWatch . putMetricData ( createPutRequest ( batch ) ) ; \n } catch ( Exception e ) { \n - log . error ( STRING0 batch , e ) ; \n + log . error ( STRING0 + batch , e ) ; \n } \n batch . clear ( ) ; \n }", "msg_token": "missed a string concatenation"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Parameterized extends Suite { \n private List < Runner > createRunnersForParameters ( \n Iterable < Object > allParameters , String namePattern , \n ParametersRunnerFactory runnerFactory ) \n - throws InitializationError , \n - Exception { \n + throws Exception { \n try { \n List < TestWithParameters > tests = createTestsForParameters ( \n allParameters , namePattern ) ;", "msg_token": "Remove redundant exception from method signature"} {"diff": " public class StudyDirectoryProjectGenerator implements DirectoryProjectGenerator \n String fileName = file . getName ( ) ; \n String unzippedName = fileName . substring ( NUMBER0 , fileName . indexOf ( STRING0 ) ) ; \n File courseDir = new File ( myCoursesDir , unzippedName ) ; \n - ZipUtil . unzip ( null , myCoursesDir , file , null , null , true ) ; \n + ZipUtil . unzip ( null , courseDir , file , null , null , true ) ; \n CourseInfo courseName = addCourse ( myCourses , courseDir ) ; \n flushCache ( ) ; \n return courseName ;", "msg_token": "reverted unzip fix"} {"diff": " public final class ContactsContract { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static final String IS_READ_ONLY = STRING0 ; \n } \n public final class ContactsContract { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static final String IS_READ_ONLY = STRING0 ;", "msg_token": "Hiding new API"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaLanguagePlugin implements Plugin < Project > { \n } \n \n private List < ResolutionAwareRepository > getResolutionAwareRepositories ( ) { \n - ImmutableList < ArtifactRepository > artifactRepositories = ImmutableList . copyOf ( repositories . iterator ( ) ) ; \n + COMMENT \n List < ResolutionAwareRepository > resolutionRepositories = new LinkedList < ResolutionAwareRepository > ( ) ; \n for ( ArtifactRepository artifactRepository : artifactRepositories ) { \n if ( artifactRepository instanceof ResolutionAwareRepository ) { \n resolutionRepositories . add ( ( ResolutionAwareRepository ) artifactRepository ) ; \n } \n } \n - return resolutionRepositories ; \n + COMMENT \n + return Collections . emptyList ( ) ; \n } \n } \n }", "msg_token": "As of the spec return an empty repository list"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class AgentTasksEnhancer implements Action < Project > { \n if ( loaded != null ) { \n CodeSource source = loaded . getProtectionDomain ( ) . getCodeSource ( ) ; \n if ( source != null ) { \n - return new File ( source . getLocation ( ) . getFile ( ) ) ; \n + File agent ; \n + try { \n + agent = new File ( source . getLocation ( ) . toURI ( ) ) ; \n + } \n + catch ( URISyntaxException ex ) { \n + agent = new File ( source . getLocation ( ) . getPath ( ) ) ; \n + } \n + return agent ; \n } \n } \n }", "msg_token": "Convert URL to File using a URI so that URL encoding is removed"} {"diff": " public class AsyncServer { \n return ; \n } \n \n - ret . setComplete ( connectResolvedInetSocketAddress ( new InetSocketAddress ( remote . getHostName ( ) , remote . getPort ( ) ) , callback ) ) ; \n + ret . setComplete ( connectResolvedInetSocketAddress ( new InetSocketAddress ( result , remote . getPort ( ) ) , callback ) ) ; \n } \n } ) ; \n return ret ;", "msg_token": "actually use the resolved address"} {"diff": " public final class CommandPermissions { \n DefaultPermissions . registerPermission ( PREFIX + STRING0 , STRING1 , PermissionDefault . TRUE , commands ) ; \n DefaultPermissions . registerPermission ( PREFIX + STRING2 , STRING3 , PermissionDefault . OP , commands ) ; \n DefaultPermissions . registerPermission ( PREFIX + STRING4 , STRING5 , PermissionDefault . OP , commands ) ; \n - DefaultPermissions . registerPermission ( PREFIX + STRING6 , STRING7 , PermissionDefault . OP , commands ) ; \n - DefaultPermissions . registerPermission ( PREFIX + STRING8 , STRING7 , PermissionDefault . OP , commands ) ; \n + DefaultPermissions . registerPermission ( PREFIX + STRING9 , STRING7 , PermissionDefault . OP , commands ) ; \n + DefaultPermissions . registerPermission ( PREFIX + STRING6 , STRING10 , PermissionDefault . OP , commands ) ; \n + DefaultPermissions . registerPermission ( PREFIX + STRING8 , STRING11 , PermissionDefault . OP , commands ) ; \n \n \n commands . recalculatePermissibles ( ) ;", "msg_token": "Revive the toggledownfall permission"} {"diff": " public class DroidGap extends PhonegapActivity { \n result . cancel ( ) ; \n } \n } ) ; \n + dlg . setOnKeyListener ( new DialogInterface . OnKeyListener ( ) { \n + SINGLE \n + public boolean onKey ( DialogInterface dialog , int keyCode , KeyEvent event ) { \n + if ( keyCode == KeyEvent . KEYCODE_BACK ) \n + { \n + result . cancel ( ) ; \n + return false ; \n + } \n + else \n + return true ; \n + } \n + } ) ; \n dlg . create ( ) ; \n dlg . show ( ) ; \n return true ;", "msg_token": "Adding handling of Search Button for the jsPrompt"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractEmbeddedChannel < O > extends AbstractChannel { \n COMMENT \n public boolean writeOutbound ( Object data ) { \n ensureOpen ( ) ; \n - write ( data ) ; \n + ChannelFuture future = write ( data ) ; \n + assert future . isDone ( ) ; \n + if ( future . cause ( ) != null ) { \n + recordException ( future . cause ( ) ) ; \n + } \n runPendingTasks ( ) ; \n checkException ( ) ; \n return hasReadableOutboundBuffer ( ) ;", "msg_token": "Fix a bug in AbstractEmbeddedChannel where flush failure is not recorded"} {"diff": " public class Choreographer_Delegate { \n public static void dispose ( ) { \n try { \n Field threadInstanceField = Choreographer . class . getDeclaredField ( STRING0 ) ; \n + threadInstanceField . setAccessible ( true ) ; \n @ suppresswarnings ( STRING1 ) ThreadLocal < Choreographer > threadInstance = \n ( ThreadLocal < Choreographer > ) threadInstanceField . get ( null ) ; \n threadInstance . remove ( ) ;", "msg_token": "Add missing setAccessible to Choreographer s threadInstance"} {"diff": " public class WebSocketServletTest { \n new StringWriteChannelListener ( string ) \n . setup ( channel . send ( WebSocketFrameType . TEXT , string . length ( ) ) ) ; \n } \n + channel . sendClose ( ) ; \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n throw new RuntimeException ( e ) ; \n public class WebSocketServletTest { \n e . printStackTrace ( ) ; \n new StringWriteChannelListener ( STRING0 ) \n . setup ( channel . send ( WebSocketFrameType . TEXT , STRING0 . length ( ) ) ) ; \n + channel . sendClose ( ) ; \n } catch ( IOException ex ) { \n ex . printStackTrace ( ) ; \n throw new RuntimeException ( ex ) ; \n } \n } \n } . setup ( ws ) ; \n - channel . getReceiveSetter ( ) . set ( null ) ; \n \n } catch ( IOException e ) { \n throw new RuntimeException ( e ) ;", "msg_token": "Fix problem with web socket test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class SimpleHttpProtocol implements WebSocketProtocol , Serializable { \n private String contentType ; \n private String methodType ; \n private String delimiter ; \n - private AtmosphereResource < HttpServletRequest , HttpServletResponse > resource ; \n \n COMMENT \n COMMENT \n public class SimpleHttpProtocol implements WebSocketProtocol , Serializable { \n COMMENT \n @ override \n public AtmosphereRequest onMessage ( WebSocket webSocket , String d ) { \n + AtmosphereResourceImpl resource = ( AtmosphereResourceImpl ) webSocket . resource ( ) ; \n if ( resource == null ) { \n logger . error ( STRING0 ) ; \n return null ;", "msg_token": "Fix merge regression"} {"diff": " public class DatabaseTuningFunctionalTest { \n \n @ test \n public void shouldLogWarningAndContinueIfNoTuningFilePropertyPresent ( ) throws IOException { \n - InMemoryAppender appender = new InMemoryAppender ( Database . log ) ; \n + InMemoryAppender appender = new InMemoryAppender ( PropertyFileConfigurator . log ) ; \n \n - String propertyFilePath = STRING0 ; \n - System . setProperty ( STRING1 , propertyFilePath ) ; \n - NeoServer server = ServerBuilder . server ( ) . withPassingStartupHealthcheck ( ) . withRandomDatabaseDir ( ) . build ( ) ; \n + NeoServer server = ServerBuilder . server ( ) . withPassingStartupHealthcheck ( ) . withNonResolvableTuningFile ( ) . withRandomDatabaseDir ( ) . build ( ) ; \n server . start ( ) ; \n \n - assertThat ( appender . toString ( ) , containsString ( STRING2 + propertyFilePath + STRING3 ) ) ; \n + assertThat ( appender . toString ( ) , containsString ( STRING4 ) ) ; \n \n server . stop ( ) ; \n }", "msg_token": "Fixed a test to look in the correct log"} {"diff": " public class JettyWebSocketDraft08Servlet extends WebSocketServlet { \n public org . eclipse . jetty . websocket . WebSocket doWebSocketConnect ( final HttpServletRequest request , final String protocol ) { \n logger . debug ( STRING0 ) ; \n request . setAttribute ( WebSocket . WEBSOCKET_INITIATED , true ) ; \n + boolean isDestroyable = false ; \n + String s = framework . getAtmosphereConfig ( ) . getInitParameter ( ApplicationConfig . RECYCLE_ATMOSPHERE_REQUEST_RESPONSE ) ; \n + if ( s != null && Boolean . valueOf ( s ) ) { \n + isDestroyable = true ; \n + } \n return new JettyWebSocketDraft08Handler ( AtmosphereRequest . cloneRequest ( request , false , \n - framework ( ) . getAtmosphereConfig ( ) . isSupportSession ( ) ) , framework , framework . getWebSocketProtocol ( ) ) ; \n + framework ( ) . getAtmosphereConfig ( ) . isSupportSession ( ) , isDestroyable ) , framework , framework . getWebSocketProtocol ( ) ) ; \n } \n }", "msg_token": "Fix the build"} {"diff": " public class OperatorGroupBy < T , K , R > implements Operator < GroupedObservable < K , R \n \n } ) . unsafeSubscribe ( new Subscriber < T > ( o ) { \n @ override \n - public void onStart ( ) { \n - } \n - @ override \n public void onCompleted ( ) { \n o . onCompleted ( ) ; \n SINGLE", "msg_token": "Remove unnecessary onStart in OperatorGroupBy"} {"diff": " public class MySiteFragment extends Fragment \n statsTextView . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View v ) { \n - ActivityLauncher . viewBlogStats ( getActivity ( ) , mBlog . getLocalTableBlogId ( ) ) ; \n + SINGLE \n + if ( mBlog != null ) { \n + ActivityLauncher . viewBlogStats ( getActivity ( ) , mBlog . getLocalTableBlogId ( ) ) ; \n + } \n } \n } ) ;", "msg_token": "Fix stats action crash in MySiteFragment when blog is null"} {"diff": " public class CloudSetupFragment extends SherlockFragment { \n \n SINGLE \n HashSet < Integer > showsLocal = ShowTools . getShowTvdbIdsAsSet ( mContext ) ; \n - if ( showsLocal == null ) { \n + if ( showsLocal == null || isCancelled ( ) ) { \n SINGLE \n return FAILURE ; \n } \n public class CloudSetupFragment extends SherlockFragment { \n \n SINGLE \n List < Show > showsRemote = ShowTools . Download . getRemoteShows ( mContext ) ; \n - if ( showsRemote == null ) { \n + if ( showsRemote == null || isCancelled ( ) ) { \n SINGLE \n return FAILURE ; \n }", "msg_token": "Stop hexagon setup task early if it was cancelled"} {"diff": " public final class Posix implements Os { \n } \n ] - * / ; \n \n - public native void close ( FileDescriptor javaFd ) throws ErrnoException COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT ; \n + public native void close ( FileDescriptor javaFd ) throws ErrnoException ; \n \n public native FileDescriptor dup ( FileDescriptor oldFd ) throws ErrnoException / * - [ \n int nativeFd = TEMP_FAILURE_RETRY ( dup ( ( int ) oldFd - > descriptor_ ) ) ;", "msg_token": "Revert Fixed repository sync error"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - SINGLE \n COMMENT \n COMMENT \n COMMENT \n public class CascadingBoolean { \n private EBoolean expr ; \n \n public CascadingBoolean and ( EBoolean right ) { \n - SINGLE \n if ( expr == null ) { \n expr = right ; \n } else { \n public class CascadingBoolean { \n \n \n public CascadingBoolean or ( EBoolean right ) { \n - SINGLE \n if ( expr == null ) { \n expr = right ; \n } else { \n - expr = expr . and ( right ) ; \n + expr = expr . or ( right ) ; \n } \n return this ; \n }", "msg_token": "fixed bug in CascadingBoolean"} {"diff": " public class DefaultHttp2ConnectionEncoder implements Http2ConnectionEncoder { \n SINGLE \n SINGLE \n lifecycleManager . onError ( ctx , cause ) ; \n - promise . tryFailure ( cause ) ; \n } \n \n @ override", "msg_token": "Ensure we not log missleading errors if the promise was already failed due errors"} {"diff": " public class HystrixCollapserTest { \n if ( request . getArgument ( ) == null ) { \n throw new NullPointerException ( STRING0 ) ; \n } \n - if ( request . getArgument ( ) == STRING1 ) { \n + if ( request . getArgument ( ) . equals ( STRING1 ) ) { \n try { \n Thread . sleep ( NUMBER0 ) ; \n } catch ( InterruptedException e ) { \n public class HystrixObservableCollapserTest { \n if ( request . getArgument ( ) == null ) { \n throw new NullPointerException ( STRING0 ) ; \n } \n - if ( request . getArgument ( ) == STRING1 ) { \n + if ( request . getArgument ( ) . equals ( STRING1 ) ) { \n try { \n Thread . sleep ( NUMBER0 ) ; \n } catch ( InterruptedException e ) {", "msg_token": "Fix string comparisons that were using"} {"diff": " final class UserState implements PrintSpoolerCallbacks , PrintServiceCallbacks { \n public void createPrinterDiscoverySession ( IPrinterDiscoveryObserver observer ) { \n synchronized ( mLock ) { \n throwIfDestroyedLocked ( ) ; \n - if ( mActiveServices . isEmpty ( ) ) { \n - return ; \n - } \n + \n if ( mPrinterDiscoverySession == null ) { \n SINGLE \n mPrinterDiscoverySession = new PrinterDiscoverySessionMediator ( mContext ) {", "msg_token": "Create PrintDiscoverySession for future print services"} {"diff": " public class TestSchemaTranslator \n STRING0 \n } \n } , \n - \n { \n SINGLE \n SINGLE", "msg_token": "remove unnecessary new line"} {"diff": " public class EditorFragment extends EditorFragmentAbstract implements View . OnCli \n \n mWebView . setOnDragListener ( new View . OnDragListener ( ) { \n private final String MIMETYPE_JPEG = STRING0 ; \n + private final String MIMETYPE_PNG = STRING1 ; \n private final String [ ] mSupportedMimeTypes = { ClipDescription . MIMETYPE_TEXT_PLAIN , \n - ClipDescription . MIMETYPE_TEXT_HTML , MIMETYPE_JPEG } ; \n + ClipDescription . MIMETYPE_TEXT_HTML , MIMETYPE_JPEG , MIMETYPE_PNG } ; \n \n private boolean isSupported ( ClipDescription clipDescription ) { \n for ( String supportedMimeType : mSupportedMimeTypes ) { \n public class EditorFragment extends EditorFragmentAbstract implements View . OnCli \n break ; \n } \n \n - if ( clipDescription . hasMimeType ( MIMETYPE_JPEG ) ) { \n + if ( clipDescription . hasMimeType ( MIMETYPE_JPEG ) || clipDescription . hasMimeType ( MIMETYPE_PNG ) ) { \n mEditorFragmentListener . onMediaDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getUri ( ) ) ; \n } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_PLAIN ) || \n clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_HTML ) ) {", "msg_token": "Support dropping PNGs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Add missing import"} {"diff": " public final class System { \n p . put ( STRING0 , passwd . pw_dir ) ; \n p . put ( STRING1 , passwd . pw_name ) ; \n } catch ( ErrnoException exception ) { \n - throw new AssertionError ( exception ) ; \n + SINGLE \n + String home = getenv ( STRING2 ) ; \n + String user = getenv ( STRING3 ) ; \n + p . put ( STRING0 , home != null ? home : STRING4 ) ; \n + p . put ( STRING1 , user != null ? user : STRING4 ) ; \n + SINGLE \n } \n \n StructUtsname info = Libcore . os . uname ( ) ;", "msg_token": "Fixed problem in System initSystemProperties after sync with"} {"diff": " public class DataSourceInputStream extends InputStream { \n \n @ override \n public int read ( ) throws IOException { \n - read ( singleByteArray ) ; \n - return singleByteArray [ NUMBER0 ] & NUMBER1 ; \n + int length = read ( singleByteArray ) ; \n + if ( length != - NUMBER2 ) { \n + return singleByteArray [ NUMBER0 ] & NUMBER1 ; \n + } \n + return length ; \n } \n \n @ override", "msg_token": "Fix DataSourceInputStream read for EOF cases"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix an old"} {"diff": " public class UpdateTask extends Thread { \n } else if ( responseCode != HttpConnection . HTTP_OK ) { \n throw new IOException ( STRING0 + responseCode ) ; \n } \n - \n + s = c . openInputStream ( ) ; \n String enc = getEncoding ( c ) ; \n Reader reader = new InputStreamReader ( s , enc ) ; \n final String version = getMIDletVersion ( reader ) ;", "msg_token": "Fixed NPE in UpdateTask"} {"diff": " public class TestOperationSetMultiUserChat2 \n suite . addTest ( \n new TestOperationSetMultiUserChat2 ( STRING0 ) ) ; \n \n - SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n SINGLE \n - \n - suite . addTest ( \n - new TestOperationSetMultiUserChat2 ( STRING1 ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n \n suite . addTest ( \n new TestOperationSetMultiUserChat2 ( STRING2 ) ) ; \n public class TestOperationSetMultiUserChat2 \n MUCEventCollector opSet1RoomCollector = \n new MUCEventCollector ( \n opSet1Room , MUCEventCollector . EVENT_PRESENCE ) ; \n - \n + \n ChatRoom opSet2Room = opSetMUC2 . findRoom ( testRoomName ) ; \n opSet2Room . join ( ) ; \n \n public class TestOperationSetMultiUserChat2 \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Disables a regularly failing test on xmpp room subjects until we have a proper implementation"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix spelling mistakes in Javadoc"} {"diff": " public class TerminalView { \n if ( content . getKey ( ) instanceof TerminalSessionVirtualFileImpl ) { \n TerminalSessionVirtualFileImpl terminalFile = ( TerminalSessionVirtualFileImpl ) content . getKey ( ) ; \n myTerminalWidget . addTab ( terminalFile . getName ( ) , terminalFile . getTerminal ( ) ) ; \n + terminalFile . getTerminal ( ) . setNextProvider ( myTerminalWidget ) ; \n } \n }", "msg_token": "Restore context menu after DnD back to Terminal View"} {"diff": " public class DB2DB extends BaseDB { \n String [ ] alterSqls = StringUtil . split ( sql , CharPool . SEMICOLON ) ; \n \n for ( String alterSql : alterSqls ) { \n + alterSql = StringUtil . trim ( alterSql ) ; \n + \n runSQL ( alterSql ) ; \n } \n }", "msg_token": "template might contain leading whitespaces"} {"diff": " public class OsmandApplication extends Application { \n @ override \n public void run ( ) { \n if ( toDismiss != null ) { \n - SINGLE \n + SINGLE \n toDismiss . dismiss ( ) ; \n - SINGLE \n + SINGLE \n } \n } \n } ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MapActivity extends AccessibleActivity implements IMapLocationListe \n startProgressDialog = new ProgressDialog ( this ) ; \n startProgressDialog . setCancelable ( true ) ; \n ( ( OsmandApplication ) getApplication ( ) ) . checkApplicationIsBeingInitialized ( this , startProgressDialog ) ; \n + startProgressDialog . setOnDismissListener ( new OnDismissListener ( ) { \n + @ override \n + public void onDismiss ( DialogInterface dialog ) { \n + getMapView ( ) . refreshMap ( true ) ; \n + } \n + } ) ; \n parseLaunchIntentLocation ( ) ; \n \n mapView = ( OsmandMapTileView ) findViewById ( R . id . MapView ) ;", "msg_token": "Fix issue with map refresh"} {"diff": " public class SkinLoader extends AsynchronousAssetLoader < Skin , SkinLoader . SkinPar \n static public class SkinParameter extends AssetLoaderParameters < Skin > { \n public final String textureAtlasPath ; \n \n + public SkinParameter ( ) { \n + this . textureAtlasPath = null ; \n + } \n + \n public SkinParameter ( String textureAtlasPath ) { \n this . textureAtlasPath = textureAtlasPath ; \n }", "msg_token": "Add default constructor to SkinParameter"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class ViewToClickToExpand { \n public class ViewToClickToExpand { \n \n protected ViewToClickToExpand ( ) { } \n \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static ViewToClickToExpand builder ( ) { \n return new ViewToClickToExpand ( ) ; \n }", "msg_token": "Added doc to ViewToClickExpand"} {"diff": " public class EnglishGrammaticalRelations { \n STRING0 , \n STRING1 , \n STRING2 , SINGLE \n - SINGLE \n - STRING3 \n } ) ; \n public static class NounCompoundModifierGRAnnotation extends GrammaticalRelationAnnotation { } \n \n public class EnglishGrammaticalRelations { \n SINGLE \n STRING4 , \n SINGLE \n - SINGLE \n - STRING5 \n + STRING6 \n \n } ) ; \n public static class AppositionalModifierGRAnnotation extends GrammaticalRelationAnnotation { }", "msg_token": "Make Columbus Ohio appos as well"} {"diff": " public class IOTest \n Socket server ; \n \n connector = new ServerSocket ( NUMBER0 ) ; \n - client = new Socket ( STRING0 , connector . getLocalPort ( ) ) ; \n + client = new Socket ( STRING1 , connector . getLocalPort ( ) ) ; \n server = connector . accept ( ) ; \n client . setTcpNoDelay ( true ) ; \n client . setSoLinger ( true , NUMBER1 ) ;", "msg_token": "fixed test to use localhost"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Someone s IDE chose the wrong Date"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class UdcExtensionImplTest { \n UdcTimerTask . failureCounts . clear ( ) ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class UdcExtensionImplTest { \n Collection < Integer > failureCountValues = UdcTimerTask . failureCounts . values ( ) ; \n Integer failures = failureCountValues . iterator ( ) . next ( ) ; \n assertTrue ( failures == NUMBER0 ) ; \n - graphdb . shutdown ( ) ; \n + destroy ( graphdb ) ; \n }", "msg_token": "removed stray temp graphdb that wasn t getting cleaned up"} {"diff": " public class FrequencyIndexCreator { \n SINGLE \n while ( ( line = buffered . readLine ( ) ) != null ) { \n lineCount ++ ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n String [ ] parts = line . split ( STRING0 ) ; \n String text = parts [ NUMBER0 ] ; \n if ( isRealPosTag ( text ) ) {", "msg_token": "add comment about partial index"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AsyncClient { \n histogram . recordValue ( ( now - lastCall ) / NUMBER0 ) ; \n lastCall = now ; \n \n - if ( endTime > now ) { \n - stub . unaryCall ( request , this ) ; \n - } else { \n - future . done ( ) ; \n + Context prevCtx = Context . ROOT . attach ( ) ; \n + try { \n + if ( endTime > now ) { \n + stub . unaryCall ( request , this ) ; \n + } else { \n + future . done ( ) ; \n + } \n + } finally { \n + Context . current ( ) . detach ( prevCtx ) ; \n } \n } \n } ) ;", "msg_token": "reset context in AsyncClient to avoid chaining"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class IntentModule extends ReactContextBaseJavaModule { \n Activity currentActivity = getCurrentActivity ( ) ; \n Intent intent = new Intent ( Intent . ACTION_VIEW , Uri . parse ( url ) ) ; \n \n + String selfPackageName = getReactApplicationContext ( ) . getPackageName ( ) ; \n + ComponentName componentName = intent . resolveActivity ( \n + getReactApplicationContext ( ) . getPackageManager ( ) ) ; \n + String otherPackageName = ( componentName != null ? componentName . getPackageName ( ) : STRING0 ) ; \n + \n + SINGLE \n + if ( ! selfPackageName . equals ( otherPackageName ) ) { \n + intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n + } \n + \n if ( currentActivity != null ) { \n currentActivity . startActivity ( intent ) ; \n } else { \n + SINGLE \n intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n getReactApplicationContext ( ) . startActivity ( intent ) ; \n }", "msg_token": "Launch a new task if openURL is called with a url in a different package"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed and refactored imports"} {"diff": " public class TableCreationQueryBuilder extends QueryBuilder < TableCreationQueryBu \n COMMENT \n COMMENT \n public QueryBuilder appendColumn ( ColumnDefinition column ) { \n - if ( column . length > - NUMBER0 ) { \n + if ( column . length > - NUMBER0 && ! column . isPrimaryKeyAutoIncrement ) { \n query . append ( STRING0 ) ; \n query . append ( column . length ) ; \n query . append ( STRING1 ) ;", "msg_token": "Fixed issue coming up when using a primary key with autoincrement in combination with a column length definition"} {"diff": " public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr \n if ( target == null ) { \n SINGLE \n executeSearch ( null ) ; \n - subiterator = getResult ( ) . iterator ( ) ; \n + subiterator = new ArrayList < OIdentifiable > ( getResult ( ) ) . iterator ( ) ; \n + tempResult = null ; \n } else \n subiterator = ( Iterator < OIdentifiable > ) target . iterator ( ) ; \n }", "msg_token": "Fixed issue reported by Alberto Siena in ML on nested queries"} {"diff": " public class SlideNavigationToolbarMenu \n \n titleLabel_ . addStyleName ( ThemeResources . INSTANCE . themeStyles ( ) \n . presentationNavigatorLabel ( ) ) ; \n - titleLabel_ . getElement ( ) . getStyle ( ) . setProperty ( STRING0 , \n + titleLabel_ . getElement ( ) . getStyle ( ) . setProperty ( STRING1 , \n maxWidth + STRING2 ) ; \n \n menuWidget_ = toolbar . addLeftPopupMenu ( titleLabel_ , slidesMenu_ ) ;", "msg_token": "set max width using camel case"} {"diff": " public abstract class PGL { \n if ( needFBOLayer ( clear0 ) ) { \n if ( ! fboLayerCreated ) createFBOLayer ( ) ; \n \n - SINGLE \n - \n bindFramebufferImpl ( FRAMEBUFFER , glColorFbo . get ( NUMBER0 ) ) ; \n framebufferTexture2D ( FRAMEBUFFER , COLOR_ATTACHMENT0 , \n TEXTURE_2D , glColorTex . get ( backTex ) , NUMBER0 ) ; \n public abstract class PGL { \n String ext = getString ( EXTENSIONS ) ; \n float scale = pg . getPixelScale ( ) ; \n \n - System . err . println ( STRING0 ) ; \n - \n if ( - NUMBER1 < ext . indexOf ( STRING1 ) ) { \n fboWidth = ( int ) ( scale * pg . width ) ; \n fboHeight = ( int ) ( scale * pg . height ) ;", "msg_token": "removed debug message"} {"diff": " class CacheUpdateRunner { \n } \n \n private static Runnable getProcessWrapper ( final Runnable process ) { \n - return ApplicationManager . getApplication ( ) . isWriteAccessAllowed ( ) ? new Runnable ( ) { \n + SINGLE \n + return ApplicationManager . getApplication ( ) . isReadAccessAllowed ( ) ? new Runnable ( ) { \n @ override \n public void run ( ) { \n boolean old = ApplicationImpl . setExceptionalThreadWithReadAccessFlag ( true ) ;", "msg_token": "allow read access for workers if launching thread has it"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix merge conflict"} {"diff": " final class ShowQueriesRewrite \n QualifiedSchemaName schema = createQualifiedSchemaName ( session , showTables , showTables . getSchema ( ) ) ; \n \n if ( ! metadata . schemaExists ( session , schema ) ) { \n - throw new SemanticException ( MISSING_SCHEMA , showTables , STRING0 , schema ) ; \n + throw new SemanticException ( MISSING_SCHEMA , showTables , STRING0 , schema . getSchemaName ( ) ) ; \n } \n \n Expression predicate = equal ( nameReference ( STRING1 ) , new StringLiteral ( schema . getSchemaName ( ) ) ) ;", "msg_token": "Fix missing schema error message for SHOW TABLES"} {"diff": " public class ImageLoader implements Serializable { \n try { \n Image image = desc . load ( ) ; \n if ( image == null ) continue ; \n - LOG . info ( STRING0 + desc ) ; \n + LOG . debug ( STRING0 + desc ) ; \n return converters . convert ( image , desc ) ; \n } \n catch ( IOException ignore ) {", "msg_token": "raise log level"} {"diff": " public class JavaCompletionContributor extends CompletionContributor { \n public static void addAllClasses ( CompletionParameters parameters , \n final CompletionResultSet result , \n final InheritorsHolder inheritors ) { \n - if ( ! isClassNamePossible ( parameters . getPosition ( ) ) || ! mayStartClassName ( result ) ) return ; \n + if ( ! isClassNamePossible ( parameters . getPosition ( ) ) && parameters . getInvocationCount ( ) <= NUMBER0 || \n + ! mayStartClassName ( result ) ) { \n + return ; \n + } \n \n if ( mayShowAllClasses ( parameters ) ) { \n JavaClassNameCompletionContributor . addAllClasses ( parameters , parameters . getInvocationCount ( ) <= NUMBER1 , result . getPrefixMatcher ( ) , new Consumer < LookupElement > ( ) {", "msg_token": "on second basic completion suggest class names everywhere"} {"diff": " public class WeekView extends View { \n invalidate ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public double getFirstVisibleHour ( ) { \n + return - mCurrentOrigin . y / mHourHeight ; \n + } \n + \n \n \n SINGLE", "msg_token": "add a getFirstVisibleHour method"} {"diff": " public final class FileSystemAclIntegrationTest { \n Assert . assertTrue ( sUfs . exists ( PathUtils . concatPath ( sUfsRoot , fileA ) ) ) ; \n \n SINGLE \n - SINGLE \n - Assert . assertEquals ( STRING0 , sUfs . getOwner ( PathUtils . concatPath ( sUfsRoot , fileA ) ) ) ; \n - Assert . assertEquals ( STRING0 , sUfs . getGroup ( PathUtils . concatPath ( sUfsRoot , fileA ) ) ) ; \n + SINGLE \n + SINGLE \n + Assert . assertNotEquals ( STRING0 , sUfs . getOwner ( PathUtils . concatPath ( sUfsRoot , fileA ) ) ) ; \n + Assert . assertNotEquals ( STRING0 , sUfs . getGroup ( PathUtils . concatPath ( sUfsRoot , fileA ) ) ) ; \n Assert . assertEquals ( ( short ) NUMBER0 , sUfs . getMode ( PathUtils . concatPath ( sUfsRoot , fileA ) ) ) ; \n }", "msg_token": "Also update integration test for using the owner id not empty"} {"diff": " public class FlyCamAppState extends AbstractAppState { \n public void cleanup ( ) { \n super . cleanup ( ) ; \n \n - flyCam . unregisterInput ( ) ; \n + if ( app . getInputManager ( ) != null ) { \n + flyCam . unregisterInput ( ) ; \n + } \n }", "msg_token": "Fixed an NPE in the FlyCamAppState that occurred"} {"diff": " public class Camera implements Savable , Cloneable { \n private BoundingBox guiBounding = new BoundingBox ( ) ; \n COMMENT \n protected String name ; \n + \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Camera ( ) { \n + } \n \n COMMENT \n COMMENT \n public class Camera implements Savable , Cloneable { \n width = capsule . readInt ( STRING0 , NUMBER0 ) ; \n height = capsule . readInt ( STRING1 , NUMBER0 ) ; \n name = capsule . readString ( STRING2 , null ) ; \n + onFrustumChange ( ) ; \n + onViewPortChange ( ) ; \n + onFrameChange ( ) ; \n } \n }", "msg_token": "Added empty constructor for Camera for serialization"} {"diff": " public final class TeraMath { \n } \n return power ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static double fadePerlin ( double t ) { \n + return t * t * t * ( t * ( t * NUMBER0 - NUMBER1 ) + NUMBER2 ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static double fadeHermite ( double t ) { \n + return t * t * ( NUMBER3 - NUMBER4 * t ) ; \n + } \n + \n \n public static int floorToInt ( float val ) { \n int i = ( int ) val ;", "msg_token": "Added the two most common interpolation functions"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n - public class BlockPhysicsEvent extends BlockEvent { \n + public class BlockPhysicsEvent extends BlockEvent implements Cancellable { \n private final int changed ; \n private boolean cancel = false ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - public class PlayerBucketFillEvent extends PlayerEvent { \n + public class PlayerBucketFillEvent extends PlayerEvent implements Cancellable { \n ItemStack itemStack ; \n boolean cancelled = false ; \n Block blockClicked ;", "msg_token": "Added missing implements Cancellable to several classes"} {"diff": " class ScreenRotationAnimation implements WindowManagerService . StepAnimator { \n public boolean startAndFinishAnimationLocked ( long now ) { \n if ( ! isAnimating ( ) ) { \n if ( DEBUG_STATE ) Slog . v ( TAG , STRING0 ) ; \n + mFinishAnimReady = false ; \n return false ; \n } \n \n public class WindowManagerService extends IWindowManager . Stub \n } \n \n if ( mScreenRotationAnimation != null ) { \n - if ( mScreenRotationAnimation . isAnimating ( ) ) { \n + if ( mScreenRotationAnimation . isAnimating ( ) || \n + mScreenRotationAnimation . mFinishAnimReady ) { \n if ( mScreenRotationAnimation . startAndFinishAnimationLocked ( currentTime ) ) { \n mInnerFields . mUpdateRotation = false ; \n mInnerFields . mAnimating = true ;", "msg_token": "Fix rotation so orientation changes aren t dropped"} {"diff": " public abstract class BaseDataReader { \n \n public void stop ( ) { \n isStopped = true ; \n + resumeReading ( ) ; \n } \n \n public void waitFor ( ) throws InterruptedException {", "msg_token": "wake up sleeping reader when stop is called"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class PullToRefreshView extends ViewGroup { \n public class PullToRefreshView extends ViewGroup { \n mRefreshView . setImageDrawable ( mBaseRefreshView ) ; \n } \n \n - public void setPaddingTopBaseView ( int size ) { \n - if ( mRefreshView == null ) { \n - throw new NullPointerException ( STRING0 ) ; \n - } else { \n - mRefreshView . setPadding ( mRefreshView . getPaddingLeft ( ) , size , mRefreshView . getPaddingRight ( ) , mRefreshView . getPaddingBottom ( ) ) ; \n - } \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setRefreshViewPadding ( int left , int top , int right , int bottom ) { \n + mRefreshView . setPadding ( left , top , right , bottom ) ; \n } \n \n - \n public int getTotalDragDistance ( ) { \n return mTotalDragDistance ; \n }", "msg_token": "updated method so it s possible to tweak all padding for any side"} {"diff": " public class GroovyDslFileIndex extends ScalarIndexExtension < String > { \n private static final MultiMap < String , LinkedBlockingQueue < Pair < VirtualFile , GroovyDslExecutor > > > filesInProcessing = \n new ConcurrentMultiMap < String , LinkedBlockingQueue < Pair < VirtualFile , GroovyDslExecutor > > > ( ) ; \n \n - private static final ThreadPoolExecutor ourPool = new ThreadPoolExecutor ( NUMBER0 , NUMBER0 , NUMBER1 , TimeUnit . SECONDS , new LinkedBlockingQueue < Runnable > ( ) , new ThreadFactory ( ) { \n + private static final ThreadPoolExecutor ourPool = new ThreadPoolExecutor ( NUMBER2 , NUMBER0 , NUMBER1 , TimeUnit . SECONDS , new LinkedBlockingQueue < Runnable > ( ) , new ThreadFactory ( ) { \n @ override \n public Thread newThread ( Runnable r ) { \n return new Thread ( r , STRING0 ) ;", "msg_token": "don t keep alive gdsl thread if it s not used"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JetCompiler implements TranslatingCompiler { \n private final Module module ; \n private final OutputSink outputSink ; \n \n - public ModuleCompileState ( CompileContext compileContext , Module module , OutputSink outputSink ) { \n + public ModuleCompileState ( final CompileContext compileContext , Module module , OutputSink outputSink ) { \n this . compileContext = compileContext ; \n this . module = module ; \n this . outputSink = outputSink ; \n - state = new GenerationState ( compileContext . getProject ( ) , false ) ; \n + state = ApplicationManager . getApplication ( ) . runReadAction ( new Computable < GenerationState > ( ) { \n + @ override \n + public GenerationState compute ( ) { \n + return new GenerationState ( compileContext . getProject ( ) , false ) ; \n + } \n + } ) ; \n } \n \n public void compile ( final VirtualFile virtualFile ) {", "msg_token": "create GenerationState in read action"} {"diff": " public class ToFileStoreWriter implements StoreWriter \n intermediateBuffer . clear ( ) ; \n } \n } \n - System . out . println ( STRING0 + file ) ; \n } \n finally \n {", "msg_token": "Removed a System out"} {"diff": " public class AboutWindow \n } \n \n protected void close ( boolean isEscaped ) \n - { } \n + { \n + this . dispose ( ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "escape closes the about window"} {"diff": " public class HttpRequest { \n } catch ( IOException e ) { \n thrown = true ; \n throw new HttpRequestException ( e ) ; \n - } catch ( Exception e ) { \n - throw new RuntimeException ( STRING0 , e ) ; \n } finally { \n try { \n closeable . close ( ) ;", "msg_token": "Remove unneeded catch block"} {"diff": " public class GraphicState { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void preRenderSetupSceneShadowMap ( ) { \n - buffers . sceneShadowMap . bind ( ) ; \n - \n - setViewportToSizeOf ( buffers . sceneShadowMap ) ; \n - glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ) ; \n - GL11 . glDisable ( GL_CULL_FACE ) ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void postRenderCleanupSceneShadowMap ( ) { \n - GL11 . glEnable ( GL_CULL_FACE ) ; \n - bindDisplay ( ) ; \n - setViewportToWholeDisplay ( ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove shadowMap related state changes methods from GraphicState"} {"diff": " public final class BuildTool { \n if ( e . isCatastrophic ( ) ) { \n result . setCatastrophe ( ) ; \n } \n - exitCode = ExitCode . BUILD_FAILURE ; \n + exitCode = e . getExitCode ( ) != null ? e . getExitCode ( ) : ExitCode . BUILD_FAILURE ; \n } catch ( InterruptedException e ) { \n exitCode = ExitCode . INTERRUPTED ; \n env . getReporter ( ) . handle ( Event . error ( STRING0 ) ) ; \n public class SkyframeBuilder implements Builder { \n return false ; \n } \n if ( hasCycles || result . errorMap ( ) . isEmpty ( ) ) { \n - SINGLE \n + SINGLE \n + SINGLE \n + if ( result . getCatastrophe ( ) != null ) { \n + rethrow ( result . getCatastrophe ( ) ) ; \n + } \n throw new BuildFailedException ( null , hasCatastrophe ) ; \n } else { \n rethrow ( Preconditions . checkNotNull ( result . getError ( ) . getException ( ) ) ) ;", "msg_token": "Make Bazel exit with the exit code from the BuildFailedException if one is specified"} {"diff": " public class WebSocketServerHandler extends SimpleChannelUpstreamHandler { \n input . writeInt ( b ) ; \n input . writeLong ( c ) ; \n ChannelBuffer output = ChannelBuffers . wrappedBuffer ( \n - MessageDigest . getInstance ( STRING0 ) . digest ( input . array ( ) ) , \n - new byte [ ] { STRING1 , STRING2 } ) ; \n + MessageDigest . getInstance ( STRING0 ) . digest ( input . array ( ) ) ) ; \n res . setContent ( output ) ; \n } else { \n SINGLE", "msg_token": "Fixed wrong content length for websocket handshake messages"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class GenericPool < T > { \n } \n } \n \n + public synchronized void shufflePoolItems ( ) { \n + Collections . shuffle ( this . mAvailableItems ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added synchronized method to GenericPool that allows shuffling of poolitems"} {"diff": " public class ShowsActivity extends BaseActivity implements AbsListView . OnScrollL \n } \n \n SINGLE \n - ChangesDialogFragment . show ( getSupportFragmentManager ( ) ) ; \n + SINGLE \n \n SINGLE \n editor . putInt ( SeriesGuidePreferences . KEY_VERSION , currentVersion ) ;", "msg_token": "Do not show ChangesDialogFragment on stable versions"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UploadsFragment extends SherlockListFragment implements OnPhotoSele \n public boolean canDismiss ( AbsListView listView , int position ) { \n try { \n PhotoUpload upload = ( PhotoUpload ) listView . getItemAtPosition ( position ) ; \n + \n + if ( Flags . DEBUG ) { \n + Log . d ( STRING0 , STRING1 + upload . getUploadState ( ) ) ; \n + } \n switch ( upload . getUploadState ( ) ) { \n case PhotoUpload . STATE_UPLOAD_COMPLETED : \n case PhotoUpload . STATE_UPLOAD_ERROR :", "msg_token": "Add some debug for canDismiss"} {"diff": " public class PyStructureViewModel extends StructureViewModelBase implements Stru \n public boolean isAutoExpand ( StructureViewTreeElement element ) { \n return element . getValue ( ) instanceof PsiFile ; \n } \n + \n + @ override \n + public boolean isSmartExpand ( ) { \n + return false ; \n + } \n }", "msg_token": "Smart expand API for structure view trees"} {"diff": " public class EvaluatorBuilderImpl implements EvaluatorBuilder { \n \n @ nullable \n private Evaluator accept ( @ nullable PsiElement element ) { \n - if ( element == null ) { \n + if ( element == null || element instanceof PsiEmptyStatement ) { \n return null ; \n } \n element . accept ( this ) ;", "msg_token": "fixed for statement with empty initial block evaluation"} {"diff": " public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class CameraMetadata < TKey > { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove references to sync frameNumber"} {"diff": " public class FileActivity extends SherlockFragmentActivity implements OnRemoteOp \n if ( mAccountWasSet ) { \n onAccountSet ( mAccountWasRestored ) ; \n } \n + if ( mOperationsServiceBinder != null ) { \n + mOperationsServiceBinder . addOperationListener ( FileActivity . this , mHandler ) ; \n + } \n } \n \n \n @ override \n protected void onStop ( ) { \n super . onStop ( ) ; \n + if ( mOperationsServiceBinder != null ) { \n + mOperationsServiceBinder . removeOperationListener ( this ) ; \n + mOperationsServiceBinder = null ; \n + } \n } \n \n \n public class FileActivity extends SherlockFragmentActivity implements OnRemoteOp \n protected void onDestroy ( ) { \n super . onDestroy ( ) ; \n if ( mOperationsServiceConnection != null ) { \n - if ( mOperationsServiceBinder != null ) { \n - mOperationsServiceBinder . removeOperationListener ( this ) ; \n - mOperationsServiceBinder = null ; \n - } \n unbindService ( mOperationsServiceConnection ) ; \n } \n }", "msg_token": "Fixed subscription of stopped FileActivities as listeners for results of operations in OperationsService"} {"diff": " public abstract class ABaseTransformer implements PageTransformer { \n \n if ( hideOffscreenPages ( ) ) { \n page . setAlpha ( position <= - FLOAT0 || position >= FLOAT0 ? FLOAT1 : FLOAT0 ) ; \n + page . setEnabled ( false ) ; \n } else { \n + page . setEnabled ( true ) ; \n page . setAlpha ( FLOAT0 ) ; \n } \n }", "msg_token": "Disable off screen views by default to resolve touch intercept issues on older devices"} {"diff": " public abstract class ModalDialogBase extends DialogBox \n shortcutDisableHandle_ . close ( ) ; \n shortcutDisableHandle_ = ShortcutManager . INSTANCE . disable ( ) ; \n \n - SINGLE \n - NativeWindow . get ( ) . focus ( ) ; \n + try \n + { \n + SINGLE \n + NativeWindow . get ( ) . focus ( ) ; \n + } \n + catch ( Throwable e ) \n + { \n + } \n } \n \n @ override", "msg_token": "prevent js exception when window focus isn t found"} {"diff": " public class RulesWebServiceTest { \n \n @ before \n public void setUp ( ) throws Exception { \n + tester . clearDataStores ( ) ; \n ruleDao = tester . get ( RuleDao . class ) ; \n ws = tester . get ( RulesWebService . class ) ; \n wsTester = new WsTester ( ws ) ; \n public class RulesWebServiceTest { \n System . out . println ( STRING0 + request . toString ( ) ) ; \n \n WsTester . Result result = request . execute ( ) ; \n - assertThat ( result . outputAsString ( ) ) . isEqualTo ( STRING1 ) ; \n + assertThat ( result . outputAsString ( ) ) . isEqualTo ( STRING2 ) ; \n } \n \n @ test", "msg_token": "Fixed broken Medium missign ClearedData"} {"diff": " class NavigationView { \n showBreadcrumb ( true ) ; \n mToolbar . setTitle ( null ) ; \n mIgnoreNextNavigation = true ; \n - mBreadcrumb . setSelection ( mBreadcrumbAdapter . getCount ( ) - NUMBER0 ) ; \n + mBreadcrumb . setSelection ( mBreadcrumbAdapter . getCount ( ) - NUMBER0 , false ) ; \n } \n \n if ( DEBUG ) Log . d ( TAG , STRING0 + mToolbar . getTitle ( ) ) ;", "msg_token": "Do not show directory change animation on screen rotation"} {"diff": " public class Utility { \n if ( s . matches ( STRING0 ) ) { \n return true ; \n } \n + if ( s . matches ( STRING1 ) ) { \n + return true ; \n + } \n + if ( ( s . equalsIgnoreCase ( STRING2 ) ) || ( s . equalsIgnoreCase ( STRING3 ) ) ) { \n + return true ; \n + } \n } \n return false ; \n }", "msg_token": "Update the domain validator to accept ip addresses and localhost"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import static NAMESPACE ; \n public class IndexWithShadowReplicasTests extends ElasticsearchIntegrationTest { \n \n @ test \n - @ testlogging ( STRING0 ) \n public void testIndexWithFewDocuments ( ) throws Exception { \n Settings nodeSettings = ImmutableSettings . builder ( ) \n . put ( STRING1 , false )", "msg_token": "Revert TEST Enable trace logging for translog recovery"} {"diff": " public final class RelaxedNames implements Iterable < String > { \n \n private static final Pattern CAMEL_CASE_PATTERN = Pattern . compile ( STRING0 ) ; \n \n + private static final Pattern SEPARATED_TO_CAMEL_CASE_PATTERN = Pattern \n + . compile ( STRING1 ) ; \n + \n private final String name ; \n \n private final Set < String > values = new LinkedHashSet < String > ( ) ; \n public final class RelaxedNames implements Iterable < String > { \n private static String separatedToCamelCase ( String value , \n boolean caseInsensitive ) { \n StringBuilder builder = new StringBuilder ( ) ; \n - for ( String field : value . split ( STRING1 ) ) { \n + for ( String field : SEPARATED_TO_CAMEL_CASE_PATTERN . split ( value ) ) { \n field = ( caseInsensitive ? field . toLowerCase ( ) : field ) ; \n builder . append ( \n builder . length ( ) == NUMBER0 ? field : StringUtils . capitalize ( field ) ) ;", "msg_token": "Improve performance of RelaxedNames"} {"diff": " public class CustomAnnotationSerializerITest extends TestCase { \n runTest ( annotation ) ; \n } \n \n + public void testTwoSentences ( ) throws IOException { \n + Annotation annotation = new Annotation ( STRING0 ) ; \n + fullPipeline . annotate ( annotation ) ; \n + runTest ( annotation ) ; \n + } \n + \n public void testCopyWordGraphs ( ) throws IOException { \n Annotation annotation = new Annotation ( STRING1 ) ; \n fullPipeline . annotate ( annotation ) ;", "msg_token": "Add a two sentence example for better coverage"} {"diff": " public abstract class HTTP2Session extends ContainerLifeCycle implements ISessio \n case SettingsFrame . MAX_HEADER_LIST_SIZE : \n { \n SINGLE \n - LOG . warn ( STRING0 , value ) ; \n + if ( LOG . isDebugEnabled ( ) ) \n + LOG . debug ( STRING0 , value ) ; \n break ; \n } \n default : \n { \n - LOG . debug ( STRING1 , key , value ) ; \n + if ( LOG . isDebugEnabled ( ) ) \n + LOG . debug ( STRING1 , key , value ) ; \n break ; \n } \n }", "msg_token": "Reduced logging level for MAX_HEADER_LIST_SIZE"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n } \n \n hideControllers ( ) ; \n + stopTextSelectionMode ( ) ; \n \n switch ( keyCode ) { \n case KeyEvent . KEYCODE_DPAD_CENTER :", "msg_token": "Really leave text selection mode when using the trackball"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed JavaDoc typo"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Generator \n private boolean validating ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public Generator ( WebSocketPolicy policy ) \n - { \n - this ( policy , new StandardByteBufferPool ( ) ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removing discouraged form of Generator constructor"} {"diff": " public class NetworkInit { \n SINGLE \n if ( ! H2O . ARGS . disable_web ) { \n apiSocket . close ( ) ; \n - try { \n - H2O . getJetty ( ) . start ( H2O . ARGS . web_ip , H2O . API_PORT ) ; \n - } catch ( Exception e ) { \n - Log . err ( STRING0 , e ) ; \n - H2O . exit ( - NUMBER0 ) ; \n - } \n + H2O . getJetty ( ) . start ( H2O . ARGS . web_ip , H2O . API_PORT ) ; \n } \n break ; \n } catch ( Exception e ) {", "msg_token": "remove exit on Jetty initialization failure"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs build error in MediaFormat"} {"diff": " public class PointlessArithmeticExpressionInspection \n ! ( expression instanceof PsiLiteralExpression ) ) { \n return false ; \n } \n - final Double value ; \n - value = ( Double ) ConstantExpressionUtil \n + final Double value = ( Double ) ConstantExpressionUtil \n . computeCastTo ( expression , PsiType . DOUBLE ) ; \n return value != null && value == FLOAT0 ; \n }", "msg_token": "Fixed based on Bas s new scope inspection"} {"diff": " public class LocaleUtils { \n if ( locale == null ) { \n locale = JiveGlobals . getLocale ( ) ; \n } \n - String i18nFile = pluginName + STRING0 ; \n + String i18nFile = getI18nFile ( pluginName ) ; \n \n SINGLE \n final XMPPServer xmppServer = XMPPServer . getInstance ( ) ; \n public class LocaleUtils { \n public static ResourceBundle getPluginResourceBundle ( String pluginName ) throws Exception { \n final Locale locale = JiveGlobals . getLocale ( ) ; \n \n - String i18nFile = pluginName + STRING0 ; \n + String i18nFile = getI18nFile ( pluginName ) ; \n \n SINGLE \n final XMPPServer xmppServer = XMPPServer . getInstance ( ) ; \n public class LocaleUtils { \n return ResourceBundle . getBundle ( i18nFile , locale , pluginClassLoader ) ; \n } \n \n + private static String getI18nFile ( String pluginName ) { \n + return pluginName . replace ( STRING1 , STRING2 ) + STRING0 ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "convert dots to underscores"} {"diff": " public class LiquidStack \n nbt . setShort ( STRING0 , ( short ) itemID ) ; \n nbt . setInteger ( STRING1 , amount ) ; \n nbt . setShort ( STRING2 , ( short ) itemMeta ) ; \n + nbt . setString ( STRING3 , LiquidDictionary . findLiquidName ( this ) ) ; \n return nbt ; \n } \n \n public void readFromNBT ( NBTTagCompound nbt ) \n { \n - itemID = nbt . getShort ( STRING0 ) ; \n + String liquidName = nbt . getString ( STRING3 ) ; \n + if ( liquidName != null ) \n + { \n + LiquidStack liquid = LiquidDictionary . getCanonicalLiquid ( liquidName ) ; \n + itemID = liquid . itemID ; \n + itemMeta = liquid . itemMeta ; \n + } \n + else \n + { \n + itemID = nbt . getShort ( STRING0 ) ; \n + itemMeta = nbt . getShort ( STRING2 ) ; \n + } \n amount = nbt . getInteger ( STRING1 ) ; \n - itemMeta = nbt . getShort ( STRING2 ) ; \n } \n \n COMMENT", "msg_token": "Use the liquid name in liquid stack persistence"} {"diff": " class LitResXMLReader extends LitResAuthenticationXMLReader { \n if ( TAG_BOOK == tag ) { \n myBookId = attributes . getValue ( STRING0 ) ; \n myUrls . addInfo ( new UrlInfo ( \n - UrlInfo . Type . Image , attributes . getValue ( STRING1 ) , MimeType . IMAGE_AUTO \n + UrlInfo . Type . Image , attributes . getValue ( STRING2 ) , MimeType . IMAGE_AUTO \n ) ) ; \n \n myUrls . addInfo ( new BookUrlInfo (", "msg_token": "full size cover in litres my books catalog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ViewTest { \n transcript . assertEventsSoFar ( STRING0 , STRING1 , STRING2 ) ; \n } \n \n + SINGLE \n @ test public void removeAllViews_shouldCallOnAttachedToAndDetachedFromWindow ( ) throws Exception { \n MyView parent = new MyView ( STRING3 , transcript ) ; \n new RoboWindow ( application ) . setContentView ( parent ) ;", "msg_token": "Add note about flaky test"} {"diff": " public class AbstractMetaDataExportMojo extends AbstractMojo { \n exporter . setConfiguration ( configuration ) ; \n \n Class . forName ( jdbcDriver ) ; \n - final String user ; \n - final String password ; \n + String user ; \n + String password ; \n if ( server == null ) { \n user = jdbcUser ; \n password = jdbcPassword ; \n } else { \n - final AuthenticationInfo info = wagonManager . getAuthenticationInfo ( server ) ; \n + AuthenticationInfo info = wagonManager . getAuthenticationInfo ( server ) ; \n if ( info == null ) { \n throw new MojoExecutionException ( STRING0 + server ) ; \n } \n public class AbstractMetaDataExportMojo extends AbstractMojo { \n throw new MojoExecutionException ( STRING1 + server ) ; \n } \n } \n - final Connection conn = DriverManager . getConnection ( jdbcUrl , user , password ) ; \n + Connection conn = DriverManager . getConnection ( jdbcUrl , user , password ) ; \n try { \n exporter . export ( conn . getMetaData ( ) ) ; \n } finally {", "msg_token": "remove final in local variables"} {"diff": " public class JspFactoryImpl extends JspFactory { \n private Log log = LogFactory . getLog ( JspFactoryImpl . class ) ; \n \n private static final String SPEC_VERSION = STRING0 ; \n - private static final boolean USE_POOL = true ; \n + private static final boolean USE_POOL = \n + Boolean . valueOf ( System . getProperty ( STRING1 , STRING2 ) ) . booleanValue ( ) ; \n \n private SimplePool pool = new SimplePool ( NUMBER0 ) ;", "msg_token": "Add missing patch"} {"diff": " public class JEditTextArea extends JComponent \n \n caretTimer = new Timer ( NUMBER0 , new ActionListener ( ) { \n public void actionPerformed ( ActionEvent e ) { \n - System . out . println ( caretTimer ) ; \n if ( hasFocus ( ) ) { \n blinkCaret ( ) ; \n }", "msg_token": "oops remove debug message"} {"diff": " public class DrawableWithIntrinsicSize extends ForwardingDrawable implements Dra \n \n @ override \n public int getIntrinsicWidth ( ) { \n - return ( int ) PixelUtil . toDIPFromPixel ( mImageInfo . getWidth ( ) ) ; \n + return mImageInfo . getWidth ( ) ; \n } \n \n @ override \n public int getIntrinsicHeight ( ) { \n - return ( int ) PixelUtil . toDIPFromPixel ( mImageInfo . getHeight ( ) ) ; \n + return mImageInfo . getHeight ( ) ; \n } \n \n }", "msg_token": "remove extraneous dimension conversion"} {"diff": " package NAMESPACE ; \n COMMENT \n public final class BitArray { \n \n - private int [ ] bits ; \n - private final int size ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + public int [ ] bits ; \n + public final int size ; \n \n public BitArray ( int size ) { \n if ( size < NUMBER0 ) {", "msg_token": "Made the data members of BitArray public so they will be inlined"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class CassandraDaemon \n SINGLE \n TThreadPoolServer . Options options = new TThreadPoolServer . Options ( ) ; \n options . minWorkerThreads = NUMBER0 ; \n - serverEngine = new TThreadPoolServer ( processor , tServerSocket , tProtocolFactory ) ; \n + serverEngine = new TThreadPoolServer ( new TProcessorFactory ( processor ) , \n + tServerSocket , \n + new TTransportFactory ( ) , \n + new TTransportFactory ( ) , \n + tProtocolFactory , \n + tProtocolFactory , \n + options ) ; \n } \n \n COMMENT", "msg_token": "pass engine options to the constructor"} {"diff": " package NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Dialog extends Window { \n } ) ; \n } \n \n + public void draw ( SpriteBatch batch , float parentAlpha ) { \n + Stage stage = getStage ( ) ; \n + if ( stage . getKeyboardFocus ( ) == null ) stage . setKeyboardFocus ( this ) ; \n + super . draw ( batch , parentAlpha ) ; \n + } \n + \n public Table getContentTable ( ) { \n return contentTable ; \n }", "msg_token": "Dialog keep keyboard focus"} {"diff": " public class ListView extends AbsListView { \n boolean handled = false ; \n int action = event . getAction ( ) ; \n if ( KeyEvent . isConfirmKey ( keyCode ) \n - && event . hasNoModifiers ( ) && action == KeyEvent . ACTION_UP ) { \n + && event . hasNoModifiers ( ) && action != KeyEvent . ACTION_UP ) { \n handled = resurrectSelectionIfNeeded ( ) ; \n if ( ! handled && event . getRepeatCount ( ) == NUMBER0 && getChildCount ( ) > NUMBER0 ) { \n keyPressed ( ) ;", "msg_token": "Fix problem where enter and space key do nothing on ListView"} {"diff": " public class JpsGradleDependenciesEnumerationHandler extends JpsJavaDependencies \n @ override \n public JpsJavaDependenciesEnumerationHandler createHandler ( @ notnull Collection < JpsModule > modules ) { \n JpsGradleExtensionService service = JpsGradleExtensionService . getInstance ( ) ; \n + JpsJavaDependenciesEnumerationHandler handler = null ; \n for ( JpsModule module : modules ) { \n JpsGradleModuleExtension gradleModuleExtension = service . getExtension ( module ) ; \n - if ( gradleModuleExtension != null && STRING0 . equals ( gradleModuleExtension . getModuleType ( ) ) ) { \n - return SOURCE_SET_TYPE_INSTANCE ; \n + if ( gradleModuleExtension != null ) { \n + if ( STRING0 . equals ( gradleModuleExtension . getModuleType ( ) ) ) { \n + handler = SOURCE_SET_TYPE_INSTANCE ; \n + break ; \n + } \n + else { \n + handler = NON_SOURCE_SET_TYPE_INSTANCE ; \n + } \n } \n } \n - return NON_SOURCE_SET_TYPE_INSTANCE ; \n + return handler ; \n } \n } \n }", "msg_token": "include tests from dependent modules to test classpath if merged structure used"} {"diff": " public interface TypePool { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n static class Default extends AbstractBase {", "msg_token": "Fixed broken javadoc"} {"diff": " public interface FieldDescription extends ByteCodeElement , \n COMMENT \n COMMENT \n COMMENT \n - class Token extends ModifierReviewable . AbstractBase implements ByteCodeElement . Token < Token > { \n + class Token implements ByteCodeElement . Token < Token > { \n \n COMMENT \n COMMENT \n public interface FieldDescription extends ByteCodeElement , \n return type ; \n } \n \n - @ override \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public int getModifiers ( ) { \n return modifiers ; \n } \n public interface MethodDescription extends TypeVariableSource , \n COMMENT \n COMMENT \n COMMENT \n - class Token extends ModifierReviewable . AbstractBase implements ByteCodeElement . Token < Token > { \n + class Token implements ByteCodeElement . Token < Token > { \n \n COMMENT \n COMMENT \n public interface MethodDescription extends TypeVariableSource , \n return internalName ; \n } \n \n - @ override \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public int getModifiers ( ) { \n return modifiers ; \n }", "msg_token": "Made tokens not modifier reviewable as this is not used within the application"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class EasyPermissions { \n final int requestCode , final String . . . perms ) { \n \n checkCallingObjectSuitability ( object ) ; \n + final PermissionCallbacks callbacks = ( PermissionCallbacks ) object ; \n \n boolean shouldShowRationale = false ; \n for ( String perm : perms ) { \n public class EasyPermissions { \n . setNegativeButton ( negativeButton , new DialogInterface . OnClickListener ( ) { \n @ override \n public void onClick ( DialogInterface dialog , int which ) { \n - SINGLE \n + SINGLE \n + callbacks . onPermissionsDenied ( Arrays . asList ( perms ) ) ; \n } \n } ) . create ( ) ; \n dialog . show ( ) ;", "msg_token": "notify user about canceled rationale dialog as if permissions were denied"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class App \n { \n public static void main ( String [ ] args ) \n \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class Hero { \n \n private final Profession profession ; \n public class Hero { \n this . weapon = builder . weapon ; \n this . armor = builder . armor ; \n } \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static class HeroBuilder { \n \n private final Profession profession ; \n public class Hero { \n public Hero build ( ) { \n return new Hero ( this ) ; \n } \n - \n } \n - \n }", "msg_token": "Added comments for Builder example"} {"diff": " public final class BluetoothA2dp { \n COMMENT \n COMMENT \n COMMENT \n - public int suspendSink ( BluetoothDevice device ) { \n + public boolean suspendSink ( BluetoothDevice device ) { \n try { \n return mService . suspendSink ( device ) ; \n } catch ( RemoteException e ) { \n public final class BluetoothA2dp { \n COMMENT \n COMMENT \n COMMENT \n - public int resumeSink ( BluetoothDevice device ) { \n + public boolean resumeSink ( BluetoothDevice device ) { \n try { \n return mService . resumeSink ( device ) ; \n } catch ( RemoteException e ) {", "msg_token": "Fix broken build"} {"diff": " class RunConfigurable extends BaseConfigurable { \n final Enumeration enumeration = myRoot . breadthFirstEnumeration ( ) ; \n while ( enumeration . hasMoreElements ( ) ) { \n final DefaultMutableTreeNode node = ( DefaultMutableTreeNode ) enumeration . nextElement ( ) ; \n - final Object userObject = node . getUserObject ( ) ; \n + Object userObject = node . getUserObject ( ) ; \n + if ( userObject instanceof SettingsEditorConfigurable ) { \n + userObject = ( ( SettingsEditorConfigurable ) userObject ) . getSettings ( ) ; \n + } \n if ( userObject instanceof RunnerAndConfigurationSettingsImpl ) { \n final RunnerAndConfigurationSettings runnerAndConfigurationSettings = ( RunnerAndConfigurationSettings ) userObject ; \n final ConfigurationType configurationType = configuration . getType ( ) ;", "msg_token": "edit button does nothing after first use"} {"diff": " public class StartArgs \n ensureSystemPropertySet ( STRING0 ) ; \n \n SINGLE \n - if ( dryRun ) \n + if ( dryRun || isExec ( ) ) \n { \n for ( Prop p : properties ) \n cmd . addRawArg ( CommandLineBuilder . quote ( p . key ) + STRING1 + CommandLineBuilder . quote ( p . value ) ) ;", "msg_token": "expand properties on command line for exec"} {"diff": " public class MessagingController implements Runnable { \n \n PendingIntent pi = PendingIntent . getActivity ( mApplication , NUMBER0 , i , NUMBER0 ) ; \n \n - notif . setLatestEventInfo ( mApplication , mApplication . getString ( R . string . send_failure_subject ) , lastFailure . getMessage ( ) , pi ) ; \n + notif . setLatestEventInfo ( mApplication , mApplication . getString ( R . string . send_failure_subject ) , getRootCauseMessage ( lastFailure ) , pi ) ; \n \n configureNotification ( notif , null , null , K9 . NOTIFICATION_LED_SENDING_FAILURE_COLOR , K9 . NOTIFICATION_LED_BLINK_FAST , true ) ; \n notif . flags |= Notification . FLAG_AUTO_CANCEL ;", "msg_token": "Fix sending message failed notifications to actually report the server"} {"diff": " public class TestPostWater extends SimpleApplication { \n water . setWaterHeight ( initialWaterHeight ) ; \n uw = cam . getLocation ( ) . y < waterHeight ; \n \n - waves = new AudioNode ( audioRenderer , assetManager , STRING0 , false ) ; \n + waves = new AudioNode ( assetManager , STRING0 , false ) ; \n waves . setLooping ( true ) ; \n waves . setReverbEnabled ( true ) ; \n if ( uw ) {", "msg_token": "Fix compile error in TestPostWater"} {"diff": " import NAMESPACE ; \n COMMENT \n public class DalvikAwareOutputStreamHelper implements ZipOutputStreamHelper { \n \n - private static final int MAX_METHOD_REFERENCES = NUMBER0 * NUMBER1 ; \n + SINGLE \n + private static final int MAX_METHOD_REFERENCES = NUMBER0 * NUMBER1 - NUMBER2 ; \n \n private final ZipOutputStream outStream ; \n private final Set < String > entryNames = Sets . newHashSet ( ) ;", "msg_token": "Temporarily reduce method count limit for dexing"} {"diff": " public abstract class SharedTreeModel < M extends SharedTreeModel < M , P , O > , P extend \n _ntrees ++ ; \n SINGLE \n _mse_train = ArrayUtils . copyAndFillOf ( _mse_train , _ntrees + NUMBER0 , Double . NaN ) ; \n - if ( _mse_valid != null ) \n - _mse_valid = ArrayUtils . copyAndFillOf ( _mse_valid , _ntrees + NUMBER0 , Double . NaN ) ; \n + _mse_valid = _valid_metrics != null ? ArrayUtils . copyAndFillOf ( _mse_valid , _ntrees + NUMBER0 , Double . NaN ) : null ; \n fs . blockForPending ( ) ; \n }", "msg_token": "Fix all NAs in validation MSE for tree models now return NULL"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n - \n COMMENT \n COMMENT \n COMMENT \n public interface Adapter { \n public void checkRecycled ( Request req , Response res ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix comment typo and other clean up"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConfirmDeleteDialogFragment extends DialogFragment { \n \n @ override \n protected void onPostExecute ( Integer result ) { \n - if ( result == Result . OFFLINE ) { \n + if ( result == NetworkResult . OFFLINE ) { \n Toast . makeText ( mContext , R . string . offline , Toast . LENGTH_LONG ) . show ( ) ; \n - } else if ( result == Result . ERROR ) { \n + } else if ( result == NetworkResult . ERROR ) { \n Toast . makeText ( mContext , R . string . delete_error , Toast . LENGTH_LONG ) . show ( ) ; \n } \n SINGLE", "msg_token": "Fix wrong error code class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "fixed eclipse warnings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove no use import"} {"diff": " public class FileDataModel implements DataModel { \n processFile ( updateFile , data ) ; \n } \n \n - delegate = new GenericDataModel ( new UserIteratableOverData ( data ) ) ; \n + delegate = new GenericDataModel ( new UserIterableOverData ( data ) ) ; \n loaded = true ; \n \n } finally { \n public class FileDataModel implements DataModel { \n } \n \n \n - private final class UserIteratableOverData implements Iterable < User > { \n + private final class UserIterableOverData implements Iterable < User > { \n private final Map < String , List < Preference > > data ; \n - private UserIteratableOverData ( Map < String , List < Preference > > data ) { \n + private UserIterableOverData ( Map < String , List < Preference > > data ) { \n this . data = data ; \n } \n + \n @ override \n public Iterator < User > iterator ( ) { \n return new UserIteratorOverData ( data . entrySet ( ) . iterator ( ) ) ;", "msg_token": "Fixed a small misspelling"} {"diff": " public class LayoutManager extends RecyclerView . LayoutManager { \n SINGLE \n int unavailableWidth = NUMBER0 ; \n LayoutParams lp = ( LayoutParams ) header . view . getLayoutParams ( ) ; \n + int recyclerWidth = getWidth ( ) - getPaddingLeft ( ) - getPaddingRight ( ) ; \n if ( lp . headerAlignment == HEADER_ALIGN_START && ! lp . headerStartMarginIsAuto ) { \n - unavailableWidth = getWidth ( ) - lp . headerStartMargin ; \n + unavailableWidth = recyclerWidth - lp . headerStartMargin ; \n } else if ( lp . headerAlignment == HEADER_ALIGN_END && ! lp . headerEndMarginIsAuto ) { \n - unavailableWidth = getWidth ( ) - lp . headerEndMargin ; \n + unavailableWidth = recyclerWidth - lp . headerEndMargin ; \n } \n measureChildWithMargins ( header . view , unavailableWidth , NUMBER0 ) ; \n }", "msg_token": "Fix width measurement of headers inside fixed margins"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n public class Hook implements Comparable < Hook > { \n public class Hook implements Comparable < Hook > { \n public static boolean isAOSP ( int sdk ) { \n if ( ! PrivacyManager . cVersion3 ) \n return false ; \n + if ( new File ( STRING0 ) . exists ( ) ) \n + return true ; \n if ( Build . VERSION . SDK_INT >= sdk ) { \n if ( Build . DISPLAY == null || Build . HOST == null ) \n return false ;", "msg_token": "Allow AOSP override"} {"diff": " public final class World extends RenderableObject { \n private boolean _updateThreadAlive = true ; \n private final Thread _updateThread ; \n COMMENT \n - private final List < Chunk > _chunkUpdateQueueDL = Collections . synchronizedList ( new LinkedList < Chunk > ( ) ) ; \n - private final List < Chunk > _chunkUpdateNormal = Collections . synchronizedList ( new LinkedList < Chunk > ( ) ) ; \n - private final Map < Integer , Chunk > _chunkCache = Collections . synchronizedMap ( new TreeMap < Integer , Chunk > ( ) ) ; \n + private final List < Chunk > _chunkUpdateQueueDL = new LinkedList < Chunk > ( ) ; \n + private final List < Chunk > _chunkUpdateNormal = new LinkedList < Chunk > ( ) ; \n + private final Map < Integer , Chunk > _chunkCache = new TreeMap < Integer , Chunk > ( ) ; \n COMMENT \n private final ChunkGeneratorTerrain _generatorTerrain ; \n private final ChunkGeneratorForest _generatorForest ;", "msg_token": "Removed unnecessary synchronized data structures caused crashes"} {"diff": " public abstract class TaskRepository { \n @ notnull \n public abstract TaskRepository clone ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ nullable \n public abstract String extractId ( @ notnull String taskName ) ;", "msg_token": "Add javadoc for TaskRepository extractId"} {"diff": " public class StorageService implements IEndpointStateChangeSubscriber , StorageSe \n { \n List < InetAddress > endpoints = getNaturalEndpoints ( table , key ) ; \n DatabaseDescriptor . getEndpointSnitch ( ) . sortByProximity ( FBUtilities . getLocalAddress ( ) , endpoints ) ; \n + if ( logger_ . isDebugEnabled ( ) ) \n + logger_ . debug ( STRING0 + StringUtils . join ( endpoints , STRING1 ) ) ; \n for ( InetAddress endpoint : endpoints ) \n { \n if ( FailureDetector . instance . isAlive ( endpoint ) )", "msg_token": "add debug logging of sorted replicas"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AbstractPopup implements JBPopup { \n return false ; \n } \n \n + if ( SystemInfo . isMacOSYosemite ) { \n + return false ; \n + } \n + \n if ( myComponent . getComponentCount ( ) > NUMBER0 ) { \n Component component = myComponent . getComponent ( NUMBER0 ) ; \n if ( component instanceof JComponent && Boolean . TRUE . equals ( ( ( JComponent ) component ) . getClientProperty ( SUPPRESS_MAC_CORNER ) ) ) {", "msg_token": "do not paint mac corner for Yosemite and newer"} {"diff": " \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ; \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "added copyright messages"} {"diff": " class BasicAuthInjectable < T > extends AbstractHttpContextInjectable < T > { \n } catch ( IllegalArgumentException e ) { \n BasicAuthProvider . LOG . debug ( e , STRING0 ) ; \n } catch ( AuthenticationException e ) { \n - BasicAuthProvider . LOG . warn ( e , STRING1 ) ; \n + BasicAuthProvider . LOG . warn ( e , STRING2 ) ; \n throw new WebApplicationException ( Response . Status . INTERNAL_SERVER_ERROR ) ; \n }", "msg_token": "Clarify wording on the AuthenticationException log message"} {"diff": " public class StartParameter extends LoggingConfiguration implements Serializable \n \n @ incubating \n public boolean isParallelThreadCountConfigured ( ) { \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n return parallelThreadCountConfigured ;", "msg_token": "Fixed typo in comment"} {"diff": " public class PackageUtil { \n Module module , \n ViewSettings settings , \n final boolean inLibrary ) { \n - final boolean shouldSkipPackage = settings . isHideEmptyMiddlePackages ( ) \n - && isPackageEmpty ( aPackage , module , \n - true , \n - inLibrary ) ; \n + final boolean shouldSkipPackage = settings . isHideEmptyMiddlePackages ( ) && isPackageEmpty ( aPackage , module , ! settings . isFlattenPackages ( ) , inLibrary ) ; \n final Project project = aPackage . getManager ( ) . getProject ( ) ; \n if ( ! shouldSkipPackage ) { \n children . add ( new PackageElementNode ( project ,", "msg_token": "corrected behaviour of hide empty middle packages in flatten mode for the PackageView"} {"diff": " public abstract class GeneratedModel implements IGeneratedModel { \n if ( from [ i ] > from [ result ] ) result = i ; \n return result ; \n } \n + \n + @ override public int predsSize ( ) { \n + return isClassifier ( ) ? NUMBER0 + getNumResponseClasses ( ) : NUMBER1 ; \n + } \n } \n public interface IGeneratedModel { \n COMMENT \n COMMENT \n public int mapEnum ( int colIdx , String enumValue ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int predsSize ( ) ; \n }", "msg_token": "Adding a method providing an expected size of preds array which"} {"diff": " public final class ItemManager { \n final Adapter adapter = absListView . getAdapter ( ) ; \n mPendingItemsUpdate = false ; \n \n + SINGLE \n + if ( adapter == null ) { \n + return ; \n + } \n + \n long timestamp = SystemClock . uptimeMillis ( ) ; \n \n SINGLE", "msg_token": "library Don t update items if the adapter is null"} {"diff": " public class PackageParser { \n \n if ( sa . getBoolean ( \n com . android . internal . R . styleable . AndroidManifestApplication_testOnly , \n - true ) ) { \n + false ) ) { \n ai . flags |= ApplicationInfo . FLAG_TEST_ONLY ; \n }", "msg_token": "Whoops fix installing"} {"diff": " public class MessageCompose extends K9Activity implements OnClickListener , OnFoc \n } \n mQuoteStyle = QuoteStyle . HEADER ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! StringUtils . isNullOrEmpty ( message . getMessageId ( ) ) ) { \n + mInReplyTo = message . getMessageId ( ) ; \n + mReferences = mInReplyTo ; \n + } else { \n + if ( K9 . DEBUG ) { \n + Log . d ( K9 . LOG_TAG , STRING0 ) ; \n + } \n + } \n + \n SINGLE \n populateUIWithQuotedMessage ( true ) ;", "msg_token": "Add references and in reply to for forwarded messages"} {"diff": " public class StatusBarManagerService extends IStatusBarService . Stub \n SINGLE \n SINGLE \n manageDisableListLocked ( userId , what , token , pkg ) ; \n - final int net = gatherDisableActionsLocked ( userId ) ; \n + \n + SINGLE \n + final int net = gatherDisableActionsLocked ( mCurrentUserId ) ; \n if ( net != mDisabled ) { \n mDisabled = net ; \n mHandler . post ( new Runnable ( ) {", "msg_token": "Fix multiuser bug in StatusBarManagerService"} {"diff": " public abstract class DB { \n _obedientCommands . add ( STRING0 ) ; \n _obedientCommands . add ( STRING1 ) ; \n _obedientCommands . add ( STRING2 ) ; \n + _obedientCommands . add ( STRING3 ) ; \n } \n \n COMMENT \n public class DBTest extends TestCase { \n \n obj = new BasicDBObject ( STRING2 , NUMBER0 ) ; \n assertEquals ( ReadPreference . secondaryPreferred ( ) , db . getCommandReadPreference ( obj , ReadPreference . secondaryPreferred ( ) ) ) ; \n + \n + obj = new BasicDBObject ( STRING4 , NUMBER0 ) ; \n + assertEquals ( ReadPreference . secondaryPreferred ( ) , db . getCommandReadPreference ( obj , ReadPreference . secondaryPreferred ( ) ) ) ; \n } \n \n @ test", "msg_token": "Allow parallelCollectionScan command to obey read preference"} {"diff": " public class PasswordAutocompleteScanner implements PassiveScanner { \n String type = inputElement . getAttributeValue ( STRING0 ) ; \n if ( type != null && type . equalsIgnoreCase ( STRING1 ) ) { \n \n - Alert alert = new Alert ( getId ( ) , Alert . RISK_MEDIUM , Alert . WARNING , \n + Alert alert = new Alert ( getId ( ) , Alert . RISK_LOW , Alert . WARNING , \n STRING2 ) ; \n alert . setDetail ( \n STRING3 , \n msg . getRequestHeader ( ) . getURI ( ) . toString ( ) , \n - inputElement . getName ( ) , STRING4 , \n + inputElement . getName ( ) , \n + STRING5 , \n STRING6 , \n STRING7 , \n msg ) ;", "msg_token": "Changed password autocomplete alert level to low"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class JarDirectoryWatcherFactory { \n + private static final JarDirectoryWatcherFactory Instance = new JarDirectoryWatcherFactory ( ) ; \n + \n public static JarDirectoryWatcherFactory getInstance ( ) { \n final JarDirectoryWatcherFactory factory = ServiceManager . getService ( JarDirectoryWatcherFactory . class ) ; \n - return factory != null ? factory : new JarDirectoryWatcherFactory ( ) ; \n + return factory != null ? factory : Instance ; \n } \n \n public JarDirectoryWatcher createWatcher ( JarDirectories jarDirectories , RootProviderBaseImpl rootProvider ) {", "msg_token": "use single instance for base factory"} {"diff": " public class UrlMappingTest { \n r = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING0 ) . build ( ) ; \n assertNotNull ( processor . map ( r ) ) ; \n \n - r = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING0 ) . build ( ) ; \n + r = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING1 ) . build ( ) ; \n assertNotNull ( processor . map ( r ) ) ; \n \n r = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING2 ) . build ( ) ;", "msg_token": "tweak the test"} {"diff": " public interface PartitionService { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n String randomPartitionKey ( ) ; \n \n COMMENT", "msg_token": "Deprecated PartitionService randomPartitionKey method"} {"diff": " public class ZookeeperManager { \n byte [ ] data = clusterState . get_data ( PathUtils . normalize_path ( path ) , false ) ; \n if ( data != null && data . length > NUMBER0 ) { \n Object obj = Utils . maybe_deserialize ( data ) ; \n - out = gson . toJson ( obj ) ; \n + if ( obj != null ) { \n + out = gson . toJson ( obj ) ; \n + } else { \n + out = new String ( data ) ; \n + } \n } \n } catch ( Exception e ) { \n LOG . error ( STRING0 , e ) ;", "msg_token": "fix zookeeper page can t read String data in zk"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ColumnMetadata { \n + public final class ColumnMetadata { \n \n COMMENT \n COMMENT", "msg_token": "Make ColumnMetadata final"} {"diff": " import NAMESPACE ; \n public final class Response { \n COMMENT \n private static final Pattern NON_PRINTABLE = \n - Pattern . compile ( STRING0 ) ; \n + Pattern . compile ( STRING1 ) ; \n \n COMMENT \n protected static final Logger LOGGER = LoggerFactory . getLogger ( Response . class ) ;", "msg_token": "Improve pattern to detect unprintable characters"} {"diff": " public class CordovaBridge { \n \n COMMENT \n int generateBridgeSecret ( ) { \n - expectedBridgeSecret = ( int ) ( Math . random ( ) * Integer . MAX_VALUE ) ; \n + SecureRandom randGen = new SecureRandom ( ) ; \n + expectedBridgeSecret = randGen . nextInt ( Integer . MAX_VALUE ) ; \n return expectedBridgeSecret ; \n }", "msg_token": "Fixed the SecureRandom so it only returns positive values"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fix import no functional change"} {"diff": " class ContextImpl extends Context { \n STRING0 + container . getDisplayMetrics ( ) ) ; \n } \n if ( compatInfo == null ) { \n - compatInfo = CompatibilityInfo . DEFAULT_COMPATIBILITY_INFO ; \n + compatInfo = packageInfo . getCompatibilityInfo ( ) ; \n } \n mDisplayAdjustments . setCompatibilityInfo ( compatInfo ) ; \n mDisplayAdjustments . setActivityToken ( activityToken ) ;", "msg_token": "Use package CompatibilityInfo as default"} {"diff": " public class MailMessageTest extends ContextTestSupport { \n \n MailExchange exchange = endpoint . createExchange ( mimeMessage ) ; \n MailMessage in = exchange . getIn ( ) ; \n - Object header = in . getHeader ( STRING0 ) ; \n + String value = in . getHeader ( STRING0 , String . class ) ; \n + assertEquals ( STRING1 , STRING2 , value ) ; \n + COMMENT \n String [ ] values = assertIsInstanceOf ( String [ ] . class , header ) ; \n log . debug ( STRING3 + ObjectHelper . asString ( values ) ) ; \n assertEquals ( STRING4 , NUMBER0 , values . length ) ; \n assertEquals ( STRING5 , STRING6 , values [ NUMBER1 ] ) ; \n assertEquals ( STRING7 , STRING8 , values [ NUMBER2 ] ) ; \n + COMMENT \n \n assertEquals ( STRING9 , body , in . getBody ( ) ) ; \n }", "msg_token": "fixed test case"} {"diff": " public class XMPPServer { \n Log . warn ( STRING0 , ex ) ; \n } \n \n - version = new Version ( NUMBER0 , NUMBER1 , NUMBER2 , Version . ReleaseStatus . Beta , - NUMBER3 ) ; \n + version = new Version ( NUMBER0 , NUMBER1 , NUMBER2 , Version . ReleaseStatus . Release , - NUMBER3 ) ; \n if ( STRING1 . equals ( JiveGlobals . getXMLProperty ( STRING2 ) ) ) { \n setupMode = false ; \n }", "msg_token": "updating version numbers"} {"diff": " abstract class ASTReducerOp extends ASTOp { \n } \n \n SINGLE \n - try { \n - a = E . _env . lookup ( ( ASTId ) a ) ; \n - } catch ( ClassCastException e ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n - } \n + if ( a instanceof ASTId ) a = E . _env . lookup ( ( ASTId ) a ) ; \n + else throw new IllegalArgumentException ( STRING1 ) ; \n _narm = ( ( ASTNum ) a ) . dbl ( ) == NUMBER0 ; \n E . eatEnd ( ) ; SINGLE \n AST [ ] arys = new AST [ _argcnt = dblarys . size ( ) ] ;", "msg_token": "simplify the parsing for reducer ops"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove not valid import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class HgCommitCommand { \n commitChunkFiles ( chunk , amendCommit ) ; \n } \n } \n + if ( ! myProject . isDisposed ( ) ) { \n + HgRepositoryManager manager = HgUtil . getRepositoryManager ( myProject ) ; \n + manager . updateRepository ( myRoot ) ; \n + } \n final MessageBus messageBus = myProject . getMessageBus ( ) ; \n messageBus . syncPublisher ( HgVcs . REMOTE_TOPIC ) . update ( myProject , null ) ; \n messageBus . syncPublisher ( HgVcs . BRANCH_TOPIC ) . update ( myProject , null ) ;", "msg_token": "ArrayOutOfBounds Exception fixed when update log after commit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ ignore ( STRING0 ) \n public class HawtDBAggregateLoadConcurrentTest extends CamelTestSupport { \n \n private static final Logger LOG = LoggerFactory . getLogger ( HawtDBAggregateLoadConcurrentTest . class ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ ignore ( STRING0 ) \n public class HawtDBAggregateLoadTest extends CamelTestSupport { \n \n private static final Logger LOG = LoggerFactory . getLogger ( HawtDBAggregateLoadTest . class ) ;", "msg_token": "Skip tests on CI"} {"diff": " public class VideoProfile implements Parcelable { \n public static final int QUALITY_DEFAULT = NUMBER0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int STATE_AUDIO_ONLY = NUMBER1 ; \n \n public class ImsCallProfile implements Parcelable { \n videostate = VideoProfile . STATE_AUDIO_ONLY ; \n break ; \n } \n - if ( callProfile . isVideoPaused ( ) && videostate != VideoProfile . STATE_AUDIO_ONLY ) { \n + if ( callProfile . isVideoPaused ( ) && ! VideoProfile . isAudioOnly ( videostate ) ) { \n videostate |= VideoProfile . STATE_PAUSED ; \n } else { \n videostate &= ~ VideoProfile . STATE_PAUSED ;", "msg_token": "Remove use of STATE_AUDIO_ONLY in a comparison"} {"diff": " public class ThrottleService extends IThrottleManager . Stub { \n private void checkThrottleAndPostNotification ( long currentTotal ) { \n SINGLE \n if ( mPolicyThreshold == NUMBER0 ) { \n + clearThrottleAndNotification ( ) ; \n return ; \n }", "msg_token": "Handle throttling being disabled via policy change"} {"diff": " public class TestArrayOperators \n assertFunction ( STRING0 , BOOLEAN , false ) ; \n assertFunction ( STRING1 , BOOLEAN , true ) ; \n assertFunction ( STRING2 , BOOLEAN , false ) ; \n + assertFunction ( STRING3 , BOOLEAN , null ) ; \n + assertFunction ( STRING4 , BOOLEAN , null ) ; \n } \n \n @ test", "msg_token": "Add test for ArrayContains on null"} {"diff": " public class ProjectSdksModel implements SdkModel { \n LOG . assertTrue ( projectJdk != null ) ; \n if ( ArrayUtilRt . find ( allJdks , projectJdk ) == - NUMBER0 ) { \n jdkTable . addJdk ( projectJdk ) ; \n + jdkTable . updateJdk ( projectJdk , myProjectSdks . get ( projectJdk ) ) ; \n } \n } \n }", "msg_token": "keep changes made in newly added SDK"} {"diff": " public class OpenALManager implements AudioManager { \n entry . getValue ( ) . onAudioEnd ( ) ; \n } \n } \n - logger . warn ( STRING0 + endListeners . size ( ) ) ; \n } \n \n protected boolean checkDistance ( Vector3f soundPosition ) {", "msg_token": "removed log message"} {"diff": " public abstract class IdeDependencyKey < T extends IdeDependency , R > { \n \n public static < D > IdeDependencyKey < IdeProjectDependency , D > forProjectDependency ( \n IdeProjectDependency dependency , DependencyBuilder < IdeProjectDependency , D > dependencyBuilder ) { \n - return new ProjectDependencyKey ( dependency , dependencyBuilder ) ; \n + return new ProjectDependencyKey < D > ( dependency , dependencyBuilder ) ; \n } \n \n public static < D > IdeDependencyKey < IdeLocalFileDependency , D > forLocalFileDependency ( \n IdeLocalFileDependency dependency , DependencyBuilder < IdeLocalFileDependency , D > dependencyBuilder ) { \n - return new LocalFileDependencyKey ( dependency , dependencyBuilder ) ; \n + return new LocalFileDependencyKey < D > ( dependency , dependencyBuilder ) ; \n } \n \n protected final T ideDependency ; \n public abstract class IdeDependencyKey < T extends IdeDependency , R > { \n } \n \n protected abstract boolean isSameDependency ( IdeDependency otherDependency ) ; \n + \n protected abstract int dependencyHashCode ( ) ; \n \n @ override", "msg_token": "Add missing type params"} {"diff": " public class DropboxSynchronizerImpl implements ManagedService { \n COMMENT \n private static String downloadInterval = STRING0 ; \n \n - private static final List < String > DEFAULT_FILE_FILTER = Arrays . asList ( STRING1 , STRING2 , STRING3 , STRING4 ) ; \n + private static final List < String > DEFAULT_FILE_FILTER = Arrays . asList ( STRING1 , STRING5 , STRING6 , STRING7 ) ; \n \n - COMMENT \n + COMMENT \n private static List < String > filterElements = DEFAULT_FILE_FILTER ;", "msg_token": "refined filter regex"} {"diff": " public class ClusterEventServiceTest { \n } \n \n @ test \n + @ usingdataset ( loadStrategy = LoadStrategyEnum . DELETE_ALL ) \n public void testRun ( ) throws Exception { \n DBObject event = new BasicDBObjectBuilder ( ) \n . add ( STRING0 , STRING1 )", "msg_token": "Add missing UsingDataSet annotation to ClusterEventServiceTest testRun"} {"diff": " public class Counter implements Metric , Counting { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void dec ( long n ) { \n count . add ( - n ) ;", "msg_token": "Fix Counter javadoc"} {"diff": " public abstract class Pipe implements IPipe , IDropControlInventory { \n SINGLE \n for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i ) \n nbttagcompound . setBoolean ( STRING0 + i + STRING1 , broadcastSignal [ i ] ) ; \n + nbttagcompound . setBoolean ( STRING2 , broadcastRedstone ) ; \n } \n \n for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i ) \n public abstract class Pipe implements IPipe , IDropControlInventory { \n } \n } \n SINGLE \n - if ( gate != null ) \n + if ( gate != null ) { \n for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i ) \n broadcastSignal [ i ] = nbttagcompound . getBoolean ( STRING0 + i + STRING1 ) ; \n + broadcastRedstone = nbttagcompound . getBoolean ( STRING2 ) ; \n + } \n \n for ( int i = NUMBER0 ; i < NUMBER1 ; ++ i ) \n wireSet [ i ] = nbttagcompound . getBoolean ( STRING3 + i + STRING1 ) ;", "msg_token": "Added persistence for redstone broadcast"} {"diff": " public class ApplicationConfiguration extends CoverageEnabledConfiguration imple \n ext . updateJavaParameters ( ApplicationConfiguration . this , params ) ; \n } \n \n - if ( isCoverageEnabled ( ) ) { \n + if ( ! ( getRunnerSettings ( ) . getData ( ) instanceof DebuggingRunnerData ) && isCoverageEnabled ( ) ) { \n final String coverageFileName = getCoverageFilePath ( ) ; \n final long lastCoverageTime = System . currentTimeMillis ( ) ; \n String name = getName ( ) ; \n public class ApplicationConfiguration extends CoverageEnabledConfiguration imple \n lastCoverageTime , \n ! isMergeWithPreviousResults ( ) \n ) ; \n - ApplicationConfiguration . this . appendCoverageArgument ( params ) ; \n + appendCoverageArgument ( params ) ; \n } \n \n return params ;", "msg_token": "disable code coverage for debug sessions"} {"diff": " public class Matchers { \n SINGLE \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added missing javadoc"} {"diff": " public final class JavassistProxyFactory \n { \n classPool = new ClassPool ( ) ; \n classPool . importPackage ( STRING0 ) ; \n - classPool . appendClassPath ( new LoaderClassPath ( this . getClass ( ) . getClassLoader ( ) ) ) ; \n + classPool . appendClassPath ( new LoaderClassPath ( ClassLoaderUtils . getClassLoader ( ) ) ) ; \n \n try \n {", "msg_token": "Use our cascading ClassLoader"} {"diff": " public class WebView extends AbsoluteLayout \n SINGLE \n rebuildWebTextView ( ) ; \n SINGLE \n - return mWebTextView . onKeyDown ( keyCode , event ) ; \n + if ( inEditingMode ( ) ) { \n + return mWebTextView . onKeyDown ( keyCode , event ) ; \n + } \n } else if ( nativeHasFocusNode ( ) ) { \n SINGLE \n SINGLE", "msg_token": "Fix a null pointer exception caught by the monkey"} {"diff": " public class ShadowAlertDialog extends ShadowDialog { \n return Robolectric . getShadowApplication ( ) . getLatestAlertDialog ( ) ; \n } \n \n - @ override \n - @ implementation \n - public View findViewById ( int viewId ) { \n - return null ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "ShadowAlertDialog uses default findViewById instead of always returning null"} {"diff": " \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - \n + SINGLE \n SINGLE \n \n COMMENT", "msg_token": "Fixed the problem with unclear licensing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class RuntimeMXBeanAttributeHandler extends AbstractPlatformMBeanAttribut \n \n public static RuntimeMXBeanAttributeHandler INSTANCE = new RuntimeMXBeanAttributeHandler ( ) ; \n \n + static final AttributeDefinition OBJECT_NAME = SimpleAttributeDefinitionBuilder . create ( PlatformMBeanConstants . OBJECT_NAME , ModelType . STRING ) \n + . setStorageRuntime ( ) \n + . build ( ) ; \n + \n private RuntimeMXBeanAttributeHandler ( ) { \n \n } \n public class RuntimeMXBeanAttributeHandler extends AbstractPlatformMBeanAttribut \n protected void register ( ManagementResourceRegistration registration ) { \n \n if ( PlatformMBeanUtil . JVM_MAJOR_VERSION > NUMBER0 ) { \n - registration . registerReadOnlyAttribute ( PlatformMBeanConstants . OBJECT_NAME , this , AttributeAccess . Storage . RUNTIME ) ; \n + registration . registerReadOnlyAttribute ( OBJECT_NAME , this ) ; \n } \n \n for ( String attribute : PlatformMBeanConstants . RUNTIME_READ_ATTRIBUTES ) {", "msg_token": "Don t use deprecated api"} {"diff": " public class ShellSpout implements ISpout { \n \n LOG . error ( STRING0 , exception ) ; \n _collector . reportError ( exception ) ; \n + _process . destroy ( ) ; \n System . exit ( NUMBER0 ) ; \n }", "msg_token": "kill subprocess when ShellSpout die called"} {"diff": " public class DBCursorTest extends DatabaseTestCase { \n } \n \n @ test \n - public void testComment ( ) { \n + public void testSettingACommentInsertsCommentIntoProfileCollectionWhenProfilingIsTurnedOn ( ) { \n + SINGLE \n + database . command ( new BasicDBObject ( STRING0 , NUMBER0 ) ) ; \n + String expectedComment = STRING1 ; \n + \n + SINGLE \n DBCursor cursor = new DBCursor ( collection , new BasicDBObject ( ) , new BasicDBObject ( ) , ReadPreference . primary ( ) ) \n - . addSpecial ( STRING2 , STRING1 ) ; \n + . comment ( expectedComment ) ; \n while ( cursor . hasNext ( ) ) { \n cursor . next ( ) ; \n } \n + \n + SINGLE \n + DBCollection profileCollection = database . getCollection ( STRING3 ) ; \n + assertEquals ( NUMBER1 , profileCollection . count ( ) ) ; \n + assertEquals ( expectedComment , ( ( DBObject ) profileCollection . findOne ( ) . get ( STRING4 ) ) . get ( STRING2 ) ) ; \n } \n \n @ test", "msg_token": "Updated the test for query comments so that we can check it s really working"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports in Main java"} {"diff": " public class InputMethodsPanel extends LinearLayout implements StatusBarPanel , \n \n private CharSequence getIMIName ( InputMethodInfo imi ) { \n if ( imi == null ) return null ; \n - return mPackageManager . getApplicationLabel ( imi . getServiceInfo ( ) . applicationInfo ) ; \n + return imi . loadLabel ( mPackageManager ) ; \n } \n \n private CharSequence getSubtypeName ( InputMethodInfo imi , InputMethodSubtype subtype ) {", "msg_token": "Fix the display name in the input method panel on tablet"} {"diff": " public class MessageList \n holder . chip . getBackground ( ) . setAlpha ( message . read ? NUMBER0 : NUMBER1 ) ; \n holder . subject . setTypeface ( null , message . read ? Typeface . NORMAL : Typeface . BOLD ) ; \n \n - int subjectColor = holder . from . getCurrentTextColor ( ) ; SINGLE \n - \n - \n - \n setVisibleWidgetsForListItem ( view , mSelectedWidget ) ; \n SINGLE \n holder . flagged . setTag ( ( Integer ) position ) ; \n public class MessageList \n view . getBackground ( ) . setAlpha ( NUMBER2 ) ; \n } \n \n - holder . subject . setTextColor ( NUMBER3 | subjectColor ) ; \n holder . subject . setText ( message . subject ) ; \n \n holder . from . setText ( message . sender ) ;", "msg_token": "removed now unused subject coloring code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class XsltConfigImpl extends XsltConfig implements PersistentStateComponent < Xslt \n \n try { \n SINGLE \n - ActionManager . getInstance ( ) . getAction ( STRING0 ) . setInjectedContext ( true ) ; \n + final AnAction introduceParameter = ActionManager . getInstance ( ) . getAction ( STRING0 ) ; \n + if ( introduceParameter != null ) { \n + introduceParameter . setInjectedContext ( true ) ; \n + } \n } \n catch ( Exception e ) { \n Logger . getInstance ( XsltConfigImpl . class . getName ( ) ) . error ( e ) ;", "msg_token": "prevent NPE if no action found"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DispatcherHandlerErrorTests { \n \n WebExceptionHandler exceptionHandler = new ServerError500ExceptionHandler ( ) ; \n WebHandler webHandler = new ExceptionHandlingWebHandler ( this . dispatcherHandler , exceptionHandler ) ; \n - Mono < Void > publisher = webHandler . handle ( this . exchange ) ; \n - \n - TestSubscriber . subscribe ( publisher ) \n - . assertErrorWith ( ex - > assertEquals ( \n - HttpStatus . INTERNAL_SERVER_ERROR , this . exchange . getResponse ( ) . getStatusCode ( ) ) ) ; \n + webHandler . handle ( this . exchange ) . block ( Duration . ofSeconds ( NUMBER0 ) ) ; \n \n + assertEquals ( HttpStatus . INTERNAL_SERVER_ERROR , this . exchange . getResponse ( ) . getStatusCode ( ) ) ; \n }", "msg_token": "Fix failing test"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n class ProxyThread implements Runnable { \n } \n msg . setResponseBody ( sb . toString ( ) ) ; \n msg . getResponseHeader ( ) . setHeader ( HttpHeader . CONTENT_ENCODING , null ) ; \n + msg . getResponseHeader ( ) . setHeader ( HttpHeader . CONTENT_LENGTH , Integer . toString ( sb . length ( ) ) ) ; \n } catch ( IOException e ) { \n log . error ( STRING0 + e . getMessage ( ) , e ) ; \n }", "msg_token": "Proxy gzip decoder doesn t update content length in response headers"} {"diff": " public class CountAggregation \n return ; \n } \n \n - SINGLE \n - if ( SINGLE_LONG . isNull ( valueSlice , valueOffset , NUMBER0 ) ) { \n - valueSlice . clear ( valueOffset , SINGLE_LONG . getFixedSize ( ) ) ; \n - } \n - \n SINGLE \n long currentValue = SINGLE_LONG . getLong ( valueSlice , valueOffset , NUMBER0 ) ; \n long newValue = cursor . getLong ( NUMBER0 ) ;", "msg_token": "Remove unnecessary clear in count aggregation"} {"diff": " public class EViewGroupProcessor extends AnnotationHelper implements ElementProc \n } \n \n holder . eBean = codeModel . _class ( modifiers , generatedBeanQualifiedName , ClassType . CLASS ) ; \n - \n JClass eBeanClass = codeModel . directClass ( eBeanQualifiedName ) ; \n \n holder . eBean . _extends ( eBeanClass ) ; \n \n holder . eBean . annotate ( SuppressWarnings . class ) . param ( STRING0 , STRING1 ) ; \n + holder . eBean . javadoc ( ) . append ( SINGLE \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 ) ; \n \n { \n SINGLE", "msg_token": "Added some comments"} {"diff": " public class IncomingStreamReader \n { \n long toRead = Math . min ( FileStreamTask . CHUNK_SIZE , length - bytesRead ) ; \n long lastRead = fc . transferFrom ( socketChannel , offset + bytesRead , toRead ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( lastRead == NUMBER0 ) \n + throw new IOException ( STRING0 + remoteFile ) ; \n bytesRead += lastRead ; \n remoteFile . progress += lastRead ; \n }", "msg_token": "Better detect failure during streaming always cleaning up tmp files as a consequence"} {"diff": " public class BootReceiver extends BroadcastReceiver { \n SINGLE \n Intent xInstallerIntent = context . getPackageManager ( ) . getLaunchIntentForPackage ( \n STRING0 ) ; \n - xInstallerIntent . putExtra ( STRING1 , NUMBER0 ) ; \n + if ( xInstallerIntent != null ) \n + xInstallerIntent . putExtra ( STRING1 , NUMBER0 ) ; \n \n PendingIntent pi = ( xInstallerIntent == null ? null : PendingIntent . getActivity ( context , NUMBER1 , \n xInstallerIntent , PendingIntent . FLAG_UPDATE_CURRENT ) ) ;", "msg_token": "Fix null pointer in boot receiver"} {"diff": " public final class SleepingTimer implements HeartbeatTimer { \n COMMENT \n COMMENT \n public void tick ( ) throws InterruptedException { \n - long currentTickMs = System . currentTimeMillis ( ) ; \n - long executionTimeMs = currentTickMs - mPreviousTickMs ; \n - if ( executionTimeMs > mIntervalMs ) { \n + long executionTimeMs = System . currentTimeMillis ( ) - mPreviousTickMs ; \n + if ( mPreviousTickMs != NUMBER0 && executionTimeMs > mIntervalMs ) { \n LOG . warn ( mThreadName + STRING0 + executionTimeMs \n + STRING1 + mIntervalMs ) ; \n } else { \n Thread . sleep ( mIntervalMs - executionTimeMs ) ; \n } \n - mPreviousTickMs = currentTickMs ; \n + mPreviousTickMs = System . currentTimeMillis ( ) ; \n } \n }", "msg_token": "Fixing interval computation in SleepingTimer"} {"diff": " public final class Futures { \n } \n } \n } \n - \n } \n \n COMMENT", "msg_token": "Remove the callAllGets feature of CombinedFuture"} {"diff": " public class Common implements Comparator < File > , Runnable , OnClickListener , OnLo \n int first = lv . getFirstVisiblePosition ( ) ; \n int last = lv . getLastVisiblePosition ( ) ; \n \n - AQUtility . debug ( first , last ) ; \n + SINGLE \n \n int count = last - first ; \n \n public class Common implements Comparator < File > , Runnable , OnClickListener , OnLo \n View convertView = lv . getChildAt ( i ) ; \n Number targetPacked = ( Number ) convertView . getTag ( AQuery . TAG_NUM ) ; \n \n - AQUtility . debug ( STRING0 , targetPacked ) ; \n + SINGLE \n \n SINGLE \n if ( targetPacked != null ) { \n la . getView ( ( int ) packed , convertView , lv ) ; \n convertView . setTag ( AQuery . TAG_NUM , null ) ; \n } else { \n - AQUtility . debug ( STRING1 ) ; \n + SINGLE \n } \n \n }", "msg_token": "Remove debugging log"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BytecodeAnalysisIndex extends FileBasedIndexExtension < Bytes , HEquat \n private static final HKeyDescriptor KEY_DESCRIPTOR = new HKeyDescriptor ( ) ; \n \n private static final int ourInternalVersion = NUMBER0 ; \n - private static boolean ourEnabled = SystemProperties . getBooleanProperty ( STRING0 , isEnabledByDefault ( ) ) ; \n - \n - private static boolean isEnabledByDefault ( ) { \n - Application application = ApplicationManager . getApplication ( ) ; \n - return application . isInternal ( ) || application . isUnitTestMode ( ) ; \n - } \n + private static boolean ourEnabled = SystemProperties . getBooleanProperty ( STRING0 , true ) ; \n \n @ notnull \n @ override", "msg_token": "enable bytecode analysis"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class EWMA { \n private static final double M1_ALPHA = NUMBER0 - exp ( - NUMBER1 / FLOAT0 ) ;", "msg_token": "De derp my Javadocs"} {"diff": " public class AccountManagerService \n if ( account == null ) throw new IllegalArgumentException ( STRING0 ) ; \n checkManageAccountsPermission ( ) ; \n long identityToken = clearCallingIdentity ( ) ; \n + \n + cancelNotification ( getSigninRequiredNotificationId ( account ) ) ; \n + synchronized ( mCredentialsPermissionNotificationIds ) { \n + for ( Pair < Pair < Account , String > , Integer > pair : \n + mCredentialsPermissionNotificationIds . keySet ( ) ) { \n + if ( account . equals ( pair . first . first ) ) { \n + int id = mCredentialsPermissionNotificationIds . get ( pair ) ; \n + cancelNotification ( id ) ; \n + } \n + } \n + } \n + \n try { \n new RemoveAccountSession ( response , account ) . bind ( ) ; \n } finally {", "msg_token": "Remove notifications for account when account is removed"} {"diff": " public class DataStructures { \n private static Integer [ ] unsorted = null ; \n private static String string = null ; \n \n - private static int debug = NUMBER0 ; SINGLE \n + private static int debug = NUMBER1 ; SINGLE \n private static boolean debugTime = true ; SINGLE \n private static boolean debugMemory = true ; SINGLE \n private static boolean validateStructure = true ; SINGLE \n - private static boolean validateContents = false ; SINGLE \n + private static boolean validateContents = true ; SINGLE \n \n private static final int TESTS = NUMBER2 ; SINGLE \n private static int test = NUMBER0 ;", "msg_token": "Changed some default values for testing"} {"diff": " public class RepoLoader { \n private final List < String > mMessages = new LinkedList < String > ( ) ; \n private final List < RepoListener > mListeners = new CopyOnWriteArrayList < RepoListener > ( ) ; \n \n - private RepoLoader ( ) { } \n + private RepoLoader ( Application app ) { \n + mApp = app ; \n + mPref = mApp . getSharedPreferences ( STRING0 , Context . MODE_PRIVATE ) ; \n + triggerReload ( ) ; \n + } \n \n COMMENT \n public static void init ( Application app ) { \n if ( mInstance != null ) \n throw new IllegalStateException ( STRING1 ) ; \n \n - mInstance = new RepoLoader ( ) ; \n - mInstance . mApp = app ; \n - mInstance . mPref = app . getSharedPreferences ( STRING0 , Context . MODE_PRIVATE ) ; \n - mInstance . triggerReload ( ) ; \n + mInstance = new RepoLoader ( app ) ; \n } \n \n public static RepoLoader getInstance ( ) {", "msg_token": "refactored RepoLoader constructor"} {"diff": " public class ReactWebViewManager extends SimpleViewManager < WebView > { \n \n static { \n if ( ReactBuildConfig . DEBUG && Build . VERSION . SDK_INT >= Build . VERSION_CODES . KITKAT ) { \n - WebView . setWebContentsDebuggingEnabled ( true ) ; \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "disable debugging of web views"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Do not fully qualify type in javadoc"} {"diff": " public final class Preconditions { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void checkArgument ( \n + boolean expression , @ nullable String errorMessageTemplate , int arg0 ) { \n + if ( ! expression ) { \n + com . google . common . base . Preconditions . checkArgument ( false , errorMessageTemplate , arg0 ) ; \n + } \n + } \n + \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add variant of Preconditions checkArgument that takes int placeholder"} {"diff": " public abstract class Slf4jNoBindingDetector { \n } catch ( ClassNotFoundException e ) { \n System . err . println ( \n STRING0 + System . lineSeparator ( ) \n - + STRING1 \n + + STRING1 + System . lineSeparator ( ) \n + + STRING2 \n ) ; \n return false ; \n }", "msg_token": "Add link to logging section of manual"} {"diff": " public class PlanGenerator { \n PackedCoordinateSequence coordinates = profileSegment . getElevationProfile ( ) ; \n \n if ( coordinates == null ) continue ; \n + SINGLE \n if ( coordinates . getDimension ( ) != NUMBER0 ) continue ; \n \n for ( int i = NUMBER1 ; i < coordinates . size ( ) - NUMBER2 ; i ++ ) {", "msg_token": "Add TODO comment in spurrious tests to check"} {"diff": " public final class TvInputManagerService extends SystemService { \n SINGLE \n UserState userState = getUserStateLocked ( mUserId ) ; \n for ( SessionState sessionState : userState . sessionStateMap . values ( ) ) { \n - if ( mSession != null && mSession == sessionState . mHardwareSessionToken ) { \n + if ( mSessionToken == sessionState . mHardwareSessionToken ) { \n try { \n sessionState . mSession . release ( ) ; \n } catch ( RemoteException e ) {", "msg_token": "Fix release logic for hardware wrapper input"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class WebApplicationExceptionMapper implements ExtendedExceptionMapper < We \n \n @ override \n public Response toResponse ( WebApplicationException exception ) { \n - return Response . fromResponse ( exception . getResponse ( ) ) . entity ( exception . getMessage ( ) ) . build ( ) ; \n + return Response . fromResponse ( exception . getResponse ( ) ) . type ( MediaType . TEXT_PLAIN_TYPE ) . entity ( exception . getMessage ( ) ) . build ( ) ; \n } \n }", "msg_token": "Setting Content Type for exceptions to text plain for now"} {"diff": " public class SiteNode extends DefaultMutableTreeNode { \n SINGLE \n if ( ! this . icons . isEmpty ( ) && historyReference . getHistoryType ( ) == HistoryReference . TYPE_MANUAL ) { \n for ( int i = NUMBER0 ; i < this . clearIfManual . size ( ) ; ++ i ) { \n - if ( this . clearIfManual . get ( i ) == true && this . icons . size ( ) > i ) { \n + if ( this . clearIfManual . get ( i ) && this . icons . size ( ) > i ) { \n this . icons . remove ( i ) ; \n this . clearIfManual . remove ( i ) ; \n }", "msg_token": "Simplified conditional expressions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class OneOfProviderFactory { \n public OneOfProviderFactory ( ) { \n } \n \n - public void register ( String name , Binding < ? > binding ) { \n + public < T > void register ( String name , Binding < List < T > > binding ) { \n register ( name , binding , null ) ; \n } \n \n - public void register ( String name , Binding < ? > binding , ItemRenderer < ? > itemRenderer ) { \n + public < T > void register ( String name , Binding < List < T > > binding , ItemRenderer < T > itemRenderer ) { \n provider . put ( name , binding ) ; \n itemRenderers . put ( name , itemRenderer ) ; \n }", "msg_token": "fixed weird warning"} {"diff": " public class FloatingActionButton extends ImageButton { \n @ suppresslint ( STRING0 ) \n private void setBackgroundCompat ( Drawable drawable ) { \n if ( hasLollipopApi ( ) ) { \n - setElevation ( mShadow ? getDimension ( R . dimen . fab_elevation_lollipop ) : FLOAT0 ) ; \n + float elevation ; \n + if ( mShadow ) { \n + elevation = getElevation ( ) > FLOAT0 ? getElevation ( ) \n + : getDimension ( R . dimen . fab_elevation_lollipop ) ; \n + } else { \n + elevation = FLOAT0 ; \n + } \n + setElevation ( elevation ) ; \n RippleDrawable rippleDrawable = new RippleDrawable ( new ColorStateList ( new int [ ] [ ] { { } } , \n new int [ ] { mColorRipple } ) , drawable , null ) ; \n setOutlineProvider ( new ViewOutlineProvider ( ) {", "msg_token": "Respect an elevation set for the FAB"} {"diff": " public class ZWaveNode { \n @ xstreamomitfield \n private ZWaveNodeStageAdvancer nodeStageAdvancer ; \n \n - private int homeId ; \n - private int nodeId ; \n + @ xstreamconverter ( HexToIntegerConverter . class ) \n + private int homeId = Integer . MAX_VALUE ; \n + private int nodeId = Integer . MAX_VALUE ; \n private int version = Integer . MAX_VALUE ; \n \n private String name ; \n private String location ; \n - \n + \n @ xstreamconverter ( HexToIntegerConverter . class ) \n private int manufacturer = Integer . MAX_VALUE ; \n @ xstreamconverter ( HexToIntegerConverter . class )", "msg_token": "Write homeID as hex to avoid negative integers"} {"diff": " public class ChunkOutputUi \n public final static int CHUNK_COLLAPSED_HEIGHT = NUMBER0 ; \n public final static int MAX_CHUNK_HEIGHT = NUMBER1 ; \n \n - public final static int MAX_PLOT_WIDTH = NUMBER1 ; \n + public final static int MIN_PLOT_WIDTH = NUMBER2 ; \n + public final static int MAX_PLOT_WIDTH = NUMBER3 ; \n public final static int MAX_HTMLWIDGET_WIDTH = NUMBER4 ; \n \n public final static double OUTPUT_ASPECT = FLOAT0 ; \n public class TextEditingTargetNotebook \n SINGLE \n SINGLE \n SINGLE \n - return Math . min ( docDisplay_ . getPixelWidth ( ) - NUMBER5 , \n + return Math . min ( Math . max ( docDisplay_ . getPixelWidth ( ) - NUMBER5 , \n + ChunkOutputUi . MIN_PLOT_WIDTH ) , \n ChunkOutputUi . MAX_PLOT_WIDTH ) ; \n }", "msg_token": "apply floor to rendered notebook plot size reduce figure margin errors"} {"diff": " public class PyPackageRequirementsInspection extends PyInspection { \n } \n } \n registerProblem ( packageReferenceExpression , String . format ( STRING0 , packageName ) , \n - ProblemHighlightType . GENERIC_ERROR_OR_WARNING , null , \n + ProblemHighlightType . WEAK_WARNING , null , \n new AddToRequirementsFix ( module , packageName , LanguageLevel . forElement ( importedExpression ) ) , \n new IgnoreRequirementFix ( Collections . singleton ( packageName ) ) ) ; \n }", "msg_token": "Changed problem highlighting of unspecified package requirement to weak warning"} {"diff": " public class RexsterTitanServer { \n Preconditions . checkNotNull ( rexsterConfig ) ; \n Preconditions . checkNotNull ( titanConfig ) ; \n \n - SINGLE \n - if ( ! rexsterConfig . subset ( STRING0 ) . getKeys ( ) . hasNext ( ) ) { \n - rexsterConfig . addProperty ( STRING1 , STRING2 ) ; \n - } \n - \n server = new RexProRexsterServer ( rexsterConfig ) ; \n this . rexsterConfig = rexsterConfig ; \n this . titanConfig = titanConfig ;", "msg_token": "Removed code that formerly prevented errors if rexster xml did not have security configured"} {"diff": " public class CombinerNode extends OptimizerNode { \n @ override \n public void deriveOutputSchema ( ) { \n SINGLE \n - SINGLE \n } \n \n }", "msg_token": "removed unnecessary TODO flag in CombinerNode"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "fixing unused import"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n mPendingCheckForTap = new CheckForTap ( ) ; \n } \n mPrivateFlags |= PREPRESSED ; \n + mHasPerformedLongPress = false ; \n postDelayed ( mPendingCheckForTap , ViewConfiguration . getTapTimeout ( ) ) ; \n break ;", "msg_token": "Fix tap detection after a long press"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n ) } \n ) \n public class CompilerWorkspaceConfiguration implements PersistentStateComponent < CompilerWorkspaceConfiguration > { \n + private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n + \n public static final int DEFAULT_COMPILE_PROCESS_HEAP_SIZE = NUMBER0 ; \n public static final String DEFAULT_COMPILE_PROCESS_VM_OPTIONS = STRING1 ; \n private static final int CORES_COUNT = Runtime . getRuntime ( ) . availableProcessors ( ) ; \n + static { \n + LOG . info ( STRING2 + CORES_COUNT ) ; \n + } \n \n public boolean AUTO_SHOW_ERRORS_IN_EDITOR = true ; \n @ deprecated public boolean CLOSE_MESSAGE_VIEW_IF_SUCCESS = true ;", "msg_token": "logging processor count"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "Java Removed unused import"} {"diff": " public class FloatingActionButton extends ImageButton { \n if ( ! hasLollipopApi ( ) && ! mMarginsSet ) { \n if ( getLayoutParams ( ) instanceof ViewGroup . MarginLayoutParams ) { \n ViewGroup . MarginLayoutParams layoutParams = ( ViewGroup . MarginLayoutParams ) getLayoutParams ( ) ; \n - int leftMargin = Math . max ( layoutParams . leftMargin - mShadowSize , NUMBER0 ) ; \n - int topMargin = Math . max ( layoutParams . topMargin - mShadowSize , NUMBER0 ) ; \n - int rightMargin = Math . max ( layoutParams . rightMargin - mShadowSize , NUMBER0 ) ; \n - int bottomMargin = Math . max ( layoutParams . bottomMargin - mShadowSize , NUMBER0 ) ; \n + int leftMargin = layoutParams . leftMargin - mShadowSize ; \n + int topMargin = layoutParams . topMargin - mShadowSize ; \n + int rightMargin = layoutParams . rightMargin - mShadowSize ; \n + int bottomMargin = layoutParams . bottomMargin - mShadowSize ; \n layoutParams . setMargins ( leftMargin , topMargin , rightMargin , bottomMargin ) ; \n \n setLayoutParams ( layoutParams ) ;", "msg_token": "Fix negative margins on pre Lollipop"} {"diff": " public class DribbbleSearch { \n . setTitle ( descriptionBlock . select ( STRING0 ) . first ( ) . text ( ) ) \n . setDescription ( description ) \n . setImages ( new Images ( null , imgUrl , null ) ) \n + . setAnimated ( element . select ( STRING1 ) . first ( ) != null ) \n . setCreatedAt ( createdAt ) \n . setLikesCount ( Long . parseLong ( element . select ( STRING2 ) . first ( ) . child ( NUMBER0 ) . text ( ) \n . replaceAll ( STRING3 , STRING4 ) ) )", "msg_token": "Fixed gif badges in search results"} {"diff": " public class APTCodeModelHelper { \n if ( bound == null ) { \n bound = wildcardType . getSuperBound ( ) ; \n if ( bound == null ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + return holder . classes ( ) . OBJECT . wildcard ( ) ; \n } \n return superWildcard ( typeMirrorToJClass ( bound , holder ) ) ; \n } \n public class APTCodeModelHelper { \n JMethod method = holder . getGeneratedClass ( ) . method ( JMod . PUBLIC , returnType , methodName ) ; \n method . annotate ( Override . class ) ; \n \n - System . out . println ( executableType . getTypeVariables ( ) ) ; \n for ( TypeVariable typeParameter : executableType . getTypeVariables ( ) ) { \n TypeMirror bound = typeParameter . getUpperBound ( ) ; \n JClass jClassBounds = typeMirrorToJClass ( bound , holder ) ;", "msg_token": "removed debug info"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class FacetBasedFrameworkDetector < F extends Facet , C extends FacetConfiguration > extends FrameworkDetector { \n - public FacetBasedFrameworkDetector ( String detectorId ) { \n + protected FacetBasedFrameworkDetector ( String detectorId ) { \n super ( detectorId ) ; \n } \n \n + protected FacetBasedFrameworkDetector ( @ notnull String detectorId , int detectorVersion ) { \n + super ( detectorId , detectorVersion ) ; \n + } \n + \n public abstract FacetType < F , C > getFacetType ( ) ; \n \n COMMENT", "msg_token": "add missing overloaded CTOR"} {"diff": " public static Object compile ( Reader rdr , String sourcePath , String sourceName ) t \n null , \n cv ) ; \n maingen . visitCode ( ) ; \n + maingen . push ( fn . internalName ) ; \n + maingen . push ( true ) ; \n + maingen . invokeStatic ( RT_TYPE , Method . getMethod ( STRING0 ) ) ; \n maingen . push ( fn . internalName . replace ( STRING1 , STRING2 ) ) ; \n maingen . push ( STRING3 ) ; \n maingen . invokeStatic ( RT_TYPE , Method . getMethod ( STRING4 ) ) ;", "msg_token": "added load to AOT generated main"} {"diff": " class IonDrawable extends Drawable { \n private WeakReference < IonDrawable > ionDrawableRef ; \n private WeakReference < ImageView > imageViewRef ; \n private String bitmapKey ; \n - private String parentKey ; \n private SimpleFuture < ImageView > imageViewFuture = new SimpleFuture < ImageView > ( ) ; \n private Animation inAnimation ; \n private int inAnimationResource ;", "msg_token": "remove parentKey cruft"} {"diff": " public class LocalSearch implements SearchSpecification { \n COMMENT \n COMMENT \n public String getName ( ) { \n - return mName ; \n + return ( mName == null ? STRING0 : mName ) ; \n } \n \n COMMENT", "msg_token": "Avoid needless nullpointers"} {"diff": " public abstract class GwtApplication implements EntryPoint , Application { \n public void run ( ) { \n if ( SoundManager . ok ( ) ) { \n final PreloaderCallback callback = getPreloaderCallback ( ) ; \n - preloader = new Preloader ( ) ; \n + preloader = createPreloader ( ) ; \n preloader . preload ( STRING0 , new PreloaderCallback ( ) { \n @ override \n public void error ( String file ) { \n public abstract class GwtApplication implements EntryPoint , Application { \n \n long loadStart = TimeUtils . nanoTime ( ) ; \n \n + public Preloader createPreloader ( ) { \n + return new Preloader ( ) ; \n + } \n + \n public PreloaderCallback getPreloaderCallback ( ) { \n final Panel preloaderPanel = new VerticalPanel ( ) ; \n preloaderPanel . setStyleName ( STRING1 ) ;", "msg_token": "Add ability to provide a custom Preloader"} {"diff": " public class OStorageRemote extends OStorageAbstract implements OStorageProxy { \n do { \n OChannelBinaryAsynchClient network = null ; \n String serverUrl = getNextAvailableServerURL ( false , session ) ; \n - try { \n - network = getNetwork ( serverUrl ) ; \n - } catch ( OException e ) { \n - serverUrl = useNewServerURL ( serverUrl ) ; \n - if ( serverUrl == null ) \n - throw e ; \n - } \n + do { \n + try { \n + network = getNetwork ( serverUrl ) ; \n + } catch ( OException e ) { \n + serverUrl = useNewServerURL ( serverUrl ) ; \n + if ( serverUrl == null ) \n + throw e ; \n + } \n + } while ( network == null ) ; \n \n try { \n SINGLE", "msg_token": "fixed retry in case of an offline server"} {"diff": " public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea \n return q ; \n } \n \n + SINGLE \n + @ override public void delete ( ) { \n + delete_xval_models ( ) ; \n + delete_best_model ( ) ; \n + super . delete ( ) ; \n + } \n + \n SINGLE \n private void putMeAsBestModel ( Key bestModelKey ) { \n DeepLearningModel bestModel = new DeepLearningModel ( bestModelKey , this , true , model_info ( ) . data_info ( ) ) ;", "msg_token": "For now let model delete of DL delete its best models too"} {"diff": " public class AnnotationsToHTML implements GraphBuilderModule { \n while ( currentCount <= htmlAnnotationClass . getCount ( ) ) { \n label = label_name + currentCount ; \n if ( label . equals ( annotationClassName ) ) { \n - println ( STRING0 + label + STRING1 ) ; \n + println ( String . format ( STRING2 , \n + label_name . toLowerCase ( ) , label ) ) ; \n } else { \n - println ( STRING3 + label + STRING4 + label + STRING5 ) ; \n + println ( String . format ( STRING6 , \n + label_name . toLowerCase ( ) , label , label ) ) ; \n } \n currentCount ++ ; \n }", "msg_token": "Make nicer list of files in HTML annotations"} {"diff": " public class DataInfo extends Keyed { \n } \n SINGLE \n for ( int cid = NUMBER0 ; cid < _nums ; ++ cid ) { \n - Chunk c = chunks [ _cats + _nums + cid ] ; \n + Chunk c = chunks [ _cats + cid ] ; \n for ( int r = c . nextNZ ( - NUMBER1 ) ; r < c . _len ; r = c . nextNZ ( r ) ) { \n Row row = rows [ r ] ; \n if ( c . isNA ( r ) ) row . good = _skipMissing ;", "msg_token": "Fix AIOOB in DataInfo sparse row extraction"} {"diff": " public class EncodedArrayPool { \n \n @ nullable \n public static Key of ( @ nonnull ClassDef classDef ) { \n - Set < ? extends Field > staticFields = FluentIterable . from ( classDef . getFields ( ) ) . filter ( IS_STATIC_FIELD ) . toSet ( ) ; \n - Iterable < ? extends Field > staticFieldsSorted = FluentIterable . from ( staticFields ) . toSortedSet ( new FieldComparator ( ) ) ; \n + Set < ? extends Field > staticFieldsSorted = FluentIterable . from ( classDef . getFields ( ) ) \n + . filter ( IS_STATIC_FIELD ) \n + . toSortedSet ( new FieldComparator ( ) ) ; \n \n int lastIndex = CollectionUtils . lastIndexOf ( staticFieldsSorted , HAS_INITIALIZER ) ; \n if ( lastIndex > - NUMBER0 ) { \n - return new Key ( staticFields , lastIndex + NUMBER0 ) ; \n + return new Key ( staticFieldsSorted , lastIndex + NUMBER0 ) ; \n } \n return null ; \n }", "msg_token": "Using sorted static field set in EncodedArrayPool Key"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix code snippet"} {"diff": " public abstract class LeafElement extends TreeElement { \n public abstract int copyTo ( char [ ] buffer , int start ) ; \n \n protected LeafElement ( IElementType type ) { \n - myState = myState | type . getIndex ( ) ; \n + myState = type != null ? type . getIndex ( ) : NUMBER0 ; \n } \n \n public final LeafElement findLeafElementAt ( int offset ) {", "msg_token": "Fixing failing tests"} {"diff": " static class RecurExpr implements Expr { \n IPersistentVector loopLocals = ( IPersistentVector ) LOOP_LOCALS . get ( ) ; \n if ( context != C . RETURN || loopLocals == null ) \n throw new UnsupportedOperationException ( STRING0 ) ; \n + if ( IN_CATCH_FINALLY . get ( ) != null ) \n + throw new UnsupportedOperationException ( STRING1 ) ; \n PersistentVector args = PersistentVector . EMPTY ; \n for ( ISeq s = RT . seq ( form . rest ( ) ) ; s != null ; s = s . rest ( ) ) \n {", "msg_token": "disallow recur from catch finally"} {"diff": " public class ParticleEmitter { \n \n updateFlags = NUMBER0 ; \n if ( angleValue . active && angleValue . timeline . length > NUMBER1 ) updateFlags |= UPDATE_ANGLE ; \n - if ( velocityValue . active && velocityValue . active ) updateFlags |= UPDATE_VELOCITY ; \n + if ( velocityValue . active ) updateFlags |= UPDATE_VELOCITY ; \n if ( scaleValue . timeline . length > NUMBER1 ) updateFlags |= UPDATE_SCALE ; \n if ( rotationValue . active && rotationValue . timeline . length > NUMBER1 ) updateFlags |= UPDATE_ROTATION ; \n if ( windValue . active ) updateFlags |= UPDATE_WIND ;", "msg_token": "Removed repeated conditional check"} {"diff": " public interface LoadingCache < K , V > extends Cache < K , V > , Function < K , V > { \n ImmutableMap < K , V > getAll ( Iterable < ? extends K > keys ) throws ExecutionException ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n @ override \n V apply ( K key ) ;", "msg_token": "Deprecate implementations of Function apply that should never be invoked directly"} {"diff": " public class GifDrawable extends Drawable implements Animatable \n @ override \n public String toString ( ) \n { \n - return String . format ( Locale . US , STRING0 , mMetaData [ NUMBER0 ] , mMetaData [ NUMBER1 ] , mMetaData [ NUMBER2 ] ) ; \n + return String . format ( Locale . US , STRING1 , mMetaData [ NUMBER2 ] , mMetaData [ NUMBER0 ] , mMetaData [ NUMBER1 ] , mMetaData [ NUMBER3 ] ) ; \n } \n \n COMMENT", "msg_token": "Fixed GifDrawable s toString method"} {"diff": " public class AnnotationSetItem extends Item < AnnotationSetItem > { \n COMMENT \n COMMENT \n public static AnnotationSetItem internAnnotationSetItem ( DexFile dexFile , List < AnnotationItem > annotations ) { \n - AnnotationItem [ ] annotationsArray = new AnnotationItem [ annotations . size ( ) ] ; \n - annotations . toArray ( annotationsArray ) ; \n - AnnotationSetItem annotationSetItem = new AnnotationSetItem ( dexFile , annotationsArray ) ; \n + AnnotationSetItem annotationSetItem ; \n + if ( annotations == null ) { \n + annotationSetItem = new AnnotationSetItem ( dexFile , new AnnotationItem [ NUMBER0 ] ) ; \n + } else { \n + AnnotationItem [ ] annotationsArray = new AnnotationItem [ annotations . size ( ) ] ; \n + annotations . toArray ( annotationsArray ) ; \n + annotationSetItem = new AnnotationSetItem ( dexFile , annotationsArray ) ; \n + } \n return dexFile . AnnotationSetsSection . intern ( annotationSetItem ) ; \n }", "msg_token": "Fix an issue when assembling a file with blank annotation sets"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ChunkSpeedTest extends TestUtil { \n final double [ ] [ ] raw = new double [ cols ] [ rows ] ; \n Chunk [ ] chunks = new Chunk [ cols ] ; \n \n + @ ignore \n @ test \n public void run ( ) { \n for ( int j = NUMBER0 ; j < cols ; ++ j ) {", "msg_token": "Ignore currently broken JUnit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class SpongePlayer extends AbstractPlayerActor { \n @ override \n public void printRaw ( String msg ) { \n for ( String part : msg . split ( STRING0 ) ) { \n - this . player . sendMessage ( Text . of ( part ) ) ; \n + this . player . sendMessage ( TextSerializers . LEGACY_FORMATTING_CODE . deserialize ( part ) ) ; \n } \n }", "msg_token": "Corrected some issues with sending raw messages on the Sponge platform"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class ClassDependencyInfo implements Serializable { \n + public class ClassDependencyInfo implements Serializable { SINGLE \n \n private final Map < String , ? extends DependentsSet > dependents ;", "msg_token": "Added a TODO"} {"diff": " final class PersistFS extends Persist { \n PersistFS ( File root ) { \n _root = root ; \n _dir = new File ( root , STRING0 + H2O . API_PORT ) ; \n - deleteRecursive ( _dir ) ; \n + SINGLE \n SINGLE \n root . mkdirs ( ) ; \n if ( ! ( root . isDirectory ( ) && root . canRead ( ) && root . canWrite ( ) ) )", "msg_token": "Revert Re enable ice dir cleanup on startup"} {"diff": " public class CountDownLatchTest extends HazelcastTestSupport { \n } \n \n @ test \n - public void testAwait_whenInstanceShutdown_thenLatchOpened ( ) throws InterruptedException { \n + public void testAwait_whenInstanceShutdown_thenHazelcastInstanceNotActiveException ( ) throws InterruptedException { \n HazelcastInstance instance = createHazelcastInstance ( ) ; \n final ICountDownLatch latch = instance . getCountDownLatch ( randomString ( ) ) ; \n latch . trySetCount ( NUMBER0 ) ;", "msg_token": "Renamed test method"} {"diff": " public abstract class MultithreadEventLoop extends MultithreadEventExecutor impl \n } \n \n @ override \n - protected abstract EventExecutor newChild ( ThreadFactory threadFactory , Object . . . args ) throws Exception ; \n - \n - @ override \n public ChannelFuture register ( Channel channel ) { \n return ( ( EventLoop ) unsafe ( ) . nextChild ( ) ) . register ( channel ) ; \n }", "msg_token": "Remove a redundant method declaration"} {"diff": " public class ExtractorSampleSource implements SampleSource , ExtractorOutput , Loa \n loader . cancelLoading ( ) ; \n } else { \n clearState ( ) ; \n + bufferPool . trim ( NUMBER0 ) ; \n } \n } \n } \n public class ExtractorSampleSource implements SampleSource , ExtractorOutput , Loa \n restartFrom ( pendingResetPositionUs ) ; \n } else { \n clearState ( ) ; \n + bufferPool . trim ( NUMBER0 ) ; \n } \n }", "msg_token": "Trim memory when disabling ExtractorSampleSource"} {"diff": " import NAMESPACE ; \n class FetchTargetNodeToBuildRuleTransformer implements TargetNodeToBuildRuleTransformer { \n \n private final ImmutableSet < Description < ? > > descriptions ; \n - SINGLE \n + SINGLE \n private final ImmutableSet . Builder < BuildTarget > downloadableTargets ; \n private final DefaultTargetNodeToBuildRuleTransformer delegate ;", "msg_token": "Remove task from TODO"} {"diff": " public class GraphServiceImpl implements GraphService { \n LOG . warn ( STRING0 ) ; \n return null ; \n } else { \n - String fileName = pathPattern . replace ( STRING1 , routerId ) ; \n - return new File ( fileName . concat ( STRING2 ) ) ; \n + String path = pathPattern . replace ( STRING1 , routerId ) ; \n + return new File ( path , STRING3 ) ; \n } \n }", "msg_token": "use clearer File constructor change identifiers"} {"diff": " public abstract class BaseStatusBar extends SystemUI implements \n settingsButton . setVisibility ( View . GONE ) ; \n } \n \n + guts . bindImportance ( pmUser , sbn , row , mNotificationData . getImportance ( sbn . getKey ( ) ) ) ; \n row . findViewById ( R . id . done ) . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View v ) { \n public abstract class BaseStatusBar extends SystemUI implements \n } \n } \n } ) ; \n - guts . bindImportance ( pmUser , sbn , row , mNotificationData . getImportance ( sbn . getKey ( ) ) ) ; \n } \n \n private void saveImportanceCloseControls ( StatusBarNotification sbn ,", "msg_token": "Don t reference variables before they are assigned"} {"diff": " public class ReaderPostListFragment extends Fragment \n getPostAdapter ( ) . setCurrentTag ( tagName ) ; \n hideNewPostsBar ( ) ; \n updateTagPreviewHeader ( ) ; \n + hideLoadingProgress ( ) ; \n \n SINGLE \n if ( ReaderTagTable . shouldAutoUpdateTag ( tagName ) ) {", "msg_token": "Fixed bug that caused loading progress to continue to show at bottom left of the screen after switching tags"} {"diff": " public class ScatterData { \n \n \n public long getOldestAcceptedTime ( ) { \n + if ( oldestAcceptedTime == Long . MAX_VALUE ) { \n + return - NUMBER0 ; \n + } \n return oldestAcceptedTime ; \n } \n \n public long getLatestAcceptedTime ( ) { \n + if ( latestAcceptedTime == Long . MIN_VALUE ) { \n + return - NUMBER0 ; \n + } \n return latestAcceptedTime ; \n }", "msg_token": "Add method that get scatter data made of dot group"} {"diff": " public final class Trace { \n public static final long TRACE_TAG_APP = NUMBER0 < < NUMBER1 ; \n COMMENT \n public static final long TRACE_TAG_RESOURCES = NUMBER0 < < NUMBER2 ; \n + COMMENT \n + public static final long TRACE_TAG_DALVIK = NUMBER0 < < NUMBER3 ; \n \n private static final long TRACE_TAG_NOT_READY = NUMBER0 < < NUMBER4 ; \n private static final int MAX_SECTION_NAME_LEN = NUMBER5 ;", "msg_token": "Add the trace tag for Dalvik"} {"diff": " public class SchemaMetadataBase < I extends SchemaMetadata , S extends SchemaMetada \n COMMENT \n COMMENT \n COMMENT \n - public AutoBuffer writeJSON_impl ( AutoBuffer ab ) { \n - \n + public final AutoBuffer writeJSON_impl ( AutoBuffer ab ) { \n ab . putJSONStr ( STRING0 , name ) ; ab . put1 ( STRING1 ) ; \n ab . putJSONStr ( STRING2 , type ) ; ab . put1 ( STRING1 ) ; \n ab . putJSONStrUnquoted ( STRING3 , is_schema ? STRING4 : STRING5 ) ; ab . put1 ( STRING1 ) ;", "msg_token": "Fixed custom json serialization declaration needs to be final or static"} {"diff": " final class CameraConfigurationManager { \n if ( supportedPreviewFpsRanges != null && ! supportedPreviewFpsRanges . isEmpty ( ) ) { \n int [ ] minimumSuitableFpsRange = null ; \n for ( int [ ] fpsRange : supportedPreviewFpsRanges ) { \n - if ( fpsRange [ Camera . Parameters . PREVIEW_FPS_MAX_INDEX ] >= MIN_FPS * NUMBER0 ) { \n + int fpsMax = fpsRange [ Camera . Parameters . PREVIEW_FPS_MAX_INDEX ] ; \n + if ( fpsMax >= MIN_FPS * NUMBER0 && \n + ( minimumSuitableFpsRange == null || \n + fpsMax > minimumSuitableFpsRange [ Camera . Parameters . PREVIEW_FPS_MAX_INDEX ] ) ) { \n minimumSuitableFpsRange = fpsRange ; \n - break ; \n } \n } \n if ( minimumSuitableFpsRange == null ) {", "msg_token": "extra defensive don t even assume the list is sorted in case of buggy phones"} {"diff": " public final class DtoConverter { \n . withId ( machine . getId ( ) ) \n . withStatus ( machine . getStatus ( ) ) \n . withOwner ( machine . getOwner ( ) ) \n + . withEnvName ( machine . getEnvName ( ) ) \n . withWorkspaceId ( machine . getWorkspaceId ( ) ) ; \n if ( machine . getRuntime ( ) != null ) { \n machineDto . withRuntime ( asDto ( machine . getRuntime ( ) ) ) ;", "msg_token": "Fix output of creating new machine in existed workspace"} {"diff": " public class EpisodeToolsTest { \n assertThat ( EpisodeTools . isWatched ( EpisodeFlags . UNWATCHED ) ) . isFalse ( ) ; \n } \n \n + @ test \n public void test_isUnwatched ( ) { \n assertThat ( EpisodeTools . isUnwatched ( EpisodeFlags . UNWATCHED ) ) . isTrue ( ) ; \n assertThat ( EpisodeTools . isUnwatched ( EpisodeFlags . WATCHED ) ) . isFalse ( ) ; \n assertThat ( EpisodeTools . isUnwatched ( EpisodeFlags . SKIPPED ) ) . isFalse ( ) ; \n } \n \n + @ test \n public void test_validateFlags ( ) { \n EpisodeTools . validateFlags ( EpisodeFlags . UNWATCHED ) ; \n EpisodeTools . validateFlags ( EpisodeFlags . WATCHED ) ;", "msg_token": "Add missing Test annotations"} {"diff": " public final class Es6RewriteBlockScopedDeclaration extends AbstractPostOrderCal \n Node nameNode = n . getFirstChild ( ) ; \n if ( ! n . isClass ( ) && ! n . isFunction ( ) && ! nameNode . hasChildren ( ) \n && ( parent == null || ! NodeUtil . isEnhancedFor ( parent ) ) \n - && ! n . isCatch ( ) ) { \n + && ! n . isCatch ( ) \n + && ! n . isFromExterns ( ) ) { \n nameNode . addChildToFront ( \n IR . name ( STRING0 ) . useSourceInfoIfMissingFrom ( nameNode ) ) ; \n } \n public final class Es6RewriteBlockScopedDeclarationTest extends CompilerTestCase \n STRING1 , \n STRING2 ) ) ; \n } \n - } \n + \n + public void testExterns ( ) { \n + testExternChanges ( STRING3 , STRING4 , STRING5 ) ; \n + } \n + }", "msg_token": "When transpiling let const don t initialize variables in externs"} {"diff": " public final class ScriptGroup extends BaseObj { \n protected void finalize ( ) throws Throwable { \n SINGLE \n SINGLE \n - mClosures . clear ( ) ; \n + if ( mClosures != null ) { \n + SINGLE \n + SINGLE \n + mClosures . clear ( ) ; \n + } \n super . finalize ( ) ; \n } \n }", "msg_token": "Fixed ScriptGroup finalizer for old API"} {"diff": " public class BinaryMemcacheObjectAggregatorTest { \n request . release ( ) ; \n \n assertThat ( channel . readInbound ( ) , nullValue ( ) ) ; \n + \n + channel . finish ( ) ; \n } \n }", "msg_token": "Fix a buffer leak in BinaryMemcacheObjectAggregatorTest"} {"diff": " public class BaseSettings implements SettingsInternal { \n } \n \n private Project createBuildDependenciesProject ( ) { \n - DefaultProject dummyProjectForDepencencyManager = new DefaultProject ( ) ; \n + DefaultProject dummyProjectForDepencencyManager = new DefaultProject ( BUILD_DEPENDENCIES_PROJECT_NAME ) ; \n dummyProjectForDepencencyManager . setProperty ( DependencyManager . GROUP , BUILD_DEPENDENCIES_PROJECT_GROUP ) ; \n - dummyProjectForDepencencyManager . setName ( BUILD_DEPENDENCIES_PROJECT_NAME ) ; \n dummyProjectForDepencencyManager . setProperty ( DependencyManager . VERSION , BUILD_DEPENDENCIES_PROJECT_VERSION ) ; \n try { \n dummyProjectForDepencencyManager . setGradleUserHome ( startParameter . getGradleUserHomeDir ( ) . getCanonicalPath ( ) ) ;", "msg_token": "Made name property of project immutable"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JingleConnectionManager { \n \n private XmppConnectionService xmppConnectionService ; \n \n - private List < JingleConnection > connections = new ArrayList < JingleConnection > ( ) ; \n + private List < JingleConnection > connections = new CopyOnWriteArrayList < JingleConnection > ( ) ; \n \n private HashMap < String , JingleCandidate > primaryCandidates = new HashMap < String , JingleCandidate > ( ) ; \n \n + @ suppresslint ( STRING0 ) \n private SecureRandom random = new SecureRandom ( ) ; \n \n public JingleConnectionManager ( XmppConnectionService service ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "made jingle connection array thread safe"} {"diff": " public class ToolCommands { \n \n @ command ( \n aliases = { STRING0 , STRING1 } , \n - usage = STRING2 , \n + usage = STRING3 , \n desc = STRING4 , \n min = NUMBER0 , \n max = NUMBER0", "msg_token": "Fixed floodfill usage"} {"diff": " public abstract class AbstractShadowRenderer implements SceneProcessor , Savable \n renderManager . setForcedTechnique ( postTechniqueName ) ; \n \n SINGLE \n - viewPort . getQueue ( ) . renderShadowQueue ( lightReceivers , renderManager , cam , flushQueues ) ; \n + viewPort . getQueue ( ) . renderShadowQueue ( lightReceivers , renderManager , cam , false ) ; \n if ( flushQueues ) { \n sceneReceivers . clear ( ) ; \n } \n public class PointLightShadowRenderer extends AbstractShadowRenderer { \n \n @ override \n GeometryList getReceivers ( GeometryList sceneReceivers , GeometryList lightReceivers ) { \n + lightReceivers . clear ( ) ; \n ShadowUtil . getGeometriesInLightRadius ( sceneReceivers , shadowCams , lightReceivers ) ; \n return lightReceivers ; \n } \n public class SpotLightShadowRenderer extends AbstractShadowRenderer { \n \n @ override \n GeometryList getReceivers ( GeometryList sceneReceivers , GeometryList lightReceivers ) { \n + lightReceivers . clear ( ) ; \n ShadowUtil . getGeometriesInCamFrustum ( sceneReceivers , shadowCam , lightReceivers ) ; \n return lightReceivers ; \n }", "msg_token": "Fixed an issue with multiple shadow renderers"} {"diff": " public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte \n } else { \n xPos = e . getVal ( ) ; \n } \n + \n + xPos *= mAnimator . getPhaseY ( ) ; \n } else { \n \n float x = i + i * ( setCount - NUMBER0 ) + dataSetIndex + space * i + space / FLOAT0 ; \n public abstract class BarLineChartBase < T extends BarLineScatterCandleData < ? exte \n } else { \n yPos = e . getVal ( ) ; \n } \n + \n + yPos *= mAnimator . getPhaseY ( ) ; \n } \n + } else { \n + yPos *= mAnimator . getPhaseY ( ) ; \n } \n \n SINGLE \n float [ ] pts = new float [ ] { \n - xPos , yPos * mAnimator . getPhaseY ( ) \n + xPos , yPos \n } ; \n \n getTransformer ( mData . getDataSetByIndex ( dataSetIndex ) . getAxisDependency ( ) )", "msg_token": "Fixed horizontal markerview animation issues"} {"diff": " public abstract class ObservationFromServer extends HandlerBase implements IMalm \n synchronized ( this . latestJsonStats ) \n { \n this . latestJsonStats = data . get ( STRING0 ) ; \n + if ( this . latestJsonStats == null ) SINGLE \n + this . latestJsonStats = STRING1 ; SINGLE \n onReturnedData ( data ) ; \n } \n }", "msg_token": "Fixed knock on bug where losing the data from the message results in null pointer exceptions"} {"diff": " public class XsltRefactoringSupport implements ApplicationComponent { \n } \n \n amgr . unregisterAction ( name ) ; \n + amgr . registerAction ( name , origAction ) ; \n } \n - amgr . registerAction ( name , origAction ) ; \n } else { \n LOG . info ( STRING0 + name + STRING1 + action . getClass ( ) . getName ( ) ) ; \n }", "msg_token": "correctly handling null actions"} {"diff": " class NewModelControllerImpl implements NewModelController { \n \n public ModelNode execute ( final ModelNode operation , final OperationMessageHandler handler , final OperationTransactionControl control , final OperationAttachments attachments ) { \n final ModelNode headers = operation . has ( OPERATION_HEADERS ) ? operation . get ( OPERATION_HEADERS ) : null ; \n - final boolean rollbackOnFailure = headers == null || ! headers . hasDefined ( ROLLBACK_ON_RUNTIME_FAILURE ) || operation . get ( ROLLBACK_ON_RUNTIME_FAILURE ) . asBoolean ( ) ; \n + final boolean rollbackOnFailure = headers == null || ! headers . hasDefined ( ROLLBACK_ON_RUNTIME_FAILURE ) || headers . get ( ROLLBACK_ON_RUNTIME_FAILURE ) . asBoolean ( ) ; \n final EnumSet < NewOperationContextImpl . ContextFlag > contextFlags = rollbackOnFailure ? EnumSet . of ( NewOperationContextImpl . ContextFlag . ROLLBACK_ON_FAIL ) : EnumSet . noneOf ( NewOperationContextImpl . ContextFlag . class ) ; \n NewOperationContextImpl context = new NewOperationContextImpl ( this , controllerType , contextFlags , handler , attachments , modelReference . get ( ) , control , processState , bootingFlag . get ( ) ) ; \n ModelNode response = new ModelNode ( ) ;", "msg_token": "Fix the failing controller tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class StreetTransitLink extends AbstractEdge { \n s1 . incrementWeight ( STL_TRAVERSE_COST ) ; \n return s1 . makeState ( ) ; \n } \n + \n + SINGLE \n + SINGLE \n + @ override \n + public double weightLowerBound ( TraverseOptions options ) { \n + return options . transitAllowed ( ) ? NUMBER0 : Double . POSITIVE_INFINITY ; \n + } \n + \n \n public Vertex getFromVertex ( ) { \n return fromv ;", "msg_token": "make heuristic infinite for transit when no transit mode is selected"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - SINGLE \n - SINGLE \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class NeoApp extends AbstractApp \n protected RelationshipType getRelationshipType ( String name ) \n { \n SINGLE \n - RelationshipType result = this . getNeoServer ( ) . getNeo ( ) . \n - getRelationshipType ( name ) ; \n + RelationshipType result = ( ( EmbeddedNeo ) this . getNeoServer ( ) . \n + getNeo ( ) ) . getRelationshipType ( name ) ; \n if ( result == null ) \n { \n throw new RuntimeException ( STRING0 + name +", "msg_token": "Added a cast to EmbeddedNeo to get access to legacy APIs"} {"diff": " public class CallSessionImpl \n { \n try \n { \n - String globalConnectionAddress = globalConnParam . getAddress ( ) ; \n + String globalConnectionAddress = null ; \n + \n + if ( globalConnParam != null ) \n + globalConnectionAddress = globalConnParam . getAddress ( ) ; \n \n Iterator mediaDescsIter = mediaDescriptions . iterator ( ) ; \n while ( mediaDescsIter . hasNext ( ) ) \n public class CallSessionImpl \n int port = mediaDescription . getMedia ( ) . getMediaPort ( ) ; \n String type = mediaDescription . getMedia ( ) . getMediaType ( ) ; \n \n - String address = globalConnectionAddress ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + String address ; \n + if ( globalConnectionAddress != null ) \n + { \n + address = globalConnectionAddress ; \n + } \n + else \n + { \n + address = mediaDescription . getConnection ( ) . getAddress ( ) ; \n + } \n \n SINGLE \n Connection mediaLevelConnection = mediaDescription .", "msg_token": "Committing fix from Pablo L about a missing global connection param"} {"diff": " public class GLMValidation extends Iced { \n } \n this . dataKey = dataKey ; \n this . thresholds = thresholds ; \n - System . out . println ( STRING0 + Arrays . toString ( thresholds ) ) ; \n } \n protected void regularize ( double reg ) { avg_err = avg_err * reg ; } \n public static Key makeKey ( ) { return Key . make ( STRING1 + Key . make ( ) ) ; } \n public class GLMValidation extends Iced { \n AUC auc = new AUC ( _cms , thresholds ) ; \n this . auc = auc . AUC ( ) ; \n best_threshold = auc . threshold ( ) ; \n + computeAIC ( ) ; \n } \n } \n COMMENT", "msg_token": "Added back accidentally removed aid compute call in the end of vlm validation"} {"diff": " public class DebuggerTreeRenderer extends ColoredTreeCellRenderer { \n } \n \n private static void appendValueTextWithEscapesRendering ( SimpleColoredText descriptorText , String valueText , final SimpleTextAttributes attribs ) { \n - final SimpleTextAttributes boldAttribs = attribs . derive ( SimpleTextAttributes . STYLE_BOLD , null , null , null ) ; \n + final SimpleTextAttributes boldAttribs = attribs . derive ( SimpleTextAttributes . STYLE_BOLD , null , Color . lightGray , null ) ; \n final StringBuilder buf = new StringBuilder ( ) ; \n boolean slashFound = false ; \n for ( int idx = NUMBER0 ; idx < valueText . length ( ) ; idx ++ ) {", "msg_token": "add background color for escaped symbols"} {"diff": " package NAMESPACE ; \n COMMENT \n public class Elasticsearch extends Bootstrap { \n \n - public static void main ( String [ ] args ) throws Throwable { \n + public static void main ( String [ ] args ) throws StartupError { \n Bootstrap . main ( args ) ; \n } \n }", "msg_token": "Fix compilation forgot to mvn clean"} {"diff": " public class DefaultSerializers { \n } \n \n public void write ( ObjectDataOutput out , Enum obj ) throws IOException { \n - out . writeUTF ( obj . getClass ( ) . getName ( ) ) ; \n + String name = obj . getDeclaringClass ( ) . getName ( ) ; \n + out . writeUTF ( name ) ; \n out . writeUTF ( obj . name ( ) ) ; \n } \n \n public class EnumTest { \n test ( RetentionPolicy . SOURCE ) ; \n } \n \n - @ test \n - @ ignore \n - SINGLE \n + SINGLE \n + SINGLE \n public void test4 ( ) throws IOException { \n test ( TimeUnit . SECONDS ) ; \n } \n \n private void test ( Enum value ) throws IOException { \n Data data = ss . toData ( value ) ; \n - Enum found = ( Enum ) ss . toObject ( data ) ; \n + Enum found = ( Enum ) ss . toObject ( data ) ; \n assertSame ( value , found ) ; \n } \n }", "msg_token": "Fixed the Serialization of Subclassed Enumerations"} {"diff": " public class TribeServiceTests extends ESTestCase { \n assertEquals ( STRING0 , clientSettings . get ( STRING1 ) ) ; \n assertEquals ( STRING2 , clientSettings . get ( STRING3 ) ) ; \n assertEquals ( STRING4 , clientSettings . get ( STRING5 ) ) ; \n + \n + SINGLE \n + Settings tribeSettings = Settings . builder ( ) \n + . put ( STRING6 , STRING7 ) . build ( ) ; \n + clientSettings = TribeService . buildClientSettings ( STRING8 , globalSettings , tribeSettings ) ; \n + assertEquals ( STRING9 , clientSettings . get ( STRING6 ) ) ; \n } \n \n public void testPassthroughSettings ( ) {", "msg_token": "Add test for ignoring path settings in tribe client"} {"diff": " public final class ContactsContract { \n STRING0 ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final Uri ENTERPRISE_FILE_URI = Uri . withAppendedPath ( AUTHORITY_URI , \n + STRING1 ) ; \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add Directory ENTERPRISE_FILE_URI"} {"diff": " public class PythonCommandLineState extends CommandLineState { \n \n commandLine . setExePath ( myConfig . getInterpreterPath ( ) ) ; \n \n + buildCommandLineParameters ( commandLine ) ; \n + \n + commandLine . setEnvParams ( myConfig . getEnvs ( ) ) ; \n + commandLine . setPassParentEnvs ( myConfig . isPassParentEnvs ( ) ) ; \n + return commandLine ; \n + } \n + \n + protected void buildCommandLineParameters ( GeneralCommandLine commandLine ) { \n commandLine . getParametersList ( ) . addParametersString ( myConfig . getInterpreterOptions ( ) ) ; \n \n if ( ! StringUtil . isEmptyOrSpaces ( myConfig . getScriptName ( ) ) ) { \n public class PythonCommandLineState extends CommandLineState { \n if ( ! StringUtil . isEmptyOrSpaces ( myConfig . getWorkingDirectory ( ) ) ) { \n commandLine . setWorkDirectory ( myConfig . getWorkingDirectory ( ) ) ; \n } \n - \n - commandLine . setEnvParams ( myConfig . getEnvs ( ) ) ; \n - commandLine . setPassParentEnvs ( myConfig . isPassParentEnvs ( ) ) ; \n - return commandLine ; \n } \n }", "msg_token": "correctly pass environment options to Django run configuration"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class GrailsUrlHandlerMapping extends SimpleUrlHandlerMapping { \n \n - private UrlPathHelper urlPathHelper = new UrlPathHelper ( ) ; \n + public static final String APPLICATION_CONTEXT_ID = STRING0 ; \n + public static final String APPLICATION_CONTEXT_TARGET_SOURCE = STRING1 ; \n + \n + private UrlPathHelper urlPathHelper = new UrlPathHelper ( ) ; \n \n COMMENT \n COMMENT \n public class GrailsUrlHandlerMapping extends SimpleUrlHandlerMapping { \n if ( logger . isDebugEnabled ( ) ) { \n logger . debug ( STRING2 + appPath + STRING3 ) ; \n } \n - return lookupHandler ( appPath ) ; \n + return lookupHandler ( appPath ) ; \n } \n }", "msg_token": "added constants for beans related to this class in the application context"} {"diff": " public class FeedRefreshTaskGiver implements Managed { \n \n @ override \n public void stop ( ) { \n + log . info ( STRING0 ) ; \n executor . shutdownNow ( ) ; \n while ( ! executor . isTerminated ( ) ) { \n try { \n public class FeedRefreshTaskGiver implements Managed { \n try { \n Thread . sleep ( NUMBER0 ) ; \n } catch ( InterruptedException e ) { \n - log . error ( STRING1 ) ; \n + log . debug ( STRING1 ) ; \n } \n } \n } catch ( Exception e ) { \n public class FeedRefreshUpdater implements Managed { \n \n @ override \n public void stop ( ) throws Exception { \n + log . info ( STRING2 ) ; \n pool . shutdown ( ) ; \n }", "msg_token": "logging shutdown info"} {"diff": " public class SlidingLayer extends FrameLayout { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setOffsetDistanceRes ( int resId ) { \n + setOffsetDistance ( ( int ) getResources ( ) . getDimension ( resId ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SlidingLayer extends FrameLayout { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setPreviewOffsetDistanceRes ( int resId ) { \n + setPreviewOffsetDistance ( ( int ) getResources ( ) . getDimension ( resId ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added setters for offset and previewOffset using resources"} {"diff": " public class ShadowView { \n applyVisibilityAttribute ( ) ; \n applyEnabledAttribute ( ) ; \n applyBackgroundAttribute ( ) ; \n + applyTagAttribute ( ) ; \n } \n \n - @ implementation \n + \n + \n + @ implementation \n public void setId ( int id ) { \n this . id = id ; \n } \n public class ShadowView { \n setId ( id ) ; \n } \n } \n + \n + private void applyTagAttribute ( ) { \n + Object tag = attributeSet . getAttributeValue ( STRING0 , STRING1 ) ; \n + if ( tag != null ) { \n + setTag ( tag ) ; \n + } \n + } \n \n private void applyVisibilityAttribute ( ) { \n String visibility = attributeSet . getAttributeValue ( STRING0 , STRING2 ) ;", "msg_token": "added support to ShadowView for setting the tag on a view as an xml attribute"} {"diff": " final public class Utils { \n \n \n public static void assertNoLocks ( LongConcurrentHashMap < Thread > locks ) { \n - SINGLE \n + if ( CC . PARANOID ) \n { \n LongMap . LongMapIterator < Thread > i = locks . longMapIterator ( ) ; \n while ( i . moveToNext ( ) ) {", "msg_token": "do not check released locks every time speedups some operations"} {"diff": " public class ConnectivityManagerTestActivity extends Activity { \n mCM = ( ConnectivityManager ) getSystemService ( Context . CONNECTIVITY_SERVICE ) ; \n SINGLE \n mWifiManager = ( WifiManager ) getSystemService ( Context . WIFI_SERVICE ) ; \n + mContext = this ; \n mChannel = mWifiManager . initialize ( mContext , mContext . getMainLooper ( ) , null ) ; \n \n initializeNetworkStates ( ) ;", "msg_token": "Fix CM test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Refactoring remove java awt"} {"diff": " class EclipseFinder { \n try { \n URI uri = EclipseFinder . class . getResource ( STRING0 + EclipseFinder . class . getName ( ) . replace ( STRING1 , STRING2 ) + STRING3 ) . toURI ( ) ; \n Pattern p = Pattern . compile ( STRING4 ) ; \n - System . out . println ( uri . toString ( ) ) ; \n Matcher m = p . matcher ( uri . toString ( ) ) ; \n if ( ! m . matches ( ) ) return new File ( STRING5 ) ; \n String rawUri = m . group ( NUMBER0 ) ;", "msg_token": "Removed a debug print"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n \n COMMENT \n COMMENT \n public class Layer extends BaseEntity { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public boolean removeEntity ( final IEntity pEntity ) { \n return this . mEntities . remove ( pEntity ) ;", "msg_token": "Improved description for Layer removeEntity"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n - @ channelpipelinecoverage ( value = STRING0 ) \n public class NettyAsyncHttpProvider extends SimpleChannelUpstreamHandler implements AsyncHttpProvider < HttpResponse > { \n private final static Logger log = LogManager . getLogger ( NettyAsyncHttpProvider . class ) ; \n private final ClientBootstrap bootstrap ;", "msg_token": "Remove deprecated annotation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused import"} {"diff": " public class IdeTooltipManager implements ApplicationComponent , AWTEventListener \n hideCurrent ( me , null , null ) ; \n } \n } else if ( me . getID ( ) == MouseEvent . MOUSE_MOVED ) { \n - if ( c instanceof JComponent && ( ( JComponent ) c ) . getToolTipText ( me ) == null ) { \n - hideCurrent ( me , null , null ) ; SINGLE \n - } else if ( me . getComponent ( ) == myCurrentComponent || me . getComponent ( ) == myQueuedComponent ) { \n + if ( me . getComponent ( ) == myCurrentComponent || me . getComponent ( ) == myQueuedComponent ) { \n if ( myCurrentTipUi != null && myCurrentTipUi . wasFadedIn ( ) ) { \n if ( hideCurrent ( me , null , null ) ) { \n maybeShowFor ( c , me ) ;", "msg_token": "restore editor quick info tooltip"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CancellableThreads { \n RuntimeException throwable = null ; \n try { \n interruptable . run ( ) ; \n - } catch ( InterruptedException e ) { \n + } catch ( InterruptedException | ThreadInterruptedException e ) { \n SINGLE \n } catch ( RuntimeException t ) { \n throwable = t ;", "msg_token": "CancellableThreads should also treat ThreadInterruptedException as InterruptedException"} {"diff": " public abstract class TransformFuture < T , F > extends SimpleFuture < T > implements F \n @ override \n public void onCompleted ( Exception e , F result ) { \n if ( e != null ) { \n - setComplete ( e ) ; \n + error ( e ) ; \n return ; \n } \n \n public abstract class TransformFuture < T , F > extends SimpleFuture < T > implements F \n transform ( result ) ; \n } \n catch ( Exception ex ) { \n - setComplete ( ex ) ; \n + error ( ex ) ; \n } \n } \n \n public abstract class TransformFuture < T , F > extends SimpleFuture < T > implements F \n return this ; \n } \n \n + protected void error ( Exception e ) { \n + setComplete ( e ) ; \n + } \n protected abstract void transform ( F result ) throws Exception ; \n }", "msg_token": "allow error handling override"} {"diff": " public class NameSuggestionsField extends JPanel { \n } \n \n public void documentChanged ( DocumentEvent event ) { \n + if ( myComponent instanceof JComboBox ) { \n + ( ( JComboBox ) myComponent ) . hidePopup ( ) ; \n + } \n + \n fireDataChanged ( ) ; \n } \n }", "msg_token": "fix introduce variable dialog to hide combobox popup on user type"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JetCompletionContributor extends CompletionContributor { \n \n String prefix = result . getPrefixMatcher ( ) . getPrefix ( ) ; \n \n - if ( prefix . isEmpty ( ) && parameters . getInvocationCount ( ) < NUMBER0 ) { \n - return ; \n + SINGLE \n + if ( prefix . isEmpty ( ) ) { \n + if ( parameters . getInvocationCount ( ) < NUMBER0 ) { \n + return ; \n + } \n + \n + if ( PsiTreeUtil . getParentOfType ( jetReference . getElement ( ) , JetDotQualifiedExpression . class ) == null ) { \n + return ; \n + } \n } \n \n if ( shouldRunTopLevelCompletion ( parameters , prefix ) ) {", "msg_token": "Allow count non imported descriptors for empty prefix in qualified expression important for extension functions"} {"diff": " public final class BuildRuleType { \n \n SINGLE \n public static BuildRuleType _AAPT_PACKAGE = new BuildRuleType ( STRING0 ) ; \n - public static BuildRuleType _CLASS_NAMES = new BuildRuleType ( STRING1 ) ; \n public static BuildRuleType _DUMMY_R_DOT_JAVA = new BuildRuleType ( STRING2 ) ; \n public static BuildRuleType _PRE_DEX = new BuildRuleType ( STRING3 ) ; \n public static BuildRuleType _UBER_R_DOT_JAVA = new BuildRuleType ( STRING4 ) ;", "msg_token": "Remove unused variable"} {"diff": " public final class IdeKeyEventDispatcher implements Disposable { \n return false ; \n } \n \n - boolean isMainFrame = window instanceof IdeFrameImpl ; \n boolean isFloatingDecorator = window instanceof FloatingDecorator ; \n \n boolean isPopup = ! ( component instanceof JFrame ) && ! ( component instanceof JDialog ) ; \n public final class IdeKeyEventDispatcher implements Disposable { \n } \n } \n \n - return ! isMainFrame && ! isFloatingDecorator ; \n + return ! isFloatingDecorator ; \n } \n \n private boolean inWaitForSecondStrokeState ( ) {", "msg_token": "remove dead code"} {"diff": " public class PackageKeysMigration extends BaseDataChange { \n } \n \n @ override \n - public void execute ( final Context context ) throws SQLException { \n + public void execute ( Context context ) throws SQLException { \n MassUpdate massUpdate = context . prepareMassUpdate ( ) ; \n massUpdate . select ( STRING0 ) ; \n massUpdate . update ( STRING1 ) ; \n public class PackageKeysMigration extends BaseDataChange { \n String key = row . getString ( NUMBER0 ) ; \n update . setString ( NUMBER1 , convertKey ( key ) ) ; \n update . setLong ( NUMBER0 , id ) ; \n - \n - context . prepareSelect ( STRING2 ) ; \n - \n return true ; \n } \n } ) ;", "msg_token": "Revert wrong modification Fix Migration on MsSQL"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class EnvironmentPane extends WorkbenchPane \n implements EnvironmentPresenter . Display \n { \n @ inject \n - public EnvironmentPane ( ) \n + public EnvironmentPane ( Commands commands ) \n { \n super ( STRING0 ) ; \n \n + commands_ = commands ; \n + \n ensureWidget ( ) ; \n } \n \n public class EnvironmentPane extends WorkbenchPane \n } \n \n private ListBox objectList_ ; \n + \n + private Commands commands_ ; \n }", "msg_token": "inject commands into environment pane"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public interface AsyncFunction < I , O > { \n COMMENT \n COMMENT \n COMMENT \n - ListenableFuture < O > apply ( I input ) throws Exception ; \n + ListenableFuture < O > apply ( @ nullable I input ) throws Exception ; \n }", "msg_token": "Annotate AsyncFunction parameter as Nullable"} {"diff": " public class User { \n public void setName ( String name ) { \n this . name = name ; \n } \n - \n + \n + SINGLE \n public void process ( ComponentSystemEvent event ) throws AbortProcessingException { \n System . out . println ( STRING0 ) ; \n name = name . toUpperCase ( ) ;", "msg_token": "Added a comment about method signatures"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - \n + @ equalsandhashcode \n public class CnnToFeedForwardPreProcessor implements InputPreProcessor { \n private int inputWidth ; \n private int inputHeight ; \n import NAMESPACE ; \n COMMENT \n \n COMMENT \n - \n @ equalsandhashcode \n public class FeedForwardToCnnPreProcessor implements InputPreProcessor { \n private int inputWidth ;", "msg_token": "Fixed compilation error"} {"diff": " class BuildProgressListenerAdapter implements InternalBuildProgressListener , Int \n return assertDescriptorType ( BuildOperationDescriptor . class , cachedTestDescriptor ) ; \n } \n \n - private BuildOperationDescriptor getBuildDescriptor ( InternalBuildDescriptor buildDescriptor ) { \n - OperationDescriptor cachedTestDescriptor = this . descriptorCache . get ( buildDescriptor . getId ( ) ) ; \n - if ( cachedTestDescriptor == null ) { \n - throw new IllegalStateException ( String . format ( STRING0 , toString ( buildDescriptor ) ) ) ; \n - } \n - return assertDescriptorType ( BuildOperationDescriptor . class , cachedTestDescriptor ) ; \n - } \n - \n private static TestOperationDescriptor toTestDescriptor ( final InternalTestDescriptor testDescriptor , final TestOperationDescriptor parent ) { \n if ( testDescriptor instanceof InternalJvmTestDescriptor ) { \n final InternalJvmTestDescriptor jvmTestDescriptor = ( InternalJvmTestDescriptor ) testDescriptor ;", "msg_token": "Remove unused method"} {"diff": " public interface X11 extends Library { \n COMMENT \n int XUngrabKey ( Display display , int keyCode , int modifiers , Window grab_window ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + int XGrabKeyboard ( Display display , Window grab_window , int owner_events , int pointer_mode , int keyboard_mode , NativeLong time ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + int XUngrabKeyboard ( Display display , NativeLong time ) ; \n + \n SINGLE \n COMMENT \n int XChangeKeyboardMapping ( Display display , int first_keycode , int keysyms_per_keycode , KeySym [ ] keysyms , int num_codes ) ;", "msg_token": "added mappings for XGrabKeyboard and XUngrabKeyboard"} {"diff": " public class Optionals \n return this ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n @ override \n public < To > Optional < To > map ( Function < TYPE , ? extends To > conversion ) \n { \n - return some ( conversion . apply ( obj ) ) ; \n + return Optionals . < To > some ( conversion . apply ( obj ) ) ; \n } \n } ; \n }", "msg_token": "Made some use of generics explicit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused import statement"} {"diff": " public class EntityLaser extends Entity implements ISpawnHandler { \n } \n \n @ override \n - protected void writeEntityToNBT ( NBTTagCompound nbttagcompound ) { \n - } \n - \n protected void writeEntityToNBT ( NBTTagCompound nbttagcompound ) { } \n } \n public class EntityRobot extends Entity implements ISpawnHandler { \n SINGLE \n t . printStackTrace ( ) ; \n ModLoader . getLogger ( ) . throwing ( STRING0 , STRING1 , t ) ; \n - STRING1 , t ) ; \n } \n }", "msg_token": "Fixing conflict resolutions derps"} {"diff": " class ResultConverter { \n SendMessageResult toReturn = new SendMessageResult ( ) ; \n toReturn . setMD5OfMessageBody ( br . getMD5OfMessageBody ( ) ) ; \n toReturn . setMessageId ( br . getMessageId ( ) ) ; \n + toReturn . setMD5OfMessageAttributes ( br . getMD5OfMessageAttributes ( ) ) ; \n return toReturn ; \n }", "msg_token": "add MessageAttributes to SendMessageResult"} {"diff": " public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab \n @ override \n public void close ( int closeCode ) { \n logger . trace ( STRING0 , closeCode ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n notifyListener ( new WebSocketEventListener . WebSocketEvent ( STRING1 , CLOSE , webSocket ) ) ; \n AtmosphereResourceImpl resource = ( AtmosphereResourceImpl ) webSocket . resource ( ) ; \n \n public abstract class WebSocket extends AsyncIOWriterAdapter { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SimpleHttpProtocol implements WebSocketProtocol , Serializable { \n public List < AtmosphereRequest > onMessage ( WebSocket webSocket , String d ) { \n AtmosphereResourceImpl resource = ( AtmosphereResourceImpl ) webSocket . resource ( ) ; \n if ( resource == null ) { \n - logger . error ( STRING2 ) ; \n + logger . trace ( STRING3 ) ; \n return null ; \n } \n String pathInfo = resource . getRequest ( ) . getPathInfo ( ) ;", "msg_token": "Change the log message and add some information about the returned value which might be null"} {"diff": " import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class JavaReferenceContributor extends PsiReferenceContributor { \n public void registerReferenceProviders ( final PsiReferenceRegistrar registrar ) { \n + final Project project = registrar . getProject ( ) ; \n + if ( project == null ) return ; \n \n - final JavaClassListReferenceProvider classListProvider = new JavaClassListReferenceProvider ( registrar . getProject ( ) ) ; \n + final JavaClassListReferenceProvider classListProvider = new JavaClassListReferenceProvider ( project ) ; \n registrar . registerReferenceProvider ( xmlAttributeValue ( ) , classListProvider , PsiReferenceRegistrar . LOWER_PRIORITY ) ; \n registrar . registerReferenceProvider ( xmlTag ( ) , classListProvider , PsiReferenceRegistrar . LOWER_PRIORITY ) ;", "msg_token": "don t use PsiReferenceRegistrar getProject"} {"diff": " public class UiTest { \n assertThat ( url ( ) ) . contains ( STRING0 ) ; \n $ ( STRING1 ) \n . shouldBe ( visible ) \n - . shouldHave ( text ( STRING2 ) ) ; \n + . shouldHave ( text ( STRING3 ) ) ; \n } \n \n @ test", "msg_token": "relax UiTest for better stability"} {"diff": " public class Splash extends JDialog implements StartupProgress { \n Dimension size = getPreferredSize ( ) ; \n setSize ( size ) ; \n pack ( ) ; \n - setLocationRelativeTo ( null ) ; \n + setLocationInTheCenterOfScreen ( ) ; \n + } \n + \n + private void setLocationInTheCenterOfScreen ( ) { \n + Rectangle deviceBounds = getGraphicsConfiguration ( ) . getBounds ( ) ; \n + setLocation ( ( deviceBounds . width - getWidth ( ) ) / NUMBER0 , ( deviceBounds . height - getHeight ( ) ) / NUMBER0 ) ; \n } \n \n public Splash ( ApplicationInfoEx info ) {", "msg_token": "Set location of splash screen basing on the current screen device"} {"diff": " public class DefaultGrailsPluginManager implements GrailsPluginManager { \n if ( new File ( STRING0 ) . exists ( ) && plugins . get ( STRING1 ) == null ) { \n GrailsUtil . deprecated ( STRING2 + \n STRING3 + \n - STRING4 + \n + STRING5 + \n STRING6 ) ; \n } \n initializePlugins ( ) ;", "msg_token": "corrected info message"} {"diff": " public class IOUtils { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean existsInClasspathOrFileSystem ( String name ) { \n + InputStream is = IOUtils . class . getClassLoader ( ) . getResourceAsStream ( name ) ; \n + if ( is == null ) { \n + is = IOUtils . class . getClassLoader ( ) . getResourceAsStream ( name . replaceAll ( STRING0 , STRING1 ) ) ; \n + } \n + return is != null || new File ( name ) . exists ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Hopefully fix the build"} {"diff": " public final class AppleBuildRules { \n new Predicate < BuildRule > ( ) { \n @ override \n public boolean apply ( BuildRule input ) { \n - if ( ! isXcodeTargetBuildRuleType ( input . getType ( ) ) && \n - XcodeNativeDescription . TYPE != input . getType ( ) ) { \n - return false ; \n - } \n - \n - return true ; \n + return isXcodeTargetBuildRuleType ( input . getType ( ) ) || \n + XcodeNativeDescription . TYPE == input . getType ( ) ; \n } \n } ) ) ; \n }", "msg_token": "Simplify predicate in getSchemeBuildableRules"} {"diff": " public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene \n COMMENT \n public boolean shouldShowRequestPermissionRationale ( @ nonnull String permission ) { \n if ( mHost != null ) { \n - mHost . getContext ( ) . getPackageManager ( ) . shouldShowRequestPermissionRationale ( permission ) ; \n + return mHost . getContext ( ) . getPackageManager ( ) \n + . shouldShowRequestPermissionRationale ( permission ) ; \n } \n return false ; \n }", "msg_token": "Return a result from Fragment shouldShowRequestPermissionRationale"} {"diff": " public class Ping \n ExamplesUtil . useSharedMemoryOnLinux ( ) ; \n \n final MediaDriver driver = EMBEDDED_MEDIA_DRIVER ? MediaDriver . launch ( ) : null ; \n - final ExecutorService executor = Executors . newSingleThreadExecutor ( ) ; \n final Aeron . Context ctx = new Aeron . Context ( ) \n . newConnectionHandler ( Ping : : newPongConnectionHandler ) ; \n \n public class Ping \n \n HISTOGRAM . outputPercentileDistribution ( System . out , FLOAT0 ) ; \n \n - executor . shutdown ( ) ; \n CloseHelper . quietClose ( driver ) ; \n }", "msg_token": "removed unnecessary executor"} {"diff": " public class GateVanilla extends Gate { \n return STRING0 ; \n case OR_4 : \n return STRING1 ; \n + default : \n + return STRING2 ; \n } \n \n - return STRING2 ; \n } \n \n @ override \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Pipe implements IPipe , IDropControlInventory { \n internalUpdateScheduled = false ; \n } \n \n + SINGLE \n + if ( APIProxy . isRemote ( ) ) \n + return ; \n + \n if ( actionTracker . markTimeIfDelay ( worldObj , NUMBER0 ) ) \n resolveActions ( ) ;", "msg_token": "Stopping gates from updating client side"} {"diff": " public class RebalanceDataSet extends H2O . H2OCountedCompleter { \n assert dst . _len2 == chk . _len : STRING0 + dst . _len2 + STRING1 + chk . _len ; \n dst . close ( dst . cidx ( ) , _fs ) ; \n } \n - @ override public void map ( Chunk . . . chk ) { \n - for ( int i = NUMBER0 ; i < chk . length ; ++ i ) \n - rebalanceChunk ( _srcVecs [ i ] , chk [ i ] ) ; \n + @ override public void map ( Chunk [ ] chks ) { \n + for ( int i = NUMBER0 ; i < chks . length ; ++ i ) \n + rebalanceChunk ( _srcVecs [ i ] , chks [ i ] ) ; \n } \n } \n }", "msg_token": "Changed RebalanceDatasetTask to have map called as map Chunk instead of map Chk to avoid compile warning"} {"diff": " public class ActionBarDrawerActivity extends ActionBarActivity { \n return super . onOptionsItemSelected ( item ) ; \n } \n } \n + \n + @ override \n + public void onBackPressed ( ) { \n + SINGLE \n + if ( result != null && result . isDrawerOpen ( ) ) { \n + result . closeDrawer ( ) ; \n + } else { \n + super . onBackPressed ( ) ; \n + } \n + } \n }", "msg_token": "add onBackPressed ot ActionBarDrawerActivity"} {"diff": " import NAMESPACE ; \n \n public class TrainParser { \n \n + SINGLE \n public static void main ( String [ ] args ) { \n List < String > remainingArgs = Generics . newArrayList ( ) ;", "msg_token": "Add a commented out example command line"} {"diff": " public class KeyguardViewMediator { \n } \n } \n KeyguardUpdateMonitor . getInstance ( mContext ) . dispatchScreenTurndOff ( why ) ; \n - mKeyguardDisplayManager . show ( ) ; \n + \n + SINGLE \n + mHandler . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + mKeyguardDisplayManager . show ( ) ; \n + } \n + } ) ; \n } \n \n private void doKeyguardLaterLocked ( ) {", "msg_token": "Don t set up external displays from binder thread"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class IteratorHasNextCallsIteratorNextInspection \n public class IteratorHasNextCallsIteratorNextInspection \n return new IteratorHasNextCallsIteratorNext ( ) ; \n } \n \n - private static class IteratorHasNextCallsIteratorNext \n - extends BaseInspectionVisitor { \n + private static class IteratorHasNextCallsIteratorNext extends BaseInspectionVisitor { \n \n @ override \n public void visitMethod ( @ notnull PsiMethod method ) { \n SINGLE \n - @ nonnls final String name = method . getName ( ) ; \n - if ( ! MethodUtils . methodMatches ( method , CommonClassNames . JAVA_UTIL_ITERATOR , null , \n - HardcodedMethodConstants . HAS_NEXT ) ) { \n + if ( ! MethodUtils . methodMatches ( method , CommonClassNames . JAVA_UTIL_ITERATOR , null , HardcodedMethodConstants . HAS_NEXT ) ) { \n return ; \n } \n if ( ! IteratorUtils . containsCallToIteratorNext ( method , null , true ) ) {", "msg_token": "remove unused variable"} {"diff": " public abstract class CamelBlueprintTestSupport extends CamelTestSupport { \n \n SINGLE \n System . setProperty ( STRING0 , STRING1 + System . currentTimeMillis ( ) ) ; \n - List < BundleDescriptor > bundles = new ClasspathScanner ( ) . scanForBundles ( STRING2 ) ; \n + List < BundleDescriptor > bundles = getBundleDescriptors ( ) ; \n TinyBundle bundle = createTestBundle ( ) ; \n bundles . add ( getBundleDescriptor ( STRING3 , bundle ) ) ; \n Map < String , List < BundleDescriptor > > config = new HashMap < String , List < BundleDescriptor > > ( ) ; \n public abstract class CamelBlueprintTestSupport extends CamelTestSupport { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected List < BundleDescriptor > getBundleDescriptors ( ) throws Exception { \n + return new ClasspathScanner ( ) . scanForBundles ( STRING2 ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allow customizing list of bundles for camel test blueprint"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractNioMessageChannel extends AbstractNioChannel { \n pipeline . fireChannelReadComplete ( ) ; \n \n if ( exception != null ) { \n - if ( exception instanceof IOException ) { \n + if ( exception instanceof IOException && ! ( exception instanceof PortUnreachableException ) ) { \n SINGLE \n SINGLE \n closed = ! ( AbstractNioMessageChannel . this instanceof ServerChannel ) ;", "msg_token": "Do not consider PortUnreachableException to require channel closure"} {"diff": " public class WXPerformance { \n + STRING0 + screenRenderTime \n + STRING1 + firstScreenJSFExecuteTime \n + STRING2 + componentCount \n + + STRING3 + syncTaskTime \n + + STRING4 + pureNetworkTime \n + + STRING5 + actualNetworkTime \n + + STRING6 + packageSpendTime \n + + STRING7 + connectionType \n + + STRING8 + requestType \n + STRING9 + WXEnvironment . sSDKInitInvokeTime + STRING10 + WXEnvironment . sSDKInitExecuteTime \n + STRING11 + totalTime + STRING12 + JSLibVersion + STRING13 + WXSDKVersion \n + STRING14 + errCode + STRING15 + renderFailedDetail", "msg_token": "android add debug log"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Cleaned up some unused imports"} {"diff": " public class SwingSpyPanel extends JPanel { \n createImageIcon ( packageName + STRING0 ) , \n createImageIcon ( packageName + STRING1 ) , \n createImageIcon ( packageName + STRING2 ) , \n - createImageIcon ( packageName + STRING3 ) , \n + createImageIcon ( packageName + STRING4 ) , \n createImageIcon ( packageName + STRING5 ) , \n createImageIcon ( packageName + STRING6 ) , \n createImageIcon ( packageName + STRING7 ) ,", "msg_token": "fixed swingspy wrong png name"} {"diff": " public class CompilerOptions implements Serializable , Cloneable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setLanguageIn ( LanguageMode languageIn ) { \n this . languageIn = languageIn ;", "msg_token": "Fix copy pasted comment"} {"diff": " public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n @ consoleparameter ( name = STRING0 , description = STRING1 ) String iStorageType , \n @ consoleparameter ( name = STRING2 , optional = true , description = STRING3 ) String iDatabaseType ) \n throws IOException { \n + \n + if ( iDatabaseType == null ) \n + iDatabaseType = STRING4 ; \n + \n out . println ( STRING5 + iDatabaseURL + STRING6 + iStorageType + STRING7 ) ; \n \n currentDatabaseUserName = iUserName ; \n public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n \n } else { \n SINGLE \n - currentDatabase = new ODatabaseDocumentTx ( iDatabaseURL ) ; \n + currentDatabase = Orient . instance ( ) . getDatabaseFactory ( ) . createDatabase ( iDatabaseType , iDatabaseURL ) ; \n currentDatabase . create ( ) ; \n currentDatabaseName = currentDatabase . getName ( ) ; \n }", "msg_token": "Fixed creation of new database using db type also in local"} {"diff": " public class BatchTest { \n Resource branch = sonar . find ( new ResourceQuery ( STRING0 ) ) ; \n assertThat ( branch . getName ( ) ) . isEqualTo ( STRING1 ) ; \n } \n + \n + @ test \n + public void use_sonar_profile_without_provisioning_project ( ) { \n + scan ( STRING2 , \n + STRING3 , STRING4 , \n + STRING5 , STRING6 ) ; \n + Resource r = orchestrator . getServer ( ) . getWsClient ( ) . find ( ResourceQuery . createForMetrics ( STRING7 , STRING8 ) ) ; \n + assertThat ( r . getMeasureIntValue ( STRING8 ) ) . isEqualTo ( NUMBER0 ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "IT using sonar profile without provisioning project"} {"diff": " public final class InstanceType implements IOReadableWritable { \n COMMENT \n @ override \n public String toString ( ) { \n - return this . identifier ; \n - } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public String toStringRepresentation ( ) { \n - \n final StringBuilder bld = new StringBuilder ( NUMBER0 ) ; \n bld . append ( this . identifier ) ; \n - bld . append ( STRING0 ) ; \n + bld . append ( STRING1 ) ; \n + bld . append ( STRING2 ) ; \n bld . append ( this . numberOfComputeUnits ) ; \n bld . append ( STRING0 ) ; \n bld . append ( this . numberOfCores ) ; \n public final class InstanceType implements IOReadableWritable { \n bld . append ( this . diskCapacity ) ; \n bld . append ( STRING0 ) ; \n bld . append ( this . pricePerHour ) ; \n + bld . append ( STRING3 ) ; \n \n return bld . toString ( ) ; \n }", "msg_token": "Changed toString method of InstanceType"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WorldEdit { \n } else { \n submask = new ExistingBlockMask ( ) ; \n } \n - return new UnderOverlayMask ( submask , firstChar == STRING0 ) ; \n + return new UnderOverlayMask ( submask , firstChar == STRING0 ) ; \n \n case STRING1 : \n Set < BiomeType > biomes = new HashSet < BiomeType > ( ) ;", "msg_token": "Fix missing imports"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractScheduler implements InstanceListener { \n LOG . debug ( STRING0 ) ; \n return ; \n } \n - \n - SINGLE \n - SINGLE \n - try { \n - allocatedResource . getInstance ( ) . checkLibraryAvailability ( jobID ) ; \n - } catch ( IOException ioe ) { \n - LOG . error ( STRING1 + StringUtils . stringifyException ( ioe ) ) ; \n - } \n } \n \n final ExecutionGraph eg = getExecutionGraphByID ( jobID ) ;", "msg_token": "Removed library check code to improve latency behaviour"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectWorkspace { \n SINGLE \n if ( attrs . size ( ) > NUMBER0 && attrs . size ( ) <= NUMBER1 ) { \n String linkTo = new String ( Files . readAllBytes ( path ) , UTF_8 ) ; \n - Path linkToFile = templatePath . resolve ( linkTo ) ; \n + Path linkToFile = null ; \n + try { \n + linkToFile = templatePath . resolve ( linkTo ) ; \n + } catch ( InvalidPathException e ) { \n + SINGLE \n + SINGLE \n + return FileVisitResult . CONTINUE ; \n + } \n if ( Files . isRegularFile ( linkToFile ) ) { \n Files . copy ( linkToFile , path , StandardCopyOption . REPLACE_EXISTING ) ; \n } else if ( Files . isDirectory ( linkToFile ) ) {", "msg_token": "Catch an exception in ProjectWorkspace when following links"} {"diff": " import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class InitialStopSearchPathParser extends PathParser { \n public int terminalFor ( State state ) { \n Vertex v = state . getVertex ( ) ; \n \n - if ( v instanceof IntersectionVertex ) \n - return STREET ; \n - \n - else if ( v instanceof TransitStop ) \n + if ( v instanceof TransitStop ) \n return TRANSITSTOP ; \n \n - else return OTHER ; \n + else \n + return STREET ; \n } \n \n @ override", "msg_token": "Fix initial stop path parser to handle rarer cases e g elevators"} {"diff": " \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Don t use javadoc markers in file headers"} {"diff": " public class Notification implements Parcelable \n mN . ledARGB = argb ; \n mN . ledOnMS = onMs ; \n mN . ledOffMS = offMs ; \n + if ( onMs != NUMBER0 || offMs != NUMBER0 ) { \n + mN . flags |= FLAG_SHOW_LIGHTS ; \n + } \n + if ( ( mN . defaults & DEFAULT_LIGHTS ) != NUMBER0 ) { \n + mN . flags |= FLAG_SHOW_LIGHTS ; \n + } \n return this ; \n } \n \n public class Notification implements Parcelable \n COMMENT \n public Builder setColor ( @ colorint int argb ) { \n mN . color = argb ; \n + sanitizeColor ( ) ; \n return this ; \n } \n \n public class Notification implements Parcelable \n } \n } \n \n - private int sanitizeColor ( ) { \n + private void sanitizeColor ( ) { \n if ( mN . color != COLOR_DEFAULT ) { \n mN . color |= NUMBER1 ; SINGLE \n } \n - return mN . color ; \n } \n \n private int resolveColor ( ) {", "msg_token": "Bring back notification lights and sanitized color"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Linter { \n compiler . compile ( ImmutableList . < SourceFile > of ( externs ) , ImmutableList . of ( file ) , options ) ; \n if ( fix ) { \n List < SuggestedFix > fixes = new ArrayList < > ( ) ; \n - for ( JSError warning : compiler . getWarnings ( ) ) { \n + for ( JSError warning : concat ( compiler . getErrors ( ) , compiler . getWarnings ( ) , JSError . class ) ) { \n SuggestedFix suggestedFix = ErrorToFixMapper . getFixForJsError ( warning , compiler ) ; \n if ( suggestedFix != null ) { \n fixes . add ( suggestedFix ) ;", "msg_token": "Fix errors as well as warnings"} {"diff": " public class AccountListActivity extends SherlockListActivity implements View . On \n \n ThemeableActivity . setBackgroundImage ( this ) ; \n \n - SINGLE \n - \n mApp = ImApp . getApplication ( this ) ; \n mHandler = new MyHandler ( this ) ; \n mSignInHelper = new SignInHelper ( this ) ;", "msg_token": "removed unnecessary commented out line"} {"diff": " import NAMESPACE ; \n public class PyBreakContinueGotoProvider implements GotoDeclarationHandler { \n \n public PsiElement getGotoDeclarationTarget ( PsiElement source ) { \n - if ( source . getLanguage ( ) instanceof PythonLanguage ) { \n + if ( source != null && source . getLanguage ( ) instanceof PythonLanguage ) { \n ParentMatcher parent_matcher = new ParentMatcher ( PyForStatement . class , PyWhileStatement . class ) ; \n parent_matcher . limitBy ( PyFunction . class , PyClass . class ) ; \n List < ? extends PsiElement > cycle_list = parent_matcher . search ( source ) ;", "msg_token": "Fixed NPE in the break and continue ctrl click handler"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class OrientBatchGraph extends BatchGraph < OrientGraph > { \n + public class OrientBatchGraph extends BatchGraph < OrientTransactionalGraph > { \n \n - public OrientBatchGraph ( final OrientGraph graph ) { \n + public OrientBatchGraph ( final OrientTransactionalGraph graph ) { \n super ( graph ) ; \n } \n \n - public OrientBatchGraph ( final OrientGraph graph , final VertexIDType type , final long bufferSize ) { \n + public OrientBatchGraph ( final OrientTransactionalGraph graph , final VertexIDType type , final long bufferSize ) { \n super ( graph , type , bufferSize ) ; \n }", "msg_token": "Let OrientBatchGraph to receive a OrientTransactionalGraph rather than OrientGraph"} {"diff": " class PropertyAccessInvocationHandler implements MethodInterceptor { \n \n if ( String . class . equals ( type ) ) { \n path = new ExtString ( pm ) ; \n - rv = ( T ) new String ( ) ; \n + SINGLE \n + SINGLE \n + rv = null ; \n \n SINGLE", "msg_token": "added Oracle specific extensions"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class JedisShardInfo extends ShardInfo < Jedis > { \n this . port = port ; \n this . timeout = timeout ; \n } \n + \n + public JedisShardInfo ( String host , String name , int port , int timeout , int weight ) { \n + super ( weight ) ; \n + this . host = host ; \n + this . name = name ; \n + this . port = port ; \n + this . timeout = timeout ; \n + } \n \n public JedisShardInfo ( URI uri ) { \n super ( Sharded . DEFAULT_WEIGHT ) ;", "msg_token": "adding constructor that receives both name and weight"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed unneeded imports in ForgePacket"} {"diff": " public class CreateVirtualEnvDialog extends IdeaDialog { \n final ProjectJdkImpl sdk = new ProjectJdkImpl ( name , PythonSdkType . getInstance ( ) ) ; \n sdk . setHomePath ( FileUtil . toSystemDependentName ( sdkHome . getPath ( ) ) ) ; \n callback . virtualEnvCreated ( sdk , associateWithProject ) ; \n - PythonSdkType . setupSdkPaths ( sdk , myProject , null ) ; \n } \n }", "msg_token": "do not run skeleton generation twice while creating virtual env"} {"diff": " public abstract class BaseNeuralNetwork implements NeuralNetwork , Persistable { \n log . info ( STRING0 + currRecon ) ; \n } \n \n - \n + numEpochs ++ ; \n } \n \n }", "msg_token": "added backprop to reconstructions as well"} {"diff": " public class SoftWrapApplianceManager implements Dumpable { \n \n if ( myContext . delayedSoftWrap != null ) { \n myStorage . remove ( myContext . delayedSoftWrap ) ; \n + myContext . delayedSoftWrap = null ; \n } \n \n if ( softWrap == null ) { \n public class SoftWrapApplianceOnDocumentModificationTest extends AbstractEditorT \n verifySoftWrapPositions ( ) ; \n } \n \n + public void testFoldRegionPreventsLaterWrapping ( ) throws Exception { \n + initText ( STRING0 ) ; \n + configureSoftWraps ( NUMBER0 ) ; \n + verifySoftWrapPositions ( NUMBER1 ) ; \n + \n + addCollapsedFoldRegion ( NUMBER2 , NUMBER3 , STRING1 ) ; \n + \n + verifySoftWrapPositions ( NUMBER2 ) ; \n + assertEquals ( NUMBER4 , myEditor . offsetToVisualPosition ( NUMBER5 ) . line ) ; \n + } \n + \n private void init ( final int visibleWidthInColumns , @ notnull String fileText ) throws IOException { \n init ( visibleWidthInColumns , NUMBER6 , fileText ) ; \n }", "msg_token": "fix soft wrap recalculation issue"} {"diff": " public class SwingBuilder extends BuilderSupport { \n registerBeanFactory ( STRING0 , GridLayout . class ) ; \n registerBeanFactory ( STRING1 , OverlayLayout . class ) ; \n registerBeanFactory ( STRING2 , SpringLayout . class ) ; \n - registerBeanFactory ( STRING3 , GridBagConstraints . class ) ; \n + registerBeanFactory ( STRING4 , GridBagConstraints . class ) ; \n registerBeanFactory ( STRING5 , GridBagConstraints . class ) ; SINGLE \n \n SINGLE", "msg_token": "fixed a typo in the dynamic method definition for gridBagConstraints"} {"diff": " public class PsiViewerDialog extends DialogWrapper { \n start -= baseOffset ; \n end -= baseOffset ; \n } \n - myHighlighter = myEditor . getMarkupModel ( ) . addRangeHighlighter ( start , end , HighlighterLayer . FIRST + NUMBER0 , myAttributes , HighlighterTargetArea . EXACT_RANGE ) ; \n + \n + final int textLength = myEditor . getDocument ( ) . getTextLength ( ) ; \n + if ( end < textLength ) { \n + myHighlighter = myEditor . getMarkupModel ( ) . addRangeHighlighter ( start , end , HighlighterLayer . FIRST + NUMBER0 , myAttributes , HighlighterTargetArea . EXACT_RANGE ) ; \n + } \n } \n } \n }", "msg_token": "fixed invalid range problem"} {"diff": " public class ObjectNode \n } \n return _children . put ( fieldName , value ) ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - protected static class NoFieldsIterator \n - implements Iterator < Map . Entry < String , JsonNode > > \n - { \n - final static NoFieldsIterator instance = new NoFieldsIterator ( ) ; \n - \n - private NoFieldsIterator ( ) { } \n - \n - SINGLE \n - public boolean hasNext ( ) { return false ; } \n - SINGLE \n - public Map . Entry < String , JsonNode > next ( ) { throw new NoSuchElementException ( ) ; } \n - \n - SINGLE \n - public void remove ( ) { SINGLE \n - throw new IllegalStateException ( ) ; \n - } \n - } \n }", "msg_token": "Remove the last unused empty iterator class"} {"diff": " public class ShadowSQLiteStatement extends ShadowSQLiteProgram { \n if ( resultSet . next ( ) ) { \n return resultSet . getLong ( NUMBER0 ) ; \n } else { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING1 ) ; \n } \n } catch ( SQLException e ) { \n throw new RuntimeException ( e ) ; \n public class ShadowSQLiteStatement extends ShadowSQLiteProgram { \n throw new SQLiteDoneException ( STRING2 ) ; \n } \n } \n - } \n + }", "msg_token": "Fix error message in ShadowSQLiteStatement java"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class Routers { \n \n private static final Logger LOG = LoggerFactory . getLogger ( Routers . class ) ; \n \n - @ autowired GraphService graphService ; \n + @ injectparam GraphService graphService ; \n \n COMMENT \n COMMENT", "msg_token": "fix routers API to work with standalone OTP injection"} {"diff": " public class StarTreeBootstrapJobAvro extends Configured \n { \n Map < String , Map < Long , StarTreeRecord > > records = aggregateRecords ( config , avroRecords , numTimeBuckets ) ; \n \n + LOG . info ( STRING0 , records . size ( ) , nodeId . toString ( ) ) ; \n + \n SINGLE \n List < StarTreeRecord > mergedRecords = new ArrayList < StarTreeRecord > ( ) ; \n for ( Map < Long , StarTreeRecord > timeBucket : records . values ( ) )", "msg_token": "added log for number of records in each leaf"} {"diff": " public final class RuntimeEnvironment { \n } \n \n public void setUsingLuceneLocking ( boolean useLuceneLocking ) { \n - threadConfig . get ( ) . setOptimizeDatabase ( useLuceneLocking ) ; \n + threadConfig . get ( ) . setUsingLuceneLocking ( useLuceneLocking ) ; \n } \n \n COMMENT", "msg_token": "Fixed setter in RuntimeEnvironment lucene locking"} {"diff": " public class AarGeneratorAction { \n modifiers , \n null , \n options . strictMerge ) ; \n - logger . info ( String . format ( STRING0 , timer . elapsed ( TimeUnit . MILLISECONDS ) ) ) ; \n + logger . fine ( String . format ( STRING0 , timer . elapsed ( TimeUnit . MILLISECONDS ) ) ) ; \n \n writeAar ( options . aarOutput , mergedData , options . manifest , options . rtxt , options . classes ) ; \n - logger . info ( \n + logger . fine ( \n String . format ( STRING1 , timer . elapsed ( TimeUnit . MILLISECONDS ) ) ) ; \n \n } catch ( IOException | MergingException e ) {", "msg_token": "Turn down the log level for AarGeneratorAction s timing information"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Source implements InsertSourceHandler , \n activeEditor_ = editors_ . get ( event . getSelectedItem ( ) ) ; \n activeEditor_ . onActivate ( ) ; \n if ( initialized_ ) \n - activeEditor_ . focus ( ) ; \n + { \n + Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( ) \n + { \n + public void execute ( ) \n + { \n + activeEditor_ . focus ( ) ; \n + } \n + } ) ; \n + } \n } \n \n if ( initialized_ )", "msg_token": "Switch Tabs Lose Focus"} {"diff": " public abstract class PlanExecutor { \n } \n } \n \n - private static final Class < ? extends PlanExecutor > loadExecutorClass ( String className ) { \n + private static Class < ? extends PlanExecutor > loadExecutorClass ( String className ) { \n try { \n Class < ? > leClass = Class . forName ( className ) ; \n return leClass . asSubclass ( PlanExecutor . class ) ;", "msg_token": "Remove unnecessary final modifier in PlanExecutor loadExecutorClass method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public class RoutingUsingCamelContextFactoryTest extends TestSupport { \n protected String body = STRING0 ; \n + protected AbstractXmlApplicationContext applicationContext ; \n \n public void testXMLRouteLoading ( ) throws Exception { \n - ApplicationContext applicationContext = new ClassPathXmlApplicationContext ( STRING1 ) ; \n + applicationContext = new ClassPathXmlApplicationContext ( STRING1 ) ; \n \n CamelContext context = ( CamelContext ) applicationContext . getBean ( STRING2 ) ; \n assertNotNull ( STRING3 , context ) ; \n public class RoutingUsingCamelContextFactoryTest extends TestSupport { \n resultEndpoint . assertIsSatisfied ( ) ; \n } \n \n + @ override \n + protected void tearDown ( ) throws Exception { \n + super . tearDown ( ) ; \n + applicationContext . destroy ( ) ; \n + } \n }", "msg_token": "added explicit tear down"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public interface MetricPoller { \n - void poll ( MetricFilter filter , MetricObserver observer ) ; \n + List < Metric > poll ( MetricFilter filter ) ; \n }", "msg_token": "poller interface should just return a list"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - class AsyncHttpRequest implements Runnable { \n + public class AsyncHttpRequest implements Runnable { \n private final AbstractHttpClient client ; \n private final HttpContext context ; \n private final HttpUriRequest request ;", "msg_token": "revert it since sample project use it"} {"diff": " public class WifiActivity extends Activity { \n } \n \n private WifiConfiguration changeNetworkCommon ( NetworkSetting input ) { \n - statusView . setText ( STRING0 ) ; \n + statusView . setText ( R . string . wifi_creating_network ) ; \n Log . d ( TAG , STRING1 + input . getSsid ( ) + STRING2 + input . getNetworkType ( ) ) ; \n WifiConfiguration config = new WifiConfiguration ( ) ;", "msg_token": "Change another string to a resource"} {"diff": " public class Process { \n public static final int SDCARD_RW_GID = NUMBER0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final int VPN_UID = NUMBER1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add VPN UID to list in Process"} {"diff": " final class FragmentManagerImpl extends FragmentManager implements LayoutInflate \n fs . mSavedFragmentState . setClassLoader ( mActivity . getClassLoader ( ) ) ; \n f . mSavedViewState = fs . mSavedFragmentState . getSparseParcelableArray ( \n FragmentManagerImpl . VIEW_STATE_TAG ) ; \n + f . mSavedFragmentState = fs . mSavedFragmentState ; \n } \n } \n }", "msg_token": "Restore saved fragment state"} {"diff": " import NAMESPACE ; \n public class RemoteOperationResult implements Serializable { \n \n COMMENT \n - private static final long serialVersionUID = NUMBER0 ; \n + private static final long serialVersionUID = - NUMBER1 ; \n \n \n public enum ResultCode { \n public class RemoteOperationResult implements Serializable { \n private int mHttpCode = - NUMBER2 ; \n private Exception mException = null ; \n private ResultCode mCode = ResultCode . UNKNOWN_ERROR ; \n - private Object mExtraData = null ; \n \n public RemoteOperationResult ( ResultCode code ) { \n mCode = code ; \n public class RemoteOperationResult implements Serializable { \n return mCode == ResultCode . SSL_RECOVERABLE_PEER_UNVERIFIED ; \n } \n \n - public void setExtraData ( Object data ) { \n - mExtraData = data ; \n - } \n - \n - public Object getExtraData ( ) { \n - return mExtraData ; \n - } \n - \n private CertificateCombinedException getCertificateCombinedException ( Exception e ) { \n CertificateCombinedException result = null ; \n if ( e instanceof CertificateCombinedException ) {", "msg_token": "Remove unused Object member causing problems with serialization back to previous serializationUID"} {"diff": " public class JavaFunctionalExpressionIndex extends FileBasedIndexExtension < Strin \n @ notnull \n @ override \n public Map < String , Collection < IndexHolder > > map ( @ notnull FileContent inputData ) { \n + if ( ! JavaStubElementTypes . JAVA_FILE . shouldBuildStubFor ( inputData . getFile ( ) ) ) { \n + return Collections . emptyMap ( ) ; \n + } \n final CharSequence contentAsText = inputData . getContentAsText ( ) ; \n if ( ! StringUtil . contains ( contentAsText , STRING0 ) && ! StringUtil . contains ( contentAsText , STRING1 ) ) { \n return Collections . emptyMap ( ) ; \n } \n \n final PsiFile file = ( ( FileContentImpl ) inputData ) . getPsiFileForPsiDependentIndex ( ) ; \n - if ( ! ( file instanceof PsiJavaFile ) || ! JavaStubElementTypes . JAVA_FILE . shouldBuildStubFor ( inputData . getFile ( ) ) ) { \n + if ( ! ( file instanceof PsiJavaFile ) ) { \n return Collections . emptyMap ( ) ; \n }", "msg_token": "avoid psi creation if we should not build stubs for the file"} {"diff": " public class RefCountHolder { \n PsiElement ref = iterator . next ( ) ; \n if ( ! ref . isValid ( ) ) iterator . remove ( ) ; \n } \n + \n + for ( Iterator < PsiNamedElement > iterator = myDclsUsedMap . keySet ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { \n + PsiNamedElement element = iterator . next ( ) ; \n + \n + if ( ! element . isValid ( ) ) iterator . remove ( ) ; \n + } \n } \n \n public int getRefCount ( PsiElement element ) {", "msg_token": "removing invalid refs on unusused dcls"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface ClientWithWrongFields { \n void fieldAndEntity ( @ field int v1 , String entity ) ; \n \n void missingPostAnnotation ( @ field ( STRING0 ) int v1 ) ; \n + \n + @ post ( STRING1 ) \n + void fieldAndPartOnSameMethod ( @ field String field , @ part String part ) ; \n } \n public class RestTest extends AAProcessorTestHelper { \n assertCompilationErrorOn ( ClientWithWrongFields . class , STRING2 , result ) ; \n assertCompilationErrorOn ( ClientWithWrongFields . class , STRING3 , result ) ; \n assertCompilationErrorOn ( ClientWithWrongFields . class , STRING4 , result ) ; \n + assertCompilationErrorOn ( ClientWithWrongFields . class , STRING5 , result ) ; \n \n - assertCompilationErrorCount ( NUMBER0 , result ) ; \n + assertCompilationErrorCount ( NUMBER1 , result ) ; \n } \n \n @ test", "msg_token": "Add compile time test for Part"} {"diff": " public class IndexDatabase { \n try { \n if ( ! dirty && ! dirtyFile . createNewFile ( ) ) { \n if ( ! dirtyFile . exists ( ) ) { \n - log . log ( Level . FINE , STRING0 , dirtyFile . getAbsolutePath ( ) ) ; \n + log . log ( Level . FINE , \n + STRING1 , \n + dirtyFile . getAbsolutePath ( ) ) ; \n } \n dirty = true ; \n }", "msg_token": "Added missing parameter marker in message pattern"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class TelecommManager { \n public static TelecommManager from ( Context context ) { \n return ( TelecommManager ) context . getSystemService ( Context . TELECOMM_SERVICE ) ; \n } \n - \n - COMMENT \n - public ComponentName getSystemPhoneApplication ( ) { \n - try { \n - return mService . getSystemPhoneApplication ( ) ; \n - } catch ( RemoteException e ) { \n - Log . e ( TAG , e , STRING0 ) ; \n - return null ; \n - } \n - } \n }", "msg_token": "Revert Add getSystemPhoneApplication to TelecommManager"} {"diff": " public interface PersistenceExceptionTranslator { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Align javadoc improvements"} {"diff": " public interface ServletContext { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public String getInitParameter ( String name ) ;", "msg_token": "Fix copy paste error"} {"diff": " import NAMESPACE ; \n rendererMediaClockSource = null ; \n } \n ensureStopped ( renderer ) ; \n - SINGLE \n - SINGLE \n - oldStreams . add ( renderer . disable ( ) ) ; \n + renderer . disable ( ) ; \n + oldStreams . add ( playingSource . trackStreams [ i ] ) ; \n } \n if ( newSelection != null ) { \n newSelections . add ( newSelection ) ; \n public abstract class TrackRenderer implements ExoPlayerComponent { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n Assertions . checkState ( state == STATE_ENABLED ) ; \n state = STATE_DISABLED ; \n onDisabled ( ) ; \n - TrackStream trackStream = stream ; \n stream = null ; \n streamIsFinal = false ; \n - return trackStream ; \n } \n \n COMMENT", "msg_token": "Don t return a TrackStream from TrackRenderer disable"} {"diff": " public class TenantCacheInvalidation { \n final BusInternalEvent event ; \n if ( tenantKvsTargetRecordId != null ) { \n final TenantKVModelDao tenantModelDao = tenantDao . getKeyByRecordId ( tenantKvsTargetRecordId , tenantContext ) ; \n + if ( tenantModelDao == null ) { \n + SINGLE \n + continue ; \n + } \n event = new DefaultTenantConfigChangeInternalEvent ( tenantModelDao . getId ( ) , cur . getType ( ) , \n null , tenantContext . getTenantRecordId ( ) , cur . getUserToken ( ) ) ; \n } else {", "msg_token": "fix NPE in TenantCacheInvalidation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class InspectionApplication { \n SINGLE \n Profile inspectionProfile = InspectionProjectProfileManager . getInstance ( myProject ) . getProfile ( myProfileName , false ) ; \n \n + SINGLE \n + if ( inspectionProfile == null ) { \n + final Collection < Profile > profiles = InspectionProjectProfileManager . getInstance ( myProject ) . getProfiles ( ) ; \n + for ( Profile profile : profiles ) { \n + if ( Comparing . strEqual ( profile . getName ( ) , myProfileName ) ) { \n + inspectionProfile = profile ; \n + break ; \n + } \n + } \n + } \n + \n SINGLE \n if ( inspectionProfile == null ) { \n inspectionProfile = InspectionProfileManager . getInstance ( ) . loadProfile ( myProfileName ) ;", "msg_token": "check project inspection profiles by name even if project profiles are not used for project"} {"diff": " public class ManagerServlet \n } else { \n deploy ( writer , path , tag ) ; \n } \n - } else if ( command . equals ( STRING0 ) ) { \n - SINGLE \n - deploy ( writer , config , path , war , false ) ; \n } else if ( command . equals ( STRING1 ) ) { \n list ( writer ) ; \n } else if ( command . equals ( STRING2 ) ) { \n reload ( writer , path ) ; \n - } else if ( command . equals ( STRING3 ) ) { \n - SINGLE \n - undeploy ( writer , path ) ; \n } else if ( command . equals ( STRING4 ) ) { \n resources ( writer , type ) ; \n } else if ( command . equals ( STRING5 ) ) {", "msg_token": "Remove deprecated commands"} {"diff": " public class CacheFactory { \n cacheProps . put ( STRING0 , JiveConstants . MINUTE * NUMBER0 ) ; \n cacheProps . put ( STRING1 , NUMBER1 * NUMBER2 ) ; \n cacheProps . put ( STRING2 , JiveConstants . MINUTE * NUMBER0 ) ; \n + cacheProps . put ( STRING3 , NUMBER3 * NUMBER2 ) ; \n + cacheProps . put ( STRING4 , JiveConstants . MINUTE * NUMBER4 ) ; \n cacheProps . put ( STRING5 , NUMBER5 * NUMBER2 ) ; \n cacheProps . put ( STRING6 , NUMBER6 * NUMBER7 * NUMBER8 ) ; \n cacheProps . put ( STRING7 , NUMBER1 * NUMBER2 ) ;", "msg_token": "Provide better defaults for Roster cache"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ ignore ( STRING0 ) \n @ runwith ( Arquillian . class ) \n public class ScriptAssertTestCase {", "msg_token": "Disable Bean Validation test for OpenJDK due to missing JavaScript engine"} {"diff": " public class TestHttpServlet extends TomcatBaseTest { \n } \n \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TestDefaultServlet extends TomcatBaseTest { \n assertTrue ( client . isResponse404 ( ) ) ; \n } \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Avoid Javadoc warnings in tests"} {"diff": " public abstract class AbstractPersistentCollection implements Serializable , Pers \n isTempSession = true ; \n } \n else { \n - throw new LazyInitializationException ( STRING0 ) ; \n + throwLazyInitializationException ( STRING0 ) ; \n } \n } \n else if ( ! session . isOpen ( ) ) { \n public abstract class AbstractPersistentCollection implements Serializable , Pers \n isTempSession = true ; \n } \n else { \n - throw new LazyInitializationException ( STRING1 ) ; \n + throwLazyInitializationException ( STRING1 ) ; \n } \n } \n else if ( ! session . isConnected ( ) ) { \n public abstract class AbstractPersistentCollection implements Serializable , Pers \n isTempSession = true ; \n } \n else { \n - throw new LazyInitializationException ( STRING2 ) ; \n + throwLazyInitializationException ( STRING2 ) ; \n } \n }", "msg_token": "Changed the error handling for LazyInitializationException to go through the throwLazyInitializationException method so that the collection role is reported"} {"diff": " public class SpanUtils { \n + STRING0 \n + STRING1 + Patterns . GOOD_IRI_CHAR + STRING2 \n + STRING3 \n - + STRING4 ) ; \n + + STRING5 ) ; \n \n private static final String [ ] WEB_URL_SCHEMES = { STRING6 , STRING7 , STRING8 , STRING9 } ;", "msg_token": "Fix web URL regex better"} {"diff": " class FalseFriendRuleHandler extends XMLRuleHandler { \n throw new SAXException ( STRING0 + languageStr + STRING1 ) ; \n } \n } else if ( qName . equals ( STRING2 ) ) { \n - inException = true ; \n - exceptionSet = true ; \n + inException = true ; \n exceptions = new StringBuffer ( ) ; \n \n if ( attrs . getValue ( STRING3 ) != null ) { \n class FalseFriendRuleHandler extends XMLRuleHandler { \n exceptionPosNegation = false ; \n exceptionPosRegExp = false ; \n exceptionStringRegExp = false ; \n + exceptionValidNext = true ; \n + exceptionSet = false ; \n \n } else if ( qName . equals ( STRING4 ) ) { \n inPattern = false ;", "msg_token": "fixing a hidden bug"} {"diff": " public class BeanConfig extends AbstractScanner implements Scanner , SwaggerConfi \n return basePath ; \n } \n public void setBasePath ( String basePath ) { \n - this . basePath = basePath ; \n + if ( ! STRING0 . equals ( basePath ) && basePath != null ) { \n + if ( ! basePath . startsWith ( STRING1 ) ) \n + this . basePath = STRING1 + basePath ; \n + else \n + this . basePath = basePath ; \n + } \n } \n \n public void setPrettyPrint ( String prettyPrint ) { \n public class BeanConfig extends AbstractScanner implements Scanner , SwaggerConfi \n } \n \n public Swagger configure ( Swagger swagger ) { \n - return swagger . info ( info ) ; \n + return swagger . info ( info ) \n + . host ( host ) \n + . basePath ( basePath ) ; \n } \n }", "msg_token": "added basePath host setters"} {"diff": " import NAMESPACE ; \n } \n \n public MenuItem setVisible ( boolean visible ) { \n - mFlags = ( mFlags & HIDDEN ) | ( visible ? NUMBER0 : HIDDEN ) ; \n + mFlags = ( mFlags & ~ HIDDEN ) | ( visible ? NUMBER0 : HIDDEN ) ; \n return this ; \n }", "msg_token": "Fixed bug in ActionMenuItem setVisible method"} {"diff": " public final class TicketGrantingTicketImpl extends AbstractTicket implements Ti \n COMMENT \n private static final long serialVersionUID = - NUMBER0 ; \n \n - private static final Logger LOGGER = LoggerFactory . getLogger ( TicketGrantingTicketImpl . class ) ; \n COMMENT \n @ lob \n @ column ( name = STRING0 , nullable = false )", "msg_token": "Fixed compilation issue after the merge with master"} {"diff": " public abstract class AbstractAsset < T extends AssetData > implements Asset < T > { \n COMMENT \n @ override \n public final void dispose ( ) { \n - onDispose ( ) ; \n - disposed = true ; \n - CoreRegistry . get ( AssetManager . class ) . dispose ( this ) ; \n + if ( ! disposed ) { \n + onDispose ( ) ; \n + disposed = true ; \n + CoreRegistry . get ( AssetManager . class ) . dispose ( this ) ; \n + } \n } \n \n protected abstract void onDispose ( ) ;", "msg_token": "Ensure that assets only get disposed once"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE \n @ configuration \n @ conditionalonwebapplication \n @ enableconfigurationproperties \n - @ conditionalonclass ( AbstractSecurityWebApplicationInitializer . class ) \n + @ conditionalonclass ( { AbstractSecurityWebApplicationInitializer . class , \n + SessionCreationPolicy . class } ) \n @ autoconfigureafter ( SpringBootWebSecurityConfiguration . class ) \n public class SecurityFilterAutoConfiguration {", "msg_token": "Switch off Security Filter auto config when spring security config is absent"} {"diff": " public class BukkitPlayer extends LocalPlayer { \n public void dispatchCUIHandshake ( ) { \n player . sendRawMessage ( STRING0 ) ; \n } \n + \n + public Player getPlayer ( ) { \n + return player ; \n + } \n }", "msg_token": "Added getting of the Bukkit player to BukkitPlayer for RegionBook"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class PerformanceTestComponent extends DefaultComponent { \n - static public final String HEADER_THREADS = STRING0 ; \n - static public final String HEADER_ITERATIONS = STRING1 ; \n + public static final String HEADER_THREADS = STRING0 ; \n + public static final String HEADER_ITERATIONS = STRING1 ; \n \n - static private final int DEFAULT_THREADS = NUMBER0 ; \n - static private final int DEFAULT_ITERATIONS = NUMBER1 ; \n + private static final int DEFAULT_THREADS = NUMBER0 ; \n + private static final int DEFAULT_ITERATIONS = NUMBER1 ; \n \n @ override \n protected Endpoint createEndpoint ( String uri , String remaining , Map < String , Object > parameters ) throws Exception {", "msg_token": "Fixed CS error"} {"diff": " import NAMESPACE ; \n \n public class ProxyCore { \n \n - @ sidedproxy ( clientSide = STRING0 , serverSide = STRING1 ) \n + @ sidedproxy ( clientSide = STRING2 , serverSide = STRING1 ) \n public static ProxyCore proxy ; \n \n COMMENT", "msg_token": "Fixed a typo"} {"diff": " public final class OperatorFromIterable < T > implements Action1 < Operator < ? super T \n public void call ( Operator < ? super T > o ) { \n for ( T i : is ) { \n if ( o . isUnsubscribed ( ) ) { \n - break ; \n + return ; \n } \n o . onNext ( i ) ; \n }", "msg_token": "Remove superfluous onComplete"} {"diff": " final class HttpQuery { \n COMMENT \n public Map < String , List < String > > getQueryString ( ) { \n if ( querystring == null ) { \n - querystring = new QueryStringDecoder ( request . getUri ( ) ) . getParameters ( ) ; \n + try { \n + querystring = new QueryStringDecoder ( request . getUri ( ) ) . getParameters ( ) ; \n + } catch ( IllegalArgumentException e ) { \n + throw new BadRequestException ( STRING0 + e . getMessage ( ) ) ; \n + } \n } \n return querystring ; \n }", "msg_token": "Properly handle malformed query strings"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added a code sample to the ModelBuilder javadocs"} {"diff": " class RecordReaderImpl implements RecordReader { \n COMMENT \n COMMENT \n Object nextVector ( Object previousVector , long batchSize ) throws IOException { \n - if ( present != null ) { \n \n + ColumnVector result = ( ColumnVector ) previousVector ; \n + if ( present != null ) { \n SINGLE \n SINGLE \n - ColumnVector result = ( ColumnVector ) previousVector ; \n result . noNulls = true ; \n for ( int i = NUMBER0 ; i < batchSize ; i ++ ) { \n result . isNull [ i ] = ( present . next ( ) != NUMBER1 ) ; \n class RecordReaderImpl implements RecordReader { \n result . noNulls = false ; \n } \n } \n + } else { \n + SINGLE \n + SINGLE \n + result . noNulls = true ; \n + for ( int i = NUMBER0 ; i < batchSize ; i ++ ) { \n + result . isNull [ i ] = false ; \n + } \n } \n return previousVector ; \n }", "msg_token": "Vectorized ORC reader does not handle absence of column present stream correctly"} {"diff": " public class Scanner { \n if ( ! skipRegularExpressionChar ( ) ) { \n return false ; \n } \n - while ( isRegularExpressionChar ( peekChar ( ) ) ) { \n + while ( ! isAtEnd ( ) && isRegularExpressionChar ( peekChar ( ) ) ) { \n if ( ! skipRegularExpressionChar ( ) ) { \n return false ; \n } \n public class NewParserTest extends BaseJSTypeTestCase { \n parse ( STRING0 ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void testUnterminatedRegExp ( ) { \n + parseError ( STRING1 , \n + STRING2 ) ; \n + \n + parseError ( STRING3 + \n + STRING4 , \n + STRING2 ) ; \n + } \n + \n public void testRegExp ( ) { \n assertNodeEquality ( parse ( STRING5 ) , script ( expr ( regex ( STRING6 ) ) ) ) ; \n assertNodeEquality ( parse ( STRING7 ) , script ( expr ( regex ( STRING8 ) ) ) ) ;", "msg_token": "Avoid infinite loop if EOF is found inside a RegExp literal"} {"diff": " public class AccessibilityNodeInfoCompat { \n COMMENT \n public static final int ACTION_SET_SELECTION = NUMBER0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final int ACTION_SET_TEXT = NUMBER1 ; \n + \n SINGLE \n \n COMMENT \n public class AccessibilityNodeInfoCompat { \n public static final String ACTION_ARGUMENT_SELECTION_END_INT = \n STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE = \n + STRING1 ; \n + \n SINGLE \n \n COMMENT", "msg_token": "add new accessibility action for EditText to set text content"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class TaskServiceTest extends ActivitiInternalTestCase { \n + \n + public void testMustFail ( ) { \n + assertTrue ( false ) ; \n + } \n \n public void testSaveTaskUpdate ( ) { \n Task task = taskService . newTask ( ) ;", "msg_token": "Committed failing test to verify Hudson email sending"} {"diff": " public enum OGlobalConfiguration { \n COMMENT \n COMMENT \n COMMENT \n - DISTRIBUTED_AUTO_REMOVE_OFFLINE_SERVERS ( STRING0 , \n - STRING1 , \n - Long . class , - NUMBER0 ) , \n + DISTRIBUTED_AUTO_REMOVE_OFFLINE_SERVERS ( STRING0 , STRING2 , Long . class , - NUMBER0 ) , \n \n COMMENT \n COMMENT", "msg_token": "update description of DISTRIBUTED_AUTO_REMOVE_OFFLINE_SERVERS setting"} {"diff": " public class Headers implements Iterable < Headers . Header > \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public String valuesAsString ( ) \n + { \n + StringBuilder result = new StringBuilder ( ) ; \n + for ( int i = NUMBER0 ; i < values . length ; ++ i ) \n + { \n + if ( i > NUMBER0 ) \n + result . append ( STRING0 ) ; \n + result . append ( values [ i ] ) ; \n + } \n + return result . toString ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public boolean hasMultipleValues ( )", "msg_token": "Added utility method valuesAsString"} {"diff": " public class GitAnnotationProvider implements AnnotationProvider , VcsCacheableAn \n GitSimpleHandler h = new GitSimpleHandler ( myProject , GitUtil . getGitRoot ( repositoryFilePath ) , GitCommand . BLAME ) ; \n h . setStdoutSuppressed ( true ) ; \n h . setCharset ( file . getCharset ( ) ) ; \n - h . addParameters ( STRING0 , STRING1 , STRING2 , STRING3 ) ; \n + h . addParameters ( STRING4 , STRING1 , STRING2 , STRING3 ) ; \n if ( revision == null ) { \n h . addParameters ( STRING5 ) ; \n }", "msg_token": "git prefer long CLI parameter name"} {"diff": " public abstract class LwjglAbstractDisplay extends LwjglContext implements Runna \n protected void initInThread ( ) { \n try { \n if ( ! JmeSystem . isLowPermissions ( ) ) { \n - Thread . setDefaultUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) { \n + SINGLE \n + Thread . currentThread ( ) . setUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) { \n public void uncaughtException ( Thread thread , Throwable thrown ) { \n listener . handleError ( STRING0 + thread . toString ( ) , thrown ) ; \n }", "msg_token": "Uncaught exception handler now set only on render thread instead of entire VM"} {"diff": " public class ContentTransformerListener extends BaseTransformerListener { \n \n dynamicContent . setText ( STRING0 + text ) ; \n } \n - \n - String type = GetterUtil . getString ( el . attributeValue ( STRING1 ) ) ; \n - \n - if ( type . equals ( STRING2 ) ) { \n - text = text . replaceAll ( STRING3 , STRING4 ) ; \n - } \n - \n - dynamicContent . setText ( text ) ; \n - \n } \n \n replace ( el ) ;", "msg_token": "users can manage break lines from the template"} {"diff": " public class MultiInstanceTest extends PluggableActivitiTestCase { \n @ deployment \n public void testParallelSubProcessCompletionCondition ( ) { \n String procId = runtimeService . startProcessInstanceByKey ( STRING0 ) . getId ( ) ; \n - List < Task > tasks = taskService . createTaskQuery ( ) . orderByTaskId ( ) . asc ( ) . list ( ) ; \n + List < Task > tasks = taskService . createTaskQuery ( ) . orderByExecutionId ( ) . asc ( ) . list ( ) ; \n assertEquals ( NUMBER0 , tasks . size ( ) ) ; \n \n for ( int i = NUMBER1 ; i < NUMBER2 ; i ++ ) {", "msg_token": "Fixed textcase to get the right order of task so that the process instance can terminate"} {"diff": " public class CommonProblemDescriptorImpl implements CommonProblemDescriptor { \n myFixes = QuickFix . EMPTY_ARRAY ; \n } \n else { \n - myFixes = new QuickFix [ fixes . length ] ; \n - System . arraycopy ( fixes , NUMBER0 , myFixes , NUMBER0 , fixes . length ) ; \n + myFixes = fixes ; \n + SINGLE \n + SINGLE \n } \n myDescriptionTemplate = descriptionTemplate ; \n }", "msg_token": "Get rid of megs of duplicated arrays"} {"diff": " public class Am { \n if ( data != null ) line = line + STRING0 + data + STRING1 ; \n if ( extras != null ) line = line + STRING2 + extras ; \n System . out . println ( line ) ; \n - mFinished = true ; \n - notifyAll ( ) ; \n + synchronized ( this ) { \n + mFinished = true ; \n + notifyAll ( ) ; \n + } \n } \n \n public synchronized void waitForFinish ( ) {", "msg_token": "Wrapped call to notifyAll in a synchronized block"} {"diff": " public final class IconLoader { \n \n ourDeprecatedIconsReplacements . put ( STRING0 , STRING1 ) ; \n ourDeprecatedIconsReplacements . put ( STRING2 , STRING1 ) ; \n + \n + ourDeprecatedIconsReplacements . put ( STRING3 , STRING4 ) ; \n } \n \n private static final ImageIcon EMPTY_ICON = new ImageIcon ( UIUtil . createImage ( NUMBER0 , NUMBER0 , BufferedImage . TYPE_3BYTE_BGR ) ) {", "msg_token": "deprecated icon fallback"} {"diff": " final class AndroidGraphics implements Graphics , Renderer \n synchronized ( this ) \n { \n if ( this . listener != null ) \n - listener . dispose ( app ) ; \n + this . listener . dispose ( app ) ; \n this . listener = listener ; \n } \n }", "msg_token": "Fix listener dispose app this listener dispose app"} {"diff": " public class TileLifecycleManager extends BroadcastReceiver implements \n private IQSService mService ; \n private boolean mUnbindImmediate ; \n private TileChangeListener mChangeListener ; \n + SINGLE \n + private boolean mIsBound ; \n \n public TileLifecycleManager ( Handler handler , Context context , Intent intent , UserHandle user ) { \n mContext = context ; \n public class TileLifecycleManager extends BroadcastReceiver implements \n } \n if ( DEBUG ) Log . d ( TAG , STRING0 + mIntent + STRING1 + mUser ) ; \n mBindTryCount ++ ; \n - mContext . bindServiceAsUser ( mIntent , this , \n + mIsBound = mContext . bindServiceAsUser ( mIntent , this , \n Context . BIND_AUTO_CREATE | Context . BIND_FOREGROUND_SERVICE_WHILE_AWAKE , \n mUser ) ; \n } else { \n public class TileLifecycleManager extends BroadcastReceiver implements \n SINGLE \n mBindTryCount = NUMBER0 ; \n mWrapper = null ; \n - mContext . unbindService ( this ) ; \n + if ( mIsBound ) { \n + mContext . unbindService ( this ) ; \n + mIsBound = false ; \n + } \n } \n }", "msg_token": "Handle return value from bindServiceAsUser"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ShowInfoActivity extends BaseActivity { \n case android . R . id . home : { \n SINGLE \n final Intent intent = new Intent ( this , OverviewActivity . class ) ; \n - intent . putExtra ( Shows . _ID , getShowId ( ) ) ; \n + intent . putExtra ( OverviewFragment . InitBundle . SHOW_TVDBID , getShowId ( ) ) ; \n intent . setFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n startActivity ( intent ) ; \n overridePendingTransition ( R . anim . home_enter , R . anim . home_exit ) ;", "msg_token": "Fix up button in ShowInfoActivity"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BeaconManager { \n LogManager . d ( TAG , STRING0 ) ; \n serviceMessenger = new Messenger ( service ) ; \n synchronized ( consumers ) { \n - Iterator < BeaconConsumer > consumerIterator = consumers . keySet ( ) . iterator ( ) ; \n - while ( consumerIterator . hasNext ( ) ) { \n - BeaconConsumer consumer = consumerIterator . next ( ) ; \n + for ( BeaconConsumer consumer : consumers . keySet ( ) ) { \n Boolean alreadyConnected = consumers . get ( consumer ) . isConnected ; \n if ( ! alreadyConnected ) { \n consumer . onBeaconServiceConnect ( ) ; \n ConsumerInfo consumerInfo = consumers . get ( consumer ) ; \n consumerInfo . isConnected = true ; \n - consumers . put ( consumer , consumerInfo ) ; \n } \n } \n }", "msg_token": "changed concurrent modification to a more clear way"} {"diff": " public interface XBreakpointManager { \n \n \n boolean isDefaultBreakpoint ( @ notnull XBreakpoint < ? > breakpoint ) ; \n + @ nullable \n + < B extends XBreakpoint < ? > > B getDefaultBreakpoint ( @ notnull XBreakpointType < B , ? > type ) ; \n \n < B extends XBreakpoint < P > , P extends XBreakpointProperties > \n void addBreakpointListener ( @ notnull XBreakpointType < B , P > type , @ notnull XBreakpointListener < B > listener ) ; \n public class XBreakpointManagerImpl implements XBreakpointManager , PersistentSta \n return result ; \n } \n \n + @ override \n + @ nullable \n + public < B extends XBreakpoint < ? > > B getDefaultBreakpoint ( @ notnull XBreakpointType < B , ? > type ) { \n + SINGLE \n + return ( B ) myDefaultBreakpoints . get ( type ) ; \n + } \n + \n @ nullable \n public < P extends XBreakpointProperties > XLineBreakpoint < P > findBreakpointAtLine ( @ notnull final XLineBreakpointType < P > type , @ notnull final VirtualFile file , \n final int line ) {", "msg_token": "added toolbar button to toggle all exceptions breakpoint"} {"diff": " public class SitePickerActivity extends AppCompatActivity \n \n private void setIsInSearchModeAndSetNewAdapter ( boolean isInSearchMode ) { \n String lastSearch = getAdapter ( ) . getLastSearch ( ) ; \n + AniUtils . showFab ( mFabView , ! isInSearchMode ) ; \n setNewAdapter ( lastSearch , isInSearchMode ) ; \n }", "msg_token": "Toggling view of FAB when toggling searchMode"} {"diff": " public class OpenIE implements Annotator { \n SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class , \n SemanticGraphCoreAnnotations . CollapsedCCProcessedDependenciesAnnotation . class ) ) ; \n if ( resolveCoref ) { \n - requirements . add ( edu . stanford . nlp . dcoref . CorefCoreAnnotations . CorefChainAnnotation . class ) ; \n + requirements . add ( edu . stanford . nlp . hcoref . CorefCoreAnnotations . CorefChainAnnotation . class ) ; \n } \n return Collections . unmodifiableSet ( requirements ) ; \n }", "msg_token": "Fix dependencies for OpenIE"} {"diff": " public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo \n \n double step = _parms . _init_step_size ; SINGLE \n int steps_in_row = NUMBER0 ; SINGLE \n - System . out . println ( fr . toString ( ) ) ; \n \n while ( ! isDone ( model , steps_in_row , step ) ) { \n update ( NUMBER1 , STRING0 + String . valueOf ( model . _output . _iterations + NUMBER1 ) + STRING1 ) ; SINGLE \n public class GLRM extends ModelBuilder < GLRMModel , GLRMModel . GLRMParameters , GLRMMo \n \n SINGLE \n SINGLE \n - System . out . println ( fr . toString ( ) ) ; \n Vec [ ] xvecs = new Vec [ _ncolX ] ; \n String [ ] xnames = new String [ _ncolX ] ; \n if ( overwriteX ) {", "msg_token": "Remove debug print statements"} {"diff": " public class InputStreamGraphSource implements GraphSource { \n SINGLE \n try ( InputStream is = streams . getConfigInputStream ( ) ) { \n JsonNode config = MissingNode . getInstance ( ) ; \n + SINGLE \n + ObjectMapper mapper = new ObjectMapper ( ) ; \n + mapper . configure ( JsonParser . Feature . ALLOW_COMMENTS , true ) ; \n + mapper . configure ( JsonParser . Feature . ALLOW_UNQUOTED_FIELD_NAMES , true ) ; \n if ( is != null ) { \n - SINGLE \n - ObjectMapper mapper = new ObjectMapper ( ) ; \n - mapper . configure ( JsonParser . Feature . ALLOW_COMMENTS , true ) ; \n - mapper . configure ( JsonParser . Feature . ALLOW_UNQUOTED_FIELD_NAMES , true ) ; \n config = mapper . readTree ( is ) ; \n + } else if ( newGraph . routerConfig != null ) { \n + config = mapper . readTree ( newGraph . routerConfig ) ; \n } \n Router newRouter = new Router ( routerId , newGraph ) ; \n newRouter . startup ( config ) ;", "msg_token": "Write router config if config is already embedded in the graph"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface WitherSkull extends Fireball { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setCharged ( boolean charged ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isCharged ( ) ; \n }", "msg_token": "Bleeding Add setCharged and getCharged to WitherSkull"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n @ runwith ( RobolectricTestRunner . class ) \n - public class MainRoboTest { \n + public class JobManagerTest { \n SINGLE \n @ test \n public void runManyNonPersistentJobs ( ) throws Exception { \n public class MainRoboTest { \n \n @ override \n public void onRun ( ) throws Throwable { \n - MainRoboTest . persistentRunLatch . countDown ( ) ; \n + JobManagerTest . persistentRunLatch . countDown ( ) ; \n } \n }", "msg_token": "rename MainRoboTest to JobManager test for clarity"} {"diff": " public class SpacingBuilder { \n return new RuleBuilder ( before , after ) ; \n } \n \n + public SpacingBuilder append ( SpacingBuilder builder ) { \n + myRules . addAll ( builder . myRules ) ; \n + return this ; \n + } \n + \n @ nullable \n public Spacing getSpacing ( Block parent , Block child1 , Block child2 ) { \n if ( ! ( parent instanceof ASTBlock ) || ! ( child1 instanceof ASTBlock ) || ! ( child2 instanceof ASTBlock ) ) {", "msg_token": "Added append method for composing instances of SpacingBuilder"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public abstract class IQDiscoHandler extends IQHandler { \n super ( name ) ; \n } \n \n - \n + protected TrackInfo getTrackInfo ( ) { \n + TrackInfo trackInfo = super . getTrackInfo ( ) ; \n + trackInfo . getTrackerClasses ( ) . put ( XMPPServer . class , STRING0 ) ; \n + return trackInfo ; \n + } \n \n }", "msg_token": "Added back getTrackInfo"} {"diff": " public class RefreshTokenTest { \n assertFalse ( response . isError ( ) ) ; \n assertNull ( response . getError ( ) ) ; \n \n - assertEquals ( \n - STRING0 + REFRESH_TOKEN \n - + STRING1 + CLIENT_ID + STRING2 \n - + CLIENT_SECRET , request . getContent ( ) ) ; \n + assertEquals ( STRING0 + REFRESH_TOKEN \n + + STRING1 + CLIENT_ID + STRING2 + CLIENT_SECRET \n + + STRING3 , request . getContent ( ) ) ; \n assertEquals ( \n STRING4 , \n response . getAccessToken ( ) ) ; \n public class RefreshTokenRequest extends AbstractRequest { \n + CHARSET ; \n \n private static final String URL = STRING5 ; \n - private static final String CONTENT = STRING6 ; \n + private static final String CONTENT = STRING7 ; \n \n private final String clientId ; \n private final String clientSecret ;", "msg_token": "add scope to oauth request"} {"diff": " public class OSQLHelper { \n \n if ( map . containsKey ( ODocumentHelper . ATTRIBUTE_TYPE ) ) \n SINGLE \n - fieldValue = new ODocument ( map ) ; \n + SINGLE \n + fieldValue = new ODocument ( ) . fromJSON ( iValue ) ; \n else \n fieldValue = map ; \n + \n } else if ( iValue . charAt ( NUMBER0 ) == OStringSerializerHelper . EMBEDDED_BEGIN \n && iValue . charAt ( iValue . length ( ) - NUMBER1 ) == OStringSerializerHelper . EMBEDDED_END ) { \n SINGLE", "msg_token": "Fixed issue where INSERT embedded JSON doesn t manage fieldTypes"} {"diff": " public class ModelTest extends DatabaseTestCase { \n assertFalse ( model . hasTransitory ( key1 ) ) ; \n assertTrue ( model . checkAndClearTransitory ( key2 ) ) ; \n assertFalse ( model . hasTransitory ( key2 ) ) ; \n + \n + model . putTransitory ( key1 , STRING0 ) ; \n + model . putTransitory ( key2 , STRING1 ) ; \n + model . clearAllTransitory ( ) ; \n + assertFalse ( model . hasTransitory ( key1 ) ) ; \n + assertFalse ( model . hasTransitory ( key2 ) ) ; \n } \n \n public void testEnumProperties ( ) { \n public abstract class AbstractModel implements Cloneable { \n COMMENT \n COMMENT \n public void clearAllTransitory ( ) { \n - if ( transitoryData != null ) { \n - transitoryData . clear ( ) ; \n - } \n + transitoryData = null ; \n } \n \n COMMENT", "msg_token": "Added a test assertions for clearAllTransitory"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n cv . put ( SearchManager . SUGGEST_COLUMN_INTENT_ACTION , intent . getAction ( ) ) ; \n cv . put ( SearchManager . SUGGEST_COLUMN_INTENT_DATA , intent . getDataString ( ) ) ; \n cv . put ( SearchManager . SUGGEST_COLUMN_INTENT_COMPONENT_NAME , \n - intent . getStringExtra ( SearchManager . COMPONENT_NAME_KEY ) ) ; \n + intent . getComponent ( ) . flattenToShortString ( ) ) ; \n \n SINGLE \n cv . put ( SearchManager . SUGGEST_COLUMN_ICON_1 ,", "msg_token": "Fix search intent component bug DO NOT MERGE"} {"diff": " public class GifDecoder { \n } \n \n SINGLE \n - if ( savePrevious && currentFrame . dispose == DISPOSAL_UNSPECIFIED || currentFrame . dispose == DISPOSAL_NONE ) { \n + if ( savePrevious && ( currentFrame . dispose == DISPOSAL_UNSPECIFIED \n + || currentFrame . dispose == DISPOSAL_NONE ) ) { \n if ( previousImage == null ) { \n previousImage = getNextBitmap ( ) ; \n }", "msg_token": "Avoid unnecessary frame allocation in GifDecoder"} {"diff": " class GoLightType < E extends GoCompositeElement > extends LightElement implements \n \n @ override \n public String toString ( ) { \n - return null ; \n + return getClass ( ) . getSimpleName ( ) + STRING0 + myElement + STRING1 ; \n } \n \n @ override", "msg_token": "add toString to GoLightType"} {"diff": " public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n if ( visibleRect . contains ( mEditTextContentBounds ) ) { \n return ; SINGLE \n } \n + nativeFindMaxVisibleRect ( mNativeClass , mEditTextLayerId , visibleRect ) ; \n syncSelectionCursors ( ) ; \n final int buffer = Math . max ( NUMBER0 , viewToContentDimension ( EDIT_RECT_BUFFER ) ) ; \n Rect showRect = new Rect ( \n public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n Rect rect ) ; \n SINGLE \n private static native int nativeSetHwAccelerated ( int instance , boolean hwAccelerated ) ; \n + private static native void nativeFindMaxVisibleRect ( int instance , int layerId , \n + Rect visibleContentRect ) ; \n }", "msg_token": "Consider fixed layers when scrolling the edit box"} {"diff": " public class BluetoothDeviceService extends IBluetoothDevice . Stub { \n mEventLoop . onModeChanged ( getModeNative ( ) ) ; \n } \n \n + if ( mIsAirplaneSensitive && isAirplaneModeOn ( ) ) { \n + disable ( false ) ; \n + } \n + \n } \n }", "msg_token": "Check AirplaneMode when enabling Bluetooth has finished"} {"diff": " public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor \n if ( entryPoints . size ( ) == NUMBER0 ) { \n mainEntryPoint = ( AuthenticationEntryPoint ) entryPoints . get ( NUMBER1 ) ; \n } else { \n - mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . FORM_LOGIN_ENTRY_POINT ) ; \n + mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . MAIN_ENTRY_POINT ) ; \n + \n + if ( mainEntryPoint == null ) { \n + mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . FORM_LOGIN_ENTRY_POINT ) ; \n + } \n \n if ( mainEntryPoint == null ) { \n mainEntryPoint = ( AuthenticationEntryPoint ) entryPointMap . get ( BeanIds . BASIC_AUTHENTICATION_ENTRY_POINT ) ;", "msg_token": "Add Open ID Namespace Support"} {"diff": " public class DeepLearning extends ModelBuilder < DeepLearningModel , DeepLearningPar \n cp . write_lock ( self ( ) ) ; \n \n if ( ! Arrays . equals ( cp . _output . _names , previous . _output . _names ) ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + throw new IllegalArgumentException ( STRING1 ) ; \n } \n if ( ! Arrays . deepEquals ( cp . _output . _domains , previous . _output . _domains ) ) { \n throw new IllegalArgumentException ( STRING2 ) ;", "msg_token": "Improve error message"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class JythonSdkFlavor extends PythonSdkFlavor { \n public void initPythonPath ( GeneralCommandLine cmd , Collection < String > path ) { \n final String jythonPath = StringUtil . join ( path , File . pathSeparator ) ; \n addToEnv ( cmd , JYTHONPATH , appendSystemJythonPath ( jythonPath ) ) ; \n - cmd . getParametersList ( ) . add ( getPythonPathCmdLineArgument ( path ) ) ; \n + ParamsGroup param_group = cmd . getParametersList ( ) . getParamsGroup ( PythonCommandLineState . GROUP_EXE_OPTIONS ) ; \n + assert param_group != null ; \n + param_group . addParameter ( getPythonPathCmdLineArgument ( path ) ) ; \n } \n \n public static String getPythonPathCmdLineArgument ( Collection < String > path ) {", "msg_token": "fixed manage py options for jython made params group in command line"} {"diff": " public class MarkupTemplateEngine extends TemplateEngine { \n final static ClassNode MARKUPTEMPLATEENGINE_CLASSNODE = ClassHelper . make ( MarkupTemplateEngine . class ) ; \n final static String MODELTYPES_ASTKEY = STRING0 ; \n \n - private final static Pattern LOCALIZED_RESOURCE_PATTERN = Pattern . compile ( STRING1 ) ; \n + private final static Pattern LOCALIZED_RESOURCE_PATTERN = Pattern . compile ( STRING2 ) ; \n \n private final static AtomicLong counter = new AtomicLong ( ) ;", "msg_token": "Fix locale parsing"} {"diff": " public class LRFUEvictor extends BlockStoreEventListenerBase implements Evictor \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private void updateOnAccessAndCommit ( long blockId ) { \n synchronized ( mBlockIdToLastUpdateTime ) { \n long currentLogicTime = mLogicTimeCount . incrementAndGet ( ) ; \n SINGLE \n - SINGLE \n + SINGLE \n if ( mBlockIdToCRFValue . containsKey ( blockId ) ) { \n mBlockIdToCRFValue . put ( blockId , mBlockIdToCRFValue . get ( blockId ) \n COMMENT \n } else { \n mBlockIdToCRFValue . put ( blockId , FLOAT0 ) ; \n } \n - SINGLE \n + SINGLE \n mBlockIdToLastUpdateTime . put ( blockId , currentLogicTime ) ; \n } \n } \n public class LRFUEvictor extends BlockStoreEventListenerBase implements Evictor \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private void updateOnRemoveBlock ( long blockId ) { \n synchronized ( mBlockIdToLastUpdateTime ) {", "msg_token": "fix comments of LRFUEvictor"} {"diff": " public class JsonFactory \n COMMENT \n COMMENT \n protected Object readResolve ( ) { \n - return new JsonFactory ( _objectCodec ) ; \n + return new JsonFactory ( this , _objectCodec ) ; \n } \n \n COMMENT", "msg_token": "Modify JsonFactory readResolve to hopefully work correctly wrt serialization"} {"diff": " public final class GrailsDomainBinder { \n } \n \n private static String getAssociationDescription ( GrailsDomainClassProperty grailsProperty ) { \n - String assType = STRING0 ; l \n + String assType = STRING0 ; \n if ( grailsProperty . isManyToMany ( ) ) { \n assType = STRING1 ; \n } else if ( grailsProperty . isOneToMany ( ) ) {", "msg_token": "Fixed rogue character in a file"} {"diff": " public class Shell implements ConsoleInputHandler , \n event . preventDefault ( ) ; \n break ; \n case STRING0 : \n + event . stopPropagation ( ) ; \n event . preventDefault ( ) ; \n input_ . goToLineStart ( ) ; \n + break ; \n case STRING1 : \n + event . stopPropagation ( ) ; \n event . preventDefault ( ) ; \n input_ . goToLineEnd ( ) ; \n + break ; \n } \n } \n else if ( mod == KeyboardShortcut . ALT )", "msg_token": "add missing breaks stop propagation"} {"diff": " public class MustacheCompiler { \n boolean onlywhitespace = true ; \n READ: \n while ( ( c = br . read ( ) ) != - NUMBER0 ) { \n + if ( c == STRING0 ) { \n + continue ; \n + } \n SINGLE \n if ( c == STRING1 ) { \n writeText ( code , template . toString ( ) ) ;", "msg_token": "remove r from stream"} {"diff": " public abstract class AbstractTokenListener implements TokenListener \n SINGLE \n } \n \n + public void onGroupHeader ( Token token , int numInGroup ) \n + { \n + SINGLE \n + } \n + \n public void onBeginGroup ( final Token token , final int groupIndex , final int numInGroup ) \n { \n SINGLE", "msg_token": "added no op onGroupHeader method to AbstractTokenListener"} {"diff": " public class EclipseModelBuilder implements ProjectToolingModelBuilder { \n } else if ( entry instanceof ProjectDependency ) { \n final ProjectDependency projectDependency = ( ProjectDependency ) entry ; \n final String path = StringUtils . removeStart ( projectDependency . getPath ( ) , STRING0 ) ; \n - projectDependencies . add ( new DefaultEclipseProjectDependency ( path , projectMapping . get ( projectDependency . getGradlePath ( ) ) , projectDependency . isExported ( ) ) ) ; \n + SINGLE \n + DefaultEclipseProject targetProject = projectMapping . get ( projectDependency . getGradlePath ( ) ) ; \n + if ( targetProject == null ) { \n + projectDependencies . add ( new DefaultEclipseProjectDependency ( projectDependency . getGradlePath ( ) , null , false ) ) ; \n + } else { \n + projectDependencies . add ( new DefaultEclipseProjectDependency ( path , targetProject , projectDependency . isExported ( ) ) ) ; \n + } \n } else if ( entry instanceof SourceFolder ) { \n final SourceFolder sourceFolder = ( SourceFolder ) entry ; \n String path = sourceFolder . getPath ( ) ;", "msg_token": "For now include the full composite path for eclipse project dependencies in a composite"} {"diff": " import static NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n + @ ignore \n public class ServerConfigTest { \n \n private NeoServer server ;", "msg_token": "Re greening the build while I m refactoring under the covers"} {"diff": " public class FacebookComponent extends UriEndpointComponent { \n \n SINGLE \n FacebookEndpointConfiguration config = new FacebookEndpointConfiguration ( ) ; \n - IntrospectionSupport . setProperties ( config , componentProperties , null ) ; \n + IntrospectionSupport . setProperties ( config , componentProperties ) ; \n return config ; \n }", "msg_token": "Fixed potential NPE"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class CamelConverter { \n } \n } ; \n } \n + \n + @ converter \n + public DescriptionDefinition toDefinition ( String descriptionText ) { \n + DescriptionDefinition answer = new DescriptionDefinition ( ) ; \n + answer . setText ( descriptionText ) ; \n + return answer ; \n + } \n }", "msg_token": "added type converter so its easy to set the description on a ProcessorDefinition using reflection with a String"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class GroovyConfigUtils extends AbstractConfigUtils { \n - @ nonnls private static final Pattern GROOVY_ALL_JAR_PATTERN = Pattern . compile ( STRING0 ) ; \n + @ nonnls private static final Pattern GROOVY_ALL_JAR_PATTERN = Pattern . compile ( STRING1 ) ; \n \n private static GroovyConfigUtils myGroovyConfigUtils ; \n @ nonnls public static final String GROOVY_JAR_PATTERN_NOVERSION = STRING2 ;", "msg_token": "groovy all jar can have any tail"} {"diff": " public abstract class PackageManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class PackageManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo in javadoc"} {"diff": " public class DefaultBroadcasterFactoryTest { \n public void testLookup_Class_Object ( ) { \n String id = STRING0 ; \n String id2 = STRING1 ; \n - assert factory . lookup ( DefaultBroadcaster . class , id ) != null ; \n + assert factory . lookup ( DefaultBroadcaster . class , id , true ) != null ; \n assert factory . lookup ( DefaultBroadcaster . class , id2 ) == null ; \n }", "msg_token": "Fix the test"} {"diff": " public class DebugInstructionIterator { \n } \n default : \n { \n - byte base = ( byte ) ( ( debugOpcode & NUMBER0 ) - NUMBER1 ) ; \n + int base = ( ( debugOpcode & NUMBER0 ) - NUMBER1 ) ; \n processDebugInstruction . ProcessSpecialOpcode ( startOffset , debugOpcode , ( base % NUMBER2 ) - NUMBER3 , base / NUMBER2 ) ; \n } \n }", "msg_token": "Use an int to store the base value when decoding a special debug opcode to prevent an incorrect negative value"} {"diff": " public class DbSqlSessionFactory implements SessionFactory { \n addDatabaseSpecificStatement ( STRING0 , STRING1 , STRING2 ) ; \n addDatabaseSpecificStatement ( STRING0 , STRING3 , STRING4 ) ; \n addDatabaseSpecificStatement ( STRING0 , STRING5 , STRING6 ) ; \n - \n + addDatabaseSpecificStatement ( STRING0 , STRING7 , STRING8 ) ; \n + addDatabaseSpecificStatement ( STRING0 , STRING9 , STRING10 ) ; \n + addDatabaseSpecificStatement ( STRING0 , STRING11 , STRING12 ) ; \n } \n \n protected String databaseType ;", "msg_token": "customizing the resultMap for comment full message blob"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public final class FileEditorManagerImpl extends FileEditorManagerEx implements \n void updateFileName ( final @ nullable VirtualFile file ) { \n SINGLE \n SINGLE \n - myQueue . queue ( new Update ( STRING0 ) { \n + myQueue . queue ( new Update ( STRING1 + ( file == null ? STRING2 : file . getPath ( ) ) ) { \n public boolean isExpired ( ) { \n if ( myProject . isDisposed ( ) || ! myProject . isOpen ( ) ) return true ; \n return file == null ? super . isExpired ( ) : ! file . isValid ( ) ;", "msg_token": "update all file tabs tooltips at startup"} {"diff": " public class SoundEvent extends AbstractCinematicEvent { \n public void initEvent ( Application app , Cinematic cinematic ) { \n super . initEvent ( app , cinematic ) ; \n audioNode = new AudioNode ( app . getAssetManager ( ) , path , stream ) ; \n + audioNode . setPositional ( false ) ; \n setLoopMode ( loopMode ) ; \n }", "msg_token": "SoundEvent now sets the underlying audioNode to not be positional"} {"diff": " public class LineWidgetManager extends JavaScriptObject \n \n public native final void removeAllLineWidgets ( ) COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT ; \n \n public native final void onWidgetChanged ( LineWidget widget ) / * - {", "msg_token": "skip line widgets removal for sessions without widgets"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n + @ retention ( RetentionPolicy . CLASS ) \n + @ target ( ElementType . FIELD ) \n public @ interface Ignore { \n \n } \n \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ retention ( RetentionPolicy . CLASS ) \n + @ target ( ElementType . FIELD ) \n public @ interface Index { \n \n }", "msg_token": "add explicit retention and target annotations to Ignore and Index annotations"} {"diff": " import NAMESPACE ; \n \n public class ExtensionScript extends ExtensionAdaptor implements CommandLineListener { \n \n + public static final int EXTENSION_ORDER = NUMBER0 ; \n public static final String NAME = STRING0 ; \n public static final ImageIcon ICON = new ImageIcon ( ZAP . class . getResource ( STRING1 ) ) ; SINGLE \n \n public class ExtensionScript extends ExtensionAdaptor implements CommandLineList \n COMMENT \n private void initialize ( ) { \n this . setName ( NAME ) ; \n - this . setOrder ( NUMBER0 ) ; \n + this . setOrder ( EXTENSION_ORDER ) ; \n \n ScriptEngine se = mgr . getEngineByName ( STRING2 ) ; \n if ( se != null ) {", "msg_token": "Exposed ScriptExtension s order publicly to help ordering of the Scripts"} {"diff": " public class JavaLanguagePlugin implements Plugin < Project > { \n } \n \n public void apply ( final Project target ) { \n - final JvmLanguagePlugin jvmLanguagePlugin = target . getPlugins ( ) . apply ( JvmLanguagePlugin . class ) ; \n + target . getPlugins ( ) . apply ( JvmLanguagePlugin . class ) ; \n \n JvmBinaryContainer jvmBinaryContainer = ( JvmBinaryContainer ) target . getExtensions ( ) . getByType ( BinariesContainer . class ) . getByName ( STRING0 ) ; \n jvmBinaryContainer . all ( new Action < ClassDirectoryBinary > ( ) {", "msg_token": "Removed unused variable"} {"diff": " public class Bits { \n bits [ i ] ^= other . bits [ i ] ; \n } \n \n - if ( bits . length > commonWords ) { \n - for ( int i = other . bits . length , s = bits . length ; s > i ; i ++ ) { \n - bits [ i ] = NUMBER0 L ; \n - } \n - } else if ( commonWords < other . bits . length ) { \n + if ( commonWords < other . bits . length ) { \n checkCapacity ( other . bits . length ) ; \n for ( int i = commonWords , s = other . bits . length ; s > i ; i ++ ) { \n bits [ i ] = other . bits [ i ] ;", "msg_token": "Fix Bits xor bug"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class LocalTransportManagement { \n \n private final LocalTransport transport ; \n \n - @ inject public LocalTransportManagement ( LocalTransport transport ) { \n - this . transport = transport ; \n + @ inject public LocalTransportManagement ( Transport transport ) { \n + this . transport = ( LocalTransport ) transport ; \n } \n } \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class NettyTransportManagement { \n \n private final NettyTransport transport ; \n \n - @ inject public NettyTransportManagement ( NettyTransport transport ) { \n - this . transport = transport ; \n + @ inject public NettyTransportManagement ( Transport transport ) { \n + this . transport = ( NettyTransport ) transport ; \n } \n \n @ managedattribute ( description = STRING0 )", "msg_token": "don t let guice by mistake inject two instances"} {"diff": " package NAMESPACE ; \n public class YQueue < T > \n { \n SINGLE \n - private class Chunk < T > \n + private static class Chunk < T > \n { \n final T [ ] values ; \n final int [ ] pos ;", "msg_token": "Change Chunk T to be a static inner class"} {"diff": " public class ConversationFragment extends Fragment { \n } \n \n public void onBackendConnected ( ) { \n + this . activity = ( ConversationActivity ) getActivity ( ) ; \n this . conversation = activity . getSelectedConversation ( ) ; \n if ( this . conversation == null ) { \n return ;", "msg_token": "fixed rare npe after race condition"} {"diff": " \n package NAMESPACE ; \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added TODO in AudioOptions"} {"diff": " public class MonitorTest { \n \n private static File testJar ; \n \n - private int processIndex = NUMBER0 ; \n private FileSystem fileSystem = mock ( FileSystem . class ) ; \n private SystemExit exit = mock ( SystemExit . class ) ;", "msg_token": "Fix Quality flaw in MonitorTest"} {"diff": " public enum TachyonStorageType { \n STORE ( NUMBER0 ) , \n \n COMMENT \n - NO_STORE ( NUMBER1 ) ; \n + NO_STORE ( NUMBER1 ) , \n + \n + COMMENT \n + PROMOTE ( NUMBER2 ) ; \n \n private final int mValue ; \n \n public enum TachyonStorageType { \n COMMENT \n COMMENT \n public boolean isStore ( ) { \n - return mValue == STORE . mValue ; \n + return mValue == STORE . mValue || mValue == PROMOTE . mValue ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isPromote ( ) { \n + return mValue == PROMOTE . mValue ; \n } \n }", "msg_token": "Add cache promote TachyonStoreType"} {"diff": " public class BootstrapCheckTests extends ESTestCase { \n } catch ( final RuntimeException e ) { \n assertThat ( \n e . getMessage ( ) , \n - containsString ( STRING0 ) ) ; \n + containsString ( STRING1 ) ) ; \n } \n } else { \n SINGLE", "msg_token": "Fix case in mlockall check error message"} {"diff": " class FastScroller { \n final View track = mTrackImage ; \n final View thumb = mThumbImage ; \n final Rect container = mContainerRect ; \n - final int containerWidth = container . width ( ) ; \n - final int widthMeasureSpec = MeasureSpec . makeMeasureSpec ( containerWidth , MeasureSpec . AT_MOST ) ; \n + final int maxWidth = container . width ( ) ; \n + final int widthMeasureSpec = MeasureSpec . makeMeasureSpec ( maxWidth , MeasureSpec . AT_MOST ) ; \n final int heightMeasureSpec = MeasureSpec . makeMeasureSpec ( NUMBER0 , MeasureSpec . UNSPECIFIED ) ; \n track . measure ( widthMeasureSpec , heightMeasureSpec ) ; \n \n final int trackWidth = track . getMeasuredWidth ( ) ; \n - final int thumbHalfHeight = thumb == null ? NUMBER0 : thumb . getHeight ( ) / NUMBER1 ; \n + final int thumbHalfHeight = thumb . getHeight ( ) / NUMBER1 ; \n final int left = thumb . getLeft ( ) + ( thumb . getWidth ( ) - trackWidth ) / NUMBER1 ; \n final int right = left + trackWidth ; \n final int top = container . top + thumbHalfHeight ;", "msg_token": "Remove unnecessary null check in FastScroller"} {"diff": " public class TextToSpeech { \n String defaultEngine = getDefaultEngine ( ) ; \n String engine = defaultEngine ; \n if ( ! areDefaultsEnforced ( ) && ! TextUtils . isEmpty ( mRequestedEngine ) \n - && mEnginesHelper . isEngineEnabled ( engine ) ) { \n + && mEnginesHelper . isEngineEnabled ( mRequestedEngine ) ) { \n engine = mRequestedEngine ; \n }", "msg_token": "Fix a bug in TextToSpeech"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class Device \n + public final class Device \n implements Serializable \n { \n private static final long serialVersionUID = - NUMBER0 ;", "msg_token": "Made Device a final class"} {"diff": " public final class SecurityNamespaceHandler implements NamespaceHandler { \n public BeanDefinition parse ( Element element , ParserContext pc ) { \n if ( ! namespaceMatchesVersion ( element ) ) { \n pc . getReaderContext ( ) \n - . fatal ( STRING0 \n - + STRING1 , \n + . fatal ( STRING2 \n + + STRING3 , \n element ) ; \n } \n String name = pc . getDelegate ( ) . getLocalName ( element ) ;", "msg_token": "Fix error message for wrong xsd schema"} {"diff": " public class DatabaseAdaptor \n private String _connectionUrl ; \n private Driver _driver ; \n private DataSource _datasource ; \n + \n + \n + \n private String _jndiName ; \n \n \n public class DatabaseAdaptor \n _jndiName = jndi ; \n } \n \n + \n + public String getDatasourceName ( ) \n + { \n + return _jndiName ; \n + } \n + \n + \n + public DataSource getDatasource ( ) \n + { \n + return _datasource ; \n + } \n + \n + \n + public String getDriverClassName ( ) \n + { \n + return _driverClassName ; \n + } \n + \n + \n + public Driver getDriver ( ) \n + { \n + return _driver ; \n + } \n + \n + public String getConnectionUrl ( ) \n + { \n + return _connectionUrl ; \n + } \n + \n + \n + \n public void initialize ( ) \n throws Exception \n { \n public class DatabaseAdaptor \n } \n } \n } \n - \n \n \n COMMENT", "msg_token": "Add extra getters to DatabaseAdaptor"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add a missing copyright"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TrivialRemainingWeightHeuristic implements RemainingWeightHeuristic \n @ override \n public void reset ( ) { } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static class Factory implements RemainingWeightHeuristicFactory { \n + @ override \n + public RemainingWeightHeuristic getInstanceForSearch ( RoutingRequest opt ) { \n + return new TrivialRemainingWeightHeuristic ( ) ; \n + } \n + } \n }", "msg_token": "add factory to trivial remaining weight heuristic"} {"diff": " public abstract class AppIntroBase extends AppCompatActivity { \n COMMENT \n COMMENT \n COMMENT \n - public void setColorTransitions ( boolean colorTransitionsEnabled ) { \n + public void setColorTransitionsEnabled ( boolean colorTransitionsEnabled ) { \n areColorTransitionsEnabled = colorTransitionsEnabled ; \n }", "msg_token": "renamed setColorTransitions to setColorTransitionsEnabled"} {"diff": " public class RetryUntilElapsed extends SleepingRetry \n @ override \n public boolean allowRetry ( int retryCount , long elapsedTimeMs ) \n { \n - return ( elapsedTimeMs < maxElapsedTimeMs ) ; \n + return super . allowRetry ( retryCount , elapsedTimeMs ) && ( elapsedTimeMs < maxElapsedTimeMs ) ; \n } \n \n @ override", "msg_token": "Make RetryUntilElapsed respect sleepMsBetweenRetries via the implementation in the base clase"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileSystemMasterClientRestApiTest { \n Map < String , String > params = Maps . newHashMap ( ) ; \n params . put ( STRING0 , STRING1 ) ; \n \n - Random random = new Random ( ) ; \n - long scheduleAsyncPersistResult = random . nextLong ( ) ; \n - Mockito . doReturn ( scheduleAsyncPersistResult ) . when ( sFileSystemMaster ) \n - . scheduleAsyncPersistence ( Mockito . < AlluxioURI > any ( ) ) ; \n - \n TestCaseFactory . newMasterTestCase ( \n getEndpoint ( FileSystemMasterClientRestServiceHandler . SCHEDULE_ASYNC_PERSIST ) , params , \n - STRING2 , scheduleAsyncPersistResult , mResource ) . run ( ) ; \n + STRING2 , STRING3 , mResource ) . run ( ) ; \n \n Mockito . verify ( sFileSystemMaster ) . scheduleAsyncPersistence ( Mockito . < AlluxioURI > any ( ) ) ; \n }", "msg_token": "updated the integration test"} {"diff": " public class MediaDriver implements AutoCloseable \n private MediaDriver start ( ) \n { \n conductorThread = new Thread ( conductor ) ; \n - startThread ( conductorThread , STRING0 ) ; \n + startThread ( conductorThread , STRING1 ) ; \n \n senderThread = new Thread ( sender ) ; \n - startThread ( senderThread , STRING2 ) ; \n + startThread ( senderThread , STRING3 ) ; \n \n receiverThread = new Thread ( receiver ) ; \n - startThread ( receiverThread , STRING4 ) ; \n + startThread ( receiverThread , STRING5 ) ; \n \n eventReaderThread = new Thread ( eventReader ) ; \n - startThread ( eventReaderThread , STRING6 ) ; \n + startThread ( eventReaderThread , STRING7 ) ; \n \n return this ; \n }", "msg_token": "Java Qualify the names of aeron media driver threads"} {"diff": " public class ActionBarOverlayLayout extends ViewGroup { \n } \n \n public int getActionBarHideOffset ( ) { \n - return - ( ( int ) mActionBarTop . getTranslationY ( ) ) ; \n + return mActionBarTop != null ? - ( ( int ) mActionBarTop . getTranslationY ( ) ) : NUMBER0 ; \n } \n \n public void setActionBarHideOffset ( int offset ) {", "msg_token": "Fix a bug in querying showing state for action bars"} {"diff": " public class JavaFoldingBuilder extends FoldingBuilderEx { \n \n if ( ! baseClass . hasModifierProperty ( PsiModifier . ABSTRACT ) ) return false ; \n \n - boolean hasEmptyConstructor = false ; \n - for ( final PsiMethod method : baseClass . getConstructors ( ) ) { \n + final PsiMethod [ ] constructors = baseClass . getConstructors ( ) ; \n + boolean hasEmptyConstructor = constructors . length == NUMBER0 ; \n + for ( final PsiMethod method : constructors ) { \n if ( method . getParameterList ( ) . getParametersCount ( ) == NUMBER0 ) { \n hasEmptyConstructor = true ; \n break ;", "msg_token": "restore Function folding"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n ApplicationInfo ai = mIPackageManager . getApplicationInfo ( imm . getPackageName ( ) , \n PackageManager . GET_DISABLED_UNTIL_USED_COMPONENTS , \n mSettings . getCurrentUserId ( ) ) ; \n - if ( ai . enabledSetting \n + if ( ai != null && ai . enabledSetting \n == PackageManager . COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED ) { \n mIPackageManager . setApplicationEnabledSetting ( imm . getPackageName ( ) , \n PackageManager . COMPONENT_ENABLED_STATE_DEFAULT ,", "msg_token": "Fix possible NPE"} {"diff": " public class TileRefinery extends TileMachine implements ITankContainer , IPowerR \n if ( liquid == null ) \n return true ; \n \n - if ( liquid . isLiquidEqual ( new LiquidStack ( slot1 . liquidId , slot1 . quantity , NUMBER0 ) ) ) { \n + if ( liquid . containsLiquid ( new LiquidStack ( slot1 . liquidId , slot1 . quantity , NUMBER0 ) ) ) { \n slot1 . quantity -= liquid . amount ; \n return true ; \n - } else if ( liquid . isLiquidEqual ( new LiquidStack ( slot2 . liquidId , slot2 . quantity , NUMBER0 ) ) ) { \n + } else if ( liquid . containsLiquid ( new LiquidStack ( slot2 . liquidId , slot2 . quantity , NUMBER0 ) ) ) { \n slot2 . quantity -= liquid . amount ; \n return true ; \n }", "msg_token": "refineries now check liquid AND volume"} {"diff": " public class RealmTest extends AndroidTestCase { \n } \n \n \n + public void testGetRealmAfterCompactRealm ( ) { \n + final RealmConfiguration configuration = testRealm . getConfiguration ( ) ; \n + testRealm . close ( ) ; \n + testRealm = null ; \n + Realm . compactRealm ( configuration ) ; \n + testRealm = Realm . getInstance ( configuration ) ; \n + } \n + \n public void testCompactRealmFileThrowsIfOpen ( ) throws IOException { \n try { \n Realm . compactRealm ( TestHelper . createConfiguration ( getContext ( ) ) ) ;", "msg_token": "Add test to open Realm database after compactRealm"} {"diff": " public class ErrorProneScanner extends Scanner { \n } \n } \n \n - public ErrorProneScanner ( BugChecker checker ) { \n - registerNodeTypes ( checker ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public ErrorProneScanner ( BugChecker . . . checkers ) { \n + for ( BugChecker checker : checkers ) { \n + registerNodeTypes ( checker ) ; \n + } \n } \n \n private final List < MethodInvocationTreeMatcher > methodInvocationMatchers =", "msg_token": "Add ability to construct an ErrorProneScanner with a list of checks"} {"diff": " public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport { \n storeType ( pexp , setter . getParameters ( ) [ NUMBER0 ] . getType ( ) ) ; \n SetterInfo info = new SetterInfo ( current , setter ) ; \n BinaryExpression enclosingBinaryExpression = typeCheckingContext . getEnclosingBinaryExpression ( ) ; \n - putSetterInfo ( enclosingBinaryExpression . getLeftExpression ( ) , info ) ; \n + if ( enclosingBinaryExpression != null ) putSetterInfo ( enclosingBinaryExpression . getLeftExpression ( ) , info ) ; \n return true ; \n } else if ( getter != null ) { \n pexp . putNodeMetaData ( StaticTypesMarker . READONLY_PROPERTY , true ) ;", "msg_token": "add null check for enclosing binary expression"} {"diff": " public class MainFrame extends JPanel implements DataProvider { \n \n DefaultActionGroup toolbarGroup = new DefaultActionGroup ( ) ; \n toolbarGroup . add ( ActionManager . getInstance ( ) . getAction ( VcsLogActionPlaces . TOOLBAR_ACTION_GROUP ) ) ; \n - toolbarGroup . add ( refreshLogAction , new Constraints ( Anchor . AFTER , STRING0 ) ) ; \n + toolbarGroup . add ( refreshLogAction ) ; \n \n DefaultActionGroup mainGroup = new DefaultActionGroup ( ) ; \n mainGroup . add ( myFilterUi . createActionGroup ( ) ) ;", "msg_token": "vcs log remove a constraint since it does not make any difference"} {"diff": " public class SQLUtils { \n } \n \n if ( JdbcUtils . ODPS . equals ( dbType ) ) { \n - return toDB2String ( sqlObject ) ; \n + return toOdpsString ( sqlObject ) ; \n } \n \n return toSQLServerString ( sqlObject ) ;", "msg_token": "SQLUtils surpport ODPS"} {"diff": " public class CommentUserNoteBlock extends UserNoteBlock { \n siteTextView . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View v ) { \n - getOnNoteBlockTextClickListener ( ) . showSitePreview ( getMetaSiteId ( ) , getMetaSiteUrl ( ) ) ; \n + if ( getOnNoteBlockTextClickListener ( ) != null ) { \n + getOnNoteBlockTextClickListener ( ) . showSitePreview ( getMetaSiteId ( ) , getMetaSiteUrl ( ) ) ; \n + } \n } \n } ) ; \n }", "msg_token": "Added null check on getOnNoteBlockTextClickListener"} {"diff": " public class TypeListItem extends Item < TypeListItem > { \n COMMENT \n COMMENT \n COMMENT \n - private TypeListItem ( DexFile dexFile , List < TypeIdItem > typeList ) { \n + private TypeListItem ( DexFile dexFile , TypeIdItem [ ] typeList ) { \n super ( dexFile ) ; \n \n - this . typeList = new TypeIdItem [ typeList . size ( ) ] ; \n - typeList . toArray ( this . typeList ) ; \n + this . typeList = typeList ; \n } \n \n COMMENT \n public class TypeListItem extends Item < TypeListItem > { \n COMMENT \n COMMENT \n COMMENT \n - public static TypeListItem getInternedTypeListItem ( DexFile dexFile , List < TypeIdItem > typeList ) { \n + public static TypeListItem getInternedTypeListItem ( DexFile dexFile , TypeIdItem [ ] typeList ) { \n TypeListItem typeListItem = new TypeListItem ( dexFile , typeList ) ; \n return dexFile . TypeListsSection . intern ( typeListItem ) ; \n }", "msg_token": "Change TypeListItem constructor to take an array rather than a list to be consistent with other classes"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "fix wrong package name"} {"diff": " public class JLanguageTool { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public Set < String > getDisabledRules ( ) { \n + return disabledRules ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add method to get disabled rules"} {"diff": " public class ConfigureMapMenu { \n } else { \n ma . getMapLayers ( ) . showGPXFileLayer ( getAlreadySelectedGpx ( ) , ma . getMapView ( ) ) ; \n } \n + adapter . item ( R . string . layer_gpx_layer ) . selected ( \n + app . getSelectedGpxHelper ( ) . isShowingAnyGpxFiles ( ) ? NUMBER0 : NUMBER1 ) \n + SINGLE \n + . icons ( R . drawable . ic_action_polygom_dark , R . drawable . ic_action_polygom_light ) \n + . listen ( l ) . reg ( ) ; \n } else if ( itemId == R . string . layer_transport_route ) { \n ma . getMapLayers ( ) . getTransportInfoLayer ( ) . setVisible ( isChecked ) ; \n }", "msg_token": "Try re initialiize tick mark for GPX track"} {"diff": " package NAMESPACE ; \n COMMENT \n public interface SqsConstants { \n \n - String ATTRIBUTES = STRING0 ; \n - String MD5_OF_BODY = STRING1 ; \n - String MESSAGE_ID = STRING2 ; \n - String RECEIPT_HANDLE = STRING3 ; \n + String ATTRIBUTES = STRING4 ; \n + String MD5_OF_BODY = STRING5 ; \n + String MESSAGE_ID = STRING6 ; \n + String RECEIPT_HANDLE = STRING7 ; \n }", "msg_token": "camel aws sks component uses aws preifx in scheme component nane"} {"diff": " public class WorkbenchScreen extends Composite \n @ handler \n void onActivateBuild ( ) { paneManager_ . activateTab ( Tab . Build ) ; } \n @ handler \n - void onActivatePresentation ( ) { paneManager_ . activateTab ( Tab . Presentation ) ; } \n + void onActivatePresentation ( ) { paneManager_ . activateTab ( Tab . Presentation ) ; } \n + @ handler \n + void onActivateViewer ( ) { paneManager_ . activateTab ( Tab . Viewer ) ; } \n + \n \n @ handler \n void onLayoutZoomEnvironment ( ) { paneManager_ . zoomTab ( Tab . Environment ) ; } \n public class WorkbenchScreen extends Composite \n @ handler \n void onLayoutZoomBuild ( ) { paneManager_ . zoomTab ( Tab . Build ) ; } \n @ handler \n - void onLayoutZoomPresentation ( ) { paneManager_ . zoomTab ( Tab . Presentation ) ; } \n + void onLayoutZoomPresentation ( ) { paneManager_ . zoomTab ( Tab . Presentation ) ; } \n + @ handler \n + void onLayoutZoomViewer ( ) { paneManager_ . zoomTab ( Tab . Viewer ) ; } \n \n @ handler \n void onMacPreferences ( )", "msg_token": "add Viewer activate zoom command handlers"} {"diff": " public class MediaControl \n else if ( sourceFormat . matches ( h263Fmt ) ) \n { \n SINGLE \n - if ( size . width < NUMBER0 ) \n - { \n - width = NUMBER0 ; \n - height = NUMBER1 ; \n - } \n - else if ( size . width < NUMBER2 ) \n - { \n - width = NUMBER2 ; \n - height = NUMBER3 ; \n - } \n - else \n - { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n width = NUMBER4 ; \n height = NUMBER5 ; \n \n - } \n + SINGLE \n } \n else \n {", "msg_token": "Set size to a fixed size temp fix for null size"} {"diff": " public class NodeToolBar extends javax . swing . JPanel implements ComponentListener \n public NodeToolBar ( NodePanel node ) { \n initComponents ( ) ; \n this . node = node ; \n + if ( node . getType ( ) != NodePanel . NodeType . Fragment && node . getType ( ) != NodePanel . NodeType . Vertex ) { \n + remove ( codeButton ) ; \n + } \n node . addComponentListener ( this ) ; \n }", "msg_token": "Removed the code display button for nodes that don t have code"} {"diff": " public final class FileOutStreamAsyncWriteIntegrationTest \n Assert . assertTrue ( HeartbeatScheduler . await ( HeartbeatContext . WORKER_FILESYSTEM_MASTER_SYNC , NUMBER0 , \n TimeUnit . SECONDS ) ) ; \n \n - SINGLE \n IntegrationTestUtils . waitForPersist ( mLocalTachyonClusterResource , file . getFileId ( ) ) ; \n \n HeartbeatScheduler . schedule ( HeartbeatContext . WORKER_FILESYSTEM_MASTER_SYNC ) ;", "msg_token": "Remove outdated comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AgentControllerTest { \n } \n \n @ test \n - @ ignore ( STRING0 ) \n public void processCancelBuildCommandBuild ( ) throws IOException , InterruptedException { \n when ( agentRegistry . uuid ( ) ) . thenReturn ( agentUuid ) ; \n when ( httpService . httpClient ( ) ) . thenReturn ( httpClient ) ;", "msg_token": "Revert Ignore flaky test"} {"diff": " public class NodeDisconnectJobMonitorService \n @ override \n public void onNodeDisconnected ( final DiscoveryNode node ) { \n final Collection < JobExecutionContext > contexts = jobContextService . getContextsByCoordinatorNode ( node . id ( ) ) ; \n + if ( contexts . isEmpty ( ) ) { \n + return ; \n + } \n + \n threadPool . schedule ( DELAY , ThreadPool . Names . GENERIC , new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "Don t schedule context cleanup if there aren t any"} {"diff": " public class RemoteDebugger implements ProcessDebugger { \n } \n \n for ( String line : lines ) { \n - processResponse ( line ) ; \n + processResponse ( line + STRING0 ) ; \n } \n } \n }", "msg_token": "add n to processed response"} {"diff": " import NAMESPACE ; \n COMMENT \n public class LocalServerPipelineFactory implements ChannelPipelineFactory { \n \n - private final Executor eventExecutor ; \n + private final ExecutionHandler executionHandler ; \n \n public LocalServerPipelineFactory ( Executor eventExecutor ) { \n - this . eventExecutor = eventExecutor ; \n + executionHandler = new ExecutionHandler ( eventExecutor ) ; \n } \n \n public ChannelPipeline getPipeline ( ) throws Exception { \n final ChannelPipeline pipeline = Channels . pipeline ( ) ; \n pipeline . addLast ( STRING0 , new StringDecoder ( ) ) ; \n pipeline . addLast ( STRING1 , new StringEncoder ( ) ) ; \n - pipeline . addLast ( STRING2 , new ExecutionHandler ( eventExecutor ) ) ; \n + pipeline . addLast ( STRING2 , executionHandler ) ; \n pipeline . addLast ( STRING3 , new EchoCloseServerHandler ( ) ) ; \n return pipeline ; \n }", "msg_token": "Fixed a wrong usage of ExecutionHandler in the example"} {"diff": " public class ThumbnailRequestCoordinator implements RequestCoordinator , \n if ( coordinator != null ) { \n coordinator . onRequestSuccess ( this ) ; \n } \n - thumb . clear ( ) ; \n + if ( ! thumb . isComplete ( ) ) { \n + thumb . clear ( ) ; \n + } \n } \n \n private boolean parentIsAnyResourceSet ( ) {", "msg_token": "Fix bitmap reuse bug when cross fading"} {"diff": " public class EnglishGrammaticalRelations { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static final GrammaticalRelation TEMPORAL_MODIFIER = \n new GrammaticalRelation ( Language . English , STRING0 , STRING1 , \n - TemporalModifierGRAnnotation . class , NP_ADVERBIAL_MODIFIER , STRING2 , tregexCompiler , \n + TemporalModifierGRAnnotation . class , NP_ADVERBIAL_MODIFIER , STRING3 , tregexCompiler , \n new String [ ] { \n - STRING4 , \n - STRING5 + timeWordRegex + STRING6 , \n + STRING7 , \n + STRING8 + timeWordRegex + STRING6 , \n SINGLE \n STRING9 , \n STRING10 + timeWordRegex + STRING11 ,", "msg_token": "Recognize tmod in RRC"} {"diff": " abstract class PooledByteBuf < T > extends AbstractByteBuf implements Unsafe { \n \n void init ( PoolChunk < T > chunk , long handle , T memory , int offset , int length ) { \n assert handle >= NUMBER0 ; \n + assert memory != null ; \n + \n this . chunk = chunk ; \n this . handle = handle ; \n this . memory = memory ;", "msg_token": "Ensure PooledByteBuf init is not called with null memory"} {"diff": " public class Files \n ClientInitState state = sessionInfo . getClientState ( ) ; \n \n SINGLE \n - new JSObjectStateValue ( MODULE_FILES , KEY_COLUMN_SORT_ORDER , false , state , false ) \n + new JSObjectStateValue ( MODULE_FILES , KEY_SORT_ORDER , false , state , false ) \n { \n @ override \n protected void onInit ( JsObject value ) \n public class Files \n private final Provider < FilesUpload > pFilesUpload_ ; \n private static final String MODULE_FILES = STRING0 ; \n private static final String KEY_PATH = STRING1 ; \n - private static final String KEY_COLUMN_SORT_ORDER = STRING2 ; \n + private static final String KEY_SORT_ORDER = STRING3 ; \n private JsArray < FilesColumnSortInfo > columnSortOrder_ = null ; \n }", "msg_token": "change sort order key name to avoid duplicate"} {"diff": " public interface JvmApiSpec { \n COMMENT \n void exports ( String packageName ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n Set < JvmPackageName > getExports ( ) ; \n \n void dependencies ( Closure < ? > configureAction ) ;", "msg_token": "Add Javadoc for JvmApiSpec getExports"} {"diff": " public class SecureNio2Channel extends Nio2Channel { \n writePending = false ; \n throw new ExecutionException ( t ) ; \n } \n - integer . get ( ) ; \n - if ( written == NUMBER0 ) { \n + if ( integer . get ( ) . intValue ( ) > NUMBER0 && written == NUMBER0 ) { \n wrap ( ) ; \n return get ( ) ; \n } else {", "msg_token": "Fix infinite loop observed while running unit tests when write is called"} {"diff": " public class DefaultEurekaClientConfig implements EurekaClientConfig { \n return configInstance . getIntProperty ( \n namespace + STRING0 , NUMBER0 ) . get ( ) ; \n } \n + \n + @ override \n + public int getInitialInstanceInfoReplicationIntervalSeconds ( ) { \n + return configInstance . getIntProperty ( \n + namespace + STRING1 , NUMBER1 ) . get ( ) ; \n + } \n \n COMMENT \n COMMENT \n public class DiscoveryClient implements LookupService { \n \n SINGLE \n scheduler . scheduleWithFixedDelay ( new InstanceInfoReplicator ( ) , \n - NUMBER2 + clientConfig . getInstanceInfoReplicationIntervalSeconds ( ) , \n + clientConfig . getInitialInstanceInfoReplicationIntervalSeconds ( ) , \n clientConfig . getInstanceInfoReplicationIntervalSeconds ( ) , TimeUnit . SECONDS ) ; \n \n } \n public interface EurekaClientConfig { \n COMMENT \n COMMENT \n int getInstanceInfoReplicationIntervalSeconds ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + int getInitialInstanceInfoReplicationIntervalSeconds ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "add eureka appinfo initial replicate time property to allow faster initial registration"} {"diff": " \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n - public class FilteredBlockAndPartialMerkelTreeTests extends TestWithPeerGroup { \n + public class FilteredBlockAndPartialMerkleTreeTests extends TestWithPeerGroup { \n @ test \n SINGLE \n public void deserializeFilteredBlock ( ) throws Exception {", "msg_token": "Fix typo in name of FilteredBlockAndPartialMerkleTreeTests"} {"diff": " public interface ClaimStrategy \n if ( expectedSequence == cursor . get ( ) ) \n { \n cursor . set ( sequence ) ; \n + if ( sequence == claimSequence . get ( ) ) \n + { \n + return ; \n + } \n } \n else \n { \n public interface ClaimStrategy \n } \n } \n \n - if ( NUMBER0 L == csLock . get ( ) && csLock . compareAndSet ( NUMBER0 L , NUMBER1 ) ) \n + if ( csLock . compareAndSet ( NUMBER0 L , NUMBER1 ) ) \n { \n long initialCursor = cursor . get ( ) ; \n long currentCursor = initialCursor ; \n public interface ClaimStrategy \n cursor . set ( currentCursor ) ; \n } \n \n - csLock . lazySet ( NUMBER0 L ) ; \n + csLock . set ( NUMBER0 L ) ; \n } \n }", "msg_token": "Removed optimisation for lazySet on critical section of claim strategy"} {"diff": " public abstract class HTTP2Session implements ISession , Parser . Listener \n @ override \n public void onConnectionFailure ( int error , String reason ) \n { \n - \n + SINGLE \n } \n \n @ override \n public abstract class HTTP2Session implements ISession , Parser . Listener \n @ override \n public void settings ( SettingsFrame frame , Callback callback ) \n { \n - \n + frame ( frame , callback ) ; \n } \n \n @ override \n public void ping ( PingFrame frame , Callback callback ) \n { \n - \n + frame ( frame , callback ) ; \n } \n \n @ override \n public void reset ( ResetFrame frame , Callback callback ) \n { \n - \n + frame ( frame , callback ) ; \n } \n \n @ override \n public interface Session \n \n public Stream getStream ( int streamId ) ; \n \n - SINGLE \n + SINGLE \n \n public interface Listener \n {", "msg_token": "Fixed generation of frames via Session API methods"} {"diff": " public class TransactionBroadcast { \n numWaitingFor = ( int ) Math . ceil ( ( peers . size ( ) - numToBroadcastTo ) / FLOAT0 ) ; \n Collections . shuffle ( peers , random ) ; \n peers = peers . subList ( NUMBER0 , numToBroadcastTo ) ; \n - log . info ( STRING0 , \n - numConnected , tx . getHashAsString ( ) , numToBroadcastTo , numWaitingFor , Joiner . on ( STRING1 ) . join ( peers ) ) ; \n + log . info ( STRING2 , numConnected , tx . getHashAsString ( ) ) ; \n + log . info ( STRING3 , numToBroadcastTo , numWaitingFor , Joiner . on ( STRING1 ) . join ( peers ) ) ; \n for ( Peer peer : peers ) { \n try { \n peer . sendMessage ( pinnedTx ) ;", "msg_token": "Split an unwieldy log line"} {"diff": " public class RowReceiverToResultReceiver implements RowReceiver { \n private long rowCount = NUMBER0 ; \n \n private ResumeHandle resumeHandle = null ; \n - private RowReceiver . Result nextRowResult = Result . CONTINUE ; \n \n public RowReceiverToResultReceiver ( ResultReceiver resultReceiver , int maxRows ) { \n this . resultReceiver = resultReceiver ; \n public class RowReceiverToResultReceiver implements RowReceiver { \n if ( maxRows > NUMBER0 && rowCount % maxRows == NUMBER0 ) { \n return Result . PAUSE ; \n } \n - return nextRowResult ; \n + return Result . CONTINUE ; \n } \n \n @ override \n public class RowReceiverToResultReceiver implements RowReceiver { \n \n @ override \n public void fail ( Throwable throwable ) { \n - nextRowResult = Result . STOP ; \n resultReceiver . fail ( throwable ) ; \n }", "msg_token": "fixes row emitting on a retry plan executed with rowReceivers re used"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n \n @ override \n public Bitmap getTaskDescriptionIcon ( String filename ) { \n + if ( ! FileUtils . isValidExtFilename ( filename ) \n + || ! filename . contains ( ActivityRecord . ACTIVITY_ICON_SUFFIX ) ) { \n + throw new IllegalArgumentException ( STRING0 + filename ) ; \n + } \n return mTaskPersister . getTaskDescriptionIcon ( filename ) ; \n } \n \n final class ActivityRecord { \n private static final String ATTR_LAUNCHEDFROMPACKAGE = STRING1 ; \n private static final String ATTR_RESOLVEDTYPE = STRING2 ; \n private static final String ATTR_COMPONENTSPECIFIED = STRING3 ; \n - private static final String ACTIVITY_ICON_SUFFIX = STRING4 ; \n + static final String ACTIVITY_ICON_SUFFIX = STRING4 ; \n \n final ActivityManagerService service ; SINGLE \n final IApplicationToken . Stub appToken ; SINGLE", "msg_token": "Add protection for accessing images"} {"diff": " public class SortHelper { \n public static Order defaultTaskOrder ( ) { \n return Order . asc ( Functions . caseStatement ( Task . DUE_DATE . eq ( NUMBER0 ) , \n Functions . now ( ) + STRING0 , \n - Task . DUE_DATE ) + STRING1 + ( NUMBER1 * DateUtilities . ONE_DAY ) + STRING2 + \n + adjustedDueDateFunction ( ) ) + STRING1 + ( NUMBER1 * DateUtilities . ONE_DAY ) + STRING2 + \n Task . IMPORTANCE + STRING3 + Task . COMPLETION_DATE ) ; \n } \n \n + private static String adjustedDueDateFunction ( ) { \n + return new StringBuilder ( STRING4 ) . append ( Task . DUE_DATE . name ) . append ( STRING5 ) \n + . append ( STRING6 ) . append ( Task . DUE_DATE . name ) . append ( STRING7 ) . append ( STRING8 ) . append ( Task . DUE_DATE . name ) \n + . append ( STRING1 ) . append ( DateUtilities . ONE_HOUR * NUMBER2 + DateUtilities . ONE_MINUTE * NUMBER3 ) . append ( STRING9 ) . toString ( ) ; \n + } \n + \n }", "msg_token": "Adjust autosort function to handle due dates with times better"} {"diff": " abstract class DocumentsSynchronizer { \n @ notnull protected final Document myDocument2 ; \n @ nullable private final Project myProject ; \n \n - private volatile boolean myDuringModification = false ; \n + private boolean myDuringModification = false ; \n \n private final DocumentAdapter myListener1 = new DocumentAdapter ( ) { \n @ override", "msg_token": "remove unneeded volatile"} {"diff": " public class TestConditions \n assertFunction ( STRING0 , null ) ; \n } \n \n + @ test \n + public void testDistinctFrom ( ) \n + throws Exception \n + { \n + assertFunction ( STRING1 , false ) ; \n + assertFunction ( STRING2 , true ) ; \n + assertFunction ( STRING3 , true ) ; \n + assertFunction ( STRING4 , false ) ; \n + assertFunction ( STRING5 , true ) ; \n + \n + assertFunction ( STRING6 , true ) ; \n + assertFunction ( STRING7 , false ) ; \n + assertFunction ( STRING8 , false ) ; \n + assertFunction ( STRING9 , true ) ; \n + assertFunction ( STRING10 , false ) ; \n + } \n + \n @ test ( expectedExceptions = RuntimeException . class , expectedExceptionsMessageRegExp = STRING11 ) \n public void testLikeInvalidEscape ( ) \n {", "msg_token": "Add unit tests for IS DISTINCT FROM"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public final class URL implements Serializable { \n \n private static final long serialVersionUID = NUMBER0 ;", "msg_token": "Deprecate now unused class"} {"diff": " public class JavaAwareCompilationUnit extends CompilationUnit { \n private boolean keepStubs ; \n \n public JavaAwareCompilationUnit ( CompilerConfiguration configuration ) { \n - this ( configuration , null ) ; \n + this ( configuration , null , null ) ; \n } \n \n public JavaAwareCompilationUnit ( CompilerConfiguration configuration , GroovyClassLoader groovyClassLoader ) { \n - super ( configuration , null , groovyClassLoader ) ; \n + this ( configuration , groovyClassLoader , null ) ; \n + } \n + \n + public JavaAwareCompilationUnit ( CompilerConfiguration configuration , GroovyClassLoader groovyClassLoader , \n + GroovyClassLoader transformClassLoader ) { \n + super ( configuration , null , groovyClassLoader , transformClassLoader ) ; \n javaSources = new LinkedList < String > ( ) ; \n Map options = configuration . getJointCompilationOptions ( ) ; \n generationGoal = ( File ) options . get ( STRING0 ) ;", "msg_token": "JavaAwareCompilationUnit should have a constructor that allows to set transformLoader"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove a bad import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JetDecompiledData { \n return null ; \n } \n ClsFileImpl clsFile = ( ClsFileImpl ) psiFile ; \n - SINGLE \n if ( clsFile . getClasses ( ) . length != NUMBER0 ) { \n - throw new AssertionError ( STRING0 + Arrays . toString ( clsFile . getClasses ( ) ) ) ; \n + return null ; \n } \n PsiClass psiClass = clsFile . getClasses ( ) [ NUMBER1 ] ; \n return isKotlinNamespaceClass ( psiClass ) || isKotlinClass ( psiClass ) ? clsFile : null ;", "msg_token": "Replaced assertion with returning null when class file contains several classes"} {"diff": " public class JetParsing extends AbstractJetParsing { \n IElementType declType = parseMemberDeclarationRest ( enumDetector . isDetected ( ) ) ; \n \n if ( declType == null ) { \n - errorAndAdvance ( STRING0 ) ; \n + errorWithRecovery ( STRING0 , TokenSet . create ( RBRACE ) ) ; \n decl . drop ( ) ; \n } \n else {", "msg_token": "Added recovery in JetParsing parseMemberDeclaration"} {"diff": " public class PeopleInviteFragment extends Fragment implements \n } \n \n @ override \n + public void onCreate ( Bundle savedInstanceState ) { \n + super . onCreate ( savedInstanceState ) ; \n + SINGLE \n + setRetainInstance ( true ) ; \n + } \n + \n + @ override \n public View onCreateView ( final LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { \n setHasOptionsMenu ( true ) ; \n - \n return inflater . inflate ( R . layout . people_invite_fragment , container , false ) ; \n }", "msg_token": "added setRetainInstanceState so the fragment instance will still exist upon config changes"} {"diff": " public class TimeFormatter { \n Pattern textPattern ; \n \n public CustomDateFormatExtractor ( String timePattern , String localeString ) { \n - Locale locale = ( localeString != null ) ? Locale . forLanguageTag ( localeString ) : Locale . getDefault ( ) ; \n + Locale locale = ( localeString != null ) ? new Locale ( localeString ) : Locale . getDefault ( ) ; \n this . timePattern = timePattern ; \n builder = new FormatterBuilder ( ) ; \n builder . locale = locale ;", "msg_token": "Don t use forLanguageTag to get locale for now"} {"diff": " public class GenericRefTest { \n public void testGetFullRef ( ) throws Exception { \n assertRefStringIsUnchanged ( RefType . DEFINITION , STRING0 ) ; \n assertRefStringIsUnchanged ( RefType . DEFINITION , STRING1 ) ; \n + assertRefStringIsUnchanged ( RefType . DEFINITION , STRING2 ) ; \n + assertRefStringIsUnchanged ( RefType . DEFINITION , STRING3 ) ; \n assertRefStringIsUnchanged ( RefType . PARAMETER , STRING4 ) ; \n assertRefStringIsUnchanged ( RefType . PARAMETER , STRING4 ) ; \n assertRefStringIsUnchanged ( RefType . DEFINITION , STRING5 ) ; \n public class GenericRefTest { \n public void testGetSimpleRef ( ) throws Exception { \n assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING0 ) ; \n assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING1 ) ; \n + assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING2 ) ; \n + assertSimpleRefMatchesRef ( RefType . DEFINITION , STRING3 ) ; \n assertSimpleRefMatchesRef ( RefType . PARAMETER , STRING4 ) ; \n assertSimpleRefMatchesRef ( RefType . PARAMETER , STRING4 ) ;", "msg_token": "update a few more tests"} {"diff": " public class HttpClientImpl implements HttpClient , HttpResponseCode , java . io . Ser \n write ( out , STRING0 + param . getName ( ) + STRING1 ) ; \n write ( out , STRING2 ) ; \n logger . debug ( param . getValue ( ) ) ; \n - out . write ( encode ( param . getValue ( ) ) . getBytes ( STRING3 ) ) ; \n + SINGLE \n + out . write ( param . getValue ( ) . getBytes ( STRING3 ) ) ; \n write ( out , STRING4 ) ; \n } \n }", "msg_token": "TwitterClientImpl sends urlencoded text plain params"} {"diff": " public class ServerBindings extends AbstractModule { \n bind ( MessageGateway . class ) . to ( MessageGatewayImpl . class ) ; \n bind ( SecurityContextFactory . class ) . to ( ShiroSecurityContextFactory . class ) ; \n bind ( AlertSender . class ) . to ( FormattedEmailAlertSender . class ) ; \n + bind ( StreamRouter . class ) ; \n } \n \n private MongoConnection getMongoConnection ( ) { \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Adding explicit bind optimizing imports"} {"diff": " import static NAMESPACE ; \n public class OMatchStatementTest { \n \n protected SimpleNode checkRightSyntax ( String query ) { \n - return checkSyntax ( query , true ) ; \n + SimpleNode result = checkSyntax ( query , true ) ; \n + return checkSyntax ( result . toString ( ) , true ) ; \n } \n \n protected SimpleNode checkWrongSyntax ( String query ) {", "msg_token": "enhanced test cases on MATCH statement"} {"diff": " public class ConvolutionLayer implements Layer { \n INDArray ret = Nd4j . create ( Ints . concat ( new int [ ] { input . slices ( ) , currentFeatureMaps } , conf . getFeatureMapSize ( ) ) ) ; \n INDArray bias = getParam ( ConvolutionParamInitializer . CONVOLUTION_BIAS ) ; \n INDArray filters = getParam ( ConvolutionParamInitializer . CONVOLUTION_WEIGHTS ) ; \n - \n + if ( conf . getDropOut ( ) > NUMBER0 && conf . isUseDropConnect ( ) ) { \n + filters = filters . mul ( Nd4j . getDistributions ( ) . createBinomial ( NUMBER1 , conf . getDropOut ( ) ) . sample ( filters . shape ( ) ) ) ; \n + } \n + \n for ( int i = NUMBER0 ; i < currentFeatureMaps ; i ++ ) { \n INDArray featureMap = Nd4j . create ( Ints . concat ( new int [ ] { input . slices ( ) , NUMBER1 } , conf . getFeatureMapSize ( ) ) ) ; \n for ( int j = NUMBER0 ; j < inputChannels ; j ++ ) {", "msg_token": "add drop connect to convolution layer"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class Connection { \n SINGLE \n if ( ! route . address . hostnameVerifier . verify ( route . address . uriHost , sslSocket . getSession ( ) ) ) { \n X509Certificate cert = ( X509Certificate ) sslSocket . getSession ( ) . getPeerCertificates ( ) [ NUMBER0 ] ; \n - throw new IOException ( STRING0 + route . address . uriHost + STRING1 \n + throw new SSLPeerUnverifiedException ( STRING0 + route . address . uriHost + STRING1 \n + STRING2 + CertificatePinner . pin ( cert ) \n + STRING3 + cert . getSubjectDN ( ) . getName ( ) \n + STRING4 + OkHostnameVerifier . allSubjectAltNames ( cert ) ) ;", "msg_token": "Throw SSLPeerUnverifiedException when host verification fails instead of IOException"} {"diff": " public abstract class HystrixCommand < R > extends AbstractCommand < R > implements Hy \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove incorrect reference to async timeout"} {"diff": " public class ReaderPostListFragment extends Fragment \n \n @ override \n public FilterCriteria onRecallSelection ( ) { \n - return mCurrentTag ; \n + if ( hasCurrentTag ( ) ) { \n + return getCurrentTag ( ) ; \n + } else { \n + AppLog . w ( T . READER , STRING0 ) ; \n + return ReaderTag . getDefaultTag ( ) ; \n + } \n } \n \n @ override", "msg_token": "Handle no current tag in onRecallSelection"} {"diff": " public class OIndexChangesWrapper implements OIndexCursor { \n protected final OIndexCursor delegate ; \n protected final long indexVersion ; \n \n + public OIndexChangesWrapper ( OIndex < ? > source , OIndexCursor delegate ) { \n + this . source = source ; \n + this . delegate = delegate ; \n + \n + indexVersion = source . getRebuildVersion ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class OIndexChangesWrapper implements OIndexCursor { \n return new OIndexChangesWrapper ( source , cursor ) ; \n } \n \n - public OIndexChangesWrapper ( OIndex < ? > source , OIndexCursor delegate ) { \n - this . source = source ; \n - this . delegate = delegate ; \n - \n - indexVersion = source . getRebuildVersion ( ) ; \n + @ override \n + public void remove ( ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n } \n \n COMMENT", "msg_token": "add override for remove method"} {"diff": " public final class ResXmlEncoders { \n } \n \n public static String encodeAsXmlValue ( String str ) { \n - if ( str . isEmpty ( ) ) { \n + if ( str == null || str . isEmpty ( ) ) { \n return str ; \n }", "msg_token": "Handling empty null values again"} {"diff": " public class CountWithFilterSqlBenchmark \n { \n public CountWithFilterSqlBenchmark ( ) \n { \n - super ( STRING0 , NUMBER0 , NUMBER1 , STRING1 ) ; \n + super ( STRING0 , NUMBER0 , NUMBER1 , STRING2 ) ; \n } \n \n public static void main ( String [ ] args )", "msg_token": "Actually use a filter in query benchmark"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class EduAnswerPlaceholderPainter { \n + \n + SINGLE \n + public static final int PLACEHOLDERS_LAYER = NUMBER0 ; \n + \n private EduAnswerPlaceholderPainter ( ) { \n \n } \n public class EduAnswerPlaceholderPainter { \n int highlighterLength = useLength ? length : replacementLength ; \n final int endOffset = startOffset + highlighterLength ; \n RangeHighlighter \n - highlighter = editor . getMarkupModel ( ) . addRangeHighlighter ( startOffset , endOffset , HighlighterLayer . LAST + NUMBER1 , \n + highlighter = editor . getMarkupModel ( ) . addRangeHighlighter ( startOffset , endOffset , PLACEHOLDERS_LAYER , \n textAttributes , HighlighterTargetArea . EXACT_RANGE ) ; \n highlighter . setCustomRenderer ( new CustomHighlighterRenderer ( ) { \n @ override", "msg_token": "changed placeholders highlighting level to make selection visible"} {"diff": " public abstract class AsyncProvidersBasicTest extends AbstractBasicTest { \n } ) . get ( ) ; \n Assert . fail ( ) ; \n } catch ( Throwable ex ) { \n + ex . printStackTrace ( ) ; \n System . out . println ( STRING0 + ( System . currentTimeMillis ( ) - t1 ) ) ; \n Assert . assertNotNull ( ex . getCause ( ) ) ; \n Assert . assertEquals ( ex . getCause ( ) . getMessage ( ) , STRING1 ) ;", "msg_token": "Print the exception"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed test case"} {"diff": " public class PlanGenerator { \n || mode == TraverseMode . STL ) { \n itinerary . waitingTime += dt ; \n } else if ( mode . isOnStreetNonTransit ( ) ) { \n - itinerary . walkDistance += backEdge . getDistance ( ) ; \n itinerary . walkTime += dt ; \n } else if ( mode . isTransit ( ) ) { \n itinerary . transitTime += dt ; \n public class PlanGenerator { \n itinerary . startTime = makeCalendar ( startState ) ; \n itinerary . endTime = makeCalendar ( endState ) ; \n itinerary . duration = endState . getTimeInMillis ( ) - startState . getTimeInMillis ( ) ; \n + itinerary . walkDistance = path . getWalkDistance ( ) ; \n \n Graph graph = path . getRoutingContext ( ) . graph ; \n FareService fareService = graph . getService ( FareService . class ) ;", "msg_token": "do not recompute walk distance"} {"diff": " public class LockClaim { \n } \n \n public StaticBuffer getLockCol ( long ts , byte [ ] rid ) { \n - if ( null != lockCol ) return lockCol ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + SINGLE \n \n WriteBuffer b = new WriteByteBuffer ( rid . length + NUMBER0 ) ; \n b . putLong ( ts ) ;", "msg_token": "Stop caching lock column values"} {"diff": " import NAMESPACE ; \n \n import static NAMESPACE ; \n \n - public class HyperLogLogOperators \n + public final class HyperLogLogOperators \n { \n private HyperLogLogOperators ( ) \n {", "msg_token": "Fix intellij warning"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class BytecodeViewer { \n \n COMMENT \n public static Refactorer refactorer = new Refactorer ( ) ; \n + public static List < String > main_classes = new ArrayList < > ( ) ; \n COMMENT \n \n COMMENT \n public class RenameClasses extends JavaObfuscator { \n System . out . println ( STRING0 ) ; \n classLoop: for ( ClassNode c : BytecodeViewer . getLoadedClasses ( ) ) { \n \n + COMMENT \n + for ( String name : BytecodeViewer . main_classes ) { \n + if ( name . equals ( c . name ) ) \n + continue classLoop ; \n + } \n + \n COMMENT \n for ( Object o : c . methods ) { \n MethodNode m = ( MethodNode ) o ;", "msg_token": "Added checking for main classes"} {"diff": " \n SINGLE \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ExperimentalEventHandler extends BlazeCommandEventHandler { \n SINGLE \n } \n \n + @ subscribe \n + public void loadingComplete ( LoadingPhaseCompleteEvent event ) { \n + try { \n + terminal . textGreen ( ) ; \n + terminal . writeString ( STRING0 ) ; \n + terminal . resetTerminal ( ) ; \n + terminal . writeString ( STRING1 + event . getTargets ( ) . size ( ) + STRING2 ) ; \n + } catch ( IOException e ) { \n + LOG . warning ( STRING3 + e ) ; \n + } \n + } \n + \n public void resetTerminal ( ) { \n try { \n terminal . resetTerminal ( ) ;", "msg_token": "Report the completion of the loading Phase"} {"diff": " public class TesterWsCloseClient { \n private void readUpgradeResponse ( ) throws IOException { \n BufferedReader in = new BufferedReader ( new InputStreamReader ( \n socket . getInputStream ( ) ) ) ; \n - while ( ! in . readLine ( ) . isEmpty ( ) ) { \n - \n + String line = in . readLine ( ) ; \n + while ( line != null && ! line . isEmpty ( ) ) { \n + line = in . readLine ( ) ; \n } \n } \n \n public class TesterWsCloseClient { \n socket . close ( ) ; \n } \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void forceCloseSocket ( ) throws IOException {", "msg_token": "Fix one FindBugs and one Javadoc warning"} {"diff": " public abstract class AbstractDatabase implements Database { \n String literals = enumType . getLiterals ( ) ; \n \n try { \n + @ suppresswarnings ( STRING0 ) \n CSVReader reader = new CSVReader ( new StringReader ( literals ) ) ; \n e . addLiterals ( reader . readNext ( ) ) ; \n } catch ( IOException ignore ) { }", "msg_token": "Suppressed a compiler warning"} {"diff": " public class Utils { \n COMMENT \n public static boolean hasXpass ( Context context ) { \n SINGLE \n + SINGLE \n return ( BuildConfig . DEBUG || hasUnlockKeyInstalled ( context ) ) ; \n } \n \n public class Utils { \n final File [ ] files = path . listFiles ( ) ; \n if ( files != null ) { \n for ( File file : files ) { \n + SINGLE \n file . delete ( ) ; \n } \n } \n public class Utils { \n if ( AndroidUtils . isJellyBeanOrHigher ( ) ) { \n imageView . setImageAlpha ( NUMBER0 ) ; \n } else { \n + SINGLE \n imageView . setAlpha ( NUMBER0 ) ; \n }", "msg_token": "Turn off some inspections"} {"diff": " public final class Constants { \n public static final String MESOS_RESOURCE_DISK = STRING0 ; \n public static final String MESOS_RESOURCE_PORTS = STRING1 ; \n \n + public static final int SECOND_NANO = NUMBER0 ; \n public static final int SECOND_MS = NUMBER1 ; \n public static final int MINUTE_MS = SECOND_MS * NUMBER2 ; \n public static final int HOUR_MS = MINUTE_MS * NUMBER2 ;", "msg_token": "Add SecondNano constant"} {"diff": " public class GLM2 extends Job . ModelJobWithoutClassificationField { \n \n private void run ( final double ymu , final long nobs , LMAXTask lmaxt ) { \n String [ ] warns = null ; \n - if ( ! lambda_search || ! strong_rules_enabled && _dinfo . fullN ( ) > MAX_PREDICTORS ) \n + if ( ( ! lambda_search || ! strong_rules_enabled ) && ( _dinfo . fullN ( ) > MAX_PREDICTORS ) ) \n throw new IllegalArgumentException ( STRING0 + MAX_PREDICTORS + STRING1 + _dinfo . fullN ( ) + STRING2 ) ; \n if ( lambda_search ) { \n max_iter = Math . max ( NUMBER0 , max_iter ) ;", "msg_token": "Fixed condition missing parenthesis when checking for too many predictors in GLM2"} {"diff": " public class TraversalRequirements { \n return false ; \n } \n } \n - return e . getPermission ( ) . allows ( modes ) ; \n + return e . canTraverse ( modes ) ; \n } \n \n COMMENT", "msg_token": "TraversalRequirements now uses canTraverse"} {"diff": " public abstract class BaseReplaceScriptTestCase extends TestCase { \n SINGLE \n SINGLE \n options . setInferTypes ( true ) ; \n - options . setIdeMode ( true ) ; \n + options . setAllowHotswapReplaceScript ( true ) ; \n + options . setPreserveDetailedSourceInfo ( true ) ; \n + options . setChecksOnly ( true ) ; \n + options . setContinueAfterErrors ( true ) ; \n + \n for ( DiagnosticGroup group : typesOfGuard ) { \n options . setWarningLevel ( group , CheckLevel . ERROR ) ; \n }", "msg_token": "Remove more calls to CompilerOptions setIdeMode"} {"diff": " public class ProjectSettingsStepBase extends AbstractActionWithPanel implements \n getTemplatePresentation ( ) . setIcon ( projectGenerator . getLogo ( ) ) ; \n getTemplatePresentation ( ) . setText ( projectGenerator . getName ( ) ) ; \n myProjectGenerator = projectGenerator ; \n + if ( projectGenerator instanceof WebProjectTemplate ) { \n + ( ( WebProjectTemplate ) projectGenerator ) . reset ( ) ; \n + } \n myCallback = callback ; \n myProjectDirectory = findSequentNonExistingUntitled ( ) ; \n }", "msg_token": "create new instance of GeneratorPeer to avoid sharing Swing components ideally Swing components should be garbage collected on dialog closing"} {"diff": " public class GraphRuntimeConfigurator { \n \n SINGLE \n if ( periodicUpdater . size ( ) == NUMBER0 ) { \n + periodicUpdater . stop ( ) ; \n graph . putService ( PeriodicTimerGraphUpdater . class , null ) ; \n } \n }", "msg_token": "stop Timer thread when no updaters"} {"diff": " public class PropertiesUtil { \n } \n \n @ notnull \n - public static List < Property > findAllProperties ( Project project , ResourceBundle resourceBundle , String key ) { \n + public static List < Property > findAllProperties ( Project project , @ notnull ResourceBundle resourceBundle , String key ) { \n List < Property > result = new SmartList < Property > ( ) ; \n List < PropertiesFile > propertiesFiles = resourceBundle . getPropertiesFiles ( project ) ; \n for ( PropertiesFile propertiesFile : propertiesFiles ) {", "msg_token": "remove redundant code servicify"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class KafkaCollector implements CollectorComponent , Closeable { \n + public final class KafkaCollector implements CollectorComponent { \n \n public static Builder builder ( ) { \n return new Builder ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class ScribeCollector implements CollectorComponent , Closeable { \n + public final class ScribeCollector implements CollectorComponent { \n \n public static Builder builder ( ) { \n return new Builder ( ) ;", "msg_token": "Removes redundant implementation of Closeable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TabbedFolderPageProperties extends TabbedFolderPage implements ILaz \n if ( input . getDatabaseObject ( ) != null ) { \n DBUtils . getRegistry ( ( DBSObject ) curPropertySource . getEditableValue ( ) ) . addDataSourceListener ( this ) ; \n } \n + propertyTree . getControl ( ) . addDisposeListener ( new DisposeListener ( ) { \n + @ override \n + public void widgetDisposed ( DisposeEvent e ) { \n + dispose ( ) ; \n + } \n + } ) ; \n } \n \n @ override", "msg_token": "EntityEditor dispose fix"} {"diff": " public class MessageListFragment extends SherlockFragment implements OnItemClick \n private static final String ARG_IS_THREAD_DISPLAY = STRING0 ; \n \n private static final String STATE_SELECTED_MESSAGES = STRING1 ; \n + private static final String STATE_REMOTE_SEARCH_PERFORMED = STRING2 ; \n \n COMMENT \n COMMENT \n public class MessageListFragment extends SherlockFragment implements OnItemClick \n super . onSaveInstanceState ( outState ) ; \n \n saveSelectedMessages ( outState ) ; \n + \n + outState . putBoolean ( STATE_REMOTE_SEARCH_PERFORMED , mRemoteSearchPerformed ) ; \n } \n \n COMMENT \n public class MessageListFragment extends SherlockFragment implements OnItemClick \n } \n \n restoreSelectedMessages ( savedInstanceState ) ; \n + \n + mRemoteSearchPerformed = savedInstanceState . getBoolean ( STATE_REMOTE_SEARCH_PERFORMED ) ; \n } \n \n COMMENT", "msg_token": "Remember across activity restarts whether remote search was performed"} {"diff": " public class System { \n ] - * / ; \n \n public static native Map < String , String > getenv ( ) COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT ; \n \n COMMENT", "msg_token": "Updated System getenv to use NSProcessInfo"} {"diff": " public class GeoBoundingBoxQueryParser implements QueryParser { \n throw new QueryParsingException ( parseContext , STRING0 , NAME , GeoPointFieldMapper . CONTENT_TYPE , fieldName ) ; \n } \n if ( ! ( fieldType instanceof GeoPointFieldMapper . GeoPointFieldType ) ) { \n - throw new QueryParsingException ( parseContext , STRING1 , NAME , fieldName , GeoPointFieldMapper . CONTENT_TYPE , fieldType . names ( ) . shortName ( ) ) ; \n + throw new QueryParsingException ( parseContext , STRING1 , NAME , fieldName , GeoPointFieldMapper . CONTENT_TYPE , fieldType . typeName ( ) ) ; \n } \n GeoPointFieldMapper . GeoPointFieldType geoFieldType = ( ( GeoPointFieldMapper . GeoPointFieldType ) fieldType ) ;", "msg_token": "fix compile error after bad merge"} {"diff": " public class RippleDrawable extends LayerDrawable { \n final ChildDrawable [ ] array = mLayerState . mChildren ; \n final int count = mLayerState . mNum ; \n \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n boolean needsLayer = false ; \n - if ( ( mExitingRipplesCount > NUMBER0 || mBackground != null ) && mMask == null ) { \n + if ( ( mExitingRipplesCount > NUMBER0 || ( mBackground != null && mBackground . shouldDraw ( ) ) ) \n + && mMask == null ) { \n for ( int i = NUMBER0 ; i < count ; i ++ ) { \n if ( array [ i ] . mId != R . id . mask \n && array [ i ] . mDrawable . getOpacity ( ) != PixelFormat . OPAQUE ) {", "msg_token": "Avoid saveLayer in RippleDrawable if the background won t draw"} {"diff": " public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RecyclerView extends ViewGroup implements ScrollingView , NestedScro \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix two grammar errors in RecyclerView documentation"} {"diff": " public class GrammaticalStructureTest extends TestCase { \n SINGLE \n String [ ] testAnswers = new String [ ] { \n STRING0 , \n - STRING1 \n + STRING2 \n } ; \n \n SINGLE \n String [ ] testAnswersCollapsed = new String [ ] { \n STRING0 , \n - STRING3 \n + STRING4 \n \n } ; \n \n SINGLE \n String [ ] testAnswersCCProcessed = new String [ ] { \n STRING0 , \n - STRING3 \n + STRING4 \n } ; \n \n for ( int i = NUMBER0 ; i < testTrees . length ; i ++ ) {", "msg_token": "Fix up another unittest for dependencies now that rel is gone"} {"diff": " public class OreDictionary \n new ItemStack ( Blocks . jungle_stairs ) , \n new ItemStack ( Blocks . acacia_stairs ) , \n new ItemStack ( Blocks . dark_oak_stairs ) , \n - new ItemStack ( Blocks . glass_pane ) , \n - new ItemStack ( Blocks . stained_glass ) \n + new ItemStack ( Blocks . glass_pane ) \n } ; \n \n List < IRecipe > recipes = CraftingManager . getInstance ( ) . getRecipeList ( ) ;", "msg_token": "Removed exclusion of white stained glass recipes in ore dictionary"} {"diff": " \n package NAMESPACE ; \n \n import static NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - @ runwith ( RobolectricTestRunner . class ) \n + SINGLE \n public class ResActivityTest { \n \n private ResActivity_ activity ; \n \n - @ before \n + SINGLE \n public void setup ( ) { \n activity = new ResActivity_ ( ) ; \n activity . onCreate ( null ) ; \n public class ResActivityTest { \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n + SINGLE \n public void animNotNull ( ) { \n assertThat ( activity . fadein ) . isNotNull ( ) ; \n }", "msg_token": "Disabled failing test waiting for more shadow classes in robolectric"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "added missing import"} {"diff": " public class Mesh { \n COMMENT \n public Mesh ( VertexDataType type , boolean isStatic , int maxVertices , \n int maxIndices , VertexAttribute . . . attributes ) { \n + if ( type == VertexDataType . VertexArray && Gdx . graphics . isGL20Available ( ) ) \n + type = VertexDataType . VertexBufferObject ; \n + \n if ( type == VertexDataType . VertexBufferObject ) { \n vertices = new VertexBufferObject ( isStatic , maxVertices , attributes ) ; \n indices = new IndexBufferObject ( isStatic , maxIndices ) ;", "msg_token": "fixed small bug in Mesh"} {"diff": " public abstract class Plugin implements IPlugin { \n public void onActivityResult ( int requestCode , int resultCode , Intent intent ) { \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean onOverrideUrlLoading ( String url ) { \n return false ; \n }", "msg_token": "Add comment for method onOverrideUrlLoading"} {"diff": " public class PingThread extends Thread \n SINGLE \n response = connection . sendAction ( new PingAction ( ) , timeout ) ; \n SINGLE \n - logger . debug ( STRING0 + response ) ; \n + SINGLE \n } \n } \n catch ( Exception e ) \n { \n - System . out . println ( STRING1 ) ; \n + SINGLE \n logger . warn ( STRING2 , e ) ; \n } \n }", "msg_token": "Remove log for ping replies"} {"diff": " public final class TypeFactory \n SINGLE \n throw new IllegalArgumentException ( STRING0 + ( ( type == null ) ? STRING1 : type . toString ( ) ) ) ; \n } \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - if ( _modifiers != null && ! resultType . isContainerType ( ) ) { \n + COMMENT \n + if ( _modifiers != null ) { \n TypeBindings b = resultType . getBindings ( ) ; \n if ( b == null ) { \n b = EMPTY_BINDINGS ;", "msg_token": "When applying type modifiers don t ignore container types"} {"diff": " final class SettingsEditor extends AbstractEditor implements DataProvider { \n size . width = myTreeView . getWidth ( ) - NUMBER0 ; \n mySearch . setPreferredSize ( size ) ; \n mySearch . setSize ( size ) ; \n + mySearch . revalidate ( ) ; \n + mySearch . repaint ( ) ; \n } \n } ) ; \n myEditor = new ConfigurableEditor ( this , null , true ) {", "msg_token": "Fix banner repainting"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove stray import"} {"diff": " public class ServerInit \n final long memoryNeeded = ( long ) config . intermediateComputeSizeBytes ( ) * ( config . getNumThreads ( ) + NUMBER0 ) ; \n if ( maxDirectMemory < memoryNeeded ) { \n throw new ISE ( \n - STRING0 \n + STRING1 \n + STRING2 , \n maxDirectMemory , memoryNeeded , config . intermediateComputeSizeBytes ( ) , config . getNumThreads ( ) \n ) ;", "msg_token": "Fix direct memory vm option name in warning message"} {"diff": " public class ActivityShare extends Activity { \n SINGLE \n List < Boolean > oldState = mListRestartStates . get ( lastUid ) ; \n List < Boolean > newState = PrivacyManager . getListStateRestartHooks ( lastUid , null ) ; \n - if ( ! newState . equals ( oldState ) ) \n - mAppAdapter . setMessage ( lastUid , getString ( R . string . msg_restart ) ) ; \n \n SINGLE \n - mAppAdapter . setState ( lastUid , STATE_SUCCESS , null ) ; \n + mAppAdapter . setState ( lastUid , STATE_SUCCESS , \n + ! newState . equals ( oldState ) ? getString ( R . string . msg_restart ) : null ) ; \n } \n }", "msg_token": "Fix restart checks for import"} {"diff": " public class UsageViewImpl implements UsageView , UsageModelTracker . UsageModelTra \n public void setSearchInProgress ( boolean searchInProgress ) { \n mySearchInProgress = searchInProgress ; \n if ( ! myPresentation . isDetachedMode ( ) ) { \n - UIUtil . invokeLaterIfNeeded ( new Runnable ( ) { \n + myTransferToEDTQueue . offer ( new Runnable ( ) { \n @ override \n public void run ( ) { \n if ( isDisposed ) return ;", "msg_token": "expand the usage view tree when creating it with predefined usages e g from Goto Class"} {"diff": " public class BindingTest { \n } \n } \n \n - @ ignore SINGLE \n - @ test ( expected = PersistenceException . class ) \n + @ test SINGLE \n public void shouldFailWhenSelectingOneBlogWithNonExistentNestedParam ( ) { \n SqlSession session = sqlSessionFactory . openSession ( ) ; \n try {", "msg_token": "removed Ignore from test"} {"diff": " public class ContextMenuUtilsTest extends TerasologyTestingEnvironment { \n } \n \n private Class getNodeType ( JsonTree node ) { \n - return NUIEditorNodeUtils . getNodeInfo ( node , context . get ( NUIManager . class ) ) ; \n + return NUIEditorNodeUtils . getNodeInfo ( node , context . get ( NUIManager . class ) ) . getNodeClass ( ) ; \n } \n }", "msg_token": "Also update ContextMenuUtilsTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ mediumtest \n public class AbstractInjectorGrapherTest extends TestCase { \n private static final String TEST_STRING = STRING0 ;", "msg_token": "Remove MediumTest annotation since it is not available on the build classpath"} {"diff": " public class GlobalSettings { \n new V ( NUMBER0 , new BooleanSetting ( false ) ) \n ) ) ; \n s . put ( STRING0 , Settings . versions ( \n - new V ( NUMBER1 , new BooleanSetting ( false ) ) \n + new V ( NUMBER2 , new BooleanSetting ( false ) ) \n ) ) ; \n s . put ( STRING1 , Settings . versions ( \n new V ( NUMBER3 , new BooleanSetting ( true ) ) \n public class Settings { \n COMMENT \n COMMENT \n COMMENT \n - public static final int VERSION = NUMBER1 ; \n + public static final int VERSION = NUMBER2 ; \n \n public static Map < String , Object > validate ( int version , Map < String , \n TreeMap < Integer , SettingsDescription > > settings ,", "msg_token": "Readjust settings version number based on current master"} {"diff": " public final class Detector { \n } \n } \n } \n + start ++ ; \n \n SINGLE \n int end = center ; \n public final class Detector { \n } \n } \n } \n + end -- ; \n \n if ( end > start ) { \n return new int [ ] { start , end } ;", "msg_token": "Address a small but clear bug in detector logic"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n \n public class GoHighlightingAnnotator implements Annotator { \n public class GoHighlightingAnnotator implements Annotator { \n public void annotate ( @ notnull PsiElement o , @ notnull AnnotationHolder holder ) { \n if ( ! o . isValid ( ) ) return ; \n if ( o instanceof GoImportSpec && ( ( GoImportSpec ) o ) . isDot ( ) ) { \n - List < ? extends PsiElement > importUsers = o . getUserData ( GoReference . IMPORT_USERS ) ; \n - if ( importUsers != null ) { \n - importUsers . clear ( ) ; \n - } \n + o . putUserData ( GoReference . IMPORT_USERS , null ) ; \n } \n else if ( o instanceof GoLiteral ) { \n if ( ( ( GoLiteral ) o ) . getHex ( ) != null || ( ( GoLiteral ) o ) . getOct ( ) != null ) {", "msg_token": "Avoid concurrent modification"} {"diff": " public class ThemeBrowserFragment extends Fragment implements RecyclerListener , \n protected static final int THEME_FILTER_FREE_INDEX = NUMBER0 ; \n protected static final int THEME_FILTER_PREMIUM_INDEX = NUMBER1 ; \n \n + protected SwipeToRefreshHelper mSwipeToRefreshHelper ; \n private String mCurrentThemeId ; \n private HeaderGridView mGridView ; \n private RelativeLayout mEmptyView ; \n public class ThemeBrowserFragment extends Fragment implements RecyclerListener , \n private Spinner mSpinner ; \n private ThemeBrowserFragmentCallback mCallback ; \n private int mPage = NUMBER0 ; \n - private SwipeToRefreshHelper mSwipeToRefreshHelper ; \n private boolean mShouldRefreshOnStart ; \n private TextView mEmptyTextView ;", "msg_token": "Fixing swipeToRefreshHelper access for ThemeSearchFragment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ComponentManager { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void sendPacket ( Packet packet ) { \n + PacketRouter router ; \n + try { \n + router = ( PacketRouterImpl ) ServiceLookupFactory . getLookup ( ) . lookup ( PacketRouterImpl . class ) ; \n + if ( router != null ) { \n + SINGLE \n + } \n + } \n + catch ( UnauthorizedException e ) { \n + Log . error ( e ) ; \n + } \n + } \n + \n private String validateJID ( String jid ) { \n jid = jid . trim ( ) . toLowerCase ( ) ; \n return jid ;", "msg_token": "Removing impl classes and updating admin"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CppLinkActionTest extends BuildViewTestCase { \n scratch . file ( STRING0 ) ; \n \n ConfiguredTarget configuredTarget = getConfiguredTarget ( STRING1 ) ; \n - CppLinkAction linkAction = ( CppLinkAction ) getGeneratingAction ( configuredTarget , STRING2 ) ; \n + CppLinkAction linkAction = ( CppLinkAction ) getGeneratingAction ( configuredTarget , STRING2 \n + + OsUtils . executableExtension ( ) ) ; \n \n List < String > arguments = linkAction . getLinkCommandLine ( ) . arguments ( ) ;", "msg_token": "Fixed CppLinkActionTest on Windows"} {"diff": " public class MessageView extends K9Activity implements OnClickListener { \n private void clearMessageDisplay ( ) { \n mTopView . setVisibility ( View . GONE ) ; \n mTopView . scrollTo ( NUMBER0 , NUMBER0 ) ; \n - mMessageView . setLoadPictures ( false ) ; \n - \n mMessageView . resetView ( ) ; \n \n } \n public class SingleMessageView extends LinearLayout { \n \n \n public void resetView ( ) { \n - \n + setLoadPictures ( false ) ; \n mMessageContentView . scrollTo ( NUMBER0 , NUMBER0 ) ; \n mHeaderContainer . setVisibility ( View . GONE ) ; \n mMessageContentView . clearView ( ) ;", "msg_token": "move a call to setLoadPictures down"} {"diff": " public class TestQueryRecordLockUnlock { \n db . close ( ) ; \n } \n } \n - System . out . println ( Thread . currentThread ( ) . getName ( ) + STRING0 ) ; \n } \n } ) ; \n } \n public class TestQueryRecordLockUnlock { \n db . close ( ) ; \n } \n } \n - System . out . println ( Thread . currentThread ( ) . getName ( ) + STRING0 ) ; \n } \n } ) ; \n } \n public class TestQueryRecordLockUnlock { \n } \n } \n } \n - System . out . println ( Thread . currentThread ( ) . getName ( ) + STRING0 ) ; \n } \n } ) ; \n }", "msg_token": "removed not useful system out from test cases"} {"diff": " public class FactoryImpl implements HazelcastInstance { \n proxyFactory = node . initializer . getProxyFactory ( ) ; \n logger = node . getLogger ( FactoryImpl . class . getName ( ) ) ; \n hazelcastInstanceProxy = new HazelcastInstanceProxy ( this ) ; \n - locksMapProxy = proxyFactory . createMapProxy ( Prefix . LOCKS_MAP_HAZELCAST ) ; \n node . start ( ) ; \n if ( ! node . isActive ( ) ) { \n node . connectionManager . shutdown ( ) ; \n throw new IllegalStateException ( STRING0 ) ; \n } \n + locksMapProxy = proxyFactory . createMapProxy ( Prefix . MAP_HAZELCAST + STRING1 ) ; \n + node . clusterService . enqueueAndReturn ( new Processable ( ) { \n + public void process ( ) { \n + node . concurrentMapManager . getOrCreateMap ( locksMapProxy . getLongName ( ) ) ; \n + } \n + } ) ; \n \n final Set < Member > members = node . getClusterImpl ( ) . getMembers ( ) ; \n if ( members . size ( ) > NUMBER0 ) {", "msg_token": "Fix NPE while calling lock from lite member"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ConnectHandler implements CommandHandler { \n \n if ( port >= NUMBER0 ) { \n try { \n - ModelControllerClient client = ModelControllerClient . Factory . create ( InetAddress . getByName ( host ) , port ) ; \n + ModelControllerClient client = ModelControllerClient . Factory . create ( Type . STANDALONE , InetAddress . getByName ( host ) , port ) ; \n ctx . setModelControllerClient ( client ) ; \n ctx . log ( STRING0 + host + STRING1 + port ) ; \n } catch ( UnknownHostException e ) {", "msg_token": "Temporarily use Type STANDALONE for the CLI client"} {"diff": " public class ThriftToPig < M extends TBase < ? , ? > > { \n case TType . SET : \n return new FieldSchema ( fieldName , singleFieldToTupleSchema ( fieldName + STRING0 , field . getSetElemField ( ) ) , DataType . BAG ) ; \n case TType . MAP : \n - SINGLE \n if ( field . getMapKeyField ( ) . getType ( ) != TType . STRING \n && field . getMapKeyField ( ) . getType ( ) != TType . ENUM ) { \n LOG . warn ( STRING1 + field . getName ( )", "msg_token": "remove an obsolete comment"} {"diff": " public class HttpHeaders { \n return httpHeaderList ; \n } \n \n - public String get ( Object key ) { \n - throw new UnsupportedOperationException ( ) ; \n - } \n - \n public String put ( String key , String value ) { \n headers . put ( key , value ) ; \n return value ;", "msg_token": "Removed HttpHeaders get legacy of Map implementation"} {"diff": " public class GridActivity extends Activity { \n public static final String EXTRA_STAGGERED = STRING0 ; \n public static final String SELECT_ACTION = STRING1 ; \n \n - static final int DEFAULT_LAYOUT_RESOURCE_ID = R . layout . horizontal_grid ; \n static final int DEFAULT_NUM_ITEMS = NUMBER0 ; \n static final boolean DEFAULT_STAGGERED = true ; \n \n public class GridActivity extends Activity { \n protected void onCreate ( Bundle savedInstanceState ) { \n Intent intent = getIntent ( ) ; \n \n - mLayoutId = intent . getIntExtra ( EXTRA_LAYOUT_RESOURCE_ID , DEFAULT_LAYOUT_RESOURCE_ID ) ; \n + mLayoutId = intent . getIntExtra ( EXTRA_LAYOUT_RESOURCE_ID , R . layout . horizontal_grid ) ; \n mStaggered = intent . getBooleanExtra ( EXTRA_STAGGERED , DEFAULT_STAGGERED ) ; \n mItemLengths = intent . getIntArrayExtra ( EXTRA_ITEMS ) ; \n if ( mItemLengths == null ) {", "msg_token": "Fix javadoc error"} {"diff": " public class CompilerOptions { \n this . closurePass = closurePass ; \n } \n \n - @ deprecated \n - public void setPreserveGoogRequires ( boolean preserveGoogProvidesAndRequires ) { \n - setPreserveGoogProvidesAndRequires ( preserveGoogProvidesAndRequires ) ; \n - } \n - \n public void setPreserveGoogProvidesAndRequires ( boolean preserveGoogProvidesAndRequires ) { \n this . preserveGoogProvidesAndRequires = preserveGoogProvidesAndRequires ; \n } \n public final class RefactoringDriver { \n options . setCheckTypes ( true ) ; \n options . setClosurePass ( true ) ; \n options . setGenerateExports ( true ) ; \n - options . setPreserveGoogRequires ( true ) ; \n + options . setPreserveGoogProvidesAndRequires ( true ) ; \n \n options . setWarningLevel ( DiagnosticGroups . MISSING_REQUIRE , CheckLevel . ERROR ) ; \n \n public final class CodePrinterTest extends CodePrinterTestBase { \n compilerOptions . setCheckTypes ( true ) ; \n compilerOptions . setClosurePass ( true ) ; \n compilerOptions . setIdeMode ( true ) ; \n - compilerOptions . setPreserveGoogRequires ( true ) ; \n + compilerOptions . setPreserveGoogProvidesAndRequires ( true ) ; \n Compiler compiler = new Compiler ( ) ; \n compiler . disableThreads ( ) ; \n compiler . compile (", "msg_token": "Remove deprecated method setPreserveGoogRequires"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n mInetConditionChangeInFlight = false ; \n SINGLE \n SINGLE \n + updateNetworkSettings ( thisNet ) ; \n } \n thisNet . setTeardownRequested ( false ) ; \n - updateNetworkSettings ( thisNet ) ; \n updateMtuSizeSettings ( thisNet ) ; \n handleConnectivityChange ( newNetType , false ) ; \n sendConnectedBroadcastDelayed ( info , getConnectivityChangeDelay ( ) ) ; \n public class ConnectivityService extends IConnectivityManager . Stub { \n case NetworkStateTracker . EVENT_NETWORK_SUBTYPE_CHANGED : { \n info = ( NetworkInfo ) msg . obj ; \n int type = info . getType ( ) ; \n - updateNetworkSettings ( mNetTrackers [ type ] ) ; \n + if ( mNetConfigs [ type ] . isDefault ( ) ) updateNetworkSettings ( mNetTrackers [ type ] ) ; \n break ; \n } \n }", "msg_token": "Only apply tcp buffer sizes for default net"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public interface EmbeddedTokenTypesProvider { \n \n String getName ( ) ; \n IElementType getElementType ( ) ; \n + Language getLanguage ( ) ; \n }", "msg_token": "added getLanguage for embeddedTokenTypesProviders"} {"diff": " public class AuthConfig { \n \n @ override \n public String getAuthorizationUrl ( OAuthConfig arg0 ) { \n - SINGLE \n return null ; \n } \n \n @ override \n public String getAccessTokenEndpoint ( ) { \n - SINGLE \n return null ; \n } \n } ;", "msg_token": "Removed some todos"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ incubating \n - public interface BasicGradleProject { \n + public interface BasicGradleProject extends Model { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove false extensions of Model interface"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n class ZLSwingPanel extends JPanel { \n \n public void paint ( Graphics g ) { \n super . paint ( g ) ; \n + ( ( Graphics2D ) g ) . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; \n ZLView view = myViewWidget . getView ( ) ; \n ZLSwingPaintContext context = ( ZLSwingPaintContext ) view . getContext ( ) ; \n context . setGraphics ( g ) ;", "msg_token": "Anti aliasing is switched on in swing paint context"} {"diff": " public class AstridActivity extends FragmentActivity \n SINGLE \n long taskId = intent . getLongExtra ( NotificationFragment . TOKEN_ID , NUMBER0 ) ; \n TaskEditFragment tef = getTaskEditFragment ( ) ; \n - if ( tef != null && tef . getTaskIdInProgress ( ) == taskId ) \n + if ( tef != null ) \n return ; \n \n if ( taskId > NUMBER0 ) {", "msg_token": "Don t pop up the in app reminders when editing a task"} {"diff": " import NAMESPACE ; \n COMMENT \n public final class Tools { \n \n + private static Calendar cal = Calendar . getInstance ( ) ; \n + \n private Tools ( ) { } \n \n COMMENT \n public final class Tools { \n java . util . Collections . sort ( list ) ; \n return list ; \n } \n + \n + SINGLE \n + SINGLE \n + public static String buildElasticSearchTimeFormat ( double timestamp ) { \n + cal . setTimeInMillis ( System . currentTimeMillis ( ) ) ; \n \n + return String . format ( STRING0 , cal ) ; SINGLE \n + } \n + \n }", "msg_token": "Revert remove no longer used method"} {"diff": " public final class Model implements Comparable < Model > { \n } \n \n public Model removeCharacteristic ( Characteristic characteristic ) { \n - characteristic . setEnabled ( false ) ; \n + if ( characteristic . getId ( ) == null ) { \n + characteristics . remove ( characteristic ) ; \n + for ( Characteristic parent : characteristic . getParents ( ) ) { \n + parent . removeChild ( characteristic ) ; \n + } \n + } else { \n + characteristic . setEnabled ( false ) ; \n + } \n for ( Characteristic child : characteristic . getChildren ( ) ) { \n removeCharacteristic ( child ) ; \n }", "msg_token": "removeCharacteristic must support disabled characteristics"} {"diff": " public class ConsoleExecuteActionHandler { \n public void finishExecution ( ) { \n } \n \n + public final boolean isProcessTerminated ( ) { \n + final ProcessHandler handler = getProcessHandler ( ) ; \n + return handler == null || handler . isProcessTerminated ( ) ; \n + } \n + \n public String getEmptyExecuteAction ( ) { \n return STRING0 ; \n }", "msg_token": "Reload action added to Rails Console"} {"diff": " public class Sample { \n return ( m0 < m1 ) ? m0 : m1 ; \n } \n \n + public double evalWalkDistance ( ShortestPathTree spt ) { \n + State s0 = spt . getState ( v0 ) ; \n + State s1 = spt . getState ( v1 ) ; \n + double m0 = Double . NaN ; \n + double m1 = Double . NaN ; \n + SINGLE \n + SINGLE \n + double walkSpeed = spt . getOptions ( ) . walkSpeed ; \n + if ( s0 != null ) \n + m0 = ( s0 . getWalkDistance ( ) + t0 * walkSpeed ) ; \n + if ( s1 != null ) \n + m1 = ( s1 . getWalkDistance ( ) + t1 * walkSpeed ) ; \n + return ( m0 < m1 ) ? m0 : m1 ; \n + } \n + \n COMMENT \n public long eval ( TimeSurface surf ) { \n int m0 = Integer . MAX_VALUE ;", "msg_token": "Add Sample evalWalkDistance function"} {"diff": " public class MyDecorator implements Greeting { \n \n @ override \n public String greet ( String name ) { \n - System . out . println ( getClass ( ) . getName ( ) + STRING0 ) ; \n - return greeting . greet ( name + name ) ; \n + return greeting . greet ( name + STRING1 ) ; \n } \n \n }", "msg_token": "Made the decorator slightly more meaningful"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PreviewImageActivity extends FileActivity implements \n \n switch ( item . getItemId ( ) ) { \n case android . R . id . home : \n - backToDisplayActivity ( ) ; \n + if ( mDrawerLayout . isDrawerOpen ( GravityCompat . START ) ) { \n + mDrawerLayout . closeDrawer ( GravityCompat . START ) ; \n + } else { \n + backToDisplayActivity ( ) ; \n + } \n returnValue = true ; \n break ; \n default :", "msg_token": "Fixed home button in action bar for PreviewImageActvitiy when navigation drawer is shown"} {"diff": " import NAMESPACE ; \n @ incubating \n public interface PublishingExtension { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + String NAME = STRING0 ; \n + \n RepositoryHandler getRepositories ( ) ; \n \n void repositories ( Action < RepositoryHandler > configure ) ; \n public class PublishingPlugin implements Plugin < Project > { \n public void apply ( Project project ) { \n RepositoryHandler repositories = artifactPublicationServices . getRepositoryHandler ( ) ; \n PublicationContainer publications = instantiator . newInstance ( DefaultPublicationContainer . class , instantiator ) ; \n - project . getExtensions ( ) . create ( STRING0 , DefaultPublishingExtension . class , repositories , publications ) ; \n + project . getExtensions ( ) . create ( PublishingExtension . NAME , DefaultPublishingExtension . class , repositories , publications ) ; \n } \n }", "msg_token": "Use a constant for the publishing extension name"} {"diff": " public class SliceQueryFilter implements IDiskAtomFilter \n container . addColumn ( column ) ; \n } \n \n - Tracing . trace ( STRING0 , columnCounter . live ( ) , columnCounter . ignored ( ) ) ; \n + Tracing . trace ( STRING1 , columnCounter . live ( ) , columnCounter . ignored ( ) ) ; \n } \n \n public int getLiveCount ( ColumnFamily cf )", "msg_token": "Ninja tweak SCF tracing message"} {"diff": " class BackupManagerService extends IBackupManager . Stub { \n mTransports . put ( name , transport ) ; \n } else { \n mTransports . remove ( name ) ; \n - if ( ( mCurrentTransport != null ) && mCurrentTransport . equals ( name ) ) { \n - mCurrentTransport = null ; \n - } \n SINGLE \n return ; \n }", "msg_token": "Don t assume that transport unbind transport invalid"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public class SaslServerFactoryImpl implements SaslServerFactory \n { \n allMechanisms = new HashSet < > ( ) ; \n allMechanisms . add ( new Mechanism ( STRING0 , true , true ) ) ; \n - allMechanisms . add ( new Mechanism ( STRING1 , false , false ) ) ; \n + allMechanisms . add ( new Mechanism ( STRING2 , false , false ) ) ; \n allMechanisms . add ( new Mechanism ( STRING3 , true , false ) ) ; \n allMechanisms . add ( new Mechanism ( STRING4 , false , false ) ) ; \n } \n public class SaslServerFactoryImpl implements SaslServerFactory \n } \n return new SaslServerPlainImpl ( protocol , serverName , props , cbh ) ; \n \n - case STRING1 : \n + case STRING2 : \n return new ScramSha1SaslServer ( ) ; \n \n case STRING5 :", "msg_token": "Fix improper mechanism name"} {"diff": " public class UpgradeReallyOldIndexTest extends ElasticsearchIntegrationTest { \n File dataDir = prepareBackwardsDataDir ( new File ( getClass ( ) . getResource ( STRING0 ) . toURI ( ) ) ) ; \n internalCluster ( ) . startNode ( ImmutableSettings . builder ( ) \n . put ( STRING1 , dataDir . getPath ( ) ) \n - . put ( STRING2 , STRING3 ) \n . put ( STRING4 , STRING5 ) SINGLE \n . put ( InternalNode . HTTP_ENABLED , true ) \n . build ( ) ) ;", "msg_token": "TEST Remove explicit network mode not needed here"} {"diff": " public class BsdArchiver implements Archiver { \n \n if ( descriptorsSize > NUMBER0 ) { \n \n - SINGLE \n - if ( descriptorsSize > NUMBER1 ) { \n - file . position ( file . position ( ) + descriptorsSize - NUMBER1 ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + int lastSymbolNameOffset = NUMBER0 ; \n + for ( int i = NUMBER0 ; i < descriptorsSize / NUMBER1 ; i ++ ) { \n + lastSymbolNameOffset = \n + Math . max ( \n + lastSymbolNameOffset , \n + ObjectFileScrubbers . getLittleEndian32BitLong ( file ) ) ; \n + SINGLE \n + ObjectFileScrubbers . getLittleEndian32BitLong ( file ) ; \n } \n \n - int lastSymbolNameOffset = ObjectFileScrubbers . getLittleEndian32BitLong ( file ) ; \n - SINGLE \n - ObjectFileScrubbers . getLittleEndian32BitLong ( file ) ; \n - \n int symbolNameTableSize = ObjectFileScrubbers . getLittleEndian32BitLong ( file ) ; \n int endOfSymbolNameTableOffset = file . position ( ) + symbolNameTableSize ;", "msg_token": "Make BsdScrubber work with sorted symbol tables"} {"diff": " public class Interceptors extends BlockJUnit4ClassRunner { \n @ override \n protected Statement withBefores ( FrameworkMethod method , Object target , \n Statement statement ) { \n - SINGLE \n return super . withBefores ( method , target , intercept ( statement , target , method ) ) ; \n } \n \n public class TestWatchman implements StatementInterceptor { \n public void succeeded ( FrameworkMethod method ) { \n } \n \n - SINGLE \n - SINGLE \n public void failed ( Throwable e , FrameworkMethod method ) { \n } \n \n public class MaxCore { \n } finally { \n try { \n fHistory . save ( ) ; \n - } catch ( FileNotFoundException e ) { \n - SINGLE \n - e . printStackTrace ( ) ; \n } catch ( IOException e ) { \n SINGLE \n e . printStackTrace ( ) ;", "msg_token": "Removed useless TODOs"} {"diff": " public class RouteCalculationResult { \n RouteDirectionInfo info = new RouteDirectionInfo ( s . getSegmentSpeed ( ) , turn ) ; \n if ( routeInd < list . size ( ) ) { \n int lind = routeInd ; \n - if ( turn . isRoundAbout ( ) && routeInd + NUMBER0 < list . size ( ) ) { \n - SINGLE \n - lind = routeInd + NUMBER0 ; \n + if ( turn . isRoundAbout ( ) ) { \n + SINGLE \n + while ( lind < list . size ( ) - NUMBER0 && list . get ( lind ) . getObject ( ) . roundabout ( ) ) { \n + lind ++ ; \n + } \n } \n RouteSegmentResult next = list . get ( lind ) ; \n info . setRef ( next . getObject ( ) . getRef ( ) ) ;", "msg_token": "Fix roundabout issue"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JmsComponent extends DefaultComponent implements ApplicationContext \n SINGLE \n String strategy = getAndRemoveParameter ( parameters , STRING0 , String . class ) ; \n if ( strategy != null ) { \n - if ( isReferenceParameter ( strategy ) ) { \n + if ( EndpointHelper . isReferenceParameter ( strategy ) ) { \n String key = strategy . substring ( NUMBER0 ) ; \n endpoint . setJmsKeyFormatStrategy ( lookup ( key , JmsKeyFormatStrategy . class ) ) ; \n } else { \n public class JmsComponent extends DefaultComponent implements ApplicationContext \n endpoint . setHeaderFilterStrategy ( getHeaderFilterStrategy ( ) ) ; \n \n return endpoint ; \n - } \n + } \n \n COMMENT \n COMMENT", "msg_token": "Fixed the build error of JmsComponet"} {"diff": " public class Drawer { \n } \n } \n \n + SINGLE \n + if ( mFooterView != null ) { \n + if ( mListView == null ) { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n + \n + if ( mHeaderDivider ) { \n + LinearLayout footerContainer = ( LinearLayout ) mActivity . getLayoutInflater ( ) . inflate ( R . layout . drawer_item_footer , null , false ) ; \n + footerContainer . addView ( mFooterView , NUMBER0 ) ; \n + mListView . addFooterView ( footerContainer ) ; \n + } else { \n + mListView . addFooterView ( mFooterView ) ; \n + } \n + } \n + \n SINGLE \n if ( mAdapter != null ) { \n SINGLE", "msg_token": "implement Logic for FooterView"} {"diff": " public class NewWallpaperNotificationReceiver extends BroadcastReceiver { \n int width = options . outWidth ; \n int height = options . outHeight ; \n int shortestLength = Math . min ( width , height ) ; \n - options = new BitmapFactory . Options ( ) ; \n + options . inJustDecodeBounds = false ; \n int largeIconHeight = context . getResources ( ) \n . getDimensionPixelSize ( android . R . dimen . notification_large_icon_height ) ; \n options . inSampleSize = ImageUtil . calculateSampleSize ( shortestLength , largeIconHeight ) ;", "msg_token": "Remove unnecessary creation of new BitmapFactory Options"} {"diff": " public class OGraphDatabase extends ODatabaseDocumentTx { \n delete ( edge ) ; \n } \n } \n - edges . clear ( ) ; \n - iVertex . field ( VERTEX_FIELD_OUT , edges ) ; \n } \n \n SINGLE \n public class OGraphDatabase extends ODatabaseDocumentTx { \n delete ( edge ) ; \n } \n } \n - edges . clear ( ) ; \n - iVertex . field ( VERTEX_FIELD_IN , edges ) ; \n } \n \n SINGLE", "msg_token": "Committed patch by Thomas about OGraphDatabase removeVertex to leave the edge collection and let to the hooks to manage it"} {"diff": " public abstract class AbstractOutputBuffer < S > implements OutputBuffer { \n COMMENT \n COMMENT \n COMMENT \n - protected final OutputBuffer outputStreamOutputBuffer ; \n + protected OutputBuffer outputStreamOutputBuffer ; \n \n COMMENT \n COMMENT", "msg_token": "Revert since it breaks a unit test"} {"diff": " public abstract class TripTimes { \n Trip trip = this . getTrip ( ) ; \n BannedStopSet banned = options . bannedTrips . get ( trip . getId ( ) ) ; \n if ( banned != null ) { \n - if ( banned . contains ( stopIndex ) || banned == BannedStopSet . ALL ) { \n + if ( banned . contains ( stopIndex ) ) { \n return false ; \n } \n }", "msg_token": "Remove superfluous trip banning test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n \n COMMENT", "msg_token": "Remove useless import"} {"diff": " public class PluginResolverFactory implements Factory < PluginResolver > { \n } \n \n resolvers . add ( pluginResolutionServiceResolver ) ; \n - if ( System . getProperties ( ) . containsKey ( STRING0 ) ) { \n - resolvers . add ( customRepositoryPluginResolver ) ; \n - } \n + resolvers . add ( customRepositoryPluginResolver ) ; \n } \n }", "msg_token": "Don t check custom plugin repo url too early"} {"diff": " public class DelayerTest extends ContextTestSupport { \n MockEndpoint resultEndpoint = resolveMandatoryEndpoint ( STRING0 , MockEndpoint . class ) ; \n resultEndpoint . expectedMessageCount ( NUMBER0 ) ; \n SINGLE \n - resultEndpoint . setMinimumResultWaitTime ( NUMBER1 ) ; \n + resultEndpoint . setMinimumResultWaitTime ( NUMBER2 ) ; \n template . sendBody ( STRING1 , STRING2 ) ; \n resultEndpoint . assertIsSatisfied ( ) ; \n }", "msg_token": "Fixed unit test reported by TC"} {"diff": " public abstract class CallPeerMediaHandler \n for ( MediaType mediaType : MediaType . values ( ) ) \n { \n MediaStream stream = getStream ( mediaType ) ; \n + \n + if ( stream == null ) \n + continue ; \n + \n MediaDevice oldDevice = stream . getDevice ( ) ; \n \n if ( oldDevice != null )", "msg_token": "Fixes a NullPointerException which prevented establishing calls"} {"diff": " public class PatternAlight extends AbstractEdge { \n c . set ( Calendar . MILLISECOND , NUMBER0 ) ; \n return c . getTime ( ) ; \n } \n + \n + public TripPattern getPattern ( ) { \n + return pattern ; \n + } \n + \n + public int getStopIndex ( ) { \n + return stopIndex ; \n + } \n } \n public class PatternBoard extends AbstractEdge { \n c . set ( Calendar . MILLISECOND , NUMBER0 ) ; \n return c . getTime ( ) ; \n } \n + \n + public TripPattern getPattern ( ) { \n + return pattern ; \n + } \n + \n + public int getStopIndex ( ) { \n + return stopIndex ; \n + } \n } \n public final class TripPattern implements Serializable { \n Vector < Integer > stopDwellTimes = dwellTimes [ stopIndex ] ; \n stopDwellTimes . set ( pattern , dwellTime ) ; \n } \n + \n + public Vector < Integer > getDepartureTimes ( int stopIndex ) { \n + return departureTimes [ stopIndex ] ; \n + } \n }", "msg_token": "oops forgot these changes which are necessary for gui"} {"diff": " public class UIUtil { \n } \n \n final TreePath pressedPath = getClosestPathForLocation ( tree , e . getX ( ) , e . getY ( ) ) ; \n - if ( tree . isPathSelected ( pressedPath ) ) return ; \n + if ( tree . isPathSelected ( pressedPath ) && ( e . getModifiers ( ) & MouseEvent . META_MASK ) != MouseEvent . META_MASK ) return ; \n \n if ( pressedPath != null ) { \n Rectangle bounds = getPathBounds ( tree , pressedPath ) ; \n public class UIUtil { \n \n tree . setShowsRootHandles ( true ) ; \n tree . addMouseListener ( mySelectionListener ) ; \n + \n + SINGLE \n + SINGLE \n } \n \n @ override", "msg_token": "Command click no longer unselects item when multiple selected"} {"diff": " public class ParticipantJoinRecordEvent extends AbstractParticipantRecordEvent { \n eventMap . put ( STRING0 , userId ) ; \n } \n \n + public void setName ( String name ) { \n + eventMap . put ( STRING1 , name ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class ParticipantsEventRecorder implements IRoomListener { \n ParticipantJoinRecordEvent ev = new ParticipantJoinRecordEvent ( ) ; \n ev . setTimestamp ( System . currentTimeMillis ( ) ) ; \n ev . setUserId ( p . getInternalUserID ( ) . toString ( ) ) ; \n + ev . setName ( p . getName ( ) ) ; \n ev . setMeetingId ( session ) ; \n ev . setStatus ( p . getStatus ( ) . toString ( ) ) ; \n ev . setRole ( p . getRole ( ) ) ;", "msg_token": "Added username for record in participants module"} {"diff": " public class SplitterWithScannerIoExceptionTest extends ContextTestSupport { \n return ; \n } \n \n - getMockEndpoint ( STRING0 ) . expectedMessageCount ( NUMBER0 ) ; \n + getMockEndpoint ( STRING0 ) . expectedMinimumMessageCount ( NUMBER1 ) ; \n getMockEndpoint ( STRING1 ) . expectedMessageCount ( NUMBER2 ) ; \n getMockEndpoint ( STRING1 ) . setSleepForEmptyTest ( NUMBER3 ) ; \n getMockEndpoint ( STRING2 ) . expectedMessageCount ( NUMBER4 ) ;", "msg_token": "Fixed test on windows"} {"diff": " public class TurnVertex extends StreetVertex { \n } \n \n public TurnEdge makeTurnEdge ( StreetVertex tov ) { \n + if ( tov instanceof TurnVertex ) { \n + return new TurnEdge ( this , ( TurnVertex ) tov ) ; \n + } \n return new TurnEdge ( this , tov ) ; \n } \n }", "msg_token": "We have the type system we deserve not the type system we need"} {"diff": " public abstract class Drawable { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a typo in Drawable s javadoc"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Updated query test for new bson positions"} {"diff": " public class DataSourceFactory { \n this . validationQueryTimeout = validationQueryTimeout ; \n } \n \n - public ManagedDataSource build ( MetricRegistry metricRegistry , \n - String name ) throws ClassNotFoundException { \n + public ManagedDataSource build ( MetricRegistry metricRegistry , String name ) { \n final Properties properties = new Properties ( ) ; \n for ( Map . Entry < String , String > property : this . properties . entrySet ( ) ) { \n properties . setProperty ( property . getKey ( ) , property . getValue ( ) ) ;", "msg_token": "Remove unneeded throws declaration"} {"diff": " public class AIMSICD extends BaseActivity implements AsyncResponse { \n } \n \n final String PERSIST_SERVICE = mContext . getString ( R . string . pref_persistservice_key ) ; \n - boolean persistService = prefs . getBoolean ( PERSIST_SERVICE , true ) ; \n + boolean persistService = prefs . getBoolean ( PERSIST_SERVICE , false ) ; \n if ( ! persistService ) { \n Intent intent = new Intent ( mContext , AimsicdService . class ) ; \n stopService ( intent ) ;", "msg_token": "Fixed issue of having to check and uncheck Persistent Service in Preferences after fresh install"} {"diff": " public class BCryptPasswordAlgorithm implements PasswordAlgorithm { \n \n @ override \n public boolean matches ( String hashedPasswordAndSalt , String otherPassword ) { \n - final Splitter splitter = Splitter . on ( SALTPREFIX ) ; \n - final List < String > splitted = splitter . splitToList ( hashedPasswordAndSalt ) ; \n - final String salt = splitted . get ( NUMBER0 ) ; \n + if ( supports ( hashedPasswordAndSalt ) ) { \n + final Splitter splitter = Splitter . on ( SALTPREFIX ) ; \n + final List < String > splitted = splitter . splitToList ( hashedPasswordAndSalt ) ; \n + final String salt = splitted . get ( NUMBER0 ) ; \n \n - return hash ( otherPassword , salt ) . equals ( hashedPasswordAndSalt ) ; \n + return hash ( otherPassword , salt ) . equals ( hashedPasswordAndSalt ) ; \n + } else { \n + throw new IllegalArgumentException ( STRING0 + this . PREFIX ) ; \n + } \n } \n }", "msg_token": "Throwing exception if hashed password is not supported"} {"diff": " public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \n COMMENT \n COMMENT \n COMMENT \n + @ incubating \n ModuleHandler getModules ( ) ; \n \n COMMENT \n public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \n COMMENT \n COMMENT \n COMMENT \n + @ incubating \n void modules ( Closure configureClosure ) ; \n \n COMMENT \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - SINGLE \n - \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ incubating \n public interface ModuleDetails { \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n + @ incubating \n public interface ModuleHandler { \n COMMENT \n COMMENT", "msg_token": "added Incubating annotations"} {"diff": " \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix license header"} {"diff": " public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n public void attributesChanged ( @ notnull RangeHighlighterEx highlighter , boolean renderersChanged ) { \n if ( myDocument . isInBulkUpdate ( ) ) return ; SINGLE \n \n - if ( renderersChanged ) { \n + if ( myUseNewRendering && renderersChanged ) { \n updateGutterSize ( ) ; \n } \n \n boolean errorStripeNeedsRepaint = renderersChanged || highlighter . getErrorStripeMarkColor ( ) != null ; \n - if ( myDocumentChangeInProgress ) { \n + if ( myUseNewRendering && myDocumentChangeInProgress ) { \n SINGLE \n SINGLE \n myErrorStripeNeedsRepaint |= errorStripeNeedsRepaint ; \n public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n ( ( EditorMarkupModelImpl ) getMarkupModel ( ) ) . repaint ( start , end ) ; \n } \n \n + if ( ! myUseNewRendering && renderersChanged ) { \n + updateGutterSize ( ) ; \n + } \n + \n updateCaretCursor ( ) ; \n } \n } ;", "msg_token": "use new logic only when new rendering flag is enabled"} {"diff": " public class SpillingResettableIterator < T extends Record > implements ResettableI \n } \n \n public void close ( ) { \n - if ( ! fitsIntoMem ) { \n + if ( ioReader != null ) { \n try { \n ioReader . close ( ) ; \n ioReader . deleteChannel ( ) ;", "msg_token": "fixed NullPointerException in cancel behavior of SpillingResettableIterator"} {"diff": " public class GitUntrackedFilesHolder implements Disposable , BulkFileListener { \n \n SINGLE \n if ( allChanged ) { \n - LOG . info ( String . format ( STRING0 , myRoot ) ) ; \n + LOG . debug ( String . format ( STRING0 , myRoot ) ) ; \n myDirtyScopeManager . dirDirtyRecursively ( myRoot ) ; \n synchronized ( LOCK ) { \n myReady = false ;", "msg_token": "index file changes a lot"} {"diff": " public class BootstrapCliParserTests extends CliToolTestCase { \n parser . parse ( STRING0 , new String [ ] { STRING1 , STRING2 } ) ; \n fail ( STRING3 ) ; \n } catch ( IllegalArgumentException e ) { \n - assertThat ( e . getMessage ( ) , containsString ( STRING4 ) ) ; \n + assertThat ( e . getMessage ( ) , containsString ( STRING5 ) ) ; \n } \n }", "msg_token": "Fix broken test in BootstrapCliParserTests"} {"diff": " public class GLM2 extends ModelJob { \n _wgiven = beta ; \n this . alpha = new double [ ] { alpha } ; \n this . n_folds = nfolds ; \n + source = dinfo . _adaptedFrame ; \n + response = dinfo . _adaptedFrame . lastVec ( ) ; \n } \n \n static String arrayToString ( double [ ] arr ) { \n public class Frame extends Iced { \n return res ; \n } \n \n + public Vec lastVec ( ) { \n + final Vec [ ] vecs = vecs ( ) ; \n + return vecs [ vecs . length - NUMBER0 ] ; \n + } \n COMMENT \n public Vec anyVec ( ) { \n if ( _col0 != null ) return _col0 ;", "msg_token": "Fixed logStart NPE in GLM2 so that tests pass"} {"diff": " public class ZenModeControllerImpl implements ZenModeController { \n \n private int mUserId ; \n private boolean mRequesting ; \n + private boolean mRegistered ; \n \n public ZenModeControllerImpl ( Context context , Handler handler ) { \n mContext = context ; \n public class ZenModeControllerImpl implements ZenModeController { \n @ override \n public void setUserId ( int userId ) { \n mUserId = userId ; \n + if ( mRegistered ) { \n + mContext . unregisterReceiver ( mReceiver ) ; \n + } \n mContext . registerReceiverAsUser ( mReceiver , new UserHandle ( mUserId ) , \n new IntentFilter ( AlarmManager . ACTION_NEXT_ALARM_CLOCK_CHANGED ) , null , null ) ; \n + mRegistered = true ; \n } \n \n private void fireNextAlarmChanged ( ) {", "msg_token": "Fix crash switching users"} {"diff": " public class ProjectEditingPreferencesPane extends ProjectPreferencesPane \n public ProjectEditingPreferencesPane ( final SourceServerOperations server ) \n { \n SINGLE \n - enableCodeIndexing_ = new CheckBox ( STRING0 , false ) ; \n + enableCodeIndexing_ = new CheckBox ( STRING1 , false ) ; \n enableCodeIndexing_ . addStyleName ( RESOURCES . styles ( ) . enableCodeIndexing ( ) ) ; \n add ( enableCodeIndexing_ ) ;", "msg_token": "make code indexing pref more generic not just for R source files"} {"diff": " public class AnnotatorPool { \n newAnnotator = true ; \n \n SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n annotators . remove ( name ) ; \n } \n SINGLE", "msg_token": "Add a hopefully useful comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RssEndpoint extends FeedEndpoint { \n public RssEndpoint ( String endpointUri , FeedComponent component , String feedUri ) { \n super ( endpointUri , component , feedUri ) ; \n } \n + \n + @ override \n + public Producer createProducer ( ) throws Exception { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n \n @ override \n public Exchange createExchange ( Object feed ) {", "msg_token": "RssEndpoint throw meaningful exception when creating the producer"} {"diff": " public class CentralAuthenticationServiceImplTests extends AbstractCentralAuthen \n @ test \n public void verifyValidateServiceTicketReturnAllAttributes ( ) throws Exception { \n final Service service = getService ( STRING0 ) ; \n - final UsernamePasswordCredential cred = TestUtils . getCredentialsWithSameUsernameAndPassword ( ) ; \n final AuthenticationResult ctx = TestUtils . getAuthenticationResult ( getAuthenticationSystemSupport ( ) , service ) ; \n final TicketGrantingTicket ticketGrantingTicket = getCentralAuthenticationService ( ) . createTicketGrantingTicket ( ctx ) ; \n final ServiceTicket serviceTicket = getCentralAuthenticationService ( ) . grantServiceTicket ( ticketGrantingTicket . getId ( ) , \n public class CentralAuthenticationServiceImplTests extends AbstractCentralAuthen \n final Assertion assertion = getCentralAuthenticationService ( ) . validateServiceTicket ( serviceTicket . getId ( ) , \n service ) ; \n final Authentication auth = assertion . getPrimaryAuthentication ( ) ; \n - assertEquals ( NUMBER0 , auth . getPrincipal ( ) . getAttributes ( ) . size ( ) ) ; \n + assertEquals ( NUMBER1 , auth . getPrincipal ( ) . getAttributes ( ) . size ( ) ) ; \n } \n \n @ test", "msg_token": "Fix test cases"} {"diff": " public class Base { \n COMMENT \n public int handleConfirmAndInstallLibrary ( File libFile ) { \n if ( libraryManagerFrame == null ) libraryManagerFrame = new LibraryManager ( ) ; \n - return libraryManagerFrame . confirmAndInstallLibrary ( activeEditor , libFile ) ; \n + return libraryManagerFrame . confirmAndInstallLibrary ( activeEditor , libFile ) . size ( ) ; \n } \n \n SINGLE", "msg_token": "Fixed compilation error in Base java"} {"diff": " public class HttpRequestHeader extends HttpHeader { \n COMMENT \n public boolean isImage ( ) { \n try { \n + SINGLE \n final String path = getURI ( ) . getPath ( ) ; \n if ( path != null ) { \n return ( patternImage . matcher ( path ) . find ( ) ) ;", "msg_token": "Added the ZAP comment"} {"diff": " public class KeyguardViewManager implements KeyguardWindowController { \n SINGLE \n SINGLE \n if ( mKeyguardView != null ) { \n + final View lastView = mKeyguardView ; \n mKeyguardHost . postDelayed ( new Runnable ( ) { \n public void run ( ) { \n - mKeyguardHost . removeView ( mKeyguardView ) ; \n - mKeyguardView . cleanUp ( ) ; \n - mKeyguardView = null ; \n + synchronized ( KeyguardViewManager . this ) { \n + if ( mKeyguardView == lastView ) { \n + mKeyguardHost . removeView ( mKeyguardView ) ; \n + mKeyguardView . cleanUp ( ) ; \n + mKeyguardView = null ; \n + } \n + } \n } \n } , NUMBER0 ) ; \n }", "msg_token": "Fix potential race when removing keyguard view"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PythonSdkType extends SdkType { \n for ( String s : inside ) { \n if ( PYTHON_NN_RE . matcher ( s ) . matches ( ) ) { \n File py_lib_root = new File ( lib_root , s ) ; \n - String [ ] flag_files = py_lib_root . list ( new FilenameFilter ( ) { \n - @ override \n - public boolean accept ( File file , String s ) { \n - return STRING0 . equals ( s ) ; \n - } \n - } ) ; \n - if ( flag_files != null ) return ; SINGLE \n + if ( new File ( py_lib_root , STRING0 ) . exists ( ) ) return ; SINGLE \n } \n } \n }", "msg_token": "don t use File list to find file by name"} {"diff": " public class StorageManager { \n \n COMMENT \n public static File maybeTranslateEmulatedPathToInternal ( File path ) { \n - SINGLE \n + final IMountService mountService = IMountService . Stub . asInterface ( \n + ServiceManager . getService ( STRING0 ) ) ; \n + try { \n + final VolumeInfo [ ] vols = mountService . getVolumes ( NUMBER0 ) ; \n + for ( VolumeInfo vol : vols ) { \n + if ( ( vol . getType ( ) == VolumeInfo . TYPE_EMULATED \n + || vol . getType ( ) == VolumeInfo . TYPE_PUBLIC ) && vol . isMountedReadable ( ) ) { \n + final File internalPath = FileUtils . rewriteAfterRename ( vol . getPath ( ) , \n + vol . getInternalPath ( ) , path ) ; \n + if ( internalPath != null && internalPath . exists ( ) ) { \n + return internalPath ; \n + } \n + } \n + } \n + } catch ( RemoteException e ) { \n + throw e . rethrowFromSystemServer ( ) ; \n + } \n return path ; \n }", "msg_token": "Revert Remove old FUSE bypass now that we have sdcardfs"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added class header to concurrent package"} {"diff": " public class AnnotateStackTraceAction extends AnAction implements DumbAware { \n public String getToolTip ( int line , Editor editor ) { \n final LastRevision revision = cache . get ( line ) ; \n if ( revision != null ) { \n - return XmlStringUtil . wrapInHtml ( \n - revision . getAuthor ( ) + \n - STRING0 + \n - DateFormatUtil . formatDateTime ( revision . getDate ( ) ) + \n - STRING1 + \n + return XmlStringUtil . escapeString ( \n + revision . getAuthor ( ) + STRING0 + DateFormatUtil . formatDateTime ( revision . getDate ( ) ) + STRING2 + \n revision . getMessage ( ) \n ) ; \n }", "msg_token": "annotate stacktrace fix tooltips for multiline commit messages"} {"diff": " public class Kernel32UtilTest extends TestCase { \n } \n \n public final void testGetLogicalProcessorInformation ( ) { \n - WinNT . SYSTEM_LOGICAL_PROCESSOR_INFORMATION informationArray = Kernel32Util . getLogicalProcessorInformation ( ) ; \n - assertTrue ( informationArray >= NUMBER0 ) ; SINGLE \n + WinNT . SYSTEM_LOGICAL_PROCESSOR_INFORMATION [ ] informationArray = Kernel32Util . getLogicalProcessorInformation ( ) ; \n + assertTrue ( informationArray . length >= NUMBER0 ) ; SINGLE \n for ( WinNT . SYSTEM_LOGICAL_PROCESSOR_INFORMATION information : informationArray ) { \n SINGLE \n SINGLE", "msg_token": "Fixing compilation issues in Kernel32UtilTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RequestProcessor { \n } ; \n request . setRequestProgressListener ( requestProgressListener ) ; \n \n - if ( request . getRequestCacheKey ( ) != null ) { \n + if ( request . getRequestCacheKey ( ) != null && request . getCacheDuration ( ) != DurationInMillis . ALWAYS_EXPIRED ) { \n SINGLE \n try { \n Ln . d ( STRING0 + request ) ;", "msg_token": "Skip cache lookup if cache duration DurationInMillis ALWAYS_EXPIRED"} {"diff": " public class PropertyPhysicalToLogicalConverter \n if ( block == null ) \n return null ; \n \n - Object value = block . getType ( ) . getValue ( block , propertyStore ) ; \n - if ( value instanceof String ) \n - { \n - String stringValue = ( String ) value ; \n - if ( stringValue . startsWith ( STRING0 ) ) \n - { \n - stringValue = ( String ) block . getType ( ) . getValue ( block , propertyStore ) ; \n - System . out . println ( STRING1 + stringValue ) ; \n - } \n - } \n - return value ; \n + return block . getType ( ) . getValue ( block , propertyStore ) ; \n } \n }", "msg_token": "Removed debug code"} {"diff": " public class ResultSetViewer extends Viewer \n } \n \n model . setUpdateInProgress ( false ) ; \n - if ( dataFilter != null ) { \n + if ( error == null && dataFilter != null ) { \n model . updateDataFilter ( dataFilter ) ; \n activePresentation . refreshData ( false , false ) ; \n }", "msg_token": "Handle error during data pump"} {"diff": " public class MediaNames { \n \n SINGLE \n public static final String STREAM_H264_480_360_1411k = \n - STRING0 ; \n + STRING1 ; \n public static final String STREAM_WMV = \n - STRING2 ; \n + STRING3 ; \n public static final String STREAM_H263_176x144_325k = \n - STRING4 ; \n + STRING5 ; \n public static final String STREAM_H264_352x288_1536k = \n - STRING6 ; \n + STRING7 ; \n public static final String STREAM_MP3 = \n - STRING8 ; \n + STRING9 ; \n public static final String STREAM_MPEG4_QVGA_128k = \n - STRING10 ; \n + STRING11 ; \n public static final int STREAM_H264_480_360_1411k_DURATION = NUMBER0 ; \n public static final int VIDEO_H263_AAC_DURATION = NUMBER1 ; \n }", "msg_token": "Modified the new stream video url"} {"diff": " public class Spider implements Runnable , Task { \n } \n SINGLE \n if ( page . getHtml ( ) == null ) { \n - addRequest ( page ) ; \n + extractAndAddRequests ( page ) ; \n sleep ( site . getSleepTime ( ) ) ; \n return ; \n } \n pageProcessor . process ( page ) ; \n - addRequest ( page ) ; \n + extractAndAddRequests ( page ) ; \n if ( ! page . getResultItems ( ) . isSkip ( ) ) { \n for ( Pipeline pipeline : pipelines ) { \n pipeline . process ( page . getResultItems ( ) , this ) ; \n public class Spider implements Runnable , Task { \n } \n } \n \n - protected void addRequest ( Page page ) { \n + protected void extractAndAddRequests ( Page page ) { \n if ( CollectionUtils . isNotEmpty ( page . getTargetRequests ( ) ) ) { \n for ( Request request : page . getTargetRequests ( ) ) { \n addRequest ( request ) ;", "msg_token": "refactor some method name"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PluginRunConfiguration extends RunConfigurationBase { \n } \n } ; \n \n - state . setConsoleBuilder ( TextConsoleBuidlerFactory . getInstance ( ) . createBuilder ( getProject ( ) ) ) ; \n + state . setConsoleBuilder ( TextConsoleBuilderFactory . getInstance ( ) . createBuilder ( getProject ( ) ) ) ; \n state . setModulesToCompile ( getModules ( ) ) ; SINGLE \n return state ; \n }", "msg_token": "remove usage of deprecated API"} {"diff": " public class PackagesPane extends WorkbenchPane implements Packages . Display \n SINGLE \n packratSeparator_ . setVisible ( packratBootstrapButton_ . isVisible ( ) || \n packratMenuButton_ . isVisible ( ) ) ; \n + \n + SINGLE \n + prePackratSeparator_ . setVisible ( true ) ; \n } \n \n @ override \n public class PackagesPane extends WorkbenchPane implements Packages . Display \n \n SINGLE \n toolbar . addLeftWidget ( commands_ . updatePackages ( ) . createToolbarButton ( ) ) ; \n - toolbar . addLeftSeparator ( ) ; \n - toolbar . addLeftSeparator ( ) ; \n + prePackratSeparator_ = toolbar . addLeftSeparator ( ) ; \n \n SINGLE \n SINGLE \n public class PackagesPane extends WorkbenchPane implements Packages . Display \n private ToolbarButton packratBootstrapButton_ ; \n private ToolbarButton packratMenuButton_ ; \n private Widget packratSeparator_ ; \n + private Widget prePackratSeparator_ ; \n private ResizeLayoutPanel packagesTableContainer_ ; \n private int gridRenderRetryCount_ ; \n private PackratContext packratContext_ ;", "msg_token": "fix missing separator preceding Packrat commands in packages pane"} {"diff": " public class LockMBean extends HazelcastMBean < ILock > { \n return lockObject == null ? null : lockObject . toString ( ) ; \n } \n \n + @ managedannotation ( STRING0 ) \n + @ manageddescription ( STRING1 ) \n + public String getPartitionKey ( ) { \n + return managedObject . getPartitionKey ( ) ; \n + } \n \n }", "msg_token": "Exposed the partitionkey attribute on the lockmbean"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n return ; \n } \n try { \n + SINGLE \n + SINGLE \n + ( ( SearchManager ) getContext ( ) . getSystemService ( Context . SEARCH_SERVICE ) ) . \n + stopSearch ( ) ; \n + \n if ( mSearchable . getVoiceSearchLaunchWebSearch ( ) ) { \n getContext ( ) . startActivity ( mVoiceWebSearchIntent ) ; \n } else if ( mSearchable . getVoiceSearchLaunchRecognizer ( ) ) { \n - Intent appSearchIntent = createVoiceAppSearchIntent ( mVoiceAppSearchIntent ) ; \n - \n - SINGLE \n - SINGLE \n - ( ( SearchManager ) getContext ( ) . getSystemService ( Context . SEARCH_SERVICE ) ) . \n - stopSearch ( ) ; \n - \n + Intent appSearchIntent = createVoiceAppSearchIntent ( mVoiceAppSearchIntent ) ; \n getContext ( ) . startActivity ( appSearchIntent ) ; \n } \n } catch ( ActivityNotFoundException e ) {", "msg_token": "Close the search dialog before starting voice search in all cases i e"} {"diff": " public final class SamlService extends AbstractWebApplicationService { \n COMMENT \n protected static String getRequestBody ( final HttpServletRequest request ) { \n final StringBuilder builder = new StringBuilder ( ) ; \n - BufferedReader reader = null ; \n - try { \n - reader = request . getReader ( ) ; \n - \n + try ( final BufferedReader reader = request . getReader ( ) ) { \n String line ; \n while ( ( line = reader . readLine ( ) ) != null ) { \n builder . append ( line ) ; \n } \n return builder . toString ( ) ; \n } catch ( final Exception e ) { \n + LOGGER . error ( STRING0 , e ) ; \n return null ; \n - } finally { \n - IOUtils . closeQuietly ( reader ) ; \n } \n } \n } \n public class X509SubjectAlternativeNameUPNPrincipalResolver extends AbstractX509 \n } catch ( final IOException e ) { \n logger . error ( STRING1 , e ) ; \n } \n - return null ; \n + return null ; \n } \n }", "msg_token": "using auto resource management"} {"diff": " public class UndertowDeploymentInfoService implements Service < DeploymentInfo > { \n d . setDisplayName ( mergedMetaData . getDescriptionGroup ( ) . getDisplayName ( ) ) ; \n } \n d . setDeploymentName ( deploymentName ) ; \n + d . setHostName ( host . getValue ( ) . getName ( ) ) ; \n final ServletContainerService servletContainer = container . getValue ( ) ; \n try { \n SINGLE", "msg_token": "ServletContext getVirtualServerName always returns localhost"} {"diff": " public class TestLuceneIndexRecordReader extends EasyMockSupport { \n ( ( Progressable ) context ) . progress ( ) ; SINGLE \n expectLastCall ( ) . atLeastOnce ( ) ; \n replay ( context ) ; \n - SINGLE \n \n LuceneIndexInputFormat . setQueries ( queryStrings , conf ) ;", "msg_token": "remove a obselete TODO"} {"diff": " public class ImageUtils { \n paint . setXfermode ( new PorterDuffXfermode ( PorterDuff . Mode . SRC_IN ) ) ; \n canvas . drawBitmap ( bitmap , rect , rect , paint ) ; \n \n - SINGLE \n - paint . setStyle ( Paint . Style . STROKE ) ; \n - paint . setStrokeWidth ( FLOAT0 ) ; \n - paint . setColor ( Color . DKGRAY ) ; \n - canvas . drawOval ( rectF , paint ) ; \n - \n return output ; \n }", "msg_token": "Rounds all WPNetworkImageViews with AVATAR type"} {"diff": " public class PrivacyService { \n mSettingCache . put ( key , key ) ; \n } \n } \n + \n + if ( setting . name . startsWith ( STRING0 ) ) \n + synchronized ( mRestrictionCache ) { \n + mRestrictionCache . clear ( ) ; \n + } \n } catch ( Throwable ex ) { \n Util . bug ( null , ex ) ; \n throw new RemoteException ( ex . toString ( ) ) ;", "msg_token": "setSettingInternal clears restriction cache when storing a whitelist"} {"diff": " public class Config \n public RequestSchedulerId request_scheduler_id ; \n public RequestSchedulerOptions request_scheduler_options ; \n \n - public EncryptionOptions encryption_options ; \n + public EncryptionOptions encryption_options = new EncryptionOptions ( ) ; \n \n public Integer index_interval = NUMBER0 ; \n \n public final class MessagingService implements MessagingServiceMBean \n private List < ServerSocket > getServerSocket ( InetAddress localEp ) throws IOException , ConfigurationException \n { \n final List < ServerSocket > ss = new ArrayList < ServerSocket > ( ) ; \n - if ( DatabaseDescriptor . getEncryptionOptions ( ) != null && DatabaseDescriptor . getEncryptionOptions ( ) . internode_encryption != EncryptionOptions . InternodeEncryption . none ) \n + if ( DatabaseDescriptor . getEncryptionOptions ( ) . internode_encryption != EncryptionOptions . InternodeEncryption . none ) \n { \n ss . add ( SSLFactory . getServerSocket ( DatabaseDescriptor . getEncryptionOptions ( ) , localEp , DatabaseDescriptor . getSSLStoragePort ( ) ) ) ; \n SINGLE", "msg_token": "Prevent NPE when encryption options are missing"} {"diff": " \n package NAMESPACE ; \n \n public class Debug { \n - public static final boolean DEBUG_ENABLED = true ; \n + public static final boolean DEBUG_ENABLED = false ; \n \n public static void onConnectionStart ( ) { \n if ( DEBUG_ENABLED )", "msg_token": "remove debug flag"} {"diff": " public class ShareUtils { \n if ( savedInstanceState != null ) { \n input . setText ( savedInstanceState . getString ( STRING0 ) ) ; \n } else { \n - input . setText ( episodestring + STRING1 ) ; \n + input . setText ( episodestring ) ; \n } \n \n return new AlertDialog . Builder ( getActivity ( ) ) . setTitle ( getString ( R . string . comment ) )", "msg_token": "Remove the SeriesGuide tag from GetGlue check ins as the website now"} {"diff": " public class AndroidDisplayer extends AbsDisplayer < Canvas , Typeface > { \n } \n \n @ override \n - public void drawDanmaku ( BaseDanmaku danmaku , Canvas canvas , float left , float top , \n + public synchronized void drawDanmaku ( BaseDanmaku danmaku , Canvas canvas , float left , float top , \n boolean fromWorkerThread ) { \n float _left = left ; \n float _top = top ;", "msg_token": "make drawDanmaku synchronized"} {"diff": " public class TestCometProcessor extends TomcatBaseTest { \n return e ; \n } \n \n - public void clearResponse ( ) { \n - response = new StringBuilder ( ) ; \n - } \n - \n public String getResponse ( ) { \n return response . toString ( ) ; \n }", "msg_token": "Remove unused code"} {"diff": " public abstract class AbstractAjpParser { \n while ( length < stringLength ) { \n if ( ! buf . hasRemaining ( ) ) { \n state . stringLength = stringLength ; \n + state . containsUrlCharacters = containsUrlCharacters ; \n return new StringHolder ( null , false , false ) ; \n } \n char c = ( char ) buf . get ( ) ; \n public abstract class AbstractAjpParser { \n state . containsUrlCharacters = false ; \n return new StringHolder ( builder . toString ( ) , true , containsUrlCharacters ) ; \n } else { \n + state . stringLength = stringLength ; \n + state . containsUrlCharacters = containsUrlCharacters ; \n return new StringHolder ( null , false , false ) ; \n } \n }", "msg_token": "Fix issue with AJP parsing"} {"diff": " public final class FileChooserUtil { \n } \n else if ( toSelect != null && lastPath != null ) { \n if ( Boolean . TRUE . equals ( descriptor . getUserData ( PathChooserDialog . PREFER_LAST_OVER_EXPLICIT ) ) ) { \n - return toSelect ; \n + return lastPath ; \n } \n else { \n - return lastPath ; \n + return toSelect ; \n } \n } \n else if ( toSelect == null ) {", "msg_token": "Fix broken last or explicit logic"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public interface ParameterInfoUIContext { \n boolean isUIComponentEnabled ( ) ; \n void setUIComponentEnabled ( boolean enabled ) ; \n \n - boolean isLastParameterOwner ( ) ; \n int getCurrentParameterIndex ( ) ; \n PsiElement getParameterOwner ( ) ;", "msg_token": "js parameter info should show types"} {"diff": " public final class LineageDataManagerTest { \n List < Long > persistedFiles = ( List < Long > ) Whitebox . getInternalState ( manager , STRING0 ) ; \n Assert . assertEquals ( Lists . newArrayList ( fileId ) , persistedFiles ) ; \n \n - SINGLE \n + SINGLE \n PowerMockito . verifyStatic ( Mockito . times ( NUMBER0 ) ) ; \n BufferUtils . fastCopy ( Mockito . any ( ReadableByteChannel . class ) , \n Mockito . any ( WritableByteChannel . class ) ) ;", "msg_token": "addressed gpang s comments"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class BehaviorSubject < T > extends Subject < T , T > { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static < T > BehaviorSubject < T > createWithDefaultValue ( T defaultValue ) { \n final ConcurrentHashMap < Subscription , Observer < T > > observers = new ConcurrentHashMap < Subscription , Observer < T > > ( ) ;", "msg_token": "Improved documentation of the BehaviourSubject"} {"diff": " public class FragmentListView extends SherlockFragment implements \n mList = ( ExtendedListView ) ( v . findViewById ( R . id . list_root ) ) ; \n mList . setOnItemClickListener ( this ) ; \n mList . setOnItemLongClickListener ( this ) ; \n - mList . setEmptyView ( v . findViewById ( R . id . empty_list_view ) ) ; \n + SINGLE \n mList . setDivider ( getResources ( ) . getDrawable ( R . drawable . uploader_list_separator ) ) ; \n mList . setDividerHeight ( NUMBER0 ) ; \n return v ;", "msg_token": "Undone the background message in empty folders"} {"diff": " public class GroupByQueryQueryToolChest extends QueryToolChest < Row , GroupByQuery \n } \n \n SINGLE \n - final GroupByQuery innerQuery = new GroupByQuery . Builder ( query ) \n + final GroupByQuery innerQuery = new GroupByQuery . Builder ( subquery ) \n . setAggregatorSpecs ( aggs ) \n . setInterval ( subquery . getIntervals ( ) ) \n . setPostAggregatorSpecs ( Lists . < PostAggregator > newArrayList ( ) )", "msg_token": "Inner Query should build on sub query"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class DateTimeZone implements Serializable { \n \n static final long serialVersionUID = NUMBER0 ; \n \n - COMMENT \n + COMMENT \n public static final DateTimeZone UTC = new FixedDateTimeZone ( STRING0 , STRING0 , NUMBER1 , NUMBER1 ) ; \n \n private static Provider cProvider ; \n public abstract class DateTimeZone implements Serializable { \n return new Stub ( iID ) ; \n } \n \n - static class UTCProvider implements Provider { \n - public DateTimeZone getDateTimeZone ( String id ) { \n - if ( STRING0 . equals ( id ) ) { \n - return UTC ; \n - } \n - return null ; \n - } \n - \n - public Set getAvailableIDs ( ) { \n - return Collections . singleton ( STRING0 ) ; \n - } \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Moved out UTCProvider"} {"diff": " public class PowerNotificationWarnings implements PowerUI . WarningsUI { \n nb . setContentIntent ( pendingBroadcast ( ACTION_SHOW_BATTERY_SETTINGS ) ) ; \n } \n if ( ! mSaver ) { \n - nb . addAction ( R . drawable . ic_power_saver , \n + nb . addAction ( NUMBER0 , \n mContext . getString ( R . string . battery_saver_start_action ) , \n pendingBroadcast ( ACTION_START_SAVER ) ) ; \n } else { \n public class PowerNotificationWarnings implements PowerUI . WarningsUI { \n } \n \n private void addStopSaverAction ( Notification . Builder nb ) { \n - nb . addAction ( R . drawable . ic_power_saver , \n + nb . addAction ( NUMBER0 , \n mContext . getString ( R . string . battery_saver_notification_action_text ) , \n pendingBroadcast ( ACTION_STOP_SAVER ) ) ; \n }", "msg_token": "Remove notification action icons"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SingleUseDaemonClient extends DaemonClient { \n return ( T ) monitorBuild ( build , connection ) . getValue ( ) ; \n } else if ( firstResult instanceof Failure ) { \n SINGLE \n - throw ( ( Failure ) firstResult ) . getValue ( ) ; \n + throw UncheckedException . asUncheckedException ( ( ( Failure ) firstResult ) . getValue ( ) ) ; \n } else if ( firstResult instanceof DaemonBusy ) { \n throw new GradleException ( STRING0 ) ; \n } else if ( firstResult == null ) {", "msg_token": "Fixed compilation problem"} {"diff": " public class FastResultSetHandler implements ResultSetHandler { \n } \n \n protected boolean shouldProcessMoreRows ( ResultSet rs , ResultContext context , RowBounds rowBounds ) throws SQLException { \n - return rs . next ( ) && context . getResultCount ( ) < rowBounds . getLimit ( ) && ! context . isStopped ( ) ; \n + return ! context . isStopped ( ) && rs . next ( ) && context . getResultCount ( ) < rowBounds . getLimit ( ) ; \n } \n \n protected void skipRows ( ResultSet rs , RowBounds rowBounds ) throws SQLException {", "msg_token": "FastResultSetHandler shouldProcessMoreRows should check isStopped first"} {"diff": " public class ThemeBrowserFragment extends Fragment implements RecyclerListener , \n } \n \n @ override \n + public void onDetach ( ) { \n + super . onDetach ( ) ; \n + mCallback = null ; \n + } \n + \n + @ override \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { \n View view = inflater . inflate ( R . layout . theme_browser_fragment , container , false ) ;", "msg_token": "Removing callback onDetach"} {"diff": " abstract class PoolBase \n private static final int FALSE = NUMBER0 ; \n \n private int networkTimeout ; \n - private int transactionIsolation ; \n private int isNetworkTimeoutSupported ; \n private int isQueryTimeoutSupported ; \n private Executor netTimeoutExecutor ; \n abstract class PoolBase \n private final String catalog ; \n private final boolean isReadOnly ; \n private final boolean isAutoCommit ; \n + private final int transactionIsolation ; \n + \n private final boolean isUseJdbc4Validation ; \n private final boolean isIsolateInternalQueries ; \n private final AtomicReference < Throwable > lastConnectionFailure ;", "msg_token": "made transactionIsolation final"} {"diff": " public class BinaryMapIndexReader { \n case OsmandOdb . MapTree . BASEID_FIELD_NUMBER : \n case OsmandOdb . MapTree . OLDBASEID_FIELD_NUMBER : \n long baseId = codedIS . readUInt64 ( ) ; \n - \n if ( lastIndexResult != - NUMBER0 ) { \n for ( int i = lastIndexResult ; i < req . searchResults . size ( ) ; i ++ ) { \n BinaryMapDataObject rs = req . searchResults . get ( i ) ; \n public class BinaryMapIndexReader { \n int top = NUMBER1 ; \n int bottom = NUMBER1 ; \n \n - long baseId = NUMBER1 ; \n - \n - List < String > stringTable = null ; \n - List < MapTree > subTrees = null ; \n - \n }", "msg_token": "remove unused vars"} {"diff": " public class MatchPatchPaths { \n for ( VirtualFile file : files ) { \n Pair < VirtualFile , Integer > pair = compareNamesImpl ( strings , file , i ) ; \n if ( pair != null && pair . getSecond ( ) < i ) { \n - if ( best == null || pair . getSecond ( ) > best . getSecond ( ) ) { \n + if ( best == null || pair . getSecond ( ) < best . getSecond ( ) ) { \n best = pair ; \n } \n }", "msg_token": "Fix path detection for new files test"} {"diff": " public class PApplet extends Applet \n SINGLE \n if ( revalidateMethod != null ) { \n try { \n - revalidateMethod . invoke ( this ) ; \n + revalidateMethod . invoke ( PApplet . this ) ; \n } catch ( Exception ex ) { \n ex . printStackTrace ( ) ; \n revalidateMethod = null ;", "msg_token": "wrong this being passed into method invocation"} {"diff": " public class DriverConductor extends Agent \n \n private void onCheckConnections ( ) \n { \n - final long now = timerWheel . now ( ) ; \n + final long now = timerWheel . now ( ) ; SINGLE \n \n connections . forEach ( \n ( connection ) - > \n public class DriverConductor extends Agent \n rescheduleTimeout ( CHECK_TIMEOUT_MS , TimeUnit . MILLISECONDS , connectionCheckTimer ) ; \n } \n \n - SINGLE \n private void onLivenessCheckClients ( ) \n { \n final long now = timerWheel . now ( ) ;", "msg_token": "Java Added TODO"} {"diff": " public abstract class TestCluster implements Iterable < Client > , Closeable { \n assertAcked ( client ( ) . admin ( ) . indices ( ) . prepareDelete ( concreteIndices . toArray ( String . class ) ) ) ; \n } \n } \n + } catch ( AssertionError ae ) { \n + SINGLE \n + logger . info ( STRING0 ) ; \n + ElasticsearchTestCase . printStackDump ( logger ) ; \n + logger . info ( STRING1 ) ; \n + throw ae ; \n } \n } \n }", "msg_token": "dump all threads when delete index fails during test cleanup"} {"diff": " import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused import"} {"diff": " public class ActivityShare extends Activity { \n mAppAdapter . setMessage ( uid , getString ( R . string . msg_restart ) ) ; \n \n SINGLE \n - mAppAdapter . setMessage ( mListAbortedUid . get ( NUMBER0 ) , getString ( R . string . msg_aborted ) ) ; \n + if ( mListAbortedUid . size ( ) > NUMBER0 ) \n + mAppAdapter . setMessage ( mListAbortedUid . get ( NUMBER0 ) , getString ( R . string . msg_aborted ) ) ; \n \n mAppAdapter . notifyDataSetChanged ( ) ; \n }", "msg_token": "Fixing abort message again"} {"diff": " public class UpdateBase extends AbstractBaseTest { \n } \n \n @ test \n - public void Update_With_TempateExpression_In_Batch ( ) { \n + public void Update_With_TemplateExpression_In_Batch ( ) { \n update ( survey ) \n . set ( survey . id , NUMBER0 ) \n . set ( survey . name , Expressions . stringTemplate ( STRING0 ) )", "msg_token": "Fix typo in test method s name"} {"diff": " public class FileResource extends Resource \n if ( ! abs . equals ( can ) ) \n { \n LOG . debug ( STRING0 , abs , can ) ; \n - return new File ( can ) . toURI ( ) ; \n + \n + URI alias = new File ( can ) . toURI ( ) ; \n + SINGLE \n + return new URI ( STRING1 + URIUtil . encodePath ( alias . getPath ( ) ) ) ; \n } \n } \n - catch ( IOException e ) \n + catch ( Exception e ) \n { \n LOG . warn ( STRING2 , file , e . toString ( ) ) ; \n LOG . debug ( e ) ;", "msg_token": "encode alias URIs from File toURI"} {"diff": " public class YoutubeChannelExtractor extends ChannelExtractor { \n if ( ! isAjaxPage ) { \n Element el = doc . select ( STRING0 ) . first ( ) . select ( STRING1 ) . first ( ) ; \n String cssContent = el . html ( ) ; \n - String url = STRING2 + Parser . matchGroup1 ( STRING3 , cssContent ) ; \n + String url = STRING2 + Parser . matchGroup1 ( STRING4 , cssContent ) ; \n if ( url . contains ( STRING5 ) ) { \n bannerUrl = null ; \n } else {", "msg_token": "Fix banner extaction"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ finegrainedlazysingleton \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class EurekaJacksonCodec {", "msg_token": "add author tag"} {"diff": " \n package NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class MarkdownUtils { \n COMMENT \n COMMENT \n public static String transformMarkdown ( String markdown , LinkRenderer linkRenderer ) { \n - PegDownProcessor pd = new PegDownProcessor ( ALL ) ; \n + PegDownProcessor pd = new PegDownProcessor ( ALL & ~ SMARTYPANTS ) ; \n String html = pd . markdownToHtml ( markdown , linkRenderer == null ? new LinkRenderer ( ) : linkRenderer ) ; \n return html ; \n }", "msg_token": "Disable the SMARTYPANTS Markdown extension"} {"diff": " public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class CameraCharacteristics extends CameraMetadata < CameraCharacteri \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove FREEFORM cropping requirement from FULL"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public final class Strings { \n COMMENT \n COMMENT \n COMMENT \n + @ checkreturnvalue \n public static String nullToEmpty ( @ nullable String string ) { \n return ( string == null ) ? STRING0 : string ; \n }", "msg_token": "Add CheckReturnValue to Strings nullToEmpty"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed HttpClient Javadocs"} {"diff": " public class LoggingConfigurationTest { \n assertThat ( file . getThreshold ( ) , \n is ( Level . ALL ) ) ; \n \n + assertThat ( file . isArchive ( ) , \n + is ( true ) ) ; \n + \n assertThat ( file . getCurrentLogFilename ( ) , \n is ( STRING0 ) ) ;", "msg_token": "Add test for isArchive setting"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class DatabaseReconciliator { \n private static final Logger logger = Logger . getLogger ( DatabaseReconciliator . class . getSimpleName ( ) ) ;", "msg_token": "Adding author to DatabaseReconciliator"} {"diff": " final class ActivityStack { \n r . app = null ; \n } \n lastTask = r . task ; \n - finishActivityLocked ( r , Activity . RESULT_CANCELED , null , STRING0 , true ) ; \n + if ( finishActivityLocked ( r , Activity . RESULT_CANCELED , null , STRING0 , \n + true ) ) { \n + SINGLE \n + -- numActivities ; \n + -- activityNdx ; \n + } \n } \n } \n }", "msg_token": "Handle case where finishActivity removes activity"} {"diff": " public class GenericDijkstra { \n } \n \n public ShortestPathTree getShortestPathTree ( State initialState ) { \n - Vertex target = initialState . getOptions ( ) . rctx . target ; \n + Vertex target = null ; \n + if ( options . rctx != null ) { \n + target = initialState . getOptions ( ) . rctx . target ; \n + } \n ShortestPathTree spt = createShortestPathTree ( options ) ; \n OTPPriorityQueue < State > queue = createPriorityQueue ( ) ;", "msg_token": "make graph building actually work"} {"diff": " public class GitRootScanner implements BulkFileListener , ModuleRootListener , Dis \n @ override \n public void run ( ) { \n myProjectIsInitialized = true ; \n + scanIfReady ( ) ; \n } \n } ) ; \n \n public class GitRootScanner implements BulkFileListener , ModuleRootListener , Dis \n @ override \n public void directoryMappingChanged ( ) { \n myMappingsAreReady = true ; \n + scanIfReady ( ) ; \n } \n \n private void scanIfReady ( ) {", "msg_token": "make initial scan"} {"diff": " public class PGL extends processing . opengl . PGL { \n COMMENT \n protected static final int MIN_ARRAYCOPY_SIZE = NUMBER0 ; \n \n + COMMENT \n + COMMENT \n + protected static final float STROKE_DISPLACEMENT = FLOAT0 ; \n + \n protected static int request_depth_bits = NUMBER1 ; \n protected static int request_stencil_bits = NUMBER2 ; \n protected static int request_alpha_bits = NUMBER2 ;", "msg_token": "Added STROKE_DISPLACEMENT to PGL in LWJGL"} {"diff": " public class OkHttpDownloader implements Downloader { \n \n int responseCode = connection . getResponseCode ( ) ; \n if ( responseCode >= NUMBER0 ) { \n + connection . disconnect ( ) ; \n return null ; \n } \n \n public class UrlConnectionDownloader implements Downloader { \n \n int responseCode = connection . getResponseCode ( ) ; \n if ( responseCode >= NUMBER0 ) { \n + connection . disconnect ( ) ; \n return null ; \n }", "msg_token": "Disconnect the connection if we are existing early"} {"diff": " public class ContractionHierarchy implements Serializable { \n \n path . edges = flatten ( path . edges ) ; \n SINGLE \n + double savedMaxWalkDistance = options . maxWalkDistance ; \n + options . maxWalkDistance = Double . MAX_VALUE ; SINGLE \n if ( options . isArriveBy ( ) ) { \n cleanPathEdgesBack ( init , path , options ) ; \n } else { \n cleanPathEdges ( init , path , options ) ; \n } \n path . optimize ( ) ; \n + options . maxWalkDistance = savedMaxWalkDistance ; \n return path ; \n }", "msg_token": "turn off walk distance checking in CH path merging"} {"diff": " public class SliceQueryFilter implements IFilter \n } \n } \n \n - if ( toRemote != null ) \n + if ( toRemove != null ) \n { \n for ( ByteBuffer columnName : toRemove ) \n cf . remove ( columnName ) ;", "msg_token": "Fix typo in typo fix"} {"diff": " public class Build { \n List unknownTasks = buildExecuter . unknownTasks ( startParameter . getTaskNames ( ) , startParameter . isRecursive ( ) , \n projectLoader . getCurrentProject ( ) ) ; \n if ( GUtil . isTrue ( unknownTasks ) ) { \n - throw new UnknownTaskException ( STRING0 ) ; \n + throw new UnknownTaskException ( STRING1 + unknownTasks + STRING2 ) ; \n } \n unknownTaskCheck = true ; \n }", "msg_token": "Fixed wrong display of unknown tasks"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class ApplyProjectRolesDecorator implements Decorator { \n public class ApplyProjectRolesDecorator implements Decorator { \n } \n \n private boolean isProject ( Resource resource ) { \n - if ( Resource . QUALIFIER_PROJECT . equals ( resource . getQualifier ( ) ) || \n - Resource . QUALIFIER_VIEW . equals ( resource . getQualifier ( ) ) || \n - Resource . QUALIFIER_SUBVIEW . equals ( resource . getQualifier ( ) ) ) { \n + if ( Qualifiers . PROJECT . equals ( resource . getQualifier ( ) ) || \n + Qualifiers . VIEW . equals ( resource . getQualifier ( ) ) || \n + Qualifiers . SUBVIEW . equals ( resource . getQualifier ( ) ) ) { \n return resource instanceof Project ; \n } \n return false ;", "msg_token": "Replace usage of deprecated constants"} {"diff": " public @ interface NotEmpty { \n \n public int sequence ( ) default - NUMBER0 ; \n public int messageResId ( ) default - NUMBER0 ; \n - public String message ( ) default STRING0 ; \n + public String message ( ) default STRING1 ; \n }", "msg_token": "NotEmpty Make error message consistent"} {"diff": " public class NextUnreadRedirectPage extends WebPage { \n List < FeedCategory > children = feedCategoryDAO \n . findAllChildrenCategories ( user , category ) ; \n statuses = feedEntryStatusDAO . findUnreadByCategories ( children , \n - null , NUMBER0 , NUMBER1 , ReadingOrder . desc , false ) ; \n + null , NUMBER0 , NUMBER1 , ReadingOrder . desc , true ) ; \n } \n }", "msg_token": "fix next unread bookmarklet for categories"} {"diff": " package NAMESPACE ; \n \n \n public enum TreeParserToken { \n + Ignorable , \n StartDocument , \n EndDocument , \n StartEntity , \n public class XmlParser implements TreeParser { \n case XMLStreamConstants . CHARACTERS : return TreeParserToken . Value ; \n case XMLStreamConstants . START_DOCUMENT : return TreeParserToken . StartDocument ; \n case XMLStreamConstants . END_DOCUMENT : return TreeParserToken . EndDocument ; \n + \n SINGLE \n - default : throw new ServletException ( STRING0 ) ; \n + default : \n + return TreeParserToken . Ignorable ; \n + SINGLE \n } \n }", "msg_token": "Comments in XML file caused the record detection code to fail"} {"diff": " public class PropertyContainerLocker \n else if ( container instanceof Relationship ) \n { \n statement . readOperations ( ) . acquireShared ( ResourceTypes . RELATIONSHIP , ( ( Relationship ) container ) . getId ( ) ) ; \n - return new CoreAPILock ( stmtProvider , ResourceTypes . RELATIONSHIP , ( ( Node ) container ) . getId ( ) ) \n + return new CoreAPILock ( stmtProvider , ResourceTypes . RELATIONSHIP , ( ( Relationship ) container ) . getId ( ) ) \n { \n @ override \n void release ( Statement statement , Locks . ResourceType type , long resourceId ) \n public class PhysicalTransactionCursor implements IOCursor \n { \n return false ; \n } \n - assert entry instanceof LogEntry . Start ; \n + assert entry instanceof LogEntry . Start : STRING0 + entry + STRING1 ; \n LogEntry . Start startEntry = ( LogEntry . Start ) entry ; \n LogEntry . Commit commitEntry ; \n while ( true )", "msg_token": "Fixed copy paste bug in PCL"} {"diff": " public abstract class AbstractEmulatorMojo extends AbstractAndroidMojo { \n private static final String START_EMULATOR_MSG = STRING0 ; \n private static final String START_EMULATOR_WAIT_MSG = STRING1 ; \n private static final String NO_EMULATOR_RUNNING = STRING2 ; \n + private static final String NO_DEMON_RUNNING_MACOSX = STRING3 ; \n \n COMMENT \n private static final String scriptFolder = System . getProperty ( STRING4 ) ; \n public abstract class AbstractEmulatorMojo extends AbstractAndroidMojo { \n } \n \n String emulatorName = getRunningEmulatorName ( ) ; \n - if ( emulatorName . equals ( NO_EMULATOR_RUNNING ) ) \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( emulatorName . equals ( NO_EMULATOR_RUNNING ) || emulatorName . startsWith ( NO_DEMON_RUNNING_MACOSX ) ) \n { \n getLog ( ) . info ( START_EMULATOR_MSG + filename ) ; \n executor . executeCommand ( filename , null ) ;", "msg_token": "added special clause for starting emulator within intellij on macosx"} {"diff": " public class Cpp98Generator implements CodeGenerator \n ) ) ; \n \n sb . append ( String . format ( \n - STRING0 + \n - STRING1 + \n + STRING2 + \n + STRING3 + \n STRING4 + \n STRING5 + \n STRING6 + \n public class Cpp98Generator implements CodeGenerator \n STRING7 + \n STRING8 + \n STRING9 , \n + namespaceName . toUpperCase ( ) , \n className . toUpperCase ( ) \n ) ) ;", "msg_token": "Adding namespace to include guard in order to avoid name collisions"} {"diff": " public class MapActivityActions implements DialogProvider { \n settings . insertIntermediatePoint ( lat , lon , name , NUMBER0 , true ) ; \n } \n targetPointsHelper . updatePointsFromSettings ( ) ; \n - SINGLE \n - openIntermediatePointsDialog ( ) ; \n - SINGLE \n + SINGLE \n + MapActivity . launchMapActivityMoveToTop ( act ) ; \n } \n } ) ; \n builder . show ( ) ; \n } else { \n settings . setPointToNavigate ( lat , lon , true , name ) ; \n targetPointsHelper . updatePointsFromSettings ( ) ; \n - SINGLE \n - openIntermediatePointsDialog ( ) ; \n - SINGLE \n + SINGLE \n + MapActivity . launchMapActivityMoveToTop ( act ) ; \n } \n }", "msg_token": "restore original for now"} {"diff": " public class Application extends ActorSDKApplication { \n @ nullable \n @ override \n public AbsAttachFragment fragmentForAttachMenu ( Peer peer ) { \n - return new AttachFragmentEx ( ) ; \n + return new AttachFragmentEx ( peer ) ; \n } \n \n SINGLE \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AttachFragmentEx extends AttachFragment { \n + \n + public AttachFragmentEx ( Peer peer ) { \n + super ( peer ) ; \n + } \n + \n + public AttachFragmentEx ( ) { \n + } \n + \n @ override \n protected List < ShareMenuField > onCreateFields ( ) { \n List < ShareMenuField > res = super . onCreateFields ( ) ;", "msg_token": "fix example app attach menu custom fragment"} {"diff": " public class MotionPath implements Savable { \n COMMENT \n public float interpolatePath ( float time , MotionTrack control ) { \n \n - float val ; \n float traveledDistance = NUMBER0 ; \n TempVars vars = TempVars . get ( ) ; \n Vector3f temp = vars . vect1 ; \n public class MotionPath implements Savable { \n return traveledDistance ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private float getDist ( MotionTrack control , Vector3f temp , Vector3f store ) { \n - store . set ( temp ) ; \n - return store . subtractLocal ( control . getSpatial ( ) . getLocalTranslation ( ) ) . length ( ) ; \n - } \n - \n private void attachDebugNode ( Node root ) { \n if ( debugNode == null ) { \n debugNode = new Node ( ) ;", "msg_token": "Removed some unused variable and method in MotionPath"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + @ ignore ( STRING0 ) \n public class MaxConcurrentStreamTest extends AbstractTest \n { \n @ test", "msg_token": "Ignore MaxConcurrentStreamsTest for now"} {"diff": " public class OracleSqlStatementBuilder extends SqlStatementBuilder { \n COMMENT \n COMMENT \n COMMENT \n - private static final Pattern KEYWORDS_BEFORE_STRING_LITERAL_REGEX = Pattern . compile ( STRING0 ) ; \n + private static final Pattern KEYWORDS_BEFORE_STRING_LITERAL_REGEX = Pattern . compile ( STRING1 ) ; \n \n COMMENT \n COMMENT \n public class OracleSqlStatementBuilderSmallTest { \n builder . addLine ( STRING2 ) ; \n assertTrue ( builder . isTerminated ( ) ) ; \n } \n + \n + @ test \n + public void quotedStringEndingWithN ( ) { \n + builder . addLine ( STRING3 ) ; \n + assertTrue ( builder . isTerminated ( ) ) ; \n + } \n }", "msg_token": "Fix cleanup of single quoted strings"} {"diff": " public class RealmMigrationTests extends AndroidTestCase { \n @ override \n protected void setUp ( ) throws Exception { \n super . setUp ( ) ; \n - Realm . setSchema ( null ) ; \n Realm . deleteRealmFile ( getContext ( ) ) ; \n } \n \n public class RealmMigrationTests extends AndroidTestCase { \n if ( realm != null ) { \n realm . close ( ) ; \n } \n + Realm . setSchema ( null ) ; \n } \n \n public void testRealmClosedAfterMigrationException ( ) throws IOException {", "msg_token": "Fixed unit tests"} {"diff": " public final class BatchEntryConsumerTest \n Claimer < StubEntry > claimer = ringBuffer . createClaimer ( NUMBER0 , batchEntryConsumer ) ; \n claimer . claimNext ( ) . commit ( ) ; \n \n - while ( batchEntryConsumer . getSequence ( ) != NUMBER0 ) \n - { \n - Thread . yield ( ) ; \n - } \n + latch . await ( ) ; \n \n batchEntryConsumer . halt ( ) ; \n thread . join ( ) ;", "msg_token": "Missed use of latch"} {"diff": " class DefaultRequestDispatcher implements RequestDispatcher { \n } \n } \n } catch ( Exception e ) { \n - log . warn ( STRING0 , e ) ; \n + log . debug ( STRING0 , e ) ; \n } \n \n try {", "msg_token": "Make ssh agent error message debug instead of warn"} {"diff": " public abstract class PersistHdfs { \n conf . addResource ( new Path ( p . getAbsolutePath ( ) ) ) ; \n System . out . println ( STRING0 + p . getAbsolutePath ( ) + STRING1 ) ; \n } else { \n + conf = new Configuration ( ) ; \n if ( ! Strings . isNullOrEmpty ( H2O . OPT_ARGS . hdfs ) ) { \n - conf = new Configuration ( ) ; \n SINGLE \n conf . set ( STRING2 , H2O . OPT_ARGS . hdfs ) ; \n SINGLE", "msg_token": "Fix default conf initialization"} {"diff": " public class MyFirebaseMessagingService extends FirebaseMessagingService { \n SINGLE \n @ override \n public void onMessageReceived ( RemoteMessage remoteMessage ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n Log . d ( TAG , STRING0 + remoteMessage . getFrom ( ) ) ; \n Log . d ( TAG , STRING1 + remoteMessage . getNotification ( ) . getBody ( ) ) ; \n + \n + SINGLE \n + SINGLE \n } \n SINGLE", "msg_token": "Add FCM message type explination"} {"diff": " public abstract class BaseMultiLayerNetwork implements Serializable , Persistable \n \n if ( this . dist == null ) \n dist = new NormalDistribution ( rng , NUMBER0 , FLOAT0 , NormalDistribution . DEFAULT_INVERSE_ABSOLUTE_ACCURACY ) ; \n + synchonrizeRng ( ) ; \n \n this . layers = new NeuralNetwork [ nLayers ] ; \n \n public abstract class BaseMultiLayerNetwork implements Serializable , Persistable \n \n dimensionCheck ( ) ; \n applyTransforms ( ) ; \n - synchonrizeRng ( ) ; \n initCalled = true ; \n \n }", "msg_token": "auto synchronize rng"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RMarkdownPreferencesPane extends PreferencesPane \n prefs_ . showRmdChunkOutputInline ( ) ) ; \n add ( rmdInlineOutput ) ; \n \n + add ( spacedBefore ( headerLabel ( STRING0 ) ) ) ; \n + \n SINGLE \n final CheckBox autoExecuteSetupChunk = checkboxPref ( \n STRING1 , \n public class RMarkdownPreferencesPane extends PreferencesPane \n STRING2 , \n prefs_ . hideConsoleOnChunkExecute ( ) ) ; \n add ( notebookHideConsole ) ; \n + \n + add ( spacedBefore ( new HelpLink ( STRING3 , STRING4 ) ) ) ; \n } \n \n @ override", "msg_token": "add link to R Notebook documentation"} {"diff": " public class CordovaWebView extends WebView { \n if ( android . os . Build . VERSION . SDK_INT > android . os . Build . VERSION_CODES . ICE_CREAM_SANDWICH_MR1 ) \n Level16Apis . enableUniversalAccess ( settings ) ; \n SINGLE \n - settings . setDatabaseEnabled ( true ) ; \n + SINGLE \n String databasePath = this . cordova . getActivity ( ) . getApplicationContext ( ) . getDir ( STRING0 , Context . MODE_PRIVATE ) . getPath ( ) ; \n - settings . setDatabasePath ( databasePath ) ; \n + if ( android . os . Build . VERSION . SDK_INT < android . os . Build . VERSION_CODES . HONEYCOMB ) \n + { \n + settings . setDatabaseEnabled ( true ) ; \n + settings . setDatabasePath ( databasePath ) ; \n + } \n + \n settings . setGeolocationDatabasePath ( databasePath ) ; \n \n SINGLE", "msg_token": "Fixing deleted database for ChildBrowser"} {"diff": " public class OsmandSettings { \n \n @ override \n public void resetToDefault ( ) { \n - set ( getDefaultValue ( ) ) ; \n + T o = defaultValue ; \n + if ( defaultValues != null && defaultValues . containsKey ( currentMode ) ) { \n + o = defaultValues . get ( currentMode ) ; \n + } \n + set ( o ) ; \n } \n \n @ override \n public class EditPOIFilterActivity extends OsmandListActivity { \n filter . setTypeToAccept ( model , false ) ; \n helper . editPoiFilter ( filter ) ; \n } \n + notifyDataSetChanged ( ) ; \n } \n } ) ; \n } \n public class MapWidgetRegistry { \n public boolean onContextMenuClick ( ArrayAdapter < ? > a , int itemId , int pos , boolean isChecked ) { \n pref . set ( ! pref . get ( ) ) ; \n map . updateApplicationModeSettings ( ) ; \n - a . notifyDataSetInvalidated ( ) ; \n + a . notifyDataSetChanged ( ) ; ; \n return false ; \n } \n } ;", "msg_token": "Fix bug with reset"} {"diff": " public final class Config { \n public static final Bitmap . CompressFormat AVATAR_FORMAT = Bitmap . CompressFormat . WEBP ; \n \n public static final int IMAGE_SIZE = NUMBER0 ; \n - public static final Bitmap . CompressFormat IMAGE_FORMAT = Bitmap . CompressFormat . WEBP ; \n + public static final Bitmap . CompressFormat IMAGE_FORMAT = Bitmap . CompressFormat . JPEG ; \n public static final int IMAGE_QUALITY = NUMBER1 ; \n \n public static final int MESSAGE_MERGE_WINDOW = NUMBER2 ;", "msg_token": "lets try jpeg for a while"} {"diff": " public class MetaGenerator { \n generator . appendLn ( STRING0 + minorVersion + STRING1 ) ; \n generator . appendLn ( ) ; \n \n - generator . appendLn ( STRING2 ) ; \n + generator . appendLn ( STRING3 ) ; \n generator . appendLn ( STRING4 ) ; \n \n generator . decreaseDepth ( ) ; \n public final class ApiVersion { \n public static int VERSION_MAJOR = NUMBER0 ; \n public static int VERSION_MINOR = NUMBER1 ; \n \n - private Version ( ) { \n + private ApiVersion ( ) { \n } \n }", "msg_token": "Fixed version class"} {"diff": " public class DataStructures { \n \n private static final int NUMBER_OF_TESTS = NUMBER0 ; \n private static final Random RANDOM = new Random ( ) ; \n - private static final int ARRAY_SIZE = NUMBER1 ; \n + private static final int ARRAY_SIZE = NUMBER2 ; \n \n private static Integer [ ] unsorted = null ; \n private static Integer [ ] reversed = null ; \n public class DataStructures { \n return false ; \n } \n \n - SINGLE \n + passed = testSkipList ( ) ; \n if ( ! passed ) { \n System . err . println ( STRING0 ) ; \n return false ;", "msg_token": "Updated some testing parameters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Source formatting remove unnecessary imports"} {"diff": " public class Status implements Serializable { \n this . status = status ; \n } \n \n + @ nullable \n public Long getPid ( ) { \n return pid ; \n } \n public class DaemonStopEvent implements Serializable { \n return timestamp ; \n } \n \n + @ nullable \n public Long getPid ( ) { \n return pid ; \n }", "msg_token": "Added Nullable to getters to be consistent"} {"diff": " public class ManageCodeStyleSchemesDialog extends DialogWrapper { \n VirtualFile [ ] selection = fileChooser . choose ( CodeStyleSchemesUIConfiguration . Util . getRecentImportFile ( ) , null ) ; \n if ( selection . length == NUMBER0 ) { \n VirtualFile selectedFile = selection [ NUMBER1 ] ; \n + selectedFile . refresh ( false , false ) ; \n CodeStyleSchemesUIConfiguration . Util . setRecentImportFile ( selectedFile ) ; \n try { \n InputStream nameInputStream = selectedFile . getInputStream ( ) ;", "msg_token": "import the same xml does not pick up changes until manual synchronization"} {"diff": " public final class SpdyConnection implements Closeable { \n SINGLE \n SINGLE \n synchronized ( stream ) { \n - synchronized ( this ) { \n + synchronized ( SpdyConnection . this ) { \n stream . receiveSettings ( settings ) ; \n } \n }", "msg_token": "Fix bad locking in SpdyConnection"} {"diff": " import NAMESPACE ; \n COMMENT \n public interface MapServiceContextInterceptorSupport { \n \n - void interceptAfterGet ( String mapNname , Object value ) ; \n + void interceptAfterGet ( String mapName , Object value ) ; \n \n Object interceptPut ( String mapName , Object oldValue , Object newValue ) ;", "msg_token": "Fixed typo in MapServiceContextInterceptorSupport"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class BooksIntegrationTest { \n \n private String bookId ; \n \n + @ afterclass \n + public static void tearDown ( ) { \n + Spark . stop ( ) ; \n + } \n + \n @ after \n - public void tearDown ( ) { \n + public void clearBooks ( ) { \n Books . books . clear ( ) ; \n - Spark . stop ( ) ; \n } \n \n - @ before \n - public void setup ( ) { \n + @ beforeclass \n + public static void setup ( ) { \n before ( ( request , response ) - > { \n response . header ( STRING0 , STRING1 ) ; \n } ) ;", "msg_token": "use BeforeClass AfterClass to improve test executing speed"} {"diff": " public class NameUtil { \n } \n index ++ ; \n } \n + if ( upperCaseCount == NUMBER0 && lowerCaseCount == NUMBER0 && digitCount == NUMBER0 ) continue ; \n String word = name . substring ( wordStart , index ) ; \n array . add ( word ) ; \n }", "msg_token": "skip non identifiers"} {"diff": " public class CachedAuthenticatedSessionHandler implements HttpHandler { \n HttpSessionImpl httpSession = servletContext . getSession ( notification . getExchange ( ) , false ) ; \n switch ( eventType ) { \n case AUTHENTICATED : \n - if ( httpSession != null ) { \n + if ( httpSession != null && ! httpSession . isNew ( ) && ! httpSession . isInvalid ( ) ) { \n ServletRequestContext src = notification . getExchange ( ) . getAttachment ( ServletRequestContext . ATTACHMENT_KEY ) ; \n src . getOriginalRequest ( ) . changeSessionId ( ) ; \n }", "msg_token": "Don t change ID for new sessions"} {"diff": " public class NewsAdapter extends RecyclerView . Adapter < NewsAdapter . CardViewHolder \n \n private DialogInterface . OnClickListener makeGoToZhihuDialogClickListener ( Context context , DailyNews dailyNews ) { \n return ( dialog , which ) - > { \n - String questionTitle = dailyNews . getQuestions ( ) . get ( which ) . getTitle ( ) , \n - questionUrl = dailyNews . getQuestions ( ) . get ( which ) . getUrl ( ) ; \n + String questionUrl = dailyNews . getQuestions ( ) . get ( which ) . getUrl ( ) ; \n \n - shareQuestion ( context , questionTitle , questionUrl ) ; \n + goToZhihu ( context , questionUrl ) ; \n } ; \n }", "msg_token": "Fix Dialog to go to zhihu"} {"diff": " public class VcsHistoryDialog extends DialogWrapper implements DataProvider { \n return new SimpleDiffRequest ( null , content1 , content2 , title1 , title2 ) ; \n } \n catch ( VcsException e ) { \n - canNotLoadRevisionMessage ( e ) ; \n return new MessageDiffRequest ( canNoLoadMessage ( e ) ) ; \n } \n }", "msg_token": "do not report error twice"} {"diff": " public class HdfsComponentConfigurationAndDocumentationTest extends CamelTestSup \n @ test \n public void testComponentConfiguration ( ) throws Exception { \n HdfsComponent comp = context . getComponent ( STRING0 , HdfsComponent . class ) ; \n - EndpointConfiguration conf = comp . createConfiguration ( STRING1 + \n - STRING2 ) ; \n + EndpointConfiguration conf = comp . createConfiguration ( STRING1 \n + + STRING2 ) ; \n \n assertEquals ( STRING3 , conf . getParameter ( STRING4 ) ) ; \n assertEquals ( STRING5 , conf . getParameter ( STRING6 ) ) ;", "msg_token": "Minor Fix CS errors in camel hdfs"} {"diff": " public class ParcelableStatus implements TwidereParcelable , Comparable < Parcelabl \n is_following = cursor . getColumnIndex ( Statuses . IS_FOLLOWING ) ; \n media = cursor . getColumnIndex ( Statuses . MEDIA_LIST ) ; \n mentions = cursor . getColumnIndex ( Statuses . MENTIONS_LIST ) ; \n + card = cursor . getColumnIndex ( Statuses . CARD ) ; \n card_name = cursor . getColumnIndex ( Statuses . CARD_NAME ) ; \n - card = cursor . getColumnIndex ( Statuses . MENTIONS_LIST ) ; \n place_full_name = cursor . getColumnIndex ( Statuses . PLACE_FULL_NAME ) ; \n }", "msg_token": "fixed wrong table name caused card not displaying"} {"diff": " public class LinkedTransferQueue < E > extends AbstractQueue < E > \n COMMENT \n @ override \n public boolean isEmpty ( ) { \n - return firstOfMode ( true ) == null ; \n + for ( Node p = head ; p != null ; p = succ ( p ) ) { \n + if ( ! p . isMatched ( ) ) { \n + return ! p . isData ; \n + } \n + } \n + return true ; \n } \n \n public boolean hasWaitingConsumer ( ) {", "msg_token": "Streamline LinkedTransferQueue isEmpty"} {"diff": " public final class AudioAttributes implements Parcelable { \n case USAGE_VOICE_COMMUNICATION : \n return new String ( STRING0 ) ; \n case USAGE_VOICE_COMMUNICATION_SIGNALLING : \n - return new String ( STRING0 ) ; \n + return new String ( STRING1 ) ; \n case USAGE_ALARM : \n return new String ( STRING2 ) ; \n case USAGE_NOTIFICATION : \n return new String ( STRING3 ) ; \n case USAGE_NOTIFICATION_RINGTONE : \n - return new String ( STRING3 ) ; \n + return new String ( STRING4 ) ; \n case USAGE_NOTIFICATION_COMMUNICATION_REQUEST : \n - return new String ( STRING3 ) ; \n + return new String ( STRING5 ) ; \n case USAGE_NOTIFICATION_COMMUNICATION_INSTANT : \n return new String ( STRING6 ) ; \n case USAGE_NOTIFICATION_COMMUNICATION_DELAYED :", "msg_token": "Fix AudioAttributes usageToString string return values"} {"diff": " public class GoReference extends PsiPolyVariantReferenceBase < GoReferenceExpressi \n return processor . execute ( myElement , state ) ; \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - \n private void processFunctionParameters ( @ notnull GoScopeProcessorBase processor ) { \n SINGLE \n GoFunctionOrMethodDeclaration function = PsiTreeUtil . getParentOfType ( myElement , GoFunctionOrMethodDeclaration . class ) ;", "msg_token": "remove some add stuff"} {"diff": " public class Editor { \n positionAtCursorOffset ( offset , false ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n protected void positionAtCursorOffset ( int offset , boolean parentScrolled ) { \n super . positionAtCursorOffset ( offset , parentScrolled ) ; \n - mInWord = ! getWordIteratorWithText ( ) . isBoundary ( offset ) ; \n + mInWord = ( offset != - NUMBER0 ) && ! getWordIteratorWithText ( ) . isBoundary ( offset ) ; \n } \n \n @ override \n public class Editor { \n positionAtCursorOffset ( offset , false ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n protected void positionAtCursorOffset ( int offset , boolean parentScrolled ) { \n super . positionAtCursorOffset ( offset , parentScrolled ) ; \n - mInWord = ! getWordIteratorWithText ( ) . isBoundary ( offset ) ; \n + mInWord = ( offset != - NUMBER0 ) && ! getWordIteratorWithText ( ) . isBoundary ( offset ) ; \n } \n \n @ override", "msg_token": "Fix crash on calling removeSelection with showing selection handlers"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n WindowManager . LayoutParams . FLAG_DIM_BEHIND \n | WindowManager . LayoutParams . FLAG_LAYOUT_IN_SCREEN ) ; \n mBootMsgDialog . getWindow ( ) . setDimAmount ( NUMBER0 ) ; \n + WindowManager . LayoutParams lp = mBootMsgDialog . getWindow ( ) . getAttributes ( ) ; \n + lp . screenOrientation = ActivityInfo . SCREEN_ORIENTATION_NOSENSOR ; \n + mBootMsgDialog . getWindow ( ) . setAttributes ( lp ) ; \n mBootMsgDialog . setCancelable ( false ) ; \n mBootMsgDialog . show ( ) ; \n }", "msg_token": "Lockscreen has wrong layout"} {"diff": " public class RegexpValidator extends METValidator { \n pattern = Pattern . compile ( regex ) ; \n } \n \n + public RegexpValidator ( @ nonnull String errorMessage , @ nonnull Pattern pattern ) { \n + super ( errorMessage ) ; \n + this . pattern = pattern ; \n + } \n + \n @ override \n public boolean isValid ( @ nonnull CharSequence text , boolean isEmpty ) { \n return pattern . matcher ( text ) . matches ( ) ;", "msg_token": "Added support for pre compiled patterns in RegexpValidator"} {"diff": " public class Server implements Runnable { \n return - NUMBER0 ; \n } \n \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public boolean active ( ) { \n - return ( thread != null ) ; \n + return thread != null ; \n } \n \n + \n static public String ip ( ) { \n try { \n return InetAddress . getLocalHost ( ) . getHostAddress ( ) ; \n public class Serial implements SerialPortEventListener { \n COMMENT \n COMMENT \n public boolean active ( ) { \n - return ( port . isOpened ( ) ) ; \n + return port . isOpened ( ) ; \n }", "msg_token": "remove unnecessary parens"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Remove unneeded imports"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n public class AsyncQueue < T > \n { \n private enum FinishedMarker \n public class AsyncQueue < T > \n \n public void add ( T element ) \n { \n + requireNonNull ( element , STRING0 ) ; \n queue . add ( element ) ; \n futureReference . get ( ) . complete ( null ) ; \n } \n public class AsyncQueue < T > \n SINGLE \n if ( queue . isEmpty ( ) ) { \n CompletableFuture < ? > future = futureReference . get ( ) ; \n - if ( ! future . isDone ( ) ) { \n + if ( future . isDone ( ) ) { \n futureReference . compareAndSet ( future , new CompletableFuture < > ( ) ) ; \n } \n }", "msg_token": "Fix AsyncQueue to actually wait"} {"diff": " public interface Context { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - void setContentType ( String contentType ) ; \n + Context setContentType ( String contentType ) ; \n \n COMMENT \n COMMENT \n public class ContextImpl implements Context { \n } \n \n @ override \n - public void setContentType ( String contentType ) { \n + public ContextImpl setContentType ( String contentType ) { \n this . contentType = contentType ; \n httpServletResponse . setContentType ( contentType ) ; \n - \n + return this ; \n } \n \n @ override", "msg_token": "Allowed chaining with setContentType on Context"} {"diff": " public class Redwood { \n COMMENT \n public static void threadAndRun ( String title , Iterable < Runnable > runnables , int numThreads ) { \n SINGLE \n - if ( numThreads == NUMBER0 || isThreaded ) { \n + if ( numThreads <= NUMBER0 || isThreaded ) { \n startTrack ( STRING0 + title + STRING1 ) ; \n for ( Runnable toRun : runnables ) { toRun . run ( ) ; } \n endTrack ( STRING0 + title + STRING1 ) ;", "msg_token": "Add option to not multithread MIML RE e g for ensemble model"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Removed unused imports"} {"diff": " public class EngineIron extends Engine { \n \n @ override \n public void delete ( ) { \n - \n - } \n + ItemStack stack = tile . getStackInSlot ( NUMBER0 ) ; \n + if ( stack != null ) { \n + Utils . dropItems ( tile . worldObj , stack , tile . xCoord , tile . yCoord , tile . zCoord ) ; \n + } \n + } \n \n @ override \n public void getGUINetworkData ( int i , int j ) {", "msg_token": "Fixed combustion engines not dropping its inventory when broken"} {"diff": " public abstract class ExpandableListItemAdapter < T > extends ArrayAdapter < T > imple \n ValueAnimator animator = createHeightAnimator ( view , NUMBER0 , view . getMeasuredHeight ( ) ) ; \n animator . addUpdateListener ( new ValueAnimator . AnimatorUpdateListener ( ) { \n final int listViewHeight = listView . getHeight ( ) ; \n + final int listViewBottomPadding = listView . getPaddingBottom ( ) ; \n final View v = findDirectChild ( view , listView ) ; \n \n @ override \n public abstract class ExpandableListItemAdapter < T > extends ArrayAdapter < T > imple \n if ( bottom > listViewHeight ) { \n final int top = v . getTop ( ) ; \n if ( top > NUMBER0 ) { \n - listView . smoothScrollBy ( Math . min ( bottom - listViewHeight , top ) , NUMBER0 ) ; \n + listView . smoothScrollBy ( Math . min ( bottom - listViewHeight + listViewBottomPadding , top ) , NUMBER0 ) ; \n } \n } \n }", "msg_token": "Consider padding when scrolling ListView in ExpandableListItemAdapter"} {"diff": " public class GenerateSourcesMojo extends AbstractAndroidMojo \n COMMENT \n COMMENT \n @ parameter ( defaultValue = STRING0 ) \n - protected boolean warnOnApklibDependency ; \n + protected boolean warnOnApklibDependencies ; \n \n COMMENT \n COMMENT \n public class GenerateSourcesMojo extends AbstractAndroidMojo \n protected BuildConfigConstant [ ] buildConfigConstants ; \n \n COMMENT \n + COMMENT \n + @ component \n + private RepositorySystem repositorySystem ; \n + \n + COMMENT \n COMMENT \n COMMENT \n protected static final List < String > EXCLUDED_DEPENDENCY_SCOPES_FOR_EXTRACTION = Arrays . asList ( \n public class GenerateSourcesMojo extends AbstractAndroidMojo \n ) ; \n \n COMMENT \n - COMMENT \n - @ component \n - protected RepositorySystem repositorySystem ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class GenerateSourcesMojo extends AbstractAndroidMojo \n copyManifest ( ) ; \n \n SINGLE \n - if ( warnOnApklibDependency ) \n + if ( warnOnApklibDependencies ) \n { \n checkForApklibDependencies ( ) ; \n }", "msg_token": "Renamed mojo parameter to match its meaning"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BackupManager extends ClusterManagerBase \n super . startInternal ( ) ; \n \n try { \n + if ( getCluster ( ) == null ) { \n + Cluster cluster = getContainer ( ) . getCluster ( ) ; \n + if ( cluster instanceof CatalinaCluster ) { \n + setCluster ( ( CatalinaCluster ) cluster ) ; \n + } else { \n + throw new LifecycleException ( \n + STRING0 + getName ( ) ) ; \n + } \n + } \n cluster . registerManager ( this ) ; \n LazyReplicatedMap < String , Session > map = \n new LazyReplicatedMap < String , Session > ( this ,", "msg_token": "Avoid NPE when reload if a state of a BackupManager is FAILED"} {"diff": " public final class EditorTabbedContainer implements Disposable , CloseAction . Clos \n final TabInfo info = myTabs . findInfo ( e ) ; \n if ( info != null ) { \n IdeEventQueue . getInstance ( ) . blockNextEvents ( e ) ; \n - if ( e . isAltDown ( ) ) { SINGLE \n + if ( e . isAltDown ( ) && e . getButton ( ) == MouseEvent . BUTTON1 ) { SINGLE \n List < TabInfo > allTabInfos = myTabs . getTabs ( ) ; \n for ( TabInfo tabInfo : allTabInfos ) { \n if ( tabInfo == info ) continue ;", "msg_token": "Fix for tab middle click"} {"diff": " public class SearchDialog extends DialogWrapper implements ConfigurationCreator \n Matcher . validate ( searchContext . getProject ( ) , model . getConfig ( ) . getMatchOptions ( ) ) ; \n } \n catch ( MalformedPatternException ex ) { \n - reportMessage ( \n - STRING0 , \n - searchCriteriaEdit , \n - ex . getMessage ( ) != null ? ex . getMessage ( ) : STRING1 \n - ) ; \n - result = false ; \n + if ( myRunFindActionOnClose ) { \n + reportMessage ( \n + STRING0 , \n + searchCriteriaEdit , \n + ex . getMessage ( ) != null ? ex . getMessage ( ) : STRING1 \n + ) ; \n + result = false ; \n + } \n } \n catch ( UnsupportedPatternException ex ) { \n reportMessage ( STRING2 , searchCriteriaEdit , ex . getPattern ( ) ) ;", "msg_token": "ignore MalformedPatternInspection in configure inspection pattern dialog"} {"diff": " public class AccuracyTestingSuite { \n @ beforeclass \n @ parameters ( { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , \n STRING5 } ) \n - private void accuracySuiteSetup ( @ optional ( STRING6 ) String logDir , \n - @ optional ( STRING7 ) String resultsDBTableConfig , \n - @ optional ( STRING8 ) String numH2ONodes , \n - @ optional ( STRING9 ) \n + private void accuracySuiteSetup ( @ org.testng.annotations.optional ( STRING6 ) String logDir , \n + @ org.testng.annotations.optional ( STRING7 ) String resultsDBTableConfig , \n + @ org.testng.annotations.optional ( STRING8 ) String numH2ONodes , \n + @ org.testng.annotations.optional ( STRING9 ) \n String dataSetsCSVPath , \n - @ optional ( STRING10 ) \n + @ org.testng.annotations.optional ( STRING10 ) \n String testCasesCSVPath , \n - @ optional ( STRING7 ) String testCasesFilterString ) \n + @ org.testng.annotations.optional ( STRING7 ) String testCasesFilterString ) \n { \n SINGLE \n this . logDir = logDir ;", "msg_token": "resolve Optional annotation to the org testng annotations one"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix batchnorm reference"} {"diff": " public class RobolectricTestRunner extends BlockJUnit4ClassRunner implements Rob \n return defaultLoader ; \n } \n public static void setDefaultLoader ( Loader robolectricClassLoader ) { \n + SINGLE \n if ( defaultLoader == null ) { \n defaultLoader = ( RobolectricClassLoader ) robolectricClassLoader ; \n } else throw new RuntimeException ( STRING0 ) ; \n public class RobolectricClassLoader extends javassist . Loader { \n \n @ override \n public Class loadClass ( String name ) throws ClassNotFoundException { \n - boolean shouldComeFromThisClassLoader = ! ( name . startsWith ( STRING1 ) || name . startsWith ( STRING2 ) || name . startsWith ( STRING3 ) || name . startsWith ( STRING4 ) ) ; \n + boolean shouldComeFromThisClassLoader = ! ( name . startsWith ( STRING1 ) || name . startsWith ( STRING2 ) \n + || name . startsWith ( STRING3 ) || name . startsWith ( STRING4 ) ) ; SINGLE \n \n Class < ? > theClass ; \n if ( shouldComeFromThisClassLoader ) {", "msg_token": "added comments about the scala additions"} {"diff": " \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - \n public class VerbalExpression { \n \n private final Pattern pattern ; \n public class VerbalExpression { \n COMMENT \n COMMENT \n public Builder maybe ( final Builder regex ) { \n - return this . group ( ) . add ( regex . build ( ) . toString ( ) ) . endGr ( ) . add ( STRING0 ) ; \n + return this . group ( ) . add ( regex ) . endGr ( ) . add ( STRING0 ) ; \n } \n \n COMMENT", "msg_token": "removing toString from builder"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CommaFeedApplication extends Application < CommaFeedConfiguration > { \n \n SINGLE \n HashSessionManager sessionManager = new HashSessionManager ( ) ; \n + sessionManager . setSessionTrackingModes ( ImmutableSet . of ( SessionTrackingMode . COOKIE ) ) ; \n sessionManager . setHttpOnly ( true ) ; \n sessionManager . getSessionCookieConfig ( ) . setHttpOnly ( true ) ;", "msg_token": "don t show jsessionid in url"} {"diff": " public class FlowSQLiteOpenHelper extends SQLiteOpenHelper { \n } \n \n checkForeignKeySupport ( db ) ; \n + \n + SINGLE \n + executeMigrations ( db , - NUMBER0 , db . getVersion ( ) ) ; \n } \n \n COMMENT", "msg_token": "now run migrations on open if they havent run yet in case its not called when the database is created"} {"diff": " public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase { \n assertNoMaster ( nonMasterNode ) ; \n \n logger . info ( STRING0 , masterNode , nonMasterNode ) ; \n - MockTransportService masterTransportService = ( MockTransportService ) internalCluster ( ) . getInstance ( TransportService . class , \n - masterNode ) ; \n - TransportService localTransportService = internalCluster ( ) . getInstance ( TransportService . class , discoveryNodes . localNode ( ) . getName \n - ( ) ) ; \n + MockTransportService masterTransportService = \n + ( MockTransportService ) internalCluster ( ) . getInstance ( TransportService . class , masterNode ) ; \n + TransportService localTransportService = \n + internalCluster ( ) . getInstance ( TransportService . class , discoveryNodes . localNode ( ) . getName ( ) ) ; \n if ( randomBoolean ( ) ) { \n masterTransportService . addFailToSendNoConnectRule ( localTransportService , PublishClusterStateAction . SEND_ACTION_NAME ) ; \n } else {", "msg_token": "Fix formatting in DWSDIT TCJDOPI"} {"diff": " public class LdapPersonAttributeDao extends AbstractQueryPersonAttributeDao < Sear \n private Map < String , List < Object > > convertLdapEntryToMap ( final LdapEntry entry ) { \n final Map < String , List < Object > > attributeMap = new LinkedHashMap < > ( entry . size ( ) ) ; \n for ( final LdapAttribute attr : entry . getAttributes ( ) ) { \n - final String attrNewName = this . getResultAttributeMapping ( ) . get ( attr . getName ( ) ) . toString ( ) ; \n - attributeMap . put ( attrNewName , new ArrayList < Object > ( attr . getStringValues ( ) ) ) ; \n + attributeMap . put ( attr . getName ( ) , new ArrayList < Object > ( attr . getStringValues ( ) ) ) ; \n } \n logger . debug ( STRING0 , entry . getDn ( ) , attributeMap . toString ( ) ) ; \n return attributeMap ;", "msg_token": "fixed test failure"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class \n launcherCp . add ( ClasspathBootstrap . getResourcePath ( launcherClass ) ) ; \n launcherCp . add ( compilerPath ) ; \n ClasspathBootstrap . appendJavaCompilerClasspath ( launcherCp ) ; \n - \n + SINGLE \n + cmdLine . addParameter ( STRING0 ) ; \n cmdLine . addParameter ( STRING1 ) ; \n cmdLine . addParameter ( classpathToString ( launcherCp ) ) ; \n \n public class JavacServerBootstrap { \n appendParam ( cmdLine , STRING2 + JavacServer . USE_ECLIPSE_COMPILER_PROPERTY ) ; \n } \n \n + SINGLE \n + appendParam ( cmdLine , STRING0 ) ; \n + \n for ( String option : vmOptions ) { \n appendParam ( cmdLine , option ) ; \n }", "msg_token": "when launching build process or javac server suppress libraries from ext directories to ensure compiler is loaded from correct location"} {"diff": " public class DBUtils { \n new String [ ] { \n Episodes . FIRSTAIRED , Shows . REF_SHOW_ID \n } , null , null , null ) ; \n + episode . moveToFirst ( ) ; \n final String untilDate = episode . getString ( NUMBER0 ) ; \n final String showId = episode . getString ( NUMBER1 ) ; \n episode . close ( ) ; \n public class DBUtils { \n values . put ( Episodes . WATCHED , true ) ; \n \n context . getContentResolver ( ) . update ( Episodes . buildEpisodesOfShowUri ( showId ) , values , \n - Episodes . FIRSTAIRED + STRING0 , new String [ ] { \n + Episodes . FIRSTAIRED + STRING1 + Episodes . FIRSTAIRED + STRING2 , new String [ ] { \n untilDate \n } ) ; \n + context . getContentResolver ( ) . notifyChange ( Episodes . CONTENT_URI , null ) ; \n } \n \n COMMENT", "msg_token": "Exclude episodes with no air date"} {"diff": " import NAMESPACE ; \n COMMENT \n try { \n metrics . markBadRequest ( System . currentTimeMillis ( ) - invocationStartTime ) ; \n - System . out . println ( STRING0 ) ; \n Exception decorated = executionHook . onError ( _self , FailureType . BAD_REQUEST_EXCEPTION , ( Exception ) t ) ; \n \n if ( decorated instanceof HystrixBadRequestException ) {", "msg_token": "Remove println from bad request flow"} {"diff": " public class UpdateHandlerList extends ArrayList < IUpdateHandler > implements IUpd \n @ override \n public void onUpdate ( final float pSecondsElapsed ) { \n final int handlerCount = this . size ( ) ; \n - for ( int i = NUMBER0 ; i < handlerCount ; i ++ ) { \n + for ( int i = handlerCount - NUMBER1 ; i >= NUMBER0 ; i -- ) { \n this . get ( i ) . onUpdate ( pSecondsElapsed ) ; \n } \n } \n public class UpdateHandlerList extends ArrayList < IUpdateHandler > implements IUpd \n @ override \n public void reset ( ) { \n final int handlerCount = this . size ( ) ; \n - for ( int i = NUMBER0 ; i < handlerCount ; i ++ ) { \n + for ( int i = handlerCount - NUMBER1 ; i >= NUMBER0 ; i -- ) { \n this . get ( i ) . reset ( ) ; \n } \n }", "msg_token": "UpdateHandlerList is now traversed reverse"} {"diff": " public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb \n SINGLE \n SINGLE \n final List < String > firstNode = new ArrayList < String > ( ) ; \n - if ( nodes . iterator ( ) . hasNext ( ) ) \n - firstNode . add ( nodes . iterator ( ) . next ( ) ) ; \n + while ( nodes . iterator ( ) . hasNext ( ) ) { \n + final String f = nodes . iterator ( ) . next ( ) ; \n + if ( isNodeAvailable ( f , databaseName ) ) { \n + firstNode . add ( f ) ; \n + break ; \n + } \n + } \n + \n + if ( firstNode . isEmpty ( ) ) \n + SINGLE \n + firstNode . addAll ( nodes ) ; \n \n ODistributedServerLog . warn ( this , getLocalNodeName ( ) , firstNode . toString ( ) , DIRECTION . OUT , \n STRING0 , databaseName ) ;", "msg_token": "fixed issue on deploy db against an non online db"} {"diff": " public class RegistrationIntentService extends IntentService { \n SINGLE \n SINGLE \n InstanceID instanceID = InstanceID . getInstance ( this ) ; \n - SINGLE \n + SINGLE \n SINGLE \n String token = instanceID . getToken ( getString ( R . string . gcm_defaultSenderId ) , \n GoogleCloudMessaging . INSTANCE_ID_SCOPE , null ) ;", "msg_token": "Clarifying yet further the exact field we re referring to"} {"diff": " public class AllocationAdapter extends Allocation { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n static public AllocationAdapter createTyped ( RenderScript rs , Allocation a , Type t ) {", "msg_token": "Fix punctuation and typos in AllocationAdapter s documentation"} {"diff": " public class RelativeLayout extends ViewGroup { \n SINGLE \n SINGLE \n if ( mySize < NUMBER0 && ! mAllowBrokenMeasureSpecs ) { \n - if ( childSize >= NUMBER0 ) { \n - SINGLE \n - childSpecSize = childSize ; \n - childSpecMode = MeasureSpec . EXACTLY ; \n - } else if ( childStart >= NUMBER0 && childEnd >= NUMBER0 ) { \n + if ( childStart >= NUMBER0 && childEnd >= NUMBER0 ) { \n SINGLE \n childSpecSize = Math . max ( NUMBER0 , childEnd - childStart ) ; \n childSpecMode = MeasureSpec . EXACTLY ; \n + } else if ( childSize >= NUMBER0 ) { \n + SINGLE \n + childSpecSize = childSize ; \n + childSpecMode = MeasureSpec . EXACTLY ; \n } else { \n SINGLE \n childSpecSize = NUMBER0 ;", "msg_token": "Fix RelativeLayout measurement"} {"diff": " public final class JsDocInfoParser { \n \n private Node wrapNode ( int type , Node n ) { \n return n == null ? null : \n - new Node ( type , n , stream . getLineno ( ) , \n - stream . getCharno ( ) ) . clonePropsFrom ( templateNode ) ; \n + new Node ( type , n , n . getLineno ( ) , \n + n . getCharno ( ) ) . clonePropsFrom ( templateNode ) ; \n } \n \n private Node newNode ( int type ) {", "msg_token": "Fix the source location of wrapped JSDoc Nodes"} {"diff": " public class ProcessDiagramCanvas { \n } \n \n SINGLE \n - String text = fitTextToWidth ( name , width ) ; \n - int textX = x + ( ( width - fontMetrics . stringWidth ( text ) ) / NUMBER0 ) ; \n - int textY = y + ( ( height - fontMetrics . getHeight ( ) ) / NUMBER0 ) + fontMetrics . getHeight ( ) ; \n - g . drawString ( text , textX , textY ) ; \n + if ( name != null ) { \n + String text = fitTextToWidth ( name , width ) ; \n + int textX = x + ( ( width - fontMetrics . stringWidth ( text ) ) / NUMBER0 ) ; \n + int textY = y + ( ( height - fontMetrics . getHeight ( ) ) / NUMBER0 ) + fontMetrics . getHeight ( ) ; \n + g . drawString ( text , textX , textY ) ; \n + } \n } \n \n protected String fitTextToWidth ( String original , int width ) {", "msg_token": "Added null check for task name to avoid NPE when task name is not specified in process"} {"diff": " public class OldIndexBackwardsCompatibilityIT extends ESIntegTestCase { \n } \n } \n \n - @ awaitsfix ( bugUrl = STRING0 ) \n public void testOldIndexes ( ) throws Exception { \n setupCluster ( ) ;", "msg_token": "Revert Test awaits Lucene snapshot upgrade"} {"diff": " public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal \n mParser = parser ; \n } \n \n + public boolean isPrepared ( ) { \n + return handler != null && handler . isPrepared ( ) ; \n + } \n + \n public void showFPS ( boolean show ) { \n mShowFps = show ; \n } \n public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal \n } \n } \n \n + public boolean isPrepared ( ) { \n + return mReady ; \n + } \n + \n } \n \n }", "msg_token": "Add isPrepared method"} {"diff": " public abstract class SimpleDataChangedNotifier extends DataChangedNotifier < Simp \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract void onDataChanged ( ) ;", "msg_token": "Fix documentation typo"} {"diff": " public class QDigest implements IQuantileEstimator { \n \n @ override \n public void offer ( long value ) { \n + if ( value < NUMBER0 || value == Long . MAX_VALUE ) { \n + throw new IllegalArgumentException ( STRING0 + ( Long . MAX_VALUE - NUMBER1 ) ) ; \n + } \n SINGLE \n if ( value >= capacity ) { \n rebuildToCapacity ( Long . highestOneBit ( value ) < < NUMBER1 ) ;", "msg_token": "QDigest throw on negative values and Long MAX_VALUE"} {"diff": " public class MainController implements Choreographer . FrameCallback { \n \n TabView currentTabView = getCurrentTab ( ) ; \n \n - if ( null == currentTabView || ! afterTouchAdjust && ! resetToOriginal && ( null == mOriginalBubbleFlowDraggableParams || \n + if ( null == mOriginalBubbleFlowDraggableParams || null == currentTabView || ! afterTouchAdjust && ! resetToOriginal && \n ( mPreviousBubbleAdjustmentValue - newY > ( NUMBER0 - PIXELS_TO_SKIP_BEFORE_SCROLL ) && \n - mPreviousBubbleAdjustmentValue - newY < PIXELS_TO_SKIP_BEFORE_SCROLL ) ) ) { \n + mPreviousBubbleAdjustmentValue - newY < PIXELS_TO_SKIP_BEFORE_SCROLL ) ) { \n return ; \n } \n final int toolbarHeight = currentTabView . toolbarHeight ( ) ;", "msg_token": "Fixed a crash on hide bubbles"} {"diff": " public class AtlasTmxMapLoader extends AsynchronousAssetLoader < TiledMap , AtlasTm \n String atlasFilePath = map . getProperties ( ) . get ( STRING0 , String . class ) ; \n if ( atlasFilePath == null ) { \n FileHandle atlasFile = tmxFile . sibling ( tmxFile . nameWithoutExtension ( ) + STRING1 ) ; \n - if ( atlasFile . exists ( ) ) atlasFilePath = atlasFile . path ( ) ; \n + if ( atlasFile . exists ( ) ) atlasFilePath = atlasFile . name ( ) ; \n } \n if ( atlasFilePath == null ) { \n throw new GdxRuntimeException ( STRING2 ) ;", "msg_token": "Fixed atlas path when relative to TMX file"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public interface Stream < T > extends LinearSeq < T > { \n } \n \n @ override \n - default Match < Stream < T > > match ( ) { \n - return Match ( this ) ; \n + default API . Match < Stream < T > > match ( ) { \n + return API . Match ( this ) ; \n } \n \n @ override", "msg_token": "fixed match method"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class NativePipe extends AbstractPipe < Object , Object > { \n return this . tempIterator . next ( ) ; \n } else { \n Object object = this . block . invoke ( this . starts . next ( ) ) . getValue ( ) ; \n - \n + \n if ( object instanceof Iterator ) \n this . tempIterator = ( Iterator < Object > ) object ; \n else if ( object instanceof Iterable )", "msg_token": "removed unused imports from NativePipe"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed type conversion Javadoc as recommended by phopkins"} {"diff": " public class MissingSymbolsHandler { \n try { \n neededDependencies = getNeededDependencies ( missingSymbolEvents ) ; \n } catch ( IOException e ) { \n - LOG . warn ( STRING0 , e ) ; \n + LOG . warn ( e , STRING0 ) ; \n print ( STRING1 + e . getMessage ( ) ) ; \n return ; \n }", "msg_token": "Fix parameter order in a log call"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask { \n protected boolean shouldPrintOutput = false ; \n protected boolean myProcessCanTerminate ; \n protected ExecutionResult myExecutionResult ; \n + protected SuspendPolicy myDefaultSuspendPolicy = SuspendPolicy . THREAD ; \n \n protected PyBaseDebuggerTask ( @ nullable final String relativeTestDataPath ) { \n super ( relativeTestDataPath ) ; \n public abstract class PyBaseDebuggerTask extends PyExecutionFixtureTestTask { \n doToggleBreakpoint ( file , line ) ; \n } \n } ) ; \n + setBreakpointSuspendPolicy ( getProject ( ) , line , myDefaultSuspendPolicy ) ; \n \n addOrRemoveBreakpoint ( file , line ) ; \n }", "msg_token": "Use Thread as default suspend policy in debugger tests in order to avoid indeterminacy"} {"diff": " public class OETLProcessor implements OETLComponent { \n end ( ) ; \n \n } catch ( OETLProcessHaltedException e ) { \n - out ( LOG_LEVELS . ERROR , STRING0 + e ) ; \n + out ( LOG_LEVELS . ERROR , STRING1 , e ) ; \n } \n } \n \n public class OETLProcessor implements OETLComponent { \n end ( ) ; \n \n } catch ( OETLProcessHaltedException e ) { \n - out ( LOG_LEVELS . ERROR , STRING0 + e ) ; \n + out ( LOG_LEVELS . ERROR , STRING1 , e ) ; \n } \n }", "msg_token": "Fixed bug ETL giving error on out function missing argument for f"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class ELClass {", "msg_token": "Add specification name to version number"} {"diff": " public abstract class AbstractRememberMeServices implements RememberMeServices , \n protected AuthenticationDetailsSource getAuthenticationDetailsSource ( ) { \n return authenticationDetailsSource ; \n } \n + \n + public void setAuthenticationDetailsSource ( AuthenticationDetailsSource authenticationDetailsSource ) { \n + this . authenticationDetailsSource = authenticationDetailsSource ; \n + } \n }", "msg_token": "Added setter for authenticationDetailsSource to AbstractRememberMeServices"} {"diff": " public class LogFileMvcEndpoint extends AbstractMvcEndpoint { \n \n Handler ( Resource resource ) { \n this . resource = resource ; \n + getLocations ( ) . add ( resource ) ; \n try { \n afterPropertiesSet ( ) ; \n } \n public class LogFileMvcEndpoint extends AbstractMvcEndpoint { \n } \n \n @ override \n + protected void initAllowedLocations ( ) { \n + this . getLocations ( ) . clear ( ) ; \n + } \n + \n + @ override \n protected Resource getResource ( HttpServletRequest request ) throws IOException { \n return this . resource ; \n }", "msg_token": "Prevent erroneous empty locations log warnings"} {"diff": " public class ReflectiveConfigOptionLoader { \n Iterator < URL > i = scanUrls . iterator ( ) ; \n while ( i . hasNext ( ) ) { \n File f = new File ( i . next ( ) . getPath ( ) ) ; \n - if ( ! f . exists ( ) || f . isDirectory ( ) ) { \n - log . trace ( STRING0 , f ) ; \n + if ( ! f . exists ( ) || ! f . canRead ( ) ) { \n + log . trace ( STRING1 , f ) ; \n i . remove ( ) ; \n } \n log . trace ( STRING2 , f ) ;", "msg_token": "Make ReflectiveConfigOptionLoader try directories"} {"diff": " public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark \n private static final Dimension STRIPE_BUTTON_PREFERRED_SIZE = new Dimension ( PREFERRED_WIDTH , ERROR_ICON_HEIGHT + NUMBER0 ) ; \n private class ErrorStripeButton extends JButton { \n private ErrorStripeButton ( ) { \n + setFocusable ( false ) ; \n } \n \n @ override", "msg_token": "error stripe button made unfocusable"} {"diff": " public final class FileLineIterable implements Iterable < String > { \n private final boolean skipFirstLine ; \n \n COMMENT \n + public FileLineIterable ( File file ) { \n + this ( file , Charset . forName ( STRING0 ) , false ) ; \n + } \n + \n + COMMENT \n public FileLineIterable ( File file , boolean skipFirstLine ) { \n this ( file , Charset . forName ( STRING0 ) , skipFirstLine ) ; \n } \n public final class FileLineIterator implements SkippingIterator < String > , Closeab \n COMMENT \n COMMENT \n COMMENT \n + public FileLineIterator ( File file ) throws IOException { \n + this ( file , Charset . forName ( STRING0 ) , false ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public FileLineIterator ( File file , boolean skipFirstLine ) throws IOException { \n this ( file , Charset . forName ( STRING0 ) , skipFirstLine ) ; \n }", "msg_token": "Added constructor that takes just a file and doesn t skip any lines"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - \n public class GoogleCardsActivity extends Activity { \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n public class GoogleCardsActivity extends Activity { \n } \n \n } \n - \n - public static int dpToPx ( Context context , int dp ) { \n - Resources r = context . getResources ( ) ; \n - float px = TypedValue . applyDimension ( TypedValue . COMPLEX_UNIT_DIP , dp , r . getDisplayMetrics ( ) ) ; \n - return ( int ) px ; \n - } \n }", "msg_token": "Removed unused code"} {"diff": " public class DefaultBinaryNamingScheme implements BinaryNamingScheme { \n } \n \n public String makeName ( String . . . words ) { \n - StringBuilder builder = new StringBuilder ( ) ; \n + int expectedLength = NUMBER0 ; \n + for ( String word : words ) { \n + if ( word != null ) { \n + expectedLength += word . length ( ) ; \n + } \n + } \n + StringBuilder builder = new StringBuilder ( expectedLength ) ; \n for ( String word : words ) { \n if ( word == null || word . length ( ) == NUMBER0 ) { \n continue ;", "msg_token": "calculate expected length"} {"diff": " public final class AndroidAudio implements Audio { \n COMMENT \n public void dispose ( ) { \n synchronized ( musics ) { \n - for ( AndroidMusic music : musics ) { \n + SINGLE \n + ArrayList < AndroidMusic > musicsCopy = new ArrayList < AndroidMusic > ( musics ) ; \n + for ( AndroidMusic music : musicsCopy ) { \n music . dispose ( ) ; \n } \n }", "msg_token": "fixed concurrentmodification exception in AndroidAudio dispose"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " public class Potion { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public short toDamageValue ( ) { \n short damage ; \n if ( type == PotionType . WATER ) { \n public enum PotionType { \n return null ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n public static PotionType getByEffect ( PotionEffectType effectType ) { \n if ( effectType == null ) \n return WATER ;", "msg_token": "Correct some magic values"} {"diff": " public class BlockReplacer implements SuperPickaxeMode { \n LocalPlayer player , LocalSession session , WorldVector clicked ) { \n \n LocalWorld world = clicked . getWorld ( ) ; \n - EditSession editSession = new EditSession ( server , world , - NUMBER0 ) ; \n + EditSession editSession = new EditSession ( server , world , - NUMBER0 , \n + session . getBlockBag ( player ) ) ; \n \n try { \n editSession . setBlock ( clicked , targetBlock ) ; \n public class SphereBrush implements SuperPickaxeMode { \n } \n \n ReplacingEditSession editSession = new ReplacingEditSession ( server , target . getWorld ( ) , \n - session . getBlockChangeLimit ( ) ) ; \n + session . getBlockChangeLimit ( ) , session . getBlockBag ( player ) ) ; \n \n if ( nonReplacing ) { \n editSession . disableReplacing ( ) ;", "msg_token": "Added block bag support to the block replacer and sphere brush super pickaxe tools"} {"diff": " public class Capsule implements Runnable { \n private static final String PROP_TMP_DIR = STRING0 ; \n \n private static final String ATTR_MANIFEST_VERSION = STRING1 ; \n + private static final String ATTR_PREMAIN_CLASS = STRING2 ; \n private static final String ATTR_MAIN_CLASS = STRING3 ; \n private static final String ATTR_CLASS_PATH = STRING4 ; \n private static final String ATTR_IMPLEMENTATION_VERSION = STRING5 ; \n public class Capsule implements Runnable { \n } \n \n private void validateManifest ( Manifest manifest ) { \n + if ( ! Capsule . class . getName ( ) . equals ( manifest . getMainAttributes ( ) . getValue ( ATTR_PREMAIN_CLASS ) ) ) \n + throw new IllegalStateException ( STRING6 + Capsule . class . getName ( ) \n + + STRING7 + ATTR_PREMAIN_CLASS + STRING8 ) ; \n + \n if ( manifest . getMainAttributes ( ) . getValue ( ATTR_CLASS_PATH ) != null ) \n throw new IllegalStateException ( STRING9 + ATTR_CLASS_PATH + STRING8 \n + STRING10 + ATTR_APP_CLASS_PATH + STRING11 + ATTR_DEPENDENCIES + STRING12 ) ;", "msg_token": "Require Capsule as manifest s Premain Class"} {"diff": " public class DisUnityCli { \n optClassFilter . setArgs ( NUMBER0 ) ; \n optClassFilter . setArgName ( STRING0 ) ; \n opts . addOption ( optClassFilter ) ; \n + \n + Option optVerbose = new Option ( STRING1 , STRING2 , false , STRING3 ) ; \n + opts . addOption ( optVerbose ) ; \n \n try { \n if ( args . length == NUMBER1 ) { \n public class DisUnityCli { \n disunity . setClassFilter ( classFilter ) ; \n } \n \n + if ( cl . hasOption ( optVerbose . getOpt ( ) ) ) { \n + LogUtils . configure ( Level . ALL ) ; \n + } \n + \n SINGLE \n for ( String leftArg : cl . getArgs ( ) ) { \n disunity . getFiles ( ) . add ( new File ( leftArg ) ) ;", "msg_token": "Added verbose option"} {"diff": " public class Accounts extends K9ListActivity implements OnItemClickListener { \n mActionBarSubTitle = ( TextView ) customView . findViewById ( R . id . actionbar_title_sub ) ; \n mActionBarUnread = ( TextView ) customView . findViewById ( R . id . actionbar_unread_count ) ; \n \n - mActionBar . setDisplayHomeAsUpEnabled ( true ) ; \n + mActionBar . setDisplayHomeAsUpEnabled ( false ) ; \n } \n \n COMMENT", "msg_token": "Don t display up arrow in action bar of Accounts activity"} {"diff": " public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwabl \n return ( ( Number ) ret ) . floatValue ( ) ; \n else if ( rt == Double . TYPE ) \n return ( ( Number ) ret ) . doubleValue ( ) ; \n - else if ( rt == Boolean . TYPE ) \n + else if ( rt == Boolean . TYPE && ! ( ret instanceof Boolean ) ) \n return ret == null ? Boolean . FALSE : Boolean . TRUE ; \n else if ( rt == Byte . TYPE ) \n return ( byte ) ( ( Number ) ret ) . intValue ( ) ;", "msg_token": "interim checkin do not use fixed boolean return in proxy handler"} {"diff": " public class NonBlockingIOThread extends Thread implements OperationHostileThrea \n private final SwCounter eventCount = newSwCounter ( ) ; \n @ probe \n private final SwCounter selectorIOExceptionCount = newSwCounter ( ) ; \n + @ probe \n + private final SwCounter completedTaskCount = newSwCounter ( ) ; \n \n private final ILogger logger ; \n \n public class NonBlockingIOThread extends Thread implements OperationHostileThrea \n } \n \n private void executeTask ( Runnable task ) { \n + completedTaskCount . inc ( ) ; \n + \n NonBlockingIOThread target = getTargetIoThread ( task ) ; \n if ( target == this ) { \n task . run ( ) ;", "msg_token": "Added completed task count to non blocking io thread"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PGraphics extends PImage implements PConstants { \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n - public FontRenderContext getFontRenderContext ( Font font ) { \n + public FontRenderContext getFontRenderContext ( Font font ) { SINGLE \n return Toolkit . getDefaultToolkit ( ) . getFontMetrics ( font ) . getFontRenderContext ( ) ; \n }", "msg_token": "modify the FRC code so that it does not show up in PApplet"} {"diff": " public abstract class AbstractChannel extends DefaultAttributeMap implements Cha \n MessageList < Object > messages = outboundBuffer . currentMessages ; \n int messageIndex = outboundBuffer . currentMessageIndex ; \n int messageCount = messages . size ( ) ; \n + \n + SINGLE \n if ( messageCount == NUMBER0 ) { \n messages . recycle ( ) ; \n promise . trySuccess ( ) ; \n public abstract class AbstractChannel extends DefaultAttributeMap implements Cha \n } \n } \n \n + SINGLE \n + if ( ! promise . setUncancellable ( ) ) { \n + messages . releaseAllAndRecycle ( ) ; \n + if ( ! outboundBuffer . next ( ) ) { \n + break ; \n + } else { \n + continue ; \n + } \n + } \n + \n + SINGLE \n int writtenMessages = doWrite ( messages , messageIndex ) ; \n outboundBuffer . currentMessageIndex = messageIndex += writtenMessages ; \n if ( messageIndex >= messageCount ) {", "msg_token": "Implement Promise Future cancellation properly for outbound traffic"} {"diff": " public class ExcludedEntriesConfiguration implements PersistentStateComponent < Ex \n } \n \n public void readExternal ( final Element node ) { \n + removeAllExcludeEntryDescriptions ( ) ; \n for ( final Object o : node . getChildren ( ) ) { \n Element element = ( Element ) o ; \n String url = element . getAttributeValue ( URL ) ;", "msg_token": "when reloading ExcludedEntriesConfiguration state clear previous contents"} {"diff": " public class MavenModuleNameMapper { \n for ( NameItem name : names ) { \n if ( name . module != null ) { \n boolean wasAdded = existingNames . add ( name . getResultName ( ) ) ; \n - assert wasAdded : name . getResultName ( ) ; \n + SINGLE \n } \n } \n \n public class MavenModuleNameMapper { \n mavenProjectToModuleName . put ( each . project , each . getResultName ( ) ) ; \n } \n \n - assert new HashSet < String > ( mavenProjectToModuleName . values ( ) ) . size ( ) == mavenProjectToModuleName . size ( ) : new HashMap < MavenProject , String > ( mavenProjectToModuleName ) ; \n + SINGLE \n } \n \n public static class NameItem implements Comparable < NameItem > {", "msg_token": "Remove incorrect assertion"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Expand wildcard import in ForegroundDaemonAction"} {"diff": " public class AudioTrack \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AudioTrack \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n SINGLE \n SINGLE", "msg_token": "Improve getTimestamp documentation"} {"diff": " public class Views { \n inject . invoke ( null , finder , target , source ) ; \n } catch ( ClassNotFoundException e ) { \n SINGLE \n + INJECTORS . put ( targetClass , NO_OP ) ; \n } catch ( RuntimeException e ) { \n throw e ; \n } catch ( Exception e ) { \n throw new UnableToInjectException ( STRING0 + target , e ) ; \n } \n } \n + \n + COMMENT \n + public static void noOp ( Object finder , Object target , Object source ) { } \n + \n + COMMENT \n + private static final Method NO_OP = Views . class . getMethod ( STRING1 , Object . class , Object . class , Object . class ) ; \n \n COMMENT \n @ suppresswarnings ( { STRING2 , STRING3 } ) SINGLE", "msg_token": "Adds No op"} {"diff": " public class ManagedDomainContainerConfiguration extends CommonDomainContainerCo \n \n private String modulePath = System . getProperty ( STRING0 ) ; \n \n - private String javaVmArguments = System . getProperty ( STRING1 , STRING2 ) ; \n + private String javaVmArguments = System . getProperty ( STRING1 , STRING3 ) ; \n \n private int startupTimeoutInSeconds = NUMBER0 ; \n \n public class ManagedDomainContainerConfiguration extends CommonDomainContainerCo \n public void setCleanServerBaseDir ( String cleanServerBaseDir ) { \n this . cleanServerBaseDir = cleanServerBaseDir ; \n } \n - } \n + } \n public class ManagedContainerConfiguration extends DistributionContainerConfigur \n COMMENT \n private static final Integer DEFAULT_VALUE_WAIT_FOR_PORTS_TIMEOUT_SECONDS = NUMBER1 ; \n \n - private String javaVmArguments = System . getProperty ( STRING1 , STRING2 ) ; \n + private String javaVmArguments = System . getProperty ( STRING1 , STRING3 ) ; \n \n private String jbossArguments ;", "msg_token": "Synchronize Arquillian javaVmArguments with the AS memory defaults"} {"diff": " class ModelMetricsHandler extends Handler { \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) SINGLE \n - public JobV3 predict2 ( int version , final ModelMetricsListSchemaV3 s ) { \n + public JobV3 predictAsync ( int version , final ModelMetricsListSchemaV3 s ) { \n SINGLE \n if ( null == s . model ) throw new H2OIllegalArgumentException ( STRING1 , STRING2 , s . model ) ; \n if ( null == DKV . get ( s . model . name ) ) throw new H2OKeyNotFoundArgumentException ( STRING1 , STRING2 , s . model . name ) ; \n public class RequestServer extends NanoHTTPD { \n register ( STRING3 , STRING4 , ModelMetricsHandler . class , STRING2 , null , \n STRING5 ) ; \n \n - register ( STRING6 , STRING4 , ModelMetricsHandler . class , STRING7 , null , \n + register ( STRING6 , STRING4 , ModelMetricsHandler . class , STRING8 , null , \n STRING5 ) ; \n \n register ( STRING9 , STRING10 , WaterMeterCpuTicksHandler . class , STRING11 , null ,", "msg_token": "rename predict2 to predictAsync"} {"diff": " public final class ScriptIntrinsicLUT extends ScriptIntrinsic { \n mCache [ ct + NUMBER0 ] = ( byte ) ct ; \n mCache [ ct + NUMBER1 ] = ( byte ) ct ; \n } \n - bindAllocation ( mTables , NUMBER2 ) ; \n + setVar ( NUMBER2 , mTables ) ; \n } \n \n COMMENT", "msg_token": "Convert one more bind setVar"} {"diff": " public class RestartTest { \n \n @ rule \n public ExpectedException thrown = ExpectedException . none ( ) ; \n - @ rule \n - public TestRule globalTimeout = new DisableOnDebug ( Timeout . seconds ( NUMBER0 ) ) ; \n \n + @ rule \n + public TestRule globalTimeout = new DisableOnDebug ( Timeout . seconds ( NUMBER1 ) ) ; \n \n @ after \n public void stop ( ) {", "msg_token": "Improve stability of RestartTest"} {"diff": " public class RestDefinition extends OptionalIdentifiedDefinition < RestDefinition > \n return new RestOperationResponseMsgDefinition ( verb ) ; \n } \n \n + public RestDefinition responseMessages ( List < RestOperationResponseMsgDefinition > msgs ) { \n + if ( getVerbs ( ) . isEmpty ( ) ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + VerbDefinition verb = getVerbs ( ) . get ( getVerbs ( ) . size ( ) - NUMBER0 ) ; \n + verb . getResponseMsgs ( ) . addAll ( msgs ) ; \n + return this ; \n + } \n + \n public RestDefinition produces ( String mediaType ) { \n if ( getVerbs ( ) . isEmpty ( ) ) { \n this . produces = mediaType ;", "msg_token": "add support for adding multiple response msg parameters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SearchDataLoader { \n \n private class IsLanguageKnown implements Predicate < QProfile > { \n @ override \n - public boolean apply ( @ nullable QProfile profile ) { \n + public boolean apply ( @ nonnull QProfile profile ) { \n return languages . get ( profile . language ( ) ) != null ; \n } \n }", "msg_token": "Fix quality flaw"} {"diff": " public class UnderFileSystemSingleLocal extends UnderFileSystem { \n @ override \n public OutputStream create ( String path ) throws IOException { \n FileOutputStream stream = new FileOutputStream ( path ) ; \n - setPermission ( path , STRING0 ) ; \n + try { \n + setPermission ( path , STRING0 ) ; \n + } catch ( IOException e ) { \n + stream . close ( ) ; \n + throw e ; \n + } \n CommonUtils . setLocalFileStickyBit ( path ) ; \n return stream ; \n } \n public class TachyonMaster { \n new LeaderSelectorClient ( conf . ZOOKEEPER_ADDRESS , conf . ZOOKEEPER_ELECTION_PATH , \n conf . ZOOKEEPER_LEADER_PATH , name ) ; \n mEditLogProcessor = new EditLogProcessor ( mJournal , journalFolder , mMasterInfo ) ; \n + SINGLE \n Thread logProcessor = new Thread ( mEditLogProcessor ) ; \n logProcessor . start ( ) ; \n }", "msg_token": "if permission check fails close stream"} {"diff": " public class EnglishGrammaticalStructure extends GrammaticalStructure { \n \n @ override \n protected void correctDependencies ( Collection < TypedDependency > list ) { \n + if ( DEBUG ) { \n + printListSorted ( STRING0 , list ) ; \n + } \n correctSubjPassAndPoss ( list ) ; \n + if ( DEBUG ) { \n + printListSorted ( STRING1 , list ) ; \n + } \n removeExactDuplicates ( list ) ; \n + if ( DEBUG ) { \n + printListSorted ( STRING2 , list ) ; \n + } \n } \n \n private static void printListSorted ( String title , Collection < TypedDependency > list ) {", "msg_token": "Add some more debug output"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class DisabledMenuItem extends MenuItem \n } \n \n @ override \n - public Command getCommand ( ) \n + public ScheduledCommand getScheduledCommand ( ) \n { \n return null ; \n }", "msg_token": "remove use of deprecated Command class"} {"diff": " public class ContactList extends JList \n MetaContactGroup sourceGroup = evt . getSourceMetaContactGroup ( ) ; \n \n this . groupAdded ( sourceGroup ) ; \n + \n + this . ensureIndexIsVisible ( this . listModel . getSize ( ) - NUMBER0 ) ; \n } \n \n public void metaContactGroupModified ( MetaContactGroupEvent evt ) { \n public class ContactList extends JList \n int index = this . listModel . indexOf ( group ) ; \n \n this . listModel . contentAdded ( index , index ) ; \n - this . ensureIndexIsVisible ( index ) ; \n - \n + \n Iterator childContacts = group . getChildContacts ( ) ; \n \n while ( childContacts . hasNext ( ) ) { \n MetaContact contact = ( MetaContact ) childContacts . next ( ) ; \n \n int contactIndex = this . listModel . indexOf ( contact ) ; \n - this . listModel . contentAdded ( contactIndex , contactIndex ) ; \n - this . ensureIndexIsVisible ( contactIndex ) ; \n + this . listModel . contentAdded ( contactIndex , contactIndex ) ; \n } \n \n Iterator subGroups = group . getSubgroups ( ) ;", "msg_token": "bug fixed on contact list loading"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DefaultRoboModule extends AbstractModule { \n \n \n requestStaticInjection ( Ln . class ) ; \n - requestStaticInjection ( RoboAsyncTask . class ) ; \n \n SINGLE \n if ( hasCompatibilityLibrarySupport ) {", "msg_token": "remove unnecessary static injection"} {"diff": " public class MaterialDialog extends DialogBase implements \n protected void invalidateInputMinMaxIndicator ( int currentLength , boolean emptyDisabled ) { \n if ( inputMinMax != null ) { \n inputMinMax . setText ( currentLength + STRING0 + mBuilder . inputMaxLength ) ; \n - final boolean isDisabled = emptyDisabled || currentLength > mBuilder . inputMaxLength ; \n + final boolean isDisabled = ( emptyDisabled && currentLength == NUMBER0 ) || currentLength > mBuilder . inputMaxLength ; \n final int colorText = isDisabled ? mBuilder . inputMaxLengthErrorColor : mBuilder . contentColor ; \n final int colorWidget = isDisabled ? mBuilder . inputMaxLengthErrorColor : mBuilder . widgetColor ; \n inputMinMax . setTextColor ( colorText ) ;", "msg_token": "Fixed an issue with prefilling the input dialog not invalidating the disabled state correctly when a max length is specified"} {"diff": " public final class ScriptIntrinsicBLAS extends ScriptIntrinsic { \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "RenderScript fix BNNM docs for support lib"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n public interface ScenarioMappingBuilder < S extends ScenarioMappingBuilder > extends RemoteMappingBuilder < S , S > {", "msg_token": "Added copyright headers to new files"} {"diff": " public final class TlsTunnelBuilder { \n \n Socket makeTunnel ( String host , int port , String proxyUsername , \n String proxyPassword , InetSocketAddress proxyAddress ) throws IOException { \n - if ( host == null || port == - NUMBER0 || host . isEmpty ( ) || proxyAddress == null ) { \n + if ( host == null || port < NUMBER1 || host . isEmpty ( ) || proxyAddress == null ) { \n throw new ProtocolException ( STRING0 ) ; \n } \n logger . debug ( STRING1 + proxyAddress . getAddress ( ) + STRING2 + proxyAddress . getPort ( ) ) ;", "msg_token": "Fixing incorrect check for invalid port number"} {"diff": " public final class GetUserListMembers { \n COMMENT \n COMMENT \n public static void main ( String [ ] args ) { \n - if ( args . length < NUMBER0 ) { \n + if ( args . length < NUMBER1 ) { \n System . out . println ( STRING0 ) ; \n System . exit ( - NUMBER0 ) ; \n }", "msg_token": "fixing a list members examples trivial bug"} {"diff": " public class HttpSession extends LocalClientSession { \n this . text = null ; \n this . packets = new ArrayList < String > ( ) ; \n for ( Packet packet : elements ) { \n + if ( packet instanceof Presence || \n + packet instanceof Message || \n + packet instanceof IQ ) { \n + packet . getElement ( ) . addNamespace ( STRING0 , STRING1 ) ; \n + } \n this . packets . add ( packet . toXML ( ) ) ; \n } \n }", "msg_token": "Fix packet namespaces for Http Bind"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added CDDL header"} {"diff": " ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener { \n webServices . setTask ( model ) ; \n webServices . reset ( ) ; \n } \n + loadMoreContainer ( ) ; \n } \n \n COMMENT", "msg_token": "Reload more container when repopulating task edit fragment"} {"diff": " public final class Observables { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc link"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n final class DictionaryExporter extends DictionaryBuilder { \n Writer out = new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( outputFile ) , encoding ) ) ) { \n while ( scanner . hasNextLine ( ) ) { \n String line = scanner . nextLine ( ) ; \n - String [ ] parts = line . split ( separator ) ; \n + String [ ] parts = line . split ( Pattern . quote ( separator ) ) ; \n if ( parts . length == NUMBER0 ) { \n if ( hasFrequency ) { SINGLE \n parts [ NUMBER1 ] = parts [ NUMBER1 ] . substring ( NUMBER2 , parts [ NUMBER1 ] . length ( ) - NUMBER3 ) ;", "msg_token": "allow reserved characters as separators"} {"diff": " public class AudioVideoNotesPlugin extends OsmandPlugin { \n } \n } ) ; \n } \n - \n } catch ( Exception e ) { \n logErr ( e ) ; \n cam . release ( ) ; \n e . printStackTrace ( ) ; \n } \n - \n } \n \n private void printCamParams ( Parameters parameters , boolean autoExposure ) { \n public class AudioVideoNotesPlugin extends OsmandPlugin { \n } ) ; \n dlg . setContentView ( view ) ; \n dlg . show ( ) ; \n - \n } catch ( RuntimeException e ) { \n logErr ( e ) ; \n cam . release ( ) ;", "msg_token": "remove new empty line"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n COMMENT \n COMMENT \n COMMENT \n + @ viewdebug.exportedproperty \n public boolean getFitsSystemWindows ( ) { \n return ( mViewFlags & FITS_SYSTEM_WINDOWS ) == FITS_SYSTEM_WINDOWS ; \n } \n public class PhoneWindow extends Window implements MenuBuilder . Callback { \n } \n } \n \n + SINGLE \n + SINGLE \n + showStatusGuard = mStatusGuard != null ; \n + \n SINGLE \n SINGLE \n SINGLE \n public class PhoneWindow extends Window implements MenuBuilder . Callback { \n final boolean nonOverlay = ( getLocalFeatures ( ) \n & ( NUMBER0 < < FEATURE_ACTION_MODE_OVERLAY ) ) == NUMBER1 ; \n insets = insets . consumeSystemWindowInsets ( \n - false , nonOverlay COMMENT , false , false ) ; \n - \n - SINGLE \n - SINGLE \n - showStatusGuard = true ; \n + false , nonOverlay && showStatusGuard COMMENT , false , false ) ; \n } else { \n SINGLE \n if ( mlp . topMargin != NUMBER1 ) {", "msg_token": "Inset the non overlay contextual action bar without a status guard"} {"diff": " public class OobActivity extends ActionBarActivity { \n public void onBackPressed ( ) { \n super . onBackPressed ( ) ; \n SINGLE \n - moveTaskToBack ( true ) ; \n Intent intent = new Intent ( Intent . ACTION_MAIN ) ; \n intent . addCategory ( Intent . CATEGORY_HOME ) ; \n startActivity ( intent ) ;", "msg_token": "removed moveTaskToBack from OobActivity"} {"diff": " public class PluginHeaderPanel { \n public void actionPerformed ( ActionEvent e ) { \n switch ( myActionId ) { \n case UPDATE : \n - break ; \n case INSTALL : \n new ActionInstallPlugin ( myManager . getAvailable ( ) , myManager . getInstalled ( ) ) . install ( new Runnable ( ) { \n @ override", "msg_token": "Update plugin button does nothing"} {"diff": " public class PeerGroup implements TransactionBroadcaster { \n return Utils . maxOfMostFreq ( heights ) ; \n } \n \n - private static class PeerAndPing { \n - Peer peer ; \n - long pingTime ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "delete dead code"} {"diff": " public class XMLElement \n \n \n public XMLElement ( String s ) { \n + this ( ) ; \n + \n try { \n - parseString ( s ) ; \n + parseString ( s ) ; \n } catch ( XMLParseException e ) { \n - e . printStackTrace ( ) ; \n + e . printStackTrace ( ) ; \n } \n }", "msg_token": "fix XMLElement String s had a bad constructor"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n if ( ! mIWindowManager . inputMethodClientHasFocus ( client ) ) { \n if ( DEBUG ) Slog . w ( TAG , STRING0 \n + uid + STRING1 + client ) ; \n - setImeWindowVisibilityStatusHiddenLocked ( ) ; \n return false ; \n } \n } catch ( RemoteException e ) { \n - setImeWindowVisibilityStatusHiddenLocked ( ) ; \n return false ; \n } \n }", "msg_token": "Do nothing if hideSoftInput is called from not focused client"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n - public class HeaderXssProtectionScanner extends PluginPassiveScanner implements PassiveScanner { \n + public class HeaderXssProtectionScanner extends PluginPassiveScanner { \n \n private PassiveScanThread parent = null ;", "msg_token": "Removed the implement declaration as it s not needed"} {"diff": " public class TfsShellTest { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private void checkFilePersisted ( TachyonFile file , int size ) throws TachyonException , IOException { \n Assert . assertTrue ( mTfs . getInfo ( file ) . isIsPersisted ( ) ) ;", "msg_token": "Changed the documentation of the exceptions of checkFilePersisted"} {"diff": " public class ChunkGenerationPipeline { \n } \n \n public void shutdown ( ) { \n - chunkReviewer . shutdown ( new ChunkRequest ( this , provider , ChunkRequest . Type . EXIT , Region3i . EMPTY ) , false ) ; \n - chunkGenerator . shutdown ( new ShutdownChunkTask ( ) , false ) ; \n + chunkReviewer . shutdown ( new ChunkRequest ( this , provider , ChunkRequest . Type . EXIT , Region3i . EMPTY ) , true ) ; \n + chunkGenerator . shutdown ( new ShutdownChunkTask ( ) , true ) ; \n } \n \n public WorldGenerator getWorldGenerator ( ) {", "msg_token": "Await shutdown of chunk generation pipeline"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class TimerWheelTest \n { \n public class TimerWheelTest \n { \n final TimerWheel wheel = new TimerWheel ( NUMBER0 , TimeUnit . MILLISECONDS , NUMBER1 ) ; \n \n - assertThat ( wheel . calculateDelayInMsec ( ) , is ( NUMBER2 ) ) ; \n + assertThat ( wheel . calculateDelayInMsec ( ) , allOf ( greaterThanOrEqualTo ( NUMBER3 ) , lessThanOrEqualTo ( NUMBER4 ) ) ) ; \n } \n \n @ test", "msg_token": "Relaxed test for real time delay calculation"} {"diff": " public abstract class SocketReader implements Runnable { \n session . process ( reply ) ; \n continue ; \n } \n + SINGLE \n try { \n packet . getType ( ) ; \n } \n public abstract class SocketReader implements Runnable { \n SINGLE \n packet . setType ( null ) ; \n } \n + SINGLE \n + try { \n + packet . getShow ( ) ; \n + } \n + catch ( IllegalArgumentException e ) { \n + Log . warn ( STRING0 , e ) ; \n + SINGLE \n + SINGLE \n + packet . setShow ( null ) ; \n + } \n processPresence ( packet ) ; \n } \n else if ( STRING1 . equals ( tag ) ) {", "msg_token": "Added validation of show values in Presence packets"} {"diff": " public class ViewConfiguration { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public static long getGlobalActionKeyTimeout ( ) {", "msg_token": "Fix build due to deprecated tag not having content"} {"diff": " public class SvnConfiguration implements ProjectComponent , JDOMExternalizable { \n public boolean MERGE_DIFF_USE_ANCESTRY = true ; \n public boolean UPDATE_LOCK_ON_DEMAND = false ; \n public boolean IGNORE_SPACES_IN_MERGE = false ; \n - public boolean DETECT_NESTED_COPIES = true ; \n + public boolean DETECT_NESTED_COPIES = false ; \n \n private final Map < File , MergeRootInfo > myMergeRootInfos = new HashMap < File , MergeRootInfo > ( ) ; \n private final Map < File , UpdateRootInfo > myUpdateRootInfos = new HashMap < File , UpdateRootInfo > ( ) ;", "msg_token": "do not detect nested copies by default"} {"diff": " public class CommitLogSegment \n } \n else \n { \n - logger . debug ( STRING0 + logFile ) ; \n + logger . debug ( STRING1 , logFile ) ; \n } \n }", "msg_token": "use parameterized logging"} {"diff": " public class PhoneAccount implements Parcelable { \n Objects . hashCode ( mHandle ) + mCapabilities ; \n } \n \n + @ override \n + public String toString ( ) { \n + return new StringBuilder ( ) . append ( mComponentName ) \n + . append ( STRING0 ) \n + . append ( mId ) \n + . append ( STRING0 ) \n + . append ( Log . pii ( mHandle ) ) \n + . append ( STRING0 ) \n + . append ( String . valueOf ( mCapabilities ) ) \n + . toString ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean equalsComponentAndId ( PhoneAccount other ) { \n + return other != null && \n + Objects . equals ( other . getComponentName ( ) , getComponentName ( ) ) && \n + Objects . equals ( other . getId ( ) , getId ( ) ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Add toString equals helper methods to PhoneAccount java"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed copyright on CopyOnWriteMap"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n @ contextconfiguration ( inheritLocations = false ) \n public class JmsSpringResequencerTest extends JmsResequencerTest {", "msg_token": "Removed unused imports"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProjectViewModuleNode extends AbstractModuleNode { \n - private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n \n public ProjectViewModuleNode ( Project project , Module value , ViewSettings viewSettings ) { \n super ( project , value , viewSettings ) ; \n } \n \n - public ProjectViewModuleNode ( Project project , Object value , ViewSettings viewSettings ) { \n - this ( project , ( Module ) value , viewSettings ) ; \n - } \n - \n @ override \n @ notnull \n public Collection < AbstractTreeNode > getChildren ( ) {", "msg_token": "remove dead code"} {"diff": " public class CaldroidGridAdapter extends BaseAdapter { \n \n SINGLE \n if ( backgroundResource != null ) { \n - backgroundView . setBackgroundResource ( backgroundResource ) ; \n + try \n + { \n + String tmp = this . context . getResources ( ) . getResourceName ( backgroundResource ) ; \n + SINGLE \n + backgroundView . setBackgroundResource ( backgroundResource ) ; \n + } \n + catch ( Resources . NotFoundException e ) \n + { \n + SINGLE \n + backgroundView . setBackgroundColor ( backgroundResource ) ; \n + } \n } \n } \n \n public class CaldroidSampleActivity extends AppCompatActivity { \n Toast . makeText ( getApplicationContext ( ) , formatter . format ( date ) , \n Toast . LENGTH_SHORT ) . show ( ) ; \n \n + caldroidFragment . setBackgroundResourceForDate ( NUMBER0 , date ) ; \n + caldroidFragment . refreshView ( ) ; \n } \n \n @ override", "msg_token": "Add ability set integer color for background"} {"diff": " public class ItemSyncJobService extends JobService implements SyncDelegate . Progr \n \n @ override \n public boolean onStopJob ( JobParameters jobParameters ) { \n + mSyncDelegate . stopSync ( jobParameters . getJobId ( ) ) ; \n return true ; \n } \n \n public class SyncDelegate { \n } \n } \n \n + void stopSync ( int progressId ) { \n + SINGLE \n + mJob . connectionEnabled = false ; \n + mNotificationManager . cancel ( progressId ) ; \n + } \n + \n private PendingIntent getItemActivity ( String itemId ) { \n return PendingIntent . getActivity ( mContext , NUMBER0 , \n new Intent ( Intent . ACTION_VIEW )", "msg_token": "Cancel notification on job stop"} {"diff": " public final class SimpleExoPlayer implements ExoPlayer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class SimpleExoPlayer implements ExoPlayer { \n \n SINGLE \n \n + @ override \n public void addListener ( EventListener listener ) { \n player . addListener ( listener ) ; \n } \n \n + @ override \n public void removeListener ( EventListener listener ) { \n player . removeListener ( listener ) ; \n } \n public final class DrmInitData implements Comparator < SchemeData > , Parcelable { \n dest . writeByteArray ( data ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n public static final Parcelable . Creator < SchemeData > CREATOR = \n new Parcelable . Creator < SchemeData > ( ) { \n \n import NAMESPACE ; \n } \n \n SINGLE \n - COMMENT \n - throws IOException , InterruptedException { \n + COMMENT \n \n if ( vorbisIdHeader == null ) { \n vorbisIdHeader = VorbisUtil . readVorbisIdentificationHeader ( scratch ) ;", "msg_token": "Fix a few warnings"} {"diff": " public class SocketIOAtmosphereInterceptor implements AtmosphereInterceptor { \n public AsyncIOWriter flush ( AtmosphereResponse r ) throws IOException { \n return this ; \n } \n + \n + @ override \n + public void close ( AtmosphereResponse r ) throws IOException { \n + try { \n + r . getResponse ( ) . getWriter ( ) . close ( ) ; \n + } catch ( IOException ex ) { \n + r . getResponse ( ) . getOutputStream ( ) . close ( ) ; \n + } \n + } \n } ) ; \n } \n return transport . handle ( ( AtmosphereResourceImpl ) r , atmosphereHandler , getSessionManager ( version ) ) ;", "msg_token": "Fix close issue"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class FindInFilesOptimizingSearchHelper extends OptimizingSearchHelperBase { \n private PsiSearchHelper helper ; \n private THashMap < PsiFile , PsiFile > filesToScan ; \n private THashMap < PsiFile , PsiFile > filesToScan2 ; \n - private Lexer javaLexer ; \n \n private final boolean findMatchingFiles ;", "msg_token": "remove unused field"} {"diff": " public class TokenSequencePattern extends SequencePattern < CoreMap > { \n public TokenSequenceMatcher getMatcher ( List < ? extends CoreMap > tokens ) { \n return new TokenSequenceMatcher ( this , tokens ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return this . pattern ( ) ; \n + } \n }", "msg_token": "added tostring function"} {"diff": " public class SubsystemDescriptionsUnitTestCase extends AbstractSubsystemTest { \n Assert . assertEquals ( ModelDescriptionConstants . SUCCESS , result . get ( ModelDescriptionConstants . OUTCOME ) . asString ( ) ) ; \n final ModelNode description = result . get ( STRING0 ) ; \n \n - System . out . println ( description . toString ( ) ) ; \n - \n servicesA . shutdown ( ) ; \n }", "msg_token": "remove call to System out"} {"diff": " public abstract class JoglContext implements JmeContext { \n \n protected KeyInput keyInput ; \n protected MouseInput mouseInput ; \n + protected JoyInput joyInput ; \n \n public void setSystemListener ( SystemListener listener ) { \n this . listener = listener ; \n public abstract class JoglContext implements JmeContext { \n } \n \n public JoyInput getJoyInput ( ) { \n - return null ; \n + return joyInput ; \n } \n \n public Timer getTimer ( ) {", "msg_token": "Adds a field for the JoyInput implementation into JoglContext"} {"diff": " public class GroupedObservable < K , T > extends Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public static < K , T > GroupedObservable < K , T > from ( K key , final Observable < T > o ) { \n return new GroupedObservable < K , T > ( key , new OnSubscribe < T > ( ) {", "msg_token": "Deprecate GroupedObservable from"} {"diff": " public class OPropertyIndexUnique extends OPropertyIndex { \n List < ORecordId > values = map . get ( iKey ) ; \n if ( values == null ) \n values = new ArrayList < ORecordId > ( ) ; \n - \n - SINGLE \n - if ( values . size ( ) > NUMBER0 ) \n + else if ( values . size ( ) == NUMBER1 ) { \n + SINGLE \n + if ( ! values . get ( NUMBER0 ) . equals ( iSingleValue ) ) \n + throw new OIndexException ( STRING0 + iKey + STRING1 + owner ) ; \n + } else if ( values . size ( ) > NUMBER1 ) \n throw new OIndexException ( STRING0 + iKey + STRING1 + owner ) ; \n \n values . add ( iSingleValue ) ;", "msg_token": "Fixed issue found by Luca Molino about unique index in update"} {"diff": " public final class TextServicesManager { \n return null ; \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setCurrentSpellChecker ( SpellCheckerInfo info ) { \n + try { \n + sService . setCurrentSpellChecker ( info ) ; \n + } catch ( RemoteException e ) { \n + Log . e ( TAG , STRING0 + e ) ; \n + } \n + } \n }", "msg_token": "Add a method to set the current spell checker"} {"diff": " final class FragmentManagerImpl extends FragmentManager { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void enqueueAction ( Runnable action , boolean allowStateLoss ) { \n if ( ! allowStateLoss ) { \n checkStateLoss ( ) ; \n } \n synchronized ( this ) { \n - if ( mActivity == null ) { \n + if ( mDestroyed || mActivity == null ) { \n throw new IllegalStateException ( STRING0 ) ; \n } \n if ( mPendingActions == null ) {", "msg_token": "Throw exception in FragmentManager when queuing to a destroyed activity"} {"diff": " class Scroller { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - \n - private void scrollScrollViewAllTheWay ( final ScrollView view , int direction ) { \n - final int currentScrollX = view . getScrollX ( ) ; \n - final int targetScrollY = ( direction == UP ) ? NUMBER0 : view . getMaxScrollAmount ( ) ; \n - inst . runOnMainSync ( new Runnable ( ) { \n - public void run ( ) { \n - view . scrollTo ( currentScrollX , targetScrollY ) ; \n - } \n - } ) ; \n - } \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n + private void scrollScrollViewAllTheWay ( final ScrollView view , final int direction ) { \n + while ( scrollScrollView ( view , direction ) ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Changed scrollScrollViewAllTheWay implementation as getMaxScrollAmount only returnes the max amount of an arrow event"} {"diff": " public class DeepLearningMissingTest extends TestUtil { \n p . _missing_values_handling = mvh ; \n p . _activation = DeepLearningModel . DeepLearningParameters . Activation . RectifierWithDropout ; \n p . _convert_to_enum = true ; \n - p . _hidden = new int [ ] { NUMBER0 , NUMBER0 } ; \n + p . _hidden = new int [ ] { NUMBER1 , NUMBER1 } ; \n p . _l1 = FLOAT0 ; \n p . _input_dropout_ratio = FLOAT1 ; \n - p . _epochs = NUMBER2 ; \n + p . _epochs = NUMBER3 ; \n p . _quiet_mode = true ; \n p . _destination_key = Key . make ( ) ; \n p . _reproducible = true ;", "msg_token": "Speed up DLMissingTest"} {"diff": " public class DbTester extends ExternalResource { \n for ( int i = NUMBER0 ; i <= colCount ; i ++ ) { \n Object value = resultSet . getObject ( i ) ; \n if ( value instanceof Clob ) { \n - value = IOUtils . toString ( ( ( Clob ) value ) . getAsciiStream ( ) ) ; \n + Clob clob = ( Clob ) value ; \n + value = IOUtils . toString ( ( clob . getAsciiStream ( ) ) ) ; \n + clob . free ( ) ; \n } else if ( value instanceof BigDecimal ) { \n SINGLE \n value = ( ( BigDecimal ) value ) . longValue ( ) ;", "msg_token": "Call Clob free to reduce memory consumption"} {"diff": " public class WordPress extends Application { \n AppLog . enableRecording ( true ) ; \n if ( ! Utils . isDebugBuild ( ) ) { \n Crashlytics . start ( this ) ; \n - AppLog . enableCrashlytics ( true ) ; \n } \n versionName = getVersionName ( this ) ; \n initWpDb ( ) ; \n public class AppLog { \n mEnableCrashlytics = enable ; \n } \n \n - public static void crashlyticsLog ( T tag , Throwable throwable , String message ) { \n + private static void crashlyticsLog ( T tag , Throwable throwable , String message ) { \n if ( mEnableCrashlytics ) { \n CrashlyticsUtils . logException ( throwable , ExceptionType . USUAL , tag , message ) ; \n }", "msg_token": "disable crashlytics logging of all caught exceptions"} {"diff": " public abstract class UdpChannelTransport implements AutoCloseable \n } \n catch ( final IOException ex ) \n { \n - ex . printStackTrace ( ) ; \n errorLog . record ( ex ) ; \n } \n }", "msg_token": "Java Remove hangover printStackTrace from closing UdpChannelTransports"} {"diff": " public class SimpleTensor implements Serializable { \n if ( slices [ i ] . numRows ( ) != numRows || slices [ i ] . numCols ( ) != numCols ) { \n throw new IllegalArgumentException ( STRING0 + i + STRING1 + slices [ i ] . numRows ( ) + STRING2 + slices [ i ] . numCols ( ) + STRING3 + numRows + STRING2 + numCols ) ; \n } \n - slices [ i ] = new SimpleMatrix ( slices [ i ] ) ; \n + this . slices [ i ] = new SimpleMatrix ( slices [ i ] ) ; \n } \n \n }", "msg_token": "Ha stupid bug left the matrix slices unitialized"} {"diff": " public class BlockMasterSync implements Runnable { \n SINGLE \n case Free : \n for ( long block : cmd . mData ) { \n - mBlockDataManager . removeBlock ( Users . MASTER_COMMAND_USER_ID , block ) ; \n + try { \n + mBlockDataManager . removeBlock ( Users . MASTER_COMMAND_USER_ID , block ) ; \n + } catch ( IOException ioe ) { \n + LOG . warn ( STRING0 ) ; \n + } \n } \n break ; \n SINGLE", "msg_token": "Handle errors in BlockMasterSync"} {"diff": " public class ChunkPlotWidget extends Composite \n \n if ( isFixedSizePlotUrl ( url ) ) \n { \n + boolean hide = chunkOutputSize_ != ChunkOutputSize . Default ; \n + \n SINGLE \n SINGLE \n SINGLE \n - plot_ . setVisible ( false ) ; \n + plot_ . setVisible ( hide ) ; \n } \n else if ( chunkOutputSize_ == ChunkOutputSize . Full ) \n {", "msg_token": "make fixed plot visible in satellite chunks"} {"diff": " public class AvengerInformationModule { \n mCharacterId = characterId ; \n } \n \n - @ provides @ activity \n - GetCharacterInformationUsecase provideGetCharacterInformationUsecase ( Repository repository ) { \n + @ provides @ activity GetCharacterInformationUsecase provideGetCharacterInformationUsecase ( Repository repository ) { \n \n return new GetCharacterInformationUsecase ( mCharacterId , repository ) ; \n }", "msg_token": "Changed AvengerInformationModule indentation"} {"diff": " public class Account implements BaseAccount { \n mAutoExpandFolderName = INBOX ; \n mInboxFolderName = INBOX ; \n mMaxPushFolders = NUMBER0 ; \n - mChipColor = ( new Random ( ) ) . nextInt ( NUMBER1 ) + NUMBER2 ; \n + Random random = new Random ( ( long ) mAccountNumber + NUMBER3 ) ; \n + mChipColor = ( random . nextInt ( NUMBER4 ) + \n + ( random . nextInt ( NUMBER4 ) * NUMBER5 ) + \n + ( random . nextInt ( NUMBER4 ) * NUMBER6 ) + \n + NUMBER2 ) ; \n goToUnreadMessageSearch = false ; \n mNotificationShowsUnreadCount = true ; \n subscribedFoldersOnly = false ; \n public class Account implements BaseAccount { \n mNotificationSetting . setRing ( true ) ; \n mNotificationSetting . setRingtone ( STRING0 ) ; \n mNotificationSetting . setLedColor ( mChipColor ) ; \n + \n + cacheChips ( ) ; \n } \n \n protected Account ( Preferences preferences , String uuid ) {", "msg_token": "Fix a bug that caused accounts to not have a color on initial load"} {"diff": " public class MapJoinBytesTableContainer \n \n public JoinUtil . JoinResult setDirect ( byte [ ] bytes , int offset , int length , \n BytesBytesMultiHashMap . Result hashMapResult ) { \n - \n - int keyHash = WriteBuffers . murmurHash ( bytes , offset , length ) ; \n aliasFilter = hashMap . getValueResult ( bytes , offset , length , hashMapResult ) ; \n dummyRow = null ; \n if ( hashMapResult . hasRows ( ) ) {", "msg_token": "Vectorized map join runs Murmurhash twice Gopal V reviewed by Matt McCline"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PickDateFragment extends Fragment { \n private PickDateListener mOnDateSelectedListener ; \n \n @ override \n - public void onAttach ( Activity activity ) { \n - super . onAttach ( activity ) ; \n + public void onAttach ( Context context ) { \n + super . onAttach ( context ) ; \n \n try { \n - mOnDateSelectedListener = ( PickDateListener ) activity ; \n + mOnDateSelectedListener = ( PickDateListener ) context ; \n } catch ( ClassCastException e ) { \n - throw new ClassCastException ( activity . toString ( ) + STRING0 ) ; \n + throw new ClassCastException ( context . toString ( ) + STRING0 ) ; \n } \n }", "msg_token": "Replace the deprecated onAttach method with the latest version"} {"diff": " public class OpenSSLCipherConfigurationParser { \n initialized = true ; \n SINGLE \n addListAlias ( DEFAULT , parse ( STRING0 ) ) ; \n - LinkedHashSet < Cipher > complementOfDefault = new LinkedHashSet < > ( all ) ; \n - complementOfDefault . removeAll ( aliases . get ( DEFAULT ) ) ; \n + SINGLE \n + Set < Cipher > complementOfDefault = filterByKeyExchange ( all , new HashSet < > ( Arrays . asList ( KeyExchange . EDH , KeyExchange . EECDH ) ) ) ; \n + complementOfDefault = filterByAuthentication ( complementOfDefault , Collections . singleton ( Authentication . aNULL ) ) ; \n + complementOfDefault . removeAll ( aliases . get ( eNULL ) ) ; \n addListAlias ( COMPLEMENTOFDEFAULT , complementOfDefault ) ; \n } \n \n public class TestOpenSSLCipherConfigurationParser { \n } \n \n \n - SINGLE \n @ test \n - @ ignore ( STRING1 ) \n public void testCOMPLEMENTOFDEFAULT ( ) throws Exception { \n testSpecification ( STRING2 ) ; \n }", "msg_token": "Fix COMPLEMENTOFDEFAULT alias"} {"diff": " public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa \n int updateCounter = NUMBER0 ; \n StopWatch sw = new StopWatch ( ) ; \n \n - boolean lazyUpdate = true ; \n + SINGLE \n + boolean lazyUpdate = false ; \n SINGLE \n SINGLE \n boolean periodicUpdate = true ;", "msg_token": "disable lazyUpdates as it has not benefits even for larger graphs"} {"diff": " public class DeadlineTest { \n ticker . reset ( System . nanoTime ( ) ) ; \n Deadline reference = Deadline . after ( NUMBER0 , TimeUnit . SECONDS , ticker ) ; \n SINGLE \n - assertAbout ( deadline ( ) ) . that ( d ) . isWithin ( NUMBER1 , TimeUnit . MILLISECONDS ) . of ( reference ) ; \n + assertAbout ( deadline ( ) ) . that ( d ) . isWithin ( NUMBER2 , TimeUnit . SECONDS ) . of ( reference ) ; \n } \n \n @ test", "msg_token": "Reduce DeadlineTest flake"} {"diff": " public class GotoActionModel implements ChooseByNameModel , CustomMatcherModel , C \n \n final Shortcut shortcut = preferKeyboardShortcut ( KeymapManager . getInstance ( ) . getActiveKeymap ( ) . getShortcuts ( ActionManager . getInstance ( ) . getId ( anAction ) ) ) ; \n if ( shortcut != null ) { \n - nameComponent . append ( STRING0 + KeymapUtil . getShortcutText ( shortcut ) , new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , groupFg ) ) ; \n + nameComponent . append ( STRING0 + KeymapUtil . getShortcutText ( shortcut ) , \n + new SimpleTextAttributes ( SimpleTextAttributes . STYLE_SMALLER | SimpleTextAttributes . STYLE_BOLD , \n + UIUtil . isUnderDarcula ( ) ? groupFg : ColorUtil . shift ( groupFg , FLOAT0 ) ) ) ; \n } \n \n if ( toggle ) {", "msg_token": "tune shortcuts a bit"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Blade { \n \n - public static final String VERSION = STRING0 ; \n + public static final String VERSION = STRING1 ; \n \n private static final Blade ME = new Blade ( ) ;", "msg_token": "update blade VERSION"} {"diff": " public class UndertowComponent extends UriEndpointComponent implements RestConsu \n } \n path = FileUtil . stripLeadingSeparator ( path ) ; \n String scheme = STRING0 ; \n - String host = STRING1 ; \n + String host = STRING2 ; \n int port = NUMBER0 ; \n \n RestConfiguration config = configuration ;", "msg_token": "Fixed undertow for rest dsl should use localhost as hostname by default"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add license info"} {"diff": " public class PyExtractMethodUtil { \n if ( data != null ) { \n anchor = data . first ; \n } \n + SINGLE \n final PsiElement compoundStatement = PyPsiUtils . getCompoundStatement ( anchor ) ; \n - if ( compoundStatement . getParent ( ) instanceof PyFunction ) { \n - compoundStatement . getParent ( ) . addBefore ( generatedMethod , compoundStatement ) ; \n + final PsiElement parent = compoundStatement . getParent ( ) ; \n + if ( parent instanceof PyFunction ) { \n + parent . getParent ( ) . addBefore ( generatedMethod , parent ) ; \n return generatedMethod ; \n } \n final PsiElement statement = PyPsiUtils . getStatement ( compoundStatement , anchor ) ;", "msg_token": "Fix extract statements within functions"} {"diff": " public class ImageResizer { \n public Bitmap resizeCenterCrop ( final String path , final int width , final int height ) { \n final Bitmap streamed = loadApproximate ( path , width , height ) ; \n \n + if ( streamed == null ) return null ; \n + \n if ( streamed . getWidth ( ) == width && streamed . getHeight ( ) == height ) { \n return streamed ; \n } \n public class ImageResizer { \n COMMENT \n public Bitmap fitInSpace ( final String path , final int width , final int height ) { \n final Bitmap streamed = loadApproximate ( path , width > height ? NUMBER0 : width , height > width ? NUMBER0 : height ) ; \n + \n + if ( streamed == null ) return null ; \n + \n return fitInSpace ( streamed , width , height ) ; \n }", "msg_token": "Fix NPEs if a load fails to return an image for"} {"diff": " public class CassandraThriftKeyColumnValueStore implements KeyColumnValueStore { \n List < KeyRange > keyRanges = new ArrayList < KeyRange > ( ranges . size ( ) ) ; \n \n for ( TokenRange range : ranges ) { \n - System . out . println ( range ) ; \n if ( ! NetworkUtil . hasLocalAddress ( range . endpoints ) ) \n continue ;", "msg_token": "remove unnecessary output in Cassandra Thrift Store"} {"diff": " public class CamelAutoConfiguration { \n camelContext . getShutdownStrategy ( ) . setLogInflightExchangesOnTimeout ( config . isShutdownLogInflightExchangesOnTimeout ( ) ) ; \n \n if ( config . getLogDebugMaxChars ( ) > NUMBER0 ) { \n - camelContext . getProperties ( ) . put ( Exchange . LOG_DEBUG_BODY_MAX_CHARS , STRING0 + config . getLogDebugMaxChars ( ) ) ; \n + camelContext . getGlobalOptions ( ) . put ( Exchange . LOG_DEBUG_BODY_MAX_CHARS , STRING0 + config . getLogDebugMaxChars ( ) ) ; \n } \n \n SINGLE", "msg_token": "Remove the use of the deprecated api in camel spring boot"} {"diff": " public class DialogWrapperPeerImpl extends DialogWrapperPeer implements FocusTra \n \n @ override \n public void setContentPane ( Container contentPane ) { \n + super . setContentPane ( contentPane ) ; \n if ( contentPane != null ) { \n contentPane . addMouseMotionListener ( new MouseMotionAdapter ( ) { } ) ; SINGLE \n } \n public class GlassPaneDialogWrapperPeer extends DialogWrapperPeer implements Foc \n \n @ override \n public void setContentPane ( Container contentPane ) { \n + super . setContentPane ( contentPane ) ; \n if ( contentPane != null ) { \n contentPane . addMouseMotionListener ( new MouseMotionAdapter ( ) { } ) ; SINGLE \n }", "msg_token": "add missing super call"} {"diff": " public class ContactListActivity extends ThemeableActivity implements View . OnCre \n } \n } \n SINGLE \n - mFilterView . setConnection ( mConn ) ; \n + mFilterView . setActivity ( ContactListActivity . this ) ; \n mContactListView . setConnection ( mConn ) ; \n mContactListView . setHideOfflineContacts ( mGlobalSettingMap \n . getHideOfflineContacts ( ) ) ; \n public class ContactListActivity extends ThemeableActivity implements View . OnCre \n mDestroyed = true ; \n SINGLE \n mContactListView . setConnection ( null ) ; \n - mFilterView . setConnection ( null ) ; \n + \n if ( mGlobalSettingMap != null ) { \n mGlobalSettingMap . close ( ) ; \n }", "msg_token": "update filterview to support multiconnection types"} {"diff": " public abstract class DelegatingMavenModule < T extends MavenModule > implements Ma \n } \n \n @ override \n - public MavenModule dependsOnModules ( String . . . dependencyArtifactIds ) { \n + public T dependsOnModules ( String . . . dependencyArtifactIds ) { \n backingModule . dependsOnModules ( dependencyArtifactIds ) ; \n return t ( ) ; \n } \n public abstract class DelegatingMavenModule < T extends MavenModule > implements Ma \n } \n \n @ override \n - public MavenModule dependsOn ( Module module ) { \n + public T dependsOn ( Module module ) { \n backingModule . dependsOn ( module ) ; \n return t ( ) ; \n } \n \n @ override \n - public MavenModule dependsOn ( Map < String , ? > attributes , Module module ) { \n + public T dependsOn ( Map < String , ? > attributes , Module module ) { \n backingModule . dependsOn ( attributes , module ) ; \n return t ( ) ; \n }", "msg_token": "Fixed method return type"} {"diff": " public class ResConfigFlags { \n private String generateQualifiers ( ) { \n StringBuilder ret = new StringBuilder ( ) ; \n if ( mcc != NUMBER0 ) { \n + ret . append ( STRING0 ) . append ( String . format ( STRING1 , mcc ) ) ; \n if ( mcc != MNC_ZERO ) { \n - ret . append ( STRING0 ) . append ( String . format ( STRING1 , mcc ) ) ; \n - if ( mnc != NUMBER0 ) { \n + if ( mnc != NUMBER0 && mnc != - NUMBER1 ) { \n ret . append ( STRING2 ) . append ( mnc ) ; \n } \n }", "msg_token": "handle MNC_ZERO correctly"} {"diff": " public class ErrorResUtils { \n case ImErrorInfo . NETWORK_ERROR : \n return R . string . network_error ; \n \n + case ImErrorInfo . INVALID_USERNAME : \n + return R . string . invalid_password ; \n + \n case ImpsErrorInfo . SERVICE_NOT_SUPPORTED : \n return R . string . service_not_support ; \n \n public class XmppConnection extends ImConnection implements CallbackHandler \n disconnected ( info ) ; \n mRetryLogin = false ; \n } \n - else if ( e . getMessage ( ) . contains ( STRING0 ) ) { \n + else if ( e . getMessage ( ) . contains ( STRING0 ) || e . getMessage ( ) . contains ( STRING1 ) ) { \n Log . w ( TAG , STRING2 ) ; \n info = new ImErrorInfo ( ImErrorInfo . INVALID_USERNAME , STRING3 ) ; \n disconnected ( info ) ;", "msg_token": "fix the login error message"} {"diff": " public interface RScriptAsync { \n < R > Future < R > evalAsync ( Mode mode , String luaScript , ReturnType returnType , List < Object > keys , Object . . . values ) ; \n \n < R > Future < R > evalAsync ( Mode mode , Codec codec , String luaScript , ReturnType returnType , List < Object > keys , Object . . . values ) ; \n + \n + < R > Future < R > evalAsync ( String key , Mode mode , Codec codec , String luaScript , ReturnType returnType , List < Object > keys , Object . . . values ) ; \n \n < R > Future < R > evalAsync ( Mode mode , String luaScript , ReturnType returnType ) ;", "msg_token": "To fix a compilation issue"} {"diff": " public class Configuration { \n \n final String qualifier = getQualifier ( lang ) ; \n \n - final FileInputStream fis = new FileInputStream ( configFile ) ; \n + FileInputStream fis = null ; \n try { \n + fis = new FileInputStream ( configFile ) ; \n final Properties props = new Properties ( ) ; \n props . load ( fis ) ; \n \n public class Configuration { \n } catch ( final FileNotFoundException e ) { \n SINGLE \n } finally { \n - fis . close ( ) ; \n + if ( fis != null ) { \n + fis . close ( ) ; \n + } \n } \n }", "msg_token": "undo parts of latest change it broke the tests"} {"diff": " public final class CommonUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static void changeLocalFilePermission ( String filePath , String perms ) throws IOException { \n List < String > commands = new ArrayList < String > ( ) ; \n public final class CommonUtils { \n \n process . waitFor ( ) ; \n \n - if ( process . exitValue ( ) != NUMBER0 ) { \n - throw new IOException ( STRING0 + file . getAbsolutePath ( ) ) ; \n + if ( process . exitValue ( ) != NUMBER0 ) { \n + throw new IOException ( STRING1 + file . getAbsolutePath ( ) \n + + STRING2 + perms ) ; \n } \n } catch ( InterruptedException e ) { \n LOG . error ( e . getMessage ( ) ) ;", "msg_token": "improve logging and comments"} {"diff": " public @ interface Bean { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n Autowire autowire ( ) default Autowire . NO ;", "msg_token": "Bean s autowire attribute does not affect annotation driven autowiring"} {"diff": " public final class ContactsContract { \n Cursor cursor = cr . query ( photoUri , \n new String [ ] { ContactsContract . CommonDataKinds . Photo . PHOTO } , null , null , null ) ; \n try { \n - if ( ! cursor . moveToNext ( ) ) { \n + if ( cursor == null || ! cursor . moveToNext ( ) ) { \n return null ; \n } \n byte [ ] data = cursor . getBlob ( NUMBER0 ) ; \n public final class ContactsContract { \n } \n return new ByteArrayInputStream ( data ) ; \n } finally { \n - cursor . close ( ) ; \n + if ( cursor != null ) { \n + cursor . close ( ) ; \n + } \n } \n } \n }", "msg_token": "Fix null pointer exception in openContactPhotoInputStream"} {"diff": " public class QuerySystemTable \n return table . build ( ) . cursor ( ) ; \n } \n \n - private Long toMillis ( Duration duration ) \n + private static Long toMillis ( Duration duration ) \n { \n if ( duration == null ) { \n return null ; \n public class QuerySystemTable \n return duration . toMillis ( ) ; \n } \n \n - private Long toTimeStamp ( DateTime dateTime ) \n + private static Long toTimeStamp ( DateTime dateTime ) \n { \n if ( dateTime == null ) { \n return null ;", "msg_token": "Make helper methods private"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ApiHelper { \n XMLRPCClientInterface client = XMLRPCFactory . instantiate ( mBlog . getUri ( ) , mBlog . getHttpuser ( ) , \n mBlog . getHttppassword ( ) ) ; \n \n + boolean alreadyTrackedAsJetpackBlog = mBlog . isJetpackPowered ( ) ; \n + \n if ( ! commentsOnly ) { \n SINGLE \n Map < String , String > hPost = ApiHelper . blogOptionsXMLRPCParameters ; \n public class ApiHelper { \n ApiHelper . updateBlogOptions ( mBlog , blogOptions ) ; \n } \n \n + if ( mBlog . isJetpackPowered ( ) && ! alreadyTrackedAsJetpackBlog ) { \n + SINGLE \n + AnalyticsTracker . track ( AnalyticsTracker . Stat . SIGNED_INTO_JETPACK ) ; \n + } \n + \n SINGLE \n new GetPostFormatsTask ( ) . execute ( mBlog ) ; \n }", "msg_token": "Bump analytics when a Jetpack blogs is added to the app"} {"diff": " public class ModelLoader extends ModelBakery \n \n private void loadItems ( ) \n { \n - registerVariantNames ( ) ; \n - \n SINGLE \n if ( FluidRegistry . isUniversalBucketEnabled ( ) ) \n { \n setBucketModelDefinition ( ForgeModContainer . getInstance ( ) . universalBucket ) ; \n } \n + \n + registerVariantNames ( ) ; \n \n List < String > itemVariants = Lists . newArrayList ( ) ; \n for ( Item item : GameData . getItemRegistry ( ) . typeSafeIterable ( ) )", "msg_token": "Fix universal bucket logging an exception"} {"diff": " public class ProjectDataManager { \n } ; \n } \n \n - @ deprecated SINGLE \n - @ nullable \n - public ProjectDataService < ? , ? > getDataService ( Key < ? > key ) { \n - final List < ProjectDataService < ? , ? > > dataServices = myServices . getValue ( ) . get ( key ) ; \n - assert dataServices == null || dataServices . isEmpty ( ) || dataServices . size ( ) == NUMBER0 ; \n - return ContainerUtil . getFirstItem ( dataServices ) ; \n - } \n - \n @ suppresswarnings ( STRING0 ) \n public void importData ( @ notnull Collection < DataNode < ? > > nodes , \n @ notnull Project project ,", "msg_token": "deprecated method removed"} {"diff": " public class TestCaseLoader { \n if ( IdeaTestUtil . isRotten ( bombedAnnotation ) ) { \n String message = STRING0 + method + STRING1 + method . getDeclaringClass ( ) + STRING2 ; \n System . err . println ( message ) ; \n - Assert . fail ( message ) ; \n + SINGLE \n } \n return ! IdeaTestUtil . bombExplodes ( bombedAnnotation ) ; \n }", "msg_token": "Prevent stall bomb from canceling the build"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DaemonMain extends EntryPoint { \n private DaemonExpirationStrategy initializeExpirationStrategy ( final DaemonServerConfiguration params ) { \n DaemonIdleTimeoutExpirationStrategy timeoutStrategy = new DaemonIdleTimeoutExpirationStrategy ( params . getIdleTimeout ( ) , TimeUnit . MILLISECONDS ) ; \n DaemonRegistryUnavailableExpirationStrategy registryUnavailableStrategy = new DaemonRegistryUnavailableExpirationStrategy ( ) ; \n - return new CompositeDaemonExpirationStrategy ( ImmutableList . of ( timeoutStrategy , registryUnavailableStrategy ) ) ; \n + DaemonExpirationStrategy lowMemoryLruStrategy = new AllDaemonExpirationStrategy ( ImmutableList . of ( \n + LowMemoryDaemonExpirationStrategy . belowFreePercentage ( FLOAT0 ) , \n + new LruDaemonExpirationStrategy ( ) ) \n + ) ; \n + \n + return new AnyDaemonExpirationStrategy ( ImmutableList . of ( registryUnavailableStrategy , lowMemoryLruStrategy ) ) ; \n } \n \n private void redirectOutputsAndInput ( PrintStream printStream ) {", "msg_token": "expire the least recently busy daemon when memory is low"} {"diff": " final class Bootstrap { \n COMMENT \n COMMENT \n COMMENT \n - @ suppressforbidden ( reason = STRING0 ) \n static void init ( String [ ] args ) throws Throwable { \n SINGLE \n System . setProperty ( STRING1 , STRING2 ) ;", "msg_token": "Remove unnecessary suppression"} {"diff": " public class ServletCategory { \n return context . getAttribute ( key ) ; \n } \n \n + public static void set ( ServletContext context , String key , Object value ) { \n + context . setAttribute ( key , value ) ; \n + } \n + \n + public static void set ( HttpSession session , String key , Object value ) { \n + session . setAttribute ( key , value ) ; \n + } \n + \n + public static void set ( ServletRequest request , String key , Object value ) { \n + request . setAttribute ( key , value ) ; \n + } \n + \n + public static void set ( PageContext context , String key , Object value ) { \n + context . setAttribute ( key , value ) ; \n + } \n + \n }", "msg_token": "Add the setters to the servlet getters in the category"} {"diff": " public abstract class SharedTree < M extends SharedTreeModel < M , P , O > , P extends Sha \n \n SINGLE \n protected Key getGlobalQuantilesKey ( int i ) { \n - if ( _parms . _histogram_type != SharedTreeModel . SharedTreeParameters . HistogramType . QuantilesGlobal \n + if ( _model == null || _parms . _histogram_type != SharedTreeModel . SharedTreeParameters . HistogramType . QuantilesGlobal \n && _parms . _histogram_type != SharedTreeModel . SharedTreeParameters . HistogramType . RoundRobin ) return null ; \n return Key . makeSystem ( _model . _key + STRING0 + i ) ; \n }", "msg_token": "Fix NPE in GBM DRF in exceptional completion when QuantilesGlobal is enabled"} {"diff": " public class TimelineDrawer extends JPanel implements MouseListener , MouseMotion \n to = Math . min ( to , model . getCustomMax ( ) ) ; \n if ( from < to ) { \n controller . setInterval ( from , to ) ; \n - repaint ( ) ; \n } \n } \n } \n public class TimelineControllerImpl implements TimelineController { \n } else { \n filterController . filterVisible ( dynamicQuery ) ; \n } \n + fireTimelineModelEvent ( new TimelineModelEvent ( TimelineModelEvent . EventType . INTERVAL , model , new double [ ] { from , to } ) ) ; \n } \n } \n }", "msg_token": "Fix repaint issue on timeline"} {"diff": " public class FactoryFinder { \n if ( className == null ) { \n throw new IOException ( STRING0 + propertyPrefix + STRING1 ) ; \n } \n - Class clazz ; \n - try { \n - clazz = Thread . currentThread ( ) . getContextClassLoader ( ) . loadClass ( className ) ; \n + Class clazz = null ; \n + ClassLoader loader = Thread . currentThread ( ) . getContextClassLoader ( ) ; \n + if ( loader != null ) { \n + try { \n + clazz = loader . loadClass ( className ) ; \n + } \n + catch ( ClassNotFoundException e ) { \n + SINGLE \n + } \n } \n - catch ( ClassNotFoundException e ) { \n + if ( clazz == null ) { \n clazz = FactoryFinder . class . getClassLoader ( ) . loadClass ( className ) ; \n } \n - \n return clazz ; \n }", "msg_token": "fixed possible NPE"} {"diff": " public class AgentRegistrationElf \n HikariClassTransformer transformer = new HikariClassTransformer ( ) ; \n systemProperties . put ( STRING0 , transformer ) ; \n \n + LOGGER . info ( STRING1 , agentJarPath ) ; \n + \n registerInstrumentation ( agentJarPath ) ; \n LOGGER . info ( STRING2 ) ;", "msg_token": "Add additional log message for path of agent jar"} {"diff": " public class PostgreSQLConnector extends SQLMetadataConnector \n public boolean tableExists ( final Handle handle , final String tableName ) \n { \n return ! handle . createQuery ( \n - STRING0 \n + STRING1 \n ) \n . bind ( STRING2 , tableName ) \n . map ( StringMapper . FIRST )", "msg_token": "Ignore case when testing for table existence"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoogleAccountsServiceTests { \n + STRING0 \n + STRING1 \n + STRING2 ; \n - request . setParameter ( SamlProtocolConstants . PARAMETER_SAML_REQUEST , encodeMessage ( SAMLRequest ) ) ; \n + request . setParameter ( SamlProtocolConstants . PARAMETER_SAML_REQUEST , encodeMessage ( samlRequest ) ) ; \n request . setParameter ( SamlProtocolConstants . PARAMETER_SAML_RELAY_STATE , STRING3 ) ; \n \n final RegisteredService regSvc = mock ( RegisteredService . class ) ;", "msg_token": "Fixed CS issues"} {"diff": " final class ActivityStack { \n next . idle = false ; \n next . results = null ; \n next . newIntents = null ; \n + if ( next . nowVisible ) { \n + SINGLE \n + mStackSupervisor . dismissKeyguard ( ) ; \n + } \n \n SINGLE \n mStackSupervisor . scheduleIdleTimeoutLocked ( next ) ;", "msg_token": "Dismiss keyguard when resuming visible activities"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class ConfigurableJtaPlatform implements InvocationHandler { \n \n @ override \n public Object invoke ( Object proxy , Method method , Object [ ] args ) throws Throwable { \n - Method targetMethod = getClass ( ) . getMethod ( method . getName ( ) , method . getParameterTypes ( ) ) ; \n - return targetMethod . invoke ( this , args ) ; \n + try { \n + return getClass ( ) . getMethod ( method . getName ( ) , method . getParameterTypes ( ) ) . invoke ( this , args ) ; \n + } \n + catch ( InvocationTargetException ex ) { \n + throw ex . getTargetException ( ) ; \n + } \n + catch ( Throwable ex ) { \n + throw new IllegalStateException ( STRING0 , ex ) ; \n + } \n } \n \n COMMENT", "msg_token": "Properly handle InvocationTargetException in reflective JtaPlatform implementation"} {"diff": " public class XmppConnection implements Runnable { \n } \n \n public boolean sm ( ) { \n - if ( connection . streamFeatures == null ) { \n - return false ; \n - } else { \n - return connection . streamFeatures . hasChild ( STRING0 ) ; \n - } \n + return streamId != null ; \n } \n \n public boolean csi ( ) {", "msg_token": "changed method that determins whether or not sm is available"} {"diff": " public class MaterialDialog extends DialogBase implements View . OnClickListener , \n private ListCallbackMulti listCallbackMulti ; \n protected Theme theme = Theme . LIGHT ; \n protected boolean cancelable = true ; \n - protected float contentLineSpacingMultiplier = FLOAT0 ; \n + protected float contentLineSpacingMultiplier = FLOAT1 ; \n protected int selectedIndex = - NUMBER0 ; \n protected Integer [ ] selectedIndicies = null ; \n protected ItemProcessor itemProcessor ;", "msg_token": "Changed default line spacing"} {"diff": " public interface TelephonyProperties \n COMMENT \n COMMENT \n static final String PROPERTY_MMS_TRANSACTION = STRING0 ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - static final String PROPERTY_SIM_COUNT = STRING1 ; \n }", "msg_token": "Remove PROPERTY_SIM_COUNT and ro telephony sim count"} {"diff": " public class PGraphicsOpenGL extends PGraphics { \n try { \n pgl . glBlendEquation ( PGL . GL_FUNC_ADD ) ; \n blendEqSupported = true ; \n - } catch ( UnsupportedOperationException e ) { \n + } catch ( Exception e ) { \n blendEqSupported = false ; \n } \n \n public class PGraphicsOpenGL extends PGraphics { \n try { \n pgl . glBlendEquation ( PGL . GL_FUNC_ADD ) ; \n blendEqSupported = true ; \n - } catch ( UnsupportedOperationException e ) { \n + } catch ( Exception e ) { \n blendEqSupported = false ; \n }", "msg_token": "try catch block for glBlendEquation handles any exception"} {"diff": " public class SceneBuilderCreatorImpl implements SceneBuilderCreator { \n urls . add ( new File ( home , STRING0 ) . toURI ( ) . toURL ( ) ) ; \n } \n } \n + \n + final String rtPath = PathUtil . getJarPathForClass ( String . class ) ; \n + final File javaFxJar = new File ( new File ( new File ( rtPath ) . getParentFile ( ) , STRING1 ) , STRING2 ) ; \n + if ( javaFxJar . isFile ( ) ) { \n + urls . add ( javaFxJar . toURI ( ) . toURL ( ) ) ; \n + } \n + \n return new URLClassLoader ( urls . toArray ( new URL [ urls . size ( ) ] ) , SceneBuilderCreatorImpl . class . getClassLoader ( ) ) ; \n } \n }", "msg_token": "include jfxrt jar in classloader to load SceneBuilder"} {"diff": " public class Shortcut implements DirectEdge , Serializable { \n else \n s1 = first . traverse ( s0 ) ; \n \n + SINGLE \n + if ( s1 == null ) \n + return null ; \n + \n if ( second instanceof Shortcut ) \n s1 = ( ( Shortcut ) second ) . unpackTraverse ( s1 ) ; \n else", "msg_token": "Add null checks to shortcut unpacking method"} {"diff": " public class SmartLockHelper { \n \n public void smartLockAutoFill ( final Callback callback ) { \n Activity activity = getActivityAndCheckAvailability ( ) ; \n - if ( activity == null ) { \n + if ( activity == null || mCredentialsClient == null || ! mCredentialsClient . isConnected ( ) ) { \n return ; \n } \n CredentialRequest credentialRequest = new CredentialRequest . Builder ( ) \n - . setSupportsPasswordLogin ( true ) \n + . setPasswordLoginSupported ( true ) \n . build ( ) ; \n Auth . CredentialsApi . request ( mCredentialsClient , credentialRequest ) . setResultCallback ( \n new ResultCallback < CredentialRequestResult > ( ) {", "msg_token": "replace deprecated method"} {"diff": " public class SQLSelectTest { \n tags . add ( STRING0 ) ; \n \n ODocument doc = new ODocument ( database , STRING1 ) ; \n - doc . field ( STRING2 , tags ) ; \n + doc . field ( STRING2 , tags , OType . EMBEDDEDSET ) ; \n \n doc . save ( ) ; \n \n public class SQLSelectTest { \n Assert . assertEquals ( resultset . size ( ) , NUMBER0 ) ; \n Assert . assertEquals ( resultset . get ( NUMBER1 ) . getIdentity ( ) , doc . getIdentity ( ) ) ; \n \n + resultset = database . query ( new OSQLSynchQuery < ODocument > ( STRING3 ) ) ; \n + \n + Assert . assertEquals ( resultset . size ( ) , NUMBER0 ) ; \n + Assert . assertEquals ( resultset . get ( NUMBER1 ) . getIdentity ( ) , doc . getIdentity ( ) ) ; \n + \n + SINGLE \n + \n database . close ( ) ; \n }", "msg_token": "Fixed bug on operator and SETs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class SentimentCoreAnnotations { \n - \n + \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static class AnnotatedTree implements CoreAnnotation < Tree > { \n + @ override \n public Class < Tree > getType ( ) { \n return Tree . class ; \n } \n public class SentimentCoreAnnotations { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static class ClassName implements CoreAnnotation < String > { \n + @ override \n public Class < String > getType ( ) { \n return String . class ; \n }", "msg_token": "Add TODOs for proposed incompatible changes"} {"diff": " final class YUVMonochromeBitmapSource extends BaseMonochromeBitmapSource { \n \n } \n \n + public void cacheColumnForLuminance ( int x ) { \n + \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add column caching to MonochromeBitmapSources and use it to improve Data Matrix speed"} {"diff": " class PluginManagerColumnInfo extends ColumnInfo { \n if ( existing == null ) \n return PluginNode . STATUS_MISSING ; \n \n + if ( existing . getVendor ( ) == null ? true : ! existing . getVendor ( ) . equals ( node . getVendor ( ) ) ) { \n + return PluginNode . STATUS_MISSING ; \n + } \n + \n int state = compareVersion ( node . getVersion ( ) , existing . getVersion ( ) ) ; \n \n if ( state == NUMBER0 )", "msg_token": "missing plugin status for plugins without vendors"} {"diff": " public class DescriptorRenderer implements Renderer { \n \n public String renderType ( JetType type ) { \n if ( type == null ) { \n - return escape ( STRING0 ) ; \n + return escape ( STRING1 ) ; \n } else { \n return escape ( type . toString ( ) ) ; \n }", "msg_token": "change DescriptionRenderer for null internal error etc type"} {"diff": " public class XOAuthConsumer extends CommonsHttpOAuthConsumer { \n } \n \n try { \n - HttpUriRequest request = ( HttpUriRequest ) sign ( post ) ; \n + HttpUriRequest request = ( HttpUriRequest ) sign ( post ) . unwrap ( ) ; \n final HttpClient httpClient = new DefaultHttpClient ( ) ; \n final HttpResponse response = httpClient . execute ( request ) ; \n \n public class XOAuthConsumer extends CommonsHttpOAuthConsumer { \n Object value = tokener . nextValue ( ) ; \n \n if ( value instanceof JSONObject ) { \n - return ( ( JSONObject ) value ) . getString ( STRING0 ) ; \n + return ( ( JSONObject ) value ) . optString ( STRING0 , null ) ; \n } else { \n Log . w ( TAG , STRING1 + responseString ) ; \n }", "msg_token": "Fix class cast exception"} {"diff": " public class TileHopper extends TileBuildCraft implements IInventory { \n @ override \n public void updateEntity ( ) { \n super . updateEntity ( ) ; \n - if ( CoreProxy . proxy . isRenderWorld ( worldObj ) || worldObj . getWorldTime ( ) % NUMBER0 != NUMBER1 ) \n + if ( CoreProxy . proxy . isRenderWorld ( worldObj ) || worldObj . getWorldTime ( ) % NUMBER2 != NUMBER1 ) \n return ; \n \n TileEntity tile = this . worldObj . getBlockTileEntity ( xCoord , yCoord - NUMBER3 , zCoord ) ;", "msg_token": "Tweaked Hopper fill speed"} {"diff": " public class Mustache { \n } \n \n protected Mustache compilePartial ( String name ) throws MustacheException { \n + MustacheTrace . Event event = null ; \n + if ( trace ) { \n + event = MustacheTrace . addEvent ( STRING0 + name , root . getName ( ) ) ; \n + } \n Mustache mustache ; \n mustache = mj . parseFile ( name + STRING1 ) ; \n mustache . setMustacheJava ( mj ) ; \n mustache . setRoot ( root ) ; \n + if ( trace ) { \n + event . end ( ) ; \n + } \n return mustache ; \n }", "msg_token": "add trace for compilation"} {"diff": " public class SerializationFactory { \n Class klass = Class . forName ( klassName ) ; \n IKryoDecorator decorator = ( IKryoDecorator ) klass . newInstance ( ) ; \n decorator . decorate ( k ) ; \n - System . out . println ( klassName + STRING0 ) ; \n } catch ( ClassNotFoundException e ) { \n if ( skipMissing ) { \n LOG . info ( STRING1 + klassName + STRING2 ) ;", "msg_token": "removed print debugging code"} {"diff": " public class PyActiveSdkConfigurable implements UnnamedConfigurable { \n \n @ override \n public void consume ( @ nullable Sdk sdk ) { \n - if ( getSdk ( ) != sdk ) { \n + if ( sdk instanceof PyDetectedSdk ) { \n + final Sdk addedSdk = SdkConfigurationUtil . setupSdk ( myProjectSdksModel . getSdks ( ) , sdk . getHomeDirectory ( ) , \n + PythonSdkType . getInstance ( ) , true , \n + null , null ) ; \n + myAddedSdk = addedSdk ; \n + myProjectSdksModel . addSdk ( addedSdk ) ; \n + myProjectSdksModel . removeSdk ( sdk ) ; \n + mySdkCombo . setSelectedItem ( addedSdk ) ; \n + } \n + else if ( getSdk ( ) != sdk ) { \n mySdkCombo . setSelectedItem ( sdk ) ; \n } \n }", "msg_token": "add detected sdk from details dialog"} {"diff": " public enum AttributeType { \n } \n return false ; \n } \n + \n + public boolean isListType ( ) { \n + if ( this . equals ( LIST_BIGDECIMAL ) \n + || this . equals ( LIST_BIGINTEGER ) \n + || this . equals ( LIST_BOOLEAN ) \n + || this . equals ( LIST_BYTE ) \n + || this . equals ( LIST_CHARACTER ) \n + || this . equals ( LIST_DOUBLE ) \n + || this . equals ( LIST_FLOAT ) \n + || this . equals ( LIST_INTEGER ) \n + || this . equals ( LIST_LONG ) \n + || this . equals ( LIST_SHORT ) \n + || this . equals ( LIST_STRING ) ) { \n + return true ; \n + } \n + return false ; \n + } \n }", "msg_token": "Add isListType method in AttributeType"} {"diff": " public class ImageDownloader { \n BitmapDownloaderTask task = new BitmapDownloaderTask ( imageView , isDiskCaching ) ; \n DownloadedDrawable downloadedDrawable = new DownloadedDrawable ( task ) ; \n imageView . setImageDrawable ( downloadedDrawable ) ; \n - SINGLE \n - task . execute ( url ) ; \n + SINGLE \n + AndroidUtils . executeAsyncTask ( task , url ) ; \n } \n }", "msg_token": "Execute image loader on thread pool again"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ ignore ( STRING0 ) \n + @ ignore ( STRING1 ) \n public class BackupHaIT \n { \n private DbRepresentation representation ;", "msg_token": "Changes ignore reason for BackupHaIT test"} {"diff": " public class JuelExpression extends ExpressionSupport < Exchange > { \n private final Class < ? > type ; \n private ExpressionFactory expressionFactory ; \n \n + public static JuelExpression el ( String expression ) { \n + return new JuelExpression ( expression , Object . class ) ; \n + } \n + \n public JuelExpression ( String expression , Class < ? > type ) { \n this . expression = expression ; \n this . type = type ;", "msg_token": "added helper method"} {"diff": " public class PyInjectionUtil { \n if ( formatting != Formatting . NONE ) { \n final String part = range . substring ( text ) ; \n final List < FormatStringChunk > chunks = formatting == Formatting . NEW_STYLE ? parseNewStyleFormat ( part ) : parsePercentFormat ( part ) ; \n + if ( chunks . isEmpty ( ) ) { \n + registrar . addPlace ( prefix , suffix , expr , range ) ; \n + continue ; \n + } \n for ( int i = NUMBER0 ; i < chunks . size ( ) ; i ++ ) { \n final FormatStringChunk chunk = chunks . get ( i ) ; \n if ( chunk instanceof ConstantChunk ) {", "msg_token": "Add injection place even if a string fragment consists of zero chunks"} {"diff": " public class Parser { \n } else { \n formalParameterList = parseFormalParameterList ( ) ; \n } \n + if ( peekImplicitSemiColon ( ) ) { \n + reportError ( STRING0 ) ; \n + } \n eat ( TokenType . ARROW ) ; \n ParseTree functionBody ; \n if ( peek ( TokenType . OPEN_CURLY ) ) { \n public class NewParserTest extends BaseJSTypeTestCase { \n STRING1 ) ; \n } \n \n - public void testArrow2 ( ) { \n + public void testArrowInvalid ( ) { \n mode = LanguageMode . ECMASCRIPT6 ; \n parseError ( STRING2 , STRING3 ) ; \n + parseError ( STRING4 , STRING0 ) ; \n + parseError ( STRING5 , STRING0 ) ; \n + parseError ( STRING6 , STRING0 ) ; \n } \n \n public void testForIn_ES6 ( ) {", "msg_token": "Reject arrow functions with a newline before the arrow"} {"diff": " public abstract class AbstractPerfTestQueueVsDisruptor \n { \n System . gc ( ) ; \n queueOps [ i ] = runQueuePass ( ) ; \n + System . out . println ( STRING0 + i ) ; \n } \n + \n } \n \n for ( int i = NUMBER0 ; i < RUNS ; i ++ ) \n { \n System . gc ( ) ; \n disruptorOps [ i ] = runDisruptorPass ( ) ; \n + System . out . println ( STRING1 + i ) ; \n } \n \n printResults ( getClass ( ) . getSimpleName ( ) , disruptorOps , queueOps ) ;", "msg_token": "Added progress reporting to throughput tests in new format"} {"diff": " import NAMESPACE ; \n public final class Scope implements Comparable , Serializable \n { \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n \n COMMENT", "msg_token": "fixed typo in comment"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ClickHandler extends AbstractViewListenerHandler { \n JVar viewParam = listenerMethod . param ( classes ( ) . VIEW , STRING0 ) ; \n \n if ( hasItemParameter ) { \n - call . arg ( viewParam ) ; \n + call . arg ( castArgumentIfNecessary ( holder , CanonicalNameConstants . VIEW , viewParam , parameters . get ( NUMBER0 ) ) ) ; \n } \n }", "msg_token": "allow subclasses for Click"} {"diff": " public class ESNode implements Startable { \n if ( \n node . client ( ) . admin ( ) . cluster ( ) . prepareHealth ( ) \n . setWaitForYellowStatus ( ) \n + . setTimeout ( healthTimeout ) \n . get ( ) \n . getStatus ( ) == ClusterHealthStatus . RED ) { \n throw new IllegalStateException (", "msg_token": "fix quality flaw forgot timeout"} {"diff": " import NAMESPACE ; \n public interface Session { \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + String getId ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultSession implements Session { \n } \n \n @ override \n + public String getId ( ) { \n + return sessionId . getValue ( ) . toString ( ) ; \n + } \n + \n + @ override \n public Promise < SessionData > getData ( ) { \n if ( needsLoad ) { \n return storeAdapter . load ( sessionId . getValue ( ) ) . map ( bytes - > {", "msg_token": "Expose the session id"} {"diff": " public class EditorTabsConfigurable implements EditorOptionsProvider { \n \n boolean none = i == UISettings . TABS_NONE ; \n myHideKnownExtensions . setEnabled ( ! none ) ; \n + myHideTabsCheckbox . setEnabled ( ! none && myScrollTabLayoutInEditorCheckBox . isSelected ( ) ) ; \n myScrollTabLayoutInEditorCheckBox . setEnabled ( ! none ) ; \n myCbModifiedTabsMarkedWithAsterisk . setEnabled ( ! none ) ; \n myShowTabsTooltipsCheckBox . setEnabled ( ! none ) ;", "msg_token": "Disable Hide tabs checkbox if tab placement is None"} {"diff": " public class MainActivity extends ActionBarActivity { \n private void showCustomList ( ) { \n MaterialDialog dialog = new MaterialDialog . Builder ( this ) \n . title ( R . string . socialNetworks ) \n - . itemsCallback ( new MaterialDialog . ListCallback ( ) { \n - @ override \n - public void onSelection ( MaterialDialog dialog , View view , int which , CharSequence text ) { \n - Toast . makeText ( getApplicationContext ( ) , which + STRING0 + text , Toast . LENGTH_SHORT ) . show ( ) ; \n - } \n - } ) \n . adapter ( new ButtonItemAdapter ( this , R . array . socialNetworks ) ) \n . build ( ) ;", "msg_token": "Remove callback for custom adapter"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n class ColumnarBinaryHiveRecordCursor < K > \n { \n checkState ( ! closed , STRING0 ) ; \n \n - validateType ( fieldId , VARCHAR ) ; \n + if ( ! types [ fieldId ] . equals ( VARCHAR ) && ! types [ fieldId ] . equals ( VARBINARY ) ) { \n + SINGLE \n + throw new IllegalArgumentException ( String . format ( STRING1 , types [ fieldId ] , fieldId ) ) ; \n + } \n + \n if ( ! loaded [ fieldId ] ) { \n parseStringColumn ( fieldId ) ; \n }", "msg_token": "Fix type check in RC binary cursor for varbinary fields"} {"diff": " public class MaterialViewPagerAnimator { \n public void registerScrollView ( final ObservableScrollView scrollView , final ObservableScrollViewCallbacks observableScrollViewCallbacks ) { \n if ( scrollView != null ) { \n scrollViewList . add ( scrollView ) ; SINGLE \n + scrollView . setTouchInterceptionViewGroup ( ( ViewGroup ) scrollView . getParent ( ) . getParent ( ) ) ; \n scrollView . setScrollViewCallbacks ( new ObservableScrollViewCallbacks ( ) { \n @ override \n public void onScrollChanged ( int i , boolean b , boolean b2 ) { \n public class MaterialViewPagerAnimator { \n public void registerListView ( final ObservableListView listView , final ObservableScrollViewCallbacks observableScrollViewCallbacks ) { \n if ( listView != null ) { \n scrollViewList . add ( listView ) ; SINGLE \n + listView . setTouchInterceptionViewGroup ( ( ViewGroup ) listView . getParent ( ) . getParent ( ) ) ; \n listView . setScrollViewCallbacks ( new ObservableScrollViewCallbacks ( ) { \n @ override \n public void onScrollChanged ( int i , boolean b , boolean b2 ) {", "msg_token": "Stop the ViewPager from handling touch events"} {"diff": " public class SelectCategoriesActivity extends SherlockListActivity { \n int category_id = Integer . parseInt ( result . toString ( ) ) ; \n SINGLE \n WordPress . wpDB . insertCategory ( blog . getId ( ) , category_id , parent_id , category_name ) ; \n - \n returnString = STRING0 ; \n + SINGLE \n + mSelectedCategories . add ( category_name ) ; \n } \n \n return returnString ;", "msg_token": "Creating a new category does not automatically add it"} {"diff": " \n class Test { \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void foo ( ) { \n }", "msg_token": "fix test data"} {"diff": " public class BlockingHttpClient { \n . map ( response - > { \n TypedData responseBody = response . getBody ( ) ; \n ByteBuf responseBuffer = responseBody . getBuffer ( ) ; \n - ByteBuf heapResponseBodyBuffer = unreleasableBuffer ( responseBuffer . isDirect ( ) ? copiedBuffer ( responseBuffer ) : responseBuffer ) ; \n + ByteBuf heapResponseBodyBuffer = unreleasableBuffer ( responseBuffer . isDirect ( ) ? copiedBuffer ( responseBuffer ) : responseBuffer . retain ( ) ) ; \n \n return new DefaultReceivedResponse ( \n response . getStatus ( ) ,", "msg_token": "Retain the buffer if necessary"} {"diff": " public class TimerEndpoint extends DefaultEndpoint implements MultipleConsumersS \n private boolean daemon = true ; \n @ uriparam \n private Timer timer ; \n - @ uriparam ( defaultValue = STRING0 ) \n + @ uriparam ( defaultValue = STRING1 ) \n private long repeatCount ; \n \n public TimerEndpoint ( ) {", "msg_token": "Fixed wrong default value for timer"} {"diff": " public class InputFile { \n if ( fileName . endsWith ( STRING0 ) ) { \n return loadFromClassFile ( file ) ; \n } \n - if ( fileName . endsWith ( STRING1 ) ) { \n + if ( fileName . endsWith ( STRING1 ) || fileName . endsWith ( STRING2 ) ) { \n Dex dex = loadFromZip ( file ) ; \n if ( dex == null ) { \n throw new IOException ( STRING3 + file ) ;", "msg_token": "Added support for files ending in"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class FileHandle { \n return file ( ) . isDirectory ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public FileHandle child ( String name ) { \n if ( file . getPath ( ) . length ( ) == NUMBER0 ) return new FileHandle ( new File ( name ) , type ) ; \n return new FileHandle ( new File ( file , name ) , type ) ; \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public FileHandle sibling ( String name ) { \n if ( file . getPath ( ) . length ( ) == NUMBER0 ) throw new GdxRuntimeException ( STRING0 ) ; \n return new FileHandle ( new File ( file . getParent ( ) , name ) , type ) ;", "msg_token": "Corrected FileHandle JavaDoc"} {"diff": " public class BitwiseInputStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public int read ( int bits ) throws AccessException { \n public class BitwiseInputStream { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n public byte [ ] readByteArray ( int bits ) throws AccessException { \n public class BitwiseOutputStream { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add comment about endianness"} {"diff": " public class TemplateQueryParserTests extends ESTestCase { \n TemplateQueryParser parser = injector . getInstance ( TemplateQueryParser . class ) ; \n try { \n parser . fromXContent ( context . parseContext ( ) ) . toQuery ( context ) ; \n + fail ( ) ; \n } catch ( UnsupportedOperationException ex ) { \n assertEquals ( STRING0 , ex . getMessage ( ) ) ; \n }", "msg_token": "apply fixes after review"} {"diff": " public class SdkConfigurationUtil { \n showSuggestedHomesPopup ( project , sdkType , existingSdks , suggestedSdkHomes , popupOwner , callback ) ; \n } \n else { \n - createSdk ( project , existingSdks , new Consumer < Sdk > ( ) { \n - @ override \n - public void consume ( Sdk sdk ) { \n - callback . consume ( sdk ) ; \n - } \n - } , sdkType ) ; \n + createSdk ( project , existingSdks , callback , sdkType ) ; \n } \n } \n \n public class SdkConfigurationUtil { \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - createSdk ( project , existingSdks , new Consumer < Sdk > ( ) { \n - @ override \n - public void consume ( Sdk sdk ) { \n - callback . consume ( sdk ) ; \n - } \n - } , sdkType ) ; \n + createSdk ( project , existingSdks , callback , sdkType ) ; \n } \n } , ModalityState . current ( ) ) ; \n }", "msg_token": "remove redundant callback wrappers r yole"} {"diff": " public class MatchTask extends AbstractTask { \n v1ResettableIterator . reset ( ) ; \n } \n \n - SINGLE \n - v1ResettableIterator . close ( ) ; \n - \n } catch ( Exception e ) { \n throw new RuntimeException ( e ) ; \n } finally { \n if ( v1ResettableIterator != null ) { \n try { \n + SINGLE \n v1ResettableIterator . close ( ) ; \n } catch ( ServiceException e ) { \n LOG . warn ( e ) ;", "msg_token": "fixed double closing SpillingResettableIterator bug in MatchTask"} {"diff": " public class MetaDataExporter { \n Map < String , ForeignKeyData > foreignKeyData = keyDataFactory \n . getImportedKeys ( md , catalog , schema , tableName ) ; \n if ( ! foreignKeyData . isEmpty ( ) ) { \n + Collection < ForeignKeyData > foreignKeysToGenerate = new HashSet < ForeignKeyData > ( ) ; \n for ( ForeignKeyData fkd : foreignKeyData . values ( ) ) { \n if ( namingStrategy . shouldGenerateForeignKey ( schemaAndTable , fkd ) ) { \n - classModel . getData ( ) . put ( ForeignKeyData . class , foreignKeyData . values ( ) ) ; \n + foreignKeysToGenerate . add ( fkd ) ; \n } \n } \n + \n + if ( ! foreignKeysToGenerate . isEmpty ( ) ) { \n + classModel . getData ( ) . put ( ForeignKeyData . class , foreignKeysToGenerate ) ; \n + } \n } \n }", "msg_token": "Fix ignoring foreign keys in MetadataExporter"} {"diff": " public class CommandLineParser { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 \n - + STRING4 \n + + STRING5 \n + + STRING6 \n + STRING7 ) ; \n }", "msg_token": "improve usage text"} {"diff": " public class SSLCertificateSocketFactory extends SSLSocketFactory { \n } \n } ; \n \n - private static final HostnameVerifier HOSTNAME_VERIFIER = \n - HttpsURLConnection . getDefaultHostnameVerifier ( ) ; \n - \n private SSLSocketFactory mInsecureFactory = null ; \n private SSLSocketFactory mSecureFactory = null ; \n private TrustManager [ ] mTrustManagers = null ; \n public class SSLCertificateSocketFactory extends SSLSocketFactory { \n if ( session == null ) { \n throw new SSLException ( STRING0 ) ; \n } \n - if ( ! HOSTNAME_VERIFIER . verify ( hostname , session ) ) { \n + if ( ! HttpsURLConnection . getDefaultHostnameVerifier ( ) . verify ( hostname , session ) ) { \n throw new SSLPeerUnverifiedException ( STRING1 + hostname ) ; \n } \n }", "msg_token": "Use hostname verifier directly instead of instance DO NOT MERGE"} {"diff": " public class MapPortableHook implements PortableHook { \n \n public PortableFactory createFactory ( ) { \n return new PortableFactory ( ) { \n - final ConstructorFunction < Integer , Portable > [ ] constructors = new ConstructorFunction [ EVICT_ALL + NUMBER0 ] ; \n + final ConstructorFunction < Integer , Portable > [ ] constructors = new ConstructorFunction [ IS_EMPTY + NUMBER0 ] ; \n \n { \n constructors [ GET ] = new ConstructorFunction < Integer , Portable > ( ) {", "msg_token": "Fix array initialization on MapPortableHook"} {"diff": " public class StatsGeoviewsFragment extends StatsAbstractListFragment { \n SINGLE \n String htmlPage = STRING0 + \n STRING1 + \n + STRING2 + \n STRING3 + \n STRING4 + \n - STRING5 + \n - STRING6 + \n + STRING7 + \n + STRING8 + \n STRING9 + \n STRING10 + \n STRING11 + \n STRING12 + label + STRING13 + \n dataToLoad + \n STRING14 + \n - STRING15 + \n + STRING16 + \n STRING17 + \n STRING18 + \n STRING19 +", "msg_token": "Changed the way Geochart are loaded by using the new methods provided by Google"} {"diff": " class SipSessionGroup implements SipListener { \n if ( expires != null && ( time < NUMBER0 || time > expires . getExpires ( ) ) ) { \n time = expires . getExpires ( ) ; \n } \n + if ( time <= NUMBER0 ) { \n + time = EXPIRY_TIME ; \n + } \n expires = ( ExpiresHeader ) response . getHeader ( MinExpiresHeader . NAME ) ; \n if ( expires != null && time < expires . getExpires ( ) ) { \n time = expires . getExpires ( ) ; \n } \n Log . v ( TAG , STRING0 + time ) ; \n - return ( time > NUMBER0 ) ? time : EXPIRY_TIME ; \n + return time ; \n } \n \n private boolean registeringToReady ( EventObject evt )", "msg_token": "avoid extreme small values in Min Expires headers"} {"diff": " public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme \n final PsiReference referenceAt = file . findReferenceAt ( startOffset ) ; \n if ( referenceAt != null && referenceAt . resolve ( ) instanceof PsiLocalVariable ) { \n startOffset = referenceAt . getElement ( ) . getTextRange ( ) . getEndOffset ( ) ; \n - } else { \n - startOffset = document . getLineEndOffset ( document . getLineNumber ( startOffset ) ) ; \n + } else if ( declarationStatement != null ) { \n + startOffset = declarationStatement . getTextRange ( ) . getEndOffset ( ) ; \n } \n editor . getCaretModel ( ) . moveToOffset ( startOffset ) ; \n final PsiType selectedType = ReassignVariableUtil . getVariableType ( declarationStatement ) ;", "msg_token": "SegmentArray findSegmentIndex move caret to declaration end"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class ComparisonExpression \n extends Expression \n public class ComparisonExpression \n result = NUMBER0 * result + right . hashCode ( ) ; \n return result ; \n } \n - \n - public static Predicate < ComparisonExpression > matchesPattern ( final Type type , final Class < ? > left , final Class < ? > right ) \n - { \n - return new Predicate < ComparisonExpression > ( ) \n - { \n - @ override \n - public boolean apply ( ComparisonExpression expression ) \n - { \n - return expression . getType ( ) == type && \n - left . isAssignableFrom ( expression . getLeft ( ) . getClass ( ) ) && \n - right . isAssignableFrom ( expression . getRight ( ) . getClass ( ) ) ; \n - } \n - } ; \n - } \n }", "msg_token": "Remove unused method from ComparisonExpression"} {"diff": " public class TextDiffTypeFactory { \n Color bg = ( ( EditorEx ) editor ) . getBackgroundColor ( ) ; \n return getMiddleColor ( fg , bg ) ; \n } \n - return attributes . getBackgroundColor ( ) . brighter ( ) ; \n + else { \n + Color fg = attributes . getBackgroundColor ( ) ; \n + Color bg = EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) . getDefaultBackground ( ) ; \n + return getMiddleColor ( fg , bg ) ; \n + } \n } \n \n @ notnull", "msg_token": "better ignored colors for unknown editor"} {"diff": " public class SerializeConfig { \n } \n \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void addFilter ( Class < ? > clazz , SerializeFilter filter ) { \n public class SerializeConfig { \n } \n } \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void config ( Class < ? > clazz , SerializerFeature feature , boolean value ) {", "msg_token": "add java doc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix quality flaw"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractAppServer extends AbstractServer \n @ override \n public Iterable < String > getAllAvailableCommands ( ) \n { \n - return this . apps . keySet ( ) ; \n + return new ArrayList < String > ( apps . keySet ( ) ) ; \n } \n }", "msg_token": "Fixed a NotSerializableException issue with the available commands"} {"diff": " public final class PowerManager { \n \n private void acquireLocked ( ) { \n if ( ! mRefCounted || mCount ++ == NUMBER0 ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n mHandler . removeCallbacks ( mReleaser ) ; \n - if ( ! mHeld ) { \n - try { \n - mService . acquireWakeLock ( mFlags , mToken , mTag , mWorkSource ) ; \n - } catch ( RemoteException e ) { \n - } \n - mHeld = true ; \n + try { \n + mService . acquireWakeLock ( mFlags , mToken , mTag , mWorkSource ) ; \n + } catch ( RemoteException e ) { \n } \n + mHeld = true ; \n } \n }", "msg_token": "Fix keyguard wake up issue"} {"diff": " public final class UpgradeService { \n if ( from < V4_1_0 ) { \n newVersionString ( changeLog , STRING0 , new String [ ] { \n STRING1 + \n - STRING2 , \n - STRING3 , \n - STRING4 , \n + STRING5 , \n + STRING6 , \n + STRING7 , \n STRING8 , \n STRING9 , \n } ) ;", "msg_token": "Updated upgrade message"} {"diff": " public class WebView extends AbsoluteLayout \n SINGLE \n SINGLE \n SINGLE \n - data . mView . setLayoutParams ( new ViewGroup . LayoutParams ( \n + data . mView . setLayoutParams ( new FrameLayout . LayoutParams ( \n ViewGroup . LayoutParams . FILL_PARENT , \n ViewGroup . LayoutParams . FILL_PARENT ) ) ; \n mFullScreenHolder . setContentView ( data . mView ) ;", "msg_token": "use the correct LayoutParams to fix going to fullscreen view"} {"diff": " public class EC2Producer extends DefaultProducer { \n try { \n ec2Client . rebootInstances ( request ) ; \n } catch ( AmazonServiceException ase ) { \n - LOG . trace ( STRING0 , ase . getErrorCode ( ) ) ; \n + LOG . trace ( STRING1 , ase . getErrorCode ( ) ) ; \n throw ase ; \n } \n }", "msg_token": "Fix error message related to rebootInstances operation"} {"diff": " public class Solo { \n return viewFetcher . getView ( Button . class , text ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n + public EditText getEditText ( String text ) \n + { \n + return viewFetcher . getView ( EditText . class , text ) ; \n + } \n + \n \n COMMENT \n COMMENT", "msg_token": "Added new method getEditText String text that returns an edit text showing a certain text"} {"diff": " public class FileFilter { \n STRING0 , SINGLE \n STRING1 , SINGLE \n STRING2 , SINGLE \n - STRING3 , SINGLE \n - STRING4 , \n + STRING5 , \n } ; \n \n static final String [ ] ignoreTestList = {", "msg_token": "Enable some tests that requires local http server"} {"diff": " public class FormatProcessor { \n myBlockIndentOptions . getIndentOptions ( myCurrentBlock ) ) ; \n BlockAlignmentProcessor . Result result = alignmentProcessor . applyAlignment ( context ) ; \n final LeafBlockWrapper offsetResponsibleBlock = alignment . getOffsetRespBlockBefore ( myCurrentBlock ) ; \n + return processAlignmentResult ( alignment , context , result , offsetResponsibleBlock ) ; \n + } \n + \n + private boolean processAlignmentResult ( AlignmentImpl alignment , Context context , \n + BlockAlignmentProcessor . Result result , \n + LeafBlockWrapper offsetResponsibleBlock ) { \n switch ( result ) { \n case TARGET_BLOCK_PROCESSED_NOT_ALIGNED : return true ; \n case TARGET_BLOCK_ALIGNED : storeAlignmentMapping ( ) ; return true ;", "msg_token": "minor extracted method"} {"diff": " abstract class OAuthToken implements Serializable { \n OAuthToken ( Response response ) { \n String [ ] responseStr = response . asString ( ) . split ( STRING0 ) ; \n for ( String str : responseStr ) { \n - if ( str . startsWith ( STRING1 ) ) { \n + if ( str . startsWith ( STRING2 ) ) { \n this . tokenSecret = str . split ( STRING3 ) [ NUMBER0 ] . trim ( ) ; \n - } else { \n + } else if ( str . startsWith ( STRING4 ) ) { \n this . token = str . split ( STRING3 ) [ NUMBER0 ] . trim ( ) ; \n } \n }", "msg_token": "Fixed bug in OAuthToken"} {"diff": " public class StreamingResolutionResultBuilder implements ResolutionResultBuilder \n public void write ( Encoder encoder ) throws IOException { \n encoder . writeByte ( DEPENDENCY ) ; \n moduleVersionIdentifierSerializer . write ( encoder , from ) ; \n - encoder . writeInt ( dependencies . size ( ) ) ; \n + encoder . writeSmallInt ( dependencies . size ( ) ) ; \n for ( InternalDependencyResult dependency : dependencies ) { \n internalDependencyResultSerializer . write ( encoder , dependency ) ; \n if ( dependency . getFailure ( ) != null ) { \n public class StreamingResolutionResultBuilder implements ResolutionResultBuilder \n break ; \n case DEPENDENCY : \n id = moduleVersionIdentifierSerializer . read ( decoder ) ; \n - int size = decoder . readInt ( ) ; \n + int size = decoder . readSmallInt ( ) ; \n List < InternalDependencyResult > deps = new LinkedList < InternalDependencyResult > ( ) ; \n for ( int i = NUMBER0 ; i < size ; i ++ ) { \n deps . add ( internalDependencyResultSerializer . read ( decoder , failures ) ) ;", "msg_token": "Use a variable length int for serializing the number of edges for a node in the dependency graph"} {"diff": " public class SourceControlPreferencesPane extends PreferencesPane \n \n } \n } ) ; \n + SINGLE \n sshButtonPanel . add ( createKeyButton_ ) ; \n - \n add ( sshButtonPanel ) ; \n \n - SINGLE \n - if ( Desktop . isDesktop ( ) && \n - ( BrowseCap . isMacintosh ( ) || BrowseCap . isLinux ( ) ) ) \n + SINGLE \n + if ( Desktop . isDesktop ( ) ) \n { \n - sshKeyPathLabel . setVisible ( false ) ; \n - publicKeyLink_ . setVisible ( false ) ; \n - sshKeyPathChooser_ . setVisible ( false ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n sshButtonPanel . setVisible ( false ) ; \n + \n + SINGLE \n + SINGLE \n + if ( BrowseCap . isMacintosh ( ) || BrowseCap . isLinux ( ) ) \n + { \n + sshKeyPathLabel . setVisible ( false ) ; \n + publicKeyLink_ . setVisible ( false ) ; \n + sshKeyPathChooser_ . setVisible ( false ) ; \n + } \n }", "msg_token": "only allow new key ui in server mode"} {"diff": " package NAMESPACE ; \n \n public class LexicographicRankInPermutation { \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n private int findNumberOfSmallerCharactersOnRight ( int index , char [ ] str ) { \n int count = NUMBER0 ; \n for ( int i = index + NUMBER1 ; i < str . length ; i ++ ) {", "msg_token": "Adding more comments"} {"diff": " public class ListPopupWindow { \n COMMENT \n COMMENT \n public ListPopupWindow ( Context context ) { \n - this ( context , null , NUMBER0 , NUMBER0 ) ; \n + this ( context , null , com . android . internal . R . attr . listPopupWindowStyle , NUMBER0 ) ; \n } \n \n COMMENT", "msg_token": "Fix default style in constructor with only one parameter"} {"diff": " class DelayedStream implements ClientStream { \n private int pendingFlowControlRequests ; \n @ guardedby ( STRING0 ) \n private boolean pendingFlush ; \n - @ guardedby ( STRING1 ) \n + @ guardedby ( STRING0 ) \n private CompressorRegistry compressionRegistry ; \n \n static final class PendingMessage {", "msg_token": "Fix gaurded by"} {"diff": " public class ExifInterface { \n public static final String TAG_GPS_LATITUDE_REF = STRING0 ; \n COMMENT \n public static final String TAG_GPS_LONGITUDE_REF = STRING1 ; \n + COMMENT \n + public static final String TAG_EXPOSURE_TIME = STRING2 ; \n + COMMENT \n + public static final String TAG_APERTURE = STRING3 ; \n + COMMENT \n + public static final String TAG_ISO = STRING4 ; \n \n COMMENT \n COMMENT", "msg_token": "Add more EXIF tags"} {"diff": " public class SuppressWarningsHolder \n parentAST = parentAST . getParent ( ) ; \n if ( parentAST != null ) { \n switch ( parentAST . getType ( ) ) { \n + case TokenTypes . ANNOTATION_DEF : \n case TokenTypes . PACKAGE_DEF : \n case TokenTypes . CLASS_DEF : \n case TokenTypes . INTERFACE_DEF :", "msg_token": "Adding ANNOTATION_DEF to the valid list of parentASTs for the SuppressWarningsHolder"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n SINGLE \n public class ItunesSearchFragment extends Fragment { \n public class ItunesSearchFragment extends Fragment { \n COMMENT \n COMMENT \n COMMENT \n - public SearchTask ( String query ) { \n - this . query = query ; \n + public SearchTask ( String query ) { \n + String encodedQuery = null ; \n + try { \n + encodedQuery = URLEncoder . encode ( query , STRING0 ) ; \n + } catch ( UnsupportedEncodingException e ) { \n + SINGLE \n + } \n + if ( encodedQuery != null ) { \n + this . query = encodedQuery ; \n + } else { \n + this . query = query ; SINGLE \n + } \n } \n \n SINGLE", "msg_token": "Encode non ascii query strings for the iTunes search"} {"diff": " public class HashGenerationOptimizer \n \n SINGLE \n Map < HashComputation , Symbol > hashSymbols = new HashMap < > ( source . getHashSymbols ( ) ) ; \n - hashSymbols . keySet ( ) . retainAll ( result . getOutputSymbols ( ) ) ; \n + hashSymbols . values ( ) . retainAll ( result . getOutputSymbols ( ) ) ; \n \n return new PlanWithProperties ( result , hashSymbols ) ; \n }", "msg_token": "Fix removal of symbols"} {"diff": " public class Violation { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public String getCommitter ( ) {", "msg_token": "Add javadoc to Violation getCommitter"} {"diff": " public class Ctags { \n private BufferedReader ctagsOut ; \n private static final Logger log = Logger . getLogger ( Ctags . class . getName ( ) ) ; \n private static final String CTAGS_FILTER_TERMINATOR = STRING0 ; \n + SINGLE \n private String binary ; \n private ProcessBuilder processBuilder ; \n \n public final class Configuration { \n setRepositories ( new ArrayList < RepositoryInfo > ( ) ) ; \n setUrlPrefix ( STRING1 ) ; \n SINGLE \n - setCtags ( STRING2 ) ; \n + setCtags ( System . getProperty ( STRING3 , STRING2 ) ) ; \n SINGLE \n setIndexWordLimit ( Integer . MAX_VALUE ) ; \n setVerbose ( false ) ; \n public final class RuntimeEnvironment { \n if ( output == null || output . indexOf ( STRING4 ) == - NUMBER0 ) { \n log . log ( Level . SEVERE , STRING5 + \n STRING6 + STRING7 + STRING8 + \n - STRING9 , getCtags ( ) ) ; \n + STRING10 + \n + STRING11 , getCtags ( ) ) ; \n ret = false ; \n }", "msg_token": "Add a java property for ctags for junit"} {"diff": " public class CopyrightManager extends AbstractProjectComponent implements JDOMEx \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n public void run ( ) { \n if ( file . isValid ( ) && file . isWritable ( ) ) { \n - new UpdateCopyrightProcessor ( myProject , module , file ) . run ( ) ; \n + final CopyrightProfile opts = CopyrightManager . getInstance ( myProject ) . getCopyrightOptions ( file ) ; \n + if ( opts != null ) { \n + new UpdateCopyrightProcessor ( myProject , module , file ) . run ( ) ; \n + } \n } \n } \n } , ModalityState . NON_MODAL ) ;", "msg_token": "do not start anything when no copyright configured"} {"diff": " public class SpeeDRF extends Job . ValidatedJob { \n long treeSeed = rnd . nextLong ( ) + TREE_SEED_INIT ; SINGLE \n trees [ i ] = new Tree ( job , localData , producerId , drfParams . max_depth , drfParams . stat_type , numSplitFeatures , treeSeed , \n i , drfParams . _exclusiveSplitLimit , sampler , drfParams . _verbose , drfParams . regression ) ; \n - if ( ! drfParams . parallel ) ForkJoinTask . invokeAll ( new Tree [ ] { trees [ i ] } ) ; \n + SINGLE \n } \n \n - if ( drfParams . parallel ) DRemoteTask . invokeAll ( trees ) ; \n + DRemoteTask . invokeAll ( trees ) ; \n Log . debug ( Log . Tag . Sys . RANDF , STRING0 + ntrees + STRING1 + t_alltrees ) ; \n } \n \n public class SpeeDRF extends Job . ValidatedJob { \n drfp . _verbose = verbose ; \n drfp . classcol = col ; \n drfp . regression = regression ; \n + drfp . parallel = true ; \n return drfp ; \n } \n }", "msg_token": "remove code path to ForkJoin tree building all paths to DRemote"} {"diff": " public abstract class ExpandableView extends FrameLayout { \n } \n \n public void reset ( ) { \n - mOnHeightChangedListener . onReset ( this ) ; \n + if ( mOnHeightChangedListener != null ) { \n + mOnHeightChangedListener . onReset ( this ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fixed a NPE during setup wizard"} {"diff": " public class Signaler \n if ( nbytes == NUMBER0 ) { \n continue ; \n } \n - wcursor . incrementAndGet ( ) ; \n assert ( nbytes == NUMBER1 ) ; \n + wcursor . incrementAndGet ( ) ; \n break ; \n } \n }", "msg_token": "Move the wcursor increment after the assert"} {"diff": " public abstract class IQ extends Packet { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public void setType ( Type type ) { \n if ( type == null ) { \n - this . type = Type . get ; \n - } \n - else { \n - this . type = type ; \n + throw new IllegalArgumentException ( STRING0 ) ; \n } \n + this . type = type ; \n } \n \n public final String getChildElementName ( ) {", "msg_token": "Make IQ setType Type throw IllegalArgumentException"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ImageView extends View { \n mUri = null ; \n } \n } else if ( mUri != null ) { \n - if ( STRING0 . equals ( mUri . getScheme ( ) ) ) { \n + String scheme = mUri . getScheme ( ) ; \n + if ( ContentResolver . SCHEME_CONTENT . equals ( scheme ) \n + || ContentResolver . SCHEME_ANDROID_RESOURCE . equals ( scheme ) \n + || ContentResolver . SCHEME_FILE . equals ( scheme ) ) { \n try { \n d = Drawable . createFromStream ( \n mContext . getContentResolver ( ) . openInputStream ( mUri ) ,", "msg_token": "Allow resource and file URIs in ImageView setImageURI"} {"diff": " public class NotebookRestApi { \n @ zeppelinapi \n public Response putNotePermissions ( @ pathparam ( STRING0 ) String noteId , String req ) \n throws IOException { \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n HashMap < String , HashSet < String > > permMap = \n gson . fromJson ( req , new TypeToken < HashMap < String , HashSet < String > > > ( ) { \n } . getType ( ) ) ;", "msg_token": "MINOR remove comments in NotebookRestApi java"} {"diff": " public class ChangeSignatureDialog extends RefactoringDialog { \n return panel ; \n } \n \n + protected String getDimensionServiceKey ( ) { \n + return STRING0 ; \n + } \n \n private JPanel createParametersPanel ( ) { \n myParametersTable = new Table ( myParametersTableModel ) ;", "msg_token": "Remember change signature dialog size"} {"diff": " public class PrivacyManager { \n } \n \n SINGLE \n - key . setValue ( value ) ; \n + if ( value == null ) \n + key . setValue ( defaultValue ) ; \n + else \n + key . setValue ( value ) ; \n synchronized ( mSettingsCache ) { \n if ( mSettingsCache . containsKey ( key ) ) \n mSettingsCache . remove ( key ) ; \n public class PrivacyManager { \n CSetting key = new CSetting ( uid , type , name ) ; \n key . setValue ( value ) ; \n synchronized ( mSettingsCache ) { \n - if ( mSettingsCache . containsKey ( key ) ) \n - mSettingsCache . remove ( key ) ; \n - mSettingsCache . put ( key , key ) ; \n + mSettingsCache . clear ( ) ; \n } \n } catch ( Throwable ex ) { \n Util . bug ( null , ex ) ;", "msg_token": "Fix settings caching"} {"diff": " public class SimpleHeaderDrawerActivity extends AppCompatActivity { \n . build ( ) ; \n \n SINGLE \n - RecyclerViewCacheUtil . getInstance ( ) \n - . withCacheSize ( NUMBER0 ) \n - . init ( result ) ; \n + SINGLE \n + RecyclerViewCacheUtil . getInstance ( ) . withCacheSize ( NUMBER0 ) . init ( result ) ; \n \n SINGLE \n if ( savedInstanceState == null ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DrawerBuilder { \n COMMENT \n COMMENT \n public DrawerBuilder ( ) { \n - \n + SINGLE \n + SINGLE \n + SINGLE \n + RecyclerViewCacheUtil . getInstance ( ) . clear ( ) ; \n } \n \n COMMENT \n public class RecyclerViewCacheUtil { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void clear ( ) { \n + CACHE . clear ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add new clear method to RecyclerViewCacheUtil"} {"diff": " public final class MockWebServer { \n if ( executor != null ) throw new IllegalStateException ( STRING0 ) ; \n executor = Executors . newCachedThreadPool ( Util . threadFactory ( STRING1 , false ) ) ; \n inetAddress = InetAddress . getByName ( null ) ; \n - serverSocket = serverSocketFactory . createServerSocket ( port , NUMBER0 , inetAddress ) ; \n - serverSocket . setReuseAddress ( true ) ; \n + serverSocket = serverSocketFactory . createServerSocket ( ) ; \n + serverSocket . setReuseAddress ( port != NUMBER1 ) ; SINGLE \n + serverSocket . bind ( new InetSocketAddress ( inetAddress , port ) , NUMBER0 ) ; \n \n this . port = serverSocket . getLocalPort ( ) ; \n executor . execute ( new NamedRunnable ( STRING2 , this . port ) {", "msg_token": "Don t reuse ephemeral port numbers"} {"diff": " public class GsdEnterAlwaysCollapsedParallaxFragment extends BaseFeatureFragment \n \n @ override \n public int getContentLayout ( ) { \n - return R . layout . fragment_gsd_enter_always_collapsed ; \n + return R . layout . fragment_gsd_enter_always_collapsed_parallax ; \n } \n \n @ override", "msg_token": "Fixed GsdEnterAlwaysCollapsedParallaxFragment examples"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ sharable \n public abstract class ChannelInitializer < C extends Channel > extends ChannelInboundHandlerAdapter < Object > { \n \n private static final InternalLogger logger = InternalLoggerFactory . getInstance ( ChannelInitializer . class ) ;", "msg_token": "Add Sharable annotation to ChannelInitializer"} {"diff": " import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n \n public class ResourceAdapterOperationsUnitTestCase extends AbstractMgmtTestBase \n \n ModelNode node = findNodeWithProperty ( newList , STRING0 , STRING1 ) ; \n Assert . assertNotNull ( STRING2 + newList , node ) ; \n - controlModelParams ( node , params ) ; \n + checkModelParams ( node , params ) ; \n \n node = findNodeWithProperty ( newList , STRING3 , STRING4 ) ; \n Assert . assertNotNull ( STRING5 + newList , node ) ; \n - controlModelParams ( node , conParams ) ; \n + checkModelParams ( node , conParams ) ; \n \n node = findNodeWithProperty ( newList , STRING3 , STRING6 ) ; \n Assert . assertNotNull ( STRING7 + newList , node ) ; \n - controlModelParams ( node , admParams ) ; \n + checkModelParams ( node , admParams ) ; \n \n node = findNodeWithProperty ( newList , STRING8 , STRING9 ) ; \n Assert . assertNotNull ( STRING10 + newList , node ) ;", "msg_token": "Fix more conflicts"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ActivityLauncher { \n + public static final String ENABLE_MAGIC_LINK_LOGIN_VARIABLE = STRING0 ; \n + private static LiveVariable < Boolean > enableMagicLinkLoginVariable = Optimizely . booleanForKey ( ENABLE_MAGIC_LINK_LOGIN_VARIABLE , false ) ; \n private static final String ARG_DID_SLIDE_IN_FROM_RIGHT = STRING1 ; \n \n public static void showSitePickerForResult ( Activity activity , int blogLocalTableId ) { \n public class ActivityLauncher { \n } \n \n public static void showSignInForResult ( Activity activity ) { \n - if ( true ) { \n + if ( enableMagicLinkLoginVariable . get ( ) ) { \n Intent intent = new Intent ( activity , MagicLinkSignInActivity . class ) ; \n activity . startActivityForResult ( intent , RequestCodes . ADD_ACCOUNT ) ; \n } else {", "msg_token": "Adding Optimizely A B testing for magic links"} {"diff": " public interface ReadableInterval { \n COMMENT \n Duration getDuration ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + Duration getDuration ( DurationType type ) ; \n + \n SINGLE \n COMMENT \n COMMENT", "msg_token": "Added getDuration DurationType"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class NullSmartCompletionContributor extends CompletionContributor { \n public NullSmartCompletionContributor ( ) { \n - extend ( CompletionType . SMART , JavaSmartCompletionContributor . INSIDE_EXPRESSION , new ExpectedTypeBasedCompletionProvider ( false ) { \n + extend ( CompletionType . SMART , and ( JavaSmartCompletionContributor . INSIDE_EXPRESSION , \n + not ( psiElement ( ) . afterLeaf ( STRING0 ) ) ) , new ExpectedTypeBasedCompletionProvider ( false ) { \n protected void addCompletions ( final CompletionParameters parameters , \n final CompletionResultSet result , final Collection < ExpectedTypeInfo > infos ) { \n final Ref < Boolean > empty = Ref . create ( true ) ;", "msg_token": "don t suggest null after"} {"diff": " public class CallPeerJabberImpl \n try \n { \n getMediaHandler ( ) . reinitContent ( remoteContent . getName ( ) , senders ) ; \n + getMediaHandler ( ) . start ( ) ; \n } \n catch ( Exception e ) \n {", "msg_token": "Fix local video display when we are the second to activate video in a XMPP call"} {"diff": " public abstract class ContinuationBase extends TestCase \n try \n { \n Socket socket = new Socket ( STRING0 , port ) ; \n + socket . setSoTimeout ( NUMBER0 ) ; \n socket . getOutputStream ( ) . write ( request . getBytes ( STRING1 ) ) ; \n \n response = toString ( socket . getInputStream ( ) ) ;", "msg_token": "stop test hanging forever so we can work out what is going wrong with intermittant failure"} {"diff": " public final class TaskLaunchProcessor implements Runnable { \n @ override \n public void run ( ) { \n while ( ! shutdown ) { \n + Collection < JobContext > eligibleJobContexts = facadeService . getEligibleJobContext ( ) ; \n if ( ! leasesQueue . hasOffer ( ) ) { \n + if ( ! eligibleJobContexts . isEmpty ( ) ) { \n + log . info ( STRING0 ) ; \n + } \n BlockUtils . waitingShortTime ( ) ; \n continue ; \n } \n - Collection < JobContext > eligibleJobContexts = facadeService . getEligibleJobContext ( ) ; \n Map < String , Integer > jobShardingTotalCountMap = new HashMap < > ( eligibleJobContexts . size ( ) , NUMBER0 ) ; \n List < TaskRequest > pendingTasks = new ArrayList < > ( eligibleJobContexts . size ( ) * NUMBER1 ) ; \n for ( JobContext each : eligibleJobContexts ) {", "msg_token": "log for ready queue has job but no resources"} {"diff": " class ConfigurableEditor extends AbstractEditor implements AnActionListener , AWT \n add ( BorderLayout . SOUTH , myErrorLabel ) ; \n ActionManager . getInstance ( ) . addAnActionListener ( this , this ) ; \n getDefaultToolkit ( ) . addAWTEventListener ( this , AWTEvent . MOUSE_EVENT_MASK | AWTEvent . MOUSE_MOTION_EVENT_MASK | AWTEvent . KEY_EVENT_MASK ) ; \n + myConfigurable = configurable ; \n setCurrent ( configurable , readContent ( configurable ) ) ; \n }", "msg_token": "clicking OK button doesn t apply changes"} {"diff": " public class RoundRobinConnectionPoolImplTest extends BaseConnectionPoolTest { \n \n ConnectionPoolConfigurationImpl config = new ConnectionPoolConfigurationImpl ( \n TestConstants . CLUSTER_NAME + STRING0 + TestConstants . KEYSPACE_NAME ) \n - . setRetrySuspendWindow ( NUMBER0 ) ; \n + . setRetrySuspendWindow ( NUMBER1 ) ; \n SINGLE \n SINGLE \n config . setMaxConnsPerHost ( NUMBER2 ) ;", "msg_token": "Adjust rety delay for unit test"} {"diff": " public abstract class XmppActivity extends Activity { \n protected boolean addFingerprintRow ( LinearLayout keys , final Account account , final String fingerprint , boolean highlight ) { \n final XmppAxolotlSession . Trust trust = account . getAxolotlService ( ) \n . getFingerprintTrust ( fingerprint ) ; \n + if ( trust == null ) { \n + return false ; \n + } \n return addFingerprintRowWithListeners ( keys , account , fingerprint , highlight , trust , true , \n new CompoundButton . OnCheckedChangeListener ( ) { \n @ override", "msg_token": "prevent null pointer when trying to display device fingerprints of not existing sessions"} {"diff": " import NAMESPACE ; \n Assertions . checkNotNull ( input ) ; \n Assertions . checkNotNull ( wavHeader ) ; \n \n + SINGLE \n + input . resetPeekPosition ( ) ; \n + \n ParsableByteArray scratch = new ParsableByteArray ( ChunkHeader . SIZE_IN_BYTES ) ; \n SINGLE \n ChunkHeader chunkHeader = ChunkHeader . peek ( input , scratch ) ;", "msg_token": "Fix WavExtractor bug"} {"diff": " public class TextEditingTarget implements \n RStudioGinjector . INSTANCE . getSourceWindowManager ( ) \n . setLastFocusedSourceWindowId ( STRING0 ) ; \n } \n + \n + SINGLE \n + commands_ . goToNextSection ( ) . setEnabled ( true ) ; \n + commands_ . goToPrevSection ( ) . setEnabled ( true ) ; \n + } \n + } ) ; \n + \n + docDisplay_ . addBlurHandler ( new BlurHandler ( ) \n + { \n + @ override \n + public void onBlur ( BlurEvent event ) \n + { \n + SINGLE \n + commands_ . goToNextSection ( ) . setEnabled ( false ) ; \n + commands_ . goToPrevSection ( ) . setEnabled ( false ) ; \n } \n } ) ;", "msg_token": "manage goToSection on focus blur of docDisplay"} {"diff": " public class RmdOutput implements RmdRenderStartedEvent . Handler , \n outputFrame_ == null || \n outputFrame_ . getWindowObject ( ) == null || \n outputFrame_ . getWindowObject ( ) . isClosed ( ) || \n - outputFrame_ . getPreviewParams ( ) . getTargetFile ( ) != event . getDocPath ( ) ) \n + outputFrame_ . getPreviewParams ( ) . getTargetFile ( ) != event . getDocPath ( ) || \n + ! outputFrame_ . getPreviewParams ( ) . getOutputFile ( ) . endsWith ( STRING0 ) ) \n return ; \n \n SINGLE", "msg_token": "don t auto refresh output on render complete if not"} {"diff": " import static NAMESPACE ; \n public class IndexNameExpressionResolver extends AbstractComponent { \n \n private final ImmutableList < ExpressionResolver > expressionResolvers ; \n - private DateMathExpressionResolver dateMathExpressionResolver ; \n + private final DateMathExpressionResolver dateMathExpressionResolver ; \n \n @ inject \n public IndexNameExpressionResolver ( Settings settings ) {", "msg_token": "made dateMathExpressionResolver final"} {"diff": " public class MainActivity extends QKActivity implements LiveView , SlidingMenu . Sl \n @ override \n protected void onResume ( ) { \n super . onResume ( ) ; \n - ThemeManager . loadThemeProperties ( this ) ; \n \n if ( ! mSlidingMenu . isMenuShowing ( ) ) { \n mContent . onContentOpened ( ) ;", "msg_token": "Fix tinting in onResume"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OTransactionOptimisticProxy extends OTransactionOptimistic { \n } \n \n @ override \n - public ORecordInternal < ? > getRecord ( final ORecordId rid ) { \n + public ORecordInternal < ? > getRecord ( final ORID rid ) { \n ORecordInternal < ? > record = super . getRecord ( rid ) ; \n if ( record == null && rid . isNew ( ) ) \n SINGLE", "msg_token": "Fixed bug reported in ML by Alex on wrong cluster used to store records in a graph"} {"diff": " public class Thread implements Runnable { \n } else { \n threadGroup = [ currentThreadData objectForKey : JavaLangThread_THREADGROUP_ ] ; \n } \n + assert ( threadGroup != nil ) ; \n \n NSThread * thread ; \n NSMutableDictionary * newThreadData ; \n public class Thread implements Runnable { \n \n public static native Thread currentThread ( ) COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT ; \n \n public native void start ( ) / * - {", "msg_token": "Fixed case where externally created thread doesn t get matching JRE thread"} {"diff": " public class ActorPushService extends Service implements MqttCallback { \n \n private synchronized void onConnected ( int attempt , MqttClient mqttClient ) { \n if ( this . attemptIndex == attempt ) { \n + this . isConnecting = false ; \n this . mqttClient = mqttClient ; \n } else { \n SINGLE \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SDKPushReceiver extends ActorPushReceiver { \n try { \n JSONObject object = new JSONObject ( payload ) ; \n int seq = object . getJSONObject ( STRING0 ) . getInt ( STRING1 ) ; \n + Log . d ( STRING2 , STRING3 + seq ) ; \n ActorSDK . sharedActor ( ) . getMessenger ( ) . onPushReceived ( seq ) ; \n } catch ( Exception e ) { \n e . printStackTrace ( ) ;", "msg_token": "Fixing mqtt reconnecting"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OverviewFragment extends SherlockFragment implements \n SINGLE \n mShowTitle = show . getString ( ShowQuery . SHOW_TITLE ) ; \n ( ( TextView ) getView ( ) . findViewById ( R . id . seriesname ) ) . setText ( mShowTitle ) ; \n + \n + SINGLE \n + final ActionBar actionBar = getSherlockActivity ( ) . getSupportActionBar ( ) ; \n + actionBar . setTitle ( mShowTitle ) ; \n \n SINGLE \n final TextView statusText = ( TextView ) getView ( ) . findViewById ( R . id . showStatus ) ;", "msg_token": "Set show title in action bar in overview"} {"diff": " public interface UuidFactory { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n String create ( ) ; \n \n package NAMESPACE ; \n \n public class Uuids { \n \n + public static final int MAX_LENGTH = NUMBER0 ; \n public static final String UUID_EXAMPLE_01 = STRING0 ; \n public static final String UUID_EXAMPLE_02 = STRING1 ; \n public static final String UUID_EXAMPLE_03 = STRING2 ;", "msg_token": "Improve documentation of UuidFactory"} {"diff": " public class EsIndexRangeService implements IndexRangeService { \n . setTypes ( IndexMapping . TYPE_INDEX_RANGE ) \n . setIndices ( indices . allIndicesAlias ( ) ) \n . setQuery ( completeRangeQuery ) \n + . setSize ( Integer . MAX_VALUE ) \n . request ( ) ; \n \n final SearchResponse response = client . search ( request ) . actionGet ( ) ; \n public class EsIndexRangeService implements IndexRangeService { \n . setTypes ( IndexMapping . TYPE_INDEX_RANGE ) \n . setIndices ( indices . allIndicesAlias ( ) ) \n . setQuery ( QueryBuilders . matchAllQuery ( ) ) \n + . setSize ( Integer . MAX_VALUE ) \n . request ( ) ; \n \n final SearchResponse response = client . search ( request ) . actionGet ( ) ;", "msg_token": "Increase result size on index range queries"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class SessionTest { \n \n public class SessionTest { \n try { \n \n Session session = new Session ( null ) ; \n - fail ( STRING0 ) ; \n + fail ( STRING1 ) ; \n \n } catch ( IllegalArgumentException ex ) {", "msg_token": "corrected typo in assertion message removed unused imports"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IdeaApplication { \n mySplash = null ; SINGLE \n } \n } \n - } , ModalityState . NON_MODAL ) ; \n + } , ModalityState . any ( ) ) ; \n \n TransactionGuard . submitTransaction ( app , ( ) - > { \n Project projectFromCommandLine = myPerformProjectLoad ? loadProjectFromExternalCommandLine ( ) : null ;", "msg_token": "dispose splash before project opening"} {"diff": " public class RegistryUi implements Disposable { \n \n Collections . sort ( myAll , ( o1 , o2 ) - > { \n final String key1 = o1 . getKey ( ) ; \n + boolean changed1 = o1 . isChangedFromDefault ( ) ; \n + boolean changed2 = o2 . isChangedFromDefault ( ) ; \n + if ( changed1 && ! changed2 ) return - NUMBER0 ; \n + if ( ! changed1 && changed2 ) return NUMBER0 ; \n + \n final String key2 = o2 . getKey ( ) ; \n final int i1 = recent . indexOf ( key1 ) ; \n final int i2 = recent . indexOf ( key2 ) ;", "msg_token": "move all changed values on top"} {"diff": " public class SSEAtmosphereInterceptor implements AtmosphereInterceptor { \n \n if ( r . transport ( ) . equals ( AtmosphereResource . TRANSPORT . SSE ) ) { \n \n - \n r . addEventListener ( new AtmosphereResourceEventListenerAdapter ( ) { \n @ override \n public void onSuspend ( AtmosphereResourceEvent event ) { \n public class SSEAtmosphereInterceptor implements AtmosphereInterceptor { \n \n @ override \n public AsyncIOWriter writeError ( int errorCode , String message ) throws IOException { \n + if ( errorCode == NUMBER0 && r . getAtmosphereConfig ( ) . framework ( ) . is ) { \n + logger . warn ( STRING0 + \n + STRING1 ) ; \n + } \n response . sendError ( errorCode ) ; \n return this ; \n }", "msg_token": "Add a warning no functional changes"} {"diff": " public class ConnectionManagerImpl extends BasicModule implements ConnectionMana \n sessionManager = server . getSessionManager ( ) ; \n SINGLE \n SINGLE \n - if ( ! JiveGlobals . getBooleanProperty ( STRING0 , false ) ) { \n + if ( JiveGlobals . getBooleanProperty ( STRING1 , true ) ) { \n ByteBuffer . setUseDirectBuffers ( false ) ; \n ByteBuffer . setAllocator ( new SimpleByteBufferAllocator ( ) ) ; \n }", "msg_token": "Renamed system property that indicates if heap or direct buffers should be used"} {"diff": " public class DefaultErrorMessages { \n MAP . put ( ARRAY_CLASS_LITERAL_REQUIRES_ARGUMENT , STRING0 ) ; \n \n SINGLE \n - MAP . put ( INVISIBLE_MEMBER_FROM_INLINE , STRING1 , SHORT_NAMES_IN_TYPES , SHORT_NAMES_IN_TYPES ) ; \n + MAP . put ( INVISIBLE_MEMBER_FROM_INLINE , STRING2 , SHORT_NAMES_IN_TYPES , SHORT_NAMES_IN_TYPES ) ; \n MAP . put ( NOT_YET_SUPPORTED_IN_INLINE , STRING3 , ELEMENT_TEXT , SHORT_NAMES_IN_TYPES ) ; \n MAP . put ( DECLARATION_CANT_BE_INLINED , STRING4 ) ; \n MAP . put ( NOTHING_TO_INLINE , STRING5 , SHORT_NAMES_IN_TYPES ) ;", "msg_token": "Updated diagnostic message for INVISIBLE_MEMBER_FROM_INLINE"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class ViewServer implements Runnable { \n COMMENT", "msg_token": "Updating the Javadoc to provide an example for an InputMethodService"} {"diff": " public class SimpleExprGenerator extends Generator < ExprStmtToken > { \n protected ExprStmtToken processNewExpr ( Token next , BraceExprToken . Kind closedBrace , int braceOpened , \n ListIterator < Token > iterator , boolean first ) { \n List < Token > tmp = new ArrayList < Token > ( ) ; \n - if ( first ) \n + if ( first ) { \n + if ( next instanceof VariableExprToken ) { \n + analyzer . getScope ( ) . addVariable ( ( VariableExprToken ) next ) ; \n + if ( analyzer . getFunction ( ) != null ) { \n + analyzer . getFunction ( ) . setVarsExists ( true ) ; \n + analyzer . getFunction ( ) . variable ( ( VariableExprToken ) next ) . setUsed ( true ) ; \n + } \n + } \n + \n tmp . add ( next ) ; \n + } \n \n Token previous = next ; \n Token token = nextToken ( iterator ) ;", "msg_token": "Fix new operation with variable"} {"diff": " import NAMESPACE ; \n \n Period previousPeriod = playingPeriod ; \n boolean seenReadingPeriod = false ; \n - while ( previousPeriod != null ) { \n + while ( previousPeriod . nextPeriod != null ) { \n Period period = previousPeriod . nextPeriod ; \n index ++ ; \n if ( ! period . id . equals ( timeline . getPeriodId ( index ) ) ) {", "msg_token": "Fixed minor error that occurred when the manifest was updated"} {"diff": " public class WabProcessor { \n return null ; \n } \n \n + SINGLE \n + \n return null ; \n }", "msg_token": "don t push it"} {"diff": " public abstract class BaseGateway implements Gateway , Component , Runnable { \n COMMENT \n COMMENT \n public void run ( ) { \n - Log . debug ( LocaleUtils . getLocalizedString ( STRING0 , STRING1 ) ) ; \n + SINGLE \n \n for ( SubscriptionInfo si : rosterManager . getRegistrar ( ) . getAllGatewaySessions ( ) ) { \n if ( ! si . clientRegistered ) { \n public abstract class BaseGateway implements Gateway , Component , Runnable { \n SINGLE \n SINGLE \n \n - Log . debug ( LocaleUtils . getLocalizedString ( STRING2 , STRING1 ) ) ; \n + SINGLE \n } \n \n COMMENT \n public class PersistenceManager implements Serializable { \n db = new File ( STRING3 + this . gateway . getName ( ) . toLowerCase ( ) + STRING4 ) ; \n load ( gateway ) ; \n timer . scheduleAtFixedRate ( archiver , NUMBER0 , NUMBER0 , TimeUnit . SECONDS ) ; \n - \n } \n \n COMMENT", "msg_token": "Killed annoying maintenance message"} {"diff": " public class PhotoPickerFragment extends Fragment { \n @ override public void onDetach ( ) { \n super . onDetach ( ) ; \n \n + if ( directories == null ) { \n + return ; \n + } \n + \n for ( PhotoDirectory directory : directories ) { \n directory . getPhotoPaths ( ) . clear ( ) ; \n directory . getPhotos ( ) . clear ( ) ;", "msg_token": "Handle null directories in onDetach"} {"diff": " public class PythonLanguageLevelPusher implements FilePropertyPusher < LanguageLev \n return true ; \n } \n \n + @ notnull \n public LanguageLevel getDefaultValue ( ) { \n return LanguageLevel . getDefault ( ) ; \n } \n public class PythonLanguageLevelPusher implements FilePropertyPusher < LanguageLev \n \n private static final FileAttribute PERSISTENCE = new FileAttribute ( STRING0 , NUMBER0 , true ) ; \n \n - public void persistAttribute ( VirtualFile fileOrDir , LanguageLevel level ) throws IOException { \n + public void persistAttribute ( VirtualFile fileOrDir , @ notnull LanguageLevel level ) throws IOException { \n final DataInputStream iStream = PERSISTENCE . readAttribute ( fileOrDir ) ; \n if ( iStream != null ) { \n try {", "msg_token": "pushing faster NotNulls"} {"diff": " public class ExtractGooglecodeAuthorization { \n if ( debug ) { \n System . out . println ( STRING0 + url . toString ( ) ) ; \n System . out . println ( STRING1 + data . toString ( ) ) ; \n - System . our . ptintln ( STRING2 ) ; \n + System . out . ptintln ( STRING2 ) ; \n } \n \n SINGLE \n public class ExtractGooglecodeAuthorization { \n return conn ; \n } \n \n - private static StringBuilder readAnswer ( InputStream input ) \n + private StringBuilder readAnswer ( InputStream input ) \n throws IOException , UnsupportedEncodingException { \n StringBuilder responseBody = new StringBuilder ( ) ; \n InputStream i = input ;", "msg_token": "Fixed compile errors"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SystemHealthMonitor extends ApplicationComponent . Adapter { \n String productName = ApplicationNamesInfo . getInstance ( ) . getFullProductName ( ) ; \n String message = IdeBundle . message ( STRING0 , productName ) ; \n if ( fileUsableSpace < NUMBER0 * NUMBER1 ) { \n - LOG . warn ( message ) ; \n + LOG . warn ( message + STRING1 + fileUsableSpace + STRING2 ) ; \n Messages . showErrorDialog ( message , STRING3 ) ; \n reported . compareAndSet ( true , false ) ; \n restart ( timeout ) ;", "msg_token": "dump free space in warning"} {"diff": " public class Cursors \n { \n AdvanceResult result = cursor . advanceNextValue ( ) ; \n if ( result == MUST_YIELD ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 ) ; \n } \n return result != FINISHED ; \n } \n public class Cursors \n { \n AdvanceResult result = cursor . advanceToPosition ( position ) ; \n if ( result == MUST_YIELD ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 ) ; \n } \n return result != FINISHED ; \n }", "msg_token": "Improve error message"} {"diff": " public class HTTPSServer extends Server { \n System . out . println ( STRING0 ) ; \n System . out . println ( STRING1 ) ; \n System . out . println ( STRING2 ) ; \n + System . out . println ( STRING3 ) ; \n + System . out . println ( STRING4 ) ; \n printCommonOptions ( ) ; \n System . exit ( NUMBER0 ) ; \n }", "msg_token": "add information about request limits to the usage text"} {"diff": " public class UpdateTask extends AsyncTask < Void , Integer , Integer > { \n \n publishProgress ( mShows . length , mShows . length + NUMBER0 ) ; \n \n - SINGLE \n - TheTVDB . onRenewFTSTable ( mShowsActivity ) ; \n + SINGLE \n + if ( mShows . length != NUMBER1 ) { \n + TheTVDB . onRenewFTSTable ( mShowsActivity ) ; \n + } \n \n publishProgress ( mShows . length + NUMBER0 , mShows . length + NUMBER0 ) ;", "msg_token": "Only update the FTS table if we actually updated shows"} {"diff": " public class FileNameTranslationHelper { \n return ctx . getString ( R . string . index_item_world_basemap ) ; \n } else if ( basename . equals ( STRING0 ) ) { \n return ctx . getString ( R . string . index_item_world_bitcoin_payments ) ; \n - } else if ( basename . equals ( STRING1 ) ) { \n + } else if ( basename . equals ( STRING2 ) ) { \n return ctx . getString ( R . string . index_item_world_seamarks ) ; \n } \n return null ;", "msg_token": "Change seamarks map name"} {"diff": " public class TestCollectionDeserialization \n } \n \n SINGLE \n - SINGLE \n @ jsondeserialize ( using = SomeObjectDeserializer . class ) \n static class SomeObject { }", "msg_token": "Remove extraneous comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public abstract class LookupActionHandler extends EditorActionHandler { \n protected abstract void executeInLookup ( LookupImpl lookup , DataContext context , @ nullable Caret caret ) ; \n \n @ override \n - public boolean isEnabled ( Editor editor , DataContext dataContext ) { \n + public boolean isEnabledForCaret ( @ notnull Editor editor , @ notnull Caret caret , DataContext dataContext ) { \n LookupImpl lookup = ( LookupImpl ) LookupManager . getActiveLookup ( editor ) ; \n - return lookup != null || myOriginalHandler . isEnabled ( editor , dataContext ) ; \n + return lookup != null || myOriginalHandler . isEnabled ( editor , caret , dataContext ) ; \n } \n \n private static void executeUpOrDown ( LookupImpl lookup , boolean up ) {", "msg_token": "remove usages of deprecated method in LookupActionHandler"} {"diff": " public final class SimpleCommandMap implements CommandMap { \n boolean isRegisteredCommand = ( target != null ) ; \n if ( isRegisteredCommand ) { \n target . execute ( sender , sentCommandLabel , args ) ; \n - return true ; \n - } \n - target = knownCommands . get ( sentCommandLabel . substring ( NUMBER0 ) ) ; \n - isRegisteredCommand = ( target != null ) ; \n - if ( isRegisteredCommand ) { \n - target . execute ( sender , sentCommandLabel , args ) ; \n } \n return isRegisteredCommand ; \n }", "msg_token": "Revert fallback code for command lookup"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix CS error"} {"diff": " import NAMESPACE ; \n @ bugpattern ( name = STRING0 , \n summary = STRING1 \n + STRING2 \n - + STRING3 , \n + + STRING4 \n + + STRING5 \n + + STRING6 , \n category = JDK , severity = WARNING , maturity = MATURE ) \n public class TypeParameterUnusedInFormals extends BugChecker implements MethodTreeMatcher {", "msg_token": "Improve TypeParameterUnusedInFormals docs"} {"diff": " public class Meteor { \n COMMENT \n public void destroy ( ) { \n isDestroyed . set ( true ) ; \n - cache . remove ( this ) ; \n + cache . remove ( r ) ; \n } \n \n private boolean destroyed ( ) {", "msg_token": "Fix possible memory leaks"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed NotNull import"} {"diff": " public class InstrumentClass extends ClassVisitor { \n super . visitAnnotation ( ALREADY_INSTRUMENTED_NAME , true ) ; \n \n for ( MethodNode mn : methods ) { \n - if ( requiresInstrumentation ) \n - System . out . println ( STRING0 + className + STRING1 + mn . name + mn . desc ) ; \n + SINGLE \n + SINGLE \n \n MethodVisitor outMV = makeOutMV ( mn ) ; \n try {", "msg_token": "Removed transformation debug println"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n + STRING0 + finished + STRING1 + gotFirstWindow \n + STRING2 + eventDispatching + STRING3 + timeToSwitch \n + STRING4 + wasFrozen + STRING5 + focusPaused \n - + STRING6 + mCurrentFocus + STRING7 ; \n + + STRING6 + curFocus + STRING7 ; \n } \n } ; \n private DispatchState mDispatchState = null ;", "msg_token": "Corrected debug message in WindowManager"} {"diff": " public abstract class AbstractTestDistributedQueries \n SINGLE \n assertUpdate ( \n STRING0 + \n - STRING1 + \n - STRING2 + \n - STRING3 , \n + STRING1 + \n + STRING2 + \n + STRING3 , \n STRING4 ) ; \n \n assertUpdate ( STRING5 ) ; \n public abstract class AbstractTestDistributedQueries \n MaterializedResult result = computeActual ( STRING6 + tableName ) ; \n List < String > expected = ImmutableList . copyOf ( columnNames ) ; \n List < String > actual = result . getMaterializedRows ( ) . stream ( ) \n - . map ( row - > ( String ) row . getField ( NUMBER0 ) ) \n - . collect ( toImmutableList ( ) ) ; \n + . map ( row - > ( String ) row . getField ( NUMBER0 ) ) \n + . collect ( toImmutableList ( ) ) ; \n assertEquals ( actual , expected ) ; \n } \n }", "msg_token": "Fix formatting in AbstractTestDistributedQueries"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix method typo in PropertySources"} {"diff": " public class ValuePattern { \n return STRING0 + contains ; \n } else if ( matches != null ) { \n return STRING1 + matches ; \n - } else { \n + } else if ( doesNotMatch != null ) { \n return STRING2 + doesNotMatch ; \n - } \n + } else { \n + return STRING3 ; \n + } \n } \n \n @ override", "msg_token": "Fixed toString in ValuePattern to accomodate absent state"} {"diff": " public final class BlockWorkerClient extends AbstractClient { \n mClient . sessionHeartbeat ( mSessionId , mClientMetrics . getHeartbeatData ( ) ) ; \n } catch ( Exception e ) { \n LOG . error ( e . getMessage ( ) , e ) ; \n + SINGLE \n + mProtocol . getTransport ( ) . close ( ) ; \n return ; \n } \n mConnected = true ;", "msg_token": "Close the transport"} {"diff": " public class Java7PluginClassLoaderTest { \n @ override \n public void run ( ) { \n for ( int i = NUMBER0 ; i < count ; i ++ ) { \n - System . out . println ( this + STRING0 + i ) ; \n synchronized ( parent ) { \n try { \n child . loadClass ( STRING1 ) ; \n public class Java7PluginClassLoaderTest { \n @ override \n public void run ( ) { \n for ( int i = NUMBER0 ; i < count ; i ++ ) { \n - System . out . println ( this + STRING0 + i ) ; \n synchronized ( child ) { \n try { \n child . loadClass ( STRING1 ) ;", "msg_token": "removed sysout code causing Travis build termination"} {"diff": " public class BackupConfig { \n STRING0 + groupToBackup + \n STRING1 + backupType + \n STRING2 + debug + \n + STRING3 + typesToBackup + \n STRING4 ; \n } \n }", "msg_token": "Adding types to backup to debug log"} {"diff": " import NAMESPACE ; \n \n public class RandomAccessReader extends RandomAccessFile implements FileDataInput \n { \n - public static final long MAX_BYTES_IN_PAGE_CACHE = ( long ) Math . pow ( NUMBER0 , NUMBER1 ) ; SINGLE \n + public static final long CACHE_FLUSH_INTERVAL_IN_BYTES = ( long ) Math . pow ( NUMBER0 , NUMBER1 ) ; SINGLE \n \n SINGLE \n public static final int DEFAULT_BUFFER_SIZE = NUMBER2 ; \n public class RandomAccessReader extends RandomAccessFile implements FileDataInpu \n \n bytesSinceCacheFlush += read ; \n \n - if ( skipIOCache && bytesSinceCacheFlush >= MAX_BYTES_IN_PAGE_CACHE ) \n + if ( skipIOCache && bytesSinceCacheFlush >= CACHE_FLUSH_INTERVAL_IN_BYTES ) \n { \n SINGLE \n SINGLE \n public class SequentialWriter extends OutputStream \n SINGLE \n bytesSinceCacheFlush += validBufferBytes ; \n \n - if ( bytesSinceCacheFlush >= RandomAccessReader . MAX_BYTES_IN_PAGE_CACHE ) \n + if ( bytesSinceCacheFlush >= RandomAccessReader . CACHE_FLUSH_INTERVAL_IN_BYTES ) \n { \n CLibrary . trySkipCache ( this . fd , ioCacheStartOffset , NUMBER3 ) ; \n ioCacheStartOffset = bufferOffset ;", "msg_token": "rename RandomAccessReader MAX_BYTES_IN_PAGE_CACHE"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class SnakeYAMLDataFormat extends ServiceSupport implements DataFormat , DataFormatName { \n + public class SnakeYAMLDataFormat extends ServiceSupport implements DataFormat , DataFormatName { \n private final ThreadLocal < WeakReference < Yaml > > yamlCache ; \n private BaseConstructor constructor ; \n private Representer representer ; \n public final class SnakeYAMLDataFormat extends ServiceSupport implements DataFor \n this . allowAnyType = false ; \n \n if ( type != null ) { \n - setUnmarshalType ( type ) ; \n + this . unmarshalType = type ; \n + this . typeFilters = new CopyOnWriteArrayList < > ( ) ; \n + this . typeFilters . add ( TypeFilters . types ( type ) ) ; \n } \n }", "msg_token": "add an option to filter classes the yaml parser can construct"} {"diff": " public class CompoundComparator < T > implements Comparator < T > , Serializable { \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( { STRING0 , STRING1 } ) \n + @ suppresswarnings ( STRING0 ) \n public CompoundComparator ( Comparator . . . comparators ) { \n Assert . notNull ( comparators , STRING2 ) ; \n this . comparators = new ArrayList < InvertibleComparator > ( comparators . length ) ;", "msg_token": "Remove unnecessary SupressWarnings"} {"diff": " public class AbstractNewProjectStep extends DefaultActionGroup implements DumbAw \n public AnAction [ ] getActions ( @ notnull DirectoryProjectGenerator [ ] generators , @ notnull NullableConsumer < ProjectSettingsStepBase > callback ) { \n final List < AnAction > actions = ContainerUtil . newArrayList ( ) ; \n for ( DirectoryProjectGenerator projectGenerator : generators ) { \n - actions . addAll ( ContainerUtil . list ( getActions ( projectGenerator , callback ) ) ) ; \n + try { \n + actions . addAll ( ContainerUtil . list ( getActions ( projectGenerator , callback ) ) ) ; \n + } catch ( Throwable throwable ) { \n + LOG . error ( STRING0 + projectGenerator , throwable ) ; \n + } \n } \n return actions . toArray ( new AnAction [ actions . size ( ) ] ) ; \n }", "msg_token": "prevent problems with new project due to broken plugins"} {"diff": " public final class ActivityThread { \n Os . fchmod ( fd , permissions ) ; \n Os . fchown ( fd , appInfo . uid , appInfo . uid ) ; \n } catch ( ErrnoException e ) { \n - Log . v ( TAG , STRING0 + profileFile , e ) ; \n + Log . v ( TAG , STRING0 \n + + profileFile + STRING1 + e . getMessage ( ) ) ; \n try { \n Os . unlink ( profileFile . getAbsolutePath ( ) ) ; \n } catch ( ErrnoException unlinkErr ) { \n - Log . v ( TAG , STRING2 + profileFile , unlinkErr ) ; \n + if ( unlinkErr . errno != OsConstants . ENOENT ) { \n + Log . v ( TAG , STRING2 \n + + profileFile + STRING1 + unlinkErr . getMessage ( ) ) ; \n + } \n } \n return ; \n } finally {", "msg_token": "Simplify the error logs for profiles we can t open"} {"diff": " public class Main \n } \n catch ( NoClassDefFoundError e ) \n { \n + if ( _debug ) \n + System . err . println ( e ) ; \n } \n catch ( ClassNotFoundException e ) \n - { \n + { \n + if ( _debug ) \n + System . err . println ( e ) ; \n } \n ClassLoader loader = _classpath . getClassLoader ( ) ; \n try \n public class Main \n } \n catch ( NoClassDefFoundError e ) \n { \n + if ( _debug ) \n + System . err . println ( e ) ; \n } \n catch ( ClassNotFoundException e ) \n { \n + if ( _debug ) \n + System . err . println ( e ) ; \n } \n return false ; \n }", "msg_token": "Add debug for checking class availability"} {"diff": " public class DataStructures { \n string = builder . toString ( ) ; \n if ( debug ) System . out . println ( string ) ; \n \n - unsorted = new Integer [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 } ; \n - \n boolean passed = true ; \n \n passed = testHeap ( ) ;", "msg_token": "Changed the test code"} {"diff": " public class ShardedJedis extends BinaryShardedJedis implements JedisCommands , \n Jedis j = getShard ( arg ) ; \n return j . blpop ( arg ) ; \n } \n - \n + public List < String > blpop ( int timeout , String key ) { \n + Jedis j = getShard ( key ) ; \n + return j . blpop ( timeout , key ) ; \n + } \n public List < String > brpop ( String arg ) { \n Jedis j = getShard ( arg ) ; \n return j . brpop ( arg ) ; \n } \n - \n + public List < String > brpop ( int timeout , String key ) { \n + Jedis j = getShard ( key ) ; \n + return j . brpop ( timeout , key ) ; \n + } \n public Long decrBy ( String key , long integer ) { \n Jedis j = getShard ( key ) ; \n return j . decrBy ( key , integer ) ;", "msg_token": "add timeout parameter to blpop brpop"} {"diff": " public class DynamicListView extends ObservableListView { \n tag . onClick ( ) ; \n } \n touchEventsCancelled ( ) ; \n - return true ; \n + return super . onTouchEvent ( event ) ; \n } \n \n switch ( event . getAction ( ) & MotionEvent . ACTION_MASK ) {", "msg_token": "Fix tap on list item map settings map config waypoints"} {"diff": " public abstract class AbstractTestQueries \n } \n \n @ test \n + public void testCountBoolean ( ) \n + throws Exception \n + { \n + assertQuery ( STRING0 ) ; \n + } \n + \n + @ test \n public void testJoinWithMultiFieldGroupBy ( ) \n throws Exception \n {", "msg_token": "Add test for count with boolean argument"} {"diff": " public class SuspendManagerImpl implements SuspendManager { \n LOG . debug ( STRING0 + suspends ) ; \n } \n DebuggerManagerThreadImpl . assertIsManagerThread ( ) ; \n - final boolean removed = myEventContexts . remove ( suspendContext ) ; \n - if ( ! removed ) { \n - LOG . assertTrue ( false , suspendContext ) ; \n - } \n + myEventContexts . remove ( suspendContext ) ; \n myPausedContexts . remove ( suspendContext ) ; \n }", "msg_token": "remove deprecated assertion"} {"diff": " final class Common { \n ( ( Worker ) message . obj ) . sendUpdate ( ) ; \n break ; \n case MSG_FIRST_ADDED : \n - if ( ! hasMessages ( MSG_LAST_REMOVED , message . obj ) ) { \n - ( ( Worker ) message . obj ) . callFirstUpdatableAdded ( ) ; \n - } \n + ( ( Worker ) message . obj ) . callFirstUpdatableAdded ( ) ; \n break ; \n case MSG_LAST_REMOVED : \n - if ( ! hasMessages ( MSG_FIRST_ADDED , message . obj ) ) { \n - ( ( Worker ) message . obj ) . callLastUpdatableRemoved ( ) ; \n - } \n + ( ( Worker ) message . obj ) . callLastUpdatableRemoved ( ) ; \n break ; \n case MSG_CALL_UPDATABLE : \n ( ( Updatable ) message . obj ) . update ( ) ;", "msg_token": "Revert Changed WorkerHandler to make Observables survive rotation"} {"diff": " public final class TemplateAstMatcher { \n final Map < String , JSType > paramTypes = new HashMap < > ( ) ; \n \n SINGLE \n + String fnName = fn . getFirstChild ( ) . getString ( ) ; \n fn . getFirstChild ( ) . setString ( STRING0 ) ; \n \n SINGLE \n Node templateParametersNode = fn . getFirstChild ( ) . getNext ( ) ; \n JSDocInfo info = NodeUtil . getBestJSDocInfo ( fn ) ; \n + if ( templateParametersNode . hasChildren ( ) ) { \n + Preconditions . checkNotNull ( info , \n + STRING1 , fnName ) ; \n + } \n for ( Node paramNode : templateParametersNode . children ( ) ) { \n String name = paramNode . getString ( ) ; \n JSTypeExpression expression = info . getParameterType ( name ) ; \n + Preconditions . checkNotNull ( expression , \n + STRING2 , \n + name , fnName ) ; \n JSType type = expression . evaluate ( null , compiler . getTypeRegistry ( ) ) ; \n Preconditions . checkNotNull ( type ) ; \n params . add ( name ) ;", "msg_token": "Add preconditions for AST templates"} {"diff": " public class TezJobMonitor { \n break ; \n case INITING : \n console . printInfo ( STRING0 ) ; \n + startTime = System . currentTimeMillis ( ) ; \n break ; \n case RUNNING : \n if ( ! running ) {", "msg_token": "Tez in place progress UI can show wrong estimated time for sub second queries Prasanth J reviewed by Gopal V"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JdbcSettings { \n \n private void checkRecommendedParameter ( String url , String val ) { \n if ( ! url . contains ( val ) ) { \n - Loggers . get ( getClass ( ) ) . warn ( STRING0 , val ) ; \n + LoggerFactory . getLogger ( getClass ( ) ) . warn ( STRING0 , val ) ; \n } \n } \n }", "msg_token": "Fix logging of warnings when JDBC URL is not correct"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class QueryStringDecoderTest {", "msg_token": "Updated the author tag"} {"diff": " public final class TvContract { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a comment to remove padding around the channel logo image"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n public abstract class ServiceBase extends Service { \n - COMMENT \n - COMMENT \n - COMMENT \n - private PowerManager . WakeLock mWakeLock ; \n - COMMENT \n - COMMENT \n - COMMENT \n - private WifiManager . WifiLock mWifiLock ; \n + @ nullable private PowerManager . WakeLock mWakeLock ; \n + @ nullable private WifiManager . WifiLock mWifiLock ; \n \n private AppLog appLog ; \n - protected Notification notification ; \n + @ nullable protected Notification notification ; \n \n @ override \n public IBinder onBind ( Intent arg0 ) {", "msg_token": "Added nullable annotation"} {"diff": " public class Http2UpgradeHandler implements HttpHandler { \n if ( settings != null ) { \n SINGLE \n final ByteBuffer settingsFrame = FlexBase64 . decodeURL ( settings ) ; \n + exchange . getResponseHeaders ( ) . put ( Headers . UPGRADE , upgrade ) ; \n exchange . upgradeChannel ( new HttpUpgradeListener ( ) { \n @ override \n public void handleUpgrade ( StreamConnection streamConnection , HttpServerExchange exchange ) {", "msg_token": "Fix issue with HTTP upgrade handler"} {"diff": " import NAMESPACE ; \n @ implements ( Resources . class ) \n public class ShadowResources { \n private float density = FLOAT0 ; \n - \n + Configuration configuration = null ; \n + \n static Resources bind ( Resources resources , ResourceLoader resourceLoader ) { \n ShadowResources shadowResources = shadowOf ( resources ) ; \n if ( shadowResources . resourceLoader != null ) throw new RuntimeException ( STRING0 ) ; \n public class ShadowResources { \n public int getColor ( int id ) throws Resources . NotFoundException { \n return resourceLoader . getColorValue ( id ) ; \n } \n - \n + \n @ implementation \n public Configuration getConfiguration ( ) { \n - Configuration configuration = new Configuration ( ) ; \n - configuration . setToDefaults ( ) ; \n + if ( configuration == null ) { \n + Configuration configuration = new Configuration ( ) ; \n + configuration . setToDefaults ( ) ; \n + } \n if ( configuration . locale == null ) { \n configuration . locale = Locale . getDefault ( ) ; \n }", "msg_token": "prevent getConfiguration from always creating a new Configuration"} {"diff": " public abstract class AbstractJDOQLQuery < Q extends AbstractJDOQLQuery < Q > > extend \n } \n } \n \n + @ nullable \n private Object execute ( Query query ) { \n Object rv ; \n if ( ! orderedConstants . isEmpty ( ) ) {", "msg_token": "added Nullable annotation"} {"diff": " public final class QSTileHost implements QSTile . Host , Tunable { \n \n mServices = new TileServices ( this , mLooper ) ; \n \n - mAutoTiles = new AutoTileManager ( context , this ) ; \n TunerService . get ( mContext ) . addTunable ( this , TILES_SETTING ) ; \n + SINGLE \n + mAutoTiles = new AutoTileManager ( context , this ) ; \n } \n \n public void setHeaderView ( View view ) {", "msg_token": "Initialize mTiles before constructing AutoTileManager"} {"diff": " public final class Monitors { \n COMMENT \n COMMENT \n COMMENT \n - < < < < < < < HEAD \n COMMENT \n - == == == = \n - COMMENT \n - > > > > > > > Provide Monitors . unregisterObject methods \n COMMENT \n public static void unregisterObject ( Object obj ) { \n unregisterObject ( null , obj ) ; \n public final class Monitors { \n COMMENT \n COMMENT \n COMMENT \n - < < < < < < < HEAD \n COMMENT \n - == == == = \n - COMMENT \n - > > > > > > > Provide Monitors . unregisterObject methods \n COMMENT \n public static void unregisterObject ( String id , Object obj ) { \n DefaultMonitorRegistry . getInstance ( ) . unregister ( newObjectMonitor ( id , obj ) ) ;", "msg_token": "fix Monitors conflicts"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n - public class CycleConfigEntity implements Serializable , PersistentObject { \n + public class CycleConfig implements Serializable , PersistentObject { \n \n private static final long serialVersionUID = - NUMBER0 ; \n \n public class CycleConfigEntity implements Serializable , PersistentObject { \n protected int revision ; \n \n SINGLE \n - public CycleConfigEntity ( ) { \n + public CycleConfig ( ) { \n } \n \n SINGLE", "msg_token": "Rename CycleConfigEntity to CycleConfig and moved this class from package org activiti cycle impl db to org activiti cycle"} {"diff": " public class Installer { \n \n if ( success . get ( ) ) SwingUtilities . invokeLater ( new Runnable ( ) { \n @ override public void run ( ) { \n - JOptionPane . showMessageDialog ( appWindow , STRING0 , STRING1 , JOptionPane . INFORMATION_MESSAGE ) ; \n + JOptionPane . showMessageDialog ( appWindow , STRING2 , STRING1 , JOptionPane . INFORMATION_MESSAGE ) ; \n appWindow . setVisible ( false ) ; \n System . exit ( NUMBER0 ) ; \n }", "msg_token": "Added a note to restart eclipse after some confusing as reported on the googlegroups"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class XMLPanelEditor extends ContentPanelEditor { \n { \n editor = new XMLEditor ( ) ; \n try { \n - editor . init ( subSite , null ) ; \n + editor . init ( subSite , StringEditorInput . EMPTY_INPUT ) ; \n } catch ( PartInitException e ) { \n log . error ( e ) ; \n return null ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n public class StringEditorInput implements IEditorInput { \n \n + public static final IEditorInput EMPTY_INPUT = new StringEditorInput ( STRING0 , STRING1 , true , ContentUtils . DEFAULT_CHARSET ) ; \n private String name ; \n private StringBuilder buffer ; \n private boolean readOnly ;", "msg_token": "XML editors loading fix"} {"diff": " public class ResolverActivity extends Activity { \n } else { \n try { \n AppGlobals . getPackageManager ( ) . setLastChosenActivity ( intent , \n - intent . resolveTypeIfNeeded ( getContentResolver ( ) ) , \n + intent . resolveType ( getContentResolver ( ) ) , \n PackageManager . MATCH_DEFAULT_ONLY , \n filter , bestMatch , intent . getComponent ( ) ) ; \n } catch ( RemoteException re ) {", "msg_token": "ResolverActivity sometimes cannot update the last chosen activity"} {"diff": " public class OutputService { \n } \n \n public OutputTypesResponse available ( ) throws APIException , IOException { \n - return api . path ( routes . OutputResource ( ) . available ( null ) , OutputTypesResponse . class ) . execute ( ) ; \n + return api . path ( routes . OutputResource ( ) . available ( ) , OutputTypesResponse . class ) . execute ( ) ; \n } \n }", "msg_token": "Removing obsolete parameter"} {"diff": " public class RegExpBoundaryImpl extends RegExpElementImpl implements RegExpBound \n \n @ notnull \n public Type getType ( ) { \n - final IElementType type = getNode ( ) . getElementType ( ) ; \n + final ASTNode child = getNode ( ) . getFirstChildNode ( ) ; \n + assert child != null ; \n + final IElementType type = child . getElementType ( ) ; \n if ( type == RegExpTT . CARET ) { \n return Type . LINE_START ; \n } else if ( type == RegExpTT . DOLLAR ) { \n return Type . LINE_END ; \n - } else { \n + } else if ( type == RegExpTT . BOUNDARY ) { \n final String s = getUnescapedText ( ) ; \n if ( s . equals ( STRING0 ) ) { \n return Type . WORD ;", "msg_token": "really fix boundaries"} {"diff": " public class BatchlogManager implements BatchlogManagerMBean \n \n ColumnFamily cf = ArrayBackedSortedColumns . factory . create ( CFMetaData . BatchlogCf ) ; \n cf . addColumn ( new Column ( columnName ( STRING0 ) , ByteBufferUtil . EMPTY_BYTE_BUFFER , timestamp ) ) ; \n - cf . addColumn ( new Column ( columnName ( STRING1 ) , writtenAt , timestamp ) ) ; \n cf . addColumn ( new Column ( columnName ( STRING2 ) , data , timestamp ) ) ; \n + cf . addColumn ( new Column ( columnName ( STRING1 ) , writtenAt , timestamp ) ) ; \n \n return new RowMutation ( Table . SYSTEM_KS , UUIDType . instance . decompose ( uuid ) , cf ) ; \n }", "msg_token": "Fix addColumn order in BM getBatchlogMutationFor"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n public interface CssRenamingMap { \n + public static enum Style { \n + BY_WHOLE , \n + BY_PART , \n + } \n + \n String get ( String value ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n }", "msg_token": "Create a renaming map style to match setRenamingMap in base js"} {"diff": " public class FileFilter { \n private static final String LOGTAG = STRING0 ; \n \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n public static boolean ignoreTest ( String file ) { \n for ( int i = NUMBER0 ; i < ignoreTestList . length ; i ++ ) { \n if ( file . endsWith ( ignoreTestList [ i ] ) ) { \n public class FileFilter { \n \n static final String [ ] ignoreTestList = { \n STRING1 , SINGLE \n + STRING2 , SINGLE \n + STRING3 , SINGLE \n STRING4 SINGLE \n } ;", "msg_token": "Puts two regex layout tests back on the DumpRenderTree skipped list"} {"diff": " public class PDFExporter implements GraphRenderer , VectorialFileExporter , LongTa \n try { \n BaseFont bf = genBaseFont ( font ) ; \n float ascent = bf . getAscentPoint ( label . getValue ( ) , font . getSize ( ) ) ; \n + float descent = bf . getDescentPoint ( label . getValue ( ) , font . getSize ( ) ) ; \n + float textHeight = ( ascent - descent ) / FLOAT0 ; \n \n cb . beginText ( ) ; \n cb . setFontAndSize ( bf , font . getSize ( ) ) ; \n - cb . showTextAligned ( PdfContentByte . ALIGN_CENTER , label . getValue ( ) , p . getX ( ) - ascent / NUMBER0 , - p . getY ( ) , NUMBER1 ) ; \n + cb . showTextAligned ( PdfContentByte . ALIGN_CENTER , label . getValue ( ) , p . getX ( ) , - p . getY ( ) - textHeight , NUMBER1 ) ; \n cb . endText ( ) ; \n } catch ( Exception ex ) { \n Exceptions . printStackTrace ( ex ) ;", "msg_token": "Fix text alignment in PDF"} {"diff": " public class HandlerRegistration < T > implements MessageConsumer < T > , Handler < Messa \n } else { \n callCompletionHandlerAsync ( completionHandler ) ; \n } \n - registered = false ; \n } \n \n private void callCompletionHandlerAsync ( Handler < AsyncResult < Void > > completionHandler ) {", "msg_token": "Minor remove useless statement"} {"diff": " public class QRCodeReader implements Reader { \n SINGLE \n SINGLE \n right = left + ( bottom - top ) ; \n + if ( right >= image . getWidth ( ) ) { \n + SINGLE \n + throw NotFoundException . getNotFoundInstance ( ) ; \n + } \n } \n \n int matrixWidth = Math . round ( ( right - left + NUMBER0 ) / moduleSize ) ;", "msg_token": "avoid AIOOBE in pure barcode mode for obviously wrong case"} {"diff": " \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix copyright header"} {"diff": " public class SpongeMod extends DummyModContainer implements PluginContainer { \n SINGLE \n SINGLE \n public SpongeMod ( ) throws Exception { \n - super ( SpongeMod . createMetadata ( ImmutableMap . < String , Object > of ( STRING0 , SpongeImpl . ECOSYSTEM_ID , STRING1 , SpongeImpl . ECOSYSTEM_NAME , \n - STRING2 , STRING3 ) ) ) ; \n + super ( SpongeMod . createMetadata ( ImmutableMap . < String , Object > of ( STRING0 , SpongeImpl . ECOSYSTEM_ID , STRING1 , STRING4 , STRING2 , STRING3 ) ) ) ; \n SINGLE \n ModContainerFactory . instance ( ) . registerContainerType ( Type . getType ( Plugin . class ) , SpongeModPluginContainer . class ) ;", "msg_token": "Change default metadata name to SpongeForge"} {"diff": " public class PrintCellModel { \n } \n \n private ReadOnlyList < ShortEdge > getUpEdges ( int rowIndex ) { \n - PrePrintCell prevPre = new PrePrintCell ( layoutModel , rowIndex , selectController ) ; \n + PrePrintCell prevPre = new PrePrintCell ( layoutModel , rowIndex - NUMBER0 , selectController ) ; \n return prevPre . downShortEdges ( ) ; \n }", "msg_token": "fix up edges"} {"diff": " public class NiftyDialogBuilder extends Dialog implements DialogInterface { \n instance = null ; \n } \n \n - if ( instance == null && ! ( ( Activity ) context ) . isFinishing ( ) ) { \n + if ( instance == null || ( ( Activity ) context ) . isFinishing ( ) ) { \n synchronized ( NiftyDialogBuilder . class ) { \n if ( instance == null ) { \n instance = new NiftyDialogBuilder ( context , R . style . dialog_untran ) ;", "msg_token": "fix the back bug"} {"diff": " public class MysqlPersistenceService implements QueryablePersistenceService , Man \n \n if ( item instanceof NumberItem ) \n state = new DecimalType ( rs . getDouble ( NUMBER0 ) ) ; \n + else if ( item instanceof ColorItem ) \n + state = new HSBType ( rs . getString ( NUMBER0 ) ) ; \n else if ( item instanceof DimmerItem ) \n state = new PercentType ( rs . getInt ( NUMBER0 ) ) ; \n else if ( item instanceof SwitchItem ) \n public class MysqlPersistenceService implements QueryablePersistenceService , Man \n state = OpenClosedType . valueOf ( rs . getString ( NUMBER0 ) ) ; \n else if ( item instanceof RollershutterItem ) \n state = new PercentType ( rs . getInt ( NUMBER0 ) ) ; \n - else if ( item instanceof ColorItem ) \n - state = new HSBType ( rs . getString ( NUMBER0 ) ) ; \n else if ( item instanceof DateTimeItem ) { \n Calendar calendar = Calendar . getInstance ( ) ; \n calendar . setTimeInMillis ( rs . getTimestamp ( NUMBER0 ) . getTime ( ) ) ;", "msg_token": "Fixed ColorItem persistence"} {"diff": " public class AutoScrollViewPagerSingleDemo extends BaseActivity { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n + SINGLE \n } \n \n @ override", "msg_token": "Add AutoScrollViewPager setting"} {"diff": " public class Calendars { \n \n private static final String ID_COLUMN_NAME = STRING0 ; \n private static final boolean USE_ICS_NAMES = AndroidUtilities . getSdkVersion ( ) >= NUMBER0 ; \n - private static final String ICS_CALENDAR_PREFIX = STRING1 ; \n - private static final String DISPLAY_COLUMN_NAME = ( USE_ICS_NAMES ? ICS_CALENDAR_PREFIX : STRING2 ) + STRING3 ; \n - private static final String ACCES_LEVEL_COLUMN_NAME = ( USE_ICS_NAMES ? ICS_CALENDAR_PREFIX : STRING2 ) + STRING4 ; \n + private static final String DISPLAY_COLUMN_NAME = ( USE_ICS_NAMES ? CalendarContract . Calendars . CALENDAR_DISPLAY_NAME : STRING3 ) ; \n + private static final String ACCES_LEVEL_COLUMN_NAME = ( USE_ICS_NAMES ? CalendarContract . Calendars . CALENDAR_ACCESS_LEVEL : STRING4 ) ; \n \n \n private static final String [ ] CALENDARS_PROJECTION = new String [ ] { \n - ID_COLUMN_NAME , SINGLE \n - DISPLAY_COLUMN_NAME SINGLE \n + ID_COLUMN_NAME , \n + DISPLAY_COLUMN_NAME , \n } ; \n \n SINGLE", "msg_token": "Cleaned up a little ics calendar code still not working"} {"diff": " public abstract class AsynchronousProcessor implements AsyncSupport < AtmosphereRe \n \n SINGLE \n if ( isServlet30 && ( ! req . isAsyncSupported ( ) && ! Utils . closeMessage ( req ) ) ) { \n - logger . error ( STRING0 , req . getRequestURL ( ) . toString ( ) ) ; \n + logger . error ( STRING1 , req . getRequestURL ( ) . toString ( ) ) ; \n res . setStatus ( NUMBER0 ) ; \n - res . addHeader ( X_ATMOSPHERE_ERROR , STRING2 ) ; \n + res . addHeader ( X_ATMOSPHERE_ERROR , STRING3 ) ; \n res . flushBuffer ( ) ; \n return new Action ( ) ; \n }", "msg_token": "Improve error msg"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + @ ignore ( STRING0 ) \n public class AppleTestIntegrationTest { \n \n @ rule", "msg_token": "Disable AppleTestIntegrationTest due to CI issues"} {"diff": " public class Uploader extends FileActivity \n } ) ; \n return builder . create ( ) ; \n case DIALOG_NO_STREAM : \n - builder . setIcon ( android . R . drawable . ic_dialog_alert ) ; \n + builder . setIcon ( R . drawable . ic_warning ) ; \n builder . setTitle ( R . string . uploader_wrn_no_content_title ) ; \n builder . setMessage ( R . string . uploader_wrn_no_content_text ) ; \n builder . setCancelable ( false ) ;", "msg_token": "fixed uploader warning icon in AlertDialog"} {"diff": " public class ProjectJdkForModuleStep extends ModuleWizardStep { \n public void consume ( final Sdk jdk ) { \n successfullyAdded [ NUMBER0 ] = jdkConfig . addJdkNode ( jdk , false ) ; \n myJdkChooser . updateList ( jdk , type ) ; \n + \n + if ( ! successfullyAdded [ NUMBER0 ] ) { \n + try { \n + projectJdksModel . apply ( jdkConfig ) ; \n + } \n + catch ( ConfigurationException e1 ) { \n + SINGLE \n + } \n + } \n } \n } ) ; \n - if ( ! successfullyAdded [ NUMBER0 ] ) { \n - try { \n - projectJdksModel . apply ( jdkConfig ) ; \n - } \n - catch ( ConfigurationException e1 ) { \n - SINGLE \n - } \n - } \n - \n } \n } ) ; \n }", "msg_token": "fix new project without any preconfigured jdks jdk wasn t assigned to the project r kirillk"} {"diff": " public class CythonParsingTest extends ParsingTestCase { \n doTest ( ) ; \n } \n \n + public void testIncludes ( ) { \n + doTest ( ) ; \n + } \n + \n public void doTest ( ) { \n doTest ( true ) ; \n }", "msg_token": "Added parsing of Cython include statements"} {"diff": " public final class SpdyConnection implements Closeable { \n } \n } \n if ( streamsToNotify != null && delta != NUMBER0 ) { \n - for ( SpdyStream stream : streams . values ( ) ) { \n + for ( SpdyStream stream : streamsToNotify ) { \n synchronized ( stream ) { \n stream . addBytesToWriteWindow ( delta ) ; \n }", "msg_token": "Fix a concurrency bug in SPDY settings"} {"diff": " public class GzipHttpOutput extends HttpOutput \n BufferUtil . compact ( _buffer ) ; \n int off = _buffer . arrayOffset ( ) + _buffer . limit ( ) ; \n int len = _buffer . capacity ( ) - _buffer . limit ( ) - ( _complete ? NUMBER0 : NUMBER1 ) ; \n - int produced = _deflater . deflate ( _buffer . array ( ) , off , len , Deflater . NO_FLUSH ) ; \n - _buffer . limit ( _buffer . limit ( ) + produced ) ; \n + if ( len > NUMBER1 ) \n + { \n + int produced = _deflater . deflate ( _buffer . array ( ) , off , len , Deflater . NO_FLUSH ) ; \n + _buffer . limit ( _buffer . limit ( ) + produced ) ; \n + } \n boolean complete = _deflater . finished ( ) ; \n if ( complete ) \n addTrailer ( ) ;", "msg_token": "Prevent gzip buffer overflow on complete"} {"diff": " public class EasyAppMod { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public EasyAppMod ( final Context context ) { \n this . context = context ; \n public class EasyAppMod { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public boolean isPermissionGranted ( final String permission ) { \n return context . checkCallingPermission ( permission ) == PackageManager . PERMISSION_GRANTED ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isAppInstalled ( String packageName ) { \n + return context . getPackageManager ( ) . getLaunchIntentForPackage ( packageName ) != null ; \n + } \n }", "msg_token": "added isAppInstalled method to EasyAppMod"} {"diff": " public class LogInspector \n final int frameLength = dataHeaderFlyweight . frameLength ( ) ; \n if ( frameLength <= NUMBER0 ) \n { \n - final int limit = Math . min ( termLength - ( offset + HEADER_LENGTH ) , messageDumpLimit ) ; \n - out . println ( formatBytes ( termBuffer , offset + HEADER_LENGTH , limit ) ) ; \n + try \n + { \n + final int limit = Math . min ( termLength - ( offset + HEADER_LENGTH ) , messageDumpLimit ) ; \n + out . println ( formatBytes ( termBuffer , offset + HEADER_LENGTH , limit ) ) ; \n + } \n + catch ( final Exception ex ) \n + { \n + System . out . printf ( STRING0 , frameLength , offset ) ; \n + ex . printStackTrace ( ) ; \n + } \n \n break ; \n }", "msg_token": "Handle exceptions when printing a corrupt frame"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GrizzlyServer { \n COMMENT \n HttpHandler staticHandler = makeClientStaticHandler ( ) ; \n httpServer . getServerConfiguration ( ) . addHttpHandler ( staticHandler , STRING0 ) ; \n + COMMENT \n + SINGLE \n + GraphService gs = ( GraphService ) iocFactory . getComponentProvider ( GraphService . class ) . getInstance ( ) ; \n + Graph graph = gs . getGraph ( ) ; \n + httpServer . getServerConfiguration ( ) . addHttpHandler ( new OTPHttpHandler ( graph ) , STRING1 ) ; \n \n for ( NetworkListener l : httpServer . getListeners ( ) ) { l . getFileCache ( ) . setEnabled ( false ) ; }", "msg_token": "register the JAX RS less HttpHandler with the Grizzly server"} {"diff": " public class SparkComputationGraph implements Serializable { \n } \n \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - @ experimental \n public ComputationGraph fitPathsMultiDataSet ( JavaRDD < String > paths ) { \n paths . cache ( ) ; \n trainingMaster . executeTrainingPathsMDS ( this , paths ) ;", "msg_token": "Fix missed experimental tag"} {"diff": " public class PowerManagerService extends IPowerManager . Stub \n } \n \n SINGLE \n - if ( mPolicy != null ) { \n + if ( mPolicy != null && wasPowered ) { \n mPolicy . stopScreenSaver ( ) ; \n } \n }", "msg_token": "Fix the dock insertion Dream entry codepath"} {"diff": " public class AQUtility { \n getHandler ( ) . post ( run ) ; \n } \n \n + public static void post ( final Object handler , final String method , final Class < ? > [ ] sig , final Object . . . params ) { \n + post ( new Runnable ( ) { \n + \n + @ override \n + public void run ( ) { \n + \n + AQUtility . invokeHandler ( handler , method , false , true , sig , params ) ; \n + \n + } \n + } ) ; \n + } \n + \n public static void removePost ( Runnable run ) { \n getHandler ( ) . removeCallbacks ( run ) ; \n }", "msg_token": "Add method to post a handler and method with ui thread"} {"diff": " public class NinjaRunMojo extends AbstractMojo { \n List < String > classpathItems = Lists . newArrayList ( ) ; \n \n \n - alertUserIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist ( \n + alertAndStopExecutionIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist ( \n buildOutputDirectory ) ; \n \n classpathItems . add ( buildOutputDirectory ) ; \n public class NinjaRunMojo extends AbstractMojo { \n } \n \n \n - public void alertUserIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist ( \n + public void alertAndStopExecutionIfDirectoryWithCompiledClassesOfThisProjectDoesNotExist ( \n String directoryWithCompiledClassesOfThisProject ) { \n \n if ( ! new File ( directoryWithCompiledClassesOfThisProject ) . exists ( ) ) { \n + \n getLog ( ) . error ( STRING0 + directoryWithCompiledClassesOfThisProject ) ; \n getLog ( ) . error ( STRING1 ) ; \n + \n + SINGLE \n + System . exit ( NUMBER0 ) ; \n } \n \n }", "msg_token": "Improved notification when classes directory"} {"diff": " public class SIPCommunicator \n \n boolean isHomeDirnameForced = name != null ; \n \n - if ( profileLocation == null || name == null ) \n + if ( profileLocation == null \n + || cacheLocation == null \n + || logLocation == null \n + || name == null ) \n { \n String defaultLocation = System . getProperty ( STRING0 ) ; \n String defaultName = STRING1 ;", "msg_token": "Set defaults for log and cache directory when profile directory is set"} {"diff": " public class PhoneStatusBarPolicy implements Callback { \n @ override \n public void onUserSwitching ( int newUserId , IRemoteCallback reply ) { \n mUserInfoController . reloadUserInfo ( ) ; \n + if ( reply != null ) { \n + try { \n + reply . sendResult ( null ) ; \n + } catch ( RemoteException e ) { \n + } \n + } \n } \n \n @ override \n public class FingerprintService extends SystemService implements IBinder . DeathRe \n public void onUserSwitching ( int newUserId , IRemoteCallback reply ) { \n mHandler . obtainMessage ( MSG_USER_SWITCHING , newUserId , NUMBER0 COMMENT ) \n . sendToTarget ( ) ; \n + if ( reply != null ) { \n + try { \n + reply . sendResult ( null ) ; \n + } catch ( RemoteException e ) { \n + } \n + } \n } \n @ override \n public void onUserSwitchComplete ( int newUserId ) throws RemoteException {", "msg_token": "Fix missing observer reply callbacks"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "removed unnecessary imports"} {"diff": " public class TestEncodingDecoding extends TomcatBaseTest { \n } \n \n @ onerror \n - public void onError ( Session session , Throwable t ) throws IOException { \n + public void onError ( @ suppresswarnings ( STRING0 ) Session session , Throwable t ) { \n t . printStackTrace ( ) ; \n this . t = t ; \n } \n public class TestEncodingDecoding extends TomcatBaseTest { \n } \n \n @ onerror \n - public void onError ( Session session , Throwable t ) throws IOException { \n + public void onError ( @ suppresswarnings ( STRING0 ) Session session , Throwable t ) { \n t . printStackTrace ( ) ; \n this . t = t ; \n }", "msg_token": "Fix IDE warnings"} {"diff": " public final class BasicOperationScheduler { \n \n if ( currentThread instanceof OperationThread ) { \n if ( partitionId > - NUMBER0 ) { \n - SINGLE \n - int threadId = ( ( OperationThread ) currentThread ) . threadId ; \n - return toPartitionThreadIndex ( partitionId ) == threadId ; \n + OperationThread operationThread = ( OperationThread ) currentThread ; \n + if ( operationThread . isPartitionSpecific ) { \n + int threadId = operationThread . threadId ; \n + return toPartitionThreadIndex ( partitionId ) == threadId ; \n + } \n } \n return true ; \n }", "msg_token": "BasicOperationScheduler isInvocationAllowedFromCurrentThread should check partition specific operation threads only"} {"diff": " public class WebView extends AbsoluteLayout \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebView extends AbsoluteLayout \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated \n public int getVisibleTitleHeight ( ) { \n + SINGLE \n + SINGLE \n checkThread ( ) ; \n return getVisibleTitleHeightImpl ( ) ; \n }", "msg_token": "Update the JavaDoc on getVisibleTitleHeight"} {"diff": " public final class HttpServerExchange extends AbstractAttachable { \n StreamSinkChannel oldChannel = firstChannel ; \n StreamSinkChannel channel = oldChannel ; \n for ( ChannelWrapper wrapper : wrappers ) { \n - channel = ( ( ChannelWrapper < StreamSinkChannel > ) wrapper ) . wrap ( oldChannel , exchange ) ; \n + channel = ( ( ChannelWrapper < StreamSinkChannel > ) wrapper ) . wrap ( channel , exchange ) ; \n if ( channel == null ) { \n channel = oldChannel ; \n }", "msg_token": "Fix request wrapping bug"} {"diff": " public class CommonTermsQueryBuilderTest extends BaseQueryTestCase < CommonTermsQu \n @ test \n public void testNoTermsFromQueryString ( ) throws IOException { \n CommonTermsQueryBuilder builder = new CommonTermsQueryBuilder ( STRING_FIELD_NAME , STRING0 ) ; \n - assertNull ( builder . toQuery ( createContext ( ) ) ) ; \n + QueryParseContext context = createContext ( ) ; \n + context . setAllowUnmappedFields ( true ) ; \n + assertNull ( builder . toQuery ( context ) ) ; \n } \n }", "msg_token": "TEST fix CommonTermsQueryBuilderTest"} {"diff": " public class OperationFailedException \n public static final int CONTACT_GROUP_ALREADY_EXISTS = NUMBER0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public static final int INVALID_ACCOUNT_PROPERTIES = NUMBER1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n private int errorCode = GENERAL_ERROR ;", "msg_token": "Added new code"} {"diff": " public class Kafka09Fetcher < T > extends AbstractFetcher < T , TopicPartition > implem \n for ( KafkaTopicPartitionState < TopicPartition > partition : partitions ) { \n SINGLE \n SINGLE \n - Long offsetToCommit = offsets . get ( partition . getKafkaTopicPartition ( ) ) + NUMBER0 ; \n + Long offsetToCommit = offsets . get ( partition . getKafkaTopicPartition ( ) ) ; \n if ( offsetToCommit != null ) { \n - offsetsToCommit . put ( partition . getKafkaPartitionHandle ( ) , new OffsetAndMetadata ( offsetToCommit ) ) ; \n + offsetsToCommit . put ( partition . getKafkaPartitionHandle ( ) , new OffsetAndMetadata ( offsetToCommit + NUMBER0 ) ) ; \n partition . setCommittedOffset ( offsetToCommit ) ; \n } \n }", "msg_token": "hotfix kafka Fix NPE in Kafka09Fetcher"} {"diff": " public class IndexingMemoryBufferController extends AbstractComponent { \n \n this . indexingBuffer = indexingBuffer ; \n this . minShardIndexBufferSize = componentSettings . getAsBytesSize ( STRING0 , new ByteSizeValue ( NUMBER0 , ByteSizeUnit . MB ) ) ; \n + SINGLE \n this . maxShardIndexBufferSize = componentSettings . getAsBytesSize ( STRING1 , new ByteSizeValue ( NUMBER1 , ByteSizeUnit . MB ) ) ; \n \n logger . debug ( STRING2 , this . indexingBuffer , this . minShardIndexBufferSize , this . maxShardIndexBufferSize ) ;", "msg_token": "add a comment on max shard buffer size"} {"diff": " public class AttributeRangeBuilder implements CategoryBuilder { \n } \n \n public String getName ( ) { \n - return NbBundle . getMessage ( AttributeRangeBuilder . class , STRING0 ) ; \n + return column . getTitle ( ) + STRING1 + NbBundle . getMessage ( AttributeRangeBuilder . class , STRING0 ) ; \n } \n \n private void refreshRange ( ) {", "msg_token": "Fix Attribute Range filter naming"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n @ runasclient \n public class SimpleWebTestCase { \n \n - private static final Logger log = Logger . getLogger ( SimpleWebTestCase . class ) ; \n - \n @ deployment ( name = STRING0 ) \n public static Archive < ? > deployment ( ) { \n WebArchive war = ShrinkWrap . create ( WebArchive . class , STRING1 ) ;", "msg_token": "Remove unnecessary logger"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class AzureTestUtils { \n COMMENT \n COMMENT \n public class AzureTestUtils { \n SINGLE \n try { \n if ( Strings . hasText ( System . getProperty ( STRING0 ) ) ) { \n - settings . loadFromPath ( PathUtils . get ( ( System . getProperty ( STRING0 ) ) ) ) ; \n + try { \n + settings . loadFromPath ( PathUtils . get ( ( System . getProperty ( STRING0 ) ) ) ) ; \n + } catch ( IOException e ) { \n + throw new IllegalArgumentException ( STRING1 , e ) ; \n + } \n } else { \n throw new IllegalStateException ( STRING2 + \n STRING3 ) ;", "msg_token": "Fix uncaught checked exception in AzureTestUtils"} {"diff": " public class UpdateCopyrightAction extends AnAction { \n } \n } \n else if ( files != null && FileUtil . areFiles ( files ) ) { \n + boolean copyrightEnabled = false ; \n for ( VirtualFile vfile : files ) { \n - final PsiFile file = PsiManager . getInstance ( project ) . findFile ( vfile ) ; \n - if ( file == null || ! FileTypeUtil . getInstance ( ) . isSupportedFile ( file . getVirtualFile ( ) ) ) { \n - presentation . setEnabled ( false ) ; \n - return ; \n + if ( FileTypeUtil . getInstance ( ) . isSupportedFile ( vfile ) ) { \n + copyrightEnabled = true ; \n + break ; \n } \n } \n + if ( ! copyrightEnabled ) { \n + presentation . setEnabled ( false ) ; \n + return ; \n + } \n \n } \n else if ( ( files == null || files . length != NUMBER0 ) &&", "msg_token": "enable update copyright action if at least one file should have copyright notice"} {"diff": " public class MathJax \n { \n ChunkOutputWidget cow = lwToPlwMap_ . get ( widget ) ; \n if ( cow == null ) \n + { \n + onExpansionCompleted . execute ( false ) ; \n return ; \n + } \n \n cow . setExpansionState ( ChunkOutputWidget . EXPANDED , onExpansionCompleted ) ; \n }", "msg_token": "ensure callback executed in unexpected case"} {"diff": " class WiredAccessoryObserver extends UEventObserver { \n SINGLE \n SINGLE \n SINGLE \n - for ( int i = NUMBER0 ; i <= MAX_AUDIO_PORTS ; i ++ ) { \n + for ( int i = NUMBER0 ; i < MAX_AUDIO_PORTS ; i ++ ) { \n startObserving ( uEventInfo [ i ] [ NUMBER0 ] ) ; \n } \n init ( ) ; SINGLE \n class WiredAccessoryObserver extends UEventObserver { \n int newState = mHeadsetState ; \n mPrevHeadsetState = mHeadsetState ; \n \n - for ( int i = NUMBER0 ; i <= MAX_AUDIO_PORTS ; i ++ ) { \n + for ( int i = NUMBER0 ; i < MAX_AUDIO_PORTS ; i ++ ) { \n try { \n FileReader file = new FileReader ( uEventInfo [ i ] [ NUMBER1 ] ) ; \n int len = file . read ( buffer , NUMBER0 , NUMBER2 ) ;", "msg_token": "Fix an off by one error"} {"diff": " public interface TagTechnology { \n COMMENT \n COMMENT \n COMMENT \n - public static final int MIFRARE_CLASSIC_NDEF = NUMBER0 ; \n + public static final int MIFARE_CLASSIC_NDEF = NUMBER0 ; \n \n COMMENT \n COMMENT \n COMMENT \n - public static final int MIFRARE_ULTRALIGHT = NUMBER1 ; \n + public static final int MIFARE_ULTRALIGHT = NUMBER1 ; \n \n COMMENT \n COMMENT \n COMMENT \n - public static final int MIFRARE_DESFIRE = NUMBER2 ; \n + public static final int MIFARE_DESFIRE = NUMBER2 ; \n \n COMMENT \n COMMENT", "msg_token": "Fixed technology name typo s"} {"diff": " public class Stats \n private final AtomicBuffer labelsBuffer ; \n private final AtomicBuffer valuesBuffer ; \n private final StatsOutput output ; \n - private final CountersManager countersManager ; \n \n private static final int NUM_BASE_STATS = NUMBER0 ; \n \n public class Stats \n \n labelsBuffer = CncFileDescriptor . createCounterLabelsBuffer ( cncByteBuffer , metaDataBuffer ) ; \n valuesBuffer = CncFileDescriptor . createCounterValuesBuffer ( cncByteBuffer , metaDataBuffer ) ; \n - \n - countersManager = new CountersManager ( labelsBuffer , valuesBuffer ) ; \n } \n \n public void collectStats ( ) throws Exception", "msg_token": "Remove unused field"} {"diff": " public abstract class LagartoParserEngine { \n \n if ( enableConditionalComments == false ) { \n if ( isDownlevelHidden ) { \n - visitor . comment ( input . subSequence ( start , end ) ) ; \n + SINGLE \n + visitor . comment ( input . subSequence ( start + NUMBER0 , end - NUMBER1 ) ) ; \n } else { \n error ( STRING0 ) ; \n }", "msg_token": "Made the parseCCEnd method behave the same as the parseCommentOrConditionalComment method when the enableConditionalComments flag is disabled"} {"diff": " public class DrawerBuilder { \n handleShowOnFirstLaunch ( ) ; \n \n SINGLE \n - if ( ! mAppended ) { \n + if ( ! mAppended && mGenerateMiniDrawer ) { \n SINGLE \n mMiniDrawer = new MiniDrawer ( ) . withDrawer ( result ) . withAccountHeader ( mAccountHeader ) ; \n }", "msg_token": "only generate the MiniDrawer if the generation is enabled"} {"diff": " public class Radio extends ClusterEntity { \n . expect ( Http . Status . ACCEPTED ) \n . execute ( ) ; \n \n - SINGLE \n - return new InputLaunchResponse ( ) ; \n } catch ( APIException e ) { \n log . error ( STRING0 + title , e ) ; \n } catch ( IOException e ) {", "msg_token": "Removing dirty hack to fix failing input launch on radio"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class SessionInfo extends JavaScriptObject \n { \n protected SessionInfo ( ) \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LineTableView extends CellTable < ChunkOrLine > implements Display \n super . setSelected ( object , selected ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n public boolean isEnabled ( ) \n { \n return enabled_ ; \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public final class CommonTestUtils { \n \n SINGLE \n SINGLE \n - private static File sAlluxioTestDirectory = createTestingDirectory ( ) ; \n + public static final File ALLUXIO_TEST_DIRECTORY = createTestingDirectory ( ) ; \n \n COMMENT \n COMMENT \n public final class CommonTestUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - public static synchronized File getAlluxioTestDirectory ( ) { \n - return sAlluxioTestDirectory ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class CommonTestUtils { \n COMMENT \n COMMENT \n public static File createTemporaryDirectory ( String prefix ) { \n - File file = new File ( getAlluxioTestDirectory ( ) , prefix + STRING0 + UUID . randomUUID ( ) ) ; \n + File file = new File ( ALLUXIO_TEST_DIRECTORY , prefix + STRING0 + UUID . randomUUID ( ) ) ; \n try { \n file . createNewFile ( ) ; \n } catch ( IOException e ) {", "msg_token": "Use a constant for alluxio test directory"} {"diff": " public class DataHeaderFlyweight extends HeaderFlyweight \n COMMENT \n public static final short END_FLAG = NUMBER0 ; \n \n - COMMENT \n - public static final short RETRANSMIT_FLAG = NUMBER1 ; \n - \n COMMENT \n public static final short BEGIN_AND_END_FLAGS = BEGIN_FLAG | END_FLAG ;", "msg_token": "Removed unused retransmit flag"} {"diff": " public class SelectionModelImpl implements SelectionModel , PrioritizedDocumentLi \n int start = myEditor . logicalPositionToOffset ( lineStart ) ; \n int end = myEditor . logicalPositionToOffset ( nextLineStart ) ; \n \n - myEditor . getCaretModel ( ) . moveToOffset ( start ) ; \n + SINGLE \n myEditor . getScrollingModel ( ) . scrollToCaret ( ScrollType . RELATIVE ) ; \n myEditor . getSelectionModel ( ) . removeSelection ( ) ; \n myEditor . getSelectionModel ( ) . setSelection ( start , end ) ;", "msg_token": "do not touch caret if line is selected"} {"diff": " public class CoreLabel extends ArrayCoreMap implements Label , HasWord , HasTag , H \n \n public static final String MAP_FORMAT = STRING0 ; \n \n + public static final String WORD_FORMAT = STRING1 ; \n + \n @ override \n public String toString ( ) { \n return toString ( DEFAULT_FORMAT ) ; \n public class CoreLabel extends ArrayCoreMap implements Label , HasWord , HasTag , H \n if ( ! map2 . isEmpty ( ) ) { \n buf . append ( map2 ) ; \n } \n - } else if ( format . equals ( STRING1 ) ) { \n + } else if ( format . equals ( WORD_FORMAT ) ) { \n + SINGLE \n buf . append ( word ( ) ) ; \n } else if ( format . equals ( STRING2 ) ) { \n buf . append ( this . get ( CoreAnnotations . TextAnnotation . class ) ) ;", "msg_token": "Add a constant for WORD_FORMAT"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n street . setWheelchairAccessible ( false ) ; \n } \n \n - Coordinate [ ] coordinates = { from . getCoordinate ( ) , to . getCoordinate ( ) } ; \n - Float sequence = new PackedCoordinateSequence . Float ( coordinates , NUMBER0 ) ; \n - LineString lineString = _geometryFactory . createLineString ( sequence ) ; \n - \n - street . setGeometry ( lineString ) ; \n - \n return street ; \n }", "msg_token": "Remove useless code"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class SctpTestUtil { \n SINGLE \n public final static String LOOP_BACK = STRING0 ; \n public class SctpTestUtil { \n public static boolean isSctpSupported ( ) { \n String os = System . getProperty ( STRING1 ) . toLowerCase ( Locale . UK ) ; \n if ( os . equals ( STRING2 ) || os . equals ( STRING3 ) || os . equals ( STRING4 ) || os . equals ( STRING5 ) ) { \n + try { \n + SctpChannel . open ( ) ; \n + } catch ( IOException e ) { \n + SINGLE \n + } catch ( UnsupportedOperationException e ) { \n + SINGLE \n + SINGLE \n + System . out . print ( STRING6 + e . getMessage ( ) ) ; \n + return false ; \n + \n + } \n + \n return true ; \n } \n return false ;", "msg_token": "Also handle the case of missing shared lib for sctp"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ channelpipelinecoverage ( STRING0 ) \n public class Base64Encoder extends OneToOneEncoder { \n \n private final boolean breakLines ;", "msg_token": "Added missing annotation"} {"diff": " public class ETC1Util { \n int encodedImageSize = ETC1 . getEncodedDataSize ( width , height ) ; \n ByteBuffer compressedImage = ByteBuffer . allocateDirect ( encodedImageSize ) . \n order ( ByteOrder . nativeOrder ( ) ) ; \n - ETC1 . encodeImage ( input , width , height , NUMBER0 , stride , compressedImage ) ; \n + ETC1 . encodeImage ( input , width , height , pixelSize , stride , compressedImage ) ; \n return new ETC1Texture ( width , height , compressedImage ) ; \n }", "msg_token": "Properly passing an unused variable through"} {"diff": " public abstract class BaseQueryTestCase < QB extends AbstractQueryBuilder < QB > > ext \n COMMENT \n protected final void assertLuceneQuery ( QB queryBuilder , Query query , QueryParseContext context ) { \n if ( queryBuilder . queryName ( ) != null ) { \n - Query namedQuery = context . copyNamedFilters ( ) . get ( queryBuilder . queryName ( ) ) ; \n + Query namedQuery = context . copyNamedQueries ( ) . get ( queryBuilder . queryName ( ) ) ; \n assertThat ( namedQuery , equalTo ( query ) ) ; \n } \n }", "msg_token": "Adapt to changed method name"} {"diff": " public class DaemonClientInputForwarder implements Stoppable { \n \n private final Lock lifecycleLock = new ReentrantLock ( ) ; \n private boolean started ; \n - private boolean stopped ; \n \n private final InputStream inputStream ; \n private final BuildClientMetaData clientMetadata ; \n public class DaemonClientInputForwarder implements Stoppable { \n public void stop ( ) { \n lifecycleLock . lock ( ) ; \n try { \n - if ( ! stopped ) { \n + if ( started ) { \n LOGGER . debug ( STRING0 ) ; \n - forwarder . stop ( ) ; \n - stopped = true ; \n + try { \n + forwarder . stop ( ) ; \n + } finally { \n + forwarder = null ; \n + started = false ; \n + } \n } \n } finally { \n lifecycleLock . unlock ( ) ;", "msg_token": "Fixed NPE when DeamonClientInputForwarder is stopped before it is started eg on failure to write command to daemon"} {"diff": " public class ColoredProcessHandler extends OSProcessHandler { \n } \n \n private Key getCurrentOutputAttributes ( final Key outputType ) { \n + if ( outputType == ProcessOutputTypes . STDERR ) { \n + return outputType ; \n + } \n return myCurrentColor != null ? myCurrentColor : outputType ; \n }", "msg_token": "Fixed coloring stdout after ANSI code"} {"diff": " public class DeodexUtil { \n \n public MethodIdItem lookupVirtualMethod ( ClassPath . ClassDef classDef , int methodIndex ) { \n String method = classDef . getVirtualMethod ( methodIndex ) ; \n + if ( method == null ) { \n + return null ; \n + } \n \n Matcher m = shortMethodPattern . matcher ( method ) ; \n if ( ! m . matches ( ) ) {", "msg_token": "Fix a NPE when looking up a non existant method"} {"diff": " public final class TvContract { \n public static final String COLUMN_LOCKED = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class TvContract { \n public static final String COLUMN_APP_LINK_ICON_URI = STRING1 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class TvContract { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class TvContract { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add more description to the poster art and thumbnail columns"} {"diff": " class DockObserver extends UEventObserver { \n SINGLE \n SINGLE \n if ( mStatusBarManager != null ) { \n - mStatusBarManager . disable ( enabled \n + long ident = Binder . clearCallingIdentity ( ) ; \n + mStatusBarManager . disable ( enabled \n ? StatusBarManager . DISABLE_NOTIFICATION_TICKER \n : StatusBarManager . DISABLE_NONE ) ; \n + Binder . restoreCallingIdentity ( ident ) ; \n } \n }", "msg_token": "Fix permission exception thrown on exit car mode"} {"diff": " public class MediaConductor extends Agent \n heartbeatTimer = newTimeout ( HEARTBEAT_TIMEOUT_MS , TimeUnit . MILLISECONDS , this : : onHeartbeatCheck ) ; \n \n conductorByteBuffers = ctx . conductorByteBuffers ( ) ; \n - final ByteBuffer toMediaDriver = conductorByteBuffers . toMediaDriver ( ) ; \n - final ByteBuffer toClient = conductorByteBuffers . toClient ( ) ; \n - toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toMediaDriver ) ) ; \n - toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( toClient ) ) ; \n + toMediaDriverBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( conductorByteBuffers . toMediaDriver ( ) ) ) ; \n + toClientBuffer = new ManyToOneRingBuffer ( new AtomicBuffer ( conductorByteBuffers . toClient ( ) ) ) ; \n } \n \n public ControlFrameHandler frameHandler ( final UdpDestination destination )", "msg_token": "Remove unnecessary temporary variables"} {"diff": " class AppWidgetService extends IAppWidgetService . Stub \n IRemoteViewsAdapterConnection . Stub . asInterface ( mConnectionCb ) ; \n try { \n cb . onServiceConnected ( service ) ; \n - } catch ( RemoteException e ) { \n + } catch ( Exception e ) { \n e . printStackTrace ( ) ; \n } \n } \n class AppWidgetService extends IAppWidgetService . Stub \n IRemoteViewsAdapterConnection . Stub . asInterface ( mConnectionCb ) ; \n try { \n cb . onServiceDisconnected ( ) ; \n - } catch ( RemoteException e ) { \n + } catch ( Exception e ) { \n e . printStackTrace ( ) ; \n } \n } \n class AppWidgetService extends IAppWidgetService . Stub \n IRemoteViewsFactory . Stub . asInterface ( service ) ; \n try { \n cb . onDestroy ( intent ) ; \n - } catch ( RemoteException e ) { \n + } catch ( Exception e ) { \n e . printStackTrace ( ) ; \n } \n mContext . unbindService ( this ) ;", "msg_token": "Catching all Exceptions when calling through to RemoteViewsFactory"} {"diff": " public class ModelMetricsBinomial extends ModelMetricsSupervised { \n \n SINGLE \n final double eps = FLOAT0 ; \n - if ( iact == NUMBER0 ) { \n - _logloss -= Math . log ( NUMBER1 - Math . min ( NUMBER1 - eps , ds [ NUMBER0 ] ) ) ; \n - } else { \n - _logloss -= Math . log ( Math . max ( eps , ds [ NUMBER1 ] ) ) ; \n - } \n + _logloss -= Math . log ( Math . max ( eps , Math . min ( NUMBER1 - eps , ds [ iact + NUMBER1 ] ) ) ) ; \n \n _count ++ ; \n return ds ; SINGLE", "msg_token": "Fix logloss computation for binomial models"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n @ runwith ( JUnit4TestRunner . class ) \n - @ ignore ( STRING0 ) \n public class CamelQuickFixTest extends AbstractFeatureTest { \n \n public static final String COMPONENT = STRING1 ;", "msg_token": "Enabled quickfix test in karaf"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - @ suppresswarnings ( STRING0 ) \n public class XWifiManager extends XHook { \n private Methods mMethod ;", "msg_token": "Remove suppress warning"} {"diff": " public class NeoStoreXaDataSource extends XaDataSource \n \n public void close ( ) \n { \n - neoStore . flushAll ( ) ; \n + if ( ! readOnly ) \n + { \n + neoStore . flushAll ( ) ; \n + } \n xaContainer . close ( ) ; \n if ( logApplied ) \n { \n public class XaLogicalLog \n private void fixCleanKill ( String fileName ) throws IOException \n { \n File file = new File ( fileName ) ; \n - if ( ! keepLogs && ! file . delete ( ) ) \n + if ( ! keepLogs ) \n { \n - throw new IllegalStateException ( \n - STRING0 + \n - fileName ) ; \n + if ( ! file . delete ( ) ) \n + { \n + throw new IllegalStateException ( \n + STRING0 + \n + fileName ) ; \n + } \n } \n else \n {", "msg_token": "Fixed problem with flushAll call when in read only mode"} {"diff": " public class FileUtilsTest { \n File storageDir = new File ( mTestFolder . getRoot ( ) , STRING0 ) ; \n File blockFile = new File ( storageDir , STRING1 ) ; \n \n - SINGLE \n + SINGLE \n FileUtils . createBlockPath ( blockFile . getAbsolutePath ( ) ) ; \n Assert . assertTrue ( FileUtils . exists ( storageDir . getAbsolutePath ( ) ) ) ; \n Assert . assertEquals (", "msg_token": "SMALLFIX Fix typo"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class TestWebappClassLoaderExecutorMemoryLeak extends TomcatBaseTest { \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class TestWebappClassLoaderThreadLocalMemoryLeak extends TomcatBaseTest { \n \n public class TestWebappClassLoaderThreadLocalMemoryLeak extends TomcatBaseTest { \n } \n \n static class ThreadScopedHolder { \n - private final static ThreadLocal < List < MyCounter > > threadLocal = \n + private static final ThreadLocal < List < MyCounter > > threadLocal = \n new ThreadLocal < List < MyCounter > > ( ) ; \n \n public static void saveInHolder ( List < MyCounter > o ) {", "msg_token": "Fix checkstyle warnings I missed earlier"} {"diff": " public class GoogleContactsQuery \n @ override \n protected void run ( ) \n { \n - GoogleContactsServiceImpl service = ( GoogleContactsServiceImpl ) \n + GoogleContactsServiceImpl service = \n GoogleContactsActivator . getGoogleContactsService ( ) ; \n gQuery = new GoogleQuery ( query ) ; \n \n public class JmfDeviceDetector \n SINGLE \n boolean fmjVideoAvailable = isFMJVideoAvailable ( ) ; \n \n + COMMENT \n + COMMENT \n try \n { \n if ( fmjVideoAvailable ) \n public class JmfDeviceDetector \n exc ) ; \n fmjVideoAvailable = false ; \n } \n + COMMENT \n \n if ( OSUtils . IS_MAC ) SINGLE \n {", "msg_token": "Disable LTI CIVIL capture devices"} {"diff": " final class Tracer { \n static void clearCurrentThreadTrace ( ) { } \n \n long stop ( ) { \n - return System . currentTimeMillis ( ) + start ; \n + return System . currentTimeMillis ( ) - start ; \n } \n }", "msg_token": "Fix typo in the GWT version of Tracer"} {"diff": " public class FolderMessageList extends ExpandableListActivity \n \n private void onToggleSortAscending ( ) \n { \n - sortAscending = ! sortAscending ; \n - MessagingController . getInstance ( getApplication ( ) ) . setSortAscending ( sortType , sortAscending ) ; \n + MessagingController . getInstance ( getApplication ( ) ) . setSortAscending ( sortType , ! sortAscending ) ; \n + \n + sortAscending = MessagingController . getInstance ( getApplication ( ) ) . isSortAscending ( sortType ) ; \n + sortDateAscending = MessagingController . getInstance ( getApplication ( ) ) . isSortAscending ( SORT_TYPE . SORT_DATE ) ; \n + \n reSort ( ) ; \n }", "msg_token": "Fix reverse sorting when in sort by date mode"} {"diff": " public class MsOutlookAddrBookContactSourceService \n \n static \n { \n - System . loadLibrary ( STRING0 ) ; \n + try \n + { \n + System . loadLibrary ( STRING0 ) ; \n + } \n + catch ( Throwable ex ) \n + { \n + logger . error ( STRING1 , ex ) ; \n + throw new RuntimeException ( ex ) ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "Log exception if the Outlook Native Lib cannot be loaded"} {"diff": " public class Drawer { \n return this . mDrawer . mDrawerLayout ; \n } \n \n - public FrameLayout getSlider ( ) { \n - if ( mSliderView == null ) { \n - mSliderView = ( FrameLayout ) this . mDrawer . mDrawerLayout . findViewById ( R . id . slider_layout ) ; \n + public void openDrawer ( ) { \n + if ( mDrawer . mDrawerLayout != null && mDrawer . mSliderLayout != null ) { \n + mDrawer . mDrawerLayout . openDrawer ( mDrawer . mSliderLayout ) ; \n } \n - return mSliderView ; \n + } \n + \n + public void closeDrawer ( ) { \n + if ( mDrawer . mDrawerLayout != null ) { \n + mDrawer . mDrawerLayout . closeDrawers ( ) ; \n + } \n + } \n + \n public LinearLayout getSlider ( ) { \n return mDrawer . mSliderLayout ; \n }", "msg_token": "implement functions to open and close a drawer"} {"diff": " public class IconTextView extends TextView { \n } \n \n private void init ( ) { \n - Iconify . addIcons ( this ) ; \n + if ( ! isInEditMode ( ) ) \n + Iconify . addIcons ( this ) ; \n + else \n + this . setText ( STRING0 ) ; \n } \n \n @ override", "msg_token": "Fix editor my IntelliJ IDEA preview bug"} {"diff": " public enum PropertyKey { \n SINGLE \n SINGLE \n UNDERFS_ADDRESS ( Name . UNDERFS_ADDRESS , STRING0 ) , \n - UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING , null ) , \n + UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_GCS_OWNER_ID_TO_USERNAME_MAPPING , STRING1 ) , \n UNDERFS_GLUSTERFS_IMPL ( Name . UNDERFS_GLUSTERFS_IMPL , \n STRING2 ) , \n UNDERFS_GLUSTERFS_MOUNTS ( Name . UNDERFS_GLUSTERFS_MOUNTS , null ) , \n public enum PropertyKey { \n UNDERFS_S3_ENDPOINT ( Name . UNDERFS_S3_ENDPOINT , null ) , \n UNDERFS_S3_ENDPOINT_HTTP_PORT ( Name . UNDERFS_S3_ENDPOINT_HTTP_PORT , null ) , \n UNDERFS_S3_ENDPOINT_HTTPS_PORT ( Name . UNDERFS_S3_ENDPOINT_HTTPS_PORT , null ) , \n - UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING , null ) , \n + UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING ( Name . UNDERFS_S3_OWNER_ID_TO_USERNAME_MAPPING , STRING1 ) , \n UNDERFS_S3_PROXY_HOST ( Name . UNDERFS_S3_PROXY_HOST , null ) , \n UNDERFS_S3_PROXY_HTTPS_ONLY ( Name . UNDERFS_S3_PROXY_HTTPS_ONLY , true ) , \n UNDERFS_S3_PROXY_PORT ( Name . UNDERFS_S3_PROXY_PORT , null ) ,", "msg_token": "Make the default mapping config to empty"} {"diff": " public class StatusTransformer { \n writer . print ( formatTime ( new Long ( result [ NUMBER0 ] / NUMBER1 ) , true ) ) ; \n writer . print ( STRING0 ) ; \n } else if ( mode == NUMBER2 ) { \n + SINGLE \n } \n } \n \n public class StatusTransformer { \n } \n \n ObjectName queryManager = new ObjectName \n - ( objectName . getDomain ( ) + STRING1 + contextName \n + ( objectName . getDomain ( ) + STRING2 + contextName \n + STRING3 + hostName + STRING4 ) ; \n Set < ObjectName > managersON = \n mBeanServer . queryNames ( queryManager , null ) ;", "msg_token": "Use correct MBean name for Mangers"} {"diff": " public class View implements Drawable . Callback2 , KeyEvent . Callback , Accessibilit \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setSystemUiVisibility ( int visibility ) { \n - if ( visibility != mSystemUiVisibility ) { \n - mSystemUiVisibility = visibility ; \n - if ( mParent != null && mAttachInfo != null && ! mAttachInfo . mRecomputeGlobalAttributes ) { \n - mParent . recomputeViewAttributes ( this ) ; \n - } \n + mSystemUiVisibility = visibility ; \n + if ( mParent != null && mAttachInfo != null && ! mAttachInfo . mRecomputeGlobalAttributes ) { \n + mParent . recomputeViewAttributes ( this ) ; \n } \n }", "msg_token": "Allow views to setSystemUiVisibility with the same value and have it work"} {"diff": " public class XmlParser implements ContentHandler { \n COMMENT \n COMMENT \n protected Node createNode ( Node parent , Object name , Map attributes ) { \n - return new Node ( parent , name , attributes , new NodeList ( ) ) ; \n + return new Node ( parent , name , attributes ) ; \n } \n \n COMMENT", "msg_token": "Allow subclasses of XmlParser to customize creation of new Nodes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class DefaultWayPropertySetSource implements WayPropertySetSource { \n \n COMMENT \n public class DefaultWayPropertySetSource implements WayPropertySetSource { \n createNames ( props , STRING0 , STRING1 ) ; \n createNames ( props , STRING2 , STRING1 ) ; \n createNames ( props , STRING3 , STRING4 ) ; \n + createNames ( props , STRING5 , STRING6 ) ; \n createNames ( props , STRING7 , STRING8 ) ; \n createNames ( props , STRING9 , STRING10 ) ; \n createNames ( props , STRING11 , STRING12 ) ;", "msg_token": "ReBasing Dave s changes Alley Formatting"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class MessageDispatchInterceptor extends ChannelInterceptorBase implements Runnable { \n + public class MessageDispatchInterceptor extends ChannelInterceptorBase { \n \n private static final Log log = LogFactory . getLog ( MessageDispatchInterceptor . class ) ; \n protected static final StringManager sm = \n public class MessageDispatchInterceptor extends ChannelInterceptorBase implement \n } \n \n \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - @ override \n - public void run ( ) { \n - while ( run ) { \n - LinkObject link = removeFromQueue ( ) ; \n - if ( link == null ) continue ; SINGLE \n - while ( link != null && run ) { \n - link = sendAsyncData ( link ) ; \n - } \n - } \n - } \n - \n - \n protected LinkObject sendAsyncData ( LinkObject link ) { \n ChannelMessage msg = link . data ( ) ; \n Member [ ] destination = link . getDestination ( ) ;", "msg_token": "Remove deprecated code"} {"diff": " public class EnumTriangles implements PlanAssembler , PlanAssemblerDescription { \n target . setField ( NUMBER0 , rdfObj ) ; \n target . setField ( NUMBER1 , rdfSubj ) ; \n } \n - \n - System . out . println ( target . getField ( NUMBER0 , PactString . class ) . getValue ( ) + STRING0 + target . getField ( NUMBER1 , PactString . class ) . getValue ( ) ) ; \n \n return true ; \n }", "msg_token": "removed System out print statement from EnumTriangles example job"} {"diff": " public class OSQLFunctionGremlin extends OSQLFunctionAbstract { \n db = ( OGraphDatabase ) currentDb ; \n else { \n db = new OGraphDatabase ( currentDb . getURL ( ) ) ; \n + currentDb . close ( ) ; \n ODatabaseRecordThreadLocal . INSTANCE . set ( db ) ; \n }", "msg_token": "Fixed bug found by Adolfo on Gremlin function on remote connections"} {"diff": " package NAMESPACE ; \n public abstract class WorkloadPlugin { \n private volatile VoldemortWrapper db ; \n \n - public WorkloadPlugin ( ) { \n - } \n - \n - protected VoldemortWrapper getDb ( ) { \n - return db ; \n - } \n - \n - protected void setDb ( VoldemortWrapper db ) { \n + public void setDb ( VoldemortWrapper db ) { \n this . db = db ; \n }", "msg_token": "Cleaned up WorkloadPlugin"} {"diff": " public class GroovyBlockGenerator implements GroovyElementTypes { \n for ( ASTNode childNode : children ) { \n if ( childNode . getTextRange ( ) . getLength ( ) > NUMBER0 ) { \n final Indent indent = GroovyIndentProcessor . getChildIndent ( myBlock , childNode ) ; \n - if ( myAlignment != null ) { \n - myAlignmentProvider . addPair ( myNode , childNode , false ) ; \n - } \n subBlocks . add ( new GroovyBlock ( childNode , indent , myWrap , mySettings , myGroovySettings , myAlignmentProvider ) ) ; \n } \n }", "msg_token": "don t align gstring children"} {"diff": " public class HttpDestination implements Destination , AutoCloseable , Dumpable \n SINGLE \n SINGLE \n SINGLE \n - newConnection ( new ProxyPromise < Connection > ( promise ) \n + newConnection ( new ProxyPromise ( promise ) \n { \n @ override \n public void succeeded ( Connection connection )", "msg_token": "Fixed compilation problem"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class EpisodeDetailsActivity extends BaseActivity { \n @ override \n public void onBackPressed ( ) { \n super . onBackPressed ( ) ; \n - if ( ! AndroidUtils . isJellyBeanOrHigher ( ) ) { \n - overridePendingTransition ( R . anim . fragment_slide_right_enter , \n - R . anim . fragment_slide_right_exit ) ; \n - } \n + overridePendingTransition ( R . anim . fragment_slide_right_enter , \n + R . anim . fragment_slide_right_exit ) ; \n } \n \n public static class EpisodePagerAdapter extends FragmentStatePagerAdapter {", "msg_token": "Use old back animation for episode details"} {"diff": " public class MapControlsLayer extends OsmandMapLayer { \n private static final int SHOW_ZOOM_LEVEL_MSG_ID = OsmAndConstants . UI_HANDLER_MAP_CONTROLS + NUMBER0 ; \n private static final int SHOW_ZOOM_BUTTON_MSG_ID = OsmAndConstants . UI_HANDLER_MAP_CONTROLS + NUMBER1 ; \n private static final int SHOW_ZOOM_LEVEL_DELAY = NUMBER2 ; \n - private static final int SHOW_ZOOM_LEVEL_BUTTON_DELAY = NUMBER3 ; \n + private static final int SHOW_ZOOM_LEVEL_BUTTON_DELAY = NUMBER4 ; \n \n \n private OsmandMapTileView view ; \n public class MapControlsLayer extends OsmandMapLayer { \n } \n \n } ) ; \n - msg . what = SHOW_ZOOM_LEVEL_BUTTON_DELAY ; \n + msg . what = SHOW_ZOOM_BUTTON_MSG_ID ; \n showUIHandler . sendMessageDelayed ( msg , SHOW_ZOOM_LEVEL_BUTTON_DELAY ) ; \n }", "msg_token": "Fix minor issue"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class Job < T extends Keyed > extends Keyed { \n COMMENT \n COMMENT \n COMMENT \n - protected static class Progress extends Iced { \n + public static class Progress extends Iced { \n private final long _work ; \n private long _worked ; \n private boolean _done ;", "msg_token": "make Progress public"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class TripUpdateGraphWriterRunnable implements GraphWriterRunnable {", "msg_token": "Fix another import"} {"diff": " public class JBUI { \n return FLOAT0 ; \n } \n \n - final int size = Fonts . label ( ) . getSize ( ) ; \n + int size = - NUMBER0 ; \n + try { \n + if ( SystemInfo . isWindows ) { \n + size = ( Integer ) Toolkit . getDefaultToolkit ( ) . getDesktopProperty ( STRING0 ) ; \n + } \n + } catch ( Exception e ) { SINGLE \n + } \n + if ( size == - NUMBER0 ) { \n + size = Fonts . label ( ) . getSize ( ) ; \n + } \n if ( size <= NUMBER1 ) return FLOAT0 ; \n if ( size <= NUMBER2 ) return FLOAT1 ; \n if ( size <= NUMBER3 ) return FLOAT2 ;", "msg_token": "use desktop property to properly initialize scaling on Windows"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class ConfigValidationTest extends BaseCheckTestSupport { \n - \n - static ConfigurationBuilder builder ; \n - \n - @ beforeclass \n - public static void setConfigurationBuilder ( ) throws CheckstyleException , IOException { \n - builder = new ConfigurationBuilder ( new File ( STRING0 ) ) ; \n - } \n - \n @ test \n public void testGoogleChecks ( ) throws IOException , Exception { \n + ConfigurationBuilder builder = new ConfigurationBuilder ( new File ( STRING0 ) ) ; \n final Configuration checkerConfig = builder . config ; \n final Checker c = new Checker ( ) ; \n c . setModuleClassLoader ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ;", "msg_token": "Remove non final static field"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class FlexAdapter extends LexerBase { \n myTokenType = myFlex . advance ( ) ; \n } \n catch ( IOException e ) { COMMENT } \n + catch ( Error e ) { \n + SINGLE \n + final Error error = new Error ( myFlex . getClass ( ) . getName ( ) + STRING0 + e . getMessage ( ) ) ; \n + error . setStackTrace ( e . getStackTrace ( ) ) ; \n + throw error ; \n + } \n } \n }", "msg_token": "add lexer class name to the error"} {"diff": " public class HttpConnectionTest { \n echoTestServer . stop ( ) ; \n file . delete ( ) ; \n \n - assertEquals ( STRING0 , sb . toString ( ) ) ; \n + assertEquals ( STRING1 , StringUtil . substring ( sb . toString ( ) , NUMBER0 , - NUMBER1 ) ) ; \n } \n \n }", "msg_token": "Stabilize the test"} {"diff": " public class Tomcat { \n return sw ; \n } \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void init ( ) throws LifecycleException { \n + getServer ( ) ; \n + getConnector ( ) ; \n + server . init ( ) ; \n + } \n + \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void start ( ) throws LifecycleException { \n public class Tomcat { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void stop ( ) throws LifecycleException { \n public class Tomcat { \n } \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void destroy ( ) throws LifecycleException { \n + getServer ( ) ; \n + server . destroy ( ) ; \n + SINGLE \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add init and destroy support"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class BaseFilterBuilder implements FilterBuilder { \n \n @ override \n + public String toString ( ) { \n + try { \n + XContentBuilder builder = XContentFactory . jsonBuilder ( ) ; \n + builder . prettyPrint ( ) ; \n + toXContent ( builder , EMPTY_PARAMS ) ; \n + return builder . string ( ) ; \n + } catch ( Exception e ) { \n + throw new QueryBuilderException ( STRING0 , e ) ; \n + } \n + } \n + \n + @ override \n public XContentBuilder toXContent ( XContentBuilder builder , Params params ) throws IOException { \n builder . startObject ( ) ; \n doXContent ( builder , params ) ; \n public abstract class BaseFilterBuilder implements FilterBuilder { \n } \n \n protected abstract void doXContent ( XContentBuilder builder , Params params ) throws IOException ; \n - } \n + }", "msg_token": "Add toString for FilterBuilders"} {"diff": " \n package NAMESPACE ; \n \n - public class UnexpectedRequestMatcher implements RequestMatcher { \n + public final class UnexpectedRequestMatcher implements RequestMatcher { \n @ override \n public boolean match ( final Request request ) { \n return true ;", "msg_token": "added missing final to unexpected request matcher"} {"diff": " import NAMESPACE ; \n public class FromFtpSetNamesWithMultiDirectoriesTest extends FtpServerTestSupport { \n \n private String getFtpUrl ( ) { \n - return STRING0 + getPort ( ) + STRING1 ; \n + return STRING0 + getPort ( ) + STRING2 ; \n } \n \n @ override", "msg_token": "speed up a test which fails some time on slow CI servers"} {"diff": " public class CircuitBreakerServiceTests extends ElasticsearchIntegrationTest { \n \n private String randomRidiculouslySmallLimit ( ) { \n SINGLE \n - return randomFrom ( Arrays . asList ( STRING0 , STRING1 , ( FLOAT0 / JvmInfo . jvmInfo ( ) . getMem ( ) . getHeapMax ( ) . bytes ( ) ) + STRING2 ) ) ; \n + return randomFrom ( Arrays . asList ( STRING0 , STRING1 ) ) ; \n + SINGLE \n } \n \n @ test", "msg_token": "TEST Fix CircuitBreakerServiceTests from failing due to rounding errors"} {"diff": " public class FileObserverService extends Service { \n continue ; \n \n String path = c . getString ( c . getColumnIndex ( ProviderTableMeta . FILE_STORAGE_PATH ) ) ; \n + if ( path == null || path . length ( ) <= NUMBER0 ) \n + continue ; \n OwnCloudFileObserver observer = \n new OwnCloudFileObserver ( path , \n account ,", "msg_token": "Fixed crash in initialization of FileObserverService"} {"diff": " public class WifiEnterpriseConfig implements Parcelable { \n public String toString ( ) { \n StringBuffer sb = new StringBuffer ( ) ; \n for ( String key : mFields . keySet ( ) ) { \n - sb . append ( key ) . append ( STRING0 ) . append ( mFields . get ( key ) ) . append ( STRING1 ) ; \n + SINGLE \n + String value = ( key == PASSWORD_KEY ) ? STRING2 : mFields . get ( key ) ; \n + sb . append ( key ) . append ( STRING0 ) . append ( value ) . append ( STRING1 ) ; \n } \n return sb . toString ( ) ; \n }", "msg_token": "Do not print credentials in toString"} {"diff": " public interface ConfigList extends List < ConfigValue > , ConfigValue { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ override \n List < Object > unwrapped ( ) ;", "msg_token": "Add return tag to ConfigList unwrapped javadoc"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class SmackAndroid { \n private BroadcastReceiver mConnectivityChangedReceiver = new BroadcastReceiver ( ) { \n @ override \n public void onReceive ( Context context , Intent intent ) { \n - LOGGER . fine ( STRING0 ) ; \n + LOGGER . fine ( STRING1 ) ; \n ResolverConfig . refresh ( ) ; \n + Lookup . refreshDefault ( ) ; \n } \n } ;", "msg_token": "Also call Lookup refreshDefault in SmackAndroid"} {"diff": " public class CapturingProcessHandler extends OSProcessHandler { \n \n public ProcessOutput runProcess ( ) { \n startNotify ( ) ; \n + afterStart ( ) ; \n + \n if ( waitFor ( ) ) { \n myOutput . setExitCode ( getProcess ( ) . exitValue ( ) ) ; \n } \n public class CapturingProcessHandler extends OSProcessHandler { \n } \n else { \n startNotify ( ) ; \n + afterStart ( ) ; \n + \n if ( waitFor ( timeoutInMilliseconds ) ) { \n myOutput . setExitCode ( getProcess ( ) . exitValue ( ) ) ; \n } \n public class CapturingProcessHandler extends OSProcessHandler { \n } \n } \n \n + protected void afterStart ( ) { \n + } \n + \n @ override \n public Charset getCharset ( ) { \n if ( myCharset != null ) {", "msg_token": "hangup at compiler launch is fixed review CR OC"} {"diff": " public class Camera { \n native_setup ( new WeakReference < Camera > ( this ) , cameraId ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + Camera ( ) { \n + } \n + \n protected void finalize ( ) { \n release ( ) ; \n } \n public class Camera { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static Parameters getEmptyParameters ( ) { \n + Camera camera = new Camera ( ) ; \n + return camera . new Parameters ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public class Size {", "msg_token": "Add a method to get empty camera parameters"} {"diff": " public class SocketSslEchoTest extends AbstractSocketTest { \n renegoFuture = clientSslHandler . renegotiate ( ) ; \n logStats ( STRING0 ) ; \n assertThat ( renegoFuture , is ( not ( sameInstance ( clientHandshakeFuture ) ) ) ) ; \n - assertThat ( renegoFuture . isDone ( ) , is ( false ) ) ; \n } \n }", "msg_token": "Fix sporadic assertion failure in SocketSslEchoTest"} {"diff": " public class KMeans2RandomTest extends TestUtil { \n String dataset = datasets [ i ] ; \n Key file = NFSFileVec . make ( find_test_file ( dataset ) ) ; \n Frame frame = ParseDataset2 . parse ( Key . make ( ) , new Key [ ] { file } ) ; \n - Key vfile = NFSFileVec . make ( find_test_file ( dataset ) ) ; \n - Frame vframe = ParseDataset2 . parse ( Key . make ( ) , new Key [ ] { vfile } ) ; \n \n try { \n for ( int clusters : new int [ ] { NUMBER0 , NUMBER1 } ) { \n public class KMeans2RandomTest extends TestUtil { \n } \n } finally { \n frame . delete ( ) ; \n - vframe . delete ( ) ; \n } \n } \n Log . info ( STRING0 ) ;", "msg_token": "Remove unneeded code"} {"diff": " public abstract class SquidDatabase { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add some clarifying docs to prepareStatement"} {"diff": " public final class BluetoothLeScanner { \n \n private static final String TAG = STRING0 ; \n private static final boolean DBG = true ; \n + private static final boolean VDBG = false ; \n \n private final IBluetoothManager mBluetoothManager ; \n private final Handler mHandler ; \n public final class BluetoothLeScanner { \n COMMENT \n @ override \n public void onScanResult ( final ScanResult scanResult ) { \n - if ( DBG ) Log . d ( TAG , STRING1 + scanResult . toString ( ) ) ; \n + if ( VDBG ) Log . d ( TAG , STRING1 + scanResult . toString ( ) ) ; \n \n SINGLE \n synchronized ( this ) { \n public final class BluetoothLeScanner { \n \n @ override \n public void onFoundOrLost ( final boolean onFound , final ScanResult scanResult ) { \n - if ( DBG ) { \n + if ( VDBG ) { \n Log . d ( TAG , STRING2 + onFound + \n STRING3 + scanResult . toString ( ) ) ; \n }", "msg_token": "Remove spammy log information for BLE scan"} {"diff": " public abstract class AbstractFramedChannel < C extends AbstractFramedChannel < C , R \n } \n \n void notifyFrameReadComplete ( AbstractFramedStreamSourceChannel < C , R , S > channel ) { \n - synchronized ( AbstractFramedChannel . this ) { \n - if ( isLastFrameReceived ( ) ) { \n - safeClose ( AbstractFramedChannel . this . channel . getSourceChannel ( ) ) ; \n - } \n - } \n + \n } \n \n void notifyClosed ( AbstractFramedStreamSourceChannel < C , R , S > channel ) { \n public class WebSockets { \n if ( callback != null ) { \n callback . complete ( wsChannel , context ) ; \n } \n - if ( type == WebSocketFrameType . CLOSE && wsChannel . isCloseFrameReceived ( ) ) { \n - IoUtils . safeClose ( wsChannel ) ; \n - } \n } \n \n private static void setupTimeout ( final StreamSinkFrameChannel channel , long timeoutmillis ) {", "msg_token": "Close handling changes"} {"diff": " public class MainController implements Choreographer . FrameCallback { \n Bubble nextBubble = mBubbles . lastElement ( ) ; \n mBadge . attach ( nextBubble ) ; \n if ( mMode == Mode . ContentView ) { \n - mContentViewRoot . switchContent ( nextBubble . getContentView ( ) ) ; \n + SINGLE \n + mContentViewRoot . hide ( ) ; \n } else { \n nextBubble . setExactPos ( bubble . getXPos ( ) , bubble . getYPos ( ) ) ; \n } \n public class MainController implements Choreographer . FrameCallback { \n @ override \n public void onCloseClicked ( Bubble sender ) { \n destroyBubble ( sender ) ; \n + if ( mBubbles . size ( ) > NUMBER0 ) { \n + switchState ( mAnimateToModeViewState ) ; \n + } \n } \n \n @ override", "msg_token": "Fix fox incorrect bubble layout when using close button to close bubbles in the middle of the content row"} {"diff": " public interface Chain { \n default Chain onlyIf ( Predicate < ? super Context > test , Class < ? extends Handler > handler ) { \n return all ( Handlers . onlyIf ( test , getRegistry ( ) . get ( handler ) ) ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + default Chain notFound ( ) { \n + return all ( Handlers . notFound ( ) ) ; \n + } \n + \n }", "msg_token": "Add Chain notFound"} {"diff": " public class WebView extends AbsoluteLayout \n public void onNewPicture ( WebView view , Picture picture ) ; \n } \n \n - public static class HitTestResult { \n + SINGLE \n + public COMMENT class HitTestResult { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix the build"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n ? ( UPDATE_PERMISSIONS_REPLACE_PKG | UPDATE_PERMISSIONS_REPLACE_ALL ) \n : NUMBER0 ) ) ; \n \n + SINGLE \n + SINGLE \n + if ( ! mRestoredSettings && ! onlyCore ) { \n + mSettings . readDefaultPreferredAppsLPw ( this , NUMBER0 ) ; \n + } \n + \n SINGLE \n mSettings . writeLPr ( ) ; \n \n final class Settings { \n mReadMessages . append ( STRING0 ) ; \n PackageManagerService . reportSettingsProblem ( Log . INFO , \n STRING1 ) ; \n - if ( ! onlyCore ) { \n - readDefaultPreferredAppsLPw ( service , NUMBER0 ) ; \n - } \n mInternalSdkPlatform = mExternalSdkPlatform = sdkVersion ; \n return false ; \n }", "msg_token": "Fix bug in initializing preferred activities"} {"diff": " public class TestClientCredentialsProvider { \n } \n SINGLE \n String header = responseHeaders . getFirst ( STRING0 ) ; \n - assertTrue ( STRING1 + header , header . contains ( STRING2 ) ) ; \n + assertTrue ( STRING1 + header , header . contains ( STRING3 ) ) ; \n assertEquals ( HttpStatus . UNAUTHORIZED , responseStatus ) ; \n } \n \n public class TestClientCredentialsProvider { \n } \n SINGLE \n String header = responseHeaders . getFirst ( STRING0 ) ; \n - assertTrue ( STRING1 + header , header . contains ( STRING2 ) ) ; \n + assertTrue ( STRING1 + header , header . contains ( STRING3 ) ) ; \n assertEquals ( HttpStatus . UNAUTHORIZED , responseStatus ) ; \n }", "msg_token": "Fix broken integration test"} {"diff": " final class PaintersHelper implements Painter . Listener { \n Graphics2D gg = scaled . createGraphics ( ) ; \n gg . setRenderingHint ( RenderingHints . KEY_INTERPOLATION , \n RenderingHints . VALUE_INTERPOLATION_BILINEAR ) ; \n + gg . setComposite ( AlphaComposite . Src ) ; \n gg . drawImage ( image , NUMBER0 , NUMBER0 , sw , sh , null ) ; \n gg . dispose ( ) ; \n } \n final class PaintersHelper implements Painter . Listener { \n if ( scaled == null ) { \n scaled = createImage ( g , w , h ) ; \n } \n - Graphics gg = scaled . getGraphics ( ) ; \n + Graphics2D gg = scaled . createGraphics ( ) ; \n + gg . setComposite ( AlphaComposite . Src ) ; \n gg . drawImage ( image , NUMBER0 , NUMBER0 , null ) ; \n gg . dispose ( ) ; \n }", "msg_token": "preserve original image transparency IJ logo in Darcula"} {"diff": " public class NotificationStackScrollLayout extends ViewGroup \n COMMENT \n COMMENT \n private boolean generateRemoveAnimation ( View child ) { \n + if ( mAddedHeadsUpChildren . contains ( child ) ) { \n + removeChildFromHeadsUpChangeAnimations ( child ) ; \n + mAddedHeadsUpChildren . remove ( child ) ; \n + return false ; \n + } \n if ( mIsExpanded && mAnimationsEnabled && ! isChildInInvisibleGroup ( child ) ) { \n - if ( ! mChildrenToAddAnimated . contains ( child ) && ! mAddedHeadsUpChildren . contains ( child ) ) { \n + if ( ! mChildrenToAddAnimated . contains ( child ) ) { \n SINGLE \n mChildrenToRemoveAnimated . add ( child ) ; \n mNeedsAnimation = true ; \n public class NotificationStackScrollLayout extends ViewGroup \n } else { \n mChildrenToAddAnimated . remove ( child ) ; \n mFromMoreCardAdditions . remove ( child ) ; \n - boolean remove = mAddedHeadsUpChildren . remove ( child ) ; \n - if ( remove ) { \n - removeChildFromHeadsUpChangeAnimations ( child ) ; \n - } \n return false ; \n } \n }", "msg_token": "Fixed a crash with HUNs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class IndicesStoreIntegrationTests extends ElasticsearchIntegrationTest { \n shardIds [ i ] = shardRouting . getId ( ) ; \n i ++ ; \n } \n + SINGLE \n + SINGLE \n + client ( ) . admin ( ) . cluster ( ) . prepareUpdateSettings ( ) . setTransientSettings ( settingsBuilder ( ) . put ( EnableAllocationDecider . CLUSTER_ROUTING_REBALANCE_ENABLE , EnableAllocationDecider . Rebalance . NONE ) ) . get ( ) ; \n internalCluster ( ) . getInstance ( ClusterService . class , node_2 ) . submitStateUpdateTask ( STRING0 , Priority . IMMEDIATE , new ClusterStateUpdateTask ( ) { \n @ override \n public ClusterState execute ( ClusterState currentState ) throws Exception {", "msg_token": "TEST fix unintended relocation"} {"diff": " public class EventBus \n \n public void register ( Object target ) \n { \n + if ( listeners . containsKey ( target ) ) \n + { \n + return ; \n + } \n + \n Set < ? extends Class < ? > > supers = TypeToken . of ( target . getClass ( ) ) . getTypes ( ) . rawTypes ( ) ; \n for ( Method method : target . getClass ( ) . getMethods ( ) ) \n {", "msg_token": "Ignore registration of a object that is already registered"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public final class InodeFileTests { \n Assert . assertFalse ( inode1 . equals ( inode3 ) ) ; \n } \n \n + @ test \n + public void getIdTest ( ) { \n + InodeFile inode1 = createInodeFile ( NUMBER0 ) ; \n + Assert . assertEquals ( createBlockId ( NUMBER0 ) , inode1 . getId ( ) ) ; \n + } \n + \n + private long createBlockId ( long containerId ) { \n + return BlockId . createBlockId ( containerId , BlockId . getMaxSequenceNumber ( ) ) ; \n + } \n + \n private static InodeFile createInodeFile ( long id ) { \n return new InodeFile ( STRING0 + id , id , NUMBER0 , Constants . KB , System . currentTimeMillis ( ) ) ; \n }", "msg_token": "Added getId test"} {"diff": " public class Way extends Entity { \n } \n return nodeIds . get ( nodeIds . size ( ) - NUMBER0 ) ; \n } \n + \n + public Node getFirstNode ( ) { \n + if ( nodes == null || nodes . size ( ) == NUMBER1 ) { \n + return null ; \n + } \n + return nodes . get ( NUMBER1 ) ; \n + } \n + \n + public Node getLastNode ( ) { \n + if ( nodes == null || nodes . size ( ) == NUMBER1 ) { \n + return null ; \n + } \n + return nodes . get ( nodes . size ( ) - NUMBER0 ) ; \n + } \n \n public void addNode ( Node n ) { \n if ( nodeIds == null ) {", "msg_token": "Fix road inconsistency"} {"diff": " public class SessionManager extends BasicModule { \n COMMENT \n public Session getBestRoute ( JID recipient ) { \n SINGLE \n - if ( ! serverName . equals ( recipient . getDomain ( ) ) ) { \n + if ( serverName == null || ! serverName . equals ( recipient . getDomain ( ) ) ) { \n return null ; \n } \n ClientSession session = null ; \n public class SessionManager extends BasicModule { \n } \n \n public void stop ( ) { \n + Log . debug ( STRING0 ) ; \n serverName = null ; \n if ( JiveGlobals . getBooleanProperty ( STRING1 ) ) { \n sendServerMessage ( null , LocaleUtils . getLocalizedString ( STRING2 ) ) ;", "msg_token": "Added sanity check to getBestRoute when shutting down server"} {"diff": " public abstract class TabbedLanguageCodeStylePanel extends CodeStyleAbstractPane \n \n @ override \n protected int getRightMargin ( ) { \n - return getSettings ( ) . RIGHT_MARGIN ; \n + return myProvider . getRightMargin ( LanguageCodeStyleSettingsProvider . SettingsType . INDENT_SETTINGS ) ; \n } \n \n @ override", "msg_token": "Fix a problem with JSPX code style settings preview as discussed with D Avdeev"} {"diff": " public class MergeInnerDifferences { \n } \n \n @ nullable \n - public List < TextRange > getLeft ( ) { \n - return myLeft ; \n - } \n - \n - @ nullable \n - public List < TextRange > getBase ( ) { \n - return myBase ; \n - } \n - \n - @ nullable \n - public List < TextRange > getRight ( ) { \n - return myRight ; \n - } \n - \n - @ nullable \n public List < TextRange > get ( @ notnull ThreeSide side ) { \n return side . select ( myLeft , myBase , myRight ) ; \n }", "msg_token": "remove unused getters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Moved package for SleepingIdleStrategy"} {"diff": " public class BuckClient { \n synchronized ( syncObject ) { \n mLastActionTime = ( new Date ( ) ) . getTime ( ) ; \n } \n - } catch ( Throwable t ) { \n - LOG . error ( STRING0 ) ; \n + } catch ( Exception e ) { \n + LOG . error ( STRING1 + e ) ; \n } \n } \n }", "msg_token": "Buck plugin show the exception when we get a ping exception"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultCompositeContextBuilder implements CompositeContextBuilder { \n participantStartParam . setIncludedBuilds ( Collections . < File > emptyList ( ) ) ; \n \n participantStartParam . setConfigureOnDemand ( false ) ; \n - if ( participantStartParam . getLogLevel ( ) == LogLevel . LIFECYCLE ) { \n - participantStartParam . setLogLevel ( LogLevel . WARN ) ; \n - LOGGER . lifecycle ( STRING0 + participant . getProjectDir ( ) ) ; \n - } \n + LOGGER . lifecycle ( STRING0 + participant . getProjectDir ( ) ) ; \n \n GradleLauncher gradleLauncher = createGradleLauncher ( participantStartParam , requestContext , gradleLauncherFactory ) ;", "msg_token": "Don t override the logging level for included builds"} {"diff": " public class JSONOutputterTest extends TestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n STRING4 + \n STRING5 + \n STRING6 + \n public class JSONOutputterTest extends TestCase { \n STRING7 + \n STRING1 + \n STRING8 + \n - STRING3 + \n STRING4 + \n STRING5 + \n STRING6 +", "msg_token": "Fix the JSON outputter test"} {"diff": " public class LocationManagerService extends ILocationManager . Stub { \n gpsProvider . disable ( ) ; \n } \n \n - FlpHardwareProvider flpHardwareProvider = FlpHardwareProvider . getInstance ( mContext ) ; \n - if ( FlpHardwareProvider . isSupported ( ) && flpHardwareProvider != null ) { \n + SINGLE \n + SINGLE \n + if ( FlpHardwareProvider . isSupported ( ) ) { \n + FlpHardwareProvider flpHardwareProvider = FlpHardwareProvider . getInstance ( mContext ) ; \n flpHardwareProvider . cleanup ( ) ; \n } \n }", "msg_token": "Fix exception while shutting down FLP HW"} {"diff": " public class Settings { \n } \n \n public boolean useDarkTheme ( ) { \n + return false ; \n + } \n + \n + public boolean useColoredProgressIndicator ( ) { \n return true ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class ProgressIndicatorDrawable extends Drawable { \n \n private final RectF mBounds = new RectF ( ) ; \n public class ProgressIndicatorDrawable extends Drawable { \n } \n \n public void setColor ( Integer rgb ) { \n + if ( Settings . get ( ) . useColoredProgressIndicator ( ) == false ) { \n + rgb = Settings . get ( ) . getThemedDefaultProgressColor ( ) ; \n + } \n + \n mColor = rgb ; \n mPaint . setColor ( rgb ) ; \n invalidateSelf ( ) ;", "msg_token": "Add setting for using colored progress indicator"} {"diff": " public abstract class GenericPathService implements PathService { \n return _indexService . getClosestVertex ( location , place . name , options ) ; \n } \n } \n - throw new UnsupportedOperationException ( STRING0 ) ; \n - SINGLE \n + SINGLE \n + return _graphService . getGraph ( ) . getVertex ( place . place ) ; \n } \n \n @ override", "msg_token": "allow vertex lookup by label for tests"} {"diff": " public class Frame extends Lockable < Frame > { \n _keys = Arrays . copyOf ( _keys , ncols + N ) ; \n _vecs = Arrays . copyOf ( _vecs , ncols + N ) ; \n for ( int i = NUMBER0 ; i < N ; ++ i ) { \n - _names [ ncols + i ] = names [ i ] ; \n + _names [ ncols + i ] = tmpnames [ i ] ; \n _keys [ ncols + i ] = vecs [ i ] . _key ; \n _vecs [ ncols + i ] = vecs [ i ] ; \n }", "msg_token": "Fix a typo in previous commit"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc reference"} {"diff": " public class DeploymentOverlayHandler extends CommandHandlerWithHelp { \n if ( path . length ( ) == NUMBER0 ) { \n throw new CommandFormatException ( STRING0 + pair + STRING1 ) ; \n } \n + String originalPath = path ; \n path = pathCompleter . translatePath ( path ) ; \n final File f = new File ( path ) ; \n if ( ! f . exists ( ) ) { \n - throw new CommandFormatException ( STRING2 + f . getAbsolutePath ( ) + STRING3 + pathCompleter + STRING4 + Util . isWindows ( ) ) ; \n + throw new CommandFormatException ( STRING2 + f . getAbsolutePath ( ) + STRING3 + originalPath + STRING3 + path ) ; \n } \n contentPaths [ i ] = f ; \n }", "msg_token": "temporarily added more debugging info to the error message"} {"diff": " public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte \n SINGLE \n channel . initChannel ( this , routeContext ) ; \n \n + ProcessorDefinition defn = ( ProcessorDefinition ) this ; \n + \n SINGLE \n - if ( this instanceof TryDefinition || this instanceof CatchDefinition || this instanceof FinallyDefinition ) { \n + if ( defn instanceof TryDefinition || defn instanceof CatchDefinition || defn instanceof FinallyDefinition ) { \n SINGLE \n return channel ; \n } else { \n public abstract class ProcessorDefinition < Type extends ProcessorDefinition > exte \n SINGLE \n SINGLE \n SINGLE \n - if ( this instanceof TryDefinition ) { \n + ProcessorDefinition defn = ( ProcessorDefinition ) this ; \n + if ( defn instanceof TryDefinition ) { \n popBlock ( ) ; \n }", "msg_token": "Fix compile issues on AIX"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FindDialog extends DialogWrapper { \n if ( component instanceof EditorTextField ) { \n final Document document = ( ( EditorTextField ) component ) . getDocument ( ) ; \n if ( document != null ) { \n - PsiDocumentManager . getInstance ( myProject ) . commitDocument ( document ) ; \n + TransactionGuard . submitTransaction ( ( ) - > PsiDocumentManager . getInstance ( myProject ) . commitDocument ( document ) ) ; \n } \n }", "msg_token": "commit query document in a transaction"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n class ResponseBuffers implements Closeable { \n private final ReplyHeader replyHeader ; \n private final ByteBuf bodyByteBuffer ;", "msg_token": "Removed Javadoc from non public class"} {"diff": " public final class MediaSession { \n if ( TextUtils . isEmpty ( tag ) ) { \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n - mCbStub = new CallbackStub ( ) ; \n + mCbStub = new CallbackStub ( this ) ; \n MediaSessionManager manager = ( MediaSessionManager ) context \n . getSystemService ( Context . MEDIA_SESSION_SERVICE ) ; \n try { \n public final class MediaSession { \n public static class CallbackStub extends ISessionCallback . Stub { \n private WeakReference < MediaSession > mMediaSession ; \n \n - public void setMediaSession ( MediaSession session ) { \n + public CallbackStub ( MediaSession session ) { \n mMediaSession = new WeakReference < MediaSession > ( session ) ; \n }", "msg_token": "Fix crash when calling MediaSession callback"} {"diff": " public final class AnnotationUseStyleCheck extends Check \n COMMENT \n private TrailingArrayComma mComma = TrailingArrayComma . NEVER ; \n \n - COMMENT \n + COMMENT \n private ClosingParens mParens = ClosingParens . NEVER ; \n \n COMMENT \n public final class MissingOverrideCheck extends Check \n private static final Pattern MATCH_INHERITDOC = \n Utils . createPattern ( STRING0 ) ; \n \n - COMMENT \n + COMMENT \n private boolean mJavaFiveCompatibility ; \n \n COMMENT \n final class ChecksumInfo \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private void sort ( ) \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class OneStatementPerLineCheckInput { \n COMMENT", "msg_token": "Fixed javadoc issues strange that project checker didn t catch it during verify phase"} {"diff": " public abstract class Chart < T extends ChartData < ? extends IDataSet < ? extends Ent \n int xIndex = highlight . getXIndex ( ) ; \n int dataSetIndex = highlight . getDataSetIndex ( ) ; \n \n - float deltaX = mXAxis . mAxisRange ; \n + float deltaX = mXAxis != null \n + ? mXAxis . mAxisRange \n + : ( ( mData == null ? FLOAT0 : mData . getXValCount ( ) ) - FLOAT1 ) ; \n \n if ( xIndex <= deltaX && xIndex <= deltaX * mAnimator . getPhaseX ( ) ) {", "msg_token": "Fixed a null exception when using markers with pie chart"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n + import NAMESPACE ; \n \n \n COMMENT \n public class ConvolutionLayer extends BaseLayer { \n public INDArray calculateDelta ( INDArray epsilon ) { \n INDArray z = preOutput ( true ) ; \n INDArray activationDerivative = Nd4j . getExecutioner ( ) . execAndReturn ( Nd4j . getOpFactory ( ) . createTransform ( conf ( ) . getActivationFunction ( ) , z ) . derivative ( ) ) ; \n - return epsilon . mmul ( activationDerivative ) ; \n + if ( ! Arrays . equals ( z . shape ( ) , activationDerivative . shape ( ) ) ) \n + throw new IllegalStateException ( STRING0 ) ; \n + return z . muli ( activationDerivative ) ; \n \n }", "msg_token": "make element wise multiplication"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - \n + import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ClassCompletionVerifier extends ClassCodeVisitorSupport implements Opcodes { \n + public class ClassCompletionVerifier extends ClassCodeVisitorSupport { \n \n private ClassNode currentClass ; \n private SourceUnit source ;", "msg_token": "change recently added implements in static import"} {"diff": " public class SMTestRunnerResultsForm extends TestResultsPanel \n fireOnTestingFinished ( ) ; \n \n if ( testsRoot . isEmptySuite ( ) && \n - ! testsRoot . isInterrupted ( ) && \n + testsRoot . isTestsReporterAttached ( ) && \n myConsoleProperties instanceof SMTRunnerConsoleProperties && \n ( ( SMTRunnerConsoleProperties ) myConsoleProperties ) . fixEmptySuite ( ) ) { \n return ;", "msg_token": "hide suggestions to start with another module if tests were interrupted during search for tests phase"} {"diff": " public class DruidSQLPanel extends DruidPanel { \n { \n add ( STRING0 ) ; \n add ( STRING1 ) ; \n - add ( STRING2 ) ; \n + add ( STRING3 ) ; \n add ( STRING4 ) ; \n add ( STRING5 ) ; \n add ( STRING6 ) ; \n add ( STRING7 ) ; \n add ( STRING8 ) ; \n add ( STRING9 ) ; \n + add ( STRING10 ) ; \n add ( STRING11 ) ; \n add ( STRING12 ) ; \n add ( STRING13 ) ;", "msg_token": "modify the column names of druid sql panel"} {"diff": " public class ProjectStructureConfigurable extends BaseConfigurable implements Se \n myToolbarComponent = toolbar . getComponent ( ) ; \n if ( Registry . is ( STRING0 ) ) { \n left . setBackground ( UIUtil . getSidePanelColor ( ) ) ; \n - } else { \n - left . add ( myToolbarComponent , BorderLayout . NORTH ) ; \n + myToolbarComponent . setBackground ( UIUtil . getSidePanelColor ( ) ) ; \n } \n + left . add ( myToolbarComponent , BorderLayout . NORTH ) ; \n left . add ( mySidePanel , BorderLayout . CENTER ) ; \n \n mySplitter . setFirstComponent ( left ) ;", "msg_token": "get navigation history back"} {"diff": " import NAMESPACE ; \n public final class Native implements Version { \n \n public static final String DEFAULT_ENCODING = STRING0 ; \n - static final boolean DEBUG_LOAD = Boolean . getBoolean ( STRING1 ) ; \n - static final boolean DEBUG_JNA_LOAD = Boolean . getBoolean ( STRING2 ) ; \n + public static boolean DEBUG_LOAD = Boolean . getBoolean ( STRING1 ) ; \n + public static boolean DEBUG_JNA_LOAD = Boolean . getBoolean ( STRING2 ) ; \n \n SINGLE \n static String jnidispatchPath = null ;", "msg_token": "Make native debug flags toggleable at runtime"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class DebuggerSessionTabBase implements DebuggerLogConsoleManage \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - ProjectUtil . focusProjectWindow ( getProject ( ) , Registry . is ( STRING0 ) ) ; \n + boolean focusWnd = Registry . is ( STRING0 ) ; \n + ProjectUtil . focusProjectWindow ( getProject ( ) , focusWnd ) ; \n + if ( ! focusWnd ) { \n + AppIcon . getInstance ( ) . requestAttention ( true ) ; \n + } \n } \n } ) ; \n }", "msg_token": "debugger session tab make app icon bounce if set up no to focus project window"} {"diff": " public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter \n } \n } \n \n - protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , RecyclableArrayList out ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , List < Object > out ) { \n try { \n while ( in . isReadable ( ) ) { \n int outSize = out . size ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public abstract class ReplayingDecoder < S > extends ByteToMessageDecoder { \n } \n \n @ override \n - protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , RecyclableArrayList out ) { \n + protected void callDecode ( ChannelHandlerContext ctx , ByteBuf in , List < Object > out ) { \n replayable . setCumulation ( in ) ; \n try { \n while ( in . isReadable ( ) ) {", "msg_token": "Hide RecyclableArrayList from sub classes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StudyToolWindow extends SimpleToolWindowPanel implements DataProvid \n STRING0 + font . getSize ( ) + STRING1 ; \n ( ( HTMLDocument ) taskTextPane . getDocument ( ) ) . getStyleSheet ( ) . addRule ( bodyRule ) ; \n taskTextPane . setEditable ( false ) ; \n - taskTextPane . setBackground ( EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) . getDefaultBackground ( ) ) ; \n + if ( ! UIUtil . isUnderDarcula ( ) ) { \n + taskTextPane . setBackground ( EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) . getDefaultBackground ( ) ) ; \n + } \n taskTextPane . setBorder ( new EmptyBorder ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ) ; \n return taskTextPane ; \n }", "msg_token": "do not change task description tool window background in darcula"} {"diff": " public class LinuxPlatform extends DefaultPlatform { \n ( ! javaVendor . contains ( STRING0 ) && ! javaVendor . contains ( STRING1 ) ) || \n javaVM == null || ! javaVM . contains ( STRING2 ) ) { \n Messages . showWarning ( STRING3 , \n - STRING4 + \n - STRING5 + \n + STRING6 + \n + STRING7 + \n STRING8 + \n STRING9 + \n STRING10 + \n - STRING11 , null ) ; \n + STRING12 , null ) ; \n } \n \n SINGLE", "msg_token": "Update JVM warning text on Linux"} {"diff": " public final class XContentBuilder implements BytesStream , Releasable { \n generator . writeNull ( ) ; \n return ; \n } \n + assert false == value instanceof TimeValue : STRING0 ; \n Class < ? > type = value . getClass ( ) ; \n Writer writer = MAP . get ( type ) ; \n if ( writer != null ) {", "msg_token": "Don t allow XContentBuilder writeValue TimeValue"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class IgnitedLocationSupport { \n \n return providers ; \n } \n + \n + public static boolean isFromGps ( Location location ) { \n + return location . getProvider ( ) . equals ( LocationManager . GPS_PROVIDER ) ; \n + } \n + \n + public static boolean isFromNetwork ( Location location ) { \n + return location . getProvider ( ) . equals ( LocationManager . NETWORK_PROVIDER ) ; \n + } \n + \n + public static boolean isGpsProviderEnabled ( Context context ) { \n + return getEnabledProviders ( context . getApplicationContext ( ) ) . contains ( \n + LocationManager . GPS_PROVIDER ) ; \n + } \n + \n + public static boolean isNetworkProviderEnabled ( Context context ) { \n + return getEnabledProviders ( context . getApplicationContext ( ) ) . contains ( \n + LocationManager . NETWORK_PROVIDER ) ; \n + } \n }", "msg_token": "Added some helper methods to IgnitedLocationSupport class"} {"diff": " public class SwingHelper { \n TextComponentAccessor . TEXT_FIELD_WHOLE_TEXT ) ; \n } \n \n - private static < T extends JComponent > void doInstall ( @ nullable Project project , \n + public static < T extends JComponent > void doInstall ( @ nullable Project project , \n @ notnull ComponentWithBrowseButton < T > componentWithBrowseButton , \n @ notnull JTextField textField , \n @ notnull String browseDialogTitle ,", "msg_token": "have caching service for keeping recalculating known node js interpreters and their versions"} {"diff": " public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > , \n } \n app . addInstance ( decorateInstanceInfo ( lease ) ) ; \n } \n + Applications allAppsInLocalRegion = getApplications ( false ) ; \n + \n for ( RemoteRegionRegistry remoteRegistry : this . remoteRegionRegistryList ) { \n Applications applications = remoteRegistry \n . getApplicationDeltas ( ) ; \n for ( Application application : applications \n . getRegisteredApplications ( ) ) { \n - Application appInLocalRegistry = apps \n + Application appInLocalRegistry = allAppsInLocalRegion \n . getRegisteredApplications ( application . getName ( ) ) ; \n if ( appInLocalRegistry == null ) { \n apps . addApplication ( application ) ;", "msg_token": "Fixes the scenario where the deltas don t work in the case of interactions with a remote region registry"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed unused imports checkstyle problem"} {"diff": " public class IndexIO \n } \n \n Set < String > colSet = Sets . newTreeSet ( ) ; \n - colSet . addAll ( Lists . newArrayList ( index . getAvailableDimensions ( ) ) ) ; \n - colSet . addAll ( Lists . newArrayList ( index . getAvailableMetrics ( ) ) ) ; \n + for ( String dimension : index . getAvailableDimensions ( ) ) { \n + colSet . add ( dimension . toLowerCase ( ) ) ; \n + } \n + for ( String metric : index . getAvailableMetrics ( ) ) { \n + colSet . add ( metric . toLowerCase ( ) ) ; \n + } \n \n String [ ] cols = colSet . toArray ( new String [ colSet . size ( ) ] ) ;", "msg_token": "Fix bug with loading old indexes that might have mixed case column names"} {"diff": " class IRFactory { \n } \n \n Node processYield ( YieldExpressionTree tree ) { \n - Node yield = new Node ( Token . YIELD ) ; \n + Node yield = newNode ( Token . YIELD ) ; \n if ( tree . expression != null ) { \n yield . addChildToBack ( transform ( tree . expression ) ) ; \n }", "msg_token": "Properly set the source file name on YIELD nodes"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n \n COMMENT \n public class TimeRetentionStrategy implements RetentionStrategy { \n } \n try { \n TimeUnit segmentTimeUnit = segmentZKMetadata . getTimeUnit ( ) ; \n + if ( segmentTimeUnit == null ) { \n + return false ; \n + } \n long endsMills = segmentTimeUnit . toMillis ( segmentZKMetadata . getEndTime ( ) ) ; \n Duration segmentTimeUntilNow = new Duration ( endsMills , System . currentTimeMillis ( ) ) ; \n if ( _retentionDuration . isShorterThan ( segmentTimeUntilNow ) ) {", "msg_token": "making sure that we skip retention strategy if time column is null"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RestoreUpdateTree implements ProjectComponent , JDOMExternalizable { \n if ( myUpdateInfo != null && ! myUpdateInfo . isEmpty ( ) && ProjectReloadState . getInstance ( myProject ) . isAfterAutomaticReload ( ) ) { \n ActionInfo actionInfo = myUpdateInfo . getActionInfo ( ) ; \n if ( actionInfo != null ) { \n - ProjectLevelVcsManagerEx . getInstanceEx ( myProject ) . showUpdateProjectInfo ( myUpdateInfo . getFileInformation ( ) , VcsBundle . message ( STRING0 ) , actionInfo ) ; \n + ProjectLevelVcsManagerEx . getInstanceEx ( myProject ) . showUpdateProjectInfo ( myUpdateInfo . getFileInformation ( ) , \n + VcsBundle . message ( STRING0 ) , actionInfo ) ; \n + CommittedChangesCache . getInstance ( myProject ) . refreshIncomingChangesAsync ( ) ; \n } \n myUpdateInfo = null ; \n }", "msg_token": "refresh incoming changes after update and project reload"} {"diff": " public class XmppConnection extends ImConnection implements CallbackHandler \n { \n \n private final static String TAG = STRING0 ; \n + private final static boolean DEBUG_ENABLED = false ; \n + \n private XmppContactList mContactListManager ; \n private Contact mUser ; \n \n public class XmppConnection extends ImConnection implements CallbackHandler \n \n } \n \n - mConfig . setDebuggerEnabled ( true ) ; \n + mConfig . setDebuggerEnabled ( DEBUG_ENABLED ) ; \n mConfig . setSASLAuthenticationEnabled ( useSASL ) ;", "msg_token": "turned off xmpp low level debugging by default"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n - @ websocket ( maxTextMessageSize = NUMBER0 * NUMBER1 ) \n + SINGLE \n + @ websocket ( maxTextMessageSize = NUMBER2 * NUMBER1 * NUMBER1 ) \n public class BuckSocket { \n private final CountDownLatch closeLatch ;", "msg_token": "Increased maximum text message size"} {"diff": " public class HttpProducer extends DefaultProducer { \n } \n } \n \n + SINGLE \n + if ( method . getHostConfiguration ( ) . getHost ( ) == null ) { \n + throw new IllegalArgumentException ( STRING0 + url \n + + STRING1 + getEndpoint ( ) ) ; \n + } \n + \n return method ; \n } \n \n public class HttpProducer extends DefaultProducer { \n queryString = getEndpoint ( ) . getHttpUri ( ) . getRawQuery ( ) ; \n } \n \n + if ( uri . getScheme ( ) == null || uri . getHost ( ) == null ) { \n + throw new IllegalArgumentException ( STRING0 + uri \n + + STRING1 + getEndpoint ( ) ) ; \n + } \n + \n StringBuilder builder = new StringBuilder ( uri . getScheme ( ) ) . append ( STRING2 ) . append ( uri . getHost ( ) ) ; \n \n if ( uri . getPort ( ) != - NUMBER0 ) {", "msg_token": "Improved error message if bridging endpoints and end user have not enabled the bridgeEndpoint option"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HistoryCompletionManager implements KeyDownPreviewHandler , \n dismiss ( ) ; \n } \n } ) ; \n + \n + popup_ . addCloseHandler ( new CloseHandler < PopupPanel > ( ) { \n + \n + @ override \n + public void onClose ( CloseEvent < PopupPanel > event ) \n + { \n + popup_ = null ; \n + } \n + \n + } ) ; \n } \n } ) ; \n } \n public class HistoryPopupPanel extends ThemedPopupPanel \n { \n public HistoryPopupPanel ( String [ ] entries ) \n { \n + super ( true ) ; \n list_ = new CompletionList < String > ( entries , NUMBER0 , false , true ) ; \n setWidget ( list_ ) ; \n }", "msg_token": "make history popup panel auto hide"} {"diff": " public class WebMvcConfigurationSupportTests { \n \n \n @ responsestatus ( value = HttpStatus . BAD_REQUEST , reason = STRING0 ) \n + @ suppresswarnings ( STRING1 ) \n public static class UserAlreadyExistsException extends RuntimeException { \n }", "msg_token": "Remove compiler warning"} {"diff": " public class GitPane extends WorkbenchPane implements Display \n final ToolbarPopupMenu menu = new ToolbarPopupMenu ( ) ; \n \n menu . addItem ( commands_ . vcsDiff ( ) . createMenuItem ( false ) ) ; \n - menu . addSeparator ( ) ; \n menu . addItem ( commands_ . vcsRevert ( ) . createMenuItem ( false ) ) ; \n - menu . addItem ( commands_ . vcsCommit ( ) . createMenuItem ( false ) ) ; \n menu . addSeparator ( ) ; \n menu . addItem ( commands_ . vcsOpen ( ) . createMenuItem ( false ) ) ;", "msg_token": "remove commit from git pane context menu"} {"diff": " public class SlidingUpPanelLayout extends ViewGroup { \n \n @ override \n public void computeScroll ( ) { \n - if ( mDragHelper . continueSettling ( true ) ) { \n + if ( mDragHelper != null && mDragHelper . continueSettling ( true ) ) { \n if ( ! isSlidingEnabled ( ) ) { \n mDragHelper . abort ( ) ; \n return ;", "msg_token": "Fixed preview in Android studio"} {"diff": " public class OProfilerData { \n currentValue = ( ( Double ) currentValue ) . doubleValue ( ) + ( ( Double ) otherValue ) . doubleValue ( ) ; \n else if ( currentValue instanceof Boolean ) \n currentValue = otherValue ; \n + else if ( currentValue instanceof String ) \n + currentValue = otherValue ; \n else \n - OLogManager . instance ( ) . warn ( this , STRING0 , entry . getKey ( ) , \n - entry . getValue ( ) ) ; \n + OLogManager . instance ( ) . warn ( this , STRING1 , \n + currentValue , entry . getKey ( ) , entry . getValue ( ) ) ; \n } \n \n hooks . put ( entry . getKey ( ) , currentValue ) ;", "msg_token": "Fixed bug on profiler"} {"diff": " public class JettyWebAppContext extends WebAppContext \n \n \n \n - private static final String DEFAULT_CONTAINER_INCLUDE_JAR_PATTERN = STRING0 ; \n + private static final String DEFAULT_CONTAINER_INCLUDE_JAR_PATTERN = STRING1 ; \n private static final String WEB_INF_CLASSES_PREFIX = STRING2 ; \n private static final String WEB_INF_LIB_PREFIX = STRING3 ;", "msg_token": "Scan tlds for apache jasper standard taglib with jetty maven plugin"} {"diff": " public class BuildCheckpoints { \n public void notifyNewBestBlock ( StoredBlock block ) throws VerificationException { \n int height = block . getHeight ( ) ; \n if ( height % params . getInterval ( ) == NUMBER0 && block . getHeader ( ) . getTimeSeconds ( ) <= timeAgo ) { \n - System . out . println ( String . format ( STRING0 , \n - block . getHeader ( ) . getHash ( ) , block . getHeight ( ) ) ) ; \n + System . out . println ( String . format ( STRING1 , \n + block . getHeader ( ) . getHash ( ) , block . getHeight ( ) , Utils . dateTimeFormat ( block . getHeader ( ) . getTime ( ) ) ) ) ; \n checkpoints . put ( height , block ) ; \n } \n }", "msg_token": "Print time of checkpoint blocks"} {"diff": " public class WifiConfiguration implements Parcelable { \n return mHasEverConnected ; \n } \n \n - private NetworkSelectionStatus ( ) { \n + public NetworkSelectionStatus ( ) { \n SINGLE \n mHasEverConnected = false ; \n } ; \n public class WifiConfiguration implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - private final NetworkSelectionStatus mNetworkSelectionStatus = new NetworkSelectionStatus ( ) ; \n + private NetworkSelectionStatus mNetworkSelectionStatus = new NetworkSelectionStatus ( ) ; \n \n COMMENT \n COMMENT \n public class WifiConfiguration implements Parcelable { \n public NetworkSelectionStatus getNetworkSelectionStatus ( ) { \n return mNetworkSelectionStatus ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setNetworkSelectionStatus ( NetworkSelectionStatus status ) { \n + mNetworkSelectionStatus = status ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make NetworkSelectionStatus public"} {"diff": " public class JBTerminalPanel extends TerminalPanel { \n protected BufferedImage createBufferedImage ( int width , int height ) { \n return UIUtil . createImage ( width , height , BufferedImage . TYPE_INT_ARGB ) ; \n } \n + \n + @ override \n + protected void drawImage ( Graphics2D g , BufferedImage image ) { \n + UIUtil . drawImage ( g , image , null , NUMBER0 , NUMBER0 ) ; \n + } \n \n public String getFontName ( ) { \n List < String > fonts = myColorScheme . getConsoleFontPreferences ( ) . getEffectiveFontFamilies ( ) ;", "msg_token": "Draw image override"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SourceWindow implements LastSourceDocClosedHandler , \n public void onReadyToQuit ( boolean saveChanges ) \n { \n markReadyToClose ( ) ; \n - WindowEx . get ( ) . close ( ) ; \n + \n + SINGLE \n + SINGLE \n + Scheduler . get ( ) . scheduleDeferred ( \n + new Scheduler . ScheduledCommand ( ) \n + { \n + @ override \n + public void execute ( ) \n + { \n + WindowEx . get ( ) . close ( ) ; \n + } \n + } ) ; \n } \n } ;", "msg_token": "on Qt it can take two clicks to close a source window"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface ConfigAttribute {", "msg_token": "Corrected author tag"} {"diff": " public class TypeCheckTest extends CompilerTypeTestCase { \n STRING0 ) ; \n } \n \n + public void testDataPropertyOnInterface4 ( ) throws Exception { \n + testTypes ( STRING1 + \n + STRING2 + \n + STRING3 + \n + STRING4 + \n + STRING5 + \n + STRING6 , \n + STRING7 + \n + STRING8 + \n + STRING9 + \n + STRING0 ) ; \n + } \n + \n public void testWarnDataPropertyOnInterface3 ( ) throws Exception { \n testTypes ( STRING10 + \n STRING11 ,", "msg_token": "Add an interface data member test case"} {"diff": " public class OWALPageChangesPortion implements OWALChanges { \n } else \n try { \n System . arraycopy ( chunk , chunkOffset , data , read , rl ) ; \n - } catch ( Exception e ) { \n + } catch ( RuntimeException e ) { \n OLogManager . instance ( ) . error ( this , \n STRING0 + chunk . length + STRING1 + chunkOffset + STRING2 \n + data . length + STRING3 + read + STRING4 + rl , e ) ;", "msg_token": "System arraycopy logging fix"} {"diff": " public class TxManager extends AbstractTransactionManager \n fc . write ( buf ) ; \n fc . force ( true ) ; \n fc . close ( ) ; \n + msgLog . logMessage ( STRING0 + newFileName , true ) ; \n } \n \n void setTmNotOk ( Throwable cause )", "msg_token": "Added logging to mark which active txlog has been set"} {"diff": " import NAMESPACE ; \n public interface BuildOperationProcessor { \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improving javadoc comment to mention thread safety of worker"} {"diff": " public final class WebViewCore { \n int x = msg . arg1 ; \n int y = msg . arg2 ; \n if ( ! nativeSelectWordAt ( mNativeClass , x , y ) ) { \n - mWebView . mPrivateHandler . obtainMessage ( WebViewClassic . SHOW_CARET_HANDLE ) \n + mWebViewClassic . mPrivateHandler . obtainMessage ( WebViewClassic . SHOW_CARET_HANDLE ) \n . sendToTarget ( ) ; \n } \n break ;", "msg_token": "Fix merge error"} {"diff": " public final class GtasksSyncService { \n GtasksInvoker invoker = new GtasksInvoker ( gtasksPreferenceService . getToken ( ) ) ; \n if ( op instanceof TaskPushOp ) { \n TaskPushOp taskPush = ( TaskPushOp ) op ; \n - pushTaskOnSave ( taskPush . model , taskPush . model . getSetValues ( ) , invoker , true ) ; \n + pushTaskOnSave ( taskPush . model , taskPush . model . getMergedValues ( ) , invoker , true ) ; \n } else if ( op instanceof MoveOp ) { \n MoveOp move = ( MoveOp ) op ; \n pushMetadataOnSave ( move . metadata , invoker ) ; \n public class QuickAddBar extends LinearLayout { \n } \n \n Flags . set ( Flags . ACTFM_SUPPRESS_SYNC ) ; \n - Flags . set ( Flags . GTASKS_SUPPRESS_SYNC ) ; \n + if ( deadlineControl . isDeadlineSet ( ) ) SINGLE \n + Flags . set ( Flags . GTASKS_SUPPRESS_SYNC ) ; \n Task task = TaskService . createWithValues ( fragment . getFilter ( ) . valuesForNewTasks , title , \n taskService , metadataService ) ;", "msg_token": "Fixed issues with Gtasks sync on save"} {"diff": " public final class GenericRecommenderIRStatsEvaluator implements RecommenderIRSt \n idealizedGain += discount ; \n } \n } \n - nDCG . addDatum ( cumulativeGain / idealizedGain ) ; \n + if ( idealizedGain > FLOAT0 ) { \n + nDCG . addDatum ( cumulativeGain / idealizedGain ) ; \n + } \n \n SINGLE \n numUsersRecommendedFor ++ ;", "msg_token": "Prevent NaN in corner case of nDCG calculation"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( Parameterized . class ) \n + @ sdksuppress ( minSdkVersion = Build . VERSION_CODES . LOLLIPOP ) \n public class StaggeredGridLayoutManagerCacheTest extends BaseStaggeredGridLayoutManagerTest { \n \n final Config mConfig ;", "msg_token": "Fix StaggaredGridLayoutManagerCacheTest to avoid older versions"} {"diff": " public class NeoStore extends AbstractStore \n private RelationshipStore relStore ; \n private RelationshipTypeStore relTypeStore ; \n private final LastCommittedTxIdSetter lastCommittedTxIdSetter ; \n + private boolean isStarted ; \n \n private final int REL_GRAB_SIZE ; \n \n public class NeoStore extends AbstractStore \n } \n setRecord ( NUMBER0 , txId ) ; \n SINGLE \n - if ( lastCommittedTxIdSetter != null && txId == getLastCommittedTx ( ) + NUMBER1 ) \n + if ( isStarted && lastCommittedTxIdSetter != null && txId == getLastCommittedTx ( ) + NUMBER1 ) \n { \n lastCommittedTxIdSetter . setLastCommittedTxId ( txId ) ; \n } \n public class NeoStore extends AbstractStore \n relStore . makeStoreOk ( ) ; \n nodeStore . makeStoreOk ( ) ; \n super . makeStoreOk ( ) ; \n + isStarted = true ; \n } \n \n - \n public void rebuildIdGenerators ( ) \n { \n relTypeStore . rebuildIdGenerators ( ) ;", "msg_token": "Fix to distunguish between recovery and HA apply log"} {"diff": " public class DiagnosticGroups { \n CheckJSDocStyle . MISSING_JSDOC , \n CheckJSDocStyle . EXTERNS_FILES_SHOULD_BE_ANNOTATED , \n CheckJSDocStyle . INCORRECT_PARAM_NAME , \n + CheckJSDocStyle . INVALID_SUPPRESS , \n CheckJSDocStyle . MIXED_PARAM_JSDOC_STYLES , \n CheckJSDocStyle . MUST_BE_PRIVATE , \n CheckJSDocStyle . OPTIONAL_PARAM_NOT_MARKED_OPTIONAL ,", "msg_token": "Add INVALID_SUPPRESS to lint checks so it will be reported at the correct level"} {"diff": " public class ModelBuildingAdapter extends BuildAdapter { \n \n @ override \n public void projectsEvaluated ( Gradle gradle ) { \n - if ( configurer != null ) { \n - configurer . configure ( ( GradleInternal ) gradle ) ; \n - } \n + configurer . configure ( ( GradleInternal ) gradle ) ; \n builder . buildAll ( ( GradleInternal ) gradle ) ; \n }", "msg_token": "simplified the code a bit"} {"diff": " public class TileLaser extends TileBuildCraft implements IPowerReceptor { \n } \n \n protected void findTable ( ) { \n - System . out . println ( STRING0 ) ; \n int meta = worldObj . getBlockMetadata ( xCoord , yCoord , zCoord ) ; \n \n int minX = xCoord - NUMBER0 ;", "msg_token": "Remove debug output"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StoreSwapper { \n Cluster cluster = new ClusterMapper ( ) . readCluster ( new StringReader ( clusterStr ) ) ; \n ExecutorService executor = Executors . newFixedThreadPool ( NUMBER0 ) ; \n HttpConnectionManager manager = new MultiThreadedHttpConnectionManager ( ) ; \n + \n + int numConnections = cluster . getNumberOfNodes ( ) + NUMBER1 ; \n + manager . getParams ( ) . setMaxTotalConnections ( numConnections ) ; \n + manager . getParams ( ) . setMaxConnectionsPerHost ( HostConfiguration . ANY_HOST_CONFIGURATION , \n + numConnections ) ; \n HttpClient client = new HttpClient ( manager ) ; \n + client . getParams ( ) . setParameter ( STRING0 , NUMBER1 * NUMBER2 * NUMBER2 * NUMBER3 ) ; \n + \n StoreSwapper swapper = new StoreSwapper ( cluster , executor , client , mgmtPath , filePath ) ; \n swapper . swapStoreData ( storeName ) ; \n logger . info ( STRING1 ) ;", "msg_token": "Set timeout for main method"} {"diff": " public class ChunkSampleSource implements SampleSource , SampleSourceReader , Load \n boolean haveSamples = ! sampleQueue . isEmpty ( ) ; \n BaseMediaChunk currentChunk = mediaChunks . getFirst ( ) ; \n while ( haveSamples && mediaChunks . size ( ) > NUMBER0 \n - && mediaChunks . get ( NUMBER0 ) . getFirstSampleIndex ( ) == sampleQueue . getReadIndex ( ) ) { \n + && mediaChunks . get ( NUMBER0 ) . getFirstSampleIndex ( ) <= sampleQueue . getReadIndex ( ) ) { \n mediaChunks . removeFirst ( ) ; \n currentChunk = mediaChunks . getFirst ( ) ; \n }", "msg_token": "Added robustness for chunk removal"} {"diff": " public class EventsLogger implements AtmosphereResourceEventListener { \n public EventsLogger ( ) { \n } \n \n - @ override \n public void onSuspend ( final AtmosphereResourceEvent < HttpServletRequest , HttpServletResponse > event ) { \n System . out . println ( STRING0 + event ) ; \n }", "msg_token": "remove unused override annotation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n class ServerConnection extends ConnectionBase { \n private boolean channelPaused ; \n private boolean paused ; \n private boolean sentCheck ; \n - private final Queue < Object > pending = new LinkedList < > ( ) ; \n + private final Queue < Object > pending = new ArrayDeque < > ( NUMBER0 ) ; \n private final String serverOrigin ; \n private final DefaultHttpServer server ; \n private ChannelFuture lastWriteFuture ;", "msg_token": "Replace LinkedList with ArrayDeque for constant time size operation"} {"diff": " public final class OAuth2AuthorizationServerConfigurer extends \n TokenStoreUserApprovalHandler userApprovalHandler = new TokenStoreUserApprovalHandler ( ) ; \n userApprovalHandler . setTokenStore ( tokenStore ( ) ) ; \n userApprovalHandler . setClientDetailsService ( clientDetails ( ) ) ; \n + userApprovalHandler . setRequestFactory ( new DefaultOAuth2RequestFactory ( clientDetailsService ( ) ) ) ; \n + this . userApprovalHandler = userApprovalHandler ; \n } \n return this . userApprovalHandler ; \n } \n import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class AuthorizationServerConfigurationTests { \n public void run ( ) { \n assertNotNull ( context . getBean ( STRING0 , ClientDetailsService . class ) . loadClientByClientId ( \n STRING1 ) ) ; \n + assertNotNull ( ReflectionTestUtils . getField ( context . getBean ( AuthorizationEndpoint . class ) , STRING2 ) ) ; \n } \n \n }", "msg_token": "Add user approval handler to default configuration"} {"diff": " public class ParameterizedNamesTest { \n @ runwith ( Parameterized . class ) \n public static class ParametrizedWithSpecialCharsInName { \n \n - @ suppresswarnings ( STRING0 ) \n public ParametrizedWithSpecialCharsInName ( String s ) { \n }", "msg_token": "Remove unnecessary unused suppression"} {"diff": " public class TextField extends Widget { \n invalidateHierarchy ( ) ; \n } \n \n + COMMENT \n public void setPasswordCharacter ( char passwordCharacter ) { \n this . passwordCharacter = passwordCharacter ; \n + updateDisplayText ( ) ; \n } \n \n COMMENT \n public class TextField extends Widget { \n COMMENT \n public void setPasswordMode ( boolean passwordMode ) { \n this . passwordMode = passwordMode ; \n + updateDisplayText ( ) ; \n } \n \n public void setBlinkTime ( float blinkTime ) {", "msg_token": "Update display text immediately after password character or password"} {"diff": " public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > , \n if ( leaseToRenew == null ) { \n RENEW_NOT_FOUND . increment ( isReplication ) ; \n logger . warn ( STRING0 \n - + appName + STRING1 + id ) ; \n + + appName + STRING1 + id ) ; \n return false ; \n } else { \n InstanceInfo instanceInfo = leaseToRenew . getHolder ( ) ; \n public abstract class InstanceRegistry implements LeaseManager < InstanceInfo > , \n InstanceStatus overriddenInstanceStatus = this \n . getOverriddenInstanceStatus ( instanceInfo , \n leaseToRenew , isReplication ) ; \n - SINGLE \n - SINGLE \n + if ( overriddenInstanceStatus == InstanceStatus . UNKNOWN ) { \n + logger . info ( STRING2 \n + + STRING3 , instanceInfo . getId ( ) ) ; \n + RENEW_NOT_FOUND . increment ( isReplication ) ; \n + return false ; \n + } \n if ( ! instanceInfo . getStatus ( ) . equals ( overriddenInstanceStatus ) ) { \n Object [ ] args = { instanceInfo . getStatus ( ) . name ( ) , \n instanceInfo . getOverriddenStatus ( ) . name ( ) ,", "msg_token": "Require re registration when instance status is UNKNOWN after"} {"diff": " public class AtmosphereServlet extends AbstractAsyncServlet implements CometProc \n public static final String WRITE_HEADERS = AtmosphereResource . class . getName ( ) + STRING0 + STRING1 ; \n \n public final static String WEBSOCKET_PROCESSOR = WebSocketProcessor . class . getName ( ) ; \n - public final static String WEBSOCKET_CONTENT_TYPE = STRING2 ; \n - public final static String WEBSOCKET_METHOD = STRING3 ; \n - public final static String WEBSOCKET_IDLETIME = STRING4 ; \n - public final static String WEBSOCKET_BUFFER_SIZE = STRING5 ; \n - public static final String WEBSOCKET_PATH_DELIMITER = STRING6 ; \n + public final static String WEBSOCKET_CONTENT_TYPE = STRING7 ; \n + public final static String WEBSOCKET_METHOD = STRING8 ; \n + public final static String WEBSOCKET_IDLETIME = STRING9 ; \n + public final static String WEBSOCKET_BUFFER_SIZE = STRING10 ; \n + public static final String WEBSOCKET_PATH_DELIMITER = STRING11 ; \n \n private final ArrayList < String > possibleAtmosphereHandlersCandidate = new ArrayList < String > ( ) ; \n private final HashMap < String , String > initParams = new HashMap < String , String > ( ) ;", "msg_token": "Fix trivial typo"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n @ repositoryrestresource ( collectionResourceRel = STRING0 , path = STRING1 ) \n interface CityRepository extends PagingAndSortingRepository < City , Long > { \n \n - Page < City > findByNameContainingAndCountryContainingAllIgnoringCase ( String name , \n - String country , Pageable pageable ) ; \n + Page < City > findByNameContainingAndCountryContainingAllIgnoringCase ( \n + @ param ( STRING2 ) String name , @ param ( STRING3 ) String country , \n + Pageable pageable ) ; \n \n - City findByNameAndCountryAllIgnoringCase ( String name , String country ) ; \n + City findByNameAndCountryAllIgnoringCase ( @ param ( STRING2 ) String name , \n + @ param ( STRING3 ) String country ) ; \n \n }", "msg_token": "Add missing Param annotations to CityRepository in Data REST sample"} {"diff": " public class ParametrizedTest { \n \n @ test \n public void parametrizedTest ( ) { \n - System . out . println ( STRING0 + number ) ; \n + System . out . print ( String . format ( STRING1 , number ) ) ; \n } \n \n }", "msg_token": "Fix an inconsistency of line separator in RunWithAnnotationIntegrationTest"} {"diff": " public class CollisionShapeFactory { \n COMMENT \n COMMENT \n private static BoxCollisionShape createSingleBoxShape ( Spatial spatial , Spatial parent ) { \n - spatial . setModelBound ( new BoundingBox ( ) ) ; \n SINGLE \n BoxCollisionShape shape = new BoxCollisionShape ( \n ( ( BoundingBox ) spatial . getWorldBound ( ) ) . getExtent ( new Vector3f ( ) ) ) ;", "msg_token": "remove setting of bounding box from CollisionShapeFactory"} {"diff": " public interface SearchEngine { \n } \n \n Result search ( String query , int page ) ; \n + \n + Result suggestionList ( String query ) ; \n } \n public class YoutubeSearchEngine implements SearchEngine { \n } \n return result ; \n } \n + \n + @ override \n + public Result suggestionList ( String query ) { \n + \n + SINGLE \n + \n + Uri . Builder builder = new Uri . Builder ( ) ; \n + builder . scheme ( STRING0 ) \n + . authority ( STRING1 ) \n + . appendPath ( STRING2 ) \n + . appendPath ( STRING3 ) \n + . appendQueryParameter ( STRING4 , STRING5 ) \n + . appendQueryParameter ( STRING6 , STRING7 ) \n + . appendQueryParameter ( STRING8 , query ) ; \n + String url = builder . build ( ) . toString ( ) ; \n + \n + return null ; \n + } \n + \n }", "msg_token": "Added interface method in SearchEngine class for fetch search suggestion list"} {"diff": " public class PathParamITest extends WithJetty { \n } \n \n @ test public void \n + canSetNamedPathParameterDefinedAsLastPathParamInPathAndConjWithAnUnnamedPathParam ( ) { \n + given ( ) . \n + pathParam ( STRING0 , STRING1 ) . \n + when ( ) . \n + get ( STRING2 , STRING3 ) . \n + then ( ) . \n + statusCode ( NUMBER0 ) . \n + body ( STRING4 , equalTo ( STRING3 ) ) . \n + body ( STRING0 , equalTo ( STRING1 ) ) . \n + body ( STRING5 , equalTo ( STRING6 ) ) ; \n + } \n + \n + @ test public void \n named_path_parameters_have_precedence_over_unnamed_path_parameters ( ) { \n given ( ) . \n pathParam ( STRING7 , STRING8 ) .", "msg_token": "Added additional test"} {"diff": " public class AppPoller { \n case ACTION_POLL_CURRENT_APP : { \n mHandler . removeMessages ( ACTION_POLL_CURRENT_APP ) ; \n \n + if ( MainController . get ( ) == null ) { \n + Log . d ( TAG , STRING0 ) ; \n + break ; \n + } \n + \n ActivityManager am = ( ActivityManager ) mContext . getSystemService ( Activity . ACTIVITY_SERVICE ) ; \n ComponentName componentName = am . getRunningTasks ( NUMBER0 ) . get ( NUMBER1 ) . topActivity ; \n String currentAppFlatComponentName = componentName . flattenToShortString ( ) ; \n public class MainController implements Choreographer . FrameCallback { \n SINGLE \n sInstance . mCanvas . destroy ( ) ; \n sInstance . mChoreographer . removeFrameCallback ( sInstance ) ; \n + sInstance . endAppPolling ( ) ; \n sInstance = null ; \n }", "msg_token": "Ensure AppPoller finishes as MainController is destoryed"} {"diff": " public abstract class AbstractProcessorLight implements Processor { \n state = dispatch ( status ) ; \n } else if ( state == SocketState . ASYNC_END ) { \n state = dispatch ( status ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n if ( state == SocketState . OPEN ) { \n SINGLE \n SINGLE", "msg_token": "Remove completed TODO"} {"diff": " public class DBPortTest extends TestCase { \n } \n \n @ test \n + @ suppresswarnings ( STRING0 ) \n public void testOpenFailure ( ) throws UnknownHostException { \n final MongoOptions options = new MongoOptions ( ) ; \n options . autoConnectRetry = true ;", "msg_token": "Suppressing deprecation warning in a test"} {"diff": " public class GSSAPIAuthenticationTest extends DatabaseTestCase { \n @ test \n public void testSuccessfulAuthentication ( ) { \n assumeTrue ( ! Fixture . getCredentialList ( ) . isEmpty ( ) && Fixture . getCredentialList ( ) . get ( NUMBER0 ) . getMechanism ( ) . equals ( GSSAPI ) ) ; \n + \n + SINGLE \n + for ( final String property : System . getProperties ( ) . stringPropertyNames ( ) ) { \n + if ( property . startsWith ( STRING0 ) ) { \n + System . out . println ( property + STRING1 + System . getProperty ( property ) ) ; \n + } \n + } \n + \n collection . insert ( new Document ( ) ) ; \n assertEquals ( NUMBER1 , collection . find ( ) . count ( ) ) ; \n }", "msg_token": "Adding some debugging output for GSSAPI testing on Jenkins"} {"diff": " public class StickyListHeadersListView extends FrameLayout { \n \n @ override \n public void onClick ( View v ) { \n - mOnHeaderClickListener . onHeaderClick ( StickyListHeadersListView . this , mHeader , mHeaderPosition , \n - mHeaderId , true ) ; \n + if ( mOnHeaderClickListener != null ) \n + mOnHeaderClickListener . onHeaderClick ( StickyListHeadersListView . this , mHeader , mHeaderPosition , \n + mHeaderId , true ) ; \n } \n } ) ; \n }", "msg_token": "Fixed NPE when no OnHeaderClickListener set"} {"diff": " public class InvokeAppWorker extends SwingWorker < Void , Void > { \n } \n if ( msg . getRequestBody ( ) != null ) { \n postdata = msg . getRequestBody ( ) . toString ( ) ; \n - postdata . replaceAll ( STRING0 , STRING1 ) ; \n + postdata = postdata . replaceAll ( STRING0 , STRING1 ) ; \n } \n Vector < String > cookies = msg . getRequestHeader ( ) . getHeaders ( HttpHeader . COOKIE ) ; \n if ( cookies != null && cookies . size ( ) > NUMBER0 ) {", "msg_token": "Fixed stupid mistake of not assigning result of a replaceAll"} {"diff": " public abstract class Editor extends JFrame implements RunnerListener { \n if ( pos + prefixLen > length ) { \n commented = false ; \n } else { \n - SINGLE \n - String begin = textarea . getText ( pos , NUMBER0 ) ; \n - SINGLE \n + SINGLE \n + String begin = textarea . getText ( pos , prefixLen ) ; \n + System . out . println ( STRING0 + begin + STRING1 ) ; \n commented = begin . equals ( prefix ) ; \n } \n }", "msg_token": "fixed uncommenting for prefixes other than java js in editor"} {"diff": " public class EventDispatcher implements LifecycleEventListener { \n \n private Event [ ] mEventsToDispatch = new Event [ NUMBER0 ] ; \n private int mEventsToDispatchSize = NUMBER1 ; \n - private @ nullable RCTEventEmitter mRCTEventEmitter ; \n + private volatile @ nullable RCTEventEmitter mRCTEventEmitter ; \n private final ScheduleDispatchFrameCallback mCurrentFrameCallback ; \n private short mNextEventTypeId = NUMBER1 ; \n private volatile boolean mHasDispatchScheduled = false ;", "msg_token": "Fix race condition in EventDispatcher"} {"diff": " public final class Settings { \n STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String SETUP_PREPAID_DATA_SERVICE_URL = \n + STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final String [ ] SETTINGS_TO_BACKUP = {", "msg_token": "Add prepaid data services URL to Secure Settings"} {"diff": " public class MethodAnalyzer { \n SINGLE \n if ( MethodUtil . isConstructor ( method ) ) { \n setPostRegisterTypeAndPropagateChanges ( startOfMethod , thisRegister , \n - RegisterType . getRegisterType ( RegisterType . UNINIT , \n + RegisterType . getRegisterType ( RegisterType . UNINIT_THIS , \n classPath . getClass ( method . getDefiningClass ( ) ) ) ) ; \n } else { \n setPostRegisterTypeAndPropagateChanges ( startOfMethod , thisRegister ,", "msg_token": "Use the correct register category for the uninitialized this reference"} {"diff": " public class Account implements BaseAccount { \n } \n String oldHost = uri . getHost ( ) ; \n int oldPort = uri . getPort ( ) ; \n + if ( oldPort == - NUMBER0 ) { \n + SINGLE \n + return ; \n + } \n if ( ! newHost . equals ( oldHost ) || newPort != oldPort ) { \n LocalKeyStore localKeyStore = LocalKeyStore . getInstance ( context ) ; \n localKeyStore . deleteCertificate ( oldHost , oldPort ) ; \n public class LocalKeyStore { \n private static LocalKeyStore sInstance ; \n \n \n - public static LocalKeyStore getInstance ( Context context ) { \n + public synchronized static LocalKeyStore getInstance ( Context context ) { \n if ( sInstance == null ) { \n sInstance = new LocalKeyStore ( context ) ; \n }", "msg_token": "Don t delete certs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RendererBuilderTest { \n } \n \n @ test public void shouldAddDescendantPrototypesByConstructionAndConfigureBindingByClass ( ) { \n - RendererBuilder < Object > rendererBuilder = new RendererBuilder < Object > ( Arrays . asList ( new StringRenderer ( ) , new IntegerRenderer ( ) ) ) ; \n + RendererBuilder < Object > rendererBuilder = \n + new RendererBuilder < Object > ( Arrays . asList ( new StringRenderer ( ) , new IntegerRenderer ( ) ) ) ; \n \n rendererBuilder . bind ( String . class , StringRenderer . class ) ; \n rendererBuilder . bind ( Integer . class , IntegerRenderer . class ) ;", "msg_token": "fixed checkstyle issues"} {"diff": " public class ArrayComparisonFailure extends AssertionError { \n \n private List < Integer > fIndices = new ArrayList < Integer > ( ) ; \n private final String fMessage ; \n - private final AssertionError fCause ; \n \n COMMENT \n COMMENT \n public class ArrayComparisonFailure extends AssertionError { \n COMMENT \n public ArrayComparisonFailure ( String message , AssertionError cause , int index ) { \n fMessage = message ; \n - fCause = cause ; \n + initCause ( cause ) ; \n addDimension ( index ) ; \n } \n \n public class ArrayComparisonFailure extends AssertionError { \n sb . append ( STRING0 ) ; \n } \n sb . append ( STRING1 ) ; \n - sb . append ( fCause . getMessage ( ) ) ; \n + sb . append ( getCause ( ) . getMessage ( ) ) ; \n return sb . toString ( ) ; \n }", "msg_token": "Remove redundant field fCause"} {"diff": " public class IndicesClusterStateService extends AbstractLifecycleComponent < Indic \n SINGLE \n final DiscoveryNode sourceNode = nodes . get ( shardRouting . relocatingNodeId ( ) ) ; \n try { \n - SINGLE \n + SINGLE \n + SINGLE \n final StartRecoveryRequest request = new StartRecoveryRequest ( indexShard . shardId ( ) , sourceNode , nodes . localNode ( ) , false , indexShard . store ( ) . list ( ) ) ; \n recoveryTarget . startRecovery ( request , false , new PeerRecoveryListener ( request , shardRouting , indexService ) ) ; \n } catch ( Exception e ) {", "msg_token": "add a comment on why we don t mark as relocated when relcoating primaries"} {"diff": " public class BiomeDictionary \n if ( t . name ( ) . equals ( name ) ) \n return t ; \n } \n - return EnumHelper . addEnum ( Type . class , name , new Class [ ] { Type [ ] . class } , new Object [ ] { subTypes } ) ; \n + Type ret = EnumHelper . addEnum ( Type . class , name , new Class [ ] { Type [ ] . class } , new Object [ ] { subTypes } ) ; \n + if ( ret . ordinal ( ) >= typeInfoList . length ) \n + { \n + typeInfoList = Arrays . copyOf ( typeInfoList , ret . ordinal ( ) ) ; \n + } \n + return ret ; \n } \n }", "msg_token": "Fix AIOOB in BiomeDictionary"} {"diff": " public class Generator \n COMMENT \n public static final int OVERHEAD = NUMBER0 ; \n \n - private final WebSocketPolicy policy ; \n + @ suppresswarnings ( STRING0 ) \n + private final WebSocketPolicy policy ; SINGLE \n private final ByteBufferPool bufferPool ; \n private boolean validating ;", "msg_token": "Adding more TODOs"} {"diff": " public abstract class DocumentHolder \n } \n \n SINGLE \n - Rect rect = new Rect ( ) ; \n - mSelectionHotspot . getGlobalVisibleRect ( rect ) ; \n + int [ ] coords = new int [ NUMBER0 ] ; \n + mSelectionHotspot . getLocationOnScreen ( coords ) ; \n + Rect rect = new Rect ( coords [ NUMBER1 ] , coords [ NUMBER2 ] , coords [ NUMBER1 ] + mSelectionHotspot . getWidth ( ) , \n + coords [ NUMBER2 ] + mSelectionHotspot . getHeight ( ) ) ; \n \n SINGLE \n - if ( rect . contains ( ( int ) event . getRawX ( ) , ( int ) event . getRawY ( ) ) ) { \n + if ( rect . contains ( ( int ) event . getRawX ( ) , ( int ) event . getRawY ( ) ) ) { \n return mEventListener . onSelect ( this ) ; \n } else { \n return mEventListener . onActivate ( this ) ;", "msg_token": "Fix selecting with touch in multi window"} {"diff": " public class OsmandApplication extends Application { \n LOG . error ( STRING0 , e ) ; \n warnings . add ( STRING1 ) ; \n } \n - if ( ! Version . isBlackberry ( this ) ) { \n + \n + if ( ! Version . isBlackberry ( this ) || ! STRING2 . equals ( System . getProperty ( STRING3 ) ) ) { \n if ( osmandSettings . NATIVE_RENDERING_FAILED . get ( ) ) { \n osmandSettings . SAFE_MODE . set ( true ) ; \n osmandSettings . NATIVE_RENDERING_FAILED . set ( false ) ;", "msg_token": "Fix BB release"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor { \n private volatile Settings settings ; \n \n private final ConcurrentMap < Channel , AtomicLong > channelCounters = \n - new ConcurrentHashMap < Channel , AtomicLong > ( ) ; \n + new ConcurrentIdentityHashMap < Channel , AtomicLong > ( ) ; \n private final AtomicLong totalCounter = new AtomicLong ( ) ; \n \n private final Semaphore semaphore = new Semaphore ( NUMBER0 ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class OrderedMemoryAwareThreadPoolExecutor extends \n MemoryAwareThreadPoolExecutor { \n \n private final ConcurrentMap < Channel , Executor > childExecutors = \n - new ConcurrentHashMap < Channel , Executor > ( ) ; \n + new ConcurrentIdentityHashMap < Channel , Executor > ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Replaced ConcurrentHashMap with ConcurrentIdentityHashMap wherever possible"} {"diff": " public class GoogleAppEngineCometSupport extends BlockingIOCometSupport { \n } else { \n latch . await ( NUMBER0 , TimeUnit . MILLISECONDS ) ; \n } \n - } catch ( InterruptedException ex ) { \n + } catch ( Throwable ex ) { \n LoggerUtils . getLogger ( ) . log ( Level . SEVERE , STRING0 ) ; \n } finally { \n timedout ( req , res ) ;", "msg_token": "Catch any Google related exception"} {"diff": " public class VoiceRouter { \n TURN_DISTANCE = NUMBER0 ; SINGLE \n DEFAULT_SPEED = NUMBER1 ; SINGLE \n } else { \n - PREPARE_DISTANCE = NUMBER2 ; SINGLE \n - PREPARE_DISTANCE_END = NUMBER3 ; SINGLE \n + PREPARE_DISTANCE = NUMBER4 ; SINGLE \n + PREPARE_DISTANCE_END = NUMBER5 ; SINGLE \n TURN_IN_DISTANCE = NUMBER6 ; SINGLE \n TURN_IN_DISTANCE_END = NUMBER7 ; SINGLE \n TURN_DISTANCE = NUMBER8 ; SINGLE \n public class VoiceRouter { \n protected void updateStatus ( Location currentLocation , boolean makeUturnWhenPossible ) { \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n float speed = DEFAULT_SPEED ;", "msg_token": "tune PREPARE distance"} {"diff": " public class TerminalPane extends WorkbenchPane \n { \n terminalSessionsPanel_ . add ( event . getTerminalWidget ( ) ) ; \n terminalSessionsPanel_ . showWidget ( event . getTerminalWidget ( ) ) ; \n + terminalSessionsPanel_ . forceLayout ( ) ; \n \n SINGLE \n } \n public class TerminalPane extends WorkbenchPane \n SINGLE \n } \n terminalSessionsPanel_ . remove ( currentTerminal ) ; \n - \n + \n SINGLE \n }", "msg_token": "set actual initial pty size when terminal is first displayed"} {"diff": " public class ShapefileStreetLoader { \n coordinates [ NUMBER0 ] . toString ( ) , \n coordinates [ NUMBER0 ] . x , \n coordinates [ NUMBER0 ] . y ) ; \n - graph . addVertex ( startCorner ) ; \n + startCorner = graph . addVertex ( startCorner ) ; \n Vertex endCorner = new SpatialVertex ( \n coordinates [ coordinates . length - NUMBER1 ] . toString ( ) , \n coordinates [ coordinates . length - NUMBER1 ] . x , \n coordinates [ coordinates . length - NUMBER1 ] . y ) ; \n - graph . addVertex ( endCorner ) ; \n + endCorner = graph . addVertex ( endCorner ) ; \n \n if ( trafDir . equals ( STRING0 ) ) { \n SINGLE", "msg_token": "use existing graph vertices where possible"} {"diff": " public class ContentView extends FrameLayout { \n \n metUrl . dismissDropDown ( ) ; \n \n + strUrl = strUrl . trim ( ) ; \n String strUrlWithPrefix = strUrl ; \n if ( ! strUrl . startsWith ( HTTP_PREFIX ) && ! strUrl . startsWith ( HTTPS_PREFIX ) ) \n strUrlWithPrefix = HTTP_PREFIX + strUrl ;", "msg_token": "Added a trim"} {"diff": " public class ScriptIntrinsicBlend extends ScriptIntrinsic { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add comment about xor not being porter duff"} {"diff": " public class WebView extends AbsoluteLayout \n } else if ( mPreventDefault != PREVENT_DEFAULT_YES ) { \n mTouchMode = TOUCH_DONE_MODE ; \n performLongClick ( ) ; \n - rebuildWebTextView ( ) ; \n } \n break ; \n } \n public class WebView extends AbsoluteLayout \n if ( hitTest != null && hitTest . mType \n != HitTestResult . UNKNOWN_TYPE ) { \n performLongClick ( ) ; \n - rebuildWebTextView ( ) ; \n } \n mDeferTouchMode = TOUCH_DONE_MODE ; \n break ;", "msg_token": "Remove unnecessary calls to rebuildWebTextView"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n SINGLE \n SINGLE \n BroadcasterCache broadcasterCache = bc . getBroadcasterCache ( ) ; \n - if ( ! force || EventCacheBroadcasterCache . class . isAssignableFrom ( broadcasterCache . getClass ( ) ) ) { \n + if ( ! force && EventCacheBroadcasterCache . class . isAssignableFrom ( broadcasterCache . getClass ( ) ) ) { \n return ; \n }", "msg_token": "Fix wrong logic"} {"diff": " public class PhotoViewAttacher implements IPhotoView , View . OnTouchListener , \n \n @ override \n public void getDisplayMatrix ( Matrix matrix ) { \n - matrix . set ( getDisplayMatrix ( ) ) ; \n + matrix . set ( getDrawMatrix ( ) ) ; \n } \n \n public Matrix getDrawMatrix ( ) {", "msg_token": "Updated getDisplayMatrix getDisplayMatrix Matrix to use getDrawMatrix directly avoiding an unncessary Matrix allocation"} {"diff": " public static void loadResourceScript ( String name ) throws Exception { \n InputStream ins = RT . class . getResourceAsStream ( STRING0 + name ) ; \n if ( ins != null ) \n { \n - Compiler . load ( new InputStreamReader ( ins ) , name , name ) ; \n + Compiler . load ( new InputStreamReader ( ins ) , RT . class . getResource ( STRING0 + name ) . toString ( ) , name ) ; \n ins . close ( ) ; \n } \n }", "msg_token": "try uri of resource in sourcedebugextension when load from resource"} {"diff": " public abstract class AbstractPrintElementsManager < CommitId > implements PrintEle \n \n CommitId headCommitId = myPrintedLinearGraph . getOneOfHeads ( upNodeIndex ) ; \n if ( upLayoutIndex != downLayoutIndex ) { \n - return myColorManager . getColorOfFragment ( headCommitId , upLayoutIndex * downLayoutIndex ) ; \n + return myColorManager . getColorOfFragment ( headCommitId , Math . max ( upLayoutIndex , downLayoutIndex ) ) ; \n } \n \n if ( upLayoutIndex == myPrintedLinearGraph . getHeadLayoutIndex ( upNodeIndex ) )", "msg_token": "log Fix color id"} {"diff": " public class KeyguardViewMediator extends SystemUI { \n @ override \n public void onDeviceProvisioned ( ) { \n sendUserPresentBroadcast ( ) ; \n - updateInputRestricted ( ) ; \n } \n \n @ override \n public class KeyguardViewMediator extends SystemUI { \n COMMENT \n COMMENT \n public boolean isInputRestricted ( ) { \n - return mShowing || mNeedToReshowWhenReenabled || shouldWaitForProvisioning ( ) ; \n + return mShowing || mNeedToReshowWhenReenabled ; \n } \n \n private void updateInputRestricted ( ) {", "msg_token": "Fix stuck orientation in SetupWizard"} {"diff": " public class CdiResolver extends ELResolver { \n context . setPropertyResolved ( result != null ) ; \n return result ; \n } catch ( IllegalStateException e ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n - SINGLE \n - SINGLE \n - \n - Object result = ProgrammaticBeanLookup . lookup ( property . toString ( ) ) ; \n + e . printStackTrace ( ) ; \n + SINGLE \n + Object result = ProgrammaticBeanLookup . lookup ( property . toString ( ) , getBeanManager ( ) ) ; \n context . setPropertyResolved ( result != null ) ; \n return result ; \n }", "msg_token": "using right BeanManager to to perform the lookup"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public final class WebSocketSslServerSslContext { \n COMMENT \n COMMENT \n COMMENT \n - private static class SingletonHolder { \n - public static final WebSocketSslServerSslContext INSTANCE = new WebSocketSslServerSslContext ( ) ; \n + private interface SingletonHolder { \n + WebSocketSslServerSslContext INSTANCE = new WebSocketSslServerSslContext ( ) ; \n } \n \n COMMENT", "msg_token": "Simplify SingletonHolder by using interface instead of static class"} {"diff": " public final class CheckpointLatestPlanner implements CheckpointPlanner { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n final class FileWorkerMasterSyncExecutor implements HeartbeatExecutor { \n } catch ( ConnectionFailedException e ) { \n LOG . error ( STRING0 , e ) ; \n } \n - Preconditions . checkState ( command . commandType == CommandType . Persist ) ; \n + \n + if ( command == null ) { \n + LOG . error ( STRING1 ) ; \n + return ; \n + } else if ( command . commandType != CommandType . Persist ) { \n + LOG . error ( STRING2 , \n + command . commandType ) ; \n + return ; \n + } \n \n for ( PersistFile persistFile : command . getCommandOptions ( ) . getPersistOptions ( ) . persistFiles ) { \n mFixedExecutionService", "msg_token": "Addressed more comments"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - \n + @ ignore ( STRING0 ) \n public class ProxyControllerTestCase extends AbstractProxyControllerTest { \n \n @ before", "msg_token": "Disable ProxyControllerTestCase pending kabir s work"} {"diff": " public abstract class AbstractVcsTestCase { \n } . execute ( ) . throwException ( ) ; \n } \n \n - protected void deleteFileInCommand ( final VirtualFile file ) { \n + public void deleteFileInCommand ( final VirtualFile file ) { \n deleteFileInCommand ( myProject , file ) ; \n } \n \n public abstract class AbstractVcsTestCase { \n } . execute ( ) ; \n } \n \n - protected void editFileInCommand ( final VirtualFile file , final String newContent ) { \n + public void editFileInCommand ( final VirtualFile file , final String newContent ) { \n editFileInCommand ( myProject , file , newContent ) ; \n }", "msg_token": "make some things in vcs tests public"} {"diff": " import NAMESPACE ; \n public class NettyAsyncHttpProviderConfig implements AsyncHttpProviderConfig < String , Object > { \n \n public final static String USE_BLOCKING_IO = STRING0 ; \n + public final static String USE_DIRECT_BYTEBUFFER = STRING1 ; \n + \n \n private final ConcurrentHashMap < String , Object > properties = new ConcurrentHashMap < String , Object > ( ) ;", "msg_token": "Add some well known Netty inernal configuration"} {"diff": " public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Observable < T > { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final Observable < T > onErrorFlatMap ( final Func1 < OnErrorThrowable , ? extends Observable < ? extends T > > resumeFunction ) { \n return lift ( new OperatorOnErrorFlatMap < T > ( resumeFunction ) ) ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "improve javadocs for onErrorFlatMap with link to wiki docs marble diagram"} {"diff": " public class TextConverter extends Visitor { \n String ch = EntityReferences . resolve ( er . getName ( ) ) ; \n if ( STRING0 . equals ( er . getName ( ) ) ) { \n write ( STRING1 ) ; \n + } else if ( STRING2 . equals ( er . getName ( ) ) || STRING3 . equals ( er . getName ( ) ) ) { \n + write ( STRING4 ) ; \n } else if ( ch == null ) { \n write ( STRING5 ) ; \n write ( er . getName ( ) ) ;", "msg_token": "fix handling of ndash and mdash"} {"diff": " public class LocalGatewayNodeAllocation extends NodeAllocation { \n continue ; \n } \n \n + SINGLE \n + if ( indexRoutingTable . shards ( ) . isEmpty ( ) ) { \n + continue ; \n + } \n + \n if ( indexRoutingTable . allPrimaryShardsUnassigned ( ) ) { \n SINGLE \n Set < String > nodesIds = Sets . newHashSet ( ) ;", "msg_token": "add test in node allocation is there are no shards no need to do local gateway allocation"} {"diff": " public final class NotificationRecord { \n } \n \n try { \n - final ApplicationInfo applicationInfo = mContext . getPackageManager ( ) . getApplicationInfo ( \n - sbn . getPackageName ( ) , NUMBER0 ) ; \n + final ApplicationInfo applicationInfo = \n + mContext . getPackageManager ( ) . getApplicationInfoAsUser ( sbn . getPackageName ( ) , \n + NUMBER0 , sbn . getUser ( ) . getIdentifier ( ) ) ; \n if ( applicationInfo . targetSdkVersion < Build . VERSION_CODES . N ) { \n if ( isNoisy ) { \n if ( importance >= IMPORTANCE_HIGH ) {", "msg_token": "Get applicationinfo as user"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class AgentBuilderListenerTest { \n public class AgentBuilderListenerTest { \n } \n \n @ test \n + public void testStreamWritingStandardOutput ( ) throws Exception { \n + assertThat ( AgentBuilder . Listener . StreamWriting . toSystemOut ( ) , is ( ( AgentBuilder . Listener ) new AgentBuilder . Listener . StreamWriting ( System . out ) ) ) ; \n + } \n + \n + @ test \n public void testObjectProperties ( ) throws Exception { \n ObjectPropertyAssertion . of ( AgentBuilder . Listener . NoOp . class ) . apply ( ) ; \n ObjectPropertyAssertion . of ( AgentBuilder . Listener . StreamWriting . class ) . apply ( ) ;", "msg_token": "Added test for factory method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MapTransactionTest extends HazelcastTestSupport { \n } \n \n @ test \n + @ category ( NightlyTest . class ) \n public void testTxnOwnerDies ( ) throws TransactionException , InterruptedException { \n final TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( NUMBER0 ) ; \n final HazelcastInstance h1 = factory . newHazelcastInstance ( ) ;", "msg_token": "Marked a slow MapTransactionTest testTxnOwnerDies as nightly test"} {"diff": " public class AppWindowAnimator { \n public AppWindowAnimator ( final AppWindowToken atoken ) { \n mAppToken = atoken ; \n mService = atoken . service ; \n - mAnimator = atoken . mAnimator ; \n + mAnimator = mService . mAnimator ; \n } \n \n public void setAnimation ( Animation anim , int width , int height , boolean skipFirstFrame ) { \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class AppWindowToken extends WindowToken { \n SINGLE \n SINGLE \n final WindowList allAppWindows = new WindowList ( ) ; \n - final AppWindowAnimator mAppAnimator ; \n - \n - final WindowAnimator mAnimator ; \n + @ nonnull final AppWindowAnimator mAppAnimator ; \n \n final boolean voiceInteraction ; \n \n class AppWindowToken extends WindowToken { \n appToken = _token ; \n voiceInteraction = _voiceInteraction ; \n mInputApplicationHandle = new InputApplicationHandle ( this ) ; \n - mAnimator = service . mAnimator ; \n mAppAnimator = new AppWindowAnimator ( this ) ; \n }", "msg_token": "Remove unnecessary field from AppWindowToken"} {"diff": " public class CacheContainerAdd extends AbstractAddStepHandler implements Descrip \n cacheBuilder . addAliases ( CacheService . getServiceName ( name , null ) ) ; \n } \n if ( configuration . isTransactionalCache ( ) ) { \n - cacheBuilder . addDependency ( TxnServices . JBOSS_TXN_TRANSACTION_MANAGER ) ; \n + builder . addDependency ( TxnServices . JBOSS_TXN_TRANSACTION_MANAGER ) ; \n if ( configuration . isUseSynchronizationForTransactions ( ) ) { \n - cacheBuilder . addDependency ( TxnServices . JBOSS_TXN_SYNCHRONIZATION_REGISTRY ) ; \n + builder . addDependency ( TxnServices . JBOSS_TXN_SYNCHRONIZATION_REGISTRY ) ; \n } \n if ( configuration . isTransactionRecoveryEnabled ( ) ) { \n - cacheBuilder . addDependencies ( TxnServices . JBOSS_TXN_ARJUNA_RECOVERY_MANAGER ) ; \n + builder . addDependencies ( TxnServices . JBOSS_TXN_ARJUNA_RECOVERY_MANAGER ) ; \n } \n } \n if ( startMode . getMode ( ) == ServiceController . Mode . ACTIVE ) {", "msg_token": "Add the tx manager dependencies to the cachecontainer builder and not"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OTokenHandlerImpl implements OTokenHandler { \n mac . init ( getKeyProvider ( ) . getKey ( header ) ) ; \n mac . update ( base , baseOffset , baseLength ) ; \n final byte [ ] calculatedSignature = mac . doFinal ( ) ; \n - boolean valid = Arrays . equals ( calculatedSignature , signature ) ; \n + boolean valid = MessageDigest . isEqual ( calculatedSignature , signature ) ; \n if ( ! valid ) { \n OLogManager . instance ( ) . warn ( this , STRING0 , OBase64Utils . encodeBytes ( base ) ) ; \n }", "msg_token": "fixed token signature check"} {"diff": " public interface Config extends ConfigMergeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface Config extends ConfigMergeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix bad html in hasPathOrNull doc comment"} {"diff": " import static NAMESPACE ; \n \n @ runwith ( HazelcastSerialClassRunner . class ) \n @ category ( QuickTest . class ) \n - public class EventPublishOrderWithEviction extends HazelcastTestSupport { \n + public class EventPublishOrderWithEvictionTest extends HazelcastTestSupport { \n \n @ test \n public void testEntryEvictEventsEmitted_afterAddEvents ( ) throws Exception {", "msg_token": "Renamed test class"} {"diff": " public final class EpollDatagramChannel extends AbstractEpollChannel implements \n if ( exception != null ) { \n pipeline . fireExceptionCaught ( exception ) ; \n } \n - \n - pipeline . fireChannelReadComplete ( ) ; \n } finally { \n SINGLE \n SINGLE", "msg_token": "Fix duplicate channelReadComplete in EpollDatagramChannel"} {"diff": " public abstract class Command { \n COMMENT \n COMMENT \n public boolean testPermission ( CommandSender target ) { \n - if ( ( permission == null ) || ( permission . isEmpty ( ) ) || ( target . hasPermission ( permission ) ) ) { \n + if ( ( permission == null ) || ( permission . length ( ) == NUMBER0 ) || ( target . hasPermission ( permission ) ) ) { \n return true ; \n }", "msg_token": "Fixed java ver method"} {"diff": " public class DynamicRequestMatcherFactory extends Dynamics implements RequestMat \n return not ( exist ( extractor ) ) ; \n } \n \n - throw new RuntimeException ( String . format ( STRING0 , text ) ) ; \n + throw new IllegalArgumentException ( String . format ( STRING0 , text ) ) ; \n } \n \n private static RequestMatcher wrapRequestMatcher ( final RequestSetting request ,", "msg_token": "replaced exception with illegal argument exception in dynamic request matcher factory"} {"diff": " public abstract class RajawaliRenderer implements IRajawaliSurfaceRenderer { \n \n final double [ ] in = new double [ NUMBER0 ] , out = new double [ NUMBER0 ] ; \n \n - Matrix4 MVPMatrix = getCurrentCamera ( ) . getProjectionMatrix ( ) . multiply ( getCurrentCamera ( ) . getViewMatrix ( ) ) ; \n + Matrix4 projectionMatrix = getCurrentCamera ( ) . getProjectionMatrix ( ) . clone ( ) ; \n + Matrix4 MVPMatrix = projectionMatrix . multiply ( getCurrentCamera ( ) . getViewMatrix ( ) ) ; \n MVPMatrix . inverse ( ) ; \n \n in [ NUMBER1 ] = ( x / mDefaultViewportWidth ) * NUMBER2 - NUMBER3 ;", "msg_token": "creating a copy of the projection matrix so it s not altered by calling unproject function"} {"diff": " public class SedaConsumer extends ServiceSupport implements Consumer , Runnable , \n continue ; \n } \n \n - SINGLE \n - if ( isSuspending ( ) || isSuspended ( ) ) { \n + SINGLE \n + if ( isSuspending ( ) || isSuspended ( ) || isStarting ( ) ) { \n if ( shutdownPending && queue . isEmpty ( ) ) { \n LOG . trace ( STRING0 ) ; \n SINGLE \n public class SedaConsumer extends ServiceSupport implements Consumer , Runnable , \n \n @ override \n protected void doResume ( ) throws Exception { \n - doStart ( ) ; \n + endpoint . onStarted ( this ) ; \n } \n \n protected void doStop ( ) throws Exception {", "msg_token": "Seda suspend resume should not trigger start stop logic"} {"diff": " public class DescriptorUtils { \n } \n \n public static Set < FqName > getPackagesFqNames ( ModuleDescriptor module ) { \n - return getSubPackagesFqNames ( module . getPackage ( FqName . ROOT ) ) ; \n + Set < FqName > result = getSubPackagesFqNames ( module . getPackage ( FqName . ROOT ) ) ; \n + result . add ( FqName . ROOT ) ; \n + return result ; \n } \n \n public static Set < FqName > getSubPackagesFqNames ( PackageViewDescriptor packageView ) {", "msg_token": "add default package name to DescriptorUtils getPackageNames"} {"diff": " public class ConfigResource \n final JsonNode tree = mapper . readTree ( mapper . getJsonFactory ( ) . createJsonParser ( newConfigJson ) ) ; \n \n String backupExtraValue = STRING0 ; \n - if ( tree . has ( STRING1 ) ) \n + if ( tree . get ( STRING1 ) != null ) \n { \n - Map < String , String > values = Maps . newHashMap ( ) ; \n + Map < String , String > values = Maps . newHashMap ( ) ; \n JsonNode backupExtra = tree . get ( STRING1 ) ; \n Iterator < String > fieldNames = backupExtra . getFieldNames ( ) ; \n while ( fieldNames . hasNext ( ) )", "msg_token": "Was using a invalid Jackson API somehow the Netflix builder is bringing in a different Jackson JAR"} {"diff": " public class RedisSessionModule extends ConfigurableModule < RedisSessionModule . Co \n private String password ; \n private String host ; \n private Integer port ; \n - private String sessionKeyPrefix = STRING0 ; \n - \n \n public Config ( ) { \n host = STRING1 ; \n public class RedisSessionModule extends ConfigurableModule < RedisSessionModule . Co \n public void setPort ( Integer port ) { \n this . port = port ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public String getSessionKeyPrefix ( ) { \n - return sessionKeyPrefix ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setSessionKeyPrefix ( String sessionKeyPrefix ) { \n - this . sessionKeyPrefix = sessionKeyPrefix ; \n - } \n } \n }", "msg_token": "Remove unused session key prefix"} {"diff": " public class IngestRestFilter extends RestFilter { \n \n @ override \n public void process ( RestRequest request , RestChannel channel , RestFilterChain filterChain ) throws Exception { \n - request . putInContext ( INGEST_PARAM_CONTEXT_KEY , request . param ( INGEST_PARAM ) ) ; \n + if ( request . hasParam ( INGEST_PARAM ) ) { \n + request . putInContext ( INGEST_PARAM_CONTEXT_KEY , request . param ( INGEST_PARAM ) ) ; \n + } \n filterChain . continueProcessing ( request , channel ) ; \n } \n }", "msg_token": "Add the ingest param to the context only if present"} {"diff": " final class RowSeq implements DataPoints { \n case NUMBER0 : return Bytes . getLong ( values , value_idx ) ; \n case NUMBER1 : return Bytes . getInt ( values , value_idx ) ; \n case NUMBER2 : return Bytes . getShort ( values , value_idx ) ; \n - case NUMBER3 : return values [ value_idx ] ; \n + case NUMBER3 : return values [ value_idx ] & NUMBER4 ; \n } \n throw new IllegalDataException ( STRING0 + value_idx \n + STRING1", "msg_token": "Fix yet another sign extension bug"} {"diff": " public class IdeFrameImpl extends JFrame implements IdeFrame , DataProvider { \n @ override \n public void run ( ) { \n WindowManagerEx . getInstanceEx ( ) . setFullScreen ( IdeFrameImpl . this , true ) ; \n + if ( SystemInfo . isMacOSLion ) { \n + setBounds ( ScreenUtil . getScreenRectangle ( getLocationOnScreen ( ) ) ) ; \n + } \n myRestoreFullScreen = false ; \n } \n } ) ;", "msg_token": "Restore two fullscreen project on startup Mac OS"} {"diff": " public class GitLogParser { \n SINGLE \n SINGLE \n SINGLE \n - final String [ ] records = output . split ( RECORD_START ) ; SINGLE \n - final List < GitLogRecord > res = new ArrayList < GitLogRecord > ( records . length ) ; \n + final List < String > records = StringUtil . split ( output , RECORD_START ) ; SINGLE \n + final List < GitLogRecord > res = new ArrayList < GitLogRecord > ( records . size ( ) ) ; \n for ( String record : records ) { \n if ( ! record . trim ( ) . isEmpty ( ) ) { SINGLE \n res . add ( parseOneRecord ( record ) ) ;", "msg_token": "git speed up parsing log records a bit use improved version of split"} {"diff": " public class FreemarkerBodyAsDomainObjectTest extends CamelTestSupport { \n public void testWithObject ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n - mock . expectedBodiesReceived ( STRING1 ) ; \n + mock . message ( NUMBER1 ) . body ( ) . contains ( STRING2 ) ; \n \n MyPerson person = new MyPerson ( ) ; \n person . setFamilyName ( STRING3 ) ; \n public class FreemarkerLetterTest extends CamelTestSupport { \n public void testFreemarkerLetter ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n - mock . expectedBodiesReceived ( STRING4 \n - + STRING5 ) ; \n + mock . message ( NUMBER1 ) . body ( ) . contains ( STRING6 ) ; \n + mock . message ( NUMBER1 ) . body ( ) . contains ( STRING7 ) ; \n \n template . send ( STRING8 , createLetter ( ) ) ;", "msg_token": "Fixed test on windows"} {"diff": " public class KjcEngine extends PdeEngine { \n SINGLE \n if ( s . indexOf ( STRING0 ) != - NUMBER0 ) return ; \n \n - System . out . println ( messageMode + STRING1 + STRING2 + s ) ; \n + SINGLE \n \n if ( messageMode == COMPILING ) { \n SINGLE \n public class KjcEngine extends PdeEngine { \n } \n \n } else { \n - System . err . println ( STRING3 + s ) ; \n + SINGLE \n + exception = new PdeException ( STRING4 + \n + STRING5 ) ; \n + editor . error ( exception ) ; \n } \n } else if ( messageMode == RUNNING ) { \n SINGLE", "msg_token": "spew out compiler error message when kopi dies"} {"diff": " public class AsyncContextTest \n } \n \n @ test \n - SINGLE \n + @ ignore ( STRING0 ) \n public void testSimpleAsyncContext ( ) throws Exception \n { \n String request = STRING1 + STRING2 + STRING3", "msg_token": "ignore it again"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n SINGLE \n SINGLE \n SINGLE \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Adding license headers"} {"diff": " public class JsrSession extends WebSocketSession implements javax . websocket . Sess \n } \n \n @ override \n - public URI getRequestURI ( ) \n - { \n - return getUpgradeRequest ( ) . getRequestURI ( ) ; \n - } \n - \n - @ override \n public Principal getUserPrincipal ( ) \n { \n return getUpgradeRequest ( ) . getUserPrincipal ( ) ;", "msg_token": "WebSocket Jsr Session getRequestURI is missing scheme host port query parameters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { \n public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { \n \n for ( PsiClass psiClass : psiClasses ) { \n if ( psiClass instanceof KotlinLightClassForPackage ) { \n - PsiElement element = psiClass . getNavigationElement ( ) ; \n - if ( element instanceof JetFile ) { \n - createBreakpoints ( ( JetFile ) element ) ; \n + Collection < JetFile > files = ( ( KotlinLightClassForPackage ) psiClass ) . getFiles ( ) ; \n + for ( JetFile jetFile : files ) { \n + createBreakpoints ( jetFile ) ; \n } \n } \n + else if ( psiClass instanceof FakeLightClassForFileOfPackage ) { \n + SINGLE \n + } \n else { \n createBreakpoints ( psiClass . getContainingFile ( ) ) ; \n }", "msg_token": "do not create breakpoints for FakeLightClassForFileOfPackage because we create them for KotlinLightClassForPackage"} {"diff": " import NAMESPACE ; \n public class FluidRenderer { \n \n private static final ResourceLocation BLOCK_TEXTURE = TextureMap . locationBlocksTexture ; \n - private static final ResourceLocation ITEM_TEXTURE = TextureMap . locationItemsTexture ; \n private static Map < Fluid , int [ ] > flowingRenderCache = new HashMap < Fluid , int [ ] > ( ) ; \n private static Map < Fluid , int [ ] > stillRenderCache = new HashMap < Fluid , int [ ] > ( ) ; \n public static final int DISPLAY_STAGES = NUMBER0 ; \n public class FluidRenderer { \n } \n \n public static ResourceLocation getFluidSheet ( Fluid liquid ) { \n - if ( liquid . canBePlacedInWorld ( ) ) \n return BLOCK_TEXTURE ; \n - else \n - return ITEM_TEXTURE ; \n } \n \n public static void setColorForFluidStack ( FluidStack fluidstack ) {", "msg_token": "Revert Bugfix for non world liquids"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n @ contract \n @ constrainedto ( RuntimeType . SERVER ) \n public interface MonitoringStatisticsListener { \n + \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed typo in JavaDoc"} {"diff": " public interface MaterialMenu { \n public void setColor ( int color ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setVisibility ( int visibility ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class MaterialMenuBase implements MaterialMenu { \n } \n \n @ override \n + public final void setVisibility ( int visibility ) { \n + if ( visibility == View . VISIBLE || visibility == View . INVISIBLE ) { \n + boolean visible = visibility == View . VISIBLE ? true : false ; \n + getDrawable ( ) . setVisible ( visible , false ) ; \n + } \n + } \n + \n + @ override \n public final void setTransformationDuration ( int duration ) { \n getDrawable ( ) . setTransformationDuration ( duration ) ; \n }", "msg_token": "Added interface for setVisibility function"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public interface PyTargetExpression extends PyQualifiedExpression , PsiNamedElement , PsiNameIdentifierOwner , PyDocStringOwner , \n - StubBasedPsiElement < PyTargetExpressionStub > { \n + PyQualifiedNameOwner , StubBasedPsiElement < PyTargetExpressionStub > { \n PyTargetExpression [ ] EMPTY_ARRAY = new PyTargetExpression [ NUMBER0 ] ; \n \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExp \n super . subtreeChanged ( ) ; \n myQualifiedName = null ; \n } \n + \n + @ nullable \n + @ override \n + public String getQualifiedName ( ) { \n + return QualifiedNameFinder . getQualifiedName ( this ) ; \n + } \n }", "msg_token": "Made PyTargetExpression a PyQualifiedNameOwner"} {"diff": " public class DrawHandler extends Handler { \n \n @ override \n public void onDanmakuAdd ( BaseDanmaku danmaku ) { \n - obtainMessage ( NOTIFY_RENDERING ) . sendToTarget ( ) ; \n + if ( danmaku . isTimeOut ( ) ) { \n + return ; \n + } \n + long delay = danmaku . time - timer . currMillisecond ; \n + if ( delay > NUMBER0 ) { \n + sendEmptyMessageDelayed ( NOTIFY_RENDERING , delay ) ; \n + } else if ( mInWaitingState ) { \n + notifyRendering ( ) ; \n + } \n } \n \n @ override", "msg_token": "avoid idle sleep if danmaku is added"} {"diff": " public class BookmarksAction extends AnAction implements DumbAware { \n } \n else { \n cleanup ( ) ; \n + repaint ( ) ; \n } \n \n revalidate ( ) ;", "msg_token": "handle empty preview appearance correctly"} {"diff": " class NewModelControllerImpl implements NewModelController { \n if ( prepareStep != null ) { \n context . addStep ( response , operation , prepareStep , NewOperationContext . Stage . MODEL ) ; \n } \n - context . addStep ( response , operation , new NewStepHandler ( ) { \n - public void execute ( final NewOperationContext context , final ModelNode operation ) { \n - if ( context . completeStep ( ) == NewOperationContext . ResultAction . KEEP && context . isModelAffected ( ) ) { \n - SINGLE \n - SINGLE \n - } \n - } \n - } , NewOperationContext . Stage . VERIFY ) ; \n PathAddress address = PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) ; \n String operationName = operation . require ( OP ) . asString ( ) ; \n NewStepHandler stepHandler = rootRegistration . getOperationHandler ( address , operationName ) ;", "msg_token": "Get rid of unnecessary persist step"} {"diff": " public class TextConverter \n \n public void visit ( ItemizationItem i ) \n { \n - newline ( NUMBER0 ) ; \n + newline ( NUMBER1 ) ; \n iterate ( i . getContent ( ) ) ; \n } \n \n public class TextConverter \n \n public void visit ( EnumerationItem item ) \n { \n - newline ( NUMBER0 ) ; \n + newline ( NUMBER1 ) ; \n iterate ( item . getContent ( ) ) ; \n } \n \n public class WikipediaTextFilterTest extends TestCase { \n \n public void testLists ( ) throws Exception { \n final String input1 = STRING0 ; \n - assertEquals ( STRING1 , swebleFilter . filter ( input1 ) ) ; \n + assertEquals ( STRING2 , swebleFilter . filter ( input1 ) ) ; \n final String input2 = STRING3 ; \n - assertEquals ( STRING1 , swebleFilter . filter ( input2 ) ) ; \n + assertEquals ( STRING2 , swebleFilter . filter ( input2 ) ) ; \n } \n \n }", "msg_token": "use two newlines after a list item this will fix a few false alarms hopefully more than it creates"} {"diff": " public final class NBTOutputStream implements Closeable { \n break ; \n case NBTConstants . TYPE_INT_ARRAY : \n writeIntArrayTagPayload ( ( IntArrayTag ) tag ) ; \n + break ; \n default : \n throw new IOException ( STRING0 + type + STRING1 ) ; \n }", "msg_token": "Add missing break when writing IntArrayTag"} {"diff": " public class JSError { \n return charno ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getNodeSourceOffset ( ) { \n + return node != null ? node . getSourceOffset ( ) : - NUMBER0 ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getNodeLength ( ) { \n + return node != null ? node . getLength ( ) : NUMBER1 ; \n + } \n + \n @ override \n public boolean equals ( Object o ) { \n SINGLE", "msg_token": "Allow access to the Node of a JSError so absolute position and length information may be derrived by consuming applications"} {"diff": " public abstract class FileBasedIndex implements BaseComponent { \n throw new IllegalArgumentException ( STRING0 + file + STRING1 + file . getClass ( ) . getName ( ) ) ; \n } \n \n + SINGLE \n + public abstract VirtualFile findFileById ( Project project , int id ) ; \n + \n public void requestRebuild ( ID < ? , ? > indexId ) { \n requestRebuild ( indexId , new Throwable ( ) ) ; \n } \n public class FileBasedIndexImpl extends FileBasedIndex { \n myIndexableSetToProjectMap . remove ( set ) ; \n } \n \n + @ override \n + public VirtualFile findFileById ( Project project , int id ) { \n + return IndexInfrastructure . findFileById ( ( PersistentFS ) ManagingFS . getInstance ( ) , id ) ; \n + } \n + \n @ nullable \n private static PsiFile findLatestKnownPsiForUncomittedDocument ( @ notnull Document doc , @ notnull Project project ) { \n return PsiDocumentManager . getInstance ( project ) . getCachedPsiFile ( doc ) ;", "msg_token": "decouple JavaScriptIndex from ManagingFS PersistentFS"} {"diff": " public class ForgeHooksClient \n int g = NUMBER0 ; \n int b = NUMBER0 ; \n \n + int divider = NUMBER0 ; \n for ( int x = - distance ; x <= distance ; ++ x ) \n { \n for ( int z = - distance ; z <= distance ; ++ z ) \n public class ForgeHooksClient \n r += ( colour & NUMBER1 ) > > NUMBER2 ; \n g += ( colour & NUMBER3 ) > > NUMBER4 ; \n b += colour & NUMBER5 ; \n + divider ++ ; \n } \n } \n \n - int multiplier = ( r / NUMBER6 & NUMBER7 ) < < NUMBER2 | ( g / NUMBER6 & NUMBER7 ) < < NUMBER4 | b / NUMBER6 & NUMBER7 ; \n + int multiplier = ( r / divider & NUMBER7 ) < < NUMBER2 | ( g / divider & NUMBER7 ) < < NUMBER4 | b / divider & NUMBER7 ; \n \n skyX = playerX ; \n skyZ = playerZ ;", "msg_token": "Fix the divider"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n @ singleton \n public abstract class AbstractDbBackend < Configuration extends DbBackendConfiguration > \n extends ThreadFactoryIdleService implements DbBackendService { \n + \n + private static final Logger LOGGER = LogManager . getLogger ( AbstractDbBackend . class ) ; \n + \n public static final int SYSTEM_DATABASE_CONNECTIONS = NUMBER0 ; \n public static final int MIN_READ_CONNECTIONS_DATABASE = NUMBER0 ; \n public static final int MIN_SESSION_CONNECTIONS_DATABASE = NUMBER1 ; \n public abstract class AbstractDbBackend < Configuration extends DbBackendConfigura \n COMMENT \n COMMENT \n \n + LOGGER . info ( STRING0 , poolName , poolSize , transactionIsolationLevel . name ( ) ) ; \n + \n return new HikariDataSource ( hikariConfig ) ; \n }", "msg_token": "Logged pool creation"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class OkResponseHandler extends SimpleChannelInboundHandler < Object > { \n \n @ override \n public void channelRead0 ( ChannelHandlerContext ctx , Object msg ) throws Exception { \n - final DefaultHttpResponse response = new DefaultHttpResponse ( HttpVersion . HTTP_1_1 , HttpResponseStatus . OK ) ; \n + final FullHttpResponse response = new DefaultFullHttpResponse ( HttpVersion . HTTP_1_1 , HttpResponseStatus . OK ) ; \n response . headers ( ) . set ( STRING0 , STRING1 ) ; \n ctx . writeAndFlush ( response ) . addListener ( ChannelFutureListener . CLOSE ) ; \n }", "msg_token": "OkResponseHandler should return a FullHttpResponse"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PluginTestCaseBase { \n } \n \n private static Sdk getSdk ( String sdkHome ) { \n - Sdk sdk = new JavaSdkImpl ( ) . createJdk ( STRING0 , sdkHome , true ) ; \n + Sdk sdk = JavaSdk . getInstance ( ) . createJdk ( STRING0 , sdkHome , true ) ; \n SdkModificator modificator = sdk . getSdkModificator ( ) ; \n VirtualFile file = LocalFileSystem . getInstance ( ) . findFileByIoFile ( JetTestUtils . getJdkAnnotationsJar ( ) ) ; \n assert file != null ;", "msg_token": "use API class instead of impl to create Java SDK"} {"diff": " public final class ContentValues implements Parcelable { \n return ( ArrayList < String > ) mValues . get ( key ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n public String toString ( ) { \n StringBuilder sb = new StringBuilder ( ) ;", "msg_token": "Fix the documentation of ContentValues"} {"diff": " public class FilterBasedLdapUserSearchTests extends AbstractLdapIntegrationTests \n assertEquals ( new DistinguishedName ( STRING0 ) , bob . getDn ( ) ) ; \n } \n \n + @ test \n + public void searchForNameWithCommaSucceeds ( ) { \n + FilterBasedLdapUserSearch locator = new FilterBasedLdapUserSearch ( STRING1 , STRING2 , dirCtxFactory ) ; \n + locator . setSearchSubtree ( false ) ; \n + \n + DirContextOperations jerry = locator . searchForUser ( STRING3 ) ; \n + assertEquals ( STRING3 , jerry . getStringAttribute ( STRING4 ) ) ; \n + \n + assertEquals ( new DistinguishedName ( STRING5 ) , jerry . getDn ( ) ) ; \n + } \n + \n SINGLE \n @ test \n public void extraFilterPartToExcludeBob ( ) throws Exception {", "msg_token": "Added test to attempt to reproduce problem"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class TestStreetMatcher { \n } \n \n @ override \n - public ElevationProfileSegment getElevationProfileSegment ( ) { \n - return null ; \n - } \n - \n - @ override \n public List < TurnRestriction > getTurnRestrictions ( ) { \n return Collections . emptyList ( ) ; \n }", "msg_token": "Remove override of removed function"} {"diff": " public abstract class MixinEntityZombie extends EntityMob { \n public abstract void setVillager ( boolean villagerZombie ) ; \n \n @ shadow \n - public abstract boolean isChild ( ) ; \n - \n - @ shadow \n public abstract void setChild ( boolean childZombie ) ; \n \n @ shadow \n import NAMESPACE ; \n @ mixin ( ItemFishingRod . class ) \n public abstract class MixinItemFishingRod extends Item implements IMixinEntityFishHook { \n \n + @ override \n @ overwrite \n public ItemStack onItemRightClick ( ItemStack itemStack , World world , EntityPlayer player ) { \n if ( player . fishEntity != null ) {", "msg_token": "Fix two Override issues"} {"diff": " public class ProgramStore extends BaseObj { \n SRC_ALPHA ( NUMBER0 ) , \n ONE_MINUS_SRC_ALPHA ( NUMBER1 ) , \n DST_ALPHA ( NUMBER2 ) , \n - ONE_MINUS_DST_ALPA ( NUMBER3 ) , \n + ONE_MINUS_DST_ALPHA ( NUMBER3 ) , \n SRC_ALPHA_SATURATE ( NUMBER4 ) ; \n \n int mID ; \n public class ProgramStore extends BaseObj { \n SRC_ALPHA ( NUMBER0 ) , \n ONE_MINUS_SRC_ALPHA ( NUMBER1 ) , \n DST_ALPHA ( NUMBER2 ) , \n - ONE_MINUS_DST_ALPA ( NUMBER3 ) ; \n + ONE_MINUS_DST_ALPHA ( NUMBER3 ) ; \n \n int mID ; \n BlendDstFunc ( int id ) {", "msg_token": "Fix type in Java enums"} {"diff": " import NAMESPACE ; \n \n \n @ runwith ( WithTestDefaultsRunner . class ) \n - public class RobolectricTestRunnerClassloaderSetup { \n + public class RobolectricTestRunnerClassLoaderSetup { \n \n @ test \n - public void testUsingClassloader ( ) throws ClassNotFoundException { \n + public void testUsingClassLoader ( ) throws ClassNotFoundException { \n ClassLoader classLoader = Thread . currentThread ( ) . getContextClassLoader ( ) ; \n Assert . assertEquals ( classLoader . getClass ( ) . getName ( ) , RobolectricClassLoader . class . getName ( ) ) ; \n - \n } \n }", "msg_token": "Fix test class spelling formatting"} {"diff": " public class ApacheDSContainer implements InitializingBean , DisposableBean , Life \n \n @ suppresswarnings ( STRING0 ) \n public void stop ( ) { \n + if ( ! isRunning ( ) ) { \n + return ; \n + } \n + \n Properties env = new Properties ( ) ; \n env . setProperty ( Context . INITIAL_CONTEXT_FACTORY , ServerContextFactory . class . getName ( ) ) ; \n env . setProperty ( Context . SECURITY_AUTHENTICATION , STRING1 ) ;", "msg_token": "Added check of running flag in stop method to prevent stopping twice"} {"diff": " public abstract class Optional < T > implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract T or ( T defaultValue ) ; \n public final class InternetDomainName { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix bad line breaks"} {"diff": " public class MemLock implements Closeable { \n private Pointer pa ; \n private long length ; \n private File file ; \n - private FileDescriptor descriptor ; \n \n COMMENT \n COMMENT \n public class MemLock implements Closeable { \n if ( logger . isDebugEnabled ( ) ) \n logger . debug ( STRING0 + file + STRING1 + length ) ; \n \n - this . setFile ( file ) ; \n - this . setDescriptor ( descriptor ) ; \n + this . file = file ; \n this . length = length ; \n pa = null ; \n \n public class MemLock implements Closeable { \n return file ; \n } \n \n - public void setFile ( File file ) { \n - this . file = file ; \n - } \n - \n - public FileDescriptor getDescriptor ( ) { \n - return descriptor ; \n - } \n - \n - public void setDescriptor ( FileDescriptor descriptor ) { \n - this . descriptor = descriptor ; \n - } \n - \n }", "msg_token": "Remove unused members and methods from MemLock"} {"diff": " public class XMPPServer { \n loadModule ( PresenceUpdateHandler . class . getName ( ) ) ; \n loadModule ( IQDiscoInfoHandler . class . getName ( ) ) ; \n loadModule ( IQDiscoItemsHandler . class . getName ( ) ) ; \n + loadModule ( IQOfflineMessagesHandler . class . getName ( ) ) ; \n loadModule ( MultiUserChatServerImpl . class . getName ( ) ) ; \n loadModule ( MulticastDNSService . class . getName ( ) ) ; \n SINGLE", "msg_token": "Added new module IQOfflineMessagesHandler"} {"diff": " public class RouterBean { \n @ consume ( uri = STRING0 ) \n @ recipientlist \n public String [ ] route ( String body ) { \n - System . out . println ( STRING1 + body ) ; \n return new String [ ] { STRING2 , STRING3 } ; \n } \n }", "msg_token": "Remove call to System out"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ViewOverlay { \n child . offsetTopAndBottom ( parentLocation [ NUMBER0 ] - hostViewLocation [ NUMBER0 ] ) ; \n } \n parent . removeView ( child ) ; \n + if ( parent . getLayoutTransition ( ) != null ) { \n + SINGLE \n + parent . getLayoutTransition ( ) . cancel ( LayoutTransition . DISAPPEARING ) ; \n + } \n + SINGLE \n + if ( child . getParent ( ) != null ) { \n + child . mParent = null ; \n + } \n } \n super . addView ( child ) ; \n }", "msg_token": "Fix crash with LayoutTransition and ViewOverlay collision"} {"diff": " public class MessagingAction extends JSONAction { \n String cmd = ParamUtil . getString ( req , Constants . CMD ) ; \n JSONObject jo = new JSONObject ( ) ; \n \n - if ( STRING0 . equals ( cmd ) ) { \n + if ( STRING1 . equals ( cmd ) ) { \n jo = getUpdates ( req ) ; \n } \n - else if ( STRING2 . equals ( cmd ) ) { \n + else if ( STRING0 . equals ( cmd ) ) { \n jo = getChatMessages ( req ) ; \n \n + COMMENT \n JSONArray jRoster = getRosterEntries ( req ) . getJSONArray ( STRING3 ) ; \n jo . put ( STRING3 , jRoster ) ; \n + COMMENT \n jo . put ( STRING4 , STRING5 ) ; \n } \n else if ( STRING6 . equals ( cmd ) ) {", "msg_token": "change getChats to getUpdates"} {"diff": " public class HttpBindServlet extends HttpServlet { \n if ( async ) { \n response . getOutputStream ( ) . setWriteListener ( new WriteListenerImpl ( context , byteContent ) ) ; \n } else { \n + SINGLE \n + SINGLE \n + context . getResponse ( ) . setBufferSize ( byteContent . length ) ; \n context . getResponse ( ) . getOutputStream ( ) . write ( byteContent ) ; \n context . getResponse ( ) . getOutputStream ( ) . flush ( ) ; \n context . complete ( ) ; \n public class HttpBindServlet extends HttpServlet { \n Log . trace ( STRING0 + remoteAddress + STRING1 ) ; \n \n SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n context . getResponse ( ) . setBufferSize ( data . length ) ; \n - context . getResponse ( ) . setContentLength ( data . length ) ; \n \n context . getResponse ( ) . getOutputStream ( ) . write ( data ) ; \n context . complete ( ) ;", "msg_token": "Removed explicit content length as it caused invalid values"} {"diff": " public final class CellSignalStrengthLte extends CellSignalStrength implements P \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public int getRsrq ( ) { \n + return mRsrq ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getRssnr ( ) { \n + return mRssnr ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n @ override", "msg_token": "Add hidden APIs for retrieving LTE RSRQ and RSSNR"} {"diff": " public class ThumbImagePresenter < T > implements ImagePresenter . AssetPresenterCoor \n public boolean canSetPlaceholder ( ImagePresenter presenter ) { \n return presenter == fullPresenter ; \n } \n + \n + public void resetPlaceholder ( ) { \n + fullPresenter . resetPlaceHolder ( ) ; \n + } \n }", "msg_token": "Add reset placeholder to thumb image presenter"} {"diff": " public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec \n public void projectOpened ( ) { \n initializeForNewProject ( ) ; \n \n - Notifications . Bus . notify ( new Notification ( STRING0 , STRING1 , STRING1 , \n - NotificationType . ERROR ) , NotificationDisplayType . STICKY_BALLOON , myProject ) ; \n if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n myWorker . initialized ( ) ; \n myUpdater . initialized ( ) ;", "msg_token": "remove accidentally committed diagnostics"} {"diff": " public class IndexGraphQLSchema { \n . argument ( GraphQLArgument . newArgument ( ) \n . name ( STRING0 ) \n . description ( STRING1 ) \n - . type ( Scalars . GraphQLFloat ) \n + . type ( Scalars . GraphQLInt ) \n . build ( ) ) \n . argument ( GraphQLArgument . newArgument ( ) \n . name ( STRING2 )", "msg_token": "Fix argument type to match new function"} {"diff": " import NAMESPACE ; \n COMMENT \n public class OrientEdge extends OrientElement implements Edge { \n \n + public OrientEdge ( ) { \n + super ( null , new ODocument ( ) ) ; \n + } \n + \n public OrientEdge ( final OrientGraph rawGraph , final ODocument rawEdge , final String label ) { \n super ( rawGraph , rawEdge ) ; \n this . rawElement . field ( StringFactory . LABEL , label ) ; \n import NAMESPACE ; \n COMMENT \n public class OrientVertex extends OrientElement implements Vertex { \n \n + public OrientVertex ( ) { \n + super ( null , new ODocument ( ) ) ; \n + } \n + \n public OrientVertex ( final OrientGraph rawGraph , final ODocument rawVertex ) { \n super ( rawGraph , rawVertex ) ; \n }", "msg_token": "added no arg constructors to OrientVertex Edge for Luca"} {"diff": " public final class GtasksSyncService { \n \n \n public void triggerMoveForMetadata ( final Metadata metadata ) { \n + if ( metadata == null ) \n + return ; \n if ( metadata . checkAndClearTransitory ( SyncFlags . GTASKS_SUPPRESS_SYNC ) ) \n return ; \n if ( ! metadata . getValue ( Metadata . KEY ) . equals ( GtasksMetadata . METADATA_KEY ) ) SINGLE", "msg_token": "Don t trigger moves for null metadata not that this should happen"} {"diff": " public class J2ObjC { \n String [ ] files = null ; \n try { \n files = Options . load ( args ) ; \n - if ( nFiles == NUMBER0 ) { \n + if ( files . length == NUMBER0 ) { \n Options . help ( ) ; SINGLE \n } \n } catch ( IOException e ) {", "msg_token": "Corrected previous options handling change"} {"diff": " public class Api23RuntimeAdapter implements RuntimeAdapter { \n ClassParameter . from ( Rect . class , contentInsets ) , \n ClassParameter . from ( Rect . class , visibleInsets ) , \n ClassParameter . from ( Rect . class , stableInsets ) , \n + ClassParameter . from ( Rect . class , outsets ) , \n ClassParameter . from ( boolean . class , reportDraw ) , \n ClassParameter . from ( Configuration . class , newConfig ) ) ; \n }", "msg_token": "Corrected signature of callViewRootImplDispatchResized to add missing outsets parameter"} {"diff": " public class LocalStore extends Store implements Serializable \n COMMENT \n COMMENT \n COMMENT \n + ( ( LocalFolder ) mFolder ) . deleteAttachments ( mId ) ; \n mDb . execSQL ( STRING0 , \n new Object [ ] \n { \n mId \n } ) ; \n \n - ( ( LocalFolder ) mFolder ) . deleteAttachments ( mId ) ; \n ( ( LocalFolder ) mFolder ) . deleteHeaders ( mId ) ;", "msg_token": "Delete the attachments from disk before we delete them from the database so we know what to delete"} {"diff": " public final class TelecineActivity extends Activity { \n } \n \n @ onclick ( R . id . launch ) void onLaunchClicked ( ) { \n - longClickCount = NUMBER0 ; \n - Timber . d ( STRING0 ) ; \n + if ( longClickCount > NUMBER0 ) { \n + longClickCount = NUMBER0 ; \n + Timber . d ( STRING0 ) ; \n + } \n \n Timber . d ( STRING1 ) ; \n CaptureHelper . fireScreenCaptureIntent ( this , analytics ) ;", "msg_token": "Don t log long click reset unless they have long clicked"} {"diff": " public class OPropertyIndexDefinition extends OAbstractIndexDefinition { \n \n public Object getDocumentValueToIndex ( final ODocument iDocument ) { \n if ( OType . LINK . equals ( keyType ) ) { \n - final OIdentifiable identifiable = iDocument . field ( field ) ; \n + SINGLE \n + final OIdentifiable identifiable = iDocument . rawField ( field ) ; \n if ( identifiable != null ) \n return createValue ( identifiable . getIdentity ( ) ) ; \n else", "msg_token": "optimized indexing of property of type link avoinding lazy loading"} {"diff": " public class JetLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSetti \n } \n \n @ override \n - public boolean usesSharedPreview ( ) { \n - return false ; \n - } \n - \n - @ override \n public CommonCodeStyleSettings getDefaultCommonSettings ( ) { \n CommonCodeStyleSettings commonCodeStyleSettings = new CommonCodeStyleSettings ( getLanguage ( ) ) ; \n commonCodeStyleSettings . initIndentOptions ( ) ;", "msg_token": "Remove deprecated method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TrainParser { \n SINGLE \n SINGLE \n Options op = new Options ( ) ; \n - CompositeTreeTransformer transformer = LexicalizedParser . buildTrainTransformer ( op ) ; \n + TreeBinarizer binarizer = new TreeBinarizer ( op . tlpParams . headFinder ( ) , op . tlpParams . treebankLanguagePack ( ) , false , false , NUMBER0 , false , false , FLOAT0 , false , true , true ) ; \n BasicCategoryTreeTransformer basicTransformer = new BasicCategoryTreeTransformer ( op . langpack ( ) ) ; \n + CompositeTreeTransformer transformer = new CompositeTreeTransformer ( ) ; \n + transformer . addTransformer ( binarizer ) ; \n transformer . addTransformer ( basicTransformer ) ; \n \n System . err . println ( STRING0 + trainTreebankPath ) ;", "msg_token": "Use the TreeBinarizer directly giving the srparser more control over its options"} {"diff": " public class IrcConnection \n \n SINGLE \n this . presence = \n - new PresenceManager ( irc , this . connectionState , \n + new PresenceManager ( this . irc , this . connectionState , \n this . provider . getPersistentPresence ( ) ) ; \n \n SINGLE \n public class IrcConnection \n COMMENT \n public boolean isConnected ( ) \n { \n - return this . connectionState . isConnected ( ) ; \n + return this . connectionState != null \n + && this . connectionState . isConnected ( ) ; \n } \n \n COMMENT", "msg_token": "Fix NPE during IRC connection process"} {"diff": " public class HystrixMetricsPoller { \n json . writeNumberField ( STRING0 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . FAILURE ) ) ; \n json . writeNumberField ( STRING1 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . FALLBACK_EMIT ) ) ; \n json . writeNumberField ( STRING2 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . FALLBACK_FAILURE ) ) ; \n + json . writeNumberField ( STRING3 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . FALLBACK_MISSING ) ) ; \n json . writeNumberField ( STRING4 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . FALLBACK_REJECTION ) ) ; \n json . writeNumberField ( STRING5 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . FALLBACK_SUCCESS ) ) ; \n json . writeNumberField ( STRING6 , commandMetrics . getRollingCount ( HystrixRollingNumberEvent . RESPONSE_FROM_CACHE ) ) ;", "msg_token": "Added FALLBACK_MISSING to hystrix metrics event stream"} {"diff": " public class OSMDatabase implements OpenStreetMapContentHandler { \n \n SINGLE \n processRelations ( ) ; \n - \n - SINGLE \n - SINGLE \n - HashSet < Long > _keep = new HashSet < Long > ( waysNodeIds ) ; \n - _keep . addAll ( areaNodeIds ) ; \n - nodesById . keySet ( ) . retainAll ( _keep ) ; \n } \n \n private void getLevelsForWay ( OSMWithTags way ) {", "msg_token": "Removed unused code"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract class AbstractAtomFeedView extends AbstractFeedView < Feed > {", "msg_token": "Added link to Atom spec in javadoc"} {"diff": " public final class ElementMatchers { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added missing dot"} {"diff": " public class SimpleTestCursor extends TestCursor { \n } \n \n @ override \n + public int getColumnIndexOrThrow ( String columnName ) throws IllegalArgumentException { \n + int col = getColumnIndex ( columnName ) ; \n + if ( col == - NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING0 + columnName ) ; \n + } \n + return col ; \n + } \n + \n + @ override \n public int getColumnIndex ( String columnName ) { \n return columnNames . indexOf ( columnName ) ; \n }", "msg_token": "Added getCoumnIndexOrThrow to SimpleTestCursor"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class SimpleDependency implements RenderableDependency { \n \n - private final ModuleVersionIdentifier id ; \n + private final ModuleComponentIdentifier id ; \n private final String name ; \n private final boolean resolvable ; \n private final String description ; \n public class SimpleDependency implements RenderableDependency { \n } \n \n public ModuleComponentIdentifier getId ( ) { \n - return DefaultModuleComponentIdentifier . newId ( id . getGroup ( ) , id . getName ( ) , id . getVersion ( ) ) ; \n + return id ; \n } \n \n public String getName ( ) {", "msg_token": "Avoid unnecessary conversion"} {"diff": " public class XPackageManager extends XHook { \n Method mGetPackageUid = param . thisObject . getClass ( ) . getDeclaredMethod ( STRING0 , String . class , \n int . class ) ; \n mGetPackageUid . setAccessible ( true ) ; \n - int uid = ( Integer ) mGetPackageUid . invoke ( param . thisObject , pkgName , NUMBER0 ) ; \n + int userId = Util . getUserId ( Binder . getCallingUid ( ) ) ; \n + int uid = ( Integer ) mGetPackageUid . invoke ( param . thisObject , pkgName , userId ) ; \n \n if ( resultOfCheck == PackageManager . PERMISSION_GRANTED ) { \n permName = permName . replace ( STRING1 , STRING2 ) ;", "msg_token": "Fix checkPermission for secondary users"} {"diff": " import NAMESPACE ; \n @ jsonsubtypes.type ( name = STRING0 , value = SearchQuerySpecDimExtractionFn . class ) , \n @ jsonsubtypes.type ( name = STRING1 , value = JavascriptExtractionFn . class ) , \n @ jsonsubtypes.type ( name = STRING2 , value = TimeFormatExtractionFn . class ) , \n - @ jsonsubtypes.type ( name = STRING3 , value = LookupExtractionFn . class ) , \n - @ jsonsubtypes.type ( name = STRING4 , value = IdentityExtractionFn . class ) \n + @ jsonsubtypes.type ( name = STRING4 , value = IdentityExtractionFn . class ) , \n + @ jsonsubtypes.type ( name = STRING3 , value = LookupExtractionFn . class ) \n } ) \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n public class LookupExtractionFn extends FunctionalExtraction \n { \n - private static final byte CACHE_TYPE_ID = NUMBER0 ; \n + private static final byte CACHE_TYPE_ID = NUMBER1 ; \n \n private final LookupExtractor lookup ;", "msg_token": "Change LookupExtractionFn cache key to be unique"} {"diff": " public class NsdService extends INsdManager . Stub { \n int keyId = clientInfo . mClientIds . indexOfValue ( id ) ; \n if ( keyId != - NUMBER0 ) { \n clientId = clientInfo . mClientIds . keyAt ( keyId ) ; \n + } else { \n + SINGLE \n + SINGLE \n + SINGLE \n + Slog . d ( TAG , STRING0 + id ) ; \n + handled = false ; \n + return handled ; \n } \n + \n switch ( code ) { \n case NativeResponseCode . SERVICE_FOUND : \n COMMENT", "msg_token": "Fix an NPE in NsdManager"} {"diff": " public class ConfigFileApplicationListener implements \n \n private void onApplicationEnvironmentPreparedEvent ( \n ConfigurableEnvironment environment , SpringApplication application ) { \n - addProperySources ( environment ) ; \n + addPropertySources ( environment ) ; \n bindToSpringApplication ( environment , application ) ; \n } \n \n public class ConfigFileApplicationListener implements \n COMMENT \n COMMENT \n COMMENT \n - protected void addProperySources ( ConfigurableEnvironment environment ) { \n + protected void addPropertySources ( ConfigurableEnvironment environment ) { \n RandomValuePropertySource . addToEnvironment ( environment ) ; \n try { \n PropertySource < ? > defaultProperties = environment . getPropertySources ( ) \n public class ConfigFileApplicationContextInitializer implements \n public void initialize ( final ConfigurableApplicationContext applicationContext ) { \n new ConfigFileApplicationListener ( ) { \n public void apply ( ) { \n - addProperySources ( applicationContext . getEnvironment ( ) ) ; \n + addPropertySources ( applicationContext . getEnvironment ( ) ) ; \n addPostProcessors ( applicationContext ) ; \n } \n } . apply ( ) ;", "msg_token": "Fix typo in ConfigFileAppListener addProper t ySources"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class Utils { \n \n TOKEN_NAME_TO_VALUE = builder . build ( ) ; \n TOKEN_VALUE_TO_NAME = tempTokenValueToName ; \n - final Integer [ ] ids = TOKEN_NAME_TO_VALUE . values ( ) . toArray ( new Integer [ NUMBER0 ] ) ; \n + final ImmutableCollection < Integer > values = TOKEN_NAME_TO_VALUE . values ( ) ; \n + final Integer [ ] ids = values . toArray ( new Integer [ values . size ( ) ] ) ; \n TOKEN_IDS = ArrayUtils . toPrimitive ( ids ) ; \n }", "msg_token": "Replace toArray argument with correctly sized array"} {"diff": " public class LegacyEditorFragment extends EditorFragmentAbstract implements Text \n } \n } \n \n + @ override \n public void appendGallery ( MediaGallery mediaGallery ) { \n Editable editableText = mContentEditText . getText ( ) ; \n if ( editableText == null ) {", "msg_token": "Adding missing override annotation"} {"diff": " public class EditNoteActivity extends LinearLayout implements TimerActionListene \n private View commentButton ; \n private int commentItems = NUMBER0 ; \n private ImageButton pictureButton ; \n - private static Bitmap pendingCommentPicture = null ; \n + private Bitmap pendingCommentPicture = null ; \n private final Fragment fragment ; \n private final ImageDiskCache imageCache ; \n private final int cameraButton ; \n public class EditNoteActivity extends LinearLayout implements TimerActionListene \n parentView = parent ; \n \n loadViewForTaskID ( t ) ; \n - \n - if ( pendingCommentPicture != null ) \n - pictureButton . setImageBitmap ( pendingCommentPicture ) ; \n } \n \n private int getDefaultCameraButton ( ) {", "msg_token": "Revert a commit that broke things"} {"diff": " public class DiagnosticGroups { \n CheckNullableReturn . NULLABLE_RETURN_WITH_NAME , \n CheckPrototypeProperties . ILLEGAL_PROTOTYPE_MEMBER , \n ImplicitNullabilityCheck . IMPLICITLY_NULLABLE_JSDOC , \n - RhinoErrorReporter . JSDOC_MISSING_BRACES_WARNING , \n - TypeCheck . NON_STRINGIFIABLE_OBJECT_KEY ) ; \n + RhinoErrorReporter . JSDOC_MISSING_BRACES_WARNING ) ; \n \n public static final DiagnosticGroup USE_OF_GOOG_BASE = \n DiagnosticGroups . registerGroup ( STRING0 , \n public final class TypeCheck implements NodeTraversal . Callback , CompilerPass { \n STRING1 ) ; \n \n static final DiagnosticType NON_STRINGIFIABLE_OBJECT_KEY = \n - DiagnosticType . disabled ( \n + DiagnosticType . warning ( \n STRING2 , \n STRING3 \n + STRING4 ) ; \n public final class TypeCheck implements NodeTraversal . Callback , CompilerPass { \n IN_USED_WITH_STRUCT , \n ILLEGAL_PROPERTY_CREATION , \n ILLEGAL_OBJLIT_KEY , \n + NON_STRINGIFIABLE_OBJECT_KEY , \n RhinoErrorReporter . TYPE_PARSE_ERROR , \n TypedScopeCreator . UNKNOWN_LENDS , \n TypedScopeCreator . LENDS_ON_NON_OBJECT ,", "msg_token": "Enable non stringifiable object keys compiler check by default"} {"diff": " public class ComponentDao extends BaseDao < ComponentMapper , ComponentDto , String > \n \n @ override \n protected void doDeleteByKey ( DbSession session , String key ) { \n - SINGLE \n mapper ( session ) . deleteByKey ( key ) ; \n } \n \n public class UserUpdater implements ServerComponent { \n if ( updateUser . isScmAccountsChanged ( ) ) { \n List < String > scmAccounts = updateUser . scmAccounts ( ) ; \n if ( scmAccounts != null && ! scmAccounts . isEmpty ( ) ) { \n - scmAccounts = sanitizeScmAccounts ( updateUser . scmAccounts ( ) ) ; \n + scmAccounts = sanitizeScmAccounts ( scmAccounts ) ; \n validateScmAccounts ( dbSession , scmAccounts , userDto . getLogin ( ) , email != null ? email : userDto . getEmail ( ) , userDto , messages ) ; \n userDto . setScmAccounts ( convertScmAccountsToCsv ( scmAccounts ) ) ; \n } else {", "msg_token": "Fix quality flaw"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OAutomaticBackup extends OServerHandlerAbstract { \n filePath . mkdirs ( ) ; \n \n OLogManager . instance ( ) . info ( this , \n - STRING0 , delay , firstTime , \n + STRING1 , delay , firstTime , \n targetDirectory ) ; \n \n final TimerTask timerTask = new TimerTask ( ) {", "msg_token": "removed warnings and typo"} {"diff": " public class BuildCraftSilicon extends BuildCraftMod { \n BuildCraftCore . mainConfiguration . save ( ) ; \n \n laserBlock = new BlockLaser ( ) ; \n + laserBlock . setBlockName ( STRING0 ) ; \n CoreProxy . proxy . registerBlock ( laserBlock ) ; \n \n assemblyTableBlock = new BlockLaserTable ( ) ;", "msg_token": "Set the block name for lasers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n class SmartPsiElementPointerImpl < E extends PsiElement > implements SmartPointerEx < E > { \n private Reference < E > myElement ; \n class SmartPsiElementPointerImpl < E extends PsiElement > implements SmartPointerEx \n } \n \n private void cacheElement ( E element ) { \n - myElement = element == null ? null : new SoftReference < E > ( element ) ; \n + myElement = element == null ? null : \n + ( ( PsiManagerEx ) element . getManager ( ) ) . isBatchFilesProcessingMode ( ) ? new WeakReference < E > ( element ) : \n + new SoftReference < E > ( element ) ; \n } \n \n @ override", "msg_token": "use weak references in smart pointers when in bulk mode"} {"diff": " public class HikariDataSource extends HikariConfig implements DataSource , Closea \n public Connection getConnection ( ) throws SQLException \n { \n if ( isShutdown ) { \n - throw new SQLException ( STRING0 , pool . getConfiguration ( ) . getPoolName ( ) ) ; \n + throw new SQLException ( String . format ( STRING1 , pool . getConfiguration ( ) . getPoolName ( ) ) ) ; \n } \n \n if ( fastPathPool != null ) { \n public class ShutdownTest \n ds . getConnection ( ) ; \n } \n catch ( SQLException e ) { \n - Assert . assertTrue ( e . getMessage ( ) . contains ( STRING2 ) ) ; \n + Assert . assertTrue ( e . getMessage ( ) . contains ( STRING3 ) ) ; \n } \n }", "msg_token": "Fix exception message"} {"diff": " public class HttpResponseHeader extends HttpHeader { \n private static final String _CONTENT_TYPE_IMAGE = STRING0 ; \n private static final String _CONTENT_TYPE_TEXT = STRING1 ; \n private static final String _CONTENT_TYPE_HTML = STRING2 ; \n + private static final String _CONTENT_TYPE_JAVASCRIPT = STRING3 ; \n \n \n static final Pattern patternStatusLine \n public class HttpResponseHeader extends HttpHeader { \n return false ; \n \n } \n + \n + public boolean isJavaScript ( ) { \n + String contentType = getHeader ( CONTENT_TYPE . toUpperCase ( ) ) ; \n + \n + if ( contentType != null ) { \n + if ( contentType . toLowerCase ( ) . indexOf ( _CONTENT_TYPE_JAVASCRIPT ) > - NUMBER0 ) { \n + return true ; \n + } \n + } \n + \n + return false ; \n + \n + } \n \n public static boolean isStatusLine ( String data ) { \n return patternPartialStatusLine . matcher ( data ) . find ( ) ;", "msg_token": "added JavaScript as Content Type"} {"diff": " public class ControlFlowUtils { \n return PsiTreeUtil . getParentOfType ( expression , PsiReturnStatement . class ) != null ; \n } \n \n - private static boolean isInThrowStatementArgument ( @ notnull PsiExpression expression ) { \n + public static boolean isInThrowStatementArgument ( @ notnull PsiExpression expression ) { \n return PsiTreeUtil . getParentOfType ( expression , PsiThrowStatement . class ) != null ; \n }", "msg_token": "fix broken compilation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class FromFtpSimulateNetworkIssueRecoverTest extends FtpServerTestSupport \n \n resultEndpoint . assertIsSatisfied ( ) ; \n \n - assertEquals ( NUMBER0 , counter ) ; \n + Thread . sleep ( NUMBER1 ) ; \n + \n + assertTrue ( STRING0 + counter , counter >= NUMBER0 ) ; \n assertEquals ( NUMBER2 , rollback ) ; \n }", "msg_token": "Fixed unit test on slower boxes"} {"diff": " public class ConversationFragment extends Fragment implements EditMessage . Keyboa \n if ( m . getStatus ( ) != Message . STATUS_SEND_FAILED ) { \n sendAgain . setVisible ( false ) ; \n } \n - if ( ( ( m . getType ( ) != Message . TYPE_IMAGE && m . getDownloadable ( ) == null ) \n - || m . getImageParams ( ) . url == null ) && ! GeoHelper . isGeoUri ( m . getBody ( ) ) ) { \n + if ( ! m . hasFileOnRemoteHost ( ) && ! GeoHelper . isGeoUri ( m . getBody ( ) ) ) { \n copyUrl . setVisible ( false ) ; \n } \n if ( m . getType ( ) != Message . TYPE_TEXT", "msg_token": "always show copy original url in context menu when url is available"} {"diff": " public class FtpPollingConsumerTest extends FtpServerTestSupport { \n @ test \n public void testPollingConsumer ( ) throws Exception { \n MockEndpoint result = getMockEndpoint ( STRING0 ) ; \n - result . expectedBodiesReceivedInAnyOrder ( STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ) ; \n + result . expectedBodiesReceived ( NUMBER0 ) ; \n result . expectedFileExists ( FTP_ROOT_DIR + STRING6 ) ; \n result . expectedFileExists ( FTP_ROOT_DIR + STRING7 ) ; \n result . expectedFileExists ( FTP_ROOT_DIR + STRING8 ) ;", "msg_token": "Fixed unit test"} {"diff": " public class NetworkManager { \n public boolean isAvailable ( ) \n { \n NetworkInfo info = sockMan . getActiveNetworkInfo ( ) ; \n - boolean conn = info . isConnected ( ) ; \n + boolean conn = false ; \n + if ( info != null ) \n + conn = info . isConnected ( ) ; \n return conn ; \n } \n \n public class PhoneGap { \n return version ; \n } \n \n - \n + \n public void httpGet ( String url , String file ) \n COMMENT \n COMMENT", "msg_token": "Fixing null error in NetworkManager"} {"diff": " public class Table extends WidgetGroup { \n return layout . add ( actor ) ; \n } \n \n + public void add ( Actor . . . actors ) { \n + for ( int i = NUMBER0 , n = actors . length ; i < n ; i ++ ) \n + layout . add ( actors [ i ] ) ; \n + } \n + \n public boolean removeActor ( Actor actor ) { \n if ( ! super . removeActor ( actor ) ) return false ; \n Cell cell = getCell ( actor ) ;", "msg_token": "Added convenience method"} {"diff": " public final class AuthorizationServerSecurityConfigurer extends \n return this ; \n } \n \n + public AuthorizationServerSecurityConfigurer tokenGranter ( TokenGranter tokenGranter ) { \n + this . tokenGranter = tokenGranter ; \n + return this ; \n + } \n + \n public AuthorizationServerSecurityConfigurer clientDetailsService ( ClientDetailsService clientDetailsService ) { \n this . clientDetailsService = clientDetailsService ; \n return this ;", "msg_token": "Add support for TokenGranter in AuthorizationServerSecurityConfigurer"} {"diff": " public enum TypeConstantAdjustment implements AsmVisitorWrapper { \n } \n \n @ override \n - public MethodVisitor visitMethod ( int access , String name , String desc , String signature , String [ ] exceptions ) { \n + public MethodVisitor visitMethod ( int modifiers , String name , String descriptor , String signature , String [ ] exception ) { \n return supportsTypeConstants \n - ? super . visitMethod ( access , name , desc , signature , exceptions ) \n - : new TypeConstantDissolvingMethodVisitor ( super . visitMethod ( access , name , desc , signature , exceptions ) ) ; \n + ? super . visitMethod ( modifiers , name , descriptor , signature , exception ) \n + : new TypeConstantDissolvingMethodVisitor ( super . visitMethod ( modifiers , name , descriptor , signature , exception ) ) ; \n } \n \n @ override", "msg_token": "Small naming improvements"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AntFileImpl extends LightPsiFileBase implements AntFile { \n updateTypeDefinitions ( myAntProject . getTaskDefinitions ( ) , true ) ; \n SINGLE \n updateTypeDefinitions ( myAntProject . getDataTypeDefinitions ( ) , false ) ; \n + AntTypeDefinition sequentialDef = myTypeDefinitions . get ( Sequential . class . getName ( ) ) ; \n + if ( sequentialDef != null ) { \n + for ( AntTypeDefinition def : myTypeDefinitions . values ( ) ) { \n + sequentialDef . registerNestedType ( def . getTypeId ( ) , def . getClassName ( ) ) ; \n + } \n + } \n return myTypeDefinitions . get ( className ) ; \n }", "msg_token": "allow all nested types in sequential"} {"diff": " public class CalendarPickerView extends ListView { \n if ( invalidDateListener != null ) { \n invalidDateListener . onInvalidDateSelected ( clickedDate ) ; \n } \n - } else { \n + } else if ( dateListener != null ) { \n boolean wasSelected = doSelectDate ( clickedDate , cell ) ; \n - \n - if ( wasSelected && dateListener != null ) { \n + \n + if ( wasSelected ) { \n dateListener . onDateSelected ( clickedDate ) ; \n - } else if ( ! wasSelected && dateListener != null ) { \n + } else if ( ! wasSelected ) { \n dateListener . onDateUnselected ( clickedDate ) ; \n } \n } \n public class CalendarPickerView extends ListView { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CalendarPickerView extends ListView { \n public interface OnDateSelectedListener { \n void onDateSelected ( Date date ) ; \n \n - void onDateUnselected ( Date date ) ; \n + void onDateUnselected ( Date date ) ; \n } \n \n COMMENT", "msg_token": "revoke rights to execute CalendarPickerView"} {"diff": " public class OracleDatabase extends AbstractJdbcDatabase { \n if ( ( STRING0 . equals ( example . getName ( ) ) || STRING1 . equals ( example . getName ( ) ) || STRING2 . equals ( example . getName ( ) ) || STRING3 . equals ( example . getName ( ) ) ) ) { \n return true ; \n } \n - } else if ( example instanceof Table ) { \n + } else if ( example . getName ( ) != null ) { \n if ( example . getName ( ) . startsWith ( STRING4 ) ) { SINGLE \n return true ; \n } else if ( example . getName ( ) . startsWith ( STRING5 ) ) { SINGLE", "msg_token": "The oracle system objects check applies to all objects not just tables"} {"diff": " public class DynamicListView extends ListView { \n COMMENT \n COMMENT \n public void setAdapter ( ListAdapter adapter ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + if ( ! ( adapter instanceof BaseAdapter ) ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + super . setAdapter ( adapter ) ; \n } \n \n COMMENT", "msg_token": "Fix accidental calls to setAdapter ListAdapter"} {"diff": " public final class InlineTest extends SingleFileTranslationWithDirectivesTest { \n public void testMutualRecursion ( ) throws Exception { \n try { \n checkFooBoxIsOkWithDirectives ( ) ; \n - } catch ( Exception e ) { \n - assert e . getCause ( ) instanceof InlineRecursionException ; \n + } catch ( InlineRecursionException e ) { \n + return ; \n } \n + \n + throw new AssertionError ( STRING0 ) ; \n } \n \n public void testInlineOrder ( ) throws Exception {", "msg_token": "fixed recursion test for inliner"} {"diff": " public class NetworkManager extends Plugin { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onReset ( ) { \n + this . onDestroy ( ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Add onReset to NetworkManager"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DelegateGraphFacade implements GraphFacade { \n \n @ notnull \n - private final PermanentGraphImpl < Integer > myPermanentGraph ; \n + private final PermanentGraph < Integer > myPermanentGraph ; \n private final GraphCellPainter myGraphCellPainter ; \n \n @ notnull \n public class DelegateGraphFacade implements GraphFacade { \n @ nullable \n private Condition < Integer > myVisibilityPredicate = null ; \n \n - public DelegateGraphFacade ( @ notnull PermanentGraphImpl < Integer > permanentGraph , @ notnull ColorGenerator colorGenerator ) { \n + public DelegateGraphFacade ( @ notnull PermanentGraph < Integer > permanentGraph , @ notnull ColorGenerator colorGenerator ) { \n myPermanentGraph = permanentGraph ; \n myGraphCellPainter = new SimpleGraphCellPainter ( colorGenerator ) ; \n updateVisibleGraph ( ) ;", "msg_token": "log use interface"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n class MarkupModelDelegate extends UserDataHolderBase implements MarkupModelEx { \n public boolean containsHighlighter ( final RangeHighlighter highlighter ) { \n return myHostModel . containsHighlighter ( highlighter ) ; \n } \n + \n + public void addMarkupModelListener ( MarkupModelListener listener ) { \n + myHostModel . addMarkupModelListener ( listener ) ; \n + } \n + \n + \n + public void removeMarkupModelListener ( MarkupModelListener listener ) { \n + myHostModel . removeMarkupModelListener ( listener ) ; \n + } \n }", "msg_token": "Fix compilation erros"} {"diff": " public final class TimestampType \n } \n \n @ override \n - \n public String getName ( ) \n { \n return STRING0 ;", "msg_token": "Remove extra newline"} {"diff": " class ViewFetcher { \n COMMENT \n COMMENT \n \n - public ArrayList < View > getViews ( View parent , boolean onlySufficientlyVisible ) { \n + public ArrayList < View > getViews ( View parent , boolean onlySufficientlyVisible ) { \n + activityUtils . getCurrentActivity ( false ) ; \n final ArrayList < View > views = new ArrayList < View > ( ) ; \n final View parentToUse ; \n \n class ViewFetcher { \n COMMENT \n \n public float getScrollListWindowHeight ( View view ) { \n - \n final int [ ] xyParent = new int [ NUMBER0 ] ; \n final View parent = getScrollOrListParent ( view ) ; \n final float windowHeight ;", "msg_token": "Added a getCurrentActivity in getViews in order to make sure that finalize will finish all openeded actvities"} {"diff": " public class HazelcastAggregationRepository extends ServiceSupport \n return unmarshallExchange ( camelContext , cache . get ( key ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean containsKey ( Object key ) { \n + return cache . containsKey ( key ) ; \n + } \n + \n public boolean isAllowSerializedHeaders ( ) { \n return allowSerializedHeaders ; \n }", "msg_token": "added method to check for key existence"} {"diff": " public final class Alias { \n if ( rv != null ) { \n return rv ; \n } else if ( arg instanceof EntityPath < ? > ) { \n - return ( EntityPathBase < D > ) arg ; \n + return ( EntityPathBase < D > ) arg ; SINGLE \n } else if ( arg instanceof ManagedObject ) { \n return ( EntityPathBase < D > ) ( ( ManagedObject ) arg ) . __mappedPath ( ) ; \n } else { \n public abstract class AbstractJPAQuery < Q extends AbstractJPAQuery < Q > > extends JP \n COMMENT \n COMMENT \n COMMENT \n + @ nullable \n private Object getSingleResult ( Query query ) { \n if ( factoryExpressionUsed ) { \n Object result = query . getSingleResult ( ) ;", "msg_token": "fixed Sonar issues"} {"diff": " public class MetricFilterAutoConfiguration { \n result = result . replace ( STRING0 , STRING1 ) ; \n result = result . replace ( STRING2 , STRING3 ) ; \n result = result . replace ( STRING4 , STRING5 ) ; \n + result = result . replace ( STRING6 , STRING5 ) ; \n if ( result . endsWith ( STRING7 ) ) { \n result = result . substring ( NUMBER0 , result . length ( ) - NUMBER1 ) ; \n }", "msg_token": "Remove extra trailing in metric name"} {"diff": " public @ interface UiThread { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add note to javadoc that propagation is ignored when the delay is non zero"} {"diff": " public class SwitchRenderer extends AbstractWidgetRenderer { \n \n if ( s . getMappings ( ) . size ( ) == NUMBER0 ) { \n if ( state instanceof PercentType ) { \n - state = ( ( PercentType ) state ) . toBigDecimal ( ) . compareTo ( BigDecimal . ZERO ) > NUMBER0 ? OnOffType . ON : OnOffType . OFF ; \n + state = ( ( PercentType ) state ) . intValue ( ) > NUMBER0 ? OnOffType . ON : OnOffType . OFF ; \n } \n if ( state . equals ( OnOffType . ON ) ) { \n snippet = snippet . replaceAll ( STRING0 , STRING1 ) ;", "msg_token": "fixed compilation error"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "pt Fix comment"} {"diff": " public abstract class InspectionToolsConfigurable extends BaseConfigurable imple \n public void run ( ) { \n SingleInspectionProfilePanel panel = getSelectedPanel ( ) ; \n if ( panel != null ) { \n - panel . filterTree ( option ) ; \n + panel . setFilter ( option ) ; \n } \n } \n } ; \n public class SingleInspectionProfilePanel extends JPanel { \n return null ; \n } \n \n + public void setFilter ( String filter ) { \n + myProfileFilter . setFilter ( filter ) ; \n + } \n + \n public void filterTree ( String filter ) { \n if ( myTree != null ) { \n mySelectedProfile . getExpandedNodes ( ) . saveVisibleState ( myTree ) ;", "msg_token": "provide inspections filter when filter globally"} {"diff": " public abstract class AbstractAjaxCallback < T , K > implements Runnable { \n } \n } \n \n + } else { \n + skip ( url , result , status ) ; \n } \n \n filePut ( ) ; \n public abstract class AbstractAjaxCallback < T , K > implements Runnable { \n \n } \n \n + protected void skip ( String url , T object , AjaxStatus status ) { \n + \n + } \n + \n protected T fileGet ( String url , File file , AjaxStatus status ) { \n \n try { \n public class BitmapAjaxCallback extends AbstractAjaxCallback < Bitmap , BitmapAjaxC \n \n } \n \n + @ override \n + protected void skip ( String url , Bitmap bm , AjaxStatus status ) { \n + queueMap . remove ( url ) ; \n + } \n + \n + \n private void checkCb ( BitmapAjaxCallback cb , String url , ImageView v , Bitmap bm , AjaxStatus status ) { \n \n if ( v == null || cb == null ) return ;", "msg_token": "Fix terminated activity with pending image callback doesn t clear the"} {"diff": " public class GeneralCommandLine { \n if ( parameter . contains ( STRING0 ) ) { \n parameter = StringUtil . replace ( parameter , STRING0 , STRING1 ) ; \n } \n + else if ( parameter . length ( ) == NUMBER0 ) { \n + parameter = STRING2 ; \n + } \n } \n return parameter ; \n } \n public class GeneralCommandLineTest extends UsefulTestCase { \n ) ; \n } \n \n - final String [ ] parameters = { STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING0 , STRING8 , STRING9 } ; \n + final String [ ] parameters = { STRING3 , STRING4 , STRING5 , STRING6 , STRING10 , STRING7 , STRING0 , STRING8 , STRING9 } ; \n try { \n final GeneralCommandLine commandLine = new GeneralCommandLine ( ) ; \n commandLine . setExePath ( tempFile . getCanonicalPath ( ) ) ;", "msg_token": "Fix passing empty parameters on Windows"} {"diff": " public class AsyncHttpResponseHandler { \n if ( handler != null ) { \n msg = this . handler . obtainMessage ( responseMessage , response ) ; \n } else { \n - msg = new Message ( ) ; \n + msg = Message . obtain ( ) ; \n msg . what = responseMessage ; \n msg . obj = response ; \n }", "msg_token": "Use obtain instead of new on Message creation to improve memory efficiency"} {"diff": " ConfirmationDialogFragment . ConfirmationDialogFragmentListener { \n \n private boolean mIgnoreFirstSavedState ; \n \n - private FileFragment . ContainerActivity mContainerActivity ; \n - \n \n COMMENT \n COMMENT \n public class PreviewMediaFragment extends FileFragment implements \n private boolean mAutoplay ; \n public boolean mPrepared ; \n \n - private FileFragment . ContainerActivity mContainerActivity ; \n - \n private static final String TAG = PreviewMediaFragment . class . getSimpleName ( ) ;", "msg_token": "Fixed wrong field override breaking options menu in PreviewMediaFragment and PreviewImageFragment"} {"diff": " public abstract class AbstractVcs { \n return true ; \n } \n \n + public static boolean fileInVcsByFileStatus ( final Project project , final FilePath path ) { \n + final VirtualFile virtualFile = path . getVirtualFile ( ) ; \n + if ( virtualFile != null ) { \n + final FileStatus fileStatus = FileStatusManager . getInstance ( project ) . getStatus ( virtualFile ) ; \n + return fileStatus != FileStatus . UNKNOWN && fileStatus != FileStatus . ADDED && fileStatus != FileStatus . IGNORED ; \n + } \n + return true ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class AbstractShowDiffAction extends AbstractVcsAction { \n \n if ( diffProvider == null ) return false ; \n \n - return vcs . fileExistsInVcs ( new FilePathImpl ( selectedFile ) ) ; \n + return AbstractVcs . fileInVcsByFileStatus ( project , new FilePathImpl ( selectedFile ) ) ; \n }", "msg_token": "diff action update reuse FileStatus"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing copyright"} {"diff": " public class SwipeRefreshLayout extends ViewGroup { \n mCircleView . offsetTopAndBottom ( offset ) ; \n mCurrentTargetOffsetTop = mCircleView . getTop ( ) ; \n if ( requiresUpdate && android . os . Build . VERSION . SDK_INT <= NUMBER0 ) { \n - mCircleView . invalidate ( ) ; \n + invalidate ( ) ; \n } \n }", "msg_token": "Make the swipe refresh background spinner visible during the swipe gesture on gingerbread and before"} {"diff": " class AndroidObjectFactory implements ObjectFactory { \n } else if ( instance instanceof InstrumentationTestCase ) { \n ( ( InstrumentationTestCase ) instance ) . injectInstrumentation ( mInstrumentation ) ; \n } else if ( instance instanceof AndroidTestCase ) { \n - ( ( AndroidTestCase ) instance ) . setContext ( mInstrumentation . getContext ( ) ) ; \n + ( ( AndroidTestCase ) instance ) . setContext ( mInstrumentation . getTargetContext ( ) ) ; \n } \n mInstances . put ( type , instance ) ; \n return instance ;", "msg_token": "Inject target context instead of test context"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n className = className . replaceFirst ( STRING0 , STRING1 ) . replace ( STRING2 , STRING3 ) ; \n Class < ? > clazz = classloader . loadClass ( className ) ; \n \n - if ( WebSocketHandler . class . isAssignableFrom ( clazz ) ) { \n - webSocketProtocol = ( WebSocketHandler ) clazz . newInstance ( ) ; \n + if ( WebSocketProtocol . class . isAssignableFrom ( clazz ) ) { \n + webSocketProtocol = ( WebSocketProtocol ) clazz . newInstance ( ) ; \n InjectorProvider . getInjector ( ) . inject ( webSocketProtocol ) ; \n - logger . info ( STRING4 , webSocketProtocol ) ; \n + logger . info ( STRING5 , webSocketProtocol ) ; \n } \n } catch ( Throwable t ) { \n - logger . trace ( STRING6 + className , t ) ; \n + logger . trace ( STRING7 + className , t ) ; \n } \n } \n }", "msg_token": "Add support for autodetecting WebSocketProtocol not only WebSocketHandler"} {"diff": " public class ProgressWindow extends BlockingProgressIndicator { \n LOG . assertTrue ( ! myStoppedAlready ) ; \n myInstallFunAlarm . cancelAllRequests ( ) ; \n \n + super . stop ( ) ; \n if ( myDialog != null ) { \n myDialog . hide ( ) ; \n myFocusTrackback . restoreFocus ( ) ; \n } \n - super . stop ( ) ; \n myStoppedAlready = true ; \n \n SwingUtilities . invokeLater ( EmptyRunnable . INSTANCE ) ; SINGLE", "msg_token": "progress cancel fix"} {"diff": " public class KMeansClusterMapper extends Mapper < WritableComparable < ? > , VectorWrit \n if ( ( clusterPath != null ) && ( clusterPath . length ( ) > NUMBER0 ) ) { \n KMeansUtil . configureWithClusterInfo ( new Path ( clusterPath ) , clusters ) ; \n if ( clusters . isEmpty ( ) ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 ) ; \n } \n } \n this . clusterer = new KMeansClusterer ( measure ) ;", "msg_token": "reworded error message in cluster mapper for clarity"} {"diff": " public class CrateDocCollector implements CrateCollector { \n private final TopRowUpstream topRowUpstream ; \n private final RowReceiver rowReceiver ; \n private final Row inputRow ; \n - private final Collection < ? extends LuceneCollectorExpression < ? > > expressions ; \n + private final LuceneCollectorExpression [ ] expressions ; \n \n public LuceneDocCollector ( RamAccountingContext ramAccountingContext , \n TopRowUpstream topRowUpstream , \n public class CrateDocCollector implements CrateCollector { \n this . topRowUpstream = topRowUpstream ; \n this . rowReceiver = rowReceiver ; \n this . inputRow = inputRow ; \n - this . expressions = expressions ; \n + this . expressions = expressions . toArray ( new LuceneCollectorExpression [ NUMBER0 ] ) ; \n } \n \n @ override", "msg_token": "Convert expressions to array in CrateDocCollector"} {"diff": " public class LocalIndexesFragment extends OsmandExpandableListFragment { \n if ( dir . canRead ( ) ) { \n StatFs fs = new StatFs ( dir . getAbsolutePath ( ) ) ; \n size = formatGb . format ( new Object [ ] { ( float ) ( fs . getAvailableBlocks ( ) ) * fs . getBlockSize ( ) / ( NUMBER0 < < NUMBER1 ) } ) ; \n - percent = ( int ) ( fs . getAvailableBytes ( ) * NUMBER2 / fs . getTotalBytes ( ) ) ; \n + percent = ( int ) ( fs . getAvailableBlocks ( ) * NUMBER2 / fs . getBlockCount ( ) ) ; \n } \n sizeProgress . setProgress ( percent ) ; \n String text = getString ( R . string . free , size ) ;", "msg_token": "Updated percentage count method for local indexes"} {"diff": " public class ChainedExecutionQueryRunner < T > implements QueryRunner < T > \n } \n ) ; \n } \n - \n - public static void main ( String [ ] args ) throws Exception \n - { \n - ExecutorService foo = Executors . newFixedThreadPool ( NUMBER0 ) ; \n - Future test = foo . submit ( \n - new Callable < List > ( ) \n - { \n - @ override \n - public List call ( ) throws Exception \n - { \n - throw new ISE ( STRING0 ) ; \n - } \n - } \n - ) ; \n - System . out . println ( Lists . newArrayList ( test ) ) ; \n - } \n }", "msg_token": "remove test main"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed compile error"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CreateConstructorMatchingSuperFix extends BaseIntentionAction { \n } \n derived = ( PsiMethod ) formatter . reformat ( derived ) ; \n derived = ( PsiMethod ) JavaCodeStyleManager . getInstance ( project ) . shortenClassReferences ( derived ) ; \n - derived = ( PsiMethod ) GenerateMembersUtil . insert ( targetClass , derived , null , true ) ; \n + PsiGenerationInfo < PsiMethod > info = OverrideImplementUtil . createGenerationInfo ( derived ) ; \n + info . insert ( targetClass , null , true ) ; \n + derived = info . getPsiMember ( ) ; \n } \n if ( derived != null ) { \n editor . getCaretModel ( ) . moveToOffset ( derived . getTextRange ( ) . getStartOffset ( ) ) ;", "msg_token": "Add constructor matching super inserts full qualified types"} {"diff": " public class WifiStateMachine extends StateMachine { \n transitionTo ( mDriverUnloadingState ) ; \n break ; \n case CMD_START_SUPPLICANT : \n + try { \n + mNwService . wifiFirmwareReload ( mInterfaceName , STRING0 ) ; \n + } catch ( Exception e ) { \n + Log . e ( TAG , STRING1 + e ) ; \n + SINGLE \n + } \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Reload STA firmware on start"} {"diff": " public class MetaDataMappingService extends AbstractComponent { \n return newClusterStateBuilder ( ) . state ( currentState ) . metaData ( builder ) . build ( ) ; \n } catch ( Exception e ) { \n logger . warn ( STRING0 , e ) ; \n + listener . onFailure ( e ) ; \n return currentState ; \n - } finally { \n - listener . onResponse ( new Response ( true ) ) ; \n } \n }", "msg_token": "notify listener on failure"} {"diff": " public class BufferingStreamSinkConduit extends AbstractStreamSinkConduit < Stream \n this . pool = pool ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n @ override \n public long transferFrom ( FileChannel src , long position , long count ) throws IOException { \n if ( anyAreSet ( state , SHUTDOWN ) ) { \n throw new ClosedChannelException ( ) ; \n } \n - if ( ! flushBuffer ( ) ) { \n - return NUMBER0 ; \n - } \n return src . transferTo ( position , count , new ConduitWritableByteChannel ( this ) ) ; \n }", "msg_token": "Fix BufferingStreamSinkConduit transferFrom"} {"diff": " public final class JerseyBroadcasterUtil { \n final static void onException ( Throwable t , AtmosphereResource < ? , ? > r ) { \n try { \n logger . debug ( STRING0 , t ) ; \n - \n - if ( t instanceof IOException && r instanceof AtmosphereEventLifecycle ) { \n - ( ( AtmosphereEventLifecycle ) r ) . notifyListeners ( new AtmosphereResourceEventImpl ( ( AtmosphereResourceImpl ) r , true , false ) ) ; \n - ( ( AtmosphereEventLifecycle ) r ) . removeEventListeners ( ) ; \n - } \n + r . notifyListeners ( new AtmosphereResourceEventImpl ( ( AtmosphereResourceImpl ) r , true , false ) ) ; \n + r . resume ( ) ; \n } finally { \n - try { \n - r . getBroadcaster ( ) . removeAtmosphereResource ( r ) ; \n - } catch ( IllegalStateException ex ) { \n - logger . trace ( ex . getMessage ( ) , ex ) ; \n - } \n BroadcasterFactory . getDefault ( ) . removeAllAtmosphereResource ( r ) ; \n } \n }", "msg_token": "Force the connection to resume in case of an unexpected connection"} {"diff": " public class TachyonFS extends AbstractTachyonFS { \n } \n \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n - private final int mUserFailedSpaceRequestLimits = \n - mTachyonConf . getInt ( Constants . USER_FAILED_SPACE_REQUEST_LIMITS , NUMBER0 ) ; \n + private final int mUserFailedSpaceRequestLimits ; \n private final ExecutorService mExecutorService ; \n \n SINGLE \n public class TachyonFS extends AbstractTachyonFS { \n mCloser . register ( new MasterClient ( mMasterAddress , mExecutorService , mTachyonConf ) ) ; \n mWorkerClient = mCloser . register ( new WorkerClient ( mMasterClient , mExecutorService , \n mTachyonConf ) ) ; \n + \n + mUserFailedSpaceRequestLimits = \n + mTachyonConf . getInt ( Constants . USER_FAILED_SPACE_REQUEST_LIMITS , NUMBER0 ) ; \n } \n \n COMMENT", "msg_token": "Prevent NPE on init TachyonFS member variable"} {"diff": " public final class NativeProtocol { \n \n for ( Signature signature : packageInfo . signatures ) { \n String hashedSignature = Utility . sha1hash ( signature . toByteArray ( ) ) ; \n - if ( validAppSignatureHashes . contains ( hashedSignature ) ) { \n - return true ; \n + if ( ! validAppSignatureHashes . contains ( hashedSignature ) ) { \n + return false ; \n } \n } \n \n - return false ; \n + return true ; \n } \n \n public TreeSet < Integer > getAvailableVersions ( ) {", "msg_token": "Fix Fake ID exploit"} {"diff": " public class AtmosphereResourceImpl implements AtmosphereResource { \n timeoutms = TimeUnit . MILLISECONDS . convert ( timeout , timeunit ) ; \n } \n \n - return suspend ( timeoutms , true ) ; \n + return suspend ( timeoutms , flushComment ) ; \n } \n \n public AtmosphereResource suspend ( long timeout , boolean flushComment ) {", "msg_token": "Propagate flushComment properly in suspend"} {"diff": " public abstract class AbstractHistogram extends AbstractHistogramBase implements \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public long sizeOfEquivalentValueRange ( final long value ) { \n final int bucketIndex = getBucketIndex ( value ) ;", "msg_token": "Fix some copy pasta javadoc"} {"diff": " public class StudyTaskManager implements ProjectComponent , PersistentStateCompon \n addShortcut ( NextWindowAction . SHORTCUT , NextWindowAction . ACTION_ID ) ; \n addShortcut ( PrevWindowAction . SHORTCUT , PrevWindowAction . ACTION_ID ) ; \n addShortcut ( ShowHintAction . SHORTCUT , ShowHintAction . ACTION_ID ) ; \n + addShortcut ( NextWindowAction . SHORTCUT2 , NextWindowAction . ACTION_ID ) ; \n } \n } \n } ) ; \n import NAMESPACE ; \n public class NextWindowAction extends DumbAwareAction { \n public static final String ACTION_ID = STRING0 ; \n public static final String SHORTCUT = STRING1 ; \n + public static final String SHORTCUT2 = STRING2 ; \n \n public void actionPerformed ( AnActionEvent e ) { \n Project project = e . getProject ( ) ;", "msg_token": "added additional shortcut"} {"diff": " public class StringProperty extends AbstractProperty implements Property { \n super . format = format ; \n } \n \n - SINGLE \n public static boolean isType ( String type , String format ) { \n return TYPE . equals ( type ) && ( format == null || Format . fromName ( format ) != null ) ; \n }", "msg_token": "Remove unnecessary comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SingletonPolicyBuilder implements ResourceServiceBuilder < SingletonP \n return target . addService ( this . getServiceName ( ) , new ValueService < > ( new ImmediateValue < SingletonPolicy > ( this ) ) ) \n . addDependency ( SingletonServiceName . BUILDER . getServiceName ( this . containerName , this . cacheName ) , SingletonServiceBuilderFactory . class , this . factory ) \n . addDependency ( new ElectionPolicyServiceNameProvider ( this . name ) . getServiceName ( ) , SingletonElectionPolicy . class , this . policy ) \n - . setInitialMode ( ServiceController . Mode . ON_DEMAND ) ; \n + ; \n } \n \n @ override", "msg_token": "Install SingletonPolicy service as ACTIVE"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class ContentProviderController < T extends ContentProvider > { \n public class AndroidManifestTest { \n @ test \n public void parseManifest_shouldReadContentProviders ( ) throws Exception { \n AndroidManifest config = newConfig ( STRING0 ) ; \n - assertThat ( config . getContentProviders ( ) ) . hasSize ( NUMBER0 ) ; \n \n assertThat ( config . getContentProviders ( ) . get ( NUMBER1 ) . getClassName ( ) ) . isEqualTo ( STRING1 ) ; \n assertThat ( config . getContentProviders ( ) . get ( NUMBER1 ) . getAuthority ( ) ) . isEqualTo ( STRING2 ) ;", "msg_token": "Fix test assertion remove check of total count"} {"diff": " public class ModelLoaderRegistry \n { \n private static final Set < ICustomModelLoader > loaders = new HashSet < ICustomModelLoader > ( ) ; \n private static final Map < ResourceLocation , IModel > cache = new HashMap < ResourceLocation , IModel > ( ) ; \n - private static boolean registered = false ; \n \n SINGLE \n static \n public class ModelLoaderRegistry \n public static void registerLoader ( ICustomModelLoader loader ) \n { \n loaders . add ( loader ) ; \n - if ( ! registered ) \n - { \n - ( ( IReloadableResourceManager ) Minecraft . getMinecraft ( ) . getResourceManager ( ) ) . registerReloadListener ( new IResourceManagerReloadListener ( ) \n - { \n - public void onResourceManagerReload ( IResourceManager manager ) \n - { \n - for ( ICustomModelLoader loader : loaders ) loader . onResourceManagerReload ( manager ) ; \n - } \n - } ) ; \n - registered = true ; \n - } \n + ( ( IReloadableResourceManager ) Minecraft . getMinecraft ( ) . getResourceManager ( ) ) . registerReloadListener ( loader ) ; \n } \n \n public static boolean loaded ( ResourceLocation location )", "msg_token": "Fix custom model loader reload hook not firing during registration"} {"diff": " public class ZLAndroidWidget extends View implements View . OnLongClickListener { \n myPendingDoubleTap = true ; \n } else { \n postLongClickRunnable ( ) ; \n + myPendingPress = true ; \n } \n myScreenIsTouched = true ; \n - myPendingPress = true ; \n myPressedX = x ; \n myPressedY = y ; \n break ;", "msg_token": "fixed double tapping"} {"diff": " public abstract class MotionEditorActionHandler extends AbstractEditorActionHand \n CommandGroups . getInstance ( ) . getMark ( ) . saveJumpLocation ( editor ) ; \n } \n if ( ! CommandState . inInsertMode ( editor ) ) { \n - final int size = EditorHelper . getFileSize ( editor ) ; \n - offset = Math . min ( offset , size - NUMBER0 ) ; \n + offset = EditorHelper . normalizeOffset ( editor , offset , false ) ; \n } \n MotionGroup . moveCaret ( editor , offset ) ; \n postMove ( editor , context , cmd ) ; \n public class MotionActionTest extends VimTestCase { \n STRING0 ) ; \n assertOffset ( NUMBER1 ) ; \n } \n + \n + public void testDownToLastEmptyLine ( ) { \n + typeTextInFile ( stringToKeys ( STRING1 ) , \n + STRING2 + \n + STRING3 ) ; \n + assertOffset ( NUMBER2 ) ; \n + } \n }", "msg_token": "Fixed regression in moving down to the last empty line that ends with n"} {"diff": " public class MultiInstanceTest extends PluggableActivitiTestCase { \n \n @ deployment \n public void testEndTimeOnMiSubprocess ( ) { \n + \n + if ( ! processEngineConfiguration . getHistoryLevel ( ) . isAtLeast ( HistoryLevel . AUDIT ) ) { \n + return ; \n + } \n + \n ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( STRING0 ) ; \n \n List < Task > tasks = taskService . createTaskQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . list ( ) ;", "msg_token": "Fix historyNone QA build"} {"diff": " public class PlaybackPreferences implements \n COMMENT \n public static final String PREF_CURRENT_EPISODE_IS_VIDEO = STRING0 ; \n \n - COMMENT \n - public static final String PREF_QUEUE_ADD_TO_FRONT = STRING1 ; \n + COMMENT \n + public static final String PREF_QUEUE_ADD_TO_FRONT = STRING1 ; \n \n COMMENT \n public static final long NO_MEDIA_PLAYING = - NUMBER0 ;", "msg_token": "some files use spaces some use tabs"} {"diff": " class AppWidgetService extends IAppWidgetService . Stub \n out . startTag ( null , STRING0 ) ; \n out . attribute ( null , STRING1 , p . info . provider . getPackageName ( ) ) ; \n out . attribute ( null , STRING2 , p . info . provider . getClassName ( ) ) ; \n - out . endTag ( null , STRING3 ) ; \n + out . endTag ( null , STRING0 ) ; \n p . tag = providerIndex ; \n providerIndex ++ ; \n }", "msg_token": "Fix typo of p end tag in appwidgets xml"} {"diff": " public class WebView extends AbsoluteLayout \n } \n } \n setNewZoomScale ( scale , false ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + clearTextEntry ( ) ; \n break ; \n case MOVE_OUT_OF_PLUGIN : \n if ( nativePluginEatsNavKey ( ) ) {", "msg_token": "Clear the WebTextView in didFirstLayout"} {"diff": " public class ActFmSyncThread { \n } \n \n for ( ClientToServerMessage < ? > message : messageBatch ) { \n + try { \n Runnable r = pendingCallbacks . remove ( message ) ; \n if ( r != null ) \n r . run ( ) ; \n + } catch ( Exception e ) { \n + Log . e ( ERROR_TAG , STRING0 , e ) ; \n + } \n } \n if ( refreshAfterBatch ) { \n Intent refresh = new Intent ( AstridApiConstants . BROADCAST_EVENT_REFRESH ) ;", "msg_token": "Don t allow sync callbacks to crash the sync thread"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class SQLServerTemplates extends SQLTemplates { \n + public class SQLServerTemplates extends SQLTemplates { \n \n public static Builder builder ( ) { \n return new Builder ( ) { \n public class SQLServerTemplates extends SQLTemplates { \n setDummyTable ( STRING0 ) ; \n \n SINGLE \n + add ( Ops . CONCAT , STRING1 , NUMBER0 ) ; \n add ( Ops . CHAR_AT , STRING2 ) ; \n add ( Ops . INDEX_OF , STRING3 ) ; \n add ( Ops . INDEX_OF_2ARGS , STRING4 ) ;", "msg_token": "Fix SQL Server concat"} {"diff": " VirtualFile result = LocalFileSystem . getInstance ( ) . findFileByIoFile ( myFile ) ; \n \n private Document processReadException ( final Exception e ) { \n myBlockSavingTheContent = isProjectOrModuleFile ( ) ; \n - if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) && ! ApplicationManager . getApplication ( ) . isHeadlessEnvironment ( ) ) { \n SwingUtilities . invokeLater ( new Runnable ( ) { \n public void run ( ) { \n JOptionPane . showMessageDialog ( JOptionPane . getRootFrame ( ) ,", "msg_token": "skip dialog for headless environment"} {"diff": " public class JavaGenericsUtil { \n PsiSubstitutor superClassSubstitutor = TypeConversionUtil . getClassSubstitutor ( owner , aClass , substitutor ) ; \n if ( superClassSubstitutor == null ) return null ; \n PsiType itemType = superClassSubstitutor . substitute ( typeParameter ) ; \n - itemType = substitutor . substitute ( itemType ) ; \n return itemType == null ? PsiType . getJavaLangObject ( manager , aClass . getResolveScope ( ) ) : itemType ; \n } \n return null ;", "msg_token": "do not dbl substitution type annotations could be lost after that"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added Artur Hefczyc as author"} {"diff": " public class DeltaManager extends ClusterManagerBase { \n \n SINGLE \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - protected static final String managerName = STRING0 ; \n protected String name = null ; \n \n private boolean expireSessionsOnShutdown = false ;", "msg_token": "Remove unused constant"} {"diff": " public class Utils { \n COMMENT \n COMMENT \n @ safevarargs \n - public static < T > AsyncTask executeInOrder ( AsyncTask < T , ? , ? > task , T . . . args ) { \n + public static < Params , Progress , Result > AsyncTask < Params , Progress , Result > executeInOrder ( \n + AsyncTask < Params , Progress , Result > task , Params . . . args ) { \n return task . executeOnExecutor ( AsyncTask . SERIAL_EXECUTOR , args ) ; \n } \n }", "msg_token": "Specify generics more clearly for Utils executeInOrder"} {"diff": " public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n } \n if ( activeAdmin . getUid ( ) != mInjector . binderGetCallingUid ( ) ) { \n mContext . enforceCallingOrSelfPermission ( \n - android . Manifest . permission . MANAGE_PROFILE_AND_DEVICE_OWNERS , null ) ; \n + android . Manifest . permission . MANAGE_PROFILE_AND_DEVICE_OWNERS , \n + STRING0 + mInjector . binderGetCallingUid ( ) + STRING1 \n + + STRING2 + who + STRING3 ) ; \n } \n return activeAdmin . userRestrictions ; \n }", "msg_token": "Update an error message"} {"diff": " public class NettyServerBootstrapConfiguration implements Cloneable { \n protected EventLoopGroup workerGroup ; \n @ uriparam ( label = STRING0 ) \n protected String networkInterface ; \n - @ uriparam ( label = STRING0 ) \n - private boolean reconnect ; \n + @ uriparam ( label = STRING0 , defaultValue = STRING1 ) \n + private boolean reconnect = true ; \n @ uriparam ( label = STRING0 , defaultValue = STRING2 ) \n private int reconnectInterval = NUMBER0 ;", "msg_token": "Lets reconnect by default in client mode"} {"diff": " public final class MockRobinEngine extends RobinEngine implements Engine { \n try { \n super . close ( ) ; \n } finally { \n - if ( logger . isDebugEnabled ( ) ) { \n + if ( logger . isTraceEnabled ( ) ) { \n SINGLE \n for ( Entry < MockRobinEngine . AssertingSearcher , RuntimeException > entry : MockRobinEngine . INFLIGHT_ENGINE_SEARCHERS . entrySet ( ) ) { \n - logger . debug ( STRING0 , entry . getValue ( ) , entry . getKey ( ) . shardId ) ; \n + logger . trace ( STRING0 , entry . getValue ( ) , entry . getKey ( ) . shardId ) ; \n } \n } \n }", "msg_token": "Log intermediate pending searchers as trace instead of debug"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated class comment to match new class name"} {"diff": " package NAMESPACE ; \n COMMENT \n public class AmountOfTestsExecutedByForkConfig implements ReforkReasonConfig { \n \n - private long reforkEvery ; \n + private long reforkEvery = - NUMBER0 ; \n \n public AmountOfTestsExecutedByForkConfig ( ) { \n } \n public class AmountOfTestsExecutedByForkDataGatherer implements ReforkReasonData \n \n private static final List < DataGatherMoment > dataGatherMoments = Arrays . asList ( DataGatherMoment . AFTER_TEST_EXECUTION ) ; \n \n - private long reforkEvery ; \n + private long reforkEvery = - NUMBER0 ; \n private AtomicLong amountOfTestsExecutedByFork ; \n \n COMMENT \n public class AmountOfTestsExecutedByForkDataGatherer implements ReforkReasonData \n COMMENT \n COMMENT \n public boolean processDataGatherMoment ( DataGatherMoment moment , Object . . . momentData ) { \n - return amountOfTestsExecutedByFork . incrementAndGet ( ) % reforkEvery == NUMBER1 ; \n + return reforkEvery >= NUMBER0 && amountOfTestsExecutedByFork . incrementAndGet ( ) % reforkEvery == NUMBER1 ; \n } \n \n COMMENT", "msg_token": "every n test classes refork criteria improvements"} {"diff": " public class YamlTree \n { \n public YamlTreeNode ( String line ) \n { \n + SINGLE \n + SINGLE \n + if ( line . endsWith ( STRING0 ) ) \n + { \n + line = line . substring ( NUMBER0 , line . length ( ) - NUMBER1 ) + STRING1 ; \n + } \n yamlLine = line ; \n key = getKey ( line ) ; \n indentLevel = getIndentLevel ( ) ;", "msg_token": "show null rather than for YAML null values"} {"diff": " public class Moco { \n return new FileResource ( new File ( checkNotNull ( filename , STRING0 ) ) ) ; \n } \n \n - public static Resource classpathFile ( String filename ) { \n + public static Resource pathResource ( String filename ) { \n return new ClasspathFileResource ( checkNotNull ( filename , STRING0 ) ) ; \n } \n \n public class MocoTest extends AbstractMocoTest { \n \n @ test \n public void should_return_expected_response_from_classpath_file ( ) throws Exception { \n - server . response ( classpathFile ( STRING1 ) ) ; \n + server . response ( pathResource ( STRING1 ) ) ; \n \n running ( server , new Runnable ( ) { \n @ override", "msg_token": "changed classpath file api to path resource to make it generic"} {"diff": " public class Advice implements AsmVisitorWrapper . ForDeclaredMethods . MethodVisito \n if ( ! type . isAnnotation ( ) ) { \n throw new IllegalArgumentException ( STRING0 + type ) ; \n } else if ( dynamicValues . put ( type , dynamicValue ) != null ) { \n - throw new IllegalArgumentException ( STRING1 + type ) ; \n + throw new IllegalArgumentException ( STRING2 + type ) ; \n } \n return new WithCustomMapping ( dynamicValues ) ; \n } \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StackAwareMethodVisitor extends MethodVisitor { \n } \n \n @ override \n + @ suppressfbwarnings ( value = STRING3 , justification = STRING4 ) \n public void visitVarInsn ( int opcode , int variable ) { \n switch ( opcode ) { \n case Opcodes . ASTORE :", "msg_token": "Added hint for findbugs"} {"diff": " class WallpaperManagerService extends IWallpaperManager . Stub { \n \n private Point getDefaultDisplaySize ( ) { \n Point p = new Point ( ) ; \n - try { \n - mIWindowManager . getInitialDisplaySize ( Display . DEFAULT_DISPLAY , p ) ; \n - } catch ( RemoteException e ) { \n - SINGLE \n - } \n + WindowManager wm = ( WindowManager ) mContext . getSystemService ( Context . WINDOW_SERVICE ) ; \n + Display d = wm . getDefaultDisplay ( ) ; \n + d . getRealSize ( p ) ; \n return p ; \n }", "msg_token": "Use scaled display size in wallpaper constraint"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class GraphiteReporter implements Runnable { \n private final Writer writer ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix minor typos"} {"diff": " public class DateTimeConstants { \n COMMENT \n public static final int MONDAY = NUMBER0 ; \n \n - COMMENT \n + COMMENT \n public static final int TUESDAY = NUMBER1 ; \n \n - COMMENT \n + COMMENT \n public static final int WEDNESDAY = NUMBER2 ; \n \n - COMMENT \n + COMMENT \n public static final int THURSDAY = NUMBER3 ; \n \n - COMMENT \n + COMMENT \n public static final int FRIDAY = NUMBER4 ; \n \n - COMMENT \n + COMMENT \n public static final int SATURDAY = NUMBER5 ; \n \n - COMMENT \n + COMMENT \n public static final int SUNDAY = NUMBER6 ; \n \n \n public class DateTimeConstants { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int AD = NUMBER0 ; \n COMMENT \n public class DateTimeConstants { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int CE = NUMBER0 ;", "msg_token": "Fix and enhance javadoc"} {"diff": " public abstract class Loader { \n } \n } \n while ( resultSet . next ( ) && \n - keyToRead . equals ( getKeyFromResultSet ( NUMBER0 , getEntityPersisters ( ) [ NUMBER0 ] , null , resultSet , session ) ) ) ; \n + isCurrentRowForSameEntity ( keyToRead , NUMBER0 , resultSet , session ) ) ; \n } \n catch ( SQLException sqle ) { \n throw factory . getSQLExceptionHelper ( ) . convert ( \n public abstract class Loader { \n return result ; \n } \n \n + private boolean isCurrentRowForSameEntity ( \n + final EntityKey keyToRead , \n + final int persisterIndex , \n + final ResultSet resultSet , \n + final SessionImplementor session ) throws SQLException { \n + EntityKey currentRowKey = getKeyFromResultSet ( \n + persisterIndex , getEntityPersisters ( ) [ persisterIndex ] , null , resultSet , session \n + ) ; \n + return keyToRead . equals ( currentRowKey ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Join fetched collections using Query scroll is correct only for first entity"} {"diff": " public final class UncaughtExceptionHandlers { \n } \n \n @ override public void uncaughtException ( Thread t , Throwable e ) { \n - SINGLE \n - logger . log ( SEVERE , String . format ( STRING0 , t ) , e ) ; \n - runtime . exit ( NUMBER0 ) ; \n + try { \n + SINGLE \n + logger . log ( SEVERE , String . format ( STRING0 , t ) , e ) ; \n + } catch ( Throwable errorInLogging ) { \n + SINGLE \n + SINGLE \n + System . err . println ( e . getMessage ( ) ) ; \n + System . err . println ( errorInLogging . getMessage ( ) ) ; \n + } finally { \n + runtime . exit ( NUMBER0 ) ; \n + } \n } \n } \n }", "msg_token": "Stabilize the UncaughtExceptionHandlers against exceptions thrown in"} {"diff": " import NAMESPACE ; \n @ xmlrootelement ( name = STRING0 ) \n public class TripType { \n \n + @ suppresswarnings ( STRING1 ) \n public TripType ( Trip obj ) { \n this . id = obj . getId ( ) ; \n this . serviceId = obj . getServiceId ( ) ; \n public class TripType { \n this . route = obj . getRoute ( ) ; \n } \n \n + @ suppresswarnings ( STRING1 ) \n public TripType ( Trip obj , Boolean extended ) { \n this . id = obj . getId ( ) ; \n this . tripShortName = obj . getTripShortName ( ) ; \n public class StreetVertexIndexServiceImpl implements StreetVertexIndexService { \n return intersectionTree . query ( envelope ) ; \n } \n \n + @ suppresswarnings ( STRING2 ) \n @ override \n public Collection < StreetEdge > getEdgesForEnvelope ( Envelope envelope ) { \n return edgeTree . query ( envelope ) ;", "msg_token": "Quench compile warnings"} {"diff": " public class TestDefaultSubscriptionApi extends EntitlementTestSuiteWithEmbedded \n subscriptionApi . getActiveSubscriptionBundleForExternalKey ( externalKey , callContext ) ; \n Assert . fail ( STRING0 ) ; \n } catch ( SubscriptionApiException e ) { \n - assertEquals ( e . getCode ( ) , ErrorCode . SUB_CREATE_ACTIVE_BUNDLE_KEY_EXISTS . getCode ( ) ) ; \n + assertEquals ( e . getCode ( ) , ErrorCode . SUB_GET_INVALID_BUNDLE_KEY . getCode ( ) ) ; \n \n }", "msg_token": "Fix TestDefaultSubscriptionApi after change of error code in entitlement"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Moved Screenshots to Desktop Source Package since it uses BufferedImage"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public class WorldEditController { \n } catch ( NumberFormatException e ) { \n player . printError ( STRING0 ) ; \n } catch ( IncompleteRegionException e ) { \n - player . printError ( STRING1 ) ; \n + player . printError ( STRING2 ) ; \n } catch ( UnknownItemException e ) { \n player . printError ( STRING3 + e . getID ( ) + STRING4 ) ; \n } catch ( InvalidItemException e ) { \n public class WorldEditController { \n } catch ( InsufficientArgumentsException e ) { \n player . printError ( e . getMessage ( ) ) ; \n } catch ( EmptyClipboardException e ) { \n - player . printError ( STRING5 ) ; \n + player . printError ( STRING6 ) ; \n } catch ( WorldEditException e ) { \n player . printError ( e . getMessage ( ) ) ; \n } catch ( Throwable excp ) {", "msg_token": "Improved a few error messages"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Splitter extends JPanel implements Splittable { \n \n protected float myProportion ; SINGLE \n \n - private final Divider myDivider ; \n + protected final Divider myDivider ; \n private JComponent mySecondComponent ; \n private JComponent myFirstComponent ; \n private final FocusWatcher myFocusWatcher ;", "msg_token": "make final field myDivider protected"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RestDefinition extends OptionalIdentifiedDefinition < RestDefinition > \n @ xmlattribute \n private String produces ; \n \n - @ xmlattribute \n - @ metadata ( defaultValue = STRING0 ) \n + @ xmlattribute @ metadata ( defaultValue = STRING0 ) \n private RestBindingMode bindingMode ; \n \n @ xmlattribute \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class VerbDefinition extends OptionalIdentifiedDefinition < VerbDefinition > \n @ xmlattribute \n private String produces ; \n \n - @ xmlattribute \n - @ metadata ( defaultValue = STRING0 ) \n + @ xmlattribute @ metadata ( defaultValue = STRING0 ) \n private RestBindingMode bindingMode ; \n \n @ xmlattribute", "msg_token": "removing some formating"} {"diff": " public class ReferenceQueue < T > { \n private Reference < ? extends T > head ; \n \n SINGLE \n - private final Reference < ? extends T > SENTINEL = new WeakReference < > ( null , null ) ; \n + private static final Reference SENTINEL = new WeakReference < > ( null , null ) ; \n \n COMMENT \n COMMENT \n public class SynchronousQueue < E > extends AbstractQueue < E > \n COMMENT \n static final int FULFILLING = NUMBER0 ; \n \n - private static SNode CANCELLED = new SNode ( null ) ; \n - private static SNode FINISHED = new SNode ( null ) ; \n + private static final SNode CANCELLED = new SNode ( null ) ; \n + private static final SNode FINISHED = new SNode ( null ) ; \n \n COMMENT \n static boolean isFulfilling ( int m ) { return ( m & FULFILLING ) != NUMBER1 ; }", "msg_token": "Makes ReferenceQueue SENTINAL a shared static instance"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class ApiServlet extends SpringServlet { \n private static final long serialVersionUID = - NUMBER0 ; \n \n + @ autowired private GraphService graphService ; \n + \n @ autowired ( required = false ) private PeriodicGraphUpdater updater ; \n \n SINGLE \n public class ApiServlet extends SpringServlet { \n @ override \n public void destroy ( ) { \n if ( updater != null ) { \n - SINGLE \n - SINGLE \n - updater . stop ( ) ; \n + SINGLE \n + SINGLE \n + updater . stop ( ) ; \n } \n + \n + graphService . evictAll ( ) ; \n } \n \n public ApiServlet ( ) {", "msg_token": "evict graphs stop updaters when stopping the servlet"} {"diff": " public class PlaybackOverlayFragment extends DetailsFragment { \n super . onDestroyView ( ) ; \n } \n \n + @ override \n + public void onStart ( ) { \n + super . onStart ( ) ; \n + SINGLE \n + getRowsFragment ( ) . getView ( ) . requestFocus ( ) ; \n + } \n + \n private final DataObserver mObserver = new DataObserver ( ) { \n @ override \n public void onChanged ( ) { \n public class PlaybackOverlaySupportFragment extends DetailsSupportFragment { \n super . onDestroyView ( ) ; \n } \n \n + @ override \n + public void onStart ( ) { \n + super . onStart ( ) ; \n + SINGLE \n + getRowsSupportFragment ( ) . getView ( ) . requestFocus ( ) ; \n + } \n + \n private final DataObserver mObserver = new DataObserver ( ) { \n @ override \n public void onChanged ( ) {", "msg_token": "workaround VideoView forcing focus problem"} {"diff": " public class NotificationBackgroundView extends View { \n } \n \n private void draw ( Canvas canvas , Drawable drawable ) { \n - if ( drawable != null ) { \n + if ( drawable != null && mActualHeight > mClipTopAmount ) { \n drawable . setBounds ( NUMBER0 , mClipTopAmount , getWidth ( ) , mActualHeight ) ; \n drawable . draw ( canvas ) ; \n }", "msg_token": "Fixed a crash when drawing the notification background"} {"diff": " public class UpdateMappingTests extends AbstractSharedClusterTest { \n @ suppresswarnings ( STRING0 ) \n @ test \n public void updateDefaultMappingSettings ( ) throws Exception { \n - client ( ) . admin ( ) . indices ( ) . prepareCreate ( STRING1 ) . addMapping ( MapperService . DEFAULT_MAPPING , \n + \n + SINGLE \n + createIndex ( STRING1 ) ; \n + client ( ) . admin ( ) . indices ( ) . preparePutMapping ( STRING1 ) . setType ( MapperService . DEFAULT_MAPPING ) . setSource ( \n JsonXContent . contentBuilder ( ) . startObject ( ) . startObject ( MapperService . DEFAULT_MAPPING ) \n . field ( STRING2 , false ) \n . endObject ( ) . endObject ( )", "msg_token": "Separated index creation from mapping creation pending bug fix concerning concurrent not acked mapping requests"} {"diff": " public class TargetDirectory \n @ override \n public void evaluate ( ) throws Throwable \n { \n - boolean success = false ; \n - try \n - { \n - base . evaluate ( ) ; \n - success = true ; \n - } \n - finally \n - { \n - complete ( success ) ; \n - } \n + base . evaluate ( ) ; \n } \n } ; \n } \n public class TargetDirectory \n String subdirName = subdir == null ? STRING0 : subdir . toString ( ) ; \n return format ( STRING1 , getClass ( ) . getSimpleName ( ) , subdirName ) ; \n } \n - \n - private void complete ( boolean success ) \n - { \n - if ( success && subdir != null ) recursiveDelete ( subdir ) ; \n - subdir = null ; \n - } \n } \n \n private final FileSystemAbstraction fileSystem ;", "msg_token": "Don t delete test directories after successful tests"} {"diff": " public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Fac \n if ( KEY . is ( dataId ) ) { \n return RunnerContentUi . this ; \n } \n - else { \n - return null ; \n + \n + ContentManager originalContentManager = myOriginal == null ? null : myOriginal . getContentManager ( ) ; \n + JComponent originalContentComponent = originalContentManager == null ? null : originalContentManager . getComponent ( ) ; \n + if ( originalContentComponent instanceof DataProvider ) { \n + return ( ( DataProvider ) originalContentComponent ) . getData ( dataId ) ; \n } \n + return null ; \n } \n \n @ suppresswarnings ( STRING0 ) \n public class ContentManagerImpl implements ContentManager , PropertyChangeListene \n dataProviders . add ( provider ) ; \n } \n \n + @ nullable \n + public DataProvider getDataProvider ( ) { \n + return myComponent ; \n + } \n + \n @ override \n public void propertyChange ( @ notnull PropertyChangeEvent event ) { \n if ( Content . PROP_COMPONENT . equals ( event . getPropertyName ( ) ) ) {", "msg_token": "we must use original data context critical to get XDebugSessionfr"} {"diff": " public class ODistributedServerDiscoverySignaler extends OPollerThread { \n \n discoveryPacket = OSecurityManager . instance ( ) . encrypt ( manager . securityAlgorithm , manager . securityKey , buffer . getBytes ( ) ) ; \n \n - startTimeoutPresenceTask ( ) ; \n + if ( forceLeadership ) \n + startTimeoutPresenceTask ( ) ; \n \n start ( ) ; \n } \n public class ODistributedServerDiscoverySignaler extends OPollerThread { \n \n @ override \n protected void execute ( ) throws Exception { \n - OLogManager . instance ( ) . debug ( this , STRING0 , \n + OLogManager . instance ( ) . warn ( this , STRING0 , \n dgram . getAddress ( ) , dgram . getPort ( ) ) ; \n \n try {", "msg_token": "Fixed bug on cluster rejoining when the server node wasn t leader"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public final class DefaultTrace implements Trace { \n \n @ override \n public int getCallStackFrameId ( ) { \n - if ( callStack . empty ( ) ) { \n + final SpanEvent spanEvent = callStack . peek ( ) ; \n + if ( spanEvent == null ) { \n return ROOT_STACKID ; \n + } else { \n + return spanEvent . getStackId ( ) ; \n } \n - \n - final SpanEvent spanEvent = callStack . peek ( ) ; \n - return spanEvent . getStackId ( ) ; \n } \n \n @ override", "msg_token": "Check NPE condition"} {"diff": " final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice { \n @ servicethreadonly \n protected void onStandby ( boolean initiatedByCec , int standbyAction ) { \n assertRunOnServiceThread ( ) ; \n - if ( ! mService . isControlEnabled ( ) || initiatedByCec ) { \n + if ( ! mService . isControlEnabled ( ) || initiatedByCec || ! mAutoTvOff ) { \n return ; \n } \n switch ( standbyAction ) { \n case HdmiControlService . STANDBY_SCREEN_OFF : \n - if ( mAutoTvOff ) { \n - mService . sendCecCommand ( \n - HdmiCecMessageBuilder . buildStandby ( mAddress , Constants . ADDR_TV ) ) ; \n - } \n + mService . sendCecCommand ( \n + HdmiCecMessageBuilder . buildStandby ( mAddress , Constants . ADDR_TV ) ) ; \n break ; \n case HdmiControlService . STANDBY_SHUTDOWN : \n SINGLE", "msg_token": "Don t broadcast Standby message during shutdown when setting is disabled"} {"diff": " public class SQLTransportExecutor { \n ) ; \n } else { \n int updateCount = preparedStatement . getUpdateCount ( ) ; \n + if ( updateCount < NUMBER0 ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + updateCount += NUMBER1 ; \n + } \n return new SQLResponse ( \n new String [ NUMBER0 ] , \n new Object [ NUMBER0 ] [ ] ,", "msg_token": "Fix tests that assert negative row counts"} {"diff": " public class LdapDirInitializer { \n } \n \n private void dirInit_SimpleCnUser ( DirContext ctx ) throws NamingException { \n - String name = STRING0 ; \n + String name = STRING1 ; \n Attributes attrs = new BasicAttributes ( ) ; \n attrs . put ( STRING2 , name + STRING3 ) ; \n attrs . put ( STRING4 , STRING5 ) ;", "msg_token": "Fixed dumb mistake in the DN of the second user object"} {"diff": " public class GrailsTagException extends GrailsException implements SourceCodeAwa \n return lineNumber ; \n } \n \n + @ override \n + public String getMessage ( ) { \n + return STRING0 + getFileName ( ) + STRING1 + getLineNumber ( ) + STRING2 + super . getMessage ( ) ; \n + } \n }", "msg_token": "improve error message"} {"diff": " \n COMMENT \n COMMENT \n package NAMESPACE ; \n - \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class ToStringTextRenderer < T > extends StringTextRenderer < T > { \n \n + private TranslationSystem translationSystem ; \n + \n + public ToStringTextRenderer ( ) { } \n + \n + public ToStringTextRenderer ( TranslationSystem translationSystemInput ) { \n + translationSystem = translationSystemInput ; \n + } \n + \n + \n @ override \n public String getString ( T value ) { \n - return Objects . toString ( value ) ; \n + if ( translationSystem == null ) { \n + return Objects . toString ( value ) ; \n + } \n + else { \n + return translationSystem . translate ( Objects . toString ( value ) ) ; \n + } \n } \n }", "msg_token": "Added optional language support to toStringTextRenderer"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ gwtcompatible ( serializable = true ) \n final class UsingToStringOrdering \n extends Ordering < Object > implements Serializable {", "msg_token": "Fix typo in UsingToStringOrdering javadocs"} {"diff": " import NAMESPACE ; \n public class ResolveVisitor extends ClassCodeExpressionTransformer { \n private ClassNode currentClass ; \n SINGLE \n - private static final String [ ] DEFAULT_IMPORTS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ; \n + public static final String [ ] DEFAULT_IMPORTS = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } ; \n private CompilationUnit compilationUnit ; \n private Map cachedClasses = new HashMap ( ) ; \n private static final Object NO_CLASS = new Object ( ) ;", "msg_token": "Expose the default imports as public so that when generating stubs we can include those"} {"diff": " public abstract class AbstractStaticMethodInvocation implements StaticMethodInvo \n this . pattern = pattern ; \n } \n \n + protected Pattern getPattern ( ) { \n + return pattern ; \n + } \n + \n public boolean isMethodMatch ( String methodName ) { \n return this . pattern . matcher ( methodName . subSequence ( NUMBER0 , methodName . length ( ) ) ) . matches ( ) ; \n }", "msg_token": "exposed the getPattern method"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n public class HdfsEnvironment \n { \n + static { \n + HadoopNative . requireHadoopNative ( ) ; \n + HadoopFileSystemCache . initialize ( ) ; \n + } \n + \n private final HdfsConfiguration hdfsConfiguration ; \n \n @ inject \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE \n public class HiveClient \n implements ConnectorMetadata , ConnectorSplitManager , ConnectorRecordSinkProvider , ConnectorHandleResolver \n { \n - static { \n - HadoopNative . requireHadoopNative ( ) ; \n - HadoopFileSystemCache . initialize ( ) ; \n - } \n - \n public static final String PRESTO_OFFLINE = STRING0 ; \n \n private static final Logger log = Logger . get ( HiveClient . class ) ;", "msg_token": "Fix initialization of Hadoop native code"} {"diff": " public class PeerGroup { \n private int maxConnections ; \n \n private final NetworkParameters params ; \n - private final BlockChain chain ; \n private int connectionDelayMillis ; \n private long fastCatchupTimeSecs ; \n private ArrayList < Wallet > wallets ; \n public class PeerGroup { \n } \n \n PeerGroup ( final NetworkParameters params , final BlockChain chain , \n - int connectionDelayMillis , ClientBootstrap bootstrap ) { \n + int connectionDelayMillis , ClientBootstrap bootstrap ) { \n this . params = params ; \n - this . chain = chain ; \n this . connectionDelayMillis = connectionDelayMillis ; \n this . fastCatchupTimeSecs = params . genesisBlock . getTimeSeconds ( ) ; \n this . wallets = new ArrayList < Wallet > ( NUMBER0 ) ;", "msg_token": "Delete a bit of dead code in PeerGroup"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CBSChunkTest { \n \n void testImpl ( long [ ] ls , int [ ] xs , int expBpv , int expGap , int expClen , int expNA ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - AppendableVec av = mock ( AppendableVec . class ) ; \n - SINGLE \n - SINGLE \n - Vec vv = mock ( Vec . class ) ; \n - when ( av . close ( any ( Futures . class ) ) ) . thenReturn ( vv ) ; \n - \n + AppendableVec av = new AppendableVec ( Vec . newKey ( ) ) ; \n + Futures fs = new Futures ( ) ; \n + Vec vv = av . close ( fs ) ; \n SINGLE \n NewChunk nc = new NewChunk ( av , NUMBER0 ) ; \n nc . _ls = ls ;", "msg_token": "Updated CBSChunk test not to use Mockito"} {"diff": " public class StorageUtil { \n @ notnull final VirtualFile file , \n @ notnull final BufferExposingByteArrayOutputStream content , \n @ nullable final LineSeparator lineSeparatorIfPrependXmlProlog ) throws IOException { \n + LOG . debug ( STRING0 + file . getPresentableUrl ( ) ) ; \n AccessToken token = WriteAction . start ( ) ; \n try { \n OutputStream out = file . getOutputStream ( requestor ) ;", "msg_token": "added debug output"} {"diff": " public class ProjectData extends AbstractNamedData implements ExternalConfigPath \n @ notnull String linkedExternalProjectPath ) \n { \n super ( owner , STRING0 ) ; \n - myLinkedExternalProjectPath = linkedExternalProjectPath ; \n + myLinkedExternalProjectPath = ExternalSystemApiUtil . toCanonicalPath ( linkedExternalProjectPath ) ; \n myIdeProjectFileDirectoryPath = ExternalSystemApiUtil . toCanonicalPath ( ideProjectFileDirectoryPath ) ; \n }", "msg_token": "just imported project is shown multiple times in Gradle tool window until reopening of the project"} {"diff": " public class IabHelper { \n + BuildConfig . IAP_KEY_C + BuildConfig . IAP_KEY_D ; \n \n SINGLE \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_OK = NUMBER0 ; \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_USER_CANCELED = NUMBER1 ; \n + COMMENT \n + public static final int BILLING_RESPONSE_RESULT_SERVICE_UNAVAILABLE = NUMBER2 ; \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_BILLING_UNAVAILABLE = NUMBER3 ; \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_ITEM_UNAVAILABLE = NUMBER4 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_DEVELOPER_ERROR = NUMBER5 ; \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_ERROR = NUMBER6 ; \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED = NUMBER7 ; \n + COMMENT \n public static final int BILLING_RESPONSE_RESULT_ITEM_NOT_OWNED = NUMBER8 ; \n \n SINGLE", "msg_token": "Add docs about billing response codes"} {"diff": " public final class CallManager { \n COMMENT \n COMMENT \n public void unregisterPhone ( Phone phone ) { \n - if ( phone != null && ! mPhones . contains ( phone ) ) { \n + if ( phone != null && mPhones . contains ( phone ) ) { \n mPhones . remove ( phone ) ; \n mRingingCalls . remove ( phone . getRingingCall ( ) ) ; \n mBackgroundCalls . remove ( phone . getBackgroundCall ( ) ) ;", "msg_token": "Fix a bug in unregisterPhone"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public interface DefaultSslContextProvider { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adding since to DefaultSslContextProvider"} {"diff": " public class Note extends Syncable { \n } \n \n public Spannable getFormattedSubject ( ) { \n - if ( mFormattedSubject == null && getSubject ( ) != null ) { \n + if ( mFormattedSubject == null ) { \n mFormattedSubject = NotificationUtils . getSpannableTextFromIndices ( getSubject ( ) , null ) ; \n } \n return mFormattedSubject ; \n public class NotificationUtils { \n \n public static Spannable getSpannableTextFromIndices ( JSONObject subject , \n final NoteBlock . OnNoteBlockTextClickListener onNoteBlockTextClickListener ) { \n + if ( subject == null ) { \n + return new SpannableStringBuilder ( ) ; \n + } \n \n String text = subject . optString ( STRING0 , STRING1 ) ; \n SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder ( text ) ;", "msg_token": "ensure getSpannableTextFromIndices doesn t return null"} {"diff": " final class ApplicationDispatcher \n break ; \n if ( current instanceof ApplicationRequest ) \n break ; \n - if ( current instanceof Request ) \n - break ; \n previous = current ; \n current = ( ( ServletRequestWrapper ) current ) . getRequest ( ) ; \n } \n final class ApplicationDispatcher \n break ; \n if ( current instanceof ApplicationResponse ) \n break ; \n - if ( current instanceof Response ) \n - break ; \n previous = current ; \n current = ( ( ServletResponseWrapper ) current ) . getResponse ( ) ; \n }", "msg_token": "Remove impossible tests ID d by FindBugs"} {"diff": " public class DeregisterTest extends SystemTestBase { \n public void testJobsArePreservedWhenReregistering ( ) throws Exception { \n startDefaultMaster ( ) ; \n final String host = testHost ( ) ; \n - AgentMain agent = startDefaultAgent ( host , STRING0 , STRING1 ) ; \n - \n + final AgentMain agent = startDefaultAgent ( host , STRING0 , STRING1 ) ; \n final HeliosClient client = defaultClient ( ) ; \n + awaitHostStatus ( client , host , UP , LONG_WAIT_SECONDS , SECONDS ) ; \n \n SINGLE \n final JobId jobId = createJob ( testJobName , testJobVersion , BUSYBOX , IDLE_COMMAND ) ;", "msg_token": "Fix race in DeregisterTest"} {"diff": " public class TcpIpConnectionManager implements ConnectionManager { \n } \n \n SINGLE \n + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } ) \n public InSelectorImpl [ ] getInSelectors ( ) { \n return inSelectors ; \n } \n \n SINGLE \n + @ edu.umd.cs.findbugs.annotations.suppresswarnings ( { STRING0 } ) \n public OutSelectorImpl [ ] getOutSelectors ( ) { \n return outSelectors ; \n }", "msg_token": "Resolved findbugs issue in TcpConnectionManager exposing arrays"} {"diff": " public class AnimationTrack extends AbstractCinematicEvent { \n } \n \n @ override \n + public void setSpeed ( float speed ) { \n + super . setSpeed ( speed ) ; \n + if ( channel != null ) { \n + channel . setSpeed ( speed ) ; \n + } \n + } \n + \n + \n + \n + @ override \n public void onUpdate ( float tpf ) { \n }", "msg_token": "Implemented setSpeed for animationTrack as it needs special treatment"} {"diff": " public class AddActivity extends BaseTopActivity implements OnAddShowListener { \n private static final int TRAKT_CONNECTED_TABCOUNT = NUMBER0 ; \n \n public static final int TRENDING_TAB_POSITION = NUMBER1 ; \n - public static final int RECOMMENDED_TAB_POSITION = NUMBER2 ; \n - public static final int LIBRARY_TAB_POSITION = NUMBER3 ; \n - public static final int WATCHLIST_TAB_POSITION = NUMBER4 ; \n + public static final int RECOMMENDED_TAB_POSITION = NUMBER3 ; \n + public static final int LIBRARY_TAB_POSITION = NUMBER4 ; \n + public static final int WATCHLIST_TAB_POSITION = NUMBER5 ; \n \n public static final int SEARCH_TAB_DEFAULT_POSITION = NUMBER2 ; \n - public static final int SEARCH_TAB_CONNECTED_POSITION = NUMBER5 ; \n + public static final int SEARCH_TAB_CONNECTED_POSITION = NUMBER2 ; \n \n private Context mContext ;", "msg_token": "Move the search tab second in AddActivity again"} {"diff": " public class UIUtil { \n drawLine ( g , startX , bottomY , endX , bottomY , null , color ) ; \n } \n \n - private static final GrayFilter DEFAULT_GRAY_FILTER = new GrayFilter ( true , NUMBER0 ) ; \n - private static final GrayFilter DARCULA_GRAY_FILTER = new GrayFilter ( true , NUMBER1 ) ; \n + private static final GrayFilter DEFAULT_GRAY_FILTER = new GrayFilter ( true , NUMBER2 ) ; \n + private static final GrayFilter DARCULA_GRAY_FILTER = new GrayFilter ( true , NUMBER3 ) ; \n \n public static GrayFilter getGrayFilter ( ) { \n return isUnderDarcula ( ) ? DARCULA_GRAY_FILTER : DEFAULT_GRAY_FILTER ;", "msg_token": "reduce contrast in gray filters for darcula nad bright themes"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n @ retention ( RetentionPolicy . RUNTIME ) \n - @ target ( ElementType . FIELD ) \n + @ target ( { ElementType . METHOD , ElementType . FIELD , ElementType . PARAMETER } ) \n public @ interface Metric { \n \n COMMENT", "msg_token": "Allow Metric on methods and parameters"} {"diff": " public class FileDisplayActivity extends SherlockFragmentActivity implements \n \n @ override \n public boolean onCreateOptionsMenu ( Menu menu ) { \n - MenuInflater inflater = getSherlock ( ) . getMenuInflater ( ) ; \n - inflater . inflate ( R . menu . menu , menu ) ; \n - return true ; \n + if ( accountsAreSetup ( ) ) { \n + MenuInflater inflater = getSherlock ( ) . getMenuInflater ( ) ; \n + inflater . inflate ( R . menu . menu , menu ) ; \n + return true ; \n + } \n + return false ; \n } \n \n @ override", "msg_token": "hide menu in non account vie"} {"diff": " public class Field \n COMMENT \n public Field ( final String name , \n final String description , \n - final String groupName , \n final int id , \n final Type type , \n final int offset , \n public class Field \n { \n private final String name ; \n private String description ; \n - private String groupName ; \n private int id ; \n private Type type ; \n private int offset ; \n public class Field \n \n public Field build ( ) \n { \n - return new Field ( name , description , groupName , id , type , offset , \n + return new Field ( name , description , id , type , offset , \n semanticType , presence , blockLength , dimensionType , variableLength ) ; \n } \n }", "msg_token": "Removed unused groupName field"} {"diff": " public abstract class StatusBar extends SystemUI implements CommandQueue . Callbac \n WindowManager . LayoutParams . FLAG_NOT_FOCUSABLE \n | WindowManager . LayoutParams . FLAG_TOUCHABLE_WHEN_WAKING \n | WindowManager . LayoutParams . FLAG_SPLIT_TOUCH , \n - PixelFormat . RGBX_8888 ) ; \n + PixelFormat . OPAQUE ) ; \n \n SINGLE \n final Display defaultDisplay \n public class PhoneStatusBar extends StatusBar { \n } \n \n SINGLE \n - mPixelFormat = PixelFormat . TRANSLUCENT ; \n - Drawable bg = sb . getBackground ( ) ; \n - if ( bg != null ) { \n - mPixelFormat = bg . getOpacity ( ) ; \n - } \n - \n + mPixelFormat = PixelFormat . OPAQUE ; \n mStatusIcons = ( LinearLayout ) sb . findViewById ( R . id . statusIcons ) ; \n mNotificationIcons = ( IconMerger ) sb . findViewById ( R . id . notificationIcons ) ; \n mIcons = ( LinearLayout ) sb . findViewById ( R . id . icons ) ;", "msg_token": "Make the status and navigation bars OPAQUE"} {"diff": " class BluetoothEventLoop { \n case BluetoothClass . Device . AUDIO_VIDEO_HANDSFREE : \n case BluetoothClass . Device . AUDIO_VIDEO_HEADPHONES : \n case BluetoothClass . Device . AUDIO_VIDEO_PORTABLE_AUDIO : \n - case BluetoothClass . Device . AUDIO_VIDEO_CAR_AUDIO : \n case BluetoothClass . Device . AUDIO_VIDEO_HIFI_AUDIO : \n if ( mBluetoothService . attemptAutoPair ( address ) ) return ; \n }", "msg_token": "Remove Car audio class from auto pairing"} {"diff": " public class MediaNames { \n \n public static final long PAUSE_WAIT_TIME = NUMBER0 ; \n public static final long WAIT_TIME = NUMBER1 ; \n - public static final long WAIT_LONG = NUMBER2 ; \n + public static final long WAIT_SNAPSHOT_TIME = NUMBER3 ; \n \n SINGLE \n public static final String VIDEO_HTTP3GP = STRING0 ; \n public class CameraTest extends ActivityInstrumentationTestCase < MediaFrameworkTe \n } \n mCamera . setPreviewCallback ( null ) ; \n mCamera . takePicture ( mShutterCallback , mRawPictureCallback , mJpegPictureCallback ) ; \n - Thread . sleep ( MediaNames . WAIT_LONG ) ; \n + Thread . sleep ( MediaNames . WAIT_SNAPSHOT_TIME ) ; \n } catch ( Exception e ) { \n Log . v ( TAG , e . toString ( ) ) ; \n }", "msg_token": "Increase the sleep time to fix testTakePicture"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyStdTypeCalculators { \n } \n } \n \n + public static class TypeSameAsFirstArgument implements PairFunction < GrMethodCall , PsiMethod , PsiType > { \n + \n + @ override \n + public PsiType fun ( GrMethodCall methodCall , PsiMethod method ) { \n + GrArgumentList argumentList = methodCall . getArgumentList ( ) ; \n + if ( argumentList == null ) return null ; \n + \n + GrExpression [ ] arguments = argumentList . getExpressionArguments ( ) ; \n + if ( arguments . length == NUMBER0 ) return null ; \n + \n + return arguments [ NUMBER0 ] . getType ( ) ; \n + } \n + } \n + \n }", "msg_token": "Provide return type for GrailsHibernateUtil unwrapIfProxy object"} {"diff": " public class AboutActivity extends InjectionAppCompatActivity { \n skullTextView . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View view ) { \n - showInfoDialog ( Status . RUN ) ; \n + showInfoDialog ( Status . SKULL ) ; \n } \n } ) ; \n } \n public class AboutActivity extends InjectionAppCompatActivity { \n R . string . danger , \n R . string . detail_info_danger \n ) , \n - RUN ( \n + SKULL ( \n R . drawable . sense_skull , \n - R . string . run , \n - R . string . detail_info_run \n + R . string . skull , \n + R . string . detail_info_skull \n ) ; \n \n @ drawableres", "msg_token": "Corrected skull status activities"} {"diff": " public final class AndroidDesignerEditorPanel extends DesignerEditorPanel { \n } \n } \n \n - StringBuilder builder = new StringBuilder ( STRING0 ) ; \n + StringBuilder builder = new StringBuilder ( ) ; \n + \n + builder . append ( STRING1 ) . append ( myToolProvider . getActiveTool ( ) ) ; \n + builder . append ( STRING2 ) ; \n \n try { \n AndroidPlatform platform = AndroidPlatform . getInstance ( getModule ( ) ) ;", "msg_token": "Add debug information"} {"diff": " public final class Author implements Comparable < Author > { \n \n public Author ( String displayName , String sortKey ) { \n DisplayName = displayName ; \n - SortKey = sortKey ; \n + SortKey = sortKey . toLowerCase ( ) ; \n } \n \n public static int hashCode ( Author author ) { \n public final class Author implements Comparable < Author > { \n final int byKeys = SortKey . compareTo ( other . SortKey ) ; \n return byKeys != NUMBER0 ? byKeys : DisplayName . compareTo ( other . DisplayName ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return DisplayName + STRING0 + SortKey + STRING1 ; \n + } \n }", "msg_token": "duplicate authors issue fixed"} {"diff": " public final class LogLikelihood { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static double entropy ( int . . . elements ) { \n public final class LogLikelihood { \n COMMENT \n COMMENT \n public static double logLikelihoodRatio ( int k11 , int k12 , int k21 , int k22 ) { \n + SINGLE \n double rowEntropy = entropy ( k11 , k12 ) + entropy ( k21 , k22 ) ; \n double columnEntropy = entropy ( k11 , k21 ) + entropy ( k12 , k22 ) ; \n double matrixEntropy = entropy ( k11 , k12 , k21 , k22 ) ; \n public final class LogLikelihood { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n \n COMMENT", "msg_token": "Added comments for LogLikelihood to explain un normalized entropy"} {"diff": " public abstract class TWAbsLayoutManager extends LayoutManager { \n } \n \n private void fillSpecific ( int position , Recycler recycler , State state ) { \n + if ( state . getItemCount ( ) == NUMBER0 ) { \n + return ; \n + } \n + \n makeAndAddView ( position , Direction . END , recycler ) ; \n \n SINGLE", "msg_token": "core Handle onLayoutChildren with no items"} {"diff": " public class OGremlinHelper { \n COMMENT \n public void create ( ) { \n if ( enginePool != null ) \n - throw new IllegalStateException ( STRING0 ) ; \n + SINGLE \n + return ; \n \n enginePool = new OResourcePool < Object , GremlinScriptEngine > ( maxEngines , \n new OResourcePoolListener < Object , GremlinScriptEngine > ( ) {", "msg_token": "Fixed problem with multiple starts"} {"diff": " public final class SerializerRegistration { \n public Class getType ( ) { \n return type ; \n } \n + \n + public String toString ( ) { \n + return STRING0 + id + STRING1 + type + STRING1 + serializer + STRING2 ; \n + } \n }", "msg_token": "Added a proper toString to SerializerRegistration"} {"diff": " class QueryPlanner \n boolean needPostProjectionCoercion = false ; \n for ( FunctionCall aggregate : analysis . getAggregates ( node ) ) { \n Expression rewritten = subPlan . rewrite ( aggregate ) ; \n - Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getTypeWithCoercions ( aggregate ) ) ; \n + Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getType ( aggregate ) ) ; \n \n SINGLE \n SINGLE \n class QueryPlanner \n \n SINGLE \n Expression rewritten = subPlan . rewrite ( windowFunction ) ; \n - Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getTypeWithCoercions ( windowFunction ) ) ; \n + Symbol newSymbol = symbolAllocator . newSymbol ( rewritten , analysis . getType ( windowFunction ) ) ; \n \n boolean needCoercion = rewritten instanceof Cast ; \n SINGLE", "msg_token": "Fix bad type info in window function and aggregate"} {"diff": " public final class Cache { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix minor grammatical error in Javadoc for Cache initialize"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Removed an unused import"} {"diff": " \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class FluidRegistry \n { \n if ( fluidBlocks == null ) \n { \n + fluidBlocks = new BiMap < Block , Fluid > ( ) ; \n for ( Fluid fluid : fluids . values ( ) ) \n { \n if ( fluid . canBePlacedInWorld ( ) && Block . blocksList [ fluid . getBlockID ( ) ] != null )", "msg_token": "Prevent NPE in fluid lookup for block"} {"diff": " public final class ParseDataset extends Job < Frame > { \n SINGLE \n totalParseSize += getByteVec ( k ) . length ( ) ; \n } \n + Log . info ( STRING0 + PrettyPrint . bytes ( totalParseSize ) ) ; \n \n SINGLE \n for ( int i = NUMBER0 ; i < keys . length ; ++ i ) {", "msg_token": "Log now records total on disk size of parse target"} {"diff": " public abstract class Closure extends GroovyObjectSupport implements Cloneable , \n \n return writer . toString ( ) ; \n } \n + \n + public Closure curry ( final Object arguments [ ] ) { \n + return ( new CurriedClosure ( this , arguments ) ) . asWritable ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "keep a closure Writeable when curried"} {"diff": " public class DoSFilter implements Filter \n COMMENT \n COMMENT \n @ managedoperation ( STRING0 ) \n - public boolean removeWhitelistAddress ( String address ) \n + public boolean removeWhitelistAddress ( @ name ( STRING1 ) String address ) \n { \n return _whitelist . remove ( address ) ; \n }", "msg_token": "Added Name annotation to JMX enabled operation"} {"diff": " public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType { \n } \n \n @ override \n + public void appendEscapedEntityName ( StringBuilder sb , String name ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + sb . append ( STRING0 ) . append ( name ) . append ( STRING0 ) ; \n + } \n + \n + @ override \n protected void appendBooleanType ( StringBuilder sb , FieldType fieldType , int fieldWidth ) { \n SINGLE \n appendShortType ( sb , fieldType , fieldWidth ) ; \n public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType { \n } \n SINGLE \n switch ( defaultPersister . getSqlType ( ) ) { \n - case DATE : \n + case DATE : \n COMMENT \n COMMENT \n COMMENT \n public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType { \n } else { \n return DateStringType . getSingleton ( ) ; \n } \n - default : \n + default : \n return super . getDataPersister ( defaultPersister , fieldType ) ; \n } \n }", "msg_token": "Protect the foo"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public abstract class AbstractFunction implements Function { \n @ getter \n - @ setter \n protected float [ ] weights ; \n @ getter \n protected float minVal ;", "msg_token": "remove unused setter"} {"diff": " public final class MediaProjectionManagerService extends SystemService \n \n final long token = Binder . clearCallingIdentity ( ) ; \n try { \n - dump ( pw ) ; \n + MediaProjectionManagerService . this . dump ( pw ) ; \n } finally { \n Binder . restoreCallingIdentity ( token ) ; \n }", "msg_token": "Qualify private outer call in MediaProjectionManagerService"} {"diff": " public final class Tree { \n tree . description = local_tree . description ; \n tree . name = local_tree . name ; \n tree . notes = local_tree . notes ; \n - tree . strict_match = tree . strict_match ; \n + tree . strict_match = local_tree . strict_match ; \n + tree . enabled = local_tree . enabled ; \n \n SINGLE \n SINGLE", "msg_token": "Fix boolean flag loading in Tree fetchAllTrees"} {"diff": " public class EnumFieldPlugin extends BaseFieldPlugin { \n } \n \n TypeElement typeElement = ( TypeElement ) utils . getTypes ( ) . asElement ( field . asType ( ) ) ; \n - return typeElement . getKind ( ) == ElementKind . ENUM ; \n + return typeElement != null && typeElement . getKind ( ) == ElementKind . ENUM ; \n } \n \n @ override", "msg_token": "Fix a potential NPE in EnumFieldPlugin"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ channelpipelinecoverage ( STRING0 ) \n public class LoggingHandler implements ChannelUpstreamHandler , ChannelDownstreamHandler { \n \n private final InternalLogger logger = InternalLoggerFactory . getInstance ( getClass ( ) ) ;", "msg_token": "Fixed a warning message when LoggingHAndler is used"} {"diff": " public class NonBlockingHashMap < TypeK , TypeV > \n SINGLE \n SINGLE \n K = key ( kvs , idx ) ; SINGLE \n - if ( K == null ) { System . out . println ( STRING0 ) ; continue ; } \n - assert K != null ; SINGLE \n + if ( K == null ) continue ; SINGLE \n } \n SINGLE", "msg_token": "Removed spurious CAS failure debug print from nonblocking hash map about as it was flooding the logs"} {"diff": " public class Config { \n { \n origin = origin . split ( STRING0 ) [ NUMBER0 ] ; \n } \n - origin . matches ( STRING1 ) ; \n return origin . startsWith ( STRING2 ) ; \n }", "msg_token": "Added support for wildcard"} {"diff": " public abstract class AbstractSyncableContentProvider extends SyncableContentPro \n public void onCreate ( SQLiteDatabase db ) { \n bootstrapDatabase ( db ) ; \n mSyncState . createDatabase ( db ) ; \n - ContentResolver . requestSync ( null COMMENT , \n + if ( ! isTemporary ( ) ) { \n + ContentResolver . requestSync ( null COMMENT , \n mContentUri . getAuthority ( ) , new Bundle ( ) ) ; \n + } \n } \n \n @ override", "msg_token": "don t request a sync when temp providers are created"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ org.junit.ignore \n public final class TestOptions { \n private static final boolean ENABLED ;", "msg_token": "JUnit should ignore TestOptions"} {"diff": " public final class Constants { \n COMMENT \n COMMENT \n COMMENT \n - public static final boolean ASTRID_LITE = true ; \n + public static final boolean ASTRID_LITE = false ; \n \n COMMENT \n COMMENT", "msg_token": "Undo astrid lite constant"} {"diff": " public class AccountHeader { \n if ( drawerItem != null && drawerItem instanceof IProfile && ( ( IProfile ) drawerItem ) . isSelectable ( ) ) { \n switchProfiles ( ( IProfile ) drawerItem ) ; \n } \n - \n + mDrawer . setOnDrawerItemClickListener ( null ) ; \n SINGLE \n new Handler ( ) . postDelayed ( new Runnable ( ) { \n @ override", "msg_token": "Fix the empty drawer bug on quick consecutive profile switches"} {"diff": " class CallbackProxy extends Handler { \n public void onProgressChanged ( int newProgress ) { \n SINGLE \n synchronized ( this ) { \n - mLatestProgress = newProgress ; \n - if ( mWebChromeClient == null ) { \n + if ( mWebChromeClient == null || mLatestProgress == newProgress ) { \n return ; \n } \n + mLatestProgress = newProgress ; \n if ( ! mProgressUpdatePending ) { \n sendEmptyMessage ( PROGRESS ) ; \n mProgressUpdatePending = true ;", "msg_token": "Do not update the progress if it is the same as the last given progress"} {"diff": " public class Facebook { \n void autoPublishAsync ( final Context context ) { \n AutoPublishAsyncTask asyncTask = null ; \n synchronized ( this ) { \n - if ( mAutoPublishAsyncTask == null ) { \n + if ( mAutoPublishAsyncTask == null && getShouldAutoPublishInstall ( ) ) { \n SINGLE \n String applicationId = Facebook . this . mAppId ;", "msg_token": "Check shouldAutoPublishInstall on auto publish"} {"diff": " public class TestPerformance extends BaseTest { \n \n protected void compileJavaParser ( boolean leftRecursive ) throws IOException { \n String grammarFileName = leftRecursive ? STRING0 : STRING1 ; \n - String sourceName = leftRecursive ? STRING0 : STRING1 ; \n String parserName = leftRecursive ? STRING2 : STRING3 ; \n String lexerName = leftRecursive ? STRING4 : STRING5 ; \n - String body = load ( sourceName , null ) ; \n + String body = load ( grammarFileName , null ) ; \n List < String > extraOptions = new ArrayList < String > ( ) ; \n extraOptions . add ( STRING6 ) ; \n if ( FORCE_ATN ) {", "msg_token": "remove uncessary sourceName variable"} {"diff": " maven_jar ( \n ) \n < / pre > \n \n - < p > Targets can specify < code > @ guava SINGLE \n + < p > Targets can specify < code > @ com_google_guava_guava SINGLE \n + jar . < / p > \n \n COMMENT", "msg_token": "Fix maven_jar documentation to use to the correct repository name"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public interface MetaContactListListener \n extends EventListener \n { \n - \n + \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public void metaContactAdded ( MetaContactEvent evt ) ; \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void metaContactModified ( MetaContactEvent evt ) ; \n + \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public void metaContactRemoved ( MetaContactEvent evt ) ; \n - \n + \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public void metaContactGroupAdded ( MetaContactGroupEvent evt ) ; \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void metaContactGroupModified ( MetaContactGroupEvent evt ) ; \n + \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public void metaContactGroupRemoved ( MetaContactGroupEvent evt ) ; \n - \n + \n }", "msg_token": "added additional methods and documentation"} {"diff": " public class WalletTest extends TestWithWallet { \n public void keyRotationHD ( ) throws Exception { \n SINGLE \n Utils . setMockClock ( ) ; \n + wallet = new Wallet ( params ) ; \n ECKey key1 = wallet . freshReceiveKey ( ) ; \n ECKey key2 = wallet . freshReceiveKey ( ) ; \n sendMoneyToWallet ( wallet , CENT , key1 . toAddress ( params ) , AbstractBlockChain . NewBlockType . BEST_CHAIN ) ;", "msg_token": "pin creation time of wallet key hierarchy in keyRotationHD test to avoid timing race"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface Input { \n } \n } \n \n - private static ObjectMap < String , Integer > keyNames ; \n + private static ObjectIntMap < String > keyNames ; \n \n COMMENT \n COMMENT \n public interface Input { \n \n COMMENT \n private static void initializeKeyNames ( ) { \n - keyNames = new ObjectMap < String , Integer > ( ) ; \n + keyNames = new ObjectIntMap < String > ( ) ; \n for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n String name = toString ( i ) ; \n if ( name != null ) {", "msg_token": "change ObjectMap to ObjectIntMap"} {"diff": " public class EmailUtil { \n String contentType = part . getContentType ( ) ; \n String ret = null ; \n \n - if ( part . getFileName ( ) != null ) { \n + try { \n ret = javax . mail . internet . MimeUtility . decodeText ( part . getFileName ( ) ) ; \n } \n - else { \n + catch ( Exception ex ) { \n String [ ] contentId = part . getHeader ( STRING0 ) ; \n if ( contentId != null && contentId . length > NUMBER0 ) { \n ret = contentId [ NUMBER0 ] ; \n public class EmailUtil { \n ret += StringPool . DOT + contentType . substring ( contentType . lastIndexOf ( STRING1 ) + NUMBER1 , contentType . length ( ) ) ; \n } \n \n - return ret == null ? StringPool . EMPTY : ret ; \n + return ret ; \n } \n \n }", "msg_token": "Adding back NPE check"} {"diff": " public class AndroidApplicationConfiguration { \n COMMENT \n COMMENT \n public boolean useGLSurfaceViewAPI18 = false ; \n + \n + COMMENT \n + public boolean useImmersiveMode = false ; \n }", "msg_token": "Added Immersive Mode option"} {"diff": " public class StatementMover extends LineMover { \n final PsiElement tmp = PyPsiUtils . getSignificantToTheRight ( element2 , false ) ; \n if ( tmp != null && \n ( editor . offsetToLogicalPosition ( tmp . getTextRange ( ) . getStartOffset ( ) ) . line == info . toMove2 . startLine || \n - tmp . getNode ( ) . getElementType ( ) == PyTokenTypes . ELSE_KEYWORD ) ) \n + tmp . getNode ( ) . getElementType ( ) == PyTokenTypes . ELSE_KEYWORD || tmp . getNode ( ) . getElementType ( ) == PyTokenTypes . EXCEPT_KEYWORD ) ) \n element2 = tmp ; \n } else { \n final PsiElement tmp = PyPsiUtils . getSignificantToTheRight ( element2 , false ) ;", "msg_token": "breaks code in case of empty line between parts of compound statement"} {"diff": " public class UserPage extends RootPage { \n user = new UserModel ( userName ) ; \n } \n \n - String projectName = user . getPersonalPath ( ) ; \n - \n - ProjectModel project = app ( ) . projects ( ) . getProjectModel ( projectName ) ; \n - if ( project == null ) { \n - project = new ProjectModel ( projectName ) ; \n - } \n - \n add ( new Label ( STRING0 , user . getDisplayName ( ) ) ) ; \n add ( new Label ( STRING1 , user . username ) ) ; \n LinkPanel email = new LinkPanel ( STRING2 , null , user . emailAddress , STRING3 ) ;", "msg_token": "findbugs Remove dead code in UserPage"} {"diff": " package NAMESPACE ; \n public interface EmbeddedServletContainer { \n \n COMMENT \n - COMMENT \n - COMMENT \n - public static final EmbeddedServletContainer NONE = new EmbeddedServletContainer ( ) { \n - \n - @ override \n - public void start ( ) throws EmbeddedServletContainerException { \n - SINGLE \n - } ; \n - \n - @ override \n - public void stop ( ) throws EmbeddedServletContainerException { \n - SINGLE \n - } \n - \n - @ override \n - public int getPort ( ) { \n - return NUMBER0 ; \n - } \n - \n - } ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove obsolete EmbeddedServletContainer NONE"} {"diff": " public class DependencyManager implements InstallShinyEvent . Handler \n Dependency . cranPackage ( STRING0 , STRING1 ) , \n Dependency . cranPackage ( STRING2 , STRING3 ) , \n Dependency . cranPackage ( STRING4 , STRING5 ) , \n + Dependency . cranPackage ( STRING6 , STRING7 ) , \n Dependency . embeddedPackage ( STRING8 ) \n } , \n true , SINGLE", "msg_token": "add dependency on rstudioapi for rsconnect installation"} {"diff": " public abstract class BarLineChartBase < T extends BarLineScatterCandleBubbleData < \n \n @ override \n protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { \n - SINGLE \n + \n + SINGLE \n float [ ] pts = new float [ NUMBER0 ] ; \n - pts [ NUMBER1 ] = mViewPortHandler . contentLeft ( ) ; \n - pts [ NUMBER2 ] = mViewPortHandler . contentTop ( ) ; \n - getTransformer ( AxisDependency . LEFT ) . pixelsToValue ( pts ) ; \n + if ( mKeepPositionOnRotation ) { \n + pts [ NUMBER1 ] = mViewPortHandler . contentLeft ( ) ; \n + pts [ NUMBER2 ] = mViewPortHandler . contentTop ( ) ; \n + getTransformer ( AxisDependency . LEFT ) . pixelsToValue ( pts ) ; \n + } \n \n SINGLE \n super . onSizeChanged ( w , h , oldw , oldh ) ; \n \n - if ( mKeepPositionOnRotation ) { \n + if ( mKeepPositionOnRotation ) { \n \n SINGLE \n getTransformer ( AxisDependency . LEFT ) . pointValuesToPixel ( pts ) ;", "msg_token": "Avoid extra computed when not needed"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NamespaceSandboxRunner { \n \n static boolean isSupported ( BlazeRuntime runtime ) { \n Path execRoot = runtime . getExecRoot ( ) ; \n - OutErr outErr = runtime . getReporter ( ) . getOutErr ( ) ; \n BinTools binTools = runtime . getBinTools ( ) ; \n \n List < String > args = new ArrayList < > ( ) ; \n public class NamespaceSandboxRunner { \n cmd . execute ( \n COMMENT \n Command . NO_OBSERVER , \n - outErr . getOutputStream ( ) , \n - outErr . getErrorStream ( ) , \n + ByteStreams . nullOutputStream ( ) , \n + ByteStreams . nullOutputStream ( ) , \n COMMENT \n } catch ( CommandException e ) { \n return false ;", "msg_token": "Do not print the output of the isSupported check"} {"diff": " public final class Request { \n return new Builder ( this ) ; \n } \n \n - public Headers getHeaders ( ) { \n - return headers ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT \n public final class Route { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public Proxy getProxy ( ) { \n return proxy ; \n public final class HttpTransport implements Transport { \n String requestLine = RequestLine . get ( request , \n httpEngine . getConnection ( ) . getRoute ( ) . getProxy ( ) . type ( ) , \n httpEngine . getConnection ( ) . getProtocol ( ) ) ; \n - httpConnection . writeRequest ( request . getHeaders ( ) , requestLine ) ; \n + httpConnection . writeRequest ( request . headers ( ) , requestLine ) ; \n } \n \n @ override public Response . Builder readResponseHeaders ( ) throws IOException {", "msg_token": "Drop getHeaders which is redundant with headers"} {"diff": " public class PluginManager \n return new SimpleChildFirstClassLoader ( urls , \n getClass ( ) . getClassLoader ( ) , \n ImmutableList . of ( STRING0 ) , \n - ImmutableList . of ( STRING1 ) ) ; \n + ImmutableList . of ( STRING1 , STRING2 ) ) ; \n } \n \n private List < File > listFiles ( File installedPluginsDir )", "msg_token": "Add com fasterxml jackson to parent first packages"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPostProcessor , \n - ResourceLoaderAware , BeanClassLoaderAware , EnvironmentAware , ApplicationContextAware { \n + ResourceLoaderAware , BeanClassLoaderAware , EnvironmentAware , ApplicationContextAware , \n + Ordered { \n \n private static final String IMPORT_AWARE_PROCESSOR_BEAN_NAME = \n ConfigurationClassPostProcessor . class . getName ( ) + STRING0 ; \n public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo \n } \n } \n \n + @ override \n + public int getOrder ( ) { \n + return Ordered . HIGHEST_PRECEDENCE ; \n + } \n + \n \n private static class ImportAwareBeanPostProcessor implements PriorityOrdered , BeanFactoryAware , BeanPostProcessor {", "msg_token": "Make ConfClassPostPro Ordered HIGHEST_PRECEDENCE"} {"diff": " public class ActiveSession extends JavaScriptObject \n public native final String getWorkingDir ( ) COMMENT \n COMMENT \n COMMENT ; \n + \n + public native final boolean getRunning ( ) COMMENT \n + COMMENT \n + COMMENT ; \n + \n + public native final double getLastUsed ( ) COMMENT \n + COMMENT \n + COMMENT ; \n + \n + public native final String getRVersion ( ) COMMENT \n + COMMENT \n + COMMENT ; \n + \n + public native final String getRVersionHome ( ) COMMENT \n + COMMENT \n + COMMENT ; \n + \n + \n }", "msg_token": "add fields to active session"} {"diff": " public class SyslogUDPInput implements MessageInput { \n final ExecutorService workerThreadPool = Executors . newCachedThreadPool ( ) ; \n final ConnectionlessBootstrap bootstrap = new ConnectionlessBootstrap ( new NioDatagramChannelFactory ( workerThreadPool ) ) ; \n \n + bootstrap . setOption ( STRING0 , NUMBER0 ) ; \n bootstrap . setOption ( STRING1 , new FixedReceiveBufferSizePredictorFactory ( NUMBER1 ) ) ; \n bootstrap . setPipelineFactory ( new SyslogPipelineFactory ( graylogServer ) ) ;", "msg_token": "also set ReceiveBufferSize for syslog udp"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fix a checkstyle issue"} {"diff": " public class Response \n protected final CharChunk redirectURLCC = new CharChunk ( ) ; \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private final List < Cookie > cookies = new ArrayList < > ( ) ; \n + \n SINGLE \n \n \n public class Response \n COMMENT \n public void recycle ( ) { \n \n + cookies . clear ( ) ; \n outputBuffer . recycle ( ) ; \n usingOutputStream = false ; \n usingWriter = false ; \n public class Response \n } \n \n \n + public List < Cookie > getCookies ( ) { \n + return cookies ; \n + } \n + \n + \n SINGLE \n \n COMMENT \n public class Response \n return ; \n } \n \n + cookies . add ( cookie ) ; \n + \n String header = generateCookieString ( cookie ) ; \n SINGLE \n SINGLE", "msg_token": "Keep a reference to the cookie objects that are added to the response"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReviewPresenter implements IsWidget \n final EventBus events , \n final VcsState vcsState , \n final Commands commands , \n - final Session session ) \n + final Session session , \n + final GlobalDisplay globalDisplay ) \n { \n server_ = server ; \n view_ = view ; \n + globalDisplay_ = globalDisplay ; \n \n vcsState . addVcsRefreshHandler ( new VcsRefreshHandler ( ) \n { \n public class ReviewPresenter implements IsWidget \n private final Invalidation diffInvalidation_ = new Invalidation ( ) ; \n private final VCSServerOperations server_ ; \n private final Display view_ ; \n + private final GlobalDisplay globalDisplay_ ; \n private ArrayList < DiffChunk > activeChunks_ = new ArrayList < DiffChunk > ( ) ; \n private static final String MODULE_VCS = STRING0 ; \n private static final String KEY_CONTEXT_LINES = STRING1 ;", "msg_token": "Revert eliminate eclipse warnings"} {"diff": " public class ExampleRunner { \n connection . setDoInput ( true ) ; \n connection . setDoOutput ( true ) ; \n connection . setRequestMethod ( STRING0 ) ; \n - connection . setRequestProperty ( STRING1 , STRING2 ) ; \n + connection . setRequestProperty ( STRING1 , STRING3 ) ; \n os = new BufferedOutputStream ( connection . getOutputStream ( ) ) ; \n \n StringBuilder builder = new StringBuilder ( ) ; \n public class ExampleRunner { \n connection . setDoInput ( true ) ; \n connection . setDoOutput ( true ) ; \n connection . setRequestMethod ( STRING0 ) ; \n - connection . setRequestProperty ( STRING1 , STRING2 ) ; \n + connection . setRequestProperty ( STRING1 , STRING3 ) ; \n os = new BufferedOutputStream ( connection . getOutputStream ( ) ) ; \n \n StringBuilder builder = new StringBuilder ( ) ;", "msg_token": "Fix bad boundaries"} {"diff": " public class MediaScanner \n prescan ( path , true ) ; \n \n File file = new File ( path ) ; \n - if ( ! file . exists ( ) ) { \n + if ( ! file . exists ( ) || ! file . canRead ( ) ) { \n return null ; \n }", "msg_token": "Do not scan a file which cannot be read"} {"diff": " public class DefaultJSONParser implements Closeable { \n } \n \n if ( token == JSONToken . LITERAL_STRING ) { \n - type = TypeUtils . unwrap ( type ) ; \n if ( type == byte [ ] . class ) { \n byte [ ] bytes = lexer . bytesValue ( ) ; \n lexer . nextToken ( ) ; \n public class TypeUtils { \n return type ; \n } \n \n - public static Type unwrap ( Type type ) { \n - if ( type instanceof GenericArrayType ) { \n - Type componentType = ( ( GenericArrayType ) type ) . getGenericComponentType ( ) ; \n - if ( componentType == byte . class ) { \n - return byte [ ] . class ; \n - } \n - if ( componentType == char . class ) { \n - return char [ ] . class ; \n - } \n - } \n - \n - return type ; \n - } \n - \n public static Type unwrapOptional ( Type type ) { \n if ( ! optionalClassInited ) { \n try {", "msg_token": "remove unused code"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class LocalStore extends Store implements Serializable { \n - private static final int DB_VERSION = NUMBER0 ; \n + private static final int DB_VERSION = NUMBER1 ; \n private static final Flag [ ] PERMANENT_FLAGS = { Flag . DELETED , Flag . X_DESTROYED , Flag . SEEN } ; \n \n private String mPath ; \n public class LocalStore extends Store implements Serializable { \n mDb . execSQL ( STRING0 \n + STRING1 ) ; \n \n + mDb . execSQL ( STRING2 ) ; \n mDb . execSQL ( STRING3 ) ; \n mDb . execSQL ( STRING4 \n + STRING5 \n + STRING6 ) ; \n \n + mDb . execSQL ( STRING7 ) ; \n + mDb . execSQL ( STRING8 ) ; \n mDb . execSQL ( STRING9 ) ; \n mDb . execSQL ( STRING10 \n + STRING11", "msg_token": "Add a few indexes to the message and folder lists"} {"diff": " class MapServiceContextImpl implements MapServiceContext { \n protected EventService eventService ; \n protected MapOperationProviders operationProviders ; \n \n - private final ContextMutexFactory contextMutexFactory = new ContextMutexFactory ( ) ; \n + protected final ContextMutexFactory contextMutexFactory = new ContextMutexFactory ( ) ; \n \n MapServiceContextImpl ( NodeEngine nodeEngine ) { \n this . nodeEngine = nodeEngine ;", "msg_token": "Change access of variable in MapServiceContextImpl"} {"diff": " public class CommandLineUtils { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void initializeDatabase ( String username , String defaultCatalogName , String defaultSchemaName , Database database ) throws DatabaseException { \n if ( ( defaultCatalogName != null || defaultSchemaName != null ) && ! ( database . getConnection ( ) instanceof OfflineConnection ) ) { \n if ( database instanceof OracleDatabase ) {", "msg_token": "document extracted method"} {"diff": " public class ObjectGeneratorPineTree extends ObjectGenerator { \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public ObjectGeneratorPineTree ( LocalWorldProvider w ) { \n super ( w ) ; \n public class GroovyManager { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Commit two tiny fixes just to test making a Pull request on GitHub"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public final class WebViewFactory { \n - private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = true ; \n + private static final boolean DEFAULT_TO_EXPERIMENTAL_WEBVIEW = false ; \n private static final String EXPERIMENTAL_PROPERTY_DEFAULT_OFF = STRING0 ; \n private static final String EXPERIMENTAL_PROPERTY_DEFAULT_ON = STRING1 ;", "msg_token": "set chromium to be the default WebView"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class DisplayImageOptions { \n private Handler handler = null ; \n private boolean isSyncLoading = false ; \n \n - public Builder ( ) { \n - decodingOptions . inPurgeable = true ; \n - decodingOptions . inInputShareable = true ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "inPurgeable and inInputShareable causes file descriptor leak on KitKat"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Remove reference to AttributeService in attribute package javadoc"} {"diff": " \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Add missing license header"} {"diff": " public class XmlNode extends RubyObject { \n \n try { \n parentNode . replaceChild ( otherNode , thisNode ) ; \n + otherNode . getOwnerDocument ( ) . renameNode ( otherNode , thisNode . getNamespaceURI ( ) , otherNode . getNodeName ( ) ) ; \n } catch ( Exception e ) { \n String prefix = STRING0 ; \n throw context . getRuntime ( ) . newRuntimeError ( prefix + e . toString ( ) ) ;", "msg_token": "Fix namespace when a node is replaced by another node"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - \n public class ResultPrinterTest \n {", "msg_token": "Changed assert method in ResultPrinterTest"} {"diff": " import NAMESPACE ; \n @ suppresswarnings ( { STRING0 , STRING1 } ) \n @ privateapi \n public final class HazelcastInstanceProxy implements HazelcastInstance , SerializationServiceSupport { \n + \n protected volatile HazelcastInstanceImpl original ; \n + \n private final String name ; \n \n protected HazelcastInstanceProxy ( HazelcastInstanceImpl original ) { \n public final class HazelcastInstanceProxy implements HazelcastInstance , Serializ \n getLifecycleService ( ) . shutdown ( ) ; \n } \n \n + @ override \n public InternalSerializationService getSerializationService ( ) { \n return getOriginal ( ) . getSerializationService ( ) ; \n }", "msg_token": "Added missing Override annotation in HazelcastInstanceProxy"} {"diff": " public abstract class Operation implements DataSerializable { \n return this ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final long getWaitTimeout ( ) { \n return waitTimeout ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final void setWaitTimeout ( long timeout ) { \n this . waitTimeout = timeout ; \n setFlag ( timeout != - NUMBER0 , BITMASK_WAIT_TIMEOUT_SET ) ;", "msg_token": "Improved Operation waitTimeout documentation"} {"diff": " public final class ContactsContract { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - @ deprecated \n public static final int AGGREGATION_MODE_IMMEDIATE = NUMBER0 ; \n \n COMMENT \n public final class ContactsContract { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - @ deprecated \n public static final class Data implements BaseColumns , DataColumns { \n COMMENT \n COMMENT", "msg_token": "Revert a couple of deprecations to fix broken build"} {"diff": " public interface List < T > extends Iterable < T > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n default int size ( ) { \n - return isEmpty ( ) ? NUMBER0 : NUMBER1 + tail ( ) . size ( ) ; \n + int result = NUMBER0 ; \n + for ( List < T > list = this ; ! list . isEmpty ( ) ; list = list . tail ( ) , result ++ ) ; \n + return result ; \n } \n \n default boolean contains ( T o ) {", "msg_token": "faster size function prevents possibility of stack overflow for big"} {"diff": " public class GlobalMatchingVisitor extends AbstractMatchingVisitor { \n SINGLE \n private MatchContext matchContext ; \n \n - private MatchingHandler myLastHandler ; \n - \n - private Map < Language , PsiElementVisitor > myLanguage2MatchingVisitor = new HashMap < Language , PsiElementVisitor > ( NUMBER0 ) ; \n + private final Map < Language , PsiElementVisitor > myLanguage2MatchingVisitor = new HashMap < Language , PsiElementVisitor > ( NUMBER0 ) ; \n \n public PsiElement getElement ( ) { \n return myElement ; \n public class GlobalMatchingVisitor extends AbstractMatchingVisitor { \n return nodes . hasNext ( ) == nodes2 . hasNext ( ) ; \n } \n \n - myLastHandler = matchContext . getPattern ( ) . getHandler ( nodes . current ( ) ) ; \n - return myLastHandler . matchSequentially ( \n + return matchContext . getPattern ( ) . getHandler ( nodes . current ( ) ) . matchSequentially ( \n nodes , \n nodes2 , \n matchContext", "msg_token": "remove unnecessary field"} {"diff": " public class Document implements Map < String , Object > , Serializable { \n return ( Integer ) get ( key ) ; \n } \n \n + public int getInteger ( final Object key , final int defaultValue ) { \n + Object value = get ( key ) ; \n + return value == null ? defaultValue : ( Integer ) value ; \n + } \n + \n public Long getLong ( final Object key ) { \n return ( Long ) get ( key ) ; \n } \n public class Document implements Map < String , Object > , Serializable { \n return ( Boolean ) get ( key ) ; \n } \n \n + public boolean getBoolean ( final Object key , final boolean defaultValue ) { \n + Object value = get ( key ) ; \n + return value == null ? defaultValue : ( Boolean ) value ; \n + } \n + \n public ObjectId getObjectId ( final Object key ) { \n return ( ObjectId ) get ( key ) ; \n }", "msg_token": "Added getInteger and getBoolean overloads to Document that take a default value"} {"diff": " public final class JsModuleDetector { \n private JsModuleDetector ( ) { \n } \n \n + public static boolean isJsProject ( @ notnull Project project ) { \n + return getJSModule ( project ) != null ; \n + } \n + \n public static boolean isJsModule ( @ notnull Module module ) { \n return K2JSModuleComponent . getInstance ( module ) . isJavaScriptModule ( ) ; \n }", "msg_token": "Restore JsModuleDetector iisJsProject to avoid compilation error"} {"diff": " public class LogbackHelper { \n public static final String MAX_FILES_PROPERTY = STRING0 ; \n \n public LoggerContext getRootContext ( ) { \n - return ( ( Logger ) LoggerFactory . getLogger ( Logger . ROOT_LOGGER_NAME ) ) . getLoggerContext ( ) ; \n + org . slf4j . Logger logger ; \n + while ( ! ( ( logger = LoggerFactory . getLogger ( Logger . ROOT_LOGGER_NAME ) ) instanceof Logger ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + try { \n + Thread . sleep ( NUMBER0 ) ; \n + } catch ( InterruptedException e ) { \n + Thread . currentThread ( ) . interrupt ( ) ; \n + } \n + } \n + return ( ( Logger ) logger ) . getLoggerContext ( ) ; \n } \n \n public LoggerContextListener enableJulChangePropagation ( LoggerContext loggerContext ) {", "msg_token": "Fix instability of LogbackHelper"} {"diff": " public class DB implements Closeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n synchronized public < K , V > HTreeMap < K , V > hashMap ( \n String name , \n Serializer < K > keySerializer , \n + Serializer < V > valueSerializer ) { \n + return hashMap ( name , keySerializer , valueSerializer , null ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + synchronized public < K , V > HTreeMap < K , V > hashMap ( \n + String name , \n + Serializer < K > keySerializer , \n Serializer < V > valueSerializer , \n Fun . Function1 < V , K > valueCreator ) { \n checkNotClosed ( ) ;", "msg_token": "add hashMap keyser valser method"} {"diff": " public class OrderedMemoryAwareThreadPoolExecutor extends \n ChannelStateEvent se = ( ChannelStateEvent ) e ; \n if ( se . getState ( ) == ChannelState . OPEN && \n ! channel . isOpen ( ) ) { \n - childExecutors . remove ( channel ) ; \n + removeChildExecutor ( key ) ; \n } \n } \n return executor ;", "msg_token": "Remove the child Executor with the right method so it will also work"} {"diff": " public class TraversalFactory \n return StandardExpander . create ( type , dir ) ; \n } \n \n + public static Expander emptyExpander ( ) \n + { \n + return StandardExpander . DEFAULT ; SINGLE \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed issue where shell used parts of kernel that ought to be implementation internals"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class ExampleModel extends SupervisedModel < ExampleModel , ExampleModel . ExampleParameters , ExampleModel . ExampleOutput > {", "msg_token": "remove ideaj warning"} {"diff": " import NAMESPACE ; \n @ sideonly ( Side . CLIENT ) \n public abstract class CustomModLoadingErrorDisplayException extends RuntimeException implements IFMLHandledException \n { \n + public CustomModLoadingErrorDisplayException ( ) { \n + } \n + \n + public CustomModLoadingErrorDisplayException ( String message , Throwable cause ) \n + { \n + super ( message , cause ) ; \n + } \n + \n private static final long serialVersionUID = NUMBER0 ; \n \n COMMENT", "msg_token": "Add a constructor to CustomModLoadingDisplayException"} {"diff": " class Task implements DimLayer . DimLayerUser { \n } \n \n int boundsChange = BOUNDS_CHANGE_NONE ; \n - if ( mBounds . left != bounds . left || mBounds . right != bounds . right ) { \n + if ( mBounds . left != bounds . left || mBounds . top != bounds . top ) { \n boundsChange |= BOUNDS_CHANGE_POSITION ; \n } \n if ( mBounds . width ( ) != bounds . width ( ) || mBounds . height ( ) != bounds . height ( ) ) { \n public class WindowManagerService extends IWindowManager . Stub \n public void setReplacingWindow ( IBinder token , boolean animate ) { \n synchronized ( mWindowMap ) { \n AppWindowToken appWindowToken = findAppWindowToken ( token ) ; \n - if ( appWindowToken == null ) { \n + if ( appWindowToken == null || ! appWindowToken . isVisible ( ) ) { \n Slog . w ( TAG , STRING0 + token ) ; \n return ; \n }", "msg_token": "Fix window disappearing when docking a second app"} {"diff": " public class PlainStreetEdge extends StreetEdge implements Cloneable { \n String name , double length , \n StreetTraversalPermission permission , boolean back ) { \n SINGLE \n + SINGLE \n this ( v1 , v2 , geometry , name , length , permission , back , FLOAT0 ) ; \n }", "msg_token": "Add some comments"} {"diff": " public class Db4oPersistenceService implements QueryablePersistenceService { \n db . commit ( ) ; \n logger . trace ( STRING0 , System . currentTimeMillis ( ) - startTime ) ; \n } catch ( Db4oException e ) { \n - db . rollback ( ) ; \n - logger . warn ( STRING1 , e . getMessage ( ) ) ; \n + try { \n + db . rollback ( ) ; \n + logger . warn ( STRING1 , e . getMessage ( ) ) ; \n + } catch ( DatabaseClosedException dce ) { \n + SINGLE \n + logger . debug ( STRING2 , e . getMessage ( ) ) ; \n + } \n } \n }", "msg_token": "fixed exception during shutdown"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class RemoteViewsCompat { \n public class RemoteViewsCompat { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs build"} {"diff": " public class PythonSkeletonsTest extends PyEnvTestCase { \n assertNotNull ( builtins ) ; \n final PyClass cls = builtins . findTopLevelClass ( STRING0 ) ; \n assertNotNull ( cls ) ; \n - final Property prop = cls . findProperty ( STRING1 ) ; \n + final Property prop = cls . findProperty ( STRING1 , true ) ; \n assertNotNull ( prop ) ; \n assertIsNotNull ( prop . getGetter ( ) ) ; \n assertIsNotNull ( prop . getSetter ( ) ) ;", "msg_token": "Added inherited parameter to PyClass findProperty"} {"diff": " public class SubsamplingLayer extends BaseLayer < org . deeplearning4j . nn . conf . layer \n c = pooled . size ( NUMBER0 ) ; \n kh = pooled . size ( NUMBER1 ) ; \n kw = pooled . size ( NUMBER2 ) ; \n - outWidth = pooled . size ( NUMBER3 ) ; \n - outHeight = pooled . size ( NUMBER4 ) ; \n + outHeight = pooled . size ( NUMBER3 ) ; \n + outWidth = pooled . size ( NUMBER4 ) ; \n ret = pooled . reshape ( n , c , kh * kw , outHeight , outWidth ) ; \n maxIndexes = Nd4j . argMax ( ret , NUMBER1 ) ; \n return ret . max ( NUMBER1 ) ;", "msg_token": "Fix height vs width issue in max pooling backprop"} {"diff": " public class DeepLearningAutoEncoderTest extends TestUtil { \n p . _loss = DeepLearningModel . DeepLearningParameters . Loss . Absolute ; \n p . _epochs = FLOAT0 ; \n p . _force_load_balance = true ; \n + p . _elastic_averaging = false ; \n DeepLearning dl = new DeepLearning ( p ) ; \n DeepLearningModel mymodel = null ; \n try {", "msg_token": "Turn off elastic averaging for DLAETest"} {"diff": " public class OracleStructureAssistant implements DBSStructureAssistant \n OracleObjectType . FOREIGN_KEY , \n OracleObjectType . INDEX , \n OracleObjectType . PROCEDURE , \n + OracleObjectType . SEQUENCE , \n OracleObjectType . TRIGGER , \n } ; \n }", "msg_token": "Search Oracle sequences"} {"diff": " public class NativeCounterCell extends NativeCell implements CounterCell \n \n public boolean equals ( Cell cell ) \n { \n - return cell instanceof CounterCell && equals ( ( CounterCell ) this ) ; \n + return cell instanceof CounterCell && equals ( ( CounterCell ) cell ) ; \n } \n \n public boolean equals ( CounterCell cell ) \n public class NativeExpiringCell extends NativeCell implements ExpiringCell \n \n public boolean equals ( Cell cell ) \n { \n - return cell instanceof ExpiringCell && equals ( ( ExpiringCell ) this ) ; \n + return cell instanceof ExpiringCell && equals ( ( ExpiringCell ) cell ) ; \n } \n \n protected boolean equals ( ExpiringCell cell )", "msg_token": "fix equals to compare this to the parm rather than this to this"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class GroovyCompilerFactory { \n + private static final Logger LOGGER = LoggerFactory . getLogger ( GroovyCompilerFactory . class ) ; \n private final ProjectInternal project ; \n private final IsolatedAntBuilder antBuilder ; \n private final ClassPathRegistry classPathRegistry ; \n public class GroovyCompilerFactory { \n } \n \n Compiler < GroovyJavaJointCompileSpec > create ( GroovyCompileOptions groovyOptions , CompileOptions javaOptions ) { \n + SINGLE \n + if ( groovyOptions . isUseAnt ( ) && ! javaOptions . isUseAnt ( ) ) { \n + LOGGER . warn ( STRING0 ) ; \n + javaOptions . setUseAnt ( true ) ; \n + } else if ( ! groovyOptions . isUseAnt ( ) && javaOptions . isUseAnt ( ) ) { \n + LOGGER . warn ( STRING1 ) ; \n + javaOptions . setUseAnt ( false ) ; \n + } \n + \n if ( groovyOptions . isUseAnt ( ) ) { \n return new AntGroovyCompiler ( antBuilder , classPathRegistry ) ; \n }", "msg_token": "Don t mix ant gradle compiler implementations when doing joint groovy java compilation"} {"diff": " public interface ServiceTicket extends Ticket { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n boolean isValidFor ( Service service ) ;", "msg_token": "NOJIRA Update the desc of the service parameter in ServiceTicket"} {"diff": " public abstract class ProxyConnection implements Connection \n delegate = ClosedConnection . CLOSED_CONNECTION ; \n poolEntry . recycle ( lastAccess ) ; \n } \n - poolEntry = null ; leakTask = null ; openStatements = null ; SINGLE \n + poolEntry = null ; leakTask = null ; SINGLE \n } \n } \n }", "msg_token": "fixed NPE in tests"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public abstract class TypeSafeMatcher < T > extends BaseMatcher < T > { \n \n private static Class < ? > findExpectedType ( Class < ? > fromClass ) { \n for ( Class < ? > c = fromClass ; c != Object . class ; c = c . getSuperclass ( ) ) { \n - for ( Method method : c . getDeclaredMethods ( ) ) { \n + for ( Method method : MethodSorter . getDeclaredMethods ( c ) ) { \n if ( isMatchesSafelyMethod ( method ) ) { \n return method . getParameterTypes ( ) [ NUMBER0 ] ; \n }", "msg_token": "Using MethodSorter here too just in case it matters"} {"diff": " public class PostfixLiveTemplate extends CustomLiveTemplateBase { \n public String computeTemplateKey ( @ notnull CustomTemplateCallback callback ) { \n Editor editor = callback . getEditor ( ) ; \n String key = computeTemplateKeyWithoutContextChecking ( editor ) ; \n - \n - PostfixTemplate template = key != null ? getTemplateByKey ( key ) : null ; \n - return isApplicableTemplate ( template , key , callback . getContext ( ) . getContainingFile ( ) , editor ) ? key : null ; \n + \n + if ( key == null ) { \n + return null ; \n + } \n + return isApplicableTemplate ( getTemplateByKey ( key ) , key , callback . getContext ( ) . getContainingFile ( ) , editor ) ? key : null ; \n } \n \n @ nullable", "msg_token": "Fix nullable issue"} {"diff": " public class Application extends android . app . Application { \n @ override \n public void onCreate ( ) { \n super . onCreate ( ) ; \n + \n + SINGLE \n Small . setBaseUri ( STRING0 ) ; \n + \n + SINGLE \n + Small . preSetUp ( this ) ; \n } \n }", "msg_token": "Add Small preSetUp to sample application"} {"diff": " import NAMESPACE ; \n @ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , property = STRING0 , defaultImpl = StringInputRowParser . class ) \n @ jsonsubtypes ( { \n @ jsonsubtypes.type ( name = STRING1 , value = StringInputRowParser . class ) , \n - @ jsonsubtypes.type ( name = STRING2 , value = ProtoBufInputRowParser . class ) , \n + @ jsonsubtypes.type ( name = STRING2 , value = ProtoBufInputRowParser . class ) \n } ) \n public interface InputRowParser < T > \n {", "msg_token": "removed illegal start of expression error"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - public class ImmutableDomainObjectSet < T > extends AbstractSet < T > implements DomainObjectSet < T > { \n + public class ImmutableDomainObjectSet < T > extends AbstractSet < T > implements DomainObjectSet < T > , Serializable { \n private final Set < T > elements = new LinkedHashSet < T > ( ) ; \n \n public ImmutableDomainObjectSet ( Iterable < ? extends T > elements ) {", "msg_token": "made ImmutableDomainObjectSet serializable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AdminToolUtils { \n COMMENT \n COMMENT \n public static AdminClient getAdminClient ( String url ) { \n - return new AdminClient ( url ) ; \n + ClientConfig config = new ClientConfig ( ) . setBootstrapUrls ( url ) \n + . setConnectionTimeout ( NUMBER0 , TimeUnit . SECONDS ) ; \n + \n + AdminClientConfig adminConfig = new AdminClientConfig ( ) . setAdminSocketTimeoutSec ( NUMBER0 ) ; \n + return new AdminClient ( adminConfig , config ) ; \n } \n \n COMMENT", "msg_token": "Increase the timeout of vadmin tool"} {"diff": " public class DashDownloadMapsFragment extends DashBaseFragment { \n } \n \n protected void updateCount ( String s ) { \n + if ( DashDownloadMapsFragment . this . isDetached ( ) ) { \n + return ; \n + } \n File ms = getMyApplication ( ) . getAppPath ( s ) ; \n if ( ms . exists ( ) ) { \n File [ ] lf = ms . listFiles ( ) ; \n public class DashDownloadMapsFragment extends DashBaseFragment { \n @ override \n protected void onPostExecute ( Void result ) { \n super . onPostExecute ( result ) ; \n + if ( DashDownloadMapsFragment . this . isDetached ( ) ) { \n + return ; \n + } \n if ( countMaps > NUMBER0 ) { \n long mb = NUMBER1 < < NUMBER2 ; \n long gb = NUMBER1 < < NUMBER3 ;", "msg_token": "Fixed issues in DashUpdatesFragment with thread safety"} {"diff": " public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n if ( viewRect . width ( ) < getWidth ( ) > > NUMBER0 \n || viewRect . height ( ) < getHeight ( ) > > NUMBER0 ) { \n mTouchHighlightRegion . union ( viewRect ) ; \n - } else { \n - Log . w ( LOGTAG , STRING0 \n + } else if ( DebugFlags . WEB_VIEW ) { \n + Log . d ( LOGTAG , STRING0 \n + viewRect ) ; \n } \n }", "msg_token": "Remove debug log"} {"diff": " public class NetworkControllerImpl extends BroadcastReceiver \n cachedControllers . get ( key ) . unregisterListener ( ) ; \n } \n } \n + SINGLE \n + SINGLE \n + pushConnectivityToSignals ( ) ; \n + updateAirplaneMode ( true COMMENT ) ; \n } \n \n private boolean hasCorrectMobileControllers ( List < SubscriptionInfo > allSubscriptions ) { \n public class NetworkControllerImpl extends BroadcastReceiver \n mBluetoothTethered = mConnectedTransports . get ( TRANSPORT_BLUETOOTH ) ; \n mEthernetConnected = mConnectedTransports . get ( TRANSPORT_ETHERNET ) ; \n \n + pushConnectivityToSignals ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private void pushConnectivityToSignals ( ) { \n SINGLE \n for ( MobileSignalController mobileSignalController : mMobileSignalControllers . values ( ) ) { \n mobileSignalController . setInetCondition (", "msg_token": "Push inet condition to new MobileSignalControllers"} {"diff": " public abstract class Jsr199Javac implements Javac { \n \n private ProcessorBundle prepareProcessors ( \n ClassLoader compilerClassLoader , \n - @ nullable BuildTarget target , \n + BuildTarget target , \n List < String > options ) { \n String processorClassPath = null ; \n String processorNames = null ; \n public abstract class Jsr199Javac implements Javac { \n SINGLE \n throw new HumanReadableException ( \n STRING0 , \n - target != null ? target . getFullyQualifiedName ( ) : STRING1 , \n + target . getFullyQualifiedName ( ) , \n name ) ; \n } \n }", "msg_token": "Remove an unnecessary Nullable"} {"diff": " public class MetaHistoryServiceImpl \n { \n synchronized ( progressListeners ) \n { \n - progressListeners . add ( listener ) ; \n + if ( ! progressListeners . contains ( listener ) ) \n + progressListeners . add ( listener ) ; \n } \n }", "msg_token": "Skips adding a listener if already exists"} {"diff": " public class DoublePunctuationRule extends Rule { \n int dotCount = NUMBER0 ; \n int commaCount = NUMBER0 ; \n for ( int i = NUMBER0 ; i < tokens . length ; i ++ ) { \n - final String token = tokens [ i ] . getToken ( ) . trim ( ) ; \n + final String token = tokens [ i ] . getToken ( ) ; \n String nextToken = null ; \n if ( i < tokens . length - NUMBER1 ) { \n nextToken = tokens [ i + NUMBER1 ] . getToken ( ) ;", "msg_token": "we don t need trim the input is already tokenized on whitespace"} {"diff": " public class IntegrationTest extends IntegrationTestCase { \n STRING0 ) ; \n } \n \n + public void testRenamePrefix ( ) { \n + String code = STRING1 ; \n + CompilerOptions options = createCompilerOptions ( ) ; \n + options . renamePrefix = STRING2 ; \n + options . variableRenaming = VariableRenamingPolicy . ALL ; \n + test ( options , code , STRING3 ) ; \n + } \n + \n public void testRenamePrefixNamespace ( ) { \n String code = \n STRING4 ;", "msg_token": "add integrationtests for renamePrefix because i noticed they were missing"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class UnassignedVariableAccessInspection extends GroovyLocalInspectionBase { \n - public boolean myIgnoreBooleanExpressions = false ; \n + public boolean myIgnoreBooleanExpressions = true ; \n \n @ nullable \n @ override", "msg_token": "don t highlight unassigned vars in boolean checks by default"} {"diff": " public class Launcher { \n } \n \n public static void main ( String [ ] args ) { \n - System . setProperty ( STRING0 , STRING1 ) ; SINGLE \n startApplication ( ) ; \n }", "msg_token": "remove mac specific java property"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n \n import NAMESPACE ; \n class CustomAnalyzer extends Analyzer \n static boolean called ; \n \n @ override \n - public TokenStream tokenStream ( String fieldName , Reader reader ) \n + public final TokenStream tokenStream ( String fieldName , Reader reader ) \n { \n called = true ; \n - return new LowerCaseFilter ( new WhitespaceTokenizer ( reader ) ) ; \n + return new LowerCaseFilter ( LUCENE_VERSION , new WhitespaceTokenizer ( LUCENE_VERSION , reader ) ) ; \n } \n }", "msg_token": "Made method final required by Lucene"} {"diff": " public class RenameFileOperation extends SyncOperation { \n COMMENT \n private boolean isValidNewName ( ) throws IOException { \n SINGLE \n - if ( mNewName == null || mNewName . length ( ) <= NUMBER0 || mNewName . contains ( File . separator ) || mNewName . contains ( STRING0 ) ) { \n + if ( mNewName == null || mNewName . length ( ) <= NUMBER0 || mNewName . contains ( File . separator ) ) { \n return false ; \n } \n SINGLE", "msg_token": "Removed specific check for character when renaming a folder"} {"diff": " public class RandomAccessInputView extends AbstractPagedInputView implements See \n \n public RandomAccessInputView ( ArrayList < MemorySegment > segments , int segmentSize , int limitInLastSegment ) \n { \n - super ( segments . get ( NUMBER0 ) , segmentSize , NUMBER0 ) ; \n + super ( segments . get ( NUMBER0 ) , segments . size ( ) > NUMBER1 ? segmentSize : limitInLastSegment , NUMBER0 ) ; \n this . segments = segments ; \n this . currentSegmentIndex = NUMBER0 ; \n this . segmentSize = segmentSize ; \n public class RandomAccessInputView extends AbstractPagedInputView implements See \n final int offset = ( int ) ( position & this . segmentSizeMask ) ; \n \n this . currentSegmentIndex = bufferNum ; \n - seekInput ( this . segments . get ( bufferNum ) , offset , this . segmentSize ) ; \n + seekInput ( this . segments . get ( bufferNum ) , offset , bufferNum < this . segments . size ( ) - NUMBER1 ? this . segmentSize : this . limitInLastSegment ) ; \n } \n \n COMMENT", "msg_token": "Fixed Bug in Random Access Input view for small data fractions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove some imports"} {"diff": " public class ParseTreeInfoPanel extends JPanel \n mParseTreeModel . setParseTree ( parseTree ) ; \n } \n catch ( IOException ex ) { \n - JOptionPane . showMessageDialog ( \n + showErrorDialog ( \n aParent , \n STRING0 + aFile + STRING1 + ex . getMessage ( ) ) ; \n } \n catch ( ANTLRException ex ) { \n - JOptionPane . showMessageDialog ( \n + showErrorDialog ( \n aParent , \n STRING2 + aFile + STRING1 + ex . getMessage ( ) ) ; \n }", "msg_token": "Incorporated Rick s cleanup"} {"diff": " public class JmsProducer extends DefaultAsyncProducer { \n \n protected void unInitReplyManager ( ) { \n try { \n - ServiceHelper . stopService ( replyManager ) ; \n + if ( replyManager != null ) { \n + if ( LOG . isDebugEnabled ( ) ) { \n + LOG . debug ( STRING0 , replyManager , \n + endpoint . getReplyTo ( ) != null ? endpoint . getReplyTo ( ) : STRING1 ) ; \n + } \n + ServiceHelper . stopService ( replyManager ) ; \n + } \n } catch ( Exception e ) { \n throw ObjectHelper . wrapRuntimeCamelException ( e ) ; \n } finally {", "msg_token": "Added some logging when reply manager is being stopped so its easier to pair the start stop logs"} {"diff": " public class MenuBuilder implements Menu { \n private static final String VIEWS_TAG = STRING0 ; \n \n SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n static final int THEME_RES_FOR_TYPE [ ] = new int [ ] { \n com . android . internal . R . style . Theme_IconMenu , \n com . android . internal . R . style . Theme_ExpandedMenu , \n NUMBER0 , \n - NUMBER0 , \n - NUMBER0 , \n + - NUMBER1 , \n + - NUMBER1 , \n } ; \n \n SINGLE \n public class MenuBuilder implements Menu { \n LayoutInflater getInflater ( ) { \n SINGLE \n if ( mInflater == null ) { \n - Context wrappedContext = new ContextThemeWrapper ( mContext , \n - THEME_RES_FOR_TYPE [ mMenuType ] ) ; \n + int themeResForType = THEME_RES_FOR_TYPE [ mMenuType ] ; \n + Context wrappedContext = themeResForType < NUMBER0 ? mContext : \n + new ContextThemeWrapper ( mContext , themeResForType ) ; \n mInflater = ( LayoutInflater ) wrappedContext \n . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ; \n }", "msg_token": "Allow the theme to affect action bar menus"} {"diff": " public class HBaseStoreManager extends DistributedStoreManager implements KeyCol \n . put ( ID_STORE_NAME , STRING0 ) \n . put ( EDGESTORE_NAME , STRING1 ) \n . put ( INDEXSTORE_NAME + LOCK_STORE_SUFFIX , STRING2 ) \n - . put ( ID_STORE_NAME + LOCK_STORE_SUFFIX , STRING3 ) \n . put ( EDGESTORE_NAME + LOCK_STORE_SUFFIX , STRING4 ) \n . put ( SYSTEM_PROPERTIES_STORE_NAME , STRING5 ) \n . build ( ) ;", "msg_token": "Remove unused ID store short CF name mapping"} {"diff": " public class GraphDatabaseConfiguration { \n STRING0 , \n ConfigOption . Type . FIXED , String . class ) . hide ( ) ; \n \n - public static final ConfigOption < Boolean > ALLOW_STALE_CONFIG = new ConfigOption < Boolean > ( GRAPH_NS , STRING1 , \n + public static final ConfigOption < Boolean > ALLOW_STALE_CONFIG = new ConfigOption < Boolean > ( GRAPH_NS , STRING2 , \n STRING3 + \n STRING4 + Joiner . on ( STRING5 ) . join ( ConfigOption . getManagedTypes ( ) ) + STRING6 + \n STRING7 +", "msg_token": "Rename ALLOW_STALE_CONFIG option string"} {"diff": " public final class Settings { \n public static final String ENHANCED_4G_MODE_ENABLED = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String VOLTE_FEATURE_DISABLED = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a global override for VoLTE calls which leaves user setting in place"} {"diff": " public class Capture extends PImage implements PConstants { \n } else if ( PApplet . platform == WINDOWS ) { \n return STRING0 ; \n } else if ( PApplet . platform == MACOSX ) { \n - return STRING1 ; \n + return STRING0 ; \n } else { \n return STRING2 ; \n } \n public class Capture extends PImage implements PConstants { \n } else if ( PApplet . platform == WINDOWS ) { \n return STRING3 ; \n } else if ( PApplet . platform == MACOSX ) { \n - return STRING3 ; SINGLE \n + return STRING1 ; \n } else { \n return STRING2 ; \n }", "msg_token": "Renamed device properties for OSX"} {"diff": " public class TileAutoWorkbench extends TileBuildCraft implements ISidedInventory \n super . readFromNBT ( data ) ; \n inv . readFromNBT ( data ) ; \n Utils . readInvFromNBT ( craftMatrix , STRING0 , data ) ; \n + \n + SINGLE \n + if ( data . hasKey ( STRING1 ) ) { \n + ItemStack [ ] stacks = new ItemStack [ NUMBER0 ] ; \n + Utils . readStacksFromNBT ( data , STRING1 , stacks ) ; \n + for ( int i = NUMBER1 ; i < NUMBER0 ; i ++ ) { \n + craftMatrix . setInventorySlotContents ( i , stacks [ i ] ) ; \n + } \n + } \n } \n \n @ override", "msg_token": "Add legacy migration to AWB"} {"diff": " final class AndroidFont extends Font \n COMMENT \n COMMENT \n COMMENT \n - @ override \n + Rect tmpRect = new Rect ( ) ; \n + @ override \n public int getStringWidth ( String text ) \n - { \n - Rect rect = new Rect ( ) ; \n - paint . getTextBounds ( text , NUMBER0 , text . length ( ) , rect ) ; \n - return rect . width ( ) ; \n + { \n + paint . getTextBounds ( text , NUMBER0 , text . length ( ) , tmpRect ) ; \n + return tmpRect . width ( ) ; \n } \n \n - Rect tmpRect = new Rect ( ) ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed removed temporary object allocation from getStringWidth"} {"diff": " public class PinotBrokerDebugServlet extends HttpServlet { \n @ override \n protected void doGet ( HttpServletRequest req , HttpServletResponse resp ) throws ServletException , IOException { \n try { \n - System . out . println ( STRING0 ) ; \n resp . setContentType ( STRING1 ) ; \n resp . getOutputStream ( ) . print ( broker . getDebugInfo ( ) ) ; \n resp . getOutputStream ( ) . flush ( ) ;", "msg_token": "Removed useless System out println statement"} {"diff": " public final class URLCanonicalizer { \n } \n \n if ( canonicalURI . getRawAuthority ( ) == null ) { \n - log . debug ( STRING0 + canonicalURI ) ; \n + log . debug ( STRING0 + canonicalURI + STRING1 + baseURL + STRING2 ) ; \n return null ; \n } \n \n public class SpiderTextParser extends SpiderParser { \n public boolean parseResource ( HttpMessage message , Source source , int depth ) { \n log . debug ( STRING3 ) ; \n \n + String baseURL = message . getRequestHeader ( ) . getURI ( ) . toString ( ) ; \n + \n SINGLE \n Matcher matcher = patternURL . matcher ( message . getResponseBody ( ) . toString ( ) ) ; \n while ( matcher . find ( ) ) { \n String s = matcher . group ( NUMBER0 ) ; \n - processURL ( message , depth , s , STRING4 ) ; \n + processURL ( message , depth , s , baseURL ) ; \n } \n \n return false ;", "msg_token": "Include the base URL in SpiderTextParser"} {"diff": " public class InspectionTree extends Tree { \n private final HashSet < Object > myExpandedUserObjects ; \n @ notnull private final GlobalInspectionContextImpl myContext ; \n private SelectionPath mySelectionPath ; \n - private static final ProblemDescriptor [ ] EMPTY_DESCRIPTORS = new ProblemDescriptor [ NUMBER0 ] ; \n \n public InspectionTree ( @ notnull Project project , @ notnull GlobalInspectionContextImpl context ) { \n super ( new InspectionRootNode ( project ) ) ; \n public class InspectionTree extends Tree { \n } \n \n public CommonProblemDescriptor [ ] getSelectedDescriptors ( ) { \n - if ( getSelectionCount ( ) == NUMBER0 ) return EMPTY_DESCRIPTORS ; \n + if ( getSelectionCount ( ) == NUMBER0 ) return CommonProblemDescriptor . EMPTY_ARRAY ; \n final TreePath [ ] paths = getSelectionPaths ( ) ; \n final LinkedHashSet < CommonProblemDescriptor > descriptors = new LinkedHashSet < CommonProblemDescriptor > ( ) ; \n for ( TreePath path : paths ) {", "msg_token": "InspectionTree doesn t use its own empty array"} {"diff": " public class TransportReindexAction extends HandledTransportAction < ReindexReques \n \n private void checkRemoteWhitelist ( RemoteInfo remoteInfo ) { \n TransportAddress publishAddress = null ; \n - HttpInfo httpInfo = httpServer . info ( ) ; \n + HttpInfo httpInfo = httpServer == null ? null : httpServer . info ( ) ; \n if ( httpInfo != null && httpInfo . getAddress ( ) != null ) { \n publishAddress = httpInfo . getAddress ( ) . publishAddress ( ) ; \n }", "msg_token": "Fix reindex NPE when http is disabled"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PlatformProjectOpenProcessor extends ProjectOpenProcessor { \n if ( project == null ) { \n return null ; \n } \n - runConfigurators = false ; \n + final Module [ ] modules = ModuleManager . getInstance ( project ) . getModules ( ) ; \n + if ( modules . length > NUMBER0 ) { \n + runConfigurators = false ; \n + } \n } \n catch ( Exception e ) { \n SINGLE", "msg_token": "run configurators if opening directory based project with no modules"} {"diff": " public class YoutubeSearchEngineTest extends AndroidTestCase { \n super . setUp ( ) ; \n SearchEngine engine = new YoutubeSearchEngine ( ) ; \n \n - result = engine . search ( STRING0 , \n + result = engine . search ( STRING1 , \n NUMBER0 , STRING2 , new Downloader ( ) ) ; \n suggestionReply = engine . suggestionList ( STRING3 , STRING2 , new Downloader ( ) ) ; \n } \n public class YoutubeSearchEngine implements SearchEngine { \n . replace ( STRING4 , STRING5 ) \n . replace ( STRING6 , STRING5 ) ; \n \n + if ( Long . parseLong ( output ) == NUMBER1 ) { \n + Log . d ( TAG , STRING1 ) ; \n + } \n return Long . parseLong ( output ) ; \n }", "msg_token": "fixed faling searchengine unittest"} {"diff": " public class ClassDataIndexer implements DataIndexer < Integer , Collection < IntIdEq \n LOG . debug ( STRING0 + method , e ) ; \n } \n } \n - } , NUMBER0 ) ; \n + } , ClassReader . SKIP_DEBUG | ClassReader . SKIP_FRAMES ) ; \n \n return new ClassEquations ( parameterEquations , contractEquations ) ; \n }", "msg_token": "skipping frames and debug instructions"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class ExtendingCuboidRegionSelector extends CuboidRegionSelector { \n - public ExtendingCuboidRegionSelector ( ) { \n + public ExtendingCuboidRegionSelector ( LocalWorld world ) { \n + super ( world ) ; \n } \n \n public ExtendingCuboidRegionSelector ( RegionSelector oldSelector ) {", "msg_token": "ExtendingCuboidRegionSelector s ctor now requires a LocalWorld"} {"diff": " public class StandaloneXml extends CommonXml { \n ModelNode profileNode = context . getModelNode ( ) ; \n \n writer . writeStartElement ( Element . PROFILE . getLocalName ( ) ) ; \n - writer . writeAttribute ( Attribute . NAME . getLocalName ( ) , profileNode . get ( PROFILE_NAME ) . asString ( ) ) ; \n Set < String > subsystemNames = profileNode . get ( SUBSYSTEM ) . keys ( ) ; \n if ( subsystemNames . size ( ) > NUMBER0 ) { \n String defaultNamespace = writer . getNamespaceContext ( ) . getNamespaceURI ( XMLConstants . DEFAULT_NS_PREFIX ) ;", "msg_token": "Make sure not to write the profie name element since it is no longer allowed in standalone xml"} {"diff": " public abstract class RealmObject { \n protected Row row ; \n protected Realm realm ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void removeFromRealm ( ) { \n if ( row == null ) { \n throw new IllegalStateException ( STRING0 ) ;", "msg_token": "Add documentation to the deleteFromRealm method"} {"diff": " public class GCMMessageService extends GcmListenerService { \n return ; \n } \n \n - SINGLE \n - SINGLE \n - if ( ! buildNoteObjectFromPNPayloadAndSaveIt ( data ) ) { \n - SINGLE \n - SINGLE \n - NotificationsActions . downloadNoteAndUpdateDB ( wpcomNoteID , \n - new RestRequest . Listener ( ) { \n - @ override \n - public void onResponse ( JSONObject response ) { \n - EventBus . getDefault ( ) . post ( new NotificationEvents . NotificationsChanged ( true ) ) ; \n - } \n - } , null ) ; \n - } else { \n - EventBus . getDefault ( ) . post ( new NotificationEvents . NotificationsChanged ( true ) ) ; \n - } \n + SINGLE \n + buildNoteObjectFromPNPayloadAndSaveIt ( data ) ; \n + EventBus . getDefault ( ) . post ( new NotificationEvents . NotificationsChanged ( true ) ) ; \n + SINGLE \n + NotificationsActions . downloadNoteAndUpdateDB ( wpcomNoteID , \n + null , null ) ; \n \n String noteType = StringUtils . notNullStr ( data . getString ( PUSH_ARG_TYPE ) ) ;", "msg_token": "Donwload the note from the server immediately after a PN is received"} {"diff": " class WindowStateAnimator { \n \n SINGLE \n if ( mTmpSize . width ( ) < NUMBER0 ) { \n - Slog . w ( TAG , STRING0 + w + STRING1 + mTmpSize . width ( ) ) ; \n + if ( ! mWin . mLayoutNeeded ) Slog . w ( TAG , \n + STRING0 + w + STRING1 + mTmpSize . width ( ) ) ; \n mTmpSize . right = mTmpSize . left + NUMBER0 ; \n } \n if ( mTmpSize . height ( ) < NUMBER0 ) { \n - Slog . w ( TAG , STRING2 + w + STRING1 + mTmpSize . height ( ) ) ; \n + if ( ! mWin . mLayoutNeeded ) Slog . w ( TAG , \n + STRING2 + w + STRING1 + mTmpSize . height ( ) ) ; \n mTmpSize . bottom = mTmpSize . top + NUMBER0 ; \n }", "msg_token": "Don t log bad surface size before layout is done"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n class NewMailNotifications { \n private final NotificationController controller ; \n private final NotificationContentCreator contentCreator ; \n class WearNotifications extends BaseNotifications { \n int icon = R . drawable . ic_action_mark_as_read_dark ; \n String title = context . getString ( R . string . notification_action_mark_as_read ) ; \n \n - \n MessageReference messageReference = holder . content . messageReference ; \n int notificationId = holder . notificationId ; \n PendingIntent action = actionCreator . createMarkMessageAsReadPendingIntent ( messageReference , notificationId ) ;", "msg_token": "Add a little bit of documentation on summary vs stacked notifications"} {"diff": " public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { \n try { \n isReady . set ( getOutputBuffer ( ) . isReady ( ) ) ; \n } catch ( IOException e ) { \n - SINGLE \n - throw new IllegalStateException ( ) ; \n + getLog ( ) . debug ( STRING0 , e ) ; \n + error = true ; \n } \n } else if ( actionCode == ActionCode . NB_READ_INTEREST ) { \n registerForEvent ( true , false ) ;", "msg_token": "Fix a TODO"} {"diff": " public class ChunkedWriteHandler \n } \n \n @ override \n - public void read ( ChannelHandlerContext ctx ) { \n - ctx . read ( ) ; \n - } \n - \n - @ override \n public void write ( ChannelHandlerContext ctx , Object msg , ChannelPromise promise ) throws Exception { \n queue . add ( new PendingWrite ( msg , promise ) ) ; \n } \n public class ChunkedWriteHandler \n SINGLE \n doFlush ( ctx ) ; \n } \n + ctx . fireChannelWritabilityChanged ( ) ; \n } \n \n private void discard ( Throwable cause ) {", "msg_token": "Propagate channelWritabilityChanged through the pipeline after flushing"} {"diff": " public class OutputFormat \n { \n throw new WebApplicationException ( badRequest ( e ) ) ; \n } \n - throw new WebApplicationException ( serverError ( e ) ) ; \n + throw new WebApplicationException ( e , serverError ( e ) ) ; \n } \n finally \n {", "msg_token": "Improve error logging when sending HTTP error response"} {"diff": " public final class RoutingSlipDefinitionRenderer { \n \n public static void render ( StringBuilder buffer , ProcessorDefinition processor ) { \n RoutingSlipDefinition routingSlip = ( RoutingSlipDefinition ) processor ; \n - buffer . append ( STRING0 ) . append ( routingSlip . getShortName ( ) ) . append ( STRING1 ) . append ( routingSlip . getHeaderName ( ) ) \n + buffer . append ( STRING0 ) . append ( routingSlip . getShortName ( ) ) . append ( STRING1 ) . append ( routingSlip . getExpression ( ) ) \n . append ( STRING2 ) . append ( routingSlip . getUriDelimiter ( ) ) . append ( STRING3 ) ; \n } \n }", "msg_token": "Added dynamicRouter to the DSL"} {"diff": " public class PyRequirement { \n @ notnull \n private List < String > parse ( @ nullable String s ) { \n SINGLE \n + if ( s == null ) { \n + return Collections . emptyList ( ) ; \n + } \n final Pattern COMPONENT_RE = Pattern . compile ( STRING0 ) ; \n final List < String > results = new ArrayList < String > ( ) ; \n final Matcher matcher = COMPONENT_RE . matcher ( s ) ;", "msg_token": "Fixed NPE in version comparator inside PyRequirement"} {"diff": " public abstract class AbstractJavaFxPackager { \n final File tempUnzippedArtifactOutput ; \n try { \n tempUnzippedArtifactOutput = FileUtil . createTempDirectory ( STRING0 , STRING1 ) ; \n - ZipUtil . extract ( new File ( zipPath ) , tempUnzippedArtifactOutput , null ) ; \n - copyLibraries ( zipPath , tempUnzippedArtifactOutput ) ; \n + final File artifactOutputFile = new File ( zipPath ) ; \n + ZipUtil . extract ( artifactOutputFile , tempUnzippedArtifactOutput , null ) ; \n + copyLibraries ( artifactOutputFile . getName ( ) , tempUnzippedArtifactOutput ) ; \n } \n catch ( IOException e ) { \n registerJavaFxPackagerError ( e ) ;", "msg_token": "do not copy self in jar resources"} {"diff": " public class ModifierKeyDoubleClickHandler { \n resetState ( ) ; \n return false ; \n } \n - if ( ourOtherKeyWasPressed . get ( ) && Clock . getTime ( ) - ourLastTimePressed . get ( ) < NUMBER0 ) { \n + if ( myActionKeyCode == - NUMBER1 && ourOtherKeyWasPressed . get ( ) && Clock . getTime ( ) - ourLastTimePressed . get ( ) < NUMBER0 ) { \n resetState ( ) ; \n return false ; \n }", "msg_token": "adding carets on double Ctrl arrows is not triggered sometimes"} {"diff": " public abstract class ModificationStatement implements CQLStatement \n ColumnFamily updates = updateForKey ( key , clusteringPrefix , params ) ; \n ColumnFamily expected = buildConditions ( key , clusteringPrefix , params ) ; \n \n - ColumnFamily result = StorageProxy . cas ( keyspace ( ) , columnFamily ( ) , key , clusteringPrefix , expected , updates , options . getConsistency ( ) , options . getSerialConsistency ( ) ) ; \n + ColumnFamily result = StorageProxy . cas ( keyspace ( ) , \n + columnFamily ( ) , \n + key , \n + clusteringPrefix , \n + expected , \n + updates , \n + options . getSerialConsistency ( ) , \n + options . getConsistency ( ) ) ; \n return new ResultMessage . Rows ( buildCasResultSet ( key , result ) ) ; \n }", "msg_token": "Fix cas arguments order in MS executeWithCondition"} {"diff": " public class DlvApi { \n public boolean goroutine ; \n SINGLE \n public List < String > variables ; \n + SINGLE \n + public Object hitCount ; SINGLE \n + SINGLE \n + public long totalHitCount ; \n } \n \n SINGLE", "msg_token": "update DlvApi Breakpoint"} {"diff": " import NAMESPACE ; \n @ runwith ( Parameterized . class ) \n public class IterationWithAllReducerITCase extends TestBase2 { \n \n - private static final String INPUT = STRING0 + STRING1 + STRING2 + STRING3 + STRING4 + STRING5 + STRING6 + STRING7 ; \n + private static final String INPUT = STRING0 + STRING0 + STRING0 + STRING0 + STRING0 + STRING0 + STRING0 + STRING0 ; \n private static final String EXPECTED = STRING0 ; \n \n protected String dataPath ;", "msg_token": "Fix erroneous test case for AllReduce in iterations"} {"diff": " public class RelOptHiveTable extends RelOptAbstractTable { \n if ( m_hiveTblMetadata . isPartitioned ( ) ) { \n if ( partitionList == null ) { \n try { \n - List < Partition > parts = Hive . get ( ) . getPartitions ( m_hiveTblMetadata ) ; \n + List < Partition > parts = new ArrayList < Partition > ( \n + Hive . get ( ) . getAllPartitionsOf ( m_hiveTblMetadata ) ) ; \n List < Long > rowCounts = StatsUtils . getBasicStatForPartitions ( \n m_hiveTblMetadata , parts , StatsSetupConst . ROW_COUNT ) ; \n m_rowCount = StatsUtils . getSumIgnoreNegatives ( rowCounts ) ;", "msg_token": "Reading of partitioned table stats slows down explain Harish Butani via Gunther Hagleitner"} {"diff": " public final class Main { \n \n SINGLE \n SINGLE \n - private static final ImmutableSet < String > DEFAULT_IGNORE_GLOBS = ImmutableSet . of ( STRING0 ) ; \n + private static final ImmutableSet < String > DEFAULT_IGNORE_GLOBS = \n + ImmutableSet . of ( STRING0 , STRING1 , STRING2 ) ; \n \n private static final Logger LOG = Logger . get ( Main . class ) ;", "msg_token": "Add workspace data and scheme to the watchman ignore globs"} {"diff": " public class InspectionResultsView extends JPanel implements Disposable , Occuren \n ( ( InspectionTreeNode ) path . getLastPathComponent ( ) ) . ignoreElement ( myExcludedInspectionTreeNodesManager ) ; \n } \n } \n - myTree . queueUpdate ( ) ; \n + if ( myGlobalInspectionContext . getUIOptions ( ) . FILTER_RESOLVED_ITEMS ) { \n + InspectionResultsView . this . update ( ) ; \n + } else { \n + myTree . queueUpdate ( ) ; \n + } \n } \n \n @ override", "msg_token": "exclude action rebuild tree when filter excluded option is enabled"} {"diff": " public abstract class AbstractDatabase implements Database { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < SequenceDefinition > getSequences0 ( ) throws SQLException ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < TableDefinition > getTables0 ( ) throws SQLException ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < RoutineDefinition > getRoutines0 ( ) throws SQLException ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < PackageDefinition > getPackages0 ( ) throws SQLException ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < EnumDefinition > getEnums0 ( ) throws SQLException ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < UDTDefinition > getUDTs0 ( ) throws SQLException ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected abstract List < ArrayDefinition > getArrays0 ( ) throws SQLException ; \n }", "msg_token": "Fixed Javadoc links"} {"diff": " public class MetaContactChatSession \n sessionRenderer . setSelectedChatTransport ( chatTransport , false ) ; \n } \n \n - SINGLE \n + SINGLE \n + SINGLE \n if ( currentChatTransport == null ) \n { \n - currentChatTransport = chatTransports . get ( NUMBER0 ) ; \n + for ( ChatTransport ct : chatTransports ) \n + { \n + if ( ct . getStatus ( ) != null \n + && ct . getStatus ( ) . isOnline ( ) ) \n + { \n + currentChatTransport = ct ; \n + break ; \n + } \n + } \n + \n + SINGLE \n + if ( currentChatTransport == null ) \n + currentChatTransport = chatTransports . get ( NUMBER0 ) ; \n + \n sessionRenderer \n . setSelectedChatTransport ( currentChatTransport , false ) ; \n }", "msg_token": "Chooses online chat transport when adding or updating chat transports"} {"diff": " public class DnsResponseDecoder extends MessageToMessageDecoder < DatagramPacket > \n response . addQuestion ( decodeQuestion ( buf ) ) ; \n } \n if ( header . getResponseCode ( ) != NUMBER0 ) { \n - System . err . println ( STRING0 \n - + response . getQuestions ( ) . get ( NUMBER0 ) . name ( ) + STRING1 \n - + DnsResponseCode . valueOf ( header . getResponseCode ( ) ) ) ; \n + SINGLE \n + return response ; \n } \n for ( int i = NUMBER0 ; i < header . getReadAnswers ( ) ; i ++ ) { \n response . addAnswer ( decodeResource ( buf , allocator ) ) ;", "msg_token": "Fix bug in forked netty dns codec"} {"diff": " public final class ProxyHandler implements HttpHandler { \n final XnioExecutor . Key key = exchange . getIoThread ( ) . executeAfter ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - if ( exchange . isResponseStarted ( ) ) { \n - if ( exchange . getConnection ( ) . isOpen ( ) ) { \n - UndertowLogger . REQUEST_LOGGER . proxyRequestTimedOut ( exchange . getRequestURI ( ) ) ; \n - IoUtils . safeClose ( exchange . getConnection ( ) ) ; \n - } \n - } else { \n - exchange . setResponseCode ( NUMBER0 ) ; \n - exchange . endExchange ( ) ; \n - } \n ProxyConnection connectionAttachment = exchange . getAttachment ( CONNECTION ) ; \n if ( connectionAttachment != null ) { \n + SINGLE \n ClientConnection clientConnection = connectionAttachment . getConnection ( ) ; \n IoUtils . safeClose ( clientConnection ) ; \n + } else { \n + exchange . setResponseCode ( NUMBER0 ) ; \n + exchange . endExchange ( ) ; \n } \n } \n } , maxRequestTime , TimeUnit . MILLISECONDS ) ;", "msg_token": "Handle proxy timeout better"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "throw es CircuitBreakingException internally instead of the io crate one"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removing unused import"} {"diff": " public abstract class DefaultMessageHandler implements BuilderMessageHandler { \n return ! ( element instanceof PsiIdentifier ) || processor . execute ( ( PsiIdentifier ) element ) ; \n } \n } ; \n - return helper . processElementsWithWord ( processor1 , searchScope , identifier , searchContext , true ) ; \n + return helper . processElementsWithWord ( processor1 , searchScope , identifier , searchContext , true , false ) ; \n } \n \n private void addUsages ( PsiField psiField , Collection < PsiElement > usages , final boolean ignoreAccessScope ) throws ProcessCanceledException {", "msg_token": "do not search usages of removed constant fields in injected PSI"} {"diff": " \n package NAMESPACE ; \n \n - \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class CategoryNode { \n \n public static CategoryNode createCategoryTreeFromDB ( int blogId ) { \n List < String > stringCategories = WordPress . wpDB . loadCategories ( blogId ) ; \n - SINGLE \n + \n + SINGLE \n SparseArray < CategoryNode > categoryMap = new SparseArray < CategoryNode > ( ) ; \n CategoryNode rootCategory = new CategoryNode ( - NUMBER0 , - NUMBER0 , STRING0 ) ; \n CategoryNode currentRootNode ;", "msg_token": "Remove useless import"} {"diff": " public final class CFMetaData \n + STRING0 \n + STRING1 \n + STRING2 \n + + STRING3 \n + STRING4 \n + STRING5 ) ; \n \n public class SystemTable \n \n private static void setupVersion ( ) \n { \n - String req = STRING6 ; \n + String req = STRING7 ; \n IEndpointSnitch snitch = DatabaseDescriptor . getEndpointSnitch ( ) ; \n processInternal ( String . format ( req , LOCAL_CF , \n LOCAL_KEY , \n public class SystemTable \n QueryProcessor . CQL_VERSION . toString ( ) , \n Constants . VERSION , \n snitch . getDatacenter ( FBUtilities . getBroadcastAddress ( ) ) , \n - snitch . getRack ( FBUtilities . getBroadcastAddress ( ) ) ) ) ; \n + snitch . getRack ( FBUtilities . getBroadcastAddress ( ) ) , \n + DatabaseDescriptor . getPartitioner ( ) . getClass ( ) . getName ( ) ) ) ; \n } \n \n COMMENT", "msg_token": "Add partitioner to local system table for clients sake"} {"diff": " public class MainActivity extends Activity { \n protected void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n setContentView ( R . layout . activity_main ) ; \n + \n + SINGLE \n + \n }", "msg_token": "Started new demo"} {"diff": " public abstract class ProxyConnection implements Connection \n SQL_ERRORS . add ( STRING0 ) ; SINGLE \n SQL_ERRORS . add ( STRING1 ) ; SINGLE \n SQL_ERRORS . add ( STRING2 ) ; SINGLE \n + SQL_ERRORS . add ( STRING3 ) ; SINGLE \n } \n \n protected ProxyConnection ( final PoolEntry poolEntry , final Connection connection , final FastList < Statement > openStatements , final ProxyLeakTask leakTask , final long now , final boolean isReadOnly , final boolean isAutoCommit ) {", "msg_token": "exceeded maximum connect time to SQL_ERRORS"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class ShowStructureSettingsAction extends AnAction implements DumbAware { \n public class ShowStructureSettingsAction extends AnAction implements DumbAware { \n protected JComponent createSouthPanel ( ) { \n JComponent panel = super . createSouthPanel ( ) ; \n assert panel != null ; \n - panel . setBorder ( new CustomLineBorder ( Gray . _153 , NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 ) ) ; \n + CustomLineBorder line = new CustomLineBorder ( Gray . _153 , NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 ) ; \n + panel . setBorder ( new CompoundBorder ( line , new EmptyBorder ( NUMBER2 , NUMBER3 , NUMBER3 , NUMBER3 ) ) ) ; \n return panel ; \n } \n } . show ( ) ;", "msg_token": "add margins for buttons"} {"diff": " public class StatisticsModelImpl implements StatisticsModel { \n Element reportE = document . createElement ( STRING0 ) ; \n reportE . setAttribute ( STRING1 , entry . getKey ( ) . getName ( ) ) ; \n reportE . setAttribute ( STRING2 , entry . getValue ( ) ) ; \n - resultsE . appendChild ( reportE ) ; \n + reportsE . appendChild ( reportE ) ; \n } \n } \n modelE . appendChild ( reportsE ) ;", "msg_token": "Fix minor issue in serialization"} {"diff": " public class TransportClusterStatsAction extends TransportNodesOperationAction < C \n continue ; \n } \n for ( IndexShard indexShard : indexService ) { \n - logger . warn ( STRING0 + indexShard . shardId ( ) + STRING1 + indexShard . state ( ) ) ; \n if ( indexShard . routingEntry ( ) . active ( ) ) { \n SINGLE \n shardsStats . add ( new ShardStats ( indexShard , SHARD_STATS_FLAGS ) ) ;", "msg_token": "removed a left over debug log"} {"diff": " public class DrawableCompat { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public static void setTint ( Drawable drawable , int tint ) { \n IMPL . setTint ( drawable , tint ) ; \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DrawableCompat { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix doc links in DrawableCompat"} {"diff": " public class LL1Analyzer { \n { \n SINGLE \n ATNConfig c = new ATNConfig ( s , NUMBER0 , ctx ) ; \n - if ( lookBusy . contains ( c ) ) return ; \n - lookBusy . add ( c ) ; \n + if ( ! lookBusy . add ( c ) ) return ; \n \n if ( s instanceof RuleStopState ) { \n if ( ctx == null ) { \n public class ParserATNSimulator < Symbol > extends ATNSimulator { \n { \n if ( debug ) System . out . println ( STRING0 + config + STRING1 ) ; \n \n - if ( closureBusy . contains ( config ) ) return ; SINGLE \n - closureBusy . add ( config ) ; \n + if ( ! closureBusy . add ( config ) ) return ; SINGLE \n \n if ( config . state instanceof RuleStopState ) { \n SINGLE", "msg_token": "Combine calls to Set contains and Set add"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class MultiplexerPacketHandler { \n STRING0 ) ) ; \n sendErrorPacket ( route , PacketError . Condition . bad_request , extraError ) ; \n } \n - catch ( UnsupportedEncodingException e ) { \n + catch ( Exception e ) { \n Log . error ( STRING1 + route . getChildElement ( ) . asXML ( ) , e ) ; \n sendErrorPacket ( route , PacketError . Condition . internal_server_error , null ) ; \n }", "msg_token": "Do not close CM connection when client performs invalid operation"} {"diff": " public class MainActivity extends Activity implements \n startVpn ( ) ; \n } \n } else { \n - ApkUtils . uninstall ( MainActivity . this , STRING0 ) ; \n + if ( ApkUtils . isInstalled ( this , STRING0 ) ) { \n + new Thread ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + ApkUtils . uninstall ( MainActivity . this , STRING0 ) ; \n + } \n + } ) . start ( ) ; \n + } \n checkWifiRepeater ( ) ; \n checkPickAndPlay ( ) ; \n ConnectFreeInternetService . execute ( this ) ;", "msg_token": "run pm uninstall in new thread"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n \n public class Class extends Node { \n public class Class extends Node { \n if ( baseType . isClassType ( ) ) { \n classType . addSuper ( baseType ) ; \n } else if ( baseType . isUnionType ( ) ) { \n - classType . addSuper ( baseType . asUnionType ( ) . types . iterator ( ) . next ( ) ) ; \n + for ( Type parent : baseType . asUnionType ( ) . types ) { \n + classType . addSuper ( parent ) ; \n + } \n } else { \n Analyzer . self . putProblem ( base , base + STRING0 ) ; \n }", "msg_token": "add union types as parents"} {"diff": " public abstract class AbstractReplicatedMap extends ConcurrentHashMap implements \n memberAlive ( resp [ i ] . getSource ( ) ) ; \n } \n } catch ( ChannelException ce ) { \n - SINGLE \n + SINGLE \n FaultyMember [ ] faultyMembers = ce . getFaultyMembers ( ) ; \n for ( FaultyMember faultyMember : faultyMembers ) { \n memberDisappeared ( faultyMember . getMember ( ) ) ;", "msg_token": "Fix comment typo"} {"diff": " public class BareCommand extends ClasspathHandler { \n return meth ; \n } \n } \n + \n + SINGLE \n + meths = clazz . getMethods ( ) ; \n + for ( Method meth : meths ) { \n + if ( ( STRING0 + fieldName ) . toLowerCase ( ) . equals ( meth . getName ( ) . toLowerCase ( ) ) ) { \n + return meth ; \n + } \n + } \n + \n return null ; \n }", "msg_token": "When mapping system properties to options also consider overridden methods as valid candidates"} {"diff": " public class PathsFunctionalTest extends AbstractRestFunctionalTestBase \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n @ title ( STRING0 ) \n @ test", "msg_token": "removing graph doc will be superceeded by the graphviz generation"} {"diff": " public class DefaultJarFile extends AbstractBuildableModelElement implements Jar \n private File file ; \n \n public DefaultJarFile ( ComponentSpecIdentifier identifier ) { \n - super ( identifier , DefaultJarFile . class ) ; \n + super ( identifier , JarFile . class ) ; \n } \n \n @ override", "msg_token": "Fix public type for DefaultJarFile"} {"diff": " public class CircleImageView extends ImageView { \n setup ( ) ; \n } \n \n + @ override \n + public void setPadding ( int left , int top , int right , int bottom ) { \n + super . setPadding ( left , top , right , bottom ) ; \n + setup ( ) ; \n + } \n + \n + @ override \n + public void setPaddingRelative ( int start , int top , int end , int bottom ) { \n + super . setPaddingRelative ( start , top , end , bottom ) ; \n + setup ( ) ; \n + } \n + \n public int getBorderColor ( ) { \n return mBorderColor ; \n }", "msg_token": "Handle programmatic change of padding properly"} {"diff": " public class SAXUtils { \n throw new IllegalArgumentException ( STRING0 + pAttributeName ) ; \n } \n } \n + \n + public static String getAttribute ( final Attributes pAttributes , final String pAttributeName , final String pDefaultValue ) { \n + final String value = pAttributes . getValue ( STRING1 , pAttributeName ) ; \n + return ( value != null ) ? value : pDefaultValue ; \n + } \n + \n + public static String getAttributeOrThrow ( final Attributes pAttributes , final String pAttributeName ) { \n + final String value = pAttributes . getValue ( STRING1 , pAttributeName ) ; \n + if ( value != null ) { \n + return value ; \n + } else { \n + throw new IllegalArgumentException ( STRING0 + pAttributeName ) ; \n + } \n + } \n \n public static void appendAttribute ( final StringBuilder pStringBuilder , final String pName , final int pValue ) { \n appendAttribute ( pStringBuilder , pName , String . valueOf ( pValue ) ) ;", "msg_token": "Added SAXUtils getAttribute SaxUtils getAttributeOrThrow for Strings before there was only one for ints"} {"diff": " public class TestNode extends TomcatBaseTest { \n \n String result = res . toString ( ) ; \n \n - System . out . println ( result ) ; \n - \n Assert . assertTrue ( \n result . indexOf ( STRING0 ) > NUMBER0 ) ; \n }", "msg_token": "Remove the debug code"} {"diff": " public class DomFileIndex extends ScalarIndexExtension < String > { \n } \n \n public PersistentEnumerator . DataDescriptor < String > getKeyDescriptor ( ) { \n - return EnumeratorStringDescriptor . INSTANCE ; \n + return new EnumeratorStringDescriptor ( ) ; \n } \n \n public FileBasedIndex . InputFilter getInputFilter ( ) { \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class EnumeratorStringDescriptor implements PersistentEnumerator . DataDescriptor < String > { \n - public static final EnumeratorStringDescriptor INSTANCE = new EnumeratorStringDescriptor ( ) ; \n private final byte [ ] buffer = IOUtil . allocReadWriteUTFBuffer ( ) ; \n \n public int getHashCode ( final String value ) {", "msg_token": "don t use singleton for EnumeratorStringDescriptor because the object is stateful"} {"diff": " class CursorImpl < R extends Record > implements Cursor < R > { \n @ override \n public final boolean hasNext ( ) { \n if ( hasNext == null ) { \n - next = fetch ( ) ; \n + next = fetchOne ( ) ; \n hasNext = ( next != null ) ; \n } \n \n class CursorImpl < R extends Record > implements Cursor < R > { \n @ override \n public final R next ( ) { \n if ( hasNext == null ) { \n - return fetch ( ) ; \n + return fetchOne ( ) ; \n } \n \n R result = next ; \n class CursorImpl < R extends Record > implements Cursor < R > { \n return result ; \n } \n \n - private final R fetch ( ) { \n + private final R fetchOne ( ) { \n R record = null ; \n \n try {", "msg_token": "Renamed internal method"} {"diff": " public class JCacheCustomInterceptorTests { \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n static class TestCacheInterceptor extends JCacheInterceptor { \n \n @ override", "msg_token": "Suppress serial warning in JCacheCustomInterceptorTests"} {"diff": " public class Tile { \n BitmapRecycler recycler = mBitmapRecyclerReference . get ( ) ; \n if ( recycler != null ) { \n recycler . recycleBitmap ( mBitmap ) ; \n - } else { \n - mBitmap . recycle ( ) ; \n } \n } \n mBitmap = null ;", "msg_token": "remove else branch in Tile reset"} {"diff": " public class EntityResponse < E extends RecordTemplate > extends RecordTemplate \n return getStatus ( GetMode . STRICT ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public boolean hasErorr ( ) \n { \n + return hasError ( ) ; \n + } \n + \n + public boolean hasError ( ) \n + { \n return contains ( _errorField ) ; \n }", "msg_token": "Fix typo in ErrorResponse"} {"diff": " public class Constants { \n public static final String OS_VERSION = System . getProperty ( STRING0 ) ; \n public static final String JAVA_VENDOR = System . getProperty ( STRING1 ) ; \n public static final int VERSION_NODE = NUMBER0 ; \n - public static final int VERSION_EDGE = NUMBER0 ; \n + public static final int VERSION_EDGE = NUMBER1 ; \n public static final int VERSION_GEOMETRY = NUMBER0 ; \n public static final int VERSION_LOCATION_IDX = NUMBER0 ; \n COMMENT", "msg_token": "increased edge version as encoding changed"} {"diff": " public class AlarmInfo implements LocationPoint { \n if ( alarmInfo != null ) { \n alarmInfo . setLatLon ( loc . getLatitude ( ) , loc . getLongitude ( ) ) ; \n } \n - return null ; \n + return alarmInfo ; \n } \n \n public int updateDistanceAndGetPriority ( float time , float distance ) {", "msg_token": "Revert fix of alarm info it doesn t work as expected"} {"diff": " public class LanguageLevelProjectExtensionImpl extends LanguageLevelProjectExten \n } \n \n public void reloadProjectOnLanguageLevelChange ( final LanguageLevel languageLevel , final boolean forceReload ) { \n - if ( myProject . isOpen ( ) ) { \n + if ( myProject . isOpen ( ) && ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n myReloadProjectRequest = new Runnable ( ) { \n public void run ( ) { \n if ( myProject . isDisposed ( ) ) return ;", "msg_token": "do not request project reload if language level changed during a test"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public final class RateLimitedFSDirectory extends Directory { \n private final FSDirectory delegate ; \n \n public final class RateLimitedFSDirectory extends Directory { \n private final StoreRateLimiting . Listener rateListener ; \n \n public RateLimitedFSDirectory ( FSDirectory wrapped , StoreRateLimiting . Provider rateLimitingProvider , \n - StoreRateLimiting . Listener rateListener ) { \n + StoreRateLimiting . Listener rateListener ) { \n this . delegate = wrapped ; \n this . rateLimitingProvider = rateLimitingProvider ; \n this . rateListener = rateListener ; \n public final class RateLimitedFSDirectory extends Directory { \n private final StoreRateLimiting . Listener rateListener ; \n \n RateLimitedIndexOutput ( final RateLimiter rateLimiter , final StoreRateLimiting . Listener rateListener , final IndexOutput delegate ) { \n - SINGLE \n + SINGLE \n if ( delegate instanceof BufferedIndexOutput ) { \n bufferedDelegate = ( BufferedIndexOutput ) delegate ; \n this . delegate = delegate ;", "msg_token": "improve TODO comment"} {"diff": " public class ReactRootView extends SizeMonitoringFrameLayout implements RootView \n \n @ override \n public void requestDisallowInterceptTouchEvent ( boolean disallowIntercept ) { \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + if ( getParent ( ) != null ) { \n + getParent ( ) . requestDisallowInterceptTouchEvent ( disallowIntercept ) ; \n + } \n } \n \n @ override", "msg_token": "Fix requestDisallowInterceptTouchEvent for nested react native views"} {"diff": " public abstract class jOOQAbstractTest < \n } \n \n @ test \n + public void testWindowFunctions ( ) throws Exception { \n + new AggregateWindowFunctionTests ( this ) . testWindowFunctions ( ) ; \n + } \n + \n + @ test \n public void testStoredFunctions ( ) throws Exception { \n new RoutineAndUDTTests ( this ) . testStoredFunctions ( ) ; \n } \n public abstract class jOOQAbstractTest < \n } \n \n @ test \n - public void testWindowFunctions ( ) throws Exception { \n - new AggregateWindowFunctionTests ( this ) . testWindowFunctions ( ) ; \n - } \n - \n - @ test \n public void testPackage ( ) throws Exception { \n new RoutineAndUDTTests ( this ) . testPackage ( ) ; \n }", "msg_token": "Reordered some test methods"} {"diff": " public class PhotoViewerActivity extends SherlockFragmentActivity implements OnP \n \n @ override \n public void onBackPressed ( ) { \n - if ( null != mFilterGroup && mFilterGroup . getVisibility ( ) == View . VISIBLE ) { \n + if ( null != mFilterGroup && mFilterGroup . isShowing ( ) ) { \n hideFiltersView ( ) ; \n } else { \n super . onBackPressed ( ) ; \n public class FiltersRadioGroup extends RadioGroup implements AnimationListener { \n startAnimation ( mSlideOutBottomAnim ) ; \n } \n } \n + \n + public boolean isShowing ( ) { \n + return getVisibility ( ) == View . VISIBLE && getAnimation ( ) != mSlideOutBottomAnim ; \n + } \n \n public void onAnimationEnd ( Animation animation ) { \n if ( animation == mSlideOutBottomAnim ) {", "msg_token": "Fix Pressing back while filters are animating away"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removes an unused import statement"} {"diff": " public class XMLRuleHandler extends DefaultHandler { \n tokenLevelCaseSet = true ; \n tokenLevelCaseSensitive = YES . equals ( attrs . getValue ( CASE_SENSITIVE ) ) ; \n } else { \n + tokenLevelCaseSensitive = false ; \n tokenLevelCaseSet = false ; \n } \n }", "msg_token": "properly reset variable tokenLevelCaseSensitive"} {"diff": " public class FtpPollingConsumerTest extends FtpServerTestSupport { \n @ test \n public void testPollingConsumer ( ) throws Exception { \n MockEndpoint result = getMockEndpoint ( STRING0 ) ; \n - result . expectedBodiesReceived ( NUMBER0 ) ; \n + result . expectedMessageCount ( NUMBER1 ) ; \n result . expectedFileExists ( FTP_ROOT_DIR + STRING1 ) ; \n result . expectedFileExists ( FTP_ROOT_DIR + STRING2 ) ; \n result . expectedFileExists ( FTP_ROOT_DIR + STRING3 ) ; \n - result . expectedFileExists ( FTP_ROOT_DIR + STRING4 ) ; \n - result . expectedFileExists ( FTP_ROOT_DIR + STRING5 ) ; \n \n PollingConsumer consumer = context . getEndpoint ( getFtpUrl ( ) ) . createPollingConsumer ( ) ; \n consumer . start ( ) ; \n public class FtpPollingConsumerTest extends FtpServerTestSupport { \n sendFile ( getFtpUrl ( ) , STRING6 , STRING7 ) ; \n sendFile ( getFtpUrl ( ) , STRING8 , STRING9 ) ; \n sendFile ( getFtpUrl ( ) , STRING10 , STRING11 ) ; \n - sendFile ( getFtpUrl ( ) , STRING12 , STRING13 ) ; \n - sendFile ( getFtpUrl ( ) , STRING14 , STRING15 ) ; \n } \n \n }", "msg_token": "Fixed unit test"} {"diff": " public class GoUnresolvedReferenceInspection extends GoInspectionBase { \n @ override \n public void visitImportString ( @ notnull GoImportString o ) { \n if ( o . getTextLength ( ) < NUMBER0 ) return ; \n + if ( STRING0 . equals ( o . getPath ( ) ) ) return ; \n PsiReference [ ] references = o . getReferences ( ) ; \n for ( final PsiReference reference : references ) { \n if ( reference instanceof FileReference ) {", "msg_token": "Do not compain about C imports"} {"diff": " public class Robolectric { \n return result ; \n } \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public interface Anything { \n - } \n } \n public class RobolectricWiringTest { \n Class < ? > implementedClass = annotation . value ( ) ; \n String implementedClassName = implementedClass . getName ( ) ; \n \n - if ( implementedClassName . equals ( Robolectric . Anything . class . getName ( ) ) || \n - implementedClassName . equals ( void . class . getName ( ) ) ) { \n + if ( implementedClassName . equals ( void . class . getName ( ) ) ) { \n return ; \n }", "msg_token": "Remove deprecated Robolectric Anything interface"} {"diff": " public class OServer { \n } \n \n for ( OServerPluginInfo h : getPlugins ( ) ) \n - if ( h . getInstance ( ) . getClass ( ) . equals ( iPluginClass ) ) \n + if ( h . getInstance ( ) != null && h . getInstance ( ) . getClass ( ) . equals ( iPluginClass ) ) \n return ( RET ) h . getInstance ( ) ; \n \n return null ;", "msg_token": "Fixed NPE on asking for a plugin configured but disabled"} {"diff": " public class AlertsController extends AuthenticatedController { \n } catch ( IOException e ) { \n return status ( NUMBER0 , views . html . errors . error . render ( ApiClient . ERROR_MSG_IO , e , request ( ) ) ) ; \n } catch ( APIException e ) { \n - String message = STRING0 + e . getHttpCode ( ) + STRING1 ; \n - return status ( NUMBER0 , views . html . errors . error . render ( message , e , request ( ) ) ) ; \n + flash ( STRING2 , STRING3 + e . getMessage ( ) ) ; \n + return redirect ( routes . AlertsController . index ( streamId ) ) ; \n } \n }", "msg_token": "Showing error flash instead of full error page when dummy alerting fails"} {"diff": " final class BackStackRecord extends FragmentTransaction implements \n if ( op . removed != null ) { \n for ( int i = NUMBER0 ; i < op . removed . size ( ) ; i ++ ) { \n Fragment old = op . removed . get ( i ) ; \n - f . mImmediateActivity = mManager . mActivity ; \n + old . mImmediateActivity = mManager . mActivity ; \n mManager . addFragment ( old , false ) ; \n } \n }", "msg_token": "Set activity for correct fragment when popping backstack"} {"diff": " public class JarHandler implements FileSystemInterface { \n child . delete ( this ) ; \n } \n \n + root . markDirtyRecursively ( ) ; \n RefreshQueue . getInstance ( ) . refresh ( false , true , null , root ) ; \n } \n catch ( IOException e ) {", "msg_token": "Fix jar reload"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class EmittingRequestLogger implements RequestLogger \n return request . getRemoteAddr ( ) ; \n } \n \n + @ jsonproperty ( STRING0 ) \n + public QueryStats getQueryStats ( ) \n + { \n + return request . getQueryStats ( ) ; \n + } \n + \n @ override \n public boolean isSafeToBuffer ( ) \n {", "msg_token": "actually emit query stats"} {"diff": " public class RDFBlueprintsHandler implements RDFHandler , Iterator < HadoopElement > \n for ( final String property : configuration . getStringCollection ( RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_AS_PROPERTIES ) ) { \n this . asProperties . add ( property . trim ( ) ) ; \n } \n - this . parser = Rio . createParser ( formats . get ( configuration . get ( RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_FORMAT ) ) ) ; \n + \n + String formatName = configuration . get ( RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_FORMAT ) ; \n + if ( null == formatName ) { \n + throw new RuntimeException ( STRING0 + RDFInputFormat . HADOOP_GRAPH_INPUT_RDF_FORMAT ) ; \n + } \n + RDFFormat format = formats . get ( formatName ) ; \n + if ( null == format ) { \n + throw new RuntimeException ( STRING1 + formatName ) ; \n + } \n + this . parser = Rio . createParser ( format ) ; \n + \n this . parser . setRDFHandler ( this ) ; \n this . parser . setDatatypeHandling ( RDFParser . DatatypeHandling . IGNORE ) ; \n }", "msg_token": "Added error handling for invalid RDF parameters Faunus Titan Hadoop"} {"diff": " public class AtmosphereResponse extends HttpServletResponseWrapper { \n } \n } catch ( Exception ex ) { \n handleException ( ex ) ; \n + throw new RuntimeException ( ex ) ; \n } \n return this ; \n }", "msg_token": "Re throw the exception"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class RequestBuilder implements RequestInterceptor . RequestFacade { \n } else { \n Header header = new Header ( STRING0 , contentTypeHeader ) ; \n if ( headers == null ) { \n - headers = Arrays . asList ( header ) ; \n + headers = Collections . singletonList ( header ) ; \n } else { \n headers . add ( header ) ; \n }", "msg_token": "Favor an immutable singleton list over immutable list view"} {"diff": " class ProxyThread implements Runnable { \n \n SINGLE \n } catch ( HttpException e ) { \n - System . out . println ( STRING0 ) ; \n + SINGLE \n throw e ; \n } catch ( IOException e ) { \n msg . setResponseBody ( STRING1 + e . getLocalizedMessage ( ) ) ; \n class ProxyThread implements Runnable { \n httpOut . write ( msg . getResponseBody ( ) . getBytes ( ) ) ; \n httpOut . flush ( ) ; \n } \n - \n - System . out . println ( STRING2 + e . getLocalizedMessage ( ) ) ; \n + \n SINGLE \n } \n } SINGLE", "msg_token": "removed debugging code"} {"diff": " public class RatpackWebContext implements WebContext { \n \n @ override \n public String getFullRequestURL ( ) { \n - return context . getRequest ( ) . getUri ( ) ; \n + final PublicAddress publicAddress = context . get ( PublicAddress . class ) ; \n + return publicAddress . getAddress ( context ) . toString ( ) + context . getRequest ( ) . getUri ( ) ; \n } \n \n public void sendResponse ( RequiresHttpAction action ) {", "msg_token": "the getFullRequestUrl should return the scheme host port as well"} {"diff": " public class SelectBox < T > extends Widget implements Disableable { \n setWidth ( SelectBox . this . getWidth ( ) ) ; \n setHeight ( height ) ; \n \n + validate ( ) ; \n scrollToCenter ( NUMBER0 , list . getHeight ( ) - getSelectedIndex ( ) * itemHeight - itemHeight / NUMBER1 , NUMBER0 , NUMBER0 ) ; \n updateVisualScroll ( ) ; \n \n public class UITest extends GdxTest { \n dropdown . setItems ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , \n STRING9 , STRING10 , STRING11 , STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , STRING18 , STRING19 , \n STRING20 , STRING21 , STRING22 , STRING23 , STRING24 , STRING25 , STRING26 , STRING27 ) ; \n + dropdown . setSelected ( STRING22 ) ; \n Image imageActor = new Image ( image2 ) ; \n ScrollPane scrollPane = new ScrollPane ( imageActor ) ; \n List list = new List ( skin ) ;", "msg_token": "Fixed scroll to selected item"} {"diff": " class ReplSyncFetcher extends AbstractExecutionThreadService { \n boolean delivered = false ; \n while ( ! delivered ) { \n try { \n - LOGGER . info ( STRING0 , nextOp ) ; \n + LOGGER . debug ( STRING0 , nextOp ) ; \n callback . deliver ( nextOp ) ; \n delivered = true ; \n opsReadCounter ++ ;", "msg_token": "Changed a log statment from info to debug"} {"diff": " public abstract class AbstractItem < Item extends AbstractItem < ? , ? > , VH extends R \n holder . itemView . setTag ( this ) ; \n } \n \n + @ override \n + public void unbindView ( VH holder ) { \n + \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "implement unbind in AbstractItem"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TextEditingTarget implements \n String newCode = YamlFrontMatter . applyFrontMatter ( code , yaml ) ; \n if ( ! code . equals ( newCode ) ) \n { \n - docDisplay_ . setCode ( code , true ) ; \n + docDisplay_ . setCode ( newCode , true ) ; \n updateRmdFormatList ( ) ; \n } \n }", "msg_token": "apply new front matter correctly fix eclipse warnings"} {"diff": " public abstract class AbstractClient implements Closeable { \n COMMENT \n COMMENT \n public synchronized void disconnect ( ) { \n - if ( mConnected ) { \n + beforeDisconnect ( ) ; \n + if ( mConnected && mProtocol != null ) { \n LOG . debug ( STRING0 , getServiceName ( ) , mMode , mAddress ) ; \n + mProtocol . getTransport ( ) . close ( ) ; \n mConnected = false ; \n } \n - try { \n - beforeDisconnect ( ) ; \n - if ( mProtocol != null ) { \n - mProtocol . getTransport ( ) . close ( ) ; \n - } \n - } finally { \n - afterDisconnect ( ) ; \n - } \n + afterDisconnect ( ) ; \n } \n \n COMMENT", "msg_token": "Fixing a possible resource leak in AbstractClient"} {"diff": " public class XValueChildrenList { \n public XValue getValue ( int i ) { \n return myValues . get ( i ) ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - public boolean isAlreadySorted ( ) { \n - return false ; \n - } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setAlreadySorted ( boolean alreadySorted ) { \n - } \n - } \n + }", "msg_token": "remove deprecated methods"} {"diff": " public class HumanoidRagdollPreset extends RagdollPreset { \n \n boneMap . put ( STRING0 , new JointPreset ( NUMBER0 , - FastMath . QUARTER_PI , FastMath . QUARTER_PI , - FastMath . QUARTER_PI , FastMath . QUARTER_PI , - FastMath . QUARTER_PI ) ) ; \n \n - boneMap . put ( STRING1 , new JointPreset ( FastMath . HALF_PI , - FastMath . QUARTER_PI , NUMBER0 , NUMBER0 , FastMath . PI , - FastMath . QUARTER_PI ) ) ; \n + boneMap . put ( STRING1 , new JointPreset ( FastMath . HALF_PI , - FastMath . QUARTER_PI , NUMBER0 , NUMBER0 , FastMath . HALF_PI , - FastMath . QUARTER_PI ) ) ; \n \n boneMap . put ( STRING2 , new JointPreset ( FastMath . HALF_PI , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ;", "msg_token": "fixed shoulder joint limit"} {"diff": " public class RoutePerformanceTest extends ContextTestSupport { \n \n long delta = System . nanoTime ( ) - start ; \n \n - LOG . debug ( STRING0 + delta + STRING1 ) ; \n - LOG . debug ( STRING0 + delta / NUMBER0 + STRING2 ) ; \n + LOG . info ( STRING0 + delta + STRING1 ) ; \n + LOG . info ( STRING0 + delta / NUMBER0 + STRING2 ) ; \n } \n \n @ override", "msg_token": "Used Log info to print the output message"} {"diff": " public class DynamicServerListLoadBalancer < T extends Server > extends \n this . serverListImpl = niwsServerList ; \n } \n \n - @ override \n - public void setPing ( IPing ping ) { \n - this . ping = ping ; \n - } \n - \n public ServerListFilter < T > getFilter ( ) { \n return filter ; \n }", "msg_token": "Removed overriding of BaseLoadBalancer setPing from DynamicServerListLoadBalancer"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class DescriptorClientMain { \n \n - @ ejb \n private static AppClientSingletonRemote appClientSingletonRemote ; \n \n private static String envEntry ;", "msg_token": "revert unintentional change to DescriptorClientMain"} {"diff": " public abstract class PlaybackControlGlue { \n throw new IllegalStateException ( STRING0 ) ; \n } \n mFragment . setOnItemViewClickedListener ( mOnItemViewClickedListener ) ; \n - if ( mFragment . getInputEventListener ( ) != null ) { \n + if ( mFragment . getInputEventHandler ( ) != null ) { \n throw new IllegalStateException ( STRING1 ) ; \n } \n mFragment . setInputEventHandler ( mInputEventHandler ) ; \n public class PlaybackOverlayFragment extends DetailsFragment { \n COMMENT \n COMMENT \n COMMENT \n - public final InputEventHandler getInputEventListener ( ) { \n + public final InputEventHandler getInputEventHandler ( ) { \n return mInputEventHandler ; \n } \n \n public class PlaybackOverlaySupportFragment extends DetailsSupportFragment { \n COMMENT \n COMMENT \n COMMENT \n - public final InputEventHandler getInputEventListener ( ) { \n + public final InputEventHandler getInputEventHandler ( ) { \n return mInputEventHandler ; \n }", "msg_token": "Rename getInputEventListener to getInputEventHandler"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class UndoCommand \n change . redo ( editor , context ) ; \n } \n \n - editor . getCaretModel ( ) . moveToOffset ( endOffset ) ; \n + SINGLE \n + MotionGroup . moveCaret ( editor , context , endOffset ) ; \n } \n \n public void undo ( Editor editor , DataContext context ) \n public class UndoCommand \n change . undo ( editor , context ) ; \n } \n \n - editor . getCaretModel ( ) . moveToOffset ( startOffset ) ; \n + SINGLE \n + MotionGroup . moveCaret ( editor , context , startOffset ) ; \n } \n \n public String toString ( )", "msg_token": "Move cursor properly"} {"diff": " public final class PathImpl implements Path \n private final Relationship [ ] path ; \n private final Node end ; \n \n - public PathImpl ( Node start , Relationship [ ] path , Node end ) \n - { \n - this . start = start ; \n - this . path = path ; \n - this . end = end ; \n - } \n - \n private PathImpl ( Builder left , Builder right ) \n { \n Node endNode = null ;", "msg_token": "Remove unused code"} {"diff": " public class HttpConnection extends AbstractConnection implements Runnable , Http \n @ override \n protected void onCompleteSuccess ( ) \n { \n - Callback cb = _callback ; \n - _info = null ; \n - _content = null ; \n - _lastContent = false ; \n releaseHeader ( ) ; \n - _callback = null ; \n + _callback . succeeded ( ) ; \n if ( _shutdownOut ) \n getEndPoint ( ) . shutdownOutput ( ) ; \n - cb . succeeded ( ) ; \n } \n \n @ override \n public void onCompleteFailure ( final Throwable x ) \n { \n - Callback cb = _callback ; \n - _info = null ; \n - _content = null ; \n - _lastContent = false ; \n releaseHeader ( ) ; \n - _callback = null ; \n + failedCallback ( _callback , x ) ; \n if ( _shutdownOut ) \n getEndPoint ( ) . shutdownOutput ( ) ; \n - failedCallback ( cb , x ) ; \n } \n \n @ override", "msg_token": "Removed unnecessary reset of fields from onCompleteSuccess and"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n public class TestEarlyStoppingSpark extends BaseSparkTest { \n \n - @ before \n - public void setUp ( ) { \n - CudaEnvironment . getInstance ( ) . getConfiguration ( ) . enableDebug ( true ) . allowMultiGPU ( true ) ; \n - } \n - \n @ test \n public void testEarlyStoppingIris ( ) { \n MultiLayerConfiguration conf = new NeuralNetConfiguration . Builder ( )", "msg_token": "remove cuda specific code from test"} {"diff": " public final class DHistogram extends Iced { \n SINGLE \n int xbins = isInt == NUMBER0 ? nbins_cats : nbins ; \n if ( isInt > NUMBER1 && maxEx - min <= xbins ) { \n - assert ( ( long ) min ) == min ; SINGLE \n + assert ( ( long ) min ) == min : STRING0 + min + STRING1 + min + STRING2 ; SINGLE \n xbins = ( char ) ( ( long ) maxEx - ( long ) min ) ; SINGLE \n _step = FLOAT0 ; SINGLE \n } else {", "msg_token": "Add message to assertion for debugging"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ beta \n @ gwtcompatible \n public abstract class Escaper { \n SINGLE \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ beta \n @ gwtcompatible \n public final class UrlEscapers { \n private UrlEscapers ( ) { }", "msg_token": "Remove Beta from Escaper and UrlEscapers"} {"diff": " public final class Errors implements Serializable { \n } else { \n throw new AssertionError ( ) ; \n } \n + } else { \n + fmt . format ( STRING0 , convert ( dependency . getKey ( ) ) ) ; \n } \n - continue ; \n } \n \n fmt . format ( STRING1 , sourceToString ( source ) ) ;", "msg_token": "Restoring a missing at statement in the Errors message"} {"diff": " final class FragmentManagerImpl extends FragmentManager { \n throw new SuperNotCalledException ( STRING0 + f \n + STRING1 ) ; \n } \n + f . mSavedFragmentState = null ; \n + f . mSavedViewState = null ; \n } \n } \n } else if ( f . mState > newState ) {", "msg_token": "Clear saved state after it is no longer needed"} {"diff": " class NioDatagramWorker implements Runnable { \n } catch ( final AsynchronousCloseException e ) { \n SINGLE \n channel . currentWriteEvent = evt ; \n - channel . inWriteNowLoop = false ; \n } catch ( final Throwable t ) { \n channel . currentWriteEvent = null ; \n channel . inWriteNowLoop = false ;", "msg_token": "Removed unnecessary assignment"} {"diff": " public class MessageView extends FrameLayout { \n public final static int THUMBNAIL_SIZE = NUMBER0 ; \n \n public static Bitmap getThumbnail ( ContentResolver cr , Uri uri ) { \n - Log . e ( MessageView . class . getSimpleName ( ) , STRING0 + uri ) ; \n + SINGLE \n if ( IocVfs . isVfsScheme ( uri . getScheme ( ) ) ) { \n return IocVfs . getThumbnailVfs ( cr , uri ) ; \n }", "msg_token": "removed debug log leaking file name"} {"diff": " public class RxPermissions { \n } \n list . add ( subject ) ; \n } \n + \n if ( ! unrequestedPermissions . isEmpty ( ) ) { \n - startShadowActivity ( permissions ) ; \n + startShadowActivity ( unrequestedPermissions . toArray ( new String [ ] { } ) ) ; \n } \n return Observable . concat ( Observable . from ( list ) ) ; \n }", "msg_token": "Fix bug in startShadow params"} {"diff": " public class DefaultResolvedConfigurationBuilder implements ResolvedConfiguratio \n } \n \n public ResolvedDependency newResolvedDependency ( ModuleVersionIdentifier id , String configurationName ) { \n + SINGLE \n + SINGLE \n + SINGLE \n DefaultResolvedDependency d = new DefaultResolvedDependency ( id , configurationName ) ; \n store . allDependencies . put ( d . getId ( ) , d ) ; \n return d ;", "msg_token": "Added a comment"} {"diff": " public class HyperLogLogOperators \n { \n return slice ; \n } \n + \n + @ scalaroperator ( CAST ) \n + @ sqltype ( StandardTypes . HYPER_LOG_LOG ) \n + public static Slice castFromVarbinary ( @ sqltype ( StandardTypes . VARBINARY ) Slice slice ) \n + { \n + return slice ; \n + } \n }", "msg_token": "Add cast from varbinary to HLL"} {"diff": " public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler \n } \n \n if ( SimpMessageType . CONNECT . equals ( messageType ) ) { \n - logger . debug ( STRING0 + sessionId ) ; \n + logger . debug ( STRING0 + sessionId + \n + STRING1 + this . connectionHandlers . size ( ) ) ; \n headers . setLogin ( this . clientLogin ) ; \n headers . setPasscode ( this . clientPasscode ) ; \n if ( getVirtualHost ( ) != null ) { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SubProtocolWebSocketHandler \n @ override \n public void afterConnectionEstablished ( WebSocketSession session ) throws Exception { \n this . sessions . put ( session . getId ( ) , session ) ; \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING2 + session . getId ( ) + \n + STRING3 + this . sessions . size ( ) ) ; \n + } \n findProtocolHandler ( session ) . afterSessionStarted ( session , this . clientInboundChannel ) ; \n }", "msg_token": "Add messages for number of active sessions connections"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - class CoffeeApp implements Runnable { \n + public class CoffeeApp implements Runnable { \n @ inject CoffeeMaker coffeeMaker ; \n \n @ override public void run ( ) {", "msg_token": "Need at least one public API for javadoc to run during release"} {"diff": " public class RealmTest extends AndroidTestCase { \n return chars_array ; \n } \n \n - public void randomCharacters ( ) { \n + public void testRandomCharacters ( ) { \n List < String > chars_array = getRandomArray ( ) ; \n \n Random random = new Random ( ) ; \n public class RealmTest extends AndroidTestCase { \n } \n } \n \n - public void testRandomCharactersLoop ( ) { \n - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n - randomCharacters ( ) ; \n - } \n - } \n - \n public void testReferenceCounting ( ) { \n SINGLE \n try {", "msg_token": "removed loop test"} {"diff": " public class JobCollectContext implements ExecutionSubContext , RowUpstream , Exec \n \n shardQueryContext . addCallback ( new RemoveQueryContextCallback ( jobSearchContextId ) ) ; \n EngineSearcherDelegate searcherDelegate = acquireSearcher ( shardQueryContext . indexShard ( ) ) ; \n - shardQueryContext . searcher ( searcherDelegate ) ; \n + try { \n + shardQueryContext . searcher ( searcherDelegate ) ; \n + } catch ( Exception e ) { \n + SINGLE \n + shardQueryContext . close ( ) ; \n + throw e ; \n + } \n \n if ( collectNode . keepContextForFetcher ( ) ) { \n JobFetchShardContext shardFetchContext = new JobFetchShardContext (", "msg_token": "close collect query context if exception occurs on collector instantiation"} {"diff": " public class CoreMapNodePattern extends NodePattern < CoreMap > { \n return Collections . unmodifiableList ( annotationPatterns ) ; \n } \n \n - private static final Pattern LITERAL_PATTERN = Pattern . compile ( STRING0 ) ; \n + SINGLE \n + private static final Pattern LITERAL_PATTERN = Pattern . compile ( STRING1 ) ; \n public static NodePattern < String > newStringRegexPattern ( String regex , int flags ) { \n boolean isLiteral = ( ( flags & Pattern . LITERAL ) != NUMBER0 ) || LITERAL_PATTERN . matcher ( regex ) . matches ( ) ; \n if ( isLiteral ) {", "msg_token": "Fix TextFileAnnotationSource to handle lines with eol correctly"} {"diff": " public class VolumePanel extends Handler implements OnSeekBarChangeListener , Vie \n R . drawable . ic_audio_phone , \n R . drawable . ic_audio_phone , \n false ) , \n + AlarmStream ( AudioManager . STREAM_ALARM , \n + R . string . volume_alarm , \n + R . drawable . ic_audio_alarm , \n + R . drawable . ic_audio_alarm_mute , \n + false ) , \n MediaStream ( AudioManager . STREAM_MUSIC , \n R . string . volume_icon_description_media , \n R . drawable . ic_audio_vol , \n public class VolumePanel extends Handler implements OnSeekBarChangeListener , Vie \n StreamResources . RingerStream , \n StreamResources . VoiceStream , \n StreamResources . MediaStream , \n - StreamResources . NotificationStream \n + StreamResources . NotificationStream , \n + StreamResources . AlarmStream \n } ; \n \n COMMENT", "msg_token": "Add alarm volume to the list of volumes in the volume overlay"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class MBeanFactory { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public MBeanFactory ( ) {", "msg_token": "Allow Checkstyle s unused imports test to be used with the o a catalina mbeans package"} {"diff": " package NAMESPACE ; \n public class Version { \n \n public static final int MAJOR = NUMBER0 ; \n - public static final int MINOR = NUMBER0 ; \n + public static final int MINOR = NUMBER1 ; \n } \n public class SilverGhostFacade { \n } \n } \n \n + if ( allClassNames . contains ( STRING0 ) ) { \n + return true ; \n + } \n + \n for ( String classEntry : allDexNames ) { \n if ( ! classEntry . startsWith ( STRING1 ) ) { \n return true ;", "msg_token": "added custom dex condition next version"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class JDTCompiler extends org . apache . jasper . compiler . Compiler {", "msg_token": "Remove another generic author tag"} {"diff": " abstract class ASTBinOp extends ASTOp { \n if ( fr1 != null ) { \n if ( fr0 . numCols ( ) != fr1 . numCols ( ) || \n fr0 . numRows ( ) != fr1 . numRows ( ) ) \n - throw new IllegalArgumentException ( STRING0 + fr0 + STRING1 + fr1 ) ; \n + throw new IllegalArgumentException ( STRING2 + fr0 . numRows ( ) + STRING3 + fr0 . numCols ( ) + STRING4 + fr1 . numRows ( ) + STRING3 + fr1 . numCols ( ) ) ; \n fr = new Frame ( fr0 ) . add ( fr1 , true ) ; \n } else { \n fr = fr0 ;", "msg_token": "improve IAE message when frames incompatible"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Removed unused import"} {"diff": " public class Message extends AbstractEntity { \n && message . getEncryption ( ) != Message . ENCRYPTION_PGP \n && this . getType ( ) == message . getType ( ) \n && this . getEncryption ( ) == message . getEncryption ( ) \n + && this . getCounterpart ( ) != null \n && this . getCounterpart ( ) . equals ( message . getCounterpart ( ) ) \n && ( message . getTimeSent ( ) - this . getTimeSent ( ) ) <= ( Config . MESSAGE_MERGE_WINDOW * NUMBER0 ) && ( ( this \n . getStatus ( ) == message . getStatus ( ) || ( ( this . getStatus ( ) == Message . STATUS_SEND || this", "msg_token": "fixed null pointer in message merger"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests { \n assertThat ( this . context ) . isNotNull ( ) ; \n } \n \n - @ springbootconfiguration \n + @ testconfiguration \n static class Config { \n \n } \n final class SpringBootConfigurationFinder { \n Set < BeanDefinition > components = this . scanner . findCandidateComponents ( source ) ; \n if ( ! components . isEmpty ( ) ) { \n Assert . state ( components . size ( ) == NUMBER0 , \n - STRING0 ) ; \n + STRING1 \n + + components ) ; \n return ClassUtils . resolveClassName ( \n components . iterator ( ) . next ( ) . getBeanClassName ( ) , null ) ; \n }", "msg_token": "Fix failing tests"} {"diff": " public class Activity extends ContextThemeWrapper \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify documentation about when Activity onCreateNavigateUpTaskStack"} {"diff": " public class GitHistoryUtilsTest extends GitTest { \n assertEquals ( revisionNumber . getTimestamp ( ) , GitTestRevision . gitTimeStampToDate ( output [ NUMBER0 ] ) ) ; \n } \n \n - @ test \n + @ test ( enabled = false ) \n public void testGetLastRevisionForExistingFile ( ) throws Exception { \n final ItemLatestState state = GitHistoryUtils . getLastRevision ( myProject , bfilePath ) ; \n assertTrue ( state . isItemExists ( ) ) ; \n public class GitHistoryUtilsTest extends GitTest { \n } \n \n SINGLE \n - SINGLE \n + @ test ( enabled = false ) \n public void testGetLastRevisionForNonExistingFile ( ) throws Exception { \n myRepo . config ( STRING0 , STRING1 ) ; \n myRepo . config ( STRING2 , STRING3 ) ; \n public class GitHistoryUtilsTest extends GitTest { \n assertCommitsEqualToTestRevisions ( gitCommits , myRevisionsAfterRename ) ; \n COMMENT \n \n - @ test \n + @ test ( enabled = false ) \n public void testHashesWithParents ( ) throws Exception { \n final int expectedSize = myRevisionsAfterRename . size ( ) ;", "msg_token": "temporary disabled failing tests"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n SINGLE \n public class LazyScriptClassMemberScope extends LazyClassMemberScope { \n super ( resolveSession , declarationProvider , thisClass , trace ) ; \n } \n \n + @ notnull \n + @ override \n + protected Collection < DeclarationDescriptor > computeExtraDescriptors ( ) { \n + return KotlinPackage . plus ( \n + super . computeExtraDescriptors ( ) , \n + getProperties ( Name . identifier ( ScriptDescriptor . LAST_EXPRESSION_VALUE_FIELD_NAME ) ) \n + ) ; \n + } \n + \n @ override \n protected void getNonDeclaredProperties ( @ notnull Name name , @ notnull Set < VariableDescriptor > result ) { \n super . getNonDeclaredProperties ( name , result ) ;", "msg_token": "Add rv property to getAllDescriptors in script classes"} {"diff": " public class ContextCompat { \n COMMENT \n COMMENT \n COMMENT \n - public final File getNoBackupFilesDir ( Context context ) { \n + public static final File getNoBackupFilesDir ( Context context ) { \n final int version = Build . VERSION . SDK_INT ; \n if ( version >= NUMBER0 ) { \n return ContextCompatApi21 . getNoBackupFilesDir ( context ) ;", "msg_token": "ContextCompat should be non instantiable all static methods"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n + @ documented \n @ retention ( RetentionPolicy . RUNTIME ) \n public @ interface Nullable { }", "msg_token": "made Nullable Documented"} {"diff": " public class PhoneWindow extends Window implements MenuBuilder . Callback { \n int bottom = ( int ) mOutsetBottom . getDimension ( metrics ) ; \n WindowInsets newInsets = insets . replaceSystemWindowInsets ( \n insets . getSystemWindowInsetLeft ( ) , insets . getSystemWindowInsetTop ( ) , \n - insets . getSystemWindowInsetRight ( ) , \n - insets . getSystemWindowInsetBottom ( ) + bottom ) ; \n + insets . getSystemWindowInsetRight ( ) , bottom ) ; \n return super . dispatchApplyWindowInsets ( newInsets ) ; \n } else { \n return super . dispatchApplyWindowInsets ( insets ) ;", "msg_token": "Fix double chin issue where bottom inset is applied twice"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added missing license header"} {"diff": " public abstract class CacheOperation implements BasicOperation { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ override \n public class GenericMessageEndpointManager implements SmartLifecycle , Initializi \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setAutoStartup ( boolean autoStartup ) { \n this . autoStartup = autoStartup ;", "msg_token": "Fix typo in javadoc"} {"diff": " public class DeepLearningModel extends Model < DeepLearningModel , DeepLearningModel \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public enum Loss { \n Automatic , Quadratic , CrossEntropy , ModifiedHuber , Huber , Absolute , Quantile \n public abstract class Neurons { \n case ModifiedHuber : \n g = - NUMBER0 * _dist . negHalfGradient ( t , y ) * ( NUMBER1 - y ) * y ; \n break ; \n + case Quadratic : \n + g = ( y - t ) * ( FLOAT0 - y ) * y ; \n + break ; \n default : \n throw H2O . unimpl ( ) ; \n } \n public class TestCase { \n case STRING0 : \n dlParams . _loss = DeepLearningModel . DeepLearningParameters . Loss . Huber ; \n break ; \n + case STRING1 : \n + dlParams . _loss = DeepLearningModel . DeepLearningParameters . Loss . ModifiedHuber ; \n + break ; \n case STRING2 : \n dlParams . _loss = DeepLearningModel . DeepLearningParameters . Loss . Absolute ; \n break ;", "msg_token": "Add back quadratic loss for DL DeepLearningIrisTest was using it"} {"diff": " public class ProcessListUtil { \n String name = PathUtil . getFileName ( command ) ; \n String args = each . commandLine . substring ( command . length ( ) ) . trim ( ) ; \n \n - result . add ( new ProcessInfo ( each . pid , each . commandLine , name , args ) ) ; \n + result . add ( new ProcessInfo ( each . pid , each . commandLine , name , args , command ) ) ; \n } \n return result ; \n }", "msg_token": "Pass command as executable path on Mac"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DataSourceNode extends OptimizerNode { \n candidate . updatePropertiesWithUniqueSets ( getUniqueFields ( ) ) ; \n \n final Costs costs = new Costs ( ) ; \n - if ( FileInputFormat . class . isAssignableFrom ( getPactContract ( ) . getFormatWrapper ( ) . getUserCodeObject ( ) . getClass ( ) ) && \n + if ( FileInputFormat . class . isAssignableFrom ( getPactContract ( ) . getFormatWrapper ( ) . getUserCodeClass ( ) ) && \n this . estimatedOutputSize >= NUMBER0 ) \n { \n estimator . addFileInputCost ( this . estimatedOutputSize , costs ) ;", "msg_token": "Fix bug in data source cost accounting"} {"diff": " public final class UpdateChecker { \n final String pluginUrl = pluginElement . getAttributeValue ( STRING0 ) ; \n final String pluginVersion = pluginElement . getAttributeValue ( STRING1 ) ; \n \n + if ( pluginId == null ) { \n + LOG . info ( STRING2 ) ; \n + continue ; \n + } \n + \n + if ( pluginUrl == null ) { \n + LOG . info ( STRING3 ) ; \n + continue ; \n + } \n + \n ProgressManager . getInstance ( ) . runProcessWithProgressSynchronously ( new Runnable ( ) { \n public void run ( ) { \n try {", "msg_token": "add log messages if updatePlugins xml is invalid"} {"diff": " public class SslConnection extends AbstractConnection \n return super . getFillInterest ( ) ; \n } \n \n + @ override \n + public void setIdleTimeout ( long idleTimeout ) \n + { \n + super . setIdleTimeout ( idleTimeout ) ; \n + getEndPoint ( ) . setIdleTimeout ( idleTimeout ) ; \n + } \n \n @ override \n protected WriteFlusher getWriteFlusher ( )", "msg_token": "DecryptedEndPoint now delegates the set of the idle timeout to the underlying EndPoint"} {"diff": " public class Shader { \n public boolean getLocalMatrix ( Matrix localM ) { \n if ( mLocalMatrix != null ) { \n localM . set ( mLocalMatrix ) ; \n - return true ; \n + return ! mLocalMatrix . isIdentity ( ) ; \n } \n return false ; \n }", "msg_token": "Fix CTS test"} {"diff": " import NAMESPACE ; \n public class UberTestCase extends TestCase { \n public static Test suite ( ) { \n TestSuite suite = new TestSuite ( ) ; \n + suite . addTestSuite ( AbstractClassAndInterfaceTest . class ) ; \n suite . addTestSuite ( AmbiguousInvocationTest . class ) ; \n suite . addTestSuite ( ArrayAutoboxingTest . class ) ; \n suite . addTestSuite ( ArrayParamMethodTest . class ) ;", "msg_token": "added AbstractClassAndInterfaceTest to the suit"} {"diff": " public class McastServiceImpl \n receivePacket . setPort ( port ) ; \n member . setCommand ( new byte [ NUMBER0 ] ) ; \n member . getData ( true , true ) ; \n - membership = new Membership ( member ) ; \n + if ( membership == null ) membership = new Membership ( member ) ; \n } \n \n protected void setupSocket ( ) throws IOException {", "msg_token": "don t reset the membership during a recovery otherwise we lose all info on the surrounding members"} {"diff": " public class ThriftClusterImpl implements Cluster { \n final CfDef def ; \n try { \n def = ThriftUtils . getThriftObjectFromProperties ( CfDef . class , props ) ; \n - System . out . println ( def ) ; \n } catch ( Exception e ) { \n throw new BadRequestException ( STRING0 , e ) ; \n }", "msg_token": "Removed spurious System out println"} {"diff": " public class AdminServiceMultiJVMTest extends AbstractAdminServiceFilterTest { \n } \n \n private Process startServerAsNewJVM ( int nodeId , String voldemortHome ) throws IOException { \n - String command = STRING0 + System . getProperty ( STRING1 ) \n - + STRING2 + voldemortHome ; \n + String [ ] classpaths = System . getProperty ( STRING1 ) . split ( STRING3 ) ; \n + StringBuilder builder = new StringBuilder ( ) ; \n + for ( String path : classpaths ) { \n + builder . append ( new File ( path ) . getCanonicalPath ( ) ) ; \n + builder . append ( STRING3 ) ; \n + } \n + builder . deleteCharAt ( builder . length ( ) - NUMBER0 ) ; \n + \n + String command = STRING0 + builder . toString ( ) + STRING2 \n + + voldemortHome ; \n System . out . println ( STRING4 + command ) ; \n Process process = Runtime . getRuntime ( ) . exec ( command ) ; \n waitForServerStart ( cluster . getNodeById ( nodeId ) ) ;", "msg_token": "sanitize classpath string in AdminServerMultiJVM tests"} {"diff": " public class ZLMIDlet extends MIDlet COMMENT { \n super ( ) ; \n } \n COMMENT \n + private boolean myStarted ; \n \n public void startApp ( ) { \n - new ZLJ2MELibrary ( ) . run ( this ) ; \n + if ( ! myStarted ) { \n + new ZLJ2MELibrary ( ) . run ( this ) ; \n + myStarted = true ; \n + } \n } \n \n public void destroyApp ( boolean destroy ) {", "msg_token": "don t reload book at resume"} {"diff": " public class AprLifecycleListener \n protected static String SSLRandomSeed = STRING0 ; \n protected static boolean sslInitialized = false ; \n protected static boolean aprInitialized = false ; \n + @ deprecated \n protected static boolean sslAvailable = false ; \n protected static boolean aprAvailable = false ; \n protected static boolean fipsModeActive = false ;", "msg_token": "Deprecate unused code"} {"diff": " public class Mappings { \n myDelta . mySourceFileToClasses . forEachEntry ( new TObjectObjectProcedure < File , Collection < ClassRepr > > ( ) { \n @ override \n public boolean execute ( File fileName , Collection < ClassRepr > classes ) { \n - newClasses . add ( new FileClasses ( fileName , classes ) ) ; \n + if ( myFilesToCompile == null || myFilesToCompile . contains ( fileName ) ) { \n + SINGLE \n + SINGLE \n + newClasses . add ( new FileClasses ( fileName , classes ) ) ; \n + } \n return true ; \n } \n } ) ;", "msg_token": "processing only those sources that were actually compiled on this compilation round"} {"diff": " public class SgSyncAdapter extends AbstractThreadedSyncAdapter { \n } \n \n public enum UpdateResult { \n - SUCCESS , INCOMPLETE ; \n + SUCCESS , INCOMPLETE \n } \n \n public enum UpdateType { \n public class FlagTask extends AsyncTask < Void , Integer , Integer > { \n \n SHOW_WATCHED , \n \n - SHOW_COLLECTED ; \n + SHOW_COLLECTED \n } \n \n public static abstract class FlagTaskType {", "msg_token": "Remove unnecessary semicolons"} {"diff": " public class ConsoleExecCommand extends AbstractFrameCommand { \n @ override \n protected void buildPayload ( Payload payload ) { \n super . buildPayload ( payload ) ; \n - payload . add ( myThreadId ) . add ( myFrameId ) . add ( STRING0 ) . add ( myExpression ) ; \n + payload . add ( STRING0 ) . add ( myExpression ) ; \n } \n \n @ override", "msg_token": "fixed bug after refactoring"} {"diff": " public class FileGraphSource implements GraphSource { \n if ( newGraph != null ) { \n graph = newGraph ; SINGLE \n } else { \n - LOG . warn ( STRING0 , \n - routerId ) ; \n + if ( force || graph == null ) { \n + LOG . warn ( STRING1 , routerId ) ; \n + graph = null ; \n + } else { \n + LOG . warn ( STRING2 , routerId ) ; \n + } \n } \n } \n if ( graph == null ) {", "msg_token": "Better log explain more"} {"diff": " public class Update < ModelClass extends Model > implements Query { \n \n private final Class < ModelClass > mTable ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static < ModelClass extends Model > Update table ( Class < ModelClass > table ) { \n + return new Update ( table ) ; \n + } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public Update ( Class < ModelClass > table ) { \n mTable = table ; \n }", "msg_token": "added a static method to Update"} {"diff": " public class RadialSelectorView extends View { \n \n SINGLE \n mPaint . setAlpha ( NUMBER0 ) ; \n - mPaint . setStrokeWidth ( NUMBER1 ) ; \n + mPaint . setStrokeWidth ( NUMBER2 ) ; \n canvas . drawLine ( mXCenter , mYCenter , pointX , pointY , mPaint ) ; \n }", "msg_token": "Tweak Timepicker line width"} {"diff": " public class DatabaseHelper extends SQLiteOpenHelper { \n + STRING0 ) ; \n \n SINGLE \n - loadIntegerSetting ( stmt , Settings . System . SCREEN_OFF_TIMEOUT , NUMBER0 * NUMBER1 * NUMBER2 ) ; \n + loadSetting ( stmt , Settings . System . SCREEN_OFF_TIMEOUT , \n + Integer . toString ( NUMBER0 * NUMBER1 * NUMBER2 ) ) ; \n } finally { \n if ( stmt != null ) stmt . close ( ) ; \n }", "msg_token": "Fix an upgrade bug in SettingsProvider"} {"diff": " public class Users { \n private final Map < Long , UserInfo > mUsers ; \n private final TachyonConf mTachyonConf ; \n \n - public Users ( String userUfsFolder , TachyonConf tachyonConf ) { \n + public Users ( String userUfsFolder , TachyonConf tachyonConf ) { \n mUserUnderFSFolder = userUfsFolder ; \n mUsers = new HashMap < Long , UserInfo > ( ) ; \n mTachyonConf = tachyonConf ; \n public class TachyonConf { \n try { \n defaultProps . load ( defaultInputStream ) ; \n } catch ( IOException e ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING0 , e ) ; \n } \n + } else { \n + throw new RuntimeException ( STRING1 ) ; \n } \n \n SINGLE", "msg_token": "Remove extra space"} {"diff": " public class SugarRecord < T > { \n } \n return toRet ; \n } \n + \n + public static < T extends SugarRecord < ? > > long count ( Class < ? > type ) { \n + return count ( type , null , null , null , null , null ) ; \n + } \n \n public static < T extends SugarRecord < ? > > long count ( Class < ? > type , \n String whereClause , String [ ] whereArgs ) {", "msg_token": "Add strict count overload to simplify interface"} {"diff": " public class Wallet extends BaseTaggableObject implements Serializable , BlockCha \n } \n \n @ override \n - public synchronized void setTag ( String tag , ByteString value ) { \n + public void setTag ( String tag , ByteString value ) { \n super . setTag ( tag , value ) ; \n saveNow ( ) ; \n }", "msg_token": "Fix lock inversion tags wallet lock"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n @ incubating \n public interface TaskFailureResult extends TaskOperationResult , FailureResult { \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ override \n - List < ? extends Failure > getFailures ( ) ; \n } \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n @ incubating \n public interface TestFailureResult extends TestOperationResult , FailureResult { \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ override \n - List < ? extends Failure > getFailures ( ) ; \n - \n }", "msg_token": "Removed some unnecessary overrides"} {"diff": " public class BlockWorker { \n mThriftServer = createThriftServer ( ) ; \n mWorkerNetAddress = \n new NetAddress ( BlockWorkerUtils . getWorkerAddress ( mTachyonConf ) . getAddress ( ) \n - . getCanonicalHostName ( ) , thriftServerPort , mDataServer . getPort ( ) ) ; \n + . getHostAddress ( ) , thriftServerPort , mDataServer . getPort ( ) ) ; \n \n SINGLE \n int webPort = mTachyonConf . getInt ( Constants . WORKER_WEB_PORT , Constants . DEFAULT_WORKER_WEB_PORT ) ;", "msg_token": "use raw ip instead of canonical hostname as worker address to fix spark locality issue"} {"diff": " public class SvnExecutableChecker extends ExecutableValidator { \n } \n \n private boolean validateVersion ( @ notnull Version version ) { \n - if ( ! version . is ( NUMBER0 ) || version . lessThan ( NUMBER0 , NUMBER1 ) ) { \n + if ( version . lessThan ( NUMBER0 , NUMBER1 ) ) { \n setNotificationErrorDescription ( getOldExecutableMessage ( version ) ) ; \n return false ; \n }", "msg_token": "Simplified svn executable validation logic removed explicit major version check"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import static NAMESPACE ; \n \n public class PojoCodecTest { \n private PojoCodec pojoCodec ; \n - private BSONWriter bsonWriter = mock ( BSONWriter . class , Mockito . withSettings ( ) . verboseLogging ( ) ) ; \n + private BSONWriter bsonWriter = mock ( BSONWriter . class ) ; \n private PrimitiveCodecs primitiveCodecs = PrimitiveCodecs . createDefault ( ) ; \n \n @ before", "msg_token": "Removing verbose logging"} {"diff": " public class UIUtil { \n \n @ suppresswarnings ( { STRING0 } ) \n public static boolean isUnderAquaBasedLookAndFeel ( ) { \n - return SystemInfo . isMac && ( isUnderAquaLookAndFeel ( ) || isUnderDarcula ( ) ) ; \n + return SystemInfo . isMac && ( isUnderAquaLookAndFeel ( ) || isUnderDarcula ( ) || isUnderIntelliJLaF ( ) ) ; \n } \n \n @ suppresswarnings ( { STRING0 } )", "msg_token": "add IntelliJ laf for aqua based lafs on mac"} {"diff": " public interface OSGIConfig extends KillbillConfig { \n STRING0 + \n STRING1 + \n STRING2 + \n - SINGLE \n - STRING3 ) \n + SINGLE \n + STRING4 + \n + SINGLE \n + STRING5 + \n + SINGLE \n + STRING6 + \n + SINGLE \n + STRING7 ) \n public String getSystemBundleExportPackages ( ) ; \n \n SINGLE", "msg_token": "add missing exports from the system bundle"} {"diff": " public class Rule implements AttributeResolver { \n new AttributeDict ( AttributeDict . DictType . PREDEFINED_LEXER_RULE ) { { \n add ( new Attribute ( STRING0 ) ) ; \n add ( new Attribute ( STRING1 ) ) ; \n - add ( new Attribute ( STRING2 ) ) ; \n - add ( new Attribute ( STRING3 ) ) ; \n - add ( new Attribute ( STRING4 ) ) ; \n - add ( new Attribute ( STRING5 ) ) ; \n - add ( new Attribute ( STRING6 ) ) ; \n - add ( new Attribute ( STRING7 ) ) ; \n - add ( new Attribute ( STRING8 ) ) ; \n + add ( new Attribute ( STRING5 ) ) ; \n + add ( new Attribute ( STRING9 ) ) ; \n } } ; \n \n public static Set < String > validLexerCommands = new HashSet < String > ( ) { {", "msg_token": "remove inappropriate attributes of lexer rules"} {"diff": " public abstract class BaseRoundCornerProgressBar extends LinearLayout { \n \n private boolean isScreenMeasure ; \n private boolean isBackgroundLayourSet ; \n - private boolean isReverse ; \n + protected boolean isReverse ; \n \n @ suppresslint ( STRING0 ) \n public BaseRoundCornerProgressBar ( Context context , AttributeSet attrs ) {", "msg_token": "Change isReverse to protected"} {"diff": " public class ThemeManager { \n \n holder . mPalette . init ( NUMBER0 , NUMBER1 , color - > { \n holder . mPalette . init ( getSwatch ( color ) . length , NUMBER1 , color2 - > { \n - setColor ( context , color2 ) ; \n + setActiveColor ( color2 ) ; \n + saveListener . onClick ( null ) ; \n dialog . dismiss ( ) ; \n } ) ; \n - holder . mPalette . drawPalette ( getSwatch ( color ) , mColor ) ; \n + holder . mPalette . drawPalette ( getSwatch ( color ) , getColor ( ) ) ; \n } ) ; \n - holder . mPalette . drawPalette ( PALETTE , getSwatchColor ( mColor ) ) ; \n + holder . mPalette . drawPalette ( PALETTE , getSwatchColor ( getColor ( ) ) ) ; \n \n \n SeekBar . OnSeekBarChangeListener seekListener = new SeekBar . OnSeekBarChangeListener ( ) {", "msg_token": "Fix palette for conversation themes"} {"diff": " public class ManagePackagesDialog extends DialogWrapper { \n RepoPackage repoPackage = ( RepoPackage ) value ; \n String name = repoPackage . getName ( ) ; \n if ( myCurrentlyInstalling . contains ( name ) ) { \n - name += STRING0 ; \n + final String colorCode = UIUtil . isUnderDarcula ( ) ? STRING1 : STRING2 ; \n + name = STRING3 + repoPackage . getName ( ) + STRING4 + colorCode + STRING5 ; \n } \n myNameLabel . setText ( name ) ; \n myRepositoryLabel . setText ( repoPackage . getRepoUrl ( ) ) ;", "msg_token": "emphasize installing label by another color"} {"diff": " public class GeoPointFieldMapperTests extends ESSingleNodeTestCase { \n \n boolean indexCreatedBefore22 = version . before ( Version . V_2_2_0 ) ; \n assertThat ( doc . rootDoc ( ) . getField ( STRING0 ) , notNullValue ( ) ) ; \n - final boolean stored = indexCreatedBefore22 == false ; \n + final boolean stored = false ; \n assertThat ( doc . rootDoc ( ) . getField ( STRING0 ) . fieldType ( ) . stored ( ) , is ( stored ) ) ; \n assertThat ( doc . rootDoc ( ) . getField ( STRING1 ) , notNullValue ( ) ) ; \n assertThat ( doc . rootDoc ( ) . getField ( STRING1 ) . fieldType ( ) . stored ( ) , is ( stored ) ) ;", "msg_token": "Fix GeoPointFieldMapperTests expectations"} {"diff": " abstract class ActivityTransitionCoordinator extends ResultReceiver { \n if ( getViewsTransition ( ) != null ) { \n getDecor ( ) . captureTransitioningViews ( mTransitioningViews ) ; \n mTransitioningViews . removeAll ( mSharedElements ) ; \n + Rect r = new Rect ( ) ; \n + for ( int i = mTransitioningViews . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { \n + View view = mTransitioningViews . get ( i ) ; \n + if ( ! view . getGlobalVisibleRect ( r ) ) { \n + mTransitioningViews . remove ( i ) ; \n + } \n + } \n } \n setEpicenter ( ) ; \n }", "msg_token": "Exclude views that aren t on screen from Activity Transitions"} {"diff": " public abstract class ObjectCodec \n COMMENT \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public abstract JsonFactory getJsonFactory ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public JsonFactory getFactory ( ) { \n + return getJsonFactory ( ) ; \n + } \n }", "msg_token": "Add getFactory as replacement for getJsonFactory in ObjectCodec"} {"diff": " public class TitanCassandraInputFormat extends TitanInputFormat { \n \n private final ColumnFamilyInputFormat columnFamilyInputFormat = new ColumnFamilyInputFormat ( ) ; \n private FaunusTitanCassandraGraph graph ; \n - private boolean pathEnabled ; \n private Configuration config ; \n - private VertexQueryFilter vertexQuery ; \n \n @ override \n public List < InputSplit > getSplits ( final JobContext jobContext ) throws IOException , InterruptedException { \n public class TitanCassandraInputFormat extends TitanInputFormat { \n public void setConf ( final Configuration config ) { \n super . setConf ( config ) ; \n Setup setup = super . setupConfiguration ( config ) ; \n - this . graph = new FaunusTitanCassandraGraph ( setup . serializer , setup . types ) ; \n + this . graph = new FaunusTitanCassandraGraph ( setup . serializer , setup . types ) ; \n \n config . set ( STRING0 , config . get ( FAUNUS_GRAPH_INPUT_TITAN_STORAGE_KEYSPACE ) ) ; \n ConfigHelper . setInputColumnFamily ( config , ConfigHelper . getInputKeyspace ( config ) , Backend . EDGESTORE_NAME ) ;", "msg_token": "removed unreferenced local variables that were overriding super variables and causing NullPointerExceptions"} {"diff": " public class ModMetadata \n useDependencyInformation = Boolean . parseBoolean ( Strings . nullToEmpty ( ( String ) processedFields . get ( aStringBuilder ( STRING0 ) ) ) ) ; \n } \n \n - ModMetadata ( ) \n + public ModMetadata ( ) \n { \n }", "msg_token": "Made empty constructor for ModMetadata public"} {"diff": " public class HorizontalGridView extends BaseGridView { \n setRowHeight ( a ) ; \n setNumRows ( a . getInt ( R . styleable . lbHorizontalGridView_numberOfRows , NUMBER0 ) ) ; \n a . recycle ( ) ; \n - setWillNotDraw ( false ) ; \n + updateLayerType ( ) ; \n mTempPaint = new Paint ( ) ; \n mTempPaint . setXfermode ( new PorterDuffXfermode ( PorterDuff . Mode . DST_IN ) ) ; \n } \n public class HorizontalGridView extends BaseGridView { \n private void updateLayerType ( ) { \n if ( mFadingLowEdge || mFadingHighEdge ) { \n setLayerType ( View . LAYER_TYPE_HARDWARE , null ) ; \n + setWillNotDraw ( false ) ; \n } else { \n setLayerType ( View . LAYER_TYPE_NONE , null ) ; \n + setWillNotDraw ( true ) ; \n } \n } \n }", "msg_token": "Optimize no fading edge case"} {"diff": " public class RopeJoint extends Joint { \n public float getMaxLength ( ) { \n return joint . getMaxLength ( ) ; \n } \n + \n + public void setMaxLength ( float maxLength ) { \n + joint . setMaxLength ( maxLength ) ; \n + } \n + \n }", "msg_token": "added missing setMaxLength"} {"diff": " public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n COMMENT \n @ override \n public boolean isPrivateBrowsingEnabled ( ) { \n - return getSettings ( ) . isPrivateBrowsingEnabled ( ) ; \n + WebSettingsClassic settings = getSettings ( ) ; \n + return ( settings != null ) ? settings . isPrivateBrowsingEnabled ( ) : false ; \n } \n \n private void startPrivateBrowsing ( ) {", "msg_token": "Fix NPE in isPrivateBrowsingEnabled"} {"diff": " public class ActivityShare extends Activity { \n \n SINGLE \n setContentView ( R . layout . sharelist ) ; \n - getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_ALWAYS_HIDDEN ) ; \n \n SINGLE \n if ( action . equals ( ACTION_TOGGLE ) ) {", "msg_token": "Activity share has no text input"} {"diff": " public enum OGlobalConfiguration { \n \n SINGLE \n DISTRIBUTED_CRUD_TASK_SYNCH_TIMEOUT ( STRING0 , \n - STRING1 , Integer . class , NUMBER0 ) , \n + STRING1 , Integer . class , NUMBER1 ) , \n \n DISTRIBUTED_COMMAND_TASK_SYNCH_TIMEOUT ( STRING2 , \n - STRING3 , Integer . class , NUMBER2 ) , \n + STRING3 , Integer . class , NUMBER3 ) , \n \n DISTRIBUTED_DEPLOYDB_TASK_SYNCH_TIMEOUT ( STRING4 , \n - STRING5 , Long . class , NUMBER4 ) , \n + STRING5 , Long . class , NUMBER5 ) , \n \n DISTRIBUTED_DEPLOYDB_TASK_COMPRESSION ( STRING6 , \n STRING7 , Integer . class , NUMBER6 ) ,", "msg_token": "Reverted wrong distributed timeouts"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class ResultSetDataReceiver implements DBDDataReceiver { \n private boolean hasMoreData ; \n private boolean nextSegmentRead ; \n \n - Map < DBCAttributeMetaData , List < DBCException > > errors = new HashMap < DBCAttributeMetaData , List < DBCException > > ( ) ; \n + private Map < DBCAttributeMetaData , List < DBCException > > errors = new HashMap < DBCAttributeMetaData , List < DBCException > > ( ) ; \n private boolean updateMetaData ; \n \n ResultSetDataReceiver ( ResultSetViewer resultSetViewer )", "msg_token": "Dynamic structs support"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n public class SortProcessorTests extends ESTestCase { \n Integer [ ] expectedResult = new Integer [ ] { NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 } ; \n List < Integer > fieldValue = new ArrayList < > ( expectedResult . length ) ; \n fieldValue . addAll ( Arrays . asList ( expectedResult ) . subList ( NUMBER11 , expectedResult . length ) ) ; \n - Collections . shuffle ( fieldValue ) ; \n + Collections . shuffle ( fieldValue , random ( ) ) ; \n \n String fieldName = RandomDocumentPicks . addRandomField ( random ( ) , ingestDocument , fieldValue ) ; \n Processor processor = new SortProcessor ( randomAsciiOfLength ( NUMBER5 ) , fieldName , SortOrder . ASCENDING ) ;", "msg_token": "TEST Use a reproducible source of randomness in shuffle"} {"diff": " public class BSONBinaryWriter extends BSONWriter { \n } \n \n @ override \n - public void close ( ) { \n - } \n - \n - @ override \n public void writeStartArray ( ) { \n checkPreconditions ( STRING0 , State . VALUE ) ;", "msg_token": "Removed close override that did nothing and did not call super close"} {"diff": " public class TestLlapTaskSchedulerService { \n } \n } \n \n - @ test ( timeout = NUMBER0 ) \n + SINGLE \n public void testNodeReEnabled ( ) throws InterruptedException { \n SINGLE \n TestTaskSchedulerServiceWrapper tsWrapper = new TestTaskSchedulerServiceWrapper ( NUMBER1 ) ;", "msg_token": "disable the flaky TestLlapTaskSchedulerService test Sergey Shelukhin"} {"diff": " public class AccessibilityManagerService extends IAccessibilityManager . Stub { \n UserState userState = getCurrentUserStateLocked ( ) ; \n SINGLE \n if ( userState . mUiAutomationService != null \n - && userState . mUiAutomationService . mServiceInterface != null \n && serviceClient != null \n + && userState . mUiAutomationService != null \n + && userState . mUiAutomationService . mServiceInterface != null \n && userState . mUiAutomationService . mServiceInterface . asBinder ( ) \n == serviceClient . asBinder ( ) ) { \n userState . mUiAutomationService . binderDied ( ) ;", "msg_token": "Fixing a NPE in accessibility manager service"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n + @ ignore \n public class H2BatooTest extends AbstractJPASuite { \n \n public static class JPA extends JPABase { }", "msg_token": "Ignore Batoo test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Removed an unused import"} {"diff": " public class MobileCompositeProvider implements ProjectCustomizer . CompositeCateg \n private class SavePropsListener implements ActionListener { \n \n private String extensionName = STRING0 ; \n - private String extensionVersion = STRING1 ; \n + private String extensionVersion = STRING2 ; \n private String [ ] extensionDependencies = new String [ ] { STRING3 , STRING4 } ; \n private ProjectExtensionManager manager = new ProjectExtensionManager ( extensionName , extensionVersion , extensionDependencies ) ; \n private ProjectExtensionProperties properties ;", "msg_token": "up version of android build script"} {"diff": " public class HdfsFileInputStreamIntegrationTest { \n Assert . assertTrue ( BufferUtils . equalIncreasingByteArray ( FILE_LEN , buf ) ) ; \n Assert . assertEquals ( NUMBER0 , mUfsInputStream . getPos ( ) ) ; \n \n + buf = new byte [ FILE_LEN - NUMBER1 ] ; \n Arrays . fill ( buf , ( byte ) NUMBER0 ) ; \n length = mInMemInputStream . read ( NUMBER1 , buf , NUMBER0 , FILE_LEN - NUMBER1 ) ; \n Assert . assertEquals ( FILE_LEN - NUMBER1 , length ) ;", "msg_token": "Fixing a failing test"} {"diff": " public class BroadcasterFuture < E > implements Future { \n } else { \n latch = null ; \n } \n - this . listeners = listeners ; \n + this . listeners = ( listeners == null ? new CopyOnWriteArrayList < BroadcasterListener > ( ) : listeners ) ; \n } \n \n COMMENT", "msg_token": "Fix possible NPE"} {"diff": " public class RestfulGraphDatabase { \n @ path ( PATH_NODE_PROPERTY ) \n public Response setNodeProperty ( @ pathparam ( STRING0 ) long nodeId , @ pathparam ( STRING1 ) String key , String body ) { \n try { \n - System . out . println ( STRING2 ) ; \n server . setNodeProperty ( nodeId , key , input . readValue ( body ) ) ; \n } catch ( BadInputException e ) { \n return output . badRequest ( e ) ;", "msg_token": "Removing a system out"} {"diff": " public class StatsSinglePostDetailsActivity extends ActionBarActivity \n private void setMainViewsLabel ( String dateFormatted , int totals ) { \n mStatsViewsLabel . setText ( getString ( R . string . stats_views ) + STRING0 \n + dateFormatted ) ; \n - mStatsViewsTotals . setText ( String . valueOf ( totals ) ) ; \n + mStatsViewsTotals . setText ( FormatUtils . formatDecimal ( totals ) ) ; \n }", "msg_token": "Fix an issue on the main Total label that wasn t correctly formatted"} {"diff": " public enum MethodManifestation implements ModifierContributor . ForMethod { \n COMMENT \n COMMENT \n COMMENT \n - FINAL_NATIVE ( Opcodes . ACC_FINAL | Opcodes . ACC_NATIVE ) ; \n + FINAL_NATIVE ( Opcodes . ACC_FINAL | Opcodes . ACC_NATIVE ) , \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + BRIDGE ( Opcodes . ACC_BRIDGE ) ; \n \n COMMENT \n COMMENT \n public class MethodManifestationTest extends AbstractModifierContributorTest { \n public static Collection < Object [ ] > data ( ) { \n return Arrays . asList ( new Object [ ] [ ] { \n { MethodManifestation . PLAIN , NUMBER0 } , \n + { MethodManifestation . NATIVE , Opcodes . ACC_NATIVE } , \n { MethodManifestation . ABSTRACT , Opcodes . ACC_ABSTRACT } , \n { MethodManifestation . FINAL , Opcodes . ACC_FINAL } , \n { MethodManifestation . FINAL_NATIVE , Opcodes . ACC_FINAL | Opcodes . ACC_NATIVE } , \n + { MethodManifestation . BRIDGE , Opcodes . ACC_BRIDGE } \n } ) ; \n } \n }", "msg_token": "Added bridge method modifier"} {"diff": " public final class FileUtils { \n COMMENT \n COMMENT \n public static void move ( String srcPath , String dstPath ) throws IOException { \n + long start = System . currentTimeMillis ( ) ; \n Files . move ( new File ( srcPath ) , new File ( dstPath ) ) ; \n + long end = System . currentTimeMillis ( ) ; \n + LOG . info ( STRING0 , srcPath , dstPath , end - start ) ; \n } \n \n COMMENT", "msg_token": "add log info"} {"diff": " public class Orient extends OListenerManger < OOrientListener > { \n shutdownHook . cancel ( ) ; \n shutdownHook = null ; \n } \n + } \n + \n + public void removeSignalHandler ( ) { \n if ( signalHandler != null ) { \n signalHandler . cancel ( ) ; \n signalHandler = null ;", "msg_token": "Allow signal handler to be uninstalled separately from the shutdown hook"} {"diff": " public class NetworkController extends BroadcastReceiver { \n @ override \n public void onServiceStateChanged ( ServiceState state ) { \n if ( DEBUG ) { \n - Log . d ( TAG , STRING0 + state . getState ( ) ) ; \n + Log . d ( TAG , STRING1 + state . getVoiceRegState ( ) \n + + STRING2 + state . getDataRegState ( ) ) ; \n } \n mServiceState = state ; \n updateTelephonySignalStrength ( ) ; \n public class NetworkController extends BroadcastReceiver { \n \n private boolean hasService ( ) { \n if ( mServiceState != null ) { \n - switch ( mServiceState . getState ( ) ) { \n - case ServiceState . STATE_OUT_OF_SERVICE : \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + switch ( mServiceState . getVoiceRegState ( ) ) { \n case ServiceState . STATE_POWER_OFF : \n return false ; \n + case ServiceState . STATE_OUT_OF_SERVICE : \n + case ServiceState . STATE_EMERGENCY_ONLY : \n + return mServiceState . getDataRegState ( ) == ServiceState . STATE_IN_SERVICE ; \n default : \n return true ; \n }", "msg_token": "Display signal strength on data only SIMs"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class HttpHeaders implements MultiValueMap < String , String > , Serializable \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public long getIfNotModifiedSince ( ) { \n + return getIfModifiedSince ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public long getIfModifiedSince ( ) { \n return getFirstDate ( IF_MODIFIED_SINCE ) ; \n }", "msg_token": "Rename HttpHeaders getIfNotModifiedSince"} {"diff": " public abstract class Event implements Serializable { \n PLAYER_BUCKET_FILL ( Category . PLAYER ) , \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + PLAYER_INVENTORY ( Category . PLAYER ) , \n + COMMENT \n COMMENT \n COMMENT \n \n public class PlayerInventoryEvent extends PlayerEvent { \n protected Inventory inventory ; \n \n public PlayerInventoryEvent ( final Player player , final Inventory inventory ) { \n - super ( Type . PLAYER_INTERACT , player ) ; \n + super ( Type . PLAYER_INVENTORY , player ) ; \n this . inventory = inventory ; \n }", "msg_token": "Fixed PlayerInventoryEvent Type"} {"diff": " public class BoomMenuButton extends FrameLayout \n COMMENT \n COMMENT \n private ViewGroup createAnimationLayout ( ) { \n - ViewGroup rootView = ( ViewGroup ) ( ( Activity ) mContext ) . getWindow ( ) . getDecorView ( ) ; \n + ViewGroup rootView = ( ViewGroup ) scanForActivity ( mContext ) . getWindow ( ) . getDecorView ( ) ; \n LinearLayout animLayout = new LinearLayout ( mContext ) ; \n LinearLayout . LayoutParams layoutParams = new LinearLayout . LayoutParams ( \n LinearLayout . LayoutParams . MATCH_PARENT , \n public class BoomMenuButton extends FrameLayout \n return boomMenuButton ; \n } \n } \n + \n + private static Activity scanForActivity ( Context cont ) { \n + if ( cont == null ) \n + return null ; \n + else if ( cont instanceof Activity ) \n + return ( Activity ) cont ; \n + else if ( cont instanceof ContextWrapper ) \n + return scanForActivity ( ( ( ContextWrapper ) cont ) . getBaseContext ( ) ) ; \n + \n + return null ; \n + } \n }", "msg_token": "solved class cast exception"} {"diff": " public class StackUtil { \n } else { \n SINGLE \n IInventory inv = Utils . getInventory ( inventory ) ; \n - System . out . println ( STRING0 ) ; \n + SINGLE \n \n for ( int j = NUMBER0 ; j < inv . getSizeInventory ( ) ; ++ j ) \n if ( tryAdding ( inv , j , add , true ) ) { \n public class BlockGenericPipe extends BlockContainer implements ITextureProvider \n if ( pipe != null ) { \n return pipe . getConstructor ( int . class ) . newInstance ( key ) ; \n } else { \n - System . err . printf ( STRING1 + key + STRING2 ) ; \n + System . err . printf ( STRING3 + key + STRING2 ) ; \n } \n \n } catch ( Throwable t ) {", "msg_token": "Prefixed unknown pipe message with BuidCraft and removed Added to generic inventory println"} {"diff": " public class FloatingSearchView extends FrameLayout { \n this . mIsFocused = savedState . isFocused ; \n \n setSuggestionItemTextSize ( savedState . suggestionTextSize ) ; \n - setSearchHint ( savedState . searchHint ) ; \n - setVoiceSearchHint ( savedState . voiceSearchHint ) ; \n setDismissOnOutsideClick ( savedState . dismissOnOutsideClick ) ; \n setShowOverflowMenu ( savedState . showOverFlowMenu ) ; \n setShowSearchKey ( savedState . showSearchKey ) ; \n - setShowVoiceInput ( savedState . showVoiceInput ) ; \n setShowHintWhenNotFocused ( savedState . showHintWhenNotFocused ) ; \n setLeftActionMode ( savedState . leftMode ) ; \n + setSearchHint ( savedState . searchHint ) ; \n + setShowVoiceInput ( savedState . showVoiceInput ) ; \n + setVoiceSearchHint ( savedState . voiceSearchHint ) ; \n \n if ( this . mIsFocused ) {", "msg_token": "saved state cleanup"} {"diff": " public abstract class XMPPConnection { \n } \n \n void callConnectionClosedOnErrorListener ( Exception e ) { \n + LOGGER . log ( Level . WARNING , STRING0 , e ) ; \n for ( ConnectionListener listener : getConnectionListeners ( ) ) { \n try { \n listener . connectionClosedOnError ( e ) ;", "msg_token": "Log connectionClosedOnError exceptions"} {"diff": " public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData \n this . openOrCreate ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void drop ( ) { \n + getRawGraph ( ) . drop ( ) ; \n + } \n + \n @ suppresswarnings ( STRING0 ) \n public < T extends Element > Index < T > createIndex ( final String indexName , final Class < T > indexClass , \n final Parameter . . . indexParameters ) {", "msg_token": "Added OrientBaseGraph drop"} {"diff": " public class ChainingPrincipalResolver implements PrincipalResolver { \n \n @ override \n public boolean supports ( final Credential credential ) { \n - return this . chain . size ( ) > NUMBER0 && this . chain . get ( NUMBER0 ) . supports ( credential ) ; \n + return this . chain . get ( NUMBER0 ) . supports ( credential ) ; \n } \n \n COMMENT", "msg_token": "Remove redundant size check per code review"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import static NAMESPACE ; \n COMMENT \n public class SearchSourceBuilder { \n \n + public static enum Order { \n + ASC , \n + DESC \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class SearchSourceBuilder { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public SearchSourceBuilder sort ( String name , Order order ) { \n + boolean reverse = false ; \n + if ( name . equals ( STRING0 ) ) { \n + if ( order == Order . ASC ) { \n + reverse = true ; \n + } \n + } else { \n + if ( order == Order . DESC ) { \n + reverse = true ; \n + } \n + } \n + return sort ( name , null , reverse ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add sort with Order enum"} {"diff": " public class TvView extends ViewGroup { \n \n @ override \n public void onContentBlocked ( Session session , TvContentRating rating ) { \n + if ( this != mSessionCallback ) { \n + return ; \n + } \n if ( DEBUG ) { \n Log . d ( TAG , STRING0 ) ; \n } \n public class TvView extends ViewGroup { \n \n @ override \n public void onLayoutSurface ( Session session , int left , int top , int right , int bottom ) { \n + if ( this != mSessionCallback ) { \n + return ; \n + } \n if ( DEBUG ) { \n Log . d ( TAG , STRING1 + left + STRING2 + top + STRING3 \n + right + STRING4 + bottom + STRING5 ) ;", "msg_token": "Add missing checks for the current session callback"} {"diff": " public abstract class ProxyConnection implements Connection \n LOGGER . warn ( STRING0 , \n poolEntry . getPoolName ( ) , delegate , sqlState , sqle . getErrorCode ( ) , sqle ) ; \n leakTask . cancel ( ) ; \n - delegate = ClosedConnection . CLOSED_CONNECTION ; \n poolEntry . evict ( STRING1 ) ; \n + delegate = ClosedConnection . CLOSED_CONNECTION ; \n } \n else { \n final SQLException nse = sqle . getNextException ( ) ;", "msg_token": "Don t reassign delegate until after eviction"} {"diff": " public class MersenneRandom extends Random { \n } \n \n @ override \n - public double nextStandNormalDistrDouble ( ) { \n + public double nextGaussian ( ) { \n return mersenne . nextGaussian ( ) ; \n }", "msg_token": "Fixed MersenneRandom naming"} {"diff": " public abstract class PathToken { \n } \n } \n ctx . addResult ( evalPath , propertyVal ) ; \n + } else { \n + if ( ctx . options ( ) . contains ( Option . DEFAULT_PATH_LEAF_TO_NULL ) ) { \n + ctx . addResult ( evalPath , null ) ; \n + } \n } \n } \n }", "msg_token": "Fixed issue with DEFAULT_PATH_LEAF_TO_NULL and multiple properties"} {"diff": " import NAMESPACE ; \n @ threadsafe \n public final class LoginModuleConfiguration extends Configuration { \n \n - private static final Map < String , String > EMPTY_JAAS_OPTIONS = new HashMap < String , String > ( ) ; \n + private static final Map < String , String > EMPTY_JAAS_OPTIONS = new HashMap < > ( ) ; \n \n COMMENT \n private static final AppConfigurationEntry OS_SPECIFIC_LOGIN =", "msg_token": "SMALLFIX Removed explicit parameter type in LoginModuleConfiguration"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class CoreModuleManagerTest extends UsefulTestCase { \n - public void testLoadingModules ( ) throws IOException , JDOMException , InvalidDataException { \n + public void _testLoadingModules ( ) throws IOException , JDOMException , InvalidDataException { \n CoreApplicationEnvironment appEnv = new CoreApplicationEnvironment ( getTestRootDisposable ( ) ) ; \n new ProjectModel . InitApplicationEnvironment ( appEnv ) ;", "msg_token": "Commented the test for now"} {"diff": " public abstract class ODatabaseRecordAbstract extends ODatabaseWrapperAbstract < O \n \n try { \n final boolean wasNew = rid . isNew ( ) ; \n + if ( wasNew && rid . clusterId == - NUMBER0 && iClusterName != null ) \n + SINGLE \n + rid . clusterId = getClusterIdByName ( iClusterName ) ; \n \n SINGLE \n byte [ ] stream = iRecord . toStream ( ) ; \n public class SQLCreateVertexAndEdgeTest { \n new OCommandSQL ( STRING0 + v3 . getIdentity ( ) + STRING1 + v5 . getIdentity ( ) + STRING2 ) ) \n . execute ( ) ; \n Assert . assertEquals ( e5 . getClassName ( ) , STRING3 ) ; \n - SINGLE \n + Assert . assertEquals ( e5 . getIdentity ( ) . getClusterId ( ) , database . getDefaultClusterId ( ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "Fixed a bug on assigning custom cluster to new records"} {"diff": " public class AppLauncher { \n serverSocket . setReuseAddress ( true ) ; \n log ( STRING0 + localPort ) ; \n clientSocket = serverSocket . accept ( ) ; \n + clientSocket . setTcpNoDelay ( true ) ; \n log ( STRING1 ) ; \n }", "msg_token": "disable Nagle when forwarding messages from the debug server to decrease latency"} {"diff": " public final class MultiSelectManager implements View . OnKeyListener { \n \n @ override \n public void onChanged ( ) { \n - SINGLE \n - mSelection . clear ( ) ; \n mModelIds = mAdapter . getModelIds ( ) ; \n + \n + SINGLE \n + mSelection . cancelProvisionalSelection ( ) ; \n + mSelection . intersect ( mModelIds ) ; \n } \n \n @ override", "msg_token": "Don t clear the selection when directory contents change"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class CypherPluginFunctionalTest extends AbstractRestFunctionalTestBase \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public abstract class ClassLoaderAwareAsyncCall extends AsyncCall { \n ClassLoader current = Thread . currentThread ( ) . getContextClassLoader ( ) ; \n try { \n Thread . currentThread ( ) . setContextClassLoader ( classLoader ) ; \n - call ( ) ; \n + super . run ( ) ; \n } finally { \n if ( current != null ) { \n Thread . currentThread ( ) . setContextClassLoader ( current ) ;", "msg_token": "ClassLoaderAwareCaller wasn t setting threadContext"} {"diff": " public class RequestServer extends NanoHTTPD { \n Request . addToNavbar ( registerRequest ( new JProfile ( ) ) , STRING0 , STRING1 ) ; \n Request . addToNavbar ( registerRequest ( new JStack ( ) ) , STRING2 , STRING1 ) ; \n Request . addToNavbar ( registerRequest ( new NetworkTest ( ) ) , STRING3 , STRING1 ) ; \n + Request . addToNavbar ( registerRequest ( new IOStatus ( ) ) , STRING4 , STRING1 ) ; \n + Request . addToNavbar ( registerRequest ( new Timeline ( ) ) , STRING5 , STRING1 ) ; \n + Request . addToNavbar ( registerRequest ( new UDPDropTest ( ) ) , STRING6 , STRING1 ) ; \n + Request . addToNavbar ( registerRequest ( new TaskStatus ( ) ) , STRING7 , STRING1 ) ; \n Request . addToNavbar ( registerRequest ( new Shutdown ( ) ) , STRING8 , STRING1 ) ; \n \n SINGLE", "msg_token": "Add back debugging tools"} {"diff": " public class LambdaCanBeMethodReferenceInspection extends BaseJavaBatchLocalInsp \n super . visitLambdaExpression ( expression ) ; \n if ( PsiUtil . getLanguageLevel ( expression ) . isAtLeast ( LanguageLevel . JDK_1_8 ) ) { \n final PsiElement body = expression . getBody ( ) ; \n - final PsiCallExpression callExpression = canBeMethodReferenceProblem ( body , expression . getParameterList ( ) . getParameters ( ) , expression . getFunctionalInterfaceType ( ) ) ; \n - if ( callExpression != null ) { \n - holder . registerProblem ( callExpression , \n - STRING0 , \n - ProblemHighlightType . GENERIC_ERROR_OR_WARNING , new ReplaceWithMethodRefFix ( ) ) ; \n + final PsiType functionalInterfaceType = expression . getFunctionalInterfaceType ( ) ; \n + if ( functionalInterfaceType != null ) { \n + final PsiCallExpression callExpression = canBeMethodReferenceProblem ( body , expression . getParameterList ( ) . getParameters ( ) , functionalInterfaceType ) ; \n + if ( callExpression != null ) { \n + holder . registerProblem ( callExpression , \n + STRING0 , \n + ProblemHighlightType . GENERIC_ERROR_OR_WARNING , new ReplaceWithMethodRefFix ( ) ) ; \n + } \n } \n } \n }", "msg_token": "reject unresolved lambdas"} {"diff": " public class UIServiceImpl \n \n return chatWindowManager . getSelectedChat ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getCurrentPhoneNumber ( ) \n + { \n + return mainFrame . getCurrentPhoneNumber ( ) ; \n + } \n \n COMMENT \n COMMENT \n public class MainFrame \n return accountStatusPanel ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getCurrentPhoneNumber ( ) \n + { \n + return mainCallPanel . getPhoneNumberComboText ( ) ; \n + } \n + \n private class MainContentPane extends JPanel \n { \n public MainContentPane ( ) \n public interface UIService \n public Chat getCurrentChat ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getCurrentPhoneNumber ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Introduce a new method in the UIService that allows plugins to obtain the phone number entered in the call field"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix JavaDoc reference"} {"diff": " public class UIPrefsAccessor extends Prefs \n \n public PrefValue < Boolean > useDataImport ( ) \n { \n - return bool ( STRING0 , false ) ; \n + return bool ( STRING0 , true ) ; \n } \n \n public static final String PDF_PREVIEW_NONE = STRING1 ;", "msg_token": "enable new data imports csv spss and excel"} {"diff": " public class IrcStack \n } \n \n connectSynchronized ( ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "Added mark for future improvements"} {"diff": " public class EntryActivity extends Activity { \n } \n \n if ( canLoadFromThisApp == false && ! showingTamperPrompt ) { \n - if ( Util . randInt ( NUMBER0 , NUMBER1 ) == NUMBER2 ) { \n - MainApplication . showUpgradePrompt ( this , R . string . upgrade_incentive_one_app , Analytics . UPGRADE_PROMPT_SINGLE_APP ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n MainApplication . openInBrowser ( this , intent , true ) ; \n } else if ( openLink && ! showingTamperPrompt ) { \n SINGLE", "msg_token": "Don t show upgrade prompt when loading links"} {"diff": " public final class ViewfinderView extends View { \n } \n \n public void drawViewfinder ( ) { \n - resultBitmap = null ; \n + Bitmap resultBitmap = this . resultBitmap ; \n + this . resultBitmap = null ; \n + if ( resultBitmap != null ) { \n + resultBitmap . recycle ( ) ; \n + } \n invalidate ( ) ; \n }", "msg_token": "Fixed potential bug in not recycling bitmaps that I spied from BS"} {"diff": " public class GwtNet implements Net { \n } \n \n final boolean is_get = ( httpRequest . getMethod ( ) == HttpMethods . GET ) ; \n - final String value = httpRequest . convertHttpRequest ( ) ; \n + final String value = httpRequest . getContent ( ) ; \n \n final RequestBuilder builder = is_get ? new RequestBuilder ( RequestBuilder . GET , httpRequest . getUrl ( ) + STRING0 + value ) : \n new RequestBuilder ( RequestBuilder . POST , httpRequest . getUrl ( ) ) ; \n public class GwtNet implements Net { \n builder . setHeader ( name , content . get ( name ) ) ; \n } \n \n - builder . setTimeoutMillis ( httpRequest . getTimeout ( ) ) ; \n + builder . setTimeoutMillis ( httpRequest . getTimeOut ( ) ) ; \n \n \n try {", "msg_token": "changed GwtNet to use getContent and getTimeOut"} {"diff": " public class AccessLogValve extends ValveBase implements AccessLog { \n COMMENT \n COMMENT \n COMMENT \n - private void tidyFormat ( ) { \n + private String tidyFormat ( String format ) { \n boolean escape = false ; \n StringBuilder result = new StringBuilder ( ) ; \n int len = format . length ( ) ; \n public class AccessLogValve extends ValveBase implements AccessLog { \n escape = ! escape ; \n } \n } \n + return result . toString ( ) ; \n } \n \n protected DateAndTimeElement ( String header ) { \n public class AccessLogValve extends ValveBase implements AccessLog { \n type = formatType . MSEC_FRAC ; \n } else { \n type = formatType . SDF ; \n - tidyFormat ( ) ; \n + format = tidyFormat ( format ) ; \n } \n } \n }", "msg_token": "Fix millisecond handling in AccessLogValve when"} {"diff": " public class SubsystemParsingTestCase extends AbstractBatchTestCase { \n return readResource ( STRING0 ) ; \n } \n \n + @ override \n + protected String getSubsystemXsdPath ( ) throws Exception { \n + return STRING1 ; \n + } \n + \n + @ override \n + protected String [ ] getSubsystemTemplatePaths ( ) throws IOException { \n + return new String [ ] { \n + STRING2 \n + } ; \n + } \n + \n @ test \n public void testMinimalSubsystem ( ) throws Exception { \n standardSubsystemTest ( STRING3 ) ;", "msg_token": "add XML validation for batch subsystem"} {"diff": " public abstract class AndroidLiveWallpaperService extends WallpaperService { \n runningEngines -- ; \n if ( AndroidLiveWallpaperService . DEBUG ) Log . d ( AndroidLiveWallpaperService . this . TAG , STRING0 + hashCode ( ) + STRING1 + runningEngines ) ; \n view . onDestroy ( ) ; \n - listener . dispose ( ) ; \n + if ( listener != null ) \n + listener . dispose ( ) ; \n app . onDestroy ( ) ; \n super . onDestroy ( ) ; \n }", "msg_token": "added null check on listener before destroying it because it seems onDestroy could be called before onCreate in some cases"} {"diff": " public class RuntimeEnvironment { \n return getConfiguration ( ) . getIndexWordLimit ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setIndexWordLimit ( int indexWordLimit ) { \n getConfiguration ( ) . setIndexWordLimit ( indexWordLimit ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean isVerbose ( ) { \n return getConfiguration ( ) . isVerbose ( ) ; \n } \n - \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setVerbose ( boolean verbose ) { \n getConfiguration ( ) . setVerbose ( verbose ) ; \n } \n - \n + \n + \n public IgnoredNames getIgnoredNames ( ) { \n return getConfiguration ( ) . getIgnoredNames ( ) ; \n }", "msg_token": "Updated javadoc comments"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class SkipDefaultsSerializationFilter extends SkipDefaultValuesSeri \n BeanBinding classBinding = ( BeanBinding ) referencedBinding ; \n ThreeState compareByFields = classBinding . hasEqualMethod ; \n if ( compareByFields == ThreeState . UNSURE ) { \n - try { \n - classBinding . myBeanClass . getDeclaredMethod ( STRING0 , Object . class ) ; \n - compareByFields = ThreeState . NO ; \n - } \n - catch ( NoSuchMethodException ignored ) { \n - compareByFields = ThreeState . YES ; \n - } \n - catch ( Exception e ) { \n - Binding . LOG . warn ( e ) ; \n - } \n + compareByFields = ReflectionUtil . getDeclaredMethod ( classBinding . myBeanClass , STRING0 , Object . class ) == null ? ThreeState . YES : ThreeState . NO ; \n \n classBinding . hasEqualMethod = compareByFields ; \n }", "msg_token": "avoid expensive exceptions thrown"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class FileStorageUtils { \n - public static Integer mSortOrder ; \n - public static Boolean mSortAscending ; \n public static final Integer SORT_NAME = NUMBER0 ; \n public static final Integer SORT_DATE = NUMBER1 ; \n public static final Integer SORT_SIZE = NUMBER2 ; \n - \n + public static Integer mSortOrder = SORT_NAME ; \n + public static Boolean mSortAscending = true ; \n + \n \n SINGLE", "msg_token": "Set default static values to prevent weird crash"} {"diff": " public class CallManager \n \n mainFrame . addCallPanel ( callPanel ) ; \n \n + if ( mainFrame . getState ( ) == JFrame . ICONIFIED ) \n + mainFrame . setState ( JFrame . NORMAL ) ; \n + \n + mainFrame . toFront ( ) ; \n + \n this . callButton . setEnabled ( true ) ; \n this . hangupButton . setEnabled ( true ) ;", "msg_token": "incoming calls request focus en bring SC up"} {"diff": " public class HelloWorldManagedConnectionFactory implements ManagedConnectionFact \n \n } \n \n + public boolean equals ( Object o ) { \n + return super . equals ( o ) ; \n + } \n + \n + public int hashCode ( ) { \n + return super . hashCode ( ) ; \n + } \n } \n public class HelloWorldResourceAdapter implements ResourceAdapter { \n return new XAResource [ NUMBER0 ] ; \n } \n \n + public boolean equals ( Object o ) { \n + return super . equals ( o ) ; \n + } \n + \n + public int hashCode ( ) { \n + return super . hashCode ( ) ; \n + } \n }", "msg_token": "Add equals hashCode"} {"diff": " public class ScorePhrasesLearnFeatWt < E extends Pattern > extends PhraseScorer < E > \n candidate = CandidatePhrase . createOrGet ( l . word ( ) ) ; \n } \n \n + SINGLE \n + if ( allPossibleNegativePhrases . contains ( candidate ) ) \n + continue ; \n + \n allPositivePhrases . add ( candidate ) ; \n \n } else {", "msg_token": "do not add negative phrases as pos"} {"diff": " public class CxfEndpoint extends DefaultEndpoint implements HeaderFilterStrategy \n COMMENT \n COMMENT \n public void setLoggingSizeLimit ( int loggingSizeLimit ) { \n - if ( loggingSizeLimit < - NUMBER0 ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n - } \n + if ( loggingSizeLimit < - NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n this . loggingSizeLimit = loggingSizeLimit ; \n }", "msg_token": "Changed tabs to whitespace for identation"} {"diff": " public class ParseAndMarshalModelsTestCase { \n } \n \n @ test \n + public void testStandaloneJtsXml ( ) throws Exception { \n + standaloneXmlTest ( getExampleConfigFile ( STRING0 ) ) ; \n + } \n + \n + @ test \n public void test700StandaloneXml ( ) throws Exception { \n standaloneXmlTest ( getLegacyConfigFile ( STRING1 , STRING2 ) ) ; \n } \n public class ParseAndMarshalModelsTestCase { \n } \n \n @ test \n + public void testDomainJtsXml ( ) throws Exception { \n + domainXmlTest ( getExampleConfigFile ( STRING3 ) ) ; \n + } \n + \n + @ test \n public void test700DomainXml ( ) throws Exception { \n domainXmlTest ( getLegacyConfigFile ( STRING4 , STRING2 ) ) ; \n }", "msg_token": "adding test cases"} {"diff": " public class DiffApplication implements ApplicationStarterEx { \n System . err . println ( e . getMessage ( ) ) ; \n System . exit ( NUMBER0 ) ; \n } \n - catch ( Exception e ) { \n - e . printStackTrace ( ) ; \n - System . exit ( NUMBER0 ) ; \n + catch ( Throwable t ) { \n + t . printStackTrace ( ) ; \n + System . exit ( NUMBER1 ) ; \n } \n + \n + System . exit ( NUMBER2 ) ; \n } \n \n @ override", "msg_token": "Restore diff exit"} {"diff": " public class LogInspector \n final long rawTail = metaDataBuffer . getLongVolatile ( TERM_TAIL_COUNTER_OFFSET ) ; \n final long termOffset = rawTail & NUMBER0 ; \n out . format ( \n - STRING0 , \n + STRING1 , \n i , \n termStatus ( metaDataBuffer ) , \n termOffset , \n - termId ( rawTail ) ) ; \n + termId ( rawTail ) , \n + rawTail ) ; \n } \n \n for ( int i = NUMBER1 ; i < PARTITION_COUNT ; i ++ )", "msg_token": "Java Write out the rawTail value when inspecting logs"} {"diff": " public class OsmandMonitoringPlugin extends OsmandPlugin implements LockInfoCont \n offlineData . setSummary ( offlineData . getSummary ( ) + STRING0 + app . getString ( R . string . gpx_index_settings_descr ) ) ; \n } \n PreferenceScreen general = ( PreferenceScreen ) screen . findPreference ( SettingsActivity . SCREEN_ID_GENERAL_SETTINGS ) ; \n - general . addPreference ( activity . createEditTextPreference ( settings . LIVE_MONITORING_URL , R . string . live_monitoring_url , \n - R . string . live_monitoring_url_descr ) ) ; \n + SINGLE \n + SINGLE \n \n \n PreferenceCategory cat = new PreferenceCategory ( activity ) ;", "msg_token": "remove duplicate tracking URL menu entry"} {"diff": " public class RegistrationTest extends TomcatBaseTest { \n assertEquals ( STRING0 + onames , NUMBER0 , onames . size ( ) ) ; \n \n final Tomcat tomcat = getTomcatInstance ( ) ; \n - SINGLE \n - tomcat . getServer ( ) . addLifecycleListener ( new ServerLifecycleListener ( ) ) ; \n final File contextDir = new File ( STRING1 ) ; \n contextDir . mkdir ( ) ; \n tomcat . addContext ( STRING2 , contextDir . getAbsolutePath ( ) ) ;", "msg_token": "No longer need ServerLifecycleListener"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CloseProjectAction extends AnAction implements DumbAware { \n Presentation presentation = event . getPresentation ( ) ; \n Project project = event . getData ( PlatformDataKeys . PROJECT ) ; \n presentation . setEnabled ( project != null ) ; \n - if ( ProjectAttachProcessor . canAttachToProject ( ) ) { \n + if ( ProjectAttachProcessor . canAttachToProject ( ) && project != null && ModuleManager . getInstance ( project ) . getModules ( ) . length > NUMBER0 ) { \n presentation . setText ( STRING0 ) ; \n } \n + else { \n + presentation . setText ( getTemplatePresentation ( ) . getText ( ) ) ; \n + } \n } \n }", "msg_token": "don t rename action to close projects in current window if we have only one project"} {"diff": " public abstract class SocketWrapperBase < E > { \n \n protected static final StringManager sm = StringManager . getManager ( SocketWrapperBase . class ) ; \n \n - private volatile E socket ; \n + private final E socket ; \n private final AbstractEndpoint < E > endpoint ; \n \n SINGLE", "msg_token": "Make socket final"} {"diff": " public class PublishClusterStateActionTests extends ESTestCase { \n } \n largestVersionSeen = state . getVersion ( ) ; \n } else { \n + SINGLE \n assertNotNull ( channel . error . get ( ) ) ; \n assertThat ( channel . error . get ( ) , instanceOf ( IllegalStateException . class ) ) ; \n }", "msg_token": "Add comment about older cluster states"} {"diff": " public class ThemeBrowserFragment extends Fragment implements RecyclerListener , \n switch ( position ) { \n case THEME_FILTER_PREMIUM_INDEX : \n return WordPress . wpDB . getThemesPremium ( blogId ) ; \n - case THEME_FILTER_FREE_INDEX : \n - return WordPress . wpDB . getThemesFree ( blogId ) ; \n case THEME_FILTER_ALL_INDEX : \n - default : \n return WordPress . wpDB . getThemesAll ( blogId ) ; \n + case THEME_FILTER_FREE_INDEX : \n + default : \n + return WordPress . wpDB . getThemesFree ( blogId ) ; \n } \n }", "msg_token": "Default is free themes"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface ChannelConfig {", "msg_token": "Fixed an incorrect relationship in a class diagram"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added some missing license headers"} {"diff": " public class ScriptIntrinsicColorMatrix extends ScriptIntrinsic { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix doc typo"} {"diff": " public class BluetoothService extends IBluetooth . Stub { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n private final ArrayList < String > mAutoPairingAddressBlacklist = \n new ArrayList < String > ( Arrays . asList ( \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , \n STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , \n STRING12 , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , \n STRING18 , STRING19 , STRING20 , STRING21 , STRING22 , STRING23 , \n - STRING24 , STRING25 , STRING26 , STRING27 \n + STRING24 , STRING25 , STRING26 , STRING27 , STRING28 \n ) ) ; \n \n SINGLE", "msg_token": "Add BMW kits made by Motorola PCS to autoblack list for Bluetooth"} {"diff": " public class ProgramRunnerUtil { \n \n try { \n runner . execute ( new ExecutionEnvironmentBuilder ( ) . setRunnerAndSettings ( runner , configuration ) . setTarget ( target ) \n - . setContentToReuse ( contentToReuse ) . setProject ( project ) . assignNewId ( ) . build ( ) ) ; \n + . setContentToReuse ( contentToReuse ) . setProject ( project ) . setExecutor ( executor ) . assignNewId ( ) . build ( ) ) ; \n } \n catch ( ExecutionException e ) { \n ExecutionUtil . handleExecutionError ( project , executor . getToolWindowId ( ) , configuration . getConfiguration ( ) , e ) ;", "msg_token": "add missing setExecutor"} {"diff": " public class ManagedListComponentsTest extends ManagementTestSupport { \n \n SINGLE \n TabularData data = ( TabularData ) mbeanServer . invoke ( on , STRING0 , null , null ) ; \n - assertEquals ( NUMBER0 , data . size ( ) ) ; \n + assertTrue ( STRING1 , data . size ( ) > NUMBER1 ) ; \n } \n \n @ override", "msg_token": "Adding new scheduler component"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added Stratosphere header to DefaultDeserializer java"} {"diff": " public class PubSubHubbubCallbackREST { \n log . info ( STRING0 ) ; \n try { \n byte [ ] bytes = IOUtils . toByteArray ( request . getInputStream ( ) ) ; \n - log . info ( new String ( bytes ) ) ; \n FetchedFeed fetchedFeed = parser . parse ( null , bytes ) ; \n String topic = fetchedFeed . getTopic ( ) ; \n if ( topic != null ) {", "msg_token": "remove debug line"} {"diff": " public class OGLESShaderRenderer implements Renderer { \n } \n \n if ( uniform . getVarType ( ) == null ) { \n - logger . log ( Level . FINEST , STRING0 , \n - new Object [ ] { shader . toString ( ) , uniform . toString ( ) } ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n return ; SINGLE \n }", "msg_token": "Removed logging of unset uniform for Android to match Desktop and avoid flooding the log"} {"diff": " public class FloatingActionMenu { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void updateItemPositions ( ) { \n + SINGLE \n + if ( ! isOpen ( ) ) { \n + return ; \n + } \n + SINGLE \n + calculateItemPositions ( ) ; \n + \n + SINGLE \n + for ( int i = NUMBER0 ; i < subActionItems . size ( ) ; i ++ ) { \n + SINGLE \n + final FrameLayout . LayoutParams params = new FrameLayout . LayoutParams ( subActionItems . get ( i ) . width , subActionItems . get ( i ) . height , Gravity . TOP | Gravity . LEFT ) ; \n + params . setMargins ( subActionItems . get ( i ) . x , subActionItems . get ( i ) . y , NUMBER0 , NUMBER0 ) ; \n + subActionItems . get ( i ) . view . setLayoutParams ( params ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add updateItemPositions method to allow recalculation of menu item positions"} {"diff": " public class ModelMetricsMultinomial extends ModelMetricsSupervised { \n SINGLE \n SINGLE \n SINGLE \n - double err = iact + NUMBER0 < ds . length ? NUMBER0 - ds [ iact + NUMBER0 ] : NUMBER0 ; SINGLE \n + double actprob = ds [ iact + NUMBER0 ] ; \n + if ( Double . isNaN ( actprob ) ) return ds ; \n + \n + double err = iact + NUMBER0 < ds . length ? NUMBER0 - actprob : NUMBER0 ; SINGLE \n _sumsqe += err * err ; SINGLE \n assert ! Double . isNaN ( _sumsqe ) ;", "msg_token": "Add extra sanity check for predicted values"} {"diff": " public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol \n int extraPadding = itemView . getContext ( ) . getResources ( ) . getDimensionPixelSize ( R . dimen . margin_medium ) ; \n txtTitle . setPadding ( \n txtTitle . getPaddingLeft ( ) , \n - txtTitle . getTotalPaddingTop ( ) + extraPadding , \n + txtTitle . getPaddingTop ( ) + extraPadding , \n txtTitle . getPaddingRight ( ) , \n txtTitle . getPaddingBottom ( ) ) ; \n SINGLE", "msg_token": "Corrected getTotalPaddingTop to getPaddingTop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n public class HugoActivity extends Activity { \n public class HugoActivity extends Activity { \n \n Greeter greeter = new Greeter ( STRING0 ) ; \n Log . d ( STRING1 , greeter . sayHello ( ) ) ; \n + \n + ( new Annonymous ( ) { \n + @ override \n + @ debuglog \n + public String whoIsThis ( ) { \n + return STRING2 ; \n + } \n + } ) . whoIsThis ( ) ; \n + \n } \n \n @ debuglog \n public class HugoActivity extends Activity { \n return STRING3 + name ; \n } \n } \n + \n + private static interface Annonymous { \n + String whoIsThis ( ) ; \n + } \n }", "msg_token": "Added example for annonymous inner class"} {"diff": " public interface OTransaction { \n \n public boolean isUsingLog ( ) ; \n \n + public void setUsingLog ( boolean useLog ) ; \n } \n public abstract class OTransactionAbstract implements OTransaction { \n database = iDatabase ; \n } \n \n - public abstract void setUsingLog ( boolean useLog ) ; \n - \n public boolean isActive ( ) { \n return status != TXSTATUS . INVALID ; \n }", "msg_token": "Exposed setUsingLog from OTransactionAbstract to OTransaction"} {"diff": " public class TaskManagerImpl extends TaskManager implements ProjectComponent , Pe \n LocalChangeList changeList = myChangeListManager . getChangeList ( info . id ) ; \n if ( changeList == null ) { \n changeList = myChangeListManager . addChangeList ( info . name , info . comment ) ; \n + info . id = changeList . getId ( ) ; \n } \n myChangeListManager . setDefaultChangeList ( changeList ) ; \n return ;", "msg_token": "restoring changelist id"} {"diff": " public final class ActionManagerImpl extends ActionManagerEx implements Applicat \n } \n \n public void removeTimerListener ( TimerListener listener ) { \n - final boolean removed = myTimerListeners . remove ( listener ) ; \n - if ( ! removed ) { \n - LOG . error ( STRING0 + listener ) ; \n - } \n + myTimerListeners . remove ( listener ) ; \n } \n \n public void actionPerformed ( ActionEvent e ) { \n public final class ActionManagerImpl extends ActionManagerEx implements Applicat \n IdeFocusManager . getInstance ( null ) . doWhenFocusSettlesDown ( new Runnable ( ) { \n public void run ( ) { \n for ( TimerListener listener : listeners ) { \n - runListenerAction ( listener ) ; \n + if ( myTimerListeners . contains ( listener ) ) { \n + runListenerAction ( listener ) ; \n + } \n } \n } \n } ) ;", "msg_token": "removed unneeded assertion since listeners may get executed later via focus manager"} {"diff": " public class FragmentActivity extends Activity implements SupportActivity { \n \n @ override \n public void setTitle ( CharSequence title ) { \n - if ( IS_HONEYCOMB || ( mActionBar . getPublicInstance ( ) == null ) ) { \n + if ( IS_HONEYCOMB || ( getSupportActionBar ( ) == null ) ) { \n super . setTitle ( title ) ; \n } else { \n - mActionBar . setTitle ( title ) ; \n + getSupportActionBar ( ) . setTitle ( title ) ; \n } \n } \n \n @ override \n public void setTitle ( int titleId ) { \n - if ( IS_HONEYCOMB || ( mActionBar . getPublicInstance ( ) == null ) ) { \n + if ( IS_HONEYCOMB || ( getSupportActionBar ( ) == null ) ) { \n super . setTitle ( titleId ) ; \n } else { \n - mActionBar . setTitle ( titleId ) ; \n + getSupportActionBar ( ) . setTitle ( titleId ) ; \n } \n }", "msg_token": "Fix case where title is set before content"} {"diff": " public class Bubble extends RelativeLayout { \n \n mShape . setPadding ( hPad , vPad , NUMBER0 , NUMBER0 ) ; \n mShape . setVisibility ( VISIBLE ) ; \n + showProgressBar ( false ) ; \n } \n } ) ;", "msg_token": "Ensure progress bar is not displayed when page icon displays"} {"diff": " public class BeaconConfigFragment extends Fragment implements TextView . OnEditorA \n Log . d ( TAG , STRING0 + STRING1 + url ) ; \n if ( ! isShortUrl ( url ) ) { \n setEditCardUrl ( url ) ; \n + return ; \n } \n \n SINGLE \n new PwsClient ( ) . resolve ( Arrays . asList ( url ) , new PwsResultCallback ( ) { \n + public void runSetEditCardUrlOnUiThread ( final String url ) { \n + getActivity ( ) . runOnUiThread ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + setEditCardUrl ( url ) ; \n + } \n + } ) ; \n + } \n + \n @ override \n public void onPwsResult ( PwsResult pwsResult ) { \n - setEditCardUrl ( pwsResult . getSiteUrl ( ) ) ; \n + runSetEditCardUrlOnUiThread ( pwsResult . getSiteUrl ( ) ) ; \n } \n \n @ override \n public void onPwsResultAbsent ( String url ) { \n - setEditCardUrl ( url ) ; \n + runSetEditCardUrlOnUiThread ( url ) ; \n } \n } ) ; \n }", "msg_token": "Fix crash due to invalid thread activity"} {"diff": " public final class H2O { \n } catch ( Throwable ex ) { \n SINGLE \n SINGLE \n - h2o . onExceptionalCompletion ( ex , h2o . getCompleter ( ) ) ; \n + if ( h2o != null ) h2o . onExceptionalCompletion ( ex , h2o . getCompleter ( ) ) ; \n } finally { \n t . _priority = pp ; \n if ( pp == MIN_PRIORITY ) Thread . currentThread ( ) . setPriority ( Thread . NORM_PRIORITY - NUMBER0 ) ;", "msg_token": "Fix NPE hopefully"} {"diff": " public class RouteCalculationResult { \n if ( Math . abs ( diff ) > NUMBER0 ) { \n type = diff > NUMBER1 ? TurnType . KL : TurnType . KR ; \n } \n - RouteDirectionInfo info = new RouteDirectionInfo ( NUMBER2 , TurnType . valueOf ( type , false ) ) ; \n + SINGLE \n + RouteDirectionInfo info = new RouteDirectionInfo ( NUMBER3 , TurnType . valueOf ( type , false ) ) ; \n info . distance = NUMBER1 ; \n info . afterLeftTime = NUMBER1 ; \n info . routePointOffset = locations . size ( ) - NUMBER2 ;", "msg_token": "improve travel time display for GPX routes with calculated first segment"} {"diff": " public class Dream extends Service implements Window . Callback { \n \n @ override \n public void onAttachedToWindow ( ) { \n - mWindow . addFlags ( \n - WindowManager . LayoutParams . FLAG_ALLOW_LOCK_WHILE_SCREEN_ON \n - | WindowManager . LayoutParams . FLAG_SHOW_WHEN_LOCKED \n - ) ; \n - lightsOut ( ) ; \n } \n \n @ override \n public class Dream extends Service implements Window . Callback { \n SINGLE \n final View v = mWindow . getDecorView ( ) ; \n if ( v != null ) { \n - v . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_LOW_PROFILE ) ; \n + v . setSystemUiVisibility ( View . SYSTEM_UI_FLAG_LOW_PROFILE \n + | View . SYSTEM_UI_FLAG_FULLSCREEN ) ; \n } \n }", "msg_token": "Add fullscreen to Dream lightsOut"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ suppress SINGLE \n public class StateMachineTest extends TestCase { \n private static final String ENTER = STRING0 ; \n private static final String EXIT = STRING1 ;", "msg_token": "DO NOT MERGE Disable failing test case"} {"diff": " public class Jaxb2MarshallerTests extends AbstractMarshallerTests { \n } \n \n @ test \n + public void supportsXmlRootElement ( ) throws Exception { \n + marshaller = new Jaxb2Marshaller ( ) ; \n + marshaller . setClassesToBeBound ( new Class [ ] { DummyRootElement . class , DummyType . class } ) ; \n + marshaller . afterPropertiesSet ( ) ; \n + assertTrue ( STRING0 , marshaller . supports ( DummyRootElement . class ) ) ; \n + assertTrue ( STRING1 , marshaller . supports ( ( Type ) DummyRootElement . class ) ) ; \n + \n + assertFalse ( STRING2 , marshaller . supports ( DummyType . class ) ) ; \n + assertFalse ( STRING3 , marshaller . supports ( ( Type ) DummyType . class ) ) ; \n + } \n + \n + \n + @ test \n public void marshalAttachments ( ) throws Exception { \n marshaller = new Jaxb2Marshaller ( ) ; \n marshaller . setClassesToBeBound ( new Class [ ] { BinaryObject . class } ) ;", "msg_token": "Improved Jaxb2Marshaller supports"} {"diff": " public final class HikariPool implements HikariPoolMBean \n { \n addConnections ( AddConnectionStrategy . ONLY_IF_EMPTY ) ; \n } \n - \n + \n IHikariConnectionProxy connectionProxy = idleConnectionBag . borrow ( timeout , TimeUnit . MILLISECONDS ) ; \n if ( connectionProxy == null ) \n {", "msg_token": "Remove blank line"} {"diff": " public class JarDirectoryStep implements Step { \n continue ; \n } \n \n - jar . putNextEntry ( entry ) ; \n + SINGLE \n + SINGLE \n + ZipEntry newEntry = new ZipEntry ( entry ) ; \n + newEntry . setCompressedSize ( - NUMBER0 ) ; \n + \n + jar . putNextEntry ( newEntry ) ; \n InputStream inputStream = zip . getInputStream ( entry ) ; \n ByteStreams . copy ( inputStream , jar ) ; \n jar . closeEntry ( ) ;", "msg_token": "Reset compressed size when combining JAR ZIP archives"} {"diff": " public class RecentTasksLoader implements View . OnTouchListener { \n mContext . getSystemService ( Context . ACTIVITY_SERVICE ) ; \n \n final List < ActivityManager . RecentTaskInfo > recentTasks = \n - am . getRecentTasksForUser ( MAX_TASKS , \n - ActivityManager . RECENT_IGNORE_UNAVAILABLE , UserHandle . USER_CURRENT ) ; \n + am . getRecentTasks ( MAX_TASKS , ActivityManager . RECENT_IGNORE_UNAVAILABLE ) ; \n int numTasks = recentTasks . size ( ) ; \n ActivityInfo homeInfo = new Intent ( Intent . ACTION_MAIN ) \n . addCategory ( Intent . CATEGORY_HOME ) . resolveActivityInfo ( pm , NUMBER0 ) ;", "msg_token": "Fix recents list for multiuser"} {"diff": " public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo \n SINGLE \n SINGLE \n SINGLE \n - public boolean block ( ) { \n + public boolean block ( ) throws InterruptedException { \n while ( ! isDone ( ) ) join ( ) ; \n return true ; \n }", "msg_token": "Throw InterruptedException in block"} {"diff": " public class StringLogger \n file . getParentFile ( ) . mkdirs ( ) ; \n } \n out = new PrintWriter ( new FileWriter ( file , true ) ) ; \n - System . out . println ( STRING0 + filename ) ; \n } \n catch ( IOException e ) \n { \n public class StringLogger \n { \n if ( storeDir == null ) \n { \n - new Exception ( ) . printStackTrace ( ) ; \n return SYSTEM ; \n } \n \n public class StringLogger \n if ( logger != null ) \n { \n logger . out . close ( ) ; \n - System . out . println ( STRING1 + defaultFileName ( storeDir ) ) ; \n } \n } \n }", "msg_token": "Removed debug code"} {"diff": " public class CropImageView extends FrameLayout { \n } \n } \n bundle . putInt ( STRING0 , mDegreesRotated ) ; \n + bundle . putParcelable ( STRING1 , mCropOverlayView . getInitialCropWindowRect ( ) ) ; \n return bundle ; \n } \n \n public class CropImageView extends FrameLayout { \n mDegreesRotated = tmpRotated ; \n } \n \n + mCropOverlayView . setInitialCropWindowRect ( ( Rect ) bundle . getParcelable ( STRING1 ) ) ; \n + \n super . onRestoreInstanceState ( bundle . getParcelable ( STRING2 ) ) ; \n } else { \n super . onRestoreInstanceState ( state ) ; \n public class CropOverlayView extends View { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + public Rect getInitialCropWindowRect ( ) { \n + return mInitialCropWindowRect ; \n + } \n + \n + COMMENT \n + COMMENT \n COMMENT \n public void setInitialCropWindowRect ( Rect rect ) { \n mInitialCropWindowRect = rect ;", "msg_token": "fix initial crop window rectangle cleared on rotation use state"} {"diff": " public class InputEditorUtil \n line = editor . getText ( ) ; \n pos = editor . getSelection ( ) . getStart ( ) . getPosition ( ) ; \n SINGLE \n - for ( ; pos < line . length ( ) && Character . isLetterOrDigit ( line . charAt ( pos ) ) ; pos ++ ) \n + for ( ; pos < line . length ( ) && isRIdentifierChar ( line . charAt ( pos ) ) ; pos ++ ) \n { \n } \n } \n public class InputEditorUtil \n \n return new InputEditorLineWithCursorPosition ( line , pos ) ; \n } \n + \n + private static boolean isRIdentifierChar ( char ch ) \n + { \n + return Character . isLetterOrDigit ( ch ) || ch == STRING0 || ch == STRING1 ; \n + } \n \n private static String lastYanked ; \n }", "msg_token": "correctly test for R indentifer characters in input handler"} {"diff": " public class QueryProcessor \n logger . trace ( STRING0 , queryString ) ; \n \n CQLStatement statement = getStatement ( queryString ) ; \n + \n + return process ( statement , clientState ) ; \n + } \n + \n + public static CqlResult process ( CQLStatement statement , ClientState clientState ) \n + throws RecognitionException , UnavailableException , InvalidRequestException , TimedOutException , SchemaDisagreementException \n + { \n String keyspace = null ; \n \n SINGLE", "msg_token": "add method signature for processing a already parsed CQL statement"} {"diff": " class AppWidgetServiceImpl { \n return ; \n } \n \n - int bitmapMemoryUsage = views . estimateMemoryUsage ( ) ; \n + int bitmapMemoryUsage = NUMBER0 ; \n + if ( views != null ) { \n + bitmapMemoryUsage = views . estimateMemoryUsage ( ) ; \n + } \n if ( bitmapMemoryUsage > mMaxWidgetBitmapMemory ) { \n throw new IllegalArgumentException ( STRING0 + \n STRING1 + bitmapMemoryUsage + STRING2 +", "msg_token": "Fixing issue where you couldn t set null RemoteViews for a widget"} {"diff": " public class TokenBasedRememberMeServices implements RememberMeServices , Initial \n protected Cookie makeCancelCookie ( HttpServletRequest request ) { \n Cookie cookie = new Cookie ( ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY , null ) ; \n cookie . setMaxAge ( NUMBER0 ) ; \n - cookie . setPath ( request . getContextPath ( ) ) ; \n + cookie . setPath ( StringUtils . hasLength ( request . getContextPath ( ) ) ? request . getContextPath ( ) : STRING0 ) ; \n \n return cookie ; \n } \n public class TokenBasedRememberMeServices implements RememberMeServices , Initial \n protected Cookie makeValidCookie ( long expiryTime , String tokenValueBase64 , HttpServletRequest request ) { \n Cookie cookie = new Cookie ( ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY , tokenValueBase64 ) ; \n cookie . setMaxAge ( NUMBER1 * NUMBER1 * NUMBER2 * NUMBER3 * NUMBER4 ) ; SINGLE \n - cookie . setPath ( request . getContextPath ( ) ) ; \n + cookie . setPath ( StringUtils . hasLength ( request . getContextPath ( ) ) ? request . getContextPath ( ) : STRING0 ) ; \n \n return cookie ; \n }", "msg_token": "Fix context path handling"} {"diff": " public class MediaUtils { \n } \n return url . endsWith ( STRING0 ) || url . endsWith ( STRING1 ) || url . endsWith ( STRING2 ) || url . endsWith ( STRING3 ) || \n url . endsWith ( STRING4 ) || url . endsWith ( STRING5 ) || url . endsWith ( STRING6 ) || url . endsWith ( STRING7 ) || \n - url . endsWith ( STRING8 ) ; \n + url . endsWith ( STRING8 ) || url . contains ( STRING9 ) ; \n } \n \n public static boolean isAudio ( String url ) {", "msg_token": "Moved the check for video to within ImageUtils"} {"diff": " public class SentimentCostAndGradient extends AbstractCachingDiffFunction { \n SimpleMatrix fullVector = RNNUtils . concatenate ( leftVector , rightVector ) ; \n for ( int slice = NUMBER0 ; slice < size ; ++ slice ) { \n SimpleMatrix scaledFullVector = fullVector . scale ( deltaFull . get ( slice ) ) ; \n - deltaTensor = deltaTensor . plus ( Wt . getSlice ( slice ) . mult ( Wt . getSlice ( slice ) . transpose ( ) ) . mult ( scaledFullVector ) ) ; \n + deltaTensor = deltaTensor . plus ( Wt . getSlice ( slice ) . plus ( Wt . getSlice ( slice ) . transpose ( ) ) . mult ( scaledFullVector ) ) ; \n } \n return deltaTensor . plus ( WTDeltaNoBias ) ; \n }", "msg_token": "Fix a bug in the tensor delta down"} {"diff": " public class GitBlit implements ServletContextListener { \n } \n } \n \n + SINGLE \n + SINGLE \n + webxmlSettings . overrideSetting ( Keys . git . daemonPort , NUMBER0 ) ; \n + \n SINGLE \n configureContext ( webxmlSettings , base , true ) ; \n } else {", "msg_token": "Automatically disable the Git daemon on Express"} {"diff": " public class AccelListener extends Plugin implements SensorEventListener { \n if ( this . status == AccelListener . STOPPED ) { \n return ; \n } \n - Log . d ( STRING0 , STRING1 + accuracy ) ; \n this . accuracy = accuracy ; \n } \n \n public class AccelListener extends Plugin implements SensorEventListener { \n } \n return r ; \n } \n - } \n + }", "msg_token": "removed a trailing log"} {"diff": " public abstract class BuilderSupport { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public ValueBuilder constant ( Object value ) { \n + return Builder . constant ( value ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "allow a constant value to be easily used in an expression"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n public class GradleBackedArtifactBuilder implements ArtifactBuilder { \n public class GradleBackedArtifactBuilder implements ArtifactBuilder { \n rootDir . file ( STRING0 ) . writelns ( \n STRING1 , \n STRING2 , \n - String . format ( STRING3 , jarFile . getParentFile ( ) ) , \n + String . format ( STRING3 , GradleUtil . unbackslash ( jarFile . getParentFile ( ) ) , \n String . format ( STRING4 , jarFile . getName ( ) ) \n ) ; \n executer . inDirectory ( rootDir . asFile ( ) ) . withTasks ( STRING5 , STRING6 ) . run ( ) ;", "msg_token": "fixed generated script on windows"} {"diff": " public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport { \n resultType = ArrayList_TYPE ; \n } else { \n MethodNode mn = findMethodOrFail ( expression , type , name ) ; \n - resultType = mn . getReturnType ( ) ; \n + if ( mn != null ) { \n + resultType = mn . getReturnType ( ) ; \n + } else { \n + resultType = type ; \n + } \n } \n storeType ( expression , resultType ) ; \n }", "msg_token": "Fixed NPE when unary method is not found"} {"diff": " public class MetricRepositoryAutoConfiguration { \n static class MetricRepositoryConfiguration { \n \n @ bean \n - public InMemoryMetricRepository metricRepository ( ) { \n + public InMemoryMetricRepository actuatorMetricRepository ( ) { \n return new InMemoryMetricRepository ( ) ; \n }", "msg_token": "Change bean name metricReporitory actuatorMetricRepository"} {"diff": " public class TestEnvironment { \n SINGLE \n public void flop ( Throwable thr , String msg ) { \n try { \n - fail ( msg ) ; \n + fail ( msg , thr ) ; \n } catch ( Throwable t ) { \n asyncErrors . add ( thr ) ; \n } \n public class TestEnvironment { \n if ( e instanceof AssertionError ) { \n throw ( AssertionError ) e ; \n } else { \n - fail ( STRING0 + e ) ; \n + fail ( STRING0 + e . getMessage ( ) , e ) ; \n } \n } \n }", "msg_token": "tck carry the original exception to fail helps tracking exceptions"} {"diff": " public interface ResolutionStrategy { \n COMMENT \n @ incubating \n ResolutionStrategy componentSelection ( Action < ? super ComponentSelectionRules > action ) ; \n - COMMENT \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ incubating \n DependencySubstitutions getDependencySubstitution ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ incubating \n ResolutionStrategy dependencySubstitution ( Action < ? super DependencySubstitutions > action ) ; \n - COMMENT \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public interface ResolutionStrategyInternal extends ResolutionStrategy { \n \n public interface ResolutionStrategyInternal extends ResolutionStrategy { \n COMMENT \n ComponentSelectionRulesInternal getComponentSelection ( ) ; \n \n - DependencySubstitutionsInternal getDependencySubstitution ( ) ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Put dependency substitution back onto the ResolutionStrategy API"} {"diff": " public class MapContextMenu { \n menuController = new HistoryMenuController ( app , mapActivity , ( HistoryEntry ) object ) ; \n } else if ( object instanceof LatLon ) { \n if ( pointDescription . isParking ( ) ) { \n - menuController = new ParkingPositionController ( app , mapActivity , pointDescription , latLon ) ; \n + menuController = new ParkingPositionController ( app , mapActivity , pointDescription , ( LatLon ) object ) ; \n } \n } \n } else { \n public class ParkingPositionController extends MenuController { \n \n @ override \n public void saveEntityState ( Bundle bundle , String key ) { \n + bundle . putSerializable ( key , latLon ) ; \n } \n }", "msg_token": "Fix parking menu"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add license headers"} {"diff": " public abstract class AbstractFsBlobContainer extends AbstractBlobContainer { \n FileInputStream is = null ; \n try { \n is = new FileInputStream ( new File ( path , blobName ) ) ; \n - } catch ( FileNotFoundException e ) { \n - IOUtils . closeWhileHandlingException ( is ) ; \n - listener . onFailure ( e ) ; \n - return ; \n - } \n - try { \n int bytesRead ; \n while ( ( bytesRead = is . read ( buffer ) ) != - NUMBER0 ) { \n listener . onPartial ( buffer , NUMBER1 , bytesRead ) ; \n } \n - listener . onCompleted ( ) ; \n - } catch ( Exception e ) { \n + } catch ( Throwable e ) { \n IOUtils . closeWhileHandlingException ( is ) ; \n listener . onFailure ( e ) ; \n + return ; \n } \n + IOUtils . closeWhileHandlingException ( is ) ; \n + listener . onCompleted ( ) ; \n } \n } ) ; \n }", "msg_token": "Fix file handle leak in readBlob method of AbstractFsBlobContainer"} {"diff": " public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract { \n beginResponse ( ) ; \n try { \n final ORecordMetadata metadata = connection . database . getRecordMetadata ( rid ) ; \n - sendOk ( clientTxId ) ; \n - channel . writeRID ( metadata . getRecordId ( ) ) ; \n - channel . writeVersion ( metadata . getRecordVersion ( ) ) ; \n + if ( metadata != null ) { \n + sendOk ( clientTxId ) ; \n + channel . writeRID ( metadata . getRecordId ( ) ) ; \n + channel . writeVersion ( metadata . getRecordVersion ( ) ) ; \n + } else \n + { \n + throw new ODatabaseException ( String . format ( STRING0 , rid ) ) ; \n + } \n } finally { \n endResponse ( ) ; \n }", "msg_token": "calling remote protocol for non existent record metadata will cause the binary protocol to become corrupted"} {"diff": " public class NewDirectoryProjectAction extends AnAction implements DumbAware { \n NewDirectoryProjectDialog dlg = new NewDirectoryProjectDialog ( project ) ; \n dlg . show ( ) ; \n if ( dlg . getExitCode ( ) != DialogWrapper . OK_EXIT_CODE ) return ; \n - \n + generateProject ( project , dlg ) ; \n } \n \n protected Object showSettings ( DirectoryProjectGenerator generator , VirtualFile baseDir )", "msg_token": "fixed new project creation"} {"diff": " public class DatabaseReconciliatorTest { \n TestResult expectedTestResult = new TestResult ( ) ; \n \n expectedTestResult . winnersLastDatabaseVersionHeader = TestDatabaseUtil . createMapWithMachineKey ( new String [ ] { \n - STRING0 , STRING1 \n + STRING2 , STRING3 \n } ) . firstEntry ( ) ; \n \n SINGLE", "msg_token": "Fix expected output of test needs checking"} {"diff": " public class ActionItemBadge { \n \n } \n \n + public static void update ( final Activity activity , final MenuItem menu , Drawable icon , BadgeStyle style , int badgeCount ) { \n + update ( activity , menu , icon , style , badgeCount , null ) ; \n + } \n \n public static void update ( final Activity activity , final MenuItem menu , Drawable icon , BadgeStyle style , int badgeCount , ActionItemBadgeListener listener ) { \n if ( badgeCount == Integer . MIN_VALUE ) {", "msg_token": "Added missing update method signature"} {"diff": " public class Broadcastable { \n this . b = b ; \n this . message = message ; \n this . callerMessage = callerMessage ; \n + if ( callerMessage == null ) { \n + throw new NullPointerException ( STRING0 ) ; \n + } \n } \n \n COMMENT", "msg_token": "Prevent application doing bad things"} {"diff": " public class UIServiceImpl \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setConfigurationWindowVisible ( boolean visible ) \n - { \n - if ( isVisible ( ) && configurationFrame == null ) \n - configurationFrame = new ConfigurationFrame ( mainFrame ) ; \n - \n - if ( configurationFrame != null ) \n - configurationFrame . setVisible ( visible ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface UIService \n public boolean useMacOSXScreenMenuBar ( ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public void setConfigurationWindowVisible ( boolean visible ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove deprecated method to show config window"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ documented \n - @ retention ( RetentionPolicy . RUNTIME ) \n - @ target ( ElementType . METHOD ) \n + @ retention ( RUNTIME ) \n + @ target ( { METHOD , ANNOTATION_TYPE } ) \n public @ interface Rollback { \n \n COMMENT", "msg_token": "Provide meta annotation support for Rollback"} {"diff": " public class KafkaConsumer extends DefaultConsumer { \n } \n LOG . debug ( STRING0 , threadId , topicName ) ; \n consumer . unsubscribe ( ) ; \n + LOG . debug ( STRING1 , threadId ) ; \n + consumer . close ( ) ; \n } catch ( InterruptException e ) { \n getExceptionHandler ( ) . handleException ( STRING2 + threadId + STRING3 , e ) ; \n consumer . unsubscribe ( ) ; \n Thread . currentThread ( ) . interrupt ( ) ; \n } catch ( Exception e ) { \n getExceptionHandler ( ) . handleException ( STRING4 + threadId + STRING3 , e ) ; \n + } finally { \n + LOG . debug ( STRING1 , threadId ) ; \n + consumer . close ( ) ; \n } \n }", "msg_token": "Camel leaves Kafka consumers running after shutdown"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n break ; \n \n case TAP_OUTSIDE_STACK : { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + int stackId ; \n + synchronized ( mWindowMap ) { \n + stackId = ( ( DisplayContent ) msg . obj ) . stackIdFromPoint ( msg . arg1 , msg . arg2 ) ; \n + } \n + if ( stackId >= NUMBER0 ) { \n + try { \n + mActivityManager . setFocusedStack ( stackId ) ; \n + } catch ( RemoteException e ) { \n + } \n + } \n } \n break ; \n case NOTIFY_ACTIVITY_DRAWN :", "msg_token": "Revert Defer tap outside stack until multiwindows"} {"diff": " public class Model implements Disposable { \n COMMENT \n public Array < Animation > animation = new Array < Animation > ( ) ; \n \n + public Model ( ) { } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add model ctor"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AttrSelector { \n return element . attributes ( ) . get ( name ) . matches ( value ) ; \n } \n } \n - \n - \n - \n \n - \n - \n + public static class AttrNamePrefixSelector extends BaseAttrSelector implements Selector { \n \n + public AttrNamePrefixSelector ( String name ) { \n + super ( name , null ) ; \n + } \n \n + @ override \n + public boolean select ( Element element ) { \n + Attributes attrs = element . attributes ( ) ; \n + \n + for ( Attribute attr : attrs ) { \n + if ( attr . getKey ( ) . startsWith ( name ) ) \n + return true ; \n + } \n + \n + return false ; \n + } \n + } \n }", "msg_token": "added AttrSelector AttrNamePrefixSelector"} {"diff": " public final class SmackConfiguration { \n } \n \n private static void readFile ( InputStream cfgFileStream ) { \n - XmlPullParser parser = new MXParser ( ) ; \n try { \n + XmlPullParser parser = new MXParser ( ) ; \n parser . setFeature ( XmlPullParser . FEATURE_PROCESS_NAMESPACES , true ) ; \n parser . setInput ( cfgFileStream , STRING0 ) ; \n int eventType = parser . getEventType ( ) ;", "msg_token": "Move new MXParser in try catch block"} {"diff": " public class PluginClassloaderFactory { \n . addInclusion ( STRING0 ) \n . addInclusion ( STRING1 ) \n . addInclusion ( STRING2 ) \n + . addInclusion ( STRING3 ) \n . addInclusion ( STRING4 ) \n \n SINGLE", "msg_token": "Keep compatibility with deprecated JFreeChart"} {"diff": " public class MapActivityActions implements DialogProvider { \n } else if ( which == NUMBER0 ) { \n int sz = targetPointsHelper . getIntermediatePoints ( ) . size ( ) ; \n LatLon pt = targetPointsHelper . getPointToNavigate ( ) ; \n - settings . insertIntermediatePoint ( pt . getLatitude ( ) , pt . getLongitude ( ) , \n - settings . getPointNavigateDescription ( ) , sz , true ) ; \n - settings . setPointToNavigate ( lat , lon , true , name ) ; \n + settings . insertIntermediatePoint ( lat , lon , name , sz , true ) ; \n + settings . setPointToNavigate ( pt . getLatitude ( ) , pt . getLongitude ( ) , true , settings . getPointNavigateDescription ( ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } else { \n settings . insertIntermediatePoint ( lat , lon , name , NUMBER1 , true ) ; \n }", "msg_token": "try fix bug of Ad as last waypoint code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ChangeSignatureDialogBase < ParamInfo extends ParameterInfo , \n \n protected abstract class ParametersListTable extends JBListTable { \n public ParametersListTable ( ) { \n - super ( myParametersTable ) ; \n + super ( myParametersTable , ChangeSignatureDialogBase . this . getDisposable ( ) ) ; \n } \n \n @ override", "msg_token": "Pass DialogWrapper s disposable to the list table in Change Signature dialog"} {"diff": " \n COMMENT \n COMMENT \n package NAMESPACE ; \n - \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - package NAMESPACE ; \n - \n + package NAMESPACE ;", "msg_token": "fixed package info"} {"diff": " public class JRubyI18nTest { \n @ test \n public void age_from_now ( ) throws Exception { \n Date date = new Date ( ) ; \n - jRubyI18n . ageFromNow ( new Date ( ) ) ; \n + jRubyI18n . ageFromNow ( date ) ; \n verify ( i18n ) . ageFromNow ( any ( Locale . class ) , eq ( date ) ) ; \n }", "msg_token": "Fix faulty test"} {"diff": " href = STRING0 > Traceview : A Graphical Lo \n COMMENT \n COMMENT \n public static long countInstancesOfClass ( Class cls ) { \n - return VMDebug . countInstancesOfClass ( cls ) ; \n + return VMDebug . countInstancesOfClass ( cls , true ) ; \n } \n \n COMMENT", "msg_token": "Tracking merge of dalvik dev to master"} {"diff": " public class OptimizeImportsAction extends AnAction { \n if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n includeSubdirectories = processDirectory = false ; \n } \n - else if ( ! EditorSettingsExternalizable . getInstance ( ) . getOptions ( ) . SHOW_OPIMIZE_IMPORTS_DIALOG ) { \n + else if ( ! EditorSettingsExternalizable . getInstance ( ) . getOptions ( ) . SHOW_OPIMIZE_IMPORTS_DIALOG && file != null ) { \n includeSubdirectories = processDirectory = false ; \n } \n else {", "msg_token": "Optimize imports invoked on directory reformats entire project"} {"diff": " public class DiagnosticGroups { \n + STRING0 \n + STRING1 \n + STRING2 \n - + STRING3 ; \n + + STRING4 ; \n \n public static final DiagnosticGroup GLOBAL_THIS = \n DiagnosticGroups . registerGroup ( STRING5 , \n public class DiagnosticGroups { \n CheckAccessControls . DEPRECATED_CLASS , \n CheckAccessControls . DEPRECATED_CLASS_REASON ) ; \n \n + public static final DiagnosticGroup UNDERSCORE = \n + DiagnosticGroups . registerGroup ( STRING6 , SINGLE \n + CheckJSDocStyle . MUST_BE_PRIVATE , \n + CheckJSDocStyle . MUST_HAVE_TRAILING_UNDERSCORE ) ; \n + \n public static final DiagnosticGroup VISIBILITY = \n DiagnosticGroups . registerGroup ( STRING7 , \n CheckAccessControls . BAD_PRIVATE_GLOBAL_ACCESS ,", "msg_token": "Make new underscore warnings suppressible"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JUnitRunner { \n tests . remove ( DeepLearningProstateTest . Long . class ) ; \n tests . remove ( GLMRandomTest . Short . class ) ; \n tests . remove ( GLMRandomTest . Long . class ) ; \n - tests . remove ( ParserTest . ParseAllSmalldata . class ) ; \n SINGLE \n tests . remove ( TreeTestWithBalanceAndCrossVal . class ) ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JUnitRunnerDebug { \n SINGLE \n SINGLE \n \n - tests . add ( ParserTest . ParseAllSmalldata . class ) ; \n tests . add ( GLMRandomTest . Short . class ) ; \n SINGLE \n SINGLE", "msg_token": "Remove some NEW VA parse tests"} {"diff": " public class Delay extends Action { \n } \n \n @ override public Actor getTarget ( ) { \n - action . getTarget ( ) ; \n - return null ; \n + return action . getTarget ( ) ; \n } \n }", "msg_token": "fixed Delay getActor"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ target ( METHOD ) \n @ retention ( RUNTIME ) \n @ documented", "msg_token": "Added docs for Transactional"} {"diff": " public class ColorpickerRenderer extends AbstractWidgetRenderer { \n } \n String label = getLabel ( cp ) ; \n String purelabel = label ; \n + purelabel = purelabel . replaceAll ( STRING0 , STRING1 ) ; \n if ( label . contains ( STRING2 ) ) { \n purelabel = purelabel . substring ( NUMBER0 , label . indexOf ( STRING2 ) ) ; \n }", "msg_token": "Fixed javascript that was breaking the colorpicker"} {"diff": " public class LatencyContainer { \n } \n \n public static LatencyContainer latency ( long latency ) { \n - LatencyContainer latencyContainer = new LatencyContainer ( ) ; \n - latencyContainer . latency = latency ; \n - return latencyContainer ; \n + return latencyWithUnit ( latency , TimeUnit . MILLISECONDS ) ; \n } \n \n public static LatencyContainer latencyWithUnit ( long latency , TimeUnit timeUnit ) {", "msg_token": "unified latency with unit implementation in latency container"} {"diff": " public class JavaSourceJar extends AbstractBuildRule { \n \n @ override \n protected RuleKey . Builder appendDetailsToRuleKey ( RuleKey . Builder builder ) { \n - return builder . setReflectively ( STRING0 , getResolver ( ) . filterInputsToCompareToOutput ( sources ) ) ; \n + return builder ; \n } \n \n @ override", "msg_token": "Remove unnecessary rule key inclusion"} {"diff": " public class NodeInfo extends NodeOperationResponse { \n this . jvm = jvm ; \n this . network = network ; \n this . transport = transport ; \n + this . http = http ; \n } \n \n COMMENT", "msg_token": "set http on NodeInfo instances if it is passed in the constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class JavaFileElementType extends IStubFileElementType < PsiJavaFileStub > { \n - public static final int STUB_VERSION = NUMBER0 ; \n + public static final int STUB_VERSION = NUMBER1 ; \n \n public JavaFileElementType ( ) { \n super ( STRING0 , StdLanguages . JAVA ) ;", "msg_token": "update Java stub version to ensure that cls parameter names are picked up"} {"diff": " public class CompileDriver { \n LOG . assertTrue ( outputPath . exists ( ) ) ; \n } \n if ( ! deleteFile ( outputPath ) ) { \n - if ( isTestMode && outputPath . exists ( ) ) { \n - LOG . error ( STRING0 + outputPath . getPath ( ) ) ; \n + if ( isTestMode ) { \n + if ( outputPath . exists ( ) ) { \n + LOG . error ( STRING0 + outputPath . getPath ( ) ) ; \n + } \n + else { \n + CompilerManagerImpl . addDeletedPath ( outputPath . getPath ( ) ) ; \n + } \n } \n continue ; \n }", "msg_token": "this will probably fix undeterministic tests behaviour"} {"diff": " public final class ComputationState { \n classcols [ k ++ ] = cols [ i ++ ] - c * N ; \n classcols = ArrayUtils . sortedMerge ( oldActiveCols , Arrays . copyOf ( classcols , k ) ) ; \n sum += classcols . length ; \n - if ( classcols . length < NUMBER0 ) \n - System . out . println ( STRING0 + c + STRING1 + Arrays . toString ( classcols ) ) ; \n _activeDataMultinomial [ c ] = _dinfo . filterExpandedColumns ( classcols ) ; \n - \n } \n assert _parms . _max_active_predictors == - NUMBER1 || sum <= _parms . _max_active_predictors + _nclasses : STRING2 + sum + STRING3 + _parms . _max_active_predictors + STRING4 + _nclasses ; \n _allIn = sum == N * _nclasses ;", "msg_token": "removed debug print"} {"diff": " public class MvelScriptEngineService extends AbstractComponent implements Script \n \n @ override \n public Object compile ( String script ) { \n - return MVEL . compileExpression ( script , new ParserContext ( parserConfiguration ) ) ; \n + return MVEL . compileExpression ( script . trim ( ) , new ParserContext ( parserConfiguration ) ) ; \n } \n \n @ override", "msg_token": "Trimming MVEL scripts before compiling them"} {"diff": " public class TransformUncorrelatedInPredicateSubqueryToSemiJoin \n replaceInPredicates ( node . getPredicate ( ) ) ) ; \n } \n \n - private Expression replaceInPredicates ( Expression expression ) \n - { \n - for ( Map < InPredicate , Expression > inPredicateMapping : inPredicateMappings ) { \n - expression = replaceExpression ( expression , inPredicateMapping ) ; \n - } \n - return expression ; \n - } \n - \n @ override \n public PlanNode visitProject ( ProjectNode node , RewriteContext < Void > context ) \n { \n public class TransformUncorrelatedInPredicateSubqueryToSemiJoin \n } \n return assignmentsBuilder . build ( ) ; \n } \n + \n + private Expression replaceInPredicates ( Expression expression ) \n + { \n + for ( Map < InPredicate , Expression > inPredicateMapping : inPredicateMappings ) { \n + expression = replaceExpression ( expression , inPredicateMapping ) ; \n + } \n + return expression ; \n + } \n } \n \n private static List < InPredicate > extractApplyInPredicates ( Collection < Expression > expressions )", "msg_token": "Move replaceInPredicates method under the usage"} {"diff": " abstract class PersistentEnumeratorBase < Data > implements Forceable , Closeable { \n catch ( Throwable e ) { \n markCorrupted ( ) ; \n LOG . info ( e ) ; \n - throw new RuntimeException ( e ) ; \n + throw new IOException ( e ) ; \n } \n \n if ( myDoCaching && id != NULL_ID ) {", "msg_token": "do not swallow corruption reason"} {"diff": " class Validator { \n ELNode . Nodes el = ELParser . parse ( value ) ; \n \n if ( el . containsEL ( ) && ! pageInfo . isELIgnored ( ) \n - && ( ! pageInfo . isDeferredSyntaxAllowedAsLiteral ( ) && value . startsWith ( STRING0 ) ) ) { \n + && ( ( ! pageInfo . isDeferredSyntaxAllowedAsLiteral ( ) && value . startsWith ( STRING0 ) ) \n + || value . startsWith ( STRING1 ) ) ) { \n + \n validateFunctions ( el , n ) ; \n \n result = new Node . JspAttribute ( tai , qName , uri ,", "msg_token": "Fix a regression on classic EL expressions inside elements"} {"diff": " public class Runner { \n SINGLE \n FileAppender update = new FileAppender ( ) ; \n \n - update . setFile ( tmpDir + STRING0 ) ; \n + update . setFile ( new File ( tmpDir , STRING0 ) . getAbsolutePath ( ) ) ; \n update . setLayout ( new PatternLayout ( STRING1 ) ) ; \n update . setThreshold ( Level . ALL ) ; \n update . setAppend ( true ) ; \n update . activateOptions ( ) ; \n \n FileAppender updateError = new FileAppender ( ) ; \n - updateError . setFile ( tmpDir + STRING2 ) ; \n + updateError . setFile ( new File ( tmpDir , STRING2 ) . getAbsolutePath ( ) ) ; \n updateError . setLayout ( new PatternLayout ( STRING1 ) ) ; \n updateError . setThreshold ( Level . ERROR ) ; \n SINGLE", "msg_token": "fixed paths to updater log files"} {"diff": " public class PrintfFormat { \n public String form ( char value ) { \n switch ( fmt ) { \n case STRING0 : \n - return alternate ? STRING1 + form ( ( short ) value ) : pad ( String . valueOf ( value ) ) ; \n + return alternate ? STRING1 + pad ( Printf . str ( STRING2 , ( short ) value ) ) : pad ( String . valueOf ( value ) ) ; \n case STRING3 : \n case STRING4 : \n case STRING5 :", "msg_token": "Fix implementation of c"} {"diff": " class Elasticsearch extends Command { \n private final OptionSpec < String > pidfileOption ; \n private final OptionSpec < KeyValuePair > propertyOption ; \n \n - COMMENT \n + SINGLE \n Elasticsearch ( ) { \n super ( STRING0 ) ; \n SINGLE", "msg_token": "Fix javadoc comment on Elasticsearch init"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FrameVariablesTree extends DebuggerTree { \n if ( myVisibleLocals . contains ( var . getName ( ) ) ) { \n myVars . add ( var . getName ( ) ) ; \n } \n - else if ( var instanceof PsiLocalVariable ) { \n - myExpressions . add ( new TextWithImportsImpl ( reference ) ) ; \n + else { \n + SINGLE \n + if ( ! Comparing . equal ( PsiTreeUtil . getParentOfType ( reference , PsiClass . class ) , \n + PsiTreeUtil . getParentOfType ( var , PsiClass . class ) ) ) { \n + myExpressions . add ( new TextWithImportsImpl ( reference ) ) ; \n + } \n } \n } \n }", "msg_token": "do not show local variables before they are available"} {"diff": " public abstract class BuilderSupport extends GroovyObjectSupport { \n protected Object getCurrent ( ) { \n return current ; \n } \n + \n + protected void setCurrent ( Object current ) { \n + this . current = current ; \n + } \n }", "msg_token": "added helper method for builder implementations"} {"diff": " public class SignChangeEvent extends BlockEvent implements Cancellable { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Player getPlayer ( ) { \n + return player ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public String [ ] getLines ( ) \n - { \n + public String [ ] getLines ( ) { \n return lines ; \n }", "msg_token": "Added getPlayer method to SignChangeEvent"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class RecordOutputFormat extends FileOutputFormat \n {", "msg_token": "extended JavaDoc of RecordOutputFormat"} {"diff": " public class UnicastZenPing extends AbstractLifecycleComponent < ZenPing > implemen \n SINGLE \n SINGLE \n SINGLE \n - if ( pingResponse . master ( ) != null ) { \n + SINGLE \n + if ( existingResponse . master ( ) == null || pingResponse . master ( ) != null ) { \n responses . put ( pingResponse . node ( ) , pingResponse ) ; \n } \n } \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ clusterscope ( scope = Scope . TEST , numDataNodes = NUMBER0 ) \n - @ lucenetestcase.awaitsfix ( bugUrl = STRING0 ) \n public class IndicesLifecycleListenerTests extends ElasticsearchIntegrationTest { \n \n @ test", "msg_token": "restore preference to latest unicast pings describing the same node"} {"diff": " import static NAMESPACE ; \n public class DynamicReferencesTest extends ActorBaseTest \n { \n \n - public static interface AptUnfriendly extends Actor \n + public interface AptUnfriendly extends Actor \n { \n Task < String > hello ( ) ; \n } \n public class DynamicReferencesTest extends ActorBaseTest \n assertEquals ( STRING0 , ref . hello ( ) . join ( ) ) ; \n } \n \n + @ test ( expected = IllegalArgumentException . class ) \n + public void testIllegalRef ( ) { \n + AptUnfriendly ref = Actor . getReference ( AptUnfriendlyActor . class , STRING1 ) ; \n + } \n + \n }", "msg_token": "Rejecting calls to Actor getReference with actor implementation classes"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocalScheduler extends AbstractScheduler implements JobStatusListen \n return ; \n } \n \n - SINGLE \n - try { \n - allocatedResource . getInstance ( ) . checkLibraryAvailability ( jobID ) ; \n - } catch ( IOException ioe ) { \n - LOG . error ( STRING0 + StringUtils . stringifyException ( ioe ) ) ; \n - } \n - \n synchronized ( this . jobQueue ) { \n \n final ExecutionGraph eg = getExecutionGraphByID ( jobID ) ;", "msg_token": "Removed deprecated code"} {"diff": " public class PrivacyService { \n } \n if ( mDb != null && mDb . getVersion ( ) != NUMBER0 ) { \n mDb = null ; \n - Util . log ( null , Log . ERROR , STRING0 ) ; \n + Util . log ( null , Log . ERROR , STRING1 + mDb . getVersion ( ) ) ; \n } \n \n if ( mDb == null )", "msg_token": "Log wrong database version"} {"diff": " public class AnalyticsTrackerMixpanel extends Tracker { \n mixpanelInstructionsForEventName ( STRING0 ) ; \n instructions . setSuperPropertyAndPeoplePropertyToIncrement ( STRING1 ) ; \n break ; \n + case NOTIFICATION_SWIPE_PAGE_CHANGED : \n + instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n + mixpanelInstructionsForEventName ( STRING2 ) ; \n + instructions . setSuperPropertyAndPeoplePropertyToIncrement ( STRING3 ) ; \n + break ; \n case NOTIFICATION_LIKED : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n mixpanelInstructionsForEventName ( STRING4 ) ; \n public class AnalyticsTrackerNosara extends Tracker { \n return STRING5 ; \n case NOTIFICATION_FLAGGED_AS_SPAM : \n return STRING6 ; \n + case NOTIFICATION_SWIPE_PAGE_CHANGED : \n + return STRING3 ; \n case NOTIFICATION_LIKED : \n case NOTIFICATION_QUICK_ACTIONS_LIKED : \n return STRING7 ;", "msg_token": "added proper analytics tracking handling for Mixpanel and Nosara"} {"diff": " public class OSProcessHandler extends ProcessHandler { \n } \n catch ( InterruptedException ignored ) { \n } \n - catch ( ExecutionException ignored ) { \n + catch ( ExecutionException ex ) { \n + LOG . info ( ex ) ; \n } \n finally { \n onOSProcessTerminated ( exitCode ) ;", "msg_token": "do not die silently log reason instead"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class SelectorManager implements Runnable { \n \n private final Selector selector ; \n \n - private final BlockingQueue < SocketChannel > socketChannelQueue ; \n + private final Queue < SocketChannel > socketChannelQueue ; \n \n private final RequestHandlerFactory requestHandlerFactory ; \n \n public class SelectorManager implements Runnable { \n public SelectorManager ( RequestHandlerFactory requestHandlerFactory , int socketBufferSize ) \n throws IOException { \n this . selector = Selector . open ( ) ; \n - this . socketChannelQueue = new LinkedBlockingQueue < SocketChannel > ( ) ; \n + this . socketChannelQueue = new ConcurrentLinkedQueue < SocketChannel > ( ) ; \n this . requestHandlerFactory = requestHandlerFactory ; \n this . socketBufferSize = socketBufferSize ; \n }", "msg_token": "Using ConcurrentLinkedQueue as suggested by Ismael"} {"diff": " public class AuthenticationManager implements IAuthenticationManager { \n userCookie = new Cookie ( Constants . NAME , cookie ) ; \n SINGLE \n userCookie . setMaxAge ( ( int ) TimeUnit . DAYS . toSeconds ( NUMBER0 ) ) ; \n + \n + SINGLE \n + userCookie . setHttpOnly ( true ) ; \n + SINGLE \n + userCookie . setSecure ( httpsOnly ( ) ) ; \n } \n } \n String path = STRING0 ; \n public class AuthenticationManager implements IAuthenticationManager { \n } \n } \n \n + \n + private boolean httpsOnly ( ) { \n + int port = settings . getInteger ( Keys . server . httpPort , NUMBER1 ) ; \n + int tlsPort = settings . getInteger ( Keys . server . httpsPort , NUMBER1 ) ; \n + return ( port <= NUMBER1 && tlsPort > NUMBER1 ) || \n + ( port > NUMBER1 && tlsPort > NUMBER1 && settings . getBoolean ( Keys . server . redirectToHttpsPort , true ) ) ; \n + } \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Set secure user cookies and only for HTTP"} {"diff": " public class MapContextMenuFragment extends Fragment { \n \n int dy = NUMBER0 ; \n if ( ! menu . isLandscapeLayout ( ) && menuTopViewHeight != NUMBER0 ) { \n - dy = newMenuTopViewHeight - menuTopViewHeight ; \n + dy = Math . max ( NUMBER0 , newMenuTopViewHeight - menuTopViewHeight ) ; \n } \n menuTopViewHeight = newMenuTopViewHeight ; \n menuTitleHeight = menuTopShadowHeight + menuTopShadowAllHeight + dy ;", "msg_token": "Fix context menu layout"} {"diff": " public final class TimelineSnapshot implements \n break ; \n case ack : \n case ackack : \n + case fetchack : \n case exec : \n case heartbeat : \n SINGLE", "msg_token": "Updated Timeline to handle fetchack message type"} {"diff": " public class OVariableParser { \n \n if ( resolved == null ) { \n OLogManager . instance ( ) . warn ( null , STRING0 , var ) ; \n - resolved = STRING1 ; \n + SINGLE \n } \n \n if ( pre . length ( ) > NUMBER0 || post . length ( ) > NUMBER0 ) { \n - final String path = pre + resolved . toString ( ) + post ; \n + final String path = pre + ( resolved != null ? resolved . toString ( ) : STRING2 ) + post ; \n return resolveVariables ( path , iBegin , iEnd , iListener ) ; \n } \n - \n + \n return resolved ; \n } \n }", "msg_token": "variable parser doesn t return null but NULL if the variables doesn t exist"} {"diff": " public abstract class AbstractTestDistributedQueries \n public void testCompatibleTypeChangeForView ( ) \n throws Exception \n { \n - assertUpdate ( STRING0 , NUMBER0 ) ; \n - assertUpdate ( STRING1 ) ; \n + assertUpdate ( STRING2 , NUMBER0 ) ; \n + assertUpdate ( STRING3 ) ; \n \n - assertQuery ( STRING4 , STRING5 ) ; \n + assertQuery ( STRING6 , STRING5 ) ; \n \n SINGLE \n - assertUpdate ( STRING7 ) ; \n - assertUpdate ( STRING8 , NUMBER0 ) ; \n + assertUpdate ( STRING9 ) ; \n + assertUpdate ( STRING10 , NUMBER0 ) ; \n \n - assertQuery ( STRING4 , STRING11 ) ; \n + assertQuery ( STRING6 , STRING11 ) ; \n \n - assertUpdate ( STRING12 ) ; \n - assertUpdate ( STRING7 ) ; \n + assertUpdate ( STRING13 ) ; \n + assertUpdate ( STRING9 ) ; \n } \n \n @ test", "msg_token": "Use unique view and table name in test"} {"diff": " public class RemoteExecutor extends PlanExecutor { \n \n private final InetSocketAddress address ; \n \n - \n public RemoteExecutor ( String hostname , int port ) { \n this ( hostname , port , Collections . < String > emptyList ( ) ) ; \n } \n public class RemoteExecutor extends PlanExecutor { \n this . jarFiles = jarFiles ; \n this . address = inet ; \n } \n - \n \n public static InetSocketAddress getInetFromHostport ( String hostport ) { \n SINGLE \n public class RemoteExecutor extends PlanExecutor { \n @ override \n public JobExecutionResult executePlan ( Plan plan ) throws Exception { \n JobWithJars p = new JobWithJars ( plan , this . jarFiles ) ; \n - \n - Client c = new Client ( this . address , new Configuration ( ) , p . getUserCodeClassLoader ( ) ) ; \n - return c . run ( p , - NUMBER0 , true ) ; \n + return executePlanWithJars ( p ) ; \n } \n \n public JobExecutionResult executePlanWithJars ( JobWithJars p ) throws Exception {", "msg_token": "Remove dup code fromRemoteExecutor executePlan method"} {"diff": " public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase \n } \n } \n \n + SINGLE \n + SINGLE \n private void instantiateIndexIfNeeded ( ) \n { \n if ( Boolean . parseBoolean ( config . get ( STRING0 ) ) ) \n public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase \n txs [ i ++ ] = new Pair < String , Long > ( \n dataSource . getName ( ) , dataSource . getLastCommittedTxId ( ) ) ; \n } \n - SINGLE \n return new SlaveContext ( machineId , eventIdentifier , txs ) ; \n } \n \n public class MasterServer extends CommunicationProtocol implements ChannelPipeli \n { \n public void run ( ) \n { \n - SINGLE \n + checkForDeadConnections ( ) ; \n } \n } , DEAD_CONNECTIONS_CHECK_INTERVAL , DEAD_CONNECTIONS_CHECK_INTERVAL , TimeUnit . SECONDS ) ; \n }", "msg_token": "Enabled checking of dead connections again"} {"diff": " public class SimpleIntersectionTraversalCostModel extends AbstractIntersectionTr \n SINGLE \n if ( isRightTurn ( turnAngle ) ) { \n turnCost = expectedRightAtLightTimeSec ; \n - probabilityStopToTurn = rightTurnActiveProb ; \n + probabilityStopToTurn = FLOAT0 - rightTurnActiveProb ; \n } else if ( isLeftTurn ( turnAngle ) ) { \n turnCost = expectedLeftAtLightTimeSec ; \n - probabilityStopToTurn = leftTurnActiveProb ; \n + probabilityStopToTurn = FLOAT0 - leftTurnActiveProb ; \n } else { \n turnCost = expectedStraightAtLightTimeSec ; \n - probabilityStopToTurn = continueStraightActiveProb ; \n + probabilityStopToTurn = FLOAT0 - continueStraightActiveProb ; \n } \n } else { \n SINGLE", "msg_token": "Fix mathematical error in the travesal cost model"} {"diff": " public class TestNGReferenceContributor extends PsiReferenceContributor { \n if ( cls != null ) { \n PsiMethod [ ] methods = cls . findMethodsByName ( methodName , true ) ; \n for ( PsiMethod method : methods ) { \n - if ( TestNGUtil . hasTest ( method ) ) { \n + if ( TestNGUtil . hasTest ( method ) || TestNGUtil . hasConfig ( method ) ) { \n return method ; \n } \n }", "msg_token": "allow navigation on depends config as well as test"} {"diff": " public class DropwizardAppRule < C extends Configuration > implements TestRule { \n } finally { \n resetConfigOverrides ( ) ; \n jettyServer . stop ( ) ; \n + jettyServer = null ; \n } \n } \n } ;", "msg_token": "nullify jettyServer on stop so that shared test base classes with BeforeClass DropWizardAppRules can start new jetty servers"} {"diff": " public class MapActivityActions implements DialogProvider { \n standardId == R . string . context_menu_item_destination_point ) { \n boolean dest = standardId == R . string . context_menu_item_destination_point ; \n String selected = mapActivity . getMapLayers ( ) . getContextMenuLayer ( ) . getSelectedObjectName ( ) ; \n - String target = null ; \n - if ( dest && selected != null ) { \n - target = selected . replaceAll ( getString ( R . string . context_menu_item_destination_point ) , STRING0 ) ; \n - } \n - targets . navigateToPoint ( new LatLon ( latitude , longitude ) , true , \n - dest ? - NUMBER0 : targets . getIntermediatePoints ( ) . size ( ) , dest ? target : selected ) ; \n + targets . navigateToPoint ( new LatLon ( latitude , longitude ) , true , \n + dest ? - NUMBER0 : targets . getIntermediatePoints ( ) . size ( ) , dest ? STRING0 : selected ) ; \n if ( targets . getIntermediatePoints ( ) . size ( ) > NUMBER1 ) { \n openIntermediatePointsDialog ( ) ; \n }", "msg_token": "Fixed bug with Destination multiplies many times on one point"} {"diff": " public abstract class Engine implements Closeable { \n public abstract boolean hasUncommittedChanges ( ) ; \n \n public static class CommitId implements Writeable { \n - private byte [ ] id ; \n + \n + private final byte [ ] id ; \n + \n public CommitId ( byte [ ] id ) { \n assert id != null ; \n this . id = Arrays . copyOf ( id , id . length ) ; \n public abstract class Engine implements Closeable { \n \n @ override \n public CommitId readFrom ( StreamInput in ) throws IOException { \n - byte [ ] bytes = in . readByteArray ( ) ; \n - return new CommitId ( bytes ) ; \n + return new CommitId ( in ) ; \n } \n \n @ override", "msg_token": "Make commitID byte final"} {"diff": " public abstract class StepBasedLoadProcess implements LoadProcess { \n \n @ override \n public final float getProgress ( ) { \n - return ( float ) stepsComplete / totalSteps ; \n + return ( float ) Math . min ( totalSteps , stepsComplete ) / totalSteps ; \n } \n } \n public class UIProgressBar extends UIDisplayContainer { \n public void setValue ( int value ) { \n this . value = TeraMath . clamp ( value , minValue , maxValue ) ; \n \n - progressLine . updateProgress ( value , range ) ; \n + progressLine . updateProgress ( this . value , range ) ; \n \n notifyChangedListeners ( ) ; \n } \n public class UIProgressBar extends UIDisplayContainer { \n \n layout ( ) ; \n } \n - \n + \n COMMENT \n Event listeners \n COMMENT", "msg_token": "Added some extra checks around the progress bar"} {"diff": " public class SamplesActivity extends Activity { \n } \n } ) ; \n \n + observableSample . moreNumbers ( ) . toList ( ) . toBlocking ( ) . single ( ) ; \n + \n observableSample . names ( ) \n . subscribeOn ( Schedulers . newThread ( ) ) \n . observeOn ( AndroidSchedulers . mainThread ( ) ) \n public class ObservableSample { \n return Observable . just ( NUMBER0 , NUMBER1 ) ; \n } \n \n + @ rxlogobservable \n + public Observable < Integer > moreNumbers ( ) { \n + return Observable . just ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 ) ; \n + } \n + \n @ rxlogobservable ( STREAM ) \n public Observable < String > names ( ) { \n return Observable . just ( STRING0 , STRING1 ) ;", "msg_token": "Add Observable blocking sample"} {"diff": " public interface World { \n public boolean createExplosion ( double x , double y , double z , float power ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean createExplosion ( double x , double y , double z , float power , boolean setFire ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface World { \n public boolean createExplosion ( Location loc , float power ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean createExplosion ( Location loc , float power , boolean setFire ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added setFire option to createExplosion methods"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractBlazeQueryEnvironment < T > implements QueryEnvironme \n resolvedTargetPatterns . putAll ( preloadOrThrow ( caller , ImmutableList . of ( pattern ) ) ) ; \n } catch ( TargetParsingException e ) { \n SINGLE \n - resolvedTargetPatterns . put ( pattern , ImmutableSet . < Target > of ( ) ) ; \n reportBuildFileError ( caller , e . getMessage ( ) ) ; \n } \n }", "msg_token": "Remove empty put when preloadOrThrow throws a TargetParsingException"} {"diff": " public interface IEntityModifier extends IModifier < IEntity > { \n SINGLE \n SINGLE \n SINGLE \n + \n + @ override \n + public IEntityModifier clone ( ) ; \n \n SINGLE \n SINGLE", "msg_token": "Added IEntityModifier clone method so that cloning returns the actual type instead of the generic type it extends"} {"diff": " public class DateHistogramOffsetIT extends ESIntegTestCase { \n protected Settings nodeSettings ( int nodeOrdinal ) { \n return Settings . builder ( ) \n . put ( super . nodeSettings ( nodeOrdinal ) ) \n - . put ( AssertingLocalTransport . ASSERTING_TRANSPORT_MIN_VERSION_KEY . getKey ( ) , Version . V_1_4_0_Beta1 ) . build ( ) ; \n + . put ( AssertingLocalTransport . ASSERTING_TRANSPORT_MIN_VERSION_KEY . getKey ( ) , Version . V_1_4_0_Beta1 . toString ( ) ) . build ( ) ; \n } \n \n @ before \n public class ReproduceInfoPrinter extends RunListener { \n if ( System . getProperty ( STRING0 ) != null && ! System . getProperty ( STRING0 ) . isEmpty ( ) ) { \n appendOpt ( STRING0 , STRING1 + System . getProperty ( STRING0 ) + STRING1 ) ; \n } \n - appendOpt ( STRING2 , Locale . getDefault ( ) . toString ( ) ) ; \n + appendOpt ( STRING2 , Locale . getDefault ( ) . toLanguageTag ( ) ) ; \n appendOpt ( STRING3 , TimeZone . getDefault ( ) . getID ( ) ) ; \n return this ; \n }", "msg_token": "Fix repro line for tests to use language tag"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class DefaultFileWatcherFactory implements FileWatcherFactory , Stoppable { \n + public static final int STOP_TIMEOUT_SECONDS = NUMBER0 ; \n private final StoppableExecutor executor ; \n private final JavaVersion javaVersion ; \n private final ClassLoader classLoader ; \n public class DefaultFileWatcherFactory implements FileWatcherFactory , Stoppable \n \n @ override \n public void stop ( ) { \n - executor . stop ( ) ; \n + executor . stop ( STOP_TIMEOUT_SECONDS , TimeUnit . SECONDS ) ; \n } \n \n @ override", "msg_token": "Add timeout for stopping filewatcher executor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " public abstract class RequestBuilderBase < T extends RequestBuilderBase < T > > { \n } \n \n public T addHeader ( String name , String value ) { \n + if ( value == null ) { \n + logger . warn ( STRING0 ) ; \n + value = STRING1 ; \n + } \n + \n request . headers . add ( name , value ) ; \n return derived . cast ( this ) ; \n }", "msg_token": "Set a null header to empty instead of null but log a warning"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public abstract class SimpleChannelInboundHandler < I > extends ChannelInboundHandlerAdapter { \n \n public abstract class SimpleChannelInboundHandler < I > extends ChannelInboundHandl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add an important notice about future migration issue in SimpleChannelInboundHandler"} {"diff": " public class ReplInterpreter { \n scriptInstance = scriptInstanceConstructor . newInstance ( constructorArgs ) ; \n } \n catch ( Throwable e ) { \n - return LineResult . error ( Throwables . getStackTraceAsString ( e ) ) ; \n + return LineResult . error ( Throwables . getStackTraceAsString ( e . getCause ( ) ) ) ; \n } \n Field rvField = scriptClass . getDeclaredField ( STRING0 ) ; \n rvField . setAccessible ( true ) ;", "msg_token": "display the original cause of InvocationTargetException"} {"diff": " extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , I , IPK , T725 , \n \n ResultSet rs = stmt . executeQuery ( ) ; \n Result < Record > result = create ( ) . fetch ( rs ) ; \n - assertEquals ( BOOK_IDS , result . getValues ( TBook_ID ( ) , Integer . class ) ) ; \n + assertEquals ( BOOK_IDS , result . getValues ( NUMBER0 , Integer . class ) ) ; \n assertEquals ( BOOK_IDS , result . getValues ( NUMBER1 , Integer . class ) ) ; \n \n try {", "msg_token": "Cannot make any assumptions about JDBC ResultSet s column label"} {"diff": " public class SQLTemplates extends Templates { \n \n public static final Operator < Object > LASTVALUE = new OperatorImpl < Object > ( STRING0 ) ; \n \n - public static final Operator < Object > LEAD = new OperatorImpl < Object > ( STRING1 ) ; \n + public static final Operator < Object > LEAD = new OperatorImpl < Object > ( STRING2 ) ; \n \n - public static final Operator < Object > LAG = new OperatorImpl < Object > ( STRING1 ) ; \n + public static final Operator < Object > LAG = new OperatorImpl < Object > ( STRING3 ) ; \n \n public static final SQLTemplates DEFAULT = new SQLTemplates ( STRING4 , STRING5 , false ) ;", "msg_token": "Fix operator ids"} {"diff": " import NAMESPACE ; \n break ; \n case NUMBER0 : SINGLE \n single = false ; \n - inputType |= EditorInfo . TYPE_TEXT_FLAG_MULTI_LINE \n + inputType = EditorInfo . TYPE_TEXT_FLAG_MULTI_LINE \n | EditorInfo . TYPE_TEXT_FLAG_CAP_SENTENCES \n + | EditorInfo . TYPE_CLASS_TEXT \n | EditorInfo . TYPE_TEXT_FLAG_AUTO_CORRECT ; \n imeOptions |= EditorInfo . IME_ACTION_NONE ; \n break ;", "msg_token": "Remove the TAB key from textarea s"} {"diff": " public class PopupChooserBuilder { \n return super . getPreferredSize ( ) ; \n } \n Dimension size = myList . getPreferredSize ( ) ; \n + size . height = Math . min ( size . height , myList . getPreferredScrollableViewportSize ( ) . height ) ; \n JScrollBar bar = getVerticalScrollBar ( ) ; \n if ( bar != null ) size . width += bar . getPreferredSize ( ) . width ; \n return size ;", "msg_token": "Fix preferred size for big popups"} {"diff": " class DayView extends CheckedTextView { \n setText ( getLabel ( ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setDayFormatter ( DayFormatter formatter ) { \n this . formatter = formatter == null ? DayFormatter . DEFAULT : formatter ; \n CharSequence currentLabel = getText ( ) ;", "msg_token": "Add a bit of documentation"} {"diff": " public class ExecutionPointHighlighter { \n myRangeHighlighter = markupModel . addLineHighlighter ( line , DebuggerColors . EXECUTION_LINE_HIGHLIGHTERLAYER , attributes ) ; \n } \n myRangeHighlighter . putUserData ( EXECUTION_POINT_HIGHLIGHTER_KEY , true ) ; \n + myRangeHighlighter . setEditorFilter ( MarkupEditorFilterFactory . createIsNotDiffFilter ( ) ) ; \n myRangeHighlighter . setGutterIconRenderer ( myGutterIconRenderer ) ; \n }", "msg_token": "do not highlight current execution line inside diff"} {"diff": " public class LocaleUtils { \n if ( localeString == null ) { \n return null ; \n } \n - final String [ ] parts = localeString . split ( STRING0 ) ; \n + final String [ ] parts = localeString . split ( STRING1 ) ; \n if ( parts . length == NUMBER0 ) { \n return new Locale ( localeString , STRING2 ) ; \n } else if ( parts . length == NUMBER1 ) { \n public class HttpServletRequestImpl implements HttpServletRequest { \n \n @ override \n public String getLocalName ( ) { \n - return null ; \n + return exchange . getExchange ( ) . getDestinationAddress ( ) . getHostName ( ) ; \n } \n \n @ override", "msg_token": "Minor request fixes"} {"diff": " public class PersonDetailFragment extends Fragment { \n String dateText = getString ( R . string . follower_subscribed_since , dateSubscribed ) ; \n mSubscribedDateTextView . setText ( dateText ) ; \n } \n + \n + SINGLE \n + int padding = mPersonType == Person . PersonType . EMAIL_FOLLOWER \n + ? ( int ) getResources ( ) . getDimension ( R . dimen . margin_small ) : NUMBER0 ; \n + changeDisplayNameTopPadding ( padding ) ; \n } else { \n AppLog . w ( AppLog . T . PEOPLE , STRING0 + mPersonID \n + STRING1 + mLocalTableBlogID ) ; \n public class PersonDetailFragment extends Fragment { \n } \n } \n \n + private void changeDisplayNameTopPadding ( int newPadding ) { \n + if ( mDisplayNameTextView == null ) { \n + return ; \n + } \n + mDisplayNameTextView . setPadding ( NUMBER0 , newPadding , NUMBER0 , NUMBER0 ) ; \n + } \n + \n public Person loadPerson ( ) { \n return PeopleTable . getPerson ( mPersonID , mLocalTableBlogID , mPersonType ) ; \n }", "msg_token": "Adds some padding to email follower display name to center"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updating header to provide AsyncHttpClient project with copyright"} {"diff": " final class Annotations { \n \n private static boolean annotationTypeMatches ( \n TypeElement annotationElement , \n - @ nullable Set < String > includeAnnotations , \n + Set < String > includeAnnotations , \n boolean includeAllAnnotations , \n boolean includeJacksonAnnotations , \n Set < String > seenAnnotations ) { \n final class Annotations { \n SINGLE \n return false ; \n } \n + \n seenAnnotations . add ( qualifiedName ) ; \n + \n if ( annotationElement . getSimpleName ( ) . contentEquals ( NULLABLE_SIMPLE_NAME ) ) { \n SINGLE \n return false ; \n final class Annotations { \n } \n \n SINGLE \n - if ( includeJacksonAnnotations && ! includeAnnotations . isEmpty ( ) ) { \n + if ( includeJacksonAnnotations || ! includeAnnotations . isEmpty ( ) ) { \n for ( AnnotationMirror parentAnnotation : annotationElement . getAnnotationMirrors ( ) ) { \n TypeElement parentElement = ( TypeElement ) parentAnnotation . getAnnotationType ( ) . asElement ( ) ; \n if ( annotationTypeMatches ( parentElement , includeAnnotations , false , includeJacksonAnnotations , seenAnnotations ) ) {", "msg_token": "correcting copy of constructor parameter annotations"} {"diff": " public class PublisherTool implements SeedCallback , RateReporter . Stats , RateRepo \n numThreads = Math . min ( options . getThreads ( ) , options . getNumberOfStreams ( ) ) ; \n if ( numThreads < options . getThreads ( ) ) \n { \n - LOG . warn ( options . getThreads ( ) + STRING0 + options . getChannels ( ) . size ( ) + \n + LOG . warn ( options . getThreads ( ) + STRING0 + options . getNumberOfStreams ( ) + \n STRING1 + numThreads + STRING2 ) ; \n } \n pubThreads = new Thread [ numThreads ] ;", "msg_token": "Fixed log message when warning about more threads than streams"} {"diff": " public class Scopes { \n } \n } ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static boolean isSingleton ( Binding < ? > binding ) { \n - do { \n - boolean singleton = binding . acceptScopingVisitor ( new BindingScopingVisitor < Boolean > ( ) { \n + private static final BindingScopingVisitor < Boolean > IS_SINGLETON_VISITOR \n + = new BindingScopingVisitor < Boolean > ( ) { \n public Boolean visitNoScoping ( ) { \n return false ; \n } \n public class Scopes { \n public Boolean visitEagerSingleton ( ) { \n return true ; \n } \n - } ) ; \n + } ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean isSingleton ( Binding < ? > binding ) { \n + do { \n + boolean singleton = binding . acceptScopingVisitor ( IS_SINGLETON_VISITOR ) ; \n if ( singleton ) { \n return true ; \n }", "msg_token": "Do not create a new visitor instance for every call to isSingleton"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n } \n } \n \n - winAnimator . prepareSurfaceLocked ( recoveringMemory ) ; \n + winAnimator . setSurfaceBoundariesLocked ( recoveringMemory ) ; \n \n final AppWindowToken atoken = w . mAppToken ; \n if ( DEBUG_STARTING_WINDOW && atoken != null \n class WindowStateAnimator { \n } \n } \n \n - private void setSurfaceBoundariesLocked ( final boolean recoveringMemory ) { \n + void setSurfaceBoundariesLocked ( final boolean recoveringMemory ) { \n final WindowState w = mWin ; \n \n int width ;", "msg_token": "Revert fix the flash caused by missing setMatrix when surface size changes"} {"diff": " import NAMESPACE ; \n public class FileNameGenerator { \n \n private static final char [ ] ILLEGAL_CHARACTERS = { STRING0 , STRING1 , STRING2 , STRING3 , \n - STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 } ; \n + STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 } ; \n static { \n Arrays . sort ( ILLEGAL_CHARACTERS ) ; \n }", "msg_token": "Add n to the list of illegal characters in filenames"} {"diff": " public abstract class ConfigurationException extends Exception { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public ConfigurationException ( String path , Collection < String > errors ) { \n super ( formatMessage ( path , errors ) ) ;", "msg_token": "Remove docs for non existent constructor parameter"} {"diff": " public class ARSCDecoder { \n SINGLE \n SINGLE \n id = NUMBER0 ; \n - mResTable . setSharedLibrary ( true ) ; \n + if ( mResTable . getPackageOriginal ( ) == null && mResTable . getPackageRenamed ( ) == null ) { \n + mResTable . setSharedLibrary ( true ) ; \n + } \n } \n \n String name = mIn . readNullEndedString ( NUMBER1 , true ) ;", "msg_token": "Prevent frameworks from modifying sharedLibrary"} {"diff": " public class Suggestion \n if ( caller == null ) \n { \n if ( other . caller != null ) \n + { \n return false ; \n + } \n } \n else if ( ! caller . equals ( other . caller ) ) \n {", "msg_token": "If Stmts Must Use Braces"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public final class ProcessorDefinitionHelper { \n + final class ProcessorDefinitionHelper { \n \n private ProcessorDefinitionHelper ( ) { \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT", "msg_token": "reduce package tangling"} {"diff": " public class WebView extends AbsoluteLayout \n if ( inEditingMode ( ) ) { \n return mWebTextView . performLongClick ( ) ; \n } \n + if ( mSelectingText ) return false ; SINGLE \n COMMENT \n COMMENT \n COMMENT \n public class WebView extends AbsoluteLayout \n COMMENT \n COMMENT \n COMMENT \n - if ( mSelectingText ) return false ; SINGLE \n int x = viewToContentX ( ( int ) mLastTouchX + mScrollX ) ; \n int y = viewToContentY ( ( int ) mLastTouchY + mScrollY ) ; \n setUpSelect ( ) ;", "msg_token": "don t put up a context menu while selecting text"} {"diff": " public class UnscrambleListener implements ApplicationActivationListener { \n \n @ override \n public void applicationActivated ( final IdeFrame ideFrame ) { \n - if ( SystemInfo . isMac ) return ; \n - \n final Runnable processClipboard = new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "get back automatic stacktrace analyzer on mac"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class MarginFragListBuilder implements FragListBuilder {", "msg_token": "Added comment to explain MarginFragListBuilders relation to SimpleFragListBuilder"} {"diff": " public class ConfigurationRequest { \n } \n break ; \n case TextField . FIELD_TYPE : \n + case DropdownField . FIELD_TYPE : \n if ( ! configuration . stringIsSet ( field . getName ( ) ) ) { \n - throw new ConfigurationException ( STRING0 + field . getName ( ) + STRING1 ) ; \n + throw new ConfigurationException ( STRING0 + field . getName ( ) + STRING1 ) ; \n } \n break ; \n - case DropdownField . FIELD_TYPE : \n - break ; \n default : \n throw new IllegalStateException ( STRING2 + type + STRING3 ) ; \n }", "msg_token": "include dropdown fields in configuration checks"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class WebInterfaceWorkerBlockInfoServlet extends HttpServlet { \n COMMENT \n private UIFileInfo getUiFileInfo ( FileSystem fileSystem , long fileId ) \n throws FileDoesNotExistException , BlockDoesNotExistException , IOException , AlluxioException { \n - SINGLE \n - FileSystemMasterClient masterClient = FileSystemContext . INSTANCE . acquireMasterClient ( ) ; \n - try { \n - return getUiFileInfo ( fileSystem , new AlluxioURI ( mBlockWorker . getFileInfo ( fileId ) . getPath ( ) ) ) ; \n - } finally { \n - FileSystemContext . INSTANCE . releaseMasterClient ( masterClient ) ; \n - } \n + return getUiFileInfo ( fileSystem , new AlluxioURI ( mBlockWorker . getFileInfo ( fileId ) . getPath ( ) ) ) ; \n } \n \n COMMENT", "msg_token": "Removing unnecessary boilerplate"} {"diff": " public class CommentsListFragment extends Fragment { \n return ; \n } \n } \n - if ( comments != null && comments . size ( ) > NUMBER0 ) { \n + if ( ! getActivity ( ) . isFinishing ( ) && comments != null && comments . size ( ) > NUMBER0 ) { \n getCommentAdapter ( ) . loadComments ( ) ; \n } \n }", "msg_token": "don t load comments adapter if the activity is finishing"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed incorrectly ended bold tag on special note"} {"diff": " public abstract class DataBufferUtils { \n \n @ override \n public void onNext ( DataBuffer dataBuffer ) { \n - long currentCount = \n - this . byteCount . addAndGet ( dataBuffer . readableByteCount ( ) ) ; \n + int delta = dataBuffer . readableByteCount ( ) ; \n + long currentCount = this . byteCount . addAndGet ( delta ) ; \n if ( currentCount > maxByteCount ) { \n - int size = ( int ) ( currentCount - maxByteCount + NUMBER0 ) ; \n + int size = ( int ) ( maxByteCount - currentCount + delta ) ; \n ByteBuffer byteBuffer = \n ( ByteBuffer ) dataBuffer . asByteBuffer ( ) . limit ( size ) ; \n DataBuffer partialBuffer =", "msg_token": "Fixed DataBufferUtils takeUntilByteCount"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AppEngineEnhancerBuilder extends ModuleLevelBuilder { \n } \n \n @ override \n - public ExitCode build ( final CompileContext context , ModuleChunk chunk , \n - DirtyFilesHolder < JavaSourceRootDescriptor , ModuleBuildTarget > dirtyFilesHolder ) \n + public ExitCode build ( final CompileContext context , \n + ModuleChunk chunk , \n + DirtyFilesHolder < JavaSourceRootDescriptor , ModuleBuildTarget > dirtyFilesHolder , \n + ChunkBuildOutputConsumer outputConsumer ) \n throws ProjectBuildException , IOException { \n \n boolean doneSomething = false ;", "msg_token": "fixed updating files copied by resource compiler to module output in artifacts"} {"diff": " abstract public class HttpHeader implements java . io . Serializable { \n public static final String SET_COOKIE = STRING0 ; \n public static final String SET_COOKIE2 = STRING1 ; \n public static final String X_XSS_PROTECTION = STRING2 ; \n + public static final String X_FRAME_OPTION = STRING3 ; \n + public static final String X_CONTENT_TYPE_OPTIONS = STRING4 ; \n \n public static final String HTTP09 = STRING5 ; \n public static final String HTTP10 = STRING6 ;", "msg_token": "Added X Frame Options and X Content Type Options on the list of Headers"} {"diff": " public class Astrid44SyncMigrator { \n try { \n Metadata m = new Metadata ( ) ; \n for ( incompleteMetadata . moveToFirst ( ) ; ! incompleteMetadata . isAfterLast ( ) ; incompleteMetadata . moveToNext ( ) ) { \n + m . clear ( ) ; SINGLE \n m . readFromCursor ( incompleteMetadata ) ; \n boolean changes = false ;", "msg_token": "Fixed a bug with the metadata migration not working"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DesktopAssetManager implements AssetManager { \n \n public void addClassLoader ( ClassLoader loader ) { \n if ( classLoaders == null ) \n - classLoaders = new ArrayList < ClassLoader > ( ) ; \n + classLoaders = Collections . synchronizedList ( new ArrayList < ClassLoader > ( ) ) ; \n classLoaders . add ( loader ) ; \n }", "msg_token": "make ClassLoader list in AssetManager a syncronized list"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory < PythonC \n } . queue ( ) ; \n } \n \n - private class ShowVarsAction extends ToggleAction { \n + private class ShowVarsAction extends ToggleAction implements DumbAware { \n private boolean mySelected = false ; \n \n public ShowVarsAction ( ) {", "msg_token": "Make action dumb aware"} {"diff": " public class RNTN implements Layer { \n } \n \n @ override \n - public Gradient backwardGradient ( INDArray z , Layer nextLayer , Gradient nextGradient , INDArray activation ) { \n + public Pair < Gradient , INDArray > backwardGradient ( Gradient nextGradient , INDArray weights ) { \n return null ; \n }", "msg_token": "Adjusted format for RNTN for backwardGradient"} {"diff": " public class RandomXS128 extends Random { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public long getState ( int seed ) {", "msg_token": "Fix typo in RandomXS128 java"} {"diff": " public class ImConnectionAdapter extends info . guardianproject . otr . app . im . IImConn \n session . sendPostponedMessages ( ) ; \n } \n \n - mService . getStatusBarNotifier ( ) . notifyLoggedIn ( mProviderId , mAccountId ) ; \n + SINGLE \n \n \n } else if ( state == ImConnection . LOGGING_OUT ) { \n public class ImConnectionAdapter extends info . guardianproject . otr . app . im . IImConn \n mChatSessionManager . closeAllChatSessions ( ) ; \n } \n \n - mService . getStatusBarNotifier ( ) . notifyDisconnected ( mProviderId , mAccountId ) ; \n + SINGLE \n \n mConnectionState = state ; \n } else if ( state == ImConnection . SUSPENDED && error != null ) {", "msg_token": "removed annoying notifications of on offline state"} {"diff": " public class Capsule implements Runnable { \n COMMENT \n COMMENT \n protected void onError ( Throwable t ) { \n + if ( ( _ct = getCallTarget ( Capsule . class ) ) != null ) \n + _ct . onError ( t ) ; \n + else \n + onError0 ( t ) ; \n + } \n + \n + private void onError0 ( Throwable t ) { \n printError ( t , this ) ; \n } \n SINGLE", "msg_token": "Make onError overridable"} {"diff": " public class XmppConnection implements Runnable { \n List < Element > elements = packet . query ( ) . getChildren ( ) ; \n for ( Element element : elements ) { \n if ( element . getName ( ) . equals ( STRING0 ) ) { \n - final String jid = element . getAttribute ( STRING1 ) ; \n - try { \n - sendServiceDiscoveryInfo ( Jid . fromString ( jid ) . toDomainJid ( ) ) ; \n - } catch ( final InvalidJidException ignored ) { \n - SINGLE \n + final Jid jid = element . getAttributeAsJid ( STRING1 ) ; \n + if ( jid != null && ! jid . equals ( account . getServer ( ) ) ) { \n + sendServiceDiscoveryInfo ( jid ) ; \n } \n } \n }", "msg_token": "do not query service info from main server again"} {"diff": " public class ChartAnimatorV11 implements ChartAnimator , AnimatorListener , Animat \n \n @ override \n public void onAnimationUpdate ( ValueAnimator animation ) { \n - Log . v ( STRING0 , STRING1 + ( Float ) animation . getAnimatedValue ( ) ) ; \n mChart . animationUpdate ( ( Float ) animation . getAnimatedValue ( ) ) ; \n }", "msg_token": "Remove unused log message"} {"diff": " public class EditTicketPage extends RepositoryPage { \n || ! currentUser . canEdit ( ticket , getRepositoryModel ( ) ) \n || ! app ( ) . tickets ( ) . isAcceptingTicketUpdates ( getRepositoryModel ( ) ) ) { \n setResponsePage ( TicketsPage . class , WicketUtils . newObjectParameter ( repositoryName , STRING0 + ticketId ) ) ; \n + \n + SINGLE \n + ticket = new TicketModel ( ) ; \n } \n \n typeModel = Model . of ( ticket . type ) ;", "msg_token": "findbugs Create temporary ticket after setting up the response page in EditTicketPage"} {"diff": " public abstract class Selector { \n Method reflectionMethod = null ; \n try { \n reflectionMethod = aClass . getMethod ( STRING0 , String . class ) ; \n - if ( ! reflectionMethod . isSynthetic ( ) && ! ( receiver instanceof GeneratedClosure ) ) { \n + if ( ! reflectionMethod . isSynthetic ( ) ) { \n handle = MethodHandles . insertArguments ( GROOVY_OBJECT_GET_PROPERTY , NUMBER0 , name ) ; \n return ; \n }", "msg_token": "undo exclusion of GeneratedClosure since meta class side is not ready for this change"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Chunk { \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n public static < T extends Tag > T getChildTag ( Map < String , Tag > items , String key , \n Class < T > expected ) throws InvalidFormatException { \n if ( ! items . containsKey ( key ) ) {", "msg_token": "Fixed some warnings"} {"diff": " class ConfigurationBase implements Configuration , java . io . Serializable { \n \n private static final String DEFAULT_REST_BASE_URL = STRING0 ; \n private static final String DEFAULT_SEARCH_BASE_URL = STRING1 ; \n - private static final String DEFAULT_STREAM_BASE_URL = STRING2 ; \n + private static final String DEFAULT_STREAM_BASE_URL = STRING3 ; \n private static final String DEFAULT_USER_STREAM_BASE_URL = STRING4 ; \n - private static final String DEFAULT_SITE_STREAM_BASE_URL = STRING5 ; \n + private static final String DEFAULT_SITE_STREAM_BASE_URL = STRING6 ; \n \n private boolean IS_DALVIK ; \n private boolean IS_GAE ;", "msg_token": "Streams now require https as of today"} {"diff": " public interface FrameCompressor \n { \n int size = Snappy . uncompress ( input , NUMBER0 , input . length , output . array ( ) , output . arrayOffset ( ) ) ; \n output . writerIndex ( size ) ; \n - \n - SINGLE \n - frame . release ( ) ; \n } \n catch ( final Throwable e ) \n {", "msg_token": "Remove buggy duplicate call to Frame release"} {"diff": " public abstract class AbstractFileSetCheck \n COMMENT \n private final LocalizedMessages mMessages = new LocalizedMessages ( ) ; \n \n - COMMENT \n + COMMENT \n public void destroy ( ) \n { \n } \n public abstract class AbstractFileSetCheck \n if ( ( mFileExtensions == null ) || ( mFileExtensions . length == NUMBER0 ) ) { \n return aFiles ; \n } \n - \n + \n final ArrayList files = new ArrayList ( aFiles . length ) ; \n for ( int i = NUMBER0 ; i < aFiles . length ; i ++ ) { \n final File f = aFiles [ i ] ; \n public abstract class AbstractFileSetCheck \n mFileExtensions = null ; \n return ; \n } \n - \n + \n mFileExtensions = new String [ aExtensions . length ] ; \n for ( int i = NUMBER0 ; i < aExtensions . length ; i ++ ) { \n final String extension = aExtensions [ i ] ;", "msg_token": "Fix Javadoc error"} {"diff": " public class DefaultWayPropertySetSource implements WayPropertySetSource { \n COMMENT \n setProperties ( props , STRING0 , \n StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT0 , FLOAT0 ) ; \n + \n + COMMENT \n + setProperties ( props , STRING1 , \n + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT1 , FLOAT1 ) ; \n + setProperties ( props , STRING2 , \n + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT2 , FLOAT2 ) ; \n + setProperties ( props , STRING3 , \n + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT1 , FLOAT1 ) ; \n + setProperties ( props , STRING4 , \n + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT2 , FLOAT2 ) ; \n + setProperties ( props , STRING5 , \n + StreetTraversalPermission . PEDESTRIAN_AND_BICYCLE , FLOAT3 , FLOAT3 ) ; \n \n COMMENT \n setProperties ( props , STRING6 ,", "msg_token": "Added weights for bicycles on tracks unpaved roads"} {"diff": " public class CommandLineRunner extends \n private boolean exportLocalPropertyDefinitions = false ; \n \n @ option ( name = STRING0 , \n - hidden = true , \n usage = STRING1 \n + STRING2 \n + STRING3 )", "msg_token": "Add formatting to the Output category in the help message"} {"diff": " public class ManifestUpdateMojo extends AbstractAndroidMojo { \n } \n currentVersionCode ++ ; \n manifestElement . setAttribute ( ATTR_VERSION_CODE , String . valueOf ( currentVersionCode ) ) ; \n + project . getProperties ( ) . setProperty ( STRING0 , String . valueOf ( currentVersionCode ) ) ; \n dirty = true ; \n } \n \n public class ManifestUpdateMojo extends AbstractAndroidMojo { \n Integer . toString ( artifactVersion . getIncrementalVersion ( ) ) ; \n getLog ( ) . info ( STRING1 + ATTR_VERSION_CODE + STRING2 + verCode ) ; \n manifestElement . setAttribute ( ATTR_VERSION_CODE , verCode ) ; \n + project . getProperties ( ) . setProperty ( STRING0 , String . valueOf ( verCode ) ) ; \n dirty = true ; \n } \n \n public class ManifestUpdateMojo extends AbstractAndroidMojo { \n manifestElement . setAttribute ( ATTR_VERSION_CODE , String . valueOf ( parsedVersionCode ) ) ; \n dirty = true ; \n } \n + project . getProperties ( ) . setProperty ( STRING0 , String . valueOf ( parsedVersionCode ) ) ; \n } \n \n if ( ! StringUtils . isEmpty ( parsedSharedUserId ) ) {", "msg_token": "Set android manifest versionCode property"} {"diff": " public class FeatureInfo implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public int version ;", "msg_token": "Clarify version docs"} {"diff": " class CallbackProxy extends Handler { \n SINGLE \n WebHistoryItem i = mBackForwardList . getCurrentItem ( ) ; \n if ( i != null ) { \n - if ( precomposed || i . getTouchIconUrl ( ) != null ) { \n + if ( precomposed || i . getTouchIconUrl ( ) == null ) { \n i . setTouchIconUrl ( url ) ; \n } \n }", "msg_token": "Fix a simple logic mistake"} {"diff": " public class AndroidBinaryRule extends AbstractCachingBuildRule implements \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private String getBinPath ( String format ) {", "msg_token": "Fix a stale comment"} {"diff": " public class ByteBufferSend implements Send { \n \n @ override \n public boolean complete ( ) { \n - return remaining > NUMBER0 ; \n + return remaining <= NUMBER0 ; \n } \n \n @ override", "msg_token": "Fix bug in ByteBufferSend that lead to incorrect complete method"} {"diff": " public interface Constants { \n public static final int TAG_SCROLL_LISTENER = NUMBER0 ; \n public static final int TAG_LAYOUT = NUMBER1 ; \n public static final int TAG_NUM = NUMBER2 ; \n + public static final int TAG_1 = NUMBER3 ; \n + public static final int TAG_2 = NUMBER4 ; \n + public static final int TAG_3 = NUMBER5 ; \n + public static final int TAG_4 = NUMBER6 ; \n + public static final int TAG_5 = NUMBER7 ; \n \n public static final float RATIO_PRESERVE = Float . MAX_VALUE ; \n public static final float ANCHOR_DYNAMIC = Float . MAX_VALUE ;", "msg_token": "Add more tag ids"} {"diff": " public class AtomicMaxUpdater { \n \n private static final AtomicIntegerFieldUpdater < AtomicMaxUpdater > UPDATER = AtomicIntegerFieldUpdater . newUpdater ( AtomicMaxUpdater . class , STRING0 ) ; \n \n + @ suppresswarnings ( STRING1 ) \n + private volatile int maxIndex = NUMBER0 ; \n + \n public boolean update ( int max ) { \n while ( true ) { \n final int currentMax = getIndex ( ) ;", "msg_token": "Restored AtomicMaxUpdater maxIndex"} {"diff": " public interface ClassDirectoryBinary extends Binary , Buildable { \n Task getClassesTask ( ) ; \n void setClassesTask ( Task task ) ; \n String getTaskName ( String verb , String target ) ; \n - String getTaskBaseName ( ) ; \n }", "msg_token": "Removed ClassDirectoryBinary getTaskBaseName"} {"diff": " public class ProtocolProviderFactoryJabberImpl \n \n static \n { \n - ProviderManager . setInstance ( new ProviderManagerExt ( ) ) ; \n - \n - providerManager = ProviderManager . getInstance ( ) ; \n + try \n + { \n + ProviderManager . setInstance ( new ProviderManagerExt ( ) ) ; \n + } \n + catch ( Throwable t ) \n + { \n + SINGLE \n + SINGLE \n + } \n + finally \n + { \n + providerManager = ProviderManager . getInstance ( ) ; \n + } \n \n - if ( ! ( providerManager instanceof ProviderManagerExt ) ) \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! ( providerManager . getClass ( ) . getName ( ) \n + . equals ( ProviderManagerExt . class . getName ( ) ) ) ) \n { \n throw new RuntimeException ( \n STRING0 ) ;", "msg_token": "Fixes tests unloading loading bundle ProviderManagerExt class is loaded two times"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public class WrapProcessor extends DelegateAsyncProcessor implements Traceable { \n - \n + public class WrapProcessor extends DelegateAsyncProcessor { \n private final Processor wrapped ; \n \n public WrapProcessor ( Processor processor , Processor wrapped ) { \n public class WrapProcessor extends DelegateAsyncProcessor implements Traceable { \n public String toString ( ) { \n return STRING0 + wrapped + STRING1 + processor ; \n } \n - \n - public String getTraceLabel ( ) { \n - return STRING2 + wrapped + STRING3 ; \n - } \n \n @ override \n public List < Processor > next ( ) {", "msg_token": "Camel Tracer not showing some EIP names"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class EditorWindowImpl extends UserDataHolderBase implements EditorWindow \n @ override \n public EditorHighlighter getHighlighter ( ) { \n EditorColorsScheme scheme = EditorColorsManager . getInstance ( ) . getGlobalScheme ( ) ; \n - EditorHighlighter highlighter = HighlighterFactory . createHighlighter ( myInjectedFile . getVirtualFile ( ) , scheme , getProject ( ) ) ; \n + SyntaxHighlighter syntaxHighlighter = \n + SyntaxHighlighterFactory . getSyntaxHighlighter ( myInjectedFile . getLanguage ( ) , getProject ( ) , myInjectedFile . getVirtualFile ( ) ) ; \n + EditorHighlighter highlighter = HighlighterFactory . createHighlighter ( syntaxHighlighter , scheme ) ; \n highlighter . setText ( getDocument ( ) . getText ( ) ) ; \n highlighter . setEditor ( new LightHighlighterClient ( getDocument ( ) , getProject ( ) ) ) ; \n return highlighter ;", "msg_token": "Injection editor should create editor highlighter by injected language not"} {"diff": " public class AppearanceToolbar implements AppearanceUIModelListener { \n controlToolbar = new ControlToolbar ( ) ; \n \n controller . addPropertyChangeListener ( this ) ; \n + \n + AppearanceUIModel uimodel = controller . getModel ( ) ; \n + if ( uimodel != null ) { \n + setup ( uimodel ) ; \n + } \n } \n \n public JToolBar getCategoryToolbar ( ) { \n public class AppearanceUIController { \n AppearanceModel appearanceModel = appearanceController . getModel ( pc . getCurrentWorkspace ( ) ) ; \n model = new AppearanceUIModel ( this , appearanceModel ) ; \n pc . getCurrentWorkspace ( ) . add ( model ) ; \n + model . select ( ) ; \n + tableObserver = new TableChangeObserver ( pc . getCurrentWorkspace ( ) ) ; \n + tableObserver . start ( ) ; \n } \n }", "msg_token": "Fix appearance workspace init code"} {"diff": " public class IoUtil \n { \n delete ( directory , false ) ; \n } \n - catch ( IOException e ) \n + catch ( final IOException ex ) \n { \n - throw new IllegalArgumentException ( STRING0 + name + STRING1 + directory , e ) ; \n + throw new IllegalArgumentException ( STRING0 + name + STRING1 + directory , ex ) ; \n } \n \n callback . accept ( directory . getAbsolutePath ( ) , name ) ; \n public class IoUtil \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static void checkDirectoryExists ( final File directory , final String name ) \n - throws IllegalArgumentException \n - { \n - if ( ! directory . exists ( ) || ! directory . isDirectory ( ) ) \n - { \n - throw new IllegalArgumentException ( name + STRING2 + directory ) ; \n - } \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed unused method"} {"diff": " public final class Installer extends SystemService { \n } \n } \n \n - public int pruneDexCache ( String cacheSubDir ) { \n - return mInstaller . execute ( STRING0 + cacheSubDir ) ; \n - } \n - \n public int freeCache ( long freeStorageSize ) { \n StringBuilder builder = new StringBuilder ( STRING1 ) ; \n builder . append ( STRING2 ) ; \n public class PackageManagerService extends IPackageManager . Stub { \n } \n } \n \n - if ( didDexOptLibraryOrTool ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - for ( String dexCodeInstructionSet : dexCodeInstructionSets ) { \n - mInstaller . pruneDexCache ( dexCodeInstructionSet ) ; \n - } \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - mInstaller . pruneDexCache ( STRING3 ) ; \n - } \n - \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Remove obsolete pruneDexCache"} {"diff": " public class PipeItemsWood extends Pipe implements IPowerReceptor { \n public ItemStack [ ] checkExtract ( IInventory inventory , boolean doRemove , Orientations from ) { \n \n SINGLE \n - if ( inventory instanceof ISpecialInventory ) \n - return ( ( ISpecialInventory ) inventory ) . extractItem ( doRemove , from , NUMBER0 ) ; \n + if ( inventory instanceof ISpecialInventory ) { \n + ItemStack [ ] stacks = ( ( ISpecialInventory ) inventory ) . extractItem ( doRemove , from , ( int ) powerProvider . getEnergyStored ( ) ) ; \n + if ( stacks != null && doRemove ) { \n + for ( ItemStack stack : stacks ) { \n + powerProvider . useEnergy ( stack . stackSize , stack . stackSize , true ) ; \n + } \n + } \n + return stacks ; \n + } \n \n if ( inventory instanceof ISidedInventory ) { \n ISidedInventory sidedInv = ( ISidedInventory ) inventory ;", "msg_token": "Consume energy when pulling from ISpecialInventory"} {"diff": " public class HyperLogLogPlus implements ICardinality \n SINGLE \n private int sortThreshold ; \n \n - SINGLE \n private int [ ] tmpSet ; \n private int tmpIndex = NUMBER0 ; \n private int [ ] sparseSet ;", "msg_token": "remove misleading comment about thread safety of a couple variables"} {"diff": " public class GracefulStopTest \n long start = System . nanoTime ( ) ; \n server . stop ( ) ; \n long stop = System . nanoTime ( ) ; \n - assertThat ( TimeUnit . NANOSECONDS . toMillis ( stop - start ) , greaterThan ( NUMBER0 ) ) ; \n + assertThat ( TimeUnit . NANOSECONDS . toMillis ( stop - start ) , greaterThan ( NUMBER1 ) ) ; \n assertThat ( TimeUnit . NANOSECONDS . toMillis ( stop - start ) , lessThan ( NUMBER2 ) ) ; \n \n String response = IO . toString ( client1 . getInputStream ( ) ) ;", "msg_token": "Improved graceful shutdown and added tests"} {"diff": " public class TLSUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TLSUtils { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static class AcceptAllTrustManager implements X509TrustManager { \n \n @ override \n public class TLSUtils { \n \n @ override \n public X509Certificate [ ] getAcceptedIssuers ( ) { \n - throw new UnsupportedOperationException ( ) ; \n + return new X509Certificate [ NUMBER0 ] ; \n } \n } \n }", "msg_token": "Fix TLSUtils AcceptAllTrustManager"} {"diff": " public final class GitSimplePushResult { \n \n @ notnull \n public static GitSimplePushResult error ( @ notnull String errorOutput ) { \n - return new GitSimplePushResult ( Type . REJECT , errorOutput , Collections . < String > emptyList ( ) ) ; \n + return new GitSimplePushResult ( Type . ERROR , errorOutput , Collections . < String > emptyList ( ) ) ; \n } \n \n @ notnull", "msg_token": "correctly report the error result"} {"diff": " class WatchServiceRegistrar implements FileWatcherListener { \n void watch ( FileSystemSubset fileSystemSubset ) throws IOException { \n lock . lock ( ) ; \n try { \n + LOG . debug ( STRING0 , fileSystemSubset ) ; \n final WatchPointsRegistry . Delta delta = watchPointsRegistry . appendFileSystemSubset ( fileSystemSubset ) ; \n Iterable < ? extends File > startingWatchPoints = delta . getStartingWatchPoints ( ) ; \n \n for ( File dir : startingWatchPoints ) { \n - LOG . debug ( STRING1 , dir ) ; \n + LOG . debug ( STRING2 , dir ) ; \n if ( FILE_TREE_WATCHING_SUPPORTED ) { \n watchDir ( dir . toPath ( ) ) ; \n } else { \n class WatchServiceRegistrar implements FileWatcherListener { \n } \n } ) ; \n } \n + LOG . debug ( STRING3 , dir ) ; \n } \n + LOG . debug ( STRING4 , fileSystemSubset ) ; \n } finally { \n lock . unlock ( ) ; \n }", "msg_token": "Add more debug logging"} {"diff": " class WallpaperManagerService extends IWallpaperManager . Stub { \n if ( Intent . ACTION_USER_REMOVED . equals ( action ) ) { \n onRemoveUser ( intent . getIntExtra ( Intent . EXTRA_USER_HANDLE , \n UserHandle . USER_NULL ) ) ; \n - } else if ( Intent . ACTION_USER_STOPPING . equals ( action ) ) { \n - onStoppingUser ( intent . getIntExtra ( Intent . EXTRA_USER_HANDLE , \n - UserHandle . USER_NULL ) ) ; \n } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n } , userFilter ) ;", "msg_token": "Don t clean up wallpaper map entry when stopping a user"} {"diff": " public final class HashingOutputStream extends FilterOutputStream { \n public HashCode hash ( ) { \n return hasher . hash ( ) ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + @ override public void close ( ) throws IOException { \n + out . close ( ) ; \n + } \n } \n public final class CountingOutputStream extends FilterOutputStream { \n out . write ( b ) ; \n count ++ ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + @ override public void close ( ) throws IOException { \n + out . close ( ) ; \n + } \n } \n public class LittleEndianDataOutputStream extends FilterOutputStream \n @ override public void writeUTF ( String str ) throws IOException { \n ( ( DataOutputStream ) out ) . writeUTF ( str ) ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + @ override public void close ( ) throws IOException { \n + out . close ( ) ; \n + } \n }", "msg_token": "Override close in all subclasses of FilterOutputStream to ensure they do not swallow exceptions thrown when flushing the delegate stream"} {"diff": " public class SeriesGuideContract { \n \n public static final String SORT_SEASON_ASC = Episodes . SEASON + STRING0 ; \n \n + public static final String SORT_NUMBER_ASC = Episodes . NUMBER + STRING0 ; \n + \n public static Uri buildEpisodeUri ( String episodeId ) { \n return CONTENT_URI . buildUpon ( ) . appendPath ( episodeId ) . build ( ) ; \n }", "msg_token": "Add episode sort order by number"} {"diff": " public class XmlNode extends RubyObject { \n return ( RubyArray ) this . namespace_definitions ; \n } \n \n + @ jrubymethod \n + public IRubyObject namespace_scopes ( ThreadContext context ) { \n + throw getRuntime ( ) . newNotImplementedError ( STRING0 ) ; \n + } \n + \n @ jrubymethod ( name = STRING1 ) \n public IRubyObject namespaced_key_p ( ThreadContext context , IRubyObject elementLName , IRubyObject namespaceUri ) { \n return this . attribute_with_ns ( context , elementLName , namespaceUri ) . isNil ( ) ?", "msg_token": "Add stub method namespace_scopes"} {"diff": " public class FailsafeFutureTest { \n waiter . resume ( ) ; \n } ) . get ( ( ) - > STRING0 ) ; \n \n - waiter . await ( NUMBER0 ) ; \n + waiter . await ( NUMBER1 ) ; \n assertFalse ( future . cancel ( true ) ) ; \n assertFalse ( future . isCancelled ( ) ) ; \n assertTrue ( future . isDone ( ) ) ;", "msg_token": "Lengthen test timeout"} {"diff": " public class GelfChunkAggregator implements CodecAggregator { \n final byte [ ] allChunks [ ] = new byte [ sequenceCount ] [ ] ; \n for ( int i = NUMBER0 ; i < entry . payloadArray . length ( ) ; i ++ ) { \n final GELFMessageChunk messageChunk = entry . payloadArray . get ( i ) ; \n - allChunks [ i ] = messageChunk . getData ( ) ; \n - \n + if ( messageChunk == null ) { \n + log . debug ( STRING0 , i , messageId ) ; \n + } else { \n + allChunks [ i ] = messageChunk . getData ( ) ; \n + } \n } \n completeMessages . inc ( ) ; \n return ChannelBuffers . wrappedBuffer ( allChunks ) ;", "msg_token": "Fix NPE in GelfChunkAggregator checkForCompletion"} {"diff": " public class RowCountException extends PersistenceException { \n RowCountException ( long expected , long actual ) { \n super ( STRING0 + expected + STRING1 + actual ) ; \n this . expected = expected ; \n - this . actual = expected ; \n + this . actual = actual ; \n } \n \n COMMENT", "msg_token": "Fix incorrect expected value assigned"} {"diff": " public class OSQLFunctionGremlin extends OSQLFunctionAbstract { \n \n public Object execute ( Object iThis , final OIdentifiable iCurrentRecord , Object iCurrentResult , final Object [ ] iParams , \n final OCommandContext iContext ) { \n - if ( ! ( iCurrentRecord instanceof ODocument ) ) \n - SINGLE \n - return null ; \n - \n final ODatabaseDocumentTx db = OGremlinHelper . getGraphDatabase ( ODatabaseRecordThreadLocal . INSTANCE . get ( ) ) ; \n \n result = new ArrayList < Object > ( ) ; \n public class OSQLFunctionGremlin extends OSQLFunctionAbstract { \n new OGremlinHelper . OGremlinCallback ( ) { \n \n @ override \n - public boolean call ( ScriptEngine iEngine , OrientBaseGraph iGraph ) { \n + public boolean call ( final ScriptEngine iEngine , final OrientBaseGraph iGraph ) { \n + if ( iCurrentRecord == null ) \n + SINGLE \n + return true ; \n + \n final ODocument document = ( ODocument ) iCurrentRecord ; \n OClass clazz = ODocumentInternal . getImmutableSchemaClass ( document ) ; \n if ( clazz != null && clazz . isSubClassOf ( OrientEdgeType . CLASS_NAME ) ) {", "msg_token": "fixed issue on calling gremlin function with no targer"} {"diff": " public class PlainStreetEdge extends StreetEdge implements Cloneable { \n private String name ; \n \n @ getter @ setter \n + private String label ; \n + \n + @ getter @ setter \n private boolean wheelchairAccessible = true ; \n \n @ getter @ setter \n public abstract class StreetEdge extends EdgeWithElevation { \n public static final int CLASS_TRAIN_PLATFORM = NUMBER0 ; \n public static final int ANY_PLATFORM_MASK = NUMBER1 ; \n public static final int CROSSING_CLASS_MASK = NUMBER2 ; SINGLE \n - public static final int CLASS_LINK = NUMBER3 ; SINGLE \n - SINGLE \n + public static final int CLASS_LINK = NUMBER3 ; SINGLE \n \n public StreetEdge ( StreetVertex v1 , StreetVertex v2 ) { \n super ( v1 , v2 ) ; \n public abstract class StreetEdge extends EdgeWithElevation { \n public abstract boolean canTraverse ( RoutingRequest options ) ; \n \n public abstract boolean canTraverse ( TraverseModeSet modes ) ; \n - \n + \n + public abstract String getLabel ( ) ; \n + \n public abstract double getLength ( ) ; \n \n public abstract float getCarSpeed ( ) ;", "msg_token": "StreetEdges have labels"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MatcherImpl { \n match ( el ) ; \n } \n if ( element instanceof PsiLanguageInjectionHost ) { \n - ( ( PsiLanguageInjectionHost ) element ) . processInjectedPsi ( new PsiLanguageInjectionHost . InjectedPsiVisitor ( ) { \n + InjectedLanguageUtil . enumerate ( element , new PsiLanguageInjectionHost . InjectedPsiVisitor ( ) { \n @ override \n public void visit ( @ notnull PsiFile injectedPsi , @ notnull List < PsiLanguageInjectionHost . Shred > places ) { \n match ( injectedPsi ) ;", "msg_token": "get rid of identical method implementations in PsiLanguageInjectionHost interface delegate clients directly to InjectedLanguageUtil"} {"diff": " public class ReaderActivityLauncher { \n intent . putExtra ( ReaderConstants . ARG_CONTENT , content ) ; \n } \n \n - if ( context instanceof Activity ) { \n + if ( context instanceof Activity && sourceView != null ) { \n Activity activity = ( Activity ) context ; \n ActivityOptionsCompat options = \n ActivityOptionsCompat . makeScaleUpAnimation ( sourceView , startX , startY , NUMBER0 , NUMBER0 ) ;", "msg_token": "Null check sourceView"} {"diff": " public class FileDownloadRunnable implements Runnable { \n COMMENT \n COMMENT \n COMMENT \n - if ( model . getTotal ( ) == - NUMBER0 && ex instanceof IOException ) { \n + if ( model . getTotal ( ) == - NUMBER0 && ex instanceof IOException && \n + new File ( model . getPath ( ) ) . exists ( ) ) { \n SINGLE \n final long freeSpaceBytes = FileDownloadUtils . \n getFreeSpaceBytes ( model . getPath ( ) ) ;", "msg_token": "handle the crash when delete the chunked download file during downloading"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed small merge bug in FailureExample java"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JetCompletionResultSet { \n public JetCompletionResultSet ( \n @ notnull CompletionResultSet result , \n @ notnull ResolveSessionForBodies resolveSession , \n - @ notnull BindingContext bindingContext ) { \n - this ( result , resolveSession , bindingContext , Conditions . < DeclarationDescriptor > alwaysTrue ( ) ) ; \n - } \n - \n - public JetCompletionResultSet ( \n - @ notnull CompletionResultSet result , \n - @ notnull ResolveSessionForBodies resolveSession , \n @ notnull BindingContext bindingContext , \n @ notnull Condition < DeclarationDescriptor > descriptorFilter ) { \n this . result = result ;", "msg_token": "Removed unused constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class WorldEditCommands { \n private static final DateFormat dateFormat = new SimpleDateFormat ( STRING0 ) ; \n public class WorldEditCommands { \n usage = STRING1 , \n desc = STRING2 , \n min = NUMBER0 , \n - max = NUMBER0 \n + max = NUMBER1 \n ) \n public void cui ( CommandContext args , LocalSession session , LocalPlayer player , \n EditSession editSession ) throws WorldEditException { \n + if ( args . getInteger ( NUMBER0 , - NUMBER1 ) < CUIEvent . MIN_PROTOCOL ) { \n + player . printError ( STRING3 ) ; \n + } \n session . setCUISupport ( true ) ; \n session . dispatchCUISetup ( player ) ; \n } \n \n package NAMESPACE ; \n \n public interface CUIEvent { \n + \n + SINGLE \n + public static final int MIN_PROTOCOL = NUMBER0 , CURRENT_PROTOCOL = NUMBER0 ; \n + \n public String getTypeId ( ) ; \n \n public String [ ] getParameters ( ) ;", "msg_token": "Added WECUI protocol version support"} {"diff": " public class SpiceManager implements Runnable { \n } ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public < T > Future < T > getDataFromCache ( final Class < T > clazz , \n final String cacheKey ) throws CacheLoadingException { \n return executorService . submit ( new Callable < T > ( ) {", "msg_token": "add javadoc for getDataFromCache method"} {"diff": " public final class ActivityThread { \n Log . e ( TAG , STRING0 + \n STRING1 ) ; \n } \n - } \n \n - SINGLE \n - SINGLE \n - ThreadedRenderer . setLibDir ( data . info . getLibDir ( ) ) ; \n + SINGLE \n + SINGLE \n + ThreadedRenderer . setLibDir ( data . info . getLibDir ( ) ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Fix activity thread"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DataFormatClause < T extends ProcessorDefinition < ? > > { \n XMLSecurityDataFormat xsdf = new XMLSecurityDataFormat ( secureTag , namespaces , secureTagContents , recipientKeyAlias , xmlCipherAlgorithm , \n keyCipherAlgorithm , keyOrTrustStoreParameters , keyPassword , digestAlgorithm ) ; \n return dataFormat ( xsdf ) ; \n - } \n - \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public T tarFile ( ) { \n + TarFileDataFormat tfdf = new TarFileDataFormat ( ) ; \n + return dataFormat ( tfdf ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add tarFile to Java DSL"} {"diff": " public class ImapStore extends Store \n SINGLE \n SINGLE \n SINGLE \n - capabilities . add ( ( String ) capability ) ; \n + capabilities . add ( ( ( String ) capability ) . toUpperCase ( ) ) ; \n } \n }", "msg_token": "Save capabilities in upper case so we handle them case insensitively"} {"diff": " public class ReconnectPluginActivator \n COMMENT \n public synchronized void configurationChanged ( ChangeEvent event ) \n { \n - String ifaceName = ( String ) event . getSource ( ) ; \n - \n if ( event . getType ( ) == ChangeEvent . IFACE_UP ) \n { \n SINGLE \n public class ReconnectPluginActivator \n needsReconnection . clear ( ) ; \n } \n \n - connectedInterfaces . add ( ifaceName ) ; \n + connectedInterfaces . add ( ( String ) event . getSource ( ) ) ; \n } \n else if ( event . getType ( ) == ChangeEvent . IFACE_DOWN ) \n { \n + String ifaceName = ( String ) event . getSource ( ) ; \n + \n connectedInterfaces . remove ( ifaceName ) ; \n \n SINGLE \n public class SystemActivityEvent \n { \n return this . eventID ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String toString ( ) { \n + return getClass ( ) . getName ( ) + STRING0 + eventID + STRING1 ; \n + } \n }", "msg_token": "Fixes a class cast exception with dns event fire"} {"diff": " public class EditorSearchComponent extends JPanel implements DataProvider { \n model . setPreserveCase ( myPreserveCase . isEnabled ( ) && myPreserveCase . isSelected ( ) ) ; \n } \n \n + if ( allowedToChangedEditorSelection ) { \n + FindManager findManager = FindManager . getInstance ( myProject ) ; \n + findManager . setFindWasPerformed ( ) ; \n + findManager . setFindNextModel ( model ) ; \n + } \n + \n myLivePreviewController . setFindModel ( model ) ; \n myLivePreview . update ( ) ; \n }", "msg_token": "fixed behavoir of find next prev action after find action"} {"diff": " public abstract class Service extends ContextWrapper implements ComponentCallbac \n protected void dump ( FileDescriptor fd , PrintWriter writer , String [ ] args ) { \n writer . println ( STRING0 ) ; \n } \n - \n - @ override \n - protected void finalize ( ) throws Throwable { \n - super . finalize ( ) ; \n - SINGLE \n - } \n \n SINGLE", "msg_token": "Remove an unnecessary finalizer"} {"diff": " class AndroidParcelableExtension implements TypeGenerationExtension { \n FieldSpec . builder ( parcelerType , STRING0 , \n Modifier . PRIVATE , Modifier . STATIC , Modifier . FINAL ) \n . initializer ( STRING1 , parcelerType , \n - entity . staticTypeName ( ) ) . build ( ) ) ; \n + EntityGenerator . TYPE_NAME ) . build ( ) ) ; \n } \n } \n import NAMESPACE ; \n COMMENT \n class EntityGenerator implements SourceGenerator { \n \n - private static final String PROXY_NAME = STRING2 ; \n - private static final String TYPE_NAME = STRING3 ; \n + static final String PROXY_NAME = STRING2 ; \n + static final String TYPE_NAME = STRING3 ; \n \n private final ProcessingEnvironment processingEnvironment ; \n private final Elements elements ;", "msg_token": "Fix Typename reference"} {"diff": " public class DefaultValueStack < V > implements ValueStack < V > { \n \n public V pop ( int down ) { \n head = pop ( down , head ) ; \n - return tempValue ; \n + V result = tempValue ; \n + tempValue = null ; SINGLE \n + return result ; \n } \n \n @ suppresswarnings ( STRING0 )", "msg_token": "Fix small memory leak in DefaultValueStack"} {"diff": " public class AppleLibraryDescription implements \n if ( type . isPresent ( ) && type . get ( ) . getValue ( ) . equals ( Type . FRAMEWORK ) ) { \n if ( ! args . infoPlist . isPresent ( ) ) { \n throw new HumanReadableException ( \n - STRING0 , \n + STRING0 + \n STRING1 , \n params . getBuildTarget ( ) . getUnflavoredBuildTarget ( ) ) ; \n }", "msg_token": "Fix exception message"} {"diff": " public class Image extends NativeObject implements Savable COMMENT { \n protected int width , height , depth ; \n protected int [ ] mipMapSizes ; \n protected ArrayList < ByteBuffer > data ; \n - protected transient Object efficientData ; \n protected int multiSamples = NUMBER0 ; \n protected ColorSpace colorSpace = null ; \n SINGLE \n public class Image extends NativeObject implements Savable COMMENT { \n COMMENT \n @ deprecated \n public void setEfficentData ( Object efficientData ) { \n - this . efficientData = efficientData ; \n - setUpdateNeeded ( ) ; \n } \n \n COMMENT \n public class Image extends NativeObject implements Savable COMMENT { \n COMMENT \n @ deprecated \n public Object getEfficentData ( ) { \n - return efficientData ; \n + return null ; \n } \n \n COMMENT", "msg_token": "remove efficient state field"} {"diff": " public class DefaultResponseTransmitter implements ResponseTransmitter { \n } else { \n notifyListeners ( responseStatus , channel . newSucceededFuture ( ) ) ; \n } \n - channel . attr ( ATTRIBUTE_KEY ) . remove ( ) ; \n } \n \n private void notifyListeners ( final HttpResponseStatus responseStatus , ChannelFuture future ) { \n if ( outcomeListeners != null ) { \n future . addListener ( ignore - > { \n + channel . attr ( ATTRIBUTE_KEY ) . remove ( ) ; \n SentResponse sentResponse = new DefaultSentResponse ( new NettyHeadersBackedHeaders ( responseHeaders ) , new DefaultStatus ( responseStatus ) ) ; \n RequestOutcome requestOutcome = new DefaultRequestOutcome ( ratpackRequest , sentResponse , stopTime ) ; \n for ( Action < ? super RequestOutcome > outcomeListener : outcomeListeners ) {", "msg_token": "Don t clear the transmitter key until the response has been sent"} {"diff": " public class ParserTest { \n Document doc = Jsoup . parse ( h ) ; \n assertEquals ( STRING0 , doc . select ( STRING1 ) . first ( ) . html ( ) ) ; \n } \n + \n + @ test public void handlesSolidusInA ( ) { \n + SINGLE \n + String h = STRING2 ; \n + Document doc = Jsoup . parse ( h ) ; \n + Element a = doc . select ( STRING3 ) . first ( ) ; \n + assertEquals ( STRING4 , a . text ( ) ) ; \n + assertEquals ( STRING5 , a . attr ( STRING6 ) ) ; \n + } \n }", "msg_token": "Added test to verify that solidus as end of unquoted attribute in tag is handled as part of attribute and"} {"diff": " public final class UsbAlsaManager { \n if ( audioDevice != null ) { \n if ( audioDevice . mHasPlayback || audioDevice . mHasPlayback ) { \n notifyDeviceState ( audioDevice , false ) ; \n + mSelectedAudioDevice = null ; \n + \n + SINGLE \n + selectDefaultDevice ( ) ; \n } \n } \n UsbMidiDevice usbMidiDevice = mMidiDevices . remove ( usbDevice ) ; \n if ( usbMidiDevice != null ) { \n IoUtils . closeQuietly ( usbMidiDevice ) ; \n } \n - \n - mSelectedAudioDevice = null ; \n - \n - SINGLE \n - selectDefaultDevice ( ) ; \n } \n \n COMMENT", "msg_token": "Don t reselect current USB audio device on all USB disconnects"} {"diff": " public class AccountHeaderBuilder { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n public AccountHeaderBuilder withSelectionFistLineShown ( boolean selectionFirstLineShown ) { \n this . mSelectionFirstLineShown = selectionFirstLineShown ; \n return this ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public AccountHeaderBuilder withSelectionFirstLineShown ( boolean selectionFirstLineShown ) { \n + this . mSelectionFirstLineShown = selectionFirstLineShown ; \n + return this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Deprecate misspelled method and replace with corrected version"} {"diff": " public class RealmQueryTest extends AndroidTestCase { \n Dog dog = dogs . where ( ) . equalTo ( STRING0 , FLOAT0 ) . findFirst ( ) ; \n assertEquals ( dog1 , dog ) ; \n } \n + \n + public void testSubqueryScope ( ) { \n + populateTestRealm ( ) ; \n + RealmResults < AllTypes > result = testRealm . where ( AllTypes . class ) . lessThan ( STRING1 , NUMBER0 ) . findAll ( ) ; \n + RealmResults < AllTypes > subQueryResult = result . where ( ) . greaterThan ( STRING1 , NUMBER1 ) . findAll ( ) ; \n + assertEquals ( NUMBER2 , subQueryResult . size ( ) ) ; \n + } \n }", "msg_token": "Expose RealmQuery scope error"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GeneralHighlightingPass extends ProgressableTextEditorHighlightingP \n TextAttributes attributes = todoItem . getPattern ( ) . getAttributes ( ) . getTextAttributes ( ) ; \n HighlightInfo . Builder builder = HighlightInfo . newHighlightInfo ( HighlightInfoType . TODO ) . range ( range ) ; \n builder . textAttributes ( attributes ) ; \n - builder . descriptionAndTooltip ( description ) ; \n + builder . description ( description ) ; \n + builder . unescapedToolTip ( StringUtil . shortenPathWithEllipsis ( description , NUMBER0 ) ) ; \n HighlightInfo info = builder . createUnconditionally ( ) ; \n ( priorityRange . containsRange ( info . getStartOffset ( ) , info . getEndOffset ( ) ) ? insideResult : outsideResult ) . add ( info ) ; \n }", "msg_token": "shorten too long todos"} {"diff": " public abstract class Animation3D { \n COMMENT \n COMMENT \n public void update ( final double deltaTime ) { \n - if ( mPaused ) \n + if ( mPaused || ! mPlaying ) \n return ; \n \n SINGLE", "msg_token": "Fixed the animation end event"} {"diff": " class MaxConstraint extends AbstractConstraint { \n COMMENT \n COMMENT \n public boolean supports ( Class type ) { \n - System . out . println ( STRING0 + type ) ; \n - Map m = GrailsClassUtils . PRIMITIVE_TYPE_COMPATIBLE_CLASSES ; \n - System . out . println ( STRING1 + m ) ; \n - Class c = ( Class ) GrailsClassUtils . PRIMITIVE_TYPE_COMPATIBLE_CLASSES . get ( type ) ; \n - System . out . println ( STRING2 + c ) ; \n - \n return type != null && ( Comparable . class . isAssignableFrom ( type ) || \n GrailsClassUtils . isAssignableOrConvertibleFrom ( Number . class , type ) ) ; \n }", "msg_token": "Removed System out println"} {"diff": " public class MemberIsAvailable \n clusterUri = URI . create ( in . readUTF ( ) ) ; \n roleUri = URI . create ( in . readUTF ( ) ) ; \n } \n + \n + @ override \n + public String toString ( ) \n + { \n + return String . format ( STRING0 , \n + role , instanceId . toString ( ) , roleUri . toString ( ) , clusterUri . toString ( ) ) ; \n + } \n } \n public class MemberIsUnavailable \n clusterUri = URI . create ( in . readUTF ( ) ) ; \n } \n \n + @ override \n + public String toString ( ) \n + { \n + return String . format ( STRING1 , \n + role , instanceId . toString ( ) , clusterUri . toString ( ) ) ; \n + } \n }", "msg_token": "Adds toString in MemberIsAvailable MemberIsUnavailable"} {"diff": " public class GuiIngameForge extends GuiIngame \n if ( slot >= NUMBER0 ) objective = scoreboard . getObjectiveInDisplaySlot ( NUMBER1 + slot ) ; \n } \n ScoreObjective scoreobjective1 = objective != null ? objective : scoreboard . getObjectiveInDisplaySlot ( NUMBER2 ) ; \n - if ( renderObjective && objective != null ) \n + if ( renderObjective && scoreobjective1 != null ) \n { \n - this . func_180475_a ( objective , res ) ; \n + this . func_180475_a ( scoreobjective1 , res ) ; \n } \n \n GlStateManager . enableBlend ( ) ;", "msg_token": "Fix Scoreboard rendering for the sidebar"} {"diff": " public class PointLocationLayer extends OsmandMapLayer { \n \n \n private RectF getHeadingRect ( int locationX , int locationY ) { \n - int rad = ( int ) ( view . getDensity ( ) * NUMBER0 ) ; \n + int rad = ( int ) ( view . getDensity ( ) * NUMBER1 ) ; \n return new RectF ( locationX - rad , locationY - rad , locationX + rad , locationY + rad ) ; \n }", "msg_token": "Make cone bigger"} {"diff": " public class LeakTrackingByteBufferPool extends ContainerLifeCycle implements By \n @ override \n public void release ( ByteBuffer buffer ) \n { \n + if ( buffer == null ) \n + return ; \n if ( ! leakDetector . released ( buffer ) ) \n LOG . warn ( STRING0 , buffer , System . identityHashCode ( buffer ) ) ; \n delegate . release ( buffer ) ;", "msg_token": "Do not track null ByteBuffers that are being released"} {"diff": " public class OLuceneIndexNotUnique extends OIndexNotUnique implements OLuceneInd \n \n public OLuceneIndexNotUnique ( String name , String typeId , String algorithm , OLuceneIndexEngine engine , \n String valueContainerAlgorithm , ODocument metadata ) { \n - super ( typeId , algorithm , engine , valueContainerAlgorithm , metadata ) ; \n + super ( name , typeId , algorithm , engine , valueContainerAlgorithm , metadata ) ; \n \n engine . setIndexMetadata ( metadata ) ; \n }", "msg_token": "Fixed compilation problem"} {"diff": " public abstract class MixinEventUseItemStack extends MixinEventPlayer implements \n \n private ItemStackSnapshot itemResultSnapshot ; \n private ItemStackTransaction itemResultTransaction ; \n - @ shadow public ItemStack result ; \n \n @ inject ( method = STRING0 , at = @ at ( STRING1 ) ) \n - public void onConstructed ( EntityPlayer player , net . minecraft . item . ItemStack item , int duration , CallbackInfo ci ) { \n + public void onConstructed ( EntityPlayer player , net . minecraft . item . ItemStack item , int duration , net . minecraft . item . ItemStack result , CallbackInfo ci ) { \n itemResultSnapshot = ( ( ItemStack ) result ) . createSnapshot ( ) ; \n this . itemResultTransaction = new ItemStackTransaction ( itemResultSnapshot ) ; \n } \n public abstract class MixinEventUseItemStack extends MixinEventPlayer implements \n return this . itemResultTransaction ; \n } \n \n - \n } \n \n @ override", "msg_token": "Fix UseItemStackEvent crash"} {"diff": " public class ConstantNameCheckTest \n } ; \n verify ( checkConfig , getPath ( STRING0 + File . separator + STRING1 ) , expected ) ; \n } \n + \n + @ test \n + public void testIntoInterface ( ) throws Exception \n + { \n + final DefaultConfiguration checkConfig = \n + createCheckConfig ( ConstantNameCheck . class ) ; \n + final String [ ] expected = { \n + STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 , \n + STRING6 , \n + STRING7 , \n + STRING8 , \n + STRING9 , \n + } ; \n + verify ( checkConfig , getPath ( STRING0 + File . separator + STRING10 ) , expected ) ; \n + } \n }", "msg_token": "Investigated conflict into MemberNameCheck"} {"diff": " public class PopupWindow { \n \n mContentView = contentView ; \n \n - if ( mContext == null ) { \n + if ( mContext == null && mContentView != null ) { \n mContext = mContentView . getContext ( ) ; \n } \n \n - if ( mWindowManager == null ) { \n + if ( mWindowManager == null && mContentView != null ) { \n mWindowManager = ( WindowManager ) mContext . getSystemService ( Context . WINDOW_SERVICE ) ; \n } \n } \n public class PopupWindow { \n COMMENT \n COMMENT \n private void invokePopup ( WindowManager . LayoutParams p ) { \n - p . packageName = mContext . getPackageName ( ) ; \n + if ( mContext != null ) { \n + p . packageName = mContext . getPackageName ( ) ; \n + } \n mWindowManager . addView ( mPopupView , p ) ; \n }", "msg_token": "Fix NPE when calling PopupWindow s default constructor"} {"diff": " public abstract class TitanBlueprintsTransaction implements TitanTransaction { \n longId = ( ( Number ) id ) . longValue ( ) ; \n } else { \n try { \n - longId = Double . valueOf ( id . toString ( ) ) . longValue ( ) ; \n + longId = Long . valueOf ( id . toString ( ) ) . longValue ( ) ; \n } catch ( NumberFormatException e ) { \n return null ; \n }", "msg_token": "If id is a string do a Long valueOf not Double valueOf"} {"diff": " public class HoltWintersModel extends MovAvgModel { \n } \n \n if ( seasonalityType != null ) { \n - builder . field ( STRING0 , seasonalityType ) ; \n + builder . field ( STRING1 , seasonalityType . getName ( ) ) ; \n } \n \n builder . endObject ( ) ;", "msg_token": "Fix value of HoltWinters seasonality param in builder"} {"diff": " class SipSessionGroup implements SipListener { \n } \n \n synchronized void onConnectivityChanged ( ) { \n - for ( SipSessionImpl s : mSessionMap . values ( ) ) { \n + SipSessionImpl [ ] ss = mSessionMap . values ( ) . toArray ( \n + new SipSessionImpl [ mSessionMap . size ( ) ] ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + for ( SipSessionImpl s : ss ) { \n s . onError ( SipErrorCode . DATA_CONNECTION_LOST , \n STRING0 ) ; \n }", "msg_token": "Fix SipSessionGroup from throwing ConcurrentModificationException"} {"diff": " public class InferenceSession { \n if ( parentMethod instanceof PsiMethod ) { \n final PsiParameter [ ] parameters = ( ( PsiMethod ) parentMethod ) . getParameterList ( ) . getParameters ( ) ; \n if ( parameters . length == NUMBER0 ) return null ; \n + final PsiExpression [ ] args = argumentList . getExpressions ( ) ; \n + if ( ! ( ( PsiMethod ) parentMethod ) . isVarArgs ( ) && parameters . length != args . length ) return null ; \n PsiElement arg = context ; \n while ( arg . getParent ( ) instanceof PsiParenthesizedExpression ) { \n arg = arg . getParent ( ) ; \n } \n - final PsiExpression [ ] args = argumentList . getExpressions ( ) ; \n final int i = ArrayUtilRt . find ( args , arg ) ; \n if ( i < NUMBER0 ) return null ; \n if ( pair != null ) {", "msg_token": "reject wrong overloaded methods earlier"} {"diff": " public class HgContentRevision implements ByteBackedContentRevision { \n myRevisionNumber = revisionNumber ; \n } \n \n + SINGLE \n + @ notnull \n + public HgFile getHgFile ( ) { \n + return myHgFile ; \n + } \n + \n @ notnull \n public static HgContentRevision create ( Project project , @ notnull HgFile hgFile , @ notnull HgRevisionNumber revisionNumber ) { \n return ! hgFile . toFilePath ( ) . getFileType ( ) . isBinary ( )", "msg_token": "Add getter for myHgFile to use in Upsource plugin"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n UnderFileSystem ufs = resolution . getUfs ( ) ; \n try { \n if ( ! ufs . exists ( ufsUri . toString ( ) ) ) { \n + SINGLE \n + SINGLE \n + if ( path . isRoot ( ) ) { \n + InodeDirectory inode = ( InodeDirectory ) inodePath . getInode ( ) ; \n + inode . setDirectChildrenLoaded ( true ) ; \n + return AsyncJournalWriter . INVALID_FLUSH_COUNTER ; \n + } \n throw new FileDoesNotExistException ( \n ExceptionMessage . PATH_DOES_NOT_EXIST . getMessage ( path . getPath ( ) ) ) ; \n }", "msg_token": "Improve load metadata for root"} {"diff": " import static NAMESPACE ; \n \n @ runwith ( HazelcastParallelClassRunner . class ) \n @ category ( { QuickTest . class , ParallelTest . class } ) \n - @ ignore SINGLE \n public class ClientWriteBehindFlushTest extends HazelcastTestSupport { \n \n private static final String MAP_NAME = STRING0 ; \n public class ClientWriteBehindFlushTest extends HazelcastTestSupport { \n \n \n @ test \n + @ ignore SINGLE \n public void testWriteBehindQueues_emptied_onOwnerAndBackupNodes ( ) throws Exception { \n IMap map = client . getMap ( MAP_NAME ) ; \n \n import static NAMESPACE ; \n \n @ runwith ( HazelcastParallelClassRunner . class ) \n @ category ( { QuickTest . class , ParallelTest . class } ) \n - @ ignore SINGLE \n public class WriteBehindFlushTest extends HazelcastTestSupport { \n \n @ test \n public class WriteBehindFlushTest extends HazelcastTestSupport { \n } \n \n @ test \n + @ ignore SINGLE \n public void testWriteBehindQueues_emptied_onBackupNodes ( ) throws Exception { \n int nodeCount = NUMBER0 ; \n String mapName = randomName ( ) ;", "msg_token": "ignored Client WriteBehindFlushTest testWriteBehindQueues_emptied_onBackupNodes testWriteBehindQueues_emptied_onOwnerAndBackupNodes"} {"diff": " public class GtasksSyncProvider extends SyncProvider < GtasksTaskContainer > { \n public void run ( ) { \n String token = preferenceActivity . getAuthManager ( ) . getAuthToken ( ) ; \n if ( token != null ) { \n + token = STRING0 + token ; \n gtasksPreferenceService . setToken ( token ) ; \n activity . startService ( new Intent ( SyncBackgroundService . SYNC_ACTION , null , \n activity , GtasksBackgroundService . class ) ) ;", "msg_token": "Fixed token creation for gtasks"} {"diff": " public abstract class XmlIndex < V > implements FileBasedIndexExtension < String , V > \n return new VirtualFileFilter ( ) { \n \n private final ProjectFileIndex myFileIndex = ProjectRootManager . getInstance ( project ) . getFileIndex ( ) ; \n - private final VirtualFile myStandardSchemas = ExternalResourcesRootsProvider . getStandardSchemas ( ) ; \n \n public boolean accept ( final VirtualFile file ) { \n - return myFileIndex . isInContent ( file ) || myFileIndex . isInLibraryClasses ( file ) || file . getParent ( ) == myStandardSchemas ; \n + final VirtualFile parent = file . getParent ( ) ; \n + assert parent != null ; \n + return myFileIndex . isInContent ( file ) || myFileIndex . isInLibraryClasses ( file ) || parent . getName ( ) . equals ( STRING0 ) ; \n } \n } ; \n }", "msg_token": "javaee schemas go home"} {"diff": " public class CallManager \n SINGLE \n NotificationManager . fireNotification ( \n NotificationManager . INCOMING_CALL , \n - null , \n + GuiActivator . getResources ( ) . getSettingsString ( \n + STRING0 ) , \n STRING1 \n + sourceCall . getCallParticipants ( ) . next ( ) ) ; \n }", "msg_token": "provides some string as the notification title rather than null"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class Intention implements IntentionAction { \n } \n \n SelectionModel selectionModel = editor . getSelectionModel ( ) ; \n - if ( selectionModel . hasSelection ( ) ) { \n + if ( selectionModel . hasSelection ( ) && ! selectionModel . hasBlockSelection ( ) ) { \n TextRange selectionRange = new TextRange ( selectionModel . getSelectionStart ( ) , selectionModel . getSelectionEnd ( ) ) ; \n PsiElement element = GroovyRefactoringUtil \n . findElementInRange ( file , selectionModel . getSelectionStart ( ) , selectionModel . getSelectionEnd ( ) , PsiElement . class ) ;", "msg_token": "don t use selection model if block selection is enabled"} {"diff": " public class Camera { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve camera getSupportedPreviewFormats javadoc"} {"diff": " public class AIMSICDDbAdapter extends SQLiteOpenHelper { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AIMSICDDbAdapter extends SQLiteOpenHelper { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added comments regarding cellid vs cid"} {"diff": " public class RosterItemProvider { \n private void insertGroups ( long rosterID , Iterator < String > iter , Connection con ) throws SQLException \n { \n PreparedStatement pstmt = null ; \n + String groupName = null ; \n try { \n pstmt = con . prepareStatement ( CREATE_ROSTER_ITEM_GROUPS ) ; \n pstmt . setLong ( NUMBER0 , rosterID ) ; \n for ( int i = NUMBER1 ; iter . hasNext ( ) ; i ++ ) { \n pstmt . setInt ( NUMBER2 , i ) ; \n - pstmt . setString ( NUMBER3 , iter . next ( ) ) ; \n + groupName = iter . next ( ) ; \n + pstmt . setString ( NUMBER3 , groupName ) ; \n try { \n pstmt . executeUpdate ( ) ; \n } \n public class RosterItemProvider { \n } \n } \n catch ( Exception e ) { \n - Log . error ( e ) ; \n + Log . error ( STRING0 + groupName + STRING1 + rosterID , e ) ; \n } \n } \n }", "msg_token": "Improved error message"} {"diff": " public class VirtualWebappLoader extends WebappLoader { \n while ( tkn . hasMoreTokens ( ) ) { \n String token = tkn . nextToken ( ) . trim ( ) ; \n \n + if ( token . isEmpty ( ) ) { \n + continue ; \n + } \n + \n if ( log . isDebugEnabled ( ) ) \n log . debug ( sm . getString ( STRING0 , token ) ) ;", "msg_token": "Explicitly ignore empty tokens in the value of VirtualWebappLoader virtualClasspath"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add ASF license header"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class DBTest extends DatabaseTestCase { \n \n @ test \n public void shouldInsertDocumentsUsingEval ( ) { \n + assumeFalse ( isAuthenticated ( ) ) ; \n SINGLE \n database . eval ( STRING0 + collectionName + STRING1 ) ;", "msg_token": "Check not authenticated for eval test"} {"diff": " public class CalendarCellView extends TextView { \n \n public void setHighlighted ( boolean highlighted ) { \n isHighlighted = highlighted ; \n + refreshDrawableState ( ) ; \n } \n \n @ override protected int [ ] onCreateDrawableState ( int extraSpace ) {", "msg_token": "highlighted cells not refreshing fix"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify LoggingApplicationListener Javadoc"} {"diff": " public class DBCollection { \n throw new IllegalArgumentException ( STRING0 + skip ) ; \n } \n \n - SINGLE \n Find find = new Find ( wrapAllowNull ( query ) ) . limit ( ( int ) limit ) . skip ( ( int ) skip ) . maxTime ( maxTime , maxTimeUnit ) ; \n \n return execute ( new CountOperation ( getNamespace ( ) , find ) , readPreference ) ;", "msg_token": "Removed outdated TODO about limit and skip"} {"diff": " public class StanfordCoreNLP extends AnnotationPipeline { \n case SERIALIZED : defaultExtension = STRING0 ; break ; \n default : throw new IllegalArgumentException ( STRING1 + outputFormat ) ; \n } \n - final String serializerClass = properties . getProperty ( STRING2 ) ; \n + final String serializerClass = properties . getProperty ( STRING2 , GenericAnnotationSerializer . class . getName ( ) ) ; \n final String inputSerializerClass = properties . getProperty ( STRING3 , serializerClass ) ; \n final String inputSerializerName = ( serializerClass . equals ( inputSerializerClass ) ) ? STRING2 : STRING3 ; \n final String outputSerializerClass = properties . getProperty ( STRING4 , serializerClass ) ;", "msg_token": "Add a default serializer"} {"diff": " class CoordinationPattern extends TregexPattern { \n public String toString ( ) { \n StringBuilder sb = new StringBuilder ( ) ; \n if ( isConj ) { \n + if ( isNegated ( ) ) { \n + sb . append ( STRING0 ) ; \n + } \n for ( TregexPattern node : children ) { \n sb . append ( node . toString ( ) ) ; \n } \n + if ( isNegated ( ) ) { \n + sb . append ( STRING1 ) ; \n + } \n } else { \n + if ( isNegated ( ) ) { \n + sb . append ( STRING2 ) ; \n + } \n sb . append ( STRING3 ) ; \n for ( Iterator < TregexPattern > iter = children . iterator ( ) ; iter . hasNext ( ) ; ) { \n TregexPattern node = iter . next ( ) ;", "msg_token": "Fix the CoordinationPattern toString for negated nodes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RemoteRevisionsCache implements PlusMinus < Pair < String , AbstractVcs > \n } \n \n public void directoryMappingChanged ( ) { \n - updateOnDirectoryMappingChanged ( ) ; \n - myRemoteRevisionsNumbersCache . directoryMappingChanged ( ) ; \n - myRemoteRevisionsStateCache . directoryMappingChanged ( ) ; \n + try { \n + updateOnDirectoryMappingChanged ( ) ; \n + myRemoteRevisionsNumbersCache . directoryMappingChanged ( ) ; \n + myRemoteRevisionsStateCache . directoryMappingChanged ( ) ; \n + } catch ( ProcessCanceledException ignore ) { \n + } \n } \n \n public void plus ( final Pair < String , AbstractVcs > pair ) {", "msg_token": "do not throw process canceled from listener just suppress actions"} {"diff": " public class BeaconService extends Service { \n bluetoothCrashResolver . start ( ) ; \n \n SINGLE \n - mExecutor = Executors . newFixedThreadPool ( Runtime . getRuntime ( ) . availableProcessors ( ) * NUMBER0 + NUMBER1 ) ; \n + SINGLE \n + mExecutor = Executors . newFixedThreadPool ( Runtime . getRuntime ( ) . availableProcessors ( ) + NUMBER1 ) ; \n \n mCycledScanner = CycledLeScanner . createScanner ( this , BeaconManager . DEFAULT_FOREGROUND_SCAN_PERIOD , \n BeaconManager . DEFAULT_FOREGROUND_BETWEEN_SCAN_PERIOD , mBackgroundFlag , mCycledLeScanCallback , bluetoothCrashResolver ) ;", "msg_token": "halve the size of the scanning thread pool so as not to hog CPU"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class InProcessGradleExecuter extends AbstractGradleExecuter { \n ) ; \n BuildRequestContext buildRequestContext = new DefaultBuildRequestContext ( \n new DefaultBuildRequestMetaData ( new GradleLauncherMetaData ( ) , \n - ManagementFactory . getRuntimeMXBean ( ) . getStartTime ( ) ) , \n + System . currentTimeMillis ( ) ) , \n new DefaultBuildCancellationToken ( ) , \n new NoOpBuildEventConsumer ( ) , \n outputListener , errorListener ) ;", "msg_token": "Speed up embedded tests by using the correct start time of the build"} {"diff": " public class GLMTest2 extends TestUtil { \n Key parsed = Key . make ( STRING0 ) ; \n Key modelKey = Key . make ( STRING1 ) ; \n GLMModel model = null ; \n - Frame fr = getFrameForFile ( parsed , STRING2 , new String [ ] { STRING3 } , STRING4 ) ; \n + Frame fr = getFrameForFile ( parsed , STRING5 , new String [ ] { STRING3 } , STRING4 ) ; \n Key k = Key . make ( STRING6 ) ; \n H2O . submitTask ( new RebalanceDataSet ( fr , k , NUMBER0 ) ) . join ( ) ; \n fr . delete ( ) ;", "msg_token": "foxed glm test use correct prostate file in testBounds"} {"diff": " class ComputingConcurrentHashMap < K , V > extends CustomConcurrentHashMap < K , V > \n public void clear ( ) { \n SINGLE \n SINGLE \n + setValueReference ( new ComputedReference < K , V > ( null ) ) ; \n + \n SINGLE \n - synchronized ( this ) { \n - notifyAll ( ) ; \n - } \n } \n \n public void notifyValueReclaimed ( ) { } \n class ComputingConcurrentHashMap < K , V > extends CustomConcurrentHashMap < K , V > \n \n void setValueReference ( ValueReference < K , V > valueReference ) { \n synchronized ( this ) { \n - computedReference = valueReference ; \n - notifyAll ( ) ; \n + if ( computedReference == UNSET ) { \n + computedReference = valueReference ; \n + notifyAll ( ) ; \n + } \n } \n } \n }", "msg_token": "only allow computed value to be set once"} {"diff": " public class TurnEdge implements DirectEdge , StreetEdge , Serializable { \n \n @ override \n public double timeLowerBound ( TraverseOptions options ) { \n - return fromv . length / options . speed ; \n + return ( fromv . length + turnCost / NUMBER0 ) / options . speed ; \n } \n \n }", "msg_token": "tighten lower bound w turnCost"} {"diff": " public class CompanyLocalServiceImpl extends CompanyLocalServiceBaseImpl { \n String emailAddress = \n PropsUtil . get ( \n PropsUtil . DEFAULT_ADMIN_EMAIL_ADDRESS_PREFIX ) + \n - STRING0 + webId ; \n + STRING0 + mx ; \n Locale locale = defaultUser . getLocale ( ) ; \n String firstName = PropsUtil . get ( \n PropsUtil . DEFAULT_ADMIN_FIRST_NAME ) ;", "msg_token": "Default user used webId instead of mx minor typo"} {"diff": " public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback \n Log . d ( TAG , STRING0 + mDetached ) ; \n } \n if ( mDetached && ( mRenderer != null ) ) { \n + int renderMode = RENDERMODE_CONTINUOUSLY ; \n + if ( mGLThread != null ) { \n + renderMode = mGLThread . getRenderMode ( ) ; \n + } \n mGLThread = new GLThread ( mRenderer ) ; \n + if ( renderMode != RENDERMODE_CONTINUOUSLY ) { \n + mGLThread . setRenderMode ( renderMode ) ; \n + } \n mGLThread . start ( ) ; \n } \n mDetached = false ;", "msg_token": "Preserve the render mode when recreating the render thread"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - public class InternalFailure implements FailureVersion1 { \n + public class InternalFailure implements FailureVersion1 , Serializable { \n private final String message ; \n private final String description ; \n private final InternalFailure cause ;", "msg_token": "Make InternalFailure Serializable"} {"diff": " public class IncrementalIndexStorageAdapter implements StorageAdapter \n { \n IncrementalIndex . DimensionDesc dimensionDesc = index . getDimension ( dimension ) ; \n if ( dimensionDesc == null ) { \n - return new BooleanValueMatcher ( false ) ; \n + return new BooleanValueMatcher ( predicate . apply ( null ) ) ; \n } \n final int dimIndex = dimensionDesc . getIndex ( ) ; \n final IncrementalIndex . DimDim dimDim = dimensionDesc . getValues ( ) ;", "msg_token": "Fix predicate based ValueMatcher behavior for IncrementalIndex on missing columns"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n COMMENT \n - public class AwarenessAllocationTests { \n + public class AwarenessAllocationTests extends ElasticsearchTestCase { \n \n private final ESLogger logger = Loggers . getLogger ( AwarenessAllocationTests . class ) ;", "msg_token": "AwarenessAllocationTests must extend ESTestCase in order to respect AwaitsFix annotations"} {"diff": " public class ExecutionPointHighlighter { \n if ( mySourcePosition instanceof HighlighterProvider ) { \n TextRange range = ( ( HighlighterProvider ) mySourcePosition ) . getHighlightRange ( ) ; \n if ( range != null ) { \n - range = range . intersection ( DocumentUtil . getLineTextRange ( document , line ) ) ; \n - if ( range != null && ! range . isEmpty ( ) ) { \n + TextRange lineRange = DocumentUtil . getLineTextRange ( document , line ) ; \n + range = range . intersection ( lineRange ) ; \n + if ( range != null && ! range . isEmpty ( ) && ! range . equals ( lineRange ) ) { \n myRangeHighlighter = markupModel . addRangeHighlighter ( range . getStartOffset ( ) , range . getEndOffset ( ) , \n DebuggerColors . EXECUTION_LINE_HIGHLIGHTERLAYER , attributes , \n HighlighterTargetArea . EXACT_RANGE ) ;", "msg_token": "add line highlighter not range if lambda body fully contains the current line"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - @ deprecated \n public abstract class AbstractContextualMonitor < T , M extends Monitor < T > > \n implements CompositeMonitor < T > { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - @ deprecated \n public class ContextualCounter extends AbstractContextualMonitor < Number , Counter > \n implements Counter { \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - @ deprecated \n public class ContextualTimer extends AbstractContextualMonitor < Long , Timer > implements Timer { \n \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - @ deprecated \n public interface TaggingContext { \n COMMENT \n TagList getTags ( ) ; \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - @ deprecated \n public final class ThreadLocalTaggingContext implements TaggingContext { \n \n private final ThreadLocal < TagList > context = new ThreadLocal < TagList > ( ) ;", "msg_token": "Remove deprecation from Contextual monitors"} {"diff": " public class ContentView extends FrameLayout { \n boolean isCopyToClipboardAction = actionItem . mPackageName . equals ( STRING0 ) \n && actionItem . mActivityClassName . equals ( STRING1 ) ; \n \n - if ( closeBubbleOnShare && isCopyToClipboardAction == false && MainController . get ( ) != null ) { \n - MainController . get ( ) . closeTab ( mOwnerTabView , true ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n } \n } ) ; \n alertDialog . show ( ) ;", "msg_token": "Sharing doesn t automatically close the current tab"} {"diff": " public abstract class BaseMod implements cpw . mods . fml . common . modloader . BaseMod \n if ( tick == TickType . WORLD && tickEnd ) { \n return onTickInGame ( ( MinecraftServer ) minecraftInstance ) ; \n } else { \n - return false ; \n + return true ; \n } \n }", "msg_token": "Fix ticking on bukkit server"} {"diff": " public class Mustache { \n line . set ( compiled [ i ] . getLine ( ) ) ; \n } \n Code [ ] truncate = truncate ( compiled , i + NUMBER0 ) ; \n - System . out . println ( STRING0 + compiled [ i ] . toString ( ) ) ; \n current = compiled [ i ] . unexecute ( current , text , position , truncate ) ; \n } \n return current ;", "msg_token": "remove debug statement"} {"diff": " public class WordPress extends Application { \n ReaderPrefs . reset ( ) ; \n ReaderDatabase . reset ( ) ; \n \n + SINGLE \n + WordPress . wpDB . clearNotes ( ) ; \n + \n SINGLE \n SINGLE \n Intent broadcastIntent = new Intent ( ) ;", "msg_token": "Delete notes on logout"} {"diff": " public abstract class PackageManager { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class PackageManager { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Refer to hasSystemFeature String int in Vulkan feature docs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NestedScrollView extends FrameLayout implements NestedScrollingPare \n initOrResetVelocityTracker ( ) ; \n mVelocityTracker . addMovement ( ev ) ; \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + mScroller . computeScrollOffset ( ) ; \n mIsBeingDragged = ! mScroller . isFinished ( ) ; \n startNestedScroll ( ViewCompat . SCROLL_AXIS_VERTICAL ) ; \n break ;", "msg_token": "Fix NSV not allowing clicks after a small fling"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MongoDBRiver extends AbstractRiverComponent implements River { \n } \n \n script = scriptService . executable ( scriptType , mongoSettings \n - . get ( SCRIPT_FIELD ) . toString ( ) , Maps . newHashMap ( ) ) ; \n + . get ( SCRIPT_FIELD ) . toString ( ) , ImmutableMap . of ( STRING0 , logger ) ) ; \n } else { \n script = null ; \n }", "msg_token": "Add logger object to script"} {"diff": " public class AsyncHttpClient { \n \n @ override \n protected void finalize ( ) throws Throwable { \n - if ( ! isClosed . get ( ) ) { \n + if ( isClosed . get ( ) ) { \n close ( ) ; \n } \n super . finalize ( ) ;", "msg_token": "Fix trival typo"} {"diff": " public abstract class ReadOnlyConnectorMetadata \n } \n \n @ override \n - public void createView ( ConnectorSession session , SchemaTableName viewName , String viewData , boolean replace ) \n + public final void createView ( ConnectorSession session , SchemaTableName viewName , String viewData , boolean replace ) \n { \n throw new UnsupportedOperationException ( ) ; \n } \n \n @ override \n - public void dropView ( ConnectorSession session , SchemaTableName viewName ) \n + public final void dropView ( ConnectorSession session , SchemaTableName viewName ) \n { \n throw new UnsupportedOperationException ( ) ; \n } \n \n @ override \n - public List < SchemaTableName > listViews ( ConnectorSession session , String schemaNameOrNull ) \n + public final List < SchemaTableName > listViews ( ConnectorSession session , String schemaNameOrNull ) \n { \n return emptyList ( ) ; \n } \n \n @ override \n - public Map < SchemaTableName , String > getViews ( ConnectorSession session , SchemaTablePrefix prefix ) \n + public final Map < SchemaTableName , String > getViews ( ConnectorSession session , SchemaTablePrefix prefix ) \n { \n return emptyMap ( ) ; \n }", "msg_token": "Make ReadOnlyConnectorMetadata methods final"} {"diff": " public class Account implements BaseAccount { \n \n cacheChips ( ) ; \n \n + SINGLE \n + if ( mDescription == null ) { \n + mDescription = getEmail ( ) ; \n + } \n } \n \n protected synchronized void delete ( Preferences preferences ) {", "msg_token": "Make sure Account getDescription never returns null"} {"diff": " public class GraphMLWriter { \n return GraphMLTokens . LONG ; \n else if ( object instanceof Float ) \n return GraphMLTokens . FLOAT ; \n - else if ( object instanceof Double ) \n + else if ( object instanceof Number ) \n return GraphMLTokens . DOUBLE ; \n else if ( object instanceof Boolean ) \n return GraphMLTokens . BOOLEAN ;", "msg_token": "updated GraphMLWriter to support other types of numbers being represented as a double"} {"diff": " public abstract class HardwareRenderer { \n if ( full && mCanvas != null ) { \n mCanvas = null ; \n } \n - \n - if ( ! isEnabled ( ) || mDestroyed ) return ; \n \n - mDestroyed = true ; \n + if ( ! isEnabled ( ) || mDestroyed ) { \n + setEnabled ( false ) ; \n + return ; \n + } \n \n destroySurface ( ) ; \n + setEnabled ( false ) ; \n \n + mDestroyed = true ; \n mGl = null ; \n - \n - setEnabled ( false ) ; \n } \n \n void destroySurface ( ) {", "msg_token": "Prevent crash with NPE in HardwareRenderer"} {"diff": " public final class MediaStore { \n COMMENT \n public static final String INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH = \n STRING0 ; \n - \n + \n COMMENT \n COMMENT \n COMMENT \n public final class MediaStore { \n public static final String INTENT_ACTION_STILL_IMAGE_CAMERA = STRING1 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE = \n + STRING2 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final String INTENT_ACTION_VIDEO_CAMERA = STRING3 ;", "msg_token": "Add INTENT_ACTION_STILL_IMAGE_CAMERA_SECURE intent"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public abstract class WebSecurityConfigurerAdapter implements SecurityConfigurer < Filter , WebSecurity > { \n + public abstract class WebSecurityConfigurerAdapter implements WebSecurityConfigurer < WebSecurity > { \n private final Log logger = LogFactory . getLog ( WebSecurityConfigurerAdapter . class ) ; \n \n private ApplicationContext context ;", "msg_token": "WebSecurityConfigurerAdapter implements WebSecurityConfigurer"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n } \n \n SINGLE \n - void updateStatusBarVisibilityLocked ( int visibility ) { \n + boolean updateStatusBarVisibilityLocked ( int visibility ) { \n if ( mLastDispatchedSystemUiVisibility == visibility ) { \n - return ; \n + return false ; \n } \n final int globalDiff = ( visibility ^ mLastDispatchedSystemUiVisibility ) \n SINGLE \n public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n } \n } \n + return true ; \n } \n \n @ override \n public void reevaluateStatusBarVisibility ( ) { \n synchronized ( mWindowMap ) { \n int visibility = mPolicy . adjustSystemUiVisibilityLw ( mLastStatusBarVisibility ) ; \n - updateStatusBarVisibilityLocked ( visibility ) ; \n - mWindowPlacerLocked . requestTraversal ( ) ; \n + if ( updateStatusBarVisibilityLocked ( visibility ) ) { \n + mWindowPlacerLocked . requestTraversal ( ) ; \n + } \n } \n }", "msg_token": "Only request traversals if status bar visibility changed on reevaluation"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public abstract class LookupElementDecorator < T extends LookupElement > extends Lo \n return myDelegate . isCaseSensitive ( ) ; \n } \n \n + @ override \n + public boolean isWorthShowingInAutoPopup ( ) { \n + return myDelegate . isWorthShowingInAutoPopup ( ) ; \n + } \n + \n + @ nullable \n + @ override \n + public PsiElement getPsiElement ( ) { \n + return myDelegate . getPsiElement ( ) ; \n + } \n + \n private static class InsertingDecorator < T extends LookupElement > extends LookupElementDecorator < T > { \n private final InsertHandler < ? super LookupElementDecorator < T > > myInsertHandler ;", "msg_token": "delegate missing methods"} {"diff": " public final class FileSystemMasterTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class FileSystemMasterTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class FileSystemMasterTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fix some comments"} {"diff": " public class Messages { \n COMMENT \n COMMENT \n public static void showMessageDialog ( String message , @ notnull String title , @ nullable Icon icon ) { \n - if ( canShowMacSheetPanel ( ) ) { \n - MacMessages . getInstance ( ) . showOkMessageDialog ( title , message , OK_BUTTON ) ; \n - return ; \n + try { \n + if ( canShowMacSheetPanel ( ) ) { \n + MacMessages . getInstance ( ) . showOkMessageDialog ( title , message , OK_BUTTON ) ; \n + return ; \n + } \n + } catch ( Exception ignored ) { \n } \n - \n showDialog ( message , title , new String [ ] { OK_BUTTON } , NUMBER0 , icon ) ; \n }", "msg_token": "Missed try catch for MacMessagesException"} {"diff": " public class OAtomicOperation { \n } \n \n private static class FilePageChanges { \n - private OWALChanges changes = new OWALChangesTree ( ) ; \n + private OWALChanges changes = new OWALPageChangesPortion ( ) ; \n private OLogSequenceNumber lsn = null ; \n private boolean isNew = false ; \n private boolean pinPage = false ; \n public class OUpdatePageRecord extends OAbstractPageWALRecord { \n public int fromStream ( final byte [ ] content , int offset ) { \n offset = super . fromStream ( content , offset ) ; \n \n - changes = new OWALChangesTree ( ) ; \n + changes = new OWALPageChangesPortion ( ) ; \n offset = changes . fromStream ( offset , content ) ; \n \n return offset ;", "msg_token": "enabled changes portion only for benchmarking porpouse"} {"diff": " public class OLocalPaginatedStorage extends OStorageLocalAbstract { \n case ORecordOperation . CREATED : { \n SINGLE \n byte [ ] stream = txEntry . getRecord ( ) . toStream ( ) ; \n + if ( stream == null ) { \n + OLogManager . instance ( ) . warn ( this , STRING0 , rid ) ; \n + break ; \n + } \n \n final ORecordId oldRID = rid . isNew ( ) ? rid . copy ( ) : rid ; \n \n public class OLocalPaginatedStorage extends OStorageLocalAbstract { \n \n case ORecordOperation . UPDATED : { \n byte [ ] stream = txEntry . getRecord ( ) . toStream ( ) ; \n + if ( stream == null ) { \n + OLogManager . instance ( ) . warn ( this , STRING1 , rid ) ; \n + break ; \n + } \n + \n txEntry \n . getRecord ( ) \n . getRecordVersion ( )", "msg_token": "Added log when record returns NULL stream in transaction"} {"diff": " import NAMESPACE ; \n @ runwith ( JUnit4TestRunner . class ) \n public class CamelAhcTest extends AbstractFeatureTest { \n \n - public static final String COMPONENT = extractName ( CamelAhcTest . class ) ; \n - \n @ test \n public void test ( ) throws Exception { \n - testComponent ( COMPONENT ) ; \n + testComponent ( ) ; \n } \n \n @ configuration \n - public static Option [ ] configure ( ) { \n - return configure ( COMPONENT ) ; \n + public Option [ ] configure ( ) { \n + return configureComponent ( ) ; \n } \n \n }", "msg_token": "Simplified Karaf Ahc test"} {"diff": " public class NodeRenderer implements Renderer { \n if ( borderSize > NUMBER0 ) { \n graphics . setColor ( new Color ( borderColor . getRed ( ) , borderColor . getGreen ( ) , borderColor . getBlue ( ) , alpha ) ) ; \n graphics . setStroke ( new BasicStroke ( borderSize ) ) ; \n + graphics . draw ( ellipse ) ; \n } \n \n graphics . setColor ( new Color ( color . getRed ( ) , color . getGreen ( ) , color . getBlue ( ) , alpha ) ) ;", "msg_token": "Fix node border issue"} {"diff": " public class NettyClientTest { \n NettyHttpLoadBalancerErrorHandler errorHandler = new NettyHttpLoadBalancerErrorHandler ( NUMBER0 , NUMBER1 , true ) ; \n BaseLoadBalancer lb = new BaseLoadBalancer ( new DummyPing ( ) , new AvailabilityFilteringRule ( ) ) ; \n NettyHttpClient < ByteBuf , ByteBuf > lbObservables = ( NettyHttpClient < ByteBuf , ByteBuf > ) RibbonTransport . newHttpClient ( lb , config , errorHandler ) ; \n + HttpClientListener externalListener = HttpClientListener . newHttpListener ( STRING0 ) ; \n + lbObservables . subscribe ( externalListener ) ; \n Server server1 = new Server ( STRING1 + server . getPort ( ) ) ; \n Server server2 = new Server ( STRING1 + port ) ; \n List < Server > servers = Lists . newArrayList ( server1 , server2 ) ; \n public class NettyClientTest { \n assertEquals ( NUMBER2 , listener . getPoolReleases ( ) ) ; \n assertEquals ( NUMBER2 , listener . getConnectionCount ( ) ) ; \n assertEquals ( NUMBER3 , listener . getPoolReuse ( ) ) ; \n + \n + assertEquals ( NUMBER2 , externalListener . getPoolAcquires ( ) ) ; \n } \n \n @ test", "msg_token": "Added assertion about subscribing external listener"} {"diff": " public abstract class Server < M , R > extends Protocol implements ChannelPipelineFa \n { \n if ( ! channelIsOpen ( entry . getKey ( ) ) ) \n { \n - System . out . println ( STRING0 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ; \n + msgLog . logMessage ( STRING0 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ; \n finishOffConnection ( entry . getKey ( ) , entry . getValue ( ) ) ; \n - System . out . println ( STRING2 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ; \n + msgLog . logMessage ( STRING2 + entry . getKey ( ) + STRING1 + entry . getValue ( ) ) ; \n channelsToRemove . add ( entry . getKey ( ) ) ; \n } \n }", "msg_token": "Prints some System outs to msgLog instead"} {"diff": " public class TestCipher { \n Collections . unmodifiableSet ( new HashSet < > ( Arrays . asList ( \n STRING0 , \n STRING1 , \n + STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 , \n STRING6 , \n STRING7 , \n STRING8 , \n public class TestCipher { \n STRING9 , \n STRING10 , \n STRING11 , \n + STRING2 , \n STRING12 , \n STRING13 , \n STRING14 , \n public class TestCipher { \n STRING15 , \n STRING16 , \n STRING17 , \n + STRING3 , \n STRING18 , \n STRING19 , \n STRING20 , \n STRING21 , \n STRING22 , \n + STRING4 , \n STRING23 , \n STRING24 , \n STRING25 , \n + STRING5 , \n STRING26 , \n STRING27 , \n STRING28 ,", "msg_token": "Neither Oracle nor IBm JREs support these new ciphers"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Route < E extends Exchange > { \n \n - final private Map < String , Object > properties = new HashMap < String , Object > ( NUMBER0 ) ; \n + private final Map < String , Object > properties = new HashMap < String , Object > ( NUMBER0 ) ; \n private Endpoint < E > endpoint ; \n private Processor < E > processor ; \n \n public class Route < E extends Exchange > { \n this . processor = processor ; \n } \n \n - public Endpoint < E > getEndpoint ( ) { \n + @ override \n + public String toString ( ) { \n + return STRING0 + endpoint + STRING1 + processor + STRING2 ; \n + } \n + \n + public Endpoint < E > getEndpoint ( ) { \n return endpoint ; \n }", "msg_token": "added a little toString method"} {"diff": " class LoaderManagerImpl implements LoaderManager { \n void stop ( ) { \n if ( DEBUG ) Log . v ( TAG , STRING0 + this ) ; \n mStarted = false ; \n - if ( mLoader != null && mListenerRegistered ) { \n - SINGLE \n - mListenerRegistered = false ; \n - mLoader . unregisterListener ( this ) ; \n - mLoader . stopLoading ( ) ; \n + if ( ! mRetaining ) { \n + if ( mLoader != null && mListenerRegistered ) { \n + SINGLE \n + mListenerRegistered = false ; \n + mLoader . unregisterListener ( this ) ; \n + mLoader . stopLoading ( ) ; \n + } \n + mData = null ; \n } \n }", "msg_token": "This may fix LoaderManager bug where a closed cursor could be used"} {"diff": " public class FileInStream extends InputStream implements BoundedStream , Seekable \n return ; \n } \n \n + SINGLE \n seekBlockInStream ( pos ) ; \n SINGLE \n mCurrentBlockInStream . seek ( mPos % mBlockSize ) ; \n public class FileInStream extends InputStream implements BoundedStream , Seekable \n readCurrentBlockToPos ( pos ) ; \n } else { \n seekBlockInStream ( pos ) ; \n + SINGLE \n mCurrentBlockInStream . seek ( mPos % mBlockSize ) ; \n } \n }", "msg_token": "Add two more comments per Bin s request"} {"diff": " public class Configuration \n FileOutputStream fos = new FileOutputStream ( file ) ; \n BufferedWriter buffer = new BufferedWriter ( new OutputStreamWriter ( fos , defaultEncoding ) ) ; \n \n - buffer . write ( STRING0 + NEW_LINE ) ; \n - buffer . write ( STRING1 + DateFormat . getInstance ( ) . format ( new Date ( ) ) + NEW_LINE + NEW_LINE ) ; \n + buffer . write ( STRING0 + NEW_LINE + NEW_LINE ) ; \n \n if ( children . isEmpty ( ) ) \n {", "msg_token": "Kill generated timestamp in config files if you want to retreive this information usethe file s modified time"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExpressionStub > implements PyTargetExpression { \n + QualifiedName myQualifiedName ; \n \n public PyTargetExpressionImpl ( ASTNode astNode ) { \n super ( astNode ) ; \n public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExp \n @ nullable \n @ override \n public QualifiedName asQualifiedName ( ) { \n - return PyPsiUtils . asQualifiedName ( this ) ; \n + if ( myQualifiedName == null ) { \n + myQualifiedName = PyPsiUtils . asQualifiedName ( this ) ; \n + } \n + return myQualifiedName ; \n } \n \n public String toString ( ) { \n public class PyTargetExpressionImpl extends PyPresentableElementImpl < PyTargetExp \n } \n return null ; \n } \n + \n + @ override \n + public void subtreeChanged ( ) { \n + super . subtreeChanged ( ) ; \n + myQualifiedName = null ; \n + } \n }", "msg_token": "Cache the result of asQualifiedName"} {"diff": " public class CarrierConfigManager { \n public static final String KEY_MMS_UA_PROF_URL_STRING = STRING0 ; \n public static final String KEY_MMS_USER_AGENT_STRING = STRING1 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL = \n + STRING2 ; \n + \n COMMENT \n private final static PersistableBundle sDefaults ; \n \n public class CarrierConfigManager { \n sDefaults . putString ( KEY_MMS_UA_PROF_TAG_NAME_STRING , STRING3 ) ; \n sDefaults . putString ( KEY_MMS_UA_PROF_URL_STRING , STRING4 ) ; \n sDefaults . putString ( KEY_MMS_USER_AGENT_STRING , STRING4 ) ; \n + sDefaults . putBoolean ( KEY_ALLOW_NON_EMERGENCY_CALLS_IN_ECM_BOOL , true ) ; \n } \n \n COMMENT", "msg_token": "Add carrier config for allowing non emerg calls in ECM mode"} {"diff": " public class JsrWebSocketServer07Test { \n public void onOpen ( final Session session , EndpointConfig config ) { \n connected . set ( true ) ; \n session . addMessageHandler ( new MessageHandler . Partial < String > ( ) { \n + \n + StringBuilder sb = new StringBuilder ( ) ; \n + \n @ override \n public void onMessage ( String message , boolean last ) { \n - Assert . assertTrue ( last ) ; \n + sb . append ( message ) ; \n + if ( ! last ) { \n + return ; \n + } \n try { \n - session . getBasicRemote ( ) . sendText ( message ) ; \n + session . getBasicRemote ( ) . sendText ( sb . toString ( ) ) ; \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n cause . set ( e ) ;", "msg_token": "Fix bug in web socket tests"} {"diff": " public class Index extends GraphDatabaseApp \n \n SINGLE \n XaDataSource dataSource = xaManager . getXaDataSource ( xaName ) ; \n - Method getterMethod = dataSource . getClass ( ) . getDeclaredMethod ( \n - STRING0 ) ; \n + Method getterMethod = dataSource . getClass ( ) . getMethod ( STRING0 ) ; \n getterMethod . setAccessible ( true ) ; \n context = new IndexServiceContext ( \n getterMethod . invoke ( dataSource ) , false ) ;", "msg_token": "Fixed a problem with LuceneFulltextIndexService in the shell index command"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZContext implements Closeable \n return ; \n \n if ( sockets . contains ( s ) ) { \n - s . setLinger ( linger ) ; \n + try { \n + s . setLinger ( linger ) ; \n + } catch ( ZError . CtxTerminatedException e ) { } \n s . close ( ) ; \n sockets . remove ( s ) ; \n }", "msg_token": "Ignore CtxTerminatedException at ZContext destroy"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class CRestriction { \n private long mExpiry ; \n public int mUid ;", "msg_token": "Remove unused import"} {"diff": " public class StarTreeRecordStoreCircularBufferImpl implements StarTreeRecordStor \n getDimensions ( currentDimensions ) ; \n \n SINGLE \n - if ( matches ( targetDimensions , currentDimensions ) ) \n + for ( int i = NUMBER0 ; i < numTimeBuckets ; i ++ ) \n { \n - updateSums ( sums , timeBuckets ) ; \n + if ( matches ( targetDimensions , currentDimensions ) ) \n + { \n + updateSums ( sums , timeBuckets ) ; \n + } \n } \n \n SINGLE", "msg_token": "fixed bug not scanning all time buckets"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class GLRMModelV2 extends ModelSchema < GLRMModel , GLRMModelV2 , GLRMModel . GLRMParameters , GLRMV2 . GLRMParametersV2 , GLRMModel . GLRMOutput , GLRMModelV2 . GLRMModelOutputV2 > { \n public static final class GLRMModelOutputV2 extends ModelOutputSchema < GLRMModel . GLRMOutput , GLRMModelOutputV2 > {", "msg_token": "Remove unnecessary import"} {"diff": " public class CppCompletionPopupMenu extends ScrollableToolbarPopupMenu \n return ; \n } \n \n + SINGLE \n + if ( ! completion . isFunction ( ) && ! completion . isVariable ( ) ) \n + { \n + toolTip_ . setVisible ( false ) ; \n + return ; \n + } \n + \n SINGLE \n toolTip_ . setText ( text ) ; \n \n public class CppCompletion extends JavaScriptObject \n int kind = getKind ( ) ; \n return kind == FUNCTION_DECL || \n kind == CXX_METHOD || \n - kind == FUNCTION_TEMPLATE ; \n + kind == FUNCTION_TEMPLATE || \n + kind == CONSTRUCTOR || \n + kind == DESTRUCTOR ; \n + } \n + \n + public final boolean isVariable ( ) \n + { \n + int kind = getKind ( ) ; \n + return kind == FIELD_DECL || \n + kind == VAR_DECL ; \n } \n \n public native final String getTypedText ( ) / * - {", "msg_token": "only show tooltips for functions and variables"} {"diff": " public class ContextConfig \n String type = ae . getAnnotationType ( ) ; \n if ( STRING0 . equals ( type ) ) { \n processAnnotationWebServlet ( className , ae , fragment ) ; \n + } else if ( STRING1 . equals ( type ) ) { \n + fragment . addListener ( className ) ; \n } else { \n SINGLE \n SINGLE", "msg_token": "Add annotation support for WebListener"} {"diff": " public class MocoRunner { \n Optional < Request > request = Optional . absent ( ) ; \n return new ByteArrayInputStream ( resource . readFor ( request ) ) ; \n } \n + \n + private MocoRunner ( ) { } \n }", "msg_token": "added missing moco runner"} {"diff": " public class DefaultServer extends BlockJUnit4ClassRunner { \n private static void runInternal ( final RunNotifier notifier ) { \n if ( first ) { \n first = false ; \n - xnio = Xnio . getInstance ( DefaultServer . class . getClassLoader ( ) ) ; \n + xnio = Xnio . getInstance ( STRING0 , DefaultServer . class . getClassLoader ( ) ) ; \n try { \n worker = xnio . createWorker ( OptionMap . builder ( ) \n . set ( Options . WORKER_IO_THREADS , NUMBER0 )", "msg_token": "Stop the test suite foring the use of the NIO provider"} {"diff": " public class ChunkViewCoreImpl implements ChunkViewCore { \n } \n \n int chunkIndex = relChunkIndex ( blockX , blockY , blockZ ) ; \n - return chunks [ chunkIndex ] . getBlock ( ChunkMath . calcBlockPos ( blockX , blockY , blockZ , chunkFilterSize ) ) ; \n + return chunks [ chunkIndex ] . getBlock ( ChunkMath . calcBlockPosX ( blockX , chunkFilterSize . x ) , ChunkMath . calcBlockPosY ( blockY , chunkFilterSize . y ) , ChunkMath . calcBlockPosZ ( blockZ , chunkFilterSize . z ) ) ; \n } \n \n @ override", "msg_token": "avoid vector allocation in ChunkViewCoreImpl"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix compile errors that somehow never appeared until now"} {"diff": " public abstract class AbstractModelConverter implements ModelConverter { \n else if ( STRING0 . equals ( typeName ) ) { \n property = new DateTimeProperty ( ) ; \n } \n + else if ( STRING1 . equals ( typeName ) ) { \n + property = new StringProperty ( ) ; \n + ( ( StringProperty ) property ) . setFormat ( STRING1 ) ; \n + } \n return property ; \n }", "msg_token": "added byte conversion"} {"diff": " public class SbeExample \n sb . append ( STRING0 ) . append ( car . available ( ) ) ; \n sb . append ( STRING1 ) . append ( car . code ( ) ) ; \n \n - sb . append ( STRING2 ) ; \n + sb . append ( STRING3 ) ; \n for ( int i = NUMBER0 , size = car . someNumbersLength ( ) ; i < size ; i ++ ) \n { \n sb . append ( car . someNumbers ( i ) ) . append ( STRING4 ) ; \n } \n \n - sb . append ( STRING3 ) ; \n + sb . append ( STRING2 ) ; \n for ( int i = NUMBER0 , size = car . vehicleCodeLength ( ) ; i < size ; i ++ ) \n { \n sb . append ( ( char ) car . vehicleCode ( i ) ) ;", "msg_token": "Fixed name of output field in SbeExample"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed refresh problems"} {"diff": " public final class SkylarkStatistics { \n out . println ( STRING0 ) ; \n out . println ( STRING1 ) ; \n out . println ( STRING2 ) ; \n - out . println ( STRING3 ) ; \n out . println ( STRING4 ) ; \n + out . println ( STRING3 ) ; \n out . println ( STRING5 ) ; \n out . println ( STRING6 ) ; \n out . println ( STRING7 ) ;", "msg_token": "Fix incorrect rendering of first histogram on click in table"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class JavaBasePlugin implements Plugin < Project > { \n + public class JavaBasePlugin implements Plugin < ProjectInternal > { \n public static final String CHECK_TASK_NAME = STRING0 ; \n public static final String BUILD_TASK_NAME = STRING1 ; \n public static final String BUILD_DEPENDENTS_TASK_NAME = STRING2 ; \n public class JavaBasePlugin implements Plugin < Project > { \n this . instantiator = instantiator ; \n } \n \n - public void apply ( Project project ) { \n + public void apply ( ProjectInternal project ) { \n project . getPlugins ( ) . apply ( BasePlugin . class ) ; \n project . getPlugins ( ) . apply ( ReportingBasePlugin . class ) ; \n project . getPlugins ( ) . apply ( LegacyJavaComponentPlugin . class ) ; \n \n - JavaPluginConvention javaConvention = new JavaPluginConvention ( ( ProjectInternal ) project , instantiator ) ; \n + JavaPluginConvention javaConvention = new JavaPluginConvention ( project , instantiator ) ; \n project . getConvention ( ) . getPlugins ( ) . put ( STRING3 , javaConvention ) ; \n \n configureCompileDefaults ( project , javaConvention ) ;", "msg_token": "Removed some casting"} {"diff": " public abstract class HiveRecordCursor \n close ( ) ; \n } \n catch ( RuntimeException e ) { \n - throwable . addSuppressed ( e ) ; \n + SINGLE \n + if ( throwable != e ) { \n + throwable . addSuppressed ( e ) ; \n + } \n } \n } \n } \n public class Driver \n inFlightException = newException ; \n } \n else { \n - inFlightException . addSuppressed ( newException ) ; \n + SINGLE \n + if ( inFlightException != newException ) { \n + inFlightException . addSuppressed ( newException ) ; \n + } \n } \n } \n else {", "msg_token": "Fix Exception self suppression"} {"diff": " public abstract class HttpRequestParser { \n state . stringBuilder . setLength ( NUMBER0 ) ; \n if ( next == STRING0 ) { \n parseState = AWAIT_DATA_END ; \n + } else if ( next == STRING1 ) { \n + state . state = ParseState . PARSE_COMPLETE ; \n + return ; \n } else { \n state . state = ParseState . HEADER ; \n state . parseState = NUMBER0 ; \n public class SimpleParserTestCase { \n \n @ test \n public void testLineFeedsLineEnds ( ) { \n - byte [ ] in = STRING2 . getBytes ( ) ; \n + byte [ ] in = STRING3 . getBytes ( ) ; \n runTest ( in ) ; \n }", "msg_token": "Fix issue with parsing non RFC compliant requests"} {"diff": " public class MessageCounterTest { \n \n assertEquals ( counter . toString ( ) , NUMBER0 , counter . getCount ( GROUP1 , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ; \n assertEquals ( counter . toString ( ) , NUMBER1 , counter . getCount ( GROUP2 , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ; \n + \n + counter . remove ( GROUP2 , NotificationSource . PROJECT_SYNC , OTHER_BUILD_SYSTEM ) ; \n + assertEquals ( counter . toString ( ) , NUMBER2 , counter . getCount ( GROUP2 , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ; \n + assertEquals ( counter . toString ( ) , NUMBER0 , counter . getCount ( null , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ; \n + counter . remove ( null , NotificationSource . PROJECT_SYNC , OTHER_BUILD_SYSTEM ) ; \n + assertEquals ( counter . toString ( ) , NUMBER2 , counter . getCount ( null , NotificationSource . PROJECT_SYNC , null , OTHER_BUILD_SYSTEM ) ) ; \n } \n }", "msg_token": "message counter remove tests"} {"diff": " public class HeaderItem extends Item < HeaderItem > { \n throw new RuntimeException ( STRING0 ) ; \n } \n \n - SINGLE \n - if ( in . readInt ( ) != NUMBER0 ) { \n - throw new RuntimeException ( STRING1 ) ; \n - } \n - \n - SINGLE \n - if ( in . readInt ( ) != NUMBER0 ) { \n - throw new RuntimeException ( STRING1 ) ; \n + SINGLE \n + if ( ( in . readInt ( ) | in . readInt ( ) ) != NUMBER0 ) { \n + System . err . println ( STRING2 ) ; \n } \n \n int sectionSize ;", "msg_token": "Ignore the link section in the header"} {"diff": " public abstract class GraphDatabaseSetting < T > \n \n File path = new File ( rawValue ) ; \n \n - System . out . println ( STRING0 + path ) ; \n - System . out . println ( STRING1 + path . isAbsolute ( ) ) ; \n - \n - if ( ! path . isAbsolute ( ) && relativeTo != null ) \n + if ( ! path . isAbsolute ( ) && relativeTo != null ) \n { \n File baseDir = new File ( config . get ( relativeTo ) ) ; \n path = new File ( baseDir , rawValue ) ; \n - System . out . println ( STRING2 + path ) ; \n } \n \n - System . out . println ( STRING3 + path . isAbsolute ( ) ) ; \n - \n - if ( makeCanonical ) \n + if ( makeCanonical ) \n { \n try \n {", "msg_token": "Removed debug output"} {"diff": " public class SingletonComponentDescription extends SessionBeanComponentDescripti \n return new SingletonBMTInterceptor ( ( SingletonComponent ) component ) ; \n } \n } ; \n + if ( getClassDescription ( ) . getPostConstructMethod ( ) != null ) { \n + configuration . addPostConstructInterceptor ( slsbBmtInterceptorFactory , InterceptorOrder . ComponentPostConstruct . TRANSACTION_INTERCEPTOR ) ; \n + } \n + if ( getClassDescription ( ) . getPreDestroyMethod ( ) != null ) { \n + configuration . addPreDestroyInterceptor ( slsbBmtInterceptorFactory , InterceptorOrder . ComponentPreDestroy . TRANSACTION_INTERCEPTOR ) ; \n + } \n SINGLE \n configuration . addComponentInterceptor ( slsbBmtInterceptorFactory , InterceptorOrder . Component . BMT_TRANSACTION_INTERCEPTOR , false ) ; \n }", "msg_token": "make sure a tx is rolledback when the BMT singleton did not complete it"} {"diff": " public class UndeployMojo extends AbstractAndroidMojo { \n if ( file != null ) { \n undeployApk ( file ) ; \n } else { \n + if ( ! SUPPORTED_PACKAGING_TYPES . contains ( project . getPackaging ( ) ) ) { \n + getLog ( ) . info ( STRING0 + project . getPackaging ( ) ) ; \n + return ; \n + } \n packageToUndeploy = extractPackageNameFromAndroidManifest ( androidManifestFile ) ; \n undeployApk ( packageToUndeploy ) ; \n }", "msg_token": "Skip undeploy on non APK projects"} {"diff": " public abstract class JerseyTest { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + protected Client getClient ( ) { \n return client . get ( ) ; \n } \n \n public abstract class JerseyTest { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + protected Client setClient ( final Client client ) { \n return this . client . getAndSet ( client ) ; \n } \n \n public abstract class JerseyTestNg extends JerseyTest { \n } \n \n @ override \n - COMMENT \n + protected final Client getClient ( ) { \n return strategy . client ( ) ; \n } \n \n @ override \n - COMMENT \n + protected final Client setClient ( final Client client ) { \n return strategy . client ( client ) ; \n }", "msg_token": "Allow JerseyTest to create client with non default ClientBuilder"} {"diff": " public class SparkMapRecordHandler extends SparkRecordHandler { \n } \n } catch ( Throwable e ) { \n abort = true ; \n + Utilities . setMapWork ( jc , null ) ; \n if ( e instanceof OutOfMemoryError ) { \n SINGLE \n throw ( OutOfMemoryError ) e ; \n public class SparkReduceRecordHandler extends SparkRecordHandler { \n \n } catch ( Throwable e ) { \n abort = true ; \n + Utilities . setReduceWork ( jc , null ) ; \n if ( e instanceof OutOfMemoryError ) { \n SINGLE \n throw ( OutOfMemoryError ) e ;", "msg_token": "Retrying task could use cached bad operators Spark Branch Jimmy Xiang via Szehon"} {"diff": " public final class Matcher { \n COMMENT \n COMMENT \n public static boolean matchPath ( Set < String [ ] > patternSet , String str ) { \n - boolean result ; \n for ( String [ ] patternTokens : patternSet ) { \n if ( matchPath ( patternTokens , tokenizePathAsArray ( str ) , true ) ) { \n return true ;", "msg_token": "Remove unused code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ApnsConnectionTest { \n connection . DELAY_IN_MS = NUMBER0 ; \n connection . sendMessage ( msg ) ; \n Assert . assertArrayEquals ( msg . marshall ( ) , baos . toByteArray ( ) ) ; \n + connection . close ( ) ; \n } \n }", "msg_token": "Fix some warnings in Eclipse"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class AclImpl implements Acl , MutableAcl , AuditableAcl , OwnershipAcl { \n SINGLE", "msg_token": "Added missing to Id"} {"diff": " public class GeneratorTask < T > extends ConventionTask { \n File inputFile = getInputFile ( ) ; \n if ( inputFile == null ) { \n File outputFile = getOutputFile ( ) ; \n - if ( outputFile . exists ( ) ) { \n + if ( outputFile != null && outputFile . exists ( ) ) { \n return outputFile ; \n } else { \n return null ;", "msg_token": "Fixed GeneratorTask to handle the case where both input and output files are null"} {"diff": " public class HealthCheckTest extends InstrumentationTestCase { \n \n assertEquals ( testCaseMessage ( STRING0 , testCaseComment ) , outputUrl , \n xmlrpcUrl ) ; \n + \n + server . shutdown ( ) ; \n } \n \n private MockWebServer setupMockHttpServer ( MockWebServer server , JSONObject requestResponsesJson ) throws", "msg_token": "Shutdown the MockWebServer between mock tests"} {"diff": " public class SwingHelper { \n textPane . setFont ( font != null ? font : UIUtil . getLabelFont ( ) ) ; \n textPane . setContentType ( UIUtil . HTML_MIME ) ; \n textPane . setEditable ( false ) ; \n - textPane . setBackground ( background != null ? background : UIUtil . getLabelBackground ( ) ) ; \n + if ( background != null ) { \n + textPane . setBackground ( background ) ; SINGLE \n + } \n + else { \n + textPane . setOpaque ( false ) ; \n + if ( UIUtil . isUnderNimbusLookAndFeel ( ) ) { \n + textPane . setBackground ( UIUtil . TRANSPARENT_COLOR ) ; \n + } \n + } \n textPane . setForeground ( foreground != null ? foreground : UIUtil . getLabelForeground ( ) ) ; \n return textPane ; \n }", "msg_token": "html viewer should have no visible background if background null specified at creation time"} {"diff": " public class CanvasView extends FrameLayout { \n mBottomMaskView . animate ( ) . alpha ( mCurrentAlpha ) . setDuration ( Constant . CANVAS_FADE_ANIM_TIME ) ; \n } \n \n - if ( ! mEnabled || ( mCurrentAlpha == FLOAT0 && mContentViewY == ( int ) ( mTargetY ) ) ) { \n + if ( ! mEnabled || mCurrentAlpha == FLOAT0 ) { \n \n try { \n clearFocus ( ) ;", "msg_token": "Orientation change causes background to not be scrollable"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class GifDrawableResource extends DrawableResource < GifDrawable > { \n \n @ override \n public int getSize ( ) { \n - return drawable . getBuffer ( ) . limit ( ) + Util . getBitmapByteSize ( drawable . getFirstFrame ( ) ) ; \n + Bitmap firstFrame = drawable . getFirstFrame ( ) ; \n + return drawable . getBuffer ( ) . limit ( ) + Util . getBitmapByteSize ( firstFrame . getWidth ( ) , \n + firstFrame . getHeight ( ) , firstFrame . getConfig ( ) ) ; \n } \n \n @ override \n public class LruCache < T , Y > { \n COMMENT \n COMMENT \n COMMENT \n - protected void trimToSize ( int size ) { \n + protected synchronized void trimToSize ( int size ) { \n Map . Entry < T , Y > last ; \n while ( currentSize > size ) { \n last = cache . entrySet ( ) . iterator ( ) . next ( ) ;", "msg_token": "Fix issues allowing memory cache size to get out of sync"} {"diff": " public class QueryLoggerIT \n SINGLE \n db . getManager ( ) . newUser ( STRING0 , STRING1 , false ) ; \n db . getManager ( ) . newUser ( STRING2 , STRING1 , false ) ; \n - db . getManager ( ) . addUserToRole ( STRING0 , STRING3 ) ; \n - db . getManager ( ) . addUserToRole ( STRING2 , STRING4 ) ; \n + db . getManager ( ) . addRoleToUser ( STRING3 , STRING0 ) ; \n + db . getManager ( ) . addRoleToUser ( STRING4 , STRING2 ) ; \n \n EnterpriseAuthSubject mats = db . login ( STRING0 , STRING1 ) ;", "msg_token": "Fix compilation error due to parallel merges"} {"diff": " public class TxEngine extends EngineWrapper { \n public static Engine createSnapshotFor ( Engine engine ) { \n if ( engine . isReadOnly ( ) ) \n return engine ; \n - if ( engine instanceof EngineWrapper ) \n - return createSnapshotFor ( ( ( EngineWrapper ) engine ) . getWrappedEngine ( ) ) ; \n - return ( ( TxEngine ) engine ) . snapshot ( ) ; \n + if ( engine instanceof TxEngine ) \n + return ( ( TxEngine ) engine ) . snapshot ( ) ; \n + return createSnapshotFor ( ( ( EngineWrapper ) engine ) . getWrappedEngine ( ) ) ; \n } \n \n public Engine snapshot ( ) {", "msg_token": "fix failing tests from previous commit"} {"diff": " public class PinnedSectionListView extends ListView { \n if ( adapter == null || visibleItemCount == NUMBER0 ) return ; SINGLE \n \n SINGLE \n - int candidatePosition = findNextCandidatePosition ( firstVisibleItem , visibleItemCount ) ; \n - if ( candidatePosition == - NUMBER1 ) { \n - candidatePosition = findPreviousCandidatePosition ( firstVisibleItem ) ; \n - if ( candidatePosition == - NUMBER1 ) return ; SINGLE \n - } \n + int candidatePosition = findNextVisibleCandidatePosition ( firstVisibleItem , visibleItemCount ) ; \n + if ( candidatePosition == - NUMBER1 ) return ; SINGLE \n \n SINGLE \n int childIndex = candidatePosition - firstVisibleItem ; \n public class PinnedSectionListView extends ListView { \n mPinnedShadow = null ; \n } \n \n - private int findNextCandidatePosition ( int firstVisibleItem , int visibleItemCount ) { \n + private int findNextVisibleCandidatePosition ( int firstVisibleItem , int visibleItemCount ) { \n PinnedSectionListAdapter adapter = ( PinnedSectionListAdapter ) getAdapter ( ) ; \n for ( int childIndex = NUMBER0 ; childIndex < visibleItemCount ; childIndex ++ ) { \n int position = firstVisibleItem + childIndex ;", "msg_token": "fixing NPE when there is a single section in a visible area in the list"} {"diff": " public class DocumentationManager { \n DocumentationProvider elementProvider = \n element == null || elementLanguage . is ( containingFileLanguage ) ? null : LanguageDocumentation . INSTANCE . forLanguage ( elementLanguage ) ; \n \n - ContainerUtil . addIfNotNull ( elementProvider , result ) ; \n ContainerUtil . addIfNotNull ( originalProvider , result ) ; \n + ContainerUtil . addIfNotNull ( elementProvider , result ) ; \n if ( containingFile != null ) { \n final Language baseLanguage = containingFile . getViewProvider ( ) . getBaseLanguage ( ) ; \n if ( ! baseLanguage . is ( containingFileLanguage ) ) {", "msg_token": "fixing screwed documentation"} {"diff": " public class ProtocolProviderServiceJabberImpl \n public static final String URN_IETF_RFC_3264 = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + SINGLE \n + @ suppresswarnings ( STRING1 ) \n + public static final String URN_XMPP_IQ_VERSION = STRING2 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adds URN_XMPP_IQ_VERSION constant"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n public class PopupMenuShowAlert extends ExtensionPopupMenuItem implements Comparable < PopupMenuShowAlert > {", "msg_token": "Removed unused imports"} {"diff": " public class MessageView extends K9Activity \n Animation . RELATIVE_TO_PARENT , right , Animation . RELATIVE_TO_PARENT , left , \n Animation . RELATIVE_TO_PARENT , FLOAT0 , Animation . RELATIVE_TO_PARENT , FLOAT0 \n ) ; \n - slide . setDuration ( NUMBER0 ) ; \n + slide . setDuration ( NUMBER1 ) ; \n slide . setFillBefore ( true ) ; \n slide . setInterpolator ( new AccelerateInterpolator ( ) ) ; \n return slide ;", "msg_token": "Speed up the page flip animation now that we load message views so much faster"} {"diff": " public abstract class AbstractAnnotationProcessor extends AbstractProcessor { \n writer . write ( content ) ; \n } catch ( IOException e ) { \n logger . error ( STRING0 + filename ) ; \n - throw new RuntimeException ( STRING0 + filename , e ) ; \n } finally { \n if ( writer != null ) { \n try { \n writer . close ( ) ; \n } catch ( IOException e ) { \n logger . error ( STRING0 + filename ) ; \n - throw new RuntimeException ( STRING0 + filename , e ) ; \n } \n } \n }", "msg_token": "Fixed code generation interruption due to file name duplication"} {"diff": " public class MockTypeConverterRegistry implements TypeConverterRegistry { \n } \n \n public void addTypeConverter ( Class toType , Class fromType , TypeConverter typeConverter ) { \n - System . out . println ( STRING0 + typeConverter ) ; \n + typeConverters . add ( typeConverter ) ; \n } \n \n public void addFallbackTypeConverter ( TypeConverter typeConverter ) { \n - System . out . println ( STRING1 + typeConverter ) ; \n + fallbackTypeConverters . add ( typeConverter ) ; \n } \n \n public TypeConverter lookup ( Class toType , Class fromType ) {", "msg_token": "Fixed the test error with my last commit"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class MultiDetector extends Detector { \n \n public DetectorResult [ ] detectMulti ( Map < DecodeHintType , ? > hints ) throws NotFoundException { \n BitMatrix image = getImage ( ) ; \n - MultiFinderPatternFinder finder = new MultiFinderPatternFinder ( image ) ; \n + ResultPointCallback resultPointCallback = \n + hints == null ? null : ( ResultPointCallback ) hints . get ( DecodeHintType . NEED_RESULT_POINT_CALLBACK ) ; \n + MultiFinderPatternFinder finder = new MultiFinderPatternFinder ( image , resultPointCallback ) ; \n FinderPatternInfo [ ] infos = finder . findMulti ( hints ) ; \n \n if ( infos . length == NUMBER0 ) {", "msg_token": "Add result point callback to multi QR code detector"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "add static import of Opcodes"} {"diff": " import NAMESPACE ; \n @ beta \n @ gwtcompatible \n public final class HtmlEscapers { \n - private HtmlEscapers ( ) { } \n - \n - SINGLE \n - SINGLE \n - \n COMMENT \n COMMENT \n COMMENT \n public final class HtmlEscapers { \n return HTML_ESCAPER ; \n } \n \n + SINGLE \n + SINGLE \n + \n private static final Escaper HTML_ESCAPER = \n Escapers . builder ( ) \n . addEscape ( STRING0 , STRING1 ) \n public final class HtmlEscapers { \n . addEscape ( STRING2 , STRING3 ) \n . addEscape ( STRING4 , STRING5 ) \n . build ( ) ; \n + \n + private HtmlEscapers ( ) { } \n }", "msg_token": "Move htmlEscaper to the top"} {"diff": " public class Checker \n \n SINGLE \n final String stripped ; \n - if ( ( mConfig . getBasedir ( ) == null ) \n - || ! aFileName . startsWith ( mConfig . getBasedir ( ) ) ) \n - { \n + final String basedir = mConfig . getBasedir ( ) ; \n + if ( ( basedir == null ) || ! aFileName . startsWith ( basedir ) ) { \n stripped = aFileName ; \n } \n else { \n SINGLE \n - stripped = aFileName . substring ( mConfig . getBasedir ( ) . length ( ) + NUMBER0 ) ; \n + final int skipSep = basedir . endsWith ( File . separator ) ? NUMBER1 : NUMBER0 ; \n + stripped = aFileName . substring ( basedir . length ( ) + skipSep ) ; \n } \n \n LineText [ ] errors ;", "msg_token": "fixed bug where reported file names were not correct when checkstyle basedir ended with File separator"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SQLFileChange extends AbstractSQLChange { \n if ( sqlStream == null ) { \n return null ; \n } \n - return getChangeSet ( ) . getChangeLogParameters ( ) . expandExpressions ( StreamUtil . getStreamContents ( sqlStream , encoding ) ) ; \n + String content = StreamUtil . getStreamContents ( sqlStream , encoding ) ; \n + if ( getChangeSet ( ) != null ) { \n + ChangeLogParameters parameters = getChangeSet ( ) . getChangeLogParameters ( ) ; \n + if ( parameters != null ) { \n + content = parameters . expandExpressions ( content ) ; \n + } \n + } \n + return content ; \n } catch ( IOException e ) { \n throw new UnexpectedLiquibaseException ( e ) ; \n }", "msg_token": "Handle potentially null changeSet and changeLogParameters"} {"diff": " public abstract class WPActionBarActivity extends SherlockFragmentActivity { \n mBlogSpinner . setAdapter ( mSpinnerAdapter ) ; \n } \n \n - if ( blogNames . length >= NUMBER0 ) \n + if ( blogNames . length >= NUMBER0 ) { \n + setupCurrentBlog ( ) ; \n onBlogChanged ( ) ; \n + } \n } \n } \n break ; \n public class BlogPreferencesActivity extends SherlockFragmentActivity { \n protected void onNewIntent ( Intent intent ) { \n super . onNewIntent ( intent ) ; \n loadSettingsForBlog ( ) ; \n - \n } \n \n private void loadSettingsForBlog ( ) {", "msg_token": "Call setupCurrentBlog to get currentBlog in case user deleted the current blog in the Settings"} {"diff": " public class AgentWebsocketService { \n \n @ onwebsocketclose \n public void onClose ( int closeCode , String closeReason ) { \n - LOGGER . info ( STRING0 , sessionName ( ) , closeReason ) ; \n + LOGGER . debug ( STRING1 , sessionName ( ) , closeCode , closeReason ) ; \n } \n \n @ onwebsocketerror", "msg_token": "Improve logging of onClose websocket callback"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StartupBean { \n ApplicationSettingsService applicationSettingsService ; \n \n @ inject \n - FeedRefreshUpdater feedRefreshUpdater ; \n - \n - @ inject \n Instance < FeedRefreshWorker > workers ; \n \n private long startupTime ; \n public class StartupBean { \n log . error ( STRING0 ) ; \n } \n } \n - feedRefreshUpdater . shutdown ( ) ; \n } \n \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class FeedRefreshUpdater { \n } ) ; \n } \n \n + @ predestroy \n public void shutdown ( ) { \n pool . shutdownNow ( ) ; \n while ( ! pool . isTerminated ( ) ) {", "msg_token": "remove predestroy responsability from startupbean"} {"diff": " public class VcsLogUtil { \n @ override \n public int compare ( VirtualFile root1 , VirtualFile root2 ) { \n if ( root1 . equals ( root2 ) ) return NUMBER0 ; \n - if ( VfsUtilCore . isAncestor ( root1 , root2 , false ) ) { \n - SINGLE \n - return - NUMBER1 ; \n - } \n - if ( VfsUtilCore . isAncestor ( root2 , root1 , false ) ) { \n - return NUMBER1 ; \n - } \n return root1 . getPath ( ) . compareTo ( root2 . getPath ( ) ) ; \n } \n } ) ;", "msg_token": "vcs log simplify file comparator"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AsyncTaskTest { \n \n @ before public void setUp ( ) throws Exception { \n transcript = new Transcript ( ) ; \n - \n - Robolectric . logMissingInvokedShadowMethods ( ) ; \n } \n \n @ test", "msg_token": "remove debug logging from AsyncTaskTest"} {"diff": " public class Jsonschema2PojoMojo extends AbstractMojo implements GenerationConfi \n COMMENT \n private boolean useJodaLocalTimes = false ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private String dateTimeType = null ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private String timeType = null ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private String dateType = null ; \n \n COMMENT", "msg_token": "Adding date time types to Maven plugin mojo configuration"} {"diff": " public class HexDumpProxyFrontendHandler extends ChannelInboundHandlerAdapter { \n private final String remoteHost ; \n private final int remotePort ; \n \n - private volatile Channel outboundChannel ; \n + SINGLE \n + SINGLE \n + private Channel outboundChannel ; \n \n public HexDumpProxyFrontendHandler ( String remoteHost , int remotePort ) { \n this . remoteHost = remoteHost ;", "msg_token": "Remove volatile from field as its not needed"} {"diff": " public interface ProtocolNames \n COMMENT \n COMMENT \n public static final String SKYPE = STRING0 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String SIP_COMMUNICATOR_MOCK = STRING1 ; \n + \n }", "msg_token": "Added a protocol name for the mock sip comm protocol"} {"diff": " public class NumberPicker extends LinearLayout implements OnClickListener , \n COMMENT \n COMMENT \n public int getCurrent ( ) { \n + String str = String . valueOf ( ( ( TextView ) mText ) . getText ( ) ) ; \n + validateCurrentView ( str ) ; \n return mCurrent ; \n } \n }", "msg_token": "Fixed a bug where values typed into the text of a number picker could be ignored"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TransportSearchAction extends BaseAction < SearchRequest , SearchRespo \n SINGLE \n searchRequest . searchType ( QUERY_AND_FETCH ) ; \n } \n + } catch ( IndexMissingException e ) { \n + SINGLE \n + SINGLE \n } catch ( Exception e ) { \n logger . debug ( STRING0 , e ) ; \n }", "msg_token": "don t log index missing exception when trying to optimize single shard search request"} {"diff": " public class ApplicationMaster { \n \n @ override \n public void onError ( Throwable e ) { \n + LOG . error ( STRING0 , e ) ; \n done = true ; \n amRMClient . stop ( ) ; \n } \n public class Client { \n SINGLE \n private String amQueue = STRING1 ; \n SINGLE \n - private long amMemory = NUMBER0 ; \n + private long amMemory = NUMBER1 ; \n SINGLE \n private int amVCores = NUMBER2 ; \n \n public class Client { \n appName = cliParser . getOptionValue ( STRING2 , STRING3 ) ; \n amPriority = Integer . parseInt ( cliParser . getOptionValue ( STRING4 , STRING5 ) ) ; \n amQueue = cliParser . getOptionValue ( STRING6 , STRING7 ) ; \n - amMemory = Integer . parseInt ( cliParser . getOptionValue ( STRING8 , STRING9 ) ) ; \n + amMemory = Integer . parseInt ( cliParser . getOptionValue ( STRING8 , STRING10 ) ) ; \n amVCores = Integer . parseInt ( cliParser . getOptionValue ( STRING11 , STRING12 ) ) ; \n \n if ( amMemory < NUMBER3 ) {", "msg_token": "Fix OOM issue in DistributedShell"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BlockDataManagerTest { \n mMetricsReporter = PowerMockito . mock ( BlockMetricsReporter . class ) ; \n mSessions = PowerMockito . mock ( Sessions . class ) ; \n mWorkerId = mRandom . nextLong ( ) ; \n - Whitebox . setInternalState ( WorkerIdRegistry . class , STRING0 , mWorkerId ) ; \n + ( ( AtomicLong ) Whitebox . getInternalState ( WorkerIdRegistry . class , STRING0 ) ) . set ( mWorkerId ) ; \n mWorkerSource = PowerMockito . mock ( WorkerSource . class ) ; \n \n mManager =", "msg_token": "Fix failing test"} {"diff": " public class PipeTransportItems extends PipeTransport { \n SINGLE \n } \n } \n + delay = NUMBER0 ; \n } \n \n @ override", "msg_token": "Added missing delay"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TitanGremlinPlugin implements GremlinPlugin { \n \n @ override \n public Optional < Set < Artifact > > additionalDependencies ( ) { \n - return Optional . of ( new HashSet < > ( Arrays . asList ( new Artifact ( STRING0 , STRING1 , TitanConstants . VERSION ) ) ) ) ; \n + return Optional . of ( ImmutableSet . of ( \n + new Artifact ( STRING0 , STRING1 , TitanConstants . VERSION ) , \n + new Artifact ( STRING0 , STRING2 , TitanConstants . VERSION ) ) ) ; \n } \n }", "msg_token": "Add titan hadoop as a TitanGremlinPlugin dep"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class GtfsLibrary { \n } \n } \n \n - public static long getTimeAsDay ( long time ) { \n - Calendar c = Calendar . getInstance ( ) ; \n - c . setTimeInMillis ( time ) ; \n - c . set ( Calendar . HOUR_OF_DAY , NUMBER0 ) ; \n - c . set ( Calendar . MINUTE , NUMBER0 ) ; \n - c . set ( Calendar . SECOND , NUMBER0 ) ; \n - c . set ( Calendar . MILLISECOND , NUMBER0 ) ; \n - return c . getTimeInMillis ( ) ; \n - } \n - \n private static class GtfsContextImpl implements GtfsContext { \n \n private GtfsRelationalDao _dao ;", "msg_token": "remove unused method"} {"diff": " public class CourseInfo { \n @ serializedname ( STRING0 ) \n SINGLE \n private String myType = STRING1 ; \n - @ serializedname ( STRING2 ) \n + \n + @ serializedname ( STRING3 ) \n List < Instructor > myInstructors = new ArrayList < Instructor > ( ) ; \n int id ;", "msg_token": "deprecated API on Stepic"} {"diff": " public class QueryTorture \n if ( ! qStr . isEmpty ( ) ) \n qStr += STRING0 ; \n \n - qStr += STRING1 + pointStr ; \n + qStr += STRING1 + encodeURL ( pointStr ) ; \n } \n for ( Entry < String , String > e : params . entrySet ( ) ) \n { \n public class QueryTortureTest \n @ test \n public void testGetQuery ( ) \n { \n - Query result = Query . parse ( STRING2 ) ; \n - assertEquals ( STRING3 , result . createQueryString ( ) ) ; \n - assertEquals ( FLOAT0 , result . start . lat , FLOAT1 ) ; \n - assertEquals ( FLOAT2 , result . end . lon , FLOAT1 ) ; \n + Query result = Query . parse ( STRING4 ) ; \n + assertEquals ( STRING5 , result . createQueryString ( ) ) ; \n + assertEquals ( FLOAT3 , result . start . lat , FLOAT1 ) ; \n + assertEquals ( FLOAT4 , result . end . lon , FLOAT1 ) ; \n } \n }", "msg_token": "fix broken QueryTorture test"} {"diff": " public class SeriesContract { \n String FIRSTAIRED = STRING0 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n String AIRSTIME = STRING1 ; \n \n - COMMENT \n - String AIRTIME = STRING2 ; \n + COMMENT \n + COMMENT \n + String RELEASE_COUNTRY = STRING2 ; \n \n String AIRSDAYOFWEEK = STRING3 ; \n \n public class SeriesGuideDatabase extends SQLiteOpenHelper { \n \n + ShowsColumns . SYNCENABLED + STRING4 \n \n - + ShowsColumns . AIRTIME + STRING5 \n + + ShowsColumns . RELEASE_COUNTRY + STRING5 \n \n + ShowsColumns . HIDDEN + STRING6 \n \n public class SeriesGuideDatabase extends SQLiteOpenHelper { \n } \n \n private static void upgradeToTwentyOne ( SQLiteDatabase db ) { \n - db . execSQL ( STRING7 + Tables . SHOWS + STRING8 + ShowsColumns . AIRTIME \n + db . execSQL ( STRING7 + Tables . SHOWS + STRING8 + ShowsColumns . RELEASE_COUNTRY \n + STRING9 ) ; \n }", "msg_token": "Repurpose AIRSTIME as RELEASE_COUNTRY"} {"diff": " public class TransferManager { \n MultipleFileTransferStateChangeListener stateChangeListener = new MultipleFileTransferStateChangeListener ( \n allTransfersQueuedLock , multipleFileUpload ) ; \n \n - if ( files . isEmpty ( ) ) { \n + if ( files == null || files . isEmpty ( ) ) { \n multipleFileUpload . setState ( TransferState . Completed ) ; \n }", "msg_token": "Adds null check for empty file list"} {"diff": " public class ResActivity extends Activity { \n \n @ htmlres \n Spanned helloHtml ; \n + \n + @ htmlres ( R . string . hello_html ) \n + CharSequence htmlInjected ; \n } \n public class ResActivityTest { \n public void htmlResNotNull ( ) { \n assertNotNull ( activity . helloHtml ) ; \n } \n + \n + @ test \n + public void htmlInjectedNotNull ( ) { \n + assertNotNull ( activity . htmlInjected ) ; \n + } \n \n @ test \n public void htmlResCorrectlySet ( ) { \n assertEquals ( Html . fromHtml ( activity . getString ( R . string . hello_html ) ) , activity . helloHtml ) ; \n } \n + \n + @ test \n + public void htmlInjectedCorrectlySet ( ) { \n + assertEquals ( Html . fromHtml ( activity . getString ( R . string . hello_html ) ) , activity . htmlInjected ) ; \n + } \n }", "msg_token": "Added a functional test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class PythonCopyPasteProcessor implements CopyPastePreProcessor { \n Editor editor , \n String text , \n RawText rawText ) { \n - if ( ! CodeInsightSettings . getInstance ( ) . INDENT_TO_CARET_ON_PASTE ) { \n + if ( ! CodeInsightSettings . getInstance ( ) . INDENT_TO_CARET_ON_PASTE || file . getLanguage ( ) != PythonLanguage . getInstance ( ) ) { \n return text ; \n } \n final CodeStyleSettings codeStyleSettings = CodeStyleSettingsManager . getSettings ( project ) ;", "msg_token": "do not corrupt non python files by our copy paste processor"} {"diff": " public class JavaClientTest extends TestCase { \n DBCollection c = _db . getCollection ( STRING0 ) ; \n c . drop ( ) ; \n \n - WriteResult res = c . insert ( new BasicDBObject ( STRING1 , NUMBER0 ) ) ; \n - res = c . update ( new BasicDBObject ( STRING1 , NUMBER0 ) , new BasicDBObject ( STRING2 , new BasicDBObject ( STRING3 , NUMBER0 ) ) ) ; \n + c . insert ( new BasicDBObject ( STRING1 , NUMBER0 ) ) ; \n + WriteResult res = c . update ( new BasicDBObject ( STRING1 , NUMBER0 ) , new BasicDBObject ( STRING2 , new BasicDBObject ( STRING3 , NUMBER0 ) ) ) ; \n assertEquals ( NUMBER0 , res . getN ( ) ) ; \n assertTrue ( res . isLazy ( ) ) ;", "msg_token": "Fixed an unused assignment warning"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed wrong import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - \n \n COMMENT \n COMMENT", "msg_token": "Remove invalid auto generated import"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class Fixture { \n return new ClusterBinding ( getCluster ( ) , ReadPreference . primary ( ) , NUMBER0 , SECONDS ) ; \n } \n \n + public static AsyncReadWriteBinding getAsyncBinding ( ) { \n + getMongoClient ( ) ; \n + return new AsyncClusterBinding ( getCluster ( ) , ReadPreference . primary ( ) , NUMBER0 , SECONDS ) ; \n + } \n + \n public static Cluster getCluster ( ) { \n getMongoClient ( ) ; \n return mongoClient . getCluster ( ) ;", "msg_token": "Added Fixture getAsyncBinding"} {"diff": " public class CompilerOptions implements Serializable , Cloneable { \n COMMENT \n public boolean checkControlStructures ; \n \n - COMMENT \n - @ deprecated \n - public CheckLevel checkUndefinedProperties ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public boolean checkUnusedPropertiesEarly ; \n - \n COMMENT \n public boolean checkTypes ;", "msg_token": "Remove undefined properties java api"} {"diff": " public class RegexpIntegrationTest extends SQLTransportIntegrationTest { \n COMMENT \n COMMENT \n COMMENT \n - @ test ( expected = SQLActionException . class ) \n + @ test \n public void testRegexpMatchQueryOperatorWithPcreViaElasticSearchForCount ( ) throws Exception { \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + expectedException . expect ( SQLActionException . class ) ; \n + expectedException . expectMessage ( STRING0 ) ; \n \n this . setup . setUpLocations ( ) ; \n ensureGreen ( ) ; \n public class RegexpIntegrationTest extends SQLTransportIntegrationTest { \n COMMENT \n COMMENT \n COMMENT \n - @ test ( expected = SQLActionException . class ) \n + @ test \n public void testRegexpMatchQueryOperatorWithPcreViaElasticSearchForDelete ( ) throws Exception { \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + expectedException . expect ( SQLActionException . class ) ; \n + expectedException . expectMessage ( STRING0 ) ; \n \n this . setup . setUpLocations ( ) ; \n ensureGreen ( ) ;", "msg_token": "improve tests for regular expression capabilities"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n - public class ExposeInvocationInterceptor implements MethodInterceptor , Ordered , Serializable { \n + public class ExposeInvocationInterceptor implements MethodInterceptor , PriorityOrdered , Serializable { \n \n COMMENT \n public static final ExposeInvocationInterceptor INSTANCE = new ExposeInvocationInterceptor ( ) ; \n public class ExposeInvocationInterceptor implements MethodInterceptor , Ordered , \n \n @ override \n public int getOrder ( ) { \n - return Ordered . HIGHEST_PRECEDENCE + NUMBER0 ; \n + return PriorityOrdered . HIGHEST_PRECEDENCE + NUMBER0 ; \n } \n \n COMMENT", "msg_token": "ExposeInvocationInterceptor declares itself as PriorityOrdered now"} {"diff": " public class NewRepeatTests < REMOTE_MODEL > extends DatabaseTestCase { \n String result = rrule . toIcal ( ) ; \n if ( fromCompletion ) \n result = result + STRING0 ; \n - t . setValue ( Task . RECURRENCE , rrule . toIcal ( ) ) ; \n + t . setValue ( Task . RECURRENCE , result ) ; \n taskDao . save ( t ) ; \n \n waitAndSync ( ) ;", "msg_token": "Fixed a bug in the repeating task tests"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class Utils \n { \n - public static BlockIterable getColumn ( StorageManager storageManager , Metadata metadata , final String tableName , String columnName ) \n - { \n - TableMetadata tableMetadata = metadata . getTable ( STRING0 , STRING0 , tableName ) ; \n - int index = NUMBER0 ; \n - for ( ColumnMetadata columnMetadata : tableMetadata . getColumns ( ) ) { \n - if ( columnName . equals ( columnMetadata . getName ( ) ) ) { \n - break ; \n - } \n - ++ index ; \n - } \n - final int columnIndex = index ; \n - return storageManager . getBlocks ( STRING0 , tableName , columnIndex ) ; \n - } \n - \n public static void printResults ( long start , Operator aggregation ) \n { \n long rows = ConsolePrinter . print ( aggregation ) ;", "msg_token": "Remove unused function"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n import static NAMESPACE ; \n \n COMMENT \n import static NAMESPACE ; \n COMMENT \n COMMENT \n @ retention ( CLASS ) \n - @ target ( { ANNOTATION_TYPE , METHOD , CONSTRUCTOR , FIELD , PARAMETER } ) \n + @ target ( { TYPE , METHOD , CONSTRUCTOR , FIELD } ) \n public @ interface RequiresApi { \n @ intrange ( from = NUMBER0 ) \n - int api ( ) ; \n + int value ( ) ; \n }", "msg_token": "Fix RequiresApi annotation"} {"diff": " public class Robolectric { \n ShadowRatingBar . class , \n ShadowRect . class , \n ShadowResolveInfo . class , \n + ShadowRemoteCallbackList . class , \n ShadowRemoteViews . class , \n ShadowResultReceiver . class , \n ShadowResourceCursorAdapter . class ,", "msg_token": "Added ShadowRemoteCallbackList class to Robolectric java"} {"diff": " public class VertexBuffer extends NativeObject implements Savable , Cloneable { \n COMMENT \n Color , \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n Tangent , \n \n COMMENT \n public class VertexBuffer extends NativeObject implements Savable , Cloneable { \n HWBoneIndex , \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - InstanceData \n + COMMENT \n + COMMENT \n + COMMENT \n + InstanceData \n } \n \n COMMENT", "msg_token": "Fixing tabs to spaces"} {"diff": " public class JoglGLExt implements GLExt { \n \n @ override \n public int glClientWaitSync ( Object sync , int flags , long timeout ) { \n - return GLContext . getCurrentGL ( ) . getGL3ES3 ( ) . glClientWaitSync ( ( long ) sync , flags , timeout ) ; \n + return GLContext . getCurrentGL ( ) . getGL3ES3 ( ) . glClientWaitSync ( ( ( Long ) sync ) . longValue ( ) , flags , timeout ) ; \n } \n \n @ override \n public void glDeleteSync ( Object sync ) { \n - GLContext . getCurrentGL ( ) . getGL3ES3 ( ) . glDeleteSync ( ( long ) sync ) ; \n + GLContext . getCurrentGL ( ) . getGL3ES3 ( ) . glDeleteSync ( ( ( Long ) sync ) . longValue ( ) ) ; \n } \n }", "msg_token": "Fixes a compile error in the unified renderer of the JOGL backend doesn t rely on the auto boxing"} {"diff": " public final class AdtsExtractor implements Extractor { \n input . peekFully ( scratch . data , NUMBER0 , NUMBER1 ) ; \n scratchBits . setPosition ( NUMBER2 ) ; \n int frameSize = scratchBits . readBits ( NUMBER3 ) ; \n + SINGLE \n + if ( frameSize <= NUMBER4 ) { \n + return false ; \n + } \n input . advancePeekPosition ( frameSize - NUMBER4 ) ; \n validFramesSize += frameSize ; \n }", "msg_token": "Fix infinite loop in AdtsExtractor sniffing malformed or non ADTS streams"} {"diff": " public class MetaDataUpdateSettingsService extends AbstractComponent implements \n max = Integer . parseInt ( sMax ) ; \n } \n } catch ( Exception e ) { \n - logger . warn ( STRING0 , IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , autoExpandReplicas ) ; \n + logger . warn ( STRING0 , e , IndexMetaData . SETTING_AUTO_EXPAND_REPLICAS , autoExpandReplicas ) ; \n continue ; \n }", "msg_token": "add the exception as well to the logging"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused import"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n public class WallContext { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add license info"} {"diff": " public abstract class DebuggerUtilsEx extends DebuggerUtils { \n if ( body == null || ! intersects ( lineRange , body ) ) return null ; \n if ( body instanceof PsiCodeBlock ) { \n for ( PsiStatement statement : ( ( PsiCodeBlock ) body ) . getStatements ( ) ) { \n - if ( intersects ( lineRange , statement ) ) { \n + SINGLE \n + if ( lineRange . contains ( statement . getTextOffset ( ) ) ) { \n return statement ; \n } \n + SINGLE \n + else if ( intersects ( lineRange , statement ) ) { \n + for ( PsiElement element : SyntaxTraverser . psiTraverser ( statement ) ) { \n + if ( lineRange . contains ( element . getTextOffset ( ) ) ) { \n + return element ; \n + } \n + } \n + } \n } \n return null ; \n }", "msg_token": "fixed incorrect first lambda statement on the line"} {"diff": " public class SecureProxySupport { \n public void close ( ) { \n if ( tokenPath != null ) { \n new File ( tokenPath . toUri ( ) ) . delete ( ) ; \n + String checksumStr = tokenPath . getParent ( ) + File . separator + STRING0 + tokenPath . getName ( ) + STRING1 ; \n + File checksumFile = null ; \n + try { \n + checksumFile = new File ( new URI ( checksumStr ) ) ; \n + if ( checksumFile . exists ( ) ) { \n + checksumFile . delete ( ) ; \n + } \n + } catch ( URISyntaxException e ) { \n + LOG . error ( STRING2 , e ) ; \n + } \n tokenPath = null ; \n } \n }", "msg_token": "WebHCat leaves token crc file never gets deleted Niklaus Xiao via Thejas Nair"} {"diff": " public abstract class Handler < I extends Iced , S extends Schema < I , S > > extends H2O \n \n SINGLE \n final Schema handle ( int version , Route route , Properties parms ) throws Exception { \n + SINGLE \n + SINGLE \n + SINGLE \n \n if ( ! ( min_ver ( ) <= version && version <= max_ver ( ) ) ) SINGLE \n return new HttpErrorV1 ( new IllegalArgumentException ( STRING0 + version + STRING1 + min_ver ( ) + STRING2 + max_ver ( ) ) ) ;", "msg_token": "Add a spot to put a breakpoint in handle"} {"diff": " public class IntroExamplesTest implements GraphHolder \n STRING0 , STRING1 } , autoIndexNodes = true ) \n public void intro_examples ( ) throws Exception \n { \n - gen . get ( ) ; \n Writer fw = AsciiDocGenerator . getFW ( STRING2 , gen . get ( ) . getTitle ( ) ) ; \n data . get ( ) ; \n fw . append ( STRING3 ) ;", "msg_token": "Removed method call added by mistake"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestJaxrsBase extends KillbillClient { \n install ( new DefaultJunctionModule ( configSource ) ) ; \n install ( new DefaultOverdueModule ( configSource ) ) ; \n install ( new TenantModule ( configSource ) ) ; \n + install ( new CurrencyModule ( configSource ) ) ; \n install ( new ExportModule ( ) ) ; \n install ( new DefaultOSGIModule ( configSource ) ) ; \n install ( new UsageModule ( configSource ) ) ;", "msg_token": "Add missing currency module for tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Removed unused import"} {"diff": " public class QueueStoreTest extends HazelcastTestSupport { \n queue . add ( NUMBER0 ) ; \n queue . add ( NUMBER1 ) ; \n \n + SINGLE \n final int value = queue . peek ( ) ; \n \n assertEquals ( NUMBER2 , value ) ;", "msg_token": "add comment to test"} {"diff": " public class OperationSetBasicInstantMessagingYahooImpl \n + ev . getFrom ( ) ) ; \n SINGLE \n sourceContact = opSetPersPresence \n - . createVolatileContact ( ev . getFrom ( ) ) ; \n + . createVolatileContact ( ev . getEmailAddress ( ) ) ; \n } \n MessageReceivedEvent msgReceivedEvt \n = new MessageReceivedEvent (", "msg_token": "use the email address instead of the name to create a volatile contact"} {"diff": " public class SetIndexReadOnlyJob extends SystemJob { \n log . info ( STRING0 , index ) ; \n indices . setReadOnly ( index ) ; \n \n - activityWriter . write ( new Activity ( STRING1 + index + STRING2 , SetIndexReadOnlyJob . class ) ) ; \n + activityWriter . write ( new Activity ( STRING3 + index + STRING4 , SetIndexReadOnlyJob . class ) ) ; \n \n if ( ! disableIndexOptimization ) { \n try {", "msg_token": "Fix typo in SetIndexReadOnlyJob"} {"diff": " final class PolymerPass extends AbstractPostOrderCallback implements HotSwapComp \n } \n \n Name behaviorGlobalName = globalNames . getSlot ( behaviorName . getQualifiedName ( ) ) ; \n - if ( behaviorGlobalName == null ) { \n + if ( behaviorGlobalName == null || behaviorGlobalName . getDeclaration ( ) == null ) { \n compiler . report ( JSError . make ( behaviorName , POLYMER_UNQUALIFIED_BEHAVIOR ) ) ; \n continue ; \n } \n public class PolymerPassTest extends CompilerTestCase { \n \n testSame ( \n Joiner . on ( STRING0 ) . join ( \n + STRING1 , \n + STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 , \n + STRING6 , \n + STRING7 , \n + STRING8 , \n + STRING9 ) , \n + POLYMER_UNQUALIFIED_BEHAVIOR , true ) ; \n + \n + testSame ( \n + Joiner . on ( STRING0 ) . join ( \n STRING10 , \n STRING11 , \n STRING12 ,", "msg_token": "Avoid a compiler RuntimeException when a Behavior s declaration is null but there are references to it"} {"diff": " public final class RecordMetadata { \n public int partition ( ) { \n return this . topicPartition . partition ( ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return topicPartition . toString ( ) + STRING0 + offset ; \n + } \n } \n public class RecordCollector { \n TopicPartition tp = new TopicPartition ( metadata . topic ( ) , metadata . partition ( ) ) ; \n offsets . put ( tp , metadata . offset ( ) ) ; \n } else { \n - log . error ( STRING1 , exception ) ; \n + log . error ( STRING1 + metadata , exception ) ; \n } \n } \n } ;", "msg_token": "Add more info to RecordCollector error message"} {"diff": " public final class Settings { \n public static final String CHECKIN_INTERVAL = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public static final String AGGREGATION_INTERVAL_SECONDS = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add AGGREGATION_INTERVAL_SECONDS fixing the build"} {"diff": " public class HazelcastComponentHelper { \n headers . remove ( HazelcastConstants . OPERATION ) ; \n } \n \n - SINGLE \n - ex . getOut ( ) . setHeaders ( headers ) ; \n + SINGLE \n + if ( ex . hasOut ( ) ) { \n + ex . getOut ( ) . setHeaders ( headers ) ; \n + } \n } \n \n public static void setListenerHeaders ( Exchange ex , String listenerType , String listenerAction , String cacheName ) {", "msg_token": "Fixed preserve headers for hazelcast producer"} {"diff": " public class NetworkUtilImpl implements NetworkUtil , NetworkEventProvider { \n private static boolean isDozing ( Context context ) { \n if ( VERSION . SDK_INT >= NUMBER0 ) { \n PowerManager powerManager = ( PowerManager ) context . getSystemService ( Context . POWER_SERVICE ) ; \n - return powerManager . isDeviceIdleMode ( ) ; \n + return powerManager . isDeviceIdleMode ( ) && \n + ! powerManager . isIgnoringBatteryOptimizations ( context . getPackageName ( ) ) ; \n } else { \n return false ; \n }", "msg_token": "Add support to ignore doze mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class CamelExtension implements Extension { \n Set < Map . Entry < Bean < ? > , BeanAdapter > > entries = eagerBeans . entrySet ( ) ; \n for ( Map . Entry < Bean < ? > , BeanAdapter > entry : entries ) { \n Bean < ? > bean = entry . getKey ( ) ; \n - BeanAdapter adapter = entry . getValue ( ) ; \n CreationalContext < ? > creationalContext = beanManager . createCreationalContext ( bean ) ; \n \n SINGLE", "msg_token": "Fixed the eclipse warning of came cdi"} {"diff": " public class DefaultBroadcaster implements Broadcaster { \n writeQueue . queue . put ( w ) ; \n synchronized ( writeQueue ) { \n if ( ! writeQueue . monitored . getAndSet ( true ) ) { \n + logger . trace ( STRING0 , name , r . uuid ( ) ) ; \n bc . getAsyncWriteService ( ) . submit ( getAsyncWriteHandler ( writeQueue ) ) ; \n } \n }", "msg_token": "Add more trace logging no functional changes"} {"diff": " public class PsiElementFactoryImpl extends PsiJavaParserFacadeImpl implements Ps \n final PsiClassType . ClassResolveResult resolveResult = type . resolveGenerics ( ) ; \n final PsiClass refClass = resolveResult . getElement ( ) ; \n assert refClass != null : type ; \n - return new LightClassReference ( myManager , type . getPresentableText ( ) , refClass , resolveResult . getSubstitutor ( ) ) ; \n + return new LightClassReference ( myManager , type . getInternalCanonicalText ( ) , refClass , resolveResult . getSubstitutor ( ) ) ; \n } \n \n @ notnull", "msg_token": "do not loose qualifier from type reference e g for extends list fix"} {"diff": " public class ProxyParser { \n \n @ nullable \n public Node parseFileInner ( String filename , @ notnull Process pythonProcess ) { \n - Util . msg ( STRING0 + filename ) ; \n + SINGLE \n SINGLE \n \n File exchange = new File ( exchangeFile ) ;", "msg_token": "commenting out msg"} {"diff": " public class BlockTank extends BlockContainer implements ITextureProvider { \n SINGLE \n } else { \n \n - LiquidStack available = tank . drain ( Orientations . Unknown , BuildCraftAPI . BUCKET_VOLUME , false ) ; \n + LiquidStack available = tank . getTanks ( ) [ NUMBER0 ] . getLiquid ( ) ; \n ItemStack filled = LiquidManager . fillLiquidContainer ( available , current ) ; \n \n liquid = LiquidManager . getLiquidForFilledItem ( filled ) ;", "msg_token": "Fixed potential liquid duplication bug when filling containers with capacity greater than a bucket"} {"diff": " import NAMESPACE ; \n \n @ mixin ( value = WorldProvider . class ) \n @ implements ( @ interface ( iface = Dimension . class , prefix = STRING0 ) ) \n - public abstract class MixinWorldProvider { \n + public abstract class MixinWorldProvider implements Dimension { \n @ shadow protected World worldObj ; \n - @ shadow ( remap = false ) public abstract int getHeight ( ) ; \n - @ shadow ( remap = false ) public abstract int getActualHeight ( ) ; \n + @ shadow ( remap = false ) public abstract int shadow$getHeight ( ) ; \n + @ shadow ( remap = false ) public abstract int shadow$getActualHeight ( ) ; \n \n @ intrinsic \n public int dimension$getHeight ( ) { \n - return getActualHeight ( ) ; \n + return shadow$getActualHeight ( ) ; \n } \n \n + @ override \n public int getBuildHeight ( ) { \n - return getHeight ( ) ; \n + return shadow$getHeight ( ) ; \n } \n \n }", "msg_token": "Clarify WorldProvider mixin methods"} {"diff": " public class NetworkManagementService extends INetworkManagementService . Stub \n public void setFirewallChainEnabled ( int chain , boolean enable ) { \n enforceSystemUid ( ) ; \n synchronized ( mQuotaLock ) { \n - if ( mFirewallChainStates . indexOfKey ( chain ) >= NUMBER0 && \n - mFirewallChainStates . get ( chain ) == enable ) { \n - SINGLE \n + if ( mFirewallChainStates . get ( chain , false ) == enable ) { \n + SINGLE \n + SINGLE \n return ; \n } \n mFirewallChainStates . put ( chain , enable ) ; \n public class NetworkPolicyManagerService extends INetworkPolicyManager . Stub { \n COMMENT \n COMMENT \n private void enableFirewallChainLocked ( int chain , boolean enable ) { \n - if ( mFirewallChainStates . indexOfKey ( chain ) >= NUMBER0 && \n - mFirewallChainStates . get ( chain ) == enable ) { \n - SINGLE \n + if ( mFirewallChainStates . get ( chain , false ) == enable ) { \n + SINGLE \n + SINGLE \n return ; \n } \n mFirewallChainStates . put ( chain , enable ) ;", "msg_token": "ignore initial request to disable iptable chain"} {"diff": " public class OsmExtractionUI implements IMapLocationListener { \n creator . setNormalizeStreets ( normalizingStreets . isSelected ( ) ) ; \n creator . setIndexTransport ( buildTransportIndex . isSelected ( ) ) ; \n creator . setIndexMap ( buildMapIndex . isSelected ( ) ) ; \n + creator . setCityAdminLevel ( DataExtractionSettings . getSettings ( ) . getCityAdminLevel ( ) ) ; \n String fn = DataExtractionSettings . getSettings ( ) . getMapRenderingTypesFile ( ) ; \n MapRenderingTypes types ; \n if ( fn == null || fn . length ( ) == NUMBER0 ) {", "msg_token": "Fix problem for osmand map creator"} {"diff": " public class UserTypeProvider implements TraceMetadataProvider { \n \n @ override \n public void setup ( TraceMetadataSetupContext context ) { \n - context . addServiceType ( UserConstants . USER_INCLUDE ) ; \n } \n }", "msg_token": "remove unusage service type"} {"diff": " public class ExecuteRequestInterceptor implements AroundInterceptor { \n final com . ning . http . client . Request httpRequest = ( com . ning . http . client . Request ) args [ NUMBER0 ] ; \n if ( httpRequest != null ) { \n SINGLE \n - recorder . recordAttribute ( AnnotationKey . HTTP_URL , httpRequest . getUrl ( ) ) ; \n - \n + recorder . recordAttribute ( AnnotationKey . HTTP_URL , InterceptorUtils . getHttpUrl ( httpRequest . getUrl ( ) , config . isProfileParam ( ) ) ) ; \n String endpoint = getEndpoint ( httpRequest . getURI ( ) . getHost ( ) , httpRequest . getURI ( ) . getPort ( ) ) ; \n recorder . recordDestinationId ( endpoint ) ;", "msg_token": "add param option of ning http"} {"diff": " public interface ClauseSplitter extends Function < SemanticGraph , ClauseSplitterSe \n public enum ClauseClassifierLabel { \n CLAUSE_SPLIT , \n CLAUSE_INTERM , \n - NOT_A_CLAUSE \n + NOT_A_CLAUSE ; \n + COMMENT \n + @ override \n + public String toString ( ) { \n + return this . name ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "Add a toString to the clause splitter label space"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GrCodeReferenceElementImpl extends GrReferenceElementImpl < GrCodeRef \n processVariantsImpl ( getKind ( true ) , consumer , matcher ) ; \n } \n \n + @ override \n + public PsiElement getContext ( ) { \n + if ( getParent ( ) instanceof GrAnnotation ) { \n + return getContainingFile ( ) ; \n + } \n + else { \n + return super . getContext ( ) ; \n + } \n + } \n + \n @ notnull \n @ override \n public PsiType [ ] getTypeArguments ( ) {", "msg_token": "annotation reference should skip processing declarations from class annotated with it"} {"diff": " public class AsyncTwitterTest extends TestCase implements TwitterListener { \n } \n \n public void testGetFriendsStatuses ( ) throws Exception { \n - user = null ; \n + users = null ; \n twitterAPI1 . getFriendsStatusesAsync ( id2 , this ) ; \n waitForResponse ( ) ; \n - assertNotNull ( user ) ; \n - user = null ; \n + assertNotNull ( users ) ; \n + users = null ; \n twitterAPI2 . getFriendsStatusesAsync ( this ) ; \n waitForResponse ( ) ; \n - assertNotNull ( user ) ; \n + assertNotNull ( users ) ; \n trySerializable ( users ) ; \n }", "msg_token": "simplyfing test case for getFriendsStatuses"} {"diff": " import NAMESPACE ; \n imeOptions |= EditorInfo . IME_ACTION_SEARCH ; \n break ; \n case EMAIL : \n - inputType = EditorInfo . TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS ; \n + inputType |= EditorInfo . TYPE_TEXT_VARIATION_WEB_EMAIL_ADDRESS ; \n imeOptions |= EditorInfo . IME_ACTION_GO ; \n break ; \n case NUMBER :", "msg_token": "Fix InputType determination of WebTextView DO NOT MERGE"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Reporter { \n \n - SINGLE \n private String pluralize ( int number ) { \n return number == NUMBER0 ? STRING0 : number + STRING1 ; \n } \n public class DescriptiveMessagesWhenVerificationFailsTest extends TestBase { \n verify ( mock ) . varargs ( STRING2 , STRING3 , STRING4 ) ; \n fail ( ) ; \n } catch ( ArgumentsAreDifferent e ) { \n + SINGLE \n + SINGLE \n String expected = \n STRING5 + \n STRING6 +", "msg_token": "described TODO item better"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Removing unused imports"} {"diff": " public class ContributionListPanel extends JPanel implements Scrollable , Contrib \n table . setFillsViewportHeight ( true ) ; \n SINGLE \n table . setDefaultRenderer ( Contribution . class , new StatusRendere ( ) ) ; \n - table . setRowHeight ( NUMBER0 ) ; \n + table . setRowHeight ( NUMBER1 ) ; \n table . setRowMargin ( NUMBER2 ) ; \n table . getColumnModel ( ) . setColumnMargin ( - NUMBER3 ) ; \n table . getColumnModel ( ) . getColumn ( NUMBER4 ) . setMaxWidth ( NUMBER5 ) ;", "msg_token": "Restored row height"} {"diff": " public class AstCache { \n \n public void close ( ) { \n parser . close ( ) ; \n - clearDiskCache ( ) ; \n + SINGLE \n }", "msg_token": "don t clear disk cache on finish"} {"diff": " public class XmppConnection extends ImConnection implements CallbackHandler { \n \n if ( mNeedReconnect ) { \n reconnect ( ) ; \n - } else if ( mConnection . isConnected ( ) && getState ( ) == LOGGED_IN ) { \n + } else if ( ! mConnection . isConnected ( ) && getState ( ) == LOGGED_IN ) { \n + SINGLE \n + Log . w ( TAG , STRING0 ) ; \n + setState ( LOGGING_IN , new ImErrorInfo ( ImErrorInfo . NETWORK_ERROR , STRING1 ) ) ; \n + force_reconnect ( ) ; \n + } else if ( getState ( ) == LOGGED_IN ) { \n if ( PING_ENABLED ) { \n SINGLE \n if ( ! checkPing ( ) ) { \n public class XmppConnection extends ImConnection implements CallbackHandler { \n SINGLE \n SINGLE \n SINGLE \n + \n + SINGLE \n + SINGLE \n + SINGLE \n if ( mConnection . isConnected ( ) ) { \n Log . w ( TAG , STRING2 ) ; \n mNeedReconnect = false ;", "msg_token": "Fix case where connection appears up but is down"} {"diff": " public class OperatorScopeITest { \n public void fracasSentencesWithAtLeastAFew ( ) { \n checkScope ( STRING0 ) ; \n checkScope ( STRING1 ) ; \n - checkScope ( STRING2 ) ; \n + SINGLE \n } \n \n @ test", "msg_token": "Fix the itest by uncommenting the failing example"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PresenceSubscribeHandler extends BasicModule implements ChannelHand \n JID prober = localServer . isLocal ( recipientJID ) ? \n new JID ( recipientJID . toBareJID ( ) ) : recipientJID ; \n presenceManager . probePresence ( prober , senderJID ) ; \n + PresenceEventDispatcher . subscribedToPresence ( recipientJID , senderJID ) ; \n } \n } \n \n public class PresenceSubscribeHandler extends BasicModule implements ChannelHand \n SINGLE \n SINGLE \n presenceManager . sendUnavailableFromSessions ( recipientJID , senderJID ) ; \n + PresenceEventDispatcher . unsubscribedToPresence ( senderJID , recipientJID ) ; \n } \n } \n catch ( SharedGroupException e ) {", "msg_token": "Added presence subscription events"} {"diff": " public class AndroidSdk \n { \n String versionString = properties . getProperty ( SDK_TOOLS_REVISION_PROPERTY ) ; \n String majorVersion ; \n - if ( versionString . matches ( STRING0 ) ) { \n + if ( versionString . matches ( STRING0 ) ) \n + { \n String [ ] versions = versionString . split ( STRING1 ) ; \n majorVersion = versions [ NUMBER0 ] ; \n - } else { \n + } \n + else \n + { \n majorVersion = versionString ; \n } \n sdkMajorVersion = Integer . parseInt ( majorVersion ) ;", "msg_token": "fixed codestyle problems"} {"diff": " public class InvoiceListener { \n } \n } \n \n + @ allowconcurrentevents \n + @ subscribe \n public void handleBlockingStateTransition ( final BlockingTransitionInternalEvent event ) { \n SINGLE \n if ( ! event . isTransitionedToUnblockedBilling ( ) && ! event . isTransitionedToBlockedBilling ( ) ) {", "msg_token": "Fix erroneous removal of annotations for handleBlockingStateTransition"} {"diff": " public class LogicalPlanner \n \n private TableMetadata createTableMetadata ( QualifiedObjectName table , List < ColumnMetadata > columns , Map < String , Expression > propertyExpressions , boolean sampled , List < Expression > parameters ) \n { \n - String owner = session . getUser ( ) ; \n - \n Map < String , Object > properties = metadata . getTablePropertyManager ( ) . getProperties ( \n table . getCatalogName ( ) , \n propertyExpressions ,", "msg_token": "Remove unused variable"} {"diff": " class ASTBuilder { \n val = literal . getValue3 ( ) ; \n type = HiveParser . BigintLiteral ; \n break ; \n + case DOUBLE : \n + val = literal . getValue3 ( ) + STRING0 ; \n + type = HiveParser . Number ; \n + break ; \n case DECIMAL : \n + val = literal . getValue3 ( ) + STRING1 ; \n + type = HiveParser . DecimalLiteral ; \n + break ; \n case FLOAT : \n - case DOUBLE : \n case REAL : \n val = literal . getValue3 ( ) ; \n type = HiveParser . Number ;", "msg_token": "CBO Improve casting of constants Ashutosh Chauhan via John Pullokkaran"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Renamed wheat to high grass"} {"diff": " public class OtrChatSessionAdapter extends Stub { \n \n } \n \n - public void end ( ) throws RemoteException \n - { \n - \n - Debug . wrapExceptions ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - _chatManager . removeSession ( _sid ) ; \n - \n - } \n - } ) ; \n - } \n - \n public void startChatEncryption ( ) throws RemoteException { \n Debug . wrapExceptions ( new Runnable ( ) { \n @ override", "msg_token": "remove unused method"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "making checkstyle happy"} {"diff": " public final class DiskLruCacheTest extends TestCase { \n } \n \n COMMENT \n - public void testAggressiveClearingHandledOnRead ( ) throws Exception { \n - set ( STRING0 , STRING1 , STRING1 ) ; \n - FileUtils . deleteDirectory ( cacheDir ) ; \n - assertNull ( cache . get ( STRING0 ) ) ; \n - } \n - \n - COMMENT \n public void testAggressiveClearingHandledOnEdit ( ) throws Exception { \n set ( STRING0 , STRING1 , STRING1 ) ; \n DiskLruCache . Editor a = cache . get ( STRING0 ) . edit ( ) ;", "msg_token": "Remove test that had always passed"} {"diff": " public class Database extends DBI implements Managed { \n this . pool = pool ; \n this . ping = onDemand ( Ping . class ) ; \n setSQLLog ( new Log4JLog ( LOGGER , Level . TRACE ) ) ; \n - setTimingCollector ( new InstrumentedTimingCollector ( Metrics . defaultRegistry ( ) , Database . class ) ) ; \n + setTimingCollector ( new InstrumentedTimingCollector ( Metrics . defaultRegistry ( ) ) ) ; \n setStatementRewriter ( new NamePrependingStatementRewriter ( ) ) ; \n setStatementLocator ( new ScopedStatementLocator ( ) ) ; \n registerArgumentFactory ( new OptionalArgumentFactory ( ) ) ;", "msg_token": "Fix Database w r t the new metrics jdbi"} {"diff": " public class WifiService extends IWifiManager . Stub { \n COMMENT \n COMMENT \n if ( ! shouldWifiStayAwake ( stayAwakeConditions , mPluggedType ) ) { \n - if ( ! mWifiStateTracker . hasIpAddress ( ) ) { \n - SINGLE \n + WifiInfo info = mWifiStateTracker . requestConnectionInfo ( ) ; \n + if ( info . getSupplicantState ( ) != SupplicantState . COMPLETED ) { \n + SINGLE \n mDeviceIdle = true ; \n updateWifiState ( ) ; \n } else {", "msg_token": "use wifi association state to determine if we should suspend wifi instead of"} {"diff": " public class ViewAvatarActivity extends BaseActivity { \n \n isUploading = false ; \n receiver . clear ( ) ; \n - if ( avatar == null ) { \n + if ( avatar == null || avatar . getFullImage ( ) == null ) { \n photoView . setImageBitmap ( null ) ; \n showView ( noPhoto ) ; \n goneView ( progress ) ;", "msg_token": "Fixing ViewAvatarActivity crash on empty avatar"} {"diff": " public class AnalyzingUtils { \n SINGLE \n \n public static String formDebugNameForBindingTrace ( @ notnull String debugName , @ nullable Object resolutionSubjectForMessage ) { \n + StringBuilder debugInfo = new StringBuilder ( debugName ) ; \n if ( resolutionSubjectForMessage instanceof PsiElement ) { \n - resolutionSubjectForMessage = ( ( PsiElement ) resolutionSubjectForMessage ) . getText ( ) ; \n + PsiElement element = ( PsiElement ) resolutionSubjectForMessage ; \n + debugInfo . append ( STRING0 ) . append ( element . getText ( ) ) ; \n + debugInfo . append ( STRING1 ) . append ( element . getContainingFile ( ) . getName ( ) ) ; \n } \n - if ( resolutionSubjectForMessage != null ) { \n - return debugName + STRING2 + resolutionSubjectForMessage + STRING3 ; \n + else if ( resolutionSubjectForMessage != null ) { \n + debugInfo . append ( STRING0 ) . append ( resolutionSubjectForMessage ) ; \n } \n - return debugName ; \n + return debugInfo . toString ( ) ; \n } \n }", "msg_token": "improved debug message for temporary traces"} {"diff": " public class ShadowAlertDialog extends ShadowDialog { \n } \n \n @ implementation \n + public AlertDialog . Builder setMessage ( int messageId ) { \n + this . message = context . getResources ( ) . getString ( messageId ) ; \n + return realBuilder ; \n + } \n + \n + @ implementation \n public AlertDialog . Builder setPositiveButton ( int textId , final DialogInterface . OnClickListener listener ) { \n return setPositiveButton ( context . getResources ( ) . getString ( textId ) , listener ) ; \n }", "msg_token": "Added AlertBuilder setMessage int implementation"} {"diff": " public class SpiceAsyUploadTask extends AsyncTask < Object , Object , Object > { \n private final Context context ; \n private final HttpClientWrapper client ; \n \n - SINGLE \n \n public SpiceAsyUploadTask ( final Context context ) { \n this . context = context ;", "msg_token": "delete useless code"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public abstract class KernelExtensionContractTest < S , X extends KernelExtension < S \n } \n \n @ test \n + public void differentInstancesUseSameState ( ) throws Exception \n + { \n + EmbeddedGraphDatabase graphdb = graphdb ( STRING0 , true , NUMBER0 ) ; \n + try \n + { \n + KernelData kernel = getExtensions ( graphdb ) ; \n + assertSame ( newInstance ( ) . getState ( kernel ) , newInstance ( ) . getState ( kernel ) ) ; \n + } \n + finally \n + { \n + graphdb . shutdown ( ) ; \n + } \n + } \n + \n + @ test \n public void sameInstanceCanLoadWithMultipleKernels ( ) throws Exception \n { \n EmbeddedGraphDatabase graphdb1 = graphdb ( STRING1 , COMMENT false , NUMBER1 ) ;", "msg_token": "Added a test case for the KernelExtension contract test"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n } \n \n SINGLE \n - mHandler . obtainMessage ( SHUTDOWN_UI_AUTOMATION_CONNECTION_MSG , \n - app . instrumentationUiAutomationConnection ) . sendToTarget ( ) ; \n + if ( app . instrumentationUiAutomationConnection != null ) { \n + mHandler . obtainMessage ( SHUTDOWN_UI_AUTOMATION_CONNECTION_MSG , \n + app . instrumentationUiAutomationConnection ) . sendToTarget ( ) ; \n + } \n \n app . instrumentationWatcher = null ; \n app . instrumentationUiAutomationConnection = null ;", "msg_token": "Fix a NPE when shutting down instrumentation"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n return DEX_OPT_DEFERRED ; \n } else { \n Log . i ( TAG , STRING0 + pkg . applicationInfo . packageName ) ; \n - ret = mInstaller . dexopt ( path , pkg . applicationInfo . uid , \n - ! isForwardLocked ( pkg ) ) ; \n + final int sharedGid = UserHandle . getSharedAppGid ( pkg . applicationInfo . uid ) ; \n + ret = mInstaller . dexopt ( path , sharedGid , ! isForwardLocked ( pkg ) ) ; \n pkg . mDidDexOpt = true ; \n performed = true ; \n }", "msg_token": "Use shared app gid for dalvik cache"} {"diff": " public class Utils { \n buffer . get ( ret , NUMBER0 , ret . length ) ; \n return ret ; \n } \n + \n + public static boolean exceptionCauseIsInstanceOf ( Class klass , Throwable throwable ) { \n + Throwable t = throwable ; \n + while ( t != null ) { \n + if ( klass . isInstance ( t ) ) { \n + return true ; \n + } \n + t = t . getCause ( ) ; \n + } \n + return false ; \n + } \n } \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class RotatingTransactionalState { \n } catch ( RuntimeException e ) { \n SINGLE \n SINGLE \n - if ( ! ( e . getCause ( ) instanceof KeeperException . NoNodeException ) ) { \n + if ( ! Utils . exceptionCauseIsInstanceOf ( KeeperException . NoNodeException . class , e ) ) { \n throw e ; \n } \n } \n - \n } \n }", "msg_token": "Added helper function exceptionCauseIsInstanceOf"} {"diff": " public class TranslatorX86 < InstructionType extends IInstruction > implements \n translators . put ( STRING0 , new JccTranslator ( new NotBelowGenerator ( ) ) ) ; \n translators . put ( STRING1 , new JccTranslator ( new BelowGenerator ( ) ) ) ; \n translators . put ( STRING2 , new JccTranslator ( new BelowEqualGenerator ( ) ) ) ; \n - translators . put ( STRING3 , new JccTranslator ( new EcxZeroGenerator ( ) ) ) ; \n - translators . put ( STRING4 , new JccTranslator ( new CxZeroGenerator ( ) ) ) ; \n + translators . put ( STRING4 , new JccTranslator ( new EcxZeroGenerator ( ) ) ) ; \n + translators . put ( STRING3 , new JccTranslator ( new CxZeroGenerator ( ) ) ) ; \n translators . put ( STRING5 , new JccTranslator ( new ZeroGenerator ( ) ) ) ; \n translators . put ( STRING6 , new JccTranslator ( new GreaterGenerator ( ) ) ) ; \n translators . put ( STRING7 , new JccTranslator ( new GreaterEqualGenerator ( ) ) ) ;", "msg_token": "jecxz jcxz translators call fix"} {"diff": " public class KafkaInput extends MessageInput { \n \n private volatile boolean stopped = false ; \n private volatile boolean paused = true ; \n - private CountDownLatch pausedLatch = new CountDownLatch ( NUMBER0 ) ; \n + private volatile CountDownLatch pausedLatch = new CountDownLatch ( NUMBER0 ) ; \n \n private AtomicLong totalBytesRead = new AtomicLong ( NUMBER1 ) ; \n private AtomicLong lastSecBytesRead = new AtomicLong ( NUMBER1 ) ;", "msg_token": "Make pausedLatch in KafkaInput volatile to avoid visibility problems"} {"diff": " public class SvnUtil { \n } \n \n public static String formatRepresentation ( final WorkingCopyFormat format ) { \n - if ( WorkingCopyFormat . ONE_DOT_SIX . equals ( format ) ) { \n + if ( WorkingCopyFormat . ONE_DOT_SEVEN . equals ( format ) ) { \n + return SvnBundle . message ( STRING0 ) ; \n + } else if ( WorkingCopyFormat . ONE_DOT_SIX . equals ( format ) ) { \n return SvnBundle . message ( STRING1 ) ; \n } else if ( WorkingCopyFormat . ONE_DOT_FIVE . equals ( format ) ) { \n return SvnBundle . message ( STRING2 ) ;", "msg_token": "Missing version no in dialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public interface Server { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public String getUpdateFolder ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public File getUpdateFolderFile ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Adds a method that returns the File representation of the update folder"} {"diff": " public class SybaseASEMigrationTest extends MigrationTestCase { \n \n @ override \n protected DataSource createDataSource ( Properties customProperties ) { \n - String user = customProperties . getProperty ( STRING0 , STRING1 ) ; \n - String password = customProperties . getProperty ( STRING2 , STRING3 ) ; \n - String url = customProperties . getProperty ( STRING4 , STRING5 ) ; \n + String user = customProperties . getProperty ( STRING0 , STRING6 ) ; \n + String password = customProperties . getProperty ( STRING2 , STRING7 ) ; \n + String url = customProperties . getProperty ( STRING4 , STRING8 ) ; \n \n return new DriverDataSource ( Thread . currentThread ( ) . getContextClassLoader ( ) , null , url , user , password ) ; \n }", "msg_token": "Removed local testing environment credentials"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class SharedTreeModelBuilder < TM extends DTree . TreeModel > extends ValidatedJob { \n static final int API_WEAVER = NUMBER0 ; SINGLE \n static public DocGen . FieldDoc [ ] DOC_FIELDS ; SINGLE", "msg_token": "Have a proper java comment"} {"diff": " public class DefaultFailover implements Failover { \n @ override \n public boolean apply ( Session session ) { \n logger . info ( STRING0 , session . getRequest ( ) ) ; \n - return dumpedRequest . match ( session . getRequest ( ) ) ; \n + return session . getRequest ( ) . match ( dumpedRequest ) ; \n } \n } ; \n } \n public abstract class Message { \n } \n \n protected boolean doMatch ( Map < String , String > thisField , Map < String , String > thatField ) { \n - if ( thisField == null ) { \n + if ( thisField == null || thisField . isEmpty ( ) ) { \n return true ; \n }", "msg_token": "reverted failover request match order"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RegistryToggleAction extends ToggleAction { \n @ override \n public void setSelected ( AnActionEvent e , boolean state ) { \n Registry . get ( myKey ) . setValue ( state ) ; \n + doWhenDone ( e ) ; \n + } \n + \n + public void doWhenDone ( AnActionEvent e ) { \n } \n }", "msg_token": "add doWhenDone method"} {"diff": " public class HierarchicalDirectedGraphImplFiltered extends HierarchicalGraphImpl \n public int getDegree ( Node node ) { \n view . checkUpdate ( ) ; \n AbstractNode absNode = checkNode ( node ) ; \n - int count = view . getClusteredLayerInDegree ( absNode ) ; \n + int count = view . getClusteredLayerDegree ( absNode ) ; \n return count ; \n } \n \n public class HierarchicalUndirectedGraphImplFiltered extends HierarchicalGraphIm \n public int getDegree ( Node node ) { \n view . checkUpdate ( ) ; \n AbstractNode absNode = checkNode ( node ) ; \n - int count = view . getClusteredLayerInDegree ( absNode ) ; \n + int count = view . getClusteredLayerDegree ( absNode ) ; \n return count ; \n }", "msg_token": "Fix degree in filtered graphs"} {"diff": " final class GridLayoutManager extends RecyclerView . LayoutManager { \n } \n \n @ override \n - public int scrollHorizontallyBy ( int dx , Adapter adapter , Recycler recycler , \n - RecyclerView . State state ) { \n + public int scrollHorizontallyBy ( int dx , Recycler recycler , RecyclerView . State state ) { \n if ( DEBUG ) Log . v ( TAG , STRING0 + dx ) ; \n \n if ( mOrientation == HORIZONTAL ) { \n final class GridLayoutManager extends RecyclerView . LayoutManager { \n } \n \n @ override \n - public int scrollVerticallyBy ( int dy , Adapter adapter , Recycler recycler , \n - RecyclerView . State state ) { \n + public int scrollVerticallyBy ( int dy , Recycler recycler , RecyclerView . State state ) { \n if ( DEBUG ) Log . v ( TAG , STRING1 + dy ) ; \n if ( mOrientation == VERTICAL ) { \n return scrollDirectionPrimary ( dy ) ;", "msg_token": "Override correct scrollBy methods in GridLayoutManager"} {"diff": " public class StorageService implements IEndpointStateChangeSubscriber , StorageSe \n Gossiper . instance . start ( SystemTable . incrementAndGetGeneration ( ) ) ; SINGLE \n SINGLE \n Gossiper . instance . addLocalApplicationState ( ApplicationState . RPC_ADDRESS , valueFactory . rpcaddress ( DatabaseDescriptor . getRpcAddress ( ) ) ) ; \n - Gossiper . instance . addLocalApplicationState ( ApplicationState . STATUS , valueFactory . hibernate ( null != DatabaseDescriptor . getReplaceToken ( ) ) ) ; \n + if ( null != DatabaseDescriptor . getReplaceToken ( ) ) \n + Gossiper . instance . addLocalApplicationState ( ApplicationState . STATUS , valueFactory . hibernate ( true ) ) ; \n \n MessagingService . instance ( ) . listen ( FBUtilities . getLocalAddress ( ) ) ; \n LoadBroadcaster . instance . startBroadcasting ( ) ;", "msg_token": "Bootstrapping nodes never use the hibernation state"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class ActivityStack { \n \n private final void logStartActivity ( int tag , ActivityRecord r , \n TaskRecord task ) { \n + final Uri data = r . intent . getData ( ) ; \n + final String strData = data != null ? data . toSafeString ( ) : null ; \n + \n EventLog . writeEvent ( tag , \n r . userId , System . identityHashCode ( r ) , task . taskId , \n r . shortComponentName , r . intent . getAction ( ) , \n - r . intent . getType ( ) , r . intent . getDataString ( ) , \n - r . intent . getFlags ( ) ) ; \n + r . intent . getType ( ) , strData , r . intent . getFlags ( ) ) ; \n } \n \n COMMENT", "msg_token": "Obfuscate any phone numbers that pass through the event log"} {"diff": " public final class ErrorInfo { \n COMMENT \n public final String message ; \n \n - public ErrorInfo ( DeclaredTypeName errorClass , String element , String message ) { \n + ErrorInfo ( DeclaredTypeName errorClass , String element , String message ) { \n this . errorClass = errorClass ; \n this . element = element ; \n this . message = message ;", "msg_token": "Make Error info constructor package private"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "removed extraneous import"} {"diff": " public class ExecutionGraph implements ExecutionListener { \n if ( vertex . getExecutionState ( ) == ExecutionState . FAILED && ! vertex . hasRetriesLeft ( ) ) { \n this . jobStatus = InternalJobStatus . FAILING ; \n return ; \n + } else { \n + this . jobStatus = InternalJobStatus . RECOVERING ; \n + return ; \n } \n } \n }", "msg_token": "starting recovery for failed tasks"} {"diff": " public class DefaultChooseByNameItemProvider implements ChooseByNameItemProvider \n return null ; \n } \n if ( base . getModel ( ) instanceof CustomMatcherModel ) { \n - return ( ( CustomMatcherModel ) base . getModel ( ) ) . matches ( name , pattern ) ? new MatchResult ( name , NUMBER0 , true ) : null ; \n + try { \n + return ( ( CustomMatcherModel ) base . getModel ( ) ) . matches ( name , pattern ) ? new MatchResult ( name , NUMBER0 , true ) : null ; \n + } \n + catch ( Exception e ) { \n + LOG . info ( e ) ; \n + return null ; SINGLE \n + } \n } \n return matcher . matches ( name ) ? new MatchResult ( name , matcher . matchingDegree ( name ) , matcher . isStartMatch ( name ) ) : null ; \n }", "msg_token": "catch custom matching exceptions"} {"diff": " public final class HeartbeatThreadTest { \n \n private static final int NUMBER_OF_THREADS = NUMBER0 ; \n \n - private static ExecutorService mExecutorService ; \n + private static ExecutorService sExecutorService ; \n \n @ beforeclass \n public static void beforeClass ( ) { \n - mExecutorService = Executors . newFixedThreadPool ( NUMBER_OF_THREADS ) ; \n + sExecutorService = Executors . newFixedThreadPool ( NUMBER_OF_THREADS ) ; \n } \n \n @ afterclass \n public static void afterClass ( ) { \n - mExecutorService . shutdownNow ( ) ; \n + sExecutorService . shutdownNow ( ) ; \n } \n \n COMMENT \n public final class HeartbeatThreadTest { \n HeartbeatThread ht = new HeartbeatThread ( mThreadName , executor , NUMBER1 ) ; \n \n SINGLE \n - mExecutorService . submit ( ht ) ; \n + sExecutorService . submit ( ht ) ; \n \n SINGLE \n Assert . assertTrue ( STRING0 ,", "msg_token": "Fix naming style"} {"diff": " public class FileDisplayActivity extends HookActivity \n public void onBackPressed ( ) { \n OCFileListFragment listOfFiles = getListOfFilesFragment ( ) ; \n if ( mDualPane || getSecondFragment ( ) == null ) { \n + if ( getFile ( ) != null && getFile ( ) . getParentId ( ) == NUMBER0 ) { \n + finish ( ) ; \n + return ; \n + } \n if ( listOfFiles != null ) { SINGLE \n listOfFiles . onBrowseUp ( ) ; \n }", "msg_token": "Recover exit on BACK pressed"} {"diff": " public class PyExceptionBreakpointProperties extends ExceptionBreakpointProperti \n public PyExceptionBreakpointProperties ( @ notnull final String exception ) { \n myException = exception ; \n myNotifyOnTerminate = true ; \n - myIgnoreLibraries = true ; \n + myIgnoreLibraries = false ; \n } \n \n @ override", "msg_token": "Turn off ignore libraries option by default"} {"diff": " public class ActivityManager { \n return new HashMap < String , Integer > ( ) ; \n } \n \n + PkgUsageStats [ ] allPkgUsageStats = usageStatsService . getAllPkgUsageStats ( ) ; \n + if ( allPkgUsageStats == null ) { \n + return new HashMap < String , Integer > ( ) ; \n + } \n + \n Map < String , Integer > launchCounts = new HashMap < String , Integer > ( ) ; \n - for ( PkgUsageStats pkgUsageStats : usageStatsService . getAllPkgUsageStats ( ) ) { \n + for ( PkgUsageStats pkgUsageStats : allPkgUsageStats ) { \n launchCounts . put ( pkgUsageStats . packageName , pkgUsageStats . launchCount ) ; \n }", "msg_token": "Fixed NPE in ActivityManager s launch count service"} {"diff": " public abstract class AbstractInteropTest { \n . setIntervalUs ( NUMBER0 ) ) \n . build ( ) ) . next ( ) ; \n fail ( STRING0 ) ; \n - } catch ( Throwable t ) { \n - assertEquals ( Status . DEADLINE_EXCEEDED . getCode ( ) , Status . fromThrowable ( t ) . getCode ( ) ) ; \n + } catch ( StatusRuntimeException ex ) { \n + assertEquals ( Status . DEADLINE_EXCEEDED . getCode ( ) , ex . getStatus ( ) . getCode ( ) ) ; \n } \n }", "msg_token": "Don t catch AssertionError as it makes test failure confusing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ reportscrashes ( formId = STRING0 , \n + @ reportscrashes ( formKey = STRING1 , \n mode = ReportingInteractionMode . NOTIFICATION , \n resNotifTickerText = R . string . crash_notif_ticker_text , \n resNotifTitle = R . string . crash_notif_title , \n public class ACRA { \n private static Uri getFormUri ( ) { \n \n return mReportsCrashes . formUri ( ) . equals ( STRING2 ) ? Uri . parse ( STRING3 \n - + mReportsCrashes . formId ( ) + STRING4 ) : Uri . parse ( mReportsCrashes . formUri ( ) ) ; \n + + mReportsCrashes . formKey ( ) + STRING4 ) : Uri . parse ( mReportsCrashes . formUri ( ) ) ; \n } \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public @ interface ReportsCrashes { \n COMMENT \n COMMENT \n COMMENT \n - String formId ( ) ; \n + String formKey ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Replaced formId with formKey to be consistent with Google s naming"} {"diff": " public class OnDisconnectInterceptor extends AtmosphereInterceptorAdapter { \n String s = request . getHeader ( HeaderConfig . X_ATMOSPHERE_TRANSPORT ) ; \n String uuid = r . uuid ( ) ; \n if ( p != null && s != null && s . equalsIgnoreCase ( HeaderConfig . DISCONNECT_TRANSPORT_MESSAGE ) ) { \n - logger . trace ( STRING0 , uuid ) ; \n + logger . debug ( STRING0 , uuid ) ; \n AtmosphereResource ss = config . resourcesFactory ( ) . find ( uuid ) ; \n if ( ss != null ) { \n SINGLE", "msg_token": "Turn the log to debug"} {"diff": " public class StanfordCoreNLP extends AnnotationPipeline { \n if ( ! outputFilename . endsWith ( extension ) ) { \n outputFilename += extension ; \n } \n - OutputStream fos = new BufferedOutputStream ( new FileOutputStream ( outputFilename ) ) \n + OutputStream fos = new BufferedOutputStream ( new FileOutputStream ( outputFilename ) ) ; \n \n - SINGLE \n switch ( outputFormat ) { \n case XML : { \n try { \n public class StanfordCoreNLP extends AnnotationPipeline { \n COMMENT \n COMMENT \n COMMENT \n - public static void main ( String [ ] args ) throws IOException , ClassNotFoundException SINGLE \n - try SINGLE \n - Thread . sleep ( NUMBER0 ) SINGLE \n - } catch ( InterruptedException ie ) SINGLE \n - return SINGLE \n - } \n + public static void main ( String [ ] args ) throws IOException , ClassNotFoundException { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fix the build"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed a comment"} {"diff": " public class UnassignedInfo implements ToXContent , Writeable < UnassignedInfo > { \n private final Reason reason ; \n private final long unassignedTimeMillis ; SINGLE \n private final long unassignedTimeNanos ; SINGLE \n - private long lastComputedLeftDelayNanos = NUMBER0 l ; SINGLE \n + private volatile long lastComputedLeftDelayNanos = NUMBER0 l ; SINGLE \n private final String message ; \n private final Throwable failure ; \n \n public abstract class ReplicaShardAllocator extends AbstractComponent { \n SINGLE \n long delay = shard . unassignedInfo ( ) . updateDelay ( timeNowNanos , settings , indexMetaData . getSettings ( ) ) ; \n if ( delay > NUMBER0 ) { \n - logger . debug ( STRING0 , shard . index ( ) , shard . id ( ) , shard , TimeValue . timeValueMillis ( delay ) ) ; \n + logger . debug ( STRING0 , shard . index ( ) , shard . id ( ) , shard , TimeValue . timeValueNanos ( delay ) ) ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix concurrency issue when accessing field UnassignedInfo lastComputedLeftDelayNanos from TransportClusterHealthAction"} {"diff": " public class TransportNetworkCache { \n \n private AmazonS3Client s3 = new AmazonS3Client ( ) ; \n \n - private static final String CACHE_DIR = STRING0 ; \n + private static final File CACHE_DIR = new File ( STRING1 , STRING2 ) ; SINGLE \n \n private final String sourceBucket ; \n \n public class TransportNetworkCache { \n SINGLE \n CommandLineParameters params = new CommandLineParameters ( ) ; \n currentNetwork = TransportNetwork . fromDirectory ( new File ( CACHE_DIR , networkId ) ) ; \n - currentNetwork . buildStopTrees ( ) ; \n currentNetworkId = networkId ; \n + currentNetwork . buildStopTrees ( ) ; \n + SINGLE \n return currentNetwork ; \n \n }", "msg_token": "use same cache location as old worker to allow hopping between them when testing"} {"diff": " public class DependencyCustomizer { \n protected boolean canAdd ( ) { \n return true ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public DependencyResolutionContext getDependencyResolutionContext ( ) { \n + return this . dependencyResolutionContext ; \n + } \n }", "msg_token": "Add public getter for dependency context"} {"diff": " public class YamlFrontMatter \n MatchResult beginMatch = frontMatterReg . exec ( code ) ; \n if ( beginMatch == null ) \n return null ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! code . substring ( NUMBER0 , beginMatch . getIndex ( ) ) . matches ( STRING0 ) ) \n + return null ; \n + \n MatchResult endMatch = frontMatterReg . exec ( code ) ; \n if ( endMatch == null ) \n return null ;", "msg_token": "ignore YAML front matter if not preceded only by whitespace"} {"diff": " class ProjectViewDropTarget implements DnDNativeTarget { \n else if ( sourceNodes != null && ! dropHandler . isValidSource ( sourceNodes , targetNode ) ) { \n return false ; \n } \n + if ( sourceNodes != null ) { \n + boolean redundant = true ; \n + for ( TreeNode sourceNode : sourceNodes ) { \n + if ( ! dropHandler . isDropRedundant ( sourceNode , targetNode ) ) { \n + redundant = false ; \n + break ; \n + } \n + } \n + if ( redundant ) return false ; \n + } \n final Rectangle pathBounds = myTree . getPathBounds ( myTree . getPathForLocation ( point . x , point . y ) ) ; \n aEvent . setHighlighting ( new RelativeRectangle ( myTree , pathBounds ) , DnDEvent . DropTargetHighlightingType . RECTANGLE ) ; \n aEvent . setDropPossible ( true , null ) ;", "msg_token": "do not accept redundant"} {"diff": " public class IntroActivity extends AppCompatActivity { \n \n public void nextSlide ( ) { \n int currentItem = pager . getCurrentItem ( ) ; \n - if ( currentItem >= adapter . getCount ( ) - NUMBER0 ) return ; \n + if ( currentItem >= adapter . getCount ( ) - NUMBER0 ) finishIfNeeded ( ) ; \n \n if ( canGoForward ( currentItem , true ) ) { \n pager . setCurrentItem ( ++ currentItem , true ) ;", "msg_token": "Fix Finish button not working on last slide"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public enum IsolationLevel \n { \n SERIALIZABLE , \n public enum IsolationLevel \n \n throw new AssertionError ( STRING0 + this ) ; \n } \n - \n - public static IsolationLevel fromJdbcValue ( int value ) \n - { \n - switch ( value ) { \n - case Connection . TRANSACTION_READ_UNCOMMITTED : \n - return READ_UNCOMMITTED ; \n - \n - case Connection . TRANSACTION_READ_COMMITTED : \n - return READ_COMMITTED ; \n - \n - case Connection . TRANSACTION_REPEATABLE_READ : \n - return REPEATABLE_READ ; \n - \n - case Connection . TRANSACTION_SERIALIZABLE : \n - return SERIALIZABLE ; \n - } \n - \n - throw new IllegalArgumentException ( STRING1 + value ) ; \n - } \n }", "msg_token": "Remove unused method fromJdbcValue from IsolationLevel"} {"diff": " public class ParseTestMultiFileOrc extends TestUtil { \n int totalFilesTested = NUMBER0 ; \n int numberWrong = NUMBER0 ; \n \n - private String [ ] csvDirectories = { STRING0 } ; \n + private String [ ] csvDirectories = { STRING1 } ; \n private String [ ] orcDirectories = { STRING2 } ; \n \n @ beforeclass", "msg_token": "Fixed path error in orc junit test"} {"diff": " public class LinkViewOverlayService extends OverlayService { \n int tasksSize = tasks . size ( ) ; \n for ( int i = NUMBER0 ; i < tasksSize ; i ++ ) { \n ComponentName componentName = activityManager . getRunningTasks ( taskLimit ) . get ( i ) . baseActivity ; \n + if ( componentName . getClassName ( ) . equals ( STRING0 ) ) { \n + SINGLE \n + continue ; \n + } \n + \n String currentPackageName = componentName . getPackageName ( ) ; \n if ( currentPackageName != null \n && mCurrentAppPackgeName != null", "msg_token": "Ignore MainActivity for linkview"} {"diff": " public class SharedProjectDetails extends JavaScriptObject \n public final native String getProjectDir ( ) COMMENT \n COMMENT \n COMMENT ; \n + \n + public final native String getProjectFile ( ) COMMENT \n + COMMENT \n + COMMENT ; \n \n public final native String getProjectOwner ( ) / * - { \n return this . project_owner ;", "msg_token": "add project file accessor"} {"diff": " public class ErrorCheckerService implements Runnable { \n COMMENT \n COMMENT \n COMMENT \n - protected CompilationUnit cu , lastCorrectCu ; \n + protected CompilationUnit cu ; \n \n COMMENT \n COMMENT \n public class ErrorCheckerService implements Runnable { \n if ( problems . length == NUMBER0 ) { \n syntaxErrors . set ( false ) ; \n containsErrors . set ( false ) ; \n - lastCorrectCu = cu ; \n + SINGLE \n } else { \n CompilationUnit cuTemp = null ; \n - lastCorrectCu = cuTemp ; \n + SINGLE \n syntaxErrors . set ( true ) ; \n containsErrors . set ( true ) ; \n } \n public class ErrorCheckerService implements Runnable { \n cu = ( CompilationUnit ) parser . createAST ( null ) ; \n else { \n synchronized ( cu ) { \n - if ( ! hasSyntaxErrors ( ) ) \n + SINGLE \n cu = ( CompilationUnit ) parser . createAST ( null ) ; \n } \n }", "msg_token": "reverting changes before branching"} {"diff": " class GithubUser { \n BRONZE , \n SILVER , \n GOLD , \n - PLATINUM ; \n + PLATINUM , \n + ENTERPRISE ; \n \n public boolean isPrivateRepoAllowed ( ) { \n return this != FREE ;", "msg_token": "github Add Enterprise to the list of possible user plans"} {"diff": " public class StickyListHeadersListView extends FrameLayout { \n } \n mHeader = newHeader ; \n addView ( mHeader ) ; \n - mHeader . setOnClickListener ( new OnClickListener ( ) { \n - \n - @ override \n - public void onClick ( View v ) { \n - if ( mOnHeaderClickListener != null ) { \n + if ( mOnHeaderClickListener != null ) { \n + mHeader . setOnClickListener ( new OnClickListener ( ) { \n + @ override \n + public void onClick ( View v ) { \n mOnHeaderClickListener . onHeaderClick ( \n StickyListHeadersListView . this , mHeader , \n mHeaderPosition , mHeaderId , true ) ; \n } \n - } \n - \n - } ) ; \n + } ) ; \n + } \n } \n \n SINGLE", "msg_token": "obvious fix for header click handler"} {"diff": " public abstract class OFile { \n \n boolean softlyClosed = isSoftlyClosed ( ) ; \n \n - setSoftlyClosed ( false ) ; \n + if ( softlyClosed ) \n + setSoftlyClosed ( false ) ; \n \n return softlyClosed ; \n }", "msg_token": "Set soft closed only if needed"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class GCMIntentService extends GCMBaseIntentService { \n if ( ABTestingUtils . isFeatureEnabled ( Feature . HELPSHIFT ) ) { \n HelpshiftHelper . getInstance ( ) . registerDeviceToken ( context , regId ) ; \n } \n + AnalyticsTracker . registerPushNotificationToken ( regId ) ; \n } \n } \n \n public class WordPress extends Application { \n if ( ABTestingUtils . isFeatureEnabled ( Feature . HELPSHIFT ) ) { \n HelpshiftHelper . getInstance ( ) . registerDeviceToken ( context , regId ) ; \n } \n + AnalyticsTracker . registerPushNotificationToken ( regId ) ; \n } \n \n public interface OnPostUploadedListener {", "msg_token": "send our GCM token to AnalyticsTracker onRegistered and on app init"} {"diff": " public class NetworkEventDispatcher \n listener . configurationChanged ( evt ) ; \n } catch ( Throwable e ) \n { \n - logger . warn ( STRING0 + evt + STRING1 + listener ) ; \n + logger \n + . warn ( STRING0 + evt + STRING1 + listener , e ) ; \n } \n }", "msg_token": "Include exception in failed delivery log"} {"diff": " public class DeploymentGroupTest { \n changed ) ; \n \n SINGLE \n - SINGLE \n SINGLE \n + SINGLE \n final List < RolloutTask > tasks = ImmutableList . < RolloutTask > builder ( ) \n - . addAll ( RollingUpdatePlanner . of ( changed ) . plan ( updateHostStatuses ) ) \n . addAll ( RollingUndeployPlanner . of ( changed ) . plan ( undeployHostStatuses ) ) \n + . addAll ( RollingUpdatePlanner . of ( changed ) . plan ( updateHostStatuses ) ) \n . build ( ) ; \n \n final ZooKeeperOperation setDeploymentGroupTasks = set (", "msg_token": "Fix ordering in affected test"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Collections import"} {"diff": " public abstract class ServerExtension \n { \n if ( ! URLEncoder . encode ( name , STRING0 ) . equals ( name ) ) \n { \n - throw new IllegalArgumentException ( STRING1 ) ; \n + throw new IllegalArgumentException ( STRING2 ) ; \n } \n } \n catch ( UnsupportedEncodingException e )", "msg_token": "Re englishing an error message"} {"diff": " public abstract class PanelView extends FrameLayout { \n abortAnimations ( ) ; \n if ( mTracking ) { \n onTrackingStopped ( true COMMENT ) ; SINGLE \n + } \n + if ( mExpanding ) { \n notifyExpandingFinished ( ) ; \n } \n setVisibility ( VISIBLE ) ;", "msg_token": "Fix expanded notifications on lockscreen"} {"diff": " public final class ZWaveNetworkMonitor implements ZWaveEventListener { \n } \n SINGLE \n SINGLE \n - if ( oldestNode == null ) { \n + if ( oldestNode == null || oldestNode . getLastSent ( ) == null ) { \n oldestNode = node ; \n } else if ( node . getLastSent ( ) == null || node . getLastSent ( ) . getTime ( ) < oldestNode . getLastSent ( ) . getTime ( ) ) { \n oldestNode = node ;", "msg_token": "Fix NPE in network monitor"} {"diff": " public class CookieManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removes bad comment from CookieManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final class OperationDistinctUntilChanged { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class OperationDistinctUntilChanged { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed javadoc descriptions in the operator"} {"diff": " public class AnalyticsTrackerNosara extends Tracker { \n predefinedEventProperties . put ( STRING0 , STRING1 ) ; \n break ; \n case OPENED_ACCOUNT_SETTINGS : \n - eventName = STRING2 ; \n + eventName = STRING3 ; \n break ; \n case OPENED_APP_SETTINGS : \n - eventName = STRING4 ; \n + eventName = STRING5 ; \n break ; \n case OPENED_MY_PROFILE : \n - eventName = STRING6 ; \n + eventName = STRING7 ; \n break ; \n case CREATED_ACCOUNT : \n eventName = STRING8 ;", "msg_token": "Fix me analytics names to follow the action at the end convention"} {"diff": " public final class ActivityThread { \n } \n \n private void updateDefaultDensity ( ) { \n - if ( mCurDefaultDisplayDpi != Configuration . DENSITY_DPI_UNDEFINED \n - && mCurDefaultDisplayDpi != DisplayMetrics . DENSITY_DEVICE \n - && ! mDensityCompatMode ) { \n - Slog . i ( TAG , STRING0 \n - + DisplayMetrics . DENSITY_DEVICE + STRING1 \n - + mCurDefaultDisplayDpi ) ; \n - DisplayMetrics . DENSITY_DEVICE = mCurDefaultDisplayDpi ; \n - Bitmap . setDefaultDensity ( DisplayMetrics . DENSITY_DEFAULT ) ; \n + final int densityDpi = mCurDefaultDisplayDpi ; \n + if ( ! mDensityCompatMode \n + && densityDpi != Configuration . DENSITY_DPI_UNDEFINED \n + && densityDpi != DisplayMetrics . DENSITY_DEVICE ) { \n + DisplayMetrics . DENSITY_DEVICE = densityDpi ; \n + Bitmap . setDefaultDensity ( densityDpi ) ; \n } \n }", "msg_token": "Ensure Bitmap getDefaultDensity matches DENSITY_DEVICE"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - class PackageObjectFactory implements ModuleFactory { \n + public class PackageObjectFactory implements ModuleFactory { \n COMMENT \n private static final Log LOG = LogFactory . getLog ( PackageObjectFactory . class ) ; \n \n class PackageObjectFactory implements ModuleFactory { \n COMMENT \n COMMENT \n COMMENT \n - PackageObjectFactory ( Set < String > packageNames , \n + public PackageObjectFactory ( Set < String > packageNames , \n ClassLoader moduleClassLoader ) { \n if ( moduleClassLoader == null ) { \n throw new IllegalArgumentException (", "msg_token": "made PackageObjectFactory public"} {"diff": " public class ContactSipImpl \n COMMENT \n public static String stripScheme ( String from ) \n { \n - int i = from . substring ( NUMBER0 , NUMBER1 ) . indexOf ( STRING0 ) ; \n + if ( from . startsWith ( STRING1 ) ) \n + { \n + return from . substring ( NUMBER2 ) ; \n + } \n + else if ( from . startsWith ( STRING2 ) ) \n + { \n + return from . substring ( NUMBER1 ) ; \n + } \n \n - if ( from . startsWith ( STRING3 ) && i > NUMBER0 ) \n - return from . substring ( i + NUMBER3 ) ; \n return from ; \n }", "msg_token": "Fix an NPE when adding short SIP contacts"} {"diff": " class MonthView extends ViewGroup implements View . OnClickListener { \n protected static final int DEFAULT_MAX_WEEKS = NUMBER0 ; \n protected static final int DEFAULT_MONTH_TILE_HEIGHT = DEFAULT_MAX_WEEKS + NUMBER1 ; \n \n - public interface Callbacks { \n - \n - void onDateClicked ( @ nonnull CalendarDay date , boolean nowSelected ) ; \n - } \n - \n private MaterialCalendarView mcv ; \n \n private final ArrayList < WeekDayView > weekDayViews = new ArrayList < > ( ) ;", "msg_token": "Remove Callbacks from MonthView"} {"diff": " public class ContextMenuAdapter { \n } \n \n public void addItem ( ContextMenuItem item ) { \n - items . add ( item ) ; \n + try { \n + items . add ( item . getPos ( ) , item ) ; \n + } catch ( IndexOutOfBoundsException ex ) { \n + items . add ( item ) ; \n + } \n } \n \n public ContextMenuItem getItem ( int position ) { \n public class ContextMenuItem { \n private int mLayout = INVALID_ID ; \n private boolean mLoading = false ; \n private boolean mIsCategory = false ; \n - private int mPosition = INVALID_ID ; \n + private int mPosition = - NUMBER0 ; \n private String mDescription = null ; \n private ContextMenuAdapter . ItemClickListener mItemClickListener = null ; \n private ContextMenuAdapter . OnIntegerValueChangedListener mIntegerListener = null ;", "msg_token": "Restored context menu items explicit placing facility"} {"diff": " public abstract class ModuleManagerImpl extends ModuleManager implements Project \n @ notnull \n public Module newModule ( @ notnull String filePath , @ notnull final String moduleTypeId , @ nullable final Map < String , String > options ) { \n assertWritable ( ) ; \n - filePath = resolveShortWindowsName ( filePath ) ; \n + filePath = FileUtil . toSystemIndependentName ( resolveShortWindowsName ( filePath ) ) ; \n \n ModuleEx module = getModuleByFilePath ( filePath ) ; \n if ( module == null ) {", "msg_token": "ensure system independent module file path"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public abstract class ConversionHandler implements InvocationHandler { \n + public abstract class ConversionHandler implements InvocationHandler , Serializable { \n private Object delegate ; \n \n COMMENT", "msg_token": "Make ConversionHandler Serializable to match Closure"} {"diff": " public class AntProjectImpl extends AntStructuredElementImpl implements AntProje \n \n protected AntElement [ ] getChildrenInner ( ) { \n if ( ! myInGettingChildren ) { \n - myInGettingChildren = true ; \n - try { \n - final AntElement [ ] children = super . getChildrenInner ( ) ; \n - fixUndefinedElements ( this , children ) ; \n - return children ; \n - } \n - finally { \n - myInGettingChildren = false ; \n - } \n + final AntElement [ ] children = super . getChildrenInner ( ) ; \n + fixUndefinedElements ( this , children ) ; \n + return children ; \n } \n return AntElement . EMPTY_ARRAY ; \n }", "msg_token": "fixing reenterable getChildrenInner"} {"diff": " public class Element { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public final boolean getNegation ( ) { \n + return this . negation ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Element { \n public final boolean isPartOfPhrase ( ) { \n return phraseName != null ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public final boolean getCaseSensitive ( ) { \n + return caseSensitive ; \n + } \n \n COMMENT \n COMMENT", "msg_token": "adding get methods"} {"diff": " class ItemLoader { \n \n @ override \n public void run ( ) { \n + Process . setThreadPriority ( Process . THREAD_PRIORITY_BACKGROUND ) ; \n + \n if ( itemViewReused ( mRequest ) ) { \n return ; \n }", "msg_token": "library Ensure item loading threads have background priority"} {"diff": " public class RecentsView extends FrameLayout implements TaskStackView . TaskStackV \n RecentsActivityLaunchState launchState = Recents . getConfiguration ( ) . getLaunchState ( ) ; \n if ( launchState . launchedViaDragGesture ) { \n setTranslationY ( getMeasuredHeight ( ) ) ; \n + } else { \n + setTranslationY ( FLOAT0 ) ; \n } \n } \n }", "msg_token": "Reset recents translation when launching"} {"diff": " import NAMESPACE ; \n public class Mongo extends DBTCP { \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Mongo ( String dbname ) throws UnknownHostException { \n + super ( new DBAddress ( STRING0 , dbname ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add the default CTOR just specify db name"} {"diff": " public class MutablePackageFragmentDescriptor extends DeclarationDescriptorImpl \n public NamespaceLikeBuilder getBuilder ( ) { \n return builder ; \n } \n - \n - @ override \n - public String toString ( ) { \n - return STRING0 + fqName + STRING1 + module ; \n - } \n } \n public class PackageViewDescriptorImpl extends DeclarationDescriptorImpl impleme \n return result ; \n } \n \n - @ override \n - public String toString ( ) { \n - return DescriptorRenderer . DEBUG_TEXT . render ( this ) ; \n - } \n - \n private class SubpackagesScope extends JetScopeImpl { \n @ notnull \n @ override", "msg_token": "Using default toString"} {"diff": " public class CookieDecoder { \n Set < Cookie > cookies = new TreeSet < Cookie > ( ) ; \n for ( ; i < names . size ( ) ; i ++ ) { \n String name = names . get ( i ) ; \n + SINGLE \n + if ( CookieHeaderNames . HTTPONLY . equalsIgnoreCase ( name ) ) { \n + continue ; \n + } \n + \n String value = values . get ( i ) ; \n if ( value == null ) { \n value = STRING0 ;", "msg_token": "ignore HttpOnly as a cookie name instead of throwing exception"} {"diff": " public class ProxyContainer { \n private String failover ; \n private String playback ; \n \n - public String getUrl ( ) { \n - return url ; \n - } \n - \n public boolean hasUrl ( ) { \n return url != null ; \n } \n public class ProxyContainer { \n return Moco . proxy ( getProxyConfig ( ) , failover ) ; \n } \n \n - return Moco . proxy ( getUrl ( ) , failover ) ; \n + return Moco . proxy ( url , failover ) ; \n } \n \n public static class Builder {", "msg_token": "inlined getUrl in proxy container"} {"diff": " public class EditorHyperlinkSupport { \n ) ; \n } \n \n + @ deprecated \n + public void clearHyperlinks ( ) { } \n + \n @ nullable \n public Runnable getLinkNavigationRunnable ( final LogicalPosition logical ) { \n if ( EditorUtil . inVirtualSpace ( myEditor , logical ) ) {", "msg_token": "restore deprecated EditorHyperlinkSupport clearHyperlinks for broken plugins"} {"diff": " public class WarAnnotationDeploymentProcessor implements DeploymentUnitProcessor \n } \n ClassInfo classInfo = ClassInfo . class . cast ( target ) ; \n filter . setFilterClass ( classInfo . toString ( ) ) ; \n - AnnotationValue nameValue = annotation . value ( STRING0 ) ; \n + AnnotationValue nameValue = annotation . value ( STRING1 ) ; \n if ( nameValue == null || nameValue . asString ( ) . isEmpty ( ) ) { \n filter . setName ( classInfo . toString ( ) ) ; \n } else {", "msg_token": "Fix annotation field name for WebFilter name"} {"diff": " public class UseVirtualFileEqualsInspection extends InternalInspection { \n } \n final PsiExpression lhs = expression . getLOperand ( ) ; \n final PsiExpression rhs = expression . getROperand ( ) ; \n - if ( rhs == null || lhs . textMatches ( PsiKeyword . NULL ) || rhs . textMatches ( PsiKeyword . NULL ) ) { \n + if ( rhs == null || \n + lhs . textMatches ( PsiKeyword . NULL ) || rhs . textMatches ( PsiKeyword . NULL ) || \n + lhs . textMatches ( PsiKeyword . THIS ) || rhs . textMatches ( PsiKeyword . THIS ) ) { \n return ; \n }", "msg_token": "don t fire UseVirtualFileEqualsInspection on comparisons with this"} {"diff": " public class JavaSourceProcessor extends BaseSourceProcessor { \n content , STRING0 + line + STRING0 , \n STRING0 + firstLine + STRING0 + secondLine + STRING0 ) ; \n } \n - else if ( Validator . isNotNull ( \n - getNextLine ( content , lineCount ) ) ) { \n - \n + else if ( Validator . isNotNull ( getNextLine ( content , lineCount ) ) ) { \n return StringUtil . replace ( \n content , STRING0 + line + STRING0 , \n STRING0 + firstLine + STRING0 + secondLine + STRING0 + \n public class JavaSourceProcessor extends BaseSourceProcessor { \n int x = line . indexOf ( StringPool . OPEN_PARENTHESIS ) ; \n \n if ( ( x != - NUMBER0 ) && \n - line . charAt ( x + NUMBER0 ) != CharPool . CLOSE_PARENTHESIS ) { \n + ( line . charAt ( x + NUMBER0 ) != CharPool . CLOSE_PARENTHESIS ) ) { \n \n String secondLineIndent = indent + StringPool . TAB ;", "msg_token": "SourceFormatter source formatting"} {"diff": " interface Node < K , V > extends AccessOrder < Node < K , V > > , WriteOrder < Node < K , V > > { \n \n COMMENT \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n COMMENT \n @ nonnegative \n + @ guardedby ( STRING0 ) \n default int getWeight ( ) { \n throw new UnsupportedOperationException ( ) ; \n } \n \n COMMENT \n @ nonnegative \n + @ guardedby ( STRING0 ) \n default void setWeight ( int weight ) { \n throw new UnsupportedOperationException ( ) ; \n }", "msg_token": "Remove reminder as invalid due to remove blocking"} {"diff": " final class WebSocketUtil { \n COMMENT \n static byte [ ] md5 ( byte [ ] data ) { \n SINGLE \n - return MD5 . get ( ) . digest ( data ) ; \n + return digest ( MD5 , data ) ; \n } \n \n COMMENT \n final class WebSocketUtil { \n COMMENT \n static byte [ ] sha1 ( byte [ ] data ) { \n SINGLE \n - return SHA1 . get ( ) . digest ( data ) ; \n + return digest ( SHA1 , data ) ; \n + } \n + \n + private static byte [ ] digest ( FastThreadLocal < MessageDigest > digestFastThreadLocal , byte [ ] data ) { \n + MessageDigest digest = digestFastThreadLocal . get ( ) ; \n + digest . reset ( ) ; \n + return digest . digest ( data ) ; \n } \n \n COMMENT", "msg_token": "Correctly reset MessageDigest before reusing it"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add license header"} {"diff": " public class HighlighterSearchIT extends ESIntegTestCase { \n } else { \n supportedQueryTypes = MultiMatchQueryBuilder . Type . values ( ) ; \n } \n - MultiMatchQueryBuilder . Type matchQueryType = rarely ( ) ? null : RandomPicks . randomFrom ( getRandom ( ) , supportedQueryTypes ) ; \n + MultiMatchQueryBuilder . Type matchQueryType = RandomPicks . randomFrom ( getRandom ( ) , supportedQueryTypes ) ; \n final MultiMatchQueryBuilder multiMatchQueryBuilder = multiMatchQuery ( STRING0 , STRING1 , STRING2 ) . type ( matchQueryType ) ; \n \n SearchSourceBuilder source = searchSource ( )", "msg_token": "Fix HighlighterSearchIT testMultiMatchQueryHighlight dont use null type"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class GBMTest extends TestUtil { \n try { Thread . sleep ( NUMBER0 ) ; } catch ( Exception ignore ) { } \n \n try { \n + Log . info ( STRING0 ) ; \n fr . delete ( ) ; SINGLE \n Assert . fail ( STRING1 ) ; \n } catch ( IllegalArgumentException ignore ) { \n public class GBMTest extends TestUtil { \n assertTrue ( de . getMessage ( ) . contains ( STRING2 ) ) ; \n } \n \n + Log . info ( STRING3 ) ; \n GBMModel model = gbm . get ( ) ; \n Assert . assertTrue ( gbm . _state == Job . JobState . DONE ) ; SINGLE \n if ( model != null ) model . delete ( ) ;", "msg_token": "Added instrumentation to testModelLock to help pinpoint an intermittent failure"} {"diff": " public class FragmentBuilder < I extends FragmentBuilder < I > > extends Builder { \n args . putBundle ( key , value ) ; \n return ( I ) this ; \n } \n + \n + public Bundle args ( ) { \n + return args ; \n + } \n }", "msg_token": "Expose bundle args of FragmentBuilder"} {"diff": " public abstract class RxRatpack { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Don t test this example for now"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Validator \n if ( a . getClass ( ) != b . getClass ( ) ) { \n throw new TypesDoNotMatchException ( format ( STRING0 , a . getClass ( ) . getName ( ) , b . getClass ( ) . getName ( ) ) ) ; \n } \n - if ( a instanceof Collection && b instanceof Collection ) { \n + if ( ( a instanceof Collection && b instanceof Collection ) || ( a instanceof Map && b instanceof Map ) ) { \n if ( a . equals ( b ) ) { \n return NUMBER0 ; \n }", "msg_token": "Add support for Maps to verifier"} {"diff": " class ProcessClosurePrimitives extends AbstractPostOrderCallback \n maybeInheritsExpr . getFirstChild ( ) . isCall ( ) ) { \n Node callNode = maybeInheritsExpr . getFirstChild ( ) ; \n if ( STRING0 . equals ( \n - callNode . getFirstChild ( ) . getQualifiedName ( ) ) ) { \n - Node base = callNode . getLastChild ( ) ; \n - while ( base . isCast ( ) ) { \n - base = base . getFirstChild ( ) ; \n - } \n - if ( callNode . getLastChild ( ) . isQualifiedName ( ) ) { \n - baseClassNode = callNode . getLastChild ( ) ; \n - } \n + callNode . getFirstChild ( ) . getQualifiedName ( ) ) && \n + callNode . getLastChild ( ) . isQualifiedName ( ) ) { \n + baseClassNode = callNode . getLastChild ( ) ; \n } \n } \n \n class ProcessClosurePrimitives extends AbstractPostOrderCallback \n if ( ! knownClosureSubclasses . contains ( baseContainer ) ) { \n SINGLE \n SINGLE \n - reportBadBaseMethodUse ( t , n , baseContainer , STRING1 + enclosingQname ) ; \n return ; \n }", "msg_token": "Remove debug logging inadventeradly left in"} {"diff": " public class DBAddressTest { \n DBAddress second = new DBAddress ( first , STRING0 ) ; \n assertEquals ( first . getSocketAddress ( ) . hashCode ( ) , second . getSocketAddress ( ) . hashCode ( ) ) ; \n assertEquals ( STRING0 , second . getDBName ( ) ) ; \n - DBAddress third = new DBAddress ( InetAddress . getLocalHost ( ) , NUMBER0 , STRING1 ) ; \n + DBAddress third = new DBAddress ( InetAddress . getByName ( STRING2 ) , NUMBER0 , STRING1 ) ; \n assertEquals ( STRING1 , third . getDBName ( ) ) ; \n \n DBAddress fourth = third . getSister ( STRING3 ) ;", "msg_token": "Replaced InetAddress getLocalHost with InetAddress getByName localhost"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class DaemonDir { \n \n SINGLE \n public File createUniqueLog ( ) { \n - String uid = new UUIDGenerator ( ) . generateId ( ) . toString ( ) ; \n - return new File ( dir , String . format ( STRING0 , uid ) ) ; \n + Long pid = NativeEnvironment . current ( ) . getPid ( ) ; \n + return new File ( dir , String . format ( STRING0 , pid ) ) ; \n } \n \n public List < File > getLogs ( ) {", "msg_token": "Use the PID instead of a UUID in the daemon log file name"} {"diff": " public class FilterListFragment extends ListFragment { \n } ) ; \n \n AstridActivity activity = ( AstridActivity ) getActivity ( ) ; \n - if ( activity . getFragmentLayout ( ) > AstridActivity . LAYOUT_SINGLE ) \n + if ( activity . getFragmentLayout ( ) > AstridActivity . LAYOUT_SINGLE ) { \n + mDualFragments = true ; \n mSelectedIndex = activity . getIntent ( ) . getIntExtra ( TOKEN_LAST_SELECTED , NUMBER0 ) ; \n + } \n onNewIntent ( activity . getIntent ( ) ) ; \n \n if ( mDualFragments ) {", "msg_token": "Fixed a bug where mDualFragments wasn t getting set in filter list fragment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Task < T > extends CompletableFuture < T > \n private static Void NIL = null ; \n \n private static Executor commonPool = ExecutorUtils . newScalingThreadPool ( NUMBER0 ) ; \n - private static ScheduledExecutorService schedulerExecutor = Executors . newScheduledThreadPool ( NUMBER1 ) ; \n + private static ScheduledExecutorService schedulerExecutor = new ScheduledThreadPoolExecutor ( NUMBER1 , runnable - > { \n + Thread thread = Executors . defaultThreadFactory ( ) . newThread ( runnable ) ; \n + thread . setDaemon ( true ) ; \n + return thread ; \n + } ) ; \n \n SINGLE \n SINGLE", "msg_token": "ScheduledExecutorService in Task prevents clean JVM shutdown"} {"diff": " public class Solo { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Corrected pressMenuItem javadoc"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class HomeActivity extends Activity { \n COMMENT \n public class HomeActivity extends Activity { \n intent . putExtra ( Intent . EXTRA_TEXT , STRING0 ) ; \n return Intent . createChooser ( intent , STRING1 ) ; \n } \n - \n - private class ExampleAction implements Action { \n - \n - @ override \n - public int getDrawable ( ) { \n - return R . drawable . ic_title_export_default ; \n - } \n - \n - @ override \n - public void performAction ( ) { \n - Toast . makeText ( HomeActivity . this , \n - STRING2 , Toast . LENGTH_SHORT ) . show ( ) ; \n - } \n - \n - } \n }", "msg_token": "Removed unused code"} {"diff": " public abstract class MediaplayerActivity extends AppCompatActivity implements O \n } \n } \n \n - @ override \n - protected void onDestroy ( ) { \n - super . onDestroy ( ) ; \n - Log . d ( TAG , STRING0 ) ; \n - } \n - \n @ targetapi ( Build . VERSION_CODES . ICE_CREAM_SANDWICH ) \n @ override \n public void onTrimMemory ( int level ) { \n public class CoverFragment extends Fragment implements \n @ override \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n - setRetainInstance ( true ) ; \n Bundle args = getArguments ( ) ; \n if ( args != null ) { \n media = args . getParcelable ( ARG_PLAYABLE ) ;", "msg_token": "Don t retain cover fragment"} {"diff": " public class Bubble extends RelativeLayout { \n @ override \n public void onPageLoaded ( ContentView . PageLoadInfo info ) { \n removeView ( mProgressBar ) ; \n - setBackgroundResource ( R . drawable . circle_yellow ) ; \n + setBackgroundResource ( R . drawable . circle_grey ) ; \n \n int halfImageWidth ; \n int halfImageHeight ;", "msg_token": "Always use the grey bubble background"} {"diff": " public class TokenServicesUserApprovalHandler implements UserApprovalHandler , In \n StringBuilder builder = new StringBuilder ( STRING0 ) ; \n builder . append ( STRING1 + authorizationRequest . getClientId ( ) ) ; \n builder . append ( STRING2 + authorizationRequest . getScope ( ) ) ; \n - builder . append ( STRING3 + userAuthentication . getName ( ) ) ; \n + builder . append ( STRING4 + userAuthentication . getName ( ) ) ; \n logger . debug ( builder . toString ( ) ) ; \n }", "msg_token": "Fix format of debug log"} {"diff": " public abstract class AsynchronousProcessor implements CometSupport < AtmosphereRe \n cancelled ( req , aliveRequests . get ( req ) . getResponse ( ) ) ; \n req . setAttribute ( MAX_INACTIVE , ( long ) - NUMBER0 ) ; \n } catch ( IOException e ) { \n + logger . trace ( STRING0 , e ) ; \n } catch ( ServletException e ) { \n + logger . trace ( STRING0 , e ) ; \n } \n } \n } \n public abstract class AsynchronousProcessor implements CometSupport < AtmosphereRe \n COMMENT \n COMMENT \n COMMENT \n - public Action cancelled ( HttpServletRequest req , HttpServletResponse res ) \n + public synchronized Action cancelled ( HttpServletRequest req , HttpServletResponse res ) \n throws IOException , ServletException { \n \n AtmosphereResourceImpl re = null ;", "msg_token": "Synchronize the cancel operation to revent the scheduler and the container entering the method at the same time"} {"diff": " public class Http2StreamSourceChannel extends AbstractHttp2StreamSourceChannel { \n public long transferTo ( long count , ByteBuffer throughBuffer , StreamSinkChannel streamSinkChannel ) throws IOException { \n handleNewHeaders ( ) ; \n long read = super . transferTo ( count , throughBuffer , streamSinkChannel ) ; \n - updateFlowControlWindow ( ( int ) read ) ; \n + updateFlowControlWindow ( ( int ) read + throughBuffer . remaining ( ) ) ; \n return read ; \n } \n \n public class SpdyStreamStreamSourceChannel extends SpdyStreamSourceChannel { \n public long transferTo ( long count , ByteBuffer throughBuffer , StreamSinkChannel streamSinkChannel ) throws IOException { \n handleNewHeaders ( ) ; \n long read = super . transferTo ( count , throughBuffer , streamSinkChannel ) ; \n - updateFlowControlWindow ( ( int ) read ) ; \n + updateFlowControlWindow ( ( int ) read + throughBuffer . remaining ( ) ) ; \n return read ; \n }", "msg_token": "Take throughBuffer into account for flow control calculations"} {"diff": " public class Wallet extends BaseTaggableObject implements BlockChainListener , Pe \n final KeyCrypter crypter = keychain . getKeyCrypter ( ) ; \n if ( crypter != null ) \n builder . append ( String . format ( STRING0 , crypter ) ) ; \n + if ( isWatching ( ) ) \n + builder . append ( STRING1 ) ; \n \n SINGLE \n builder . append ( STRING2 ) ;", "msg_token": "If wallet is watching mention this in the dump"} {"diff": " public class AxesRenderer { \n } \n \n private void drawAxisLabelsAndName ( Canvas canvas , Axis axis , int position ) { \n - float labelX , labelY , nameX , nameY ; \n - labelX = labelY = nameX = nameY = NUMBER0 ; \n + float labelX , labelY ; \n + labelX = labelY = NUMBER0 ; \n boolean isAxisVertical = isAxisVertical ( position ) ; \n if ( LEFT == position || RIGHT == position ) { \n labelX = labelBaselineTab [ position ] ;", "msg_token": "Removed unused variables"} {"diff": " public final class SharedPreferencesEx implements SharedPreferences { \n private long mFileSize ; \n \n private static int cTryMaxCount = NUMBER0 ; \n - private static int cTryWaitMs = NUMBER1 ; \n + private static int cTryWaitMs = NUMBER2 ; \n \n public SharedPreferencesEx ( File prefFile ) { \n mFile = prefFile ;", "msg_token": "Restore last know good retry values"} {"diff": " public class DefaultAuditDao implements AuditDao { \n \n @ override \n public List < AuditLog > getAuditLogsForRecordId ( final TableName tableName , final UUID objectId ) { \n - final Long recordId = auditSqlDao . getRecordIdForTable ( tableName , objectId . toString ( ) ) ; \n + final Long recordId = auditSqlDao . getRecordIdForTable ( tableName . getTableName ( ) . toLowerCase ( ) , objectId . toString ( ) ) ; \n if ( recordId == null ) { \n return ImmutableList . < AuditLog > of ( ) ; \n } else { \n public interface AuditSqlDao { \n public Long getRecordId ( @ bind ( STRING0 ) final String id ) ; \n \n @ sqlquery \n - public Long getRecordIdForTable ( @ define ( STRING1 ) final TableName tableName , \n + public Long getRecordIdForTable ( @ define ( STRING1 ) final String tableName , \n @ bind ( STRING0 ) final String id ) ; \n \n @ sqlquery", "msg_token": "enforce the table name to be lower case"} {"diff": " import static NAMESPACE ; \n \n @ runwith ( PowerMockRunner . class ) \n @ preparefortest ( WrapperSetupHelper . class ) \n - @ powermockignore ( { STRING0 , STRING1 } ) \n + @ powermockignore ( STRING2 ) \n public class WrapperSetupHelperTest extends AbstractTest { \n \n @ test", "msg_token": "Revert recent change to WrapperSetupHelperTest"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NotebookServer extends WebSocketServlet \n Map < String , Object > config = ( Map < String , Object > ) fromMessage . get ( STRING0 ) ; \n p . setConfig ( config ) ; \n \n - SINGLE \n + SINGLE \n boolean isTheLastParagraph = note . isLastParagraph ( p . getId ( ) ) ; \n - if ( isTheLastParagraph ) { \n + if ( ! ( text . trim ( ) . equals ( p . getMagic ( ) ) || \n + Strings . isNullOrEmpty ( text ) ) && \n + isTheLastParagraph ) { \n Paragraph newPara = note . addParagraph ( subject ) ; \n broadcastNewParagraph ( note , newPara ) ; \n }", "msg_token": "DON T create new para when run all paragraphs"} {"diff": " public abstract class GrammaticalStructure extends TreeGraph { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n if ( includeExtras ) { \n - getExtras ( tdl ) ; \n getTreeDeps ( root ( ) , tdl , new NoPunctTypedDependencyFilter ( puncFilter ) , extraTreeDepFilter ( ) ) ; \n } \n collapseDependencies ( tdl , false , includeExtras ) ; \n public abstract class GrammaticalStructure extends TreeGraph { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n if ( includeExtras ) { \n - getExtras ( tdl ) ; \n getTreeDeps ( root ( ) , tdl , new NoPunctTypedDependencyFilter ( puncFilter ) , extraTreeDepFilter ( ) ) ; \n } \n collapseDependencies ( tdl , true , includeExtras ) ;", "msg_token": "pending kenneth s modification to KenLM interface"} {"diff": " public class ValueAnimator extends Animator { \n SINGLE \n SINGLE \n if ( callAgain && ( ! sAnimations . isEmpty ( ) || ! sDelayedAnims . isEmpty ( ) ) ) { \n - sendEmptyMessageDelayed ( ANIMATION_FRAME , Math . max ( NUMBER0 , sFrameDelay - \n - - ( AnimationUtils . currentAnimationTimeMillis ( ) - currentTime ) ) ) ; \n + sendEmptyMessageDelayed ( ANIMATION_FRAME , Math . max ( NUMBER0 , sFrameDelay - \n + ( AnimationUtils . currentAnimationTimeMillis ( ) - currentTime ) ) ) ; \n } \n break ; \n }", "msg_token": "Remove errant minus sign"} {"diff": " public class PyParameterListImpl extends PyBaseElementImpl < PyParameterListStub > \n if ( nextParameter . isKeywordContainer ( ) || nextParameter . isPositionalContainer ( ) ) { \n ++ i ; \n } \n - if ( nextParameter . isKeywordContainer ( ) && j < anotherParametersLength && anotherParameters [ j ] instanceof PyNamedParameter ) { \n + while ( nextParameter . isKeywordContainer ( ) && j < anotherParametersLength && anotherParameters [ j ] . hasDefaultValue ( ) ) { \n j ++ ; \n } \n } \n public class PyParameterListImpl extends PyBaseElementImpl < PyParameterListStub > \n if ( nextParameter . isKeywordContainer ( ) || nextParameter . isPositionalContainer ( ) ) { \n ++ j ; \n } \n - if ( nextParameter . isKeywordContainer ( ) && i < parametersLength && parameters [ i ] instanceof PyNamedParameter ) { \n + while ( nextParameter . isKeywordContainer ( ) && i < parametersLength && parameters [ i ] . hasDefaultValue ( ) ) { \n i ++ ; \n } \n }", "msg_token": "fixed broken test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HitchhikerMocks { \n put ( CountAggFunction . COUNT_ROWS_NAME , new CountAggFunction ( ) ) ; \n put ( CountAggFunction . NAME , new CountAggFunction ( ) ) ; \n put ( MinAggFunction . NAME , new MinAggFunction ( ) ) ; \n + put ( MaxAggFunction . NAME , new MaxAggFunction ( ) ) ; \n } } ; \n public static Map < DataType , SQLType > sqlTypes = new HashMap < DataType , SQLType > ( ) { { \n put ( DataType . BOOLEAN , new BooleanSQLType ( ) ) ;", "msg_token": "add max agg function to stubs helper"} {"diff": " import NAMESPACE ; \n public class PythonProcessHandler extends KillableColoredProcessHandler { \n public static final boolean SOFT_KILL_ON_WIN = Registry . get ( STRING0 ) . asBoolean ( ) ; \n \n - protected PythonProcessHandler ( @ notnull GeneralCommandLine commandLine ) throws ExecutionException { \n + public PythonProcessHandler ( @ notnull GeneralCommandLine commandLine ) throws ExecutionException { \n this ( commandLine , SOFT_KILL_ON_WIN ) ; \n }", "msg_token": "Change constructor visibility"} {"diff": " public class InternalFlatFileRealmIT \n { \n assertThat ( e . getMessage ( ) , containsString ( \n STRING0 ) ) ; \n - assertThat ( e . getMessage ( ) , containsString ( STRING1 ) ) ; \n + File authFile = new File ( STRING2 ) ; \n + assertThat ( e . getMessage ( ) , containsString ( STRING3 + authFile ) ) ; \n assertThat ( e . getMessage ( ) , containsString ( STRING4 ) ) ; \n } \n }", "msg_token": "Fix broken test on windows"} {"diff": " public class KeyguardUpdateMonitor { \n } \n \n if ( ! pluggedIn ) { \n - SINGLE \n - if ( batteryLevel < LOW_BATTERY_THRESHOLD \n - && mBatteryLevel >= LOW_BATTERY_THRESHOLD ) { \n - return true ; \n - } \n - SINGLE \n - if ( mBatteryLevel < LOW_BATTERY_THRESHOLD \n - && batteryLevel >= LOW_BATTERY_THRESHOLD ) { \n + SINGLE \n + if ( batteryLevel < LOW_BATTERY_THRESHOLD && batteryLevel != mBatteryLevel ) { \n return true ; \n } \n }", "msg_token": "always update the battery status when it s below the threshold"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class IQvCardHandler extends IQHandler { \n User user = userManager . getUser ( recipient . getName ( ) ) ; \n result = packet . createResult ( ) ; \n \n - XMPPDOMFragment frag = new XMPPDOMFragment ( ) ; \n + Element vcard = DocumentHelper . createElement ( QName . get ( STRING0 , STRING1 ) ) ; \n + XMPPDOMFragment frag = new XMPPDOMFragment ( vcard ) ; \n result . setChildFragment ( frag ) ; \n \n - Element vcard = frag . getRootElement ( ) . addElement ( STRING0 , STRING1 ) ; \n Iterator names = user . getVCardPropertyNames ( ) ; \n while ( names . hasNext ( ) ) { \n String name = ( String ) names . next ( ) ;", "msg_token": "Fixed incorrect wrapping of vCard element"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fixing import optimisation on Type caused compilation failure"} {"diff": " public interface TypeDescription extends TypeDefinition , ByteCodeElement , TypeVa \n protected void apply ( StringBuilder stringBuilder , TypeDescription typeDescription , Generic ownerType ) { \n stringBuilder . append ( STRING0 ) ; \n stringBuilder . append ( ownerType . getSort ( ) . isParameterized ( ) \n - ? typeDescription . getName ( ) . substring ( ownerType . asErasure ( ) . getName ( ) . length ( ) + NUMBER0 ) SINGLE \n + ? typeDescription . getName ( ) . substring ( ownerType . asErasure ( ) . getName ( ) . length ( ) + NUMBER0 ) \n : typeDescription . getName ( ) ) ; \n } \n } ,", "msg_token": "Removed obsolete todo comment"} {"diff": " class OptimizeParameters \n return false ; \n } \n \n + SINGLE \n + SINGLE \n + Node lValue = definition . getLValue ( ) ; \n + if ( lValue . matchesQualifiedName ( STRING0 ) \n + || lValue . matchesQualifiedName ( STRING1 ) ) { \n + return false ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Adds a check in OptimizeParameters to prevent modifications to jscomp inherits so it is still detectable by CodingConventions"} {"diff": " public class HttpRequest { \n COMMENT \n COMMENT \n COMMENT \n - protected HttpRequestException ( final IOException cause ) { \n + protected HttpRequestException ( final Throwable cause ) { \n super ( cause ) ; \n } \n \n public class HttpRequest { \n COMMENT \n COMMENT \n public int code ( ) throws HttpRequestException { \n - try { \n - closeOutput ( ) ; \n - return connection . getResponseCode ( ) ; \n - } catch ( IOException e ) { \n - throw new HttpRequestException ( e ) ; \n - } \n + try { \n + closeOutput ( ) ; \n + return connection . getResponseCode ( ) ; \n + } catch ( IOException e ) { \n + throw new HttpRequestException ( e ) ; \n + } catch ( NullPointerException e ) { SINGLE \n + throw new HttpRequestException ( e ) ; \n + } \n } \n \n COMMENT", "msg_token": "Added a check for NullPointer Exception in getCode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PsiElementRenameHandler implements RenameHandler { \n if ( element instanceof XmlTag && ! ( ( ( XmlTag ) element ) . getMetaData ( ) instanceof PsiWritableMetaData ) || \n ! ( element instanceof PsiNamedElement || element instanceof XmlAttributeValue ) ) { \n String message = RefactoringBundle . getCannotRefactorMessage ( RefactoringBundle . message ( STRING0 ) ) ; \n - CommonRefactoringUtil . showErrorMessage ( REFACTORING_NAME , message , null , project ) ; \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + CommonRefactoringUtil . showErrorMessage ( REFACTORING_NAME , message , null , project ) ; \n + } \n return false ; \n }", "msg_token": "test called method to show dialog"} {"diff": " public class GreedoLayoutSizeCalculator { \n } \n \n private static final int DEFAULT_MAX_ROW_HEIGHT = NUMBER0 ; \n - private static int mMaxRowHeight = DEFAULT_MAX_ROW_HEIGHT ; \n + private int mMaxRowHeight = DEFAULT_MAX_ROW_HEIGHT ; \n \n private static final int INVALID_CONTENT_WIDTH = - NUMBER1 ; \n private int mContentWidth = INVALID_CONTENT_WIDTH ;", "msg_token": "Remove static from mMaxRowHeight"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused import from Operation"} {"diff": " public class AsyncQueryForwardingServlet extends HttpServlet \n @ override \n protected void doPost ( final HttpServletRequest req , final HttpServletResponse res ) throws ServletException , IOException \n { \n - final String id = req . getHeader ( STRING0 ) ; \n - log . info ( STRING1 , id ) ; \n - \n final long start = System . currentTimeMillis ( ) ; \n final boolean isSmile = QueryResource . APPLICATION_SMILE . equals ( req . getContentType ( ) ) ; \n final ObjectMapper objectMapper = isSmile ? smileMapper : jsonMapper ;", "msg_token": "remove debug code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class GrailsUtil { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n STRING4 , \n STRING5 , \n STRING6", "msg_token": "exclude agent from stack traces"} {"diff": " public class ConnectPlugin extends Plugin { \n } \n \n public JSONObject getResponse ( ) { \n - String response = STRING0 + \n - STRING1 + ( facebook . isSessionValid ( ) ? STRING2 : STRING3 ) + STRING4 + \n + String response ; \n + if ( facebook . isSessionValid ( ) ) { \n + response = STRING0 + \n + STRING5 + \n STRING6 + \n STRING7 + facebook . getAccessToken ( ) + STRING4 + \n STRING8 + facebook . getAccessExpires ( ) + STRING4 + \n public class ConnectPlugin extends Plugin { \n STRING9 + this . userId + STRING10 + \n STRING11 + \n STRING11 ; \n + } else { \n + response = STRING0 + \n + STRING12 + \n + STRING11 ; \n + } \n \n try { \n return new JSONObject ( response ) ;", "msg_token": "Do not send authResponse if user not connected"} {"diff": " public class SqlSessionManager implements SqlSessionFactory , SqlSession { \n this . localSqlSession . set ( openSession ( execType , connection ) ) ; \n } \n \n + public boolean isManagedSessionStarted ( ) { \n + return this . localSqlSession . get ( ) != null ; \n + } \n + \n public SqlSession openSession ( ) { \n return sqlSessionFactory . openSession ( ) ; \n }", "msg_token": "Add a method to check if there is an active managed Session"} {"diff": " public final class Telephony { \n public static final String SENT_TIME = STRING0 ; \n } \n \n + public static final class ScrapSpace { \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final Uri CONTENT_URI = Uri . parse ( STRING1 ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String SCRAP_FILE_PATH = STRING2 ; \n + } \n + \n public static final class Intents { \n private Intents ( ) { \n SINGLE", "msg_token": "add definition for Mms TempStorage content uri and filename"} {"diff": " public class WebFilter implements Filter { \n \n if ( ignoreTimeout ) { \n log ( STRING0 + session . getId ( ) + STRING1 ) ; \n + getClusterMap ( ) . remove ( session . getId ( ) ) ; \n } else { \n final long maxInactive = session . originalSession . getMaxInactiveInterval ( ) * NUMBER0 ; SINGLE \n final long clusterLastAccess = session . getLastAccessed ( ) ;", "msg_token": "Forgot the important bit"} {"diff": " public class PagerTitleStrip extends ViewGroup implements ViewPager . Decor { \n if ( mScrollState == ViewPager . SCROLL_STATE_IDLE ) { \n SINGLE \n updateText ( mPager . getCurrentItem ( ) , mPager . getAdapter ( ) ) ; \n + \n + final float offset = mLastKnownPositionOffset >= NUMBER0 ? mLastKnownPositionOffset : NUMBER0 ; \n + updateTextPositions ( mPager . getCurrentItem ( ) , offset , true ) ; \n } \n } \n \n public class PagerTitleStrip extends ViewGroup implements ViewPager . Decor { \n @ override \n public void onChanged ( ) { \n updateText ( mPager . getCurrentItem ( ) , mPager . getAdapter ( ) ) ; \n + \n + final float offset = mLastKnownPositionOffset >= NUMBER0 ? mLastKnownPositionOffset : NUMBER0 ; \n + updateTextPositions ( mPager . getCurrentItem ( ) , offset , true ) ; \n } \n } \n }", "msg_token": "Fix an issue with text clipping in PagerTitleStrip on adapter change"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ functionalinterface \n public interface Parser { \n \n Tree < Token > parse ( String text , int index ) ; \n - \n + \n }", "msg_token": "Added a link to a stackoverflow post about the difference of parse trees and abstract syntax trees"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed the javadoc of RangeSet"} {"diff": " public class AccountHeaderBuilder { \n \n boolean consumed = false ; \n if ( mOnAccountHeaderProfileImageListener != null ) { \n - consumed = mOnAccountHeaderProfileImageListener . onProfileImageClick ( v , profile , true ) ; \n + consumed = mOnAccountHeaderProfileImageListener . onProfileImageClick ( v , profile , current ) ; \n } \n \n SINGLE", "msg_token": "return correct profile selected state"} {"diff": " public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea \n public float [ ] valid_hitratio ; SINGLE \n \n SINGLE \n - public double train_mse = Double . POSITIVE_INFINITY ; \n - public double valid_mse = Double . POSITIVE_INFINITY ; \n + public double train_mse = Double . NaN ; \n + public double valid_mse = Double . NaN ; \n public double train_r2 = Double . NaN ; \n public double valid_r2 = Double . NaN ;", "msg_token": "Set DL train valid MSE to NaN initially instead of Infinity"} {"diff": " public class FileTrustStoreSslSocketFactoryTests { \n final ClassPathResource resource = new ClassPathResource ( STRING0 ) ; \n final FileTrustStoreSslSocketFactory factory = new FileTrustStoreSslSocketFactory ( resource . getFile ( ) , STRING1 ) ; \n final SimpleHttpClient client = new SimpleHttpClient ( factory ) ; \n - assertTrue ( client . isValidEndPoint ( STRING2 ) ) ; \n + assertTrue ( client . isValidEndPoint ( STRING3 ) ) ; \n }", "msg_token": "revert wrong change on cert tests"} {"diff": " public class DeployCommandDialog extends JDialog implements ActionListener { \n if ( ! name . trim ( ) . isEmpty ( ) ) builder . append ( STRING0 ) . append ( name ) ; \n \n String runtimeName = runtimeNameField . getText ( ) ; \n - if ( ! runtimeName . trim ( ) . isEmpty ( ) ) builder . append ( STRING1 ) . append ( runtimeName ) ; \n + if ( ! runtimeName . trim ( ) . isEmpty ( ) ) builder . append ( STRING2 ) . append ( runtimeName ) ; \n \n if ( forceCheckBox . isSelected ( ) ) builder . append ( STRING3 ) ; \n if ( disabledCheckBox . isSelected ( ) && disabledCheckBox . isEnabled ( ) ) builder . append ( STRING4 ) ;", "msg_token": "Fix runtime name argument"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n public class IdeErrorMessages { \n MAP . put ( TYPE_MISMATCH , STRING0 , RENDER_TYPE , RENDER_TYPE ) ; \n \n MAP . put ( WRONG_SETTER_PARAMETER_TYPE , STRING1 + \n - STRING2 , RENDER_TYPE , RENDER_TYPE ) ; \n + STRING3 , RENDER_TYPE , RENDER_TYPE ) ; \n MAP . put ( WRONG_GETTER_RETURN_TYPE , STRING4 + \n - STRING2 , RENDER_TYPE , RENDER_TYPE ) ; \n + STRING3 , RENDER_TYPE , RENDER_TYPE ) ; \n + \n + MAP . put ( UPPER_BOUND_VIOLATED , STRING5 + \n + STRING3 , RENDER_TYPE , RENDER_TYPE ) ; \n \n MAP . setImmutable ( ) ; \n }", "msg_token": "Added IDE error message for UPPER_BOUND_VIOLATED"} {"diff": " import NAMESPACE ; \n COMMENT \n @ deprecated ( ) \n public class DefinitionsSearch extends ExtensibleQueryFactory < PsiElement , PsiElement > { \n - public static ExtensionPointName < QueryExecutor > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n + public static final ExtensionPointName < QueryExecutor > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n public static DefinitionsSearch INSTANCE = new DefinitionsSearch ( ) ; \n \n public static Query < PsiElement > search ( PsiElement definitionsOf ) {", "msg_token": "add final to EP_NAME"} {"diff": " public class JavaBuild { \n Runtime . getRuntime ( ) . exec ( new String [ ] { STRING0 , STRING1 , stubPath } ) ; \n } \n COMMENT \n + } else if ( exportPlatform == PConstants . LINUX ) { \n + Base . copyDirNative ( Base . getJavaHome ( ) , new File ( destFolder , STRING2 ) ) ; \n + \n + } else if ( exportPlatform == PConstants . WINDOWS ) { \n + Base . copyDir ( Base . getJavaHome ( ) , new File ( destFolder , STRING2 ) ) ; \n }", "msg_token": "add embedding for the JRE"} {"diff": " public class WebView extends AbsoluteLayout \n if ( mSelectingText ) { \n SINGLE \n if ( ! nativeHitSelection ( contentX , contentY ) ) { \n + if ( mMapTrackballToArrowKeys ) { SINGLE \n + copySelection ( ) ; \n + } \n selectionDone ( ) ; \n } \n break ;", "msg_token": "DO NOT MERGE copy on tapping outside of selected text in gmail"} {"diff": " public class WalletTool { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n - STRING4 + \n + STRING5 + \n STRING6 + \n + STRING7 + \n STRING8 + \n STRING9 + \n STRING10 +", "msg_token": "Slightly improve wallet tool help text"} {"diff": " class ChangeCollector { \n COMMENT \n private void collectDiffChanges ( ) throws VcsException { \n GitSimpleHandler handler = new GitSimpleHandler ( myProject , myVcsRoot , STRING0 ) ; \n - handler . addParameters ( STRING1 , STRING2 , STRING3 , STRING4 ) ; \n + handler . addParameters ( STRING1 , STRING5 , STRING3 , STRING4 ) ; \n handler . setNoSSH ( true ) ; \n handler . setSilent ( true ) ; \n handler . endOptions ( ) ;", "msg_token": "fixed bug with detecting changes with copied files"} {"diff": " public class OverviewFragment extends SherlockFragment implements OnTraktActionC \n \n @ override \n public void onTraktActionComplete ( boolean wasSuccessfull ) { \n - SINGLE \n - onLoadEpisode ( ) ; \n - onUpdateSeasons ( ) ; \n + if ( isAdded ( ) ) { \n + SINGLE \n + onLoadEpisode ( ) ; \n + onUpdateSeasons ( ) ; \n + } \n } \n \n @ override \n public void onFlagCompleted ( FlagAction action , int showId , int itemId , boolean isSuccessful ) { \n - if ( isSuccessful ) { \n + if ( isSuccessful && isAdded ( ) ) { \n SINGLE \n onLoadEpisode ( ) ; \n onUpdateSeasons ( ) ;", "msg_token": "Fix crash if overview fragment is not attached but wants to update"} {"diff": " package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class App {", "msg_token": "Improve Decorator Javadoc"} {"diff": " public class CoyoteAdapter implements Adapter { \n if ( ! request . isAsync ( ) && ! comet ) { \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n Context ctxt = ( Context ) request . getMappingData ( ) . context ; \n if ( ctxt != null ) {", "msg_token": "Fix comment typo"} {"diff": " public final class RemoteConnection { \n record . getHandler ( ) . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - callback . onPostDialWait ( connection , String . valueOf ( nextChar ) ) ; \n + callback . onPostDialChar ( connection , nextChar ) ; \n } \n } ) ; \n }", "msg_token": "Fix post dial for remote connections"} {"diff": " public final class ColumnFamilyStore implements ColumnFamilyStoreMBean \n if ( compactionFileLocation == null ) \n { \n SSTableReader maxFile = getMaxSizeFile ( sstables ) ; \n - sstables . remove ( maxFile ) ; \n - return doFileCompaction ( sstables ) ; \n + List < SSTableReader > smallerSSTables = new ArrayList < SSTableReader > ( sstables ) ; \n + smallerSSTables . remove ( maxFile ) ; \n + return doFileCompaction ( smallerSSTables ) ; \n } \n \n long startTime = System . currentTimeMillis ( ) ;", "msg_token": "create new collection when reducing the number of sstables compacted the lists returned by subList are unmodifiable"} {"diff": " public class RemoteCommand extends AdHocCommand { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RemoteCommand extends AdHocCommand { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typos and closing javadoc tag in RemoteCommand"} {"diff": " public class K2JsCliTest extends CliBaseTest { \n \n Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING0 ) . isFile ( ) ) ; \n Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING1 ) . isFile ( ) ) ; \n - Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING2 ) . isFile ( ) ) ; \n + Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING3 ) . isFile ( ) ) ; \n } \n \n @ test \n public class K2JsCliTest extends CliBaseTest { \n executeCompilerCompareOutputJS ( ) ; \n \n Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING1 ) . isFile ( ) ) ; \n - Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING2 ) . isFile ( ) ) ; \n + Assert . assertTrue ( new File ( tmpdir . getTmpDir ( ) , STRING3 ) . isFile ( ) ) ; \n } \n \n @ test", "msg_token": "fix test data for K2JsCliTest"} {"diff": " static public Var var ( String ns , String name ) { \n return Var . intern ( Namespace . findOrCreate ( Symbol . intern ( null , ns ) ) , Symbol . intern ( null , name ) ) ; \n } \n \n - static void loadResourceScript ( String name ) throws Exception { \n + public static void loadResourceScript ( String name ) throws Exception { \n try \n { \n Var . pushThreadBindings ( RT . map ( Compiler . SOURCE_PATH , name ,", "msg_token": "made loadResourceScript public"} {"diff": " public class DefaultPlatformManager implements PlatformManagerInternal , ModuleRe \n } \n \n @ override \n + public URL getResource ( String name ) { \n + URL url = findResource ( name ) ; \n + if ( url == null ) { \n + url = super . getResource ( name ) ; \n + } \n + return url ; \n + } \n + \n + @ override \n public Enumeration < URL > getResources ( String name ) throws IOException { \n List < URL > resources = new ArrayList < > ( Collections . list ( findResources ( name ) ) ) ; \n if ( parent != null ) {", "msg_token": "Override getResource in ModJSONClassLoader to behave the same as getResources"} {"diff": " public class TapZoneMap { \n return option != null ? option . getValue ( ) : null ; \n } \n \n + COMMENT \n + public String getActionByCoordinates ( float x , float y , Tap tap ) { \n + final int width = myWidth . getValue ( ) ; \n + final int height = myHeight . getValue ( ) ; \n + return getActionByZone ( \n + Math . max ( NUMBER0 , Math . min ( width , ( int ) width * x ) ) , \n + Math . max ( NUMBER0 , Math . min ( height , ( int ) height * y ) ) , \n + tap \n + ) ; \n + } \n + \n private ZLStringOption getOptionByZone ( Zone zone , Tap tap ) { \n switch ( tap ) { \n default :", "msg_token": "new method will be used in PDF plugin"} {"diff": " public class PropertyInjectTest extends CamelBlueprintTestSupport { \n \n @ test \n public void testPropertyInject ( ) throws Exception { \n + if ( isPlatform ( STRING0 ) ) { \n + SINGLE \n + Thread . sleep ( NUMBER0 ) ; \n + } \n + \n getMockEndpoint ( STRING1 ) . expectedBodiesReceived ( STRING2 ) ; \n \n template . sendBody ( STRING3 , STRING4 ) ; \n public class ManagedEndpointInjectRefEndpointTest extends CamelBlueprintTestSupp \n if ( isPlatform ( STRING5 ) ) { \n return ; \n } \n + SINGLE \n + if ( isPlatform ( STRING0 ) ) { \n + return ; \n + } \n \n SINGLE \n getMockEndpoint ( STRING1 ) . expectedMessageCount ( NUMBER1 ) ;", "msg_token": "Skip and fixed test on windows"} {"diff": " public class ExtractMethodObjectHandler implements RefactoringActionHandler { \n \n final ExtractMethodObjectProcessor processor = new ExtractMethodObjectProcessor ( project , editor , elements , STRING0 ) ; \n final ExtractMethodObjectProcessor . MyExtractMethodProcessor extractProcessor = processor . getExtractProcessor ( ) ; \n + if ( ! CommonRefactoringUtil . checkReadOnlyStatus ( project , extractProcessor . getTargetClass ( ) . getContainingFile ( ) ) ) return ; \n try { \n if ( ! extractProcessor . prepare ( ) ) return ; \n }", "msg_token": "add read only status check"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n public class InlineMethodProcessor extends BaseRefactoringProcessor { \n private static final Logger LOG = Logger . getInstance ( STRING0 ) ; \n \n public class InlineMethodProcessor extends BaseRefactoringProcessor { \n LOG . debug ( controlFlow . toString ( ) ) ; \n } \n \n - Instruction [ ] instructions = controlFlow . getInstructions ( ) ; \n + Instruction [ ] instructions = controlFlow . getInstructions ( ) . clone ( ) ; \n \n SINGLE \n for ( PsiReturnStatement aReturn : returns ) {", "msg_token": "avoid CF overwriting"} {"diff": " public class InternalEngineIntegrationTest extends ElasticsearchIntegrationTest \n \n private void assertTotalCompoundSegments ( int i , int t , String index ) { \n IndicesSegmentResponse indicesSegmentResponse = client ( ) . admin ( ) . indices ( ) . prepareSegments ( index ) . get ( ) ; \n + assertNotNull ( STRING0 , indicesSegmentResponse . getIndices ( ) ) ; \n IndexSegments indexSegments = indicesSegmentResponse . getIndices ( ) . get ( index ) ; \n assertNotNull ( indexSegments ) ; \n assertNotNull ( indexSegments . getShards ( ) ) ;", "msg_token": "TEST Add an assert for null indices in InternalEngineIntegrationTest"} {"diff": " public interface AuthenticationProvider { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TargetObject implements ITargetObject { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public String publicMakeLowerCase ( String input ) { \n return this . makeLowerCase ( input ) ;", "msg_token": "Remove ancient code formatter artifacts"} {"diff": " public class FeedHandlerTest extends AndroidTestCase { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 , \n STRING4 , \n STRING5 , \n STRING6 ,", "msg_token": "Removed obsolete feeds"} {"diff": " public class ImapStore extends Store { \n \n List < ImapResponse > responses = \n executeSimpleCommand ( \n - String . format ( STRING0 , messageId ) ) ; \n + String . format ( STRING0 , encodeString ( messageId ) ) ) ; \n for ( ImapResponse response1 : responses ) { \n if ( response1 . mTag == null && ImapResponseParser . equalsIgnoreCase ( response1 . get ( NUMBER0 ) , STRING1 ) \n && response1 . size ( ) > NUMBER1 ) {", "msg_token": "Send the Message ID as quoted string in getUidFromMessageId"} {"diff": " public class ServerHTTPSPDYTest extends AbstractHTTPSPDYTest \n } \n \n @ test \n - @ ignore ( STRING0 ) \n public void testPOSTThenSuspendExpire ( ) throws Exception \n { \n final CountDownLatch dispatchedAgainAfterExpire = new CountDownLatch ( NUMBER0 ) ; \n public class ServerHTTPSPDYTest extends AbstractHTTPSPDYTest \n \n Fields headers = createHeaders ( STRING1 ) ; \n final CountDownLatch replyLatch = new CountDownLatch ( NUMBER0 ) ; \n - session . syn ( new SynInfo ( headers , false ) , new StreamFrameListener . Adapter ( ) \n + session . syn ( new SynInfo ( headers , true ) , new StreamFrameListener . Adapter ( ) \n { \n @ override \n public void onReply ( Stream stream , ReplyInfo replyInfo )", "msg_token": "ServerHTTPSPDYTest fix test"} {"diff": " public class DefaultScriptCompilationHandler implements ScriptCompilationHandler \n classLoader ) ; \n return urlClassLoader . loadClass ( source . getClassName ( ) ) . asSubclass ( scriptBaseClass ) ; \n } catch ( Exception e ) { \n - throw new GradleException ( String . format ( STRING0 \n - + STRING1 \n - + STRING2 \n - + STRING3 \n - + STRING4 \n - + STRING1 , \n - source . getDisplayName ( ) , scriptCacheDir . getAbsolutePath ( ) ) , e ) ; \n + throw new GradleException ( String . format ( STRING5 , source . getDisplayName ( ) ) , e ) ; \n } \n }", "msg_token": "Don t need this error message any more"} {"diff": " public class Accounts extends K9ListActivity implements OnItemClickListener , OnC \n COMMENT \n COMMENT \n COMMENT \n - private static final String ANDROID_MARKET_URL = STRING0 ; \n + private static final String ANDROID_MARKET_URL = STRING1 ; \n \n COMMENT \n COMMENT", "msg_token": "changed ANDROID_MARKET_URL to automatically search for OI File Manager"} {"diff": " public class GuiceFactory implements ObjectFactory { \n \n private static Properties loadCucumberGuiceProperties ( ) throws IOException { \n Properties properties = new Properties ( ) ; \n - InputStream inputStream = GuiceFactory . class . getClassLoader ( ) . getResourceAsStream ( STRING0 ) ; \n + InputStream inputStream = GuiceFactory . class . getResourceAsStream ( STRING1 ) ; \n if ( inputStream != null ) { \n try { \n properties . load ( inputStream ) ;", "msg_token": "Change the method used to load the properties file from the classloader to the class method"} {"diff": " public class OObjectSerializerHelper { \n List < Field > properties = new ArrayList < Field > ( ) ; \n classes . put ( iClass . getName ( ) , properties ) ; \n \n - System . out . println ( STRING0 + iClass ) ; \n - \n String fieldName ; \n int fieldModifier ; \n boolean autoBinding ; \n public class OStorageLocal extends OStorageAbstract { \n private int registerCluster ( final OCluster cluster ) throws IOException { \n SINGLE \n if ( clusterMap . containsKey ( cluster . getName ( ) ) ) \n - throw new OConfigurationException ( STRING1 + cluster . getName ( ) + STRING2 ) ; \n + throw new OConfigurationException ( STRING3 + cluster . getName ( ) + STRING4 ) ; \n \n SINGLE \n clusterMap . put ( cluster . getName ( ) , cluster ) ;", "msg_token": "Improved message outputs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n public interface CamelContext extends SuspendableService , RuntimeConfiguration { \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + void start ( ) throws Exception ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + void stop ( ) throws Exception ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved javadoc on CamelContext about start stop methods"} {"diff": " public class EmptyIfStatement extends RefactoringMatcher < EmptyStatementTree > { \n \n public Matcher < EmptyStatementTree > emptyIfMatcher = new EmptyIfStatement ( ) ; \n @ override \n - public Void visitEmptyStatement ( EmptyStatementTree node , VisitorState state ) { \n - if ( emptyIfMatcher . matches ( node , state . withPath ( getCurrentPath ( ) ) ) ) { \n + public Void visitEmptyStatement ( EmptyStatementTree node , VisitorState visitorState ) { \n + VisitorState state = visitorState . withPath ( getCurrentPath ( ) ) ; \n + if ( emptyIfMatcher . matches ( node , state ) ) { \n reportMatch ( emptyIfMatcher , node , state ) ; \n } \n return null ;", "msg_token": "Fixed EmptyIfStatement Search to correctly pass path in VisitorState to refactor method"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n public class FileCacheTest { \n \n - SINGLE \n + @ ignore ( STRING0 ) \n @ test \n public void test ( ) { \n FileCache fileCache = new FileCache ( STRING1 , STRING2 ) ;", "msg_token": "update ignore test"} {"diff": " public class MainActivity extends ActionBarActivity implements BaseSliderView . On \n . setOnSliderClickListener ( this ) ; \n \n SINGLE \n - if ( textSliderView . getBundle ( ) != null ) \n - textSliderView . getBundle ( ) \n + textSliderView . bundle ( new Bundle ( ) ) ; \n + textSliderView . getBundle ( ) \n . putString ( STRING0 , name ) ; \n \n mDemoSlider . addSlider ( textSliderView ) ;", "msg_token": "Fixed crash in the Demo app in onSliderClick"} {"diff": " public class CoyoteAdapter implements Adapter { \n } \n \n connector . getService ( ) . getContainer ( ) . logAccess ( \n - request , response , NUMBER0 , true ) ; \n + request , response , time , true ) ; \n \n request . recycle ( ) ; \n response . recycle ( ) ;", "msg_token": "Use provided parameter"} {"diff": " public class ExtensionComponentAdapterTest extends MockObjectTestCase { \n assertEquals ( LoadingOrder . after ( STRING0 ) , createAdapter ( STRING1 ) . getOrder ( ) ) ; \n } \n \n + public void testUnknownAttributes ( ) { \n + final DefaultPicoContainer container = new DefaultPicoContainer ( ) ; \n + final ExtensionComponentAdapter extensionComponentAdapter = \n + new ExtensionComponentAdapter ( TestExtensionClassOne . class , readElement ( STRING2 ) , container , STRING0 ) ; \n + extensionComponentAdapter . getComponentInstance ( container ) ; \n + } \n + \n private ExtensionComponentAdapter createAdapter ( String text ) { \n Element extensionElement = readElement ( text ) ;", "msg_token": "Fixed top level element reading should skip attributes"} {"diff": " public class PacketEncoder { \n buf . writeBytes ( B64_DELIMITER ) ; \n buf . writeBytes ( packetBuf ) ; \n \n + packetBuf . release ( ) ; \n + \n i ++ ; \n \n for ( ByteBuf attachment : packet . getAttachments ( ) ) { \n public class PacketEncoder { \n \n if ( encBuf != null ) { \n buf . writeBytes ( encBuf ) ; \n + encBuf . release ( ) ; \n } \n \n break ; \n public class PacketEncoder { \n buffer . writeBytes ( longToBytes ( length ) ) ; \n buffer . writeByte ( NUMBER0 ) ; \n buffer . writeBytes ( buf ) ; \n + \n + buf . release ( ) ; \n } \n } \n }", "msg_token": "release allocated buffers"} {"diff": " \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface IListenableFuture { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n void addListener ( Runnable listener ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public Object get ( ) ; \n }", "msg_token": "doc the async extension to the RING spec"} {"diff": " \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class PreferenceActivity extends ListActivity implements \n \n public void showBreadCrumbs ( CharSequence title , CharSequence shortTitle ) { \n if ( mFragmentBreadCrumbs == null ) { \n - View crumbs = findViewById ( android . R . id . title ) ; \n + View crumbs = findViewById ( R . id . title ) ; \n try { \n mFragmentBreadCrumbs = ( FragmentBreadCrumbs ) crumbs ; \n } catch ( ClassCastException e ) {", "msg_token": "Fix PreferenceActivity bread crumbs"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "replace ends starts"} {"diff": " public class ByteUtil { \n return ( ( long ) ( input [ firstByte ] & NUMBER0 ) < < NUMBER1 ) + ( ( input [ firstByte + NUMBER2 ] & NUMBER0 ) < < NUMBER3 ) + \n ( ( input [ firstByte + NUMBER4 ] & NUMBER0 ) < < NUMBER5 ) + ( input [ firstByte + NUMBER6 ] & NUMBER0 ) ; \n } \n + \n + \n + public static void setFourBytes ( byte [ ] output , int firstByte , long value ) { \n + output [ firstByte ] = ( byte ) ( ( value & NUMBER7 ) > > NUMBER1 ) ; \n + output [ firstByte + NUMBER2 ] = ( byte ) ( ( value & NUMBER8 ) > > NUMBER3 ) ; \n + output [ firstByte + NUMBER4 ] = ( byte ) ( ( value & NUMBER9 ) > > NUMBER5 ) ; \n + output [ firstByte + NUMBER6 ] = ( byte ) ( value & NUMBER0 ) ; \n + } \n }", "msg_token": "Add new method to set four bytes"} {"diff": " public class TelephonyManager { \n COMMENT \n COMMENT \n COMMENT \n + @ systemapi \n public int getCurrentPhoneType ( ) { \n return getCurrentPhoneType ( getDefaultSubscription ( ) ) ; \n } \n public class TelephonyManager { \n COMMENT \n COMMENT \n COMMENT \n + @ systemapi \n public int getCurrentPhoneType ( long subId ) { \n \n try {", "msg_token": "Change getCurrentPhoneType to SystemApi"} {"diff": " public class Response { \n private String description ; \n private Property schema ; \n private Map < String , String > examples ; \n + private Map < String , Property > headers ; \n \n public Response schema ( Property property ) { \n this . setSchema ( property ) ; \n public class Response { \n public void setExamples ( Map < String , String > examples ) { \n this . examples = examples ; \n } \n + \n + public Map < String , Property > getHeaders ( ) { \n + return headers ; \n + } \n + \n + public void setHeaders ( Map < String , Property > headers ) { \n + this . headers = headers ; \n + } \n }", "msg_token": "Make response headers available to the code generator"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n final class PermissionUtil { \n private PermissionUtil ( ) { \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n static final boolean hasPermission ( Context context , String permission ) { \n return context . checkCallingOrSelfPermission ( permission ) == PackageManager . PERMISSION_GRANTED ; \n }", "msg_token": "added comments to PermissionUtil"} {"diff": " public class DomElementProblemDescriptorImpl implements DomElementProblemDescrip \n if ( myPair == null ) { \n myPair = computeProblemRange ( ) ; \n } \n - assert myPair . second . isValid ( ) ; \n + PsiElement element = myPair . second ; \n + if ( element != null ) { \n + assert element . isValid ( ) ; \n + } \n return myPair ; \n }", "msg_token": "correct the assertion"} {"diff": " public class ToroMetaQueryProcessor extends MetaQueryProcessor { \n candidates . add ( \n new KVToroDocument ( \n new ObjectValue . Builder ( ) \n - . putValue ( collection , collectionNamespace ) \n + . putValue ( STRING0 , collectionNamespace ) \n . build ( ) \n ) \n ) ;", "msg_token": "main Fixed a bug while reading system namespaces metacollection"} {"diff": " public class TextEditingTarget implements \n SINGLE \n ScopeFunction innerFunction = \n docDisplay_ . getFunctionAtPosition ( breakpointPosition ) ; \n - if ( innerFunction == null || ! innerFunction . isFunction ( ) ) \n + if ( innerFunction == null || ! innerFunction . isFunction ( ) || \n + StringUtil . isNullOrEmpty ( innerFunction . getFunctionName ( ) ) ) \n { \n breakpoint = breakpointManager_ . setTopLevelBreakpoint ( \n getPath ( ) ,", "msg_token": "don t set function breakpoints for anon functions"} {"diff": " \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "include complete BSD license text"} {"diff": " import NAMESPACE ; \n COMMENT \n NEXT_LOWER { \n @ override \n - < E > int resultIndex ( int higherIndex ) { \n + int resultIndex ( int higherIndex ) { \n return higherIndex - NUMBER0 ; \n } \n } , \n import NAMESPACE ; \n COMMENT \n NEXT_HIGHER { \n @ override \n - public < E > int resultIndex ( int higherIndex ) { \n + public int resultIndex ( int higherIndex ) { \n return higherIndex ; \n } \n } , \n import NAMESPACE ; \n COMMENT \n INVERTED_INSERTION_INDEX { \n @ override \n - public < E > int resultIndex ( int higherIndex ) { \n + public int resultIndex ( int higherIndex ) { \n return ~ higherIndex ; \n } \n } ; \n \n - abstract < E > int resultIndex ( int higherIndex ) ; \n + abstract int resultIndex ( int higherIndex ) ; \n } \n \n COMMENT", "msg_token": "Remove unnecessary method type parameter"} {"diff": " public class Feed extends FeedFile { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public String getIdentifyingValue ( ) { \n if ( feedIdentifier != null ) { \n return feedIdentifier ; \n - } else if ( link != null ) { \n - return link ; \n + } else if ( download_url != null ) { \n + return download_url ; \n } else { \n return title ; \n } \n public class FeedItem extends FeedComponent { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public String getIdentifyingValue ( ) { \n if ( itemIdentifier != null ) { \n return itemIdentifier ; \n - } else if ( link != null ) { \n - return link ; \n - } else { \n + } else if ( title != null ) { \n return title ; \n + } else { \n + return link ; \n } \n }", "msg_token": "Changed behavior of getIdentifyingValue"} {"diff": " public class IntentFilter implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n public final int match ( ContentResolver resolver , Intent intent , \n public class IntentFilter implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some IntentFilter docs"} {"diff": " public class LocalExecutionPlanner \n @ override \n public PhysicalOperation visitTableWriter ( TableWriterNode node , LocalExecutionPlanContext context ) \n { \n - PhysicalOperation query = node . getSource ( ) . accept ( this , context ) ; \n + LocalExecutionPlanner queryPlanner = new LocalExecutionPlanner ( session , \n + nodeInfo , \n + metadata , \n + node . getInputTypes ( ) , \n + operatorStats , \n + joinHashFactory , \n + maxOperatorMemoryUsage , \n + dataStreamProvider , \n + storageManager , \n + exchangeOperatorFactory ) ; \n + \n + PhysicalOperation query = node . getSource ( ) . accept ( queryPlanner . new Visitor ( ) , context ) ; \n \n SINGLE \n IdentityProjectionInfo mappings = computeIdentityMapping ( node . getInputSymbols ( ) , query . getLayout ( ) , node . getInputTypes ( ) ) ;", "msg_token": "Revert LogicalExecutionPlanner changes"} {"diff": " public class VerboseMockitoJUnitRunnerTest extends TestBase { \n } ) ; \n } \n \n + SINGLE \n @ ignore ( STRING0 ) \n @ test \n public void shouldLogUnusedStubbingWarningWhenTestFails ( ) throws Exception {", "msg_token": "Added a TODO"} {"diff": " public final class Settings { \n public static final String VENDING_TAB_2_TITLE = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String VENDING_HEARTBEAT_FREQUENCY_MS = \n + STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a new checkin server flag for Vending Machine heartbeats"} {"diff": " public class NamedPlace { \n } \n \n public NamedPlace ( String place ) { \n - this . name = this . place = place ; \n + this . place = place ; \n } \n \n public String toString ( ) {", "msg_token": "unnamed places do not have names duh"} {"diff": " public class CidrsTests extends ESTestCase { \n \n public void testValidCombinations ( ) { \n for ( long i = NUMBER0 ; i < ( NUMBER1 < < NUMBER2 ) ; i ++ ) { \n + String octetsString = Cidrs . octetsToString ( Cidrs . longToOctets ( i < < NUMBER2 ) ) ; \n for ( int mask = NUMBER2 ; mask <= NUMBER3 ; mask ++ ) { \n - String test = Cidrs . octetsToCIDR ( Cidrs . longToOctets ( i < < NUMBER2 ) , mask ) ; \n + String test = octetsString + STRING0 + mask ; \n long [ ] actual = Cidrs . cidrMaskToMinMax ( test ) ; \n assertNotNull ( test , actual ) ; \n assertEquals ( test , NUMBER4 , actual . length ) ;", "msg_token": "Reduce runtime of CidrsTests testValidCombinations"} {"diff": " public enum OType { \n . parse ( ( String ) iValue ) ; \n } \n } \n - } \n + } else if ( iTargetClass . equals ( String . class ) ) \n + return iValue . toString ( ) ; \n } catch ( Exception e ) { \n OLogManager . instance ( ) . debug ( OType . class , STRING0 , iValue , iTargetClass ) ; \n }", "msg_token": "Fixed auto conversion between integer and string"} {"diff": " public class MultipleChangeListBrowser extends ChangesBrowserBase < Object > { \n return result ; \n } \n \n - @ notnull \n - @ override \n - public List < Change > getCurrentDisplayedChanges ( ) { \n - return sortChanges ( filterBySelectedChangeList ( myAllChanges ) ) ; \n - } \n - \n @ override \n @ notnull \n public List < Change > getCurrentIncludedChanges ( ) {", "msg_token": "Refactored MultipleChangeListBrowser getCurrentDisplayedChanges removed unnecessary filtering just return all changes of the selected change list"} {"diff": " public abstract class BoardRobotGenericBreakBlock extends RedstoneBoardRobot { \n startDelegateAI ( new AIRobotBreak ( robot , indexStored ) ) ; \n } else if ( ai instanceof AIRobotBreak ) { \n releaseBlockFound ( ) ; \n - startDelegateAI ( new AIRobotGotoSleep ( robot ) ) ; \n } \n }", "msg_token": "Fix block break robots going into sleep mode after successfully harvesting block"} {"diff": " public class PrivacyManager { \n return - NUMBER0 ; \n } \n \n + if ( name . equals ( STRING0 ) ) \n + return cDeface ; \n + \n SINGLE \n Util . log ( null , Log . ERROR , STRING1 + name ) ; \n Util . logStack ( null , Log . ERROR ) ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n \n public class XUsbDevice extends XHook { \n public class XUsbDevice extends XHook { \n \n } else if ( mMethod == Methods . getDeviceName ) { \n if ( isRestricted ( param ) ) \n - param . setResult ( null ) ; \n + param . setResult ( PrivacyManager . getDefacedProp ( Binder . getCallingUid ( ) , STRING0 ) ) ; \n \n } else \n Util . log ( this , Log . WARN , STRING2 + param . method . getName ( ) ) ;", "msg_token": "Used defaced props for USB name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n @ provider \n @ produces ( STRING0 ) \n public class SearchResponseCsvWriter implements MessageBodyWriter < SearchResponse > { \n public class SearchResponseCsvWriter implements MessageBodyWriter < SearchResponse \n SINGLE \n for ( String fieldName : sortedFields ) { \n final Object val = message . message . get ( fieldName ) ; \n - fieldValues [ idx ++ ] = firstNonNull ( val , STRING1 ) . toString ( ) ; SINGLE \n + fieldValues [ idx ++ ] = ( ( val == null ) ? null : val . toString ( ) ) ; \n } \n SINGLE \n csvWriter . writeNext ( fieldValues ) ;", "msg_token": "properly handle null values in csv export"} {"diff": " public class PaddingAtmosphereInterceptor extends AtmosphereInterceptorAdapter { \n final AtmosphereResponse response = r . getResponse ( ) ; \n \n if ( r . transport ( ) . equals ( TRANSPORT . STREAMING ) || r . transport ( ) . equals ( TRANSPORT . LONG_POLLING ) ) { \n - super . inspect ( r ) ; \n - \n r . addEventListener ( new AtmosphereResourceEventListenerAdapter ( ) { \n @ override \n public void onPreSuspend ( AtmosphereResourceEvent event ) { \n public class PaddingAtmosphereInterceptor extends AtmosphereInterceptorAdapter { \n } \n } ) ; \n \n + super . inspect ( r ) ; \n + \n AsyncIOWriter writer = response . getAsyncIOWriter ( ) ; \n if ( AtmosphereInterceptorWriter . class . isAssignableFrom ( writer . getClass ( ) ) ) { \n AtmosphereInterceptorWriter . class . cast ( writer ) . interceptor ( new AsyncIOInterceptorAdapter ( ) {", "msg_token": "Add the listener as soon as we can"} {"diff": " public class NotificationCompat { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Doc fix Document best practices for display intent activities Compat"} {"diff": " class DictionaryBuilder { \n } \n br . close ( ) ; \n } catch ( IOException e ) { \n - System . out . println ( STRING0 + freqListFile . getAbsolutePath ( ) ) ; \n + throw new RuntimeException ( STRING0 + freqListFile . getAbsolutePath ( ) ) ; \n } \n } \n \n - protected File addFreqData ( File dictFile ) throws Exception { \n + protected File addFreqData ( File dictFile ) throws IOException { \n if ( ! isOptionTrue ( STRING1 ) ) { \n throw new IOException ( STRING2 ) ; \n } \n class DictionaryBuilder { \n bw . close ( ) ; \n System . out . println ( freqList . size ( ) + STRING3 + freqValuesApplied + STRING4 ) ; \n } catch ( IOException e ) { \n - System . out . println ( STRING0 + dictFile . getAbsolutePath ( ) ) ; \n + throw new RuntimeException ( STRING0 + dictFile . getAbsolutePath ( ) ) ; \n } \n tempFile . deleteOnExit ( ) ; \n return tempFile ;", "msg_token": "throw exception if file cannot be read"} {"diff": " import NAMESPACE ; \n public class SampleAuthorizationPlugin implements IAuthorizationPlugin { \n \n @ override \n - public void reload ( ) { \n + public void load ( ) { \n } \n + \n + @ override \n + public void unload ( ) { \n + } \n + \n \n @ override \n public boolean isAllowed ( HttpServletRequest request , Project project ) {", "msg_token": "sample authorization plugin does not implement the interface"} {"diff": " public class ApiHelper { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static @ nullable CommentStatus getCommentStatus ( Blog blog , Comment comment ) { \n if ( blog == null ) {", "msg_token": "Enhance getCommentStatus s javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class Parser \n { \n try \n { \n - if ( LOG . isDebugEnabled ( ) ) \n - { \n - int l = Math . min ( buffer . remaining ( ) , NUMBER0 ) ; \n - LOG . debug ( STRING0 + TypeUtil . toHexString ( buffer . array ( ) , buffer . arrayOffset ( ) + buffer . position ( ) , l ) + ( l < buffer . remaining ( ) ? STRING1 : STRING2 ) ) ; \n - } \n - \n while ( true ) \n { \n switch ( state ) \n public class Parser \n @ override \n public void onConnectionFailure ( int error , String reason ) \n { \n - LOG . warn ( STRING3 , error , reason ) ; \n + LOG . warn ( STRING4 , error , reason ) ; \n } \n } \n }", "msg_token": "Removed debug logging wrongly assumes the ByteBuffer has a backing array"} {"diff": " public class ExpressionFormatter \n @ override \n protected String visitExpression ( Expression node , Void context ) \n { \n - throw new UnsupportedOperationException ( STRING0 ) ; \n + throw new UnsupportedOperationException ( STRING1 + node . getClass ( ) . getName ( ) ) ; \n } \n \n @ override", "msg_token": "Print more info"} {"diff": " public class InsertOrUpdateGeneratorMSSQL extends InsertOrUpdateGenerator { \n \n @ override \n public Sql [ ] generateSql ( InsertOrUpdateStatement insertOrUpdateStatement , Database database , SqlGeneratorChain sqlGeneratorChain ) { \n - System . out . println ( STRING0 ) ; \n - \n return super . generateSql ( insertOrUpdateStatement , database , sqlGeneratorChain ) ; SINGLE \n } \n }", "msg_token": "removed stdout statement"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n if ( DEBUG_EXTRACT ) Log . v ( TAG , STRING0 + start \n + STRING1 + before + STRING2 + after + STRING3 + buffer ) ; \n \n - if ( AccessibilityManager . getInstance ( mContext ) . isEnabled ( ) ) { \n + if ( AccessibilityManager . getInstance ( mContext ) . isEnabled ( ) \n + && ! isPasswordInputType ( mInputType ) ) { \n mBeforeText = buffer . toString ( ) ; \n } \n \n public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n \n @ override \n public boolean dispatchPopulateAccessibilityEvent ( AccessibilityEvent event ) { \n - boolean isPassword = \n - ( mInputType & ( EditorInfo . TYPE_MASK_CLASS | EditorInfo . TYPE_MASK_VARIATION ) ) == \n - ( EditorInfo . TYPE_CLASS_TEXT | EditorInfo . TYPE_TEXT_VARIATION_PASSWORD ) ; \n + final boolean isPassword = isPasswordInputType ( mInputType ) ; \n \n if ( ! isPassword ) { \n CharSequence text = getText ( ) ;", "msg_token": "Security fix in accessibility don t read out password"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unnecessary import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CoreModManager { \n loadedCoremods . add ( coreMod . getName ( ) ) ; \n continue ; \n } \n - List < String > modTypes = mfAttributes . containsKey ( MODTYPE ) ? Arrays . asList ( mfAttributes . getValue ( MODTYPE ) . split ( STRING0 ) ) : Collections . < String > emptyList ( ) ; \n + List < String > modTypes = mfAttributes . containsKey ( MODTYPE ) ? Arrays . asList ( mfAttributes . getValue ( MODTYPE ) . split ( STRING0 ) ) : ImmutableList . of ( STRING1 ) ; \n \n if ( ! modTypes . contains ( STRING1 ) ) \n {", "msg_token": "Fix derp with ModType annotation"} {"diff": " import static NAMESPACE ; \n public class ExchangeNode \n extends PlanNode \n { \n - public static enum Type \n + public enum Type \n { \n GATHER , \n REPARTITION ,", "msg_token": "Remove unnecessary static qualifier"} {"diff": " import NAMESPACE ; \n \n public class OverloadingConflictResolver { \n \n - public OverloadingConflictResolver ( ) { } \n + private final KotlinBuiltIns builtIns ; \n + \n + public OverloadingConflictResolver ( @ notnull KotlinBuiltIns builtIns ) { \n + this . builtIns = builtIns ; \n + } \n \n @ nullable \n public < D extends CallableDescriptor > MutableResolvedCall < D > findMaximallySpecific ( \n public class OverloadingConflictResolver { \n } \n \n private boolean numericTypeMoreSpecific ( @ notnull JetType specific , @ notnull JetType general ) { \n - KotlinBuiltIns builtIns = KotlinBuiltIns . getInstance ( ) ; \n JetType _double = builtIns . getDoubleType ( ) ; \n JetType _float = builtIns . getFloatType ( ) ; \n JetType _long = builtIns . getLongType ( ) ;", "msg_token": "Inject builtins into OverloadingConflictResolver"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n \n public class PApplet extends Activity implements PConstants , Runnable { \n COMMENT \n COMMENT \n COMMENT \n - static public java . lang . Process open ( String argv [ ] ) { \n + static public Process open ( String argv [ ] ) { \n return exec ( argv ) ; \n } \n \n \n - static public java . lang . Process exec ( String [ ] argv ) { \n + static public Process exec ( String [ ] argv ) { \n try { \n return Runtime . getRuntime ( ) . exec ( argv ) ; \n } catch ( Exception e ) {", "msg_token": "Undo unneeded changes"} {"diff": " public class UIDialogCreateNewWorld extends UIDialog { \n \n private boolean createServerGame ; \n private ModuleSelection selection ; \n - private UIButton previewButton ; \n \n public UIDialogCreateNewWorld ( boolean createServer ) { \n super ( new Vector2f ( NUMBER0 f , NUMBER1 f ) ) ; \n public class UIDialogCreateNewWorld extends UIDialog { \n Vector2f previewPos = inputSeed . getPosition ( ) ; \n previewPos . x += inputSeed . getSize ( ) . x ; \n previewPos . x += NUMBER2 ; \n - \n - previewButton . setPosition ( previewPos ) ; \n - parent . addDisplayElement ( previewButton ) ; \n - \n \n content . orderDisplayElementTop ( worldGenerator ) ; \n parent . layout ( ) ;", "msg_token": "Removed preview world button"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RectangularShapeCollisionChecker extends ShapeCollisionChecker { \n SINGLE \n SINGLE \n \n + public static boolean checkContains ( final Entity pEntity , final float pWidth , final float pHeight , final float pX , final float pY ) { \n + RectangularShapeCollisionChecker . fillVertices ( pEntity . getX ( ) , pEntity . getY ( ) , pWidth , pHeight , pEntity . getLocalToSceneTransformation ( ) , RectangularShapeCollisionChecker . VERTICES_CONTAINS_TMP ) ; \n + return ShapeCollisionChecker . checkContains ( RectangularShapeCollisionChecker . VERTICES_CONTAINS_TMP , NUMBER0 * RectangularShapeCollisionChecker . RECTANGULARSHAPE_VERTEX_COUNT , pX , pY ) ; \n + } \n + \n public static boolean checkContains ( final RectangularShape pRectangularShape , final float pX , final float pY ) { \n RectangularShapeCollisionChecker . fillVertices ( pRectangularShape , RectangularShapeCollisionChecker . VERTICES_CONTAINS_TMP ) ; \n return ShapeCollisionChecker . checkContains ( RectangularShapeCollisionChecker . VERTICES_CONTAINS_TMP , NUMBER0 * RectangularShapeCollisionChecker . RECTANGULARSHAPE_VERTEX_COUNT , pX , pY ) ;", "msg_token": "Added convenience method to RectangularShapeCollisionChecker java"} {"diff": " public @ interface Logging { \n public enum LogMode { \n POSITION , SINGLE \n REGION , SINGLE \n - PLACEMENT SINGLE \n + ORIENTATION_REGION , SINGLE \n + PLACEMENT , SINGLE \n + ALL SINGLE \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n LogMode value ( ) ; \n } \n public class WorldEdit { \n break ; \n } \n COMMENT \n - \n + \n case POSITION : \n msg += STRING0 + position ; \n break ; \n - \n + \n + case ALL : \n + msg += STRING0 + position ; \n + COMMENT \n + \n + case ORIENTATION_REGION : \n + msg += STRING1 + player . getCardinalDirection ( ) . name ( ) ; \n + COMMENT \n + \n case REGION : \n try { \n msg += STRING2 + session . getSelection ( player . getWorld ( ) ) ;", "msg_token": "Added ORIENTATION_REGION and ALL LogModes which log orientation region and position orientation region respectively"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n public class RemoveUnnecessaryParenthesisTest extends JavaCodeInsightFixtureTestCase { \n - SINGLE \n - \n @ override \n protected String getBasePath ( ) { \n return STRING0 ;", "msg_token": "Remove Unnecessary Perenthesis Test pass"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n class CheckProvides implements HotSwapCompilerPass {", "msg_token": "Fix typo in CheckProvides"} {"diff": " \n package NAMESPACE ; \n \n public interface Group { \n + String getVal ( ) ; \n + \n + int getStart ( ) ; \n }", "msg_token": "Need val and pos on the interface"} {"diff": " public class ListVtablesCommand extends DexInputCommand { \n @ parameter ( names = STRING0 , \n description = STRING1 ) \n @ extendedparameter ( argumentNames = STRING2 ) \n - private String classes = null ; \n + private List < String > classes = null ; \n \n public ListVtablesCommand ( @ nonnull List < JCommander > commandAncestors ) { \n super ( commandAncestors ) ; \n public class ListVtablesCommand extends DexInputCommand { \n } \n \n try { \n - if ( classes != null ) { \n - for ( String cls : classes . split ( STRING3 ) ) { \n + if ( classes != null && ! classes . isEmpty ( ) ) { \n + for ( String cls : classes ) { \n listClassVtable ( ( ClassProto ) options . classPath . getClass ( cls ) ) ; \n } \n return ;", "msg_token": "Don t manually split the classes argument for list vtables"} {"diff": " public class RenderingRegistry \n { \n private static final RenderingRegistry INSTANCE = new RenderingRegistry ( ) ; \n \n - private int nextRenderId = NUMBER0 ; \n + private int nextRenderId = NUMBER1 ; \n \n private Map < Integer , ISimpleBlockRenderingHandler > blockRenderers = Maps . newHashMap ( ) ;", "msg_token": "Update render registry"} {"diff": " public class AdminRebalanceTest extends TestCase { \n } \n \n @ test \n - public void testRebalanceNodeRORW ( ) throws IOException { \n + public void testRebalanceNodeRORW ( ) throws IOException , InterruptedException { \n \n try { \n startFourNodeRORW ( ) ; \n public class AdminRebalanceTest extends TestCase { \n fail ( STRING0 ) ; \n } catch ( VoldemortRebalancingException e ) { } \n \n + Thread . sleep ( NUMBER0 ) ; \n + \n for ( VoldemortServer server : servers ) { \n assertEquals ( server . getMetadataStore ( ) . getRebalancerState ( ) , \n new RebalancerState ( new ArrayList < RebalancePartitionsInfo > ( ) ) ) ;", "msg_token": "Added sleep to rebalance test for the metadata to propagate"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final class InputMethodInfo implements Parcelable { \n static final String TAG = STRING0 ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final class InputMethodSubtype implements Parcelable { \n private static final String TAG = InputMethodSubtype . class . getSimpleName ( ) ;", "msg_token": "add xml attributes to IME javadoc"} {"diff": " public class MainActivity extends AppCompatActivity implements ActionMode . Callba \n \n dragDropTouchListener = new DragDropTouchListener ( ultimateRecyclerView . mRecyclerView , this ) { \n @ override \n + public void onRequestDisallowInterceptTouchEvent ( boolean b ) { \n + \n + } \n + \n + @ override \n protected void onItemSwitch ( RecyclerView recyclerView , int from , int to ) { \n if ( from > NUMBER0 && to > NUMBER0 ) { \n simpleRecyclerViewAdapter . swapPositions ( from , to ) ;", "msg_token": "update demo for new version of recycler view"} {"diff": " public class OperationRequestHandler implements CommandHandler , OperationCommand \n throw new CommandFormatException ( result . toString ( ) ) ; \n } \n } catch ( NoSuchElementException e ) { \n - throw new CommandFormatException ( STRING0 + e . getMessage ( ) ) ; \n + throw new CommandFormatException ( STRING1 , e ) ; \n } catch ( CancellationException e ) { \n - throw new CommandFormatException ( STRING2 + e . getLocalizedMessage ( ) ) ; \n + throw new CommandFormatException ( STRING3 , e ) ; \n } catch ( IOException e ) { \n ctx . disconnectController ( ) ; \n - throw new CommandFormatException ( STRING4 + e . getLocalizedMessage ( ) ) ; \n + throw new CommandFormatException ( STRING5 , e ) ; \n } catch ( RuntimeException e ) { \n throw new CommandFormatException ( STRING6 , e ) ; \n }", "msg_token": "include the cause into the cli exception"} {"diff": " final class ClosureRewriteModule implements HotSwapCompilerPass { \n \n void removeRoot ( Node toRemove ) { \n if ( legacyNamespacesByScriptNode . containsKey ( toRemove ) ) { \n - for ( String removedModuleName : legacyNamespacesByScriptNode . removeAll ( toRemove ) ) { \n - scriptDescriptionsByGoogModuleNamespace . remove ( removedModuleName ) ; \n - } \n + scriptDescriptionsByGoogModuleNamespace \n + . keySet ( ) \n + . removeAll ( legacyNamespacesByScriptNode . removeAll ( toRemove ) ) ; \n } \n } \n }", "msg_token": "Simplify loop in ClosureRewriteModule"} {"diff": " public interface AgentBuilder { \n AgentBuilder disableClassFormatChanges ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added clarification to javadoc"} {"diff": " public class OMultiValue { \n if ( iObject == null ) \n return NUMBER0 ; \n \n + if ( iObject instanceof OMultiCollectionIterator < ? > ) \n + return ( ( OMultiCollectionIterator < ? > ) iObject ) . size ( ) ; \n + \n if ( ! isMultiValue ( iObject ) ) \n return NUMBER0 ; \n \n - if ( iObject instanceof OMultiCollectionIterator < ? > ) \n - return ( ( OMultiCollectionIterator < ? > ) iObject ) . size ( ) ; \n if ( iObject instanceof Collection < ? > ) \n return ( ( Collection < Object > ) iObject ) . size ( ) ; \n if ( iObject instanceof Map < ? , ? > )", "msg_token": "Fixed bug on size against OMultiCollectionIterator"} {"diff": " public class PyClassImpl extends PyPresentableElementImpl < PyClassStub > implement \n @ notnull \n @ override \n public List < PyClassLikeType > getAncestorTypes ( @ notnull TypeEvalContext context ) { \n - return calculateAncestorTypes ( context ) ; \n - } \n - \n - @ notnull \n - private List < PyClassLikeType > calculateAncestorTypes ( @ notnull TypeEvalContext context ) { \n myCachedAncestorsProvider . setTypeEvalContext ( context ) ; \n try { \n SINGLE", "msg_token": "Inlined PyClassImpl calculateAncestorTypes"} {"diff": " public class ThreadStartInConstructionInspection extends ExpressionInspection { \n \n final PsiReferenceExpression methodExpression = \n expression . getMethodExpression ( ) ; \n - if ( methodExpression == null ) { \n - return ; \n - } \n @ nonnls final String methodName = methodExpression . getReferenceName ( ) ; \n if ( ! STRING0 . equals ( methodName ) ) { \n return ;", "msg_token": "remove unneeded null checks"} {"diff": " public class BackgroundPlayer extends Service / * implements MediaPlayer . OnPrepare \n mediaPlayer . setWakeMode ( getApplicationContext ( ) , PowerManager . PARTIAL_WAKE_LOCK ) ; \n mediaPlayer . start ( ) ; \n } \n - noteBuilder . setIsPlaying ( isPlaying ) ; \n - noteMgr . notify ( noteID , noteBuilder . build ( ) ) ; \n + synchronized ( PlayerThread . this ) { \n + PlayerThread . this . notifyAll ( ) ; \n + } \n break ; \n } \n case ACTION_REWIND : \n public class BackgroundPlayer extends Service / * implements MediaPlayer . OnPrepare \n synchronized ( PlayerThread . this ) { \n PlayerThread . this . notifyAll ( ) ; \n } \n - SINGLE \n break ; \n case ACTION_STOP : \n SINGLE", "msg_token": "Notify thread on play pause"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class BluetoothCrashResolver { \n private Context context = null ; \n private UpdateNotifier updateNotifier ; \n private Set < String > distinctBluetoothAddresses = new HashSet < String > ( ) ; \n + \n COMMENT \n SINGLE \n SINGLE \n public class BluetoothCrashResolver { \n try { \n Thread . sleep ( TIME_TO_LET_DISCOVERY_RUN_MILLIS ) ; \n if ( ! discoveryStartConfirmed ) { \n - Log . w ( TAG , STRING0 ) ; \n + BeaconManager . w ( TAG , STRING0 ) ; \n } \n \n final BluetoothAdapter adapter = BluetoothAdapter . getDefaultAdapter ( ) ;", "msg_token": "Removed unused import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class BusinessAccountRecorder { \n private static final Logger log = LoggerFactory . getLogger ( BusinessAccountRecorder . class ) ; \n public class BusinessAccountRecorder { \n private final AccountUserApi accountApi ; \n private final InvoiceUserApi invoiceUserApi ; \n private final PaymentApi paymentApi ; \n - private final TagUserApi tagUserApi ; \n \n @ inject \n public BusinessAccountRecorder ( final BusinessAccountSqlDao sqlDao , final AccountUserApi accountApi , \n - final InvoiceUserApi invoiceUserApi , final PaymentApi paymentApi , \n - final TagUserApi tagUserApi ) { \n + final InvoiceUserApi invoiceUserApi , final PaymentApi paymentApi ) { \n this . sqlDao = sqlDao ; \n this . accountApi = accountApi ; \n this . invoiceUserApi = invoiceUserApi ; \n this . paymentApi = paymentApi ; \n - this . tagUserApi = tagUserApi ; \n } \n \n public void accountCreated ( final AccountData data ) {", "msg_token": "remove used tagUserApi in BusinessAccountRecorder"} {"diff": " public abstract class SquidDatabase { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n protected void onConfigure ( ISQLiteDatabase db ) { \n } \n \n public abstract class SquidDatabase { \n \n private VersionCode readSqliteVersion ( ) { \n acquireNonExclusiveLock ( ) ; \n - ICursor cursor = null ; \n try { \n - cursor = getDatabase ( ) . rawQuery ( STRING0 , null ) ; \n + ICursor cursor = getDatabase ( ) . rawQuery ( STRING0 , null ) ; \n try { \n if ( cursor . moveToFirst ( ) ) { \n String versionString = cursor . getString ( NUMBER0 ) ;", "msg_token": "Restore some documentation and fix a harmless warning"} {"diff": " public class ThreadPoolExample { \n public static ExecutorService threadPool = Executors . newFixedThreadPool ( NUMBER0 ) ; \n public void doWork ( ) throws Exception { \n CompletionService < String > completionService = new ExecutorCompletionService < String > ( threadPool ) ; \n - \n - Count10 count1 = new Count10 ( NUMBER1 ) ; \n - Count10 count2 = new Count10 ( NUMBER2 ) ; \n - Count10 count3 = new Count10 ( NUMBER3 ) ; \n - \n List < Future < String > > futureList = new ArrayList < Future < String > > ( ) ; \n for ( int i = NUMBER4 ; i < NUMBER5 ; i ++ ) { \n futureList . add ( completionService . submit ( new Count10 ( i ) ) ) ;", "msg_token": "removed unused variable"} {"diff": " public class DefaultInternalBillingApi implements BillingInternalApi { \n \n SINGLE \n if ( subscription . getState ( ) == null ) { \n + log . info ( STRING0 , subscription . getId ( ) ) ; \n continue ; \n }", "msg_token": "Add INFO log for when skipping future started subscription during billing event creation"} {"diff": " import NAMESPACE ; \n public class HDFSCodeDistributor implements ICodeDistributor { \n private static final Logger LOG = LoggerFactory . getLogger ( HDFSCodeDistributor . class ) ; \n \n - SINGLE \n private final static String HDFS_STORM_DIR = STRING0 ; \n \n private FileSystem fs ; \n public class HDFSCodeDistributor implements ICodeDistributor { \n \n @ override \n public short getReplicationCount ( String topologyId ) throws IOException { \n - SINGLE \n - SINGLE \n - SINGLE \n - \n Path hdfsDestPath = new Path ( stormDir , new Path ( topologyId ) ) ; \n if ( fs . exists ( hdfsDestPath ) ) { \n FileStatus fileStatus = fs . getFileStatus ( hdfsDestPath ) ;", "msg_token": "Removing todos from HDFDCodeDistributor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class WelcomeLogin extends ActFmLoginActivity implements AuthListener { \n \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n - requestWindowFeature ( Window . FEATURE_NO_TITLE ) ; \n super . onCreate ( savedInstanceState ) ; \n ContextManager . setContext ( this ) ;", "msg_token": "Fixed initial NPE crash on WelcomeLogin"} {"diff": " public abstract class AbstractAndroidMojo extends AbstractMojo \n private NativeHelper nativeHelper ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - @ parameter ( property = STRING0 , defaultValue = STRING1 ) \n - protected boolean includeLibsJarsForApklib ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - @ parameter ( property = STRING2 , defaultValue = STRING1 ) \n - protected boolean includeLibsJarsForAar ; \n - \n - COMMENT \n COMMENT \n COMMENT \n private static final Object ADB_LOCK = new Object ( ) ;", "msg_token": "removed unused and invalid mojo config"} {"diff": " public class WxMpServiceImpl implements WxMpService { \n WxMpPrepayIdResult wxMpPrepayIdResult = ( WxMpPrepayIdResult ) xstream . fromXML ( responseContent ) ; \n return wxMpPrepayIdResult ; \n } catch ( IOException e ) { \n - e . printStackTrace ( ) ; \n + throw new RuntimeException ( STRING0 , e ) ; \n } \n - return new WxMpPrepayIdResult ( ) ; \n } \n \n final String [ ] REQUIRED_ORDER_PARAMETERS = new String [ ] { STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , \n public class WxMpServiceImpl implements WxMpService { \n WxMpPrepayIdResult wxMpPrepayIdResult = getPrepayId ( parameters ) ; \n String prepayId = wxMpPrepayIdResult . getPrepay_id ( ) ; \n if ( prepayId == null || prepayId . equals ( STRING8 ) ) { \n - throw new RuntimeException ( STRING9 ) ; \n + throw new RuntimeException ( String . format ( STRING10 , wxMpPrepayIdResult . getErr_code ( ) , wxMpPrepayIdResult . getErr_code_des ( ) ) ) ; \n } \n \n Map < String , String > payInfo = new HashMap < String , String > ( ) ;", "msg_token": "Improve error message of the failure of getting prepayid"} {"diff": " public class WaterFilter extends Filter { \n } \n \n private DirectionalLight findLight ( Node node ) { \n - for ( Light light : node . getWorldLightList ( ) ) { \n - System . out . println ( light ) ; \n + for ( Light light : node . getWorldLightList ( ) ) { \n if ( light instanceof DirectionalLight ) { \n return ( DirectionalLight ) light ; \n }", "msg_token": "Water filter removed a sneaky System out"} {"diff": " public class AndroidDatabaseResults implements DatabaseResults { \n return cursor . moveToNext ( ) ; \n } \n \n + public boolean last ( ) { \n + return cursor . moveToLast ( ) ; \n + } \n + \n public boolean previous ( ) { \n return cursor . moveToPrevious ( ) ; \n } \n public class AndroidDatabaseResults implements DatabaseResults { \n return cursor . move ( offset ) ; \n } \n \n + public boolean moveAbsolute ( int position ) { \n + return cursor . moveToPosition ( position ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getCount ( ) { \n + return cursor . getCount ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getPosition ( ) { \n + return cursor . getPosition ( ) ; \n + } \n + \n public int findColumn ( String columnName ) throws SQLException { \n int index = lookupColumn ( columnName ) ; \n if ( index >= NUMBER0 ) {", "msg_token": "Added last and moveAbsolute cursor move methods to DatabaseResults"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ValidatorTest extends SchemaLoader \n validator1 . prepare ( cfs ) ; \n validator1 . complete ( ) ; \n \n - LazilyCompactedRow row3 = new LazilyCompactedRow ( new CompactionController ( cfs , null , NUMBER0 ) , null ) ; \n SINGLE \n Validator validator2 = new Validator ( desc , remote , NUMBER0 ) ; \n validator2 . prepare ( cfs ) ;", "msg_token": "Remove unnecessary statement that I forgot to remove"} {"diff": " public class WsOutbound { \n private void doWriteBytes ( ByteBuffer buffer , boolean finalFragment ) \n throws IOException { \n \n - if ( closed ) { \n - throw new IOException ( STRING0 ) ; \n - } \n - \n SINGLE \n int first = NUMBER0 ; \n if ( finalFragment ) {", "msg_token": "Remove unnecessary check all paths to this method already perform the"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final class SimpleKey implements Serializable {", "msg_token": "Add missing since tag to SimpleKey"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class GitVcs extends AbstractVcs < CommittedChangeList > { \n \n - static { \n - NotificationsConfigurationImpl . remove ( STRING0 ) ; \n - } \n - \n public static final String NAME = STRING0 ; \n public static final String ID = STRING1 ;", "msg_token": "git remove obsolete code"} {"diff": " public class TestProtocolProviderServiceIcqImpl extends TestCase \n SINGLE \n fixture . provider . addRegistrationStateChangeListener ( regEvtCollector ) ; \n \n - fixture . provider . register ( null ) ; \n + fixture . provider . register ( new SecurityAuthorityImpl ( ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "Forgot to pass an instance of SecurityAuthorityImpl when registering Trying to fix build"} {"diff": " public class RoutingRequest implements Cloneable , Serializable { \n && bannedTrips . equals ( other . bannedTrips ) \n && minTransferTime == other . minTransferTime \n && nonpreferredTransferPenalty == other . nonpreferredTransferPenalty \n - && transferPenalty == other . transferPenalty \n && triangleSafetyFactor == other . triangleSafetyFactor \n && triangleSlopeFactor == other . triangleSlopeFactor \n && triangleTimeFactor == other . triangleTimeFactor", "msg_token": "remove duplicate transferpenalty term from equals method"} {"diff": " import NAMESPACE ; \n \n SINGLE \n if ( mSession != null && mMetadataBuilder != null ) { \n - mSession . setMetadata ( mMetadataBuilder . build ( ) ) ; \n + mMediaMetadata = mMetadataBuilder . build ( ) ; \n + mSession . setMetadata ( mMediaMetadata ) ; \n } \n mApplied = true ; \n }", "msg_token": "Fix regression in RCC editMetadata false"} {"diff": " public final class ContactsContract { \n SINGLE \n List < String > lineTokens = new ArrayList < String > ( ) ; \n List < Integer > tokenOffsets = new ArrayList < Integer > ( ) ; \n - split ( contentLine . trim ( ) , lineTokens , tokenOffsets ) ; \n + split ( contentLine , lineTokens , tokenOffsets ) ; \n \n SINGLE \n SINGLE", "msg_token": "fix wrong substring"} {"diff": " public class MD5Test extends GdxTest implements InputProcessor { \n \n @ override public void create ( ) { \n Gdx . app . log ( STRING0 , STRING1 ) ; \n - model = MD5Loader . loadModel ( Gdx . files . internal ( STRING2 ) . read ( ) ) ; \n + model = MD5Loader . loadModel ( Gdx . files . internal ( STRING2 ) . read ( ) , false ) ; \n anim = MD5Loader . loadAnimation ( Gdx . files . internal ( STRING3 ) . read ( ) ) ; \n skeleton = new MD5Joints ( ) ; \n skeleton . joints = new float [ anim . frames [ NUMBER0 ] . joints . length ] ; \n animInfo = new MD5AnimationInfo ( anim . frames . length , anim . secondsPerFrame ) ; \n - renderer = new MD5Renderer ( model , true ) ; \n + renderer = new MD5Renderer ( model , false , true ) ; \n renderer . setSkeleton ( model . baseSkeleton ) ; \n \n SINGLE", "msg_token": "will figure it out"} {"diff": " public class JspJavaFileObjectResolver implements JavaFileObjectResolver { \n \n fileName = url . getFile ( ) ; \n \n - String protocol = STRING0 ; \n + String protocol = STRING1 ; \n \n int index = fileName . indexOf ( protocol ) ;", "msg_token": "to detect the protocol"} {"diff": " public class UpdateRequestBuilder extends InstanceShardOperationRequestBuilder < U \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public UpdateRequestBuilder setScript ( String script ) { \n request . script ( script ) ; \n public class UpdateRequestBuilder extends InstanceShardOperationRequestBuilder < U \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public UpdateRequestBuilder setScriptLang ( String scriptLang ) { \n request . scriptLang ( scriptLang ) ;", "msg_token": "Adding javadoc to UpdateRequestBuilder for a couple of details it took me a while to find"} {"diff": " public class ApplicationPidListener implements \n if ( created . compareAndSet ( false , true ) ) { \n try { \n new ApplicationPid ( ) . write ( this . file ) ; \n + this . file . deleteOnExit ( ) ; \n } \n catch ( Exception ex ) { \n logger . warn ( String . format ( STRING0 , this . file ) ) ;", "msg_token": "Registering PID file to be deleted on JVM exit"} {"diff": " public class AUC2 extends Iced { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n abstract double exec ( long tp , long fp , long fn , long tn ) ;", "msg_token": "Remove dead javadoc"} {"diff": " public class MessageOutputBindings extends Graylog2Module { \n @ override \n protected void configure ( ) { \n final Class < ? extends MessageOutput > defaultMessageOutputClass = getDefaultMessageOutputClass ( BatchedElasticSearchOutput . class ) ; \n + LOG . debug ( STRING0 , defaultMessageOutputClass . getCanonicalName ( ) ) ; \n bind ( MessageOutput . class ) . annotatedWith ( DefaultMessageOutput . class ) . to ( defaultMessageOutputClass ) . in ( Scopes . SINGLETON ) ; \n \n final MapBinder < String , MessageOutput . Factory < ? extends MessageOutput > > outputMapBinder = outputsMapBinder ( ) ;", "msg_token": "Add debug message for default message output selection"} {"diff": " public class LanguageConsoleImpl extends ConsoleViewImpl implements LanguageCons \n @ nullable \n @ override \n public Object getData ( @ nonnls String dataId ) { \n - if ( OpenFileDescriptor . NAVIGATE_IN_EDITOR . is ( dataId ) ) { \n + Object data = super . getData ( dataId ) ; \n + if ( data != null ) { \n + return data ; \n + } \n + else if ( OpenFileDescriptor . NAVIGATE_IN_EDITOR . is ( dataId ) ) { \n return myConsoleEditor ; \n } \n else if ( getProject ( ) . isInitialized ( ) ) {", "msg_token": "put ConsoleView actions back in language console"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ListPhraseTest { \n \n assertThat ( listPhrase . join ( asList ( NUMBER0 , NUMBER1 , NUMBER2 ) , formatter ) ) . isEqualTo ( STRING0 ) ; \n } \n + \n + @ test public void joinReallyLongListDoesntOverflowStack ( ) { \n + List < Integer > longList = new AbstractList < Integer > ( ) { \n + @ override public Integer get ( int location ) { \n + return location ; \n + } \n + \n + @ override public int size ( ) { \n + return NUMBER3 ; \n + } \n + } ; \n + \n + listPhrase . join ( longList , new Formatter < Integer > ( ) { \n + @ override public CharSequence format ( Integer item ) { \n + SINGLE \n + return STRING1 ; \n + } \n + } ) ; \n + } \n }", "msg_token": "Added a test that really long lists don t cause a stack overflow"} {"diff": " public class DescriptorRendererImpl implements DescriptorRenderer { \n } \n \n List < TypeParameterDescriptor > typeParameters = klass . getTypeConstructor ( ) . getParameters ( ) ; \n - if ( ! classObject ) { \n + \n + if ( ! classObject || verbose ) { \n renderName ( klass , builder ) ; \n - renderTypeParameters ( typeParameters , builder , false ) ; \n - if ( classWithPrimaryConstructor ) { \n - ConstructorDescriptor primaryConstructor = klass . getUnsubstitutedPrimaryConstructor ( ) ; \n - if ( primaryConstructor != null ) { \n - renderValueParameters ( primaryConstructor , builder ) ; \n - } \n + } \n + renderTypeParameters ( typeParameters , builder , false ) ; \n + \n + if ( ! classObject && classWithPrimaryConstructor ) { \n + ConstructorDescriptor primaryConstructor = klass . getUnsubstitutedPrimaryConstructor ( ) ; \n + if ( primaryConstructor != null ) { \n + renderValueParameters ( primaryConstructor , builder ) ; \n } \n }", "msg_token": "Render class object name when verbose"} {"diff": " public class MaterialLargeImageCard extends BaseMaterialCard { \n } \n \n public MaterialLargeImageCard build ( ) { \n - MaterialLargeImageCard card = new MaterialLargeImageCard ( mContext ) ; \n + return build ( new MaterialLargeImageCard ( mContext ) ) ; \n + } \n + \n + public MaterialLargeImageCard build ( MaterialLargeImageCard card ) { \n if ( mExternalCardThumbnail != null ) { \n card . setExternalCardThumbnail ( mExternalCardThumbnail ) ; \n } else { \n public class MaterialLargeImageCard extends BaseMaterialCard { \n \n SINGLE \n if ( mCardThumbnail == null ) { \n - mCardThumbnail = new MaterialLargeImageCardThumbnail ( mContext ) ; \n + mCardThumbnail = initializeCardThumbnail ( ) ; \n \n if ( mExternalCardThumbnail != null ) { \n mCardThumbnail . setExternalUsage ( true ) ; \n public class MaterialLargeImageCard extends BaseMaterialCard { \n addPartialOnClickListener ( CLICK_LISTENER_ACTIONAREA1_VIEW , onClickListener ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected MaterialLargeImageCardThumbnail initializeCardThumbnail ( ) { \n + return new MaterialLargeImageCardThumbnail ( mContext ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "added method to init a own MaterialLargeImageCard"} {"diff": " public final class ViewUtil { \n } \n \n public static boolean isNotSupportedViewClass ( View view ) { \n - return view instanceof ActionBarOverlayLayout ; \n + return view instanceof ActionBarOverlayLayout || isAndroidInternalViewClass ( view ) ; \n } \n \n public static boolean isLevelTwoView ( View view ) { \n public final class ViewUtil { \n return view . equals ( ViewInspector . viewRoot ) ; \n } \n \n + private static boolean isAndroidInternalViewClass ( View view ) { \n + String viewClassName = view . getClass ( ) . getName ( ) ; \n + return viewClassName . startsWith ( STRING0 ) || viewClassName . startsWith ( \n + STRING1 ) ; \n + } \n + \n private ViewUtil ( ) { \n throw new AssertionError ( STRING2 ) ; \n }", "msg_token": "Add android internals to isNotSupportedViewClass"} {"diff": " public abstract class ChunkOptionsPopupPanel extends MiniPopupPanel \n has ( STRING0 ) ; \n \n useCustomFigureCheckbox_ . setValue ( hasRelevantFigureSettings ) ; \n + if ( hasRelevantFigureSettings ) \n + useCustomFigureCheckbox_ . setVisible ( true ) ; \n figureDimensionsPanel_ . setVisible ( hasRelevantFigureSettings ) ; \n \n if ( has ( STRING1 ) )", "msg_token": "ensure checkbox visible if fig"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Expand DrawerLayout docs"} {"diff": " \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class App { \n \n public static void main ( String [ ] args ) { \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class Nazgul { \n \n private static Map < NazgulName , Nazgul > nazguls ; \n \n package NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public enum NazgulName { \n \n KHAMUL , MURAZOR , DWAR , JI_INDUR , AKHORAHIL , HOARMURATH , ADUNAPHEL , REN , UVATHA ;", "msg_token": "Added code comments for Multiton"} {"diff": " public class HighlyAvailableGraphDatabase extends AbstractGraphDatabase \n \n public synchronized void internalShutdown ( boolean attemptWaitForTransactionsToFinish ) \n { \n - msgLog . logMessage ( STRING0 + machineId + STRING1 + this + STRING2 + masterServer , true ) ; \n + msgLog . logMessage ( STRING0 + machineId + STRING1 + this + STRING2 + masterServer , new Exception ( STRING3 ) , true ) ; \n if ( this . updatePuller != null ) \n { \n msgLog . logMessage ( STRING4 , true ) ;", "msg_token": "Displays the stack trace to where the internal shutdown occured"} {"diff": " public class FailureDetectorModule \n { \n httpClientBinder ( binder ) \n . bindAsyncHttpClient ( STRING0 , ForFailureDetector . class ) \n + . withPrivateIoThreadPool ( ) \n . withTracing ( ) ; \n \n bindConfig ( binder ) . to ( FailureDetectorConfig . class ) ;", "msg_token": "Use a private I O thread pool for failure detector"} {"diff": " public class DocumentMapper implements ToXContent { \n \n private boolean hasNestedObjects = false ; \n \n - private final Query typeFilter ; \n - \n private final ReleasableLock mappingWriteLock ; \n private final ReentrantReadWriteLock mappingLock ; \n \n public class DocumentMapper implements ToXContent { \n meta ) ; \n this . documentParser = new DocumentParser ( indexSettings , docMapperParser , this , new ReleasableLock ( mappingLock . readLock ( ) ) ) ; \n \n - this . typeFilter = typeMapper ( ) . fieldType ( ) . termQuery ( type , null ) ; \n this . mappingWriteLock = new ReleasableLock ( mappingLock . writeLock ( ) ) ; \n this . mappingLock = mappingLock ; \n \n public class DocumentMapper implements ToXContent { \n } \n \n public Query typeFilter ( ) { \n - return this . typeFilter ; \n + return typeMapper ( ) . fieldType ( ) . termQuery ( type , null ) ; \n } \n \n public boolean hasNestedObjects ( ) {", "msg_token": "don t cache type filter in DocumentMapper"} {"diff": " public class NotificationActivator \n { \n if ( audioNotifierService == null ) \n { \n - ServiceReference serviceReference = bundleContext \n - . getServiceReference ( AudioNotifierService . class . getName ( ) ) ; \n - \n - audioNotifierService = ( AudioNotifierService ) bundleContext \n - . getService ( serviceReference ) ; \n + ServiceReference serviceReference \n + = bundleContext \n + . getServiceReference ( AudioNotifierService . class . getName ( ) ) ; \n + \n + if ( serviceReference != null ) \n + audioNotifierService \n + = ( AudioNotifierService ) \n + bundleContext . getService ( serviceReference ) ; \n } \n \n return audioNotifierService ;", "msg_token": "Prevents a NullPointerException"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - class ConfigurationClassBeanDefinitionReader { \n + public class ConfigurationClassBeanDefinitionReader { \n \n private static final String CONFIGURATION_CLASS_FULL = STRING0 ;", "msg_token": "Make ConfigurationClassBeanDefinitionReader public"} {"diff": " public class Configuration \n public Configuration ( File file , String configVersion ) \n { \n this . file = file ; \n + this . definedConfigVersion = configVersion ; \n String basePath = ( ( File ) ( FMLInjectionData . data ( ) [ NUMBER0 ] ) ) . getAbsolutePath ( ) . replace ( File . separatorChar , STRING0 ) . replace ( STRING1 , STRING2 ) ; \n String path = file . getAbsolutePath ( ) . replace ( File . separatorChar , STRING0 ) . replace ( STRING3 , STRING4 ) . replace ( basePath , STRING2 ) ; \n if ( PARENT != null ) \n public class Configuration \n { \n return file ; \n } \n - } \n + }", "msg_token": "Fixed missing assignment of constructor arg thanks Lunatrius"} {"diff": " public class DaemonListeners implements Disposable { \n return ; SINGLE \n } \n \n - stopDaemon ( true , STRING0 ) ; \n myDaemonCodeAnalyzer . hideLastIntentionHint ( ) ; \n } \n } , this ) ; \n public class DaemonListeners implements Disposable { \n } \n \n private static class MyEditorMouseListener extends EditorMouseAdapter { \n + @ notnull \n private final TooltipController myTooltipController ; \n \n - public MyEditorMouseListener ( TooltipController tooltipController ) { \n + public MyEditorMouseListener ( @ notnull TooltipController tooltipController ) { \n myTooltipController = tooltipController ; \n }", "msg_token": "do not stop daemon on caret movement"} {"diff": " public class EnglishGrammaticalRelations { \n new String [ ] { \n SINGLE \n SINGLE \n - STRING0 + copularWordRegex + STRING1 + timeWordRegex + STRING2 + timeWordRegex + STRING3 , \n + STRING0 + copularWordRegex + STRING1 + timeWordRegex + STRING2 + timeWordRegex + STRING4 + \n + SINGLE \n + SINGLE \n + STRING5 , \n \n SINGLE \n SINGLE", "msg_token": "Add a qualification to eliminate some overlap between parataxis and dobj"} {"diff": " public abstract class OioByteStreamChannel extends AbstractOioByteChannel { \n \n @ override \n protected int doReadBytes ( ByteBuf buf ) throws Exception { \n - int length = available ( ) ; \n - if ( length < NUMBER0 ) { \n - length = NUMBER0 ; \n - } \n - if ( length > buf . writableBytes ( ) ) { \n - length = buf . writableBytes ( ) ; \n - } \n + int length = Math . max ( NUMBER0 , Math . min ( available ( ) , buf . maxWritableBytes ( ) ) ) ; \n return buf . writeBytes ( is , length ) ; \n }", "msg_token": "Fix intermittent infinite loop in AbstractOioByteChannel doRead"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RequestMappingEndpoint extends AbstractEndpoint < Map < String , Object > \n protected void extractMethodMappings ( ApplicationContext applicationContext , \n Map < String , Object > result ) { \n if ( applicationContext != null ) { \n - Map < String , AbstractHandlerMethodMapping < ? > > mappings = new HashMap < String , AbstractHandlerMethodMapping < ? > > ( ) ; \n for ( String name : applicationContext . getBeansOfType ( \n AbstractHandlerMethodMapping . class ) . keySet ( ) ) { \n - mappings . put ( name , applicationContext . getBean ( name , \n - AbstractHandlerMethodMapping . class ) ) ; \n @ suppresswarnings ( STRING0 ) \n Map < ? , HandlerMethod > methods = applicationContext . getBean ( name , \n AbstractHandlerMethodMapping . class ) . getHandlerMethods ( ) ;", "msg_token": "Remove unused code"} {"diff": " public class ClassProto implements TypeProto { \n interfaces . put ( superclassInterface , null ) ; \n } \n } \n + if ( ! superclassProto . interfacesFullyResolved ) { \n + interfacesFullyResolved = false ; \n + } \n } \n } catch ( UnresolvedClassException ex ) { \n - SINGLE \n interfacesFullyResolved = false ; \n }", "msg_token": "Propagating interfacesFullyResolved from the parent"} {"diff": " public class BridgePowerManager implements IPowerManager { \n } \n \n @ override \n + public boolean isPowerSaveMode ( ) throws RemoteException { \n + return false ; \n + } \n + \n + @ override \n public IBinder asBinder ( ) { \n SINGLE \n return null ;", "msg_token": "Add missing abstract method override in BridgePowerManager"} {"diff": " public abstract class ActionPlaces { \n public static final String REMOTE_HOST_VIEW_POPUP = STRING0 ; \n public static final String REMOTE_HOST_DIALOG_POPUP = STRING1 ; \n \n + public static final String TFS_TREE_POPUP = STRING2 ; \n + \n private static final String [ ] ourToolbarPlaces = new String [ ] { PROJECT_VIEW_TOOLBAR , TESTTREE_VIEW_TOOLBAR , MAIN_TOOLBAR , \n ANT_EXPLORER_TOOLBAR , ANT_MESSAGES_TOOLBAR , COMPILER_MESSAGES_TOOLBAR , TODO_VIEW_TOOLBAR , STRUCTURE_VIEW_TOOLBAR , USAGE_VIEW_TOOLBAR , \n DEBUGGER_TOOLBAR , CALL_HIERARCHY_VIEW_TOOLBAR , METHOD_HIERARCHY_VIEW_TOOLBAR , TYPE_HIERARCHY_VIEW_TOOLBAR , JAVADOC_TOOLBAR , \n public abstract class ActionPlaces { \n METHOD_HIERARCHY_VIEW_POPUP , CALL_HIERARCHY_VIEW_POPUP , J2EE_ATTRIBUTES_VIEW_POPUP , J2EE_VIEW_POPUP , USAGE_VIEW_POPUP , \n STRUCTURE_VIEW_POPUP , TODO_VIEW_POPUP , COMPILER_MESSAGES_POPUP , ANT_MESSAGES_POPUP , ANT_EXPLORER_POPUP , UPDATE_POPUP , \n FILEVIEW_POPUP , CHECKOUT_POPUP , LVCS_DIRECTORY_HISTORY_POPUP , GUI_DESIGNER_EDITOR_POPUP , GUI_DESIGNER_COMPONENT_TREE_POPUP , GUI_DESIGNER_PROPERTY_INSPECTOR_POPUP , \n - CREATE_EJB_POPUP , CHANGES_VIEW_POPUP , REMOTE_HOST_VIEW_POPUP , REMOTE_HOST_DIALOG_POPUP , \n + CREATE_EJB_POPUP , CHANGES_VIEW_POPUP , REMOTE_HOST_VIEW_POPUP , REMOTE_HOST_DIALOG_POPUP , TFS_TREE_POPUP , \n } ; \n \n public static boolean isPopupPlace ( @ notnull String place ) {", "msg_token": "server browser uses platform standard Tree control instead of handmade implementation"} {"diff": " public class FloatingActionButton extends ImageView { \n mBackgroundTintMode , mRippleColor ) ; \n mImpl . setElevation ( elevation ) ; \n mImpl . setPressedTranslationZ ( pressedTranslationZ ) ; \n + \n + setClickable ( true ) ; \n } \n \n @ override \n public class FloatingActionButton extends ImageView { \n \n @ override \n public void setBackgroundDrawable ( Drawable background ) { \n - mImpl . setBackgroundDrawable ( background , mBackgroundTint , mBackgroundTintMode , mRippleColor ) ; \n + if ( mImpl != null ) { \n + mImpl . setBackgroundDrawable ( \n + background , mBackgroundTint , mBackgroundTintMode , mRippleColor ) ; \n + } \n } \n \n final int getSizeDimension ( ) {", "msg_token": "Fix NPE with XML attribute set clickable by default"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public final class HeartbeatContext { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public final class HeartbeatScheduler { \n COMMENT \n COMMENT \n public static void addTimer ( ScheduledTimer timer ) { \n + Preconditions . checkNotNull ( timer ) ; \n sLock . lock ( ) ; \n sTimers . put ( timer . getThreadName ( ) , timer ) ; \n sCondition . signal ( ) ; \n public final class HeartbeatScheduler { \n COMMENT \n COMMENT \n public static synchronized void removeTimer ( ScheduledTimer timer ) { \n + Preconditions . checkNotNull ( timer ) ; \n sLock . lock ( ) ; \n sTimers . remove ( timer . getThreadName ( ) ) ; \n sLock . unlock ( ) ;", "msg_token": "Addressing review comments"} {"diff": " public class LiveUpdatesSettingsDialogFragment extends DialogFragment { \n void runLiveUpdate ( final LocalIndexInfo info ) { \n final String fnExt = Algorithms . getFileNameWithoutExtension ( new File ( info . getFileName ( ) ) ) ; \n new PerformLiveUpdateAsyncTask ( getActivity ( ) , info ) . execute ( new String [ ] { fnExt } ) ; \n - getLiveUpdatesFragment ( ) . notifyLiveUpdatesChanged ( ) ; \n } \n \n private void updateSize ( String fileNameWithoutExtension ,", "msg_token": "Removed useless code"} {"diff": " public class RenderPipe extends TileEntitySpecialRenderer { \n GL11 . glPopMatrix ( ) ; \n } \n \n - public DisplayLiquidList getListFromBuffer ( LiquidStack stack , World world ) { \n + private DisplayLiquidList getListFromBuffer ( LiquidStack stack , World world ) { \n \n int liquidId = stack . itemID ; \n \n public class RenderPipe extends TileEntitySpecialRenderer { \n \n if ( liquidId < Block . blocksList . length && Block . blocksList [ liquidId ] != null ) { \n ForgeHooksClient . bindTexture ( Block . blocksList [ liquidId ] . getTextureFile ( ) , NUMBER0 ) ; \n - } else { \n + } else if ( Item . itemsList [ liquidId ] != null ) { \n ForgeHooksClient . bindTexture ( Item . itemsList [ liquidId ] . getTextureFile ( ) , NUMBER0 ) ; \n - } \n + } else { \n + return null ; \n + } \n return getDisplayLiquidLists ( liquidId , stack . itemMeta , world ) ; \n }", "msg_token": "Added a null check in PipeRender"} {"diff": " public class Solo { \n return viewFetcher . getView ( ImageButton . class , index ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n + public TextView getText ( String text ) \n + { \n + return viewFetcher . getView ( TextView . class , text ) ; \n + } \n + \n \n COMMENT \n COMMENT", "msg_token": "Added new method getText String text that returns a text view showing a certain text"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StreetfulStopLinker implements GraphBuilder { \n coordinates = new CoordinateArrayListSequence ( coordinateList ) ; \n } \n \n - LineString geometry = geometryFactory . createLineString ( coordinates ) ; \n + LineString geometry = geometryFactory . createLineString ( new \n + PackedCoordinateSequence . Double ( coordinates . toCoordinateArray ( ) ) ) ; \n LOG . trace ( STRING0 , other , distance , geometry ) ; \n new SimpleTransfer ( ts , other , distance , geometry ) ; \n n ++ ;", "msg_token": "Make graph serializable again"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OAuth2ClientAuthenticationProcessingFilterTests { \n OAuth2Request storedOAuth2Request = RequestTokenFactory . createOAuth2Request ( STRING0 , false , scopes ) ; \n this . authentication = new OAuth2Authentication ( storedOAuth2Request , null ) ; \n Mockito . when ( tokenServices . loadAuthentication ( STRING1 ) ) . thenReturn ( authentication ) ; \n - Authentication authentication = filter . attemptAuthentication ( null , null ) ; \n + Authentication authentication = filter . attemptAuthentication ( new MockHttpServletRequest ( ) , null ) ; \n assertEquals ( this . authentication , authentication ) ; \n }", "msg_token": "Fix NPE in test"} {"diff": " public class OHazelcastDistributedMessageService implements ODistributedMessageS \n ODistributedServerLog . debug ( this , manager . getLocalNodeName ( ) , response . getExecutorNodeName ( ) , DIRECTION . IN , \n STRING0 , reqId , \n OGlobalConfiguration . DISTRIBUTED_ASYNCH_RESPONSES_TIMEOUT . getValueAsLong ( ) ) ; \n - } \n - \n - if ( asynchMgr . addResponse ( response ) ) \n + } else if ( asynchMgr . addResponse ( response ) ) \n SINGLE \n responsesByRequestIds . remove ( reqId ) ;", "msg_token": "Fixed problem on asynch messages after timeout"} {"diff": " public class TaskAdapter extends CursorAdapter implements Filterable { \n \n public int computeFullRowHeight ( ) { \n DisplayMetrics metrics = resources . getDisplayMetrics ( ) ; \n - return minRowHeight + ( int ) ( NUMBER0 * metrics . density ) ; \n + if ( fontSize < NUMBER1 ) { \n + return ( int ) ( NUMBER2 * metrics . density ) ; \n + } else { \n + return minRowHeight + ( int ) ( NUMBER0 * metrics . density ) ; \n + } \n } \n \n private void startDetailThread ( ) {", "msg_token": "Fixed a weird subtasks row resizing bug when using small fonts"} {"diff": " public class PyHighlighter extends SyntaxHighlighterBase { \n static final TextAttributesKey PY_KEYWORD = _copy ( STRING0 , KEYWORD ) ; \n \n public static final TextAttributesKey PY_BYTE_STRING = _copy ( STRING1 , STRING ) ; \n - public static final TextAttributesKey PY_UNICODE_STRING = _copy ( STRING2 , STRING ) ; \n + public static final TextAttributesKey PY_UNICODE_STRING = TextAttributesKey . createTextAttributesKey ( \n + STRING2 , new TextAttributes ( new Color ( NUMBER0 , NUMBER1 , NUMBER1 ) , null , null , null , STRING . getDefaultAttributes ( ) . getFontType ( ) ) \n + ) ; \n public static final TextAttributesKey PY_NUMBER = _copy ( STRING3 , NUMBER ) ; \n \n static final TextAttributesKey PY_LINE_COMMENT = _copy ( STRING4 , LINE_COMMENT ) ;", "msg_token": "Updated default Python colors to distinguish Unicode"} {"diff": " \n COMMENT \n COMMENT \n \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n public class OAuth2SecurityExpressionMethods { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class OAuth2SecurityExpressionMethods { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public boolean hasScopeMatching ( String scopeRegex ) { \n public class OAuth2SecurityExpressionMethods { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public boolean hasAnyScopeMatching ( String . . . scopesRegex ) {", "msg_token": "Add some javadocs clarifying throwOnError"} {"diff": " public class Task implements Named , StudyOrderable { \n taskFiles . put ( name , taskFile ) ; \n } \n \n + public void addTaskFile ( @ notnull final TaskFile taskFile ) { \n + taskFiles . put ( taskFile . name , taskFile ) ; \n + } \n + \n @ nullable \n public TaskFile getFile ( @ notnull final String fileName ) { \n return taskFiles . get ( fileName ) ;", "msg_token": "added task file to the task"} {"diff": " public class BasicTest extends HazelcastTestSupport { \n \n runnable = new Runnable ( ) { \n public void run ( ) { \n + map . addEntryListener ( new EntryAdapter < String , String > ( ) , \n + ( String ) null , \n + true ) ; \n + } \n + } ; \n + assertRunnableThrowsNullPointerException ( runnable , STRING0 ) ; \n + \n + runnable = new Runnable ( ) { \n + public void run ( ) { \n + map . addEntryListener ( new EntryAdapter < String , String > ( ) , \n + new EqualPredicate ( ) , \n + ( String ) null , \n + true ) ; \n + } \n + } ; \n + assertRunnableThrowsNullPointerException ( runnable , \n + STRING1 ) ; \n + \n + runnable = new Runnable ( ) { \n + public void run ( ) { \n map . getEntryView ( null ) ; \n } \n } ;", "msg_token": "remove undesired formatting added by IntelliJ"} {"diff": " class Parser { \n return ImmutableList . copyOf ( arguments ) ; \n } \n \n + SINGLE \n SINGLE \n SINGLE \n private List < Statement > parseSuite ( ) { \n class Parser { \n } \n expect ( TokenKind . OUTDENT ) ; \n } else { \n - Statement stmt = parseSmallStatement ( ) ; \n - list . add ( stmt ) ; \n - expect ( TokenKind . NEWLINE ) ; \n + parseSimpleStatement ( list ) ; \n } \n return list ; \n } \n public class ParserTest extends AbstractParserTestCase { \n } \n \n @ test \n + public void testDefSingleLine ( ) throws Exception { \n + List < Statement > statements = parseFileForSkylark ( \n + STRING0 ) ; \n + FunctionDefStatement stmt = ( FunctionDefStatement ) statements . get ( NUMBER0 ) ; \n + assertThat ( stmt . getStatements ( ) ) . hasSize ( NUMBER1 ) ; \n + } \n + \n + @ test \n public void testSkipIfBlock ( ) throws Exception { \n SINGLE \n List < Statement > stmts = parseFile (", "msg_token": "allow multiple statements on the same line as the colon"} {"diff": " public interface SysCheck { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n boolean validate ( ) ; \n }", "msg_token": "Remove invalid true tag"} {"diff": " public final class ModuleLoader { \n } \n } , \n \n - @ gwtincompatible SINGLE \n + @ gwtincompatible ( STRING0 ) \n ABSOLUTE { \n @ override \n public String apply ( String path ) {", "msg_token": "Provide argument for GwtIncompatible"} {"diff": " public final class UnsignedLongs { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private static long flip ( long a ) {", "msg_token": "Fix broken comment"} {"diff": " public class CopyIntoPanel { \n return hasErrorsState ; \n } \n \n - public void setLabelWight ( int wight ) { \n - copyIntoLabel . setPreferredSize ( new Dimension ( wight , - NUMBER0 ) ) ; \n + public void setLabelWidth ( int width ) { \n + copyIntoLabel . setPreferredSize ( new Dimension ( width , - NUMBER0 ) ) ; \n } \n } \n public abstract class CreateJavaScriptLibraryDialogBase extends DialogWrapper im \n \n copyJsFilesPanel = new CopyIntoPanel ( project , defaultPathToJsFile , STRING0 ) ; \n copyJsFilesPanel . addValidityListener ( validityListener ) ; \n - copyJsFilesPanel . setLabelWight ( NUMBER1 ) ; \n + copyJsFilesPanel . setLabelWidth ( NUMBER1 ) ; \n copyJsFilesPlace . add ( copyJsFilesPanel . getContentPane ( ) , BorderLayout . CENTER ) ; \n \n copyLibraryFilePanel = new CopyIntoPanel ( project , defaultPathToJar , STRING1 ) ; \n copyLibraryFilePanel . addValidityListener ( validityListener ) ; \n - copyLibraryFilePanel . setLabelWight ( NUMBER1 ) ; \n + copyLibraryFilePanel . setLabelWidth ( NUMBER1 ) ; \n copyLibraryPlace . add ( copyLibraryFilePanel . getContentPane ( ) , BorderLayout . CENTER ) ; \n \n if ( ! showPathToJarPanel ) {", "msg_token": "Fix lexical mismatch"} {"diff": " public final class PrivateClasses { \n COMMENT \n COMMENT \n COMMENT \n - public static interface HelloCamel { \n + public interface HelloCamel { \n String sayHello ( String input ) ; \n } \n \n public class JcloudsBlobStoreConsumer extends JcloudsConsumer implements BatchCo \n \n @ override \n protected int poll ( ) throws Exception { \n - int messages = NUMBER0 ; \n shutdownRunningTask = null ; \n pendingExchanges = NUMBER0 ; \n \n public class JcloudsBlobStoreConsumer extends JcloudsConsumer implements BatchCo \n ListContainerOptions opt = new ListContainerOptions ( ) ; \n \n for ( StorageMetadata md : blobStore . list ( container , opt . maxResults ( maxMessagesPerPoll ) ) ) { \n - messages ++ ; \n String blobName = md . getName ( ) ; \n Object body = JcloudsBlobStoreHelper . readBlob ( blobStore , container , blobName , Thread . currentThread ( ) . getContextClassLoader ( ) ) ; \n Exchange exchange = endpoint . createExchange ( ) ;", "msg_token": "Fixed the CS errors"} {"diff": " public enum OGlobalConfiguration { \n BLUEPRINTS_TX_MODE ( STRING0 , \n STRING1 , Integer . class , NUMBER0 ) , \n \n - SINGLE \n - MVRBTREE_TIMEOUT ( STRING2 , STRING3 , Integer . class , NUMBER1 ) , \n - \n + SINGLE \n INDEX_AUTO_REBUILD_AFTER_NOTSOFTCLOSE ( STRING4 , \n STRING5 , Boolean . class , true ) , \n \n public enum OGlobalConfiguration { \n STRING6 , \n Integer . class , NUMBER2 ) , \n \n + SINGLE \n + MVRBTREE_TIMEOUT ( STRING2 , STRING3 , Integer . class , NUMBER1 ) , \n + \n MVRBTREE_NODE_PAGE_SIZE ( STRING7 , \n STRING8 , Integer . class , NUMBER3 ) , \n \n public enum OGlobalConfiguration { \n \n USE_LHPEPS_CLUSTER ( STRING9 , STRING10 \n + STRING11 , Boolean . class , Boolean . FALSE ) , \n + \n SINGLE \n NETWORK_SOCKET_BUFFER_SIZE ( STRING12 , STRING13 , Integer . class , NUMBER4 ) ,", "msg_token": "reordered global parameters"} {"diff": " public final class GsmDataConnectionTracker extends DataConnectionTracker { \n @ override \n protected boolean isApnTypeActive ( String type ) { \n SINGLE \n + if ( Phone . APN_TYPE_DUN . equals ( type ) ) { \n + ApnSetting dunApn = fetchDunApn ( ) ; \n + if ( dunApn != null ) { \n + return ( ( mActiveApn != null ) && ( dunApn . toString ( ) . equals ( mActiveApn . toString ( ) ) ) ) ; \n + } \n + } \n return mActiveApn != null && mActiveApn . canHandleType ( type ) ; \n }", "msg_token": "Don t accept a user defined dun capable connection"} {"diff": " import NAMESPACE ; \n \n @ builder @ slf4j \n public class Features { \n - SINGLE \n public final static String LABEL = STRING0 ; \n public final static String LABEL_FEATURE_NAME = STRING1 ; \n public final static String MISS = STRING2 ; \n public class Features { \n static Pair < String , String > getFamily ( String name ) { \n int pos = name . indexOf ( FAMILY_SEPARATOR ) ; \n if ( pos == - NUMBER0 ) { \n - if ( name . compareToIgnoreCase ( LABEL ) == NUMBER1 ) { \n + if ( name . compareTo ( LABEL ) == NUMBER1 ) { \n return new ImmutablePair < > ( LABEL , LABEL_FEATURE_NAME ) ; \n } else if ( ! name . isEmpty ( ) ) { \n return new ImmutablePair < > ( STRING1 , name ) ;", "msg_token": "Revert allow lower case since spark hql select will generate lower case label"} {"diff": " class DrawerUtils { \n public static boolean setRecyclerViewSelection ( DrawerBuilder drawer , int position , boolean fireOnClick , IDrawerItem drawerItem ) { \n if ( position >= - NUMBER0 ) { \n SINGLE \n - if ( drawer . mAdapter != null && ( position ) > - NUMBER0 ) { \n + if ( drawer . mAdapter != null ) { \n drawer . resetStickyFooterSelection ( ) ; \n drawer . mAdapter . handleSelection ( null , position ) ; \n drawer . mCurrentSelection = position ;", "msg_token": "Fixed deselection of all items"} {"diff": " public class HgChangeProvider implements ChangeProvider { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n processChange ( \n null , \n HgCurrentContentRevision . create ( afterFile , currentNumber ) , \n - HgChangeProvider . COPIED , \n + FileStatus . ADDED , \n builder , \n vcsKey \n ) ;", "msg_token": "exception during annotate copied file fixed"} {"diff": " public abstract class LayoutInflater { \n SINGLE \n mConstructorArgs [ NUMBER0 ] = lastContext ; \n mConstructorArgs [ NUMBER1 ] = null ; \n - } \n \n - Trace . traceEnd ( Trace . TRACE_TAG_VIEW ) ; \n + Trace . traceEnd ( Trace . TRACE_TAG_VIEW ) ; \n + } \n \n return result ; \n }", "msg_token": "Fix trace end in inflate"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IndexJoinOptimizer \n } \n \n @ override \n - public PlanNode optimize ( PlanNode plan , Session session , Map < Symbol , com . facebook . presto . spi . type . Type > types , SymbolAllocator symbolAllocator , PlanNodeIdAllocator idAllocator ) \n + public PlanNode optimize ( PlanNode plan , Session session , Map < Symbol , Type > types , SymbolAllocator symbolAllocator , PlanNodeIdAllocator idAllocator ) \n { \n requireNonNull ( plan , STRING0 ) ; \n requireNonNull ( session , STRING1 ) ;", "msg_token": "Remove qualified name class reference"} {"diff": " public class FeaturesConfig \n private boolean optimizeHashGeneration = true ; \n private boolean optimizeSingleDistinct = true ; \n private boolean pushTableWriteThroughUnion = true ; \n - private boolean intermediateAggregationsEnabled = false ; \n + private boolean intermediateAggregationsEnabled ; \n \n - private boolean columnarProcessing = false ; \n - private boolean columnarProcessingDictionary = false ; \n - private boolean dictionaryAggregation = false ; \n + private boolean columnarProcessing ; \n + private boolean columnarProcessingDictionary ; \n + private boolean dictionaryAggregation ; \n \n @ legacyconfig ( STRING0 ) \n @ config ( STRING1 )", "msg_token": "Remove unnecessary initialization"} {"diff": " public class GdxSetupUI extends JFrame { \n } \n } \n \n + if ( modules . contains ( ProjectType . IOSMOE ) ) { \n + if ( System . getenv ( STRING0 ) == null ) { \n + JOptionPane . showMessageDialog ( this , STRING1 ) ; \n + return ; \n + } \n + } \n + \n if ( ! GdxSetup . isEmptyDirectory ( destination ) ) { \n int value = JOptionPane . showConfirmDialog ( this , STRING2 , STRING3 , JOptionPane . YES_NO_OPTION ) ; \n if ( value != NUMBER0 ) {", "msg_token": "Add check for MOE installation before allowing a project with moe to be generated"} {"diff": " public class LiveTemplateCompletionContributor extends CompletionContributor { \n protected void addCompletions ( @ notnull CompletionParameters parameters , \n ProcessingContext context , \n @ notnull CompletionResultSet result ) { \n - if ( parameters . getInvocationCount ( ) > NUMBER0 ) return ; SINGLE \n - \n final PsiFile file = parameters . getPosition ( ) . getContainingFile ( ) ; \n final int offset = parameters . getOffset ( ) ; \n if ( Registry . is ( STRING0 ) ) { \n public class LiveTemplateCompletionContributor extends CompletionContributor { \n return ; \n } \n \n + if ( parameters . getInvocationCount ( ) > NUMBER0 ) return ; SINGLE \n + \n final String prefix = result . getPrefixMatcher ( ) . getPrefix ( ) ; \n final TemplateImpl template = findApplicableTemplate ( file , offset , prefix ) ; \n if ( template != null ) {", "msg_token": "if showing live templates in completion show them in explicit one as well"} {"diff": " public class RefElementNode extends SuppressableInspectionTreeNode { \n \n @ override \n public void visitProblemSeverities ( FactoryMap < HighlightDisplayLevel , Integer > counter ) { \n - if ( isLeaf ( ) ) { \n + if ( isLeaf ( ) && ! myPresentation . isElementIgnored ( getElement ( ) ) ) { \n counter . put ( HighlightDisplayLevel . WARNING , counter . get ( HighlightDisplayLevel . WARNING ) + NUMBER0 ) ; \n return ; \n }", "msg_token": "do not count resolved nodes for unused declaration inspection"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectTemplateRegistry { \n } \n } \n \n + @ notnull \n public List < ProjectTemplateDescriptor > getTemplates ( List < String > tags ) { \n + if ( tags == null || tags . isEmpty ( ) ) { \n + return Arrays . asList ( ) ; \n + } \n + \n List < ProjectTemplateDescriptor > templateDescriptors = new ArrayList < > ( ) ; \n \n templates . entrySet ( )", "msg_token": "Fix NPE when there is no tags"} {"diff": " public class AsyncImageView extends greendroid . widget . AsyncImageView { \n if ( cacheImage != null && cacheURL . equals ( url ) && ! TextUtils . isEmpty ( url ) ) { \n setImageBitmap ( cacheImage ) ; \n return ; \n - } \n - else if ( imageDiskCache != null && imageDiskCache . contains ( url ) ) { \n + } else if ( url != null && imageDiskCache != null && imageDiskCache . contains ( url ) ) { \n try { \n cacheImage = imageDiskCache . get ( url ) ; \n setImageBitmap ( cacheImage ) ;", "msg_token": "Fixed a null pointer exception in AsyncImageView"} {"diff": " public class ToDataTableTest { \n } \n \n @ test \n + public void mixed_case_enum_members_shall_still_work_even_when_starts_from_lower_case ( ) { \n + final List < PojoWithEnum > actual = tc . toList ( PojoWithEnum . class , TableParser . parse ( STRING0 + \n + STRING1 + \n + STRING2 + \n + STRING0 , PARAMETER_INFO ) \n + ) ; \n + assertEquals ( STRING3 , actual . toString ( ) ) ; \n + } \n + \n + @ test \n public void enum_value_should_be_null_when_text_omitted_for_plain_enum ( ) { \n final List < AnEnum > actual = tc . toList ( AnEnum . class , TableParser . parse ( STRING0 + \n STRING4 + \n public class ToDataTableTest { \n } \n \n public enum AnEnum { \n - yes , no \n + yes , no , mayBeMixedCase \n } \n \n public static class PojoWithEnum {", "msg_token": "custom enum converters do not fully support mixed case enum members when they start with lower case letter"} {"diff": " public class GitInit extends DumbAwareAction { \n } \n \n Git git = ServiceManager . getService ( Git . class ) ; \n - \n + GitVcs vcs = GitVcs . getInstance ( project ) ; \n GitCommandResult result = git . init ( project , root ) ; \n if ( ! result . success ( ) ) { \n - GitUIUtil . notify ( GitVcs . IMPORTANT_ERROR_NOTIFICATION , project , STRING0 , result . getErrorOutputAsHtmlString ( ) , \n - NotificationType . ERROR , null ) ; \n + if ( vcs != null && vcs . getExecutableValidator ( ) . isExecutableValid ( ) ) { \n + GitUIUtil . notify ( GitVcs . IMPORTANT_ERROR_NOTIFICATION , project , STRING0 , result . getErrorOutputAsHtmlString ( ) , \n + NotificationType . ERROR , null ) ; \n + } \n return ; \n }", "msg_token": "don t show the error if executable is not valid"} {"diff": " public class DashFavoritesFragment extends DashBaseFragment { \n direction . setImageDrawable ( draw ) ; \n } \n \n - public void updateArrows ( float value ) { \n + public void updateCompassValue ( float value ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "revert accidental change"} {"diff": " public class LocalTextBody extends TextBody { \n COMMENT \n COMMENT \n COMMENT \n - private String mBodyForDisplay ; \n - \n - public LocalTextBody ( String body ) { \n - super ( body ) ; \n - } \n + private final String mBodyForDisplay ; \n \n public LocalTextBody ( String body , String bodyForDisplay ) { \n super ( body ) ; \n public class LocalTextBody extends TextBody { \n return mBodyForDisplay ; \n } \n \n - public void setBodyForDisplay ( String mBodyForDisplay ) { \n - this . mBodyForDisplay = mBodyForDisplay ; \n - } \n - \n } SINGLE", "msg_token": "Removed unused methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SearchDialog extends DialogWrapper implements ConfigurationCreator \n options . setCaseSensitiveMatch ( caseSensitiveMatch . isSelected ( ) ) ; \n } \n \n - @ notnull \n - @ override \n - protected Action [ ] createActions ( ) { \n - return new Action [ ] { getOKAction ( ) , getCancelAction ( ) , getHelpAction ( ) } ; \n - } \n - \n @ override \n protected String getDimensionServiceKey ( ) { \n return STRING0 ; \n public class SearchDialog extends DialogWrapper implements ConfigurationCreator \n } \n \n @ override \n - protected void doHelpAction ( ) { \n - HelpManager . getInstance ( ) . invokeHelp ( STRING1 ) ; \n + protected String getHelpId ( ) { \n + return STRING1 ; \n } \n \n public SearchContext getSearchContext ( ) {", "msg_token": "simplify actions creation"} {"diff": " public class SourceVimCommands \n \n $wnd . require ( STRING0 ) . CodeMirror . Vim . defineEx ( STRING1 , STRING2 , callback ) ; \n $wnd . require ( STRING0 ) . CodeMirror . Vim . defineEx ( STRING3 , STRING4 , callback ) ; \n + $wnd . require ( STRING0 ) . CodeMirror . Vim . defineEx ( STRING5 , STRING6 , callback ) ; \n \n } - * / ;", "msg_token": "make tabedit an alias for edit tabe e"} {"diff": " public class ShardMetadataRecordCursor \n private static List < String > createQualifiedColumnName ( ) \n { \n return ImmutableList . < String > builder ( ) \n - . add ( STRING0 + STRING1 + COLUMNS . get ( NUMBER0 ) . getName ( ) ) \n - . add ( STRING0 + STRING1 + COLUMNS . get ( NUMBER1 ) . getName ( ) ) \n + . add ( STRING2 ) \n + . add ( STRING3 ) \n . add ( STRING4 + STRING1 + COLUMNS . get ( NUMBER2 ) . getName ( ) ) \n . add ( STRING4 + STRING1 + COLUMNS . get ( NUMBER3 ) . getName ( ) ) \n . add ( STRING4 + STRING1 + COLUMNS . get ( NUMBER4 ) . getName ( ) )", "msg_token": "Fix column names for Raptor metadata tables"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ShareUtils { \n COMMENT \n COMMENT \n COMMENT \n - public static void startShareIntentChooser ( Activity activity , String message , int titleResId ) { \n + public static void startShareIntentChooser ( Activity activity , String message , \n + @ stringres int titleResId ) { \n IntentBuilder ib = ShareCompat . IntentBuilder . from ( activity ) ; \n ib . setText ( message ) ; \n ib . setChooserTitle ( titleResId ) ;", "msg_token": "Try out StringRes annotation"} {"diff": " public class AnnotationBoTest { \n Assert . assertEquals ( annotation . getValueType ( ) , decodedAnnotation . getValueType ( ) ) ; \n Assert . assertArrayEquals ( annotation . getByteValue ( ) , decodedAnnotation . getByteValue ( ) ) ; \n \n - int i = NUMBER0 < < NUMBER1 ; \n - System . out . println ( i ) ; \n - i = i < < NUMBER2 ; \n - System . out . println ( i ) ; \n - i = i < < NUMBER2 ; \n - System . out . println ( i ) ; \n }", "msg_token": "remove unused code"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class NewElementSamePlaceAction extends NewElementAction { \n @ override \n public class NewElementSamePlaceAction extends NewElementAction { \n protected boolean isEnabled ( AnActionEvent e ) { \n return LangDataKeys . IDE_VIEW . getData ( e . getDataContext ( ) ) != null ; \n } \n + \n + protected void showPopup ( DataContext context ) { \n + ListPopup popup = createPopup ( context ) ; \n + Project project = CommonDataKeys . PROJECT . getData ( context ) ; \n + if ( project != null ) { \n + popup . showCenteredInCurrentWindow ( project ) ; \n + } \n + else { \n + popup . showInBestPositionFor ( context ) ; \n + } \n + } \n }", "msg_token": "show new element in directory popup in the middle of the window"} {"diff": " import NAMESPACE ; \n public class CookieParameter extends AbstractParameter implements Parameter { ; \n String type ; \n String format ; \n + String collectionFormat ; \n \n public CookieParameter ( ) { \n super . setIn ( STRING0 ) ; \n public class CookieParameter extends AbstractParameter implements Parameter { ; \n this . setName ( name ) ; \n return this ; \n } \n + public CookieParameter collectionFormat ( String collectionFormat ) { \n + this . setCollectionFormat ( collectionFormat ) ; \n + return this ; \n + } \n \n public String getType ( ) { \n return type ; \n public class CookieParameter extends AbstractParameter implements Parameter { ; \n this . format = format ; \n } \n \n + public String getCollectionFormat ( ) { \n + return collectionFormat ; \n + } \n + public void setCollectionFormat ( String collectionFormat ) { \n + this . collectionFormat = collectionFormat ; \n + } \n + \n public void setProperty ( Property property ) { \n this . type = property . getType ( ) ; \n this . format = property . getFormat ( ) ;", "msg_token": "added collection format"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public final class Util { \n out . write ( buffer ) ; \n } \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static void readFully ( InputStream in , byte [ ] dst ) throws IOException { \n readFully ( in , dst , NUMBER0 , dst . length ) ; \n }", "msg_token": "Fix checkstyle errors"} {"diff": " public class SASLAuthentication { \n } \n } \n \n - private boolean doPlainAuthentication ( Element doc ) { \n + private boolean doPlainAuthentication ( Element doc ) \n + throws DocumentException , IOException , XmlPullParserException { \n String username = STRING0 ; \n String password = STRING0 ; \n String response = doc . getTextTrim ( ) ; \n + if ( response == null || response . length ( ) == NUMBER0 ) { \n + SINGLE \n + sendChallenge ( new byte [ NUMBER0 ] ) ; \n + SINGLE \n + doc = reader . parseDocument ( ) . getRootElement ( ) ; \n + if ( doc != null && doc . getTextTrim ( ) . length ( ) > NUMBER0 ) { \n + response = doc . getTextTrim ( ) ; \n + } \n + } \n + \n if ( response != null && response . length ( ) > NUMBER0 ) { \n SINGLE \n String data = StringUtils . decodeBase64 ( response ) ;", "msg_token": "Send a challenge when SASL PLAIN auth packet doesn t include extra info"} {"diff": " public class RetrofitError extends RuntimeException { \n return response ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated public boolean isNetworkError ( ) { \n - return kind == Kind . NETWORK ; \n - } \n - \n COMMENT \n public Kind getKind ( ) { \n return kind ; \n public class RestAdapterTest { \n fail ( STRING0 ) ; \n } catch ( RetrofitError e ) { \n assertThat ( e . getKind ( ) ) . isEqualTo ( RetrofitError . Kind . NETWORK ) ; \n - assertThat ( e . isNetworkError ( ) ) ; \n assertThat ( e . getCause ( ) ) . isInstanceOf ( IOException . class ) ; \n assertThat ( e . getCause ( ) ) . hasMessage ( STRING1 ) ; \n }", "msg_token": "Remove deprecated error identifier"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MoveClassTest extends RefactoringTestCase { \n fail ( STRING0 ) ; \n } \n catch ( BaseRefactoringProcessor . ConflictsInTestsException e ) { \n - assertEquals ( STRING1 , e . getMessage ( ) ) ; \n + assertEquals ( STRING2 , e . getMessage ( ) ) ; \n } \n }", "msg_token": "update test data"} {"diff": " public interface SearchSpecification extends Parcelable { \n } \n \n @ override \n + public int hashCode ( ) { \n + int result = NUMBER0 ; \n + result = NUMBER1 * result + attribute . hashCode ( ) ; \n + result = NUMBER1 * result + field . hashCode ( ) ; \n + result = NUMBER1 * result + value . hashCode ( ) ; \n + \n + return result ; \n + } \n + \n + @ override \n public int describeContents ( ) { \n return NUMBER2 ; \n } \n public interface SearchSpecification extends Parcelable { \n } \n } ; \n } \n - } \n + }", "msg_token": "Add missing hashCode method to SearchCondition"} {"diff": " public class LegacySSTableTest extends SchemaLoader \n public void buildTestSSTable ( ) throws IOException \n { \n SINGLE \n - Descriptor dest = getDescriptor ( Descriptor . CURRENT_VERSION ) ; \n + Descriptor dest = getDescriptor ( Descriptor . Version . current_version ) ; \n assert dest . directory . mkdirs ( ) : STRING0 + dest . directory + STRING1 ; \n \n SSTableReader ssTable = SSTableUtils . prepare ( ) . ks ( KSNAME ) . cf ( CFNAME ) . dest ( dest ) . write ( TEST_DATA ) ;", "msg_token": "update buildTestSSTable to compile"} {"diff": " final public class H2O { \n SINGLE \n SINGLE \n SINGLE \n - new UDPReceiverThread ( ) . start ( ) ; \n + if ( H2O . ARGS . useUDP ) \n + new UDPReceiverThread ( ) . start ( ) ; \n \n SINGLE \n SINGLE", "msg_token": "Do not start UDPRecevier thread unless running with useUDP option as it is no longer needed"} {"diff": " public class TestNGRunnableState extends JavaCommandLineState \n } \n \n if ( outputDirectory != null && ! STRING0 . equals ( outputDirectory ) ) { \n - javaParameters . getProgramParametersList ( ) . add ( TestNGCommandLineArgs . OUTDIR_COMMAND_OPT , STRING1 + outputDirectory + STRING1 ) ; \n + javaParameters . getProgramParametersList ( ) . add ( TestNGCommandLineArgs . OUTDIR_COMMAND_OPT , outputDirectory ) ; \n } \n \n SINGLE \n public class TestNGRunnableState extends JavaCommandLineState \n \n if ( sources . length > NUMBER0 ) { \n StringBuffer sb = new StringBuffer ( ) ; \n - sb . append ( STRING1 ) ; \n \n for ( int i = NUMBER0 ; i < sources . length ; i ++ ) { \n VirtualFile source = sources [ i ] ; \n public class TestNGRunnableState extends JavaCommandLineState \n } \n \n } \n - \n - sb . append ( STRING1 ) ; \n + \n javaParameters . getProgramParametersList ( ) . add ( TestNGCommandLineArgs . SRC_COMMAND_OPT , sb . toString ( ) ) ; \n }", "msg_token": "Remove quotes around output directory and source dirs"} {"diff": " public final class Timestamped < T > { \n if ( this == obj ) { \n return true ; \n } \n + if ( obj == null ) { \n + return false ; \n + } \n if ( ! ( obj instanceof Timestamped ) ) { \n return false ; \n } \n public final class Timestamped < T > { \n public int hashCode ( ) { \n final int prime = NUMBER0 ; \n int result = NUMBER1 ; \n - result = prime * result + ( int ) ( timestampMillis ^ ( timestampMillis ) ) ; \n + result = prime * result + ( int ) ( timestampMillis ^ ( timestampMillis > > > NUMBER2 ) ) ; \n result = prime * result + ( ( value == null ) ? NUMBER3 : value . hashCode ( ) ) ; \n return result ; \n }", "msg_token": "Fix bugs in equals and hashCode"} {"diff": " public class TextField extends Widget implements Disableable { \n static private final Vector2 tmp2 = new Vector2 ( ) ; \n static private final Vector2 tmp3 = new Vector2 ( ) ; \n \n + static public float keyRepeatInitialTime = FLOAT0 ; \n + static public float keyRepeatTime = FLOAT1 ; \n + \n protected String text ; \n protected int cursor , selectionStart ; \n protected boolean hasSelection ; \n public class TextField extends Widget implements Disableable { \n long lastBlink ; \n \n KeyRepeatTask keyRepeatTask = new KeyRepeatTask ( ) ; \n - public static float keyRepeatInitialTime = FLOAT0 ; \n - public static float keyRepeatTime = FLOAT1 ; \n - \n + \n public TextField ( String text , Skin skin ) { \n this ( text , skin . get ( TextFieldStyle . class ) ) ; \n }", "msg_token": "moved static properties to the top"} {"diff": " public class ChineseConverterTest extends ResourceActivitiTestCase { \n } \n \n protected void deployProcess ( BpmnModel bpmnModel ) { \n - byte [ ] xml = new BpmnXMLConverter ( ) . convertToXML ( bpmnModel ) ; \n - try { \n - Deployment deployment = processEngine . getRepositoryService ( ) . createDeployment ( ) . name ( STRING0 ) . addString ( STRING1 , new String ( xml ) ) . deploy ( ) ; \n - processEngine . getRepositoryService ( ) . deleteDeployment ( deployment . getId ( ) ) ; \n - } finally { \n - processEngine . close ( ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "Removing one of chinese test"} {"diff": " public class RobotstxtParser { \n \n if ( line . matches ( PATTERNS_USERAGENT ) ) { \n String ua = line . substring ( PATTERNS_USERAGENT_LENGTH ) . trim ( ) . toLowerCase ( ) ; \n - inMatchingUserAgent = STRING0 . equals ( ua ) || ua . contains ( myUserAgent ) ; \n + inMatchingUserAgent = STRING0 . equals ( ua ) || ua . contains ( myUserAgent . toLowerCase ( ) ) ; \n } else if ( line . matches ( PATTERNS_DISALLOW ) ) { \n if ( ! inMatchingUserAgent ) { \n continue ;", "msg_token": "Converted crawler user agent string to lowercase to address bug with non lowercase values"} {"diff": " public final class DateView extends TextView { \n final String action = intent . getAction ( ) ; \n if ( Intent . ACTION_TIME_TICK . equals ( action ) \n || Intent . ACTION_TIME_CHANGED . equals ( action ) \n - || Intent . ACTION_TIMEZONE_CHANGED . equals ( action ) ) { \n + || Intent . ACTION_TIMEZONE_CHANGED . equals ( action ) \n + || Intent . ACTION_LOCALE_CHANGED . equals ( action ) ) { \n updateClock ( ) ; \n } \n } \n public final class DateView extends TextView { \n filter . addAction ( Intent . ACTION_TIME_TICK ) ; \n filter . addAction ( Intent . ACTION_TIME_CHANGED ) ; \n filter . addAction ( Intent . ACTION_TIMEZONE_CHANGED ) ; \n + filter . addAction ( Intent . ACTION_LOCALE_CHANGED ) ; \n mContext . registerReceiver ( mIntentReceiver , filter , null , null ) ; \n updateClock ( ) ; \n } else {", "msg_token": "Use Intent ACTION_LOCALE_CHANGED to refresh notification bar clock"} {"diff": " public class ReceiveExternalFilesActivity extends FileActivity \n \n List < HashMap < String , Object > > data = new LinkedList < > ( ) ; \n for ( OCFile f : files ) { \n - if ( f . isFolder ( ) ) { \n - HashMap < String , Object > h = new HashMap < > ( ) ; \n - h . put ( STRING0 , f ) ; \n - data . add ( h ) ; \n - } \n + HashMap < String , Object > h = new HashMap < > ( ) ; \n + h . put ( STRING0 , f ) ; \n + data . add ( h ) ; \n } \n \n UploaderAdapter sa = new UploaderAdapter ( this ,", "msg_token": "revert filtering out files in the external file upload view"} {"diff": " public final class ActionBarSherlock { \n \n this . getActionBar ( ) . setCustomView ( view , nativeParams ) ; \n } \n + \n + @ override \n + public void displayShowCustomView ( boolean showCustomView ) { \n + this . getActionBar ( ) . setDisplayShowCustomEnabled ( showCustomView ) ; \n + } \n \n @ override \n public final void setNavigationMode ( int navigationMode ) { \n public final class ActionBarSherlock { \n SINGLE \n activity . onTabUnselected ( ( ActionBarTab ) tab . getTag ( ) ) ; \n } \n + \n } \n \n \n public final class ActionBarSherlock { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ActionBarSherlock { \n COMMENT \n COMMENT \n public void setCustomView ( View view , LayoutParams layoutParameters ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void displayShowCustomView ( boolean showCustomView ) ; \n }", "msg_token": "Add show custom view toggle to HasCustomView interface"} {"diff": " public class MessageList \n \n @ override \n public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { \n + SINGLE \n if ( mCurrentFolder != null && ( ( position + NUMBER0 ) == mListView . getAdapter ( ) . getCount ( ) ) ) { \n mController . loadMoreMessages ( mAccount , mFolderName , mAdapter . mListener ) ; \n return ;", "msg_token": "Added a comment"} {"diff": " public class RouteProvider { \n RouteDirectionInfo last = directions . get ( directions . size ( ) - NUMBER0 ) ; \n SINGLE \n last . setAverageSpeed ( ( distanceToEnd [ last . routePointOffset ] - distanceToEnd [ offset ] ) / last . getAverageSpeed ( ) ) ; \n + last . distance = ( int ) ( distanceToEnd [ last . routePointOffset ] - distanceToEnd [ offset ] ) ; \n } \n SINGLE \n float avgSpeed = time ;", "msg_token": "Fix cloudmade ETA"} {"diff": " public class TargetBound implements SearchTerminationStrategy , SkipTraverseResul \n int i = NUMBER0 ; \n boolean prevBounded = ! bounders . isEmpty ( ) ; \n for ( State bounder : bounders ) { \n - \n + if ( bounder . getWalkDistance ( ) > options . getMaxWalkDistance ( ) && current . getWalkDistance ( ) + minWalk < options . getMaxWalkDistance ( ) ) { \n + continue ; \n + } \n + \n if ( current . getWeight ( ) + minTime + walkTime * ( options . getWalkReluctance ( ) - NUMBER1 ) > bounder . getWeight ( ) * WORST_WEIGHT_DIFFERENCE_FACTOR ) { \n return true ; \n }", "msg_token": "if there is any possible path less than the walk distance include it"} {"diff": " public class AppValidator { \n COMMENT \n public void validateCreate ( AppNewForm appNewForm ) { \n \n + SINGLE \n + if ( appNewForm . getApp ( ) != null ) { \n + appNewForm . setApp ( appNewForm . getApp ( ) . trim ( ) ) ; \n + } \n + if ( appNewForm . getDesc ( ) != null ) { \n + appNewForm . setDesc ( appNewForm . getDesc ( ) . trim ( ) ) ; \n + } \n + \n App app = appMgr . getByName ( appNewForm . getApp ( ) ) ; \n if ( app != null ) { \n throw new FieldException ( AppNewForm . APP , STRING0 , null ) ; \n } \n - \n } \n \n }", "msg_token": "fix app name has blank bug"} {"diff": " public class BaseFileSystem implements FileSystem { \n throw new FileNotFoundException ( \n ExceptionMessage . CANNOT_READ_DIRECTORY . getMessage ( status . getName ( ) ) ) ; \n } \n - return FileInStream . create ( status , options . toInStreamOptions ( ) , mContext ) ; \n + return FileInStream . create ( status , options . toInStreamOptions ( ) , mFileSystemContext ) ; \n } \n \n @ override", "msg_token": "Fix merge conflict"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class PeerEurekaNodeTest { \n expectRequestType ( RequestType . Heartbeat ) ; \n \n SINGLE \n - verify ( registry , times ( NUMBER0 ) ) . register ( instanceInfoFromPeer , true ) ; \n + verify ( registry , timeout ( NUMBER1 ) . times ( NUMBER0 ) ) . register ( instanceInfoFromPeer , true ) ; \n } \n \n @ test", "msg_token": "fix a flaky test"} {"diff": " public class MediaUploadService extends Service { \n SINGLE \n SINGLE \n WordPress . wpDB . deleteMediaFile ( blogIdStr , mediaId ) ; \n - sendUpdateBroadcast ( mediaId , null ) ; \n + sendUpdateBroadcast ( mediaId , id ) ; \n fetchMediaFile ( id ) ; \n }", "msg_token": "Sending old media ID for comparison after media upload"} {"diff": " public class SliceHandler implements CodeInsightActionHandler { \n dialog . show ( ) ; \n if ( ! dialog . isOK ( ) ) return null ; \n \n - storedSettingsBean . analysisUIOptions . save ( analysisUIOptions ) ; \n - \n AnalysisScope scope = dialog . getScope ( analysisUIOptions , analysisScope , myProject , module ) ; \n + storedSettingsBean . analysisUIOptions . save ( analysisUIOptions ) ; \n \n SliceAnalysisParams params = new SliceAnalysisParams ( ) ; \n params . scope = scope ;", "msg_token": "remember scope chosen"} {"diff": " public class PluginDescriptorChooser { \n List < DomFileElement < IdeaPlugin > > elements = \n DomService . getInstance ( ) . getFileElements ( IdeaPlugin . class , \n project , \n - module . getModuleContentWithDependenciesScope ( ) ) ; \n + module . getModuleWithDependenciesScope ( ) ) ; \n \n elements = ContainerUtil . filter ( elements , new Condition < DomFileElement < IdeaPlugin > > ( ) { \n @ override", "msg_token": "plugin xml chooser do not show candidates from module content scope"} {"diff": " public class ChunkDefinition extends JavaScriptObject \n return getRow ( ) == other . getRow ( ) && \n getRowCount ( ) == other . getRowCount ( ) && \n getVisible ( ) == other . getVisible ( ) && \n - getChunkId ( ) == other . getChunkId ( ) ; \n + getChunkId ( ) == other . getChunkId ( ) && \n + getExpansionState ( ) == other . getExpansionState ( ) ; \n }", "msg_token": "include expansion state when diffing chunk definitions"} {"diff": " public final class CommonTestUtils { \n \n SINGLE \n SINGLE \n - private static File sAlluxioTestDirectory ; \n + private static File sAlluxioTestDirectory = createTestingDirectory ( ) ; \n \n COMMENT \n COMMENT \n public final class CommonTestUtils { \n COMMENT \n COMMENT \n public static synchronized File getAlluxioTestDirectory ( ) { \n - if ( sAlluxioTestDirectory == null ) { \n - sAlluxioTestDirectory = createTestingDirectory ( ) ; \n - } \n return sAlluxioTestDirectory ; \n }", "msg_token": "Create testing directory during static initialization"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MapReduceTest \n assertEquals ( expectedResult , ( int ) future . get ( ) ) ; \n } \n \n - @ category ( ProblematicTest . class ) \n @ test ( timeout = NUMBER0 ) \n public void employeeMapReduceTest ( ) throws Exception { \n \n public class MapReduceTest \n \n Map < Integer , Set < Employee > > result = future . get ( ) ; \n \n - System . out . println ( result ) ; \n - \n assertEquals ( STRING0 , NUMBER1 , result . size ( ) ) ; \n }", "msg_token": "map reduce test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed caching of component instances incorrect import was added during move refactoring"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DispatcherPortlet extends FrameworkPortlet { \n protected void doDispatch ( PortletRequestDispatcher dispatcher , PortletRequest request , MimeResponse response ) \n throws Exception { \n \n - if ( PortletRequest . RESOURCE_PHASE . equals ( request . getAttribute ( PortletRequest . LIFECYCLE_PHASE ) ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( PortletRequest . RESOURCE_PHASE . equals ( request . getAttribute ( PortletRequest . LIFECYCLE_PHASE ) ) && \n + ! dispatcher . getClass ( ) . getName ( ) . startsWith ( STRING0 ) ) { \n dispatcher . forward ( request , response ) ; \n } \n else {", "msg_token": "DispatcherPortlet never uses a resource forward on Liferay"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n \n - class CallbackReference extends WeakReference < Callback > { \n + public class CallbackReference extends WeakReference < Callback > { \n \n static final Map < Callback , CallbackReference > callbackMap = new WeakHashMap < Callback , CallbackReference > ( ) ; \n static final Map < Callback , CallbackReference > directCallbackMap = new WeakHashMap < Callback , CallbackReference > ( ) ;", "msg_token": "making CallbackReference accessible public"} {"diff": " public class SecureChatServerHandler extends SimpleChannelUpstreamHandler { \n if ( c != e . getChannel ( ) ) { \n c . write ( STRING0 + e . getChannel ( ) . getRemoteAddress ( ) + STRING1 + \n request + STRING2 ) ; \n + } else { \n + c . write ( STRING3 + request + STRING2 ) ; \n } \n }", "msg_token": "Send a response even when I wrote something in SecureChat"} {"diff": " public final class HttpResponseCache extends ResponseCache implements ExtendedRe \n super . close ( ) ; \n editor . commit ( ) ; \n } \n + \n + @ override \n + public void write ( byte [ ] buffer , int offset , int length ) throws IOException { \n + SINGLE \n + SINGLE \n + out . write ( buffer , offset , length ) ; \n + } \n } ; \n }", "msg_token": "Improve HttpResponseCache performance"} {"diff": " public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen \n private LockPatternUtils mLockPatternUtils ; \n private PasswordEntryKeyboardView mKeyboardView ; \n private PasswordEntryKeyboardHelper mKeyboardHelper ; \n - private boolean mIsInPortrait ; \n \n SINGLE \n SINGLE \n public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen \n \n mKeyboardView . setVisibility ( mCreatedWithKeyboardOpen ? View . INVISIBLE : View . VISIBLE ) ; \n mPasswordEntry . requestFocus ( ) ; \n + \n + mKeyboardHelper . setVibratePattern ( mLockPatternUtils . isTactileFeedbackEnabled ( ) ? \n + com . android . internal . R . array . config_virtualKeyVibePattern : NUMBER0 ) ; \n } \n \n @ override", "msg_token": "Fix tactile feedback bug in password PIN and pattern unlock"} {"diff": " abstract class CalendarPagerAdapter < V extends CalendarPagerView > extends PagerAd \n if ( ! ( isInstanceOfView ( object ) ) ) { \n return POSITION_NONE ; \n } \n - MonthView monthView = ( MonthView ) object ; \n - CalendarDay month = monthView . getMonth ( ) ; \n - if ( month == null ) { \n + CalendarPagerView pagerView = ( CalendarPagerView ) object ; \n + CalendarDay firstViewDay = pagerView . getFirstViewDay ( ) ; \n + if ( firstViewDay == null ) { \n return POSITION_NONE ; \n } \n int index = indexOf ( ( V ) object ) ;", "msg_token": "Fix class cast exception in CPA had old logic for getItemPosition that was for Months only"} {"diff": " public class HttpBinding extends AbstractActiveBinding < HttpBindingProvider > impl \n public HttpBinding ( ) { \n } \n \n - @ override \n - public void activate ( ) { \n - super . activate ( ) ; \n - setProperlyConfigured ( true ) ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT \n public class HttpBinding extends AbstractActiveBinding < HttpBindingProvider > impl \n STRING0 + configKey \n + STRING1 ) ; \n } \n - \n } \n - } \n + \n + SINGLE \n + setProperlyConfigured ( true ) ; \n + } \n \n }", "msg_token": "Fix for HTTP binding startup sequence bug"} {"diff": " public class CordovaWebViewClient extends WebViewClient { \n LOG . e ( TAG , STRING0 + url + STRING1 + e . toString ( ) ) ; \n } \n } \n + \n + SINGLE \n + else if ( url . startsWith ( STRING2 ) ) { \n + try { \n + Intent intent = new Intent ( Intent . ACTION_VIEW ) ; \n + intent . setData ( Uri . parse ( url ) ) ; \n + this . cordova . getActivity ( ) . startActivity ( intent ) ; \n + } catch ( android . content . ActivityNotFoundException e ) { \n + LOG . e ( TAG , STRING3 + url , e ) ; \n + } \n + } \n \n SINGLE \n else {", "msg_token": "Explicitly add market URIs to CordovaWebViewClient so this always works not just sometimes"} {"diff": " public class NewDirectoryProjectDialog extends DialogWrapper { \n } \n else { \n DefaultComboBoxModel model = new DefaultComboBoxModel ( ) ; \n - model . addElement ( EMPTY_PROJECT_GENERATOR ) ; \n + model . addElement ( getEmptyProjectGenerator ( ) ) ; \n for ( DirectoryProjectGenerator generator : generators ) { \n model . addElement ( generator ) ; \n } \n public class NewDirectoryProjectDialog extends DialogWrapper { \n } ) ; \n } \n \n + protected Object getEmptyProjectGenerator ( ) { \n + return EMPTY_PROJECT_GENERATOR ; \n + } \n + \n protected DirectoryProjectGenerator [ ] getGenerators ( ) { \n return Extensions . getExtensions ( DirectoryProjectGenerator . EP_NAME ) ; \n }", "msg_token": "Create remote project dialog"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderPost { \n \n while ( it . hasNext ( ) ) { \n JSONObject jsonThisTag = jsonTags . optJSONObject ( it . next ( ) ) ; \n - String thisTagName = JSONUtils . getStringDecoded ( jsonThisTag , STRING0 ) ; \n + String thisTagName = UrlUtils . urlDecode ( JSONUtils . getString ( jsonThisTag , STRING0 ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "Decode tagName when parsing"} {"diff": " public class NettyComponentConfigurationAndDocumentationTest extends CamelTestSu \n ComponentConfiguration compConf = comp . createComponentConfiguration ( ) ; \n String json = compConf . createParameterJsonSchema ( ) ; \n assertNotNull ( json ) ; \n - \n - assertTrue ( json . contains ( STRING0 ) ) ; \n + \n + assertTrue ( json . contains ( STRING1 ) ) ; \n assertTrue ( json . contains ( STRING2 ) ) ; \n assertTrue ( json . contains ( STRING3 ) ) ; \n } \n public class ServletComponentConfigurationAndDocumentationTest extends CamelTest \n ComponentConfiguration compConf = comp . createComponentConfiguration ( ) ; \n String json = compConf . createParameterJsonSchema ( ) ; \n assertNotNull ( json ) ; \n - \n - assertTrue ( json . contains ( STRING4 ) ) ; \n + \n + assertTrue ( json . contains ( STRING5 ) ) ; \n assertTrue ( json . contains ( STRING6 ) ) ; \n }", "msg_token": "Fixed the configuration and documentation related tests"} {"diff": " final class ConfigSubstitution extends AbstractConfigValue implements \n \n private ConfigValue findInObject ( AbstractConfigObject root , \n COMMENT \n - Path subst , int depth , \n - ConfigResolveOptions options ) { \n + Path subst , int depth , ConfigResolveOptions options ) { \n if ( depth > MAX_DEPTH ) { \n throw new ConfigException . BadValue ( origin ( ) , subst . render ( ) , \n STRING0 + subst . render ( ) \n + STRING1 ) ; \n } \n \n - ConfigValue result = root . peekPath ( subst , resolver , depth , \n - options ) ; \n + ConfigValue result = root . peekPath ( subst , resolver , depth , options ) ; \n \n if ( result instanceof ConfigSubstitution ) { \n throw new ConfigException . BugOrBroken (", "msg_token": "fix some indentation that Eclipse messed up"} {"diff": " public class ObjectEncoder implements ChannelDownstreamHandler { \n } \n \n public ObjectEncoder ( int estimatedLength ) { \n - if ( estimatedLength <= NUMBER0 ) { \n + if ( estimatedLength < NUMBER0 ) { \n throw new IllegalArgumentException ( \n STRING0 + estimatedLength ) ; \n }", "msg_token": "ObjectEncoder should allow zero estimated length as we did in DynamicChannelBuffer"} {"diff": " public class StorageDir { \n TempBlockMeta tempBlock = mBlockIdToTempBlockMap . remove ( blockId ) ; \n if ( tempBlock != null ) { \n blocksToRemove . add ( tempBlock ) ; \n + reclaimSpace ( tempBlock . getBlockSize ( ) ) ; \n } else { \n LOG . error ( STRING0 , blockId , userId ) ; \n } \n public class StorageDirTest { \n Assert . assertEquals ( TEST_DIR_CAPACITY - newSize , mDir . getAvailableBytes ( ) ) ; \n } \n \n + SINGLE \n @ test \n public void cleanupUserTest ( ) throws Exception { \n SINGLE", "msg_token": "Fix a bug in StorageDir cleanupUser where we forget to reclaim space of cleaned temp blocks"} {"diff": " public final class HostAndPort implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public String getHostText ( ) {", "msg_token": "Fix a typo"} {"diff": " public class ShowsFragment extends SherlockFragment implements \n } \n \n if ( emptyView != null ) { \n - mGrid . setEmptyView ( emptyView ) ; \n + final View emptyViewCopy = emptyView ; \n + mGrid . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + mGrid . setEmptyView ( emptyViewCopy ) ; \n + } \n + } ) ; \n } \n }", "msg_token": "Fix empty view flickering"} {"diff": " public class DefaultFileLockManager implements FileLockManager { \n } \n \n public void writeToFile ( Runnable action ) throws LockTimeoutException , FileIntegrityViolationException { \n - assertOpenAndIntegral ( ) ; \n + assertOpen ( ) ; \n try { \n SINGLE \n java . nio . channels . FileLock updateLock = null ;", "msg_token": "Don t perform integrity checks on write operations temporarily while I investigate the failures this caused"} {"diff": " public class DouglasPeucker { \n private DistanceCalc calc ; \n \n public DouglasPeucker ( ) { \n - calc = new DistanceCalc ( ) ; \n + SINGLE \n + calc = new DistanceCosProjection ( ) ; \n SINGLE \n maxDistance ( NUMBER0 ) ; \n } \n public class DouglasPeucker { \n COMMENT \n public int simplify ( PointList points ) { \n int size = points . size ( ) ; \n - int removed = NUMBER1 ; \n - int delta = NUMBER2 ; \n - int segments = size / delta + NUMBER0 ; \n - int start = NUMBER1 ; \n - for ( int i = NUMBER1 ; i < segments ; i ++ ) { \n - SINGLE \n - removed += simplify ( points , start , Math . min ( size - NUMBER0 , start + delta ) ) ; \n - start += delta ; \n - } \n - \n + int removed = simplify ( points , NUMBER1 , size - NUMBER0 ) ; \n compressNew ( points , removed ) ; \n return removed ; \n }", "msg_token": "trying approx distance"} {"diff": " class ASTIf extends ASTStatement { \n @ override void exec ( Env e ) { \n Env captured = e . capture ( ) ; \n captured = _pred . treeWalk ( captured ) ; \n + if ( captured . isAry ( ) ) throw new IllegalArgumentException ( STRING0 ) ; \n double v = captured . popDbl ( ) ; \n captured . popScope ( ) ; \n if ( v == NUMBER0 ) if ( _else == null ) return ; else _else . exec ( e ) ;", "msg_token": "add IAE around frames in condition"} {"diff": " public class ChangesCacheFile { \n } \n \n if ( ! revisionDependentFiles . isEmpty ( ) ) { \n + SINGLE \n + HashSet < VirtualFile > uniqueFiles = ContainerUtil . newHashSet ( revisionDependentFiles . values ( ) ) ; \n SINGLE \n Map < VirtualFile , VcsRevisionNumber > revisions = myDiffProvider instanceof DiffProviderEx \n - ? ( ( DiffProviderEx ) myDiffProvider ) . getCurrentRevisions ( revisionDependentFiles . values ( ) ) \n - : DiffProviderEx . getCurrentRevisions ( revisionDependentFiles . values ( ) , myDiffProvider ) ; \n - \n + ? ( ( DiffProviderEx ) myDiffProvider ) . getCurrentRevisions ( uniqueFiles ) \n + : DiffProviderEx . getCurrentRevisions ( uniqueFiles , myDiffProvider ) ; \n + \n SINGLE \n for ( IncomingChangeListData data : list ) { \n for ( Change change : data . getChangesToProcess ( ) ) {", "msg_token": "Optimized files revisions collecting do not get revision for same file several times duplicate files are removed from revisions collecting"} {"diff": " public class TasksXmlExporter { \n Preferences . setString ( BackupPreferences . PREF_BACKUP_LAST_ERROR , null ) ; \n \n if ( ! isService ) \n - displayToast ( output ) ; \n + onFinishExport ( output ) ; \n } catch ( IOException e ) { \n if ( ! isService ) \n exceptionService . displayAndReportError ( context , \n public class TasksXmlExporter { \n \n } \n \n - private void displayToast ( final String output ) { \n + private void onFinishExport ( final String outputFile ) { \n handler . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n CharSequence text = String . format ( context . getString ( R . string . export_toast ) , \n context . getResources ( ) . getQuantityString ( R . plurals . Ntasks , exportCount , \n - exportCount ) , output ) ; \n + exportCount ) , outputFile ) ; \n Toast . makeText ( context , text , Toast . LENGTH_LONG ) . show ( ) ; \n + progressDialog . dismiss ( ) ; \n } \n } ) ; \n }", "msg_token": "No leaking progress dialogs now"} {"diff": " public class ChangeJVMFrame \n private String defaultLink \n = STRING0 + \n STRING1 + \n - STRING2 ; \n + STRING3 ; \n \n private JPanel mainPanel = new JPanel ( new BorderLayout ( ) ) ;", "msg_token": "Update SUN JRE download link"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added missing copyright header"} {"diff": " public class WebView extends AbsoluteLayout \n previouslyFocusedRect ) ; \n } else { \n result = super . requestFocus ( direction , previouslyFocusedRect ) ; \n - if ( mWebViewCore . getSettings ( ) . getNeedInitialFocus ( ) ) { \n + if ( mWebViewCore . getSettings ( ) . getNeedInitialFocus ( ) && ! isInTouchMode ( ) ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Only send a direction key if we are not in touch mode"} {"diff": " public class RasterMapMenu { \n . layout ( R . layout . progress_list_item ) \n . iconColor ( R . drawable . ic_action_opacity ) \n . progress ( mapTransparencyPreference . get ( ) ) \n + . listen ( l ) \n . listenInteger ( integerListener ) . reg ( ) ; \n if ( type == OsmandRasterMapsPlugin . RasterMapType . UNDERLAY ) { \n contextMenuAdapter . item ( R . string . show_polygons ) . listen ( l )", "msg_token": "Click on overlay transparency row closed the settings screen"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class TimeBasedUuidGeneratorTest { \n - private static final int COUNT = NUMBER0 ; \n + private static final int COUNT = NUMBER1 ; \n + \n + @ test \n + public void shouldGenerateTimeBasedUuid ( ) { \n + UUID uuid = TimeBasedUuidGenerator . generate ( ) ; \n + assertEquals ( NUMBER2 , uuid . version ( ) ) ; \n + assertEquals ( NUMBER3 , uuid . variant ( ) ) ; \n + } \n \n @ test \n public void shouldNotDuplicate ( ) {", "msg_token": "Added one more minimal test case to TimeBasedUuidGeneratorTest"} {"diff": " public class AboutDialog { \n \n protected String getAboutText ( ) { \n return STRING0 + JLanguageTool . VERSION + STRING1 \n - + STRING2 \n + + STRING3 \n + STRING4 \n + STRING5 \n + STRING6", "msg_token": "update year in copyright notice"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RefreshVFsSynchronously { \n private RefreshVFsSynchronously ( ) { \n } \n \n - public static void updateAllChanged ( final UpdatedFiles updatedFiles ) { \n + public static void updateAllChanged ( @ notnull final UpdatedFiles updatedFiles ) { \n FilesToRefreshCollector callback = new FilesToRefreshCollector ( ) ; \n UpdateFilesHelper . iterateFileGroupFilesDeletedOnServerFirst ( updatedFiles , callback ) ; \n \n public class RefreshVFsSynchronously { \n refreshDeletedOrReplaced ( file ) ; \n } \n \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + LocalFileSystem . getInstance ( ) . refreshIoFiles ( callback . getToRefresh ( ) , false , false , null ) ; \n + return ; \n + } \n final Semaphore semaphore = new Semaphore ( ) ; \n semaphore . down ( ) ; \n try {", "msg_token": "tests should not do refresh files in background no need execution threads are different and deadlock here"} {"diff": " public class Profiler { \n paused = true ; \n cumulative = NUMBER0 ; \n \n - if ( log . isDebugEnabled ( ) ) { \n + if ( ! mute && log . isDebugEnabled ( ) ) { \n OUT_LOCK . lock ( ) ; \n try { \n println ( name , STRING0 , format ( result ) ) ;", "msg_token": "Don t print end message if profiler was muted"} {"diff": " public abstract class WebSocketHandler extends HandlerWrapper \n WebSocketPolicy policy = new WebSocketPolicy ( WebSocketBehavior . SERVER ) ; \n configurePolicy ( policy ) ; \n webSocketFactory = new WebSocketServerFactory ( policy ) ; \n - registerWebSockets ( webSocketFactory ) ; \n } \n \n public void configurePolicy ( WebSocketPolicy policy ) \n public abstract class WebSocketHandler extends HandlerWrapper \n COMMENT \n } \n \n + @ override \n + protected void doStart ( ) throws Exception \n + { \n + super . doStart ( ) ; \n + registerWebSockets ( webSocketFactory ) ; \n + } \n + \n public WebSocketServerFactory getWebSocketFactory ( ) \n { \n return webSocketFactory ;", "msg_token": "Making fix for out of order events by moving registerWebSockets to doStart and not the constructor"} {"diff": " import static NAMESPACE ; \n @ elasticsearchintegrationtest.clusterscope ( minNumDataNodes = NUMBER0 ) \n public class SearchWhileRelocatingTests extends ElasticsearchIntegrationTest { \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n @ test \n @ nightly \n public void testSearchAndRelocateConcurrently0Replicas ( ) throws Exception {", "msg_token": "removed comment from SearchWhileRelocatingTests"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class PullToRefreshHelper implements OnRefreshListener { \n private PullToRefreshHeaderTransformer mHeaderTransformer ; \n private PullToRefreshLayout mPullToRefreshLayout ; \n private RefreshListener mRefreshListener ; \n - private Context mContext ; \n \n public PullToRefreshHelper ( Activity activity , PullToRefreshLayout pullToRefreshLayout , RefreshListener listener ) { \n init ( activity , pullToRefreshLayout , listener , null ) ; \n public class PullToRefreshHelper implements OnRefreshListener { \n \n public void init ( Activity activity , PullToRefreshLayout pullToRefreshLayout , RefreshListener listener , \n java . lang . Class < ? > viewClass ) { \n - mContext = activity ; \n mRefreshListener = listener ; \n mPullToRefreshLayout = pullToRefreshLayout ; \n mHeaderTransformer = new PullToRefreshHeaderTransformer ( ) ;", "msg_token": "remove unused mContext"} {"diff": " public class DateHandler implements HttpHandler { \n if ( time < nextUpdateTime ) { \n exchange . getResponseHeaders ( ) . put ( Headers . DATE , cachedDateString ) ; \n } else { \n - nextUpdateTime = time + NUMBER0 ; \n String dateString = DateUtils . toDateString ( new Date ( time ) ) ; \n cachedDateString = dateString ; \n + nextUpdateTime = time + NUMBER0 ; \n exchange . getResponseHeaders ( ) . put ( Headers . DATE , dateString ) ; \n } \n next . handleRequest ( exchange ) ;", "msg_token": "Change order that fields are updated"} {"diff": " public class DependencyParser { \n switch ( k ) { \n case NUMBER0 : \n nDict = number ; \n + break ; \n case NUMBER1 : \n nPOS = number ; \n + break ; \n case NUMBER2 : \n nLabel = number ; \n + break ; \n case NUMBER3 : \n eSize = number ; \n + break ; \n case NUMBER4 : \n hSize = number ; \n + break ; \n case NUMBER5 : \n nTokens = number ; \n + break ; \n case NUMBER6 : \n nPreComputed = number ; \n + break ; \n default : \n break ; \n }", "msg_token": "Add break statements to switch"} {"diff": " public class SedaConsumer extends ServiceSupport implements Consumer , Runnable { \n } catch ( Exception e ) { \n LOG . error ( STRING0 + e , e ) ; \n } \n - } else { \n + } else if ( exchange != null ) { \n LOG . warn ( STRING1 + exchange ) ; \n try { \n endpoint . getQueue ( ) . put ( exchange ) ;", "msg_token": "fixed stupid mistake"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class SpinKitView extends ProgressBar { \n setIndeterminateDrawable ( new DoubleBounce ( ) ) ; \n break ; \n case WAVE : \n - setIndeterminateDrawable ( new RotatingPlane ( ) ) ; \n + setIndeterminateDrawable ( new Wave ( ) ) ; \n break ; \n case WANDERING_CUBES : \n setIndeterminateDrawable ( new WanderingCubes ( ) ) ;", "msg_token": "fix a kind of wrong init"} {"diff": " public class VideoBuffer extends Activity implements OnInfoListener , OnBuffering \n mVideoView . pause ( ) ; \n isStart = true ; \n pb . setVisibility ( View . VISIBLE ) ; \n + downloadRateView . setText ( STRING0 ) ; \n + loadRateView . setText ( STRING0 ) ; \n downloadRateView . setVisibility ( View . VISIBLE ) ; \n loadRateView . setVisibility ( View . VISIBLE ) ; \n - \n + \n } \n break ; \n case MediaPlayer . MEDIA_INFO_BUFFERING_END :", "msg_token": "Fixed download rate shown"} {"diff": " public class IvyBackedArtifactPublisher implements ArtifactPublisher { \n Ivy ivy = ivyForPublish ( publishResolvers ) ; \n Set < Configuration > configurationsToPublish = configuration . getHierarchy ( ) ; \n Set < String > confs = Configurations . getNames ( configurationsToPublish , false ) ; \n - writeDescriptorFile ( descriptorDestination , configurationsToPublish , configuration . getModule ( ) , descriptorModifier ) ; \n + writeDescriptorFile ( descriptorDestination , configurationsToPublish , module , descriptorModifier ) ; \n dependencyPublisher . publish ( \n confs , \n publishResolvers , \n - publishModuleDescriptorConverter . convert ( configurationsToPublish , configuration . getModule ( ) ) , \n + publishModuleDescriptorConverter . convert ( configurationsToPublish , module ) , \n descriptorDestination , \n ivy . getEventManager ( ) ) ; \n }", "msg_token": "Fix error of not passing module down to lower publication layers"} {"diff": " public class PydevConsoleExecuteActionHandler extends ConsoleExecuteActionHandle \n if ( myInputBuffer == null ) { \n myInputBuffer = new StringBuilder ( ) ; \n } \n - if ( myConsoleCommunication . isWaitingForInput ( ) ) { \n + if ( myConsoleCommunication != null && myConsoleCommunication . isWaitingForInput ( ) ) { \n myInputBuffer . setLength ( NUMBER0 ) ; \n } \n myInputBuffer . append ( line ) . append ( STRING0 ) ;", "msg_token": "Fixed possible NPE"} {"diff": " public class CameraFactory { \n } \n \n private static DisplayMetrics getDisplayMetrics ( final Activity pActivity ) { \n - final DisplayMetrics displayMetrics = new DisplayMetrics ( ) ; \n - pActivity . getWindowManager ( ) . getDefaultDisplay ( ) . getMetrics ( displayMetrics ) ; \n - return displayMetrics ; \n + return pActivity . getResources ( ) . getDisplayMetrics ( ) ; \n } \n \n SINGLE", "msg_token": "Added a way to get DisplayMetrics in the CameraFactory without allocation the DisplayMetrics"} {"diff": " public class AndroidApplication extends Activity implements Application { \n } \n \n protected FrameLayout . LayoutParams createLayoutParams ( ) { \n - FrameLayout . LayoutParams layoutParams = new FrameLayout . LayoutParams ( android . view . ViewGroup . LayoutParams . FILL_PARENT , \n - android . view . ViewGroup . LayoutParams . FILL_PARENT ) ; \n + FrameLayout . LayoutParams layoutParams = new FrameLayout . LayoutParams ( android . view . ViewGroup . LayoutParams . MATCH_PARENT , \n + android . view . ViewGroup . LayoutParams . MATCH_PARENT ) ; \n layoutParams . gravity = Gravity . CENTER ; \n return layoutParams ; \n }", "msg_token": "Removed deprecated FILL_PARENT reference"} {"diff": " class AnalyzePrototypeProperties implements CompilerPass { \n public JSModule getModule ( ) { \n return module ; \n } \n - \n - public Node getFunctionNode ( ) { \n - Node parent = nameNode . getParent ( ) ; \n - \n - if ( parent . isFunction ( ) ) { \n - return parent ; \n - } else { \n - SINGLE \n - return nameNode . getChildAtIndex ( NUMBER0 ) ; \n - } \n - } \n } \n \n COMMENT", "msg_token": "Remove some more code that was part of initial module specialization"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public class ActionPreloader { \n public ActionPreloader ( StartupManager manager ) { \n - if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) && ! ApplicationManager . getApplication ( ) . isHeadlessEnvironment ( ) ) { \n manager . registerPostStartupActivity ( new Runnable ( ) { \n public void run ( ) { \n ( ( ActionManagerImpl ) ActionManager . getInstance ( ) ) . preloadActions ( ) ;", "msg_token": "do not preload actions in headless mode"} {"diff": " public abstract class HtmlFormModalDialog < T > extends ModalDialogBase \n StringUtil . notNull ( e . getDescription ( ) ) . trim ( ) ) ) \n { \n progressIndicator . onError ( \n - STRING0 + \n - STRING1 ) ; \n + STRING2 ) ; \n } \n else \n {", "msg_token": "Investigate FormPanel access is denied client error"} {"diff": " public class InstantUploadsObserver extends FileObserver { \n SINGLE \n SINGLE \n SINGLE \n + mObservedChildren . remove ( path ) ; \n handleNewFile ( path ) ; \n } \n if ( ( event & FileObserver . MOVED_TO ) != NUMBER0 ) {", "msg_token": "Prevent memory overflow"} {"diff": " public class JInputJoyInput implements JoyInput { \n } else if ( v == POV . DOWN_LEFT ) { \n x = - FLOAT0 ; y = - FLOAT0 ; \n } else if ( v == POV . DOWN_RIGHT ) { \n - x = - FLOAT0 ; y = FLOAT0 ; \n + x = FLOAT0 ; y = - FLOAT0 ; \n } else if ( v == POV . LEFT ) { \n x = - FLOAT0 ; y = NUMBER0 ; \n } else if ( v == POV . RIGHT ) {", "msg_token": "Fixed a bug in how POV DOWN_RIGHT was reported"} {"diff": " public abstract class HibernateBundle < T extends Configuration > extends Configure \n @ override \n public final void initialize ( Bootstrap < ? > bootstrap ) { \n final Hibernate4Module module = new Hibernate4Module ( ) ; \n - module . enable ( Hibernate4Module . Feature . FORCE_LAZY_LOADING ) ; \n bootstrap . getObjectMapperFactory ( ) . registerModule ( module ) ; \n }", "msg_token": "Leave eager loading in the hands of the resource"} {"diff": " public class PostgreForeignKeyManager extends SQLForeignKeyManager < PostgreTableF \n @ override \n protected String getDropForeignKeyPattern ( PostgreTableForeignKey foreignKey ) \n { \n - return STRING0 + PATTERN_ITEM_TABLE + STRING1 + PATTERN_ITEM_CONSTRAINT ; SINGLE \n + return STRING0 + PATTERN_ITEM_TABLE + STRING2 + PATTERN_ITEM_CONSTRAINT ; SINGLE \n } \n \n }", "msg_token": "PG drop FK fix"} {"diff": " public abstract class AbstractCacheRecordStore < R extends CacheRecord , CRM extend \n } \n \n private long getAdjustedExpireTime ( Duration duration , long now ) { \n - SINGLE \n - SINGLE \n return duration . getAdjustedTime ( now ) ; \n }", "msg_token": "Removed redundant comment"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SuccessfulHandlerMetaDataPopulator implements AuthenticationMetaDat \n \n @ override \n public void populateAttributes ( final AuthenticationBuilder builder , final Credential credential ) { \n - builder . addAttribute ( SUCCESSFUL_AUTHENTICATION_HANDLERS , new HashSet ( builder . getSuccesses ( ) . keySet ( ) ) ) ; \n + Set < String > successes = builder . getSuccesses ( ) . keySet ( ) ; \n + if ( successes != null ) { \n + successes = new HashSet ( successes ) ; \n + } \n + \n + builder . addAttribute ( SUCCESSFUL_AUTHENTICATION_HANDLERS , successes ) ; \n } \n \n @ override", "msg_token": "Fix serialization bug with EhcacheTicketRegistry"} {"diff": " public class XDebugSessionImpl implements XDebugSession { \n private XDebugProcess myDebugProcess ; \n private final Map < XBreakpoint < ? > , CustomizedBreakpointPresentation > myRegisteredBreakpoints = \n new THashMap < XBreakpoint < ? > , CustomizedBreakpointPresentation > ( ) ; \n - private final Set < XBreakpoint < ? > > myInactiveSlaveBreakpoints = new SmartHashSet < XBreakpoint < ? > > ( ) ; \n + private final Set < XBreakpoint < ? > > myInactiveSlaveBreakpoints = Collections . synchronizedSet ( new SmartHashSet < XBreakpoint < ? > > ( ) ) ; \n private boolean myBreakpointsDisabled ; \n private final XDebuggerManagerImpl myDebuggerManager ; \n private MyBreakpointListener myBreakpointListener ; \n public class XDebugSessionImpl implements XDebugSession { \n \n public boolean isBreakpointActive ( final XBreakpoint < ? > b ) { \n ApplicationManager . getApplication ( ) . assertReadAccessAllowed ( ) ; \n - return ! areBreakpointsMuted ( ) && b . isEnabled ( ) && ! myInactiveSlaveBreakpoints . contains ( b ) ; \n + return ! areBreakpointsMuted ( ) && b . isEnabled ( ) && ! isInactiveSlaveBreakpoint ( b ) ; \n } \n \n @ override", "msg_token": "myInactiveSlaveBreakpoints requires synchronization"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class HintedHandoff {", "msg_token": "Fix a typo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final class DataByteBuffer implements DataBuffer { \n private final ByteBuffer mBuffer ;", "msg_token": "Add comment for sharing"} {"diff": " public abstract class TextAnalyzer extends FileAnalyzer { \n ( head [ NUMBER0 ] == ( byte ) NUMBER1 && head [ NUMBER2 ] == ( byte ) NUMBER3 ) ) { \n charset = STRING0 ; \n in . reset ( ) ; \n - } else if ( br >= NUMBER4 & head [ NUMBER0 ] == ( byte ) NUMBER5 && head [ NUMBER2 ] == ( byte ) NUMBER6 && \n + } else if ( br >= NUMBER4 && head [ NUMBER0 ] == ( byte ) NUMBER5 && head [ NUMBER2 ] == ( byte ) NUMBER6 && \n head [ NUMBER7 ] == ( byte ) NUMBER8 ) { \n SINGLE \n SINGLE", "msg_token": "Fixed FindBugs warning dangerous use of non short circuit logic"} {"diff": " public class MethodActionTransformer implements GrailsArtefactClassInjector { \n bindDataMethodCallExpression . setMethodTarget ( bindDataMethodNode ) ; \n } \n wrapper . addStatement ( new ExpressionStatement ( bindDataMethodCallExpression ) ) ; \n - final Expression validateMethodCallExpression = new MethodCallExpression ( \n + final MethodCallExpression validateMethodCallExpression = new MethodCallExpression ( \n new VariableExpression ( paramName ) , STRING0 , EMPTY_TUPLE ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + MethodNode validateMethod = \n + classNode . getMethod ( STRING0 , new Parameter [ NUMBER0 ] ) ; \n + if ( validateMethod != null ) { \n + validateMethodCallExpression . setMethodTarget ( validateMethod ) ; \n + } \n wrapper . addStatement ( new ExpressionStatement ( validateMethodCallExpression ) ) ; \n }", "msg_token": "When validating command object argument to controller action method statically invoke the validate method when possible"} {"diff": " public class FilteredLogger implements Logger { \n private final String name ; \n private final Logger delegate ; \n \n + public FilteredLogger ( ) { \n + this ( null ) ; \n + } \n + \n private FilteredLogger ( String name ) { \n this . name = name ; \n this . delegate = new StdErrLog ( name ) ;", "msg_token": "Revert removal of public constructor of FilteredLogger"} {"diff": " public class ServiceNowConfiguration implements Cloneable { \n @ uriparam ( label = STRING0 ) \n private ObjectMapper mapper = MAPPER ; \n @ uriparam ( defaultValue = STRING1 , enums = STRING2 ) \n - private ServiceNowRelease release = ServiceNowRelease . HELSINKY ; \n + private ServiceNowRelease release = ServiceNowRelease . HELSINKI ; \n \n \n public String getUserName ( ) { \n public enum ServiceNowRelease implements ServiceNowProducerSupplier { \n return null ; \n } \n } , \n - HELSINKY { \n + HELSINKI { \n @ override \n public ServiceNowProducer get ( ServiceNowEndpoint endpoint ) throws Exception { \n return new HelsinkiServiceNowProducer ( endpoint ) ; \n import NAMESPACE ; \n COMMENT \n public class HelsinkiServiceNowProducer extends AbstractServiceNowProducer { \n public HelsinkiServiceNowProducer ( ServiceNowEndpoint endpoint ) throws Exception { \n - super ( endpoint , ServiceNowRelease . HELSINKY ) ; \n + super ( endpoint , ServiceNowRelease . HELSINKI ) ; \n \n bind ( ServiceNowConstants . RESOURCE_TABLE , new HelsinkiServiceNowTableProcessor ( endpoint ) ) ; \n bind ( ServiceNowConstants . RESOURCE_AGGREGATE , new HelsinkiServiceNowAggregateProcessor ( endpoint ) ) ;", "msg_token": "Fix typo in ServiceNowRelease"} {"diff": " public class Preloader { \n \n private static boolean parseMeasureTime ( String arg ) { \n if ( STRING0 . equals ( arg ) ) return true ; \n - if ( STRING1 . equals ( arg ) ) return true ; \n + if ( STRING1 . equals ( arg ) ) return false ; \n System . out . println ( STRING2 + arg ) ; \n printUsageAndExit ( ) ; \n return false ;", "msg_token": "Parsing notime fixed"} {"diff": " class Validator { \n boolean deferred = false ; \n double libraryVersion = Double . parseDouble ( \n tagInfo . getTagLibrary ( ) . getRequiredVersion ( ) ) ; \n + boolean elIgnored = \n + pageInfo . isELIgnored ( ) || \n + libraryVersion < FLOAT0 ; \n boolean deferredSyntaxAllowedAsLiteral = \n pageInfo . isDeferredSyntaxAllowedAsLiteral ( ) || \n libraryVersion < FLOAT1 ; \n \n ELNode . Nodes el = null ; \n - if ( ! runtimeExpression && ! pageInfo . isELIgnored ( ) ) { \n + if ( ! runtimeExpression && ! elIgnored ) { \n el = ELParser . parse ( attrs . getValue ( i ) , \n deferredSyntaxAllowedAsLiteral ) ; \n Iterator < ELNode > nodes = el . iterator ( ) ;", "msg_token": "isELIgnored depends on library version and web xml declaration"} {"diff": " public abstract class MultiPageAbstractEditor extends MultiPageEditorPart \n tabFolder . setTopRight ( topRight , SWT . RIGHT | SWT . WRAP ) ; \n } \n tabFolder . setTabPosition ( SWT . TOP ) ; \n + SINGLE \n SINGLE \n Layout parentLayout = tabFolder . getParent ( ) . getLayout ( ) ; \n if ( parentLayout instanceof FillLayout ) { \n - ( ( FillLayout ) parentLayout ) . marginHeight = NUMBER0 ; \n - SINGLE \n + ( ( FillLayout ) parentLayout ) . marginHeight = NUMBER1 ; \n + SINGLE \n } \n } \n }", "msg_token": "Entity editor render fix"} {"diff": " class VarCheck extends AbstractPostOrderCallback implements \n \n static final DiagnosticType UNDEFINED_VAR_ERROR = DiagnosticType . error ( \n STRING0 , \n - STRING1 ) ; \n + STRING2 ) ; \n \n static final DiagnosticType VIOLATED_MODULE_DEP_ERROR = DiagnosticType . error ( \n STRING3 ,", "msg_token": "undefined can mean something else"} {"diff": " public class SingleInspectionProfilePanel extends JPanel { \n mySelectedProfile = modifiableModel ; \n myInitialProfile = mySelectedProfile . getName ( ) ; \n initDescriptors ( ) ; \n - fillTreeData ( myProfileFilter != null ? myProfileFilter . getFilter ( ) : null , true ) ; \n - repaintTableData ( ) ; \n + filterTree ( myProfileFilter != null ? myProfileFilter . getFilter ( ) : null ) ; \n } \n \n @ nullable \n public class SingleInspectionProfilePanel extends JPanel { \n public void reset ( ) { \n myModified = false ; \n setSelectedProfile ( mySelectedProfile ) ; \n + final String filter = myProfileFilter . getFilter ( ) ; \n myProfileFilter . reset ( ) ; \n + myProfileFilter . setSelectedItem ( filter ) ; \n } \n \n public void apply ( ) throws ConfigurationException {", "msg_token": "restore search filter for Errors"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n class SimulatedTrackball { \n \n + private static final String TAG = STRING0 ; \n + \n SINGLE \n SINGLE \n SINGLE \n class SimulatedTrackball { \n mEdgeSwipePossible = false ; \n Intent intent = new Intent ( STRING1 ) ; \n intent . addCategory ( STRING2 ) ; \n - viewroot . mView . getContext ( ) . startActivity ( intent ) ; \n + try { \n + viewroot . mView . getContext ( ) . startActivity ( intent ) ; \n + } catch ( ActivityNotFoundException e ) { \n + Log . e ( TAG , STRING3 ) ; \n + } \n } \n SINGLE \n SINGLE", "msg_token": "Catch exception of nonfound activities"} {"diff": " final class PooledUnsafeDirectByteBuf extends PooledByteBuf < ByteBuffer > { \n \n @ override \n protected ByteBuffer newInternalNioBuffer ( ByteBuffer memory ) { \n - return memory . duplicate ( ) ; \n + return memory ; \n } \n \n @ override", "msg_token": "Optimize PooledUnsafeDirectByteBuf newInternalNioBuffer"} {"diff": " public class PropertyValueBuffer \n COMMENT \n COMMENT \n \n - public PropertyValueBuffer ( JsonParser jp , DeserializationContext ctxt , int paramCount , \n + public PropertyValueBuffer ( JsonParser p , DeserializationContext ctxt , int paramCount , \n ObjectIdReader oir ) \n { \n - _parser = jp ; \n + _parser = p ; \n _context = ctxt ; \n _paramsNeeded = paramCount ; \n _objectIdReader = oir ; \n public class PropertyValueBuffer \n } \n return false ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public boolean assignParameter ( int index , Object value ) { \n - SINGLE \n - _creatorParameters [ index ] = value ; \n - return false ; \n - } \n - \n + \n public void bufferProperty ( SettableBeanProperty prop , Object value ) { \n _buffered = new PropertyValue . Regular ( _buffered , value , prop ) ; \n }", "msg_token": "Remove deprecated internal method"} {"diff": " public class ConferenceFocusPanel \n ConferenceMemberPanel memberPanel \n = new ConferenceMemberPanel ( callRenderer , member ) ; \n \n - member . addPropertyChangeListener ( \n - ( ConferenceMemberPanel ) memberPanel ) ; \n + member . addPropertyChangeListener ( memberPanel ) ; \n \n SINGLE \n conferenceMembersPanels . put ( member , memberPanel ) ;", "msg_token": "Remove a warning about a redundant cast"} {"diff": " public interface Connector \n ConnectorTransactionHandle beginTransaction ( IsolationLevel isolationLevel , boolean readOnly ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n ConnectorMetadata getMetadata ( ConnectorTransactionHandle transactionHandle ) ; \n \n public interface Connector \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n default void commit ( ConnectorTransactionHandle transactionHandle ) \n { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n default void rollback ( ConnectorTransactionHandle transactionHandle ) \n {", "msg_token": "Add more comments to Connector interface"} {"diff": " public class ShowsActivity extends BaseActivity implements CompatActionBarNavLis \n @ override \n public boolean onPrepareOptionsMenu ( Menu menu ) { \n SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( this ) ; \n - boolean isShowingLists = prefs . getInt ( SeriesGuidePreferences . KEY_SHOWFILTER , NUMBER0 ) == LIST_NAV_ITEM_POSITION ; \n - \n - menu . findItem ( R . id . menu_list_add ) . setEnabled ( isShowingLists ) . setVisible ( isShowingLists ) ; \n \n MenuItem sortMenu = menu . findItem ( R . id . menu_showsortby ) ; \n - sortMenu . setEnabled ( ! isShowingLists ) . setVisible ( ! isShowingLists ) ; \n if ( android . os . Build . VERSION . SDK_INT >= NUMBER1 ) { \n final CharSequence [ ] items = getResources ( ) . getStringArray ( R . array . shsorting ) ; \n ShowSorting sorting = ShowSorting", "msg_token": "Also remove old onPrepareOptionsMenu code"} {"diff": " public final class TvInputManager { \n } \n } ; \n try { \n - mService . registerCallback ( mManagerCallback , mUserId ) ; \n + if ( mService != null ) { \n + mService . registerCallback ( mManagerCallback , mUserId ) ; \n + } \n } catch ( RemoteException e ) { \n Log . e ( TAG , STRING0 + e ) ; \n } \n public class TvView extends ViewGroup { \n SINGLE \n SINGLE \n mSessionCallback = new MySessionCallback ( inputId , channelUri , params ) ; \n - mTvInputManager . createSession ( inputId , mSessionCallback , mHandler ) ; \n + if ( mTvInputManager != null ) { \n + mTvInputManager . createSession ( inputId , mSessionCallback , mHandler ) ; \n + } \n } \n }", "msg_token": "Enable inflating class android media tv TvView on non TV devices"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n class FormattedText {", "msg_token": "Updated javadoc a little bit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ component \n + SINGLE \n public class HashGridSampler implements SampleSource { \n \n private static final Logger LOG = LoggerFactory . getLogger ( HashGridSampler . class ) ; \n public class TileCache extends CacheLoader < TileRequest , Tile > \n @ autowired \n private SampleFactory sampleFactory ; \n \n - @ autowired \n - private HashGridSampler hashSampler ; \n - \n - @ autowired \n - private SampleCache sampleCache ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n private final LoadingCache < TileRequest , Tile > tileCache = CacheBuilder \n . newBuilder ( )", "msg_token": "disable alernate sample source to conserve memory on deployments"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class CategoriesPagePresenter extends AbstractWizardPage < ProjectConfigDto \n \n @ override \n public void projectNameChanged ( String name ) { \n - dataObject . setPath ( name ) ; \n + dataObject . setPath ( Path . valueOf ( name ) . makeAbsolute ( ) . toString ( ) ) ; \n dataObject . setName ( name ) ; \n updateDelegate . updateControls ( ) ;", "msg_token": "Fix path in Project DTO"} {"diff": " final class FragmentManagerImpl extends FragmentManager { \n if ( ! HONEYCOMB && ( id == android . R . id . content ) ) { \n SINGLE \n SINGLE \n - return findFragmentById ( R . id . abs__content ) ; \n + id = R . id . abs__content ; \n } \n \n if ( mActive != null ) {", "msg_token": "Skip recursive call"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Hive { \n for ( String functionName : db . getFunctions ( dbName , STRING0 ) ) { \n Function function = db . getFunction ( dbName , functionName ) ; \n try { \n - FunctionRegistry . registerPermanentFunction ( functionName , function . getClassName ( ) , false , \n - FunctionTask . toFunctionResource ( function . getResourceUris ( ) ) ) ; \n + FunctionRegistry . registerPermanentFunction ( \n + FunctionUtils . qualifyFunctionName ( functionName , dbName ) , function . getClassName ( ) , \n + false , FunctionTask . toFunctionResource ( function . getResourceUris ( ) ) ) ; \n } catch ( Exception e ) { \n LOG . warn ( STRING1 + \n functionName + STRING2 + function . getClassName ( ) + STRING3 ) ;", "msg_token": "Cannot call permanent UDFs Chinna Rao Lalam via Jason Dere"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + \n public class ProcessClosurePrimitivesTest extends CompilerTestCase { \n private String additionalCode ; \n private String additionalEndCode ;", "msg_token": "Added an empty line"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class WPLaunchActivity extends Activity { \n \n public class WPLaunchActivity extends Activity { \n return ; \n } \n \n - configureOptimizely ( ) ; \n - \n Intent intent = new Intent ( this , WPMainActivity . class ) ; \n intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TASK | Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n startActivity ( intent ) ; \n finish ( ) ; \n } \n - \n - private void configureOptimizely ( ) { \n - Optimizely . addOptimizelyEventListener ( new WPOptimizelyEventListener ( ) ) ; \n - Optimizely . startOptimizelyWithAPIToken ( BuildConfig . OPTIMIZELY_TOKEN , getApplication ( ) ) ; \n - } \n }", "msg_token": "Remove Optimizely configuration from WPLaunchActivity"} {"diff": " public class ServicesGraph { \n } \n } \n \n + @ suppresswarnings ( STRING0 ) \n public static Object unpackIfLegacy ( Service service ) { \n if ( service instanceof LegacyServiceAdapter ) { \n return ( ( LegacyServiceAdapter ) service ) . getAdapted ( ) ;", "msg_token": "Suppress deprecation warning"} {"diff": " class MonitorMBean implements DynamicMBean { \n \n private ObjectName createObjectName ( String domain ) { \n try { \n + final String name = monitor . getConfig ( ) . getName ( ) ; \n + final String sanitizedDomain = INVALID_CHARS . matcher ( domain ) . replaceAll ( STRING0 ) ; \n + final String sanitizedName = INVALID_CHARS . matcher ( name ) . replaceAll ( STRING0 ) ; \n StringBuilder builder = new StringBuilder ( ) ; \n - builder . append ( domain ) . append ( STRING1 ) ; \n - builder . append ( STRING2 ) . append ( monitor . getConfig ( ) . getName ( ) ) ; \n + builder . append ( sanitizedDomain ) . append ( STRING1 ) ; \n + builder . append ( STRING2 ) . append ( sanitizedName ) ; \n \n TagList tags = monitor . getConfig ( ) . getTags ( ) ; \n for ( Tag tag : tags ) {", "msg_token": "sanitize name and domain for jmx"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class KotlinDebuggerTestCase extends DebuggerTestCase { \n String packageName = file . getName ( ) . replace ( STRING0 , STRING1 ) ; \n createLocalProcess ( PackageClassUtils . getPackageClassFqName ( new FqName ( packageName ) ) . asString ( ) ) ; \n } \n + \n + @ override \n + protected Sdk getTestProjectJdk ( ) { \n + return PluginTestCaseBase . jdkFromIdeaHome ( ) ; \n + } \n }", "msg_token": "Add JDK for debugger tests"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class SvgApiProvider extends SignavioContentRepresentationProvider {", "msg_token": "Activiti Cycle removed unused import breaks build"} {"diff": " public class AccessibilityManagerService extends IAccessibilityManager . Stub { \n \n public int resolveCallingUserIdEnforcingPermissionsLocked ( int userId ) { \n final int callingUid = Binder . getCallingUid ( ) ; \n - if ( callingUid == Process . SYSTEM_UID \n + if ( callingUid == NUMBER0 \n + || callingUid == Process . SYSTEM_UID \n || callingUid == Process . SHELL_UID ) { \n return mCurrentUserId ; \n }", "msg_token": "Allowing the root user to use the screen introspection APIs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VcsLogHashMapImpl implements Disposable , VcsLogHashMap { \n } \n \n private static class MyCommitIdKeyDescriptor implements KeyDescriptor < CommitId > { \n - private final VcsRootsRegistry myRootsRegistry ; \n + @ notnull private final VcsRootsRegistry myRootsRegistry ; \n \n public MyCommitIdKeyDescriptor ( @ notnull Project project ) { \n myRootsRegistry = ServiceManager . getService ( project , VcsRootsRegistry . class ) ;", "msg_token": "vcs log add NotNull annotation reformat code"} {"diff": " public class GeoIntentActivity extends OsmandListActivity { \n String parameter = data . getQueryParameter ( STRING0 ) ; \n if ( parameter == null ) { \n parameter = data . getQueryParameter ( STRING1 ) ; \n - } \n + } \n if ( parameter != null ) { \n q = parameter . split ( STRING2 ) [ NUMBER0 ] ; \n }", "msg_token": "Fixed bad whitespace"} {"diff": " public class IrcStack \n LOGGER . error ( STRING0 \n + targetNick \n + STRING1 ) ; \n + LOGGER . debug ( STRING2 + msg . asRaw ( ) ) ; \n return ; \n } \n ChatRoomMemberRole originalRole = targetMember . getRole ( ) ;", "msg_token": "Log complete mode message if member instance cannot be found"} {"diff": " public class AnimationSet extends Animation { \n super . setStartOffset ( startOffset ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n public boolean hasAlpha ( ) { \n if ( mDirty ) {", "msg_token": "Fix the build"} {"diff": " public class SimpleBroadcaster extends DefaultBroadcaster { \n super ( id , config ) ; \n } \n \n + protected void start ( ) { \n + if ( ! started . getAndSet ( true ) ) { \n + setID ( name ) ; \n + broadcasterCache = bc . getBroadcasterCache ( ) ; \n + broadcasterCache . start ( ) ; \n + } \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix SimpleBroadcaster regression"} {"diff": " public class RuleDocumentParser { \n ruleBuilder \n . setDebtCharacteristicKey ( ( String ) ruleSource . get ( RuleDocument . FIELD_CHARACTERISTIC_KEY ) ) \n . setDebtCharacteristicName ( ( String ) ruleSource . get ( RuleDocument . FIELD_CHARACTERISTIC_NAME ) ) \n - . setDebtSubCharacteristicKey ( ( String ) ruleSource . get ( RuleDocument . FIELD_CHARACTERISTIC_KEY ) ) \n - . setDebtSubCharacteristicName ( ( String ) ruleSource . get ( RuleDocument . FIELD_CHARACTERISTIC_NAME ) ) \n + . setDebtSubCharacteristicKey ( ( String ) ruleSource . get ( RuleDocument . FIELD_SUB_CHARACTERISTIC_KEY ) ) \n + . setDebtSubCharacteristicName ( ( String ) ruleSource . get ( RuleDocument . FIELD_SUB_CHARACTERISTIC_NAME ) ) \n . setDebtRemediationFunction ( \n new DefaultDebtRemediationFunction ( DebtRemediationFunction . Type . valueOf ( ( String ) ruleSource . get ( RuleDocument . FIELD_REMEDIATION_FUNCTION ) ) , \n ( String ) ruleSource . get ( RuleDocument . FIELD_REMEDIATION_COEFFICIENT ) ,", "msg_token": "Fix wrong display of rule sub characteristic key and name"} {"diff": " public class AddColumnGeneratorDefaultClauseBeforeNotNull extends AddColumnGener \n || database instanceof DerbyDatabase \n || database instanceof DB2Database \n || database instanceof FirebirdDatabase \n + || database instanceof SybaseDatabase \n + || database instanceof SybaseASADatabase \n || database instanceof InformixDatabase ; \n }", "msg_token": "use correct syntax for sybase"} {"diff": " import NAMESPACE ; \n public class VersionStringComparator implements Comparator < String > { \n \n private static final Pattern VERSION_STRING_PATTERN = \n - Pattern . compile ( STRING0 ) ; \n + Pattern . compile ( STRING1 ) ; \n \n private static final Pattern VERSION_STRING_RC_PATTERN = Pattern . compile ( STRING2 ) ;", "msg_token": "Fix version string parsing for versions ending in preview"} {"diff": " public class StandaloneScrubber \n catch ( Exception e ) \n { \n System . err . println ( String . format ( STRING0 , sstable , e . getMessage ( ) ) ) ; \n - if ( options . debug ) \n - e . printStackTrace ( System . err ) ; \n + e . printStackTrace ( System . err ) ; \n } \n } \n }", "msg_token": "always print stacktrace if it makes us crash"} {"diff": " public abstract class BaseTest { \n { \n boolean allIsWell = \n antlr ( grammarFileName , grammarFileName , grammarStr , defaultListener , extraOptions ) ; \n - boolean ok ; \n + if ( ! allIsWell ) { \n + return false ; \n + } \n + \n List < String > files = new ArrayList < String > ( ) ; \n if ( lexerName != null ) { \n files . add ( lexerName + STRING0 ) ; \n public abstract class BaseTest { \n files . add ( grammarFileName . substring ( NUMBER0 , grammarFileName . lastIndexOf ( STRING1 ) ) + STRING2 ) ; \n } \n } \n - ok = compile ( files . toArray ( new String [ files . size ( ) ] ) ) ; \n - if ( ! ok ) { allIsWell = false ; } \n + allIsWell = compile ( files . toArray ( new String [ files . size ( ) ] ) ) ; \n return allIsWell ; \n }", "msg_token": "Don t run compiler if tool reported error s"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoApplicationRunningState extends GoRunningState < GoApplicationConfi \n @ override \n protected GoExecutor patchExecutor ( @ notnull GoExecutor executor ) throws ExecutionException { \n if ( isDebug ( ) ) { \n - File dlv = new File ( GoUtil . getPlugin ( ) . getPath ( ) , STRING0 + ( SystemInfo . isMac ? STRING1 : STRING2 ) + STRING3 ) ; \n + File dlv = new File ( GoUtil . getPlugin ( ) . getPath ( ) , STRING0 + ( SystemInfo . isMac ? STRING1 : STRING2 ) + STRING4 + GoConstants . DELVE_EXECUTABLE_NAME ) ; \n if ( dlv . exists ( ) && ! dlv . canExecute ( ) ) { \n SINGLE \n dlv . setExecutable ( true , false ) ;", "msg_token": "use appropriate constant for dlv executable"} {"diff": " public class RedundantLambdaParameterTypeInspection extends BaseJavaLocalInspect \n \n for ( PsiTypeParameter parameter : typeParameters ) { \n final PsiType psiType = substitutor . substitute ( parameter ) ; \n - if ( psiType == null || LambdaUtil . dependsOnTypeParams ( psiType , expression ) ) return ; \n + if ( psiType == null || LambdaUtil . dependsOnTypeParams ( psiType , expression , parameter ) ) return ; \n } \n } \n } \n public class PsiResolveHelperImpl implements PsiResolveHelper { \n } \n final PsiMethod method = LambdaUtil . getFunctionalInterfaceMethod ( functionalInterfaceType ) ; \n if ( method == null || methodParamsDependOnTypeParams ( ( PsiLambdaExpression ) expression , method . getParameterList ( ) . getParameters ( ) , \n - substitutor , typeParameter ) ) { \n + PsiUtil . resolveGenericsClassInType ( functionalInterfaceType ) . getSubstitutor ( ) , typeParameter ) ) { \n return getFailedInferenceConstraint ( typeParameter ) ; \n } \n }", "msg_token": "use correct subst"} {"diff": " public class CoreApplicationEnvironment { \n } \n ) \n ) ; \n - registerApplicationComponent ( VirtualFilePointerManager . class , new CoreVirtualFilePointerManager ( ) ) ; \n + SINGLE \n + myApplication . registerService ( VirtualFilePointerManager . class , new CoreVirtualFilePointerManager ( ) ) ; \n \n myApplication . registerService ( DefaultASTFactory . class , new CoreASTFactory ( ) ) ; \n myApplication . registerService ( PsiBuilderFactory . class , new PsiBuilderFactoryImpl ( ) ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CoreProjectLoader { \n } \n \n moduleManager . loadModules ( ) ; \n - ( ( DirectoryIndexImpl ) DirectoryIndex . getInstance ( project ) ) . initialize ( ) ; \n + SINGLE \n } \n \n public static StorageData loadStorageFile ( ComponentManager componentManager , VirtualFile modulesXml ) throws JDOMException , IOException {", "msg_token": "do not initialize Directoryindex in CoreProjectLoader"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public interface FactoryExpression < D > { \n COMMENT \n COMMENT \n COMMENT \n + @ nullable \n D newInstance ( Object . . . args ) ; \n \n }", "msg_token": "made newInstance nullable"} {"diff": " public abstract class Chunk extends Iced implements Cloneable { \n final void set_abs ( long i , float f ) { long x = i - _start ; if ( NUMBER0 <= x && x < _len ) set ( ( int ) x , f ) ; else _vec . set ( i , f ) ; } \n \n \n - public double [ ] toDoubleArray ( ) { \n - double [ ] res = new double [ _len ] ; \n + public double [ ] toDoubleArray ( double [ ] res ) { \n + if ( res == null ) res = new double [ _len ] ; \n for ( int i = NUMBER0 ; i < _len ; ++ i ) \n res [ i ] = atd ( i ) ; \n return res ;", "msg_token": "Optimize toDoubleArray to take pre existing double array to fill"} {"diff": " public final class MediaStore { \n COMMENT \n public static final String IS_DRM = STRING0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String NO_MEDIA = STRING1 ; \n } \n \n COMMENT \n public class MediaScanner \n map . put ( MediaStore . MediaColumns . MIME_TYPE , mMimeType ) ; \n map . put ( MediaStore . MediaColumns . IS_DRM , mIsDrm ) ; \n \n - if ( ! mNoMedia ) { \n + if ( mNoMedia ) { \n + map . put ( MediaStore . MediaColumns . NO_MEDIA , true ) ; \n + } else { \n if ( MediaFile . isVideoFileType ( mFileType ) ) { \n map . put ( Video . Media . ARTIST , ( mArtist != null && mArtist . length ( ) > NUMBER0 \n ? mArtist : MediaStore . UNKNOWN_STRING ) ) ;", "msg_token": "Add virtual NO_MEDIA column to fix support for"} {"diff": " public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n } \n \n private int findMotionHeader ( float y ) { \n - if ( y <= mStickiedHeader . getBottom ( ) ) { \n + if ( mStickiedHeader != null && y <= mStickiedHeader . getBottom ( ) ) { \n return MATCHED_STICKIED_HEADER ; \n }", "msg_token": "Add check for null stickied header"} {"diff": " public class FileUtils \n return f . delete ( ) ; \n } \n \n - public static boolean delete ( List < String > files ) \n - { \n - boolean bVal = true ; \n - for ( int i = NUMBER0 ; i < files . size ( ) ; ++ i ) \n - { \n - String file = files . get ( i ) ; \n - bVal = delete ( file ) ; \n - if ( bVal ) \n - { \n - if ( logger . isDebugEnabled ( ) ) \n - logger . debug ( STRING0 , file ) ; \n - files . remove ( i ) ; \n - } \n - } \n - return bVal ; \n - } \n - \n public static void delete ( File [ ] files ) \n { \n for ( File file : files )", "msg_token": "removes only half the files code"} {"diff": " public class ExpressionAnalyzer \n throw new SemanticException ( node , STRING0 , node . getName ( ) ) ; \n } \n else if ( matches . size ( ) > NUMBER0 ) { \n - throw new SemanticException ( node , STRING1 , Iterables . transform ( matches , nameGetter ( ) ) ) ; \n + throw new SemanticException ( node , STRING1 , node . getName ( ) , Iterables . transform ( matches , nameGetter ( ) ) ) ; \n } \n \n return Iterables . getOnlyElement ( matches ) . getType ( ) ;", "msg_token": "Add missing parameter to format string"} {"diff": " public final class Bitmap implements Parcelable { \n nativeSize += getByteCount ( ) ; \n } \n NativeAllocationRegistry registry = new NativeAllocationRegistry ( \n - nativeGetNativeFinalizer ( ) , nativeSize ) ; \n + Bitmap . class . getClassLoader ( ) , nativeGetNativeFinalizer ( ) , nativeSize ) ; \n registry . registerNativeAllocation ( this , nativeBitmap ) ; \n } \n \n public class Canvas { \n SINGLE \n private static class NoImagePreloadHolder { \n public static final NativeAllocationRegistry sRegistry = new NativeAllocationRegistry ( \n - getNativeFinalizer ( ) , NATIVE_ALLOCATION_SIZE ) ; \n + Canvas . class . getClassLoader ( ) , getNativeFinalizer ( ) , NATIVE_ALLOCATION_SIZE ) ; \n } \n \n SINGLE \n public class Paint { \n SINGLE \n private static class NoImagePreloadHolder { \n public static final NativeAllocationRegistry sRegistry = new NativeAllocationRegistry ( \n - nGetNativeFinalizer ( ) , NATIVE_PAINT_SIZE ) ; \n + Paint . class . getClassLoader ( ) , nGetNativeFinalizer ( ) , NATIVE_PAINT_SIZE ) ; \n } \n \n COMMENT", "msg_token": "Hold a ClassLoader reference in NativeAllocationRegistry"} {"diff": " public class DrawerAdapter extends BaseAdapter { \n \n private final LayoutInflater mInflater ; \n private final DrawerItems mItems = new DrawerItems ( ) ; \n + private final int mInitialPadding ; \n \n public DrawerAdapter ( Context context ) { \n super ( ) ; \n mInflater = LayoutInflater . from ( context ) ; \n + mInitialPadding = context . getResources ( ) . getDimensionPixelSize ( R . dimen . drawer_divider_margin ) ; \n } \n \n @ override \n public class DrawerAdapter extends BaseAdapter { \n holder . content . setBackgroundResource ( NUMBER0 ) ; \n } \n \n + SINGLE \n + int topPadding = ( position == NUMBER0 ? mInitialPadding : NUMBER0 ) ; \n + if ( convertView . getPaddingTop ( ) != topPadding ) { \n + convertView . setPadding ( NUMBER0 , topPadding , NUMBER0 , NUMBER0 ) ; \n + } \n + \n return convertView ; \n }", "msg_token": "Added top padding to first item in the drawer Reader"} {"diff": " public abstract class Animator implements Disposable { \n } \n \n public void resume ( ) { \n + if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) return ; \n + \n if ( myCycleDuration == NUMBER0 ) { \n myCurrentFrame = myTotalFrames - NUMBER1 ; \n paint ( ) ;", "msg_token": "Fix memory leak in tests by disallowing animation"} {"diff": " public class OSQLHelper { \n } \n \n public static String stringContent ( final String iContent ) { \n - if ( iContent . startsWith ( STRING0 ) || iContent . startsWith ( STRING1 ) ) \n + if ( iContent . length ( ) > NUMBER0 && iContent . startsWith ( STRING0 ) || iContent . startsWith ( STRING1 ) ) \n return iContent . substring ( NUMBER0 , iContent . length ( ) - NUMBER0 ) ; \n return iContent ; \n }", "msg_token": "Fixed bug on missed close and"} {"diff": " public abstract class BaseDanmakuParser { \n mDataSource = source ; \n return this ; \n } \n - public BaseDanmakuParser setTimer ( DanmakuTimer timer ) { \n - mTimer = timer ; \n - return this ; \n + \n + public BaseDanmakuParser setTimer ( DanmakuTimer timer ) { \n + mTimer = timer ; \n + return this ; \n + } \n + \n + public DanmakuTimer getTimer ( ) { \n + return mTimer ; \n } \n \n public abstract Danmakus parse ( ) ;", "msg_token": "add getTimer method"} {"diff": " public class VcsLogFilterer { \n \n private static final Logger LOG = Logger . getInstance ( VcsLogFilterer . class ) ; \n \n - private static final int LOAD_MORE_COMMITS_FIRST_STEP_LIMIT = NUMBER0 ; \n + private static final int LOAD_MORE_COMMITS_FIRST_STEP_LIMIT = NUMBER1 ; \n \n @ notnull private final VcsLogDataHolder myLogDataHolder ; \n @ notnull private final VcsLogUiImpl myUI ;", "msg_token": "log allow more results for the first request to get filtered results"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class Batch { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated \n public final class Batch { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class DefaultBroadcasterFactory extends BroadcasterFactory { \n \n Broadcaster b = store . get ( id ) ; \n if ( b != null ) { \n - return b ; \n + throw new IllegalStateException ( STRING0 ) ; \n } \n \n try {", "msg_token": "Throw an exception when a Broadcaster already exists to prevent lost of Broadcaster"} {"diff": " public final class HttpLoggingInterceptor implements Interceptor { \n if ( logBody ) { \n BufferedSource source = responseBody . source ( ) ; \n source . request ( Long . MAX_VALUE ) ; SINGLE \n - Buffer buffer = source . buffer ( ) . clone ( ) ; \n + Buffer buffer = source . buffer ( ) ; \n \n Charset charset = UTF8 ; \n MediaType contentType = responseBody . contentType ( ) ;", "msg_token": "Remove double clone of Buffer"} {"diff": " public class AndSpec < T > extends CompositeSpec < T > { \n return new AndSpec < T > ( combinedSpecs ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n public AndSpec < T > and ( Closure spec ) { \n return and ( new ClosureSpec < T > ( spec ) ) ; \n }", "msg_token": "Avoid compiler warning"} {"diff": " public class StatusBarHeaderView extends RelativeLayout implements View . OnClickL \n requestCaptureValues ( ) ; \n } \n \n - \n private void updateClickTargets ( ) { \n - setClickable ( mExpanded ) ; \n - \n + mMultiUserSwitch . setClickable ( mExpanded ) ; \n mSystemIconsSuperContainer . setClickable ( mExpanded ) ; \n mAlarmStatus . setClickable ( mNextAlarm != null && mNextAlarm . getShowIntent ( ) != null ) ; \n }", "msg_token": "Fix a few StatusBarHeaderView regressions"} {"diff": " public class CallPanel \n } \n else if ( evt . getNewValue ( ) == CallParticipantState . CONNECTED ) { \n SINGLE \n + SoundLoader . stop ( Constants . getDefaultOutgoingCallAudio ( ) ) ; \n participantPanel . startCallTimer ( ) ; \n } \n else if ( evt . getNewValue ( ) == CallParticipantState . CONNECTING ) {", "msg_token": "stop call audio when connected"} {"diff": " public class AddressResolver { \n \n public AddressResolver ( VertxImpl vertx , AddressResolverOptions options ) { \n DnsNameResolverBuilder builder = new DnsNameResolverBuilder ( vertx . createEventLoopContext ( null , null , new JsonObject ( ) , Thread . currentThread ( ) . getContextClassLoader ( ) ) . nettyEventLoop ( ) ) ; \n - builder . channelFactory ( NioDatagramChannel : : new ) ; \n + builder . channelType ( NioDatagramChannel . class ) ; \n if ( options != null ) { \n List < String > dnsServers = options . getServers ( ) ; \n if ( dnsServers != null && dnsServers . size ( ) > NUMBER0 ) {", "msg_token": "in AddressResolver uses the class instead of a lambda ref to the constructor as it confuses some version of javac"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + SINGLE \n public class RealmArrayAdapter < E extends RealmObject > extends ArrayAdapter < E > { \n \n public static final String TAG = RealmArrayAdapter . class . getName ( ) ;", "msg_token": "Added comment about another limitation with doing RealmArrayAdapter"} {"diff": " public class GoTestConsoleProperties extends TestConsoleProperties implements SM \n if ( myFailed ) { \n if ( ! StringUtil . isEmptyOrSpaces ( text ) && ! FINISHED . matcher ( text ) . find ( ) ) { \n myStdOut . append ( text ) ; \n + return true ; \n } \n else { \n return processFailedMessage ( outputType , visitor ) ; \n } \n } \n \n - return true ; \n + return super . processServiceMessages ( text , outputType , visitor ) ; \n } \n \n private boolean processNotFinishedMessage ( String message , Key outputType , ServiceMessageVisitor visitor ) throws ParseException {", "msg_token": "Process compiler error messages while testing"} {"diff": " public class Orient extends OSharedResourceAbstract { \n return profiler ; \n } \n \n - public void registerDatabaseFactory ( ODatabaseThreadLocalFactory iDatabaseFactory ) { \n + public void registerThreadDatabaseFactory ( ODatabaseThreadLocalFactory iDatabaseFactory ) { \n databaseThreadFactory = iDatabaseFactory ; \n } \n } \n public class DatabaseThreadFactoryTest { \n \n @ test ( dependsOnMethods = STRING0 ) \n public void testFactory ( ) { \n - Orient . instance ( ) . registerDatabaseFactory ( new ODatabaseThreadLocalFactory ( ) { \n + Orient . instance ( ) . registerThreadDatabaseFactory ( new ODatabaseThreadLocalFactory ( ) { \n \n @ override \n public ODatabaseRecord getDb ( ) {", "msg_token": "Changed the signature in Orient class to register custom Thread database factory"} {"diff": " public class CacheService \n if ( ! isLocal ) { \n deregisterAllListener ( objectName ) ; \n } \n - SINGLE \n setStatisticsEnabled ( objectName , false ) ; \n - SINGLE \n setManagementEnabled ( objectName , false ) ; \n deleteCacheConfig ( objectName ) ; \n deleteCacheStat ( objectName ) ;", "msg_token": "Removed todo since it s already fixed"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AppleDsym \n Path unstrippedBinaryPath = getResolver ( ) . getAbsolutePath ( unstrippedBinarySourcePath ) ; \n Path dwarfFileFolder = dsymOutputPath . resolve ( DSYM_DWARF_FILE_FOLDER ) ; \n return ImmutableList . < Step > of ( \n + new RmStep ( getProjectFilesystem ( ) , dsymOutputPath , true , true ) , \n new DsymStep ( \n getProjectFilesystem ( ) , \n dsymutil . getEnvironment ( getResolver ( ) ) ,", "msg_token": "Remove existing output before creating new one in AppleDsym"} {"diff": " public final class ViewRoot extends Handler implements ViewParent , \n } else { \n didFinish = false ; \n } \n - if ( event != null ) { \n - event . scale ( mAppScaleInverted ) ; \n - } \n \n if ( DEBUG_TRACKBALL ) Log . v ( TAG , STRING0 + event ) ;", "msg_token": "don t scale trackball event"} {"diff": " final class StandardContextValve \n \n SINGLE \n Wrapper wrapper = request . getWrapper ( ) ; \n - \n - if ( wrapper . isUnavailable ( ) ) { \n - SINGLE \n - SINGLE \n - wrapper = ( Wrapper ) container . findChild ( wrapper . getName ( ) ) ; \n - } \n - \n if ( wrapper == null ) { \n String requestURI = request . getDecodedRequestURI ( ) ; \n notFound ( requestURI , response ) ;", "msg_token": "Revert previous patch to fix obvious potential NPE as pointed out by Remy"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface RequestMatcher { \n + public interface RequestMatcher extends org . springframework . security . web . util . matcher . RequestMatcher { \n \n COMMENT \n COMMENT", "msg_token": "old RequestMatcher interface extends new RequestMatcher"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class KeyguardBottomAreaView extends FrameLayout implements View . OnClickL \n } \n \n private final BroadcastReceiver mDevicePolicyReceiver = new BroadcastReceiver ( ) { \n + @ override \n public void onReceive ( Context context , Intent intent ) { \n post ( new Runnable ( ) { \n @ override \n public class KeyguardBottomAreaView extends FrameLayout implements View . OnClickL \n \n @ override \n public void onFingerprintError ( int msgId , String errString ) { \n - if ( ! KeyguardUpdateMonitor . getInstance ( mContext ) . isUnlockingWithFingerprintAllowed ( ) ) { \n + if ( ! KeyguardUpdateMonitor . getInstance ( mContext ) . isUnlockingWithFingerprintAllowed ( ) \n + || msgId == FingerprintManager . FINGERPRINT_ERROR_CANCELED ) { \n return ; \n } \n SINGLE", "msg_token": "Don t show fingerprint cancellation messages in keyguard"} {"diff": " public interface HgUpdater { \n class UpdateConfiguration { \n private boolean shouldMerge = true ; \n private boolean shouldCommitAfterMerge = true ; \n - private boolean shouldRebase = true ; \n + private boolean shouldRebase = false ; \n \n \n public void setShouldMerge ( boolean shouldMerge ) {", "msg_token": "default update Project strategy should be merge strategy"} {"diff": " public abstract class ClassAnnotationInformationFactory < A extends Annotation , T > \n private final Class < A > annotationType ; \n private final Class < ? > multiAnnotationType ; \n private final DotName annotationDotName ; \n - private final DotName multiAnnotationDotName ; \n + private final DotName multiAnnotationDotName ; \n \n \n protected ClassAnnotationInformationFactory ( final Class < A > annotationType , final Class < ? > multiAnnotationType ) {", "msg_token": "Fix small ws issue"} {"diff": " public class XQPreprocessor { \n SINGLE \n \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public boolean visit ( SimpleType node ) { \n - if ( node . toString ( ) . equals ( STRING0 ) ) { \n - System . err . println ( STRING1 ) ; \n - } \n - return true ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + COMMENT \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "Remove color debug message"} {"diff": " public final class ByteBufferedChannelManager implements TransferEnvelopeDispatc \n \n final ChannelContext cc = this . registeredChannels . get ( localReceiver ) ; \n if ( cc == null ) { \n - throw new IOException ( STRING0 + localReceiver ) ; \n + SINGLE \n + LOG . warn ( STRING0 + localReceiver ) ; \n + continue ; \n } \n \n if ( ! cc . isInputChannel ( ) ) {", "msg_token": "Increased robustness of envelope routing in presence of execution failures"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IndexWithShadowReplicasIT extends ESIntegTestCase { \n \n } \n \n + @ testlogging ( STRING0 ) \n public void testIndexWithFewDocuments ( ) throws Exception { \n final Path dataPath = createTempDir ( ) ; \n Settings nodeSettings = nodeSettings ( dataPath ) ;", "msg_token": "TEST enable TRACE logging for gateway on testIndexWithFewDocuments"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class NewChunk extends Chunk { \n } \n SINGLE \n SINGLE \n - static final int MAX_FLOAT_MANTISSA = NUMBER0 ; \n \n Chunk compress ( ) { \n Chunk res = compress2 ( ) ;", "msg_token": "remove ideaj warning"} {"diff": " public final class Http2OpenListener implements ChannelListener < StreamConnection \n final PotentialHttp2Connection potentialConnection = new PotentialHttp2Connection ( channel ) ; \n channel . getSourceChannel ( ) . setReadListener ( potentialConnection ) ; \n final SSLEngine sslEngine = JsseXnioSsl . getSslEngine ( ( SslConnection ) channel ) ; \n - String existing = null ; SINGLE \n + String existing = ( String ) sslEngine . getSession ( ) . getValue ( PROTOCOL_KEY ) ; \n SINGLE \n if ( existing != null ) { \n UndertowLogger . REQUEST_LOGGER . debug ( STRING0 ) ;", "msg_token": "Add back commented out code"} {"diff": " public class DefaultGradleConnectionBuilder implements GradleConnectionBuilderIn \n compositeConnectionParametersBuilder . setDaemonMaxIdleTimeValue ( daemonMaxIdleTimeValue ) ; \n compositeConnectionParametersBuilder . setDaemonMaxIdleTimeUnits ( daemonMaxIdleTimeUnits ) ; \n compositeConnectionParametersBuilder . setDaemonBaseDir ( daemonBaseDir ) ; \n - \n + \n if ( integrated ) { \n compositeConnectionParametersBuilder . setEmbedded ( embedded ) ; \n DefaultCompositeConnectionParameters connectionParameters = compositeConnectionParametersBuilder . build ( ) ; \n public class DefaultGradleConnectionBuilder implements GradleConnectionBuilderIn \n } \n \n @ override \n + public GradleConnectionBuilder useGradleVersion ( String gradleVersion ) { \n + this . coordinatorDistribution = distributionFactory . getDistribution ( gradleVersion ) ; \n + return this ; \n + } \n + \n + @ override \n public GradleConnectionBuilderInternal useClasspathDistribution ( ) { \n this . coordinatorDistribution = distributionFactory . getClasspathDistribution ( ) ; \n return this ; \n public interface GradleConnectionBuilderInternal extends GradleConnectionBuilder \n \n GradleConnectionBuilder useInstallation ( File gradleHome ) ; \n \n + GradleConnectionBuilder useGradleVersion ( String version ) ; \n + \n GradleConnectionBuilderInternal useClasspathDistribution ( ) ; \n }", "msg_token": "Add GradleConnectionBuilderInternal useGradleVersion"} {"diff": " public class WordVectorSerializer \n \n float [ ] vector = new float [ split . length - NUMBER0 ] ; \n for ( int i = NUMBER0 ; i < split . length ; i ++ ) { \n - vector [ i ] = Float . parseFloat ( split [ i ] ) ; \n + vector [ i - NUMBER0 ] = Float . parseFloat ( split [ i ] ) ; \n } \n \n syn0 . putRow ( currLine , Transforms . unitVec ( Nd4j . create ( vector ) ) ) ;", "msg_token": "Fixed array index for loading text model"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class JaspicCallbackHandler implements CallbackHandler { \n private void handlePasswordValidationCallback ( \n PasswordValidationCallback passwordValidationCallback ) { \n Subject subject = passwordValidationCallback . getSubject ( ) ; \n + String username = passwordValidationCallback . getUsername ( ) ; \n + String password = new String ( passwordValidationCallback . getPassword ( ) ) ; \n \n - passwordValidationCallback . setResult ( true ) ; \n - subject . getPrincipals ( ) . add ( \n - new GenericPrincipal ( STRING0 , STRING1 , Collections . singletonList ( STRING0 ) ) ) ; \n + Principal principal = realm . authenticate ( username , password ) ; \n + passwordValidationCallback . setResult ( principal != null ) ; \n + \n + if ( principal != null ) { \n + subject . getPrivateCredentials ( ) . add ( principal ) ; \n + } \n } \n }", "msg_token": "Implemented JASPIC password callback support"} {"diff": " public class SherpafyStageFragment extends SherlockFragment { \n public SherpafyStageFragment ( ) { \n } \n \n - public TourInformation getTour ( ) { \n - return tour ; \n - } \n - \n @ override \n public void onAttach ( Activity activity ) { \n super . onAttach ( activity ) ;", "msg_token": "Removed unused code"} {"diff": " class DynamicConnectionStatus extends ConnectionStatus { \n } \n connectionStatus . start ( ) ; \n executorService . shutdownNow ( ) ; \n - executorService = null ; \n } \n \n static class DynamicNode extends UpdatableNode {", "msg_token": "fixed race condition"} {"diff": " public class JEditTextArea extends JComponent \n } \n \n SINGLE \n - painter = new TextAreaPainter ( this , defaults ) ; \n + painter = createPainter ( defaults ) ; \n documentHandler = new DocumentHandler ( ) ; \n eventListenerList = new EventListenerList ( ) ; \n caretEvent = new MutableCaretEvent ( ) ; \n public class JEditTextArea extends JComponent \n \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected TextAreaPainter createPainter ( final TextAreaDefaults defaults ) { \n + return new TextAreaPainter ( this , defaults ) ; \n + } \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n public InputMethodRequests getInputMethodRequests ( ) {", "msg_token": "Permit modes to enhance the text editor by adding their own typographical effects to the Painter"} {"diff": " public class Parser extends BaseRecognizer < Token > { \n public TokenStream getInputStream ( ) { return _input ; } \n \n @ override \n - public void setInputStream ( IntStream input ) { _input = ( TokenStream ) input ; } \n + public final void setInputStream ( IntStream input ) { \n + setTokenStream ( ( TokenStream ) input ) ; \n + } \n \n COMMENT \n public void setTokenStream ( TokenStream input ) {", "msg_token": "Parser setInputStream calls Parser setTokenStream"} {"diff": " class Letters { \n Range end = ranges . getLast ( ) ; \n setColor ( end . start , plainText . length ( ) , end . color ) ; \n } \n + \n + invalidate ( ) ; \n } \n \n LetterQuad getHead ( ) {", "msg_token": "Fixed setText to invalidate otherwise"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public interface InstanceManager { \n \n public Object newInstance ( Class < ? > clazz )", "msg_token": "Remove Id keyword from all remaining files in tomcat"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class ServerMainModule \n SINGLE \n binder . bind ( DataStreamManager . class ) . in ( Scopes . SINGLETON ) ; \n binder . bind ( DataStreamProvider . class ) . to ( DataStreamManager . class ) . in ( Scopes . SINGLETON ) ; \n + newSetBinder ( binder , ConnectorDataStreamProvider . class ) ; \n \n SINGLE \n binder . bind ( CatalogManager . class ) . in ( Scopes . SINGLETON ) ;", "msg_token": "Add missing binding for initial set"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class RemoteControlReceiver extends CoreReceiver \n { \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Adjust imports for new location of remote control classes"} {"diff": " public class MaterialPreviewRenderer implements SceneListener { \n \n public Material reloadMaterial ( Material mat , DesktopAssetManager assetManager ) { \n \n - SINGLE \n - SINGLE \n + MaterialKey key = new MaterialKey ( mat . getMaterialDef ( ) . getAssetName ( ) ) ; \n + assetManager . deleteFromCache ( key ) ; \n \n SINGLE \n Material dummy = new Material ( mat . getMaterialDef ( ) ) ;", "msg_token": "the MaterialPreviewRenderer now properly clears the cache before rendering a preview"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class ItemFacade extends ItemBuildCraft { \n public class ItemFacade extends ItemBuildCraft { \n allFacades . add ( new ItemStack ( BuildCraftTransport . facadeItem , NUMBER0 , ItemFacade . encode ( blockId , stack . getItemDamage ( ) ) ) ) ; \n \n SINGLE \n - BuildCraftCore . assemblyRecipes . add ( \n + AssemblyRecipe . assemblyRecipes . add ( \n new AssemblyRecipe ( \n new ItemStack [ ] { new ItemStack ( BuildCraftTransport . pipeStructureCobblestone , NUMBER1 ) , new ItemStack ( blockId , NUMBER0 , stack . getItemDamage ( ) ) } , \n NUMBER2 , \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed the changed location of AssemblyTable recipes"} {"diff": " public class FritzboxBinding extends \n public void internalReceiveCommand ( String itemName , Command command ) { \n \n if ( password != null && ! password . isEmpty ( ) ) { \n - logger . warn ( STRING0 + password ) ; \n String type = null ; \n for ( FritzboxBindingProvider provider : providers ) { \n type = provider . getType ( itemName ) ;", "msg_token": "removed password log message"} {"diff": " public class ForeignKey implements DatabaseObject , Comparable < ForeignKey > { \n \n \n public String toString ( ) { \n - return getName ( ) + STRING0 + getPrimaryKeyColumn ( ) + STRING1 + getForeignKeyColumn ( ) + STRING2 ; \n + return getName ( ) + STRING3 + getForeignKeyTable ( ) + STRING4 + getForeignKeyColumn ( ) + STRING5 + getPrimaryKeyTable ( ) + STRING4 + getPrimaryKeyColumn ( ) + STRING2 ; \n }", "msg_token": "change order include table"} {"diff": " public class MulticastTest extends ContextTestSupport { \n \n return new RouteBuilder < Exchange > ( ) { \n public void configure ( ) { \n + SINGLE \n from ( STRING0 ) . to ( STRING1 , STRING2 , STRING3 ) ; \n + SINGLE \n \n from ( STRING1 ) . process ( processor ) . to ( STRING4 ) ; \n from ( STRING2 ) . process ( processor ) . to ( STRING5 ) ; \n public class PipelineTest extends ContextTestSupport { \n \n return new RouteBuilder < Exchange > ( ) { \n public void configure ( ) { \n + SINGLE \n from ( STRING0 ) . pipeline ( STRING1 , STRING2 , STRING3 , STRING6 ) ; \n + SINGLE \n \n from ( STRING1 ) . process ( processor ) ; \n from ( STRING2 ) . process ( processor ) ;", "msg_token": "added some snippet macros"} {"diff": " public class TachyonFS extends AbstractTachyonFS { \n public synchronized String getLocalBlockTemporaryPath ( long blockId , long initialBytes ) \n throws IOException { \n String blockPath = mWorkerClient . requestBlockLocation ( blockId , initialBytes ) ; \n + SINGLE \n CommonUtils . createBlockPath ( blockPath ) ; \n return blockPath ; \n }", "msg_token": "Add TODO for worker util method"} {"diff": " public class H2OStarter { \n H2O . finalizeRegistration ( ) ; \n } \n \n - Log . info ( STRING0 ) ; \n - Log . info ( STRING1 + H2O . getJetty ( ) . getScheme ( ) + STRING2 , H2O . getIpPortString ( ) + STRING3 ) ; \n - Log . info ( STRING0 ) ; \n + if ( ! H2O . ARGS . disable_web ) { \n + Log . info ( STRING0 ) ; \n + Log . info ( STRING1 + H2O . getJetty ( ) . getScheme ( ) + STRING2 , H2O . getIpPortString ( ) + STRING3 ) ; \n + Log . info ( STRING0 ) ; \n + } \n } \n \n public static void start ( String [ ] args , String relativeResourcePath ) {", "msg_token": "Do not print statement for Sparkling Water"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Add missing import"} {"diff": " public class PDFViewer implements CompilePdfCompletedEvent . Handler , \n int width = NUMBER0 ; \n int height = NUMBER1 ; \n Point pos = null ; \n - final String pdfUrl = url . startsWith ( STRING0 ) ? url : STRING0 + url ; \n \n SINGLE \n if ( restorePosition && \n public class PDFViewer implements CompilePdfCompletedEvent . Handler , \n @ override \n public void execute ( ) \n { \n - pdfJsWindow_ . openPdf ( pdfUrl , NUMBER2 , synctex ) ; \n + pdfJsWindow_ . openPdf ( server_ . getApplicationURL ( url ) , NUMBER2 , synctex ) ; \n lastSuccessfulPdfUrl_ = url ; \n } \n } ;", "msg_token": "use absolute URL to open rendered PDFs"} {"diff": " public class LogEvent extends AbstractBuckEvent { \n \n @ override \n public boolean eventsArePair ( BuckEvent event ) { \n - if ( ! ( event instanceof BuckEvent ) ) { \n + if ( ! ( event instanceof LogEvent ) ) { \n return false ; \n }", "msg_token": "Fix test in eventsArePair"} {"diff": " public abstract class StreamSourceFrameChannel implements StreamSourceChannel { \n @ override \n public void suspendReads ( ) { \n readsResumed = false ; \n - channel . suspendReads ( ) ; \n + if ( ! complete ) { \n + channel . suspendReads ( ) ; \n + } \n } \n \n @ override \n public abstract class StreamSourceFrameChannel implements StreamSourceChannel { \n @ override \n public void wakeupReads ( ) { \n readsResumed = true ; \n - if ( complete ) { \n - SINGLE \n - queueReadListener ( ) ; \n - } else { \n - channel . wakeupReads ( ) ; \n + queueReadListener ( ) ; \n + if ( ! complete ) { \n + channel . resumeReads ( ) ; \n } \n }", "msg_token": "Don t suspend underlying channel if complete"} {"diff": " public class H2ONode extends Iced < H2ONode > implements Comparable { \n assert r . _computed : STRING0 + r . _tsknum ; \n boolean forceTCP ; \n DTask dt = r . _dt ; \n - if ( forceTCP = ( ++ r . _ackResendCnt % NUMBER0 == NUMBER1 ) && dt != null ) \n + if ( forceTCP = ( r != null && ++ r . _ackResendCnt % NUMBER0 == NUMBER1 ) && dt != null ) \n Log . warn ( STRING1 + r . _ackResendCnt + STRING2 + dt . getClass ( ) . getSimpleName ( ) + STRING3 ) ; \n SINGLE \n if ( ( ! H2O . CLOUD . contains ( r . _client ) && ! r . _client . _heartbeat . _client ) ||", "msg_token": "added null test to flip to tcp mechanism"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PsiEventsTest extends PsiTestCase { \n LeakHunter . checkLeak ( ApplicationManager . getApplication ( ) , PsiDirectory . class , isReallyLeak ) ; \n LeakHunter . checkLeak ( IdeEventQueue . getInstance ( ) , PsiDirectory . class , isReallyLeak ) ; \n LeakHunter . checkLeak ( LaterInvocator . getLaterInvocatorQueue ( ) , PsiDirectory . class , isReallyLeak ) ; \n + MemoryDumpHelper . captureMemoryDump ( STRING0 ) ; \n assertNull ( ( ( FileManagerImpl ) fileManager ) . getCachedDirectory ( myPrjDir1 ) ) ; \n fail ( STRING1 ) ; \n }", "msg_token": "dump a memory snapshot if PsiEventsTest fails"} {"diff": " public final class ServiceUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static void setUpGooglePlayButton ( final String title , View playButton , \n - final String logTag ) { \n - if ( playButton != null ) { \n - \n - if ( ! TextUtils . isEmpty ( title ) ) { \n - playButton . setOnClickListener ( new OnClickListener ( ) { \n - @ override \n - public void onClick ( View v ) { \n - searchGooglePlay ( title , logTag , v . getContext ( ) ) ; \n - } \n - } ) ; \n - } else { \n - playButton . setEnabled ( false ) ; \n - } \n - } \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Drop unused code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class HiveStatement implements java . sql . Statement { \n + public static final Log LOG = LogFactory . getLog ( HiveStatement . class . getName ( ) ) ; \n private final HiveConnection connection ; \n private TCLIService . Iface client ; \n private TOperationHandle stmtHandle = null ; \n public class HiveStatement implements java . sql . Statement { \n \n @ override \n public void setQueryTimeout ( int seconds ) throws SQLException { \n - throw new SQLException ( STRING0 ) ; \n + SINGLE \n + if ( seconds != NUMBER0 ) { \n + throw new SQLException ( STRING1 ) ; \n + } \n } \n \n COMMENT", "msg_token": "Hive JDBC setQueryTimeout should not throw exception to make it work with JMeter Prasanth Jayachandran reviewed by Thejas M Nair"} {"diff": " public class RouteBuilderTest extends TestSupport { \n errorHandler ( deadLetterChannel ( STRING0 ) ) ; \n \n from ( STRING1 ) . filter ( header ( STRING2 ) . isEqualTo ( NUMBER0 ) ) . to ( STRING3 ) ; \n - from ( STRING1 ) . filter ( header ( STRING4 ) . isGreaterThan ( NUMBER1 ) ) . to ( STRING3 ) ; \n } \n } ; \n SINGLE \n public class RouteBuilderTest extends TestSupport { \n List < Route > routes = getRouteList ( builder ) ; \n log . debug ( STRING5 + routes ) ; \n \n - assertEquals ( STRING6 , NUMBER2 , routes . size ( ) ) ; \n + assertEquals ( STRING6 , NUMBER3 , routes . size ( ) ) ; \n for ( Route route : routes ) { \n Endpoint key = route . getEndpoint ( ) ; \n assertEquals ( STRING7 , STRING8 , key . getEndpointUri ( ) ) ;", "msg_token": "Fixed unit test"} {"diff": " public final class StrictJavaDepsPlugin extends BlazeJavaCompilerPlugin { \n return null ; \n } \n \n - SINGLE \n - if ( platformJars . contains ( classfile ) ) { \n + SINGLE \n + if ( platformJars . contains ( name ) ) { \n return null ; \n }", "msg_token": "Fix bug in StrictJavaDeps that was preventing jars on the bootclasspath from"} {"diff": " public final class JavaWriter implements Closeable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public JavaWriter beginInitializer ( String type ) throws IOException { \n + public JavaWriter beginInitializer ( Boolean isStatic ) throws IOException { \n indent ( ) ; \n - out . write ( type ) ; \n - out . write ( STRING0 ) ; \n + if ( isStatic ) { \n + out . write ( STRING1 ) ; \n + out . write ( STRING0 ) ; \n + } else { \n + out . write ( STRING2 ) ; \n + } \n pushScope ( Scope . INITIALIZER ) ; \n return this ; \n }", "msg_token": "Use a boolean for indicating whether the initializer is static or not"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n public class HttpArgs extends StartArgs { \n - protected HttpArgs ( final Integer port , final Integer shutdownPort , \n + private HttpArgs ( final Integer port , final Integer shutdownPort , \n final String configurationFile , final String globalSettings , \n final String env ) { \n super ( ServerType . HTTP , port , shutdownPort , configurationFile , globalSettings , env , null ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class HttpsArgs extends StartArgs { \n - protected HttpsArgs ( final Integer port , final Integer shutdownPort , final String configurationFile , \n + private HttpsArgs ( final Integer port , final Integer shutdownPort , final String configurationFile , \n final String globalSettings , final String env , final HttpsArg httpsArg ) { \n super ( ServerType . HTTPS , port , shutdownPort , configurationFile , globalSettings , env , httpsArg ) ; \n }", "msg_token": "made http and https args constructor private"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n private static class ForegroundInfo { \n private Drawable mDrawable ; \n private TintInfo mTintInfo ; \n - private int mGravity = Gravity . START | Gravity . TOP ; \n + private int mGravity = Gravity . FILL ; \n private boolean mInsidePadding = true ; \n - private boolean mBoundsChanged ; \n + private boolean mBoundsChanged = true ; \n private final Rect mSelfBounds = new Rect ( ) ; \n private final Rect mOverlayBounds = new Rect ( ) ; \n } \n public class View implements Drawable . Callback , KeyEvent . Callback , \n } \n \n mForegroundInfo . mDrawable = foreground ; \n + mForegroundInfo . mBoundsChanged = true ; \n if ( foreground != null ) { \n setWillNotDraw ( false ) ; \n foreground . setCallback ( this ) ;", "msg_token": "Fix default gravity for View foreground drawables"} {"diff": " public class StartupManagerImpl extends StartupManagerEx { \n for ( final StartupActivity extension : extensions ) { \n final Runnable runnable = new Runnable ( ) { \n public void run ( ) { \n - extension . runActivity ( myProject ) ; \n + if ( ! myProject . isDisposed ( ) ) { \n + extension . runActivity ( myProject ) ; \n + } \n } \n } ; \n if ( extension instanceof DumbAware ) {", "msg_token": "do not run startup activities for projects canceled to open"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class TextureView extends View { \n public void buildLayer ( ) { \n } \n \n + @ override \n + public void setForeground ( Drawable foreground ) { \n + if ( foreground != null ) { \n + throw new UnsupportedOperationException ( \n + STRING0 ) ; \n + } \n + } \n + \n + @ override \n + public void setBackgroundDrawable ( Drawable background ) { \n + if ( background != null ) { \n + throw new UnsupportedOperationException ( \n + STRING1 ) ; \n + } \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Throw exception when setting a fg bg on TextureView"} {"diff": " import NAMESPACE ; \n public class StreamingSchema extends Schema < Iced , StreamingSchema > { \n \n private final transient StreamWriter streamWriter ; \n - private final String filename ; \n + private final transient String filename ; \n \n public StreamingSchema ( ) { \n this ( null ) ;", "msg_token": "Fix warning for StreamingSchema"} {"diff": " public class RecyclerView extends ViewGroup { \n COMMENT \n public void setAdapter ( Adapter adapter ) { \n if ( mAdapter != null ) { \n - adapter . unregisterAdapterDataObserver ( mObserver ) ; \n + mAdapter . unregisterAdapterDataObserver ( mObserver ) ; \n } \n mAdapter = adapter ; \n if ( adapter != null ) {", "msg_token": "Fix error in setAdapter"} {"diff": " public class StartupAction extends SimpleAction { \n } \n \n private static final String _DELETE_TEMP_IMAGES_1 = \n - STRING0 + \n - STRING1 + \n - STRING2 ; \n + STRING3 + \n + STRING4 ; \n \n private static final String _DELETE_TEMP_IMAGES_2 = \n STRING5 ;", "msg_token": "Fix SQL for hsql"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n class AnnotateOverriddenMethodsPredicate implements PsiElementPredicate { \n \n + @ override \n public boolean satisfiedBy ( PsiElement element ) { \n if ( ! ( element instanceof PsiAnnotation ) ) { \n return false ; \n class AnnotateOverriddenMethodsPredicate implements PsiElementPredicate { \n parameterIndex = - NUMBER0 ; \n method = ( PsiMethod ) grandParent ; \n } \n - final Project project = element . getProject ( ) ; \n + if ( DeclarationSearchUtils . isTooExpensiveToSearch ( method , true ) ) { \n + return false ; \n + } \n final Collection < PsiMethod > overridingMethods = \n OverridingMethodsSearch . search ( method ) . findAll ( ) ; \n if ( overridingMethods . isEmpty ( ) ) {", "msg_token": "avoid bad intention performance"} {"diff": " public class GroovyCodeFragmentFactory implements CodeFragmentFactory { \n return ; \n } \n \n + if ( resolved instanceof GrField && ! referenceExpression . isQualified ( ) ) { \n + replaceWithReference ( referenceExpression , ( closure == null ? STRING0 : STRING1 ) + STRING2 + referenceExpression . getReferenceName ( ) ) ; \n + return ; \n + } \n + \n if ( resolved instanceof GrVariableBase && ! ( resolved instanceof GrField ) && ! PsiTreeUtil . isAncestor ( toEval , resolved , false ) ) { \n final String name = ( ( GrVariableBase ) resolved ) . getName ( ) ; \n if ( resolved instanceof ClosureSyntheticParameter && PsiTreeUtil . isAncestor ( toEval , ( ( ClosureSyntheticParameter ) resolved ) . getClosure ( ) , false ) ) {", "msg_token": "evaluate groovy field from closure doesn t need this ing"} {"diff": " public class ContactPictureLoader { \n return mDefaultBackgroundColor ; \n } \n \n - int val = address . getAddress ( ) . toLowerCase ( Locale . getDefault ( ) ) . hashCode ( ) ; \n + int val = address . hashCode ( ) ; \n int rgb = CONTACT_DUMMY_COLORS_ARGB [ Math . abs ( val ) % CONTACT_DUMMY_COLORS_ARGB . length ] ; \n return rgb ; \n }", "msg_token": "Fix contact picture color generation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaSymbolFinder { \n JavaFileParser parser = JavaFileParser . createJavaFileParser ( javacOptions ) ; \n \n for ( Path candidatePath : getCandidatePaths ( symbol , srcRoots ) ) { \n - String content = projectFilesystem . readFileIfItExists ( \n - projectFilesystem . getPathForRelativeExistingPath ( candidatePath ) ) . get ( ) ; \n - Set < String > symbols = parser . getExportedSymbolsFromString ( content ) ; \n - if ( symbols . contains ( symbol ) ) { \n + Optional < String > content = projectFilesystem . readFileIfItExists ( \n + projectFilesystem . getPathForRelativeExistingPath ( candidatePath ) ) ; \n + if ( content . isPresent ( ) && \n + parser . getExportedSymbolsFromString ( content . get ( ) ) . contains ( symbol ) ) { \n definingPaths . add ( candidatePath ) ; \n } \n }", "msg_token": "fix an optional case where the file does not exist"} {"diff": " import NAMESPACE ; \n final class FactoryProvider2 < F > implements InvocationHandler , \n ProviderWithExtensionVisitor < F > , HasDependencies , AssistedInjectBinding < F > { \n \n + COMMENT \n + static final Annotation RETURN_ANNOTATION = UniqueAnnotations . create ( ) ; \n + \n COMMENT \n static final Assisted DEFAULT_ANNOTATION = new Assisted ( ) { \n public String value ( ) { \n final class FactoryProvider2 < F > implements InvocationHandler , \n final Key < ? > returnType = data . returnType ; \n \n SINGLE \n - final Key < ? > returnKey = Key . get ( returnType . getTypeLiteral ( ) , UniqueAnnotations . create ( ) ) ; \n + final Key < ? > returnKey = Key . get ( returnType . getTypeLiteral ( ) , RETURN_ANNOTATION ) ; \n \n Module assistedModule = new AbstractModule ( ) { \n @ override @ suppresswarnings ( STRING0 ) SINGLE", "msg_token": "Use a single UniqueAnnotation instead of creating a new one each time"} {"diff": " public final class BackgroundManager { \n } \n @ override \n public void onAnimationEnd ( Animator animation ) { \n - mLayerDrawable . clearDrawable ( R . id . background_imageout , mContext ) ; \n + if ( mLayerDrawable != null ) { \n + mLayerDrawable . clearDrawable ( R . id . background_imageout , mContext ) ; \n + } \n mHandler . post ( mRunnable ) ; \n } \n @ override", "msg_token": "Fix NPE if release called before background animation finishes"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TrustedSocketFactory { \n SSLSocket sock = ( SSLSocket ) sf . createSocket ( ) ; \n enabledCiphers = sock . getEnabledCipherSuites ( ) ; \n enabledProtocols = sock . getEnabledProtocols ( ) ; \n - } catch ( IOException ioe ) { \n - ioe . printStackTrace ( ) ; \n - } catch ( KeyManagementException kme ) { \n - kme . printStackTrace ( ) ; \n - } catch ( NoSuchAlgorithmException nsae ) { \n - nsae . printStackTrace ( ) ; \n + } catch ( Exception e ) { \n + Log . e ( K9 . LOG_TAG , STRING0 + \n + STRING1 , e ) ; \n } \n \n ENABLED_CIPHERS = ( enabledCiphers == null ) ? null :", "msg_token": "Ignore all errors in initialization of TrustedSocketFactory"} {"diff": " public class JavaSourceProcessorTest extends BaseSourceProcessorTestCase { \n \n @ test \n public void testInefficientStringMethods ( ) throws Exception { \n - String mainReleaseVersion = sourceFormatter . getMainReleaseVersion ( ) ; \n - \n - if ( ! mainReleaseVersion . equals ( \n - BaseSourceProcessor . MAIN_RELEASE_VERSION_6_1_0 ) ) { \n - \n - test ( \n - STRING0 , \n - new String [ ] { \n - STRING1 , \n - STRING2 , STRING3 \n - } , \n - new Integer [ ] { NUMBER0 , NUMBER1 , NUMBER2 } ) ; \n - } \n + test ( \n + STRING0 , \n + new String [ ] { \n + STRING1 , \n + STRING2 , STRING3 \n + } , \n + new Integer [ ] { NUMBER0 , NUMBER1 , NUMBER2 } ) ; \n } \n \n @ test", "msg_token": "SourceFormatter Fix test"} {"diff": " public class LocalStore extends Store implements Serializable { \n String [ ] selectionArgs = queryArgs . toArray ( EMPTY_STRING_ARRAY ) ; \n \n String sqlQuery = STRING0 + GET_MESSAGES_COLS + STRING1 + \n - STRING2 + \n + STRING3 + \n STRING4 + \n ( ( ! StringUtils . isNullOrEmpty ( where ) ) ? STRING5 + where + STRING6 : STRING7 ) + \n STRING8 ;", "msg_token": "Fix JOIN condition when searching for messages"} {"diff": " public class CssEditPrefixesListPanel { \n myPrefixesTableView = new TableView < CssPrefixInfo > ( myPrefixesModel ) ; \n myPrefixesTableView . setAutoCreateRowSorter ( true ) ; \n myPrefixesTableView . setBorder ( null ) ; \n + myPrefixesTableView . setStriped ( true ) ; \n myPrefixesTableView . getRowSorter ( ) . toggleSortOrder ( NUMBER0 ) ; \n \n new TableViewSpeedSearch ( myPrefixesTableView ) {", "msg_token": "Make striped table with prefixes for emmet configuration"} {"diff": " public class RelationIndexStatusWatcher \n if ( timedOut ) { \n LOGGER . info ( STRING0 , \n timeout , relationIndexName , relationTypeName , status ) ; \n - return new RelationIndexStatusReport ( true , relationIndexName , relationTypeName , actualStatus , status , t . elapsed ( ) ) ; \n + return new RelationIndexStatusReport ( false , relationIndexName , relationTypeName , actualStatus , status , t . elapsed ( ) ) ; \n } \n \n Thread . sleep ( poll . getLength ( TimeUnit . MILLISECONDS ) ) ;", "msg_token": "Fix successful boolean in index status watcher"} {"diff": " public abstract class Presenter < V > implements Bundler { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Javadoc tweak on Presenter dropView"} {"diff": " public class CodeCompletionHandlerBase implements CodeInsightActionHandler { \n public static final Key < SoftReference < PsiFile > > FILE_COPY_KEY = Key . create ( STRING0 ) ; \n \n protected PsiFile createFileCopy ( PsiFile file ) { \n - if ( file . isPhysical ( ) ) { \n + if ( file . isPhysical ( ) \n + SINGLE \n + && ! InjectedLanguageManager . getInstance ( file . getProject ( ) ) . isInjectedFragment ( file ) ) { \n final SoftReference < PsiFile > reference = file . getUserData ( FILE_COPY_KEY ) ; \n if ( reference != null ) { \n final PsiFile copy = reference . get ( ) ;", "msg_token": "do not cache copy of injected file"} {"diff": " public final class Settings { \n @ override \n public boolean validate ( String value ) { \n SINGLE \n - return value == null || value . length ( ) > MAX_LENGTH ; \n + return value == null || value . length ( ) < MAX_LENGTH ; \n } \n } ;", "msg_token": "Fix a reversed condition in the next alarm validator"} {"diff": " public class CDL { \n for ( ; ; ) { \n c = x . next ( ) ; \n if ( c == q ) { \n - break ; \n + SINGLE \n + if ( x . next ( ) != STRING0 ) \n + { \n + x . back ( ) ; \n + break ; \n + } \n } \n if ( c == NUMBER0 || c == STRING1 || c == STRING2 ) { \n throw x . syntaxError ( STRING3 + q + STRING4 ) ;", "msg_token": "Added CSV change to CDL java"} {"diff": " public abstract class NanoHTTPD { \n return status ; \n } \n \n - public void setStatus ( Status status ) { \n + public void setStatus ( IStatus status ) { \n this . status = status ; \n }", "msg_token": "Response setStatus now accepts arbitrary IStatus derived instances"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SwebleWikipediaTextFilter implements TextFilter { \n \n - private static final int WRAP_COL = NUMBER0 ; \n + private static final int WRAP_COL = Integer . MAX_VALUE ; \n \n @ override \n public String filter ( String wikiText ) {", "msg_token": "don t add line breaks this causes false alarms for the comma whitespace rule"} {"diff": " public abstract class AnimatedIcon extends JComponent implements Disposable { \n \n myAnimator = new Animator ( myName , icons . length , cycleLength , true ) { \n public void paintNow ( final float frame , final float totalFrames , final float cycle ) { \n - myCurrentIconIndex = ( int ) frame ; \n + if ( frame < NUMBER0 ) { \n + myCurrentIconIndex = NUMBER0 ; \n + } \n + else if ( frame >= myIcons . length ) { \n + myCurrentIconIndex = myIcons . length - NUMBER1 ; \n + } \n + else { \n + myCurrentIconIndex = ( int ) frame ; \n + } \n paintImmediately ( NUMBER0 , NUMBER0 , getWidth ( ) , getHeight ( ) ) ; \n } \n } ;", "msg_token": "ensure valid icon index"} {"diff": " public class PipeTransportPower extends PipeTransport { \n init ( ) ; \n \n for ( ForgeDirection side : ForgeDirection . VALID_DIRECTIONS ) { \n - if ( tiles [ side . ordinal ( ) ] . isInvalid ( ) ) { \n + if ( tiles [ side . ordinal ( ) ] != null && tiles [ side . ordinal ( ) ] . isInvalid ( ) ) { \n updateTile ( side ) ; \n } \n }", "msg_token": "add missing nullcheck"} {"diff": " abstract class AbstractTFS extends FileSystem { \n ClientBlockInfo info = blocks . get ( k ) ; \n long offset = info . getOffset ( ) ; \n long end = offset + info . getLength ( ) ; \n - if ( ( offset >= start && offset <= start + len ) || ( end >= start && end <= start + len ) \n - || ( offset <= start && end >= start + len ) ) { \n + SINGLE \n + if ( end >= start && offset <= start + len ) { \n ArrayList < String > names = new ArrayList < String > ( ) ; \n ArrayList < String > hosts = new ArrayList < String > ( ) ; \n for ( NetAddress addr : info . getLocations ( ) ) {", "msg_token": "simplify the IF statement"} {"diff": " public class ATNConfigSet implements Set < ATNConfig > { \n return states ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ notnull \n + public BitSet getAlts ( ) { \n + BitSet alts = new BitSet ( ) ; \n + for ( ATNConfig config : configs ) { \n + alts . set ( config . alt ) ; \n + } \n + return alts ; \n + } \n + \n public List < SemanticContext > getPredicates ( ) { \n List < SemanticContext > preds = new ArrayList < SemanticContext > ( ) ; \n for ( ATNConfig c : configs ) {", "msg_token": "Add utility method ATNConfigSet getAlts"} {"diff": " import NAMESPACE ; \n public final class TachyonFileSystemUtils { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n \n - \n SINGLE \n private TachyonFileSystemUtils ( ) { } \n \n public final class DeleteOptions { \n mRecursive = false ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT \n public final class MkdirOptions { \n mRecursive = false ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "cleaned up client project"} {"diff": " public class GLState { \n this . mProjectionGLMatrixStack . glRotatef ( pAngle , pX , pY , pZ ) ; \n } \n \n - public void scaleProjectionGLMatrixf ( final float pScaleX , final float pScaleY , final int pScaleZ ) { \n + public void scaleProjectionGLMatrixf ( final float pScaleX , final float pScaleY , final float pScaleZ ) { \n this . mProjectionGLMatrixStack . glScalef ( pScaleX , pScaleY , pScaleZ ) ; \n }", "msg_token": "Fixed wrong datatype in GLState glScalef"} {"diff": " public class ArgumentsMarshalTest extends TestCase { \n \n TestLibrary lib ; \n protected void setUp ( ) { \n - System . out . println ( getName ( ) ) ; \n lib = ( TestLibrary ) Native . loadLibrary ( STRING0 , TestLibrary . class ) ; \n }", "msg_token": "remove debug output"} {"diff": " import NAMESPACE ; \n class RecordReaderImpl implements RecordReader { \n \n private static final Log LOG = LogFactory . getLog ( RecordReaderImpl . class ) ; \n + private static final boolean isLogTraceEnabled = LOG . isTraceEnabled ( ) ; \n \n private final FSDataInputStream file ; \n private final long firstRow ; \n class RecordReaderImpl implements RecordReader { \n SINGLE \n rowInStripe += NUMBER0 ; \n advanceToNextRow ( rowInStripe + rowBaseInStripe ) ; \n - if ( LOG . isDebugEnabled ( ) ) { \n - LOG . debug ( STRING0 + reader . path ) ; \n - LOG . debug ( STRING1 + result ) ; \n + if ( isLogTraceEnabled ) { \n + LOG . trace ( STRING0 + reader . path ) ; \n + LOG . trace ( STRING1 + result ) ; \n } \n return result ; \n }", "msg_token": "Reduce the verbosity of debug logs in ORC record reader Prasanth J reviewed by Gopal V"} {"diff": " public class ProjectsGhostsActionTest { \n \n @ before \n public void setUp ( ) { \n - dbClient = new DbClient ( db . database ( ) , db . myBatis ( ) , new ComponentDao ( ) , new SnapshotDao ( System2 . INSTANCE ) ) ; \n + dbClient = new DbClient ( db . database ( ) , db . myBatis ( ) , new ComponentDao ( System2 . INSTANCE ) , new SnapshotDao ( System2 . INSTANCE ) ) ; \n dbSession = dbClient . openSession ( false ) ; \n ws = new WsTester ( new ProjectsWs ( new ProjectsGhostsAction ( dbClient , userSessionRule ) ) ) ; \n db . truncateTables ( ) ;", "msg_token": "add missing System2 INSTANCE parameter in ProjectsGhostsActionTest"} {"diff": " public class WsSession implements Session { \n SINGLE \n log . error ( sm . getString ( STRING0 ) , ioe ) ; \n wsRemoteEndpoint . close ( ) ; \n - throw ioe ; \n + localEndpoint . onError ( this , ioe ) ; \n } finally { \n webSocketContainer . unregisterSession ( \n localEndpoint . getClass ( ) , this ) ;", "msg_token": "Don t re throw exception if we can t send the close message"} {"diff": " public class Term extends Activity { \n \n mEmulatorView . initialize ( mTermFd , mTermOut ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + String iInitialCommand = getIntent ( ) . getStringExtra ( STRING0 ) ; \n + if ( iInitialCommand != null ) { \n + if ( mInitialCommand != null ) { \n + mInitialCommand += STRING1 + iInitialCommand ; \n + } else { \n + mInitialCommand = iInitialCommand ; \n + } \n + } \n + \n sendInitialCommand ( ) ; \n }", "msg_token": "Enable an initial command string to be passed as part of the intent"} {"diff": " public class UnaryTransition implements Transition { \n if ( state . stack . size ( ) == NUMBER0 ) { \n return false ; \n } \n - SINGLE \n + Tree top = state . stack . peek ( ) ; \n + if ( top . children ( ) . length == NUMBER1 ) { \n + Tree child = top . children ( ) [ NUMBER0 ] ; \n + if ( child . children ( ) . length == NUMBER1 ) { \n + Tree grandChild = child . children ( ) [ NUMBER0 ] ; \n + if ( grandChild . children ( ) . length == NUMBER1 ) { \n + SINGLE \n + SINGLE \n + return false ; \n + } \n + } \n + } \n return true ; \n }", "msg_token": "Add a check for no three unary nodes in a row"} {"diff": " class EnterTransitionCoordinator extends ActivityTransitionCoordinator { \n public void run ( ) { \n if ( mAnimations ++ < MIN_ANIMATION_FRAMES ) { \n getDecor ( ) . postOnAnimation ( this ) ; \n - } else { \n + } else if ( mResultReceiver != null ) { \n mResultReceiver . send ( MSG_HIDE_SHARED_ELEMENTS , null ) ; \n mResultReceiver = null ; SINGLE \n }", "msg_token": "Fix NPE when clicking back quickly"} {"diff": " public class ExplorerLoginForm extends LoginForm { \n String appUri = getApplication ( ) . getURL ( ) . toString ( ) \n + getWindow ( ) . getName ( ) + STRING0 ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + appUri = appUri . replaceFirst ( STRING1 , STRING2 ) ; \n + \n String x , h , b ; SINGLE \n \n x = STRING3", "msg_token": "omitting the protocol scheme in order to preserve the one of the current page"} {"diff": " public class DefaultHttpMessage implements HttpMessage { \n headers . put ( name , values ) ; \n } \n \n + public void removeHeader ( final String name ) { \n + headers . remove ( name ) ; \n + } \n + \n public int getContentLength ( ) { \n List < String > contentLength = headers . get ( HttpHeaders . CONTENT_LENGTH ) ; \n if ( contentLength != null && contentLength . size ( ) > NUMBER0 ) { \n public interface HttpMessage { \n \n void setHeader ( String name , List < String > values ) ; \n \n + void removeHeader ( String name ) ; \n + \n int getContentLength ( ) ; \n \n void setContent ( ChannelBuffer content ) ;", "msg_token": "Added HttpMessage removeHeader"} {"diff": " public class TFS extends FileSystem { \n \n if ( ! CommonConf . get ( ) . ASYNC_ENABLED ) { \n String path = Utils . getPathWithoutScheme ( cPath ) ; \n + if ( mTFS . exist ( path ) ) { \n + if ( ! mTFS . delete ( path , false ) ) { \n + throw new IOException ( STRING0 + cPath ) ; \n + } \n + } \n int fileId = mTFS . createFile ( path , blockSize ) ; \n TachyonFile file = mTFS . getFile ( fileId ) ; \n return new FSDataOutputStream ( file . getOutStream ( WriteType . CACHE_THROUGH ) , null ) ;", "msg_token": "respect Hadoop create overwrite semantics"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PhotoHolder extends MessageHolder { \n h = ( ( PhotoContent ) message . getContent ( ) ) . getH ( ) ; \n isPhoto = true ; \n duration . setVisibility ( View . GONE ) ; \n + } else if ( message . getContent ( ) instanceof AnimationContent ) { \n + w = ( ( AnimationContent ) message . getContent ( ) ) . getW ( ) ; \n + h = ( ( AnimationContent ) message . getContent ( ) ) . getH ( ) ; \n + isPhoto = true ; \n + duration . setVisibility ( View . GONE ) ; \n } else if ( message . getContent ( ) instanceof VideoContent ) { \n w = ( ( VideoContent ) message . getContent ( ) ) . getW ( ) ; \n h = ( ( VideoContent ) message . getContent ( ) ) . getH ( ) ;", "msg_token": "bind animations to PhotoHolder"} {"diff": " public class ProjectMeasuresIndexerIteratorTest { \n } \n \n @ test \n + public void does_not_fail_when_quality_gate_has_no_value ( ) throws Exception { \n + MetricDto metric = insertMetric ( STRING0 , LEVEL ) ; \n + ComponentDto project = newProjectDto ( ) ; \n + SnapshotDto analysis = componentDbTester . insertProjectAndSnapshot ( project ) ; \n + insertMeasure ( project , analysis , metric , null ) ; \n + \n + Map < String , ProjectMeasures > docsById = createResultSetAndReturnDocsById ( ) ; \n + \n + assertThat ( docsById . get ( project . uuid ( ) ) . getMeasures ( ) . getNumericMeasures ( ) ) . isEmpty ( ) ; \n + } \n + \n + @ test \n public void does_not_return_none_numeric_metrics ( ) throws Exception { \n MetricDto dataMetric = insertMetric ( STRING1 , DATA ) ; \n MetricDto distribMetric = insertMetric ( STRING2 , DISTRIB ) ;", "msg_token": "Fix quality flaws"} {"diff": " public class Wallet implements Serializable , BlockChainListener { \n } \n return filter ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public synchronized void setCoinSelector ( CoinSelector coinSelector ) { \n + this . coinSelector = coinSelector ; \n + } \n }", "msg_token": "Add a setter for the coin selector"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public final class CGIServlet extends HttpServlet { \n } SINGLE \n \n \n - \n - COMMENT \n - public static void main ( String [ ] args ) { \n - System . out . println ( STRING0 ) ; \n - } \n - \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused code"} {"diff": " public class DeformArg extends SimpleCommand < Deform > { \n \n private final Flag < Boolean > rawCoordsFlag = addFlag ( STRING0 , new BooleanFlag ( STRING1 ) ) ; \n private final Flag < Boolean > offsetFlag = addFlag ( STRING2 , new BooleanFlag ( STRING3 ) ) ; \n - private final StringArg expressionParser = addParameter ( new StringArg ( STRING4 , STRING5 ) ) ; \n + private final StringArg expressionParser = addParameter ( new StringArg ( STRING4 , STRING5 , STRING6 ) ) ; \n \n @ override \n public Deform call ( CommandArgs args , CommandLocals locals ) throws CommandException {", "msg_token": "Add a default suggested Deform expression"} {"diff": " final class LockResourceImpl implements DataSerializable , LockResource { \n \n @ override \n public long getRemainingLeaseTime ( ) { \n - if ( expirationTime == Long . MAX_VALUE && expirationTime < NUMBER0 ) { \n + if ( expirationTime == Long . MAX_VALUE || expirationTime < NUMBER0 ) { \n return Long . MAX_VALUE ; \n } \n long now = Clock . currentTimeMillis ( ) ;", "msg_token": "Fixed a typo"} {"diff": " public class LookupImpl extends LightweightHint implements LookupEx , Disposable \n @ override \n public void run ( ) { \n assert ! myDisposed ; \n + if ( ( ( CompletionExtender ) myList . getExpandableItemsHandler ( ) ) . isShowing ( ) ) return ; \n myElementHint = new LookupHint ( ) ; \n myLayeredPane . add ( myElementHint , NUMBER0 , NUMBER1 ) ; \n myLayeredPane . layoutHint ( ) ;", "msg_token": "don t mix intention yellow fcker with extender"} {"diff": " public class GrailsDataBinder extends ServletRequestDataBinder { \n if ( value != null ) { \n MetaClass mc = GroovySystem . getMetaClassRegistry ( ) . getMetaClass ( value . getClass ( ) ) ; \n if ( mc . hasProperty ( value , CONSTRAINTS_PROPERTY ) != null ) { \n - Map nestedConstrainedProperties = ( Map ) mc . getProperty ( value , CONSTRAINTS_PROPERTY ) ; \n - return ( ConstrainedProperty ) nestedConstrainedProperties . get ( propertyNames [ propertyNames . length - NUMBER0 ] ) ; \n + final Object o = mc . getProperty ( value , CONSTRAINTS_PROPERTY ) ; \n + if ( o instanceof Map ) { \n + Map nestedConstrainedProperties = ( Map ) o ; \n + return ( ConstrainedProperty ) nestedConstrainedProperties . get ( propertyNames [ propertyNames . length - NUMBER0 ] ) ; \n + } \n } \n }", "msg_token": "fixed ClassCastException bug"} {"diff": " class HttpChannelOverHttp extends HttpChannel implements HttpParser . RequestHandl \n @ override \n public void abort ( ) \n { \n - super . abort ( ) ; \n - _generator . setPersistent ( false ) ; \n + super . abort ( ) ; \n + _generator . setPersistent ( false ) ; \n } \n \n @ override", "msg_token": "expanded tabs in indents"} {"diff": " public class FilteredBlock extends Message { \n \n COMMENT \n public int getTransactionCount ( ) { \n - return merkleTree . transactionCount ; \n + return merkleTree . getTransactionCount ( ) ; \n } \n } \n import NAMESPACE ; \n COMMENT \n public class PartialMerkleTree extends Message { \n SINGLE \n - int transactionCount ; \n + private int transactionCount ; \n \n SINGLE \n - byte [ ] matchedChildBits ; \n + private byte [ ] matchedChildBits ; \n \n SINGLE \n - List < Sha256Hash > hashes ; \n + private List < Sha256Hash > hashes ; \n \n public PartialMerkleTree ( NetworkParameters params , byte [ ] payloadBytes , int offset ) throws ProtocolException { \n super ( params , payloadBytes , offset ) ; \n public class PartialMerkleTree extends Message { \n \n return merkleRoot ; \n } \n + \n + public int getTransactionCount ( ) { \n + return transactionCount ; \n + } \n }", "msg_token": "Hide some fields in PartialMerkleTree"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ApiImplementor { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n private static boolean isIgnored ( Method method ) { \n - return ( method . getAnnotation ( ZapApiIgnore . class ) != null ) ; \n + return method . getAnnotation ( ZapApiIgnore . class ) != null || ! Modifier . isPublic ( method . getModifiers ( ) ) ; \n } \n \n public ApiResponse handleApiOptionView ( String name , JSONObject params ) throws ApiException {", "msg_token": "Ignore non public option methods for ZAP API"} {"diff": " public interface ControllerLogger extends BasicLogger { \n COMMENT \n @ logmessage ( level = ERROR ) \n @ message ( id = NUMBER0 , value = STRING0 + \n - STRING1 + \n + STRING2 + \n STRING3 ) \n void noFinalProxyOutcomeReceived ( ModelNode op , ModelNode opAddress , ModelNode proxyAddress ) ;", "msg_token": "Add missing space in message"} {"diff": " public class Uploader extends FileActivity \n mParents . add ( STRING0 ) ; \n } else { \n String [ ] dir_names = last_path . split ( STRING1 ) ; \n + mParents . clear ( ) ; \n for ( String dir : dir_names ) \n mParents . add ( dir ) ; \n }", "msg_token": "Fixed bug in access to same folder than last time when a file is shared with OC to upload"} {"diff": " public class AnalyticsTrackerMixpanel extends Tracker { \n instructions . addSuperPropertyToFlag ( STRING0 ) ; \n instructions . addSuperPropertyToFlag ( STRING1 ) ; \n break ; \n + case ACCOUNT_LOGOUT : \n + instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n + mixpanelInstructionsForEventName ( STRING2 ) ; \n + break ; \n case PERFORMED_JETPACK_SIGN_IN_FROM_STATS_SCREEN : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . \n mixpanelInstructionsForEventName ( STRING3 ) ;", "msg_token": "Add ACCOUNT_LOGOUT event to Mixpanel tracker"} {"diff": " public class RegionAddressRepositoryBinary implements RegionAddressRepository { \n \n @ override \n public synchronized void preloadStreets ( City o , ResultMatcher < Street > resultMatcher ) { \n + SINGLE \n if ( o != null ) { \n Collection < Street > streets = o . getStreets ( ) ; \n if ( ! streets . isEmpty ( ) ) { \n return ; \n } \n + try { \n + file . preloadStreets ( o , BinaryMapIndexReader . buildAddressRequest ( resultMatcher ) ) ; \n + } catch ( IOException e ) { \n + log . error ( STRING0 , e ) ; SINGLE \n + } \n } \n - try { \n - file . preloadStreets ( o , BinaryMapIndexReader . buildAddressRequest ( resultMatcher ) ) ; \n - } catch ( IOException e ) { \n - log . error ( STRING0 , e ) ; SINGLE \n - } \n - \n } \n \n SINGLE", "msg_token": "extend NPE fix"} {"diff": " public class DependencyCheckingJavacStep extends JavacInMemoryStep { \n if ( transitiveResult == NUMBER0 ) { \n ImmutableSet < String > failedImports = findFailedImports ( firstOrderStderr ) ; \n \n - context . getStdErr ( ) . println ( String . format ( STRING0 + \n - STRING1 , invokingRule . or ( STRING2 ) ) ) ; \n + context . getStdErr ( ) . println ( String . format ( STRING3 + \n + STRING4 , invokingRule . or ( STRING2 ) ) ) ; \n context . getStdErr ( ) . println ( STRING5 ) ; \n context . getStdErr ( ) . println ( Joiner . on ( LINE_SEPARATOR ) . join ( failedImports ) ) ; \n if ( suggestBuildRules . isPresent ( ) ) {", "msg_token": "Fix a grammatical error in an error message"} {"diff": " class NioDatagramWorker implements Runnable { \n boolean connected = channel . isConnected ( ) ; \n boolean bound = channel . isBound ( ) ; \n try { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n synchronized ( channel . interestOpsLock ) { \n SelectionKey key = channel . getDatagramChannel ( ) . keyFor ( selector ) ; \n if ( key != null ) { \n class NioWorker implements Runnable { \n boolean connected = channel . isConnected ( ) ; \n boolean bound = channel . isBound ( ) ; \n try { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n synchronized ( channel . interestOpsLock ) { \n SelectionKey key = channel . socket . keyFor ( selector ) ; \n if ( key != null ) {", "msg_token": "Added the comment as suggested by Thomas Bocek"} {"diff": " public class SettingsActivity extends PreferenceActivity \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n SINGLE \n - SINGLE \n + addPreferencesFromResource ( R . xml . pref_general ) ; \n \n SINGLE \n SINGLE \n - SINGLE \n + bindPreferenceSummaryToValue ( findPreference ( getString ( R . string . pref_location_key ) ) ) ; \n } \n \n COMMENT", "msg_token": "Inflate view in SettingsActivity"} {"diff": " public class Explode extends Visibility { \n \n public Explode ( Context context , AttributeSet attrs ) { \n super ( context , attrs ) ; \n + setPropagation ( new CircularPropagation ( ) ) ; \n } \n \n private void captureValues ( TransitionValues transitionValues ) {", "msg_token": "Add default propagation back to Explode"} {"diff": " import NAMESPACE ; \n key = NotificationDaemon . PROPERTY_DELAY , \n defaultValue = STRING0 , \n name = STRING1 , \n - project = false , \n global = false ) , \n @ property ( \n key = NotificationDaemon . PROPERTY_DELAY_BEFORE_REPORTING_STATUS , \n defaultValue = STRING2 , \n name = STRING3 , \n - project = false , \n global = false ) \n } ) \n @ serverside", "msg_token": "Fix Quality flaw"} {"diff": " public class TestCommand extends AbstractCommandRunner < TestCommandOptions > { \n \n SINGLE \n for ( JavaLibraryRule path : rulesUnderTest ) { \n - String classDirectory = path . getOutput ( ) . getAbsolutePath ( ) ; \n + File output = path . getOutput ( ) ; \n + if ( output == null ) { \n + continue ; \n + } \n + String classDirectory = output . getAbsolutePath ( ) ; \n pathsToInstrumentedClasses . add ( classDirectory ) ; \n }", "msg_token": "Avoid an NPE when a java library does not have an output"} {"diff": " import static NAMESPACE ; \n COMMENT \n public abstract class TcpIpConnectionManager_ConnectMemberTest extends TcpIpConnection_AbstractTest { \n \n + @ test \n + public void testConnectionCount ( ) { \n + connManagerA . start ( ) ; \n + connManagerB . start ( ) ; \n + \n + connect ( connManagerA , addressB ) ; \n + \n + assertEquals ( NUMBER0 , connManagerA . getConnectionCount ( ) ) ; \n + assertEquals ( NUMBER0 , connManagerB . getConnectionCount ( ) ) ; \n + } \n + \n SINGLE \n \n @ test", "msg_token": "Improved testing TcpIpConnectionManager getConnectionCount"} {"diff": " public class SvnCommandLineStatusClient implements SvnStatusClientI { \n @ override \n public void switchPath ( ) { \n final PortableStatus pending = svnHandl [ NUMBER0 ] . getPending ( ) ; \n + if ( pending . isLocked ( ) ) { \n + throw new SvnExceptionWrapper ( new SVNException ( SVNErrorMessage . create ( SVNErrorCode . WC_LOCKED ) ) ) ; \n + } \n pending . setChangelistName ( changelistName [ NUMBER0 ] ) ; \n try { \n SINGLE", "msg_token": "status handler throw svnkit exception if WC is locked"} {"diff": " public class JetBasicCompletionTest extends JetCompletionTestBase { \n doTest ( ) ; \n } \n \n - public void testPrintTest ( ) { \n - doTest ( ) ; \n - } \n - \n public void testBasicInt ( ) { \n doTest ( ) ; \n }", "msg_token": "Remove temporary test"} {"diff": " abstract class TwitterBaseImpl implements TwitterBase , java . io . Serializable , OAu \n protected final void ensureAuthorizationEnabled ( ) { \n if ( ! auth . isEnabled ( ) ) { \n throw new IllegalStateException ( \n - STRING0 ) ; \n + STRING1 ) ; \n } \n } \n \n protected final void ensureOAuthEnabled ( ) { \n if ( ! ( auth instanceof OAuthAuthorization ) ) { \n throw new IllegalStateException ( \n - STRING2 ) ; \n + STRING3 ) ; \n } \n }", "msg_token": "Fix configuration url"} {"diff": " public class MatchOptions implements JDOMExternalizable { \n private Language myDialect = null ; \n \n private SearchScope scope ; \n - private SearchScope downUpMatchScope ; \n private String searchCriteria = STRING0 ; \n @ nullable private Map < String , MatchVariableConstraint > variableConstraints ; \n \n public class MatchOptions implements JDOMExternalizable { \n this . scope = scope ; \n } \n \n - public SearchScope getDownUpMatchScope ( ) { \n - return downUpMatchScope ; \n - } \n - \n - public void setDownUpMatchScope ( final SearchScope downUpMatchScope ) { \n - this . downUpMatchScope = downUpMatchScope ; \n - } \n - \n public void writeExternal ( Element element ) { \n element . setAttribute ( TEXT_ATTRIBUTE_NAME , searchCriteria ) ; \n if ( ! looseMatching ) {", "msg_token": "remove unused field"} {"diff": " import NAMESPACE ; \n @ extensionnaming ( namespace = FaunusRexsterExtension . EXTENSION_NAMESPACE , name = FaunusRexsterExtension . EXTENSION_NAME ) \n public class FaunusRexsterExtension extends AbstractRexsterExtension { \n \n - public static final String EXTENSION_NAMESPACE = STRING0 ; \n + public static final String EXTENSION_NAMESPACE = STRING1 ; \n public static final String EXTENSION_NAME = STRING2 ; \n \n public static final byte [ ] LINE_BREAK = STRING3 . getBytes ( ) ;", "msg_token": "Changed namespace of kibble to faunus"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class InformationSchemaPageSourceProvider \n InternalTable . Builder table = InternalTable . builder ( informationSchemaTableColumns ( TABLE_INTERNAL_PARTITIONS ) ) ; \n \n Optional < TableHandle > tableHandle = metadata . getTableHandle ( session , tableName ) ; \n - checkArgument ( tableHandle . isPresent ( ) , STRING0 , tableName ) ; \n + if ( ! tableHandle . isPresent ( ) ) { \n + throw new TableNotFoundException ( tableName . asSchemaTableName ( ) ) ; \n + } \n \n List < TableLayoutResult > layouts = metadata . getLayouts ( session , tableHandle . get ( ) , Constraint . < ColumnHandle > alwaysTrue ( ) , Optional . empty ( ) ) ;", "msg_token": "Categorize error for InformationSchemaPageSourceProvider"} {"diff": " public class AudioRecord \n case AudioFormat . CHANNEL_INVALID : \n default : \n loge ( STRING0 ) ; \n - return AudioRecord . ERROR_BAD_VALUE ; \n + return ERROR_BAD_VALUE ; \n } \n \n SINGLE \n if ( audioFormat != AudioFormat . ENCODING_PCM_16BIT ) { \n loge ( STRING1 ) ; \n - return AudioRecord . ERROR_BAD_VALUE ; \n + return ERROR_BAD_VALUE ; \n } \n \n int size = native_get_min_buff_size ( sampleRateInHz , channelCount , audioFormat ) ; \n if ( size == NUMBER0 ) { \n - return AudioRecord . ERROR_BAD_VALUE ; \n + return ERROR_BAD_VALUE ; \n } \n else if ( size == - NUMBER1 ) { \n - return AudioRecord . ERROR ; \n + return ERROR ; \n } \n else { \n return size ;", "msg_token": "Remove redundant AudioRecord"} {"diff": " public class SemServiceImpl extends SemService { \n private ConcurrentMap < SemKey , List < SemElement > > cacheOrGetMap ( final PsiElement element , @ notnull PsiElement root ) { \n FileChunk chunk = obtainChunk ( root ) ; \n if ( chunk == null ) { \n - chunk = new FileChunk ( root ) ; \n - myCache . putIfAbsent ( root , new SoftReference ( chunk ) ) ; \n + synchronized ( myCache ) { \n + chunk = obtainChunk ( root ) ; \n + if ( chunk == null ) { \n + myCache . put ( root , new SoftReference ( chunk = new FileChunk ( root ) ) ) ; \n + } \n + } \n } \n \n ConcurrentMap < SemKey , List < SemElement > > map = chunk . map . get ( element ) ;", "msg_token": "ensure a unique sem chunk per file"} {"diff": " public class OverrideImplementUtil extends OverrideImplementExploreUtil { \n JVMElementFactory factory = JVMElementFactories . getFactory ( targetClass . getLanguage ( ) , originalMethod . getProject ( ) ) ; \n if ( factory == null ) factory = JavaPsiFacade . getInstance ( originalMethod . getProject ( ) ) . getElementFactory ( ) ; \n @ nonnls String methodText ; \n + \n try { \n - String bodyText = template . getText ( properties ) ; \n - if ( bodyText != null && ! bodyText . isEmpty ( ) ) bodyText += STRING0 ; \n - methodText = STRING1 + bodyText + STRING2 ; \n + methodText = STRING1 + template . getText ( properties ) + STRING3 ; \n methodText = FileTemplateUtil . indent ( methodText , result . getProject ( ) , fileType ) ; \n } catch ( Exception e ) { \n throw new IncorrectOperationException ( STRING4 , e ) ;", "msg_token": "incorrect merge fix"} {"diff": " public interface World { \n public boolean generateTree ( Location loc , TreeType type , BlockChangeDelegate delegate ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public Minecart spawnMinecart ( Location location ) ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public StorageMinecart spawnStorageMinecart ( Location loc ) ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public PoweredMinecart spawnPoweredMinecart ( Location loc ) ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public Boat spawnBoat ( Location loc ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove some deprecated methods in World"} {"diff": " public class ZenDiscovery extends AbstractLifecycleComponent < Discovery > implemen \n @ override \n public void clusterStateProcessed ( String source , ClusterState oldState , ClusterState newState ) { \n for ( Tuple < DiscoveryNode , MembershipAction . JoinCallback > drainedTask : drainedTasks ) { \n - drainedTask . v2 ( ) . onSuccess ( ) ; \n + try { \n + drainedTask . v2 ( ) . onSuccess ( ) ; \n + } catch ( Exception e ) { \n + logger . error ( STRING0 , e , source ) ; \n + } \n } \n } \n } ) ;", "msg_token": "Discovery Add try catch around repetitive onSuccess calls"} {"diff": " public abstract class BaseMonochromeBitmapSource implements MonochromeBitmapSour \n return false ; \n } \n \n + SINGLE \n + SINGLE \n + SINGLE \n + \n + public abstract int getHeight ( ) ; \n + \n + public abstract int getWidth ( ) ; \n + \n }", "msg_token": "Added redundant abstract method declarations to maybe work around problems on Nokias"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public abstract class DpmTestBase extends AndroidTestCase { \n \n doReturn ( realResolveInfo ) . when ( mMockContext . packageManager ) . queryBroadcastReceiversAsUser ( \n MockUtils . checkIntentComponent ( admin ) , \n - eq ( PackageManager . GET_META_DATA \n - | PackageManager . GET_DISABLED_UNTIL_USED_COMPONENTS ) , \n + anyInt ( ) , \n eq ( UserHandle . getUserId ( packageUid ) ) ) ; \n \n SINGLE", "msg_token": "Fix unit tests"} {"diff": " public interface Configurator \n \n String THIRD_PARTY_PACKAGES_KEY = STRING0 ; \n \n - String WEBSERVER_HTTPS_ENABLED_PROPERTY_KEY = STRING1 ; \n + String WEBSERVER_HTTPS_ENABLED_PROPERTY_KEY = STRING2 ; \n Boolean DEFAULT_WEBSERVER_HTTPS_ENABLED = false ; \n \n String WEBSERVER_HTTPS_PORT_PROPERTY_KEY = STRING3 ;", "msg_token": "Changed ssl enabled to https enabled as config property"} {"diff": " public class BasicModelController extends AbstractModelController implements Mod \n \n return doExecute ( context , operation , operationHandler , handler , address , modelSource , configurationPersisterProvider ) ; \n } catch ( OperationFailedException e ) { \n + log . debugf ( e , STRING0 , operation . getOperation ( ) . get ( OP ) , operation . getOperation ( ) . get ( OP_ADDR ) ) ; \n handler . handleFailed ( e . getFailureDescription ( ) ) ; \n return new BasicOperationResult ( ) ; \n }", "msg_token": "Log OperationFailedException at debug"} {"diff": " public class AnimationTrack extends AbstractCinematicEvent { \n public AnimationTrack ( Spatial model , String animationName ) { \n modelName = model . getName ( ) ; \n this . animationName = animationName ; \n + initialDuration = model . getControl ( AnimControl . class ) . getAnimationLength ( animationName ) ; \n } \n \n public AnimationTrack ( Spatial model , String animationName , float initialDuration ) { \n public class AnimationTrack extends AbstractCinematicEvent { \n \n public AnimationTrack ( Spatial model , String animationName , LoopMode loopMode ) { \n super ( loopMode ) ; \n + initialDuration = model . getControl ( AnimControl . class ) . getAnimationLength ( animationName ) ; \n modelName = model . getName ( ) ; \n this . animationName = animationName ; \n }", "msg_token": "AnimationTrack takes now the animation s duration as default duration"} {"diff": " public class MMapDataAccess extends AbstractDataAccess { \n } \n \n private ByteBuffer newByteBuffer ( long offset , long byteCount ) throws IOException { \n + SINGLE \n + SINGLE \n + SINGLE \n ByteBuffer buf = raFile . getChannel ( ) . map ( FileChannel . MapMode . READ_WRITE , offset , byteCount ) ; \n if ( order != null ) \n buf . order ( order ) ; \n public class MMapDataAccess extends AbstractDataAccess { \n ( ( MappedByteBuffer ) bb ) . force ( ) ; \n } \n } \n + SINGLE \n + SINGLE \n + raFile . getFD ( ) . sync ( ) ; \n writeHeader ( raFile , raFile . length ( ) , segmentSizeInBytes ) ; \n } catch ( Exception ex ) { \n throw new RuntimeException ( ex ) ;", "msg_token": "read Java NIO now things are more clear but more are unclear"} {"diff": " public class Jackson2ObjectMapperFactoryBean implements FactoryBean < ObjectMapper \n \n @ override \n public Class < ? > getObjectType ( ) { \n - Assert . notNull ( this . objectMapper , STRING0 ) ; \n - return this . objectMapper . getClass ( ) ; \n + return ( this . objectMapper != null ) ? this . objectMapper . getClass ( ) : null ; \n } \n \n @ override \n public class Jackson2ObjectMapperFactoryBeanTests { \n assertEquals ( ObjectMapper . class , this . factory . getObjectType ( ) ) ; \n } \n \n + @ test \n + public void undefinedObjectType ( ) { \n + assertEquals ( null , this . factory . getObjectType ( ) ) ; \n + } \n + \n private static SerializerFactoryConfig getSerializerFactoryConfig ( ObjectMapper objectMapper ) { \n return ( ( BasicSerializerFactory ) objectMapper . getSerializerFactory ( ) ) . getFactoryConfig ( ) ; \n }", "msg_token": "Allow null ObjectMapper in Jackson2ObjectMapperFactoryBean getObjectType"} {"diff": " public class Crop { \n String ASPECT_Y = STRING0 ; \n String MAX_X = STRING1 ; \n String MAX_Y = STRING2 ; \n - String GUIDES = STRING3 ; \n String ERROR = STRING4 ; \n }", "msg_token": "Remove unused constant skip ci"} {"diff": " public class ZWaveThermostatSetpointCommandClass extends ZWaveCommandClass imple \n MOIST_AIR ( NUMBER0 , STRING0 ) , \n AUTO_CHANGEOVER ( NUMBER1 , STRING1 ) , \n HEATING_ECON ( NUMBER2 , STRING2 ) , \n - COOLING_ECON ( NUMBER3 , STRING3 ) , \n + COOLING_ECON ( NUMBER3 , STRING4 ) , \n AWAY_HEATING ( NUMBER4 , STRING5 ) ; \n \n COMMENT", "msg_token": "corrected spelling error"} {"diff": " public class SimplerDbRecorder implements MonkeyRecorder { \n if ( configuration != null ) { \n dbFilename = configuration . getStrOrElse ( STRING0 , null ) ; \n max_events = configuration . getNumOrElse ( STRING1 , MAX_EVENTS ) ; \n + dbpassword = configuration . getStrOrElse ( STRING2 , null ) ; \n } \n } \n \n public class SimplerDbRecorder implements MonkeyRecorder { \n COMMENT \n @ override \n public Date eventTime ( ) { \n - return date ; \n + return new Date ( date . getTime ( ) ) ; \n } \n \n COMMENT", "msg_token": "Eliminate findbugs error"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class LambdaTest { \n lambda . run ( ) ; \n } \n \n + private interface Function1 < IN , OUT > { \n + OUT apply ( IN value ) ; \n + } \n + \n + @ test \n + public void lambda_taking_parameters ( ) { \n + Function1 < String , Integer > lambda = ( String s ) - > s . getBytes ( StandardCharsets . UTF_16BE ) . length ; \n + \n + assertThat ( lambda . apply ( STRING0 ) , is ( NUMBER0 ) ) ; \n + } \n + \n private int instanceVar = NUMBER1 ; \n \n @ test", "msg_token": "Test for lambda taking parameters"} {"diff": " public class TezJobMonitor { \n case RUNNING : \n if ( ! running ) { \n perfLogger . PerfLogEnd ( CLASS_NAME , PerfLogger . TEZ_SUBMIT_TO_RUNNING ) ; \n - console . printInfo ( STRING0 ) ; \n + console . printInfo ( STRING1 \n + + dagClient . getApplicationId ( ) + STRING2 ) ; \n for ( String s : progressMap . keySet ( ) ) { \n perfLogger . PerfLogBegin ( CLASS_NAME , PerfLogger . TEZ_RUN_VERTEX + s ) ; \n }", "msg_token": "Print yarn app id when running Tez dag Gunther Hagleitner"} {"diff": " import NAMESPACE ; \n \n public class Style { \n public static final Style ALERT = new Builder ( ) . setDuration ( NUMBER0 ) \n - . setTextColor ( android . R . color . holo_red_light ) \n + . setColor ( android . R . color . holo_red_light ) \n . setHeight ( LayoutParams . WRAP_CONTENT ) . build ( ) ; \n \n public static final Style CONFIRM = new Builder ( ) . setDuration ( NUMBER1 ) \n - . setTextColor ( android . R . color . holo_green_light ) \n + . setColor ( android . R . color . holo_green_light ) \n . setHeight ( LayoutParams . WRAP_CONTENT ) . build ( ) ; \n \n public static final Style INFO = new Builder ( ) . setDuration ( NUMBER1 ) \n - . setTextColor ( android . R . color . holo_blue_bright ) \n + . setColor ( android . R . color . holo_blue_bright ) \n . setHeight ( LayoutParams . WRAP_CONTENT ) . build ( ) ; \n COMMENT \n COMMENT", "msg_token": "fixed error within predefined Styles"} {"diff": " public class MapperService extends AbstractIndexComponent implements Iterable < Do \n SINGLE \n private void add ( DocumentMapper mapper ) { \n synchronized ( mutex ) { \n + if ( mapper . type ( ) . length ( ) == NUMBER0 ) { \n + throw new InvalidTypeNameException ( STRING0 ) ; \n + } \n if ( mapper . type ( ) . charAt ( NUMBER0 ) == STRING1 ) { \n throw new InvalidTypeNameException ( STRING2 + mapper . type ( ) + STRING3 ) ; \n }", "msg_token": "don t allow an empty type in the mapper service"} {"diff": " public class WifiConfiguration implements Parcelable { \n } \n } \n \n - if ( FQDN != null ) { \n - COMMENT \n - if ( providerFriendlyName == null ) { \n + if ( TextUtils . isEmpty ( FQDN ) == false ) { \n + COMMENT \n + if ( TextUtils . isEmpty ( SSID ) == false ) { \n + return false ; \n + } \n + COMMENT \n + if ( TextUtils . isEmpty ( providerFriendlyName ) ) { \n return false ; \n } \n COMMENT \n - if ( enterpriseConfig == null ) { \n + if ( enterpriseConfig == null \n + || enterpriseConfig . getEapMethod ( ) == WifiEnterpriseConfig . Eap . NONE ) { \n return false ; \n } \n }", "msg_token": "Improve passpoint configuration validation"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n == PackageManager . PERMISSION_GRANTED ) { \n forceStopPackageLocked ( packageName , pkgUid ) ; \n } else { \n - throw new SecurityException ( pid + STRING0 + \n - android . Manifest . permission . CLEAR_APP_USER_DATA + STRING1 + \n - STRING2 + packageName ) ; \n + throw new SecurityException ( STRING3 + pid + STRING4 \n + + android . Manifest . permission . CLEAR_APP_USER_DATA + STRING1 \n + + STRING5 + packageName ) ; \n } \n }", "msg_token": "Fix formatting in clearApplicationUserData exception message"} {"diff": " public class Drawer { \n return mDrawer . mAdapter ; \n } \n \n + public View getHeader ( ) { \n + return mDrawer . mHeaderView ; \n + } \n + \n + public View getFooter ( ) { \n + return mDrawer . mFooterView ; \n + } \n + \n + public View getStickyFooter ( ) { \n + return mDrawer . mStickyFooterView ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add getter for footer header stickyFooter"} {"diff": " public class TestAccountInvalidNotification extends TestCase \n public void failIcqTesterAgentMissing ( ) \n { \n fail ( STRING0 \n - + STRING1 \n - + STRING2 \n - + STRING3 ) ; \n + + STRING4 \n + + STRING2 \n + + STRING5 ) ; \n } \n \n COMMENT \n public class TestAccountInvalidNotification extends TestCase \n public void failIcqTesterAgentRegisterRejected ( ) \n { \n fail ( STRING6 \n - + STRING7 + \n - STRING8 ) ; \n + + STRING9 \n + + STRING10 \n + + STRING11 ) ; \n } \n }", "msg_token": "improve content of junit failure message for icq test account registration problems"} {"diff": " public abstract class MediaplayerActivity extends AppCompatActivity implements O \n controller . release ( ) ; \n } \n controller = newPlaybackController ( ) ; \n + if ( butPlay != null ) { \n + butPlay . setOnClickListener ( controller . newOnPlayButtonClickListener ( ) ) ; \n + } \n } \n \n @ override", "msg_token": "Fix play pause after re opening audioplayer"} {"diff": " public class UnpackedBakedQuad extends BakedQuad \n private int tint = - NUMBER0 ; \n private EnumFacing orientation ; \n private TextureAtlasSprite texture ; \n - private boolean applyDiffuseLighting ; \n + private boolean applyDiffuseLighting = true ; \n \n private int vertices = NUMBER1 ; \n private int elements = NUMBER1 ;", "msg_token": "Enabled diffuse lighting by default in UnpackedBakedQuad Builder"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class AbstractParser { \n public class PresenceParser extends AbstractParser implements \n } \n } \n boolean online = sizeBefore < contact . getPresences ( ) . size ( ) ; \n - updateLastseen ( packet , account , true ) ; \n - mXmppConnectionService . onContactStatusChanged \n - . onContactStatusChanged ( contact , online ) ; \n + updateLastseen ( packet , account , false ) ; \n + mXmppConnectionService . onContactStatusChanged . onContactStatusChanged ( contact , online ) ; \n } else if ( type . equals ( STRING0 ) ) { \n if ( from . isBareJid ( ) ) { \n contact . clearPresences ( ) ;", "msg_token": "update last presence only for messages"} {"diff": " public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen \n \n private StatusView mStatusView ; \n private final boolean mUseSystemIME = true ; SINGLE \n + private boolean mResuming ; SINGLE \n \n SINGLE \n SINGLE \n public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen \n } \n \n public void afterTextChanged ( Editable s ) { \n - mCallback . pokeWakelock ( ) ; \n + if ( ! mResuming ) { \n + mCallback . pokeWakelock ( ) ; \n + } \n } \n } ) ; \n } \n public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen \n \n COMMENT \n public void onResume ( ) { \n + mResuming = true ; \n SINGLE \n mStatusView . resetStatusInfo ( mUpdateMonitor , mLockPatternUtils ) ; \n \n public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen \n if ( deadline != NUMBER0 ) { \n handleAttemptLockout ( deadline ) ; \n } \n + mResuming = false ; \n } \n \n COMMENT", "msg_token": "prevent screen from turning back on while lockscreen in password mode"} {"diff": " public class FileUtilRt { \n \n @ notnull \n public static File createTempFile ( @ notnull @ nonnls String prefix , @ nullable @ nonnls String suffix ) throws IOException { \n - return createTempFile ( prefix , suffix , false ) ; SINGLE \n + return createTempFile ( prefix , suffix , true ) ; SINGLE \n } \n \n @ notnull", "msg_token": "delete temp files on exit by default"} {"diff": " public class DataManagerImpl extends DataManager implements ApplicationComponent \n return null ; \n } \n \n + @ nullable \n private GetDataRule getRuleFromMap ( final String dataId ) { \n GetDataRule rule = myDataConstantToRuleMap . get ( dataId ) ; \n if ( rule == null && ! myDataConstantToRuleMap . containsKey ( dataId ) ) { \n public class DataManagerImpl extends DataManager implements ApplicationComponent \n return rule ; \n } \n \n + @ nullable \n private static Object validated ( Object data , String dataId , Object dataSource ) { \n Object invalidData = DataValidator . findInvalidData ( dataId , data , dataSource ) ; \n if ( invalidData != null ) { \n + return null ; \n + COMMENT \n LOG . assertTrue ( false , STRING0 + dataId + STRING1 + invalidData + STRING2 + dataSource . getClass ( ) . getName ( ) + STRING3 + \n dataSource . toString ( ) + STRING4 ) ; \n + COMMENT \n } \n return data ; \n }", "msg_token": "remove invalid data assertion unnecessary effort to insert checks in all places"} {"diff": " public class PresentMode { \n SINGLE \n static JComboBox selector ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - static GraphicsDevice device ; \n - \n \n static { \n GraphicsEnvironment environment = \n public class PresentMode { \n selector . addActionListener ( new ActionListener ( ) { \n public void actionPerformed ( ActionEvent e ) { \n int index = selector . getSelectedIndex ( ) ; \n - SINGLE \n Preferences . setInteger ( STRING0 , index + NUMBER0 ) ; \n } \n } ) ;", "msg_token": "Remove unused PresentMode device instance variable"} {"diff": " public class TimingTest extends TestCase { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TimingTest extends TestCase { \n sleepTen ( ) ; \n long val = t . report ( ) ; \n SINGLE \n - assertEquals ( STRING0 , NUMBER0 , val , NUMBER1 ) ; \n + assertEquals ( STRING0 , NUMBER0 , val , NUMBER0 ) ; \n for ( int i = NUMBER2 ; i < NUMBER3 ; i ++ ) { \n sleepTen ( ) ; \n }", "msg_token": "Further widen satisfactory bands got another bogus test failure"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JDKAsyncHttpProvider implements AsyncHttpProvider < HttpURLConnection \n \n FileInputStream fis = new FileInputStream ( file ) ; \n try { \n - final byte [ ] buffer = new byte [ ( int ) file . length ( ) ] ; \n - fis . read ( buffer ) ; \n - urlConnection . getOutputStream ( ) . write ( buffer ) ; \n + OutputStream os = urlConnection . getOutputStream ( ) ; \n + for ( final byte [ ] buffer = new byte [ NUMBER0 * NUMBER1 ] ; ; ) { \n + int read = fis . read ( buffer ) ; \n + if ( read < NUMBER2 ) { \n + break ; \n + } \n + os . write ( buffer , NUMBER2 , read ) ; \n + } \n } finally { \n fis . close ( ) ; \n }", "msg_token": "Fix OOME potential candidate"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix RAT issue on JoinState"} {"diff": " public class SearchQueryRunnerTest \n QueryRunnerTestHelper . qualityDimension , \n Sets . newHashSet ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) \n ) ; \n - expectedResults . put ( QueryRunnerTestHelper . providerDimension . toLowerCase ( ) , Sets . newHashSet ( STRING5 ) ) ; \n + expectedResults . put ( QueryRunnerTestHelper . providerDimension , Sets . newHashSet ( STRING5 ) ) ; \n expectedResults . put ( QueryRunnerTestHelper . placementishDimension , Sets . newHashSet ( STRING6 ) ) ; \n \n checkSearchQuery ( searchQuery , expectedResults ) ; \n public class SearchQueryRunnerTest \n . build ( ) ; \n \n Map < String , Set < String > > expectedResults = Maps . newTreeMap ( String . CASE_INSENSITIVE_ORDER ) ; \n - expectedResults . put ( QueryRunnerTestHelper . placementDimension . toLowerCase ( ) , Sets . newHashSet ( STRING7 ) ) ; \n + expectedResults . put ( QueryRunnerTestHelper . placementDimension , Sets . newHashSet ( STRING7 ) ) ; \n expectedResults . put ( QueryRunnerTestHelper . placementishDimension , Sets . newHashSet ( STRING8 , STRING7 ) ) ; \n \n checkSearchQuery ( searchQuery , expectedResults ) ;", "msg_token": "fix random lowercasing in test"} {"diff": " public class PhotoManager { \n } \n \n public void cancelTask ( Object token ) { \n - backgroundHandler . removeCallbacksAndMessages ( token ) ; \n + if ( token != null ) { \n + backgroundHandler . removeCallbacksAndMessages ( token ) ; \n + } \n } \n \n public void acquireBitmap ( Bitmap b ) {", "msg_token": "Don t remove all queued items if token null"} {"diff": " public class DnsNameResolverTest { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 , \n STRING4 , \n STRING5 , \n STRING6 ,", "msg_token": "Remove thepiratebay se from the test domain list"} {"diff": " public class CommandLineClient extends Client { \n out . println ( STRING0 ) ; \n out . println ( ) ; \n out . println ( STRING1 ) ; \n - out . println ( STRING2 ) ; \n + out . println ( STRING3 ) ; \n out . println ( STRING4 ) ; \n out . println ( ) ; \n out . println ( STRING5 ) ; \n public class CommandLineClient extends Client { \n out . println ( STRING6 ) ; \n out . println ( ) ; \n out . println ( STRING7 ) ; \n - out . println ( STRING8 ) ; \n + out . println ( STRING9 ) ; \n out . println ( ) ; \n out . println ( STRING5 ) ; \n out . println ( STRING10 ) ;", "msg_token": "fix a typo in the usage message and align text"} {"diff": " public class TransitionSet extends Transition { \n @ override \n public TransitionSet setDuration ( long duration ) { \n super . setDuration ( duration ) ; \n - if ( mDuration >= NUMBER0 ) { \n + if ( mDuration >= NUMBER0 && mTransitions != null ) { \n int numTransitions = mTransitions . size ( ) ; \n for ( int i = NUMBER0 ; i < numTransitions ; ++ i ) { \n mTransitions . get ( i ) . setDuration ( duration ) ;", "msg_token": "Fix NPE during construction from XML"} {"diff": " public class NettyRemoteBlockReaderTest { \n SINGLE \n } \n try { \n - TimeUnit . SECONDS . sleep ( NUMBER0 ) ; \n + TimeUnit . MILLISECONDS . sleep ( NUMBER1 ) ; \n } catch ( InterruptedException e ) { \n SINGLE \n }", "msg_token": "decrease thread sleep interval"} {"diff": " public class JsonSchemaMappingsConfigurable extends MasterDetailsComponent imple \n \n @ nullable \n @ override \n + protected String getEmptySelectionString ( ) { \n + return myRoot . children ( ) . hasMoreElements ( ) ? STRING0 : \n + STRING1 ; \n + } \n + \n + @ nullable \n + @ override \n protected ArrayList < AnAction > createActions ( boolean fromPopup ) { \n final ArrayList < AnAction > result = new ArrayList < AnAction > ( ) ; \n result . add ( new DumbAwareAction ( STRING2 , STRING2 , IconUtil . getAddIcon ( ) ) {", "msg_token": "missing description on the right"} {"diff": " public class ConstantOccupancyWorkload extends CoreWorkload { \n System . err . println ( STRING0 ) ; \n } \n IntegerGenerator g = CoreWorkload . getFieldLengthGenerator ( p ) ; \n - System . out . println ( g + STRING1 + g . mean ( ) ) ; \n double fieldsize = g . mean ( ) ; \n int fieldcount = Integer . parseInt ( p . getProperty ( FIELD_COUNT_PROPERTY , FIELD_COUNT_PROPERTY_DEFAULT ) ) ; \n \n object_count = ( long ) ( occupancy * ( ( double ) disksize / ( fieldsize * ( double ) fieldcount ) ) ) ; \n - System . out . println ( STRING2 + occupancy + STRING3 + object_count ) ; \n + if ( object_count == NUMBER0 ) { \n + throw new IllegalStateException ( STRING4 ) ; \n + } \n p . setProperty ( Client . RECORD_COUNT_PROPERTY , object_count + STRING5 ) ; \n p . setProperty ( Client . OPERATION_COUNT_PROPERTY , ( storageages * object_count ) + STRING5 ) ; \n p . setProperty ( Client . INSERT_COUNT_PROPERTY , object_count + STRING5 ) ;", "msg_token": "improved error handling less verbosity for constant occupancy workload"} {"diff": " public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DevicePolicyManager { \n COMMENT \n COMMENT \n public void setTrustAgentConfiguration ( ComponentName admin , ComponentName target , \n - PersistableBundle options ) { \n + PersistableBundle configuration ) { \n if ( mService != null ) { \n try { \n - mService . setTrustAgentConfiguration ( admin , target , options , UserHandle . myUserId ( ) ) ; \n + mService . setTrustAgentConfiguration ( admin , target , configuration , \n + UserHandle . myUserId ( ) ) ; \n } catch ( RemoteException e ) { \n Log . w ( TAG , STRING0 , e ) ; \n } \n public class DevicePolicyManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify getTrustAgentConfiguration documentation"} {"diff": " public final class ActivityStackSupervisor implements DisplayListener { \n } \n targetStack = sourceTask . stack ; \n targetStack . moveToFront ( ) ; \n - mWindowManager . moveTaskToTop ( sourceTask . taskId ) ; \n + mWindowManager . moveTaskToTop ( targetStack . topTask ( ) . taskId ) ; \n if ( ! addingToTask && \n ( launchFlags & Intent . FLAG_ACTIVITY_CLEAR_TOP ) != NUMBER0 ) { \n SINGLE", "msg_token": "Pass correct task to window manager"} {"diff": " public abstract class AbstractDuration \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected void setMillis ( long length ) { \n iMillis = length ; \n public abstract class AbstractInterval implements ReadableInterval { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n public final Period toPeriod ( ) { \n public abstract class AbstractInterval implements ReadableInterval { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final Period toPeriod ( PeriodType type ) { \n public interface ReadableInterval { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n Period toPeriod ( ) ; \n public interface ReadableInterval { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n Period toPeriod ( PeriodType type ) ;", "msg_token": "Fixed javadoc tags"} {"diff": " public class ForgeHooksClient \n } \n \n private static int slotMainHand = NUMBER0 ; \n + SINGLE \n public static boolean shouldCauseReequipAnimation ( ItemStack from , ItemStack to , int slot ) \n { \n if ( ! Objects . equal ( from , to ) || from == null ) \n public class ForgeHooksClient \n changed = slot != slotMainHand ; \n slotMainHand = slot ; \n } \n - return from . getItem ( ) . shouldCauseReequipAnimation ( from , to , changed ) ; \n + return ! from . getItem ( ) . shouldCauseReequipAnimation ( from , to , changed ) ; \n } \n }", "msg_token": "Fix items rendering too low in first person"} {"diff": " public class LocalTachyonCluster { \n public void stop ( ) throws Exception { \n stopTFS ( ) ; \n stopUFS ( ) ; \n - \n - UnderFileSystem ufs = UnderFileSystem . get ( mTachyonHome ) ; \n - if ( ! ufs . exists ( mTachyonHome ) || ! ufs . delete ( mTachyonHome , true ) ) { \n - throw new IOException ( STRING0 + mTachyonHome ) ; \n - } \n } \n \n COMMENT \n public class LocalTachyonClusterMultiMaster { \n public void stop ( ) throws Exception { \n stopTFS ( ) ; \n stopUFS ( ) ; \n - \n - UnderFileSystem ufs = UnderFileSystem . get ( mTachyonHome ) ; \n - if ( ! ufs . exists ( mTachyonHome ) || ! ufs . delete ( mTachyonHome , true ) ) { \n - throw new IOException ( STRING0 + mTachyonHome ) ; \n - } \n } \n \n public void stopTFS ( ) throws Exception {", "msg_token": "fix a test bug"} {"diff": " public class EasyPredictModelWrapper implements java . io . Serializable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class EasyPredictModelWrapper implements java . io . Serializable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public ConcurrentHashMap < String , AtomicLong > getUnknownCategoricalLevelsSeenPerColumn ( ) { \n return unknownCategoricalLevelsSeenPerColumn ;", "msg_token": "Updated documentation for unknown categorical level counting"} {"diff": " public class NameUtil { \n } \n SINGLE \n if ( wordIndex == words . size ( ) - NUMBER0 ) { \n + if ( patternIndex + i == myPattern . length ( ) - NUMBER0 && STRING0 == myPattern . charAt ( patternIndex + i ) ) { \n + return i == w . length ( ) ; \n + } \n + \n return false ; \n } \n while ( i > NUMBER1 ) {", "msg_token": "space at the end of the pattern matches the name end"} {"diff": " public class TryTest { \n public void shouldChainFailureWithAndThen ( ) { \n final Try < Integer > actual = Try . of ( ( ) - > NUMBER0 ) \n . andThen ( x - > x + NUMBER0 ) \n - . andThen ( x - > x / NUMBER1 ) SINGLE \n - . andThen ( x - > x + NUMBER2 ) ; \n + . andThen ( x - > Integer . parseInt ( STRING0 ) + x ) SINGLE \n + . andThen ( x - > x / NUMBER3 ) ; \n \n - final Try < Integer > expected = new Failure < > ( new ArithmeticException ( STRING1 ) ) ; \n + final Try < Integer > expected = new Failure < > ( new NumberFormatException ( STRING2 ) ) ; \n assertThat ( actual ) . isEqualTo ( expected ) ; \n }", "msg_token": "Fixing exception case"} {"diff": " public class TestClose extends TomcatBaseTest { \n \n public static void awaitOnError ( Class < ? extends Throwable > exceptionClazz ) { \n awaitLatch ( events . onErrorCalled , STRING0 ) ; \n - Assert . assertTrue ( exceptionClazz . getName ( ) , \n + Assert . assertTrue ( events . onErrorThrowable . getClass ( ) . getName ( ) , \n events . onErrorThrowable . getClass ( ) . isAssignableFrom ( exceptionClazz ) ) ; \n }", "msg_token": "Log the actual value rather than the expected value"} {"diff": " public interface Tree < T > extends Functor < T > , Iterable < T > { \n final String children = tree . getChildren ( ) \n . map ( child - > toString ( child , depth + NUMBER0 ) ) \n . join ( ) ; \n - return String . format ( STRING0 , indent , value , children ) ; \n + return String . format ( STRING1 , indent , value , children ) ; \n } \n } \n }", "msg_token": "Reverted String format approach to carriage return"} {"diff": " public class RotationPersistWorkerFragment \n private IAmYourMaster _masterFrag ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RotationPersistWorkerFragment \n SINGLE \n setRetainInstance ( true ) ; \n \n - \n if ( _intsObservable != null ) { \n return ; \n } \n public class RotationPersistWorkerFragment \n return aLong . intValue ( ) ; \n } \n } ) SINGLE \n - . take ( NUMBER0 ) SINGLE \n - . share ( ) ; SINGLE \n + . take ( NUMBER0 ) ; SINGLE \n + \n + SINGLE \n + SINGLE \n + \n + _intsObservable = _intsObservable . share ( ) ; \n + SINGLE \n + _intsObservable . subscribe ( ) ; \n } \n \n COMMENT", "msg_token": "makes the observable warm not hot"} {"diff": " public class BlockRightClickEvent extends BlockEvent { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public Block getBlockAgainst ( ) { \n return clickedBlock ; \n }", "msg_token": "Deprecate BlockRightClickEvent getBlockAgainst use BlockRightClickEvent getBlock"} {"diff": " class BrowserFrame extends Handler { \n COMMENT \n COMMENT \n private void didReceiveAuthenticationChallenge ( \n - final int handle , String host , String realm , final boolean useCachedCredentials ) { \n + final int handle , String host , String realm , final boolean useCachedCredentials , \n + final boolean suppressDialog ) { \n \n HttpAuthHandler handler = new HttpAuthHandler ( ) { \n \n class BrowserFrame extends Handler { \n public void cancel ( ) { \n nativeAuthenticationCancel ( handle ) ; \n } \n + \n + @ override \n + public boolean suppressDialog ( ) { \n + return suppressDialog ; \n + } \n } ; \n mCallbackProxy . onReceivedHttpAuthRequest ( handler , host , realm ) ; \n } \n public class HttpAuthHandler extends Handler { \n COMMENT \n public void proceed ( String username , String password ) { \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean suppressDialog ( ) { \n + return false ; \n + } \n }", "msg_token": "Add a flag to force suppression of the auth dialog"} {"diff": " public class DelayedActionSystem extends BaseComponentSystem implements UpdateSu \n if ( ! delayedComponent . isEmpty ( ) && oldWakeUp < newWakeUp ) { \n delayedOperationsSortedByTime . remove ( oldWakeUp , entity ) ; \n delayedOperationsSortedByTime . put ( newWakeUp , entity ) ; \n + } else if ( delayedComponent . isEmpty ( ) ) { \n + delayedOperationsSortedByTime . remove ( oldWakeUp , entity ) ; \n } \n saveOrRemoveComponent ( entity , delayedComponent ) ; \n } \n public class DelayedActionSystem extends BaseComponentSystem implements UpdateSu \n if ( ! periodicActionComponent . isEmpty ( ) && oldWakeUp < newWakeUp ) { \n periodicOperationsSortedByTime . remove ( oldWakeUp , entity ) ; \n periodicOperationsSortedByTime . put ( newWakeUp , entity ) ; \n + } else if ( periodicActionComponent . isEmpty ( ) ) { \n + periodicOperationsSortedByTime . remove ( oldWakeUp , entity ) ; \n } \n saveOrRemoveComponent ( entity , periodicActionComponent ) ; \n }", "msg_token": "Fixing NPE in DelayedActionSystem"} {"diff": " public class SmtpTransport extends Transport { \n } \n \n \n - Account mAccount ; \n String mHost ; \n int mPort ; \n String mUsername ; \n public class SmtpTransport extends Transport { \n throw new MessagingException ( STRING0 , e ) ; \n } \n \n - mAccount = account ; \n mHost = settings . host ; \n mPort = settings . port ;", "msg_token": "removed unread field mAccount"} {"diff": " public class CosineDistanceMeasure implements DistanceMeasure { \n double lengthSquaredv1 = v1 . getLengthSquared ( ) ; \n double lengthSquaredv2 = v2 . getLengthSquared ( ) ; \n \n - double dotProduct = v1 . dot ( v2 ) ; \n + double dotProduct = v2 . dot ( v1 ) ; \n double denominator = Math . sqrt ( lengthSquaredv1 ) * Math . sqrt ( lengthSquaredv2 ) ; \n \n SINGLE \n public class CosineDistanceMeasure implements DistanceMeasure { \n \n double lengthSquaredv = v . getLengthSquared ( ) ; \n \n - double dotProduct = centroid . dot ( v ) ; \n + double dotProduct = v . dot ( centroid ) ; \n double denominator = Math . sqrt ( centroidLengthSquare ) * Math . sqrt ( lengthSquaredv ) ; \n \n SINGLE", "msg_token": "Cosine Distance measure should use smaller vector to iterate"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n \n + \n SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n public class PApplet implements PConstants { \n \n SINGLE \n \n + \n + void frameMoved ( int x , int y ) { \n + System . err . println ( EXTERNAL_MOVE + STRING0 + x + STRING0 + y ) ; \n + System . err . flush ( ) ; SINGLE \n + } \n + \n + \n + void frameResized ( int w , int h ) { \n + \n + } \n + \n + \n + SINGLE \n + \n SINGLE", "msg_token": "moving the frame event handling to PApplet itself"} {"diff": " public class AnnotationLocationCheck extends AbstractCheck { \n public static final String MSG_KEY_ANNOTATION_LOCATION = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private boolean allowSamelineSingleParameterlessAnnotation = true ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private boolean allowSamelineParameterizedAnnotation ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private boolean allowSamelineMultipleAnnotations ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final void setAllowSamelineSingleParameterlessAnnotation ( boolean allow ) { \n allowSamelineSingleParameterlessAnnotation = allow ; \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final void setAllowSamelineParameterizedAnnotation ( boolean allow ) { \n allowSamelineParameterizedAnnotation = allow ; \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public final void setAllowSamelineMultipleAnnotations ( boolean allow ) { \n allowSamelineMultipleAnnotations = allow ;", "msg_token": "Improve javadoc of parameters of AnnotationLocationCheck"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n + @ runwith ( JUnit4 . class ) \n public class UnusedProviderTest { \n \n @ test public void unusedProvidesMethod_whenModuleLibrary_passes ( ) throws Exception {", "msg_token": "Add a RunsWith JUnit4 clss annotation to allow test to run inside google"} {"diff": " public class MongoConfigUtil { \n } \n \n public static void setCreateInputSplits ( Configuration conf , boolean value ) { \n - conf . getBoolean ( CREATE_INPUT_SPLITS , value ) ; \n + conf . setBoolean ( CREATE_INPUT_SPLITS , value ) ; \n } \n \n public static void setInputSplitKeyPattern ( Configuration conf , String pattern ) {", "msg_token": "Fixed a typo in ConfigUtil which broke InputSplits"} {"diff": " public interface Graph { \n COMMENT \n public Iterable < Edge > getEdges ( String key , Object value ) ; \n \n + \n + public GraphQuery query ( ) ; \n + \n COMMENT \n COMMENT \n COMMENT \n public interface KeyIndexableGraph extends Graph { \n COMMENT \n COMMENT \n public < T extends Element > Set < String > getIndexedKeys ( Class < T > elementClass ) ; \n - \n - \n - public GraphQuery query ( ) ; \n - \n }", "msg_token": "proposed interface changes not yet implemented"} {"diff": " public class PluginBuildUtil { \n if ( orderEntry instanceof LibraryOrderEntry ) { \n LibraryOrderEntry libEntry = ( LibraryOrderEntry ) orderEntry ; \n Library lib = libEntry . getLibrary ( ) ; \n - if ( lib == null ) continue ; \n + final DependencyScope scope = libEntry . getScope ( ) ; \n + if ( lib == null || ( scope != DependencyScope . COMPILE && scope != DependencyScope . RUNTIME ) ) continue ; \n libs . add ( lib ) ; \n } \n }", "msg_token": "do not pack library zip of plugin if scope is test or provided"} {"diff": " public final class Settings { \n public static final String USE_LOCATION_FOR_SERVICES = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + private static final String GOOGLE_CALENDAR_SYNC_ENTRY_FETCH_QUEUE_SIZE = \n + STRING1 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String GOOGLE_CALENDAR_SYNC_ENTITY_FETCH_QUEUE_SIZE = \n + STRING2 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String GOOGLE_CALENDAR_SYNC_NUM_ALLOWED_SIMULTANEOUS_CHANGES = \n + STRING3 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String GOOGLE_CALENDAR_SYNC_PERCENT_ALLOWED_SIMULTANEOUS_CHANGES = \n + STRING4 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String GOOGLE_CALENDAR_SYNC_MAX_LOOP_ATTEMPTS = \n + STRING5 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + private static final String GOOGLE_CALENDAR_SYNC_NUM_APPLICATIONS_PER_BATCH = \n + STRING6 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add gservices flags for calendar sync"} {"diff": " public class Future < T > { \n \n public static < T > Future < List < T > > sequence ( Iterable < Future < T > > source , Executor ex ) { \n return List . ofAll ( source ) \n - . foldRight ( Future . success ( List . nil ( ) ) , ( next , accumulator ) - > accumulator . flatMap ( list - > next . map ( list : : prepend , ex ) , ex ) ) ; \n + . foldRight ( Future . success ( List . empty ( ) ) , ( next , accumulator ) - > accumulator . flatMap ( list - > next . map ( list : : prepend , ex ) , ex ) ) ; \n } \n \n public static < T > Future < List < T > > sequence ( Iterable < Future < T > > source ) {", "msg_token": "Updated List nil to List empty"} {"diff": " public class BooleanVariableAlwaysNegatedInspection extends BaseInspection { \n return ; \n } \n read = true ; \n - final PsiElement parent = expression . getParent ( ) ; \n + PsiElement parent = expression . getParent ( ) ; \n + while ( parent instanceof PsiParenthesizedExpression ) { \n + parent = parent . getParent ( ) ; \n + } \n if ( ! ( parent instanceof PsiPrefixExpression ) ) { \n alwaysNegated = false ; \n return ;", "msg_token": "handle parentheses in Boolean variable is always inverted inspection"} {"diff": " public class JettyWeldInitializer \n webapp . addSystemClass ( STRING0 ) ; \n webapp . addSystemClass ( STRING1 ) ; \n webapp . addSystemClass ( STRING2 ) ; \n + \n \n SINGLE \n + webapp . prependServerClass ( STRING3 ) ; \n + webapp . prependServerClass ( STRING4 ) ; \n + webapp . prependServerClass ( STRING5 ) ; \n webapp . addServerClass ( STRING6 ) ; \n webapp . addServerClass ( STRING7 ) ; \n webapp . addServerClass ( STRING8 ) ; \n webapp . addServerClass ( STRING9 ) ; \n - webapp . addServerClass ( STRING3 ) ; \n + \n } \n \n public static void initContext ( ContextHandler handler ) throws NamingException", "msg_token": "Ensure jetty cdi classes visible to weld"} {"diff": " public abstract class AbstractPrefField { \n return sharedPreferences . contains ( key ) ; \n } \n \n + public String key ( ) { \n + return this . key ; \n + } \n + \n public final void remove ( ) { \n apply ( edit ( ) . remove ( key ) ) ; \n }", "msg_token": "Expose the shared pref key"} {"diff": " public abstract class TitanTypeVertex extends CacheVertex implements InternalTyp \n \n \n @ override \n + public String toString ( ) { \n + return getName ( ) ; \n + } \n + \n + @ override \n public boolean isUnique ( Direction direction ) { \n return getDefinition ( ) . getValue ( TypeAttributeType . UNIQUENESS , boolean [ ] . class ) [ EdgeDirection . position ( direction ) ] ; \n } \n public abstract class TitanGraphTest extends TitanGraphTestCommon { \n assertTrue ( spouse . isUnique ( IN ) ) ; \n assertTrue ( spouse . isUnique ( OUT ) ) ; \n \n + assertEquals ( STRING0 , weight . toString ( ) ) ; \n + \n \n try { \n tx . makeKey ( STRING1 ) . dataType ( int . class ) . make ( ) ;", "msg_token": "toString on types returns the type s name instead of the vertex identifier"} {"diff": " public class EventRecurrence { \n return true ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean repeatsMonthlyOnDayCount ( ) { \n if ( this . freq != MONTHLY ) { \n return false ; \n public class EventRecurrence { \n return false ; \n } \n \n + if ( bydayNum [ NUMBER0 ] <= NUMBER0 ) { \n + return false ; \n + } \n + \n return true ; \n }", "msg_token": "Reduce definition of monthly rep test"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed Log class"} {"diff": " public class VerifyClass extends MatchingTask { \n log ( STRING0 + clazz + STRING1 ) ; \n } \n if ( verbose ) log ( method . name + method . desc ) ; \n - TraceMethodVisitor mv = new TraceMethodVisitor ( null ) { \n + \n + TraceMethodVisitor mv = new TraceMethodVisitor ( null ) ; \n + COMMENT \n public void visitMaxs ( int maxStack , int maxLocals ) { \n StringBuffer buffer = new StringBuffer ( ) ; \n for ( int i = NUMBER0 ; i < text . size ( ) ; ++ i ) { \n public class VerifyClass extends MatchingTask { \n } \n if ( verbose ) log ( buffer . toString ( ) ) ; \n } \n - } ; \n + COMMENT \n for ( int j = NUMBER0 ; j < method . instructions . size ( ) ; ++ j ) { \n Object insn = method . instructions . get ( j ) ; \n if ( insn instanceof AbstractInsnNode ) {", "msg_token": "comment out some of the logging to ensure the build even compiles"} {"diff": " public class BlockGenericPipe extends BlockContainer implements ITextureProvider \n \n Pipe dummyPipe = createPipe ( item . shiftedIndex ) ; \n if ( dummyPipe != null ) { \n - item . setTextureFile ( DefaultProps . TEXTURE_BLOCKS ) ; \n + item . setTextureFile ( dummyPipe . getTextureFile ( ) ) ; \n item . setTextureIndex ( dummyPipe . getTextureIndexForItem ( ) ) ; \n }", "msg_token": "Fixed hardcoded texturefile"} {"diff": " public class ProtoBufSerializerTest extends TestCase { \n \n private static class InvalidMessageWithParseFrom { \n \n - public static InvalidMessageWithParseFrom parseFrom ( byte [ ] bytes ) { \n + public static InvalidMessageWithParseFrom parseFrom ( @ suppresswarnings ( STRING0 ) byte [ ] bytes ) { \n return new InvalidMessageWithParseFrom ( ) ; \n } \n }", "msg_token": "Add SuppressWarnings unused to parseFrom where it s intentional"} {"diff": " public class LocationManagerService extends ILocationManager . Stub implements Run \n \n @ override \n public boolean isProviderEnabled ( String provider ) { \n - checkPermission ( ) ; \n + String perms = checkPermission ( ) ; \n if ( LocationManager . FUSED_PROVIDER . equals ( provider ) ) return false ; \n + if ( ACCESS_COARSE_LOCATION . equals ( perms ) && \n + ! isProviderAllowedByCoarsePermission ( provider ) ) { \n + throw new SecurityException ( STRING0 + provider + \n + STRING1 ) ; \n + } \n \n synchronized ( mLock ) { \n LocationProviderInterface p = mProvidersByName . get ( provider ) ;", "msg_token": "throw SecurityException in isProviderEnabled"} {"diff": " public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler < Ful \n \n SINGLE \n ChannelFuture sendFileFuture ; \n + ChannelFuture lastContentFuture ; \n if ( ctx . pipeline ( ) . get ( SslHandler . class ) == null ) { \n sendFileFuture = \n ctx . write ( new DefaultFileRegion ( raf . getChannel ( ) , NUMBER0 , fileLength ) , ctx . newProgressivePromise ( ) ) ; \n + SINGLE \n + lastContentFuture = ctx . writeAndFlush ( LastHttpContent . EMPTY_LAST_CONTENT ) ; \n } else { \n sendFileFuture = \n ctx . write ( new HttpChunkedInput ( new ChunkedFile ( raf , NUMBER0 , fileLength , NUMBER1 ) ) , \n ctx . newProgressivePromise ( ) ) ; \n + SINGLE \n + lastContentFuture = sendFileFuture ; \n } \n \n sendFileFuture . addListener ( new ChannelProgressiveFutureListener ( ) { \n public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler < Ful \n } \n } ) ; \n \n - SINGLE \n - ChannelFuture lastContentFuture = ctx . writeAndFlush ( LastHttpContent . EMPTY_LAST_CONTENT ) ; \n - \n SINGLE \n if ( ! HttpHeaderUtil . isKeepAlive ( request ) ) { \n SINGLE", "msg_token": "Do not write LastHttpContent twice in HttpStaticFileServer example"} {"diff": " public class OStorageLocal extends OStorageEmbedded { \n \n incrementVersion ( ) ; \n \n - SINGLE \n - \n return ppos . version ; \n \n } finally {", "msg_token": "removed comment parts"} {"diff": " import NAMESPACE ; \n COMMENT \n public class JacksonWithColumnsDatabind \n { \n - private final static String STD_DESC = STRING0 ; \n + private final static String STD_DESC = STRING1 ; \n \n public static void registerAll ( TestGroups groups ) \n { \n import NAMESPACE ; \n public class MsgPack \n { \n private final static String DESC = \n - STRING2 ; \n + STRING3 ; \n \n public static void register ( TestGroups groups ) { \n register ( groups . media , JavaBuiltIn . mediaTransformer ) ;", "msg_token": "fix a typo in descs"} {"diff": " public class AtmosphereResponse extends HttpServletResponseWrapper { \n COMMENT \n COMMENT \n public void closeStreamOrWriter ( ) { \n - if ( resource ( ) . transport ( ) != AtmosphereResource . TRANSPORT . WEBSOCKET ) { \n + if ( resource ( ) != null && resource ( ) . transport ( ) != AtmosphereResource . TRANSPORT . WEBSOCKET ) { \n try { \n boolean isUsingStream = ( Boolean ) request ( ) . getAttribute ( PROPERTY_USE_STREAM ) ; \n if ( isUsingStream ) {", "msg_token": "Fix possible NPE"} {"diff": " public abstract class HystrixCommandProperties { \n return this ; \n } \n \n - @ deprecated SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public Setter withExecutionIsolationThreadTimeoutInMilliseconds ( int value ) { \n this . executionTimeoutInMilliseconds = value ; \n return this ;", "msg_token": "Also update the HystrixCommandProperties Setter"} {"diff": " public class TestCaseWithConstructorInspection extends ClassInspection { \n if ( initializer . hasModifierProperty ( PsiModifier . STATIC ) ) { \n return ; \n } \n + if ( initializer . getParent ( ) instanceof PsiClass && \n + ! TestUtils . isJUnitTestClass ( ( PsiClass ) initializer . getParent ( ) ) ) { \n + return ; \n + } \n final PsiCodeBlock body = initializer . getBody ( ) ; \n if ( isTrivial ( body ) ) { \n return ;", "msg_token": "check initialization logic in initializer only for JUnit testcases"} {"diff": " public class SQLEditor extends SQLEditorBase implements \n @ override \n public String getName ( ) \n { \n - String name = lastGoodQuery == null ? null : lastGoodQuery . getQuery ( ) ; \n + String name = lastGoodQuery == null ? null : lastGoodQuery . getOriginalQuery ( ) ; \n if ( name == null ) { \n name = STRING0 ; \n }", "msg_token": "SQL editor results name fix show original query text"} {"diff": " public class VerticalGridPresenter extends Presenter { \n } ) ; \n } \n } \n + \n + @ override \n + public void onAttachedToWindow ( ItemBridgeAdapter . ViewHolder viewHolder ) { \n + viewHolder . itemView . setActivated ( true ) ; \n + } \n } ) ; \n }", "msg_token": "Set all views in a vertical grid to activated"} {"diff": " public class StorageExporter { \n writeElement ( serializer , CONNECTION_SECURITY_ELEMENT , incoming . connectionSecurity . name ( ) ) ; \n writeElement ( serializer , AUTHENTICATION_TYPE_ELEMENT , incoming . authenticationType ) ; \n writeElement ( serializer , USERNAME_ELEMENT , incoming . username ) ; \n - SINGLE \n - writeElement ( serializer , PASSWORD_ELEMENT , incoming . password ) ; \n + SINGLE \n + SINGLE \n \n Map < String , String > extras = incoming . getExtra ( ) ; \n if ( extras != null && extras . size ( ) > NUMBER0 ) { \n public class StorageExporter { \n writeElement ( serializer , CONNECTION_SECURITY_ELEMENT , outgoing . connectionSecurity . name ( ) ) ; \n writeElement ( serializer , AUTHENTICATION_TYPE_ELEMENT , outgoing . authenticationType ) ; \n writeElement ( serializer , USERNAME_ELEMENT , outgoing . username ) ; \n - SINGLE \n - writeElement ( serializer , PASSWORD_ELEMENT , outgoing . password ) ; \n + SINGLE \n + SINGLE \n \n extras = outgoing . getExtra ( ) ; \n if ( extras != null && extras . size ( ) > NUMBER0 ) {", "msg_token": "Don t export incoming outgoing server passwords"} {"diff": " public abstract class ValveBase extends LifecycleMBeanBase \n } \n \n \n + @ override \n + protected void initInternal ( ) throws LifecycleException { \n + super . initInternal ( ) ; \n + \n + containerLog = getContainer ( ) . getLogger ( ) ; \n + } \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix TCK failure"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class AggregateGroupedExchangeTest extends ContextTestSupport { \n SINGLE \n SINGLE \n from ( STRING0 ) \n - SINGLE \n - . aggregate ( constant ( true ) ) \n + SINGLE \n + . aggregate ( new GroupedExchangeAggregationStrategy ( ) ) . constant ( true ) \n SINGLE \n . completionTimeout ( NUMBER0 ) \n - SINGLE \n - . groupExchanges ( ) \n . to ( STRING1 ) ; \n SINGLE \n }", "msg_token": "Modified AggregateGroupedExchangeTest replacing deprecated"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class MultiTouchSupport { \n private double zoomRelative = NUMBER0 ; \n private PointF centerPoint = new PointF ( ) ; \n \n - private static final int mMoveZoomCenterSlop2 = ViewConfiguration . getScaledTouchSlop ( ) * ViewConfiguration . getScaledTouchSlop ( ) / NUMBER1 ; \n + private final int mMoveZoomCenterSlop2 = NUMBER2 ; \n private boolean mScrolling = false ; \n \n public boolean onTouchEvent ( MotionEvent event ) {", "msg_token": "use constant value to test"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7 \n xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \n \n xx xxx xxxxx xxxxxxxxxx \n - xx xxxxxxxxxxxxxxxxxxxxxxxxxx x \n + xx xxxxxxxxxxxxxxxxxxxxxxxxx \n + xx xxxxxxxxxxxxxxxxxxxxxxxxxxxx x \n \n xx xxx xxxxx xxxxxxx xxx xxxxx xx xx xxxxxxxxxx \n xx xxxx xxxx x xxxxx xxxxxx xxxxxx", "msg_token": "Fixed test code regression leading to StackOverflowError"} {"diff": " public class Preconditions { \n } \n \n public static int check3rcRegisterCount ( int registerCount ) { \n - if ( ( registerCount & NUMBER0 ) == NUMBER1 ) { \n + if ( ( registerCount & NUMBER0 ) != NUMBER1 ) { \n throw new IllegalArgumentException ( \n String . format ( STRING0 , registerCount ) ) ; \n }", "msg_token": "Fix Preconditions check3rcRegisterCount"} {"diff": " public class AddExchanges \n } \n } \n else { \n - if ( child . getProperties ( ) . isNodePartitionedOn ( partitioningRequirement ) ) { \n + if ( child . getProperties ( ) . isStreamPartitionedOn ( partitioningRequirement ) ) { \n return rebaseAndDeriveProperties ( node , child ) ; \n } \n else {", "msg_token": "Fix plan when stream partitioning and node partitioning differ"} {"diff": " public class Stores { \n COMMENT \n PersistentKeyValueFactory < K , V > disableLogging ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n PersistentKeyValueFactory < K , V > enableCaching ( ) ; \n COMMENT \n COMMENT", "msg_token": "add javadoc comment to PersistenKeyValueFactory enableCaching"} {"diff": " public class ServerFactory { \n handler . addServlet ( new ServletHolder ( new TaskServlet ( env . getTasks ( ) ) ) , STRING0 ) ; \n handler . addServlet ( new ServletHolder ( new AdminServlet ( ) ) , STRING1 ) ; \n \n - if ( config . getAdminPort ( ) == config . getPort ( ) ) { \n + if ( config . getAdminPort ( ) != NUMBER0 && config . getAdminPort ( ) == config . getPort ( ) ) { \n handler . setContextPath ( STRING2 ) ; \n handler . setConnectorNames ( new String [ ] { STRING3 } ) ; \n } else {", "msg_token": "Don t use the main port for admin if there s a dynamic admin port"} {"diff": " public class ShareProjectAction extends BasicAction { \n } catch ( SVNException e ) { \n error [ NUMBER0 ] = e ; \n } finally { \n + activeVcs . invokeRefreshSvnRoots ( true ) ; \n SvnWorkingCopyFormatHolder . setPresetFormat ( null ) ; \n } \n }", "msg_token": "after project share performing some actions remain disabled until project reopening"} {"diff": " public final class ClasspathModifierLifecycleParticipant extends AbstractMavenLi \n \n if ( addedJarFromLibs ) \n { \n - log . warn ( STRING0 \n - + STRING1 \n - + STRING2 ) ; \n + log . warn ( \n + STRING0 \n + + STRING1 \n + + STRING2 ) ; \n } \n log . debug ( STRING3 ) ; \n log . debug ( STRING4 ) ;", "msg_token": "Fixed checkstyle errors"} {"diff": " public class Configuration \n { \n if ( Item . itemsList [ x ] == null && ! configItems [ x ] ) \n { \n - prop . value = Integer . toString ( x ) ; \n + prop . value = Integer . toString ( x - ITEM_SHIFT ) ; \n configItems [ x ] = true ; \n return prop ; \n }", "msg_token": "Fix Configuration getItem to return pre shifted values suitible to pass into Item constructors"} {"diff": " import NAMESPACE ; \n COMMENT \n public class JavaFileIconPatcher implements FileIconPatcher { \n public Icon patchIcon ( final Icon baseIcon , final VirtualFile file , final int flags , final Project project ) { \n - if ( project == null || file . getFileType ( ) != StdFileTypes . JAVA ) { \n + if ( project == null ) { \n return baseIcon ; \n }", "msg_token": "Java file icon patcher to patch not only Java file icon"} {"diff": " public class Leg { \n COMMENT \n COMMENT \n @ xmlattribute \n - public boolean interlineWithPreviousLeg = false ; \n + public Boolean interlineWithPreviousLeg ; \n \n \n COMMENT", "msg_token": "only show interlineWithPreviousLeg where true"} {"diff": " public final class ServiceUtils { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ nonnull \n public static synchronized com . uwetrottmann . trakt5 . TraktV2 getTrakt ( Context context ) { \n + SINGLE \n + TraktCredentials traktCredentials = TraktCredentials . get ( context ) ; \n + if ( traktCredentials . hasCredentials ( ) \n + && TraktOAuthSettings . isTimeToRefreshAccessToken ( context ) ) { \n + traktCredentials . refreshAccessToken ( ) ; \n + } \n + \n if ( trakt == null ) { \n trakt = new SgTrakt ( context ) ; \n }", "msg_token": "Refresh the trakt access token if getting the new trakt"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( HazelcastParallelClassRunner . class ) \n - @ category ( QuickTest . class ) \n + @ category ( ProblematicTest . class ) \n public class SetTransactionTest { \n \n static HazelcastInstance instance1 ;", "msg_token": "Moved SetTransactionTest to problematic because of build timeout"} {"diff": " public class VirtualDirectoryImpl extends VirtualFileSystemEntry { \n \n private static final boolean IS_UNDER_TEAMCITY = System . getProperty ( STRING0 ) != null ; \n \n - private static final boolean SHOULD_NOT_PERFORM_ACCESS_CHECK = System . getProperty ( STRING1 ) != null ; \n + private static final boolean SHOULD_PERFORM_ACCESS_CHECK = System . getProperty ( STRING1 ) == null ; \n \n private static final boolean IS_UNIT_TESTS = ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ; \n \n public class VirtualDirectoryImpl extends VirtualFileSystemEntry { \n ApplicationManager . getApplication ( ) instanceof ApplicationImpl && \n ( ( ApplicationImpl ) ApplicationManager . getApplication ( ) ) . isComponentsCreated ( ) \n && \n - ! SHOULD_NOT_PERFORM_ACCESS_CHECK ) { \n + SHOULD_PERFORM_ACCESS_CHECK ) { \n NewVirtualFileSystem fileSystem = child . getFileSystem ( ) ; \n if ( fileSystem != LocalFileSystem . getInstance ( ) && fileSystem != JarFileSystem . getInstance ( ) ) { \n return ;", "msg_token": "removed double negation"} {"diff": " public class DisUnityProcessor implements Runnable , FileVisitor < Path > { \n if ( ! Files . exists ( outputDir ) ) { \n Files . createDirectory ( outputDir ) ; \n } \n + \n + action . setOutputDir ( outputDir ) ; \n } \n \n AssetBundle ab = new AssetBundle ( ) ;", "msg_token": "Fixed missing output dir for asset bundle processing"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n SINGLE \n int numExistingViews = layoutLikingAvatars . getChildCount ( ) ; \n if ( numExistingViews > avatarUrls . size ( ) ) { \n - int numToRemove = avatarUrls . size ( ) - numExistingViews ; \n - layoutLikingAvatars . removeViews ( numExistingViews , numToRemove ) ; \n + int numToRemove = numExistingViews - avatarUrls . size ( ) ; \n + layoutLikingAvatars . removeViews ( numExistingViews - numToRemove , numToRemove ) ; \n } \n \n int index = NUMBER0 ;", "msg_token": "Fixed ArrayIndexOutOfBoundsException in showLikingAvatars"} {"diff": " public class NotificationPanelView extends PanelView implements \n float notificationHeight = mNotificationStackScroller . getHeight ( ) \n - mNotificationStackScroller . getEmptyBottomMargin ( ) \n - mNotificationStackScroller . getTopPadding ( ) ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( mNotificationStackScroller . getNotGoneChildCount ( ) == NUMBER0 \n + && mShadeEmpty ) { \n + notificationHeight = mNotificationStackScroller . getEmptyShadeViewHeight ( ) \n + + mNotificationStackScroller . getBottomStackPeekSize ( ) \n + + mNotificationStackScroller . getCollapseSecondCardPadding ( ) ; \n + } \n float totalHeight = Math . max ( \n mQsMaxExpansionHeight + mNotificationStackScroller . getNotificationTopPadding ( ) , \n mClockPositionResult . stackScrollerPadding - mTopPaddingAdjustment ) \n public class NotificationStackScrollLayout extends ViewGroup \n return height ; \n } \n \n + public int getEmptyShadeViewHeight ( ) { \n + return mEmptyShadeView . getHeight ( ) ; \n + } \n + \n public float getBottomMostNotificationBottom ( ) { \n final int count = getChildCount ( ) ; \n float max = NUMBER0 ;", "msg_token": "Fix jump in two finger expand motion with no notifications"} {"diff": " public final class ThreadDeathWatcher { \n COMMENT \n COMMENT \n COMMENT \n - public boolean awaitInactivity ( long timeout , TimeUnit unit ) throws InterruptedException { \n + public static boolean awaitInactivity ( long timeout , TimeUnit unit ) throws InterruptedException { \n if ( unit == null ) { \n throw new NullPointerException ( STRING0 ) ; \n }", "msg_token": "Fix incorrect method signature of awaitInactivity"} {"diff": " public class RatpackChannelInitializer extends ChannelInitializer < SocketChannel > \n \n public void initChannel ( SocketChannel ch ) throws Exception { \n ChannelPipeline pipeline = ch . pipeline ( ) ; \n - \n pipeline . addLast ( STRING0 , new HttpRequestDecoder ( ) ) ; \n pipeline . addLast ( STRING1 , new HttpObjectAggregator ( NUMBER0 ) ) ; \n pipeline . addLast ( STRING2 , new HttpResponseEncoder ( ) ) ; \n pipeline . addLast ( STRING3 , new ChunkedWriteHandler ( ) ) ; \n pipeline . addLast ( STRING4 , nettyHandlerAdapter ) ; \n - \n - pipeline . channel ( ) . closeFuture ( ) . addListener ( new GenericFutureListener < Future < Void > > ( ) { \n - @ override \n - public void operationComplete ( Future < Void > future ) throws Exception { \n - System . err . println ( STRING5 ) ; \n - } \n - } ) ; \n - \n } \n }", "msg_token": "Remove nonsense printlns"} {"diff": " public class ContactAccessorSdk5 extends ContactAccessor { \n } \n return contact ; \n } \n - catch ( JSONException e ) { \n - Log . e ( LOG_TAG , e . getMessage ( ) , e ) ; \n - } \n - return contact ; \n - } \n - \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Weird merge error"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n final class InputStreamImageData extends ZLAndroidImageData { \n \n protected Bitmap decodeWithOptions ( BitmapFactory . Options options ) { \n final InputStream stream = myImage . inputStream ( ) ; \n - return stream != null ? BitmapFactory . decodeStream ( stream , new Rect ( ) , options ) : null ; \n + if ( stream == null ) { \n + return null ; \n + } \n + \n + final Bitmap bmp = BitmapFactory . decodeStream ( stream , new Rect ( ) , options ) ; \n + try { \n + System . err . println ( stream ) ; \n + stream . close ( ) ; \n + } catch ( IOException e ) { \n + } \n + return bmp ; \n } \n }", "msg_token": "closing input stream"} {"diff": " import NAMESPACE ; \n COMMENT \n public class WPMobileStatsUtil { \n \n - COMMENT \n - \n - public static final String StatsEventAppOpened = STRING0 ; \n - \n SINGLE \n public static final String StatsEventPostsOpened = STRING1 ; \n public static final String StatsEventPostsClosed = STRING2 ;", "msg_token": "Removing WPMobileStatsUtil unused event as it s a part of WPStats"} {"diff": " public class SIPCommunicator \n + STRING0 + File . separator \n + STRING1 ; \n if ( name == null ) \n - name = STRING2 ; \n + name = STRING3 ; \n } \n else if ( osName . startsWith ( STRING4 ) ) \n { \n public class SIPCommunicator \n if ( location == null ) \n location = System . getenv ( STRING5 ) ; \n if ( name == null ) \n - name = STRING2 ; \n + name = STRING3 ; \n } \n \n COMMENT", "msg_token": "Change default dir name if none is forced when running from source"} {"diff": " public class WriteConcernException extends MongoException { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public WriteConcernException ( final CommandResult commandResult ) { \n this ( commandResult . getCode ( ) , commandResult ) ; \n } \n public class WriteConcernException extends MongoException { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public CommandResult getCommandResult ( ) { \n return commandResult ; \n }", "msg_token": "Deprecated WriteConcernException constructor and getCommandResult method"} {"diff": " class ActionMenu implements SupportMenu { \n } \n \n public MenuItem findItem ( int id ) { \n - return mItems . get ( findItemIndex ( id ) ) ; \n + final int index = findItemIndex ( id ) ; \n + if ( index < NUMBER0 ) { \n + return null ; \n + } \n + \n + return mItems . get ( index ) ; \n } \n \n public MenuItem getItem ( int index ) { \n class ActionMenu implements SupportMenu { \n } \n \n public void removeItem ( int id ) { \n - mItems . remove ( findItemIndex ( id ) ) ; \n + final int index = findItemIndex ( id ) ; \n + if ( index < NUMBER0 ) { \n + return ; \n + } \n + \n + mItems . remove ( index ) ; \n } \n \n public void setGroupCheckable ( int group , boolean checkable ,", "msg_token": "follow Menu semantics when the item id does not exist"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FaunusTitanGraph extends StandardTitanGraph { \n } \n \n public FaunusVertex readFaunusVertex ( final Pair < ByteBuffer , SortedMap < ByteBuffer , IColumn > > row ) { \n - FaunusVertexRelationLoader loader = new FaunusVertexRelationLoader ( row . left . duplicate ( ) ) ; \n + FaunusVertexRelationLoader loader = new FaunusVertexRelationLoader ( IDHandler . getKeyID ( row . left . duplicate ( ) ) ) ; \n loadRelations ( new CassandraMapIterable ( row . right ) , loader , tx ) ; \n return loader . getVertex ( ) ; \n }", "msg_token": "Fixed offset issue in ByteBuffer"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public interface TestRunConfigurationReRunResponsible { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - @ notnull \n + @ nullable \n RunProfileState rerunTests ( @ notnull final Executor executor , @ notnull final ExecutionEnvironment environment , \n @ notnull Collection < PsiElement > failedTests ) throws ExecutionException ; \n }", "msg_token": "rerun failed tests env tests added"} {"diff": " public class AddColumnChangeTest extends AbstractChangeTest { \n ColumnConfig column = new ColumnConfig ( ) ; \n column . setName ( STRING0 ) ; \n column . setType ( STRING1 ) ; \n + \n + ConstraintsConfig constraints = new ConstraintsConfig ( ) ; \n + constraints . setPrimaryKey ( Boolean . FALSE ) ; \n + constraints . setNullable ( Boolean . FALSE ) ; \n + \n + column . setConstraints ( constraints ) ; \n + \n refactoring . setColumn ( column ) ; \n \n assertEquals ( STRING2 , refactoring . generateStatements ( new OracleDatabase ( ) ) [ NUMBER0 ] ) ;", "msg_token": "Fixed test failing in AddColumnChangeTest due to changes in method AddColumnChangeTest generateStatements"} {"diff": " public class EmulatorView extends View implements GestureDetector . OnGestureListe \n COMMENT \n private ColorScheme mColorScheme = BaseTextRenderer . defaultColorScheme ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - private Paint mCursorPaint ; \n - \n private Paint mForegroundPaint ; \n \n private Paint mBackgroundPaint ; \n public class EmulatorView extends View implements GestureDetector . OnGestureListe \n COMMENT \n public void attachSession ( TermSession session ) { \n mTextRenderer = null ; \n - mCursorPaint = new Paint ( ) ; \n - mCursorPaint . setARGB ( NUMBER0 , NUMBER1 , NUMBER1 , NUMBER1 ) ; \n mForegroundPaint = new Paint ( ) ; \n mBackgroundPaint = new Paint ( ) ; \n mTopRow = NUMBER2 ;", "msg_token": "Remove unused cursor member variables"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ModelSpecProcessor extends AbstractProcessor { \n } \n \n @ override \n + public Set < String > getSupportedOptions ( ) { \n + return Collections . singleton ( PLUGINS_KEY ) ; \n + } \n + \n + @ override \n public synchronized void init ( ProcessingEnvironment env ) { \n super . init ( env ) ;", "msg_token": "Explicitly declare squidbPlugins as a supported option in ModelSpecProcessor"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class App {", "msg_token": "Improve Fluent Interface Javadoc"} {"diff": " public class TypeMigrationLabeler { \n if ( usageInfo instanceof OverridenUsageInfo ) { \n final String migrationName = ( ( OverridenUsageInfo ) usageInfo ) . getMigrateMethodName ( ) ; \n if ( migrationName != null ) { \n - new RenameProcessor ( project , element , migrationName , false , false ) . run ( ) ; \n + ApplicationManager . getApplication ( ) . invokeLater ( ( ) - > new RenameProcessor ( project , element , migrationName , false , false ) . run ( ) ) ; \n } \n } \n }", "msg_token": "start rename method in read action"} {"diff": " public class IdeBackgroundUtil { \n PaintersHelper . initWallpaperPainter ( STRING0 , painters ) ; \n \n ApplicationInfoEx appInfo = ApplicationInfoEx . getInstanceEx ( ) ; \n - String path = UIUtil . isUnderDarcula ( ) ? appInfo . getEditorBackgroundImageUrl ( ) : null ; \n + String path = COMMENT null ; \n URL url = path == null ? null : appInfo . getClass ( ) . getResource ( path ) ; \n Image centerImage = url == null ? null : ImageLoader . loadFromUrl ( url ) ;", "msg_token": "remove editor background logo"} {"diff": " public class MaxCulMsgHandler implements CULListener { \n this . endOfQueueTransmit = this . lastTransmit ; \n } \n \n - COMMENT \n - SINGLE \n - SenderQueueItem qi = new SenderQueueItem ( ) ; \n - qi . msg = data ; \n - qi . expiry = new Date ( this . lastTransmit . getTime ( ) + MESSAGE_EXPIRY_PERIOD ) ; \n - this . pendingAckQueue . put ( qi . msg . msgCount , qi ) ; \n + if ( data . msgType != MaxCulMsgType . ACK ) \n + { \n + COMMENT \n + SINGLE \n + SenderQueueItem qi = new SenderQueueItem ( ) ; \n + qi . msg = data ; \n + qi . expiry = new Date ( this . lastTransmit . getTime ( ) + MESSAGE_EXPIRY_PERIOD ) ; \n + this . pendingAckQueue . put ( qi . msg . msgCount , qi ) ; \n + } \n } \n \n private void sendMessage ( BaseMsg msg )", "msg_token": "Don t expect an ACK response to an ACK"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class AllTypesRealmProxy extends AllTypes { \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class BooleansRealmProxy extends Booleans { \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class SimpleRealmProxy extends Simple {", "msg_token": "Updating unit tests of the annotation processor"} {"diff": " public class ExtensionAutoUpdate extends ExtensionAdaptor implements CheckForUpd \n \n if ( latestVersionInfo != null ) { \n AddOn addOn = latestVersionInfo . getAddOn ( ao . getId ( ) ) ; \n - if ( AddOn . InstallationStatus . DOWNLOADING == addOn . getInstallationStatus ( ) ) { \n + if ( addOn != null && AddOn . InstallationStatus . DOWNLOADING == addOn . getInstallationStatus ( ) ) { \n addOn . setInstallationStatus ( AddOn . InstallationStatus . INSTALLED ) ; \n } \n }", "msg_token": "Fix NullPointerException after installing an add on"} {"diff": " import NAMESPACE ; \n public class GestureController implements View . OnTouchListener { \n \n private static final float ZOOM_GESTURE_MIN_SPAN_DP = NUMBER0 f ; \n - private static final float FLING_COEFFICIENT = FLOAT0 ; \n + private static final float FLING_COEFFICIENT = FLOAT1 ; \n \n SINGLE \n private final float mZoomGestureMinSpan ;", "msg_token": "Making fling a bit faster"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class BloomFilterPostingsFormat extends PostingsFormat { \n \n @ override \n public long ramBytesUsed ( ) { \n - return RamUsageEstimator . sizeOf ( this ) ; \n + long size = delegateFieldsProducer . ramBytesUsed ( ) ; \n + for ( BloomFilter bloomFilter : bloomsByFieldName . values ( ) ) { \n + size += bloomFilter . getSizeInBytes ( ) ; \n + } \n + return size ; \n } \n - \n - \n } \n \n public static final class BloomFilteredTerms extends FilterAtomicReader . FilterTerms {", "msg_token": "fix computation of ram bytes used in bloom filter posting format"} {"diff": " public class SingleWindowContainer \n \n addConversationTab ( \n callPanel . getCallTitle ( ) , null , callPanel , true ) ; \n + \n + callPanel . requestFocus ( ) ; \n } \n \n COMMENT", "msg_token": "Explicitly request the focus in the call panel in single window mode"} {"diff": " public class MediaGalleryPickerActivity extends SherlockActivity implements Mult \n \n @ override \n public void onFailure ( ApiHelper . ErrorType errorType , String errorMessage , Throwable throwable ) { \n - if ( errorType == ApiHelper . ErrorType . NO_ERROR ) { \n + if ( errorType != ApiHelper . ErrorType . NO_ERROR ) { \n String message = errorType == ApiHelper . ErrorType . NO_UPLOAD_FILES_CAP \n ? getString ( R . string . media_error_no_permission ) \n : getString ( R . string . error_refresh_media ) ;", "msg_token": "Fix an errorType check"} {"diff": " public class RabbitMQFirehoseFactory implements FirehoseFactory < StringInputRowPa \n return config ; \n } \n \n - @ jsonproperty \n + @ jsonproperty ( STRING0 ) \n public JacksonifiedConnectionFactory getConnectionFactory ( ) \n { \n return connectionFactory ; \n public class HadoopTuningConfig implements TuningConfig \n return indexSpec ; \n } \n \n - @ jsonproperty \n + @ jsonproperty ( STRING1 ) \n public int getRowFlushBoundary ( ) \n { \n return rowFlushBoundary ; \n public class MoveTask extends AbstractFixedIntervalTask \n return TaskStatus . success ( getId ( ) ) ; \n } \n \n - @ jsonproperty \n + @ jsonproperty ( STRING2 ) \n public Map < String , Object > getTargetLoadSpec ( ) \n { \n return targetLoadSpec ; \n public class DefaultObjectMapper extends ObjectMapper \n configure ( MapperFeature . AUTO_DETECT_FIELDS , false ) ; \n configure ( MapperFeature . AUTO_DETECT_IS_GETTERS , false ) ; \n configure ( MapperFeature . AUTO_DETECT_SETTERS , false ) ; \n + configure ( MapperFeature . ALLOW_FINAL_FIELDS_AS_MUTATORS , false ) ; \n configure ( SerializationFeature . INDENT_OUTPUT , false ) ; \n }", "msg_token": "Change DefaultObjectMapper to NOT overwrite final fields unless explicitly asked to"} {"diff": " public class MultiPartInputStreamParser \n File f = new File ( _tmpDir , fileName ) ; \n if ( _file . renameTo ( f ) ) \n _file = f ; \n + else \n + throw new IOException ( STRING0 + _file . getName ( ) + STRING1 + fileName + STRING2 + _tmpDir . getAbsolutePath ( ) ) ; \n } \n }", "msg_token": "Throw exception if rename during Part write filename fails"} {"diff": " public class RestClientUtils { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void getNotification ( Map < String , String > params , String noteId , Listener listener , ErrorListener errorListener ) { \n + params . put ( STRING0 , NOTIFICATION_FIELDS ) ; \n + String path = String . format ( STRING1 , noteId ) ; \n + get ( path , params , null , listener , errorListener ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "added getNotification method to RestClientUtils in networking lib"} {"diff": " public class RPubsUploadDialog extends ModalDialogBase \n previewButton . addClickHandler ( new ClickHandler ( ) { \n @ override \n public void onClick ( ClickEvent event ) \n - { \n - String title = validateAndGetGeneratorTitle ( ) ; \n - if ( title == null ) \n - return ; \n - \n + { \n htmlGenerator_ . generateRPubsHtml ( \n - title , \n + titleTextBox_ . getText ( ) . trim ( ) , \n commentTextArea_ . getText ( ) . trim ( ) , \n new CommandWithArg < String > ( ) { \n @ override", "msg_token": "don t require title for preview"} {"diff": " public class DescriptorRendererImpl implements DescriptorRenderer { \n assert annotationClass != null ; \n \n if ( ! excludedAnnotationClasses . contains ( DescriptorUtils . getFQName ( annotationClass ) . toSafe ( ) ) ) { \n - builder . append ( renderType ( annotation . getType ( ) ) ) . append ( STRING0 ) ; \n + builder . append ( renderType ( annotation . getType ( ) ) ) ; \n + if ( verbose ) { \n + builder . append ( STRING1 ) . append ( StringUtil . join ( DescriptorUtils . getSortedValueArguments ( annotation ) , STRING2 ) ) . append ( STRING3 ) ; \n + } \n + builder . append ( STRING0 ) ; \n } \n } \n }", "msg_token": "Render annotation arguments"} {"diff": " final class WindowState implements WindowManagerPolicy . WindowState { \n } \n \n void applyDimLayerIfNeeded ( ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + final AppWindowToken token = mAppToken ; \n + if ( token != null && token . removed ) { \n + return ; \n + } \n + \n if ( ! mExiting && mAppDied ) { \n SINGLE \n mDisplayContent . mDimLayerController . applyDimAbove ( getDimLayerUser ( ) , mWinAnimator ) ;", "msg_token": "Fix crash on invalid dimlayer"} {"diff": " public class RefLogEntry implements Serializable , Comparable < RefLogEntry > { \n } \n \n public PersonIdent getAuthorIdent ( ) { \n + if ( getAuthorCount ( ) == NUMBER0 ) { \n + return getCommits ( ) . get ( NUMBER1 ) . getAuthorIdent ( ) ; \n + } \n return getCommitterIdent ( ) ; \n }", "msg_token": "Fixed reflog author"} {"diff": " public class CategoryREST extends AbstractREST { \n \n @ path ( STRING0 ) \n @ post \n - @ apioperation ( value = STRING1 , notes = STRING2 ) \n + @ apioperation ( value = STRING1 , notes = STRING2 , responseClass = STRING3 ) \n public Response addCategory ( @ apiparam ( required = true ) AddCategoryRequest req ) { \n Preconditions . checkNotNull ( req ) ; \n Preconditions . checkNotNull ( req . getName ( ) ) ; \n public class CategoryREST extends AbstractREST { \n } \n feedCategoryDAO . saveOrUpdate ( cat ) ; \n cache . invalidateUserRootCategory ( getUser ( ) ) ; \n - return Response . ok ( ) . build ( ) ; \n + return Response . ok ( cat . getId ( ) ) . build ( ) ; \n } \n \n @ post", "msg_token": "return newly created category id"} {"diff": " public class OnesideDiffChange { \n myViewer . applyChange ( OnesideDiffChange . this , sourceSide ) ; \n } \n } ) ; \n + SINGLE \n + SINGLE \n + myViewer . rediff ( ) ; \n } \n } ; \n } \n public class OnesideDiffViewer extends TextDiffViewerBase { \n \n SINGLE \n SINGLE \n - rediff ( ) ; \n + scheduleRediff ( ) ; \n } \n \n SINGLE", "msg_token": "oneside viewer do not rebuild diff in EDT on clicking chevrone button"} {"diff": " public final class DictionaryVectorizer extends AbstractJob implements Vectorize \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class DictionaryVectorizer extends AbstractJob implements Vectorize \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public static void createTermFrequencyVectors ( Path input , \n Path output ,", "msg_token": "Revert reorder javadoc paramter comments"} {"diff": " public class RoleHierarchyImpl implements RoleHierarchy { \n COMMENT \n COMMENT \n private void buildRolesReachableInOneStepMap ( ) { \n - String parsingRegex = STRING0 ; \n + String parsingRegex = STRING1 ; \n Pattern pattern = Pattern . compile ( parsingRegex ) ; \n \n Matcher roleHierarchyMatcher = pattern . matcher ( roleHierarchyStringRepresentation ) ;", "msg_token": "Expand regular expression used in hierarchical roles"} {"diff": " public interface FallbackFactory < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n T create ( Throwable cause ) ; \n final class HystrixInvocationHandler implements InvocationHandler { \n return super . getFallback ( ) ; \n } \n try { \n - Object fallback = fallbackFactory . create ( getFailedExecutionException ( ) ) ; \n + Object fallback = fallbackFactory . create ( getExecutionException ( ) ) ; \n Object result = fallbackMethodMap . get ( method ) . invoke ( fallback , args ) ; \n if ( isReturnsHystrixCommand ( method ) ) { \n return ( ( HystrixCommand ) result ) . execute ( ) ;", "msg_token": "Replaces getFailedExecutionException on getExecutionException for fallback factory"} {"diff": " public class BitmapDrawable extends Drawable { \n } \n \n @ override \n + public boolean isFilterBitmap ( ) { \n + return mBitmapState . mPaint . isFilterBitmap ( ) ; \n + } \n + \n + @ override \n public void setDither ( boolean dither ) { \n mBitmapState . mPaint . setDither ( dither ) ; \n invalidateSelf ( ) ; \n public class NinePatchDrawable extends Drawable { \n } \n \n @ override \n + public boolean isFilterBitmap ( ) { \n + if ( mPaint == null ) { \n + return false ; \n + } \n + return getPaint ( ) . isFilterBitmap ( ) ; \n + } \n + \n + @ override \n public void inflate ( Resources r , XmlPullParser parser , AttributeSet attrs , Theme theme ) \n throws XmlPullParserException , IOException { \n super . inflate ( r , parser , attrs , theme ) ;", "msg_token": "Add isFilterBitmap overrides where appropriate"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class SingleValueBlockWithSortedInvertedIndex implements Block { \n private final BlockId id ; \n private final ImmutableDictionaryReader dictionary ; \n private final ColumnMetadata columnMetadata ; \n - private List < Integer > filteredIds ; \n private Predicate p = null ; \n \n public SingleValueBlockWithSortedInvertedIndex ( BlockId id , FixedBitCompressedSVForwardIndexReader singleValueReader , \n public class SingleValueBlockWithSortedInvertedIndex implements Block { \n @ override \n public boolean applyPredicate ( Predicate predicate ) { \n p = predicate ; \n - filteredIds = DictionaryIdFilterUtils . filter ( predicate , dictionary ) ; \n return true ; \n }", "msg_token": "avoiding recomuting filteredIds twice"} {"diff": " public class CassandraTransaction extends AbstractStoreTransaction { \n Preconditions . checkArgument ( txh instanceof CassandraTransaction , STRING0 , txh . getClass ( ) . getName ( ) ) ; \n return ( CassandraTransaction ) txh ; \n } \n + \n + public String toString ( ) { \n + StringBuilder sb = new StringBuilder ( NUMBER0 ) ; \n + sb . append ( STRING1 ) ; \n + sb . append ( Integer . toHexString ( hashCode ( ) ) ) ; \n + sb . append ( STRING2 ) ; \n + sb . append ( read ) ; \n + sb . append ( STRING3 ) ; \n + sb . append ( write ) ; \n + sb . append ( STRING4 ) ; \n + return sb . toString ( ) ; \n + } \n }", "msg_token": "Customize CassandraTransaction toString"} {"diff": " public class GitBranchUiUtil { \n return currentBranch . getName ( ) ; \n } else { \n String currentRevision = repository . getCurrentRevision ( ) ; \n - return currentRevision != null ? currentRevision : STRING0 ; \n + return currentRevision != null ? currentRevision . substring ( NUMBER0 , NUMBER1 ) : STRING0 ; \n } \n }", "msg_token": "show small hash for the commit"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FilePropertyContainer { \n } \n filePropertiesMap . put ( propertyName , propertySpec . getPropertyFiles ( ) ) ; \n } \n - return filePropertiesMap ; \n + return ImmutableSortedMap . copyOf ( filePropertiesMap ) ; \n } \n \n protected static < T extends TaskPropertySpec & TaskPropertyBuilder > void ensurePropertiesHaveNames ( Iterable < T > properties ) {", "msg_token": "Make defensive copy of file properties"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GeneralPreferencesPane extends PreferencesPane \n public GeneralPreferencesPane ( RemoteFileSystemContext fsContext , \n FileDialogs fileDialogs , \n UIPrefs prefs , \n + final GlobalDisplay globalDisplay , \n SourceServerOperations server , \n final DefaultCRANMirror defaultCRANMirror ) \n { \n public class GeneralPreferencesPane extends PreferencesPane \n { \n String ver = Desktop . getFrame ( ) . chooseRVersion ( ) ; \n if ( ! StringUtil . isNullOrEmpty ( ver ) ) \n + { \n rVersion_ . setText ( ver ) ; \n + \n + globalDisplay . showMessage ( MessageDialog . INFO , \n + STRING0 , \n + STRING1 + \n + STRING2 ) ; \n + } \n } \n } ) ; \n rVersion_ . setWidth ( STRING3 ) ;", "msg_token": "notify user that they must quit and re open RStudio for version change to take effect"} {"diff": " public class IOBalancerStressTest extends HazelcastTestSupport { \n \n IMap < Integer , Integer > map = instance1 . getMap ( randomMapName ( ) ) ; \n \n - for ( int i = NUMBER0 ; map . size ( ) < NUMBER1 ; i ++ ) { \n - map . put ( i % NUMBER2 , i ) ; \n + for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n + map . put ( i , i ) ; \n } \n \n assertBalanced ( instance1 ) ;", "msg_token": "remove infinite loop from the test"} {"diff": " public class LayerDrawable extends Drawable implements Drawable . Callback { \n inflateLayers ( r , parser , attrs , theme ) ; \n \n ensurePadding ( ) ; \n - onStateChange ( getState ( ) ) ; \n } \n \n COMMENT \n public class LayerDrawable extends Drawable implements Drawable . Callback { \n } \n \n ensurePadding ( ) ; \n - onStateChange ( getState ( ) ) ; \n } \n \n @ override", "msg_token": "Don t change state when inflating LayerDrawable"} {"diff": " public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen \n bld . append ( s ) . append ( STRING0 ) ; \n } \n if ( ctx != null ) { \n - sendAlertToAndroidWear ( ctx , bld . toString ( ) ) ; \n + SINGLE \n } \n return ; \n } \n public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { \n mTts . speak ( bld . toString ( ) , TextToSpeech . QUEUE_ADD , params ) ; \n SINGLE \n } else if ( ctx != null && vrt . isMute ( ) ) { \n - sendAlertToAndroidWear ( ctx , bld . toString ( ) ) ; \n + SINGLE \n } \n }", "msg_token": "Remove not used Android Wear"} {"diff": " public class SubRectangularMatrixWithMaximumSum { \n \n \n public static void main ( String args [ ] ) { \n - int input [ ] [ ] = { { NUMBER0 , NUMBER1 , - NUMBER0 , - NUMBER2 , - NUMBER3 } , \n - { - NUMBER4 , - NUMBER5 , NUMBER2 , NUMBER1 , NUMBER0 } , \n - { NUMBER5 , NUMBER4 , NUMBER6 , NUMBER0 , NUMBER5 } , \n - { - NUMBER2 , - NUMBER0 , NUMBER0 , NUMBER7 , - NUMBER8 } } ; \n + int input [ ] [ ] = { { NUMBER1 , NUMBER0 , - NUMBER5 , - NUMBER2 , NUMBER9 } , \n + { NUMBER10 , NUMBER8 , NUMBER5 , NUMBER2 , NUMBER0 } , \n + { NUMBER1 , - NUMBER1 , - NUMBER0 , NUMBER2 , - NUMBER9 } , \n + { - NUMBER5 , NUMBER5 , NUMBER0 , NUMBER10 , NUMBER5 } } ; \n SubRectangularMatrixWithMaximumSum saw = new SubRectangularMatrixWithMaximumSum ( ) ; \n System . out . println ( saw . maxSum ( input ) ) ; \n }", "msg_token": "Changing example of max sum sub rectangular matrix question"} {"diff": " public class ConfigUpdateInstallReceiver extends BroadcastReceiver { \n SINGLE \n String currentHash = getCurrentHash ( getCurrentContent ( ) ) ; \n if ( ! verifyVersion ( currentVersion , altVersion ) ) { \n - EventLog . writeEvent ( EventLogTags . CONFIG_INSTALL_FAILED , \n - STRING0 ) ; \n + Slog . i ( TAG , STRING1 ) ; \n } else if ( ! verifyPreviousHash ( currentHash , altRequiredHash ) ) { \n EventLog . writeEvent ( EventLogTags . CONFIG_INSTALL_FAILED , \n STRING2 ) ;", "msg_token": "Remove logging for old version mismatches"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class StoreAccess \n } \n \n @ suppresswarnings ( STRING0 ) \n - protected void apply ( Processor processor , RecordStore < ? > store ) \n + protected void apply ( RecordStore . Processor processor , RecordStore < ? > store ) \n { \n processor . apply ( store , RecordStore . IN_USE ) ; \n }", "msg_token": "Removed unused imports"} {"diff": " public class AtmosphereFramework { \n interceptors . clear ( ) ; \n \n broadcasterFactory = null ; \n + arFactory = null ; \n annotationFound = false ; \n return this ; \n }", "msg_token": "Reset the AtmosphereFactory as well"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - class ControlFlowGraph < N > extends \n + public class ControlFlowGraph < N > extends \n LinkedDirectedGraph < N , ControlFlowGraph . Branch > { \n \n COMMENT", "msg_token": "Make ControlFlowGraph public"} {"diff": " public final class BlockIdTests { \n public void createBlockIdTest ( ) { \n Assert . assertEquals ( NUMBER0 , BlockId . createBlockId ( NUMBER1 , NUMBER2 ) ) ; \n Assert . assertEquals ( NUMBER2 , BlockId . createBlockId ( NUMBER3 , NUMBER2 ) ) ; \n + Assert . assertEquals ( NUMBER4 , BlockId . createBlockId ( NUMBER5 , NUMBER6 ) ) ; \n } \n \n @ test \n public final class BlockIdTests { \n Assert . assertEquals ( MAX_SEQUENCE_NUMBER , BlockId . getSequenceNumber ( NUMBER7 ) ) ; \n Assert . assertEquals ( NUMBER8 , BlockId . getContainerId ( NUMBER9 ) ) ; \n Assert . assertEquals ( MAX_SEQUENCE_NUMBER , BlockId . getSequenceNumber ( NUMBER9 ) ) ; \n + Assert . assertEquals ( NUMBER6 , BlockId . getContainerId ( NUMBER4 ) ) ; \n + Assert . assertEquals ( NUMBER6 , BlockId . getSequenceNumber ( NUMBER4 ) ) ; \n } \n \n @ test", "msg_token": "Add more block id test cases"} {"diff": " public class JetTestUtils { \n } \n \n public static String getFilePath ( File file ) { \n - return file . getPath ( ) . replaceAll ( STRING0 , STRING1 ) ; \n + return FileUtil . toSystemIndependentName ( file . getPath ( ) ) ; \n } \n \n public interface TestFileFactory < F > { \n public class JetTestUtils { \n Class < ? extends TestCase > [ ] innerClasses = innerClassesAnnotation == null ? NO_INNER_CLASSES : innerClassesAnnotation . value ( ) ; \n for ( Class < ? > innerClass : innerClasses ) { \n TestMetadata testMetadata = innerClass . getAnnotation ( TestMetadata . class ) ; \n - if ( testMetadata != null && testMetadata . value ( ) . equals ( testDataDir . getPath ( ) ) ) { \n + if ( testMetadata != null && testMetadata . value ( ) . equals ( getFilePath ( testDataDir ) ) ) { \n return ; \n } \n }", "msg_token": "Fix check of path separators in tests"} {"diff": " public class main { \n if ( commandLine . hasOption ( STRING0 ) ) { \n doDump = true ; \n disassemble = false ; \n - dumpFileName = commandLine . getOptionValue ( STRING1 , inputDexFileName + STRING2 ) ; \n + dumpFileName = commandLine . getOptionValue ( STRING0 , inputDexFileName + STRING2 ) ; \n } \n \n if ( commandLine . hasOption ( STRING3 ) ) {", "msg_token": "fixed an issue where D didn t use the specified file"} {"diff": " public class InterpreterFactory { \n InterpreterSetting setting = info . interpreterSettings . get ( k ) ; \n \n SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n SINGLE \n setting . getOption ( ) . setRemote ( true ) ;", "msg_token": "Fix code style"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n if ( pkg . mVersionCode < ps . versionCode ) { \n SINGLE \n SINGLE \n - logCriticalInfo ( Log . INFO , STRING0 + ps . name + STRING1 + scanFile \n + Slog . i ( TAG , STRING0 + ps . name + STRING1 + scanFile \n + STRING2 + ps . versionCode \n + STRING3 + pkg . mVersionCode ) ; \n if ( ! updatedPkg . codePath . equals ( scanFile ) ) {", "msg_token": "Reduce spammy PackageManager critical logs"} {"diff": " public interface AgentBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface AgentBuilder { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n REDEFINITION { \n @ override \n public interface AgentBuilder { \n } , \n \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n RETRANSFORMATION { \n @ override", "msg_token": "Added documentation to clarify use of redefinition from an agent"} {"diff": " public class ApplicationActionBarAdvisor extends ActionBarAdvisor \n helpMenu . add ( showHelpAction ) ; \n SINGLE \n SINGLE \n + helpMenu . add ( new Separator ( ) ) ; \n + helpMenu . add ( ActionUtils . makeCommandContribution ( getActionBarConfigurer ( ) . getWindowConfigurer ( ) . getWindow ( ) , STRING0 ) ) ; \n helpMenu . add ( ActionUtils . makeAction ( checkUpdatesAction , null , null , CoreMessages . actions_menu_check_update , null , null ) ) ; \n }", "msg_token": "Install information menu action"} {"diff": " public final class StripedExecutor implements Executor { \n \n for ( Worker worker : workers ) { \n worker . workQueue . clear ( ) ; \n + worker . interrupt ( ) ; \n } \n }", "msg_token": "StripedExecutor should interrupt worker threads during shutdown"} {"diff": " public class MultiUserChat { \n COMMENT \n COMMENT \n COMMENT \n - public void changeNickname ( Resourcepart nickname ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException , MucNotJoinedException { \n + public synchronized void changeNickname ( Resourcepart nickname ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException , MucNotJoinedException { \n StringUtils . requireNotNullOrEmpty ( nickname , STRING0 ) ; \n SINGLE \n SINGLE", "msg_token": "Synchronize MultiUserchat changeNickname Resourcepart"} {"diff": " public class BottomSheetBehavior < V extends View > extends CoordinatorLayout . Behav \n COMMENT \n COMMENT \n public final void setState ( @ state int state ) { \n + if ( mViewRef == null ) { \n + return ; \n + } \n V child = mViewRef . get ( ) ; \n if ( child == null ) { \n return ;", "msg_token": "Fix NPE when calling setState before onLayoutChild"} {"diff": " public class HistoryEntry { \n } \n \n public void addFile ( String file ) { \n - files . add ( file ) ; \n + if ( ! files . contains ( file ) ) { \n + files . add ( file ) ; \n + } \n } \n \n public List < String > getFiles ( ) { \n public class HistoryEntry { \n } \n \n public void addChangeRequest ( String changeRequest ) { \n - changeRequests . add ( changeRequest ) ; \n + if ( ! changeRequests . contains ( changeRequest ) ) { \n + changeRequests . add ( changeRequest ) ; \n + } \n } \n \n public List < String > getChangeRequests ( ) {", "msg_token": "Don t store multiple occurences of filenames or changerequests pr"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n COMMENT \n public class UpdateNumberOfReplicasTests extends AbstractSharedClusterTest { \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ test \n + @ awaitsfix ( bugUrl = STRING0 ) \n public void simpleUpdateNumberOfReplicasTests ( ) throws Exception { \n logger . info ( STRING1 ) ; \n prepareCreate ( STRING2 , NUMBER0 ) . execute ( ) . actionGet ( ) ;", "msg_token": "Take fragile test out of the loop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class MockMultipartFile implements MultipartFile { \n this ( name , originalFilename , contentType , FileCopyUtils . copyToByteArray ( contentStream ) ) ; \n } \n \n - \n public String getName ( ) { \n return this . name ; \n }", "msg_token": "Cleaning up unused imports"} {"diff": " public class ScheduledReporterTest { \n \n @ test \n public void pollsPeriodically ( ) throws Exception { \n - verify ( reporter , timeout ( NUMBER0 ) . times ( NUMBER1 ) ) . report ( \n + Thread . sleep ( NUMBER0 ) ; \n + verify ( reporter , times ( NUMBER1 ) ) . report ( \n map ( STRING0 , gauge ) , \n map ( STRING1 , counter ) , \n map ( STRING2 , histogram ) ,", "msg_token": "avoid intermediate checks of Mockito"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SourceCode { \n } catch ( Exception e ) { \n throw new RuntimeException ( STRING0 + getFileName ( ) + STRING1 + e . getMessage ( ) , e ) ; \n } finally { \n - try { \n - if ( lnr != null ) { \n - lnr . close ( ) ; \n - } \n - } catch ( Exception e ) { \n - throw new RuntimeException ( STRING0 + getFileName ( ) + STRING1 + e . getMessage ( ) , e ) ; \n - } \n + Closeables . closeQuietly ( lnr ) ; \n } \n } \n }", "msg_token": "Fix some quality flaws"} {"diff": " import NAMESPACE ; \n public class Response { \n \n COMMENT \n + @ getter \n @ xmlelement \n private HashMap < String , String > requestParameters ; \n private TripPlan plan ; \n public class Response { \n public Debug debug = null ; \n \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n private Response ( ) { } ; \n \n COMMENT", "msg_token": "Add request parameters back to JSON response"} {"diff": " public class KeyguardTransportControlView extends FrameLayout implements OnClick \n } \n \n @ override \n + protected void onSizeChanged ( int w , int h , int oldw , int oldh ) { \n + if ( mAttached ) { \n + int dim = Math . min ( NUMBER0 , Math . max ( w , h ) ) ; \n + if ( DEBUG ) Log . v ( TAG , STRING0 + dim ) ; \n + mAudioManager . remoteControlDisplayUsesBitmapSize ( mIRCD , dim , dim ) ; \n + } \n + } \n + \n + @ override \n public void onDetachedFromWindow ( ) { \n if ( DEBUG ) Log . v ( TAG , STRING1 ) ; \n super . onDetachedFromWindow ( ) ;", "msg_token": "Keyguard remote control display artwork size"} {"diff": " public class LeakHunter { \n cached = fields . isEmpty ( ) ? EMPTY_FIELD_ARRAY : fields . toArray ( new Field [ fields . size ( ) ] ) ; \n } \n catch ( IncompatibleClassChangeError e ) { \n - throw new RuntimeException ( STRING0 + aClass , e ) ; \n + SINGLE \n + SINGLE \n + cached = EMPTY_FIELD_ARRAY ; \n } \n catch ( SecurityException e ) { \n cached = EMPTY_FIELD_ARRAY ;", "msg_token": "suppressed IncompatibleClassChangeError in testProjectLeak"} {"diff": " public class GuardedDatabaseFactory implements GraphDatabaseFactory { \n @ override protected WrappedNode < WrappedGraphDatabase > node ( final Node node , boolean created ) { \n SINGLE \n guard . check ( ) ; \n + if ( node == null ) { \n + return null ; \n + } \n return new WrappedNode < WrappedGraphDatabase > ( this ) { \n @ override protected Node actual ( ) { \n return node ; \n public class GuardedDatabaseFactory implements GraphDatabaseFactory { \n protected WrappedRelationship < WrappedGraphDatabase > relationship ( final Relationship relationship , boolean created ) { \n SINGLE \n guard . check ( ) ; \n + if ( relationship == null ) { \n + return null ; \n + } \n return new WrappedRelationship < WrappedGraphDatabase > ( this ) { \n @ override protected Relationship actual ( ) { \n return relationship ;", "msg_token": "fix wrapping null nodes relationships that may occur on putIfAbsent"} {"diff": " public class ApacheAsyncHttpProvider implements AsyncHttpProvider < HttpClient > { \n } \n \n int requestTimeout = requestTimeout ( config , request . getPerRequestConfig ( ) ) ; \n - if ( config . getIdleConnectionTimeoutInMs ( ) > NUMBER0 ) { \n + if ( config . getIdleConnectionTimeoutInMs ( ) > NUMBER0 && requestTimeout != - NUMBER1 && requestTimeout < config . getIdleConnectionTimeoutInMs ( ) ) { \n idleConnectionTimeoutThread = new IdleConnectionTimeoutThread ( ) ; \n idleConnectionTimeoutThread . setConnectionTimeout ( config . getIdleConnectionTimeoutInMs ( ) ) ; \n idleConnectionTimeoutThread . addConnectionManager ( connectionManager ) ;", "msg_token": "Fix Thread Race between the two mechanism"} {"diff": " class LdapConfigUtils { \n if ( registry . containsBeanDefinition ( BeanIds . CONTEXT_SOURCE_SETTING_POST_PROCESSOR ) ) { \n if ( defaultNameRequired ) { \n BeanDefinition bd = registry . getBeanDefinition ( BeanIds . CONTEXT_SOURCE_SETTING_POST_PROCESSOR ) ; \n - bd . getPropertyValues ( ) . addPropertyValue ( STRING0 , defaultNameRequired ) ; \n + bd . getPropertyValues ( ) . addPropertyValue ( STRING0 , Boolean . valueOf ( defaultNameRequired ) ) ; \n } \n return ; \n } \n \n BeanDefinition bd = new RootBeanDefinition ( ContextSourceSettingPostProcessor . class ) ; \n registry . registerBeanDefinition ( BeanIds . CONTEXT_SOURCE_SETTING_POST_PROCESSOR , bd ) ; \n - bd . getPropertyValues ( ) . addPropertyValue ( STRING0 , defaultNameRequired ) ; \n + bd . getPropertyValues ( ) . addPropertyValue ( STRING0 , Boolean . valueOf ( defaultNameRequired ) ) ; \n } \n \n }", "msg_token": "Fixed autoboxing problem"} {"diff": " public class OrcFileStripeMergeRecordReader implements \n keyWrapper . setRowIndexStride ( reader . getRowIndexStride ( ) ) ; \n keyWrapper . setTypes ( reader . getTypes ( ) ) ; \n } else { \n + stripeIdx ++ ; \n continue ; \n } \n return true ;", "msg_token": "Alter table concatenate oparetor will cause duplicate data guoliming reviewed by Prasanth Jayachandran"} {"diff": " public class JavaScriptScriptSearchTests extends ElasticsearchIntegrationTest { \n \n logger . info ( STRING0 ) ; \n SearchResponse response = client ( ) . prepareSearch ( ) \n - . setQuery ( scriptQuery ( new Script ( STRING1 , ScriptService . ScriptType . INLINE , STRING2 , null ) ) ) \n + . setQuery ( scriptQuery ( new Script ( STRING1 , ScriptService . ScriptType . INLINE , STRING3 , null ) ) ) \n . addSort ( STRING4 , SortOrder . ASC ) \n - . addScriptField ( STRING5 , new Script ( STRING6 , ScriptService . ScriptType . INLINE , STRING2 , null ) ) \n + . addScriptField ( STRING5 , new Script ( STRING6 , ScriptService . ScriptType . INLINE , STRING3 , null ) ) \n . execute ( ) . actionGet ( ) ; \n \n assertThat ( response . getHits ( ) . totalHits ( ) , equalTo ( NUMBER0 ) ) ;", "msg_token": "TEST Fix JavaScript tests case matters here"} {"diff": " public class Blog { \n } \n \n public boolean checkCapability ( Capability capability ) { \n + SINGLE \n if ( capabilities == null || capabilities . isEmpty ( ) || capability == null ) { \n return false ; \n }", "msg_token": "Adds a helpful comment to checkCapability"} {"diff": " public class ObservableList implements List { \n private List values = new ArrayList ( ) ; \n \n public MultiElementRemovedEvent ( Object source , List values ) { \n - super ( source , ChangeType . oldValue , ChangeType . newValue , NUMBER0 , ChangeType . MULTI_ADD ) ; \n + super ( source , ChangeType . oldValue , ChangeType . newValue , NUMBER0 , ChangeType . MULTI_REMOVE ) ; \n if ( values != null ) { \n this . values . addAll ( values ) ; \n }", "msg_token": "Fix wrong event type in ObservableList MultiElementRemovedEvent"} {"diff": " public class DefaultPackageManagerIntentComparatorTest { \n public void canSustainConcurrentModification ( ) { \n final DefaultPackageManager . IntentComparator intentComparator = new DefaultPackageManager . IntentComparator ( ) ; \n \n - Intent mockedIntent1 = mock ( Intent . class ) ; \n - when ( mockedIntent1 . getAction ( ) ) . thenReturn ( STRING0 , ( String ) null ) ; \n - \n - Intent mockedIntent2 = mock ( Intent . class ) ; \n - when ( mockedIntent2 . getAction ( ) ) . thenReturn ( STRING1 , ( String ) null ) ; \n - \n - Assertions . assertThat ( intentComparator . compare ( mockedIntent1 , mockedIntent2 ) ) . isEqualTo ( - NUMBER0 ) ; \n + Intent intent1 = new Intent ( STRING0 ) ; \n + Intent intent2 = new Intent ( STRING1 ) ; \n + Assertions . assertThat ( intentComparator . compare ( intent1 , intent2 ) ) . isEqualTo ( - NUMBER0 ) ; \n } \n \n }", "msg_token": "Remove unnecessary Intent mocking"} {"diff": " public abstract class AbstractShortestPathTree implements ShortestPathTree { \n } \n \n @ override \n + public List < GraphPath > getPaths ( ) { \n + return getPaths ( rctx . target , true ) ; \n + } \n + \n + @ override \n public List < GraphPath > getPaths ( Vertex dest , boolean optimize ) { \n List < ? extends State > stateList = getStates ( dest ) ; \n if ( stateList == null ) \n public interface ShortestPathTree { \n COMMENT \n public List < GraphPath > getPaths ( Vertex dest , boolean optimize ) ; \n \n + COMMENT \n + public List < GraphPath > getPaths ( ) ; \n + \n public GraphPath getPath ( Vertex dest , boolean optimize ) ; \n \n COMMENT", "msg_token": "add method to fetch default paths from SPT based on routing context"} {"diff": " public class MUCPersistenceManager { \n STRING0 ; \n private static final String LOAD_HISTORY = \n STRING1 + \n - STRING2 ; \n + STRING3 ; \n private static final String LOAD_ALL_ROOMS = \n STRING4 + \n STRING5 + \n public class MUCPersistenceManager { \n STRING6 ; \n private static final String LOAD_ALL_HISTORY = \n STRING7 + \n - STRING8 ; \n + STRING9 ; \n private static final String UPDATE_ROOM = \n STRING10 + \n STRING11 +", "msg_token": "Fix room history retrieval"} {"diff": " public class FileMetadata implements BatchComponent { \n this . analysisMode = analysisMode ; \n } \n \n - private static abstract class CharHandler { \n + private abstract static class CharHandler { \n \n void handleAll ( char c ) { \n } \n public class FileMetadata implements BatchComponent { \n \n private static class LineHashComputer extends CharHandler { \n private final MessageDigest lineMd5Digest = DigestUtils . getMd5Digest ( ) ; \n - private final StringBuffer sb = new StringBuffer ( ) ; \n + private final StringBuilder sb = new StringBuilder ( ) ; \n private final LineHashConsumer consumer ; \n private int line = NUMBER0 ;", "msg_token": "Fix quality flaws"} {"diff": " public class Alert extends BaseIdentifiable implements Cloneable { \n } \n \n COMMENT \n - COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public String getAlertLabel ( Metric . Level level ) { \n return new StringBuilder ( ) \n . append ( getMetric ( ) . getName ( ) )", "msg_token": "Fix some quality flaws"} {"diff": " public final class ResourceUtils { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public static boolean isUnitTestClass ( Resource resource ) { \n + return isUnitTestFile ( resource ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean isUnitTestFile ( Resource resource ) { \n return Qualifiers . UNIT_TEST_FILE . equals ( resource . getQualifier ( ) ) ; \n }", "msg_token": "Replace isUnitTestClass by isUnitTestFile"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class GoModuleLibrariesInitializer implements ModuleComponent { \n } \n \n private boolean isAppropriateModule ( ) { \n - return ! myModule . isDisposed ( ) && ModuleUtil . getModuleType ( myModule ) == GoModuleType . getInstance ( ) ; \n + return ! myModule . isDisposed ( ) && ( PlatformUtils . isIntelliJ ( ) || ModuleUtil . getModuleType ( myModule ) == GoModuleType . getInstance ( ) ) ; \n } \n \n @ override", "msg_token": "Consider any module as an appropriate in little IDE"} {"diff": " public class AllocationService extends AbstractComponent { \n } \n \n private boolean reroute ( RoutingAllocation allocation ) { \n - Iterable < DiscoveryNode > dataNodes = allocation . nodes ( ) . dataNodes ( ) . values ( ) ; \n - \n boolean changed = false ; \n SINGLE \n changed |= deassociateDeadNodes ( allocation ) ;", "msg_token": "remove unused variable"} {"diff": " public class AppWidgetManager { \n COMMENT \n public List < AppWidgetProviderInfo > getInstalledProviders ( ) { \n try { \n - return sService . getInstalledProviders ( ) ; \n + List < AppWidgetProviderInfo > providers = sService . getInstalledProviders ( ) ; \n + for ( AppWidgetProviderInfo info : providers ) { \n + SINGLE \n + info . minWidth = \n + TypedValue . complexToDimensionPixelSize ( info . minWidth , mDisplayMetrics ) ; \n + info . minHeight = \n + TypedValue . complexToDimensionPixelSize ( info . minHeight , mDisplayMetrics ) ; \n + } \n + return providers ; \n } \n catch ( RemoteException e ) { \n throw new RuntimeException ( STRING0 , e ) ;", "msg_token": "Convert the minWidth and minHeight to device units when calling getInstalledProviders"} {"diff": " public class TachyonFS { \n ClientFileInfo info = null ; \n if ( ! fetch ) { \n info = mClientFileInfos . get ( fId ) ; \n - if ( info . blockIds . size ( ) <= blockIndex ) { \n + if ( ! info . isFolder ( ) && info . blockIds . size ( ) <= blockIndex ) { \n fetch = true ; \n } \n } \n public class TachyonFS { \n if ( info == null ) { \n throw new IOException ( STRING0 + fId + STRING1 ) ; \n } \n + if ( info . isFolder ( ) ) { \n + throw new IOException ( new FileDoesNotExistException ( STRING0 + fId + STRING2 ) ) ; \n + } \n if ( info . blockIds . size ( ) <= blockIndex ) { \n throw new IOException ( STRING3 + blockIndex + STRING4 + info ) ; \n }", "msg_token": "Fix the NPE in getClientBlockInfo while INode is a DIR"} {"diff": " public class StandardPipeline extends LifecycleBase \n if ( valve instanceof Contained ) { \n ( ( Contained ) valve ) . setContainer ( this . container ) ; \n } \n - if ( valve instanceof Lifecycle ) { \n + if ( getState ( ) . isAvailable ( ) && valve instanceof Lifecycle ) { \n try { \n ( ( Lifecycle ) valve ) . start ( ) ; \n } catch ( LifecycleException e ) { \n log . error ( STRING0 , e ) ; \n return ; \n } \n + SINGLE \n + registerValve ( valve ) ; \n } \n \n SINGLE", "msg_token": "Fix some inconsistencies identified during lifecycle refactoring for valves"} {"diff": " public class MessageParser extends AbstractParser implements OnMessagePacketRece \n return ; \n } \n \n - if ( extractChatState ( mXmppConnectionService . find ( account , counterpart . toBareJid ( ) ) , packet ) ) { \n + if ( ! isTypeGroupChat \n + && query == null \n + && extractChatState ( mXmppConnectionService . find ( account , counterpart . toBareJid ( ) ) , packet ) ) { \n mXmppConnectionService . updateConversationUi ( ) ; \n }", "msg_token": "don t handle chat states in muc or from archive"} {"diff": " public class DTree extends Iced { \n default : assert false : STRING0 + lmask + STRING1 + ab . position ( ) + STRING2 + Arrays . toString ( _bits ) ; \n } \n \n - if ( ! Double . isNaN ( row [ colId ] ) ) SINGLE \n + if ( ! Double . isNaN ( row [ colId ] ) ) { SINGLE \n if ( ( equal && ( ( float ) row [ colId ] ) == splitVal ) || \n ( ! equal && ( ( float ) row [ colId ] ) >= splitVal ) ) { \n ab . position ( ab . position ( ) + skip ) ; SINGLE \n lmask = rmask ; SINGLE \n } \n + } else { ab . position ( ab . position ( ) + skip ) ; lmask = rmask ; } \n if ( ( lmask & NUMBER0 ) == NUMBER0 ) return scoreLeaf ( ab ) ; \n } \n }", "msg_token": "Unify generated and interpreted code"} {"diff": " class ConsumerRepository < T > implements Iterable < ConsumerInfo > \n } \n } \n \n + @ override \n public Iterator < ConsumerInfo > iterator ( ) \n { \n return consumerInfos . iterator ( ) ;", "msg_token": "Add missing Override annotation"} {"diff": " public class RCompletionManager implements CompletionManager \n \n AutocompletionContext context = getAutocompletionContext ( ) ; \n \n - if ( ! input_ . hasSelection ( ) ) \n - { \n - Debug . log ( STRING0 ) ; \n - return false ; \n - } \n - \n context_ = new CompletionRequestContext ( invalidation_ . getInvalidationToken ( ) , \n selection , \n canAutoInsert ) ;", "msg_token": "remove old code path that was never touched"} {"diff": " public class SessionManagementFilter extends SpringSecurityFilter { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public void setInvalidSessionUrl ( String sessionTimeoutUrl ) { \n - this . invalidSessionUrl = sessionTimeoutUrl ; \n + public void setInvalidSessionUrl ( String invalidSessionUrl ) { \n + this . invalidSessionUrl = invalidSessionUrl ; \n } \n }", "msg_token": "Renamed setter argument to match property"} {"diff": " public class NameUtil { \n } \n \n if ( StringUtil . toLowerCase ( name . charAt ( nameIndex ) ) != StringUtil . toLowerCase ( myPattern [ patternIndex ] ) ) { \n + if ( Character . isDigit ( name . charAt ( nameIndex ) ) ) { \n + return matchName ( name , patternIndex , nameIndex + NUMBER0 ) ; \n + } \n return null ; \n }", "msg_token": "skip digits in matching"} {"diff": " public class InferenceIncorporationPhase { \n PsiType [ ] typeArgs = right . getParameters ( ) ; \n if ( parameters . length != typeArgs . length ) continue ; \n for ( int i = NUMBER0 ; i < typeArgs . length ; i ++ ) { \n - PsiType aType = typeArgs [ i ] ; \n - if ( aType instanceof PsiCapturedWildcardType ) { \n - aType = ( ( PsiCapturedWildcardType ) aType ) . getWildcard ( ) ; \n - } \n + final PsiType aType = typeArgs [ i ] ; \n final InferenceVariable inferenceVariable = mySession . getInferenceVariable ( parameters [ i ] ) ; \n LOG . assertTrue ( inferenceVariable != null ) ;", "msg_token": "stop opening during incorporation"} {"diff": " public class IndexShard extends AbstractIndexShardComponent { \n } finally { \n final Engine engine = this . currentEngineReference . getAndSet ( null ) ; \n try { \n - if ( flushEngine && this . flushOnClose ) { \n + if ( engine != null && flushEngine && this . flushOnClose ) { \n engine . flushAndClose ( ) ; \n } \n } finally { SINGLE", "msg_token": "Check engine reference for null before flushing"} {"diff": " public class DocumentImpl extends UserDataHolderBase implements DocumentEx { \n } \n assertInsideCommand ( ) ; \n \n + getLineSet ( ) ; SINGLE \n + \n DocumentEvent event = new DocumentEventImpl ( this , offset , oldString , newString , myModificationStamp , wholeTextReplaced ) ; \n \n if ( ! ShutDownTracker . isShutdownHookRunning ( ) ) { \n public class DocumentImpl extends UserDataHolderBase implements DocumentEx { \n try { \n if ( LOG . isDebugEnabled ( ) ) LOG . debug ( event . toString ( ) ) ; \n \n - synchronized ( myLineSetLock ) { \n - LineSet lineSet = myLineSet ; \n - if ( lineSet != null ) { \n - lineSet . changedUpdate ( event ) ; \n - } \n - } \n + getLineSet ( ) . changedUpdate ( event ) ; \n setModificationStamp ( newModificationStamp ) ; \n \n if ( ! ShutDownTracker . isShutdownHookRunning ( ) ) {", "msg_token": "initialize LineSet before document changes"} {"diff": " public class XmppConnectionService extends Service { \n } \n for ( Account account : getAccounts ( ) ) { \n if ( account . getStatus ( ) == Account . State . ONLINE ) { \n + account . deactivateGracePeriod ( ) ; \n XmppConnection connection = account . getXmppConnection ( ) ; \n if ( connection != null && connection . getFeatures ( ) . csi ( ) ) { \n connection . sendActive ( ) ;", "msg_token": "deactivate grace period when coming to foreground"} {"diff": " public class UnusedDefInspection extends GroovyLocalInspectionBase { \n PsiElement parent = element . getParent ( ) ; \n PsiElement toHighlight = null ; \n if ( parent instanceof GrAssignmentExpression ) { \n - toHighlight = ( ( GrAssignmentExpression ) parent ) . getRValue ( ) ; \n + toHighlight = ( ( GrAssignmentExpression ) parent ) . getLValue ( ) ; \n } if ( parent instanceof GrPostfixExpression ) { \n toHighlight = parent ; \n } \n if ( toHighlight == null ) toHighlight = element ; \n problemsHolder . registerProblem ( toHighlight , GroovyInspectionBundle . message ( STRING0 ) , ProblemHighlightType . LIKE_UNUSED_SYMBOL ) ; \n } else if ( element instanceof GrVariable ) { \n - problemsHolder . registerProblem ( ( ( GrVariable ) element ) . getInitializerGroovy ( ) , GroovyInspectionBundle . message ( STRING0 ) , ProblemHighlightType . LIKE_UNUSED_SYMBOL ) ; \n + problemsHolder . registerProblem ( ( ( GrVariable ) element ) . getNameIdentifierGroovy ( ) , GroovyInspectionBundle . message ( STRING0 ) , ProblemHighlightType . LIKE_UNUSED_SYMBOL ) ; \n } \n } \n return true ;", "msg_token": "highlight assigned unused variable instead of the value"} {"diff": " public final class Settings { \n public static final String VENDING_TOS_URL = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String VENDING_TOS_MISSING_URL = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add gservices flag for configuring the URL vending redirects to when TOS is inaccessible due to no bad network"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n networkSet . addAll ( Arrays . asList ( operators . split ( STRING0 ) ) ) ; \n if ( networkSet . isEmpty ( ) ) { \n _log . warn ( STRING1 + node . getId ( ) + STRING2 \n - + creativeName + STRING3 ) ; \n - continue ; \n + + creativeName + STRING4 ) ; \n + networkSet . add ( STRING5 ) ; SINGLE \n } \n BikeRentalStationVertex station = new BikeRentalStationVertex ( graph , STRING6 \n + node . getId ( ) , STRING7 + node . getId ( ) , node . getLon ( ) , \n public abstract class RentABikeAbstractEdge extends Edge { \n private boolean hasCompatibleNetworks ( Set < String > stationNetworks , Set < String > rentedNetworks ) { \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + if ( stationNetworks . contains ( STRING5 ) || rentedNetworks . contains ( STRING5 ) ) \n + return true ; \n return ! Sets . intersection ( stationNetworks , rentedNetworks ) . isEmpty ( ) ; \n } \n }", "msg_token": "handle stations w o networks"} {"diff": " public class PsiAnonymousClassImpl extends PsiClassImpl implements PsiAnonymousC \n PsiElement lastParent , \n @ notnull PsiElement place ) { \n if ( lastParent instanceof PsiExpressionList ) return true ; \n + \n + final PsiClassStub stub = getStub ( ) ; \n + if ( stub != null ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + return true ; \n + } \n + \n COMMENT \n && lastParent . getParent ( ) == this && lastParent == getBaseClassReference ( ) ) { \n return true ;", "msg_token": "do not load tree"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SmsSync extends PreferenceActivity { \n String getLastSyncText ( final long lastSync ) { \n return getString ( R . string . status_idle_details , \n lastSync < NUMBER0 ? getString ( R . string . status_idle_details_never ) : \n - new Date ( lastSync ) . toLocaleString ( ) ) ; \n + DateFormat . getDateTimeInstance ( ) . format ( new Date ( lastSync ) ) ) ; \n + \n } \n \n private void updateLastBackupTimes ( ) {", "msg_token": "Fix deprecation warning"} {"diff": " public enum ItemType { \n TYPE_DEBUG_INFO_ITEM ( NUMBER0 , STRING0 ) , \n TYPE_ANNOTATION_ITEM ( NUMBER1 , STRING1 ) , \n TYPE_ENCODED_ARRAY_ITEM ( NUMBER2 , STRING2 ) , \n - TYPE_ANNOTATIONS_DIRECTORY_ITEM ( NUMBER3 , STRING3 ) , \n - TYPE_MAP_ITEM ( - NUMBER4 , STRING4 ) , \n - TYPE_TYPE_ITEM ( - NUMBER4 , STRING5 ) , \n - TYPE_EXCEPTION_HANDLER_ITEM ( - NUMBER4 , STRING6 ) , \n - TYPE_ANNOTATION_SET_REF_ITEM ( - NUMBER4 , STRING7 ) ; \n + TYPE_ANNOTATIONS_DIRECTORY_ITEM ( NUMBER3 , STRING3 ) ; \n \n COMMENT \n private final static TreeMap < Integer , ItemType > itemTypeIntegerMap ;", "msg_token": "removed unneeded values in the ItemType enumeration"} {"diff": " public class WebsocketComponent extends DefaultComponent { \n \n @ override \n protected Endpoint createEndpoint ( String uri , String remaining , Map < String , Object > parameters ) throws Exception { \n - \n + SINGLE \n SSLContextParameters sslContextParameters = resolveAndRemoveReferenceParameter ( parameters , STRING0 , SSLContextParameters . class ) ; \n + if ( sslContextParameters == null ) { \n + sslContextParameters = resolveAndRemoveReferenceParameter ( parameters , STRING1 , SSLContextParameters . class ) ; \n + } \n Boolean enableJmx = getAndRemoveParameter ( parameters , STRING2 , Boolean . class ) ; \n String staticResources = getAndRemoveParameter ( parameters , STRING3 , String . class ) ; \n int port = extractPortNumber ( remaining ) ;", "msg_token": "deprecate the xxxRef options and provide the xxx option if it not exists yet work in progress"} {"diff": " public class IngestBootstrapper extends AbstractLifecycleComponent implements Cl \n this . pipelineStore = new PipelineStore ( settings , clusterService , transportService ) ; \n this . pipelineExecutionService = new PipelineExecutionService ( pipelineStore , threadPool ) ; \n \n - clusterService . add ( this ) ; \n + boolean isNoTribeNode = settings . getByPrefix ( STRING0 ) . getAsMap ( ) . isEmpty ( ) ; \n + if ( isNoTribeNode ) { \n + clusterService . add ( this ) ; \n + } \n } \n \n SINGLE", "msg_token": "Don t activate ingest on tribe nodes"} {"diff": " public class AttachmentMapper extends FieldMapper { \n try { \n parsedContent = parseWithTika ( content , metadata , indexedChars ) ; \n } catch ( Throwable e ) { \n - SINGLE \n - if ( e instanceof PrivilegedActionException ) { \n - e = e . getCause ( ) ; \n - } \n SINGLE \n if ( ! ignoreErrors ) { \n logger . trace ( STRING0 , e ) ;", "msg_token": "remove unnecessary unboxing we do that as impl detail in parseTika"} {"diff": " public class PhoneStatusBar extends BaseStatusBar implements DemoMode { \n private boolean mAutohideSuspended ; \n private int mStatusBarMode ; \n private int mNavigationBarMode ; \n - private boolean mScreenOn ; \n + private Boolean mScreenOn ; \n \n private final Runnable mAutohide = new Runnable ( ) { \n @ override \n public class PhoneStatusBar extends BaseStatusBar implements DemoMode { \n private void checkBarMode ( int mode , int windowState , BarTransitions transitions ) { \n final boolean imeVisible = ( mNavigationIconHints & NAVIGATION_HINT_BACK_ALT ) != NUMBER0 ; \n final int finalMode = imeVisible ? MODE_OPAQUE : mode ; \n - final boolean animate = mScreenOn && windowState != WINDOW_STATE_HIDDEN ; \n - transitions . transitionTo ( finalMode , animate ) ; \n + final boolean anim = ( mScreenOn == null || mScreenOn ) && windowState != WINDOW_STATE_HIDDEN ; \n + transitions . transitionTo ( finalMode , anim ) ; \n } \n \n private final Runnable mCheckBarModes = new Runnable ( ) {", "msg_token": "Don t disable animations until screen state is known"} {"diff": " public class PApplet implements PConstants { \n fileChooser . setDialogTitle ( prompt ) ; \n fileChooser . setFileSelectionMode ( JFileChooser . DIRECTORIES_ONLY ) ; \n if ( defaultSelection != null ) { \n - fileChooser . setSelectedFile ( defaultSelection ) ; \n + fileChooser . setCurrentDirectory ( defaultSelection ) ; \n } \n \n int result = fileChooser . showOpenDialog ( parentFrame ) ;", "msg_token": "Fix welcome directory picker"} {"diff": " public class HttpConnection implements Connection { \n throw new UnsupportedMimeTypeException ( STRING0 , \n contentType , req . url ( ) . toString ( ) ) ; \n \n + if ( contentType . startsWith ( STRING1 ) || xmlContentTypeRxp . matcher ( contentType ) . matches ( ) ) \n + req . parser ( Parser . xmlParser ( ) ) ; \n + \n res . charset = DataUtil . getCharsetFromContentType ( res . contentType ) ; SINGLE \n if ( conn . getContentLength ( ) != NUMBER0 ) { SINGLE \n InputStream bodyStream = null ;", "msg_token": "Use the XML parser if the MIME type matches an XML type"} {"diff": " public class XCameraDevice2 extends XHook { \n } \n \n public String getClassName ( ) { \n - return STRING0 ; \n + return STRING1 ; \n } \n \n SINGLE", "msg_token": "Fix new camera restrictions untested"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + \n import NAMESPACE ; \n \n public class IssueUpdater implements BatchComponent , ServerComponent { \n public class IssueUpdater implements BatchComponent , ServerComponent { \n return false ; \n } \n \n - public DefaultIssue setManualSeverity ( DefaultIssue issue , String severity ) { \n + public boolean setManualSeverity ( DefaultIssue issue , String severity ) { \n if ( ! issue . manualSeverity ( ) || ! Objects . equal ( severity , issue . severity ( ) ) ) { \n issue . setDiff ( STRING0 , issue . severity ( ) , severity ) ; \n issue . setSeverity ( severity ) ; \n issue . setManualSeverity ( true ) ; \n + return true ; \n } \n - return issue ; \n + return false ; \n } \n \n public boolean assign ( DefaultIssue issue , @ nullable String assignee ) {", "msg_token": "Fix IssueUpdater due to previous commit that forgot some files"} {"diff": " public class Capsule implements Runnable , InvocationHandler { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n protected JMXServiceURL startJMXServer ( ) { \n COMMENT", "msg_token": "Deprecate startJMXServer to exclude it from JavaDoc ci skip"} {"diff": " public class Help extends BasePresenter implements ShowHelpHandler \n view_ = view ; \n globalDisplay_ = globalDisplay ; \n events_ = events ; \n - commands_ = commands ; \n \n binder . bind ( commands , this ) ; \n \n public class Help extends BasePresenter implements ShowHelpHandler \n private boolean historyInitialized_ ; \n private GlobalDisplay globalDisplay_ ; \n private EventBus events_ ; \n - private Commands commands_ ; \n } \n import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class PresentationDispatcher", "msg_token": "eliminate eclipse warnings"} {"diff": " public final class PermissionCheckTest { \n } \n \n public static class FakeUserGroupsMapping implements GroupMappingService { \n - private HashMap < String , String > mUserGroups = new HashMap < String , String > ( ) ; \n + private HashMap < String , String > mUserGroups = new HashMap < > ( ) ; \n \n public FakeUserGroupsMapping ( ) { \n mUserGroups . put ( TEST_USER_ADMIN . getUser ( ) , TEST_USER_ADMIN . getGroups ( ) ) ;", "msg_token": "SMALLFIX Removed explicit type argument in PermissionCheckTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BasicMapTest extends HazelcastTestSupport { \n } \n \n @ test \n - @ category ( ProblematicTest . class ) \n public void testMapLoaderLoadUpdatingIndex ( ) throws Exception { \n MapConfig mapConfig = getInstance ( ) . getConfig ( ) . getMapConfig ( STRING0 ) ; \n List < MapIndexConfig > indexConfigs = mapConfig . getMapIndexConfigs ( ) ;", "msg_token": "moved problematic marker for testMapLoaderLoadUpdatingIndex"} {"diff": " public class TupleInfo \n public enum Type \n { \n FIXED_INT_64 ( SIZE_OF_LONG ) , \n - DOUBLE ( SIZE_OF_DOUBLE ) , \n - VARIABLE_BINARY ( - NUMBER0 ) ; \n + VARIABLE_BINARY ( - NUMBER0 ) , \n + DOUBLE ( SIZE_OF_DOUBLE ) ; \n \n private final int size ;", "msg_token": "Reorder TypeInfo Type enum so ordinals back to orginal value"} {"diff": " public final class TieredBlockStoreTests { \n } \n \n @ test \n - public void moveNonExistingBlock ( ) throws Exception { \n + public void moveNonExistingBlockTest ( ) throws Exception { \n mThrown . expect ( NotFoundException . class ) ; \n mThrown . expectMessage ( STRING0 + BLOCK_ID1 + STRING1 ) ;", "msg_token": "Changed test method name to be consistent"} {"diff": " public class PooledDataSource implements DataSource { \n \n protected void finalize ( ) throws Throwable { \n forceCloseAll ( ) ; \n + super . finalize ( ) ; \n } \n \n public < T > T unwrap ( Class < T > iface ) throws SQLException {", "msg_token": "Call super finalize per sonar"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public interface Promise < T > extends SuccessPromise < T > {", "msg_token": "Add mention of the exec harness for promises"} {"diff": " public abstract class DvcsCommitAdditionalComponent implements RefreshableOnComp \n \n @ nullable \n protected abstract String getLastCommitMessage ( @ notnull VirtualFile repo ) throws VcsException ; \n + \n + public boolean isAmend ( ) { \n + return myAmend . isSelected ( ) ; \n + } \n } \n public class CommitChangeListDialog extends DialogWrapper implements CheckinProj \n ProjectLevelVcsManager . getInstance ( project ) . getAllActiveVcss ( ) ) ; \n } \n \n + @ notnull \n + public List < RefreshableOnComponent > getAdditionalComponents ( ) { \n + return Collections . unmodifiableList ( myAdditionalComponents ) ; \n + } \n + \n public static void commitPaths ( final Project project , Collection < FilePath > paths , final LocalChangeList initialSelection , \n @ nullable final CommitExecutor executor , final String comment ) { \n final ChangeListManager manager = ChangeListManager . getInstance ( project ) ;", "msg_token": "extend API to add possibility for checkin handlers check if it is amending operation"} {"diff": " public abstract class LocalWorld { \n return false ; \n } \n \n - private class QueuedEffect implements Comparable < QueuedEffect > { \n + private class QueuedEffect implements Comparable < QueuedEffect > { \n private final Vector position ; \n private final int blockId ; \n private final double priority ; \n public abstract class Node implements RValue { \n } \n \n @ override \n - public int getPosition ( ) { \n + public final int getPosition ( ) { \n return position ; \n } \n }", "msg_token": "Made Node getPosition final and fixed some whitespace in LocalWorld"} {"diff": " public class PyIntroduceParameterHandler extends IntroduceHandler { \n } \n } . visitElement ( element ) ; \n } \n - return function != null && ! isResolvedToParameter ( element ) && isValid [ NUMBER0 ] ; \n + final PyStatement nonlocalStatement = \n + PsiTreeUtil . getParentOfType ( element , PyNonlocalStatement . class , PyGlobalStatement . class ) ; \n + return function != null && ! isResolvedToParameter ( element ) && isValid [ NUMBER0 ] && nonlocalStatement == null ; \n } \n return false ; \n }", "msg_token": "disable refactoring for nonlocal and global statements"} {"diff": " public class MapRouteInfoControl extends MapControls implements IRouteInformatio \n if ( selectFromMapTouch ) { \n LatLon latlon = tileBox . getLatLonFromPixel ( point . x , point . y ) ; \n selectFromMapTouch = false ; \n - SINGLE \n + SINGLE \n if ( selectFromMapForTarget ) { \n getTargets ( ) . navigateToPoint ( latlon , true , - NUMBER0 ) ; \n } else {", "msg_token": "amend bug description comment with latest test results"} {"diff": " public class ImmutableEnumChecker extends BugChecker implements ClassTreeMatcher \n this , \n state , \n STRING0 , \n - STRING1 ) \n + STRING2 ) \n . checkForImmutability ( Optional . of ( tree ) , ImmutableSet . of ( ) , getType ( tree ) ) ; \n \n if ( ! info . isPresent ( ) ) { \n public class ImmutableEnumCheckerTest { \n STRING3 , \n STRING4 , \n STRING5 , \n - STRING6 , \n + STRING7 \n + + STRING8 , \n STRING9 , \n STRING10 , \n STRING11 ,", "msg_token": "Update warning message for ImmutableEnumChecker"} {"diff": " public class IocVfs { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static void initWithoutPassword ( Activity activity ) { \n + init ( activity , null ) ; \n + } \n + COMMENT \n COMMENT \n COMMENT \n public static void init ( Context context , String password ) throws IllegalArgumentException { \n public class LockScreenActivity extends ThemeableActivity implements ICacheWordS \n if ( passphrase . isEmpty ( ) ) { \n SINGLE \n if ( Imps . setEmptyPassphrase ( this , false ) ) { \n - IocVfs . init ( this , STRING0 ) ; \n + IocVfs . initWithoutPassword ( this ) ; \n SINGLE \n afterCacheWordOpened ( ) ; \n } else { \n public class WelcomeActivity extends ThemeableActivity implements ICacheWordSubs \n else \n { \n if ( openEncryptedStores ( null , false ) ) { \n - IocVfs . init ( this , STRING0 ) ; \n + IocVfs . initWithoutPassword ( this ) ; \n } else { \n connectToCacheWord ( ) ; SINGLE \n }", "msg_token": "create IocVfs initWithoutPassword Context for when no password is set"} {"diff": " public class IdeaDependenciesProvider { \n Lists . newArrayList ( new IdeaScopeMappingRule ( STRING0 ) , new IdeaScopeMappingRule ( STRING1 ) ) ) ; \n } \n \n - Set < Dependency > provide ( final IdeaModule ideaModule ) { \n + public Set < Dependency > provide ( final IdeaModule ideaModule ) { \n getPath = new Transformer < FilePath , File > ( ) { \n @ nullable \n public FilePath transform ( File file ) { \n public class IdeaDependenciesProvider { \n return result ; \n } \n \n - Collection < UnresolvedIdeRepoFileDependency > getUnresolvedDependencies ( IdeaModule ideaModule ) { \n + public Collection < UnresolvedIdeRepoFileDependency > getUnresolvedDependencies ( IdeaModule ideaModule ) { \n return dependenciesExtractor . unresolvedExternalDependencies ( ideaConfigurations ( ideaModule ) , Collections . < Configuration > emptyList ( ) ) ; \n }", "msg_token": "Make entry methods of IdeaDependenciesProvider public"} {"diff": " public class ShardCompactionManager \n { \n TableMetadata metadata = getTableMetadata ( tableId ) ; \n List < ShardInfo > newShards = performCompaction ( transactionId , bucketNumber , shardUuids , metadata ) ; \n - shardManager . replaceShardUuids ( transactionId , tableId , metadata . getColumns ( ) , shardUuids , newShards ) ; \n log . info ( STRING0 , shardUuids , newShards . stream ( ) . map ( ShardInfo : : getShardUuid ) . collect ( toList ( ) ) ) ; \n + shardManager . replaceShardUuids ( transactionId , tableId , metadata . getColumns ( ) , shardUuids , newShards ) ; \n } \n \n private List < ShardInfo > performCompaction ( long transactionId , OptionalInt bucketNumber , Set < UUID > shardUuids , TableMetadata tableMetadata )", "msg_token": "Log compaction before we commit the transaction"} {"diff": " public class DeviceDiscoveryService extends Service { \n \n List < ScanFilter > filters = new ArrayList < > ( ) ; \n \n - ScanFilter . Builder builder = new ScanFilter . Builder ( ) \n + ScanFilter filter = new ScanFilter . Builder ( ) \n . setServiceData ( UriBeacon . URI_SERVICE_UUID , \n new byte [ ] { } , \n - new byte [ ] { } ) ; \n - filters . add ( builder . build ( ) ) ; \n + new byte [ ] { } ) \n + . build ( ) ; \n + \n + filters . add ( filter ) ; \n \n boolean started = getLeScanner ( ) . startScan ( filters , settings , mScanCallback ) ; \n Log . v ( TAG , started ? STRING0 : STRING1 ) ;", "msg_token": "Initialize the filter directly instead of initializing the builder first"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class NotificationManagerService extends INotificationManager . Stub \n mSound . setUsesWakeLock ( context ) ; \n mToastQueue = new ArrayList < ToastRecord > ( ) ; \n mHandler = new WorkerHandler ( ) ; \n + \n + StorageManager sm = ( StorageManager ) context . getSystemService ( Context . STORAGE_SERVICE ) ; \n + sm . registerListener ( new com . android . internal . app . StorageNotification ( context ) ) ; \n + \n mStatusBarService = statusBar ; \n statusBar . setNotificationCallbacks ( mNotificationCallbacks ) ;", "msg_token": "Add a listener for storage events"} {"diff": " public class UpdateEventHandler implements ISVNEventHandler { \n else if ( event . getContentsStatus ( ) == SVNStatusType . UNCHANGED && \n ( event . getPropertiesStatus ( ) == SVNStatusType . UNCHANGED || event . getPropertiesStatus ( ) == SVNStatusType . UNKNOWN ) ) { \n myText2 = SvnBundle . message ( STRING0 , displayPath ) ; \n + } else if ( SVNStatusType . INAPPLICABLE . equals ( event . getContentsStatus ( ) ) && \n + ( event . getPropertiesStatus ( ) == SVNStatusType . UNCHANGED || event . getPropertiesStatus ( ) == SVNStatusType . UNKNOWN ) ) { \n + myText2 = SvnBundle . message ( STRING0 , displayPath ) ; \n } \n else { \n myText2 = STRING1 ;", "msg_token": "UpdateProject Info view shows all folders as not in repository"} {"diff": " import NAMESPACE ; \n public class TSVSentenceIterator implements Iterator < Sentence > { \n \n COMMENT \n - enum SentenceField { \n + public enum SentenceField { \n ID , \n DEPENDENCIES_STANFORD , \n DEPENDENCIES_EXTRAS ,", "msg_token": "Updated TSViterator and created an asrelations processor"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import static NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import static NAMESPACE ;", "msg_token": "Added missing license headers"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n \n if ( networkMonitor != null ) { \n record = new OpenHABConfigurationRecord ( domain , STRING0 , STRING1 , true ) ; \n - if ( node . getHealState ( ) == null ) \n - record . value = STRING2 ; \n - else \n - record . value = node . getHealState ( ) ; \n - \n + record . value = networkMonitor . getNodeState ( nodeId ) ; \n records . add ( record ) ; \n }", "msg_token": "Change LastHeal to use NodeState"} {"diff": " public class DynamoBackedConfigurationTest { \n assertEquals ( STRING0 , test2 . get ( ) ) ; \n assertEquals ( STRING1 , test3 . get ( ) ) ; \n \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n \n assertEquals ( STRING2 , test1 . get ( ) ) ; \n assertEquals ( STRING3 , test2 . get ( ) ) ;", "msg_token": "Add longer sleep for timing sensitive test"} {"diff": " public class MimeHeader { \n String v = field . value ; \n \n if ( hasToBeEncoded ( v ) ) { \n - v = EncoderUtil . encodeEncodedWord ( field . value , Charset . forName ( mCharset ) ) ; \n + Charset charset = null ; \n + \n + if ( mCharset != null ) { \n + charset = Charset . forName ( mCharset ) ; \n + } \n + v = EncoderUtil . encodeEncodedWord ( field . value , charset ) ; \n } \n \n writer . write ( field . name + STRING0 + v + STRING1 ) ;", "msg_token": "Avoid IllegalArgumentException for Charset forName null"} {"diff": " public class Wallet implements Serializable , BlockChainListener { \n newBlockHashes . add ( b . getHeader ( ) . getHash ( ) ) ; \n } \n \n - boolean affectedUs = false ; \n - for ( Sha256Hash hash : Iterables . concat ( oldBlockHashes , newBlockHashes ) ) { \n - if ( mapBlockTx . get ( hash ) != null ) { \n - affectedUs = true ; \n - break ; \n - } \n - } \n - log . info ( affectedUs ? STRING0 : STRING1 ) ; \n - if ( ! affectedUs ) return ; \n - \n SINGLE \n SINGLE \n onWalletChangedSuppressions ++ ;", "msg_token": "remove the affectedUs check in reorganize"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n try { \n mDimSurface = new Surface ( session , NUMBER0 , - NUMBER1 , NUMBER2 , NUMBER2 , PixelFormat . OPAQUE , \n Surface . FX_SURFACE_DIM ) ; \n + mDimSurface . setAlpha ( FLOAT0 ) ; \n } catch ( Exception e ) { \n Log . e ( TAG , STRING0 , e ) ; \n }", "msg_token": "Set alpha value for newly created dim surface"} {"diff": " public class NotificationsPendingDraftsService extends Service { \n } else if ( draftPostsOlderThan3Days . size ( ) > NUMBER0 ) { \n long longestLivingDraft = NUMBER1 ; \n boolean onlyPagesFound = true ; \n + boolean doShowNotification = false ; \n for ( Post post : draftPostsOlderThan3Days ) { \n \n SINGLE \n if ( ( now - post . getDateLastNotified ( ) ) > MINIMUM_ELAPSED_TIME_BEFORE_REPEATING_NOTIFICATION ) { \n - if ( post . getDateLastNotified ( ) > longestLivingDraft ) { \n + \n + if ( post . getDateLastNotified ( ) >= longestLivingDraft ) { \n + doShowNotification = true ; \n longestLivingDraft = post . getDateLastNotified ( ) ; \n if ( ! post . isPage ( ) ) { \n onlyPagesFound = false ; \n public class NotificationsPendingDraftsService extends Service { \n \n SINGLE \n SINGLE \n - if ( longestLivingDraft > NUMBER1 ) { \n + if ( doShowNotification ) { \n buildPendingDraftsNotification ( draftPostsOlderThan3Days , onlyPagesFound ) ; \n } \n }", "msg_token": "made use of an explicit flag to know when the condition to show a notification is met"} {"diff": " public class RelativeLayout extends ViewGroup { \n SINGLE \n width += mPaddingRight ; \n \n - if ( mLayoutParams . width >= NUMBER0 ) { \n + if ( mLayoutParams != null && mLayoutParams . width >= NUMBER0 ) { \n width = Math . max ( width , mLayoutParams . width ) ; \n } \n \n public class RelativeLayout extends ViewGroup { \n SINGLE \n height += mPaddingBottom ; \n \n - if ( mLayoutParams . height >= NUMBER0 ) { \n + if ( mLayoutParams != null && mLayoutParams . height >= NUMBER0 ) { \n height = Math . max ( height , mLayoutParams . height ) ; \n }", "msg_token": "Check RelativeLayout s access of its own LayoutParams during measurement"} {"diff": " public class Transformer implements ClassFileTransformer \n byte [ ] bytes = cw . toByteArray ( ) ; \n { \n SINGLE \n + SINGLE \n } \n + return bytes ; \n + } \n + \n + private void debugSave ( final ClassNode classNode , final byte [ ] bytes ) \n + { \n try \n { \n Path path = Paths . get ( STRING0 + classNode . name + STRING1 ) ; \n Files . createDirectories ( path . getParent ( ) ) ; \n Files . write ( path , bytes ) ; \n - \n } \n catch ( IOException e ) \n { \n e . printStackTrace ( ) ; \n } \n - return bytes ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "disabling debug code"} {"diff": " public class HTreeMap2Test { \n assertEquals ( ZERO , engine . get ( m . expireHeads [ NUMBER0 ] , Serializer . LONG ) ) ; \n assertEquals ( ZERO , engine . get ( m . expireTails [ NUMBER0 ] , Serializer . LONG ) ) ; \n assertArrayEquals ( new int [ ] { } , getExpireList ( m , NUMBER0 ) ) ; \n + m . segmentLocks [ NUMBER0 ] . writeLock ( ) . unlock ( ) ; \n } \n \n @ test public void expire_link_test ( ) { \n public class HTreeMap2Test { \n \n assertEquals ( NUMBER1 , m . expireLinkRemove ( NUMBER2 , recids [ NUMBER3 ] ) . hash ) ; \n assertArrayEquals ( new int [ ] { NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 } , getExpireList ( m , NUMBER2 ) ) ; \n - \n + m . segmentLocks [ NUMBER2 ] . writeLock ( ) . unlock ( ) ; \n \n }", "msg_token": "add unlocking to prevent failing threads"} {"diff": " public class BTreeMapTest { \n new Object [ ] { null , NUMBER0 , NUMBER1 , NUMBER2 , null } , \n NUMBER3 ) ; \n long rootRecid = engine . put ( l , m . nodeSerializer ) ; \n - long rootRecidRef = engine . put ( rootRecid , Serializer . LONG_SERIALIZER ) ; \n + engine . update ( m . rootRecidRef , rootRecid , Serializer . LONG_SERIALIZER ) ; \n \n assertEquals ( null , m . get ( NUMBER4 ) ) ; \n assertEquals ( null , m . get ( NUMBER5 ) ) ;", "msg_token": "Fix wrong unit test"} {"diff": " public final class PrintManagerService extends IPrintManager . Stub { \n . queryIntentServicesAsUser ( intent , PackageManager . GET_SERVICES , \n getChangingUserId ( ) ) ; \n \n + if ( installedServices == null ) { \n + return ; \n + } \n + \n final int installedServiceCount = installedServices . size ( ) ; \n for ( int i = NUMBER0 ; i < installedServiceCount ; i ++ ) { \n ServiceInfo serviceInfo = installedServices . get ( i ) . serviceInfo ;", "msg_token": "PackageManager queryIntentServices breaks its contract"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n continue ; \n } \n if ( node == null ) { \n - throw new RuntimeException ( STRING0 ) ; \n + throw new RuntimeException ( STRING1 + nodeRef + STRING2 + areaWay . getId ( ) + STRING3 ) ; \n } \n Point point = new Point ( node . getLon ( ) , node . getLat ( ) ) ; \n nodes . add ( node ) ;", "msg_token": "Improve error message"} {"diff": " public class Etc1Texture extends ACompressedTexture { \n try { \n texture = ETC1Util . createTexture ( compressedTexture ) ; \n } catch ( IOException e ) { \n - Log . e ( STRING0 , e . getMessage ( ) ) ; \n + RajLog . e ( STRING0 , e . getMessage ( ) ) ; \n } finally { \n if ( texture == null ) { \n setBitmap ( fallbackTexture ) ; \n - Log . d ( STRING1 , STRING2 ) ; \n + RajLog . d ( STRING1 , STRING2 ) ; \n } else { \n setByteBuffer ( texture . getData ( ) ) ; \n setWidth ( texture . getWidth ( ) ) ; \n setHeight ( texture . getHeight ( ) ) ; \n - Log . d ( STRING1 , STRING3 ) ; \n + RajLog . d ( STRING1 , STRING3 ) ; \n } \n } \n }", "msg_token": "Convert library logging to use RajLog"} {"diff": " public class ObjectRange extends AbstractList implements Range { \n } \n \n private void constructorHelper ( Comparable from , Comparable to ) { \n + if ( from == null ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } \n + if ( to == null ) { \n + throw new IllegalArgumentException ( STRING1 ) ; \n + } \n if ( from . getClass ( ) == to . getClass ( ) ) { \n this . from = from ; \n this . to = to ;", "msg_token": "added better argument checking in range construction"} {"diff": " public final class PowerProvider { \n private SafeTimeTracker energyLossTracker = new SafeTimeTracker ( ) ; \n private SafeTimeTracker doWorkTracker = new SafeTimeTracker ( ) ; \n public final int [ ] powerSources = { NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 } ; \n - private final IPowerReceptor receptor ; \n + public final IPowerReceptor receptor ; \n \n public PowerProvider ( IPowerReceptor receptor ) { \n this ( receptor , true ) ;", "msg_token": "Make receptor public"} {"diff": " public final class BridgeContext extends Context { \n } \n SINGLE \n if ( typeArrayAndPropertiesPair . getSecond ( ) != null ) { \n - Object key = getCurrentParser ( ) . getViewCookie ( ) ; \n + BridgeXmlBlockParser parser = getCurrentParser ( ) ; \n + Object key = parser != null ? parser . getViewCookie ( ) : null ; \n if ( key != null ) { \n PropertiesMap defaultPropMap = mDefaultPropMaps . get ( key ) ; \n if ( defaultPropMap == null ) {", "msg_token": "Fix NPE when runnin testActivity"} {"diff": " import NAMESPACE ; \n public abstract class AnimationAdapter < T > extends ArrayAdapter < T > { \n \n private Context mContext ; \n + private Handler mHandler ; \n \n private ListView mListView ; \n \n public abstract class AnimationAdapter < T > extends ArrayAdapter < T > { \n public AnimationAdapter ( Context context , ArrayList < T > items ) { \n super ( items ) ; \n mContext = context ; \n + mHandler = new Handler ( ) ; \n \n mPreviousLastVisiblePosition = - NUMBER0 ; \n mAnimationStartMillis = - NUMBER0 ; \n public abstract class AnimationAdapter < T > extends ArrayAdapter < T > { \n animation . setStartTime ( mAnimationStartMillis ) ; \n animation . setStartOffset ( delayMillis ) ; \n \n - new Handler ( ) . postDelayed ( new Runnable ( ) { \n + mHandler . postDelayed ( new Runnable ( ) { \n \n @ override \n public void run ( ) {", "msg_token": "Reusing Handler instance"} {"diff": " public class SSLCertificateSocketFactory extends SSLSocketFactory { \n } \n } ; \n \n - private static final HostnameVerifier HOSTNAME_VERIFIER = \n - HttpsURLConnection . getDefaultHostnameVerifier ( ) ; \n - \n private SSLSocketFactory mInsecureFactory = null ; \n private SSLSocketFactory mSecureFactory = null ; \n private TrustManager [ ] mTrustManagers = null ; \n public class SSLCertificateSocketFactory extends SSLSocketFactory { \n if ( session == null ) { \n throw new SSLException ( STRING0 ) ; \n } \n - if ( ! HOSTNAME_VERIFIER . verify ( hostname , session ) ) { \n + if ( ! HttpsURLConnection . getDefaultHostnameVerifier ( ) . verify ( hostname , session ) ) { \n throw new SSLPeerUnverifiedException ( STRING1 + hostname ) ; \n } \n }", "msg_token": "Use hostname verifier directly instead of instance"} {"diff": " public class AttributeBinding extends BasePrimitiveBinding { \n throw new XmlSerializationException ( STRING0 + myAccessor ) ; \n } \n } \n + \n + public String toString ( ) { \n + return STRING1 + myName + STRING2 + myBinding + STRING3 ; \n + } \n }", "msg_token": "add toString to simplify debug"} {"diff": " public class CodeColorizersTest { \n CodeColorizers codeColorizers = new CodeColorizers ( Arrays . < CodeColorizerFormat > asList ( new JavaScriptColorizerFormat ( ) ) ) ; \n \n File fileWithBom = temp . newFile ( ) ; \n - FileUtils . write ( fileWithBom , STRING0 ) ; \n + FileUtils . write ( fileWithBom , STRING0 , STRING1 ) ; \n File jsFile = new File ( this . getClass ( ) . getResource ( STRING2 ) . toURI ( ) ) ; \n - FileUtils . write ( fileWithBom , FileUtils . readFileToString ( jsFile ) , true ) ; \n + FileUtils . write ( fileWithBom , FileUtils . readFileToString ( jsFile ) , STRING1 , true ) ; \n \n SyntaxHighlightingData syntaxHighlighting = codeColorizers . toSyntaxHighlighting ( fileWithBom , STRING1 , STRING3 ) ;", "msg_token": "Fix test on Windows"} {"diff": " public class CallPeerSipImpl \n . soundLevelChanged ( evt ) ; \n } \n } \n - \n } \n \n COMMENT", "msg_token": "Adds more code on dispatching audio level events"} {"diff": " public class FileFilter { \n } ; \n \n static final String [ ] ignoreTestList = { \n + STRING0 , SINGLE \n STRING1 , SINGLE \n STRING2 , SINGLE \n STRING3 , SINGLE \n + STRING4 , SINGLE \n STRING5 , SINGLE \n STRING6 , SINGLE \n - STRING7 , SINGLE \n - SINGLE \n - STRING8 , SINGLE \n - SINGLE \n - STRING9 , SINGLE \n - SINGLE \n - STRING10 , SINGLE \n - SINGLE \n - STRING0 , SINGLE \n - SINGLE \n + STRING10 , SINGLE \n + STRING7 , SINGLE \n + STRING8 , SINGLE \n + STRING9 , SINGLE \n } ; \n \n static void fillIgnoreResultList ( ) {", "msg_token": "Add fast js regexp overflow"} {"diff": " public class Utils { \n COMMENT \n COMMENT \n public static int [ ] mapping ( int [ ] dom ) { \n - assert dom . length > NUMBER0 : STRING0 ; \n + if ( dom . length == NUMBER0 ) return new int [ ] { } ; \n assert dom [ NUMBER0 ] <= dom [ dom . length - NUMBER1 ] : STRING1 ; \n int min = dom [ NUMBER0 ] ; \n int max = dom [ dom . length - NUMBER1 ] ;", "msg_token": "Permit empty domain in transforming into enum"} {"diff": " public class ModuleDeleteProvider implements DeleteProvider , TitledHandler { \n \n @ override \n public String getActionTitle ( ) { \n - return ProjectAttachProcessor . canAttachToProject ( ) ? STRING0 : STRING1 ; \n + return ProjectAttachProcessor . canAttachToProject ( ) ? STRING2 : STRING1 ; \n } \n \n public static void removeModule ( @ notnull final Module moduleToRemove ,", "msg_token": "close project remove from project view"} {"diff": " public class kNNClusterer extends Clusterer { \n } \n \n public boolean visit ( Project project , int rowIndex , Row row , boolean contextual ) { \n - Cell cell = row . cells . get ( _colindex ) ; \n + Cell cell = row . getCell ( _colindex ) ; \n if ( cell != null && cell . value != null ) { \n Object v = cell . value ; \n String s = ( v instanceof String ) ? ( ( String ) v ) : v . toString ( ) . intern ( ) ;", "msg_token": "fixed another NPE bug"} {"diff": " public class SvnChangeList implements CommittedChangeList { \n } \n \n myCommonPathRoot = commonPathSearcher . getCommon ( ) ; \n - \n - updateCachedInfo ( ) ; \n } \n \n public SvnChangeList ( SvnVcs vcs , @ notnull SvnRepositoryLocation location , DataInput stream , final boolean supportsCopyFromInfo ) throws IOException { \n public class SvnChangeList implements CommittedChangeList { \n commonPathSearcher . next ( path ) ; \n } \n myCommonPathRoot = commonPathSearcher . getCommon ( ) ; \n - updateCachedInfo ( ) ; \n } \n \n private void uploadDeletedRenamedChildren ( final List < Change > out ) {", "msg_token": "DirectoryIndexImpl checkAvailability SVN change list will go for VCS root only on request not in init stage"} {"diff": " public class JavaInMemoryFileManager extends ForwardingJavaFileManager < StandardJ \n private void createDirectory ( String name ) throws IOException { \n JavaFileObject fileObject = createJavaMemoryFileObject ( name , JavaFileObject . Kind . OTHER ) ; \n jarFileSemaphore . acquireUninterruptibly ( ) ; \n - jarOutputStream . putNextEntry ( createEntry ( fileObject . getName ( ) ) ) ; \n - jarOutputStream . closeEntry ( ) ; \n - jarFileSemaphore . release ( ) ; \n + try { \n + jarOutputStream . putNextEntry ( createEntry ( fileObject . getName ( ) ) ) ; \n + jarOutputStream . closeEntry ( ) ; \n + } finally { \n + jarFileSemaphore . release ( ) ; \n + } \n } \n \n private JavaFileObject createJavaMemoryFileObject ( String path , JavaFileObject . Kind kind ) {", "msg_token": "Fix a dangling semaphore"} {"diff": " public class StudyDocumentListener extends DocumentAdapter { \n if ( myTaskWindow != null ) { \n int newLength = myTaskWindow . getLength ( ) + change ; \n myTaskWindow . setLength ( newLength <= NUMBER0 ? NUMBER0 : newLength ) ; \n - if ( e . getNewFragment ( ) . equals ( STRING0 ) ) { \n - myTaskWindow . setLength ( myTaskWindow . getLength ( ) + NUMBER1 ) ; \n - } \n } \n int newEnd = offset + event . getNewLength ( ) ; \n int newLine = document . getLineNumber ( newEnd ) ;", "msg_token": "fixed task file wrong invalidation"} {"diff": " package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved documentation of LifeCycleAwareChannelHandler"} {"diff": " public class HttpRequest { \n return this ; \n if ( multipart ) \n output . write ( STRING0 + BOUNDARY + STRING1 ) ; \n - output . flush ( ) ; \n if ( ignoreCloseExceptions ) \n try { \n output . close ( ) ;", "msg_token": "Remove explicit flush of request output stream"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + SINGLE \n COMMENT \n COMMENT \n COMMENT \n class ThreadLocalRandom extends Random { \n \n private static final long serialVersionUID = - NUMBER0 ; \n } \n + SINGLE", "msg_token": "Disable Checkstyle for ThreadLocalRandom"} {"diff": " public final class Protocol { \n public static final String PUBSUB_NUMSUB = STRING0 ; \n public static final String PUBSUB_NUM_PAT = STRING1 ; \n \n + public static final byte [ ] BYTES_TRUE = toByteArray ( NUMBER0 ) ; \n + public static final byte [ ] BYTES_FALSE = toByteArray ( NUMBER1 ) ; \n + \n private Protocol ( ) { \n SINGLE \n } \n public final class Protocol { \n } \n \n public static final byte [ ] toByteArray ( final boolean value ) { \n - return toByteArray ( value ? NUMBER0 : NUMBER1 ) ; \n + return value ? BYTES_TRUE : BYTES_FALSE ; \n } \n \n public static final byte [ ] toByteArray ( final int value ) {", "msg_token": "Introduce two byte array for boolean true and false to avoid to create same byte array repeatedly"} {"diff": " public class PhoneStatusBarPolicy { \n int state = intent . getIntExtra ( BluetoothAdapter . EXTRA_STATE , BluetoothAdapter . ERROR ) ; \n mBluetoothEnabled = state == BluetoothAdapter . STATE_ON ; \n } else if ( action . equals ( BluetoothAdapter . ACTION_CONNECTION_STATE_CHANGED ) ) { \n - int state = intent . getIntExtra ( BluetoothAdapter . EXTRA_STATE , \n + int state = intent . getIntExtra ( BluetoothAdapter . EXTRA_CONNECTION_STATE , \n BluetoothAdapter . STATE_DISCONNECTED ) ; \n if ( state == BluetoothAdapter . STATE_CONNECTED ) { \n iconId = R . drawable . stat_sys_data_bluetooth_connected ;", "msg_token": "Query the correct Extra for BT intents"} {"diff": " public class CqlNativeStorage extends CqlStorage \n CqlConfigHelper . setInputMaxConnections ( conf , nativeMaxConnections ) ; \n if ( nativeMinSimultReqs != null ) \n CqlConfigHelper . setInputMinSimultReqPerConnections ( conf , nativeMinSimultReqs ) ; \n - if ( nativeMinSimultReqs != null ) \n - CqlConfigHelper . setInputMaxSimultReqPerConnections ( conf , nativeMaxSimultReqs ) ; \n if ( nativeConnectionTimeout != null ) \n CqlConfigHelper . setInputNativeConnectionTimeout ( conf , nativeConnectionTimeout ) ; \n if ( nativeReadConnectionTimeout != null )", "msg_token": "remove errant code block"} {"diff": " public class GCInspector \n \n if ( previousCount == null ) \n previousCount = NUMBER0 L ; \n - if ( count == previousCount ) \n + if ( count . equals ( previousCount ) ) \n continue ; \n \n gccounts . put ( gc . getName ( ) , count ) ;", "msg_token": "Fix divide by zero error in GCInspector"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - SINGLE \n public class QueryBuilder implements ConvertibleToDocument { \n private final Document query ; \n private String currentKey ;", "msg_token": "Removed outdated TODO"} {"diff": " public final class QuasarInstrumentor { \n } \n \n boolean shouldInstrument ( String className ) { \n - System . out . println ( STRING0 + className ) ; \n className = className . replace ( STRING1 , STRING2 ) ; \n if ( className . startsWith ( STRING3 ) ) \n return false ; \n public final class QuasarInstrumentor { \n return false ; \n if ( MethodDatabase . isJavaCore ( className ) ) \n return false ; \n - System . out . println ( STRING4 ) ; \n return true ; \n }", "msg_token": "Removed debug printlns"} {"diff": " public class JSONObject { \n } \n if ( object instanceof JSONObject || object instanceof JSONArray \n || NULL . equals ( object ) || object instanceof JSONString \n - || object instanceof Number || object instanceof Character \n - || object instanceof Boolean || object instanceof String \n - || object instanceof Enum ) { \n + || object instanceof Byte || object instanceof Character \n + || object instanceof Short || object instanceof Integer \n + || object instanceof Long || object instanceof Boolean \n + || object instanceof Float || object instanceof Double \n + || object instanceof String || object instanceof BigInteger \n + || object instanceof BigDecimal || object instanceof Enum ) { \n return object ; \n }", "msg_token": "revert back changes to Number support"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added missing header"} {"diff": " public class WebRuntimeActivity extends Activity \n \n @ override \n public void onPageFinished ( WebView view , String url ) { \n - if ( mSplashScreen . getVisibility ( ) == View . VISIBLE ) { \n + if ( mSplashScreen != null && mSplashScreen . getVisibility ( ) == View . VISIBLE ) { \n mSplashScreen . setVisibility ( View . GONE ) ; \n mSplashScreen = null ; \n }", "msg_token": "Fix NPE in the webruntime after the splash screen has been dismissed"} {"diff": " class DotComSiteSettings extends SiteSettingsInterface { \n mRemoteSettings . localTableId = mBlog . getRemoteBlogId ( ) ; \n deserializeDotComRestResponse ( mBlog , response ) ; \n if ( ! mRemoteSettings . equals ( mSettings ) ) { \n + SINGLE \n + final Map < String , String > currentPostFormats = mSettings . postFormats ; \n + final String [ ] currentPostFormatKeys = mSettings . postFormatKeys ; \n + \n mSettings . copyFrom ( mRemoteSettings ) ; \n + \n + mSettings . postFormats = currentPostFormats ; \n + mSettings . postFormatKeys = currentPostFormatKeys ; \n + \n SiteSettingsTable . saveSettings ( mSettings ) ; \n notifyUpdatedOnUiThread ( null ) ; \n }", "msg_token": "Keep postFormats since api call doesn t return it"} {"diff": " public class GroupReduceCompilationTest extends CompilerTestBase implements java \n \n SINGLE \n assertEquals ( DriverStrategy . ALL_GROUP_REDUCE , reduceNode . getDriverStrategy ( ) ) ; \n - assertEquals ( DriverStrategy . ALL_GROUP_REDUCE , combineNode . getDriverStrategy ( ) ) ; \n + assertEquals ( DriverStrategy . ALL_GROUP_COMBINE , combineNode . getDriverStrategy ( ) ) ; \n \n SINGLE \n assertEquals ( NUMBER0 , sourceNode . getDegreeOfParallelism ( ) ) ;", "msg_token": "Fix group reduce compilation test"} {"diff": " public final class SSL { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static native boolean hasOp ( int op ) ;", "msg_token": "Trailing whitespace police"} {"diff": " public class IndexCreator { \n \n SINGLE \n SINGLE \n - String file = STRING0 ; \n + String file = STRING1 ; \n int st = file . lastIndexOf ( STRING2 ) ; \n int e = file . indexOf ( STRING3 , st ) ; \n creator . setNodesDBFile ( new File ( STRING4 + file . substring ( st , e ) + STRING5 ) ) ; \n public class IndexRouteCreator extends AbstractIndexPartCreator { \n douglasPeukerSimplificationStep ( clusters ) ; \n \n SINGLE \n - removeSmall2RoadsConnectors ( clusters ) ; \n + SINGLE \n + SINGLE \n \n \n SINGLE", "msg_token": "Fix small parts delete"} {"diff": " public abstract class SharedTreeModelBuilder < TM extends DTree . TreeModel > extends \n _validAdapted = true ; \n SINGLE \n if ( _validMap != null ) { \n + assert _modelMap != null : STRING0 ; \n String vr = model . responseName ( ) ; \n - _adaptedValidationResponse = validation . vec ( vr ) . makeTransf ( _validMap ) ; SINGLE \n + Vec tmp = validation . vec ( vr ) . toEnum ( ) ; \n + _adaptedValidationResponse = tmp . makeTransf ( _validMap ) ; SINGLE \n _toDeleteFrame . add ( STRING1 , _adaptedValidationResponse ) ; SINGLE \n + _toDeleteFrame . add ( STRING2 , tmp ) ; \n } \n }", "msg_token": "Missing toEnum call for validation response"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectWizardStepFactoryImpl extends ProjectWizardStepFactory { \n } \n \n public ModuleWizardStep createNameAndLocationStep ( final WizardContext wizardContext ) { \n - return new ProjectNameStep ( wizardContext , null ) ; \n + return new ProjectNameStep ( wizardContext ) ; \n } \n \n COMMENT", "msg_token": "Wizard proposes wrong Project location"} {"diff": " public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr \n for ( OIdentifiable identifiable : indexResultSet ) { \n ORecord < ? > record = identifiable . getRecord ( ) ; \n SINGLE \n - if ( ( record != null ) && filter ( ( ORecordInternal < ? > ) record ) ) ) { \n + if ( ( record != null ) && filter ( ( ORecordInternal < ? > ) record ) ) { \n final boolean continueResultParsing = handleResult ( record ) ; \n if ( ! continueResultParsing ) \n break ;", "msg_token": "Fixed bug on pull req by Matt"} {"diff": " public class WalletProtobufSerializer { \n if ( extProto . getMandatory ( ) && requireMandatoryExtensions ) \n throw new UnreadableWalletException ( STRING0 + id ) ; \n else \n - log . error ( STRING1 , id , e ) ; \n + log . error ( STRING2 , id , e ) ; \n } \n } \n }", "msg_token": "Print full backtrace when a wallet extension fails to load"} {"diff": " public class MavenPluginDomUtil { \n File file = MavenArtifactUtil . getArtifactFile ( MavenProjectsManager . getInstance ( p ) . getLocalRepository ( ) , \n groupId , artifactId , version , STRING0 ) ; \n VirtualFile pluginFile = LocalFileSystem . getInstance ( ) . findFileByIoFile ( file ) ; \n - if ( pluginFile == null ) { \n - if ( ! file . exists ( ) ) return null ; \n - \n - pluginFile = LocalFileSystem . getInstance ( ) . refreshAndFindFileByIoFile ( file ) ; \n - if ( pluginFile == null ) return null ; \n - } \n + if ( pluginFile == null ) return null ; \n \n VirtualFile pluginJarRoot = JarFileSystem . getInstance ( ) . getJarRootForLocalFile ( pluginFile ) ; \n if ( pluginJarRoot == null ) return null ;", "msg_token": "don t refresh plugin jar in MavenPluginDomUtil getPluginXmlFile"} {"diff": " public abstract class ESSmokeClientTestCase extends LuceneTestCase { \n COMMENT \n public static final String TESTS_CLUSTER_DEFAULT = STRING0 ; \n \n - protected static ESLogger logger = ESLoggerFactory . getLogger ( ESSmokeClientTestCase . class . getName ( ) ) ; \n + protected static final ESLogger logger = ESLoggerFactory . getLogger ( ESSmokeClientTestCase . class . getName ( ) ) ; \n \n private static final AtomicInteger counter = new AtomicInteger ( ) ; \n private static Client client ;", "msg_token": "make logger final so its not detected as a static leak"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove useless import"} {"diff": " public final class AudioFormat implements Parcelable { \n public static final int ENCODING_AAC_HE_V2 = NUMBER0 ; \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static final int ENCODING_IEC61937 = NUMBER1 ; \n \n public class AudioTrack implements AudioRouting \n } \n mSampleRate = sampleRateInHz ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( audioFormat == AudioFormat . ENCODING_IEC61937 \n + && channelConfig != AudioFormat . CHANNEL_OUT_STEREO ) { \n + throw new IllegalArgumentException ( \n + STRING0 ) ; \n + } \n + \n SINGLE \n SINGLE \n mChannelConfiguration = channelConfig ;", "msg_token": "enforce use of CHANNEL_OUT_STEREO"} {"diff": " public class SuperRecyclerView extends FrameLayout { \n mMoreProgress . setVisibility ( View . GONE ) ; \n } \n \n + public void setRefreshing ( boolean refreshing ) { \n + mPtrLayout . setRefreshing ( refreshing ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add setRefreshing method"} {"diff": " public class ReactShadowNode extends CSSNode { \n return Assertions . assertNotNull ( mThemedContext ) ; \n } \n \n - protected void setThemedContext ( ThemedReactContext themedContext ) { \n + public void setThemedContext ( ThemedReactContext themedContext ) { \n mThemedContext = themedContext ; \n } \n \n public class UIImplementation { \n return mShadowNodeRegistry . getNode ( reactTag ) ; \n } \n \n + protected final ViewManager resolveViewManager ( String className ) { \n + return mViewManagers . get ( className ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class ReactTextInputShadowNode extends ReactTextShadowNode implements \n } \n \n @ override \n - protected void setThemedContext ( ThemedReactContext themedContext ) { \n + public void setThemedContext ( ThemedReactContext themedContext ) { \n super . setThemedContext ( themedContext ) ; \n \n SINGLE", "msg_token": "Add support for custom AndroidViews"} {"diff": " public class ThriftFactory < T > { \n private Amount < Long , Time > socketTimeout = null ; \n private Closure < Connection < TTransport , InetSocketAddress > > postCreateCallback = Closures . noop ( ) ; \n private StatsProvider statsProvider = Stats . STATS_PROVIDER ; \n - private Optional < String > endpointName ; \n + private Optional < String > endpointName = Optional . absent ( ) ; \n private String serviceName ; \n private boolean sslTransport ;", "msg_token": "Initialize endpointName to an empty Optional holder"} {"diff": " public abstract class BaseItem { \n return count ; \n } \n \n - public static int lengthOfUleb128 ( final int s ) { \n + public static int lengthOfUleb128 ( int value ) { \n + int remaining = value > > > NUMBER0 ; \n int length = NUMBER1 ; \n - if ( s > NUMBER2 ) { \n + while ( remaining != NUMBER3 ) { \n length ++ ; \n - if ( s > ( NUMBER4 ) ) { \n - length ++ ; \n - if ( s > ( NUMBER5 ) ) { \n - length ++ ; \n - if ( s > ( NUMBER6 ) ) { \n - length ++ ; \n - } \n - } \n - } \n + remaining > > >= NUMBER0 ; \n } \n return length ; \n }", "msg_token": "fix bug in lengthOfUleb128"} {"diff": " public class AboutSettingsFragment extends Fragment { \n } \n \n private void viewUrl ( @ stringres int urlResId ) { \n - Utils . launchWebsite ( getActivity ( ) , getString ( urlResId ) , STRING0 , STRING1 ) ; \n + Utils . launchWebsite ( getActivity ( ) , getString ( urlResId ) ) ; \n } \n }", "msg_token": "Remove About terms site event"} {"diff": " public class TaskAdapter extends CursorAdapter implements Filterable { \n new Class < ? > [ ] { Integer . TYPE , Integer . TYPE } , \n R . anim . slide_left_in , R . anim . slide_left_out ) ; \n } \n - } else { \n + } else if ( ! viewHolder . task . getFlag ( Task . FLAGS , Task . FLAG_IS_READONLY ) ) { \n SINGLE \n IntentFilter filter = new IntentFilter ( AstridApiConstants . BROADCAST_REQUEST_ACTIONS ) ; \n filter . setPriority ( - NUMBER0 ) ;", "msg_token": "Fixed a bug that could allow editing of readonly tasks suggested by Arne"} {"diff": " public class DeepWaterModel extends Model < DeepWaterModel , DeepWaterParameters , Dee \n _mb . perRow ( new double [ ] { predFloats [ j ] } , actual , weight , NUMBER0 COMMENT , DeepWaterModel . this ) ; \n } \n } \n + if ( _makePreds ) { \n + Futures fs = new Futures ( ) ; \n + for ( int i = NUMBER0 ; i < vw . length ; ++ i ) \n + vw [ i ] . close ( fs ) ; \n + fs . blockForPending ( ) ; \n + } \n \n obs += batch_size ; \n }", "msg_token": "Fix race condition of predictions made"} {"diff": " public class SingleRepositoryNode extends RepositoryNode { \n } \n \n @ override \n + public boolean isChecked ( ) { \n + return true ; \n + } \n + \n + @ override \n + public void fireOnSelectionChange ( boolean isSelected ) { \n + } \n + \n + @ override \n public void render ( @ notnull ColoredTreeCellRenderer renderer ) { \n renderer . setIcon ( myLoading . get ( ) ? myLoadingIcon : myEmptyIcon ) ; \n renderer . setIconOnTheRight ( false ) ;", "msg_token": "space should not toggle invisible checkbox in single repository mode"} {"diff": " public abstract class ExprNodeDesc implements Serializable , Node { \n \n SINGLE \n SINGLE \n - public static class ExprNodeDescEqualityWrapper { \n - private ExprNodeDesc exprNodeDesc ; \n + public final static class ExprNodeDescEqualityWrapper { \n + private final ExprNodeDesc exprNodeDesc ; \n + SINGLE \n + SINGLE \n + SINGLE \n + private final int hashcode ; \n \n public ExprNodeDescEqualityWrapper ( ExprNodeDesc exprNodeDesc ) { \n this . exprNodeDesc = exprNodeDesc ; \n + this . hashcode = exprNodeDesc == null ? NUMBER0 : exprNodeDesc . hashCode ( ) ; \n } \n \n public ExprNodeDesc getExprNodeDesc ( ) { \n return exprNodeDesc ; \n } \n \n - public void setExprNodeDesc ( ExprNodeDesc exprNodeDesc ) { \n - this . exprNodeDesc = exprNodeDesc ; \n - } \n - \n @ override \n public boolean equals ( Object other ) { \n \n public abstract class ExprNodeDesc implements Serializable , Node { \n \n @ override \n public int hashCode ( ) { \n - return exprNodeDesc == null ? NUMBER0 : exprNodeDesc . hashCode ( ) ; \n + return hashcode ; \n } \n \n COMMENT", "msg_token": "Avoid right leaning tree hashCode depth in ExprNodeDescEqualityWrapper hashmaps Gopal V reviewed by Ashutosh Chauhan"} {"diff": " public class ImmutableASTTransformation extends AbstractASTTransformation { \n \n private void createConstructorMap ( ClassNode cNode , List < PropertyNode > list , List < String > knownImmutableClasses , List < String > knownImmutables ) { \n final BlockStatement body = new BlockStatement ( ) ; \n + body . addStatement ( ifS ( equalsNullX ( varX ( STRING0 ) ) , assignS ( varX ( STRING0 ) , new MapExpression ( ) ) ) ) ; \n for ( PropertyNode pNode : list ) { \n body . addStatement ( createConstructorStatement ( cNode , pNode , knownImmutableClasses , knownImmutables ) ) ; \n } \n SINGLE \n body . addStatement ( stmt ( callX ( SELF_TYPE , STRING1 , args ( STRING2 , STRING0 ) ) ) ) ; \n - body . addStatement ( ifS ( equalsNullX ( varX ( STRING0 ) ) , assignS ( varX ( STRING0 ) , new MapExpression ( ) ) ) ) ; \n createConstructorMapCommon ( cNode , body ) ; \n if ( list . size ( ) > NUMBER0 ) { \n createNoArgConstructor ( cNode ) ;", "msg_token": "minor refactor improve null handling case"} {"diff": " public abstract class ImplTypeSchemaExtractionStrategySupport implements ModelSc \n Collection < Method > setterMethods = methodsByName . get ( setterName ) ; \n PropertyAccessorExtractionContext setterContext = ! setterMethods . isEmpty ( ) ? new PropertyAccessorExtractionContext ( setterMethods ) : null ; \n \n - ModelProperty < ? > property = extractPropertySchema ( extractionContext , propertyName , getterContext , setterContext , handledMethods ) ; \n + ModelProperty < ? > property = extractPropertySchema ( extractionContext , propertyName , getterContext , setterContext ) ; \n if ( property != null ) { \n properties . add ( property ) ; \n \n public abstract class ImplTypeSchemaExtractionStrategySupport implements ModelSc \n } \n \n @ nullable \n - private ModelProperty < ? > extractPropertySchema ( ModelSchemaExtractionContext < ? > extractionContext , String propertyName , PropertyAccessorExtractionContext getterContext , PropertyAccessorExtractionContext setterContext , Set < Method > handledMethods ) { \n + private < R > ModelProperty < ? > extractPropertySchema ( ModelSchemaExtractionContext < ? > extractionContext , String propertyName , PropertyAccessorExtractionContext getterContext , PropertyAccessorExtractionContext setterContext ) { \n SINGLE \n Method mostSpecificGetter = getterContext . getMostSpecificDeclaration ( ) ; \n if ( mostSpecificGetter . getParameterTypes ( ) . length != NUMBER0 ) {", "msg_token": "Removed unnecessary parameter"} {"diff": " public class Form { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setDefaultAnswer ( String variable ) { \n + if ( ! isSubmitType ( ) ) { \n + throw new IllegalStateException ( STRING0 + \n + STRING1 ) ; \n + } \n + FormField field = getField ( variable ) ; \n + if ( field != null ) { \n + SINGLE \n + field . resetValues ( ) ; \n + SINGLE \n + for ( Iterator it = field . getValues ( ) ; it . hasNext ( ) ; ) { \n + field . addValue ( ( String ) it . next ( ) ) ; \n + } \n + } \n + else { \n + throw new IllegalArgumentException ( STRING2 ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added setDefaultAnswer String to set the default value as the current value of a given field"} {"diff": " public final class SNDefWizardIterator implements WizardDescriptor . Instantiating \n \n SINGLE \n FileObject tplSnd = Templates . getTemplate ( wizard ) ; \n - FileObject tplShd = tplSnd . getParent ( ) . getChildren ( ) [ NUMBER0 ] ; \n + FileObject tplShd = tplSnd . getParent ( ) . getChildren ( ) [ NUMBER1 ] ; \n \n DataObject templateSnd = DataObject . find ( tplSnd ) ; \n DataObject templateShd = DataObject . find ( tplShd ) ;", "msg_token": "Fixed an issue where the shader cide template was not generated properly when creating a shader node definition"} {"diff": " public class VirtualFilePropertyEvent extends VirtualFileEvent { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ notnull \n public String getPropertyName ( ) {", "msg_token": "mention more properties in javadoc"} {"diff": " public abstract class NotificationListenerService extends Service { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public boolean matchesInterruptionFilter ( ) { \n return mMatchesInterruptionFilter ;", "msg_token": "Add a returns clause to the matchesInterruptionFilter javadoc"} {"diff": " abstract public class ReconConfig implements Jsonizable { \n mode = STRING0 + mode ; \n } \n \n + SINGLE \n List < Class < ? extends ReconConfig > > classes = s_opNameToClass . get ( mode ) ; \n if ( classes != null && classes . size ( ) > NUMBER0 ) { \n Class < ? extends ReconConfig > klass = classes . get ( classes . size ( ) - NUMBER1 ) ;", "msg_token": "Adding a TODO"} {"diff": " public class ClassLoaderLogManager extends LogManager { \n } \n } \n \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n int dotIndex = loggerName . lastIndexOf ( STRING0 ) ; \n while ( dotIndex >= NUMBER0 ) { \n final String parentName = loggerName . substring ( NUMBER0 , dotIndex ) ; \n - if ( getProperty ( parentName + STRING1 ) != null ) { \n - Logger . getLogger ( parentName ) ; \n - break ; \n - } \n + Logger . getLogger ( parentName ) ; \n dotIndex = loggerName . lastIndexOf ( STRING0 , dotIndex - NUMBER1 ) ; \n }", "msg_token": "When adding a logger its better to always add the parent loggers all the way up the chain"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n @ jsonsubtypes.type ( name = Query . TIMESERIES , value = TimeseriesQuery . class ) , \n @ jsonsubtypes.type ( name = Query . SEARCH , value = SearchQuery . class ) , \n @ jsonsubtypes.type ( name = Query . TIME_BOUNDARY , value = TimeBoundaryQuery . class ) , \n - @ jsonsubtypes.type ( name = STRING0 , value = GroupByQuery . class ) \n + @ jsonsubtypes.type ( name = STRING0 , value = GroupByQuery . class ) , \n + @ jsonsubtypes.type ( name = STRING1 , value = SegmentMetadataQuery . class ) \n } ) \n public interface Query < T > \n {", "msg_token": "add segmentMetadata query type"} {"diff": " public class CompilerUIConfigurable implements SearchableConfigurable , Configura \n controls . put ( Setting . RESOURCE_PATTERNS , \n ContainerUtilRt . < JComponent > newArrayList ( myResourcePatternsLabel , myResourcePatternsField , myPatternLegendLabel ) ) ; \n controls . put ( Setting . CLEAR_OUTPUT_DIR_ON_REBUILD , Collections . < JComponent > singleton ( myCbClearOutputDirectory ) ) ; \n - controls . put ( Setting . ADD_NOT_NULL_ASSERTIONS , Collections . < JComponent > singleton ( myCbAutoShowFirstError ) ) ; \n + controls . put ( Setting . ADD_NOT_NULL_ASSERTIONS , Collections . < JComponent > singleton ( myCbAssertNotNull ) ) ; \n controls . put ( Setting . AUTO_SHOW_FIRST_ERROR_IN_EDITOR , Collections . < JComponent > singleton ( myCbAutoShowFirstError ) ) ; \n controls . put ( Setting . EXTERNAL_BUILD , ContainerUtilRt . < JComponent > newArrayList ( myCbUseExternalBuild ) ) ; \n controls . put ( Setting . AUTO_MAKE , ContainerUtilRt . < JComponent > newArrayList ( myCbEnableAutomake , myEnableAutomakeLegendLabel ) ) ;", "msg_token": "Provide extension point for managing available settings"} {"diff": " public class HiveMetadata \n hiveBucketHandle . getColumns ( ) . stream ( ) \n . map ( HiveColumnHandle : : getHiveType ) \n . collect ( Collectors . toList ( ) ) ) ; \n - List < String > partitionColumns = hivePartitionResult . getPartitionColumns ( ) . stream ( ) \n + List < String > partitionColumns = hiveBucketHandle . getColumns ( ) . stream ( ) \n . map ( HiveColumnHandle : : getName ) \n . collect ( Collectors . toList ( ) ) ; \n return Optional . of ( new ConnectorNewTableLayout ( partitioningHandle , partitionColumns ) ) ; \n public class ClassLoaderSafeConnectorMetadata \n } \n \n @ override \n + public Optional < ConnectorNewTableLayout > getInsertLayout ( ConnectorSession session , ConnectorTableHandle tableHandle ) \n + { \n + try ( ThreadContextClassLoader ignored = new ThreadContextClassLoader ( classLoader ) ) { \n + return delegate . getInsertLayout ( session , tableHandle ) ; \n + } \n + } \n + \n + @ override \n public List < String > listSchemaNames ( ConnectorSession session ) \n { \n try ( ThreadContextClassLoader ignored = new ThreadContextClassLoader ( classLoader ) ) {", "msg_token": "Fix bug where hive bucket execution is not honored"} {"diff": " public class StandardEngine extends ContainerBase implements Engine { \n if ( defaultAccessLog == null ) { \n SINGLE \n Context context = ( Context ) host . findChild ( STRING0 ) ; \n - defaultAccessLog = context . getAccessLog ( ) ; \n + if ( context != null ) { \n + defaultAccessLog = context . getAccessLog ( ) ; \n + } \n \n if ( defaultAccessLog == null ) { \n defaultAccessLog = new NoopAccessLog ( ) ;", "msg_token": "Fix possible NPE"} {"diff": " public class ColibriIQProvider \n } \n break ; \n } \n - \n - case XmlPullParser . TEXT : \n - { \n - SINGLE \n - break ; \n - } \n } \n } \n } \n public class ColibriIQProvider \n } \n break ; \n } \n - \n - case XmlPullParser . TEXT : \n - { \n - SINGLE \n - break ; \n - } \n } \n } \n } \n public class ColibriIQProvider \n } \n break ; \n } \n - \n - case XmlPullParser . TEXT : \n - { \n - SINGLE \n - break ; \n - } \n } \n } \n }", "msg_token": "Removes unused case statements from ColibriIQ parsing code"} {"diff": " public class Observable < T > { \n subscriber = new SafeSubscriber < T > ( subscriber ) ; \n } \n \n - SINGLE \n + SINGLE \n + SINGLE \n try { \n SINGLE \n hook . onSubscribeStart ( observable , observable . onSubscribe ) . call ( subscriber ) ;", "msg_token": "Fix typo in a comment inside Observable subscribe"} {"diff": " public class HighlyAvailableGraphDatabase extends InternalAbstractGraphDatabase \n { \n for ( MemberIsAvailable member : item . getCurrentAvailableMembers ( ) ) \n { \n - if ( member . getRole ( ) . equals ( HighAvailabilityModeSwitcher . MASTER ) || member . getRole ( ) . equals ( HighAvailabilityModeSwitcher . SLAVE ) ) \n + if ( member . getRoleUri ( ) . getScheme ( ) . equals ( STRING0 ) ) \n { \n if ( HighAvailabilityModeSwitcher . getServerId ( member . getRoleUri ( ) ) == \n - config . get ( HaSettings . server_id ) ) \n + config . get ( HaSettings . server_id ) ) \n { \n msgLog . error ( String . format ( STRING1 , \n member . getRoleUri ( ) , config . get ( HaSettings . server_id ) ) ) ;", "msg_token": "More appropriate check for URI when joining a cluster verifying uniqueness of server ids"} {"diff": " public class MessagingController implements Runnable \n \n localFolder . open ( OpenMode . READ_WRITE ) ; \n \n - int localMessages = localFolder . getMessageCount ( ) ; \n - if ( localMessages > NUMBER0 ) \n + if ( localFolder . getMessageCount ( ) > NUMBER0 ) \n { \n return true ; \n }", "msg_token": "Kill a once used temporary variable"} {"diff": " public class ExpandWar { \n } \n \n SINGLE \n - docBase . mkdir ( ) ; \n + if ( ! docBase . mkdir ( ) && ! docBase . isDirectory ( ) ) \n + throw new IOException ( sm . getString ( STRING0 , docBase ) ) ; \n \n SINGLE \n String canonicalDocBasePrefix = docBase . getCanonicalPath ( ) ;", "msg_token": "Added check of return value for docBase mkdir"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove duplicate import"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class GitFileAnnotation implements FileAnnotation { \n + private final static Logger LOG = Logger . getInstance ( STRING0 ) ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class GitFileAnnotation implements FileAnnotation { \n COMMENT \n private void fireAnnotationChanged ( ) { \n myListeners . getMulticaster ( ) . onAnnotationChanged ( ) ; \n + LOG . debug ( STRING1 , new Throwable ( ) ) ; \n } \n \n COMMENT", "msg_token": "debug for annotation changed source"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class NEDGraphBuilderImpl implements GraphBuilder { \n if ( ee . getElevationProfile ( ) != null ) { \n COMMENT \n } \n + Vertex fromv = ee . getFromVertex ( ) ; \n + if ( fromv instanceof StreetVertex ) { \n + StreetVertex sv = ( ( StreetVertex ) fromv ) ; \n + if ( ! sv . getPermission ( ) . allows ( StreetTraversalPermission . BICYCLE ) ) { \n + COMMENT \n + return ; \n + } \n + } \n Geometry g = ee . getGeometry ( ) ; \n Coordinate [ ] coords = g . getCoordinates ( ) ;", "msg_token": "do not compute elevation for non bikeable trails"} {"diff": " import NAMESPACE ; \n public class EntityBeanHomeRemoveByHandleInterceptorFactory implements InterceptorFactory { \n public static final EntityBeanHomeRemoveByHandleInterceptorFactory INSTANCE = new EntityBeanHomeRemoveByHandleInterceptorFactory ( ) ; \n \n - public Interceptor create ( InterceptorFactoryContext context ) { \n + public Interceptor create ( final InterceptorFactoryContext context ) { \n return new AbstractEJBInterceptor ( ) { \n - public Object processInvocation ( InterceptorContext interceptorContext ) throws Exception { \n - EJBHandle handle = null ; \n + public Object processInvocation ( final InterceptorContext interceptorContext ) throws Exception { \n + final EJBHandle handle = ( EJBHandle ) interceptorContext . getParameters ( ) [ NUMBER0 ] ; \n handle . getEJBObject ( ) . remove ( ) ; \n return null ; \n }", "msg_token": "Fix remove interceptor"} {"diff": " public class AggregationTest extends TestBase { \n getDs ( ) . save ( new User ( STRING0 , format . parse ( STRING1 ) , STRING2 , STRING3 ) , \n new User ( STRING4 , format . parse ( STRING5 ) , STRING6 , STRING2 , STRING7 ) ) ; \n \n - AggregationOptions options = AggregationOptions . builder ( ) \n - . outputMode ( AggregationOptions . OutputMode . CURSOR ) \n - . build ( ) ; \n MorphiaIterator < User , User > aggregate = getDs ( ) . < User , User > createAggregation ( User . class ) \n . project ( projection ( STRING8 ) . suppress ( ) , projection ( STRING9 ) , projection ( STRING10 ) , \n projection ( STRING11 ) ) \n . unwind ( STRING11 ) \n - . aggregate ( User . class , options ) ; \n + . aggregate ( User . class ) ; \n int count = NUMBER0 ; \n while ( aggregate . hasNext ( ) ) { \n User user = aggregate . next ( ) ;", "msg_token": "don t need the cursor option there"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class MessageHelper { \n ownerKey = collectionKey ; \n } \n else { \n - ownerKey = session . getPersistenceContext ( ) \n - . getEntry ( collection . getOwner ( ) ) . getId ( ) ; \n + Object collectionOwner = collection == null ? null : collection . getOwner ( ) ; \n + EntityEntry entry = collectionOwner == null ? null : session . getPersistenceContext ( ) . getEntry ( collectionOwner ) ; \n + ownerKey = entry == null ? null : entry . getId ( ) ; \n } \n s . append ( ownerIdentifierType . toLoggableString ( \n ownerKey , session . getFactory ( ) ) ) ;", "msg_token": "Prevent NPE when running with log on trace level"} {"diff": " public class BlockingOperatorToIterator { \n } \n \n private Notification < ? extends T > take ( ) { \n - return notifications . poll ( ) ; \n + try { \n + return notifications . take ( ) ; \n + } catch ( InterruptedException e ) { \n + throw Exceptions . propagate ( e ) ; \n + } \n } \n \n @ override", "msg_token": "Remove Temporary Timeout in take"} {"diff": " public class NotificationServiceImpl extends PersistedServiceImpl implements Not \n \n @ override \n public boolean fixed ( Notification notification ) { \n - return destroy ( notification ) > NUMBER0 ; \n + return fixed ( notification . getType ( ) , null ) ; \n } \n \n @ override", "msg_token": "Fixing wrong usage of destroy method in fixed method"} {"diff": " public class TimeSeriesResource \n \n String dimensionKey = ( timeSeriesUri . startsWith ( STRING0 ) ) ? ( STRING1 + entry . getKey ( ) . toString ( ) + STRING2 ) : ( STRING3 ) ; \n \n + String label = ( ratio . isInfinite ( ) ) ? ( String . format ( STRING4 , metricName , dimensionKey ) ) \n + : ( String . format ( STRING5 , ratio , metricName , dimensionKey ) ) ; \n + \n flotSeries . add ( new FlotTimeSeries ( \n metricName , \n - String . format ( STRING5 , ratio , metricName , dimensionKey ) , \n + label , \n QueryUtils . convertDimensionKey ( starTree . getConfig ( ) . getDimensions ( ) , entry . getKey ( ) ) , \n data , \n adjustedStartMillis ,", "msg_token": "Make representation of divide by zero metric values on the dashboard uniform"} {"diff": " public class KnownElementWeigher extends ProximityWeigher { \n if ( element instanceof PsiClass ) { \n @ nonnls final String qname = ( ( PsiClass ) element ) . getQualifiedName ( ) ; \n if ( qname != null ) { \n + if ( qname . startsWith ( STRING0 ) ) return NUMBER0 ; \n + if ( qname . startsWith ( STRING1 ) ) return NUMBER1 ; \n if ( qname . startsWith ( STRING2 ) ) return NUMBER2 ; \n if ( qname . startsWith ( STRING3 ) ) return NUMBER3 ; \n if ( qname . startsWith ( STRING4 ) ) return - NUMBER3 ;", "msg_token": "prefer java util Date to java sql Date"} {"diff": " public final class Globals { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public static final String MBEAN_REGISTRY_ATTR = \n - STRING0 ; \n - \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public static final String MBEAN_SERVER_ATTR = \n - STRING1 ; \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Globals { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public static final String TOMCAT_CONNECTOR_ATTR_PREFIX = \n - STRING2 ; \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove deprecated code"} {"diff": " public class HttpRequest { \n COMMENT \n COMMENT \n void onProgress ( int transferred , int total ) ; \n + \n + ProgressCallback DEFAULT = new ProgressCallback ( ) { \n + public void onProgress ( int totalWritten , int total ) { \n + } \n + } ; \n } \n \n COMMENT \n public class HttpRequest { \n } . call ( ) ; \n } \n \n - private static final ProgressCallback NULL_PROGRESS_CALLBACK = new ProgressCallback ( ) { \n - public void onProgress ( int totalWritten , int total ) { } \n - } ; \n - \n - private ProgressCallback progress = NULL_PROGRESS_CALLBACK ; \n + private ProgressCallback progress = ProgressCallback . DEFAULT ; \n \n COMMENT \n COMMENT \n public class HttpRequest { \n COMMENT \n public HttpRequest progress ( final ProgressCallback callback ) { \n if ( callback == null ) \n - progress = NULL_PROGRESS_CALLBACK ; \n + progress = ProgressCallback . DEFAULT ; \n else \n progress = callback ; \n return this ;", "msg_token": "Move null progress callback into interface"} {"diff": " public class TaskAdapter extends CursorAdapter implements Filterable { \n SINGLE \n addListeners ( view ) ; \n \n - SINGLE \n - bindView ( view , context , cursor ) ; \n - \n return view ; \n }", "msg_token": "Removed unecessary bindview call"} {"diff": " public class JsonObjectDecoder extends ByteToMessageDecoder { \n COMMENT \n COMMENT \n COMMENT \n + @ suppresswarnings ( STRING0 ) \n protected ByteBuf extractObject ( ChannelHandlerContext ctx , ByteBuf buffer , int index , int length ) { \n return buffer . slice ( index , length ) . retain ( ) ; \n }", "msg_token": "Fix an inspector warning in JsonObjectDecoder"} {"diff": " public class Vec extends Iced { \n boolean _isInt = true ; \n \n @ override public void postGlobal ( ) { \n - System . out . println ( STRING0 ) ; \n final RollupStats rs = this ; \n _fr . vecs ( ) [ NUMBER0 ] . setRollupStats ( rs ) ; \n SINGLE", "msg_token": "Just removed dbg print I left in by accident"} {"diff": " public class InternalApis { \n public static RequestMatcher context ( final String context ) { \n return match ( uri ( context + STRING0 ) ) ; \n } \n + \n + private InternalApis ( ) { } \n }", "msg_token": "added missing private constructor for internal api"} {"diff": " public class Servlet30CometSupport extends AsynchronousProcessor { \n try { \n asyncContext . complete ( ) ; \n } catch ( IllegalStateException ex ) { \n - SINGLE \n - logger . trace ( STRING0 , ex ) ; \n + SINGLE \n + try { \n + logger . trace ( STRING0 , ex ) ; \n + } catch ( Exception ex2 ) { } ; \n } \n } \n } \n public class JavaScriptProtocol extends AtmosphereInterceptorAdapter { \n return this ; \n } \n \n + public boolean enforceAtmosphereVersion ( ) { \n + return enforceAtmosphereVersion ; \n + } \n + \n + public JavaScriptProtocol enforceAtmosphereVersion ( boolean enforceAtmosphereVersion ) { \n + this . enforceAtmosphereVersion = enforceAtmosphereVersion ; \n + return this ; \n + } \n + \n @ override \n public String toString ( ) { \n return STRING1 ;", "msg_token": "Fix Jetty exception on close expose attribute"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - class ViewNameResolver { \n + public class ViewNameResolver { \n public String getViewNameFromLayoutTag ( String tagName ) { \n StringBuilder nameBuilder = new StringBuilder ( ) ;", "msg_token": "Fix the compilation error in Validator plugin"} {"diff": " public class SpringApplicationContextLoader extends AbstractContextLoader { \n throws Exception { \n assertValidAnnotations ( config . getTestClass ( ) ) ; \n SpringApplication application = getSpringApplication ( ) ; \n + application . setRegisterShutdownHook ( false ) ; \n application . setMainApplicationClass ( config . getTestClass ( ) ) ; \n application . setSources ( getSources ( config ) ) ; \n ConfigurableEnvironment environment = new StandardEnvironment ( ) ;", "msg_token": "Set registerShutdownHook to false for tests"} {"diff": " public abstract class TvInputService extends Service { \n public void onSetMain ( boolean isMain ) { \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract boolean onSetSurface ( Surface surface ) ; \n \n COMMENT", "msg_token": "Include documentation for a null surface in TvInputService Session onSetSurface"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AccessTokenAuthenticator extends AuthenticatingRealm { \n if ( log . isDebugEnabled ( ) ) { \n log . debug ( STRING0 , user ) ; \n } \n + try { \n + accessToken . touch ( ) ; \n + } catch ( ValidationException e ) { \n + log . warn ( STRING1 , e ) ; \n + } \n return new SimpleAccount ( user . getName ( ) , null , STRING2 ) ; \n } \n }", "msg_token": "update access token s last access date when authenticating with it"} {"diff": " public class ORecordIteratorClusters < REC extends ORecordInternal < ? > > extends OId \n } \n \n protected void config ( ) { \n + if ( clusterIds . length == NUMBER0 ) \n + return ; \n + \n currentClusterIdx = NUMBER0 ; SINGLE \n \n updateClusterRange ( ) ; \n public abstract class OStorageEmbedded extends OStorageAbstract { \n @ override \n public long [ ] getClusterPositionsForEntry ( int currentClusterId , long entry ) { \n if ( currentClusterId == - NUMBER1 ) \n - throw new OStorageException ( STRING0 + currentClusterId + STRING1 + name + STRING2 ) ; \n + return new long [ ] { - NUMBER1 , - NUMBER1 } ; \n \n checkOpeness ( ) ; \n \n public class OStorageLocal extends OStorageEmbedded { \n \n public long [ ] getClusterDataRange ( final int iClusterId ) { \n if ( iClusterId == - NUMBER1 ) \n - throw new OStorageException ( STRING0 + iClusterId + STRING1 + name + STRING3 ) ; \n + return new long [ ] { - NUMBER1 , - NUMBER1 } ; \n \n checkOpeness ( ) ;", "msg_token": "Fixed bug on query abstract classes"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add license description"} {"diff": " public class GrailsCoreDependencies { \n \n public final String grailsVersion ; \n public final String servletVersion ; \n - protected final String groovyVersion = STRING0 ; \n - protected final String springVersion = STRING1 ; \n + protected final String groovyVersion = STRING2 ; \n + protected final String springVersion = STRING3 ; \n protected final String log4jVersion = STRING4 ; \n protected final String h2Version = STRING5 ; \n protected final String jaxbVersion = STRING6 ;", "msg_token": "update groovyVersion and springVersion in master branch"} {"diff": " class ServerTrustManager implements X509TrustManager { \n { \n \n RemoteImService . debug ( msg ) ; \n - showToolbarNotification ( msg , DEFAULT_NOTIFY_ID , R . drawable . ic_menu_key , - NUMBER0 ) ; \n - \n + \n + try \n + { \n + showToolbarNotification ( msg , DEFAULT_NOTIFY_ID , R . drawable . ic_menu_key , - NUMBER0 ) ; \n + } \n + catch ( Exception e ) \n + { \n + RemoteImService . debug ( STRING0 , e ) ; \n + } \n } \n \n - private void showToolbarNotification ( String notifyMsg , int notifyId , int icon , int flags ) \n - { \n + private void showToolbarNotification ( String notifyMsg , int notifyId , int icon , int flags ) throws Exception \n + { \n \n \n NotificationManager mNotificationManager = ( NotificationManager ) context . getSystemService ( Context . NOTIFICATION_SERVICE ) ;", "msg_token": "added some exception handling code"} {"diff": " public abstract class HierarchicalRolesTestHelper { \n public String getAuthority ( ) { \n return role ; \n } \n - \n - public int compareTo ( GrantedAuthority ga ) { \n - if ( ga != null ) { \n - String rhsRole = ga . getAuthority ( ) ; \n - \n - if ( rhsRole == null ) { \n - return - NUMBER0 ; \n - } \n - \n - return role . compareTo ( rhsRole ) ; \n - } \n - return - NUMBER0 ; \n - } \n } ) ; \n }", "msg_token": "Removed unused compareTo method from custom GrantedAuthority"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ contextconfiguration ( loader = SpringBootContextLoader . class ) \n + @ contextconfiguration ( loader = SpringApplicationContextLoader . class ) \n @ documented \n @ inherited \n @ retention ( RetentionPolicy . RUNTIME )", "msg_token": "Make SpringApplicationConfiguration use SpringApplicationContextLoader"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + @ ignore ( STRING0 + \n + STRING1 ) \n public class BigJumpingStoreIT \n { \n private static class TestDatabase extends InternalAbstractGraphDatabase", "msg_token": "Ignore the BigJumpingStoreIT test because the hacks it relied upon no longer work with the new page cache"} {"diff": " public final class LWJGLHelper { \n } \n \n private static void initOculus ( ) { \n - switch ( LWJGLUtil . getPlatform ( ) ) { \n - case LWJGLUtil . PLATFORM_WINDOWS : \n - OculusVrHelper . loadNatives ( ) ; \n - break ; \n + if ( LWJGLUtil . getPlatform ( ) == LWJGLUtil . PLATFORM_WINDOWS ) { \n + OculusVrHelper . loadNatives ( ) ; \n } \n } \n }", "msg_token": "Replace switch with only one case with if statement"} {"diff": " public interface Player extends HumanEntity , CommandSender , OfflinePlayer , Plugi \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Player setPlayerListName no longer ignores colour length in size limit"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class Metrics { \n private static final MetricRegistry metrics = new MetricRegistry ( ) ; \n + private static final JmxReporter reporter ; \n + \n + static { \n + reporter = JmxReporter . forRegistry ( metrics ) . build ( ) ; \n + reporter . start ( ) ; \n + } \n \n public static < T extends Metric > T register ( String name , T metric ) throws IllegalArgumentException { \n return metrics . register ( name , metric ) ;", "msg_token": "start JmxReporter in Metrics"} {"diff": " public final class CopyFromLocalCommand extends AbstractShellCommand { \n closer . close ( ) ; \n } \n } else { \n - mFileSystem . createDirectory ( dstPath ) ; \n + try { \n + mFileSystem . createDirectory ( dstPath ) ; \n + } catch ( FileAlreadyExistsException e ) { \n + SINGLE \n + } catch ( AlluxioException e ) { \n + throw new IOException ( e . getMessage ( ) ) ; \n + } \n List < String > errorMessages = Lists . newArrayList ( ) ; \n String [ ] fileList = src . list ( ) ; \n for ( String file : fileList ) {", "msg_token": "Add judgement before create directory"} {"diff": " public class Memtable \n { \n return new Iterator < Map . Entry < DecoratedKey , AtomicSortedColumns > > ( ) \n { \n - private Iterator < Map . Entry < RowPosition , AtomicSortedColumns > > iter = stopAt . isMinimum ( ) \n - ? rows . tailMap ( startWith ) . entrySet ( ) . iterator ( ) \n - : rows . subMap ( startWith , true , stopAt , true ) . entrySet ( ) . iterator ( ) ; \n + private Iterator < Map . Entry < RowPosition , AtomicSortedColumns > > iter = stopAt . isMinimum ( cfs . partitioner ) \n + ? rows . tailMap ( startWith ) . entrySet ( ) . iterator ( ) \n + : rows . subMap ( startWith , true , stopAt , true ) . entrySet ( ) . iterator ( ) ; \n \n public boolean hasNext ( ) \n {", "msg_token": "Make Memtable getEntyIterator respect the cfs iterator"} {"diff": " public class IOSGraphics extends iPhoneOSGameView implements Graphics { \n } \n \n @ override \n - public void setIcon ( Pixmap [ ] pixmaps ) { \n - } \n - \n - @ override \n public void setVSync ( boolean vsync ) { \n }", "msg_token": "fixed iOSGraphics setIcon method removed from interface"} {"diff": " public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback \n Log . w ( STRING0 , STRING1 ) ; \n } \n if ( ! mEglHelper . createSurface ( ) ) { \n - mSurfaceIsBad = true ; \n + synchronized ( sGLThreadManager ) { \n + mSurfaceIsBad = true ; \n + sGLThreadManager . notifyAll ( ) ; \n + } \n continue ; \n } \n createEglSurface = false ; \n public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback \n SINGLE \n SINGLE \n EglHelper . logEglErrorAsWarning ( STRING0 , STRING2 , swapError ) ; \n - mSurfaceIsBad = true ; \n + \n + synchronized ( sGLThreadManager ) { \n + mSurfaceIsBad = true ; \n + sGLThreadManager . notifyAll ( ) ; \n + } \n break ; \n }", "msg_token": "Notify monitor waiters when changing mSurfaceIsBad value"} {"diff": " public class OtpsRoutingRequest { \n cal . set ( Calendar . MINUTE , min ) ; \n cal . set ( Calendar . SECOND , sec ) ; \n cal . set ( Calendar . MILLISECOND , NUMBER0 ) ; \n - System . out . println ( STRING0 + cal . getTime ( ) ) ; \n req . setDateTime ( cal . getTime ( ) ) ; \n }", "msg_token": "Remove spurrious debug statement"} {"diff": " public interface GrailsDomainClassProperty { \n boolean isPersistent ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n boolean isOptional ( ) ;", "msg_token": "fixed a typo in a javadoc"} {"diff": " public abstract class BaseKeyListener extends MetaKeyKeyListener \n SINGLE \n final int start = Selection . getSelectionEnd ( content ) ; \n final int end ; \n - if ( isForwardDelete || event . isShiftPressed ( ) || isShiftActive ) { \n + if ( isForwardDelete ) { \n end = TextUtils . getOffsetAfter ( content , start ) ; \n } else { \n end = TextUtils . getOffsetBefore ( content , start ) ;", "msg_token": "Stop Shift Backspace from foward deleting"} {"diff": " public final class ByteArraySlice \n } \n \n Slice slice = ( Slice ) o ; \n - if ( length == slice . length ( ) ) { \n - return true ; \n + if ( length != slice . length ( ) ) { \n + return false ; \n } \n \n return toByteBuffer ( ) . equals ( slice . toByteBuffer ( ) ) ;", "msg_token": "fix bug in slice comparison"} {"diff": " public class ChatView extends LinearLayout { \n } \n try { \n if ( getChatSession ( ) != null ) { \n - getChatSession ( ) . setDataListener ( null ) ; \n + SINGLE \n getChatSession ( ) . unregisterChatListener ( mChatListener ) ; \n } \n IImConnection conn = mApp . getConnection ( mProviderId ) ;", "msg_token": "don t set datalistener null when the chatview stops listening"} {"diff": " public interface AsyncContext { \n < T extends AsyncListener > T createListener ( Class < T > clazz ) \n throws ServletException ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n long getTimeout ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n void setTimeout ( long timeout ) ; \n }", "msg_token": "Add some units info to the Javadocs"} {"diff": " final class HttpServlet3RequestFactory implements HttpServletRequestFactory { \n \n public AsyncContext getAsyncContext ( ) { \n AsyncContext asyncContext = super . getAsyncContext ( ) ; \n + if ( asyncContext == null ) { \n + return null ; \n + } \n return new SecurityContextAsyncContext ( asyncContext ) ; \n } \n \n public class SecurityContextHolderAwareRequestFilterTests { \n this . logoutHandler ) ; \n } \n \n + SINGLE \n + @ test \n + public void getAsyncContextNullFromSuper ( ) throws Exception { \n + assertThat ( wrappedRequest ( ) . getAsyncContext ( ) ) . isNull ( ) ; \n + } \n + \n @ test \n public void getAsyncContextStart ( ) throws Exception { \n ArgumentCaptor < Runnable > runnableCaptor = ArgumentCaptor . forClass ( Runnable . class ) ;", "msg_token": "Perform null check on super getAsyncContext"} {"diff": " public interface AnimatedImageDecoder { \n COMMENT \n COMMENT \n COMMENT \n - public AnimatedImage decode ( long nativePtr , int sizeInBytes ) ; \n - \n + AnimatedImage decode ( long nativePtr , int sizeInBytes ) ; \n }", "msg_token": "Removed implicit modifier"} {"diff": " public class SSTableReader extends SSTable \n COMMENT \n public long estimatedKeys ( ) \n { \n - return indexSummary . size ( ) * DatabaseDescriptor . getIndexInterval ( ) ; \n + return ( ( long ) indexSummary . size ( ) ) * DatabaseDescriptor . getIndexInterval ( ) ; \n } \n \n COMMENT", "msg_token": "fix potential overflow in extimatedKeys"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class MoveFloatToStringTransform implements Transform { \n private String fieldName1 ;", "msg_token": "Document transform argument"} {"diff": " public class PhoneNumberUtils \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PhoneNumberUtils \n if ( length > STRING0 . length ( ) ) { \n SINGLE \n return ; \n + } else if ( length <= NUMBER0 ) { \n + SINGLE \n + return ; \n } \n + \n CharSequence saved = text . subSequence ( NUMBER1 , length ) ; \n \n SINGLE \n public class PhoneNumberUtilsTest extends TestCase { \n number . append ( STRING1 ) ; \n PhoneNumberUtils . formatNanpNumber ( number ) ; \n assertEquals ( STRING2 , number . toString ( ) ) ; \n + \n + number . clear ( ) ; \n + number . append ( STRING3 ) ; \n + PhoneNumberUtils . formatNanpNumber ( number ) ; \n + assertEquals ( STRING3 , number . toString ( ) ) ; \n } \n \n @ smalltest", "msg_token": "Stop the NANP number formatter from putting dashes in shortcodes"} {"diff": " public class XMPPTCPConnection extends AbstractXMPPConnection { \n LOGGER . fine ( STRING0 ) ; \n } \n \n - bindResourceAndEstablishSession ( resource ) ; \n - \n List < Stanza > previouslyUnackedStanzas = new LinkedList < Stanza > ( ) ; \n if ( unacknowledgedStanzas != null ) { \n SINGLE \n public class XMPPTCPConnection extends AbstractXMPPConnection { \n SINGLE \n dropSmState ( ) ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + bindResourceAndEstablishSession ( resource ) ; \n + \n if ( isSmAvailable ( ) && useSm ) { \n SINGLE \n serverHandledStanzasCount = NUMBER0 ;", "msg_token": "Drop SM state before binding the resource"} {"diff": " public class RunManagerConfig { \n \n public int getRecentsLimit ( ) { \n try { \n - return Integer . valueOf ( myPropertiesComponent . getOrInit ( RECENTS_LIMIT , STRING0 ) ) . intValue ( ) ; \n + return Math . max ( NUMBER0 , Integer . valueOf ( myPropertiesComponent . getOrInit ( RECENTS_LIMIT , STRING0 ) ) . intValue ( ) ) ; \n } \n catch ( NumberFormatException e ) { \n return NUMBER1 ; \n class RunConfigurable extends BaseConfigurable { \n applyByType ( configurationType ) ; \n } \n \n - String recentsLimit = myRecentsLimit . getText ( ) ; \n try { \n - int i = Integer . parseInt ( recentsLimit ) ; \n + int i = Math . max ( NUMBER0 , Integer . parseInt ( myRecentsLimit . getText ( ) ) ) ; \n int oldLimit = manager . getConfig ( ) . getRecentsLimit ( ) ; \n if ( oldLimit != i ) { \n manager . getConfig ( ) . setRecentsLimit ( i ) ;", "msg_token": "negative value for Temporary Configuration Limit causes AIOOBE at RunManagerImpl checkRecentsLimit"} {"diff": " public class IndicesClusterStateService extends AbstractLifecycleComponent < Indic \n } \n \n private boolean aliasesChanged ( ClusterChangedEvent event ) { \n - return ! event . state ( ) . metaData ( ) . aliases ( ) . equals ( event . previousState ( ) . metaData ( ) . aliases ( ) ) ; \n + return ! event . state ( ) . metaData ( ) . aliases ( ) . equals ( event . previousState ( ) . metaData ( ) . aliases ( ) ) || \n + ! event . state ( ) . routingTable ( ) . equals ( event . previousState ( ) . routingTable ( ) ) ; \n } \n \n private void applyAliases ( ClusterChangedEvent event ) {", "msg_token": "Aliases should be processed when index routing changes"} {"diff": " public class CodeItem extends Item < CodeItem > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public int getInWords ( ) { \n + return inWords ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getOutWords ( ) { \n + return outWords ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add getters for inWords and outWords in CodeItem"} {"diff": " public class RestSwaggerSupport { \n \n List < RestDefinition > rests = getRestDefinitions ( contextId ) ; \n if ( rests != null ) { \n + response . addHeader ( Exchange . CONTENT_TYPE , STRING0 ) ; \n + \n SINGLE \n Swagger swagger = reader . read ( rests , route , swaggerConfig , contextId , classResolver ) ;", "msg_token": "swagger java should use json as content type header in response"} {"diff": " public interface IvyArtifactRepository extends ArtifactRepository , Authenticatio \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a link to available Ivy pattern tokens"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class XSuspendContext { \n return null ; \n } \n \n + @ notnull \n public XExecutionStack [ ] getExecutionStacks ( ) { \n XExecutionStack executionStack = getActiveExecutionStack ( ) ; \n return executionStack != null ? new XExecutionStack [ ] { executionStack } : XExecutionStack . EMPTY_ARRAY ; \n public class XsltDebugProcess extends XDebugProcess implements Disposable { \n return new XsltExecutionStack ( STRING0 , mySourceFrame , myDebuggerSession ) ; \n } \n \n + @ notnull \n @ override \n public XExecutionStack [ ] getExecutionStacks ( ) { \n return new XExecutionStack [ ] { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PySuspendContext extends XSuspendContext { \n return myActiveStack ; \n } \n \n + @ notnull \n @ override \n public XExecutionStack [ ] getExecutionStacks ( ) { \n final Collection < PyThreadInfo > threads = myDebugProcess . getThreads ( ) ;", "msg_token": "getExecutionStacks returns NotNull"} {"diff": " class GitRepositoryReader { \n COMMENT \n private Map < String , File > readLocalBranches ( ) { \n final Map < String , File > branches = new HashMap < String , File > ( ) ; \n + if ( ! myRefsHeadsDir . exists ( ) ) { \n + return branches ; \n + } \n FileUtil . processFilesRecursively ( myRefsHeadsDir , new Processor < File > ( ) { \n @ override \n public boolean process ( File file ) { \n class GitRepositoryReader { \n COMMENT \n private Set < GitBranch > readUnpackedRemoteBranches ( ) { \n final Set < GitBranch > branches = new HashSet < GitBranch > ( ) ; \n + if ( ! myRefsRemotesDir . exists ( ) ) { \n + return branches ; \n + } \n FileUtil . processFilesRecursively ( myRefsRemotesDir , new Processor < File > ( ) { \n @ override \n public boolean process ( File file ) {", "msg_token": "don t process non existent refs heads and refs remotes dir"} {"diff": " public abstract class AbstractSubsystemTest { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected void ignoreThisTestIfEAPRepositoryIsNotReachable ( ) { \n Assume . assumeTrue ( EAPRepositoryReachableUtil . isReachable ( ) ) ;", "msg_token": "fixes javadoc typo"} {"diff": " public class DefaultContext implements Context { \n \n @ override \n public ServerConfig getServerConfig ( ) { \n - SINGLE \n - SINGLE \n return get ( ServerConfig . class ) ; \n }", "msg_token": "Remove commented out line"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExcelImporter implements Importer { \n if ( cellType == org . apache . poi . ss . usermodel . Cell . CELL_TYPE_BOOLEAN ) { \n value = cell . getBooleanCellValue ( ) ; \n } else if ( cellType == org . apache . poi . ss . usermodel . Cell . CELL_TYPE_NUMERIC ) { \n - value = cell . getNumericCellValue ( ) ; \n + double d = cell . getNumericCellValue ( ) ; \n + \n + if ( HSSFDateUtil . isCellDateFormatted ( cell ) ) { \n + value = HSSFDateUtil . getJavaDate ( d ) ; \n + } else { \n + value = d ; \n + } \n } else { \n String text = cell . getStringCellValue ( ) . trim ( ) ; \n if ( text . length ( ) > NUMBER0 ) {", "msg_token": "Retrieve dates correctly from Excel files"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IdsQueryBuilder extends BaseQueryBuilder implements Streamable , Boo \n \n private String queryName ; \n \n + public IdsQueryBuilder ( ) { \n + SINGLE \n + } \n + \n public IdsQueryBuilder ( String . . . types ) { \n this . types = ( types == null || types . length == NUMBER0 ) ? new ArrayList < String > ( ) : Arrays . asList ( types ) ; \n } \n public class TermQueryBuilder extends BaseQueryBuilder implements Streamable , Bo \n } \n } \n \n - TermQueryBuilder ( ) { \n + public TermQueryBuilder ( ) { \n SINGLE \n }", "msg_token": "Make default constructors needed for serialization public"} {"diff": " public class ShortcutManager implements NativePreviewHandler , \n \n SINGLE \n private UserCommandManager userCommands_ ; \n - @ suppresswarnings ( STRING0 ) private EditorCommandManager editorCommands_ ; \n - @ suppresswarnings ( STRING0 ) private ApplicationCommandManager appCommands_ ; \n + private EditorCommandManager editorCommands_ ; \n + private ApplicationCommandManager appCommands_ ; \n private EventBus events_ ; \n \n }", "msg_token": "eliminate eclipse warnings"} {"diff": " public class ExceptionMeteredMethodInterceptor implements MethodInterceptor , Met \n meter . mark ( ) ; \n } \n } \n - ReflectionUtils . rethrowException ( t ) ; \n - return null ; \n + throw t ; \n } \n }", "msg_token": "rethrowException wraps Throwable s in UndeclaredThrowableException"} {"diff": " public class VoldemortBuildAndPushJob extends AbstractJob { \n } \n try { \n adminClientPerCluster . get ( url ) . storeMgmtOps . addStore ( newStoreDef , nodeIDs ) ; \n - \n - SINGLE \n - SINGLE \n - if ( ! nodeIDs . isEmpty ( ) ) { \n - SINGLE \n - SINGLE \n - Long quotaValue = NUMBER0 L ; \n - log . info ( STRING0 + storeName \n - + STRING1 ) ; \n - adminClientPerCluster . get ( url ) . quotaMgmtOps . setQuota ( storeName , \n - QuotaType . STORAGE_SPACE . toString ( ) , \n - quotaValue . toString ( ) ) ; \n - } \n } \n catch ( VoldemortException ve ) { \n - throw new RuntimeException ( STRING2 + url , ve ) ; \n + throw new RuntimeException ( STRING3 + url , ve ) ; \n } \n }", "msg_token": "Removed the set quota admin op from BnP"} {"diff": " import NAMESPACE ; \n COMMENT \n public class HttpSessionContextIntegrationFilter extends SecurityContextPersistenceFilter implements InitializingBean { \n SINGLE \n - \n - SINGLE \n - SINGLE \n - public static final String SPRING_SECURITY_CONTEXT_KEY = STRING0 ; \n + public static final String SPRING_SECURITY_CONTEXT_KEY = HttpSessionSecurityContextRepository . SPRING_SECURITY_CONTEXT_KEY ; \n \n SINGLE", "msg_token": "Made sure old security context session key points to new one so they always match"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface HeaderProvider { \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public View getHeader ( RecyclerView recyclerView , int position ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n void invalidate ( ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class HeaderViewCache implements HeaderProvider {", "msg_token": "Added missing description for HeaderProvider Interface"} {"diff": " public class ExporterGEXF implements GraphExporter , CharacterExporter , LongTask \n private static final String VIZ_NAMESPACE = STRING0 ; \n private static final String GEXF_VERSION = STRING1 ; \n private static final String GRAPH = STRING2 ; \n - private static final String GRAPH_MODE = STRING3 ; \n + private static final String GRAPH_MODE = STRING4 ; \n private static final String GRAPH_DEFAULT_EDGETYPE = STRING5 ; \n private static final String GRAPH_START = STRING6 ; \n private static final String GRAPH_END = STRING7 ;", "msg_token": "Fix small issue in GEXF export"} {"diff": " public class NewChatActivity extends FragmentActivity implements View . OnCreateCo \n this , mDrawer , mToolbar , \n R . string . ok , R . string . cancel \n ) ; \n + \n SINGLE \n mDrawer . setDrawerListener ( mDrawerToggle ) ; \n mDrawerToggle . setDrawerIndicatorEnabled ( true ) ; \n public class NewChatActivity extends FragmentActivity implements View . OnCreateCo \n public void setTitle ( CharSequence title ) { \n \n mToolbar . setTitle ( title ) ; \n - SINGLE \n + SINGLE \n } \n \n public void setTitle ( CharSequence title , Drawable icon ) { \n \n mToolbar . setTitle ( title ) ; \n SINGLE \n + \n }", "msg_token": "don t use an avatar in the action title bar"} {"diff": " public class ApplicationImpl extends ComponentManagerImpl implements Application \n \n loadApplicationComponents ( ) ; \n \n - if ( ! isHeadless ) { \n + if ( myTestModeFlag ) { \n registerShutdownHook ( ) ; \n }", "msg_token": "IDEA prevents system shutdown r max mike"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n final class DeepLinkEntry { \n - private static final String PARAM_VALUE = STRING0 ; \n + private static final String PARAM_VALUE = STRING1 ; \n private static final String PARAM = STRING2 ; \n private static final String PARAM_REGEX = STRING3 + PARAM + STRING4 ; \n \n public class DeepLinkEntryTest { \n assertThat ( parameters . get ( STRING5 ) ) . isEqualTo ( STRING6 ) ; \n } \n \n + @ test public void testParamForColon ( ) { \n + DeepLinkEntry entry = deepLinkEntry ( STRING7 ) ; \n + \n + Map < String , String > parameters = entry . getParameters ( STRING8 ) ; \n + assertThat ( parameters . get ( STRING5 ) ) . isEqualTo ( STRING9 ) ; \n + } \n + \n @ test public void testParamWithSlash ( ) { \n DeepLinkEntry entry = deepLinkEntry ( STRING7 ) ;", "msg_token": "Relax path matching regex even more"} {"diff": " public class JobExecutionEvent implements JobEvent { \n COMMENT \n public void executionFailure ( final Throwable failureCause ) { \n completeTime = new Date ( ) ; \n + success = false ; \n this . failureCause = failureCause ; \n }", "msg_token": "Fixed job execution event failure not recorded issue"} {"diff": " public class DTree extends Iced { \n \n boolean featureAllowed = isFeatureAllowed ( ) ; \n if ( ! featureAllowed ) { \n - sb . append ( STRING0 ; \n + sb . append ( STRING0 \n sb . append ( STRING1 ) ; \n sb . append ( STRING2 ) ; \n sb . append ( STRING3 ) ;", "msg_token": "Fix compilation error"} {"diff": " public final class CheckNullableReturn implements HotSwapCompilerPass , NodeTrave \n final AbstractCompiler compiler ; \n \n public static final DiagnosticType NULLABLE_RETURN = \n - DiagnosticType . disabled ( \n + DiagnosticType . warning ( \n STRING0 , \n STRING1 \n + STRING2 ) ; \n \n public static final DiagnosticType NULLABLE_RETURN_WITH_NAME = \n - DiagnosticType . disabled ( \n + DiagnosticType . warning ( \n STRING3 , \n STRING4 \n + STRING5 \n import NAMESPACE ; \n COMMENT \n public final class CheckPrototypeProperties implements HotSwapCompilerPass , NodeTraversal . Callback { \n public static final DiagnosticType ILLEGAL_PROTOTYPE_MEMBER = \n - DiagnosticType . disabled ( \n + DiagnosticType . warning ( \n STRING6 , \n STRING7 ) ;", "msg_token": "Make lint diagnostics in the lint package warnings"} {"diff": " public class DistributedExecutorService implements ManagedService , RemoteService \n public void destroyDistributedObject ( String name ) { \n shutdownExecutors . remove ( name ) ; \n executionService . shutdownExecutor ( name ) ; \n + statsMap . remove ( name ) ; \n } \n \n LocalExecutorStatsImpl getLocalExecutorStats ( String name ) {", "msg_token": "Fixes persisting nonexistent executorServiceStats"} {"diff": " public class ColumnChartView extends AbstractChartView { \n mChartCalculator . calculateViewport ( ) ; \n mChartCalculator . calculateContentArea ( getWidth ( ) , getHeight ( ) , getPaddingLeft ( ) , getPaddingTop ( ) , \n getPaddingRight ( ) , getPaddingBottom ( ) ) ; \n - mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( NUMBER0 ) , mAxesRenderer . getAxisYWidth ( NUMBER0 ) ) ; \n + mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( ) , mAxesRenderer . getAxisYWidth ( ) ) ; \n } \n \n SINGLE \n public class ColumnChartView extends AbstractChartView { \n mChartCalculator . calculateViewport ( ) ; \n mChartCalculator . calculateContentArea ( getWidth ( ) , getHeight ( ) , getPaddingLeft ( ) , getPaddingTop ( ) , \n getPaddingRight ( ) , getPaddingBottom ( ) ) ; \n - mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( NUMBER0 ) , mAxesRenderer . getAxisYWidth ( NUMBER0 ) ) ; \n + mAxesRenderer . initRenderer ( ) ; \n + mChartCalculator . setAxesMargin ( mAxesRenderer . getAxisXHeight ( ) , mAxesRenderer . getAxisYWidth ( ) ) ; \n ViewCompat . postInvalidateOnAnimation ( ColumnChartView . this ) ; \n }", "msg_token": "Fixed compilation errors for ColumnChartView"} {"diff": " public class MvcEndpointCorsIntegrationTests { \n public void maxAgeDefaultsTo30Minutes ( ) throws Exception { \n EnvironmentTestUtils . addEnvironment ( this . context , \n STRING0 ) ; \n - createMockMvc ( ) . perform ( \n - options ( STRING1 ) . header ( STRING2 , STRING3 ) . header ( \n - HttpHeaders . ACCESS_CONTROL_REQUEST_METHOD , STRING4 ) ) . andExpect ( \n - status ( ) . isForbidden ( ) ) ; \n performAcceptedCorsRequest ( ) . andExpect ( \n header ( ) . string ( HttpHeaders . ACCESS_CONTROL_MAX_AGE , STRING5 ) ) ; \n }", "msg_token": "Fix redudant assertion in test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderPostListFragment extends Fragment \n mSearchView . setIconifiedByDefault ( true ) ; \n mSearchView . setIconified ( true ) ; \n \n + SINGLE \n + SINGLE \n + int maxWidth = DisplayUtils . getDisplayPixelWidth ( getActivity ( ) ) ; \n + mSearchView . setMaxWidth ( maxWidth ) ; \n + \n SINGLE \n SINGLE \n View view = mSearchView . findViewById ( android . support . v7 . appcompat . R . id . search_src_text ) ;", "msg_token": "Force the searchView to take up the full width"} {"diff": " public class WizardController implements ActionListener \n } \n catch ( Exception ex ) \n { \n + wizard . stopCommittingPage ( ) ; \n + \n SINGLE \n SINGLE \n SINGLE \n public class AccountRegSummaryPage \n GuiActivator . getResources ( ) \n . getI18NString ( STRING0 ) ) ; \n } \n + else \n + throw new RuntimeException ( e . getMessage ( ) , e ) ; \n } \n }", "msg_token": "Pass the error if any to advance wizard so we will show an error and don t ignore it"} {"diff": " public final class TreeWalker \n mCache = new PropertyCacheFile ( configuration , aFileName ) ; \n } \n \n - SINGLE \n COMMENT \n public void setClassLoader ( ClassLoader aClassLoader ) \n { \n public final class TreeWalker \n walk ( rootAST , contents ) ; \n } \n catch ( FileNotFoundException fnfe ) { \n - SINGLE \n - SINGLE \n mMessages . add ( new LocalizedMessage ( NUMBER0 , Defn . CHECKSTYLE_BUNDLE , \n STRING0 , null ) ) ; \n } \n public final class TreeWalker \n if ( Arrays . binarySearch ( acceptableTokens , tokenId ) >= NUMBER0 ) { \n registerCheck ( token , aCheck ) ; \n } \n - SINGLE \n + SINGLE \n } \n catch ( IllegalArgumentException ex ) { \n throw new CheckstyleException ( STRING1", "msg_token": "removed todo items that have already been resolved"} {"diff": " public class DynamicHelper { \n applyOrientation ( view , dynProp ) ; \n } \n break ; \n + case SUM_WEIGHT : { \n + applyWeightSum ( view , dynProp ) ; \n + } \n + break ; \n case GRAVITY : { \n applyGravity ( view , dynProp ) ; \n } \n public class DynamicHelper { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public static void applyWeightSum ( View view , DynamicProperty property ) { \n + if ( ( view instanceof LinearLayout ) && ( property . type == DynamicProperty . TYPE . FLOAT ) ) { \n + ( ( LinearLayout ) view ) . setWeightSum ( property . getValueFloat ( ) ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public static void applyTag ( View view , DynamicProperty property ) { \n public class DynamicProperty { \n LAYOUT_TOSTARTOF , \n LAYOUT_GRAVITY , \n LAYOUT_WEIGHT , \n + SUM_WEIGHT , \n ORIENTATION , \n \n TAG ,", "msg_token": "add sumWeight in LinearLayout"} {"diff": " public class MainActivity extends AppCompatActivity { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n private FirebaseAnalytics mFirebaseAnalytics ; \n + SINGLE \n \n COMMENT \n COMMENT", "msg_token": "Add analytics variable tag"} {"diff": " public class SpillingResettableIteratorTest { \n while ( iterator . hasNext ( ) ) \n Assert . assertEquals ( STRING0 + count + STRING1 , count ++ , \n iterator . next ( ) . getValue ( ) ) ; \n - Assert . assertEquals ( STRING2 , NUMBER0 , count ) ; \n + Assert . assertEquals ( STRING2 , NUMTESTRECORDS , count ) ; \n SINGLE \n for ( int j = NUMBER1 ; j < NUMBER2 ; ++ j ) { \n count = NUMBER1 ; \n public class SpillingResettableIteratorTest { \n while ( iterator . hasNext ( ) ) \n Assert . assertEquals ( STRING3 + j + NUMBER3 + STRING4 + count \n + STRING1 , count ++ , iterator . next ( ) . getValue ( ) ) ; \n - Assert . assertEquals ( STRING5 + j + NUMBER3 + STRING6 , NUMBER0 , count ) ; \n + Assert . assertEquals ( STRING5 + j + NUMBER3 + STRING6 , NUMTESTRECORDS , count ) ; \n } \n SINGLE \n iterator . close ( ) ;", "msg_token": "replaced constant value by already defined final static field in SpillingResettableIteratorTest"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class CompositeActiveComponent implements ActiveComponent { \n public CompositeActiveComponent ( @ notnull ActiveComponent . . . components ) { \n myComponents = components ; \n \n - myComponent = new JPanel ( new FlowLayout ( FlowLayout . CENTER , JBUI . scale ( NUMBER0 ) , JBUI . scale ( NUMBER1 ) ) ) ; \n + myComponent = new JPanel ( new FlowLayout ( FlowLayout . CENTER , JBUI . scale ( NUMBER0 ) , JBUI . scale ( NUMBER0 ) ) ) ; \n myComponent . setBorder ( null ) ; \n myComponent . setOpaque ( false ) ; \n for ( ActiveComponent component : components ) { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CaptionPanel extends JPanel { \n \n public CaptionPanel ( ) { \n setLayout ( new BorderLayout ( ) ) ; \n - setBorder ( new EmptyBorder ( NUMBER2 , NUMBER1 , NUMBER2 , NUMBER1 ) ) ; \n } \n \n @ override", "msg_token": "minimize borders in show usages popup title panel"} {"diff": " public class VcsLogRefresherImpl implements VcsLogRefresher { \n \n @ notnull private volatile DataPack myDataPack = DataPack . EMPTY ; \n \n - public VcsLogRefresherImpl ( @ notnull final Project project , \n + public VcsLogRefresherImpl ( @ notnull Project project , \n @ notnull VcsLogHashMap hashMap , \n @ notnull Map < VirtualFile , VcsLogProvider > providers , \n - @ notnull final VcsUserRegistryImpl userRegistry , \n + @ notnull VcsUserRegistryImpl userRegistry , \n @ notnull Map < Integer , VcsCommitMetadata > topCommitsDetailsCache , \n - @ notnull final Consumer < DataPack > dataPackUpdateHandler , \n + @ notnull Consumer < DataPack > dataPackUpdateHandler , \n @ notnull Consumer < Exception > exceptionHandler , \n int recentCommitsCount ) { \n myProject = project ;", "msg_token": "remove unnecessary finals"} {"diff": " public class SymbolFormatter extends SymbolVisitor < Void , String > { \n return formatValue ( value , new StringBuilder ( ) ) . toString ( ) ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n private StringBuilder formatValue ( Object value , StringBuilder builder ) { \n if ( value == null ) { \n builder . append ( STRING1 ) ;", "msg_token": "disable warning for unchecked cast"} {"diff": " public abstract class AbstractDao < T , K > { \n } \n } \n \n + COMMENT \n + public RxDao < T , K > rx ( ) { \n + return new RxDao < > ( this ) ; \n + } \n + \n COMMENT \n public Database getDatabase ( ) { \n return db ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class RxDao < T , K > { \n \n private final AbstractDao < T , K > dao ; \n public class RxDaoTest extends AbstractDaoTest < TestEntityDao , TestEntity , Long > \n @ override \n protected void setUp ( ) throws Exception { \n super . setUp ( ) ; \n - rxDao = new RxDao ( dao ) ; \n + rxDao = dao . rx ( ) ; \n } \n \n public void testLoadAll ( ) {", "msg_token": "added dao rx and JavaDoc"} {"diff": " public class PropertySourcesPropertyValues implements PropertyValues { \n PropertySource < ? > collectionOwner = this . collectionOwners . putIfAbsent ( \n COLLECTION_PROPERTY . matcher ( propertyName ) . replaceAll ( STRING0 ) , source ) ; \n if ( collectionOwner == null || collectionOwner == source ) { \n - this . collectionOwners . get ( this . collectionOwners ) ; \n PropertyValue propertyValue = new OriginCapablePropertyValue ( propertyName , \n value , propertyName , source ) ; \n this . propertyValues . put ( propertyName , propertyValue ) ;", "msg_token": "Remove unnecessary statement"} {"diff": " public class AddSupportForFrameworksPanel implements Disposable { \n \n private void initializeOptionsPanel ( final FrameworkSupportNode node ) { \n if ( ! myInitializedOptionsComponents . containsKey ( node ) ) { \n + final FrameworkSupportNode parentNode = node . getParentNode ( ) ; \n + if ( parentNode != null ) { \n + initializeOptionsPanel ( parentNode ) ; \n + } \n + \n FrameworkSupportOptionsComponent optionsComponent = new FrameworkSupportOptionsComponent ( myModel , myLibrariesContainer , this , \n node . getConfigurable ( ) , \n node . getTitle ( ) + STRING0 ) ;", "msg_token": "fixed downloading libraries for parent framework when sub framework is selected"} {"diff": " public class WXSDKInstance implements IWXActivityStateListener { \n try { \n Class cls = Class . forName ( STRING0 ) ; \n Method m = cls . getMethod ( STRING1 , new Class [ ] { Object . class } ) ; \n - m . invoke ( cls , null ) ; \n + m . invoke ( cls , new Object [ NUMBER0 ] ) ; \n } catch ( Exception e ) { \n WXLogUtils . d ( WXLogUtils . getStackTrace ( e ) ) ; \n } \n public class WXPFComponent extends AbstractComponent { \n \n try { \n Class cls = Class . forName ( STRING0 ) ; \n - Method m = cls . getMethod ( STRING2 , null ) ; \n - m . invoke ( null , null ) ; \n + Method m = cls . getMethod ( STRING2 , new Class [ NUMBER0 ] ) ; \n + m . invoke ( null , new Object [ NUMBER0 ] ) ; \n } catch ( ClassNotFoundException e ) { \n e . printStackTrace ( ) ; \n } catch ( NoSuchMethodException e ) {", "msg_token": "android update WXSDKInstance java"} {"diff": " public class AddAccount extends Activity implements OnClickListener { \n final boolean [ ] wpcoms = new boolean [ result . length ] ; \n final String [ ] wpVersions = new String [ result . length ] ; \n HashMap < Object , Object > contentHash = new HashMap < Object , Object > ( ) ; \n - \n + blogCtr = NUMBER0 ; \n SINGLE \n for ( int ctr = NUMBER0 ; ctr < result . length ; ctr ++ ) { \n contentHash = ( HashMap < Object , Object > ) result [ ctr ] ;", "msg_token": "Reset blog counter before the blog selection loop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RealmWikiExample extends RealmBaseActivity { \n final RealmResults < Score > results = mRealm . where ( Score . class ) . findAll ( ) ; \n \n \n - AxisValueFormatter formatter = new AxisValueFormatter ( ) { \n + IAxisValueFormatter formatter = new IAxisValueFormatter ( ) { \n @ override \n public String getFormattedValue ( float value , AxisBase axis ) { \n return results . get ( ( int ) value ) . getPlayerName ( ) ;", "msg_token": "Updated Realm sample"} {"diff": " public final class PhoneAccount implements Parcelable { \n public static final int CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE = NUMBER0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final int CAPABILITY_EMERGENCY_VIDEO_CALLING = NUMBER1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n public static final String SCHEME_TEL = STRING0 ; \n public final class PhoneAccount implements Parcelable { \n if ( hasCapabilities ( CAPABILITY_PLACE_EMERGENCY_CALLS ) ) { \n sb . append ( STRING1 ) ; \n } \n + if ( hasCapabilities ( CAPABILITY_EMERGENCY_VIDEO_CALLING ) ) { \n + sb . append ( STRING2 ) ; \n + } \n if ( hasCapabilities ( CAPABILITY_SIM_SUBSCRIPTION ) ) { \n sb . append ( STRING3 ) ; \n }", "msg_token": "Add hidden capability to indicate account supports emergency video calls"} {"diff": " public class DefaultPromise < V > extends AbstractFuture < V > implements Promise < V > { \n } else if ( result == UNCANCELLABLE ) { \n buf . append ( STRING0 ) ; \n } else if ( result instanceof CauseHolder ) { \n - buf . append ( STRING1 ) \n + buf . append ( STRING2 ) \n . append ( ( ( CauseHolder ) result ) . cause ) \n . append ( STRING3 ) ; \n + } else if ( result != null ) { \n + buf . append ( STRING4 ) \n + . append ( result ) \n + . append ( STRING3 ) ; \n } else { \n buf . append ( STRING5 ) ; \n } \n + \n return buf ; \n }", "msg_token": "Fix a bug where DefaultPromise toString says incomplete when it s done"} {"diff": " public interface DependentSourceSet extends LanguageSourceSet { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface NativeBinary extends Binary { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed incorrect javadoc"} {"diff": " public class Switcher extends AnAction implements DumbAware { \n go ( false ) ; \n } \n \n - @ nullable \n public MyList getSelectedList ( ) { \n return getSelectedList ( files ) ; \n }", "msg_token": "remove Nullable annotation"} {"diff": " public class ObjectId implements Comparable < ObjectId > , java . io . Serializable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated \n - public int _time ( ) { \n - return timestamp ; \n + public int getMachine ( ) { \n + return machineIdentifier ; \n } \n \n + SINGLE \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated \n - public int getMachine ( ) { \n - return machineIdentifier ; \n + public int _time ( ) { \n + return timestamp ; \n } \n \n COMMENT \n public class ObjectId implements Comparable < ObjectId > , java . io . Serializable { \n public int _inc ( ) { \n return counter ; \n } \n + SINGLE \n \n COMMENT \n COMMENT", "msg_token": "Suppressing checkstyle warnings for deprecated methods that violate naming rules"} {"diff": " public class AuthActivity extends BaseFragmentActivity { \n } \n } ) ; \n } else { \n - signUp ( messenger ( ) . doSignup ( currentName , currentSex , transactionHash ) , currentName , currentSex ) ; \n + signUp ( messenger ( ) . doSignup ( currentName , currentSex != null ? currentSex : Sex . UNKNOWN , transactionHash ) , currentName , currentSex ) ; \n } \n } \n } \n public class AuthActivity extends BaseFragmentActivity { \n break ; \n \n case SIGN_UP : \n - signUp ( messenger ( ) . doSignup ( currentName , currentSex , transactionHash ) , currentName , currentSex ) ; \n + signUp ( messenger ( ) . doSignup ( currentName , currentSex != null ? currentSex : Sex . UNKNOWN , transactionHash ) , currentName , currentSex ) ; \n break ; \n } \n \n public class DialogsHistoryActor extends ModuleActor { \n } \n } ) ; \n } else { \n + context ( ) . getAppStateModule ( ) . onDialogsLoaded ( ) ; \n markAsLoaded ( ) ; \n } \n }", "msg_token": "notify app state dialogs loaded if dialogs are empty"} {"diff": " public class ZygoteInit { \n Log . v ( TAG , STRING0 + Integer . toHexString ( id ) ) ; \n } \n if ( id != NUMBER0 ) { \n - if ( mResources . getDrawable ( id ) == null ) { \n + if ( mResources . getDrawable ( id , null ) == null ) { \n throw new IllegalArgumentException ( \n STRING1 \n + Integer . toHexString ( id )", "msg_token": "Pass explicit null theme when preloading drawables"} {"diff": " public class IgnitedLastKnownLocationAsyncTask extends AsyncTask < Void , Void , Loc \n public ILastLocationFinder getLastLocationFinder ( ) { \n return lastLocationFinder ; \n } \n + \n + @ override \n + protected void onCancelled ( ) { \n + super . onCancelled ( ) ; \n + lastLocationFinder . cancel ( ) ; \n + } \n + \n }", "msg_token": "Cancel the single update if last known location task is cancelled"} {"diff": " public class AsyncTwitterWrapper extends TwitterWrapper { \n tweetEvent . setAction ( TweetEvent . Action . FAVORITE ) ; \n HotMobiLogger . getInstance ( getContext ( ) ) . log ( mAccountId , tweetEvent ) ; \n SINGLE \n - Utils . showInfoMessage ( mContext , R . string . status_favorited , false ) ; \n } else { \n taskEvent . setSucceeded ( false ) ; \n Utils . showErrorMessage ( mContext , R . string . action_favoriting , result . getException ( ) , true ) ;", "msg_token": "removed toast after created favorite"} {"diff": " public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen \n \n @ override \n protected void onRestoreInstanceState ( Parcelable state ) { \n + if ( ! ( state instanceof SavedState ) ) { \n + super . onRestoreInstanceState ( state ) ; \n + return ; \n + } \n + \n final SavedState ss = ( SavedState ) state ; \n super . onRestoreInstanceState ( ss . getSuperState ( ) ) ;", "msg_token": "Verify class of Parcelable in CoordinatorLayout restore state"} {"diff": " import static NAMESPACE \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class RestMethodHandler extends BaseAnnotationHandler < RestHolder \n \n restSpringValidatorHelper . enclosingElementHasRestAnnotation ( element , validation ) ; \n restSpringValidatorHelper . throwsOnlyRestClientException ( ( ExecutableElement ) element , validation ) ; \n + Set < String > variableNames = restAnnotationHelper . extractUrlVariableNames ( ( ExecutableElement ) element ) ; \n + restSpringValidatorHelper . urlVariableNamesExistInParameters ( ( ExecutableElement ) element , variableNames , validation ) ; \n restSpringValidatorHelper . hasAnnotatedAllParameters ( ( ExecutableElement ) element , validation ) ; \n }", "msg_token": "Validated urlVariableNamesExistInParameters directly in handler"} {"diff": " public class Source implements InsertSourceHandler , \n if ( openFileAlreadyOpen ( rmdFile , resultCallback ) ) \n return ; \n \n - EditingTarget target = editingTargetSource_ . getEditingTarget ( fileType ) ; \n - \n SINGLE \n server_ . extractRmdFromNotebook ( \n rnbPath ,", "msg_token": "remove unused variable"} {"diff": " class FramesHandler < I extends FramesHandler . Frames , S extends FramesBase < I , S > > \n throw new H2OIllegalArgumentException ( path , STRING0 , STRING1 + path + STRING2 ) ; \n } \n InputStream is = ( fr ) . toCSV ( true , false ) ; \n - Job job = new Job ( null , null , STRING3 ) ; \n + Job job = new Job ( null , STRING4 , STRING3 ) ; \n ExportTask t = new ExportTask ( is , path , frameName , overwrite , job ) ; \n return job . start ( t , fr . anyVec ( ) . nChunks ( ) ) ; \n }", "msg_token": "ExportTask has a strongly typed Job"} {"diff": " public class ByteArrayInputStream extends InputStream { \n public int read ( ) { \n return pos < data . length ? data [ pos ++ ] & NUMBER0 : - NUMBER1 ; \n } \n + \n + @ override \n + public int available ( ) { \n + return data . length - pos ; \n + } \n } \n public class ByteArrayOutputStream extends OutputStream { \n public int size ( ) { \n return count ; \n } \n + \n + public String toString ( ) { \n + return new String ( buf , NUMBER2 , count ) ; \n + } \n + public String toString ( String enc ) throws UnsupportedEncodingException { \n + return new String ( buf , NUMBER2 , count , enc ) ; \n + } \n } \n public abstract class InputStream { \n public void close ( ) throws IOException { \n \n } \n + \n + public int available ( ) { \n + return NUMBER2 ; \n + } \n }", "msg_token": "added Additional methods to emulated InputStream ByteArrayInputStream and ByteArrayOutputStream"} {"diff": " public class AnalyzedTokenReadings implements Iterable < AnalyzedToken > { \n } \n if ( l . isEmpty ( ) ) { \n l . add ( new AnalyzedToken ( this . token , null , null ) ) ; \n + l . get ( NUMBER0 ) . setWhitespaceBefore ( isWhitespaceBefore ) ; \n } \n anTokReadings = l . toArray ( new AnalyzedToken [ l . size ( ) ] ) ; \n setNoRealPOStag ( ) ; \n public class AnalyzedTokenReadings implements Iterable < AnalyzedToken > { \n } \n if ( l . isEmpty ( ) ) { \n l . add ( new AnalyzedToken ( this . token , null , null ) ) ; \n + l . get ( NUMBER0 ) . setWhitespaceBefore ( isWhitespaceBefore ) ; \n } \n anTokReadings = l . toArray ( new AnalyzedToken [ l . size ( ) ] ) ; \n setNoRealPOStag ( ) ;", "msg_token": "fix a bug when whitespacebefore attribute was removed during disambiguation"} {"diff": " public final class SystemServer { \n STRING0 ; \n private static final String WIFI_SERVICE_CLASS = \n STRING1 ; \n - private static final String WIFI_PASSPOINT_SERVICE_CLASS = \n - STRING2 ; \n private static final String WIFI_P2P_SERVICE_CLASS = \n STRING3 ; \n private static final String ETHERNET_SERVICE_CLASS = \n public final class SystemServer { \n } \n \n mSystemServiceManager . startService ( WIFI_P2P_SERVICE_CLASS ) ; \n - mSystemServiceManager . startService ( WIFI_PASSPOINT_SERVICE_CLASS ) ; \n mSystemServiceManager . startService ( WIFI_SERVICE_CLASS ) ; \n mSystemServiceManager . startService ( \n STRING4 ) ;", "msg_token": "remove call to passpoint service start"} {"diff": " public class FetchBlogListWPOrg extends FetchBlogListAbstract { \n } \n \n if ( ! url . contains ( STRING0 ) ) { SINGLE \n - if ( url . substring ( url . length ( ) - NUMBER0 , url . length ( ) ) . equals ( STRING1 ) ) { \n + if ( url . charAt ( url . length ( ) - NUMBER0 ) == STRING2 ) { \n url = url . substring ( NUMBER1 , url . length ( ) - NUMBER0 ) ; \n } \n url += STRING3 ;", "msg_token": "Make appendXMLRPCPath more readable by using charAt instead of substring"} {"diff": " abstract class AbstractIOSelector extends Thread implements IOSelector { \n \n private static final int SHUTDOWN_TIMEOUT_SECONDS = NUMBER0 ; \n private static final int SELECT_WAIT_TIME_MILLIS = NUMBER1 ; \n + private static final int SELECT_FAILURE_PAUSE_MILLIS = NUMBER2 ; \n \n protected final ILogger logger ; \n \n abstract class AbstractIOSelector extends Thread implements IOSelector { \n SINGLE \n SINGLE \n try { \n - Thread . sleep ( NUMBER2 ) ; \n + Thread . sleep ( SELECT_FAILURE_PAUSE_MILLIS ) ; \n } catch ( InterruptedException i ) { \n Thread . currentThread ( ) . interrupt ( ) ; \n }", "msg_token": "Fixed another checkstyle issue"} {"diff": " public class ZWaveController { \n COMMENT \n public void requestSoftReset ( ) \n { \n - this . enqueue ( new SerialApiSoftResetMessageClass ( ) . doRequest ( ) ) ; \n + SerialMessage msg = new SerialApiSoftResetMessageClass ( ) . doRequest ( ) ; \n + msg . attempts = NUMBER0 ; \n + this . enqueue ( msg ) ; \n } \n \n COMMENT", "msg_token": "Only send the soft reset once"} {"diff": " public class QuickFixPreviewPanelFactory { \n } \n \n if ( hasComponents ) { \n - setBorder ( IdeBorderFactory . createEmptyBorder ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER2 ) ) ; \n + setBorder ( IdeBorderFactory . createEmptyBorder ( hasFixes ? NUMBER0 : NUMBER3 , ( hasFixes || problemCount > NUMBER4 ) ? NUMBER1 : NUMBER5 , hasFixes ? NUMBER2 : NUMBER1 , NUMBER2 ) ) ; \n } \n return ! hasComponents ; \n }", "msg_token": "align bottom indent when has no fixes"} {"diff": " public class CallListPanel \n extends JPanel \n implements ActionListener \n { \n + private JPanel searchPanel = new JPanel ( new BorderLayout ( ) ) ; \n + \n + private JLabel searchLabel = new JLabel ( Messages . getString ( STRING0 ) + STRING1 ) ; \n + \n private SmartComboBox searchComboBox = new SmartComboBox ( ) ; \n \n private CallList callList = new CallList ( ) ; \n public class CallListPanel \n private void initPanels ( ) \n { \n this . scrollPane . getViewport ( ) . add ( callList ) ; \n + \n + this . searchPanel . setBorder ( BorderFactory . createEmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ; \n + this . searchPanel . add ( searchLabel , BorderLayout . WEST ) ; \n + this . searchPanel . add ( searchComboBox , BorderLayout . CENTER ) ; \n \n - this . add ( searchComboBox , BorderLayout . NORTH ) ; \n + this . add ( searchPanel , BorderLayout . NORTH ) ; \n this . add ( scrollPane , BorderLayout . CENTER ) ; \n }", "msg_token": "align better the call list search panel"} {"diff": " public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler \n SINGLE \n SINGLE \n SINGLE \n - if ( ! Thread . holdsLock ( handshakeLock ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! Thread . holdsLock ( handshakeLock ) && \n + ! Thread . holdsLock ( pendingEncryptedWrites ) ) { \n wrap ( ctx , channel ) ; \n } \n }", "msg_token": "Fixed another dead lock in SslHandler"} {"diff": " public class SelectChannelConnector extends AbstractNIOConnector \n { \n SINGLE \n _acceptChannel = ServerSocketChannel . open ( ) ; \n + SINGLE \n + _acceptChannel . configureBlocking ( true ) ; \n \n SINGLE \n _acceptChannel . socket ( ) . setReuseAddress ( getReuseAddress ( ) ) ; \n InetSocketAddress addr = getHost ( ) == null ? new InetSocketAddress ( getPort ( ) ) : new InetSocketAddress ( getHost ( ) , getPort ( ) ) ; \n _acceptChannel . socket ( ) . bind ( addr , getAcceptQueueSize ( ) ) ; \n \n + if ( _acceptChannel . socket ( ) . getLocalPort ( ) == - NUMBER0 ) \n + throw new IOException ( STRING0 ) ; \n + \n SINGLE \n _acceptChannel . configureBlocking ( false ) ;", "msg_token": "bind server socket in blocking mode"} {"diff": " public class Realm { \n public static final String DEFAULT_REALM_NAME = STRING0 ; \n private static final Map < String , ThreadRealm > realms = new HashMap < String , ThreadRealm > ( ) ; \n private static final String TAG = STRING1 ; \n + private static final String TABLE_PREFIX = STRING2 ; \n \n private SharedGroup sharedGroup ; \n private ImplicitTransaction transaction ; \n public class Realm { \n simpleClassName = clazz . getSimpleName ( ) ; \n simpleClassNames . put ( clazz , simpleClassName ) ; \n } \n - return transaction . getTable ( simpleClassName ) ; \n + return transaction . getTable ( TABLE_PREFIX + simpleClassName ) ; \n } \n \n COMMENT \n public class Realm { \n simpleClassNames . put ( clazz , simpleClassName ) ; \n } \n \n - table = transaction . getTable ( simpleClassName ) ; \n + table = transaction . getTable ( TABLE_PREFIX + simpleClassName ) ; \n tables . put ( clazz , table ) ; \n }", "msg_token": "Use the table name prefix"} {"diff": " public interface DvcsPlatformFacade { \n \n void saveAllDocuments ( ) ; \n \n - @ nullable \n - VirtualFile getVirtualFileByPath ( @ notnull String path ) ; \n - \n @ notnull \n ProjectManagerEx getProjectManager ( ) ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class DvcsPlatformFacadeImpl implements DvcsPlatformFacade { \n } ) ; \n } \n \n - @ nullable \n - @ override \n - public VirtualFile getVirtualFileByPath ( @ notnull String path ) { \n - return VcsUtil . getVirtualFile ( path ) ; \n - } \n - \n @ notnull \n @ override \n public ProjectManagerEx getProjectManager ( ) {", "msg_token": "git remove unused method"} {"diff": " public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp \n } \n } \n if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n - if ( myView == null && ! InspectionResultsView . hasProblems ( globalTools , this , createContentProvider ( ) ) ) { \n + if ( myView == null && ! ReadAction . compute ( ( ) - > InspectionResultsView . hasProblems ( globalTools , this , createContentProvider ( ) ) ) . booleanValue ( ) ) { \n return ; \n } \n createViewIfNeed ( ) ;", "msg_token": "use read action to check for problems"} {"diff": " public abstract class DeepWaterAbstractIntegrationTest extends TestUtil { \n DKV . put ( tfr ) ; \n } \n DeepWaterParameters parms = new DeepWaterParameters ( ) ; \n + parms . _backend = getBackend ( ) ; \n parms . _train = tfr . _key ; \n parms . _epochs = NUMBER0 ; \n parms . _response_column = STRING0 ; \n public abstract class DeepWaterAbstractIntegrationTest extends TestUtil { \n valid = fs . getResult ( ) [ NUMBER1 ] ; \n \n DeepWaterParameters parms = new DeepWaterParameters ( ) ; \n + parms . _backend = getBackend ( ) ; \n parms . _train = train . _key ; \n parms . _valid = valid . _key ; \n parms . _epochs = NUMBER1 ; \n public abstract class DeepWaterAbstractIntegrationTest extends TestUtil { \n valid = fs . getResult ( ) [ NUMBER1 ] ; \n \n DeepWaterParameters parms = new DeepWaterParameters ( ) ; \n + parms . _backend = getBackend ( ) ; \n parms . _train = train . _key ; \n parms . _valid = valid . _key ; \n parms . _epochs = NUMBER2 ;", "msg_token": "Add the proper backend to Deep Water junits"} {"diff": " final class TypeUtils { \n return null ; \n } \n @ override public Void visitArray ( ArrayType arrayType , Void v ) { \n - typeToString ( arrayType . getComponentType ( ) , result , innerClassSeparator ) ; \n + TypeMirror type = arrayType . getComponentType ( ) ; \n + if ( type instanceof PrimitiveType ) { \n + result . append ( type . toString ( ) ) ; SINGLE \n + } else { \n + typeToString ( arrayType . getComponentType ( ) , result , innerClassSeparator ) ; \n + } \n result . append ( STRING0 ) ; \n return null ; \n }", "msg_token": "Fix array handling so we don t attempt to box the primitive type the array is composed of"} {"diff": " public final class InetSocketTransportAddress implements TransportAddress { \n \n @ override \n public String getHost ( ) { \n - return address . getHostName ( ) ; \n + if ( resolveAddress ) { \n + return address . getHostName ( ) ; \n + } else { \n + return getAddress ( ) ; \n + } \n } \n \n @ override", "msg_token": "Only resolve host if explicitly allowed"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class UsageInvoiceItem extends InvoiceItemBase { \n \n public class UsageInvoiceItem extends InvoiceItemBase { \n \n @ override \n public String getDescription ( ) { \n - return Objects . firstNonNull ( description , String . format ( STRING0 , usageName ) ) ; \n + return MoreObjects . firstNonNull ( description , usageName ) ; \n } \n }", "msg_token": "Make usage strings compatible with catalog translations"} {"diff": " package NAMESPACE ; \n COMMENT \n public final class MasterBlockLocation { \n private final long mWorkerId ; \n - private final int mTier ; \n + private int mTier ; \n \n MasterBlockLocation ( long workerId , int tier ) { \n mWorkerId = workerId ; \n public final class MasterBlockLocation { \n public int getTier ( ) { \n return mTier ; \n } \n + \n + public void setTier ( int tier ) { \n + mTier = tier ; \n + } \n }", "msg_token": "Changed the tier in master block location to be mutable"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractHttpClientServerTest \n protected String scheme ; \n protected Server server ; \n protected HttpClient client ; \n - protected NetworkConnector connector ; \n + protected ServerConnector connector ; \n \n public AbstractHttpClientServerTest ( SslContextFactory sslContextFactory ) \n {", "msg_token": "Using ServerConnector instead of NetworkConnector to improve ease of use"} {"diff": " public class IvyDescriptorFileGenerator { \n } \n return this ; \n } \n - \n - public OptionalAttributeXmlWriter attribute ( String name , String value , String defaultValue ) throws IOException { \n - super . attribute ( name , value == null ? defaultValue : value ) ; \n - return this ; \n - } \n } \n }", "msg_token": "Removed unused method"} {"diff": " public class TaskApiDao extends ContentResolverDao < Task > { \n values . size ( ) <= NUMBER0 ) \n return true ; \n \n - if ( values . containsKey ( Task . ELAPSED_SECONDS . name ) && \n - values . size ( ) <= NUMBER0 ) \n - return true ; \n - \n return false ; \n }", "msg_token": "Don t consider timer elapsed seconds to be an insignificant detail in recently modified"} {"diff": " public class MapRenderRepositories { \n bmp . eraseColor ( currentRenderingContext . defaultColor ) ; \n } else { \n if ( reuse != null ) { \n - log . error ( String . format ( STRING0 , currentRenderingContext . width , reuse . getWidth ( ) , currentRenderingContext . height , reuse . getHeight ( ) ) ) ; \n + log . warn ( String . format ( STRING0 , currentRenderingContext . width , reuse . getWidth ( ) , currentRenderingContext . height , reuse . getHeight ( ) ) ) ; \n } \n bmp = Bitmap . createBitmap ( currentRenderingContext . width , currentRenderingContext . height , Config . RGB_565 ) ; \n } \n public class AnimateDraggingMapThread { \n tileView . rotateToAnimate ( rotationDiff / NUMBER0 + tileView . getRotate ( ) ) ; \n } \n } \n - targetRotate = - NUMBER1 ; \n } while ( conditionToCountinue && tileView . isMapRotateEnabled ( ) ) ; \n + targetRotate = - NUMBER1 ; \n } \n }", "msg_token": "Fix autozoom erros and rotate"} {"diff": " public abstract class MongodbSerializer implements Visitor < Object , Void > { \n throw new UnsupportedOperationException ( ) ; \n } \n \n - private String asDBKey ( Operation < ? > expr , int index ) { \n + protected String asDBKey ( Operation < ? > expr , int index ) { \n return ( String ) asDBValue ( expr , index ) ; \n } \n \n - private Object asDBValue ( Operation < ? > expr , int index ) { \n + protected Object asDBValue ( Operation < ? > expr , int index ) { \n return expr . getArg ( index ) . accept ( this , null ) ; \n }", "msg_token": "Make asDBKey and asDBValue protected"} {"diff": " public class WalletTest extends TestWithWallet { \n assertFalse ( wallet . isDeterministicUpgradeRequired ( ) ) ; \n } \n \n + @ test \n public void upgradeToHDEncrypted ( ) throws Exception { \n SINGLE \n wallet = new Wallet ( params ) ; \n public class WalletTest extends TestWithWallet { \n wallet . encrypt ( crypter , aesKey ) ; \n try { \n wallet . freshReceiveKey ( ) ; \n - } catch ( DeterministicUpgradeRequiredException e ) { \n + } catch ( DeterministicUpgradeRequiresPassword e ) { \n SINGLE \n } \n wallet . upgradeToDeterministic ( aesKey ) ;", "msg_token": "Add a forgotten Test annotation and fix the expected exception type"} {"diff": " public class DroidGap extends PhonegapActivity { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public int getPort ( ) { \n - return this . callbackServer . getPort ( ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove unused and unneeded getPort method"} {"diff": " public class MimeTypeMap { \n sMimeTypeMap . loadEntry ( STRING0 , STRING1 ) ; \n sMimeTypeMap . loadEntry ( STRING2 , STRING3 ) ; \n sMimeTypeMap . loadEntry ( STRING4 , STRING5 ) ; \n + sMimeTypeMap . loadEntry ( STRING6 , STRING7 ) ; \n + sMimeTypeMap . loadEntry ( STRING6 , STRING8 ) ; \n sMimeTypeMap . loadEntry ( STRING9 , STRING10 ) ; \n sMimeTypeMap . loadEntry ( STRING11 , STRING12 ) ; \n sMimeTypeMap . loadEntry ( STRING13 , STRING14 ) ;", "msg_token": "Add htm and html extensions to the map as text html"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class Slovenian extends Language { \n } \n \n public Set < String > getRelevantRuleIDs ( ) { \n - return null ; \n + final Set < String > ids = new HashSet < String > ( ) ; \n + ids . add ( STRING0 ) ; \n + ids . add ( STRING1 ) ; \n + ids . add ( STRING2 ) ; \n + ids . add ( STRING3 ) ; \n + ids . add ( STRING4 ) ; \n + ids . add ( STRING5 ) ; \n + SINGLE \n + return ids ; \n + \n } \n \n }", "msg_token": "add generic rules for Slovenian"} {"diff": " public final class ViolationPersister { \n } \n model . setSnapshotId ( snapshot . getId ( ) ) ; \n model . setChecksum ( checksum ) ; \n - session . save ( model ) ; \n + session . saveWithoutFlush ( model ) ; \n \n if ( model . getPermanentId ( ) == null ) { \n model . setPermanentId ( model . getId ( ) ) ; \n - session . save ( model ) ; \n + session . saveWithoutFlush ( model ) ; \n } \n \n SINGLE", "msg_token": "Fix portential hibernate error"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add public filter example to FluentIterable docs"} {"diff": " public abstract class JspContext { \n abstract public JspWriter getOut ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class JspContext { \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n public abstract ExpressionEvaluator getExpressionEvaluator ( ) ; \n \n \n public abstract ELContext getELContext ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class JspContext { \n COMMENT \n COMMENT \n COMMENT \n + @ deprecated \n public abstract VariableResolver getVariableResolver ( ) ; \n \n COMMENT", "msg_token": "Add some missing deprecation markers"} {"diff": " public class Nio2Endpoint extends AbstractEndpoint < Nio2Channel > { \n super . reset ( channel , soTimeout ) ; \n upgradeInit = false ; \n sendfileData = null ; \n - socketWriteBuffer = channel . getBufHandler ( ) . getWriteBuffer ( ) ; \n + socketWriteBuffer = ( channel == null ) ? null : channel . getBufHandler ( ) . getWriteBuffer ( ) ; \n } \n \n @ override", "msg_token": "Fix NPE that was swallowed"} {"diff": " public interface Player extends HumanEntity , CommandSender { \n COMMENT \n COMMENT \n public boolean isSleepingIgnored ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void playNote ( Location loc , byte instrument , byte note ) ; \n \n COMMENT \n COMMENT", "msg_token": "Added Player playNote"} {"diff": " public class TelephonyManager { \n \n COMMENT \n public TelephonyManager ( Context context ) { \n - context = context . getApplicationContext ( ) ; \n if ( sContext == null ) { \n - sContext = context ; \n + Context appContext = context . getApplicationContext ( ) ; \n + if ( appContext != null ) { \n + sContext = appContext ; \n + } else { \n + sContext = context ; \n + } \n \n sRegistry = ITelephonyRegistry . Stub . asInterface ( ServiceManager . getService ( \n STRING0 ) ) ; \n - } else if ( sContext != context ) { \n - Log . e ( TAG , STRING1 ) ; \n - Log . e ( TAG , STRING2 + sContext . getPackageName ( ) + STRING3 + \n - context . getPackageName ( ) ) ; \n } \n }", "msg_token": "Fix TelephonyManager to grab the best context"} {"diff": " public class TaskDetailPanel extends DetailPanel { \n } \n } ) ; \n \n - completeButton . setEnabled ( isCurrentUserAssignee ( ) ) ; \n + completeButton . setEnabled ( isCurrentUserAssignee ( ) || isCurrentUserOwner ( ) ) ; \n buttonLayout . addComponent ( completeButton ) ; \n } \n } \n public class TaskDetailPanel extends DetailPanel { \n return currentUser . equals ( task . getAssignee ( ) ) ; \n } \n \n + protected boolean isCurrentUserOwner ( ) { \n + String currentUser = ExplorerApp . get ( ) . getLoggedInUser ( ) . getId ( ) ; \n + return currentUser . equals ( task . getOwner ( ) ) ; \n + } \n + \n protected boolean canUserClaimTask ( ) { \n return taskService . createTaskQuery ( ) \n . taskCandidateUser ( ExplorerApp . get ( ) . getLoggedInUser ( ) . getId ( ) )", "msg_token": "owner can also complete task"} {"diff": " public class OsmandSettings { \n } \n \n SINGLE \n - public final CommonPreference < Integer > WAKE_ON_VOICE = new IntPreference ( STRING0 , NUMBER0 ) . makeProfile ( ) ; \n + public final CommonPreference < Integer > WAKE_ON_VOICE = new IntPreference ( STRING1 , NUMBER0 ) . makeProfile ( ) ; \n { \n SINGLE \n WAKE_ON_VOICE . setModeDefaultValue ( ApplicationMode . CAR , NUMBER0 ) ;", "msg_token": "create new preference integer"} {"diff": " public class AddActivity extends BaseActivity implements OnAddShowListener { \n \n private ViewPager mPager ; \n \n + public interface InitBundle { \n + COMMENT \n + COMMENT \n + COMMENT \n + String DEFAULT_TAB = STRING0 ; \n + } \n + \n @ override \n protected void onCreate ( Bundle savedInstanceState ) { \n SINGLE \n public class AddActivity extends BaseActivity implements OnAddShowListener { \n indicator . setOnPageChangeListener ( new MenuOnPageChangeListener ( getSlidingMenu ( ) ) ) ; \n \n getSlidingMenu ( ) . setTouchModeAbove ( SlidingMenu . TOUCHMODE_FULLSCREEN ) ; \n + \n + SINGLE \n + if ( getIntent ( ) != null && getIntent ( ) . getExtras ( ) != null ) { \n + int defaultTab = getIntent ( ) . getExtras ( ) . getInt ( InitBundle . DEFAULT_TAB ) ; \n + if ( defaultTab < mAdapter . getCount ( ) ) { \n + indicator . setCurrentItem ( defaultTab ) ; \n + } \n + } \n } \n \n @ override", "msg_token": "Support setting a default tab in AddActivity"} {"diff": " public class ListPopupWindowTest extends BaseInstrumentationTestCase < PopupTestAc \n mListPopupWindow . getBackground ( ) . getPadding ( rect ) ; \n \n int emulatedTapX = popupOnScreenXY [ NUMBER0 ] - rect . left - NUMBER1 ; \n - int emulatedTapY = popupOnScreenXY [ NUMBER2 ] + mListPopupWindow . getListView ( ) . getHeight ( ) + \n - rect . top + rect . bottom + NUMBER1 ; \n + int emulatedTapY = popupOnScreenXY [ NUMBER2 ] - NUMBER1 ; \n \n SINGLE \n SINGLE", "msg_token": "Fix ListPopupWindowTest testDismissalViaTouch"} {"diff": " public class GnssLocationProvider implements LocationProviderInterface { \n } \n \n if ( DEBUG ) Log . d ( TAG , STRING0 + mProviderRequest ) ; \n - if ( mProviderRequest . reportLocation && ! mDisableGps ) { \n + if ( mProviderRequest . reportLocation && ! mDisableGps && isEnabled ( ) ) { \n SINGLE \n updateClientUids ( mWorkSource ) ;", "msg_token": "Prevent startNavigating call when GPS is off"} {"diff": " final class ActivityStack { \n int rIndex = task . mActivities . indexOf ( r ) ; \n for ( -- rIndex ; rIndex >= NUMBER0 ; -- rIndex ) { \n final ActivityRecord blocker = task . mActivities . get ( rIndex ) ; \n - if ( ! blocker . finishing && blocker . visible ) { \n + if ( ! blocker . finishing ) { \n if ( DEBUG_VISBILITY ) Slog . v ( TAG , STRING0 + \n r + STRING1 + blocker ) ; \n break ;", "msg_token": "Relax conditions for including windows behind dialogs"} {"diff": " public class RunnerAndConfigurationSettingsImpl implements JDOMExternalizable , C \n \n setSingleton ( template . isSingleton ( ) ) ; \n setEditBeforeRun ( template . isEditBeforeRun ( ) ) ; \n + setActivateToolWindowBeforeRun ( template . isActivateToolWindowBeforeRun ( ) ) ; \n } \n \n @ suppresswarnings ( STRING0 )", "msg_token": "Should have option to Run in background"} {"diff": " public abstract class ManagerBase extends LifecycleMBeanBase implements Manager \n throws PatternSyntaxException { \n if ( sessionAttributeNameFilter == null || sessionAttributeNameFilter . length ( ) == NUMBER0 ) { \n sessionAttributeNamePattern = null ; \n + } else { \n + sessionAttributeNamePattern = Pattern . compile ( sessionAttributeNameFilter ) ; \n } \n - sessionAttributeNamePattern = Pattern . compile ( sessionAttributeNameFilter ) ; \n } \n \n \n public abstract class ManagerBase extends LifecycleMBeanBase implements Manager \n if ( sessionAttributeValueClassNameFilter == null || \n sessionAttributeValueClassNameFilter . length ( ) == NUMBER0 ) { \n sessionAttributeValueClassNamePattern = null ; \n + } else { \n + sessionAttributeValueClassNamePattern = \n + Pattern . compile ( sessionAttributeValueClassNameFilter ) ; \n } \n - sessionAttributeValueClassNamePattern = \n - Pattern . compile ( sessionAttributeValueClassNameFilter ) ; \n }", "msg_token": "Fix NPE when sessionAttributeNameFilter and sessionAttributeValueClassNameFilter is unset in cluster environment"} {"diff": " public final class Preconditions { \n return value ; \n } \n \n - public static void checkState ( boolean assertion , String message ) { \n - if ( ! assertion ) { \n - throw new IllegalStateException ( message ) ; \n - } \n - } \n - \n public static void checkArgument ( boolean assertion , String message ) { \n if ( ! assertion ) { \n throw new IllegalArgumentException ( message ) ;", "msg_token": "Removed unused and duplicate method"} {"diff": " public class SettingsActivity extends PreferenceActivity implements OnPreference \n STRING0 , STRING1 , STRING2 , STRING3 + incompleteSuffix , STRING4 , STRING5 + incompleteSuffix , \n STRING6 , STRING7 + incompleteSuffix , STRING8 + incompleteSuffix , STRING9 , STRING10 , STRING11 , \n STRING12 + incompleteSuffix , STRING13 , STRING14 , STRING15 , STRING16 , STRING17 , \n - STRING18 + incompleteSuffix , STRING19 , STRING20 + incompleteSuffix , STRING21 + incompleteSuffix , STRING22 + incompleteSuffix , STRING23 , \n + STRING18 , STRING19 , STRING20 + incompleteSuffix , STRING21 + incompleteSuffix , STRING22 + incompleteSuffix , STRING23 , \n STRING24 + incompleteSuffix } ; \n registerListPreference ( osmandSettings . PREFERRED_LOCALE , screen , entries , entrieValues ) ;", "msg_token": "Marking Slovenian as complete"} {"diff": " public class RunConfigurationModule implements JDOMExternalizable { \n public void checkForWarning ( ) throws RuntimeConfigurationException { \n final Module module = getModule ( ) ; \n if ( module != null ) { \n - if ( ModuleRootManager . getInstance ( module ) . getJdk ( ) == null ) { \n - throw new RuntimeConfigurationWarning ( ExecutionBundle . message ( STRING0 , module . getName ( ) ) ) ; \n - } \n if ( module . isDisposed ( ) ) { \n throw new RuntimeConfigurationError ( ExecutionBundle . message ( STRING1 , module . getName ( ) ) ) ; \n } \n + if ( ModuleRootManager . getInstance ( module ) . getJdk ( ) == null ) { \n + throw new RuntimeConfigurationWarning ( ExecutionBundle . message ( STRING0 , module . getName ( ) ) ) ; \n + } \n } \n else { \n throw new RuntimeConfigurationError ( ExecutionBundle . message ( STRING2 ) ) ;", "msg_token": "isDisposed check corrections"} {"diff": " public final class BluetoothAdapter { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class BluetoothAdapter { \n switch ( i % NUMBER0 ) { \n case NUMBER1 : \n case NUMBER2 : \n - if ( Character . digit ( c , NUMBER3 ) != - NUMBER2 ) { \n - break ; SINGLE \n + if ( ( c >= STRING0 && c <= STRING1 ) || ( c >= STRING2 && c <= STRING3 ) ) { \n + SINGLE \n + break ; \n } \n return false ; \n case NUMBER4 :", "msg_token": "Reject lowercase characters in checkBluetoothAddress"} {"diff": " public class AccessibilityManagerService extends IAccessibilityManager . Stub { \n userState . mEnabledServices . contains ( userState . mServiceChangingSoftKeyboardMode ) ; \n \n if ( ! serviceChangingSoftKeyboardModeIsEnabled ) { \n - Settings . Secure . putIntForUser ( mContext . getContentResolver ( ) , \n - Settings . Secure . ACCESSIBILITY_SOFT_KEYBOARD_MODE , \n - NUMBER0 , \n - userState . mUserId ) ; \n + final long identity = Binder . clearCallingIdentity ( ) ; \n + try { \n + Settings . Secure . putIntForUser ( mContext . getContentResolver ( ) , \n + Settings . Secure . ACCESSIBILITY_SOFT_KEYBOARD_MODE , \n + NUMBER0 , \n + userState . mUserId ) ; \n + } finally { \n + Binder . restoreCallingIdentity ( identity ) ; \n + } \n userState . mSoftKeyboardShowMode = NUMBER0 ; \n userState . mServiceChangingSoftKeyboardMode = null ; \n }", "msg_token": "Fix bug where service disabled with disableSelf would not reset soft keyboard"} {"diff": " public class FormController { \n } \n \n @ requestmapping ( method = RequestMethod . POST ) \n - public String processSubmit ( @ valid FormBean formBean , BindingResult result , boolean ajaxRequest , \n - Model model , RedirectAttributes redirectAttrs ) { \n + public String processSubmit ( @ valid FormBean formBean , BindingResult result , \n + @ modelattribute ( STRING0 ) boolean ajaxRequest , \n + Model model , RedirectAttributes redirectAttrs ) { \n if ( result . hasErrors ( ) ) { \n return null ; \n }", "msg_token": "Add ModelAttribute to ajaxRequest argument"} {"diff": " public class ShadowPreference { \n this . onClickListener = onPreferenceClickListener ; \n } \n \n + @ implementation \n public Preference . OnPreferenceClickListener getOnPreferenceClickListener ( ) { \n return onClickListener ; \n } \n public class ShadowPreference { \n \n public boolean click ( ) { \n return onClickListener . onPreferenceClick ( realPreference ) ; \n + } \n \n @ implementation \n public void setIntent ( Intent i ) { \n public class PreferenceActivityTest { \n \n @ test \n public void shouldGetListView ( ) { \n - assertThat ( activity . getListView ( ) , nullValue ( ) ) ; \n shadow . setListView ( new ListView ( new Activity ( ) ) ) ; \n assertThat ( activity . getListView ( ) , notNullValue ( ) ) ; \n }", "msg_token": "fixed some failing robo tests"} {"diff": " public final class BlockStoreContextTest { \n COMMENT \n @ test ( timeout = NUMBER0 ) \n public void acquireMasterLimitTest ( ) throws Exception { \n + BlockStoreContext . INSTANCE . reset ( ) ; \n + \n final List < BlockMasterClient > clients = Lists . newArrayList ( ) ; \n \n SINGLE \n public final class BlockStoreContextTest { \n COMMENT \n @ test ( timeout = NUMBER0 ) \n public void acquireWorkerLimitTest ( ) throws Exception { \n + BlockStoreContext . INSTANCE . reset ( ) ; \n + \n SINGLE \n SINGLE \n Whitebox . setInternalState ( NetworkAddressUtils . class , STRING0 , STRING1 ) ;", "msg_token": "Fixing a failing test"} {"diff": " public class CalendarPickerView extends ListView { \n } \n } \n \n - adapter . notifyDataSetChanged ( ) ; \n + validateAndUpdate ( ) ; \n } \n \n public void clearHighlightedDates ( ) { \n public class CalendarPickerView extends ListView { \n highlightedCells . clear ( ) ; \n highlightedCals . clear ( ) ; \n \n - adapter . notifyDataSetChanged ( ) ; \n + validateAndUpdate ( ) ; \n } \n \n COMMENT", "msg_token": "make updates consistent"} {"diff": " public class AprEndpoint extends AbstractEndpoint < Long > { \n wrapper . pollerFlags = wrapper . pollerFlags | \n ( info . read ( ) ? Poll . APR_POLLIN : NUMBER0 ) | \n ( info . write ( ) ? Poll . APR_POLLOUT : NUMBER0 ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + removeFromPoller ( info . socket ) ; \n if ( ! addToPoller ( info . socket , wrapper . pollerFlags ) ) { \n closeSocket ( info . socket ) ; \n } else {", "msg_token": "Avoid unexpected closure of the socket if the socket is first registered"} {"diff": " public class GlobalToolbar extends Toolbar \n addLeftSeparator ( ) ; \n ToolbarButton deployButton = \n commands_ . shinyAppsDeploy ( ) . createToolbarButton ( ) ; \n - deployButton . setText ( STRING0 ) ; \n + deployButton . setText ( STRING1 ) ; \n addLeftWidget ( deployButton ) ; \n }", "msg_token": "change caption to DeployApp"} {"diff": " public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n @ consolecommand ( aliases = { STRING0 } , description = STRING1 ) \n public void info ( ) { \n if ( currentDatabaseName != null ) { \n - out . println ( STRING2 + currentDatabaseName ) ; \n + out . println ( STRING2 + currentDatabaseName + STRING3 + currentDatabase . getURL ( ) + STRING4 ) ; \n clusters ( ) ; \n classes ( ) ; \n indexes ( ) ; \n public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n } \n out . println ( STRING5 ) ; \n out . printf ( STRING6 , totalElements ) ; \n - out . println ( STRING7 ) ; \n + out . println ( STRING8 ) ; \n } else \n out . println ( STRING9 ) ; \n }", "msg_token": "improved info message by displaying also the db URL"} {"diff": " public class Cube extends BaseObject3D { \n \n int [ ] indices = { \n NUMBER0 , NUMBER1 , NUMBER2 , NUMBER0 , NUMBER2 , NUMBER3 , \n - NUMBER2 , NUMBER1 , NUMBER0 , NUMBER2 , NUMBER3 , NUMBER0 , \n NUMBER4 , NUMBER5 , NUMBER6 , NUMBER4 , NUMBER6 , NUMBER7 , \n NUMBER8 , NUMBER9 , NUMBER10 , NUMBER8 , NUMBER10 , NUMBER11 , \n NUMBER12 , NUMBER13 , NUMBER14 , NUMBER12 , NUMBER14 , NUMBER15 , \n public class Cube extends BaseObject3D { \n } ; \n int [ ] skyboxIndices = { \n NUMBER2 , NUMBER1 , NUMBER0 , NUMBER3 , NUMBER2 , NUMBER0 , \n - NUMBER0 , NUMBER1 , NUMBER2 , NUMBER0 , NUMBER3 , NUMBER2 , \n NUMBER6 , NUMBER5 , NUMBER4 , NUMBER7 , NUMBER6 , NUMBER4 , \n NUMBER10 , NUMBER9 , NUMBER8 , NUMBER11 , NUMBER10 , NUMBER8 , \n NUMBER14 , NUMBER13 , NUMBER12 , NUMBER15 , NUMBER14 , NUMBER12 ,", "msg_token": "Remove double sided triangles from Cube"} {"diff": " public class AnimatedRotateDrawable extends Drawable implements Drawable . Callbac \n float px = st . mPivotXRel ? ( w * st . mPivotX ) : st . mPivotX ; \n float py = st . mPivotYRel ? ( h * st . mPivotY ) : st . mPivotY ; \n \n - canvas . rotate ( mCurrentDegrees , px , py ) ; \n + canvas . rotate ( mCurrentDegrees , px + bounds . left , py + bounds . top ) ; \n \n drawable . draw ( canvas ) ;", "msg_token": "Fix wobbly spinners"} {"diff": " public class GitBranchConfigurations implements PersistentStateComponent < GitBran \n if ( LOG . isDebugEnabled ( ) ) { \n LOG . debug ( STRING0 + root . getPath ( ) ) ; \n } \n - GitSimpleHandler h = new GitSimpleHandler ( myProject , root , GitCommand . SHOW ) ; \n + GitSimpleHandler h = new GitSimpleHandler ( myProject , root , GitCommand . LOG ) ; \n h . setNoSSH ( true ) ; \n - h . addParameters ( STRING1 , STRING2 ) ; \n + h . addParameters ( STRING3 , STRING1 , STRING2 ) ; \n try { \n return h . run ( ) . trim ( ) ; \n } \n public class GitBranchConfigurations implements PersistentStateComponent < GitBran \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed non tag commit dectection"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing header"} {"diff": " public class MediaNotificationManager extends BroadcastReceiver { \n openUI . setFlags ( Intent . FLAG_ACTIVITY_SINGLE_TOP ) ; \n mContentIntent = PendingIntent . getActivity ( mService , NUMBER0 , openUI , \n PendingIntent . FLAG_CANCEL_CURRENT ) ; \n + \n + SINGLE \n + SINGLE \n + mNotificationManager . cancelAll ( ) ; \n } \n \n protected int getNotificationColor ( ) {", "msg_token": "Cancel notifications at the service start"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public interface Encoder < T > \n { \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n boolean encode ( T target ) ;", "msg_token": "Fixing Javadoc bug"} {"diff": " public final class Files { \n COMMENT \n public static void createParentDirs ( File file ) throws IOException { \n File parent = file . getCanonicalFile ( ) . getParentFile ( ) ; \n - SINGLE \n + if ( parent == null ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + return ; \n + } \n parent . mkdirs ( ) ; \n - if ( ! parent . exists ( ) ) { SINGLE \n + if ( ! parent . isDirectory ( ) ) { \n throw new IOException ( STRING0 + file ) ; \n } \n }", "msg_token": "Handle some edge cases in createParentDirs"} {"diff": " public class TestStatusLine extends JPanel { \n final long startTime , \n final long endTime ) { \n myState . clear ( ) ; \n + if ( testsTotal == NUMBER0 ) return ; \n if ( endTime == NUMBER0 ) { \n myState . append ( finishedTestsCount + STRING0 + testsTotal + STRING1 + ( failuresCount + ignoredTestsCount > NUMBER0 ? STRING2 : STRING3 ) ) ; \n appendFailuresAndIgnores ( failuresCount , ignoredTestsCount ) ;", "msg_token": "don t append done message when no tests were found"} {"diff": " public class HttpConfiguration { \n @ jsonproperty \n private Duration soLingerTime = null ; \n \n - @ min ( NUMBER0 ) \n @ jsonproperty \n - private int lowResourcesConnectionThreshold = NUMBER1 ; \n + private int lowResourcesConnectionThreshold = NUMBER2 ; \n \n @ notnull \n @ jsonproperty \n - private Duration lowResourcesMaxIdleTime = Duration . seconds ( NUMBER3 ) ; \n + private Duration lowResourcesMaxIdleTime = Duration . seconds ( NUMBER2 ) ; \n \n @ notnull \n @ jsonproperty", "msg_token": "Fix low resource threshold and maxIdleTime defaults to Jetty s"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n boolean postHasUrl = hasPost ( ) && mPost . hasUrl ( ) ; \n MenuItem mnuBrowse = menu . findItem ( R . id . menu_browse ) ; \n if ( mnuBrowse != null ) { \n - mnuBrowse . setVisible ( postHasUrl || ( ( mFallbackUri != null ) && AccountHelper . isSignedIn ( ) ) ) ; \n + mnuBrowse . setVisible ( postHasUrl || ( mFallbackUri != null ) ) ; \n } \n MenuItem mnuShare = menu . findItem ( R . id . menu_share ) ; \n if ( mnuShare != null ) {", "msg_token": "Always offer escape to ext browser as fallback"} {"diff": " public class AbstractRestFunctionalTestBase extends SharedServerTestBase impleme \n @ before \n public void setUp ( ) \n { \n - gen ( ) . setSection ( STRING0 ) ; \n + gen ( ) . setSection ( getDocumentationSectionName ( ) ) ; \n } \n + \n protected String doCypherRestCall ( String endpoint , String script , Status status , Pair < String , String > . . . params ) { \n data . get ( ) ; \n String parameterString = createParameterString ( params ) ; \n public class AbstractRestFunctionalTestBase extends SharedServerTestBase impleme \n gen ( ) . description ( description ) ; \n \n } \n + \n + protected String getDocumentationSectionName ( ) { \n + return STRING0 ; \n + } \n }", "msg_token": "Added ability to tell the documenting REST tests where to put output to help with name clashes"} {"diff": " public class BinaryRoutePlanner { \n \n \n SINGLE \n - SINGLE \n - \n - \n SINGLE \n SINGLE \n COMMENT \n public class BinaryRoutePlanner { \n ctx . timeToLoad = NUMBER0 ; \n ctx . visitedSegments = NUMBER0 ; \n ctx . timeToCalculate = System . nanoTime ( ) ; \n - ctx . firstRoadId = ( start . getRoad ( ) . id < < NUMBER1 ) + start . getSegmentStart ( ) ; \n if ( ctx . config . initialDirection != null ) { \n + ctx . firstRoadId = ( start . getRoad ( ) . id < < NUMBER1 ) + start . getSegmentStart ( ) ; \n double plusDir = start . getRoad ( ) . directionRoute ( start . segmentStart , true ) ; \n double diff = plusDir - ctx . config . initialDirection ; \n if ( Math . abs ( MapUtils . alignAngleDifference ( diff ) ) <= Math . PI / NUMBER2 ) {", "msg_token": "Fix first road oneway problem"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n + @ ignore \n public class BaseIndexTest { \n \n private static final String TEST_NODE_NAME = STRING0 ;", "msg_token": "Temporarily disable test"} {"diff": " public abstract class BaseActions < V > implements ContextAware < V > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int currentIndex ( ) { \n + check ( ) ; \n + return context . getCurrentIndex ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add convenience currentIndex method to BaseActions"} {"diff": " public class AQuery extends AbstractAQuery < AQuery > { \n super ( context ) ; \n } \n \n + public AQuery ( Activity act , View root ) { \n + super ( act , root ) ; \n + } \n + \n \n }", "msg_token": "Add back missing constructor"} {"diff": " public class MessageListFragment extends SherlockFragment implements OnItemClick \n private void setSelectionState ( boolean selected ) { \n if ( selected ) { \n mSelectedCount = mAdapter . getCount ( ) ; \n + if ( mSelectedCount == NUMBER0 ) { \n + SINGLE \n + return ; \n + } \n + \n for ( int i = NUMBER0 , end = mSelectedCount ; i < end ; i ++ ) { \n mSelected . put ( i , true ) ; \n }", "msg_token": "Select all now won t start selection mode when there are no messages"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public abstract class OutStream extends OutputStream { \n protected final TachyonFile mFile ; \n public abstract class OutStream extends OutputStream { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public abstract void cancel ( ) throws IOException ;", "msg_token": "Clarify the class comment of OutStream"} {"diff": " public abstract class AbstractCacheRecordStore < R extends CacheRecord , CRM extend \n return doPutRecord ( key , record , SOURCE_NOT_AVAILABLE ) ; \n } \n \n - protected final R doPutRecord ( Data key , R record , String source ) { \n + protected R doPutRecord ( Data key , R record , String source ) { \n R oldRecord = records . put ( key , record ) ; \n if ( oldRecord != null ) { \n invalidateEntry ( key , source ) ;", "msg_token": "removed final from doPutRecord method of AbstactCacheRecordStore to override it on enterprise"} {"diff": " public final class FileSystemWorker extends AbstractWorker { \n COMMENT \n @ override \n public void stop ( ) { \n + mSessionCleaner . stop ( ) ; \n if ( mFilePersistenceService != null ) { \n mFilePersistenceService . cancel ( true ) ; \n }", "msg_token": "Properly stop the file worker session cleaner thread"} {"diff": " public class PropertyWriterTest \n assertEquals ( NUMBER0 , propertyStore . getHighId ( ) ) ; \n assertEquals ( NUMBER1 , propertyRecordId ) ; \n \n - List < PropertyBlock > propertyBlocks = new ArrayList ( propertyStore . getRecord ( propertyRecordId ) . getPropertyBlocks ( ) ) ; \n + List < PropertyBlock > propertyBlocks = new ArrayList < PropertyBlock > ( propertyStore . getRecord ( propertyRecordId ) . getPropertyBlocks ( ) ) ; \n assertEquals ( NUMBER1 , propertyBlocks . get ( NUMBER1 ) . getKeyIndexId ( ) ) ; \n assertEquals ( NUMBER2 , propertyBlocks . get ( NUMBER1 ) . getSingleValueInt ( ) ) ; \n assertEquals ( NUMBER0 , propertyBlocks . get ( NUMBER0 ) . getKeyIndexId ( ) ) ; \n public class PropertyWriterTest \n propertyStore . close ( ) ; \n } \n \n + @ suppresswarnings ( { STRING0 } ) \n private HashMap defaultConfig ( ) \n { \n HashMap config = new HashMap ( ) ;", "msg_token": "Fix generics warnings"} {"diff": " public class PrepareContractionHierarchies extends AbstractAlgoPreparation < Prepa \n if ( neighborWn . priority != tmpOld ) { \n sortedNodes . update ( nn , tmpOld , neighborWn . priority ) ; \n } \n + \n + SINGLE \n + SINGLE \n ( ( LevelGraphStorage ) g ) . disconnect ( iter , EdgeSkipIterator . NO_EDGE , false ) ; \n } \n }", "msg_token": "looks like disconnect was the key for perf boost but storing second edge id should also have its boosts properties"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ActionUtil { \n \n RawMetadataProcessorUtil . generateMetadata ( fileVersion ) ; \n \n - if ( fileVersion . isInTrash ( ) ) { \n + String cmd = ParamUtil . getString ( request , Constants . CMD ) ; \n + \n + if ( fileVersion . isInTrash ( ) && \n + ! cmd . equals ( Constants . MOVE_FROM_TRASH ) ) { \n + \n throw new NoSuchFileEntryException ( ) ; \n } \n }", "msg_token": "Move file entry to trash when folder is deleted"} {"diff": " import NAMESPACE ; \n public abstract class SourcePositionHighlighter { \n public static final ExtensionPointName < SourcePositionHighlighter > EP_NAME = ExtensionPointName . create ( STRING0 ) ; \n \n - abstract TextRange getHighlightRange ( SourcePosition sourcePosition ) ; \n + public abstract TextRange getHighlightRange ( SourcePosition sourcePosition ) ; \n \n @ nullable \n public static TextRange getHighlightRangeFor ( SourcePosition sourcePosition ) {", "msg_token": "made getHighlightRange public"} {"diff": " public final class Beans { \n COMMENT \n COMMENT \n public static PooledConnectionFactory newPooledConnectionFactory ( final AbstractLdapProperties l ) { \n + public static PooledConnectionFactory newPooledConnectionFactory ( final AbstractLdapProperties l ) { \n final ConnectionPool cp = newBlockingConnectionPool ( l ) ; \n return new PooledConnectionFactory ( cp ) ; \n } \n public class LdapAuthenticationConfiguration { \n } \n \n private static PooledCompareAuthenticationHandler getPooledCompareAuthenticationHandler ( final LdapAuthenticationProperties l ) { \n - final PooledCompareAuthenticationHandler handler = new PooledCompareAuthenticationHandler ( \n - Beans . newPooledConnectionFactory ( l ) ) ; \n + final PooledCompareAuthenticationHandler handler = new PooledCompareAuthenticationHandler ( Beans . newPooledConnectionFactory ( l ) ) ; \n handler . setPasswordAttribute ( l . getPrincipalAttributePassword ( ) ) ; \n return handler ; \n }", "msg_token": "Cleaned up formatting"} {"diff": " public class XActivityManagerService extends XHook { \n private static boolean mSleeping = false ; \n \n private XActivityManagerService ( Methods method , int sdk ) { \n - super ( null , method . name ( ) , null ) ; \n + super ( null , method . name ( ) , null , sdk ) ; \n mMethod = method ; \n } \n \n public class XLocationManager extends XHook { \n } ; \n SINGLE \n \n + SINGLE \n + \n public static List < XHook > getInstances ( Object instance ) { \n String className = instance . getClass ( ) . getName ( ) ; \n List < XHook > listHook = new ArrayList < XHook > ( ) ;", "msg_token": "Fix activity manager service SDK"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class EmailLens implements Lens { \n } \n \n protected Set < Uri > getAdditionalAttachments ( ) { \n - return new HashSet < > ( ) ; \n + return Collections . emptySet ( ) ; \n } \n }", "msg_token": "Don t allocate a Set when there are not attachments"} {"diff": " public class NotificationPanelView extends PanelView implements \n SINGLE \n mQsMinExpansionHeight = mKeyguardShowing ? NUMBER0 : mHeader . getCollapsedHeight ( ) + mQsPeekHeight ; \n mQsMaxExpansionHeight = mHeader . getExpandedHeight ( ) + mQsContainer . getHeight ( ) ; \n + positionClockAndNotifications ( ) ; \n if ( mQsExpanded ) { \n if ( mQsFullyExpanded ) { \n mQsExpansionHeight = mQsMaxExpansionHeight ; \n public class NotificationPanelView extends PanelView implements \n } \n } else { \n setQsExpansion ( mQsMinExpansionHeight + mLastOverscroll ) ; \n - positionClockAndNotifications ( ) ; \n mNotificationStackScroller . setStackHeight ( getExpandedHeight ( ) ) ; \n updateHeader ( ) ; \n }", "msg_token": "Fixed a bug where the notifications and the clock could jump"} {"diff": " public class AddShortcut \n else \n { \n pickerIntent \n - . putExtra ( STRING0 , STRING1 ) \n + . putExtra ( STRING0 , STRING2 ) \n . setAction ( Intent . ACTION_PICK ) ; \n } \n startActivityForResult ( pickerIntent , OP_MAKE_SHORTCUT ) ;", "msg_token": "Allow external file picker"} {"diff": " public static void main ( String [ ] args ) throws Exception { \n w . flush ( ) ; \n Object r = LispReader . read ( rdr , false , EOF , false ) ; \n if ( r == EOF ) \n + { \n + w . write ( STRING0 ) ; \n + w . flush ( ) ; \n break ; \n + } \n Object ret = Compiler . eval ( r ) ; \n RT . print ( ret , w ) ; \n w . write ( STRING1 ) ;", "msg_token": "added newline on EOF"} {"diff": " public class DeepLearningSpiralsTest extends TestUtil { \n CM . toASCII ( sb ) ; \n double error = new ConfusionMatrix ( CM . cm ) . err ( ) ; \n Log . info ( sb ) ; \n - if ( error >= FLOAT0 ) { \n - Assert . fail ( STRING0 + error + STRING1 ) ; \n + if ( error >= FLOAT1 ) { \n + Assert . fail ( STRING2 + error + STRING1 ) ; \n } \n pred . delete ( ) ; \n mymodel . delete ( ) ;", "msg_token": "Remove apparent false positive from DL spirals"} {"diff": " public class MapActivityActions implements DialogProvider { \n } ) . reg ( ) ; \n \n optionsMenuHelper . item ( R . string . settings_activity ) \n - . icons ( R . drawable . ic_action_settings_light , R . drawable . ic_action_settings_dark ) \n + . icons ( R . drawable . ic_action_settings_dark , R . drawable . ic_action_settings_light ) \n . listen ( new OnContextMenuClick ( ) { \n @ override \n public boolean onContextMenuClick ( ArrayAdapter < ? > adapter , int itemId , int pos , boolean isChecked ) {", "msg_token": "Fixed icons in drawer"} {"diff": " public class OObjectProxyMethodHandler implements MethodHandler { \n throws NoSuchMethodException , IllegalAccessException , InvocationTargetException { \n if ( ! idOrVersionField ) { \n if ( value == null ) { \n - final Object docValue = getDocFieldValue ( self , fieldName ) ; \n - if ( docValue != null ) { \n - value = lazyLoadField ( self , fieldName , docValue , value ) ; \n + if ( loadedFields . containsKey ( fieldName ) && loadedFields . get ( fieldName ) . compareTo ( doc . getRecordVersion ( ) ) == NUMBER0 ) { \n + return null ; \n + } else { \n + final Object docValue = getDocFieldValue ( self , fieldName ) ; \n + if ( docValue != null ) { \n + value = lazyLoadField ( self , fieldName , docValue , value ) ; \n + } \n } \n } else { \n if ( ( ( value instanceof Collection < ? > || value instanceof Map < ? , ? > ) && ! ( value instanceof OObjectLazyMultivalueElement ) )", "msg_token": "added fix to null value management"} {"diff": " public class JpaConsumerIdleMessageTest extends CamelTestSupport { \n \n @ test \n public void testConsumeIdleMessages ( ) throws Exception { \n - Thread . sleep ( NUMBER0 ) ; \n + Thread . sleep ( NUMBER1 ) ; \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMinimumMessageCount ( NUMBER2 ) ; \n assertMockEndpointsSatisfied ( ) ;", "msg_token": "fixed a unit test which cause timing issues on slow CI server"} {"diff": " public class NeuralNetConfiguration implements Serializable , Cloneable { \n } \n \n public Object [ ] getExtraArgs ( ) { \n - \n + if ( layer == null || layer . getActivationFunction ( ) == null ) return new Object [ NUMBER0 ] ; \n switch ( layer . getActivationFunction ( ) ) { \n case STRING0 : \n return new Object [ ] { leakyreluAlpha } ;", "msg_token": "Fix NeuralNetConfiguration getExtraArgs for no layer no activation fn edge case"} {"diff": " public class ReplaceMethodDuplicatesTestSuite { \n testSuite . addTestSuite ( FindMethodDuplicatesMiscTest . class ) ; \n testSuite . addTestSuite ( FindMethodDuplicatesTest . class ) ; \n testSuite . addTestSuite ( SuggestedParamTypesTest . class ) ; \n + testSuite . addTestSuite ( SuggestedReturnTypesTest . class ) ; \n return testSuite ; \n } \n }", "msg_token": "include test for acceptable return types in extract suite"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class PlainSQLTest extends AbstractTest { \n assertEquals ( STRING0 , create . renderInlined ( c2 ) ) ; \n assertEquals ( STRING1 , create . renderNamedParams ( c2 ) ) ; \n \n - assertEquals ( STRING2 , DSL . using ( POSTGRES ) . render ( c2 ) ) ; \n - assertEquals ( STRING0 , DSL . using ( POSTGRES ) . renderInlined ( c2 ) ) ; \n - assertEquals ( STRING1 , DSL . using ( POSTGRES ) . renderNamedParams ( c2 ) ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n @ test", "msg_token": "These tests don t mean anything"} {"diff": " class Connection implements ManagedResource \n { \n private long timeOfLastStateChange = NUMBER0 ; \n private final long correlationId ; \n - private final int positionBitsToShift ; \n - private final int termLengthMask ; \n private final int sessionId ; \n + private final int termLengthMask ; \n + private final int positionBitsToShift ; \n \n - private final LogBuffers logBuffers ; \n + private final Position subscriberPosition ; \n private final UnsafeBuffer [ ] termBuffers ; \n private final Header header ; \n - private final Position subscriberPosition ; \n + private final LogBuffers logBuffers ; \n \n public Connection ( \n final int sessionId ,", "msg_token": "Reorder fields for common usage"} {"diff": " public abstract class XmppActivity extends Activity { \n if ( conversation != null ) { \n conversation . setNextEncryption ( Message . ENCRYPTION_PGP ) ; \n xmppConnectionService . databaseBackend . updateConversation ( conversation ) ; \n + refreshUi ( ) ; \n } \n if ( onSuccess != null ) { \n runOnUiThread ( onSuccess ) ;", "msg_token": "refresh UI to redraw message hint after switching to pgp"} {"diff": " class IonDrawable extends LayerDrawable { \n try { \n gifDecoder . nextFrame ( ) ; \n } \n + catch ( OutOfMemoryError e ) { \n + exception = new Exception ( e ) ; \n + } \n catch ( Exception e ) { \n exception = e ; \n }", "msg_token": "watch for gif decode OOM"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n mScreenRotationAnimation = null ; \n } \n updateRotation = true ; \n - Surface . unfreezeDisplay ( NUMBER0 ) ; \n } \n + Surface . unfreezeDisplay ( NUMBER0 ) ; \n \n mInputMonitor . thawInputDispatchingLw ( ) ;", "msg_token": "Always unfreeze display"} {"diff": " public class AndroidInputHandler14 extends AndroidInputHandler implements View . O \n if ( isJoystick && joyInput != null ) { \n SINGLE \n SINGLE \n - consumed = consumed || ( ( AndroidJoyInput14 ) joyInput ) . onKey ( event ) ; \n + SINGLE \n + consumed = consumed | ( ( AndroidJoyInput14 ) joyInput ) . onKey ( event ) ; \n } \n \n return consumed ;", "msg_token": "Fix issue handling key events that are tied to both keyboard and gamepad"} {"diff": " public class PartitionManager { \n Iterable < List < Object > > tups = KafkaUtils . generateTuples ( _spoutConfig , toEmit . msg ) ; \n if ( tups != null ) { \n for ( List < Object > tup : tups ) { \n - collector . emit ( tup , new KafkaMessageId ( _partition , toEmit . offset ) ) ; \n + if ( _spoutConfig . topicAsStreamId ) { \n + collector . emit ( _spoutConfig . topic , tup , new KafkaMessageId ( _partition , toEmit . offset ) ) ; \n + } else { \n + collector . emit ( tup , new KafkaMessageId ( _partition , toEmit . offset ) ) ; \n + } \n } \n break ; \n } else { \n public class SpoutConfig extends KafkaConfig implements Serializable { \n public String zkRoot = null ; \n public String id = null ; \n \n + SINGLE \n + public boolean topicAsStreamId = false ; \n + \n SINGLE \n public long stateUpdateIntervalMs = NUMBER0 ;", "msg_token": "Added a topicAsStreamId flag to SpoutConfig"} {"diff": " public abstract class Drawable { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setTint ( ColorStateList tint , PorterDuff . Mode tintMode ) { } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove old setTint from Drawable"} {"diff": " public final class MediaRouter { \n final Object obj = msg . obj ; \n final int arg = msg . arg1 ; \n \n + if ( what == MSG_ROUTE_CHANGED \n + && getSelectedRoute ( ) . getId ( ) . equals ( ( ( RouteInfo ) obj ) . getId ( ) ) ) { \n + updateSelectedRouteIfNeeded ( true ) ; \n + } \n + \n SINGLE \n syncWithSystemProvider ( what , obj ) ; \n \n abstract class SystemMediaRouteProvider extends MediaRouteProvider { \n if ( mRouteTypes != newRouteTypes || mActiveScan != newActiveScan ) { \n mRouteTypes = newRouteTypes ; \n mActiveScan = newActiveScan ; \n - updateCallback ( ) ; \n updateSystemRoutes ( ) ; \n } \n } \n abstract class SystemMediaRouteProvider extends MediaRouteProvider { \n } \n \n private void updateSystemRoutes ( ) { \n + updateCallback ( ) ; \n boolean changed = false ; \n for ( Object routeObj : MediaRouterJellybean . getRoutes ( mRouterObj ) ) { \n changed |= addSystemRouteNoPublish ( routeObj ) ;", "msg_token": "Make getSelectedRoute return the recent infomation"} {"diff": " public class NioEndpoint extends AbstractEndpoint < NioChannel > { \n } catch ( Exception x ) { \n log . error ( STRING0 , x ) ; \n } \n - } else if ( state == SocketState . LONG && ka . isAsync ( ) && ka . interestOps ( ) > NUMBER0 ) { \n - SINGLE \n - ka . getPoller ( ) . add ( socket , ka . interestOps ( ) ) ; \n } \n } else if ( handshake == - NUMBER1 ) { \n if ( key != null ) {", "msg_token": "Remove unnecessary code"} {"diff": " public class CucumberScenarioOutline extends CucumberTagStatement { \n \n SINGLE \n String name = replaceTokens ( matchedColumns , headerCells , exampleCells , step . getName ( ) ) ; \n + if ( name . isEmpty ( ) ) { \n + throw new CucumberException ( STRING0 + step . getName ( ) ) ; \n + } \n \n return new ExampleStep ( \n step . getComments ( ) , \n public class CucumberScenarioOutline extends CucumberTagStatement { \n \n if ( text . contains ( token ) ) { \n text = text . replace ( token , value ) ; \n - if ( text . isEmpty ( ) ) { \n - throw new CucumberException ( STRING1 + token + STRING2 ) ; \n - } \n matchedColumns . add ( col ) ; \n } \n }", "msg_token": "Moved the check for empty step name to take place at step generation instead of example table value substitution"} {"diff": " public class PluginManager implements IPluginManager , PluginStateListener { \n protected File download ( String url , boolean verifyChecksum ) throws IOException { \n File file = downloadFile ( url ) ; \n \n + if ( ! verifyChecksum ) { \n + return file ; \n + } \n + \n File sha1File = null ; \n try { \n sha1File = downloadFile ( url + STRING0 ) ; \n public class PluginManager implements IPluginManager , PluginStateListener { \n \n } \n \n - if ( sha1File == null && md5File == null && verifyChecksum ) { \n + if ( sha1File == null && md5File == null ) { \n throw new IOException ( STRING1 + url ) ; \n }", "msg_token": "Fix broken implementation of noverify for installing a plugin from a url"} {"diff": " public class CommandLineOptions { \n options = new ArrayList < Option > ( ) ; \n options . add ( new Option ( STRING0 , null , STRING1 ) ) ; \n options . add ( new Option ( STRING2 , null , STRING3 ) ) ; \n - options . add ( new Option ( STRING4 , null , STRING5 ) ) ; \n + options . add ( new Option ( STRING4 , null , STRING6 ) ) ; \n options . add ( new Option ( STRING7 , STRING8 , STRING9 ) ) ; \n options . add ( new Option ( STRING10 , STRING11 , STRING12 ) ) ; \n options . add ( new Option ( STRING13 , STRING11 , STRING14 ) ) ;", "msg_token": "Economical mode generates suggestion database"} {"diff": " public abstract class AbstractPeriod \n COMMENT \n public final Instant addTo ( ReadableInstant instant , int scalar ) { \n long instantMillis = DateTimeUtils . getInstantMillis ( instant ) ; \n - return new Instant ( addTo ( instantMillis , scalar , instant . getChronology ( ) ) ) ; \n + Chronology chrono = DateTimeUtils . getInstantChronology ( instant , null ) ; \n + return new Instant ( addTo ( instantMillis , scalar , chrono ) ) ; \n } \n \n COMMENT \n public class MutableInterval \n COMMENT \n public void setDurationBeforeEnd ( ReadableDuration duration ) { \n long durationMillis = DateTimeUtils . getDurationMillis ( duration ) ; \n - setStartMillis ( FieldUtils . safeAdd ( getStartMillis ( ) , - durationMillis ) ) ; \n + setStartMillis ( FieldUtils . safeAdd ( getEndMillis ( ) , - durationMillis ) ) ; \n } \n \n SINGLE", "msg_token": "Fix bug from testing"} {"diff": " public abstract class RepositoryPage extends BasePage { \n return submodules ; \n } \n \n - protected Map < String , SubmoduleModel > getSubmodules ( ) { \n - return submodules ; \n - } \n - \n protected SubmoduleModel getSubmodule ( String path ) { \n SubmoduleModel model = submodules . get ( path ) ; \n if ( model == null ) {", "msg_token": "Eliminate unused method"} {"diff": " public class PyQuickFixTest extends PyLightFixtureTestCase { \n \n public void testSimplifyBooleanCheckQuickFix ( ) { \n doInspectionTest ( STRING0 , PySimplifyBooleanCheckInspection . class , \n - PyBundle . message ( STRING1 ) , true , true ) ; \n + PyBundle . message ( STRING2 , STRING3 ) , true , true ) ; \n } \n \n public void testFromFutureImportQuickFix ( ) {", "msg_token": "fixed failed test in SimplifyBooleanCheck"} {"diff": " public class TestConvolutionLayer { \n int inputHeight = NUMBER0 ; \n int kernelWidth = NUMBER1 ; \n int kernelHeight = NUMBER1 ; \n - int [ ] stride = new int [ ] { NUMBER2 , NUMBER2 } ; \n + int [ ] stride = new int [ ] { NUMBER3 , NUMBER3 } ; \n int [ ] padding = new int [ ] { NUMBER4 , NUMBER4 } ; \n int nIn = NUMBER2 ; \n int nOut = NUMBER5 ; \n public class TestConvolutionLayer { \n INDArray input = next . getFeatureMatrix ( ) . reshape ( next . numExamples ( ) , NUMBER2 , inputWidth , inputHeight ) ; \n INDArray conv = layer . activate ( input ) ; \n \n - SINGLE \n - int featureMapWidth = NUMBER5 ; \n + int featureMapWidth = ( inputWidth - kernelWidth + NUMBER3 * padding [ NUMBER4 ] ) / stride [ NUMBER4 ] + NUMBER2 ; \n assertEquals ( featureMapWidth , conv . size ( NUMBER4 ) ) ; \n assertEquals ( nOut , conv . size ( NUMBER4 ) ) ;", "msg_token": "Fixed featuremapspacesize test"} {"diff": " public class SessionInfo extends JavaScriptObject \n return this . build_restart_context ; \n } - * / ; \n \n + public final boolean getWasBuildRestart ( ) \n + { \n + return getBuildRestartContext ( ) != null ; \n + } \n + \n public final native boolean isDevtoolsInstalled ( ) COMMENT \n COMMENT \n COMMENT ; \n public class Files \n String projectFile = session_ . getSessionInfo ( ) . getActiveProjectFile ( ) ; \n if ( projectFile == null ) \n return null ; \n + \n + SINGLE \n + if ( session_ . getSessionInfo ( ) . getWasBuildRestart ( ) ) \n + return value ; \n \n SINGLE \n SINGLE", "msg_token": "always restore the files pane after build and reload"} {"diff": " public class FloatingActionButton extends ImageButton { \n mLabelText = attr . getString ( R . styleable . FloatingActionButton_fab_label ) ; \n mShouldProgressIndeterminate = attr . getBoolean ( R . styleable . FloatingActionButton_fab_progress_indeterminate , false ) ; \n mProgressColor = attr . getColor ( R . styleable . FloatingActionButton_fab_progress_color , NUMBER0 ) ; \n - mProgressBackgroundColor = attr . getColor ( R . styleable . FloatingActionButton_fab_progress_backgroundColor , NUMBER1 ) ; \n + mProgressBackgroundColor = attr . getColor ( R . styleable . FloatingActionButton_fab_progress_backgroundColor , NUMBER2 ) ; \n mProgressMax = attr . getInt ( R . styleable . FloatingActionButton_fab_progress_max , mProgressMax ) ; \n mShowProgressBackground = attr . getBoolean ( R . styleable . FloatingActionButton_fab_progress_showBackground , true ) ;", "msg_token": "Changed default progress background color"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class Undertow { \n + public final class Undertow { \n \n private final int bufferSize ; \n private final int buffersPerRegion ;", "msg_token": "Making Undertow class final"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DebuggerExpressionComboBox extends DebuggerEditorImpl { \n \n public void setItem ( Object item ) { \n super . setItem ( createDocument ( ( TextWithImports ) item ) ) ; \n + COMMENT \n final Editor editor = getEditor ( ) ; \n if ( editor != null ) { \n DaemonCodeAnalyzer . getInstance ( getProject ( ) ) . updateVisibleHighlighters ( editor ) ; \n } \n + COMMENT \n } \n \n }", "msg_token": "Unnecessary code removed that caused PSI changes during PSI events handling"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class FlashSmsCardData { \n + public class SilentSmsCardData { \n private final String mAddress ; \n private final String mDisplayAddress ; \n private final String mMessageClass ; \n public class FlashSmsCardData { \n private final String mMessage ; \n private final long mTimestamp ; \n \n - public FlashSmsCardData ( String address , String displayAddress , String messageClass , \n + public SilentSmsCardData ( String address , String displayAddress , String messageClass , \n String serviceCentre , String messageBody , long timestamp ) \n { \n mAddress = address ;", "msg_token": "Revert Corrected values for Flash SMS"} {"diff": " public class MysqlTestingHelper { \n Assert . assertTrue ( dataDir . mkdir ( ) ) ; \n \n final PrintStream out = new PrintStream ( new LoggingOutputStream ( log ) , true ) ; \n - mysqldResource = new MysqldResource ( dbDir , dataDir , STRING0 , out , out ) ; \n + mysqldResource = new MysqldResource ( dbDir , dataDir , null , out , out ) ; \n \n final Map < String , String > dbOpts = new HashMap < String , String > ( ) ; \n dbOpts . put ( MysqldResourceI . PORT , Integer . toString ( port ) ) ;", "msg_token": "don t hardcode MySQL version in MysqlTestingHelper"} {"diff": " public final class SortingProperty < E > \n break ; \n case ASC_NULLS_LAST : \n ordering = STRING0 ; \n - nullOrdering = STRING1 ; \n + nullOrdering = STRING2 ; \n break ; \n case DESC_NULLS_FIRST : \n ordering = STRING3 ; \n - nullOrdering = STRING2 ; \n + nullOrdering = STRING1 ; \n break ; \n case DESC_NULLS_LAST : \n ordering = STRING3 ;", "msg_token": "Fix arrows SortingProperty toString"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class ClusterOverviewProcedureTest \n { \n @ test \n - public void shouldRecommendTheCoreLeaderForWriteAndEdgeForRead ( ) throws Exception \n + public void shouldProvideOverivewOfCoreAndEdgeServers ( ) throws Exception \n { \n SINGLE \n final CoreTopologyService topologyService = mock ( CoreTopologyService . class ) ; \n public class ClusterOverviewProcedureTest \n coreMembers . put ( follower1 , DiscoverEndpointAcquisitionServersProcedureTest . coreAddresses ( NUMBER0 ) ) ; \n coreMembers . put ( follower2 , DiscoverEndpointAcquisitionServersProcedureTest . coreAddresses ( NUMBER1 ) ) ; \n \n - Set < EdgeAddresses > edges = DiscoverEndpointAcquisitionServersProcedureTest . addresses ( NUMBER2 , NUMBER3 ) ; \n + Set < EdgeAddresses > edges = addresses ( NUMBER2 , NUMBER3 ) ; \n \n final ClusterTopology clusterTopology = new ClusterTopology ( null , false , coreMembers , edges ) ; \n when ( topologyService . currentTopology ( ) ) . thenReturn ( clusterTopology ) ;", "msg_token": "Tidying up CE Procedures"} {"diff": " public class OverviewActivity extends BaseNavDrawerActivity { \n String poster = show . getPoster ( ) ; \n ShortcutUtils . createShortcut ( this , title , poster , mShowId ) ; \n \n + SINGLE \n + startActivity ( new Intent ( Intent . ACTION_MAIN ) . addCategory ( Intent . CATEGORY_HOME ) . setFlags ( \n + Intent . FLAG_ACTIVITY_NEW_TASK ) ) ; \n + \n SINGLE \n fireTrackerEvent ( STRING0 ) ; \n return true ;", "msg_token": "Drop user to home screen after creating shortcut"} {"diff": " public class BSONSplitter extends Configured implements Tool { \n log . info ( STRING0 ) ; \n } \n \n - String splitFileLocation = getConf ( ) . get ( STRING1 , STRING2 ) ; \n - Path outputPath ; \n - if ( splitFileLocation == null || splitFileLocation . length ( ) == NUMBER0 ) { \n - outputPath = new Path ( inputPath . getParent ( ) , STRING3 + inputPath . getName ( ) + STRING4 ) ; \n - } else { \n - outputPath = new Path ( splitFileLocation ) ; \n - } \n + Path outputPath = new Path ( inputPath . getParent ( ) , STRING3 + inputPath . getName ( ) + STRING4 ) ; \n \n FileSystem pathFileSystem = outputPath . getFileSystem ( getConf ( ) ) ; \n FSDataOutputStream fsDataOut = null ;", "msg_token": "remove split file location setting for now to be implemented more elegantly later"} {"diff": " public class SimpleMonthView extends MonthView { \n mMonthNumPaint . setColor ( mDisabledDayTextColor ) ; \n } \n else if ( mSelectedDay == day ) { \n + mMonthNumPaint . setTypeface ( Typeface . create ( Typeface . DEFAULT , Typeface . BOLD ) ) ; \n mMonthNumPaint . setColor ( mSelectedDayTextColor ) ; \n } else if ( mHasToday && mToday == day ) { \n mMonthNumPaint . setColor ( mTodayNumberColor ) ;", "msg_token": "Selected day should have higher font weight"} {"diff": " public class RemoteViews implements Parcelable , Filter { \n if ( UserHandle . getUserId ( applicationInfo . uid ) != userId \n || ! applicationInfo . packageName . equals ( packageName ) ) { \n try { \n - Context context = application . getApplicationContext ( ) . createPackageContextAsUser ( \n + Context context = application . getBaseContext ( ) . createPackageContextAsUser ( \n packageName , NUMBER0 , new UserHandle ( userId ) ) ; \n applicationInfo = context . getApplicationInfo ( ) ; \n } catch ( NameNotFoundException nnfe ) {", "msg_token": "Fix a crash in RemoteViews"} {"diff": " public class WebViewUpdateServiceImpl { \n synchronized ( mLock ) { \n try { \n newPackage = findPreferredWebViewPackage ( ) ; \n - if ( mCurrentWebViewPackage != null ) \n + if ( mCurrentWebViewPackage != null ) { \n oldProviderName = mCurrentWebViewPackage . packageName ; \n + if ( changedState == WebViewUpdateService . PACKAGE_CHANGED \n + && newPackage . packageName . equals ( oldProviderName ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + return ; \n + } \n + } \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Don t run the WebView preparation if using the same non replaced package"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n public class ShutdownTask implements BootstrapTask { \n + private static Logger logger = LoggerFactory . getLogger ( ShutdownTask . class ) ; \n + \n private final int defaultShutdownPort ; \n private final String defaultShutdownKey ; \n private final MocoClient client = new MocoClient ( ) ; \n public class ShutdownTask implements BootstrapTask { \n \n @ override \n public void exceptionCaught ( ChannelHandlerContext ctx , Throwable cause ) throws Exception { \n + ctx . close ( ) ; \n + \n if ( ConnectException . class . isInstance ( cause ) ) { \n - System . err . println ( STRING0 ) ; \n + logger . error ( STRING0 ) ; \n return ; \n } \n - \n throw new RuntimeException ( cause ) ; \n } \n }", "msg_token": "used logger to replace system error in shutdown handler"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DocumentArchive implements Closeable { \n \n final int lastDot = entry . getName ( ) . lastIndexOf ( STRING0 ) ; \n if ( lastDot >= NUMBER0 ) { \n - final String extension = entry . getName ( ) . substring ( lastDot + NUMBER1 ) . toLowerCase ( ) ; \n + final String extension = entry . getName ( ) . substring ( lastDot + NUMBER1 ) . toLowerCase ( Locale . US ) ; \n final String mimeType = MimeTypeMap . getSingleton ( ) . getMimeTypeFromExtension ( extension ) ; \n if ( mimeType != null ) { \n return mimeType ;", "msg_token": "Explicitly use Locale US for toLowerCase in ZIP"} {"diff": " public abstract class AbstractProtocol < S > implements ProtocolHandler , \n SINGLE \n SINGLE \n SINGLE \n - connections . put ( socket , processor ) ; \n longPoll ( wrapper , processor ) ; \n if ( processor . isAsync ( ) ) { \n getProtocol ( ) . addWaitingProcessor ( processor ) ;", "msg_token": "Remove unnecessary code"} {"diff": " public class SQLEditor extends SQLEditorBase \n public void run ( ) { \n if ( statement != null ) { \n resultsProvider . query = statement ; \n - resultsProvider . tabItem . setToolTipText ( statement . getQuery ( ) ) ; \n + resultsProvider . tabItem . setToolTipText ( CommonUtils . truncateString ( statement . getQuery ( ) , NUMBER0 ) ) ; \n SINGLE \n if ( statement . getData ( ) instanceof String ) { \n resultsProvider . tabItem . setText ( statement . getData ( ) . toString ( ) ) ; \n public class SQLEditor extends SQLEditorBase \n if ( results != null ) { \n CTabItem tabItem = results . tabItem ; \n if ( ! tabItem . isDisposed ( ) ) { \n - tabItem . setToolTipText ( result . getStatement ( ) . getQuery ( ) ) ; \n if ( ! CommonUtils . isEmpty ( result . getResultSetName ( ) ) ) { \n tabItem . setText ( result . getResultSetName ( ) ) ; \n } / * else {", "msg_token": "Multi query results results UI"} {"diff": " public class TemporalCompactionSetCreator \n private static class ShardSorter \n implements Comparator < ShardMetadata > \n { \n + @ suppresswarnings ( STRING0 ) \n @ override \n public int compare ( ShardMetadata shard1 , ShardMetadata shard2 ) \n {", "msg_token": "Suppress bogus warning in ShardSorter"} {"diff": " public abstract class RegisteredServicesCache < V > { \n XmlPullParser parser = Xml . newPullParser ( ) ; \n parser . setInput ( fis , null ) ; \n int eventType = parser . getEventType ( ) ; \n - while ( eventType != XmlPullParser . START_TAG ) { \n + while ( eventType != XmlPullParser . START_TAG \n + && eventType != XmlPullParser . END_DOCUMENT ) { \n eventType = parser . next ( ) ; \n } \n String tagName = parser . getName ( ) ;", "msg_token": "Handle corrupt RegisteredServicesCache XML"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Javadoc can t handle annotations in code samples"} {"diff": " public abstract class Transition implements Cloneable { \n } \n } \n if ( mTargetIds . size ( ) == NUMBER0 && mTargets . size ( ) == NUMBER0 && \n - ( mTargetTypes == null || mTargetTypes . isEmpty ( ) && \n - ( mTargetNames == null || mTargetNames . isEmpty ( ) ) ) ) { \n + ( mTargetTypes == null || mTargetTypes . isEmpty ( ) ) && \n + ( mTargetNames == null || mTargetNames . isEmpty ( ) ) ) { \n return true ; \n } \n if ( mTargetIds . contains ( targetId ) || mTargets . contains ( target ) ) {", "msg_token": "Fix broken logic in isValidTarget"} {"diff": " public final class UnixTimeFunctions \n } \n } \n \n - return builder . toFormatter ( ) ; \n + try { \n + return builder . toFormatter ( ) ; \n + } \n + catch ( UnsupportedOperationException e ) { \n + throw new PrestoException ( StandardErrorCode . INVALID_FUNCTION_ARGUMENT . toErrorCode ( ) , e ) ; \n + } \n } \n } \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestUnixTimeFunctions \n assertFunction ( STRING0 , getSeconds ( new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER5 , timeZone ) ) ) ; \n } \n \n + @ test ( expectedExceptions = PrestoException . class , expectedExceptionsMessageRegExp = STRING1 ) \n + public void testInvalidDateParseFormat ( ) \n + { \n + assertFunction ( STRING2 , NUMBER5 ) ; \n + } \n + \n @ test \n public void testFormatDatetime ( ) \n {", "msg_token": "Categorize bad date parse format string errors"} {"diff": " public class NullObject extends GroovyObjectSupport { \n COMMENT \n COMMENT \n public Object getProperty ( String property ) { \n - throw new NullPointerException ( STRING0 + property + STRING1 ) ; \n + throw new NullPointerException ( STRING2 + property + STRING3 ) ; \n } \n \n COMMENT \n public class NullObject extends GroovyObjectSupport { \n COMMENT \n COMMENT \n public void setProperty ( String property , Object newValue ) { \n - throw new NullPointerException ( STRING4 + property + STRING1 ) ; \n + throw new NullPointerException ( STRING5 + property + STRING3 ) ; \n } \n \n COMMENT", "msg_token": "null setProperty yields confusing error message tweak error message"} {"diff": " public class SpecialFiles { \n excludedFiles . add ( STRING0 ) ; SINGLE \n excludedFiles . add ( STRING1 ) ; SINGLE \n \n + excludedFiles . add ( STRING2 ) ; SINGLE \n + \n excludedFiles . add ( STRING3 ) ; SINGLE \n }", "msg_token": "do not run test which use file system"} {"diff": " public class ChangesViewContentManager extends AbstractProjectComponent implemen \n } \n } \n \n - public static final String LOCAL_CHANGES = Registry . is ( STRING0 ) ? STRING1 : STRING2 ; \n + public static final String LOCAL_CHANGES = Registry . is ( STRING0 ) ? STRING3 : STRING2 ; \n public static final String REPOSITORY = STRING4 ; \n public static final String INCOMING = STRING5 ; \n public static final String SHELF = STRING6 ;", "msg_token": "Revert rename of Local Changes to Changes"} {"diff": " public final class CasVersion { \n return DateTimeUtils . zonedDateTimeOf ( file . lastModified ( ) ) ; \n } \n \n - LOGGER . warn ( STRING0 , resource . getProtocol ( ) , \n - resource . getProtocol ( ) , resource ) ; \n + LOGGER . warn ( STRING1 , resource . getProtocol ( ) , resource ) ; \n return ZonedDateTime . now ( ) ; \n \n } catch ( final Exception e ) {", "msg_token": "Fixed logging parameter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class BuckEventsConsumer implements \n public void run ( ) { \n BuckEventsConsumer . this . mProjectGenerationProgress . setDetail ( message ) ; \n BuckEventsConsumer . this . mTreeModel . reload ( ) ; \n + SINGLE \n + FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ; \n + SaveAndSyncHandler . getInstance ( ) . refreshOpenFiles ( ) ; \n + VirtualFileManager . getInstance ( ) . refreshWithoutFileWatcher ( true ) ; \n } \n } ) ; \n - SINGLE \n - SINGLE \n - mProject . getBaseDir ( ) . refresh ( false , true ) ; \n } \n \n @ override", "msg_token": "Buck plugin fix synchronize after project genration"} {"diff": " public class PeopleUtils { \n \n Map < String , String > params = new HashMap < > ( ) ; \n params . put ( STRING0 , Integer . toString ( offset ) ) ; \n + params . put ( STRING1 , STRING2 ) ; \n + params . put ( STRING3 , STRING4 ) ; \n String path = String . format ( STRING5 , blogId ) ; \n WordPress . getRestClientUtilsV1_1 ( ) . get ( path , params , null , listener , errorListener ) ; \n }", "msg_token": "Fetch users ordered by their display name in ascending order"} {"diff": " public class BrowseFragment extends BaseFragment { \n \n @ override \n protected void onEntranceTransitionEnd ( ) { \n - mMainFragmentAdapter . onTransitionEnd ( ) ; \n - mHeadersFragment . onTransitionEnd ( ) ; \n + if ( mMainFragmentAdapter != null ) { \n + mMainFragmentAdapter . onTransitionEnd ( ) ; \n + } \n + \n + if ( mHeadersFragment != null ) { \n + mHeadersFragment . onTransitionEnd ( ) ; \n + } \n } \n \n void setSearchOrbViewOnScreen ( boolean onScreen ) { \n public class BrowseSupportFragment extends BaseSupportFragment { \n \n @ override \n protected void onEntranceTransitionEnd ( ) { \n - mMainFragmentAdapter . onTransitionEnd ( ) ; \n - mHeadersSupportFragment . onTransitionEnd ( ) ; \n + if ( mMainFragmentAdapter != null ) { \n + mMainFragmentAdapter . onTransitionEnd ( ) ; \n + } \n + \n + if ( mHeadersSupportFragment != null ) { \n + mHeadersSupportFragment . onTransitionEnd ( ) ; \n + } \n } \n \n void setSearchOrbViewOnScreen ( boolean onScreen ) {", "msg_token": "Fixing NPE issue in BrowseFragment"} {"diff": " public class SlidingWindowCounterTest { \n new SlidingWindowCounter < Object > ( windowLengthInSlots ) ; \n } \n \n + @ test \n public void newInstanceShouldHaveEmptyCounts ( ) { \n SINGLE \n SlidingWindowCounter < Object > counter = new SlidingWindowCounter < Object > ( ANY_WINDOW_LENGTH_IN_SLOTS ) ;", "msg_token": "add missing Test annotation to unit test"} {"diff": " public class Account extends AbstractEntity { \n } \n \n public boolean hasErrorStatus ( ) { \n - return getStatus ( ) > STATUS_NO_INTERNET \n - && ( getXmppConnection ( ) . getAttempt ( ) >= NUMBER0 ) ; \n + if ( getXmppConnection ( ) == null ) { \n + return false ; \n + } else { \n + return getStatus ( ) > STATUS_NO_INTERNET \n + && ( getXmppConnection ( ) . getAttempt ( ) >= NUMBER0 ) ; \n + } \n } \n \n public void setResource ( String resource ) {", "msg_token": "fixed rare npe"} {"diff": " public class ScopeEditorPanel { \n private final boolean myRequestFocus ; \n \n public MyPanelProgressIndicator ( final boolean requestFocus ) { \n + SINGLE \n super ( new Consumer < JComponent > ( ) { \n @ override \n public void consume ( final JComponent component ) {", "msg_token": "suppress cases where javac would compile the code with lambda but on runtime VerifyError would be thrown"} {"diff": " public class ConfigurationClassAspectIntegrationTests { \n } \n \n @ test \n - @ ignore SINGLE \n public void withInnerClassAndLambdaExpression ( ) { \n ApplicationContext ctx = new AnnotationConfigApplicationContext ( Application . class , CountingAspect . class ) ; \n ctx . getBeansOfType ( Runnable . class ) . forEach ( ( k , v ) - > v . run ( ) ) ;", "msg_token": "Enabled test for AspectJ pointcut matching against lambda defined bean"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClientContainer extends ContainerLifeCycle implements WebSocketCont \n client . setEventDriverFactory ( new JsrEventDriverFactory ( client . getPolicy ( ) ) ) ; \n client . setSessionFactory ( new JsrSessionFactory ( this ) ) ; \n addBean ( client ) ; \n + \n + ShutdownThread . register ( client ) ; \n + \n super . doStart ( ) ; \n }", "msg_token": "Adding Shutdown hook to ClientContainer"} {"diff": " public final class HttpString implements Comparable < HttpString > , Serializable { \n COMMENT \n COMMENT \n public void appendTo ( ByteBuffer buffer ) { \n - for ( int i = NUMBER0 ; i < bytes . length ; ++ i ) { \n - buffer . put ( bytes [ i ] ) ; \n - } \n + buffer . put ( bytes ) ; \n } \n \n COMMENT", "msg_token": "improves performance of HttpString appendTo ByteBuffer"} {"diff": " public class Server extends HandlerWrapper implements Attributes \n } \n catch ( Exception e ) \n { \n - mex . add ( e . getCause ( ) ) ; \n + mex . add ( e ) ; \n } \n } \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GracefulStopTest \n } \n catch ( Exception e ) \n { \n - e . printStackTrace ( ) ; \n + SINGLE \n } \n } \n } . start ( ) ; \n public class MultiException extends Exception \n COMMENT \n public void add ( Throwable e ) \n { \n + if ( e == null ) \n + throw new IllegalArgumentException ( ) ; \n + \n if ( nested == null ) \n - { \n nested = new ArrayList < > ( ) ; \n - } \n \n if ( e instanceof MultiException ) \n {", "msg_token": "Improved graceful stop timeout handling"} {"diff": " public interface ChangeListModification { \n void setDefaultChangeList ( @ notnull LocalChangeList list ) ; \n \n void removeChangeList ( final String name ) ; \n + void removeChangeList ( final LocalChangeList list ) ; \n \n void moveChangesTo ( final LocalChangeList list , final Change [ ] changes ) ; \n \n public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec \n } \n } \n \n + public void removeChangeList ( LocalChangeList list ) { \n + removeChangeList ( list . getName ( ) ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove changelist method back"} {"diff": " public class RequestManager implements LifecycleListener { \n COMMENT \n COMMENT \n COMMENT \n - public void clear ( @ nullable Target < ? > target ) { \n - Util . assertMainThread ( ) ; \n + public void clear ( @ nullable final Target < ? > target ) { \n if ( target == null ) { \n return ; \n } \n \n - untrackOrDelegate ( target ) ; \n + if ( Util . isOnMainThread ( ) ) { \n + untrackOrDelegate ( target ) ; \n + } else { \n + mainHandler . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + clear ( target ) ; \n + } \n + } ) ; \n + } \n } \n \n private void untrackOrDelegate ( Target < ? > target ) {", "msg_token": "Allow requests to be cleared on background threads"} {"diff": " public class JettyHttpGetWithParamTest extends BaseJettyTest { \n assertMockEndpointsSatisfied ( ) ; \n } \n \n + @ test \n + public void testHttpGetFromOtherRoute ( ) throws Exception { \n + MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n + mock . expectedBodiesReceived ( STRING1 ) ; \n + mock . expectedHeaderReceived ( STRING2 , STRING3 ) ; \n + mock . expectedHeaderReceived ( STRING4 , STRING5 ) ; \n + \n + template . requestBodyAndHeader ( STRING6 , STRING7 , STRING8 , STRING9 ) ; \n + \n + assertMockEndpointsSatisfied ( ) ; \n + } \n protected RouteBuilder createRouteBuilder ( ) throws Exception { \n return new RouteBuilder ( ) { \n public void configure ( ) throws Exception { \n from ( STRING10 + serverUri ) . process ( processor ) . to ( STRING0 ) ; \n + from ( STRING6 ) \n + . setHeader ( Exchange . HTTP_METHOD , constant ( STRING11 ) ) \n + . setHeader ( Exchange . HTTP_URI , simple ( serverUri + STRING12 ) ) \n + . to ( STRING13 ) ; \n } \n } ; \n }", "msg_token": "Added an unit test to show how to set the get parameters from message header dynamically"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ServletHandler extends ScopedHandler \n } \n else if ( th instanceof ServletException ) \n { \n - LOG . debug ( th ) ; \n + LOG . warn ( th ) ; \n Throwable cause = ( ( ServletException ) th ) . getRootCause ( ) ; \n if ( cause != null ) \n th = cause ; \n } \n - else if ( th instanceof RuntimeIOException ) \n - { \n - LOG . debug ( th ) ; \n - Throwable cause = ( IOException ) ( ( RuntimeIOException ) th ) . getCause ( ) ; \n - if ( cause != null ) \n - th = cause ; \n - } \n \n SINGLE \n if ( th instanceof HttpException )", "msg_token": "remove dead code from ServletHandler and log ServletExceptions in warn instead of debug"} {"diff": " public class RuntimeInit { \n Thread . setDefaultUncaughtExceptionHandler ( new UncaughtHandler ( ) ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - SystemProperties . set ( STRING0 , \n - VMRuntime . getRuntime ( ) . vmLibrary ( ) ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n TimezoneGetter . setInstance ( new TimezoneGetter ( ) { \n public class SystemServer { \n private static native void nativeInit ( ) ; \n \n public static void main ( String [ ] args ) { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + SystemProperties . set ( STRING0 , \n + VMRuntime . getRuntime ( ) . vmLibrary ( ) ) ; \n + \n if ( System . currentTimeMillis ( ) < EARLIEST_SUPPORTED_TIME ) { \n SINGLE \n SINGLE", "msg_token": "Move set of persist sys dalvik vm lib to SystemServer only"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n + @ public \n + @ evolving \n @ target ( ElementType . TYPE ) \n @ retention ( RetentionPolicy . RUNTIME ) \n @ inherited \n public @ interface UDFType { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n boolean deterministic ( ) default true ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n boolean stateful ( ) default false ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n boolean distinctLike ( ) default false ; \n \n COMMENT", "msg_token": "add javadoc for UDFType annotation Thejas Nair reviewed by Lefty Leverenz Ashutosh Chauhan"} {"diff": " public abstract class SSTable \n } \n catch ( Exception e ) \n { \n - if ( ! STRING0 . equals ( name ) ) \n + if ( ! STRING0 . equals ( name ) && ! STRING1 . equals ( name ) ) \n logger . warn ( STRING2 , name , dir ) ; \n return null ; \n }", "msg_token": "teach tryComponentFromFilename about backups dir"} {"diff": " public final class StorageManagerInternal implements StorageManager , EntityDestr \n private Vector3i getChunkZipPosition ( Vector3i chunkPos ) { \n Vector3i result = new Vector3i ( chunkPos ) ; \n result . divide ( CHUNK_ZIP_DIM ) ; \n + if ( chunkPos . x < NUMBER0 ) { \n + result . x -= NUMBER1 ; \n + } \n + if ( chunkPos . y < NUMBER0 ) { \n + result . y -= NUMBER1 ; \n + } \n + if ( chunkPos . z < NUMBER0 ) { \n + result . z -= NUMBER1 ; \n + } \n return result ; \n }", "msg_token": "Changed the algorithm for chunk zip naming to prevent an oversized zip for chunks around the origin"} {"diff": " public class DocumentMapperParser extends AbstractIndexComponent { \n throw new MapperParsingException ( STRING0 , e ) ; \n } \n \n + if ( root . keySet ( ) . size ( ) == NUMBER0 ) { \n + throw new MapperParsingException ( STRING1 ) ; \n + } \n + \n SINGLE \n if ( root . keySet ( ) . size ( ) != NUMBER1 ) { \n throw new MapperParsingException ( STRING2 ) ;", "msg_token": "Improved error message when the mapping document is malformed"} {"diff": " public class Blur { \n public static Bitmap rs ( View view , BlurFactor factor ) { \n view . setDrawingCacheEnabled ( true ) ; \n view . destroyDrawingCache ( ) ; \n + view . setDrawingCacheQuality ( View . DRAWING_CACHE_QUALITY_LOW ) ; \n Bitmap cache = view . getDrawingCache ( ) ; \n Bitmap bitmap = rs ( view . getContext ( ) , cache , factor ) ; \n cache . recycle ( ) ;", "msg_token": "change the DrawingCacheQuality"} {"diff": " public class Checkstyle extends SourceTask implements VerificationTask , Reportin \n private TextResource config ; \n private Map < String , Object > configProperties = new LinkedHashMap < String , Object > ( ) ; \n private final CheckstyleReports reports ; \n - private booleana ignoreFailures ; \n + private boolean ignoreFailures ; \n private boolean showViolations = true ;", "msg_token": "Fix compilation issue"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class PivotTest { \n long colIndexAge ; \n long colIndexHired ; \n \n - PivotTest ( ) { \n + @ beforetest \n + public void setup ( ) { \n + \n colIndexSex = t . addColumn ( ColumnType . STRING , STRING0 ) ; \n colIndexAge = t . addColumn ( ColumnType . INTEGER , STRING1 ) ; \n colIndexHired = t . addColumn ( ColumnType . BOOLEAN , STRING2 ) ;", "msg_token": "fixed constructor issue in test case"} {"diff": " public class ODocument extends ORecordAbstract implements Iterable < Entry < String , \n map . put ( entry . getKey ( ) , entry . getValue ( ) ) ; \n } \n continue ; \n - } else if ( OMultiValue . isMultiValue ( value ) ) { \n + } else if ( OMultiValue . isMultiValue ( value ) && ! ( value instanceof ORidBag ) ) { \n for ( Object item : OMultiValue . getMultiValueIterable ( otherValue ) ) { \n if ( ! OMultiValue . contains ( value , item ) ) \n OMultiValue . add ( value , item ) ;", "msg_token": "fixed wrong call on merge of ridbags"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved documentation on how an event is processed in ChannelPipeline"} {"diff": " public class Roster implements ConnectionListener { \n COMMENT \n COMMENT \n COMMENT \n - private void fireRosterChangedEvent ( Collection addedEntries , Collection updatedEntries , \n - Collection deletedEntries ) \n + private void fireRosterChangedEvent ( Collection < String > addedEntries , Collection < String > updatedEntries , \n + Collection < String > deletedEntries ) \n { \n for ( RosterListener listener : rosterListeners ) { \n if ( ! addedEntries . isEmpty ( ) ) { \n public interface RosterListener { \n COMMENT \n COMMENT \n COMMENT \n - public void entriesAdded ( Collection addresses ) ; \n + public void entriesAdded ( Collection < String > addresses ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public void entriesUpdated ( Collection addresses ) ; \n + public void entriesUpdated ( Collection < String > addresses ) ; \n \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public void entriesDeleted ( Collection addresses ) ; \n + public void entriesDeleted ( Collection < String > addresses ) ; \n \n COMMENT \n COMMENT", "msg_token": "RosterListener now uses generics"} {"diff": " public class Mongo { \n COMMENT \n COMMENT \n @ deprecated \n - public static final int MINOR_VERSION = NUMBER0 ; \n + public static final int MINOR_VERSION = NUMBER1 ; \n \n - private static final String FULL_VERSION = STRING0 ; \n + private static final String FULL_VERSION = STRING1 ; \n \n static int cleanerIntervalMS ;", "msg_token": "Updated Mongo class to next release"} {"diff": " public class DeepLearningModel extends SupervisedModel < DeepLearningModel , DeepLea \n ModelMetrics valid_metrics ; \n double run_time ; \n \n + public String toString ( ) { \n + StringBuilder sb = new StringBuilder ( ) ; \n + sb . append ( model_summary . toString ( ) ) ; \n + sb . append ( scoring_history . toString ( ) ) ; \n + if ( variable_importances != null ) sb . append ( variable_importances . toString ( ) ) ; \n + return sb . toString ( ) ; \n + } \n + \n @ override public ModelCategory getModelCategory ( ) { \n return autoencoder ? ModelCategory . AutoEncoder : super . getModelCategory ( ) ; \n }", "msg_token": "Add DL model output toString"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReactWebViewManager extends SimpleViewManager < WebView > { \n webView . getSettings ( ) . setBuiltInZoomControls ( true ) ; \n webView . getSettings ( ) . setDisplayZoomControls ( false ) ; \n \n + SINGLE \n + webView . setLayoutParams ( \n + new LayoutParams ( LayoutParams . MATCH_PARENT , \n + LayoutParams . MATCH_PARENT ) ) ; \n + \n if ( ReactBuildConfig . DEBUG && Build . VERSION . SDK_INT >= Build . VERSION_CODES . KITKAT ) { \n WebView . setWebContentsDebuggingEnabled ( true ) ; \n }", "msg_token": "Fix broken fullscreen modals due to zero body height"} {"diff": " public class MaterialSheetFab < FAB extends View & AnimatedFab > { \n protected int anchorY ; \n private boolean isShowing ; \n private boolean isHiding ; \n - private boolean isFabLaidOut ; \n private boolean hideSheetAfterSheetIsShown ; \n \n SINGLE \n public class MaterialSheetFab < FAB extends View & AnimatedFab > { \n . addOnGlobalLayoutListener ( new ViewTreeObserver . OnGlobalLayoutListener ( ) { \n @ override \n public void onGlobalLayout ( ) { \n + SINGLE \n + MaterialSheetFab . this . fab . getViewTreeObserver ( ) \n + . removeGlobalOnLayoutListener ( this ) ; \n SINGLE \n - if ( ! isFabLaidOut ) { \n - updateFabAnchor ( ) ; \n - isFabLaidOut = true ; \n - } \n + updateFabAnchor ( ) ; \n } \n } ) ; \n }", "msg_token": "Fix FAB s global layout listener causing memory leaks"} {"diff": " public class OpenSprinklerBinding extends AbstractActiveBinding < OpenSprinklerBin \n String stationItemName = findFirstMatchingItemName ( station ) ; \n logger . debug ( STRING0 + stationItemName ) ; \n \n - if ( stationItemName != null ) { \n + if ( stationItemName != null && openSprinkler != null ) { \n if ( openSprinkler . isStationOpen ( station ) ) { \n eventPublisher . postUpdate ( stationItemName , OnOffType . ON ) ; \n } else {", "msg_token": "Fixed null pointer exception on OpenHab startup"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class MergeCommitsHighlighter implements VcsLogHighlighter { \n - private static final JBColor MERGE_COMMIT_FOREGROUND = new JBColor ( Gray . _192 , Gray . _96 ) ; \n + public static final JBColor MERGE_COMMIT_FOREGROUND = new JBColor ( Gray . _128 , Gray . _96 ) ; \n @ notnull private final VcsLogUiProperties myUiProperties ; \n @ notnull private final VcsLogDataHolder myDataHolder ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DeepComparator implements Disposable { \n @ notnull \n @ override \n public VcsCommitStyle getStyle ( int commitIndex , boolean isSelected ) { \n - return VcsCommitStyleFactory . foreground ( ! myNonPickedCommits . contains ( commitIndex ) ? JBColor . GRAY : null ) ; \n + return VcsCommitStyleFactory . foreground ( ! myNonPickedCommits . contains ( commitIndex ) ? MergeCommitsHighlighter . MERGE_COMMIT_FOREGROUND : null ) ; \n } \n } ; \n myUi . addHighlighter ( myHighlighter ) ;", "msg_token": "vcs log merge commits and non picked commits use the same color"} {"diff": " public class RcFilePageSourceFactory \n DateTimeZone hiveStorageTimeZone ) \n { \n SINGLE \n - if ( false || ! isOptimizedReaderEnabled ( session , enabled ) ) { \n + if ( true || ! isOptimizedReaderEnabled ( session , enabled ) ) { \n return Optional . absent ( ) ; \n } \n \n public class TestHiveFileFormats \n } \n } \n \n - @ test \n + @ test ( enabled = false ) \n public void testRcTextPageSource ( ) \n throws Exception \n { \n public class TestHiveFileFormats \n } \n } \n \n + @ test ( enabled = false ) \n public void testRcBinaryPageSource ( ) \n throws Exception \n {", "msg_token": "Disable new RcFilePageSource code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JetRunConfiguration extends ModuleBasedConfiguration < RunConfigurati \n } \n \n @ override \n + public void checkConfiguration ( ) throws RuntimeConfigurationException { \n + JavaParametersUtil . checkAlternativeJRE ( this ) ; \n + ProgramParametersUtil . checkWorkingDirectoryExist ( this , getProject ( ) , getConfigurationModule ( ) . getModule ( ) ) ; \n + JavaRunConfigurationExtensionManager . checkConfigurationIsValid ( this ) ; \n + } \n + \n + @ override \n public RunProfileState getState ( @ notnull Executor executor , @ notnull ExecutionEnvironment executionEnvironment ) \n throws ExecutionException { \n JavaCommandLineState state = new MyJavaCommandLineState ( this , executionEnvironment ) ;", "msg_token": "validate some of the settings in KotlinRunConfiguration"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n @ incubating \n public interface Event { \n + \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n long getEventTime ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + String getDescription ( ) ; \n + \n }", "msg_token": "Root event consists of description and event time"} {"diff": " public final class DaoConfig implements Cloneable { \n Field [ ] fields = propertiesClass . getDeclaredFields ( ) ; \n \n ArrayList < Property > propertyList = new ArrayList < Property > ( ) ; \n + final int modifierMask = Modifier . STATIC | Modifier . PUBLIC ; \n for ( Field field : fields ) { \n SINGLE \n - if ( ( field . getModifiers ( ) & Modifier . STATIC ) != NUMBER0 && ( field . getModifiers ( ) & Modifier . PUBLIC ) != NUMBER0 ) { \n + if ( ( field . getModifiers ( ) & modifierMask ) == modifierMask ) { \n Object fieldValue = field . get ( null ) ; \n if ( fieldValue instanceof Property ) { \n propertyList . add ( ( Property ) fieldValue ) ;", "msg_token": "optimized modifier checking for Properties"} {"diff": " public class JetElementImplStub < T extends StubElement > extends StubBasedPsiEleme \n \n @ override \n public String toString ( ) { \n - return getNode ( ) . getElementType ( ) . toString ( ) ; \n + return getElementType ( ) . toString ( ) ; \n } \n \n @ override", "msg_token": "Prevent toString for PSI from mutating"} {"diff": " public abstract class AbstractConfigBuilder extends AbstractXmlConfigHelper { \n \n protected enum ConfigType { \n SERVER ( STRING0 ) , \n - CLIENT ( STRING1 ) ; \n + CLIENT ( STRING1 ) , \n + JET ( STRING2 ) ; \n \n final String name ;", "msg_token": "Add jet to AbstractConfigBuilder"} {"diff": " public class DbQuery extends DbQueryBase { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n public void clearParameters ( ) { \n init ( ) ; \n if ( preparedStatement == null ) {", "msg_token": "Removed stray character from file"} {"diff": " public class SwitchScreenPreference extends PreferenceScreen implements MenuPres \n if ( theme != ThemeManager . LIGHT ) { \n theme = ThemeManager . DARK ; \n } \n - LayoutInflater inflater = LayoutInflater . from ( getDialog ( ) . getContext ( ) , theme ) ; \n + LayoutInflater inflater = LayoutInflater . from ( getDialog ( ) . getContext ( ) , theme | PreferenceInit . THEME_FLAG ) ; \n View actionView = inflater . inflate ( R . layout . preference_widget_switch_screen_bar ) ; \n Switch switchView = ( Switch ) actionView . findViewById ( R . id . switchWidget ) ; \n switchView . setChecked ( mChecked ) ;", "msg_token": "Use a preference theme for Switch widget in SwitchScreenPreference"} {"diff": " public class VersionCompareTest extends TestCase { \n STRING0 , STRING1 , STRING2 , STRING3 , \n STRING4 , STRING5 , STRING6 \n ) ; \n + ascending ( STRING7 , STRING8 , STRING9 ) ; \n } \n \n public void testRubyPlugin ( ) {", "msg_token": "Added version comparator tests"} {"diff": " public class BitmapText extends Node { \n attachChild ( textPages [ page ] ) ; \n } \n \n - setQueueBucket ( Bucket . Gui ) ; \n - \n this . font = font ; \n this . block = new StringBlock ( ) ; \n block . setSize ( font . getPreferredSize ( ) ) ;", "msg_token": "Remove the line that puts all bitmap text into the"} {"diff": " public class ProjectGenerator { \n \n List < String > scriptArguments = Lists . newArrayList ( ) ; \n for ( Path dir : assetCatalog . getDirs ( ) ) { \n + Path pathRelativeToProjectRoot = pathRelativizer . outputDirToRootRelative ( dir ) ; \n + \n resourcesGroup . getOrCreateFileReferenceBySourceTreePath ( \n new SourceTreePath ( \n PBXReference . SourceTree . SOURCE_ROOT , \n - pathRelativizer . outputDirToRootRelative ( dir ) ) ) ; \n + pathRelativeToProjectRoot ) ) ; \n \n - Path pathRelativeToProjectRoot = MorePaths . relativize ( outputDirectory , dir ) ; \n LOG . debug ( \n STRING0 , \n dir , outputDirectory , pathRelativeToProjectRoot ) ;", "msg_token": "Fix assertion error about mixed relative and absolute paths"} {"diff": " public class PacketReaderTest extends SmackTestCase { \n return STRING0 ; \n } \n } ; \n - iqPacket . setTo ( getBareJID ( NUMBER0 ) ) ; \n + iqPacket . setTo ( getFullJID ( NUMBER0 ) ) ; \n iqPacket . setType ( IQ . Type . GET ) ; \n \n SINGLE \n public class ServiceDiscoveryManagerTest extends SmackTestCase { \n SINGLE \n assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER1 ) ) ) ; \n assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) ) ) ; \n - SINGLE \n - assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) , getBareJID ( NUMBER1 ) ) ) ; \n + SINGLE \n + SINGLE \n + assertFalse ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) , getBareJID ( NUMBER1 ) ) ) ; \n + SINGLE \n + assertTrue ( XHTMLManager . isServiceEnabled ( getConnection ( NUMBER0 ) , getFullJID ( NUMBER1 ) ) ) ; \n \n SINGLE \n XHTMLManager . setServiceEnabled ( getConnection ( NUMBER1 ) , false ) ;", "msg_token": "Changes some bare JIDs with full JIDs"} {"diff": " public class MediaSessionLegacyHelper { \n } \n \n public static MediaSessionLegacyHelper getHelper ( Context context ) { \n - if ( DEBUG ) { \n - Log . d ( TAG , STRING0 + context ) ; \n - } \n synchronized ( sLock ) { \n if ( sInstance == null ) { \n - sInstance = new MediaSessionLegacyHelper ( context ) ; \n + sInstance = new MediaSessionLegacyHelper ( context . getApplicationContext ( ) ) ; \n } \n } \n return sInstance ;", "msg_token": "MediaSessionLegacyHelper uses global Application context"} {"diff": " \n COMMENT \n COMMENT \n \n - \n package NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public interface Key < T > extends Value , Comparable < T > { \n \n COMMENT", "msg_token": "hotfix Add deprecation message to old Key interface"} {"diff": " public class PhysicalWebCollection { \n pwsResultCallback . onPwsResultError ( urls , httpResponseCode , e ) ; \n } \n } ; \n - mPwsClient . resolve ( newUrls , augmentedCallback ) ; \n + if ( newUrls . size ( ) > NUMBER0 ) { \n + mPwsClient . resolve ( newUrls , augmentedCallback ) ; \n + } \n }", "msg_token": "Don t send empty requests to PWS"} {"diff": " public class RemoteFile extends AbstractBuildRule { \n return builder \n . setReflectively ( STRING0 , isBuildTimeDownloadingOk ) \n . setReflectively ( STRING1 , sha1 . toString ( ) ) \n - . setReflectively ( STRING2 , output ) \n + . setReflectively ( STRING2 , output . toString ( ) ) \n . setReflectively ( STRING3 , uri . toString ( ) ) ; \n }", "msg_token": "Add the name of the output of the RemoteFile rather than the file itself to the RemoteFile RuleKey"} {"diff": " public class TableQueryColumn < Cursor , View , Query , Subtable > extends AbstractCol \n return STRING0 ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public Query subtable ( ) { \n + return query ( getQuery ( ) . subtable ( columnIndex ) ) ; \n + } \n + COMMENT \n }", "msg_token": "Disabled subtable for typed interface"} {"diff": " public class CropImageView extends ImageView { \n \n final int viewWidth = MeasureSpec . getSize ( widthMeasureSpec ) ; \n final int viewHeight = MeasureSpec . getSize ( heightMeasureSpec ) ; \n - \n + \n setMeasuredDimension ( viewWidth , viewHeight ) ; \n } \n \n public class CropImageView extends ImageView { \n \n @ override \n public void setImageBitmap ( Bitmap bitmap ) { \n - if ( this . mBitmap != null ) { \n + if ( this . mBitmap != null && this . mBitmap != bitmap ) { \n this . mBitmap . recycle ( ) ; \n this . mBitmap = null ; \n }", "msg_token": "Fix Bitmap Recycle Logic"} {"diff": " public class FavouritesActivity extends SherlockFragmentActivity { \n public void onCreate ( Bundle icicle ) { \n SINGLE \n SINGLE \n - requestWindowFeature ( Window . FEATURE_INDETERMINATE_PROGRESS ) ; \n + ( ( OsmandApplication ) getApplication ( ) ) . applyTheme ( this ) ; \n + requestWindowFeature ( Window . FEATURE_INDETERMINATE_PROGRESS ) ; \n getSherlock ( ) . setUiOptions ( ActivityInfo . UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW ) ; \n super . onCreate ( icicle ) ; \n setSupportProgressBarIndeterminateVisibility ( false ) ;", "msg_token": "fixed issue with not applying light theme to favorites"} {"diff": " public class JUnitResultAssert { \n COMMENT \n public void fails ( int expectedFailureCount , Class expectedException ) { \n if ( result . getFailures ( ) . size ( ) != expectedFailureCount ) { \n - throw new AssertionError ( STRING0 + expectedFailureCount + STRING1 + expectedFailureCount + STRING2 + \n + throw new AssertionError ( STRING0 + expectedFailureCount + STRING1 + result . getFailures ( ) . size ( ) + STRING2 + \n formatFailures ( result . getFailures ( ) ) ) ; \n } \n for ( Failure f : result . getFailures ( ) ) {", "msg_token": "Fixed bug in test utility"} {"diff": " public class Factory implements FactoryOperations { \n SINGLE \n \n COMMENT \n + COMMENT \n + COMMENT \n + @ support \n + public static Field < BigDecimal > rand ( ) { \n + return new Rand ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Factory implements FactoryOperations { \n return new CurrentUser ( ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - @ support \n - public static Field < BigDecimal > rand ( ) { \n - return new Rand ( ) ; \n - } \n - \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Moved rand function from other to the mathematical functions"} {"diff": " public class RequestCreator { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public RequestCreator fit ( ) { \n deferred = true ;", "msg_token": "Fix javadoc parenthesis"} {"diff": " public class SvnInfoStructure { \n \n private SVNConflictAction parseConflictAction ( @ notnull String actionName ) { \n SVNConflictAction action = SVNConflictAction . fromString ( actionName ) ; \n - action = action == null ? ourConflictActions . get ( actionName ) : null ; \n + action = action != null ? action : ourConflictActions . get ( actionName ) ; \n \n if ( action == null ) { \n throw new IllegalArgumentException ( STRING0 + actionName ) ; \n public class SvnInfoStructure { \n \n private SVNConflictReason parseConflictReason ( @ notnull String reasonName ) throws SAXException { \n SVNConflictReason reason = SVNConflictReason . fromString ( reasonName ) ; \n - reason = reason == null ? ourConflictReasons . get ( reasonName ) : null ; \n + reason = reason != null ? reason : ourConflictReasons . get ( reasonName ) ; \n \n if ( reason == null ) { \n - throw new SAXException ( STRING1 + reason ) ; \n + throw new SAXException ( STRING1 + reasonName ) ; \n } \n \n return reason ;", "msg_token": "Fixed conflict reason and conflict action parsing for info command"} {"diff": " public class AtmosphereResourceImpl implements \n COMMENT \n public void setBroadcaster ( Broadcaster broadcaster ) { \n this . broadcaster = broadcaster ; \n - broadcaster . getBroadcasterConfig ( ) . setAtmosphereConfig ( config ) ; \n + if ( broadcaster != null ) { \n + broadcaster . getBroadcasterConfig ( ) . setAtmosphereConfig ( config ) ; \n + } \n } \n \n COMMENT", "msg_token": "Check for null now that we allow that"} {"diff": " public final class ServerModel extends AbstractModel < ServerModel > { \n \n synchronized ( managementElement ) { \n if ( managementElement != null ) { \n + streamWriter . writeStartElement ( Element . MANAGEMENT . getLocalName ( ) ) ; \n managementElement . writeContent ( streamWriter ) ; \n } \n }", "msg_token": "write start element"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix missing EnableScheduling in documentation"} {"diff": " public class NetworkBaseActivity extends BaseActivity implements NetworkView . Eve \n @ override \n protected FBTree getTreeByKey ( FBTree . Key key ) { \n final NetworkLibrary library = NetworkLibrary . Instance ( ) ; \n - return key != null ? library . getTreeByKey ( key ) : library . getRootTree ( ) ; \n + FBTree tree = null ; \n + if ( key != null ) { \n + tree = library . getTreeByKey ( key ) ; \n + } \n + return tree != null ? tree : library . getRootTree ( ) ; \n } \n \n @ override", "msg_token": "fixed possible NPE"} {"diff": " public final class Annotation implements Comparable < Annotation > { \n boolean has_changes = false ; \n for ( Map . Entry < String , Boolean > entry : changed . entrySet ( ) ) { \n if ( entry . getValue ( ) ) { \n - System . out . println ( entry . getKey ( ) ) ; \n has_changes = true ; \n break ; \n }", "msg_token": "Fix left over System out println in Annotation java"} {"diff": " public class WebAppClassLoaderTest \n SINGLE \n URL webappWebInfLibAcme = new URI ( STRING0 + testWebappDir . resolve ( STRING1 ) . toUri ( ) . toASCIIString ( ) + STRING2 ) . toURL ( ) ; \n URL webappWebInfClasses = testWebappDir . resolve ( STRING3 ) . toUri ( ) . toURL ( ) ; \n - URL targetTestClasses = MavenTestingUtils . getTargetDir ( ) . toPath ( ) . resolve ( STRING4 ) . toUri ( ) . toURL ( ) ; \n + SINGLE \n + URL targetTestClasses = this . getClass ( ) . getClassLoader ( ) . getResource ( STRING5 ) ; \n \n _context . setParentLoaderPriority ( false ) ; \n dump ( _context ) ;", "msg_token": "Using parent classloader as expected value"} {"diff": " class ImapFolderPusher extends ImapFolder implements UntaggedHandler { \n if ( flagMsg >= msgSeq ) { \n flagIter . remove ( ) ; \n if ( flagMsg > msgSeq ) { \n - newSeqs . add ( flagMsg -- ) ; \n + newSeqs . add ( flagMsg ) ; \n } \n } \n }", "msg_token": "Remove unnecessary variable increment"} {"diff": " public class StringUtil { \n return indexOf ( s , c , start , end ) >= NUMBER0 ; \n } \n \n + public static boolean containsWhitespaces ( @ nullable CharSequence s ) { \n + if ( s == null ) return false ; \n + \n + for ( int i = NUMBER0 ; i < s . length ( ) ; i ++ ) { \n + if ( Character . isWhitespace ( s . charAt ( i ) ) ) return true ; \n + } \n + return false ; \n + } \n + \n public static int indexOf ( @ notnull CharSequence s , char c ) { \n return indexOf ( s , c , NUMBER0 , s . length ( ) ) ; \n }", "msg_token": "changinh build settings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class TaskEditFragment extends Fragment implements \n \n SINGLE \n setHasOptionsMenu ( true ) ; \n - getSupportActivity ( ) . getSupportActionBar ( ) . setDisplayHomeAsUpEnabled ( \n - true ) ; \n \n AstridActivity activity = ( AstridActivity ) getActivity ( ) ; \n if ( activity instanceof TaskListActivity && activity . fragmentLayout == AstridActivity . LAYOUT_DOUBLE ) {", "msg_token": "Removed an unused line of code in task edit fragment"} {"diff": " public class ZLAndroidApplicationWindow extends ZLApplicationWindow { \n public void setToggleButtonState ( ButtonItem item ) { \n SINGLE \n } \n + \n + public void setFullscreen ( boolean fullscreen ) { \n + SINGLE \n + } \n + \n + public boolean isFullscreen ( ) { \n + SINGLE \n + return false ; \n + } \n }", "msg_token": "fixed compilation problem"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZooClient extends AbstractZooKeeperManager \n throw new ZooKeeperException ( STRING0 , e ) ; \n } \n SINGLE \n + if ( getSingleRootPath ( zooKeeper ) != null ) throw new RuntimeException ( STRING1 ) ; \n try \n { \n byte data [ ] = new byte [ NUMBER0 ] ; \n public final class LocalhostZooKeeperCluster \n if ( ! success ) shutdown ( ) ; \n } \n } \n + \n + public static LocalhostZooKeeperCluster standardZoo ( Class < ? > owningTest ) \n + { \n + return new LocalhostZooKeeperCluster ( owningTest , NUMBER1 , NUMBER2 , NUMBER3 ) ; \n + } \n \n private void await ( ZooKeeper [ ] keepers , long timeout , TimeUnit unit ) \n {", "msg_token": "Prevents multiple roots from being created until we ve fixed this for real"} {"diff": " public class GitBlit implements ServletContextListener { \n COMMENT \n COMMENT \n public boolean supportsCredentialChanges ( UserModel user ) { \n - return ( user != null && user . isLocalAccount ( ) ) || userService . supportsCredentialChanges ( ) ; \n + if ( user == null ) { \n + return false ; \n + } else if ( ! Constants . EXTERNAL_ACCOUNT . equals ( user . password ) ) { \n + SINGLE \n + return userService . supportsCredentialChanges ( ) ; \n + } else { \n + SINGLE \n + return false ; \n + } \n } \n \n COMMENT", "msg_token": "Disallow credential changes for container authenticated sessions"} {"diff": " public class VertexProgramScanJob < M > implements VertexScanJob { \n \n @ override \n public void workerIterationStart ( TitanGraph graph , Configuration config , ScanMetrics metrics ) { \n - vertexProgram . workerIterationStart ( memory ) ; SINGLE \n + vertexProgram . workerIterationStart ( memory . asImmutable ( ) ) ; \n } \n \n @ override", "msg_token": "VertexProgramScanJob needed an immutableMemory"} {"diff": " public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass \n if ( severity == HighlightSeverity . ERROR ) { \n type = new HighlightInfoType . HighlightInfoTypeImpl ( severity , HighlightInfoType . WRONG_REF . getAttributesKey ( ) ) ; \n } \n - if ( severity == HighlightSeverity . WARNING ) { \n + else if ( severity == HighlightSeverity . WARNING ) { \n type = new HighlightInfoType . HighlightInfoTypeImpl ( severity , CodeInsightColors . INFO_ATTRIBUTES ) ; \n } \n else {", "msg_token": "highlighting attributes fixed"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public final class OryxApplication extends Application { \n log . info ( STRING0 , packages ) ; \n Reflections reflections = new Reflections ( packages ) ; \n Set < Class < ? > > classes = reflections . getTypesAnnotatedWith ( Path . class ) ; \n + Set < Class < ? > > providerClasses = reflections . getTypesAnnotatedWith ( Provider . class ) ; \n + classes . addAll ( providerClasses ) ; \n log . info ( STRING1 , classes ) ; \n return classes ; \n }", "msg_token": "Adding Provider classes to be loaded into Application Context"} {"diff": " public class SettingsActivity extends PreferenceActivity implements OnPreference \n registerListPreference ( osmandSettings . METRIC_SYSTEM , screen , entries , MetricsConstants . values ( ) ) ; \n \n SINGLE \n - entrieValues = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 } ; \n + entrieValues = new String [ ] { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING6 , STRING7 , STRING8 , STRING5 , STRING14 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 } ; \n entries = new String [ entrieValues . length ] ; \n entries [ NUMBER0 ] = getString ( R . string . system_locale ) ; \n for ( int i = NUMBER1 ; i < entries . length ; i ++ ) {", "msg_token": "include nl locale"} {"diff": " public class SlopPurgeJob extends DataMaintenanceJob { \n return STRING0 ; \n } \n \n - @ jmxgetter ( name = STRING1 , description = STRING2 ) \n + @ jmxgetter ( name = STRING1 , description = STRING3 ) \n public synchronized long getSlopsPurged ( ) { \n return totalKeysUpdated + numKeysUpdatedThisRun . get ( ) ; \n }", "msg_token": "Fix jmx getter description"} {"diff": " public class OverlayCustomizationActivity extends ActionBarActivity { \n Overlay overlay = new Overlay ( ) \n . setBackgroundColor ( Color . parseColor ( STRING0 ) ) \n . disableClick ( true ) \n - . setStyle ( Overlay . Style . Rectangle ) ; \n + . setStyle ( Overlay . Style . Rectangle ) \n + . setOnClickListener ( new View . OnClickListener ( ) { \n + @ override \n + public void onClick ( View v ) { \n + mTutorialHandler . cleanUp ( ) ; \n + } \n + } ) ; \n \n SINGLE \n mTutorialHandler = TourGuide . init ( this ) . with ( TourGuide . Technique . Click ) \n public class OverlayCustomizationActivity extends ActionBarActivity { \n Toast . makeText ( mActivity , STRING1 , Toast . LENGTH_LONG ) . show ( ) ; \n } \n } ) ; \n + \n button . setOnClickListener ( new View . OnClickListener ( ) { \n @ override \n public void onClick ( View view ) {", "msg_token": "EXAMPLE Added Overlay onClicklistener example"} {"diff": " public class RootsCache { \n mRecentsRoot . authority = null ; \n mRecentsRoot . rootId = null ; \n mRecentsRoot . derivedIcon = R . drawable . ic_root_recent ; \n + mRecentsRoot . derivedType = RootInfo . TYPE_RECENTS ; \n mRecentsRoot . flags = Root . FLAG_LOCAL_ONLY | Root . FLAG_SUPPORTS_CREATE \n | Root . FLAG_SUPPORTS_IS_CHILD ; \n mRecentsRoot . title = mContext . getString ( R . string . root_recent ) ;", "msg_token": "Fix the position of the Recents root in DocumentsUI"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Change link to OrderingExplained to GitHub location"} {"diff": " public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ experimental \n public Single < T > toSingle ( ) {", "msg_token": "Improve toSingle javadoc diagram see also since annotation"} {"diff": " public class RegisterNewProfiles { \n public void start ( ) { \n TimeProfiler profiler = new TimeProfiler ( LOGGER ) . start ( STRING0 ) ; \n session = sessionFactory . getSession ( ) ; \n + \n + SINGLE \n + session . getEntityManager ( ) . clear ( ) ; \n + \n ListMultimap < String , RulesProfile > profilesByLanguage = loadDefinitions ( ) ; \n for ( String language : profilesByLanguage . keySet ( ) ) { \n List < RulesProfile > profiles = profilesByLanguage . get ( language ) ;", "msg_token": "Fix loading of rules during registration of Q profiles MySQL only"} {"diff": " public class FileDataStorageManager { \n String filePath = STRING0 ; \n for ( OCShare share : shares ) { \n if ( filePath != share . getPath ( ) ) { \n + filePath = share . getPath ( ) ; \n resetShareFlagInAFile ( filePath ) ; \n operations = prepareRemoveSharesInFile ( filePath , operations ) ; \n - filePath = share . getPath ( ) ; \n } \n } \n \n public class FileDataStorageManager { \n Log_OC . e ( TAG , STRING1 + e . getMessage ( ) ) ; \n \n } catch ( RemoteException e ) { \n - Log_OC . e ( TAG , STRING2 + e . getMessage ( ) ) ; \n + \n } \n }", "msg_token": "Fix saveSharesDB duplicated rows"} {"diff": " public class JetFormattingModelBuilder implements FormattingModelBuilder { \n JetCodeStyleSettings jetSettings = settings . getCustomSettings ( JetCodeStyleSettings . class ) ; \n CommonCodeStyleSettings jetCommonSettings = settings . getCommonSettings ( JetLanguage . INSTANCE ) ; \n \n - return new SpacingBuilder ( settings ) \n + return new SpacingBuilder ( settings , JetLanguage . INSTANCE ) \n SINGLE \n . after ( NAMESPACE_HEADER ) . blankLines ( NUMBER0 )", "msg_token": "Fix deprecation warning"} {"diff": " public abstract class NanoHTTPD { \n \n private final int myPort ; \n \n - private ServerSocket myServerSocket ; \n + private volatile ServerSocket myServerSocket ; \n \n private SSLServerSocketFactory sslServerSocketFactory ;", "msg_token": "Fixed a potential CPU cache issue"} {"diff": " public class FastQueue < E > { \n elements [ size ++ ] = e ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n public E poll ( ) { \n for ( ; ; ) { \n if ( drainedElements == null ) { \n public class FastQueue < E > { \n } \n \n if ( index < drainedElementCount ) { \n - return ( E ) drainedElements [ index ++ ] ; \n + return cast ( drainedElements [ index ++ ] ) ; \n } \n \n drainedElements = null ; \n } \n return null ; \n } \n + \n + @ suppresswarnings ( STRING0 ) \n + private E cast ( Object o ) { \n + return ( E ) o ; \n + } \n }", "msg_token": "Isolated unchecked cast warning from FastQueue poll"} {"diff": " public abstract class PackageManager { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ sdkconstant ( SdkConstantType . FEATURE ) \n public static final String FEATURE_AUDIO_PRO = STRING0 ;", "msg_token": "CDD for pro audio feature does not specify acoustics"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SharedGroupManager implements Closeable { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static boolean compact ( RealmConfiguration configuration ) { \n SharedGroup sharedGroup = null ; \n public class SharedGroupManager implements Closeable { \n configuration . getEncryptionKey ( ) ) ; \n result = sharedGroup . compact ( ) ; \n } catch ( Exception e ) { \n + RealmLog . i ( e . getMessage ( ) ) ; \n return false ; \n } finally { \n if ( sharedGroup != null ) {", "msg_token": "Logging a message when compact fails"} {"diff": " public interface Tree < T > extends Traversable < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ suppresswarnings ( STRING0 ) \n @ safevarargs \n - static < T > Tree < T > of ( T . . . nodes ) { \n - Objects . requireNonNull ( nodes , STRING1 ) ; \n - List < T > list = List . of ( nodes ) ; \n + static < T > Tree < T > of ( T . . . values ) { \n + Objects . requireNonNull ( values , STRING2 ) ; \n + List < T > list = List . of ( values ) ; \n return list . isEmpty ( ) ? Empty . instance ( ) : new Node < > ( list . head ( ) , list . tail ( ) . map ( Tree : : of ) ) ; \n }", "msg_token": "Rename Tree of param from nodes to values"} {"diff": " public class WebView extends AbsoluteLayout \n WebViewCore . ViewState viewState = draw . mViewState ; \n boolean isPictureAfterFirstLayout = viewState != null ; \n if ( isPictureAfterFirstLayout ) { \n + SINGLE \n + mLastWidthSent = NUMBER0 ; \n mZoomManager . onFirstLayout ( draw ) ; \n if ( ! mDrawHistory ) { \n setContentScrollTo ( viewState . mScrollX , viewState . mScrollY ) ;", "msg_token": "Fix the initial reflow width when switch between basic pages"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Moved Test class to new folder"} {"diff": " public class MasterClient extends CommunicationProtocol implements Master , Chann \n { \n channel = channelFuture . getChannel ( ) ; \n System . out . println ( STRING0 ) ; \n + break ; \n } \n else \n {", "msg_token": "Breaks the loop"} {"diff": " public class RepeatingActivity implements Closeable \n { \n if ( log != null ) \n { \n - log . add ( ActivityLog . Type . ERROR , STRING0 , e ) ; \n + log . add ( ActivityLog . Type . ERROR , String . format ( STRING1 , actualActivity . getClass ( ) . getSimpleName ( ) ) , e ) ; \n } \n } \n reQueue ( ) ;", "msg_token": "Include activity class name in log message"} {"diff": " public final class VcsConfiguration implements PersistentStateComponent < Element > \n private final PerformInBackgroundOption myCheckoutOption = new CheckoutInBackgroundOption ( ) ; \n private final PerformInBackgroundOption myAddRemoveOption = new AddRemoveInBackgroundOption ( ) ; \n \n - private VcsConfiguration ( ) { \n - } \n - \n public VcsConfiguration ( final Project project ) { \n myProject = project ; \n }", "msg_token": "vcs Remove unused method"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class ItemManaged { \n return adapter ; \n } \n \n + @ targetapi ( NUMBER0 ) \n void setAdapterOnView ( ListAdapter adapter ) { \n if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { \n mAbsListView . setAdapter ( adapter ) ;", "msg_token": "library Add TargetApi annotation on setAdapterOnView"} {"diff": " public interface AgentBuilder { \n \n private static final ConcurrentMap < Nexus , Object > TYPE_INITIALIZERS = new ConcurrentHashMap < Nexus , Object > ( ) ; \n \n + @ suppresswarnings ( STRING0 ) \n public static void initialize ( Class < ? > type ) \n throws NoSuchMethodException , InvocationTargetException , IllegalAccessException { \n Object typeInitializer = TYPE_INITIALIZERS . remove ( new Nexus ( type ) ) ; \n public interface AgentBuilder { \n } \n } \n \n + @ suppresswarnings ( STRING0 ) \n public static void register ( String name , ClassLoader classLoader , Object typeInitializer ) { \n TYPE_INITIALIZERS . put ( new Nexus ( name , classLoader ) , typeInitializer ) ; \n }", "msg_token": "Added annotations for voluntarily unused methods"} {"diff": " public abstract class DebuggerUtilsEx extends DebuggerUtils { \n public static CodeFragmentFactory getCodeFragmentFactory ( @ nullable PsiElement context , @ nullable FileType fileType ) { \n DefaultCodeFragmentFactory defaultFactory = DefaultCodeFragmentFactory . getInstance ( ) ; \n if ( fileType == null ) { \n - return defaultFactory ; \n + if ( context == null ) { \n + return defaultFactory ; \n + } \n + else { \n + fileType = context . getContainingFile ( ) . getFileType ( ) ; \n + } \n } \n for ( CodeFragmentFactory factory : ApplicationManager . getApplication ( ) . getExtensions ( CodeFragmentFactory . EXTENSION_POINT_NAME ) ) { \n if ( factory != defaultFactory && factory . getFileType ( ) . equals ( fileType ) && factory . isContextAccepted ( context ) ) {", "msg_token": "fixed evaluation in groovy"} {"diff": " public class FinalLocalVariableCheck extends Check \n break ; \n } \n case TokenTypes . VARIABLE_DEF : \n - if ( aAST . getParent ( ) . getType ( ) != TokenTypes . OBJBLOCK ) { \n + if ( aAST . getParent ( ) . getType ( ) != TokenTypes . OBJBLOCK \n + && aAST . getParent ( ) . getType ( ) != TokenTypes . FOR_EACH_CLAUSE ) \n + { \n insertVariable ( aAST ) ; \n } \n break ; \n abstract class AbstractClass \n { \n public abstract void abstractMethod ( int aParam ) ; \n } \n + \n + class Blah \n + { \n + static \n + { \n + for ( int a : some . getInts ( ) ) \n + { \n + \n + } \n + } \n + }", "msg_token": "Fixed bug where local variables to for each clauses where flagged as requiring the final modifier"} {"diff": " public class DirectoryIndexTest extends IdeaTestCase { \n checkInfo ( myLibSrcDir , myModule , true , true , STRING0 , null , myModule , myModule3 ) ; \n \n checkInfo ( myResDir , myModule , true , false , STRING0 , JavaResourceRootType . RESOURCE , myModule ) ; \n + \n + SINGLE \n + SINGLE \n }", "msg_token": "add to DirectoryIndexTest the controversial library exclude inside module content"} {"diff": " public class TaskExecution extends ContinuousOperation { \n return state . getSkipped ( ) ? state . getSkipMessage ( ) : ( state . getDidWork ( ) ) ? STRING0 : NO_WORK_MESSAGE ; \n } \n \n + public TaskState getState ( ) { \n + return state ; \n + } \n + \n public TaskExecution completed ( TaskState state ) { \n this . state = state ; \n return this ;", "msg_token": "Profile report added some stuff needed by discovery I removed it earlier accidentally"} {"diff": " public class SctpWorker extends NioWorker { \n selector , channel . getRawInterestOps ( ) , channel ) ; \n } \n \n + } else { \n + setInterestOps ( channel , succeededFuture ( channel ) , channel . getRawInterestOps ( ) ) ; \n } \n if ( future != null ) { \n ( ( SctpChannelImpl ) channel ) . setConnected ( ) ;", "msg_token": "Correct handle interestedOps changes in Sctp"} {"diff": " public class LoggingConfiguration { \n public Optional < String > getLogFormat ( ) { \n return Optional . fromNullable ( logFormat ) ; \n } \n + \n + public void setLogFormat ( String logFormat ) { \n + this . logFormat = logFormat ; \n + } \n } \n \n public static class FileConfiguration {", "msg_token": "Add setter for console log format"} {"diff": " public class ParseCompressedAndXLSTest extends TestUtil { \n if ( k1 != null ) k1 . delete ( ) ; \n } \n } \n - \n - @ test public void testMixedCSVXLS ( ) { \n - Frame k1 = null ; \n - try { \n - NFSFileVec nfs1 = NFSFileVec . make ( find_test_file ( STRING0 ) ) ; \n - NFSFileVec nfs2 = NFSFileVec . make ( find_test_file ( STRING1 ) ) ; \n - k1 = ParseDataset . parse ( Key . make ( ) , nfs1 . _key , nfs2 . _key ) ; \n - assertEquals ( NUMBER0 , k1 . numCols ( ) ) ; \n - assertEquals ( NUMBER1 , k1 . numRows ( ) ) ; \n - } finally { \n - if ( k1 != null ) k1 . delete ( ) ; \n - } \n - } \n }", "msg_token": "Remove test for behavior we don t want to support"} {"diff": " public class ASTddply extends ASTOp { \n public Group ( int len ) { _ds = new double [ len ] ; } \n public Group ( double ds [ ] ) { _ds = ds ; _hash = hash ( ) ; } \n SINGLE \n - public void fill ( int row , Chunk chks [ ] , long cols [ ] ) { \n + public Group fill ( int row , Chunk chks [ ] , long cols [ ] ) { \n for ( int c = NUMBER0 ; c < cols . length ; c ++ ) SINGLE \n _ds [ c ] = chks [ ( int ) cols [ c ] ] . atd ( row ) ; SINGLE \n _hash = hash ( ) ; \n + return this ; \n } \n private int hash ( ) { \n long h = NUMBER0 ; SINGLE", "msg_token": "return this from group fill"} {"diff": " public class RuntimeExpressionResolver extends ExpressionResolverImpl { \n String expression = node . asString ( ) ; \n if ( expression . length ( ) > NUMBER0 ) { \n expression = expression . substring ( NUMBER1 , expression . length ( ) - NUMBER1 ) ; \n - if ( vaultReader . isVaultFormat ( expression ) ) { \n + if ( vaultReader != null && vaultReader . isVaultFormat ( expression ) ) { \n node . set ( vaultReader . retrieveFromVault ( expression ) ) ; \n } \n }", "msg_token": "Fix potential NPE"} {"diff": " public class SecondaryReadTest extends TestCase { \n SINGLE \n for ( int idx = NUMBER0 ; idx < INSERT_COUNT ; idx ++ ) { \n final ObjectId id = ObjectId . get ( ) ; \n - System . err . println ( STRING0 + id + STRING1 ) ; \n WriteResult writeResult = pCol . insert ( new BasicDBObject ( STRING2 , id ) , WriteConcern . REPLICAS_SAFE ) ; \n - System . err . println ( STRING3 ) ; \n writeResult . getLastError ( ) . throwOnError ( ) ; \n insertedIds . add ( id ) ; \n }", "msg_token": "Remove Debug printouts"} {"diff": " public class JmeSystem { \n SINGLE \n SINGLE \n \n - JmeFormatter formatter = new JmeFormatter ( ) ; \n + SINGLE \n SINGLE \n SINGLE \n SINGLE \n \n - Handler consoleHandler = new ConsoleHandler ( ) ; \n - consoleHandler . setFormatter ( formatter ) ; \n - Logger . getLogger ( STRING0 ) . removeHandler ( Logger . getLogger ( STRING1 ) . getHandlers ( ) [ NUMBER0 ] ) ; \n - Logger . getLogger ( STRING2 ) . removeHandler ( Logger . getLogger ( STRING1 ) . getHandlers ( ) [ NUMBER0 ] ) ; \n - Logger . getLogger ( STRING0 ) . addHandler ( consoleHandler ) ; \n - Logger . getLogger ( STRING2 ) . addHandler ( consoleHandler ) ; \n + SINGLE \n + SINGLE \n \n - SINGLE \n + SINGLE \n + SINGLE \n } \n SINGLE \n SINGLE", "msg_token": "Remove messed up logging setup"} {"diff": " public class PartitionTask extends AbstractTask { \n \n SINGLE \n DistributionPattern dpReader = null ; \n - switch ( config . getInputShipStrategy ( NUMBER0 ) ) { \n + switch ( config . getInputShipStrategy ( NUMBER1 ) ) { \n case FORWARD : \n SINGLE \n dpReader = new PointwiseDistributionPattern ( ) ;", "msg_token": "Used correct shipping strategy for reading data in partitioner"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AsyncSPDYConnection extends AbstractConnection implements AsyncConn \n } \n finally \n { \n + buffer . limit ( jettyBuffer . putIndex ( ) ) ; \n buffer . position ( jettyBuffer . getIndex ( ) ) ; \n }", "msg_token": "Fixed buffer indexing"} {"diff": " public final class CollapsePropertiesTest extends CompilerTestCase { \n } \n \n @ override public CompilerPass getProcessor ( Compiler compiler ) { \n - System . err . println ( compiler . getCodingConvention ( ) ) ; \n return new CollapseProperties ( compiler , true ) ; \n }", "msg_token": "Remove a print statement that I accidentally left in a test"} {"diff": " public class AutoBackupFragment extends Fragment implements OnTaskFinishedListen \n \n SINGLE \n boolean autoBackupEnabled = AdvancedSettings . isAutoBackupEnabled ( getContext ( ) ) ; \n - containerSettings . setVisibility ( View . VISIBLE ) ; \n + containerSettings . setVisibility ( autoBackupEnabled ? View . VISIBLE : View . GONE ) ; \n switchAutoBackup . setChecked ( autoBackupEnabled ) ; \n switchAutoBackup . setOnCheckedChangeListener ( new OnCheckedChangeListener ( ) { \n @ override", "msg_token": "Properly hide auto backup settings if it is disabled"} {"diff": " public class Liquibase { \n COMMENT \n public final void dropAll ( CatalogAndSchema . . . schemas ) throws DatabaseException { \n if ( schemas == null || schemas . length == NUMBER0 ) { \n - schemas = new CatalogAndSchema [ ] { new CatalogAndSchema ( getDatabase ( ) . getDefaultCatalogName ( ) , getDatabase ( ) . getDefaultSchemaName ( ) ) } \n + schemas = new CatalogAndSchema [ ] { new CatalogAndSchema ( getDatabase ( ) . getDefaultCatalogName ( ) , getDatabase ( ) . getDefaultSchemaName ( ) ) } ; \n } \n \n DropAllCommand dropAll = ( DropAllCommand ) CommandFactory . getInstance ( ) . getCommand ( STRING0 ) ;", "msg_token": "Put back Liquibase dropAll to call DropAllCommand"} {"diff": " public class GrailsDomainClassMappingContext extends AbstractMappingContext { \n return null ; \n } \n \n - @ override \n public IdentityMapping getIdentityMapping ( ClassMapping classMapping ) { \n return null ; \n }", "msg_token": "remove Override from GrailsDomainClassMappingContext getIdentityMapping ClassMapping"} {"diff": " public class PennTreebankLanguagePack extends AbstractTreebankLanguagePack { \n return new EnglishGrammaticalStructureFactory ( puncFilter ) ; \n } else { \n return new UniversalEnglishGrammaticalStructureFactory ( puncFilter ) ; \n - } \n + } \n } \n \n @ override \n public class PennTreebankLanguagePack extends AbstractTreebankLanguagePack { \n return new EnglishGrammaticalStructureFactory ( puncFilter , hf ) ; \n } else { \n return new UniversalEnglishGrammaticalStructureFactory ( puncFilter , hf ) ; \n - } \n + } \n } \n \n @ override \n public class PennTreebankLanguagePack extends AbstractTreebankLanguagePack { \n COMMENT \n @ override \n public HeadFinder typedDependencyHeadFinder ( ) { \n - return new SemanticHeadFinder ( this , true ) ; \n + if ( generateOriginalDependencies ) { \n + return new SemanticHeadFinder ( this , true ) ; \n + } else { \n + return new UniversalSemanticHeadFinder ( this , true ) ; \n + } \n }", "msg_token": "Use correct HeadFinder in parser demo"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + @ runwith ( HazelcastParallelClassRunner . class ) \n + @ category ( { QuickTest . class , ParallelTest . class } ) \n public class PortableUtilsTest extends HazelcastTestSupport { \n \n @ rule", "msg_token": "Added missing annotations to PortableUtilsTest"} {"diff": " import NAMESPACE ; \n public class SpringApplication { \n \n COMMENT \n + COMMENT \n + COMMENT \n + public static final String BANNER_LOCATION_PROPERTY_VALUE = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String BANNER_LOCATION_PROPERTY = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SpringApplication { \n } \n \n private Banner selectBanner ( Environment environment ) { \n - String location = environment . getProperty ( STRING1 , STRING0 ) ; \n + String location = environment . getProperty ( BANNER_LOCATION_PROPERTY , BANNER_LOCATION_PROPERTY_VALUE ) ; \n ResourceLoader resourceLoader = this . resourceLoader != null ? this . resourceLoader \n : new DefaultResourceLoader ( getClassLoader ( ) ) ; \n Resource resource = resourceLoader . getResource ( location ) ;", "msg_token": "Add constants for banner location"} {"diff": " public class DefaultAsyncSupportResolver implements AsyncSupportResolver { \n . newInstance ( config ) ; \n } catch ( final Exception e ) { \n logger . warn ( STRING0 , targetClass , e ) ; \n + \n Throwable cause = e . getCause ( ) ; \n if ( cause != null ) { \n - logger . error ( STRING1 , targetClass , cause ) ; \n + logger . error ( STRING2 , cause . getMessage ( ) , cause ) ; \n } \n return null ; \n } \n public class DefaultAsyncSupportResolver implements AsyncSupportResolver { \n logger . error ( STRING0 , targetClassFQN , e ) ; \n Throwable cause = e . getCause ( ) ; \n if ( cause != null ) { \n - logger . error ( STRING1 , targetClassFQN , cause ) ; \n + logger . error ( STRING2 , cause . getMessage ( ) , cause ) ; \n } \n throw new IllegalArgumentException ( STRING3 + targetClassFQN , e ) ; \n }", "msg_token": "Improve error reporting"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "remove incorrect comment"} {"diff": " public class SimpleHostConnectionPoolTest { \n config . setMaxConnsPerHost ( NUMBER0 ) ; \n config . setInitConnsPerHost ( NUMBER1 ) ; \n config . setConnectTimeout ( NUMBER2 ) ; \n + config . initialize ( ) ; \n return config ; \n }", "msg_token": "Fix unit test"} {"diff": " public class CommentDetailFragment extends Fragment implements NotificationFragm \n COMMENT \n public static CommentDetailFragment newInstanceForRemoteNoteComment ( final String noteId ) { \n CommentDetailFragment fragment = newInstance ( noteId ) ; \n - fragment . setShouldRequestCommentFromNote ( ) ; \n + fragment . enableShouldRequestCommentFromNote ( ) ; \n return fragment ; \n } \n \n public class CommentDetailFragment extends Fragment implements NotificationFragm \n showComment ( ) ; \n } \n \n - private void setShouldFocusReplyField ( ) { \n + private void disableShouldFocusReplyField ( ) { \n mShouldFocusReplyField = false ; \n } \n \n - private void setShouldRequestCommentFromNote ( ) { \n + private void enableShouldRequestCommentFromNote ( ) { \n mShouldRequestCommentFromNote = true ; \n } \n \n public class CommentDetailFragment extends Fragment implements NotificationFragm \n AniUtils . animateBottomBar ( mLayoutReply , true ) ; \n if ( mEditReply != null && mShouldFocusReplyField ) { \n mEditReply . requestFocus ( ) ; \n - setShouldFocusReplyField ( ) ; \n + disableShouldFocusReplyField ( ) ; \n } \n }", "msg_token": "Rename set methods to reflect state"} {"diff": " public class AppOpsManager { \n android . Manifest . permission . WRITE_CALL_LOG , \n android . Manifest . permission . READ_CALENDAR , \n android . Manifest . permission . WRITE_CALENDAR , \n - null , SINGLE \n android . Manifest . permission . ACCESS_WIFI_STATE , \n + null , SINGLE \n null , SINGLE \n android . Manifest . permission . CALL_PHONE , \n android . Manifest . permission . READ_SMS ,", "msg_token": "Fix App Ops permission mapping structure"} {"diff": " class CallbackReference extends WeakReference { \n if ( m . getParameterTypes ( ) . length > Function . MAX_NARGS ) { \n String msg = STRING0 \n + STRING1 + m ; \n - throw new IllegalArgumentException ( msg ) ; \n + throw new UnsupportedOperationException ( msg ) ; \n } \n return m ; \n } \n public class Function extends Pointer { \n result = invokeObject ( callingConvention , args ) ; \n if ( result != null \n && ! returnType . isAssignableFrom ( result . getClass ( ) ) ) { \n - throw new IllegalArgumentException ( STRING2 + returnType \n - + STRING3 \n - + result . getClass ( ) ) ; \n + throw new ClassCastException ( STRING2 + returnType \n + + STRING3 \n + + result . getClass ( ) ) ; \n } \n } \n else {", "msg_token": "use more appropriate exception types"} {"diff": " import NAMESPACE ; \n public class CustomSwipeToRefreshRefreshActivity extends ActionBarActivity implements ActionMode . Callback { \n \n CustomUltimateRecyclerview ultimateRecyclerView ; \n - SimpleAdapter simpleRecyclerViewAdapter = null ; \n + SimpleScaleInAnimationAdapter simpleRecyclerViewAdapter = null ; \n LinearLayoutManager linearLayoutManager ; \n int moreNum = NUMBER0 ; \n private ActionMode actionMode ; \n public class CustomSwipeToRefreshRefreshActivity extends ActionBarActivity imple \n ultimateRecyclerView = ( CustomUltimateRecyclerview ) findViewById ( R . id . custom_ultimate_recycler_view ) ; \n ultimateRecyclerView . setHasFixedSize ( false ) ; \n List < String > stringList = new ArrayList < > ( ) ; \n - simpleRecyclerViewAdapter = new SimpleAdapter ( stringList ) ; \n + simpleRecyclerViewAdapter = new SimpleScaleInAnimationAdapter ( stringList ) ; \n \n stringList . add ( STRING0 ) ; \n stringList . add ( STRING1 ) ;", "msg_token": "add SimpleScaleInAnimationAdapter in CustomSwipeRefreshActivity"} {"diff": " public abstract class Es6CompilerTestCase extends CompilerTestCase { \n \n @ override \n protected void testExternChanges ( String extern , String input , String expectedExtern ) { \n - setAcceptedLanguage ( LanguageMode . ECMASCRIPT6 ) ; \n - super . testExternChanges ( extern , input , expectedExtern ) ; \n - setAcceptedLanguage ( LanguageMode . ECMASCRIPT5 ) ; \n + testExternChanges ( extern , input , expectedExtern , LanguageMode . ECMASCRIPT6 ) ; \n + testExternChanges ( extern , input , expectedExtern , LanguageMode . ECMASCRIPT5 ) ; \n + } \n + \n + protected void testExternChanges ( String extern , String input , \n + String expectedExtern , LanguageMode lang ) { \n + setAcceptedLanguage ( lang ) ; \n super . testExternChanges ( extern , input , expectedExtern ) ; \n } \n }", "msg_token": "Added Languagemode selection overload to addExtern"} {"diff": " public class RefreshFolderOperation extends RemoteOperation { \n SINGLE \n mLocalFolder = mStorageManager . getFileByPath ( mLocalFolder . getRemotePath ( ) ) ; \n \n - SINGLE \n - OCFile remoteFolder = FileStorageUtils . fillOCFile ( ( RemoteFile ) folderAndFiles . get ( NUMBER0 ) ) ; \n - remoteFolder . setParentId ( mLocalFolder . getParentId ( ) ) ; \n - remoteFolder . setFileId ( mLocalFolder . getFileId ( ) ) ; \n - \n Log_OC . d ( TAG , STRING0 + mLocalFolder . getRemotePath ( ) \n + STRING1 ) ; \n \n public class RefreshFolderOperation extends RemoteOperation { \n updatedFile . setParentId ( mLocalFolder . getFileId ( ) ) ; \n \n SINGLE \n - SINGLE \n localFile = localFilesMap . remove ( remoteFile . getRemotePath ( ) ) ; \n \n SINGLE \n public class RefreshFolderOperation extends RemoteOperation { \n } \n \n SINGLE \n + OCFile remoteFolder = mStorageManager . getFileByPath ( ( ( RemoteFile ) folderAndFiles . get ( NUMBER0 ) ) . getRemotePath ( ) ) ; \n mStorageManager . saveFolder ( remoteFolder , updatedFiles , localFilesMap . values ( ) ) ; \n \n mChildren = updatedFiles ;", "msg_token": "Save local folder instead a new OCFile from remote data"} {"diff": " public class TransitIndex { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ get \n @ path ( STRING0 ) \n public class TransitIndex { \n @ queryparam ( STRING1 ) Boolean extended , @ queryparam ( STRING2 ) String routerId ) \n throws JSONException { \n \n - time /= NUMBER0 ; \n - \n AgencyAndId firstStop = null ; \n if ( stopId != null ) { \n firstStop = new AgencyAndId ( stopAgency , stopId ) ;", "msg_token": "shifted another transit index method to seconds"} {"diff": " import NAMESPACE ; \n public class LoggingFactory { \n SINGLE \n public static void bootstrap ( ) { \n + bootstrap ( Level . WARN ) ; \n + } \n + \n + public static void bootstrap ( Level level ) { \n hijackJDKLogging ( ) ; \n \n final Logger root = getCleanRoot ( ) ; \n public class LoggingFactory { \n formatter . start ( ) ; \n \n final ThresholdFilter filter = new ThresholdFilter ( ) ; \n - filter . setLevel ( Level . WARN . toString ( ) ) ; \n + filter . setLevel ( level . toString ( ) ) ; \n filter . start ( ) ; \n \n final ConsoleAppender < ILoggingEvent > appender = new ConsoleAppender < > ( ) ;", "msg_token": "Add level parameter for logging bootstrap"} {"diff": " public class NoExecutionVariableScope implements VariableScope { \n return null ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n + @ override \n + public < T > T getVariable ( String variableName , Class < T > variableClass ) { \n + return null ; \n + } \n + \n + @ override \n + public < T > T getVariableLocal ( String variableName , Class < T > variableClass ) { \n + return null ; \n + } \n + \n + @ suppresswarnings ( STRING0 ) \n public Set < String > getVariableNames ( ) { \n return Collections . EMPTY_SET ; \n }", "msg_token": "Add implementation with nulls for NoExecutionVariableScope"} {"diff": " public class GremlinPluginFunctionalTest implements GraphHolder \n assertTrue ( response . indexOf ( STRING0 ) > response . indexOf ( STRING1 ) ) ; \n } \n \n - SINGLE \n @ test \n - @ ignore \n public void testLineBreaks ( ) throws UnsupportedEncodingException \n { \n - String payload = STRING2 ; \n + SINGLE \n + SINGLE \n + String payload = STRING3 ; \n String response = gen . get ( ) \n . expectedStatus ( Status . OK . getStatusCode ( ) ) \n . payload ( JSONPrettifier . parse ( payload ) )", "msg_token": "setting up an example of multiline script from Java"} {"diff": " public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj \n \n protected boolean mRenderChildrenAsBatch = false ; \n protected boolean mIsPartOfBatch = false ; \n + protected boolean mManageMaterial = true ; \n \n protected boolean mEnableBlending = false ; \n protected int mBlendFuncSFactor ; \n public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj \n COMMENT \n public void reload ( ) { \n if ( ! mIsContainerOnly ) { \n - mMaterial . reload ( ) ; \n + if ( mManageMaterial ) \n + mMaterial . reload ( ) ; \n mGeometry . reload ( ) ; \n } \n \n public class BaseObject3D extends ATransformable3D implements Comparable < BaseObj \n this . mIsPartOfBatch = isPartOfBatch ; \n } \n \n + public boolean getManageMaterial ( ) \n + { \n + return mManageMaterial ; \n + } \n + \n + public void setManageMaterial ( boolean manageMaterial ) \n + { \n + this . mManageMaterial = manageMaterial ; \n + } \n + \n public void setBlendingEnabled ( boolean value ) { \n mEnableBlending = value ; \n }", "msg_token": "Added mManageMaterial to specify whether a BaseObject3D will reload its"} {"diff": " public class NaviActivityLifecycleTest { \n HashSet < Event < ? > > notEnoughEvents = new HashSet < > ( ) ; \n notEnoughEvents . add ( Event . CREATE ) ; \n NaviComponent badHandler = new NaviEmitter ( notEnoughEvents ) ; \n + SINGLE \n NaviLifecycle . createActivityLifecycleProvider ( badHandler ) ; \n } \n \n public class NaviFragmentLifecycleTest { \n HashSet < Event < ? > > notEnoughEvents = new HashSet < > ( ) ; \n notEnoughEvents . add ( Event . ATTACH ) ; \n NaviComponent badHandler = new NaviEmitter ( notEnoughEvents ) ; \n + SINGLE \n NaviLifecycle . createFragmentLifecycleProvider ( badHandler ) ; \n } \n \n final class TestUtil { \n COMMENT \n COMMENT \n COMMENT \n - static final void cleanGarbage ( ) { \n + static void cleanGarbage ( ) { \n System . gc ( ) ; \n try { \n Thread . sleep ( NUMBER0 ) ; \n final class Functions { \n return true ; \n } \n \n + SINGLE \n Exceptions . propagate ( throwable ) ; \n return false ; \n }", "msg_token": "Fix some minor warnings"} {"diff": " public class NewChunk extends Chunk { \n boolean floatOverflow = false ; \n assert checkCnt ( ) ; \n \n - if ( _naCnt == _len ) SINGLE \n + byte mode = type ( ) ; \n + if ( mode == AppendableVec . NA ) SINGLE \n return new C0DChunk ( Double . NaN , _len ) ; \n + for ( int i = NUMBER0 ; i < _len ; i ++ ) \n + if ( mode == AppendableVec . ENUM && ! isEnum ( i ) || \n + mode == AppendableVec . NUMBER && isEnum ( i ) ) \n + setNA_impl ( i ) ; \n + if ( mode == AppendableVec . NUMBER ) _strCnt = NUMBER0 ; \n + assert checkCnt ( ) ; \n \n SINGLE \n SINGLE", "msg_token": "Uniformly cleanup enums numbers"} {"diff": " final class CameraConfigurationManager { \n SINGLE \n SINGLE \n private static final int MIN_PREVIEW_PIXELS = NUMBER0 * NUMBER1 ; SINGLE \n - private static final int MAX_PREVIEW_PIXELS = NUMBER2 * NUMBER3 ; SINGLE \n + private static final int MAX_PREVIEW_PIXELS = NUMBER4 * NUMBER5 ; SINGLE \n \n private final Context context ; \n private Point screenResolution ;", "msg_token": "Allow selection of larger preview size keep max reticle size the same"} {"diff": " public class AnalyzedTokenReadings { \n } \n if ( anTokReadings [ anTokReadings . length - NUMBER0 ] . getPOSTag ( ) != null ) { \n l . add ( anTokReadings [ anTokReadings . length - NUMBER0 ] ) ; \n - } \n + } \n + tok . setWhitespaceBefore ( isWhitespaceBefore ) ; \n l . add ( tok ) ; \n anTokReadings = l . toArray ( new AnalyzedToken [ l . size ( ) ] ) ; \n if ( tok . getToken ( ) . length ( ) > token . length ( ) ) { SINGLE \n public class AnalyzedTokenReadings { \n anTokReadings [ anTokReadings . length - NUMBER0 ] . \n setWhitespaceBefore ( isWhitespaceBefore ) ; \n isParaEnd = hasPosTag ( JLanguageTool . PARAGRAPH_END_TAGNAME ) ; \n - isSentEnd = hasPosTag ( JLanguageTool . SENTENCE_END_TAGNAME ) ; \n + isSentEnd = hasPosTag ( JLanguageTool . SENTENCE_END_TAGNAME ) ; \n } \n \n public final void removeReading ( final AnalyzedToken tok ) {", "msg_token": "fix one possible problematic place"} {"diff": " public class GameData \n if ( item instanceof ItemBlock ) \n { \n ItemBlock itemBlock = ( ItemBlock ) item ; \n - BLOCK_TO_ITEM . put ( itemBlock . getBlock ( ) , item ) ; \n + BLOCK_TO_ITEM . put ( itemBlock . getBlock ( ) . delegate . get ( ) , item ) ; \n } \n } \n }", "msg_token": "Actually use the delegate for the itemblock"} {"diff": " public final class DreamManagerService extends IDreamManager . Stub { \n } \n \n private static ComponentName [ ] componentsFromString ( String names ) { \n + if ( names == null ) { \n + return null ; \n + } \n String [ ] namesArray = names . split ( STRING0 ) ; \n ComponentName [ ] componentNames = new ComponentName [ namesArray . length ] ; \n for ( int i = NUMBER0 ; i < namesArray . length ; i ++ ) {", "msg_token": "Fix NPE inside DreamManagerService"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class AtomicLongMap < K > { \n COMMENT \n COMMENT \n COMMENT \n + @ beta \n @ canignorereturnvalue \n public boolean removeIfZero ( K key ) { \n return remove ( key , NUMBER0 ) ;", "msg_token": "Add Beta to new method that hasn t yet been API reviewed"} {"diff": " public class SystemTable \n QueryFilter filter = QueryFilter . getNamesFilter ( decorate ( COOKIE_KEY ) , new QueryPath ( STATUS_CF ) , upgradeMarker ) ; \n ColumnFamily cf = table . getColumnFamilyStore ( STATUS_CF ) . getColumnFamily ( filter ) ; \n if ( cf != null ) \n + { \n + logger . debug ( STRING0 ) ; \n return ; \n + } \n \n SINGLE \n ColumnFamilyStore hintsCfs = Table . open ( Table . SYSTEM_TABLE ) . getColumnFamilyStore ( HintedHandOffManager . HINTS_CF ) ; \n public class SystemTable \n hintsCfs . snapshot ( STRING1 ) ; \n hintsCfs . removeAllSSTables ( ) ; \n } \n + logger . debug ( STRING2 ) ; \n RowMutation rm = new RowMutation ( Table . SYSTEM_TABLE , COOKIE_KEY ) ; \n rm . add ( new QueryPath ( STATUS_CF , null , upgradeMarker ) , ByteBufferUtil . bytes ( STRING3 ) , System . currentTimeMillis ( ) ) ; \n rm . apply ( ) ;", "msg_token": "add debug logging to purgeIncompatibleHints"} {"diff": " public class ShadowFragment { \n \n @ implementation \n public Resources getResources ( ) { \n - return getActivity ( ) . getResources ( ) ; \n + if ( activity == null ) { \n + throw new IllegalStateException ( STRING0 + this + STRING1 ) ; \n + } \n + return activity . getResources ( ) ; \n } \n \n public void setTag ( String tag ) { \n public class FragmentTest { \n assertEquals ( STRING2 , hello ) ; \n } \n \n + @ test ( expected = IllegalStateException . class ) \n + public void unattachedFragmentsCannotGetResources ( ) throws Exception { \n + new TestFragment ( ) . getResources ( ) ; \n + } \n }", "msg_token": "ShadowFragment getResources throws an IllegalStateException if it s not attached to an Activity just like real Android"} {"diff": " public class TextureView extends View { \n mSurface . release ( ) ; \n } \n mSurface = surfaceTexture ; \n + \n + SINGLE \n + SINGLE \n + if ( ( ( mViewFlags & VISIBILITY_MASK ) == VISIBLE ) ) { \n + mSurface . setOnFrameAvailableListener ( mUpdateListener , mAttachInfo . mHandler ) ; \n + } \n mUpdateSurface = true ; \n invalidateParentIfNeeded ( ) ; \n }", "msg_token": "Fix setSurfaceTexture to handle surface caching"} {"diff": " public class CompilationUnit extends ProcessingUnit { \n try { \n ClassNode classNode = ( ClassNode ) classNodes . next ( ) ; \n context = classNode . getModule ( ) . getContext ( ) ; \n - if ( context == null || context . phase <= phase ) { \n + if ( context == null || context . phase < phase || ( context . phase == phase && ! context . phaseComplete ) ) { \n body . call ( context , new GeneratorContext ( this . ast ) , classNode ) ; \n } \n } catch ( CompilationFailedException e ) {", "msg_token": "OptimizerVisitor may run twice corrupting constants test pending"} {"diff": " public class TestOrderByTypeExpander extends AbstractTestBase \n { \n for ( String name : names ) \n { \n - System . out . println ( name ) ; \n Node node = itr . next ( ) ; \n assertEquals ( STRING0 + name + STRING1 + node . getProperty ( STRING2 ) , \n getNodeWithName ( name ) , node ) ;", "msg_token": "Removed a System out"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CustomConstraintTest { \n @ deployment \n public static Archive < ? > deployment ( ) { \n WebArchive war = ShrinkWrap . create ( WebArchive . class ) \n - . addClasses ( MyBean . class ) \n + . addClasses ( MyBean . class , ZipCode . class , ZipCodeValidator . class ) \n . addAsResource ( STRING0 ) ; \n \n System . out . println ( war . toString ( true ) ) ; \n public class CustomConstraintTest { \n public void saveZipCodeForIndia ( ) { \n SINGLE \n SINGLE \n - SINGLE \n + thrown . expectMessage ( STRING1 ) ; \n bean . saveZipIndia ( STRING2 ) ; \n }", "msg_token": "Add Bean Validation validator and annotation to deployment"} {"diff": " public class ZLTextPlainModel implements ZLTextModel , ZLTextStyleEntry . Feature { \n ++ dataOffset ; \n switch ( type ) { \n case ZLTextParagraph . Entry . TEXT : \n - myTextLength = \n + { \n + int textLength = \n ( int ) data [ dataOffset ++ ] + \n ( ( ( int ) data [ dataOffset ++ ] ) < < NUMBER0 ) ; \n + if ( textLength > data . length - dataOffset ) { \n + textLength = data . length - dataOffset ; \n + } \n + myTextLength = textLength ; \n myTextData = data ; \n myTextOffset = dataOffset ; \n - dataOffset += myTextLength ; \n + dataOffset += textLength ; \n break ; \n + } \n case ZLTextParagraph . Entry . CONTROL : \n { \n short kind = ( short ) data [ dataOffset ++ ] ;", "msg_token": "fixed possible AIOOBException"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StatusViewHolder extends RecyclerView . ViewHolder implements Constan \n screenNameView . setText ( STRING0 + TWIDERE_PREVIEW_SCREEN_NAME ) ; \n textView . setText ( toPlainText ( TWIDERE_PREVIEW_TEXT_HTML ) ) ; \n timeView . setTime ( System . currentTimeMillis ( ) ) ; \n + mediaPreviewContainer . displayMedia ( R . drawable . nyan_stars_background ) ; \n } \n \n public void displayStatus ( final ParcelableStatus status , final boolean displayInReplyTo ) {", "msg_token": "improved card preview"} {"diff": " import NAMESPACE ; \n abstract public class AbstractPluginAware implements PluginAware { \n \n public void apply ( Closure closure ) { \n - DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) , this ) ; \n + DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) . getBase ( ) . createChild ( ) , this ) ; \n ConfigureUtil . configure ( closure , action ) ; \n action . execute ( ) ; \n } \n \n public void apply ( Map < String , ? > options ) { \n - DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) , this ) ; \n + DefaultObjectConfigurationAction action = new DefaultObjectConfigurationAction ( getFileResolver ( ) , getScriptPluginFactory ( ) , getScriptHandlerFactory ( ) , getClassLoaderScope ( ) . getBase ( ) . createChild ( ) , this ) ; \n ConfigureUtil . configureByMap ( options , action ) ; \n action . execute ( ) ; \n }", "msg_token": "Script plugins use a child class loader scope of the base"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed testng assert imports into junit assert imports"} {"diff": " public class Tapjacker extends Service implements View . OnTouchListener { \n super . onDestroy ( ) ; \n } \n \n - @ override \n public boolean onTouch ( View v , MotionEvent event ) { \n Log . w ( STRING0 , \n String . valueOf ( event . getX ( ) ) + STRING1 + String . valueOf ( event . getY ( ) ) ) ;", "msg_token": "Fixed incorrect package directory structure"} {"diff": " public class SelectorDimFilter implements DimFilter \n ) \n { \n Preconditions . checkArgument ( dimension != null , STRING0 ) ; \n - Preconditions . checkArgument ( value != null , STRING1 ) ; \n + \n this . dimension = dimension ; \n this . value = value ; \n } \n public class SelectorDimFilter implements DimFilter \n public byte [ ] getCacheKey ( ) \n { \n byte [ ] dimensionBytes = dimension . getBytes ( ) ; \n - byte [ ] valueBytes = value . getBytes ( ) ; \n + byte [ ] valueBytes = ( value == null ) ? new byte [ ] { } : value . getBytes ( ) ; \n \n return ByteBuffer . allocate ( NUMBER0 + dimensionBytes . length + valueBytes . length ) \n . put ( DimFilterCacheHelper . SELECTOR_CACHE_ID )", "msg_token": "fix selector dim filter check for value null"} {"diff": " package NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ;", "msg_token": "Remove an unused import from ParserTest"} {"diff": " public class FB2Reader extends ZLXMLReader { \n myModelReader . pushKind ( ( byte ) FBTextKind . POEM_TITLE . Index ) ; \n } else if ( mySectionDepth == NUMBER0 ) { \n myModelReader . insertEndOfSectionParagraph ( ) ; \n - myModelReader . pushKind ( ( byte ) tag . ordinal ( ) ) ; \n + myModelReader . pushKind ( ( byte ) FBTextKind . TITLE . Index ) ; \n } else { \n myModelReader . pushKind ( ( byte ) FBTextKind . SECTION_TITLE . Index ) ; \n myInsideTitle = true ;", "msg_token": "fixed TITLE textKind index"} {"diff": " public abstract class DKV { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + if ( ! isConvertedFrameKeyString ( key . toString ( ) ) ) { \n + String frameKeyString = calcConvertedFrameKeyString ( key . toString ( ) ) ; \n + Key k = Key . make ( frameKeyString ) ; \n + remove ( k ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Uncommented for now previously commented out hook in DKV to remove"} {"diff": " public class DataSourceDefinitionInjectionSource extends ResourceDefinitionInjec \n \n private void setProperty ( final DeploymentReflectionIndex deploymentReflectionIndex , final Class < ? > dataSourceClass , final Map < String , String > properties , final String name , final Object value ) { \n SINGLE \n - if ( value == null ) return ; \n - if ( value instanceof String && STRING0 . equals ( value ) ) return ; \n + if ( value == null || STRING0 . equals ( value ) ) return ; \n if ( value instanceof Integer && ( ( Integer ) value ) . intValue ( ) == - NUMBER0 ) return ; \n StringBuilder builder = new StringBuilder ( STRING1 ) . append ( name ) ; \n builder . setCharAt ( NUMBER1 , Character . toUpperCase ( name . charAt ( NUMBER2 ) ) ) ;", "msg_token": "Reduce unnecessary instanceof check"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n \n COMMENT \n COMMENT \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Remove unused imports idnetified by Eclipse"} {"diff": " public interface Row extends Unfiltered , Collection < ColumnData > \n public Clustering clustering ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void addPrimaryKeyLivenessInfo ( LivenessInfo info ) ;", "msg_token": "Fix typo in javadoc"} {"diff": " public class AsyncSocketMiddleware extends SimpleMiddleware { \n SINGLE \n if ( lastException == null ) \n lastException = new ConnectionFailedException ( STRING0 ) ; \n - setComplete ( lastException ) ; \n + if ( setComplete ( lastException ) ) { \n + data . connectCallback . onConnectCompleted ( lastException , null ) ; \n + } \n } \n } ) ;", "msg_token": "BUbble up SSL exceptions"} {"diff": " public class RecoverySourceHandler { \n \n @ override \n public final void write ( int b ) throws IOException { \n - write ( new byte [ ] { ( byte ) b } , NUMBER0 , NUMBER1 ) ; \n + throw new UnsupportedOperationException ( STRING0 ) ; \n } \n \n @ override \n public class RecoverySourceHandler { \n COMMENT \n COMMENT \n COMMENT \n + boolean success = false ; \n try { \n sendNextChunk ( position , new BytesArray ( b , offset , length ) , md . length ( ) == position + length ) ; \n position += length ; \n assert md . length ( ) >= position : STRING1 + md . length ( ) + STRING2 + position ; \n - } catch ( Exception e ) { \n - failed = true ; \n - throw e ; \n + success = true ; \n + } finally { \n + if ( success == false ) { \n + failed = true ; \n + } \n } \n } \n }", "msg_token": "don t allow writing single bytes on recovery outputstream"} {"diff": " public class ModCluster { \n return ttl ; \n } \n \n - public void setTtl ( long ttl ) { \n + public Builder setTtl ( long ttl ) { \n this . ttl = ttl ; \n + return this ; \n } \n }", "msg_token": "Fix builder method"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ExecuteJobsRunnable implements Runnable \n { \n - private static Logger log = LoggerFactory . getLogger ( AcquireJobsRunnable . class ) ; \n + private static Logger log = LoggerFactory . getLogger ( ExecuteJobsRunnable . class ) ; \n \n private final List < String > jobIds ; \n private final JobExecutor jobExecutor ;", "msg_token": "fixed silly copy paste error in logger factory method"} {"diff": " public class ContentTypeHeader extends HttpHeader { \n \n private String [ ] parts ; \n \n - public static Optional < ContentTypeHeader > getFrom ( Request request ) { \n - String value = request . getHeader ( KEY ) ; \n - if ( value != null ) { \n - return Optional . of ( new ContentTypeHeader ( value ) ) ; \n - } \n - \n - return Optional . absent ( ) ; \n - } \n - \n public ContentTypeHeader ( String stringValue ) { \n super ( KEY , stringValue ) ; \n parts = stringValue != null ? stringValue . split ( STRING0 ) : new String [ NUMBER0 ] ;", "msg_token": "Removed unused method from ContentTypeHeader"} {"diff": " public class BroadcastProducer extends AbstractGenericInputTask { \n COMMENT \n COMMENT \n COMMENT \n - public static final int TIMESTAMP_INTERVAL = NUMBER0 ; \n + public static final int TIMESTAMP_INTERVAL = NUMBER1 ; \n \n COMMENT \n COMMENT", "msg_token": "Increased logging interval for latency measurement"} {"diff": " public abstract class XmlSchemaProvider { \n \n @ nullable \n public abstract XmlFile getSchema ( @ notnull @ nonnls String url , @ nullable Module module , @ notnull final PsiFile baseFile ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ nullable \n + protected String [ ] getAvailableNamespaces ( final @ notnull XmlFile file , final @ notnull Module module ) { \n + return null ; \n + } \n }", "msg_token": "providing available namespaces"} {"diff": " public class NetworkManager extends Plugin { \n private static final String LOG_TAG = STRING0 ; \n \n private String connectionCallbackId ; \n + private boolean registered = false ; \n \n ConnectivityManager sockMan ; \n BroadcastReceiver receiver ; \n public class NetworkManager extends Plugin { \n } \n } ; \n cordova . getActivity ( ) . registerReceiver ( this . receiver , intentFilter ) ; \n + this . registered = true ; \n } \n \n } \n public class NetworkManager extends Plugin { \n COMMENT \n COMMENT \n public void onDestroy ( ) { \n - if ( this . receiver != null ) { \n + if ( this . receiver != null && this . registered ) { \n try { \n this . cordova . getActivity ( ) . unregisterReceiver ( this . receiver ) ; \n + this . registered = false ; \n } catch ( Exception e ) { \n Log . e ( LOG_TAG , STRING1 + e . getMessage ( ) , e ) ; \n }", "msg_token": "Don t unregister the listener if it was never registered"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Adding license headers"} {"diff": " public class ConfirmDeleteDialogFragment extends DialogFragment { \n if ( show != null && show . moveToFirst ( ) ) { \n showName = show . getString ( NUMBER0 ) ; \n } \n - \n - show . close ( ) ; \n + if ( show != null ) { \n + show . close ( ) ; \n + } \n \n AlertDialog . Builder builder = new AlertDialog . Builder ( getActivity ( ) ) \n . setNegativeButton ( getString ( R . string . dontdelete_show ) , null ) ;", "msg_token": "Don t close null cursor"} {"diff": " public final class GsmDataConnectionTracker extends DataConnectionTracker { \n Telephony . Carriers . CONTENT_URI , true , mApnObserver ) ; \n \n COMMENT \n - createDataConnection ( Phone . APN_TYPE_DEFAULT ) ; \n + int id = createDataConnection ( Phone . APN_TYPE_DEFAULT ) ; \n + mRetryMgr = mDataConnections . get ( id ) . getRetryMgr ( ) ; \n + mRetryMgr . resetRetryCount ( ) ; \n + \n broadcastMessenger ( ) ; \n }", "msg_token": "Initialize mRetyMgr when constructing GsmDataConnectionTracker"} {"diff": " public final class QueryAssertions \n log . info ( STRING0 , sourceCatalog , sourceSchema , nanosSince ( startTime ) . toString ( SECONDS ) ) ; \n } \n \n - public static void copyAllTables ( QueryRunner queryRunner , String sourceCatalog , String sourceSchema , Session session ) \n - throws Exception \n - { \n - for ( QualifiedObjectName table : queryRunner . listTables ( session , sourceCatalog , sourceSchema ) ) { \n - if ( table . getObjectName ( ) . equalsIgnoreCase ( STRING1 ) ) { \n - continue ; \n - } \n - copyTable ( queryRunner , table , session ) ; \n - } \n - } \n - \n public static void copyTable ( QueryRunner queryRunner , String sourceCatalog , String sourceSchema , String sourceTable , Session session ) \n throws Exception \n {", "msg_token": "Remove unused method from QueryAssertions"} {"diff": " public class WorkspaceAndProjectGenerator { \n projectFilesystem , \n executionContext , \n projectFilesystem . getPathForRelativePath ( Paths . get ( basePath ) ) , \n - Paths . get ( basePath ) . getFileName ( ) . toString ( ) , \n + xcodeProjectConfig . getProjectName ( ) , \n ProjectGenerator . SEPARATED_PROJECT_OPTIONS ) ; \n generator . createXcodeProjects ( ) ;", "msg_token": "Fix up project name for iOS"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n public class VimKeymapPanel { \n - private JComboBox < Keymap > myKeymapComboBox ; \n + private JComboBox myKeymapComboBox ; \n private JPanel myPanel ; \n \n public VimKeymapPanel ( final String parentKeymap ) { \n public class VimKeymapPanel { \n } \n } \n \n - myKeymapComboBox . setModel ( new DefaultComboBoxModel < Keymap > ( keymaps . toArray ( new Keymap [ keymaps . size ( ) ] ) ) ) ; \n + myKeymapComboBox . setModel ( new DefaultComboBoxModel ( keymaps . toArray ( new Keymap [ keymaps . size ( ) ] ) ) ) ; \n final ListCellRendererWrapper < Keymap > renderer = new ListCellRendererWrapper < Keymap > ( ) { \n @ override \n public void customize ( final JList list ,", "msg_token": "Dropped JComboBox generics"} {"diff": " public class TextureLoader extends AsynchronousAssetLoader < Texture , TextureLoade \n @ override \n public void loadAsync ( AssetManager manager , String fileName , FileHandle file , TextureParameter parameter ) { \n info . filename = fileName ; \n - if ( parameter == null || ( parameter != null && parameter . textureData == null ) ) { \n + if ( parameter == null || parameter . textureData == null ) { \n Pixmap pixmap = null ; \n Format format = null ; \n boolean genMipMaps = false ;", "msg_token": "removed unnecessary null check"} {"diff": " public interface Message { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n String createExchangeId ( ) ; \n } \n public class JmsMessage extends DefaultMessage { \n } \n \n private String getSanitizedString ( Object value ) { \n - return value != null ? value . toString ( ) . replaceAll ( STRING0 , STRING1 ) : STRING2 ; \n - } \n - \n - @ override \n - public String createExchangeId ( ) { \n - if ( jmsMessage != null ) { \n - try { \n - return jmsMessage . getJMSMessageID ( ) ; \n - } catch ( JMSException e ) { \n - throw new RuntimeExchangeException ( STRING3 , getExchange ( ) , e ) ; \n - } \n - } \n - return super . createExchangeId ( ) ; \n + return value != null ? value . toString ( ) . replaceAll ( STRING4 , STRING1 ) : STRING2 ; \n } \n \n }", "msg_token": "camel jms should use default exchange id instead of overriding and use JMSMessageID"} {"diff": " public class StatusBarPolicy { \n iconId = sWifiSignalImages [ mLastWifiSignalLevel ] ; \n } \n \n + mService . setIcon ( STRING0 , iconId , NUMBER0 ) ; \n SINGLE \n mService . setIconVisibility ( STRING0 , true ) ; \n \n public class StatusBarPolicy { \n mIsWifiConnected = false ; \n iconId = sWifiSignalImages [ NUMBER0 ] ; \n \n + mService . setIcon ( STRING0 , iconId , NUMBER0 ) ; \n SINGLE \n mService . setIconVisibility ( STRING0 , false ) ; \n } \n \n - mService . setIcon ( STRING0 , iconId , NUMBER0 ) ; \n } else if ( action . equals ( WifiManager . RSSI_CHANGED_ACTION ) ) { \n int iconId ; \n final int newRssi = intent . getIntExtra ( WifiManager . EXTRA_NEW_RSSI , - NUMBER1 ) ;", "msg_token": "DO NOT MERGE Fix wifi status icon"} {"diff": " public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit { \n SINGLE \n hookAll ( XUsageStatsManager . getInstances ( true ) , classLoader , mSecret , false ) ; \n \n + SINGLE \n + hookAll ( XWifiManager . getInstances ( null , true ) , classLoader , mSecret , false ) ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed Wi Fi manager restrictions"} {"diff": " public class ClientModuleResolver implements DependencyToModuleVersionResolver { \n \n setClientModuleArtifact ( clientModuleMetaData ) ; \n \n - SINGLE \n result . setMetaData ( clientModuleMetaData ) ; \n } \n } \n public class DependencyGraphBuilder { \n return dependencyMetaData . getSelector ( ) ; \n } \n \n - SINGLE \n + SINGLE \n public ModuleVersionSelector getRequestedModuleVersion ( ) { \n return dependencyMetaData . getRequested ( ) ; \n }", "msg_token": "Garbage collect a couple of TODOs"} {"diff": " public class PasswordAuthenticator extends Authenticator { \n \n @ override \n protected PasswordAuthentication getPasswordAuthentication ( ) { \n + if ( getRequestingURL ( ) == null ) { \n + return null ; \n + } \n String userInfo = getRequestingURL ( ) . getUserInfo ( ) ; \n if ( StringTools . isEmpty ( userInfo ) ) { \n return null ;", "msg_token": "avoid NPE which can occur under some unclear conditions"} {"diff": " public class TextureHelper extends AbstractBlenderHelper { \n SINGLE \n for ( String assetName : assetNames ) { \n try { \n - result = assetManager . loadTexture ( new TextureKey ( assetName ) ) ; \n + TextureKey key = new TextureKey ( assetName ) ; \n + key . setGenerateMips ( true ) ; \n + key . setAsCube ( false ) ; \n + result = assetManager . loadTexture ( key ) ; \n break ; SINGLE \n } catch ( AssetNotFoundException e ) { \n LOGGER . fine ( e . getLocalizedMessage ( ) ) ;", "msg_token": "apply some defaults to blender loader texture key when loading from file"} {"diff": " public interface JobProxy { \n public Job . Result executeJobRequest ( @ nonnull JobRequest request ) { \n long waited = System . currentTimeMillis ( ) - request . getScheduledAt ( ) ; \n String timeWindow ; \n - if ( JobApi . V_14 . equals ( request . getJobApi ( ) ) ) { \n + if ( request . isPeriodic ( ) ) { \n + timeWindow = STRING0 + JobUtil . timeToString ( request . getIntervalMs ( ) ) ; \n + } else if ( JobApi . V_14 . equals ( request . getJobApi ( ) ) ) { \n timeWindow = STRING1 + JobUtil . timeToString ( getAverageDelayMs ( request ) ) ; \n } else { \n timeWindow = String . format ( Locale . US , STRING2 , JobUtil . timeToString ( getStartMs ( request ) ) ,", "msg_token": "Improve timing logging for periodic jobs"} {"diff": " public class LineColumnReader extends BufferedReader { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ override \n public int read ( char [ ] chars , int startOffset , int length ) throws IOException {", "msg_token": "remove javadoc warning"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class JaxpTest extends TestCase { \n \n LOG . debug ( STRING0 + source ) ; \n } \n + \n + public void testStreamSourceToDomSource ( ) throws Exception { \n + StreamSource streamSource = new StreamSource ( new StringReader ( STRING1 ) ) ; \n + DOMSource domSource = converter . convertTo ( DOMSource . class , streamSource ) ; \n + assertNotNull ( STRING2 , domSource ) ; \n + \n + LOG . debug ( STRING0 + domSource ) ; \n + } \n }", "msg_token": "added an extra test case for StreamSource DOMSource"} {"diff": " public class SimperiumUtils { \n private static Simperium mSimperium ; \n private static Bucket < Note > mNotesBucket ; \n private static Bucket < BucketObject > mMetaBucket ; \n - \n + \n public static Bucket < Note > getNotesBucket ( ) { \n return mNotesBucket ; \n } \n public class SimperiumUtils { \n meta . save ( ) ; \n } \n } catch ( BucketObjectMissingException e ) { \n - e . printStackTrace ( ) ; \n + AppLog . e ( AppLog . T . NOTIFS , STRING0 ) ; \n } \n } \n }", "msg_token": "Updating catch error logging"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove duplicate import of class SecureRandom"} {"diff": " public class FrameworkNetworkSecurityPolicy extends libcore . net . NetworkSecurityP \n public boolean isCleartextTrafficPermitted ( ) { \n return mCleartextTrafficPermitted ; \n } \n + \n + @ override \n + public boolean isCleartextTrafficPermitted ( String hostname ) { \n + return isCleartextTrafficPermitted ( ) ; \n + } \n } \n public class NetworkSecurityPolicy { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class NetworkSecurityPolicy { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isCleartextTrafficPermitted ( String hostname ) { \n + return libcore . net . NetworkSecurityPolicy . getInstance ( ) \n + . isCleartextTrafficPermitted ( hostname ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add hostname aware isCleartextTrafficPermitted"} {"diff": " public class SearchWidget extends Composite implements SearchDisplay \n { \n public void onKeyDown ( KeyDownEvent event ) \n { \n - if ( ignore_ = ! ignore_ ) \n - handler . onKeyDown ( event ) ; \n + handler . onKeyDown ( event ) ; \n } \n - \n - private boolean ignore_ = false ; \n } ) ; \n }", "msg_token": "remove alternating handler"} {"diff": " public final class NettyRemoteBlockReader implements RemoteBlockReader { \n . getClientChannelClass ( CHANNEL_TYPE ) ; \n SINGLE \n SINGLE \n + SINGLE \n private static final EventLoopGroup WORKER_GROUP = NettyUtils . createEventLoop ( CHANNEL_TYPE , \n - TACHYON_CONF . getInt ( Constants . USER_NETTY_WORKER_THREADS , NUMBER0 ) , STRING0 , true ) ; \n + TACHYON_CONF . getInt ( Constants . USER_NETTY_WORKER_THREADS , NUMBER1 ) , STRING0 , true ) ; \n \n private final Bootstrap mClientBootstrap ; \n private final ClientHandler mHandler ; \n public final class NettyDataServer implements DataServer { \n private ServerBootstrap createBootstrapOfType ( final ChannelType type ) { \n final ServerBootstrap boot = new ServerBootstrap ( ) ; \n final int bossThreadCount = mTachyonConf . getInt ( Constants . WORKER_NETTY_BOSS_THREADS , NUMBER0 ) ; \n + SINGLE \n final int workerThreadCount = mTachyonConf . getInt ( Constants . WORKER_NETTY_WORKER_THREADS , NUMBER1 ) ; \n final EventLoopGroup bossGroup = \n NettyUtils . createEventLoop ( type , bossThreadCount , STRING1 , false ) ;", "msg_token": "use netty s default number of threads"} {"diff": " class ExitTransitionCoordinator extends ActivityTransitionCoordinator { \n getWindow ( ) . setBackgroundDrawable ( new ColorDrawable ( Color . BLACK ) ) ; \n } \n ActivityOptions options = ActivityOptions . makeSceneTransitionAnimation ( mActivity , this , \n - mAllSharedElementNames , resultCode , data ) ; \n + mSharedElementNames , resultCode , data ) ; \n mActivity . convertToTranslucent ( new Activity . TranslucentConversionListener ( ) { \n @ override \n public void onTranslucentConversionComplete ( boolean drawComplete ) {", "msg_token": "When returning transition only existing shared elements"} {"diff": " public class ServerManagerTest \n \n queryNotifyLatch . await ( ) ; \n \n + Assert . assertEquals ( NUMBER0 , factory . getSegmentReferences ( ) . size ( ) ) ; \n + \n + for ( ReferenceCountingSegment referenceCountingSegment : factory . getSegmentReferences ( ) ) { \n + Assert . assertEquals ( NUMBER1 , referenceCountingSegment . getNumReferences ( ) ) ; \n + } \n + \n + queryWaitYieldLatch . countDown ( ) ; \n + \n Assert . assertTrue ( factory . getAdapters ( ) . size ( ) == NUMBER0 ) ; \n \n for ( SegmentForTesting segmentForTesting : factory . getAdapters ( ) ) { \n public class ServerManagerTest \n \n queryNotifyLatch . await ( ) ; \n \n - Assert . assertTrue ( factory . getSegmentReferences ( ) . size ( ) == NUMBER0 ) ; \n + Assert . assertEquals ( NUMBER0 , factory . getSegmentReferences ( ) . size ( ) ) ; \n \n for ( ReferenceCountingSegment referenceCountingSegment : factory . getSegmentReferences ( ) ) { \n Assert . assertEquals ( NUMBER0 , referenceCountingSegment . getNumReferences ( ) ) ;", "msg_token": "fix broken UT"} {"diff": " public class ResourceHttpRequestHandler extends WebContentGenerator implements H \n COMMENT \n COMMENT \n public void setLocations ( List < Resource > locations ) { \n - Assert . notEmpty ( locations , STRING0 ) ; \n + Assert . notNull ( locations , STRING1 ) ; \n this . locations . clear ( ) ; \n this . locations . addAll ( locations ) ; \n }", "msg_token": "Remove assertion making locations mandatory"} {"diff": " public abstract class ConnectionService extends Service { \n \n COMMENT \n protected void removeConnection ( Connection connection ) { \n - String id = mIdByConnection . get ( connection ) ; \n connection . unsetConnectionService ( this ) ; \n connection . removeConnectionListener ( mConnectionListener ) ; \n - mConnectionById . remove ( mIdByConnection . get ( connection ) ) ; \n - mIdByConnection . remove ( connection ) ; \n - mAdapter . removeCall ( id ) ; \n + String id = mIdByConnection . get ( connection ) ; \n + if ( id != null ) { \n + mConnectionById . remove ( id ) ; \n + mIdByConnection . remove ( connection ) ; \n + mAdapter . removeCall ( id ) ; \n + } \n } \n \n private String addConferenceInternal ( Conference conference ) {", "msg_token": "Add null pointer check in removeConnection"} {"diff": " public class MultiReducedMetric implements IMetric { \n public Object getValueAndReset ( ) { \n Map ret = new HashMap ( ) ; \n for ( Map . Entry < String , ReducedMetric > e : _value . entrySet ( ) ) { \n - ret . put ( e . getKey ( ) , e . getValue ( ) . getValueAndReset ( ) ) ; \n + Object val = e . getValue ( ) . getValueAndReset ( ) ; \n + if ( val != null ) { \n + ret . put ( e . getKey ( ) , val ) ; \n + } \n } \n return ret ; \n }", "msg_token": "ignore null values in MultiReducedMetric"} {"diff": " public class TransportIndicesSegmentsAction extends TransportBroadcastOperationA \n return new ShardSegments ( indexShard . routingEntry ( ) , indexShard . engine ( ) . segments ( ) ) ; \n } \n \n - public static class IndexShardSegmentRequest extends BroadcastShardOperationRequest { \n + static class IndexShardSegmentRequest extends BroadcastShardOperationRequest { \n \n IndexShardSegmentRequest ( ) { \n } \n public class TransportIndicesStatsAction extends TransportBroadcastOperationActi \n return new ShardStats ( indexShard , flags ) ; \n } \n \n - public static class IndexShardStatsRequest extends BroadcastShardOperationRequest { \n + static class IndexShardStatsRequest extends BroadcastShardOperationRequest { \n \n SINGLE \n IndicesStatsRequest request ;", "msg_token": "adjusted internal requests visibility from public to package private"} {"diff": " public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU \n target . flip ( ) ; \n ByteUtil . setThreeBytes ( header , NUMBER0 , target . limit ( ) ) ; \n if ( first ) { \n + first = false ; \n header [ NUMBER1 ] = FrameType . HEADERS . getIdByte ( ) ; \n if ( stream . getOutputBuffer ( ) . hasNoBody ( ) ) { \n header [ NUMBER2 ] = FLAG_END_OF_STREAM ;", "msg_token": "Fix header writing bug"} {"diff": " public class LockAdvancedTest extends HazelcastTestSupport { \n t . start ( ) ; \n sleepMillis ( NUMBER0 ) ; \n t . interrupt ( ) ; \n - assertTrue ( latch . await ( NUMBER1 , TimeUnit . SECONDS ) ) ; \n + assertTrue ( latch . await ( NUMBER2 , TimeUnit . SECONDS ) ) ; \n } \n \n @ test", "msg_token": "Increased timeout to make the test less fragile"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class JBList extends JList implements ComponentWithEmptyText , ComponentWi \n init ( ) ; \n } \n \n + @ override \n + protected void paintComponent ( Graphics g ) { \n + super . paintComponent ( g ) ; \n + myEmptyTextHelper . paint ( g ) ; \n + } \n + \n private void init ( ) { \n myEmptyTextHelper = new EmptyTextHelper ( this ) { \n @ override \n public class JBTable extends JTable implements ComponentWithEmptyText , Component \n boolean marker = Patches . SUN_BUG_ID_4503845 ; SINGLE \n } \n \n + @ override \n + protected void paintComponent ( Graphics g ) { \n + super . paintComponent ( g ) ; \n + myEmptyTextHelper . paint ( g ) ; \n + } \n + \n public static DefaultCellEditor createBooleanEditor ( ) { \n return new DefaultCellEditor ( new JCheckBox ( ) ) { \n {", "msg_token": "actually paint emptyText"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n - class SpringFlushSynchronization extends TransactionSynchronizationAdapter { \n + public class SpringFlushSynchronization extends TransactionSynchronizationAdapter { \n \n private final Session session ; \n \n import NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n - class SpringSessionSynchronization implements TransactionSynchronization , Ordered { \n + public class SpringSessionSynchronization implements TransactionSynchronization , Ordered { \n \n private final SessionHolder sessionHolder ; \n \n class SpringSessionSynchronization implements TransactionSynchronization , Ordere \n private boolean holderActive = true ; \n \n \n + public SpringSessionSynchronization ( SessionHolder sessionHolder , SessionFactory sessionFactory ) { \n + this ( sessionHolder , sessionFactory , false ) ; \n + } \n + \n public SpringSessionSynchronization ( SessionHolder sessionHolder , SessionFactory sessionFactory , boolean newSession ) { \n this . sessionHolder = sessionHolder ; \n this . sessionFactory = sessionFactory ; \n this . newSession = newSession ; \n } \n \n + \n private Session getCurrentSession ( ) { \n return this . sessionHolder . getSession ( ) ; \n }", "msg_token": "Reintroduced original SpringSessionSynchronization constructor and made SpringSession FlushSynchronization public for GORM"} {"diff": " public class BufferedRandomAccessFile extends RandomAccessFile implements FileDa \n throw new IllegalArgumentException ( STRING0 ) ; \n \n if ( isReadOnly ( ) && newPosition > fileLength ) \n - throw new EOFException ( STRING1 + filePath + STRING2 ) ; \n + throw new EOFException ( String . format ( STRING3 , \n + newPosition , filePath , fileLength ) ) ; \n \n current = newPosition ;", "msg_token": "add seek position fileLength too"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n pkgs = PackageManagerServiceUtils . getPackagesForDexopt ( mPackages . values ( ) , this ) ; \n } \n \n - UsageStatsManager usageMgr = \n - ( UsageStatsManager ) mContext . getSystemService ( Context . USAGE_STATS_SERVICE ) ; \n - \n int curr = NUMBER0 ; \n int total = pkgs . size ( ) ; \n for ( PackageParser . Package pkg : pkgs ) { \n public class PackageManagerService extends IPackageManager . Stub { \n continue ; \n } \n \n - if ( ! causeFirstBoot && usageMgr . isAppInactive ( pkg . packageName ) ) { \n - if ( DEBUG_DEXOPT ) { \n - Log . i ( TAG , STRING0 + pkg . packageName ) ; \n - } \n - continue ; \n - } \n - \n if ( DEBUG_DEXOPT ) { \n Log . i ( TAG , STRING1 + curr + STRING2 + total + STRING3 + pkg . packageName ) ; \n }", "msg_token": "Remove UsageStats post OTA package update filter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RuleActivatorMediumTest { \n } \n \n @ test \n + @ ignore \n public void reset_activation_on_child_profile ( ) throws Exception { \n grantPermission ( ) ; \n createChildProfiles ( ) ;", "msg_token": "fix quality flaw ignore not implemented functionality test"} {"diff": " public class JettyPlugin implements ProfilerPlugin , JettyConstants { \n private void addServerInterceptor ( ProfilerPluginContext context , JettyConfiguration config ) { \n ClassFileTransformerBuilder builder = context . getClassFileTransformerBuilder ( STRING0 ) ; \n builder . injectInterceptor ( STRING1 , config . getJettyExcludeUrlFilter ( ) ) ; \n - builder . injectMetadata ( METADATA_TRACE ) ; \n + SINGLE \n context . addClassFileTransformer ( builder . build ( ) ) ; \n } \n }", "msg_token": "Should not inject Request Metadata here"} {"diff": " package NAMESPACE ; \n \n SINGLE \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO \n COMMENT \n COMMENT \n public String toString ( ) { \n - return com . mongodb . util . JSON . serialize ( this ) ; \n + return JSONSerializers . getStrict ( ) . serialize ( this ) ; \n } \n \n COMMENT \n public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO \n return new BasicBSONEncoder ( ) . encode ( this ) ; \n } \n \n + private BSONObject decode ( final byte [ ] encodedBytes ) { \n + return new BasicBSONDecoder ( ) . readObject ( encodedBytes ) ; \n + } \n + \n SINGLE \n private static BasicBSONObject canonicalize ( final BSONObject from ) { \n BasicBSONObject canonicalized = new BasicBSONObject ( ) ;", "msg_token": "Use strict JSON serializer in BasicBSONObject toString"} {"diff": " public class CloudGitDeploymentRuntime extends CloudDeploymentRuntime { \n } \n \n protected void commit ( ) throws ServerRuntimeException { \n + commit ( COMMIT_MESSAGE ) ; \n + } \n + \n + protected void commit ( String message ) throws ServerRuntimeException { \n try { \n if ( GitUtil . hasLocalChanges ( true , getProject ( ) , myContentRoot ) ) { \n GitSimpleHandler handler = new GitSimpleHandler ( getProject ( ) , myContentRoot , GitCommand . COMMIT ) ; \n handler . setSilent ( false ) ; \n handler . setStdoutSuppressed ( false ) ; \n - handler . addParameters ( STRING0 , COMMIT_MESSAGE ) ; \n + handler . addParameters ( STRING0 , message ) ; \n handler . endOptions ( ) ; \n handler . run ( ) ; \n }", "msg_token": "update java sample to prevent jsp compilation failure"} {"diff": " public class IcedBitSet extends Iced { \n for ( int i = NUMBER0 ; i < bytes ; i ++ ) { \n if ( i > NUMBER0 ) sb . p ( STRING0 ) ; \n for ( int j = NUMBER0 ; j < NUMBER1 ; j ++ ) \n - sb . p ( ( _val [ i ] > > j ) & NUMBER2 ) ; \n + sb . p ( ( _val [ _byteoff + i ] > > j ) & NUMBER2 ) ; \n } \n return sb . p ( STRING1 ) ; \n }", "msg_token": "Fix printout of IcedBitset"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VcsDirectoryConfigurationPanel extends PanelWithButtons implements \n VcsRootErrorLabel ( String title ) { \n super ( new BorderLayout ( DEFAULT_HGAP , DEFAULT_VGAP ) ) ; \n \n - setBorder ( BorderFactory . createCompoundBorder ( BorderFactory . createMatteBorder ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER1 , UIUtil . getPanelBackground ( ) ) , \n - BorderFactory . createLineBorder ( UIUtil . getPanelBackground ( ) . darker ( ) ) ) ) ; \n + CompoundBorder outsideBorder = BorderFactory . createCompoundBorder ( BorderFactory . createMatteBorder ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER1 , UIUtil . getPanelBackground ( ) ) , \n + BorderFactory . createLineBorder ( UIUtil . getPanelBackground ( ) . darker ( ) ) ) ; \n + setBorder ( BorderFactory . createCompoundBorder ( outsideBorder , BorderFactory . createEmptyBorder ( DEFAULT_VGAP , DEFAULT_HGAP , \n + DEFAULT_VGAP , DEFAULT_HGAP ) ) ) ; \n setOpaque ( true ) ; \n setBackground ( new Color ( NUMBER2 , NUMBER3 , NUMBER4 ) ) ;", "msg_token": "Padding in root error label in Settings Version Control"} {"diff": " public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp \n protected void markBeanAsCreated ( String beanName ) { \n if ( ! this . alreadyCreated . contains ( beanName ) ) { \n synchronized ( this . mergedBeanDefinitions ) { \n - if ( this . alreadyCreated . add ( beanName ) ) { \n + if ( ! this . alreadyCreated . contains ( beanName ) ) { \n SINGLE \n SINGLE \n clearMergedBeanDefinition ( beanName ) ; \n + this . alreadyCreated . add ( beanName ) ; \n } \n } \n } \n public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp \n COMMENT \n COMMENT \n protected void cleanupAfterBeanCreationFailure ( String beanName ) { \n - this . alreadyCreated . remove ( beanName ) ; \n + synchronized ( this . mergedBeanDefinitions ) { \n + this . alreadyCreated . remove ( beanName ) ; \n + } \n } \n \n COMMENT", "msg_token": "AbstractBeanFactory consistently guards add remove operations against alreadyCreated Set"} {"diff": " public final class Const { \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 \n } ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final long MAX_INT_IN_DOUBLE = NUMBER0 ; \n }", "msg_token": "Add Const MAX_INT_IN_DOUBLE used to fix the rate calculation bug"} {"diff": " public class MinimumMasterNodesTests extends AbstractZenNodesTests { \n logger . info ( STRING0 ) ; \n startNode ( nonMasterNodeName , settings ) ; \n \n - clusterHealthResponse = client ( STRING1 ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForNodes ( STRING2 ) . execute ( ) . actionGet ( ) ; \n + Thread . sleep ( NUMBER0 ) ; \n + \n + clusterHealthResponse = client ( STRING1 ) . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForNodes ( STRING2 ) . setWaitForGreenStatus ( ) . execute ( ) . actionGet ( ) ; \n assertThat ( clusterHealthResponse . timedOut ( ) , equalTo ( false ) ) ; \n \n state = client ( STRING1 ) . admin ( ) . cluster ( ) . prepareState ( ) . setLocal ( true ) . execute ( ) . actionGet ( ) . state ( ) ;", "msg_token": "improve test wait for green state post master node startup"} {"diff": " public interface SynthesisCallback { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs build failure"} {"diff": " public class Table implements TableOrView { \n throw new RuntimeException ( STRING0 + String . valueOf ( colTypes [ ( int ) columnIndex ] ) ) ; \n } \n } \n - this . internal . insertDone ( ) ; \n + SINGLE \n + nativeInsertDone ( nativePtr ) ; \n + \n } \n \n private void insertSubtableValues ( long rowIndex , long columnIndex , Object value ) {", "msg_token": "calling nativeInsertDone in insert"} {"diff": " class NettyClientHandler extends Http2ConnectionHandler { \n stream . transportReportStatus ( Status . UNKNOWN , false , new Metadata . Trailers ( ) ) ; \n } \n \n - @ override \n - public void close ( ChannelHandlerContext ctx , ChannelPromise promise ) throws Exception { \n - goAwayStatus ( Status . UNAVAILABLE . withDescription ( STRING0 ) ) ; \n - super . close ( ctx , promise ) ; \n - } \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove goAwayStatus when client closing"} {"diff": " public class BoundedOverheadBlockStore implements BlockStore { \n SINGLE \n SINGLE \n SINGLE \n - private final StoredBlock notFoundMarker = new StoredBlock ( null , null , - NUMBER0 ) ; \n + private static final StoredBlock notFoundMarker = new StoredBlock ( null , null , - NUMBER0 ) ; \n private LinkedHashMap < Sha256Hash , StoredBlock > notFoundCache = new LinkedHashMap < Sha256Hash , StoredBlock > ( ) { \n @ override \n protected boolean removeEldestEntry ( Map . Entry < Sha256Hash , StoredBlock > entry ) {", "msg_token": "Make a field static"} {"diff": " \n COMMENT \n COMMENT \n \n + package NAMESPACE ; \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - package NAMESPACE ; \n +", "msg_token": "add package level javadoc"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultGradleLauncherFactory implements GradleLauncherFactory { \n listenerManager . addListener ( new ProfileListener ( requestMetaData . getBuildTimeClock ( ) . getStartTime ( ) ) ) ; \n } \n \n - DefaultGradle gradle = new DefaultGradle ( \n - tracker . getCurrentBuild ( ) , \n - startParameter , serviceRegistry ) ; \n + GradleInternal gradle = serviceRegistry . get ( Instantiator . class ) . newInstance ( DefaultGradle . class , tracker . getCurrentBuild ( ) , startParameter , serviceRegistry ) ; \n return new DefaultGradleLauncher ( \n gradle , \n serviceRegistry . get ( InitScriptHandler . class ) ,", "msg_token": "Decorate the Gradle instance"} {"diff": " public class EmulatorView extends View implements GestureDetector . OnGestureListe \n COMMENT \n private void createLinks ( char [ ] text , int row ) \n { \n - if ( text == null || row < NUMBER0 ) \n + if ( text == null ) \n return ; \n \n + SINGLE \n + row -= mTopRow ; \n + \n SpannableStringBuilder textLine = new SpannableStringBuilder ( new String ( text ) ) ; \n Linkify . addLinks ( textLine , Linkify . WEB_URLS ) ; \n URLSpan [ ] spans = textLine . getSpans ( NUMBER0 , mColumns , URLSpan . class ) ;", "msg_token": "Added support for links at any point in transcript"} {"diff": " public class LookupManagerImpl extends LookupManager implements ProjectComponent \n } \n \n public static boolean isUseNewSorting ( ) { \n - return SmartCodeCompletionAction . isDoingSmartCodeCompleteAction ( ) && STRING0 . equals ( System . getProperty ( STRING1 ) ) ; \n + return SmartCodeCompletionAction . isDoingSmartCodeCompleteAction ( ) ; \n } \n \n protected boolean shouldSortItems ( final PsiFile containingFile , final LookupItem [ ] items ) {", "msg_token": "always use new sorting"} {"diff": " \n \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n @ runwith ( Parameterized . class ) \n public class SearchSanityTest extends MahoutTestCase { \n private static final int NUM_DATA_POINTS = NUMBER0 < < NUMBER1 ;", "msg_token": "Removed import and replaced by explicit imports"} {"diff": " public class ContextTools { \n return sb . toString ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setErrorMarkerStart ( String errorMarkerStart ) { \n this . errorMarkerStart = errorMarkerStart ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setErrorMarkerEnd ( String errorMarkerEnd ) { \n this . errorMarkerEnd = errorMarkerEnd ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setContextSize ( int contextSize ) { \n this . contextSize = contextSize ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public void setEscapeHtml ( boolean escapeHtml ) { \n this . escapeHtml = escapeHtml ; \n }", "msg_token": "add some javadoc"} {"diff": " public class GetGlue { \n \n private static final String GETGLUE_APIPATH_V2 = STRING0 ; \n \n - private static final String GETGLUE_SOURCE = STRING1 ; \n + private static final String GETGLUE_SOURCE = STRING2 ; \n \n public static final String REQUEST_URL = STRING3 ;", "msg_token": "Change getglue app url to new homepage"} {"diff": " public class OtpsSPT { \n return individual . eval ( spt , sampleFactory ) ; \n } \n \n + public double getOriginLatitude ( ) { \n + return spt . getOptions ( ) . rctx . origin . getLat ( ) ; \n + } \n + \n + public double getOriginLongitude ( ) { \n + return spt . getOptions ( ) . rctx . origin . getLon ( ) ; \n + } \n + \n public List < OtpsEvaluatedIndividual > eval ( Iterable < OtpsIndividual > population ) { \n List < OtpsEvaluatedIndividual > retval = new ArrayList < > ( ) ; SINGLE \n for ( OtpsIndividual individual : population ) {", "msg_token": "Add method to get resolved location"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Application implements ApplicationEventHandlers , \n view_ . hideSerializationProgress ( ) ; \n break ; \n } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + RSAEncrypt . clearCache ( ) ; \n } \n \n private String getSuffix ( SessionSerializationEvent event ) \n public class RSAEncrypt \n } \n } ) ; \n } \n + \n + public static void clearCache ( ) \n + { \n + publicKeyInfo_ = null ; \n + } \n \n private static native String encrypt ( String value , \n String exponent ,", "msg_token": "clear rsa encrypt cache on session serialization"} {"diff": " public class GLM extends ModelBuilder < GLMModel , GLMParameters , GLMOutput > { \n throw new NonSPDMatrixException ( STRING0 + Arrays . toString ( ArrayUtils . select ( _dinfo . coefNames ( ) , collinear_cols ) ) ) ; \n } \n if ( ! chol . isSPD ( ) ) throw new NonSPDMatrixException ( ) ; \n + _chol = chol ; \n if ( ! ignoredCols . isEmpty ( ) ) { SINGLE \n int [ ] collinear_cols = new int [ ignoredCols . size ( ) ] ; \n for ( int i = NUMBER0 ; i < collinear_cols . length ; ++ i )", "msg_token": "glm fix added missing assignment"} {"diff": " public class ReaderPostAdapter extends RecyclerView . Adapter < ReaderPostAdapter . Re \n int cardSpacing = context . getResources ( ) . getDimensionPixelSize ( R . dimen . reader_card_spacing ) ; \n mPhotonWidth = displayWidth - ( cardSpacing * NUMBER0 ) ; \n mPhotonHeight = context . getResources ( ) . getDimensionPixelSize ( R . dimen . reader_featured_image_height ) ; \n + \n + setHasStableIds ( true ) ; \n } \n \n public void setOnPostSelectedListener ( ReaderInterfaces . OnPostSelectedListener listener ) {", "msg_token": "Added setHasStableIds true to ReaderPostAdapter"} {"diff": " public class ProcessDiagramCanvas { \n \n SINGLE \n protected static Color TASK_BOX_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER1 ) ; \n - protected static Paint TASK_COLOR = new GradientPaint ( NUMBER2 , NUMBER3 , Color . white , NUMBER2 , NUMBER4 , new Color ( NUMBER0 , NUMBER0 , NUMBER1 ) ) ; \n protected static Color BOUNDARY_EVENT_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER0 ) ; \n protected static Color CONDITIONAL_INDICATOR_COLOR = new Color ( NUMBER0 , NUMBER0 , NUMBER0 ) ; \n protected static Color HIGHLIGHT_COLOR = Color . RED ;", "msg_token": "Removed unused constant"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SurroundAction extends AbstractGuiEditorAction { \n newConstraints . setRowSpan ( rc . height ) ; \n newConstraints . setColSpan ( rc . width ) ; \n } \n + else if ( selectionParent . getLayout ( ) instanceof XYLayoutManager && selection . size ( ) == NUMBER0 ) { \n + newContainer . setBounds ( selection . get ( NUMBER1 ) . getBounds ( ) ) ; \n + } \n \n if ( selection . size ( ) == NUMBER0 ) { \n newContainer . setCustomLayoutConstraints ( selection . get ( NUMBER1 ) . getCustomLayoutConstraints ( ) ) ;", "msg_token": "surround with for top level container keeps bounds"} {"diff": " public class RepositoryBrowserDialog extends DialogWrapper { \n \n protected void doCheckout ( ) { \n SVNURL url = getRepositoryBrowser ( ) . getSelectedNode ( ) . getURL ( ) ; \n - final File dir = selectFile ( STRING0 , STRING1 ) ; \n + File dir = selectFile ( STRING0 , STRING1 ) ; \n if ( dir == null ) { \n return ; \n } \n Project p = myProject ; \n CheckoutOptionsDialog dialog = new CheckoutOptionsDialog ( p , url , dir ) ; \n + dir = dialog . getTarget ( ) ; \n dialog . show ( ) ; \n if ( dialog . isOK ( ) ) { \n SvnCheckoutProvider . doCheckout ( myVCS . getProject ( ) , dir , url . toString ( ) , dialog . isRecursive ( ) , dialog . isIgnoreExternals ( ) ) ;", "msg_token": "integrate alex kitaev s fix"} {"diff": " public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler \n loop: \n for ( ; ; ) { \n SSLEngineResult result ; \n + boolean needsNonAppWrap = false ; \n synchronized ( handshakeLock ) { \n if ( initialHandshake && ! engine . getUseClientMode ( ) && \n ! engine . isInboundDone ( ) && ! engine . isOutboundDone ( ) ) { \n public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler \n break loop ; \n } \n case NEED_WRAP : \n - wrapNonAppData ( ctx , channel ) ; \n + SINGLE \n + SINGLE \n + needsNonAppWrap = true ; \n break ; \n case NEED_TASK : \n runDelegatedTasks ( ) ; \n public class SslHandler extends FrameDecoder implements ChannelDownstreamHandler \n result . getHandshakeStatus ( ) ) ; \n } \n } \n + \n + if ( needsNonAppWrap ) { \n + wrapNonAppData ( ctx , channel ) ; \n + } \n } \n \n if ( needsWrap ) {", "msg_token": "Fixed a dead lock in SslHandler"} {"diff": " public class JoinNode \n private final Symbol left ; \n private final Symbol right ; \n \n + @ jsoncreator \n public EquiJoinClause ( @ jsonproperty ( STRING0 ) Symbol left , @ jsonproperty ( STRING1 ) Symbol right ) \n { \n Preconditions . checkNotNull ( left , STRING2 ) ;", "msg_token": "Add missing JsonCreator annotation"} {"diff": " public interface XmlRpcServer { \n boolean hasHandler ( String name ) ; \n void removeHandler ( String name ) ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - int getPortNumber ( ) ; \n - \n final class SERVICE { \n private SERVICE ( ) { \n } \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class XmlRpcServerImpl extends SimpleChannelUpstreamHandler implements Xm \n pipeline . addLast ( STRING0 , this ) ; \n } \n \n - public int getPortNumber ( ) { \n - return WebServerManager . getInstance ( ) . getPort ( ) ; \n - } \n - \n @ override \n public boolean hasHandler ( String name ) { \n return handlerMapping . handlers . containsKey ( name ) ;", "msg_token": "remove deprecated method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public class LdapConnector { \n } \n \n for ( Attribute attribute : e . getAttributes ( ) ) { \n - if ( activeDirectory && attribute . getId ( ) . equalsIgnoreCase ( STRING0 ) ) { \n + if ( activeDirectory && STRING0 . equalsIgnoreCase ( attribute . getId ( ) ) ) { \n ldapEntry . setBindPrincipal ( attribute . getString ( ) ) ; \n } \n if ( attribute . isHumanReadable ( ) ) {", "msg_token": "prevent potential NPE"} {"diff": " public class ProcessEngineImpl implements ProcessEngine { \n \n if ( DbSchemaStrategy . CREATE_DROP == dbSchemaStrategy \n || DbSchemaStrategy . CREATE == dbSchemaStrategy ) { \n - if ( DbSchemaStrategy . CREATE_DROP == dbSchemaStrategy ) { \n - try { \n - persistenceSessionFactory . dbSchemaDrop ( ) ; \n - } catch ( RuntimeException e ) { \n - SINGLE \n - } \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n persistenceSessionFactory . dbSchemaCreate ( ) ; \n } else if ( DbSchemaStrategy . CHECK_VERSION == dbSchemaStrategy ) { \n persistenceSessionFactory . dbSchemaCheckVersion ( ) ;", "msg_token": "Removed stacktraces from logging when creating database schema in tests"} {"diff": " final class Constants { \n SINGLE \n static final String PROPERTY_DEVICE_TYPE = STRING0 ; \n \n + SINGLE \n + SINGLE \n + static final String PROPERTY_WAKE_ON_HOTPLUG = STRING1 ; \n + \n SINGLE \n SINGLE \n static final String PROPERTY_KEEP_AWAKE = STRING2 ; \n import NAMESPACE ; \n final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice { \n private static final String TAG = STRING3 ; \n \n + private static final boolean WAKE_ON_HOTPLUG = \n + SystemProperties . getBoolean ( Constants . PROPERTY_WAKE_ON_HOTPLUG , true ) ; \n + \n private boolean mIsActiveSource = false ; \n \n SINGLE \n final class HdmiCecLocalDevicePlayback extends HdmiCecLocalDevice { \n assertRunOnServiceThread ( ) ; \n mCecMessageCache . flushAll ( ) ; \n SINGLE \n - if ( connected && mService . isPowerStandbyOrTransient ( ) ) { \n + if ( WAKE_ON_HOTPLUG && connected && mService . isPowerStandbyOrTransient ( ) ) { \n mService . wakeUp ( ) ; \n } \n if ( ! connected ) {", "msg_token": "Make wakeup on hotplug optional"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n - @ retention ( RUNTIME ) @ target ( FIELD ) \n + @ retention ( CLASS ) @ target ( FIELD ) \n public @ interface InjectView { \n int value ( ) ; \n }", "msg_token": "Reduce the retention of the annotation to compile time only"} {"diff": " public final class Settings { \n public static final String SMS_SHORT_CODE_RULE = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String TCP_DEFAULT_INIT_RWND = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ConnectivityService extends IConnectivityManager . Stub { \n } \n setBufferSize ( bufferSizes ) ; \n } \n + \n + final String defaultRwndKey = STRING2 ; \n + int defaultRwndValue = SystemProperties . getInt ( defaultRwndKey , NUMBER0 ) ; \n + Integer rwndValue = Settings . Global . getInt ( mContext . getContentResolver ( ) , \n + Settings . Global . TCP_DEFAULT_INIT_RWND , defaultRwndValue ) ; \n + final String sysctlKey = STRING3 ; \n + if ( rwndValue != NUMBER0 ) { \n + SystemProperties . set ( sysctlKey , rwndValue . toString ( ) ) ; \n + } \n } \n \n COMMENT", "msg_token": "add support to set TCP initial rwnd"} {"diff": " public final class UsbAlsaManager { \n \n UsbAudioDevice audioDevice = mAudioDevices . remove ( usbDevice ) ; \n if ( audioDevice != null ) { \n - if ( audioDevice . mHasPlayback || audioDevice . mHasPlayback ) { \n + if ( audioDevice . mHasPlayback || audioDevice . mHasCapture ) { \n notifyDeviceState ( audioDevice , false ) ; \n \n SINGLE", "msg_token": "Fixed capture only devices not removed when disconnected"} {"diff": " public class Antlr4Mojo extends AbstractMojo { \n } \n \n URI relativePath = project . getBasedir ( ) . toURI ( ) . relativize ( outputFile . toURI ( ) ) ; \n - getLog ( ) . info ( STRING0 + relativePath ) ; \n + getLog ( ) . debug ( STRING0 + relativePath ) ; \n FileWriter fw = new FileWriter ( outputFile ) ; \n return new BufferedWriter ( fw ) ; \n }", "msg_token": "Reduce log message verbosity"} {"diff": " public class ClientCapabilities \n try \n { \n ( ( ListeningPointExt ) lp ) \n - . sendHeartbeat ( address . getHostString ( ) , \n + . sendHeartbeat ( address . getAddress ( ) . getHostAddress ( ) , \n address . getPort ( ) ) ; \n } \n catch ( IOException e )", "msg_token": "Always use the IP for the CRLF heartbeat"} {"diff": " public class ExtractMethodDialog extends AbstractExtractDialog { \n myVariableData = inputVariables ; \n myHelpId = helpId ; \n mySignature = new MethodSignatureComponent ( STRING0 , project , JavaFileType . INSTANCE ) ; \n + mySignature . setPreferredSize ( new Dimension ( - NUMBER0 , NUMBER1 ) ) ; \n setTitle ( title ) ; \n \n SINGLE", "msg_token": "preferred size for signature"} {"diff": " public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb \n if ( cfg == null ) \n return ; \n \n - if ( iDatabase instanceof ODatabase < ? > && ! ( iDatabase . getStorage ( ) instanceof ODistributedStorage ) ) { \n + if ( iDatabase instanceof ODatabase < ? > \n + && ( ! ( iDatabase . getStorage ( ) instanceof ODistributedStorage ) || ( ( ODistributedStorage ) iDatabase . getStorage ( ) ) \n + . getDistributedManager ( ) . isOffline ( ) ) ) { \n ODistributedStorage storage = storages . get ( iDatabase . getURL ( ) ) ; \n if ( storage == null ) { \n storage = new ODistributedStorage ( serverInstance , ( OAbstractPaginatedStorage ) iDatabase . getStorage ( ) ) ;", "msg_token": "fixed problem with restarting a distributed server on the same JVM mostly test purpose"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n try { \n return loadMetadataAndJournal ( inodePath , options ) ; \n } catch ( Exception e ) { \n - LOG . error ( STRING0 , inodePath . getUri ( ) ) ; \n + SINGLE \n + SINGLE \n + LOG . debug ( STRING1 , inodePath . getUri ( ) ) ; \n } \n } \n return AsyncJournalWriter . INVALID_FLUSH_COUNTER ;", "msg_token": "SMALLFIX Move a master log message from error to debug"} {"diff": " public final class ActFmSyncService { \n taskPushThreads . incrementAndGet ( ) ; \n try { \n Task t = taskDao . fetch ( fileMetadata . getValue ( Metadata . TASK ) , Task . REMOTE_ID ) ; \n - if ( t == null || t . getValue ( Task . REMOTE_ID ) <= NUMBER0 ) \n + if ( t == null || t . getValue ( Task . REMOTE_ID ) == null || t . getValue ( Task . REMOTE_ID ) <= NUMBER0 ) \n return ; \n if ( fileMetadata . getValue ( FileMetadata . DELETION_DATE ) > NUMBER0 ) \n deleteAttachment ( fileMetadata ) ;", "msg_token": "Fixed a potential crash when trying to upload attachments for an unsynced task"} {"diff": " public abstract class ClassBrowser extends BrowseModuleValueActionListener { \n \n public static NoFilterException moduleDoesntExist ( final ConfigurationModuleSelector moduleSelector ) { \n final Project project = moduleSelector . getProject ( ) ; \n + final String moduleName = moduleSelector . getModuleName ( ) ; \n return new NoFilterException ( new MessagesEx . MessageInfo ( \n project , \n - ExecutionBundle . message ( STRING0 , moduleSelector . getModuleName ( ) , project . getName ( ) ) , \n + moduleName . isEmpty ( ) ? STRING1 : ExecutionBundle . message ( STRING0 , moduleName , project . getName ( ) ) , \n ExecutionBundle . message ( STRING2 ) ) ) ; \n } \n }", "msg_token": "module not configured message fixed"} {"diff": " public class MagicLinkSignInActivity extends SignInActivity \n getSignInFragment ( ) . setToken ( STRING0 ) ; \n } \n } ) ; \n + mProgressDialog . show ( ) ; \n } \n \n private void saveEmailToAccount ( String email ) {", "msg_token": "Fix the loading progress indicator"} {"diff": " public class EFragmentHolder extends EComponentWithViewSupportHolder implements \n \n private void setFindViewById ( ) { \n JMethod findViewById = generatedClass . method ( PUBLIC , classes ( ) . VIEW , STRING0 ) ; \n + findViewById . annotate ( Override . class ) ; \n + \n JVar idParam = findViewById . param ( codeModel ( ) . INT , STRING1 ) ; \n \n JBlock body = findViewById . body ( ) ; \n public class EFragmentHolder extends EComponentWithViewSupportHolder implements \n onDetachBeforeSuperBlock = onDetachBody . block ( ) ; \n onDetachBody . invoke ( _super ( ) , onDetach ) ; \n } \n - \n + \n private void setOnStop ( ) { \n JMethod onStop = generatedClass . method ( PUBLIC , codeModel ( ) . VOID , STRING2 ) ; \n onStop . annotate ( Override . class ) ;", "msg_token": "Add missing Override annotation for generated fragments"} {"diff": " final class LoadAndDisplayImageTask implements Runnable , IoUtils . CopyListener { \n private static final String LOG_TASK_INTERRUPTED = STRING0 ; \n \n private static final String ERROR_PRE_PROCESSOR_NULL = STRING1 ; \n - private static final String ERROR_POST_PROCESSOR_NULL = STRING1 ; \n + private static final String ERROR_POST_PROCESSOR_NULL = STRING2 ; \n private static final String ERROR_PROCESSOR_FOR_DISC_CACHE_NULL = STRING3 ; \n \n private static final int BUFFER_SIZE = NUMBER0 * NUMBER1 ; SINGLE", "msg_token": "Modify log error"} {"diff": " public class DebugTimer { \n root . dump ( NUMBER0 ) ; \n \n if ( pClear ) { \n - this . mDebugTimes . clear ( ) ; \n - this . init ( root . mLabel ) ; \n + this . clear ( ) ; \n } \n } \n \n + public void clear ( ) { \n + final DebugTime root = this . mDebugTimes . firstElement ( ) ; \n + this . mDebugTimes . clear ( ) ; \n + this . init ( root . mLabel ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added clear method to DebugTimer"} {"diff": " public class FileUploader extends Service implements OnDatatransferProgressListe \n COMMENT \n private void saveUploadedFile ( ) { \n OCFile file = mCurrentUpload . getFile ( ) ; \n + if ( file . fileExists ( ) ) { \n + file = mStorageManager . getFileById ( file . getFileId ( ) ) ; \n + } \n long syncDate = System . currentTimeMillis ( ) ; \n file . setLastSyncDateForData ( syncDate ) ;", "msg_token": "Fixed local state of file after a successful reupload"} {"diff": " public final class Intrinsics { \n } \n \n private void declareStringIntrinsics ( ) { \n - PropertyDescriptor lengthProperty = \n + SINGLE \n + PropertyDescriptor stringLengthProperty = \n + getPropertyByName ( library . getString ( ) . getDefaultType ( ) . getMemberScope ( ) , STRING0 ) ; \n + functionIntrinsics . put ( stringLengthProperty . getGetter ( ) , lengthPropertyIntrinsic ) ; \n + PropertyDescriptor charSequenceLengthProperty = \n getPropertyByName ( library . getCharSequence ( ) . getDefaultType ( ) . getMemberScope ( ) , STRING0 ) ; \n - functionIntrinsics . put ( lengthProperty . getGetter ( ) , new BuiltInPropertyIntrinsic ( STRING0 ) ) ; \n + functionIntrinsics . put ( charSequenceLengthProperty . getGetter ( ) , lengthPropertyIntrinsic ) ; \n FunctionDescriptor getFunction = \n getFunctionByName ( library . getString ( ) . getDefaultType ( ) . getMemberScope ( ) , STRING1 ) ; \n functionIntrinsics . put ( getFunction , CharAtIntrinsic . INSTANCE ) ;", "msg_token": "Fix tests after update"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ listeners ( { \n - ReproduceInfoPrinter . class \n + ReproduceInfoPrinter . class , \n + LoggingListener . class \n } ) \n @ threadleakscope ( Scope . SUITE ) \n @ threadleaklingering ( linger = NUMBER0 ) SINGLE", "msg_token": "add LoggingListener to ElasticsearchLuceneTestCase"} {"diff": " public final class Constant { \n } \n \n public static boolean isDevBuild ( ) { \n + return isDevBuild ( PROGRAM_VERSION ) ; \n + } \n + \n + public static boolean isDevBuild ( String version ) { \n SINGLE \n - return PROGRAM_VERSION . equals ( DEV_VERSION ) ; \n + return DEV_VERSION . equals ( version ) ; \n } \n \n public static boolean isDailyBuild ( String version ) { \n public class CheckForUpdates extends SwingWorker < String , String > { \n \n private boolean isNewerVersion ( String progVersionStr , String latestVersionStr , boolean checkDaily ) { \n boolean newerVersion = false ; \n - if ( Constant . isDailyBuild ( progVersionStr ) ) { \n + if ( Constant . isDevBuild ( progVersionStr ) ) { \n return false ; \n } else if ( checkDaily && Constant . isDailyBuild ( ) ) { \n SINGLE", "msg_token": "Fixed incorrect check"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Tests Remove unused imports"} {"diff": " public abstract class RectangularShape extends Shape { \n SINGLE \n SINGLE \n \n - protected final float mBaseWidth ; \n - protected final float mBaseHeight ; \n + protected float mBaseWidth ; \n + protected float mBaseHeight ; \n \n protected float mWidth ; \n protected float mHeight ;", "msg_token": "Fixed text having wrong width height set RectangularShape needs mBaseWidth mBaseHeight as no more final"} {"diff": " public class DevicePolicyManager { \n COMMENT \n COMMENT \n public static final String ACTION_PROVISIONING_USER_HAS_CONSENTED \n - = STRING0 ; \n + = STRING1 ; \n \n COMMENT \n COMMENT", "msg_token": "Changing the value of the user consent extra in DevicePolicyManager"} {"diff": " public class DividerView extends FrameLayout implements OnTouchListener , \n int position = DockedDividerUtils . calculatePositionForBounds ( event . initialRect , \n mDockSide , mDividerSize ) ; \n mEntranceAnimationRunning = true ; \n + \n + SINGLE \n + if ( mStableInsets . isEmpty ( ) ) { \n + SystemServicesProxy . getInstance ( mContext ) . getStableInsets ( mStableInsets ) ; \n + mSnapAlgorithm = null ; \n + initializeSnapAlgorithm ( ) ; \n + } \n + \n resizeStack ( position , mSnapAlgorithm . getMiddleTarget ( ) . position , \n mSnapAlgorithm . getMiddleTarget ( ) ) ; \n }", "msg_token": "Fix multi window enter animation"} {"diff": " public class HostConfig \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - protected String configClass = STRING0 ; \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n protected String contextClass = STRING1 ; \n public class HostConfig \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - public String getConfigClass ( ) { \n - \n - return ( this . configClass ) ; \n - \n - } \n - \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public void setConfigClass ( String configClass ) { \n - \n - this . configClass = configClass ; \n - \n - } \n - \n - \n - COMMENT \n COMMENT \n COMMENT \n public String getContextClass ( ) {", "msg_token": "Remove unused class"} {"diff": " public class IngestGeoIpPlugin extends Plugin { \n \n @ override \n public String description ( ) { \n - return STRING0 ; \n + return STRING1 ; \n } \n \n public void onModule ( NodeModule nodeModule ) throws IOException {", "msg_token": "updated ingest geoip plugin description"} {"diff": " public class SystemUtils { \n SINGLE \n \n private static final String BOGOMIPS_PATTERN = STRING0 ; \n - private static final String MEMTOTAL_PATTERN = STRING1 ; \n - private static final String MEMFREE_PATTERN = STRING2 ; \n + private static final String MEMTOTAL_PATTERN = STRING3 ; \n + private static final String MEMFREE_PATTERN = STRING4 ; \n \n SINGLE \n SINGLE", "msg_token": "Fixed typo in the patterns used to retrieve info about current memory situation of the device"} {"diff": " public final class CreateDialogAction extends AbstractCreateFormAction { \n result . append ( STRING0 ) ; \n result . append ( className + STRING1 + className + STRING2 ) ; \n result . append ( STRING3 ) ; \n - result . append ( STRING4 ) ; \n + result . append ( STRING5 ) ; \n result . append ( STRING6 ) ; \n result . append ( STRING7 ) ; \n }", "msg_token": "remove usage of deprecated method in generated code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixing the build"} {"diff": " public class XmlTagInsertHandler implements InsertHandler < LookupElement > { \n } \n else if ( completionChar == Lookup . AUTO_INSERT_SELECT_CHAR || completionChar == Lookup . NORMAL_SELECT_CHAR || completionChar == Lookup . REPLACE_SELECT_CHAR ) { \n if ( WebEditorOptions . getInstance ( ) . isAutomaticallyInsertClosingTag ( ) && isHtmlCode && HtmlUtil . isSingleHtmlTag ( tag . getName ( ) ) ) { \n - template . addTextSegment ( tag instanceof HtmlTag ? STRING0 : STRING1 ) ; \n + template . addTextSegment ( HtmlUtil . isHtmlTag ( tag ) ? STRING0 : STRING1 ) ; \n } \n else { \n if ( needAlLeastOneAttribute ( tag ) && WebEditorOptions . getInstance ( ) . isAutomaticallyStartAttribute ( ) && tag . getAttributes ( ) . length == NUMBER0", "msg_token": "determine tag end by doctype"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public final class StackBlur implements BlurAlgorithm { \n private boolean canReuseInBitmap ;", "msg_token": "Remove comment about memory efficiency"} {"diff": " public final class AnalyticsTracker { \n SITE_SETTINGS_EXPORT_SITE_RESPONSE_OK , \n SITE_SETTINGS_EXPORT_SITE_RESPONSE_ERROR , \n SITE_SETTINGS_DELETE_SITE_ACCESSED , \n + SITE_SETTINGS_DELETE_SITE_PURCHASES_REQUESTED , \n SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOWN , \n SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOW_CLICKED , \n SITE_SETTINGS_DELETE_SITE_REQUESTED , \n public class AnalyticsTrackerMixpanel extends Tracker { \n case SITE_SETTINGS_DELETE_SITE_ACCESSED : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING0 ) ; \n break ; \n + case SITE_SETTINGS_DELETE_SITE_PURCHASES_REQUESTED : \n + instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING1 ) ; \n + break ; \n case SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOWN : \n instructions = AnalyticsTrackerMixpanelInstructionsForStat . mixpanelInstructionsForEventName ( STRING2 ) ; \n break ; \n public class AnalyticsTrackerNosara extends Tracker { \n case SITE_SETTINGS_DELETE_SITE_ACCESSED : \n eventName = STRING3 ; \n break ; \n + case SITE_SETTINGS_DELETE_SITE_PURCHASES_REQUESTED : \n + eventName = STRING4 ; \n + break ; \n case SITE_SETTINGS_DELETE_SITE_PURCHASES_SHOWN : \n eventName = STRING5 ; \n break ;", "msg_token": "Adding purchases request"} {"diff": " public enum Biome { \n OCEAN , \n RIVER , \n EXTREME_HILLS , \n + FROZEN_OCEAN , \n + FROZEN_RIVER , \n + ICE_PLAINS , \n + ICE_MOUNTAINS , \n + MUSHROOM_ISLAND , \n + MUSHROOM_SHORE \n }", "msg_token": "Added new biome enum values"} {"diff": " public class AceEditorIdleCommands \n else if ( DOM . eventGetType ( event ) == Event . ONERROR ) \n { \n container . setWidget ( noImageLabel ) ; \n + onResize . execute ( NUMBER0 ) ; \n } \n } \n } ) ; \n public class AceEditorIdleCommands \n return ; \n \n SINGLE \n + container . setWidget ( new SimplePanel ( ) ) ; \n noImageLabel . setText ( STRING0 + href_ + STRING1 ) ; \n image . getElement ( ) . setAttribute ( STRING2 , imgSrcPathFromHref ( href_ ) ) ; \n }", "msg_token": "resize line widget on error set placeholder when loading new image"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestShardEjector \n NodeManager nodeManager = createNodeManager ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ; \n \n ShardEjector ejector = new ShardEjector ( \n - nodeManager , \n + nodeManager . getCurrentNode ( ) . getNodeIdentifier ( ) , \n + new RaptorNodeSupplier ( nodeManager , new RaptorConnectorId ( STRING5 ) ) , \n shardManager , \n storageService , \n new Duration ( NUMBER0 , HOURS ) ,", "msg_token": "Fix compilation error for TestShardEjector"} {"diff": " public class WorldBuilder { \n } \n orderedProviders . add ( provider ) ; \n } \n - result . putAll ( facet , orderedProviders ) ; \n - facetCalculationInProgress . remove ( facet ) ; \n } \n + result . putAll ( facet , orderedProviders ) ; \n + facetCalculationInProgress . remove ( facet ) ; \n } \n \n private boolean producesFacet ( FacetProvider provider , Class < ? extends WorldFacet > facet ) {", "msg_token": "Fix redundant entries in facet provider chain"} {"diff": " public class FloatingToolbar extends LinearLayoutCompat implements View . OnClickL \n COMMENT \n COMMENT \n animate ( ) . x ( mOriginalX ) . setStartDelay ( CIRCULAR_REVEAL_DELAY ) \n - . setDuration ( CIRCULAR_REVEAL_DURATION ) \n + . setDuration ( NUMBER0 ) \n . setInterpolator ( new AccelerateDecelerateInterpolator ( ) ) ; \n }", "msg_token": "Improve reveal animation"} {"diff": " public class SplitDefinition extends ExpressionNode implements ExecutorServiceAw \n Splitter answer = new Splitter ( routeContext . getCamelContext ( ) , exp , childProcessor , aggregationStrategy , \n isParallelProcessing , threadPool , shutdownThreadPool , isStreaming , isStopOnException ( ) , \n timeout , onPrepare , isShareUnitOfWork , isParallelAggregate ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n return answer ; \n }", "msg_token": "Removed unused code after a recent fix in this file"} {"diff": " public class HelloWorldClient { \n COMMENT \n public HelloWorldClient ( String host , int port ) { \n channel = ManagedChannelBuilder . forAddress ( host , port ) \n + SINGLE \n + SINGLE \n . usePlaintext ( true ) \n . build ( ) ; \n blockingStub = GreeterGrpc . newBlockingStub ( channel ) ;", "msg_token": "Explain reason for plainText"} {"diff": " public interface DLLocalService { \n public Hits search ( \n String companyId , String portletId , String groupId , \n String [ ] repositoryIds , String keywords ) \n - throws RemoteException , SystemException ; \n + throws SystemException ; \n \n } \n public class DLLocalServiceUtil { \n public static Hits search ( \n String companyId , String portletId , String groupId , \n String [ ] repositoryIds , String keywords ) \n - throws PortalException , SystemException { \n + throws SystemException { \n \n try { \n DLLocalService dlLocalService = DLLocalServiceFactory . getService ( ) ;", "msg_token": "Fix interface error"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n \n @ runwith ( WithTestDefaultsRunner . class ) \n public class EditTextTest { \n - @ before public void setUp ( ) throws Exception { \n - Robolectric . bindDefaultShadowClasses ( ) ; \n - } \n - \n @ test \n public void shouldBeFocusableByDefault ( ) throws Exception { \n assertTrue ( new EditText ( null ) . isFocusable ( ) ) ;", "msg_token": "remove unneeded test setup"} {"diff": " public class IdentDynamicMethod extends AbstractDynamicMethodInvocation { \n this . application = application ; \n } \n \n - public Object invoke ( Object target , Object [ ] arguments ) { \n + public Object invoke ( Object target , String methodName , Object [ ] arguments ) { \n BeanWrapper bean = new BeanWrapperImpl ( target ) ; \n GrailsDomainClass domainClass = application . getGrailsDomainClass ( target . getClass ( ) . getName ( ) ) ; \n return bean . getPropertyValue ( domainClass . getIdentifier ( ) . getName ( ) ) ;", "msg_token": "Implemented new MetaClass that does regex matching but extends ExpandoMetaClass"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class PooledConnection { \n COMMENT \n COMMENT \n private static final Log log = LogFactory . getLog ( PooledConnection . class ) ; \n - COMMENT \n - COMMENT \n - COMMENT \n - protected static AtomicInteger counter = new AtomicInteger ( NUMBER0 ) ; \n \n COMMENT \n COMMENT \n public class PooledConnection { \n COMMENT \n private volatile long lastValidated = System . currentTimeMillis ( ) ; \n COMMENT \n - COMMENT \n - COMMENT \n - private int instanceCount = NUMBER1 ; \n - COMMENT \n COMMENT \n COMMENT \n protected ConnectionPool parent ; \n public class PooledConnection { \n COMMENT \n COMMENT \n public PooledConnection ( PoolConfiguration prop , ConnectionPool parent ) { \n - instanceCount = counter . addAndGet ( NUMBER2 ) ; \n poolProperties = prop ; \n this . parent = parent ; \n }", "msg_token": "Remove some unused code"} {"diff": " public class Sensor { \n \n COMMENT \n public static final int TYPE_GYROSCOPE = NUMBER0 ; \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static final int TYPE_LIGHT = NUMBER1 ; \n COMMENT \n public static final int TYPE_PRESSURE = NUMBER2 ; \n COMMENT \n public static final int TYPE_TEMPERATURE = NUMBER3 ; \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static final int TYPE_PROXIMITY = NUMBER4 ; \n \n \n public class SensorEvent { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public final float [ ] values ; \n \n COMMENT", "msg_token": "Add documentation for proximity and light sensors"} {"diff": " public class BTree < T extends Comparable < T > > { \n if ( index >= keysSize ) \n return null ; \n T value = keys [ index ] ; \n - keys [ index ] = null ; \n for ( int i = index + NUMBER0 ; i < keysSize ; i ++ ) { \n SINGLE \n keys [ i - NUMBER0 ] = keys [ i ] ;", "msg_token": "Removed an unnessacary line of code in B Tree"} {"diff": " public class EditorFragment extends EditorFragmentAbstract { \n public void setContent ( CharSequence text ) { \n SINGLE \n } \n + \n + @ override \n + public CharSequence getTitle ( ) { \n + SINGLE \n + return null ; \n + } \n + \n + @ override \n + public CharSequence getContent ( ) { \n + SINGLE \n + return null ; \n + } \n } \n import NAMESPACE ; \n public abstract class EditorFragmentAbstract extends Fragment { \n public abstract void setTitle ( CharSequence text ) ; \n public abstract void setContent ( CharSequence text ) ; \n + public abstract CharSequence getTitle ( ) ; \n + public abstract CharSequence getContent ( ) ; \n + \n protected EditorFragmentListener mEditorFragmentListener ; \n \n @ override", "msg_token": "add getters for Title Content"} {"diff": " import NAMESPACE ; \n COMMENT \n public class MockView extends TextView { \n \n + public MockView ( Context context , AttributeSet attrs ) { \n + this ( context , attrs , NUMBER0 ) ; \n + } \n + \n public MockView ( Context context , AttributeSet attrs , int defStyle ) { \n this ( context , attrs , defStyle , NUMBER0 ) ; \n }", "msg_token": "Add MockView constructor used by LayoutInflater"} {"diff": " public class MarkupTemplateEngine extends TemplateEngine { \n } \n } \n \n - static class TemplateResource { \n + public static class TemplateResource { \n private final String baseName ; \n private final String locale ; \n private final String extension ;", "msg_token": "Make TemplateResource public to make it reusable from other frameworks"} {"diff": " public class MBCategoryLocalServiceImpl implements MBCategoryLocalService { \n throw new SystemException ( ioe ) ; \n } \n catch ( ParseException pe ) { \n - throw new SystemException ( pe ) ; \n + SINGLE \n + \n + _log . error ( STRING0 + keywords ) ; \n + \n + return new Hits ( ) ; \n } \n } \n \n public class Hits implements Serializable { \n private org . apache . lucene . search . Hits _hits ; \n private long _start ; \n private float _searchTime ; \n - private Document [ ] _docs ; \n + private Document [ ] _docs = new Document [ NUMBER0 ] ; \n private int _length ; \n - private float [ ] _scores ; \n + private float [ ] _scores = new float [ NUMBER0 ] ; \n \n }", "msg_token": "Don t throw an exception if there s a parse error instead log it"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public final class TypeJsonUtils \n public final class TypeJsonUtils \n if ( element instanceof SqlDecimal ) { \n type . writeLong ( blockBuilder , ( ( SqlDecimal ) element ) . getUnscaledValue ( ) . longValue ( ) ) ; \n } \n + else if ( FLOAT . equals ( type ) ) { \n + type . writeLong ( blockBuilder , floatToRawIntBits ( ( ( Number ) element ) . floatValue ( ) ) ) ; \n + } \n else { \n type . writeLong ( blockBuilder , ( ( Number ) element ) . longValue ( ) ) ; \n }", "msg_token": "Make REAL work in MAP"} {"diff": " public class ActualHttpServer extends HttpServer { \n } \n \n public Object getMonitor ( ) { \n - if ( this . monitor == null ) { \n - return new MocoEventListener ( ) ; \n - } \n - \n return monitor ; \n }", "msg_token": "removed unused monitor initialization in getter"} {"diff": " public class FakeHttpLayer { \n } \n } \n \n + System . err . println ( STRING0 + httpRequest . getRequestLine ( ) ) ; \n + \n return defaultHttpResponse ; \n }", "msg_token": "Adding print to err stream when there s an HTTP call made that doesn t match any response rules"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n SINGLE \n if ( ! gone || ! win . mHaveFrame || win . mLayoutNeeded \n - || win . isConfigChanged ( ) \n + || ( win . mAttrs . type == TYPE_KEYGUARD && win . isConfigChanged ( ) ) \n || win . mAttrs . type == TYPE_UNIVERSE_BACKGROUND ) { \n if ( ! win . mLayoutAttached ) { \n if ( initial ) {", "msg_token": "WindowManager shouldn t layout non visible windows"} {"diff": " public abstract class AbstractXMPPConnection implements XMPPConnection { \n private String usedUsername , usedPassword , usedResource ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractXMPPConnection implements XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public synchronized void login ( ) throws XMPPException , SmackException , IOException { \n if ( isAnonymous ( ) ) {", "msg_token": "Fix AbstractXMPPConnection login javadoc"} {"diff": " public abstract class AbstractPlatformToolProvider implements PlatformToolProvid \n \n public abstract String getPCHFileExtension ( ) ; \n \n - public abstract String getObjectFileExtension ( ) ; \n + public String getObjectFileExtension ( ) { \n + return targetOperatingSystem . isWindows ( ) ? STRING0 : STRING1 ; \n + } \n } \n class GccPlatformToolProvider extends AbstractPlatformToolProvider { \n public String getPCHFileExtension ( ) { \n return STRING2 ; \n } \n - \n - @ override \n - public String getObjectFileExtension ( ) { \n - return STRING1 ; \n - } \n } \n class VisualCppPlatformToolProvider extends AbstractPlatformToolProvider { \n public String getPCHFileExtension ( ) { \n return STRING3 ; \n } \n - \n - @ override \n - public String getObjectFileExtension ( ) { \n - return STRING0 ; \n - } \n }", "msg_token": "Changing native object file extensions back to being os specific"} {"diff": " public class EventBusBridge implements Handler < SockJSSocket > { \n sock . endHandler ( new VoidHandler ( ) { \n public void handle ( ) { \n System . out . println ( STRING0 ) ; \n - new Exception ( ) . printStackTrace ( ) ; \n handleSocketClosed ( sock , handlers ) ; \n } \n } ) ;", "msg_token": "Remove debug cruft"} {"diff": " public class TexturePackerFileProcessor extends FileProcessor { \n while ( true ) { \n settings = dirToSettings . get ( parent ) ; \n if ( settings != null ) break ; \n - if ( parent . equals ( root ) ) break ; \n + if ( parent == null || parent . equals ( root ) ) break ; \n parent = parent . getParentFile ( ) ; \n } \n if ( settings == null ) settings = defaultSettings ;", "msg_token": "Prevent NPE if input dir is a file"} {"diff": " public class ZooClient extends AbstractZooKeeperManager \n @ override \n public void shutdown ( ) \n { \n + msgLog . close ( ) ; \n this . shutdown = true ; \n super . shutdown ( ) ; \n }", "msg_token": "Close the message logger so that the file is closed on windows"} {"diff": " public class QueryOptions \n flags . add ( Flag . SKIP_METADATA ) ; \n if ( options . getPageSize ( ) >= NUMBER0 ) \n flags . add ( Flag . PAGE_SIZE ) ; \n + if ( options . getPagingState ( ) != null ) \n + flags . add ( Flag . PAGING_STATE ) ; \n if ( options . getSerialConsistency ( ) != ConsistencyLevel . SERIAL ) \n flags . add ( Flag . SERIAL_CONSISTENCY ) ; \n return flags ; \n public class RegisterMessage extends Message . Request \n { \n int size = NUMBER1 ; \n for ( Event . Type type : msg . eventTypes ) \n - CBUtil . sizeOfEnumValue ( type ) ; \n + size += CBUtil . sizeOfEnumValue ( type ) ; \n return size ; \n } \n } ;", "msg_token": "Fix broken native protocol serialization methods"} {"diff": " public final class ViewRootImpl implements ViewParent , \n \n SINGLE \n SINGLE \n - if ( view . isHardwareAccelerated ( ) ) { \n - final int surfaceInset = ( int ) Math . ceil ( view . getZ ( ) * NUMBER0 ) ; \n - attrs . surfaceInsets . set ( surfaceInset , surfaceInset , surfaceInset , surfaceInset ) ; \n - } else { \n - SINGLE \n - attrs . surfaceInsets . setEmpty ( ) ; \n - } \n + final int surfaceInset = ( int ) Math . ceil ( view . getZ ( ) * NUMBER0 ) ; \n + attrs . surfaceInsets . set ( surfaceInset , surfaceInset , surfaceInset , surfaceInset ) ; \n \n CompatibilityInfo compatibilityInfo = mDisplayAdjustments . getCompatibilityInfo ( ) ; \n mTranslator = compatibilityInfo . getTranslator ( ) ;", "msg_token": "Always apply surface insets"} {"diff": " public class JavaEditor extends Editor { \n COMMENT \n COMMENT \n @ override \n - protected void setCode ( SketchCode code ) { \n + public void setCode ( SketchCode code ) { \n SINGLE \n SINGLE \n super . setCode ( code ) ;", "msg_token": "make public because of the superclass change"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class DependencyTree { \n + class DependencyTree { \n public int n ; \n List < Integer > head ; \n List < String > label ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class Util \n - { \n + class Util { \n \n private Util ( ) { } SINGLE", "msg_token": "Make nndep DependencyTree nndep Util package local"} {"diff": " public class CatalystInstanceImpl implements CatalystInstance { \n } \n \n @ override \n - public void handleMemoryPressure ( MemoryPressure level ) { \n - Assertions . assertNotNull ( mBridge ) . handleMemoryPressure ( level ) ; \n + public void handleMemoryPressure ( final MemoryPressure level ) { \n + mReactQueueConfiguration . getJSQueueThread ( ) . runOnQueue ( \n + new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + Assertions . assertNotNull ( mBridge ) . handleMemoryPressure ( level ) ; \n + } \n + } ) ; \n } \n \n COMMENT", "msg_token": "Schedule memory pressure handlers onto JS queue thread"} {"diff": " public class HgChangeProvider implements ChangeProvider { \n final VirtualFile root = vcsManager . getVcsRootFor ( vf ) ; \n if ( root != null ) { \n final HgRevisionNumber beforeRevisionNumber = new HgWorkingCopyRevisionsCommand ( myProject ) . identify ( root ) ; \n - builder . processChange ( new Change ( new HgContentRevision ( myProject , new HgFile ( myProject , vf ) , beforeRevisionNumber ) , \n - CurrentContentRevision . create ( filePath ) , FileStatus . MODIFIED ) , myVcsKey ) ; \n + final ContentRevision beforeRevision = ( beforeRevisionNumber == null ? null : \n + new HgContentRevision ( myProject , new HgFile ( myProject , vf ) , beforeRevisionNumber ) ) ; \n + builder . processChange ( new Change ( beforeRevision , CurrentContentRevision . create ( filePath ) , FileStatus . MODIFIED ) , myVcsKey ) ; \n } \n } \n }", "msg_token": "Mercurial Fixed possible NPE"} {"diff": " public class Util \n javax . servlet . http . HttpSessionListener . class . isAssignableFrom ( c ) || \n javax . servlet . http . HttpSessionAttributeListener . class . isAssignableFrom ( c ) || \n javax . servlet . AsyncListener . class . isAssignableFrom ( c ) || \n - javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( null ) ) \n + javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( c ) ) \n return true ; \n \n return false ; \n public class Util \n javax . servlet . http . HttpSessionListener . class . isAssignableFrom ( c ) || \n javax . servlet . http . HttpSessionAttributeListener . class . isAssignableFrom ( c ) || \n javax . servlet . AsyncListener . class . isAssignableFrom ( c ) || \n - javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( null ) ) \n + javax . servlet . http . HttpUpgradeHandler . class . isAssignableFrom ( c ) ) \n return true ; \n \n return false ;", "msg_token": "fixed NPE in injection"} {"diff": " public final class MediaStore { \n public final static String ACTION_IMAGE_CAPTURE = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String ACTION_IMAGE_CAPTURE_SECURE = \n + STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add secure version of image capture intent"} {"diff": " public class EMLParser { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - public EMLParser defaultSession ( Properties properties ) { \n - this . session = getDefaultSession ( properties ) ; \n + public EMLParser defaultSession ( ) { \n + this . session = Session . getDefaultInstance ( System . getProperties ( ) ) ; \n return this ; \n } \n \n - public EMLParser defaultSession ( ) { \n - return defaultSession ( null ) ; \n - } \n \n COMMENT \n COMMENT \n public class EMLParser { \n \n return Session . getInstance ( properties ) ; \n } \n - COMMENT \n - COMMENT \n - COMMENT \n - protected Session getDefaultSession ( Properties properties ) { \n - if ( properties == null ) { \n - properties = new Properties ( ) ; \n - } \n - \n - return Session . getDefaultInstance ( properties ) ; \n - } \n \n }", "msg_token": "Fixing defaultSession not to use passed properties"} {"diff": " public class ExpandableNotificationRow extends ActivatableNotificationView { \n int headsUpheight = headsUpCustom && beforeN ? mMaxHeadsUpHeightLegacy \n : mMaxHeadsUpHeight ; \n layout . setHeights ( minHeight , headsUpheight , mNotificationMaxHeight ) ; \n - if ( mSettingsIconRow != null ) { \n - mSettingsIconRow . updateVerticalLocation ( ) ; \n - } \n } \n \n public StatusBarNotification getStatusBarNotification ( ) {", "msg_token": "Fix NPE when updating gear vertical location"} {"diff": " public class ComponentSystemManager { \n InjectionHelper . share ( newSystem ) ; \n register ( newSystem , id ) ; \n logger . debug ( STRING0 , id ) ; \n - } catch ( Throwable t ) { \n - logger . error ( STRING1 , id , t ) ; \n + } catch ( RuntimeException | IllegalAccessException | InstantiationException e ) { \n + logger . error ( STRING1 , id , e ) ; \n } \n } \n }", "msg_token": "Changed catch throwable type when loading systems"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface Filter { \n public List < ResultItem > getResultItems ( ) { \n List < ResultItem > resultItems = myResultItems ; \n if ( resultItems == null ) { \n - resultItems = Collections . singletonList ( ( ResultItem ) this ) ; \n + resultItems = Collections . singletonList ( this ) ; \n } \n return resultItems ; \n }", "msg_token": "remove an unnecessary cast"} {"diff": " public class GrizzlyServer { \n SINGLE \n SINGLE \n SINGLE \n - final String clientPath = STRING0 ; \n + final String clientPath = STRING1 ; \n httpServer . getServerConfiguration ( ) . addHttpHandler ( new StaticHttpHandler ( clientPath ) , STRING2 ) ; \n - \n COMMENT \n try { \n httpServer . start ( ) ;", "msg_token": "Make the leaflet client the default front end for the otp standalone"} {"diff": " public class MainFrame \n . addListSelectionListener ( callManager ) ; \n this . tabbedPane . addChangeListener ( callManager ) ; \n } \n - \n + \n SINGLE \n String multiChatClassName = OperationSetMultiUserChat . class . getName ( ) ; \n \n public class MainFrame \n this . protocolProviders . remove ( protocolProvider ) ; \n this . updateProvidersIndexes ( protocolProvider ) ; \n \n - if ( getStatusPanel ( ) . containsAccount ( protocolProvider ) ) { \n - \n + if ( getStatusPanel ( ) . containsAccount ( protocolProvider ) ) \n + { \n this . getStatusPanel ( ) . removeAccount ( protocolProvider ) ; \n } \n - \n - if ( callManager . containsCallAccount ( protocolProvider ) ) { \n + \n + if ( callManager . containsCallAccount ( protocolProvider ) ) \n + { \n callManager . removeCallAccount ( protocolProvider ) ; \n } \n + \n + SINGLE \n + this . getChatRoomsListPanel ( ) . getChatRoomsList ( ) \n + . removeChatServer ( protocolProvider ) ; \n } \n \n COMMENT", "msg_token": "remove related chat rooms when a multi user chat account is removed"} {"diff": " public class LookupImpl extends LightweightHint implements Lookup , Disposable { \n SINGLE \n } \n \n - LookupElement element = items . get ( i ) ; \n + final LookupElement element = items . get ( i ) ; \n final LookupElementPresentation presentation = new LookupElementPresentation ( ) ; \n element . renderElement ( presentation ) ; \n \n public class LookupImpl extends LightweightHint implements Lookup , Disposable { \n \n row . setBorder ( new EmptyBorder ( NUMBER0 , itemTextPadding , NUMBER0 , NUMBER0 ) ) ; \n \n + row . addMouseListener ( new MouseAdapter ( ) { \n + @ override \n + public void mouseClicked ( MouseEvent e ) { \n + setCurrentItem ( element ) ; \n + CommandProcessor . getInstance ( ) . executeCommand ( myProject , new Runnable ( ) { \n + public void run ( ) { \n + finishLookup ( NORMAL_SELECT_CHAR ) ; \n + } \n + } , STRING0 , null ) ; \n + } \n + } ) ; \n + \n pane . add ( row , gb . nextLine ( ) ) ; \n }", "msg_token": "in hint mode choose items by mouse"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removed unused imports"} {"diff": " public enum OGlobalConfiguration { \n Float . class , FLOAT0 ) , \n \n SINGLE \n - LAZYSET_WORK_ON_STREAM ( STRING0 , STRING1 , Boolean . class , true ) , \n + LAZYSET_WORK_ON_STREAM ( STRING2 , STRING1 , Boolean . class , true ) , \n \n SINGLE \n FILE_DEFRAG_STRATEGY ( \n public enum OGlobalConfiguration { \n \n FILE_MMAP_OVERLAP_STRATEGY ( \n STRING3 , \n - STRING4 , \n + STRING5 , \n Integer . class , NUMBER0 , new OConfigurationChangeCallback ( ) { \n public void change ( final Object iCurrentValue , final Object iNewValue ) { \n OMMapManager . setOverlapStrategy ( ( Integer ) iNewValue ) ; \n public enum OGlobalConfiguration { \n NETWORK_HTTP_MAX_CONTENT_LENGTH ( STRING6 , STRING7 , Integer . class , \n NUMBER1 ) , \n \n - NETWORK_HTTP_SESSION_EXPIRE_TIMEOUT ( STRING8 , STRING9 , \n + NETWORK_HTTP_SESSION_EXPIRE_TIMEOUT ( STRING8 , STRING10 , \n Integer . class , NUMBER2 ) , \n \n SINGLE", "msg_token": "Documented some new global configuration parameters"} {"diff": " public class HtmlConverter { \n Log . e ( K9 . LOG_TAG , STRING0 , e ) ; \n } \n text = buff . toString ( ) ; \n + \n + SINGLE \n text = text . replaceAll ( STRING1 , STRING2 ) ; \n + \n + SINGLE \n text = text . replaceAll ( STRING3 , STRING4 ) ; \n + \n + SINGLE \n text = text . replaceAll ( STRING5 , STRING6 ) ; \n \n StringBuffer sb = new StringBuffer ( text . length ( ) + TEXT_TO_HTML_EXTRA_BUFFER_LENGTH ) ;", "msg_token": "comment some htmlifciation regexes"} {"diff": " public final class BridgeContext extends Context { \n } \n \n @ override \n + public String getOpPackageName ( ) { \n + SINGLE \n + return null ; \n + } \n + \n + @ override \n public ApplicationInfo getApplicationInfo ( ) { \n return mApplicationInfo ; \n }", "msg_token": "Add new getOpPackageName for BridgeContext"} {"diff": " public class DummyActivity extends Activity { \n . setPositiveButton ( android . R . string . ok , new DialogInterface . OnClickListener ( ) { \n @ override \n public void onClick ( DialogInterface dialog , int which ) { \n - finish ( ) ; \n } \n } ) \n . setOnDismissListener ( new DialogInterface . OnDismissListener ( ) {", "msg_token": "remove duplicate finish"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class RoundRobinRule extends AbstractLoadBalancerRule { \n - AtomicInteger nextIndexAI ; \n + COMMENT \n + private AtomicLong nextIndexAI ; \n \n private static Logger log = LoggerFactory . getLogger ( RoundRobinRule . class ) ; \n \n public RoundRobinRule ( ) { \n - nextIndexAI = new AtomicInteger ( NUMBER0 ) ; \n + nextIndexAI = new AtomicLong ( NUMBER0 ) ; \n } \n \n public RoundRobinRule ( ILoadBalancer lb ) { \n public class RoundRobinRule extends AbstractLoadBalancerRule { \n return null ; \n } \n \n - index = nextIndexAI . incrementAndGet ( ) % serverCount ; \n + index = ( int ) ( nextIndexAI . incrementAndGet ( ) % serverCount ) ; \n server = allList . get ( index ) ; \n \n if ( server == null ) {", "msg_token": "Fix wrap around issue with RoundRobinRule"} {"diff": " public class Word2Vec implements Persistable { \n \n \n \n - getSentenceIter ( ) . reset ( ) ; \n \n final AtomicLong changed = new AtomicLong ( System . currentTimeMillis ( ) ) ;", "msg_token": "removed reset call on sentence iterator during train"} {"diff": " public class OutgoingServerSession extends Session { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed javadoc comment"} {"diff": " public abstract class Camera { \n float x = vec . x , y = vec . y ; \n x = x - viewportX ; \n y = Gdx . graphics . getHeight ( ) - y - NUMBER0 ; \n - y = y - viewportY ; \n - System . out . print ( x + STRING0 + y ) ; \n + y = y - viewportY ; \n vec . x = ( NUMBER1 * x ) / viewportWidth - NUMBER0 ; \n vec . y = ( NUMBER1 * y ) / viewportHeight - NUMBER0 ; \n - vec . z = NUMBER1 * vec . z - NUMBER0 ; \n - System . out . println ( STRING1 + vec ) ; \n + vec . z = NUMBER1 * vec . z - NUMBER0 ; \n vec . prj ( invProjectionView ) ; \n }", "msg_token": "fixed removed sysout in camera"} {"diff": " public class Accounts extends K9ListActivity implements OnItemClickListener { \n new String [ ] { STRING0 , STRING1 } , \n new String [ ] { STRING2 , STRING3 } , \n new String [ ] { STRING4 , STRING5 } , \n - new String [ ] { STRING6 , STRING7 } \n + new String [ ] { STRING6 , STRING7 } , \n + new String [ ] { STRING8 , STRING9 } \n } ; \n \n private void onAbout ( ) {", "msg_token": "Add Android PullToRefresh to about screen"} {"diff": " public class CommentsActivity extends WPDrawerActivity \n ActionBar actionBar = getSupportActionBar ( ) ; \n if ( actionBar != null ) { \n actionBar . setDisplayShowTitleEnabled ( true ) ; \n + actionBar . setTitle ( getString ( R . string . tab_comments ) ) ; \n } \n \n getFragmentManager ( ) . addOnBackStackChangedListener ( mOnBackStackChangedListener ) ; \n \n - setTitle ( getString ( R . string . tab_comments ) ) ; \n restoreSavedInstance ( savedInstanceState ) ; \n } \n \n public class PostsActivity extends WPDrawerActivity \n } \n \n if ( mIsPage ) { \n - setTitle ( getString ( R . string . pages ) ) ; \n + getSupportActionBar ( ) . setTitle ( getString ( R . string . pages ) ) ; \n } else { \n - setTitle ( getString ( R . string . posts ) ) ; \n + getSupportActionBar ( ) . setTitle ( getString ( R . string . posts ) ) ; \n } \n \n WordPress . currentPost = null ;", "msg_token": "Fixed title on Posts Pages and Comments activities"} {"diff": " public class SettingsDevelopmentActivity extends SettingsBaseActivity { \n pref . setTitle ( R . string . version_settings ) ; \n pref . setSummary ( R . string . version_settings_descr ) ; \n pref . setKey ( STRING0 ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + pref . setOnPreferenceClickListener ( new OnPreferenceClickListener ( ) { \n + @ override \n + public boolean onPreferenceClick ( Preference preference ) { \n + startActivityForResult ( new Intent ( SettingsDevelopmentActivity . this , ContributionVersionActivity . class ) ) ; \n + return ( false ) ; \n + } \n + } ) ; \n cat . addPreference ( pref ) ; \n }", "msg_token": "add missing onPreferenceClick"} {"diff": " import NAMESPACE ; \n public interface ClassChooser < T extends DomElement > { \n Class < ? extends T > chooseClass ( XmlTag tag ) ; \n void distinguishTag ( XmlTag tag , Class < ? extends T > aClass ) throws IncorrectOperationException ; \n + Class [ ] getChooserClasses ( ) ; \n } \n public class ClassChooserManager { \n \n public void distinguishTag ( final XmlTag tag , final Class aClass ) { \n } \n + \n + public Class [ ] getChooserClasses ( ) { \n + return new Class [ NUMBER0 ] ; \n + } \n } ; \n }", "msg_token": "managed bean properties forms"} {"diff": " public class EditPost extends Activity { \n } else { \n \n if ( extras != null ) { \n - id = WordPress . currentBlog . getId ( ) ; \n try { \n + id = WordPress . currentBlog . getId ( ) ; \n blog = new Blog ( id , this ) ; \n } catch ( Exception e ) { \n Toast . makeText ( this ,", "msg_token": "Moved post id creation to try catch block to help EditPost activity recover if there s no valid currentBlog"} {"diff": " import NAMESPACE ; \n public abstract class AbstractSocketObjectStreamEchoTest { \n \n static final Random random = new Random ( ) ; \n - static final String [ ] data = new String [ NUMBER0 ] ; \n + static final String [ ] data = new String [ NUMBER1 ] ; \n \n private static ExecutorService executor ;", "msg_token": "Decreased the test loop count"} {"diff": " public abstract class AbstractDaoTestSinglePk < D extends AbstractDao < T , K > , T , K > \n return cursor ; \n } \n \n + COMMENT \n protected K nextPk ( ) { \n for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n K pk = createRandomPk ( ) ; \n public abstract class AbstractDaoTestSinglePk < D extends AbstractDao < T , K > , T , K > \n } \n \n protected T createEntityWithRandomPk ( ) { \n - return createEntity ( createRandomPk ( ) ) ; \n + return createEntity ( nextPk ( ) ) ; \n } \n \n COMMENT", "msg_token": "create collision free PKs"} {"diff": " public class MyProfileActivity extends AppCompatActivity { \n } \n \n private void updateLabel ( WPTextView textView , String text ) { \n + textView . setText ( text ) ; \n if ( text == null || text . isEmpty ( ) ) { \n textView . setVisibility ( View . GONE ) ; \n } \n else { \n textView . setVisibility ( View . VISIBLE ) ; \n - textView . setText ( text ) ; \n } \n }", "msg_token": "Fixed a bug where you couldn t delete your my profile labels"} {"diff": " public class EpisodeDetailsActivity extends BaseActivity { \n setContentView ( R . layout . episode_pager ) ; \n \n final ActionBar actionBar = getSupportActionBar ( ) ; \n - actionBar . setTitle ( getString ( R . string . episode ) ) ; \n - actionBar . setDisplayShowTitleEnabled ( true ) ; \n + actionBar . setDisplayShowTitleEnabled ( false ) ; \n \n List < Episode > episodes = new ArrayList < Episode > ( ) ; \n String episodeId = getIntent ( ) . getExtras ( ) . getString ( Episodes . _ID ) ;", "msg_token": "Don t display an actionbar title while showing an episode in a single"} {"diff": " public class PluginProcessManager { \n apk = pluginInfo . applicationInfo . publicSourceDir ; \n } \n if ( apk != null ) { \n - ClassLoader classloader = new PluginClassLoader ( apk , optimizedDirectory , libraryPath , ClassLoader . getSystemClassLoader ( ) ) ; \n + ClassLoader classloader = null ; \n + try { \n + classloader = new PluginClassLoader ( apk , optimizedDirectory , libraryPath , ClassLoader . getSystemClassLoader ( ) ) ; \n + } catch ( Exception e ) { \n + } \n + if ( classloader == null ) { \n + PluginDirHelper . cleanOptimizedDirectory ( optimizedDirectory ) ; \n + classloader = new PluginClassLoader ( apk , optimizedDirectory , libraryPath , ClassLoader . getSystemClassLoader ( ) ) ; \n + } \n synchronized ( loadedApk ) { \n FieldUtils . writeDeclaredField ( loadedApk , STRING0 , classloader ) ; \n }", "msg_token": "Can not create PluginClassLoader on some devices"} {"diff": " public class NativeLibrary { \n RenderingRuleSearchRequest request , boolean skipDuplicates , int renderRouteDataFile , Object objectWithInterruptedField , \n String msgIfNothingFound ) ; \n \n + protected static native boolean initFontType ( byte [ ] byteData , String name , boolean bold , boolean italic ) ; \n \n COMMENT \n SINGLE", "msg_token": "Add support for custom fonts"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added note in JavaDoc that the ChatStateManager getInstace need be called in order to receive chat state notifications"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PlanPrinter \n } \n \n @ override \n - protected Void visitPlan ( PlanNode node , Integer context ) \n + public Void visitApply ( ApplyNode node , Integer indent ) \n + { \n + print ( indent , STRING0 , node . getCorrelation ( ) , formatOutputs ( node . getOutputSymbols ( ) ) ) ; \n + printStats ( indent + NUMBER0 , node . getId ( ) ) ; \n + \n + return processChildren ( node , indent + NUMBER1 ) ; \n + } \n + \n + @ override \n + protected Void visitPlan ( PlanNode node , Integer indent ) \n { \n throw new UnsupportedOperationException ( STRING1 + node . getClass ( ) . getName ( ) ) ; \n }", "msg_token": "Add missing PlanPrinter visitApply method"} {"diff": " public class DLFileEntryIndexer extends BaseIndexer { \n long searchRepositoryId = GetterUtil . getLong ( \n searchContext . getAttribute ( STRING0 ) ) ; \n \n - searchQuery . addRequiredTerm ( STRING1 , searchRepositoryId ) ; \n + if ( searchRepositoryId != NUMBER0 ) { \n + searchQuery . addRequiredTerm ( STRING1 , searchRepositoryId ) ; \n + } \n \n String keywords = searchContext . getKeywords ( ) ;", "msg_token": "the indexer was incorrectly adding a"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n \n enforceDeclaredAsUsedAndRuntimePermission ( pkg , bp ) ; \n \n - uid = pkg . applicationInfo . uid ; \n + uid = UserHandle . getUid ( userId , pkg . applicationInfo . uid ) ; \n sb = ( SettingBase ) pkg . mExtras ; \n if ( sb == null ) { \n throw new IllegalArgumentException ( STRING0 + packageName ) ;", "msg_token": "Qualify the uid with the userId when granting permissions"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BasicHttpProxyToHttpTest { \n private Server proxy ; \n \n @ suppresswarnings ( STRING0 ) \n - public static class BasicAuthProxyServlet extends AsyncProxyServlet { \n + public static class BasicAuthProxyServlet extends ProxyServlet { \n \n @ override \n public void service ( ServletRequest req , ServletResponse res ) throws ServletException , IOException {", "msg_token": "Try switching to blocking ProxyServlet"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaInstallationProbe { \n exec . executable ( javaExe ( jdkPath , STRING0 ) ) ; \n File workingDir = Files . createTempDir ( ) ; \n exec . setWorkingDir ( workingDir ) ; \n + exec . setClasspath ( new SimpleFileCollection ( workingDir ) ) ; \n try { \n writeProbe ( workingDir ) ; \n exec . setMain ( JavaProbe . CLASSNAME ) ;", "msg_token": "Explicitly set classpath attempt to fix Windows test"} {"diff": " public class TaskListFragment extends ListFragment implements OnScrollListener , \n SINGLE \n setHasOptionsMenu ( true ) ; \n \n + syncActionHelper = new SyncActionHelper ( getActivity ( ) , this ) ; \n setUpUiComponents ( ) ; \n onNewIntent ( getActivity ( ) . getIntent ( ) ) ; \n setupQuickAddBar ( ) ; \n public class TaskListFragment extends ListFragment implements OnScrollListener , \n Thread . currentThread ( ) . setPriority ( Thread . MAX_PRIORITY ) ; \n } \n } ) ; \n + \n } \n \n COMMENT \n public class TaskListFragment extends ListFragment implements OnScrollListener , \n setListAdapter ( taskAdapter ) ; \n getListView ( ) . setOnScrollListener ( this ) ; \n registerForContextMenu ( getListView ( ) ) ; \n - syncActionHelper = new SyncActionHelper ( getActivity ( ) , this ) ; \n \n loadTaskListContent ( true ) ; \n }", "msg_token": "Create the sync action helper in task list when activity is created so it is never null"} {"diff": " class Slurper implements Runnable { \n if ( collection == null ) { \n for ( String name : slurpedDb . getCollectionNames ( ) ) { \n DBCollection slurpedCollection = slurpedDb . getCollection ( name ) ; \n - addQueryToStream ( operation , currentTimestamp , update , collection , slurpedCollection ) ; \n + addQueryToStream ( operation , currentTimestamp , update , name , slurpedCollection ) ; \n } \n } else { \n DBCollection slurpedCollection = slurpedDb . getCollection ( collection ) ;", "msg_token": "Use the actual name of the collection for the operations"} {"diff": " public class ViewResource { \n @ produces ( STRING0 ) \n @ path ( STRING1 ) \n public View mustacheUTF8 ( ) { \n - return new View ( STRING2 , Charsets . UTF_8 ) { \n + return new View ( STRING3 , Charsets . UTF_8 ) { \n } ; \n } \n \n public class ViewResource { \n @ produces ( STRING4 ) \n @ path ( STRING5 ) \n public View mustacheISO88591 ( ) { \n - return new View ( STRING6 , Charsets . ISO_8859_1 ) { \n + return new View ( STRING7 , Charsets . ISO_8859_1 ) { \n } ; \n } \n }", "msg_token": "Fixing wrong paths to mustache views in dropwizard example"} {"diff": " public class BasicAdminBufferStrategyTest \n private final BasicAdminBufferStrategy mediaDriverStrategy = new BasicAdminBufferStrategy ( ADMIN_DIR , NUMBER0 , true ) ; \n private final BasicAdminBufferStrategy apiStrategy = new BasicAdminBufferStrategy ( ADMIN_DIR , NUMBER1 , false ) ; \n \n - @ test ( expected = IllegalStateException . class ) \n - public void mediaDriverDoesntMapApiBuffer ( ) throws IOException \n - { \n - mediaDriverStrategy . toApi ( ) ; \n - } \n - \n - @ test ( expected = IllegalStateException . class ) \n - public void apiDoesntMapMediaDriverBuffer ( ) throws IOException \n - { \n - apiStrategy . toMediaDriver ( ) ; \n - } \n - \n @ test \n public void mediaDriverBuffersAreTheSame ( ) throws IOException \n {", "msg_token": "remove not useful tests"} {"diff": " public final class ProxyHandler implements HttpHandler { \n @ override \n public void failed ( HttpServerExchange exchange ) { \n if ( ! exchange . isResponseStarted ( ) ) { \n - exchange . setResponseCode ( NUMBER0 ) ; \n + exchange . setResponseCode ( NUMBER1 ) ; \n exchange . endExchange ( ) ; \n } else { \n IoUtils . safeClose ( exchange . getConnection ( ) ) ;", "msg_token": "Send correct response code"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n COMMENT \n COMMENT \n private boolean canHideNavigationBar ( ) { \n - return mHasNavigationBar \n - && ! mAccessibilityManager . isTouchExplorationEnabled ( ) ; \n + return mHasNavigationBar ; \n } \n \n @ override \n public class PhoneWindowManager implements WindowManagerPolicy { \n COMMENT \n COMMENT \n private boolean areTranslucentBarsAllowed ( ) { \n - return mTranslucentDecorEnabled \n - && ! mAccessibilityManager . isTouchExplorationEnabled ( ) ; \n + return mTranslucentDecorEnabled ; \n } \n \n SINGLE", "msg_token": "Allow translucent and hidden system bars when EBT is turned on"} {"diff": " public class RequireThisCheck extends Check { \n COMMENT \n COMMENT \n COMMENT \n - protected final boolean isClassField ( DetailAST ident ) { \n + private boolean isClassField ( DetailAST ident ) { \n final LexicalFrame frame = findFrame ( ident , false ) ; \n return frame instanceof ClassFrame \n && ( ( ClassFrame ) frame ) . hasInstanceMember ( ident ) ; \n public class RequireThisCheck extends Check { \n COMMENT \n COMMENT \n COMMENT \n - protected final boolean isClassMethod ( DetailAST ident ) { \n + private boolean isClassMethod ( DetailAST ident ) { \n final LexicalFrame frame = findFrame ( ident , true ) ; \n return frame instanceof ClassFrame \n && ( ( ClassFrame ) frame ) . hasInstanceMethod ( ident ) ;", "msg_token": "Make methods private in RequireThisCheck"} {"diff": " public class KMeans extends ClusteringModelBuilder < KMeansModel , KMeansModel . KMean \n SINGLE \n randomRow ( vecs , rand , centers [ NUMBER0 ] , means , mults ) ; \n \n + model . _output . _iterations = NUMBER0 ; \n while ( model . _output . _iterations < NUMBER1 ) { \n SINGLE \n SumSqr sqr = new SumSqr ( centers , means , mults , _isCats ) . doAll ( vecs ) ; \n public class KMeans extends ClusteringModelBuilder < KMeansModel , KMeansModel . KMean \n } \n SINGLE \n centers = recluster ( centers , rand , _parms . _k , _parms . _init , _isCats ) ; \n - model . _output . _iterations = - NUMBER2 ; SINGLE \n + model . _output . _iterations = NUMBER0 ; SINGLE \n } \n } \n return centers ;", "msg_token": "Set the iters counter during kmeans center initialization correctly"} {"diff": " public class EffectTrack implements ClonableTrack { \n \n public KillParticleControl ( ) { \n } \n - \n + \n @ override \n public void setSpatial ( Spatial spatial ) { \n super . setSpatial ( spatial ) ; \n public class EffectTrack implements ClonableTrack { \n \n @ override \n protected void controlUpdate ( float tpf ) { \n - if ( remove ) { \n + if ( remove ) { \n emitter . removeControl ( this ) ; \n return ; \n } \n public class EffectTrack implements ClonableTrack { \n return c ; \n \n } \n - \n - \n } ; \n \n SINGLE \n public class EffectTrack implements ClonableTrack { \n } \n \n public void onAnimChange ( AnimControl control , AnimChannel channel , String animName ) { \n - stop ( ) ; \n } \n }", "msg_token": "fixed an issue when emitter wouldn t emit again once the animation was done and loopMode was set to DontLoop"} {"diff": " public class FileSystemUtils { \n byte [ ] buffer = new byte [ limit ] ; \n try ( InputStream inputStream = byteSource . openBufferedStream ( ) ) { \n int read = ByteStreams . read ( inputStream , buffer , NUMBER0 , limit ) ; \n - return Arrays . copyOf ( buffer , read ) ; \n + return read == limit ? buffer : Arrays . copyOf ( buffer , read ) ; \n } \n }", "msg_token": "Avoid copying file contents when reading the expected number of bytes in readContentWithLimit"} {"diff": " import NAMESPACE ; \n \n import static NAMESPACE ; \n \n + @ deprecated \n public class ModuleBuilder { \n private static Map < ArtifactBuilderTestCase , Pair < AtomicInteger , AtomicInteger > > testCaseToNameCounter = new THashMap < ArtifactBuilderTestCase , Pair < AtomicInteger , AtomicInteger > > ( ) ;", "msg_token": "deprecate unused helper class which leads to unnecessary complications in JPS build tests"} {"diff": " public class SvnMergeProvider implements MergeProvider { \n catch ( SVNException e ) { \n SINGLE \n } \n + SINGLE \n + final VirtualFile parent = file . getParent ( ) ; \n + if ( parent != null ) { \n + parent . refresh ( true , false ) ; \n + } \n } \n \n }", "msg_token": "refresh directory after marking file as resolved"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class Clock extends TextView { \n - private final Handler mHandler = new Handler ( ) ; \n private boolean mAttached ; \n private Calendar mCalendar ; \n private String mClockFormatString ; \n public class Clock extends TextView { \n filter . addAction ( Intent . ACTION_TIMEZONE_CHANGED ) ; \n filter . addAction ( Intent . ACTION_CONFIGURATION_CHANGED ) ; \n \n - getContext ( ) . registerReceiver ( mIntentReceiver , filter , null , mHandler ) ; \n + getContext ( ) . registerReceiver ( mIntentReceiver , filter , null , getHandler ( ) ) ; \n } \n \n SINGLE", "msg_token": "Use the built in handler instead of allocating another one"} {"diff": " public class Specs { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated \n public class Specs { \n return new NotSpec < T > ( spec ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public static < T > Spec < T > negate ( Spec < ? super T > spec ) { \n if ( spec == SATISFIES_ALL ) { \n return satisfyNone ( ) ; \n public class Specs { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ deprecated", "msg_token": "Added missing Javadocs comments"} {"diff": " public class SettingsMonitoringActivity extends SettingsBaseActivity { \n \n private void createLoggingSection ( PreferenceScreen grp ) { \n PreferenceCategory cat = new PreferenceCategory ( this ) ; \n - cat . setTitle ( R . string . save_track_to_gpx ) ; \n + cat . setTitle ( R . string . save_track_to_gpx_globally ) ; \n grp . addPreference ( cat ) ; \n + \n + Preference globalrecord = new Preference ( this ) ; \n + globalrecord . setSummary ( R . string . save_track_to_gpx_globally_descr ) ; \n + cat . addPreference ( globalrecord ) ; \n \n Preference pref = new Preference ( this ) ; \n pref . setTitle ( R . string . save_current_track ) ;", "msg_token": "add descriptive text for global track recording"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class ServerStarter { \n \n + private static final Logger Log = LoggerFactory . getLogger ( ServerStarter . class ) ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class ServerStarter { \n containerClass . newInstance ( ) ; \n } \n catch ( Exception e ) { \n - e . printStackTrace ( ) ; \n + Log . error ( e . getMessage ( ) , e ) ; \n } \n }", "msg_token": "Replace custom logging implementation with a third party library"} {"diff": " public class WordCountTuples { \n public static void main ( String [ ] args ) throws Exception { \n \n final ExecutionEnvironment env = ExecutionEnvironment . getExecutionEnvironment ( ) ; \n - env . setDegreeOfParallelism ( NUMBER0 ) ; \n \n DataSet < String > text = env . fromElements ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ; \n \n DataSet < Tuple2 < String , Integer > > result = text . flatMap ( new Tokenizer ( ) ) . groupBy ( NUMBER1 ) . reduce ( new Counter ( ) ) ; \n \n result . print ( ) ; \n - \n - SINGLE \n env . execute ( ) ; \n } \n } \n public abstract class ExecutionEnvironment { \n } \n \n public static ExecutionEnvironment createLocalEnvironment ( ) { \n - return new LocalEnvironment ( ) ; \n + int defaultDop = Runtime . getRuntime ( ) . availableProcessors ( ) ; \n + return createLocalEnvironment ( defaultDop ) ; \n } \n \n public static ExecutionEnvironment createLocalEnvironment ( int degreeOfParallelism ) {", "msg_token": "LocalEnvironment used the number of processor cores as the default DOP"} {"diff": " public class CompileStack implements Opcodes { \n \n for ( Iterator iterator = usedVariables . iterator ( ) ; iterator . hasNext ( ) ; ) { \n BytecodeVariable v = ( BytecodeVariable ) iterator . next ( ) ; \n - String type = BytecodeHelper . getTypeDescription ( v . getType ( ) ) ; \n + ClassNode t = v . getType ( ) ; \n + if ( v . isHolder ( ) ) t = ClassHelper . REFERENCE_TYPE ; \n + String type = BytecodeHelper . getTypeDescription ( t ) ; \n Label start = v . getStartLabel ( ) ; \n Label end = v . getEndLabel ( ) ; \n mv . visitLocalVariable ( v . getName ( ) , type , null , start , end , v . getIndex ( ) ) ;", "msg_token": "make Reference type appear in the variable type correctly"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n public class DebugLogs extends BaseActivity { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private String getLogs ( ) throws IOException { \n public class DebugLogs extends BaseActivity { \n ( isRadioLogs ? STRING0 : STRING1 ) + \n STRING2 + \n STRING3 + \n - STRING4 + STRING5 \n + STRING4 + \n + STRING6 + STRING5 \n ) ; \n }", "msg_token": "silence some spammy XPrivacy items"} {"diff": " public class XmppConnection extends ImConnection implements CallbackHandler { \n else \n mConfig = new ConnectionConfiguration ( domain , serverPort , mProxyInfo ) ; \n \n - server = domain ; \n + SINGLE \n \n } else { \n debug ( TAG , STRING0 + server + STRING1 + serverPort + STRING1 \n + domain + STRING2 ) ; \n \n - String serviceName = domain ; \n + SINGLE \n \n - if ( server != null && ( ! server . endsWith ( STRING3 ) ) ) SINGLE \n - serviceName = server ; \n + SINGLE \n + SINGLE \n \n if ( mProxyInfo == null ) \n - mConfig = new ConnectionConfiguration ( server , serverPort , serviceName ) ; \n + mConfig = new ConnectionConfiguration ( server , serverPort , domain ) ; \n else \n - mConfig = new ConnectionConfiguration ( server , serverPort , serviceName , mProxyInfo ) ; \n + mConfig = new ConnectionConfiguration ( server , serverPort , domain , mProxyInfo ) ; \n }", "msg_token": "use the domain as the XMPP serviceName"} {"diff": " class PeepholeMinimizeConditions \n return tryMinimizeIf ( node ) ; \n \n case Token . EXPR_RESULT : \n - tryMinimizeCondition ( node . getFirstChild ( ) , true ) ; \n + tryMinimizeCondition ( node . getFirstChild ( ) , false ) ; \n return node ; \n \n case Token . HOOK : \n class PeepholeMinimizeConditions \n COMMENT \n COMMENT \n private Node tryMinimizeNot ( Node n ) { \n + Preconditions . checkArgument ( n . isNot ( ) ) ; \n Node parent = n . getParent ( ) ; \n \n Node notChild = n . getFirstChild ( ) ; \n public class PeepholeMinimizeConditionsTest extends CompilerTestCase { \n STRING0 ) ; \n } \n \n + public void testMinimizeExprResult ( ) { \n + fold ( STRING1 , STRING2 ) ; \n + fold ( STRING3 , STRING4 ) ; \n + fold ( STRING5 , STRING4 ) ; \n + } \n + \n public void testMinimizeDemorgan21 ( ) { \n fold ( STRING6 , \n STRING7 ) ;", "msg_token": "Do not count leading NOT in EXPR_RESULT"} {"diff": " public class EntryProcessorTest extends HazelcastTestSupport { \n } \n \n instance1 . shutdown ( ) ; \n - waitAllForSafeState ( ) ; \n + waitAllForSafeState ( instance2 , instance3 ) ; \n \n IMap < Integer , Integer > map3 = instance3 . getMap ( STRING0 ) ;", "msg_token": "update the usage of waitAllForSafeState"} {"diff": " public class TasksWidget extends AppWidgetProvider { \n if ( ! query . contains ( subtaskJoin ) ) { \n query = subtaskJoin + query ; \n query = query . replaceAll ( STRING0 , STRING1 ) ; \n - query = query + String . format ( STRING2 , \n + query = query + String . format ( STRING3 , \n Task . DELETION_DATE , Task . COMPLETION_DATE , \n - SubtasksMetadata . ORDER , Task . CREATION_DATE ) ; \n + SubtasksMetadata . ORDER , Task . CREATION_DATE , \n + numberOfTasks ) ; \n query = query . replace ( TaskCriteria . isVisible ( ) . toString ( ) , \n Criterion . all . toString ( ) ) ;", "msg_token": "Include the sql limit in the widget when subtasks enabled"} {"diff": " public class GitVcs extends AbstractVcs < CommittedChangeList > { \n private RepositoryChangeListener myIndexChangeListener ; \n private GitCurrentBranchWidget myCurrentBranchWidget ; \n \n - public static GitVcs getInstance ( @ notnull Project project ) { \n - return ( GitVcs ) ProjectLevelVcsManager . getInstance ( project ) . findVcsByName ( NAME ) ; \n + @ nullable \n + public static GitVcs getInstance ( Project project ) { \n + if ( project == null || project . isDisposed ( ) ) { \n + return null ; \n + } \n + return ( GitVcs ) ProjectLevelVcsManager . getInstance ( project ) . findVcsByName ( NAME ) ; \n } \n \n public GitVcs ( @ notnull Project project ,", "msg_token": "returning null in case of already disposed project"} {"diff": " public class LzfDecoder extends ByteToMessageDecoder { \n \n ByteBuf uncompressed = ctx . alloc ( ) . heapBuffer ( originalLength , originalLength ) ; \n final byte [ ] outputArray = uncompressed . array ( ) ; \n - final int outPos = uncompressed . arrayOffset ( ) ; \n + final int outPos = uncompressed . arrayOffset ( ) + uncompressed . writerIndex ( ) ; \n \n boolean success = false ; \n try {", "msg_token": "Consider writerIndex when LzfDecoder writes into a new heap buffer"} {"diff": " public class CheckInDialogFragment extends SherlockDialogFragment { \n updateCheckInButtonState ( ) ; \n return ; \n } else { \n - SINGLE \n - new CheckInTask ( imdbid , message , getActivity ( ) ) . execute ( ) ; \n + SINGLE \n + AndroidUtils . executeAsyncTask ( new CheckInTask ( imdbid , message , \n + getActivity ( ) ) , new Void [ ] { } ) ; \n } \n }", "msg_token": "GetGlue Check In task execs on thread pool"} {"diff": " public final class CFMetaData \n if ( cf_def . isSetMerge_shards_chance ( ) ) { newCFMD . mergeShardsChance ( cf_def . merge_shards_chance ) ; } \n if ( cf_def . isSetRow_cache_provider ( ) ) { newCFMD . rowCacheProvider ( FBUtilities . newCacheProvider ( cf_def . row_cache_provider ) ) ; } \n if ( cf_def . isSetKey_alias ( ) ) { newCFMD . keyAlias ( cf_def . key_alias ) ; } \n + if ( cf_def . isSetKey_validation_class ( ) ) { newCFMD . keyValidator ( DatabaseDescriptor . getComparator ( cf_def . key_validation_class ) ) ; } \n \n return newCFMD . comment ( cf_def . comment ) \n . rowCacheSize ( cf_def . row_cache_size )", "msg_token": "set key validator when creating a keyspace"} {"diff": " public abstract class SpiceServiceListenerNotificationService extends Service { \n return null ; \n } \n \n + public Class < ? extends SpiceService > getSpiceServiceClass ( ) { \n + return spiceServiceClass ; \n + } \n + \n @ suppresswarnings ( { STRING0 , STRING1 } ) \n @ override \n public final void onStart ( final Intent intent , final int startId ) {", "msg_token": "Provide monitored service to subclasses"} {"diff": " public class SourceFormatter { \n String trimmedLine = StringUtil . trimLeading ( line ) ; \n String trimmedPreviousLine = StringUtil . trimLeading ( previousLine ) ; \n \n + if ( ! trimmedLine . equals ( STRING0 ) && line . contains ( STRING0 ) && \n + ! line . contains ( STRING1 ) && ! line . contains ( STRING2 ) ) { \n + \n + line = StringUtil . replace ( line , STRING0 , STRING2 ) ; \n + } \n + \n + if ( line . contains ( STRING3 ) && ! line . contains ( STRING4 ) ) { \n + line = StringUtil . replace ( line , STRING3 , STRING4 ) ; \n + } \n + \n if ( trimmedPreviousLine . equals ( STRING0 ) && Validator . isNotNull ( line ) && \n ! trimmedLine . equals ( STRING5 ) ) {", "msg_token": "SourceFormatter missing spaces"} {"diff": " public class BundleBuildCommand extends SingleFileCommand { \n public void handleFile ( Path file ) throws IOException { \n if ( outFile == null ) { \n String fileName = PathUtils . getBaseName ( file ) ; \n - outFile = file . getParent ( ) . resolve ( fileName ) ; \n + outFile = file . getParent ( ) . resolve ( fileName + STRING0 ) ; \n } \n AssetBundleUtils . build ( file , outFile ) ; \n }", "msg_token": "Fixed missing extension"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AppleBundle extends AbstractBuildRule { \n SINGLE \n SINGLE \n SINGLE \n + stepsBuilder . add ( new RmStep ( outputZipPath , COMMENT true ) ) ; \n stepsBuilder . add ( \n new ZipStep ( \n outputZipPath ,", "msg_token": "Delete output path for AppleBundle before trying to write it"} {"diff": " public class CommittableUtil { \n \n public static void queueReset ( Committable committable ) { \n ourApplication . assertIsDispatchThread ( ) ; \n - if ( CommandProcessor . getInstance ( ) . getCurrentCommand ( ) != null || CommandProcessor . getInstance ( ) . isUndoTransparentActionInProgress ( ) ) { \n - ourResetQueue . add ( committable ) ; \n - } else { \n + ourResetQueue . add ( committable ) ; \n + if ( ! ourResetQueue . contains ( committable ) && CommandProcessor . getInstance ( ) . getCurrentCommand ( ) == null && \n + ! CommandProcessor . getInstance ( ) . isUndoTransparentActionInProgress ( ) ) { \n committable . reset ( ) ; \n + ourResetQueue . remove ( committable ) ; \n } \n }", "msg_token": "stack overflow fix"} {"diff": " class ProxyThread implements Runnable { \n private boolean keepSocketOpen = false ; \n \n private static Object semaphoreSingleton = new Object ( ) ; \n + private static int id = NUMBER0 ; \n \n private static Vector < Thread > proxyThreadList = new Vector < > ( ) ; \n \n class ProxyThread implements Runnable { \n log . warn ( e . getMessage ( ) , e ) ; \n } \n \n - thread = new Thread ( this , STRING0 ) ; SINGLE \n + thread = new Thread ( this , STRING1 + id ++ ) ; SINGLE \n thread . setDaemon ( true ) ; \n thread . setPriority ( Thread . NORM_PRIORITY - NUMBER0 ) ; \n }", "msg_token": "Ensure ProxyThreads have unique names"} {"diff": " final class AndroidSound implements Sound { \n float rightVolume = volume ; \n \n if ( pan < NUMBER0 ) { \n - leftVolume *= ( NUMBER1 - Math . abs ( pan ) ) ; \n - } else if ( pan > NUMBER0 ) { \n rightVolume *= ( NUMBER1 - Math . abs ( pan ) ) ; \n + } else if ( pan > NUMBER0 ) { \n + leftVolume *= ( NUMBER1 - Math . abs ( pan ) ) ; \n } \n \n soundPool . setVolume ( ( int ) soundId , leftVolume , rightVolume ) ;", "msg_token": "fixed AndroidSound reversed panning"} {"diff": " public class ProgressDialog extends JDialog implements IProgress { \n if ( run != null ) { \n run . run ( ) ; \n } \n - isLive = false ; \n } catch ( RuntimeException e ) { \n exception = new InvocationTargetException ( e ) ; \n } finally { \n - SwingUtilities . invokeLater ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - setVisible ( false ) ; \n - } \n - } ) ; \n + isLive = false ; \n } \n + SwingUtilities . invokeLater ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + setVisible ( false ) ; \n + } \n + } ) ; \n } \n \n }", "msg_token": "fix bug in progress dialog"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fix emitter compile error"} {"diff": " public class ApplicationImpl extends ComponentManagerImpl implements Application \n assertCanRunWriteAction ( ) ; \n fireBeforeWriteActionStart ( action ) ; \n \n + LOG . assertTrue ( myActionsLock . isWriteLockAcquired ( Thread . currentThread ( ) ) || ! Thread . holdsLock ( PsiLock . LOCK ) , STRING0 ) ; \n myIsWaitingForWriteAction = true ; \n try { \n myActionsLock . writeLock ( ) . acquire ( ) ;", "msg_token": "do not run write action from within PsiLock"} {"diff": " public class ClusterInfoServiceIT extends ESIntegTestCase { \n } \n for ( DiskUsage usage : mostUsages . values ( ) ) { \n logger . info ( STRING0 , usage ) ; \n - assertThat ( STRING1 , usage . getFreeBytes ( ) , greaterThan ( NUMBER0 L ) ) ; \n + assertThat ( STRING1 , usage . getFreeBytes ( ) , greaterThanOrEqualTo ( NUMBER0 L ) ) ; \n } \n for ( Long size : shardSizes . values ( ) ) { \n logger . info ( STRING2 , size ) ;", "msg_token": "TEST Use greaterThanOrEqualTo for testClusterInfoServiceCollectsInformation"} {"diff": " public class KmlDemoActivity extends BaseDemoActivity { \n try { \n KmlLayer kmlLayer = new KmlLayer ( mMap , R . raw . campus , getApplicationContext ( ) ) ; \n kmlLayer . addLayerToMap ( ) ; \n + moveCameraToKml ( kmlLayer ) ; \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n } catch ( XmlPullParserException e ) {", "msg_token": "Move camera to KML layer from local file in demo"} {"diff": " public class TachyonFile implements Comparable < TachyonFile > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n + public FileOutStream getOutStream ( WriteType writeType ) throws IOException { \n + return getOutStream ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public FileOutStream getOutStream ( ) throws IOException { \n if ( isCompleted ( ) ) { \n throw new IOException ( STRING0 ) ; \n public class TachyonFile implements Comparable < TachyonFile > { \n FileInfo info = getUnCachedFileStatus ( ) ; \n OutStreamOptions . Builder optionsBuilder = new OutStreamOptions . Builder ( mTachyonConf ) ; \n optionsBuilder . setBlockSizeBytes ( info . getBlockSizeBytes ( ) ) ; \n - \n optionsBuilder . setTachyonStorageType ( tachyonStorageType ) ; \n optionsBuilder . setUnderStorageType ( underStorageType ) ; \n return mTFS . getOutStream ( mFileId , optionsBuilder . build ( ) ) ;", "msg_token": "SMALLFIX Add back a method required"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed the style"} {"diff": " public class GroovyCategorySupport { \n } ; \n \n private static void newScope ( ) { \n - System . out . println ( STRING0 + getProperties ( ) ) ; \n List stack = ( List ) local . get ( ) ; \n Map properties = new WeakHashMap ( getProperties ( ) ) ; \n stack . add ( properties ) ; \n - System . out . println ( STRING1 ) ; \n } \n \n private static void endScope ( ) { \n - System . out . println ( STRING2 + getProperties ( ) ) ; \n List stack = ( List ) local . get ( ) ; \n stack . remove ( stack . size ( ) - NUMBER0 ) ; \n - System . out . println ( STRING3 + getProperties ( ) ) ; \n - System . out . println ( STRING4 ) ; \n } \n \n private static Map getProperties ( ) {", "msg_token": "Doh take out some debug information"} {"diff": " public class BroadcasterConfig { \n config . properties ( ) . put ( STRING0 , STRING1 ) ; \n } \n \n - protected BroadcasterConfig broadcasterID ( String name ) { \n + protected BroadcasterConfig broadcasterID ( String broadcasterId ) { \n this . broadcasterId = broadcasterId ; \n initClusterExtension ( ) ; \n return this ;", "msg_token": "Fix trivial typo"} {"diff": " public class PageIndicator extends View { \n if ( mDotType == DotType . MULTIPLE || i == mActiveDot ) { \n state = mExtraState ; \n } \n + SINGLE \n + SINGLE \n + SINGLE \n + d . setCallback ( null ) ; \n d . setState ( state ) ; \n + d . setCallback ( this ) ; \n } \n d . draw ( canvas ) ; \n canvas . translate ( mDotSpacing + d . getIntrinsicWidth ( ) , NUMBER0 ) ;", "msg_token": "Prevent the PageIndicator from invalidating its content over and over again"} {"diff": " public class BeaconConfigFragment extends Fragment implements TextView . OnEditorA \n if ( status != BluetoothGatt . GATT_SUCCESS ) { \n Log . e ( TAG , STRING0 + status ) ; \n } else { \n - String url = ( uriBeacon != null ) ? uriBeacon . getUriString ( ) : STRING1 ; \n + SINGLE \n + String url = STRING1 ; \n + try { \n + url = ( uriBeacon != null ) ? uriBeacon . getUriString ( ) : STRING1 ; \n + } \n + catch ( Exception e ) { \n + } \n Log . d ( TAG , STRING2 + STRING3 + url ) ; \n if ( UrlShortener . isShortUrl ( url ) ) { \n url = UrlShortener . lengthenShortUrl ( url ) ;", "msg_token": "catches beacon config read error"} {"diff": " public class LinearLayout extends ViewGroup { \n return ( mShowDividers & SHOW_DIVIDER_BEGINNING ) != NUMBER0 ; \n } else if ( childIndex == getChildCount ( ) ) { \n return ( mShowDividers & SHOW_DIVIDER_END ) != NUMBER0 ; \n - } else { \n - return ( mShowDividers & SHOW_DIVIDER_MIDDLE ) != NUMBER0 ; \n + } else if ( ( mShowDividers & SHOW_DIVIDER_MIDDLE ) != NUMBER0 ) { \n + boolean hasVisibleViewBefore = false ; \n + for ( int i = childIndex - NUMBER1 ; i >= NUMBER0 ; i -- ) { \n + if ( getChildAt ( i ) . getVisibility ( ) != GONE ) { \n + hasVisibleViewBefore = true ; \n + break ; \n + } \n + } \n + return hasVisibleViewBefore ; \n } \n + return false ; \n } \n \n COMMENT", "msg_token": "Don t draw a middle divider on the first visible view"} {"diff": " public class ContextConfig implements LifecycleListener { \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix comment typo"} {"diff": " public class QNMinimizer implements Minimizer < DiffFunction > , HasEvaluators { \n say ( STRING0 ) ; \n break ; \n default : \n - sayln ( STRING1 ) ; \n - System . exit ( NUMBER0 ) ; \n - break ; \n - \n + throw new IllegalArgumentException ( STRING2 ) ; \n } \n } \n \n newValue = newPoint [ f ] ; \n - System . err . print ( STRING3 + nf . format ( newPoint [ a ] ) ) ; \n + say ( STRING3 ) ; \n + say ( nf . format ( newPoint [ a ] ) ) ; \n say ( STRING4 ) ; \n \n SINGLE", "msg_token": "Throw exception not System exit change a System err print to say"} {"diff": " public class DB { \n COMMENT \n COMMENT \n public void dropDatabase ( ) { \n - database . commands ( ) . drop ( ) ; \n + database . admin ( ) . drop ( ) ; \n } \n }", "msg_token": "Renamed commands in DB java merge fail"} {"diff": " public abstract class AbstractWizard < T extends Step > extends DialogWrapper { \n return myPreviousButton ; \n } \n \n + protected JButton getHelpButton ( ) { \n + return myHelpButton ; \n + } \n + \n public JButton getCancelButton ( ) { \n return myCancelButton ; \n }", "msg_token": "Create AS Flex class dialog cosmetics"} {"diff": " public class IdeEventQueue extends EventQueue { \n } \n \n private IdeEventQueue ( ) { \n - EventQueue systemEventQueue = Toolkit . getDefaultToolkit ( ) . getSystemEventQueue ( ) ; \n - assert ! ( systemEventQueue instanceof IdeEventQueue ) : systemEventQueue ; \n - systemEventQueue . push ( this ) ; \n + final Application application = ApplicationManager . getApplication ( ) ; \n + if ( application == null || ! application . isUnitTestMode ( ) ) { \n + EventQueue systemEventQueue = Toolkit . getDefaultToolkit ( ) . getSystemEventQueue ( ) ; \n + assert ! ( systemEventQueue instanceof IdeEventQueue ) : systemEventQueue ; \n + systemEventQueue . push ( this ) ; \n + } \n addIdleTimeCounterRequest ( ) ; \n \n final KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) ;", "msg_token": "Do not push new event queue in test mode"} {"diff": " public class K9AlarmManager { \n alarmManager . setAndAllowWhileIdle ( type , triggerAtMillis , operation ) ; \n } \n \n - @ targetapi ( Build . VERSION_CODES . KITKAT ) \n - public void setExact ( int type , long triggerAtMillis , PendingIntent operation ) { \n - if ( isDozeSupported ( ) && isDozeWhiteListed ( ) ) { \n - setExactAndAllowWhileIdle ( type , triggerAtMillis , operation ) ; \n - } else { \n - alarmManager . setExact ( type , triggerAtMillis , operation ) ; \n - } \n - } \n - \n - @ targetapi ( Build . VERSION_CODES . M ) \n - public void setExactAndAllowWhileIdle ( int type , long triggerAtMillis , PendingIntent operation ) { \n - alarmManager . setExactAndAllowWhileIdle ( type , triggerAtMillis , operation ) ; \n - } \n - \n - \n public void cancel ( PendingIntent operation ) { \n alarmManager . cancel ( operation ) ; \n }", "msg_token": "Remove unused methods"} {"diff": " public class ScopeViewPane extends AbstractProjectViewPane { \n private final DependencyValidationManager myDependencyValidationManager ; \n private final NamedScopeManager myNamedScopeManager ; \n private final NamedScopesHolder . ScopeListener myScopeListener ; \n - public static final Icon ICON = IconLoader . getIcon ( STRING0 ) ; \n + public static final Icon ICON = IconLoader . getIcon ( STRING1 ) ; \n \n public ScopeViewPane ( final Project project , ProjectView projectView , DependencyValidationManager dependencyValidationManager , NamedScopeManager namedScopeManager ) { \n super ( project ) ;", "msg_token": "change scopes icon"} {"diff": " public class ScopeTreeViewPanel extends JPanel implements JDOMExternalizable , Di \n } \n } , false ) ; \n } \n - else if ( element != null && element . isValid ( ) ) { \n + else if ( element instanceof PsiDirectory && element . isValid ( ) ) { \n queueRefreshScope ( scope ) ; \n } \n }", "msg_token": "do not refresh scope for inner file replacements"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class CommandLineTools { \n \n SINGLE \n if ( xmlMode == StringTools . XmlPrintMode . NORMAL_XML ) { \n - displayTimeStats ( startTime , lt . getSentenceCount ( ) , apiFormat ) ; \n + SentenceTokenizer sentenceTokenizer = lt . getLanguage ( ) . getSentenceTokenizer ( ) ; \n + int sentenceCount = sentenceTokenizer . tokenize ( contents ) . size ( ) ; \n + displayTimeStats ( startTime , sentenceCount , apiFormat ) ; \n } \n return ruleMatches . size ( ) ; \n }", "msg_token": "avoid a deprecation warning"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class TestScopeVoter { \n Collections . < ConfigAttribute > singleton ( new SecurityConfig ( STRING0 ) ) ) ) ; \n } \n \n - @ test ( expected = InsufficientScopeException . class ) \n + @ test ( expected = AccessDeniedException . class ) \n public void testExceptionThrownIfWrongScopesPresent ( ) throws Exception { \n AuthorizationRequest clientAuthentication = new AuthorizationRequest ( STRING1 , Collections . singleton ( STRING2 ) , \n null , null ) ;", "msg_token": "fix bug in test case"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "clarify relationship b t HH and cleanup"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GitRebaseEditor extends DialogWrapper { \n myTableModel . load ( file ) ; \n myCommitsTable . setModel ( myTableModel ) ; \n myCommitsTable . setSelectionMode ( ListSelectionModel . SINGLE_INTERVAL_SELECTION ) ; \n + myCommitsTable . setIntercellSpacing ( JBUI . emptySize ( ) ) ; \n \n final JComboBox editorComboBox = new JComboBox ( ) ; \n for ( Object option : GitRebaseEntry . Action . values ( ) ) {", "msg_token": "remove intercell spacing"} {"diff": " public class Capsule implements Runnable { \n throw new RuntimeException ( STRING0 + jarFile , e ) ; \n } \n \n + initAppId ( ) ; SINGLE \n + \n loadCaplets ( ) ; \n this . wrapper = isEmptyCapsule ( ) ; \n \n public class Capsule implements Runnable { \n } \n \n private void initAppId ( ) { \n + if ( oc . appId != null ) \n + return ; \n final String [ ] nameAndVersion = buildAppId ( ) ; \n if ( nameAndVersion == null ) \n return ; \n public class Capsule implements Runnable { \n SINGLE \n SINGLE \n protected final Capsule loadCaplet ( String caplet , Capsule pred ) { \n - if ( isDependency ( caplet ) ) { \n + if ( isDependency ( caplet ) || caplet . endsWith ( STRING1 ) ) { \n final List < Path > jars = getPath ( caplet ) ; \n if ( jars . size ( ) != NUMBER0 ) \n throw new RuntimeException ( STRING2 + caplet + STRING3 ) ;", "msg_token": "try initAppId before loadCaplets too"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n \n COMMENT \n - public interface LookupService { \n + public interface LookupService < T > { \n \n COMMENT \n COMMENT", "msg_token": "Fix the broken build"} {"diff": " public class PorterDuff { \n COMMENT \n MULTIPLY ( NUMBER0 ) , \n COMMENT \n - SCREEN ( NUMBER1 ) ; \n + SCREEN ( NUMBER1 ) , \n + COMMENT \n + ADD ( NUMBER2 ) , \n + OVERLAY ( NUMBER3 ) ; \n \n Mode ( int nativeInt ) { \n this . nativeInt = nativeInt ;", "msg_token": "Add Overlay mode to the PorterDuff list of supported modes"} {"diff": " public class IssuesDecoratorTest { \n verify ( context ) . saveMeasure ( CoreMetrics . ISSUES , FLOAT0 ) ; \n } \n \n + @ test \n + public void should_do_nothing_when_issuable_is_null ( ) { \n + ResourcePerspectives perspectives = mock ( ResourcePerspectives . class ) ; \n + when ( perspectives . as ( Issuable . class , resource ) ) . thenReturn ( null ) ; \n + IssuesDecorator decorator = new IssuesDecorator ( perspectives , rulefinder ) ; \n + \n + decorator . decorate ( resource , context ) ; \n + \n + verifyZeroInteractions ( context ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add unit test when issuable is null"} {"diff": " public class IntentFilter implements Parcelable { \n throws MalformedMimeTypeException { \n mPriority = NUMBER0 ; \n mActions = new ArrayList < String > ( ) ; \n + addAction ( action ) ; \n addDataType ( dataType ) ; \n }", "msg_token": "Fix IntentFilter constructor to properly process the action parameter"} {"diff": " public class LayerUpdater implements Updater { \n case Step : \n conf . setLearningRateByParam ( variable , lr * Math . pow ( decayRate , Math . floor ( iteration / conf . getLrPolicySteps ( ) ) ) ) ; \n break ; \n + case TorchStep : \n + if ( iteration > NUMBER0 && conf . getLrPolicySteps ( ) % iteration == NUMBER1 ) \n + conf . setLearningRateByParam ( variable , lr * decayRate ) ; \n + break ; \n case Poly : \n conf . setLearningRateByParam ( variable , lr * Math . pow ( ( NUMBER0 - ( ( double ) iteration ) / conf . getNumIterations ( ) ) , conf . getLrPolicyPower ( ) ) ) ; \n break ;", "msg_token": "Add TorchStep missed in merge refactoring"} {"diff": " public class GraphStructure { \n if ( ! node . getEdgesOutTree ( ) . isEmpty ( ) ) { \n for ( edgeIterator . setNode ( node . getEdgesOutTree ( ) ) ; edgeIterator . hasNext ( ) ; ) { \n AbstractEdge edge = edgeIterator . next ( ) ; \n - AbstractNode sourceCopy = newStructure . getNodeAt ( edge . getSource ( ) . getPre ( ) ) ; \n - AbstractNode targetCopy = newStructure . getNodeAt ( edge . getTarget ( ) . getPre ( ) ) ; \n + AbstractNode sourceCopy = newStructure . getNodeAt ( node . getPre ( ) ) ; \n + AbstractNode targetCopy = newStructure . getNodeAt ( ( ( AbstractNode ) edge . getTarget ( ) . getNodeData ( ) . getNode ( view . getViewId ( ) ) ) . getPre ( ) ) ; \n sourceCopy . getEdgesOutTree ( ) . add ( edge ) ; \n targetCopy . getEdgesInTree ( ) . add ( edge ) ; \n addToDictionnary ( edge ) ;", "msg_token": "Fix exception when copying visible view"} {"diff": " public class InjectedLanguageUtil { \n return editor ; \n } \n \n - static PsiFile getTopLevelFile ( @ notnull PsiElement element ) { \n + public static PsiFile getTopLevelFile ( @ notnull PsiElement element ) { \n PsiFile containingFile = element . getContainingFile ( ) ; \n if ( containingFile == null ) return null ; \n Document document = PsiDocumentManager . getInstance ( element . getProject ( ) ) . getCachedDocument ( containingFile ) ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SameDirectoryWeigher extends ProximityWeigher { \n } ) ; \n \n private static PsiDirectory getParentDirectory ( PsiElement element ) { \n + PsiFile file = InjectedLanguageUtil . getTopLevelFile ( element ) ; \n + if ( file != null ) { \n + element = file ; \n + } \n while ( element != null && ! ( element instanceof PsiDirectory ) ) { \n element = element . getParent ( ) ; \n }", "msg_token": "don t load ast when sorting by proximity"} {"diff": " public class UnionQueryRunner < T > implements QueryRunner < T > \n { \n DataSource dataSource = query . getDataSource ( ) ; \n if ( dataSource instanceof UnionDataSource ) { \n - System . out . println ( STRING0 + dataSource . getMetricName ( ) ) ; \n return Sequences . concat ( \n Iterables . transform ( \n ( ( UnionDataSource ) dataSource ) . getDataSources ( ) , \n public class UnionQueryRunner < T > implements QueryRunner < T > \n @ override \n public Sequence < T > apply ( DataSource singleSource ) \n { \n - System . out . println ( STRING1 + singleSource . getNames ( ) ) ; \n return baseRunner . run ( \n query . withDataSource ( singleSource ) \n ) ;", "msg_token": "remove unwanted loggings"} {"diff": " class ActivityUtils { \n return activity ; \n } \n \n + COMMENT \n + public boolean isActivityStackEmpty ( ) { \n + return activityStack . isEmpty ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class Solo { \n { \n return waiter . waitForActivity ( activityClass , timeout ) ; \n } \n - \n - \n + \n + COMMENT \n + \n + public boolean waitForActivityStackToBeEmpty ( int timeout ) \n + { \n + return waiter . waitForCondition ( \n + new Condition ( ) { \n + @ override \n + public boolean isSatisfied ( ) { \n + return activityUtils . isActivityStackEmpty ( ) ; \n + } \n + } , timeout ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add waitForActivityStackToBeEmpty method"} {"diff": " public class OffsetDateTimeField extends DecoratedDateTimeField { \n COMMENT \n COMMENT \n public OffsetDateTimeField ( DateTimeField field , int offset ) { \n - this ( field , field . getType ( ) , offset , Integer . MIN_VALUE , Integer . MAX_VALUE ) ; \n + this ( field , ( field == null ? null : field . getType ( ) ) , offset , Integer . MIN_VALUE , Integer . MAX_VALUE ) ; \n } \n \n COMMENT", "msg_token": "Avoid NPE in constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class LocalHistoryActionsTest extends LocalHistoryUITestCase { \n @ override \n @ nullable \n public Object getData ( String id ) { \n - if ( CommonDataKeys . VIRTUAL_FILE_ARRAY . is ( id ) ) return files ; \n + if ( VcsDataKeys . VIRTUAL_FILE_STREAM . is ( id ) ) return VcsUtil . toStream ( files ) ; \n if ( CommonDataKeys . EDITOR . is ( id ) ) return editor ; \n if ( CommonDataKeys . PROJECT . is ( id ) ) return p ; \n return null ;", "msg_token": "Fixed LocalHistoryActionsTest tests provided correct DataContext"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class TermSession { \n private ColorScheme mColorScheme = BaseTextRenderer . defaultColorScheme ; \n public class TermSession { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n protected void processInput ( byte [ ] data , int offset , int count ) { \n mEmulator . append ( data , offset , count ) ;", "msg_token": "Improve the documentation"} {"diff": " public class RasterMapMenu { \n if ( type == OsmandRasterMapsPlugin . RasterMapType . UNDERLAY ) { \n contextMenuAdapter . addItem ( new ContextMenuItem . ItemBuilder ( ) \n . setTitleId ( R . string . show_polygons , mapActivity ) \n + . hideDivider ( true ) \n . setListener ( l ) \n . setSelected ( hidePolygonsPref . get ( ) ) . createItem ( ) ) ; \n }", "msg_token": "Fixed Underlay Map layout"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class SiteMain { \n . add ( TextTemplateModule . class , conf - > \n conf . setStaticallyCompile ( true ) \n ) \n + . bindInstance ( CompressionConfig . of ( ) . compressResponses ( true ) . minSize ( NUMBER0 ) . blackListMimeTypes ( Collections . emptyList ( ) ) . build ( ) ) \n ) \n ) \n . handlers ( c - > {", "msg_token": "Compress everything on the site"} {"diff": " public class ListView extends AbsListView { \n if ( gainFocus && previouslyFocusedRect != null ) { \n previouslyFocusedRect . offset ( mScrollX , mScrollY ) ; \n \n + final ListAdapter adapter = mAdapter ; \n + final int firstPosition = mFirstPosition ; \n + SINGLE \n + if ( adapter . getCount ( ) < getChildCount ( ) + firstPosition ) { \n + mLayoutMode = LAYOUT_NORMAL ; \n + layoutChildren ( ) ; \n + } \n + \n SINGLE \n SINGLE \n Rect otherRect = mTempRect ; \n int minDistance = Integer . MAX_VALUE ; \n final int childCount = getChildCount ( ) ; \n - final int firstPosition = mFirstPosition ; \n - final ListAdapter adapter = mAdapter ; \n \n for ( int i = NUMBER0 ; i < childCount ; i ++ ) { \n SINGLE", "msg_token": "Force a re layout of children if ListView is out of sync with the"} {"diff": " public class Bundle { \n mPackageName = pkg ; \n } \n \n - String uri = map . getString ( STRING0 ) ; \n - if ( ! uri . startsWith ( STRING1 ) && Small . getBaseUri ( ) != null ) { \n - uri = Small . getBaseUri ( ) + uri ; \n + if ( map . has ( STRING0 ) ) { \n + String uri = map . getString ( STRING0 ) ; \n + if ( ! uri . startsWith ( STRING1 ) && Small . getBaseUri ( ) != null ) { \n + uri = Small . getBaseUri ( ) + uri ; \n + } \n + this . uriString = uri ; \n + this . uri = Uri . parse ( uriString ) ; \n } \n - this . uriString = uri ; \n - this . uri = Uri . parse ( uriString ) ; \n + \n this . rules = new HashMap < String , String > ( ) ; \n SINGLE \n this . rules . put ( STRING2 , STRING2 ) ;", "msg_token": "Fix exception on undefined uri"} {"diff": " public class AtmosphereFramework implements ServletContextProvider { \n } \n } \n \n - protected void initWebSocket ( ) { \n + public void initWebSocket ( ) { \n if ( webSocketProtocolInitialized ) return ; \n if ( webSocketProtocol == null ) { \n try {", "msg_token": "Change the scope"} {"diff": " public class ChangelistTable extends Composite \n table_ . setPageSize ( items . size ( ) ) ; \n dataProvider_ . getList ( ) . clear ( ) ; \n dataProvider_ . getList ( ) . addAll ( items ) ; \n + ColumnSortEvent . fire ( table_ , \n + table_ . getColumnSortList ( ) ) ; \n + \n } \n \n public ArrayList < StatusAndPath > getSelectedItems ( )", "msg_token": "In VCS table apply sort order after setting items"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n public class TestXByteBuffer extends TestCase { \n - @ override \n - protected void setUp ( ) throws Exception { \n - super . setUp ( ) ; \n - } \n - \n + \n public void testEmptyArray ( ) throws Exception { \n SINGLE \n } \n \n - @ override \n - protected void tearDown ( ) throws Exception { \n - super . tearDown ( ) ; \n + public void testSerializationString ( ) throws Exception { \n + String test = STRING0 ; \n + byte [ ] msg = XByteBuffer . serialize ( test ) ; \n + Object obj = XByteBuffer . deserialize ( msg ) ; \n + assertTrue ( obj instanceof String ) ; \n + assertEquals ( test , obj ) ; \n } \n - \n + \n public static void main ( String [ ] args ) throws Exception { \n SINGLE \n XByteBuffer . deserialize ( new byte [ ] { - NUMBER0 , - NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER2 , NUMBER6 , NUMBER7 } ) ;", "msg_token": "Remove ununsed methods"} {"diff": " public class JacksonTest \n assertThat ( mapper . getFactory ( ) ) . isSameAs ( factory ) ; \n } \n \n + @ test \n + public void objectMapperCanHandleNullInsteadOfCustomJsonFactory ( ) { \n + ObjectMapper mapper = Jackson . newObjectMapper ( null ) ; \n + \n + assertThat ( mapper . getFactory ( ) ) . isNotNull ( ) ; \n + } \n + \n }", "msg_token": "Added more tests to ensure that Jackson newObjectMapper can handle null as parameter"} {"diff": " public final class FileDataManager { \n if ( ! mUfs . exists ( parentPath ) ) { \n final int maxRetry = NUMBER0 ; \n int numRetry = NUMBER1 ; \n + SINGLE \n for ( ; numRetry < maxRetry ; numRetry ++ ) { \n if ( mUfs . mkdirs ( parentPath , true ) || mUfs . exists ( parentPath ) ) { \n break ;", "msg_token": "Add a TODO"} {"diff": " public class TezSessionState { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TezSessionState { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ReduceSinkMapJoinProc implements NodeProcessor { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class PlanUtils { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static TableDesc getMapJoinValueTableDesc ( \n List < FieldSchema > fieldSchemas ) { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class CounterStatsAggregatorTez implements StatsAggregator { \n \n private static final Log LOG = LogFactory . getLog ( CounterStatsAggregatorTez . class . getName ( ) ) ;", "msg_token": "Fix some javadoc issues on Tez branch Gunther Hagleitner"} {"diff": " public class Language { \n \n COMMENT \n static public String text ( String text ) { \n - String result = init ( ) . bundle . getString ( text ) ; \n - return ( result == null ) ? text : result ; \n + ResourceBundle bundle = init ( ) . bundle ; \n + \n + try { \n + return bundle . getString ( text ) ; \n + } catch ( MissingResourceException e ) { \n + return text ; \n + } \n }", "msg_token": "Catch MissingResourceException when language key is missing"} {"diff": " public class ReaderRelatedPostsView extends LinearLayout { \n \n private OnRelatedPostClickListener mClickListener ; \n private int mFeaturedImageWidth ; \n - private ReaderRelatedPostList mRelatedPostList ; \n + private final ReaderRelatedPostList mRelatedPostList = new ReaderRelatedPostList ( ) ; \n \n public ReaderRelatedPostsView ( Context context ) { \n super ( context ) ; \n public class ReaderRelatedPostsView extends LinearLayout { \n } \n \n public void showRelatedPosts ( @ nonnull ReaderRelatedPostList posts , String siteName , boolean isGlobal ) { \n - mRelatedPostList = posts ; \n + mRelatedPostList . clear ( ) ; \n + mRelatedPostList . addAll ( posts ) ; \n \n ViewGroup container = ( ViewGroup ) findViewById ( R . id . container_related_posts ) ; \n container . removeAllViews ( ) ; \n public class ReaderRelatedPostsView extends LinearLayout { \n } \n } \n \n + public ReaderRelatedPostList getRelatedPosts ( ) { \n + return mRelatedPostList ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Expose the post list in ReaderRelatedPostsView"} {"diff": " public class SignatureToolTipManager \n if ( coordinates_ == null && ! uiPrefs_ . showFunctionTooltipOnIdle ( ) . getGlobalValue ( ) ) \n return ; \n \n + SINGLE \n + if ( ! isMouseDrivenEvent ( ) && toolTip_ . isShowing ( ) ) \n + return ; \n + \n resolveActiveFunctionAndDisplayToolTip ( ) ; \n } \n } ;", "msg_token": "avoid re positioning sigtip if already showing after completion insertion"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class SavedCookieTest extends TestCase { \n \n public class SavedCookieTest extends TestCase { \n assertEquals ( cookie . getVersion ( ) , other . getVersion ( ) ) ; \n } \n \n + public void testSerializable ( ) throws Exception { \n + assertTrue ( savedCookie instanceof Serializable ) ; \n + } \n }", "msg_token": "Added Serializable check just to be sure"} {"diff": " public class IMapDataStructureAdapterTest extends HazelcastTestSupport { \n public void testSet ( ) { \n adapter . set ( NUMBER0 , STRING0 ) ; \n \n - assertEquals ( STRING0 , map . get ( NUMBER0 ) ) ; } \n + assertEquals ( STRING0 , map . get ( NUMBER0 ) ) ; \n + } \n \n @ test \n public void testPut ( ) {", "msg_token": "Fixed formatting of IMapDataStructureAdapterTest"} {"diff": " public class MainActivity extends BaseActivity implements MainPhoneFragment . Cont \n \n private void verifyGooglePlayServicesStatus ( ) { \n int deviceGooglePlayServicesState = GooglePlayServicesUtil . isGooglePlayServicesAvailable ( getApplicationContext ( ) ) ; \n - if ( deviceGooglePlayServicesState == ConnectionResult . SERVICE_MISSING || \n - deviceGooglePlayServicesState == ConnectionResult . SERVICE_VERSION_UPDATE_REQUIRED || \n - deviceGooglePlayServicesState == ConnectionResult . SERVICE_DISABLED ) { \n + if ( deviceGooglePlayServicesState == ConnectionResult . SERVICE_VERSION_UPDATE_REQUIRED ) { \n GooglePlayServicesUtil . getErrorDialog ( deviceGooglePlayServicesState , \n this , \n REQUEST_CODE_GOOGLE_PLAY_SERVICES_DIALOG )", "msg_token": "Update play services verification dialog check"} {"diff": " public class ResourceInjectionAnnotationParsingProcessor implements DeploymentUn \n } \n } \n \n + SINGLE \n + final boolean optionalEnvEntry = isEnvEntryType && this . isEmpty ( lookup ) ; \n SINGLE \n - final InjectionSource injectionSource = new LookupInjectionSource ( localContextName , isEnvEntryType ) ; \n + final InjectionSource injectionSource = new LookupInjectionSource ( localContextName , optionalEnvEntry ) ; \n final ResourceInjectionConfiguration injectionConfiguration = targetDescription != null ? \n new ResourceInjectionConfiguration ( targetDescription , injectionSource ) : null ; \n \n SINGLE \n SINGLE \n final BindingConfiguration bindingConfiguration ; \n - if ( isEnvEntryType ) { \n + if ( optionalEnvEntry ) { \n bindingConfiguration = null ; \n } else { \n bindingConfiguration = new BindingConfiguration ( localContextName , valueSource ) ;", "msg_token": "Fix Resource env entry processing with a lookup value"} {"diff": " public class AdHocChatRoomList \n SINGLE \n if ( serRefs == null ) \n return ; \n - logger . setLevelDebug ( ) ; \n + \n for ( ServiceReference serRef : serRefs ) \n { \n ProtocolProviderService protocolProvider \n public class AdHocChatRoomMsnImpl \n COMMENT \n public void sendMessage ( Message message ) throws OperationFailedException \n { \n - logger . setLevelInfo ( ) ; \n logger . info ( STRING0 + this . switchboard ) ; \n this . switchboard . sendText ( message . getContent ( ) ) ; \n \n public class OperationSetAdHocMultiUserChatMsnImpl \n } \n else \n { \n - logger . setLevelDebug ( ) ; \n logger . debug ( STRING1 ) ; \n } \n } \n public class AdHocChatRoomYahooImpl \n } \n catch ( Exception e ) \n { \n - logger . setLevelDebug ( ) ; \n logger . debug ( STRING2 \n + yahooConference . getName ( ) + e ) ; \n }", "msg_token": "Removes explicit setting of Logger levels in ad hoc chat related code"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OfflineMessageStrategy extends BasicModule { \n JiveGlobals . setProperty ( STRING0 , type . toString ( ) ) ; \n } \n \n - public void storeOffline ( Message message ) throws UnauthorizedException , UserNotFoundException { \n + public void storeOffline ( Message message ) { \n if ( message != null ) { \n Session senderSession = sessionManager . getSession ( message . getFrom ( ) ) ; \n if ( senderSession == null ) {", "msg_token": "Removed unused thrown exceptions"} {"diff": " public class MergePolicyModule extends AbstractModule { \n \n @ override protected void configure ( ) { \n bind ( MergePolicyProvider . class ) \n - . to ( settings . getAsClass ( STRING0 , TieredMergePolicyProvider . class ) ) \n + . to ( settings . getAsClass ( STRING0 , TieredMergePolicyProvider . class , STRING1 , STRING2 ) ) \n . asEagerSingleton ( ) ; \n } \n } \n public class MergeSchedulerModule extends AbstractModule { \n \n @ override protected void configure ( ) { \n bind ( MergeSchedulerProvider . class ) \n - . to ( settings . getAsClass ( TYPE , ConcurrentMergeSchedulerProvider . class ) ) \n + . to ( settings . getAsClass ( TYPE , ConcurrentMergeSchedulerProvider . class , STRING3 , STRING4 ) ) \n . asEagerSingleton ( ) ; \n } \n }", "msg_token": "simplify policy and scheduler settings"} {"diff": " public class BTreeMap < K , V > \n LeafNode l = ( LeafNode ) n ; \n SINGLE \n while ( l . keysLen ( keySerializer ) == NUMBER0 ) { \n - if ( l . next == NUMBER1 ) return null ; \n + if ( l . next == NUMBER1 ) \n + throw new NoSuchElementException ( ) ; \n SINGLE \n l = ( LeafNode ) engine . get ( l . next , nodeSerializer ) ; \n }", "msg_token": "make firstKey more effective do not load values if not needed"} {"diff": " public class MemoryIndexStorage < Key , Value > implements IndexStorage < Key , Value > \n \n void clearCaches ( ) { \n if ( myMap . size ( ) == NUMBER0 ) return ; \n - String message = STRING0 + ( myIndexId != null ? myIndexId : this ) + STRING1 + myMap . size ( ) ; \n - if ( DebugAssertions . DEBUG ) FileBasedIndexImpl . LOG . info ( message ) ; \n + \n + if ( DebugAssertions . DEBUG ) { \n + String message = STRING0 + ( myIndexId != null ? myIndexId : this ) + STRING1 + myMap . size ( ) ; \n + FileBasedIndexImpl . LOG . info ( message ) ; \n + } \n \n for ( ChangeTrackingValueContainer < Value > v : myMap . values ( ) ) { \n v . dropMergedData ( ) ;", "msg_token": "create message only when doing debug"} {"diff": " static class FnExpr implements Expr { \n for ( ISeq s = RT . keys ( closes ) ; s != null ; s = s . rest ( ) , ++ a ) \n { \n LocalBinding lb = ( LocalBinding ) s . first ( ) ; \n + ctorgen . loadThis ( ) ; \n ctorgen . visitVarInsn ( OBJECT_TYPE . getOpcode ( Opcodes . ILOAD ) , a ) ; \n ctorgen . putField ( fntype , lb . name , OBJECT_TYPE ) ; \n } \n static class FnExpr implements Expr { \n \n private void emitLocal ( GeneratorAdapter gen , LocalBinding lb ) { \n if ( closes . contains ( lb ) ) \n + { \n + gen . loadThis ( ) ; \n gen . getField ( fntype , lb . name , OBJECT_TYPE ) ; \n + } \n else \n gen . visitVarInsn ( OBJECT_TYPE . getOpcode ( Opcodes . ILOAD ) , lb . idx ) ; \n }", "msg_token": "fixed bug in closed over variable access"} {"diff": " public abstract class AST < A extends AST < A , L , N > , L extends LombokNode < A , L , N > , \n this . imports = Collections . unmodifiableCollection ( new ArrayList < String > ( imports ) ) ; \n } \n \n - protected void setChanged ( ) { \n + public void setChanged ( ) { \n this . changed = true ; \n } \n \n public class HandleVal extends JavacASTAdapter { \n SINGLE \n } \n replacement = JavacResolution . typeToJCTree ( type , localNode . getTreeMaker ( ) , localNode . getAst ( ) ) ; \n - if ( replacement != null ) local . vartype = replacement ; \n + if ( replacement != null ) { \n + local . vartype = replacement ; \n + localNode . getAst ( ) . setChanged ( ) ; \n + } \n else local . vartype = oldVarType ; \n } catch ( JavacResolution . TypeNotConvertibleException e ) { \n localNode . addError ( STRING0 + e . getMessage ( ) ) ;", "msg_token": "Delombok on files with only val in them without force didn t do anything"} {"diff": " public class PyReferenceImpl implements PsiReferenceEx , PsiPolyVariantReference \n } \n \n SINGLE \n + @ suppresswarnings ( STRING0 ) \n private static boolean USE_CACHE = true ; \n \n COMMENT", "msg_token": "Suppress warning for USE_CACHE in PyReferenceImpl"} {"diff": " public class TempClassLoader extends ConcurrentClassLoader { \n private final ClassLoader delegate ; \n private static final String MANIFEST_MF = STRING0 + File . separatorChar + STRING1 ; \n \n + static { \n + try { \n + ClassLoader . registerAsParallelCapable ( ) ; \n + } catch ( Throwable ignored ) { } \n + } \n + \n TempClassLoader ( final ClassLoader delegate ) { \n super ( null ) ; \n this . delegate = delegate ;", "msg_token": "Prevent possible deadlocks relating to intermixing of parallel capable and non lockless class loaders"} {"diff": " public class HelpManagerImpl extends HelpManager { \n \n if ( broker == null ) { \n ApplicationInfoEx info = ApplicationInfoEx . getInstanceEx ( ) ; \n - String productVersion = info . getMajorVersion ( ) + STRING0 + info . getMinorVersion ( ) ; \n + String minorVersion = info . getMinorVersion ( ) ; \n + int dot = minorVersion . indexOf ( STRING1 ) ; \n + if ( dot != - NUMBER0 ) { \n + minorVersion = minorVersion . substring ( NUMBER1 , dot ) ; \n + } \n + String productVersion = info . getMajorVersion ( ) + STRING0 + minorVersion ; \n String productCode = info . getPackageCode ( ) ; \n \n String url = info . getWebHelpUrl ( ) + STRING2 + productVersion + STRING3 + id ;", "msg_token": "use only major minor version to build help url"} {"diff": " public final class UpdateChecker { \n URL requestUrl = new URL ( url ) ; \n if ( ! StandardFileSystems . FILE_PROTOCOL . equals ( requestUrl . getProtocol ( ) ) ) { \n HttpConfigurable . getInstance ( ) . prepareURL ( url ) ; \n - requestUrl = new URL ( url + STRING0 + ApplicationInfo . getInstance ( ) . getBuild ( ) . asString ( ) ) ; \n + requestUrl = new URL ( url + ( url . contains ( STRING1 ) ? STRING2 : STRING1 ) + STRING3 + ApplicationInfo . getInstance ( ) . getBuild ( ) . asString ( ) ) ; \n } \n inputStreams [ NUMBER0 ] = requestUrl . openStream ( ) ; \n }", "msg_token": "accept repository urls with parameters"} {"diff": " public class ContactsFragment extends BaseContactFragment { \n \n @ override \n public void onItemClicked ( Contact contact ) { \n - ( ( ActorMainActivity ) getActivity ( ) ) . onContactClicked ( contact ) ; \n - \n + getActivity ( ) . startActivity ( Intents . openPrivateDialog ( contact . getUid ( ) , true , getActivity ( ) ) ) ; \n } \n \n @ override \n public class SmileProcessor { \n } \n \n public static boolean containsEmoji ( CharSequence s ) { \n + if ( s == null ) { \n + return false ; \n + } \n long prev = NUMBER0 ; \n long prevLong = NUMBER0 ; \n int prevLongCount = NUMBER0 ;", "msg_token": "workaround smiles crash with translations null bug"} {"diff": " public class LibraryLoadTest extends TestCase { \n dst . deleteOnExit ( ) ; \n copy ( src , dst ) ; \n NativeLibrary . addSearchPath ( UNICODE , tmp ) ; \n - NativeLibrary . getInstance ( UNICODE ) ; \n + NativeLibrary nl = NativeLibrary . getInstance ( UNICODE ) ; \n + nl . dispose ( ) ; \n } \n \n public void testHandleObjectMethods ( ) {", "msg_token": "ensure temp test unicode named library deleted"} {"diff": " public class ChatWindowManager \n } \n \n if ( chatWindow . isVisible ( ) ) \n - { \n - if ( ConfigurationManager . isAutoPopupNewMessage ( ) || setSelected ) \n + { \n + if ( ConfigurationManager . isAutoPopupNewMessage ( ) ) \n { \n - if ( chatWindow . getState ( ) == JFrame . ICONIFIED ) \n + if ( chatWindow . getState ( ) == JFrame . ICONIFIED && setSelected ) \n chatWindow . setState ( JFrame . NORMAL ) ; \n \n chatWindow . toFront ( ) ;", "msg_token": "don t bring window to front if it s minimized"} {"diff": " abstract class AbstractIndentingBackspaceHandler extends BackspaceHandlerDelegat \n @ override \n public void beforeCharDeleted ( char c , PsiFile file , Editor editor ) { \n myEnabled = false ; \n - if ( ! StringUtil . isWhiteSpace ( c ) ) { \n + if ( editor . isColumnMode ( ) || ! StringUtil . isWhiteSpace ( c ) ) { \n return ; \n } \n SmartBackspaceMode mode = getBackspaceMode ( file . getLanguage ( ) ) ;", "msg_token": "disable smart backspace functionality in column selection mode the latter should have more priority in defining backspace behaviour"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n \n public class TabbedShowHistoryAction extends AbstractVcsAction { \n public class TabbedShowHistoryAction extends AbstractVcsAction { \n \n @ notnull \n private static Pair < FilePath , VirtualFile > getPathAndParentFile ( @ notnull VcsContext context ) { \n - VirtualFile [ ] files = context . getSelectedFiles ( ) ; \n - if ( files . length != NUMBER0 ) { \n - return files . length == NUMBER1 ? Pair . create ( VcsUtil . getFilePath ( files [ NUMBER0 ] ) , files [ NUMBER0 ] ) : Pair . empty ( ) ; \n + if ( context . getSelectedFilesStream ( ) . findAny ( ) . isPresent ( ) ) { \n + VirtualFile file = getIfSingle ( context . getSelectedFilesStream ( ) ) ; \n + return file != null ? Pair . create ( VcsUtil . getFilePath ( file ) , file ) : Pair . empty ( ) ; \n } \n \n File [ ] ioFiles = context . getSelectedIOFiles ( ) ;", "msg_token": "Optimized TabbedShowHistoryAction update"} {"diff": " public class CopyReferenceAction extends AnAction { \n DataContext dataContext = e . getDataContext ( ) ; \n boolean enabled = isEnabled ( dataContext ) ; \n e . getPresentation ( ) . setEnabled ( enabled ) ; \n + if ( e . getPlace ( ) . equals ( ActionPlaces . EDITOR_POPUP ) ) { \n + e . getPresentation ( ) . setVisible ( enabled ) ; \n + } \n + else { \n + e . getPresentation ( ) . setVisible ( true ) ; \n + } \n } \n \n private static boolean isEnabled ( final DataContext dataContext ) {", "msg_token": "hide disabled actions in context menu"} {"diff": " public class VimEmulationConfigurable implements Configurable { \n private static final class VimShortcutConflictsTable extends StripeTable { \n public VimShortcutConflictsTable ( @ notnull Model model ) { \n super ( model ) ; \n - getTableColumn ( Column . KEYSTROKE ) . setPreferredWidth ( NUMBER0 ) ; \n - getTableColumn ( Column . IDE_ACTION ) . setPreferredWidth ( NUMBER1 ) ; \n + getTableColumn ( Column . KEYSTROKE ) . setPreferredWidth ( NUMBER2 ) ; \n + getTableColumn ( Column . IDE_ACTION ) . setPreferredWidth ( NUMBER3 ) ; \n final TableColumn ownerColumn = getTableColumn ( Column . OWNER ) ; \n final ComboBoxTableRenderer < ShortcutOwner > renderer = new ShortcutOwnerRenderer ( ) ; \n - ownerColumn . setPreferredWidth ( NUMBER0 ) ; \n + ownerColumn . setPreferredWidth ( NUMBER4 ) ; \n ownerColumn . setCellRenderer ( renderer ) ; \n ownerColumn . setCellEditor ( renderer ) ; \n }", "msg_token": "Changed table column sizes"} {"diff": " import NAMESPACE ; \n public class Routing implements Action < Chain > { \n \n public void execute ( Chain chain ) { \n - chain . add ( Handlers . get ( new Handler ( ) { \n + chain . add ( Handlers . get ( STRING0 , new Handler ( ) { \n public void handle ( Exchange exchange ) { \n exchange . getResponse ( ) . send ( exchange . getRequest ( ) . getUri ( ) ) ; \n }", "msg_token": "Put the handler under a URL to exercise the mapping code"} {"diff": " public class IsolatedContext extends ContextWrapper { \n } \n \n @ override \n + public void unregisterReceiver ( BroadcastReceiver receiver ) { \n + SINGLE \n + } \n + \n + @ override \n public void sendBroadcast ( Intent intent ) { \n mBroadcastIntents . add ( intent ) ; \n }", "msg_token": "Added noop unregisterReceiver to complement existing noop registerReceiver"} {"diff": " class NoBodyOutputStream extends ServletOutputStream { \n lStrings . getString ( STRING0 ) ) ; \n } \n \n - if ( offset < NUMBER0 || len < NUMBER0 || offset + len < buf . length ) { \n + if ( offset < NUMBER0 || len < NUMBER0 || offset + len > buf . length ) { \n String msg = lStrings . getString ( STRING1 ) ; \n Object [ ] msgArgs = new Object [ NUMBER1 ] ; \n msgArgs [ NUMBER0 ] = Integer . valueOf ( offset ) ; \n msgArgs [ NUMBER2 ] = Integer . valueOf ( len ) ; \n - msgArgs [ NUMBER3 ] = Integer . valueOf ( offset + len ) ; \n + msgArgs [ NUMBER3 ] = Integer . valueOf ( buf . length ) ; \n msg = MessageFormat . format ( msg , msgArgs ) ; \n throw new IndexOutOfBoundsException ( msg ) ; \n }", "msg_token": "Fix my errors"} {"diff": " public class XMLRPCUtils { \n return url ; \n } \n } catch ( XMLRPCUtilsException e ) { \n + if ( e . kind == XMLRPCUtilsException . Kind . ERRONEOUS_SSL_CERTIFICATE || \n + e . kind == XMLRPCUtilsException . Kind . HTTP_AUTH_REQUIRED || \n + e . kind == XMLRPCUtilsException . Kind . MISSING_XMLRPC_METHOD ) { \n + throw e ; \n + } \n SINGLE \n continue ; \n } catch ( RuntimeException re ) {", "msg_token": "Do not eat those exceptions that require user interaction during the discovery phase"} {"diff": " public class BuildTargetTypeCoercer extends LeafTypeCoercer < BuildTarget > { \n Object object ) \n throws CoerceFailedException { \n if ( ! ( object instanceof String ) ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + throw CoerceFailedException . simple ( object , getOutputClass ( ) ) ; \n } \n String param = ( String ) object ;", "msg_token": "Throw correct exception when BuildTargetTypeCoercer encounters non string"} {"diff": " public class RunContentManagerImpl implements RunContentManager , Disposable { \n return ; \n } \n \n - final ToolWindow toolWindow = toolWindowManager . registerToolWindow ( toolWindowId , true , ToolWindowAnchor . BOTTOM , this ) ; \n + final ToolWindow toolWindow = toolWindowManager . registerToolWindow ( toolWindowId , true , ToolWindowAnchor . BOTTOM , this , true ) ; \n \n final ContentManager contentManager = toolWindow . getContentManager ( ) ; \n class MyDataProvider implements DataProvider {", "msg_token": "run toolwindow dumb mode"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SslHandler extends FrameDecoder { \n this . outAppBuf = outAppBuf ; \n } \n } \n - \n - private static final class EncryptedMessageEvent extends DownstreamMessageEvent { \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public EncryptedMessageEvent ( Channel channel , ChannelFuture future , \n - Object message , SocketAddress remoteAddress ) { \n - super ( channel , future , message , remoteAddress ) ; \n - } \n - \n - } \n }", "msg_token": "Removed unused code block"} {"diff": " public class AbstractEnglishSpellerRuleTest { \n assertFirstMatch ( STRING0 , STRING1 ) ; \n assertFirstMatch ( STRING2 , STRING3 , STRING4 ) ; \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n \n SINGLE", "msg_token": "add comment to TODO"} {"diff": " public class DrawHandler extends Handler { \n \n private void quitUpdateThread ( ) { \n if ( mThread != null ) { \n + mThread . quit ( ) ; \n synchronized ( drawTask ) { \n drawTask . notifyAll ( ) ; \n } \n - mThread . quit ( ) ; \n try { \n + mThread . interrupt ( ) ; \n mThread . join ( ) ; \n } catch ( InterruptedException e ) { \n e . printStackTrace ( ) ;", "msg_token": "fix an ANR caused by mThread join"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class GeneralCommands { \n } \n \n @ command ( \n - aliases = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 } , \n + aliases = { STRING0 , STRING1 , STRING2 , STRING3 } , \n usage = STRING5 , \n flags = STRING6 , \n desc = STRING7 ,", "msg_token": "Remove search as an alias of searchitem"} {"diff": " public class SQLiteDatabase extends SQLiteClosable { \n sBlockSize = new StatFs ( STRING0 ) . getBlockSize ( ) ; \n } \n sqliteDatabase . setPageSize ( sBlockSize ) ; \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( ! path . equalsIgnoreCase ( MEMORY_DB_PATH ) ) { \n - sqliteDatabase . enableWriteAheadLogging ( ) ; \n - } \n - SINGLE \n + sqliteDatabase . setJournalMode ( path , STRING1 ) ; \n \n SINGLE \n synchronized ( mActiveDatabases ) {", "msg_token": "set default mode of WAL to be off"} {"diff": " public abstract class SkyFunctionException extends Exception { \n \n COMMENT \n public enum Transience { \n - SINGLE \n - SINGLE \n - SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n TRANSIENT , \n \n - SINGLE \n - SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n PERSISTENT ; \n } \n \n public abstract class SkyFunctionException extends Exception { \n public SkyFunctionException ( Exception cause , Transience transience ) { \n this ( cause , transience , null ) ; \n } \n - \n + \n COMMENT \n public SkyFunctionException ( Exception cause , SkyKey childKey ) { \n this ( cause , Transience . PERSISTENT , childKey ) ;", "msg_token": "Fix style issue convert comment to Javadoc format"} {"diff": " public class SplitManager \n expectedType = SchemaField . Type . LONG ; \n } \n else if ( literal instanceof StringLiteral ) { \n - value = ( ( StringLiteral ) literal ) . getSlice ( ) ; \n + value = ( ( StringLiteral ) literal ) . getValue ( ) ; \n expectedType = SchemaField . Type . STRING ; \n } \n else {", "msg_token": "Fix issue when partition keys are strings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ retention ( RetentionPolicy . RUNTIME ) \n @ target ( ElementType . METHOD ) \n @ incubating", "msg_token": "add autotested sample usage to BinaryTasks javadoc"} {"diff": " public interface ProjectsServerOperations extends PrefsServerOperations , \n \n void setProjectSharedUsers ( JsArrayString users , \n ServerRequestCallback < Void > callback ) ; \n + \n + void getAllServerUsers ( ServerRequestCallback < JsArrayString > callback ) ; \n } \n public class RemoteServer implements Server \n sendRequest ( RPC_SCOPE , STRING0 , params , callback ) ; \n } \n \n + @ override \n + public void getAllServerUsers ( ServerRequestCallback < JsArrayString > callback ) \n + { \n + sendRequest ( RPC_SCOPE , STRING1 , callback ) ; \n + } \n + \n private String clientId_ ; \n private double clientVersion_ = NUMBER0 ; \n private boolean listeningForEvents_ ;", "msg_token": "add method to get all server users"} {"diff": " public class InjectViewTest { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 , \n + STRING4 , \n STRING5 , \n - STRING6 , \n - STRING7 , \n STRING6 \n ) ) ; \n \n - JavaFileObject expectedSource = JavaFileObjects . forSourceString ( STRING8 , \n + JavaFileObject expectedSource = JavaFileObjects . forSourceString ( STRING9 , \n Joiner . on ( STRING10 ) . join ( \n STRING11 , \n STRING12 , \n STRING13 , \n - STRING14 , \n - STRING15 , \n + STRING16 , \n + STRING17 , \n STRING18 , \n STRING19 , \n STRING20 , \n STRING21 , \n - STRING22 , \n + STRING23 , \n STRING24 , \n STRING21 , \n STRING6", "msg_token": "Remove useless subclass"} {"diff": " public class JUnitTestClassExecuter { \n ) ) ; \n } \n \n + Request request = Request . aClass ( testClass ) ; \n + Runner runner = request . getRunner ( ) ; \n + \n if ( ! options . getIncludedTests ( ) . isEmpty ( ) ) { \n TestSelectionMatcher matcher = new TestSelectionMatcher ( options . getIncludedTests ( ) ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( ! matcher . matchesTest ( testClassName , null ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( runner . getDescription ( ) . isSuite ( ) && ! matcher . matchesTest ( testClassName , null ) ) { \n filters . add ( new MethodNameFilter ( matcher ) ) ; \n } \n } \n \n - Request request = Request . aClass ( testClass ) ; \n - Runner runner = request . getRunner ( ) ; \n if ( runner instanceof Filterable ) { \n Filterable filterable = ( Filterable ) runner ; \n for ( Filter filter : filters ) {", "msg_token": "Add suite check to make purpose of other check clearer"} {"diff": " public abstract class PreferenceActivity extends ListActivity implements \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public List < Header > getHeaders ( ) { \n + return mHeaders ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a private method to retrieve the header list from PreferenceActivity"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public abstract class SdkType { \n @ nullable \n public abstract String getRtLibraryPath ( Sdk sdk ) ; \n \n + @ suppresswarnings ( { STRING0 } ) \n + @ nullable \n + public Sdk getEncapsulatedSdk ( Sdk sdk ) { \n + return null ; \n + } \n + \n public abstract void saveAdditionalData ( SdkAdditionalData additionalData , Element additional ) ; \n \n public abstract SdkAdditionalData loadAdditionalData ( Element additional ) ;", "msg_token": "encapsulated sdk api"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add license info"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ChunkedOutputTest \n \n out . setTargetChannel ( ch ) ; \n } \n + \n + @ after \n + public void teardown ( ) \n + { \n + out . close ( ) ; \n + } \n + \n } \n public class ConcurrentAccessIT \n { \n creaeteAndRollback ( client ) ; \n } \n + \n return null ; \n }", "msg_token": "Solve annoying leak warning from test code"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class ActionBar { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix broken java doc"} {"diff": " public final class FreeAndDeleteIntegrationTest { \n try { \n SINGLE \n mFileSystem . getStatus ( filePath ) ; \n - Assert . fail ( ) ; \n + Assert . fail ( String . format ( STRING0 , filePath ) ) ; \n } catch ( FileDoesNotExistException e ) { \n SINGLE \n }", "msg_token": "add error message"} {"diff": " public class Preferences { \n top += d . height ; SINGLE \n \n label = new JLabel ( preferencesFile . getAbsolutePath ( ) ) ; \n + final JLabel clickable = label ; \n + label . addMouseListener ( new MouseAdapter ( ) { \n + public void mousePressed ( MouseEvent e ) { \n + Base . openFolder ( Base . getSettingsFolder ( ) ) ; \n + } \n + \n + public void mouseEntered ( MouseEvent e ) { \n + clickable . setForeground ( new Color ( NUMBER0 , NUMBER0 , NUMBER1 ) ) ; \n + } \n + \n + public void mouseExited ( MouseEvent e ) { \n + clickable . setForeground ( Color . BLACK ) ; \n + } \n + } ) ; \n pain . add ( label ) ; \n d = label . getPreferredSize ( ) ; \n label . setBounds ( left , top , d . width , d . height ) ;", "msg_token": "add clickable line for prefs location"} {"diff": " public abstract class RealmBase \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class RealmBase \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typos in javadoc"} {"diff": " public final class Shader extends GLObject implements Savable { \n } \n \n public void deleteObject ( Renderer r ) { \n - r . deleteShaderSource ( this ) ; \n + r . deleteShaderSource ( ShaderSource . this ) ; \n } \n \n public GLObject createDestructableClone ( ) { \n - return new ShaderSource ( this ) ; \n + return new ShaderSource ( ShaderSource . this ) ; \n } \n } \n \n public final class Shader extends GLObject implements Savable { \n public void resetObject ( ) { \n this . id = - NUMBER0 ; \n this . usable = false ; \n + \n + for ( ShaderSource source : shaderList ) { \n + source . resetObject ( ) ; \n + } \n + \n setUpdateNeeded ( ) ; \n - SINGLE \n - SINGLE \n } \n \n @ override", "msg_token": "Fix crash on context restart"} {"diff": " public class AppLagartoServletFilter extends SimpleLagartoServletFilter { \n } ; \n } \n \n + @ override \n + protected boolean acceptActionPath ( HttpServletRequest request , String actionPath ) { \n + SINGLE \n + if ( actionPath . equals ( bundlesManager . getStaplerServletPath ( ) ) ) { \n + return false ; \n + } \n + return super . acceptActionPath ( request , actionPath ) ; \n + } \n }", "msg_token": "skip htmlstapler path from lagarto parser"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ActivityManager { \n + public class ActivityManager implements OnUnloadListener { \n \n private static final String EXTRA_TASK_INDEX = STRING0 ; \n \n public class ActivityManager { \n taskIndexes . put ( activity , index ) ; \n } \n \n + @ override \n + public void onUnload ( ) { \n + clearStack ( true ) ; \n + } \n + \n }", "msg_token": "Force close all activities before kill the app"} {"diff": " public final class Constants { \n } \n \n public static final class Types { \n - public static final Type newsType = new TypeToken < DailyNews > ( ) { \n - \n - } . getType ( ) ; \n - \n public static final Type newsListType = new TypeToken < List < DailyNews > > ( ) { \n \n } . getType ( ) ;", "msg_token": "Remove unused constants"} {"diff": " public class JavaPsiImplementationHelperImpl extends JavaPsiImplementationHelper \n if ( anchor != null && anchor != aClass ) { \n anchor = anchor . getNextSibling ( ) ; \n while ( anchor instanceof PsiJavaToken && ( anchor . getText ( ) . equals ( STRING0 ) || anchor . getText ( ) . equals ( STRING1 ) ) ) { \n + final boolean afterComma = anchor . getText ( ) . equals ( STRING0 ) ; \n anchor = anchor . getNextSibling ( ) ; \n + if ( afterComma ) { \n + newAnchor = skipWhitespaces ( aClass , anchor ) ; \n + if ( newAnchor != null ) return newAnchor ; \n + } \n } \n if ( anchor != null ) { \n - newAnchor = skipWhitespaces ( aClass , anchor ) ; \n - return newAnchor != null ? newAnchor : anchor ; \n + return anchor ; \n } \n }", "msg_token": "skip spaces after incomplete members only"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n public class ContainerInitializerAnnotationHandler extends AbstractHandler \n { \n final ContainerInitializer _initializer ; \n public class ContainerInitializerAnnotationHandler extends AbstractHandler \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void handle ( ClassInfo info , String annotationName ) \n { \n public class ContainerInitializerAnnotationHandler extends AbstractHandler \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void handle ( FieldInfo info , String annotationName ) \n { \n public class ContainerInitializerAnnotationHandler extends AbstractHandler \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void handle ( MethodInfo info , String annotationName ) \n {", "msg_token": "Fixing javadoc visibility"} {"diff": " public interface DocDisplay extends HasValueChangeHandlers < Void > , \n void splitIntoLines ( ) ; \n \n Position screenCoordinatesToDocumentPosition ( int pageX , int pageY ) ; \n + \n + void forceImmediateRender ( ) ; \n } \n public class TextEditingTarget implements \n public void execute ( Integer arg ) { \n docDisplay . syncDiagnosticsPrefs ( ) ; \n } } ) ) ; \n + releaseOnDismiss . add ( prefs . showInlineToolbarForRCodeChunks ( ) . bind ( \n + new CommandWithArg < Boolean > ( ) { \n + public void execute ( Boolean arg ) { \n + docDisplay . forceImmediateRender ( ) ; \n + } } ) ) ; \n \n }", "msg_token": "reflect code chunk toolbar option immediately"} {"diff": " package NAMESPACE ; \n public class Ssl { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n private boolean enabled = true ;", "msg_token": "Harmonize description of"} {"diff": " public class AsyncHttpConnection extends AbstractHttpConnection implements Async \n } \n else if ( _request . getAsyncContinuation ( ) . isAsyncStarted ( ) ) \n { \n - SINGLE \n + SINGLE \n + SINGLE \n LOG . debug ( STRING0 , this ) ; \n - SINGLE \n - break ; \n + progress = false ; \n } \n } \n }", "msg_token": "replaced break in finally with progres false"} {"diff": " public class TestShapefileLoader extends TestCase { \n \n GtfsContext context = GtfsLibrary . readGtfs ( new File ( ConstantsForTests . NY_GTFS ) ) ; \n \n - GTFSHopLoader hl = new GTFSHopLoader ( gg , context ) ; \n + GTFSPatternHopLoader hl = new GTFSPatternHopLoader ( gg , context ) ; \n hl . load ( ) ; \n \n NetworkLinker nl = new NetworkLinker ( gg ) ; \n public class TestShapefileLoader extends TestCase { \n new State ( new GregorianCalendar ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 ) . getTimeInMillis ( ) ) , \n new TraverseOptions ( context ) ) ; \n GraphPath path = spt . getPath ( end ) ; \n - \n + \n assertNotNull ( path ) ; \n \n }", "msg_token": "use more efficient hop loader"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ checkreturnvalue \n @ gwtcompatible \n @ suppresswarnings ( STRING0 ) \n public final class Range < C extends Comparable > implements Predicate < C > , Serializable {", "msg_token": "Add CheckReturnValue to collect Range"} {"diff": " public class FavouritesDbHelper { \n } \n } \n if ( index . length ( ) > NUMBER0 || emoticons ) { \n - AlertDialog . Builder builder = new AlertDialog . Builder ( context . getMapActivity ( ) ) ; \n + AlertDialog . Builder builder = new AlertDialog . Builder ( context ) ; \n builder . setTitle ( R . string . fav_point_dublicate ) ; \n if ( emoticons ) { \n builder . setMessage ( context . getString ( R . string . fav_point_emoticons_message , name ) ) ;", "msg_token": "Fixed null pointer in favorites db helerp"} {"diff": " public class ClusterBlock implements Serializable , Streamable , ToXContent { \n } \n } \n \n + public String toString ( ) { \n + StringBuilder sb = new StringBuilder ( ) ; \n + sb . append ( id ) . append ( STRING0 ) . append ( description ) . append ( STRING1 ) ; \n + for ( ClusterBlockLevel level : levels ) { \n + sb . append ( level . name ( ) ) . append ( STRING0 ) ; \n + } \n + return sb . toString ( ) ; \n + } \n + \n @ override public boolean equals ( Object o ) { \n if ( this == o ) return true ; \n if ( o == null || getClass ( ) != o . getClass ( ) ) return false ;", "msg_token": "add toString to cluster block"} {"diff": " public abstract class HadoopDruidIndexerMapper < KEYOUT , VALUEOUT > extends Mapper < \n { \n if ( parser instanceof StringInputRowParser && value instanceof Text ) { \n SINGLE \n - return ( ( StringInputRowParser ) parser ) . parse ( value . toString ( ) ) ; \n + return ( ( StringInputRowParser ) parser ) . parse ( value . toString ( ) ) ; \n + } else if ( value instanceof InputRow ) { \n + return ( InputRow ) value ; \n } else { \n return parser . parse ( value ) ; \n }", "msg_token": "do not run parser if value from InputFormat is already an InputRow"} {"diff": " public class ShadowMotionEvent { \n } \n \n @ implementation \n + public float getRawX ( ) { \n + return getX ( ) ; \n + } \n + \n + @ implementation \n + public float getRawY ( ) { \n + return getY ( ) ; \n + } \n + \n + @ implementation \n public final float getX ( ) { \n return getX ( NUMBER0 ) ; \n } \n public class ShadowMotionEvent { \n return pointerIndex ; \n } \n \n + @ implementation \n + public final float getPressure ( int pointerIndex ) { \n + return FLOAT0 ; \n + } \n + \n public MotionEvent setPointer2 ( float x , float y ) { \n this . x [ NUMBER1 ] = x ; \n this . y [ NUMBER1 ] = y ;", "msg_token": "zooming now uses the ScaleGestureDetector from android"} {"diff": " public interface PConstants { \n SINGLE \n static final String E2D = PGraphicsDanger2D . class . getName ( ) ; \n \n + SINGLE \n + static final String FX2D = PGraphicsFX . class . getName ( ) ; \n + \n static final String PDF = STRING0 ; \n static final String DXF = STRING1 ;", "msg_token": "add a constant for JFX"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n public enum IdType \n { \n NODE ( NUMBER0 , false ) , \n - RELATIONSHIP ( NUMBER0 , false ) , \n + RELATIONSHIP ( NUMBER0 , FeatureToggles . flag ( STRING0 , false ) ) , \n PROPERTY ( NUMBER1 , true ) , \n STRING_BLOCK ( NUMBER1 , true ) , \n ARRAY_BLOCK ( NUMBER1 , true ) , \n public class StoreNodeRelationshipCursor extends StoreAbstractRelationshipCursor \n relationshipStore . fillRecord ( relationshipId , relationshipRecord , RecordLoad . FORCE ) ; \n \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n try \n public class FeatureToggles \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean flag ( String name , boolean defaultValue ) \n + { \n + return booleanProperty ( name , defaultValue ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allow relationship ids to be reused"} {"diff": " public class Entity { \n } \n \n public ToMany addToMany ( Property [ ] sourceProperties , Entity target , Property [ ] targetProperties ) { \n + if ( protobuf ) { \n + throw new IllegalStateException ( STRING0 ) ; \n + } \n + \n ToMany toMany = new ToMany ( schema , this , sourceProperties , target , targetProperties ) ; \n toManyRelations . add ( toMany ) ; \n target . incomingToManyRelations . add ( toMany ) ; \n public class Entity { \n COMMENT \n COMMENT \n public ToOne addToOne ( Entity target , Property fkProperty ) { \n + if ( protobuf ) { \n + throw new IllegalStateException ( STRING0 ) ; \n + } \n + \n Property [ ] fkProperties = { fkProperty } ; \n ToOne toOne = new ToOne ( schema , this , target , fkProperties , true ) ; \n toOneRelations . add ( toOne ) ;", "msg_token": "throw exception when trying to add relations to protobuf entities"} {"diff": " public class BaseSwiftTest implements RuntimeTestSupport { \n String fileList = sourceFiles . toString ( ) . replace ( STRING0 , STRING1 ) . replace ( STRING2 , STRING1 ) \n . replace ( STRING3 , STRING4 ) ; \n \n - String argsString = STRING5 + fileList + STRING6 + EXEC_NAME + STRING7 + ANTLR_FRAMEWORK_DIR + STRING8 + ANTLR_FRAMEWORK_DIR + STRING9 ; \n + String argsString = STRING5 + fileList + STRING6 + EXEC_NAME + STRING7 + ANTLR_FRAMEWORK_DIR + STRING8 + ANTLR_FRAMEWORK_DIR + STRING10 ; \n return runProcess ( argsString , tmpdir ) ; \n }", "msg_token": "suppress swift test warnings"} {"diff": " public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ScriptIntrinsicConvolve3x3 extends ScriptIntrinsic { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class ScriptIntrinsicConvolve5x5 extends ScriptIntrinsic { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "RenderScript Fix IntrinsicConvolve documentation"} {"diff": " public class CurrentBranchDialog extends DialogWrapper { \n } \n } \n myTrackedRepository = current == null ? null : current . getTrackedRemoteName ( myProject , root ) ; \n - myTrackedBranch = current == null ? null : current . getTrackedBranchName ( myProject , root ) ; \n if ( myTrackedRepository == null ) { \n myTrackedRepository = REMOTE_NONE ; \n } \n public class CurrentBranchDialog extends DialogWrapper { \n if ( myTrackedBranch != null && myTrackedBranch . startsWith ( GitBranch . REFS_HEADS_PREFIX ) ) { \n myTrackedBranch = myTrackedBranch . substring ( GitBranch . REFS_HEADS_PREFIX . length ( ) ) ; \n } \n + myTrackedBranch = current == null ? null : current . getTrackedBranchName ( myProject , root ) ; \n + if ( myTrackedBranch == null ) { \n + myTrackedBranch = BRANCH_NONE ; \n + } \n myRepositoryComboBox . setSelectedItem ( myTrackedRepository ) ; \n myBranches . clear ( ) ; \n GitBranch . list ( myProject , root , true , true , myBranches ) ;", "msg_token": "fixed CurrentBranchDialog the case when there is no tracking branch"} {"diff": " public class EmulatorView extends View implements GestureDetector . OnGestureListe \n updateText ( ) ; \n } \n \n - public void resetTerminal ( ) { \n - mEmulator . reset ( ) ; \n - invalidate ( ) ; \n - } \n - \n @ override \n public boolean onCheckIsTextEditor ( ) { \n return true ;", "msg_token": "Remove superfluous EmulatorView resetTerminal method"} {"diff": " public class RepartitionerTest { \n \n SINGLE \n SINGLE \n - greedyZones = null ; \n + greedyZones = Collections . < Integer > emptyList ( ) ; \n \n repartitionedCluster = Repartitioner . repartition ( currentCluster , \n currentStores ,", "msg_token": "Fix NPE in the test code"} {"diff": " public class DruidMasterBalancerTest \n Lists . < String > newArrayList ( ) , \n Lists . < String > newArrayList ( ) , \n new NoneShardSpec ( ) , \n + NUMBER0 , \n NUMBER1 \n ) ; \n segment2 = new DataSegment ( \n public class DruidMasterBalancerTest \n Lists . < String > newArrayList ( ) , \n Lists . < String > newArrayList ( ) , \n new NoneShardSpec ( ) , \n + NUMBER0 , \n NUMBER2 \n ) ; \n segment3 = new DataSegment ( \n public class DruidMasterBalancerTest \n Lists . < String > newArrayList ( ) , \n Lists . < String > newArrayList ( ) , \n new NoneShardSpec ( ) , \n + NUMBER0 , \n NUMBER3 \n ) ; \n segment4 = new DataSegment ( \n public class DruidMasterBalancerTest \n Lists . < String > newArrayList ( ) , \n Lists . < String > newArrayList ( ) , \n new NoneShardSpec ( ) , \n + NUMBER0 , \n NUMBER4 \n ) ;", "msg_token": "add binary version to datasegments for balancer test"} {"diff": " public class ProtocolProviderServiceJabberImpl \n dnssecState [ NUMBER0 ] = true ; \n } \n if ( addrs == null || addrs . length == NUMBER0 ) \n + { \n + logger . error ( STRING0 + \n + srv . getTarget ( ) ) ; \n continue ; \n + } \n \n for ( InetSocketAddress isa : addrs ) \n { \n public class ProtocolProviderServiceJabberImpl \n } \n } \n } \n + else \n + logger . error ( STRING1 ) ; \n \n return ConnectState . CONTINUE_TRYING ; \n }", "msg_token": "Adds more logging when we fail to find xmpp server addresses"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DatePicker extends FrameLayout { \n mYearSpinner . setValue ( mCurrentDate . get ( Calendar . YEAR ) ) ; \n mMonthSpinner . setValue ( mCurrentDate . get ( Calendar . MONTH ) ) ; \n mDaySpinner . setValue ( mCurrentDate . get ( Calendar . DAY_OF_MONTH ) ) ; \n + \n + if ( Character . isDigit ( displayedValues [ NUMBER0 ] . charAt ( NUMBER0 ) ) ) { \n + mMonthSpinnerInput . setRawInputType ( InputType . TYPE_CLASS_NUMBER ) ; \n + } \n } \n \n COMMENT", "msg_token": "when locale is non Enligh sometimes month spinner needs a number IME"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface ArrowEntity extends Entity { \n + public interface Arrow extends Entity { \n } \n public interface World { \n COMMENT \n COMMENT \n COMMENT \n - public ArrowEntity spawnArrow ( Location loc , Vector velocity , \n + public Arrow spawnArrow ( Location loc , Vector velocity , \n float speed , float spread ) ; \n \n COMMENT", "msg_token": "Renamed ArrowEntity Arrow to be consistent"} {"diff": " public class SwipeRefreshLayout extends ViewGroup implements NestedScrollingPare \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SwipeRefreshLayout extends ViewGroup implements NestedScrollingPare \n COMMENT \n public void setProgressViewOffset ( boolean scale , int start , int end ) { \n mScale = scale ; \n - mCircleView . setVisibility ( View . GONE ) ; \n - mOriginalOffsetTop = mCurrentTargetOffsetTop = start ; \n + mOriginalOffsetTop = start ; \n mSpinnerFinalOffset = end ; \n mUsingCustomStart = true ; \n - mCircleView . invalidate ( ) ; \n + reset ( ) ; \n + mRefreshing = false ; \n } \n \n COMMENT", "msg_token": "Fix SwipeRefreshLayout setProgressViewOffset"} {"diff": " public class GroovyHotSwapper extends GenericDebuggerRunner { \n ExecutionEnvironment env ) throws ExecutionException { \n if ( state instanceof JavaCommandLine && containsGroovyClasses ( project ) ) { \n final JavaParameters params = ( ( JavaCommandLine ) state ) . getJavaParameters ( ) ; \n - params . getVMParametersList ( ) . addParametersString ( STRING0 + getAgentJarPath ( ) ) ; \n + params . getVMParametersList ( ) . add ( STRING0 + getAgentJarPath ( ) ) ; \n } \n \n return super . createContentDescriptor ( project , executor , state , contentToReuse , env ) ;", "msg_token": "quote the path to gragent jar if needed"} {"diff": " public abstract class AbstractInspectionToolStarter implements ApplicationStarte \n if ( ! myOptions . suppressHelp ( ) ) { \n printHelpAndExit ( args , myOptions ) ; \n } \n - return ; \n + System . exit ( NUMBER0 ) ; \n } \n \n myApplication = new InspectionApplication ( ) ;", "msg_token": "don t show misleading help message"} {"diff": " public class DRootElement implements DElement { \n return containingClasses . values ( ) ; \n } \n \n - public void setContainingClasses ( Map < String , DClassElement > containingClasses ) { \n - this . containingClasses = containingClasses ; \n - } \n - \n public DClassElement removeClassElement ( String classElementName ) { \n return containingClasses . remove ( classElementName ) ; \n }", "msg_token": "remove unused method"} {"diff": " public class CoordinatorLayout extends ViewGroup implements NestedScrollingParen \n COMMENT \n COMMENT \n COMMENT \n - private void resolveAnchorView ( View forChild , CoordinatorLayout parent ) { \n + private void resolveAnchorView ( final View forChild , final CoordinatorLayout parent ) { \n mAnchorView = parent . findViewById ( mAnchorId ) ; \n if ( mAnchorView != null ) { \n + if ( mAnchorView == parent ) { \n + if ( parent . isInEditMode ( ) ) { \n + mAnchorView = mAnchorDirectChild = null ; \n + return ; \n + } \n + throw new IllegalStateException ( \n + STRING0 ) ; \n + } \n + \n View directChild = mAnchorView ; \n for ( ViewParent p = mAnchorView . getParent ( ) ; \n p != parent && p != null ;", "msg_token": "Don t let a View anchor itself to it s parent CoordinatorLayout"} {"diff": " public class ShowGraph extends PApplet { \n @ suppresswarnings ( STRING0 ) \n public void draw ( ) { \n fill ( NUMBER0 ) ; \n - rect ( NUMBER0 , NUMBER0 , getSize ( ) . width , getSize ( ) . height ) ; \n + rect ( NUMBER0 , NUMBER0 , getSize ( ) . width - NUMBER1 , getSize ( ) . height - NUMBER1 ) ; \n List < Vertex > vertices = ( List < Vertex > ) vertexIndex . query ( modelBounds ) ; \n \n List < Edge > edges = ( List < Edge > ) edgeIndex . query ( modelBounds ) ;", "msg_token": "Show the border around the graph area"} {"diff": " public abstract class Rule { \n this . messages = messages ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract String getId ( ) ; \n \n public abstract String getDescription ( ) ;", "msg_token": "add javadoc for getId"} {"diff": " public class RestletComponent extends HeaderFilterStrategyComponent { \n private Boolean pipeliningConnections ; \n private Integer threadMaxIdleTimeMs ; \n private Boolean useForwardedForHeader ; \n + private Boolean reuseAddress ; \n \n public RestletComponent ( ) { \n this ( new Component ( ) ) ; \n public class RestletComponent extends HeaderFilterStrategyComponent { \n if ( getUseForwardedForHeader ( ) != null ) { \n params . add ( STRING0 , getUseForwardedForHeader ( ) . toString ( ) ) ; \n } \n + if ( getReuseAddress ( ) != null ) { \n + params . add ( STRING1 , getReuseAddress ( ) . toString ( ) ) ; \n + } \n LOG . debug ( STRING2 , params , server ) ; \n server . getContext ( ) . setParameters ( params ) ; \n \n public class RestletComponent extends HeaderFilterStrategyComponent { \n this . useForwardedForHeader = useForwardedForHeader ; \n } \n \n + public Boolean getReuseAddress ( ) { \n + return reuseAddress ; \n + } \n + \n + public void setReuseAddress ( Boolean reuseAddress ) { \n + this . reuseAddress = reuseAddress ; \n + } \n }", "msg_token": "Added reuseAddress option to restlet component"} {"diff": " public abstract class Contacts { \n COMMENT \n public abstract void markAsContacted ( final Address [ ] addresses ) ; \n \n - \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public abstract Intent contactPickerIntent ( ) ; \n \n - \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - \n - \n - \n public abstract String getEmailFromContactPicker ( final Intent intent ) ; \n \n - \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - \n public boolean hasContactPicker ( ) { \n - \n if ( mContext . getPackageManager ( ) . queryIntentActivities ( contactPickerIntent ( ) , NUMBER0 ) . size ( ) > NUMBER0 ) { \n return true ; \n } else { \n return false ; \n } \n } \n - \n - \n - \n }", "msg_token": "Fixed javadoc comments"} {"diff": " public class ApplyPatchAction extends AnAction { \n public static ApplyPatchStatus mergeAgainstBaseVersion ( final Project project , final VirtualFile file , final FilePath pathBeforeRename , \n final TextFilePatch patch , final PatchMergeRequestFactory mergeRequestFactory ) { \n final ApplyPatchForBaseRevisionTexts threeTexts = ApplyPatchForBaseRevisionTexts . create ( project , file , pathBeforeRename , patch ) ; \n - if ( threeTexts == null ) { \n + if ( ( threeTexts == null ) || ( threeTexts . getStatus ( ) == null ) ) { \n return null ; \n } \n ApplyPatchStatus status = threeTexts . getStatus ( ) ;", "msg_token": "apply patch to report when no base revision found"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "add missing license"} {"diff": " public class HeapPool extends MemtablePool \n return new Allocator ( this ) ; \n } \n \n - public class Allocator extends MemtableBufferAllocator \n + public static class Allocator extends MemtableBufferAllocator \n { \n Allocator ( HeapPool pool ) \n {", "msg_token": "make Allocator a static inner class"} {"diff": " public class MaxRequestSizeTestCase { \n exchange . getOutputStream ( ) . close ( ) ; \n } catch ( IOException e ) { \n try { \n + exchange . getExchange ( ) . getResponseHeaders ( ) . put ( Headers . CONNECTION , STRING0 ) ; \n exchange . getExchange ( ) . setResponseCode ( NUMBER0 ) ; \n } catch ( Exception ignore ) { \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ChunkedRequestTransferCodingTestCase { \n exchange . getInputStream ( ) . close ( ) ; \n exchange . getOutputStream ( ) . close ( ) ; \n } catch ( IOException e ) { \n + exchange . getExchange ( ) . getResponseHeaders ( ) . put ( Headers . CONNECTION , STRING0 ) ; \n exchange . getExchange ( ) . setResponseCode ( NUMBER0 ) ; \n throw new RuntimeException ( e ) ; \n }", "msg_token": "Fix test case race condition"} {"diff": " public abstract class AbstractQueryBuilder < QB extends AbstractQueryBuilder > exte \n \n @ override \n public final int hashCode ( ) { \n - return NUMBER0 * Objects . hash ( getClass ( ) , queryName , boost ) + doHashCode ( ) ; \n + return Objects . hash ( getClass ( ) , queryName , boost , doHashCode ( ) ) ; \n } \n \n SINGLE", "msg_token": "Modified AbstractQueryBuilder default hashcode impl"} {"diff": " public class Auth extends BaseModule { \n @ override \n public void start ( final CommandCallback < AuthState > callback ) { \n modules ( ) . getAnalytics ( ) . trackCodeRequest ( phone ) ; \n - \n + \n request ( new RequestSendAuthCode ( phone , apiConfiguration . getAppId ( ) , \n apiConfiguration . getAppKey ( ) ) , \n new RpcCallback < ResponseSendAuthCode > ( ) { \n public class Auth extends BaseModule { \n @ override \n public void onResult ( ResponseAuth response ) { \n onLoggedIn ( callback , response ) ; \n - modules ( ) . getProfile ( ) . changeAvatar ( avatarPath ) ; \n + if ( avatarPath != null ) { \n + modules ( ) . getProfile ( ) . changeAvatar ( avatarPath ) ; \n + } \n } \n \n @ override", "msg_token": "Fixed signup without avatars"} {"diff": " public class PathUtil { \n return base . resolve ( child ) ; \n } \n \n + public static Path resolve ( Path path , String . . . childs ) { \n + for ( String child : childs ) { \n + path = resolve ( path , child ) ; \n + } \n + return path ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n public class PathUtilTest { \n path = PathUtil . resolve ( base , STRING0 ) ; \n assertEquals ( STRING1 , path . toString ( ) ) ; \n \n + path = PathUtil . resolve ( base , STRING2 , STRING3 ) ; \n + assertEquals ( STRING4 , path . toString ( ) ) ; \n + \n + path = PathUtil . resolve ( base , STRING0 , STRING5 ) ; \n + assertEquals ( STRING4 , path . toString ( ) ) ; \n + \n + path = PathUtil . resolve ( base , STRING6 , STRING7 ) ; \n + assertEquals ( STRING4 , path . toString ( ) ) ; \n } \n }", "msg_token": "Added PathUtil resolve on string array"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class ShadowFragment { \n return view ; \n } \n \n + @ implementation \n + public boolean isAdded ( ) { \n + return fragmentActivity != null ; \n + } \n + \n + @ implementation \n + public boolean isVisible ( ) { \n + return fragmentActivity != null ; \n + } \n + \n public void setActivity ( FragmentActivity activity ) { \n fragmentActivity = activity ; \n + try { \n + Field field = Fragment . class . getDeclaredField ( STRING0 ) ; \n + field . setAccessible ( true ) ; \n + field . set ( realFragment , activity ) ; \n + } catch ( Exception e ) { \n + throw new IllegalArgumentException ( STRING1 ) ; \n + } \n } \n \n public void createView ( ) {", "msg_token": "Shadow the isAdded and isVisible methods"} {"diff": " public final class InternalTestCluster extends TestCluster { \n \n if ( random . nextBoolean ( ) ) { \n builder . put ( Translog . INDEX_TRANSLOG_FS_TYPE , RandomPicks . randomFrom ( random , TranslogFile . Type . values ( ) ) ) ; \n - if ( random . nextBoolean ( ) ) { \n + if ( rarely ( random ) ) { \n builder . put ( Translog . INDEX_TRANSLOG_SYNC_INTERVAL , NUMBER0 ) ; SINGLE \n } else { \n builder . put ( Translog . INDEX_TRANSLOG_SYNC_INTERVAL , RandomInts . randomIntBetween ( random , NUMBER1 , NUMBER2 ) ) ;", "msg_token": "TEST Reduce likelyness of sync on every operation"} {"diff": " public class PsiMethodReferenceUtil { \n if ( resolve instanceof PsiClass ) { \n containingClass = ( PsiClass ) resolve ; \n substitutor = resolveResult . getSubstitutor ( ) ; \n - return new QualifierResolveResult ( containingClass , substitutor , true ) ; \n + final PsiElement element = methodReferenceExpression . getReferenceNameElement ( ) ; \n + final boolean isConstructor = element instanceof PsiKeyword && PsiKeyword . NEW . equals ( element . getText ( ) ) ; \n + final boolean isRawSubst = ( ! isConstructor && PsiTreeUtil . isAncestor ( containingClass , methodReferenceExpression , true ) ) && PsiUtil . isRawSubstitutor ( containingClass , substitutor ) ; \n + return new QualifierResolveResult ( containingClass , isRawSubst ? PsiSubstitutor . EMPTY : substitutor , true ) ; \n } \n } \n }", "msg_token": "do not provide raw substitutor when containing class provides empty one"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class TopNQueryRunnerBenchmark extends AbstractBenchmark \n @ override \n public ByteBuffer get ( ) \n { \n - return ByteBuffer . allocate ( NUMBER0 ) ; \n + SINGLE \n + SINGLE \n + return ByteBuffer . allocateDirect ( NUMBER0 ) ; \n } \n } \n ) ,", "msg_token": "Change TopNQueryRunnerBenchmark to use a ByteBuffer as per OffheapBufferPool"} {"diff": " class VariableReferenceCheck implements HotSwapCompilerPass { \n STRING0 ) ; \n \n static final DiagnosticType AMBIGUOUS_FUNCTION_DECL = \n - DiagnosticType . disabled ( STRING1 , \n + DiagnosticType . error ( STRING1 , \n STRING2 ) ; \n \n static final DiagnosticType EARLY_REFERENCE_ERROR = DiagnosticType . error (", "msg_token": "Make AMBIGUOUS_FUNCTION_DECL an error by default"} {"diff": " public class CacheManagingDrawTask extends DrawTask { \n public void end ( ) { \n if ( mHandler != null ) { \n mHandler . pause ( ) ; \n + mHandler . removeCallbacksAndMessages ( null ) ; \n mHandler = null ; \n } \n if ( mThread != null ) { \n public class DanmakuSurfaceView extends SurfaceView implements SurfaceHolder . Cal \n \n public void quit ( ) { \n quitFlag = true ; \n + removeCallbacksAndMessages ( null ) ; \n } \n \n public boolean isStop ( ) {", "msg_token": "Remove messages from handler when thread quit"} {"diff": " public final class FBReaderApp extends ZLApplication { \n } \n \n public Book getCurrentBook ( ) { \n - return Model != null ? Model . Book : ExternalBook ; \n + final BookModel m = Model ; \n + return m != null ? m . Book : ExternalBook ; \n } \n \n public void openHelpBook ( ) {", "msg_token": "fixed possible NPE"} {"diff": " public class CRFClassifier < IN extends CoreMap > extends AbstractSequenceClassifie \n sb . append ( wi . get ( CoreAnnotations . TextAnnotation . class ) ) ; \n sb . append ( STRING0 ) ; \n FactorTable table = factorTables [ i ] ; \n - double totalMass = table . totalMass ( ) ; \n for ( int j = NUMBER0 ; j < table . size ( ) ; j ++ ) { \n int [ ] arr = table . toArray ( j ) ; \n sb . append ( classIndex . get ( arr [ NUMBER0 ] ) ) ; \n sb . append ( STRING1 ) ; \n sb . append ( classIndex . get ( arr [ NUMBER1 ] ) ) ; \n sb . append ( STRING1 ) ; \n - sb . append ( table . getValue ( j ) - totalMass ) ; \n + sb . append ( cliqueTree . prob ( i , arr ) ) ; \n sb . append ( STRING2 ) ; \n } \n sb . append ( STRING3 ) ;", "msg_token": "fixed a bug in printFactorTable"} {"diff": " public class RootLoader extends ClassLoader { \n return url ; \n } \n \n - public Enumeration getResources ( String name ) throws IOException { \n - final Enumeration enum1 = inner . getResources ( name ) ; \n - final Enumeration enum2 = super . getResources ( name ) ; \n + \n + protected Enumeration findResources ( String name ) throws IOException { \n + final Enumeration enum1 = inner . findResources ( name ) ; \n + final Enumeration enum2 = super . findResources ( name ) ; \n return new Enumeration ( ) { \n public boolean hasMoreElements ( ) { \n return enum1 . hasMoreElements ( ) || enum2 . hasMoreElements ( ) ;", "msg_token": "removed the overwriting of the final method"} {"diff": " public class UserConfig { \n } \n \n SINGLE \n - preventStandby = userConfigTO . preventStandbyEnabled ( ) ; \n + preventStandby = userConfigTO . isPreventStandby ( ) ; \n configEncryptionKey = userConfigTO . getConfigEncryptionKey ( ) ; \n } \n catch ( ConfigException e ) { \n public class UserConfigTO { \n return systemProperties ; \n } \n \n - public boolean preventStandbyEnabled ( ) { \n + public boolean isPreventStandby ( ) { \n return preventStandby ; \n } \n + \n + public void setPreventStandby ( boolean preventStandby ) { \n + this . preventStandby = preventStandby ; \n + } \n \n public SaltedSecretKey getConfigEncryptionKey ( ) { \n return configEncryptionKey ;", "msg_token": "Add setter for preventStandby"} {"diff": " public class InfluxDbEndpoint extends DefaultEndpoint { \n \n this . influxDB = dbConn ; \n \n - LOG . debug ( STRING0 , uri ) ; \n + LOG . debug ( STRING1 , uri ) ; \n LOG . debug ( STRING2 , connectionBean , databaseName , retentionPolicy ) ; \n }", "msg_token": "Fixed typo in log statement"} {"diff": " public final class BlockLockManager { \n COMMENT \n SINGLE \n private static final int NUM_LOCKS = NUMBER0 ; \n - COMMENT \n - private static final int LOCK_ACQUIRE_TIMEOUT_MS = NUMBER1 ; \n + \n COMMENT \n private static final AtomicLong LOCK_ID_GEN = new AtomicLong ( NUMBER2 ) ; \n COMMENT", "msg_token": "Remove unused field in BlockLockManager"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class InputSplitManager { \n String assignerClassName = GlobalConfiguration . getString ( assignerKey , null ) ; \n \n SINGLE \n - COMMENT \n + if ( assignerClassName == null && FileInputSplit . class . getSimpleName ( ) . equals ( typeClassName ) ) { \n assignerClassName = FileInputSplitAssigner . class . getName ( ) ; \n - COMMENT \n + } \n \n try {", "msg_token": "Reenabled FileInputSplitAssigner as default assigner for FileInputSplits"} {"diff": " public class SelectStatementPlanner { \n if ( querySpec . where ( ) . hasVersions ( ) ) { \n throw new VersionInvalidException ( ) ; \n } \n - if ( querySpec . where ( ) . noMatch ( ) || ( querySpec . isLimited ( ) && querySpec . limit ( ) . get ( ) == NUMBER0 ) ) { \n + if ( querySpec . where ( ) . noMatch ( ) || ( querySpec . limit ( ) . isPresent ( ) && querySpec . limit ( ) . get ( ) == NUMBER0 ) ) { \n return new NoopPlan ( context . jobId ( ) ) ; \n } \n table . tableRelation ( ) . validateOrderBy ( querySpec . orderBy ( ) ) ;", "msg_token": "fixed Planner Test"} {"diff": " public class SelectTemplateStep extends ModuleWizardStep implements SettingsStep \n Disposer . dispose ( myList ) ; \n } \n \n + @ override \n + public String getHelpId ( ) { \n + return myWizardContext . isCreatingNewProject ( ) ? STRING0 : STRING1 ; \n + } \n + \n private static NamePathComponent initNamePathComponent ( WizardContext context ) { \n NamePathComponent component = new NamePathComponent ( \n IdeBundle . message ( STRING2 ) ,", "msg_token": "provide access to the corresponding help topic"} {"diff": " public class ResolveVisitor extends ClassCodeExpressionTransformer { \n if ( ( type == Types . ASSIGNMENT_OPERATOR || type == Types . EQUAL ) && \n left instanceof ClassExpression ) { \n ClassExpression ce = ( ClassExpression ) left ; \n - addError ( STRING0 + ce . getType ( ) . getName ( ) , be . getLeftExpression ( ) ) ; \n + addError ( STRING1 + ce . getType ( ) . getName ( ) + STRING2 , be . getLeftExpression ( ) ) ; \n return be ; \n } \n if ( left instanceof ClassExpression && be . getRightExpression ( ) instanceof ListExpression ) {", "msg_token": "improved error message when the class name is the same as an intented variable name"} {"diff": " public final class InputMethodManager { \n if ( p . mSeq == seq ) { \n mFirstPendingEvent = p . mNext ; \n } else { \n - PendingEvent prev = p ; \n + PendingEvent prev ; \n do { \n - p = prev . mNext ; \n + prev = p ; \n + p = p . mNext ; \n if ( p == null ) { \n return null ; \n }", "msg_token": "Fix bug in IME handling of pending key events"} {"diff": " implements OnRemoteOperationListener , OnSslValidatorListener , OnFocusChangeList \n if ( mAction == ACTION_UPDATE_TOKEN ) { \n SINGLE \n mHostUrlInput . setEnabled ( false ) ; \n + mHostUrlInput . setFocusable ( false ) ; \n mUsernameInput . setEnabled ( false ) ; \n + mUsernameInput . setFocusable ( false ) ; \n mOAuth2Check . setVisibility ( View . GONE ) ; \n if ( ! mServerIsValid && mOcServerChkOperation == null ) { \n checkOcServer ( ) ;", "msg_token": "Fixed focus in AuthenticarActivity for changing password so that server URL is not editable"} {"diff": " public class MapReadQuorumTest { \n public static void initialize ( ) throws InterruptedException { \n QuorumConfig quorumConfig = new QuorumConfig ( ) ; \n quorumConfig . setName ( QUORUM_ID ) ; \n - quorumConfig . setType ( QuorumType . READ_WRITE ) ; \n + quorumConfig . setType ( QuorumType . READ ) ; \n quorumConfig . setEnabled ( true ) ; \n quorumConfig . setSize ( NUMBER0 ) ; \n MapConfig mapConfig = new MapConfig ( MAP_NAME_PREFIX + STRING0 ) ;", "msg_token": "corrects wrong quorumtype"} {"diff": " public class HotspotIntegerGenerator extends IntegerGenerator { \n public double getHotOpnFraction ( ) { \n return hotOpnFraction ; \n } \n - \n + @ override \n + public double mean ( ) { \n + return hotOpnFraction * ( lowerBound + hotInterval / FLOAT0 ) \n + + ( NUMBER0 - hotOpnFraction ) * ( lowerBound + hotInterval + coldInterval / FLOAT0 ) ; \n + } \n }", "msg_token": "add mean method to HotspotIntegerGenerator fixes build problem"} {"diff": " public class TezJobMonitor { \n String mode = STRING0 ; \n BaseWork work = workMap . get ( name ) ; \n if ( work != null ) { \n - if ( work . getLlapMode ( ) ) { \n - mode = STRING1 ; \n - } else if ( work . getUberMode ( ) ) { \n + SINGLE \n + if ( work . getUberMode ( ) ) { \n mode = STRING2 ; \n + } else if ( work . getLlapMode ( ) ) { \n + mode = STRING1 ; \n } else { \n mode = STRING0 ; \n }", "msg_token": "Fix ordering of execution modes"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class TileEngineIron extends TileEngineWithInventory implements IFluidHandler , IBlockDefaultTriggers {", "msg_token": "Moved IBlockDefaultTriggers to core"} {"diff": " public final class GitFetchResult { \n @ notnull \n public String getAdditionalInfo ( ) { \n if ( ! myPrunedRefs . isEmpty ( ) ) { \n - return STRING0 + pluralize ( STRING1 , myPrunedRefs . size ( ) ) + STRING2 + join ( myPrunedRefs , STRING3 ) ; \n + return STRING0 + pluralize ( STRING1 , myPrunedRefs . size ( ) ) + STRING2 + join ( myPrunedRefs , STRING4 ) ; \n } \n return STRING5 ; \n }", "msg_token": "not so wide git prune notification"} {"diff": " public class OfflineMessageStore extends BasicModule implements UserEventListene \n if ( message == null ) { \n return ; \n } \n + SINGLE \n if ( message . getBody ( ) == null || message . getBody ( ) . length ( ) == NUMBER0 ) { \n - SINGLE \n - return ; \n + SINGLE \n + if ( message . getChildElement ( STRING0 , STRING1 ) == null ) \n + { \n + return ; \n + } \n } \n JID recipient = message . getTo ( ) ; \n String username = recipient . getNode ( ) ;", "msg_token": "Allow offline storage for empty pubsub messages"} {"diff": " public class Config \n public Integer memtable_flush_writers = null ; \n public Integer memtable_heap_space_in_mb ; \n public Integer memtable_offheap_space_in_mb ; \n - public Double memtable_cleanup_threshold = null ; \n + public Float memtable_cleanup_threshold = null ; \n \n public Integer storage_port = NUMBER0 ; \n public Integer ssl_storage_port = NUMBER1 ; \n public class DatabaseDescriptor \n conf . memtable_flush_writers = Math . min ( NUMBER2 , Math . max ( NUMBER3 , Math . min ( FBUtilities . getAvailableProcessors ( ) , conf . data_file_directories . length ) ) ) ; \n \n if ( conf . memtable_cleanup_threshold == null ) \n - conf . memtable_cleanup_threshold = FLOAT0 / ( NUMBER4 + conf . memtable_flush_writers ) ; \n + conf . memtable_cleanup_threshold = ( float ) ( FLOAT0 / ( NUMBER4 + conf . memtable_flush_writers ) ) ; \n \n if ( conf . concurrent_compactors == null ) \n conf . concurrent_compactors = Math . min ( NUMBER2 , Math . max ( NUMBER3 , Math . min ( FBUtilities . getAvailableProcessors ( ) , conf . data_file_directories . length ) ) ) ;", "msg_token": "add cast to float"} {"diff": " public abstract class GenericFileConsumer < T > extends ScheduledBatchPollingConsum \n } \n \n SINGLE \n - SINGLE \n + SINGLE \n LinkedList < Exchange > exchanges = new LinkedList < Exchange > ( ) ; \n for ( GenericFile < T > file : files ) { \n Exchange exchange = endpoint . createExchange ( file ) ;", "msg_token": "Fixed a typo in GenericFileConsumer"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Simplified the pipeline diagram"} {"diff": " public class AnnotatorFactories { \n } else { \n os . append ( StanfordCoreNLP . NEWLINE_SPLITTER_PROPERTY + STRING0 ) ; \n os . append ( properties . getProperty ( StanfordCoreNLP . NEWLINE_SPLITTER_PROPERTY , STRING1 ) ) ; \n + os . append ( STRING2 + STRING0 + properties . getProperty ( STRING2 , STRING1 ) ) ; \n os . append ( StanfordCoreNLP . NEWLINE_IS_SENTENCE_BREAK_PROPERTY + STRING0 ) ; \n os . append ( properties . getProperty ( StanfordCoreNLP . NEWLINE_IS_SENTENCE_BREAK_PROPERTY , StanfordCoreNLP . DEFAULT_NEWLINE_IS_SENTENCE_BREAK ) ) ; \n }", "msg_token": "Fix NL bug by crucially adding ssplit isOneSentence to tokenizer signature"} {"diff": " public class GTFSPatternHopFactory { \n SINGLE \n if ( ! _calendarService . getServiceIds ( ) . contains ( trip . getServiceId ( ) ) ) { \n LOG . warn ( graph . addBuilderAnnotation ( new TripUndefinedService ( trip ) ) ) ; \n + continue TRIP ; SINGLE \n } \n \n COMMENT", "msg_token": "Do not load a trip if the service is invalid"} {"diff": " public class MaterialIntroActivity extends IntroActivity { \n \n addOnNavigationBlockedListener ( new OnNavigationBlockedListener ( ) { \n @ override \n - public void onNavigationBlocked ( int position , @ direction int direction ) { \n + public void onNavigationBlocked ( int position , int direction ) { \n View contentView = findViewById ( android . R . id . content ) ; \n Snackbar . make ( contentView , ( permissions && position == NUMBER0 ) ? \n R . string . label_grant_permissions : R . string . label_fill_out_form ,", "msg_token": "Fixed annotation bug"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Corrected typo Removed unused import"} {"diff": " public class ShowcaseView extends RelativeLayout implements View . OnClickListener \n COMMENT \n COMMENT \n public void pointTo ( float x , float y ) { \n + final View mHandy = ( ( LayoutInflater ) getContext ( ) . getSystemService ( Context . LAYOUT_INFLATER_SERVICE ) ) . inflate ( R . layout . handy , null ) ; \n AnimationUtils . createMovementAnimation ( mHandy , x , y ) . start ( ) ; \n }", "msg_token": "Fix NullPointerException when using pointTo"} {"diff": " public final class RuleClass { \n COMMENT \n private static Object convertFromBuildLangType ( Rule rule , Attribute attr , Object buildLangValue ) \n throws ConversionException { \n - String what = String . format ( STRING0 , attr . getName ( ) , rule . getRuleClass ( ) ) ; \n + String what = STRING1 + attr . getName ( ) + STRING2 + rule . getRuleClass ( ) + STRING3 ; \n Object converted = \n BuildType . selectableConvert ( attr . getType ( ) , buildLangValue , what , rule . getLabel ( ) ) ;", "msg_token": "Avoid the main use of String format during loading and analysis"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class NodeIdsInUseSampleable extends DatabasePrimitivesSampleableBase \n { \n public class NodeIdsInUseSampleable extends DatabasePrimitivesSampleableBase \n \n @ override public double getValue ( ) \n { \n - return getNodeManager ( ) . getNumberOfIdsInUse ( Node . class ) ; \n + try \n + { \n + return getNodeManager ( ) . getNumberOfIdsInUse ( Node . class ) ; \n + } \n + catch ( Exception e ) \n + { \n + throw new UnableToSampleException ( ) ; \n + } \n } \n }", "msg_token": "Catch any exception coming out of trying to sample this value"} {"diff": " public class ServletConfiguration { \n COMMENT \n COMMENT \n public ServletConfiguration addUrlPattern ( String urlPattern ) { \n - mappings . put ( checkNotNull ( urlPattern ) , holder ) ; \n + try { \n + mappings . put ( checkNotNull ( urlPattern ) , holder ) ; \n + } catch ( IllegalArgumentException ignored ) { \n + throw new IllegalArgumentException ( STRING0 + urlPattern + \n + STRING1 ) ; \n + } \n return this ; \n }", "msg_token": "Improve error message for servlet mis mapping"} {"diff": " public abstract class AbstractVertex extends AbstractElement implements Internal \n return super . equals ( other ) ; \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public int hashCode ( ) { \n + return super . hashCode ( ) ; \n + } \n }", "msg_token": "Added hashCode override to AbstractEquals"} {"diff": " public class RajawaliScene { \n if ( mSceneGraph != null ) { \n SINGLE \n } \n + addShadowMapMaterialPlugin ( child , mShadowMapMaterial == null ? null : mShadowMapMaterial . getMaterialPlugin ( ) ) ; \n } \n } ; \n return internalOfferTask ( task ) ;", "msg_token": "Fixes shadow mapping"} {"diff": " public class DbSqlSession implements Session { \n dbHistoryProperty . setValue ( dbHistoryValue ) ; \n \n \n + if ( dbVersion . endsWith ( STRING0 ) ) { \n + dbVersion = dbVersion . substring ( NUMBER0 , dbVersion . length ( ) - STRING0 . length ( ) ) ; \n + } \n int minorDbVersionNumber = Integer . parseInt ( dbVersion . substring ( NUMBER1 ) ) ; \n + \n String libraryVersion = ProcessEngine . VERSION ; \n if ( ProcessEngine . VERSION . endsWith ( STRING0 ) ) { \n libraryVersion = ProcessEngine . VERSION . substring ( NUMBER0 , ProcessEngine . VERSION . length ( ) - STRING0 . length ( ) ) ;", "msg_token": "Fixed issue when upgrading from installed activiti SNAPSHOT version"} {"diff": " public final class InputEventConsistencyVerifier { \n COMMENT \n COMMENT \n public InputEventConsistencyVerifier ( Object caller , int flags ) { \n - this ( caller , flags , InputEventConsistencyVerifier . class . getSimpleName ( ) ) ; \n + this ( caller , flags , null ) ; \n } \n \n COMMENT", "msg_token": "Remove reflection from InputEventConsistencyVerifier ctor"} {"diff": " public interface AgentBuilder { \n \n @ override \n public String toString ( ) { \n - return STRING0 + name ( ) ; \n + return STRING1 + name ( ) ; \n } \n \n COMMENT \n public class TrivialTypeTest { \n \n @ test \n public void testCreation ( ) throws Exception { \n - when ( classFileVersion . getVersion ( ) ) . thenReturn ( ClassFileVersion . JAVA_V5 . getJavaVersion ( ) ) ; \n + when ( classFileVersion . getVersion ( ) ) . thenReturn ( ClassFileVersion . JAVA_V5 . getVersion ( ) ) ; \n DynamicType dynamicType = TrivialType . INSTANCE . make ( FOO , classFileVersion , methodAccessorFactory ) ; \n assertThat ( dynamicType . getTypeDescription ( ) . getName ( ) , is ( FOO ) ) ; \n assertThat ( dynamicType . getTypeDescription ( ) . getModifiers ( ) , is ( Opcodes . ACC_SYNTHETIC ) ) ;", "msg_token": "Fixed test errors"} {"diff": " public class ShardStateAction extends AbstractComponent { \n logger . warn ( STRING0 , shardRoutingEntry . getShardRouting ( ) . shardId ( ) , actionName , shardRoutingEntry . getShardRouting ( ) ) ; \n waitForNewMasterAndRetry ( actionName , observer , shardRoutingEntry , listener ) ; \n } else { \n - logger . debug ( STRING1 , shardRoutingEntry . getShardRouting ( ) . getId ( ) , actionName , shardRoutingEntry ) ; \n + logger . debug ( STRING2 , shardRoutingEntry . getShardRouting ( ) . getId ( ) , actionName , masterNode . getId ( ) , shardRoutingEntry ) ; \n transportService . sendRequest ( masterNode , \n actionName , shardRoutingEntry , new EmptyTransportResponseHandler ( ThreadPool . Names . SAME ) { \n @ override", "msg_token": "Log master node when sending shard state action"} {"diff": " import NAMESPACE ; \n abstract public class GoCodeInsightFixtureTestCase extends LightPlatformCodeInsightFixtureTestCase { \n @ override \n protected String getTestDataPath ( ) { \n - return new File ( STRING0 + getTestName ( true ) + STRING1 ) . getAbsolutePath ( ) ; \n + return new File ( STRING2 + getBasePath ( ) ) . getAbsolutePath ( ) ; \n } \n \n protected static DefaultLightProjectDescriptor createMockProjectDescriptor ( ) {", "msg_token": "Fix comparation test results"} {"diff": " public class WebView extends AbsoluteLayout \n } \n break ; \n case UPDATE_TEXT_SELECTION_MSG_ID : \n + SINGLE \n + SINGLE \n + SINGLE \n + rebuildWebTextView ( ) ; \n if ( inEditingMode ( ) \n && mWebTextView . isSameTextField ( msg . arg1 ) \n && msg . arg2 == mTextGeneration ) {", "msg_token": "Set up the WebTextView before setting its selection"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class PlannerError { \n messages . put ( IllegalArgumentException . class , Message . BOGUS_PARAMETER ) ; \n } \n \n - @ getter @ setter \n - private int id ; \n - @ getter @ setter \n - private String msg ; \n - @ getter \n - private Message message ; \n + public int id ; \n + public String msg ; \n + public Message message ; \n private List < String > missing = null ; \n private boolean noPath = false ;", "msg_token": "towards removing lombok"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class AddExchanges \n public class AddExchanges \n List < TableLayoutResult > layouts = metadata . getLayouts ( \n node . getTable ( ) , \n new Constraint < > ( simplifiedConstraint , bindings - > ! shouldPrune ( constraint , node . getAssignments ( ) , bindings ) ) , \n - Optional . of ( ImmutableSet . copyOf ( node . getAssignments ( ) . values ( ) ) ) \n + Optional . of ( node . getOutputSymbols ( ) . stream ( ) \n + . map ( node . getAssignments ( ) : : get ) \n + . collect ( toImmutableSet ( ) ) ) \n ) ; \n \n if ( layouts . isEmpty ( ) ) {", "msg_token": "Explicitly pass the TableScan output symbols as desired columns"} {"diff": " public class MessageView extends K9Activity implements OnClickListener \n private CheckBox mFlagged ; \n private int defaultSubjectColor ; \n private WebView mMessageContentView ; \n + private LinearLayout mHeaderContainer ; \n private LinearLayout mAttachments ; \n private LinearLayout mCcContainerView ; \n private TextView mAdditionalHeadersView ; \n public class MessageView extends K9Activity implements OnClickListener \n \n setContentView ( R . layout . message_view ) ; \n \n + mHeaderContainer = ( LinearLayout ) findViewById ( R . id . header_container ) ; \n \n mFromView = ( TextView ) findViewById ( R . id . from ) ; \n mToView = ( TextView ) findViewById ( R . id . to ) ;", "msg_token": "Make the header section addressable in messageView for later hiding"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class LocalIndexShardGateway extends AbstractIndexShardComponent implemen \n SegmentInfos si = null ; \n try { \n si = Lucene . readSegmentInfos ( indexShard . store ( ) . directory ( ) ) ; \n - } catch ( IOException e ) { \n + } catch ( Exception e ) { \n + String files = STRING0 ; \n + try { \n + files = Arrays . toString ( indexShard . store ( ) . directory ( ) . listAll ( ) ) ; \n + } catch ( Exception e1 ) { \n + SINGLE \n + } \n if ( indexShouldExists && indexShard . store ( ) . indexStore ( ) . persistent ( ) ) { \n - throw new IndexShardGatewayRecoveryException ( shardId ( ) , STRING1 , e ) ; \n + throw new IndexShardGatewayRecoveryException ( shardId ( ) , STRING2 + files , e ) ; \n } \n } \n if ( si != null ) {", "msg_token": "add a list of files that exists in the index to the failure"} {"diff": " public class ScanResult implements Parcelable { \n public static class InformationElement { \n public static final int EID_SSID = NUMBER0 ; \n public static final int EID_BSS_LOAD = NUMBER1 ; \n + public static final int EID_RSN = NUMBER2 ; \n public static final int EID_HT_OPERATION = NUMBER3 ; \n public static final int EID_INTERWORKING = NUMBER4 ; \n public static final int EID_ROAMING_CONSORTIUM = NUMBER5 ;", "msg_token": "Add RSN Information Element ID"} {"diff": " public class FeedManager { \n cursor . close ( ) ; \n } \n \n + public void loadExtraInformationOfItem ( final Context context , \n + final FeedItem item , FeedManager . TaskCallback callback ) { \n + dbExec . execute ( new FeedManager . Task ( new Handler ( ) , callback ) { \n + \n + @ override \n + public void execute ( ) { \n + PodDBAdapter adapter = new PodDBAdapter ( context ) ; \n + adapter . open ( ) ; \n + Cursor extraCursor = adapter . getExtraInformationOfItem ( item ) ; \n + if ( extraCursor . moveToFirst ( ) ) { \n + item . setDescription ( extraCursor \n + . getString ( PodDBAdapter . IDX_FI_EXTRA_DESCRIPTION ) ) ; \n + item . setContentEncoded ( extraCursor \n + . getString ( PodDBAdapter . IDX_FI_EXTRA_CONTENT_ENCODED ) ) ; \n + } \n + adapter . close ( ) ; \n + } \n + } ) ; \n + } \n + \n public List < Feed > getFeeds ( ) { \n return feeds ; \n }", "msg_token": "Created method for loading extra information of a feeditem"} {"diff": " public class AppPoller { \n return false ; \n } \n \n + private static final int sCountToCallGc = NUMBER0 ; \n + private int mCurrentLoopCount = NUMBER1 ; \n + \n private final Handler mHandler = new Handler ( ) { \n \n @ override \n public void handleMessage ( Message msg ) { \n switch ( msg . what ) { \n case ACTION_POLL_CURRENT_APP : { \n + mCurrentLoopCount ++ ; \n mHandler . removeMessages ( ACTION_POLL_CURRENT_APP ) ; \n \n if ( MainController . get ( ) == null ) { \n public class AppPoller { \n mNextAppFlatComponentName = null ; \n mHandler . sendEmptyMessageDelayed ( ACTION_POLL_CURRENT_APP , LOOP_TIME ) ; \n } \n + if ( mCurrentLoopCount == sCountToCallGc ) { \n + System . gc ( ) ; \n + mCurrentLoopCount = NUMBER1 ; \n + } \n break ; \n } \n }", "msg_token": "Decreased memory usage"} {"diff": " public class AVLoadingIndicatorView extends View { \n } \n \n @ override \n - protected void onAttachedToWindow ( ) { \n - super . onAttachedToWindow ( ) ; \n - if ( mHasAnimation ) { \n - mIndicatorController . setAnimationStatus ( BaseIndicatorController . AnimStatus . START ) ; \n - } \n - } \n - \n + protected void onAttachedToWindow ( ) { \n + super . onAttachedToWindow ( ) ; \n + if ( mHasAnimation ) { \n + mIndicatorController . setAnimationStatus ( BaseIndicatorController . AnimStatus . START ) ; \n + } \n + } \n + \n @ override \n protected void onDetachedFromWindow ( ) { \n super . onDetachedFromWindow ( ) ;", "msg_token": "replace tabs to spaces"} {"diff": " public abstract class NetworkCatalogItem extends NetworkLibraryItem { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public NetworkCatalogItem ( INetworkLink link , String title , String summary , String cover , Map < Integer , String > urlByType , Accessibility accessibility ) { \n - this ( link , title , summary , cover , urlByType , accessibility , CatalogType . OTHER ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed compilation issue"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import that s failing the build"} {"diff": " public class TrackMessageSizeInterceptor extends AtmosphereInterceptorAdapter { \n response . setCharacterEncoding ( OUT_ENCODING ) ; \n \n CharBuffer cb = inCharset . newDecoder ( ) . decode ( ByteBuffer . wrap ( responseDraft , NUMBER0 , responseDraft . length ) ) ; \n + \n + if ( cb . toString ( ) . trim ( ) . length ( ) == NUMBER0 ) { \n + return responseDraft ; \n + } \n + \n int size = cb . length ( ) ; \n CharBuffer cb2 = CharBuffer . wrap ( Integer . toString ( size ) + endString ) ; \n ByteBuffer bb = ByteBuffer . allocate ( ( cb2 . length ( ) + size ) * NUMBER1 ) ;", "msg_token": "Do not track padding data"} {"diff": " public class BinaryRoutePlanner { \n protected static final Log log = PlatformUtil . getLog ( BinaryRoutePlanner . class ) ; \n \n private static final int ROUTE_POINTS = NUMBER0 ; \n - private static final boolean TRACE_ROUTING = true ; \n + private static final boolean TRACE_ROUTING = false ; \n \n \n public static double squareRootDist ( int x1 , int y1 , int x2 , int y2 ) {", "msg_token": "Fix routing with needles"} {"diff": " public class DuplicateKeyException extends WriteConcernException { \n DuplicateKeyException ( final org . mongodb . MongoDuplicateKeyException e ) { \n super ( e ) ; \n } \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - DuplicateKeyException ( final CommandResult commandResult ) { \n - super ( commandResult ) ; \n - } \n - \n - DuplicateKeyException ( final int errorCode , final String errorMessage , final ServerAddress serverAddress ) { \n - super ( errorCode , errorMessage , serverAddress ) ; \n - } \n }", "msg_token": "Removed CommandResult dependency from com mongodb DuplicateKeyException"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class TestNGTestFramework implements TestFramework { \n verifyPreserveOrder ( ) ; \n verifyGroupByInstances ( ) ; \n List < File > suiteFiles = options . getSuites ( testTask . getTemporaryDir ( ) ) ; \n - TestNGSpec spec = DeprecationLogger . whileDisabled ( new Factory < TestNGSpec > ( ) { \n - @ override \n - public TestNGSpec create ( ) { \n - return new TestNGSpec ( options , filter ) ; \n - } \n - } ) ; \n + TestNGSpec spec = new TestNGSpec ( options , filter ) ; \n return new TestClassProcessorFactoryImpl ( this . options . getOutputDirectory ( ) , spec , suiteFiles ) ; \n }", "msg_token": "Remove unused DeprecationLogger whileDisabled"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n \n @ state ( Scope . Benchmark ) \n public class SingleNodeBenchmark \n @ benchmarkmode ( Mode . AverageTime ) \n SINGLE \n @ threads ( NUMBER0 ) \n + @ outputtimeunit ( TimeUnit . MICROSECONDS ) \n public void requestLatency ( ) \n { \n Hello hello = Actor . getReference ( Hello . class , STRING0 + Thread . currentThread ( ) . getId ( ) ) ;", "msg_token": "Setting the time unit to microseconds"} {"diff": " public class HgSwitchWorkingDirectoryAction extends HgAbstractGlobalAction { \n dialog . setRoots ( repos , branchesForRepos ) ; \n dialog . show ( ) ; \n if ( dialog . isOK ( ) ) { \n + FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ; \n new Task . Backgroundable ( project , HgVcsMessages . message ( STRING0 ) ) { \n \n @ override \n public class HgSwitchWorkingDirectoryAction extends HgAbstractGlobalAction { \n if ( dialog . isTagSelected ( ) ) { \n command . setRevision ( dialog . getTag ( ) . getName ( ) ) ; \n } \n - FileDocumentManager . getInstance ( ) . saveAllDocuments ( ) ; \n ApplicationManager . getApplication ( ) . executeOnPooledThread ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "Move saveAllDocuments method to AWT because it produce a error"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PartitionColumnsSeparator extends Transform { \n \n - private static final Log LOG = LogFactory . getLog ( PointLookupOptimizer . class ) ; \n + private static final Log LOG = LogFactory . getLog ( PartitionColumnsSeparator . class ) ; \n private static final String IN_UDF = \n GenericUDFIn . class . getAnnotation ( Description . class ) . name ( ) ; \n private static final String STRUCT_UDF =", "msg_token": "Fix logger name in PartitionColumnsSeparator Teruyoshi Zenmyo reviewed by Chao Sun"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n if ( mBackgroundSizeChanged ) { \n SINGLE \n SINGLE \n - mBackgroundDisplayList . clear ( ) ; \n + if ( mBackgroundDisplayList != null ) { \n + mBackgroundDisplayList . clear ( ) ; \n + } \n + \n background . setBounds ( NUMBER0 , NUMBER0 , mRight - mLeft , mBottom - mTop ) ; \n mBackgroundSizeChanged = false ; \n }", "msg_token": "Check for null display list"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n @ runwith ( JUnit4 . class ) \n public class GuardedByLockMethodTest {", "msg_token": "Remove unused imports"} {"diff": " public abstract class BaseJavaModule implements NativeModule { \n public boolean supportsWebWorkers ( ) { \n ReactModule module = getClass ( ) . getAnnotation ( ReactModule . class ) ; \n if ( module == null ) { \n - FLog . w ( \n - ReactConstants . TAG , \n - STRING0 + getName ( ) + \n - STRING1 ) ; \n return false ; \n } \n return module . supportsWebWorkers ( ) ;", "msg_token": "remove extraneous warning"} {"diff": " public class ResultSetViewer extends Viewer \n } \n \n public void refreshWithFilter ( DBDDataFilter filter ) { \n + if ( ! checkForChanges ( ) ) { \n + return ; \n + } \n + \n DBSDataContainer dataContainer = getDataContainer ( ) ; \n if ( dataContainer != null ) { \n runDataPump (", "msg_token": "filter apply confirmation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BottomSheet extends FrameLayout { \n \n public void registerCallback ( Callbacks callback ) { \n if ( callbacks == null ) { \n - callbacks = new ArrayList < > ( ) ; \n + callbacks = new CopyOnWriteArrayList < > ( ) ; \n } \n callbacks . add ( callback ) ; \n }", "msg_token": "Switch bottom sheet callbacks to CopyOnWriteArrayList"} {"diff": " public abstract class Request2 extends Request { \n \n public void set ( Argument arg , Object value ) { \n try { \n - System . out . println ( STRING0 + arg ) ; \n - System . out . println ( STRING0 + arg . _field + STRING1 + arg . _name ) ; \n if ( arg . _field . getType ( ) == Key . class && value instanceof ValueArray ) \n value = ( ( ValueArray ) value ) . _key ; \n SINGLE", "msg_token": "Remove debug print"} {"diff": " public class EntityMention extends ExtractionObject { \n return sb . toString ( ) ; \n } \n \n + public String getKbpId ( ) { \n + int kbpPos = this . getObjectId ( ) . indexOf ( STRING0 ) ; \n + assert ( kbpPos > NUMBER0 ) ; \n + String id = this . getObjectId ( ) . substring ( kbpPos + NUMBER1 ) ; \n + return id ; \n + } \n + \n \n @ override \n public String toString ( ) {", "msg_token": "Updated KBPEvaluator w o inference modulo some ir"} {"diff": " public class Memtable \n \n if ( newRatio < MIN_SANE_LIVE_RATIO ) \n { \n - logger . warn ( STRING0 , MIN_SANE_LIVE_RATIO , newRatio ) ; \n + logger . debug ( STRING0 , MIN_SANE_LIVE_RATIO , newRatio ) ; \n newRatio = MIN_SANE_LIVE_RATIO ; \n } \n if ( newRatio > MAX_SANE_LIVE_RATIO )", "msg_token": "change MIN_SANE_LIVE_RATIO logging to debug"} {"diff": " public class RemoveOrphanConstraintIndexesOnStartup extends LifecycleAdapter \n @ override \n public void start ( ) throws Throwable \n { \n + SINGLE \n if ( txManager . getRecoveryError ( ) != null ) \n { \n SINGLE \n SINGLE \n return ; \n } \n - txManager . begin ( ForceMode . unforced ) ; \n - TransactionContext tx = kernel . newTransactionContext ( ) ; \n + TransactionContext tx ; \n + try \n + { \n + txManager . begin ( ForceMode . unforced ) ; \n + tx = kernel . newTransactionContext ( ) ; \n + } \n + catch ( Exception e ) \n + { \n + SINGLE \n + SINGLE \n + SINGLE \n + return ; SINGLE \n + } \n boolean success = false ; \n try \n {", "msg_token": "Introduces a work around for removing orphan ConstraintIndexes in HA"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LogMessageEx extends LogMessage { \n public void printStackTrace ( PrintWriter s ) { \n s . print ( details ) ; \n } \n + \n + @ override \n + public void printStackTrace ( PrintStream s ) { \n + s . print ( details ) ; \n + } \n } ) { \n @ override \n public Object getData ( ) {", "msg_token": "don t loose exception message when submitting"} {"diff": " public class DownloadIndexActivity extends ExpandableListActivity { \n order = NUMBER0 ; \n } else if ( lc . contains ( STRING0 ) || lc . contains ( STRING1 ) ) { \n nameId = R . string . index_name_central_america ; \n - order = NUMBER1 ; \n + order = NUMBER2 ; \n } else if ( lc . contains ( STRING2 ) || lc . contains ( STRING3 ) ) { \n nameId = R . string . index_name_south_america ; \n - order = NUMBER3 ; \n + order = NUMBER4 ; \n } else if ( lc . startsWith ( STRING4 ) ) { \n nameId = R . string . index_name_france ; \n order = NUMBER5 ; \n public class DownloadIndexActivity extends ExpandableListActivity { \n order = NUMBER6 ; \n } else if ( lc . contains ( STRING5 ) ) { \n nameId = R . string . index_name_asia ; \n - order = NUMBER7 ; \n + order = NUMBER1 ; \n } else if ( lc . contains ( STRING6 ) ) { \n nameId = R . string . index_name_australia ; \n order = NUMBER8 ;", "msg_token": "bundle the Americas together in Download manager"} {"diff": " public class WebSocketClientFactory extends AggregateLifeCycle \n protected void doStop ( ) throws Exception \n { \n closeConnections ( ) ; \n + super . doStop ( ) ; \n } \n \n COMMENT", "msg_token": "WebSocketClientFactory does not invoke super doStop"} {"diff": " class OverviewPageRenderer extends PageRenderer < AllTestResults > { \n htmlWriter . startElement ( STRING0 ) . characters ( Integer . toString ( testPackage . getTestCount ( ) ) ) . endElement ( ) ; \n htmlWriter . startElement ( STRING0 ) . characters ( Integer . toString ( testPackage . getFailureCount ( ) ) ) . endElement ( ) ; \n htmlWriter . startElement ( STRING0 ) . characters ( testPackage . getFormattedDuration ( ) ) . endElement ( ) ; \n - htmlWriter . startElement ( STRING0 ) . attribute ( STRING1 , testPackage . getStatusClass ( ) ) . characters ( testPackage . getFormattedDuration ( ) ) . endElement ( ) ; \n + htmlWriter . startElement ( STRING0 ) . attribute ( STRING1 , testPackage . getStatusClass ( ) ) . characters ( testPackage . getFormattedSuccessRate ( ) ) . endElement ( ) ; \n htmlWriter . endElement ( ) ; \n } \n htmlWriter . endElement ( ) ;", "msg_token": "Fix Success Rate display in overview page"} {"diff": " public class KeyParser \n COMMENT \n public static final int FLAG_OP_PEND = NUMBER0 ; \n public static final int FLAG_MULTIKEY_UNDO = NUMBER1 ; \n + public static final int FLAG_EXPECT_MORE = NUMBER2 ; \n \n COMMENT \n public static final int MAPPING_NORMAL = NUMBER3 ;", "msg_token": "Added new flag"} {"diff": " public abstract class Parser extends Recognizer < Token , ParserATNSimulator < Token > \n COMMENT \n protected int _syntaxErrors = NUMBER0 ; \n \n - public Parser ( IntStream input ) { \n + public Parser ( TokenStream input ) { \n setInputStream ( input ) ; \n }", "msg_token": "Construct Parser with TokenStream restriction from IntStream"} {"diff": " class AppWidgetServiceImpl extends IAppWidgetService . Stub implements WidgetBacku \n } \n } \n \n + clearProvidersAndHostsTagsLocked ( ) ; \n + \n loadGroupWidgetProvidersLocked ( newProfileIds ) ; \n loadGroupStateLocked ( newProfileIds ) ; \n } \n class AppWidgetServiceImpl extends IAppWidgetService . Stub implements WidgetBacku \n } \n } \n \n + private void clearProvidersAndHostsTagsLocked ( ) { \n + final int providerCount = mProviders . size ( ) ; \n + for ( int i = NUMBER0 ; i < providerCount ; i ++ ) { \n + Provider provider = mProviders . get ( i ) ; \n + provider . tag = TAG_UNDEFINED ; \n + } \n + \n + final int hostCount = mHosts . size ( ) ; \n + for ( int i = NUMBER0 ; i < hostCount ; i ++ ) { \n + Host host = mHosts . get ( i ) ; \n + host . tag = TAG_UNDEFINED ; \n + } \n + } \n + \n private boolean writeProfileStateToFileLocked ( FileOutputStream stream , int userId ) { \n int N ;", "msg_token": "Fix a bug in parsing app widget state XML"} {"diff": " public class DefaultBroadcasterFactory extends BroadcasterFactory { \n COMMENT \n COMMENT \n public boolean remove ( Broadcaster b , Object id ) { \n - return ( store . remove ( id ) != null ) ; \n + logger . debug ( STRING0 , id , b . getID ( ) ) ; \n + return store . remove ( id ) != null ? true : ( store . remove ( b . getID ( ) ) != null ) ; \n } \n \n COMMENT", "msg_token": "Improve logging and shield from broadcaster leaks"} {"diff": " public class OLogFormatter extends Formatter { \n synchronized ( dateFormat ) { \n buffer . append ( dateFormat . format ( new Date ( ) ) ) ; \n } \n - buffer . append ( STRING0 ) ; \n - buffer . append ( iLevel . getName ( ) . substring ( NUMBER0 , NUMBER1 ) ) ; \n - buffer . append ( STRING0 ) ; \n + buffer . append ( String . format ( STRING1 , iLevel . getName ( ) ) ) ; \n \n SINGLE \n try {", "msg_token": "Fixed issue with log formatter"} {"diff": " public class DhnsGraphController implements GraphController { \n protected Dhns dhns ; \n private AttributeRowFactory attributesFactory ; \n private Executor eventBus ; \n + private DynamicGraph centralDynamicGraph ; \n \n public DhnsGraphController ( ) { \n iDGen = new IDGen ( ) ; \n public class DhnsGraphController implements GraphController { \n return new Thread ( r , STRING0 ) ; \n } \n } ) ; \n + \n + centralDynamicGraph = new DynamicGraphImpl ( ( FilteredGraph ) getClusteredDirectedGraph ( ) ) ; \n } \n \n public Dhns newDhns ( ) { \n public class DhnsGraphController implements GraphController { \n public DynamicGraph getDynamicGraph ( Graph graph ) { \n return new DynamicGraphImpl ( ( ClusteredGraphImpl ) graph ) ; \n } \n + \n + public DynamicGraph getCentralDynamicGraph ( ) { \n + return centralDynamicGraph ; \n + } \n } \n public interface GraphController { \n public FilteredGraph getFilteredGraph ( Graph graph ) ; \n \n public DynamicGraph getDynamicGraph ( Graph graph ) ; \n + \n + public DynamicGraph getCentralDynamicGraph ( ) ; \n }", "msg_token": "Add a hack to get a centralized Dynamic graph"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class BaseNettyTest extends CamelTestSupport { \n if ( ! events . isEmpty ( ) ) { \n String message = STRING0 + events ; \n SINGLE \n - for ( LogEvent event : events ) { \n + for ( LogEvent event : events ) { \n LOG . info ( event . getMessage ( ) . getFormattedMessage ( ) ) ; \n } \n LogCaptureAppender . reset ( ) ; \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix Checkstyle issues"} {"diff": " public class ConfigXmlParser { \n boolean insideFeature = false ; \n ArrayList < String > urlMap = null ; \n \n + SINGLE \n + internalWhitelist . addWhiteListEntry ( STRING0 , false ) ; \n + internalWhitelist . addWhiteListEntry ( STRING1 , false ) ; \n + internalWhitelist . addWhiteListEntry ( STRING2 , false ) ; \n + \n while ( eventType != XmlResourceParser . END_DOCUMENT ) { \n if ( eventType == XmlResourceParser . START_TAG ) { \n String strNode = xml . getName ( ) ; \n public class Whitelist { \n \n public Whitelist ( ) { \n this . whiteList = new ArrayList < URLPattern > ( ) ; \n - SINGLE \n - addWhiteListEntry ( STRING0 , false ) ; \n - addWhiteListEntry ( STRING1 , false ) ; \n - addWhiteListEntry ( STRING2 , false ) ; \n } \n \n COMMENT", "msg_token": "Only add file content and data URLs to internal whitelist"} {"diff": " public class WeldInjectionInterceptor implements Interceptor { \n @ override \n public Object processInvocation ( final InterceptorContext context ) throws Exception { \n WeldInjectionContext injectionContext = context . getPrivateData ( WeldInjectionContext . class ) ; \n - injectionContext . inject ( targetReference . get ( ) . getInstance ( ) ) ; \n + ManagedReference reference = targetReference . get ( ) ; \n + if ( reference == null ) { \n + return null ; \n + } \n + injectionContext . inject ( reference . getInstance ( ) ) ; \n return context . proceed ( ) ; \n }", "msg_token": "Prevent NPE in WeldInjectionInterceptor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n @ uriendpoint ( scheme = STRING0 ) \n public class ValidatorEndpoint extends DefaultEndpoint {", "msg_token": "Validator component Make it like the others"} {"diff": " public final class Tools { \n match . setColumn ( NUMBER0 ) ; \n } \n if ( match . getEndColumn ( ) < NUMBER1 ) { \n - match . setEndColumn ( trg . length ( ) ) ; \n + match . setEndColumn ( trg . length ( ) + NUMBER0 ) ; SINGLE \n } \n if ( match . getLine ( ) < NUMBER1 ) { \n match . setLine ( NUMBER0 ) ;", "msg_token": "fix a fix"} {"diff": " public class NavBarPanel extends JPanel implements DataProvider , PopupOwner , Dis \n \n @ override \n public void dispose ( ) { \n + getNavBarUI ( ) . clearItems ( ) ; \n myDisposed = true ; \n NavBarListener . unsubscribeFrom ( this ) ; \n }", "msg_token": "r maxim mossienko Leaking navbar item s cache on project close"} {"diff": " public final class FileTypes { \n . put ( STRING0 , STRING1 ) \n . put ( STRING2 , STRING3 ) \n . put ( STRING4 , STRING5 ) \n - . put ( STRING6 , STRING7 ) \n + . put ( STRING6 , STRING8 ) \n . put ( STRING9 , STRING10 ) \n . put ( STRING11 , STRING12 ) \n . put ( STRING13 , STRING14 )", "msg_token": "Treat stringsdict files as binary so that Xcode will convert to binary plist when copying them"} {"diff": " public class AntBuilder extends BuilderSupport { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public AntXMLContext getAntXmlContext ( ) { \n + return antXmlContext ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n protected static Project createProject ( ) {", "msg_token": "Expose the antXmlContext in the AntBuilder"} {"diff": " public class Bootstrap { \n if ( foreground ) { \n System . err . println ( errorMessage ) ; \n System . err . flush ( ) ; \n - } else { \n - logger . error ( errorMessage ) ; \n - } \n - Loggers . disableConsoleLogging ( ) ; \n - if ( logger . isDebugEnabled ( ) ) { \n - logger . debug ( STRING0 , e ) ; \n + Loggers . disableConsoleLogging ( ) ; \n } \n + logger . error ( STRING0 , e ) ; \n + \n System . exit ( NUMBER0 ) ; \n } \n }", "msg_token": "Log startup exception to console if needed and to file as error"} {"diff": " public class TMXLoader { \n SINGLE \n SINGLE \n \n + public TMXLoader ( final Context pContext , final TextureManager pTextureManager ) { \n + this ( pContext , pTextureManager , null ) ; \n + } \n + \n public TMXLoader ( final Context pContext , final TextureManager pTextureManager , final ITMXTilePropertiesListener pTMXTilePropertyListener ) { \n this . mContext = pContext ; \n this . mTextureManager = pTextureManager ;", "msg_token": "Made ITMXTilePropertiesListener when loading a TMXTiledMap optional"} {"diff": " public class DeployedXmlDataSourceManagementTestCase { \n public void tearDown ( final ManagementClient managementClient , final String containerId ) throws Exception { \n ServerDeploymentManager manager = ServerDeploymentManager . Factory . create ( managementClient . getControllerClient ( ) ) ; \n final DeploymentPlan undeployPlan = manager . newDeploymentPlan ( ) . undeploy ( TEST_DS_XML ) . andRemoveUndeployed ( ) . build ( ) ; \n - manager . execute ( undeployPlan ) ; \n + manager . execute ( undeployPlan ) . get ( ) ; \n } \n } \n \n public class DeployedXmlDataSourceTestCase { \n public void tearDown ( final ManagementClient managementClient , final String containerId ) throws Exception { \n final ServerDeploymentManager manager = ServerDeploymentManager . Factory . create ( managementClient . getControllerClient ( ) ) ; \n final DeploymentPlan undeployPlan = manager . newDeploymentPlan ( ) . undeploy ( TEST_DS_XML ) . andRemoveUndeployed ( ) . build ( ) ; \n - manager . execute ( undeployPlan ) ; \n + manager . execute ( undeployPlan ) . get ( ) ; \n } \n }", "msg_token": "Fix DS xml tests problem"} {"diff": " public class DefaultIndex extends SonarIndex { \n \n @ override \n public void addViolation ( Violation violation , boolean force ) { \n - BatchComponent component = componentCache . get ( violation . getResource ( ) ) ; \n - if ( component == null ) { \n + SINGLE \n + Resource resource = getResource ( violation . getResource ( ) ) ; \n + if ( resource == null ) { \n LOG . warn ( STRING0 , violation ) ; \n return ; \n } \n + BatchComponent component = componentCache . get ( resource ) ; \n \n Rule rule = violation . getRule ( ) ; \n if ( rule == null ) {", "msg_token": "Fix regression with old Violation API"} {"diff": " public class ExampleRunner { \n final ModelNode operation = new ModelNode ( ) ; \n operation . get ( OP ) . set ( ADD ) ; \n operation . get ( OP_ADDR ) . set ( WC_ADDR ) ; \n - operation . get ( STRING0 ) . set ( STRING1 ) ; \n + operation . get ( STRING0 ) . set ( STRING2 ) ; \n operation . get ( STRING3 ) . set ( STRING4 ) ; \n operation . get ( STRING5 ) . set ( STRING1 ) ;", "msg_token": "use correct web connector protocol"} {"diff": " public final class PrefixListTest { \n COMMENT \n @ test \n public void emptyPrefixTest ( ) { \n - PrefixList prefixList = new PrefixList ( ImmutableList . < String > of ( STRING0 ) ) ; \n + PrefixList prefixList = new PrefixList ( ImmutableList . of ( STRING0 ) ) ; \n Assert . assertTrue ( prefixList . inList ( STRING1 ) ) ; \n \n Assert . assertTrue ( prefixList . outList ( STRING0 ) ) ; \n public final class PrefixListTest { \n COMMENT \n @ test \n public void prefixListTest ( ) { \n - PrefixList prefixList = new PrefixList ( ImmutableList . < String > of ( STRING2 , STRING3 , STRING4 ) ) ; \n + PrefixList prefixList = new PrefixList ( ImmutableList . of ( STRING2 , STRING3 , STRING4 ) ) ; \n Assert . assertTrue ( prefixList . inList ( STRING2 ) ) ; \n Assert . assertTrue ( prefixList . inList ( STRING3 ) ) ; \n Assert . assertTrue ( prefixList . inList ( STRING4 ) ) ;", "msg_token": "SMALLFIX Removed inferred type"} {"diff": " public class TransformationUtils { \n } \n \n m . setScale ( scale , scale ) ; \n - m . postTranslate ( ( int ) dx + FLOAT0 , ( int ) dy + FLOAT0 ) ; \n + m . postTranslate ( ( int ) ( dx + FLOAT0 ) , ( int ) ( dy + FLOAT0 ) ) ; \n final Bitmap result ; \n if ( recycled != null ) { \n result = recycled ;", "msg_token": "Fix an order of operations error in CenterCrop"} {"diff": " public class ProjectWindowActionGroup extends DefaultActionGroup { \n final List < ProjectWindowAction > duplicateWindowActions = findWindowActionsWithProjectName ( projectName ) ; \n if ( ! duplicateWindowActions . isEmpty ( ) ) { \n for ( ProjectWindowAction action : duplicateWindowActions ) { \n - action . getTemplatePresentation ( ) . setText ( FileUtil . getLocationRelativeToUserHome ( \n - FileUtil . toSystemDependentName ( action . getProjectLocation ( ) ) ) ) ; \n + action . getTemplatePresentation ( ) . setText ( FileUtil . getLocationRelativeToUserHome ( action . getProjectLocation ( ) ) ) ; \n } \n - windowAction . getTemplatePresentation ( ) . setText ( FileUtil . getLocationRelativeToUserHome ( \n - FileUtil . toSystemDependentName ( windowAction . getProjectLocation ( ) ) ) ) ; \n + windowAction . getTemplatePresentation ( ) . setText ( FileUtil . getLocationRelativeToUserHome ( windowAction . getProjectLocation ( ) ) ) ; \n } \n add ( windowAction ) ; \n latest = windowAction ;", "msg_token": "remove unnecessary call to FileUtil toSystemDependentName now that getPresentableUrl is used instead of getLocation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix imports in examples"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n public class QSTileView extends QSTileBaseView { \n public class QSTileView extends QSTileBaseView { \n \n protected void handleStateChanged ( QSTile . State state ) { \n super . handleStateChanged ( state ) ; \n - mLabel . setText ( state . label ) ; \n + if ( ! Objects . equal ( mLabel . getText ( ) , state . label ) ) { \n + mLabel . setText ( state . label ) ; \n + } \n mLabel . setEnabled ( ! state . disabledByPolicy ) ; \n mPadLock . setVisibility ( state . disabledByPolicy ? View . VISIBLE : View . GONE ) ; \n }", "msg_token": "Don t set the text on QS Tiles unless we need to"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n SINGLE \n nullLayouts ( ) ; \n requestLayout ( ) ; \n + invalidate ( ) ; \n } \n \n @ override", "msg_token": "Always invalidate TextView on checkForRelayout"} {"diff": " public class StatsUtils { \n gmtDf . setTimeZone ( TimeZone . getTimeZone ( STRING0 + blogTimeZoneOption ) ) ; \n } \n } \n - AppLog . e ( T . STATS , STRING1 + gmtDf . format ( date ) ) ; \n return gmtDf . format ( date ) ; \n } \n \n public class StatsService extends Service { \n String todayStats = StatsUtils . getCurrentDate ( ) ; \n String yesterdayStats = StatsUtils . getYesterdaysDate ( ) ; \n SINGLE \n + SINGLE \n if ( mServiceBlogTimezone != null ) { \n todayStats = StatsUtils . getCurrentDateTZ ( mServiceBlogTimezone ) ; \n yesterdayStats = StatsUtils . getYesterdaysDateTZ ( mServiceBlogTimezone ) ;", "msg_token": "Remove logging lines"} {"diff": " public class RobinEngine extends AbstractIndexShardComponent implements Engine { \n throw new FlushNotAllowedEngineException ( shardId , STRING0 ) ; \n } \n \n - SINGLE \n - \n try { \n \n if ( flush . full ( ) ) {", "msg_token": "remove comment that is no longer relevant"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class XmlAutoLookupHandler extends CodeCompletionHandlerBase { \n PsiFile file = context . file ; \n int offset = context . getStartOffset ( ) ; \n \n - PsiElement lastElement = file . findElementAt ( offset - NUMBER0 ) ; \n + PsiElement lastElement = InjectedLanguageUtil . findElementAtNoCommit ( file , offset - NUMBER0 ) ; \n if ( lastElement == null ) return ; \n \n final Ref < Boolean > isRelevantLanguage = new Ref < Boolean > ( ) ;", "msg_token": "do not invoke completion in injected fragments"} {"diff": " public class OrderedFilterBeanDefinitionDecorator implements BeanDefinitionDecor \n \n public final int getOrder ( ) { \n if ( order == null ) { \n - Assert . isInstanceOf ( Ordered . class , STRING0 + beanName + STRING1 + \n + Assert . isInstanceOf ( Ordered . class , delegate , STRING0 + beanName + STRING1 + \n STRING2 + ATT_AFTER + STRING3 + \n ATT_BEFORE + STRING4 + Elements . CUSTOM_FILTER + STRING5 ) ;", "msg_token": "Corrected check on whether delegate implements Ordered interface"} {"diff": " public abstract class SharedTreeModelBuilder < TM extends DTree . TreeModel > extends \n \n protected abstract float [ ] [ ] doVarImpCalc ( TM model , DTree [ ] ktrees , int tid , Frame validationFrame ) ; \n \n - ConfusionMatrix [ ] toCMArray ( long [ ] [ ] [ ] cms ) { \n + private ConfusionMatrix [ ] toCMArray ( long [ ] [ ] [ ] cms ) { \n int n = cms . length ; \n ConfusionMatrix [ ] res = new ConfusionMatrix [ n ] ; \n for ( int i = NUMBER0 ; i < n ; i ++ ) res [ i ] = new ConfusionMatrix ( cms [ i ] ) ;", "msg_token": "Make proper API by hiding uninterested methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IndexUploader { \n while ( entries . hasMoreElements ( ) ) { \n ZipEntry entry = entries . nextElement ( ) ; \n long lastModified = slastModified ; \n + if ( entry . getTime ( ) < lastModified ) { \n + lastModified = entry . getTime ( ) ; \n + } \n File tempFile = new File ( f . getParentFile ( ) , entry . getName ( ) ) ; \n InputStream zin = zipFile . getInputStream ( entry ) ; \n FileOutputStream out = new FileOutputStream ( tempFile ) ;", "msg_token": "Fix modified date"} {"diff": " public final class GatedStreamSinkChannel implements StreamSinkChannel { \n } \n boolean flushed = delegate . flush ( ) ; \n if ( flushed && anyAreSet ( val | setFlags , FLAG_CLOSE_SENT ) ) { \n + delegate . suspendWrites ( ) ; \n + delegate . getWriteSetter ( ) . set ( null ) ; \n setFlags |= FLAG_CLOSE_DONE ; \n } \n return flushed ; \n public final class GatedStreamSinkChannel implements StreamSinkChannel { \n return ; \n } \n try { \n - if ( allAreSet ( val , FLAG_GATE_OPEN ) && allAreSet ( config , CONF_FLAG_PASS_CLOSE ) ) { \n - delegate . close ( ) ; \n + if ( allAreSet ( val , FLAG_GATE_OPEN ) ) { \n + delegate . suspendWrites ( ) ; \n + delegate . getWriteSetter ( ) . set ( null ) ; \n + if ( allAreSet ( config , CONF_FLAG_PASS_CLOSE ) ) { \n + delegate . close ( ) ; \n + } \n } \n } finally { \n exit ( val , FLAG_IN , NUMBER0 ) ;", "msg_token": "Always suspend writes on the delegate channel on close even if close is not propagated"} {"diff": " public class ApkMojo extends AbstractAndroidMojo { \n COMMENT \n private String nativeLibrariesDependenciesHardwareArchitectureOverride ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private File [ ] sourceDirectories ; \n + \n private static final Pattern PATTERN_JAR_EXT = Pattern . compile ( STRING0 , NUMBER0 ) ; \n \n public void execute ( ) throws MojoExecutionException , MojoFailureException { \n public class ApkMojo extends AbstractAndroidMojo { \n File dexFile = new File ( project . getBuild ( ) . getDirectory ( ) , STRING1 ) ; \n File zipArchive = new File ( project . getBuild ( ) . getDirectory ( ) , project . getBuild ( ) . getFinalName ( ) + STRING2 ) ; \n ArrayList < File > sourceFolders = new ArrayList < File > ( ) ; \n + for ( File f : sourceDirectories ) { \n + sourceFolders . add ( f ) ; \n + } \n ArrayList < File > jarFiles = new ArrayList < File > ( ) ; \n ArrayList < File > nativeFolders = new ArrayList < File > ( ) ;", "msg_token": "created a small change that adds the possibility to give the plugin"} {"diff": " public class DatabaseShardManager \n @ override \n public void assignShard ( UUID shardUuid , String nodeIdentifier ) \n { \n - dao . insertShardNode ( shardUuid , getOrCreateNodeId ( nodeIdentifier ) ) ; \n + long nodeId = getOrCreateNodeId ( nodeIdentifier ) ; \n + \n + SINGLE \n + runIgnoringConstraintViolation ( ( ) - > dao . insertShardNode ( shardUuid , nodeId ) ) ; \n } \n \n private long getOrCreateNodeId ( String nodeIdentifier )", "msg_token": "Fix race condition when assigning Raptor shards"} {"diff": " public class ListTest { \n List . empty ( ) . get ( NUMBER0 ) ; \n } \n \n + @ test \n + public void shouldGetFirstElement ( ) { \n + List . of ( ( Object ) null ) . get ( NUMBER0 ) ; \n + } \n + \n @ test ( expected = IndexOutOfBoundsException . class ) \n public void shouldThrowOnGetExceedingUpperBound ( ) { \n List . of ( ( Object ) null ) . get ( NUMBER1 ) ;", "msg_token": "Added test for List get"} {"diff": " public class ApplicationImpl extends PlatformComponentManagerImpl implements App \n ShutDownTracker . getInstance ( ) . registerShutdownTask ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - if ( isDisposed ( ) || isDisposeInProgress ( ) ) { \n + if ( isDisposed ( ) || myDisposeInProgress ) { \n return ; \n } \n ShutDownTracker . invokeAndWait ( isUnitTestMode ( ) , true , new Runnable ( ) {", "msg_token": "dispose application components in tests"} {"diff": " public class StorageService extends NotificationBroadcasterSupport implements IE \n Gossiper . instance . removeEndpoint ( ep ) ; \n if ( ! tokensToUpdateInSystemTable . isEmpty ( ) ) \n SystemTable . updateTokens ( endpoint , tokensToUpdateInSystemTable ) ; \n - SystemTable . updateLocalTokens ( Collections . < Token > emptyList ( ) , localTokensToRemove ) ; \n + if ( ! localTokensToRemove . isEmpty ( ) ) \n + SystemTable . updateLocalTokens ( Collections . < Token > emptyList ( ) , localTokensToRemove ) ; \n \n if ( tokenMetadata . isMoving ( endpoint ) ) SINGLE \n {", "msg_token": "Don t update local tokens when localTokensToRemove is empty"} {"diff": " public class Html extends HtmlNode { \n COMMENT \n COMMENT \n COMMENT \n - public static boolean DISABLE_HTML_ENTITY_ESCAPE = true ; \n + public static boolean DISABLE_HTML_ENTITY_ESCAPE = false ; \n \n COMMENT \n COMMENT \n public class Html extends HtmlNode { \n if ( DISABLE_HTML_ENTITY_ESCAPE && ! INITED ) { \n Entities . EscapeMode . base . getMap ( ) . clear ( ) ; \n Entities . EscapeMode . extended . getMap ( ) . clear ( ) ; \n + Entities . EscapeMode . xhtml . getMap ( ) . clear ( ) ; \n INITED = true ; \n } \n } \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HtmlTest { \n assertThat ( html . regex ( STRING0 ) . toString ( ) ) . isEqualTo ( STRING1 ) ; \n } \n \n + @ ignore ( STRING2 ) \n @ test \n public void testEnableJsoupHtmlEntityEscape ( ) throws Exception { \n Html . DISABLE_HTML_ENTITY_ESCAPE = false ;", "msg_token": "ignore some test"} {"diff": " public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport { \n if ( nextNode == null ) nextNode = current . getUnresolvedSuperClass ( ) ; \n current = nextNode ; \n if ( current == null ) { \n - throw new GroovyBugError ( STRING0 ) ; \n + throw new GroovyBugError ( \n + STRING1 + \n + declaringClass . getName ( ) + STRING2 + method . getName ( ) + \n + method . getTypeDescriptor ( ) + STRING3 + \n + STRING4 + receiver . getName ( ) + STRING5 + \n + STRING6 ) ; \n } \n } \n return resolvedPlaceholders ;", "msg_token": "improve bug error message for mismatched declaring class"} {"diff": " public class Roster { \n } \n \n SINGLE \n - synchronized ( this ) { \n + synchronized ( Roster . this ) { \n rosterInitialized = true ; \n - notifyAll ( ) ; \n + Roster . this . notifyAll ( ) ; \n } \n \n SINGLE", "msg_token": "Fixed notification problem with Roster that was making XMPPConnection getRoster to take too long"} {"diff": " public class DatabaseDescriptor \n } \n catch ( UnknownHostException e ) \n { \n - logger . error ( STRING0 + e . getMessage ( ) ) ; \n + logger . error ( STRING1 , e ) ; \n System . err . println ( STRING2 ) ; \n System . exit ( NUMBER0 ) ; \n } \n catch ( ConfigurationException e ) \n { \n - logger . error ( STRING0 + e . getMessage ( ) ) ; \n + logger . error ( STRING3 , e ) ; \n System . err . println ( STRING4 ) ; \n System . exit ( NUMBER1 ) ; \n } \n catch ( YAMLException e ) \n { \n - logger . error ( STRING0 + e . getMessage ( ) ) ; \n + logger . error ( STRING5 , e ) ; \n System . err . println ( STRING4 ) ; \n System . exit ( NUMBER1 ) ; \n }", "msg_token": "include stacktrace for configuration errors in system log"} {"diff": " final class HdmiLogger { \n SINGLE \n private static final long ERROR_LOG_DURATTION_MILLIS = NUMBER0 * NUMBER1 ; SINGLE \n \n - private static final boolean DEBUG = true ; \n + private static final boolean DEBUG = false ; \n \n SINGLE \n SINGLE", "msg_token": "Disable the debug flag in HdmiLogger"} {"diff": " public class BuildCraftTransport extends BuildCraftMod { \n if ( i == NUMBER0 ) { \n glass = ingredients [ NUMBER1 ] ; \n } else { \n - glass = new ItemStack ( Blocks . stained_glass , NUMBER1 , i - NUMBER1 ) ; \n + glass = STRING0 + EnumColor . fromId ( NUMBER2 - ( i - NUMBER1 ) ) . getName ( ) ; \n } \n \n recipe . result = new ItemStack ( res , NUMBER3 , i ) ;", "msg_token": "add oredict support to stained pipe recipe"} {"diff": " public class ReactContext extends ContextWrapper { \n } \n } \n \n + public boolean hasCurrentActivity ( ) { \n + return mCurrentActivity != null ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public boolean startActivityForResult ( Intent intent , int code , Bundle bundle ) { \n - if ( mCurrentActivity == null ) { \n - return false ; \n - } \n + Assertions . assertNotNull ( mCurrentActivity ) ; \n mCurrentActivity . startActivityForResult ( intent , code , bundle ) ; \n return true ; \n }", "msg_token": "add method to determine if current activity is null"} {"diff": " public class StringLogger \n { \n out . println ( new Date ( ) + STRING0 + msg + STRING1 + cause . getMessage ( ) ) ; \n cause . printStackTrace ( out ) ; \n + out . flush ( ) ; \n } \n \n public synchronized static void close ( String filename )", "msg_token": "Added flush for logMessage with stacktrace"} {"diff": " public abstract class ChooseByNameBase { \n ApplicationAdapter listener = new ApplicationAdapter ( ) { \n @ override \n public void beforeWriteActionStart ( Object action ) { \n - cancel ( ) ; \n - scheduleRestart ( ) ; \n + if ( cancel ( ) ) { \n + scheduleRestart ( ) ; SINGLE \n + } \n ApplicationManager . getApplication ( ) . removeApplicationListener ( this ) ; \n } \n } ;", "msg_token": "fixing ChooseByNameBase assertions"} {"diff": " public class AdminServlet extends HttpServlet { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n + STRING4 + \n STRING5 + \n STRING6 + \n STRING7 \n public class AdminServletTest extends AbstractServletTest { \n STRING8 + \n STRING9 + \n STRING10 + \n - STRING11 + \n + STRING12 + \n STRING5 + \n STRING6 + \n STRING13", "msg_token": "AdminServlet generates pretty print link to healthchecks"} {"diff": " public class XmppConnectionService extends Service implements OnPhoneContactsLoa \n long pingTimeoutIn = ( lastSent + Config . PING_TIMEOUT * NUMBER0 ) - SystemClock . elapsedRealtime ( ) ; \n if ( lastSent > lastReceived ) { \n if ( pingTimeoutIn < NUMBER1 ) { \n - long age = ( SystemClock . elapsedRealtime ( ) - account . getXmppConnection ( ) . getLastConnect ( ) ) / NUMBER0 ; \n - Log . d ( Config . LOGTAG , account . getJid ( ) . toBareJid ( ) + STRING0 + age + STRING1 ) ; \n + Log . d ( Config . LOGTAG , account . getJid ( ) . toBareJid ( ) + STRING2 ) ; \n this . reconnectAccount ( account , true ) ; \n } else { \n int secs = ( int ) ( pingTimeoutIn / NUMBER0 ) ;", "msg_token": "removed unnecessary inacurate debug logging"} {"diff": " public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n COMMENT \n COMMENT \n private int getEncryptionStatus ( ) { \n - if ( ! StorageManager . isNonDefaultBlockEncrypted ( ) ) { \n - return DevicePolicyManager . ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY ; \n - } else if ( StorageManager . isEncrypted ( ) ) { \n - return DevicePolicyManager . ENCRYPTION_STATUS_ACTIVE ; \n + if ( StorageManager . isEncrypted ( ) ) { \n + return StorageManager . isNonDefaultBlockEncrypted ( ) ? \n + DevicePolicyManager . ENCRYPTION_STATUS_ACTIVE \n + : DevicePolicyManager . ENCRYPTION_STATUS_ACTIVE_DEFAULT_KEY ; \n } else if ( StorageManager . isEncryptable ( ) ) { \n return DevicePolicyManager . ENCRYPTION_STATUS_INACTIVE ; \n } else {", "msg_token": "Fix bug in new encryption API"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Token { \n \n - public static final char SEPARATOR_CHAR = STRING0 ; \n + public static final char SEPARATOR_CHAR = NUMBER0 ; \n \n public static final String systemETprefix = Graph . Hidden . hide ( STRING1 ) ; \n public static final String NON_EXISTANT_TYPE = systemETprefix + STRING2 ;", "msg_token": "Changed the separator char"} {"diff": " public class GitRefManagerTest extends UsefulTestCase { \n expect ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ) ) ; \n } \n \n - @ override \n - protected void setUp ( ) throws Exception { \n - super . setUp ( ) ; \n - \n - } \n - \n private static Collection < VcsRef > given ( String . . . refs ) { \n return convertToRefs ( refs ) ; \n }", "msg_token": "git remove trivial test setup"} {"diff": " public class StompComponent extends UriEndpointComponent { \n public void setPasscode ( String passcode ) { \n getConfiguration ( ) . setPasscode ( passcode ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setHost ( String host ) { \n + getConfiguration ( ) . setHost ( host ) ; \n + } \n }", "msg_token": "added setter for host config option to the component"} {"diff": " class DBCollectionImpl extends DBCollection { \n } \n run . add ( writeRequest , curIndex ) ; \n curIndex ++ ; \n - if ( run . size ( ) > maxBatchWriteSize ) { \n + if ( run . size ( ) == maxBatchWriteSize ) { \n return runs . remove ( run . type ) ; \n } \n }", "msg_token": "Fixed off by one error in UnorderedRunGenerator"} {"diff": " public class VcsUtil { \n } ) ; \n } \n \n - public static boolean isPathUnderProject ( Project project , final String path ) { \n - VirtualFile vfPath = getVirtualFile ( path ) ; \n - return isPathUnderProject ( project , vfPath ) ; \n - } \n - \n public static boolean isPathUnderProject ( Project project , final VirtualFile vf ) { \n if ( vf != null && ! FileTypeManager . getInstance ( ) . isFileIgnored ( vf . getPath ( ) ) ) { \n Module mod = ProjectRootManager . getInstance ( project ) . getFileIndex ( ) . getModuleForFile ( vf ) ;", "msg_token": "remove module dependent methods from VcsUtil"} {"diff": " public class RootsFragment extends Fragment { \n \n for ( final RootInfo root : roots ) { \n final RootItem item = new RootItem ( root ) ; \n - if ( root . isLibrary ( ) || root . isHome ( ) ) { \n + if ( root . isLibrary ( ) ) { \n libraries . add ( item ) ; \n } else { \n others . add ( item ) ;", "msg_token": "Move the home root below the divider"} {"diff": " public abstract class GridFSFile implements DBObject { \n return _uploadDate ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n public List < String > getAliases ( ) { \n return ( List < String > ) _metadata . get ( STRING0 ) ; \n }", "msg_token": "added a comment about aliases"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "not throw exception"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public boolean isTransitionGroup ( ) { \n if ( ( mGroupFlags & FLAG_IS_TRANSITION_GROUP_SET ) != NUMBER0 ) { \n return ( ( mGroupFlags & FLAG_IS_TRANSITION_GROUP ) != NUMBER0 ) ; \n } else { \n - return getBackground ( ) != null || getTransitionName ( ) != null ; \n + final ViewOutlineProvider outlineProvider = getOutlineProvider ( ) ; \n + return getBackground ( ) != null || getTransitionName ( ) != null || \n + ( outlineProvider != null && outlineProvider != ViewOutlineProvider . BACKGROUND ) ; \n } \n }", "msg_token": "Make setOutlineProvider change transitionGroup"} {"diff": " public class SvnBranchConfiguration { \n final SVNURL currentUrl = dirEntry . getURL ( ) ; \n if ( ! branchesUrl . equals ( currentUrl ) ) { \n final String url = currentUrl . toString ( ) ; \n - result . add ( new SvnBranchItem ( url , dirEntry . getDate ( ) , dirEntry . getRevision ( ) ) ) ; \n + SINGLE \n + if ( dirEntry . getDate ( ) != null ) { \n + result . add ( new SvnBranchItem ( url , dirEntry . getDate ( ) , dirEntry . getRevision ( ) ) ) ; \n + } \n } \n } \n } ) ;", "msg_token": "do not add forbidden folders to default branch list"} {"diff": " public class CodeNarc extends SourceTask implements VerificationTask , Reporting < \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - @ input \n + @ deprecated \n public boolean getIgnoreFailures ( ) { \n return ignoreFailures ; \n } \n public class CodeNarc extends SourceTask implements VerificationTask , Reporting < \n COMMENT \n COMMENT \n COMMENT \n + @ input \n public boolean isIgnoreFailures ( ) { \n return ignoreFailures ; \n } \n public class FindBugs extends SourceTask implements VerificationTask , Reporting < \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - @ input \n + @ deprecated \n public boolean getIgnoreFailures ( ) { \n return ignoreFailures ; \n } \n public class FindBugs extends SourceTask implements VerificationTask , Reporting < \n COMMENT \n COMMENT \n COMMENT \n + @ input \n public boolean isIgnoreFailures ( ) { \n return ignoreFailures ; \n }", "msg_token": "Fix annotations on getters and make the boolean get versions deprecated"} {"diff": " public final class ExecutionVertex { \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n \n - SINGLE \n - ExecutionStateTransition . checkTransition ( getName ( ) , this . executionState . get ( ) , update ) ; \n - \n if ( ! this . executionState . compareAndSet ( expected , update ) ) { \n return false ; \n } \n + \n + SINGLE \n + ExecutionStateTransition . checkTransition ( toString ( ) , this . executionState . get ( ) , update ) ; \n \n SINGLE \n final Iterator < ExecutionListener > it = this . executionListeners . values ( ) . iterator ( ) ;", "msg_token": "Fixed misleading log messages in compareAndUpdateExecutionState method of ExecutionVertex"} {"diff": " public class ThunderbirdContactQuery \n Pattern query ) \n { \n super ( owner , query ) ; \n - start ( ) ; \n } \n \n COMMENT", "msg_token": "Don t auto start the query"} {"diff": " public final class PoolElf \n return connection . isValid ( timeoutSec ) ; \n } \n \n - networkTimeout = getAndSetNetworkTimeout ( connection , validationTimeout ) ; \n + final int originalTimeout = getAndSetNetworkTimeout ( connection , validationTimeout ) ; \n \n try ( Statement statement = connection . createStatement ( ) ) { \n setQueryTimeout ( statement , timeoutSec ) ; \n public final class PoolElf \n connection . rollback ( ) ; \n } \n \n - setNetworkTimeout ( connection , networkTimeout ) ; \n + setNetworkTimeout ( connection , originalTimeout ) ; \n \n return true ; \n }", "msg_token": "Fix overwrite of networkTimeout harmless but inefficient"} {"diff": " public class FileOutStreamTest { \n private static final long BLOCK_LENGTH = NUMBER0 ; \n private static final AlluxioURI FILE_NAME = new AlluxioURI ( STRING0 ) ; \n \n - private AlluxioBlockStore mBlockStore ; \n private BlockStoreContext mBlockStoreContext ; \n private FileSystemContext mFileSystemContext ; \n private FileSystemMasterClient mFileSystemMasterClient ; \n public class FileOutStreamTest { \n \n SINGLE \n mFileSystemContext = PowerMockito . mock ( FileSystemContext . class ) ; \n - mBlockStore = PowerMockito . mock ( AlluxioBlockStore . class ) ; \n + AlluxioBlockStore mBlockStore = PowerMockito . mock ( AlluxioBlockStore . class ) ; \n mBlockStoreContext = PowerMockito . mock ( BlockStoreContext . class ) ; \n mFileSystemMasterClient = PowerMockito . mock ( FileSystemMasterClient . class ) ; \n \n public class FileOutStreamTest { \n throws IOException { \n Whitebox . setInternalState ( BlockStoreContext . class , STRING1 , mBlockStoreContext ) ; \n Whitebox . setInternalState ( FileSystemContext . class , STRING1 , mFileSystemContext ) ; \n - FileOutStream stream = new FileOutStream ( path , options ) ; \n - return stream ; \n + return new FileOutStream ( path , options ) ; \n } \n }", "msg_token": "SMALLFIX Converted field to local variable and simplified return statement in FileOutStreamTest"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n it . remove ( ) ; \n } else if ( way . isTag ( STRING0 , STRING1 ) || way . isTag ( STRING0 , STRING2 ) ) { \n it . remove ( ) ; \n + } else if ( way . isTag ( STRING3 , STRING4 ) ) { \n + SINGLE \n + SINGLE \n + it . remove ( ) ; \n } else { \n SINGLE \n List < Long > nodes = way . getNodeRefs ( ) ;", "msg_token": "filter out area yes ways"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT \n public final class DeleteLineageOptionsTest { \n COMMENT \n @ test \n public void builderTest ( ) { \n - DeleteLineageOptions options = \n - new DeleteLineageOptions . Builder ( new TachyonConf ( ) ) . setCascade ( true ) . build ( ) ; \n + DeleteLineageOptions options = DeleteLineageOptions . defaults ( ) . setCascade ( true ) ; \n Assert . assertTrue ( options . isCascade ( ) ) ; \n }", "msg_token": "fixed the test"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n if ( mAppTransition . isTransitionSet ( ) ) { \n task . setSendingToBottom ( false ) ; \n } \n + moveStackWindowsLocked ( stack . getDisplayContent ( ) ) ; \n } \n } finally { \n Binder . restoreCallingIdentity ( origId ) ;", "msg_token": "Doesn t re sort app windows when move task to top"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StartupService { \n private void addIntroTask ( Resources r , int summary , int note ) { \n Task task = new Task ( ) ; \n task . setValue ( Task . TITLE , r . getString ( summary ) ) ; \n - task . setValue ( Task . DETAILS , r . getString ( R . string . intro_click_prompt ) ) ; \n + task . setValue ( Task . DETAILS , STRING0 + SINGLE \n + r . getString ( R . string . intro_click_prompt ) ) ; \n task . setValue ( Task . DETAILS_DATE , NUMBER0 * DateUtilities . now ( ) ) ; \n task . setValue ( Task . NOTES , r . getString ( note ) ) ; \n taskService . save ( task ) ;", "msg_token": "intro tasks all get note icon"} {"diff": " public class PublicStaticCollectionFieldInspection extends FieldInspection { \n return ; \n } \n final PsiType type = field . getType ( ) ; \n - if ( ! CollectionUtils . isCollectionClass ( type ) ) { \n + if ( ! CollectionUtils . isCollectionClassOrInterface ( type ) ) { \n return ; \n } \n registerFieldError ( field ) ;", "msg_token": "Public static collection field inspection now catches a lot more cases"} {"diff": " \n package NAMESPACE ; \n \n public interface StoreConfig { \n - String getUuid ( ) ; \n String getStoreUri ( ) ; \n String getTransportUri ( ) ; \n \n public class LocalStore extends Store implements Serializable { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private static void removeInstance ( StoreConfig account ) { \n + private static void removeInstance ( Account account ) { \n String accountUuid = account . getUuid ( ) ; \n sLocalStores . remove ( accountUuid ) ; \n }", "msg_token": "Remove getUuid from StoreConfig"} {"diff": " public final class CommandLineRunnerTest extends TestCase { \n new FlagEntry < > ( JsSourceType . JS , glob2 ) ) ; \n } \n \n - public void testGlobJs6 ( ) throws IOException , FlagUsageException { \n + public void testGlobJs5 ( ) throws IOException , FlagUsageException { \n FlagEntry < JsSourceType > jsFile1 = createJsFile ( STRING0 , STRING1 ) ; \n FlagEntry < JsSourceType > jsFile2 = createJsFile ( STRING2 , STRING3 ) ; \n File temp1 = Files . createTempDir ( ) ;", "msg_token": "Rename testGlobJs6 to testGlobJs5"} {"diff": " public class Client { \n } \n \n public JobExecutionResult run ( final PackagedProgram prog , int parallelism , boolean wait ) throws ProgramInvocationException { \n + Thread . currentThread ( ) . setContextClassLoader ( prog . getUserCodeClassLoader ( ) ) ; \n if ( prog . isUsingProgramEntryPoint ( ) ) { \n return run ( prog . getPlanWithJars ( ) , parallelism , wait ) ; \n }", "msg_token": "Fixes an issue with wrong ClassLoader when submitting JobJars"} {"diff": " public interface ApplicationConfig { \n COMMENT \n COMMENT \n String BROADCASTER_POLICY_TIMEOUT = Broadcaster . POLICY . class . getName ( ) + STRING0 ; \n - < < < < < < < HEAD \n COMMENT \n COMMENT \n COMMENT \n public interface ApplicationConfig { \n COMMENT \n String HANDLER_MAPPING_REGEX = ApplicationConfig . class . getPackage ( ) . getName ( ) + STRING1 ; \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - String SHOW_SUPPORT_MESSAGE = ApplicationConfig . class . getPackage ( ) . getName ( ) + STRING2 ; \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix merge clash"} {"diff": " class BatteryService extends Binder { \n SINGLE \n SINGLE \n if ( mPlugType != NUMBER0 && mLastPlugType == NUMBER0 ) { \n - mContext . sendBroadcast ( new Intent ( Intent . ACTION_POWER_CONNECTED ) ) ; \n + Intent intent = new Intent ( Intent . ACTION_POWER_CONNECTED ) ; \n + intent . addFlags ( Intent . FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; \n + mContext . sendBroadcast ( intent ) ; \n } \n else if ( mPlugType == NUMBER0 && mLastPlugType != NUMBER0 ) { \n - mContext . sendBroadcast ( new Intent ( Intent . ACTION_POWER_DISCONNECTED ) ) ; \n + Intent intent = new Intent ( Intent . ACTION_POWER_DISCONNECTED ) ; \n + intent . addFlags ( Intent . FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT ) ; \n + mContext . sendBroadcast ( intent ) ; \n } \n \n mLastBatteryStatus = mBatteryStatus ;", "msg_token": "Fix system service crash when booting while on battery power"} {"diff": " public class PasswordPromptComponent { \n } \n \n public JComponent getPreferredFocusedComponent ( ) { \n - return StringUtil . isEmpty ( myUserTextField . getText ( ) ) ? myUserTextField : myPasswordField ; \n + return myUserTextField . isEnabled ( ) && StringUtil . isEmpty ( myUserTextField . getText ( ) ) ? myUserTextField : myPasswordField ; \n } \n \n private void setUserInputVisible ( boolean visible ) {", "msg_token": "Fix default focus for password prompt field"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + \n import NAMESPACE ; \n + \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RealBlueprintDeployer extends BlueprintDeployer { \n } \n } \n \n + Translation transform = new Translation ( ) ; \n + \n + transform . x = x - bpt . anchorX ; \n + transform . y = y - bpt . anchorY ; \n + transform . z = z - bpt . anchorZ ; \n + \n + bpt . transformToWorld ( transform ) ; \n + \n new BptBuilderBlueprint ( bpt , world , x , y , z ) . deploy ( ) ; \n }", "msg_token": "added missing tranformation in deployer"} {"diff": " public class ExpiringCache < K , V > { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private Entry < V > computeIfAbsent ( K key ) { \n + Entry < V > v = map . get ( key ) ; \n + if ( v == null ) { \n + Entry < V > tmp = entryGetter . apply ( key ) ; \n + v = map . putIfAbsent ( key , tmp ) ; \n + if ( v == null ) { \n + v = tmp ; \n + } \n + } \n + return v ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public V get ( final K key ) { \n - Entry < V > entry = map . computeIfAbsent ( key , entryGetter ) ; \n + Entry < V > entry = computeIfAbsent ( key ) ; \n return entry . getValue ( ) ; \n }", "msg_token": "reduce thread contention for expiring cache"} {"diff": " public abstract class AbstractDynamicMethodsInterceptor extends AbstractDynamicM \n private boolean doInvoke = true ; \n private boolean doGet = true ; \n private boolean doSet = true ; \n + private Object returnValue ; \n \n public AbstractDynamicMethodsInterceptor ( Class theClass ) throws IntrospectionException { \n super ( theClass ) ; \n public abstract class AbstractDynamicMethodsInterceptor extends AbstractDynamicM \n public Object beforeInvoke ( Object target , String methodName , \n Object [ ] arguments ) { \n InvocationCallback callback = new InvocationCallback ( ) ; \n - Object returnValue = super . invokeMethod ( target , methodName , arguments , callback ) ; \n + this . returnValue = super . invokeMethod ( target , methodName , arguments , callback ) ; \n SINGLE \n SINGLE \n if ( callback . isInvoked ( ) ) { \n public abstract class AbstractDynamicMethodsInterceptor extends AbstractDynamicM \n \n public Object afterInvoke ( Object object , String methodName , \n Object [ ] arguments , Object result ) { \n - return null ; \n + return this . returnValue ; \n } \n \n public boolean doInvoke ( ) {", "msg_token": "fixed null pointer bug with default behaviour of the after interceptor call"} {"diff": " public class PercolatorTests extends ElasticsearchIntegrationTest { \n . endObject ( ) \n . endArray ( ) \n . endObject ( ) . endObject ( ) ) ) ; \n + ensureGreen ( STRING0 ) ; \n \n client ( ) . prepareIndex ( STRING0 , PercolatorService . TYPE_NAME , STRING1 ) \n . setSource ( jsonBuilder ( ) . startObject ( ) . field ( STRING2 , QueryBuilders . queryString ( STRING3 ) ) . endObject ( ) ) \n public class PercolatorTests extends ElasticsearchIntegrationTest { \n assertMatchCount ( response , NUMBER0 l ) ; \n assertThat ( response . getMatches ( ) , arrayWithSize ( NUMBER0 ) ) ; \n \n - ensureYellow ( STRING4 ) ; SINGLE \n - waitForConcreteMappingsOnAll ( STRING4 , STRING5 , STRING6 , STRING7 ) ; \n + waitForMappingOnMaster ( STRING4 , STRING5 ) ; \n \n GetMappingsResponse mappingsResponse = client ( ) . admin ( ) . indices ( ) . prepareGetMappings ( STRING4 ) . get ( ) ; \n assertThat ( mappingsResponse . getMappings ( ) . get ( STRING4 ) , notNullValue ( ) ) ;", "msg_token": "TEST Fix PercolatorTests to wait for mappings on master"} {"diff": " import NAMESPACE ; \n COMMENT \n public class AccountImpl implements Account , Serializable { \n \n + private static final long serialVersionUID = NUMBER0 ; \n + \n private final String name ; \n private final Set < String > roles = new CopyOnWriteArraySet < > ( ) ; \n private final Principal principal ; \n public class AccountImpl implements Account , Serializable { \n \n private final class AccountPrincipal implements Principal , Serializable { \n \n + private static final long serialVersionUID = NUMBER0 ; \n + \n @ override \n public String getName ( ) { \n return name ;", "msg_token": "Add serialVersionUID to AccountImpl"} {"diff": " public class ScpOperations implements RemoteFileOperations < ScpFile > { \n if ( is == null ) { \n is = exchange . getIn ( ) . getMandatoryBody ( InputStream . class ) ; \n } \n - write ( channel , file , exchange . getIn ( ) . getMandatoryBody ( InputStream . class ) , cfg ) ; \n + write ( channel , file , is , cfg ) ; \n } catch ( InvalidPayloadException e ) { \n throw new GenericFileOperationFailedException ( STRING0 + name , e ) ; \n } catch ( IOException e ) {", "msg_token": "camel jsch may use wrong inputstream in store file"} {"diff": " public final class LocalProperties implements Cloneable { \n } \n \n \n - return isTrivial ( ) ; \n + return ! isTrivial ( ) ; \n \n }", "msg_token": "Fixed filterByNodesConstantSet in LocalProperties"} {"diff": " public class OTrackedList < T > extends ArrayList < T > implements ORecordElement , OTr \n public T set ( int index , T element ) { \n final T oldValue = super . set ( index , element ) ; \n \n - if ( ! oldValue . equals ( element ) ) \n + if ( oldValue != null && ! oldValue . equals ( element ) ) \n fireCollectionChangedEvent ( new OMultiValueChangeEvent < Integer , T > ( OMultiValueChangeEvent . OChangeType . UPDATE , index , element , \n oldValue ) ) ;", "msg_token": "Fixed NPE in Tracker Lists"} {"diff": " public class SQLEditor extends SQLEditorBase implements \n \n super . dispose ( ) ; \n \n - if ( sqlFile != null ) { \n + if ( sqlFile != null && ! PlatformUI . getWorkbench ( ) . isClosing ( ) ) { \n deleteFileIfEmpty ( sqlFile ) ; \n } \n }", "msg_token": "Do not delete empty SQL files during application shutdown"} {"diff": " import NAMESPACE ; \n public class ImmutableNameNotFoundException \n extends NameNotFoundException { \n \n + private static final long serialVersionUID = NUMBER0 ; \n + \n @ override \n - public void appendRemainingComponent ( String name ) { } \n + public void appendRemainingComponent ( String name ) { COMMENT } \n @ override \n - public void appendRemainingName ( Name name ) { } \n + public void appendRemainingName ( Name name ) { COMMENT } \n @ override \n - public void setRemainingName ( Name name ) { } \n + public void setRemainingName ( Name name ) { COMMENT } \n @ override \n - public void setResolvedName ( Name name ) { } \n + public void setResolvedName ( Name name ) { COMMENT } \n @ override \n - public void setRootCause ( Throwable e ) { } \n + public void setRootCause ( Throwable e ) { COMMENT } \n \n }", "msg_token": "Fix Eclipse warnings"} {"diff": " public class IndexDatabase { \n private boolean running ; \n private List < String > directories ; \n static final Logger log = Logger . getLogger ( IndexDatabase . class . getName ( ) ) ; \n - private static final Comparator fileComparator = new Comparator < File > ( ) { \n + private static final Comparator < File > fileComparator = new Comparator < File > ( ) { \n @ override \n public int compare ( File p1 , File p2 ) { \n return p1 . getName ( ) . compareTo ( p2 . getName ( ) ) ;", "msg_token": "Fixing compilation warnings for static comparator"} {"diff": " public class HttpRequest { \n COMMENT \n COMMENT \n public BufferedReader bufferedReader ( ) throws HttpRequestException { \n - return new BufferedReader ( reader ( charset ( ) ) , bufferSize ) ; \n + return bufferedReader ( charset ( ) ) ; \n } \n \n COMMENT", "msg_token": "DRY up call to bufferedReader with no character set specified"} {"diff": " public class SnappyFramedEncoderTest { \n \n channel . writeOutbound ( in ) ; \n assertTrue ( channel . finish ( ) ) ; \n + ByteBuf out = ( ByteBuf ) channel . readOutbound ( ) ; \n + out . release ( ) ; \n } \n }", "msg_token": "Fix reported leaks"} {"diff": " public class StopShort { \n public String name ; \n public double lat ; \n public double lon ; \n + public String url ; \n public String cluster ; \n \n COMMENT \n public class StopShort { \n name = stop . getName ( ) ; \n lat = stop . getLat ( ) ; \n lon = stop . getLon ( ) ; \n + url = stop . getUrl ( ) ; \n cluster = stop . getParentStation ( ) ; SINGLE \n }", "msg_token": "Add URL to Stop response in TransitIndex API"} {"diff": " public interface Pass { \n int UPDATE_FOLDING = NUMBER0 ; \n int POPUP_HINTS = NUMBER1 ; \n int UPDATE_ALL = NUMBER2 ; \n + COMMENT \n + @ deprecated \n + int UPDATE_OVERRIDDEN_MARKERS = NUMBER3 ; \n int LOCAL_INSPECTIONS = NUMBER4 ; \n int EXTERNAL_TOOLS = NUMBER5 ; \n int WOLF = NUMBER6 ;", "msg_token": "added constatnt back temporarily for compatibility"} {"diff": " import NAMESPACE ; \n COMMENT \n public class StandardRoot extends LifecycleMBeanBase implements WebResourceRoot { \n \n - private static final Log log = LogFactory . getLog ( Cache . class ) ; \n + private static final Log log = LogFactory . getLog ( StandardRoot . class ) ; \n protected static final StringManager sm = \n StringManager . getManager ( Constants . Package ) ;", "msg_token": "Fix wrong logger name of org apache catalina webresources StandardRoot"} {"diff": " public class PeopleListFragment extends Fragment { \n \n public interface OnFetchPeopleListener { \n boolean onFetchFirstPage ( PeopleListFilter filter ) ; \n + \n boolean onFetchMorePeople ( PeopleListFilter filter ) ; \n } \n \n public class PeopleListFragment extends Fragment { \n peopleViewHolder . txtDisplayName . setText ( StringUtils . unescapeHTML ( person . getDisplayName ( ) ) ) ; \n if ( person . getRole ( ) != null ) { \n peopleViewHolder . txtRole . setText ( StringUtils . capitalize ( person . getRole ( ) . toDisplayString ( ) ) ) ; \n + } else { \n + peopleViewHolder . txtRole . setText ( STRING0 ) ; \n } \n if ( ! person . getUsername ( ) . isEmpty ( ) ) { \n peopleViewHolder . txtUsername . setVisibility ( View . VISIBLE ) ;", "msg_token": "User role from Team shows up next to non user viewer"} {"diff": " public class BackupManagerService { \n return ; \n } \n \n + SINGLE \n + SINGLE \n + File stateDir = new File ( mBaseStateDir , transport . transportDirName ( ) ) ; \n + File pmState = new File ( stateDir , PACKAGE_MANAGER_SENTINEL ) ; \n + if ( pmState . length ( ) <= NUMBER0 ) { \n + Slog . i ( TAG , STRING0 \n + + STRING1 ) ; \n + return ; \n + } \n + \n SINGLE \n final int N = mPackages . size ( ) ; \n for ( int i = NUMBER0 ; i < N ; i ++ ) {", "msg_token": "Don t run full backups until package metadata has been pushed"} {"diff": " public class Shortcut implements DirectEdge , Serializable { \n } \n \n @ override \n - public double weightLowerBound ( TraverseOptions options ) { \n + public double timeLowerBound ( TraverseOptions options ) { \n return weight == - NUMBER0 ? NUMBER1 : weight ; \n } \n + \n + @ override \n + public double weightLowerBound ( TraverseOptions options ) { \n + return timeLowerBound ( options ) ; \n + } \n }", "msg_token": "implement missing timelowerbound method"} {"diff": " public class RcvChannelState \n { \n private final long channelId ; \n private int referenceCount ; \n - private final Map < Long , RcvSessionState > sessionStateMap ; \n + private final Long2ObjectHashMap < RcvSessionState > sessionStateMap ; \n \n public RcvChannelState ( final long channelId ) \n { \n public class RcvSessionState \n { \n private final InetSocketAddress srcAddr ; \n private final long sessionId ; \n - private final Map < Long , ByteBuffer > termStateMap ; \n + private final Long2ObjectHashMap < ByteBuffer > termStateMap ; \n \n public RcvSessionState ( final long sessionId , final InetSocketAddress srcAddr ) \n {", "msg_token": "remove some accidental boxing"} {"diff": " \n SINGLE \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n final class ConnectionManager extends SimpleChannelHandler { \n final Channel chan = ctx . getChannel ( ) ; \n if ( cause instanceof ClosedChannelException ) { \n LOG . warn ( STRING0 + chan ) ; \n + } else if ( cause instanceof IOException \n + && STRING1 . equals ( cause . getMessage ( ) ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } else { \n LOG . error ( STRING2 + chan , cause ) ; \n e . getChannel ( ) . close ( ) ;", "msg_token": "Don t log Connection reset by peer errors"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class FrameSplitterTest extends TestUtil { \n - @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; } \n + @ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER1 ) ; } \n \n @ test public void splitTinyFrame ( ) { \n Frame dataset = null ;", "msg_token": "Fix number of nodes in the test"} {"diff": " public class AudioNode extends Node { \n protected Filter dryFilter ; \n protected AudioKey key ; \n protected transient AudioData data = null ; \n - protected transient Status status = Status . Stopped ; \n - protected transient int channel = - NUMBER0 ; \n + protected transient volatile Status status = Status . Stopped ; \n + protected transient volatile int channel = - NUMBER0 ; \n protected Vector3f velocity = new Vector3f ( ) ; \n protected boolean reverbEnabled = true ; \n protected float maxDistance = NUMBER1 ; SINGLE \n public class AudioNode extends Node { \n COMMENT \n COMMENT \n COMMENT \n - public void setChannel ( int channel ) { \n + public final void setChannel ( int channel ) { \n if ( status != Status . Stopped ) { \n throw new IllegalStateException ( STRING0 ) ; \n } \n public class AudioNode extends Node { \n COMMENT \n COMMENT \n COMMENT \n - public void setStatus ( Status status ) { \n + public final void setStatus ( Status status ) { \n this . status = status ; \n }", "msg_token": "Made the methods called from the audio thread final because"} {"diff": " public class LogbackLoggingSystem extends AbstractLoggingSystem { \n Assert . notNull ( configLocation , STRING0 ) ; \n String resolvedLocation = SystemPropertyUtils . resolvePlaceholders ( configLocation ) ; \n ILoggerFactory factory = StaticLoggerBinder . getSingleton ( ) . getLoggerFactory ( ) ; \n - Assert . isInstanceOf ( ILoggerFactory . class , factory ) ; \n + Assert . isInstanceOf ( \n + LoggerContext . class , \n + factory , \n + STRING1 \n + + factory . getClass ( ) + STRING2 ) ; \n LoggerContext context = ( LoggerContext ) factory ; \n context . stop ( ) ; \n try {", "msg_token": "Add instanceof check and nice fat error message"} {"diff": " public class FoldingUpdate { \n STRING0 + language + \n STRING1 + psi + \n STRING2 + docRange , \n - AttachmentFactory . createAttachment ( document ) , \n - new Attachment ( STRING3 , DebugUtil . psiToString ( psi , false , true ) ) ) ; \n + ApplicationManager . getApplication ( ) . isInternal ( ) \n + ? new Attachment [ ] { AttachmentFactory . createAttachment ( document ) , new Attachment ( STRING3 , DebugUtil . psiToString ( psi , false , true ) ) } \n + : new Attachment [ NUMBER0 ] ) ; \n } \n elementsToFoldMap . putValue ( descriptor . getElement ( ) . getPsi ( ) , descriptor ) ; \n }", "msg_token": "FoldingUpdate getFoldingsFor added more information to error report"} {"diff": " package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed typo in JavaDoc"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class StreamFaultToleranceTestBase extends TestLogger { \n env . setParallelism ( PARALLELISM ) ; \n env . enableCheckpointing ( NUMBER0 ) ; \n env . getConfig ( ) . disableSysoutLogging ( ) ; \n + env . setRestartStrategy ( RestartStrategies . fixedDelayRestart ( Integer . MAX_VALUE , NUMBER1 L ) ) ; \n \n testProgram ( env ) ;", "msg_token": "hotfix tests Speed up streaming state tests by skipping default retry delay"} {"diff": " public class PersistentMapTest extends TestCase { \n assertTrue ( myMap . isDirty ( ) ) ; \n } \n \n + public void testPutCompactGet ( ) throws IOException { \n + myMap . put ( STRING0 , STRING1 ) ; \n + myMap . compact ( ) ; \n + assertEquals ( STRING1 , myMap . get ( STRING0 ) ) ; \n + } \n + \n public void testOpeningWithCompact ( ) throws IOException { \n final int stringsCount = NUMBER0 COMMENT ; \n Set < String > strings = new HashSet < String > ( stringsCount ) ; \n public class PersistentHashMap < Key , Value > extends PersistentEnumeratorDelegate < \n SINGLE \n public void compact ( ) throws IOException { \n synchronized ( myEnumerator ) { \n + force ( ) ; \n LOG . info ( STRING2 + myEnumerator . myFile . getPath ( ) ) ; \n LOG . info ( STRING3 + ( ( int ) ( myLiveAndGarbageKeysCounter / LIVE_KEY_MASK ) ) + \n STRING4 + ( ( int ) ( myLiveAndGarbageKeysCounter & DEAD_KEY_NUMBER_MASK ) ) +", "msg_token": "fixed problem with compact over dirty map state"} {"diff": " public class FavoritesViewImpl extends ContentManagerImpl implements ProjectComp \n \n public void readExternal ( Element element ) throws InvalidDataException { \n final DefaultActionGroup favoritesActionsGroup = ( ( DefaultActionGroup ) ActionManager . getInstance ( ) . getAction ( IdeActions . ADD_TO_FAVORITES ) ) ; \n + favoritesActionsGroup . removeAll ( ) ; \n favoritesActionsGroup . add ( new AddToNewFavoritesListAction ( ) ) ; \n favoritesActionsGroup . addSeparator ( ) ; \n for ( Iterator < Element > iterator = element . getChildren ( STRING0 ) . iterator ( ) ; iterator . hasNext ( ) ; ) {", "msg_token": "correct filling AddToFavoritesGroup"} {"diff": " package NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n name = STRING0 , \n category = JDK , \n summary = STRING1 , \n - severity = WARNING , \n + severity = ERROR , \n maturity = MATURE \n ) \n public class InfiniteRecursion extends BugChecker implements BugChecker . MethodTreeMatcher { \n public class BuiltInCheckerSuppliers { \n GuavaSelfEquals . class , \n HashtableContains . class , \n ImmutableChecker . class , \n + InfiniteRecursion . class , \n InvalidPatternSyntax . class , \n IsInstanceOfClass . class , \n JUnit3TestNotRun . class , \n public class BuiltInCheckerSuppliers { \n FragmentNotInstantiable . class , \n GetClassOnEnum . class , \n IncompatibleModifiersChecker . class , \n - InfiniteRecursion . class , \n InsecureCipherMode . class , \n IterableAndIterator . class , \n JUnit3FloatingPointComparisonWithoutDelta . class ,", "msg_token": "Make InfiniteRecursion an error"} {"diff": " \n - package NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n \n + package NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n public class TenantTest { \n \n @ test", "msg_token": "Moved license header in TenantTest to the top"} {"diff": " public abstract class Transition implements Cloneable { \n COMMENT \n COMMENT \n boolean isValidTarget ( View target ) { \n + if ( target == null ) { \n + return false ; \n + } \n int targetId = target . getId ( ) ; \n if ( mTargetIdExcludes != null && mTargetIdExcludes . contains ( targetId ) ) { \n return false ;", "msg_token": "Fix potential NPE in internal isValidTarget method"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n final boolean isPassword = hasPasswordTransformationMethod ( ) ; \n info . setPassword ( isPassword ) ; \n \n - if ( ! isPassword ) { \n + if ( ! isPassword || shouldSpeakPasswordsForAccessibility ( ) ) { \n info . setText ( getTextForAccessibility ( ) ) ; \n }", "msg_token": "Fix password obscuring in TextView accessibility node"} {"diff": " public class ExtensionBreak extends ExtensionAdaptor implements SessionChangedLi \n return breakPanel ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n @ override \n public void hook ( ExtensionHook extensionHook ) { \n super . hook ( extensionHook ) ; \n public class ExtensionBreak extends ExtensionAdaptor implements SessionChangedLi \n ExtensionHookView pv = extensionHook . getHookView ( ) ; \n pv . addWorkPanel ( getBreakPanel ( ) ) ; \n pv . addOptionPanel ( getOptionsPanel ( ) ) ; \n - \n - extensionHook . getHookMenu ( ) . addAnalyseMenuItem ( extensionHook . getHookMenu ( ) . getMenuSeparator ( ) ) ; \n \n extensionHook . getHookView ( ) . addStatusPanel ( getBreakpointsPanel ( ) ) ;", "msg_token": "Remove deprecation in ExtensionBreak"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface Monad < T > { \n + public interface Monad < T > extends Functor < T > { \n \n COMMENT \n COMMENT \n public interface Monad < T > { \n COMMENT \n < U > Monad < U > flatMap ( Function < ? super T , ? extends java . lang . Iterable < ? extends U > > mapper ) ; \n \n + SINGLE \n + \n COMMENT \n COMMENT \n COMMENT \n public interface Monad < T > { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n < U > Monad < U > map ( Function < ? super T , ? extends U > mapper ) ; \n \n }", "msg_token": "Added missing inheritance dependency between Monad and Functor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class PageInspector { \n private String mLastYouTubeEmbedResultString = null ; \n private OnItemFoundListener mOnItemFoundListener ; \n \n - private static final int TOUCH_ICON_MAX_SIZE = NUMBER0 ; \n private static final int MAX_FAVICON_ENTRIES = NUMBER1 ; \n private TouchIconEntry [ ] mTouchIconEntries = new TouchIconEntry [ MAX_FAVICON_ENTRIES ] ; \n private int mTouchIconEntryCount = NUMBER2 ; \n public class PageInspector { \n int w = source . getWidth ( ) ; \n \n Bitmap result = source ; \n - if ( w > TOUCH_ICON_MAX_SIZE ) { \n + if ( w > Constant . TOUCH_ICON_MAX_SIZE ) { \n try { \n - result = Bitmap . createScaledBitmap ( source , TOUCH_ICON_MAX_SIZE , TOUCH_ICON_MAX_SIZE , true ) ; \n + result = Bitmap . createScaledBitmap ( source , Constant . TOUCH_ICON_MAX_SIZE , Constant . TOUCH_ICON_MAX_SIZE , true ) ; \n } catch ( OutOfMemoryError e ) { \n \n }", "msg_token": "Make TOUCH_ICON_MAX_SIZE a Constant"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OsMoPlugin extends OsmandPlugin implements OsMoReactor { \n \n @ override \n public void mapActivityPause ( MapActivity activity ) { \n - groups . addUiListeners ( olayer ) ; \n + groups . removeUiListener ( olayer ) ; \n mapActivity = activity ; \n }", "msg_token": "Fix leak in OsMoPlugin"} {"diff": " public final class PackageIdentifier implements Comparable < PackageIdentifier > , S \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - SINGLE \n - @ deprecated \n - public static PackageIdentifier createInDefaultRepo ( String name ) { \n - return create ( MAIN_REPOSITORY_NAME , new PathFragment ( name ) ) ; \n - } \n - \n public static PackageIdentifier createInMainRepo ( String name ) { \n return createInMainRepo ( new PathFragment ( name ) ) ; \n }", "msg_token": "Remove PackageIdentifier createInDefaultRepo now that all the callers have been migrated"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyRefactoringSupportProvider extends RefactoringSupportProvider \n public static final GroovyRefactoringSupportProvider INSTANCE = new GroovyRefactoringSupportProvider ( ) ; \n \n public boolean isSafeDeleteAvailable ( PsiElement element ) { \n - return element instanceof GrTypeDefinition ; \n + return element instanceof GrTypeDefinition || \n + element instanceof GrField || \n + element instanceof GrMethod ; \n } \n \n COMMENT", "msg_token": "enable safe delete for groovy methods and fields"} {"diff": " public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr \n tempResult = new ArrayList < OIdentifiable > ( ) ; \n \n for ( Entry < Object , ORuntimeResult > g : groupedResult . entrySet ( ) ) { \n - if ( g . getKey ( ) != null || groupedResult . size ( ) == NUMBER0 ) { \n + if ( g . getKey ( ) != null || ( groupedResult . size ( ) == NUMBER0 && groupByFields == null ) ) { \n final ODocument doc = g . getValue ( ) . getResult ( ) ; \n if ( doc != null && ! doc . isEmpty ( ) ) \n ( ( List < OIdentifiable > ) tempResult ) . add ( doc ) ;", "msg_token": "Fixed bug on GROUP BY with no results"} {"diff": " public class DirectFileCache implements FileCache { \n Channels . transferBlocking ( channel , fileChannel , NUMBER0 , length ) ; \n channel . shutdownWrites ( ) ; \n Channels . flushBlocking ( channel ) ; \n + completionHandler . handleComplete ( ) ; \n } catch ( IOException ignored ) { \n IoUtils . safeClose ( fileChannel ) ; \n completionHandler . handleComplete ( ) ;", "msg_token": "Call completion handler from direct file cache"} {"diff": " public class MetricRegistryTest { \n assertThat ( registry . getTimers ( ) ) \n . contains ( entry ( STRING0 , timer ) ) ; \n } \n + \n + @ test \n + public void hasASetOfRegisteredMetricNames ( ) throws Exception { \n + registry . register ( STRING1 , gauge ) ; \n + registry . register ( STRING2 , counter ) ; \n + registry . register ( STRING3 , histogram ) ; \n + registry . register ( STRING4 , meter ) ; \n + registry . register ( STRING0 , timer ) ; \n + \n + assertThat ( registry . getNames ( ) ) \n + . containsOnly ( STRING1 , STRING2 , STRING3 , STRING4 , STRING0 ) ; \n + } \n }", "msg_token": "Added a test for MetricRegistry getNames"} {"diff": " public class CropImageView extends ImageView { \n int height = cropped . getHeight ( ) ; \n int outWidth = NUMBER0 ; \n int outHeight = NUMBER0 ; \n - float imageRatio = getRatioX ( ) / getRatioY ( ) ; \n + float imageRatio = getRatioX ( mFrameRect . width ( ) ) / getRatioY ( mFrameRect . height ( ) ) ; \n \n if ( mOutputWidth > NUMBER0 ) { \n outWidth = mOutputWidth ;", "msg_token": "Fix bug image ratio collapse"} {"diff": " public class ValidatorParameterHelper { \n } \n \n public V anyType ( ) { \n - return extendsType ( CanonicalNameConstants . OBJECT ) ; \n + return param ( new AnyTypeParameterRequirement ( ) ) ; \n } \n \n public V annotatedWith ( Class < ? extends Annotation > annotationClass ) {", "msg_token": "Fix anyType in BaseParamValidator"} {"diff": " public class RangeQueryBuilderTest extends BaseQueryTestCase < RangeQueryBuilder > \n } else { \n SINGLE \n query = new RangeQueryBuilder ( DATE_FIELD_NAME ) ; \n - query . from ( new DateTime ( System . currentTimeMillis ( ) - randomIntBetween ( NUMBER0 , NUMBER1 ) ) . toString ( ) ) ; \n - query . to ( new DateTime ( System . currentTimeMillis ( ) + randomIntBetween ( NUMBER0 , NUMBER1 ) ) . toString ( ) ) ; \n + query . from ( new DateTime ( System . currentTimeMillis ( ) - randomIntBetween ( NUMBER0 , NUMBER1 ) , DateTimeZone . UTC ) . toString ( ) ) ; \n + query . to ( new DateTime ( System . currentTimeMillis ( ) + randomIntBetween ( NUMBER0 , NUMBER1 ) , DateTimeZone . UTC ) . toString ( ) ) ; \n SINGLE \n if ( createContext ( ) . mapperService ( ) . smartNameFieldType ( DATE_FIELD_NAME ) != null ) { \n if ( randomBoolean ( ) ) {", "msg_token": "Using UTC time zone in RangeQueryBuilderTest to make forbidden apis checker happy"} {"diff": " public class PersistFileSourcesStepTest { \n assertThat ( dbTester . countRowsOfTable ( STRING0 ) ) . isEqualTo ( NUMBER_OF_FILES ) ; \n LOGGER . info ( String . format ( STRING1 , duration ) ) ; \n \n - benchmark . expectAround ( STRING2 , duration , NUMBER0 , Benchmark . DEFAULT_ERROR_MARGIN_PERCENTS ) ; \n + benchmark . expectAround ( STRING2 , duration , NUMBER1 , Benchmark . DEFAULT_ERROR_MARGIN_PERCENTS ) ; \n } \n \n private File prepareReport ( ) throws IOException { \n public class SourceDbBenchmarkTest { \n long period = end - start ; \n long throughputPerSecond = NUMBER2 * counter . get ( ) / period ; \n LOGGER . info ( String . format ( STRING3 , counter . get ( ) , period , throughputPerSecond ) ) ; \n - benchmark . expectBetween ( STRING4 , throughputPerSecond , NUMBER3 , NUMBER4 ) ; \n + benchmark . expectBetween ( STRING4 , throughputPerSecond , NUMBER5 , NUMBER6 ) ; \n \n } finally { \n timer . cancel ( ) ;", "msg_token": "Adjust performance timing due to new environment"} {"diff": " public class RtpStreamReceiver { \n packetReceivedCounter ++ ; \n transcoder . transcode ( rtpPacket . getPayload ( ) ) ; \n } catch ( IOException e ) { \n - log . error ( STRING0 ) ; \n + SINGLE \n receivePackets = false ; \n } \n }", "msg_token": "remove error log as it s not an error to get the exception"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class WhenThingsGoWrongTests extends ScriptTestCase { \n public void testNullPointer ( ) { \n public class WhenThingsGoWrongTests extends ScriptTestCase { \n PatternSyntaxException e = expectScriptThrows ( PatternSyntaxException . class , ( ) - > { \n exec ( STRING0 ) ; SINGLE \n } ) ; \n - assertEquals ( STRING1 , e . getMessage ( ) ) ; \n + assertThat ( e . getMessage ( ) , containsString ( STRING2 ) ) ; \n + assertThat ( e . getMessage ( ) , containsString ( STRING3 ) ) ; \n } \n \n }", "msg_token": "Fix error message check for Windows"} {"diff": " public class MaterialCalendarView extends FrameLayout { \n return view == object ; \n } \n \n + @ override \n + public CharSequence getPageTitle ( int position ) { \n + return view . titleChanger . getTitleFormatter ( ) . format ( getItem ( position ) ) ; \n + } \n + \n public void setCallbacks ( MonthView . Callbacks callbacks ) { \n this . callbacks = callbacks ; \n for ( MonthView monthView : currentViews ) {", "msg_token": "Implemented getPageTitle to MonthPageAdapter"} {"diff": " public class Allocation extends BaseObj { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void setIoInputNotificationHandler ( IoInputNotifier callback ) {", "msg_token": "Fix docs typo in YUV code"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - final class ImmediateExecutor implements Executor { \n + public final class ImmediateExecutor implements Executor { \n \n COMMENT \n COMMENT \n final class ImmediateExecutor implements Executor { \n public void execute ( Runnable command ) { \n command . run ( ) ; \n } \n + \n + private ImmediateExecutor ( ) { \n + } \n }", "msg_token": "Fix visibily of ImmediateExecutor and add private constructor"} {"diff": " public class HazelcastClientListTest { \n } \n assertTrue ( list . isEmpty ( ) ) ; \n \n - for ( int i = NUMBER0 ; i < count ; i ++ ) { \n - assertFalse ( list . remove ( ( Object ) i ) ) ; \n - } \n \n \n for ( int i = count ; i < NUMBER1 * count ; i ++ ) {", "msg_token": "Removed unnecessary check"} {"diff": " public class UISettings extends SimpleModificationTracker implements PersistentS \n IconLoader . setFilter ( MatrixFilter . get ( COLOR_BLINDNESS ) ) ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public void removeUISettingsListener ( UISettingsListener listener ) { \n - myDispatcher . removeListener ( listener ) ; \n - } \n - \n private void setSystemFontFaceAndSize ( ) { \n if ( FONT_FACE == null || FONT_SIZE <= NUMBER0 ) { \n final Pair < String , Integer > fontData = getSystemFontFaceAndSize ( ) ;", "msg_token": "remove unused removeUISettingsListener"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TraverseOptions implements Cloneable , Serializable { \n if ( graph == null ) \n throw new IllegalStateException ( STRING0 ) ; \n findEndpointVertices ( ) ; \n - setCalendarService ( graph . getService ( CalendarService . class ) ) ; \n + CalendarServiceData csData = graph . getService ( CalendarServiceData . class ) ; \n + if ( csData != null ) { \n + CalendarServiceImpl calendarService = new CalendarServiceImpl ( ) ; \n + calendarService . setData ( csData ) ; \n + setCalendarService ( calendarService ) ; \n + } \n setTransferTable ( graph . getTransferTable ( ) ) ; \n setServiceDays ( ) ; \n if ( getModes ( ) . isTransit ( )", "msg_token": "properly initialize calendarService"} {"diff": " public class DeterministicCorefAnnotator implements Annotator { \n @ override \n public Set < Class < ? extends CoreAnnotation > > requires ( ) { \n return Collections . unmodifiableSet ( new ArraySet < > ( Arrays . asList ( \n - CoreAnnotations . MentionTokenAnnotation . class , \n + edu . stanford . nlp . hcoref . CorefCoreAnnotations . CorefMentionsAnnotation . class , \n SemanticGraphCoreAnnotations . AlternativeDependenciesAnnotation . class \n ) ) ) ; \n } \n public class HybridCorefAnnotator extends TextAnnotationCreator implements Annot \n @ override \n public Set < Class < ? extends CoreAnnotation > > requires ( ) { \n return Collections . unmodifiableSet ( new ArraySet < > ( Arrays . asList ( \n - CoreAnnotations . MentionTokenAnnotation . class , \n CoreAnnotations . TokensAnnotation . class , \n CoreAnnotations . SentencesAnnotation . class , \n SemanticGraphCoreAnnotations . BasicDependenciesAnnotation . class , \n SemanticGraphCoreAnnotations . CollapsedDependenciesAnnotation . class , \n - SemanticGraphCoreAnnotations . CollapsedCCProcessedDependenciesAnnotation . class \n + SemanticGraphCoreAnnotations . CollapsedCCProcessedDependenciesAnnotation . class , \n + CorefCoreAnnotations . CorefMentionsAnnotation . class \n ) ) ) ; \n }", "msg_token": "Fix the coref dependency"} {"diff": " public class GceComputeServiceImpl extends AbstractLifecycleComponent < GceCompute \n } \n } ) ; \n SINGLE \n - return instanceList . isEmpty ( ) || instanceList . getItems ( ) == null ? Collections . < Instance > emptyList ( ) : instanceList . getItems ( ) ; \n + return instanceList . isEmpty ( ) || instanceList . getItems ( ) == null ? \n + Collections . < Instance > emptyList ( ) : instanceList . getItems ( ) ; \n } catch ( PrivilegedActionException e ) { \n logger . warn ( STRING0 , e , zoneId ) ; \n logger . debug ( STRING1 , e ) ;", "msg_token": "Fix line width"} {"diff": " package NAMESPACE ; \n COMMENT \n public enum WeightInit { \n COMMENT \n - Variance normalized initialization ( VI ) ( Glorot ) \n - Sparse initialization ( SI ) ( Martens ) \n - Zeros: straight zeros \n - Sample weights from a distribution \n + Distribution: Sample weights from a distribution based on shape of input \n + Normalized: Normalize sample weights \n + Size: Sample weights from bound uniform distribution using shape for min and max \n + Uniform: Sample weights from bound uniform distribution ( specify min and max ) \n + VI: Sample weights from variance normalized initialization ( Glorot ) \n + Zeros: Generate weights as zeros \n + \n + TBD: Sparse initialization ( SI ) ( Martens ) \n COMMENT \n - VI , ZERO , SIZE , DISTRIBUTION , NORMALIZED , UNIFORM \n + DISTRIBUTION , NORMALIZED , SIZE , UNIFORM , VI , ZERO \n \n }", "msg_token": "Added comments to clarify weight init options"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove bad imports of org codehaus plexus util StringUtils"} {"diff": " public class JarHell { \n if ( clazz . startsWith ( STRING0 ) ) { \n return ; SINGLE \n } \n + if ( clazz . equals ( STRING1 ) ) \n + return ; SINGLE \n if ( clazz . equals ( STRING2 ) ) { \n return ; SINGLE \n }", "msg_token": "Ignore InternalSettingsPreparer in JarHell check"} {"diff": " public class JavaScriptProtocol extends AtmosphereInterceptorAdapter { \n \n if ( enforceAtmosphereVersion ) { \n String javascriptVersion = request . getHeader ( HeaderConfig . X_ATMOSPHERE_FRAMEWORK ) ; \n - int version = parseVersion ( javascriptVersion . split ( STRING0 ) [ NUMBER0 ] ) ; \n + int version = NUMBER0 ; \n + if ( javascriptVersion != null ) { \n + version = parseVersion ( javascriptVersion . split ( STRING0 ) [ NUMBER0 ] ) ; \n + } \n + \n if ( version < NUMBER1 ) { \n logger . error ( STRING1 , javascriptVersion ) ; \n response . setStatus ( NUMBER2 ) ;", "msg_token": "Prevent possible NPE"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class PaymentChannelClient { \n - SINGLE \n private static final org . slf4j . Logger log = LoggerFactory . getLogger ( PaymentChannelClient . class ) ; \n \n protected final ReentrantLock lock = Threading . lock ( STRING0 ) ; \n public class PaymentChannelClient { \n public void sendToServer ( Protos . TwoWayChannelMessage msg ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PaymentChannelClient { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add some comments for stateless protocols"} {"diff": " public class ElasticDownloadView extends FrameLayout implements IntroView . EnterA \n \n SINGLE \n } \n + \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setBackgroundColor ( int passedColor ) { \n + this . mBackgroundColor = passedColor ; \n + this . mProgressDownloadView . setBackgroundColor ( mBackgroundColor ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setBackgroundColor ( String passedColor ) { \n + if ( passedColor == null ) { \n + return ; \n + } \n + try { \n + int color = Color . parseColor ( passedColor ) ; \n + this . setBackgroundColor ( color ) ; \n + } catch ( Exception e ) { } \n + } \n \n }", "msg_token": "Added the ability to set the background color"} {"diff": " public class YoutubeExtractor implements Extractor { \n try { \n URI uri = new URI ( videoUrl ) ; \n if ( uri . getHost ( ) . contains ( STRING0 ) ) { \n - String query = uri . getQuery ( ) ; \n - String queryElements [ ] = query . split ( STRING1 ) ; \n + String fragment = uri . getFragment ( ) ; \n + fragment = fragment . replace ( STRING2 , STRING3 ) ; \n + String queryElements [ ] = fragment . split ( STRING1 ) ; \n Map < String , String > queryArguments = new HashMap < > ( ) ; \n for ( String e : queryElements ) { \n String [ ] s = e . split ( STRING4 ) ;", "msg_token": "fixed opening videos via firefox fenec"} {"diff": " public class RxPermissions { \n COMMENT \n public Observable < Boolean > request ( final String . . . permissions ) { \n if ( permissions == null || permissions . length == NUMBER0 ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + throw new IllegalArgumentException ( STRING1 ) ; \n } \n if ( isGranted ( permissions ) ) { \n SINGLE \n public class RxPermissions { \n PublishSubject < Boolean > subject = mSubjects . get ( permissions [ i ] ) ; \n if ( subject == null ) { \n SINGLE \n - throw new IllegalStateException ( STRING2 ) ; \n + throw new IllegalStateException ( STRING3 ) ; \n } \n mSubjects . remove ( permissions [ i ] ) ; \n subject . onNext ( grantResults [ i ] == PackageManager . PERMISSION_GRANTED ) ;", "msg_token": "Fixed some spelling errors"} {"diff": " public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements \n position . set ( Balloon . Position . atLeft ) ; \n } \n \n - Icon actualIcon = icon != null ? icon : type . getDefaultIcon ( ) ; \n - \n final BalloonHyperlinkListener listenerWrapper = new BalloonHyperlinkListener ( listener ) ; \n final Balloon balloon = \n - JBPopupFactory . getInstance ( ) . createHtmlTextBalloonBuilder ( text . replace ( STRING0 , STRING1 ) , actualIcon , type . getPopupBackground ( ) , listenerWrapper ) \n + JBPopupFactory . getInstance ( ) . createHtmlTextBalloonBuilder ( text . replace ( STRING0 , STRING1 ) , icon , type . getPopupBackground ( ) , listenerWrapper ) \n . setHideOnClickOutside ( false ) . setHideOnFrameResize ( false ) . createBalloon ( ) ; \n FrameStateManager . getInstance ( ) . getApplicationActive ( ) . doWhenDone ( new Runnable ( ) { \n @ override", "msg_token": "no default icon in balloon notifications the background tells everything"} {"diff": " public class NodeTool \n System . out . println ( STRING0 + format ( ( Long ) probe . getColumnFamilyMetric ( keyspaceName , cfName , STRING1 ) , humanReadable ) ) ; \n System . out . println ( STRING2 + format ( offHeapSize , humanReadable ) ) ; \n System . out . println ( STRING3 + probe . getColumnFamilyMetric ( keyspaceName , cfName , STRING4 ) ) ; \n + int numberOfKeys = NUMBER0 ; \n + for ( long keys : ( long [ ] ) probe . getColumnFamilyMetric ( keyspaceName , cfName , STRING5 ) ) \n + numberOfKeys += keys ; \n + System . out . println ( STRING6 + numberOfKeys ) ; \n System . out . println ( STRING7 + probe . getColumnFamilyMetric ( keyspaceName , cfName , STRING8 ) ) ; \n System . out . println ( STRING9 + format ( ( Long ) probe . getColumnFamilyMetric ( keyspaceName , cfName , STRING10 ) , humanReadable ) ) ; \n System . out . println ( STRING11 + format ( memtableOffHeapSize , humanReadable ) ) ;", "msg_token": "Fix missing key estimate in nodetool"} {"diff": " public class TestNonBlockingAPI extends TomcatBaseTest { \n @ override \n protected void doGet ( HttpServletRequest request , HttpServletResponse response ) \n throws ServletException , IOException { \n - boolean notify = Boolean . valueOf ( request . getParameter ( STRING0 ) ) ; \n + boolean notify = Boolean . parseBoolean ( request . getParameter ( STRING0 ) ) ; \n AsyncContext ctx = request . startAsync ( ) ; \n ctx . setTimeout ( NUMBER0 ) ; \n if ( ! notify ) {", "msg_token": "Fix IDE nag"} {"diff": " public class MediaUtils \n Constants . TELEPHONE_EVENT , \n NUMBER0 ) ; \n \n + COMMENT \n addMediaFormats ( ( byte ) SdpConstants . JPEG , \n STRING0 , \n MediaType . VIDEO , \n VideoFormat . JPEG_RTP ) ; \n - \n - COMMENT \n addMediaFormats ( \n ( byte ) SdpConstants . H263 , \n STRING1 ,", "msg_token": "Disables JPEG since it doesn t really work"} {"diff": " public class StatsService extends Service { \n public void run ( ) { \n numberOfFinishedNetworkCalls ++ ; \n AppLog . d ( T . STATS , STRING0 + date + STRING1 ) ; \n - if ( response == null || ! response . has ( STRING2 ) ) { \n + if ( response == null || ! response . has ( STRING3 ) ) { \n notifyResponseReceived ( ) ; \n return ; \n }", "msg_token": "Fix an issue where country views doesn t correctly show today yesterday"} {"diff": " public class BTreeMap < K , V > extends AbstractMap < K , V > \n final long next = DataInput2 . unpackLong ( in ) ; \n final Object [ ] keys = keySerializer . deserialize ( in , start , end , size ) ; \n assert ( keys . length == size ) ; \n - assert ( keys . length == size ) ; \n Object [ ] vals = new Object [ size - NUMBER0 ] ; \n if ( hasValues ) { \n for ( int i = NUMBER1 ; i < size - NUMBER0 ; i ++ ) {", "msg_token": "remove double assertion"} {"diff": " public abstract class ScrollDirectionDetector implements AbsListView . OnScrollLis \n mPreviousFirstVisibleItem = firstVisibleItem ; \n } \n } \n - \n } \n \n public ScrollDirectionListener getScrollDirectionListener ( ) {", "msg_token": "Delete an extra line"} {"diff": " public class PhilmMovie { \n \n Images images = movie . images ; \n if ( images != null ) { \n - fanartUrl = images . fanart ; \n - posterUrl = images . poster ; \n - fanartType = TYPE_TRAKT ; \n - posterType = TYPE_TRAKT ; \n + if ( TextUtils . isEmpty ( fanartUrl ) ) { \n + fanartUrl = images . fanart ; \n + fanartType = TYPE_TRAKT ; \n + } \n + if ( TextUtils . isEmpty ( posterUrl ) ) { \n + posterUrl = images . poster ; \n + posterType = TYPE_TRAKT ; \n + } \n } \n \n if ( movie . genres != null ) {", "msg_token": "Don t overwrite TMDB backdrops from Trakt"} {"diff": " public class RandomizingClient extends FilterClient { \n SearchType . DFS_QUERY_THEN_FETCH , \n SearchType . QUERY_THEN_FETCH ) ) ; \n if ( random . nextInt ( NUMBER0 ) == NUMBER1 ) { \n - defaultPreference = RandomPicks . randomFrom ( random , EnumSet . of ( Preference . PRIMARY_FIRST , Preference . PRIMARY , Preference . LOCAL ) ) . type ( ) ; \n + defaultPreference = RandomPicks . randomFrom ( random , EnumSet . of ( Preference . PRIMARY_FIRST , Preference . LOCAL ) ) . type ( ) ; \n } else if ( random . nextInt ( NUMBER0 ) == NUMBER1 ) { \n String s = TestUtil . randomRealisticUnicodeString ( random , NUMBER2 , NUMBER0 ) ; \n defaultPreference = s . startsWith ( STRING0 ) ? null : s ; SINGLE", "msg_token": "TEST Don t randomize preference PRIMARY it might not try replicas depending on the clusterstate"} {"diff": " public class DefaultMethodsTest { \n return STRING0 ; \n } \n } \n - assertThat ( new Foo ( ) . foo ( ) , is ( STRING0 ) ) ; \n + assertThat ( STRING1 , new Foo ( ) . foo ( ) , is ( STRING0 ) ) ; \n + assertThat ( STRING2 , ( ( Parent ) new Foo ( ) ) . foo ( ) , is ( ( Object ) STRING0 ) ) ; \n } \n \n public interface Parent {", "msg_token": "Improved test to double check that the bridge method is not needed"} {"diff": " public class CanvasView extends FrameLayout { \n @ suppresswarnings ( STRING0 ) \n @ subscribe \n public void onBeginCollapseTransition ( MainController . BeginCollapseTransitionEvent e ) { \n + if ( ! mExpanded ) { \n + return ; \n + } \n mExpanded = false ; \n if ( mContentView != null ) { \n mContentView . onAnimateOffscreen ( ) ; \n public class CanvasView extends FrameLayout { \n @ suppresswarnings ( STRING0 ) \n @ subscribe \n public void onEndCollapseTransition ( MainController . EndCollapseTransitionEvent e ) { \n - fadeOut ( ) ; \n + if ( mExpanded ) { \n + fadeOut ( ) ; \n + } \n } \n \n @ suppresswarnings ( STRING0 )", "msg_token": "Add Android N support"} {"diff": " public class HiveOpConverter { \n WindowingComponentizer groups = new WindowingComponentizer ( wSpec ) ; \n RowResolver rr = new RowResolver ( ) ; \n for ( ColumnInfo ci : input . getSchema ( ) . getSignature ( ) ) { \n - rr . put ( ci . getTabAlias ( ) , ci . getInternalName ( ) , ci ) ; \n + rr . put ( inputOpAf . tabAlias , ci . getInternalName ( ) , ci ) ; \n } \n \n while ( groups . hasNext ( ) ) {", "msg_token": "Fix table alias propagation for windowing Jesus Camacho Rodriguez reviewed by Pengcheng Xiong"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MySqlValidConnectionChecker implements ValidConnectionChecker , Seri \n try { \n ping . invoke ( conn ) ; \n return true ; \n + } catch ( InvocationTargetException e ) { \n + Throwable cause = e . getCause ( ) ; \n + if ( cause instanceof SQLException ) { \n + return false ; \n + } \n + \n + LOG . warn ( STRING0 , e ) ; \n + return false ; \n } catch ( Exception e ) { \n LOG . warn ( STRING0 , e ) ; \n return false ;", "msg_token": "remove mysql validChecker log"} {"diff": " public abstract class JoglAbstractDisplay extends JoglContext implements GLEvent \n \n renderer = new JoglRenderer ( ) ; \n \n - renderer . setMainFrameBufferSrgb ( settings . getGammaCorrection ( ) ) ; \n + canvas . invoke ( false , new GLRunnable ( ) { \n + public boolean run ( GLAutoDrawable glad ) { \n + renderer . setMainFrameBufferSrgb ( settings . getGammaCorrection ( ) ) ; \n + return true ; \n + } \n + } ) ; \n } \n \n protected void startGLCanvas ( ) { \n public abstract class JoglNewtAbstractDisplay extends JoglContext implements GLE \n \n renderer = new JoglRenderer ( ) ; \n \n - renderer . setMainFrameBufferSrgb ( settings . getGammaCorrection ( ) ) ; \n + canvas . invoke ( false , new GLRunnable ( ) { \n + public boolean run ( GLAutoDrawable glad ) { \n + renderer . setMainFrameBufferSrgb ( settings . getGammaCorrection ( ) ) ; \n + return true ; \n + } \n + } ) ; \n } \n \n protected void startGLCanvas ( ) {", "msg_token": "Fixes a GLException caused by a regression on the management of the gamma correction in the JOGL backend"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class SampleApplication extends ZLApplication { \n public SampleApplication ( ) { \n super ( STRING0 ) ; \n setView ( new SampleView ( this , getContext ( ) ) ) ; \n } \n + \n + public ZLKeyBindings keyBindings ( ) { \n + return null ; \n + } \n } \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ZLSwingApplicationWindow extends ZLApplicationWindow { \n return viewWidget ; \n } \n \n + public void addToolbarItem ( Item item ) { \n + SINGLE \n + } \n + \n + public void setToolbarItemState ( Item item , boolean visible , boolean enabled ) { \n + SINGLE \n + } \n + \n + public void setToggleButtonState ( ButtonItem item ) { \n + SINGLE \n + } \n + \n private JFrame myFrame ; \n }", "msg_token": "fixed compilation problem"} {"diff": " public class DroidGap extends PhonegapActivity { \n this . ctx . loadUrlTimeout ++ ; \n \n SINGLE \n - this . ctx . pluginManager . exec ( STRING0 , STRING1 , null , STRING2 , false ) ; \n + this . ctx . spinnerStop ( ) ; \n \n SINGLE \n this . ctx . onReceivedError ( errorCode , description , failingUrl ) ;", "msg_token": "Replace deprecated call to activityStop"} {"diff": " public class JavaParserDefinition implements ParserDefinition { \n lexer = new JavaLexer ( ( ( PsiJavaFile ) containingFile ) . getLanguageLevel ( ) ) ; \n else lexer = new JavaLexer ( LanguageLevel . HIGHEST ) ; \n if ( right . getElementType ( ) == JavaDocTokenType . DOC_TAG_VALUE_SHARP_TOKEN ) return SpaceRequirements . MUST_NOT ; \n + if ( left . getElementType ( ) == JavaDocTokenType . DOC_TAG_VALUE_SHARP_TOKEN ) return SpaceRequirements . MUST_NOT ; \n final SpaceRequirements spaceRequirements = LanguageUtil . canStickTokensTogetherByLexer ( left , right , lexer , NUMBER0 ) ; \n if ( left . getElementType ( ) == JavaTokenType . END_OF_LINE_COMMENT ) return SpaceRequirements . MUST_LINE_BREAK ;", "msg_token": "do not insert space after in javadoc"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added license header"} {"diff": " public abstract class OrientBaseGraph implements IndexableGraph , MetaGraph < OData \n msg . append ( s ) ; \n \n SINGLE \n - OLogManager . instance ( ) . warn ( this , \n - STRING0 , msg . toString ( ) ) ; \n + OLogManager \n + . instance ( ) \n + . warn ( this , STRING1 , msg . toString ( ) ) ; \n } \n raw . commit ( ) ; \n committed = true ;", "msg_token": "fixed typo on warn message"} {"diff": " public interface PyClass extends PsiNamedElement , PyStatement , NameDefiner , PyDo \n Iterable < PyClass > iterateAncestors ( ) ; \n \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed a javadoc typo"} {"diff": " public final class AppSettings extends HashMap < String , Object > { \n COMMENT \n COMMENT \n public static final String ANDROID_OPENAL_SOFT = STRING0 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String JOGL = STRING1 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String JOAL = STRING2 ; \n \n static { \n defaults . put ( STRING3 , NUMBER0 ) ;", "msg_token": "Adds some options into AppSettings for JogAmp s JOGL and JOAL"} {"diff": " public class HystrixCollapserTest { \n private final Collection < CollapsedRequest < String , String > > requests ; \n \n TestCollapserCommand ( Collection < CollapsedRequest < String , String > > requests ) { \n - super ( testPropsBuilder ( ) . setCommandPropertiesDefaults ( HystrixCommandPropertiesTest . getUnitTestPropertiesSetter ( ) . withExecutionTimeoutInMilliseconds ( NUMBER0 ) ) ) ; \n + super ( testPropsBuilder ( ) . setCommandPropertiesDefaults ( HystrixCommandPropertiesTest . getUnitTestPropertiesSetter ( ) . withExecutionTimeoutInMilliseconds ( NUMBER1 ) ) ) ; \n this . requests = requests ; \n }", "msg_token": "Increased batch command timeout in HystrixCollapserTest to accommodate Travis slowness"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class SubjectDnX509PrincipalExtractor implements X509PrincipalExtractor { \n private Pattern subjectDnPattern ; \n \n public SubjectDnX509PrincipalExtractor ( ) { \n - setSubjectDnRegex ( STRING0 ) ; \n + setSubjectDnRegex ( STRING1 ) ; \n } \n \n public Object extractPrincipal ( X509Certificate clientCert ) { \n public class SubjectDnX509PrincipalExtractor implements X509PrincipalExtractor { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "SubjectDnX509PrincipalExtractor supports CN as last segement"} {"diff": " public class Linkify { \n \n return NUMBER0 ; \n } \n - \n - public final boolean equals ( Object o ) { \n - return false ; \n - } \n } ; \n \n Collections . sort ( links , c ) ;", "msg_token": "Fix trivial equals implementation"} {"diff": " public class SenderChannel \n try \n { \n buffers . rotate ( ) ; \n - cleanedTermId . incrementAndGet ( ) ; \n + cleanedTermId . incrementAndGet ( ) ; SINGLE \n } \n catch ( final IOException ex ) \n {", "msg_token": "Added concurrency TODO comment"} {"diff": " public class IndexingStamp { \n } \n catch ( RuntimeException e ) { \n final Throwable cause = e . getCause ( ) ; \n - if ( cause instanceof IOException ) { \n - FileBasedIndex . getInstance ( ) . requestRebuild ( indexName , cause ) ; \n + if ( ! ( cause instanceof IOException ) ) { \n + throw e ; SINGLE \n } \n }", "msg_token": "in case of IO exceptions consider file unindexed"} {"diff": " public class FormatTest { \n assertEquals ( STRING0 , Printf . str ( STRING1 , FLOAT0 ) ) ; \n assertEquals ( STRING2 , Printf . str ( STRING3 , FLOAT0 ) ) ; \n assertEquals ( STRING4 , Printf . str ( STRING3 , FLOAT1 ) ) ; \n - \n - assertEquals ( STRING5 , Printf . str ( STRING6 , FLOAT2 ) ) ; \n + assertEquals ( STRING5 , Printf . str ( STRING6 , FLOAT3 ) ) ; \n + assertEquals ( STRING7 , Printf . str ( STRING6 , FLOAT2 ) ) ; \n assertEquals ( STRING7 , Printf . str ( STRING6 , FLOAT4 ) ) ; \n assertEquals ( STRING8 , Printf . str ( STRING9 , FLOAT5 ) ) ; \n assertEquals ( STRING8 , Printf . str ( STRING9 , FLOAT6 ) ) ;", "msg_token": "Fix floating point test case"} {"diff": " public class GrapeEngineInstaller { \n try { \n Field instanceField = Grape . class . getDeclaredField ( STRING0 ) ; \n instanceField . setAccessible ( true ) ; \n - \n - GrapeEngine existingGrapeEngine = ( GrapeEngine ) instanceField . get ( null ) ; \n - \n - if ( existingGrapeEngine == null ) { \n - instanceField . set ( null , this . grapeEngine ) ; \n - } \n - else if ( ! existingGrapeEngine . getClass ( ) . equals ( \n - this . grapeEngine . getClass ( ) ) ) { \n - throw new IllegalStateException ( \n - STRING1 ) ; \n - } \n + instanceField . set ( null , this . grapeEngine ) ; \n } \n catch ( Exception ex ) { \n throw new IllegalStateException ( STRING2 , ex ) ;", "msg_token": "Always install new GrapeEngine"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove an unused import"} {"diff": " public class Matchers { \n COMMENT \n COMMENT \n COMMENT \n - public static < T > T anyObject ( ) { \n - return reportMatcher ( Any . ANY ) . returnNull ( ) ; \n + @ suppresswarnings ( STRING0 ) \n + public static < T > T anyObject ( ) { \n + return ( T ) reportMatcher ( Any . ANY ) . returnNull ( ) ; \n } \n \n COMMENT", "msg_token": "compiles fine under eclipse"} {"diff": " public class AgentBuilderDefaultApplicationTest { \n . withTypeStrategy ( AgentBuilder . TypeStrategy . REDEFINE ) \n . withRedefinitionStrategy ( AgentBuilder . RedefinitionStrategy . REDEFINITION ) \n . type ( isAnnotatedWith ( ShouldRebase . class ) , ElementMatchers . is ( classLoader ) ) . transform ( new FooTransformer ( ) ) \n - . withListener ( new AgentBuilder . Listener ( ) { \n - @ override \n - public void onTransformation ( TypeDescription typeDescription , DynamicType dynamicType ) { \n - \n - } \n - \n - @ override \n - public void onIgnored ( TypeDescription typeDescription ) { \n - \n - } \n - \n - @ override \n - public void onError ( String typeName , Throwable throwable ) { \n - throwable . printStackTrace ( System . err ) ; \n - } \n - \n - @ override \n - public void onComplete ( String typeName ) { \n - \n - } \n - } ) \n . installOnByteBuddyAgent ( ) ; \n try { \n Class < ? > type = classLoader . loadClass ( Foo . class . getName ( ) ) ;", "msg_token": "Removed listener again as Travis seems to be happy on this rebuild for whatever reason"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class Cloud extends Request { \n response . add ( NODES , nodes ) ; \n response . addProperty ( CONSENSUS , Paxos . _commonKnowledge ) ; SINGLE \n response . addProperty ( LOCKED , Paxos . _cloudLocked ) ; SINGLE \n + Log . info ( STRING0 ) ; \n + for ( String s : response . toString ( ) . split ( STRING1 ) ) if ( ! s . equals ( STRING2 ) && s . length ( ) > NUMBER0 ) Log . info ( s ) ; SINGLE \n Response r = Response . done ( response ) ; \n r . setBuilder ( CONSENSUS , new BooleanStringBuilder ( STRING3 , STRING4 ) ) ; \n r . setBuilder ( LOCKED , new BooleanStringBuilder ( STRING5 , STRING6 ) ) ;", "msg_token": "Log the cloud status everytime it s called"} {"diff": " public class TestMaxConnections extends TomcatBaseTest { \n tomcat . getConnector ( ) . setProperty ( STRING0 , STRING1 ) ; \n tomcat . getConnector ( ) . setProperty ( STRING2 , STRING3 ) ; \n tomcat . start ( ) ; \n + Thread . currentThread ( ) . sleep ( NUMBER0 ) ; \n } \n \n private class TestClient extends SimpleHttpClient {", "msg_token": "allow system to start"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n \n COMMENT \n public class CountDownLatch { \n COMMENT \n COMMENT \n COMMENT \n + @ suspendable \n public void await ( ) throws InterruptedException { \n sync . acquireSharedInterruptibly ( NUMBER0 ) ; \n } \n public class CountDownLatch { \n COMMENT \n COMMENT \n COMMENT \n + @ suspendable \n public boolean await ( long timeout , TimeUnit unit ) \n throws InterruptedException { \n return sync . tryAcquireSharedNanos ( NUMBER0 , unit . toNanos ( timeout ) ) ;", "msg_token": "Add suspendable annotations to appropriate countdownlatch methods"} {"diff": " public class StickyListHeadersListView extends ListView { \n COMMENT \n public View getItemView ( View wrapperView ) { \n if ( ! ( wrapperView instanceof WrapperView ) ) \n - return null ; \n + throw new ClassCastException ( STRING0 ) ; \n \n return ( ( WrapperView ) wrapperView ) . mItem ;", "msg_token": "Changed getItemView method to crash with a ClassCastException if the view given is not a WrapperView"} {"diff": " public class MultiWaveView extends View { \n private void startChevronAnimation ( ) { \n final float chevronStartDistance = mHandleDrawable . getWidth ( ) * FLOAT0 ; \n final float chevronStopDistance = mOuterRadius * FLOAT1 / FLOAT2 ; \n - mChevronAnimations . clear ( ) ; \n final float startScale = FLOAT3 ; \n final float endScale = FLOAT2 ; \n - \n final int directionCount = mFeedbackCount > NUMBER0 ? mChevronDrawables . size ( ) / mFeedbackCount : NUMBER0 ; \n \n mChevronAnimations . stop ( ) ;", "msg_token": "Fix glitch in chevron animation in MultiWaveView"} {"diff": " class DetectorOptions { \n private boolean ignoreCase ; \n COMMENT \n private MatchSuppressor suppressor = NeverSuppress . INSTANCE ; \n + COMMENT \n + private Pattern pattern ; \n \n COMMENT \n COMMENT \n class DetectorOptions { \n COMMENT \n public DetectorOptions setFormat ( String format ) { \n this . format = format ; \n + pattern = null ; \n return this ; \n } \n \n class DetectorOptions { \n COMMENT \n public DetectorOptions setIgnoreCase ( boolean ignore ) { \n ignoreCase = ignore ; \n + pattern = null ; \n return this ; \n } \n \n class DetectorOptions { \n COMMENT \n COMMENT \n public Pattern getPattern ( ) { \n + if ( pattern != null ) { \n + return pattern ; \n + } \n int options = compileFlags ; \n \n if ( ignoreCase ) { \n options |= Pattern . CASE_INSENSITIVE ; \n } \n - return Pattern . compile ( format , options ) ; \n + pattern = Pattern . compile ( format , options ) ; \n + return pattern ; \n } \n }", "msg_token": "Do not recompile Pattern for each file line"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LSH < E > implements NearestNeighborSearch < double [ ] , E > , KNNSearch < do \n COMMENT \n COMMENT \n private Set < Integer > obtainCandidates ( double [ ] q ) { \n - Set < Integer > candidates = new HashSet < Integer > ( ) ; \n + Set < Integer > candidates = new LinkedHashSet < Integer > ( ) ; \n for ( Hash h : hash ) { \n BucketEntry bucket = h . get ( q ) ; \n if ( bucket != null ) {", "msg_token": "optimize the import use Linked one will be more efficient"} {"diff": " public class PyControlFlowBuilder extends PyRecursiveElementVisitor { \n if ( callNode != null ) { \n final PsiElement element = callNode . getPsi ( ) ; \n if ( element instanceof PyCallExpression ) { \n - withSelfAssertRaises = ( ( PyCallExpression ) element ) . isCalleeText ( SELF_ASSERT_RAISES ) ; \n + final PyExpression callee = ( ( PyCallExpression ) element ) . getCallee ( ) ; \n + if ( callee != null ) { \n + final String repr = PyUtil . getReadableRepr ( callee , true ) ; \n + withSelfAssertRaises = SELF_ASSERT_RAISES . equals ( repr ) ; \n + } \n } \n if ( element instanceof PyReferenceExpression ) { \n withSelfAssertRaises = SELF_ASSERT_RAISES . equals ( element . getText ( ) ) ;", "msg_token": "Fixed regression in unreachable inspection for with self assertRaises blocks"} {"diff": " public class ClassPathPackageInfoSource { \n SINGLE \n topLevelClasses . add ( Class . forName ( className , false , \n ( classLoader != null ) ? classLoader : CLASS_LOADER ) ) ; \n - } catch ( ClassNotFoundException e ) { \n + } catch ( ClassNotFoundException | NoClassDefFoundError e ) { \n SINGLE \n SINGLE \n Log . w ( STRING0 , STRING1", "msg_token": "Fix test framework to allow Mockito tests to run successfully on ART"} {"diff": " public class PythonAPIGenerator { \n } else { \n out . write ( STRING0 + element . getName ( ) + STRING1 ) ; \n } \n + } else { \n + out . write ( STRING2 ) ; \n } \n out . write ( STRING3 ) ;", "msg_token": "Python generate wasnt closing brackets it there were no params"} {"diff": " public class ProjectAdministrationTest { \n ) . build ( ) ; \n new SeleneseTest ( selenese ) . runOn ( orchestrator ) ; \n \n + SINGLE \n assertThat ( orchestrator . getServer ( ) . getAdminWsClient ( ) . find ( PropertyQuery . createForResource ( STRING0 , STRING1 ) ) . getValue ( ) ) \n . isEqualTo ( STRING2 ) ; \n + \n + SINGLE \n + SINGLE \n + assertThat ( orchestrator . getServer ( ) . getAdminWsClient ( ) . findAll ( PropertyQuery . createForResource ( null , STRING1 ) ) ) . isNotEmpty ( ) ; \n } \n \n COMMENT", "msg_token": "Add integration test for WS GET api properties"} {"diff": " public class DatabaseChangeLog implements Comparable < DatabaseChangeLog > , Conditi \n return new Comparator < String > ( ) { \n @ override \n public int compare ( String o1 , String o2 ) { \n - return o1 . compareTo ( o2 ) ; \n + SINGLE \n + SINGLE \n + return o1 . replace ( STRING0 , STRING1 ) . compareTo ( o2 . replace ( STRING0 , STRING1 ) ) ; \n } \n } ; \n }", "msg_token": "by ignoring WEB INF classes in path all changelog Files independent"} {"diff": " public abstract class Drawable { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify Drawable getOpacity docs"} {"diff": " public class InternalEngine extends Engine { \n manager = createSearcherManager ( ) ; \n this . searcherManager = manager ; \n this . versionMap . setManager ( searcherManager ) ; \n - try { \n - if ( openMode == EngineConfig . OpenMode . OPEN_INDEX_CREATE_TRANSLOG ) { \n - SINGLE \n - commitIndexWriter ( writer , translog , lastCommittedSegmentInfos . getUserData ( ) . get ( SYNC_COMMIT_ID ) ) ; \n - } \n - } catch ( IOException | EngineException ex ) { \n - throw new EngineCreationFailureException ( shardId , STRING0 , ex ) ; \n - } \n - SINGLE \n + SINGLE \n allowCommits . compareAndSet ( true , openMode != EngineConfig . OpenMode . OPEN_INDEX_AND_TRANSLOG ) ; \n success = true ; \n } finally {", "msg_token": "Remove redundant commit openTranslog already commits in that case"} {"diff": " public class GitRememberedInputs implements PersistentStateComponent < GitRemember \n } \n \n public void addUrl ( @ notnull String url , @ notnull String userName ) { \n + for ( UrlAndUserName visitedUrl : myState . visitedUrls ) { \n + if ( visitedUrl . url . equalsIgnoreCase ( url ) ) { SINGLE \n + if ( ! userName . isEmpty ( ) ) { SINGLE \n + visitedUrl . userName = userName ; \n + } \n + return ; \n + } \n + } \n + \n UrlAndUserName urlAndUserName = new UrlAndUserName ( ) ; \n urlAndUserName . url = url ; \n urlAndUserName . userName = userName ;", "msg_token": "don t add multiple entries for a single url"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix quality flaws"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public abstract class SafeAsyncTask < ResultT > implements Callable < ResultT > { \n - public static final int DEFAULT_POOL_SIZE = NUMBER0 ; \n + public static final int DEFAULT_POOL_SIZE = NUMBER1 ; \n protected static final Executor DEFAULT_EXECUTOR = Executors . newFixedThreadPool ( DEFAULT_POOL_SIZE ) ; \n \n protected Handler handler ;", "msg_token": "revert pool size change since some groupon tests now hang because of it"} {"diff": " public class TheTVDB { \n } ) ; \n show . getChild ( STRING0 ) . setEndTextElementListener ( new EndTextElementListener ( ) { \n public void end ( String body ) { \n - currentShow . poster = body ; \n - if ( body . length ( ) != NUMBER0 ) { \n - fetchArt ( body , true , context ) ; \n + currentShow . poster = body != null ? body . trim ( ) : STRING1 ; \n + if ( Utils . isAllowedLargeDataConnection ( context , false ) ) { \n + fetchArt ( currentShow . poster , true , context ) ; \n } \n } \n } ) ; \n public class TheTVDB { \n COMMENT \n COMMENT \n public static boolean fetchArt ( String fileName , boolean isPoster , Context context ) { \n - if ( TextUtils . isEmpty ( fileName ) || context == null ) { \n + if ( context == null || TextUtils . isEmpty ( fileName ) ) { \n return true ; \n }", "msg_token": "Don t download show poster if large data is restricted to Wi Fi"} {"diff": " public class Mesh implements Savable , Cloneable { \n return bufSize ; \n case LineStrip : \n return bufSize - NUMBER0 ; \n + case Patch : \n + return bufSize / patchVertexCount ; \n default : \n throw new UnsupportedOperationException ( ) ; \n } \n public class Mesh implements Savable , Cloneable { \n getBuffer ( Type . HWBoneIndex ) != null ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setPatchVertexCount ( int patchVertexCount ) { \n + this . patchVertexCount = patchVertexCount ; \n + } \n \n public void write ( JmeExporter ex ) throws IOException { \n OutputCapsule out = ex . getCapsule ( this ) ;", "msg_token": "Modified computeNumElements to support n Patches"} {"diff": " public enum Effect { \n DOOR_TOGGLE ( NUMBER0 ) , \n EXTINGUISH ( NUMBER1 ) , \n RECORD_PLAY ( NUMBER2 ) , \n + GHAST_SHRIEK ( NUMBER3 ) , \n + GHAST_SHOOT ( NUMBER4 ) , \n + BLAZE_SHOOT ( NUMBER5 ) , \n SMOKE ( NUMBER6 ) , \n - STEP_SOUND ( NUMBER7 ) ; \n + STEP_SOUND ( NUMBER7 ) , \n + POTION_BREAK ( NUMBER8 ) , \n + ENDER_SIGNAL ( NUMBER9 ) , \n + MOBSPAWNER_FLAMES ( NUMBER10 ) ; \n \n private final int id ;", "msg_token": "Added the missing effects to the Effect enum"} {"diff": " public class BuildManager implements ApplicationComponent { \n return projectTaskQueue . submit ( new Callable < Pair < RequestFuture < PreloadedProcessMessageHandler > , OSProcessHandler > > ( ) { \n public Pair < RequestFuture < PreloadedProcessMessageHandler > , OSProcessHandler > call ( ) throws Exception { \n if ( project . isDisposed ( ) ) { \n - throw new Exception ( STRING0 + project . getName ( ) + STRING1 ) ; \n + return null ; \n } \n final RequestFuture < PreloadedProcessMessageHandler > future = new RequestFuture < PreloadedProcessMessageHandler > ( new PreloadedProcessMessageHandler ( ) , UUID . randomUUID ( ) , new CancelBuildSessionAction < PreloadedProcessMessageHandler > ( ) ) ; \n try {", "msg_token": "do not throw exception on explicit isDisposed check"} {"diff": " public final class KeyValueOutputCommitter extends FileOutputCommitter { \n COMMENT \n COMMENT \n public static String getPendingDirName ( ) { \n - return FileOutputCommitter . PENDING_DIR_NAME ; \n + SINGLE \n + SINGLE \n + return FileOutputCommitter . TEMP_DIR_NAME ; \n } \n }", "msg_token": "SMALLFIX Incorporated PR comment"} {"diff": " public class BeanPropertyWriter \n COMMENT \n @ deprecated \n public Class < ? > getPropertyType ( ) { \n - return ( _accessorMethod != null ) ? _accessorMethod . getReturnType ( ) : _field . getType ( ) ; \n + if ( _accessorMethod != null ) { \n + return _accessorMethod . getReturnType ( ) ; \n + } \n + if ( _field != null ) { \n + return _field . getType ( ) ; \n + } \n + return null ; \n } \n \n COMMENT", "msg_token": "Resolve a minor NPE problem for virtual properties"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavadocApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMoj \n if ( href != null ) { \n String hrefAttr = ( String ) href ; \n if ( hrefAttr . contains ( hrefPattern ) ) { \n - methodWithTypes = hrefAttr . substring ( hrefAttr . indexOf ( STRING0 ) + NUMBER0 ) ; \n + try { \n + methodWithTypes = URLDecoder . decode ( hrefAttr . substring ( hrefAttr . indexOf ( STRING0 ) + NUMBER0 ) , STRING1 ) ; \n + } catch ( UnsupportedEncodingException e ) { \n + throw new IllegalStateException ( e ) ; \n + } \n } \n } \n }", "msg_token": "Support handling URL encoded HREF attribute in parsed Javadoc"} {"diff": " public class FsUtils { \n String [ ] files = d . list ( ) ; \n for ( int i = NUMBER0 ; i < files . length ; i ++ ) { \n String s = dir + STRING0 + files [ i ] ; \n + if ( s . endsWith ( STRING1 ) ) { \n + continue ; \n + } \n if ( FileFilter . ignoreTest ( s ) ) { \n Log . v ( LOGTAG , STRING2 + s ) ; \n continue ;", "msg_token": "Ignore TEMPLATE html in LayoutTest directories"} {"diff": " public final class Jimfs { \n private static FileSystem newFileSystem ( JimfsConfiguration config ) { \n ImmutableMap < String , ? > env = ImmutableMap . of ( JimfsFileSystemProvider . CONFIG_KEY , config ) ; \n try { \n - return FileSystems . newFileSystem ( newRandomUri ( ) , env ) ; \n + SINGLE \n + SINGLE \n + return FileSystems . newFileSystem ( newRandomUri ( ) , env , Jimfs . class . getClassLoader ( ) ) ; \n } catch ( IOException e ) { \n throw new AssertionError ( e ) ; \n }", "msg_token": "Change Jimfs to use FileSystems newFileSystem with its own ClassLoader"} {"diff": " public class ParameterDeclarationList implements GroovyElementTypes { \n public static GroovyElementType parse ( PsiBuilder builder , IElementType ending ) { \n SINGLE \n \n - if ( ParserUtils . lookAhead ( builder , mRPAREN ) ) return NONE ; \n + if ( ParserUtils . lookAhead ( builder , mRPAREN ) ) { \n + PsiBuilder . Marker pdlMarker = builder . mark ( ) ; \n + pdlMarker . done ( PARAMETERS_LIST ) ; \n + return NONE ; \n + } \n \n PsiBuilder . Marker pdlMarker = builder . mark ( ) ;", "msg_token": "method has always parameter list"} {"diff": " public class SQLEvalVisitorUtils { \n wallConditionContext . setConstArithmetic ( true ) ; \n } \n \n + leftValue = processValue ( leftValue ) ; \n + rightValue = processValue ( rightValue ) ; \n + \n if ( leftValue == null || rightValue == null ) { \n return false ; \n } \n public class SQLEvalVisitorUtils { \n return false ; \n } \n \n + @ suppresswarnings ( STRING0 ) \n + private static Object processValue ( Object value ) { \n + if ( value instanceof List ) { \n + List list = ( List ) value ; \n + if ( list . size ( ) == NUMBER0 ) { \n + return processValue ( list . get ( NUMBER1 ) ) ; \n + } \n + } \n + return value ; \n + } \n + \n private static boolean isAlwayTrueLikePattern ( SQLExpr x ) { \n if ( x instanceof SQLCharExpr ) { \n String text = ( ( SQLCharExpr ) x ) . getText ( ) ;", "msg_token": "add list judge"} {"diff": " public class SettingsDialog { \n dlgSettings . dismiss ( ) ; \n \n SINGLE \n - Intent intent = new Intent ( context , ActivityApp . class ) ; \n - intent . putExtra ( ActivityApp . cUid , uid ) ; \n - intent . putExtra ( ActivityApp . cAction , ActivityApp . cActionRefresh ) ; \n - context . startActivity ( intent ) ; \n + if ( uid != NUMBER0 ) { \n + Intent intent = new Intent ( context , ActivityApp . class ) ; \n + intent . putExtra ( ActivityApp . cUid , uid ) ; \n + intent . putExtra ( ActivityApp . cAction , ActivityApp . cActionRefresh ) ; \n + context . startActivity ( intent ) ; \n + } \n } \n } ) ;", "msg_token": "Do not refresh app view if main settings"} {"diff": " public final class AgentIndexRunner implements AgentIndexRunnerMBean , Notificati \n private final static String NOTIFICATIONEXCEPTIONTYPE = STRING0 ; \n private final static String NOTIFICATIONINFOSTRINGTYPE = STRING1 ; \n private final static String NOTIFICATIONINFOLONGTYPE = STRING2 ; \n - private static boolean enabled = true ; \n + private boolean enabled ; \n private transient Thread indexThread = null ; \n private final static Logger log = Logger . getLogger ( STRING3 ) ; \n private final Management jagmgt ;", "msg_token": "Fixed high priority FindBugs warnings in AgentIndexRunner"} {"diff": " public class TransferSettingsTest { \n DummyTransferSettings testTransferSettings = new DummyTransferSettings ( ) ; \n testTransferSettings . setField ( STRING0 , enumValue ) ; \n assertEquals ( DummyTransferSettings . DummyEnum . A , testTransferSettings . enumField ) ; \n + \n + final String enumValueLower = STRING1 ; \n + \n + testTransferSettings = new DummyTransferSettings ( ) ; \n + testTransferSettings . setField ( STRING0 , enumValueLower ) ; \n + assertEquals ( DummyTransferSettings . DummyEnum . A , testTransferSettings . enumField ) ; \n } \n \n @ test ( expected = StorageException . class )", "msg_token": "Add case aware test for enums"} {"diff": " public class WindowAnimator { \n boolean applyExistingExitAnimation = mPostKeyguardExitAnimation != null \n && ! winAnimator . mKeyguardGoingAwayAnimation \n && win . hasDrawnLw ( ) \n - && win . mAttachedWindow == null ; \n + && win . mAttachedWindow == null \n + && ! win . mIsImWindow \n + && displayId == Display . DEFAULT_DISPLAY ; \n \n SINGLE \n SINGLE", "msg_token": "Don t apply existing keyguard animation to IME window"} {"diff": " public class AnnotatorImplementations { \n NERClassifierCombiner . DEFAULT_PASS_DOWN_PROPERTIES ) ; \n if ( useSUTime ) { \n SINGLE \n - Properties sutimeProps = PropertiesUtils . extractPrefixedProperties ( properties , NumberSequenceClassifier . SUTIME_PROPERTY + STRING0 ) ; \n + Properties sutimeProps = PropertiesUtils . extractPrefixedProperties ( properties , NumberSequenceClassifier . SUTIME_PROPERTY + STRING0 , true ) ; \n PropertiesUtils . overWriteProperties ( combinerProperties , sutimeProps ) ; \n } \n NERClassifierCombiner nerCombiner = new NERClassifierCombiner ( applyNumericClassifiers , \n public class PropertiesUtils { \n for ( String keyStr : properties . stringPropertyNames ( ) ) { \n if ( keyStr . startsWith ( prefix ) ) { \n if ( keepPrefix ) { \n + ret . setProperty ( keyStr , properties . getProperty ( keyStr ) ) ; \n + } else { \n String newStr = keyStr . substring ( prefix . length ( ) ) ; \n ret . setProperty ( newStr , properties . getProperty ( keyStr ) ) ; \n - } else { \n - ret . setProperty ( keyStr , properties . getProperty ( keyStr ) ) ; \n } \n } \n }", "msg_token": "Fix logic in extractPrefixedProperites"} {"diff": " public class MatchPath extends TableFunctionEvaluator \n rowResult = symbolFn . match ( row , pItr ) ; \n } \n \n - result . nextRow = pItr . getIndex ( ) - NUMBER0 ; \n + result . nextRow = pItr . getIndex ( ) ; \n + if ( pItr . hasNext ( ) ) { \n + result . nextRow -= NUMBER0 ; \n + } \n return result ; \n }", "msg_token": "MatchPath misses the last matched row from the final result set Mohammad Kamrul Islam via Ashutosh Chauhan"} {"diff": " public interface ColumnListMutation < C > { \n ColumnListMutation < C > deleteColumn ( C columnName ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a typo"} {"diff": " public class MediaStreamImpl \n { \n if ( logger . isTraceEnabled ( ) ) \n logger . trace ( STRING0 + hashCode ( ) \n - + STRING1 + getDeviceSession ( ) . getFormat ( ) \n + SINGLE \n + SINGLE \n + SINGLE \n + STRING2 + format ) ; \n \n setAdvancedAttributes ( format . getAdvancedAttributes ( ) ) ;", "msg_token": "Fix issue where camera is activated in an audio only SIP call"} {"diff": " public abstract class RoutingResource { \n COMMENT \n @ defaultvalue ( STRING0 ) @ queryparam ( STRING1 ) protected List < String > preferredRoutes ; \n \n - COMMENT \n + COMMENT \n + COMMENT \n @ defaultvalue ( STRING2 ) @ queryparam ( STRING3 ) protected List < Integer > otherThanPreferredRoutesPenalty ; \n \n COMMENT", "msg_token": "Fix a copy paste error in apidoc parameter description"} {"diff": " public class PyTypeChecker { \n } \n \n public static boolean isUnknown ( @ nullable PyType type ) { \n - if ( type == null || type instanceof PyGenericType ) { \n + if ( type == null || type instanceof PyGenericType || \n + ( type instanceof PyStructuralType && ( ( PyStructuralType ) type ) . isInferredFromUsages ( ) ) ) { \n return true ; \n } \n if ( type instanceof PyUnionType ) {", "msg_token": "Suppress type and attribute inspections for structural types"} {"diff": " public class CometEventImpl implements CometEvent { \n \n private static final Object threadCheckHolder = new Object ( ) ; \n \n - protected boolean readable = false ; \n - \n - protected boolean writeable = false ; \n SINGLE \n \n COMMENT \n public class CometEventImpl implements CometEvent { \n } \n \n public boolean isReadable ( ) { \n - return readable ; \n - } \n - \n - public void setReadable ( boolean r ) { \n - this . readable = r ; \n - } \n - \n + return request . isReadable ( ) ; \n + } \n public boolean isWriteable ( ) { \n - return writeable ; \n - } \n - \n - public void setWriteable ( boolean w ) { \n - this . writeable = w ; \n + return response . isWriteable ( ) ; \n } \n \n public void configure ( CometEvent . CometConfiguration . . . options )", "msg_token": "simplify isreadable and iswriteable"} {"diff": " public class MaterialDialog extends DialogBase implements View . OnClickListener { \n break ; \n } \n case MULTI : { \n - if ( mBuilder . selectedIndices != null ) { \n - @ suppresslint ( STRING0 ) \n - CheckBox checkbox = ( CheckBox ) view . findViewById ( R . id . control ) ; \n - checkbox . setChecked ( selectedIndicesList . contains ( index ) ) ; \n - } \n + @ suppresslint ( STRING0 ) \n + CheckBox checkbox = ( CheckBox ) view . findViewById ( R . id . control ) ; \n + checkbox . setChecked ( selectedIndicesList . contains ( index ) ) ; \n break ; \n } \n }", "msg_token": "Fix multichoice list items not updating correctly if no pre selected indices given"} {"diff": " public class X509ProcessingFilterTests extends TestCase { \n super . setUp ( ) ; \n } \n \n + public void tearDown ( ) { \n + ContextHolder . setContext ( null ) ; \n + } \n + \n public void testNormalOperation ( ) throws Exception { \n MockHttpServletRequest request = new MockHttpServletRequest ( null , new MockHttpSession ( ) ) ; \n MockHttpServletResponse response = new MockHttpServletResponse ( ) ;", "msg_token": "Added tearDown method which resets the context to null to prevent occasional breaking of other test classes"} {"diff": " public final class Calendar { \n SINGLE \n SINGLE \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final class SyncState implements SyncStateContract . Columns { \n + COMMENT \n + COMMENT \n + COMMENT \n + private SyncState ( ) { } \n + \n + public static final String CONTENT_DIRECTORY = \n + SyncStateContract . Constants . CONTENT_DIRECTORY ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final Uri CONTENT_URI = \n + Uri . withAppendedPath ( Calendar . CONTENT_URI , CONTENT_DIRECTORY ) ; \n + } \n }", "msg_token": "Add SyncState class for calendar provider"} {"diff": " public class Setup { \n return className . startsWith ( STRING0 ) \n || className . startsWith ( STRING1 ) \n || className . startsWith ( STRING2 ) \n - || className . startsWith ( STRING3 ) \n + || className . startsWith ( STRING4 ) \n || className . startsWith ( STRING5 ) ; \n }", "msg_token": "Allow shadows for Google Play Services classes"} {"diff": " public class WebView extends AbsoluteLayout \n return ; \n } \n \n - if ( sGoogleApps . contains ( packageName ) ) { \n + if ( sGoogleApps . contains ( packageName ) && mWebViewCore != null ) { \n if ( Intent . ACTION_PACKAGE_ADDED . equals ( action ) ) { \n mWebViewCore . sendMessage ( EventHub . ADD_PACKAGE_NAME , packageName ) ; \n } else { \n public class WebView extends AbsoluteLayout \n SINGLE \n @ override \n protected void onPostExecute ( Set < String > installedPackages ) { \n - mWebViewCore . sendMessage ( EventHub . ADD_PACKAGE_NAMES , installedPackages ) ; \n + if ( mWebViewCore != null ) { \n + mWebViewCore . sendMessage ( EventHub . ADD_PACKAGE_NAMES , installedPackages ) ; \n + } \n } \n } ; \n task . execute ( ) ;", "msg_token": "Fix NPE when WebView is being destroyed prior to callback completion"} {"diff": " public class HttpTraceHandler implements HttpHandler { \n } \n } \n body . append ( STRING0 ) ; \n + exchange . getResponseSender ( ) . send ( body . toString ( ) ) ; \n } else { \n handler . handleRequest ( exchange ) ; \n }", "msg_token": "Fix bug in trace handler"} {"diff": " public class BallsView extends RSSurfaceView { \n } \n \n void setAccel ( float x , float y , float z ) { \n - if ( mRender == null ) { \n + if ( ( mRender == null ) || ( mRS == null ) ) { \n return ; \n } \n mRender . setAccel ( x , - y ) ;", "msg_token": "Add RS context check for RsBalls setAccel"} {"diff": " public class SettingsFragment extends PreferenceFragment implements SharedPrefer \n \n AlertDialog . Builder builder = new AlertDialog . Builder ( context ) ; \n builder . setView ( layout ) ; \n - builder . setIcon ( NUMBER0 ) ; \n + builder . setIcon ( R . drawable . ic_alert_icon ) ; \n builder . setPositiveButton ( android . R . string . ok , new DialogInterface . OnClickListener ( ) { \n public void onClick ( DialogInterface dialog , int which ) {", "msg_token": "Display icon on Intercept links from dialog"} {"diff": " public class InsufficientThreadsDetectionTest { \n \n @ test SINGLE \n public void testCaseForMultipleConnectors ( ) throws Exception { \n - SINGLE \n - _server = new Server ( new QueuedThreadPool ( NUMBER0 ) ) ; \n + SINGLE \n + _server = new Server ( new QueuedThreadPool ( NUMBER1 ) ) ; \n \n - SINGLE \n + SINGLE \n _server . addConnector ( new ServerConnector ( _server , null , null , null , NUMBER2 , NUMBER2 , new HttpConnectionFactory ( ) ) ) ; \n \n - SINGLE \n - final QueuedThreadPool connectorPool = new QueuedThreadPool ( NUMBER0 , NUMBER0 ) ; \n + SINGLE \n + final QueuedThreadPool connectorPool = new QueuedThreadPool ( NUMBER1 , NUMBER1 ) ; \n _server . addConnector ( new ServerConnector ( _server , connectorPool , null , null , NUMBER2 , NUMBER2 , new HttpConnectionFactory ( ) ) ) ; \n \n SINGLE", "msg_token": "Fixed test to correctly count minimum required server threads"} {"diff": " class EqualsPredicate implements Predicate { \n \n private final ExchangeAttribute [ ] attributes ; \n \n - EqualsPredicate ( final ExchangeAttribute [ ] attribute ) { \n - this . attributes = attribute ; \n + EqualsPredicate ( final ExchangeAttribute [ ] attributes ) { \n + this . attributes = attributes ; \n } \n \n @ override", "msg_token": "Fixed plural form on ExchangeAttribute"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public abstract class Stanza implements TopLevelStreamElement { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public Set < PacketExtension > getExtensions ( String elementName , String namespace ) { \n + requireNotNullOrEmpty ( elementName , STRING0 ) ; \n + requireNotNullOrEmpty ( namespace , STRING1 ) ; \n + String key = XmppStringUtils . generateKey ( elementName , namespace ) ; \n + return packetExtensions . getAll ( key ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add Stanza getExtensions String String"} {"diff": " abstract class OccurenceNavigatorActionBase extends AnAction implements DumbAwar \n } \n Navigatable descriptor = occurenceInfo . getNavigateable ( ) ; \n if ( descriptor != null && descriptor . canNavigate ( ) ) { \n - descriptor . navigate ( false ) ; \n + descriptor . navigate ( true ) ; \n } \n if ( occurenceInfo . getOccurenceNumber ( ) == - NUMBER0 || occurenceInfo . getOccurencesCount ( ) == - NUMBER0 ) { \n return ;", "msg_token": "next prev occurrence shall leave focus in editor"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import static NAMESPACE ; \n \n COMMENT \n public class MapperQueryParser extends QueryParser { \n return super . getWildcardQuery ( indexedNameField , termStr ) ; \n } \n \n + @ override protected Query getBooleanQuery ( List < BooleanClause > clauses , boolean disableCoord ) throws ParseException { \n + Query q = super . getBooleanQuery ( clauses , disableCoord ) ; \n + if ( q == null ) { \n + return null ; \n + } \n + return fixNegativeQueryIfNeeded ( q ) ; \n + } \n + \n protected FieldMapper fieldMapper ( String smartName ) { \n if ( mapperService == null ) { \n return null ;", "msg_token": "make non negative query in query parser"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix typo If an activity is in the foreground"} {"diff": " public abstract class Pool < T > implements Closeable { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public void returnResourceObject ( final T resource ) { \n if ( resource == null ) { \n return ;", "msg_token": "Deprecate Pool returnResourceObject"} {"diff": " public interface WTypes { \n } \n \n public LPOLESTR ( String value ) { \n - this ( ) ; \n + super ( new Memory ( ( value . length ( ) + NUMBER0 ) * Native . WCHAR_SIZE ) ) ; \n this . setValue ( value ) ; \n }", "msg_token": "LPOLESTR constructor with a string doesn t allocate memory"} {"diff": " import NAMESPACE ; \n public class DependencyBank { \n \n SINGLE \n - static String libgdxVersion = STRING0 ; \n + static String libgdxVersion = STRING1 ; \n SINGLE \n - static String libgdxNightlyVersion = STRING2 ; \n - static String roboVMVersion = STRING3 ; \n + static String libgdxNightlyVersion = STRING4 ; \n + static String roboVMVersion = STRING5 ; \n static String buildToolsVersion = STRING6 ; \n static String androidAPILevel = STRING7 ; \n static String gwtVersion = STRING8 ;", "msg_token": "Updated versions for relesae"} {"diff": " public class JsonObjectHashing { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static void hashJsonObject ( Hasher hasher , @ nullable Object obj ) {", "msg_token": "I thought my days of fixing Eclipse warnings were over"} {"diff": " public class ManifestConfigSource implements ConfigSource { \n if ( DBG ) { \n Log . d ( LOG_TAG , STRING0 ) ; \n } \n - source = new DefaultConfigSource ( ) ; \n + boolean usesCleartextTraffic = \n + ( info . flags & ApplicationInfo . FLAG_USES_CLEARTEXT_TRAFFIC ) != NUMBER0 ; \n + source = new DefaultConfigSource ( usesCleartextTraffic ) ; \n } \n mConfigSource = source ; \n return mConfigSource ; \n public class ManifestConfigSource implements ConfigSource { \n } \n \n private static final class DefaultConfigSource implements ConfigSource { \n + \n + private final NetworkSecurityConfig mDefaultConfig ; \n + \n + public DefaultConfigSource ( boolean usesCleartextTraffic ) { \n + mDefaultConfig = NetworkSecurityConfig . getDefaultBuilder ( ) \n + . setCleartextTrafficPermitted ( usesCleartextTraffic ) \n + . build ( ) ; \n + } \n + \n @ override \n public NetworkSecurityConfig getDefaultConfig ( ) { \n - return NetworkSecurityConfig . DEFAULT ; \n + return mDefaultConfig ; \n } \n \n @ override", "msg_token": "Use the application s usesCleartextTraffic flag"} {"diff": " public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab \n \n Object o = r . getAttribute ( ASYNCHRONOUS_HOOK ) ; \n AsynchronousProcessor . AsynchronousProcessorHook h ; \n - if ( o != null && AsynchronousProcessor . class . isAssignableFrom ( o . getClass ( ) ) ) { \n + if ( o != null && AsynchronousProcessor . AsynchronousProcessorHook . class . isAssignableFrom ( o . getClass ( ) ) ) { \n h = ( AsynchronousProcessor . AsynchronousProcessorHook ) o ; \n if ( ! resource . isCancelled ( ) ) { \n if ( closeCode == NUMBER0 ) {", "msg_token": "Fix wrong cast"} {"diff": " public abstract class Contacts \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated javadoc comment"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add missing license header"} {"diff": " public class LockPatternUtils { \n \n private void setLong ( String secureSettingKey , long value , int userHandle ) { \n try { \n - getLockSettings ( ) . setLong ( secureSettingKey , value , getCurrentOrCallingUserId ( ) ) ; \n + getLockSettings ( ) . setLong ( secureSettingKey , value , userHandle ) ; \n } catch ( RemoteException re ) { \n SINGLE \n Log . e ( TAG , STRING0 + secureSettingKey + re ) ;", "msg_token": "Fix setLong so it actualy uses userHandle passed in"} {"diff": " public class WordPress extends Application { \n EventBus . builder ( ) \n . logNoSubscriberMessages ( false ) \n . sendNoSubscriberEvent ( false ) \n + . throwSubscriberException ( true ) \n . installDefaultEventBus ( ) ; \n \n RestClientUtils . setUserAgent ( getUserAgent ( ) ) ;", "msg_token": "Added throwSubscriberException true"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n public enum HighlightPolicy { \n - DO_NOT_HIGHLIGHT ( STRING0 ) , \n BY_LINE ( STRING1 ) , \n BY_WORD ( STRING2 ) , \n - BY_WORD_SPLIT ( STRING3 ) ; \n + BY_WORD_SPLIT ( STRING3 ) , \n + DO_NOT_HIGHLIGHT ( STRING0 ) ; \n \n @ notnull private final String myText ;", "msg_token": "move Do not highlight option to the bottom of list"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public interface Client { \n int status = connection . getResponseCode ( ) ; \n String reason = connection . getResponseMessage ( ) ; \n \n + if ( status < NUMBER0 || reason == null ) { \n + SINGLE \n + throw new IOException ( format ( STRING0 , connection . getRequestMethod ( ) , \n + connection . getURL ( ) ) ) ; \n + } \n + \n Map < String , Collection < String > > headers = new LinkedHashMap < String , Collection < String > > ( ) ; \n for ( Map . Entry < String , List < String > > field : connection . getHeaderFields ( ) . entrySet ( ) ) { \n SINGLE", "msg_token": "Handle invalid HTTP received from server"} {"diff": " public final class StringUtils { \n SINGLE \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public static String join ( Collection collection , String separator ) { \n - return collection == null ? null : join ( collection . iterator ( ) , separator ) ; \n + public static String join ( Iterable iterable , String separator ) { \n + return iterable == null ? null : join ( iterable . iterator ( ) , separator ) ; \n } \n - \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add small extension to StringUtils"} {"diff": " public class WifiStateTracker extends NetworkStateTracker { \n } \n handleDisconnectedState ( newDetailedState , true ) ; \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - if ( mRunState == RUN_STATE_RUNNING && ! mIsScanOnly && networkId != - NUMBER0 ) { \n + if ( mRunState == RUN_STATE_RUNNING && ! mIsScanOnly ) { \n sendMessageDelayed ( reconnectMsg , RECONNECT_DELAY_MSECS ) ; \n } else if ( mRunState == RUN_STATE_STOPPING ) { \n stopDriver ( ) ;", "msg_token": "DO NOT MERGE Dont let supplicant stay in DORMANT state"} {"diff": " public class AsyncByteBufferInputStreamTest { \n reader . join ( ) ; \n writer . join ( ) ; \n \n - await ( ) . atMost ( NUMBER0 , TimeUnit . SECONDS ) . untilTrue ( caughtExceptionInReader ) ; \n + await ( ) . atMost ( NUMBER1 , TimeUnit . SECONDS ) . untilTrue ( caughtExceptionInReader ) ; \n assertTrue ( stream . getFailed ( ) instanceof Exception ) ; \n assertEquals ( STRING0 , stream . getFailed ( ) . getMessage ( ) ) ; \n } \n public class AsyncByteBufferInputStreamTest { \n reader . join ( ) ; \n writer . join ( ) ; \n \n - await ( ) . atMost ( NUMBER0 , TimeUnit . SECONDS ) . until ( new Callable < Boolean > ( ) { \n + await ( ) . atMost ( NUMBER1 , TimeUnit . SECONDS ) . until ( new Callable < Boolean > ( ) { \n @ override \n public Boolean call ( ) throws Exception { \n return stream . isDone ( ) ;", "msg_token": "bump timeouts to allow for slower build box"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PersistentTokenBasedRememberMeServices extends AbstractRememberMeSe \n newToken . getDate ( ) ) ; \n addCookie ( newToken , request , response ) ; \n } \n - catch ( DataAccessException e ) { \n + catch ( Exception e ) { \n logger . error ( STRING0 , e ) ; \n throw new RememberMeAuthenticationException ( \n STRING1 ) ; \n public class PersistentTokenBasedRememberMeServices extends AbstractRememberMeSe \n tokenRepository . createNewToken ( persistentToken ) ; \n addCookie ( persistentToken , request , response ) ; \n } \n - catch ( DataAccessException e ) { \n + catch ( Exception e ) { \n logger . error ( STRING2 , e ) ; \n } \n }", "msg_token": "Remove DataAccessException import from Persistent RememberMe"} {"diff": " public class ClientCommandHandler extends CommandHandler \n message = message . substring ( NUMBER0 ) ; \n } \n \n - String [ ] args = message . split ( STRING0 ) ; \n - String commandName = args [ NUMBER1 ] ; \n - System . arraycopy ( args , NUMBER0 , args , NUMBER1 , args . length - NUMBER0 ) ; \n + String [ ] temp = message . split ( STRING0 ) ; \n + String [ ] args = new String [ temp . length - NUMBER0 ] ; \n + String commandName = temp [ NUMBER1 ] ; \n + System . arraycopy ( temp , NUMBER0 , args , NUMBER1 , args . length ) ; \n ICommand icommand = ( ICommand ) getCommands ( ) . get ( commandName ) ; \n \n try", "msg_token": "Fix repeated argument in CleintCommands"} {"diff": " public class BeanInfo { \n \n String name = exchange . getIn ( ) . getHeader ( Exchange . BEAN_METHOD_NAME , String . class ) ; \n if ( name != null ) { \n - if ( operations . get ( name ) . size ( ) == NUMBER0 ) { \n - methodInfo = operations . get ( name ) . get ( NUMBER1 ) ; \n + if ( operations . containsKey ( name ) ) { \n + List < MethodInfo > methods = operations . get ( name ) ; \n + if ( methods != null && methods . size ( ) == NUMBER0 ) { \n + methodInfo = methods . get ( NUMBER1 ) ; \n + } \n } \n } \n if ( methodInfo == null ) {", "msg_token": "Fixed NPE with BeanInfo"} {"diff": " public class HtmlTagCanBeJavadocTagInspection extends BaseInspection { \n } \n \n private static void appendElementText ( String text , int startOffset , int endOffset , StringBuilder out ) { \n - if ( out . length ( ) == NUMBER0 && endOffset - startOffset > NUMBER1 && ! Character . isWhitespace ( text . charAt ( startOffset ) ) ) { \n + if ( out . length ( ) == STRING0 . length ( ) && endOffset - startOffset > NUMBER1 && ! Character . isWhitespace ( text . charAt ( startOffset ) ) ) { \n out . append ( STRING1 ) ; \n } \n out . append ( text , startOffset , endOffset ) ;", "msg_token": "remove magic number"} {"diff": " public abstract class BaseStatusBar extends SystemUI implements \n logUpdate ( entry , n ) ; \n } \n boolean applyInPlace = shouldApplyInPlace ( entry , n ) ; \n - boolean shouldInterrupt = shouldInterrupt ( entry ) ; \n + boolean shouldInterrupt = shouldInterrupt ( entry , notification ) ; \n boolean alertAgain = alertAgain ( entry , n ) ; \n \n entry . notification = notification ; \n public abstract class BaseStatusBar extends SystemUI implements \n } \n \n protected boolean shouldInterrupt ( Entry entry ) { \n - StatusBarNotification sbn = entry . notification ; \n + return shouldInterrupt ( entry , entry . notification ) ; \n + } \n + \n + protected boolean shouldInterrupt ( Entry entry , StatusBarNotification sbn ) { \n if ( mNotificationData . shouldFilterOut ( sbn ) ) { \n if ( DEBUG ) { \n Log . d ( TAG , STRING0 + sbn . getKey ( ) + STRING1 ) ;", "msg_token": "decide interruptions based on current data not previous data"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class InternalServletModule extends AbstractModule { \n static class BackwardsCompatibleServletContextProvider implements Provider < ServletContext > { \n private ServletContext injectedServletContext ; \n \n + @ inject BackwardsCompatibleServletContextProvider ( ) { } \n + \n SINGLE \n void set ( ServletContext injectedServletContext ) { \n this . injectedServletContext = injectedServletContext ;", "msg_token": "Add explicit Inject"} {"diff": " public class UnknownType extends LiquibaseDataType { \n || getName ( ) . equalsIgnoreCase ( STRING0 ) \n || getName ( ) . equalsIgnoreCase ( STRING1 ) \n || getName ( ) . equalsIgnoreCase ( STRING2 ) \n + || getName ( ) . equalsIgnoreCase ( STRING3 ) \n || getName ( ) . equalsIgnoreCase ( STRING4 ) \n ) { \n parameters = new Object [ NUMBER0 ] ;", "msg_token": "ANYDATA datatype setting length in Snapshot"} {"diff": " public class Rectangle implements Serializable { \n this . height = height ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setSize ( float width , float height ) { \n + this . width = width ; \n + this . height = height ; \n + } \n + \n + COMMENT \n + COMMENT \n + public void setSize ( float sizeXY ) { \n + this . width = sizeXY ; \n + this . height = sizeXY ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Rectangle add setSize methods"} {"diff": " final class CdmaSMSDispatcher extends SMSDispatcher { \n PendingIntent intent = tracker . mDeliveryIntent ; \n Intent fillIn = new Intent ( ) ; \n fillIn . putExtra ( STRING0 , sms . getPdu ( ) ) ; \n + fillIn . putExtra ( STRING1 , android . telephony . SmsMessage . FORMAT_3GPP2 ) ; \n try { \n intent . send ( mContext , Activity . RESULT_OK , fillIn ) ; \n } catch ( CanceledException ex ) { } \n public final class GsmSMSDispatcher extends SMSDispatcher { \n PendingIntent intent = tracker . mDeliveryIntent ; \n Intent fillIn = new Intent ( ) ; \n fillIn . putExtra ( STRING0 , IccUtils . hexStringToBytes ( pduString ) ) ; \n + fillIn . putExtra ( STRING1 , android . telephony . SmsMessage . FORMAT_3GPP ) ; \n try { \n intent . send ( mContext , Activity . RESULT_OK , fillIn ) ; \n } catch ( CanceledException ex ) { }", "msg_token": "Add format extra to SMS delivery report intents"} {"diff": " public class XaLogicalLog implements LogLoader \n positionCache . putHeader ( logVersion , lastTx ) ; \n instantiateCorrectWriteBuffer ( ) ; \n msgLog . logMessage ( STRING0 + \n - writeBuffer . getFileChannelPosition ( ) + STRING1 + logVersion , true ) ; \n + writeBuffer . getFileChannelPosition ( ) + STRING2 + logVersion + \n + STRING3 + previousLogLastCommittedTx , true ) ; \n return lastTx ; \n }", "msg_token": "Added useful information during rotation"} {"diff": " public class TransportSQLActionSingleNodeTest extends SQLTransportIntegrationTes \n } \n \n @ test \n - public void testInsertBulkNullArray ( ) throws Exception { \n + public void testInsertDynamicNullArrayInBulk ( ) throws Exception { \n execute ( STRING0 ) ; \n ensureYellow ( ) ; \n SQLBulkRequest request = new SQLBulkRequest ( STRING1 , \n public class TransportSQLActionSingleNodeTest extends SQLTransportIntegrationTes \n \n waitForConcreteMappingsOnAll ( STRING2 , Constants . DEFAULT_MAPPING_TYPE , STRING3 ) ; \n execute ( STRING4 ) ; \n - assertThat ( ( String ) response . rows ( ) [ NUMBER0 ] [ NUMBER0 ] , is ( STRING5 ) ) ; \n + assertThat ( ( String ) response . rows ( ) [ NUMBER0 ] [ NUMBER0 ] , is ( STRING5 ) ) ; \n } \n \n private void assertBulkResponseWithTypes ( String stmt , Object [ ] [ ] bulkArgs ) {", "msg_token": "renamed test and check if it is flaky"} {"diff": " public class LanguageManagerDialog implements ActionListener { \n \n static class XMLFileFilter extends FileFilter { \n public boolean accept ( final File f ) { \n - if ( f . getName ( ) . toLowerCase ( ) . endsWith ( STRING0 ) ) \n + if ( f . getName ( ) . toLowerCase ( ) . endsWith ( STRING0 ) || f . isDirectory ( ) ) \n return true ; \n return false ; \n }", "msg_token": "don t hide directories in the file dialog"} {"diff": " public class ComponentList extends CamelCommandSupport { \n \n @ option ( name = STRING0 , aliases = STRING1 , description = STRING2 , \n required = false , multiValued = false , valueToShowInHelp = STRING3 ) \n - boolean verbose = false ; \n + boolean verbose ; \n \n protected Object doExecute ( ) throws Exception { \n List < Map < String , String > > components = camelController . listComponents ( name ) ;", "msg_token": "Fixed the CS error of camel karaf component"} {"diff": " public class PropertyFileConfiguratorTest \n public void shouldSetStoreDirSetting ( ) throws Exception \n { \n SINGLE \n - String dbLocation = STRING0 ; \n + String dbLocation = new File ( STRING0 ) . getAbsolutePath ( ) ; \n File propertyFile = PropertyFileBuilder . builder ( folder . getRoot ( ) ) . withNameValue ( Configurator . DATABASE_LOCATION_PROPERTY_KEY , dbLocation ) . build ( ) ; \n PropertyFileConfigurator serverConfig = new PropertyFileConfigurator ( propertyFile ) ;", "msg_token": "Fixed OS specific path comparison in a test"} {"diff": " public class Main { \n for ( ModelResult < GradleProject > gradleProjectModelResult : gradleProjects ) { \n GradleProject gradleProject = gradleProjectModelResult . getModel ( ) ; \n if ( gradleProject . getProjectDirectory ( ) . equals ( interestingProjectDir ) ) { \n - buildIdentifier = gradleProject . getIdentifier ( ) . getBuildIdentifier ( ) ; \n + buildIdentifier = gradleProject . getProjectIdentifier ( ) . getBuildIdentifier ( ) ; \n } \n } \n return buildIdentifier ; \n public class Main { \n \n private static boolean interestedInProject ( GradleProject gradleProject , BuildIdentifier buildIdentifier ) { \n SINGLE \n - return gradleProject . getIdentifier ( ) . getBuildIdentifier ( ) . equals ( buildIdentifier ) ; \n + return gradleProject . getProjectIdentifier ( ) . getBuildIdentifier ( ) . equals ( buildIdentifier ) ; \n } \n \n private static List < Launchable > getBuildTasksFromGradleProject ( GradleProject gradleProject ) {", "msg_token": "Fix sample for changed API"} {"diff": " public class ProtocolProviderServiceJabberImpl \n } \n } \n else \n - logger . error ( STRING0 ) ; \n + logger . error ( STRING1 \n + + domain ) ; \n \n return ConnectState . CONTINUE_TRYING ; \n }", "msg_token": "Include domain name in SRV lookup log"} {"diff": " public abstract class Layer extends Iced { \n \n Dropout ( int units ) { \n _bits = new byte [ ( units + NUMBER0 ) / NUMBER1 ] ; \n - _rand = new Random ( ) ; \n + _rand = new Random ( NUMBER2 ) ; \n } \n \n SINGLE \n public class Dropout { \n \n Dropout ( int units ) { \n _bits = new byte [ ( units + NUMBER0 ) / NUMBER1 ] ; \n - _rand = new Random ( ) ; \n + _rand = new Random ( NUMBER2 ) ; \n } \n \n SINGLE", "msg_token": "Always create deterministic RNG even though it is seeded later"} {"diff": " public class DisassembleCommand extends DexInputCommand { \n } \n \n if ( analysisArguments . classPathDirectories == null || analysisArguments . classPathDirectories . isEmpty ( ) ) { \n - analysisArguments . classPathDirectories = Lists . newArrayList ( new File ( input ) . getParent ( ) ) ; \n + analysisArguments . classPathDirectories = Lists . newArrayList ( inputFile . getAbsoluteFile ( ) . getParent ( ) ) ; \n } \n \n if ( ! Baksmali . disassembleDexFile ( dexFile , outputDirectoryFile , jobs , getOptions ( ) ) ) {", "msg_token": "Fix the default classpath dir for an input file in the current directory"} {"diff": " public class TopChildrenQuery extends Query { \n ParentDoc [ ] _parentDocs = value . v ( ) . values ( ) . toArray ( ParentDoc . class ) ; \n Arrays . sort ( _parentDocs , PARENT_DOC_COMP ) ; \n parentDocs . v ( ) . put ( keys [ i ] , _parentDocs ) ; \n - value . release ( ) ; \n + RecyclerUtils . release ( value ) ; \n } \n } \n - parentDocsPerReader . release ( ) ; \n + RecyclerUtils . release ( parentDocsPerReader ) ; \n return parentHitsResolved ; \n } \n \n public class MatchedQueriesFetchSubPhase implements FetchSubPhase { \n } \n } catch ( IOException e ) { \n SINGLE \n + } finally { \n + SearchContext . current ( ) . clearReleasables ( ) ; \n } \n } \n }", "msg_token": "Release SearchContext releaseables also post match filters queries"} {"diff": " class ImageUtil { \n int actualHeight = options . outHeight ; \n int actualWidth = options . outWidth ; \n \n - float imgRatio = actualWidth / actualHeight ; \n + float imgRatio = ( float ) actualWidth / actualHeight ; \n float maxRatio = maxWidth / maxHeight ; \n \n SINGLE", "msg_token": "Prevent integral division for float variable"} {"diff": " public final class NativeDecimalFormat implements Cloneable { \n [ formatter setNotANumberSymbol : nan ] ; \n [ formatter setPercentSymbol : [ NSString stringWithCharacters : & percent length : NUMBER0 ] ] ; \n [ formatter setPerMillSymbol : [ NSString stringWithCharacters : & perMill length : NUMBER0 ] ] ; \n - [ formatter setZeroSymbol : [ NSString stringWithCharacters : & zeroDigit length : NUMBER0 ] ] ; \n + if ( zeroDigit != STRING0 ) { \n + [ formatter setZeroSymbol : [ NSString stringWithCharacters : & zeroDigit length : NUMBER0 ] ] ; \n + } \n ] - * / ; \n \n COMMENT", "msg_token": "added workaround for NSNumberFormatter not using minimum digit setting when zero character is reset"} {"diff": " public class BuckConfig { \n Path getCacheDir ( ) { \n String cacheDir = getValue ( STRING0 , STRING1 ) . or ( DEFAULT_CACHE_DIR ) ; \n if ( ! cacheDir . isEmpty ( ) ) { \n - if ( cacheDir . charAt ( NUMBER0 ) == STRING2 ) { \n + if ( cacheDir . startsWith ( STRING3 ) ) { \n return Paths . get ( cacheDir ) ; \n - } else if ( cacheDir . charAt ( NUMBER0 ) == STRING4 ) { \n + } else if ( cacheDir . startsWith ( STRING5 ) ) { \n return Paths . get ( cacheDir . replace ( STRING6 , System . getProperty ( STRING7 ) ) ) ; \n } \n }", "msg_token": "Require tilde expansion in home cache dirs to start with"} {"diff": " public class LayerDrawable extends Drawable implements Drawable . Callback { \n @ override \n public Drawable mutate ( ) { \n if ( ! mMutated && super . mutate ( ) == this ) { \n - if ( ! mLayerState . canConstantState ( ) ) { \n - throw new IllegalStateException ( STRING0 + \n - STRING1 ) ; \n - } \n mLayerState = new LayerState ( mLayerState , this , null ) ; \n final ChildDrawable [ ] array = mLayerState . mChildren ; \n final int N = mLayerState . mNum ;", "msg_token": "Remove overzealous mutate sanity check in LayerDrawable"} {"diff": " class Scroller { \n COMMENT \n COMMENT \n \n + @ suppresswarnings ( STRING0 ) \n public void scrollToSide ( Side side ) { \n int screenHeight = activityUtils . getCurrentActivity ( ) . getWindowManager ( ) . getDefaultDisplay ( ) \n . getHeight ( ) ; \n class ViewFetcher { \n COMMENT \n COMMENT \n \n + @ suppresswarnings ( STRING0 ) \n public float getScrollListWindowHeight ( View view ) { \n final int [ ] xyParent = new int [ NUMBER0 ] ; \n View parent = getScrollOrListParent ( view ) ;", "msg_token": "Suppressed deprecated warnings in Scroller java and ViewFetcher java"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Main { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 , \n + STRING4 , \n STRING5 , \n STRING6 , \n STRING7 ,", "msg_token": "Include Shapes in LayoutLib"} {"diff": " public class AntBeforeRunTaskProvider extends BeforeRunTaskProvider < AntBeforeRun \n \n public AntBeforeRunTaskProvider ( Project project ) { \n myProject = project ; \n - AntConfigurationImpl . getInstance ( myProject ) ; SINGLE \n } \n \n public Key < AntBeforeRunTask > getId ( ) {", "msg_token": "avoid preventive loading of heavy ant model"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class ModClusterNodeDefinition extends SimpleResourceDefinition { \n \n @ override \n protected void handleNode ( OperationContext context , ModClusterStatus . Node ctx , ModelNode operation ) throws OperationFailedException { \n - ModelNode list = new ModelNode ( ModelType . LIST ) ; \n - for ( String alias : ctx . getAliases ( ) ) { \n - list . add ( alias ) ; \n + final ModelNode result = new ModelNode ( ) ; \n + for ( String alias : ctx . getAliases ( ) ) { \n + UndertowLogger . ROOT_LOGGER . tracef ( STRING0 , alias ) ; \n + result . add ( alias ) ; \n } \n - context . getResult ( ) . set ( list ) ; \n + context . getResult ( ) . set ( result ) ; \n } \n } ) ; \n resourceRegistration . registerReadOnlyAttribute ( ELECTED , new AbstractNodeOperation ( ) {", "msg_token": "Fixing IllegalArgumentException on listing aliases"} {"diff": " public class ORecordLazyList extends ORecordTrackedList implements ORecordLazyMu \n \n @ override \n public Object [ ] toArray ( ) { \n - lazyLoad ( false ) ; \n convertLinks2Records ( ) ; \n return super . toArray ( ) ; \n } \n public class ORecordLazySet implements Set < OIdentifiable > , ORecordLazyMultiValue \n \n public void sort ( ) { \n if ( ! sorted && ! delegate . isEmpty ( ) ) { \n + final boolean prevConvert = delegate . isAutoConvertToRecord ( ) ; \n + if ( prevConvert ) \n + delegate . setAutoConvertToRecord ( false ) ; \n + \n Collections . sort ( delegate ) ; \n + \n + if ( prevConvert ) \n + SINGLE \n + delegate . setAutoConvertToRecord ( true ) ; \n + \n sorted = true ; \n } \n }", "msg_token": "Fixed bug on sorting deleted records"} {"diff": " public final class HdmiControlService extends SystemService { \n SINGLE \n SINGLE \n default : \n - Slog . w ( TAG , STRING0 + message . toString ( ) ) ; \n - return false ; \n + return dispatchMessageToAction ( message ) ; \n } \n } \n \n public final class HdmiControlService extends SystemService { \n } \n } \n \n + private boolean dispatchMessageToAction ( HdmiCecMessage message ) { \n + for ( FeatureAction action : mActions ) { \n + if ( action . processCommand ( message ) ) { \n + return true ; \n + } \n + } \n + Slog . w ( TAG , STRING0 + message ) ; \n + return false ; \n + } \n + \n SINGLE \n SINGLE \n private final class HotplugEventListenerRecord implements IBinder . DeathRecipient {", "msg_token": "Dispatch incoming CEC messages to feature actions"} {"diff": " public IPersistentMap meta ( ) { \n return null ; \n } \n \n + public IObj withMeta ( final IPersistentMap meta ) { \n + return new RestFn ( ) { \n + protected Object doInvoke ( Object args ) throws Exception { \n + return AFunction . this . applyTo ( ( ISeq ) args ) ; \n + } \n + \n + public IPersistentMap meta ( ) { \n + return meta ; \n + } \n + \n + public IObj withMeta ( IPersistentMap meta ) { \n + return AFunction . this . withMeta ( meta ) ; \n + } \n + \n + public int getRequiredArity ( ) { \n + return NUMBER0 ; \n + } \n + } ; \n + } \n + \n public int compare ( Object o1 , Object o2 ) { \n try \n {", "msg_token": "default impl of with meta in AFunction generates forwarding wrapper"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JdbcTokenRepositoryImplTests { \n dataSource = new DriverManagerDataSource ( STRING0 , STRING1 , STRING2 , STRING3 ) ; \n } \n \n + @ afterclass \n + public static void clearDataSource ( ) { \n + dataSource = null ; \n + } \n + \n @ before \n public void populateDatabase ( ) { \n repo = new JdbcTokenRepositoryImpl ( ) ;", "msg_token": "Added method to clear datasource field after use"} {"diff": " public class ApplicationEx extends Application { \n \n @ override \n public void onCreate ( ) { \n - Util . log ( null , Log . WARN , STRING0 ) ; \n + Util . log ( null , Log . WARN , STRING1 + Util . getSelfVersionName ( this ) ) ; \n mPrevHandler = Thread . getDefaultUncaughtExceptionHandler ( ) ; \n Thread . setDefaultUncaughtExceptionHandler ( new Thread . UncaughtExceptionHandler ( ) { \n @ override", "msg_token": "Log XPrivacy version number"} {"diff": " public class WebApplicationHeader extends Composite \n toolbar_ . addRightSeparator ( ) ; \n } \n \n + @ override \n + public AppMenuBar getMainMenu ( ) \n + { \n + return mainMenu_ ; \n + } \n + \n \n public Widget asWidget ( ) \n { \n \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class WebApplicationHeaderOverlay \n void addProjectCommandSeparator ( ) ; \n void addProjectRightCommand ( Widget widget ) ; \n void addProjectRightCommandSeparator ( ) ; \n + AppMenuBar getMainMenu ( ) ; \n } \n \n public WebApplicationHeaderOverlay ( )", "msg_token": "add context accessor for main menu"} {"diff": " public class Bag < T > { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public Bag ( T [ ] features , boolean binary ) { \n this . binary = binary ; \n this . features = new HashMap < T , Integer > ( ) ; \n - for ( int i = NUMBER0 ; i < features . length ; i ++ ) { \n - this . features . put ( features [ i ] , i ) ; \n + for ( int i = NUMBER0 , k = NUMBER0 ; i < features . length ; i ++ ) { \n + if ( ! this . features . containsKey ( features [ i ] ) ) { \n + this . features . put ( features [ i ] , k ++ ) ; \n + } \n } \n }", "msg_token": "add sanity check in Bag constructor"} {"diff": " public class ConstraintsUtil { \n } \n addToValuesIfDifferent ( superTypeOfLowerBounds , values ) ; \n \n - if ( values . isEmpty ( ) ) { \n - Collection < JetType > upperBounds = typeConstraintsWithoutErrorTypes . getUpperBounds ( ) ; \n - for ( JetType upperBound : upperBounds ) { \n - if ( trySuggestion ( upperBound , typeConstraints ) ) { \n - return Collections . singleton ( upperBound ) ; \n - } \n + Collection < JetType > upperBounds = typeConstraintsWithoutErrorTypes . getUpperBounds ( ) ; \n + for ( JetType upperBound : upperBounds ) { \n + if ( trySuggestion ( upperBound , typeConstraints ) ) { \n + return Collections . singleton ( upperBound ) ; \n } \n } \n SINGLE", "msg_token": "check all upper bounds even if there are some error types in bounds"} {"diff": " public class AddOpenModifierToClassDeclarationFix extends JetIntentionAction < Jet \n @ notnull \n @ override \n public String getText ( ) { \n - return JetBundle . message ( STRING0 , classDeclaration . getName ( ) , STRING1 ) ; \n + return JetBundle . message ( STRING0 , classDeclaration != null ? classDeclaration . getName ( ) : STRING2 , STRING1 ) ; \n } \n \n @ notnull", "msg_token": "Make getText work even if action was recognized as inapplicable"} {"diff": " public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public static String reverse ( String self ) { \n - int size = self . length ( ) ; \n - StringBuilder buffer = new StringBuilder ( size ) ; \n - for ( int i = size - NUMBER0 ; i >= NUMBER1 ; i -- ) { \n - buffer . append ( self . charAt ( i ) ) ; \n - } \n - return buffer . toString ( ) ; \n + return new StringBuilder ( self ) . reverse ( ) . toString ( ) ; \n } \n \n COMMENT", "msg_token": "DefaultGroovyMethods reverse String does not reverse strings correctly"} {"diff": " public abstract class FetchableSubQueryBase < T , Q extends FetchableSubQueryBase < T \n public BooleanExpression in ( T . . . right ) { \n return this . in ( Arrays . asList ( right ) ) ; \n } \n - } \n + }", "msg_token": "add new line"} {"diff": " public class RestAdapter { \n log . log ( STRING0 ) ; \n } \n for ( int i = NUMBER0 ; i < args . length ; i ++ ) { \n - log . log ( STRING1 + i + STRING2 + args [ i ] . toString ( ) ) ; \n + log . log ( STRING1 + i + STRING2 + args [ i ] ) ; \n } \n } \n }", "msg_token": "Avoid an NPE when logging a null request arg"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved docs on ProcessingInterceptor"} {"diff": " public abstract class ClassUtils { \n while ( clazz != null ) { \n Class [ ] ifcs = clazz . getInterfaces ( ) ; \n for ( Class ifc : ifcs ) { \n - if ( ! interfaces . contains ( ifc ) && Modifier . isPublic ( ifc . getModifiers ( ) ) && \n + if ( ! interfaces . contains ( ifc ) && \n ( classLoader == null || isVisible ( ifc , classLoader ) ) ) { \n interfaces . add ( ifc ) ; \n }", "msg_token": "reverted non public proxy interface change"} {"diff": " public abstract class AbstractSoftwareComponent < T extends SoftwareArtifact > impl \n } \n \n @ override \n - public boolean equals ( Object other ) { \n + public final boolean equals ( Object other ) { \n if ( this == other ) { \n return true ; \n } \n public abstract class AbstractSoftwareComponent < T extends SoftwareArtifact > impl \n } \n \n @ override \n - public int hashCode ( ) { \n + public final int hashCode ( ) { \n return componentId . hashCode ( ) ; \n } \n } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "documented equals contract"} {"diff": " public class ShadowHandler { \n } \n \n @ implementation \n - public final Looper getLooper ( ) { \n - return looper ; \n - } \n - \n - @ implementation \n public final void removeCallbacks ( java . lang . Runnable r ) { \n shadowOf ( looper ) . getScheduler ( ) . remove ( r ) ; \n }", "msg_token": "remove dup getLooper"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class LayeredIcon implements Icon { \n \n @ override \n public int getIconWidth ( ) { \n + if ( myWidth == NUMBER0 ) { \n + recalculateSize ( ) ; \n + } \n return myWidth ; \n } \n \n @ override \n public int getIconHeight ( ) { \n + if ( myHeight == NUMBER0 ) { \n + recalculateSize ( ) ; \n + } \n return myHeight ; \n }", "msg_token": "fix layered icon cached size"} {"diff": " public final class ParsedReaderResultTestCase extends TestCase { \n public void testTextType ( ) { \n doTestResult ( STRING0 , STRING0 , ParsedResultType . TEXT ) ; \n doTestResult ( STRING1 , STRING1 , ParsedResultType . TEXT ) ; \n + doTestResult ( STRING2 , STRING2 , ParsedResultType . TEXT ) ; \n doTestResult ( STRING3 , STRING3 , ParsedResultType . TEXT ) ; \n doTestResult ( STRING4 , STRING4 , \n ParsedResultType . TEXT ) ;", "msg_token": "Improve URL detection rule to exclude stuff like Hi"} {"diff": " public class VFileCreateEvent extends VFileEvent { \n private final boolean myDirectory ; \n private final String myChildName ; \n private final boolean myReCreation ; \n + private VirtualFile myCreatedFile ; \n \n public VFileCreateEvent ( Object requestor , \n @ notnull VirtualFile parent , \n public class VFileCreateEvent extends VFileEvent { \n \n @ override \n public VirtualFile getFile ( ) { \n - return myParent . findChild ( myChildName ) ; \n + if ( myCreatedFile != null ) return myCreatedFile ; \n + return myCreatedFile = myParent . findChild ( myChildName ) ; \n } \n \n @ notnull", "msg_token": "we evaluate store created file instance once per event"} {"diff": " public class ApiMethodHelperTest { \n properties . put ( STRING0 , STRING1 ) ; \n properties . put ( STRING2 , STRING3 ) ; \n assertEquals ( STRING4 , STRING5 , apiMethodHelper . invokeMethod ( proxy , TestMethod . GREETUS , properties ) ) ; \n + \n + properties . clear ( ) ; \n + properties . put ( STRING6 , new String [ ] { STRING1 , STRING3 } ) ; \n + assertEquals ( STRING7 , STRING5 , apiMethodHelper . invokeMethod ( proxy , TestMethod . GREETALL , properties ) ) ; \n + \n + SINGLE \n + proxy = new TestProxy ( ) { \n + @ override \n + public String sayHi ( String name ) { \n + return STRING8 + name ; \n + } \n + } ; \n + properties . clear ( ) ; \n + properties . put ( STRING9 , STRING1 ) ; \n + assertEquals ( STRING10 , STRING11 , apiMethodHelper . invokeMethod ( proxy , TestMethod . SAYHI_1 , properties ) ) ; \n } \n \n static enum TestMethod implements ApiMethod {", "msg_token": "Added test for invoking a derived proxy class"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpClientConfiguration { \n private int retries = NUMBER0 ; \n \n @ notnull \n + @ unwrapvalidatedvalue ( false ) \n private Optional < String > userAgent = Optional . absent ( ) ; \n \n @ valid", "msg_token": "Do not unwrap optional user agent"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n @ category ( QuickTest . class ) \n public class HazelcastTest extends HazelcastTestSupport { \n \n + @ before \n + @ after \n + public void cleanup ( ) { \n + Hazelcast . shutdownAll ( ) ; \n + } \n + \n @ test ( expected = NullPointerException . class ) \n public void getOrCreateHazelcastInstance_nullConfig ( ) { \n Hazelcast . getOrCreateHazelcastInstance ( null ) ;", "msg_token": "Fixed cleanup problem in the HazelcastTest the hazelcastInstances were not shutdown"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed broken tests"} {"diff": " public class AppInitializer implements IProgress { \n \n \n private void saveGPXTracks ( ) { \n - if ( app . getSettings ( ) . SAVE_GLOBAL_TRACK_TO_GPX . get ( ) ) { \n - app . startNavigationService ( NavigationService . USED_BY_GPX ) ; \n - } \n if ( app . savingTrackHelper . hasDataToSave ( ) ) { \n long timeUpdated = app . savingTrackHelper . getLastTrackPointTime ( ) ; \n if ( System . currentTimeMillis ( ) - timeUpdated >= NUMBER0 * NUMBER1 * NUMBER2 ) { \n public class AppInitializer implements IProgress { \n app . savingTrackHelper . loadGpxFromDatabase ( ) ; \n } \n } \n + if ( app . getSettings ( ) . SAVE_GLOBAL_TRACK_TO_GPX . get ( ) ) { \n + app . startNavigationService ( NavigationService . USED_BY_GPX ) ; \n + } \n }", "msg_token": "revert task order did not solve the issue"} {"diff": " public abstract class HealthCheck { \n return HEALTHY ; \n } \n \n + public static Result healthy ( String message ) { \n + return new Result ( true , message , null ) ; \n + } \n + \n public static Result unhealthy ( String errorMessage ) { \n return new Result ( false , errorMessage , null ) ; \n }", "msg_token": "Allow message for healthy result"} {"diff": " public class RemoteImageViewTest { \n public void testCorrectAttributeInflationAndDefaulting ( ) { \n RemoteImageView imageView = ( RemoteImageView ) activity . findViewById ( R . id . image1 ) ; \n \n - imageView . setupViewSwitcher ( ) ; \n - \n SINGLE \n assertTrue ( imageView . isAutoLoad ( ) ) ; \n \n public class RemoteImageViewTest { \n RemoteImageView view4 = ( RemoteImageView ) activity . findViewById ( R . id . image4 ) ; \n RemoteImageView view5 = ( RemoteImageView ) activity . findViewById ( R . id . image5 ) ; \n \n - view1 . setupViewSwitcher ( ) ; \n - view2 . setupViewSwitcher ( ) ; \n - view3 . setupViewSwitcher ( ) ; \n - view4 . setupViewSwitcher ( ) ; \n - view5 . setupViewSwitcher ( ) ; \n - \n assertTrue ( view1 . isAutoLoad ( ) ) ; \n assertTrue ( imageLoader . isLoadImageCalled ( view1 ) ) ;", "msg_token": "Fix remote image view tests"} {"diff": " public class RankingToolbar extends JToolBar implements PropertyChangeListener { \n return new DecoratedIcon ( icon , decoration , new DecoratedIcon . DecorationController ( ) { \n \n public boolean isDecorated ( ) { \n - return model . isAutoTransformer ( transformer ) ; \n + return model != null && model . isAutoTransformer ( transformer ) ; \n } \n } ) ; \n }", "msg_token": "Fix NPE when closing project"} {"diff": " public class ListTest extends HazelcastTestSupport { \n final int insCount = NUMBER0 ; \n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory ( insCount ) ; \n final HazelcastInstance [ ] instances = factory . newInstances ( config ) ; \n - \n + assertTrue ( getList ( instances , name ) . isEmpty ( ) ) ; \n for ( int i = NUMBER1 ; i < count ; i ++ ) { \n assertTrue ( getList ( instances , name ) . add ( STRING0 + i ) ) ; \n } \n + assertFalse ( getList ( instances , name ) . isEmpty ( ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "added test for isEmpty method of collections"} {"diff": " public class CompactionIterator extends ReducingIterator < SSTableIdentityIterator \n \n if ( rowSize > DatabaseDescriptor . getInMemoryCompactionLimit ( ) ) \n { \n - logger . info ( STRING0 + rowSize + STRING1 ) ; \n + logger . info ( String . format ( STRING2 , \n + FBUtilities . bytesToHex ( rows . get ( NUMBER0 ) . getKey ( ) . key ) , rowSize ) ) ; \n return new LazilyCompactedRow ( rows , major , gcBefore ) ; \n } \n return new PrecompactedRow ( rows , major , gcBefore ) ;", "msg_token": "include row key in compacting large row log message"} {"diff": " public interface Value < T > extends Iterable < T > { \n COMMENT \n COMMENT \n COMMENT \n - default < U extends T > CompletableFuture < T > toCompletableFuture ( ) { \n + default CompletableFuture < T > toCompletableFuture ( ) { \n final CompletableFuture < T > completableFuture = new CompletableFuture < > ( ) ; \n try { \n completableFuture . complete ( get ( ) ) ; \n public interface Future < T > extends Value < T > { \n } \n \n @ override \n - default < U extends T > CompletableFuture < T > toCompletableFuture ( ) { \n + default CompletableFuture < T > toCompletableFuture ( ) { \n final CompletableFuture < T > future = new CompletableFuture < > ( ) ; \n onSuccess ( future : : complete ) ; \n onFailure ( future : : completeExceptionally ) ;", "msg_token": "remove redundant type parameters"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "moved LoadTest to com mysema query collections"} {"diff": " final class ConfigSubstitution extends AbstractConfigValue implements \n @ override \n public ConfigValueType valueType ( ) { \n throw new ConfigException . NotResolved ( \n - STRING0 \n + STRING1 \n + this ) ; \n } \n \n @ override \n public Object unwrapped ( ) { \n throw new ConfigException . NotResolved ( \n - STRING2 + this ) ; \n + STRING3 \n + + this ) ; \n } \n \n @ override", "msg_token": "make unresolved subst exception suggest calling resolve"} {"diff": " public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n resultSet . add ( row ) ; \n \n row . field ( STRING0 , p . getName ( ) ) ; \n - row . field ( STRING1 , p . getType ( ) ) ; \n + row . field ( STRING1 , ( Object ) p . getType ( ) ) ; \n row . field ( STRING2 , p . getLinkedClass ( ) != null ? p . getLinkedClass ( ) : p . getLinkedType ( ) ) ; \n row . field ( STRING3 , p . isMandatory ( ) ) ; \n row . field ( STRING4 , p . isReadonly ( ) ) ;", "msg_token": "fixed issue with info class"} {"diff": " public final class SessionFactoryImpl \n this . currentSessionContext = null ; \n this . sqlFunctionRegistry = null ; \n this . transactionEnvironment = null ; \n + this . jdbcServices = null ; \n + this . dialect = null ; \n \n this . sessionFactoryOptions = sessionFactoryOptions ;", "msg_token": "Fixed a problem with a conflict with Gale s change to this class"} {"diff": " public class D2RVisitorCallbackImpl implements Callback < DocPartRowImpl > , Collect \n \n public void visit ( KVArray array , AttributeReference attributeReference , TableRef tableRef , \n DocPartRowImpl parentRow ) { \n - if ( array . isEmpty ( ) ) { \n - return ; \n - } \n - \n attributeReference = attributeReference . append ( new ArrayKey ( NUMBER0 ) ) ; \n tableRef = attributeReferenceTranslator . toTableRef ( attributeReference ) ; \n DocPartDataImpl docPartData = getDocPartData ( attributeReference , tableRef ) ;", "msg_token": "Fixed table not created for an empty array"} {"diff": " public abstract class AbstractBlackBoxTestCase extends TestCase { \n \n int totalTests = imageFiles . length * testCount * NUMBER0 ; \n System . out . println ( STRING0 + totalFound + STRING1 + totalTests + \n - STRING2 + ( totalFound * NUMBER1 / totalTests ) + STRING3 ) ; \n + STRING2 + ( totalFound * NUMBER1 / totalTests ) + STRING4 + totalMustPass + STRING5 ) ; \n if ( totalFound > totalMustPass ) { \n System . out . println ( STRING6 + ( totalFound - totalMustPass ) + STRING7 ) ; \n + } else if ( totalFound < totalMustPass ) { \n + System . out . println ( STRING8 + ( totalMustPass - totalFound ) + STRING7 ) ; \n } \n \n SINGLE", "msg_token": "Added slightly better blackbox unit test stats"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public class PigTestUtil { \n \n - private static final Logger LOG = LoggerFactory . getLogger ( PigTestUtil . class ) ; \n - \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove unused LOG"} {"diff": " public class BenchmarkRunner \n Thrift . register ( groups ) ; \n ActiveMQProtobuf . register ( groups ) ; \n Kryo . register ( groups ) ; \n - CksBinary . register ( groups ) ; \n AvroSpecific . register ( groups ) ; \n AvroGeneric . register ( groups ) ; \n Hessian . register ( groups ) ; \n public class BenchmarkRunner \n JsonJacksonDatabind . register ( groups ) ; \n JsonTwoLattes . register ( groups ) ; \n ProtostuffJson . register ( groups ) ; \n - CksText . register ( groups ) ; \n ProtobufJson . register ( groups ) ; \n Gson . register ( groups ) ;", "msg_token": "Removed CKS from benchmarks"} {"diff": " public class RemoteDriver { \n if ( sparkCounters != null ) { \n counters = sparkCounters . snapshot ( ) ; \n } \n + SINGLE \n + SINGLE \n + for ( JavaFutureAction < ? > future : jobs ) { \n + future . get ( ) ; \n + } \n protocol . jobFinished ( req . id , result , null , counters ) ; \n } catch ( Throwable t ) { \n SINGLE", "msg_token": "Failed job may not throw exceptions Spark Branch Rui via Xuefu"} {"diff": " public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Fragment implements ComponentCallbacks2 , OnCreateContextMenuListene \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void onDetach ( ) { \n mCalled = true ;", "msg_token": "Clarified usage of onDetach and onCreate when setRetainInstance is set to true"} {"diff": " class MockTaskManager implements TaskOperationProtocol { \n public void recoverAll ( ChannelID sourceChannelID ) { \n } \n \n + @ override \n + public void restart ( ExecutionVertexID executionVertexID ) { \n + } \n + \n }", "msg_token": "fixed missing method"} {"diff": " public class PsiNamesElementSignatureProvider extends AbstractElementSignaturePr \n } \n return null ; \n } \n - \n - int index = Integer . parseInt ( tokenizer . nextToken ( ) ) ; \n - return restoreElementInternal ( parent , type , index , PsiNamedElement . class ) ; \n + \n + try { \n + int index = Integer . parseInt ( tokenizer . nextToken ( ) ) ; \n + return restoreElementInternal ( parent , type , index , PsiNamedElement . class ) ; \n + } \n + catch ( NumberFormatException e ) { \n + return null ; \n + } \n } \n \n @ override", "msg_token": "Provide generic mechanism that allows folding state to survive IDE restart"} {"diff": " public class DynamicRecordFormat extends BaseOneByteHeaderRecordFormat < DynamicRe \n \n readData ( record , cursor ) ; \n } \n + else \n + { \n + record . setInUse ( inUse ) ; \n + } \n } \n \n public static String payloadTooBigErrorMessage ( DynamicRecord record , int recordSize , int nrOfBytes ) \n public abstract class RecordFormatTest \n private static final int PAGE_SIZE = ( int ) kibiBytes ( NUMBER0 ) ; \n \n SINGLE \n - private static final long TEST_ITERATIONS = NUMBER1 ; \n - private static final long TEST_TIME = NUMBER2 ; \n + private static final long TEST_ITERATIONS = NUMBER3 ; \n + private static final long TEST_TIME = NUMBER4 ; \n private static final long PRINT_RESULTS_THRESHOLD = SECONDS . toMillis ( NUMBER0 ) ; \n private static final int DATA_SIZE = NUMBER5 ; \n protected static final long NULL = Record . NULL_REFERENCE . intValue ( ) ;", "msg_token": "Fix a bug in decoding of dynamic records in the standard format"} {"diff": " public class PrivacyProvider extends ContentProvider { \n \n SharedPreferences prefs = context . getSharedPreferences ( PREF_SETTINGS + STRING0 + uid , \n Context . MODE_WORLD_READABLE ) ; \n - for ( String settingKey : prefs . getAll ( ) . keySet ( ) ) \n + for ( String name : prefs . getAll ( ) . keySet ( ) ) \n try { \n - String name = getSettingName ( settingKey ) ; \n - String value = prefs . getString ( settingKey , STRING1 ) ; \n + String value = prefs . getString ( name , STRING1 ) ; \n listWork . add ( new ParcelableSetting ( uid , name , value ) ) ; \n } catch ( Throwable ex ) { \n SINGLE", "msg_token": "Fixed another migration bug"} {"diff": " public class SvnFileSystemListener implements LocalFileOperationsHandler , Comman \n if ( rootManager != null ) { \n Module module = rootManager . getFileIndex ( ) . getModuleForFile ( file ) ; \n if ( module != null ) { \n - AbstractVcs vcs = ModuleLevelVcsManager . getInstance ( module ) . getActiveVcs ( ) ; \n + AbstractVcs vcs = ProjectLevelVcsManager . getInstance ( project ) . getVcsFor ( file ) ; \n if ( vcs instanceof SvnVcs ) { \n return ( SvnVcs ) vcs ; \n }", "msg_token": "avoid using module level VCS API"} {"diff": " public class UsageDescriptor implements Comparable < UsageDescriptor > { \n public int compareTo ( UsageDescriptor ud ) { \n return getKey ( ) . compareTo ( ud . myKey ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return myKey + STRING0 + myValue ; \n + } \n }", "msg_token": "add toString to UsageDescriptor"} {"diff": " public class HtmlUtil { \n SINGLE \n STRING0 , \n SINGLE \n - STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 , STRING13 \n + STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , STRING10 , STRING11 , STRING12 \n } ; \n \n SINGLE", "msg_token": "don t treat nobr as block tag"} {"diff": " public final class CipherSuiteConverter { \n final String javaCipherSuiteTls = STRING0 + javaCipherSuiteSuffix ; \n \n SINGLE \n - final Map < String , String > p2j = new HashMap < > ( NUMBER0 ) ; \n + Map < String , String > p2j = new HashMap < > ( NUMBER0 ) ; \n p2j . put ( STRING1 , javaCipherSuiteSuffix ) ; \n p2j . put ( STRING2 , javaCipherSuiteSsl ) ; \n p2j . put ( STRING3 , javaCipherSuiteTls ) ; \n - o2j . putIfAbsent ( openSslCipherSuite , p2j ) ; \n + Map < String , String > p2jCurrent = o2j . putIfAbsent ( openSslCipherSuite , p2j ) ; \n + if ( p2jCurrent != null ) { \n + p2j = p2jCurrent ; \n + } \n \n SINGLE \n j2o . putIfAbsent ( javaCipherSuiteTls , openSslCipherSuite ) ;", "msg_token": "Fix a FindBugs issue"} {"diff": " public class ForCanBeForeachInspection extends StatementInspection { \n return false ; \n } \n final PsiExpression condition = forStatement . getCondition ( ) ; \n - if ( ! isArrayLengthComparison ( condition , indexVar ) ) { \n + if ( condition == null || ! isArrayLengthComparison ( condition , indexVar ) ) { \n return false ; \n } \n final PsiStatement update = forStatement . getUpdate ( ) ; \n public class ForCanBeForeachInspection extends StatementInspection { \n return false ; \n } \n \n - private static boolean isArrayLengthComparison ( PsiExpression condition , \n + private static boolean isArrayLengthComparison ( @ notnull PsiExpression condition , \n PsiLocalVariable var ) { \n final PsiExpression strippedCondition = \n ParenthesesUtils . stripParentheses ( condition ) ; \n final class ThumbnailManagerImpl extends ThumbnailManager implements Application \n public float getWeight ( ) { \n return NUMBER0 ; \n } \n + \n } \n }", "msg_token": "unifying project view take one"} {"diff": " public class OObjectSerializerHelper { \n if ( iMultiValue instanceof OLazyObjectMap < ? > ) { \n result = ( ( OLazyObjectMap < ? > ) iMultiValue ) . getUnderlying ( ) ; \n } else { \n + result = new HashMap < String , Object > ( ) ; \n for ( Entry < String , Object > entry : ( ( Map < String , Object > ) iMultiValue ) . entrySet ( ) ) { \n ( ( Map < String , Object > ) result ) . put ( entry . getKey ( ) , \n typeToStream ( entry . getValue ( ) , linkedType , iEntityManager , iObj2RecHandler , db , iSaveOnlyDirty ) ) ;", "msg_token": "Committed a patch by Luca Molino about marshalling of Maps on Detached objects"} {"diff": " public class SetCharacterEncodingFilter implements Filter { \n COMMENT \n COMMENT \n COMMENT \n - protected String selectEncoding ( \n - @ suppresswarnings ( STRING0 ) ServletRequest request ) { \n + protected String selectEncoding ( ServletRequest request ) { \n \n return ( this . encoding ) ;", "msg_token": "Fix remaining warnings in webapps with recently documented settings"} {"diff": " public abstract class NanoHTTPD { \n setAsyncRunner ( new DefaultAsyncRunner ( ) ) ; \n } \n \n - private static final void safeClose ( ServerSocket serverSocket ) { \n - if ( serverSocket != null ) { \n - try { \n - serverSocket . close ( ) ; \n - } catch ( IOException e ) { \n - } \n - } \n - } \n - \n - private static final void safeClose ( Socket socket ) { \n - if ( socket != null ) { \n - try { \n - socket . close ( ) ; \n - } catch ( IOException e ) { \n - } \n - } \n - } \n - \n private static final void safeClose ( Closeable closeable ) { \n if ( closeable != null ) { \n try {", "msg_token": "Remove redundant methods"} {"diff": " public class StreetTransitLink extends AbstractEdge implements WalkableEdge { \n \n public TraverseResult traverseBack ( State s0 , TraverseOptions wo ) { \n State s1 = s0 . clone ( ) ; \n - if ( isBoarding ) { \n + if ( ! isBoarding ) { \n s1 . setJustBoarded ( true ) ; \n } else { \n if ( s0 . getJustBoarded ( ) ) {", "msg_token": "handle traverseBack correctly"} {"diff": " public class FlowCursorIterator < TModel extends Model > implements ListIterator < TM \n if ( cursor != null ) { \n cursor . moveToPosition ( startingLocation - NUMBER0 ) ; \n reverseIndex = startingCount = cursor . getCount ( ) ; \n + reverseIndex -= startingLocation ; \n + \n + if ( reverseIndex < NUMBER1 ) { \n + reverseIndex = NUMBER1 ; \n + } \n } \n }", "msg_token": "respect starting location in the reverseindex"} {"diff": " public class Environment extends AbstractLifeCycle { \n COMMENT \n COMMENT \n COMMENT \n - public Object getJerseyProperty ( String name ) { \n - return config . getProperties ( ) . get ( name ) ; \n + public < T > T getJerseyProperty ( String name ) { \n + return ( T ) config . getProperties ( ) . get ( name ) ; \n }", "msg_token": "Pushing casting into the getter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n class SlideExpandableListView extends ListView { \n this . setOnItemClickListener ( new OnItemClickListener ( ) { \n @ override \n public void onItemClick ( AdapterView < ? > adapterView , View view , int i , long l ) { \n - SlideExpandableListAdapter adapter = ( SlideExpandableListAdapter ) getAdapter ( ) ; \n - adapter . getExpandToggleButton ( view ) . performClick ( ) ; \n + if ( adapter != null ) { \n + adapter . getExpandToggleButton ( view ) . performClick ( ) ; \n + } \n } \n } ) ; \n } \n class SlideExpandableListView extends ListView { \n adapter . onRestoreInstanceState ( ss ) ; \n } \n } \n - } \n + }", "msg_token": "Use own adapter not getAdapter it might have been wrapped by addHeaderView"} {"diff": " public class ImmutableNameNotFoundException \n public void appendRemainingName ( Name name ) { } \n @ override \n public void setRemainingName ( Name name ) { } \n - public void setResolverName ( Name name ) { } \n + @ override \n + public void setResolvedName ( Name name ) { } \n @ override \n public void setRootCause ( Throwable e ) { }", "msg_token": "Fix typo in overridden method name"} {"diff": " public class ListenerList \n for ( ArrayList < IEventListener > list : priorities ) \n { \n if ( list . remove ( listener ) ) \n - { \n - rebuild = true ; \n - } \n + { \n + rebuild = true ; \n + } \n } \n } \n }", "msg_token": "Replaced derpy tabs with spaces"} {"diff": " public interface TypeWriter < T > { \n currentLocalVariableLength = localVariableLength ; \n break ; \n default : \n - throw new IllegalStateException ( ) ; \n + throw new IllegalStateException ( STRING0 + type ) ; \n } \n } \n \n public class TypeWriterDefaultForInliningInitializationHandlerAppendingFrameWrit \n verifyZeroInteractions ( methodVisitor ) ; \n } \n \n + @ test ( expected = IllegalStateException . class ) \n + public void testUnexpected ( ) throws Exception { \n + frameWriter . onFrame ( - NUMBER0 , NUMBER1 ) ; \n + } \n + \n @ test \n public void testObjectProperties ( ) throws Exception { \n ObjectPropertyAssertion . of ( TypeWriter . Default . ForInlining . InitializationHandler . Appending . FrameWriter . Active . class ) . applyBasic ( ) ;", "msg_token": "Added error message and test for error on active frame handler"} {"diff": " class ReaderPostRenderer { \n sbHtml . append ( STRING0 ) ; \n } \n \n - SINGLE \n - sbHtml . append ( STRING1 ) \n - . append ( STRING2 ) . append ( pxToDp ( mResourceVars . fullSizeImageWidthPx ) ) . append ( STRING3 ) \n - . append ( STRING4 ) ; \n + SINGLE \n + sbHtml . append ( STRING5 ) ; \n \n SINGLE \n sbHtml . append ( STRING6 )", "msg_token": "Reverted max width"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class DirectLogBuffer implements LogBuffer \n + class DirectLogBuffer implements LogBuffer \n { \n private final FileChannel fileChannel ; \n private final ByteBuffer buffer ; \n \n - public DirectLogBuffer ( FileChannel fileChannel , ByteBuffer buffer ) \n + DirectLogBuffer ( FileChannel fileChannel , ByteBuffer buffer ) \n { \n if ( fileChannel == null || buffer == null ) \n {", "msg_token": "Reverted access settings used when testing"} {"diff": " public class WorkDuration implements Serializable { \n } \n \n static WorkDuration createFromMinutes ( long duration , int hoursInDay ) { \n - int days = ( ( Double ) ( duration / hoursInDay / NUMBER0 d ) ) . intValue ( ) ; \n + int days = ( ( Double ) ( ( double ) duration / hoursInDay / NUMBER0 d ) ) . intValue ( ) ; \n Long currentDurationInMinutes = duration - ( NUMBER1 * days * hoursInDay ) ; \n int hours = ( ( Double ) ( currentDurationInMinutes / NUMBER0 d ) ) . intValue ( ) ; \n currentDurationInMinutes = currentDurationInMinutes - ( NUMBER1 * hours ) ; \n public class RuleRegistration implements Startable { \n boolean changed = false ; \n \n CharacteristicDto characteristic = findCharacteristic ( characteristicDtos , def ) ; \n + SINGLE \n Integer characteristicId = characteristic != null ? characteristic . getId ( ) : null ; \n RemediationFunction remediationFunction = characteristic != null ? def . remediationFunction ( ) : null ; \n String remediationFactor = characteristic != null ? def . remediationFactor ( ) : null ;", "msg_token": "Fix quality flaws"} {"diff": " public abstract class Structure { \n COMMENT \n mapper , and explicit field order will affect this information . \n COMMENT \n - private class LayoutInfo { \n + private static class LayoutInfo { \n int size = CALCULATE_SIZE ; \n int alignment = NUMBER0 ; \n Map fields = Collections . synchronizedMap ( new LinkedHashMap ( ) ) ; \n public abstract class Structure { \n } \n } \n \n - private class AutoAllocated extends Memory { \n + private static class AutoAllocated extends Memory { \n public AutoAllocated ( int size ) { \n super ( size ) ; \n SINGLE", "msg_token": "FindBugs has some other suggestions about nested classes which could be static"} {"diff": " public enum OGlobalConfiguration { \n final long maxProcessMemory = Runtime . getRuntime ( ) . maxMemory ( ) ; \n long mmapBestMemory = ( maxOsMemory - maxProcessMemory ) / NUMBER0 ; \n \n - FILE_MMAP_MAX_MEMORY . setValue ( NUMBER1 ) ; \n + FILE_MMAP_MAX_MEMORY . setValue ( mmapBestMemory ) ; \n FILE_MMAP_BLOCK_SIZE . setValue ( NUMBER2 ) ; \n MVRBTREE_NODE_PAGE_SIZE . setValue ( NUMBER3 ) ; \n } else {", "msg_token": "Improved yet performance with huge datasets"} {"diff": " public class TestLexerExec extends BaseTest { \n grammar . append ( STRING0 ) ; \n grammar . append ( STRING1 ) ; \n for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n - grammar . append ( STRING2 ) . append ( i ) . append ( STRING3 ) . append ( STRING2 ) . append ( i ) . append ( STRING4 ) ; \n + grammar . append ( STRING2 ) . append ( i ) . append ( STRING5 ) . append ( i ) . append ( STRING4 ) ; \n } \n \n String input = STRING6 ;", "msg_token": "Fix test compile error by avoiding string literal assignments for the large lexer test"} {"diff": " public static int hasheq ( Object o ) { \n if ( o instanceof Number ) \n return Numbers . hasheq ( ( Number ) o ) ; \n if ( o instanceof String ) \n - return Murmur3 . hashUnencodedChars ( ( CharSequence ) o ) ; \n + return Murmur3 . hashInt ( o . hashCode ( ) ) ; \n return o . hashCode ( ) ; \n }", "msg_token": "murmur just string hashcode not string to take advantage of string s caching"} {"diff": " public final class Es6ToEs3Converter implements NodeTraversal . Callback , HotSwapC \n private void visitClassMember ( \n Node member , ClassDeclarationMetadata metadata ) { \n Node qualifiedMemberAccess = getQualifiedMemberAccess ( \n - compiler , member , \n + member , \n NodeUtil . newQName ( compiler , metadata . fullClassName ) , \n NodeUtil . newQName ( compiler , metadata . fullClassName + STRING0 ) ) ; \n Node method = member . getLastChild ( ) . detachFromParent ( ) ; \n public final class Es6ToEs3Converter implements NodeTraversal . Callback , HotSwapC \n COMMENT \n COMMENT \n COMMENT \n - private static Node getQualifiedMemberAccess ( AbstractCompiler compiler , Node member , \n + private static Node getQualifiedMemberAccess ( Node member , \n Node staticAccess , Node instanceAccess ) { \n Node context = member . isStaticMember ( ) ? staticAccess : instanceAccess ; \n context = context . cloneTree ( ) ;", "msg_token": "Remove an unused param"} {"diff": " import NAMESPACE ; \n COMMENT \n public class FileRotator { \n private static final String TAG = STRING0 ; \n - private static final boolean LOGD = true ; \n + private static final boolean LOGD = false ; \n \n private final File mBasePath ; \n private final String mPrefix ; \n import NAMESPACE ; \n COMMENT \n public class NetworkStatsRecorder { \n private static final String TAG = STRING1 ; \n - private static final boolean LOGD = true ; \n + private static final boolean LOGD = false ; \n private static final boolean LOGV = false ; \n \n private final FileRotator mRotator ;", "msg_token": "Disable verbose NetworkStats logging"} {"diff": " public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setReadLockCheckInterval ( long readLockCheckInterval ) { \n this . readLockCheckInterval = readLockCheckInterval ; \n public abstract class GenericFileEndpoint < T > extends ScheduledPollEndpoint imple \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setReadLockTimeout ( long readLockTimeout ) { \n this . readLockTimeout = readLockTimeout ;", "msg_token": "File endpoint should validate the read lock timeout interval options is configured correctly"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DexGraph implements IndexableGraph { \n final File db = new File ( fileName ) ; \n boolean create = ! db . exists ( ) ; \n this . db = db ; \n - DEX . Config cfg = new DEX . Config ( ) ; \n - cfg . setCacheMaxSize ( NUMBER0 ) ; SINGLE \n - dex = new DEX ( cfg ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + dex = new DEX ( ) ; \n gpool = ( create ? dex . create ( db ) : dex . open ( db ) ) ; \n session = gpool . newSession ( ) ; \n graph = session . getDbGraph ( ) ;", "msg_token": "updated DexGraph constuctor to not allow for all memory to be consumed"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed checkstyle issue by removing the unused import"} {"diff": " public class AnalyticsTrackerMixpanel implements AnalyticsTracker . Tracker { \n private EnumMap < AnalyticsTracker . Stat , JSONObject > mAggregatedProperties ; \n \n private static final String SESSION_COUNT = STRING0 ; \n - private static final String MIXPANEL_PLATFORM = STRING1 ; \n + private static final String MIXPANEL_PLATFORM = STRING2 ; \n private static final String MIXPANEL_SESSION_COUNT = STRING3 ; \n private static final String DOTCOM_USER = STRING4 ; \n private static final String JETPACK_USER = STRING5 ;", "msg_token": "fix a mixpanel property key"} {"diff": " public class RCompletionManager implements CompletionManager \n { \n left = STRING0 ; \n } \n - else if ( splat . length == NUMBER0 ) \n - { \n - left = splat [ NUMBER1 ] ; \n - } \n else \n { \n left = splat [ NUMBER1 ] ;", "msg_token": "remove unneeded branch"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class PLCBusGenericBindingProvider extends \n - AbstractGenericBindingProvider implements PLCBusBindingProvider , \n - AutoUpdateBindingProvider { \n + public class PLCBusGenericBindingProvider extends AbstractGenericBindingProvider implements PLCBusBindingProvider { \n \n @ override \n public String getBindingType ( ) { \n public class PLCBusGenericBindingProvider extends \n PLCBusBindingConfig config = new PLCBusBindingConfig ( bindingConfig ) ; \n addBindingConfig ( item , config ) ; \n } \n - \n - @ override \n - public Boolean autoUpdate ( String itemName ) { \n - return true ; \n - } \n - \n + \n @ override \n public PLCBusBindingConfig getConfigFor ( String itemName ) { \n return ( PLCBusBindingConfig ) bindingConfigs . get ( itemName ) ;", "msg_token": "removed reference to AutoUpdateBindingProvider since it constantly returns true which is the default as well"} {"diff": " public class JCVideoPlayer extends FrameLayout implements View . OnClickListener , \n return ; \n } \n if ( videoEvents . type == VideoEvents . VE_PREPARED ) { \n + if ( CURRENT_STATE != CURRENT_STATE_PREPAREING ) return ; \n JCMediaPlayer . intance ( ) . mediaPlayer . setDisplay ( surfaceHolder ) ; \n JCMediaPlayer . intance ( ) . mediaPlayer . start ( ) ; \n pbLoading . setVisibility ( View . INVISIBLE ) ;", "msg_token": "Fix prepared bug"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class UpgradeService { \n Preferences . clear ( AstridPreferences . P_UPGRADE_FROM ) ; \n StringBuilder changeLog = new StringBuilder ( ) ; \n \n - if ( from >= V3_9_1_1 && from < V3_9_2 ) { \n + if ( from < V3_9_2 ) { \n newVersionString ( changeLog , STRING0 , new String [ ] { \n STRING1 , \n STRING2 ,", "msg_token": "Tweak upgrade message"} {"diff": " public class RSConnectDeploy extends Composite \n \n public void showAppInfo ( RSConnectApplicationInfo info ) \n { \n - if ( info == null ) \n + if ( info != null ) \n { \n - appInfoPanel_ . setVisible ( false ) ; \n - newAppPanel_ . setVisible ( true ) ; \n - return ; \n + urlAnchor_ . setText ( info . getUrl ( ) ) ; \n + urlAnchor_ . setHref ( info . getUrl ( ) ) ; \n } \n - \n - urlAnchor_ . setText ( info . getUrl ( ) ) ; \n - urlAnchor_ . setHref ( info . getUrl ( ) ) ; \n appInfoPanel_ . setVisible ( true ) ; \n appDetailsPanel_ . setVisible ( true ) ; \n newAppPanel_ . setVisible ( false ) ; \n public class RSConnectDeploy extends Composite \n SINGLE \n SINGLE \n appProgressPanel_ . setVisible ( false ) ; \n + showAppInfo ( null ) ; \n } \n } ) ; \n }", "msg_token": "tolerate server errors when looking up application URL"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ suppresswarnings ( STRING0 ) \n @ jsonserialize ( \n include = JsonSerialize . Inclusion . NON_NULL \n )", "msg_token": "Removes unused SuppressWarnings"} {"diff": " public class DelegatingBindingTrace implements BindingTrace { \n private final BindingContext bindingContext = new BindingContext ( ) { \n @ override \n public Collection < Diagnostic > getDiagnostics ( ) { \n - throw new UnsupportedOperationException ( ) ; SINGLE \n + return diagnostics ; \n } \n \n @ override \n public class DelegatingBindingTrace implements BindingTrace { \n } \n \n @ override \n + @ notnull \n public BindingContext getBindingContext ( ) { \n return bindingContext ; \n }", "msg_token": "Implemented getDiagnostics in BindingContext returned by DelegatingBindingTrace"} {"diff": " public abstract class QuadTree < G extends QuadTree . GeometricObject > { \n \n private boolean insertIntoChildren ( AABB b ) { \n SINGLE \n - if ( northWest . insert ( b ) ) return true ; \n - if ( northEast . insert ( b ) ) return true ; \n - if ( southWest . insert ( b ) ) return true ; \n - if ( southEast . insert ( b ) ) return true ; \n + if ( northWest . aabb . insideThis ( b ) && northWest . insert ( b ) ) return true ; \n + if ( northEast . aabb . insideThis ( b ) && northEast . insert ( b ) ) return true ; \n + if ( southWest . aabb . insideThis ( b ) && southWest . insert ( b ) ) return true ; \n + if ( southEast . aabb . insideThis ( b ) && southEast . insert ( b ) ) return true ; \n return false ; \n }", "msg_token": "Using a slightly move efficient insert method for rectangle quadtree"} {"diff": " class KeyManager { \n for ( Object part : ( ( MultiKey ) key ) . getKeys ( ) ) { \n setUp ( part ) ; \n } \n + ensureNode ( parent , key ) . uses ++ ; \n } else if ( key instanceof TreeKey ) { \n TreeKey treeKey = ( TreeKey ) key ; \n List < ? > elements = treeKey . getKeyPath ( ) ; \n class KeyManager { \n \n void tearDown ( Object key ) { \n if ( key instanceof MultiKey ) { \n + decrementAndMaybeRemoveKey ( key ) ; \n final List < Object > parts = ( ( MultiKey ) key ) . getKeys ( ) ; \n final int count = parts . size ( ) ; \n for ( int i = count - NUMBER0 ; i >= NUMBER1 ; i -- ) { \n - tearDown ( parts . get ( count ) ) ; \n + tearDown ( parts . get ( i ) ) ; \n } \n } else if ( key instanceof TreeKey ) { \n TreeKey treeKey = ( TreeKey ) key ;", "msg_token": "Set up services for MultiKey"} {"diff": " public class Validator \n sb . append ( STRING0 + queryPair . getControl ( ) . getSchema ( ) + STRING1 ) ; \n sb . append ( STRING2 ) ; \n } \n + else { \n + sb . append ( STRING3 ) ; \n + } \n return sb . toString ( ) ; \n }", "msg_token": "Print SKIPPED instead of an empty message when skipping a query"} {"diff": " public class MessageList \n \n if ( mFolderName != null ) \n { \n - mController . listLocalMessagesSynchronous ( mAccount , mFolderName , mAdapter . mListener ) ; \n + mController . listLocalMessages ( mAccount , mFolderName , mAdapter . mListener ) ; \n mController . notifyAccountCancel ( this , mAccount ) ; \n \n MessagingController . getInstance ( getApplication ( ) ) . notifyAccountCancel ( this , mAccount ) ;", "msg_token": "With all the other performance work we ve been doing getting a message"} {"diff": " public final class PersistentPeriodicImportJob \n } \n } ; \n \n - public static final Function < PersistentPeriodicImportJob , Long > jobIdGetter ( ) \n + public static Function < PersistentPeriodicImportJob , Long > jobIdGetter ( ) \n { \n return GET_JOB_ID ; \n }", "msg_token": "remove final for static methods"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public final class StringsResourceTranslator { \n \n - private static final String API_KEY = STRING0 ; \n + private static final String API_KEY = System . getProperty ( STRING1 ) ; \n \n private static final Charset UTF8 = Charset . forName ( STRING2 ) ; \n private static final Pattern ENTRY_PATTERN = Pattern . compile ( STRING3 ) ; \n public final class StringsResourceTranslator { \n } \n System . out . println ( STRING4 + english ) ; \n \n + if ( API_KEY == null ) { \n + throw new IllegalArgumentException ( STRING5 ) ; \n + } \n + \n URL translateURL = new URL ( \n STRING6 + API_KEY + STRING7 + \n URLEncoder . encode ( english , STRING2 ) +", "msg_token": "Make API settable in the command line as system property"} {"diff": " public class SubstitutionStepdefs { \n \n @ then ( STRING0 ) \n public void I_should_receive_an_email_with_the_body ( String body ) throws Throwable { \n - String expected = String . format ( STRING1 + \n - STRING2 + \n + String expected = String . format ( STRING3 + \n + STRING4 + \n STRING5 , name , role , details ) ; \n assertEquals ( expected , body ) ; \n }", "msg_token": "Replace n with n so that tests work on Windows"} {"diff": " import NAMESPACE ; \n public enum DiskCacheStrategy { \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n ALL ( true COMMENT , true COMMENT ) { \n @ override \n public boolean isDataCacheable ( DataSource dataSource ) { \n - return dataSource != DataSource . DATA_DISK_CACHE && dataSource != DataSource . MEMORY_CACHE ; \n + return dataSource == DataSource . REMOTE ; \n } \n \n @ override", "msg_token": "Don t save local data using DiskCacheStrategy ALL"} {"diff": " package NAMESPACE ; \n COMMENT \n public class ToDoConstants { \n \n - SINGLE \n + SINGLE \n \n SINGLE \n SINGLE \n public class ToDoConstants { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n SINGLE", "msg_token": "add todo s"} {"diff": " public class PercentageDrawable extends Drawable { \n private float mTargetValue ; \n \n private String mText ; \n + private float mTextX , mTextY ; \n \n private boolean mEnabled ; \n private boolean mPressed ; \n public class PercentageDrawable extends Drawable { \n mForegroundCirclePaint ) ; \n \n if ( mText != null ) { \n + final float width = mTextPaint . measureText ( mText ) ; \n mTextPaint . getTextBounds ( mText , NUMBER0 , mText . length ( ) , mTextBounds ) ; \n canvas . drawText ( mText , \n - mBounds . centerX ( ) - ( mTextBounds . width ( ) / FLOAT0 ) , \n + mBounds . centerX ( ) - ( width / FLOAT0 ) , \n mBounds . centerY ( ) + ( mTextBounds . height ( ) / FLOAT0 ) , \n mTextPaint ) ; \n }", "msg_token": "Fix off centred rating text"} {"diff": " public class ConfusionTask extends MRTask { \n if ( _classWt != null ) SINGLE \n for ( int v = NUMBER0 ; v < _N ; v ++ ) vi [ v ] = ( int ) ( vi [ v ] * _classWt [ v ] ) ; \n int result = Model . getPrediction ( vi , ties , row ) ; SINGLE \n - if ( vi [ result ] == NUMBER0 ) { cm . _skippedRows ++ ; System . err . println ( STRING0 + row + STRING1 + result ) ; continue ; } SINGLE \n + if ( vi [ result ] == NUMBER0 ) { cm . _skippedRows ++ ; COMMENT continue ; } SINGLE \n \n int cclass = alignDataIdx ( ( int ) _data . data ( bits , row , _classcol ) - cmin ) ; \n assert NUMBER0 <= cclass && cclass < _N : ( STRING2 + cclass + STRING3 + _N ) ;", "msg_token": "turn off broken CM printing"} {"diff": " public class AppBarLayout extends LinearLayout { \n } \n \n @ override \n - public boolean onStartNestedScroll ( CoordinatorLayout coordinatorLayout , AppBarLayout child , \n + public boolean onStartNestedScroll ( CoordinatorLayout parent , AppBarLayout child , \n View directTargetChild , View target , int nestedScrollAxes ) { \n SINGLE \n SINGLE \n final boolean started = ( nestedScrollAxes & ViewCompat . SCROLL_AXIS_VERTICAL ) != NUMBER0 \n && child . hasScrollableChildren ( ) \n - && coordinatorLayout . getHeight ( ) - target . getHeight ( ) <= child . getHeight ( ) ; \n + && parent . getHeight ( ) - directTargetChild . getHeight ( ) <= child . getHeight ( ) ; \n \n if ( started && mAnimator != null ) { \n SINGLE", "msg_token": "Fix AppBarLayout scrolling when scrolling view is small"} {"diff": " public class TestSharding extends AbstractServerClusterTest { \n for ( OrientVertex v : result ) { \n System . out . println ( STRING0 + v . getRecord ( ) ) ; \n \n - Assert . assertEquals ( STRING1 + server , ( Long ) totalAmount , ( Long ) v . getProperty ( STRING2 ) ) ; \n + SINGLE \n + SINGLE \n \n count ++ ; \n }", "msg_token": "Temporary removed failing test"} {"diff": " public class GwtAtmosphereResourceImpl implements GwtAtmosphereResource { \n COMMENT \n COMMENT \n void resumeAfterDeath ( ) { \n - atmosphereHandler . execute ( new Runnable ( ) { \n - @ override \n - public void run ( ) { \n - atmResource . resume ( ) ; \n - } \n - } ) ; \n + if ( atmosphereHandler != null ) { \n + atmosphereHandler . execute ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + atmResource . resume ( ) ; \n + } \n + } ) ; \n + } \n } \n \n @ override", "msg_token": "Fix nullpointer exception"} {"diff": " import NAMESPACE ; \n COMMENT \n public class RuntimeMetaData { \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String VERSION = STRING0 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RuntimeMetaData { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static final String VERSION = STRING0 ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Move RuntimeMetaData VERSION field to the top of the source file"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class LuceneQuery implements SimpleQuery < LuceneQuery > , SimpleProjectable < Document > { \n - public static final boolean DEFAULT = false ; \n - public static final boolean LOWER_CASE = true ; \n - \n + \n private final QueryMixin < LuceneQuery > queryMixin ; \n \n private final LuceneSerializer serializer ; \n public class LuceneQueryTest { \n writer . close ( ) ; \n \n searcher = new IndexSearcher ( idx ) ; \n - query = new LuceneQuery ( LuceneQuery . LOWER_CASE , searcher ) ; \n + query = new LuceneQuery ( true , searcher ) ; \n } \n \n @ after", "msg_token": "removed boolean constants"} {"diff": " final class NounInflector { \n return word ; \n } \n SINGLE \n - return String . valueOf ( Character . toLowerCase ( first ) ) + word . substring ( NUMBER0 ) ; \n + StringBuilder sb = new StringBuilder ( word . length ( ) ) ; \n + sb . append ( Character . toLowerCase ( first ) ) ; \n + sb . append ( word . substring ( NUMBER0 ) ) ; \n + return sb . toString ( ) ; \n } \n \n COMMENT", "msg_token": "undo StringBuilder usage refactoring"} {"diff": " public class SpargelConnectedComponentsITCase extends JavaProgramTestBase { \n DataSet < Tuple2 < Long , Long > > initialVertices = vertexIds . map ( new IdAssigner ( ) ) ; \n DataSet < Tuple2 < Long , Long > > result = initialVertices . runOperation ( VertexCentricIteration . withPlainEdges ( edges , new CCUpdater ( ) , new CCMessager ( ) , NUMBER0 ) ) ; \n \n - result . print ( ) ; \n + result . writeAsCsv ( resultPath , STRING0 , STRING1 ) ; \n env . execute ( STRING2 ) ; \n }", "msg_token": "SpargelConnectedComponentsITCase properly verifies results"} {"diff": " public abstract class ORecordSchemaAwareAbstract < T > extends ORecordAbstract < T > i \n throw new OValidationException ( STRING0 + p . getFullName ( ) + STRING1 + p . getType ( ) \n + STRING2 + fieldValue ) ; \n else if ( fieldValue instanceof OIdentifiable ) { \n - if ( ! ( ( OIdentifiable ) fieldValue ) . getIdentity ( ) . isValid ( ) ) \n + if ( ( ( OIdentifiable ) fieldValue ) . getIdentity ( ) . isValid ( ) ) \n throw new OValidationException ( STRING0 + p . getFullName ( ) + STRING1 + p . getType ( ) \n + STRING3 + fieldValue ) ;", "msg_token": "Fixed validation of embedded type"} {"diff": " public class NotificationManagerService extends SystemService { \n } \n if ( notification . actions != null ) { \n for ( Notification . Action action : notification . actions ) { \n + if ( action . actionIntent == null ) { \n + continue ; \n + } \n am . setPendingIntentWhitelistDuration ( action . actionIntent . getTarget ( ) , duration ) ; \n setPendingIntentWhitelistDuration ( am , duration , action . getExtras ( ) ) ; \n final RemoteInput [ ] remoteInputs = action . getRemoteInputs ( ) ;", "msg_token": "Fix crash with intent less actions"} {"diff": " public class RabbitMQProducer extends DefaultProducer { \n COMMENT \n COMMENT \n COMMENT \n - private static interface ChannelCallback < T > { \n + private interface ChannelCallback < T > { \n T doWithChannel ( Channel channel ) throws Exception ; \n }", "msg_token": "Fixed the CS error of camel rabbitmq"} {"diff": " public class DependencyResolver { \n JavaScopes . SYSTEM ) ; \n \n private final String [ ] EXCLUSIONS = new String [ ] { \n - STRING0 \n + STRING0 , \n + STRING1 , \n + STRING2 , \n + STRING3 , \n + STRING4 \n } ;", "msg_token": "Add scala compiler and zeppelin related library to dependency exclusion list"} {"diff": " public class UndertowDeploymentService implements Service < UndertowDeploymentServ \n if ( file == null ) { \n return ; \n } \n - for ( File f : file . listFiles ( ) ) { \n + File [ ] files = file . listFiles ( ) ; \n + if ( files == null ) { \n + return ; \n + } \n + for ( File f : files ) { \n recursiveDelete ( f ) ; \n } \n if ( ! file . delete ( ) ) {", "msg_token": "Fix potential NPE on undeploy"} {"diff": " public class GraphServiceImpl implements GraphService { \n LOG . error ( STRING0 , routerId ) ; \n throw new GraphNotFoundException ( ) ; \n } else { \n - return graphSources . get ( routerId ) . getGraph ( ) ; \n + Graph graph = graphSources . get ( routerId ) . getGraph ( ) ; \n + if ( graph == null ) { \n + evictGraph ( routerId ) ; \n + throw new GraphNotFoundException ( ) ; \n + } \n + return graph ; \n } \n } \n }", "msg_token": "Evict graph when null in getGraph"} {"diff": " public class AboutPanel extends JPanel { \n private static final long serialVersionUID = NUMBER0 ; \n private static final String PRODUCT = Constant . PROGRAM_NAME ; \n private static final String VERSION = STRING0 + Constant . PROGRAM_VERSION ; \n - private static final String COPYRIGHT = STRING1 ; \n + private static final String COPYRIGHT = STRING2 ; \n private static final String LICENSE_DETAIL = STRING3 \n + STRING4 \n + STRING5", "msg_token": "Updated date in About box"} {"diff": " public class SynchronizeFolderOperation extends RemoteOperation { \n sendLocalBroadcast ( EVENT_SINGLE_FOLDER_CONTENTS_SYNCED , mLocalFolder . getRemotePath ( ) , result ) ; \n } \n \n - if ( result . isSuccess ( ) && mIsShareSupported ) { \n - RemoteOperationResult shareResult = refreshSharesForFolder ( client ) ; \n - if ( shareResult . getCode ( ) != ResultCode . FILE_NOT_FOUND ) { \n - result = shareResult ; \n - } SINGLE \n + if ( result . isSuccess ( ) && mIsShareSupported && ! mSyncFullAccount ) { \n + refreshSharesForFolder ( client ) ; SINGLE \n } \n \n if ( ! mSyncFullAccount ) {", "msg_token": "Recursive refresh of folders in full synchronization does not retrieve information about shares"} {"diff": " public enum IdType \n LABEL_TOKEN ( false ) , \n LABEL_TOKEN_NAME ( false ) , \n NEOSTORE_BLOCK ( false ) , \n - SCHEMA ( NUMBER0 , true ) , \n + SCHEMA ( NUMBER0 , false ) , \n NODE_LABELS ( NUMBER0 , true ) ; \n \n private final long max ;", "msg_token": "Fix recovery issue for constraint indexes"} {"diff": " public class BlazeCommandUtils { \n throw new IllegalStateException ( STRING0 + topic + STRING1 ) ; \n } \n \n - return template . \n - replace ( STRING2 , Constants . PRODUCT_NAME ) . \n - replace ( STRING3 , topic ) . \n - replace ( STRING4 , parser . describeOptions ( categoryDescriptions , helpVerbosity ) ) . \n - trim ( ) \n + String optionStr = \n + parser \n + . describeOptions ( categoryDescriptions , helpVerbosity ) \n + . replace ( STRING2 , Constants . PRODUCT_NAME ) ; \n + return template \n + . replace ( STRING2 , Constants . PRODUCT_NAME ) \n + . replace ( STRING3 , topic ) \n + . replace ( STRING4 , optionStr ) \n + . trim ( ) \n + STRING5 \n + ( helpVerbosity == OptionsParser . HelpVerbosity . MEDIUM \n - ? STRING6 \n - : STRING7 ) ; \n + ? STRING6 \n + : STRING7 ) ; \n } \n \n COMMENT", "msg_token": "Replace product in option help texts too"} {"diff": " public class MapActivityActions implements DialogProvider { \n SINGLE \n if ( getTargets ( ) . getPointToNavigate ( ) != null ) { \n optionsMenuHelper . item ( R . string . target_points ) . icons ( R . drawable . ic_action_flage_dark , \n - R . drawable . ic_action_pin_light ) \n + R . drawable . ic_action_flage_light ) \n . listen ( new OnContextMenuClick ( ) { \n @ override \n public void onContextMenuClick ( int itemId , int pos , boolean isChecked , DialogInterface dialog ) {", "msg_token": "missing icon for light theme"} {"diff": " public class SmartNullReturnValues implements ReturnValues { \n \n public Object intercept ( Object obj , Method method , Object [ ] args , MethodProxy proxy ) throws Throwable { \n if ( Invocation . isToString ( method ) ) { \n - return STRING0 + invocation . getMethod ( ) . getName ( ) + STRING1 ; \n + return STRING2 + invocation . getMethod ( ) . getName ( ) + STRING1 ; \n } \n throw new SmartNullPointerException ( STRING3 , whenCreated ) ; \n }", "msg_token": "Made the message better"} {"diff": " public abstract class DiskCacheStrategy { \n public static final DiskCacheStrategy RESOURCE = new DiskCacheStrategy ( ) { \n @ override \n public boolean isDataCacheable ( DataSource dataSource ) { \n - return true ; \n + return false ; \n } \n \n @ override", "msg_token": "fix bug of DiskCacheStrategy RESOURCE"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class Point extends ArrayPath < Double > { \n + public class Point extends ArrayPath < Double [ ] , Double > { \n \n private static final long serialVersionUID = NUMBER0 ;", "msg_token": "Fix Point signature"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n public class IsSubtypeOf < T extends Tree > extends AbstractTypeMatcher < T > { \n \n public IsSubtypeOf ( Supplier < Type > typeToCompareSupplier ) { \n public class IsSubtypeOf < T extends Tree > extends AbstractTypeMatcher < T > { \n \n @ override \n public boolean matches ( T tree , VisitorState state ) { \n - Types types = state . getTypes ( ) ; \n - Type typeToCompare = typeToCompareSupplier . get ( state ) ; \n - return ( typeToCompare != null && \n - types . isSubtype ( ( ( JCTree ) tree ) . type , types . erasure ( typeToCompare ) ) ) ; \n + return isSubtype ( getType ( tree ) , typeToCompareSupplier . get ( state ) , state ) ; \n } \n }", "msg_token": "Handle nulls in IsSubtypeOf"} {"diff": " public class PyFileEvaluator { \n } \n return Collections . emptyList ( ) ; \n } \n + \n + public Set < PyFile > getVisitedFiles ( ) { \n + return myVisitedFiles ; \n + } \n }", "msg_token": "use proper CachedValue for caching of Django settings values"} {"diff": " import NAMESPACE ; \n COMMENT \n public class IndexStoreConfig implements NodeSettingsService . Listener { \n \n - COMMENT \n - COMMENT \n - private static final ByteSizeValue DEFAULT_THROTTLE = new ByteSizeValue ( NUMBER0 , ByteSizeUnit . MB ) ; \n - \n COMMENT \n COMMENT \n COMMENT \n public class IndexStoreConfig implements NodeSettingsService . Listener { \n SINGLE \n this . rateLimitingType = settings . get ( STRING0 , StoreRateLimiting . Type . NONE . name ( ) ) ; \n rateLimiting . setType ( rateLimitingType ) ; \n - this . rateLimitingThrottle = settings . getAsBytesSize ( STRING1 , DEFAULT_THROTTLE ) ; \n + this . rateLimitingThrottle = settings . getAsBytesSize ( STRING1 , new ByteSizeValue ( NUMBER1 ) ) ; \n rateLimiting . setMaxRate ( rateLimitingThrottle ) ; \n logger . debug ( STRING2 , rateLimitingType , rateLimitingThrottle ) ; \n }", "msg_token": "remove confusing private default constant"} {"diff": " public class DisambiguationPatternRule { \n int skipShiftTotal = NUMBER0 ; \n \n int firstMatchToken = - NUMBER1 ; \n - int lastMatchToken = - NUMBER1 ; \n final int patternSize = patternElements . size ( ) ; \n Element elem = null , prevElement = null ; \n final boolean startWithSentStart = patternElements . get ( NUMBER0 ) . isSentStart ( ) ; \n public class DisambiguationPatternRule { \n allElementsMatch = skipMatch ; \n if ( skipMatch ) { \n prevSkipNext = skipNext ; \n - matchingTokens ++ ; \n - lastMatchToken = matchPos ; \n + matchingTokens ++ ; \n if ( firstMatchToken == - NUMBER1 ) { \n firstMatchToken = matchPos ; \n } \n public class DisambiguationPatternRule { \n \n } \n } \n - firstMatchToken = - NUMBER1 ; \n - lastMatchToken = - NUMBER1 ; \n + firstMatchToken = - NUMBER1 ; \n skipShiftTotal = NUMBER0 ; \n language . getUnifier ( ) . reset ( ) ; \n inUnification = false ;", "msg_token": "remove unused var"} {"diff": " public abstract class AbstractServer extends UnicastRemoteObject \n catch ( NoSuchObjectException e ) \n { \n SINGLE \n - System . out . println ( STRING0 ) ; \n + SINGLE \n } \n }", "msg_token": "Removed a System out println when shutdown failed"} {"diff": " public class TfsShell implements Closeable { \n command . run ( args ) ; \n return NUMBER0 ; \n } catch ( IOException e ) { \n - System . out . println ( e . getMessage ( ) ) ; \n + e . printStackTrace ( ) ; \n return - NUMBER1 ; \n } \n }", "msg_token": "Print stacktraces when exceptions are thrown in tfs shell"} {"diff": " final class BluetoothHealthProfileHandler { \n int newDeviceState ) { \n mHealthDevices . put ( device , newDeviceState ) ; \n mBluetoothService . sendConnectionStateChange ( device , BluetoothProfile . HEALTH , \n - prevDeviceState , newDeviceState ) ; \n + newDeviceState , prevDeviceState ) ; \n } \n \n COMMENT", "msg_token": "Fix sendConnection State intent api params"} {"diff": " public class LoggingHandler extends ChannelDuplexHandler { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve documentation for the two args formatter in LoggingHandler"} {"diff": " public class HttpServerCodecTest { \n Assert . assertEquals ( offeredContentLength , totalBytesPolled ) ; \n } \n \n - private ByteBuf prepareDataChunk ( int size ) { \n + private static ByteBuf prepareDataChunk ( int size ) { \n StringBuilder sb = new StringBuilder ( ) ; \n for ( int i = NUMBER0 ; i < size ; ++ i ) { \n sb . append ( STRING0 ) ;", "msg_token": "Add static modifier where static member is just enough"} {"diff": " public class RecyclerView extends ViewGroup { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Corrected onChange animation documentation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class HpackEncoder \n { \n public class HpackEncoder \n return _context ; \n } \n \n - COMMENT \n public ByteBufferPool . Lease encode ( HttpFields fields ) \n { \n - return new ByteBufferPool . Lease ( _byteBufferPool ) ; \n + Lease lease = new ByteBufferPool . Lease ( _byteBufferPool ) ; \n + ByteBuffer buffer = _byteBufferPool . acquire ( NUMBER0 * NUMBER1 , false ) ; SINGLE \n + lease . add ( buffer , true ) ; \n + SINGLE \n + encode ( buffer , fields ) ; \n + return lease ; \n } \n - COMMENT \n \n public void encode ( ByteBuffer buffer , HttpFields fields ) \n {", "msg_token": "use buffer leases"} {"diff": " public class Platform { \n } catch ( SecurityException se ) { \n SINGLE \n SINGLE \n - throw new IOException ( STRING0 , se ) ; \n + IOException ioException = new IOException ( STRING0 ) ; \n + ioException . initCause ( se ) ; \n + throw ioException ; \n } \n } \n \n - \n @ override public void enableTlsExtensions ( SSLSocket socket , String uriHost ) { \n super . enableTlsExtensions ( socket , uriHost ) ; \n if ( openSslSocketClass . isInstance ( socket ) ) {", "msg_token": "Don t use IOException APIs not in Gingerbread"} {"diff": " public class ImapResponseParser { \n response . add ( firstToken ) ; \n \n if ( isStatusResponse ( firstToken ) ) { \n - parseStatusResponse ( response ) ; \n + parseResponseText ( response ) ; \n } else { \n Object token ; \n while ( ( token = readToken ( response ) ) != null ) { \n public class ImapResponseParser { \n response . mCompleted = true ; \n } \n \n - void parseStatusResponse ( ImapResponse parent ) throws IOException { \n + void parseResponseText ( ImapResponse parent ) throws IOException { \n \n skipIfSpace ( ) ;", "msg_token": "Renamed parseStatusResponse to parseResponseText"} {"diff": " public abstract class ColoredListCellRenderer extends SimpleColoredComponent imp \n public Component getListCellRendererComponent ( JList list , Object value , int index , boolean selected , boolean hasFocus ) { \n clear ( ) ; \n \n + setFont ( list . getFont ( ) ) ; \n mySelected = selected ; \n myForeground = list . getForeground ( ) ; \n mySelectionForeground = list . getSelectionForeground ( ) ; \n public class Switcher extends AnAction implements DumbAware { \n final Component c = super . getListCellRendererComponent ( list , value , index , selected , hasFocus ) ; \n final Color bg = UIUtil . getListBackground ( ) ; \n final Color fg = UIUtil . getListForeground ( ) ; \n + myLabel . setFont ( list . getFont ( ) ) ; \n myLabel . setForeground ( open ? fg : bg ) ; \n \n myPanel . removeAll ( ) ;", "msg_token": "Renderer must respect font installed in JList"} {"diff": " public class FormatPostfixTemplate extends StringBasedPostfixTemplate { \n } \n \n @ override \n - protected boolean shouldRemoveParent ( ) { \n - return false ; \n + protected PsiElement getElementToRemove ( PsiElement expr ) { \n + return expr ; \n } \n }", "msg_token": "FormatPostfixTemplate replace deprecated usage of method shouldRemoveParent with usage of getElementToRemove"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class ShowChangeMarkerAction extends AbstractVcsAction { \n protected void update ( VcsContext context , Presentation presentation ) { \n boolean active = isActive ( context ) ; \n presentation . setEnabled ( active ) ; \n - presentation . setVisible ( active ) ; \n + presentation . setVisible ( context . getEditor ( ) != null ) ; \n }", "msg_token": "Only hide default next prev change actions if there s no text editor in sight"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class DefaultCacheLockingManager implements CacheLockingManager { \n - public static final int CACHE_LAYOUT_VERSION = NUMBER0 ; \n + public static final int CACHE_LAYOUT_VERSION = NUMBER1 ; \n private final PersistentCache cache ; \n \n public DefaultCacheLockingManager ( CacheRepository cacheRepository ) {", "msg_token": "Bump cache version due to change of DefaultExternalResourceMetaData"} {"diff": " public class PostgresDatabase extends AbstractDatabase { \n \n @ override \n protected String getDefaultDatabaseSchemaName ( ) throws DatabaseException { \n - \n + if ( getDefaultSchemaName ( ) != null ) { \n + return getDefaultSchemaName ( ) ; \n + } \n if ( defaultDatabaseSchemaName == null ) { \n try { \n List < String > searchPaths = getSearchPaths ( ) ;", "msg_token": "use passed defaultDatabaseSchema if set"} {"diff": " public class WordPressDB { \n public static final String COLUMN_NAME_VIDEO_PRESS_SHORTCODE = STRING0 ; \n public static final String COLUMN_NAME_UPLOAD_STATE = STRING1 ; \n \n - private static final int DATABASE_VERSION = NUMBER0 ; \n + private static final int DATABASE_VERSION = NUMBER1 ; \n \n private static final String CREATE_TABLE_BLOGS = STRING2 \n + STRING3 ; \n public class WordPressDB { \n SINGLE \n private static final String ADD_BLOGS_HIDDEN_FLAG = STRING4 ; \n \n + SINGLE \n + private static final String ADD_BLOGS_PLAN_ID = STRING5 ; \n + \n SINGLE \n private static final String DEPRECATED_WPCOM_USERNAME_PREFERENCE = STRING6 ; \n private static final String DEPRECATED_ACCESS_TOKEN_PREFERENCE = STRING7 ; \n public class WordPressDB { \n case NUMBER2 : \n AccountTable . migrationAddAccountSettingsFields ( db ) ; \n currentVersion ++ ; \n + case NUMBER0 : \n + db . execSQL ( ADD_BLOGS_PLAN_ID ) ; \n + currentVersion ++ ; \n } \n db . setVersion ( DATABASE_VERSION ) ; \n }", "msg_token": "Corrected conflicts in WordPressDB"} {"diff": " public class ShareUtils { \n final ServiceManager manager = new ServiceManager ( ) ; \n manager . setApiKey ( traktApiKey ) ; \n manager . setAuthentication ( username , passwordHash ) ; \n - SINGLE \n manager . setUseSsl ( true ) ; \n \n Response response = null ; \n public class Utils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static long convertToFakeTime ( long time , SharedPreferences prefs , boolean isCurrentTime ) {", "msg_token": "Remove useless TODOs"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class LocalizedMessage \n return false ; \n } \n \n - SINGLE \n + if ( ! Arrays . equals ( mArgs , localizedMessage . mArgs ) ) { \n + return false ; \n + } \n + SINGLE \n \n - SINGLE \n - SINGLE \n + SINGLE \n \n return true ; \n } \n public final class LocalizedMessage \n result = mLineNo ; \n result = NUMBER0 * result + mColNo ; \n result = NUMBER0 * result + mKey . hashCode ( ) ; \n + for ( int i = NUMBER1 ; i < mArgs . length ; i ++ ) { \n + result = NUMBER0 * result + mArgs [ i ] . hashCode ( ) ; \n + } \n return result ; \n }", "msg_token": "Compare mArgs in order to handle checks such as"} {"diff": " public final class DefaultPassConfig extends PassConfig { \n SINGLE \n SINGLE \n SINGLE \n - if ( options . getLanguageIn ( ) . isEs6OrHigher ( ) ) { \n + if ( options . getLanguageIn ( ) . isEs6OrHigher ( ) && ! options . skipTranspilationAndCrash ) { \n checks . add ( es6RewriteArrowFunction ) ; \n checks . add ( es6RenameVariablesInParamLists ) ; \n checks . add ( es6SplitVariableDeclarations ) ;", "msg_token": "Add missing check to disable other transpilation passes"} {"diff": " public class TextEditingTarget implements \n @ handler \n void onCommentUncomment ( ) \n { \n - if ( fileType_ . isCpp ( ) ) \n - doCommentUncomment ( STRING0 ) ; \n - else if ( isCursorInTexMode ( ) ) \n + if ( isCursorInTexMode ( ) ) \n doCommentUncomment ( STRING1 ) ; \n else if ( isCursorInRMode ( ) ) \n doCommentUncomment ( STRING2 ) ; \n + else if ( fileType_ . isCpp ( ) ) \n + doCommentUncomment ( STRING0 ) ; \n + \n } \n \n private void doCommentUncomment ( String c )", "msg_token": "Prefer mode specific indentation first"} {"diff": " public class ViewerPresenter extends BasePresenter \n { \n manageCommands ( true ) ; \n display_ . bringToFront ( ) ; \n + if ( Desktop . isDesktop ( ) ) \n + Desktop . getFrame ( ) . setViewerUrl ( event . getParams ( ) . getUrl ( ) ) ; \n display_ . previewShiny ( event . getParams ( ) ) ; \n runningShinyAppParams_ = event . getParams ( ) ; \n }", "msg_token": "set viewer URL when previewing Shiny in the viewer pane"} {"diff": " public class TtsService extends Service implements OnCompletionListener { \n if ( synthAvailable ) { \n synthesizerLock . unlock ( ) ; \n } \n + processSpeechQueue ( ) ; \n } \n } \n }", "msg_token": "Fixing the synth function so that queue processing continues"} {"diff": " public class DroidGap extends PhonegapActivity { \n COMMENT \n protected void onPause ( ) { \n super . onPause ( ) ; \n - \n + SINGLE \n + this . appView . loadUrl ( STRING0 ) ; \n + \n SINGLE \n if ( ! this . keepRunning ) { \n \n SINGLE \n this . pluginManager . onPause ( ) ; \n \n - SINGLE \n - this . appView . loadUrl ( STRING0 ) ; \n - \n SINGLE \n this . appView . pauseTimers ( ) ; \n }", "msg_token": "Always send pause event to JS"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class MainTestActivity extends BaseTestCordovaActivity { \n public static final String START_URL = STRING0 ; \n \n public class MainTestActivity extends BaseTestCordovaActivity { \n super . loadUrl ( url ) ; \n } \n \n - @ override protected void loadConfig ( ) { \n + @ override protected void loadConfig ( ) { \n super . loadConfig ( ) ; \n SINGLE \n String errorUrl = getIntent ( ) . getStringExtra ( STRING1 ) ;", "msg_token": "Remove unused imports from MainTestActivity"} {"diff": " public class NewRepeatTests < REMOTE_MODEL > extends DatabaseTestCase { \n } \n \n private void saveAndTriggerRepeatListener ( Task task ) { \n - Flags . set ( Flags . SUPPRESS_HOOKS ) ; \n + Flags . set ( Flags . ACTFM_SUPPRESS_SYNC ) ; \n if ( task . isSaved ( ) ) \n taskDao . saveExisting ( task ) ; \n else \n public class RepeatTests extends DatabaseTestCase { \n } \n \n private void saveAndTriggerRepeatListener ( Task task ) { \n - Flags . set ( Flags . SUPPRESS_HOOKS ) ; \n + Flags . set ( Flags . ACTFM_SUPPRESS_SYNC ) ; \n if ( task . isSaved ( ) ) \n taskDao . saveExisting ( task ) ; \n else", "msg_token": "Fix unit tests"} {"diff": " public class DiagnosticGroups { \n static final String DIAGNOSTIC_GROUP_NAMES = \n STRING0 + \n STRING1 + \n + STRING2 + \n STRING3 + \n STRING4 + \n STRING5 + \n public class DiagnosticGroups { \n PeepholeFoldConstants . SHIFT_AMOUNT_OUT_OF_BOUNDS , \n PeepholeFoldConstants . FRACTIONAL_BITWISE_OPERAND ) ; \n \n + public static final DiagnosticGroup CONFORMANCE_VIOLATIONS = \n + DiagnosticGroups . registerGroup ( STRING6 , \n + CheckConformance . CONFORMANCE_VIOLATION , \n + CheckConformance . CONFORMANCE_POSSIBLE_VIOLATION ) ; \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a diagnostic group for conformance tests so they can be promoted to error"} {"diff": " import NAMESPACE ; \n public interface LivingEntity extends Entity { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public int getHealth ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setHealth ( int health ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getMaxHealth ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "Added getMaxHealth to LivingEntity"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SnapshotCommand extends AbstractCommand { \n if ( schemas == null ) { \n schemas = new CatalogAndSchema [ ] { database . getDefaultSchema ( ) } ; \n } \n - DatabaseSnapshot snapshot = SnapshotGeneratorFactory . getInstance ( ) . createSnapshot ( schemas , database , snapshotControl ) ; \n + \n + ObjectQuotingStrategy originalQuotingStrategy = database . getObjectQuotingStrategy ( ) ; \n + \n + database . setObjectQuotingStrategy ( ObjectQuotingStrategy . QUOTE_ALL_OBJECTS ) ; \n + DatabaseSnapshot snapshot ; \n + try { \n + snapshot = SnapshotGeneratorFactory . getInstance ( ) . createSnapshot ( schemas , database , snapshotControl ) ; \n + } finally { \n + database . setObjectQuotingStrategy ( originalQuotingStrategy ) ; \n + } \n + \n + \n \n String format = getSerializerFormat ( ) ; \n if ( format == null ) {", "msg_token": "Cannot snapshot primary keys on lower case tables"} {"diff": " public final class ClusterServiceImpl implements ClusterService , ConnectionListe \n node . getNodeExtension ( ) . beforeJoin ( ) ; \n } catch ( Exception e ) { \n logger . warning ( e . getMessage ( ) ) ; \n - sendBeforeJoinCheckFailure ( joinRequest . getAddress ( ) , e . getMessage ( ) ) ; \n + sendBeforeJoinCheckFailure ( joinRequest . getAddress ( ) , e . getMessage ( ) ) ; \n return ; \n } \n } \n public class DefaultNodeExtension implements NodeExtension { \n \n @ override \n public void beforeJoin ( ) { \n - logger . info ( STRING0 ) ; \n } \n \n } \n public interface NodeExtension { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n void beforeJoin ( ) ;", "msg_token": "Check style fix and added more info to java doc"} {"diff": " public class ScriptAPI extends ApiImplementor { \n \n ScriptWrapper script = new ScriptWrapper ( \n params . getString ( ACTION_PARAM_SCRIPT_NAME ) , \n - params . getString ( ACTION_PARAM_SCRIPT_DESC ) , \n + getParam ( params , ACTION_PARAM_SCRIPT_DESC , STRING0 ) , \n engine , \n type , \n true ,", "msg_token": "Fix exception while adding script through the API"} {"diff": " import NAMESPACE ; \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed incorrect description"} {"diff": " public class JarHandlerBase { \n \n protected static class EntryInfo { \n public EntryInfo ( final String shortName , final EntryInfo parent , final boolean directory ) { \n - this . shortName = new String ( shortName ) ; \n + this . shortName = shortName ; \n this . parent = parent ; \n isDirectory = directory ; \n }", "msg_token": "reuse the underlying string since we store it as map key anyway"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ExpressionInterpreter \n return node ; \n } \n else { \n - throw new RuntimeException ( STRING0 + value . getClass ( ) . getName ( ) ) ; \n + throw new UnsupportedOperationException ( STRING0 + value . getClass ( ) . getName ( ) ) ; \n } \n argumentValues . add ( value ) ; \n argumentTypes . add ( type ) ; \n public class ExpressionInterpreter \n return handle . invokeWithArguments ( argumentValues ) ; \n } \n catch ( Throwable throwable ) { \n - throw new RuntimeException ( STRING1 , throwable ) ; \n + Throwables . propagateIfInstanceOf ( throwable , RuntimeException . class ) ; \n + Throwables . propagateIfInstanceOf ( throwable , Error . class ) ; \n + throw new RuntimeException ( throwable . getMessage ( ) , throwable ) ; \n } \n }", "msg_token": "Improve error messages from function calls"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class HorizontalBarChart extends ColumnChart \n + public class HorizontalBarChart extends BarChart \n { \n public HorizontalBarChart ( Context context ) \n { \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix bug in HorizontalBarChart"} {"diff": " public class LoggingConfiguration { \n @ jsonproperty \n protected String logFormat ; \n \n - @ validationmethod ( message = STRING0 ) \n + @ validationmethod ( message = STRING1 ) \n public boolean isValidArchiveConfiguration ( ) { \n return ! archive || archivedLogFilenamePattern != null ; \n }", "msg_token": "Fix typo in validation message"} {"diff": " class ItemView extends LinearLayout { \n addView ( imageView , new LinearLayout . LayoutParams ( LayoutParams . WRAP_CONTENT , LayoutParams . WRAP_CONTENT ) ) ; \n \n final TextView textView = new TextView ( context ) ; \n + textView . setPadding ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER0 ) ; \n + textView . setTextSize ( NUMBER2 ) ; \n textView . setText ( node . displayName ( ) ) ; \n addView ( textView , new LinearLayout . LayoutParams ( LayoutParams . WRAP_CONTENT , LayoutParams . WRAP_CONTENT ) ) ; \n }", "msg_token": "changed selection dialog look"} {"diff": " public class AttributeChecks implements ActionSplitterListener { \n return ; SINGLE \n } \n if ( isolatedRuleRef ( x . getText ( ) ) != null ) { \n - SINGLE \n - SINGLE \n + errMgr . grammarError ( ErrorType . ISOLATED_RULE_REF , \n + g . fileName , x , x . getText ( ) , expr ) ; \n return ; \n } \n errMgr . grammarError ( ErrorType . UNKNOWN_SIMPLE_ATTRIBUTE ,", "msg_token": "add error for isolated rule refs"} {"diff": " public class IcqActivator \n public void start ( BundleContext context ) throws Exception \n { \n Hashtable hashtable = new Hashtable ( ) ; \n - hashtable . put ( AccountManager . PROTOCOL_PROPERTY_NAME , STRING0 ) ; \n + hashtable . put ( AccountManager . PROTOCOL_PROPERTY_NAME , ProtocolNames . ICQ ) ; \n \n AccountManagerIcqImpl icqAccountManager = \n new AccountManagerIcqImpl ( ) ;", "msg_token": "Renamed Activator java to IcqActivator java"} {"diff": " public class ContainerUtil extends ContainerUtilRt { \n \n @ notnull \n @ contract ( pure = true ) \n + public static < T > List < T > sorted ( @ notnull Collection < T > list , @ notnull Comparator < T > comparator ) { \n + return sorted ( ( Iterable < T > ) list , comparator ) ; \n + } \n + \n + @ notnull \n + @ contract ( pure = true ) \n public static < T > List < T > sorted ( @ notnull Iterable < T > list , @ notnull Comparator < T > comparator ) { \n List < T > sorted = newArrayList ( list ) ; \n sort ( sorted , comparator ) ;", "msg_token": "preserve binary compatibility"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BinaryGrailsPlugin extends DefaultGrailsPlugin { \n } \n this . projectDirectory = isJar ? null : IOUtils . findApplicationDirectoryFile ( pluginClass ) ; \n \n + if ( BuildSettings . BASE_DIR != null && projectDirectory != null ) { \n + try { \n + if ( projectDirectory . getCanonicalPath ( ) . startsWith ( BuildSettings . BASE_DIR . getCanonicalPath ( ) ) ) { \n + isBase = true ; \n + } \n + } catch ( IOException e ) { \n + SINGLE \n + } \n + } \n + \n URL rootResourcesURL = IOUtils . findRootResourcesURL ( pluginClass ) ; \n if ( rootResourcesURL == null ) { \n throw new PluginException ( STRING0 + pluginClass ) ;", "msg_token": "Fix handling of basePlugin"} {"diff": " public class MediaRouteDescriptorAssert \n isNotNull ( ) ; \n int actualVolumeMax = actual . getVolumeMax ( ) ; \n assertThat ( actualVolumeMax ) SINGLE \n - . overridingErrorMessage ( STRING0 , volumeMax , \n + . overridingErrorMessage ( STRING1 , volumeMax , \n actualVolumeMax ) SINGLE \n . isEqualTo ( volumeMax ) ; \n return this ;", "msg_token": "Correct the error message for MediaRouteDescriptorAssert hasVolumeMax int"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added copyright header"} {"diff": " public class RequestFutureTarget < R > implements FutureTarget < R > , \n COMMENT \n @ override \n public void run ( ) { \n - request . clear ( ) ; \n + if ( request != null ) { \n + request . clear ( ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fix NPE in RequestFutureTarget"} {"diff": " public class TypeUtils { \n } \n } \n \n + SINGLE \n + for ( JetType other : resultingTypes ) { \n + if ( typeChecker . equalTypes ( other , type ) ) { \n + continue outer ; \n + } \n + } \n resultingTypes . add ( type ) ; \n } \n \n public class JetTypeCheckerTest extends JetLiteFixture { \n } \n \n public void testIntersect ( ) throws Exception { \n + assertIntersection ( STRING0 , STRING1 , STRING2 ) ; \n + assertIntersection ( STRING0 , STRING2 , STRING1 ) ; \n + assertIntersection ( STRING2 , STRING3 , STRING2 ) ; \n + \n assertIntersection ( STRING4 , STRING4 , STRING4 ) ; \n assertIntersection ( STRING5 , STRING4 , STRING5 ) ; \n assertIntersection ( STRING5 , STRING5 , STRING4 ) ;", "msg_token": "Fixed bug in TypeUtils intersect"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix the mistake of previous commit"} {"diff": " \n package NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class TCollectorUDPWriter extends OpenTSDBGenericWriter { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove some unused imports"} {"diff": " public class Ec2RebalanceTest extends AbstractRebalanceTest { \n \n @ after \n public void ec2Cleanup ( ) throws Exception { \n - stopClusterQuiet ( activeHostNames , ec2RebalanceTestConfig ) ; \n - cleanupCluster ( activeHostNames , ec2RebalanceTestConfig ) ; \n + if ( activeHostNames . size ( ) > NUMBER0 ) { \n + stopClusterQuiet ( activeHostNames , ec2RebalanceTestConfig ) ; \n + cleanupCluster ( activeHostNames , ec2RebalanceTestConfig ) ; \n + } \n } \n \n @ override \n public class Ec2RebalanceTest extends AbstractRebalanceTest { \n tmplNode . getPartitionIds ( ) ) ; \n nodes . add ( node ) ; \n nodeIdsInv . put ( nodeId , hostName ) ; \n + activeHostNames . add ( hostName ) ; \n } \n \n Cluster cluster = new Cluster ( template . getName ( ) , nodes ) ; \n - activeHostNames . addAll ( nodeIds . keySet ( ) ) ; \n \n deploy ( activeHostNames , ec2RebalanceTestConfig ) ; \n startClusterAsync ( activeHostNames , ec2RebalanceTestConfig , nodeIds ) ;", "msg_token": "Avoid an IllegalArgumentException"} {"diff": " public class IrcStack \n public void command ( ChatRoomIrcImpl chatroom , String command ) \n { \n String target ; \n - if ( command . startsWith ( STRING0 ) ) \n + if ( command . toLowerCase ( ) . startsWith ( STRING0 ) ) \n { \n command = command . substring ( NUMBER0 ) ; \n int endOfNick = command . indexOf ( STRING1 ) ;", "msg_token": "Compare command case insensitive"} {"diff": " public class CypherPluginFunctionalTest extends AbstractRestFunctionalTestBase { \n SINGLE \n return super . doCypherRestCall ( ENDPOINT , script , status , params ) ; \n } \n - \n - \n - \n - \n - \n - \n - \n - \n } \n \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import static NAMESPACE ; \n - \n public class CypherPluginTest implements GraphHolder \n { \n \n public class CypherPluginTest implements GraphHolder \n @ beforeclass \n public static void startDatabase ( ) \n { \n - db = new ImpermanentGraphDatabase ( STRING0 \n - + System . currentTimeMillis ( ) ) ; \n - \n + db = new ImpermanentGraphDatabase ( ) ; \n } \n - \n }", "msg_token": "Fixed compilation errors"} {"diff": " public class HikariDataSource extends HikariConfig implements DataSource \n if ( username != null && ! username . equals ( otherKey . username ) ) { \n return false ; \n } \n - else if ( username != otherKey . username ) { \n + else if ( ! username . equals ( otherKey . username ) ) { \n return false ; \n } \n else if ( password != null && ! password . equals ( otherKey . password ) ) { \n return false ; \n } \n - else if ( password != otherKey . password ) { \n + else if ( ! password . equals ( otherKey . password ) ) { \n return false ; \n }", "msg_token": "compare strings with equals"} {"diff": " \n package NAMESPACE ; \n \n + SINGLE \n + \n + SINGLE \n + \n + SINGLE \n + \n + SINGLE \n + \n + SINGLE \n + \n + SINGLE \n + \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add todo comments for vcs setup work"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused import"} {"diff": " \n package NAMESPACE ; \n \n public final class MocoVersion { \n - public static final String VERSION = STRING0 ; \n + public static final String VERSION ; \n + \n + static { \n + VERSION = MocoVersion . class . getPackage ( ) . getImplementationVersion ( ) ; \n + } \n \n private MocoVersion ( ) { \n }", "msg_token": "Retrived moco version from manifest"} {"diff": " public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n record . addAction ( STRING0 , STRING1 ) ; \n } \n records . add ( record ) ; \n - \n - SINGLE \n - record . addAction ( STRING2 , STRING3 ) ; \n } \n return records ; \n } \n public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve \n this . zController . requestRemoveFailedNode ( nodeId ) ; \n } \n \n - SINGLE \n - SINGLE \n - if ( action . equals ( STRING2 ) ) { \n - logger . debug ( STRING4 , nodeId ) ; \n - ZWaveVersionCommandClass versionCommandClass = ( ZWaveVersionCommandClass ) node \n - . getCommandClass ( CommandClass . VERSION ) ; \n - if ( versionCommandClass == null ) { \n - return ; \n - } \n - \n - SINGLE \n - this . zController . sendData ( versionCommandClass . getVersionMessage ( ) ) ; \n - } \n - \n SINGLE \n SINGLE \n return ;", "msg_token": "Remove version info this is now included in the startup"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class SourceDocument extends JavaScriptObject \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public class MavenUIUtil { \n \n final Color foreground = selected ? UIUtil . getTreeSelectionForeground ( ) : UIUtil . getTreeTextForeground ( ) ; \n \n + Color background = selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ; \n + \n panel . add ( baseComponent , BorderLayout . CENTER ) ; \n - panel . setBackground ( selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ) ; \n + panel . setBackground ( background ) ; \n panel . setForeground ( foreground ) ; \n \n CheckBoxState state = handler . getState ( userObject ) ; \n checkbox . setSelected ( state != CheckBoxState . UNCHECKED ) ; \n checkbox . setEnabled ( state != CheckBoxState . PARTIAL ) ; \n - checkbox . setBackground ( UIUtil . getTreeTextBackground ( ) ) ; \n + checkbox . setBackground ( background ) ; \n checkbox . setForeground ( foreground ) ; \n \n return panel ;", "msg_token": "Fix background color"} {"diff": " class ArrayKey { \n \n @ override \n public boolean equals ( Object obj ) { \n - if ( ! obj . getClass ( ) . isArray ( ) ) \n + if ( ! ( obj instanceof ArrayKey ) ) \n return false ; \n - return Arrays . equals ( a , ( Object [ ] ) obj ) ; \n + return Arrays . equals ( a , ( ( ArrayKey ) obj ) . a ) ; \n } \n \n @ override", "msg_token": "Fixed silly equals on ArrayKey"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DomFileDescription < T > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "update doc for initializeFileDescription"} {"diff": " public class ZooClient extends AbstractZooKeeperManager \n SINGLE \n SINGLE \n System . out . println ( STRING0 ) ; \n - if ( broker . getCachedMasterMachineId ( ) == getMasterNotifyId ( ) ) \n + if ( broker . getMasterMachineId ( ) == getMasterNotifyId ( ) ) \n { \n System . out . println ( STRING1 ) ; \n return ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class ZooKeeperBroker extends AbstractBroker \n { \n public class ZooKeeperBroker extends AbstractBroker \n } \n return master . getMachineId ( ) ; \n } \n - \n - public int getCachedMasterMachineId ( ) \n - { \n - return master != null ? master . getMachineId ( ) : XaLogicalLog . MASTER_ID_REPRESENTING_NO_MASTER ; \n - } \n \n private void connectToMaster ( Machine machine ) \n {", "msg_token": "Fixed an issue with master notify"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed minor javadoc description"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ singleton \n @ extension ( title = STRING0 , version = STRING1 ) \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ singleton \n @ extension ( title = STRING2 , version = STRING1 )", "msg_token": "Fix name convention"} {"diff": " public class AccountManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void invalidateAuthToken ( final String accountType , final String authToken ) { \n if ( accountType == null ) throw new IllegalArgumentException ( STRING0 ) ; \n - if ( authToken == null ) throw new IllegalArgumentException ( STRING1 ) ; \n try { \n - mService . invalidateAuthToken ( accountType , authToken ) ; \n + if ( authToken != null ) { \n + mService . invalidateAuthToken ( accountType , authToken ) ; \n + } \n } catch ( RemoteException e ) { \n SINGLE \n throw new RuntimeException ( e ) ;", "msg_token": "allow null authtokens to invalidateAuthToken"} {"diff": " public class SRTMPlugin extends OsmandPlugin { \n } else { \n if ( hillshadeLayer != null ) { \n mapView . removeLayer ( hillshadeLayer ) ; \n + hillshadeLayer = null ; \n activity . refreshMap ( ) ; \n } \n }", "msg_token": "Fix hillshade layer appearance"} {"diff": " public class DatePickerDialog extends DialogFragment implements \n Log . d ( TAG , STRING0 ) ; \n getDialog ( ) . getWindow ( ) . requestFeature ( Window . FEATURE_NO_TITLE ) ; \n \n - View view = inflater . inflate ( R . layout . mdtp_date_picker_dialog , null ) ; \n + View view = inflater . inflate ( R . layout . mdtp_date_picker_dialog , container ) ; \n \n mDayOfWeekView = ( TextView ) view . findViewById ( R . id . date_picker_header ) ; \n mMonthAndDayView = ( LinearLayout ) view . findViewById ( R . id . date_picker_month_and_day ) ; \n public class TimePickerDialog extends DialogFragment implements \n Bundle savedInstanceState ) { \n getDialog ( ) . getWindow ( ) . requestFeature ( Window . FEATURE_NO_TITLE ) ; \n \n - View view = inflater . inflate ( R . layout . mdtp_time_picker_dialog , null ) ; \n + View view = inflater . inflate ( R . layout . mdtp_time_picker_dialog , container ) ; \n KeyboardListener keyboardListener = new KeyboardListener ( ) ; \n view . findViewById ( R . id . time_picker_dialog ) . setOnKeyListener ( keyboardListener ) ;", "msg_token": "Properly use the ViewGroup when inflating the picker layouts"} {"diff": " public abstract class BaseTest { \n } \n \n private String locateTool ( String tool ) { \n - String [ ] roots = { STRING0 , STRING1 , STRING2 } ; \n + String [ ] roots = { STRING0 , STRING1 } ; \n for ( String root : roots ) { \n if ( new File ( root + tool ) . exists ( ) ) { \n return root + tool ;", "msg_token": "removed reference to local node installation"} {"diff": " public class CqlConfigHelper \n liveRemoteHosts . add ( host ) ; \n } \n \n - public void onSuspected ( Host host ) \n - { \n - } \n - \n @ override \n public HostDistance distance ( Host host ) \n {", "msg_token": "remove dead method"} {"diff": " class OptionsUsage { \n String flagName = getFlagName ( optionField ) ; \n String typeDescription = getTypeDescription ( optionField ) ; \n Option annotation = optionField . getAnnotation ( Option . class ) ; \n - usage . append ( STRING0 ) . append ( plainFlagName ) . append ( STRING1 ) ; \n + usage . append ( STRING2 ) . append ( plainFlagName ) . append ( STRING1 ) ; \n usage . append ( flagName ) . append ( STRING3 ) ; \n if ( annotation . abbrev ( ) != STRING4 ) { \n usage . append ( STRING5 ) . append ( annotation . abbrev ( ) ) . append ( STRING6 ) ;", "msg_token": "Fix anchors in the help page"} {"diff": " public abstract class CloseableResource < T > implements Closeable { \n COMMENT \n COMMENT \n COMMENT \n + @ override \n public abstract void close ( ) ; \n }", "msg_token": "Add missing Override"} {"diff": " public class BuildAndDecodeTest { \n \n @ test \n public void qualifiersTest ( ) throws BrutException { \n - compareValuesFiles ( STRING0 \n - + STRING1 \n - + STRING2 ) ; \n + if ( ! System . getProperty ( STRING3 ) . toLowerCase ( ) . contains ( STRING4 ) ) { \n + compareValuesFiles ( STRING0 \n + + STRING1 \n + + STRING2 ) ; \n + } \n } \n \n @ test", "msg_token": "Windows build fix skip checking files in values for test application"} {"diff": " public class LayoutManager extends RecyclerView . LayoutManager { \n markerLine = r . bottom ; \n } \n \n + if ( sd . headerParams . isHeaderSticky ( ) && r . top < NUMBER0 ) { \n + r . top = NUMBER0 ; \n + r . bottom = r . top + sd . headerHeight ; \n + } \n + \n layoutDecorated ( header , r . left , r . top , r . right , r . bottom ) ; \n \n return markerLine ;", "msg_token": "Correctly layout stickied inline headers"} {"diff": " public class FS20Binding extends AbstractActiveBinding < FS20BindingProvider > \n if ( config != null ) { \n \n Boolean configChanged = false ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n String baudRateString = ( String ) config . get ( KEY_BAUD_RATE ) ; \n if ( StringUtils . isNotBlank ( baudRateString ) ) { \n properties . put ( KEY_BAUD_RATE , baudRateString ) ; \n configChanged = true ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - \n String parityString = ( String ) config . get ( KEY_PARITY ) ; \n if ( StringUtils . isNotBlank ( parityString ) ) { \n - properties . put ( KEY_PARITY , Integer . parseInt ( parityString ) ) ; \n + properties . put ( KEY_PARITY , parityString ) ; \n configChanged = true ; \n }", "msg_token": "put a String in the map for KEY_PARITY not an Integer"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JetChangeSignatureTest extends LightCodeInsightTestCase { \n JetChangeSignatureHandler . createDialog ( element , file . findElementAt ( editor . getCaretModel ( ) . getOffset ( ) ) , getProject ( ) , editor ) ; \n assertNotNull ( dialog ) ; \n dialog . canRun ( ) ; \n + Disposer . register ( getTestRootDisposable ( ) , dialog . getDisposable ( ) ) ; \n return dialog . evaluateChangeInfo ( ) ; \n }", "msg_token": "Fixed already disposed error in tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class GithubCreateGistAction extends DumbAwareAction { \n } \n \n LOG . error ( STRING0 ) ; \n - throw new InvalidStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING0 ) ; \n } \n \n @ nullable", "msg_token": "remove wrong dependency"} {"diff": " public class NetworkClient implements KafkaClient { \n try { \n this . selector . poll ( Utils . min ( timeout , metadataTimeout , requestTimeoutMs ) ) ; \n } catch ( IOException e ) { \n - log . error ( STRING0 , e ) ; \n + log . error ( STRING1 , e ) ; \n } \n \n SINGLE", "msg_token": "Fix logging message in NetworkClient poll not to mention producer"} {"diff": " public abstract class RealmObject { \n } \n \n void onCompleted ( Long handoverRowPointer ) { \n - realm . checkIfValid ( ) ; \n if ( ! isCompleted ) { \n isCompleted = true ; \n long nativeRowPointer = TableQuery . nativeImportHandoverRowIntoSharedGroup ( handoverRowPointer , realm . sharedGroupManager . getNativePointer ( ) ) ; \n public class RealmResults < E extends RealmObject > extends AbstractList < E > { \n COMMENT \n COMMENT \n private boolean onCompleted ( ) { \n - realm . checkIfValid ( ) ; \n try { \n long tvHandover = pendingQuery . get ( ) ; SINGLE \n SINGLE", "msg_token": "remove duplicate thread checking"} {"diff": " public class EmbeddableInterfaceTest { \n \n @ embeddable \n public interface EmbeddableInterface { \n - \n + \n + String getName ( ) ; \n } \n \n @ embeddable \n public class EmbeddableClass implements EmbeddableInterface { \n + \n + @ override \n + public String getName ( ) { \n + return null ; \n + } \n \n } \n \n @ test \n - public void test ( ) { \n + public void Type ( ) { \n assertEquals ( \n QEmbeddableInterfaceTest_EmbeddableInterface . class , \n QEmbeddableInterfaceTest_EntityClass . entityClass . children . any ( ) . getClass ( ) ) ; \n } \n \n + @ test \n + public void Properties ( ) { \n + assertNotNull ( QEmbeddableInterfaceTest_EmbeddableInterface . embeddableInterface . name ) ; \n + assertNotNull ( QEmbeddableInterfaceTest_EmbeddableClass . embeddableClass . name ) ; \n + } \n + \n }", "msg_token": "updated APT tests"} {"diff": " public class RemoteServerListConfigurable extends MasterDetailsComponent impleme \n @ override \n public void reset ( ) { \n myRoot . removeAllChildren ( ) ; \n - List < RemoteServer < ? > > servers = getServers ( ) ; \n - for ( RemoteServer < ? > server : servers ) { \n + for ( RemoteServer < ? > server : getServers ( ) ) { \n addServerNode ( server , false ) ; \n } \n super . reset ( ) ; \n } \n \n - private List < RemoteServer < ? > > getServers ( ) { \n + private List < ? extends RemoteServer < ? > > getServers ( ) { \n if ( myServerType == null ) { \n return myServersManager . getServers ( ) ; \n } \n else { \n - SINGLE \n - return ( List < RemoteServer < ? > > ) ( ( List ) myServersManager . getServers ( myServerType ) ) ; \n + return myServersManager . getServers ( myServerType ) ; \n } \n }", "msg_token": "remove ugly cast"} {"diff": " public class ByteBufferedChannelManager { \n DEFAULT_NUMBER_OF_CONNECTION_RETRIES ) ; \n this . isSpillingAllowed = configuration . getBoolean ( STRING0 , DEFAULT_ALLOW_SPILLING ) ; \n \n - LOG . info ( STRING1 \n + LOG . info ( STRING2 \n + ( this . isSpillingAllowed ? STRING3 : STRING4 ) ) ; \n \n SINGLE \n public class ByteBufferedChannelManager { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void shutdown ( ) { \n \n - LOG . info ( STRING5 ) ; \n + LOG . info ( STRING6 ) ; \n \n SINGLE \n this . incomingConnectionThread . interrupt ( ) ;", "msg_token": "Updated status message"} {"diff": " public class TitanRexsterApplication extends AbstractMapRexsterApplication { \n \n private static void configureExtensions ( final List < HierarchicalConfiguration > extensionConfigurations , final RexsterApplicationGraph rag ) { \n if ( extensionConfigurations != null ) { \n - rag . loadExtensionsConfigurations ( extensionConfigurations ) ; \n + SINGLE \n + SINGLE \n } \n } \n \n public class TitanRexsterApplication extends AbstractMapRexsterApplication { \n final List < String > allowableNamespaces = new ArrayList < String > ( ) { { \n add ( STRING0 ) ; \n } } ; \n - \n - rag . loadAllowableExtensions ( allowableNamespaces ) ; \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "Commented out inaccessible methods in Rexster"} {"diff": " public class RepeatTestsGtasksSyncRemote extends RepeatTestsGtasksSync { \n completionDate = dueDate - DateUtilities . ONE_DAY ; \n else \n completionDate = dueDate + DateUtilities . ONE_DAY ; \n - < < < < < < < HEAD \n remoteModel . completed = GtasksApiUtilities . unixTimeToGtasksCompletionTime ( completionDate ) ; \n - == == == = \n - remoteModel . completed = GtasksApiUtilities . unixTimeToGtasksDate ( completionDate ) ; \n - > > > > > > > sbosley / NUMBER0 sb_repeat_tests \n remoteModel . status = STRING0 ; \n try { \n gtasksService . updateGtask ( GtasksApiUtilities . extractListIdFromSelfLink ( remoteModel ) , remoteModel ) ;", "msg_token": "Fix merge conflict in tests"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public interface VersionMatcher extends Comparator < String > { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public VersionSelector createSelector ( String selectorString ) ; \n } \n import NAMESPACE ; \n import NAMESPACE ; \n \n public interface VersionSelector extends Comparator < String > { \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean isDynamic ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean requiresMetadata ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean matchesUniqueVersion ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean accept ( String candidate ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean accept ( ComponentMetadata candidate ) ; \n }", "msg_token": "Added javadocs for VersionSelector and VersionMatcher"} {"diff": " public class HomeActivity extends Activity { \n SINGLE \n SINGLE \n SINGLE \n - final int firstVisibleItemPos = layoutManager . findFirstCompletelyVisibleItemPosition ( ) ; \n - if ( firstVisibleItemPos <= NUMBER0 && toolbar . getTranslationZ ( ) != NUMBER0 ) { \n + final int firstVisibleItemPos = layoutManager . findFirstVisibleItemPosition ( ) ; \n + if ( firstVisibleItemPos == NUMBER0 \n + && layoutManager . findViewByPosition ( NUMBER0 ) . getTop ( ) == grid . getPaddingTop ( ) \n + && toolbar . getTranslationZ ( ) != NUMBER0 ) { \n toolbar . setTranslationZ ( FLOAT0 ) ; \n - } else if ( firstVisibleItemPos > NUMBER0 && toolbar . getTranslationZ ( ) != - FLOAT1 ) { \n + } else if ( toolbar . getTranslationZ ( ) != - FLOAT1 ) { \n toolbar . setTranslationZ ( - FLOAT1 ) ; \n } \n }", "msg_token": "Fix toolbar z order in landscape"} {"diff": " public class Modules implements Iterable < Module > \n \n public void registerParentsIfMissing ( BaseHome basehome , StartArgs args , Module module ) throws IOException \n { \n - for ( String name : module . getParentNames ( ) ) \n + for ( String name : new ArrayList < > ( module . getParentNames ( ) ) ) \n { \n if ( ! modules . containsKey ( name ) ) \n {", "msg_token": "Fixed start jar handling of expanded modules during add to start"} {"diff": " public class RenderEntityBlock extends Render { \n lightZ = ( int ) ( Math . floor ( entity . posZ ) + kBase ) ; \n \n GL11 . glDisable ( NUMBER0 COMMENT ) ; \n - renderBlock ( util , world , lightX , lightY , lightZ , false , true ) ; \n + renderBlock ( util , world , NUMBER1 , NUMBER1 , NUMBER1 , lightX , lightY , lightZ , false , true ) ; \n GL11 . glEnable ( NUMBER0 COMMENT ) ; \n GL11 . glPopMatrix ( ) ;", "msg_token": "Fix marker rendering"} {"diff": " public class RightCurlyCheck extends AbstractCheck { \n case TokenTypes . LITERAL_DO : \n nextToken = ast . findFirstToken ( TokenTypes . DO_WHILE ) ; \n lcurly = ast . findFirstToken ( TokenTypes . SLIST ) ; \n - rcurly = lcurly . getLastChild ( ) ; \n + if ( lcurly != null ) { \n + rcurly = lcurly . getLastChild ( ) ; \n + } \n break ; \n default : \n SINGLE \n public class InputRightCurlyDoWhile { \n public void foo9 ( ) { \n do { } while ( true ) ; \n } \n + \n + public void foo10 ( ) { \n + do ; while ( true ) ; \n + } \n }", "msg_token": "fixed NPE in RightCurly when do has no curlies"} {"diff": " public class ToggleScrollView extends ScrollView \n SINGLE \n SINGLE \n boolean result = super . onInterceptTouchEvent ( ev ) ; \n - if ( mDetector . onTouchEvent ( ev ) ) \n + SINGLE \n + if ( ev . getAction ( ) == MotionEvent . ACTION_DOWN || mDetector . onTouchEvent ( ev ) ) \n { \n return result ; \n } \n public class ToggleScrollView extends ScrollView \n return false ; \n } \n \n - SINGLE \n + SINGLE \n + SINGLE \n class YScrollDetector extends GestureDetector . SimpleOnGestureListener \n { \n @ override", "msg_token": "Propagate the ACTION_DOWN event to the ScrollView so we can stop scrolling after a fling"} {"diff": " public class SkeletonControl extends AbstractControl implements Cloneable { \n COMMENT \n COMMENT \n COMMENT \n - private transient boolean hwSkinningDesired = false ; \n + private transient boolean hwSkinningDesired = true ; \n \n COMMENT \n COMMENT", "msg_token": "enable HW skinning by default"} {"diff": " public class ImportingJob implements Jsonizable { \n JSONUtilities . safePut ( cfg , STRING0 , false ) ; \n this . config = cfg ; \n \n + lastTouched = System . currentTimeMillis ( ) ; \n + \n dir . mkdirs ( ) ; \n }", "msg_token": "Initialized ImportingJob lastTouched"} {"diff": " public interface Entity { \n COMMENT \n COMMENT \n public void setFireTicks ( int ticks ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void remove ( ) ; \n }", "msg_token": "Added Entity remove which marks an entity for removal"} {"diff": " public class LocationManagerService extends ILocationManager . Stub { \n return ; \n } \n \n - SINGLE \n - if ( mWakeLockAcquireTime != NUMBER0 ) { \n - handleLocationChangedLocked ( location ) ; \n - } \n + handleLocationChangedLocked ( location ) ; \n \n if ( ( mWakeLockAcquireTime != NUMBER0 ) && \n ( SystemClock . elapsedRealtime ( ) - mWakeLockAcquireTime", "msg_token": "Fix timing problem that was introduced when we removed location provider polling"} {"diff": " public class CopyPasteIndentProcessor implements CopyPastePostProcessor < IndentTr \n int lineNumber = initialDocument . getTextLength ( ) > caretOffset ? initialDocument . getLineNumber ( caretOffset ) \n : initialDocument . getLineCount ( ) - NUMBER0 ; \n final int offset = getLineStartSafeOffset ( initialDocument , lineNumber ) ; \n - final int caretColumn = caretOffset - offset ; \n \n if ( bounds . getStartOffset ( ) == offset ) { \n String toString = initialDocument . getText ( TextRange . create ( offset , initialDocument . getLineEndOffset ( lineNumber ) ) ) ; \n public class CopyPasteIndentProcessor implements CopyPastePostProcessor < IndentTr \n return ch != STRING0 ; \n } \n } ) ; \n - if ( toIndent < NUMBER1 || toString . startsWith ( STRING1 ) ) { \n - toIndent = caretColumn ; \n + if ( ( toIndent < NUMBER1 || toString . startsWith ( STRING1 ) ) && initialText . length ( ) >= caretOffset ) { \n + toIndent = caretOffset - offset ; \n } \n } \n else if ( isNotApplicable ( initialDocument , offset ) )", "msg_token": "use the proper caret offset in case of selection"} {"diff": " public class CompilerWorkspaceConfiguration implements PersistentStateComponent < \n \n public boolean COMPILE_IN_BACKGROUND = false ; \n public boolean AUTO_SHOW_ERRORS_IN_EDITOR = true ; \n - @ deprecated public final boolean CLOSE_MESSAGE_VIEW_IF_SUCCESS = true ; \n + @ deprecated public boolean CLOSE_MESSAGE_VIEW_IF_SUCCESS = true ; \n public boolean COMPILE_DEPENDENT_FILES = false ; \n public boolean CLEAR_OUTPUT_DIRECTORY = false ; \n public boolean ASSERT_NOT_NULL = true ;", "msg_token": "Final fields cause exception in XML serializer"} {"diff": " public class HttpPanel extends AbstractPanel { \n this . setLayout ( new GridBagLayout ( ) ) ; \n this . setSize ( NUMBER0 , NUMBER1 ) ; \n gridBagConstraints1 . gridx = NUMBER2 ; \n - gridBagConstraints1 . gridy = NUMBER2 ; \n + gridBagConstraints1 . gridy = NUMBER3 ; \n gridBagConstraints1 . weightx = FLOAT0 ; \n gridBagConstraints1 . weighty = FLOAT0 ; \n gridBagConstraints1 . fill = java . awt . GridBagConstraints . BOTH ; \n public class HttpPanel extends AbstractPanel { \n gridBagConstraints4 . anchor = java . awt . GridBagConstraints . SOUTHWEST ; \n gridBagConstraints4 . fill = java . awt . GridBagConstraints . HORIZONTAL ; \n gridBagConstraints4 . gridx = NUMBER2 ; \n - gridBagConstraints4 . gridy = NUMBER3 ; \n + gridBagConstraints4 . gridy = NUMBER2 ; \n gridBagConstraints4 . weightx = FLOAT1 ; \n - this . add ( getSplitVert ( ) , gridBagConstraints1 ) ; \n + SINGLE \n this . add ( getJPanel ( ) , gridBagConstraints4 ) ; \n + this . add ( getSplitVert ( ) , gridBagConstraints1 ) ; \n } \n COMMENT", "msg_token": "Moved HttpPanel toolbar to the top"} {"diff": " public class HikariConfig implements HikariConfigMBean \n LOGGER . debug ( prop + ( value != null ? value : STRING0 ) ) ; \n } \n catch ( Exception e ) { \n + continue ; \n } \n } \n }", "msg_token": "reverted changes for continue statement"} {"diff": " public final class TreeUtil { \n \n public static List < TreePath > collectExpandedPaths ( final JTree tree , TreePath path ) { \n final ArrayList < TreePath > result = new ArrayList < TreePath > ( ) ; \n + if ( ! tree . isExpanded ( path ) ) return result ; \n final Object lastPathComponent = path . getLastPathComponent ( ) ; \n final TreeModel model = tree . getModel ( ) ; \n if ( model . isLeaf ( lastPathComponent ) ) {", "msg_token": "add condition for non expanded nodes"} {"diff": " public class TextEditingTarget implements \n @ handler \n void onExtractLocalVariable ( ) \n { \n + if ( ! isCursorInRMode ( ) ) \n + { \n + showRModeWarning ( STRING0 ) ; \n + return ; \n + } \n + \n docDisplay_ . focus ( ) ; \n \n String initialSelection = docDisplay_ . getSelectionValue ( ) ; \n public class TextEditingTarget implements \n ) ; \n } \n \n + private void showRModeWarning ( String command ) \n + { \n + globalDisplay_ . showMessage ( MessageDisplay . MSG_WARNING , \n + STRING1 , \n + STRING2 + command + STRING3 + \n + STRING4 ) ; \n + return ; \n + } \n + \n + \n @ handler \n void onExtractFunction ( ) \n { \n + if ( ! isCursorInRMode ( ) ) \n + { \n + showRModeWarning ( STRING5 ) ; \n + return ; \n + } \n + \n docDisplay_ . focus ( ) ; \n \n String initialSelection = docDisplay_ . getSelectionValue ( ) ;", "msg_token": "don t allow extract function and extract variable when not in R mode"} {"diff": " public class RepackZipEntriesStepTest { \n String unzipExpected = Joiner . on ( STRING0 ) . join ( new ImmutableList . Builder < String > ( ) \n . add ( STRING1 ) \n . add ( STRING2 ) \n - . add ( STRING3 ) . add ( dir . getPath ( ) ) \n + . add ( STRING3 ) . add ( dir . getAbsolutePath ( ) ) \n . add ( inApk ) \n . addAll ( entries ) \n . build ( ) ) ; \n public class RepackZipEntriesStepTest { \n assertEquals ( zipExpected , zipStep . getShellCommand ( context ) ) ; \n \n SINGLE \n - assertEquals ( zipStep . getWorkingDirectory ( ) , dir ) ; \n + assertEquals ( zipStep . getWorkingDirectory ( ) . getAbsolutePath ( ) , dir . getAbsolutePath ( ) ) ; \n \n verify ( context ) ; \n }", "msg_token": "Fix path inconsistency in RepackZipEntriesStepTest"} {"diff": " public class ListView extends AbsListView { \n } \n final Paint paint = mDividerPaint ; \n \n - final int listBottom = mBottom - mTop - mListPadding . bottom + mScrollY ; \n + int effectivePaddingTop = NUMBER0 ; \n + int effectivePaddingBottom = NUMBER0 ; \n + if ( ( mGroupFlags & CLIP_TO_PADDING_MASK ) == CLIP_TO_PADDING_MASK ) { \n + effectivePaddingTop = mListPadding . top ; \n + effectivePaddingBottom = mListPadding . bottom ; \n + } \n + \n + final int listBottom = mBottom - mTop - effectivePaddingBottom + mScrollY ; \n if ( ! mStackFromBottom ) { \n int bottom = NUMBER0 ; \n \n public class ListView extends AbsListView { \n } \n } else { \n int top ; \n - int listTop = mListPadding . top ; \n + int listTop = effectivePaddingTop ; \n \n final int scrollY = mScrollY ;", "msg_token": "Fix a bug that could cause padded lists to draw dividers incorrectly"} {"diff": " public class ShareCompat { \n COMMENT \n public String getHtmlText ( ) { \n String result = mIntent . getStringExtra ( IntentCompat . EXTRA_HTML_TEXT ) ; \n - if ( mIntent == null ) { \n + if ( result == null ) { \n CharSequence text = getText ( ) ; \n if ( text instanceof Spanned ) { \n result = Html . toHtml ( ( Spanned ) text ) ;", "msg_token": "Fix a bug in ShareCompat IntentReader getHtmlText fallback"} {"diff": " public class SpdyClientProvider implements ClientProvider { \n } \n \n private static SpdyClientConnection createSpdyChannel ( StreamConnection connection , Pool < ByteBuffer > bufferPool ) { \n - SpdyChannel spdyChannel = new SpdyChannel ( connection , bufferPool , null , new ByteBufferSlicePool ( BufferAllocator . BYTE_BUFFER_ALLOCATOR , NUMBER0 , NUMBER0 ) ) ; \n + SpdyChannel spdyChannel = new SpdyChannel ( connection , bufferPool , null , new ByteBufferSlicePool ( BufferAllocator . BYTE_BUFFER_ALLOCATOR , NUMBER1 , NUMBER1 ) ) ; \n return new SpdyClientConnection ( spdyChannel ) ; \n }", "msg_token": "Increase the default buffer pool size"} {"diff": " public final class HttpHelper { \n SINGLE \n String baseUrl ; \n relativeUrl = endpoint . getHttpUri ( ) . toASCIIString ( ) ; \n + SINGLE \n + if ( relativeUrl . contains ( STRING0 ) ) { \n + relativeUrl = ObjectHelper . before ( relativeUrl , STRING0 ) ; \n + } \n if ( url . startsWith ( relativeUrl ) ) { \n baseUrl = url . substring ( NUMBER0 , relativeUrl . length ( ) ) ; \n relativeUrl = url . substring ( relativeUrl . length ( ) ) ;", "msg_token": "Fixed url rewrite issue after a recent bug fix"} {"diff": " public abstract class PackageManager { \n public static final String FEATURE_ETHERNET = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ sdkconstant ( SdkConstantType . FEATURE ) \n + public static final String FEATURE_HDMI_CEC = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class SystemServer { \n \n mSystemServiceManager . startService ( MediaSessionService . class ) ; \n \n - mSystemServiceManager . startService ( HdmiControlService . class ) ; \n + if ( mPackageManager . hasSystemFeature ( PackageManager . FEATURE_HDMI_CEC ) ) { \n + mSystemServiceManager . startService ( HdmiControlService . class ) ; \n + } \n \n mSystemServiceManager . startService ( TvInputManagerService . class ) ;", "msg_token": "Add the system feature for HDMI CEC"} {"diff": " abstract class AbstractCommandLineRunner < A extends Compiler , \n STRING0 , \n STRING1 ) ; \n \n + static final String WAITING_FOR_INPUT_WARNING = \n + STRING2 ; \n + \n private final CommandLineConfig config ; \n \n private final PrintStream defaultJsOutput ; \n abstract class AbstractCommandLineRunner < A extends Compiler , \n throw new FlagUsageException ( STRING3 + \n STRING4 ) ; \n } \n + \n + this . err . println ( WAITING_FOR_INPUT_WARNING ) ; \n inputs . add ( SourceFile . fromInputStream ( STRING5 , System . in , inputCharset ) ) ; \n usingStdin = true ; \n }", "msg_token": "Emit a warning message when the compiler is waiting for input"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add a comment to the EventListenerInvoker class"} {"diff": " public class RajawaliRenderer implements GLSurfaceView . Renderer , INode { \n \n public static boolean supportsUIntBuffers = false ; \n \n - private boolean mSceneInitialized ; \n + protected boolean mSceneInitialized ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allow subclasses to fiddle with mSceneInitialized"} {"diff": " public enum AndroidExcludedRefs { \n } \n } , \n \n - TEXT_VIEW__MLAST_HOVERED_VIEW ( SAMSUNG . equals ( MANUFACTURER ) && SDK_INT == KITKAT ) { \n + TEXT_VIEW__MLAST_HOVERED_VIEW ( \n + SAMSUNG . equals ( MANUFACTURER ) && SDK_INT >= KITKAT && SDK_INT <= LOLLIPOP ) { \n @ override void add ( ExcludedRefs . Builder excluded ) { \n SINGLE \n excluded . staticField ( STRING0 , STRING1 ) ;", "msg_token": "extend TextView mLastHoveredView exclusion to Lollipop"} {"diff": " public class ByteDecoder extends Bytes { \n _pool . done ( this ) ; \n } \n \n - final static SimplePool < ByteDecoder > _pool = new SimplePool < ByteDecoder > ( STRING0 , NUM_ENCODERS * NUMBER0 , - NUMBER1 ) { \n + final static SimplePool < ByteDecoder > _pool = new SimplePool < ByteDecoder > ( STRING0 , NUM_ENCODERS * NUMBER0 , NUM_ENCODERS * NUMBER2 ) { \n \n protected ByteDecoder createNew ( ) { \n if ( D ) System . out . println ( STRING1 ) ; \n public class ByteEncoder extends Bytes { \n _pool . done ( this ) ; \n } \n \n - final static SimplePool < ByteEncoder > _pool = new SimplePool < ByteEncoder > ( STRING2 , NUM_ENCODERS , - NUMBER1 ) { \n + final static SimplePool < ByteEncoder > _pool = new SimplePool < ByteEncoder > ( STRING2 , NUM_ENCODERS , NUM_ENCODERS * NUMBER3 ) { \n protected ByteEncoder createNew ( ) { \n if ( D ) System . out . println ( STRING3 ) ; \n return new ByteEncoder ( ) ;", "msg_token": "set max sizes on the pools"} {"diff": " public class Factory implements Configuration { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public final < T > Field < T > constant ( Object value , Class < ? extends T > type ) { \n public class Factory implements Configuration { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public final < T > Field < T > constant ( Object value , Field < T > field ) { \n public class Factory implements Configuration { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public final < T > Field < T > constant ( Object value , DataType < T > type ) {", "msg_token": "Fixed Javadoc errors"} {"diff": " public class SwingBuilder extends BuilderSupport { \n factories . put ( name , factory ) ; \n } \n \n + public Object getConstraints ( ) { \n + return constraints ; \n + } \n + \n public LinkedList getContainingWindows ( ) { \n return containingWindows ; \n }", "msg_token": "allow private constraints to be retrieved as a read only property"} {"diff": " public abstract class FindManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class FindManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + public abstract String getStringToReplace ( @ notnull String foundString , @ notnull FindModel model ) throws MalformedReplacementStringException ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - public abstract String getStringToReplace ( @ notnull String foundString , @ notnull FindModel model ) throws MalformedReplacementStringException ; \n public abstract String getStringToReplace ( @ notnull String foundString , @ notnull FindModel model , \n int startOffset , @ notnull CharSequence documentText ) throws MalformedReplacementStringException ;", "msg_token": "deprecate unused code"} {"diff": " public class WebView extends AbsoluteLayout \n SINGLE \n if ( ! rect . equals ( mLastVisibleRectSent ) ) { \n Point pos = new Point ( rect . left , rect . top ) ; \n + mWebViewCore . removeMessages ( EventHub . SET_SCROLL_OFFSET ) ; \n mWebViewCore . sendMessage ( EventHub . SET_SCROLL_OFFSET , \n nativeMoveGeneration ( ) , mUserScroll ? NUMBER0 : NUMBER1 , pos ) ; \n mLastVisibleRectSent = rect ;", "msg_token": "Prevent SET_SCROLL_OFFSET spam from clogging tubes"} {"diff": " public abstract class InputRegistry { \n InputState inputState = getRunningInputState ( input . getId ( ) ) ; \n \n if ( inputState != null ) { \n - input . stop ( ) ; \n + try { \n + input . stop ( ) ; \n + } catch ( Exception e ) { \n + LOG . warn ( STRING0 , input . getId ( ) , e ) ; \n + } \n removeFromRunning ( input ) ; \n inputState . setState ( InputState . InputStateType . STOPPED ) ; \n finishedStop ( inputState ) ;", "msg_token": "Fixing handling of failed attempts to stop input"} {"diff": " public class CsrfPreventionFilter extends FilterBase { \n \n HttpSession session = req . getSession ( false ) ; \n \n - @ suppresswarnings ( STRING0 ) \n LruCache < String > nonceCache = ( session == null ) ? null \n : ( LruCache < String > ) session . getAttribute ( \n Constants . CSRF_NONCE_SESSION_ATTR_NAME ) ;", "msg_token": "Remove unnecessary SuppressWarnings"} {"diff": " public class AutoValueProcessor extends AbstractProcessor { \n STRING0 , \n STRING1 , \n STRING2 + \n - STRING3 , \n + STRING4 , \n STRING5 , \n STRING6 , \n SINGLE", "msg_token": "Fix somewhat less than shocking mistake in generation of toString"} {"diff": " public final class MetricName { \n private int hash = NUMBER0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class MetricName { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix link in MetricName comment"} {"diff": " public class VcsLogManager implements Disposable { \n \n protected void processErrorFirstTime ( @ notnull Exception e ) { \n if ( myRecreateMainLogHandler != null ) { \n - LOG . info ( e ) ; \n - VcsBalloonProblemNotifier . showOverChangesView ( myProject , STRING0 + e . getMessage ( ) , MessageType . ERROR ) ; \n + String message = STRING0 + e . getMessage ( ) ; \n + if ( isLogVisible ( ) ) { \n + LOG . info ( e ) ; \n + VcsBalloonProblemNotifier . showOverChangesView ( myProject , message , MessageType . ERROR ) ; \n + } \n + else { \n + LOG . error ( message , e ) ; \n + } \n myRecreateMainLogHandler . run ( ) ; \n } \n else {", "msg_token": "vcs log when log is recreated only show balloon when log is visible"} {"diff": " public class HttpChannelOverHTTP2 extends HttpChannel \n \n _expect100Continue = fields . contains ( HttpHeader . EXPECT , HttpHeaderValue . CONTINUE . asString ( ) ) ; \n \n - SINGLE \n HttpFields response = getResponse ( ) . getHttpFields ( ) ; \n if ( getHttpConfiguration ( ) . getSendServerVersion ( ) ) \n response . add ( SERVER_VERSION ) ; \n public class HttpChannel implements Runnable \n _request . setTimeStamp ( System . currentTimeMillis ( ) ) ; \n _request . setMetaData ( request ) ; \n \n - SINGLE \n if ( _configuration . getSendDateHeader ( ) ) \n _response . getHttpFields ( ) . put ( _connector . getServer ( ) . getDateField ( ) ) ; \n }", "msg_token": "remove old TODOs"} {"diff": " public class SemanticAnalyzer extends BaseSemanticAnalyzer { \n private RelOptSchema relOptSchema ; \n private SemanticException semanticException ; \n private Map < String , PrunedPartitionList > partitionCache ; \n - private AtomicInteger noColsMissingStats = new AtomicInteger ( NUMBER0 ) ; \n + private final AtomicInteger noColsMissingStats = new AtomicInteger ( NUMBER0 ) ; \n List < FieldSchema > topLevelFieldSchema ; \n \n SINGLE \n public class SemanticAnalyzer extends BaseSemanticAnalyzer { \n \n private RelNode genFilterRelNode ( ASTNode filterExpr , RelNode srcRel ) throws SemanticException { \n ExprNodeDesc filterCondn = genExprNodeDesc ( filterExpr , relToHiveRR . get ( srcRel ) ) ; \n + if ( filterCondn instanceof ExprNodeConstantDesc && \n + ! filterCondn . getTypeString ( ) . equals ( serdeConstants . BOOLEAN_TYPE_NAME ) ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + throw new OptiqSemanticException ( STRING0 ) ; \n + } \n ImmutableMap < String , Integer > hiveColNameOptiqPosMap = this . relToHiveColNameOptiqPosMap \n . get ( srcRel ) ; \n RexNode convertedFilterExpr = new RexNodeConverter ( cluster , srcRel . getRowType ( ) ,", "msg_token": "CBO Handle filters with non boolean return type Ashutosh Chauhan via John Pullokkaran"} {"diff": " class ChangeHighlighterHolder { \n } \n \n @ nullable \n - public RangeHighlighter addRangeHighlighter ( int start , \n - int end , \n - int layer , \n - TextDiffType type , \n - HighlighterTargetArea targetArea , \n + public RangeHighlighter addRangeHighlighter ( int start , int end , int layer , TextDiffType type , HighlighterTargetArea targetArea , \n boolean applied ) { \n if ( getMarkupModel ( ) . getDocument ( ) . getTextLength ( ) == NUMBER0 ) return null ; \n TextAttributes attributes = type . getTextAttributes ( myEditor ) ; \n public class ChangeList { \n public Project getProject ( ) { return myProject ; } \n \n public List < Change > getChanges ( ) { \n - return Collections . unmodifiableList ( myChanges ) ; \n + return new ArrayList < Change > ( myChanges ) ; \n } \n \n public static ChangeList build ( Document base , Document version , Project project ) throws FilesTooBigForDiffException {", "msg_token": "return a new ArrayList instead of unmodifiable list"} {"diff": " public final class InputMethodInfo implements Parcelable { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public boolean isEncryptionAware ( ) { \n - if ( mService == null || mService . serviceInfo == null ) { \n - return false ; \n - } \n - return mService . serviceInfo . encryptionAware ; \n - } \n - \n public void dump ( Printer pw , String prefix ) { \n pw . println ( prefix + STRING0 + mId \n + STRING1 + mSettingsActivityName", "msg_token": "Remove unused InputMethodInfo isEncryptionAware"} {"diff": " public class EclipsePatcher { \n } \n \n public static void premain ( String agentArgs , Instrumentation instrumentation ) throws Exception { \n - System . out . println ( STRING0 + System . getProperty ( STRING1 , STRING2 ) ) ; \n registerPatcher ( instrumentation , false ) ; \n addLombokToSearchPaths ( instrumentation ) ; \n }", "msg_token": "Removed a debug print"} {"diff": " public class TestOnlyInspection extends BaseJavaBatchLocalInspectionTool { \n public void visitReferenceExpression ( PsiReferenceExpression reference ) { \n PsiElement resolve = reference . resolve ( ) ; \n if ( resolve instanceof PsiField ) { \n - validate ( reference , ( ( PsiField ) resolve ) , h ) ; \n + validate ( reference , ( PsiField ) resolve , h ) ; \n } \n } \n \n public class TestOnlyInspection extends BaseJavaBatchLocalInspectionTool { \n return ; \n } \n PsiElement resolve = reference . resolve ( ) ; \n - if ( resolve instanceof PsiClass ) validate ( reference , ( ( PsiClass ) resolve ) , h ) ; \n + if ( resolve instanceof PsiClass ) validate ( reference , ( PsiClass ) resolve , h ) ; \n } \n } ; \n }", "msg_token": "Remove unnecessary parentheses"} {"diff": " final class WebSocketSessionRemoteEndpoint implements RemoteEndpoint { \n \n @ override \n public void sendPong ( final ByteBuffer applicationData ) throws IOException , IllegalArgumentException { \n - WebSockets . sendPingBlocking ( applicationData , webSocketChannel ) ; \n + WebSockets . sendPongBlocking ( applicationData , webSocketChannel ) ; \n } \n } \n }", "msg_token": "Send correct message type"} {"diff": " public abstract class LagartoServletFilter implements Filter { \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void doFilter ( ServletRequest servletRequest , ServletResponse servletResponse , FilterChain filterChain ) throws IOException , ServletException { \n HttpServletRequest request = ( HttpServletRequest ) servletRequest ; \n HttpServletResponse response = ( HttpServletResponse ) servletResponse ; \n String actionPath = DispatcherUtil . getServletPath ( request ) ; \n \n + if ( processActionPath ( request , response , actionPath ) == true ) { \n + return ; \n + } \n + \n if ( acceptActionPath ( request , actionPath ) == false ) { \n filterChain . doFilter ( servletRequest , servletResponse ) ; \n return ; \n public abstract class LagartoServletFilter implements Filter { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected boolean processActionPath ( \n + HttpServletRequest servletRequest , \n + HttpServletResponse servletResponse , \n + String actionPath ) throws IOException { \n + \n + return false ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added processActionPath method"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VimPlugin implements ApplicationComponent , PersistentStateComponent \n @ override \n public void initComponent ( ) { \n LOG . debug ( STRING0 ) ; \n - Notifications . Bus . register ( IDEAVIM_NOTIFICATION_ID , NotificationDisplayType . STICKY_BALLOON ) ; \n \n ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { \n public void run ( ) {", "msg_token": "Don t use sticky balloons"} {"diff": " \n \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class AnnotatedConfigClassesWithoutAtConfigurationTests { \n @ autowired \n private LifecycleBean lifecycleBean ; \n \n + \n @ test \n public void testSPR_9051 ( ) throws Exception { \n assertNotNull ( enigma ) ;", "msg_token": "Delete unused imports"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ApiGroovyCompiler implements org . gradle . language . base . internal . comp \n } \n \n private ClassLoader getExtClassLoader ( ) { \n - return new DefaultClassLoaderFactory ( ) . getIsolatedSystemClassLoader ( ) ; \n + return ClassLoaderUtils . getPlatformClassLoader ( ) ; \n } \n }", "msg_token": "Use shared method to calculate the platform ClassLoader"} {"diff": " public final class CxfPayloadConverter { \n payload . getBodySources ( ) . set ( NUMBER0 , new DOMSource ( d . getDocumentElement ( ) ) ) ; \n return type . cast ( d ) ; \n } \n + SINGLE \n + Source s = payload . getBodySources ( ) . get ( NUMBER0 ) ; \n + if ( type . isInstance ( s ) ) { \n + return type . cast ( s ) ; \n + } \n TypeConverter tc = registry . lookup ( type , Source . class ) ; \n if ( tc != null ) { \n - Source s = payload . getBodySources ( ) . get ( NUMBER0 ) ; \n - if ( type . isInstance ( s ) ) { \n - return type . cast ( s ) ; \n - } \n if ( ( s instanceof StreamSource \n || s instanceof SAXSource ) \n && ! type . isAssignableFrom ( Document . class )", "msg_token": "Optimize type conversion of CxfPaylaod with StreamSource with thanks to Stephan"} {"diff": " public class GenericsType extends ASTNode { \n Map < String , GenericsType > classNodePlaceholders = GenericsUtils . extractPlaceholders ( classNode ) ; \n Map < String , GenericsType > boundPlaceHolders = GenericsUtils . extractPlaceholders ( bound ) ; \n boolean match = true ; \n - for ( int i = NUMBER0 ; i < redirectBoundGenericTypes . length && match ; i ++ ) { \n + for ( int i = NUMBER0 ; redirectBoundGenericTypes != null && i < redirectBoundGenericTypes . length && match ; i ++ ) { \n GenericsType redirectBoundType = redirectBoundGenericTypes [ i ] ; \n GenericsType classNodeType = cnTypes [ i ] ; \n SINGLE", "msg_token": "Fix potential NPE"} {"diff": " public final class DlvDebugProcess extends DebugProcessImpl < RemoteVmConnection > \n \n @ override \n public void computeStackFrames ( int firstFrameIndex , XStackFrameContainer container ) { \n - for ( Api . Location location : myLocations ) { \n - if ( ! myStack . isEmpty ( ) ) { \n - location . line -= NUMBER0 ; SINGLE \n + if ( myStack . isEmpty ( ) ) { \n + for ( Api . Location location : myLocations ) { \n + if ( ! myStack . isEmpty ( ) ) { \n + location . line -= NUMBER0 ; SINGLE \n + } \n + myStack . add ( new DlvStackFrame ( location , myProcessor ) ) ; \n } \n - myStack . add ( new DlvStackFrame ( location , myProcessor ) ) ; \n + container . addStackFrames ( myStack , true ) ; \n } \n - container . addStackFrames ( myStack , true ) ; \n } \n \n private static class DlvStackFrame extends XStackFrame {", "msg_token": "compute stack one time"} {"diff": " public class DateTimeType extends LiquibaseDataType { \n if ( database instanceof MySQLDatabase ) { \n boolean supportsParameters = true ; \n try { \n - supportsParameters = database . getDatabaseMajorVersion ( ) >= NUMBER0 \n - && database . getDatabaseMinorVersion ( ) >= NUMBER1 \n - && ( ( MySQLDatabase ) database ) . getDatabasePatchVersion ( ) >= NUMBER2 ; \n + int major = database . getDatabaseMajorVersion ( ) ; \n + int minor = database . getDatabaseMinorVersion ( ) ; \n + int patch = ( ( MySQLDatabase ) database ) . getDatabasePatchVersion ( ) ; \n + supportsParameters = ( major > NUMBER0 ) \n + || ( ( major == NUMBER0 ) && ( minor > NUMBER1 ) ) \n + || ( ( major == NUMBER0 ) && ( minor == NUMBER1 ) && ( patch >= NUMBER2 ) ) ; \n } catch ( Exception ignore ) { \n SINGLE \n }", "msg_token": "correct the MySQL version check in DateTimeType"} {"diff": " enum InputExplicitInit3 { \n int TOKEN_first = NUMBER0 ; \n int TOKEN_second = NUMBER1 ; \n int TOKEN_third = NUMBER2 ; \n + } \n + \n + class ForEach { \n + public ForEach ( Collection < String > strings ) \n + { \n + for ( String s : strings ) SINGLE \n + { \n + \n + } \n + } \n }", "msg_token": "Added foreach test cases for ExplicitInitializationCheck"} {"diff": " public class Http2OkHttpTest extends AbstractTransportTest { \n Messages . StreamingOutputCallRequest . Builder requestBuilder = \n Messages . StreamingOutputCallRequest . newBuilder ( ) \n . setResponseType ( Messages . PayloadType . COMPRESSABLE ) ; \n - for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) { \n + for ( int i = NUMBER0 ; i < NUMBER2 ; i ++ ) { \n requestBuilder . addResponseParameters ( responseParameters ) ; \n }", "msg_token": "Reduce memory usage in test"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing header comment"} {"diff": " import NAMESPACE ; \n \n if ( ! isArrowKey && mWebView . nativeFocusNodePointer ( ) != mNodePointer ) { \n mWebView . nativeClearCursor ( ) ; \n - remove ( ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + mWebView . removeView ( this ) ; \n + mWebView . requestFocus ( ) ; \n return mWebView . dispatchKeyEvent ( event ) ; \n }", "msg_token": "Do not hide the soft keyboard when the DOM has moved focus"} {"diff": " public class RelativeLayout extends ViewGroup { \n } \n \n final int heightMode ; \n - if ( params . width == LayoutParams . MATCH_PARENT ) { \n + if ( params . height == LayoutParams . MATCH_PARENT ) { \n heightMode = MeasureSpec . EXACTLY ; \n } else { \n heightMode = MeasureSpec . AT_MOST ;", "msg_token": "DO NOT MERGE Use correct param for heightMode in RelativeLayout horizontal measure"} {"diff": " public abstract class ServiceCommandDispatcher < C > implements CommandDispatcher < C \n } \n \n private RequestOptions createRequestOptions ( ) { \n - return new RequestOptions ( ResponseMode . GET_ALL , this . timeout , false , FILTER , Message . Flag . DONT_BUNDLE ) ; \n + return new RequestOptions ( ResponseMode . GET_ALL , this . timeout , false , FILTER , Message . Flag . DONT_BUNDLE , Message . Flag . OOB ) ; \n } \n \n static < R > CommandResponse < R > createCommandResponse ( Rsp < R > response ) {", "msg_token": "Fix transient failures in CommandDispatcherTestCase"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public class StringTemplate { \n private final Tuple tuple ;", "msg_token": "added more comments on how to construct a valid StringTemplate"} {"diff": " public class SourceFunctionTest { \n NUMBER0 ) ) ; \n assertEquals ( expectedList , actualList ) ; \n } \n - \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n }", "msg_token": "hotfix Removed deprecated and commented code in SourceFunctionTest"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n @ implements ( NumberPicker . class ) \n public class ShadowNumberPicker extends ShadowLinearLayout { \n public class ShadowNumberPicker extends ShadowLinearLayout { \n private int maxValue ; \n private boolean wrapSelectorWheel ; \n private String [ ] displayedValues ; \n + private NumberPicker . OnValueChangeListener onValueChangeListener ; \n \n @ implementation \n public void setValue ( int value ) { \n public class ShadowNumberPicker extends ShadowLinearLayout { \n public boolean getWrapSelectorWheel ( ) { \n return wrapSelectorWheel ; \n } \n + \n + @ implementation \n + public void setOnValueChangedListener ( NumberPicker . OnValueChangeListener listener ) { \n + this . onValueChangeListener = listener ; \n + } \n + \n + public NumberPicker . OnValueChangeListener getOnValueChangeListener ( ) { \n + return onValueChangeListener ; \n + } \n }", "msg_token": "Add OnValueChangeListener property to ShadowNumberPicker"} {"diff": " public class FormRelatedFilesProvider extends GotoRelatedProvider { \n public List < ? extends GotoRelatedItem > getItems ( @ notnull PsiElement context ) { \n PsiClass psiClass = PsiTreeUtil . getParentOfType ( context , PsiClass . class , false ) ; \n if ( psiClass != null ) { \n - List < PsiFile > forms = FormClassIndex . findFormsBoundToClass ( psiClass ) ; \n - return GotoRelatedItem . createItems ( forms ) ; \n + while ( psiClass != null ) { \n + List < PsiFile > forms = FormClassIndex . findFormsBoundToClass ( psiClass ) ; \n + if ( ! forms . isEmpty ( ) ) { \n + return GotoRelatedItem . createItems ( forms ) ; \n + } \n + psiClass = PsiTreeUtil . getParentOfType ( psiClass , PsiClass . class ) ; \n + } \n } \n else { \n PsiFile file = context . getContainingFile ( ) ;", "msg_token": "fixed navigation to form file from anonymous and inner classes"} {"diff": " public class DechunkingChannelBuffer implements ChannelBuffer \n private ChannelBuffer buffer ; \n private boolean more ; \n private boolean hasMarkedReaderIndex ; \n - private final long timeoutSeconds ; \n + private final long timeoutMillis ; \n private boolean failure ; \n private final byte applicationProtocolVersion ; \n private final byte internalProtocolVersion ; \n \n - DechunkingChannelBuffer ( BlockingReadHandler < ChannelBuffer > reader , long timeoutSeconds , byte internalProtocolVersion , \n + DechunkingChannelBuffer ( BlockingReadHandler < ChannelBuffer > reader , long timeoutMillis , byte internalProtocolVersion , \n byte applicationProtocolVersion ) \n { \n this . reader = reader ; \n - this . timeoutSeconds = timeoutSeconds ; \n + this . timeoutMillis = timeoutMillis ; \n this . internalProtocolVersion = internalProtocolVersion ; \n this . applicationProtocolVersion = applicationProtocolVersion ; \n readNextChunk ( ) ; \n public class DechunkingChannelBuffer implements ChannelBuffer \n { \n try \n { \n - ChannelBuffer result = reader . read ( timeoutSeconds , TimeUnit . SECONDS ) ; \n + ChannelBuffer result = reader . read ( timeoutMillis , TimeUnit . MILLISECONDS ) ; \n if ( result == null ) \n { \n throw new ComException ( STRING0 ) ;", "msg_token": "Changes DechunkingChannelBuffer to use milliseconds since that s the configuration provided value"} {"diff": " public class MvcNamespaceTests { \n \n @ test \n public void testContentNegotiationManager ( ) throws Exception { \n - loadBeanDefinitions ( STRING0 , NUMBER0 ) ; \n + loadBeanDefinitions ( STRING0 , NUMBER1 ) ; \n \n RequestMappingHandlerMapping mapping = appContext . getBean ( RequestMappingHandlerMapping . class ) ; \n ContentNegotiationManager manager = mapping . getContentNegotiationManager ( ) ;", "msg_token": "Fix failing test"} {"diff": " import NAMESPACE ; \n \n public class PsiFileStubImpl < T extends PsiFile > extends StubBase < T > implements PsiFileStub < T > { \n public static final IStubFileElementType TYPE = new IStubFileElementType ( Language . ANY ) ; \n - private T myFile ; \n + private volatile T myFile ; \n \n public PsiFileStubImpl ( final T file ) { \n super ( null , null ) ; \n public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF \n final StubTree derefdOnLock = derefStub ( ) ; \n if ( derefdOnLock != null ) return derefdOnLock ; \n \n + SINGLE \n + ( ( StubBase ) stubHolder . getRoot ( ) ) . setPsi ( this ) ; \n myStub = new SoftReference < StubTree > ( stubHolder ) ; \n - StubBase < PsiFile > base = ( StubBase ) stubHolder . getRoot ( ) ; \n - base . setPsi ( this ) ; \n return stubHolder ; \n } \n }", "msg_token": "prevent semi initialized file stub from being visible from another thread may lead to wrong isValid false"} {"diff": " public class SipPhone extends SipPhoneBase { \n Log . v ( LOG_TAG , STRING0 + mPeer . getUriString ( ) + STRING1 \n + STRING2 + getPhone ( ) . getPhoneName ( ) ) ; \n try { \n - mSipAudioCall . endCall ( ) ; \n + if ( mSipAudioCall != null ) mSipAudioCall . endCall ( ) ; \n setState ( Call . State . DISCONNECTING ) ; \n setDisconnectCause ( DisconnectCause . LOCAL ) ; \n } catch ( SipException e ) {", "msg_token": "Fixing the NPE in SipPhone"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removing unused import to fix the build"} {"diff": " public class BaseRestTestCase extends PvmTestCase { \n protected ObjectMapper objectMapper = new ObjectMapper ( ) ; \n \n private static final List < String > TABLENAMES_EXCLUDED_FROM_DB_CLEAN_CHECK = Arrays . asList ( \n - STRING0 \n + STRING0 , \n + STRING1 , \n + STRING2 \n ) ; \n \n protected ProcessEngine processEngine ;", "msg_token": "Added liquibase tables to ignore list"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ZipFileCache { \n \n List < ZipFile > toClose = ContainerUtil . newSmartList ( ) ; \n \n + paths = ContainerUtil . map ( paths , new Function < String , String > ( ) { \n + @ override \n + public String fun ( String path ) { \n + return toCanonicalPath ( path ) ; \n + } \n + } ) ; \n + \n synchronized ( ourLock ) { \n for ( String path : paths ) { \n - path = toCanonicalPath ( path ) ; \n - \n CacheRecord record = ourPathCache . remove ( path ) ; \n if ( record != null ) { \n ourFileCache . remove ( record . file ) ;", "msg_token": "potentially blocking I O op"} {"diff": " public class OServerNetworkListener extends Thread { \n final ODistributedServerManager . NODE_STATUS nodeStatus = server . getDistributedManager ( ) . getNodeStatus ( ) ; \n if ( nodeStatus != ODistributedServerManager . NODE_STATUS . ONLINE ) { \n OLogManager . instance ( ) . warn ( this , \n - STRING0 , nodeStatus , \n + STRING1 , nodeStatus , \n socket . getRemoteSocketAddress ( ) ) ; \n socket . close ( ) ;", "msg_token": "improved the message"} {"diff": " public abstract class BasePopup implements ActionListener , ElementFilter , com . in \n final PopupFactory factory = PopupFactory . getSharedInstance ( ) ; \n if ( ! SystemInfo . isWindows ) { \n try { \n - final Method method = factory . getClass ( ) . getDeclaredMethod ( STRING0 , int . class ) ; \n + final Method method = PopupFactory . class . getDeclaredMethod ( STRING0 , int . class ) ; \n method . setAccessible ( true ) ; \n method . invoke ( factory , NUMBER0 ) ; \n }", "msg_token": "Fix exception on linux"} {"diff": " import NAMESPACE ; \n public class FtpShutdownCompleteAllTasksTest extends FtpServerTestSupport { \n \n private String getFtpUrl ( ) { \n - return STRING0 + getPort ( ) + STRING1 ; \n + return STRING0 + getPort ( ) + STRING2 ; \n } \n \n @ override \n public class FtpShutdownCompleteAllTasksTest extends FtpServerTestSupport { \n \n MockEndpoint bar = getMockEndpoint ( STRING3 ) ; \n bar . expectedMinimumMessageCount ( NUMBER0 ) ; \n - bar . setResultWaitTime ( NUMBER1 ) ; \n \n assertMockEndpointsSatisfied ( ) ; \n \n import NAMESPACE ; \n public class FtpShutdownCompleteCurrentTaskOnlyTest extends FtpServerTestSupport { \n \n private String getFtpUrl ( ) { \n - return STRING0 + getPort ( ) + STRING1 ; \n + return STRING0 + getPort ( ) + STRING2 ; \n } \n \n @ override \n public class FtpShutdownCompleteCurrentTaskOnlyTest extends FtpServerTestSupport \n \n MockEndpoint bar = getMockEndpoint ( STRING3 ) ; \n bar . expectedMinimumMessageCount ( NUMBER0 ) ; \n - bar . setResultWaitTime ( NUMBER1 ) ; \n \n assertMockEndpointsSatisfied ( ) ;", "msg_token": "Fixed ftp test on slow boxes"} {"diff": " public class KMeansSampleDataGenerator { \n \n private static final double DEFAULT_VALUE_RANGE = FLOAT0 ; \n \n - private static final double RELATIVE_STDDEV = FLOAT1 ; \n + private static final double RELATIVE_STDDEV = FLOAT2 ; \n \n private static final int DIMENSIONALITY = NUMBER0 ;", "msg_token": "Changed default stddev in kmeans sample data generator"} {"diff": " public class SpiceManagerTest extends InstrumentationTestCase { \n public void test_shouldStop_stops_requests_immediatly ( ) throws InterruptedException { \n SINGLE \n spiceManager . start ( getInstrumentation ( ) . getTargetContext ( ) ) ; \n - SpiceRequestStub < String > contentRequestStub = new SpiceRequestFailingStub < String > ( TEST_CLASS ) ; \n - SpiceRequestStub < String > contentRequestStub2 = new SpiceRequestFailingStub < String > ( TEST_CLASS ) ; \n + SpiceRequestStub < String > contentRequestStub = new SpiceRequestFailingStub < String > ( TEST_CLASS , WAIT_BEFORE_EXECUTING_REQUEST ) ; \n + SpiceRequestStub < String > contentRequestStub2 = new SpiceRequestFailingStub < String > ( TEST_CLASS , WAIT_BEFORE_EXECUTING_REQUEST ) ; \n RequestListenerStub < String > requestListenerStub = new RequestListenerStub < String > ( ) ; \n RequestListenerStub < String > requestListenerStub2 = new RequestListenerStub < String > ( ) ;", "msg_token": "fixed random failing test"} {"diff": " public final class HikariPool implements HikariPoolMBean \n COMMENT \n private boolean isConnectionAlive ( final IHikariConnectionProxy connection , long timeoutMs ) \n { \n - if ( timeoutMs < NUMBER0 ) \n - { \n - timeoutMs = NUMBER0 ; \n - } \n - \n try \n { \n connection . setAutoCommit ( isAutoCommit ) ; \n public final class HikariPool implements HikariPoolMBean \n connection . setTransactionIsolation ( transactionIsolation ) ; \n } \n \n + SINGLE \n + if ( System . currentTimeMillis ( ) - connection . getLastAccess ( ) < NUMBER0 ) \n + { \n + return true ; \n + } \n + \n try \n { \n + if ( timeoutMs < NUMBER0 ) \n + { \n + timeoutMs = NUMBER0 ; \n + } \n + \n if ( jdbc4ConnectionTest ) \n { \n return connection . isValid ( ( int ) TimeUnit . MILLISECONDS . toSeconds ( timeoutMs ) ) ;", "msg_token": "Add short circuit to aliveness check if connection was used within the last second"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "polish removing unused import"} {"diff": " public class UserLoginUidActivity extends BaseActivity implements \n showShortToast ( getResources ( ) . getString ( R . string . user_pwd ) ) ; \n return ; \n } else if ( ! NetWorkHelper . checkNetState ( this ) ) { \n - SINGLE \n - SINGLE \n + showLongToast ( getResources ( ) . getString ( R . string . httpisNull ) ) ; \n + return ; \n } \n String loginUser = String . format ( Urls . USER_LOGIN , name , pwd ) ; \n new LoginAsyncTask ( ) . execute ( loginUser ) ;", "msg_token": "resume network check code"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class FileColorManager { \n \n public abstract Project getProject ( ) ; \n \n - @ suppresswarnings ( { STRING0 } ) \n @ nullable \n public abstract Color getColor ( @ notnull String name ) ; \n \n public abstract class FileColorManager { \n \n @ nullable \n public abstract Color getRendererBackground ( PsiFile file ) ; \n + \n + public abstract void addScopeColor ( @ notnull String scopeName , @ notnull String colorName , boolean isProjectLevel ) ; \n } \n public class FileColorManagerImpl extends FileColorManager implements Persistent \n } \n \n @ override \n + public void addScopeColor ( @ notnull String scopeName , @ notnull String colorName , boolean isProjectLevel ) { \n + myModel . add ( scopeName , colorName , isProjectLevel ) ; \n + } \n + \n + @ override \n @ nullable \n public Color getFileColor ( @ notnull final PsiFile file ) { \n initProjectLevelConfigurations ( ) ;", "msg_token": "add API for configuring file colors"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused imports"} {"diff": " public class HttpDownloadConnection implements Transferable { \n && this . file . getKey ( ) == null ) { \n this . message . setEncryption ( Message . ENCRYPTION_NONE ) ; \n } \n - checkFileSize ( true ) ; \n + checkFileSize ( interactive ) ; \n } catch ( MalformedURLException e ) { \n this . cancel ( ) ; \n }", "msg_token": "fixed inactive http download"} {"diff": " public class StandardLibraryReferenceResolver extends AbstractProjectComponent { \n ensureInitialized ( ) ; \n DeclarationDescriptor declarationDescriptor = BindingContextUtils . referenceToDescriptor ( originalContext , referenceExpression ) ; \n \n - if ( declarationDescriptor != null ) { \n - declarationDescriptor = declarationDescriptor . getOriginal ( ) ; \n - declarationDescriptor = findCurrentDescriptor ( declarationDescriptor ) ; \n - if ( declarationDescriptor != null ) { \n - return BindingContextUtils . descriptorToDeclaration ( bindingContext , declarationDescriptor ) ; \n - } \n + return declarationDescriptor != null ? resolveStandardLibrarySymbol ( declarationDescriptor ) : null ; \n + } \n + \n + @ nullable \n + public PsiElement resolveStandardLibrarySymbol ( @ notnull DeclarationDescriptor declarationDescriptor ) { \n + ensureInitialized ( ) ; \n + DeclarationDescriptor descriptor = declarationDescriptor ; \n + \n + descriptor = descriptor . getOriginal ( ) ; \n + descriptor = findCurrentDescriptor ( descriptor ) ; \n + if ( descriptor != null ) { \n + return BindingContextUtils . descriptorToDeclaration ( bindingContext , descriptor ) ; \n } \n return null ; \n }", "msg_token": "Introduced resolveStandardLibrarySymbol taking DeclarationDescriptor"} {"diff": " public final class EncryptedMapDecorator implements Map < String , String > { \n COMMENT \n private byte [ ] consumeByteSourceOrNull ( final ByteSource source ) { \n try { \n + if ( source == null || source . isEmpty ( ) ) { \n + return null ; \n + } \n return source . read ( ) ; \n } catch ( final IOException e ) { \n logger . warn ( STRING0 , e ) ;", "msg_token": "fixed null check"} {"diff": " public class UriTest extends TestCase { \n assertEquals ( NUMBER0 , names . size ( ) ) ; \n assertEquals ( STRING0 , names . iterator ( ) . next ( ) ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void testGetQueryParametersEmptyValue ( ) { \n + assertEquals ( Arrays . asList ( STRING1 ) , \n + Uri . parse ( STRING2 ) . getQueryParameters ( STRING3 ) ) ; \n + assertEquals ( Arrays . asList ( STRING1 ) , \n + Uri . parse ( STRING4 ) . getQueryParameters ( STRING3 ) ) ; \n + assertEquals ( Arrays . asList ( STRING1 ) , \n + Uri . parse ( STRING5 ) . getQueryParameters ( STRING3 ) ) ; \n + assertEquals ( Arrays . asList ( STRING6 , STRING1 , STRING1 ) , \n + Uri . parse ( STRING7 ) . getQueryParameters ( STRING3 ) ) ; \n + assertEquals ( Arrays . asList ( STRING6 , STRING1 , STRING1 ) , \n + Uri . parse ( STRING8 ) . getQueryParameters ( STRING3 ) ) ; \n + } \n }", "msg_token": "Add a test to demonstrate parsing of trailing URI parameters"} {"diff": " public class DataServerIntegrationTest { \n Assert . assertEquals ( TestUtils . getIncreasingByteBuffer ( length ) , result ) ; \n } \n \n - @ test \n + SINGLE \n + SINGLE \n public void readThroughClientNonExistentTest ( ) \n throws InvalidPathException , FileAlreadyExistException , IOException { \n final int length = NUMBER0 ;", "msg_token": "Disable failing test temporarily"} {"diff": " public class ResStyleValue extends ResBagValue implements \n SINGLE \n if ( resource . contains ( STRING0 ) ) { \n continue ; \n - } else if ( resource . contains ( STRING1 ) || resource . contains ( STRING2 ) ) { \n + } else if ( resource . contains ( STRING1 ) || resource . contains ( STRING2 ) || \n + resource . contains ( STRING3 ) ) { \n name = STRING4 + spec . getFullName ( res . getResSpec ( ) . getPackage ( ) , false ) ; \n } else { \n ResAttr attr = ( ResAttr ) spec . getDefaultResource ( ) . getValue ( ) ;", "msg_token": "add ResBoolValue to Style check"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IdeaDecompiler extends ClassFileDecompilers . Light { \n } \n decompiler . decompileContext ( ) ; \n \n - file . putUserData ( LineNumbersMapping . LINE_NUMBERS_MAPPING_KEY , \n - new ExactMatchLineNumbersMapping ( saver . myMapping ) ) ; \n + if ( saver . myMapping != null ) { \n + file . putUserData ( LineNumbersMapping . LINE_NUMBERS_MAPPING_KEY , new ExactMatchLineNumbersMapping ( saver . myMapping ) ) ; \n + } \n \n return saver . myResult ; \n } \n public class IdeaDecompiler extends ClassFileDecompilers . Light { \n private static class ExactMatchLineNumbersMapping implements LineNumbersMapping { \n private int [ ] myMapping ; \n \n - private ExactMatchLineNumbersMapping ( int [ ] mapping ) { \n + private ExactMatchLineNumbersMapping ( @ notnull int [ ] mapping ) { \n myMapping = mapping ; \n }", "msg_token": "fixed NPE with disabled line mapping"} {"diff": " public final class RegisteredServiceSimpleFormController extends AbstractManagem \n possibleAttributeNames . addAll ( this . personAttributeDao . getPossibleUserAttributeNames ( ) ) ; \n Collections . sort ( possibleAttributeNames ) ; \n formData . setAvailableAttributes ( possibleAttributeNames ) ; \n - \n + \n bean . setStatus ( HttpServletResponse . SC_OK ) ; \n JsonViewUtils . render ( bean , response ) ; \n } catch ( final Exception e ) { \n public final class RegisteredServiceEditBean implements Serializable { \n } else if ( provider instanceof PrincipalAttributeRegisteredServiceUsernameProvider ) { \n final PrincipalAttributeRegisteredServiceUsernameProvider p = \n ( PrincipalAttributeRegisteredServiceUsernameProvider ) provider ; \n + uBean . setType ( RegisteredServiceUsernameAttributeProviderEditBean . Types . ATTRIBUTE . toString ( ) ) ; \n uBean . setValue ( p . getUsernameAttribute ( ) ) ; \n }", "msg_token": "fixed username attr"} {"diff": " public abstract class BaseIndex < D , E extends Dto < K > , K extends Serializable > \n . admin ( ) \n . indices ( ) \n . prepareRefresh ( this . getIndexName ( ) ) \n - . setForce ( true ) \n . get ( ) ; \n }", "msg_token": "ES freeze due to force refreshing"} {"diff": " public class InputMethodManagerService extends IInputMethodManager . Stub \n Slog . d ( TAG , STRING0 \n + STRING1 + uid + STRING2 + Process . SYSTEM_UID \n + STRING3 + userId + STRING4 \n - + mSettings . getCurrentUserId ( ) + STRING5 + Binder . getCallingPid ( ) ) ; \n + + mSettings . getCurrentUserId ( ) + STRING6 + Binder . getCallingPid ( ) ) ; \n } \n if ( uid == Process . SYSTEM_UID || userId == mSettings . getCurrentUserId ( ) ) { \n return true ; \n public class InputMethodManagerService extends IInputMethodManager . Stub \n mSwitchingDialog . setCanceledOnTouchOutside ( true ) ; \n mSwitchingDialog . getWindow ( ) . setType ( \n WindowManager . LayoutParams . TYPE_INPUT_METHOD_DIALOG ) ; \n + mSwitchingDialog . getWindow ( ) . getAttributes ( ) . privateFlags |= \n + WindowManager . LayoutParams . PRIVATE_FLAG_SHOW_FOR_ALL_USERS ; \n mSwitchingDialog . getWindow ( ) . getAttributes ( ) . setTitle ( STRING7 ) ; \n mSwitchingDialog . show ( ) ; \n }", "msg_token": "Fix an issue on showInputMethodPickerFromClient"} {"diff": " class GlobalScreenshot { \n \n SINGLE \n if ( mScreenshotAnimation != null ) { \n - mScreenshotAnimation . end ( ) ; \n + if ( mScreenshotAnimation . isStarted ( ) ) { \n + mScreenshotAnimation . end ( ) ; \n + } \n mScreenshotAnimation . removeAllListeners ( ) ; \n }", "msg_token": "Fix crash on second screenshot"} {"diff": " public class Translog extends AbstractIndexShardComponent implements IndexShardC \n if ( current . getTragicException ( ) != null ) { \n try { \n close ( ) ; \n + } catch ( AlreadyClosedException inner ) { \n + SINGLE \n + SINGLE \n } catch ( Exception inner ) { \n ex . addSuppressed ( inner ) ; \n + assert ( ex != inner . getCause ( ) ) ; \n } \n } \n }", "msg_token": "Avoid circular reference in exception"} {"diff": " public class GpsLocationProvider implements LocationProviderInterface { \n public GpsLocationProvider ( Context context , ILocationManager locationManager ) { \n mContext = context ; \n mLocationManager = locationManager ; \n - mNIHandler = new GpsNetInitiatedHandler ( context , this ) ; \n + mNIHandler = new GpsNetInitiatedHandler ( context , this ) ; \n + \n + mLocation . setExtras ( mLocationExtras ) ; \n \n SINGLE \n PowerManager powerManager = ( PowerManager ) mContext . getSystemService ( Context . POWER_SERVICE ) ;", "msg_token": "Fix broken location extras in GpsLocationProvider"} {"diff": " public class FileRenameFileOnCommitIssueTest extends ContextTestSupport { \n . inOut ( STRING0 ) \n . process ( new Processor ( ) { \n public void process ( Exchange exchange ) throws Exception { \n - SINGLE \n + log . info ( STRING1 , exchange . getIn ( ) . getBody ( String . class ) ) ; \n } \n } ) \n . to ( STRING2 ) ;", "msg_token": "Replaced System out println with log info"} {"diff": " public class SlidingUpPanelLayout extends ViewGroup { \n COMMENT \n COMMENT \n COMMENT \n - private static final int [ ] ATTRS = new int [ ] { \n + private static final int [ ] DEFAULT_ATTRS = new int [ ] { \n android . R . attr . layout_gravity \n } ; \n \n public class SlidingUpPanelLayout extends ViewGroup { \n public SlidingUpPanelLayout ( Context context , AttributeSet attrs , int defStyle ) { \n super ( context , attrs , defStyle ) ; \n if ( attrs != null ) { \n - TypedArray defAttrs = context . obtainStyledAttributes ( attrs , ATTRS ) ; \n + TypedArray defAttrs = context . obtainStyledAttributes ( attrs , DEFAULT_ATTRS ) ; \n \n if ( defAttrs != null ) { \n mIsSlidingUp = defAttrs . getInt ( NUMBER0 , Gravity . BOTTOM ) == Gravity . BOTTOM ;", "msg_token": "Rename ATTRS to DEFAULT_ATTRS"} {"diff": " public class ShellPane extends Composite implements Shell . Display , \n \n public void consoleWriteInput ( String input ) \n { \n - output ( input , styles_ . input ( ) + KEYWORD_CLASS_NAME , false ) ; \n + output ( input , styles_ . command ( ) + KEYWORD_CLASS_NAME , false ) ; \n scrollToBottomAsync ( ) ; \n }", "msg_token": "Fix selection rendering issue in console desktop only"} {"diff": " public class Message \n { \n id = Integer . parseInt ( getAttributeValue ( messageNode , STRING0 ) ) ; SINGLE \n name = getAttributeValue ( messageNode , STRING1 ) ; SINGLE \n + checkForValidName ( messageNode , name ) ; \n + \n description = getAttributeValueOrNull ( messageNode , STRING2 ) ; SINGLE \n blockLength = Integer . parseInt ( getAttributeValue ( messageNode , STRING3 , STRING4 ) ) ; SINGLE \n semanticType = getAttributeValueOrNull ( messageNode , STRING5 ) ; SINGLE \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public abstract class Type \n public Type ( final Node node ) \n { \n name = getAttributeValue ( node , STRING1 ) ; \n + checkForValidName ( node , name ) ; \n + \n presence = Presence . get ( getAttributeValue ( node , STRING6 , STRING7 ) ) ; \n description = getAttributeValueOrNull ( node , STRING2 ) ; \n semanticType = getAttributeValueOrNull ( node , STRING5 ) ;", "msg_token": "Java Check message and all type names for potential keywords"} {"diff": " public class ModelUtils { \n long hash = NUMBER0 ; \n if ( data != null ) \n for ( double d : data ) hash ^= Double . doubleToRawLongBits ( d + i ) > > NUMBER1 ; SINGLE \n - labels [ i ++ ] = indices . remove ( ( int ) hash % indices . size ( ) ) ; \n + labels [ i ++ ] = indices . remove ( ( int ) Math . abs ( hash ) % indices . size ( ) ) ; \n } \n assert ( i == numK ) ; \n }", "msg_token": "use absolute value of hash before doing modulo operation in Hit Ratio multi class tie breaking"} {"diff": " public class ColumnDefinition \n return new ColumnDefinition ( name , validator , index_type , index_options , index_name , componentIndex ) ; \n } \n \n - public ColumnDefinition clone ( ) \n - { \n - return new ColumnDefinition ( name , validator , index_type , index_options , index_name ) ; \n - } \n - \n @ override \n public boolean equals ( Object o ) \n {", "msg_token": "Fix duplicate method due to merge"} {"diff": " public class PreferenceManager { \n return getDefaultSharedPreferences ( context , HoloEverywhere . PREFERENCE_IMPL ) ; \n } \n \n + public static SharedPreferences getDefaultSharedPreferences ( Context context , int mode ) { \n + return wrap ( context , getDefaultSharedPreferencesName ( context ) , mode ) ; \n + } \n + \n public static SharedPreferences getDefaultSharedPreferences ( Context context , \n PreferenceImpl impl ) { \n return wrap ( context , impl , getDefaultSharedPreferencesName ( context ) ,", "msg_token": "Added another getDefaultSharedPreferences method"} {"diff": " public class JettyEmbeddedServletContainerFactory extends \n protected final void configureWebAppContext ( WebAppContext context , \n ServletContextInitializer . . . initializers ) { \n Assert . notNull ( context , STRING0 ) ; \n + context . setTempDirectory ( getTempDirectory ( ) ) ; \n setExtendedListenerTypes ( context ) ; \n if ( this . resourceLoader != null ) { \n context . setClassLoader ( this . resourceLoader . getClassLoader ( ) ) ; \n public class JettyEmbeddedServletContainerFactory extends \n postProcessWebAppContext ( context ) ; \n } \n \n + private File getTempDirectory ( ) { \n + String temp = System . getProperty ( STRING1 ) ; \n + return ( temp == null ? null : new File ( temp ) ) ; \n + } \n + \n private void setExtendedListenerTypes ( WebAppContext context ) { \n try { \n context . getServletContext ( ) . setExtendedListenerTypes ( true ) ;", "msg_token": "Set Jetty temp dir"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ImportClassHelper { \n COMMENT \n COMMENT \n public static void addImportDirective ( @ notnull String importString , @ notnull JetFile file ) { \n - \n + \n + SINGLE \n + if ( importString . startsWith ( JavaDescriptorResolver . JAVA_ROOT + STRING0 ) ) { \n + importString = importString . substring ( ( JavaDescriptorResolver . JAVA_ROOT + STRING0 ) . length ( ) ) ; \n + } \n + \n SINGLE \n - if ( JetPsiUtil . getFQName ( file ) . equals ( QualifiedNamesUtil . withoutLastSegment ( importString ) ) ) { \n + if ( QualifiedNamesUtil . isOneSegmentFQN ( importString ) || \n + JetPsiUtil . getFQName ( file ) . equals ( QualifiedNamesUtil . withoutLastSegment ( importString ) ) ) { \n + \n return ; \n }", "msg_token": "Fix imports from JavaDescriptorResolver"} {"diff": " public class XmlHighlightVisitor extends PsiElementVisitor implements Validator . \n ) { \n if ( tag instanceof HtmlTag ) { \n XmlEntitiesInspection inspection = getInspectionProfile ( tag , HtmlStyleLocalInspection . SHORT_NAME ) ; \n - if ( inspection != null && isAdditionallyDeclared ( inspection . getAdditionalEntries ( XmlEntitiesInspection . UNKNOWN_TAG ) , name ) ) { \n + if ( inspection != null COMMENT ) { \n return ; \n } \n }", "msg_token": "add custom tag to custom tag list qf fixed"} {"diff": " public class OObjectSerializerHelper { \n type = getFieldType ( iUserObject , iFieldName ) ; \n } \n \n + if ( type == null ) \n + throw new OSerializationException ( STRING0 + iFieldName + STRING1 + iRoot . getClassName ( ) + STRING2 ) ; \n + \n Object fieldValue = null ; \n Class < ? > fieldClass ; \n boolean propagate = false ;", "msg_token": "Added check on linked type if it s null"} {"diff": " public class DaemonClient implements GradleLauncherActionExecuter < BuildActionPar \n } \n \n private < T > Result < T > runBuild ( Build build , Connection < Object > connection ) { \n + DaemonClientInputForwarder inputForwarder = new DaemonClientInputForwarder ( System . in , build . getClientMetaData ( ) , connection ) ; \n try { \n SINGLE \n connection . dispatch ( build ) ; \n + inputForwarder . start ( ) ; \n while ( true ) { \n Object object = connection . receive ( ) ; \n \n public class DaemonClient implements GradleLauncherActionExecuter < BuildActionPar \n } \n } \n } finally { \n + inputForwarder . stop ( ) ; \n connection . stop ( ) ; \n } \n }", "msg_token": "integrate the daemon client input forwarder though there s not yet anything listening on the other side"} {"diff": " public class ConversationFragment extends Fragment { \n return true ; \n case R . id . download_image : \n downloadImage ( selectedMessage ) ; \n + return true ; \n default : \n return super . onContextItemSelected ( item ) ; \n } \n public class ManageAccountActivity extends XmppActivity { \n return true ; \n case R . id . mgmt_account_announce_pgp : \n publishOpenPGPPublicKey ( selectedAccount ) ; \n + return true ; \n default : \n return super . onContextItemSelected ( item ) ; \n }", "msg_token": "fix possible fallthrough"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed javadoc links to setCacheSeconds"} {"diff": " public class StaticMethod implements Matcher < ExpressionTree > { \n @ override \n public boolean matches ( ExpressionTree item , VisitorState state ) { \n Symbol sym = ASTHelpers . getSymbol ( item ) ; \n - if ( sym == null || ! ( sym instanceof MethodSymbol ) ) { \n - throw new IllegalArgumentException ( STRING0 ) ; \n - } \n - if ( ! sym . isStatic ( ) ) { \n + if ( sym == null || ! ( sym instanceof MethodSymbol ) || ! sym . isStatic ( ) ) { \n return false ; \n }", "msg_token": "Make StaticMethod fail the match rather than throwing an exception when not passed a method invocation"} {"diff": " public class ExpressionStatement extends Statement { \n this . expression = expression ; \n } \n \n + public String getText ( ) { \n + return this . toString ( ) ; \n + } \n public String toString ( ) { \n return super . toString ( ) + STRING0 + expression + STRING1 ; \n }", "msg_token": "overrode the super class default getText"} {"diff": " public class InvoiceDateUtils { \n return calculateProrationBetweenDates ( previousBillThroughDate , endDate , previousBillThroughDate , nextBillThroughDate ) ; \n } \n \n - COMMENT \n - public static LocalDate calculateBillingCycleDateOnOrAfter ( final LocalDate date , final DateTimeZone accountTimeZone , \n - final int billingCycleDayLocal ) { \n - final DateTime tmp = date . toDateTimeAtStartOfDay ( accountTimeZone ) ; \n - final DateTime proposedDateTime = calculateBillingCycleDateOnOrAfter ( tmp , billingCycleDayLocal ) ; \n - \n - return new LocalDate ( proposedDateTime , accountTimeZone ) ; \n - } \n - \n - public static LocalDate calculateBillingCycleDateAfter ( final LocalDate date , final DateTimeZone accountTimeZone , \n - final int billingCycleDayLocal ) { \n - final DateTime tmp = date . toDateTimeAtStartOfDay ( accountTimeZone ) ; \n - final DateTime proposedDateTime = calculateBillingCycleDateAfter ( tmp , billingCycleDayLocal ) ; \n - \n - return new LocalDate ( proposedDateTime , accountTimeZone ) ; \n - } \n - COMMENT \n - \n public static LocalDate calculateBillingCycleDateOnOrAfter ( final LocalDate date , final int billingCycleDayLocal ) { \n final int lastDayOfMonth = date . dayOfMonth ( ) . getMaximumValue ( ) ;", "msg_token": "remove legacy code"} {"diff": " public class IntroduceParameterDialog extends RefactoringDialog { \n myTypeSelectorManager = typeSelectorManager ; \n setTitle ( REFACTORING_NAME ) ; \n init ( ) ; \n + myPanel . updateTypeSelector ( ) ; \n } \n \n protected void dispose ( ) { \n public abstract class IntroduceParameterSettingsUI { \n } \n } \n \n + protected void updateTypeSelector ( ) { \n + if ( myCbReplaceAllOccurences != null ) { \n + getTypeSelectionManager ( ) . setAllOccurrences ( myCbReplaceAllOccurences . isSelected ( ) ) ; \n + } \n + else { \n + getTypeSelectionManager ( ) . setAllOccurrences ( myIsInvokedOnDeclaration ) ; \n + } \n + } \n + \n protected abstract TypeSelectorManager getTypeSelectionManager ( ) ; \n \n protected void createRemoveParamsPanel ( GridBagConstraints gbConstraints , JPanel panel ) {", "msg_token": "fix lost types on second press"} {"diff": " public final class Configuration implements Parcelable , Comparable < Configuration \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ deprecated public Locale locale ;", "msg_token": "Give guidance on alternatives to deprecated locale field"} {"diff": " public abstract class SegmentBase { \n return DashSegmentIndex . INDEX_UNBOUNDED ; \n } else { \n long durationMs = ( duration * NUMBER0 ) / timescale ; \n - return startNumber + ( int ) ( periodDurationMs / durationMs ) ; \n + return startNumber + ( int ) ( periodDurationMs / durationMs ) - NUMBER1 ; \n } \n }", "msg_token": "Fixed wrong calculation of last segment number when using segment template without segment timeline"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HttpConfigurable implements PersistentStateComponent < HttpConfigurab \n proxy . add ( STRING0 + httpConfigurable . PROXY_HOST ) ; \n proxy . add ( STRING1 + httpConfigurable . PROXY_PORT ) ; \n proxy . add ( STRING2 + httpConfigurable . PROXY_HOST ) ; \n - proxy . add ( STRING3 + Integer . toString ( httpConfigurable . PROXY_PORT ) ) ; \n + proxy . add ( STRING3 + httpConfigurable . PROXY_PORT ) ; \n + \n + if ( httpConfigurable . KEEP_PROXY_PASSWORD && StringUtil . isNotEmpty ( httpConfigurable . PROXY_LOGIN ) ) { \n + proxy . add ( STRING4 + httpConfigurable . PROXY_LOGIN ) ; \n + proxy . add ( STRING5 + httpConfigurable . getPlainProxyPassword ( ) ) ; \n + } \n + \n } \n return proxy ; \n }", "msg_token": "if we keep proxy password pass it to other processes"} {"diff": " public class AsyncTwitterTest extends TwitterTestBase implements TwitterListener \n String neu = STRING0 ; \n newName = user . getName ( ) + neu ; \n newURL = user . getURL ( ) + neu ; \n - newLocation = user . getLocation ( ) + neu ; \n + newLocation = new Date ( ) . toString ( ) ; \n newDescription = user . getDescription ( ) + neu ; \n \n async1 . updateProfile ( newName , newURL , newLocation , newDescription ) ;", "msg_token": "stabilizing AsyncTwitterTest testAccountMethods"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class JpsAntSerializationTest extends JpsSerializationTestCase { \n PathManagerEx . findFileUnderCommunityHome ( STRING0 ) ) ; \n } \n \n + @ override \n + protected Map < String , String > getPathVariables ( ) { \n + Map < String , String > pathVariables = super . getPathVariables ( ) ; \n + pathVariables . put ( PathMacrosImpl . APPLICATION_HOME_MACRO_NAME , PlatformTestUtil . getCommunityPath ( ) ) ; \n + return pathVariables ; \n + } \n + \n public void testLoadAntConfiguration ( ) { \n loadProject ( PROJECT_PATH ) ; \n loadGlobalSettings ( OPTIONS_PATH ) ;", "msg_token": "fixed test in All Tests configuration"} {"diff": " public class GroupTest { \n protected static final String NAME1 = STRING0 ; \n protected static final String NAME2 = STRING1 ; \n \n - @ test ( enabled = false ) \n + @ test \n public void shouldCreateTablesInGroup ( ) { \n Group group = new Group ( ) ; \n \n public class ViewColumnsTest extends AbstractViewTest { \n assertNull ( record3 ) ; \n } \n \n - @ test ( enabled = false ) \n + @ test \n public void shouldFindAllRecordsByColumnValue ( ) throws IllegalAccessException { \n EmployeeView view1 = employees . firstName . findAll ( NAME1 ) ; \n assertEquals ( NUMBER0 , view1 . size ( ) ) ;", "msg_token": "Enabled some tests that had been temporary disabled"} {"diff": " public class AimsicdService extends Service implements OnSharedPreferenceChangeL \n COMMENT \n public String getPhoneNumber ( boolean force ) { \n if ( mPhoneNum . isEmpty ( ) || force ) { \n - mPhoneNum = tm . getLine1Number ( ) ; \n + try { \n + mPhoneNum = tm . getLine1Number ( ) ; \n + } catch ( NullPointerException npe ) { \n + SINGLE \n + } \n } \n \n + SINGLE \n + if ( mPhoneNum . isEmpty ( ) ) \n + mPhoneNum = tm . getSubscriberId ( ) ; \n + \n return mPhoneNum ; \n }", "msg_token": "Fix NPE with Line Number method"} {"diff": " public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n } \n } \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n switch ( action & MotionEvent . ACTION_MASK ) { \n case MotionEvent . ACTION_DOWN : \n if ( mPendingCheckForTap == null ) { \n public class StickyGridHeadersGridView extends GridView implements OnScrollListe \n mHeaderBottomPosition += getPaddingTop ( ) ; \n } \n } \n - \n - TouchDelegate headerTouchDelegate ; \n - Rect tdArea = new Rect ( NUMBER0 , NUMBER0 , getWidth ( ) , mHeaderBottomPosition ) ; \n - headerTouchDelegate = new TouchDelegate ( tdArea , mStickiedHeader ) ; \n - setTouchDelegate ( headerTouchDelegate ) ; \n } \n }", "msg_token": "Remove dead code"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class Base64 \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - public static String encode ( byte [ ] binaryData ) { \n - return DatatypeConverter . printBase64Binary ( binaryData ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove deprecated code"} {"diff": " public class TextureOptions { \n public static final TextureOptions DEFAULT = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_NEAREST , GL10 . GL_MODULATE , GL10 . GL_CLAMP_TO_EDGE , GL10 . GL_CLAMP_TO_EDGE ) ; \n public static final TextureOptions BILINEAR = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_LINEAR , GL10 . GL_MODULATE , GL10 . GL_CLAMP_TO_EDGE , GL10 . GL_CLAMP_TO_EDGE ) ; \n public static final TextureOptions REPEATING = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_NEAREST , GL10 . GL_MODULATE , GL10 . GL_REPEAT , GL10 . GL_REPEAT ) ; \n + public static final TextureOptions REPEATING_BILINEAR = new TextureOptions ( GL10 . GL_NEAREST , GL10 . GL_LINEAR , GL10 . GL_MODULATE , GL10 . GL_REPEAT , GL10 . GL_REPEAT ) ; \n \n SINGLE \n SINGLE", "msg_token": "Added REPEATING_BILINEAR TextureOptions"} {"diff": " import NAMESPACE ; \n public class MongoIdentifierResolver extends IdentifierResolver { \n @ override \n public void resolve ( String identifier ) { \n - new Throwable ( ) . printStackTrace ( ) ; \n - log . info ( STRING0 + identifier ) ; \n if ( identifier . equalsIgnoreCase ( MONGODB_ID ) || \n identifier . equalsIgnoreCase ( MONGO_ID ) || \n identifier . equalsIgnoreCase ( BSON_ID ) ) {", "msg_token": "remove debugging logging"} {"diff": " public class DbConnectionManager { \n stmt . close ( ) ; \n } \n } \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( i >= NUMBER0 ) { \n - stmt = con . createStatement ( ) ; \n - stmt . execute ( STRING0 + i + STRING1 ) ; \n - stmt . close ( ) ; \n - } \n } \n finally { \n if ( in != null ) {", "msg_token": "Removed automatic update of the jiveVersion table"} {"diff": " public class SourceFormatter { \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 \n } ) ; \n \n + Pattern pattern = Pattern . compile ( \n + STRING6 + \n + STRING7 ) ; \n + \n + for ( ; ; ) { \n + Matcher matcher = pattern . matcher ( newContent ) ; \n + \n + if ( ! matcher . find ( ) ) { \n + break ; \n + } \n + \n + String match = matcher . group ( ) ; \n + \n + String replacement = StringUtil . replaceFirst ( \n + match , StringPool . NEW_LINE , StringPool . BLANK ) ; \n + \n + newContent = StringUtil . replaceFirst ( \n + newContent , match , replacement ) ; \n + } \n + \n if ( newContent . contains ( STRING8 ) ) { \n _processErrorMessage ( fileName , STRING9 + fileName ) ; \n }", "msg_token": "SourceFormatter remove empty lines"} {"diff": " import NAMESPACE ; \n COMMENT \n public final class BindFBO extends AbstractStateChange < String > implements FBOManagerSubscriber { \n private static final Integer DEFAULT_FRAME_BUFFER_ID = NUMBER0 ; \n - private static final String DEFAULT_FRAME_BUFFER_NAME = STRING0 ; \n + private static final String DEFAULT_FRAME_BUFFER_NAME = STRING1 ; \n private static BindFBO defaultInstance = new BindFBO ( ) ; \n \n private Integer fboId ;", "msg_token": "Make DEFAULT_FRAME_BUFFER_NAME as display"} {"diff": " class TypeCorrector extends PsiTypeMapper { \n PsiTypeParameter [ ] originalTypeParameters = originalClass . getTypeParameters ( ) ; \n if ( typeParameters . length != originalTypeParameters . length ) return substitutor ; \n \n + Map < PsiTypeParameter , PsiType > substitutionMap = substitutor . getSubstitutionMap ( ) ; \n + \n PsiSubstitutor mappedSubstitutor = PsiSubstitutor . EMPTY ; \n for ( int i = NUMBER0 ; i < originalTypeParameters . length ; i ++ ) { \n + if ( ! substitutionMap . containsKey ( originalTypeParameters [ i ] ) ) continue ; \n + \n PsiType originalSubstitute = substitutor . substitute ( originalTypeParameters [ i ] ) ; \n if ( originalSubstitute != null ) { \n PsiType substitute = mapType ( originalSubstitute ) ;", "msg_token": "don t add new variables to substitutor when correcting type by scope"} {"diff": " import NAMESPACE ; \n COMMENT \n public class TryFilesFilter implements Filter \n { \n - public static final String ROOT_INIT_PARAM = STRING0 ; \n public static final String FILES_INIT_PARAM = STRING1 ; \n \n private String [ ] files ;", "msg_token": "Removed unnecessary parameter root"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GroovyScriptEngineImpl \n private static boolean debug = false ; \n \n SINGLE \n - private ManagedConcurrentMap < String , Class > classMap = new ManagedConcurrentMap < String , Class > ( ReferenceBundle . getSoftBundle ( ) ) ; \n + private ManagedConcurrentValueMap < String , Class > classMap = new ManagedConcurrentValueMap < String , Class > ( ReferenceBundle . getSoftBundle ( ) ) ; \n SINGLE \n SINGLE \n private ManagedConcurrentValueMap < String , Closure > globalClosures = new ManagedConcurrentValueMap < String , Closure > ( ReferenceBundle . getHardBundle ( ) ) ;", "msg_token": "move away from identity hash map"} {"diff": " public class LogBuffers implements AutoCloseable \n \n public void close ( ) \n { \n - CloseHelper . quietClose ( fileChannel ) ; \n + CloseHelper . close ( fileChannel ) ; \n \n for ( final MappedByteBuffer buffer : mappedByteBuffers ) \n {", "msg_token": "Don t quietly hide exceptions when closing clients"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LibraryOptionsPanel implements Disposable { \n boolean showDoNotCreateOption , final List < ? extends FrameworkLibraryVersion > versions ) { \n SINGLE \n mySettings = new LibraryCompositionSettings ( libraryDescription , baseDirectoryPath , currentFrameworkVersion , versions ) ; \n + Disposer . register ( this , mySettings ) ; \n List < Library > libraries = calculateSuitableLibraries ( ) ; \n \n myButtonEnumModel = RadioButtonEnumModel . bindEnum ( Choice . class , myButtonGroup ) ;", "msg_token": "Fix memory leak"} {"diff": " public class AQUtility { \n AQUtility . debug = debug ; \n } \n \n + public static boolean isDebug ( ) { \n + return debug ; \n + } \n + \n public static void debugWait ( long time ) { \n \n if ( ! debug ) return ;", "msg_token": "Add isDebug method"} {"diff": " public class IndexShard extends AbstractIndexShardComponent { \n this . codecService = codecService ; \n this . shardSuggestService = shardSuggestService ; \n this . shardBitsetFilterCache = shardBitsetFilterCache ; \n - assert clusterService . lifecycleState ( ) == Lifecycle . State . STARTED ; SINGLE \n + assert clusterService . lifecycleState ( ) == Lifecycle . State . STARTED : STRING0 + clusterService . lifecycleState ( ) ; SINGLE \n this . localNode = clusterService . localNode ( ) ; \n state = IndexShardState . CREATED ; \n this . refreshInterval = indexSettings . getAsTime ( INDEX_REFRESH_INTERVAL , EngineConfig . DEFAULT_REFRESH_INTERVAL ) ;", "msg_token": "Improve reporting of assert in IndexShard"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class IncrementalCompileOptions implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n + @ input \n public File getAnalysisFile ( ) { \n return analysisFile ; \n } \n public class IncrementalCompileOptions implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n + SINGLE \n public File getPublishedCode ( ) { \n return publishedCode ; \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ScalaCompileOptions extends AbstractOptions { \n this . useAnt = useAnt ; \n } \n \n + @ nested \n public IncrementalCompileOptions getIncrementalOptions ( ) { \n return incrementalOptions ; \n }", "msg_token": "added Input annotation"} {"diff": " public class WindowLayersController { \n SINGLE \n layer ++ ; \n layer = assignAndIncreaseLayerIfNeeded ( mDockDivider , layer ) ; \n + \n + SINGLE \n + if ( mDockDivider != null && mService . mInputMethodWindow != null ) { \n + layer = assignAndIncreaseLayerIfNeeded ( mService . mInputMethodWindow , layer ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE \n public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n SINGLE \n if ( fl == NUMBER0 || fl == ( FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM ) \n - || type == TYPE_APPLICATION_STARTING || type == TYPE_DOCK_DIVIDER ) { \n + || type == TYPE_APPLICATION_STARTING ) { \n if ( DEBUG_INPUT_METHOD ) { \n Slog . i ( TAG_WM , STRING0 + w + STRING1 + w . isVisibleOrAdding ( ) ) ; \n if ( ! w . isVisibleOrAdding ( ) ) {", "msg_token": "Do not set docked divider as IME target"} {"diff": " public interface World { \n COMMENT \n public ArrowEntity spawnArrow ( Location loc , Vector velocity , \n float speed , float spread ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean generateTree ( Location loc ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean generateBigTree ( Location loc ) ; \n }", "msg_token": "Added world spawnTree world spawnBigTree"} {"diff": " class ViewCompatHC { \n \n static void offsetTopAndBottom ( View view , int offset ) { \n view . offsetTopAndBottom ( offset ) ; \n + tickleInvalidationFlag ( view ) ; \n + \n ViewParent parent = view . getParent ( ) ; \n if ( parent instanceof View ) { \n tickleInvalidationFlag ( ( View ) parent ) ; \n class ViewCompatHC { \n \n static void offsetLeftAndRight ( View view , int offset ) { \n view . offsetLeftAndRight ( offset ) ; \n + tickleInvalidationFlag ( view ) ; \n + \n ViewParent parent = view . getParent ( ) ; \n if ( parent instanceof View ) { \n tickleInvalidationFlag ( ( View ) parent ) ;", "msg_token": "Fix invalidation workaround"} {"diff": " public class Loader \n { \n FMLLog . fine ( STRING0 , injectedContainers ) ; \n SINGLE \n - mods . add ( new InjectedModContainer ( mcp , null ) ) ; \n + mods . add ( new InjectedModContainer ( mcp , new File ( STRING1 ) ) ) ; \n File coremod = new File ( minecraftDir , STRING2 ) ; \n for ( String cont : injectedContainers ) \n {", "msg_token": "Fix a small problem with the new MCP container it can cause NPEs"} {"diff": " public class XMPPTCPConnection extends AbstractXMPPConnection { \n } \n failedAddresses . add ( hostAddress ) ; \n } else { \n + socket = socketFactory . createSocket ( ) ; \n StringUtils . requireNotNullOrEmpty ( host , STRING0 + hostAddress + STRING1 ) ; \n final String hostAndPort = host + STRING2 + port ; \n LOGGER . finer ( STRING3 + hostAndPort ) ;", "msg_token": "Initialize Socket in TCP connection when proxy is used"} {"diff": " public class SearchEverywhereAction extends AnAction implements CustomComponentA \n if ( o instanceof PsiElement && ! ( ( ( PsiElement ) o ) . getParent ( ) instanceof PsiFile ) ) { \n final PsiElement element = ( PsiElement ) o ; \n final PsiFile file = element . getContainingFile ( ) ; \n - if ( ! myListModel . contains ( o ) && \n + if ( ! myListModel . contains ( o ) && ! symbols . contains ( o ) && \n SINGLE \n ( file == null || ( file . getVirtualFile ( ) != null && ( includeLibs || scope . accept ( file . getVirtualFile ( ) ) ) ) ) ) { \n symbols . add ( o ) ;", "msg_token": "duplicate symbols in Search Everywhere"} {"diff": " public class LocalExecutionPlanner \n \n private PhysicalOperation planGroupByAggregation ( AggregationNode node , PhysicalOperation source ) \n { \n - List < Symbol > groupBySymbols = node . getGroupBy ( ) ; \n + List < Symbol > groupBySymbols = ImmutableList . copyOf ( ImmutableSet . copyOf ( node . getGroupBy ( ) ) ) ; \n \n SINGLE \n source = packIfNecessary ( groupBySymbols , source ) ; \n public abstract class AbstractTestQueries \n } \n \n @ test \n + public void testGroupByRepeatedField ( ) \n + throws Exception \n + { \n + assertQuery ( STRING0 ) ; \n + } \n + \n + @ test \n public void testGroupByMultipleFieldsWithPredicateOnAggregationArgument ( ) \n throws Exception \n {", "msg_token": "Fix planning issue when grouping by repeated fields"} {"diff": " final class ActivityStack { \n r . userId , System . identityHashCode ( r ) , r . shortComponentName , \n mPausingActivity != null \n ? mPausingActivity . shortComponentName : STRING0 ) ; \n + if ( r . finishing && r . state == ActivityState . PAUSING ) { \n + if ( DEBUG_PAUSE ) Slog . v ( TAG , \n + STRING1 + r ) ; \n + finishCurrentActivityLocked ( r , FINISH_AFTER_VISIBLE , false ) ; \n + } \n } \n } \n }", "msg_token": "ActivityManager Finish the failed to pause activity"} {"diff": " public class AlertController { \n mShowTitle = a . getBoolean ( R . styleable . AlertDialog_showTitle , true ) ; \n \n a . recycle ( ) ; \n + \n + COMMENT \n + window . requestFeature ( Window . FEATURE_NO_TITLE ) ; \n } \n \n static boolean canTextInput ( View v ) { \n public class AlertController { \n } \n \n public void installContent ( ) { \n - COMMENT \n - mWindow . requestFeature ( Window . FEATURE_NO_TITLE ) ; \n int contentView = selectContentView ( ) ; \n mWindow . setContentView ( contentView ) ; \n setupView ( ) ;", "msg_token": "Allow AlertDialog to be used in a DialogFragment"} {"diff": " final class DeploymentUnitPhaseService < T > implements Service < T > { \n } \n } \n if ( deploymentUnit . getParent ( ) != null ) { \n - phaseServiceBuilder . addDependencies ( Services . deploymentUnitName ( deploymentUnit . getParent ( ) . getName ( ) , deploymentUnit . getName ( ) , nextPhase ) ) ; \n + phaseServiceBuilder . addDependencies ( Services . deploymentUnitName ( deploymentUnit . getParent ( ) . getName ( ) , nextPhase ) ) ; \n } \n List < DeploymentUnit > subDeployments = deploymentUnit . getAttachmentList ( Attachments . SUB_DEPLOYMENTS ) ; \n SINGLE", "msg_token": "Fix wrong dep that was preventing phases from ordering properly fixes integration tests"} {"diff": " public class RCompletionManager implements CompletionManager \n \n if ( results . length == NUMBER0 ) \n { \n - if ( nativeEvent_ != null && nativeEvent_ . getKeyCode ( ) != KeyCodes . KEY_TAB ) { \n + if ( docDisplay_ == null || \n + ( nativeEvent_ != null && nativeEvent_ . getKeyCode ( ) != KeyCodes . KEY_TAB ) ) { \n popup_ . showErrorMessage ( \n STRING0 , \n new PopupPositioner ( input_ . getCursorBounds ( ) , popup_ ) ) ;", "msg_token": "Avoid error on tab insertion when within console"} {"diff": " public class ReaderPostListFragment extends Fragment \n final ReaderActions . ActionListener actionListener = new ReaderActions . ActionListener ( ) { \n @ override \n public void onActionResult ( boolean succeeded ) { \n - if ( ! succeeded ) { \n + if ( ! succeeded && hasActivity ( ) ) { \n ToastUtils . showToast ( getActivity ( ) , R . string . reader_toast_err_generic ) ; \n } \n }", "msg_token": "Added missing hasActivity"} {"diff": " public abstract class Parser extends Recognizer < Token , ParserATNSimulator > { \n return t ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void setBuildParseTree ( boolean buildParseTrees ) { \n this . _buildParseTrees = buildParseTrees ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public boolean getBuildParseTree ( ) { \n return _buildParseTrees ; \n }", "msg_token": "Updated documentation of getBuildParseTree and setBuildParseTree"} {"diff": " public class KotlinClassifier implements SuspendableClassifier { \n \n SINGLE \n for ( final String s : excludePrefixes ) { \n - if ( className . startsWith ( s ) ) \n + if ( className != null && className . startsWith ( s ) ) \n return null ; \n }", "msg_token": "Make more robust and remove warning"} {"diff": " public class CodeStyleSettings extends CommonCodeStyleSettings implements Clonea \n return OTHER_INDENT_OPTIONS ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public IndentOptions getIndentOptions ( FileType fileType ) { \n IndentOptions indentOptions = getLanguageIndentOptions ( fileType ) ; \n if ( indentOptions != null ) return indentOptions ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public interface FileTypeIndentOptionsProvider { \n ExtensionPointName < FileTypeIndentOptionsProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ;", "msg_token": "Removed unused CoffeeScript indent options provider more Api documentation"} {"diff": " public class ApplicationSqlDao extends AbstractSqlDao { \n try ( InputStream inputStream = ApplicationSqlDao . class . getResourceAsStream ( fullResourcePath ) ) { \n \n SqlRunner . runScript ( connection , inputStream ) ; \n - connection . commit ( ) ; \n } \n catch ( Exception e ) { \n throw new RuntimeException ( e ) ; \n public class DownOperation extends AbstractTransferOperation { \n if ( cleanupOccurred ) { \n localBranch = new DatabaseBranch ( ) ; \n localDatabase . deleteAll ( ) ; \n + localDatabase . commit ( ) ; \n } \n Map . Entry < String , DatabaseBranch > winnersBranch = determineWinnerBranch ( localBranch , allStitchedBranches ) ;", "msg_token": "Move commit for clarity"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class PatternRuleXmlCreatorTest extends TestCase { \n \n public void testToXML ( ) throws IOException {", "msg_token": "move test to core"} {"diff": " public class TaskListWrapperActivity extends AstridWrapperActivity { \n return true ; \n } \n } ) ; \n - if ( selectionToSet != - NUMBER0 && selectionToSet < listDropdownAdapter . getCount ( ) ) { \n - selectionToSet = - NUMBER0 ; \n + if ( selectionToSet < listDropdownAdapter . getCount ( ) ) { \n getSupportActionBar ( ) . setSelectedNavigationItem ( selectionToSet ) ; \n } \n }", "msg_token": "Undid a change that broke things"} {"diff": " public class DefaultGrailsPlugin extends AbstractGrailsPlugin implements GrailsP \n return lastModified ; \n } \n } catch ( IOException e ) { \n - LOG . warn ( STRING0 + e . getMessage ( ) , e ) ; \n + LOG . debug ( STRING0 + e . getMessage ( ) , e ) ; \n } \n return - NUMBER0 ; \n }", "msg_token": "reduced log level of message to debug"} {"diff": " public class Account extends AbstractEntity { \n return this . avatar ; \n } \n \n - public int getReadableStatusId ( ) { \n - return this . getStatus ( ) . getReadableId ( ) ; \n - } \n - \n public void activateGracePeriod ( ) { \n this . mEndGracePeriod = SystemClock . elapsedRealtime ( ) \n + ( Config . CARBON_GRACE_PERIOD * NUMBER0 ) ; \n public class EditAccountActivity extends XmppActivity implements OnAccountUpdate \n } \n } else { \n if ( this . mAccount . errorStatus ( ) ) { \n - this . mAccountJid . setError ( getString ( this . mAccount \n - . getReadableStatusId ( ) ) ) ; \n + this . mAccountJid . setError ( getString ( this . mAccount . getStatus ( ) . getReadableId ( ) ) ) ; \n this . mAccountJid . requestFocus ( ) ; \n } \n this . mStats . setVisibility ( View . GONE ) ;", "msg_token": "Remove extra status wrapper method"} {"diff": " public class CompileTextTest extends CodegenTestCase { \n createEnvironmentWithMockJdk ( ) ; \n String text = STRING0 ; \n CompilerDependencies dependencies = CompileCompilerDependenciesTest . compilerDependenciesForTests ( CompilerSpecialMode . REGULAR , false ) ; \n - JetCoreEnvironment environment = new JetCoreEnvironment ( CompileEnvironmentUtil . createMockDisposable ( ) , dependencies ) ; \n - CompileEnvironmentConfiguration configuration = new CompileEnvironmentConfiguration ( environment , dependencies , MessageCollector . PLAIN_TEXT_TO_SYSTEM_ERR ) ; \n + CompileEnvironmentConfiguration configuration = new CompileEnvironmentConfiguration ( myEnvironment , dependencies , MessageCollector . PLAIN_TEXT_TO_SYSTEM_ERR ) ; \n configuration . getEnvironment ( ) . addToClasspathFromClassLoader ( getClass ( ) . getClassLoader ( ) ) ; \n ClassLoader classLoader = KotlinToJVMBytecodeCompiler . compileText ( configuration , text ) ; \n Class < ? > namespace = classLoader . loadClass ( STRING1 ) ;", "msg_token": "reuse CodegenTestCase in CompileTextTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class HikariJNDIFactory implements ObjectFactory \n { \n + static \n + { \n + CodaHaleShim . initialize ( ) ; \n + } \n + \n @ override \n public Object getObjectInstance ( Object obj , Name name , Context nameCtx , Hashtable < ? , ? > environment ) throws Exception \n { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n COMMENT \n public class HikariJNDIFactory implements ObjectFactory \n { \n + static \n + { \n + CodaHaleShim . initialize ( ) ; \n + } \n + \n @ override \n public Object getObjectInstance ( Object obj , Name name , Context nameCtx , Hashtable < ? , ? > environment ) throws Exception \n {", "msg_token": "Initialize the codahale shim in the JNDI factory"} {"diff": " public class GrLightMethodBuilder extends LightElement implements GrMethod { \n public static < T > T getData ( @ nullable PsiElement method , @ notnull Object kind ) { \n if ( method instanceof GrLightMethodBuilder ) { \n if ( kind . equals ( ( ( GrLightMethodBuilder ) method ) . myMethodKind ) ) { \n - return ( ( GrLightMethodBuilder ) method ) . getData ( ) ; \n + return ( ( GrLightMethodBuilder ) method ) . < T > getData ( ) ; \n } \n } \n return null ;", "msg_token": "Fix compilation error"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n @ mixin ( SpongeProxyBlockAccess . class ) \n - public class MixinSpongeProxyBlockAccess { \n + public abstract class MixinSpongeProxyBlockAccess implements IBlockAccess { \n \n @ shadow @ final IBlockAccess original ; \n \n public class MixinSpongeProxyBlockAccess { \n SINGLE \n SINGLE \n \n + @ override \n public int getCombinedLight ( BlockPos pos , int lightValue ) { \n return this . original . getCombinedLight ( pos , lightValue ) ; \n } \n \n + @ override \n public BiomeGenBase getBiomeGenForCoords ( BlockPos pos ) { \n return this . original . getBiomeGenForCoords ( pos ) ; \n } \n \n + @ override \n public boolean extendedLevelsInChunkCache ( ) { \n return this . original . extendedLevelsInChunkCache ( ) ; \n } \n \n + @ override \n public WorldType getWorldType ( ) { \n return this . original . getWorldType ( ) ; \n }", "msg_token": "Make MixinSpongeProxyBlockAccess implement IBlockAccess"} {"diff": " public class Tomcat { \n SINGLE \n SINGLE \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n private final Set < Logger > pinnedLoggers = new HashSet < > ( ) ;", "msg_token": "Fixed javadoc typo"} {"diff": " public class PyMoveModuleMembersProcessor extends BaseRefactoringProcessor { \n PyClassRefactoringUtil . updateImportOfElement ( importStmt , newElement ) ; \n } \n final PsiFile usageFile = usage . getContainingFile ( ) ; \n - if ( usageFile == oldElement . getContainingFile ( ) && ! PsiTreeUtil . isAncestor ( oldElement , usage , false ) ) { \n + final PsiElement oldElementBody = PyMoveModuleMembersHelper . expandNamedElementBody ( oldElement ) ; \n + if ( usageFile == oldElement . getContainingFile ( ) && ! PsiTreeUtil . isAncestor ( oldElementBody , usage , false ) ) { \n PyClassRefactoringUtil . insertImport ( oldElement , newElement ) ; \n } \n if ( resolvesToLocalStarImport ( usage ) ) {", "msg_token": "Prevent insertion of redundant import statement in the original file of moved element"} {"diff": " class ActivityUtils { \n private Activity activity ; \n private ArrayList < Activity > activityList = new ArrayList < Activity > ( ) ; \n private final int PAUS = NUMBER0 ; \n - private int orientation = NUMBER1 ; \n \n COMMENT \n COMMENT", "msg_token": "Removed unused variable"} {"diff": " public class MediaFile { \n public static final int FILE_TYPE_PNG = NUMBER0 ; \n public static final int FILE_TYPE_BMP = NUMBER1 ; \n public static final int FILE_TYPE_WBMP = NUMBER2 ; \n + public static final int FILE_TYPE_WEBP = NUMBER3 ; \n private static final int FIRST_IMAGE_FILE_TYPE = FILE_TYPE_JPEG ; \n - private static final int LAST_IMAGE_FILE_TYPE = FILE_TYPE_WBMP ; \n + private static final int LAST_IMAGE_FILE_TYPE = FILE_TYPE_WEBP ; \n \n SINGLE \n public static final int FILE_TYPE_M3U = NUMBER4 ; \n public class MediaFile { \n addFileType ( STRING0 , FILE_TYPE_PNG , STRING1 , MtpConstants . FORMAT_PNG ) ; \n addFileType ( STRING2 , FILE_TYPE_BMP , STRING3 , MtpConstants . FORMAT_BMP ) ; \n addFileType ( STRING4 , FILE_TYPE_WBMP , STRING5 ) ; \n + addFileType ( STRING6 , FILE_TYPE_WBMP , STRING7 ) ; \n \n addFileType ( STRING8 , FILE_TYPE_M3U , STRING9 , MtpConstants . FORMAT_M3U_PLAYLIST ) ; \n addFileType ( STRING8 , FILE_TYPE_M3U , STRING10 , MtpConstants . FORMAT_M3U_PLAYLIST ) ;", "msg_token": "Add WebP Mime Type support in Android Media File"} {"diff": " public class SQLiteCursor extends AbstractWindowedCursor { \n if ( ! sAlreadyWarned . containsKey ( databasePath ) ) { \n sAlreadyWarned . put ( databasePath , true ) ; \n String packageName = ActivityThread . currentPackageName ( ) ; \n + Throwable t = null ; \n + SINGLE \n + t = new RequeryOnUiThreadException ( packageName ) ; \n + SINGLE \n Log . w ( TAG , STRING0 + \n - packageName == null ? STRING1 : packageName , \n - new RequeryOnUiThreadException ( packageName ) ) ; \n + packageName == null ? STRING1 : packageName , t ) ; \n } \n } \n }", "msg_token": "before shipping remove stacktrace printing in requery warning msg"} {"diff": " public class AsyncProcessRevisitedTest extends SpringActivitiTestCase { \n ProcessInstance processInstance = runtimeService . startProcessInstanceByKey ( STRING0 ) ; \n List < Execution > executionList = runtimeService . createExecutionQuery ( ) . list ( ) ; \n assertEquals ( NUMBER0 , executionList . size ( ) ) ; \n - waitForJobExecutorToProcessAllJobs ( NUMBER1 , NUMBER2 ) ; \n + waitForJobExecutorToProcessAllJobs ( NUMBER3 , NUMBER2 ) ; \n assertEquals ( NUMBER4 , runtimeService . createProcessInstanceQuery ( ) . processInstanceId ( processInstance . getId ( ) ) . count ( ) ) ; \n } \n }", "msg_token": "increase the waiting time just to wait enough also for slow machines"} {"diff": " public class StatusBarKeyguardViewManager { \n private boolean mScreenOn = false ; \n private KeyguardBouncer mBouncer ; \n private boolean mShowing ; \n + private boolean mOccluded = false ; \n \n public StatusBarKeyguardViewManager ( Context context , ViewMediatorCallback callback , \n LockPatternUtils lockPatternUtils ) { \n public class StatusBarKeyguardViewManager { \n } \n \n public void showBouncer ( ) { \n - mBouncer . show ( ) ; \n - updateBackButtonState ( ) ; \n + if ( ! mOccluded ) { \n + mBouncer . show ( ) ; \n + updateBackButtonState ( ) ; \n + } \n } \n \n COMMENT \n public class StatusBarKeyguardViewManager { \n } \n \n public void setOccluded ( boolean occluded ) { \n + mOccluded = occluded ; \n + if ( occluded ) { \n + mPhoneStatusBar . hideKeyguard ( ) ; \n + mBouncer . hide ( ) ; \n + } else { \n + showBouncerOrKeyguard ( ) ; \n + } \n mStatusBarWindowManager . setKeyguardOccluded ( occluded ) ; \n }", "msg_token": "Fix broken status bar when activity is showing above keyguard"} {"diff": " public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstra \n type = OType . EMBEDDEDMAP ; \n } else if ( fieldValue . charAt ( NUMBER0 ) == OStringSerializerHelper . LINK ) \n type = OType . LINK ; \n + else if ( fieldValue . charAt ( NUMBER0 ) == OStringSerializerHelper . EMBEDDED ) \n + type = OType . EMBEDDED ; \n else if ( fieldValue . equals ( STRING0 ) || fieldValue . equals ( STRING1 ) ) \n type = OType . BOOLEAN ; \n else", "msg_token": "Fixed issue on unmarshalling of embedded types"} {"diff": " class TypedCodeGenerator extends CodeGenerator { \n COMMENT \n COMMENT \n private String getFunctionAnnotation ( Node fnNode ) { \n - Preconditions . checkState ( fnNode . isFunction ( ) ) ; \n JSType type = fnNode . getJSType ( ) ; \n + Preconditions . checkState ( fnNode . isFunction ( ) || type . isFunctionType ( ) ) ; \n \n if ( type == null || type . isUnknownType ( ) ) { \n return STRING0 ; \n public final class CodePrinterTest extends CodePrinterTestBase { \n + STRING1 ) ; \n } \n \n + public void testTypeAnnotationsMemberStub ( ) { \n + SINGLE \n + assertTypeAnnotations ( STRING2 \n + + STRING3 , \n + STRING4 \n + + STRING5 \n + + STRING6 \n + + STRING7 \n + + STRING8 \n + + STRING9 ) ; \n + } \n + \n public void testTypeAnnotationsImplements ( ) { \n assertTypeAnnotations ( STRING10 \n + STRING11", "msg_token": "Fix JS function to method refactoring"} {"diff": " class CanonicalPathMap { \n } \n \n private static Map < String , String > resolvePaths ( Collection < String > recursiveRoots , Collection < String > flatRoots ) { \n - Map < Thread , StackTraceElement [ ] > before = Thread . getAllStackTraces ( ) ; \n - long start = System . currentTimeMillis ( ) ; \n Map < String , String > result = ContainerUtil . newConcurrentMap ( ) ; \n \n List < String > roots = ContainerUtil . concat ( Arrays . asList ( recursiveRoots , flatRoots ) ) ; \n class CanonicalPathMap { \n return true ; \n } ) ; \n \n - long finish = System . currentTimeMillis ( ) ; \n - Map < Thread , StackTraceElement [ ] > after = Thread . getAllStackTraces ( ) ; \n - System . out . println ( ( recursiveRoots . size ( ) + flatRoots . size ( ) ) + STRING0 + before . size ( ) + STRING1 + after . size ( ) + STRING2 + ( finish - start ) + STRING3 ) ; \n return result ; \n }", "msg_token": "removed printlns sorry"} {"diff": " public class PreferencesFrame { \n . addGroup ( layout . createSequentialGroup ( ) \n . addComponent ( fontLabel ) \n . addComponent ( fontSelectionBox , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) ) \n - . addGroup ( layout . createSequentialGroup ( ) \n + . addGroup ( GroupLayout . Alignment . LEADING , \n + layout . createSequentialGroup ( ) \n . addComponent ( fontSizelabel ) \n . addComponent ( fontSizeField , GroupLayout . PREFERRED_SIZE , GroupLayout . DEFAULT_SIZE , GroupLayout . PREFERRED_SIZE ) \n . addComponent ( consoleFontSizeLabel )", "msg_token": "Made the Layout leading"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClusterManager < T extends ClusterItem > implements GoogleMap . OnCamera \n SINGLE \n mClusterTask . cancel ( true ) ; \n mClusterTask = new ClusterTask ( ) ; \n - mClusterTask . execute ( mMap . getCameraPosition ( ) . zoom ) ; \n + if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . HONEYCOMB ) { \n + mClusterTask . execute ( mMap . getCameraPosition ( ) . zoom ) ; \n + } else { \n + mClusterTask . executeOnExecutor ( AsyncTask . THREAD_POOL_EXECUTOR , mMap . getCameraPosition ( ) . zoom ) ; \n + } \n } finally { \n mClusterTaskLock . writeLock ( ) . unlock ( ) ; \n }", "msg_token": "ClusterManager used THREAD_POOL_EXECUTOR"} {"diff": " public class AndroidCompiledStatement implements CompiledStatement { \n \n public DatabaseResults runQuery ( ObjectCache objectCache ) throws SQLException { \n SINGLE \n - if ( type != StatementType . SELECT ) { \n + if ( ! type . isOkForQuery ( ) ) { \n throw new IllegalArgumentException ( STRING0 + type + STRING1 ) ; \n } \n return new AndroidDatabaseResults ( getCursor ( ) , objectCache ) ; \n } \n \n public int runUpdate ( ) throws SQLException { \n - if ( type == StatementType . SELECT ) { \n + if ( ! type . isOkForUpdate ( ) ) { \n throw new IllegalArgumentException ( STRING2 + type + STRING1 ) ; \n } \n String finalSql = null ; \n public class AndroidCompiledStatement implements CompiledStatement { \n } \n \n public int runExecute ( ) throws SQLException { \n - if ( type != StatementType . EXECUTE ) { \n + if ( ! type . isOkForExecute ( ) ) { \n throw new IllegalArgumentException ( STRING3 + type + STRING1 ) ; \n } \n try {", "msg_token": "Fixed problems with query type detection that caused countOf under Android not to work"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public abstract class OpenTSDBGenericWriter extends BaseOutputWriter { \n Settings . getBooleanSetting ( this . getSettings ( ) , STRING0 , this . getAddHostnameTagDefault ( ) ) , \n getAddHostnameTagDefault ( ) ) ; \n \n - messageFormatter = new OpenTSDBMessageFormatter ( typeNames , ImmutableMap . copyOf ( \n + ImmutableList < String > nonNullTypeNames = copyOf ( MoreObjects . firstNonNull ( typeNames , Collections . < String > emptyList ( ) ) ) ; \n + \n + messageFormatter = new OpenTSDBMessageFormatter ( nonNullTypeNames , ImmutableMap . copyOf ( \n firstNonNull ( \n tags , \n ( Map < String , String > ) getSettings ( ) . get ( STRING1 ) ,", "msg_token": "Make sure typenames are non null in OpenTSDBWriter"} {"diff": " class DaemonListeners implements Disposable { \n \n connection . subscribe ( DumbService . DUMB_MODE , new DumbService . DumbModeListener ( ) { \n public void enteredDumbMode ( ) { \n - stopDaemon ( true ) ; \n + myDaemonCodeAnalyzer . restart ( ) ; \n } \n \n public void exitDumbMode ( ) { \n - stopDaemon ( true ) ; \n + myDaemonCodeAnalyzer . restart ( ) ; \n } \n } ) ;", "msg_token": "forcefully restart all files on dumbness change"} {"diff": " public class ResidentQueryParserCache extends AbstractIndexComponent implements \n public ResidentQueryParserCache ( Index index , @ indexsettings Settings indexSettings ) { \n super ( index , indexSettings ) ; \n \n - this . maxSize = indexSettings . getAsInt ( STRING0 , componentSettings . getAsInt ( STRING1 , NUMBER0 ) ) ; \n - this . expire = indexSettings . getAsTime ( STRING2 , componentSettings . getAsTime ( STRING3 , null ) ) ; \n + this . maxSize = componentSettings . getAsInt ( STRING1 , NUMBER0 ) ; \n + this . expire = componentSettings . getAsTime ( STRING3 , null ) ; \n logger . debug ( STRING4 , maxSize , expire ) ; \n \n CacheBuilder cacheBuilder = CacheBuilder . newBuilder ( ) . maximumSize ( maxSize ) ;", "msg_token": "remove the field settings for query parser cache not really relevant"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StatsActivity extends AppCompatActivity \n } \n } , StatsConstants . STATS_SCROLL_TO_DELAY ) ; \n \n - trackStatsAnalitycs ( ) ; \n + trackStatsAnalytics ( ) ; \n } \n @ override \n public void onNothingSelected ( AdapterView < ? > parent ) { \n public class StatsActivity extends AppCompatActivity \n SINGLE \n if ( savedInstanceState == null ) { \n AnalyticsTracker . track ( AnalyticsTracker . Stat . STATS_ACCESSED ) ; \n - trackStatsAnalitycs ( ) ; \n + trackStatsAnalytics ( ) ; \n } \n } \n \n - private void trackStatsAnalitycs ( ) { \n + private void trackStatsAnalytics ( ) { \n SINGLE \n switch ( mCurrentTimeframe ) { \n case INSIGHTS :", "msg_token": "Fixed a typo and removed an unused import"} {"diff": " public class AceEditor implements DocDisplay , \n return widget_ . addFocusHandler ( handler ) ; \n } \n \n - public int getSuggestedScopeUpdateDelay ( ) \n - { \n - int nrow = getRowCount ( ) ; \n - return MathUtil . clamp ( nrow / NUMBER0 , NUMBER1 , NUMBER2 ) ; \n - } \n - \n public Scope getCurrentScope ( ) \n { \n return getSession ( ) . getMode ( ) . getCodeModel ( ) . getCurrentScope ( \n public interface DocDisplay extends HasValueChangeHandlers < Void > , \n void alignCursor ( Position position , double ratio ) ; \n void centerSelection ( ) ; \n \n - int getSuggestedScopeUpdateDelay ( ) ; \n Scope getCurrentScope ( ) ; \n Scope getCurrentChunk ( ) ; \n Scope getCurrentChunk ( Position position ) ;", "msg_token": "remove unused method"} {"diff": " public class BulkIndexer implements Startable { \n \n @ override \n public void stop ( ) { \n - if ( bulkRequest . numberOfActions ( ) > NUMBER0 ) { \n - executeBulk ( bulkRequest ) ; \n + try { \n + if ( bulkRequest . numberOfActions ( ) > NUMBER0 ) { \n + executeBulk ( bulkRequest ) ; \n + } \n + } finally { \n + progress . stop ( ) ; \n } \n \n - progress . stop ( ) ; \n - \n if ( refresh ) { \n client . prepareRefresh ( indexName ) . get ( ) ; \n }", "msg_token": "Fix thread cleanup on errors in BulkIndexer"} {"diff": " public class TerminalView { \n if ( myDockContainer == null ) { \n myDockContainer = new TerminalDockContainer ( toolWindow ) ; \n \n + Disposer . register ( myProject , myDockContainer ) ; \n DockManager . getInstance ( myProject ) . register ( myDockContainer ) ; \n } \n }", "msg_token": "Fix memory leak"} {"diff": " public final class OBJLoader implements AssetLoader { \n \n if ( hasNormals ) { \n normBuf = BufferUtils . createFloatBuffer ( vertIndexMap . size ( ) * NUMBER0 ) ; \n + m . setBuffer ( VertexBuffer . Type . Normal , NUMBER0 , normBuf ) ; \n } \n if ( hasTexCoord ) { \n tcBuf = BufferUtils . createFloatBuffer ( vertIndexMap . size ( ) * NUMBER1 ) ; \n + m . setBuffer ( VertexBuffer . Type . TexCoord , NUMBER1 , tcBuf ) ; \n } \n \n IndexBuffer indexBuf = null ; \n public final class OBJLoader implements AssetLoader { \n } \n \n m . setBuffer ( VertexBuffer . Type . Position , NUMBER0 , posBuf ) ; \n - m . setBuffer ( VertexBuffer . Type . Normal , NUMBER0 , normBuf ) ; \n - m . setBuffer ( VertexBuffer . Type . TexCoord , NUMBER1 , tcBuf ) ; \n - SINGLE \n + SINGLE \n \n m . setStatic ( ) ; \n m . updateBound ( ) ;", "msg_token": "Prevent exception when loading OBJ file without normals or texcoords"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n \n COMMENT \n COMMENT", "msg_token": "Restore the imports like on the original repo"} {"diff": " public class AppLinkTest extends InstrumentationTestCase { \n STRING0 , STRING1 , \n STRING2 , STRING3 , \n STRING4 , STRING5 , \n - STRING6 , STRING7 ) ; \n + STRING6 , STRING7 ) ; SINGLE \n Uri url = getURLForData ( html ) ; \n Task < AppLink > task = new WebViewAppLinkResolver ( getInstrumentation ( ) . getTargetContext ( ) ) \n . getAppLinkFromUrlInBackground ( url ) ; \n public class AppLinkTest extends InstrumentationTestCase { \n } \n \n public void testAppLinkURLNavigationFailure ( ) throws Exception { \n - String html = getHtmlWithMetaTags ( STRING6 , STRING8 ) ; \n + String html = getHtmlWithMetaTags ( STRING6 , STRING8 ) ; SINGLE \n Uri uri = getURLForData ( html ) ; \n \n Task < AppLinkNavigation . NavigationResult > task = AppLinkNavigation . navigateInBackground (", "msg_token": "Incorporate more feedback"} {"diff": " public class ESNodeTest { \n } \n \n @ test ( expected = IllegalStateException . class ) \n - @ ignore SINGLE \n + @ ignore SINGLE \n public void should_fail_on_corrupt_index ( ) throws Exception { \n File zip = new File ( Resources . getResource ( getClass ( ) , STRING0 ) . toURI ( ) ) ; \n ZipUtils . unzip ( zip , dataDir ) ;", "msg_token": "fix quality flaw todo message"} {"diff": " public class StandardJarScanFilter implements JarScanFilter { \n if ( attribute != null ) { \n StringTokenizer tokenizer = new StringTokenizer ( attribute , STRING0 ) ; \n while ( tokenizer . hasMoreElements ( ) ) { \n - set . add ( Matcher . tokenizePathAsArray ( tokenizer . nextToken ( ) ) ) ; \n + String token = tokenizer . nextToken ( ) . trim ( ) ; \n + set . add ( Matcher . tokenizePathAsArray ( token ) ) ; \n } \n } \n }", "msg_token": "Allow whitespace between elements which allows wrapping of lone lines in the config files"} {"diff": " public class ValidatorHelper { \n TypeMirror httpMessageConverterType = annotationHelper . typeElementFromQualifiedName ( HTTP_MESSAGE_CONVERTER ) . asType ( ) ; \n TypeMirror httpMessageConverterTypeErased = annotationHelper . getTypeUtils ( ) . erasure ( httpMessageConverterType ) ; \n List < DeclaredType > converters = annotationHelper . extractAnnotationClassArrayParameter ( element , annotationHelper . getTarget ( ) , STRING0 ) ; \n + \n + if ( converters == null ) { \n + valid . invalidate ( ) ; \n + return ; \n + } \n + \n for ( DeclaredType converterType : converters ) { \n TypeMirror erasedConverterType = annotationHelper . getTypeUtils ( ) . erasure ( converterType ) ; \n if ( annotationHelper . isSubtype ( erasedConverterType , httpMessageConverterTypeErased ) ) {", "msg_token": "Fixed NPE when converters are not defined in the Rest annotation"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class Rapids { \n - protected final String _str ; SINGLE \n - public int _x ; SINGLE \n + private final String _str ; SINGLE \n + private int _x ; SINGLE \n \n COMMENT \n COMMENT \n public class AstNumList extends AstParameter { \n while ( true ) { \n char c = e . skipWS ( ) ; \n if ( c == STRING0 ) break ; \n - if ( c == STRING1 ) e . _x ++ ; \n + if ( c == STRING1 ) e . xpeek ( STRING1 ) ; \n double base = e . number ( ) , cnt = NUMBER0 , stride = NUMBER0 ; \n c = e . skipWS ( ) ; \n if ( c == STRING2 ) {", "msg_token": "Make _str and _x in Rapids private"} {"diff": " import NAMESPACE ; \n public class LocationRequestStatistics { \n private static final String TAG = STRING0 ; \n \n - SINGLE \n + SINGLE \n public final HashMap < PackageProviderKey , PackageStatistics > statistics \n = new HashMap < PackageProviderKey , PackageStatistics > ( ) ;", "msg_token": "Fix typo in comment"} {"diff": " public class AddKotlinSignatureAnnotation extends BaseIntentionAction { \n \n @ override \n public void invoke ( @ notnull Project project , Editor editor , PsiFile file ) throws IncorrectOperationException { \n - PsiMethod method = ( PsiMethod ) findMethod ( file , editor . getCaretModel ( ) . getOffset ( ) ) . getOriginalElement ( ) ; \n - String signature = getDefaultSignature ( project , method ) ; \n + PsiMethod method = findMethod ( file , editor . getCaretModel ( ) . getOffset ( ) ) ; \n + PsiMethod original = ( PsiMethod ) method . getOriginalElement ( ) ; \n + String signature = getDefaultSignature ( project , original ) ; \n if ( signature == null ) { \n return ; \n } \n createFix ( method , signature ) . invoke ( project , editor , file ) ; \n KotlinSignatureInJavaMarkerProvider . refresh ( project ) ; \n + KotlinSignatureInJavaMarkerProvider . invokeEditSignature ( method , editor , null ) ; \n } \n \n @ notnull", "msg_token": "Invoking signature editor after creating"} {"diff": " import NAMESPACE ; \n \n @ suppresswarnings ( STRING0 ) \n public class SettingsFragment extends PreferenceFragment { \n + public static final String SETTINGS_PREFERENCES = STRING1 ; \n + \n private SharedPreferences mSettings ; \n private WPEditTextPreference mTaglineTextPreference ; \n \n public class SettingsFragment extends PreferenceFragment { \n Configuration conf = res . getConfiguration ( ) ; \n conf . locale = new Locale ( availableLocales [ position ] ) ; \n res . updateConfiguration ( conf , dm ) ; \n + \n + mSettings . edit ( ) . putString ( SETTINGS_PREFERENCES , availableLocales [ position ] ) . apply ( ) ; \n + \n Intent refresh = new Intent ( getActivity ( ) , getActivity ( ) . getClass ( ) ) ; \n startActivity ( refresh ) ; \n getActivity ( ) . finish ( ) ;", "msg_token": "Saving selected locale to preferences"} {"diff": " public class ProfilerEditingTarget implements EditingTarget , \n { \n globalDisplay_ . showMessage ( GlobalDisplay . MSG_ERROR , \n STRING0 , \n - STRING1 + selectedPath_ ) ; \n + STRING2 + selectedPath_ + STRING3 ) ; \n } \n } \n }", "msg_token": "improve error message from pr feedback"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Fix wrong import in JCache auto config"} {"diff": " import NAMESPACE ; \n public class WorldDevIndicatorMapper \n extends Mapper < ObjectId , BSONObject , Text , DoubleWritable > \n { \n - public void map ( final Text pKey , \n + public void map ( final String pKey , \n final BSONObject pValue , \n final Context pContext ) \n throws IOException , InterruptedException", "msg_token": "fixed key type"} {"diff": " public interface RemoteAuthenticationManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public GrantedAuthority [ ] attemptAuthentication ( String username , \n String password ) throws RemoteAuthenticationException ;", "msg_token": "Corrected a couple of Javadoc typos"} {"diff": " public abstract class BlobStoreGateway extends SharedStorageGateway { \n int fileIndex = Integer . parseInt ( name . substring ( name . indexOf ( STRING0 ) + NUMBER0 ) ) ; \n if ( fileIndex >= index ) { \n SINGLE \n + byte [ ] data = null ; \n try { \n - readMetaData ( metaDataBlobContainer . readBlobFully ( name ) ) ; \n + data = metaDataBlobContainer . readBlobFully ( name ) ; \n + readMetaData ( data ) ; \n index = fileIndex ; \n } catch ( IOException e ) { \n - logger . warn ( STRING1 + name + STRING2 , e ) ; \n + logger . warn ( STRING3 , e , name , data == null ? STRING4 : data . length ) ; \n } \n } \n }", "msg_token": "add more info to logging failure"} {"diff": " public class SessionsController extends Controller { \n session ( STRING0 , subject . getSession ( ) . toString ( ) ) ; \n return redirect ( STRING1 ) ; \n } catch ( AuthenticationException e ) { \n - log . warn ( STRING2 , e ) ; \n + log . warn ( STRING3 , r . username , e ) ; \n flash ( STRING4 , STRING5 ) ; \n return redirect ( STRING6 ) ; \n }", "msg_token": "log the supplied user name for authc failures"} {"diff": " public class ChainingPrincipalResolverTests { \n final PrincipalResolver resolver2 = mock ( PrincipalResolver . class ) ; \n when ( resolver2 . supports ( any ( Credential . class ) ) ) . thenReturn ( true ) ; \n when ( resolver2 . resolve ( any ( Credential . class ) , any ( Principal . class ) ) ) \n - . thenReturn ( principalFactory . createPrincipal ( STRING0 , Collections . < String , Object > singletonMap ( STRING1 , STRING2 ) ) ) ; \n + . thenReturn ( principalFactory . createPrincipal ( STRING3 , Collections . < String , Object > singletonMap ( STRING1 , STRING2 ) ) ) ; \n \n final ChainingPrincipalResolver resolver = new ChainingPrincipalResolver ( ) ; \n resolver . setChain ( Lists . newArrayList ( resolver1 , resolver2 ) ) ;", "msg_token": "updated and fixed unit tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports"} {"diff": " public class ProgressIndicatorUtils { \n ApplicationManager . getApplication ( ) . addApplicationListener ( new ApplicationAdapter ( ) { \n @ override \n public void beforeWriteActionStart ( Object action ) { \n - progress . cancel ( ) ; \n + if ( progress . isRunning ( ) ) { \n + progress . cancel ( ) ; \n + } \n } \n } , builder ) ; \n return progress ;", "msg_token": "writeAction should cancel progress only if it is running"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import"} {"diff": " public abstract class AbstractDatabase { \n private static final long serialVersionUID = NUMBER0 ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static class MigrationFailedException extends RuntimeException { \n \n COMMENT", "msg_token": "Add javadoc for MigrationFailedException"} {"diff": " public class IntroduceVariableTest extends LightCodeInsightTestCase { \n doTest ( new MockIntroduceVariableHandler ( STRING0 , true , true , false , STRING1 ) ) ; \n } \n \n - public void testAndAndSubExpression ( ) throws Exception { \n + public void testAndAndSubexpression ( ) throws Exception { \n doTest ( new MockIntroduceVariableHandler ( STRING2 , true , true , false , STRING3 ) ) ; \n }", "msg_token": "do not upper case"} {"diff": " public class ServerGroupDeploymentReplaceHandler implements OperationStepHandler \n \n @ override \n public ModelNode getModelDescription ( Locale locale ) { \n - return DeploymentDescription . getDeployDeploymentOperation ( locale ) ; \n + return DeploymentDescription . getReplaceDeploymentOperation ( locale ) ; \n } \n \n public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException {", "msg_token": "Fixed wrong description for replace deployment"} {"diff": " public class PolicyBlock \n { \n if ( protectionDomain == null ) \n { \n - if ( codesource == null ) \n - { \n - protectionDomain = new ProtectionDomain ( null , permissions ) ; \n - } \n - else \n - { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n protectionDomain = new ProtectionDomain ( codesource , permissions , Thread . currentThread ( ) . getContextClassLoader ( ) , principals ) ; \n - } \n + SINGLE \n } \n \n return protectionDomain ;", "msg_token": "committing some synchronization and comments to policy"} {"diff": " public class XmlPullStreamDecoder implements ResStreamDecoder { \n ser . event ( par ) ; \n } \n ser . flush ( ) ; \n - in . close ( ) ; \n - out . close ( ) ; \n } catch ( XmlPullParserException ex ) { \n throw new AndrolibException ( STRING0 , ex ) ; \n } catch ( IOException ex ) {", "msg_token": "do not close streams after decode"} {"diff": " public final class HttpServerExchange extends AbstractAttachable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public InetSocketAddress getDestinationAddress ( ) { \n if ( destinationAddress != null ) {", "msg_token": "Fix mischievous Javadoc comment in io undertow server HttpServerExchange getDestinationAddress"} {"diff": " public class MocoRequestHit { \n } \n \n public static UnexpectedRequestMatcher unexpected ( ) { \n - return new UnexpectedRequestMatcher ( ) { } ; \n + return new UnexpectedRequestMatcher ( ) ; \n } \n \n public static VerificationMode never ( ) {", "msg_token": "removed unused subclass definition for unexpected request matcher"} {"diff": " public class HighlightMethodUtil { \n \n \n static HighlightInfo checkConstructorCallMustBeFirstStatement ( PsiReferenceExpression expression ) { \n - String text = expression . getText ( ) ; \n PsiElement methodCall = expression . getParent ( ) ; \n if ( ! HighlightUtil . isSuperOrThisMethodCall ( methodCall ) ) return null ; \n PsiElement codeBlock = methodCall . getParent ( ) . getParent ( ) ; \n public class HighlightMethodUtil { \n prevSibling = prevSibling . getPrevSibling ( ) ; \n } \n } \n - String message = JavaErrorMessages . message ( STRING0 , text + STRING1 ) ; \n + String message = JavaErrorMessages . message ( STRING0 , expression . getText ( ) + STRING1 ) ; \n return HighlightInfo . createHighlightInfo ( HighlightInfoType . ERROR , expression . getParent ( ) , message ) ; \n }", "msg_token": "don t get psi text without a serious need"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fix the build"} {"diff": " public class SearchView extends LinearLayout implements CollapsibleActionView { \n } \n \n @ override \n - public void onDetachedFromWindow ( ) { \n + protected void onDetachedFromWindow ( ) { \n removeCallbacks ( mUpdateDrawableStateRunnable ) ; \n super . onDetachedFromWindow ( ) ; \n }", "msg_token": "Fix an unintentional change in method signature and avoid an API change"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class TestNepheleMiniCluster extends TestCase { \n + public class NepheleMiniClusterITCase extends TestCase { \n private HDFSProvider hdfs ; \n \n private NepheleMiniCluster nephele ;", "msg_token": "Renamed class in NepheleMiniClusterITCase"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n info . setAccessibilityFocused ( isAccessibilityFocused ( ) ) ; \n info . setSelected ( isSelected ( ) ) ; \n info . setLongClickable ( isLongClickable ( ) ) ; \n + info . setLiveRegion ( getAccessibilityLiveRegion ( ) ) ; \n \n SINGLE \n SINGLE", "msg_token": "Set live region property on AccessibilityNodeInfo"} {"diff": " public abstract class ClassDescriptorBase implements ClassDescriptor { \n @ notnull \n @ override \n public JetScope getMemberScope ( List < TypeProjection > typeArguments ) { \n - assert typeArguments . size ( ) == getTypeConstructor ( ) . getParameters ( ) . size ( ) ; \n + assert typeArguments . size ( ) == getTypeConstructor ( ) . getParameters ( ) . size ( ) : STRING0 \n + + getTypeConstructor ( ) . getParameters ( ) . size ( ) + STRING1 + typeArguments . size ( ) \n + + STRING2 + getTypeConstructor ( ) + STRING3 + getTypeConstructor ( ) . getParameters ( ) ; \n if ( typeArguments . isEmpty ( ) ) return getScopeForMemberLookup ( ) ; \n \n List < TypeParameterDescriptor > typeParameters = getTypeConstructor ( ) . getParameters ( ) ;", "msg_token": "add message for assert for clarify cause of exception"} {"diff": " public class GrailsScriptRunner { \n \n private PrintStream out = System . out ; \n private GrailsConsole console = GrailsConsole . getInstance ( ) ; \n - private boolean isInteractive = console . isInteractiveEnabled ( ) ; \n + private boolean isInteractive = System . getProperty ( GrailsConsole . ENABLE_INTERACTIVE ) != null ? Boolean . getBoolean ( GrailsConsole . ENABLE_INTERACTIVE ) : true ; \n private URLClassLoader classLoader ; \n \n private File scriptCacheDir ;", "msg_token": "calculate interactive system property independently of GrailsConsole"} {"diff": " public class TileGenericPipe extends TileEntity implements IPowerReceptor , ITank \n } \n packet . addStateForSerialization ( ( byte ) NUMBER0 , coreState ) ; \n packet . addStateForSerialization ( ( byte ) NUMBER1 , renderState ) ; \n + if ( pipe instanceof IClientState ) { \n + packet . addStateForSerialization ( ( byte ) NUMBER2 , ( IClientState ) pipe ) ; \n + } \n return packet . getPacket ( ) ; \n } \n \n public class TileGenericPipe extends TileEntity implements IPowerReceptor , ITank \n switch ( stateId ) { \n case NUMBER0 : return coreState ; \n case NUMBER1 : return renderState ; \n + case NUMBER2 : return ( IClientState ) pipe ; \n } \n throw new RuntimeException ( STRING0 + stateId + STRING1 ) ; \n }", "msg_token": "Allow pipes to sync data to the client"} {"diff": " class HeavyIdeaTestFixtureImpl extends BaseFixture implements HeavyIdeaTestFixtu \n \n Runnable runnable = new Runnable ( ) { \n public void run ( ) { \n - Disposer . dispose ( myProject ) ; \n + ApplicationManager . getApplication ( ) . runWriteAction ( new Runnable ( ) { \n + public void run ( ) { \n + Disposer . dispose ( myProject ) ; \n + } \n + } ) ; \n } \n } ; \n if ( ApplicationManager . getApplication ( ) . isDispatchThread ( ) ) {", "msg_token": "dispose project in a write action"} {"diff": " import NAMESPACE ; \n COMMENT \n public class SedaRemoveRouteThenAddAgainTest extends ContextTestSupport { \n \n - @ override \n - protected RouteBuilder createRouteBuilder ( ) throws Exception { \n - return new RouteBuilder ( ) { \n - \n - @ override \n - public void configure ( ) throws Exception { \n - from ( STRING0 ) . id ( STRING1 ) . to ( STRING2 ) ; \n - } \n - } ; \n - } \n - \n public void testRemoveRouteAndThenAddAgain ( ) throws Exception { \n MockEndpoint out = getMockEndpoint ( STRING2 ) ; \n out . expectedMessageCount ( NUMBER0 ) ; \n public class SedaRemoveRouteThenAddAgainTest extends ContextTestSupport { \n \n out . assertIsSatisfied ( ) ; \n } \n + \n + @ override \n + protected RouteBuilder createRouteBuilder ( ) throws Exception { \n + return new RouteBuilder ( ) { \n + @ override \n + public void configure ( ) throws Exception { \n + from ( STRING0 ) . routeId ( STRING1 ) . to ( STRING2 ) ; \n + } \n + } ; \n + } \n + \n }", "msg_token": "Polished the unit test"} {"diff": " \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n public class Async502Loop \n public Async502Loop ( ) \n { \n proxyServlet = new AsyncProxyServlet ( ) ; \n + SINGLE \n } \n \n private void startServer ( HttpServlet servlet ) throws Exception", "msg_token": "Adding license header"} {"diff": " public class DfaPsiUtil { \n \n @ notnull \n public static Nullness getElementNullability ( @ nullable PsiType resultType , @ nullable PsiModifierListOwner owner ) { \n - if ( owner == null ) { \n + if ( owner == null || resultType instanceof PsiPrimitiveType ) { \n return Nullness . UNKNOWN ; \n }", "msg_token": "values of primitive types have unknown nullability"} {"diff": " public class HttpSender { \n public static final int MANUAL_REQUEST_INITIATOR = NUMBER0 ; \n public static final int CHECK_FOR_UPDATES_INITIATOR = NUMBER1 ; \n public static final int BEAN_SHELL_INITIATOR = NUMBER2 ; \n + public static final int ACCESS_CONTROL_SCANNER_INITIATOR = NUMBER3 ; \n \n private static Logger log = Logger . getLogger ( HttpSender . class ) ;", "msg_token": "Added HttpSender initiator constant for Access Control Scanner"} {"diff": " public class XMLLanguage extends Language { \n protected static final CDATAOnAnyEncodedPolicy CDATA_ON_ANY_ENCODED_POLICY = new CDATAOnAnyEncodedPolicy ( ) ; \n protected static final EncodeEachSymbolPolicy ENCODE_EACH_SYMBOL_POLICY = new EncodeEachSymbolPolicy ( ) ; \n private final FormattingModelBuilder myFormattingModelBuilder ; \n + private XmlFindUsagesProvider myXmlFindUsagesProvider ; \n \n public XMLLanguage ( ) { \n this ( STRING0 , STRING1 ) ; \n public class XMLLanguage extends Language { \n return new XMLParserDefinition ( ) ; \n } \n \n + @ notnull \n public FindUsagesProvider getFindUsagesProvider ( ) { \n - return new XmlFindUsagesProvider ( ) ; \n + if ( myXmlFindUsagesProvider == null ) myXmlFindUsagesProvider = new XmlFindUsagesProvider ( ) ; \n + return myXmlFindUsagesProvider ; \n } \n \n @ notnull public SurroundDescriptor [ ] getSurroundDescriptors ( ) {", "msg_token": "caching find usages provider"} {"diff": " public abstract class MappedBufferWrapper { \n \n public final void unmap ( ) { \n long started = IOStatistics . DEBUG ? System . currentTimeMillis ( ) : NUMBER0 ; \n - if ( ! unmapMappedByteBuffer142b19 ( this ) ) { \n + MappedByteBuffer buffer = getIfCached ( ) ; \n + myBuffer = null ; \n + if ( ! unmapMappedByteBuffer142b19 ( buffer ) ) { \n LOG . error ( STRING0 + myFile ) ; \n } \n - myBuffer = null ; \n \n if ( IOStatistics . DEBUG ) { \n long finished = System . currentTimeMillis ( ) ; \n public abstract class MappedBufferWrapper { \n } \n \n \n - private static boolean unmapMappedByteBuffer142b19 ( MappedBufferWrapper holder ) { \n - return clean ( holder . getIfCached ( ) ) ; \n + private static boolean unmapMappedByteBuffer142b19 ( MappedByteBuffer buffer ) { \n + return clean ( buffer ) ; \n } \n \n private static boolean clean ( final MappedByteBuffer buffer ) {", "msg_token": "clear mapped buf before unmap"} {"diff": " public class InterceptingXaLogicalLog extends XaLogicalLog \n ( ( Command ) commandEntry . getXaCommand ( ) ) . accept ( first ) ; \n } \n } \n + else if ( entry instanceof LogEntry . Start ) \n + { \n + first . setStartEntry ( ( LogEntry . Start ) entry ) ; \n + } \n + else if ( entry instanceof LogEntry . Commit ) \n + { \n + first . setCommitEntry ( ( LogEntry . Commit ) entry ) ; \n + } \n } \n first . complete ( ) ; \n } \n import NAMESPACE ; \n public interface TransactionInterceptor extends CommandRecordVisitor \n { \n public void complete ( ) ; \n + \n + public void setStartEntry ( LogEntry . Start entry ) ; \n + \n + public void setCommitEntry ( LogEntry . Commit entry ) ; \n }", "msg_token": "Added methods in TransactionInterceptor to set the Commit and Start log entries"} {"diff": " public class ThreadsDefinition extends OutputDefinition < ThreadsDefinition > imple \n private TimeUnit timeUnit ; \n @ xmlattribute \n private Integer maxQueueSize ; \n - @ xmltransient ( ) \n + @ xmlattribute \n private String threadName ; \n @ xmlattribute \n private ThreadPoolRejectedPolicy rejectedPolicy ;", "msg_token": "threadsName should be attribute in threads DSL"} {"diff": " public class CommandLineRunner extends \n @ option ( name = STRING0 , \n usage = STRING1 \n + STRING2 \n - + STRING3 \n - + STRING4 \n - + STRING5 ) \n + + STRING6 \n + + STRING7 \n + + STRING8 ) \n private int summary_detail_level = NUMBER0 ; \n \n @ option ( name = STRING9 ,", "msg_token": "Remove reference to internal command line option from the external"} {"diff": " public final class CentralAuthenticationServiceImpl implements CentralAuthentica \n final Principal principal = authentication . getPrincipal ( ) ; \n \n final String principalId = determinePrincipalIdForRegisteredService ( principal , registeredService , serviceTicket ) ; \n - Map < String , Object > attributesToRelease = new HashMap < String , Object > ( ) ; \n + final Map < String , Object > attributesToRelease = new HashMap < String , Object > ( ) ; \n \n if ( ! registeredService . isIgnoreAttributes ( ) ) { \n for ( final String attribute : registeredService . getAllowedAttributes ( ) ) {", "msg_token": "CASImpl ignores authentication attributes when registered service is set to ignore attribute release policy of svc registry"} {"diff": " public class JavaGenerator implements CodeGenerator \n { \n final String enumName = formatClassName ( token . name ( ) ) ; \n final Encoding encoding = token . encoding ( ) ; \n - final String typePrefix = encoding . primitiveType ( ) . primitiveName ( ) ; \n \n if ( token . isConstantEncoding ( ) ) \n {", "msg_token": "Java Removed unused variable"} {"diff": " public class Request implements HttpServletRequest \n try \n { \n if ( _connection != null ) \n - _connection . _generator . sendError ( HttpStatus . BAD_REQUEST_400 , STRING0 + hostPort , null , \n - true ) ; \n + _connection . _generator . sendError ( HttpStatus . BAD_REQUEST_400 , STRING1 , null , true ) ; \n } \n catch ( IOException e1 ) \n { \n - throw new IllegalArgumentException ( STRING2 + hostPort , e1 ) ; \n + throw new RuntimeException ( e1 ) ; \n } \n } \n return _serverName ;", "msg_token": "removed XSS vulnerbility"} {"diff": " public final class HikariPool implements HikariPoolMBean , IBagStateListener \n connection . unclose ( ) ; \n \n final long now = System . currentTimeMillis ( ) ; \n - if ( ( now - connection . getCreationTime ( ) > maxLife ) || ( now - connection . getLastAccess ( ) > NUMBER0 && ! isConnectionAlive ( connection , timeout ) ) ) \n + if ( ( maxLife > NUMBER1 && now - connection . getCreationTime ( ) > maxLife ) || ( now - connection . getLastAccess ( ) > NUMBER0 && ! isConnectionAlive ( connection , timeout ) ) ) \n { \n closeConnection ( connection ) ; SINGLE \n timeout -= ( System . currentTimeMillis ( ) - start ) ;", "msg_token": "Restore max lifetime check to getConnection rather than only in the"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CommandExecutor { \n } \n \n protected void beforeCreateProcess ( ) throws SvnBindException { \n - EncodingEnvironmentUtil . setLocaleEnvironmentIfMac ( myCommandLine ) ; \n setupLocale ( ) ; \n ensureMessageFile ( ) ; \n ensureTargetsAdded ( ) ;", "msg_token": "Removed unnecessary explicit locale setting for svn command line client for mac see EnvironmentUtil getEnvironmentMap for details"} {"diff": " public class WorkerConf extends Utils { \n public final String USER_TEMP_RELATIVE_FOLDER = STRING0 ; \n \n private WorkerConf ( ) { \n - MASTER_HOSTNAME = getProperty ( STRING1 ) ; \n + MASTER_HOSTNAME = getProperty ( STRING1 , STRING2 ) ; \n MASTER_PORT = getIntProperty ( STRING3 , Constants . DEFAULT_MASTER_PORT ) ; \n \n PORT = getIntProperty ( STRING4 , Constants . DEFAULT_WORKER_PORT ) ;", "msg_token": "add master hostname default config in Workerconf"} {"diff": " public class FileTypeManagerImpl extends FileTypeManagerEx implements NamedJDOME \n private void registerStandardFileTypes ( FileTypeFactoryImpl factory ) { \n try { \n for ( final Field field : StdFileTypes . class . getDeclaredFields ( ) ) { \n - FileType fileType = ( FileType ) field . get ( null ) ; \n - registerFileTypeWithoutNotification ( fileType , parse ( factory . getDefaultExtensions ( fileType ) ) ) ; \n + if ( FileType . class . isAssignableFrom ( field . getType ( ) ) ) { \n + FileType fileType = ( FileType ) field . get ( null ) ; \n + registerFileTypeWithoutNotification ( fileType , parse ( factory . getDefaultExtensions ( fileType ) ) ) ; \n + } \n } \n } \n catch ( IllegalAccessException e ) {", "msg_token": "Fix coverage tests"} {"diff": " public class Measurement \n { \n return new Dijkstra ( _graph , vehicle , type ) ; \n } \n - } . setGraph ( g ) ; \n + } . setGraph ( g ) ; \n + SINGLE \n + SINGLE \n printTimeOfRouteQuery ( prepare2 , count / NUMBER0 , STRING0 ) ; \n \n System . gc ( ) ;", "msg_token": "added important comment"} {"diff": " public class MultipleEpochsIterator implements DataSetIterator { \n @ override \n public DataSet next ( int num ) { \n if ( ! iter . hasNext ( ) ) { \n + passes ++ ; \n log . info ( STRING0 + passes + STRING1 + batch ) ; \n if ( passes < numPasses ) { \n - passes ++ ; \n batch = NUMBER0 ; \n iter . reset ( ) ; \n }", "msg_token": "Fix epoch pass track"} {"diff": " public class DefaultJsonRender implements JsonRender { \n this . viewClass = viewClass ; \n } \n \n + @ override \n public Object getObject ( ) { \n return object ; \n } \n \n + @ override \n public ObjectWriter getObjectWriter ( ) { \n return objectWriter ; \n } \n \n + @ override \n public Class < ? > getViewClass ( ) { \n return viewClass ; \n }", "msg_token": "Added Missing Override"} {"diff": " public class OsmandSettings { \n new IntPreference ( STRING0 , ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED , true ) ; \n \n SINGLE \n - public final CommonPreference < Boolean > SHOW_VIEW_ANGLE = new BooleanPreference ( STRING1 , false , true , true ) ; \n + public final CommonPreference < Boolean > SHOW_VIEW_ANGLE = new BooleanPreference ( STRING1 , false , false , true ) ; \n { \n SHOW_VIEW_ANGLE . setModeDefaultValue ( ApplicationMode . BICYCLE , true ) ; \n SHOW_VIEW_ANGLE . setModeDefaultValue ( ApplicationMode . PEDESTRIAN , true ) ; \n public class OsmandSettings { \n } \n \n SINGLE \n - public final CommonPreference < Boolean > AUTO_ZOOM_MAP = new BooleanPreference ( STRING2 , false , true ) ; \n + public final CommonPreference < Boolean > AUTO_ZOOM_MAP = new BooleanPreference ( STRING2 , false , false ) ; \n { \n AUTO_ZOOM_MAP . setModeDefaultValue ( ApplicationMode . CAR , true ) ; \n }", "msg_token": "Fix default settings"} {"diff": " public class SimpleNonceManager implements SessionNonceManager { \n return false ; \n } \n \n - if ( nonce . timeStamp > earliestAccepted && nonce . timeStamp < now ) { \n + if ( nonce . timeStamp > earliestAccepted && nonce . timeStamp <= now ) { \n knownNonces . put ( nonce . nonce , nonce ) ; \n long timeTillExpiry = nonce . timeStamp - earliestAccepted ; \n nonce . executorKey = executor . executeAfter ( new KnownNonceCleaner ( nonce . nonce ) , timeTillExpiry ,", "msg_token": "Fix intermittent failure in digest tests"} {"diff": " class ProcessHyperlinkAction extends FBAndroidAction { \n toast . setOnClickWrapper ( new OnClickWrapper ( STRING0 , new SuperToast . OnClickListener ( ) { \n @ override \n public void onClick ( View view , Parcelable token ) { \n + Reader . getTextView ( ) . hideOutline ( ) ; \n Reader . tryOpenFootnote ( hyperlink . Id ) ; \n } \n } ) ) ;", "msg_token": "hide outline on clicking footnote s more"} {"diff": " package NAMESPACE ; \n COMMENT \n public class Animation { \n final TextureRegion [ ] keyFrames ; \n - final float frameDuration ; \n + public float frameDuration ; \n \n COMMENT \n COMMENT \n public class Animation { \n frameNumber = frameNumber % keyFrames . length ; \n } \n return keyFrames [ frameNumber ] ; \n - } \n + } \n }", "msg_token": "changed made Animation frameDuration public"} {"diff": " public class PluginManager { \n public synchronized static IdeaPluginDescriptor [ ] getPlugins ( ) { \n if ( ourPlugins == null ) { \n initializePlugins ( ) ; \n + getLogger ( ) . info ( STRING0 + StringUtil . join ( ourPlugins , new Function < IdeaPluginDescriptorImpl , String > ( ) { \n + public String fun ( IdeaPluginDescriptorImpl descriptor ) { \n + final String version = descriptor . getVersion ( ) ; \n + return descriptor . getName ( ) + ( version != null ? STRING1 + version + STRING2 : STRING3 ) ; \n + } \n + } , STRING4 ) ) ; \n ClassloaderUtil . clearJarURLCache ( ) ; \n } \n return ourPlugins ;", "msg_token": "log loaded plugins"} {"diff": " public class WhitespaceAroundCheck \n return ; \n } \n \n + SINGLE \n + if ( ( aAST . getType ( ) == TokenTypes . STAR ) \n + && ( aAST . getParent ( ) . getType ( ) == TokenTypes . DOT ) ) \n + { \n + return ; \n + } \n + \n final String [ ] lines = getLines ( ) ; \n final String line = lines [ aAST . getLineNo ( ) - NUMBER0 ] ; \n final int before = aAST . getColumnNo ( ) - NUMBER0 ; \n \n SINGLE \n SINGLE \n package NAMESPACE ; \n - \n + import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix bug with needing whitespace around using in import blah"} {"diff": " class Verifier \n final String line = mLines [ aLineNo - NUMBER0 ] ; \n final int before = aColNo - NUMBER1 ; \n if ( before >= NUMBER2 ) { \n - if ( Character . isWhitespace ( line . charAt ( before ) ) ) { \n + if ( Character . isWhitespace ( line . charAt ( before ) ) \n + && ! Utils . whitespaceBefore ( before , line ) ) \n + { \n log ( aLineNo , before , STRING0 ) ; \n } \n } \n class InputLeftCurlyOther \n x = NUMBER3 ; \n } while ( x == NUMBER3 ) ; \n } \n + \n + this . wait ( NUMBER4 \n + ) ; SINGLE \n } \n }", "msg_token": "Fixed bug with handling padding around s"} {"diff": " public class RxBookApp extends Application { \n private Graph mGraph ; \n \n @ inject \n - ApplicationInstrumentation mApplicationInstrumentation ; \n + ApplicationInstrumentation instrumentation ; \n \n @ override \n public void onCreate ( ) { \n public class RxBookApp extends Application { \n mGraph = Graph . Initializer . init ( this ) ; \n getGraph ( ) . inject ( this ) ; \n \n - mApplicationInstrumentation . init ( ) ; \n + instrumentation . init ( ) ; \n } \n \n @ nonnull", "msg_token": "Removed redundant prefix"} {"diff": " public class HostConfig \n canonicalDocBase = \n ( new File ( docBase . toString ( ) ) ) . getCanonicalPath ( ) ; \n \n - SINGLE \n + SINGLE \n SINGLE \n if ( canonicalDocBase . endsWith ( File . separator ) ) { \n docBase . append ( File . separator ) ;", "msg_token": "Fix comment typo"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n final class ServerCallImpl < ReqT , RespT > extends ServerCall < RespT > { \n \n @ override \n public void messageRead ( final InputStream message ) { \n + Throwable t = null ; \n try { \n if ( call . cancelled ) { \n return ; \n final class ServerCallImpl < ReqT , RespT > extends ServerCall < RespT > { \n messageReceived = true ; \n \n listener . onMessage ( call . method . parseRequest ( message ) ) ; \n + } catch ( Throwable e ) { \n + t = e ; \n } finally { \n try { \n message . close ( ) ; \n } catch ( IOException e ) { \n + if ( t != null ) { \n + SINGLE \n + Throwables . propagateIfPossible ( t ) ; \n + throw new RuntimeException ( t ) ; \n + } \n throw new RuntimeException ( e ) ; \n } \n }", "msg_token": "Don t lose server call exception when message fails to close"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add header to web UtilsTests"} {"diff": " public class ATNConfigSet implements Set < ATNConfig > { \n \n @ override \n public boolean equals ( Object o ) { \n + if ( o == this ) { \n + return true ; \n + } \n + else if ( ! ( o instanceof ATNConfigSet ) ) { \n + return false ; \n + } \n + \n SINGLE \n ATNConfigSet other = ( ATNConfigSet ) o ; \n boolean same = configs != null &&", "msg_token": "equals should check the argument type before attempting a cast"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IoTestUtil { \n } \n \n public static void deleteSubst ( @ notnull String substRoot ) throws InterruptedException , IOException { \n - runCommand ( new ProcessBuilder ( STRING0 , substRoot , STRING1 ) ) ; \n + runCommand ( new ProcessBuilder ( STRING0 , StringUtil . trimEnd ( substRoot , STRING2 ) , STRING1 ) ) ; \n } \n \n private static char getFirstFreeDriveLetter ( ) {", "msg_token": "leaking subst drives"} {"diff": " public abstract class MediaBrowserService extends Service { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public class Result < T > { \n private Object mDebug ;", "msg_token": "Removed broken link to non existent method"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add missing opening brace"} {"diff": " public class Files { \n COMMENT \n class Native { \n static { \n - System . loadLibrary ( STRING0 ) ; \n + System . loadLibrary ( STRING1 ) ; \n } \n \n static native void sync ( String path ) ;", "msg_token": "Restore native synchronization functionality by loading proper module"} {"diff": " public class GitHistoryUtils { \n AUTHOR_NAME , AUTHOR_EMAIL ) ; \n h . setStdoutSuppressed ( true ) ; \n h . addParameters ( parser . getPretty ( ) , STRING0 ) ; \n - h . addParameters ( LOG_ALL ) ; \n h . addParameters ( STRING1 , STRING2 ) ; \n h . addParameters ( STRING3 ) ; \n h . addParameters ( parameters ) ; \n public class GitLogProvider implements VcsLogProvider { \n return Collections . emptyList ( ) ; \n } \n \n - return GitHistoryUtils . readCommits ( myProject , root , userRegistry , Collections . < String > emptyList ( ) ) ; \n + return GitHistoryUtils . readCommits ( myProject , root , userRegistry , GitHistoryUtils . LOG_ALL ) ; \n } \n \n @ notnull", "msg_token": "git log don t query ALL when branches to query are specified"} {"diff": " public class TileEngine extends TileBuildCraft implements IPowerReceptor , IInven \n } \n \n public Engine newEngine ( int meta ) { \n - if ( meta == NUMBER0 ) \n - return new EngineWood ( this ) ; \n - else if ( meta == NUMBER1 ) \n + if ( meta == NUMBER1 ) \n return new EngineStone ( this ) ; \n else if ( meta == NUMBER2 ) \n return new EngineIron ( this ) ; \n else \n - return null ; \n + return new EngineWood ( this ) ; \n } \n \n @ override", "msg_token": "Fix potential Engine NPE"} {"diff": " public class DataStructures { \n bst . add ( unsorted [ next ] ) ; \n System . out . println ( bst . toString ( ) ) ; \n \n - SINGLE \n + SINGLE \n next = random . nextInt ( unsorted . length ) ; \n System . out . println ( STRING0 + unsorted [ next ] ) ; \n bst . remove ( unsorted [ next ] ) ; \n System . out . println ( bst . toString ( ) ) ; \n + \n + SINGLE \n + next = random . nextInt ( unsorted . length * NUMBER0 ) ; \n + System . out . println ( STRING0 + next ) ; \n + bst . remove ( next ) ; \n + System . out . println ( bst . toString ( ) ) ; \n } \n }", "msg_token": "Added a test for a remove on an absent node"} {"diff": " public class OsgiPackageScanClassResolver extends DefaultPackageScanClassResolve \n while ( paths != null && paths . hasMoreElements ( ) ) { \n URL path = paths . nextElement ( ) ; \n String pathString = path . getPath ( ) ; \n - urls . add ( pathString . substring ( pathString . indexOf ( packageName ) ) ) ; \n + String urlString = pathString . substring ( pathString . indexOf ( packageName ) ) ; \n + urls . add ( urlString ) ; \n + if ( LOG . isTraceEnabled ( ) ) { \n + LOG . trace ( STRING0 + urlString ) ; \n + } \n } \n } \n return urls ;", "msg_token": "Added some trace logs for debugging"} {"diff": " public abstract class BuildTargetPatternParser < T > { \n buildTargetPattern . startsWith ( CELL_PREFIX ) || \n buildTargetPattern . startsWith ( ALT_CELL_PREFIX ) , \n String . format ( \n - STRING0 , \n + STRING1 , \n buildTargetPattern ) ) ; \n \n if ( buildTargetPattern . equals ( WILDCARD_BUILD_RULE_SUFFIX ) ||", "msg_token": "Update the docs and error messages"} {"diff": " public class OSGiServiceUtil { \n } \n } \n \n - private static final _log = LogFactoryUtil . getLog ( OSGiServiceUtil . class ) ; \n + private static Log _log = LogFactoryUtil . getLog ( OSGiServiceUtil . class ) ; \n \n private static OSGiServiceUtil _instance = new OSGiServiceUtil ( ) ;", "msg_token": "Fix bad source formatting"} {"diff": " public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro \n Set < UsageInfo > result = new HashSet < UsageInfo > ( ) ; \n \n if ( info instanceof JetChangeInfo ) { \n - findAllMethodUsages ( ( JetChangeInfo ) info , result ) ; \n + findAllMethodUsages ( ( JetChangeInfo ) info , result ) ; \n } \n \n return result . toArray ( new UsageInfo [ result . size ( ) ] ) ; \n public class JetChangeSignatureUsageProcessor implements ChangeSignatureUsagePro \n for ( UsageInfo usage : javaUsageInfos ) { \n if ( usage instanceof OverriderUsageInfo && beforeMethodChange ) continue ; \n for ( ChangeSignatureUsageProcessor processor : processors ) { \n + if ( processor instanceof JetChangeSignatureUsageProcessor ) continue ; \n if ( usage instanceof OverriderUsageInfo ) { \n processor . processUsage ( javaChangeInfo , usage , true , javaUsageInfos ) ; \n }", "msg_token": "Do not invoke our usage processor recursively"} {"diff": " public class AndroidTranslatorUnitTest { \n \n @ before public void setUp ( ) throws Exception { \n classPool = new ClassPool ( true ) ; \n - androidTranslator = new AndroidTranslator ( null ) { \n + androidTranslator = new AndroidTranslator ( null , null ) { \n @ override protected int getIndex ( ) { \n return NUMBER0 ; \n }", "msg_token": "Fix broken build"} {"diff": " public abstract class JobScheduler { \n Object unwrapped ; \n if ( elapsed > TASK_LIMIT && ( unwrapped = info ( r ) ) != null ) { \n @ nonnls String msg = TASK_LIMIT + STRING0 + unwrapped + STRING1 + elapsed + STRING2 ; \n - LOG . warn ( msg ) ; \n + LOG . info ( msg ) ; \n } \n } \n }", "msg_token": "avoid LOG warn as it writes to console too"} {"diff": " public class PatternRuleHandler extends XMLRuleHandler { \n if ( defaultOff ) { \n rule . setDefaultOff ( ) ; \n } \n + if ( category == null ) { \n + throw new RuntimeException ( STRING0 + id + STRING1 ) ; \n + } \n if ( category . isDefaultOff ( ) && ! defaultOn ) { \n rule . setDefaultOff ( ) ; \n }", "msg_token": "throw better error message if a rule is outside a category"} {"diff": " public class SwipeDismissListViewTouchListener implements View . OnTouchListener { \n ViewHelper . setAlpha ( pendingDismiss . view , FLOAT0 ) ; \n ViewHelper . setTranslationX ( pendingDismiss . view , NUMBER0 ) ; \n lp = pendingDismiss . view . getLayoutParams ( ) ; \n - lp . height = originalHeight ; \n + lp . height = NUMBER0 ; \n pendingDismiss . view . setLayoutParams ( lp ) ; \n }", "msg_token": "Fixed height problems when using list items with different heights in combination with swipe to dismiss thanks to Tony Owen"} {"diff": " public class ActionToolbarImpl extends JPanel implements ActionToolbar { \n add ( mySecondaryActionsButton ) ; \n } \n \n - if ( Registry . is ( STRING0 ) && ( ActionPlaces . MAIN_TOOLBAR . equals ( myPlace ) || ActionPlaces . NAVIGATION_BAR . equals ( myPlace ) ) ) { \n + if ( ( ActionPlaces . MAIN_TOOLBAR . equals ( myPlace ) || ActionPlaces . NAVIGATION_BAR . equals ( myPlace ) ) ) { \n final AnAction searchEverywhereAction = ActionManager . getInstance ( ) . getAction ( STRING1 ) ; \n if ( searchEverywhereAction != null ) { \n try {", "msg_token": "remove unknown property"} {"diff": " class HttpChannelOverHttp extends HttpChannel implements HttpParser . RequestHandl \n public void abort ( ) \n { \n super . abort ( ) ; \n - _generator . setPersistent ( false ) ; \n + _httpConnection . _generator . setPersistent ( false ) ; \n } \n \n @ override \n public class HttpConnection extends AbstractConnection implements Runnable , Http \n _sendCallback . iterate ( ) ; \n } \n \n - super . abort ( ) ; \n private class SendCallback extends IteratingCallback \n { \n private ResponseInfo _info ; \n public class DecoderReaderTest \n } \n \n SINGLE \n - @ ignore \n @ test \n @ ignore ( STRING0 ) \n public void testTwoQuotes ( ) throws Exception", "msg_token": "fixed merge syntax errors"} {"diff": " public interface UndertowServletMessages { \n \n @ message ( id = NUMBER0 , value = STRING0 ) \n IllegalArgumentException invalidRequestResponseType ( ServletRequest request , ServletResponse response ) ; \n + \n + @ message ( id = NUMBER1 , value = STRING1 ) \n + IllegalStateException asyncRequestAlreadyReturnedToContainer ( ) ; \n } \n public class AsyncContextImpl implements AsyncContext { \n \n @ override \n public void setTimeout ( final long timeout ) { \n - this . timeout = timeout ; \n if ( initialRequestDone ) { \n - updateTimeout ( ) ; \n + throw UndertowServletMessages . MESSAGES . asyncRequestAlreadyReturnedToContainer ( ) ; \n } \n + this . timeout = timeout ; \n } \n \n @ override", "msg_token": "Throw IllegalStateException when calling setTimeout if request has already returned to container"} {"diff": " public class BlockScanner implements Iterable < BlockPos > { \n if ( pos . getY ( ) < box . yMax ) { \n pos = pos . up ( ) ; \n } else { \n - pos = new BlockPos ( pos . getX ( ) , box . yMax , pos . getZ ( ) + NUMBER0 ) ; \n + pos = new BlockPos ( pos . getX ( ) , box . yMin , pos . getZ ( ) + NUMBER0 ) ; \n } \n } \n \n public class PipeTransportPower extends PipeTransport implements IDebuggable { \n PacketPowerUpdate packet = new PacketPowerUpdate ( container ) ; \n \n packet . displayPower = displayPower ; \n + packet . displayFlow = displayFlow ; \n packet . overload = isOverloaded ( ) ; \n BuildCraftTransport . instance . sendToPlayers ( packet , container . getWorld ( ) , container . getPos ( ) , DefaultProps . PIPE_CONTENTS_RENDER_DIST ) ; \n }", "msg_token": "Fix a crash with power packets and fix architects not scanning properly"} {"diff": " public class WelcomeActivity extends Activity { \n @ override \n public void onClick ( DialogInterface dialog , int which ) { \n \n - Locale locale = new Locale ( getResources ( ) . getStringArray ( R . array . languages_values ) [ which ] ) ; \n - ImApp . setNewLocale ( WelcomeActivity . this . getBaseContext ( ) , locale ) ; \n - \n - Intent intent = getIntent ( ) ; \n - finish ( ) ; \n - startActivity ( intent ) ; \n + String [ ] locs = getResources ( ) . getStringArray ( R . array . languages_values ) ; \n \n + if ( which < locs . length ) \n + { \n + Locale locale = new Locale ( locs [ which ] ) ; \n + ImApp . setNewLocale ( WelcomeActivity . this . getBaseContext ( ) , locale ) ; \n + \n + Intent intent = getIntent ( ) ; \n + finish ( ) ; \n + startActivity ( intent ) ; \n + } \n } \n } ) ;", "msg_token": "setup menu based locale selection instead of system locales"} {"diff": " public class CompilerOptions implements Serializable , Cloneable { \n boolean acceptConstKeyword ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean inferConsts = true ; \n + \n + SINGLE \n + public void setInferConst ( boolean value ) { \n + inferConsts = value ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultPassConfig extends PassConfig { \n } \n \n checks . add ( checkVars ) ; \n - checks . add ( inferConsts ) ; \n + \n + if ( options . inferConsts ) { \n + checks . add ( inferConsts ) ; \n + } \n \n if ( options . computeFunctionSideEffects ) { \n checks . add ( checkRegExp ) ; \n public class DefaultPassConfig extends PassConfig { \n passes . add ( collapseProperties ) ; \n } \n \n - passes . add ( inferConsts ) ; \n + if ( options . inferConsts ) { \n + passes . add ( inferConsts ) ; \n + } \n \n SINGLE \n SINGLE", "msg_token": "Re allow the option to turn off the inferConst pass"} {"diff": " public abstract class AbstractTestResourceSet { \n SINGLE \n optional . add ( getMount ( ) + STRING0 ) ; \n optional . add ( STRING1 ) ; \n - SINGLE \n - optional . add ( STRING2 ) ; \n \n for ( String result : results ) { \n Assert . assertTrue ( result ,", "msg_token": "Remove the hack for running tests in parallel without failures"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n } \n } \n \n + SINGLE \n + mDefaultPermissionPolicy . grantDefaultPermissions ( userId ) ; \n + \n if ( needsWrite ) { \n mSettings . writeRuntimePermissionsForUserLPr ( userId , true ) ; \n }", "msg_token": "Ensure default permissions not dropped on data wipe"} {"diff": " public abstract class Structure { \n } \n else if ( nativeType == String . class ) { \n Pointer p = memory . getPointer ( offset ) ; \n - result = p != null ? new NativeString ( p , false ) . toString ( ) : null ; \n + result = p != null ? p . getString ( NUMBER0 , false ) : null ; \n } \n else if ( nativeType == WString . class ) { \n Pointer p = memory . getPointer ( offset ) ; \n - result = p != null ? new NativeString ( p , true ) . toString ( ) : null ; \n + result = p != null ? new WString ( p . getString ( NUMBER0 , true ) ) : null ; \n } \n else if ( Callback . class . isAssignableFrom ( nativeType ) ) { \n SINGLE", "msg_token": "Fix reading WString into a Structure"} {"diff": " public abstract class AbstractFuture < V > implements ListenableFuture < V > { \n COMMENT \n COMMENT \n private static final class Waiter { \n - static final Waiter TOMBSTONE ; \n - \n - static { \n - Waiter waiter = new Waiter ( ) ; \n - waiter . next = null ; \n - TOMBSTONE = waiter ; \n - } \n + static final Waiter TOMBSTONE = new Waiter ( false COMMENT ) ; \n \n @ nullable volatile Thread thread ; \n @ nullable volatile Waiter next ; \n \n + SINGLE \n + SINGLE \n + Waiter ( boolean ignored ) { } \n + \n Waiter ( ) { \n SINGLE \n ATOMIC_HELPER . putThread ( this , Thread . currentThread ( ) ) ;", "msg_token": "Fix a class loading ordering bug on android"} {"diff": " public abstract class Neurons { \n } \n ncats ++ ; \n } \n - final int n = data . length - ( _dinfo . _weights ? NUMBER0 : NUMBER1 ) - ( _dinfo . _offset ? NUMBER0 : NUMBER1 ) ; \n - for ( ; i < n ; ++ i ) { \n + for ( ; i < data . length ; ++ i ) { \n double d = data [ i ] ; \n if ( _dinfo . _normMul != null ) d = ( d - _dinfo . _normSub [ i - _dinfo . _cats ] ) * _dinfo . _normMul [ i - _dinfo . _cats ] ; \n nums [ i - _dinfo . _cats ] = d ; SINGLE", "msg_token": "Was not activating the last input neuron during cross validation"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class WebServer { \n private static final Logger LOG = Logger . getInstance ( WebServer . class ) ; \n \n public WebServer ( ) { \n - ExecutorService executor = Executors . newCachedThreadPool ( ) ; \n - channelFactory = new NioServerSocketChannelFactory ( executor , executor , NUMBER0 ) ; \n + final Executor pooledThreadExecutor = new Executor ( ) { \n + @ override \n + public void execute ( Runnable command ) { \n + ApplicationManager . getApplication ( ) . executeOnPooledThread ( command ) ; \n + } \n + } ; \n + channelFactory = new NioServerSocketChannelFactory ( pooledThreadExecutor , pooledThreadExecutor , NUMBER0 ) ; \n } \n \n public boolean isRunning ( ) {", "msg_token": "using application thread pool"} {"diff": " public class Settings { \n URL url = new URL ( urlAsString ) ; \n List < ResolveInfo > tempResolveInfos = new ArrayList < > ( ) ; \n if ( ! urlAsString . equals ( mContext . getString ( R . string . empty_bubble_page ) ) ) { \n - tempResolveInfos = Settings . get ( ) . getAppsThatHandleUrl ( urlAsString , packageManager ) ; \n + tempResolveInfos = getAppsThatHandleUrl ( urlAsString , packageManager ) ; \n } \n final List < ResolveInfo > resolveInfos = tempResolveInfos ;", "msg_token": "Corrected getDefaultApp usage"} {"diff": " public class GrailsClassUtils { \n } \n } \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static PropertyDescriptor getPropertyDescriptorForValue ( Object instance , Object propertyValue ) { \n + if ( instance == null || propertyValue == null ) \n + return null ; \n + \n + BeanWrapper wrapper = new BeanWrapperImpl ( instance ) ; \n + PropertyDescriptor [ ] descriptors = wrapper . getPropertyDescriptors ( ) ; \n + \n + for ( int i = NUMBER0 ; i < descriptors . length ; i ++ ) { \n + Object value = wrapper . getPropertyValue ( descriptors [ i ] . getName ( ) ) ; \n + if ( propertyValue . equals ( value ) ) \n + return descriptors [ i ] ; \n + } \n + return null ; \n + } \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added new method to retrieve a property descriptor by value"} {"diff": " public class StackedFragment extends Fragment { \n . setXLabels ( XController . LabelPosition . OUTSIDE ) \n . setYAxis ( false ) \n . setYLabels ( YController . LabelPosition . NONE ) \n - . setThresholdLine ( NUMBER0 , thresPaint ) ; \n + . setValueThreshold ( FLOAT0 , FLOAT0 , thresPaint ) ; \n \n int [ ] order = { NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , NUMBER7 , NUMBER8 , NUMBER9 , NUMBER10 , NUMBER11 , NUMBER12 } ; \n stackedChart . show ( new Animation ( )", "msg_token": "Adapted code to setThresholdValue implementation"} {"diff": " public abstract class FragmentManager { \n public static final int POP_BACK_STACK_INCLUSIVE = NUMBER0 < < NUMBER1 ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public abstract void popBackStack ( ) ;", "msg_token": "Remove a stale line in a JavaDoc"} {"diff": " public class SQLServer2005Dialect extends SQLServerDialect { \n \n @ override \n public int convertToFirstRowValue ( int zeroBasedFirstResult ) { \n - SINGLE \n + SINGLE \n return zeroBasedFirstResult + NUMBER0 ; \n }", "msg_token": "Made some comments more specific"} {"diff": " public class Constants { \n \n public static final String CUSTOM_ANALYSIS_SETTINGS_PREFIX = STRING0 ; \n \n + public static final int MAX_SHARD_MISSING_RETRIES = NUMBER0 ; \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR \n \n public static final String NODE_READ_ONLY_SETTING = STRING1 ; \n \n - public static final int MAX_SHARD_MISSING_RETRIES = NUMBER0 ; \n private static final int DEFAULT_SOFT_LIMIT = NUMBER1 ; \n \n \n public abstract class TransportBaseSQLAction < TRequest extends SQLBaseRequest , TR \n \n @ override \n public void onFailure ( Throwable e ) { \n - if ( attempt <= MAX_SHARD_MISSING_RETRIES && Exceptions . isShardFailure ( e ) ) { \n + if ( attempt <= Constants . MAX_SHARD_MISSING_RETRIES && Exceptions . isShardFailure ( e ) ) { \n attempt += NUMBER2 ; \n killAndRetry ( ) ; \n } else {", "msg_token": "moves MAX_SHARD_MISSING_RETRIES to Constants"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class RequestMappingIntegrationTests extends AbstractHttpHandlerIntegrati \n \n @ requestmapping ( STRING0 ) \n public Publisher < Long > stringStreamResponseBody ( ) { \n - COMMENT \n - TODO: replace the following line with : \n - return Flux . interval ( Duration . ofMillis ( NUMBER0 ) ) . take ( NUMBER1 ) ; \n - to make the build last shorter . Unfortunately , this hangs the build as of \n - FLOAT0 \n - COMMENT \n - return Flux . interval ( Duration . ofSeconds ( NUMBER2 ) ) . take ( NUMBER1 ) ; \n + return Flux . interval ( NUMBER0 ) . take ( NUMBER1 ) ; \n } \n \n @ requestmapping ( STRING1 )", "msg_token": "Speed up RequestMappingIntegrationTests"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BazelJavaSemantics implements JavaSemantics { \n boolean createExecutable = ruleContext . attributes ( ) . get ( STRING0 , Type . BOOLEAN ) ; \n String mainClass = getMainClassInternal ( ruleContext , javaCommon ) ; \n \n - if ( ! createExecutable && ! mainClass . isEmpty ( ) ) { \n + if ( ! createExecutable && ! isNullOrEmpty ( mainClass ) ) { \n ruleContext . ruleError ( STRING1 ) ; \n } \n \n - if ( createExecutable && mainClass . isEmpty ( ) ) { \n + if ( createExecutable && isNullOrEmpty ( mainClass ) ) { \n if ( javaCommon . getSrcsArtifacts ( ) . isEmpty ( ) ) { \n ruleContext . ruleError ( STRING2 ) ; \n }", "msg_token": "Fixes an NPE in BazelJavaSemantics checkMainClass that would occur when"} {"diff": " public class PeopleListFragment extends Fragment { \n mFilteredRecyclerView . setLogT ( AppLog . T . PEOPLE ) ; \n mFilteredRecyclerView . setSwipeToRefreshEnabled ( false ) ; \n \n + SINGLE \n + mFilteredRecyclerView . setToolbarBackgroundColor ( ContextCompat . getColor ( getActivity ( ) , R . color . blue_medium ) ) ; \n + mFilteredRecyclerView . setToolbarSpinnerTextColor ( ContextCompat . getColor ( getActivity ( ) , R . color . white ) ) ; \n + mFilteredRecyclerView . setToolbarSpinnerDrawable ( R . drawable . arrow ) ; \n + mFilteredRecyclerView . setToolbarLeftAndRightPadding ( \n + getResources ( ) . getDimensionPixelSize ( R . dimen . margin_filter_spinner ) , \n + getResources ( ) . getDimensionPixelSize ( R . dimen . margin_none ) ) ; \n + \n mFilteredRecyclerView . setFilterListener ( new FilteredRecyclerView . FilterListener ( ) { \n @ override \n public List < FilterCriteria > onLoadFilterCriteriaOptions ( boolean refresh ) {", "msg_token": "Re style filtered recycler view"} {"diff": " public final class ShellUtils { \n } \n } \n \n - COMMENT \n + COMMENT \n public String getOutput ( ) { \n return ( mOutput == null ) ? STRING0 : mOutput . toString ( ) ; \n } \n public class TachyonConfTest { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ test \n public void commonDefaultTest ( ) {", "msg_token": "Incorporated PR comments"} {"diff": " public class EncodingManager \n COMMENT \n public List < FlagEncoder > fetchEdgeEncoders ( ) \n { \n - if ( edgeEncoders . isEmpty ( ) ) \n - throw new IllegalStateException ( STRING0 ) ; \n - \n List < FlagEncoder > list = new ArrayList < FlagEncoder > ( ) ; \n list . addAll ( edgeEncoders ) ; \n return list ; \n public final class GraphHopperStorage implements GraphStorage , Graph \n SINGLE \n String flagEncodersStr = properties . get ( STRING1 ) ; \n \n - if ( encodingManager == null ) \n - throw new IllegalStateException ( STRING2 ) ; \n - \n if ( ! flagEncodersStr . isEmpty ( ) && ! encodingManager . toDetailsString ( ) . equalsIgnoreCase ( flagEncodersStr ) ) \n { \n throw new IllegalStateException ( STRING3 + encodingManager . toDetailsString ( )", "msg_token": "remove unnecessary ifs"} {"diff": " public class UsersResource extends RestResource { \n } \n \n Map < String , Object > result = Maps . newHashMap ( ) ; \n - result . put ( STRING0 , id . toStringMongod ( ) ) ; \n + result . put ( STRING1 , id . toStringMongod ( ) ) ; \n \n return Response . status ( Response . Status . CREATED ) . entity ( json ( result ) ) . build ( ) ; \n } \n public class UsersResource extends RestResource { \n \n private HashMap < String , Object > toMap ( User user , boolean includePermissions ) { \n final HashMap < String , Object > map = Maps . newHashMap ( ) ; \n + map . put ( STRING1 , user . getId ( ) . toString ( ) ) ; \n map . put ( STRING2 , user . getName ( ) ) ; \n map . put ( STRING3 , user . getFullName ( ) ) ; \n if ( includePermissions ) {", "msg_token": "include user id even though it s deprecated in the response"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public final class DebuggerSupportUtils { \n @ nullable \n - public static PsiElement getContextElement ( @ notnull VirtualFile virtualFile , int offset , @ notnull Project project ) { \n - return XDebuggerUtil . getInstance ( ) . findContextElement ( virtualFile , offset , project , true ) ; \n + public static XSourcePosition calcSourcePosition ( @ nullable PsiElement element ) { \n + if ( element != null ) { \n + PsiElement navigationElement = element . getNavigationElement ( ) ; \n + VirtualFile file = navigationElement . getContainingFile ( ) . getVirtualFile ( ) ; \n + if ( file != null ) { \n + return XDebuggerUtil . getInstance ( ) . createPositionByOffset ( file , navigationElement . getTextOffset ( ) ) ; \n + } \n + } \n + return null ; \n } \n }", "msg_token": "reduce usage of JSDebuggerSupportUtils"} {"diff": " public class IrcStack \n \n SINGLE \n SINGLE \n - final IrcConnection connection = \n - new IrcConnection ( this . provider , this . params , \n - new SynchronizedIRCApi ( irc ) ) ; \n - this . session . set ( connection ) ; \n - \n - SINGLE \n - this . provider \n - . setCurrentRegistrationState ( RegistrationState . REGISTERED ) ; \n + this . session . set ( new IrcConnection ( this . provider , this . params , \n + new SynchronizedIRCApi ( irc ) ) ) ; \n } \n catch ( IOException e ) \n { \n public class IrcStack \n throw e ; \n } \n } \n + \n + SINGLE \n + SINGLE \n + this . provider \n + . setCurrentRegistrationState ( RegistrationState . REGISTERED ) ; \n } \n \n COMMENT", "msg_token": "Move fireRegistration informing listeners outside of critical section"} {"diff": " public class JavaMode extends Mode { \n if ( suggestionsMap . containsKey ( key ) ) { \n suggestionsMap . get ( key ) . add ( val ) ; \n } else { \n - HashSet < String > al = new HashSet < > ( ) ; \n - al . add ( val ) ; \n - suggestionsMap . put ( key , al ) ; \n + HashSet < String > set = new HashSet < > ( ) ; \n + set . add ( val ) ; \n + suggestionsMap . put ( key , set ) ; \n } \n } \n } \n } \n + br . close ( ) ; \n } catch ( IOException e ) { \n Messages . loge ( STRING0 \n + suggestionsListFile . getAbsolutePath ( ) ) ;", "msg_token": "making sure to close the buffered reader"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ runwith ( Arquillian . class ) \n + SINGLE \n public class ExecutorInvokeAllServletTest { \n \n @ resource ( name = STRING0 ) \n public class ExecutorInvokeAllServletTest { \n COMMENT \n COMMENT \n COMMENT \n - @ deployment \n - @ targetscontainer ( STRING1 ) \n + SINGLE \n + SINGLE \n public static WebArchive createDeployment ( ) { \n WebArchive war = ShrinkWrap . create ( WebArchive . class ) . \n addClass ( MyCallableTask . class ) .", "msg_token": "Commenting Arquillian dependencies for now"} {"diff": " public class StorageService implements IEndpointStateChangeSubscriber , StorageSe \n operationMode = m ; \n if ( log ) \n logger_ . info ( m ) ; \n + else \n + logger_ . debug ( m ) ; \n } \n \n private void bootstrap ( Token token ) throws IOException", "msg_token": "include all mode setting messages at debug level"} {"diff": " public class JsonSchemaMappingsView implements Disposable { \n } \n \n private static String getRelativePath ( @ notnull Project project , @ notnull String text ) { \n + text = text . trim ( ) ; \n if ( project . isDefault ( ) ) return text ; \n if ( StringUtil . isEmptyOrSpaces ( text ) ) return text ; \n - final String relativePath = FileUtil . getRelativePath ( new File ( project . getBasePath ( ) ) , new File ( text ) ) ; \n + final File ioFile = new File ( text ) ; \n + if ( ! ioFile . isAbsolute ( ) ) return text ; \n + final String relativePath = FileUtil . getRelativePath ( new File ( project . getBasePath ( ) ) , ioFile ) ; \n return relativePath == null ? text : relativePath ; \n } \n }", "msg_token": "improve fields values validation in Add JSON Schema Mapping dialog"} {"diff": " public class AbstractQueueVisitor { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - public void interrupt ( ) { \n - setInterrupted ( ) ; \n - reallyAwaitTermination ( true ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Delete unused method in AbstractQueueVisitor"} {"diff": " public class EditorFragment extends EditorFragmentAbstract { \n AppLog . e ( T . EDITOR , e . getMessage ( ) ) ; \n } \n \n - SINGLE \n + SINGLE \n + mWebView . loadUrl ( STRING0 + STRING1 + STRING2 ) ; \n mWebView . loadUrl ( STRING3 + htmlFile + STRING2 ) ; \n } \n } ) ;", "msg_token": "Added title to editor example content"} {"diff": " public class TestAuthorizationCodeAccessTokenProvider { \n assertEquals ( STRING0 , params . getFirst ( STRING1 ) ) ; \n assertEquals ( STRING2 , params . getFirst ( STRING3 ) ) ; \n assertEquals ( STRING4 , params . getFirst ( STRING5 ) ) ; \n - assertEquals ( STRING6 , params . getFirst ( STRING7 ) ) ; \n + SINGLE \n + assertEquals ( null , params . getFirst ( STRING7 ) ) ; \n } \n \n }", "msg_token": "fix broken test making wrong assumption about state parameter"} {"diff": " public class TMXLoader { \n SINGLE \n \n public TMXTiledMap load ( final Context pContext , final InputStream pInputStream ) throws IOException , SAXException , ParserConfigurationException { \n - COMMENT \n final SAXParserFactory spf = SAXParserFactory . newInstance ( ) ; \n final SAXParser sp = spf . newSAXParser ( ) ; \n \n public class TMXLoader { \n final TMXParser tmxParser = new TMXParser ( ) ; \n xr . setContentHandler ( tmxParser ) ; \n \n - COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n xr . parse ( new InputSource ( new BufferedInputStream ( pInputStream ) ) ) ; \n \n return tmxParser . getTMXTiledMap ( ) ;", "msg_token": "Removed old comments"} {"diff": " public class LuceneDocCollector extends Collector implements CrateCollector , Row \n visitorEnabled = fieldsVisitor . required ( ) ; \n shardContext . acquireContext ( ) ; \n Query query = searchContext . query ( ) ; \n - if ( query == null ) { \n - query = new MatchAllDocsQuery ( ) ; \n - } \n + assert query != null : STRING0 ; \n \n SINGLE \n try {", "msg_token": "remove query null handling in LuceneDocCollector"} {"diff": " public class PrincipalGroupCallback { \n return callerPrincipalCallback . getSubject ( ) ; \n } \n if ( groupPrincipalCallback != null ) { \n - return callerPrincipalCallback . getSubject ( ) ; \n + return groupPrincipalCallback . getSubject ( ) ; \n } \n return null ; \n }", "msg_token": "Fix copy paste error spotted by FindBugs"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n - @ contextconfiguration \n public class SpringElasticsearchTest extends CamelSpringTestSupport { \n \n @ produce ( uri = STRING0 )", "msg_token": "Removed the obsolete ContextConfiguration annotation"} {"diff": " public class Scope implements StaticScope { \n COMMENT \n Scope ( Scope parent , Node rootNode ) { \n Preconditions . checkNotNull ( parent ) ; \n + Preconditions . checkNotNull ( rootNode ) ; \n Preconditions . checkArgument ( \n rootNode != parent . rootNode , \n STRING0 , rootNode , parent . rootNode ) ; \n public class Scope implements StaticScope { \n } \n \n protected Scope ( Node rootNode ) { \n + Preconditions . checkNotNull ( rootNode ) ; \n this . parent = null ; \n this . rootNode = rootNode ; \n this . depth = NUMBER0 ; \n public class Scope implements StaticScope { \n return isBlockScope ( ) && parent != null && parent . getRootNode ( ) . isFunction ( ) ; \n } \n \n + public boolean isFunctionScope ( ) { \n + return getRootNode ( ) . isFunction ( ) ; \n + } \n + \n public Scope getClosestHoistScope ( ) { \n Scope current = this ; \n while ( current != null ) {", "msg_token": "Added an isFunctionScope and scopeRoot null check to Scope java"} {"diff": " public class HlsSampleSource implements SampleSource , Loader . Callback { \n if ( ! currentLoadableExceptionFatal ) { \n clearCurrentLoadable ( ) ; \n } \n - if ( enabledTrackCount > NUMBER0 ) { \n + if ( enabledTrackCount > NUMBER0 || ! prepared ) { \n maybeStartLoading ( ) ; \n - } else { \n - clearState ( ) ; \n - loadControl . trimAllocator ( ) ; \n } \n }", "msg_token": "Allow multiple chunk loads to prepare a HLS stream"} {"diff": " public class LeveledManifest \n logger . debug ( STRING0 , old ) ; \n } \n } \n - logger . warn ( STRING1 , cfs . columnFamily ) ; \n + logger . warn ( STRING1 , cfs . getColumnFamilyName ( ) ) ; \n } \n }", "msg_token": "Fix broken build"} {"diff": " final class SimpleConfig implements Config , MergeableValue , Serializable { \n l . add ( n ) ; \n } else { \n throw new ConfigException . WrongType ( v . origin ( ) , path , \n - STRING0 + unit . name ( ) , \n + STRING1 , \n v . valueType ( ) . name ( ) ) ; \n } \n }", "msg_token": "Fix exception text for bad duration value"} {"diff": " public class Post implements Serializable { \n private String password ; \n private String postFormat ; \n private String slug ; \n + private String postThumbnail ; \n private boolean localDraft ; \n private boolean uploaded ; \n private boolean mIsUploading ; \n public class Post implements Serializable { \n public boolean isPublishable ( ) { \n return ! ( getContent ( ) . isEmpty ( ) && getPostExcerpt ( ) . isEmpty ( ) && getTitle ( ) . isEmpty ( ) ) ; \n } \n + \n + public void setPostThumbnail ( String thumbnail ) { \n + this . postThumbnail = StringUtils . notNullStr ( thumbnail ) ; \n + } \n + public String getPostThumbnail ( ) { \n + return StringUtils . notNullStr ( postThumbnail ) ; \n + } \n + public boolean hasPostThumbnail ( ) { \n + return ! TextUtils . isEmpty ( postThumbnail ) ; \n + } \n }", "msg_token": "Added postThumbnail to Post model"} {"diff": " public final class K2JSCompiler implements TranslatingCompiler { \n args . add ( STRING0 ) ; \n args . add ( libLocationAndTarget . second ) ; \n } \n + \n + SINGLE \n + args . add ( STRING1 ) ; \n } \n \n private static void addPathToSourcesDir ( @ notnull VirtualFile [ ] sourceFiles , @ notnull ArrayList < String > args ) {", "msg_token": "generate sourcemap in IDEA every time"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class ViewOverlayPreJellybean extends FrameLayout { \n } \n \n @ override \n + public boolean dispatchTouchEvent ( MotionEvent ev ) { \n + SINGLE \n + return false ; \n + } \n + \n + @ override \n public void removeView ( View view ) { \n super . removeView ( view ) ; \n ViewUtils . setLayoutParamsSilently ( view , ( ViewGroup . LayoutParams )", "msg_token": "disable touch handling for backported overlay"} {"diff": " public class GroovyAnnotator extends GroovyElementVisitor implements Annotator { \n private void highlightNamedArgs ( GrNamedArgument [ ] namedArguments ) { \n for ( GrNamedArgument namedArgument : namedArguments ) { \n final GrArgumentLabel label = namedArgument . getLabel ( ) ; \n - if ( label != null && label . getExpression ( ) == null ) { \n + if ( label != null && label . getExpression ( ) == null && label . getNameElement ( ) . getNode ( ) . getElementType ( ) != GroovyTokenTypes . mSTAR ) { \n myHolder . createInfoAnnotation ( label , null ) . setTextAttributes ( DefaultHighlighter . MAP_KEY ) ; \n } \n }", "msg_token": "don t highlight in named argument label as string"} {"diff": " public class PyResolveUtil { \n COMMENT \n @ nullable \n public static PsiElement treeCrawlUp ( PsiScopeProcessor processor , boolean fromunder , PsiElement elt , PsiElement roof ) { \n - if ( elt == null ) return null ; SINGLE \n + if ( elt == null || ! elt . isValid ( ) ) return null ; SINGLE \n PsiElement seeker = elt ; \n PsiElement cap = PyUtil . getConcealingParent ( elt ) ; \n final boolean is_outside_param_list = PsiTreeUtil . getParentOfType ( elt , PyParameterList . class ) == null ; \n do { \n ProgressManager . checkCanceled ( ) ; \n - if ( ! seeker . isValid ( ) ) return null ; \n if ( fromunder ) { \n fromunder = false ; SINGLE \n seeker = getPrevNodeOf ( PsiTreeUtil . getDeepestLast ( seeker ) , processor ) ;", "msg_token": "don t check isValid on each element"} {"diff": " public abstract class MRTask < T extends MRTask < T > > extends DTask < T > implements Fo \n COMMENT \n @ override public final void dinvoke ( H2ONode sender ) { \n setupLocal0 ( ) ; SINGLE \n - try { \n - compute2 ( ) ; SINGLE \n - } catch ( Throwable ex ) { setException ( ex ) ; throw ex ; } \n - SINGLE \n + H2O . submitTask ( this ) ; \n } \n \n SINGLE", "msg_token": "Changed MRTask s dinvoke to call submitTask to get standard fj error handling"} {"diff": " public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void clearFocus ( ) { \n if ( DBG ) {", "msg_token": "Update the comment for View clearFocus"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove cyclic package dependency in xmlsecurity component"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class FileTreeWatcherTest { \n \n Thread . sleep ( NUMBER0 ) ; \n \n - verify ( notificationHandler ) . started ( eq ( testDirectory ) ) ; \n + verify ( notificationHandler , timeout ( NUMBER1 ) ) . started ( eq ( testDirectory ) ) ; \n } \n \n @ test \n public class FileTreeWatcherTest { \n fileWatcherTestTree . createFile ( STRING0 ) ; \n Thread . sleep ( NUMBER2 ) ; \n \n - verify ( notificationHandler ) . errorOccurred ( eq ( testDirectory ) , eq ( error ) ) ; \n + verify ( notificationHandler , timeout ( NUMBER1 ) ) . errorOccurred ( eq ( testDirectory ) , eq ( error ) ) ; \n } \n \n private FileWatcherNotificationHandler aNotificationHandler ( ) { \n return mock ( FileWatcherNotificationHandler . class ) ; \n } \n - } \n + }", "msg_token": "Add timeout on verify"} {"diff": " public class Nio2Endpoint extends AbstractJsseEndpoint < Nio2Channel > { \n COMMENT \n COMMENT \n protected boolean setSocketOptions ( AsynchronousSocketChannel socket ) { \n - SINGLE \n try { \n socketProperties . setProperties ( socket ) ; \n Nio2Channel channel = nioChannels . pop ( ) ;", "msg_token": "Remove redundant comment trigger another CI run"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class WelcomeScreenHider implements OnWelcomeScreenPageChangeListener { \n if ( ! enabled ) \n return ; \n \n - if ( position == mLastPage - NUMBER0 ) { \n + if ( Build . VERSION . SDK_INT >= NUMBER1 && position == mLastPage - NUMBER0 ) { \n mView . setAlpha ( NUMBER0 - positionOffset ) ; \n }", "msg_token": "Add API level check"} {"diff": " public class ShellWidget extends Composite implements ShellDisplay , \n RootPanel . get ( ) . remove ( widthChecker ) ; \n \n SINGLE \n - int pointsPerCharacter = labelWidth / text . length ( ) ; \n + float pointsPerCharacter = ( float ) labelWidth / ( float ) text . length ( ) ; \n \n SINGLE \n int clientWidth = getElement ( ) . getClientWidth ( ) ; \n public class ShellWidget extends Composite implements ShellDisplay , \n \n SINGLE \n final int RIGHT_CHARACTER_PAD = NUMBER0 ; \n - int width = ( clientWidth / pointsPerCharacter ) - RIGHT_CHARACTER_PAD ; \n - \n + int width = Math . round ( ( float ) clientWidth / pointsPerCharacter ) - \n + RIGHT_CHARACTER_PAD ; \n + \n SINGLE \n final int MINIMUM_WIDTH = NUMBER1 ; \n return Math . max ( width , MINIMUM_WIDTH ) ;", "msg_token": "avoid integer truncation while computing console width"} {"diff": " public class IQOwnerHandler { \n field = completedForm . getField ( STRING0 ) ; \n if ( field != null ) { \n values = field . getValues ( ) ; \n - room . setName ( ( values . hasNext ( ) ? ( String ) values . next ( ) : STRING1 ) ) ; \n + room . setNaturalLanguageName ( ( values . hasNext ( ) ? ( String ) values . next ( ) : STRING1 ) ) ; \n } \n \n field = completedForm . getField ( STRING2 ) ; \n public class IQOwnerHandler { \n try { \n FormField field = configurationForm . getField ( STRING0 ) ; \n field . clearValues ( ) ; \n - field . addValue ( room . getName ( ) ) ; \n + field . addValue ( room . getNaturalLanguageName ( ) ) ; \n \n field = configurationForm . getField ( STRING2 ) ; \n field . clearValues ( ) ;", "msg_token": "Modified configuration form to edit the property naturalLanguageName instead of Name"} {"diff": " import NAMESPACE ; \n public class PythonCompletionTest extends LightCodeInsightTestCase { \n \n private void doTest ( ) throws Exception { \n - final String testName = getTestName ( false ) ; \n + final String testName = getTestName ( true ) ; \n configureByFile ( testName + STRING0 ) ; \n new CodeCompletionHandler ( ) . invoke ( getProject ( ) , getEditor ( ) , getFile ( ) ) ; \n checkResultByFile ( testName + STRING1 ) ;", "msg_token": "Fixed test file case issues"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - abstract class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemClickListener , View . OnCreateContextMenuListener { \n + public abstract class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemClickListener , View . OnCreateContextMenuListener { \n final ZLTree < ? > Root ; \n private final ListView myParent ; \n private ZLTree < ? > [ ] myItems ; \n private final HashSet < ZLTree < ? > > myOpenItems = new HashSet < ZLTree < ? > > ( ) ; \n - protected ZLTree < ? > mySelectedTree ; \n \n protected ZLTreeAdapter ( ListView parent , ZLTree < ? > root ) { \n myParent = parent ; \n abstract class ZLTreeAdapter extends BaseAdapter implements AdapterView . OnItemCl \n } \n \n public final void selectItem ( ZLTree < ? > tree ) { \n - mySelectedTree = tree ; \n if ( tree == null ) { \n return ; \n }", "msg_token": "removed unused field"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class ImmutableCollection < E > \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - abstract static class Builder < E > { \n + @ beta \n + public abstract static class Builder < E > { \n + \n + Builder ( ) { \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Make ImmutableCollection Builder public"} {"diff": " public class NetworkClassLoader extends ClassLoader { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n + SINGLE \n String filename = cl . getName ( ) . replace ( STRING0 , STRING1 ) + STRING2 ; \n InputStream in = null ; \n logger . debug ( STRING3 + cl . getCanonicalName ( ) ) ;", "msg_token": "Added url explaining the problem in deep"} {"diff": " public class CustomMaven3ArtifactResolver \n } \n } \n \n - private RepositorySystemSession getSession ( ArtifactRepository localRepository ) { \n - RepositorySystemSession session = \n - LegacyLocalRepositoryManager . overlay ( localRepository , legacySupport . getRepositorySession ( ) , repoSystem ) ; \n + public static RepositorySystemSession createSession ( ArtifactRepository localRepository , RepositorySystemSession session , RepositorySystem repoSystem ) { \n + RepositorySystemSession res = \n + LegacyLocalRepositoryManager . overlay ( localRepository , session , repoSystem ) ; \n \n - return new FilterRepositorySystemSession ( session ) { \n + return new FilterRepositorySystemSession ( res ) { \n @ override \n public LocalRepository getLocalRepository ( ) { \n return getLocalRepositoryManager ( ) . getRepository ( ) ; SINGLE \n public class CustomMaven3ArtifactResolver \n } ; \n } \n \n + private RepositorySystemSession getSession ( ArtifactRepository localRepository ) { \n + return createSession ( localRepository , legacySupport . getRepositorySession ( ) , repoSystem ) ; \n + } \n + \n private void injectSession1 ( RepositoryRequest request , MavenSession session ) \n { \n if ( session != null )", "msg_token": "Fix compilation error"} {"diff": " import NAMESPACE ; \n public interface GL4 extends GL3 { \n public static final int GL_TESS_CONTROL_SHADER = NUMBER0 ; \n public static final int GL_TESS_EVALUATION_SHADER = NUMBER1 ; \n + public static final int GL_PATCHES = NUMBER2 ; \n }", "msg_token": "Added GL_PATCHES as new constant"} {"diff": " public class TerrainFractalGridTest extends SimpleApplication { \n this . mat_terrain . setTexture ( STRING0 , rock ) ; \n this . mat_terrain . setVector3 ( STRING1 , new Vector3f ( NUMBER0 , NUMBER1 , this . rockScale ) ) ; \n \n - SINGLE \n this . mat_terrain . setTexture ( STRING2 , rock ) ; \n this . mat_terrain . setVector3 ( STRING3 , new Vector3f ( NUMBER0 , NUMBER1 , this . rockScale ) ) ; \n \n public class TerrainGridTest extends SimpleApplication { \n BulletAppState bulletAppState = new BulletAppState ( ) ; \n stateManager . attach ( bulletAppState ) ; \n \n - \n this . getCamera ( ) . setLocation ( new Vector3f ( NUMBER2 , NUMBER3 , NUMBER2 ) ) ; \n \n this . viewPort . setBackgroundColor ( new ColorRGBA ( FLOAT0 , FLOAT1 , FLOAT2 , FLOAT2 ) ) ;", "msg_token": "fixed white terrain effect according to the forum"} {"diff": " public class MongoOptions { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public boolean slaveOk ;", "msg_token": "Fixed javadoc format for see"} {"diff": " public class GsmAlphabet { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static byte [ ] stringToGsm7BitPackedWithHeader ( String data , byte [ ] header ) \n + throws EncodeException { \n + return stringToGsm7BitPackedWithHeader ( data , header , NUMBER0 , NUMBER0 ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add wrapper method to GsmAlphabet for API compatibility"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "add copyright to new tooling classes"} {"diff": " public class ImportsResolver { \n } \n \n private void processImports ( boolean onlyClasses ) { \n - TemporaryBindingTrace temporaryTrace = TemporaryBindingTrace . create ( trace ) ; SINGLE \n for ( JetFile file : context . getNamespaceDescriptors ( ) . keySet ( ) ) { \n JetScope rootScope = context . getRootScope ( ) ; \n WritableScope namespaceScope = context . getNamespaceScopes ( ) . get ( file ) ; \n public class ImportsResolver { \n Collection < JetImportDirective > defaultImportDirectives = Lists . newArrayList ( ) ; \n configuration . addDefaultImports ( defaultImportDirectives ) ; \n for ( JetImportDirective defaultImportDirective : defaultImportDirectives ) { \n + TemporaryBindingTrace temporaryTrace = TemporaryBindingTrace . create ( trace ) ; SINGLE \n qualifiedExpressionResolver . processImportReference ( defaultImportDirective , rootScope , namespaceScope , delayedImporter , temporaryTrace , onlyClasses ) ; \n } \n \n public class ImportsResolver { \n trace . report ( USELESS_SIMPLE_IMPORT . on ( importedReference ) ) ; \n } \n } \n - } \n + }", "msg_token": "bring variable into narrower scope"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ResolvableType implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - private Object readResolve ( ) throws ObjectStreamException { \n + private Object readResolve ( ) { \n return ( this . type == null ? NONE : this ) ; \n }", "msg_token": "Removed superfluous ObjectStreamException declaration"} {"diff": " final class BasicOperationService implements InternalOperationService { \n Data data = packet . getData ( ) ; \n Response response = ( Response ) nodeEngine . toObject ( data ) ; \n \n - if ( response instanceof NormalResponse ) { \n - notifyRemoteCall ( ( NormalResponse ) response ) ; \n + if ( response instanceof NormalResponse || response instanceof CallTimeoutResponse ) { \n + notifyRemoteCall ( response ) ; \n } else if ( response instanceof BackupResponse ) { \n notifyBackupCall ( response . getCallId ( ) ) ; \n } else { \n final class BasicOperationService implements InternalOperationService { \n } \n \n SINGLE \n - private void notifyRemoteCall ( NormalResponse response ) { \n + private void notifyRemoteCall ( Response response ) { \n BasicInvocation invocation = invocations . get ( response . getCallId ( ) ) ; \n if ( invocation == null ) { \n if ( nodeEngine . isActive ( ) ) {", "msg_token": "Fixed CallTimeoutResponse handling"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class XmlEmmetParser extends EmmetParser { \n super ( tokens , callback , generator ) ; \n PsiElement context = callback . getContext ( ) ; \n XmlTag parentTag = PsiTreeUtil . getParentOfType ( context , XmlTag . class ) ; \n - if ( surroundWithTemplate && parentTag != null ) { \n + if ( surroundWithTemplate && parentTag != null && context . getNode ( ) . getElementType ( ) == XmlTokenType . XML_START_TAG_START ) { \n parentTag = PsiTreeUtil . getParentOfType ( parentTag , XmlTag . class ) ; \n } \n if ( parentTag != null ) {", "msg_token": "Fix emmet wrapping"} {"diff": " public class Image \n COMMENT \n COMMENT \n COMMENT \n - public int termLength ( ) \n + public int termBufferLength ( ) \n { \n return logBuffers . termLength ( ) ; \n } \n public class Publication implements AutoCloseable \n COMMENT \n COMMENT \n COMMENT \n - public int termLength ( ) \n + public int termBufferLength ( ) \n { \n return logBuffers . termLength ( ) ; \n }", "msg_token": "Rename termLength to termBufferLength in Image and Publication"} {"diff": " final class MultiServerCluster extends BaseCluster { \n \n @ override \n public void close ( ) { \n - if ( ! isClosed ( ) ) { \n - synchronized ( this ) { \n + synchronized ( this ) { \n + if ( ! isClosed ( ) ) { \n for ( final ServerTuple serverTuple : addressToServerTupleMap . values ( ) ) { \n serverTuple . server . close ( ) ; \n } \n final class MultiServerCluster extends BaseCluster { \n } \n \n private void onChange ( final ChangeEvent < ServerDescription > event ) { \n - if ( isClosed ( ) ) { \n - return ; \n - } \n - \n boolean shouldUpdateDescription = true ; \n synchronized ( this ) { \n + if ( isClosed ( ) ) { \n + return ; \n + } \n + \n ServerDescription newDescription = event . getNewValue ( ) ; \n \n if ( LOGGER . isTraceEnabled ( ) ) {", "msg_token": "Fix race condition in MultiServerCluster checking whether the instance is closed"} {"diff": " public final class NumberConversions { \n return floor == num ? floor : floor - ( int ) ( Double . doubleToRawLongBits ( num ) > > > NUMBER0 ) ; \n } \n \n + public static int ceil ( final double num ) { \n + final int floor = ( int ) num ; \n + return floor == num ? floor : floor + ( int ) ( ~ Double . doubleToRawLongBits ( num ) > > > NUMBER0 ) ; \n + } \n + \n public static int round ( double num ) { \n return floor ( num + FLOAT0 ) ; \n }", "msg_token": "Adding ceil to NumberConversions"} {"diff": " public class RefParameter extends AbstractParameter implements Parameter { \n if ( ref . startsWith ( STRING0 ) ) \n return ref ; \n else \n - return STRING1 + ref ; \n + return STRING2 + ref ; \n } \n public void set$ref ( String ref ) { \n if ( ref . indexOf ( STRING2 ) == NUMBER0 )", "msg_token": "added logic for external refs"} {"diff": " public class MethodActionTransformer implements GrailsArtefactClassInjector { \n final MethodCallExpression validateMethodCallExpression = new MethodCallExpression ( \n new VariableExpression ( paramName ) , STRING0 , EMPTY_TUPLE ) ; \n MethodNode validateMethod = \n - classNode . getMethod ( STRING0 , new Parameter [ NUMBER0 ] ) ; \n + paramTypeClassNode . getMethod ( STRING0 , new Parameter [ NUMBER0 ] ) ; \n if ( validateMethod != null ) { \n validateMethodCallExpression . setMethodTarget ( validateMethod ) ; \n }", "msg_token": "get the validate method from the command object type not the controller type"} {"diff": " public class NotificationsDetailActivity extends ActionBarActivity implements \n return ; \n } \n \n - SINGLE \n - if ( ! getIntent ( ) . getBooleanExtra ( NotificationsListFragment . NOTE_INSTANT_REPLY_EXTRA , false ) ) { \n - getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_HIDDEN ) ; \n - } \n - \n if ( SimperiumUtils . getNotesBucket ( ) != null ) { \n try { \n Note note = SimperiumUtils . getNotesBucket ( ) . get ( noteId ) ; \n public class NotificationsDetailActivity extends ActionBarActivity implements \n getSupportActionBar ( ) . setTitle ( StringUtils . notNullStr ( savedInstanceState . getString ( ARG_TITLE ) ) ) ; \n } \n \n + SINGLE \n + if ( ! getIntent ( ) . getBooleanExtra ( NotificationsListFragment . NOTE_INSTANT_REPLY_EXTRA , false ) ) { \n + getWindow ( ) . setSoftInputMode ( WindowManager . LayoutParams . SOFT_INPUT_STATE_HIDDEN ) ; \n + } \n + \n GCMIntentService . clearNotificationsMap ( ) ; \n }", "msg_token": "Always run the keyboard check in onCreate"} {"diff": " public class Node implements Serializable { \n return token ; \n } \n \n - public Token getType ( ) { \n - return getToken ( ) ; \n - } \n - \n public void setToken ( Token token ) { \n this . token = token ; \n } \n \n - public void setType ( Token token ) { \n - setToken ( token ) ; \n - } \n - \n public boolean hasChildren ( ) { \n return first != null ; \n }", "msg_token": "Remove getType and setType in favor of getToken and setToken"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class SpecializedConcurrentBag < T > \n { \n static final int NOT_IN_USE = NUMBER0 ;", "msg_token": "Add license header and class level javadoc"} {"diff": " public class LeftRecursiveRuleTransformer { \n \n public RuleAST parseArtificialRule ( final Grammar g , String ruleText ) { \n ANTLRLexer lexer = new ANTLRLexer ( new ANTLRStringStream ( ruleText ) ) ; \n - GrammarASTAdaptor adaptor = new GrammarASTAdaptor ( ) ; \n + GrammarASTAdaptor adaptor = new GrammarASTAdaptor ( lexer . getCharStream ( ) ) ; \n CommonTokenStream tokens = new CommonTokenStream ( lexer ) ; \n lexer . tokens = tokens ; \n ToolANTLRParser p = new ToolANTLRParser ( tokens , tool ) ;", "msg_token": "Construct GrammarASTAdaptor with CharStream from lexer"} {"diff": " public class HttpServer { \n this . maxBody = maxBody ; \n } \n \n - void accept ( SelectionKey key , Selector selector ) throws IOException { \n + void accept ( SelectionKey key , Selector selector ) { \n ServerSocketChannel ch = ( ServerSocketChannel ) key . channel ( ) ; \n SocketChannel s ; \n - while ( ( s = ch . accept ( ) ) != null ) { \n - s . configureBlocking ( false ) ; \n - s . register ( selector , OP_READ , new HttpServerAtta ( maxBody , maxLine ) ) ; \n + try { \n + while ( ( s = ch . accept ( ) ) != null ) { \n + s . configureBlocking ( false ) ; \n + s . register ( selector , OP_READ , new HttpServerAtta ( maxBody , maxLine ) ) ; \n + } \n + } catch ( Exception e ) { \n + SINGLE \n + HttpUtils . printError ( STRING0 , e ) ; \n } \n }", "msg_token": "do not shutdown server when Too many open files in system"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class RmStep extends ShellStep { \n args . add ( STRING0 ) ; \n } \n \n - args . add ( patternToDelete ) ; \n + Function < String , String > pathRelativizer = context . getProjectFilesystem ( ) . getPathRelativizer ( ) ; \n + args . add ( pathRelativizer . apply ( patternToDelete ) ) ; \n \n return args . build ( ) ; \n }", "msg_token": "RmStep should resolve path passed to rm"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Group implements Cacheable { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n public boolean isUser ( JID user ) { \n + SINGLE \n + if ( user != null && user . getResource ( ) != null ) { \n + user = new JID ( user . toBareJID ( ) ) ; \n + } \n return user != null && ( members . contains ( user ) || administrators . contains ( user ) ) ; \n }", "msg_token": "Use bare JID to check membership"} {"diff": " public class OnesideDiffViewer extends TextDiffViewerBase { \n @ override \n public JComponent getPreferredFocusedComponent ( ) { \n if ( ! myPanel . isGoodContent ( ) ) return null ; \n - return myEditor . getComponent ( ) ; \n + return myEditor . getContentComponent ( ) ; \n } \n \n @ notnull", "msg_token": "oneside fix preferred focused component"} {"diff": " public class Util { \n STRING0 , \n STRING1 , \n STRING2 , \n + STRING3 , \n + STRING4 , \n + STRING5 , SINGLE \n + STRING6 , SINGLE \n STRING7 , \n STRING8 , \n STRING9 , \n public class Util { \n } \n \n public static boolean isValidBrowserPackageName ( String packageName ) { \n - if ( packageName . equals ( BuildConfig . APPLICATION_ID ) || packageName . contains ( STRING10 ) || packageName . contains ( STRING11 ) ) { \n + if ( packageName . equals ( BuildConfig . APPLICATION_ID ) || packageName . contains ( STRING10 ) ) { \n + return false ; \n + } \n + if ( BuildConfig . APPLICATION_ID . contains ( STRING11 ) && packageName . contains ( STRING11 ) ) { \n + return false ; \n + } \n + else if ( BuildConfig . APPLICATION_ID . contains ( STRING12 ) && packageName . contains ( STRING12 ) ) { \n return false ; \n }", "msg_token": "Removed linkbubble icon in brave and vice versa"} {"diff": " public class CallTimeoutResponse extends Response implements IdentifiedDataSeria \n public int getId ( ) { \n return SpiDataSerializerHook . CALL_TIMEOUT_RESPONSE ; \n } \n + \n + @ override \n + public String toString ( ) { \n + final StringBuilder sb = new StringBuilder ( ) ; \n + sb . append ( STRING0 ) ; \n + sb . append ( STRING1 ) . append ( callId ) ; \n + sb . append ( STRING2 ) . append ( urgent ) ; \n + sb . append ( STRING3 ) ; \n + return sb . toString ( ) ; \n + } \n }", "msg_token": "Added toString to CallTimeoutResponse"} {"diff": " import static NAMESPACE ; \n public final class IssueAuthorizationDto extends Dto < String > implements Serializable { \n \n private String projectUuid ; \n - private String permission ; \n private List < String > groups = newArrayList ( ) ; \n private List < String > users = newArrayList ( ) ;", "msg_token": "Fix quality flaw"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix some copyrights"} {"diff": " public final class FileSystemMaster extends MasterBase { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "SMALLFIX Fix broken link in javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n SINGLE \n SINGLE \n public class MapExplorer implements OnGestureListener , IContextMenuProvider { \n @ override \n public boolean onFling ( MotionEvent e1 , MotionEvent e2 , float velocityX , float velocityY ) { \n if ( ( Build . VERSION . SDK_INT >= NUMBER0 ) || mapView . getSettings ( ) . SCROLL_MAP_BY_GESTURES . get ( ) ) \n - return fallback . onFling ( e1 , e2 , velocityX , velocityY ) ; \n + return fallback . onFling ( e1 , e2 , velocityX / NUMBER1 , velocityY / NUMBER1 ) ; \n return true ; \n }", "msg_token": "Reduce map fling velocity"} {"diff": " public class FancyButton extends LinearLayout { \n \n SINGLE \n private int mDefaultTextColor = Color . WHITE ; \n + private int mDefaultIconColor = Color . WHITE ; \n private int mTextPosition = NUMBER0 ; \n private int mDefaultTextSize = NUMBER1 ; \n private int mDefaultTextGravity = NUMBER2 ; SINGLE \n public class FancyButton extends LinearLayout { \n mFocusBackgroundColor = attrsArray . getColor ( R . styleable . FancyButtonsAttrs_focusColor , mFocusBackgroundColor ) ; \n \n mDefaultTextColor = attrsArray . getColor ( R . styleable . FancyButtonsAttrs_textColor , mDefaultTextColor ) ; \n + SINGLE \n + mDefaultIconColor = attrsArray . getColor ( R . styleable . FancyButtonsAttrs_iconColor , mDefaultTextColor ) ; \n mDefaultTextSize = ( int ) attrsArray . getDimension ( R . styleable . FancyButtonsAttrs_textSize , mDefaultTextSize ) ; \n mDefaultTextGravity = attrsArray . getInt ( R . styleable . FancyButtonsAttrs_textGravity , mDefaultTextGravity ) ;", "msg_token": "Adding defaultIconColor and reading it from attributes"} {"diff": " public class I18nManager implements I18n , ServerExtension , BatchExtension { \n LOG . debug ( String . format ( STRING0 , propertyToBundles . size ( ) ) ) ; \n } \n \n + public void stop ( ) { \n + i18nClassloader = null ; \n + propertyToBundles = null ; \n + fileContentCache = null ; \n + } \n + \n public String message ( Locale locale , String key , String defaultValue , Object . . . parameters ) { \n String bundleKey = propertyToBundles . get ( key ) ; \n String value = null ; \n public class PluginClassloaders { \n } catch ( Exception e ) { \n SINGLE \n } \n - world = null ; \n } \n + world = null ; \n + baseClassloader = null ; \n } \n }", "msg_token": "Fix memory leaks"} {"diff": " public abstract class PythonCommandLineState extends CommandLineState { \n private ProcessHandler startRemoteProcess ( Sdk sdk , GeneralCommandLine commandLine ) throws ExecutionException { \n PythonRemoteInterpreterManager manager = PythonRemoteInterpreterManager . getInstance ( ) ; \n if ( manager != null ) { \n - \n ProcessHandler processHandler = \n null ; \n \n public abstract class PythonCommandLineState extends CommandLineState { \n } \n \n return pythonPath ; \n - \n - \n } \n \n @ notnull", "msg_token": "Fixed django manage completeness test"} {"diff": " import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class WindowFilterPushDown \n @ override \n public PlanNode visitWindow ( WindowNode node , RewriteContext < Void > context ) \n { \n + checkState ( node . getWindowFunctions ( ) . size ( ) == NUMBER0 , STRING0 ) ; \n PlanNode rewrittenSource = context . rewrite ( node . getSource ( ) ) ; \n \n if ( canReplaceWithRowNumber ( node ) ) {", "msg_token": "Enforce only one Function per WindowNode in WindowFilterPushDown"} {"diff": " public class BridgeWindowManager implements IWindowManager { \n @ override \n public void clearForcedDisplaySize ( int displayId ) throws RemoteException { \n SINGLE \n + } \n \n + @ override \n + public void clearForcedDisplayDensity ( int displayId ) throws RemoteException { \n + SINGLE \n } \n \n @ override \n public class BridgeWindowManager implements IWindowManager { \n @ override \n public void setForcedDisplaySize ( int displayId , int arg0 , int arg1 ) throws RemoteException { \n SINGLE \n + } \n \n + @ override \n + public void setForcedDisplayDensity ( int displayId , int density ) throws RemoteException { \n + SINGLE \n } \n \n @ override", "msg_token": "Fix build with density methods"} {"diff": " public class DrawHandler extends Handler { \n case RESUME : \n quitFlag = false ; \n if ( mReady ) { \n + mDrawTimes . clear ( ) ; \n mTimeBase = System . currentTimeMillis ( ) - pausedPostion ; \n timer . update ( pausedPostion ) ; \n removeMessages ( RESUME ) ;", "msg_token": "reset mDrawTimes in RESUME action"} {"diff": " import NAMESPACE ; \n COMMENT \n public abstract class AsyncCompletionHandler < T > implements AsyncHandler < T > , ProgressAsyncHandler < T > { \n \n - private static final Logger log = LoggerFactory . getLogger ( AsyncCompletionHandler . class ) ; \n + private static final Logger LOGGER = LoggerFactory . getLogger ( AsyncCompletionHandler . class ) ; \n private final Response . ResponseBuilder builder = new Response . ResponseBuilder ( ) ; \n \n COMMENT \n public abstract class AsyncCompletionHandler < T > implements AsyncHandler < T > , Prog \n COMMENT \n COMMENT \n public void onThrowable ( Throwable t ) { \n - log . debug ( t . getMessage ( ) , t ) ; \n + LOGGER . debug ( t . getMessage ( ) , t ) ; \n } \n \n COMMENT", "msg_token": "Made logger static to improve performance"} {"diff": " public class ImagePresenter < T > { \n if ( exceptionHandler != null ) { \n exceptionHandler . onException ( e , model , relevant ) ; \n } \n - if ( relevant && canSetPlaceholder ( ) ) { \n + if ( relevant && canSetPlaceholder ( ) && errorDrawable != null ) { \n target . setPlaceholder ( errorDrawable ) ; \n } \n }", "msg_token": "Don t set a null error drawable"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class VersionFetchSubPhase implements FetchSubPhase { \n SINGLE \n SINGLE \n SINGLE \n - long version = UidField . loadVersion ( hitContext . reader ( ) , UidFieldMapper . TERM_FACTORY . createTerm ( hitContext . doc ( ) . get ( UidFieldMapper . NAME ) ) ) ; \n + long version = UidField . loadVersion ( hitContext . readerContext ( ) , new Term ( UidFieldMapper . NAME , hitContext . doc ( ) . get ( UidFieldMapper . NAME ) ) ) ; \n if ( version < NUMBER0 ) { \n version = - NUMBER1 ; \n }", "msg_token": "Fixed TERM_FACTORY usage in VersionFetchSubPhase class"} {"diff": " public final class SimilarityService extends AbstractIndexComponent { \n static class PerFieldSimilarity extends PerFieldSimilarityWrapper { \n \n private final Similarity defaultSimilarity ; \n - private final Similarity baseSimilarity ; \n private final MapperService mapperService ; \n \n PerFieldSimilarity ( Similarity defaultSimilarity , Similarity baseSimilarity , MapperService mapperService ) { \n + super ( baseSimilarity ) ; \n this . defaultSimilarity = defaultSimilarity ; \n - this . baseSimilarity = baseSimilarity ; \n this . mapperService = mapperService ; \n }", "msg_token": "Pass baseSimilarity to super PerFieldSimilarityWrapper"} {"diff": " public class ChildrenBlocksBuilder { \n List < Block > blocks = ContainerUtil . newArrayList ( ) ; \n \n for ( ASTNode child : node . getChildren ( null ) ) { \n - if ( FormatterUtil . isWhitespaceOrEmpty ( child ) ) { \n - continue ; \n + if ( FormatterUtil . isWhitespaceOrEmpty ( child ) || child . getTextLength ( ) == NUMBER0 ) { \n + continue ; \n } \n \n Alignment alignment = myConfig . getAlignment ( child ) ; \n public void testSCR260 ( ) throws Exception { \n STRING0 \n ) ; \n } \n + \n + public void testReformatCodeWithErrorElementsWithoutAssertions ( ) { \n + doTextTest ( STRING1 + \n + STRING2 + \n + STRING2 + \n + STRING3 , \n + STRING4 + \n + STRING5 + \n + STRING6 + \n + STRING7 + \n + STRING5 + \n + STRING6 + \n + STRING8 + \n + STRING9 ) ; \n + } \n }", "msg_token": "Do not build blocks for empty elements like PsiErrorElement"} {"diff": " public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2 < Me \n mRecorder . setVideoSize ( video_width , video_height ) ; \n mRecorder . setVideoEncoder ( video_encoder ) ; \n mRecorder . setAudioEncoder ( audio_encoder ) ; \n + mRecorder . setVideoEncodingBitRate ( bit_rate ) ; \n Log . v ( TAG , STRING0 ) ; \n mRecorder . setPreviewDisplay ( mSurfaceHolder . getSurface ( ) ) ; \n mRecorder . prepare ( ) ;", "msg_token": "Set the video encoding bit rate for the media"} {"diff": " public class MetricsServlet extends HttpServlet { \n protected void doGet ( HttpServletRequest req , \n HttpServletResponse resp ) throws ServletException , IOException { \n resp . setContentType ( CONTENT_TYPE ) ; \n + resp . setHeader ( STRING0 , STRING1 ) ; \n resp . setHeader ( STRING2 , STRING3 ) ; \n resp . setStatus ( HttpServletResponse . SC_OK ) ; \n \n public class MetricsServletTest extends AbstractServletTest { \n \n assertThat ( response . getStatus ( ) ) \n . isEqualTo ( NUMBER0 ) ; \n + assertThat ( response . getHeader ( STRING0 ) ) \n + . isEqualTo ( STRING1 ) ; \n assertThat ( response . getContent ( ) ) \n . isEqualTo ( STRING4 + \n STRING5 + \n public class MetricsServletTest extends AbstractServletTest { \n \n assertThat ( response . getStatus ( ) ) \n . isEqualTo ( NUMBER0 ) ; \n + assertThat ( response . getHeader ( STRING0 ) ) \n + . isEqualTo ( STRING1 ) ; \n assertThat ( response . getContent ( ) ) \n . isEqualTo ( String . format ( STRING6 + \n STRING7 +", "msg_token": "Add CORS Access Control header"} {"diff": " public abstract class ScmMaterialConfig extends AbstractMaterialConfig implement \n this . folder = folder ; \n } \n this . setAutoUpdate ( STRING0 . equals ( map . get ( AUTO_UPDATE ) ) ) ; \n + this . setInvertFilter ( STRING0 . equals ( map . get ( INVERT_FILTER ) ) ) ; \n if ( map . containsKey ( FILTER ) ) { \n String pattern = ( String ) map . get ( FILTER ) ; \n if ( ! StringUtil . isBlank ( pattern ) ) {", "msg_token": "add code for INVERT_FILTER in ScmMaterialConfig setConfigAttributes"} {"diff": " public class HazelcastParallelClassRunner extends AbstractHazelcastClassRunner { \n \n private final Properties globalProperties ; \n \n - private final ThreadLocal < Properties > localProperties = new InheritableThreadLocal < Properties > ( ) { \n - @ override \n - protected Properties initialValue ( ) { \n - return init ( new Properties ( ) ) ; \n - } \n - } ; \n + private final ThreadLocal < Properties > localProperties = new InheritableThreadLocal < Properties > ( ) ; \n \n private ThreadLocalProperties ( Properties properties ) { \n this . globalProperties = properties ; \n public class HazelcastParallelClassRunner extends AbstractHazelcastClassRunner { \n } \n \n private Properties getThreadLocal ( ) { \n - return localProperties . get ( ) ; \n + Properties properties = localProperties . get ( ) ; \n + if ( properties == null ) { \n + properties = init ( new Properties ( ) ) ; \n + localProperties . set ( properties ) ; \n + } \n + return properties ; \n } \n \n @ override", "msg_token": "Fixed ThreadLocal subclassing in HazelcastParallelClassRunner"} {"diff": " public class AccountItem extends ConnectionItem { \n return new Presence ( Type . unavailable ) ; \n else { \n int priority ; \n - if ( AccountManager . getInstance ( ) . isXa ( ) ) \n - statusMode = StatusMode . xa ; \n - else if ( AccountManager . getInstance ( ) . isAway ( ) ) \n - statusMode = StatusMode . away ; \n + if ( statusMode != StatusMode . dnd ) { \n + if ( AccountManager . getInstance ( ) . isXa ( ) ) \n + statusMode = StatusMode . xa ; \n + else if ( AccountManager . getInstance ( ) . isAway ( ) ) \n + statusMode = StatusMode . away ; \n + } \n if ( SettingsManager . connectionAdjustPriority ( ) ) { \n if ( statusMode == StatusMode . available ) \n priority = SettingsManager . connectionPriorityAvailable ( ) ;", "msg_token": "Disable auto away status while on do not disturb"} {"diff": " public class OCommandExecutorSQLCreateIndex extends OCommandExecutorSQLPermissio \n final String [ ] parts = name . split ( STRING0 ) ; \n \n final OClass cls = database . getMetadata ( ) . getSchema ( ) . getClass ( parts [ NUMBER0 ] ) ; \n + if ( cls == null ) \n + throw new OCommandExecutionException ( STRING1 + parts [ NUMBER0 ] + STRING2 ) ; \n + \n final OProperty prop = cls . getProperty ( parts [ NUMBER1 ] ) ; \n + if ( prop == null ) \n + throw new IllegalArgumentException ( STRING3 + parts [ NUMBER1 ] + STRING4 + parts [ NUMBER0 ] + STRING5 ) ; \n keyType = prop . getType ( ) ; \n } \n } else", "msg_token": "Improved message on create index command when the property is not found reported by Paul in ML"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add doc about Iconable"} {"diff": " public class Translog extends AbstractIndexShardComponent implements IndexShardC \n SINGLE \n SINGLE \n SINGLE \n - assert Files . exists ( nextTranslogFile ) == false || Files . size ( nextTranslogFile ) <= TranslogWriter . getHeaderLength ( translogUUID ) ; \n + assert Files . exists ( nextTranslogFile ) == false || Files . size ( nextTranslogFile ) <= TranslogWriter . getHeaderLength ( translogUUID ) : STRING0 + nextTranslogFile + STRING1 ; \n if ( Files . exists ( currentCheckpointFile ) SINGLE \n && Files . deleteIfExists ( nextTranslogFile ) ) { SINGLE \n - logger . warn ( STRING2 , nextTranslogFile . getFileName ( ) ) ; \n + logger . warn ( STRING3 , nextTranslogFile . getFileName ( ) ) ; \n } \n this . recoveredTranslogs = recoverFromFiles ( translogGeneration , checkpoint ) ; \n if ( recoveredTranslogs . isEmpty ( ) ) {", "msg_token": "apply feedback from bleskes"} {"diff": " public class DataSourceHealthIndicator extends AbstractHealthIndicator implement \n queries . put ( STRING0 , STRING1 ) ; \n queries . put ( STRING2 , STRING3 ) ; \n queries . put ( STRING4 , STRING3 ) ; \n + queries . put ( STRING5 , STRING6 ) ; \n PRODUCT_SPECIFIC_QUERIES = Collections . unmodifiableMap ( queries ) ; \n }", "msg_token": "Add Informix specific health query"} {"diff": " public class TextureUtil { \n \n if ( ! NPOT ) { \n SINGLE \n - if ( ! FastMath . isPowerOfTwo ( width ) || width != height ) { \n + if ( ! FastMath . isPowerOfTwo ( width ) || ! FastMath . isPowerOfTwo ( height ) ) { \n throw new RendererException ( STRING0 \n + STRING1 \n + STRING2 + img ) ;", "msg_token": "Remove requirement for buffer type images to have width height on Android devices that do not support NPOT"} {"diff": " public class RotateDrawable extends Drawable implements Drawable . Callback { \n \n state . mFromDegrees = a . getFloat ( R . styleable . RotateDrawable_fromDegrees , state . mFromDegrees ) ; \n state . mToDegrees = a . getFloat ( R . styleable . RotateDrawable_toDegrees , state . mToDegrees ) ; \n + state . mCurrentDegrees = state . mFromDegrees ; \n \n final Drawable dr = a . getDrawable ( R . styleable . RotateDrawable_drawable ) ; \n if ( dr != null ) {", "msg_token": "Set current degrees when updating RotateDrawable from typed array"} {"diff": " public class BeanInfo { \n } \n \n private static Class < ? > getTargetClass ( Class < ? > clazz ) { \n - if ( clazz . getName ( ) . indexOf ( CGLIB_CLASS_SEPARATOR ) != - NUMBER0 ) { \n - return clazz . getSuperclass ( ) ; \n + if ( clazz != null && clazz . getName ( ) . contains ( CGLIB_CLASS_SEPARATOR ) ) { \n + Class < ? > superClass = clazz . getSuperclass ( ) ; \n + if ( superClass != null && ! Object . class . equals ( superClass ) ) { \n + return superClass ; \n + } \n } \n return clazz ; \n }", "msg_token": "Fixed issue with CGLib enhanced beans being invoked from camel bean"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class CrossFoldLearner extends AbstractVectorClassifier implements OnlineLearner { \n - private int record ; \n + SINGLE \n + private static final double MIN_SCORE = FLOAT0 ; \n + \n + private int record = NUMBER0 ; \n private OnlineAuc auc = new OnlineAuc ( ) ; \n private double logLikelihood ; \n private final List < OnlineLogisticRegression > models = Lists . newArrayList ( ) ;", "msg_token": "Make log likelihood behavior better in the corners"} {"diff": " public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec \n String [ ] header = splitHeader ( line ) ; \n message . addHeader ( header [ NUMBER0 ] , header [ NUMBER1 ] ) ; \n lastHeader = header [ NUMBER0 ] ; \n - line = readHeader ( buffer ) ; \n } \n + \n + line = readHeader ( buffer ) ; \n } while ( line . length ( ) != NUMBER0 ) ; \n }", "msg_token": "Fixed a mistake during optimization"} {"diff": " public class SystemResource extends RestResource { \n @ put \n @ timed \n @ apioperation ( value = STRING0 , \n - notes = STRING1 + \n - STRING2 ) \n + notes = STRING3 + \n + STRING4 ) \n @ path ( STRING5 ) \n public void pauseProcessing ( ) { \n checkPermission ( RestPermissions . PROCESSING_CHANGESTATE , serverStatus . getNodeId ( ) . toString ( ) ) ;", "msg_token": "mention message journal in system processing docs"} {"diff": " public class MessageWebView extends TitleBarWebView { \n String content = STRING0 ; \n if ( K9 . getK9MessageViewTheme ( ) == K9 . Theme . DARK ) { \n content += STRING1 + \n - STRING2 + \n + STRING3 + \n STRING4 + \n STRING5 ; \n }", "msg_token": "Use very light grey instead of white for message text in dark theme"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class BerkeleyJEOLAPTest extends FulgoraOLAPTest { \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class HBaseGraphTest extends FulgoraOLAPTest { \n + public class HBaseOLAPTest extends FulgoraOLAPTest { \n @ beforeclass \n public static void startHBase ( ) throws IOException { \n HBaseStorageSetup . startHBase ( ) ;", "msg_token": "Fixed naming mistake in test"} {"diff": " public class EvaluationResultSubject extends Subject < EvaluationResultSubject , Ev \n getSubject ( ) . getWalkableGraph ( ) . getDirectDeps ( ImmutableList . of ( parent ) ) . get ( parent ) ) \n . named ( STRING0 + parent + STRING1 + getDisplaySubject ( ) ) ; \n } \n + \n + public IterableSubject hasReverseDepsInGraphThat ( SkyKey child ) { \n + return assertThat ( \n + getSubject ( ) . getWalkableGraph ( ) . getReverseDeps ( ImmutableList . of ( child ) ) . get ( child ) ) \n + . named ( STRING2 + child + STRING1 + getDisplaySubject ( ) ) ; \n + } \n }", "msg_token": "Add EvaluationResultSubject hasReverseDepsInGraphThat method"} {"diff": " public class LocationManagerService extends ILocationManager . Stub { \n mWakeLockAcquireTime = SystemClock . elapsedRealtime ( ) ; \n log ( STRING0 ) ; \n \n - mNetworkLocationProvider . wakeLockAcquired ( ) ; \n - mGpsLocationProvider . wakeLockAcquired ( ) ; \n + if ( mNetworkLocationProvider != null ) { \n + mNetworkLocationProvider . wakeLockAcquired ( ) ; \n + } \n + if ( mGpsLocationProvider != null ) { \n + mGpsLocationProvider . wakeLockAcquired ( ) ; \n + } \n } \n \n private void releaseWakeLockLocked ( ) { \n public class LocationManagerService extends ILocationManager . Stub { \n } \n \n private void releaseWakeLockXLocked ( ) { \n - mNetworkLocationProvider . wakeLockReleased ( ) ; \n - mGpsLocationProvider . wakeLockReleased ( ) ; \n + if ( mNetworkLocationProvider != null ) { \n + mNetworkLocationProvider . wakeLockReleased ( ) ; \n + } \n + if ( mGpsLocationProvider != null ) { \n + mGpsLocationProvider . wakeLockReleased ( ) ; \n + } \n \n SINGLE \n mWakeLockAcquireTime = NUMBER0 ;", "msg_token": "Add some null pointer checks"} {"diff": " public class DistinctLimitOperator \n distinctChannels . add ( i ) ; \n } \n \n - this . groupByHash = new GroupByHash ( distinctTypes . build ( ) , Ints . toArray ( distinctChannels . build ( ) ) , NUMBER0 ) ; \n + this . groupByHash = new GroupByHash ( distinctTypes . build ( ) , Ints . toArray ( distinctChannels . build ( ) ) , Math . min ( ( int ) limit , NUMBER0 ) ) ; \n \n this . cursors = new BlockCursor [ types . size ( ) ] ; \n this . pageBuilder = new PageBuilder ( getTypes ( ) ) ;", "msg_token": "Reduce default memory reservation for DistinctLimitOperator"} {"diff": " public class DeferredResult < T > { \n return false ; \n } \n this . result = result ; \n - if ( this . resultHandler != null ) { \n - this . resultHandler . handleResult ( this . result ) ; \n - } \n + } \n + if ( this . resultHandler != null ) { \n + this . resultHandler . handleResult ( this . result ) ; \n } \n return true ; \n }", "msg_token": "Fix deadlock issue in DeferredResult"} {"diff": " public class ScopeProvider { \n \n @ notnull \n public JetScope getResolutionScopeForDeclaration ( @ notnull PsiElement elementOfDeclaration ) { \n - JetDeclaration jetDeclaration = PsiTreeUtil . getParentOfType ( elementOfDeclaration , JetDeclaration . class , false ) ; \n + JetDeclaration jetDeclaration = JetStubbedPsiUtil . getContainingDeclaration ( elementOfDeclaration , JetDeclaration . class , false ) ; \n \n assert ! ( elementOfDeclaration instanceof JetDeclaration ) || jetDeclaration == elementOfDeclaration : \n STRING0 ; \n + assert jetDeclaration != null : STRING1 ; \n \n - JetDeclaration parentDeclaration = PsiTreeUtil . getParentOfType ( jetDeclaration , JetDeclaration . class ) ; \n + JetDeclaration parentDeclaration = JetStubbedPsiUtil . getContainingDeclaration ( jetDeclaration ) ; \n \n if ( jetDeclaration instanceof JetPropertyAccessor ) { \n parentDeclaration = PsiTreeUtil . getParentOfType ( parentDeclaration , JetDeclaration . class ) ;", "msg_token": "Get parent by stub in ScopeProvider"} {"diff": " public class JmxReporter { \n final ObjectName objectName = createName ( STRING0 , name ) ; \n mBeanServer . registerMBean ( new JmxCounter ( counter , objectName ) , objectName ) ; \n } catch ( InstanceAlreadyExistsException e ) { \n - LOGGER . debug ( STRING1 , e ) ; \n + LOGGER . debug ( STRING2 , e ) ; \n } catch ( JMException e ) { \n - LOGGER . warn ( STRING1 , e ) ; \n + LOGGER . warn ( STRING2 , e ) ; \n } \n }", "msg_token": "Fix logging statements in JmxReporter"} {"diff": " public class AIMSICD extends BaseActivity implements AsyncResponse { \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n \n - moveData ( ) ; \n - \n mNavConf = new DrawerMenuActivityConfiguration . Builder ( this ) . build ( ) ; \n \n setContentView ( mNavConf . getMainLayout ( ) ) ; \n public class AIMSICD extends BaseActivity implements AsyncResponse { \n super . onStart ( ) ; \n ( ( AppAIMSICD ) getApplication ( ) ) . attach ( this ) ; \n } \n - \n }", "msg_token": "Removed moveData method"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LocationManager { \n COMMENT \n COMMENT \n COMMENT \n + @ systemapi \n public void requestLocationUpdates ( LocationRequest request , LocationListener listener , \n Looper looper ) { \n checkListener ( listener ) ; \n public class LocationManager { \n COMMENT \n COMMENT \n COMMENT \n + @ systemapi \n public void requestLocationUpdates ( LocationRequest request , PendingIntent intent ) { \n checkPendingIntent ( intent ) ; \n requestLocationUpdates ( request , null , null , intent ) ;", "msg_token": "Add SystemApi to LocationManager methods used by GmsCore with reflection"} {"diff": " abstract class IonBitmapRequestBuilder implements BitmapFutureBuilder , Builders . \n return LocallyCachedStatus . NOT_CACHED ; \n } \n \n + \n + @ override \n + public void removeCachedBitmap ( ) { \n + final String decodeKey = computeDecodeKey ( ) ; \n + addDefaultTransform ( ) ; \n + String bitmapKey = computeBitmapKey ( decodeKey ) ; \n + ion . responseCache . getFileCache ( ) . remove ( decodeKey ) ; \n + ion . responseCache . getFileCache ( ) . remove ( bitmapKey ) ; \n + builder . ion . bitmapCache . remove ( bitmapKey ) ; \n + builder . ion . bitmapCache . remove ( decodeKey ) ; \n + } \n + \n @ override \n public BitmapInfo asCachedBitmap ( ) { \n final String decodeKey = computeDecodeKey ( ) ; \n public interface BitmapFutureBuilder { \n public BitmapInfo asCachedBitmap ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + public void removeCachedBitmap ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add method to remove cached bitmap if it exists"} {"diff": " public abstract class SlidingActivity extends AppCompatActivity { \n COMMENT \n public void disableHeader ( ) { \n scroller . disableHeader ( ) ; \n + content . setPadding ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n } \n \n COMMENT", "msg_token": "Set the padding on the content of the sliding activity to zero if you disable the header"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import static NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "added header with a license"} {"diff": " public class WikiIndexer { \n try { \n String lat_dir = readProperty ( STRING0 , h , e ) ; \n String lon_dir = readProperty ( STRING1 , h , e ) ; \n + if ( lat_dir . length ( ) == NUMBER0 || lon_dir . length ( ) == NUMBER0 ) { \n + return ; \n + } \n float lat_deg = Float . parseFloat ( readProperty ( STRING2 , h , e ) ) ; \n float lon_deg = Float . parseFloat ( readProperty ( STRING3 , h , e ) ) ; \n float lat_min = zeroParseFloat ( readProperty ( STRING4 , h , e ) ) ;", "msg_token": "Fix Wiki Indexer"} {"diff": " public final class DHistogram extends Iced { \n SINGLE \n SINGLE \n void incr ( double col_data , double y , double w ) { \n - assert ! Double . isNaN ( col_data ) ; \n + if ( Double . isNaN ( col_data ) ) { \n + _wNA . addAndGet ( w ) ; \n + _wYNA . addAndGet ( w * y ) ; \n + _wYYNA . addAndGet ( w * y * y ) ; \n + return ; \n + } \n assert Double . isInfinite ( col_data ) || ( _min <= col_data && col_data < _maxEx ) : STRING0 + col_data + STRING1 + this ; \n int b = bin ( col_data ) ; SINGLE \n water . util . AtomicUtils . DoubleArray . add ( _w , b , w ) ; SINGLE", "msg_token": "Fix dead code in GBM for debugging only"} {"diff": " public class TestPlan implements Closeable { \n SINGLE \n if ( ! fileSink . getFormatClass ( ) . equals ( SequentialOutputFormat . class ) ) { \n TestRecords expectedValues = this . expectedOutputs . get ( fileSink ) ; \n - SINGLE \n - if ( expectedValues == null ) \n - continue ; \n \n final FileDataSink safeSink = createDefaultSink ( fileSink . getName ( ) ) ; \n \n public class TestPlan implements Closeable { \n wrappedSinks . add ( fileSink ) ; \n wrappedSinks . add ( safeSink ) ; \n \n - this . expectedOutputs . put ( safeSink , expectedValues ) ; \n + SINGLE \n + if ( expectedValues != null ) \n + this . expectedOutputs . put ( safeSink , expectedValues ) ; \n this . actualOutputs . put ( safeSink , this . getActualOutput ( fileSink ) ) ; \n this . getActualOutput ( fileSink ) . fromFile ( SequentialInputFormat . class , safeSink . getFilePath ( ) ) ;", "msg_token": "Fixed test plan for tests without expected values"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class Variable \n public class Variable \n return new SetVariableByteCodeExpression ( this , value ) ; \n } \n \n + public ByteCodeExpression increment ( ) \n + { \n + return new SetVariableByteCodeExpression ( this , add ( this , constantInt ( NUMBER0 ) ) ) ; \n + } \n + \n @ override \n public ByteCodeNode getByteCode ( MethodGenerationContext generationContext ) \n {", "msg_token": "Add increment to Variable bytecode expression"} {"diff": " public class TextEditingTarget implements EditingTarget , \n \n HandlerRegistration addCursorChangedHandler ( CursorChangedHandler handler ) ; \n Position getCursorPosition ( ) ; \n - void setCursorPosition ( Position position ) ; \n - void moveCursorNearTop ( ) ; \n - \n + \n FunctionStart getCurrentFunction ( ) ; \n JsArray < FunctionStart > getFunctionTree ( ) ;", "msg_token": "eliminate unused functions from EditingTarget interface"} {"diff": " public class LibrarySourcesConfig extends Config { \n String moduleName = UNKNOWN_EXTERNAL_MODULE_NAME ; \n for ( String path : files ) { \n File file = new File ( path ) ; \n + if ( ! file . exists ( ) ) continue ; SINGLE \n try { \n String name = file . getName ( ) ; \n if ( path . charAt ( NUMBER0 ) == STRING0 ) { \n public class LibrarySourcesConfig extends Config { \n } \n } \n catch ( IOException e ) { \n - LOG . error ( e ) ; \n + LOG . error ( STRING1 + file , e ) ; \n } \n }", "msg_token": "Handle non existent files"} {"diff": " import static NAMESPACE ; \n \n COMMENT \n COMMENT \n - @ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest . Scope . TEST , numDataNodes = NUMBER0 ) \n + @ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest . Scope . TEST , numDataNodes = NUMBER1 , numClientNodes = NUMBER1 ) \n public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationTest { \n \n @ override \n public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT \n @ test \n @ testlogging ( STRING0 ) \n public void testScanScrollWithShardExceptions ( ) throws Exception { \n + cluster ( ) . startNode ( ) ; \n + cluster ( ) . startNode ( ) ; \n assertAcked ( \n prepareCreate ( STRING1 ) \n SINGLE", "msg_token": "TEST Just start two nodes"} {"diff": " public class BaseClientDetails implements ClientDetails { \n registeredRedirectUris ) ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n @ jsonproperty ( STRING1 ) \n private List < String > getAuthoritiesAsStrings ( ) { \n return new ArrayList < String > ( AuthorityUtils . authorityListToSet ( authorities ) ) ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n @ jsonproperty ( STRING1 ) \n @ jsondeserialize ( using = ArrayOrStringDeserializer . class ) \n private void setAuthoritiesAsStrings ( Set < String > values ) {", "msg_token": "Removed unnecessary SuppressWarnings"} {"diff": " public class TreeTraversalInSpiralOrder { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void spiralWithOneDeque ( Node root ) { \n if ( root == null ) {", "msg_token": "Fix the comment"} {"diff": " public class WebXml { \n } \n \n if ( dest . getLoadOnStartup ( ) == null ) { \n - dest . setLoadOnStartup ( src . getServletClass ( ) ) ; \n + dest . setLoadOnStartup ( src . getLoadOnStartup ( ) . toString ( ) ) ; \n } else if ( src . getLoadOnStartup ( ) != null ) { \n if ( failOnConflict && \n ! src . getLoadOnStartup ( ) . equals ( dest . getLoadOnStartup ( ) ) ) {", "msg_token": "Fix copy paste error"} {"diff": " public abstract class ElementPresentationManager { \n public static void registerDocumentationProvider ( Function < Object , String > function ) { ourDocumentationProviders . add ( function ) ; } \n public static void registerIconProvider ( Function < Object , Icon > function ) { ourIconProviders . add ( function ) ; } \n \n - public static void unregisterNameProvider ( Function < Object , String > function ) { ourNameProviders . remove ( function ) ; } \n - \n COMMENT \n public static void registerIcon ( Class aClass , Icon icon ) { registerIcons ( aClass , icon ) ; } \n public static void registerIcons ( Class aClass , Icon . . . icon ) { ourIcons . put ( aClass , icon ) ; }", "msg_token": "remove superfluous FacesPresentation calls"} {"diff": " class InOrderVerifier implements InOrder { \n if ( ! mocksToBeVerifiedInOrder . contains ( mock ) ) { \n reporter . inOrderRequiresFamiliarMock ( ) ; \n } \n - SINGLE \n - SINGLE \n - SINGLE \n if ( mode instanceof MockitoVerificationMode ) { \n return Mockito . verify ( mock , new MockitoInOrderVerificationMode ( ( MockitoVerificationMode ) mode , mocksToBeVerifiedInOrder ) ) ; \n } \n - return Mockito . verify ( mock , mode ) ; \n + throw new RuntimeException ( STRING0 ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "polished some unfinished parts"} {"diff": " public final class ActFmSyncService { \n } \n \n if ( values . containsKey ( TagData . DELETION_DATE . name ) ) { \n - params . add ( STRING0 ) ; params . add ( tagData . getValue ( TagData . DELETION_DATE ) ) ; \n + params . add ( STRING0 ) ; params . add ( tagData . getValue ( TagData . DELETION_DATE ) / NUMBER0 ) ; \n } \n \n if ( values . containsKey ( TagData . TAG_DESCRIPTION . name ) ) {", "msg_token": "Should send tag deletion date to server in seconds"} {"diff": " public abstract class AbstractClient implements ShellClient \n if ( this . console == null ) \n { \n System . out . println ( STRING0 + \n - STRING1 ) ; \n + STRING2 ) ; \n this . console = new StandardConsole ( ) ; \n } \n this . getOutput ( ) . println ( ) ;", "msg_token": "Clarified jLine included current http link"} {"diff": " public interface LatentMatcher < T > { \n \n SINGLE \n \n + COMMENT \n + COMMENT \n + COMMENT \n class ForFieldToken implements LatentMatcher < FieldDescription > { \n \n + COMMENT \n + COMMENT \n + COMMENT \n private final FieldDescription . Token token ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public ForFieldToken ( FieldDescription . Token token ) { \n this . token = token ; \n } \n public interface LatentMatcher < T > { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n class ForMethodToken implements LatentMatcher < MethodDescription > { \n \n + COMMENT \n + COMMENT \n + COMMENT \n private final MethodDescription . Token token ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public ForMethodToken ( MethodDescription . Token token ) { \n this . token = token ; \n }", "msg_token": "Added documentation for matcher"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n @ nullable \n public ColorStateList getForegroundTintList ( ) { \n return mForegroundInfo != null && mForegroundInfo . mTintInfo != null \n - ? mBackgroundTint . mTintList : null ; \n + ? mForegroundInfo . mTintInfo . mTintList : null ; \n } \n \n COMMENT", "msg_token": "Fix NPE in getForegroundTintList"} {"diff": " public class CompletionVariant { \n ret . setAttribute ( key , myItemProperties . get ( key ) ) ; \n } \n } \n - final Pattern pattern = CompletionUtil . createCampelHumpsMatcher ( prefix ) ; \n - PatternMatcher matcher = new Perl5Matcher ( ) ; \n + \n final String lookupString = ret . getLookupString ( ) ; \n - if ( CompletionUtil . checkName ( lookupString , prefix , caseInsensitive ) || matcher . matches ( lookupString , pattern ) ) { \n + if ( CompletionUtil . checkName ( lookupString , prefix , caseInsensitive ) ) { \n set . add ( ret ) ; \n return ret ; \n + } else { \n + final Pattern pattern = CompletionUtil . createCampelHumpsMatcher ( prefix ) ; \n + PatternMatcher matcher = new Perl5Matcher ( ) ; \n + \n + if ( matcher . matches ( lookupString , pattern ) ) { \n + set . add ( ret ) ; \n + return ret ; \n + } \n } \n return null ; \n }", "msg_token": "using Perl matcher only when simple prefix based maching fails"} {"diff": " public class Indexer { \n try { \n client . admin ( ) . cluster ( ) . health ( new ClusterHealthRequest ( ) . waitForYellowStatus ( ) ) . actionGet ( NUMBER0 , TimeUnit . SECONDS ) ; \n } catch ( ElasticSearchTimeoutException e ) { \n - UI . exitHardWithWall ( STRING0 , new String [ ] { STRING1 } ) ; \n + UI . exitHardWithWall ( STRING0 , new String [ ] { STRING2 } ) ; \n } \n \n - \n Runtime . getRuntime ( ) . addShutdownHook ( new Thread ( ) { \n @ override \n public void run ( ) {", "msg_token": "fix elasticsearch connection KB help link"} {"diff": " public class ProxyTunnellingTest \n try \n { \n ContentExchange exchange = new ContentExchange ( true ) ; \n - exchange . setTimeout ( NUMBER0 ) ; \n + SINGLE \n + exchange . setTimeout ( NUMBER1 ) ; \n exchange . setURL ( STRING0 ) ; \n httpClient . send ( exchange ) ; \n assertEquals ( HttpExchange . STATUS_COMPLETED , exchange . waitForDone ( ) ) ;", "msg_token": "Increase external proxy test timeout"} {"diff": " public class NameVirtualHostHandler implements HttpHandler { \n final HttpHandler handler = hosts . get ( host . getFirst ( ) ) ; \n if ( handler != null ) { \n HttpHandlers . executeHandler ( handler , exchange , completionHandler ) ; \n + return ; \n } \n } \n HttpHandlers . executeHandler ( defaultHandler , exchange , completionHandler ) ;", "msg_token": "Fix minor bug"} {"diff": " public abstract class ServiceBase extends Service { \n return new Preferences ( this ) ; \n } \n \n - protected void acquireLocks ( ) { \n + protected synchronized void acquireLocks ( ) { \n if ( mWakeLock == null ) { \n PowerManager pMgr = ( PowerManager ) getSystemService ( POWER_SERVICE ) ; \n mWakeLock = pMgr . newWakeLock ( wakeLockType ( ) , TAG ) ; \n public abstract class ServiceBase extends Service { \n WifiManager . WIFI_MODE_FULL_HIGH_PERF : WifiManager . WIFI_MODE_FULL ; \n } \n \n - protected void releaseLocks ( ) { \n + protected synchronized void releaseLocks ( ) { \n if ( mWakeLock != null && mWakeLock . isHeld ( ) ) { \n mWakeLock . release ( ) ; \n mWakeLock = null ;", "msg_token": "Synchronize access to locks"} {"diff": " public abstract class SpellCheckerService extends Service { \n } \n wordStart = wordIterator . getBeginning ( wordEnd ) ; \n } \n - if ( originalText . length ( ) >= SpellChecker . WORD_ITERATOR_INTERVAL \n - && wordItems . size ( ) >= NUMBER0 ) { \n - if ( DBG ) { \n - Log . w ( TAG , STRING0 \n - + wordItems . get ( NUMBER1 ) . mTextInfo . getText ( ) ) ; \n - } \n - wordItems . remove ( NUMBER1 ) ; \n - } \n return new SentenceTextInfoParams ( originalTextInfo , wordItems ) ; \n }", "msg_token": "Spell check the first word of the sentence"} {"diff": " public class ShadowCountDownTimer { \n public boolean hasStarted ( ) { \n return started ; \n } \n + \n + public long getCountDownInterval ( ) { \n + return countDownInterval ; \n + } \n + \n + public long getMillisInFuture ( ) { \n + return millisInFuture ; \n + } \n } \n public class CountDownTimerTest { \n shadowCountDownTimer . cancel ( ) ; \n assertThat ( shadowCountDownTimer . hasStarted ( ) , equalTo ( false ) ) ; \n } \n + \n + @ test \n + public void testAccessors ( ) { \n + assertThat ( shadowCountDownTimer . getCountDownInterval ( ) , equalTo ( countDownInterval ) ) ; \n + assertThat ( shadowCountDownTimer . getMillisInFuture ( ) , equalTo ( millisInFuture ) ) ; \n + } \n }", "msg_token": "Add accessors for countdown interval millis in future for use in assertions"} {"diff": " public abstract class AbstractApplicationContext extends DefaultResourceLoader \n COMMENT \n protected void invokeBeanFactoryPostProcessors ( ConfigurableListableBeanFactory beanFactory ) { \n PostProcessorRegistrationDelegate . invokeBeanFactoryPostProcessors ( beanFactory , getBeanFactoryPostProcessors ( ) ) ; \n + \n + SINGLE \n + SINGLE \n + if ( beanFactory . getTempClassLoader ( ) == null && beanFactory . containsBean ( LOAD_TIME_WEAVER_BEAN_NAME ) ) { \n + beanFactory . addBeanPostProcessor ( new LoadTimeWeaverAwareProcessor ( beanFactory ) ) ; \n + beanFactory . setTempClassLoader ( new ContextTypeMatchClassLoader ( beanFactory . getBeanClassLoader ( ) ) ) ; \n + } \n } \n \n COMMENT", "msg_token": "Detect LoadTimeWeaver bean when declared through Bean method as well"} {"diff": " public abstract class TextFieldCompletionProvider implements TextCompletionProvi \n \n @ notnull \n public EditorTextField createEditor ( Project project ) { \n - return createEditor ( project , true ) ; \n - } \n - \n - @ notnull \n - public EditorTextField createEditor ( Project project , final boolean shouldHaveBorder ) { \n - return createEditor ( project , shouldHaveBorder , null ) ; \n + return createEditor ( project , true , null ) ; \n } \n \n @ notnull", "msg_token": "text completion remove unused method"} {"diff": " public class ScaleGestureDetector { \n mInputEventConsistencyVerifier . onTouchEvent ( event , NUMBER0 ) ; \n } \n \n + mCurrTime = event . getEventTime ( ) ; \n + \n final int action = event . getActionMasked ( ) ; \n \n final boolean streamComplete = action == MotionEvent . ACTION_UP || \n public class ScaleGestureDetector { \n mPrevSpanX = mCurrSpanX = spanX ; \n mPrevSpanY = mCurrSpanY = spanY ; \n mPrevSpan = mCurrSpan = span ; \n + mPrevTime = mCurrTime ; \n mInProgress = mListener . onScaleBegin ( this ) ; \n } \n \n public class ScaleGestureDetector { \n mPrevSpanX = mCurrSpanX ; \n mPrevSpanY = mCurrSpanY ; \n mPrevSpan = mCurrSpan ; \n + mPrevTime = mCurrTime ; \n } \n }", "msg_token": "Fix time related ScaleGestureDetector methods"} {"diff": " public class VerificationCollectorImplTest { \n assertThat ( result . getFailures ( ) . get ( NUMBER0 ) . getMessage ( ) ) . contains ( STRING0 ) ; \n } \n \n - @ ignore ( STRING1 ) \n + SINGLE \n public static class VerificationCollectorRuleInner { \n \n @ rule", "msg_token": "Removed the Ignore tag that was added with the last build as it causes the build to fail"} {"diff": " public class GlyphLayout implements Poolable { \n char ch = str . charAt ( i ) ; \n if ( ch == STRING0 ) { \n if ( i < start + NUMBER0 || i > start + NUMBER1 ) break ; SINGLE \n + if ( i - start <= NUMBER2 ) { SINGLE \n + for ( int ii = NUMBER3 , nn = NUMBER1 - ( i - start ) ; ii < nn ; ii ++ ) \n + colorInt = colorInt < < NUMBER4 ; \n + colorInt |= NUMBER5 ; \n + } \n Color color = colorPool . obtain ( ) ; \n colorStack . add ( color ) ; \n Color . rgba8888ToColor ( color , colorInt ) ; \n - if ( i <= start + NUMBER2 ) color . a = FLOAT0 ; SINGLE \n return i - start ; \n } \n if ( ch >= STRING1 && ch <= STRING2 )", "msg_token": "Fixed color parsing when RRGGBB or fewer chars"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyCharmEduInitialConfigurator { \n uiSettings . SHOW_MAIN_TOOLBAR = false ; \n codeInsightSettings . REFORMAT_ON_PASTE = CodeInsightSettings . NO_REFORMAT ; \n \n + Registry . get ( STRING0 ) . setValue ( true ) ; \n + \n GeneralSettings . getInstance ( ) . setShowTipsOnStartup ( false ) ; \n \n EditorSettingsExternalizable . getInstance ( ) . setVirtualSpace ( false ) ;", "msg_token": "Turn new settings order on in Edu"} {"diff": " public final class WebSubsystemElement extends AbstractSubsystemElement < WebSubsy \n host . writeContent ( streamWriter ) ; \n } \n } \n + streamWriter . writeEndElement ( ) ; \n } \n \n WebConnectorElement addConnector ( final String name ) {", "msg_token": "write end element"} {"diff": " public final class MapMaker extends GenericMapMaker < Object , Object > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class MapMaker extends GenericMapMaker < Object , Object > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class MapMaker extends GenericMapMaker < Object , Object > { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "document the difference between makeComputingMap and makeCache"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface Bat extends Ambient { } \n + public interface Bat extends Ambient { \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean isAwake ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + void setAwake ( boolean state ) ; \n + }", "msg_token": "Add awake flag for bats"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n class LeafBlockWrapper extends AbstractBlockWrapper { \n - SINGLE \n private static int CONTAIN_LINE_FEEDS = NUMBER0 ; \n private static int READ_ONLY = NUMBER1 ; \n private static int LEAF = NUMBER2 ; \n class LeafBlockWrapper extends AbstractBlockWrapper { \n private LeafBlockWrapper myNextBlock ; \n private SpacingImpl mySpaceProperty ; \n private IndentInside myLastLineIndent ; \n - private CharSequence myText ; \n \n public LeafBlockWrapper ( final Block block , \n CompositeBlockWrapper parent , \n class LeafBlockWrapper extends AbstractBlockWrapper { \n myLastLineIndent = null ; \n } \n \n - myText = model . getText ( getTextRange ( ) ) ; \n - \n myFlags = flagsValue ; \n } \n \n class LeafBlockWrapper extends AbstractBlockWrapper { \n return new TextRange ( myStart , myEnd ) ; \n } \n \n - \n - @ override \n - public String toString ( ) { \n - return myText . toString ( ) ; \n - } \n }", "msg_token": "debug info removed"} {"diff": " public class ContentView extends FrameLayout { \n boolean isLinkBubblePresent = false ; \n SINGLE \n for ( AppForUrl info : mAppsForUrl ) { \n + \n + SINGLE \n + if ( info . mResolveInfo == null || info . mResolveInfo . activityInfo == null ) { \n + CrashTracking . log ( STRING0 + info ) ; \n + continue ; \n + } \n + \n if ( info . mResolveInfo . activityInfo . packageName . startsWith ( STRING1 ) ) { \n isLinkBubblePresent = true ; \n break ;", "msg_token": "Handle null resolveInfo crash in ContentView"} {"diff": " import static NAMESPACE ; \n COMMENT \n public final class ConnectionSpec { \n \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n private static final CipherSuite [ ] APPROVED_CIPHER_SUITES = new CipherSuite [ ] { \n public final class ConnectionSpec { \n CipherSuite . TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA , \n CipherSuite . TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA , \n CipherSuite . TLS_DHE_RSA_WITH_AES_128_CBC_SHA , \n - CipherSuite . TLS_DHE_DSS_WITH_AES_128_CBC_SHA , \n CipherSuite . TLS_DHE_RSA_WITH_AES_256_CBC_SHA , \n CipherSuite . TLS_RSA_WITH_AES_128_GCM_SHA256 , \n CipherSuite . TLS_RSA_WITH_AES_128_CBC_SHA ,", "msg_token": "Drop our one remaining DSS cipher suite"} {"diff": " public class ChunkIconsManager \n Position pos = toDocumentPosition ( el , editor ) ; \n String text = editor . getSession ( ) . getLine ( pos . getRow ( ) ) ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + String lower = text . toLowerCase ( ) . trim ( ) ; \n + if ( lower . startsWith ( STRING0 ) ) \n + { \n + Pattern reREngine = Pattern . create ( STRING1 , STRING2 ) ; \n + if ( ! reREngine . test ( lower ) ) \n + return false ; \n + } \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n Pattern pattern = Pattern . create ( STRING3 , STRING2 ) ; \n Match match = pattern . match ( text , NUMBER0 ) ;", "msg_token": "only render chunk icons for R chunks"} {"diff": " public class TvShowCollection implements AdapteeCollection < TvShow > , Serializable \n } \n \n @ override public void removeAll ( Collection < TvShow > tvShows ) { \n - this . tvShows . addAll ( tvShows ) ; \n + this . tvShows . removeAll ( tvShows ) ; \n } \n \n public void clear ( ) {", "msg_token": "Fix bug related with addAll method in TvShowCollection"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SvnCheckinEnvironment implements CheckinEnvironment { \n private final SvnVcs mySvnVcs ; \n \n - public boolean showCheckinDialogInAnyCase ( ) { \n - return false ; \n - } \n - \n public SvnCheckinEnvironment ( SvnVcs svnVcs ) { \n mySvnVcs = svnVcs ; \n } \n public class SvnCheckinEnvironment implements CheckinEnvironment { \n return null ; \n } \n \n - public String prepareCheckinMessage ( String text ) { \n - return text ; \n - } \n - \n @ nullable \n public String getHelpId ( ) { \n return null ; \n public class SvnCheckinEnvironment implements CheckinEnvironment { \n return exceptions ; \n } \n \n + public boolean keepChangeListAfterCommit ( ChangeList changeList ) { \n + return false ; \n + } \n + \n private class KeepLocksComponent implements RefreshableOnComponent { \n private JCheckBox myKeepLocksBox ; \n private boolean myIsKeepLocks ;", "msg_token": "remove unused CheckinEnvironment methods add keepChangeListAfterCommit method"} {"diff": " public class MBeanFactory { \n String defaultHost , String baseDir ) throws Exception { \n \n if ( ! ( container instanceof Server ) ) { \n - throw new Exception ( ) ; \n + throw new Exception ( STRING0 ) ; \n } \n \n StandardEngine engine = new StandardEngine ( ) ;", "msg_token": "Add a message to the exception"} {"diff": " public class Glide { \n } \n \n @ override \n - public void onResourceReady ( Object resource , GlideAnimation < Object > glideAnimation ) { \n + public void onResourceReady ( Object resource , GlideAnimation < ? super Object > glideAnimation ) { \n SINGLE \n }", "msg_token": "Fix compilation warning in Glide"} {"diff": " public class PeerGroup extends AbstractIdleService { \n ExecutorService workerExecutor = Executors . newCachedThreadPool ( new PeerGroupThreadFactory ( ) ) ; \n NioClientSocketChannelFactory channelFactory = new NioClientSocketChannelFactory ( bossExecutor , workerExecutor ) ; \n ClientBootstrap bs = new ClientBootstrap ( channelFactory ) ; \n - bs . setOption ( STRING0 , NUMBER0 ) ; \n + bs . setOption ( STRING1 , NUMBER0 ) ; \n return bs ; \n }", "msg_token": "Fix typo that prevented connection timeouts from being set properly"} {"diff": " public class ID3Reader { \n COMMENT \n protected void skipBytes ( InputStream input , int number ) throws IOException { \n int skipped = NUMBER0 ; \n + if ( number <= NUMBER0 ) { \n + number = NUMBER1 ; \n + } \n while ( skipped < number ) { \n skipped += input . skip ( number - skipped ) ; \n }", "msg_token": "Prevented infinite loop in skipBytes"} {"diff": " import NAMESPACE ; \n \n public class ReturnsVoid implements Answer < Object > { \n \n - @ override \n public Object answer ( InvocationOnMock invocation ) throws Throwable { \n return null ; \n }", "msg_token": "removed redundant annotation"} {"diff": " public class ConversationFragment extends Fragment { \n conversation , timestamp ) ; \n messageList . clear ( ) ; \n messageList . addAll ( conversation . getMessages ( ) ) ; \n + updateStatusMessages ( ) ; \n messageListAdapter . notifyDataSetChanged ( ) ; \n if ( size != NUMBER0 ) { \n messagesLoaded = true ;", "msg_token": "added missing status messages after message scroll"} {"diff": " public class DatabaseBackend extends SQLiteOpenHelper { \n + AxolotlService . SQLiteAxolotlStore . ACCOUNT + STRING0 \n + AxolotlService . SQLiteAxolotlStore . NAME + STRING1 \n + AxolotlService . SQLiteAxolotlStore . OWN + STRING2 \n - + AxolotlService . SQLiteAxolotlStore . FINGERPRINT + STRING3 \n + + AxolotlService . SQLiteAxolotlStore . FINGERPRINT + STRING1 \n + AxolotlService . SQLiteAxolotlStore . TRUSTED + STRING2 \n + AxolotlService . SQLiteAxolotlStore . KEY + STRING4 \n + AxolotlService . SQLiteAxolotlStore . ACCOUNT \n - + STRING5 + Account . TABLENAME + STRING6 + Account . UUID + STRING7 \n + + STRING5 + Account . TABLENAME + STRING6 + Account . UUID + STRING8 \n + + STRING9 + AxolotlService . SQLiteAxolotlStore . ACCOUNT + STRING10 \n + + AxolotlService . SQLiteAxolotlStore . NAME + STRING10 \n + + AxolotlService . SQLiteAxolotlStore . FINGERPRINT \n + + STRING11 \n + STRING12 ; \n \n private DatabaseBackend ( Context context ) {", "msg_token": "Fix IdentityKey storage model"} {"diff": " public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio \n assertAcked ( client ( ) . admin ( ) . indices ( ) . prepareUpdateSettings ( indexName ) . setSettings ( ImmutableSettings . builder ( ) \n . put ( STRING0 , numReplicas ) \n ) . execute ( ) . actionGet ( ) ) ; \n - ensureGreen ( TimeValue . timeValueMinutes ( NUMBER0 ) , indexName ) ; \n + ensureGreen ( TimeValue . timeValueMinutes ( NUMBER1 ) , indexName ) ; \n logger . debug ( STRING1 , indexName , TimeValue . timeValueMillis ( System . currentTimeMillis ( ) - startTime ) ) ; \n logger . debug ( STRING2 , XContentHelper . toString ( client ( ) . admin ( ) . indices ( ) . prepareRecoveries ( indexName ) . get ( ) ) ) ;", "msg_token": "increasing timeout for replicas in static bwc tests to account"} {"diff": " public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe \n } \n } \n if ( compatibleMediaTypes . isEmpty ( ) ) { \n - throw new HttpMediaTypeNotAcceptableException ( allSupportedMediaTypes ) ; \n + throw new HttpMediaTypeNotAcceptableException ( producibleMediaTypes ) ; \n } \n \n List < MediaType > mediaTypes = new ArrayList < MediaType > ( compatibleMediaTypes ) ;", "msg_token": "Fix exception message about producible media types"} {"diff": " public class EditRolePermissionsAction extends PortletAction { \n String modelResource = ParamUtil . getString ( req , STRING0 ) ; \n \n String selResource = modelResource ; \n + \n if ( Validator . isNull ( modelResource ) ) { \n selResource = portletResource ; \n }", "msg_token": "Fix refresh bug"} {"diff": " public class DhnsGraphController implements GraphController { \n public Dhns newDhns ( Workspace workspace ) { \n Dhns dhns = new Dhns ( this ) ; \n workspace . getWorkspaceData ( ) . setData ( workspaceDataProvider . getWorkspaceDataKey ( ) , dhns ) ; \n - dhns . setCentralDynamicGraph ( new DynamicGraphImpl ( dhns , getClusteredDirectedGraph ( ) ) ) ; \n + dhns . setCentralDynamicGraph ( new DynamicGraphImpl ( dhns , getHierarchicalDirectedGraph ( ) ) ) ; \n return dhns ; \n } \n \n public class DynamicGraphImpl < T extends Graph > implements DynamicGraph { \n FilteredGraph filteredGraph = ( FilteredGraph ) graph ; \n filteredGraph . addNodePredicate ( new DynamicNodePredicate ( ) ) ; \n filteredGraph . addEdgePredicate ( new DynamicEdgePredicate ( ) ) ; \n + filteredGraph = ( FilteredGraph ) ( ( ClusteredGraphImpl ) graph ) . getClusteredGraph ( ) ; \n + filteredGraph . addNodePredicate ( new DynamicNodePredicate ( ) ) ; \n + filteredGraph . addEdgePredicate ( new DynamicEdgePredicate ( ) ) ; \n } \n \n public void setRange ( float from , float to ) {", "msg_token": "Fix bug with dynamic graph viz"} {"diff": " public class IQAuthHandler extends IQHandler implements IQAuthInfo { \n } \n SINGLE \n else { \n - if ( iq . elements ( ) . isEmpty ( ) ) { \n + if ( query . elements ( ) . isEmpty ( ) ) { \n SINGLE \n response = anonymousLogin ( session , packet ) ; \n }", "msg_token": "Fixed anonymous logins"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - \n public class ElasticsearchConfigurationTest { \n @ test \n public void testGetElasticSearchIndexPrefix ( ) throws RepositoryException , ValidationException { \n public class ElasticsearchConfigurationTest { \n \n @ test \n public void testIsClientNode ( ) throws ValidationException , RepositoryException { \n - final Map < String , String > props = Maps . newHashMap ( ) ; \n + final Map < String , String > props = new HashMap < > ( ) ; \n final ElasticsearchConfiguration configuration1 = new ElasticsearchConfiguration ( ) ; \n \n new JadConfig ( new InMemoryRepository ( ) , configuration1 ) . process ( ) ;", "msg_token": "Fix wrong Maps import in ElasticsearchConfiguration"} {"diff": " public class ODatabaseRecordThreadLocal extends ThreadLocal < ODatabaseRecord > { \n throw new ODatabaseException ( \n STRING0 ) ; \n } else { \n - db = Orient . instance ( ) . getDatabaseThreadFactory ( ) . getDb ( ) ; \n + db = Orient . instance ( ) . getDatabaseThreadFactory ( ) . getThreadDatabase ( ) ; \n if ( db == null ) { \n throw new ODatabaseException ( \n STRING0 ) ; \n public class DatabaseThreadFactoryTest { \n Orient . instance ( ) . registerThreadDatabaseFactory ( new ODatabaseThreadLocalFactory ( ) { \n \n @ override \n - public ODatabaseRecord getDb ( ) { \n + public ODatabaseRecord getThreadDatabase ( ) { \n return ODatabaseDocumentPool . global ( ) . acquire ( url , STRING1 , STRING1 ) ; \n } \n } ) ;", "msg_token": "Committing missing changed code"} {"diff": " public class HttpPanelSplitUi extends AbstractPanel { \n } \n \n private void setDisplayRequest ( HttpMessage msg ) { \n - String header = replaceHeaderForZapTextArea ( msg . getRequestHeader ( ) . toString ( ) ) ; \n - String body = msg . getRequestBody ( ) . toString ( ) ; \n + final String header = replaceHeaderForZapTextArea ( msg . getRequestHeader ( ) . toString ( ) ) ; \n + final String body = msg . getRequestBody ( ) . toString ( ) ; \n \n - getHttpPanelTabularModel ( ) . setText ( msg . getRequestBody ( ) . toString ( ) ) ; \n + getHttpPanelTabularModel ( ) . setText ( body ) ; \n \n getTxtHeader ( ) . setText ( header ) ; \n getTxtHeader ( ) . setCaretPosition ( NUMBER0 ) ;", "msg_token": "using local variable"} {"diff": " public class PresencePanel \n presenceOpPanel . setBorder ( BorderFactory . createTitledBorder ( \n Resources . getString ( STRING0 ) ) ) ; \n \n + xCapEnableBox . setSelected ( regform . getRegistration ( ) . isXCapEnable ( ) ) ; \n xCapEnableBox . addActionListener ( new ActionListener ( ) \n { \n public void actionPerformed ( ActionEvent evt ) \n public class PresencePanel \n = new TransparentPanel ( new BorderLayout ( NUMBER0 , NUMBER0 ) ) ; \n xCapServerUriPanel . add ( xCapServerUriLabel , BorderLayout . WEST ) ; \n xCapServerUriPanel . add ( xCapServerUriValue , BorderLayout . CENTER ) ; \n + String xcapUri = regform . getRegistration ( ) . getXCapServerUri ( ) ; \n + if ( xcapUri != null ) \n + xCapServerUriValue . setText ( xcapUri ) ; \n \n xCapButtonsPanel . add ( xCapEnableBox ) ; \n xCapButtonsPanel . add ( xCapServerUriPanel ) ;", "msg_token": "Correctly set the default values of the xcap fields form stays the same for the user"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ serviceprovider ( service = StatisticsUI . class ) \n + SINGLE \n public class HitsUI implements StatisticsUI { \n \n private final StatSettings settings = new StatSettings ( ) ;", "msg_token": "Remove HitsUI until repaired"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class StackValue { \n } \n \n public static void putUnitInstance ( InstructionAdapter v ) { \n - v . visitFieldInsn ( GETSTATIC , UNIT_TYPE . getInternalName ( ) , STRING0 , UNIT_TYPE . getDescriptor ( ) ) ; \n + v . visitFieldInsn ( GETSTATIC , UNIT_TYPE . getInternalName ( ) , JvmAbi . INSTANCE_FIELD , UNIT_TYPE . getDescriptor ( ) ) ; \n } \n \n protected void putAsBoolean ( InstructionAdapter v ) {", "msg_token": "fixed the getting Unit instance Unit VALUE Unit instance"} {"diff": " import NAMESPACE ; \n double earthRadius = FLOAT0 ; SINGLE \n int radius = NUMBER0 ; SINGLE \n \n - if ( cell . getLat ( ) != FLOAT1 && cell . getLon ( ) != FLOAT1 ) { \n + if ( Double . doubleToRawLongBits ( cell . getLat ( ) ) != NUMBER1 && \n + Double . doubleToRawLongBits ( cell . getLon ( ) ) != NUMBER1 ) { \n SINGLE \n GeoLocation currentLoc = GeoLocation . fromDegrees ( cell . getLat ( ) , cell . getLon ( ) ) ; \n \n import NAMESPACE ; \n . setNegativeButton ( R . string . open_cell_id_button_cancel , new DialogInterface . OnClickListener ( ) { \n @ override \n public void onClick ( DialogInterface dialog , int which ) { \n - SINGLE \n } \n } ) \n . setPositiveButton ( R . string . open_cell_id_button_ok , new DialogInterface . OnClickListener ( ) {", "msg_token": "fix double comp"} {"diff": " public class PostsAndPagesAdapter extends ArrayAdapter < SingleItemModel > { \n StatsViewHolder holder = ( StatsViewHolder ) rowView . getTag ( ) ; \n holder . setEntryTextOrLink ( currentRowData . getUrl ( ) , currentRowData . getTitle ( ) ) ; \n \n + holder . imgMore . setVisibility ( View . GONE ) ; \n + \n SINGLE \n holder . totalsTextView . setText ( FormatUtils . formatDecimal ( currentRowData . getTotals ( ) ) ) ;", "msg_token": "Do not show the Follow button in Followers email"} {"diff": " public class BaseBinarySpec extends AbstractBuildableModelElement implements Bin \n this . tasks = info . instantiator . newInstance ( DefaultBinaryTasksCollection . class , this , info . taskFactory ) ; \n \n sources = ModelMaps . addModelMapNode ( modelNode , LanguageSourceSet . class , STRING0 ) ; \n + namingScheme = DefaultBinaryNamingScheme . component ( componentName ( ) ) . withBinaryName ( name ) . withBinaryType ( getTypeName ( ) ) ; \n + } \n + \n + @ nullable \n + private String componentName ( ) { \n ComponentSpec component = getComponent ( ) ; \n - namingScheme = DefaultBinaryNamingScheme . component ( component == null ? null : component . getName ( ) ) . withBinaryName ( name ) . withBinaryType ( getTypeName ( ) ) ; \n + return component != null ? component . getName ( ) : null ; \n } \n \n @ override", "msg_token": "Introduce explaining method"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class EasyConfigMod { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public EasyConfigMod ( final Context context ) { \n this . context = context ; \n public class EasyConfigMod { \n \n return String . format ( Locale . US , STRING0 , hr , min , sec ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static boolean hasSdCard ( ) { \n + return Environment . MEDIA_MOUNTED . equals ( Environment . getExternalStorageState ( ) ) ; \n + } \n } \n +", "msg_token": "added hasSdCard method to EasyConfigMod"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ThemeBrowserFragment extends Fragment implements OnItemClickListene \n mListView = ( HeaderGridView ) view . findViewById ( R . id . theme_listview ) ; \n View header = inflater . inflate ( R . layout . theme_grid_cardview_header , null ) ; \n mListView . addHeaderView ( header ) ; \n + SearchView searchView = new SearchView ( getActivity ( ) ) ; \n + mListView . addHeaderView ( searchView ) ; \n mListView . setRecyclerListener ( this ) ; \n \n SINGLE", "msg_token": "Adding a searchView"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IpnbConfigurable implements SearchableConfigurable { \n @ override \n public boolean isModified ( ) { \n final String oldUrl = IpnbSettings . getInstance ( myProject ) . getURL ( ) ; \n - final String url = myFieldUrl . getText ( ) ; \n + final String url = StringUtil . trimEnd ( myFieldUrl . getText ( ) , STRING0 ) ; \n return ! url . equals ( oldUrl ) ; \n } \n \n @ override \n public void apply ( ) throws ConfigurationException { \n - IpnbSettings . getInstance ( myProject ) . setURL ( myFieldUrl . getText ( ) ) ; \n + String url = myFieldUrl . getText ( ) ; \n + url = StringUtil . trimEnd ( url , STRING0 ) ; \n + IpnbSettings . getInstance ( myProject ) . setURL ( url ) ; \n } \n \n @ override", "msg_token": "slash at the end of the URL prevents cells from running"} {"diff": " public class MavenProjectsCreator { \n } \n \n private Set < MavenProject > createNow ( Settings settings , File pomFile ) throws PlexusContainerException , PlexusConfigurationException , ComponentLookupException , MavenExecutionRequestPopulationException , ProjectBuildingException { \n - SINGLE \n - SINGLE \n - SINGLE \n ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration ( ) \n . setClassWorld ( new ClassWorld ( STRING0 , ClassWorld . class . getClassLoader ( ) ) ) \n . setName ( STRING1 ) ;", "msg_token": "Remove obsolete comment"} {"diff": " public class ConnectorTableLayout \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc for ConnectorTableLayout"} {"diff": " public class ZLoop \n } \n } \n } \n - zombies . clear ( ) ; \n SINGLE \n timers . addAll ( newTimers ) ; \n newTimers . clear ( ) ;", "msg_token": "Revert clear zombies after they are removed from timer list"} {"diff": " public class WorkDuration implements Serializable { \n workingDays += nbAdditionalDays ; \n workingHours = hours - ( nbAdditionalDays * hoursInDay ) ; \n } \n - return workingDays * DAY_POSITION_IN_LONG + workingHours * HOUR_POSITION_IN_LONG + minutes * MINUTE_POSITION_IN_LONG ; \n + return NUMBER0 * workingDays * DAY_POSITION_IN_LONG + workingHours * HOUR_POSITION_IN_LONG + minutes * MINUTE_POSITION_IN_LONG ; \n } \n \n public long toMinutes ( ) {", "msg_token": "Fix quality flaw"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SipProtocolProviderServiceLick \n \n SipSlickFixture . bc = context ; \n \n - addTestSuite ( TestAccountInstallation . class ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + addTestSuite ( TestAccountUninstallationPersistence . class ) ; \n \n context . registerService ( getClass ( ) . getName ( ) , this , properties ) ; \n } \n public class SipProtocolProviderServiceLick \n COMMENT \n public void stop ( BundleContext context ) \n { \n + \n } \n }", "msg_token": "temporarily remove some test methods as tested material is still unstable and i needed to commit for backup purposes"} {"diff": " public class ZeppelinServer extends Application { \n final ServletHolder SwaggerServlet = new ServletHolder ( new com . wordnik . swagger . jersey . config . JerseyJaxrsConfig ( ) ) ; \n SwaggerServlet . setName ( STRING0 ) ; \n SwaggerServlet . setInitParameter ( STRING1 , STRING2 ) ; \n - SwaggerServlet . setInitParameter ( STRING3 , STRING4 + port + STRING5 ) ; \n + SwaggerServlet . setInitParameter ( STRING3 , STRING4 + port + STRING6 ) ; \n SwaggerServlet . setInitOrder ( NUMBER0 ) ; \n \n SINGLE", "msg_token": "Change zeppelin rest api endpoint in swagger core"} {"diff": " public class XMLConfigWithSystemPropertyTest { \n public void testConfigurationWithFile ( ) throws Exception { \n URL url = getClass ( ) . getClassLoader ( ) . getResource ( STRING0 ) ; \n assertNotNull ( url ) ; \n - System . setProperty ( STRING1 , URLDecoder . decode ( url . getPath ( ) , STRING2 ) ) ; \n + String decodedURL = URLDecoder . decode ( url . getPath ( ) , STRING2 ) ; \n + System . setProperty ( STRING1 , decodedURL ) ; \n Config config = new XmlConfigBuilder ( ) . build ( ) ; \n - assertEquals ( url , config . getConfigurationUrl ( ) ) ; \n + URL file = new URL ( STRING3 ) ; \n + URL encodedURL = new URL ( file , decodedURL ) ; \n + assertEquals ( encodedURL , config . getConfigurationUrl ( ) ) ; \n } \n \n @ test ( expected = HazelcastException . class )", "msg_token": "made some changes on testConfigurationWithFile"} {"diff": " public class StudyCheckTask extends com . intellij . openapi . progress . Task . Backgroun \n if ( course . isAdaptive ( ) ) { \n ApplicationManager . getApplication ( ) . invokeLater ( \n ( ) - > { \n - StudyCheckUtils . showTestResultPopUp ( STRING0 , MessageType . ERROR . getPopupBackground ( ) , myProject ) ; \n + StudyCheckUtils . showTestResultPopUp ( STRING0 , MessageType . INFO . getPopupBackground ( ) , myProject ) ; \n StudyCheckUtils . showTestResultsToolWindow ( myProject , message , true ) ; \n } ) ; \n }", "msg_token": "Minor Fix after check balloon background color"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class NotificationsManagerImpl extends NotificationsManager implements No \n final NotificationSettings settings = NotificationsConfiguration . getSettings ( groupId ) ; \n NotificationDisplayType type = settings . getDisplayType ( ) ; \n String toolWindowId = NotificationsConfiguration . getNotificationsConfiguration ( ) . getToolWindowId ( groupId ) ; \n - if ( type == NotificationDisplayType . TOOL_WINDOW && toolWindowId == null ) { \n + if ( type == NotificationDisplayType . TOOL_WINDOW && \n + ( toolWindowId == null || project == null || Arrays . asList ( ToolWindowManager . getInstance ( project ) . getToolWindowIds ( ) ) . contains ( toolWindowId ) ) ) { \n type = NotificationDisplayType . BALLOON ; \n }", "msg_token": "when a toolwindow is not available show toolwindow notifications as plain balloons"} {"diff": " public final class From implements Sqlable { \n \n if ( mLimit != null ) { \n sql . append ( STRING0 ) ; \n + sql . append ( mLimit ) ; \n sql . append ( STRING1 ) ; \n }", "msg_token": "Fix bug in limit in From class"} {"diff": " public class Patches { \n public static final boolean SUN_BUG_ID_4503845 = SystemInfo . JAVA_VERSION . indexOf ( STRING0 ) != - NUMBER0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added error description"} {"diff": " public final class NetUtil { \n if ( file . exists ( ) ) { \n BufferedReader in = null ; \n try { \n - in = new BufferedReader ( new FileReader ( STRING0 ) ) ; \n + in = new BufferedReader ( new FileReader ( file ) ) ; \n somaxconn = Integer . parseInt ( in . readLine ( ) ) ; \n logger . debug ( STRING1 , somaxconn ) ; \n } catch ( Exception e ) {", "msg_token": "Remove duplicated code"} {"diff": " public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data \n @ override \n public void run ( ) { \n try { \n + final List < T > listItems = getListItems ( ) ; \n + \n SwingUtilities . invokeLater ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - mergeListItems ( myListModel , getListItems ( ) ) ; \n + mergeListItems ( myListModel , listItems ) ; \n \n if ( myList . getSelectedIndex ( ) < NUMBER0 ) { \n myList . setSelectedIndex ( myListModel . getSize ( ) > oldIndex ? oldIndex : NUMBER0 ) ;", "msg_token": "do not perform getListItems in EDT on update"} {"diff": " public class TestBundle extends TestJaxrsBase { \n final Response response = doGet ( uri , queryParams , DEFAULT_HTTP_TIMEOUT_SEC ) ; \n Assert . assertEquals ( response . getStatusCode ( ) , Status . OK . getStatusCode ( ) ) ; \n final String baseJson = response . getResponseBody ( ) ; \n - final BundleJson objFromJson = mapper . readValue ( baseJson , BundleJson . class ) ; \n + final List < BundleJson > objFromJson = mapper . readValue ( baseJson , new TypeReference < List < BundleJson > > ( ) { } ) ; \n + Assert . assertEquals ( objFromJson . size ( ) , NUMBER0 ) ; \n } \n \n @ test ( groups = STRING0 , enabled = true )", "msg_token": "Fix broken bundle jaxrs test after API change"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class InstanceIDService extends InstanceIDListenerService { \n @ override \n public void onTokenRefresh ( ) {", "msg_token": "removed unused import"} {"diff": " public class LocalSession { \n } \n \n public void handleCUIInitializationMessage ( String text ) { \n - if ( ! hasCUISupport ( ) ) { \n - setCUISupport ( true ) ; \n - } \n - \n String [ ] split = text . split ( STRING0 ) ; \n if ( split . length > NUMBER0 && split [ NUMBER1 ] . equalsIgnoreCase ( STRING1 ) ) { SINGLE \n + setCUISupport ( true ) ; \n try { \n setCUIVersion ( Integer . parseInt ( split [ NUMBER0 ] ) ) ; \n } catch ( NumberFormatException e ) {", "msg_token": "Only enable CUI support when the message is valid"} {"diff": " public class PostsActivity extends WPActionBarActivity implements OnPostSelected \n MenuInflater inflater = getSupportMenuInflater ( ) ; \n inflater . inflate ( R . menu . posts , menu ) ; \n refreshMenuItem = menu . findItem ( R . id . menu_refresh ) ; \n + \n + if ( isPage ) { \n + menu . findItem ( R . id . menu_new_post ) . setTitle ( R . string . new_page ) ; \n + } \n + \n if ( shouldAnimateRefreshButton ) { \n shouldAnimateRefreshButton = false ; \n startAnimatingRefreshButton ( refreshMenuItem ) ;", "msg_token": "Set new post page button title in action bar to New Page when in the pages list"} {"diff": " public final class Futures { \n } catch ( CancellationException e ) { \n throw e ; \n } catch ( ExecutionException e ) { \n - throw newWithCause ( UncheckedExecutionException . class , e . getCause ( ) ) ; \n + throw new UncheckedExecutionException ( e . getCause ( ) ) ; \n } catch ( RuntimeException e ) { \n - throw newWithCause ( UncheckedExecutionException . class , e ) ; \n + throw new UncheckedExecutionException ( e ) ; \n } \n }", "msg_token": "Call UncheckedExecutionException constructor instead of using reflection"} {"diff": " public class TimetableSnapshot { \n public TimetableSnapshot mutableCopy ( ) { \n TimetableSnapshot ret = new TimetableSnapshot ( ) ; \n ret . timetables = ( HashMap < TableTripPattern , Timetable > ) this . timetables . clone ( ) ; \n - new HashMap < TableTripPattern , Timetable > ( this . timetables ) ; \n return ret ; \n }", "msg_token": "remove extraneous constructor call"} {"diff": " public abstract class InplaceRefactoring { \n final PsiReference reference = ( myEditorFile != null ? \n myEditorFile : myElementToRename . getContainingFile ( ) ) \n . findReferenceAt ( myEditor . getCaretModel ( ) . getOffset ( ) ) ; \n - if ( reference != null && ! refs . contains ( reference ) ) { \n + if ( reference != null && reference . isReferenceTo ( myElementToRename ) && ! refs . contains ( reference ) ) { \n refs . add ( reference ) ; \n } \n }", "msg_token": "Inplace rename was renaming the wrong references"} {"diff": " public class JCMediaManager implements MediaPlayer . OnPreparedListener , MediaPlay \n } \n \n public JCMediaPlayerListener lastListener ( ) { \n - if ( listener == null ) \n + if ( lastListener == null ) \n return null ; \n return lastListener . get ( ) ; \n }", "msg_token": "fix a word"} {"diff": " public class RealmAsyncQueryTests { \n assertEquals ( NUMBER0 , realmResults . size ( ) ) ; \n \n Realm . asyncQueryExecutor . resume ( ) ; \n + workerThread . keepStrongReference . add ( realmResults ) ; \n } \n \n SINGLE \n public class RealmAsyncQueryTests { \n assertFalse ( firstAsync . isValid ( ) ) ; \n \n populateTestRealm ( workerThread . realm , NUMBER1 ) ; \n + workerThread . keepStrongReference . add ( firstAsync ) ; \n } \n \n @ test \n public class RealmAsyncQueryTests { \n } \n \n Realm . asyncQueryExecutor . resume ( ) ; \n + workerThread . keepStrongReference . add ( realmResults ) ; \n } \n \n SINGLE \n public class RealmAsyncQueryTests { \n } \n } ) ; \n Realm . asyncQueryExecutor . resume ( ) ; \n + workerThread . keepStrongReference . add ( allTypesAsync ) ; \n } \n \n SINGLE", "msg_token": "Fix async test strong reference problem"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class PostUploadServiceTest extends ServiceTestCase < PostUploadService > { \n protected Context testContext ; \n public class PostUploadServiceTest extends ServiceTestCase < PostUploadService > { \n } \n \n SINGLE \n + SINGLE \n + COMMENT \n public void testUploadMalformedPostNullPostId ( ) throws Exception { \n SINGLE \n SQLiteDatabase db = TestUtils . loadDBFromDump ( targetContext , testContext , STRING0 ) ; \n public class PostUploadServiceTest extends ServiceTestCase < PostUploadService > { \n assertTrue ( STRING1 , \n cancelCount [ NUMBER0 ] == NUMBER1 && notifyCount [ NUMBER0 ] == NUMBER2 ) ; \n } \n + COMMENT \n }", "msg_token": "comment a failing test temporarly won t fix until new editor"} {"diff": " public class JavaMethodsConflictResolver implements PsiConflictResolver { \n if ( method . isVarArgs ( ) ) return ; \n if ( method . getParameterList ( ) . getParametersCount ( ) == argumentsCount ) { \n parametersNumberMatch = true ; \n - break ; \n } \n } \n }", "msg_token": "varargs resolve bug"} {"diff": " public class HttpGenerator extends AbstractGenerator \n @ override \n public String toString ( ) \n { \n + Buffer header = _header ; \n + Buffer buffer = _buffer ; \n + Buffer content = _content ; \n return String . format ( STRING0 , \n getClass ( ) . getSimpleName ( ) , \n _state , \n - _header == null ? - NUMBER0 : _header . length ( ) , \n - _buffer == null ? - NUMBER0 : _buffer . length ( ) , \n - _content == null ? - NUMBER0 : _content . length ( ) ) ; \n + header == null ? - NUMBER0 : header . length ( ) , \n + buffer == null ? - NUMBER0 : buffer . length ( ) , \n + content == null ? - NUMBER0 : content . length ( ) ) ; \n } \n }", "msg_token": "Avoid debug NPE race"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class RedundantModifierCheck \n TokenTypes . INTERFACE_DEF , \n TokenTypes . CLASS_DEF } ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int [ ] getAcceptableTokens ( ) \n + { \n + return new int [ ] { } ; \n + } \n + \n + COMMENT \n + public int [ ] getRequiredTokens ( ) \n + { \n + return new int [ ] { TokenTypes . MODIFIERS , \n + TokenTypes . INTERFACE_DEF , \n + TokenTypes . CLASS_DEF } ; \n + } \n \n COMMENT \n public void visitToken ( DetailAST aAST ) \n public class RedundantModifierCheck \n SINGLE \n \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Prevent user from specifying tokens in a configuration file"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SMTestProxy extends AbstractTestProxy { \n public List < ? extends SMTestProxy > collectChildren ( ) { \n final List < ? extends SMTestProxy > allChildren = getChildren ( ) ; \n \n - final List < SMTestProxy > result = Lists . newArrayList ( ) ; \n + final List < SMTestProxy > result = null ; SINGLE \n \n result . addAll ( allChildren ) ;", "msg_token": "allow absent fileRef in PBXBuildFile"} {"diff": " public class ExecutionResult implements Iterable < Map < String , Object > > \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed compilation error"} {"diff": " public abstract class Context { \n @ intdef ( flag = true , \n value = { \n BIND_AUTO_CREATE , \n - BIND_AUTO_CREATE , \n BIND_DEBUG_UNBIND , \n BIND_NOT_FOREGROUND , \n BIND_ABOVE_CLIENT , \n BIND_ALLOW_OOM_MANAGEMENT , \n - BIND_WAIVE_PRIORITY \n + BIND_WAIVE_PRIORITY , \n + BIND_IMPORTANT , \n + BIND_ADJUST_WITH_ACTIVITY \n } ) \n @ retention ( RetentionPolicy . SOURCE ) \n public @ interface BindServiceFlags { }", "msg_token": "Add BIND_IMPORTANT to BindServiceFlags"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public enum Style { \n COMMENT \n COMMENT \n public static Style getByChar ( String code ) { \n - Validate . notNull ( code , STRING0 ) ; \n - Validate . isTrue ( code . length ( ) > NUMBER0 , STRING1 ) ; \n + checkNotNull ( code ) ; \n + checkArgument ( ! code . isEmpty ( ) , STRING2 ) ; \n \n return BY_CHAR . get ( code . charAt ( NUMBER0 ) ) ; \n }", "msg_token": "Switch Style to Preconditions"} {"diff": " public class IntentForwarderActivity extends Activity { \n String resolvedType = newIntent . resolveTypeIfNeeded ( getContentResolver ( ) ) ; \n boolean canForward = false ; \n try { \n - canForward = ipm . canForwardTo ( newIntent , resolvedType , callingUserId , \n + Intent selector = newIntent . getSelector ( ) ; \n + if ( selector == null ) { \n + selector = newIntent ; \n + } \n + canForward = ipm . canForwardTo ( selector , resolvedType , callingUserId , \n userDest . getIdentifier ( ) ) ; \n } catch ( RemoteException e ) { \n Slog . e ( TAG , STRING0 ) ;", "msg_token": "Using the selector to check if an intent can be forwarded"} {"diff": " THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE . \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface IActor \n COMMENT \n COMMENT \n COMMENT \n - public static < T extends IActor > T getReference ( Class < T > iActor , String id ) \n + static < T extends IActor > T getReference ( Class < T > iActor , String id ) \n { \n return ReferenceFactory . ref ( iActor , id ) ; \n }", "msg_token": "Removing unnecessary modifier and import"} {"diff": " public class Foreign extends Column { \n if ( foreignValues . size ( ) > NUMBER0 ) { \n \n if ( this . db != null ) { \n - for ( Object item : foreignValues ) { \n - try { \n - this . db . saveOrUpdate ( item ) ; \n - } catch ( DbException e ) { \n - LogUtils . e ( e . getMessage ( ) , e ) ; \n - } \n - } \n + this . db . saveOrUpdate ( foreignValues ) ; \n } \n \n Class foreignEntityType = ColumnUtils . getForeignEntityType ( this ) ;", "msg_token": "update Foreign java"} {"diff": " public abstract class AbstractBlackBoxTestCase extends TestCase { \n try { \n result = barcodeReader . decode ( source ) ; \n } catch ( ReaderException re ) { \n - System . out . println ( re ) ; \n + System . out . println ( re + STRING0 + rotationInDegrees + STRING1 ) ; \n return false ; \n } \n \n public abstract class AbstractBlackBoxTestCase extends TestCase { \n try { \n result = barcodeReader . decode ( source , TRY_HARDER_HINT ) ; \n } catch ( ReaderException re ) { \n - fail ( STRING2 ) ; \n + fail ( STRING3 + rotationInDegrees + STRING1 ) ; \n return false ; \n } \n if ( ! expectedFormat . equals ( result . getBarcodeFormat ( ) ) ) {", "msg_token": "Added rotation to unit test output for clarification"} {"diff": " public class NodeTraversal { \n sourceName = getSourceName ( n ) ; \n curNode = n ; \n pushScope ( s ) ; \n - traverseBranch ( n , n . getParent ( ) ) ; \n + for ( Node child = n . getFirstChild ( ) ; child != null ; ) { \n + Node next = child . getNext ( ) ; \n + traverseBranch ( child , n ) ; \n + child = next ; \n + } \n \n popScope ( ) ; \n } else {", "msg_token": "Fixing traverseAtScope in NodeTraversal to traverse all children in a BLOCK"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - SINGLE \n - @ ignore \n public class DynamoDbConfigurationSourceTest { \n \n @ test", "msg_token": "Enable the test now that it uses Amazon mock"} {"diff": " public class ProjectScope { \n private final ProjectFileIndex myFileIndex = projectRootManager . getFileIndex ( ) ; \n \n public boolean contains ( VirtualFile file ) { \n + if ( myFileIndex . isInLibraryClasses ( file ) ) return false ; \n + \n return file instanceof VirtualFileWindow || myFileIndex . isInContent ( file ) ; \n } \n \n public class ModuleWithDependentsScope extends GlobalSearchScope { \n if ( moduleOfFile == null ) return false ; \n if ( ! myModules . contains ( moduleOfFile ) ) return false ; \n if ( myOnlyTests && ! myProjectFileIndex . isInTestSourceContent ( file ) ) return false ; \n + if ( myProjectFileIndex . isInLibraryClasses ( file ) ) return false ; \n return true ; \n }", "msg_token": "our most used scopes didn t honor their own search in libraries flag"} {"diff": " public class ByteBuddyAgent { \n @ override \n @ suppressfbwarnings ( value = STRING0 , justification = STRING1 ) \n public Accessor attempt ( ) { \n - File toolsJar = new File ( System . getProperty ( JAVA_HOME_PROPERTY ) . replace ( STRING2 , STRING3 ) + STRING4 + toolsJarPath ) ; \n + File toolsJar = new File ( System . getProperty ( JAVA_HOME_PROPERTY ) , toolsJarPath ) ; \n + System . out . println ( STRING5 + toolsJar + STRING6 + toolsJar . isFile ( ) ) ; \n try { \n return toolsJar . isFile ( ) && toolsJar . canRead ( ) \n ? Accessor . Simple . of ( new URLClassLoader ( new URL [ ] { toolsJar . toURI ( ) . toURL ( ) } , BOOTSTRAP_CLASS_LOADER ) )", "msg_token": "Fixed property lookup"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class ActivityThread { \n \n Security . addProvider ( new AndroidKeyStoreProvider ( ) ) ; \n \n + SINGLE \n + final File configDir = Environment . getUserConfigDirectory ( UserHandle . myUserId ( ) ) ; \n + TrustedCertificateStore . setDefaultUserDirectory ( configDir ) ; \n + \n Process . setArgV0 ( STRING0 ) ; \n \n Looper . prepareMainLooper ( ) ;", "msg_token": "Choose CA certificate storage according to userId"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Renderer { \n df . setTimeZone ( TimeZone . getTimeZone ( STRING0 ) ) ; \n String ds = df . format ( new Date ( sptRequestA . dateTime * NUMBER0 ) ) ; \n shadowWrite ( image , ds , sptRequestA . from ) ; \n + \n + Graphics2D g2d = image . createGraphics ( ) ; \n + g2d . setComposite ( AlphaComposite . getInstance ( AlphaComposite . SRC ) ) ; \n + BufferedImage legend = Tile . getLegend ( renderRequest . style , NUMBER1 , NUMBER2 ) ; \n + g2d . drawImage ( legend , NUMBER3 , image . getHeight ( ) - NUMBER2 , null ) ; \n + g2d . dispose ( ) ; \n } \n - \n + \n SINGLE \n if ( renderRequest . format . toString ( ) . equals ( STRING1 ) ) { \n GridCoverage2D gc = tile . getGridCoverage2D ( image ) ;", "msg_token": "add legend to WMS responses with timestamps"} {"diff": " public abstract class ResponseBody implements Closeable { \n return contentType != null ? contentType . charset ( UTF_8 ) : UTF_8 ; \n } \n \n - @ override public void close ( ) throws IOException { \n - source ( ) . close ( ) ; \n + @ override public void close ( ) { \n + Util . closeQuietly ( source ( ) ) ; \n } \n \n COMMENT", "msg_token": "Do not burden application code with close failures"} {"diff": " public final class BluetoothAdapter { \n COMMENT \n public static final int STATE_DISCONNECTING = NUMBER0 ; \n \n - COMMENT \n - COMMENT \n - public static final int STATE_ADVERTISE_STARTING = NUMBER1 ; \n - COMMENT \n - public static final int STATE_ADVERTISE_STARTED = NUMBER2 ; \n - COMMENT \n - public static final int STATE_ADVERTISE_STOPPING = NUMBER3 ; \n - COMMENT \n - public static final int STATE_ADVERTISE_STOPPED = NUMBER0 ; \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static final int STATE_ADVERTISE_FORCE_STOPPING = NUMBER4 ; \n - \n COMMENT \n public static final String BLUETOOTH_MANAGER_SERVICE = STRING0 ; \n \n - COMMENT \n - public static final int ADVERTISE_CALLBACK_SUCCESS = NUMBER1 ; \n - \n private static final int ADDRESS_LENGTH = NUMBER5 ; \n \n private static final int CONTROLLER_ENERGY_UPDATE_TIMEOUT_MILLIS = NUMBER6 ;", "msg_token": "delete BLE advertising related hidden state references in Bluetooth Adapter"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class MailMessage extends DefaultMessage { \n \n @ override \n public String toString ( ) { \n - if ( mailMessage != null ) { \n - return STRING0 + MailUtils . dumpMessage ( mailMessage ) ; \n - } else { \n - return STRING0 + getBody ( ) ; \n - } \n + SINGLE \n + return STRING1 + ObjectHelper . getIdentityHashCode ( this ) ; \n } \n \n public MailMessage copy ( ) {", "msg_token": "Do not dump mail content in toString of mail message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyUserSkeletonsUtil { \n public static VirtualFile getUserSkeletonsDirectory ( ) { \n if ( ourUserSkeletonsDirectory == null ) { \n for ( String path : getPossibleUserSkeletonsPaths ( ) ) { \n - ourUserSkeletonsDirectory = LocalFileSystem . getInstance ( ) . findFileByPath ( path ) ; \n + ourUserSkeletonsDirectory = StandardFileSystems . local ( ) . findFileByPath ( path ) ; \n if ( ourUserSkeletonsDirectory != null ) { \n break ; \n }", "msg_token": "Get the local file system via StandardFileSystems local"} {"diff": " public class WindowInsetsCompat { \n mInsets = insets ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public WindowInsetsCompat ( WindowInsetsCompat src ) { \n mInsets = src == null ? null : IMPL . getSourceWindowInsets ( src . mInsets ) ; \n }", "msg_token": "Add missing docs on WindowInsetsCompat"} {"diff": " abstract class RippleComponent { \n \n if ( mHasPendingHardwareAnimator ) { \n mHasPendingHardwareAnimator = false ; \n + \n + SINGLE \n + SINGLE \n + jumpValuesToExit ( ) ; \n } \n }", "msg_token": "Manually jump ripples when preemptively aborting RT animation"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class DefaultConversionServiceTests { \n assertEquals ( STRING0 , conversionService . convert ( new SSN ( STRING0 ) , String . class ) ) ; \n } \n \n - @ test ( expected = ConversionFailedException . class ) \n + @ test ( expected = ConverterNotFoundException . class ) \n public void convertObjectToObjectNoValueOFMethodOrConstructor ( ) { \n DefaultConversionService conversionService = new DefaultConversionService ( ) ; \n conversionService . convert ( new Long ( NUMBER0 ) , SSN . class ) ;", "msg_token": "updated test to reflect correct behavior"} {"diff": " public class InputStreamBodyGenerator implements BodyGenerator { \n public long read ( ByteBuffer buffer ) throws IOException { \n \n SINGLE \n - chunk = new byte [ buffer . capacity ( ) - NUMBER0 ] ; \n + chunk = new byte [ buffer . capacity ( ) - NUMBER1 ] ; \n \n int read = - NUMBER2 ; \n - \n try { \n read = inputStream . read ( chunk ) ; \n } catch ( IOException ex ) {", "msg_token": "More safe guess still need a better solution"} {"diff": " public abstract class Property < TYPE > extends Field < TYPE > implements Cloneable { \n } \n \n @ override \n - public < RETURN , PARAMETER > RETURN accept ( PropertyVisitor < RETURN , PARAMETER > visitor , PARAMETER data ) { \n - return visitor . visitString ( this , data ) ; \n - } \n - \n - @ override \n - public < RETURN , DST , PARAMETER > RETURN accept ( PropertyWritingVisitor < RETURN , DST , PARAMETER > visitor , \n - DST dst , PARAMETER data ) { \n - return visitor . visitString ( this , dst , data ) ; \n - } \n - \n - @ override \n @ suppresswarnings ( STRING0 ) \n public EnumProperty < T > as ( String newAlias ) { \n return ( EnumProperty < T > ) super . as ( newAlias ) ;", "msg_token": "Remove rendundant overrides"} {"diff": " public class RecentProjectsManager implements ApplicationComponent , JDOMExternal \n } \n \n private static String getProjectPath ( Project project ) { \n - return project . getLocation ( ) ; \n + return project . getLocation ( ) . replace ( STRING0 , File . separatorChar ) ; \n } \n \n private static class ReopenProjectAction extends AnAction {", "msg_token": "using right separators on windows"} {"diff": " class WidgetHelper { \n } else if ( TextUtils . equals ( section , context . getString ( R . string . pref_widget_section_value_best ) ) ) { \n title = context . getString ( R . string . title_activity_best ) ; \n destination = BestActivity . class ; \n - } else if ( TextUtils . equals ( section , context . getString ( R . string . pref_widget_section_value_best ) ) ) { \n + } else if ( TextUtils . equals ( section , context . getString ( R . string . pref_widget_section_value_top ) ) ) { \n title = context . getString ( R . string . title_activity_list ) ; \n destination = ListActivity . class ; \n } else {", "msg_token": "Fix wrong widget section"} {"diff": " public class SemanticPipeline { \n void assignLexerTokenTypes ( Grammar g , List < GrammarAST > tokensDefs ) { \n Grammar G = g . getOutermostGrammar ( ) ; SINGLE \n for ( GrammarAST def : tokensDefs ) { \n - if ( def . getType ( ) == ANTLRParser . TOKEN_REF ) G . defineTokenName ( def . getText ( ) ) ; \n + SINGLE \n + if ( Grammar . isTokenName ( def . getText ( ) ) ) { \n + G . defineTokenName ( def . getText ( ) ) ; \n + } \n } \n \n COMMENT", "msg_token": "fix so tokens A B Actually defines them"} {"diff": " public class StreamWithActorsTest extends ActorBaseTest \n final Stage stage2 = createStage ( ) ; \n AsyncStream < String > test = AsyncStream . getStream ( String . class , STRING0 ) ; \n \n - hello . doUnSubscribe ( STRING0 ) ; \n + hello . doUnSubscribe ( STRING0 ) . join ( ) ; \n test . post ( STRING1 ) . join ( ) ; \n assertFalse ( fakeSync . get ( STRING2 ) . isDone ( ) ) ; \n dumpMessages ( ) ;", "msg_token": "Fixing one stream test"} {"diff": " public final class Intersector { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n static public boolean intersectRayBoundsFast ( Ray ray , BoundingBox box ) { \n public class Quaternion implements Serializable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public Quaternion setFromAxes ( float xx , float xy , float xz , \n float yx , float yy , float yz ,", "msg_token": "fixed Javadoc warnings"} {"diff": " public class J3MLoader implements AssetLoader { \n technique = new TechniqueDef ( null ) ; \n } else if ( split . length == NUMBER0 ) { \n String techName = split [ NUMBER1 ] ; \n - if ( techName . equals ( STRING0 ) ) { \n - throw new UnsupportedOperationException ( \n - STRING1 + key + STRING2 \n - + STRING3 ) ; \n - } \n technique = new TechniqueDef ( techName ) ; \n } else { \n throw new IOException ( STRING4 ) ;", "msg_token": "Remove useless check against material technique name being called FixedFunc"} {"diff": " public class JBTabbedTerminalWidget extends TabbedTerminalWidget implements Disp \n } \n \n @ override \n + public int indexOfComponent ( Component component ) { \n + for ( int i = NUMBER0 ; i < myTabs . getTabCount ( ) ; i ++ ) { \n + if ( component . equals ( myTabs . getTabAt ( i ) . getComponent ( ) ) ) { \n + return i ; \n + } \n + } \n + \n + return - NUMBER1 ; \n + } \n + \n + @ override \n public int indexOfTabComponent ( Component component ) { \n return NUMBER0 ; SINGLE \n }", "msg_token": "Implement a new method to match the API"} {"diff": " public class StatsUtils { \n Date date = new Date ( ) ; \n SimpleDateFormat gmtDf = new SimpleDateFormat ( STRING0 ) ; \n \n + if ( blogTimeZoneOption == null ) { \n + AppLog . w ( T . UTILS , STRING1 ) ; \n + return gmtDf . format ( date ) ; \n + } \n + \n if ( blogTimeZoneOption . equals ( STRING2 ) ) { \n gmtDf . setTimeZone ( TimeZone . getTimeZone ( STRING3 ) ) ; \n } else if ( blogTimeZoneOption . startsWith ( STRING4 ) ) {", "msg_token": "Add a not null checking of blogTimeZoneOption in getCurrentDateTZ"} {"diff": " package NAMESPACE ; \n @ deprecated \n public interface Clock \n { \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n Clock SYSTEM_CLOCK = new Clock ( ) \n { \n @ override \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public class FrozenClock implements Clock \n { \n private final long nanos ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n public class FakeClock implements Clock \n { \n private volatile long time ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + @ deprecated \n public class TickingClock implements Clock \n { \n private long currentNanoTime ;", "msg_token": "Added more deprecation flags and info to Clock implementations"} {"diff": " public class PersistenceWindowPool implements WindowPool \n { \n brickSize = Integer . MAX_VALUE ; \n } \n + brickSize = ( brickSize / blockSize ) * blockSize ; \n if ( brickSize == NUMBER0 ) \n { \n brickSize = blockSize ; \n } \n - brickSize = ( brickSize / blockSize ) * blockSize ; \n brickCount = ( int ) ( fileSize / brickSize ) ; \n } \n else", "msg_token": "Fix a division by zero"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class SpdyFrameEncoder extends MessageToByteEncoder { \n + public class SpdyFrameEncoder extends MessageToByteEncoder < Object > { \n \n private final int version ; \n private volatile boolean finished ;", "msg_token": "Fix compiler warning"} {"diff": " public class NeoTransactionIndexApplier extends NeoCommandHandler . Adapter \n this . propertyLoader = propertyLoader ; \n } \n \n - public void done ( ) \n + @ override \n + public void close ( ) \n { \n if ( ! labelUpdates . isEmpty ( ) ) \n { \n public class NeoTransactionStoreApplier extends NeoCommandHandler . Adapter \n return true ; \n } \n \n - public void done ( ) \n + @ override \n + public void close ( ) \n { \n if ( recovery ) \n {", "msg_token": "Properly closes command appliers again"} {"diff": " public class RemoteFileProducer < T > extends GenericFileProducer < T > implements Ser \n \n public void process ( Exchange exchange ) throws Exception { \n Exchange remoteExchange = getEndpoint ( ) . createExchange ( exchange ) ; \n - processExchange ( remoteExchange ) ; \n + String target = createFileName ( exchange ) ; \n + processExchange ( remoteExchange , target ) ; \n ExchangeHelper . copyResults ( exchange , remoteExchange ) ; \n }", "msg_token": "Fixed compiler error due API change in processExchange method"} {"diff": " public abstract class BaseActivity extends SherlockFragmentActivity implements \n if ( isAutoUpdateEnabled ) { \n SINGLE \n long now = System . currentTimeMillis ( ) ; \n - final long previousUpdateTime = prefs . getLong ( \n + long previousUpdateTime = prefs . getLong ( \n SeriesGuidePreferences . KEY_LASTUPDATE , NUMBER0 ) ; \n + SINGLE \n + SINGLE \n + if ( previousUpdateTime == NUMBER0 ) { \n + previousUpdateTime = now ; \n + prefs . edit ( ) . putLong ( SeriesGuidePreferences . KEY_LASTUPDATE , now ) \n + . commit ( ) ; \n + } \n + \n final boolean isTime = ( now - previousUpdateTime ) > NUMBER1 * DateUtils . MINUTE_IN_MILLIS ; \n \n if ( isTime ) {", "msg_token": "Move last auto update default setter back into BaseActivity similar to auto backup"} {"diff": " public class ZenCodingTemplate extends CustomLiveTemplateBase { \n @ override \n public void expand ( @ notnull String key , @ notnull CustomTemplateCallback callback ) { \n ZenCodingGenerator defaultGenerator = findApplicableDefaultGenerator ( callback . getContext ( ) , false ) ; \n - assert defaultGenerator != null ; \n + if ( defaultGenerator == null ) { \n + LOG . error ( STRING0 + key + STRING1 + callback . getEditor ( ) . getCaretModel ( ) . getOffset ( ) + STRING2 , \n + AttachmentFactory . createAttachment ( callback . getEditor ( ) . getDocument ( ) ) ) ; \n + return ; \n + } \n try { \n expand ( key , callback , defaultGenerator , Collections . < ZenCodingFilter > emptyList ( ) , true , Registry . intValue ( STRING3 ) ) ; \n }", "msg_token": "Add diagnostic info"} {"diff": " public class PhoneStatusBar extends BaseStatusBar { \n mGestureRec . add ( event ) ; \n } \n \n - setInteracting ( true ) ; \n + if ( mStatusBarWindowState == WINDOW_STATE_SHOWING ) { \n + setInteracting ( true ) ; \n + } \n return false ; \n } \n \n public class PhoneStatusBar extends BaseStatusBar { \n && mStatusBarWindowState != state ) { \n mStatusBarWindowState = state ; \n if ( DEBUG_WINDOW_STATE ) Log . d ( TAG , STRING0 + windowStateToString ( state ) ) ; \n - mStatusBarWindow . setEnabled ( showing ) ; \n if ( ! showing ) { \n mStatusBarView . collapseAllPanels ( false ) ; \n } \n public class PhoneStatusBar extends BaseStatusBar { \n && mNavigationBarWindowState != state ) { \n mNavigationBarWindowState = state ; \n if ( DEBUG_WINDOW_STATE ) Log . d ( TAG , STRING1 + windowStateToString ( state ) ) ; \n - mNavigationBarView . setEnabled ( showing ) ; \n } \n }", "msg_token": "Don t ever disable the status nav bar"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractCamelContextFactoryBean < T extends ModelCamelContex \n LOG . info ( STRING0 , streamCachingStrategy ) ; \n getContext ( ) . setStreamCachingStrategy ( streamCachingStrategy ) ; \n } \n + MessageHistoryFactory messageHistoryFactory = getBeanForType ( MessageHistoryFactory . class ) ; \n + if ( messageHistoryFactory != null ) { \n + LOG . info ( STRING1 , messageHistoryFactory ) ; \n + getContext ( ) . setMessageHistoryFactory ( messageHistoryFactory ) ; \n + } \n } \n }", "msg_token": "Introduce a MessageHistoryFactory"} {"diff": " public interface IMountService extends IInterface { \n static final int ENCRYPTION_STATE_NONE = NUMBER0 ; \n COMMENT \n static final int ENCRYPTION_STATE_OK = NUMBER1 ; \n - COMMENT \n + COMMENT \n static final int ENCRYPTION_STATE_ERROR_UNKNOWN = - NUMBER0 ; \n - COMMENT \n + COMMENT \n static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = - NUMBER2 ; \n + COMMENT \n + static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = - NUMBER3 ; \n + COMMENT \n + static final int ENCRYPTION_STATE_ERROR_CORRUPT = - NUMBER4 ; \n \n COMMENT \n COMMENT", "msg_token": "Add constants so we can distinguish decryption failures"} {"diff": " public final class ClientHandler extends SimpleChannelInboundHandler < RPCMessage > \n COMMENT \n COMMENT \n public ClientHandler ( ) { \n - mListeners = new HashSet < ResponseListener > ( NUMBER0 ) ; \n + mListeners = new HashSet < > ( NUMBER0 ) ; \n } \n \n COMMENT", "msg_token": "SMALLFIX Removed explicit type argument in ClientHandler"} {"diff": " public final class Native { \n return null ; \n try { \n ClassLoader cl = Native . class . getClassLoader ( ) ; \n - Method m = ClassLoader . class . getMethod ( STRING0 , new Class [ ] { String . class } ) ; \n + Method m = ClassLoader . class . getDeclaredMethod ( STRING0 , new Class [ ] { String . class } ) ; \n m . setAccessible ( true ) ; \n String libpath = ( String ) m . invoke ( cl , new Object [ ] { libName } ) ; \n if ( libpath != null ) {", "msg_token": "Fix JNLP class loader method lookup"} {"diff": " public class GradientDrawable extends Drawable { \n } \n \n @ override \n + public ColorFilter getColorFilter ( ) { \n + return mColorFilter ; \n + } \n + \n + @ override \n public void setColorFilter ( ColorFilter cf ) { \n if ( cf != mColorFilter ) { \n mColorFilter = cf ;", "msg_token": "Implement GradientDrawable getColorFilter"} {"diff": " public final class Driver { \n if ( cmdLine . hasOption ( inputOpt ) ) { SINGLE \n File file = new File ( cmdLine . getValue ( inputOpt ) . toString ( ) ) ; \n if ( ! file . isDirectory ( ) ) { \n - throw new IllegalArgumentException ( STRING0 + file . getName ( ) + \n + throw new IllegalArgumentException ( STRING0 + file . getAbsolutePath ( ) + \n STRING1 ) ; \n }", "msg_token": "Fixed error message to print full import path"} {"diff": " public class LuceneInvertedIndex implements InvertedIndex , IndexReader . ReaderClos \n private VocabCache vocabCache ; \n public final static String WORD_FIELD = STRING0 ; \n private int numDocs = NUMBER0 ; \n - private List < List < VocabWord > > words = new CopyOnWriteArrayList < > ( ) ; \n + private List < List < VocabWord > > words = Collections . synchronizedList ( new ArrayList < List < VocabWord > > ( ) ) ; \n private boolean cache = true ; \n private transient ExecutorService indexManager ; \n private AtomicBoolean indexBeingCreated = new AtomicBoolean ( false ) ;", "msg_token": "better write performance"} {"diff": " class Clicker { \n } \n eventTime = SystemClock . uptimeMillis ( ) ; \n event = MotionEvent . obtain ( downTime , eventTime , MotionEvent . ACTION_MOVE , \n - x + ViewConfiguration . getTouchSlop ( ) / NUMBER0 , \n - y + ViewConfiguration . getTouchSlop ( ) / NUMBER0 , NUMBER1 ) ; \n + x + ViewConfiguration . get ( inst . getTargetContext ( ) ) . getScaledTouchSlop ( ) / NUMBER0 , \n + y + ViewConfiguration . get ( inst . getTargetContext ( ) ) . getScaledTouchSlop ( ) / NUMBER0 , NUMBER1 ) ; \n inst . sendPointerSync ( event ) ; \n if ( time > NUMBER1 ) \n sleeper . sleep ( time ) ;", "msg_token": "Replaced deprecated method in Clicker java"} {"diff": " public class MappedField { \n } \n if ( isMap ( ) ) { \n sb . append ( STRING0 ) ; \n - sb . append ( STRING1 ) . append ( getMapKeyClass ( ) . getSimpleName ( ) ) ; \n + if ( getMapKeyClass ( ) != null ) \n + sb . append ( STRING1 ) . append ( getMapKeyClass ( ) . getSimpleName ( ) ) ; \n + else \n + sb . append ( STRING2 ) ; \n } \n \n if ( isSet ( ) ) \n public class QueryImpl < T > extends CriteriaContainerImpl implements Query < T > , Cri \n results . add ( ent ) ; \n \n if ( log . isTraceEnabled ( ) ) \n - log . trace ( String . format ( STRING3 , \n + log . trace ( String . format ( STRING4 , \n dbColl . getName ( ) , \n results . size ( ) , \n iter . getDriverTime ( ) ,", "msg_token": "fixed logging related errors"} {"diff": " public class TheTVDB { \n if ( episodeIDs . containsKey ( episodeId ) ) { \n SINGLE \n if ( episodeIDs . get ( episodeId ) < values . getAsLong ( Episodes . LASTEDIT ) ) { \n - SINGLE \n + SINGLE \n batch . add ( DBUtils . buildEpisodeOp ( values , false ) ) ; \n + } else { \n + SINGLE \n + ContentValues smallValues = new ContentValues ( ) ; \n + smallValues . put ( Episodes . _ID , values . getAsString ( Episodes . _ID ) ) ; \n + smallValues . put ( Episodes . RATING , values . getAsString ( Episodes . RATING ) ) ; \n + batch . add ( DBUtils . buildEpisodeOp ( smallValues , false ) ) ; \n } \n } else { \n SINGLE", "msg_token": "Always update the rating for episodes"} {"diff": " import NAMESPACE ; \n public abstract class Message < T extends Message < T > > implements Serializable { \n private static final long serialVersionUID = NUMBER0 L ; \n \n - final transient TagMap tagMap ; \n + final TagMap tagMap ; \n \n COMMENT \n - transient int cachedSerializedSize = NUMBER0 ; \n + int cachedSerializedSize = NUMBER0 ; \n \n COMMENT \n - protected transient int hashCode = NUMBER0 ; \n + protected int hashCode = NUMBER0 ; \n \n protected Message ( TagMap tagMap ) { \n if ( tagMap == null ) {", "msg_token": "Remove needless transient modifier"} {"diff": " public class GrailsDispatcherServlet extends DispatcherServlet { \n \n finally { \n if ( ! participate ) { \n + if ( ! FlushMode . NEVER . equals ( session . getFlushMode ( ) ) ) { \n + session . flush ( ) ; \n + } \n SINGLE \n TransactionSynchronizationManager . unbindResource ( sessionFactory ) ; \n logger . debug ( STRING0 ) ;", "msg_token": "added code to flush session following call to bootstrap classes so that changes to persistent instances are executed"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n public class SearchCoreFactory { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n \n - SINGLE \n SINGLE \n SINGLE \n \n public class SearchCoreFactory { \n \n SINGLE \n \n + SINGLE \n + \n + SINGLE \n SINGLE \n - SINGLE \n SINGLE \n \n SINGLE", "msg_token": "Fix category filter"} {"diff": " public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU \n log . debug ( sm . getString ( STRING0 , connectionId ) , ioe ) ; \n } \n close ( ) ; \n - result = SocketState . CLOSED ; \n break ; \n } \n \n public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU \n log . debug ( sm . getString ( STRING0 , connectionId ) , ioe ) ; \n } \n close ( ) ; \n - result = SocketState . CLOSED ; \n break ; \n } \n \n public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU \n SINGLE \n SINGLE \n close ( ) ; \n - result = SocketState . CLOSED ; \n break ; \n }", "msg_token": "Remove unnecessary code"} {"diff": " public class Scroller { \n SINGLE \n mCurrY = Math . min ( mCurrY , mMaxY ) ; \n mCurrY = Math . max ( mCurrY , mMinY ) ; \n - \n + \n + if ( mCurrX == mFinalX && mCurrY == mFinalY ) { \n + mFinished = true ; \n + } \n + \n break ; \n } \n }", "msg_token": "Fix a bug that could cause flings to last too long using a Scroller"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class TableAlreadyExistsException \n - extends NotFoundException \n + extends PrestoException \n { \n private final SchemaTableName tableName ; \n \n public class TableAlreadyExistsException \n \n public TableAlreadyExistsException ( SchemaTableName tableName , String message ) \n { \n - super ( message ) ; \n + super ( ALREADY_EXISTS , message ) ; \n this . tableName = tableName ; \n } \n \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n \n public class ViewAlreadyExistsException \n - extends NotFoundException \n + extends PrestoException \n { \n private final SchemaTableName viewName ; \n \n public class ViewAlreadyExistsException \n \n public ViewAlreadyExistsException ( SchemaTableName viewName , String message ) \n { \n - super ( message ) ; \n + super ( ALREADY_EXISTS , message ) ; \n this . viewName = viewName ; \n }", "msg_token": "Fix Hive AlreadyExists exceptions"} {"diff": " public class State_ContentView extends ControllerState { \n mCanvas . fadeInTargets ( ) ; \n } \n \n - mTouchBubble . doSnap ( mCanvas , mTargetX , mTargetY ) ; \n + if ( mDidMove ) { \n + mTouchBubble . doSnap ( mCanvas , mTargetX , mTargetY ) ; \n + } \n return true ; \n }", "msg_token": "Fix bug with snapping being active when switching content view bubbles"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class BooleanFormPropertyRenderer extends AbstractFormPropertyRenderer { \n @ override \n public Field getPropertyField ( FormProperty formProperty ) { \n \n - Button button = new Button ( getPropertyLabel ( formProperty ) ) ; \n - button . setRequired ( formProperty . isRequired ( ) ) ; \n - button . setEnabled ( formProperty . isWritable ( ) ) ; \n + CheckBox checkBox = new CheckBox ( getPropertyLabel ( formProperty ) ) ; \n + checkBox . setRequired ( formProperty . isRequired ( ) ) ; \n + checkBox . setEnabled ( formProperty . isWritable ( ) ) ; \n \n if ( formProperty . getValue ( ) != null ) { \n - button . setValue ( formProperty . getValue ( ) ) ; \n + checkBox . setValue ( formProperty . getValue ( ) ) ; \n } \n \n - return button ; \n + return checkBox ; \n } \n \n }", "msg_token": "Using comboxBox for boolean type rendering instead fo button"} {"diff": " public class DynamicRecordTemplate extends RecordTemplate \n } \n else if ( DataTemplate . class . isAssignableFrom ( fieldDef . getType ( ) ) ) \n { \n - putWrapped ( field , ( Class < DataTemplate < ? > > ) fieldDef . getType ( ) , ( DataTemplate ) value ) ; \n + putWrapped ( field , ( Class < DataTemplate < ? > > ) fieldDef . getType ( ) , ( DataTemplate < ? > ) value ) ; \n } \n else \n {", "msg_token": "Tiny cast change that fixes compile errors on my machine"} {"diff": " public abstract class HttpContentDecoder extends MessageToMessageDecoder < Object , \n if ( hasContent && ( decoder = newContentDecoder ( contentEncoding ) ) != null ) { \n SINGLE \n SINGLE \n - m . setHeader ( \n - HttpHeaders . Names . CONTENT_ENCODING , \n - getTargetContentEncoding ( contentEncoding ) ) ; \n + String targetContentEncoding = getTargetContentEncoding ( contentEncoding ) ; \n + if ( HttpHeaders . Values . IDENTITY . equals ( targetContentEncoding ) ) { \n + SINGLE \n + SINGLE \n + m . removeHeader ( HttpHeaders . Names . CONTENT_ENCODING ) ; \n + } else { \n + m . setHeader ( HttpHeaders . Names . CONTENT_ENCODING , targetContentEncoding ) ; \n + } \n \n if ( m . getTransferEncoding ( ) . isSingle ( ) ) { \n ByteBuf content = m . getContent ( ) ;", "msg_token": "Do not set Content Encoding if the target encoding is identity"} {"diff": " public class GraphiteReporter implements Runnable { \n long epoch = System . currentTimeMillis ( ) / NUMBER0 ; \n printVmMetrics ( epoch ) ; \n printRegularMetrics ( epoch ) ; \n + writer . flush ( ) ; \n } catch ( Exception e ) { \n e . printStackTrace ( ) ; \n + writer . flush ( ) ; \n } \n } \n \n public class GraphiteReporter implements Runnable { \n try { \n writer . write ( prefix ) ; \n writer . write ( data ) ; \n - writer . flush ( ) ; \n } catch ( IOException e ) { \n e . printStackTrace ( ) ; \n }", "msg_token": "Flush the output stream once tick rather than after each metric"} {"diff": " public class SparkTask extends Task < SparkWork > { \n perfLogger . PerfLogEnd ( CLASS_NAME , PerfLogger . SPARK_SUBMIT_JOB ) ; \n \n addToHistory ( jobRef ) ; \n + this . jobID = jobRef . getSparkJobStatus ( ) . getAppID ( ) ; \n rc = jobRef . monitorJob ( ) ; \n SparkJobStatus sparkJobStatus = jobRef . getSparkJobStatus ( ) ; \n if ( rc == NUMBER0 ) { \n public class SparkTask extends Task < SparkWork > { \n SINGLE \n jobRef . cancelJob ( ) ; \n } \n + if ( this . jobID == null ) { \n + this . jobID = sparkJobStatus . getAppID ( ) ; \n + } \n sparkJobStatus . cleanup ( ) ; \n } catch ( Exception e ) { \n String msg = STRING0 + Utilities . getNameMessage ( e ) + STRING1 ;", "msg_token": "set SparkTask s jobID with application id Zhihai Xu reviewed by Chao Sun"} {"diff": " public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n viewToContentX ( getScrollX ( ) + getWidth ( ) \n - mWebView . getVerticalScrollbarWidth ( ) ) , \n viewToContentY ( getScrollY ( ) + getViewHeightWithTitle ( ) ) ) ; \n - content = nativeSubtractLayers ( content ) ; \n int screenTop = contentToViewY ( content . top ) ; \n int screenBottom = contentToViewY ( content . bottom ) ; \n int height = screenBottom - screenTop ; \n public final class WebViewClassic implements WebViewProvider , WebViewProvider . Sc \n private native void nativeCopyBaseContentToPicture ( Picture pict ) ; \n private native boolean nativeHasContent ( ) ; \n private native void nativeStopGL ( ) ; \n - private native Rect nativeSubtractLayers ( Rect content ) ; \n private native void nativeDiscardAllTextures ( ) ; \n private native void nativeTileProfilingStart ( ) ; \n private native float nativeTileProfilingStop ( ) ;", "msg_token": "Remove wrong nativeSubtractLayers"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n canvas . drawBitmap ( rawss , matrix , null ) ; \n canvas . setBitmap ( null ) ; \n \n - if ( true || DEBUG_SCREENSHOT ) { \n + if ( DEBUG_SCREENSHOT ) { \n SINGLE \n int [ ] buffer = new int [ bm . getWidth ( ) * bm . getHeight ( ) ] ; \n bm . getPixels ( buffer , NUMBER0 , bm . getWidth ( ) , NUMBER0 , NUMBER0 , bm . getWidth ( ) , bm . getHeight ( ) ) ;", "msg_token": "Disable time consuming debugging code"} {"diff": " public class Rebalancer implements Runnable { \n executors . shutdownNow ( ) ; \n } \n \n - @ suppresswarnings ( STRING0 ) \n private void rebalanceStore ( String storeName , \n AdminClient adminClient , \n RebalancePartitionsInfo stealInfo ) \n public class Rebalancer implements Runnable { \n voldemortConfig . getAdminSocketTimeout ( ) , \n TimeUnit . SECONDS ) ; \n \n - rebalanceStatusList . remove ( ( Object ) new Integer ( asyncId ) ) ; \n + rebalanceStatusList . remove ( ( Object ) asyncId ) ; \n \n if ( stealInfo . getDeletePartitionsList ( ) . size ( ) > NUMBER0 ) { \n adminClient . deletePartitions ( stealInfo . getDonorId ( ) ,", "msg_token": "Remove unnecessary allocation cast and SuppressWarnings annotation"} {"diff": " public class ActionBarOverlayLayout extends ViewGroup { \n topInset += mActionBarHeight ; \n } \n } \n - } else if ( mActionBarTop . getVisibility ( ) == VISIBLE ) { \n + } else if ( mActionBarTop . getVisibility ( ) != GONE ) { \n SINGLE \n SINGLE \n topInset = mActionBarTop . getMeasuredHeight ( ) ;", "msg_token": "Fix ActionBar layout bug when INVISIBLE"} {"diff": " public interface SQLCommonQuery < Q extends SQLCommonQuery < Q > > extends Query < Q > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface SQLCommonQuery < Q extends SQLCommonQuery < Q > > extends Query < Q > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface SQLCommonQuery < Q extends SQLCommonQuery < Q > > extends Query < Q > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated the method docs"} {"diff": " abstract class CombiningEvaluator extends Evaluator { \n \n @ override \n public boolean matches ( Element root , Element node ) { \n - for ( Evaluator s : evaluators ) { \n + for ( int i = NUMBER0 ; i < evaluators . size ( ) ; i ++ ) { \n + Evaluator s = evaluators . get ( i ) ; \n if ( ! s . matches ( root , node ) ) \n return false ; \n } \n abstract class CombiningEvaluator extends Evaluator { \n \n @ override \n public boolean matches ( Element root , Element node ) { \n - for ( Evaluator s : evaluators ) { \n + for ( int i = NUMBER0 ; i < evaluators . size ( ) ; i ++ ) { \n + Evaluator s = evaluators . get ( i ) ; \n if ( s . matches ( root , node ) ) \n return true ; \n }", "msg_token": "Don t create Iterator objects in these tight Evaluator loops"} {"diff": " public class DocumentationManager implements ProjectComponent { \n private final Project myProject ; \n private Editor myEditor = null ; \n private ParameterInfoController myParameterInfoController ; \n - private final Alarm myUpdateDocAlarm = new Alarm ( Alarm . ThreadToUse . SHARED_THREAD ) ; \n + private final Alarm myUpdateDocAlarm = new Alarm ( Alarm . ThreadToUse . OWN_THREAD ) ; \n private WeakReference < JBPopup > myDocInfoHintRef ; \n private Component myPreviouslyFocused = null ; \n public static final Key < SmartPsiElementPointer > ORIGINAL_ELEMENT_KEY = Key . create ( STRING0 ) ;", "msg_token": "SHARED THREAD OWN THREAD"} {"diff": " public class BroadcasterTest { \n } \n \n @ test \n + public void testEmptyBroadcastMethod ( ) throws ExecutionException , InterruptedException , ServletException { \n + broadcaster . resumeAll ( ) ; \n + \n + broadcaster . broadcast ( STRING0 ) . get ( ) ; \n + assertEquals ( atmosphereHandler . value . get ( ) , new HashSet ( ) ) ; \n + } \n + \n + @ test \n public void testSetBroadcastMethod ( ) throws ExecutionException , InterruptedException , ServletException { \n AtmosphereConfig config = new AtmosphereFramework ( ) \n . setAsyncSupport ( mock ( BlockingIOCometSupport . class ) ) \n public class BroadcasterTest { \n \n broadcaster . broadcast ( STRING0 , set ) . get ( ) ; \n \n - assertEquals ( atmosphereHandler . value . get ( ) , set ) ; \n + assertEquals ( atmosphereHandler . value . get ( ) , new HashSet ( ) ) ; \n } \n \n public final static class AR implements AtmosphereHandler {", "msg_token": "Add a empty DefaultBroadcaster test"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class JavaPlugin implements Plugin { \n - public static final String UPLOAD = STRING0 ; \n - public static final String UPLOAD_DISTS = STRING1 ; \n - \n public static final String CLEAN_TASK_NAME = STRING2 ; \n public static final String INIT_TASK_NAME = STRING3 ; \n public static final String PROCESS_RESOURCES_TASK_NAME = STRING4 ; \n public class JavaPlugin implements Plugin { \n configureLibs ( project , javaConvention ) ; \n configureDists ( project , javaConvention ) ; \n \n - project . createTask ( UPLOAD ) ; \n - \n configureEclipse ( project ) ; \n configureEclipseWtpModule ( project ) ; \n }", "msg_token": "Removed upload task"} {"diff": " public class MaterialDialog extends DialogBase implements View . OnClickListener , \n COMMENT \n COMMENT \n COMMENT \n - public Builder setAdapter ( ListAdapter adapter ) { \n + public Builder adapter ( ListAdapter adapter ) { \n this . adapter = adapter ; \n return this ; \n }", "msg_token": "Rename setAdapter to just adapter to match convention"} {"diff": " public class TextEditingTargetWidget \n toolbar . addRightWidget ( commands_ . executeAllCode ( ) . createToolbarButton ( ) ) ; \n toolbar . addRightWidget ( commands_ . executeToCurrentLine ( ) . createToolbarButton ( ) ) ; \n toolbar . addRightWidget ( commands_ . executeFromCurrentLine ( ) . createToolbarButton ( ) ) ; \n - toolbar . addRightWidget ( commands_ . executeCurrentFunction ( ) . createToolbarButton ( ) ) ; \n toolbar . addRightSeparator ( ) ; \n toolbar . addRightWidget ( commands_ . executeLastCode ( ) . createToolbarButton ( ) ) ; \n toolbar . addRightSeparator ( ) ;", "msg_token": "remove execute current function from toolbar"} {"diff": " public class LoaderTask extends AsyncTask < String , Void , Bitmap > { \n \n private Bitmap getNetworkImage ( File imageFile , Uri uri ) { \n try { \n - loaderSettings . getNetworkManager ( ) . retrieveImage ( uri . getPath ( ) , imageFile ) ; \n + loaderSettings . getNetworkManager ( ) . retrieveImage ( uri . toString ( ) , imageFile ) ; \n } catch ( ImageNotFoundException inf ) { \n return getNotFoundImage ( imageWrapper . getContext ( ) ) ; \n }", "msg_token": "Protocol not found error"} {"diff": " package NAMESPACE ; \n COMMENT \n public class InvalidTicketException extends TicketException { \n \n + private static final long serialVersionUID = NUMBER0 ; \n + \n private String ticketId = null ; \n \n - COMMENT \n - private static final long serialVersionUID = NUMBER1 ; \n - \n COMMENT \n private static final String CODE = STRING0 ;", "msg_token": "Added a new serialized version id for the invalid ticket exception class"} {"diff": " public class WPMainActivity extends AppCompatActivity { \n case WPMainTabAdapter . TAB_NOTIFS : \n setTabLayoutElevation ( mAppBarElevation ) ; \n Fragment fragment = mTabAdapter . getFragment ( position ) ; \n - if ( fragment instanceof NotificationsListFragment ) { \n - ( ( NotificationsListFragment ) fragment ) . clearPendingNotificationsItemsOnUI ( ) ; \n + if ( fragment instanceof OnScrollToTopListener ) { \n + ( ( OnScrollToTopListener ) fragment ) . onScrollToTop ( ) ; \n } \n break ; \n }", "msg_token": "Fix an issue where swiping to the notifications tab dosn t scroll to top"} {"diff": " public class PhotoDiskCache { \n \n if ( snapshot1 != null ) { \n result1 = snapshot1 . getInputStream ( VALUE_COUNT - NUMBER0 ) ; \n - } else { \n - Log . d ( STRING0 + key ) ; \n - } \n - DiskLruCache . Snapshot snapshot2 = cache . get ( safeKey ) ; \n + DiskLruCache . Snapshot snapshot2 = cache . get ( safeKey ) ; \n \n - if ( snapshot2 != null ) { \n - result2 = snapshot2 . getInputStream ( VALUE_COUNT - NUMBER0 ) ; \n + if ( snapshot2 != null ) { \n + result2 = snapshot2 . getInputStream ( VALUE_COUNT - NUMBER0 ) ; \n + } else { \n + Log . d ( STRING1 + key ) ; \n + } \n } else { \n - Log . d ( STRING0 + key ) ; \n + Log . d ( STRING2 + key ) ; \n } \n \n - \n } catch ( IOException e ) { \n Log . d ( STRING3 + key ) ; \n e . printStackTrace ( ) ; SINGLE", "msg_token": "Only fetch missing entries in disk cache once"} {"diff": " public class SecondaryReadTest extends TestCase { \n } \n \n private Mongo loadMongo ( ) throws Exception { \n - return new Mongo ( new MongoURI ( STRING0 ) ) ; \n + return new Mongo ( new MongoURI ( STRING1 ) ) ; \n } \n \n private CommandResult serverStatusCmd ( final Mongo pMongo ) { \n public class SecondaryReadTest extends TestCase { \n \n private static void loadQueryCount ( final List < TestHost > pHosts , final boolean pBefore ) throws Exception { \n for ( final TestHost testHost : pHosts ) { \n - final Mongo mongoHost = new Mongo ( new MongoURI ( STRING2 + testHost . hostnameAndPort ) ) ; \n + final Mongo mongoHost = new Mongo ( new MongoURI ( STRING2 + testHost . hostnameAndPort + STRING3 ) ) ; \n try { \n final CommandResult serverStatusResult \n = mongoHost . getDB ( STRING4 ) . command ( new BasicDBObject ( STRING5 , NUMBER0 ) ) ;", "msg_token": "added socket timeouts to connections"} {"diff": " public class TextArea extends JEditTextArea { \n } \n super . processKeyEvent ( evt ) ; \n \n - if ( evt . getID ( ) == KeyEvent . KEY_TYPED && editor . errorCheckerService . getASTGenerator ( ) . predictionsEnabled . get ( ) ) { \n + if ( evt . getID ( ) == KeyEvent . KEY_TYPED ) { \n final KeyEvent evt2 = evt ; \n SwingWorker worker = new SwingWorker ( ) { \n protected Object doInBackground ( ) throws Exception { \n errorCheckerService . runManualErrorCheck ( ) ; \n - log ( STRING0 + fetchPhrase ( evt2 ) + STRING1 \n - + ( evt2 . getKeyChar ( ) == KeyEvent . VK_ENTER ) ) ; \n + SINGLE \n + if ( editor . errorCheckerService . getASTGenerator ( ) . predictionsEnabled . get ( ) ) \n + log ( STRING0 + fetchPhrase ( evt2 ) + STRING1 \n + + ( evt2 . getKeyChar ( ) == KeyEvent . VK_ENTER ) ) ; \n return null ; \n } \n } ;", "msg_token": "lol I d really done this"} {"diff": " public class SearchDataQuery implements IObjectSearchQuery { \n continue ; \n } \n case STRING : \n + if ( attribute . getMaxLength ( ) > NUMBER0 && attribute . getMaxLength ( ) < params . searchString . length ( ) ) { \n + continue ; \n + } \n operator = DBCLogicalOperator . LIKE ; \n value = STRING0 + params . searchString + STRING0 ; \n break ;", "msg_token": "Data search fix"} {"diff": " public class ReaderSubsActivity extends ActionBarActivity \n \n ReaderUpdateService . startService ( this , \n EnumSet . of ( UpdateTask . TAGS , \n - UpdateTask . FOLLOWED_BLOGS ) ) ; \n + UpdateTask . FOLLOWED_BLOGS , \n + UpdateTask . RECOMMENDED_BLOGS ) ) ; \n \n mHasPerformedUpdate = true ; \n }", "msg_token": "Added UpdateTask RECOMMENDED_BLOGS"} {"diff": " public class YoutubeChannelExtractor extends ChannelExtractor { \n private String getNextPageUrl ( Document d ) throws ParsingException { \n try { \n Element button = d . select ( STRING0 ) . first ( ) ; \n - return button . attr ( STRING1 ) ; \n + if ( button != null ) { \n + return button . attr ( STRING1 ) ; \n + } else { \n + SINGLE \n + return STRING2 ; \n + } \n } catch ( Exception e ) { \n throw new ParsingException ( STRING3 , e ) ; \n }", "msg_token": "fix channel has no second page bug"} {"diff": " public final class WXDomModule extends WXModule { \n SINGLE \n e . printStackTrace ( ) ; \n WXLogUtils . e ( STRING0 ) ; \n + } catch ( ClassCastException cce ) { \n + WXLogUtils . e ( STRING1 ) ; \n } \n }", "msg_token": "android catch ClassCastException"} {"diff": " public class MimeUtility { \n COMMENT \n private static final String [ ] [ ] MIME_TYPE_REPLACEMENT_MAP = new String [ ] [ ] { \n { STRING0 , STRING1 } , \n - { STRING2 , STRING1 } SINGLE \n + { STRING2 , STRING1 } , SINGLE \n + { STRING3 , STRING4 } SINGLE \n } ; \n \n public static String unfold ( String s ) {", "msg_token": "Rewrite application x zip compressed to application zip"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "removing unused imports"} {"diff": " public class JobClient { \n new JobClientMessages . SubmitJobAndWait ( jobGraph ) , \n new Timeout ( AkkaUtils . INF_TIMEOUT ( ) ) ) ; \n \n - Object answer = Await . result ( future , timeout ) ; \n + Object answer = Await . result ( future , AkkaUtils . INF_TIMEOUT ( ) ) ; \n \n if ( answer instanceof JobManagerMessages . JobResultSuccess ) { \n LOG . info ( STRING0 ) ; \n public class JobClient { \n throw e ; \n } \n catch ( TimeoutException e ) { \n - throw new JobTimeoutException ( jobGraph . getJobID ( ) , STRING1 , e ) ; \n + throw new JobTimeoutException ( jobGraph . getJobID ( ) , STRING2 + \n + STRING3 + AkkaUtils . INF_TIMEOUT ( ) , e ) ; \n } \n catch ( Throwable t ) { \n throw new JobExecutionException ( jobGraph . getJobID ( ) ,", "msg_token": "hotfix Fix invalid timeout in JobClient"} {"diff": " public class NativeRunnable implements Runnable { \n \n private final HybridData mHybridData ; \n \n + @ donotstrip \n private NativeRunnable ( HybridData hybridData ) { \n mHybridData = hybridData ; \n }", "msg_token": "Don t strip NativeRunnable constructor"} {"diff": " import NAMESPACE ; \n COMMENT \n public class FileBody implements AsyncHttpRequestBody < File > { \n File file ; \n + String contentType = STRING0 ; \n + \n public FileBody ( File file ) { \n this . file = file ; \n } \n \n + public FileBody ( File file , String contentType ) { \n + this . file = file ; \n + this . contentType = contentType ; \n + } \n + \n @ override \n public void write ( AsyncHttpRequest request , DataSink sink , CompletedCallback completed ) { \n Util . pump ( file , sink , completed ) ; \n public class FileBody implements AsyncHttpRequestBody < File > { \n throw new AssertionError ( STRING1 ) ; \n } \n \n - public static final String CONTENT_TYPE = STRING0 ; \n @ override \n public String getContentType ( ) { \n - return CONTENT_TYPE ; \n + return contentType ; \n + } \n + \n + public void setContentType ( String contentType ) { \n + this . contentType = contentType ; \n } \n \n @ override", "msg_token": "Allow setting custom content type"} {"diff": " public class EntitySerializer implements Serializer { \n queryType = typeMappings . getPathType ( property . getParameter ( NUMBER0 ) , model , true ) ; \n \n serialize ( model , property , new ClassType ( PMap . class , getRaw ( property . getParameter ( NUMBER1 ) ) , getRaw ( property . getParameter ( NUMBER0 ) ) , genericQueryType ) , \n - writer , STRING0 + genericKey + COMMA + genericValue + COMMA + writer . getRawName ( genericQueryType ) + STRING1 , \n - keyType + DOT_CLASS , \n - valueType + DOT_CLASS , \n - queryType + DOT_CLASS ) ; \n + writer , STRING0 + genericKey + COMMA + genericValue + COMMA + writer . getGenericName ( true , genericQueryType ) + STRING1 , \n + keyType + DOT_CLASS , valueType + DOT_CLASS , writer . getRawName ( queryType ) + DOT_CLASS ) ; \n break ; \n case LIST : \n genericQueryType = typeMappings . getPathType ( getRaw ( property . getParameter ( NUMBER1 ) ) , model , false ) ;", "msg_token": "improved Map property serialization"} {"diff": " public class SimpleReplaceRuleTest extends TestCase { \n List < String > invalidSuggestions = new ArrayList < String > ( ) ; \n List < Map < String , String > > wrongWords = rule . getWrongWords ( ) ; \n for ( Map < String , String > ruleEntry : wrongWords ) { \n - for ( String fromWord : ruleEntry . keySet ( ) ) { \n - String toWord = ruleEntry . get ( fromWord ) ; \n + for ( Map . Entry < String , String > fromWord : ruleEntry . entrySet ( ) ) { \n + String toWord = fromWord . getValue ( ) ; \n if ( toWord == null || fromWord . equals ( toWord ) ) { \n invalidSuggestions . add ( toWord ) ; \n }", "msg_token": "remove Java Antipattern"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix docs build"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class DerbyBlockStoreTest { \n COMMENT \n private static final String DB_NAME = STRING0 ; \n \n + @ before \n + public void shutUp ( ) { \n + SINGLE \n + System . getProperties ( ) . setProperty ( STRING1 , STRING2 ) ; \n + } \n + \n @ after \n public void clear ( ) { \n try { \n public class DerbyBlockStoreTest { \n assertEquals ( b1 , b2 ) ; \n SINGLE \n assertEquals ( b1 , store . getChainHead ( ) ) ; \n - \n + \n StoredBlock g1 = store . get ( params . genesisBlock . getHash ( ) ) ; \n assertEquals ( params . genesisBlock , g1 . getHeader ( ) ) ; \n store . dump ( ) ; \n + store . close ( ) ; \n } \n \n void deleteRecursively ( File f ) throws IOException {", "msg_token": "Prevent Derby unit test from writing a pointless log file"} {"diff": " public class PartitionBalance { \n STRING0 ) ; \n builder . append ( summary . getSecond ( ) ) ; \n this . naryMaxMin = summary . getFirst ( ) ; \n - \n + builder . append ( STRING1 + getUtility ( ) ) . append ( Utils . NEWLINE ) ; \n this . verbose = builder . toString ( ) ; \n }", "msg_token": "Print the utility value"} {"diff": " public class MyTestInjector { \n } \n if ( host instanceof PsiCommentImpl ) { \n String text = host . getText ( ) ; \n - if ( text . startsWith ( STRING0 ) && text . endsWith ( STRING1 ) ) { \n + if ( text . startsWith ( STRING2 ) && text . endsWith ( STRING3 ) ) { \n TextRange textRange = new TextRange ( NUMBER0 , text . length ( ) - NUMBER0 ) ; \n if ( ! ( host . getParent ( ) instanceof PsiMethod ) ) return ; \n PsiMethod method = ( PsiMethod ) host . getParent ( ) ;", "msg_token": "changed injection rule for MyTestInjector to avoid clashing between MyTestInjector and real GWT injector"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class ProxyHelper { \n Object result = toObject ( response . getValue ( ) ) ; \n if ( result instanceof ClientServiceException ) { \n final ClientServiceException ex = ( ClientServiceException ) result ; \n - if ( ex . getThrowable ( ) instanceof RuntimeException ) { \n - throw ( RuntimeException ) ex . getThrowable ( ) ; \n - } else { \n - throw new RuntimeException ( ex . getThrowable ( ) ) ; \n - } \n + Util . throwUncheckedException ( ex . getThrowable ( ) ) ; \n } \n return result ; \n }", "msg_token": "Added unchecked exception throw utility"} {"diff": " public final class NfcAdapter { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public boolean zeroClickEnabled ( ) { \n try {", "msg_token": "Hide new interface to fix build"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class LogAdapter extends LogWriter {", "msg_token": "Added javadoc documentation"} {"diff": " class NativeLibraryMergeEnhancer { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n @ value.immutable \n @ buckstyleimmutable \n abstract static class AbstractNativeLibraryMergeEnhancementResult { \n class NativeLibraryMergeEnhancer { \n public abstract ImmutableList < NativeLinkable > getMergedLinkablesAssets ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n private static class MergedLibNativeLinkable implements NativeLinkable { \n private final CxxBuckConfig cxxBuckConfig ; \n private final BuildRuleResolver ruleResolver ;", "msg_token": "Move a comment in NativeLibraryMergeEnhancer"} {"diff": " public class BuildProcessClasspathManager { \n return extraDirFile ; \n } \n } \n - return PluginPathManager . getPluginHome ( pluginDirName ) ; \n + File pluginHome = PluginPathManager . getPluginHome ( pluginDirName ) ; \n + if ( ! pluginHome . isDirectory ( ) && StringUtil . isCapitalized ( pluginDirName ) ) { \n + pluginHome = PluginPathManager . getPluginHome ( StringUtil . decapitalize ( pluginDirName ) ) ; \n + } \n + return pluginHome . isDirectory ( ) ? pluginHome : null ; \n } \n \n private static List < String > getDynamicClasspath ( Project project ) {", "msg_token": "try decapitalize plugin name to find plugin dir e g for Osmorc plugin under case sensitive OS"} {"diff": " class CertificateValidatorCache { \n \n if ( domain != null && domain . length ( ) != NUMBER0 ) { \n if ( secureHash != null && secureHash . length != NUMBER0 ) { \n - CacheEntry cacheEntry = ( CacheEntry ) mCacheMap . get ( \n - new Integer ( mBigScrew ^ domain . hashCode ( ) ) ) ; \n + final Integer key = new Integer ( mBigScrew ^ domain . hashCode ( ) ) ; \n + CacheEntry cacheEntry = mCacheMap . get ( key ) ; \n if ( cacheEntry != null ) { \n if ( ! cacheEntry . expired ( ) ) { \n rval = cacheEntry . has ( domain , secureHash ) ; \n class CertificateValidatorCache { \n } \n SINGLE \n } else { \n - mCacheMap . remove ( cacheEntry ) ; \n + mCacheMap . remove ( key ) ; \n } \n } \n }", "msg_token": "Using proper key for removing object from the map"} {"diff": " public class MediaSessionCompat { \n COMMENT \n COMMENT \n COMMENT \n - public Token fromToken ( Object token ) { \n + public static Token fromToken ( Object token ) { \n if ( token == null || android . os . Build . VERSION . SDK_INT < NUMBER0 ) { \n return null ; \n }", "msg_token": "Make the method for getting a compat Token from a Token static"} {"diff": " public class GroovyPagesUriSupport implements GroovyPagesUriService , org . codehau \n return webRequest != null ? webRequest . getControllerName ( ) : null ; \n } \n else { \n - if ( ! controller . getClass ( ) . getSimpleName ( ) . endsWith ( ControllerArtefactHandler . TYPE ) ) { \n + String simpleName = controller . getClass ( ) . getSimpleName ( ) ; \n + if ( ! simpleName . endsWith ( ControllerArtefactHandler . TYPE ) ) { \n GrailsWebRequest webRequest = GrailsWebRequest . lookup ( ) ; \n return webRequest != null ? webRequest . getControllerName ( ) : null ; \n } \n else { \n - return GrailsNameUtils . getLogicalPropertyName ( controller . getClass ( ) . getSimpleName ( ) , ControllerArtefactHandler . TYPE ) ; \n + return GrailsNameUtils . getLogicalPropertyName ( simpleName , ControllerArtefactHandler . TYPE ) ; \n } \n } \n }", "msg_token": "fix failing test"} {"diff": " public class TwoWayView extends AdapterView < ListAdapter > implements \n if ( maybeStartScrolling ( delta ) ) { \n return true ; \n } \n + \n + break ; \n } \n \n case MotionEvent . ACTION_CANCEL :", "msg_token": "Added missing break"} {"diff": " public final class PokemapSharedPreferences implements PokemapAppPreferences { \n } \n \n private String getStoredString ( String value ) { \n - return value . split ( STRING0 ) [ NUMBER0 ] ; \n + if ( value == null ) return null ; \n + String [ ] parts = value . split ( STRING0 ) ; \n + \n + return ( parts . length > NUMBER0 ) ? parts [ NUMBER0 ] : null ; \n } \n \n @ override", "msg_token": "do u even null check bro"} {"diff": " \n - \n package NAMESPACE ; \n \n import NAMESPACE ; \n public class TestCustomEnumKeyDeserializer extends BaseMapTest \n } \n \n @ override \n - public TestEnum deserialize ( JsonParser jp , DeserializationContext ctxt ) throws IOException { \n - String code = jp . getText ( ) ; \n + public TestEnum deserialize ( JsonParser p , DeserializationContext ctxt ) throws IOException { \n + String code = p . getText ( ) ; \n try { \n return TestEnum . lookup ( code ) ; \n } catch ( IllegalArgumentException e ) { \n - throw new InvalidFormatException ( STRING0 , jp . getCurrentLocation ( ) , code , TestEnum . class ) ; \n + throw InvalidFormatException . from ( p , STRING0 , \n + code , TestEnum . class ) ; \n } \n } \n }", "msg_token": "fix a compiler warning"} {"diff": " public class SimpleGroovyClassDocAssembler extends VisitorAdapter implements Gro \n for ( String name : importedClassesAndPackages ) { \n if ( name . endsWith ( slashName ) ) { \n typeName = name ; \n - break ; \n + SINGLE \n } \n } \n }", "msg_token": "wasted work in SimpleGroovyClassDocAssembler temp revert"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractQuickFixTest extends KotlinLightQuickFixTestCase { \n } \n \n @ override \n + protected void checkResultByText ( String message , @ notnull String fileText , boolean ignoreTrailingSpaces , String filePath ) { \n + super . checkResultByText ( message , fileText , ignoreTrailingSpaces , new File ( filePath ) . getAbsolutePath ( ) ) ; \n + } \n + \n + @ override \n protected String getBasePath ( ) { \n return getClass ( ) . getAnnotation ( TestMetadata . class ) . value ( ) ; \n }", "msg_token": "Fix file path which is passed to the FileComparisonException so that we can update test data using text comparison UI"} {"diff": " public class PullToRefreshAttacher { \n . getDecorView ( ) ; \n \n SINGLE \n + mHeaderViewWrapper = new FrameLayout ( mActivity ) ; \n mHeaderView = LayoutInflater . from ( \n mEnvironmentDelegate . getContextForInflater ( activity ) ) . inflate ( \n - options . headerLayout , decorView , false ) ; \n + options . headerLayout , mHeaderViewWrapper , false ) ; \n if ( mHeaderView == null ) { \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n SINGLE \n mHeaderView . setVisibility ( View . INVISIBLE ) ; \n - \n - mHeaderViewWrapper = new FrameLayout ( mActivity ) ; \n mHeaderViewWrapper . addView ( mHeaderView ) ; \n \n SINGLE", "msg_token": "Fix parent that the HeaderView is inflated with"} {"diff": " public class AnnotatedElementUtilsTests { \n @ aliasfor ( annotation = ContextConfig . class ) \n String [ ] locations ( ) default { } ; \n \n - SINGLE \n + SINGLE \n SINGLE \n @ aliasfor ( annotation = ContextConfig . class , attribute = STRING0 ) \n String [ ] value ( ) default { } ;", "msg_token": "Add TODO in AnnotatedElementUtilsTests"} {"diff": " public class OCommandExecutorSQLDropIndex extends OCommandExecutorSQLAbstract im \n if ( name . equals ( STRING0 ) ) { \n long totalIndexed = NUMBER0 ; \n for ( OIndex < ? > idx : getDatabase ( ) . getMetadata ( ) . getIndexManager ( ) . getIndexes ( ) ) { \n - idx . delete ( ) ; \n + getDatabase ( ) . getMetadata ( ) . getIndexManager ( ) . dropIndex ( idx . getName ( ) ) ; \n totalIndexed ++ ; \n }", "msg_token": "Fixed drop index"} {"diff": " public class ActFmSyncThread { \n try { \n modelPushedAt = DateUtilities . parseIso8601 ( modelPushedAtString ) ; \n } catch ( ParseException e ) { \n - SINGLE \n + Log . e ( ERROR_TAG , STRING0 + modelPushedAtString , e ) ; \n } \n if ( serverMessagesJson != null ) { \n for ( int i = NUMBER0 ; i < serverMessagesJson . length ( ) ; i ++ ) {", "msg_token": "Log unparseable dates"} {"diff": " public class GelfOutput implements MessageOutput { \n public ConfigurationRequest getRequestedConfiguration ( ) { \n final ConfigurationRequest configurationRequest = new ConfigurationRequest ( ) ; \n configurationRequest . addField ( new TextField ( CK_HOSTNAME , STRING0 , STRING1 , STRING2 , ConfigurationField . Optional . NOT_OPTIONAL ) ) ; \n - configurationRequest . addField ( new NumberField ( CK_PORT , STRING3 , NUMBER0 , STRING4 , ConfigurationField . Optional . NOT_OPTIONAL ) ) ; \n + configurationRequest . addField ( new NumberField ( CK_PORT , STRING3 , NUMBER0 , STRING4 , ConfigurationField . Optional . NOT_OPTIONAL , NumberField . Attribute . IS_PORT_NUMBER ) ) ; \n final Map < String , String > protocols = ImmutableMap . of ( \n STRING5 , STRING5 , \n STRING6 , STRING6 ) ; \n - configurationRequest . addField ( new DropdownField ( CK_PROTOCOL , STRING7 , STRING5 , protocols , STRING8 , ConfigurationField . Optional . OPTIONAL ) ) ; \n + configurationRequest . addField ( new DropdownField ( CK_PROTOCOL , STRING7 , STRING5 , protocols , STRING8 , ConfigurationField . Optional . NOT_OPTIONAL ) ) ; \n return configurationRequest ; \n } \n }", "msg_token": "Flagging configuration field as being a port number"} {"diff": " public class CursorToMessage { \n return null ; \n } \n \n + SINGLE \n + if ( address . equals ( STRING0 ) ) { \n + address = STRING1 ; \n + } \n + \n PersonRecord record = lookupPerson ( address ) ; \n if ( PrefStore . getMailSubjectPrefix ( mContext ) ) \n msg . setSubject ( STRING2 + PrefStore . getCalllogFolder ( mContext ) + STRING3 + record . getName ( ) ) ;", "msg_token": "Handle callers without callerid so they display as Unknown"} {"diff": " public abstract class AbstractAjpProtocol < S > extends AbstractProtocol < S > { \n SINGLE \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n protected boolean ajpFlush = true ; \n public boolean getAjpFlush ( ) { return ajpFlush ; } \n public class AjpProcessor extends AbstractProcessor { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n protected boolean ajpFlush = true ; \n public boolean getAjpFlush ( ) { return ajpFlush ; }", "msg_token": "Adjust javadoc phrasing since the attributes"} {"diff": " public class DBObjectSerializer implements Serializer < DBObject > { \n } \n } \n \n + public DBObjectSerializer ( final PrimitiveSerializers primitiveSerializers ) { \n + this ( null , primitiveSerializers , BasicDBObject . class , new HashMap < String , Class < ? extends DBObject > > ( ) ) ; \n + } \n + \n @ override \n public void serialize ( final BSONWriter bsonWriter , final DBObject document , \n final BsonSerializationOptions options ) {", "msg_token": "Added simpler constructor with sensible defaults"} {"diff": " public class StreamRuleImpl extends PersistedImpl implements StreamRule { \n COMMENT \n \n public Map < String , Validator > getValidations ( ) { \n - return new HashMap < String , Validator > ( ) { { \n + HashMap < String , Validator > validators = new HashMap < String , Validator > ( ) { { \n put ( STRING0 , new IntegerValidator ( ) ) ; \n - put ( STRING1 , new FilledStringValidator ( ) ) ; \n put ( STRING2 , new FilledStringValidator ( ) ) ; \n put ( STRING3 , new ObjectIdValidator ( ) ) ; \n } } ; \n + \n + if ( ! this . getType ( ) . equals ( StreamRuleType . PRESENCE ) ) \n + validators . put ( STRING1 , new FilledStringValidator ( ) ) ; \n + \n + return validators ; \n } \n \n @ override", "msg_token": "Disabling validation of value field for field presence rule"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n + public class ConfiguredCloseableHttpClient { \n private final CloseableHttpClient closeableHttpClient ; \n private final RequestConfig defaultRequestConfig ; \n \n public class HttpClientBuilder { \n COMMENT \n COMMENT \n COMMENT \n - @ visiblefortesting \n protected ConfiguredCloseableHttpClient createClient ( \n final org . apache . http . impl . client . HttpClientBuilder builder , \n final InstrumentedHttpClientConnectionManager manager ,", "msg_token": "Allow clients to override HttpClientBuilder createClient method"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n Log . d ( LOG_TAG , STRING0 + intent ) ; \n getContext ( ) . startActivity ( intent ) ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n if ( ! mGlobalSearchMode ) { \n dismiss ( ) ; \n }", "msg_token": "add comment to illuminate why we only dismiss the dialog when launching an intent for in app search"} {"diff": " public class VcsBalloonProblemNotifier implements Runnable { \n } \n \n public void run ( ) { \n - NOTIFICATION_GROUP . createNotification ( myMessage , myMessageType ) . notify ( myProject ) ; \n + NOTIFICATION_GROUP . createNotification ( myMessage , myMessageType ) . notify ( myProject . isDefault ( ) ? null : myProject ) ; \n } \n }", "msg_token": "still for default project use null key"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n return - NUMBER0 ; \n } \n \n + SINGLE \n + SINGLE \n + SINGLE \n + TelecomManager telecomManager = getTelecommService ( ) ; \n + if ( telecomManager != null && telecomManager . isRinging ( ) ) { \n + Log . i ( TAG , STRING0 ) ; \n + return - NUMBER0 ; \n + } \n + \n SINGLE \n if ( mDoubleTapOnHomeBehavior != DOUBLE_TAP_HOME_NOTHING ) { \n mHandler . removeCallbacks ( mHomeDoubleTapTimeoutRunnable ) ; SINGLE", "msg_token": "Revert Allow home to be pressed while in incoming call screen"} {"diff": " public class GoAwayBodyParser extends ControlFrameBodyParser \n state = State . STATUS_CODE ; \n break ; \n } \n + default : \n + { \n + throw new IllegalStateException ( ) ; \n + } \n } \n } \n else \n public class GoAwayBodyParser extends ControlFrameBodyParser \n state = State . STATUS_CODE ; \n break ; \n } \n + default : \n + { \n + throw new IllegalStateException ( ) ; \n + } \n } \n } \n break ;", "msg_token": "Added defaults in switches"} {"diff": " public class DRPCSpout implements IRichSpout { \n \n int port = Utils . getInt ( conf . get ( Config . DRPC_INVOCATIONS_PORT ) ) ; \n List < String > servers = ( List < String > ) conf . get ( Config . DRPC_SERVERS ) ; \n - if ( servers . isEmpty ( ) ) { \n + if ( servers == null || servers . isEmpty ( ) ) { \n throw new RuntimeException ( STRING0 ) ; \n } \n if ( numTasks < servers . size ( ) ) {", "msg_token": "Added check for null servers list on the setup of the DRPCSpout"} {"diff": " public class AccessorForPropertyDescriptor extends PropertyDescriptor { \n super ( property , Collections . < AnnotationDescriptor > emptyList ( ) , Modality . FINAL , Visibilities . PUBLIC , \n false , \n false , Kind . DECLARATION ) ; \n + initializeDefault ( ) ; \n } \n } \n }", "msg_token": "Add missed initializer for setter"} {"diff": " public class TestStoreAccess \n SINGLE \n SINGLE \n assertFalse ( STRING0 , data . contains ( STRING1 ) ) ; \n - System . out . println ( data ) ; \n assertTrue ( STRING2 , isUnclean ( testdir . directory ( ) ) ) ; \n }", "msg_token": "Removed a system out"} {"diff": " public class VertxImpl implements VertxInternal , MetricsProvider { \n @ override \n public synchronized TimeoutStream resume ( ) { \n this . paused = false ; \n - return null ; \n + return this ; \n } \n \n @ override", "msg_token": "Return this instead of null in TimeoutStream resume"} {"diff": " public class ConsistencyCheckTool \n { \n try \n { \n + System . err . println ( STRING0 + \n + STRING1 ) ; \n runConsistencyCheckTool ( args ) ; \n } \n catch ( ToolFailureException e )", "msg_token": "Deprecate the old consistency checker entry point"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public class JetRunConfigurationEditor extends SettingsEditor < JetRunConfiguratio \n private final LabeledComponent < JComboBox > moduleChooser ; \n \n public JetRunConfigurationEditor ( Project project ) { \n - moduleChooser = LabeledComponent . create ( new JComboBox ( ) , STRING0 ) ; \n + moduleChooser = LabeledComponent . create ( new JComboBox ( ) , STRING1 ) ; \n + moduleChooser . setLabelLocation ( BorderLayout . WEST ) ; \n myModuleChooserHolder . add ( moduleChooser , BorderLayout . CENTER ) ; \n myModuleSelector = new ConfigurationModuleSelector ( project , moduleChooser . getComponent ( ) ) ; \n myCommonProgramParameters . setModuleContext ( myModuleSelector . getModule ( ) ) ;", "msg_token": "change module chooser to look like in IDEA s Java run configuration"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConfigResolverTest \n { \n private static final String DEFAULT_VALUE = STRING0 ; \n + \n + @ before \n + public void init ( ) \n + { \n + ProjectStageProducer . setProjectStage ( ProjectStage . UnitTest ) ; \n + } \n + \n @ test \n public void testOverruledValue ( ) \n {", "msg_token": "fix broken unit test when testing remote containers"} {"diff": " public class IOBalancerMemoryLeakTest extends HazelcastTestSupport { \n } \n \n @ test \n - public void testEachConnectionUseDifferentSelectorEventually ( ) { \n + public void testMemoryLeak ( ) { \n HazelcastInstance instance = Hazelcast . newHazelcastInstance ( ) ; \n HTTPCommunicator communicator = new HTTPCommunicator ( instance ) ; \n TcpIpConnectionManager connectionManager = ( TcpIpConnectionManager ) getConnectionManager ( instance ) ;", "msg_token": "rename test method"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class PacketLoggingServiceImpl \n COMMENT \n COMMENT \n COMMENT \n - private final List < Packet > pktsToSave = new ArrayList < Packet > ( ) ; \n + private final Queue < Packet > pktsToSave = EvictingQueue . create ( NUMBER0 ) ; \n \n COMMENT \n COMMENT \n public class PacketLoggingServiceImpl \n continue ; \n } \n \n - pktToSave = pktsToSave . remove ( NUMBER1 ) ; \n + pktToSave = pktsToSave . poll ( ) ; \n } \n \n if ( pktToSave != null )", "msg_token": "Uses an EvictingQueue instead of an ArrayList in the PacketLoggingServiceImpl"} {"diff": " public class ResultListPanel extends JScrollPane implements LookupListener { \n public void actionPerformed ( ActionEvent e ) { \n try { \n BufferedImage image = UIUtils . createComponentScreenshot ( table ) ; \n - image = null ; \n writeImage ( image ) ; \n } catch ( Exception ex ) { \n String msg = NbBundle . getMessage ( ResultListPanel . class , STRING0 , new Object [ ] { ex . getClass ( ) . getSimpleName ( ) , ex . getLocalizedMessage ( ) , ex . getStackTrace ( ) [ NUMBER0 ] . getClassName ( ) , ex . getStackTrace ( ) [ NUMBER0 ] . getLineNumber ( ) } ) ;", "msg_token": "Debug ResultListPanel error management"} {"diff": " public class AudioTrack \n \n public int write ( short [ ] audioData , int offsetInShorts , int sizeInShorts ) { \n \n - if ( mState == STATE_UNINITIALIZED || mAudioFormat != AudioFormat . ENCODING_PCM_16BIT ) { \n + if ( mState == STATE_UNINITIALIZED || mAudioFormat == AudioFormat . ENCODING_PCM_FLOAT ) { \n return ERROR_INVALID_OPERATION ; \n }", "msg_token": "Fix regression in CTS for AudioTrack"} {"diff": " public class Bootstrap implements BootstrapTask { \n \n private void help ( ) { \n System . out . println ( STRING0 ) ; \n - System . exit ( NUMBER0 ) ; \n } \n } \n public class ShutdownTask implements BootstrapTask { \n socketShutdown ( shutdownArgs . getShutdownPort ( defaultShutdownPort ) , defaultShutdownKey ) ; \n } \n \n - public void socketShutdown ( int shutdownPort , String shutdownMocoKey ) { \n + private void socketShutdown ( int shutdownPort , String shutdownMocoKey ) { \n try { \n Socket socket = new Socket ( InetAddress . getByName ( STRING1 ) , shutdownPort ) ; \n socket . setSoLinger ( false , NUMBER1 ) ; \n public class StartTask implements BootstrapTask { \n StartArgs startArgs = parse ( args ) ; \n if ( conflictWithDefaultShutdownPort ( startArgs , defaultShutdownPort ) ) { \n System . err . println ( STRING2 ) ; \n - System . exit ( NUMBER0 ) ; \n + return ; \n } \n \n Runner runner = new DynamicRunner ( startArgs . getConfigurationFile ( ) , startArgs . getPort ( ) ) ;", "msg_token": "removed System exit"} {"diff": " public class MultiMatchQueryBuilder extends BaseQueryBuilder implements Boostabl \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MultiMatchQueryBuilder extends BaseQueryBuilder implements Boostabl \n builder . endObject ( ) ; \n } \n \n - } \n + }", "msg_token": "Fix typo in the javadoc for tieBreaker"} {"diff": " public class ManagerSF extends StoreFactoryBase { \n StoreDescription parentDesc ) throws Exception { \n if ( aManager instanceof Manager ) { \n Manager manager = ( Manager ) aManager ; \n - SINGLE \n - System . out . println ( STRING0 ) ; \n + SINGLE \n SessionIdGenerator sessionIdGenerator = manager . getSessionIdGenerator ( ) ; \n if ( sessionIdGenerator != null ) { \n storeElement ( aWriter , indent , sessionIdGenerator ) ;", "msg_token": "Remove debug code"} {"diff": " \n COMMENT \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n package NAMESPACE ;", "msg_token": "Fixing broken link"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public final class Split \n return connectorSplit . isRemotelyAccessible ( ) ; \n } \n \n + @ override \n + public String toString ( ) \n + { \n + return Objects . toStringHelper ( this ) \n + . add ( STRING0 , connectorId ) \n + . add ( STRING1 , connectorSplit ) \n + . toString ( ) ; \n + } \n + \n public static Function < ConnectorSplit , Split > fromConnectorSplit ( final String connectorId ) \n { \n return new Function < ConnectorSplit , Split > ( ) {", "msg_token": "Add toString method to Split"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ target ( ElementType . FIELD ) \n public @ interface PrimaryKey { \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n boolean autoincrement ( ) default true ;", "msg_token": "Update outdated PrimaryKey annotation documentation"} {"diff": " public class RequestParams { \n for ( Object nestedValue : set ) { \n params . addAll ( getParamsList ( key , nestedValue ) ) ; \n } \n - } else if ( value instanceof String ) { \n - params . add ( new BasicNameValuePair ( key , ( String ) value ) ) ; \n + } else { \n + params . add ( new BasicNameValuePair ( key , value . toString ( ) ) ) ; \n } \n return params ; \n }", "msg_token": "Cast params to string by default"} {"diff": " public class AccountHeaderBuilder { \n mAccountHeaderTextSection . setVisibility ( View . VISIBLE ) ; \n handleSelectionView ( mCurrentProfile , true ) ; \n mAccountSwitcherArrow . setVisibility ( View . VISIBLE ) ; \n + mCurrentProfileView . setTag ( R . id . profile_header , mCurrentProfile ) ; \n mCurrentProfileName . setText ( mCurrentProfile . getName ( ) ) ; \n mCurrentProfileEmail . setText ( mCurrentProfile . getEmail ( ) ) ;", "msg_token": "add missing setTag to the CurrentProfileView"} {"diff": " public abstract class AccountRegistrationWizard \n \n return false ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isHidden ( ) \n + { \n + return false ; \n + } \n }", "msg_token": "Adds a method indicating if a wizard should be shown in availble networks"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public class FlowScopedBeanTest { \n \n @ test \n public void checkRenderedPage ( ) throws Exception { \n - WebConversation conv = new WebConversation ( ) ; \n - GetMethodWebRequest getRequest = new GetMethodWebRequest ( base + STRING0 ) ; \n - String responseText = conv . getResponse ( getRequest ) . getText ( ) ; \n - assert ( responseText . contains ( STRING1 ) ) ; \n + WebClient webClient = new WebClient ( ) ; \n + HtmlPage page = webClient . getPage ( base + STRING0 ) ; \n + assertNotNull ( page ) ; \n + assert ( page . asText ( ) . contains ( STRING1 ) ) ; \n } \n }", "msg_token": "Using HtmlUnit instead of HttpUnit"} {"diff": " final class ActivityStack { \n resetTaskIfNeededLocked ( r , r ) ; \n doShow = topRunningNonDelayedActivityLocked ( null ) == r ; \n } \n + } else if ( options != null && new ActivityOptions ( options ) . getAnimationType ( ) \n + == ActivityOptions . ANIM_SCENE_TRANSITION ) { \n + doShow = false ; \n } \n if ( SHOW_APP_STARTING_PREVIEW && doShow ) { \n SINGLE", "msg_token": "Stop temporary window from showing with activity transitions"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ incubating \n - public interface BuildAction < T > { \n + public interface BuildAction < T > extends Serializable { \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Tooling API BuildAction extends Serializable"} {"diff": " public abstract class ChannelInboundMessageHandlerAdapter < I > \n I imsg = ( I ) msg ; \n try { \n messageReceived ( ctx , imsg ) ; \n - } catch ( Signal abort ) { \n - abort . expect ( ABORT ) ; \n - break ; \n } finally { \n BufUtil . release ( imsg ) ; \n } \n } \n + } catch ( Signal abort ) { \n + abort . expect ( ABORT ) ; \n } finally { \n if ( oldOutSize != out . size ( ) ) { \n ctx . fireInboundBufferUpdated ( ) ;", "msg_token": "Simplify ChannelInboundMessageHandlerAdapter inboundBufferUpdated implementation"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class PropertyPathFactoryBean implements FactoryBean < Object > , BeanNameAwa \n public Object getObject ( ) throws BeansException { \n BeanWrapper target = this . targetBeanWrapper ; \n if ( target != null ) { \n - if ( logger . isWarnEnabled ( ) && this . beanFactory instanceof ConfigurableBeanFactory && \n + if ( logger . isWarnEnabled ( ) && this . targetBeanName != null && \n + this . beanFactory instanceof ConfigurableBeanFactory && \n ( ( ConfigurableBeanFactory ) this . beanFactory ) . isCurrentlyInCreation ( this . targetBeanName ) ) { \n logger . warn ( STRING0 + this . targetBeanName + STRING1 + \n STRING2 + this . propertyPath + STRING3 ) ;", "msg_token": "do not call isCurrentlyInCreation with null argument in order to meet newly enforced assertions within the BeanFactory"} {"diff": " public class WifiStateTracker extends NetworkStateTracker { \n COMMENT \n COMMENT \n COMMENT \n - private static final int DEFAULT_MAX_DHCP_RETRIES = NUMBER0 ; \n + private static final int DEFAULT_MAX_DHCP_RETRIES = NUMBER1 ; \n \n private static final int DRIVER_POWER_MODE_AUTO = NUMBER2 ; \n private static final int DRIVER_POWER_MODE_ACTIVE = NUMBER3 ; \n public class WifiStateTracker extends NetworkStateTracker { \n String BSSID = ( msg . obj != null ) ? msg . obj . toString ( ) : null ; \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n if ( mWifiInfo . getSupplicantState ( ) != SupplicantState . UNINITIALIZED ) { \n if ( ++ mReconnectCount > getMaxDhcpRetries ( ) ) { \n if ( LOCAL_LOGD ) { \n Log . d ( TAG , STRING0 + \n - mReconnectCount + STRING1 + BSSID ) ; \n + mReconnectCount + STRING2 + BSSID ) ; \n } \n - addToBlacklist ( BSSID ) ; \n + mWM . disableNetwork ( mLastNetworkId ) ; \n } \n reconnectCommand ( ) ; \n }", "msg_token": "Remove indefinite DHCP retries"} {"diff": " class ModelMetricsHandler extends Handler { \n mm = new ModelMetricsListSchemaV3 ( ) ; \n \n mm . predictions_frame = new KeyV3 . FrameKeyV3 ( predictions . _key ) ; \n + if ( parms . _leaf_node_assignment ) SINGLE \n + mm . model_metrics = null ; \n \n if ( null == mm . model_metrics || NUMBER0 == mm . model_metrics . length ) { \n SINGLE", "msg_token": "No longer return a metric when making leaf node predictions"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MatcherImpl { \n result . addAll ( Arrays . asList ( contentRoots ) ) ; \n \n if ( scope . isSearchInLibraries ( ) ) { \n - for ( VirtualFile file : instance . getRootFiles ( ProjectRootType . SOURCE ) ) { \n + for ( VirtualFile file : instance . getFilesFromAllModules ( OrderRootType . SOURCES ) ) { \n if ( projectFileIndex . isInLibrarySource ( file ) ) { \n result . add ( file ) ; \n }", "msg_token": "killing off deprecated roots stuff"} {"diff": " public class AudioRecord \n COMMENT \n COMMENT \n COMMENT \n - private int mSampleRate = NUMBER0 ; \n + private int mSampleRate ; \n COMMENT \n COMMENT \n COMMENT \n - private int mChannelCount = NUMBER1 ; \n + private int mChannelCount ; \n COMMENT \n COMMENT \n COMMENT \n public class AudioRecord \n COMMENT \n COMMENT \n COMMENT \n - private int mAudioFormat = AudioFormat . ENCODING_PCM_16BIT ; \n + private int mAudioFormat ; \n COMMENT \n COMMENT \n COMMENT \n - private int mRecordSource = MediaRecorder . AudioSource . DEFAULT ; \n + private int mRecordSource ; \n COMMENT \n COMMENT \n COMMENT \n public class AudioRecord \n public AudioRecord ( int audioSource , int sampleRateInHz , int channelConfig , int audioFormat , \n int bufferSizeInBytes ) \n throws IllegalArgumentException { \n - mState = STATE_UNINITIALIZED ; \n mRecordingState = RECORDSTATE_STOPPED ; \n \n SINGLE", "msg_token": "Don t doubly initialize fields in constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class OStorageAbstract extends OSharedContainerImpl implements O \n ( ( OCloseable ) resource ) . close ( ) ; \n } \n sharedResources . clear ( ) ; \n + \n + Orient . instance ( ) . unregisterStorage ( this ) ; \n } \n \n COMMENT \n public class OStorageLocal extends OStorageEmbedded { \n lock . acquireExclusiveLock ( ) ; \n try { \n \n + addUser ( ) ; \n + \n if ( status != STATUS . CLOSED ) \n SINGLE \n SINGLE \n return ; \n \n - addUser ( ) ; \n - \n if ( ! exists ( ) ) \n throw new OStorageException ( STRING0 + name + STRING1 + url ) ;", "msg_token": "Fixed bug on multiple database against one storage with auto close set"} {"diff": " public class GrailsAwareTraitInjectionOperation extends \n ClassNode traitClassNode = ClassHelper . make ( trait ) ; \n if ( ! classNode . implementsInterface ( traitClassNode ) ) { \n classNode . addInterface ( traitClassNode ) ; \n - if ( unit . getPhase ( ) != CompilePhase . SEMANTIC_ANALYSIS . getPhaseNumber ( ) ) { \n - TraitComposer . doExtendTraits ( classNode , source , unit ) ; \n - } \n } \n } \n + if ( unit . getPhase ( ) != CompilePhase . SEMANTIC_ANALYSIS . getPhaseNumber ( ) ) { \n + TraitComposer . doExtendTraits ( classNode , source , unit ) ; \n + } \n } \n \n public List < TraitInjector > getTraitInjectors ( ) {", "msg_token": "invoke TraitComposer doExtendTraits once per class not once per trait"} {"diff": " public final class FixedLengthStreamSourceConduit extends AbstractStreamSourceC \n } \n long res = NUMBER0 L ; \n try { \n - if ( allAreSet ( val , FLAG_CLOSED ) || val == NUMBER0 L ) { \n - return - NUMBER1 ; \n - } \n return res = next . transferTo ( min ( count , val & MASK_COUNT ) , throughBuffer , target ) ; \n } finally { \n exitRead ( res == - NUMBER1 ? val & MASK_COUNT : res + throughBuffer . remaining ( ) ) ;", "msg_token": "Remove duplicate check"} {"diff": " public class ShowsActivity extends BaseActivity implements AbsListView . OnScrollL \n onNavigationItemSelected ( filterId , filterId ) ; \n } \n \n - final OnSharedPreferenceChangeListener mPrefsListener = new OnSharedPreferenceChangeListener ( ) { \n + private final OnSharedPreferenceChangeListener mPrefsListener = new OnSharedPreferenceChangeListener ( ) { \n \n public void onSharedPreferenceChanged ( SharedPreferences sharedPreferences , String key ) { \n boolean isAffectingChange = false ;", "msg_token": "Make prefListener private"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class PluginsCheckerWPOrg { \n private final static String BB_PLUGINS_LIST_URL = STRING0 ; \n \n public class PluginsCheckerWPOrg { \n mOriginalURL = url ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public List < Plugin > checkForPlugins ( ) { \n String responseHTML = downloadPluginsList ( ) ; \n if ( TextUtils . isEmpty ( responseHTML ) ) {", "msg_token": "Add comments on the black box scanner tools"} {"diff": " public class GPIOLinux implements GPIO , ManagedService { \n \n COMMENT \n Files . write ( Paths . get ( SYSFS_CLASS_GPIO + STRING0 ) , pinNumber . toString ( ) . getBytes ( ) ) ; \n - \n + \n + COMMENT \n + Thread . sleep ( NUMBER0 ) ; \n COMMENT \n pin = new GPIOPinLinux ( pinNumber , SYSFS_CLASS_GPIO + STRING1 + pinNumber , defaultDebounceInterval ) ;", "msg_token": "wait half a second after exporting pin"} {"diff": " public class ODocument extends ORecordAbstract \n if ( isTrackingChanges ( ) && id . getIdentity ( ) . getClusterId ( ) != - NUMBER0 ) \n super . track ( id ) ; \n } \n + \n + @ override \n + protected void unTrack ( OIdentifiable id ) { \n + if ( isTrackingChanges ( ) && id . getIdentity ( ) . getClusterId ( ) != - NUMBER0 ) \n + super . unTrack ( id ) ; \n + } \n }", "msg_token": "skipping tracking on unreference"} {"diff": " class PhaseOptimizer implements CompilerPass { \n SINGLE \n @ visiblefortesting \n static final List < String > OPTIMAL_ORDER = ImmutableList . of ( \n - STRING0 , \n STRING1 , \n - STRING2 , \n - STRING3 , \n - STRING4 , \n - STRING5 , \n STRING6 , \n + STRING0 , \n STRING7 , \n - STRING8 ) ; \n + STRING4 , \n + STRING2 , \n + STRING9 , \n + STRING8 , \n + STRING5 , \n + STRING3 ) ; \n \n static final int MAX_LOOPS = NUMBER0 ; \n static final String OPTIMIZE_LOOP_ERROR =", "msg_token": "Reorder the ideal order so that removeDeadCode is always directly after the peephole and minimizeExitpoint passes which are cheaper"} {"diff": " public class ResolveImportUtil { \n } \n } \n \n - private static void visitRoots ( @ notnull Module module , RootVisitor visitor ) { \n + public static void visitRoots ( @ notnull Module module , RootVisitor visitor ) { \n SINGLE \n SINGLE \n if ( visitModuleContentEntries ( module , visitor ) ) return ;", "msg_token": "Fixed django search in run django configuration"} {"diff": " public final class EarClippingTriangulator { \n } \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n private void classifyVertex ( int index ) { \n final Vector2 previousVertex = vertices . get ( computePreviousIndex ( index ) ) ; \n final Vector2 currentVertex = vertices . get ( index ) ; \n public final class EarClippingTriangulator { \n if ( vertexTypes [ pEarTipIndex ] != CONVEX_OR_TANGENTIAL ) { \n return false ; \n } \n - if ( this . concaveVertexCount == NUMBER0 ) { \n + if ( this . concaveVertexCount == NUMBER0 ) { \n return true ; \n } \n final int previousIndex = computePreviousIndex ( pEarTipIndex ) ;", "msg_token": "Run the code formatter"} {"diff": " public class TimeBasedUuidGeneratorTest { \n Collections . sort ( uuids ) ; \n \n for ( int i = NUMBER0 ; i < COUNT ; i ++ ) { \n - SINGLE \n - if ( uuids . get ( i - NUMBER0 ) . equals ( uuids . get ( i ) ) ) { \n - System . out . println ( STRING0 ) ; \n - } \n + assertFalse ( uuids . toString ( ) , uuids . get ( i - NUMBER0 ) . equals ( uuids . get ( i ) ) ) ; \n } \n } \n }", "msg_token": "Reverted temporary code which was mistakenly checked in"} {"diff": " public class RagdollControl implements PhysicsControl , PhysicsCollisionListener \n this . control = control ; \n for ( PhysicsBoneLink link : boneLinks . values ( ) ) { \n link . bone . setUserControl ( control ) ; \n + link . rigidBody . setKinematic ( ! control ) ; \n } \n \n }", "msg_token": "set kinematic mode to ragdoll parts when control is disabled"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class HgPlatformTest extends LightPlatformTestCase { \n protected VirtualFile myProjectRoot ; \n protected VirtualFile myRepository ; \n \n + @ suppresswarnings ( STRING0 ) \n + protected HgPlatformTest ( ) { \n + PlatformTestCase . initPlatformLangPrefix ( ) ; \n + } \n + \n @ override \n protected void setUp ( ) throws Exception { \n super . setUp ( ) ;", "msg_token": "Allow Mercurial tests to start on their own class path"} {"diff": " public class DoubleHeapSelect { \n if ( n < k ) { \n heap [ n ++ ] = datum ; \n if ( n == k ) { \n - heapify ( heap ) ; \n + sort ( heap , k ) ; \n } \n } else { \n n ++ ; \n public class DoubleHeapSelect { \n COMMENT \n COMMENT \n public double peek ( ) { \n + if ( n < k ) sort ( heap , n ) ; \n return heap [ NUMBER0 ] ; \n }", "msg_token": "fix a bug with heapify"} {"diff": " public class RichEditor extends WebView { \n } \n \n public void setHtml ( String contents ) { \n + if ( contents == null ) { \n + contents = STRING0 ; \n + } \n exec ( STRING1 + contents + STRING2 ) ; \n + mContents = contents ; \n } \n \n public String getHtml ( ) {", "msg_token": "add null check"} {"diff": " public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase { \n assert classContainingFile instanceof JetFile ; \n containingFile = ( JetFile ) classContainingFile ; \n \n - if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n - NavigationUtil . activateFileWithPsiElement ( containingFile ) ; \n - } \n + NavigationUtil . activateFileWithPsiElement ( containingFile ) ; \n containingFileEditor = FileEditorManager . getInstance ( project ) . getSelectedTextEditor ( ) ; \n \n JetClassBody classBody = ownerClass . getBody ( ) ;", "msg_token": "Removed a redundant check"} {"diff": " public abstract class TransactionAspectSupport implements BeanFactoryAware , Init \n return this . transactionManager ; \n } \n String qualifier = txAttr . getQualifier ( ) ; \n - if ( StringUtils . hasLength ( qualifier ) ) { \n + if ( StringUtils . hasText ( qualifier ) ) { \n PlatformTransactionManager txManager = this . transactionManagerCache . get ( qualifier ) ; \n if ( txManager == null ) { \n txManager = BeanFactoryAnnotationUtils . qualifiedBeanOfType ( \n public abstract class TransactionAspectSupport implements BeanFactoryAware , Init \n } \n return txManager ; \n } \n - else if ( this . transactionManagerBeanName != null ) { \n + else if ( StringUtils . hasText ( this . transactionManagerBeanName ) ) { \n PlatformTransactionManager txManager = this . transactionManagerCache . get ( this . transactionManagerBeanName ) ; \n if ( txManager == null ) { \n txManager = this . beanFactory . getBean (", "msg_token": "Require non empty values for TxMgr qualifiers bean names"} {"diff": " public class CarrierConfigManager { \n public static final String KEY_WFC_DATA_SPN_FORMAT_IDX_INT = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String KEY_CARRIER_NAME_OVERRIDE_BOOL = STRING1 ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String KEY_CARRIER_NAME_STRING = STRING2 ; \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CarrierConfigManager { \n sDefaults . putInt ( KEY_WFC_SPN_FORMAT_IDX_INT , NUMBER0 ) ; \n sDefaults . putInt ( KEY_WFC_DATA_SPN_FORMAT_IDX_INT , NUMBER0 ) ; \n sDefaults . putBoolean ( KEY_CONFIG_WIFI_DISABLE_IN_ECBM , false ) ; \n + sDefaults . putBoolean ( KEY_CARRIER_NAME_OVERRIDE_BOOL , false ) ; \n + sDefaults . putString ( KEY_CARRIER_NAME_STRING , STRING3 ) ; \n \n SINGLE \n sDefaults . putBoolean ( KEY_MMS_ALIAS_ENABLED_BOOL , false ) ;", "msg_token": "Add carrier config variables for overriding carrier name from carrierconf"} {"diff": " public class TestPerf extends TestBase { \n public long var2 ; \n } \n \n + SINGLE \n @ test \n public void testDifference ( ) { \n try {", "msg_token": "Added TODO for perf test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n + @ ignore ( STRING0 ) \n public class LanguageJavaScriptNoCacheTest extends CamelTestSupport { \n \n @ test \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n + @ ignore ( STRING0 ) \n public class LanguageJavaScriptTest extends CamelTestSupport { \n \n @ test", "msg_token": "Skip tests which fails on CI servers"} {"diff": " public class ParquetHiveRecordCursor \n FileMetaData fileMetaData = parquetMetadata . getFileMetaData ( ) ; \n MessageType fileSchema = fileMetaData . getSchema ( ) ; \n \n - MessageType schema = fileMetaData . getSchema ( ) ; \n - PrestoReadSupport readSupport = new PrestoReadSupport ( useParquetColumnNames , columns , schema ) ; \n + PrestoReadSupport readSupport = new PrestoReadSupport ( useParquetColumnNames , columns , fileSchema ) ; \n \n List < parquet . schema . Type > fields = columns . stream ( ) \n . filter ( column - > ! column . isPartitionKey ( ) )", "msg_token": "Remove unnecessary variable"} {"diff": " public class H2ONode extends Iced implements Comparable { \n SINGLE \n SINGLE \n SINGLE \n - static public NonBlockingHashMapLong < RPC . RPCCall > WORK = new NonBlockingHashMapLong ( ) ; \n + public NonBlockingHashMapLong < RPC . RPCCall > WORK = new NonBlockingHashMapLong ( ) ; \n \n RPC . RPCCall has_task ( int tnum ) { return WORK . get ( tnum ) ; }", "msg_token": "need a WORK hashmap per remote jvm"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PublishProfilePictureActivity extends XmppActivity { \n } \n return true ; \n } else { \n - return onOptionsItemSelected ( item ) ; \n + return super . onOptionsItemSelected ( item ) ; \n } \n }", "msg_token": "fixed recursive call instead of call to super in PublishProfileActivity"} {"diff": " public class CxxPreprocessAndCompile \n } \n \n @ override \n + public String getType ( ) { \n + if ( operation . isCompile ( ) && operation . isPreprocess ( ) ) { \n + return STRING0 ; \n + } else if ( operation . isPreprocess ( ) ) { \n + return STRING1 ; \n + } else { \n + return STRING2 ; \n + } \n + } \n + \n + @ override \n public ImmutableList < Step > getBuildSteps ( \n BuildContext context , \n BuildableContext buildableContext ) { \n public abstract class AbstractBuildRule implements BuildRule { \n } \n \n @ override \n - public final String getType ( ) { \n + public String getType ( ) { \n return typeSupplier . get ( ) ; \n }", "msg_token": "reflect preprocess compile in rule type"} {"diff": " public class JSONWorldDataHelper \n return ; \n \n JsonArray arr = new JsonArray ( ) ; \n - BlockPos pos = player . getPosition ( ) ; \n + BlockPos pos = new BlockPos ( player . posX , player . posY , player . posZ ) ; \n for ( int y = environmentDimensions . yMin ; y <= environmentDimensions . yMax ; y ++ ) \n { \n for ( int z = environmentDimensions . zMin ; z <= environmentDimensions . zMax ; z ++ )", "msg_token": "Fixed weird rounding behaviour in y axis"} {"diff": " public class ServletOutputStreamImpl extends ServletOutputStream implements Buff \n public ServletOutputStreamImpl ( long contentLength , final ServletRequestContext servletRequestContext ) { \n this . contentLength = contentLength ; \n this . underlyingConnectionChannel = servletRequestContext . getExchange ( ) . getConnection ( ) . getChannel ( ) . getSinkChannel ( ) ; \n - this . threadSetupAction = servletRequestContext . getDeployment ( ) . getServletContext ( ) . getDeployment ( ) . getThreadSetupAction ( ) ; \n + this . threadSetupAction = servletRequestContext . getDeployment ( ) . getThreadSetupAction ( ) ; \n this . servletRequestContext = servletRequestContext ; \n }", "msg_token": "Fix some sillyness from last refactoring"} {"diff": " public final class CompilationSupport { \n SINGLE \n SINGLE \n . addAll ( PathFragment . safePathStrings ( uniqueParentDirectories ( provider . get ( FRAMEWORK_DIR ) ) ) ) \n - . addAll ( \n - Interspersing . beforeEach ( \n - STRING0 , \n - PathFragment . safePathStrings ( \n - uniqueParentDirectories ( provider . get ( FRAMEWORK_SEARCH_PATH_ONLY ) ) ) ) ) \n + . addAll ( PathFragment . safePathStrings ( \n + uniqueParentDirectories ( provider . get ( FRAMEWORK_SEARCH_PATH_ONLY ) ) ) ) \n . build ( ) ; \n }", "msg_token": "Remove one instance of F interspersing with framework linking"} {"diff": " public class ConcurrentBroadcastTest { \n \n @ test ( timeOut = NUMBER0 , enabled = true ) \n public void testConcurrentSuspendAndBroadcast ( ) { \n - logger . info ( STRING0 ) ; \n + logger . info ( STRING1 ) ; \n \n AsyncHttpClient c = new AsyncHttpClient ( ) ; \n Broadcaster b = null ;", "msg_token": "Improve the test"} {"diff": " public static Object macroexpand1 ( Object x ) throws Exception { \n SINGLE \n if ( sym . name . charAt ( NUMBER0 ) == STRING0 ) \n { \n + if ( RT . length ( form ) < NUMBER1 ) \n + throw new IllegalArgumentException ( STRING1 ) ; \n Symbol meth = Symbol . intern ( sname . substring ( NUMBER2 ) ) ; \n return RT . listStar ( DOT , RT . second ( form ) , meth , form . rest ( ) . rest ( ) ) ; \n }", "msg_token": "throw exception on"} {"diff": " public final class LongMath { \n @ beta \n public static long ceilingPowerOfTwo ( long x ) { \n checkPositive ( STRING0 , x ) ; \n - if ( x > ( NUMBER0 < < ( Long . SIZE - NUMBER1 ) ) ) { \n + if ( x > MAX_SIGNED_POWER_OF_TWO ) { \n throw new ArithmeticException ( STRING1 + x + STRING2 ) ; \n } \n return NUMBER0 < < - Long . numberOfLeadingZeros ( x - NUMBER2 ) ;", "msg_token": "Fix a minor oversight in using a constant in LongMath for its intended purpose"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n @ mixin ( value = WorldServer . class , priority = NUMBER0 ) \n public abstract class MixinWorldServer implements World , IMixinWorldServer { \n + @ shadow @ final public WorldProvider worldProvider ; \n + \n + @ override \n + public void setDimensionId ( int dimensionId ) { \n + throw new IllegalStateException ( STRING0 ) ; \n + } \n + \n + @ override \n + public int getDimensionId ( ) { \n + return this . worldProvider . getDimension ( ) ; \n + } \n \n @ override \n public SpongeChunkGenerator createChunkGenerator ( SpongeWorldGenerator newGenerator ) {", "msg_token": "Restore SF dimension ids on Worlds"} {"diff": " public final class PullToRefreshListActivity extends ListActivity { \n mPullRefreshListView . setOnRefreshListener ( new OnRefreshListener < ListView > ( ) { \n @ override \n public void onRefresh ( PullToRefreshBase < ListView > refreshView ) { \n - mPullRefreshListView . setLastUpdatedLabel ( DateUtils . formatDateTime ( getApplicationContext ( ) , \n - System . currentTimeMillis ( ) , DateUtils . FORMAT_SHOW_TIME | DateUtils . FORMAT_SHOW_DATE \n - | DateUtils . FORMAT_ABBREV_ALL ) ) ; \n + String label = DateUtils . formatDateTime ( getApplicationContext ( ) , System . currentTimeMillis ( ) , \n + DateUtils . FORMAT_SHOW_TIME | DateUtils . FORMAT_SHOW_DATE | DateUtils . FORMAT_ABBREV_ALL ) ; \n + \n + SINGLE \n + refreshView . getLoadingLayoutProxy ( ) . setLastUpdatedLabel ( label ) ; \n \n SINGLE \n new GetDataTask ( ) . execute ( ) ;", "msg_token": "Fix use of deprecated methods in sample"} {"diff": " public class InferenceSession { \n return null ; \n } \n \n - private void collectAdditionalConstraints ( PsiParameter [ ] parameters , \n - PsiExpression [ ] args , \n - PsiMethod parentMethod , \n - Set < ConstraintFormula > additionalConstraints ) { \n + private static void collectAdditionalConstraints ( PsiParameter [ ] parameters , \n + PsiExpression [ ] args , \n + PsiMethod parentMethod , \n + Set < ConstraintFormula > additionalConstraints ) { \n for ( int i = NUMBER0 ; i < args . length ; i ++ ) { \n if ( args [ i ] != null ) { \n - PsiType parameterType = getParameterType ( parameters , args , i , mySiteSubstitutor ) ; \n + PsiType parameterType = getParameterType ( parameters , args , i , PsiSubstitutor . EMPTY ) ; \n if ( ! isPertinentToApplicability ( args [ i ] , parentMethod ) ) { \n additionalConstraints . add ( new ExpressionCompatibilityConstraint ( args [ i ] , parameterType ) ) ; \n }", "msg_token": "do not apply substitution twice for additional constraints"} {"diff": " public class PlayApplicationPlugin { \n } ) ; \n } \n \n - @ finalize \n + @ validate \n void failOnMultiplePlayComponents ( ComponentSpecContainer container ) { \n if ( container . withType ( PlayApplicationSpec . class ) . size ( ) >= NUMBER0 ) { \n throw new GradleException ( STRING0 ) ;", "msg_token": "Changed play plugin to use Validate to verify that no more than one play application is defined for the project"} {"diff": " public class BackupDeleteActivity extends BaseActivity { \n return new File ( Environment . getExternalStorageDirectory ( ) , STRING0 ) ; \n } \n \n - private File getBackupFolder ( ) { \n - return new File ( Environment . getExternalStorageDirectory ( ) , STRING0 ) ; \n - } \n - \n private class ExportDatabaseTask extends AsyncTask < Void , Void , String > { \n \n SINGLE", "msg_token": "Git merge fail"} {"diff": " public class RunJar { \n File tmpDir = new File ( new Configuration ( ) . get ( STRING0 ) ) ; \n ensureDirectory ( tmpDir ) ; \n \n - final File workDir ; \n - try { \n - workDir = File . createTempFile ( STRING1 , STRING2 , tmpDir ) ; \n - } catch ( IOException ioe ) { \n - SINGLE \n - SINGLE \n - System . err . println ( STRING3 \n - + tmpDir + STRING4 + ioe . getMessage ( ) ) ; \n - System . exit ( - NUMBER0 ) ; \n - return ; \n - } \n - \n + final File workDir = File . createTempFile ( STRING1 , STRING2 , tmpDir ) ; \n if ( ! workDir . delete ( ) ) { \n System . err . println ( STRING5 + workDir ) ; \n System . exit ( - NUMBER0 ) ;", "msg_token": "Revert accidental change in previous commit"} {"diff": " public interface FormattedAuditEvent { \n String action ( ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface FormattedAuditEvent { \n COMMENT \n COMMENT \n COMMENT \n - String formatString ( ) ; \n + String messageTemplate ( ) ; \n \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Rename formatString to messageTemplate in FormattedAuditEvent"} {"diff": " public class ArrayQueueOutOfOrderSequence implements OutOfOrderSequence \n while ( true ) \n { \n int versionBefore = version ; \n - if ( versionBefore % NUMBER0 == NUMBER1 ) SINGLE \n + if ( ( versionBefore & NUMBER1 ) == NUMBER1 ) \n { SINGLE \n continue ; \n }", "msg_token": "Replaced modulo calc with bitmask for efficiency"} {"diff": " public interface XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void addSyncPacketListener ( PacketListener packetListener , PacketFilter packetFilter ) ; \n public interface XMPPConnection { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public void addAsyncPacketListener ( PacketListener packetListener , PacketFilter packetFilter ) ;", "msg_token": "Fix javadox in XMPPConnection"} {"diff": " public class MaterialCalendarView extends FrameLayout { \n buttonFuture . setEnabled ( canGoForward ( ) ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setTileSize ( int size ) { \n LayoutParams p = new LayoutParams ( size * NUMBER0 , size * NUMBER1 ) ; \n p . gravity = Gravity . CENTER ; \n root . setLayoutParams ( p ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setTileSizeDp ( int tileSizeDp ) { \n setTileSize ( ( int ) TypedValue . applyDimension ( \n TypedValue . COMPLEX_UNIT_DIP , tileSizeDp , getResources ( ) . getDisplayMetrics ( )", "msg_token": "Add javadoc for setTileSize"} {"diff": " public class MainMenuActivity extends BaseDownloadActivity implements OsmAndLoca \n if ( f instanceof DashAudioVideoNotesFragment && ! f . isDetached ( ) ) { \n ( ( DashAudioVideoNotesFragment ) f ) . setupNotes ( ) ; \n } \n + \n + SINGLE \n + if ( f instanceof DashFavoritesFragment && ! f . isDetached ( ) ) { \n + ( ( DashFavoritesFragment ) f ) . updateLocation ( null ) ; \n + } \n } \n }", "msg_token": "Try fix issue that DashFavoritesFragment is not reliably shown on non compass devices"} {"diff": " public class DeepLearning extends Job . ValidatedJob { \n \n @ override protected void queryArgumentValueSet ( Argument arg , java . util . Properties inputArgs ) { \n super . queryArgumentValueSet ( arg , inputArgs ) ; \n + SINGLE \n if ( ! arg . _name . equals ( STRING0 ) \n && ! arg . _name . equals ( STRING1 ) \n && ! arg . _name . equals ( STRING2 ) \n public class DeepLearning extends Job . ValidatedJob { \n throw new IllegalArgumentException ( STRING3 ) ; \n } \n final DeepLearning cp = cp_model . model_info ( ) . get_params ( ) ; \n - SINGLE \n SINGLE \n balance_classes = cp . balance_classes ; \n score_validation_sampling = cp . score_validation_sampling ; \n max_after_balance_size = cp . max_after_balance_size ; \n score_training_samples = cp . score_training_samples ; \n score_validation_samples = cp . score_validation_samples ; \n + shuffle_training_data = cp . shuffle_training_data ; \n + force_load_balance = cp . force_load_balance ; \n state = JobState . RUNNING ; \n return ; \n }", "msg_token": "Use the same shuffling load balancing parameters as the checkpointed model when"} {"diff": " public class EntityMentionsAnnotatorITest extends TestCase { \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n String [ ] expectedMentions = { \n STRING0 , \n STRING1 , \n - STRING2 , \n - STRING3 , \n + STRING4 , \n + STRING5 , \n STRING6 , \n STRING7 , \n STRING8 ,", "msg_token": "Fix test to correspond to current NER output"} {"diff": " public abstract class DefaultModuleConfigurationEditorFactory implements Applica \n \n public abstract ModuleConfigurationEditor createJavadocEditor ( ModuleConfigurationState state ) ; \n \n + public abstract ModuleConfigurationEditor createOutputEditor ( ModuleConfigurationState state ) ; \n + \n public static DefaultModuleConfigurationEditorFactory getInstance ( ) { \n return ApplicationManager . getApplication ( ) . getComponent ( DefaultModuleConfigurationEditorFactory . class ) ; \n } \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class DefaultModuleConfigurationEditorFactoryImpl extends DefaultModuleCo \n return new JavadocEditor ( state . getProject ( ) , state . getRootModel ( ) ) ; \n } \n \n + public ModuleConfigurationEditor createOutputEditor ( ModuleConfigurationState state ) { \n + return new BuildElementsEditor ( state . getProject ( ) , state . getRootModel ( ) ) ; \n + } \n + \n + @ notnull \n public String getComponentName ( ) { \n return STRING0 ; \n }", "msg_token": "add output tab for plugin modules"} {"diff": " public abstract class Model { \n public boolean equals ( Object obj ) { \n final Model other = ( Model ) obj ; \n \n - return this . mId != null && ( this . mTableInfo . getTableName ( ) == other . mTableInfo . getTableName ( ) ) \n - && ( this . mId == other . mId ) ; \n + return this . mId != null && ( this . mTableInfo . getTableName ( ) . equals ( other . mTableInfo . getTableName ( ) ) ) \n + && ( this . mId . equals ( other . mId ) ) ; \n } \n - } \n + }", "msg_token": "Fixed Model equals method"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n continue ; \n } \n \n + child . getVisibleBounds ( mTmpRect ) ; \n + if ( ! mTmpRect . contains ( x , y ) ) { \n + continue ; \n + } \n + \n child . getTouchableRegion ( mTmpRegion ) ; \n \n final int touchFlags = flags &", "msg_token": "Fix cross app drag and drop"} {"diff": " public final class ProxyManager { \n register ( serviceName , new ClientProxyFactory ( ) { \n @ override \n public ClientProxy create ( String id ) { \n - String instanceName = client . getName ( ) ; \n return instantiateClientProxy ( proxyType , serviceName , id ) ; \n } \n } ) ;", "msg_token": "Fixed findbugs deadstore issue"} {"diff": " public abstract class Random { \n COMMENT \n COMMENT \n COMMENT \n - public double nextStandNormalDistrDouble ( ) { \n + public double nextGaussian ( ) { \n \n double q = Double . MAX_VALUE ; \n double u1 = NUMBER0 ; \n public class FloraGenerator implements FirstPassGenerator { \n COMMENT \n COMMENT \n COMMENT \n - double rand = random . nextStandNormalDistrDouble ( ) ; \n + double rand = random . nextGaussian ( ) ; \n \n if ( rand > - FLOAT0 && rand < FLOAT0 ) { \n c . setBlock ( x , y + NUMBER1 , z , tallGrass1 ) ; \n public class FloraGenerator implements FirstPassGenerator { \n COMMENT \n COMMENT \n COMMENT \n - if ( random . nextStandNormalDistrDouble ( ) < - NUMBER2 ) { \n + if ( random . nextGaussian ( ) < - NUMBER2 ) { \n c . setBlock ( x , y + NUMBER1 , z , random . nextItem ( flowers ) ) ; \n } \n }", "msg_token": "Renamed Random nextStandNormalDistrDouble to nextGaussian"} {"diff": " public class StandardWrapper extends ContainerBase \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n @ override \n public void servletSecurityAnnotationScan ( ) throws ServletException {", "msg_token": "Fix Eclipse Javadoc warning"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class RuleDataMediumTest { \n \n public class DataStoreCleanup implements ServerComponent { \n public void clearIndexes ( ) { \n LOG . info ( STRING0 ) ; \n Client client = esNode . client ( ) ; \n - client . prepareDeleteByQuery ( \n - client . admin ( ) . cluster ( ) . prepareState ( ) . get ( ) . getState ( ) . getMetaData ( ) . concreteAllIndices ( ) \n - ) . setQuery ( QueryBuilders . matchAllQuery ( ) ) . get ( ) ; \n + client . prepareDeleteByQuery ( client . admin ( ) . cluster ( ) . prepareState ( ) . get ( ) \n + . getState ( ) . getMetaData ( ) . concreteAllIndices ( ) ) \n + . setQuery ( QueryBuilders . matchAllQuery ( ) ) \n + . get ( ) ; \n \n } \n }", "msg_token": "fix quality flaw code cleanup"} {"diff": " public class ImportTool \n { \n return new org . neo4j . unsafe . impl . batchimport . Configuration . Default ( ) \n { \n + private static final int WRITE_BUFFER_SIZE_FOR_TEST = NUMBER0 * NUMBER0 * NUMBER1 ; SINGLE \n + \n @ override \n public int writeBufferSize ( ) \n { \n - return defaultSettingsSuitableForTests ? NUMBER0 * NUMBER0 * NUMBER1 : super . writeBufferSize ( ) ; \n + return defaultSettingsSuitableForTests ? WRITE_BUFFER_SIZE_FOR_TEST : super . writeBufferSize ( ) ; \n } \n \n @ override", "msg_token": "Pull constant expression into constant field"} {"diff": " public final class LoadedApk { \n final String zip = mIncludeCode ? TextUtils . join ( File . pathSeparator , zipPaths ) : STRING0 ; \n final boolean isBundledApp = mApplicationInfo . isSystemApp ( ) \n && ! mApplicationInfo . isUpdatedSystemApp ( ) ; \n - String libraryPermittedPath = mDataDir ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + String libraryPermittedPath = STRING1 ; \n if ( isBundledApp ) { \n SINGLE \n SINGLE \n libraryPermittedPath += File . pathSeparator + \n System . getProperty ( STRING2 ) ; \n } \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( mApplicationInfo . targetSdkVersion <= NUMBER0 ) { \n - libraryPermittedPath += File . pathSeparator + STRING3 ; \n - } \n - SINGLE \n \n final String librarySearchPath = TextUtils . join ( File . pathSeparator , libPaths ) ;", "msg_token": "Allow apps to load libraries from under data"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused imports in GWT emulation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n public class DefaultSerializationDelegate implements SerializationDelegate { \n \n @ override \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public class GzipBridgeSerializationDelegate implements SerializationDelegate { \n \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public class GzipSerializationDelegate implements SerializationDelegate { \n \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public interface SerializationDelegate {", "msg_token": "emoved Author tags"} {"diff": " public class DefaultPassConfig extends PassConfig { \n COMMENT \n COMMENT \n final PassFactory exploitAssign = \n - new PassFactory ( STRING0 , true ) { \n + new PassFactory ( STRING1 , true ) { \n @ override \n protected CompilerPass createInternal ( AbstractCompiler compiler ) { \n return new PeepholeOptimizationsPass ( compiler , \n public class DefaultPassConfig extends PassConfig { \n COMMENT \n COMMENT \n COMMENT \n - private static PassFactory createEmptyPass ( String name ) { \n + static PassFactory createEmptyPass ( String name ) { \n return new PassFactory ( name , true ) { \n @ override \n protected CompilerPass createInternal ( final AbstractCompiler compiler ) {", "msg_token": "Add FlumeJava other changes"} {"diff": " public final class FileSystemMaster extends MasterBase { \n public long scheduleAsyncPersistence ( long fileId ) throws FileDoesNotExistException { \n long workerId = scheduleAsyncPersistenceInternal ( fileId ) ; \n \n - SINGLE \n - AsyncPersistRequestEntry asyncPersistRequestEntry = \n - AsyncPersistRequestEntry . newBuilder ( ) . setFileId ( fileId ) . build ( ) ; \n - writeJournalEntry ( \n - JournalEntry . newBuilder ( ) . setAsyncPersistRequest ( asyncPersistRequestEntry ) . build ( ) ) ; \n - flushJournal ( ) ; \n - return workerId ; \n + synchronized ( mInodeTree ) { \n + SINGLE \n + AsyncPersistRequestEntry asyncPersistRequestEntry = \n + AsyncPersistRequestEntry . newBuilder ( ) . setFileId ( fileId ) . build ( ) ; \n + writeJournalEntry ( \n + JournalEntry . newBuilder ( ) . setAsyncPersistRequest ( asyncPersistRequestEntry ) . build ( ) ) ; \n + flushJournal ( ) ; \n + return workerId ; \n + } \n } \n \n private long scheduleAsyncPersistenceInternal ( long fileId ) throws FileDoesNotExistException {", "msg_token": "Addressed some comments"} {"diff": " public final class GsmCallTracker extends CallTracker { \n COMMENT \n COMMENT \n COMMENT \n - Connection \n + synchronized Connection \n dial ( String dialString , int clirMode , UUSInfo uusInfo ) throws CallStateException { \n SINGLE \n clearDisconnected ( ) ; \n public final class GsmCallTracker extends CallTracker { \n } \n } \n \n - protected void \n + protected synchronized void \n handlePollCalls ( AsyncResult ar ) { \n List polledCalls ;", "msg_token": "Prevent dial return null in a racing condition"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IBatisComponent extends ResourceBasedComponent { \n return sqlMapConfig ; \n } \n \n + public void setSqlMapConfig ( String sqlMapConfig ) { \n + this . sqlMapConfig = sqlMapConfig ; \n + } \n + \n public boolean isUseTransactions ( ) { \n return useTransactions ; \n }", "msg_token": "Added a setter on iBatisComponent to configure the SqlMapConfig xml file where its to be loaded"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HdfsFileInputStream extends InputStream implements Seekable , Positi \n \n @ override \n public void readFully ( long position , byte [ ] buffer , int offset , int length ) throws IOException { \n - int nread = NUMBER0 ; \n - while ( nread < length ) { \n - int ret = read ( position + nread , buffer , offset + nread , length - nread ) ; \n + int n = NUMBER0 ; SINGLE \n + while ( n < length ) { \n + int ret = read ( position + n , buffer , offset + n , length - n ) ; \n if ( ret == - NUMBER1 ) { \n - return ; \n + throw new EOFException ( ) ; \n } \n - nread += ret ; \n + n += ret ; \n } \n }", "msg_token": "Addressing review comments"} {"diff": " public class WearableController { \n PutDataMapRequest dataMapRequest = PutDataMapRequest . create ( STRING0 ) ; \n dataMapRequest . getDataMap ( ) . putDataMap ( STRING1 , DataMap . fromBundle ( artwork . toBundle ( ) ) ) ; \n dataMapRequest . getDataMap ( ) . putAsset ( STRING2 , asset ) ; \n - Wearable . DataApi . putDataItem ( googleApiClient , dataMapRequest . asPutDataRequest ( ) ) . await ( ) ; \n + Wearable . DataApi . putDataItem ( googleApiClient , dataMapRequest . asPutDataRequest ( ) . setUrgent ( ) ) . await ( ) ; \n } \n googleApiClient . disconnect ( ) ; \n }", "msg_token": "Ensure Android Wear wallpaper updates immediately"} {"diff": " public class NewBlogFragment extends AbstractFragment implements TextWatcher { \n showError ( getString ( messageId ) ) ; \n } \n } ) ; \n + AppLog . i ( T . NUX , STRING0 + siteName + STRING1 + siteUrl ) ; \n createUserAndBlog . startCreateBlogProcess ( ) ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NewUserFragment extends AbstractFragment implements TextWatcher { \n } \n } \n } ) ; \n + AppLog . i ( T . NUX , STRING2 + username + STRING3 + email \n + + STRING4 + siteName + STRING5 + siteUrl ) ; \n createUserAndBlog . startCreateUserAndBlogProcess ( ) ; \n }", "msg_token": "Add logs when user creates new account site"} {"diff": " public class GithubUtil { \n } \n catch ( Error e ) { \n exceptionRef . set ( new GithubOperationCanceledException ( e ) ) ; \n - throw e ; \n } \n catch ( RuntimeException e ) { \n exceptionRef . set ( new GithubOperationCanceledException ( e ) ) ; \n - throw e ; \n } \n } \n } ) ;", "msg_token": "do not rethrow exception twice"} {"diff": " public abstract class Advapi32Util { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public static void registrySetBinaryValue ( HKEY root , String keyPath , String name , byte [ ] data ) {", "msg_token": "Fixed Javadoc warnings"} {"diff": " class Clicker { \n if ( textMore != null ) \n clickOnScreen ( textMore ) ; \n \n - clickOnText ( text , false , NUMBER0 , false , NUMBER1 ) ; \n + clickOnText ( text , false , NUMBER0 , true , NUMBER1 ) ; \n }", "msg_token": "Modified clickOnMenuItem so that it scrolls"} {"diff": " public class TestConfigurationServicePersistency extends TestCase \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void testReLoadConfiguration ( ) throws Exception \n { \n public class TestConfigurationServicePersistency extends TestCase \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void testStoreConfiguration ( ) throws Exception \n {", "msg_token": "Fixed javadoc conflicts"} {"diff": " public class TezRuntimeEnvironment { \n public TezRuntimeEnvironment ( long totalMemory ) { \n int pageSize = DEFAULT_PAGE_SIZE ; \n int numSlots = DEFAULT_NUM_SLOTS ; \n - this . memoryManager = new DefaultMemoryManager ( totalMemory , numSlots , pageSize ) ; \n + this . memoryManager = new DefaultMemoryManager ( totalMemory , numSlots , pageSize , true ) ; \n this . ioManager = new IOManagerAsync ( ) ; \n }", "msg_token": "tez Fix Flink on Tez use of pre allocating MemoryManager"} {"diff": " public class ODatabaseObjectTx extends ODatabaseWrapperAbstract < ODatabaseDocumen \n return underlying . getHooks ( ) ; \n } \n \n - public < DB extends ODatabaseRecord < ? > > DB registerHook ( ORecordHook iHookImpl ) { \n - return underlying . registerHook ( iHookImpl ) ; \n + public < DB extends ODatabaseRecord < ? > > DB registerHook ( final ORecordHook iHookImpl ) { \n + return ( DB ) underlying . registerHook ( iHookImpl ) ; \n } \n \n - public < DB extends ODatabaseRecord < ? > > DB unregisterHook ( ORecordHook iHookImpl ) { \n - return underlying . unregisterHook ( iHookImpl ) ; \n + public < DB extends ODatabaseRecord < ? > > DB unregisterHook ( final ORecordHook iHookImpl ) { \n + return ( DB ) underlying . unregisterHook ( iHookImpl ) ; \n } \n \n public void callbackHooks ( final TYPE iType , final Object iObject ) {", "msg_token": "Fixed compilation problem"} {"diff": " public class ClusterSettingsIT extends ESIntegTestCase { \n } \n } \n \n + @ awaitsfix ( bugUrl = STRING0 ) \n public void testLoggerLevelUpdate ( ) { \n assertAcked ( prepareCreate ( STRING1 ) ) ; \n final IllegalArgumentException e =", "msg_token": "Mark CSIT testLoggerLevelUpdate as awaits fix"} {"diff": " public final class MapIndexStorage < Key , Value > implements IndexStorage < Key , Valu \n return ; \n } \n \n - ChangeTrackingValueContainer < Value > cached = myCache . getIfCached ( key ) ; \n + ChangeTrackingValueContainer < Value > cached ; \n + try { \n + l . lock ( ) ; \n + cached = myCache . getIfCached ( key ) ; \n + } finally { \n + l . unlock ( ) ; \n + } \n + \n if ( cached != null ) { \n cached . addValue ( inputId , value ) ; \n return ;", "msg_token": "protect myCache access with lock as in other usages"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + SINGLE \n \n - SINGLE \n + SINGLE \n \n - SINGLE \n + SINGLE \n + SINGLE \n \n - SINGLE \n + SINGLE \n \n - SINGLE \n + SINGLE \n \n + SINGLE \n \n public class SshKeyChooser extends Composite \n {", "msg_token": "update vcs todo"} {"diff": " public abstract class Layer extends Iced { \n static final int API_WEAVER = NUMBER0 ; \n public static DocGen . FieldDoc [ ] DOC_FIELDS ; \n \n - public final void init ( Layer [ ] ls , int index , NeuralNet p , NeuralNet . Loss l ) { \n - super . init ( ls , index , p ) ; \n - } \n - \n protected final long pos ( ) { \n return _input . _pos ; \n }", "msg_token": "Remove unneeded code"} {"diff": " public class ChunkDataWidget extends SimplePanel \n pagedTableSource . setAttribute ( STRING0 , STRING1 ) ; \n pagedTableSource . setAttribute ( STRING2 , STRING3 ) ; \n \n + var originalOptions = JSON . parse ( JSON . stringify ( data . options ) ) ; \n if ( fullSize ) { \n data . options . rows . min = NUMBER0 ; \n data . options . rows . max = null ; \n public class ChunkDataWidget extends SimplePanel \n pagedTableSource . appendChild ( $doc . createTextNode ( JSON . stringify ( data ) ) ) \n pagedTable . appendChild ( pagedTableSource ) ; \n \n + data . options = originalOptions ; \n + \n var pagedTableInstance = new PagedTable ( pagedTable ) ; \n \n var chunkWidget = this ; \n import NAMESPACE ; \n \n public class ChunkSatellite extends SatelliteApplication \n { \n - SINGLE \n - SINGLE \n public static final String NAME_PREFIX = STRING4 ; \n \n public ChunkSatellite ( String name )", "msg_token": "preserve original pagedtable option to avoid changing preview gallery thumbnail"} {"diff": " public class PythonAllTestsSuite { \n public static final Class [ ] tests = { \n PythonLexerTest . class , \n PyStringLiteralLexerTest . class , \n + CythonLexerTest . class , \n PyStringFormatParserTest . class , \n PyEncodingTest . class , \n PythonParsingTest . class ,", "msg_token": "Added Cython lexer test"} {"diff": " public class LocalVarRemapper { \n SINGLE \n if ( SHIFT == info . status ) { \n int newIndex = ( ( StackValue . Local ) info . value ) . index ; \n - if ( newIndex != NUMBER0 && STRING0 . equals ( name ) ) { \n - COMMENT \n - return ; \n - } \n mv . visitLocalVariable ( name , desc , signature , start , end , newIndex ) ; \n } \n }", "msg_token": "Don t skip inlined this"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PeopleManagementActivity extends AppCompatActivity { \n \n @ override \n public void onError ( VolleyError error ) { \n + SINGLE \n + } \n \n + @ override \n + public void onJSONException ( JSONException exception ) { \n + SINGLE \n } \n } ) ; \n } \n public class PeopleUtils { \n } \n catch ( JSONException e ) { \n AppLog . e ( T . API , STRING0 + e ) ; \n + if ( callback != null ) { \n + callback . onJSONException ( e ) ; \n + } \n } \n } \n } \n public class PeopleUtils { \n void onSuccess ( ) ; \n \n void onError ( VolleyError error ) ; \n + \n + void onJSONException ( JSONException e ) ; \n } \n }", "msg_token": "Adds onJSONException to PeopleUtils Callback"} {"diff": " public class ShaderParametersDebug extends ShaderParametersBase { \n DefaultRenderingProcess . getInstance ( ) . bindFboTexture ( STRING0 ) ; \n program . setInt ( STRING1 , texId ++ , true ) ; \n break ; \n - case VOLUMETRIC_LIGHTING : L : \n + case VOLUMETRIC_LIGHTING : \n GL13 . glActiveTexture ( GL13 . GL_TEXTURE0 + texId ) ; \n DefaultRenderingProcess . getInstance ( ) . bindFboTexture ( STRING2 ) ; \n program . setInt ( STRING1 , texId ++ , true ) ;", "msg_token": "Fixed typo which lead to the creation of a label"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n @ runwith ( MavenJUnitTestRunner . class ) \n - @ maveninstallations ( { STRING0 } ) \n @ mavenversions ( { STRING1 , STRING2 } ) \n public class LintMojoIntegrationTest \n {", "msg_token": "removed unneeded annotation for test exec"} {"diff": " public class WebSettings { \n private boolean mDatabaseEnabled = false ; \n private String mAppCachePath = STRING0 ; \n private boolean mAppCacheEnabled = false ; \n + private long mAppCacheMaxSize = Long . MAX_VALUE ; \n private boolean mDomStorageEnabled = false ; \n \n SINGLE \n public class WebSettings { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public synchronized void setAppCacheMaxSize ( long appCacheMaxSize ) { \n + if ( appCacheMaxSize != mAppCacheMaxSize ) { \n + mAppCacheMaxSize = appCacheMaxSize ; \n + postSync ( ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Enforce app cache maximum size"} {"diff": " public class Entry { \n \n String hour ; \n String description ; \n - String color ; \n \n public Entry ( String hour ) { \n this . hour = hour ; \n import NAMESPACE ; \n \n public class JspCalendar { \n Calendar calendar = null ; \n - Date currentDate ; \n \n public JspCalendar ( ) { \n calendar = Calendar . getInstance ( ) ;", "msg_token": "Remove unused code"} {"diff": " public class GitBranchTrackInfo { \n return myRemoteBranch ; \n } \n \n - public boolean isMerge ( ) { \n - return myMerge ; \n - } \n - \n @ override \n public String toString ( ) { \n - return String . format ( STRING0 , myLocalBranch . getName ( ) , myRemoteBranch . getName ( ) , myMerge ) ; \n + return String . format ( STRING1 , myLocalBranch . getName ( ) , myRemoteBranch . getName ( ) ) ; \n } \n \n @ suppresswarnings ( STRING2 ) SINGLE", "msg_token": "remove unused method don t display merge param in toString until it is used"} {"diff": " public class TestXxxEndpoint extends TomcatBaseTest { \n SINGLE \n int family = Socket . APR_INET ; \n if ( Library . APR_HAVE_IPV6 ) { \n - if ( address == null ) { \n - if ( ! OS . IS_BSD && ! OS . IS_WIN32 && ! OS . IS_WIN64 ) \n - family = Socket . APR_UNSPEC ; \n - } else if ( address . indexOf ( STRING0 ) >= NUMBER0 ) { \n + if ( ! OS . IS_BSD && ! OS . IS_WIN32 && ! OS . IS_WIN64 ) \n family = Socket . APR_UNSPEC ; \n - } \n } \n \n long inetAddress = NUMBER0 ;", "msg_token": "Remove dead code"} {"diff": " public class ExternalPlayerFragment extends Fragment { \n . into ( imgvCover ) ; \n \n fragmentLayout . setVisibility ( View . VISIBLE ) ; \n - SINGLE \n - if ( controller . isPlayingVideo ( ) ) { \n + if ( controller . isPlayingVideoLocally ( ) ) { \n butPlay . setVisibility ( View . GONE ) ; \n } else { \n butPlay . setVisibility ( View . VISIBLE ) ; \n public abstract class PlaybackController { \n } \n } \n \n - SINGLE \n - public boolean isPlayingVideo ( ) { \n - return playbackService != null && PlaybackService . getCurrentMediaType ( ) == MediaType . VIDEO ; \n + public boolean isPlayingVideoLocally ( ) { \n + return playbackService != null && PlaybackService . getCurrentMediaType ( ) == MediaType . VIDEO \n + && ! PlaybackService . isCasting ( ) ; \n } \n \n public Pair < Integer , Integer > getVideoSize ( ) {", "msg_token": "have external player fragment show play button if casting"} {"diff": " public class PrivacyManager { \n logRestriction ( hook , context , uid , STRING0 , restrictionName , methodName , restricted , false , NUMBER0 ) ; \n \n SINGLE \n - if ( restricted ) \n + if ( restricted && methodName == null ) \n for ( String dMethodName : getMethods ( restrictionName ) ) \n if ( isDangerousMethod ( restrictionName , dMethodName ) ) \n PrivacyManager . setRestricted ( null , context , uid , restrictionName , dMethodName , false ) ;", "msg_token": "Fix setting dangerous methods"} {"diff": " public class InstanceofExpressionPostfixTemplate extends PostfixTemplate { \n String type = STRING0 ; \n template . addVariable ( type , expr , expr , true ) ; \n template . addTextSegment ( STRING1 ) ; \n - template . addVariable ( type , expr , expr , true ) ; \n + template . addVariableSegment ( type ) ; \n template . addTextSegment ( STRING2 + exprText + STRING2 ) ; \n template . addEndVariable ( ) ; \n template . addTextSegment ( STRING3 ) ;", "msg_token": "Replace instanceof template variable with variable segment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class KotlinCompileMojoBase extends AbstractMojo { \n classpathList . remove ( runtime ) ; \n } \n \n - final String classPathString = Joiner . on ( File . pathSeparator ) . join ( classpathList ) ; \n - log . info ( STRING0 + classPathString ) ; \n - arguments . setClasspath ( classPathString ) ; \n + if ( classpathList . size ( ) > NUMBER0 ) { \n + final String classPathString = Joiner . on ( File . pathSeparator ) . join ( classpathList ) ; \n + log . info ( STRING0 + classPathString ) ; \n + arguments . setClasspath ( classPathString ) ; \n + } \n \n log . info ( STRING1 + output ) ; \n arguments . setOutputDir ( output ) ;", "msg_token": "don t set empty classpath"} {"diff": " public class FeedDAO extends GenericDAO < Feed > { \n Root < Feed > root = query . from ( getType ( ) ) ; \n \n query . select ( builder . count ( root ) ) ; \n - \n - List < Predicate > preds = getUpdatablePredicates ( root ) ; \n - preds . add ( builder . lessThanOrEqualTo ( root . get ( Feed_ . errorCount ) , NUMBER0 ) ) ; \n - query . where ( preds . toArray ( new Predicate [ NUMBER1 ] ) ) ; \n + query . where ( getUpdatablePredicates ( root ) . toArray ( new Predicate [ NUMBER1 ] ) ) ; \n \n TypedQuery < Long > q = em . createQuery ( query ) ; \n return q . getSingleResult ( ) ;", "msg_token": "remove error predicate for metric"} {"diff": " public class ListViewActivity extends BaseSampleActivity { \n \n SINGLE \n mPullToRefreshLayout . setRefreshComplete ( ) ; \n - SINGLE \n - setListShown ( true ) ; \n + \n + if ( getView ( ) != null ) { \n + SINGLE \n + setListShown ( true ) ; \n + } \n } \n } . execute ( ) ; \n } \n public class ListViewActivity extends BaseSampleActivity { \n \n SINGLE \n mPullToRefreshLayout . setRefreshComplete ( ) ; \n - SINGLE \n - setListShown ( true ) ; \n + \n + if ( getView ( ) != null ) { \n + SINGLE \n + setListShown ( true ) ; \n + } \n } \n } . execute ( ) ; \n } \n public class ListViewActivity extends BaseSampleActivity { \n \n SINGLE \n mPullToRefreshLayout . setRefreshComplete ( ) ; \n - SINGLE \n - setListShown ( true ) ; \n + \n + if ( getView ( ) != null ) { \n + SINGLE \n + setListShown ( true ) ; \n + } \n } \n } . execute ( ) ; \n }", "msg_token": "Fix FC in Sample"} {"diff": " public class MapRenderingTypes { \n if ( targetTag != null || targetValue != null ) { \n if ( targetTag == null ) { \n targetTag = rtype . getTag ( ) ; \n + } else { \n + targetTag = tag ; \n } \n if ( targetValue == null ) { \n targetValue = rtype . getValue ( ) ;", "msg_token": "Fix exception crash POI filter"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + SINGLE \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add a TODO to clean it up"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n public interface DynamicBpmnConstants {", "msg_token": "Added missing license header"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Platform { \n private static final Platform PLATFORM = findPlatform ( ) ; \n \n - private Constructor < DeflaterOutputStream > deflaterConstructor ; \n - \n public static Platform get ( ) { \n return PLATFORM ; \n }", "msg_token": "Remove unused field"} {"diff": " public class ViewFlow extends AdapterView < Adapter > { \n } \n } \n \n + @ override protected float getTopFadingEdgeStrength ( ) { \n + return FLOAT0 ; \n + } \n + \n + @ override protected float getBottomFadingEdgeStrength ( ) { \n + return FLOAT0 ; \n + } \n + \n + @ override protected float getLeftFadingEdgeStrength ( ) { \n + SINGLE \n + return FLOAT1 ; \n + } \n + \n + @ override protected float getRightFadingEdgeStrength ( ) { \n + SINGLE \n + return FLOAT1 ; \n + } \n + \n @ override \n public boolean onInterceptTouchEvent ( MotionEvent ev ) { \n if ( getChildCount ( ) == NUMBER0 )", "msg_token": "Make fading edge work"} {"diff": " public class RestrictedLockUtils { \n if ( userId != other . userId ) { \n return false ; \n } \n - if ( ( component == null && other == null ) || \n - ( component != null && component . equals ( other ) ) ) { \n + if ( ( component == null && other . component == null ) || \n + ( component != null && component . equals ( other . component ) ) ) { \n return true ; \n } \n return false ;", "msg_token": "Fix call to equals that could never succeed"} {"diff": " public class ClassInstanceCreation extends Expression { \n public ClassInstanceCreation ( ClassInstanceCreation other ) { \n super ( other ) ; \n methodBinding = other . getMethodBinding ( ) ; \n + hasRetainedResult = other . hasRetainedResult ( ) ; \n expression . copyFrom ( other . getExpression ( ) ) ; \n type . copyFrom ( other . getType ( ) ) ; \n arguments . copyFrom ( other . getArguments ( ) ) ;", "msg_token": "Fix ClassInstanceCreation s copy constructor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BannerComponent extends javax . swing . JPanel { \n \n private String selectedPerspective ; \n + private static final String SELECTED_PERSPECTIVE_PREFERENCE = STRING0 ; \n private transient JToggleButton [ ] buttons ; \n \n public BannerComponent ( ) { \n initComponents ( ) ; \n \n + selectedPerspective = NbPreferences . forModule ( BannerComponent . class ) . get ( SELECTED_PERSPECTIVE_PREFERENCE , null ) ; \n + \n addGroupTabs ( ) ; \n \n logoButton . addActionListener ( new ActionListener ( ) { \n public class BannerComponent extends javax . swing . JPanel { \n } \n \n selectedPerspective = perspective . getName ( ) ; \n + NbPreferences . forModule ( BannerComponent . class ) . put ( SELECTED_PERSPECTIVE_PREFERENCE , selectedPerspective ) ; \n } \n } ) ; \n perspectivesButtonGroup . add ( toggleButton ) ;", "msg_token": "Add persistence of selected perspective"} {"diff": " public class ConnectionManager { \n } \n \n private void handshakeFailure ( ContextImpl context , Channel ch , Throwable cause , Waiter waiter ) { \n - cause . printStackTrace ( ) ; \n SSLHandshakeException sslException = new SSLHandshakeException ( STRING0 ) ; \n if ( cause != null ) { \n sslException . initCause ( cause ) ;", "msg_token": "Forgot to remove this spurious code thanks Alex"} {"diff": " public final class Metadata { \n COMMENT \n COMMENT \n public < T > Iterable < T > getAll ( final Key < T > key ) { \n + \n if ( containsKey ( key ) ) { \n return Iterables . transform ( \n store . get ( key . name ( ) ) , \n public final class Metadata { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Allow commas in Metadata values"} {"diff": " public class Tensor extends DoubleMatrix implements Serializable { \n } \n \n \n - public DoubleMatrix sliceRowSums ( ) { \n + public Tensor sliceRowSums ( ) { \n Tensor ret = new Tensor ( rows ( ) , columns ( ) , slices ) ; \n for ( int i = NUMBER0 ; i < slices ( ) ; i ++ ) { \n DoubleMatrix rowSums = getSlice ( i ) . rowSums ( ) ; \n public class ConvolutionalRBM extends RBM { \n SINGLE \n private Tensor hidI ; \n private Tensor W ; \n - private int [ ] stride ; \n + private int [ ] stride = { NUMBER1 , NUMBER1 } ; \n \n \n protected ConvolutionalRBM ( ) {", "msg_token": "made return types consistent"} {"diff": " public class Jetty7CometSupport extends AsynchronousProcessor { \n } catch ( Throwable t ) { \n SINGLE \n logger . trace ( STRING0 , t ) ; \n + return ; \n } \n } \n }", "msg_token": "Prevent infinite loop on exception"} {"diff": " public abstract class AbsListView extends AdapterView < ListAdapter > implements Te \n checkedStateChanged = true ; \n } else if ( mChoiceMode == CHOICE_MODE_SINGLE ) { \n boolean checked = ! mCheckStates . get ( position , false ) ; \n - mCheckStates . clear ( ) ; \n if ( checked ) { \n + mCheckStates . clear ( ) ; \n mCheckStates . put ( position , true ) ; \n if ( mCheckedIdStates != null && mAdapter . hasStableIds ( ) ) { \n mCheckedIdStates . clear ( ) ;", "msg_token": "Fix regression in AbsListView CHOICE_MODE_SINGLE"} {"diff": " public class SafeTimeTracker { \n if ( world == null ) \n return false ; \n \n - long currentTime = world . getWorldTime ( ) ; \n + long currentTime = world . getTotalWorldTime ( ) ; \n \n if ( currentTime < lastMark ) { \n lastMark = currentTime ; \n public class SafeTimeTracker { \n } \n \n public void markTime ( World world ) { \n - lastMark = world . getWorldTime ( ) ; \n + lastMark = world . getTotalWorldTime ( ) ; \n } \n }", "msg_token": "SST Tracker should use total time"} {"diff": " public class ASTHelpers { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add caveat to ASTHelpers resolveExistingMethod"} {"diff": " public class VersionOneProtocolChannelReceiver implements Channel . Receiver , Depl \n \n @ override \n public void groupMembershipNotifierUnregistered ( final GroupMembershipNotifier groupMembershipNotifier ) { \n - try { \n - logger . debug ( STRING0 + groupMembershipNotifier . getGroupName ( ) ) ; \n - this . sendClusterRemovedMessage ( groupMembershipNotifier ) ; \n - } catch ( IOException ioe ) { \n - logger . warn ( STRING1 + groupMembershipNotifier . getGroupName ( ) \n - + STRING2 + channel , ioe ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n private void sendNewClusterFormedMessage ( final Iterable < GroupMembershipNotifier > groupMembershipNotifiers ) throws IOException {", "msg_token": "Fix spurious cluster removal messages being sent from server to remote EJB client"} {"diff": " public class MainActivity extends MapActivity \n private volatile boolean prepareInProgress = false ; \n private volatile boolean shortestPathRunning = false ; \n private String currentArea = STRING0 ; \n - private String fileListURL = STRING1 + Constants . VERSION + STRING2 ; \n + private String fileListURL = STRING3 ; \n private String prefixURL = fileListURL ; \n private String downloadURL ; \n private String mapsFolder ;", "msg_token": "use explicit version in download URL"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class TipUIUtil { \n private static final String TIP_HTML_TEXT_TAGS = STRING0 ; \n \n private static void adjustFontSize ( StyleSheet styleSheet ) { \n - float scale = ( float ) UISettings . getInstance ( ) . FONT_SIZE / UIUtil . getSystemFontData ( ) . getSecond ( ) ; \n + Pair < String , Integer > systemFontData = UIUtil . getSystemFontData ( ) ; \n + float scale = systemFontData == null ? NUMBER0 : ( float ) UISettings . getInstance ( ) . FONT_SIZE / systemFontData . getSecond ( ) ; \n if ( scale <= NUMBER1 ) return ; SINGLE \n \n SINGLE", "msg_token": "avoid NPE in tests"} {"diff": " public abstract class AbstractUsernamePasswordAuthenticationHandler extends \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractUsernamePasswordAuthenticationHandler extends \n COMMENT \n COMMENT \n COMMENT \n - protected abstract HandlerResult authenticateUsernamePasswordInternal ( final UsernamePasswordCredential credential ) \n + protected abstract HandlerResult authenticateUsernamePasswordInternal ( final UsernamePasswordCredential transformedCredential ) \n throws GeneralSecurityException , PreventedException ; \n \n COMMENT", "msg_token": "Renamed param name to be more explicit"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class MainThreadSpec implements ThreadSpec { \n + class MainThreadSpec implements ThreadSpec { \n \n MainThreadSpec ( ) { \n } \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class WorkerThreadSpec implements ThreadSpec { \n + class WorkerThreadSpec implements ThreadSpec { \n \n private final Handler handler ;", "msg_token": "Reduce thread spec implementations visiblity"} {"diff": " public class MacMainFrameDecorator extends IdeFrameDecorator implements UISettin \n } \n } ; \n \n + @ suppresswarnings ( STRING0 ) \n public static final Function < Object , Boolean > NAVBAR_GETTER = new Function < Object , Boolean > ( ) { \n @ override \n public Boolean fun ( Object o ) { \n public class MacMainFrameDecorator extends IdeFrameDecorator implements UISettin \n } \n } ; \n \n + @ suppresswarnings ( STRING0 ) \n public static final Function < Object , Boolean > TOOLBAR_GETTER = new Function < Object , Boolean > ( ) { \n @ override \n public Boolean fun ( Object o ) {", "msg_token": "suppress to workaround javac bug with fields with lambda initializers"} {"diff": " public class Constants { \n public static final int DEFAULT_MASTER_MAX_WORKER_THREADS = NUMBER0 ; \n public static final int DEFAULT_WORKER_MAX_WORKER_THREADS = NUMBER0 ; \n \n - public static final int DEFAULT_USER_FAILED_SPACE_REQUEST_LIMITS = NUMBER1 ; \n + public static final int DEFAULT_USER_FAILED_SPACE_REQUEST_LIMITS = NUMBER2 ; \n \n public static final int DEFAULT_BLOCK_SIZE_BYTE = NUMBER3 * MB ; \n \n public static final int DEFAULT_CHECKPOINT_CAP_MB_SEC = NUMBER4 ; \n \n public static final int WORKER_BLOCKS_QUEUE_SIZE = NUMBER5 ; \n - \n + \n public static final int DEFAULT_HOST_RESOLUTION_TIMEOUT_MS = NUMBER6 ; \n \n public static final String LOGGER_TYPE = System . getProperty ( STRING0 , STRING1 ) ; \n public class Constants { \n public static final String USER_REMOTE_BLOCK_READER = STRING2 ; \n public static final Class < ? extends RemoteBlockReader > USER_REMOTE_BLOCK_READER_CLASS = \n tachyon . client . tcp . TCPRemoteBlockReader . class ; \n - \n + \n }", "msg_token": "make DEFAULT_USER_FAILED_SPACE_REQUEST_LIMITS consistent with the document"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n try { \n long fileId = ( ( AsyncPersistRequestEntry ) innerEntry ) . getFileId ( ) ; \n scheduleAsyncPersistenceInternal ( fileId ) ; \n + SINGLE \n mAsyncPersistHandler . scheduleAsyncPersistence ( getPath ( fileId ) ) ; \n } catch ( AlluxioException e ) { \n throw new RuntimeException ( e ) ; \n public final class FileSystemMaster extends AbstractMaster { \n JournalEntry . newBuilder ( ) . setAsyncPersistRequest ( asyncPersistRequestEntry ) . build ( ) ) ; \n flushJournal ( ) ; \n } \n + SINGLE \n mAsyncPersistHandler . scheduleAsyncPersistence ( path ) ; \n } \n \n public interface AsyncPersistHandler { \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n @ threadsafe \n class Factory { \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public static AsyncPersistHandler create ( Configuration conf , FileSystemMasterView view ) { \n try { \n return CommonUtils . createNewClassInstance (", "msg_token": "Addressing a review comment and a minor fix"} {"diff": " public class PullToRefreshLayout extends FrameLayout { \n values . recycle ( ) ; \n } \n \n + public PullToRefreshAttacher getAttacher ( ) { \n + return mAttacher ; \n + } \n + \n + public static PullToRefreshAttacher getAttacher ( Activity activity , int layoutId ) { \n + PullToRefreshLayout layout = ( PullToRefreshLayout ) activity . findViewById ( layoutId ) ; \n + if ( layout != null ) { \n + return layout . getAttacher ( ) ; \n + } \n + return null ; \n + } \n + \n @ override \n public void addView ( View child , int index , ViewGroup . LayoutParams params ) { \n if ( getChildCount ( ) == NUMBER0 ) {", "msg_token": "Add getAttacher methods"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ModelParser extends XmlRecursiveElementVisitor { \n } \n } ) ; \n \n + XmlFile xmlFile = container . getRoot ( ) . getClientProperty ( XML_FILE_KEY ) ; \n + PsiDocumentManager psiDocumentManager = PsiDocumentManager . getInstance ( xmlFile . getProject ( ) ) ; \n + psiDocumentManager . commitDocument ( psiDocumentManager . getDocument ( xmlFile ) ) ; \n + \n PropertyParser propertyParser = container . getRoot ( ) . getClientProperty ( PropertyParser . KEY ) ; \n propertyParser . load ( movedComponent ) ; \n }", "msg_token": "commit PSI to document after move XmlTag"} {"diff": " package NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - interface Defn \n + public interface Defn \n { \n COMMENT \n String PARAMETER_PATTERN_PROP = STRING0 ;", "msg_token": "Made Defn public so it can be reference outside the package"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FeedRefreshTaskGiver { \n \n @ lock ( LockType . WRITE ) \n public void add ( Feed feed ) { \n + Date now = Calendar . getInstance ( ) . getTime ( ) ; \n + Date tenMinutesAgo = DateUtils . addMinutes ( now , - NUMBER0 ) ; \n + if ( feed . getLastUpdated ( ) == null \n + || feed . getLastUpdated ( ) . before ( tenMinutesAgo ) ) { \n + feed . setEtagHeader ( null ) ; \n + feed . setLastModifiedHeader ( null ) ; \n + } \n + \n queue . add ( feed ) ; \n feed . setLastUpdated ( Calendar . getInstance ( ) . getTime ( ) ) ; \n feedDAO . update ( feed ) ;", "msg_token": "force feed refresh if updated more than ten minutes ago"} {"diff": " public class TxManager extends AbstractTransactionManager implements Lifecycle \n txThreadMap = new ConcurrentHashMap < Thread , TransactionImpl > ( ) ; \n SINGLE \n Iterable < List < TxLog . Record > > knownDanglingRecordList = txLog . getDanglingRecords ( ) ; \n - \n - log . info ( STRING0 + \n - STRING1 + txLogDir ) ; \n + if ( knownDanglingRecordList . iterator ( ) . hasNext ( ) ) \n + log . info ( STRING0 + \n + STRING1 + txLogDir ) ; \n \n log . logMessage ( STRING2 + txLog . getName ( ) , true ) ;", "msg_token": "Only prints the recovery message if it found dangling tx log records"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class TableVisitorTest { \n \n private ParsedStatement stmt ; \n \n + @ rule \n + public ExpectedException expectedException = ExpectedException . none ( ) ; \n \n private ParsedStatement execStatement ( String stmt ) throws StandardException { \n return execStatement ( stmt , new Object [ ] { } ) ; \n public class TableVisitorTest { \n assertNotNull ( stmt . buildCreateIndexRequest ( ) ) ; \n } \n \n + \n + @ test \n + public void testCreateTableThrowUnsupportedTypeException ( ) throws Exception { \n + expectedException . expect ( SQLParseException . class ) ; \n + expectedException . expectMessage ( STRING0 ) ; \n + execStatement ( STRING1 ) ; \n + } \n }", "msg_token": "added regression test for create table with unsupported type"} {"diff": " public abstract class RequestResultProcessor { \n public boolean execute ( PsiElement element , int offsetInElement , final Processor < PsiReference > consumer ) { \n for ( PsiReference ref : element . getReferences ( ) ) { \n if ( ReferenceRange . containsOffsetInElement ( ref , offsetInElement ) ) { \n - return processReference ( consumer , ref ) ; \n + if ( ! processReference ( consumer , ref ) ) { \n + return false ; \n + } \n } \n } \n return true ;", "msg_token": "give chance to all references"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Matchers { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static < T extends Tree > Matcher < T > isSubtypeOf ( Class < ? > clazz ) { \n + return new IsSubtypeOf < > ( typeFromClass ( clazz ) ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add isSubtypeOf Class"} {"diff": " public abstract class TypedNotationParser < N , T > implements NotationParser < T > { \n return parseType ( typeToken . cast ( notation ) ) ; \n } \n \n - abstract public T parseType ( N notation ) ; \n + abstract protected T parseType ( N notation ) ; \n }", "msg_token": "Reduced visibility as clients should not really call that method"} {"diff": " public class S3UnderFileSystem extends UnderFileSystem { \n if ( key . startsWith ( PATH_SEPARATOR ) ) { \n return key . substring ( PATH_SEPARATOR . length ( ) ) ; \n } \n - LOG . warn ( STRING0 + key ) ; \n return key ; \n } \n }", "msg_token": "Remove unnecessary log"} {"diff": " public class RecoveryTests extends CrateIntegrationTest { \n assertThat ( length , greaterThanOrEqualTo ( NUMBER0 ) ) ; \n } \n \n + for ( Thread writer : writers ) { \n + writer . join ( NUMBER1 ) ; \n + } \n } \n }", "msg_token": "fix flaky blob RecoveryTests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class Json { \n private static final boolean debug = false ;", "msg_token": "update Json java link to wiki"} {"diff": " public class NonBlockingHashMap < TypeK , TypeV > \n SINGLE \n SINGLE \n private static final int reprobe_limit ( int len ) { \n - return REPROBE_LIMIT + ( len > > NUMBER0 ) ; \n + return REPROBE_LIMIT + ( len > > NUMBER1 ) ; \n } \n \n SINGLE \n public class NonBlockingHashMap < TypeK , TypeV > \n long tm = System . currentTimeMillis ( ) ; \n long q = NUMBER2 ; \n if ( newsz <= oldlen && SINGLE \n - tm <= topmap . _last_resize_milli + NUMBER3 && SINGLE \n - ( q = _slots . estimate_get ( ) ) >= ( sz < < NUMBER4 ) ) SINGLE \n + ( tm <= topmap . _last_resize_milli + NUMBER3 || SINGLE \n + ( q = _slots . estimate_get ( ) ) >= ( sz < < NUMBER4 ) ) ) SINGLE \n newsz = oldlen < < NUMBER4 ; SINGLE \n \n SINGLE", "msg_token": "Some NBHM resize heuristic tunings"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n updateSearchAppIcon ( ) ; \n updateSearchBadge ( ) ; \n updateQueryHint ( ) ; \n + mSearchAutoComplete . showDropDownAfterLayout ( ) ; \n } \n }", "msg_token": "Redraw search autocomplete dropdown after config change"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Changed javadoc to reflect current HandlerExceptionResolvers"} {"diff": " public interface TypeWriter < T > { \n COMMENT \n private Implementation . Context . ExtractableView . InjectedCode injectedCode ; \n \n - private boolean supportsBridges ; \n + private Boolean supportsBridges ; \n \n COMMENT \n COMMENT \n public interface TypeWriter < T > { \n STRING0 + declaredFields + \n STRING1 + declarableMethods + \n STRING2 + injectedCode + \n + STRING3 + supportsBridges + \n STRING4 ; \n }", "msg_token": "Fixed another test"} {"diff": " public class MetricExportAutoConfiguration { \n \n Map < String , MetricWriter > writers = new HashMap < String , MetricWriter > ( ) ; \n \n - MetricReader reader = endpointReader ; \n - if ( reader == null && ! this . readers . isEmpty ( ) ) { \n + MetricReader reader = this . endpointReader ; \n + if ( reader == null && this . readers != null && ! this . readers . isEmpty ( ) ) { \n reader = new CompositeMetricReader ( this . readers . toArray ( new MetricReader [ NUMBER0 ] ) ) ; \n }", "msg_token": "Gracefully handle null readers in MetricExportAutoConfiguration"} {"diff": " public class IOUtils { \n } catch ( Throwable t ) { \n try { \n return Class . forName ( className ) ; \n - } catch ( Throwable t2 ) { \n + } catch ( Exception t2 ) { \n if ( thisClass != null ) { \n return thisClass . getClassLoader ( ) . loadClass ( className ) ; \n }", "msg_token": "fix the wrong catch"} {"diff": " public class TestUpgrade extends TomcatBaseTest { \n Socket socket = \n SocketFactory . getDefault ( ) . createSocket ( STRING0 , getPort ( ) ) ; \n \n - socket . setSoTimeout ( NUMBER0 ) ; \n + socket . setSoTimeout ( NUMBER1 ) ; \n \n UpgradeConnection uc = new UpgradeConnection ( socket ) ;", "msg_token": "Revert extension of timeout for debug purposes"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class PatternRuleLoader extends DefaultHandler { \n public List getRules ( String filename ) throws ParserConfigurationException , SAXException , IOException { \n PatternRuleHandler handler = new PatternRuleHandler ( ) ; \n SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; \n + factory . setValidating ( true ) ; \n SAXParser saxParser = factory . newSAXParser ( ) ; \n saxParser . parse ( new File ( filename ) , handler ) ; \n rules = handler . getRules ( ) ; \n class PatternRuleHandler extends DefaultHandler { \n } \n } \n \n + public void warning ( SAXParseException e ) throws SAXException { \n + throw e ; \n + } \n + \n + public void error ( SAXParseException e ) throws SAXException { \n + throw e ; \n + } \n + \n }", "msg_token": "use validating XML parser"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n public class ItemsPresenter extends Presenter < ItemsView > { \n public class ItemsPresenter extends Presenter < ItemsView > { \n @ nonnull \n private final AnalyticsModel analyticsModel ; \n \n - @ inject \n public ItemsPresenter ( @ nonnull ItemsPresenterConfiguration presenterConfiguration , \n @ nonnull ItemsModel itemsModel , \n @ nonnull AsyncJobsObserver asyncJobsObserver ,", "msg_token": "Remove unuse Inject on ItemPresenter class"} {"diff": " public class HiveMetadata \n \n private static PrincipalPrivilegeSet buildInitialPrivilegeSet ( String tableOwner ) \n { \n - PrivilegeGrantInfo allPrivileges = new PrivilegeGrantInfo ( STRING0 , NUMBER0 , tableOwner , PrincipalType . USER , true ) ; \n return new PrincipalPrivilegeSet ( \n - ImmutableMap . of ( tableOwner , ImmutableList . of ( allPrivileges ) ) , \n + ImmutableMap . of ( tableOwner , ImmutableList . of ( \n + new PrivilegeGrantInfo ( STRING1 , NUMBER0 , tableOwner , PrincipalType . USER , true ) , \n + new PrivilegeGrantInfo ( STRING2 , NUMBER0 , tableOwner , PrincipalType . USER , true ) , \n + new PrivilegeGrantInfo ( STRING3 , NUMBER0 , tableOwner , PrincipalType . USER , true ) , \n + new PrivilegeGrantInfo ( STRING4 , NUMBER0 , tableOwner , PrincipalType . USER , true ) \n + ) ) , \n ImmutableMap . of ( ) , \n ImmutableMap . of ( ) ) ; \n }", "msg_token": "Fix Hive SQL standard permissions on table creation"} {"diff": " public class AndroidAnnotationProcessor extends AbstractProcessor { \n LoggerContext loggerContext = LoggerContext . getInstance ( ) ; \n loggerContext . setProcessingEnv ( processingEnv ) ; \n \n - LOGGER . info ( STRING0 , processingEnv . getOptions ( ) ) ; \n - \n try { \n loadPropertyFile ( ) ; \n loadApiPropertyFile ( ) ; \n public class AndroidAnnotationProcessor extends AbstractProcessor { \n LOGGER . error ( STRING1 , e ) ; \n } \n \n + LOGGER . info ( STRING2 , getAAProcessorVersion ( ) , processingEnv . getOptions ( ) ) ; \n + \n annotationHandlers = new AnnotationHandlers ( processingEnv ) ; \n }", "msg_token": "Add AA version in initialize log"} {"diff": " public class XmppConnectionService extends Service implements OnPhoneContactsLoa \n Element vCard = packet . findChild ( STRING0 , STRING1 ) ; \n Element photo = vCard != null ? vCard . findChild ( STRING2 ) : null ; \n Element binval = photo != null ? photo . findChild ( STRING3 ) : null ; \n - if ( binval != null ) { \n - avatar . image = binval . getContent ( ) ; \n + String image = binval != null ? binval . getContent ( ) : null ; \n + if ( image != null ) { \n + avatar . image = image ; \n if ( getFileBackend ( ) . save ( avatar ) ) { \n Log . d ( Config . LOGTAG , account . getJid ( ) . toBareJid ( ) \n + STRING4 + avatar . owner ) ;", "msg_token": "fixed npe when binval value of vcard avatar is null"} {"diff": " public class UndertowOutputStream extends OutputStream implements BufferWritable \n throw UndertowMessages . MESSAGES . streamIsClosed ( ) ; \n } \n if ( buffer != null && buffer . position ( ) != NUMBER0 ) { \n - writeBufferBlocking ( true ) ; \n + writeBufferBlocking ( false ) ; \n } \n if ( channel == null ) { \n channel = exchange . getResponseChannel ( ) ;", "msg_token": "Fix issue with flush on the undertow output stream"} {"diff": " public final class DoubleMath { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class DoubleMath { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix documentation error in DoubleMath"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix grammar and update link in Javadoc for SimpleThreadScope"} {"diff": " public class ZLAndroidWidget extends View implements View . OnLongClickListener { \n shift += size ; \n } \n SINGLE \n - myPaint . setColor ( Color . rgb ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ; \n - if ( horizontal ) { \n - canvas . drawLine ( shift , NUMBER1 , shift , h + NUMBER2 , myPaint ) ; \n - } else { \n - canvas . drawLine ( NUMBER1 , shift , w + NUMBER2 , shift , myPaint ) ; \n + if ( shift > NUMBER1 && shift < size ) { \n + myPaint . setColor ( Color . rgb ( NUMBER0 , NUMBER0 , NUMBER0 ) ) ; \n + if ( horizontal ) { \n + canvas . drawLine ( shift , NUMBER1 , shift , h + NUMBER2 , myPaint ) ; \n + } else { \n + canvas . drawLine ( NUMBER1 , shift , w + NUMBER2 , shift , myPaint ) ; \n + } \n } \n break ; \n }", "msg_token": "fixed light line at left side of the screen"} {"diff": " public class ReaderPostListFragment extends Fragment { \n if ( getPostListType ( ) == ReaderPostListType . TAG_PREVIEW && hasCurrentTag ( ) ) { \n mTagPreviewHistory . push ( getCurrentTagName ( ) ) ; \n } \n - \n - SINGLE \n } \n }", "msg_token": "Removed misleading todo"} {"diff": " public class HelpActivity extends BaseActivity { \n webview . loadUrl ( getString ( R . string . help_url ) ) ; \n } \n \n - private WebViewClient webViewClient = new WebViewClient ( ) { \n - @ override \n - public boolean shouldOverrideUrlLoading ( WebView view , String url ) { \n - if ( url != null && ! url . startsWith ( getString ( R . string . help_url ) ) ) { \n - SINGLE \n - Utils . launchWebsite ( view . getContext ( ) , url , TAG , STRING0 ) ; \n - return true ; \n - } \n - return false ; \n - } \n - } ; \n - \n @ override \n protected void onDestroy ( ) { \n super . onDestroy ( ) ;", "msg_token": "Fix botched merge yay"} {"diff": " public class PyUnresolvedReferencesInspection extends PyInspection { \n } \n if ( expr . isQualified ( ) ) { \n final PyClassTypeImpl object_type = ( PyClassTypeImpl ) PyBuiltinCache . getInstance ( node ) . getObjectType ( ) ; \n - if ( ( object_type != null ) && object_type . getPossibleInstanceMembers ( ) . contains ( refName ) ) return ; \n + if ( ( object_type != null ) && object_type . getPossibleInstanceMembers ( ) . contains ( refName ) ) { \n + return ; \n + } \n } \n else { \n if ( PyUnreachableCodeInspection . hasAnyInterruptedControlFlowPaths ( expr ) ) { \n public class PyUnresolvedReferencesInspection extends PyInspection { \n } \n SINGLE \n SINGLE \n - if ( PyModuleType . getPossibleInstanceMembers ( ) . contains ( refName ) ) return ; \n + if ( PyModuleType . getPossibleInstanceMembers ( ) . contains ( refName ) ) { \n + return ; \n + } \n SINGLE \n if ( ( \n PsiTreeUtil . getParentOfType (", "msg_token": "Fixing env tests"} {"diff": " public class GenerateEqualsHelper implements Runnable { \n return new PsiMethod [ ] { hashCode } ; \n } \n else { \n - return null ; \n + return PsiElement . EMPTY_ARRAY ; \n } \n }", "msg_token": "id based equals hashCode generation"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DigestAuthenticator extends AuthenticatorBase { \n COMMENT \n protected static final String QOP = STRING0 ; \n \n - SINGLE \n \n + SINGLE \n \n public DigestAuthenticator ( ) { \n super ( ) ; \n setCache ( false ) ; \n - try { \n - if ( md5Helper == null ) { \n - md5Helper = MessageDigest . getInstance ( STRING1 ) ; \n - } \n - } catch ( NoSuchAlgorithmException e ) { \n - throw new IllegalStateException ( e ) ; \n - } \n } \n \n \n SINGLE \n \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ deprecated \n - protected static volatile MessageDigest md5Helper ; \n - \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove deprecated code"} {"diff": " public class JSONValue { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class JSONValue { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n public static Object parseWithException ( Reader in ) throws IOException , ParseException { \n JSONParser parser = new JSONParser ( ) ;", "msg_token": "Fixed some warnings"} {"diff": " public class Matrix3 implements Serializable { \n if ( det == NUMBER0 ) throw new GdxRuntimeException ( STRING0 ) ; \n \n float inv_det = FLOAT0 / det ; \n - float tmp [ ] = { NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 } ; \n \n tmp [ NUMBER0 ] = vals [ NUMBER1 ] * vals [ NUMBER2 ] - vals [ NUMBER3 ] * vals [ NUMBER4 ] ; \n tmp [ NUMBER5 ] = vals [ NUMBER6 ] * vals [ NUMBER4 ] - vals [ NUMBER5 ] * vals [ NUMBER2 ] ;", "msg_token": "fixed Matrix3 inv allocated float array"} {"diff": " public class JBZipFile { \n this . encoding = encoding ; \n archive = new RandomAccessFile ( f , STRING0 ) ; \n try { \n - populateFromCentralDirectory ( ) ; \n + if ( archive . length ( ) > NUMBER0 ) { \n + populateFromCentralDirectory ( ) ; \n + } \n + else { \n + getOutputStream ( ) ; SINGLE \n + } \n } \n catch ( IOException e ) { \n try {", "msg_token": "ensure created zip file contains central header at very least"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JavaPsiFacadeImpl extends JavaPsiFacadeEx implements Disposable { \n private void processChange ( final PsiElement parent , final PsiElement child1 , final PsiElement child2 ) { \n try { \n if ( ! isInsideCodeBlock ( parent ) ) { \n - if ( parent != null && parent . getContainingFile ( ) instanceof PsiClassOwner ) { \n + if ( parent != null && parent . getContainingFile ( ) instanceof PsiClassOwner && ! ( parent . getContainingFile ( ) instanceof XmlFile ) ) { \n myModificationTracker . incCounter ( ) ; \n } \n else {", "msg_token": "Changes in root JSP tree shall not cause javaStructure modification count to increase"} {"diff": " public class BasicConfiguration extends AbstractConfiguration { \n Preconditions . checkArgument ( pid . element . isOption ( ) && ! pid . lastIsUmbrella ) ; \n result . put ( pid , get ( ( ConfigOption ) pid . element , pid . umbrellaElements ) ) ; \n } catch ( IllegalArgumentException e ) { \n - log . info ( STRING0 , key ) ; \n + log . info ( STRING0 , key , e ) ; \n continue ; \n } \n }", "msg_token": "Include exception in a config parsing log message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class AndroidDisplayer implements IDisplayer { \n canvas . drawBitmap ( holder . bitmap , NUMBER0 , NUMBER0 , null ) ; \n canvas . restore ( ) ; \n SINGLE \n - Log . e ( STRING0 , STRING1 + ( ++ HIT_CACHE_COUNT ) ) ; \n + SINGLE \n return ; \n } \n } \n - Log . e ( STRING0 , STRING2 + ( ++ NO_CACHE_COUNT ) ) ; \n + SINGLE \n drawDanmaku ( danmaku , canvas , danmaku . getLeft ( ) , danmaku . getTop ( ) ) ; \n } \n }", "msg_token": "removed debug codes"} {"diff": " public enum ComponentEventSource { ; SINGLE \n COMMENT \n COMMENT \n COMMENT \n - public enum Predicate implements Func1 < ComponentEvent , Boolean > { \n + public enum Predicate implements rx . util . functions . Func1 < java . awt . event . ComponentEvent , Boolean > { \n RESIZED ( ComponentEvent . COMPONENT_RESIZED ) , \n HIDDEN ( ComponentEvent . COMPONENT_HIDDEN ) , \n MOVED ( ComponentEvent . COMPONENT_MOVED ) ,", "msg_token": "fixing strange compilation problems by specifying the packages directly"} {"diff": " public class ShareIntentReceiverActivity extends SherlockFragmentActivity implem \n if ( intent != null ) { \n intent . setAction ( action ) ; \n intent . setType ( getIntent ( ) . getType ( ) ) ; \n + intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n \n intent . putExtra ( Intent . EXTRA_TEXT , getIntent ( ) . getStringExtra ( Intent . EXTRA_TEXT ) ) ; \n intent . putExtra ( Intent . EXTRA_SUBJECT , getIntent ( ) . getStringExtra ( Intent . EXTRA_SUBJECT ) ) ;", "msg_token": "Use Intent FLAG_ACTIVITY_NEW_TASK when starting a new activity in ShareIntentReceiverActivity"} {"diff": " public class DebuggerUtils { \n List < BindingContext > innerContexts = new ArrayList < BindingContext > ( ) ; \n for ( JetNamedFunction inlineFunctions : collectedElements ) { \n JetExpression body = inlineFunctions . getBodyExpression ( ) ; \n - assert body != null : STRING0 + inlineFunctions . getText ( ) ; \n - \n - BindingContext bindingContextForFunction = resolutionFacade . analyze ( body , BodyResolveMode . FULL ) ; \n - innerContexts . add ( analyzeElementWithInline ( resolutionFacade , bindingContextForFunction , inlineFunctions , deep + NUMBER0 , \n - analyzedElements , analyzeInlineFunctions ) ) ; \n + if ( body != null ) { \n + BindingContext bindingContextForFunction = resolutionFacade . analyze ( body , BodyResolveMode . FULL ) ; \n + innerContexts . add ( analyzeElementWithInline ( resolutionFacade , bindingContextForFunction , inlineFunctions , deep + NUMBER0 , \n + analyzedElements , analyzeInlineFunctions ) ) ; \n + } \n } \n \n innerContexts . add ( bindingContext ) ;", "msg_token": "Fix NPE in DebuggerUtils"} {"diff": " public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt \n } else if ( path . length ( ) > NUMBER0 && path . charAt ( NUMBER0 ) != STRING0 ) { \n throw new IllegalArgumentException ( STRING1 + uri \n + STRING2 ) ; \n - } \n + } else if ( path . length ( ) == NUMBER0 ) { \n + return URI . create ( u + STRING3 ) ; \n + } \n \n return uri ; \n }", "msg_token": "Handle the case where the path is not specified defaulting to"} {"diff": " public class TMXLayer extends RectangularShape implements TMXConstants { \n final float width = super . mWidth ; \n super . mBaseWidth = width ; \n \n - super . mHeight = pTMXTiledMap . getTileWidth ( ) * this . mTileColumns ; \n + super . mHeight = pTMXTiledMap . getTileHeight ( ) * this . mTileColumns ; \n final float height = super . mHeight ; \n super . mBaseHeight = height ;", "msg_token": "Fixed bug in calculation of height of a TMXLayer that only applied with non square TileMaps"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class ActiveSyncInfo { \n - COMMENT \n private final int authorityId ; \n - COMMENT \n private final Account account ; \n - COMMENT \n private final String authority ; \n - COMMENT \n private final long startTime ; \n \n COMMENT \n public class ActiveSyncInfo { \n return new ActiveSyncInfo [ size ] ; \n } \n } ; \n - } \n + }", "msg_token": "remove redundant hides"} {"diff": " public class Schema < I extends Iced , S extends Schema < I , S > > extends Iced { \n int idx = clz_name . lastIndexOf ( STRING0 ) ; \n if ( idx == - NUMBER0 ) return - NUMBER0 ; \n try { return Integer . valueOf ( clz_name . substring ( idx + NUMBER0 ) ) ; } \n - catch ( NumberFormatException _ ) { return - NUMBER0 ; } \n + catch ( NumberFormatException ex ) { return - NUMBER0 ; } \n } \n \n COMMENT", "msg_token": "Fix compiler warning"} {"diff": " public abstract class AbstractProject implements ProjectInternal { \n this . rootProject = rootProject ; \n } \n \n - public Build getBuild ( ) { \n - return build ; \n - } \n - \n - public BuildInternal getBuildInternal ( ) { \n + public BuildInternal getBuild ( ) { \n return build ; \n } \n \n public class DefaultProjectServiceRegistryFactory implements ProjectServiceRegis \n public < T > T get ( Class < T > serviceType ) throws IllegalArgumentException { \n if ( serviceType . isAssignableFrom ( ProjectPluginsContainer . class ) ) { \n if ( projectPluginsHandler == null ) { \n - projectPluginsHandler = new DefaultProjectsPluginContainer ( project . getBuildInternal ( ) . getPluginRegistry ( ) ) ; \n + projectPluginsHandler = new DefaultProjectsPluginContainer ( project . getBuild ( ) . getPluginRegistry ( ) ) ; \n } \n return serviceType . cast ( projectPluginsHandler ) ; \n } \n public interface ProjectInternal extends Project , ProjectIdentifier { \n \n StandardOutputRedirector getStandardOutputRedirector ( ) ; \n \n - BuildInternal getBuildInternal ( ) ; \n + BuildInternal getBuild ( ) ; \n }", "msg_token": "Override getBuild in ProjectInternal to return a BuildInternal instead of a Build"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UserManager { \n COMMENT \n COMMENT \n public boolean isUserAGoat ( ) { \n - return false ; \n + return mContext . getPackageManager ( ) \n + . isPackageAvailable ( STRING0 ) ; \n } \n \n COMMENT", "msg_token": "Fix UserManager isUserAGoat"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed a depracated issue of CometdComponent"} {"diff": " public class DatabaseDescriptor \n } \n } \n \n - try \n - { \n - listenAddress = InetAddress . getByName ( conf . listen_address ) ; \n - } \n - catch ( UnknownHostException e ) \n - { \n - throw new ConfigurationException ( STRING0 + conf . listen_address + STRING1 ) ; \n - } \n - \n COMMENT \n if ( conf . broadcast_address != null ) \n {", "msg_token": "more merge breakage"} {"diff": " public class HiveClient \n \n return partitions ; \n } \n - catch ( NoSuchObjectException | NullPointerException | IllegalStateException | IllegalArgumentException e ) { \n + catch ( PrestoException | NoSuchObjectException | NullPointerException | IllegalStateException | IllegalArgumentException e ) { \n throw Throwables . propagate ( e ) ; \n } \n catch ( MetaException | RuntimeException e ) {", "msg_token": "Fix retry handling for offline partitions"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - final class DefaultChannelId implements ChannelId { \n + public final class DefaultChannelId implements ChannelId { \n \n private static final long serialVersionUID = NUMBER0 ; \n \n final class DefaultChannelId implements ChannelId { \n \n private static final AtomicInteger nextSequence = new AtomicInteger ( ) ; \n \n - static ChannelId newInstance ( ) { \n + COMMENT \n + COMMENT \n + COMMENT \n + public static DefaultChannelId newInstance ( ) { \n DefaultChannelId id = new DefaultChannelId ( ) ; \n id . init ( ) ; \n return id ; \n final class DefaultChannelId implements ChannelId { \n private transient String shortValue ; \n private transient String longValue ; \n \n + private DefaultChannelId ( ) { } \n + \n private void init ( ) { \n int i = NUMBER1 ;", "msg_token": "Change DefaultChannelId visibility to default"} {"diff": " public class WifiStateMachine extends StateMachine { \n COMMENT \n private final int mDefaultSupplicantScanIntervalMs ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private long mLastEnableAllNetworksTime ; \n + \n \n private static final int MIN_RSSI = - NUMBER0 ; \n private static final int MAX_RSSI = NUMBER1 ; \n public class WifiStateMachine extends StateMachine { \n mReplyChannel . replyToMessage ( message , message . what , ok ? SUCCESS : FAILURE ) ; \n break ; \n case CMD_ENABLE_ALL_NETWORKS : \n - WifiConfigStore . enableAllNetworks ( ) ; \n + long time = android . os . SystemClock . elapsedRealtime ( ) ; \n + if ( time - mLastEnableAllNetworksTime > MIN_INTERVAL_ENABLE_ALL_NETWORKS_MS ) { \n + WifiConfigStore . enableAllNetworks ( ) ; \n + mLastEnableAllNetworksTime = time ; \n + } \n break ; \n case CMD_DISABLE_NETWORK : \n ok = WifiConfigStore . disableNetwork ( message . arg1 , message . arg2 ) ;", "msg_token": "Add a time threshold for re enabling networks"} {"diff": " public class AsyncQueryForwardingServlet extends HttpServlet \n } \n } \n \n - private String makeUrl ( String host , HttpServletRequest req ) \n + private String makeUrl ( final String host , final HttpServletRequest req ) \n { \n - String queryString = req . getQueryString ( ) ; \n + final String queryString = req . getQueryString ( ) ; \n + final String requestURI = req . getRequestURI ( ) == null ? STRING0 : req . getRequestURI ( ) ; \n \n if ( queryString == null ) { \n - return String . format ( STRING1 , host , req . getRequestURI ( ) ) ; \n + return String . format ( STRING1 , host , requestURI ) ; \n } \n - return String . format ( STRING2 , host , req . getRequestURI ( ) , req . getQueryString ( ) ) ; \n + return String . format ( STRING2 , host , requestURI , queryString ) ; \n } \n }", "msg_token": "handle null request uris"} {"diff": " public class HighlyAvailableGraphDatabaseFactory extends GraphDatabaseFactory \n \n public GraphDatabaseService newHighlyAvailableDatabase ( String path ) \n { \n - return newEmbeddedDatabaseBuilder ( path ) . newGraphDatabase ( ) ; \n + return newHighlyAvailableDatabaseBuilder ( path ) . newGraphDatabase ( ) ; \n } \n \n public GraphDatabaseBuilder newHighlyAvailableDatabaseBuilder ( final String path )", "msg_token": "use the correct builder in HighlyAvailableGraphDatabaseFactory"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n @ path ( STRING0 ) \n @ api ( value = STRING1 , description = STRING2 ) \n + @ consumes ( MediaType . APPLICATION_JSON ) \n + @ produces ( MediaType . APPLICATION_JSON ) \n public class SessionsResource extends RestResource { \n private static final Logger LOG = LoggerFactory . getLogger ( SessionsResource . class ) ; \n \n public class SessionsResource extends RestResource { \n notes = STRING3 , \n code = NUMBER0 \n ) \n - @ produces ( MediaType . APPLICATION_JSON ) \n public SessionValidationResponse validateSession ( @ context ContainerRequestContext requestContext ) { \n try { \n this . authenticationFilter . filter ( requestContext ) ;", "msg_token": "Add missing Consumes and Produces annotations to SessionsResource"} {"diff": " public class CuboidRegion implements Region { \n } \n } \n \n - pos1 = pos1 . clampY ( NUMBER0 , world . getMaxY ( ) ) ; \n - pos2 = pos2 . clampY ( NUMBER0 , world . getMaxY ( ) ) ; \n + pos1 = pos1 . clampY ( NUMBER0 , world == null ? NUMBER1 : world . getMaxY ( ) ) ; \n + pos2 = pos2 . clampY ( NUMBER0 , world == null ? NUMBER1 : world . getMaxY ( ) ) ; \n } \n \n COMMENT", "msg_token": "Fixed a NullPointerException in conjunction with CraftBook"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class RepositoryLibraryProperties extends LibraryProperties < RepositoryLib \n return artifactId ; \n } \n \n - @ ignore \n public String getVersion ( ) { \n return version ; \n }", "msg_token": "remove unneeded Ignore"} {"diff": " public final class MockWebServer { \n public void start ( int port ) throws IOException { \n if ( executor != null ) throw new IllegalStateException ( STRING0 ) ; \n executor = Executors . newCachedThreadPool ( Util . threadFactory ( STRING1 , false ) ) ; \n - inetAddress = InetAddress . getByName ( null ) ; \n + inetAddress = InetAddress . getByName ( STRING2 ) ; \n serverSocket = serverSocketFactory . createServerSocket ( ) ; \n serverSocket . setReuseAddress ( port != NUMBER0 ) ; SINGLE \n serverSocket . bind ( new InetSocketAddress ( inetAddress , port ) , NUMBER1 ) ;", "msg_token": "Modify the way MockWebServer selects a host IP to bind to"} {"diff": " public final class ShardPath { \n SINGLE \n final NodeEnvironment . NodePath [ ] paths = env . nodePaths ( ) ; \n NodeEnvironment . NodePath bestPath = null ; \n - BigInteger maxUsableBytes = BigInteger . valueOf ( - NUMBER0 ) ; \n + BigInteger maxUsableBytes = BigInteger . valueOf ( Long . MIN_VALUE ) ; \n for ( NodeEnvironment . NodePath nodePath : paths ) { \n FileStore fileStore = nodePath . fileStore ; \n \n public final class ShardPath { \n if ( count != null ) { \n usableBytes = usableBytes . subtract ( estShardSizeInBytes . multiply ( BigInteger . valueOf ( count ) ) ) ; \n } \n - if ( usableBytes . compareTo ( maxUsableBytes ) > NUMBER1 ) { \n + if ( bestPath == null || usableBytes . compareTo ( maxUsableBytes ) > NUMBER1 ) { \n maxUsableBytes = usableBytes ; \n bestPath = nodePath ; \n }", "msg_token": "add defense to selectNewPathForShard"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed cs issues"} {"diff": " public class PGraphicsOpenGL extends PGraphics { \n @ override \n public VertexAttribute put ( String key , VertexAttribute value ) { \n VertexAttribute prev = super . put ( key , value ) ; \n + names . add ( key ) ; \n if ( value . kind == VertexAttribute . COLOR ) numComp += NUMBER0 ; \n else numComp += value . size ; \n return prev ; \n public class PGraphicsOpenGL extends PGraphics { \n ( float ) d [ NUMBER1 ] , \n clampXY ) ; \n \n - if ( NUMBER2 <= d . length ) { \n + if ( NUMBER2 < d . length ) { \n PMatrix3D mm = pg . modelview ; \n PMatrix3D nm = pg . modelviewInv ; \n int tessIdx = polyVertexCount - NUMBER3 ;", "msg_token": "fixed index issue"} {"diff": " public class KeyCrypterScrypt implements KeyCrypter , Serializable { \n \n private static final transient SecureRandom secureRandom ; \n \n - private static byte [ ] randomSalt ( ) { \n + COMMENT \n + public static byte [ ] randomSalt ( ) { \n byte [ ] salt = new byte [ SALT_LENGTH ] ; \n secureRandom . nextBytes ( salt ) ; \n return salt ;", "msg_token": "Make KeyCrypterScrypt randomSalt public"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class SystemPublicMetrics implements PublicMetrics , Ordered { \n public class SystemPublicMetrics implements PublicMetrics , Ordered { \n . getUptime ( ) ) ) ; \n result . add ( new Metric < Long > ( STRING0 , System . currentTimeMillis ( ) \n - this . timestamp ) ) ; \n + result . add ( new Metric < Double > ( STRING1 , ManagementFactory \n + . getOperatingSystemMXBean ( ) . getSystemLoadAverage ( ) ) ) ; \n } \n \n COMMENT \n public class SystemPublicMetricsTests { \n assertTrue ( results . containsKey ( STRING2 ) ) ; \n assertTrue ( results . containsKey ( STRING3 ) ) ; \n assertTrue ( results . containsKey ( STRING4 ) ) ; \n + assertTrue ( results . containsKey ( STRING1 ) ) ; \n \n assertTrue ( results . containsKey ( STRING5 ) ) ; \n assertTrue ( results . containsKey ( STRING6 ) ) ;", "msg_token": "Add systemload average to SystemPublicMetrics"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n class RemoveParenthesesFromMethodPredicate implements PsiElementPredicate { \n class RemoveParenthesesFromMethodPredicate implements PsiElementPredicate { \n return false ; \n } \n final GrMethodCallExpression methodCallExpression = ( GrMethodCallExpression ) element ; \n + \n + if ( methodCallExpression . getClosureArguments ( ) . length > NUMBER0 ) return false ; \n + \n final GrArgumentList argumentList = methodCallExpression . getArgumentList ( ) ; \n if ( argumentList == null ) return false ;", "msg_token": "Remove Unnecessary Parentheses intention applied to method with closure argument removes the closure"} {"diff": " public class Utils { \n return Build . VERSION . SDK_INT >= VERSION_CODES . JELLY_BEAN ; \n } \n \n + public static boolean hasICS ( ) { \n + return Build . VERSION . SDK_INT >= VERSION_CODES . ICE_CREAM_SANDWICH ; \n + } \n + \n public static boolean hasKitKat ( ) { \n return Build . VERSION . SDK_INT >= VERSION_CODES . KITKAT ; \n }", "msg_token": "Add ICS to API checks"} {"diff": " public class JsonValue implements Iterable < JsonValue > { \n return child ; \n } \n \n + COMMENT \n + public void addChild ( String name , JsonValue value ) { \n + value . name = name ; \n + addChild ( value ) ; \n + } \n + \n + COMMENT \n + public void addChild ( JsonValue value ) { \n + value . parent = this ; \n + JsonValue current = child ; \n + if ( current == null ) \n + child = value ; \n + else { \n + while ( true ) { \n + if ( current . next == null ) { \n + current . next = value ; \n + return ; \n + } \n + current = current . next ; \n + } \n + } \n + } \n + \n COMMENT \n COMMENT \n public JsonValue next ( ) {", "msg_token": "Added addChild methods"} {"diff": " public class CameraView extends ViewGroup implements \n getHost ( ) . getPreviewSize ( getDisplayOrientation ( ) , width , \n height , camera . getParameters ( ) ) ; \n } \n - \n - android . util . Log . d ( getClass ( ) . getSimpleName ( ) , \n - String . format ( STRING0 , \n - previewSize . width , \n - previewSize . height ) ) ; \n } \n }", "msg_token": "removed rogue logging"} {"diff": " public abstract class ATransformable3D extends AFrameTask implements IGraphNodeM \n } \n \n public void setScale ( Vector3 scale ) { \n - mScale = scale ; \n + mScale . setAll ( scale ) ; \n if ( mGraphNode != null ) mGraphNode . updateObject ( this ) ; \n }", "msg_token": "fixed setScale Vector3 scale"} {"diff": " public abstract class AbstractInplaceIntroducer extends VariableInplaceIntroduce \n Comparing . strEqual ( psiVariable . getName ( ) , ( ( PsiReferenceExpression ) expression ) . getReferenceName ( ) ) ) ) { \n return ( PsiExpression ) expression . replace ( elementFactory . createExpressionFromText ( exprText , psiVariable ) ) ; \n } \n - return null ; \n + return expression != null && expression . isValid ( ) && expression . getText ( ) . equals ( exprText ) ? expression : null ; \n } \n \n protected abstract class VisibilityListener implements ChangeListener {", "msg_token": "restore expression if text equals"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n \n public class ServerCommandLineArgs \n public static ServerCommandLineArgs parse ( String [ ] argv ) \n { \n Args args = Args . parse ( argv ) ; \n - return new ServerCommandLineArgs ( detemineConfigFile ( args ) , parseConfigOverrides ( args ) \n - ) ; \n + return new ServerCommandLineArgs ( detemineConfigFile ( args ) , parseConfigOverrides ( args ) ) ; \n } \n \n public Pair < String , String > [ ] configOverrides ( ) \n public class ServerCommandLineArgs \n private static File detemineConfigFile ( Args arguments ) \n { \n return new File ( arguments . get ( CONFIG_KEY_ALT_2 , \n - arguments . get ( CONFIG_KEY_ALT_1 , STRING0 ) ) ) ; \n + arguments . get ( CONFIG_KEY_ALT_1 , ServerSettings . SERVER_CONFIG_FILE ) ) ) ; \n } \n \n private static Pair < String , String > [ ] parseConfigOverrides ( Args arguments )", "msg_token": "Correct the default config file path used when parsing commandline args"} {"diff": " public class CircularProgressBar extends ProgressBar { \n indeterminateDrawable = builder . build ( ) ; \n setIndeterminateDrawable ( indeterminateDrawable ) ; \n } \n + \n + private CircularProgressDrawable checkIndeterminateDrawable ( ) { \n + Drawable ret = getIndeterminateDrawable ( ) ; \n + if ( ret == null || ! ( ret instanceof CircularProgressDrawable ) ) \n + throw new RuntimeException ( STRING0 ) ; \n + return ( CircularProgressDrawable ) ret ; \n + } \n + \n + public void progressiveStop ( ) { \n + checkIndeterminateDrawable ( ) . progressiveStop ( ) ; \n + } \n + \n + public void progressiveStop ( CircularProgressDrawable . OnEndListener listener ) { \n + checkIndeterminateDrawable ( ) . progressiveStop ( listener ) ; \n + } \n }", "msg_token": "Added progressiveStop methods"} {"diff": " public class WideSelectionTreeUI extends BasicTreeUI { \n } \n \n private boolean isSelected ( MouseEvent e ) { \n - \n + final JTree tree = ( JTree ) e . getSource ( ) ; \n final int selected = tree . getClosestRowForLocation ( e . getX ( ) , e . getY ( ) ) ; \n for ( int row : tree . getSelectionRows ( ) ) { \n if ( row == selected ) {", "msg_token": "get back JTree e getSource"} {"diff": " public class ItemlistFragment extends ListFragment { \n private static final String TAG = STRING0 ; \n \n private static final int EVENTS = EventDistributor . UNREAD_ITEMS_UPDATE \n + | EventDistributor . FEED_LIST_UPDATE \n | EventDistributor . PLAYER_STATUS_UPDATE ; \n \n public static final String EXTRA_SELECTED_FEEDITEM = STRING1 ;", "msg_token": "Refresh feed view"} {"diff": " public class SystemWideSaltSource implements SaltSource , InitializingBean { \n public void setSystemWideSalt ( String systemWideSalt ) { \n this . systemWideSalt = systemWideSalt ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public String toString ( ) { \n + return systemWideSalt ; \n + } \n }", "msg_token": "Override toString method in SystemWideSaltSource"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class CamelExtension implements Extension { \n return field . getAnnotation ( Inject . class ) != null ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - protected boolean isApplicationScopeOrSingleton ( Class < ? > aClass ) { \n - return aClass . getAnnotation ( Singleton . class ) != null || aClass . getAnnotation ( ApplicationScoped . class ) != null ; \n - } \n }", "msg_token": "removed some old cruft"} {"diff": " public class StandardTitanGraph extends TitanBlueprintsGraph { \n \n shutdownHook = new ShutdownThread ( this ) ; \n Runtime . getRuntime ( ) . addShutdownHook ( shutdownHook ) ; \n + log . debug ( STRING0 , shutdownHook , new Throwable ( STRING1 ) ) ; \n } \n } \n \n public class StandardTitanGraph extends TitanBlueprintsGraph { \n SINGLE \n try { \n Runtime . getRuntime ( ) . removeShutdownHook ( tmp ) ; \n + log . debug ( STRING2 , tmp ) ; \n } catch ( IllegalStateException e ) { \n log . warn ( STRING3 , e ) ; \n } \n public class StandardTitanGraph extends TitanBlueprintsGraph { \n \n @ override \n public void start ( ) { \n - if ( graph . isOpen && log . isDebugEnabled ( ) ) \n - log . debug ( STRING4 , graph ) ; \n + log . debug ( STRING5 , graph , this ) ; \n \n graph . closeInternal ( ) ; \n }", "msg_token": "Add DEBUG logging around STG shutdown hook actions"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "fixed imports style"} {"diff": " public class PSurfaceJOGL implements PSurface { \n if ( PApplet . platform == PConstants . LINUX ) { \n for ( GraphicsDevice device : awtDevices ) { \n String did = device . getIDstring ( ) ; \n - String [ ] parts = did . split ( STRING0 ) ; \n + String [ ] parts = did . split ( STRING1 ) ; \n String id1 = STRING2 ; \n if ( NUMBER0 < parts . length ) { \n id1 = parts [ NUMBER0 ] . trim ( ) ;", "msg_token": "use dot literal to split device id string"} {"diff": " class InterceptingRowReceiver implements RowReceiver , FutureCallback < Void > { \n new KillJobsRequest ( Collections . singletonList ( jobId ) ) , new ActionListener < KillResponse > ( ) { \n @ override \n public void onResponse ( KillResponse killResponse ) { \n - LOGGER . debug ( STRING0 , killResponse . numKilled ( ) ) ; \n + LOGGER . trace ( STRING0 , killResponse . numKilled ( ) ) ; \n rowReceiver . fail ( failure ) ; \n } \n \n @ override \n public void onFailure ( Throwable e ) { \n - LOGGER . warn ( STRING1 , e ) ; \n + LOGGER . trace ( STRING2 , e ) ; \n rowReceiver . fail ( failure ) ; \n } \n } ) ;", "msg_token": "changes kill on failure loggers to TRACE level"} {"diff": " public abstract class AbstractJavaAnnotationProcessingTest extends KotlinMultiFi \n TestCase . assertTrue ( STRING0 , matcher . find ( ) ) ; \n String fqName = matcher . group ( NUMBER0 ) ; \n \n - getEnvironment ( ) . updateClasspath ( Collections . singletonList ( testDir ) ) ; \n + getEnvironment ( ) . tryUpdateClasspath ( Collections . singletonList ( testDir ) ) ; \n \n super . doTest ( new File ( testDir . getParentFile ( ) , STRING1 ) . getCanonicalPath ( ) ) ;", "msg_token": "Fix compilation error"} {"diff": " public class DashboardWidgetCreator { \n final TimeRange timeRange ; \n switch ( rangeType ) { \n case STRING0 : \n - timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING0 ) ) ) ) ; \n + timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING1 ) ) ) ) ; \n break ; \n case STRING2 : \n timeRange = new KeywordRange ( ( String ) timerangeConfig . get ( STRING2 ) ) ;", "msg_token": "Revert Use relative key to get relative timerange info"} {"diff": " import static NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - and the client . < / li > \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix line length"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n public abstract class AlignmentUtils { \n public static int alignOffset ( int offset , int alignment ) {", "msg_token": "Move AlignmentUtils to Util library"} {"diff": " import NAMESPACE ; \n \n public class Data extends AbstractDatabaseObject { \n \n + @ override \n + public boolean snapshotByDefault ( ) { \n + return false ; \n + } \n + \n public Table getTable ( ) { \n return getAttribute ( STRING0 , Table . class ) ; \n }", "msg_token": "Should not snapshot data by default"} {"diff": " public class OutputChecker { \n result = result . replaceAll ( STRING0 + TEST_JDK_HOME_STR + STRING1 , STRING2 ) ; \n \n SINGLE \n - result = result . replaceAll ( STRING3 , STRING2 ) ; \n + SINGLE \n \n result = result . replaceAll ( STRING4 , STRING5 ) ; \n result = result . replaceAll ( STRING6 , STRING7 ) ;", "msg_token": "fixing ExecutionManagerTest testRun more data required"} {"diff": " public class GLMModel extends Model implements Comparable < GLMModel > { \n if ( sm . xvalidation != null && ( sm . xvalidation instanceof GLMXValidation ) ) { SINGLE \n GLMXValidation xval = ( GLMXValidation ) sm . xvalidation ; \n for ( Key k : xval . xval_models ) \n - DKV . < GLMModel > get ( k ) . delete ( ) ; \n + DKV . get ( k ) . < GLMModel > get ( ) . delete ( ) ; \n } \n } \n public void unlockXvals ( Key job_key ) {", "msg_token": "missed fix from my last push"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CalendarView extends JPanel { \n } \n \n public Date getDate ( ) { \n + commitSpinners ( ) ; \n + \n SINGLE \n myCalendar . set ( getIntValue ( myYears ) , myMonths . getSelectedIndex ( ) , myDays . getSelectedIndex ( ) + NUMBER0 , \n getIntValue ( myHours ) , getIntValue ( myMinutes ) , getIntValue ( mySeconds ) ) ; \n public class CalendarView extends JPanel { \n } \n } . registerCustomShortcutSet ( KeyEvent . VK_ENTER , NUMBER1 , this ) ; \n } \n + \n + private void commitSpinners ( ) { \n + try { \n + myYears . commitEdit ( ) ; \n + myHours . commitEdit ( ) ; \n + myMinutes . commitEdit ( ) ; \n + mySeconds . commitEdit ( ) ; \n + } \n + catch ( ParseException ignore ) { \n + } \n + } \n }", "msg_token": "commit spinners in timestamp editors before obtaining value"} {"diff": " public final class HttpHeaders { \n COMMENT \n public static final String CONTENT_LOCATION = STRING0 ; \n COMMENT \n + COMMENT \n + COMMENT \n + public static final String CONTENT_TRANSFER_ENCODING = STRING1 ; \n + COMMENT \n COMMENT \n COMMENT \n public static final String CONTENT_MD5 = STRING2 ; \n public final class HttpHeaders { \n COMMENT \n public static final class Values { \n COMMENT \n + COMMENT \n + COMMENT \n + public static final String BASE64 = STRING3 ; \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String BINARY = STRING4 ; \n + COMMENT \n COMMENT \n COMMENT \n public static final String BYTES = STRING5 ; \n public final class HttpHeaders { \n COMMENT \n public static final String PUBLIC = STRING6 ; \n COMMENT \n + COMMENT \n + COMMENT \n + public static final String QUOTED_PRINTABLE = STRING7 ; \n + COMMENT \n COMMENT \n COMMENT \n public static final String S_MAXAGE = STRING8 ;", "msg_token": "Added more HTTP header constants useful for MIME representation"} {"diff": " public class TreeGrowingSystem implements UpdateSubscriberSystem { \n Iterable < EntityRef > treeRefs = entityManager . getEntitiesWith ( LivingTreeComponent . class , BlockComponent . class ) ; \n for ( EntityRef treeRef : treeRefs ) { \n LivingTreeComponent tree = treeRef . getComponent ( LivingTreeComponent . class ) ; \n - TreeDefinition treeDefinition = treeDefinitions . get ( tree . type ) ; \n - treeDefinition . updateTree ( worldProvider , blockEntityRegistry , treeRef ) ; \n + if ( tree != null ) { \n + TreeDefinition treeDefinition = treeDefinitions . get ( tree . type ) ; \n + treeDefinition . updateTree ( worldProvider , blockEntityRegistry , treeRef ) ; \n + } else { \n + logger . error ( STRING0 ) ; \n + } \n } \n \n lastCheckTime = gameTimeInMs ;", "msg_token": "Work around for a framework bug logging the error"} {"diff": " public class CallFragment extends BaseFragment { \n \n n . flags += Notification . FLAG_ONGOING_EVENT ; \n \n - disableWakeLock ( ) ; \n \n manager . notify ( NOTIFICATION_ID , n ) ; \n } \n \n + disableWakeLock ( ) ; \n + \n } \n \n @ override", "msg_token": "disable call wakelock onPause"} {"diff": " public class EditorHelper \n COMMENT \n COMMENT \n COMMENT \n - public static int normalizeVisualColumn ( Editor editor , int vline , int col ) \n + public static int normalizeVisualColumn ( Editor editor , int vline , int col , boolean allowEnd ) \n { \n - col = Math . min ( Math . max ( NUMBER0 , col ) , getVisualLineLength ( editor , vline ) - NUMBER1 ) ; \n + col = Math . min ( Math . max ( NUMBER0 , col ) , getVisualLineLength ( editor , vline ) - ( allowEnd ? NUMBER0 : NUMBER1 ) ) ; \n \n return col ; \n }", "msg_token": "Added allowEnd to normalizeVisualColumn"} {"diff": " public class ReaderPostListFragment extends Fragment \n \n @ override \n public FilterCriteria onRecallSelection ( ) { \n - ReaderTag tag = AppPrefs . getReaderTag ( ) ; \n - return tag ; \n + return mCurrentTag ; \n } \n \n @ override", "msg_token": "Change the FilterCriteria onRecallSelection to return the already assigned tag"} {"diff": " public class ContentTypeITest extends WithJetty { \n contentType ( isEmptyOrNullString ( ) ) ; \n } \n \n + @ test public void \n + doesnt_send_a_content_type_header_when_there_is_no_body ( ) { \n + when ( ) . \n + get ( STRING0 ) . \n + then ( ) . \n + body ( STRING1 , is ( false ) ) ; \n + } \n + \n private String toJetty9 ( String charset ) { \n return StringUtils . lowerCase ( StringUtils . remove ( charset , STRING2 ) ) ; \n }", "msg_token": "Added test case to verify that content type is not sent when there s no request body"} {"diff": " public final class ActivityThread { \n } \n \n private void handleBindApplication ( AppBindData data ) { \n + SINGLE \n + VMRuntime . registerSensitiveThread ( ) ; \n if ( data . trackAllocation ) { \n DdmVmInternal . enableRecentAllocations ( true ) ; \n }", "msg_token": "Register the UI Thread as a sensitive thread to the runtime"} {"diff": " public final class StorageService implements IEndPointStateChangeSubscriber , Sto \n isBootstrapMode = true ; \n SystemTable . updateToken ( token ) ; SINGLE \n Gossiper . instance ( ) . addApplicationState ( StorageService . STATE_BOOTSTRAPPING , new ApplicationState ( partitioner_ . getTokenFactory ( ) . toString ( token ) ) ) ; \n + logger_ . info ( STRING0 + Streaming . RING_DELAY ) ; \n + try \n + { \n + Thread . sleep ( Streaming . RING_DELAY ) ; \n + } \n + catch ( InterruptedException e ) \n + { \n + throw new AssertionError ( e ) ; \n + } \n new BootStrapper ( replicationStrategy_ , FBUtilities . getLocalAddress ( ) , token , tokenMetadata_ ) . startBootstrap ( ) ; SINGLE \n }", "msg_token": "add RING_DELAY sleep to startBootstrap"} {"diff": " import NAMESPACE ; \n class ChildFirstClassLoader extends URLClassLoader { \n \n private static final RepositorySystem REPOSITORY_SYSTEM = newRepositorySystem ( ) ; \n - private static final String AETHER_API_NAME = STRING0 ; \n + private static final String AETHER_API_NAME = File . separatorChar == STRING1 ? STRING0 : STRING2 ; \n \n private final ClassLoader parent ; \n private final List < Pattern > parentFirst ;", "msg_token": "Fix local maven repo search on windows"} {"diff": " public abstract class ActivatableNotificationView extends ExpandableOutlineView \n } \n \n private void startActivateAnimation ( boolean reverse ) { \n + if ( ! isAttachedToWindow ( ) ) { \n + return ; \n + } \n int widthHalf = mBackgroundNormal . getWidth ( ) / NUMBER0 ; \n int heightHalf = mBackgroundNormal . getActualHeight ( ) / NUMBER0 ; \n float radius = ( float ) Math . sqrt ( widthHalf * widthHalf + heightHalf * heightHalf ) ;", "msg_token": "Fixed a crash with disapearing views"} {"diff": " public class ArtifactFactory implements ArtifactResolver , ArtifactSerializer , Ar \n \n @ override \n public Artifact getSourceArtifact ( PathFragment execPath , Root root , ArtifactOwner owner ) { \n - Preconditions . checkArgument ( ! execPath . isAbsolute ( ) ) ; \n - Preconditions . checkNotNull ( owner , execPath ) ; \n + Preconditions . checkArgument ( ! execPath . isAbsolute ( ) , STRING0 , execPath , root , owner ) ; \n + Preconditions . checkNotNull ( owner , STRING1 , execPath , root ) ; \n execPath = execPath . normalize ( ) ; \n return getArtifact ( root . getPath ( ) . getRelative ( execPath ) , root , execPath , owner , null ) ; \n }", "msg_token": "Add some debugging in case of crash"} {"diff": " public class SmackAndroid { \n \n private SmackAndroid ( Context ctx ) { \n mCtx = ctx ; \n - ConfigureProviderManager . configureProviderManager ( ) ; \n InitStaticCode . initStaticCode ( ctx ) ; \n + ConfigureProviderManager . configureProviderManager ( ) ; \n maybeRegisterReceiver ( ) ; \n }", "msg_token": "Changed order of init in SmackAndroid"} {"diff": " public class SourceWindow implements LastSourceDocClosedHandler , \n \n SINGLE \n SINGLE \n - if ( satellite . isCurrentWindowSatellite ( ) ) \n + if ( ! satellite . isCurrentWindowSatellite ( ) ) \n return ; \n \n SINGLE", "msg_token": "fix reversed satellite check in source window class"} {"diff": " public class WordVectorsImpl implements WordVectors { \n \n SINGLE \n @ getter protected int minWordFrequency = NUMBER0 ; \n - @ getter protected transient WeightLookupTable lookupTable ; \n - @ getter protected transient VocabCache vocab ; \n + @ getter protected WeightLookupTable lookupTable ; \n + @ getter protected VocabCache vocab ; \n @ getter protected int layerSize = NUMBER1 ; \n public final static String UNK = STRING0 ; \n protected List < String > stopWords = StopWords . getStopWords ( ) ;", "msg_token": "Remove transient from WordVectorsImpl"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BoundedTaskExecutor extends AbstractExecutorService { \n \n @ testonly \n public void waitAllTasksExecuted ( int timeout , @ notnull TimeUnit unit ) throws ExecutionException , InterruptedException { \n - assert SwingUtilities . isEventDispatchThread ( ) : Thread . currentThread ( ) ; SINGLE \n final CountDownLatch started = new CountDownLatch ( myMaxTasks ) ; \n final CountDownLatch readyToFinish = new CountDownLatch ( NUMBER0 ) ; \n SINGLE", "msg_token": "removed assertion because Jeka hates swing"} {"diff": " public class MethodInterceptorFilter < T extends MockAwareInterceptor > implements \n \n public Object intercept ( Object proxy , Method method , Object [ ] args , MethodProxy methodProxy ) \n throws Throwable { \n - SINGLE \n - if ( method . isBridge ( ) ) { \n - return methodProxy . invokeSuper ( proxy , args ) ; \n - } \n - \n if ( equalsMethod . equals ( method ) ) { \n return Boolean . valueOf ( proxy == args [ NUMBER0 ] ) ; \n } else if ( hashCodeMethod . equals ( method ) ) { \n public class BridgeMethodPuzzleTest extends TestBase { \n public void shouldVerifyCorrectlyWhenBridgeMethodCalled ( ) throws Exception { \n SINGLE \n SINGLE \n - SINGLE \n Sub s = mock ( Sub . class ) ; \n setMockWithDownCast ( s ) ; \n say ( STRING0 ) ;", "msg_token": "removed dead code"} {"diff": " public class SyslogFormatter extends PatternLayout { \n public SyslogFormatter ( LoggerContext context , TimeZone timeZone , String name ) { \n super ( ) ; \n getDefaultConverterMap ( ) . put ( STRING0 , PrefixedThrowableProxyConverter . class . getName ( ) ) ; \n + getDefaultConverterMap ( ) . put ( STRING1 , PrefixedExtendedThrowableProxyConverter . class . getName ( ) ) ; \n setPattern ( name + STRING2 + timeZone . getID ( ) + STRING3 ) ; \n setContext ( context ) ; \n }", "msg_token": "Add extended trace converter to syslog formatter"} {"diff": " public class MongoCursorTest extends DatabaseTestCase { \n final List < Document > list = new ArrayList < Document > ( ) ; \n collection . limit ( NUMBER0 ) . into ( list ) ; \n assertEquals ( NUMBER0 , list . size ( ) ) ; \n - for ( Document document : list ) { \n - System . out . println ( document . get ( STRING0 ) ) ; \n - } \n } \n \n @ test", "msg_token": "Removed println from test"} {"diff": " public class SyncWatchEventProcessor implements Runnable { \n } \n \n SyncFile syncFile = SyncFileService . fetchSyncFile ( \n - FileUtil . getFileKey ( targetFilePath ) ) ; \n + targetFilePath . toString ( ) ) ; \n \n if ( syncFile == null ) { \n - syncFile = SyncFileService . fetchSyncFile ( targetFilePath . toString ( ) ) ; \n + syncFile = SyncFileService . fetchSyncFile ( \n + FileUtil . getFileKey ( targetFilePath ) ) ; \n } \n \n if ( syncFile == null ) { \n public class SyncWatchEventProcessor implements Runnable { \n } \n \n SyncFile syncFile = SyncFileService . fetchSyncFile ( \n - FileUtil . getFileKey ( targetFilePath ) ) ; \n + targetFilePath . toString ( ) ) ; \n \n if ( syncFile == null ) { \n - syncFile = SyncFileService . fetchSyncFile ( targetFilePath . toString ( ) ) ; \n + syncFile = SyncFileService . fetchSyncFile ( \n + FileUtil . getFileKey ( targetFilePath ) ) ; \n } \n \n if ( syncFile == null ) {", "msg_token": "sync engine Check file path before fileKey to avoid unique key index exception reverts to previous behavior"} {"diff": " public final class Transform implements Savable , Cloneable { \n if ( store == null ) \n store = new Vector3f ( ) ; \n \n - in . subtract ( translation , store ) . divideLocal ( scale ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + \n + in . subtract ( translation , store ) ; \n rot . inverse ( ) . mult ( store , store ) ; \n + store . divideLocal ( scale ) ; \n + \n return store ; \n }", "msg_token": "Fixed yet another bug with transforms this time in Spatial worldToLocal"} {"diff": " public class SearchEverywhereAction extends AnAction implements CustomComponentA \n ActionToolbarImpl . updateAllToolbarsImmediately ( ) ; \n } \n } ) ; \n - } finally { \n + } \n + finally { \n result . setDone ( ) ; \n } \n } \n public class SearchEverywhereAction extends AnAction implements CustomComponentA \n private void showSettings ( ) { \n myPopupField . setText ( STRING0 ) ; \n final SearchListModel model = new SearchListModel ( ) ; \n - model . addElement ( new SEOption ( STRING1 , STRING2 ) ) ; \n + SINGLE \n model . addElement ( new SEOption ( STRING3 , STRING4 ) ) ; \n model . addElement ( new SEOption ( STRING5 , STRING6 ) ) ; \n model . addElement ( new SEOption ( STRING7 , STRING8 ) ) ;", "msg_token": "disable find in file structure in SE"} {"diff": " public abstract class CallPeerMediaHandler < T extends MediaAwareCallPeer < ? , ? , ? > > \n if ( stream == null ) \n continue ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n MediaDevice oldDevice = stream . getDevice ( ) ; \n - \n if ( oldDevice != null ) \n { \n + if ( oldDevice instanceof MediaDeviceWrapper ) \n + oldDevice = ( ( MediaDeviceWrapper ) oldDevice ) \n + . getWrappedDevice ( ) ; \n + \n MediaDevice newDevice = getDefaultDevice ( mediaType ) ; \n + MediaDevice wrappedNewDevice = newDevice ; \n + if ( newDevice instanceof MediaDeviceWrapper ) \n + wrappedNewDevice = ( ( MediaDeviceWrapper ) newDevice ) \n + . getWrappedDevice ( ) ; \n \n - if ( oldDevice != newDevice ) \n + if ( oldDevice != wrappedNewDevice ) \n stream . setDevice ( newDevice ) ; \n }", "msg_token": "Makes sure that the MediaDevice of the MediaStream is only updated if it has"} {"diff": " public class JavaGenerator implements CodeGenerator \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n - STRING4 + \n - STRING5 + \n - STRING6 + \n STRING7 + \n STRING8 + \n STRING9 + \n public class JavaGenerator implements CodeGenerator \n STRING10 + \n STRING11 , \n choiceName , \n - Integer . valueOf ( token . version ( ) ) , \n typePrefix , \n choiceBitPosition , \n byteOrderStr ,", "msg_token": "Removed checking of version when decoding bitset values"} {"diff": " public abstract class ScheduledPollConsumer extends DefaultConsumer implements R \n \n @ override \n protected void doStop ( ) throws Exception { \n - scheduler . unscheduleTask ( ) ; \n - ServiceHelper . stopAndShutdownServices ( scheduler ) ; \n + if ( scheduler != null ) { \n + scheduler . unscheduleTask ( ) ; \n + ServiceHelper . stopAndShutdownServices ( scheduler ) ; \n + } \n \n SINGLE \n backoffCounter = NUMBER0 ;", "msg_token": "Fixed potential NPE"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class WrongWordInContextRule extends Rule { \n try ( Scanner scanner = new Scanner ( stream , STRING0 ) ) { \n while ( scanner . hasNextLine ( ) ) { \n final String line = scanner . nextLine ( ) ; \n - if ( line . charAt ( NUMBER0 ) == STRING1 ) { \n + if ( line . trim ( ) . isEmpty ( ) || line . charAt ( NUMBER0 ) == STRING1 ) { \n continue ; \n } \n final String [ ] column = line . split ( STRING2 ) ;", "msg_token": "improve javadoc don t crash on empty lines"} {"diff": " public class TaskListActivity extends ListActivity implements OnScrollListener , \n Preferences . setBoolean ( R . string . p_showed_add_task_help , true ) ; \n } \n \n - if ( filter . title . equals ( getString ( R . string . BFE_Active ) ) ) { \n + if ( filter . title != null && filter . title . equals ( getString ( R . string . BFE_Active ) ) ) { \n initiateAutomaticSync ( ) ; \n } \n }", "msg_token": "Fixed a potential null pointer"} {"diff": " public class TestLightScattering extends SimpleApplication { \n app . start ( ) ; \n } \n \n - public void loadFPSText ( ) { \n - guiFont = assetManager . loadFont ( STRING0 ) ; \n - fpsText = new BitmapText ( guiFont , false ) ; \n - fpsText . setSize ( guiFont . getCharSet ( ) . getRenderedSize ( ) ) ; \n - fpsText . setLocalTranslation ( NUMBER0 , fpsText . getLineHeight ( ) , NUMBER0 ) ; \n - fpsText . setText ( STRING1 ) ; \n - guiNode . attachChild ( fpsText ) ; \n - } \n - \n - public void loadStatsView ( ) { \n - statsView = new StatsView ( STRING2 , assetManager , renderer . getStatistics ( ) ) ; \n - SINGLE \n - statsView . setLocalTranslation ( NUMBER0 , fpsText . getLineHeight ( ) , NUMBER0 ) ; \n - guiNode . attachChild ( statsView ) ; \n - } \n - \n @ override \n public void simpleInitApp ( ) { \n SINGLE", "msg_token": "Removed the loadStatsView and loadFpsText because"} {"diff": " public class AuthorizationAPI extends ApiImplementor { \n switch ( name ) { \n case VIEW_GET_AUTHORIZATION_METHOD : \n Context context = ApiUtils . getContextByParamId ( params , PARAM_CONTEXT_ID ) ; \n - return context . getAuthorizationDetectionMethod ( ) . getApiResponseRepresentation ( ) ; \n + return new ApiResponseElement ( context . getAuthorizationDetectionMethod ( ) . getApiResponseRepresentation ( ) ) ; \n default : \n throw new ApiException ( Type . BAD_VIEW ) ; \n }", "msg_token": "Change API authorization view to wrap its object"} {"diff": " package NAMESPACE ; \n COMMENT \n public class WriteResult { \n \n - private final com . mongodb . WriteConcern writeConcern ; \n + private final WriteConcern writeConcern ; \n private final int n ; \n private final boolean updateOfExisting ; \n private final Object upsertedId ;", "msg_token": "Removed unnecessary fully qualified class name"} {"diff": " public class ListView extends AbsListView { \n COMMENT \n public void addFooterView ( View v , Object data , boolean isSelectable ) { \n \n - if ( mAdapter != null && ! ( mAdapter instanceof HeaderViewListAdapter ) ) { \n - throw new IllegalStateException ( \n - STRING0 ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n \n FixedViewInfo info = new FixedViewInfo ( ) ; \n info . view = v ;", "msg_token": "Revert recently added check to addFooterView"} {"diff": " public class KMeansIteration implements PlanAssembler , PlanAssemblerDescription \n public void reduce ( Iterator < PactRecord > dataPoints , Collector out ) \n { \n SINGLE \n - \n + this . coordinates . setCoordinates ( null ) ; \n double [ ] coordinateSum = null ; \n int count = NUMBER0 ; \n \n public class KMeansIteration implements PlanAssembler , PlanAssemblerDescription \n public void combine ( Iterator < PactRecord > dataPoints , Collector out ) \n { \n SINGLE \n + this . coordinates . setCoordinates ( null ) ; \n double [ ] coordinateSum = null ; \n int count = NUMBER0 ;", "msg_token": "Fixed KMeans example"} {"diff": " public class RegistrationIntentService extends IntentService { \n COMMENT \n SINGLE \n private void subscribeTopics ( String token ) throws IOException { \n + GcmPubSub pubSub = GcmPubSub . getInstance ( this ) ; \n for ( String topic : TOPICS ) { \n - GcmPubSub pubSub = GcmPubSub . getInstance ( this ) ; \n pubSub . subscribe ( token , STRING0 + topic , null ) ; \n } \n }", "msg_token": "Optimized loop code"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n class GridFSChunk { \n \n import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public class GridFSObject {", "msg_token": "some deprecated flags"} {"diff": " class ClusterTopologyWriter { \n PackedInteger . writePackedInteger ( output , memberCount ) ; \n SINGLE \n for ( final ClusterNode clusterMember : cluster . getClusterNodes ( ) ) { \n + SINGLE \n + output . writeUTF ( clusterMember . getName ( ) ) ; \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Write the node name as part of the cluster topology remote protocol message"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class PostgreSQLDialect extends Dialect {", "msg_token": "Added javadocs comments wrt postgresql and BLOB handling"} {"diff": " public class SessionInfo extends JavaScriptObject \n public final native boolean getMultiSession ( ) COMMENT \n COMMENT \n COMMENT ; \n + \n + public final native int getActiveSessionCount ( ) COMMENT \n + COMMENT \n + COMMENT ; \n }", "msg_token": "add accessor for active session count"} {"diff": " public class IdeaTestApplication extends CommandLineApplication { \n } \n return ( IdeaTestApplication ) ourInstance ; \n } \n + \n + public static boolean isInitialized ( ) { \n + return ourInstance != null ; \n + } \n }", "msg_token": "don t touch platform prefix if app is already initialized"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultConfiguration extends AbstractFileCollection implements Conf \n public ComponentResolveMetaData toRootComponentMetaData ( ) { \n ModuleInternal module = getModule ( ) ; \n Set < ? extends Configuration > configurations = getAll ( ) ; \n - ComponentIdentifier componentIdentifier = DefaultProjectComponentIdentifier . newId ( module . getProjectPath ( ) ) ; \n + ComponentIdentifier componentIdentifier = new DefaultComponentIdentifierFactory ( ) . createComponentIdentifier ( module ) ; \n ModuleVersionIdentifier moduleVersionIdentifier = DefaultModuleVersionIdentifier . newId ( module ) ; \n DefaultLocalComponentMetaData metaData = new DefaultLocalComponentMetaData ( moduleVersionIdentifier , componentIdentifier , module . getStatus ( ) ) ; \n configurationComponentMetaDataBuilder . addConfigurations ( metaData , configurations ) ;", "msg_token": "Don t make assumptions about the component id created for a Configuration"} {"diff": " public class QueuedThreadPool extends AbstractLifeCycle implements SizedThreadPo \n startThreads ( NUMBER0 ) ; \n } \n \n - while ( isRunning ( ) ) \n + loop: while ( isRunning ( ) ) \n { \n SINGLE \n while ( job != null && isRunning ( ) ) \n { \n runJob ( job ) ; \n + if ( Thread . interrupted ( ) ) \n + break loop ; \n job = _jobs . poll ( ) ; \n }", "msg_token": "QueuedThreadPool does not reuse interrupted threads"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ReactTextInputManager extends \n - BaseViewManager < ReactEditText , ReactTextInputShadowNode > { \n + public class ReactTextInputManager extends BaseViewManager < ReactEditText , LayoutShadowNode > { \n \n COMMENT \n \n public class ReactTextInputManager extends \n } \n \n @ override \n - public ReactTextInputShadowNode createShadowNodeInstance ( ) { \n + public LayoutShadowNode createShadowNodeInstance ( ) { \n return new ReactTextInputShadowNode ( ) ; \n } \n \n @ override \n - public Class < ReactTextInputShadowNode > getShadowNodeClass ( ) { \n + public Class < ? extends LayoutShadowNode > getShadowNodeClass ( ) { \n return ReactTextInputShadowNode . class ; \n }", "msg_token": "Fix TextInput in React Nodes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GuiceCamelContext extends DefaultCamelContext { \n \n @ override \n @ inject ( optional = true ) \n - public void setExchangeConverter ( ExchangeConverter exchangeConverter ) { \n - super . setExchangeConverter ( exchangeConverter ) ; \n - } \n - \n - @ override \n - @ inject ( optional = true ) \n public void setComponentResolver ( ComponentResolver componentResolver ) { \n super . setComponentResolver ( componentResolver ) ; \n }", "msg_token": "Removing ExchangeConverter as its not used and not needed anymore"} {"diff": " public class PomTargetPsiElementImpl extends RenameableFakePsiElement implements \n throw new UnsupportedOperationException ( STRING0 + myTarget . getClass ( ) . getName ( ) + STRING1 ) ; \n } \n \n + @ notnull \n + @ override \n + public PsiElement getNavigationElement ( ) { \n + if ( myTarget instanceof PsiTarget ) { \n + return ( ( PsiTarget ) myTarget ) . getNavigationElement ( ) ; \n + } \n + return super . getNavigationElement ( ) ; \n + } \n + \n public Icon getIcon ( ) { \n for ( IconProvider iconProvider : IconProvider . EXTENSION_POINT_NAME . getExtensions ( ) ) { \n if ( iconProvider instanceof PomIconProvider ) {", "msg_token": "fixed incorrect navigation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public final class ClientEndpoint implements Client { \n \n public final class ClientEndpoint implements Client { \n \n public SocketAddress getSocketAddress ( ) { \n if ( conn instanceof TcpIpConnection ) { \n - ( ( TcpIpConnection ) conn ) . getSocketChannelWrapper ( ) . socket ( ) . getRemoteSocketAddress ( ) ; \n + return ( ( TcpIpConnection ) conn ) . getSocketChannelWrapper ( ) . socket ( ) . getRemoteSocketAddress ( ) ; \n } \n return null ; \n }", "msg_token": "ClientEndPoint getSocketAddress always returns null"} {"diff": " public class FastAdapter < Item extends IItem > extends RecyclerView . Adapter < Recycl \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public FastAdapter < Item > withOnCreateViewHolderListener ( OnCreateViewHolderListener onCreateViewHolderListener ) { \n + this . mOnCreateViewHolderListener = onCreateViewHolderListener ; \n + return this ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public FastAdapter < Item > withOnBindViewHolderListener ( OnBindViewHolderListener onBindViewHolderListener ) { \n + this . mOnBindViewHolderListener = onBindViewHolderListener ; \n + return this ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add setter for the OnCreateViewHolderListener and OnBindViewHolderListener"} {"diff": " public class AceEditorIdleCommands \n Position position , \n Range tokenRange ) \n { \n - SINGLE \n - SINGLE \n - String srcPath = imgSrcPathFromHref ( href ) ; \n - \n SINGLE \n SINGLE \n String encoded = StringUtil . encodeURIComponent ( href ) ; \n public class AceEditorIdleCommands \n return ; \n \n SINGLE \n + noImageLabel . setText ( STRING0 + href_ + STRING1 ) ; \n image . getElement ( ) . setAttribute ( STRING2 , imgSrcPathFromHref ( href_ ) ) ; \n } \n } ;", "msg_token": "update label text for changed links"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n \n @ nonnls \n public class JobSchedulerImpl extends JobScheduler { \n - public static final int CORES_COUNT = Runtime . getRuntime ( ) . availableProcessors ( ) ; \n + public static final int CORES_COUNT = SystemInfo . isMac ? NUMBER0 : Runtime . getRuntime ( ) . availableProcessors ( ) ; SINGLE \n @ nonnls private static final String THREADS_NAME = STRING0 ; \n private static final ThreadFactory WORKERS_FACTORY = new ThreadFactory ( ) { \n public Thread newThread ( final Runnable r ) {", "msg_token": "Plan B IDEA goes single core on MacOS X"} {"diff": " public class JsonModelLoader { \n } else if ( attr . equals ( STRING0 ) ) { \n vertexAttributes . add ( VertexAttribute . BoneWeights ( NUMBER0 ) ) ; \n } else if ( attr . equals ( STRING1 ) ) { \n - vertexAttributes . add ( VertexAttribute . Color ( ) ) ; \n + vertexAttributes . add ( VertexAttribute . ColorUnpacked ( ) ) ; \n } else { \n throw new GdxRuntimeException ( STRING2 + attr + STRING3 ) ; \n }", "msg_token": "Fix color attribute in JsonModelLoader"} {"diff": " public class EventBus implements IEventExceptionHandler \n { \n ListenerList . resize ( busID + NUMBER0 ) ; \n exceptionHandler = this ; \n - register ( this ) ; \n } \n \n public EventBus ( @ nonnull IEventExceptionHandler handler )", "msg_token": "Remove debug code that was causing console spam in Forge"} {"diff": " public class h2odriver extends Configured implements Tool { \n job . submit ( ) ; \n System . out . println ( STRING0 + jobtrackerName + STRING1 ) ; \n System . out . println ( STRING2 + job . getJobID ( ) + STRING3 ) ; \n + String applicationID = job . getJobID ( ) . toString ( ) . replace ( STRING4 , STRING5 ) ; \n + System . out . println ( STRING6 + applicationID + STRING3 ) ; \n \n SINGLE \n ctrlc = new CtrlCHandler ( ) ;", "msg_token": "Print yarn logs command as part of stdout"} {"diff": " public class UIDialogCreateNewWorld extends UIDialog { \n \n private boolean createServerGame ; \n private ModuleSelection selection ; \n + private UIButton previewButton ; \n \n public UIDialogCreateNewWorld ( boolean createServer ) { \n super ( new Vector2f ( NUMBER0 f , NUMBER1 f ) ) ; \n public class UIDialogCreateNewWorld extends UIDialog { \n Vector2f previewPos = inputSeed . getPosition ( ) ; \n previewPos . x += inputSeed . getSize ( ) . x ; \n previewPos . x += NUMBER2 ; \n + \n + previewButton . setPosition ( previewPos ) ; \n + parent . addDisplayElement ( previewButton ) ; \n + \n \n content . orderDisplayElementTop ( worldGenerator ) ; \n parent . layout ( ) ;", "msg_token": "Revert Removed preview world button"} {"diff": " public class StreamReplyVerbHandler implements IVerbHandler \n StreamReply reply = StreamReply . serializer . deserialize ( new DataInputStream ( bufIn ) ) ; \n logger . debug ( STRING0 , reply ) ; \n StreamOutSession session = StreamOutSession . get ( message . getFrom ( ) , reply . sessionId ) ; \n + if ( session == null ) \n + { \n + logger . debug ( STRING1 + reply . action + STRING2 + message . getFrom ( ) ) ; \n + return ; \n + } \n \n switch ( reply . action ) \n {", "msg_token": "Log a message when a streaming action for an unkown session is received"} {"diff": " public class ReconnectionManager { \n SINGLE \n try { \n if ( isReconnectionPossible ( connection ) ) { \n - connection . connect ( ) ; \n + try { \n + connection . connect ( ) ; \n + } catch ( SmackException . AlreadyConnectedException e ) { \n + LOGGER . log ( Level . FINER , STRING0 , e ) ; \n + } \n } \n SINGLE \n SINGLE", "msg_token": "Handle AlreadyConnectedException in ReconnectionManager"} {"diff": " public class RequestThreadManager { \n public void onPictureTaken ( byte [ ] data , Camera camera ) { \n Log . i ( TAG , STRING0 ) ; \n Pair < RequestHolder , Long > captureInfo = mCaptureCollector . jpegProduced ( ) ; \n - RequestHolder holder = captureInfo . first ; \n - long timestamp = captureInfo . second ; \n - if ( holder == null ) { \n + if ( captureInfo == null || captureInfo . first == null ) { \n Log . e ( TAG , STRING1 ) ; \n return ; \n } \n + RequestHolder holder = captureInfo . first ; \n + long timestamp = captureInfo . second ; \n for ( Surface s : holder . getHolderTargets ( ) ) { \n try { \n if ( LegacyCameraDevice . containsSurfaceId ( s , mJpegSurfaceIds ) ) {", "msg_token": "Fix null check in PictureCallback"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n class ScratchWidget extends EditorBasedWidget implements CustomStatusBarWidget . M \n Project project = getProject ( ) ; \n if ( project == null ) return ; \n VirtualFile file = getSelectedFile ( ) ; \n - if ( file == null ) return ; \n ScratchFileService fileService = ScratchFileService . getInstance ( ) ; \n - if ( fileService . getRootType ( file ) instanceof ScratchRootType ) { \n + if ( file != null && fileService . getRootType ( file ) instanceof ScratchRootType ) { \n Language lang = fileService . getScratchesMapping ( ) . getMapping ( file ) ; \n if ( lang == null ) { \n lang = LanguageSubstitutors . INSTANCE . substituteLanguage ( ( ( LanguageFileType ) file . getFileType ( ) ) . getLanguage ( ) , file , project ) ;", "msg_token": "update the status bar in any case"} {"diff": " public class PresencePriorityTest extends SmackTestCase { \n Presence . Mode . AVAILABLE ) ) ; \n conn . sendPacket ( new Presence ( Presence . Type . AVAILABLE , null , NUMBER0 , \n Presence . Mode . AVAILABLE ) ) ; \n + Thread . sleep ( NUMBER1 ) ; \n SINGLE \n Chat chat0 = new Chat ( getConnection ( NUMBER2 ) , getBareJID ( NUMBER3 ) ) ; \n Chat chat1 = new Chat ( getConnection ( NUMBER3 ) , getBareJID ( NUMBER2 ) ) ; \n public class RosterExchangeManagerTest extends SmackTestCase { \n entriesReceived = NUMBER2 ; \n rosterExchangeManager1 . send ( getConnection ( NUMBER2 ) . getRoster ( ) , getBareJID ( NUMBER3 ) ) ; \n SINGLE \n - Thread . sleep ( NUMBER4 ) ; \n + Thread . sleep ( NUMBER5 ) ; \n } \n catch ( Exception e ) { \n fail ( STRING0 ) ;", "msg_token": "Increased delay between packets to give more time to the server for processing the packets"} {"diff": " public class MediaConductor extends Agent \n sender . processBufferRotation ( ) ; \n receiver . processBufferRotation ( ) ; \n processClientCommandBuffer ( ) ; \n - processCommandBuffer ( ) ; \n + processLocalCommandBuffer ( ) ; \n processTimers ( ) ; \n } \n \n public class MediaConductor extends Agent \n SINGLE \n } \n \n - private void processCommandBuffer ( ) \n + private void processLocalCommandBuffer ( ) \n { \n localCommandBuffer . read ( \n ( msgTypeId , buffer , index , length ) - >", "msg_token": "Rename command buffers in MediaConductor"} {"diff": " public class Extractor { \n private String conditionValue ; \n @ jsonproperty \n private int order ; \n - @ jsonproperty \n - private String regexConditionPattern ; \n \n public String getTitle ( ) { \n return title ; \n public class Extractor { \n public void setOrder ( int order ) { \n this . order = order ; \n } \n - \n - public String getRegexConditionPattern ( ) { \n - return regexConditionPattern ; \n - } \n - \n - public void setRegexConditionPattern ( String regexConditionPattern ) { \n - this . regexConditionPattern = regexConditionPattern ; \n - } \n }", "msg_token": "Remove unused bundle Extractor regexConditionPattern"} {"diff": " public class EphemeralFileSystemAbstraction implements FileSystemAbstraction \n int read ( Positionable fc , ByteBuffer dst ) \n { \n int wanted = dst . limit ( ) - dst . position ( ) ; \n - int available = min ( wanted , ( int ) ( size ( ) - fc . pos ( ) ) ) ; \n - if ( available == NUMBER0 ) \n + long size = size ( ) ; \n + int available = min ( wanted , ( int ) ( size - fc . pos ( ) ) ) ; \n + if ( available <= NUMBER0 ) \n { \n return - NUMBER1 ; SINGLE \n }", "msg_token": "Fix a pread bug in the EphemeralFSA"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n @ configuration \n @ enablespringdatawebsupport", "msg_token": "Add missing since tag"} {"diff": " public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Fac \n \n for ( Content content : contents ) { \n final View view = getStateFor ( content ) ; \n - SINGLE \n + if ( view . isMinimizedInGrid ( ) ) continue ; \n prev . myManager . removeContent ( content , false ) ; \n myManager . removeContent ( content , false ) ; \n if ( hadGrid && contents . size ( ) == NUMBER0 && ! wasRestoring ) {", "msg_token": "do not drag out minimized views"} {"diff": " public class InternalEngine extends AbstractIndexShardComponent implements Engin \n synchronized ( refreshMutex ) { \n if ( dirty || refresh . force ( ) ) { \n dirty = false ; \n - searcherManager . maybeRefresh ( ) ; \n + boolean refreshed = searcherManager . maybeRefresh ( ) ; \n + assert refreshed : STRING0 ; \n } \n } \n } catch ( AlreadyClosedException e ) {", "msg_token": "InternalEngine added an assert to verify refresh was performed by lucene"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public enum WorldType { \n NORMAL ( STRING0 ) , \n - FLAT ( STRING1 ) ; \n + FLAT ( STRING1 ) , \n + VERSION_1_1 ( STRING2 ) ; \n \n private final static Map < String , WorldType > BY_NAME = Maps . newHashMap ( ) ; \n private final String name ;", "msg_token": "Added VERSION_1_1 WorldType"} {"diff": " public class EventServiceImpl implements InternalEventService { \n final String eventSyncFrequencyProp = System . getProperty ( EVENT_SYNC_FREQUENCY_PROP ) ; \n int eventSyncFrequency ; \n try { \n - eventSyncFrequency = Integer . valueOf ( eventSyncFrequencyProp ) ; \n + eventSyncFrequency = Integer . parseInt ( eventSyncFrequencyProp ) ; \n + if ( eventSyncFrequency <= NUMBER0 ) { \n + eventSyncFrequency = EVENT_SYNC_FREQUENCY ; \n + } \n } catch ( Exception e ) { \n eventSyncFrequency = EVENT_SYNC_FREQUENCY ; \n }", "msg_token": "Fix findbugs issue"} {"diff": " public abstract class AbstractArchiveResource extends AbstractResource { \n \n int pos = NUMBER0 ; \n try ( JarInputStreamWrapper jisw = getJarInputStreamWrapper ( ) ) { \n + if ( jisw == null ) { \n + SINGLE \n + return null ; \n + } \n while ( pos < size ) { \n int n = jisw . read ( result , pos , size - pos ) ; \n if ( n < NUMBER0 ) { \n public abstract class AbstractArchiveResource extends AbstractResource { \n getLog ( ) . debug ( sm . getString ( STRING0 , \n getWebappPath ( ) ) , ioe ) ; \n } \n + SINGLE \n + return null ; \n } \n \n return result ;", "msg_token": "improve the algorithm to handle an exception or null return value in getContent and avoid NPE or returning corrupted data"} {"diff": " import NAMESPACE ; \n \n \n public abstract class CompareTo < T extends Comparable < T > > extends ArgumentMatcher < T > { \n - private static final long serialVersionUID = NUMBER0 ; \n private final Comparable < T > wanted ; \n \n public CompareTo ( Comparable < T > value ) { \n import NAMESPACE ; \n import NAMESPACE ; \n \n @ ignore ( STRING0 ) \n - @ suppresswarnings ( STRING1 ) \n public class AssertingMatchersTest extends TestBase { \n \n private IMethods mock ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ suppresswarnings ( STRING1 ) \n public class CustomMatcherDoesYieldCCETest extends TestBase { \n \n @ mock private IMethods mock ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - @ suppresswarnings ( STRING1 ) \n public class CustomMatchersTest extends TestBase { \n \n private final class ContainsFoo extends ArgumentMatcher < String > {", "msg_token": "in order to move Serializable out of interfaces and back to concrete classes"} {"diff": " public class InMemoryTaskArtifactCache implements InMemoryPersistentCacheDecorat \n original . remove ( key ) ; \n } \n \n - public void onStartWork ( String operationDisplayName , boolean lockHasNewOwner ) { \n - if ( lockHasNewOwner ) { \n + public void onStartWork ( String operationDisplayName , boolean contentHasBeenUpdated ) { \n + if ( contentHasBeenUpdated ) { \n LOG . info ( STRING0 , cacheFile ) ; \n data . invalidateAll ( ) ; \n } \n public class DefaultMultiProcessSafePersistentIndexedCache < K , V > implements Mult \n } ) ; \n } \n \n - public void onStartWork ( String operationDisplayName , boolean lockHasNewOwner ) { \n + public void onStartWork ( String operationDisplayName , boolean contentHasBeenUpdated ) { \n } \n \n public void onEndWork ( ) { \n public interface UnitOfWorkParticipant { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - void onStartWork ( String operationDisplayName , boolean lockHasNewOwner ) ; \n + void onStartWork ( String operationDisplayName , boolean contentHasBeenUpdated ) ; \n \n COMMENT \n COMMENT", "msg_token": "Renamed parameter of UnitOfWorkParticipant onStartWork and updated some javadocs"} {"diff": " \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ConstructorUtils { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed and in JavaDoc"} {"diff": " public class DisplayUtils { \n STRING0 , \n STRING1 , \n STRING2 , \n - STRING3 \n + STRING3 , \n + STRING4 \n } ; \n private static Set < String > SUBTYPES_DOCUMENT_SET = new HashSet < String > ( Arrays . asList ( SUBTYPES_DOCUMENT ) ) ; \n private static final String [ ] SUBTYPES_SPREADSHEET = {", "msg_token": "Fixed icon for MIME type application javascript"} {"diff": " public class PaymentJson extends JsonBase { \n return transactions ; \n } \n \n - public PaymentAttempt getNextScheduledPaymentRetry ( ) { return nextScheduledPaymentAttempt ; } \n + public PaymentAttempt getNextScheduledPaymentAttempt ( ) { return nextScheduledPaymentAttempt ; } \n \n @ override \n public String toString ( ) {", "msg_token": "Adding fixes for Integration Tests"} {"diff": " public class SslHandler extends ByteToMessageDecoder implements ChannelOutboundH \n ctx . read ( ) ; \n } \n \n - ctx . fireChannelReadComplete ( ) ; \n + super . channelReadComplete ( ctx ) ; \n } \n \n COMMENT", "msg_token": "Fix unbounded expansion of cumulative buffer in SslHandler"} {"diff": " public class WebView extends AbsoluteLayout \n if ( measuredHeight > heightSize ) { \n measuredHeight = heightSize ; \n mHeightCanMeasure = false ; \n - } else if ( measuredHeight < heightSize ) { \n measuredHeight |= MEASURED_STATE_TOO_SMALL ; \n } \n }", "msg_token": "Fix height measure state"} {"diff": " public class NettyResponse extends ResponseBase { \n charset = calculateCharset ( ) ; \n } \n byte [ ] b = AsyncHttpProviderUtils . contentToBytes ( bodyParts , maxLength ) ; \n - if ( charset == null ) { \n - charset = DEFAULT_CHARSET ; \n - } \n return new String ( b , charset ) ; \n }", "msg_token": "Remove redundant check"} {"diff": " public class DevelopmentServer { \n systemEnvironment . set ( SystemEnvironment . GO_CONFIG_REPO_PERIODIC_GC , true ) ; \n systemEnvironment . set ( SystemEnvironment . GO_CONFIG_REPO_GC_AGGRESSIVE , true ) ; \n systemEnvironment . setProperty ( STRING0 , STRING1 ) ; \n - systemEnvironment . setProperty ( STRING2 , STRING3 ) ; \n - systemEnvironment . setProperty ( STRING4 , STRING5 ) ; \n + systemEnvironment . setProperty ( STRING2 , STRING6 ) ; \n + systemEnvironment . setProperty ( STRING4 , STRING6 ) ; \n } \n \n private static void copyDbFiles ( ) throws IOException {", "msg_token": "Reduce the frequency of annoying git gc messages in dev environment"} {"diff": " public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \n void dependencies ( Closure configureClosure ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - PluginContainer getPlugins ( ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface Project extends Comparable < Project > , ExtensionAware , PluginAwar \n CopySpec copySpec ( Closure closure ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - void apply ( Closure closure ) ; \n - \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - void apply ( Map < String , ? > options ) ; \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed methods from Project overridden from PluginAware"} {"diff": " class TypeConverterDelegate { \n Collection original , String propertyName , Class requiredType , TypeDescriptor typeDescriptor ) { \n \n boolean originalAllowed = requiredType . isInstance ( original ) ; \n - if ( ! originalAllowed && ! Collection . class . isAssignableFrom ( requiredType ) ) { \n + if ( ! originalAllowed && ! Collection . class . isAssignableFrom ( requiredType ) || original . isEmpty ( ) ) { \n return original ; \n } \n \n class TypeConverterDelegate { \n Map original , String propertyName , Class requiredType , TypeDescriptor typeDescriptor ) { \n \n boolean originalAllowed = requiredType . isInstance ( original ) ; \n - if ( ! originalAllowed && ! Map . class . isAssignableFrom ( requiredType ) ) { \n + if ( ! originalAllowed && ! Map . class . isAssignableFrom ( requiredType ) || original . isEmpty ( ) ) { \n return original ; \n }", "msg_token": "skip collection conversion early if empty"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class ParseDataset2 extends Job { \n Log . info_no_stdout ( String . format ( STRING0 , CStr , typeStr , minStr , maxStr , naStr , isConstantStr , numLevelsStr ) ) ; \n } \n } \n + Log . info ( FrameUtils . chunkSummary ( fr ) . toString ( ) ) ; \n } \n catch ( Exception ignore ) { } SINGLE \n }", "msg_token": "Log ChunkSummary after parsing"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NewPathForShardTest extends ESTestCase { \n } \n \n public void testSelectNewPathForShard ( ) throws Exception { \n + assumeFalse ( STRING0 , Constants . WINDOWS ) ; \n Path path = PathUtils . get ( createTempDir ( ) . toString ( ) ) ; \n \n SINGLE", "msg_token": "disable new test on windows"} {"diff": " public enum Opcode \n NEW_INSTANCE ( ( byte ) NUMBER0 , STRING0 , ( byte ) NUMBER1 , ReferenceType . type , STRING1 ) , \n NEW_ARRAY ( ( byte ) NUMBER2 , STRING2 , ( byte ) NUMBER1 , ReferenceType . type , STRING3 ) , \n FILLED_NEW_ARRAY ( ( byte ) NUMBER3 , STRING4 , ( byte ) NUMBER4 , ReferenceType . type , STRING5 ) , \n - FILLED_NEW_ARRAY_RANGE ( ( byte ) NUMBER5 , STRING6 , ( byte ) NUMBER4 , ReferenceType . type , STRING7 ) , \n + FILLED_NEW_ARRAY_RANGE ( ( byte ) NUMBER5 , STRING8 , ( byte ) NUMBER4 , ReferenceType . type , STRING7 ) , \n FILL_ARRAY_DATA ( ( byte ) NUMBER6 , STRING9 , ( byte ) NUMBER4 , ReferenceType . none , STRING10 ) , \n THROW ( ( byte ) NUMBER7 , STRING11 , ( byte ) NUMBER8 , ReferenceType . none , STRING12 ) , \n GOTO ( ( byte ) NUMBER9 , STRING13 , ( byte ) NUMBER8 , ReferenceType . none , STRING14 ) ,", "msg_token": "Fixed a typo in the enum value for the filled new array range opcode"} {"diff": " public class BitmapRetrieverTest { \n retriever . getBitmap ( ) ; \n \n SINGLE \n - verify ( cache , atLeastOnce ( ) ) . put ( STRING0 , null ) ; \n + verify ( cache , atLeastOnce ( ) ) . remove ( STRING0 ) ; \n verify ( file , atLeastOnce ( ) ) . delete ( ) ; \n \n }", "msg_token": "use new cachemanager API in bitmap retriever test"} {"diff": " public class WindowAnimator { \n + STRING0 + win . mWinAnimator . mAnimation ) ; \n } else if ( mPolicy . canBeForceHidden ( win , win . mAttrs ) ) { \n final boolean changed ; \n - if ( mForceHiding ) { \n + if ( mForceHiding && ! winAnimator . isAnimating ( ) ) { \n changed = win . hideLw ( false , false ) ; \n if ( WindowManagerService . DEBUG_VISIBILITY && changed ) Slog . v ( TAG , \n STRING1 + win ) ; \n public class WindowManagerService extends IWindowManager . Stub \n mWallpaperTarget = oldW ; \n foundW = oldW ; \n foundI = oldI ; \n - mLowerWallpaperTarget = null ; \n - mUpperWallpaperTarget = null ; \n } \n SINGLE \n SINGLE \n public class WindowManagerService extends IWindowManager . Stub \n set . addAnimation ( scale ) ; \n alpha . setDuration ( duration ) ; \n set . addAnimation ( alpha ) ; \n + set . setDetachWallpaper ( true ) ; \n a = set ; \n } else { \n a = createExitAnimationLocked ( transit , duration ) ;", "msg_token": "Do not hide animating window behind keyguard"} {"diff": " public abstract class AbstractClient implements Closeable { \n COMMENT \n public synchronized void disconnect ( ) { \n if ( mConnected ) { \n + Preconditions . checkNotNull ( mProtocol ) ; \n LOG . debug ( STRING0 , getServiceName ( ) , mMode , mAddress ) ; \n beforeDisconnect ( ) ; \n - if ( mProtocol != null ) { \n - mProtocol . getTransport ( ) . close ( ) ; \n - } \n + mProtocol . getTransport ( ) . close ( ) ; \n mConnected = false ; \n afterDisconnect ( ) ; \n }", "msg_token": "Do not mask invariant violations"} {"diff": " public class ChooseRunConfigurationAction extends AnAction { \n } \n \n SINGLE \n - final ItemWrapper wrapper = new ItemWrapper ( null ) { \n + final ItemWrapper wrapper = new ItemWrapper ( configuration ) { \n @ override \n public Icon getIcon ( ) { \n Icon result = IconLoader . getTransparentIcon ( ExecutionUtil . getConfigurationIcon ( project , configuration ) , FLOAT0 ) ;", "msg_token": "fix edit for context action"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CameraDevice implements android . hardware . camera2 . CameraDevice { \n } \n \n public void setRemoteDevice ( ICameraDeviceUser remoteDevice ) { \n - mRemoteDevice = remoteDevice ; \n + SINGLE \n + mRemoteDevice = CameraBinderDecorator . newInstance ( remoteDevice ) ; \n } \n \n @ override", "msg_token": "Convert camera device errors to exceptions"} {"diff": " public class ExternalToolPassFactory extends AbstractProjectComponent implements \n \n public ExternalToolPassFactory ( Project project , TextEditorHighlightingPassRegistrar highlightingPassRegistrar ) { \n super ( project ) ; \n - highlightingPassRegistrar . registerTextEditorHighlightingPass ( this , null , new int [ ] { Pass . LOCAL_INSPECTIONS } , true , Pass . EXTERNAL_TOOLS ) ; \n + highlightingPassRegistrar . registerTextEditorHighlightingPass ( this , new int [ ] { Pass . UPDATE_ALL , Pass . UPDATE_VISIBLE } , new int [ ] { Pass . LOCAL_INSPECTIONS } , true , Pass . EXTERNAL_TOOLS ) ; \n } \n \n @ nonnls", "msg_token": "run exteranl pass after general pass completion"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "optimize imports on the fly rules"} {"diff": " public class SUTime { \n \n @ override \n public Time offset ( Duration offset , int offsetFlags ) { \n - if ( ( offsetFlags | RELATIVE_OFFSET_INEXACT ) != NUMBER0 ) \n + if ( ( offsetFlags & RELATIVE_OFFSET_INEXACT ) != NUMBER0 ) { \n return new RelativeTime ( this , TemporalOp . OFFSET , offset ) ; \n - else return new RelativeTime ( this , TemporalOp . OFFSET_EXACT , offset ) ; \n + } else { \n + return new RelativeTime ( this , TemporalOp . OFFSET_EXACT , offset ) ; \n + } \n } \n \n @ override", "msg_token": "Fix apparent bug"} {"diff": " public class JsonPathTest { \n STRING0 + \n STRING1 ; \n \n + \n @ test \n public void getList ( ) throws Exception { \n final List < String > categories = new JsonPath ( JSON ) . get ( STRING2 ) ; \n public class XmlPathTest { \n \n private static final String ATTR_WITH_MINUS = STRING3 ; \n \n + private static final String XML_WITH_DOT_IN_NAME = STRING4 ; \n + \n @ test \n public void initializeUsingCtorAndGetList ( ) throws Exception { \n final NodeChildren categories = new XmlPath ( XML ) . get ( STRING5 ) ; \n public class XmlPathTest { \n \n assertThat ( name , equalTo ( STRING6 ) ) ; \n } \n + \n + @ test \n + public void canParseTagsWithDotIfUsingEscaping ( ) throws Exception { \n + final String message = from ( XML_WITH_DOT_IN_NAME ) . get ( STRING7 ) ; \n + \n + assertThat ( message , equalTo ( STRING8 ) ) ; \n + } \n }", "msg_token": "Added more tests"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT \n class DelegatingTaskDecorator implements Runnable { \n \n @ override \n public void run ( ) { \n - try { \n - executor . execute ( runnable ) ; \n - } catch ( Throwable t ) { \n - ExceptionUtil . sneakyThrow ( t ) ; \n - } \n + executor . execute ( runnable ) ; \n } \n \n + @ override \n + public String toString ( ) { \n + return STRING0 \n + + STRING1 + executor \n + + STRING2 + runnable \n + + STRING3 ; \n + } \n } \n public class SkipOnConcurrentExecutionDecorator implements Runnable { \n } \n } \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING4 \n + + STRING5 + isAlreadyRunning \n + + STRING2 + runnable \n + + STRING3 ; \n + } \n }", "msg_token": "Removed unnecessary catch clause"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class IIOPTimeoutTestCase { \n } catch ( Exception e ) { \n SINGLE \n Assert . assertEquals ( STRING0 , \n - java . lang . IllegalStateException . class , e . getClass ( ) ) ; \n + TransactionRolledbackException . class , e . getClass ( ) ) ; \n } \n \n Assert . assertEquals ( STRING1 , NUMBER0 , checker . countSynchronizedBegin ( ) ) ;", "msg_token": "IIOPTimeoutTestCase change expected exception"} {"diff": " public abstract class TileEngine extends TileBuildCraft implements IPowerRecepto \n \n if ( getEnergyStage ( ) == EnergyStage . OVERHEAT ) { \n worldObj . createExplosion ( null , xCoord , yCoord , zCoord , explosionRange ( ) , true ) ; \n + worldObj . setBlockToAir ( xCoord , yCoord , zCoord ) ; \n } \n \n if ( energy > getMaxEnergy ( ) ) {", "msg_token": "Exploding Engines should kill themselves"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IOResourceInspectionBase extends ResourceInspection { \n STRING0 + STRING1 + \n STRING0 + STRING2 + \n STRING0 + STRING3 ; \n - @ suppresswarnings ( { STRING4 } ) \n \n @ override \n @ notnull", "msg_token": "remove faulty annotation"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CompilePdfPreferencesPane extends PreferencesPane \n \n Label previwingOptionsLabel = new Label ( STRING0 ) ; \n previwingOptionsLabel . addStyleName ( baseRes . styles ( ) . headerLabel ( ) ) ; \n + previwingOptionsLabel . getElement ( ) . getStyle ( ) . setMarginTop ( NUMBER0 , Unit . PX ) ; \n nudgeRight ( previwingOptionsLabel ) ; \n add ( previwingOptionsLabel ) ;", "msg_token": "tweak spacing for pdf preview header"} {"diff": " implements ManagedService { \n service , interval ) ; \n upnpService . getControlPoint ( ) . execute ( callback ) ; \n } else { \n - logger . info ( STRING0 , device . getDisplayString ( ) ) ; \n + logger . debug ( STRING0 , device . getDisplayString ( ) ) ; \n } \n }", "msg_token": "reduced log level for discovered non Sonos devices"} {"diff": " public final class DBMaker { \n } \n \n \n - extendArgumentCheck ( ) ; \n - \n - \n Engine engine ; \n int lockingStrategy = NUMBER0 ; \n String lockingStrategyStr = props . getProperty ( Keys . lock , Keys . lock_readWrite ) ; \n public final class DBMaker { \n ( ( Store ) engine ) . init ( ) ; \n } \n \n - engine = extendWrapStore ( engine ) ; \n - \n \n if ( propsGetBool ( Keys . snapshots ) ) \n engine = extendSnapshotEngine ( engine , lockScale ) ; \n public final class DBMaker { \n } \n \n \n - protected void extendArgumentCheck ( ) { \n - } \n - \n - protected Engine extendWrapStore ( Engine engine ) { \n - return engine ; \n - } \n - \n - \n \n protected Engine extendWrapSnapshotEngine ( Engine engine ) { \n return engine ;", "msg_token": "remove unused methods"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix SimpleJdbcCall and SimpleJdbcInsert Javadoc"} {"diff": " public class TestWsWebSocketContainer extends TomcatBaseTest { \n private static final byte [ ] MESSAGE_BINARY_4K = new byte [ NUMBER0 ] ; \n \n private static final long TIMEOUT_MS = NUMBER1 * NUMBER2 ; \n + private static final long MARGIN = NUMBER3 ; \n \n static { \n StringBuilder sb = new StringBuilder ( NUMBER0 ) ; \n public class TestWsWebSocketContainer extends TomcatBaseTest { \n String msg = STRING0 + timeout + STRING1 ; \n \n SINGLE \n - Assert . assertTrue ( msg , timeout >= TIMEOUT_MS ) ; \n + Assert . assertTrue ( msg , timeout >= TIMEOUT_MS - MARGIN ) ; \n \n SINGLE \n - Assert . assertTrue ( msg , timeout < TIMEOUT_MS * NUMBER4 ) ; \n + Assert . assertTrue ( msg , timeout < TIMEOUT_MS * NUMBER4 ) ; \n \n if ( sr == null ) { \n Assert . fail ( ) ;", "msg_token": "Add a reasonable error margin to the test"} {"diff": " public class LayoutFragment extends Fragment { \n } \n \n @ override \n - public void onViewAttachedToWindow ( SimpleViewHolder holder ) { \n - super . onViewAttachedToWindow ( holder ) ; \n - } \n - \n - @ override \n - public void onViewDetachedFromWindow ( SimpleViewHolder holder ) { \n - super . onViewDetachedFromWindow ( holder ) ; \n - } \n - \n - @ override \n public int getItemCount ( ) { \n return mItems . size ( ) ; \n }", "msg_token": "sample Remove unused methods from SimpleAdapter"} {"diff": " public class Attributes implements Iterable < Attribute > , Cloneable { \n \n Attributes that = ( Attributes ) o ; \n \n - if ( attributes != null ? ! attributes . equals ( that . attributes ) : that . attributes != null ) return false ; \n - \n - return true ; \n + return ! ( attributes != null ? ! attributes . equals ( that . attributes ) : that . attributes != null ) ; \n } \n \n @ override", "msg_token": "Replaced the if test with a return test"} {"diff": " \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Removing a boilerplate copyright header"} {"diff": " public final class SupervisorPropery { \n supervisor , valueType , propertyName ) ; \n \n property . setName ( propertyName ) ; \n + property . setDisplayName ( propertyDescription ) ; \n property . setShortDescription ( propertyDescription ) ; \n \n return new SupervisorPropery ( property , propertyCategory ) ;", "msg_token": "Fix SupervisorProperty display name"} {"diff": " public abstract class StaticEntity extends BaseEntity { \n public float getInitialY ( ) { \n return this . mInitialY ; \n } \n + \n + public float getCenterX ( ) { \n + return this . mX + this . getWidth ( ) / NUMBER0 ; \n + } \n + \n + public float getCenterY ( ) { \n + return this . mY + this . getHeight ( ) / NUMBER0 ; \n + } \n + \n public float getOffsetX ( ) { \n return this . mOffsetX ; \n } \n public abstract class StaticEntity extends BaseEntity { \n \n public void setOffsetX ( final float pOffsetX ) { \n this . mOffsetX = pOffsetX ; \n + this . onPositionChanged ( ) ; \n } \n \n public void setOffsetY ( final float pOffsetY ) { \n this . mOffsetY = pOffsetY ; \n + this . onPositionChanged ( ) ; \n } \n \n public void setOffset ( final float pOffsetX , final float pOffsetY ) {", "msg_token": "Added getCenterX and getCenterY"} {"diff": " public class JSR310LocalDateTimeType extends AbstractJSR310DateTimeType < LocalDat \n @ override \n public LocalDateTime getValue ( ResultSet rs , int startIndex ) throws SQLException { \n Timestamp timestamp = rs . getTimestamp ( startIndex , utc ( ) ) ; \n - return timestamp != null ? LocalDateTime . from ( timestamp . toInstant ( ) ) : null ; \n + return timestamp != null ? timestamp . toLocalDateTime ( ) : null ; \n } \n \n @ override \n public class JSR310LocalTimeTypeTest extends AbstractJSR310DateTimeTypeTest < Loca \n EasyMock . verify ( resultSet ) ; \n \n assertNotNull ( result ) ; \n - assertTrue ( result . toSecondOfDay ( ) == NUMBER0 ) ; \n + assertTrue ( result . getSecond ( ) == NUMBER0 ) ; \n } \n }", "msg_token": "Fix DateTimeException using Instant"} {"diff": " public class StateIngame implements GameState { \n return ! CoreRegistry . get ( Config . class ) . getRendering ( ) . getDebug ( ) . isHudHidden ( ) ; \n } \n } ) ; \n - \n } \n \n @ override \n public class StateIngame implements GameState { \n CoreRegistry . clear ( ) ; \n BlockManager . getAir ( ) . setEntity ( EntityRef . NULL ) ; \n GameThread . clearWaitingProcesses ( ) ; \n - \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + nuiManager . getHUD ( ) . clearVisibleBinding ( ) ; \n } \n \n @ override \n public abstract class AbstractWidget implements UIWidget { \n this . visible = bind ; \n } \n \n + public void clearVisibleBinding ( ) { \n + this . visible = new DefaultBinding < > ( true ) ; \n + } \n + \n @ override \n public void onGainFocus ( ) { \n focused = true ;", "msg_token": "Reset the visibility binding properly when the in game state is left"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n public class RuleIndexMediumTest { \n \n @ classrule \n - public static ServerTester tester = new ServerTester ( ) \n - . setProperty ( IndexProperties . HTTP_PORT , STRING0 ) ; \n + public static ServerTester tester = new ServerTester ( ) ; \n \n RuleDao dao = tester . get ( RuleDao . class ) ; \n RuleIndex index = tester . get ( RuleIndex . class ) ;", "msg_token": "Remove hardcoded es http port"} {"diff": " public class Version { \n SINGLE \n \n \n - public static final boolean SNAPSHOT = false ; \n - public static final Version CURRENT = new Version ( NUMBER0 , SNAPSHOT , org . elasticsearch . Version . V_2_4_1 ) ; \n + public static final boolean SNAPSHOT = true ; \n + public static final Version CURRENT = new Version ( NUMBER1 , SNAPSHOT , org . elasticsearch . Version . V_2_4_1 ) ; \n \n static { \n SINGLE", "msg_token": "update snapshot version"} {"diff": " public final class ActivityThread { \n SINGLE \n int diff = activity . mCurrentConfig . diff ( newConfig ) ; \n if ( diff != NUMBER0 ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - if ( ( ~ activity . mActivityInfo . getRealConfigChanged ( ) & diff ) == NUMBER0 \n - || ! reportToActivity ) { \n - shouldChangeConfig = true ; \n - } \n + shouldChangeConfig = true ; \n } \n }", "msg_token": "Remove optimization to report config change"} {"diff": " public class PostgresTypeConverter extends AbstractTypeConverter { \n public NumberType getNumberType ( ) { \n return new NumberType ( STRING0 ) ; \n } \n + \n + @ override \n + public TinyIntType getTinyIntType ( ) { \n + return new TinyIntType ( STRING1 ) ; \n + } \n }", "msg_token": "mapped sql type TINYINT to SMALLINT for Postgres"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n public class InvalidRangeFormatException extends RuntimeException { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing license headers"} {"diff": " public class AssignReturnRouteMessageClass extends ZWaveCommandProcessor { \n logger . error ( STRING0 , nodeId ) ; \n zController . notifyEventListeners ( new ZWaveNetworkEvent ( ZWaveNetworkEvent . Type . AssignReturnRoute , nodeId , \n ZWaveNetworkEvent . State . Failure ) ) ; \n - incomingMessage . setTransActionCanceled ( true ) ; \n + incomingMessage . setTransactionCanceled ( true ) ; \n } \n \n return true ;", "msg_token": "Fix typo in function call name"} {"diff": " public class WebView extends AbsoluteLayout \n \n COMMENT \n protected void contentInvalidateAll ( ) { \n - mWebViewCore . sendMessage ( EventHub . CONTENT_INVALIDATE_ALL ) ; \n + if ( mWebViewCore != null && ! mBlockWebkitViewMessages ) { \n + mWebViewCore . sendMessage ( EventHub . CONTENT_INVALIDATE_ALL ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fix contentInvalidateAll NPE"} {"diff": " public class AnimationDrawable extends DrawableContainer implements Runnable , An \n mOneShot = orig . mOneShot ; \n } else { \n mDurations = new int [ getCapacity ( ) ] ; \n - mOneShot = true ; \n + mOneShot = false ; \n } \n }", "msg_token": "Fix default value of AnimationDrawable s one shot property"} {"diff": " public final class BluetoothServerSocket implements Closeable { \n COMMENT \n private Handler mHandler ; \n private int mMessage ; \n + private final int mChannel ; \n \n COMMENT \n COMMENT \n public final class BluetoothServerSocket implements Closeable { \n COMMENT \n COMMENT \n throws IOException { \n + mChannel = port ; \n mSocket = new BluetoothSocket ( type , - NUMBER0 , auth , encrypt , null , port , null ) ; \n } \n \n public final class BluetoothServerSocket implements Closeable { \n mHandler = handler ; \n mMessage = message ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getChannel ( ) { \n + return mChannel ; \n + } \n }", "msg_token": "Get server s listening channel"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class WebCoreThreadWatchdog implements Runnable { \n break ; \n \n case TIMED_OUT : \n + if ( ( mContext == null ) || ! ( mContext instanceof Activity ) ) return ; \n new AlertDialog . Builder ( mContext ) \n . setMessage ( com . android . internal . R . string . webpage_unresponsive ) \n . setPositiveButton ( com . android . internal . R . string . force_close ,", "msg_token": "Prevent dialog from invalid context"} {"diff": " public class StandardContext \n STRING0 \n ) , \n new MBeanNotificationInfo ( new String [ ] { \n - STRING1 } , \n + STRING2 } , \n Notification . class . getName ( ) , \n STRING3 \n ) ,", "msg_token": "Fix copy paste error"} {"diff": " public class SimpMessagingTemplateTests { \n \n @ test \n public void convertAndSendWithCustomHeader ( ) { \n - Map < String , Object > headers = Collections . singletonMap ( STRING0 , STRING1 ) ; \n + Map < String , Object > headers = Collections . < String , Object > singletonMap ( STRING0 , STRING1 ) ; \n this . messagingTemplate . convertAndSend ( STRING2 , STRING3 , headers ) ; \n \n List < Message < byte [ ] > > messages = this . messageChannel . getMessages ( ) ;", "msg_token": "Fix failing test"} {"diff": " public interface ArtifactCache extends AutoCloseable { \n BorrowablePath output ) ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Deleting unused commented out method from interface ArtifactCache"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n public class PyParameterInfoHandler implements ParameterInfoHandler < PyArgumentList , CallArgumentsMapping > { \n - private static final String NO_PARAMS_MSG = STRING0 ; \n + private static final String NO_PARAMS_MSG = STRING1 ; \n \n public boolean couldShowInLookup ( ) { \n return true ;", "msg_token": "provide reasonable view for functions without paramters"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Shell implements ConsoleInputHandler , \n { \n final InputEditorDisplay display = view_ . getInputEditorDisplay ( ) ; \n \n + SINGLE \n + final String previousInput = StringUtil . notNull ( display . getText ( ) ) ; \n + \n SINGLE \n Command finishSendToConsole = new Command ( ) { \n @ override \n public void execute ( ) \n { \n if ( event . shouldExecute ( ) ) \n + { \n processCommandEntry ( ) ; \n + if ( previousInput . length ( ) > NUMBER0 ) \n + display . setText ( previousInput ) ; \n + } \n \n if ( ! event . shouldExecute ( ) || event . shouldFocus ( ) ) \n {", "msg_token": "restore previous input after playing commands into the console"} {"diff": " public class EditorWindow implements EditorEx , UserDataHolderEx { \n myDelegate . setBackgroundColor ( color ) ; \n } \n \n - public void resetBackgourndColor ( ) { \n - myDelegate . resetBackgourndColor ( ) ; \n - } \n - \n public Color getBackroundColor ( ) { \n return myDelegate . getBackroundColor ( ) ; \n } \n public interface EditorEx extends Editor { \n \n void setBackgroundColor ( Color color ) ; \n \n - void resetBackgourndColor ( ) ; \n - \n Dimension getContentSize ( ) ; \n \n boolean isEmbeddedIntoDialogWrapper ( ) ; \n public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi \n myForcedBackground = color ; \n } \n \n - public void resetBackgourndColor ( ) { \n - myForcedBackground = null ; \n - } \n - \n public Color getForegroundColor ( ) { \n return myScheme . getDefaultForeground ( ) ; \n }", "msg_token": "remove unused method"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class IdeaJdk extends JavaDependentSdkType implements JavaSdkType { \n appendIdeaLibrary ( plugins + STRING0 , result , STRING1 , STRING2 ) ; \n appendIdeaLibrary ( plugins + STRING3 , result , STRING4 ) ; \n appendIdeaLibrary ( plugins + STRING5 , result , STRING6 ) ; \n + appendIdeaLibrary ( plugins + STRING7 , result , \n + STRING8 , STRING9 , STRING10 , STRING11 ) ; \n return VfsUtilCore . toVirtualFileArray ( result ) ; \n }", "msg_token": "add Spring API automatically"} {"diff": " public class TachyonConf { \n } \n \n String resolved = base ; \n - SINGLE \n + SINGLE \n + SINGLE \n Matcher matcher = CONF_REGEX . matcher ( base ) ; \n while ( matcher . find ( ) ) { \n String match = matcher . group ( NUMBER0 ) . trim ( ) ;", "msg_token": "Tagging TODOs in tachyon conf"} {"diff": " public class AtmosphereFramework { \n ex . getMessage ( ) ) ; \n } \n logger . error ( STRING0 + \n - STRING1 , BlockingIOCometSupport . class . getName ( ) ) ; \n - \n - logger . trace ( ex . getMessage ( ) , ex ) ; \n + STRING1 , BlockingIOCometSupport . class . getName ( ) , ex ) ; \n \n AsyncSupport current = asyncSupport ; \n asyncSupport = asyncSupport . supportWebSocket ( ) ? new Tomcat7BIOSupportWithWebSocket ( config ) : new BlockingIOCometSupport ( config ) ;", "msg_token": "Print the stack Trace so people stop being confused when Tomcat is misconfigured"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve Memento Javadoc"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DefaultServer extends BlockJUnit4ClassRunner { \n \n @ override \n protected Description describeChild ( FrameworkMethod method ) { \n - if ( runs > NUMBER0 ) { \n + if ( runs > NUMBER0 && method . getAnnotation ( Ignore . class ) == null ) { \n return describeRepeatTest ( method ) ; \n } \n return super . describeChild ( method ) ;", "msg_token": "Fix issue with Ignore and Dtest runs"} {"diff": " public class ListPopupWindow { \n private final ListSelectorHider mHideSelector = new ListSelectorHider ( ) ; \n private Runnable mShowDropDownRunnable ; \n \n - private Handler mHandler = new Handler ( ) ; \n + private final Handler mHandler ; \n \n private Rect mTempRect = new Rect ( ) ; \n \n public class ListPopupWindow { \n COMMENT \n public ListPopupWindow ( Context context , AttributeSet attrs , int defStyleAttr , int defStyleRes ) { \n mContext = context ; \n + mHandler = new Handler ( context . getMainLooper ( ) ) ; \n \n final TypedArray a = context . obtainStyledAttributes ( attrs , R . styleable . ListPopupWindow , \n defStyleAttr , defStyleRes ) ;", "msg_token": "Create ListPopupWindow handler against main looper"} {"diff": " public class ControlCommandsTest extends JedisCommandTestBase { \n String status = jedis . bgsave ( ) ; \n assertEquals ( STRING0 , status ) ; \n } catch ( JedisException e ) { \n - assertEquals ( STRING1 , e \n + assertEquals ( STRING2 , e \n . getMessage ( ) ) ; \n } \n }", "msg_token": "Fixed a typo in the test"} {"diff": " public class JsonHttpResponseHandler extends AsyncHttpResponseHandler { \n protected Object parseResponse ( String responseBody ) throws JSONException { \n return new JSONTokener ( responseBody ) . nextValue ( ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onFailure ( Throwable e , JSONObject errorResponse ) { } \n + public void onFailure ( Throwable e , JSONArray errorResponse ) { } \n + \n + @ override \n + protected void handleFailureMessage ( Throwable e , String responseBody ) { \n + super . handleFailureMessage ( e , responseBody ) ; \n + try { \n + Object jsonResponse = parseResponse ( responseBody ) ; \n + if ( jsonResponse instanceof JSONObject ) { \n + onFailure ( e , ( JSONObject ) jsonResponse ) ; \n + } else if ( jsonResponse instanceof JSONArray ) { \n + onFailure ( e , ( JSONArray ) jsonResponse ) ; \n + } \n + } catch ( JSONException ex ) { \n + onFailure ( e , responseBody ) ; \n + } \n + } \n }", "msg_token": "add JSON error content"} {"diff": " public class Application extends SpringBootServletInitializer { \n . apiProperty ( STRING0 , STRING1 ) \n . apiProperty ( STRING2 , STRING3 ) \n . apiContextRouteId ( STRING4 ) \n - . component ( STRING5 ) \n . bindingMode ( RestBindingMode . json ) ; \n \n rest ( STRING6 ) . description ( STRING7 )", "msg_token": "remove REST DSL component explicit config from the Spring Boot REST JPA example"} {"diff": " public class Constants { \n } \n \n public static enum AccountType { \n - LOCAL , LDAP , REDMINE , SALESFORCE , WINDOWS ; \n + LOCAL , EXTERNAL , LDAP , REDMINE , SALESFORCE , WINDOWS ; \n \n public boolean isLocal ( ) { \n return this == LOCAL ;", "msg_token": "Added External account type to enum"} {"diff": " public class BubbleTarget extends RelativeLayout { \n \n } \n \n + mSnapCircle . mY = Util . clamp ( NUMBER0 , mSnapCircle . mY , Config . mScreenHeight - mDefaultCircle . mRadius ) ; \n + \n mDefaultCircle . mX = mSnapCircle . mX ; \n mDefaultCircle . mY = mSnapCircle . mY ;", "msg_token": "Clamp bubble target positions"} {"diff": " public abstract class Rule { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n @ deprecated \n public boolean isSpellingRule ( ) { \n public class Tools { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static String getContext ( final int fromPos , final int toPos , final String text ) { \n return getContext ( fromPos , toPos , text , DEFAULT_CONTEXT_SIZE ) ; \n public class Tools { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static String getContext ( final int fromPos , final int toPos , final String fileContents , \n int contextSize ) { \n public class Tools { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public static String getContext ( final int fromPos , final int toPos , \n final String fileContents , final int contextSize ,", "msg_token": "add version information to the deprecated tag"} {"diff": " public class ArrayPredictionContext extends PredictionContext { \n \n @ override \n public boolean isEmpty ( ) { \n - return size ( ) == NUMBER0 && \n - returnStates [ NUMBER1 ] == EMPTY_RETURN_STATE ; \n + SINGLE \n + SINGLE \n + return returnStates [ NUMBER1 ] == EMPTY_RETURN_STATE ; \n } \n \n @ override", "msg_token": "Simplify ArrayPredictionContext isEmpty"} {"diff": " public class MemoryAwareThreadPoolExecutor extends ThreadPoolExecutor { \n COMMENT \n COMMENT \n protected boolean shouldCount ( Runnable task ) { \n - if ( task instanceof ChannelDownstreamEventRunnable ) { \n - return false ; \n - } \n - \n if ( task instanceof ChannelUpstreamEventRunnable ) { \n ChannelUpstreamEventRunnable r = ( ChannelUpstreamEventRunnable ) task ; \n ChannelEvent e = r . getEvent ( ) ;", "msg_token": "Reverting the previous commit which makes no sense"} {"diff": " public class LabelExpression { \n } \n \n public LabelExpression ( String labels ) { \n - labels = labels . replace ( STRING0 , STRING1 ) ; \n + if ( labels != null ) { \n + labels = labels . replace ( STRING0 , STRING1 ) ; \n + } \n parseLabelString ( labels ) ; \n originalString = labels ; \n }", "msg_token": "Fixed post merge test failure"} {"diff": " class AndroidResource implements Resource { \n } \n \n @ override \n - public String getClassName ( ) { \n - return path . substring ( path . lastIndexOf ( STRING0 ) ) ; \n + public String getClassName ( String extension ) { \n + return path . substring ( NUMBER0 , path . length ( ) - extension . length ( ) ) . replace ( STRING1 , STRING2 ) ; \n } \n \n @ override", "msg_token": "Fix build AndroidResource implements new Resource API"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FbDialog extends Dialog { \n } \n \n @ override \n + public void onReceivedSslError ( WebView view , SslErrorHandler handler , SslError error ) { \n + super . onReceivedSslError ( view , handler , error ) ; \n + \n + mListener . onError ( new DialogError ( null , ERROR_FAILED_SSL_HANDSHAKE , null ) ) ; \n + handler . cancel ( ) ; \n + FbDialog . this . dismiss ( ) ; \n + } \n + \n + @ override \n public void onPageStarted ( WebView view , String url , Bitmap favicon ) { \n Util . logd ( STRING0 , STRING1 + url ) ; \n super . onPageStarted ( view , url , favicon ) ;", "msg_token": "android sdk Handle SSL errors in FbDialog"} {"diff": " public class Location { \n mAccuracy = NUMBER0 ; \n } \n \n - \n private static void computeDistanceAndBearing ( double lat1 , double lon1 , \n double lat2 , double lon2 , float [ ] results ) { \n SINGLE \n SINGLE \n - \n + float osmandDist = ( float ) ( net . osmand . util . MapUtils . getDistance ( lat1 , lon1 , lat2 , lon2 ) ) ; \n int MAXITERS = NUMBER1 ; \n SINGLE \n lat1 *= Math . PI / FLOAT0 ; \n public class Location { \n results [ NUMBER2 ] = finalBearing ; \n } \n } \n - SINGLE \n - results [ NUMBER0 ] = ( float ) ( net . osmand . util . MapUtils . getDistance ( lat1 , lon1 , lat2 , lon2 ) ) ; \n + SINGLE \n + results [ NUMBER0 ] = osmandDist ; \n } \n \n COMMENT", "msg_token": "Fix issue with distance"} {"diff": " public class WktToGeoJsonConverter { \n } \n \n private static String extractCoordinateFromPoint ( String point ) { \n - String pointPattern = STRING0 ; \n + String pointPattern = STRING1 ; \n return point . replaceAll ( pointPattern , STRING2 ) ; \n }", "msg_token": "Added support to negative coordinates"} {"diff": " public final class AudioState implements Parcelable { \n public static final int ROUTE_ALL = ROUTE_EARPIECE | ROUTE_BLUETOOTH | ROUTE_WIRED_HEADSET | \n ROUTE_SPEAKER ; \n \n - COMMENT \n - @ deprecated public final boolean isMuted ; \n + COMMENT \n + @ systemapi public final boolean isMuted ; \n \n - COMMENT \n - @ deprecated public final int route ; \n + COMMENT \n + @ systemapi public final int route ; \n \n - COMMENT \n - @ deprecated public final int supportedRouteMask ; \n + COMMENT \n + @ systemapi public final int supportedRouteMask ; \n \n public AudioState ( boolean muted , int route , int supportedRouteMask ) { \n this . isMuted = muted ;", "msg_token": "Relax access on deprecated fields for compatibility"} {"diff": " public class SharedThreadLocalRandomInspectionBase extends BaseInspection { \n protected final MethodMatcher myMethodMatcher ; \n \n public SharedThreadLocalRandomInspectionBase ( ) { \n - myMethodMatcher = new MethodMatcher ( true , STRING0 ) \n + myMethodMatcher = new MethodMatcher ( false , STRING0 ) \n . add ( STRING1 , STRING2 ) \n - . add ( STRING3 , STRING4 ) ; \n + . add ( STRING3 , STRING4 ) \n + . finishDefault ( ) ; \n } \n \n @ nls", "msg_token": "do not write default values to settings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Expanding wildcard import"} {"diff": " \n SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n \n package NAMESPACE ; \n \n + COMMENT \n public class CommandResult extends BasicDBObject { \n \n - CommandResult ( ) { \n + CommandResult ( ) { \n } \n \n public boolean ok ( ) { \n public class CommandResult extends BasicDBObject { \n \n \n DBObject _cmd ; \n + private static final long serialVersionUID = NUMBER0 ; \n + \n + static class CommandFailure extends MongoException { \n + private static final long serialVersionUID = NUMBER0 ; \n \n - static class CommandFailure extends MongoException { \n - CommandFailure ( CommandResult res , String msg ) { \n + CommandFailure ( CommandResult res , String msg ) { \n super ( ServerError . getCode ( res ) , msg ) ; \n } \n }", "msg_token": "Added license and serialVersionUID"} {"diff": " public class DefaultTestHttpClient implements TestHttpClient { \n \n response = client . request ( uri , Duration . ofMinutes ( NUMBER0 ) , Action . join ( defaultRequestConfig , request , requestSpec - > { \n requestSpec . method ( method ) ; \n - if ( cookies . size ( ) > NUMBER1 ) { \n - requestSpec . getHeaders ( ) . add ( HttpHeaderConstants . COOKIE , ClientCookieEncoder . encode ( cookies ) ) ; \n - } \n \n + String encodedCookie = cookies . isEmpty ( ) ? STRING0 : ClientCookieEncoder . encode ( cookies ) ; \n + \n + requestSpec . getHeaders ( ) . add ( HttpHeaderConstants . COOKIE , encodedCookie ) ; \n requestSpec . getHeaders ( ) . add ( HttpHeaderConstants . HOST , HostAndPort . fromParts ( uri . getHost ( ) , uri . getPort ( ) ) . toString ( ) ) ; \n } ) ) ; \n } catch ( Throwable throwable ) {", "msg_token": "Preserve original behavior"} {"diff": " public class MoveBy extends AnimationAction { \n this . startY = target . y ; \n this . deltaX = x ; \n this . deltaY = y ; \n + this . x = target . x + x ; \n + this . y = target . y + y ; \n this . taken = NUMBER0 ; \n this . done = false ; \n }", "msg_token": "fixed Fixed a problem where the target position of the Actor was reset to the start after the animation"} {"diff": " public class TelecomLoaderService extends SystemService { \n \n private static final ComponentName SERVICE_COMPONENT = new ComponentName ( \n STRING0 , \n - STRING1 ) ; \n + STRING2 ) ; \n \n private static final String SERVICE_ACTION = STRING3 ;", "msg_token": "Changed package name of a Telecom service"} {"diff": " public class VoldemortConfig implements Serializable { \n \n private final long pusherPollMs ; \n \n - public VoldemortConfig ( ) { \n - this ( new Props ( ) ) ; \n - } \n - \n public VoldemortConfig ( Properties props ) { \n this ( new Props ( props ) ) ; \n }", "msg_token": "Remove broken constructor"} {"diff": " abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param \n \n COMMENT \n public P _parms ; \n - private P parms ; \n \n COMMENT \n COMMENT", "msg_token": "Remove unused private attribute"} {"diff": " public class DaemonStateCoordinator implements Stoppable , DaemonStateControl { \n } \n \n boolean isBusy ( ) { \n - return state == State . Running && currentCommandExecution != null ; \n + return ( state == State . Running || state == State . StopRequested ) && currentCommandExecution != null ; \n } \n }", "msg_token": "Fixing issue where multiple daemon stop requests result in an immediate stop"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Activity extends ContextThemeWrapper \n a . recycle ( ) ; \n if ( colorPrimary != NUMBER0 ) { \n ActivityManager . TaskDescription td = new ActivityManager . TaskDescription ( ) ; \n - td . setPrimaryColor ( colorPrimary ) ; \n - td . setBackgroundColor ( colorBg ) ; \n + if ( Color . alpha ( colorPrimary ) == NUMBER1 ) { \n + td . setPrimaryColor ( colorPrimary ) ; \n + } \n + if ( Color . alpha ( colorBg ) == NUMBER1 ) { \n + td . setBackgroundColor ( colorBg ) ; \n + } \n setTaskDescription ( td ) ; \n } \n }", "msg_token": "Only set the task description if the colors are opaque"} {"diff": " public class CCDeleteTaskWindow extends CCTaskWindowAction { \n private static final Logger LOG = Logger . getInstance ( CCDeleteTaskWindow . class ) ; \n \n public CCDeleteTaskWindow ( ) { \n - super ( STRING0 , STRING0 , null ) ; \n + super ( STRING1 , STRING1 , null ) ; \n } \n \n @ override \n import NAMESPACE ; \n public class CCShowTaskWindowDetails extends CCTaskWindowAction { \n \n public CCShowTaskWindowDetails ( ) { \n - super ( STRING2 , STRING3 , null ) ; \n + super ( STRING4 , STRING4 , null ) ; \n } \n \n @ override", "msg_token": "renamed task window"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add missing license header"} {"diff": " public final class DefaultBlockWorker extends AbstractWorker implements BlockWor \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n @ override", "msg_token": "Remove outdated javadoc"} {"diff": " public class ChannelOption < T > extends UniqueName { \n public static final ChannelOption < Boolean > TCP_NODELAY = valueOf ( STRING0 ) ; \n \n @ deprecated \n - public static final ChannelOption < Long > AIO_READ_TIMEOUT = valueOf ( STRING1 ) ; \n - @ deprecated \n - public static final ChannelOption < Long > AIO_WRITE_TIMEOUT = valueOf ( STRING2 ) ; \n - \n - @ deprecated \n public static final ChannelOption < Boolean > DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION = \n valueOf ( STRING3 ) ;", "msg_token": "Remove the irrelevant AIO channel options"} {"diff": " public class AuthenticatorActivity extends AccountAuthenticatorActivity \n public void onOkClick ( View view ) { \n String prefix = STRING0 ; \n String url = ( ( TextView ) findViewById ( R . id . host_URL ) ) . getText ( ) \n - . toString ( ) ; \n + . toString ( ) . trim ( ) ; \n if ( mIsSslConn ) { \n prefix = STRING1 ; \n } else { \n public class AuthenticatorActivity extends AccountAuthenticatorActivity \n mStatusText = mStatusIcon = NUMBER0 ; \n mStatusCorrect = false ; \n String t_url = ( ( TextView ) findViewById ( R . id . host_URL ) ) . getText ( ) \n - . toString ( ) . toLowerCase ( ) ; \n + . toString ( ) . trim ( ) . toLowerCase ( ) ; \n \n switch ( type ) { \n case OK_SSL :", "msg_token": "Added forgotten trim s on the content of the URL field"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ClassMappingNameConverter extends ResolvingConverter . StringConverte \n SuggestedNameInfo info = codeStyleManager . suggestVariableName ( VariableKind . LOCAL_VARIABLE , null , null , classType ) ; \n return Arrays . asList ( info . names ) ; \n } \n + \n + @ override \n + public PsiElement resolve ( String o , ConvertContext context ) { \n + DomElement parent = context . getInvocationElement ( ) . getParent ( ) ; \n + assert parent != null ; \n + return parent . getXmlElement ( ) ; \n + } \n } \n \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + @ retention ( RetentionPolicy . RUNTIME ) \n public @ interface MappingClass { \n }", "msg_token": "migrate to DOM and tag name completion"} {"diff": " public class FileBufferManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + private synchronized void setStateToWriting ( ) { \n + this . status = FileEntryStatus . WRITING ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class FileBufferManager { \n fbme = new FileBufferManagerEntry ( true , this . tmpDir ) ; \n this . dataSources . put ( sourceChannelID , fbme ) ; \n } \n + \n + fbme . setStateToWriting ( ) ; \n } \n \n return fbme . getFileChannelForWriting ( ) ;", "msg_token": "Fixed internal state of FileBufferManagerEntry"} {"diff": " public class GitBlit implements ServletContextListener { \n public void configureContext ( IStoredSettings settings , boolean startFederation ) { \n logger . info ( STRING0 + settings . toString ( ) ) ; \n this . settings = settings ; \n - \n + \n + repositoriesFolder = getRepositoriesFolder ( ) ; \n + logger . info ( STRING1 + repositoriesFolder . getAbsolutePath ( ) ) ; \n + \n SINGLE \n mailExecutor = new MailExecutor ( settings ) ; \n luceneExecutor = new LuceneExecutor ( settings , repositoriesFolder ) ; \n gcExecutor = new GCExecutor ( settings ) ; \n \n - repositoriesFolder = getRepositoriesFolder ( ) ; \n - logger . info ( STRING1 + repositoriesFolder . getAbsolutePath ( ) ) ; \n - \n SINGLE \n repositoryListSettingsChecksum . set ( getRepositoryListSettingsChecksum ( ) ) ;", "msg_token": "Fixed regression in setting up Lucene executor"} {"diff": " public class TextUtilsTest extends TestCase { \n Spannable s3 = new SpannableString ( s1 ) ; \n s3 . setSpan ( new StyleSpan ( NUMBER0 ) , NUMBER1 , NUMBER2 , Spannable . SPAN_EXCLUSIVE_EXCLUSIVE ) ; \n TextPaint p = new TextPaint ( ) ; \n + p . setFlags ( p . getFlags ( ) & ~ p . DEV_KERN_TEXT_FLAG ) ; \n \n for ( int i = NUMBER0 ; i < NUMBER3 ; i ++ ) { \n for ( int j = NUMBER0 ; j < NUMBER4 ; j ++ ) {", "msg_token": "Turn off kerning when testing TextUtils ellipsize"} {"diff": " public class SIPCommMenu \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public SelectedObject getSelected ( ) \n - { \n - return new SelectedObject ( getText ( ) , getIcon ( ) , getSelectedObject ( ) ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Remove previously added method"} {"diff": " public class UploadActivity extends SherlockFragmentActivity implements ServiceC \n \n mNewAlbumButton . setOnClickListener ( this ) ; \n \n - mAlbumAdapter = new ArrayAdapter < Album > ( this , android . R . layout . simple_spinner_dropdown_item , mAlbums ) ; \n + mAlbumAdapter = new ArrayAdapter < Album > ( this , android . R . layout . simple_spinner_item , mAlbums ) ; \n + mAlbumAdapter . setDropDownViewResource ( android . R . layout . simple_spinner_dropdown_item ) ; \n mAlbumSpinner . setAdapter ( mAlbumAdapter ) ; \n \n bindService ( new Intent ( this , PhotoUploadService . class ) , this , Context . BIND_AUTO_CREATE ) ;", "msg_token": "Fix Dropdown Style in Upload Activity"} {"diff": " \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Remove license header"} {"diff": " public class BatchNode extends Node implements Savable { \n List < Geometry > list = map . get ( g . getMaterial ( ) ) ; \n if ( list == null ) { \n SINGLE \n - for ( Material mat : map . keySet ( ) ) { \n - if ( g . getMaterial ( ) . isEqual ( mat ) ) { \n - list = map . get ( mat ) ; \n + for ( Map . Entry < Material , List < Geometry > > mat : map . entrySet ( ) ) { \n + if ( g . getMaterial ( ) . isEqual ( mat . getKey ( ) ) ) { \n + list = mat . getValue ( ) ; \n } \n } \n }", "msg_token": "optimize BatchNode a bit"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProviderConnection { \n } catch ( RuntimeException e ) { \n for ( Throwable t = e ; t != null ; t = t . getCause ( ) ) { \n SINGLE \n - if ( t instanceof UnsupportedOperationException ) { \n - throw new InternalUnsupportedModelException ( ) ; \n + if ( t instanceof UnknownModelException ) { \n + throw ( InternalUnsupportedModelException ) ( new InternalUnsupportedModelException ( ) . initCause ( t ) ) ; \n } \n } \n throw e ;", "msg_token": "Provider wraps unknown model exception in protocol wrapper"} {"diff": " public class MSSQLDatabase extends AbstractJdbcDatabase { \n systemTablesAndViews . add ( STRING0 ) ; \n systemTablesAndViews . add ( STRING1 ) ; \n systemTablesAndViews . add ( STRING2 ) ; \n + systemTablesAndViews . add ( STRING3 ) ; \n \n systemTablesAndViews . add ( STRING4 ) ; \n systemTablesAndViews . add ( STRING5 ) ;", "msg_token": "Added sysdiagrams to list of system tables views"} {"diff": " public class WorldEdit extends Plugin { \n commands . put ( STRING0 , STRING1 ) ; \n commands . put ( STRING2 , STRING3 ) ; \n commands . put ( STRING4 , STRING5 ) ; \n + commands . put ( STRING6 , STRING7 ) ; \n commands . put ( STRING8 , STRING9 ) ; \n commands . put ( STRING10 , STRING11 ) ; \n commands . put ( STRING12 , STRING13 ) ;", "msg_token": "Made clearclipboard function"} {"diff": " public final class UnsignedLongs { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static long parseUnsignedLong ( String s , int radix ) { \n checkNotNull ( s ) ;", "msg_token": "Document the NPE in UnsignedLongs parseUnsignedLong"} {"diff": " public class CasLoggerFactoryTests { \n \n private static final File LOG_FILE = new File ( STRING0 , STRING1 ) ; \n \n - private static final String ID1 = TicketGrantingTicket . PREFIX + STRING2 ; \n - private static final String ID2 = TicketGrantingTicket . PROXY_GRANTING_TICKET_PREFIX + STRING3 ; \n - private static final String ID3 = TicketGrantingTicket . PROXY_GRANTING_TICKET_IOU_PREFIX + STRING3 ; \n + private static final String ID1 = TicketGrantingTicket . PREFIX \n + + STRING2 ; \n + private static final String ID2 = TicketGrantingTicket . PROXY_GRANTING_TICKET_PREFIX \n + + STRING3 ; \n + private static final String ID3 = TicketGrantingTicket . PROXY_GRANTING_TICKET_IOU_PREFIX \n + + STRING3 ; \n private Logger logger ; \n \n @ beforeclass", "msg_token": "fixed cs issue"} {"diff": " public class PsiPackageImpl extends PsiPackageBase implements PsiPackage , Querya \n @ notnull \n @ override \n public PsiClass [ ] findClassByShortName ( @ notnull String name , @ notnull GlobalSearchScope scope ) { \n + if ( ! containsClassNamed ( name ) ) return PsiClass . EMPTY_ARRAY ; \n return getFacade ( ) . findClassByShortName ( name , this , scope ) ; \n }", "msg_token": "PsiPackageImpl findClassByShortName should check containsClassNamed before linearly traversing all the package files"} {"diff": " public class ShowAnnotationColorsAction extends ActionGroup { \n if ( enabled ) { \n myType . set ( ) ; \n } \n - else { \n - if ( myType == ColorMode . NONE ) { \n - ColorMode . ORDER . set ( ) ; \n - } \n - else { \n - ColorMode . NONE . set ( ) ; \n - } \n - } \n myGutter . revalidateMarkup ( ) ; \n } \n } \n public class ShowShortenNames extends ActionGroup { \n if ( enabled ) { \n myType . set ( ) ; \n } \n - else { \n - if ( myType == ShortNameType . NONE ) { \n - ShortNameType . LASTNAME . set ( ) ; \n - } \n - else { \n - ShortNameType . NONE . set ( ) ; \n - } \n - } \n myGutter . revalidateMarkup ( ) ; \n } \n }", "msg_token": "keep selection on untoggle"} {"diff": " public class RSConnectAccountWizard \n return pages ; \n } \n \n - public static final String SERVICE_NAME = STRING0 ; \n + public static final String SERVICE_NAME = STRING1 ; \n public static final String SERVICE_DESCRIPTION = \n - STRING2 + \n + STRING3 + \n STRING4 ; \n } \n public class PublishingPreferencesPane extends PreferencesPane \n missingPkgPanel . getElement ( ) . getStyle ( ) . setMarginBottom ( NUMBER0 , Unit . PX ) ; \n add ( missingPkgPanel ) ; \n \n - final CheckBox chkEnableRSConnect = checkboxPref ( STRING5 , \n + final CheckBox chkEnableRSConnect = checkboxPref ( STRING6 , \n uiPrefs_ . enableRStudioConnect ( ) ) ; \n final HorizontalPanel rsconnectPanel = checkBoxWithHelp ( chkEnableRSConnect , \n STRING7 ) ;", "msg_token": "remove beta designantion from rstudio connect label title"} {"diff": " public final class RequestProcessor implements IRequestProcessor { \n \n BugLog . getInstance ( ) . assertNotNull ( requests ) ; \n \n - final ProcessRequestsHelper helper = ( myTimeout == - NUMBER0 ) ? \n - new DirectProcessRequestHelper ( ) : new TimedOutProcessRequestHelper ( ) ; \n + COMMENT \n + COMMENT \n + final ProcessRequestsHelper helper = new DirectProcessRequestHelper ( ) ; \n return helper . processRequests ( requests , connectionStreams , communicationProgressHandler ) ; \n }", "msg_token": "after import with checkout files have incorrect statuses"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SearchLookup { \n sourceLookup . setNextDocId ( docId ) ; \n fieldsLookup . setNextDocId ( docId ) ; \n } \n + \n + SINGLE \n + SINGLE \n + public void setNextReader ( IndexReader reader ) { \n + if ( AtomicReader . class . isInstance ( reader ) ) { \n + throw new ElasticSearchIllegalArgumentException ( STRING0 + reader . getClass ( ) ) ; \n + } \n + AtomicReaderContext context = ( AtomicReaderContext ) reader . getContext ( ) ; \n + setNextReader ( context ) ; \n + } \n }", "msg_token": "added overloaded method"} {"diff": " public class TestDiscoveryExtension extends RunConfigurationExtension { \n if ( ( root == null || root . getHandler ( ) == handler ) ) { \n final String fullTestName = test . getLocationUrl ( ) ; \n if ( fullTestName != null && fullTestName . startsWith ( JavaTestLocator . TEST_PROTOCOL ) ) { \n - myCompletedMethodNames . add ( fullTestName . substring ( JavaTestLocator . TEST_PROTOCOL . length ( ) + NUMBER0 ) ) ; \n + myCompletedMethodNames . add ( ( ( TestDiscoveryConfiguration ) configuration ) . getFrameworkPrefix ( ) + fullTestName . substring ( JavaTestLocator . TEST_PROTOCOL . length ( ) + NUMBER0 ) ) ; \n if ( myCompletedMethodNames . size ( ) > NUMBER1 ) { \n final String [ ] fullTestNames = ArrayUtil . toStringArray ( myCompletedMethodNames ) ; \n myCompletedMethodNames . clear ( ) ;", "msg_token": "fix predicted test names"} {"diff": " import NAMESPACE ; \n public @ interface Unroll { \n SINGLE \n SINGLE \n - String value ( ) default STRING0 ; \n + String value ( ) default STRING1 ; \n }", "msg_token": "undid accidental change that wasn t supposed to be committed yet"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ActionNamesBackwardsCompatibilityTest extends ElasticsearchBackward \n actionsVersions . put ( BenchmarkAction . NAME , Version . V_1_4_0 ) ; \n actionsVersions . put ( BenchmarkStatusAction . NAME , Version . V_1_4_0 ) ; \n actionsVersions . put ( AbortBenchmarkAction . NAME , Version . V_1_4_0 ) ; \n + actionsVersions . put ( GetIndexAction . NAME , Version . V_1_4_0 ) ; \n \n actionsVersions . put ( ExistsAction . NAME , Version . V_1_4_0 ) ; \n actionsVersions . put ( ExistsAction . NAME + STRING0 , Version . V_1_4_0 ) ;", "msg_token": "TEST added exception for GET index API to bwc tests"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CamelPostProcessorHelper implements CamelContextAware { \n String key ; \n String prefix = getCamelContext ( ) . getPropertyPrefixToken ( ) ; \n String suffix = getCamelContext ( ) . getPropertySuffixToken ( ) ; \n - if ( ! propertyName . contains ( prefix ) ) { \n + \n + if ( prefix == null && suffix == null ) { \n + SINGLE \n + prefix = PropertiesComponent . DEFAULT_PREFIX_TOKEN ; \n + suffix = PropertiesComponent . DEFAULT_SUFFIX_TOKEN ; \n + } \n + \n + if ( ! propertyName . startsWith ( prefix ) ) { \n SINGLE \n key = prefix + propertyName + suffix ; \n } else {", "msg_token": "Avoid potential NPE when using PropertyInject with Camel main"} {"diff": " public class Squeezebox { \n } \n \n SINGLE \n - SINGLE \n + squeezeServer . clearPlaylist ( playerId ) ; \n \n SINGLE \n if ( volume != - NUMBER0 ) {", "msg_token": "added language parameter for action squeezeboxSpeak"} {"diff": " public class TypeCheck implements NodeTraversal . Callback , CompilerPass { \n \n \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - static final DiagnosticType BAD_DELETE = \n - DiagnosticType . warning ( \n - STRING0 , \n - STRING1 ) ; \n - \n - \n - SINGLE \n SINGLE \n SINGLE", "msg_token": "Delete an unused compiler warning definition"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class Log4j2Impl implements Log { \n \n private Logger log ;", "msg_token": "add license info"} {"diff": " public class TypeElement extends Element { \n myType = type ; \n } \n \n - public Type getMyType ( ) { \n + public Type getType ( ) { \n return myType ; \n } \n \n public class ExpressionVisitor extends StatementVisitor { \n \n \n TypeElement typeElement = ( TypeElement ) getConverter ( ) . elementToElement ( expression . getOperand ( ) ) ; \n - typeElement . getMyType ( ) . convertedToNotNull ( ) ; \n + typeElement . getType ( ) . convertedToNotNull ( ) ; \n myResult = new ClassObjectAccessExpression ( typeElement ) ; \n } \n \n public class ExpressionVisitor extends StatementVisitor { \n super . visitInstanceOfExpression ( expression ) ; \n \n TypeElement typeElement = ( TypeElement ) getConverter ( ) . elementToElement ( expression . getCheckType ( ) ) ; \n - typeElement . getMyType ( ) . convertedToNotNull ( ) ; \n + typeElement . getType ( ) . convertedToNotNull ( ) ; \n myResult = new IsOperator ( getConverter ( ) . expressionToExpression ( expression . getOperand ( ) ) , typeElement ) ; \n }", "msg_token": "Rename getMyType method"} {"diff": " public class StandardContext \n \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n private HashMap < String , String > taglibs = new HashMap < String , String > ( ) ;", "msg_token": "Make clear this isn t the complete list if tag libraries for the app"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class BaseFilterLexerUtil { \n return data ; \n } \n \n - final boolean needTodo = content . getFile ( ) . getFileSystem ( ) . getProtocol ( ) . equals ( StandardFileSystems . FILE_PROTOCOL ) ; \n + final boolean needTodo = content . getFile ( ) . isInLocalFileSystem ( ) ; SINGLE \n final boolean needIdIndex = IdTableBuilding . getFileTypeIndexer ( content . getFileType ( ) ) instanceof LexerBasedIdIndexer ; \n \n final IdDataConsumer consumer = needIdIndex ? new IdDataConsumer ( ) : null ;", "msg_token": "build todo data flag should have the same value as todoindex isAcceptable"} {"diff": " public class LiveTemplateCompletionContributor extends CompletionContributor { \n final TemplateImpl template = findApplicableTemplate ( file , offset , prefix ) ; \n if ( template != null ) { \n result . addElement ( new LiveTemplateLookupElement ( template ) ) ; \n - } else { \n - for ( final TemplateImpl possible : listApplicableTemplates ( file , offset ) ) { \n - result . restartCompletionOnPrefixChange ( possible . getKey ( ) ) ; \n - } \n + } \n + for ( final TemplateImpl possible : listApplicableTemplates ( file , offset ) ) { \n + result . restartCompletionOnPrefixChange ( possible . getKey ( ) ) ; \n } \n \n }", "msg_token": "restart completion when a live template name is entered also when another live template with shorter name was already suggested"} {"diff": " class AvailableContribution extends Contribution { \n url = params . get ( STRING0 ) ; \n sentence = params . get ( STRING1 ) ; \n paragraph = params . get ( STRING2 ) ; \n - version = PApplet . parseInt ( params . get ( STRING3 ) , NUMBER0 ) ; \n + String versionStr = params . get ( STRING3 ) ; \n + if ( versionStr != null ) { \n + version = PApplet . parseInt ( versionStr , NUMBER0 ) ; \n + } \n prettyVersion = params . get ( STRING4 ) ; \n }", "msg_token": "add more error handling"} {"diff": " public class WsInputStream extends java . io . InputStream { \n \n SINGLE \n \n + SINGLE \n + \n int i = processor . read ( ) ; \n this . wsFrameHeader = new WsFrameHeader ( i ) ;", "msg_token": "Restore a TODO"} {"diff": " public class JibriIq \n PENDING ( STRING0 ) , \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + RETRYING ( STRING1 ) , \n + \n + COMMENT \n COMMENT \n COMMENT \n FAILED ( STRING2 ) ,", "msg_token": "Add RETRYING status to Jibri"} {"diff": " public class ShadowPopupWindow { \n showAsDropDown ( anchor ) ; \n } \n \n + @ implementation \n + public void showAtLocation ( View parent , int gravity , int x , int y ) { \n + showAsDropDown ( parent ) ; \n + } \n + \n public boolean dispatchTouchEvent ( MotionEvent e ) { \n return onTouchInterceptor != null && onTouchInterceptor . onTouch ( realPopupWindow . getContentView ( ) , e ) ; \n }", "msg_token": "Implement ShadowPopupWindow showAtLocation"} {"diff": " public class PSqlStatement extends BaseObject implements Iterator { \n resultSet = statement . executeQuery ( ) ; \n \n if ( resultSet != null ) { \n - resultSet . next ( ) ; \n + valid = resultSet . next ( ) ; \n + } else { \n + valid = false ; \n } \n } catch ( SQLException e ) { \n throw new WrapSqlException ( env , e ) ;", "msg_token": "Fix sql statement iterator bug in sql ext"} {"diff": " public class Allocation extends BaseObj { \n return mUsage ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public int getSizeBytes ( ) { \n + return mType . getCount ( ) * mType . getElement ( ) . getSizeBytes ( ) ; \n + } \n + \n private void updateCacheInfo ( Type t ) { \n mCurrentDimX = t . getX ( ) ; \n mCurrentDimY = t . getY ( ) ; \n public class Allocation extends BaseObj { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Allocation extends BaseObj { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add getSizeBytes and cleanup docs"} {"diff": " public class HttpParser \n case CLOSED : \n case END : \n break ; \n + \n + case EOF_CONTENT : \n + _handler . messageComplete ( ) ; \n + break ; \n + \n default: \n - LOG . warn ( STRING0 , this ) ; \n + if ( _state . ordinal ( ) > State . END . ordinal ( ) ) \n + _handler . earlyEOF ( ) ; \n + else \n + LOG . warn ( STRING0 , this ) ; \n } \n setState ( State . CLOSED ) ; \n _endOfContent = EndOfContent . UNKNOWN_CONTENT ;", "msg_token": "fixed close handling during content"} {"diff": " public class LoaderCursorSupport extends SherlockFragmentActivity { \n MenuItem item = menu . add ( STRING0 ) ; \n item . setIcon ( android . R . drawable . ic_menu_search ) ; \n item . setShowAsAction ( MenuItem . SHOW_AS_ACTION_ALWAYS ) ; \n - View searchView = SearchViewCompat . newSearchView ( getActivity ( ) ) ; \n + SherlockFragmentActivity activity = ( SherlockFragmentActivity ) getActivity ( ) ; \n + View searchView = SearchViewCompat . newSearchView ( activity . getSupportActionBar ( ) . getThemedContext ( ) ) ; \n if ( searchView != null ) { \n SearchViewCompat . setOnQueryTextListener ( searchView , \n new OnQueryTextListenerCompat ( ) {", "msg_token": "Use action bar themed context"} {"diff": " enum ConvenientModeEnum { \n } \n \n enum DirectionEnum { \n - Auto ( NUMBER0 ) , SwingUD ( NUMBER1 ) , Rotation ( NUMBER2 ) , Fixed ( NUMBER3 ) ; \n + Auto ( NUMBER0 ) , SwingUD ( NUMBER1 ) , Rotation ( NUMBER2 ) , Fixed ( NUMBER3 ) , SwingLR ( NUMBER4 ) ; \n int value ; \n \n private DirectionEnum ( int number ) {", "msg_token": "Add new command SwingLR"} {"diff": " public class Tomcat7CometSupport extends AsynchronousProcessor { \n } \n \n private void bz51881 ( CometEvent event ) throws IOException { \n - String [ ] tomcatVersion = config . getServletContext ( ) . getServerInfo ( ) . substring ( NUMBER0 ) . split ( STRING0 ) ; \n try { \n + String [ ] tomcatVersion = config . getServletContext ( ) . getServerInfo ( ) . substring ( NUMBER0 ) . split ( STRING0 ) ; \n String minorVersion = tomcatVersion [ NUMBER1 ] ; \n if ( minorVersion . indexOf ( STRING1 ) != - NUMBER2 ) { \n minorVersion = minorVersion . substring ( NUMBER3 , minorVersion . indexOf ( STRING1 ) ) ;", "msg_token": "Catch possible Tomcat version change"} {"diff": " public class ORuntimeKeyIndexDefinition < T > extends ODocumentWrapperNoClass imple \n protected void fromStream ( ) { \n final byte keySerializerId = ( ( Number ) document . field ( STRING0 ) ) . byteValue ( ) ; \n serializer = ( OBinarySerializer < T > ) OBinarySerializerFactory . INSTANCE . getObjectSerializer ( keySerializerId ) ; \n + if ( serializer == null ) \n + throw new OConfigurationException ( STRING1 + keySerializerId \n + + STRING2 ) ; \n } \n \n public Object getDocumentValueToIndex ( final ODocument iDocument ) {", "msg_token": "returned an exception in case the custom serializer is not present on unmarshalling of index definition"} {"diff": " public final class ImageLoaderConfiguration { \n final int httpReadTimeout ; \n final int threadPoolSize ; \n final int threadPriority ; \n - final boolean allowCacheImageMultipleSizesInMemory ; \n final MemoryCacheable < String , Bitmap > memoryCache ; \n final DiscCache discCache ; \n final DisplayImageOptions defaultDisplayImageOptions ; \n public final class ImageLoaderConfiguration { \n httpReadTimeout = builder . httpReadTimeout ; \n threadPoolSize = builder . threadPoolSize ; \n threadPriority = builder . threadPriority ; \n - allowCacheImageMultipleSizesInMemory = builder . allowCacheImageMultipleSizesInMemory ; \n discCache = builder . discCache ; \n memoryCache = builder . memoryCache ; \n defaultDisplayImageOptions = builder . defaultDisplayImageOptions ;", "msg_token": "Remove unused field"} {"diff": " public class LocationManagerService extends ILocationManager . Stub { \n for ( UpdateRecord record : records ) { \n if ( isCurrentProfile ( UserHandle . getUserId ( record . mReceiver . mUid ) ) ) { \n LocationRequest locationRequest = record . mRequest ; \n + \n + SINGLE \n + SINGLE \n + if ( ! providerRequest . locationRequests . contains ( locationRequest ) ) { \n + continue ; \n + } \n + \n if ( locationRequest . getInterval ( ) <= thresholdInterval ) { \n if ( record . mReceiver . mWorkSource != null \n && record . mReceiver . mWorkSource . size ( ) > NUMBER0", "msg_token": "Blame only location observers that actually receive updates"} {"diff": " public final class HazelcastCacheProvider implements CacheProvider { \n this . instance = instance ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n public Cache buildCache ( final String name , final Properties properties ) throws CacheException { \n return new HazelcastCache ( instance , name , properties ) ; \n }", "msg_token": "hibernate cache javadoc fix"} {"diff": " public class CameraUtil { \n \n @ targetapi ( Build . VERSION_CODES . LOLLIPOP ) \n public static boolean hasCamera2 ( Context context ) { \n - if ( context != null ) return false ; SINGLE \n if ( Build . VERSION . SDK_INT < Build . VERSION_CODES . LOLLIPOP ) return false ; \n try { \n CameraManager manager = ( CameraManager ) context . getSystemService ( Context . CAMERA_SERVICE ) ;", "msg_token": "Removed test code"} {"diff": " public class Material implements CloneableSmartAsset , Cloneable , Savable { \n } \n ColorRGBA color = l . getColor ( ) ; \n SINGLE \n - lightData . setVector4InArray ( color . getRed ( ) , \n - color . getGreen ( ) , \n - color . getBlue ( ) , \n - l . getType ( ) . getId ( ) , \n - lightDataIndex ) ; \n - lightDataIndex ++ ; \n + \n + if ( l . getType ( ) != Light . Type . Probe ) { \n + lightData . setVector4InArray ( color . getRed ( ) , \n + color . getGreen ( ) , \n + color . getBlue ( ) , \n + l . getType ( ) . getId ( ) , \n + lightDataIndex ) ; \n + lightDataIndex ++ ; \n + } \n \n switch ( l . getType ( ) ) { \n case Directional :", "msg_token": "Fixed an issue in material when having classic lights along with a LightProbe"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove unused imports that may cause the build to fail"} {"diff": " public abstract class WrapperManager < T extends ActionWrapper > { \n return set ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public < R extends T > void register ( String name , R actionWrapper ) { \n - madvocContextInjector . injectMadvocContext ( actionWrapper ) ; \n - madvocContextInjector . injectMadvocParams ( actionWrapper ) ; \n - \n - wrappers . put ( name , actionWrapper ) ; \n - } \n \n COMMENT \n COMMENT", "msg_token": "Removed register method"} {"diff": " public abstract class Visibility extends Transition { \n DisappearListener disappearListener = new DisappearListener ( viewToKeep , \n finalVisibility , isForcedVisibility ) ; \n animator . addListener ( disappearListener ) ; \n + animator . addPauseListener ( disappearListener ) ; \n addListener ( disappearListener ) ; \n } else if ( ! isForcedVisibility ) { \n viewToKeep . setTransitionVisibility ( originalVisibility ) ;", "msg_token": "Add missing addPauseListener"} {"diff": " \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n public class PersonList { \n \n \n - package NAMESPACE ; \n + package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix package names in sample for EclipseIntegrationTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class FileMenuFilter { \n if ( mComponentsGetter != null && mFile != null && mAccount != null ) { \n FileDownloaderBinder downloaderBinder = mComponentsGetter . getFileDownloaderBinder ( ) ; \n downloading = downloaderBinder != null && downloaderBinder . isDownloading ( mAccount , mFile ) ; \n + OperationsServiceBinder opsBinder = mComponentsGetter . getOperationsServiceBinder ( ) ; \n + downloading |= ( opsBinder != null && opsBinder . isSynchronizing ( mAccount , mFile . getRemotePath ( ) ) ) ; \n FileUploaderBinder uploaderBinder = mComponentsGetter . getFileUploaderBinder ( ) ; \n uploading = uploaderBinder != null && uploaderBinder . isUploading ( mAccount , mFile ) ; \n }", "msg_token": "Allow cancelling download of folders as soon as the SynchronizeFolderOperation is in the OperationsService"} {"diff": " class RobotiumUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n \n public boolean isCheckBoxChecked ( int index ) \n public class Solo { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for isCheckBoxChecked in Solo and RobotiumUtils"} {"diff": " public class NewRMarkdownDialog extends ModalDialog < NewRMarkdownDialog . Result > \n @ override \n protected boolean validate ( Result input ) \n { \n - return true ; \n + SINGLE \n + SINGLE \n + if ( input . isNewDocument ( ) || \n + input . getFromTemplate ( ) . getTemplatePath ( ) != null ) \n + return true ; \n + return false ; \n } \n \n @ override", "msg_token": "don t accept input if user hasn t chosen a template"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ConnectedComponents { \n \n + private ConnectedComponents ( ) { } \n + \n private static final < T extends Comparable < T > > void visit ( Map < Vertex < T > , Integer > map , List < List < Vertex < T > > > list , Vertex < T > v , int c ) { \n map . put ( v , c ) ;", "msg_token": "Made the connected components constructor private"} {"diff": " public abstract class LinkColumn < T > extends Column < T , String > \n Element . as ( evTarget ) . getClassName ( ) . startsWith ( \n RESOURCES . styles ( ) . link ( ) ) ) \n { \n - onClicked . execute ( \n - dataProvider . getList ( ) . get ( context . getIndex ( ) ) ) ; \n + int idx = context . getIndex ( ) ; \n + if ( idx >= NUMBER0 && idx < dataProvider . getList ( ) . size ( ) ) \n + onClicked . execute ( dataProvider . getList ( ) . get ( idx ) ) ; \n } \n } \n }", "msg_token": "check bounds in LinkColumn click events"} {"diff": " public class DataExporterCSV extends StreamExporterAbstract { \n SINGLE \n final boolean hasQuotes = useQuotes && value . indexOf ( quoteChar ) != - NUMBER0 ; \n if ( ! quote && ! value . isEmpty ( ) ) { \n - if ( hasQuotes || value . indexOf ( delimiter ) != - NUMBER0 || value . contains ( rowDelimiter ) ) { \n + if ( hasQuotes || \n + value . indexOf ( delimiter ) != - NUMBER0 || \n + value . indexOf ( STRING0 ) != - NUMBER0 || \n + value . indexOf ( STRING1 ) != - NUMBER0 || \n + value . contains ( rowDelimiter ) ) \n + { \n quote = true ; \n } \n }", "msg_token": "CSV quoting fix explicit check for r and n"} {"diff": " public abstract class IntroduceVariableBase extends IntroduceHandlerBase impleme \n text = stripped ; \n } \n \n + if ( literalExpression != null && text . equals ( literalExpression . getText ( ) ) ) return literalExpression ; \n + \n final PsiElement parent = literalExpression != null ? literalExpression : elementAt ; \n tempExpr = elementFactory . createExpressionFromText ( text , parent ) ;", "msg_token": "extend selection to literal quotes"} {"diff": " public class Environment implements Runnable , IOReadableWritable { \n \n if ( this . executingThread == null ) { \n if ( this . taskName == null ) { \n - this . executingThread = new Thread ( this , this . taskName ) ; \n - } else { \n this . executingThread = new Thread ( this ) ; \n + } else { \n + this . executingThread = new Thread ( this , this . taskName ) ; \n } \n }", "msg_token": "Fixed possible NullPointerException in Environment"} {"diff": " public class ExifInterface { \n } \n \n SINGLE \n - getJpegAttributes ( in ) ; \n + try { \n + getJpegAttributes ( in ) ; \n + } catch ( IOException e ) { \n + SINGLE \n + SINGLE \n + Log . w ( TAG , STRING0 , e ) ; \n + } \n \n if ( DEBUG ) { \n printAttributes ( ) ;", "msg_token": "ignore exceptions when getting wrong images"} {"diff": " public class RexsterTokens { \n public static final String LONG = STRING0 ; \n \n public static final String ACCEPT = STRING1 ; \n - public static final String APPLICATION_REXSTER_TYPED_JSON = STRING2 ; \n + public static final String APPLICATION_REXSTER_TYPED_JSON = STRING3 ; \n \n }", "msg_token": "Fixed typo in Rexster mime type"} {"diff": " import NAMESPACE ; \n COMMENT \n public class BaseBulletTest extends BulletTest { \n SINGLE \n - private final static String customDesktopLib = STRING0 ; \n + private final static String customDesktopLib = null ; SINGLE \n \n private static boolean initialized = false ; \n private static void init ( ) {", "msg_token": "Disable my debug dll"} {"diff": " public class DelayedActionSystem implements UpdateSubscriberSystem { \n \n for ( DelayedOperation delayedOperation : operationsToInvoke ) { \n if ( delayedOperation . entityRef . exists ( ) ) { \n + delayedOperation . entityRef . removeComponent ( DelayedActionComponent . class ) ; \n delayedOperation . entityRef . send ( new DelayedActionTriggeredEvent ( delayedOperation . operationId ) ) ; \n } \n }", "msg_token": "Removing the DelayActionComponent when the delayed action is triggered"} {"diff": " public class GPUImageView extends FrameLayout { \n return bitmap ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onPause ( ) { \n + mGLSurfaceView . onPause ( ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onResume ( ) { \n + mGLSurfaceView . onResume ( ) ; \n + } \n + \n public static class Size { \n int width ; \n int height ;", "msg_token": "Add onPause and onResume methods to pause resume GLSurfaceView"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SettingsFragment extends PreferenceFragment implements SharedPrefer \n if ( defaultBrowserIcon != null ) { \n preference . setIcon ( defaultBrowserIcon ) ; \n defaultAppsPreference . setIcon ( defaultBrowserIcon ) ; \n + \n + SINGLE \n + Dialog dialog = defaultAppsPreference . getDialog ( ) ; \n + if ( dialog != null ) { \n + dialog . setOnDismissListener ( new DialogInterface . OnDismissListener ( ) { \n + @ override \n + public void onDismiss ( DialogInterface dialog ) { \n + getActivity ( ) . finish ( ) ; \n + } \n + } ) ; \n + } \n } \n } \n } ) ;", "msg_token": "Add brutal hack to prevent stale icon displaying on Settings"} {"diff": " public class FindInFilesDialog extends ModalDialog < FindInFilesDialog . Result > \n return mainWidget_ ; \n } \n \n + @ override \n + protected void onDialogShown ( ) \n + { \n + super . onDialogShown ( ) ; \n + \n + txtSearchPattern_ . setFocus ( true ) ; \n + } \n + \n @ uifield \n TextBox txtSearchPattern_ ; \n @ uifield \n public class FindOutputTab extends DelayLoadWorkbenchTab < FindOutputPresenter > \n Commands commands , \n final Session session ) \n { \n - super ( STRING0 , shim ) ; \n + super ( STRING1 , shim ) ; \n shim_ = shim ; \n \n if ( ! session . getSessionInfo ( ) . isFindInFilesEnabled ( ) )", "msg_token": "Correct find dialog focus tab name"} {"diff": " public class MessageCompose extends K9Activity implements OnClickListener , OnFoc \n if ( k9identity . containsKey ( IdentityField . ORIGINAL_MESSAGE ) ) { \n mMessageReference = null ; \n try { \n - mMessageReference = new MessageReference ( k9identity . get ( IdentityField . ORIGINAL_MESSAGE ) ) ; \n + String originalMessage = k9identity . get ( IdentityField . ORIGINAL_MESSAGE ) ; \n + MessageReference messageReference = new MessageReference ( originalMessage ) ; \n + \n + SINGLE \n + Preferences prefs = Preferences . getPreferences ( getApplicationContext ( ) ) ; \n + Account account = prefs . getAccount ( messageReference . accountUuid ) ; \n + if ( account != null ) { \n + mMessageReference = messageReference ; \n + } \n } catch ( MessagingException e ) { \n Log . e ( K9 . LOG_TAG , STRING0 , e ) ; \n }", "msg_token": "Validate original message field of identity header when loading drafts"} {"diff": " public class ByteBuddyAgent { \n COMMENT \n public static Dispatcher make ( ) { \n try { \n - Class < ? > processHandle = Class . forName ( STRING0 ) ; \n - return new ForJava9CapableVm ( processHandle . getDeclaredMethod ( STRING1 ) , \n - processHandle . getDeclaredMethod ( STRING2 ) ) ; \n + return new ForJava9CapableVm ( Class . forName ( STRING0 ) . getDeclaredMethod ( STRING1 ) , \n + Class . forName ( STRING0 ) . getDeclaredMethod ( STRING2 ) ) ; \n } catch ( RuntimeException exception ) { \n throw exception ; \n } catch ( Exception ignored ) {", "msg_token": "Simplified class lookup"} {"diff": " public final class InputConnectionCompat { \n final ClipDescription description = data . getParcelable ( \n COMMIT_CONTENT_DESCRIPTION_KEY ) ; \n final Uri linkUri = data . getParcelable ( COMMIT_CONTENT_LINK_URI_KEY ) ; \n - final int flags = data . getParcelable ( COMMIT_CONTENT_FLAGS_KEY ) ; \n + final int flags = data . getInt ( COMMIT_CONTENT_FLAGS_KEY ) ; \n final Bundle opts = data . getParcelable ( COMMIT_CONTENT_OPTS_KEY ) ; \n final InputContentInfoCompat inputContentInfo = \n new InputContentInfoCompat ( contentUri , description , linkUri ) ;", "msg_token": "Fix a type mismatch in COMMIT_CONTENT_FLAGS_KEY"} {"diff": " final class IncomingDataPoints implements WritableDataPoints { \n throw new IllegalArgumentException ( STRING0 + timestamp \n + STRING1 + last_ts \n + STRING2 + value + STRING3 + this ) ; \n - } else if ( timestamp - base_time > Const . MAX_TIMESPAN ) { \n + } else if ( timestamp - base_time >= Const . MAX_TIMESPAN ) { \n SINGLE \n SINGLE \n SINGLE \n final class IncomingDataPoints implements WritableDataPoints { \n SINGLE \n final int new_size = Math . min ( size * NUMBER0 , Const . MAX_TIMESPAN ) ; \n if ( new_size == size ) { \n - throw new AssertionError ( STRING4 + this + STRING5 ) ; \n + throw new AssertionError ( STRING4 + this + STRING6 + size ) ; \n } \n values = Arrays . copyOf ( values , new_size ) ; \n qualifiers = Arrays . copyOf ( qualifiers , new_size ) ;", "msg_token": "Fix an off by one in a comparison when adding new data points"} {"diff": " public class ServiceManager { \n private ServiceManager ( ) { } \n \n public static < T > T getService ( @ notnull Class < T > serviceClass ) { \n - return doGetService ( ApplicationManager . getApplication ( ) , serviceClass ) ; \n + final Application application = ApplicationManager . getApplication ( ) ; \n + assert application != null : STRING0 + serviceClass . getSimpleName ( ) ; \n + return doGetService ( application , serviceClass ) ; \n } \n \n public static < T > T getService ( @ notnull Project project , @ notnull Class < T > serviceClass ) {", "msg_token": "improve exception message when no Application"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public final class TransferEnvelope { \n return duplicatedTransferEnvelope ; \n } \n \n + public boolean isLastEnvelope ( ) { \n + \n + if ( this . eventList == null ) { \n + return false ; \n + } \n + \n + final Iterator < AbstractEvent > it = this . eventList . iterator ( ) ; \n + while ( it . hasNext ( ) ) { \n + if ( it . next ( ) instanceof ChannelCloseEvent ) { \n + return true ; \n + } \n + } \n + \n + return false ; \n + } \n + \n @ override \n public boolean equals ( final Object obj ) {", "msg_token": "Implemented convenience method to detect last envelope transfered through a channel"} {"diff": " class IRFactory { \n COMMENT \n COMMENT \n private void handleBlockComment ( Comment comment ) { \n - Pattern p = Pattern . compile ( STRING0 ) ; \n + Pattern p = Pattern . compile ( STRING1 ) ; \n if ( p . matcher ( comment . getValue ( ) ) . find ( ) ) { \n errorReporter . warning ( \n SUSPICIOUS_COMMENT_WARNING , \n public class ParserTest extends BaseJSTypeTestCase { \n parse ( STRING2 , SUSPICIOUS_COMMENT_WARNING ) ; \n } \n \n + public void testSuspiciousBlockCommentWarning7 ( ) { \n + SINGLE \n + parse ( STRING3 ) ; \n + } \n + \n + public void testSuspiciousBlockCommentWarning8 ( ) { \n + SINGLE \n + parse ( STRING4 ) ; \n + } \n + \n public void testCatchClauseForbidden ( ) { \n parseError ( STRING5 , \n STRING6 ) ;", "msg_token": "Tighten the suspicious comment check to avoid false positives"} {"diff": " public abstract class SerializerBase < S extends SerializerBase < S > > implements Vis \n public Void visit ( Constant < ? > expr , Void context ) { \n if ( ! getConstantToLabel ( ) . containsKey ( expr . getConstant ( ) ) ) { \n String constLabel = constantPrefix + ( getConstantToLabel ( ) . size ( ) + NUMBER0 ) ; \n - constantToLabel . put ( expr . getConstant ( ) , constLabel ) ; \n + getConstantToLabel ( ) . put ( expr . getConstant ( ) , constLabel ) ; \n append ( constLabel ) ; \n } else { \n append ( getConstantToLabel ( ) . get ( expr . getConstant ( ) ) ) ; \n public abstract class SerializerBase < S extends SerializerBase < S > > implements Vis \n } else { \n paramLabel = paramPrefix + param . getName ( ) ; \n } \n - constantToLabel . put ( param , paramLabel ) ; \n + getConstantToLabel ( ) . put ( param , paramLabel ) ; \n append ( paramLabel ) ; \n return null ; \n }", "msg_token": "reverted constantToLabel usage"} {"diff": " public class MapVectorLayer extends BaseMapLayer { \n if ( ! bmp . isRecycled ( ) ) { \n canvas . drawBitmap ( bmp , null , destImage , paintImg ) ; \n } \n + canvas . rotate ( rot , view . getCenterPointX ( ) , view . getCenterPointY ( ) ) ; \n } \n }", "msg_token": "Fix wrong map rotation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT", "msg_token": "Removing a redundant import"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n mTmpNavigationFrame . offset ( mNavigationBarWidth , NUMBER0 ) ; \n } \n } \n + SINGLE \n + SINGLE \n + mContentTop = mCurTop = mDockTop ; \n + mContentBottom = mCurBottom = mDockBottom ; \n + mContentLeft = mCurLeft = mDockLeft ; \n + mContentRight = mCurRight = mDockRight ; \n SINGLE \n mNavigationBar . computeFrameLw ( mTmpNavigationFrame , mTmpNavigationFrame , \n mTmpNavigationFrame , mTmpNavigationFrame ) ;", "msg_token": "Missing menu entries in portrait when in compatibility mode"} {"diff": " public class RealmIntroExampleActivity extends Activity { \n showStatus ( STRING0 ) ; \n showStatus ( STRING1 + realm . allObjects ( Person . class ) . size ( ) ) ; \n \n - RealmResults < Person > results = realm . where ( Person . class ) . equalTo ( STRING2 , STRING3 ) . findAll ( ) ; \n + RealmResults < Person > results = realm . where ( Person . class ) . equalTo ( STRING2 , STRING4 ) . findAll ( ) ; \n \n showStatus ( STRING5 + results . size ( ) ) ; \n }", "msg_token": "Rename the cat"} {"diff": " public class CountingLatchTest extends TestCase { \n for ( int i = NUMBER0 ; i < COUNT ; i ++ ) { \n latch . increment ( ) ; \n sleep ( ) ; \n + \n } \n } \n } ) ; \n public class CountingLatchTest extends TestCase { \n } \n } ) ; \n up . start ( ) ; \n - down . start ( ) ; \n - assertFalse ( STRING0 , latch . await ( NUMBER1 , TimeUnit . MILLISECONDS ) ) ; \n - SINGLE \n + down . start ( ) ; \n assertLatchDone ( ) ; \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n private void assertLatchDone ( ) throws InterruptedException {", "msg_token": "Fixed the unit test error of CountingLatchTest"} {"diff": " public class AddExchanges \n \n SINGLE \n PlanNode result = ChildReplacer . replaceChildren ( node , ImmutableList . of ( probeSource . getNode ( ) , node . getIndexSource ( ) ) ) ; \n - return new PlanWithProperties ( result , deriveProperties ( result , probeProperties ) ) ; \n + return new PlanWithProperties ( result , deriveProperties ( result , probeSource . getProperties ( ) ) ) ; \n } \n \n @ override", "msg_token": "Fix index join property propagation"} {"diff": " public interface MergeVersion { \n } \n \n public static void reportProjectFileChangeIfNeeded ( Project project , VirtualFile file ) { \n - if ( file != null ) { \n + if ( file != null && ! file . isDirectory ( ) ) { \n if ( ProjectUtil . isProjectOrWorkspaceFile ( file ) || isProjectFile ( file ) ) { \n ProjectManagerEx . getInstanceEx ( ) . saveChangedProjectFile ( file , project ) ; \n } \n public interface MergeVersion { \n public static Runnable prepareToReportChangedProjectFiles ( final Project project , final Collection < VirtualFile > files ) { \n final Set < VirtualFile > vfs = new HashSet < VirtualFile > ( ) ; \n for ( VirtualFile vf : files ) { \n - if ( vf != null ) { \n + if ( vf != null && ! vf . isDirectory ( ) ) { \n if ( ProjectUtil . isProjectOrWorkspaceFile ( vf ) || isProjectFile ( vf ) ) { \n vfs . add ( vf ) ; \n }", "msg_token": "fix apply patch exception check whether files reported as changed from project directories are directories and save only files"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public interface Converter < F , T > { \n T convert ( F value ) throws IOException ;", "msg_token": "Remove outdated reference"} {"diff": " public class Sample { \n this . v1 = v1 ; \n this . t1 = t1 ; \n } \n - \n + \n public byte evalBoardings ( ShortestPathTree spt ) { \n State s0 = spt . getState ( v0 ) ; \n State s1 = spt . getState ( v1 ) ; \n public class Sample { \n return ( byte ) ( ( m0 < m1 ) ? m0 : m1 ) ; \n } \n \n - public byte evalByte ( ShortestPathTree spt ) { \n - long t = eval ( spt ) / NUMBER0 ; \n - if ( t >= NUMBER1 ) \n - t = NUMBER1 ; \n - return ( byte ) t ; \n - } \n - \n public long eval ( ShortestPathTree spt ) { \n State s0 = spt . getState ( v0 ) ; \n State s1 = spt . getState ( v1 ) ;", "msg_token": "remove unused evalByte method from sample"} {"diff": " class ReaderPostRenderer { \n private String mRenderedHtml ; \n private ImageSizeMap mAttachmentSizes ; \n \n - private static int mDebugCnt = NUMBER0 ; \n - \n @ suppresslint ( STRING0 ) \n ReaderPostRenderer ( ReaderWebView webView , ReaderPost post ) { \n - COMMENT \n - if ( mDebugCnt == NUMBER1 ) { \n - Debug . startMethodTracing ( STRING1 ) ; \n - } else if ( mDebugCnt == NUMBER2 ) { \n - Debug . stopMethodTracing ( ) ; \n - COMMENT \n - \n if ( webView == null ) { \n throw new IllegalArgumentException ( STRING2 ) ; \n }", "msg_token": "Removed debug code"} {"diff": " public class MessageGenerator extends AbstractGenerator { \n return null ; \n } \n packet . setAxolotlMessage ( axolotlMessage . toElement ( ) ) ; \n - packet . addChild ( STRING0 , STRING1 ) ; \n + packet . addChild ( STRING2 , STRING1 ) ; \n return packet ; \n }", "msg_token": "renamed pretty please store message hint to store"} {"diff": " public class FingerprintService extends SystemService implements IBinder . DeathRe \n } \n SINGLE \n SINGLE \n - if ( mIsKeyguard && authenticated ) { \n + if ( authenticated ) { \n mPowerManager . wakeUp ( SystemClock . uptimeMillis ( ) , \n STRING0 ) ; \n }", "msg_token": "Fix the build"} {"diff": " public class InvalidPropertyKeyFormInspection extends StringDescriptorInspection \n final FormErrorCollector collector ) { \n String error = checkDescriptor ( descriptor , module ) ; \n if ( error != null ) { \n - collector . addError ( getID ( ) , component , prop , error , null ) ; \n + collector . addError ( getID ( ) , component , prop , error ) ; \n } \n } \n \n public class OneButtonGroupInspection extends BaseFormInspection { \n return ; \n } \n } \n - collector . addError ( getID ( ) , component , null , UIDesignerBundle . message ( STRING0 ) , null ) ; \n + collector . addError ( getID ( ) , component , null , UIDesignerBundle . message ( STRING0 ) ) ; \n } \n } \n }", "msg_token": "don t pass null quickfix provider if none is available"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Fxied a CS error of camel zookeeper"} {"diff": " public class CommandTest { \n \n @ test \n public void testOnlyReadsPartialInput ( ) throws Exception { \n - Command command = new Command ( new String [ ] { STRING0 , STRING1 , STRING2 } ) ; \n + SINGLE \n + Command command = new Command ( new String [ ] { STRING0 , STRING3 , STRING2 } ) ; \n OutputStream out = new ByteArrayOutputStream ( ) ; \n InputStream in = new InputStream ( ) {", "msg_token": "Fix testOnlyReadsPartialInput on Darwin"} {"diff": " public class MenuDrawerManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void toggleMenu ( boolean animate ) { \n + mMenuDrawer . toggleMenu ( animate ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public void openMenu ( ) { \n public class MenuDrawerManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void openMenu ( boolean animate ) { \n + mMenuDrawer . openMenu ( animate ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public void closeMenu ( ) { \n public class MenuDrawerManager { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void closeMenu ( boolean animate ) { \n + mMenuDrawer . closeMenu ( animate ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add open close methods to MenuDrawerManager"} {"diff": " public final class UnderFileSystemFileOutStream extends OutputStream { \n COMMENT \n COMMENT \n COMMENT \n - public static Factory get ( ) { \n + public static synchronized Factory get ( ) { \n if ( sInstance == null ) { \n sInstance = new Factory ( ) ; \n }", "msg_token": "Synchronized factory access"} {"diff": " public class TestAll implements Test { \n private static final int CHECK_MEMORY = NUMBER0 ; \n private static final int FILTER_CLASSES = NUMBER1 ; \n \n - public static int ourMode = SAVE_MEMORY_SNAPSHOT | START_GUARD COMMENT | FILTER_CLASSES ; \n + public static int ourMode = SAVE_MEMORY_SNAPSHOT COMMENT | FILTER_CLASSES ; \n private int myLastTestTestMethodCount = NUMBER2 ; \n public static final int MAX_FAILURE_TEST_COUNT = NUMBER3 ;", "msg_token": "disable own hand written out of time check for tests"} {"diff": " class ModelControllerImpl implements ModelController { \n final OperationContext delegateContext = activeOperations . get ( operationId ) ; \n if ( delegateContext == null ) { \n SINGLE \n - throw MESSAGES . noContextToDelegateTo ( operationId ) ; ; \n + throw MESSAGES . noContextToDelegateTo ( operationId ) ; \n } \n final ModelNode response = new ModelNode ( ) ; \n final OperationTransactionControl originalResultTxControl = control == null ? null : new OperationTransactionControl ( ) {", "msg_token": "Fix compile error"} {"diff": " public class BottomBarBadge extends TextView { \n return isVisible ; \n } \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public void removeFromParent ( ) { \n - ( ( ViewGroup ) getParent ( ) ) . removeView ( this ) ; \n - } \n - \n protected BottomBarBadge ( Context context , final View tabToAddTo , SINGLE \n int backgroundColor ) { \n super ( context ) ;", "msg_token": "Removed a method for removing badges as that could cause some bugs"} {"diff": " public class ServerSocketReader extends SocketReader { \n } \n return true ; \n } \n + else if ( STRING0 . equals ( doc . getNamespacePrefix ( ) ) && STRING1 . equals ( doc . getName ( ) ) ) { \n + SINGLE \n + SINGLE \n + ( ( IncomingServerSession ) session ) . verifyReceivedKey ( doc ) ; \n + return true ; \n + } \n return false ; \n }", "msg_token": "Verify key when remote server is reusing existing connection"} {"diff": " public class FileFunction implements SkyFunction { \n public FileFunctionException ( FileSymlinkException e ) { \n super ( e , Transience . PERSISTENT ) ; \n } \n - \n - public FileFunctionException ( IOException e , Transience transience ) { \n - super ( e , transience ) ; \n - } \n } \n }", "msg_token": "Removed unused FileFunctionException constructor"} {"diff": " public class AssistContent implements Parcelable { \n COMMENT \n public void setDefaultIntent ( Intent intent ) { \n mIntent = intent ; \n - setWebUri ( null ) ; \n + mIsAppProvidedIntent = false ; \n + mIsAppProvidedWebUri = false ; \n + mUri = null ; \n if ( intent != null && Intent . ACTION_VIEW . equals ( intent . getAction ( ) ) ) { \n Uri uri = intent . getData ( ) ; \n if ( uri != null ) { \n public class AssistContent implements Parcelable { \n } \n mIsAppProvidedIntent = in . readInt ( ) == NUMBER0 ; \n mExtras = in . readBundle ( ) ; \n + mIsAppProvidedWebUri = in . readInt ( ) == NUMBER0 ; \n } \n \n void writeToParcelInternal ( Parcel dest , int flags ) { \n public class AssistContent implements Parcelable { \n } \n dest . writeInt ( mIsAppProvidedIntent ? NUMBER0 : NUMBER1 ) ; \n dest . writeBundle ( mExtras ) ; \n + dest . writeInt ( mIsAppProvidedWebUri ? NUMBER0 : NUMBER1 ) ; \n } \n \n @ override", "msg_token": "Make isAppProvidedWebUri false from setDefaultIntent"} {"diff": " public abstract class SupervisedModel < M extends Model < M , P , O > , P extends Supervis \n COMMENT \n COMMENT \n COMMENT \n - \n - COMMENT \n - COMMENT \n - COMMENT \n public boolean _toEnum = false ; \n \n COMMENT", "msg_token": "Remove comment I accidentally checked in"} {"diff": " public class Views { \n } \n \n public enum Finder { \n - VIEW ( ) { \n + VIEW { \n @ suppresswarnings ( STRING0 ) @ override \n public < T extends View > T findById ( Object source , int id ) { \n return ( T ) ( ( View ) source ) . findViewById ( id ) ; \n } \n } , \n - ACTIVITY ( ) { \n + ACTIVITY { \n @ suppresswarnings ( STRING0 ) @ override \n public < T extends View > T findById ( Object source , int id ) { \n return ( T ) ( ( Activity ) source ) . findViewById ( id ) ;", "msg_token": "Save four bytes"} {"diff": " public abstract class Language { \n private static Language [ ] getRealLanguages ( ) { \n List < Language > result = new ArrayList < > ( ) ; \n for ( Language lang : LANGUAGES ) { \n - if ( ! lang . getShortName ( ) . equals ( STRING0 ) ) { SINGLE \n + if ( ! STRING0 . equals ( lang . getShortName ( ) ) ) { SINGLE \n result . add ( lang ) ; \n } \n }", "msg_token": "flip equals in case a language has null as a name"} {"diff": " public class UseOfSunClassesInspection extends VariableInspection { \n public void visitVariable ( @ notnull PsiVariable variable ) { \n super . visitVariable ( variable ) ; \n final PsiType type = variable . getType ( ) ; \n - if ( type == null ) { \n - return ; \n - } \n final PsiType deepComponentType = type . getDeepComponentType ( ) ; \n - if ( deepComponentType == null ) { \n - return ; \n - } \n if ( ! ( deepComponentType instanceof PsiClassType ) ) { \n return ; \n }", "msg_token": "remove unneeded null checks"} {"diff": " public class BuckConstant { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - public static final String BUCK_OUTPUT_DIRECTORY = STRING0 ; \n + public static final String BUCK_OUTPUT_DIRECTORY = \n + System . getProperty ( STRING1 , STRING0 ) ; \n \n SINGLE \n SINGLE", "msg_token": "Make buck out directory configurable in the environment"} {"diff": " public abstract class ManagedChannelBuilder < T extends ManagedChannelBuilder < T > > \n COMMENT \n COMMENT \n COMMENT \n - @ experimentalapi ( STRING0 ) \n public static ManagedChannelBuilder < ? > forTarget ( String target ) { \n return ManagedChannelProvider . provider ( ) . builderForTarget ( target ) ; \n }", "msg_token": "make forTarget String non experimental"} {"diff": " public interface ApplicationConfig { \n COMMENT \n COMMENT \n String HANDLER_MAPPING_REGEX = ApplicationConfig . class . getPackage ( ) . getName ( ) + STRING0 ; \n - String ANNOTATION_PROCESSOR = AnnotationProcessor . class . getName ( ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + String ANNOTATION_PROCESSOR = AnnotationProcessor . class . getName ( ) ; \n } \n public class AtmosphereFramework implements ServletContextProvider { \n asyncSupportListener ( new AsyncSupportListenerAdapter ( ) ) ; \n \n installAnnotationProcessor ( scFacade ) ; \n + \n autoConfigureService ( scFacade . getServletContext ( ) ) ; \n patchContainer ( ) ; \n doInitParams ( scFacade ) ;", "msg_token": "Add support for defining in web xml an annotation processor"} {"diff": " public class PrivacyService extends IPrivacyService . Stub { \n synchronized ( mRestrictionCache ) { \n mRestrictionCache . clear ( ) ; \n } \n + synchronized ( mAskedOnceCache ) { \n + mAskedOnceCache . clear ( ) ; \n + } \n synchronized ( mSettingCache ) { \n mSettingCache . clear ( ) ; \n }", "msg_token": "Flush asked once cache too"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class OperationServiceImpl implements InternalOperationService , Pac \n Packet packet = new Packet ( bytes , partitionId ) ; \n packet . setFlag ( Packet . FLAG_OP ) ; \n \n - if ( op instanceof UrgentSystemOperation ) { \n + if ( op . isUrgent ( ) ) { \n packet . setFlag ( Packet . FLAG_URGENT ) ; \n }", "msg_token": "Replaced instanceof urgentop by isUrgent"} {"diff": " public class DefaultCompositeByteBuf extends AbstractByteBuf implements Composit \n int localLength = Math . min ( length , s . capacity ( ) - ( index - adjustment ) ) ; \n int localReadBytes = s . setBytes ( index - adjustment , in , localLength ) ; \n \n + if ( localReadBytes == NUMBER0 ) { \n + break ; \n + } \n + \n + if ( localReadBytes < NUMBER0 ) { \n + if ( readBytes == NUMBER0 ) { \n + return - NUMBER1 ; \n + } else { \n + break ; \n + } \n + } \n + \n if ( localReadBytes == localLength ) { \n index += localLength ; \n length -= localLength ;", "msg_token": "Fix an infinite loop in DefaultCompositeByteBuf setBytes"} {"diff": " public class HttpConnectorFactory \n \n public ServerConnector createConnector ( Server server , String host , int port , JettyThreadCalculator jettyThreadCalculator , ConnectionFactory . . . httpFactories ) \n { \n - \n - int availableProcessors = Runtime . getRuntime ( ) . availableProcessors ( ) ; \n - \n int acceptors = jettyThreadCalculator . getAcceptors ( ) ; \n int selectors = jettyThreadCalculator . getSelectors ( ) ;", "msg_token": "Remove unused core poll"} {"diff": " public class DBCollection implements IDBCollection { \n COMMENT \n public void setInternalClass ( final String path , final Class < ? extends DBObject > aClass ) { \n setObjectFactory ( objectFactory . update ( aClass , Arrays . asList ( path . split ( STRING0 ) ) ) ) ; \n + } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + protected Class < ? extends DBObject > getInternalClass ( final String path ) { \n + return objectFactory . getClassForPath ( Arrays . asList ( path . split ( STRING0 ) ) ) ; \n } \n \n @ override \n public final class DBObjectFactory { \n return map ; \n } \n \n - private Class < ? extends DBObject > getClassForPath ( final List < String > path ) { \n + Class < ? extends DBObject > getClassForPath ( final List < String > path ) { \n if ( pathToClassMap . containsKey ( path ) ) { \n return pathToClassMap . get ( path ) ; \n } else {", "msg_token": "refactor driver compat add getObjectClass to DBCollection"} {"diff": " public class BodyResolver { \n } \n } \n \n - public void resolveBodies ( @ notnull BodiesResolveContext bodiesResolveContext ) { \n - context = bodiesResolveContext ; \n - resolveBodies ( ) ; \n - } \n - \n public void resolveBodies ( ) { \n resolveBehaviorDeclarationBodies ( context ) ; \n controlFlowAnalyzer . process ( context ) ; \n public class TopDownAnalyzer { \n overloadResolver . process ( ) ; \n \n if ( ! topDownAnalysisParameters . isAnalyzingBootstrapLibrary ( ) ) { \n - bodyResolver . resolveBodies ( context ) ; \n + bodyResolver . resolveBodies ( ) ; \n } \n \n context . debug ( STRING0 ) ;", "msg_token": "Remove context reassignment in BodyResolver"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class TestWebSocketFrameClient extends TomcatBaseTest {", "msg_token": "Remove unused imports"} {"diff": " public class CleanPathTest extends TestCase { \n public void testMadbotsBug ( ) { \n assertEquals ( STRING0 , Files . simplifyPath ( STRING0 ) ) ; \n assertEquals ( STRING1 , Files . simplifyPath ( STRING1 ) ) ; \n + assertEquals ( STRING2 , Files . simplifyPath ( STRING3 ) ) ; \n + } \n + \n + SINGLE \n + public void test705 ( ) { \n + assertEquals ( STRING4 , Files . simplifyPath ( STRING5 ) ) ; \n + assertEquals ( STRING6 , Files . simplifyPath ( STRING7 ) ) ; \n } \n } \n public final class Files { \n } \n } else { \n COMMENT \n - if ( name [ q ] != name [ firstNonSlash ] ) { \n + if ( name [ q ] != name [ firstNonSlash ] || name [ q ] == STRING8 ) { \n name [ q ++ ] = STRING9 ; \n } \n while ( ( q < name . length && p < name . length ) &&", "msg_token": "Handling paths of the form x"} {"diff": " public class RegistrationTest extends TomcatBaseTest { \n \n SINGLE \n onames = mbeanServer . queryNames ( new ObjectName ( STRING0 ) , null ) ; \n - assertTrue ( STRING1 , onames . size ( ) > NUMBER0 ) ; \n + assertTrue ( STRING1 , onames . size ( ) >= NUMBER1 ) ; \n \n tomcat . stop ( ) ;", "msg_token": "Increase the threshold to try and catch if MBean registration breaks and MBeans don t get registered"} {"diff": " public class MavenProjectsTree { \n } ) ; \n result . myRootProjects . addAll ( readProjectsRecursively ( in , result ) ) ; \n } \n + catch ( IOException e ) { \n + in . close ( ) ; \n + file . delete ( ) ; \n + throw e ; \n + } \n catch ( Throwable e ) { \n throw new IOException ( e ) ; \n }", "msg_token": "Delete tree file if it s broken"} {"diff": " public class OperationSkipUntil < T , U > implements OnSubscribeFunc < T > { \n \n @ override \n public void onCompleted ( ) { \n - if ( ! running . get ( ) ) { \n - ResultManager . this . onCompleted ( ) ; \n - } else { \n - self . unsubscribe ( ) ; \n - } \n + self . unsubscribe ( ) ; \n } \n \n } \n public class OperationSkipUntilTest { \n \n verify ( observer , never ( ) ) . onError ( any ( Throwable . class ) ) ; \n verify ( observer , never ( ) ) . onNext ( any ( ) ) ; \n - verify ( observer , times ( NUMBER0 ) ) . onCompleted ( ) ; \n + verify ( observer , never ( ) ) . onCompleted ( ) ; \n } \n @ test \n public void otherFiresAndCompletes ( ) {", "msg_token": "Fixed case with skipUntil empty never matches RxdotNet"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improved example documentation"} {"diff": " public abstract class Event implements Serializable { \n } \n \n protected Event ( final String name ) { \n - Validate . notNull ( name , STRING0 ) ; \n + Validate . notNull ( name , STRING1 ) ; \n this . name = name ; \n }", "msg_token": "Fixed Validate message"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public interface ICollapsible < T > { \n + public interface ICollapsible < T , Item extends IItem > { \n COMMENT \n COMMENT \n COMMENT \n public interface ICollapsible < T > { \n COMMENT \n COMMENT \n COMMENT \n - List < IItem > getSubItems ( ) ; \n + List < Item > getSubItems ( ) ; \n }", "msg_token": "make item type generic inside ICollapsible interface"} {"diff": " public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal \n invalidate ( ) ; \n sendAccessibilityEvent ( AccessibilityEvent . TYPE_VIEW_ACCESSIBILITY_FOCUS_CLEARED ) ; \n notifyAccessibilityStateChanged ( ) ; \n - SINGLE \n - setAccessibilityCursorPosition ( ACCESSIBILITY_CURSOR_POSITION_UNDEFINED ) ; \n } \n SINGLE \n SINGLE \n public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal \n void clearAccessibilityFocusNoCallbacks ( ) { \n if ( ( mPrivateFlags2 & ACCESSIBILITY_FOCUSED ) != NUMBER0 ) { \n mPrivateFlags2 &= ~ ACCESSIBILITY_FOCUSED ; \n - setAccessibilityCursorPosition ( ACCESSIBILITY_CURSOR_POSITION_UNDEFINED ) ; \n invalidate ( ) ; \n } \n }", "msg_token": "Accessibility focus should not clear selection when taken away"} {"diff": " public class WXRecycleImageManager { \n } \n \n public void loadImage ( ) { \n - if ( ! IfRecycleImage ) { \n + if ( ! IfRecycleImage || mAllImages == null ) { \n return ; \n } \n ImageInfo imageInfo ;", "msg_token": "android update recycleImageManager java np"} {"diff": " public abstract class TransportSearchTypeAction extends TransportAction < SearchRe \n sb . append ( result . shardTarget ( ) ) ; \n } \n \n - logger . debug ( STRING0 , sb ) ; \n + logger . debug ( STRING1 , sb , clusterState . version ( ) ) ; \n } \n moveToSecondPhase ( ) ; \n }", "msg_token": "Added cluster state version to the debug logging of shards instances used in search"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated Javadoc of OrderedMemoryAwareThreadPoolExecutor"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UserInfoTokenServicesRefreshTokenTests { \n @ restcontroller \n protected static class Application { \n \n - @ requestmapping ( value = STRING0 ) \n + @ requestmapping ( STRING0 ) \n public User user ( @ requestheader ( STRING1 ) String authorization ) { \n if ( authorization . endsWith ( STRING2 ) ) { \n throw new InvalidTokenException ( STRING3 ) ;", "msg_token": "Fix broken build"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix bean classname in Javadoc for SwitchUserFilter"} {"diff": " public class ProviderInjectionTest extends TestCase { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public void testCreationTimeInjectionOrdering ( ) { \n Injector injector = Guice . createInjector ( new AbstractModule ( ) {", "msg_token": "Fixing the Provider injection bug wherein we were using a Provider before it had been itself injected"} {"diff": " public abstract class SlidingActivity extends AppCompatActivity { \n \n if ( scroller . willUseReverseExpansion ( ) ) { \n content . removeAllViews ( ) ; \n - photoView . setVisibility ( View . GONE ) ; \n - photoViewTempBackground . setVisibility ( View . VISIBLE ) ; \n \n final Interpolator interpolator ;", "msg_token": "don t touch the header area on the reverse expansion animation"} {"diff": " public abstract class ServiceTestCase < T extends Service > extends AndroidTestCase \n } \n if ( mServiceCreated ) { \n mService . onDestroy ( ) ; \n + mServiceCreated = false ; \n } \n }", "msg_token": "Set mServiceCreated to false when onDestroy"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class WebSocketClientTest \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void testBasicEcho_FromServer ( ) throws Exception \n { \n TrackingSocket wsocket = new TrackingSocket ( ) ;", "msg_token": "Setting problematic test to Ignore"} {"diff": " public class GLModel implements GLConstants , PConstants { \n int offset = firstUpdateIdx * NUMBER0 ; \n int size = ( lastUpdateIdx - firstUpdateIdx + NUMBER1 ) * NUMBER0 ; \n \n - texCoords . put ( updateNormalArray , offset , size ) ; \n + texCoords . put ( updateTexCoordArray , offset , size ) ; \n texCoords . position ( NUMBER2 ) ; \n \n gl . glBufferSubData ( GL11 . GL_ARRAY_BUFFER , offset * SIZEOF_FLOAT , size * SIZEOF_FLOAT , texCoords ) ;", "msg_token": "fixed texturing bug in glmodel"} {"diff": " import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n COMMENT \n public class BatchInvalidator extends Invalidator { \n } \n \n private List < Invalidation > pollInvalidations ( InvalidationQueue invalidationQueue ) { \n - final int size = min ( batchSize , invalidationQueue . size ( ) ) ; \n - if ( size == NUMBER0 ) { \n - return emptyList ( ) ; \n - } \n + final int size = invalidationQueue . size ( ) ; \n \n List < Invalidation > invalidations = new ArrayList < Invalidation > ( size ) ; \n \n public class BatchInvalidator extends Invalidator { \n } \n \n invalidations . add ( invalidation ) ; \n - \n } \n + \n return invalidations ; \n }", "msg_token": "Sent all existing enqueued invalidations"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AnActionEvent implements PlaceProvider < String > { \n } \n \n @ notnull \n - public < T > T getRequiredData ( @ notnull DataKey < T > key ) { \n + public < T > T getDataChecked ( @ notnull DataKey < T > key ) { \n T data = getData ( key ) ; \n assert data != null ; \n return data ; \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + @ notnull \n + public < T > T getRequiredData ( @ notnull DataKey < T > key ) { \n + return getDataChecked ( key ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "make method name discoverable"} {"diff": " public class ModelLoader extends ModelBakery \n } \n ModelBlock model = this . model ; \n if ( hasItemModel ( model ) ) model = makeItemModel ( model ) ; \n + if ( model == null ) return getMissingModel ( ) . bake ( state , format , bakedTextureGetter ) ; \n if ( isCustomRenderer ( model ) ) return new IFlexibleBakedModel . Wrapper ( new BuiltInModel ( new ItemCameraTransforms ( model . getThirdPersonTransform ( ) , model . getFirstPersonTransform ( ) , model . getHeadTransform ( ) , model . getInGuiTransform ( ) ) ) , Attributes . DEFAULT_BAKED_FORMAT ) ; \n return new IFlexibleBakedModel . Wrapper ( bakeModel ( model , state . apply ( this ) , state instanceof UVLock ) , Attributes . DEFAULT_BAKED_FORMAT ) ; \n }", "msg_token": "Hopefully fix NPE during baking of empty vanilla item models"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed confusing Javadoc message"} {"diff": " public class ConversationActor extends ModuleActor { \n docs . clear ( ) ; \n inPendingIndex . clear ( ) ; \n outPendingIndex . clear ( ) ; \n - if ( ! isHiddenPeer ) { \n - dialogsActor . send ( new DialogsActor . ChatClear ( peer ) ) ; \n - } \n + dialogsActor . send ( new DialogsActor . ChatClear ( peer ) ) ; \n } \n \n @ verified \n public class ConversationActor extends ModuleActor { \n docs . clear ( ) ; \n inPendingIndex . clear ( ) ; \n outPendingIndex . clear ( ) ; \n - if ( ! isHiddenPeer ) { \n - dialogsActor . send ( new DialogsActor . ChatDelete ( peer ) ) ; \n - } \n + dialogsActor . send ( new DialogsActor . ChatDelete ( peer ) ) ; \n } \n \n SINGLE", "msg_token": "Deleting dialogs even hidden peers"} {"diff": " public class MavenProjectsStructure extends SimpleTreeStructure { \n @ override \n public boolean isVisible ( ) { \n SINGLE \n - return getDisplayKind ( ) != DisplayKind . NEVER ; \n + return super . isVisible ( ) || getDisplayKind ( ) != DisplayKind . NEVER ; \n } \n }", "msg_token": "displaying plugins goals in the select before run task dialog"} {"diff": " public final class DeprecatedProfiles { \n this . deprecatedCheckProfiles = new CheckProfile [ NUMBER0 ] ; \n this . deprecatedCheckProfileProviders = new CheckProfileProvider [ NUMBER0 ] ; \n } \n + \n + public DeprecatedProfiles ( Plugins plugins , RuleFinder ruleFinder ) { \n + this . deprecatedRepositories = new RulesRepository [ NUMBER0 ] ; \n + this . plugins = plugins ; \n + this . ruleFinder = ruleFinder ; \n + this . deprecatedCheckProfiles = new CheckProfile [ NUMBER0 ] ; \n + this . deprecatedCheckProfileProviders = new CheckProfileProvider [ NUMBER0 ] ; \n + } \n \n public List < ProfileDefinition > getProfiles ( ) { \n List < ProfileDefinition > profiles = new ArrayList < ProfileDefinition > ( ) ;", "msg_token": "Add constructor to DeprecatedProfiles"} {"diff": " public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM \n error ( STRING0 , STRING1 ) ; \n } \n SINGLE \n - _initialPrediction = _nclass > NUMBER0 || _parms . _distribution == Distributions . Family . bernoulli ? NUMBER1 : getInitialValue ( ) ; \n + _initialPrediction = _nclass > NUMBER0 ? NUMBER1 : getInitialValue ( ) ; \n } \n \n switch ( _parms . _distribution ) { \n public class Distributions extends Iced { \n case gaussian : \n return f ; \n case bernoulli : \n - assert ( NUMBER1 < f && f < NUMBER2 ) ; \n - return log ( f / ( NUMBER2 - f ) ) ; \n + return log ( f / ( NUMBER2 - f ) ) ; \n case multinomial : \n case poisson : \n case gamma :", "msg_token": "Undo recent change"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class Http2ServerDowngraderTest { \n assertTrue ( ch . writeInbound ( new DefaultHttp2HeadersFrame ( headers , true ) ) ) ; \n \n FullHttpRequest request = ch . readInbound ( ) ; \n + ReferenceCountUtil . releaseLater ( request ) ; \n assertThat ( request . uri ( ) , is ( STRING0 ) ) ; \n assertThat ( request . method ( ) , is ( HttpMethod . GET ) ) ; \n assertThat ( request . protocolVersion ( ) , is ( HttpVersion . HTTP_1_1 ) ) ;", "msg_token": "Stop leaking in header downgrader test"} {"diff": " public class MasterInfo implements ImageWriter { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - private Pair < Inode , Integer > traverseToInode ( String path ) throws InvalidPathException { \n - return traverseToInode ( CommonUtils . getPathComponents ( path ) ) ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove one unused method"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE \n \n public class JetHighlightingColors { \n SINGLE \n - public final static TextAttributesKey KEYWORD = createTextAttributesKey ( STRING0 , DefaultLanguageHighlighterColors . KEYWORD ) ; \n - public static final TextAttributesKey BUILTIN_ANNOTATION = createTextAttributesKey ( STRING1 , DefaultLanguageHighlighterColors . KEYWORD ) ; \n + public static final TextAttributesKey KEYWORD = createTextAttributesKey ( STRING0 , JavaHighlightingColors . KEYWORD ) ; \n + public static final TextAttributesKey BUILTIN_ANNOTATION = createTextAttributesKey ( STRING1 , JavaHighlightingColors . KEYWORD ) ; \n public static final TextAttributesKey NUMBER = createTextAttributesKey ( STRING2 , DefaultLanguageHighlighterColors . NUMBER ) ; \n public static final TextAttributesKey STRING = createTextAttributesKey ( STRING3 , DefaultLanguageHighlighterColors . STRING ) ; \n public static final TextAttributesKey STRING_ESCAPE = createTextAttributesKey ( STRING4 , DefaultLanguageHighlighterColors . VALID_STRING_ESCAPE ) ;", "msg_token": "Made keywords not bold in Darcula as in Java"} {"diff": " public class OleAutoTest extends TestCase { \n public void testLoadRegTypeLib ( ) { \n SINGLE \n CLSID clsid = new CLSID ( ) ; \n - SINGLE \n + SINGLE \n HRESULT hr = Ole32 . INSTANCE . CLSIDFromString ( new WString ( \n - STRING0 ) , clsid ) ; \n + STRING1 ) , clsid ) ; \n COMUtils . checkTypeLibRC ( hr ) ; \n assertEquals ( NUMBER0 , hr . intValue ( ) ) ; \n \n SINGLE \n LCID lcid = Kernel32 . INSTANCE . GetUserDefaultLCID ( ) ; \n PointerByReference pWordTypeLib = new PointerByReference ( ) ; \n - SINGLE \n - hr = OleAuto . INSTANCE . LoadRegTypeLib ( clsid , NUMBER1 , NUMBER2 , lcid , pWordTypeLib ) ; \n + SINGLE \n + hr = OleAuto . INSTANCE . LoadRegTypeLib ( clsid , NUMBER3 , NUMBER0 , lcid , pWordTypeLib ) ; \n COMUtils . checkTypeLibRC ( hr ) ; \n assertEquals ( NUMBER0 , hr . intValue ( ) ) ; \n }", "msg_token": "use a different CLSID remove dependency on Word"} {"diff": " public class PortugueseAccentuationCheckRule extends PortugueseRule { \n \n @ override \n public String getId ( ) { \n - return STRING0 ; \n + return STRING1 ; \n } \n \n @ override", "msg_token": "pt another fix to travis ID error"} {"diff": " public class JavaConstantExpressionEvaluator extends JavaRecursiveElementWalking \n final PsiConstantEvaluationHelper . AuxEvaluator auxEvaluator ) { \n if ( expression == null ) return null ; \n \n + if ( expression instanceof PsiLiteralExpression ) { \n + return ( ( PsiLiteralExpression ) expression ) . getValue ( ) ; SINGLE \n + } \n + \n JavaConstantExpressionEvaluator evaluator = new JavaConstantExpressionEvaluator ( visitedVars , throwExceptionOnOverflow , expression . getProject ( ) , auxEvaluator ) ; \n \n if ( expression instanceof PsiCompiledElement ) {", "msg_token": "don t cache and retrieve getProject for that constant values of java literal expressions"} {"diff": " class VolatileGroup \n \n VolatileGroup ( ) { } \n \n + VolatileGroup ( String groupName ) \n + { \n + this . groupName = groupName ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added a constructor with a groupname param in order to be able and use the class for unresolved groups"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class CqlRecordReader extends RecordReader < Long , Row > \n - implements org . apache . hadoop . mapred . RecordReader < Long , Row > \n + implements org . apache . hadoop . mapred . RecordReader < Long , Row > , AutoCloseable \n { \n private static final Logger logger = LoggerFactory . getLogger ( CqlRecordReader . class ) ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - class CqlRecordWriter extends AbstractColumnFamilyRecordWriter < Map < String , ByteBuffer > , List < ByteBuffer > > \n + class CqlRecordWriter extends AbstractColumnFamilyRecordWriter < Map < String , ByteBuffer > , List < ByteBuffer > > implements AutoCloseable \n { \n private static final Logger logger = LoggerFactory . getLogger ( CqlRecordWriter . class ) ;", "msg_token": "make CqlRecordReader Writer autocloseable"} {"diff": " public abstract class AbstractPropertyViewAttribute < T > implements PropertyViewAt \n return ; \n } \n \n - if ( propertyBindingDetails . twoWayBinding ) \n - ignoreNextValueModelUpdate = true ; \n - \n valueModelUpdated ( valueModel . getValue ( ) ) ; \n } \n } ) ; \n public abstract class AbstractTypeMappedTwoWayPropertyAttributeTest < IT , VST > ext \n @ test \n public void givenViewBoundWithEither1WayOr2WayBinding_WhenUpdatingValueModel_ThenViewShouldBeUpdated ( ) \n { \n - createAttributeWith2WayBinding ( ) ; \n - SINGLE \n + createAttributeWithEither1WayOr2WayBinding ( ) ; \n \n for ( BindingExpectation < IT , VST > bindingExpectation : bindingExpectations ) \n { \n public class ValueModelUtils \n @ override \n public void setValue ( T newValue ) \n { \n - T oldValue = getValue ( ) ; \n - if ( oldValue == newValue ) \n - return ; \n value = newValue ; \n - fireValueChange ( oldValue , newValue ) ; \n + fireValueChange ( ) ; \n } \n - private void fireValueChange ( Object oldValue , Object newValue ) \n + private void fireValueChange ( ) \n { \n propertyChangeSupport . firePropertyChange ( PROPERTY_VALUE ) ; \n }", "msg_token": "All unit tests passing"} {"diff": " public class SvnCheckinEnvironment implements CheckinEnvironment { \n mySvnVcs = svnVcs ; \n } \n \n - public RevisionsFactory getRevisionsFactory ( ) { \n - return new SvnRevisionsFactory ( mySvnVcs ) ; \n - } \n - \n public RefreshableOnComponent createAdditionalOptionsPanelForCheckinProject ( Refreshable panel ) { \n return new KeepLocksComponent ( panel , true ) ; \n }", "msg_token": "killed most of the old checkin implementation"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ListOrderByPersistentMethod extends AbstractStaticPersistentMethod { \n \n - private static final String METHOD_PATTERN = STRING0 ; \n + private static final String METHOD_PATTERN = STRING1 ; \n \n public ListOrderByPersistentMethod ( SessionFactory sessionFactory , ClassLoader classLoader ) { \n super ( sessionFactory , classLoader , Pattern . compile ( METHOD_PATTERN ) ) ; \n public class ListOrderByPersistentMethod extends AbstractStaticPersistentMethod \n Object [ ] arguments ) { \n \n Matcher match = getPattern ( ) . matcher ( methodName ) ; \n + SINGLE \n + match . find ( ) ; \n \n String nameInSignature = match . group ( NUMBER0 ) ; \n - final String propertyName = nameInSignature . substring ( NUMBER1 , NUMBER1 ) . toLowerCase ( ) + \n + final String propertyName = nameInSignature . substring ( NUMBER1 , NUMBER2 ) . toLowerCase ( ) + \n nameInSignature . substring ( NUMBER2 ) ; \n \n int temp = - NUMBER2 ;", "msg_token": "added call to find on matcher"} {"diff": " public class MongoInputSplit implements Writable , InputSplit { \n log . info ( STRING0 \n + getLength ( ) \n + STRING1 \n - + getLocations ( ) \n + + java . util . Arrays . toString ( getLocations ( ) ) \n + STRING2 \n + _querySpec \n + STRING3", "msg_token": "Fixed log message"} {"diff": " public class FillCapacityWithAffinityWorkerSelectStrategy extends FillCapacityWo \n \n @ override \n public Optional < ImmutableZkWorker > findWorkerForTask ( \n - RemoteTaskRunnerConfig config , ImmutableMap < String , ImmutableZkWorker > zkWorkers , Task task \n + final RemoteTaskRunnerConfig config , \n + final ImmutableMap < String , ImmutableZkWorker > zkWorkers , \n + final Task task \n ) \n { \n SINGLE \n public class FillCapacityWorkerSelectStrategy implements WorkerSelectStrategy \n { \n @ override \n public Optional < ImmutableZkWorker > findWorkerForTask ( \n - RemoteTaskRunnerConfig config , ImmutableMap < String , ImmutableZkWorker > zkWorkers , Task task \n + final RemoteTaskRunnerConfig config , \n + final ImmutableMap < String , ImmutableZkWorker > zkWorkers , \n + final Task task \n ) \n { \n TreeSet < ImmutableZkWorker > sortedWorkers = Sets . newTreeSet (", "msg_token": "address some cr"} {"diff": " public class CordovaWebViewTestActivity extends Activity { \n \n SINGLE \n ConfigXmlParser parser = new ConfigXmlParser ( ) ; \n + parser . parse ( this ) ; \n \n SystemWebView webView = ( SystemWebView ) findViewById ( R . id . cordovaWebView ) ; \n cordovaWebView = new CordovaWebViewImpl ( this , new SystemWebViewEngine ( webView ) ) ;", "msg_token": "Fix manual tests not finding activity plugin"} {"diff": " public class UserManagerService extends IUserManager . Stub { \n COMMENT \n public boolean removeUser ( int userHandle ) { \n checkManageUsersPermission ( STRING0 ) ; \n + if ( getUserRestrictions ( UserHandle . getCallingUserId ( ) ) . getBoolean ( \n + UserManager . DISALLOW_REMOVE_USER , false ) ) { \n + Log . w ( LOG_TAG , STRING1 ) ; \n + return false ; \n + } \n + \n long ident = Binder . clearCallingIdentity ( ) ; \n try { \n final UserInfo user ;", "msg_token": "If DISALLOW_REMOVE_USER is enabled UserManager removeUser should not remove users"} {"diff": " public class Transformer implements ClassFileTransformer \n \n SINGLE \n Label futureIsDoneLabel = new Label ( ) ; \n + futureIsDoneLabel . info = new LabelNode ( ) ; \n SwitchEntry se = new SwitchEntry ( ) ; \n se . frame = frame ; \n se . futureIsDoneLabel = futureIsDoneLabel ;", "msg_token": "fixing a null pointer with a label node"} {"diff": " public final class TestCluster implements Iterable < Client > { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n synchronized void beforeTest ( Random random , double transportClientRatio ) { \n reset ( random , true , transportClientRatio ) ;", "msg_token": "fixed typo in TestCluster"} {"diff": " public class Solo { \n \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n \n class ViewFetcher { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarified javadoc for getCurrentSpinners in Solo and ViewFetcher"} {"diff": " public final class DisplayInfo implements Parcelable { \n @ override \n public void writeToParcel ( Parcel dest , int flags ) { \n dest . writeInt ( layerStack ) ; \n - dest . writeInt ( flags ) ; \n + dest . writeInt ( this . flags ) ; \n dest . writeString ( name ) ; \n dest . writeInt ( appWidth ) ; \n dest . writeInt ( appHeight ) ;", "msg_token": "Fix parceling of display info flags"} {"diff": " public class ReplyMessage < T > { \n \n if ( replyHeader . getNumberReturned ( ) > NUMBER0 ) { \n InputBuffer inputBuffer = new BasicInputBuffer ( responseBuffers . getBodyByteBuffer ( ) ) ; \n - try { \n - while ( documents . size ( ) < replyHeader . getNumberReturned ( ) ) { \n - BSONReader reader = new BSONBinaryReader ( new BSONReaderSettings ( ) , inputBuffer , false ) ; \n - try { \n - documents . add ( decoder . decode ( reader ) ) ; \n - } finally { \n - reader . close ( ) ; \n - } \n + while ( documents . size ( ) < replyHeader . getNumberReturned ( ) ) { \n + BSONReader reader = new BSONBinaryReader ( new BSONReaderSettings ( ) , inputBuffer , false ) ; \n + try { \n + documents . add ( decoder . decode ( reader ) ) ; \n + } finally { \n + reader . close ( ) ; \n } \n - } finally { \n - inputBuffer . close ( ) ; \n } \n } \n }", "msg_token": "Avoid double freeing of ByteBuf of the body"} {"diff": " public final class DefaultStepRunner implements StepRunner , Closeable { \n private final ExecutionContext context ; \n private final ListeningExecutorService listeningExecutorService ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - public DefaultStepRunner ( ExecutionContext context ) { \n - this ( context , NUMBER0 ) ; \n - } \n - \n public DefaultStepRunner ( ExecutionContext context , \n int numThreads ) { \n this ( context , listeningDecorator ( newMultiThreadExecutor ( STRING0 , numThreads ) ) ) ;", "msg_token": "Remove dead code"} {"diff": " final class NativeDaemonConnector implements Runnable { \n LocalSocketAddress . Namespace . RESERVED ) ; \n \n socket . connect ( address ) ; \n + \n + mOutputStream = socket . getOutputStream ( ) ; \n mCallbacks . onDaemonConnected ( ) ; \n \n InputStream inputStream = socket . getInputStream ( ) ; \n - mOutputStream = socket . getOutputStream ( ) ; \n \n byte [ ] buffer = new byte [ BUFFER_SIZE ] ; \n int start = NUMBER0 ;", "msg_token": "Fix SDCard mounting bug in the emulator"} {"diff": " public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh \n \n @ override \n public void onHttpRequestSend ( HttpMessage msg , int initiator , HttpSender sender ) { \n - if ( initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR ) { \n + if ( initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR || initiator == HttpSender . AUTHENTICATION_INITIATOR ) { \n return ; \n } \n \n public class ExtensionHttpSessions extends ExtensionAdaptor implements SessionCh \n @ override \n public void onHttpResponseReceive ( HttpMessage msg , int initiator , HttpSender sender ) { \n if ( initiator == HttpSender . ACTIVE_SCANNER_INITIATOR || initiator == HttpSender . SPIDER_INITIATOR \n - || initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR || initiator == HttpSender . FUZZER_INITIATOR ) { \n + || initiator == HttpSender . CHECK_FOR_UPDATES_INITIATOR || initiator == HttpSender . FUZZER_INITIATOR \n + || initiator == HttpSender . AUTHENTICATION_INITIATOR ) { \n SINGLE \n return ; \n }", "msg_token": "Do not process auth messages for HTTP Sessions tab"} {"diff": " import NAMESPACE ; \n COMMENT \n public class PartialLRUEvictor extends BlockStoreEventListenerBase implements Evictor { \n private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ; \n - private final BlockMetadataManager mMeta ; \n - \n private static final int LINKED_HASH_MAP_INIT_CAPACITY = NUMBER0 ; \n private static final float LINKED_HASH_MAP_INIT_LOAD_FACTOR = FLOAT0 ; \n private static final boolean LINKED_HASH_MAP_ACCESS_ORDERED = true ; \n private static final boolean UNUSED_MAP_VALUE = true ; \n + \n + private final BlockMetadataManager mMeta ; \n \n COMMENT \n COMMENT", "msg_token": "make the statements prettier"} {"diff": " public class ModelMetrics extends Keyed < ModelMetrics > { \n public void reduce ( T mb ) { \n _sumsqe += mb . _sumsqe ; \n _count += mb . _count ; \n - _wsum += _wsum ; \n + _wsum += mb . _wsum ; \n } \n \n public void postGlobal ( ) { }", "msg_token": "Fixed model metrics computation"} {"diff": " public class PrimaryDrawerItem extends BasePrimaryDrawerItem < PrimaryDrawerItem , \n } \n } \n \n - protected static class ViewHolder extends BaseViewHolder { \n + public static class ViewHolder extends BaseViewHolder { \n private View badgeContainer ; \n private TextView badge ;", "msg_token": "Make ViewHolder class public"} {"diff": " public class MongoGraph implements Graph { \n } else if ( ! outVertexId . equals ( vertexId ) ) { \n ( ( MongoVertex ) edge . getOutVertex ( ) ) . removeEdgeId ( edge . getId ( ) , OUT_EDGES ) ; \n } \n + this . edgeCollection . remove ( ( ( MongoEdge ) edge ) . getRawObject ( ) ) ; \n } \n this . vertexCollection . remove ( ( ( MongoVertex ) vertex ) . getRawObject ( ) ) ; \n }", "msg_token": "did some more work on the MongoDB connector"} {"diff": " public class SQLEditor extends SQLEditorBase implements \n releaseExecutionContext ( ) ; \n } else if ( curDataSource != dataSource ) { \n releaseExecutionContext ( ) ; \n - if ( DBeaverCore . getGlobalPreferenceStore ( ) . getBoolean ( DBeaverPreferences . EDITOR_SEPARATE_CONNECTION ) ) { \n + if ( dataSourceContainer . getPreferenceStore ( ) . getBoolean ( DBeaverPreferences . EDITOR_SEPARATE_CONNECTION ) ) { \n try { \n DBeaverUI . runInProgressDialog ( new DBRRunnableWithProgress ( ) { \n @ override", "msg_token": "Use isolated execution contexts in SQL editor"} {"diff": " public class GrailsASTUtils { \n public static MethodNode addDelegateInstanceMethod ( ClassNode classNode , Expression delegate , MethodNode declaredMethod , AnnotationNode markerAnnotation , boolean thisAsFirstArgument ) { \n return addDelegateInstanceMethod ( classNode , delegate , declaredMethod , markerAnnotation , thisAsFirstArgument , null , false ) ; \n } \n - \n + public static MethodNode addDelegateInstanceMethod ( ClassNode classNode , Expression delegate , MethodNode declaredMethod , AnnotationNode markerAnnotation , boolean thisAsFirstArgument , Map < String , ClassNode > genericsPlaceholders ) { \n + return addDelegateInstanceMethod ( classNode , delegate , declaredMethod , markerAnnotation , thisAsFirstArgument , genericsPlaceholders , false ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add previous method signature for backwards compatibility"} {"diff": " public class ExtensionsConfigurationFragment extends SherlockFragment \n \n SINGLE \n List < ExtensionManager . Extension > enabledExtensionsList = new ArrayList < > ( ) ; \n - for ( ComponentName extensionName : mEnabledExtensions ) { \n + List < ComponentName > enabledExtensionNames = new ArrayList < > ( mEnabledExtensions ) ; \n + for ( ComponentName extensionName : enabledExtensionNames ) { \n ExtensionManager . Extension extension = enabledExtensionsMap . get ( extensionName ) ; \n if ( extension == null ) { \n SINGLE \n + mEnabledExtensions . remove ( extensionName ) ; \n continue ; \n } \n enabledExtensionsList . add ( extension ) ;", "msg_token": "Also remove any unavailable extensions to avoid saving them again"} {"diff": " public class JobManager implements DeploymentManager , ExtendedManagementProtocol \n \n private final int recommendedClientPollingInterval ; \n \n - private final ExecutorService executorService = Executors . newSingleThreadExecutor ( ) ; \n + private final ExecutorService executorService = Executors . newCachedThreadPool ( ) ; \n \n private final static int SLEEPINTERVAL = NUMBER0 ; \n \n public class TaskManager implements TaskOperationProtocol , PluginCommunicationPr \n \n private final static int FAILURERETURNCODE = - NUMBER1 ; \n \n - private final static int DEFAULTPERIODICTASKSINTERVAL = NUMBER0 ; \n + private final static int DEFAULTPERIODICTASKSINTERVAL = NUMBER2 ; \n \n COMMENT \n COMMENT", "msg_token": "Changed executor service in JobManager to support larger clusters"} {"diff": " public class MessageInputStreamTest \n } \n } \n \n - @ test ( timeout = NUMBER0 ) \n + @ test ( timeout = NUMBER1 ) \n public void testBlockOnRead ( ) throws Exception \n { \n LocalWebSocketConnection conn = new LocalWebSocketConnection ( testname ) ;", "msg_token": "gave test more time"} {"diff": " public class XBreakpointBase < Self extends XBreakpoint < P > , P extends XBreakpointP \n \n @ override \n public void setLogExpressionObject ( @ nullable XExpression expression ) { \n + setLogExpressionEnabled ( true ) ; \n if ( ! Comparing . equal ( myLogExpression , expression ) ) { \n myLogExpression = expression ; \n fireBreakpointChanged ( ) ; \n public class XBreakpointBase < Self extends XBreakpoint < P > , P extends XBreakpointP \n \n @ override \n public void setConditionExpression ( @ nullable XExpression condition ) { \n + setConditionEnabled ( true ) ; \n if ( ! Comparing . equal ( condition , myCondition ) ) { \n myCondition = condition ; \n fireBreakpointChanged ( ) ;", "msg_token": "fixed Breakpoints tests"} {"diff": " public class TableLayout extends BaseTableLayout < Actor > { \n final String type ; \n \n public DebugRect ( String type , int x , int y , int width , int height ) { \n - super ( x , y , width , height - NUMBER0 ) ; \n + super ( x , y , width , height ) ; \n this . type = type ; \n } \n }", "msg_token": "fixed TableLayout borders"} {"diff": " public class ThirdEyeAvroUtils { \n for ( int i = NUMBER0 ; i < fieldNames . length - NUMBER1 ; i ++ ) { \n String name = fieldNames [ i ] ; \n current = ( GenericRecord ) current . get ( name ) ; \n + if ( current == null ) { \n + return NULL_VALUE ; \n + } \n } \n \n SINGLE \n String terminalField = fieldNames [ fieldNames . length - NUMBER1 ] ; \n Object dimensionObj = current . get ( terminalField ) ; \n + \n if ( dimensionObj == null ) { \n return NULL_VALUE ; \n }", "msg_token": "Handle null nested fields in ThirdeyeAvroUtils"} {"diff": " public class WindowManagerService extends IWindowManager . Stub \n SINGLE \n SINGLE \n transit = AppTransition . TRANSIT_WALLPAPER_CLOSE ; \n - mAnimateWallpaperWithTarget = true ; \n if ( DEBUG_APP_TRANSITIONS ) Slog . v ( TAG , \n STRING0 + transit ) ; \n } else if ( mWallpaperTarget != null && mWallpaperTarget . isVisibleLw ( ) ) {", "msg_token": "Restore jankless transition keyguard to wallpaper"} {"diff": " public class Semaphore { \n if ( sync . tryAcquireShared ( NUMBER0 ) >= NUMBER1 ) return true ; \n return sync . tryAcquireSharedNanos ( NUMBER0 , TimeUnit . MILLISECONDS . toNanos ( msTimeout ) ) ; \n } \n - \n - public boolean isDown ( ) { \n - return sync . isAcquired ( ) ; \n - } \n }", "msg_token": "removed dangerous non thread safe friendly method isDown"} {"diff": " public class Allocation extends BaseObj { \n COMMENT \n COMMENT \n public int getBytesSize ( ) { \n + if ( mType . mDimYuv != NUMBER0 ) { \n + return ( int ) Math . ceil ( mType . getCount ( ) * mType . getElement ( ) . getBytesSize ( ) * FLOAT0 ) ; \n + } \n return mType . getCount ( ) * mType . getElement ( ) . getBytesSize ( ) ; \n }", "msg_token": "Fix getBytesSize for YUV allocations"} {"diff": " public class LocalFileRecordCursor \n @ override \n public void close ( ) \n { \n + reader . close ( ) ; \n } \n \n private static class FilesReader \n public class LocalFileRecordCursor \n return fields ; \n } \n } \n + reader . close ( ) ; \n reader = createNextReader ( ) ; \n newReader = true ; \n } \n public class LocalFileRecordCursor \n long millis = ISO_FORMATTER . parseDateTime ( fields . get ( timestampOrdinalPosition . getAsInt ( ) ) ) . getMillis ( ) ; \n return domain . get ( ) . includesNullableValue ( millis ) ; \n } \n + \n + public void close ( ) \n + { \n + if ( reader != null ) { \n + try { \n + reader . close ( ) ; \n + } \n + catch ( IOException e ) { \n + throw Throwables . propagate ( e ) ; \n + } \n + } \n + } \n } \n }", "msg_token": "Fix leak in local file connector"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class NVarcharType extends CharType { \n \n @ override \n public DatabaseDataType toDatabaseDataType ( Database database ) { \n - if ( database instanceof HsqlDatabase ) { \n + if ( database instanceof HsqlDatabase || database instanceof PostgresDatabase ) { \n return new DatabaseDataType ( STRING0 , getParameters ( ) ) ; \n } \n if ( database instanceof OracleDatabase ) {", "msg_token": "Postgresql does not handle nvarchar type"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class FileBufferManager { \n + public class FileBufferManager { \n \n COMMENT \n COMMENT", "msg_token": "Removed final modifier from FileBufferManager class"} {"diff": " public class EvictionTest extends HazelcastTestSupport { \n } \n \n @ test \n + @ category ( NightlyTest . class ) \n public void testNumberOfEventsFired_withMaxIdleSeconds_whenReadBackupDataEnabled ( ) throws Exception { \n final int maxIdleSeconds = NUMBER0 ; \n final int numberOfEntriesToBeAdded = NUMBER1 ; \n public class EvictionTest extends HazelcastTestSupport { \n map . get ( i ) ; \n } \n \n - assertOpenEventually ( evictedEntryLatch ) ; \n + assertOpenEventually ( evictedEntryLatch , NUMBER2 ) ; \n SINGLE \n SINGLE \n sleepSeconds ( NUMBER3 ) ;", "msg_token": "add testNumberOfEventsFired_withMaxIdleSeconds_whenReadBackupDataEnabled to nightly test"} {"diff": " public abstract class Downsampler { \n } \n \n final Bitmap result = BitmapFactory . decodeStream ( bis , null , options ) ; \n - if ( result == null && ! options . inJustDecodeBounds ) { \n - throw new IllegalArgumentException ( STRING0 + options . inSampleSize ) ; \n - } \n \n try { \n if ( options . inJustDecodeBounds ) {", "msg_token": "remove an uneccessary exception"} {"diff": " public class Client { \n JobGraph job = gen . compileJobGraph ( optPlan ) ; \n job . addJar ( new Path ( prog . getJarFile ( ) . getAbsolutePath ( ) ) ) ; \n \n - try { \n + COMMENT \n File [ ] containedJars = prog . extractContainedLibaries ( ) ; \n if ( containedJars != null ) { \n for ( int i = NUMBER0 ; i < containedJars . length ; i ++ ) { \n public class Client { \n } \n catch ( IOException ioex ) { \n throw new ProgramInvocationException ( STRING0 + ioex . getMessage ( ) , ioex ) ; \n - } \n + COMMENT \n \n return job ; \n }", "msg_token": "Nested JAR file feature of PACT layer causes problems disabled the feature temporarily"} {"diff": " public class PatchTest extends PatchTestCase { \n Patch patch = createPatch ( ) ; \n File f = new File ( myOlderDir , STRING0 ) ; \n try ( FileOutputStream s = new FileOutputStream ( f , true ) ; FileLock ignored = s . getChannel ( ) . lock ( ) ) { \n - String message = UtilsTest . mIsWindows ? STRING1 : ValidationResult . ACCESS_DENIED_MESSAGE ; \n + String message = UtilsTest . mIsWindows ? System . getProperty ( STRING2 ) . contains ( STRING3 ) \n + ? STRING4 : STRING1 \n + : ValidationResult . ACCESS_DENIED_MESSAGE ; \n ValidationResult . Option option = UtilsTest . mIsWindows ? ValidationResult . Option . KILL_PROCESS : ValidationResult . Option . IGNORE ; \n assertThat ( patch . validate ( myOlderDir , TEST_UI ) ) . containsOnly ( \n new ValidationResult ( ValidationResult . Kind . ERROR ,", "msg_token": "tests adopts patch test for both VMs"} {"diff": " public class MainActivity extends Activity { \n STRING0 , \n STRING1 , \n STRING2 , \n - SINGLE \n + STRING3 , \n STRING4 \n \n } ;", "msg_token": "fixed entries in nav drawer"} {"diff": " public class HeliosSoloIT { \n \n @ rule \n public final TemporaryJobs soloTemporaryJobs = TemporaryJobs . builder ( STRING0 ) \n + . hostFilter ( TEST_HOST ) \n . client ( soloClient ) \n . prefixDirectory ( STRING1 ) \n . build ( ) ;", "msg_token": "Add back hostFilter pattern"} {"diff": " public class MimeMessage extends Message { \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public MimeMessage ( InputStream in ) throws IOException , MessagingException { \n parse ( in ) ; \n public class MimeMessage extends Message { \n COMMENT \n COMMENT \n public MimeMessage ( InputStream in , boolean recurse ) throws IOException , MessagingException { \n - parse ( in , true ) ; \n + parse ( in , recurse ) ; \n } \n \n protected void parse ( InputStream in ) throws IOException , MessagingException {", "msg_token": "Fix MimeMessage InputStream in boolean recurse"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class StreamThread extends Thread { \n private void commitOne ( AbstractTask task , long now ) { \n try { \n task . commit ( ) ; \n + } catch ( CommitFailedException e ) { \n + SINGLE \n + log . warn ( STRING0 + task . getClass ( ) . getSimpleName ( ) + STRING1 + task . id ( ) + STRING2 + this . getName ( ) + STRING3 , e ) ; \n } catch ( KafkaException e ) { \n + SINGLE \n log . error ( STRING0 + task . getClass ( ) . getSimpleName ( ) + STRING1 + task . id ( ) + STRING2 + this . getName ( ) + STRING3 , e ) ; \n throw e ; \n }", "msg_token": "catch a commit failure due to rebalance in StreamThread"} {"diff": " import NAMESPACE ; \n COMMENT \n public class WidgetSettings { \n \n + public interface Type { \n + int UPCOMING = NUMBER0 ; \n + int RECENT = NUMBER1 ; \n + int FAVORITES = NUMBER2 ; \n + } \n + \n public static final String SETTINGS_FILE = STRING0 ; \n \n public static final String KEY_PREFIX_WIDGET_BACKGROUND_COLOR = STRING1 ; \n public class WidgetSettings { \n private static final int DEFAULT_WIDGET_BACKGROUND_OPACITY = NUMBER3 ; \n \n public static int getWidgetListType ( Context context , int appWidgetId ) { \n - int type = NUMBER0 ; \n + int type = Type . UPCOMING ; \n try { \n type = Integer . parseInt ( context . getSharedPreferences ( SETTINGS_FILE , NUMBER0 ) \n . getString ( KEY_PREFIX_WIDGET_LISTTYPE + appWidgetId , STRING2 ) ) ;", "msg_token": "Add new Type in WidgetSettings"} {"diff": " public class DomElementsErrorPanel extends JPanel implements CommittablePanel , H \n protected void fillDaemonCodeAnalyzerErrorsSatus ( DaemonCodeAnalyzerStatus status , boolean fillErrorsCount ) { \n for ( int i = NUMBER0 ; i < status . errorCount . length ; i ++ ) { \n final HighlightSeverity minSeverity = SeverityRegistrar . getInstance ( myProject ) . getSeverityByIndex ( i ) ; \n + if ( minSeverity == null ) { \n + continue ; \n + } \n + \n int sum = NUMBER0 ; \n for ( DomElement element : myDomElements ) { \n final DomElementsProblemsHolder holder = myAnnotationsManager . getCachedProblemHolder ( element ) ;", "msg_token": "tolerate nullable HighlighSeverities"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class TransportSearchTypeAction extends TransportAction < SearchRe \n } \n if ( successfulOps . get ( ) == NUMBER0 ) { \n if ( logger . isDebugEnabled ( ) ) { \n - logger . debug ( STRING0 , firstPhaseName ( ) , t ) ; \n + logger . debug ( STRING0 , t , firstPhaseName ( ) ) ; \n } \n SINGLE \n raiseEarlyFailure ( new SearchPhaseExecutionException ( firstPhaseName ( ) , STRING1 , buildShardFailures ( ) ) ) ;", "msg_token": "fixed log to print throwable correctly"} {"diff": " public class SyslogEventHandler implements SyslogServerSessionlessEventHandlerIF \n gelf . setHost ( event . getHost ( ) ) ; \n gelf . setFacility ( Tools . syslogFacilityToReadable ( event . getFacility ( ) ) ) ; \n gelf . setLevel ( event . getLevel ( ) ) ; \n - gelf . setFullMessage ( new String ( event . getRaw ( ) ) ) ; \n \n try { \n SimpleGELFClientHandler gelfHandler = new SimpleGELFClientHandler ( gelf ) ;", "msg_token": "don t set syslog raw message as GELF full message"} {"diff": " public class HttpClientTest extends AbstractHttpClientServerTest \n @ override \n public void succeeded ( List < InetSocketAddress > result ) \n { \n - SINGLE \n - SINGLE \n - result . set ( NUMBER0 , new InetSocketAddress ( STRING0 , NUMBER1 ) ) ; \n + SINGLE \n + SINGLE \n + result . add ( NUMBER0 , new InetSocketAddress ( STRING0 , NUMBER1 ) ) ; \n promise . succeeded ( result ) ; \n }", "msg_token": "Fixed randonly failing test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class FloatingActionButton extends VisibilityAwareImageButton { \n return false ; \n } \n \n - private static boolean isBottomSheet ( View view ) { \n - CoordinatorLayout . LayoutParams lp = \n - ( CoordinatorLayout . LayoutParams ) view . getLayoutParams ( ) ; \n - return lp != null && lp . getBehavior ( ) instanceof BottomSheetBehavior ; \n + private static boolean isBottomSheet ( @ nonnull View view ) { \n + final ViewGroup . LayoutParams lp = view . getLayoutParams ( ) ; \n + if ( lp instanceof CoordinatorLayout . LayoutParams ) { \n + return ( ( CoordinatorLayout . LayoutParams ) lp ) \n + . getBehavior ( ) instanceof BottomSheetBehavior ; \n + } \n + return false ; \n } \n \n @ visiblefortesting", "msg_token": "Fix FloatingActionButton with nested anchors"} {"diff": " public class ActivityFragment extends Fragment implements \n \n mGridView = ( StickyGridHeadersGridView ) v . findViewById ( R . id . gridViewUpcoming ) ; \n mGridView . setEmptyView ( emptyView ) ; \n - mGridView . setAreHeadersSticky ( true ) ; \n + mGridView . setAreHeadersSticky ( false ) ; \n \n return v ; \n } \n public abstract class StreamFragment extends Fragment implements \n \n mGridView . setOnItemClickListener ( this ) ; \n mGridView . setEmptyView ( mEmptyView ) ; \n + mGridView . setAreHeadersSticky ( false ) ; \n \n SINGLE \n showProgressBar ( true ) ;", "msg_token": "Make activity and stream headers not sticky"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "improve Spring java example to prevent initializing for each request"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class CRFClassifierEvaluator < IN extends CoreMap > extends CmdEvaluator { \n + \n private CRFClassifier < IN > classifier ; \n - SINGLE \n + SINGLE \n private String cmdStr = STRING0 ; \n private String [ ] cmd ;", "msg_token": "Fix spelling error in comment"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public classRetryingCaller extends CallerDecorator { \n + public class RetryingCaller extends CallerDecorator { \n private static final Logger LOG = Logger . getLogger ( RetryingCaller . class . getName ( ) ) ; \n \n @ visiblefortesting", "msg_token": "Fix mistaken mistake"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n abstract public class ModelBuilder < M extends Model < M , P , O > , P extends Model . Param \n COMMENT \n COMMENT \n public void init ( boolean expensive ) { \n + SINGLE \n + if ( expensive ) { \n + Log . info ( STRING0 + this . getClass ( ) . getSimpleName ( ) . toString ( ) + STRING1 ) ; \n + Log . info ( new GsonBuilder ( ) . setPrettyPrinting ( ) . create ( ) . toJson ( new JsonParser ( ) . parse ( new String ( _parms . writeJSON ( new AutoBuffer ( ) ) . buf ( ) ) ) ) ) ; \n + } \n + \n SINGLE \n clearInitState ( ) ; \n assert _parms != null ; SINGLE", "msg_token": "Log the parameters when starting to build a model"} {"diff": " public class SVNCommitDialog extends ModalDialogBase \n @ override \n protected void onUnload ( ) \n { \n + super . onUnload ( ) ; \n commitDraft_ = message_ . getText ( ) ; \n session_ . persistClientState ( ) ; \n }", "msg_token": "fix shortcut problem caused by svn commit dialog"} {"diff": " public class ExternalStorageProvider extends DocumentsProvider { \n mIdToRoot = Maps . newHashMap ( ) ; \n mIdToPath = Maps . newHashMap ( ) ; \n \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( ! Environment . isExternalStorageEmulated ( ) ) return true ; \n \n try { \n final String rootId = STRING0 ; \n public class ExternalStorageProvider extends DocumentsProvider { \n row . add ( Document . COLUMN_DISPLAY_NAME , displayName ) ; \n row . add ( Document . COLUMN_SIZE , file . length ( ) ) ; \n row . add ( Document . COLUMN_MIME_TYPE , mimeType ) ; \n - row . add ( Document . COLUMN_LAST_MODIFIED , file . lastModified ( ) ) ; \n row . add ( Document . COLUMN_FLAGS , flags ) ; \n + \n + SINGLE \n + long lastModified = file . lastModified ( ) ; \n + if ( lastModified > NUMBER0 ) { \n + row . add ( Document . COLUMN_LAST_MODIFIED , lastModified ) ; \n + } \n } \n \n @ override", "msg_token": "Treat dates near epoch as unknown"} {"diff": " public class OpenEmbedButton extends ContentViewButton implements View . OnClickLi \n } \n } \n \n - Log . d ( TAG , STRING0 ) ; \n setVisibility ( GONE ) ; \n return false ; \n } \n public class OpenInAppButton extends ContentViewButton implements View . OnClickLi \n return true ; \n } \n \n - Log . d ( TAG , STRING0 ) ; \n setVisibility ( GONE ) ; \n return false ; \n }", "msg_token": "Remove extra logs"} {"diff": " public class GitBlit implements ServletContextListener { \n if ( userService == null ) { \n return ; \n } \n - if ( userService . supportsCookies ( ) ) { \n + GitBlitWebSession session = GitBlitWebSession . get ( ) ; \n + boolean standardLogin = session . authenticationType . isStandard ( ) ; \n + \n + if ( userService . supportsCookies ( ) && standardLogin ) { \n Cookie userCookie ; \n if ( user == null ) { \n SINGLE", "msg_token": "Do not set cookies for sessions authenticated via certificate or container"} {"diff": " public class SmackException extends Exception { \n public NotConnectedException ( ) { \n super ( STRING0 ) ; \n } \n + \n + public NotConnectedException ( XMPPConnection connection , String details ) { \n + super ( STRING1 + connection . toString ( ) + STRING2 \n + + details ) ; \n + } \n } \n \n public static class IllegalStateChangeException extends SmackException { \n public class XMPPTCPConnection extends AbstractXMPPConnection { \n } \n \n protected void throwNotConnectedExceptionIfDoneAndResumptionNotPossible ( ) throws NotConnectedException { \n - if ( done ( ) && ! isSmResumptionPossible ( ) ) { \n + final boolean done = done ( ) ; \n + if ( done ) { \n + final boolean smResumptionPossbile = isSmResumptionPossible ( ) ; \n SINGLE \n - throw new NotConnectedException ( ) ; \n + if ( ! smResumptionPossbile ) { \n + throw new NotConnectedException ( XMPPTCPConnection . this , STRING3 + done \n + + STRING4 + smResumptionPossbile ) ; \n + } \n } \n }", "msg_token": "Add more information to NotConnectedException"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OCommandExecutorSQLSelect extends OCommandExecutorSQLAbstract imple \n final List < ORecordId > resultSet = searchForIndexes ( cls ) ; \n \n if ( resultSet . size ( ) > NUMBER0 ) { \n + OProfiler . getInstance ( ) . updateStatistic ( STRING0 , NUMBER1 ) ; \n + \n SINGLE \n for ( ORecordId rid : resultSet ) \n addResult ( database . load ( rid ) ) ;", "msg_token": "Added the profiling stat entry Query indexUsage when the SQL engine uses the index"} {"diff": " public abstract class AbstractQueryTestCase < QB extends AbstractQueryBuilder < QB > > \n COMMENT \n COMMENT \n public final void testUnknownObjectException ( ) throws IOException { \n - SINGLE \n String validQuery = createTestQueryBuilder ( ) . toString ( ) ; \n + unknownObjectExceptionTest ( validQuery ) ; \n + for ( String query : getAlternateVersions ( ) . keySet ( ) ) { \n + unknownObjectExceptionTest ( query ) ; \n + } \n + } \n + \n + private void unknownObjectExceptionTest ( String validQuery ) throws IOException { \n + SINGLE \n assertThat ( validQuery , containsString ( STRING0 ) ) ; \n int level = NUMBER0 ; \n boolean withinQuotes = false ;", "msg_token": "TEST enable testUnknownObjectException for alternate query versions too"} {"diff": " final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice { \n @ override \n public void onInputAdded ( String inputId ) { \n TvInputInfo tvInfo = mService . getTvInputManager ( ) . getTvInputInfo ( inputId ) ; \n + if ( tvInfo == null ) return ; \n HdmiDeviceInfo info = tvInfo . getHdmiDeviceInfo ( ) ; \n if ( info == null ) return ; \n addTvInput ( inputId , info . getId ( ) ) ;", "msg_token": "Check validity of tvinput id"} {"diff": " class JUnitReporter implements Reporter , Formatter { \n public void match ( Match match ) { \n Description description = executionUnitRunner . describeChild ( steps . remove ( NUMBER0 ) ) ; \n stepNotifier = new EachTestNotifier ( runNotifier , description ) ; \n - stepNotifier . fireTestStarted ( ) ; \n reporter . match ( match ) ; \n } \n \n class JUnitReporter implements Reporter , Formatter { \n stepNotifier . fireTestIgnored ( ) ; \n } else { \n if ( stepNotifier != null ) { \n + SINGLE \n + stepNotifier . fireTestStarted ( ) ; \n if ( error != null ) { \n stepNotifier . addFailure ( error ) ; \n }", "msg_token": "Eclipse JUnit reports inaccurate run count"} {"diff": " public class CassandraStorage extends LoadFunc implements StoreFuncInterface , Lo \n return DoubleType . instance . decompose ( ( Double ) o ) ; \n if ( o instanceof UUID ) \n return ByteBuffer . wrap ( UUIDGen . decompose ( ( UUID ) o ) ) ; \n - return null ; \n + return ByteBuffer . wrap ( ( ( DataByteArray ) o ) . get ( ) ) ; \n } \n \n public void putNext ( Tuple t ) throws ExecException , IOException", "msg_token": "Add catch all cast back to CassandraStorage"} {"diff": " public class EjbIIOPDeploymentUnitProcessor implements DeploymentUnitProcessor { \n beanMethodMap . put ( op . getIDLName ( ) , new SkeletonStrategy ( method ) ) ; \n final OperationAnalysis setop = remoteAttrs [ i ] . getMutatorAnalysis ( ) ; \n if ( setop != null ) { \n - logger . debug ( STRING0 + op . getJavaName ( ) + STRING1 + op . getIDLName ( ) ) ; \n + logger . debug ( STRING0 + setop . getJavaName ( ) + STRING1 + setop . getIDLName ( ) ) ; \n SINGLE \n SINGLE \n final Method realSetmethod = translateMethod ( deploymentReflectionIndex , setop ) ; \n - beanMethodMap . put ( op . getIDLName ( ) , new SkeletonStrategy ( realSetmethod ) ) ; \n + beanMethodMap . put ( setop . getIDLName ( ) , new SkeletonStrategy ( realSetmethod ) ) ; \n } \n }", "msg_token": "Fix IIOP bug with setter methods"} {"diff": " public class CvsCheckinEnvironment implements CheckinEnvironment { \n } \n \n public RefreshableOnComponent createAdditionalOptionsPanelForCheckinProject ( final Refreshable panel ) { \n - return new CvsProjectAdditionalPanel ( panel , myProject ) ; \n + return null ; \n + SINGLE \n + COMMENT \n } \n \n public RefreshableOnComponent createAdditionalOptionsPanel ( Refreshable panel , final boolean checkinProject ) {", "msg_token": "Dropped CVS additonal options since they do not work in new dialog anyway"} {"diff": " public class KMeans extends ModelBuilder < KMeansModel , KMeansModel . KMeansParameter \n System . arraycopy ( clusters [ clu ] , NUMBER0 , value [ clu ] , NUMBER0 , N ) ; \n if ( mults != null ) SINGLE \n for ( int col = ncats ; col < N ; col ++ ) \n - value [ clu ] [ col ] = value [ clu ] [ col ] * mults [ col ] + means [ col ] ; \n + value [ clu ] [ col ] = value [ clu ] [ col ] / mults [ col ] + means [ col ] ; \n } \n return value ; \n }", "msg_token": "Fix denormalize in K means was multiplying instead of dividing"} {"diff": " public final class Settings { \n PUBLIC_SETTINGS . add ( SOUND_EFFECTS_ENABLED ) ; \n PUBLIC_SETTINGS . add ( HAPTIC_FEEDBACK_ENABLED ) ; \n PUBLIC_SETTINGS . add ( SHOW_WEB_SUGGESTIONS ) ; \n + PUBLIC_SETTINGS . add ( VIBRATE_WHEN_RINGING ) ; \n } \n \n COMMENT \n public final class Settings { \n PRIVATE_SETTINGS . add ( VIBRATE_IN_SILENT ) ; \n PRIVATE_SETTINGS . add ( MEDIA_BUTTON_RECEIVER ) ; \n PRIVATE_SETTINGS . add ( HIDE_ROTATION_LOCK_TOGGLE_FOR_ACCESSIBILITY ) ; \n - PRIVATE_SETTINGS . add ( VIBRATE_WHEN_RINGING ) ; \n PRIVATE_SETTINGS . add ( DTMF_TONE_TYPE_WHEN_DIALING ) ; \n PRIVATE_SETTINGS . add ( HEARING_AID ) ; \n PRIVATE_SETTINGS . add ( TTY_MODE ) ;", "msg_token": "Allow white listed apps to change VIBRATE_WHEN_RINGING"} {"diff": " public class PyStringConcatenationToFormatIntention extends BaseIntentionAction \n if ( expression == null ) { \n return false ; \n } \n - final boolean isStringLiteral = expression instanceof PyStringLiteralExpression ; \n - final PyType type = expression . getType ( TypeEvalContext . slow ( ) ) ; \n + if ( expression instanceof PyStringLiteralExpression ) \n + continue ; \n + final PyType type = expression . getType ( TypeEvalContext . fastStubOnly ( file ) ) ; \n final boolean isStringReference = PyTypeChecker . match ( cache . getStringType ( LanguageLevel . forElement ( expression ) ) , \n - type , TypeEvalContext . slow ( ) ) && type != null ; \n - if ( ! ( isStringLiteral || ( ( expression instanceof PyReferenceExpression || expression instanceof PyCallExpression ) && \n - isStringReference ) ) ) { \n + type , TypeEvalContext . fastStubOnly ( file ) ) && type != null ; \n + if ( ! isStringReference ) { \n return false ; \n } \n }", "msg_token": "used fast context for intention"} {"diff": " public class SelectionCommands { \n min = NUMBER0 , \n max = NUMBER0 \n ) \n - @ commandpermissions ( { STRING0 } ) \n + @ commandpermissions ( { STRING1 } ) \n public static void inset ( CommandContext args , WorldEdit we , \n LocalSession session , LocalPlayer player , EditSession editSession ) \n throws WorldEditException {", "msg_token": "Fixed permission for outset"} {"diff": " public class ReaderCommentAdapter extends RecyclerView . Adapter < RecyclerView . View \n } \n \n @ override \n - public void onBindViewHolder ( RecyclerView . ViewHolder holder , final int position ) { \n + public void onBindViewHolder ( RecyclerView . ViewHolder holder , int position ) { \n if ( holder instanceof PostHeaderHolder ) { \n PostHeaderHolder headerHolder = ( PostHeaderHolder ) holder ; \n headerHolder . mHeaderView . setPost ( mPost ) ; \n public class ReaderCommentAdapter extends RecyclerView . Adapter < RecyclerView . View \n commentHolder . countLikes . postDelayed ( new Runnable ( ) { \n @ override \n public void run ( ) { \n - setLike ( commentHolder . countLikes . getContext ( ) , commentHolder , position , true ) ; \n + setLike ( commentHolder . countLikes . getContext ( ) , commentHolder , commentHolder \n + . getAdapterPosition ( ) , true ) ; \n } \n } , NUMBER0 ) ;", "msg_token": "don t set position to final"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n public class MockName {", "msg_token": "added license header"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DetailActivity extends AppCompatActivity { \n title . setText ( itemTitle ) ; \n } \n \n + @ override public boolean dispatchTouchEvent ( MotionEvent motionEvent ) { \n + try { \n + return super . dispatchTouchEvent ( motionEvent ) ; \n + } catch ( NullPointerException e ) { \n + return false ; \n + } \n + } \n + \n private void initActivityTransitions ( ) { \n if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { \n Slide transition = new Slide ( ) ;", "msg_token": "Fix CoordinatorLayout NullPointerException in onTouchEvent"} {"diff": " public class BooleanExpressionTests extends ExpressionTestCase { \n } \n \n public void testBooleanErrors01 ( ) { \n - evaluateAndCheckError ( STRING0 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER0 ) ; \n - evaluateAndCheckError ( STRING1 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER1 ) ; \n + evaluateAndCheckError ( STRING2 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER0 ) ; \n + evaluateAndCheckError ( STRING3 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER1 ) ; \n evaluateAndCheckError ( STRING4 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER1 ) ; \n evaluateAndCheckError ( STRING5 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER2 ) ; \n - evaluateAndCheckError ( STRING6 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER2 ) ; \n + evaluateAndCheckError ( STRING7 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER2 ) ; \n evaluateAndCheckError ( STRING8 , SpelMessages . TYPE_CONVERSION_ERROR , NUMBER3 ) ; \n } \n }", "msg_token": "fixed some tests that will now break because int long can be treated as boolean"} {"diff": " public class IvyArtifactNotationParserFactory implements Factory < NotationParser < \n \n @ override \n public void describe ( Collection < String > candidateFormats ) { \n - candidateFormats . add ( STRING0 ) ; \n + candidateFormats . add ( STRING1 ) ; \n } \n } \n \n public class MavenArtifactNotationParserFactory implements Factory < NotationParse \n \n @ override \n public void describe ( Collection < String > candidateFormats ) { \n - candidateFormats . add ( STRING2 ) ; \n + candidateFormats . add ( STRING1 ) ; \n } \n }", "msg_token": "Fixed up artifact notation descriptions"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class FixedEnsembleBuilder implements EnsembleBuilder \n return true ; SINGLE \n } \n \n - return clusterState . hasDeadInstances ( ) ; \n + if ( ! clusterState . hasDeadInstances ( ) ) \n + { \n + exhibitor . getLog ( ) . add ( ActivityLog . Type . INFO , STRING0 ) ; \n + return false ; \n + } \n + \n + return true ; \n } \n \n @ override", "msg_token": "Add a log message when the fixed ensemble size is reached and the instance can t be added"} {"diff": " public class GroovyPositionManager implements PositionManager { \n return parent == null ? null : parent + STRING0 + typeDefinition . getName ( ) + suffix ; \n } \n \n - for ( ScriptPositionManagerHelper helper : ScriptPositionManagerHelper . EP_NAME . getExtensions ( ) ) { \n - final String s = helper . customizeClassName ( typeDefinition ) ; \n - if ( s != null ) { \n - return s ; \n + PsiFile file = typeDefinition . getContainingFile ( ) ; \n + if ( file instanceof GroovyFile ) { \n + for ( ScriptPositionManagerHelper helper : ScriptPositionManagerHelper . EP_NAME . getExtensions ( ) ) { \n + String s = helper . isAppropriateScriptFile ( ( GroovyFile ) file ) ? helper . customizeClassName ( typeDefinition ) : null ; \n + if ( s != null ) { \n + return s ; \n + } \n } \n }", "msg_token": "don t call groovy position manager helpers on files they don t handle fix"} {"diff": " import NAMESPACE ; \n public class AdaptiveReceiveBufferSizePredictor implements \n ReceiveBufferSizePredictor { \n \n + SINGLE \n + SINGLE \n + \n private static final int INDEX_INCREMENT = NUMBER0 ; \n private static final int INDEX_DECREMENT = NUMBER1 ;", "msg_token": "Added a FIXME as a reminder for API redesign"} {"diff": " public class UIUtil { \n \n @ suppresswarnings ( { STRING0 } ) \n public static boolean isUnderWindowsLookAndFeel ( ) { \n - return UIManager . getLookAndFeel ( ) . getName ( ) . equals ( STRING1 ) ; \n + return SystemInfo . isWindows && UIManager . getLookAndFeel ( ) . getName ( ) . equals ( STRING1 ) ; \n } \n \n @ suppresswarnings ( { STRING0 } ) \n public class UIUtil { \n \n @ suppresswarnings ( { STRING0 } ) \n public static boolean isUnderGTKLookAndFeel ( ) { \n - return UIManager . getLookAndFeel ( ) . getName ( ) . contains ( STRING2 ) ; \n + return SystemInfo . isXWindow && UIManager . getLookAndFeel ( ) . getName ( ) . contains ( STRING2 ) ; \n } \n \n public static final Color GTK_AMBIANCE_TEXT_COLOR = new Color ( NUMBER0 , NUMBER1 , NUMBER2 ) ;", "msg_token": "system LAF check optimization"} {"diff": " public final class Monitors { \n Class < ? > c , String id , com . netflix . servo . annotations . Monitor anno ) { \n MonitorConfig . Builder builder = MonitorConfig . builder ( anno . name ( ) ) ; \n builder . withTag ( STRING0 , c . getSimpleName ( ) ) ; \n - if ( anno . type ( ) == DataSourceType . COUNTER ) { \n - builder . withTag ( DataSourceType . COUNTER ) ; \n - } \n + builder . withTag ( anno . type ( ) ) ; \n if ( id != null ) { \n builder . withTag ( STRING1 , id ) ; \n }", "msg_token": "always add the type tag on wrapped annotations"} {"diff": " import NAMESPACE ; \n public class LockPatternUtils { \n \n private static final String TAG = STRING0 ; \n + private static final boolean DEBUG = false ; \n \n COMMENT \n COMMENT \n public class LockPatternUtils { \n return false ; \n } \n \n - \n - return true ; \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( DEBUG ) Log . d ( TAG , STRING1 ) ; \n + return false ; \n } \n \n COMMENT", "msg_token": "Disabling FUL in keyguard and screen lock settings"} {"diff": " public class DataSourceTransactionManagerAutoConfiguration { \n \n @ conditionalonmissingbean ( AbstractTransactionManagementConfiguration . class ) \n @ configuration \n - @ enabletransactionmanagement \n + @ enabletransactionmanagement ( proxyTargetClass = true ) \n protected static class TransactionManagementConfiguration { \n \n }", "msg_token": "Set proxy target class for transaction managers"} {"diff": " public class CompilerConfigurationImpl extends CompilerConfiguration implements \n removeWildcardPatterns ( ) ; \n } \n try { \n - addWildcardResourcePattern ( STRING0 ) ; \n addWildcardResourcePattern ( STRING1 ) ; \n + addWildcardResourcePattern ( STRING0 ) ; \n addWildcardResourcePattern ( STRING2 ) ; \n addWildcardResourcePattern ( STRING3 ) ; \n + addWildcardResourcePattern ( STRING4 ) ; \n addWildcardResourcePattern ( STRING5 ) ; \n addWildcardResourcePattern ( STRING6 ) ; \n }", "msg_token": "excluded scala files from the list of default resources"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "hotfix Remove unused ProcessingTimeService from Evictor"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Sets { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Sets { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Sets { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Sets { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed the compilation errors"} {"diff": " public class GoSdkType extends SdkType { \n @ override \n public void setupSdkPaths ( @ notnull Sdk sdk ) { \n SdkModificator modificator = sdk . getSdkModificator ( ) ; \n - add ( modificator , new File ( sdk . getHomePath ( ) , STRING0 ) ) ; SINGLE \n + add ( modificator , new File ( sdk . getHomePath ( ) , STRING1 ) ) ; SINGLE \n modificator . commitChanges ( ) ; \n }", "msg_token": "add src pkg"} {"diff": " public class DiskCache < O extends Serializable > { \n this . system2 = system2 ; \n this . file = file ; \n OutputStream output = null ; \n + boolean threw = true ; \n try { \n SINGLE \n SINGLE \n output = new ObjectOutputStream ( new FileOutputStream ( file ) ) ; \n output . flush ( ) ; \n - \n - SINGLE \n - system2 . close ( output ) ; \n + threw = false ; \n } catch ( IOException e ) { \n - SINGLE \n - IOUtils . closeQuietly ( output ) ; \n throw new IllegalStateException ( STRING0 + file , e ) ; \n + } finally { \n + if ( threw ) { \n + SINGLE \n + IOUtils . closeQuietly ( output ) ; \n + } else { \n + SINGLE \n + system2 . close ( output ) ; \n + } \n } \n }", "msg_token": "Fix closing of stream"} {"diff": " public class GroupLocalServiceImpl extends GroupLocalServiceBaseImpl { \n resourceLocalService . deleteResource ( resource ) ; \n } \n \n - String className = PortalUtil . getClassName ( group . getClassNameId ( ) ) ; \n + long organizationClassNameId = PortalUtil . getClassNameId ( \n + Organization . class . getName ( ) ) ; \n \n if ( ( ( group . getClassNameId ( ) <= NUMBER0 ) && ( group . getClassPK ( ) <= NUMBER0 ) ) || \n - ( className . equals ( Organization . class . getName ( ) ) ) ) { \n + ( group . getClassNameId ( ) == organizationClassNameId ) ) { \n \n resourceLocalService . deleteResource ( \n group . getCompanyId ( ) , Group . class . getName ( ) ,", "msg_token": "Fix error in deleting groups"} {"diff": " public final class IOUtil { \n if ( ! fileNow . exists ( ) ) { \n throw new HazelcastException ( format ( STRING0 , \n fileNow , fileToBe , fileNow ) ) ; \n - \n } \n if ( ! fileToBe . exists ( ) ) { \n throw new HazelcastException ( format ( STRING1 , \n fileNow , fileToBe , fileToBe ) ) ; \n - \n } \n if ( ! fileToBe . delete ( ) ) { \n throw new HazelcastException ( format ( STRING2 , \n public final class IOUtil { \n } \n } \n \n - \n private static final class ClassLoaderAwareObjectInputStream extends ObjectInputStream { \n \n private final ClassLoader classLoader ;", "msg_token": "Removed superfluous newlines in IOUtil"} {"diff": " public class VersionCommand extends Command { \n if ( ! testPermission ( sender ) ) return true ; \n \n if ( args . length == NUMBER0 ) { \n - sender . sendMessage ( STRING0 + ChatColor . GREEN + Bukkit . getName ( ) + ChatColor . WHITE + STRING1 + ChatColor . GREEN + Bukkit . getVersion ( ) ) ; \n - sender . sendMessage ( STRING2 ) ; \n + sender . sendMessage ( STRING0 + Bukkit . getName ( ) + STRING1 + Bukkit . getVersion ( ) + STRING3 + Bukkit . getBukkitVersion ( ) + STRING4 ) ; \n } else { \n StringBuilder name = new StringBuilder ( ) ;", "msg_token": "Made version output same as startup output"} {"diff": " public class CrossfadeDrawerLayoutActvitiy extends AppCompatActivity { \n . build ( ) ; \n \n SINGLE \n + SINGLE \n crossfadeDrawerLayout = new CrossfadeDrawerLayout ( this ) ; \n \n SINGLE \n public class MiniDrawerActivity extends AppCompatActivity { \n int secondWidth = ( int ) UIUtils . convertDpToPixel ( NUMBER0 , this ) ; \n \n SINGLE \n + SINGLE \n crossFader = new Crossfader ( ) \n . withContent ( findViewById ( R . id . crossfade_content ) ) \n . withFirst ( result . getSlider ( ) , firstWidth )", "msg_token": "add links to open source libraries used for CrossfadeDrawerLayout and MiniDrawer"} {"diff": " public class LwjglAudioRenderer implements AudioRenderer , Runnable { \n alSource3f ( id , AL_POSITION , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n alSource3f ( id , AL_VELOCITY , NUMBER0 , NUMBER0 , NUMBER0 ) ; \n } else { \n + alSourcei ( id , AL_SOURCE_RELATIVE , AL_FALSE ) ; \n updateSourceParam ( src , AudioParam . Position ) ; \n updateSourceParam ( src , AudioParam . Velocity ) ; \n updateSourceParam ( src , AudioParam . MaxDistance ) ; \n public class LwjglAudioRenderer implements AudioRenderer , Runnable { \n alSource3f ( id , AL_VELOCITY , vel . x , vel . y , vel . z ) ; \n alSourcef ( id , AL_MAX_DISTANCE , src . getMaxDistance ( ) ) ; \n alSourcef ( id , AL_REFERENCE_DISTANCE , src . getRefDistance ( ) ) ; \n + alSourcei ( id , AL_SOURCE_RELATIVE , AL_FALSE ) ; \n \n if ( src . isReverbEnabled ( ) ) { \n int filter = EFX10 . AL_FILTER_NULL ;", "msg_token": "Fixed positional audio to actually be positional"} {"diff": " public abstract class AnimationAdapter extends RecyclerView . Adapter < RecyclerView \n @ override public void onBindViewHolder ( RecyclerView . ViewHolder holder , int position ) { \n mAdapter . onBindViewHolder ( holder , position ) ; \n \n - if ( ! isFirstOnly || position > mLastPosition ) { \n + if ( ! isFirstOnly || holder . getAdapterPosition ( ) > mLastPosition ) { \n for ( Animator anim : getAnimators ( holder . itemView ) ) { \n anim . setDuration ( mDuration ) . start ( ) ; \n anim . setInterpolator ( mInterpolator ) ; \n } \n - mLastPosition = position ; \n + mLastPosition = holder . getAdapterPosition ( ) ; \n } else { \n ViewHelper . clear ( holder . itemView ) ; \n }", "msg_token": "Fixing the lint issue"} {"diff": " public class StreamingLogInput { \n jssc . start ( ) ; \n SINGLE \n jssc . awaitTermination ( NUMBER0 ) ; \n + SINGLE \n + jssc . stop ( ) ; \n } \n }", "msg_token": "call stop at the end"} {"diff": " public class EditingPreferencesPane extends PreferencesPane \n add ( indent ( tabWidth_ = numericPref ( STRING0 , prefs . numSpacesForTab ( ) ) ) ) ; \n add ( tight ( showMargin_ = checkboxPref ( STRING1 , prefs . showMargin ( ) ) ) ) ; \n add ( indent ( marginCol_ = numericPref ( STRING2 , prefs . printMarginColumn ( ) ) ) ) ; \n - add ( checkboxPref ( STRING3 , prefs_ . insertMatching ( ) ) ) ; \n + add ( checkboxPref ( STRING4 , prefs_ . insertMatching ( ) ) ) ; \n add ( checkboxPref ( STRING5 , prefs_ . softWrapRFiles ( ) ) ) ; \n add ( checkboxPref ( STRING6 , prefs_ . syntaxColorConsole ( ) ) ) ; \n add ( checkboxPref ( STRING7 , prefs_ . saveAllBeforeBuild ( ) ) ) ;", "msg_token": "shorten name of matching paren quote option"} {"diff": " public class OObjectEntityClassHandler extends OEntityManagerClassHandler { \n public synchronized void registerEntityClass ( String iClassName , Class < ? > iClass , boolean forceSchemaReload ) { \n if ( ! OObjectEntitySerializer . isToSerialize ( iClass ) && ! iClass . isEnum ( ) ) { \n OObjectEntitySerializer . registerClass ( iClass , forceSchemaReload ) ; \n - super . registerEntityClass ( iClassName , iClass ) ; \n + super . registerEntityClass ( iClassName , iClass , forceSchemaReload ) ; \n } \n }", "msg_token": "forgot one method"} {"diff": " public final class TicketGrantingTicketImpl extends AbstractTicket implements Ti \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "fixed javadoc issue"} {"diff": " \n \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n public class JavadocTagInfoTest { \n JavadocTagInfo . Type . INLINE , \n } ; \n JavadocTagInfo . Type [ ] actual = JavadocTagInfo . Type . values ( ) ; \n - assertEquals ( expected , actual ) ; \n + assertArrayEquals ( expected , actual ) ; \n } \n \n @ test", "msg_token": "Replace assertEquals with arrayAssertEquals"} {"diff": " public class PinnedSectionListView extends ListView { \n \n @ override \n public void setAdapter ( ListAdapter adapter ) { \n - if ( BuildConfig . DEBUG ) { SINGLE \n + if ( BuildConfig . DEBUG && adapter != null ) { SINGLE \n if ( ! ( adapter instanceof PinnedSectionListAdapter ) ) \n throw new IllegalArgumentException ( STRING0 ) ; \n if ( adapter . getViewTypeCount ( ) < NUMBER0 ) \n throw new IllegalArgumentException ( STRING1 ) ; \n } \n + destroyPinnedShadow ( ) ; \n super . setAdapter ( adapter ) ; \n }", "msg_token": "reseting pinned section when new adapter is set"} {"diff": " extends BaseTest < A , AP , B , S , B2S , BS , L , X , DATE , BOOL , D , T , U , UU , I , IPK , T7 \n } \n \n public void testCrossJoin ( ) throws Exception { \n - if ( dialect ( ) . family ( ) == ACCESS ) { \n - log . info ( STRING0 , STRING1 ) ; \n - return ; \n - } \n + COMMENT \n + xx xxxxxxxxxxxxxxxxxxx xx xxxxxxx x \n + xxxxxxxxxxxxxxxxxxxx xxxxxx xxxx xxxxxxxx \n + xxxxxxx \n + x \n + COMMENT \n \n Result < Record > result ;", "msg_token": "Added missing pro section"} {"diff": " public class CustomViewAbove extends ViewGroup { \n } \n \n private boolean isInIgnoredView ( MotionEvent ev ) { \n + Rect rect = new Rect ( ) ; \n for ( View v : mIgnoredViews ) { \n - if ( v . getLeft ( ) < ev . getX ( ) && \n - ev . getX ( ) < v . getRight ( ) && \n - v . getTop ( ) < ev . getY ( ) && \n - ev . getY ( ) < v . getBottom ( ) ) { \n - return true ; \n - } \n + v . getHitRect ( rect ) ; \n + if ( rect . contains ( ( int ) ev . getX ( ) , ( int ) ev . getY ( ) ) ) return true ; \n } \n return false ; \n }", "msg_token": "Use getHitRect to check if a view is in Ignore Views"} {"diff": " public class SystemStoreConstants { \n \n + STRING0 \n + STRING1 \n - + STRING2 \n + + STRING3 \n + STRING4 \n + STRING5 \n + STRING6 \n public class SystemStoreConstants { \n \n + STRING0 \n + STRING7 \n - + STRING2 \n + + STRING3 \n + STRING4 \n + STRING5 \n + STRING6", "msg_token": "Changed routing strategy for system stores to all routing"} {"diff": " public class PlanGenerator { \n prevState = nextState ; \n continue ; \n } \n - COMMENT \n \n edgeElapsedTime = nextState . getTimeInMillis ( ) \n - nextState . getBackState ( ) . getTimeInMillis ( ) ; \n public class PlanGenerator { \n SINGLE \n COMMENT \n if ( backEdge instanceof FreeEdge ) { \n + leg . mode = frontEdgeNarrative . getMode ( ) . toString ( ) ; \n prevState = nextState ; \n continue ; \n }", "msg_token": "fix switching between biking and walking"} {"diff": " public class NodeTraversor { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n - public void traverse ( Node root , String namespace ) { \n + public void traverse ( Node root ) { \n Node node = root ; \n int depth = NUMBER0 ; \n \n public class NodeTraversor { \n } \n } \n } \n - \n - public void traverse ( Node root ) \n - { \n - traverse ( root , null ) ; \n - } \n }", "msg_token": "Removed unused change from PR"} {"diff": " public class Capsule implements Runnable { \n private List < String > getNativeDependencies0 ( ) { \n return getListAttribute ( ATTR_NATIVE_DEPENDENCIES ) ; \n } \n - \n - private boolean hasRenamedNativeDependencies ( ) { \n - for ( String depAndRename : nullToEmpty ( getNativeDependencies ( ) ) ) { \n - if ( depAndRename . contains ( STRING0 ) ) \n - return true ; \n - } \n - return false ; \n - } \n SINGLE \n \n private List < String > buildJVMArgs ( List < String > cmdLine ) {", "msg_token": "remove dead hasRenamedNativeDependencies"} {"diff": " abstract class AsyncHttpResponseImpl extends FilteredDataEmitter implements Asyn \n LineEmitter liner = new LineEmitter ( ) ; \n exchange . setDataCallback ( liner ) ; \n liner . setLineCallback ( mHeaderCallback ) ; \n - \n + \n mSocket . setEndCallback ( mReporter ) ; \n mSocket . setClosedCallback ( new CompletedCallback ( ) { \n @ override \n public class ResponseCacheMiddleware extends SimpleMiddleware { \n cacheHitCount ++ ; \n data . request . logi ( STRING0 ) ; \n final CachedSocket socket = entry . isHttps ( ) ? new CachedSSLSocket ( ( EntrySecureCacheResponse ) candidate ) : new CachedSocket ( ( EntryCacheResponse ) candidate ) ; \n + rawResponseHeaders . removeAll ( STRING1 ) ; \n + rawResponseHeaders . removeAll ( STRING2 ) ; \n + rawResponseHeaders . set ( STRING3 , String . valueOf ( snapshot . getLength ( ENTRY_BODY ) ) ) ; \n socket . pending . add ( ByteBuffer . wrap ( rawResponseHeaders . toHeaderString ( ) . getBytes ( ) ) ) ; \n \n client . getServer ( ) . post ( new Runnable ( ) {", "msg_token": "Fix cached responses coming in with the incorrect encodings and content length"} {"diff": " public class GeometryUtils { \n \n return low + ( differenceRequestedLow / differenceHighLow ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static double computePartialLength ( Coordinate [ ] coordinates , int index ) { \n + if ( index < NUMBER0 ) return NUMBER1 ; SINGLE \n + if ( index >= coordinates . length ) index = coordinates . length - NUMBER0 ; SINGLE \n + \n + Coordinate [ ] array = new Coordinate [ index + NUMBER0 ] ; \n + \n + for ( int i = NUMBER1 ; i <= index ; i ++ ) { \n + array [ i ] = coordinates [ i ] ; \n + } \n + \n + CoordinateSequence sequence = gf . getCoordinateSequenceFactory ( ) . create ( array ) ; \n + LineString lineString = new LineString ( sequence , gf ) ; \n + \n + return lineString . getLength ( ) ; \n + } \n }", "msg_token": "Implement computePartialLength method"} {"diff": " public class ConvertVariadicParamIntention extends BaseIntentionAction { \n public void invoke ( @ notnull Project project , Editor editor , PsiFile file ) throws IncorrectOperationException { \n replaceSubscriptions ( project ) ; \n replaceCallElements ( project ) ; \n - if ( canRemove ) { \n + COMMENT \n removeKwarg ( ) ; \n - } \n + COMMENT \n canRemove = true ; \n } \n \n public class ConvertVariadicParamIntention extends BaseIntentionAction { \n myKeywordContainer . delete ( ) ; \n } \n \n + \n private void replaceCallElements ( Project project ) { \n PyElementGenerator elementGenerator = PyElementGenerator . getInstance ( project ) ; \n int size = myCallElements . size ( ) ;", "msg_token": "fixed removing of kwargs in ConvertVariadicParamIntention"} {"diff": " public class KotlinToJavaTypesMap { \n private void init ( ) { \n JetStandardLibrary standardLibrary = JetStandardLibrary . getInstance ( ) ; \n \n - register ( JetStandardClasses . getNothing ( ) , JET_NOTHING_TYPE ) ; SINGLE \n register ( JetStandardClasses . getAny ( ) , Object . class ) ; \n register ( standardLibrary . getNumber ( ) , Number . class ) ; \n register ( standardLibrary . getString ( ) , String . class ) ;", "msg_token": "removed senseless mapping from jet Nothing to jet Nothing"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n \n COMMENT", "msg_token": "removed dev import"} {"diff": " public class OSQLFunctionRuntime extends OSQLFilterItemAbstract { \n \n } \n } else if ( configuredParameters [ i ] instanceof OSQLPredicate ) \n - runtimeParameters [ i ] = ( ( OSQLPredicate ) configuredParameters [ i ] ) . evaluate ( iContext ) ; \n + runtimeParameters [ i ] = ( ( OSQLPredicate ) configuredParameters [ i ] ) . evaluate ( ( ORecord < ? > ) iCurrentRecord , iCurrentResult , \n + iContext ) ; \n } \n \n final Object functionResult = function . execute ( iCurrentRecord , iCurrentResult , runtimeParameters , iContext ) ;", "msg_token": "SQL fixed runtime f x usage of evaluate passing curren record"} {"diff": " public final class ShardCompactor \n Page page = null ; \n while ( isNullOrEmptyPage ( page ) && ! pageSource . isFinished ( ) ) { \n page = pageSource . getNextPage ( ) ; \n + if ( page != null ) { \n + page . assureLoaded ( ) ; \n + } \n } \n return page ; \n } \n public final class ShardCompactor \n return NUMBER0 ; \n } \n \n + if ( ! other . hasNext ( ) ) { \n + return - NUMBER0 ; \n + } \n + \n for ( int i = NUMBER1 ; i < sortIndexes . size ( ) ; i ++ ) { \n int index = sortIndexes . get ( i ) ;", "msg_token": "Fix comparator for shard compactor"} {"diff": " public class QueryKey implements Serializable { \n } \n \n public boolean equals ( Object other ) { \n - if ( ! ( other instanceof QueryKey ) ) return false ; \n - QueryKey that = ( QueryKey ) other ; \n + if ( ! ( other instanceof QueryKey ) ) return false ; \n + QueryKey that = ( QueryKey ) other ; \n if ( ! sqlQueryString . equals ( that . sqlQueryString ) ) return false ; \n if ( ! EqualsHelper . equals ( firstRow , that . firstRow ) || ! EqualsHelper . equals ( maxRows , that . maxRows ) ) return false ; \n if ( ! EqualsHelper . equals ( customTransformer , that . customTransformer ) ) return false ;", "msg_token": "reformat fix for fragile QueryKey equals"} {"diff": " public final class ZlibCodecFactory { \n } \n \n public static ZlibEncoder newZlibEncoder ( int compressionLevel , int windowBits , int memLevel , byte [ ] dictionary ) { \n - if ( PlatformDependent . javaVersion ( ) < NUMBER0 || \n - windowBits != DEFAULT_JDK_WINDOW_SIZE || memLevel != DEFAULT_JDK_MEM_LEVEL || \n - noJdkZlibEncoder ) { \n + if ( PlatformDependent . javaVersion ( ) < NUMBER0 || noJdkZlibEncoder || \n + windowBits != DEFAULT_JDK_WINDOW_SIZE || memLevel != DEFAULT_JDK_MEM_LEVEL ) { \n return new JZlibEncoder ( compressionLevel , windowBits , memLevel , dictionary ) ; \n } else { \n return new JdkZlibEncoder ( compressionLevel , dictionary ) ;", "msg_token": "Check noJdkZlibEncoder before comparing other parameters"} {"diff": " public abstract class DestinationFolderComboBox extends ComboboxWithBrowseButton \n editorComboBox . addDocumentListener ( new DocumentAdapter ( ) { \n @ override \n public void documentChanged ( DocumentEvent e ) { \n - setComboboxModel ( getComboBox ( ) , initialSourceRoot , fileIndex , mySourceRoots , project , false , errorMessageUpdater ) ; \n + JComboBox comboBox = getComboBox ( ) ; \n + DirectoryChooser . ItemWrapper selectedItem = ( DirectoryChooser . ItemWrapper ) comboBox . getSelectedItem ( ) ; \n + setComboboxModel ( comboBox , selectedItem != null ? fileIndex . getSourceRootForFile ( selectedItem . getDirectory ( ) . getVirtualFile ( ) ) : initialSourceRoot , fileIndex , mySourceRoots , project , false , errorMessageUpdater ) ; \n } \n } ) ; \n setComboboxModel ( getComboBox ( ) , initialSourceRoot , fileIndex , mySourceRoots , project , false , errorMessageUpdater ) ;", "msg_token": "preserve selection when possible"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n public class BuildCraftStateMapper extends StateMapperBase { \n public static final BuildCraftStateMapper INSTANCE = new BuildCraftStateMapper ( ) ; \n \n public class BuildCraftStateMapper extends StateMapperBase { \n \n @ override \n protected ModelResourceLocation getModelResourceLocation ( IBlockState state ) { \n - if ( state . getBlock ( ) == BuildCraftEnergy . blockOil ) { \n - BCLog . logger . info ( STRING0 + state ) ; \n - } \n ResourceLocation location = ( ResourceLocation ) Block . blockRegistry . getNameForObject ( state . getBlock ( ) ) ; \n location = new ResourceLocation ( location . getResourceDomain ( ) . replace ( STRING1 , STRING2 ) , location . getResourcePath ( ) ) ; \n return new ModelResourceLocation ( location , getPropertyString ( state ) ) ;", "msg_token": "Remove debugging message"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public enum BlockStoreContext { \n INSTANCE ;", "msg_token": "Refining a comment"} {"diff": " public class EeSubsystemTestCase extends AbstractSubsystemBaseTest { \n } \n \n private void testTransformersDiscardGlobalModules1_0_0 ( ModelTestControllerVersion controllerVersion ) throws Exception { \n - \n + if ( controllerVersion . isEap ( ) ) { \n + ignoreThisTestIfEAPRepositoryIsNotReachable ( ) ; \n + } \n String subsystemXml = readResource ( STRING0 ) ; \n ModelVersion modelVersion = ModelVersion . create ( NUMBER0 , NUMBER1 , NUMBER1 ) ; \n SINGLE", "msg_token": "Fix EeSubsystemTestCase EAP tests for community users"} {"diff": " public class WifiStateMachine extends StateMachine { \n COMMENT \n InterfaceConfiguration ifcg = null ; \n try { \n - ifcg = mNwService . getInterfaceConfig ( mInterfaceName ) ; \n + ifcg = mNwService . getInterfaceConfig ( mTetherInterfaceName ) ; \n if ( ifcg != null ) { \n ifcg . setLinkAddress ( \n new LinkAddress ( NetworkUtils . numericToInetAddress ( STRING0 ) , NUMBER0 ) ) ; \n - mNwService . setInterfaceConfig ( mInterfaceName , ifcg ) ; \n + mNwService . setInterfaceConfig ( mTetherInterfaceName , ifcg ) ; \n } \n } catch ( Exception e ) { \n - loge ( STRING1 + mInterfaceName + STRING2 + e ) ; \n + loge ( STRING1 + mTetherInterfaceName + STRING2 + e ) ; \n } \n \n if ( mCm . untether ( mTetherInterfaceName ) != ConnectivityManager . TETHER_ERROR_NO_ERROR ) {", "msg_token": "Fix interface name for tethering"} {"diff": " public class AntlrTask extends SourceTask { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ inputfiles", "msg_token": "Add comment about overriding the getSource method in AntlrTask"} {"diff": " import static NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CapturingArgumentsTest extends TestBase { \n } \n \n @ test \n + public void shouldCaptureWhenStubbingOnlyWhenEntireInvocationMatches ( ) { \n + SINGLE \n + ArgumentCaptor < String > argument = new ArgumentCaptor < String > ( ) ; \n + when ( mock . simpleMethod ( argument . capture ( ) , eq ( NUMBER0 ) ) ) . thenReturn ( STRING0 ) ; \n + \n + SINGLE \n + mock . simpleMethod ( STRING1 , NUMBER1 ) ; \n + mock . simpleMethod ( STRING2 , NUMBER0 ) ; \n + \n + SINGLE \n + Assertions . assertThat ( argument . getAllValues ( ) ) . containsOnly ( STRING2 ) ; \n + } \n + \n + @ test \n public void shouldSaySomethingSmartWhenMisused ( ) { \n ArgumentCaptor < Person > argument = new ArgumentCaptor < Person > ( ) ; \n try {", "msg_token": "In order to have better functional coverage added missing test"} {"diff": " public class VirtualFileManagerImpl extends VirtualFileManagerEx implements Appl \n public void fireBeforeRefreshStart ( boolean asynchronous ) { \n if ( myRefreshCount ++ == NUMBER0 ) { \n for ( final VirtualFileManagerListener listener : myVirtualFileManagerListeners ) { \n - listener . beforeRefreshStart ( asynchronous ) ; \n + try { \n + listener . beforeRefreshStart ( asynchronous ) ; \n + } \n + catch ( Exception e ) { \n + LOG . error ( e ) ; \n + } \n } \n } \n } \n public class VirtualFileManagerImpl extends VirtualFileManagerEx implements Appl \n public void fireAfterRefreshFinish ( boolean asynchronous ) { \n if ( -- myRefreshCount == NUMBER0 ) { \n for ( final VirtualFileManagerListener listener : myVirtualFileManagerListeners ) { \n - listener . afterRefreshFinish ( asynchronous ) ; \n + try { \n + listener . afterRefreshFinish ( asynchronous ) ; \n + } \n + catch ( Exception e ) { \n + LOG . error ( e ) ; \n + } \n } \n } \n }", "msg_token": "exception from one listener doesn t block entire refresh operation"} {"diff": " public class DefaultCamelContext extends ServiceSupport implements CamelContext , \n for ( RouteService routeService : routeServices ) { \n DefaultRouteStartupOrder order = doPrepareRouteToBeStarted ( routeService ) ; \n SINGLE \n - if ( order != null ) { \n - if ( checkClash && doCheckStartupOrderClash ( order , inputs ) ) { \n - inputs . put ( order . getStartupOrder ( ) , order ) ; \n - } else { \n - inputs . put ( order . getStartupOrder ( ) , order ) ; \n - } \n + if ( checkClash ) { \n + doCheckStartupOrderClash ( order , inputs ) ; \n } \n + inputs . put ( order . getStartupOrder ( ) , order ) ; \n } \n \n SINGLE", "msg_token": "Fixed sonortype reported issue"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n public class ReadOnlyStatusDialog extends OptionsDialog { \n private static final SimpleTextAttributes BOLD_ATTRIBUTES = \n - new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , UIUtil . getListForeground ( ) ) ; \n + new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , JBColor . foreground ( ) ) ; \n private static final SimpleTextAttributes SELECTED_BOLD_ATTRIBUTES = \n - new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , UIUtil . getListSelectionForeground ( ) ) ; \n + new SimpleTextAttributes ( SimpleTextAttributes . STYLE_BOLD , new JBColor ( UIUtil : : getListSelectionForeground ) ) ; \n \n private JPanel myTopPanel ; \n private JList myFileList ;", "msg_token": "don t use UIUtil getListForeground as JBColor parameter"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n public class KernelTemplateMain implements TestKernelTemplateFactory { \n \n public class KernelTemplateMain implements TestKernelTemplateFactory { \n ret . add ( new DoubleToStringKernelTemplateTest ( ) ) ; \n ret . add ( new DoubleToStringKernelTemplateBuilderTest ( ) ) ; \n ret . add ( new GpuParametersTest ( ) ) ; \n + ret . add ( new GpuVectorMapTest2 ( ) ) ; \n return ret ; \n }", "msg_token": "fixing up last commit"} {"diff": " public class DevicePolicyManagerService extends IDevicePolicyManager . Stub { \n if ( userHandle == UserHandle . USER_OWNER ) { \n wipeDataLocked ( flags ) ; \n } else { \n - lockNowUnchecked ( ) ; \n mHandler . post ( new Runnable ( ) { \n public void run ( ) { \n try { \n ActivityManagerNative . getDefault ( ) . switchUser ( UserHandle . USER_OWNER ) ; \n - ( mUserManager ) \n - . removeUser ( userHandle ) ; \n + mUserManager . removeUser ( userHandle ) ; \n } catch ( RemoteException re ) { \n SINGLE \n }", "msg_token": "Don t turn off screen after wiping user profiles"} {"diff": " public class ReactEditText extends EditText { \n \n @ override \n public boolean requestFocus ( int direction , Rect previouslyFocusedRect ) { \n + SINGLE \n + SINGLE \n + if ( isFocused ( ) ) { \n + return true ; \n + } \n if ( ! mIsJSSettingFocus ) { \n return false ; \n }", "msg_token": "Make text in text inputs selectable"} {"diff": " public class Note extends Syncable { \n COMMENT \n COMMENT \n @ override \n - public JSONObject getDiffableValue ( ) { \n + synchronized public JSONObject getDiffableValue ( ) { \n return mNoteJSON ; \n }", "msg_token": "Set getDiffableValue as synchronized in the Note model"} {"diff": " public class RequestHandler { \n private void resetBuilder ( RequestEnvelopeOuterClass . RequestEnvelope . Builder builder ) { \n builder . setStatusCode ( NUMBER0 ) ; \n builder . setRequestId ( NUMBER1 ) ; \n - if ( lastAuth != null && lastAuth . getExpireTimestampMs ( ) > NUMBER2 ) { \n + if ( lastAuth != null && \n + lastAuth . getExpireTimestampMs ( ) > NUMBER2 && \n + lastAuth . getExpireTimestampMs ( ) > System . currentTimeMillis ( ) ) { \n builder . setAuthTicket ( lastAuth ) ; \n } else { \n + Log . d ( TAG , STRING0 ) ; \n builder . setAuthInfo ( auth ) ; \n } \n builder . setUnknown12 ( NUMBER3 ) ;", "msg_token": "refresh expired auth tickets"} {"diff": " public class ValidationTest extends ContextTestSupport { \n try { \n template . sendBodyAndHeader ( STRING0 , STRING1 , STRING2 , STRING3 ) ; \n } catch ( RuntimeCamelException e ) { \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n \n assertMockEndpointsSatisfied ( ) ;", "msg_token": "Corrected the comment"} {"diff": " abstract public class AbstractS3SnapshotRestoreTest extends AbstractAwsTest { \n Settings settings = internalCluster ( ) . getInstance ( Settings . class ) ; \n Settings bucket = settings . getByPrefix ( STRING0 ) ; \n AmazonS3 s3Client = internalCluster ( ) . getInstance ( AwsS3Service . class ) . client ( \n - bucket . get ( STRING1 , settings . get ( STRING2 ) ) , \n - bucket . get ( STRING3 , settings . get ( STRING4 ) ) , \n + null , \n + null , \n bucket . get ( STRING5 , settings . get ( STRING6 ) ) , \n bucket . get ( STRING7 , settings . get ( STRING8 ) ) , \n bucket . get ( STRING9 , settings . get ( STRING10 ) ) ) ;", "msg_token": "Remove unnecessary settings in test method"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n COMMENT \n COMMENT \n public final class AdminThread extends ClosableThread implements MediaDriverFaca \n { \n requestTermMessage . reset ( sendBuffer ) ; \n requestTermMessage . currentVersion ( ) ; \n + requestTermMessage . headerType ( HDR_TYPE_REQUEST_TERM ) ; \n requestTermMessage . sessionId ( sessionId ) ; \n requestTermMessage . channelId ( channelId ) ; \n requestTermMessage . termId ( termId ) ;", "msg_token": "Fix a missing header type"} {"diff": " public class EigenvectorCentralityArnoldiTest extends EigenvectorCentralityTest \n { \n SINGLE \n } \n + \n + @ test \n + @ override \n + public void testWeightAndDirection ( ) \n + { \n + SINGLE \n + } \n }", "msg_token": "Ignored randomly failing test it doesn t test exposed code anyways"} {"diff": " class ProjectStoreImpl extends BaseFileConfigurableStoreImpl implements IProject \n } \n } \n catch ( StateStorage . StateStorageException e ) { \n - LOG . error ( e ) ; \n + LOG . info ( e ) ; \n throw new IOException ( e . getMessage ( ) ) ; \n } \n }", "msg_token": "removed log error"} {"diff": " public class AccountActivity extends BasePhilmActivity { \n COMMENT \n protected void onCreate ( Bundle icicle ) { \n super . onCreate ( icicle ) ; \n - setContentView ( R . layout . activity_main ) ; \n + setContentView ( R . layout . activity_account ) ; \n \n mAccountAuthenticatorResponse = \n getIntent ( ) . getParcelableExtra ( AccountManager . KEY_ACCOUNT_AUTHENTICATOR_RESPONSE ) ;", "msg_token": "Fix login screen showing drawer"} {"diff": " public class SourceMap { \n public static class LocationMapping { \n final String prefix ; \n final String replacement ; \n - LocationMapping ( String prefix , String replacement ) { \n + public LocationMapping ( String prefix , String replacement ) { \n this . prefix = prefix ; \n this . replacement = replacement ; \n } \n public class SourceMap { \n } \n } \n \n + SINGLE \n + if ( fixed == null ) { \n + fixed = sourceFile ; \n + } \n + \n sourceLocationFixupCache . put ( sourceFile , fixed ) ; \n return fixed ; \n }", "msg_token": "Fixed the visibility of SourceMap LocationMapping class"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix the build"} {"diff": " public class SearchEverywhereAction extends AnAction implements CustomComponentA \n public void run ( ) { \n try { \n check ( ) ; \n - \n + myList . getEmptyText ( ) . setText ( STRING0 ) ; \n SINGLE \n SwingUtilities . invokeLater ( new Runnable ( ) { \n @ override \n public void run ( ) { \n SINGLE \n myList . setModel ( myListModel ) ; \n - myList . getEmptyText ( ) . setText ( STRING0 ) ; \n myTitleIndexes . clear ( ) ; \n clearModel ( ) ; \n myAlreadyAddedFiles . clear ( ) ;", "msg_token": "SearchEverywhere shows Searching if the popup is empty"} {"diff": " public class IconRoundCornerProgressBar extends BaseRoundCornerProgressBar { \n @ override \n protected void setGradientRadius ( GradientDrawable gradient ) { \n int radius = getRadius ( ) - ( getPadding ( ) / NUMBER0 ) ; \n - gradient . setCornerRadii ( new float [ ] { NUMBER1 , NUMBER1 , radius , radius , radius , radius , NUMBER1 , NUMBER1 } ) ; \n + if ( isReverse ) { \n + gradient . setCornerRadii ( new float [ ] { radius , radius , radius , radius , radius , radius , radius , radius } ) ; \n + } \n } \n \n @ override", "msg_token": "Fix IconRoundCornerProgressBar reverse"} {"diff": " public class SelectBase extends AbstractBaseTest { \n } \n \n @ test \n - @ excludein ( { FIREBIRD , SQLSERVER } ) SINGLE \n + @ excludein ( { FIREBIRD } ) SINGLE \n public void Math ( ) { \n - Expression < Double > expr = Expressions . numberTemplate ( Double . class , STRING0 ) ; \n + Expression < Double > expr = Expressions . numberTemplate ( Double . class , STRING1 ) ; \n \n assertEquals ( Math . acos ( FLOAT0 ) , singleResult ( MathExpressions . acos ( expr ) ) , FLOAT1 ) ; \n assertEquals ( Math . asin ( FLOAT0 ) , singleResult ( MathExpressions . asin ( expr ) ) , FLOAT1 ) ;", "msg_token": "Fix Math tests MSSQL Server"} {"diff": " public class JUnitXmlResultWriter { \n private final TestResultsProvider testResultsProvider ; \n private final TestOutputAssociation outputAssociation ; \n \n - public JUnitXmlResultWriter ( String hostName , TestResultsProvider testResultsProvider ) { \n - this ( hostName , testResultsProvider , TestOutputAssociation . WITH_SUITE ) ; \n - } \n - \n public JUnitXmlResultWriter ( String hostName , TestResultsProvider testResultsProvider , TestOutputAssociation outputAssociation ) { \n this . hostName = hostName ; \n this . testResultsProvider = testResultsProvider ;", "msg_token": "Removed unused method"} {"diff": " public class StreamRuleResource extends RestResource { \n @ timed \n @ apioperation ( value = STRING0 ) \n @ produces ( MediaType . APPLICATION_JSON ) \n + SINGLE \n public List < StreamRuleTypeResponse > types ( @ apiparam ( name = STRING1 , value = STRING2 , required = true ) \n @ pathparam ( STRING1 ) String streamid ) { \n final List < StreamRuleTypeResponse > result = new ArrayList < > ( StreamRuleType . values ( ) . length ) ;", "msg_token": "Adding TODO marker for stream rules type method"} {"diff": " public class BuildCraftTransport { \n } \n } \n \n - private static Item createPipe ( int defaultID , Class < ? extends Pipe > clas , String descr , Object ingredient1 , Object ingredient2 , Object ingredient3 ) { \n + public static Item createPipe ( int defaultID , Class < ? extends Pipe > clas , String descr , Object ingredient1 , Object ingredient2 , Object ingredient3 ) { \n String name = Character . toLowerCase ( clas . getSimpleName ( ) . charAt ( NUMBER0 ) ) + clas . getSimpleName ( ) . substring ( NUMBER1 ) ; \n \n Property prop = BuildCraftCore . mainConfiguration . getItem ( name + STRING0 , defaultID ) ;", "msg_token": "to allow use of the pipe creation method"} {"diff": " import static NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n - public final class GraphSONUtility { \n + public class GraphSONUtility { \n \n private static final JsonNodeFactory jsonNodeFactory = JsonNodeFactory . instance ; \n private static final JsonFactory jsonFactory = new MappingJsonFactory ( ) ;", "msg_token": "Remove the final keyword from GraphSONUtility"} {"diff": " public final class BlockWorker extends AbstractWorker { \n COMMENT \n private final FileSystemMasterClient mFileSystemMasterClient ; \n \n - COMMENT \n - private SpaceReserver mSpaceReserver = null ; \n COMMENT \n private BlockHeartbeatReporter mHeartbeatReporter ; \n COMMENT", "msg_token": "Remove unused mSpaceReserver field"} {"diff": " public class MethodDefinition { \n writer . printSignedIntAsDec ( registerNumber ) ; \n if ( parameterName != null ) { \n writer . write ( STRING0 ) ; \n + SINGLE \n writer . write ( parameterName ) ; \n } \n writer . write ( STRING1 ) ;", "msg_token": "Add TODO regarding parameter local names"} {"diff": " public class ServletHttpHandlerAdapter extends HttpServlet { \n \n private volatile boolean completed = false ; \n \n + private volatile boolean flushOnNext = false ; \n + \n private Subscription subscription ; \n \n + \n public ResponseBodySubscriber ( ServletAsyncContextSynchronizer synchronizer , \n int bufferSize ) { \n this . synchronizer = synchronizer ; \n public class ServletHttpHandlerAdapter extends HttpServlet { \n ServletOutputStream output = synchronizer . getResponse ( ) . getOutputStream ( ) ; \n \n boolean ready = output . isReady ( ) ; \n + \n + if ( flushOnNext ) { \n + flush ( output ) ; \n + ready = output . isReady ( ) ; \n + } \n + \n logger . trace ( STRING0 + ready + STRING1 + dataBuffer ) ; \n \n if ( ready ) { \n public class ServletHttpHandlerAdapter extends HttpServlet { \n logger . trace ( STRING2 ) ; \n try { \n output . flush ( ) ; \n + flushOnNext = false ; \n } \n catch ( IOException ignored ) { \n } \n + } else { \n + flushOnNext = true ; \n } \n }", "msg_token": "Fixed Servlet flush"} {"diff": " public class DDLTask extends Task < DDLWork > implements Serializable { \n tbl . setDbName ( names [ NUMBER0 ] ) ; \n tbl . setTableName ( names [ NUMBER1 ] ) ; \n \n + SINGLE \n + tbl . setOwner ( SessionState . getUserFromAuthenticator ( ) ) ; \n + \n if ( crtTbl . getLocation ( ) != null ) { \n tbl . setDataLocation ( new Path ( crtTbl . getLocation ( ) ) ) ; \n } else {", "msg_token": "Create table LIKE command doesn t set new owner Pala M Muthaia via Ashutosh Chauhan"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class PluginModule extends Graylog2Module { \n pluginConfigBeans . addBinding ( ) . toInstance ( pluginConfigBean ) ; \n } \n } \n + \n + protected void addTransport ( String name , Class < ? extends Transport > transportClass ) { \n + installTransport ( transportMapBinder ( ) , name , transportClass ) ; \n + } \n + \n + protected void addCodec ( String name , Class < ? extends Codec > codecClass ) { \n + installCodec ( codecMapBinder ( ) , name , codecClass ) ; \n + } \n }", "msg_token": "Add helper methods to register Transports and Codecs in plugins"} {"diff": " public class DetailsOverviewRowPresenter extends RowPresenter { \n layoutParams . topMargin = layoutParams . bottomMargin = verticalMargin ; \n applyBackground ( vh . mOverviewView ) ; \n vh . mRightPanel . setBackground ( null ) ; \n + vh . mImageView . setBackground ( null ) ; \n } else { \n layoutParams . leftMargin = layoutParams . topMargin = layoutParams . bottomMargin = NUMBER0 ; \n applyBackground ( vh . mRightPanel ) ; \n + applyBackground ( vh . mImageView ) ; \n vh . mOverviewView . setBackground ( null ) ; \n } \n if ( scaleImage ) {", "msg_token": "add background for transparent image"} {"diff": " public class TestAsyncContextImpl extends TomcatBaseTest { \n private static final long REQUEST_TIME = NUMBER0 ; \n SINGLE \n private static final long TIMEOUT_MARGIN = NUMBER1 ; \n + SINGLE \n + private static final long ERROR_MARGIN = NUMBER2 ; \n SINGLE \n private static final long TIMEOUT = NUMBER3 ; \n \n public class TestAsyncContextImpl extends TomcatBaseTest { \n for ( int j = NUMBER4 ; j < count ; j ++ ) { \n Entry entry = entries . get ( j ) ; \n assertEquals ( status , entry . getStatus ( ) ) ; \n - assertTrue ( entry . toString ( ) , entry . getTime ( ) >= minTime ) ; \n - assertTrue ( entry . toString ( ) , entry . getTime ( ) < maxTime ) ; \n + assertTrue ( entry . toString ( ) , \n + entry . getTime ( ) >= minTime - ERROR_MARGIN ) ; \n + assertTrue ( entry . toString ( ) , \n + entry . getTime ( ) < maxTime + ERROR_MARGIN ) ; \n } \n }", "msg_token": "Add an additional error margin to avoid false test failures"} {"diff": " public class RealmQuery < E extends RealmObject > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RealmQuery < E extends RealmObject > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RealmQuery < E extends RealmObject > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RealmQuery < E extends RealmObject > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added missing method docs"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class NewSignInActivity extends AppCompatActivity implements WPComMagicLinkFragment . OnMagicLinkFragmentInteraction , NewSignInActivityFragment . OnEmailCheckListener { \n + public class NewSignInActivity extends AppCompatActivity implements WPComMagicLinkFragment . OnMagicLinkFragmentInteraction , NewSignInFragment . OnEmailCheckListener { \n public String mEmail = STRING0 ; \n \n @ override \n public class NewSignInActivity extends AppCompatActivity implements WPComMagicLi \n FragmentManager fragmentManager = getFragmentManager ( ) ; \n FragmentTransaction fragmentTransaction = fragmentManager . beginTransaction ( ) ; \n \n - NewSignInActivityFragment fragment = new NewSignInActivityFragment ( ) ; \n + NewSignInFragment fragment = new NewSignInFragment ( ) ; \n fragmentTransaction . add ( R . id . fragment_container , fragment ) ; \n fragmentTransaction . commit ( ) ; \n }", "msg_token": "Calling new name of class"} {"diff": " public final class XContentBuilder { \n } \n \n public XContentBuilder value ( Object value ) throws IOException { \n + if ( value == null ) { \n + return nullValue ( ) ; \n + } \n Class type = value . getClass ( ) ; \n if ( type == String . class ) { \n value ( ( String ) value ) ; \n public class RestSearchAction extends BaseRestHandler { \n builder . endObject ( ) ; \n channel . sendResponse ( new XContentRestResponse ( request , OK , builder ) ) ; \n } catch ( Exception e ) { \n + if ( logger . isDebugEnabled ( ) ) { \n + logger . debug ( STRING0 , e ) ; \n + } \n onFailure ( e ) ; \n } \n }", "msg_token": "building search response should handle cases where the sort is null valued"} {"diff": " public class ArrayMemory extends Memory implements Iterable < ReferenceMemory > { \n \n @ override \n public Memory valueOfIndex ( TraceInfo trace , String index ) { \n - Memory e = getByScalar ( index ) ; \n + Memory number = StringMemory . toLong ( index ) ; \n + Memory e = number == null ? getByScalar ( index ) : getByScalar ( number ) ; \n return e == null ? UNDEFINED : e ; \n }", "msg_token": "Fix array access with numeric string key"} {"diff": " import static NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MultiPartSpecBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public MultiPartSpecBuilder ( Object content ) { \n Validate . notNull ( content , STRING0 ) ; \n public class MultiPartSpecBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public MultiPartSpecBuilder ( InputStream content ) { \n this ( ( Object ) content ) ; \n public class MultiPartSpecBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public MultiPartSpecBuilder ( String content ) { \n this ( ( Object ) content ) ; \n public class MultiPartSpecBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public MultiPartSpecBuilder ( byte [ ] content ) { \n this ( ( Object ) content ) ; \n public class MultiPartSpecBuilder { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n public MultiPartSpecBuilder ( File content ) { \n this ( ( Object ) content ) ;", "msg_token": "Cleaned up javadoc"} {"diff": " public class RhinoHookDefinition implements HookDefinition { \n this . location = location ; \n } \n \n - Function getFunction ( ) { \n - return fn ; \n - } \n - \n @ override \n public String getLocation ( boolean detail ) { \n return location . getFileName ( ) + STRING0 + location . getLineNumber ( ) ;", "msg_token": "Remove unused method"} {"diff": " public class AstridNewSyncMigrator { \n @ autowired private UpdateDao updateDao ; \n @ autowired private UserDao userDao ; \n \n - private static final String PREF_SYNC_MIGRATION = STRING0 ; \n + public static final String PREF_SYNC_MIGRATION = STRING0 ; \n \n private static final String LOG_TAG = STRING1 ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class AstridNewSyncMigrationTest extends NewSyncTestCase { \n @ autowired \n private MetadataDao metadataDao ; \n \n - public void testAstrid44Migration ( ) { \n + public void testAstridSyncMigration ( ) { \n setupOldDatabase ( ) ; \n + Preferences . clear ( AstridNewSyncMigrator . PREF_SYNC_MIGRATION ) ; \n new AstridNewSyncMigrator ( ) . performMigration ( ) ; \n assertAllModelsHaveUUID ( ) ; \n assertAllTagsHaveTagData ( ) ;", "msg_token": "Fixed a bug where the sync migration test would only work the first time"} {"diff": " public class MediaController extends FrameLayout { \n \n if ( ! mShowing && mAnchor != null ) { \n setProgress ( ) ; \n + if ( mPauseButton != null ) { \n + mPauseButton . requestFocus ( ) ; \n + } \n disableUnsupportedButtons ( ) ; \n \n int [ ] anchorpos = new int [ NUMBER0 ] ; \n public class MediaController extends FrameLayout { \n keyCode == KeyEvent . KEYCODE_SPACE ) ) { \n doPauseResume ( ) ; \n show ( sDefaultTimeout ) ; \n + if ( mPauseButton != null ) { \n + mPauseButton . requestFocus ( ) ; \n + } \n return true ; \n } else if ( keyCode == KeyEvent . KEYCODE_MEDIA_STOP ) { \n if ( mPlayer . isPlaying ( ) ) {", "msg_token": "When bringing up the media controller view focus the play pause button"} {"diff": " public final class DatabaseUtil \n T dao = handle . attach ( daoType ) ; \n return method . invoke ( dao , args ) ; \n } \n - catch ( DBIException | InvocationTargetException e ) { \n + catch ( DBIException e ) { \n throw metadataError ( e ) ; \n } \n + catch ( InvocationTargetException e ) { \n + throw metadataError ( e . getCause ( ) ) ; \n + } \n } ) ; \n }", "msg_token": "Remove extra InvocationTargetException in stacktrace"} {"diff": " import static NAMESPACE ; \n \n public class GUtil { \n private static final Pattern WORD_SEPARATOR = Pattern . compile ( STRING0 ) ; \n - private static final Pattern UPPER_LOWER = Pattern . compile ( STRING1 ) ; \n + private static final Pattern UPPER_LOWER = Pattern . compile ( STRING2 ) ; \n \n public static < T extends Collection > T flatten ( Object [ ] elements , T addTo , boolean flattenMaps ) { \n return flatten ( asList ( elements ) , addTo , flattenMaps ) ;", "msg_token": "Change camel case regex to support numbers"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class HelloWorldApplication extends Application < HelloWorldConfiguration > \n environment . healthChecks ( ) . register ( STRING0 , new TemplateHealthCheck ( template ) ) ; \n environment . jersey ( ) . getResourceConfig ( ) . getResourceFilterFactories ( ) . add ( new DateNotSpecifiedFilterFactory ( ) ) ; \n \n - environment . jersey ( ) . register ( new BasicAuthFactory < User > ( new ExampleAuthenticator ( ) , \n + environment . jersey ( ) . register ( AuthFactory . binder ( new BasicAuthFactory < > ( new ExampleAuthenticator ( ) , \n STRING1 , \n - User . class ) ) ; \n + User . class ) ) ) ; \n environment . jersey ( ) . register ( new HelloWorldResource ( template ) ) ; \n environment . jersey ( ) . register ( new ViewResource ( ) ) ; \n environment . jersey ( ) . register ( new ProtectedResource ( ) ) ;", "msg_token": "Fix authentication in dropwizard example"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter implements ChannelOutboundHandler { \n public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter impleme \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ChannelOutboundHandlerAdapter extends ChannelHandlerAdapter impleme \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix ChannelOutboundHandlerAdapter javadoc"} {"diff": " public class PyReferenceExpressionImpl extends PyElementImpl implements PyRefere \n \n @ nullable \n public static PyType getTypeFromTarget ( final PsiElement target ) { \n + final PyType pyType = getReferenceTypeFromProviders ( target ) ; \n + if ( pyType != null ) { \n + return pyType ; \n + } \n if ( target instanceof PyTargetExpression && PyNames . NONE . equals ( ( ( PyTargetExpression ) target ) . getName ( ) ) ) { \n return PyNoneType . INSTANCE ; \n } \n public class PyReferenceExpressionImpl extends PyElementImpl implements PyRefere \n PsiFile file = ( ( PsiDirectory ) target ) . findFile ( PyNames . INIT_DOT_PY ) ; \n if ( file != null ) return getTypeFromTarget ( file ) ; \n } \n - return getReferenceTypeFromProviders ( target ) ; \n + return null ; \n } \n \n @ nullable", "msg_token": "ask type from providers before looking at resolve result"} {"diff": " public class CardView extends BaseCardView { \n protected void setupExpandAction ( ) { \n \n SINGLE \n - if ( ( mInternalExpandLayout != null && mCardHeader != null && mCardHeader . isButtonExpandVisible ( ) ) || \n - mCard . getViewToClickToExpand ( ) != null ) { \n + if ( mInternalExpandLayout != null && ( ( mCardHeader != null && mCardHeader . isButtonExpandVisible ( ) ) || \n + mCard . getViewToClickToExpand ( ) != null ) ) { \n \n SINGLE \n mInternalExpandLayout . getViewTreeObserver ( ) . addOnPreDrawListener (", "msg_token": "prevent possible NPE if mInternalExpandLayout is null"} {"diff": " public class ListHeaders { \n \n public static Address [ ] getListPostAddresses ( Message message ) { \n String [ ] headerValues = getHeaderValues ( message , LIST_POST_HEADER ) ; \n - if ( headerValues == null || headerValues . length < NUMBER0 ) { \n + if ( headerValues . length < NUMBER0 ) { \n return new Address [ NUMBER1 ] ; \n } \n \n public class ReplyToParserTest { \n when ( message . getFrom ( ) ) . thenReturn ( arrayConcatenate ( FROM_ADDRESSES , REPLY_TO_ADDRESSES , Address . class ) ) ; \n when ( message . getRecipients ( RecipientType . TO ) ) . thenReturn ( arrayConcatenate ( FROM_ADDRESSES , TO_ADDRESSES , Address . class ) ) ; \n when ( message . getRecipients ( RecipientType . CC ) ) . thenReturn ( arrayConcatenate ( CC_ADDRESSES , TO_ADDRESSES , Address . class ) ) ; \n + when ( message . getHeader ( ListHeaders . LIST_POST_HEADER ) ) . thenReturn ( new String [ NUMBER1 ] ) ; \n \n ReplyToAddresses recipientsToReplyAllTo = replyToParser . getRecipientsToReplyAllTo ( message , account ) ;", "msg_token": "Fix test instead of adding null check to ListHeaders"} {"diff": " public class Library < T > { \n SINGLE \n \n public void put ( final int pID , final T pItem ) { \n - this . mItems . put ( pID , pItem ) ; \n + final T existingItem = this . mItems . get ( pID ) ; \n + if ( existingItem == null ) { \n + this . mItems . put ( pID , pItem ) ; \n + } else { \n + throw new IllegalArgumentException ( STRING0 + pID + STRING1 + existingItem . toString ( ) + STRING2 ) ; \n + } \n + } \n + \n + public void remove ( final int pID ) { \n + this . mItems . remove ( pID ) ; \n } \n \n public T get ( final int pID ) {", "msg_token": "Added check to Library so that IDs can not be used twice"} {"diff": " public class CatchAllStatement extends Statement { \n if ( first . type == TYPE_TRYCATCH && first . varDefinitions . isEmpty ( ) && isFinally && \n ! labeled && ! first . isLabeled ( ) && ( lstSuccs . isEmpty ( ) || ! lstSuccs . get ( NUMBER0 ) . explicit ) ) { \n String content = ExprProcessor . jmpWrapper ( first , indent , true ) ; \n - content = content . substring ( NUMBER0 , content . length ( ) - NUMBER1 ) ; \n + content = content . substring ( NUMBER0 , content . length ( ) - new_line_separator . length ( ) ) ; \n \n buf . append ( content ) ; \n } else {", "msg_token": "incorrect line separator trimming fixed"} {"diff": " public class SparseSwitchDataPseudoInstruction extends Instruction implements Mu \n \n for ( int i = NUMBER0 ; i < keys . length ; i ++ ) { \n key = keys [ i ] ; \n - assert key <= keys [ i - NUMBER0 ] ; \n + assert key >= keys [ i - NUMBER0 ] ; \n out . writeInt ( key ) ; \n }", "msg_token": "Use the correct comparison for the keys when writing out a sparse switch data pseudo instruction"} {"diff": " public class CompileServices implements PluginServiceRegistry { \n } \n \n public void registerBuildServices ( ServiceRegistration registration ) { \n - registration . addProvider ( new BuildScopeCompileServices ( ) ) ; \n } \n \n public void registerGradleServices ( ServiceRegistration registration ) { \n + registration . addProvider ( new BuildScopeCompileServices ( ) ) ; \n } \n \n public void registerProjectServices ( ServiceRegistration registration ) {", "msg_token": "Move BuildScopeCompileServices to Gradle scope so that it can access the Gradle object"} {"diff": " public class ContactListModel \n COMMENT \n public boolean isContactOnline ( MetaContact contact ) \n { \n + SINGLE \n + if ( contact . getDefaultContact ( ) == null ) \n + return false ; \n + \n SINGLE \n if ( contact . getDefaultContact ( ) . getPresenceStatus ( ) \n . getStatus ( ) >= PresenceStatus . ONLINE_THRESHOLD )", "msg_token": "Fixed NullPointerException if for some reason the MetaContact getDefaultContact method returns NULL"} {"diff": " public class SearchPlugin implements Component , Plugin , PropertyEventListener { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public Collection < String > getFilteredSearchFields ( ) { \n Collection < String > searchFields ; \n public class SearchPlugin implements Component , Plugin , PropertyEventListener { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setExcludedFields ( Collection < String > exculudedFields ) { \n this . exculudedFields = exculudedFields ; \n public class SearchPlugin implements Component , Plugin , PropertyEventListener { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public Collection < String > getSearchPluginUserManagerSearchFields ( ) { \n return Arrays . asList ( STRING0 , STRING1 , STRING2 ) ;", "msg_token": "Fixed javadoc error"} {"diff": " public abstract class AbstractJPATest { \n } \n \n @ test \n + public void FactoryExpressions ( ) { \n + QCat cat = QCat . cat ; \n + QCat cat2 = new QCat ( STRING0 ) ; \n + JPQLQuery < Tuple > query = query ( ) . from ( cat ) . leftJoin ( cat . kittens , cat2 ) \n + . select ( Projections . tuple ( cat . id , cat . name , \n + Projections . tuple ( cat2 . id , cat2 . name , \n + Projections . tuple ( cat2 . birthdate ) . skipNulls ( ) ) . skipNulls ( ) ) ) ; \n + assertEquals ( NUMBER0 , query . fetch ( ) . size ( ) ) ; \n + assertNotNull ( query . limit ( NUMBER1 ) . fetchOne ( ) ) ; \n + } \n + \n + @ test \n @ noeclipselink @ noopenjpa @ nobatoojpa \n public void Fetch ( ) { \n QMammal mammal = QMammal . mammal ;", "msg_token": "Add more tests"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n public interface Cookie { \n \n - AttachmentKey < Map < String , Cookie > > REQUEST_COOKIES = AttachmentKey . create ( Map . class ) ; \n - AttachmentKey < Map < String , Cookie > > RESPONSE_COOKIES = AttachmentKey . create ( Map . class ) ; \n - \n String getName ( ) ; \n \n String getValue ( ) ;", "msg_token": "Remove legacy attachment keys"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n public class PsiBuilderQuickTest extends LightPlatformTestCase { \n public class PsiBuilderQuickTest extends LightPlatformTestCase { \n STRING0 ) ; \n } \n \n + @ bombed ( month = Calendar . AUGUST , day = NUMBER0 ) \n public void testEmptyCollapsedNode ( ) { \n doTest ( STRING1 , \n new Parser ( ) {", "msg_token": "bombed failing tests"} {"diff": " import NAMESPACE ; \n public class StandardVertex extends AbstractVertex { \n \n private byte lifecycle ; \n - private AddedRelationsContainer addedRelations = AddedRelationsContainer . EMPTY ; \n + private volatile AddedRelationsContainer addedRelations = AddedRelationsContainer . EMPTY ; \n \n public StandardVertex ( final StandardTitanTx tx , final long id , byte lifecycle ) { \n super ( tx , id ) ;", "msg_token": "Fix double checked locking in StandardVertex"} {"diff": " public abstract class CommandLineCppCompiler implements Compiler < GppCompileSpec > \n compiler . executable ( OperatingSystem . current ( ) . findInPath ( getExecutable ( ) ) ) ; \n compiler . workingDir ( workDir ) ; \n \n + configure ( compiler , spec ) ; \n SINGLE \n for ( Closure closure : spec . getSettings ( ) ) { \n closure . call ( compiler ) ; \n } \n - configure ( compiler , spec ) ; \n \n compiler . execute ( ) ; \n return new SimpleWorkResult ( true ) ;", "msg_token": "Add custom args at end of command line so that link compiler arg can be used"} {"diff": " public class GBMTest extends TestUtil { \n fr . delete ( ) ; SINGLE \n Assert . fail ( STRING0 ) ; \n } catch ( IllegalArgumentException ignore ) { \n - } catch ( DException . DistributedException de ) { \n - assertTrue ( de . getMessage ( ) . contains ( STRING1 ) ) ; \n + } catch ( RuntimeException re ) { \n + assertTrue ( re . getCause ( ) instanceof IllegalArgumentException ) ; \n } \n \n Log . info ( STRING2 ) ; \n public final class Job < T extends Keyed > extends Keyed < Job > { \n } \n \n static public boolean isCancelledException ( Throwable ex ) { \n - return false ; SINGLE \n + return ex instanceof JobCancelledException || ex . getCause ( ) != null && ex . getCause ( ) instanceof JobCancelledException ; \n } \n \n private static class Barrier1OnCom extends JAtomic {", "msg_token": "Fixed gbm test after recent exception update fixed JobCancelledException test in Job"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n class IntToIntBtree { \n - static final int VERSION = NUMBER0 ; \n + public static int version ( ) { \n + return NUMBER0 ; \n + } \n + \n private static final int HAS_ZERO_KEY_MASK = NUMBER1 ; \n static final boolean doSanityCheck = false ; \n static final boolean doDump = false ; \n public class PersistentBTreeEnumerator < Data > extends PersistentEnumeratorBase < Da \n private boolean myExternalKeysNoMapping ; \n \n private static final int DIRTY_MAGIC = NUMBER2 ; \n - private static final int VERSION = NUMBER3 + IntToIntBtree . VERSION ; \n + private static final int VERSION = NUMBER3 + IntToIntBtree . version ( ) ; \n private static final int CORRECTLY_CLOSED_MAGIC = NUMBER4 + VERSION + PAGE_SIZE ; \n @ notnull private static Version ourVersion = new Version ( CORRECTLY_CLOSED_MAGIC , DIRTY_MAGIC ) ; \n private static final int KEY_SHIFT = NUMBER5 ;", "msg_token": "avoid static final constant values for versions"} {"diff": " public class Graph implements Serializable { \n vertices . get ( v . getLabel ( ) ) == v ; \n } \n \n - public Vertex nearestVertex ( float lat , float lon ) { \n - double minDist = Float . MAX_VALUE ; \n - Vertex ret = null ; \n - Coordinate c = new Coordinate ( lon , lat ) ; \n - for ( Vertex vv : getVertices ( ) ) { \n - double dist = vv . distance ( c ) ; \n - if ( dist < minDist ) { \n - ret = vv ; \n - minDist = dist ; \n - } \n - } \n - return ret ; \n - } \n - \n @ suppresswarnings ( STRING0 ) \n public < T > T putService ( Class < T > serviceType , T service ) { \n return ( T ) _services . put ( serviceType , service ) ;", "msg_token": "remove inefficient method"} {"diff": " public class HttpTunnelAddress extends SocketAddress implements Comparable < HttpT \n public int compareTo ( HttpTunnelAddress o ) { \n return getUri ( ) . toASCIIString ( ) . compareTo ( o . getUri ( ) . toASCIIString ( ) ) ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 + getUri ( ) ; \n + } \n }", "msg_token": "Added HttpTunnelAddress toString"} {"diff": " public abstract class TransportAction < Request extends ActionRequest , Response ex \n } \n } ) ; \n } catch ( EsRejectedExecutionException ex ) { \n - logger . debug ( STRING0 , listener ) ; \n + logger . debug ( STRING1 , listener ) ; \n COMMENT \n COMMENT \n try {", "msg_token": "Fixed typo in TransportAction log line"} {"diff": " public class CaseRule extends GermanRule { \n \n private static final Set < String > exceptions = new HashSet < String > ( ) ; \n static { \n + exceptions . add ( STRING0 ) ; \n exceptions . add ( STRING1 ) ; \n exceptions . add ( STRING2 ) ; \n exceptions . add ( STRING3 ) ;", "msg_token": "avoid false alarm for etwas Wichtiges"} {"diff": " public class BaseEncodingTest extends TestCase { \n } \n \n public void testToString ( ) { \n - assertEquals ( STRING0 , base64 ( ) . toString ( ) ) ; \n + assertEquals ( STRING1 , base64 ( ) . toString ( ) ) ; \n assertEquals ( STRING2 , base32Hex ( ) . omitPadding ( ) . toString ( ) ) ; \n assertEquals ( \n - STRING3 , \n + STRING4 , \n base32 ( ) . lowerCase ( ) . withPadChar ( STRING5 ) . toString ( ) ) ; \n assertEquals ( \n STRING6 , \n public abstract class BaseEncoding { \n if ( paddingChar == null ) { \n builder . append ( STRING7 ) ; \n } else { \n - builder . append ( STRING8 ) . append ( paddingChar ) . append ( STRING9 ) ; \n + builder . append ( STRING10 ) . append ( paddingChar ) . append ( STRING11 ) ; \n } \n } \n return builder . toString ( ) ;", "msg_token": "Change BaseEncoding toString to return withPadChar instead of withPadChar"} {"diff": " public class MeFragment extends Fragment { \n } \n \n private void showGravatarTooltipIfNeeded ( ) { \n - if ( ! isAdded ( ) || ! AppPrefs . isGravatarChangePromoRequired ( ) || ! mIsUserVisible || mGravatarToolTipView != \n - null ) { \n + if ( ! isAdded ( ) || ! AccountHelper . isSignedInWordPressDotCom ( ) || ! AppPrefs . isGravatarChangePromoRequired ( ) || \n + ! mIsUserVisible || mGravatarToolTipView != null ) { \n return ; \n }", "msg_token": "Don t pop the gravatar tooltip for self hosted"} {"diff": " public class ExpressionAnalyzer \n Type valueType = process ( node . getValue ( ) , context ) ; \n process ( node . getTimeZone ( ) , context ) ; \n if ( ! valueType . equals ( TIME_WITH_TIME_ZONE ) && ! valueType . equals ( TIMESTAMP_WITH_TIME_ZONE ) ) { \n - throw new SemanticException ( TYPE_MISMATCH , node . getValue ( ) , STRING0 , valueType ) ; \n + throw new SemanticException ( TYPE_MISMATCH , node . getValue ( ) , STRING1 , valueType ) ; \n } \n expressionTypes . put ( node , valueType ) ; SINGLE \n \n public class TestAnalyzer \n assertMissingInformationSchema ( session , STRING2 ) ; \n } \n \n + @ test \n + public void testInvalidAtTimeZone ( ) \n + throws Exception \n + { \n + assertFails ( TYPE_MISMATCH , STRING3 ) ; \n + } \n + \n private void assertMissingInformationSchema ( Session session , @ language ( STRING4 ) String query ) \n { \n try {", "msg_token": "Improve error message for At Time Zone type mismatch"} {"diff": " public class RestOperationParamDefinition { \n } \n \n public String getDataType ( ) { \n - return dataType ; \n + return dataType != null ? dataType : STRING0 ; \n } \n \n COMMENT", "msg_token": "readd defaulting logic"} {"diff": " \n COMMENT \n COMMENT \n \n - SINGLE \n - SINGLE \n - \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Removed unnecessary comments"} {"diff": " package NAMESPACE ; \n public class Constants { \n public static final String WEB_CLIENT_ID = STRING0 ; \n \n - public static final String ANDROID_CLIENT_ID = STRING1 ; \n + public static final String ANDROID_BETA_CLIENT_ID = STRING1 ; \n + \n + public static final String ANDROID_RELEASE_CLIENT_ID = STRING2 ; \n \n public static final String ANDROID_AUDIENCE = WEB_CLIENT_ID ; \n \n import NAMESPACE ; \n version = STRING3 , \n scopes = { Constants . EMAIL_SCOPE } , \n clientIds = { com . google . api . server . spi . Constant . API_EXPLORER_CLIENT_ID , \n - Constants . WEB_CLIENT_ID , Constants . ANDROID_CLIENT_ID } , \n + Constants . WEB_CLIENT_ID , Constants . ANDROID_BETA_CLIENT_ID , \n + Constants . ANDROID_RELEASE_CLIENT_ID } , \n audiences = { Constants . ANDROID_AUDIENCE } , \n namespace = @ apinamespace ( ownerDomain = STRING4 , ownerName = STRING4 , \n packagePath = STRING5 )", "msg_token": "Add release client id to show endpoint"} {"diff": " public class DebugLogs extends BaseActivity { \n SINGLE \n Intent intent = new Intent ( Intent . ACTION_SEND ) ; \n intent . setType ( STRING0 ) ; \n - intent . putExtra ( Intent . EXTRA_EMAIL , STRING1 ) ; \n + intent . putExtra ( Intent . EXTRA_EMAIL ) ; \n intent . putExtra ( Intent . EXTRA_SUBJECT , STRING2 ) ; \n intent . putExtra ( Intent . EXTRA_TEXT , log ) ; \n startActivity ( Intent . createChooser ( intent , STRING3 ) ) ;", "msg_token": "Removed static contact data since it might change"} {"diff": " public class TesterServletContext implements ServletContext { \n \n @ override \n public Object getAttribute ( String name ) { \n - throw new RuntimeException ( STRING0 ) ; \n + SINGLE \n + return null ; \n } \n \n @ override", "msg_token": "Websockets now need this method"} {"diff": " public abstract class FunctionalTest extends RandomData { \n Tuple tuple = list . get ( i ) ; \n String name = tuple . get ( STRING0 ) ; \n assertEquals ( people . get ( i ) . getName ( ) , name ) ; \n - int id = tuple . get ( STRING1 ) ; \n - assertEquals ( people . get ( i ) . getId ( ) , id ) ; \n + Number id = tuple . get ( STRING1 ) ; \n + assertEquals ( people . get ( i ) . getId ( ) , id . intValue ( ) ) ; \n } \n } \n + try ( Result < Tuple > result = data . raw ( STRING2 ) ) { \n + Number number = result . first ( ) . get ( NUMBER0 ) ; SINGLE \n + assertEquals ( count , number . intValue ( ) ) ; \n + } \n } \n \n @ test ( expected = PersistenceException . class )", "msg_token": "Fix test on travis CI"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class Shows { \n } \n \n @ apimethod ( name = STRING0 , path = STRING1 ) \n - public Show authedShow ( User user ) { \n + public Show authedShow ( User user ) throws OAuthRequestException { \n + if ( user == null ) { \n + throw new OAuthRequestException ( STRING2 ) ; \n + } \n Show response = new Show ( NUMBER0 , user . getEmail ( ) ) ; \n return response ; \n }", "msg_token": "Correctly handle un authenticated user"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public interface Endpoint < E extends Exchange > { \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n \n \n COMMENT \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public final class UnsafeUriCharactersEncoder { \n sb . append ( HEX_DIGITS [ ( b > > NUMBER0 ) & NUMBER1 ] ) ; \n } \n \n - \n - \n - \n }", "msg_token": "removed unused imports and fixed a javadoc mistake"} {"diff": " public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap \n } \n \n public WatchRequest addRootToWatch ( @ notnull String rootPath , boolean toWatchRecursively ) { \n - if ( rootPath . length ( ) == NUMBER0 ) return null ; \n + if ( rootPath . length ( ) == NUMBER0 || ! FileWatcher . getInstance ( ) . isOperational ( ) ) return null ; \n \n WRITE_LOCK . lock ( ) ; \n try { \n public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap \n \n @ notnull \n public Set < WatchRequest > addRootsToWatch ( @ notnull final Collection < String > rootPaths , final boolean toWatchRecursively ) { \n + if ( ! FileWatcher . getInstance ( ) . isOperational ( ) ) return Collections . emptySet ( ) ; \n + \n Set < WatchRequest > result = new HashSet < WatchRequest > ( ) ; \n Set < VirtualFile > filesToSynchronize = new HashSet < VirtualFile > ( ) ;", "msg_token": "Bypass adding watch roots if the FileWatcher is not available since they re not needed in this case anyway"} {"diff": " public abstract class AnnotationUtils { \n COMMENT \n public static Annotation [ ] getAnnotations ( AnnotatedElement annotatedElement ) { \n try { \n - return annotatedElement . getAnnotations ( ) ; \n + return synthesizeAnnotationArray ( annotatedElement . getAnnotations ( ) , annotatedElement ) ; \n } \n catch ( Exception ex ) { \n handleIntrospectionFailure ( annotatedElement , ex ) ; \n public abstract class AnnotationUtils { \n COMMENT \n public static Annotation [ ] getAnnotations ( Method method ) { \n try { \n - return BridgeMethodResolver . findBridgedMethod ( method ) . getAnnotations ( ) ; \n + return synthesizeAnnotationArray ( BridgeMethodResolver . findBridgedMethod ( method ) . getAnnotations ( ) , method ) ; \n } \n catch ( Exception ex ) { \n handleIntrospectionFailure ( method , ex ) ; \n public abstract class AnnotationUtils { \n this . declaredMode = declaredMode ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n @ suppresswarnings ( STRING0 ) \n static Class < ? extends Annotation > resolveContainerAnnotationType ( Class < ? extends Annotation > annotationType ) { \n try {", "msg_token": "Synthesize annotation arrays within AnnotationUtils"} {"diff": " public class NetworkMonitor extends StateMachine { \n new InputStreamReader ( socket . getInputStream ( ) ) ) ; \n OutputStreamWriter writer = new OutputStreamWriter ( socket . getOutputStream ( ) ) ; \n writer . write ( STRING0 + url . getFile ( ) + STRING1 + url . getHost ( ) + \n + STRING2 + System . getProperty ( STRING3 ) + \n STRING4 ) ; \n writer . flush ( ) ; \n String response = reader . readLine ( ) ;", "msg_token": "Fix T Mobile provisioning detection"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import static NAMESPACE ; \n \n public class HttpConnectionManagerSettingTest extends CamelTestSupport { \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed the CS errors"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n public class CxfEndpointBeanTest extends AbstractSpringBeanTestSupport { \n static int port1 = CXFTestSupport . getPort1 ( ) ; \n static {", "msg_token": "Fix checkstyle error"} {"diff": " public class SchemaManager { \n } \n } \n catch ( SQLException sqle ) { \n + SINGLE \n + Log . debug ( STRING0 + schemaKey + STRING1 , sqle ) ; \n DbConnectionManager . closeResultSet ( rs ) ; \n DbConnectionManager . closeStatement ( pstmt ) ; \n if ( schemaKey . equals ( STRING2 ) ) { \n public class SchemaManager { \n } \n } \n catch ( SQLException sqlea ) { \n + SINGLE \n + Log . debug ( STRING0 + schemaKey + STRING1 , sqlea ) ; \n DbConnectionManager . closeResultSet ( rs ) ; \n DbConnectionManager . closeStatement ( pstmt ) ; \n SINGLE \n public class SchemaManager { \n } \n catch ( SQLException sqle2 ) { \n SINGLE \n - Log . debug ( STRING3 , sqle2 ) ; \n + Log . debug ( STRING0 + schemaKey + STRING4 , sqle2 ) ; \n } \n } \n }", "msg_token": "Added some extra debugging"} {"diff": " public abstract class AbstractInputBuffer < S > implements InputBuffer { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + protected final boolean isBlocking ( ) { \n + return request . getReadListener ( ) == null ; \n + } \n + \n + \n SINGLE \n \n COMMENT", "msg_token": "Add isBlocking util method like in AbstractOutputBuffer"} {"diff": " public class CookieEncoder { \n } \n } \n \n - if ( sb . length ( ) > NUMBER0 ) \n - sb . setLength ( sb . length ( ) - NUMBER1 ) ; \n + if ( sb . length ( ) > NUMBER0 ) { \n + sb . setLength ( sb . length ( ) - NUMBER1 ) ; \n + } \n + \n return sb . toString ( ) ; \n }", "msg_token": "Fixed code format"} {"diff": " public class FizzBuzzTest { \n BufferedOutputStream bos = new BufferedOutputStream ( baos ) ; \n System . setOut ( new PrintStream ( bos ) ) ; \n \n - fb . fizzbuzz ( n ) ; \n + fb . fizzBuzz ( n ) ; \n \n System . out . flush ( ) ; \n assertEquals ( s , baos . toString ( ) ) ;", "msg_token": "Better naming convention"} {"diff": " public class CookieManager { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CookieManager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add documentation for CookieManager defualts"} {"diff": " public class OracleTableManager extends SQLTableManager < OracleTable , OracleSchem \n actions . add ( \n new SQLDatabasePersistAction ( \n STRING0 , \n - STRING1 + command . getObject ( ) . getFullQualifiedName ( ) + SINGLE \n - STRING2 + DBUtils . getQuotedIdentifier ( command . getObject ( ) . getDataSource ( ) , command . getNewName ( ) ) ) SINGLE \n + STRING3 + command . getObject ( ) . getFullQualifiedName ( ) + SINGLE \n + STRING4 + DBUtils . getQuotedIdentifier ( command . getObject ( ) . getDataSource ( ) , command . getNewName ( ) ) ) SINGLE \n ) ; \n }", "msg_token": "table rename fix"} {"diff": " public class DeploymentInfo implements Cloneable { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean isAuthenticationMechanismPresent ( final String mechanismName ) { \n + if ( loginConfig != null ) { \n + for ( AuthMethodConfig method : loginConfig . getAuthMethods ( ) ) { \n + if ( method . equals ( mechanismName ) ) { \n + return true ; \n + } \n + } \n + } \n + return false ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add utility method to check if a login method is present"} {"diff": " public class Main { \n private final FileHistory history ; \n \n { \n - history = new FileHistory ( new File ( System . getProperty ( STRING0 ) , STRING1 ) ) ; \n + history = new FileHistory ( new File ( getProperty ( STRING0 ) , STRING1 ) ) ; \n \n console = new ConsoleReader ( System . in , System . out ) ; \n console . setHistoryEnabled ( true ) ;", "msg_token": "added saving of console history only extended console"} {"diff": " public class DBCallback extends BasicBSONCallback { \n if ( ! _lastArray && \n o . containsKey ( STRING0 ) && \n o . containsKey ( STRING1 ) ) { \n - o = ( BSONObject ) cur ( ) . put ( _lastName , new DBRef ( _db , o ) ) ; \n + return cur ( ) . put ( _lastName , new DBRef ( _db , o ) ) ; \n } \n \n return o ;", "msg_token": "Fixed issue with List of DBRefs it was that simple"} {"diff": " import NAMESPACE ; \n } \n finally { \n ourTestThread = null ; \n - cleanupApplicationCaches ( ) ; \n + try { \n + cleanupApplicationCaches ( ) ; \n + } \n + catch ( Exception e ) { \n + e . printStackTrace ( ) ; \n + } \n } \n } \n } ) ;", "msg_token": "surround call to cleanupApplicationCaches with try catch in order to not miss exceptions during setup"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class AaptStep extends ShellStep { \n \n private final String androidManifest ;", "msg_token": "Added class overview for AaptStep"} {"diff": " class ValueContainerImpl < Value > extends UpdatableValueContainer < Value > implement \n } \n \n private void resetFileSetForValue ( Value value , Object fileSet ) { \n + if ( value == null ) value = ( Value ) myNullValue ; \n if ( ! ( myInputIdMapping instanceof THashMap ) ) myInputIdMappingValue = fileSet ; \n else ( ( THashMap < Value , Object > ) myInputIdMapping ) . put ( value , fileSet ) ; \n }", "msg_token": "avoid problem with null value supplied by some indexer used as key for THashMap"} {"diff": " public class RouteResultPreparation { \n derivedTurnType . setLanes ( t . getLanes ( ) ) ; \n derivedTurnType . setSkipToSpeak ( t . isSkipToSpeak ( ) ) ; \n t = derivedTurnType ; \n + \n + SINGLE \n + for ( int i = NUMBER0 ; i < t . getLanes ( ) . length ; i ++ ) { \n + if ( TurnType . getSecondaryTurn ( t . getLanes ( ) [ i ] ) == t . getValue ( ) ) { \n + int temp = TurnType . getSecondaryTurn ( t . getLanes ( ) [ i ] ) ; \n + t . setSecondaryTurn ( i , TurnType . getPrimaryTurn ( t . getLanes ( ) [ i ] ) ) ; \n + t . setPrimaryTurn ( i , temp ) ; \n + } \n + } \n } \n \n return t ;", "msg_token": "Switch primary and secondary turns if the secondary turn is the actual turn"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PinotSegmentUploadRestletResource extends PinotRestletResourceBase \n SINGLE \n SINGLE \n TarGzCompressionUtils . unTar ( dataFile , tmpSegmentDir ) ; \n - \n - return uploadSegment ( tmpSegmentDir . listFiles ( ) [ NUMBER0 ] , dataFile ) ; \n + File segmentFile = tmpSegmentDir . listFiles ( ) [ NUMBER0 ] ; \n + String clientIpAddress = getClientInfo ( ) . getAddress ( ) ; \n + String clientAddress = InetAddress . getByName ( clientIpAddress ) . getHostName ( ) ; \n + LOGGER . info ( STRING0 , segmentFile . getName ( ) , clientAddress ) ; \n + return uploadSegment ( segmentFile , dataFile ) ; \n } else { \n SINGLE \n rep = new StringRepresentation ( STRING1 , MediaType . TEXT_PLAIN ) ;", "msg_token": "Log hostname of client from which the segment is being uploaded"} {"diff": " public class MethodBreakpoint extends BreakpointWithHighlighter { \n } \n \n public boolean matchesEvent ( final LocatableEvent event , final DebugProcessImpl process ) throws EvaluateException { \n + if ( myMethodName == null || mySignature == null ) { \n + return false ; \n + } \n final Method method = event . location ( ) . method ( ) ; \n - return method != null && myMethodName . equals ( method . name ( ) ) && mySignature . getName ( process ) . equals ( method . signature ( ) ) ; \n + return method != null && method . name ( ) . equals ( myMethodName ) && method . signature ( ) . equals ( mySignature . getName ( process ) ) ; \n } \n \n public static MethodBreakpoint create ( Project project , Document document , int lineIndex ) {", "msg_token": "reviewed by Michael Gerasimov fix possible NPE"} {"diff": " import NAMESPACE ; \n \n @ runwith ( HazelcastParallelClassRunner . class ) \n @ category ( QuickTest . class ) \n - public class AtomicLongBasicDistributedTest extends BasicAtomicLongTest { \n + public class AtomicLongBasicDistributedTest extends AtomicLongBasicTest { \n \n @ override \n protected HazelcastInstance [ ] newInstances ( ) { \n import NAMESPACE ; \n \n @ runwith ( HazelcastParallelClassRunner . class ) \n @ category ( QuickTest . class ) \n - public class AtomicLongBasicLocalTest extends BasicAtomicLongTest { \n + public class AtomicLongBasicLocalTest extends AtomicLongBasicTest { \n \n @ override \n protected HazelcastInstance [ ] newInstances ( ) { \n import static NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - public abstract class BasicAtomicLongTest extends HazelcastTestSupport { \n + public abstract class AtomicLongBasicTest extends HazelcastTestSupport { \n \n protected HazelcastInstance [ ] instances ; \n protected IAtomicLong atomicLong ;", "msg_token": "Renamed the AtomicLongbasicTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "update dreamservice description"} {"diff": " public class Wallet extends BaseTaggableObject \n try { \n checkArgument ( numTransactions >= NUMBER0 ) ; \n SINGLE \n - int size = getPoolSize ( Pool . UNSPENT ) + \n - getPoolSize ( Pool . SPENT ) + \n - getPoolSize ( Pool . PENDING ) ; \n + int size = unspent . size ( ) + spent . size ( ) + pending . size ( ) ; \n if ( numTransactions > size || numTransactions == NUMBER0 ) { \n numTransactions = size ; \n } \n public class Wallet extends BaseTaggableObject \n } \n } \n \n - int getPoolSize ( WalletTransaction . Pool pool ) { \n + @ visiblefortesting \n + public int getPoolSize ( WalletTransaction . Pool pool ) { \n lock . lock ( ) ; \n try { \n switch ( pool ) {", "msg_token": "Make getPoolSize visible for testing"} {"diff": " public class SpringApplicationTests { \n STRING0 , \n STRING1 ) ; \n assertThat ( this . output . toString ( ) ) \n - . startsWith ( STRING2 ) ; \n + . startsWith ( String . format ( STRING3 ) ) ; \n } \n \n @ test", "msg_token": "Fix Windows test issues"} {"diff": " public class PyCharmEduInitialConfigurator { \n } ) ; \n } \n } ) ; \n - PyCodeInsightSettings . getInstance ( ) . SHOW_IMPORT_POPUP = true ; \n + PyCodeInsightSettings . getInstance ( ) . SHOW_IMPORT_POPUP = false ; \n } \n \n if ( ! propertiesComponent . isValueSet ( DISPLAYED_PROPERTY ) ) {", "msg_token": "Don t show import pop up by default in Edu"} {"diff": " public class OsmandMapTileView implements IMapDownloaderCallback { \n if ( contextMenuLayer != null ) { \n contextMenuLayer . onTouchEvent ( event , getCurrentRotatedTileBox ( ) ) ; \n } \n + gestureDetector . onTouchEvent ( event ) ; \n return true ; \n }", "msg_token": "test not masking gestures for two finger tap"} {"diff": " public interface CordovaWebView { \n \n void showWebPage ( String errorUrl , boolean b , boolean c , Map < String , Object > params ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n boolean isCustomViewShowing ( ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n void showCustomView ( View view , CustomViewCallback callback ) ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + @ deprecated \n void hideCustomView ( ) ; \n \n CordovaResourceApi getResourceApi ( ) ;", "msg_token": "Deprecate custom view methods in CordovaWebView"} {"diff": " public class ViewPager extends ViewGroup { \n void dataSetChanged ( ) { \n SINGLE \n \n - boolean needPopulate = mItems . isEmpty ( ) && mAdapter . getCount ( ) > NUMBER0 ; \n + boolean needPopulate = mItems . size ( ) < NUMBER1 && mItems . size ( ) < mAdapter . getCount ( ) ; \n int newCurrItem = - NUMBER2 ; \n \n for ( int i = NUMBER0 ; i < mItems . size ( ) ; i ++ ) {", "msg_token": "Fix bug in ViewPager"} {"diff": " public class ABTestInvoker { \n \n COMMENT \n private static final String URL = STRING0 ; \n - private static final String ACQ_URL = STRING1 ; \n + private static final String ACQ_URL = STRING2 ; \n private static final String API_KEY = STRING3 ; \n private static final String API_SECRET = STRING4 ;", "msg_token": "Fixed a typo in acquisition reporting"} {"diff": " public class ThreadedRenderer extends HardwareRenderer { \n recordDuration , view . getResources ( ) . getDisplayMetrics ( ) . density ) ; \n if ( ( syncResult & SYNC_LOST_SURFACE_REWARD_IF_FOUND ) != NUMBER0 ) { \n setEnabled ( false ) ; \n + attachInfo . mViewRootImpl . mSurface . release ( ) ; \n SINGLE \n SINGLE \n attachInfo . mViewRootImpl . invalidate ( ) ; \n public final class ViewRootImpl implements ViewParent , \n \n SINGLE \n SINGLE \n - private final Surface mSurface = new Surface ( ) ; \n + final Surface mSurface = new Surface ( ) ; \n \n boolean mAdded ; \n boolean mAddedTouchMode ;", "msg_token": "If the surface is lost release it"} {"diff": " import NAMESPACE ; \n public class BuilderFactory { \n public static final Builder < Double > DOUBLE = new Builder < Double > ( ) { \n public Double build ( Object data ) { \n - return Double . valueOf ( STRING . build ( data ) ) ; \n + String asString = STRING . build ( data ) ; \n + return asString == null ? null : Double . valueOf ( asString ) ; \n } \n \n public String toString ( ) {", "msg_token": "Fix NPE in BuilderFactory for Double"} {"diff": " public class DeviceConfiguration \n { \n String res = null ; \n SINGLE \n - SINGLE \n + SINGLE \n SINGLE \n if ( cdi . getLocator ( ) . getProtocol ( ) . equals ( STRING0 ) ) \n { \n public class DeviceConfiguration \n config . setProperty ( PROP_AUDIO_PLAYBACK_DEVICE , null ) ; \n } \n \n - firePropertyChange ( AUDIO_PLAYBACK_DEVICE , \n + firePropertyChange ( AUDIO_PLAYBACK_DEVICE , \n oldDev , audioPlaybackDevice ) ; \n } \n } \n public class PortAudioAuto \n int maxOutputChannels = \n PortAudio . PaDeviceInfo_getMaxOutputChannels ( deviceInfo ) ; \n \n + String devName = PortAudio . PaDeviceInfo_getName ( deviceInfo ) ; \n + if ( devName != null ) \n + devName = devName . trim ( ) ; \n + \n CaptureDeviceInfo jmfInfo = \n new CaptureDeviceInfo ( \n - PortAudio . PaDeviceInfo_getName ( deviceInfo ) , \n + devName , \n new MediaLocator ( \n PortAudioUtils . LOCATOR_PREFIX + deviceIndex ) , \n new Format [ ] { DataSource . getCaptureFormat ( ) } ) ;", "msg_token": "Trim port audio device names so that they would match whatever we store in our properties file"} {"diff": " implements OnRemoteOperationListener , OnSslValidatorListener , OnFocusChangeList \n SINGLE \n setContentView ( R . layout . account_setup ) ; \n mHostUrlInput = ( EditText ) findViewById ( R . id . hostUrlInput ) ; \n + mHostUrlInput . setText ( getString ( R . string . server_url ) ) ; SINGLE \n mUsernameInput = ( EditText ) findViewById ( R . id . account_username ) ; \n mPasswordInput = ( EditText ) findViewById ( R . id . account_password ) ; \n mOAuthAuthEndpointText = ( TextView ) findViewById ( R . id . oAuthEntryPoint_1 ) ; \n implements OnRemoteOperationListener , OnSslValidatorListener , OnFocusChangeList \n SINGLE \n if ( ! mHostUrlInputEnabled ) \n { \n - mHostUrlInput . setText ( getString ( R . string . server_url ) ) ; \n findViewById ( R . id . hostUrlFrame ) . setVisibility ( View . GONE ) ; \n - \n mRefreshButton = findViewById ( R . id . centeredRefreshButton ) ; \n \n } else {", "msg_token": "Allow the definition of a default server URL although the input field is visible"} {"diff": " public class ThriftToPig < M extends TBase < ? , ? > > { \n \n public static final Logger LOG = LoggerFactory . getLogger ( ThriftToPig . class ) ; \n \n - static final String USE_ENUM_ID_CONF_KEY = STRING0 ; \n + static final String USE_ENUM_ID_CONF_KEY = STRING1 ; \n \n SINGLE \n private static Boolean useEnumId = false ;", "msg_token": "Update the constant string for USE_ENUM_ID_CONF_KEY"} {"diff": " public class ProjectTemplateWidget extends Composite \n VerticalPanel rightPanel = new VerticalPanel ( ) ; \n for ( int i = NUMBER0 ; i < n ; i ++ ) \n { \n - String position = descriptions . get ( i ) . getPosition ( ) ; \n + String position = StringUtil . notNull ( descriptions . get ( i ) . getPosition ( ) ) ; \n Widget widget = widgets_ . get ( i ) ; \n - if ( STRING0 . equals ( position ) ) \n + if ( STRING0 . equals ( position . toLowerCase ( ) ) ) \n rightPanel . add ( widget ) ; \n else \n leftPanel . add ( widget ) ;", "msg_token": "handle casing for position parameter"} {"diff": " public class JavaRearranger implements Rearranger < JavaElementArrangementEntry > , \n private static void and ( @ notnull List < StdArrangementMatchRule > matchRules , @ notnull ArrangementSettingsToken . . . conditions ) { \n if ( conditions . length == NUMBER0 ) { \n matchRules . add ( new StdArrangementMatchRule ( new StdArrangementEntryMatcher ( new ArrangementAtomMatchCondition ( \n - conditions [ NUMBER1 ] , conditions [ NUMBER1 ] \n + conditions [ NUMBER1 ] \n ) ) ) ) ; \n return ; \n } \n \n ArrangementCompositeMatchCondition composite = new ArrangementCompositeMatchCondition ( ) ; \n for ( ArrangementSettingsToken condition : conditions ) { \n - composite . addOperand ( new ArrangementAtomMatchCondition ( condition , condition ) ) ; \n + composite . addOperand ( new ArrangementAtomMatchCondition ( condition ) ) ; \n } \n matchRules . add ( new StdArrangementMatchRule ( new StdArrangementEntryMatcher ( composite ) ) ) ; \n }", "msg_token": "create default tokens as invertible"} {"diff": " public class Inspect extends Request { \n if ( val . type ( ) == TypeMap . PRIM_B ) \n return serveUnparsedValue ( val ) ; \n Iced f = val . get ( ) ; \n - if ( f instanceof ValueArray ) \n - return serveValueArray ( ( ValueArray ) f ) ; \n + if ( f instanceof ValueArray ) { \n + ValueArray ary = ( ValueArray ) f ; \n + if ( ary . _cols . length == NUMBER0 && ary . _cols [ NUMBER1 ] . _name == null ) \n + return serveUnparsedValue ( val ) ; \n + return serveValueArray ( ary ) ; \n + } \n if ( f instanceof GLMModel ) { \n GLMModel m = ( GLMModel ) f ; \n JsonObject res = new JsonObject ( ) ;", "msg_token": "Handle unparsed data smarter in Inspect"} {"diff": " public final class EpollSocketChannel extends AbstractEpollChannel implements So \n \n private boolean writeBytesMultiple ( \n EpollChannelOutboundBuffer in , int msgCount , AddressEntry [ ] addresses , \n - int addressCnt , int expectedWrittenBytes ) throws IOException { \n + int addressCnt , long expectedWrittenBytes ) throws IOException { \n boolean done = false ; \n long writtenBytes = NUMBER0 ; \n int offset = NUMBER0 ; \n public final class EpollSocketChannel extends AbstractEpollChannel implements So \n AddressEntry [ ] addresses = epollIn . memoryAddresses ( ) ; \n int addressesCnt = epollIn . addressCount ( ) ; \n if ( addressesCnt > NUMBER1 ) { \n - if ( ! writeBytesMultiple ( epollIn , msgCount , addresses , addressesCnt , epollIn . addressCount ( ) ) ) { \n + if ( ! writeBytesMultiple ( epollIn , msgCount , addresses , addressesCnt , epollIn . addressSize ( ) ) ) { \n SINGLE \n SINGLE \n break ;", "msg_token": "Use the correct memoryAddress size when do a gathering write"} {"diff": " public class SourceFormatter { \n \n public static void main ( String [ ] args ) { \n try { \n - _sourceFormatterHelper = new SourceFormatterHelper ( true ) ; \n + _sourceFormatterHelper = new SourceFormatterHelper ( false ) ; \n \n _sourceFormatterHelper . init ( ) ;", "msg_token": "Don t cache source formatting for now"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class Caches { \n \n @ override \n public void clearCache ( ) { \n + SINGLE \n + LongMap . LongMapIterator < CacheItem > iter = items . longMapIterator ( ) ; \n + while ( iter . moveToNext ( ) ) { \n + CacheItem i = iter . value ( ) ; \n + if ( i != null ) \n + i . clear ( ) ; \n + } \n + \n items . clear ( ) ; \n super . clearCache ( ) ; \n }", "msg_token": "improve performance in soft weak ref cache with clearCache"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Fixed post merge compile problem"} {"diff": " public class Rectangle implements Serializable { \n this . height = height ; \n } \n \n + COMMENT \n + COMMENT \n + public void setPosition ( Vector2 position ) { \n + this . x = position . x ; \n + this . y = position . y ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public void setPosition ( float x , float y ) { \n + this . x = x ; \n + this . y = y ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Rectangle add setPosition methods"} {"diff": " public class BackupServiceIT \n SINGLE \n backupService ( ) . doFullBackup ( STRING0 , NUMBER0 , backupDir . getAbsolutePath ( ) , true , new Config ( ) , \n BackupClient . BIG_READ_TIMEOUT , false ) ; \n + fail ( STRING1 ) ; \n } \n catch ( RuntimeException ex ) \n {", "msg_token": "Add missing failure clause"} {"diff": " public class ThrottleRequestFilter implements RequestFilter { \n } \n \n public ThrottleRequestFilter ( int maxConnections , int maxWait ) { \n - this . maxWait = maxWait ; \n - available = new Semaphore ( maxConnections , true ) ; \n + this ( maxConnections , maxWait , true ) ; \n + } \n + \n + public ThrottleRequestFilter ( int maxConnections , int maxWait , boolean fair ) { \n + this . maxWait = maxWait ; \n + available = new Semaphore ( maxConnections , fair ) ; \n } \n \n COMMENT", "msg_token": "Make the fairness semantics of the ThrottleRequestFilter configurable"} {"diff": " public class ParseTreeMatch { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class ParseTreeMatch { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n @ nullable \n public class ParseTreeMatch { \n return null ; \n } \n \n - return parseTrees . get ( NUMBER0 ) ; SINGLE \n + return parseTrees . get ( parseTrees . size ( ) - NUMBER1 ) ; SINGLE \n } \n \n COMMENT", "msg_token": "intellij git missed these files"} {"diff": " public class ClassDefItem { \n out . annotate ( NUMBER0 , STRING0 , accessFlags , \n Joiner . on ( STRING1 ) . join ( AccessFlags . getAccessFlagsForClass ( accessFlags ) ) ) ; \n \n - int superclassIndex = dexFile . readSmallUint ( out . getCursor ( ) ) ; \n + int superclassIndex = dexFile . readOptionalUint ( out . getCursor ( ) ) ; \n out . annotate ( NUMBER0 , STRING2 , \n TypeIdItem . getOptionalReferenceAnnotation ( dexFile , superclassIndex ) ) ;", "msg_token": "Fix issue with empty superclass when dumping a Ljava lang Object class"} {"diff": " public class CapturingProcessHandler extends OSProcessHandler { \n if ( ! isProcessTerminating ( ) && ! isProcessTerminated ( ) ) { \n destroyProcess ( ) ; \n } \n + myOutput . setCancelled ( ) ; \n break ; \n } \n } \n public class ProcessOutput { \n private final StringBuilder myStderrBuilder = new StringBuilder ( ) ; \n private int myExitCode ; \n private boolean myTimeout ; \n + private boolean myCancelled ; \n \n public ProcessOutput ( ) { \n myExitCode = - NUMBER0 ; SINGLE \n public class ProcessOutput { \n } \n return true ; \n } \n + \n + public boolean isCancelled ( ) { \n + return myCancelled ; \n + } \n + \n + public void setCancelled ( ) { \n + myCancelled = true ; \n + } \n }", "msg_token": "Added isCancelled flag to ProcessOutput"} {"diff": " public class Container \n int order ; \n } \n \n - protected enum ContainerState \n + public enum ContainerState \n { \n CREATED , \n STARTING , \n public class Container \n return list ; \n } \n \n + public ContainerState getContainerState ( ) { return state ; } \n + \n }", "msg_token": "Adding full support for JAX RS and JSON"} {"diff": " public final class Mapper { \n public MappedWrapper [ ] extensionWrappers = new MappedWrapper [ NUMBER0 ] ; \n public int nesting = NUMBER0 ; \n \n - public ContextVersion ( String name , String path , int slashCount , \n + public ContextVersion ( String version , String path , int slashCount , \n Context context , WebResourceRoot resources ) { \n - super ( name , context ) ; \n + super ( version , context ) ; \n this . path = path ; \n this . slashCount = slashCount ; \n this . resources = resources ;", "msg_token": "Rename constructor argument to align with actual usage"} {"diff": " public class JettyHttpProducerGoogleAsynchronousTest extends CamelTestSupport { \n public void testGoogleFrontPageAsync ( ) throws Exception { \n MockEndpoint mock = getMockEndpoint ( STRING0 ) ; \n mock . expectedMessageCount ( NUMBER0 ) ; \n - mock . message ( NUMBER1 ) . outBody ( String . class ) . contains ( STRING1 ) ; \n + mock . message ( NUMBER1 ) . body ( String . class ) . contains ( STRING1 ) ; \n \n template . sendBody ( STRING2 , null ) ;", "msg_token": "Fixed unit test"} {"diff": " public class PostgresDatabase extends AbstractDatabase { \n COMMENT \n COMMENT \n private String [ ] reservedWords = new String [ ] { \n - STRING0 , STRING1 , STRING2 \n + STRING0 , STRING1 , STRING2 , STRING3 \n SINGLE \n SINGLE \n } ;", "msg_token": "added reserved postgres word date"} {"diff": " public abstract class TWAbsLayoutManager extends LayoutManager { \n fillFromScrapList ( scrapList , Direction . END ) ; \n } \n \n + protected void detachChild ( View child , Direction direction ) { \n + SINGLE \n + } \n + \n @ override \n public void onItemsAdded ( RecyclerView recyclerView , int positionStart , int itemCount ) { \n if ( positionStart < mFirstPosition ) { \n public abstract class TWAbsLayoutManager extends LayoutManager { \n \n protected abstract void measureChild ( View child ) ; \n protected abstract void layoutChild ( View child , Direction direction ) ; \n - protected abstract void detachChild ( View child , Direction direction ) ; \n \n protected abstract boolean canAddMoreViews ( Direction direction , int limit ) ;", "msg_token": "core Make detachChild optional on TWAbsLayoutManager subclasses"} {"diff": " public class HystrixContextFunc2 < T > implements Func2 < Scheduler , T , Subscription > \n SINGLE \n HystrixRequestContext . setContextOnCurrentThread ( parentThreadState ) ; \n SINGLE \n - return actual . call ( t1Holder . get ( ) , t2Holder . get ( ) ) ; \n + return actual . call ( new HystrixContextScheduler ( concurrencyStrategy , t1Holder . get ( ) ) , t2Holder . get ( ) ) ; \n } finally { \n SINGLE \n HystrixRequestContext . setContextOnCurrentThread ( existingState ) ;", "msg_token": "HystrixContextScheduler was not wrapping the Inner Scheduler"} {"diff": " public final class EpollSocketChannel extends AbstractEpollChannel implements So \n COMMENT \n COMMENT \n private int doReadBytes ( ByteBuf byteBuf ) throws Exception { \n - ByteBuffer buf = byteBuf . internalNioBuffer ( NUMBER0 , byteBuf . writableBytes ( ) ) ; \n + int writerIndex = byteBuf . writerIndex ( ) ; \n + ByteBuffer buf = byteBuf . internalNioBuffer ( writerIndex , byteBuf . writableBytes ( ) ) ; \n int localReadAmount = Native . read ( fd , buf , buf . position ( ) , buf . limit ( ) ) ; \n if ( localReadAmount > NUMBER0 ) { \n - byteBuf . writerIndex ( byteBuf . writerIndex ( ) + localReadAmount ) ; \n + byteBuf . writerIndex ( writerIndex + localReadAmount ) ; \n } \n return localReadAmount ; \n }", "msg_token": "Use correct writerIndex when read for channel"} {"diff": " public class RawActionTest { \n @ test \n public void testRawDownloadAction ( ) { \n HttpResponse response = HttpRequest . get ( STRING0 ) . send ( ) ; \n - assertEquals ( STRING1 , response . header ( STRING2 ) ) ; \n + assertEquals ( STRING3 , response . header ( STRING2 ) ) ; \n assertEquals ( STRING4 , response . bodyText ( ) . trim ( ) ) ; \n }", "msg_token": "Fix the test because of StreamUtil"} {"diff": " public class DiffPanelImpl implements DiffPanelEx , ContentChangeListener , TwoSid \n public void customize ( DiffToolbar toolbar ) { \n ActionManager actionManager = ActionManager . getInstance ( ) ; \n toolbar . addAction ( actionManager . getAction ( STRING0 ) ) ; \n + toolbar . addSeparator ( ) ; \n toolbar . addAction ( actionManager . getAction ( STRING1 ) ) ; \n toolbar . addAction ( getEditSourceAction ( ) ) ; \n toolbar . addSeparator ( ) ;", "msg_token": "Add separator after IgnoreWhitespaces action on toolbar"} {"diff": " public class PythonEnvUtil { \n } \n \n public static void addToEnv ( Map < String , String > envs , String key , String value ) { \n - if ( envs . containsKey ( key ) ) { \n - envs . put ( key , appendToPathEnvVar ( envs . get ( key ) , value ) ) ; \n - } \n - else { \n - envs . put ( key , value ) ; \n + if ( ! StringUtil . isEmpty ( value ) ) { \n + if ( envs . containsKey ( key ) ) { \n + envs . put ( key , appendToPathEnvVar ( envs . get ( key ) , value ) ) ; \n + } \n + else { \n + envs . put ( key , value ) ; \n + } \n } \n }", "msg_token": "We shouldn t set pythonpath var when it is empty"} {"diff": " public class SmartPointerManagerImpl extends SmartPointerManager implements Proj \n } \n \n private void fastenBeltsInSingleFile ( final PsiFile file ) { \n - final PsiDocumentManager documentManager = PsiDocumentManager . getInstance ( myProject ) ; \n - SINGLE \n - SINGLE \n - \n synchronized ( file ) { \n file . putUserData ( BELTS_ARE_FASTEN_KEY , Boolean . TRUE ) ; \n \n class SmartPsiElementPointerImpl < E extends PsiElement > implements SmartPointerEx \n TextRange range = anchor . getTextRange ( ) ; \n \n final PsiDocumentManager documentManager = PsiDocumentManager . getInstance ( myFile . getProject ( ) ) ; \n - myMarker = documentManager . getDocument ( myFile ) . createRangeMarker ( range . getStartOffset ( ) , range . getEndOffset ( ) , true ) ; \n + Document document = documentManager . getDocument ( myFile ) ; \n + LOG . assertTrue ( ! documentManager . isUncommited ( document ) ) ; \n + myMarker = document . createRangeMarker ( range . getStartOffset ( ) , range . getEndOffset ( ) , true ) ; \n \n mySyncStartOffset = range . getStartOffset ( ) ; \n mySyncEndOffset = range . getEndOffset ( ) ;", "msg_token": "Rolled changes back"} {"diff": " public class ClassFileLocatorForModuleTest { \n } \n \n @ test \n - @ javaversionrule.enforce ( value = NUMBER0 , sort = JavaVersionRule . Sort . AT_MOST ) \n - public void testBootPathLegacy ( ) throws Exception { \n - ClassFileLocator classFileLocator = ClassFileLocator . ForModule . ofBootLayer ( ) ; \n - assertThat ( classFileLocator . locate ( Object . class . getName ( ) ) . isResolved ( ) , is ( false ) ) ; \n - assertThat ( classFileLocator . locate ( getClass ( ) . getName ( ) ) . isResolved ( ) , is ( false ) ) ; \n - } \n - \n - @ test \n @ javaversionrule.enforce ( NUMBER1 ) \n public void testBootPath ( ) throws Exception { \n ClassFileLocator classFileLocator = ClassFileLocator . ForModule . ofBootLayer ( ) ;", "msg_token": "Removed obsolete test"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n @ suppresswarnings ( { STRING0 , STRING1 } ) \n - SINGLE \n public class BTreeMap < K , V > extends AbstractMap < K , V > \n implements ConcurrentNavigableMap < K , V > , Bind . MapWithModificationListener < K , V > { \n \n public class BTreeMap < K , V > extends AbstractMap < K , V > \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "remove outdated TODOs"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Added missing copyright"} {"diff": " import NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class BusinessOverdueStatusModelDao { \n + import NAMESPACE ; \n + \n + public class BusinessOverdueStatusModelDao extends EntityBase { \n private final String accountKey ; \n private final UUID bundleId ; \n private final String externalKey ;", "msg_token": "make BusinessOverdueStatusModelDao extend EntityBase"} {"diff": " public class GenericConnectionPage extends ConnectionPageAbstract implements ICo \n connectionInfo . setUserPassword ( passwordText . getText ( ) ) ; \n } \n super . saveSettings ( dataSource ) ; \n - if ( urlText != null ) { \n - connectionInfo . setUrl ( urlText . getText ( ) ) ; \n + if ( isCustom ) { \n + if ( urlText != null ) { \n + connectionInfo . setUrl ( urlText . getText ( ) ) ; \n + } \n + } else { \n + if ( urlText != null && connectionInfo . getUrl ( ) != null ) { \n + urlText . setText ( connectionInfo . getUrl ( ) ) ; \n + } \n } \n }", "msg_token": "Generic driver URL save fixed"} {"diff": " public abstract class JSONLexerBase implements JSONLexer , Closeable { \n \n int offset = NUMBER0 ; \n char chLocal = charAt ( bp + ( offset ++ ) ) ; \n + \n + final boolean negative = chLocal == STRING0 ; \n + if ( negative ) { \n + chLocal = charAt ( bp + ( offset ++ ) ) ; \n + } \n \n int value ; \n if ( chLocal >= STRING1 && chLocal <= STRING2 ) { \n public abstract class JSONLexerBase implements JSONLexer , Closeable { \n this . next ( ) ; \n matchStat = VALUE ; \n token = JSONToken . COMMA ; \n - return value ; \n + return negative ? - value : value ; \n } else { \n matchStat = NOT_MATCH ; \n - return value ; \n + return negative ? - value : value ; \n } \n }", "msg_token": "bug fixed ArrayMapping negative int value"} {"diff": " public class Page \n return getBlock ( channel ) . isNull ( position ) ; \n } \n \n + public void appendTo ( int position , PageBuilder pageBuilder ) \n + { \n + for ( int channel = NUMBER0 ; channel < blocks . length ; channel ++ ) { \n + blocks [ channel ] . appendTo ( position , pageBuilder . getBlockBuilder ( channel ) ) ; \n + } \n + } \n + \n @ override \n public String toString ( ) \n {", "msg_token": "Add appendTo method to Page"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n final class DefaultChannelPipeline implements ChannelPipeline { \n if ( m == null ) { \n break ; \n } \n - \n - if ( m instanceof ReferenceCounted ) { \n - ( ( ReferenceCounted ) m ) . release ( ) ; \n - } \n + BufUtil . release ( m ) ; \n logger . debug ( \n STRING0 + \n STRING1 , m ) ; \n final class DefaultChannelPipeline implements ChannelPipeline { \n discardedMessages ++ ; \n } \n \n - if ( m instanceof ReferenceCounted ) { \n - ( ( ReferenceCounted ) m ) . release ( ) ; \n - } \n + BufUtil . release ( m ) ; \n } \n \n if ( discardedMessages != NUMBER0 ) {", "msg_token": "Simplify a bit"} {"diff": " final class Span implements DataPoints { \n final RowSeq rowseq = new RowSeq ( tsdb ) ; \n rowseq . setRow ( row ) ; \n if ( last_ts >= rowseq . timestamp ( NUMBER0 ) ) { \n - throw new IllegalArgumentException ( STRING0 \n - + STRING1 + rows . get ( rows . size ( ) - NUMBER1 ) \n - + STRING2 + rowseq ) ; \n + LOG . error ( STRING3 + \n + rows . get ( rows . size ( ) - NUMBER1 ) + STRING4 + rowseq ) ; \n + return ; \n } \n rows . add ( rowseq ) ; \n }", "msg_token": "Ignore a RowSeq when it s added out of order to a Span"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n public class EhCacheBasedAclCacheTests extends TestCase { \n + SINGLE \n + \n AbstractXmlApplicationContext ctx ; \n \n SINGLE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "tidying up changes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class SQLiteJdbcExpert extends MysqlJdbcExpert { \n \n return true ; \n } \n + \n + public Pojo fetchPojoId ( Entity < ? > en , MappingField idField ) { \n + String autoSql = STRING0 ; \n + Pojo autoInfo = new SqlFieldMacro ( idField , autoSql ) ; \n + autoInfo . setEntity ( en ) ; \n + return autoInfo ; \n + } \n }", "msg_token": "sqlite fetch id fail"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ retention ( RetentionPolicy . RUNTIME ) \n @ target ( { ElementType . TYPE , ElementType . METHOD , ElementType . FIELD , ElementType . PARAMETER } )", "msg_token": "added better javadoc"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public abstract class BinaryHttpResponseHandler extends AsyncHttpResponseHandler \n Log . e ( LOG_TAG , STRING0 ) ; \n } \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public BinaryHttpResponseHandler ( String [ ] allowedContentTypes , Looper looper ) { \n + super ( looper ) ; \n + if ( allowedContentTypes != null ) { \n + mAllowedContentTypes = allowedContentTypes ; \n + } else { \n + Log . e ( LOG_TAG , STRING0 ) ; \n + } \n + } \n \n @ override \n public abstract void onSuccess ( int statusCode , Header [ ] headers , byte [ ] binaryData ) ;", "msg_token": "Added constructor that also takes a looper"} {"diff": " public final class BluetoothSocket implements Closeable { \n } SINGLE \n ret = NUMBER0 ; \n } catch ( IOException e ) { \n + if ( mPfd != null ) { \n + try { \n + mPfd . close ( ) ; \n + } catch ( IOException e1 ) { \n + Log . e ( TAG , STRING0 + e1 ) ; \n + } \n + mPfd = null ; \n + } \n Log . e ( TAG , STRING1 + e ) ; \n return - NUMBER1 ; \n }", "msg_token": "Close the base socket when bindListen fails"} {"diff": " public class GroupTest { \n assertEquals ( NUMBER0 , employees3 . size ( ) ) ; \n \n employees3 . clear ( ) ; \n - \n - COMMENT \n + \n System . out . println ( STRING0 ) ; \n group . close ( ) ; \n \n public class GroupTest { \n group3 . close ( ) ; \n \n System . out . println ( STRING1 ) ; \n - COMMENT \n } \n \n }", "msg_token": "Enabled close test in GroupTest java"} {"diff": " public class GraphvizGrapher extends AbstractInjectorGrapher { \n @ override protected void newImplementationNode ( ImplementationNode node ) { \n NodeId nodeId = node . getId ( ) ; \n GraphvizNode gnode = new GraphvizNode ( nodeId ) ; \n - gnode . setStyle ( NodeStyle . INVISIBLE ) ; \n + gnode . setStyle ( NodeStyle . SOLID ) ; \n \n gnode . setHeaderBackgroundColor ( STRING0 ) ; \n gnode . setHeaderTextColor ( STRING1 ) ; \n public class GraphvizGrapher extends AbstractInjectorGrapher { \n @ override protected void newInstanceNode ( InstanceNode node ) { \n NodeId nodeId = node . getId ( ) ; \n GraphvizNode gnode = new GraphvizNode ( nodeId ) ; \n - gnode . setStyle ( NodeStyle . INVISIBLE ) ; \n + gnode . setStyle ( NodeStyle . SOLID ) ; \n \n gnode . setHeaderBackgroundColor ( STRING0 ) ; \n gnode . setHeaderTextColor ( STRING1 ) ;", "msg_token": "Grapher is producing corrupt graphs"} {"diff": " public class TileEngineIron extends TileEngineWithInventory implements IFluidHan \n \n @ override \n public void overheat ( ) { \n + super . overheat ( ) ; \n SINGLE \n tankCoolant . setFluid ( null ) ; \n }", "msg_token": "add missing super call as spotted by nulano"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public abstract class AbstractContentResponseHandler extends AbstractResponseHandler { \n private final HeaderDetector detector = new HeaderDetector ( ) ; \n public abstract class AbstractContentResponseHandler extends AbstractResponseHan \n ByteBuf buffer = Unpooled . buffer ( ) ; \n writeContentResponse ( context . getRequest ( ) , buffer ) ; \n response . content ( ) . writeBytes ( buffer ) ; \n - addHeader ( response , HttpHeaders . CONTENT_LENGTH , buffer . writerIndex ( ) ) ; \n + setContentLength ( response , response . content ( ) . writerIndex ( ) ) ; \n if ( ! detector . hasContentType ( response ) ) { \n addHeader ( response , HttpHeaders . CONTENT_TYPE , getContentType ( context . getRequest ( ) ) ) ; \n }", "msg_token": "used set content length api rather set header directly"} {"diff": " public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Vector2D { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Removed some javadocs for nonexistant parameters in Vector2D methods"} {"diff": " public class LogModel { \n } \n \n void addNotification ( Notification notification ) { \n - if ( notification . isImportant ( ) || NotificationsConfiguration . getSettings ( notification . getGroupId ( ) ) . getDisplayType ( ) != NotificationDisplayType . NONE ) { \n + NotificationDisplayType type = NotificationsConfiguration . getSettings ( notification . getGroupId ( ) ) . getDisplayType ( ) ; \n + if ( notification . isImportant ( ) || ( type != NotificationDisplayType . NONE && type != NotificationDisplayType . TOOL_WINDOW ) ) { \n synchronized ( myNotifications ) { \n myNotifications . add ( notification ) ; \n }", "msg_token": "let toolwindow notifications not affect the ide notification icon color they spam too much"} {"diff": " public class Canvas extends RelativeLayout { \n private void applyAlpha ( ) { \n Util . Assert ( mCurrentAlpha >= FLOAT0 && mCurrentAlpha <= FLOAT1 ) ; \n \n - int color = ( ( int ) ( NUMBER0 * mCurrentAlpha ) < < NUMBER1 ) ; \n + int color = ( ( int ) ( NUMBER2 * mCurrentAlpha ) < < NUMBER1 ) ; \n setBackgroundColor ( color ) ; \n \n if ( ! mEnabled || mCurrentAlpha == FLOAT0 ) {", "msg_token": "Reduce color of background fading a bit"} {"diff": " public class ConsoleVisitorFilter implements PythonVisitorFilter { \n SINGLE \n if ( visitorClass == PyUnusedLocalInspection . class || visitorClass == PyUnboundLocalVariableInspection . class || \n visitorClass == PyStatementEffectInspection . class || visitorClass == PySingleQuotedDocstringInspection . class || \n - visitorClass == PyDocstringInspection . class ) { \n + visitorClass == PyDocstringInspection . class || visitorClass == PyMandatoryEncodingInspection . class ) { \n return false ; \n }", "msg_token": "Disable Encoding not specified inspection in console"} {"diff": " public class SecurityCheckProvider implements InjectableProvider < SecurityCheck , \n } \n \n @ requiredargsconstructor \n - static class SecurityCheckInjectable < T > extends AbstractHttpContextInjectable < User > { \n + static class SecurityCheckInjectable extends AbstractHttpContextInjectable < User > { \n private static final String PREFIX = STRING0 ; \n \n private final HttpServletRequest request ; \n public class SecurityCheckProvider implements InjectableProvider < SecurityCheck , \n \n @ override \n public Injectable < ? > getInjectable ( ComponentContext ic , SecurityCheck sc , Parameter c ) { \n - return new SecurityCheckInjectable < > ( request , userService , sc . value ( ) , sc . apiKeyAllowed ( ) ) ; \n + return new SecurityCheckInjectable ( request , userService , sc . value ( ) , sc . apiKeyAllowed ( ) ) ; \n } \n }", "msg_token": "remove unused generic type"} {"diff": " public class AndroidBinary extends AbstractBuildable implements \n } ) ; \n \n SINGLE \n - SINGLE \n Step obfuscateCommand = ProGuardObfuscateStep . create ( \n proguardJarOverride , \n generatedProGuardConfig ,", "msg_token": "Remove an obsolete comment"} {"diff": " public abstract class ViewGroup extends View implements ViewParent , ViewManager \n mGroupFlags |= FLAG_CLIP_CHILDREN ; \n mGroupFlags |= FLAG_CLIP_TO_PADDING ; \n mGroupFlags |= FLAG_ANIMATION_DONE ; \n + mGroupFlags |= FLAG_ANIMATION_CACHE ; \n + mGroupFlags |= FLAG_ALWAYS_DRAWN_WITH_CACHE ; \n \n if ( mContext . getApplicationInfo ( ) . targetSdkVersion >= Build . VERSION_CODES . HONEYCOMB ) { \n mGroupFlags |= FLAG_SPLIT_MOTION_EVENTS ;", "msg_token": "Fix ViewGroup caching defaults"} {"diff": " import NAMESPACE ; \n @ module \n public class AppModule { \n \n - Application application ; \n + private Application application ; \n \n public AppModule ( Application application ) { \n this . application = application ;", "msg_token": "Make app module field private"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class UnindexedFilesUpdater implements BackgroundableCacheUpdater { \n SINGLE \n final Set < String > rootsToIndex = provider . getRootsToIndex ( ) ; \n for ( String url : rootsToIndex ) { \n - final VirtualFile root = VfsUtil . findFileByURL ( VfsUtil . convertToURL ( url ) ) ; \n + final VirtualFile root = VirtualFileManager . getInstance ( ) . findFileByUrl ( url ) ; \n if ( visitedRoots . add ( root ) ) { \n iterateRecursively ( root , processor , indicator ) ; \n }", "msg_token": "fix indexing of jar roots"} {"diff": " public class LocalIndexesActivity extends OsmandExpandableListActivity { \n } else if ( child . isCorrupted ( ) ) { \n viewName . setTextColor ( corruptedColor ) ; \n } else if ( child . isLoaded ( ) ) { \n - viewName . setTextColor ( okColor ) ; \n + SINGLE \n + SINGLE \n } else { \n viewName . setTextColor ( defaultColor ) ; \n }", "msg_token": "try remove ambiguity dur to green as isLoaded color"} {"diff": " public class Build { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed a typo implying intents must and must not be explicit"} {"diff": " public class JDBCSQLDialect extends BasicSQLDialect { \n functions . addAll ( allFunctions ) ; \n } \n catch ( Throwable e ) { \n - if ( e instanceof InvocationTargetException ) { \n - e = ( ( InvocationTargetException ) e ) . getTargetException ( ) ; \n - } \n log . error ( e ) ; \n } \n \n package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class SQLWordPartDetector extends SQLIdentifierDetector \n } \n \n String prevWord = document . get ( prevOffset , prevStartOffset - prevOffset ) ; \n - if ( syntaxManager . getDialect ( ) . getKeywordType ( prevWord ) == DBPKeywordType . KEYWORD && \n - ! prevWord . equalsIgnoreCase ( STRING0 ) ) \n - { \n + SQLDialect dialect = syntaxManager . getDialect ( ) ; \n + if ( dialect . isEntityQueryWord ( prevWord ) || dialect . isAttributeQueryWord ( prevWord ) ) { \n this . prevKeyWord = prevWord . toUpperCase ( ) ; \n break ; \n }", "msg_token": "Autocomplete now checks only table column keywords and ignore all other"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "eliminate eclipse warnings"} {"diff": " public class ConcurrentMapManager extends BaseManager { \n PutAllCallable callable = new PutAllCallable ( name , targetPairs ) ; \n DistributedTask < Boolean > dt = new DistributedTask < Boolean > ( callable , member ) ; \n lsFutures . add ( dt ) ; \n - node . factory . getExecutorService ( ) . execute ( dt ) ; \n + node . factory . getExecutorService ( STRING0 ) . execute ( dt ) ; \n } \n } \n for ( Future < Boolean > future : lsFutures ) {", "msg_token": "putAll was using default Executor Service to put in parallel"} {"diff": " public class MetricsRoutePolicy extends RoutePolicySupport { \n \n this . route = route ; \n try { \n - registry = route . getRouteContext ( ) . getCamelContext ( ) . hasServiceByType ( MetricsRegistryService . class ) ; \n + registry = route . getRouteContext ( ) . getCamelContext ( ) . hasService ( MetricsRegistryService . class ) ; \n if ( registry == null ) { \n registry = new MetricsRegistryService ( ) ; \n route . getRouteContext ( ) . getCamelContext ( ) . addService ( registry ) ;", "msg_token": "camel metrics Add a route policy to expose route stats as codehale metrics"} {"diff": " public class Texture2DHandler extends AssetExtractHandler { \n break ; \n \n case ARGB4444 : \n + case RGBA4444 : \n case RGB565 : \n case DXT1 : \n case DXT5 : \n public class Texture2DHandler extends AssetExtractHandler { \n header . ddspf . dwRGBBitCount = NUMBER0 ; \n break ; \n \n + case RGBA4444 : \n + header . ddspf . dwFlags = DDSPixelFormat . DDPF_RGBA ; \n + header . ddspf . dwRBitMask = NUMBER1 ; \n + header . ddspf . dwGBitMask = NUMBER2 ; \n + header . ddspf . dwBBitMask = NUMBER3 ; \n + header . ddspf . dwABitMask = NUMBER4 ; \n + header . ddspf . dwRGBBitCount = NUMBER0 ; \n + break ; \n + \n case RGB565 : \n header . ddspf . dwFlags = DDSPixelFormat . DDPF_RGB ; \n header . ddspf . dwRBitMask = NUMBER5 ;", "msg_token": "Added case for DDS RGBA4444"} {"diff": " public class HTML5VideoFullScreen extends HTML5VideoView \n SINGLE \n if ( mMediaController != null ) { \n mMediaController . setEnabled ( true ) ; \n + mMediaController . show ( ) ; \n } \n \n if ( mProgressView != null ) { \n public class HTML5VideoFullScreen extends HTML5VideoView \n return NUMBER0 ; \n } \n \n + @ override \n + public void showControllerInFullScreen ( ) { \n + mMediaController . show ( NUMBER0 ) ; \n + } \n + \n SINGLE \n private MediaPlayer . OnBufferingUpdateListener mBufferingUpdateListener = \n new MediaPlayer . OnBufferingUpdateListener ( ) { \n public class HTML5VideoView implements MediaPlayer . OnPreparedListener { \n return m_startWhenPrepared ; \n } \n \n + public void showControllerInFullScreen ( ) { \n + } \n + \n } \n class HTML5VideoViewProxy extends Handler \n } \n \n public static void end ( ) { \n + mHTML5VideoView . showControllerInFullScreen ( ) ; \n if ( mCurrentProxy != null ) { \n if ( isVideoSelfEnded ) \n mCurrentProxy . dispatchOnEnded ( ) ;", "msg_token": "Keep the controller when video ended"} {"diff": " public class CarrierConfigManager { \n public static final String KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL = STRING0 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String KEY_EDITABLE_WFC_MODE_BOOL = STRING1 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CarrierConfigManager { \n sDefaults . putBoolean ( KEY_EDITABLE_ENHANCED_4G_LTE_BOOL , true ) ; \n sDefaults . putBoolean ( KEY_HIDE_IMS_APN_BOOL , false ) ; \n sDefaults . putBoolean ( KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL , false ) ; \n + sDefaults . putBoolean ( KEY_EDITABLE_WFC_MODE_BOOL , true ) ; \n sDefaults . putInt ( KEY_CDMA_DTMF_TONE_DELAY_INT , NUMBER0 ) ; \n \n SINGLE", "msg_token": "Add carrier config variable to support editable wfc mode"} {"diff": " public class Account implements Serializable \n } \n while ( gotOne ) ; \n \n - SINGLE \n if ( newIdentities . size ( ) == NUMBER0 ) \n { \n String name = prefs . getString ( mUuid + STRING0 , null ) ;", "msg_token": "Removed unnecessary FIXME comment"} {"diff": " public class Views { \n injectionTargets . add ( erasedInjectionType ) ; \n } \n \n - for ( Map . Entry < TypeElement , Map < Integer , Set < InjectionPoint > > > injection \n + for ( Map . Entry < TypeElement , Map < Integer , Set < InjectionPoint > > > injection SINGLE \n : injectionsByClass . entrySet ( ) ) { \n TypeElement type = injection . getKey ( ) ; \n String targetType = type . getQualifiedName ( ) . toString ( ) ;", "msg_token": "Prevent IntelliJ from causing checkstyle failures by not wrapping for each"} {"diff": " public class ShiftReduceParser extends ParserGrammar implements Serializable { \n } \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public Set < String > knownStates ( ) { \n + return Collections . unmodifiableSet ( model . knownStates ) ; \n + } \n + \n @ override \n public boolean requiresTags ( ) { \n return true ;", "msg_token": "Add a method for getting the known states from a model"} {"diff": " public class ErrorReportValve \n if ( ( statusCode < NUMBER0 ) || ( response . getContentCount ( ) > NUMBER1 ) ) \n return ; \n \n - Throwable rootCause = null ; \n - \n - if ( throwable != null ) { \n - \n - if ( throwable instanceof ServletException ) \n - rootCause = ( ( ServletException ) throwable ) . getRootCause ( ) ; \n - \n - } \n - \n String message = RequestUtil . filter ( response . getMessage ( ) ) ; \n if ( message == null ) \n message = STRING0 ; \n public class ErrorReportValve \n sb . append ( STRING1 ) ; \n \n int loops = NUMBER1 ; \n + Throwable rootCause = throwable . getCause ( ) ; \n while ( rootCause != null && ( loops < NUMBER2 ) ) { \n stackTrace = getPartialServletStackTrace ( rootCause ) ; \n sb . append ( STRING2 ) ;", "msg_token": "Simplify the code"} {"diff": " public class DefaultServlet \n request . setAttribute ( STRING0 , Long . valueOf ( range . start ) ) ; \n request . setAttribute ( STRING1 , Long . valueOf ( range . end + NUMBER0 ) ) ; \n } \n - request . setAttribute ( STRING2 , this ) ; \n return true ; \n } \n return false ;", "msg_token": "Remove unused attribute"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class SharedLibraryLoader { \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public SharedLibraryLoader ( String nativesJar ) {", "msg_token": "fixed import in SharedLibraryLoader"} {"diff": " public enum BlockType { \n nonDataAttachments . put ( BlockID . WOODEN_PRESSURE_PLATE , PlayerDirection . DOWN ) ; \n SINGLE \n for ( int offset = NUMBER0 ; offset <= NUMBER1 ; offset += NUMBER1 ) { \n - addCardinals ( BlockID . STONE_BUTTON , offset + NUMBER2 , offset + NUMBER3 , offset + NUMBER4 , offset + NUMBER5 ) ; \n + addCardinals ( BlockID . STONE_BUTTON , offset + NUMBER5 , offset + NUMBER4 , offset + NUMBER3 , offset + NUMBER2 ) ; \n } \n nonDataAttachments . put ( BlockID . REED , PlayerDirection . DOWN ) ; \n nonDataAttachments . put ( BlockID . CAKE_BLOCK , PlayerDirection . DOWN ) ; \n public enum BlockType { \n nonDataAttachments . put ( BlockID . PUMPKIN_STEM , PlayerDirection . DOWN ) ; \n nonDataAttachments . put ( BlockID . MELON_STEM , PlayerDirection . DOWN ) ; \n SINGLE \n + dataAttachments . put ( attachmentKey ( BlockID . VINE , NUMBER0 ) , PlayerDirection . UP ) ; \n addCardinals ( BlockID . VINE , NUMBER4 , NUMBER2 , NUMBER5 , NUMBER1 ) ; \n SINGLE \n }", "msg_token": "Apparently the wiki has wrong data values for the stone button"} {"diff": " public class BinaryInspector { \n for ( City c : cities ) { \n int size = index . preloadStreets ( c , null ) ; \n List < Street > streets = new ArrayList < Street > ( c . getStreets ( ) ) ; \n - print ( MessageFormat . format ( STRING0 , \n - new Object [ ] { c . getName ( lang ) , c . getId ( ) , streets . size ( ) , size } ) ) ; \n - if ( ! verbose . vstreets ) \n - { \n + String cityDescription = ( j == BinaryMapAddressReaderAdapter . POSTCODES_TYPE ? \n + MessageFormat . format ( STRING1 , c . getName ( lang ) , streets . size ( ) , size ) : \n + MessageFormat . format ( STRING0 , c . getName ( lang ) , c . getId ( ) , streets . size ( ) , size ) ) ; \n + print ( cityDescription ) ; \n + if ( ! verbose . vstreets ) { \n println ( STRING2 ) ; \n continue ; \n }", "msg_token": "not print IDs for postcodes"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ReaderPost { \n } \n } \n } \n - \n - SINGLE \n + SINGLE \n + SINGLE \n + if ( ! post . hasFeaturedImage ( ) && post . hasAttachments ( ) ) { \n + post . featuredImage = new ImageSizeMap ( post . attachmentsJson ) \n + . getLargestImageUrl ( ReaderConstants . MIN_FEATURED_IMAGE_WIDTH ) ; \n + } \n + SINGLE \n SINGLE \n if ( ! post . hasFeaturedImage ( ) && post . hasText ( ) && post . text . contains ( STRING0 ) ) { \n post . featuredImage = new ReaderImageScanner ( post . text , post . isPrivate )", "msg_token": "don t scan attachments when picking the featured image"} {"diff": " import NAMESPACE ; \n \n public class ManagedProxyFactory { \n \n - public static final ManagedProxyFactory INSTANCE = new ManagedProxyFactory ( ) ; \n - \n public < T > T createProxy ( ModelElementState state , ModelManagedImplStructSchema < T > schema ) { \n try { \n Class < ? extends T > generatedClass = schema . getImplementationType ( ) ;", "msg_token": "Remove unnecessary singleton instance of ManagedProxyFactory"} {"diff": " public class DTree extends Iced { \n else min = split ; \n } \n } \n - if ( min == maxEx ) continue ; SINGLE \n + if ( DHistogram . equalsWithinOneSmallUlp ( min , maxEx ) ) continue ; SINGLE \n if ( h . _isInt > NUMBER0 && ! ( min + NUMBER1 < maxEx ) ) continue ; SINGLE \n if ( min > maxEx ) continue ; SINGLE \n assert min < maxEx && n > NUMBER1 : STRING0 + min + STRING1 + maxEx + STRING2 + n ;", "msg_token": "Instead of using a perfect equality test for stopping future column"} {"diff": " import NAMESPACE ; \n \n SINGLE \n \n - SINGLE \n - \n - SINGLE \n SINGLE \n SINGLE \n SINGLE \n public class PDFViewerPresenter implements IsWidget , \n @ override \n public void onClick ( ClickEvent event ) \n { \n - Debug . log ( STRING0 + PDFView . currentPage ( ) ) ; \n synctex_ . inverseSearch ( PdfLocation . create ( lastSuccessfulPdfPath_ , \n PDFView . currentPage ( ) , \n NUMBER0 , NUMBER0 , NUMBER1 , NUMBER1 ) ) ;", "msg_token": "remove debug statement update todos"} {"diff": " public class TestingTypeManager \n public Type getType ( TypeSignature signature ) \n { \n for ( Type type : getTypes ( ) ) { \n - if ( signature . equals ( type . getTypeSignature ( ) ) ) { \n + if ( signature . getBase ( ) . equals ( type . getTypeSignature ( ) . getBase ( ) ) ) { \n return type ; \n } \n }", "msg_token": "Fix SPI tests for varchar change"} {"diff": " public class GeoBroker extends Plugin { \n this . gpsListener = null ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void onReset ( ) { \n + this . onDestroy ( ) ; \n + } \n + \n public JSONObject returnLocationJSON ( Location loc ) { \n JSONObject o = new JSONObject ( ) ;", "msg_token": "Add onReset to GeoBroker"} {"diff": " public class MessageList \n } \n else if ( mQueryString != null ) \n { \n - setTitle ( R . string . search_results + STRING0 + mQueryString ) ; \n + setTitle ( getString ( R . string . search_results ) + STRING0 + mQueryString ) ; \n } \n }", "msg_token": "Fix the Search header on search results"} {"diff": " public final class TypeFactory \n int len = actualTypes . length ; \n for ( int i = NUMBER0 ; i < len ; ++ i ) { \n String name = vars [ i ] . getName ( ) ; \n - JavaType type = instance . _constructType ( actualTypes [ i ] , bindings ) ; \n + JavaType type = _constructType ( actualTypes [ i ] , bindings ) ; \n newBindings . addBinding ( name , type ) ; \n } \n }", "msg_token": "remove accidental use of instance in TypeFactory"} {"diff": " public final class MediaType { \n public static final MediaType RTF_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING0 ) ; \n public static final MediaType SHOCKWAVE_FLASH = createConstant ( APPLICATION_TYPE , \n STRING1 ) ; \n + public static final MediaType SKETCHUP = createConstant ( APPLICATION_TYPE , STRING2 ) ; \n public static final MediaType TAR = createConstant ( APPLICATION_TYPE , STRING3 ) ; \n public static final MediaType XHTML_UTF_8 = createConstantUtf8 ( APPLICATION_TYPE , STRING4 ) ; \n public static final MediaType ZIP = createConstant ( APPLICATION_TYPE , STRING5 ) ; \n public final class MediaType { \n . put ( POSTSCRIPT , POSTSCRIPT ) \n . put ( RTF_UTF_8 , RTF_UTF_8 ) \n . put ( SHOCKWAVE_FLASH , SHOCKWAVE_FLASH ) \n + . put ( SKETCHUP , SKETCHUP ) \n . put ( TAR , TAR ) \n . put ( XHTML_UTF_8 , XHTML_UTF_8 ) \n . put ( ZIP , ZIP )", "msg_token": "Add MediaType for Google Sketchup"} {"diff": " public class SimpleSlide extends Slide { \n } \n \n public SimpleSlide build ( ) { \n - if ( background == NUMBER0 || title == NUMBER0 || layout == NUMBER0 ) \n - throw new IllegalArgumentException ( STRING0 ) ; \n + if ( title == NUMBER0 || description == NUMBER0 || image == NUMBER0 || background == NUMBER0 ) \n + throw new IllegalArgumentException ( STRING1 ) ; \n return new SimpleSlide ( this ) ; \n } \n }", "msg_token": "Fix checks on Builder Error handling"} {"diff": " public class HelpActivity extends OsmandActionBarActivity { \n @ override \n public boolean onCreateOptionsMenu ( Menu menu ) { \n createMenuItem ( menu , HOME , R . string . home , \n - R . drawable . ic_action_home_light , R . drawable . ic_action_home_dark , \n + R . drawable . ic_action_home_dark , R . drawable . ic_action_home_dark , \n MenuItemCompat . SHOW_AS_ACTION_IF_ROOM ) ; \n createMenuItem ( menu , BACK , R . string . previous_button , \n NUMBER0 , NUMBER0 , SINGLE \n public class HelpActivity extends OsmandActionBarActivity { \n NUMBER0 , NUMBER0 , SINGLE \n MenuItemCompat . SHOW_AS_ACTION_IF_ROOM ) ; \n createMenuItem ( menu , CLOSE , R . string . close , \n - R . drawable . ic_action_ok_light , R . drawable . ic_action_ok_dark , \n + R . drawable . ic_action_ok_dark , R . drawable . ic_action_ok_dark , \n MenuItemCompat . SHOW_AS_ACTION_IF_ROOM ) ; \n return super . onCreateOptionsMenu ( menu ) ; \n }", "msg_token": "Fixed HelpActivity icons for light theme"} {"diff": " public final class ConnectionId { \n private final ServerId serverId ; \n private final int localValue ; \n private final Integer serverValue ; \n + private final String stringValue ; \n \n COMMENT \n COMMENT \n public final class ConnectionId { \n this . serverId = notNull ( STRING0 , serverId ) ; \n this . localValue = localValue ; \n this . serverValue = serverValue ; \n + if ( serverValue == null ) { \n + stringValue = format ( STRING1 , localValue ) ; \n + } else { \n + stringValue = format ( STRING2 , localValue , serverValue ) ; \n + } \n } \n \n COMMENT \n public final class ConnectionId { \n \n @ override \n public String toString ( ) { \n - if ( serverValue == null ) { \n - return format ( STRING1 , localValue ) ; \n - } else { \n - return format ( STRING2 , localValue , serverValue ) ; \n - } \n + return stringValue ; \n } \n }", "msg_token": "Cached String value of ConnectionId to avoid cost of String format"} {"diff": " public class MBeanUtils { \n SINGLE \n ObjectName db = new ObjectName ( \n STRING0 + userDatabase ) ; \n - mserver . unregisterMBean ( db ) ; \n + if ( mserver . isRegistered ( db ) ) { \n + mserver . unregisterMBean ( db ) ; \n + } \n } \n }", "msg_token": "Avoid Warning message at shutdown if GlobalResourceLifecacleListener isn t configured"} {"diff": " public class IndicesServiceTests extends ESSingleNodeTestCase { \n listener . latch . await ( ) ; \n assertThat ( clusterService . state ( ) , not ( originalState ) ) ; \n assertNotNull ( clusterService . state ( ) . getMetaData ( ) . index ( alias ) ) ; \n - \n - SINGLE \n - indicesService . deleteIndex ( test . index ( ) , STRING0 ) ; \n } \n \n COMMENT", "msg_token": "Fix test issue where index is explicitly deleted during cluster state update"} {"diff": " public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem \n myWrappee . acceptChildren ( visitor ) ; \n } \n \n + @ notnull \n @ override \n public PsiElement copy ( ) { \n return myWrappee . copy ( ) ; \n public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem \n \n @ override \n public void checkAdd ( @ notnull PsiElement element ) throws IncorrectOperationException { \n + SINGLE \n myWrappee . checkAdd ( element ) ; \n } \n \n public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem \n \n @ override \n public void checkDelete ( ) throws IncorrectOperationException { \n + SINGLE \n myWrappee . checkDelete ( ) ; \n } \n \n public class XmlAttributeValueWrapper implements XmlAttributeValue , PsiNamedElem \n myWrappee . deleteChildRange ( first , last ) ; \n } \n \n + @ notnull \n @ override \n public PsiElement replace ( @ notnull PsiElement newElement ) throws IncorrectOperationException { \n return myWrappee . replace ( newElement ) ;", "msg_token": "Add NotNull annotations to Android XML value wrapper"} {"diff": " public interface ClaimStrategy \n } \n else \n { \n - for ( long i = expectedSequence + NUMBER0 ; i <= sequence ; i ++ ) \n + for ( long i = expectedSequence + NUMBER0 ; i < sequence ; i ++ ) \n { \n - pendingPublications . set ( ( int ) i & indexMask , i ) ; \n + pendingPublications . lazySet ( ( int ) i & indexMask , i ) ; \n } \n + \n + pendingPublications . set ( ( int ) sequence & indexMask , sequence ) ; \n } \n \n if ( csLock . compareAndSet ( NUMBER1 L , NUMBER2 ) )", "msg_token": "only memory barrier pending publications at end of batch"} {"diff": " public class Roster implements Cacheable { \n \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - public Roster ( String username ) { \n + Roster ( String username ) { \n presenceManager = XMPPServer . getInstance ( ) . getPresenceManager ( ) ; \n rosterManager = XMPPServer . getInstance ( ) . getRosterManager ( ) ; \n sessionManager = SessionManager . getInstance ( ) ;", "msg_token": "Modified constructor to be visible only to the package no longer public"} {"diff": " public class TheTVDB { \n } ) ; \n episode . getChild ( STRING0 ) . setEndTextElementListener ( new EndTextElementListener ( ) { \n public void end ( String body ) { \n - long episodeAirTime = Utils . buildEpisodeAirtime ( body , show . airtime ) ; \n + long episodeAirTime = TimeTools \n + . parseEpisodeReleaseTime ( body , show . airtime , show . country ) ; \n values . put ( Episodes . FIRSTAIREDMS , episodeAirTime ) ; \n values . put ( Episodes . FIRSTAIRED , body . trim ( ) ) ; \n }", "msg_token": "Parse episode time using the new TimeTools helper"} {"diff": " public class ExtentEntityCopy implements EntityFunction { \n \n if ( ! transform . isIdentity ( ) ) { \n Location location = entity . getLocation ( ) ; \n - Vector newPosition = transform . apply ( location . toVector ( ) . subtract ( from ) ) ; \n + Vector pivot = from . round ( ) . add ( FLOAT0 , FLOAT0 , FLOAT0 ) ; \n + Vector newPosition = transform . apply ( location . toVector ( ) . subtract ( pivot ) ) ; \n Vector newDirection = transform . apply ( location . getDirection ( ) ) . subtract ( transform . apply ( Vector . ZERO ) ) . normalize ( ) ; \n - newLocation = new Location ( destination , newPosition . add ( to ) , newDirection ) ; \n + newLocation = new Location ( destination , newPosition . add ( to . round ( ) . add ( FLOAT0 , FLOAT0 , FLOAT0 ) ) , newDirection ) ; \n \n SINGLE \n state = transformNbtData ( state ) ;", "msg_token": "Fix entity rotation"} {"diff": " public class RequestReplyExample { \n \n SINGLE \n SINGLE \n - from ( STRING0 ) \n + from ( STRING1 ) \n . filter ( header ( QuickfixjEndpoint . MESSAGE_TYPE_KEY ) . isEqualTo ( MsgType . ORDER_STATUS_REQUEST ) ) \n + . to ( STRING2 ) \n . bean ( new MarketOrderStatusService ( ) ) \n . bean ( new QuickfixjMessageJsonPrinter ( ) ) ;", "msg_token": "Modified the second route to demonstrate the problem"} {"diff": " public class FlexboxLayout extends ViewGroup { \n switch ( flexDirection ) { \n case FLEX_DIRECTION_ROW : SINGLE \n case FLEX_DIRECTION_ROW_REVERSE : \n - calculatedMaxHeight = getSumOfCrossSize ( ) ; \n + calculatedMaxHeight = getSumOfCrossSize ( ) + getPaddingTop ( ) + getPaddingBottom ( ) ; \n calculatedMaxWidth = getLargestMainSize ( ) ; \n break ; \n case FLEX_DIRECTION_COLUMN : SINGLE \n case FLEX_DIRECTION_COLUMN_REVERSE : \n calculatedMaxHeight = getLargestMainSize ( ) ; \n - calculatedMaxWidth = getSumOfCrossSize ( ) ; \n + calculatedMaxWidth = getSumOfCrossSize ( ) + getPaddingLeft ( ) + getPaddingRight ( ) ; \n break ; \n default : \n throw new IllegalArgumentException ( STRING0 + flexDirection ) ;", "msg_token": "Fix the issue paddings are not taken into account along the cross axis"} {"diff": " public class RootsCache { \n \n @ override \n public void onChange ( boolean selfChange , Uri uri ) { \n + if ( uri == null ) { \n + Log . w ( TAG , STRING0 ) ; \n + return ; \n + } \n if ( DEBUG ) Log . d ( TAG , STRING1 + uri ) ; \n updateAuthorityAsync ( uri . getAuthority ( ) ) ; \n }", "msg_token": "Handle null uris in content changed events"} {"diff": " public final class SendTicketGrantingTicketAction extends AbstractAction { \n LOGGER . info ( STRING0 \n + STRING1 ) ; \n } else { \n + LOGGER . debug ( STRING2 ) ; \n this . ticketGrantingTicketCookieGenerator . addCookie ( WebUtils . getHttpServletRequest ( context ) , WebUtils \n . getHttpServletResponse ( context ) , ticketGrantingTicketId ) ; \n }", "msg_token": "add debug statement"} {"diff": " public final class TvInputInfo implements Parcelable { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "update documentation of TvInputInfo getParentId"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import in Parseable java"} {"diff": " public final class ProjectViewImpl extends ProjectView implements JDOMExternaliz \n if ( isFlattenPackages ( myCurrentViewId ) ) { \n presentation . setText ( IdeBundle . message ( STRING0 ) ) ; \n presentation . setDescription ( IdeBundle . message ( STRING1 ) ) ; \n - presentation . setIcon ( HIDE_EMPTY_MIDDLE_PACKAGES_ICON ) ; \n } \n else { \n presentation . setText ( IdeBundle . message ( STRING2 ) ) ; \n presentation . setDescription ( IdeBundle . message ( STRING3 ) ) ; \n - presentation . setIcon ( COMPACT_EMPTY_MIDDLE_PACKAGES_ICON ) ; \n } \n } \n }", "msg_token": "remove icon for hide empty middle packages"} {"diff": " public class RequestCreatorTest { \n @ test public void fetchWithCache ( ) { \n when ( picasso . quickMemoryCacheCheck ( URI_KEY_1 ) ) . thenReturn ( bitmap ) ; \n new RequestCreator ( picasso , URI_1 , NUMBER0 ) . memoryPolicy ( MemoryPolicy . NO_CACHE ) . fetch ( ) ; \n - verify ( picasso ) . submit ( actionCaptor . capture ( ) ) ; \n verify ( picasso , never ( ) ) . enqueueAndSubmit ( any ( Action . class ) ) ; \n } \n \n @ test public void fetchWithMemoryPolicyNoCache ( ) { \n - when ( picasso . quickMemoryCacheCheck ( URI_KEY_1 ) ) . thenReturn ( bitmap ) ; \n new RequestCreator ( picasso , URI_1 , NUMBER0 ) . memoryPolicy ( MemoryPolicy . NO_CACHE ) . fetch ( ) ; \n + verify ( picasso , never ( ) ) . quickMemoryCacheCheck ( URI_KEY_1 ) ; \n verify ( picasso ) . submit ( actionCaptor . capture ( ) ) ; \n }", "msg_token": "Fix up tests"} {"diff": " public class PersistentPathChildrenCacheTest { \n \n verify ( listener , atLeastOnce ( ) ) . nodesChanged ( cache ) ; \n \n - SINGLE \n - zk . stop ( ) ; \n - \n SINGLE \n final SettableFuture < Void > connectionLost = SettableFuture . create ( ) ; \n doAnswer ( new Answer < Object > ( ) { \n public class PersistentPathChildrenCacheTest { \n return null ; \n } \n } ) . when ( listener ) . connectionStateChanged ( any ( ConnectionState . class ) ) ; \n + \n + SINGLE \n + zk . stop ( ) ; \n connectionLost . get ( NUMBER0 , MINUTES ) ; \n \n SINGLE", "msg_token": "Fix potential race condition in test"} {"diff": " public abstract class HazelcastTestSupport { \n public static final int ASSERT_TRUE_EVENTUALLY_TIMEOUT ; \n \n static { \n - SINGLE \n - String libPath = StringUtil . lowerCaseInternal ( System . getProperty ( STRING0 ) ) ; \n - if ( libPath . contains ( STRING1 ) || libPath . contains ( STRING2 ) ) { \n - setLogLevelWarn ( ) ; \n - } \n - \n System . setProperty ( STRING3 , STRING4 ) ; \n \n ASSERT_TRUE_EVENTUALLY_TIMEOUT = Integer . parseInt ( System . getProperty ( STRING5 , STRING6 ) ) ;", "msg_token": "Reverted the logging nonsense in HazelcastTestSupport when I run a test in IntelliJ I want to see logging"} {"diff": " public class GitBlit implements ServletContextListener { \n if ( r != null ) { \n updateConfiguration ( r , repository ) ; \n SINGLE \n - if ( ! StringUtils . isEmpty ( repository . defaultHead ) && \n - ! repository . defaultHead . equals ( JGitUtils . getSymbolicHeadTarget ( r ) ) ) { \n + String currentHead = JGitUtils . getSymbolicHeadTarget ( r ) ; \n + if ( ! StringUtils . isEmpty ( repository . defaultHead ) && \n + ! repository . defaultHead . equals ( currentHead ) ) { \n + logger . info ( MessageFormat . format ( STRING0 , \n + repository . name , currentHead , repository . defaultHead ) ) ; \n JGitUtils . setSymbolicHeadTarget ( r , repository . defaultHead ) ; \n + \n + SINGLE \n + clearRepositoryCache ( repository . name ) ; \n } \n + \n + SINGLE \n r . close ( ) ; \n } \n }", "msg_token": "Added some logging for relinking HEAD"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class OSMReaderHelperDoubleParse extends OSMReaderHelper { \n private static final int TOWER_NODE = - NUMBER0 ; \n private final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; \n SINGLE \n - SINGLE \n + private BigLongIntMap osmIdToIndexMap ; \n SINGLE \n - private MyMapDB osmIdToIndexMap ; \n + SINGLE \n SINGLE \n SINGLE \n SINGLE \n public class OSMReaderHelperDoubleParse extends OSMReaderHelper { \n pillarLats = dir . findCreate ( STRING0 ) ; \n pillarLons = dir . findCreate ( STRING1 ) ; \n SINGLE \n - SINGLE \n + osmIdToIndexMap = new BigLongIntMap ( expectedNodes , EMPTY ) ; \n SINGLE \n - osmIdToIndexMap = new MyMapDB ( true ) ; \n + SINGLE \n } \n \n @ override", "msg_token": "remove MyMapDB from double parser"} {"diff": " public final class LearnLibSvmClassifierAggregation \n public static void output ( LearnState state , BlockBuilder out ) \n { \n Dataset dataset = new Dataset ( state . getLabels ( ) , state . getFeatureVectors ( ) ) ; \n - Model model = new ClassifierFeatureTransformer ( new SvmClassifier ( state . getParameters ( ) ) , new FeatureUnitNormalizer ( ) ) ; \n + Model model = new ClassifierFeatureTransformer ( new SvmClassifier ( state . getParameters ( ) ) , new FeatureUnitNormalizer ( ) ) ; \n model . train ( dataset ) ; \n ClassifierType . CLASSIFIER . writeSlice ( out , ModelUtils . serialize ( model ) ) ; \n }", "msg_token": "Remove extra space in LearnLibSvmClassifierAggregation"} {"diff": " public class MathUtils { \n return random . nextBoolean ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + static public final boolean randomBoolean ( int chance ) { \n + if ( chance < NUMBER0 ) { \n + throw new IllegalArgumentException ( STRING0 ) ; \n + } else if ( chance > NUMBER1 ) { \n + throw new IllegalArgumentException ( STRING1 ) ; \n + } \n + return MathUtils . random ( NUMBER2 , NUMBER0 ) <= chance ; \n + } \n + \n COMMENT \n static public final float random ( ) { \n return random . nextFloat ( ) ;", "msg_token": "Added a random boolean with chance"} {"diff": " public class AndroidApkBuilder { \n continue ; \n } \n \n - if ( ! dstDir . mkdirs ( ) ) { \n + if ( ! dstDir . exists ( ) && ! dstDir . mkdirs ( ) ) { \n map . get ( ERROR ) . add ( STRING0 + FileUtil . toSystemDependentName ( dstDir . getPath ( ) ) ) ; \n continue ; \n }", "msg_token": "do not recreate directory"} {"diff": " public abstract class CommonXml implements XMLElementReader < List < ModelNode > > , XM \n Set < String > deploymentNames = deployments . keys ( ) ; \n if ( deploymentNames . size ( ) > NUMBER0 ) { \n for ( String deploymentName : deploymentNames ) { \n - final ModelNode depNode = deployments . get ( uniqueName ) ; \n + final ModelNode depNode = deployments . get ( deploymentName ) ; \n final boolean regEx = depNode . hasDefined ( REGULAR_EXPRESSION ) ? depNode . get ( REGULAR_EXPRESSION ) . asBoolean ( ) : false ; \n writer . writeStartElement ( Element . DEPLOYMENT . getLocalName ( ) ) ; \n writeAttribute ( writer , Attribute . NAME , deploymentName ) ;", "msg_token": "Fix deployment overlays XML bug"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class AddUser extends AdHocCommand { \n } \n \n public boolean hasPermission ( JID requester ) { \n - return super . hasPermission ( requester ) && ! UserManager . getUserProvider ( ) . isReadOnly ( ) ; \n + return ( super . hasPermission ( requester ) || InternalComponentManager . getInstance ( ) . hasComponent ( requester ) ) \n + && ! UserManager . getUserProvider ( ) . isReadOnly ( ) ; \n } \n }", "msg_token": "Components can create users"} {"diff": " public enum StandardErrorCode \n UNSUPPORTED_ISOLATION_LEVEL ( NUMBER0 ) , \n INCOMPATIBLE_CLIENT ( NUMBER1 ) , \n SUBQUERY_MULTIPLE_ROWS ( NUMBER2 ) , \n + \n INTERNAL_ERROR ( NUMBER3 ) , \n TOO_MANY_REQUESTS_FAILED ( NUMBER4 ) , \n PAGE_TOO_LARGE ( NUMBER5 ) ,", "msg_token": "Add newline between error code groups"} {"diff": " final class DeadHostState { \n this . deadUntilNanos = System . nanoTime ( ) + MIN_CONNECTION_TIMEOUT_NANOS ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n DeadHostState ( DeadHostState previousDeadHostState ) { \n long timeoutNanos = ( long ) Math . min ( MIN_CONNECTION_TIMEOUT_NANOS * NUMBER0 * Math . pow ( NUMBER0 , previousDeadHostState . failedAttempts * FLOAT0 - NUMBER1 ) , \n MAX_CONNECTION_TIMEOUT_NANOS ) ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n final class RequestLogger {", "msg_token": "added comments to clarify RequestLogger and DeadHostState"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BatchResource { \n } \n \n public boolean isFile ( ) { \n - return ResourceUtils . isFile ( r ) ; \n + return Qualifiers . isFile ( r ) ; \n } \n \n public boolean isDir ( ) { \n - return ResourceUtils . isDirectory ( r ) ; \n + return Qualifiers . isDirectory ( r ) ; \n } \n \n public BatchResource setInputPath ( InputPath inputPath ) {", "msg_token": "Fix NPE in CoveragePublisher for views"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Corrected generated tests after rebase"} {"diff": " public class AutoBuffer { \n return this ; \n } \n \n - AutoBuffer putAA1 ( byte [ ] [ ] ary ) { \n + public AutoBuffer putAA1 ( byte [ ] [ ] ary ) { \n _arys ++ ; \n long xy = putZA ( ary ) ; \n if ( xy == - NUMBER0 ) return this ;", "msg_token": "Make byte put public in AutoBuffer"} {"diff": " class WindowStateAnimator { \n \n if ( w . mAttachedHidden || ! w . isReadyForDisplay ( ) ) { \n hide ( ) ; \n + SINGLE \n + if ( mService . mWallpaperTarget == mWin && mService . mLowerWallpaperTarget == null ) { \n + mAnimator . hideWallpapersLocked ( ) ; \n + mAnimator . mPendingLayoutChanges |= WindowManagerPolicy . FINISH_LAYOUT_REDO_WALLPAPER ; \n + } \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Hide wallpaper when wallpaper target gets hidden"} {"diff": " public interface Bootstrap { \n private long startTime = Module . getStartTime ( ) ; \n \n public Configuration ( final ServerEnvironment serverEnvironment ) { \n - assert serverEnvironment == null : STRING0 ; \n + assert serverEnvironment != null : STRING0 ; \n this . serverEnvironment = serverEnvironment ; \n this . extensionRegistry = new ExtensionRegistry ( serverEnvironment . getLaunchType ( ) . getProcessType ( ) ) ; \n }", "msg_token": "Fix backwards assertion"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - abstract class SocialAutoConfigurerAdapter extends SocialConfigurerAdapter { \n + public abstract class SocialAutoConfigurerAdapter extends SocialConfigurerAdapter { \n \n @ override \n public void addConnectionFactories ( ConnectionFactoryConfigurer configurer , \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n - abstract class SocialProperties { \n + public abstract class SocialProperties { \n \n COMMENT \n COMMENT", "msg_token": "Make SocialAutoConfigurerAdapter Properties public"} {"diff": " public class FlickrPhotoGrid extends Fragment implements PhotoViewer { \n . asDrawable ( ) \n . transition ( withCrossFade ( R . anim . fade_in , NUMBER0 ) ) \n . apply ( diskCacheStrategyOf ( DiskCacheStrategy . DATA ) \n + . centerCrop ( getActivity ( ) ) \n . override ( Api . SQUARE_THUMB_SIZE , Api . SQUARE_THUMB_SIZE ) ) ; \n \n preloadRequest =", "msg_token": "Fix thumbnail aspect ratio in FlickrPhotoGrid"} {"diff": " public class TestFile extends File { \n \n public void assertHasChangedSince ( Snapshot snapshot ) { \n Snapshot now = snapshot ( ) ; \n + System . out . println ( STRING0 + snapshot ) ; \n + System . out . println ( STRING1 + now ) ; \n assertTrue ( now . modTime != snapshot . modTime || ! Arrays . equals ( now . hash , snapshot . hash ) ) ; \n } \n \n public class TestFile extends File { \n this . modTime = modTime ; \n this . hash = hash ; \n } \n + \n + public String toString ( ) { \n + return STRING2 + \n + STRING3 + modTime + \n + STRING4 + Arrays . toString ( hash ) + \n + STRING5 ; \n + } \n } \n }", "msg_token": "Print out snapshot values for better analyzing why CacheProjectIntegrationTest caches compiled build script fails intermittently"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class WebSocketProtocolHandshakeHandler implements HttpHandler { \n future . addNotifier ( new IoFuture . Notifier < WebSocketChannel , Object > ( ) { \n @ override \n public void notify ( final IoFuture < ? extends WebSocketChannel > ioFuture , final Object attachment ) { \n - try { \n - callback . onConnect ( exchange , ioFuture . get ( ) ) ; \n - } catch ( IOException e ) { \n - throw new RuntimeException ( e ) ; \n - } finally { \n - completionHandler . handleComplete ( ) ; \n - } \n + try { \n + callback . onConnect ( exchange , ioFuture . get ( ) ) ; \n + } catch ( IOException e ) { \n + SINGLE \n + IoUtils . safeClose ( exchange . getConnection ( ) ) ; \n + } finally { \n + completionHandler . handleComplete ( ) ; \n + } \n } \n } , null ) ;", "msg_token": "Close the channel if an exception accours during the handshake"} {"diff": " public class NavigationBarView extends LinearLayout { \n if ( DEBUG ) { \n Slog . d ( TAG , STRING0 + mDisplay . getRotation ( ) ) ; \n } \n + \n + setNavigationIconHints ( mNavigationIconHints , true ) ; \n } \n \n @ override", "msg_token": "DO NOT MERGE Fix back button state issue"} {"diff": " public class MultiPartInputStreamParser \n line = ( line == null ? line : line . trim ( ) ) ; \n } \n \n - if ( line == null ) \n + if ( line == null || line . length ( ) == NUMBER0 ) \n throw new IOException ( STRING0 ) ; \n \n SINGLE", "msg_token": "MultiPartInputStream test initial part boundary incorrectly allows empty string"} {"diff": " class JiveClassLoader extends URLClassLoader { \n COMMENT \n COMMENT \n JiveClassLoader ( ClassLoader parent , File libDir ) throws MalformedURLException { \n - super ( new URL [ ] { libDir . toURL ( ) } , parent ) ; \n + super ( new URL [ ] { libDir . toURI ( ) . toURL ( ) } , parent ) ; \n \n File [ ] jars = libDir . listFiles ( new FilenameFilter ( ) { \n public boolean accept ( File dir , String name ) { \n class JiveClassLoader extends URLClassLoader { \n \n for ( int i = NUMBER0 ; i < jars . length ; i ++ ) { \n if ( jars [ i ] . isFile ( ) ) { \n - addURL ( jars [ i ] . toURL ( ) ) ; \n + addURL ( jars [ i ] . toURI ( ) . toURL ( ) ) ; \n } \n } \n }", "msg_token": "Fix space escaping"} {"diff": " public class ProvisioningProfileStore implements RuleKeyAppendable { \n for ( Entry < String , NSObject > entry : entitlementsDict . entrySet ( ) ) { \n if ( ! ( entry . getKey ( ) . equals ( STRING0 ) || \n entry . getKey ( ) . equals ( STRING1 ) || \n + entry . getKey ( ) . equals ( STRING2 ) || \n entry . getValue ( ) . equals ( profileEntitlements . get ( entry . getKey ( ) ) ) ) ) { \n match = false ; \n LOG . debug ( STRING3 + profile . getUUID ( ) +", "msg_token": "Ignore associated domains when comparing entitlements"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n import static NAMESPACE ; \n public class MemberAssigningJobProcessInformationImpl \n extends JobProcessInformationImpl { \n \n - private final ConcurrentMap < String , Integer > memberIds = new ConcurrentHashMap < String , Integer > ( ) ; \n - \n public MemberAssigningJobProcessInformationImpl ( int partitionCount , JobSupervisor supervisor ) { \n super ( partitionCount , supervisor ) ; \n } \n public class MemberAssigningJobProcessInformationImpl \n \n SINGLE \n if ( stateChange ( address , i , WAITING , this , configuration ) != null ) { \n - memberIds . put ( memberUuid , i ) ; \n return i ; \n } \n }", "msg_token": "Removed unused map thanks for the tip to jerrinot"} {"diff": " public class FarmWarDeployer extends ClusterListener \n StringManager . getManager ( Constants . Package ) ; \n \n COMMENT \n - protected boolean started = false ; SINGLE \n + protected boolean started = false ; \n \n protected final HashMap < String , FileMessageFactory > fileFactories = \n new HashMap < > ( ) ;", "msg_token": "remove invalid comment"} {"diff": " public class CandyJar { \n public int getCandies ( PokemonFamilyId family ) { \n if ( candies . containsKey ( family ) ) { \n return this . candies . get ( family ) ; \n - } \n - else { \n + } else { \n return NUMBER0 ; \n } \n - \n } \n } \n public class Pokemon { \n COMMENT \n COMMENT \n COMMENT \n - public double getIVRatio ( ) { \n + public double getIvRatio ( ) { \n return ( this . getIndividualAttack ( ) + this . getIndividualDefense ( ) + this . getIndividualStamina ( ) ) / FLOAT0 ; \n }", "msg_token": "forgot that cancerous check style"} {"diff": " class InProcessGradleExecuter extends AbstractGradleExecuter { \n } else if ( failure instanceof LocationAwareException ) { \n causes . addAll ( ( ( LocationAwareException ) failure ) . getReportableCauses ( ) ) ; \n } else { \n - causes . add ( failure . getCause ( ) ) ; \n + causes . add ( failure ) ; \n } \n }", "msg_token": "Add the failure exception itself not its cause when running in process tests"} {"diff": " public class HtmlParsing { \n advance ( ) ; \n while ( true ) { \n final IElementType tt = token ( ) ; \n - if ( tt == XmlTokenType . XML_COMMENT_CHARACTERS || tt == XmlTokenType . XML_CHAR_ENTITY_REF || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_START \n + if ( tt == XmlTokenType . XML_COMMENT_CHARACTERS || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_START \n || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_START_END || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_END_START \n || tt == XmlTokenType . XML_CONDITIONAL_COMMENT_END ) { \n advance ( ) ; \n continue ; \n } \n + if ( tt == XmlTokenType . XML_ENTITY_REF_TOKEN || tt == XmlTokenType . XML_CHAR_ENTITY_REF ) { \n + parseReference ( ) ; \n + continue ; \n + } \n if ( tt == XmlTokenType . XML_BAD_CHARACTER ) { \n final PsiBuilder . Marker error = mark ( ) ; \n advance ( ) ;", "msg_token": "parse entities within comments properly"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n @ configuration \n - @ conditionalonexpression ( STRING0 ) \n + @ conditionalonexpression ( STRING1 ) \n public class ManagementConfiguration implements ApplicationContextAware , DisposableBean , \n ApplicationListener < ContextRefreshedEvent > { \n \n public class ManagementConfiguration implements ApplicationContextAware , Disposa \n @ autowired \n private ManagementServerProperties management = new ManagementServerProperties ( ) ; \n \n - @ conditionalonexpression ( STRING2 ) \n + @ conditionalonexpression ( STRING3 ) \n @ configuration \n @ import ( { VarzConfiguration . class , HealthzConfiguration . class , \n ShutdownConfiguration . class , TraceConfiguration . class } ) \n import NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n @ configurationproperties ( name = STRING4 , ignoreUnknownFields = false ) \n public class ManagementServerProperties { \n \n + @ value ( STRING5 ) \n private int port = NUMBER0 ; \n \n private InetAddress address ;", "msg_token": "Make management port default to server port"} {"diff": " public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer { \n public void onInit ( int status ) { \n if ( status != TextToSpeech . SUCCESS ) { \n internalClear ( ) ; \n - } else { \n + } else if ( mTts != null ) { \n switch ( mTts . isLanguageAvailable ( new Locale ( language ) ) ) \n { \n case TextToSpeech . LANG_MISSING_DATA :", "msg_token": "Fixed null pointer that can probably occur as result of race condition"} {"diff": " public abstract class Camera { \n COMMENT \n COMMENT \n public void rotate ( float angle , float axisX , float axisY , float axisZ ) { \n - direction . rotate ( axisX , axisY , axisZ , angle ) ; \n - up . rotate ( axisX , axisY , axisZ , angle ) ; \n + direction . rotate ( angle , axisX , axisY , axisZ ) ; \n + up . rotate ( angle , axisX , axisY , axisZ ) ; \n } \n \n COMMENT", "msg_token": "Fix incorrect order of arguments"} {"diff": " public class BlockLaserTable extends BlockBCTile_Neptune implements ILaserTarget \n } \n \n @ override \n - public void getSubBlocks ( Item item , CreativeTabs tab , List < ItemStack > list ) { \n - for ( EnumLaserTableType type : EnumLaserTableType . values ( ) ) { \n - list . add ( new ItemStack ( item , NUMBER0 , type . ordinal ( ) ) ) ; \n - } \n - } \n - \n - @ override \n public AxisAlignedBB getBoundingBox ( IBlockState state , IBlockAccess source , BlockPos pos ) { \n return AABB ; \n }", "msg_token": "Remove sub blocks"} {"diff": " public class PhoneWindowManager implements WindowManagerPolicy { \n } \n \n private boolean wakeUp ( long wakeTime , boolean wakeInTheaterMode ) { \n - if ( ! wakeInTheaterMode && isTheaterModeEnabled ( ) ) { \n + final boolean theaterModeEnabled = isTheaterModeEnabled ( ) ; \n + if ( ! wakeInTheaterMode && theaterModeEnabled ) { \n return false ; \n } \n \n + if ( theaterModeEnabled ) { \n + Settings . Global . putInt ( mContext . getContentResolver ( ) , \n + Settings . Global . THEATER_MODE_ON , NUMBER0 ) ; \n + } \n + \n mPowerManager . wakeUp ( wakeTime ) ; \n return true ; \n }", "msg_token": "Turn off theater mode upon power button press"} {"diff": " public class ConnectivityService extends IConnectivityManager . Stub { \n private void handleReleaseNetworkRequest ( NetworkRequest request , int callingUid ) { \n NetworkRequestInfo nri = mNetworkRequests . get ( request ) ; \n if ( nri != null ) { \n - if ( nri . mUid != callingUid ) { \n + if ( Process . SYSTEM_UID != callingUid && nri . mUid != callingUid ) { \n if ( DBG ) log ( STRING0 + request ) ; \n return ; \n }", "msg_token": "Allow NetworkRequest release from the system process"} {"diff": " public final class NativeSQLSerializer extends SQLSerializer { \n @ override \n protected void appendAsColumnName ( Path < ? > path , boolean precededByDot ) { \n if ( path . getAnnotatedElement ( ) . isAnnotationPresent ( Column . class ) ) { \n - SQLTemplates templates = getTemplates ( ) ; \n Column column = path . getAnnotatedElement ( ) . getAnnotation ( Column . class ) ; \n if ( ! column . name ( ) . isEmpty ( ) ) { \n - append ( templates . quoteIdentifier ( column . name ( ) , precededByDot ) ) ; \n + append ( getTemplates ( ) . quoteIdentifier ( column . name ( ) , precededByDot ) ) ; \n } else { \n super . appendAsColumnName ( path , precededByDot ) ; \n }", "msg_token": "Move getTemplates usage"} {"diff": " public class IdeStubIndexService extends StubIndexService { \n sink . occurrence ( JetFilePartClassIndex . INSTANCE . getKey ( ) , partFqName . asString ( ) ) ; \n } \n \n - SINGLE \n - JetFile jetFile = stub . getPsi ( ) ; \n - if ( jetFile != null ) { \n - JvmFileClassInfo fileClassInfo = JvmFileClassUtil . getFileClassInfoNoResolve ( jetFile ) ; \n - sink . occurrence ( JetFileFacadeFqNameIndex . INSTANCE . getKey ( ) , fileClassInfo . getFacadeClassFqName ( ) . asString ( ) ) ; \n - sink . occurrence ( JetFilePartClassIndex . INSTANCE . getKey ( ) , fileClassInfo . getFileClassFqName ( ) . asString ( ) ) ; \n - } \n - \n List < StringRef > partNames = ( ( KotlinFileStubForIde ) stub ) . getFacadePartSimpleNames ( ) ; \n if ( partNames != null ) { \n for ( StringRef partName : partNames ) {", "msg_token": "Fix indexing files without top level members by mistake"} {"diff": " public class BoundedOverheadBlockStore implements BlockStore { \n } \n \n public synchronized StoredBlock getChainHead ( ) throws BlockStoreException { \n - return get ( chainHead ) ; \n + StoredBlock head = get ( chainHead ) ; \n + if ( head == null ) \n + throw new BlockStoreException ( STRING0 ) ; \n + return head ; \n } \n \n public synchronized void setChainHead ( StoredBlock chainHead ) throws BlockStoreException {", "msg_token": "Throw BlockStoreException if the chain head doesn t seem to be in the store"} {"diff": " public class BinopInstruction extends BranchingInstruction { \n } \n else if ( STRING0 . equals ( myOperationSign ) ) { \n memState . push ( getNonNullStringValue ( factory ) ) ; \n + setTrueReachable ( ) ; SINGLE \n + setFalseReachable ( ) ; \n } \n else { \n if ( PsiKeyword . INSTANCEOF . equals ( myOperationSign ) &&", "msg_token": "is not a branching instruction"} {"diff": " public class WikipediaIndexHandler extends DefaultHandler { \n final SAXParserFactory factory = SAXParserFactory . newInstance ( ) ; \n final SAXParser saxParser = factory . newSAXParser ( ) ; \n WikipediaIndexHandler handler = new WikipediaIndexHandler ( FSDirectory . open ( new File ( \n - SINGLE \n - STRING0 ) ) , Language . ENGLISH , NUMBER0 , NUMBER1 ) ; \n + STRING1 ) ) , Language . ENGLISH , NUMBER2 , NUMBER1 ) ; \n try { \n saxParser . parse ( new FileInputStream ( new File ( \n - STRING2 ) ) , handler ) ; \n + STRING3 ) ) , handler ) ; \n } catch ( RuntimeException e ) { \n } \n handler . close ( ) ;", "msg_token": "modify the main method"} {"diff": " public class NetworkSender \n \n if ( to == null ) \n { \n - msgLog . error ( STRING0 + channelClosed + STRING1 ) ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n return ; \n }", "msg_token": "Removes log statement in NetoworkSender that spammed the log"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SequenceLockStressIT \n } \n for ( int [ ] record : data ) \n { \n - for ( int i = NUMBER0 ; i < record . length ; i ++ ) \n + for ( int value : record ) \n { \n - sumB += record [ i ] ; \n - record [ i ] = NUMBER0 ; \n + sumB += value ; \n } \n + Arrays . fill ( record , NUMBER0 ) ; \n } \n lock . unlockExclusive ( ) ; \n if ( sumA != sumB ) \n { \n - throw new AssertionError ( STRING0 ) ; \n + throw new AssertionError ( STRING1 + sumA + STRING2 + sumB ) ; \n } \n } \n }", "msg_token": "Update sum loop split sum and zeroing"} {"diff": " public class Settings { \n } \n final List < ResolveInfo > resolveInfos = tempResolveInfos ; \n \n + if ( null == resolveInfos ) { \n + return ; \n + } \n for ( ResolveInfo resolveInfo : resolveInfos ) { \n if ( resolveInfo . activityInfo != null ) { \n String packageName = resolveInfo . activityInfo . packageName ;", "msg_token": "Fixed a crash on resolveInfos null object"} {"diff": " public class GridViewExampleActivity extends Activity implements AdapterView . OnI \n public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { \n City modifiedCity = ( City ) mAdapter . getItem ( position ) ; \n \n - SINGLE \n + SINGLE \n City city = realm . where ( City . class ) . equalTo ( STRING0 , modifiedCity . getName ( ) ) . findFirst ( ) ; \n \n SINGLE", "msg_token": "Fix comment in gridViewExample"} {"diff": " public interface Player extends HumanEntity , CommandSender , OfflinePlayer , Plugi \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Updated javadocs of Player setPlayerListName to reflect that the char limit is based on length without colours"} {"diff": " public class ChatWindow \n \n SINGLE \n SINGLE \n - System . out . println ( STRING0 ) ; \n ServiceReference [ ] serRefs = null ; \n \n String osgiFilter = STRING1", "msg_token": "Remove System out println used for debugging"} {"diff": " public class FMLRelaunchLog \n } \n if ( lastIdx >= NUMBER0 ) \n { \n + String rem = currentMessage . substring ( lastIdx + NUMBER1 ) ; \n currentMessage . setLength ( NUMBER0 ) ; \n + currentMessage . append ( rem ) ; \n } \n } \n }", "msg_token": "Fix sysout with trailing messages after a newline"} {"diff": " public class IconUtil { \n \n public static Icon getIcon ( final VirtualFile file , final int flags , final Project project ) { \n return IconDeferrer . getInstance ( ) . defer ( file . getIcon ( ) , new FileIconKey ( file , project , flags ) , new Function < FileIconKey , Icon > ( ) { \n - public Icon fun ( final FileIconKey fileIconKey ) { \n - Icon providersIcon = getProvidersIcon ( file , flags , project ) ; \n + public Icon fun ( final FileIconKey key ) { \n + VirtualFile file = key . getFile ( ) ; \n + int flags = key . getFlags ( ) ; \n + Project project = key . getProject ( ) ; \n \n + Icon providersIcon = getProvidersIcon ( file , flags , project ) ; \n Icon icon = providersIcon == null ? file . getIcon ( ) : providersIcon ; \n for ( FileIconPatcher patcher : getPatchers ( ) ) { \n icon = patcher . patchIcon ( icon , file , flags , project ) ;", "msg_token": "Deferred icons take II"} {"diff": " public class MainActivity extends AppCompatActivity implements NavDrawerActivity \n if ( prefs . getBoolean ( PREF_IS_FIRST_LAUNCH , true ) ) { \n new Handler ( ) . postDelayed ( ( ) - > drawerLayout . openDrawer ( navDrawer ) , NUMBER0 ) ; \n \n + SINGLE \n + UserPreferences . setUpdateInterval ( NUMBER1 ) ; \n + \n SharedPreferences . Editor edit = prefs . edit ( ) ; \n edit . putBoolean ( PREF_IS_FIRST_LAUNCH , false ) ; \n edit . commit ( ) ;", "msg_token": "Set default update interval for fresh installations"} {"diff": " public class VariantJSONQuery extends VariantAbstractRPCQuery { \n \n SINGLE \n SINGLE \n - addParameter ( fieldName , beginToken , sr . getPosition ( ) , false , true ) ; \n + addParameter ( fieldName , beginToken , sr . getPosition ( ) - NUMBER0 , false , true ) ; \n \n SINGLE \n } else if ( Character . isDigit ( chr ) || chr == STRING0 ) { \n public class VariantJSONQuery extends VariantAbstractRPCQuery { \n sr . unreadLastCharacter ( ) ; \n SINGLE \n SINGLE \n - addParameter ( fieldName , beginToken , sr . getPosition ( ) , true , false ) ; \n + addParameter ( fieldName , beginToken , sr . getPosition ( ) - NUMBER0 , true , false ) ; \n \n } else if ( chr == BEGIN_OBJECT ) { \n sr . unreadLastCharacter ( ) ;", "msg_token": "Fix off by one with JSON parameters"} {"diff": " public class BuildCraftEnergy extends BuildCraftMod { \n double fuelFuelMultiplier = BuildCraftCore . mainConfiguration . get ( Configuration . CATEGORY_GENERAL , STRING0 , FLOAT0 , STRING1 ) . getDouble ( FLOAT0 ) ; \n BuildCraftCore . mainConfiguration . save ( ) ; \n \n - class BiomeIdException extends RuntimeException { \n - \n - public BiomeIdException ( String biome , int id ) { \n - super ( String . format ( STRING2 , id , biome ) ) ; \n - } \n - } \n - \n if ( oilDesertBiomeId > NUMBER0 ) { \n if ( BiomeGenBase . getBiomeGenArray ( ) [ oilDesertBiomeId ] != null ) { \n oilDesertBiomeId = findUnusedBiomeID ( STRING3 ) ;", "msg_token": "removed unused code"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class LibrarySourcesConfigWithCaching extends LibrarySourcesConfig { \n protected JetFile getJetFileByVirtualFile ( VirtualFile file , String moduleName , PsiManager psiManager ) { \n JetFile jetFile ; \n try { \n - String text = new String ( file . contentsToByteArray ( false ) , file . getCharset ( ) ) ; \n + String text = StringUtil . convertLineSeparators ( new String ( file . contentsToByteArray ( false ) , file . getCharset ( ) ) ) ; \n jetFile = new JetPsiFactory ( getProject ( ) ) . createPhysicalFile ( file . getName ( ) , text ) ; \n } \n catch ( IOException e ) {", "msg_token": "Fix line separators in JsLibrarySourceConfig"} {"diff": " import NAMESPACE ; \n public class AnonymousCanBeMethodReferenceInspection extends BaseJavaBatchLocalInspectionTool { \n public static final Logger LOG = Logger . getInstance ( STRING0 + AnonymousCanBeMethodReferenceInspection . class . getName ( ) ) ; \n \n - public boolean reportNotAnnotatedInterfaces = false ; \n + public boolean reportNotAnnotatedInterfaces = true ; \n \n @ nls \n @ notnull", "msg_token": "fixed initial default"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class HttpSessionEventPublisher implements HttpSessionListener { \n SINGLE \n \n private static final Log log = LogFactory . getLog ( HttpSessionEventPublisher . class ) ; \n \n - SINGLE \n - \n SINGLE \n \n ApplicationContext getContext ( ServletContext servletContext ) {", "msg_token": "Corrected package name in Javadoc"} {"diff": " public class SgSyncAdapter extends AbstractThreadedSyncAdapter { \n } \n \n private static LastActivities getTraktLastActivity ( Context context ) { \n + Timber . d ( STRING0 ) ; \n + \n TraktV2 trakt = ServiceUtils . getTraktV2WithAuth ( context ) ; \n if ( trakt == null ) { \n return null ;", "msg_token": "Add trakt sync activity fetch log message"} {"diff": " public final class ByteBufferedChannelManager implements TransferEnvelopeDispatc \n } \n \n if ( LOG . isDebugEnabled ( ) ) { \n - System . out . println ( STRING0 + totalNumberOfBuffers ) ; \n - System . out . println ( STRING1 + totalNumberOfChannels ) ; \n + LOG . debug ( STRING0 + totalNumberOfBuffers ) ; \n + LOG . debug ( STRING1 + totalNumberOfChannels ) ; \n } \n \n if ( this . localBufferPoolOwner . isEmpty ( ) ) {", "msg_token": "Changed debugging statement in ByteBufferedChannelManager"} {"diff": " public class YouTrackRepository extends BaseRepositoryImpl { \n \n @ override \n protected int getFeatures ( ) { \n - return super . getFeatures ( ) | TIME_MANAGEMENT ; \n + return super . getFeatures ( ) | TIME_MANAGEMENT | STATE_UPDATING ; \n } \n \n public void setCustomStateNames ( Map < TaskState , String > customStateNames ) {", "msg_token": "Add missing feature declaration in YouTrack repository"} {"diff": " public final class AutoBuffer { \n } \n \n public AutoBuffer putJSON8 ( String name , long l ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSON8 ( l ) ; } \n - AutoBuffer putJSONEnum ( String name , Enum e ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONEnum ( e ) ; } \n + public AutoBuffer putJSONEnum ( String name , Enum e ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONEnum ( e ) ; } \n \n public AutoBuffer putJSONA8 ( String name , long ary [ ] ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONA8 ( ary ) ; } \n AutoBuffer putJSONAA8 ( String name , long ary [ ] [ ] ) { return putJSONStr ( name ) . put1 ( STRING0 ) . putJSONAA8 ( ary ) ; }", "msg_token": "make putJSONEnum public"} {"diff": " public class ClusterMembers \n @ override \n public void failed ( InstanceId server ) \n { \n - members . put ( server , getMember ( server ) . failed ( ) ) ; \n + if ( members . containsKey ( server ) ) \n + members . put ( server , getMember ( server ) . failed ( ) ) ; \n } \n \n @ override \n public void alive ( InstanceId server ) \n { \n - members . put ( server , getMember ( server ) . alive ( ) ) ; \n + if ( members . containsKey ( server ) ) \n + members . put ( server , getMember ( server ) . alive ( ) ) ; \n } \n } \n }", "msg_token": "Added null check"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class GrizzlyAsyncHttpProvider implements AsyncHttpProvider { \n nonSecure . addAll ( secure ) ; \n int idx = nonSecure . indexOfType ( SSLFilter . class ) ; \n nonSecure . remove ( idx ) ; \n - ProxyAwareConnectorHandler . Builder chBuilder = \n - ProxyAwareConnectorHandler . builder ( clientTransport ) ; \n final ConnectionPool pool ; \n if ( providerConfig != null ) { \n pool = ( ConnectionPool ) providerConfig . getProperty ( CONNECTION_POOL ) ;", "msg_token": "Remove dead local variable"} {"diff": " public class MainFrame \n } \n else \n { \n - JPanel panel = new TransparentPanel ( new BorderLayout ( ) ) ; \n + JPanel panel = new TransparentPanel ( new BorderLayout ( NUMBER0 , NUMBER0 ) ) ; \n \n panel . setBorder ( BorderFactory . createEmptyBorder ( NUMBER1 , NUMBER0 , NUMBER1 , NUMBER0 ) ) ;", "msg_token": "Adds some space between the search field and the photo in the contact list on Windows and Linux"} {"diff": " public final class Settings { \n public static final String REQUIRE_PASSWORD_TO_DECRYPT = STRING0 ; \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Settings { \n public static final String ENHANCED_4G_MODE_ENABLED = STRING1 ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final String VT_IMS_ENABLED = STRING2 ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add VT over IMS global setting"} {"diff": " public class StandardHost \n @ override \n public void addChild ( Container child ) { \n \n + if ( child instanceof Lifecycle ) { \n + ( ( Lifecycle ) child ) . addLifecycleListener ( \n + new MemoryLeakTrackingListener ( ) ) ; \n + } \n + \n if ( ! ( child instanceof Context ) ) \n throw new IllegalArgumentException \n ( sm . getString ( STRING0 ) ) ; \n super . addChild ( child ) ; \n \n - if ( child instanceof Lifecycle ) { \n - ( ( Lifecycle ) child ) . addLifecycleListener ( \n - new MemoryLeakTrackingListener ( ) ) ; \n - } \n }", "msg_token": "Add listener before child is added else listener won t get called on first load"} {"diff": " public class DeepLearning extends Job . ValidatedJob { \n score_validation_samples = cp . score_validation_samples ; \n shuffle_training_data = cp . shuffle_training_data ; \n force_load_balance = cp . force_load_balance ; \n + classification = cp . classification ; \n state = JobState . RUNNING ; \n return ; \n }", "msg_token": "Set classification to the same value as the checkpoint"} {"diff": " public class ErrorReporter implements Thread . UncaughtExceptionHandler { \n COMMENT \n COMMENT \n COMMENT \n - private void checkReportsOnApplicationStart ( ) { \n + public void checkReportsOnApplicationStart ( ) { \n \n SINGLE \n SINGLE", "msg_token": "put ErrorReporter checkReportsOnApplicationStart back in the public API"} {"diff": " public class CallParticipantPanel \n { \n if ( ! dialpadDialog . isVisible ( ) ) \n { \n + dialpadDialog . setSize ( \n + callManager . getMainFrame ( ) . getWidth ( ) - NUMBER0 , \n + dialpadDialog . getHeight ( ) ) ; \n + \n dialpadDialog . setLocation ( \n - callManager . getMainFrame ( ) . getX ( ) \n - + ( callManager . getMainFrame ( ) . getWidth ( ) \n - - dialpadDialog . getWidth ( ) ) / NUMBER1 , \n + callManager . getMainFrame ( ) . getX ( ) + NUMBER2 , \n getLocationOnScreen ( ) . y + getHeight ( ) ) ; \n \n dialpadDialog . setVisible ( true ) ;", "msg_token": "Revert previous modifications"} {"diff": " public class ReleasedVersionDistributions { \n \n public List < GradleDistribution > getAll ( ) { \n if ( distributions == null ) { \n - distributions = CollectionUtils . collect ( getProperties ( ) . getProperty ( STRING0 ) . split ( STRING1 ) , new Transformer < GradleDistribution , String > ( ) { \n + List < String > versions = CollectionUtils . filter ( getProperties ( ) . getProperty ( STRING0 ) . split ( STRING1 ) , new Spec < String > ( ) { \n + @ override \n + public boolean isSatisfiedBy ( String version ) { \n + return ! version . contains ( STRING2 ) ; \n + } \n + } ) ; \n + \n + distributions = CollectionUtils . collect ( versions , new Transformer < GradleDistribution , String > ( ) { \n public GradleDistribution transform ( String version ) { \n return buildContext . distribution ( version ) ; \n }", "msg_token": "Exclude milestone releases from cross version testing"} {"diff": " public class PackageManagerService extends IPackageManager . Stub { \n boolean updatedSettings = false ; \n parseFlags |= PackageManager . INSTALL_REPLACE_EXISTING | \n PackageParser . PARSE_IS_SYSTEM ; \n + if ( ( deletedPackage . applicationInfo . flags & ApplicationInfo . FLAG_PRIVILEGED ) != NUMBER0 ) { \n + parseFlags |= PackageParser . PARSE_IS_PRIVILEGED ; \n + } \n String packageName = deletedPackage . packageName ; \n res . returnCode = PackageManager . INSTALL_FAILED_REPLACE_COULDNT_DELETE ; \n if ( packageName == null ) {", "msg_token": "Make sure to propagate privileged status when upgrading an app"} {"diff": " public class GCViewerGui extends JFrame { \n JCheckBoxMenuItem item = menuEntry . getValue ( ) ; \n item . setState ( preferences . getGcLineProperty ( menuEntry . getKey ( ) ) ) ; \n } \n - menuItemShowModelMetricsPanel . setState ( preferences . getBooleanProperty ( GCPreferences . SHOW_MODEL_METRICS_PANEL ) ) ; \n - menuItemAntiAlias . setSelected ( preferences . getBooleanProperty ( GCPreferences . ANTI_ALIAS ) ) ; \n } \n \n public void internalFrameDeactivated ( final InternalFrameEvent e ) {", "msg_token": "fix handling of preferences for data panel and antialias"} {"diff": " public class DRF extends SharedTreeModelBuilder { \n H2OCountedCompleter [ ] computers = new H2OCountedCompleter [ _ncols ] ; \n for ( int var = NUMBER0 ; var < _ncols ; var ++ ) { \n final int variable = var ; \n + SINGLE \n + SINGLE \n + SINGLE \n computers [ var ] = new H2OCountedCompleter ( ) { \n @ override public void compute2 ( ) { \n Frame wf = new Frame ( f ) ; SINGLE", "msg_token": "Incorporated Spencer s comment about shuffling oob rows"} {"diff": " public abstract class NanoHTTPD { \n COMMENT \n COMMENT \n public enum Method { \n - GET , PUT , POST , DELETE , HEAD ; \n + GET , PUT , POST , DELETE , HEAD , OPTIONS ; \n \n static Method lookup ( String method ) { \n for ( Method m : Method . values ( ) ) {", "msg_token": "Added OPTIONS to the Method enum"} {"diff": " public class OFetchHelper { \n final Iterable < ? > linked ; \n if ( fieldValue instanceof ODocument ) \n linked = new OMVRBTreeRIDSet ( ) . fromDocument ( ( ODocument ) fieldValue ) ; \n - else if ( fieldValue instanceof Collection < ? > || fieldValue instanceof ORidBag ) { \n + else if ( fieldValue instanceof Iterable < ? > || fieldValue instanceof ORidBag ) { \n linked = ( Iterable < OIdentifiable > ) fieldValue ; \n iContext . onBeforeCollection ( iRootRecord , fieldName , iUserObject , ( Iterable ) linked ) ; \n } else if ( fieldValue instanceof Map < ? , ? > ) {", "msg_token": "maintain support for fieldValue of type OMultiCollectionIterator via Iterable interface"} {"diff": " public enum ExceptionMessage { \n TEMP_BLOCK_ID_COMMITTED ( STRING0 ) , \n TEMP_BLOCK_ID_EXISTS ( STRING1 ) , \n \n - SINGLE \n + SINGLE \n + JOURNAL_WRITE_AFTER_CLOSE ( STRING2 ) , \n UNEXPECETD_JOURNAL_ENTRY ( STRING3 ) , \n + UNKNOWN_ENTRY_TYPE ( STRING4 ) , \n + \n + SINGLE \n FILEID_MUST_BE_FILE ( STRING5 ) , \n - JOURNAL_WRITE_AFTER_CLOSE ( STRING2 ) , \n + \n + SINGLE \n RAW_TABLE_COLUMN_OVERRANGE ( STRING6 ) , \n RAW_TABLE_ID_DOES_NOT_EXIST ( STRING7 ) , \n RAW_TABLE_ID_DUPLICATED ( STRING8 ) , \n RAW_TABLE_METADATA_OVERSIZED ( STRING9 ) , \n RAW_TABLE_PATH_DOES_NOT_EXIST ( STRING10 ) , \n - UNKNOWN_ENTRY_TYPE ( STRING4 ) , \n \n SINGLE \n LINEAGE_INPUT_FILE_NOT_EXIST ( STRING11 ) ,", "msg_token": "Rearrange raw table related messages in ExceptionMessage"} {"diff": " public class IosHttpURLConnection extends HttpURLConnection { \n NSMutableURLRequest * request = \n [ NSMutableURLRequest requestWithURL : [ NSURL URLWithString : [ self - > url_ toExternalForm ] ] ] ; \n request . HTTPShouldHandleCookies = false ; \n - request . HTTPMethod = self - > method_ ; \n request . cachePolicy = self - > useCaches_ ? \n NSURLRequestUseProtocolCachePolicy : NSURLRequestReloadIgnoringLocalCacheData ; \n int readTimeout = [ self getReadTimeout ] ; \n public class IosHttpURLConnection extends HttpURLConnection { \n request . HTTPBody = [ ( NSDataOutputStream * ) self - > nativeRequestData_ data ] ; \n } \n } \n + request . HTTPMethod = self - > method_ ; \n \n __block NSError * error ; \n __block NSURLResponse * urlResponse ;", "msg_token": "Fixed HTTP method when URLConnection setDoOutput true is called should be POST"} {"diff": " final public class ConfigImplUtil { \n return a . equals ( b ) ; \n } \n \n - public static boolean isC0Control ( final char ch ) { \n - return isC0Control ( ( int ) ch ) ; \n - } \n - \n - public static boolean isC0Control ( int codepoint ) { \n + static boolean isC0Control ( int codepoint ) { \n return ( codepoint >= NUMBER0 && codepoint <= NUMBER1 ) ; \n }", "msg_token": "Removed char version of isC0Control and made non public"} {"diff": " public class PlotsToolbar extends Toolbar implements HasCustomizableToolbar \n exportMenu . addItem ( commands_ . savePlotAsPdf ( ) . createMenuItem ( false ) ) ; \n exportMenu . addSeparator ( ) ; \n exportMenu . addItem ( commands_ . copyPlotToClipboard ( ) . createMenuItem ( false ) ) ; \n + exportMenu . addSeparator ( ) ; \n + exportMenu . addItem ( commands_ . publishPlotToRPubs ( ) . createMenuItem ( false ) ) ; \n ToolbarButton exportButton = new ToolbarButton ( \n STRING0 , StandardIcons . INSTANCE . export_menu ( ) , \n exportMenu ) ; \n public class ViewerPane extends WorkbenchPane implements ViewerPresenter . Display \n exportMenu . addItem ( commands_ . viewerCopyToClipboard ( ) . createMenuItem ( false ) ) ; \n exportMenu . addSeparator ( ) ; \n exportMenu . addItem ( commands_ . viewerSaveAsWebPage ( ) . createMenuItem ( false ) ) ; \n + exportMenu . addSeparator ( ) ; \n + exportMenu . addItem ( commands_ . viewerPublishToRPubs ( ) . createMenuItem ( false ) ) ; \n \n exportButton_ = new ToolbarButton ( \n STRING0 , StandardIcons . INSTANCE . export_menu ( ) ,", "msg_token": "add rpubs buttons back into export menu"} {"diff": " public class RmiRouteTest extends TestCase { \n } \n \n SINGLE \n - LocateRegistry . createRegistry ( NUMBER0 ) ; \n + LocateRegistry . createRegistry ( NUMBER1 ) ; \n \n SINGLE \n JndiContext context = new JndiContext ( ) ; \n public class RmiRouteTest extends TestCase { \n SINGLE \n camelContext . addRoutes ( new RouteBuilder ( ) { \n public void configure ( ) { \n - from ( STRING0 ) . to ( STRING1 ) ; \n + from ( STRING0 ) . to ( STRING2 ) ; \n \n SINGLE \n SINGLE \n - RmiEndpoint bye = ( RmiEndpoint ) endpoint ( STRING1 ) ; \n + RmiEndpoint bye = ( RmiEndpoint ) endpoint ( STRING2 ) ; \n bye . setRemoteInterfaces ( ISay . class ) ; \n from ( bye ) . to ( STRING3 ) ; \n }", "msg_token": "Changing test port that conflicts on some systems"} {"diff": " public class TestUtils { \n return ( int ) Math . round ( ( Double ) value ) ; \n } else if ( value instanceof Object [ ] ) { \n return injectDateInArray ( ( Object [ ] ) value ) ; \n - } else if ( value instanceof StringMap ) { \n - return injectDateInHashMap ( stringMapToHashMap ( ( StringMap ) value ) ) ; \n } \n return value ; \n }", "msg_token": "remove unused code"} {"diff": " public class Axis { \n private String name ; \n private int color = DEFAULT_AXIS_COLOR ; \n private int textSize = DEFAULT_AXIS_TEXT_SIZE_SP ; \n + private boolean isAutoGenerated = false ; \n private AxisValueFormatter formatter = new DefaultAxisValueFormatter ( ) ; \n \n public Axis ( ) { \n public class Axis { \n return this ; \n } \n \n + public boolean isAutoGenerated ( ) { \n + return isAutoGenerated ; \n + } \n + \n + public void setAutoGenerated ( boolean isAutoGenerated ) { \n + this . isAutoGenerated = isAutoGenerated ; \n + } \n + \n public AxisValueFormatter getFormatter ( ) { \n return formatter ; \n }", "msg_token": "Added isAutoGenerated flag for Axis"} {"diff": " public final class TestTsdbQuery { \n HashMap < String , String > tags = new HashMap < String , String > ( NUMBER0 ) ; \n tags . put ( STRING0 , STRING1 ) ; \n long timestamp = NUMBER1 ; \n - tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , ( long ) ( Long . MAX_VALUE - NUMBER3 ) , tags ) \n + tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , Long . MAX_VALUE - NUMBER3 , tags ) \n . joinUninterruptibly ( ) ; \n - tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , ( long ) ( Long . MAX_VALUE - NUMBER4 ) , tags ) \n + tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , Long . MAX_VALUE - NUMBER4 , tags ) \n . joinUninterruptibly ( ) ; \n tsdb . addPoint ( STRING2 , timestamp += NUMBER2 , NUMBER5 , tags ) . joinUninterruptibly ( ) ;", "msg_token": "Fix redundant cast in TestTsdbQuery"} {"diff": " public class MessagesModule extends AbsModule implements BusSubscriber { \n private final HashMap < String , ListEngine > customConversationEngines = new HashMap < > ( ) ; \n private final HashMap < Peer , ActorRef > conversationActors = new HashMap < > ( ) ; \n private final HashMap < Peer , ActorRef > conversationHistoryActors = new HashMap < > ( ) ; \n - private final HashMap < Peer , ConversationVM > conversationVMS = new HashMap < > ( ) ; \n \n private final SyncKeyValue cursorStorage ;", "msg_token": "Remove unsued conversation vm cache"} {"diff": " public class PeopleContainer extends LinearLayout { \n if ( peopleAsJSON ) { \n JSONObject person = PeopleContainer . createUserJson ( textView ) ; \n if ( person != null ) { \n + if ( person . optBoolean ( STRING0 ) ) SINGLE \n + continue ; \n String email = person . optString ( STRING1 ) ; \n Long id = person . optLong ( STRING2 , - NUMBER0 ) ; \n if ( ! TextUtils . isEmpty ( email ) && ! addedEmails . contains ( email ) ) {", "msg_token": "Don t include list owner when parsing members on tag save"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class AbstractPollingMessageListenerContainer extends AbstractMe \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class DefaultMessageListenerContainer extends AbstractPollingMessageListe \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public abstract class JmsAccessor implements InitializingBean { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify the use of sessionTransacted"} {"diff": " class Connection \n { \n final int nextIndex = nextPartitionIndex ( activeIndex ) ; \n logReader = logReaders [ nextIndex ] ; \n - if ( logReader . status ( ) != CLEAN ) \n - { \n - return NUMBER0 ; \n - } \n - \n - ++ activeTermId ; \n - this . activeIndex = nextIndex ; \n logReader . seek ( NUMBER0 ) ; \n + ++ activeTermId ; \n + activeIndex = nextIndex ; \n } \n \n final int messagesRead = logReader . read ( dataHandler , fragmentCountLimit ) ;", "msg_token": "Java Remove unnecessary check for term status on roll of connection"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Added Main class to camel core"} {"diff": " public class EditorHyperlinkSupport { \n getHyperlinkInfo ( rangeHighlighterEx ) != null ; \n } \n } , processor ) ) ; \n - SINGLE \n list . addAll ( processor . getResults ( ) ) ; \n return list ; \n } \n public class EditorHyperlinkSupport { \n public static OccurenceNavigator . OccurenceInfo getNextOccurrence ( final Editor editor , \n final int delta , \n final Consumer < RangeHighlighter > action ) { \n - SINGLE \n final List < RangeHighlighter > ranges = getHyperlinks ( NUMBER0 , editor . getDocument ( ) . getTextLength ( ) , editor ) ; \n if ( ranges . isEmpty ( ) ) { \n return null ;", "msg_token": "removed todos no issue here"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n public class MongoLayerModule extends AbstractModule { \n \n bind ( Executor . class ) \n . annotatedWith ( MongoDBLayer . class ) \n - . toInstance ( ForkJoinPool . commonPool ( ) ) ; \n + . toInstance ( Executors . newCachedThreadPool ( ) ) ; \n \n } \n }", "msg_token": "Changed MongoDBLayer pool to cached thread pool"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - interface HighlightingSession { \n + public interface HighlightingSession { \n @ notnull \n Project getProject ( ) ; \n + \n @ notnull \n PsiFile getPsiFile ( ) ; \n + \n Editor getEditor ( ) ; \n + \n @ notnull \n Document getDocument ( ) ; \n + \n @ notnull \n ProgressIndicator getProgressIndicator ( ) ; \n \n EditorColorsScheme getColorsScheme ( ) ; \n - } \n + }", "msg_token": "platform restores binary compatibility"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n public class JetPluginUtil { \n \n @ notnull \n public static String getPluginVersion ( ) { \n IdeaPluginDescriptor plugin = PluginManager . getPlugin ( PluginId . getId ( STRING0 ) ) ; \n - assert plugin != null : STRING1 ; \n + assert plugin != null : STRING2 + Arrays . toString ( PluginManagerCore . getPlugins ( ) ) ; \n return plugin . getVersion ( ) ; \n }", "msg_token": "Clarified assertion which should be fixed on IDEA side"} {"diff": " public class GrVariableImpl extends GroovyPsiElementImpl implements GrVariable { \n return null ; \n } \n \n - public void accept ( @ notnull PsiElementVisitor visitor ) { \n + COMMENT \n visitor . visitVariable ( this ) ; \n - } \n + COMMENT \n \n public String getName ( ) { \n return getNameIdentifierGroovy ( ) . getText ( ) ;", "msg_token": "do not override accept"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class Utils { \n \n public static byte [ ] copyOf ( byte [ ] in , int length ) { \n byte [ ] out = new byte [ length ] ; \n - System . arraycopy ( in , NUMBER0 , out , NUMBER0 , length ) ; \n + System . arraycopy ( in , NUMBER0 , out , NUMBER0 , Math . min ( length , in . length ) ) ; \n + Arrays . copyOf ( in , NUMBER1 ) ; \n return out ; \n } \n }", "msg_token": "Fix bug in Utils copyOf"} {"diff": " public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput \n } catch ( Exception e ) { \n } \n } \n - out . println ( STRING0 ) ; \n - out . printf ( STRING1 , totalElements ) ; \n - out . println ( STRING2 ) ; \n + out . println ( STRING3 ) ; \n + out . printf ( STRING4 , totalElements ) ; \n + out . println ( STRING5 ) ; \n \n } else \n out . println ( STRING6 ) ;", "msg_token": "Fixed layout problem in console"} {"diff": " public class AntPathMatcher implements PathMatcher { \n this . doubleWildcards ++ ; \n pos += NUMBER0 ; \n } \n - else if ( ! this . pattern . substring ( pos - NUMBER1 ) . equals ( STRING0 ) ) { \n + else if ( pos > NUMBER2 && ! this . pattern . substring ( pos - NUMBER1 ) . equals ( STRING0 ) ) { \n this . singleWildcards ++ ; \n pos ++ ; \n } \n public class AntPathMatcherTests { \n \n SINGLE \n assertEquals ( NUMBER1 , comparator . compare ( STRING1 , STRING2 ) ) ; \n + \n + SINGLE \n + assertEquals ( - NUMBER1 , comparator . compare ( STRING3 , STRING4 ) ) ; \n + assertEquals ( NUMBER1 , comparator . compare ( STRING4 , STRING3 ) ) ; \n } \n \n @ test", "msg_token": "Fix exception in AntPathMatcher for leading"} {"diff": " public class HeliosSoloIT { \n . image ( ALPINE ) \n . port ( STRING0 , NUMBER0 , ports . localPort ( STRING0 ) ) \n . command ( STRING1 , STRING2 , \n - STRING3 + \n + STRING4 + \n STRING5 + \n STRING6 + \n STRING7 +", "msg_token": "Fix bad alpine cmd in tests"} {"diff": " public class TaskListFragment extends ListFragment implements OnScrollListener , \n if ( tagData != null ) { \n HashSet < String > tagsTransitory = new HashSet < String > ( ) ; \n tagsTransitory . add ( tagData . getValue ( TagData . NAME ) ) ; \n - empty . putTransitory ( STRING0 , tagsTransitory ) ; \n + empty . putTransitory ( STRING0 , tagsTransitory ) ; SINGLE \n } \n repeatControl . readFromTask ( empty ) ; \n gcalControl . readFromTask ( empty ) ;", "msg_token": "raw strings need help"} {"diff": " public class CacheOffHeap { \n . transactionDisable ( ) \n . make ( ) \n . hashMapCreate ( STRING0 ) \n - . expireStoreSize ( cacheSizeInGB ) SINGLE \n + . expireStoreSize ( cacheSizeInGB ) \n . make ( ) ; \n \n SINGLE", "msg_token": "Remove outdated TODO"} {"diff": " public final class Crouton { \n imageParams . addRule ( RelativeLayout . CENTER_VERTICAL , RelativeLayout . TRUE ) ; \n return image ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return STRING0 + \n + STRING1 + text + \n + STRING2 + style + \n + STRING3 + customView + \n + STRING4 + activity + \n + STRING5 + viewGroup + \n + STRING6 + croutonView + \n + STRING7 + inAnimation + \n + STRING8 + outAnimation + \n + STRING9 + lifecycleCallback + \n + STRING10 ; \n + } \n }", "msg_token": "adds toString to Crouton"} {"diff": " public abstract class LzoProtobufBlockPigStorage < M extends Message > extends LzoB \n protected ProtobufBlockWriter writer_ = null ; \n private int numRecordsPerBlock_ = NUMBER0 ; \n \n - public LzoProtobufBlockPigStorage ( int numRecordsPerBlock ) { \n - numRecordsPerBlock_ = numRecordsPerBlock ; \n - } \n - \n @ override \n public void bindTo ( OutputStream os ) throws IOException { \n super . bindTo ( os ) ;", "msg_token": "Remove the block size from constructor"} {"diff": " public class GroovyLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSe \n @ notnull SettingsType settingsType ) { \n if ( settingsType == SettingsType . WRAPPING_AND_BRACES_SETTINGS ) { \n consumer . showStandardOptions ( \n + STRING0 , \n STRING1 , \n STRING2 , \n STRING3 , \n public class PyLanguageCodeStyleSettingsProvider extends LanguageCodeStyleSettin \n BLANK_LINES ) ; \n } \n else if ( settingsType == SettingsType . WRAPPING_AND_BRACES_SETTINGS ) { \n - consumer . showStandardOptions ( STRING1 , \n + consumer . showStandardOptions ( STRING0 , \n + STRING1 , \n STRING4 , \n STRING5 , \n STRING6 ) ;", "msg_token": "Enable Right margin option"} {"diff": " public class HpackEncoder { \n private static final Map < HttpString , TableEntry [ ] > ENCODING_STATIC_TABLE ; \n \n private final Deque < TableEntry > evictionQueue = new ArrayDeque < > ( ) ; \n - private final Map < HttpString , List < TableEntry > > dynamicTable = new HashMap < > ( ) ; SINGLE \n + private final Map < HttpString , List < TableEntry > > dynamicTable = new HashMap < > ( ) ; \n \n static { \n Map < HttpString , TableEntry [ ] > map = new HashMap < > ( ) ; \n public class HpackEncoder { \n } \n List < TableEntry > dynamic = dynamicTable . get ( headerName ) ; \n if ( dynamic != null ) { \n - for ( TableEntry st : dynamic ) { \n + for ( int i = NUMBER0 ; i < dynamic . size ( ) ; ++ i ) { \n + TableEntry st = dynamic . get ( i ) ; \n if ( st . value . equals ( value ) ) { SINGLE \n return st ; \n }", "msg_token": "Prevent iterator allocation in HPack encoding"} {"diff": " public class BitmapFont implements Savable { \n } \n \n public float getLineWidth ( CharSequence text ) { \n - \n + \n SINGLE \n SINGLE \n SINGLE \n public class BitmapFont implements Savable { \n SINGLE \n if ( i == text . length ( ) - NUMBER0 ) { \n lineWidth += c . getWidth ( ) * sizeScale ; \n - \n - SINGLE \n + \n + SINGLE \n SINGLE \n SINGLE \n lineWidth += c . getXOffset ( ) * sizeScale ;", "msg_token": "Just fixing a typo in a comment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " package NAMESPACE ; \n COMMENT \n public enum NagiosEncryptionMethod { \n \n - No , Xor , TripeDes ; \n + No , Xor , TripleDes ; \n \n }", "msg_token": "Added encryptionMode option to camel nagios"} {"diff": " public class StubbingWithThrowablesTest { \n \n try { \n reader . read ( ) ; \n + fail ( ) ; \n } catch ( Exception e ) { \n assertEquals ( ioException , e ) ; \n } \n public class StubbingWithThrowablesTest { \n \n try { \n mock . add ( STRING0 ) ; \n + fail ( ) ; \n } catch ( Error e ) { \n assertEquals ( error , e ) ; \n }", "msg_token": "added missing fail"} {"diff": " public class MainController implements Choreographer . FrameCallback { \n \n bubble . destroy ( ) ; \n \n - SINGLE \n int bubbleIndex = mBubbles . indexOf ( bubble ) ; \n Util . Assert ( bubbleIndex >= NUMBER0 && bubbleIndex < mBubbles . size ( ) ) ; \n - \n - COMMENT \n - while ( bubbleIndex + NUMBER1 < mBubbles . size ( ) ) { \n - Collections . swap ( mBubbles , bubbleIndex , bubbleIndex + NUMBER1 ) ; \n - bubbleIndex += NUMBER1 ; \n - } \n - COMMENT \n - mBubbles . remove ( bubble ) ; \n mBubbles . remove ( bubble ) ; \n \n Settings . get ( ) . saveCurrentBubbles ( mBubbles ) ;", "msg_token": "Remove some duplicated code that isn t required"} {"diff": " public class ContributionManagerDialog { \n \n protected void downloadAndUpdateContributionListing ( ) { \n retryConnectingButton . setEnabled ( false ) ; \n - \n + status . setMessage ( Language . text ( STRING0 ) ) ; \n contribListing . downloadAvailableList ( new ContribProgressBar ( progressBar ) {", "msg_token": "Added connecting status"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public interface ResolutionResultsCache { \n - class MemberType < D extends CallableDescriptor > { } \n - MemberType < FunctionDescriptor > FUNCTION_MEMBER_TYPE = new MemberType < FunctionDescriptor > ( ) ; \n - MemberType < VariableDescriptor > PROPERTY_MEMBER_TYPE = new MemberType < VariableDescriptor > ( ) ; \n + class MemberType < D extends CallableDescriptor > { \n + public final String debugName ; \n + \n + public MemberType ( String name ) { \n + debugName = name ; \n + } \n + \n + @ override \n + public String toString ( ) { \n + return debugName ; \n + } \n + } \n + MemberType < FunctionDescriptor > FUNCTION_MEMBER_TYPE = new MemberType < FunctionDescriptor > ( STRING0 ) ; \n + MemberType < VariableDescriptor > PROPERTY_MEMBER_TYPE = new MemberType < VariableDescriptor > ( STRING1 ) ; \n \n \n < D extends CallableDescriptor > void recordResolutionResults ( @ notnull CallKey callKey , @ notnull MemberType < D > memberType , @ notnull OverloadResolutionResultsImpl < D > results ) ;", "msg_token": "added debugName to MemberType"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class WebApplication { \n log . debug ( STRING0 ) ; \n \n registerComponent ( ActionMethodParser . class ) ; \n + registerComponent ( ActionMethodParamNameResolver . class ) ; \n registerComponent ( ActionPathRewriter . class ) ; \n registerComponent ( ActionPathMacroManager . class ) ; \n registerComponent ( ActionsManager . class ) ;", "msg_token": "register new component"} {"diff": " public abstract class AbstractTestQueries \n STRING0 ) ; \n } \n \n + @ test \n public void testOuterJoinWithCommonExpression ( ) \n throws Exception \n {", "msg_token": "Add Test annotation for outerjoin test"} {"diff": " public class AppBarLayout extends LinearLayout { \n break ; \n } \n } \n - return mDownPreScrollRange = Math . max ( NUMBER0 , range - getTopInset ( ) ) ; \n + return mDownPreScrollRange = Math . max ( NUMBER0 , range ) ; \n } \n \n COMMENT", "msg_token": "Fix AppBarLayout enterAlwaysCollapsed with inset window"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n final class SubscriberRegistry { \n COMMENT \n COMMENT \n COMMENT \n - @ guardedby ( STRING0 ) \n private final ConcurrentMap < Class < ? > , CopyOnWriteArraySet < Subscriber > > subscribers = \n Maps . newConcurrentMap ( ) ;", "msg_token": "Fix GuardedBy annotations with invalid lock expressions"} {"diff": " public class TcpFailureDetector extends ChannelInterceptorBase { \n } else { \n if ( removeSuspectsTimeout > NUMBER0 ) { \n long timeNow = System . currentTimeMillis ( ) ; \n - int timeIdle = ( int ) ( ( timeNow - removeSuspects . get ( m ) ) / NUMBER1 ) ; \n + int timeIdle = ( int ) ( ( timeNow - removeSuspects . get ( m ) . longValue ( ) ) / NUMBER1 ) ; \n if ( timeIdle > removeSuspectsTimeout ) { \n removeSuspects . remove ( m ) ; SINGLE \n }", "msg_token": "Fix autoboxing warning"} {"diff": " public class BranchesPanel extends JPanel { \n } ) ; \n } \n \n + @ override \n + public Dimension getPreferredSize ( ) { \n + if ( ! isVisible ( ) ) { \n + return new Dimension ( NUMBER0 , NUMBER0 ) ; \n + } \n + return super . getPreferredSize ( ) ; \n + } \n + \n private void recreateComponents ( ) { \n for ( Map . Entry < VirtualFile , List < RefGroup > > entry : myRefGroups . entrySet ( ) ) { \n if ( myRoots == null || myRoots . contains ( entry . getKey ( ) ) ) {", "msg_token": "vcs log when branches panel is invisible it has zero size"} {"diff": " public class SocketConnection implements Connection { \n } \n } \n catch ( Exception e ) { \n - Log . warn ( STRING0 , e ) ; \n + Log . warn ( STRING0 + STRING1 + this . toString ( ) , e ) ; \n close ( ) ; \n } \n return ! isClosed ( ) ;", "msg_token": "Added more logging information"} {"diff": " import NAMESPACE \n COMMENT \n COMMENT \n COMMENT \n - public class OutputLayer extends BaseLayer implements Serializable , Classifier , IterationListener { \n + public class OutputLayer extends BaseLayer implements Serializable , Classifier { \n \n private static final long serialVersionUID = - NUMBER0 ; \n SINGLE", "msg_token": "add listeners to output layer"} {"diff": " public class OracleTableColumnManager extends SQLTableColumnManager < OracleTableC \n \n final OracleTableColumn column = new OracleTableColumn ( parent ) ; \n column . setName ( getNewColumnName ( context , parent ) ) ; \n - column . setType ( ( OracleDataType ) columnType ) ; \n + column . setDataType ( ( OracleDataType ) columnType ) ; \n column . setTypeName ( columnType == null ? STRING0 : columnType . getName ( ) ) ; SINGLE \n column . setMaxLength ( columnType != null && columnType . getDataKind ( ) == DBPDataKind . STRING ? NUMBER0 : NUMBER1 ) ; \n column . setValueType ( columnType == null ? Types . INTEGER : columnType . getTypeID ( ) ) ; \n public class OracleTableColumn extends JDBCTableColumn < OracleTableBase > implemen \n return type ; \n } \n \n - public void setType ( OracleDataType type ) \n + public void setDataType ( OracleDataType type ) \n { \n this . type = type ; \n this . typeName = type == null ? STRING1 : type . getFullQualifiedName ( ) ;", "msg_token": "Local RSV ordering fix"} {"diff": " public class BSONSplitter extends Configured implements Tool { \n BSONObject splitInfo = ( BSONObject ) callback . get ( ) ; \n splits . add ( createFileSplitFromBSON ( splitInfo , fs , inputFile ) ) ; \n } \n + fsDataStream . close ( ) ; \n + fs . close ( ) ; \n splitsList = splits ; \n } SINGLE", "msg_token": "it causes leak"} {"diff": " public class Canvas { \n \n protected void finalize ( ) throws Throwable { \n super . finalize ( ) ; \n - finalizer ( mNativeCanvas ) ; \n + SINGLE \n + SINGLE \n + if ( mNativeCanvas != NUMBER0 ) { \n + finalizer ( mNativeCanvas ) ; \n + } \n } \n \n COMMENT", "msg_token": "Fix Canvas finalize for the case where the constructor throws an exception"} {"diff": " public class StringUtilTest extends TestCase { \n Collections . sort ( strings , c ) ; \n assertEquals ( Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 , STRING9 , \n STRING10 , STRING11 , STRING12 , STRING13 ) , strings ) ; \n - final List < String > strings2 = new ArrayList ( Arrays . asList ( STRING14 , STRING15 , STRING16 , STRING17 ) ) ; \n + final List < String > strings2 = new ArrayList ( Arrays . asList ( STRING14 , STRING18 , STRING15 , STRING19 , STRING16 , STRING17 ) ) ; \n Collections . sort ( strings2 , c ) ; \n - assertEquals ( Arrays . asList ( STRING16 , STRING14 , STRING15 , STRING17 ) , strings2 ) ; \n + assertEquals ( Arrays . asList ( STRING16 , STRING14 , STRING18 , STRING15 , STRING17 , STRING19 ) , strings2 ) ; \n } \n }", "msg_token": "test that longer strings sort behind shorter strings"} {"diff": " public final class UpgradeService { \n } ) ; \n if ( from > NUMBER0 && from <= NUMBER1 ) \n newVersionString ( changeLog , STRING0 , new String [ ] { \n - STRING1 , \n + STRING2 , \n + STRING3 , \n } ) ; \n \n changeLog . append ( STRING4 ) ;", "msg_token": "Added update message"} {"diff": " public class ModuleManagerComponent extends ModuleManagerImpl { \n \n @ override \n protected void fireModulesAdded ( ) { \n + if ( myModuleModel . myModules . isEmpty ( ) ) { \n + return ; \n + } \n + \n Runnable runnableWithProgress = new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "don t start process if no modules"} {"diff": " public class MainActivity extends AppCompatActivity { \n public void onCreate ( Bundle savedInstanceState ) { \n super . onCreate ( savedInstanceState ) ; \n \n - startActivity ( new Intent ( this , HtmlLinkExampleActivity . class ) ) ; \n - \n SINGLE \n setContentView ( R . layout . activity_main ) ;", "msg_token": "remove intent to go to other activity on start"} {"diff": " class Main { \n private boolean apiFormat = false ; \n \n COMMENT \n - private static int MAXFILESIZE = NUMBER0 ; \n + private final static int MAXFILESIZE = NUMBER0 ; \n \n Main ( boolean verbose , Language language , Language motherTongue ) throws IOException , \n ParserConfigurationException , SAXException {", "msg_token": "fix one small error"} {"diff": " public class PlanGenerator { \n case TRANSIT : \n String route = backEdgeNarrative . getName ( ) ; \n if ( mode == TraverseMode . ALIGHTING ) { \n - if ( showIntermediateStops && leg . stop != null ) { \n + if ( showIntermediateStops && leg . stop != null && leg . stop . size ( ) > NUMBER0 ) { \n SINGLE \n leg . stop . remove ( leg . stop . size ( ) - NUMBER1 ) ; \n if ( leg . stop . isEmpty ( ) ) {", "msg_token": "maybe fix index error reported by Lukasz Witkowski"} {"diff": " public class Cell < T extends Actor > implements Poolable { \n return ( Cell < A > ) this ; \n } \n \n + COMMENT \n + public Cell < T > clearActor ( ) { \n + setActor ( null ) ; \n + return this ; \n + } \n + \n COMMENT \n public T getActor ( ) { \n return ( T ) actor ;", "msg_token": "Added Cell clearActor"} {"diff": " public class XDocsPagesTest { \n \n private static void validateCheckSection ( ModuleFactory moduleFactory , String fileName , \n String sectionName , Node section ) throws Exception { \n - Object instance ; \n + final Object instance ; \n \n try { \n instance = moduleFactory . createModule ( sectionName ) ;", "msg_token": "resolve checkstyle violation final variable"} {"diff": " public class PGraphicsPDF extends PGraphicsJava2D { \n int imageHeight = image . height ; \n scale ( ( x2 - x1 ) / ( float ) imageWidth , \n ( y2 - y1 ) / ( float ) imageHeight ) ; \n - g2 . drawImage ( image . getImage ( ) , u1 , v1 , null ) ; \n + if ( u2 - u1 != imageWidth || v2 - v1 != imageHeight ) { \n + PImage tmp = new PImage ( u2 - u1 , v2 - v1 , ARGB ) ; \n + tmp . copy ( image , u1 , v1 , u2 , v2 , NUMBER0 , NUMBER0 , u2 - u1 , v2 - v1 ) ; \n + g2 . drawImage ( image . getImage ( ) , NUMBER0 , NUMBER0 , null ) ; \n + } else { \n + g2 . drawImage ( image . getImage ( ) , u1 , v1 , null ) ; \n + } \n popMatrix ( ) ; \n }", "msg_token": "Add support for custom source regions in imageImpl"} {"diff": " public class MacHashFunctionTest extends TestCase { \n } \n \n @ suppresswarnings ( STRING0 ) \n + @ suppressunderandroid SINGLE \n public void testNoProviders ( ) { \n ProviderList providers = Providers . getProviderList ( ) ; \n Providers . setProviderList ( ProviderList . newList ( ) ) ; \n public class MacHashFunctionTest extends TestCase { \n Hashing . hmacMd5 ( badKey ) ; \n fail ( ) ; \n } catch ( IllegalArgumentException expected ) { \n + } catch ( NullPointerException toleratedOnAndroid ) { \n + SINGLE \n } \n }", "msg_token": "Omit sun security"} {"diff": " public class ClsFileImpl extends ClsRepositoryPsiElement < PsiClassHolderFileStub > \n LOG . warn ( STRING0 + getVirtualFile ( ) . getPresentableUrl ( ) ) ; \n stubTree = new StubTree ( new PsiJavaFileStubImpl ( STRING1 , true ) ) ; \n } \n - \n - myStub = new SoftReference < StubTree > ( stubTree ) ; \n SINGLE \n ( ( PsiFileStubImpl ) stubTree . getRoot ( ) ) . setPsi ( this ) ; \n + \n + myStub = new SoftReference < StubTree > ( stubTree ) ; \n } \n \n return stubTree ;", "msg_token": "prevent semi initialized cls stub from being visible from another thread may lead to wrong isValid false"} {"diff": " public abstract class Criterion extends CompilableWithArguments { \n return new Criterion ( null ) { \n @ override \n protected void populate ( SqlBuilder builder , boolean forSqlValidation ) { \n + if ( forSqlValidation ) { \n + builder . sql . append ( STRING0 ) ; \n + } \n builder . sql . append ( selection ) ; \n if ( selectionArgs != null && selectionArgs . length > NUMBER0 ) { \n if ( builder . args == null ) { \n public abstract class Criterion extends CompilableWithArguments { \n } \n Collections . addAll ( builder . args , selectionArgs ) ; \n } \n + if ( forSqlValidation ) { \n + builder . sql . append ( STRING1 ) ; \n + } \n } \n } ; \n }", "msg_token": "Any use of Criterion fromRawSelection should get extra parentheses when compiled for SQL validation"} {"diff": " public class BatchOperationFunctionalTest \n } \n largereq . append ( STRING0 ) ; \n \n - System . out . println ( Runtime . getRuntime ( ) . totalMemory ( ) ) ; \n - \n Date d = new Date ( ) ; \n JaxRsResponse response = RestRequest . req ( ) . post ( functionalTestHelper . dataUri ( ) + STRING1 , largereq . toString ( ) ) ;", "msg_token": "Removed a sysout"} {"diff": " public class DuplicatesIndex extends FileBasedIndexExtension < Integer , TIntArrayL \n private static boolean ourEnabledOldProfiles = false ; \n \n @ nonnls public static final ID < Integer , TIntArrayList > NAME = ID . create ( STRING0 ) ; \n - private static final int myBaseVersion = NUMBER0 ; \n + private static final int myBaseVersion = NUMBER1 ; \n \n private final FileBasedIndex . InputFilter myInputFilter = new FileBasedIndex . InputFilter ( ) { \n @ override", "msg_token": "filling fields in similar constructors"} {"diff": " public class EncodedImage implements Closeable { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public void copyMetaDataFrom ( EncodedImage encodedImage ) { \n + mImageFormat = encodedImage . getImageFormat ( ) ; \n + mWidth = encodedImage . getWidth ( ) ; \n + mHeight = encodedImage . getHeight ( ) ; \n + mRotationAngle = encodedImage . getRotationAngle ( ) ; \n + mSampleSize = encodedImage . getSampleSize ( ) ; \n + mStreamSize = encodedImage . getSize ( ) ; \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n public static boolean isMetaDataAvailable ( EncodedImage encodedImage ) {", "msg_token": "Added copyMetaDataFrom method to EncodedImage"} {"diff": " public class Compiler extends AbstractCompiler { \n return hasHaltingErrors ( ) ; \n } \n \n + SINGLE \n COMMENT \n @ override \n void addToDebugLog ( String str ) { \n - debugLog . append ( str ) ; \n - debugLog . append ( STRING0 ) ; \n - logger . fine ( str ) ; \n + if ( options . useDebugLog ) { \n + debugLog . append ( str ) ; \n + debugLog . append ( STRING0 ) ; \n + logger . fine ( str ) ; \n + } \n } \n \n @ override \n public class CompilerOptions implements Serializable , Cloneable { \n Collections . emptyList ( ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + boolean useDebugLog ; \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class CompilerOptions implements Serializable , Cloneable { \n SINGLE \n aliasHandler = NULL_ALIAS_TRANSFORMATION_HANDLER ; \n errorHandler = null ; \n + useDebugLog = false ; \n } \n \n COMMENT", "msg_token": "Don t retain strings in the debugLog by default"} {"diff": " public class WebView extends AbsoluteLayout \n break ; \n case REQUEST_KEYBOARD_WITH_SELECTION_MSG_ID : \n displaySoftKeyboard ( true ) ; \n - updateTextSelectionFromMessage ( msg . arg1 , msg . arg2 , \n - ( WebViewCore . TextSelectionData ) msg . obj ) ; \n - break ; \n + SINGLE \n case UPDATE_TEXT_SELECTION_MSG_ID : \n - SINGLE \n - SINGLE \n - SINGLE \n - rebuildWebTextView ( ) ; \n updateTextSelectionFromMessage ( msg . arg1 , msg . arg2 , \n ( WebViewCore . TextSelectionData ) msg . obj ) ; \n break ;", "msg_token": "Remove call to rebuildWebTextView from handling selection change"} {"diff": " public class StoreView extends Request { \n int len = NUMBER0 ; \n int off = NUMBER0 ; \n String filter = _filter . value ( ) ; \n - SINGLE \n + SINGLE \n SINGLE \n Set < Key > keySet = new TreeSet ( H2O . globalKeySet ( null ) ) ; \n int kcnt = keySet . size ( ) ; \n public class StoreView extends Request { \n if ( filter != null && SINGLE \n key . toString ( ) . indexOf ( filter ) == - NUMBER1 ) \n continue ; SINGLE \n - if ( ! key . user_allowed ( ) ) SINGLE \n - continue ; \n if ( H2O . get ( key ) == null ) continue ; SINGLE \n if ( off >= offset ) { SINGLE \n if ( len < view ) {", "msg_token": "Remove redundant test comment"} {"diff": " public class ImportingUtilities { \n } finally { \n stream2 . close ( ) ; \n } \n + } else { \n + String value = Streams . asString ( stream ) ; \n + parameters . put ( name , value ) ; \n + SINGLE \n + SINGLE \n + \n } \n \n } else { SINGLE", "msg_token": "Parse parameters from multipart form data POSTs rather than just dropping them needed for Windmill tests among other things"} {"diff": " public abstract class AbstractActiveService { \n \n \n public void activate ( ) { \n + shutdown = false ; \n start ( ) ; \n }", "msg_token": "fixed bug with services shutting down by itself"} {"diff": " public class SvnUtil { \n @ nullable final SVNRevision revision , \n @ nullable final SVNRevision pegRevision ) \n throws VcsException { \n - ClientFactory factory = target . isFile ( ) ? vcs . getFactory ( target . getFile ( ) ) : vcs . getFactory ( ) ; \n - \n - return factory . createContentClient ( ) . getContent ( target , revision , pegRevision ) ; \n + return vcs . getFactory ( target ) . createContentClient ( ) . getContent ( target , revision , pegRevision ) ; \n } \n \n public static boolean hasDefaultPort ( @ notnull SVNURL result ) {", "msg_token": "Refactored SvnUtil getFileContents reuse factory selection logic from SvnVcs"} {"diff": " public class DefaultWebSocketProcessor implements WebSocketProcessor , Serializab \n throw new AtmosphereMappingException ( STRING0 + request . getRequestURI ( ) ) ; \n } \n proxy = postProcessMapping ( webSocket , request , handler ) ; \n + AtmosphereResourceImpl . class . cast ( webSocket . resource ( ) ) . action ( ) . type ( asynchronousProcessor . invokeInterceptors ( handler . interceptors ( ) , webSocket . resource ( ) ) . type ( ) ) ; \n } \n \n SINGLE", "msg_token": "Invoke interceptor from onOpen"} {"diff": " public class TemplateResourceReader implements ContentResourceReader { \n Configuration cfg = new Configuration ( CURRENT_VERSION ) ; \n cfg . setObjectWrapper ( new DefaultObjectWrapperBuilder ( CURRENT_VERSION ) . build ( ) ) ; \n cfg . setDefaultEncoding ( STRING0 ) ; \n - cfg . setIncompatibleImprovements ( new Version ( NUMBER0 , NUMBER1 , NUMBER2 ) ) ; \n cfg . setTemplateLoader ( templateLoader ) ; \n return cfg ; \n }", "msg_token": "corrected umatched version for template"} {"diff": " public class PifaceBinding extends AbstractActiveBinding < PifaceBindingProvider > \n private static final int DEFAULT_SOCKET_TIMEOUT_MS = NUMBER0 ; \n private static final int DEFAULT_MAX_RETRIES = NUMBER1 ; \n \n - SINGLE \n - private static final byte ERROR_RESPONSE = - NUMBER2 ; \n - \n SINGLE \n private final Map < String , PifaceNode > pifaceNodes = new HashMap < String , PifaceNode > ( ) ; \n \n public class PifaceBinding extends AbstractActiveBinding < PifaceBindingProvider > \n int attempt = NUMBER2 ; \n while ( attempt <= node . maxRetries ) { \n try { \n - byte response = sendCommand ( node , command , commandAck , pinNumber , pinValue , attempt ) ; \n - if ( response != ERROR_RESPONSE ) \n - return response ; \n + return sendCommand ( node , command , commandAck , pinNumber , pinValue , attempt ) ; \n } catch ( ErrorResponseException e ) { \n attempt ++ ; \n }", "msg_token": "PiFace binding reads wrong state for output pins upon startup"} {"diff": " public class MediaRouteButton extends View { \n final RouteInfo route = mRouter . getRouteAt ( i ) ; \n if ( ( route . getSupportedTypes ( ) & mRouteTypes ) != NUMBER0 && \n route != mRouter . getSystemAudioRoute ( ) ) { \n - mRouter . selectRoute ( mRouteTypes , route ) ; \n + mRouter . selectRouteInt ( mRouteTypes , route ) ; \n } \n } \n }", "msg_token": "Permit MediaRouteButton to select system routes in toggle mode"} {"diff": " public class WordPressDB { \n public static final String COLUMN_NAME_VIDEO_PRESS_SHORTCODE = STRING0 ; \n public static final String COLUMN_NAME_UPLOAD_STATE = STRING1 ; \n \n - private static final int DATABASE_VERSION = NUMBER0 ; \n + private static final int DATABASE_VERSION = NUMBER1 ; \n \n private static final String CREATE_TABLE_BLOGS = STRING2 \n + STRING3 ; \n public class WordPressDB { \n case NUMBER2 : \n AccountTable . migrationAddEmailAddressField ( db ) ; \n currentVersion ++ ; \n + case NUMBER0 : \n + SINGLE \n + ctx . deleteDatabase ( STRING4 ) ; \n + currentVersion ++ ; \n } \n db . setVersion ( DATABASE_VERSION ) ; \n }", "msg_token": "Delete simperium DB on startup before the initialization of simperium"} {"diff": " public class LayoutShadowNode extends ReactShadowNode { \n ViewProps . MARGIN_RIGHT , \n ViewProps . MARGIN_TOP , \n ViewProps . MARGIN_BOTTOM , \n - } , defaultFloat = FLOAT0 ) \n + } , defaultFloat = CSSConstants . UNDEFINED ) \n public void setMargins ( int index , float margin ) { \n setMargin ( ViewProps . PADDING_MARGIN_SPACING_TYPES [ index ] , PixelUtil . toPixelFromDIP ( margin ) ) ; \n } \n public class LayoutShadowNode extends ReactShadowNode { \n ViewProps . BORDER_RIGHT_WIDTH , \n ViewProps . BORDER_TOP_WIDTH , \n ViewProps . BORDER_BOTTOM_WIDTH , \n - } , defaultFloat = FLOAT0 ) \n + } , defaultFloat = CSSConstants . UNDEFINED ) \n public void setBorderWidths ( int index , float borderWidth ) { \n setBorder ( ViewProps . BORDER_SPACING_TYPES [ index ] , PixelUtil . toPixelFromDIP ( borderWidth ) ) ; \n }", "msg_token": "Fix resetting margins and borders on android"} {"diff": " public class LanguageConsoleImpl implements Disposable , TypeSafeDataProvider { \n else { \n myPanel . removeAll ( ) ; \n myPanel . add ( myHistoryViewer . getComponent ( ) , BorderLayout . CENTER ) ; \n - fileManager . openTextEditor ( new OpenFileDescriptor ( getProject ( ) , virtualFile , NUMBER0 ) , true ) ; \n + SINGLE \n + myCurrentEditor = fileManager . openTextEditor ( new OpenFileDescriptor ( getProject ( ) , virtualFile , NUMBER0 ) , true ) ; \n myHistoryViewer . setHorizontalScrollbarVisible ( true ) ; \n } \n }", "msg_token": "peter full editor not set as current on first appearance fixed"} {"diff": " public abstract class HttpResolution { \n if ( redirectPort == - NUMBER0 ) { \n redirectPort = NUMBER1 ; \n } \n + SINGLE \n + String uri = redirectURI . getRawPath ( ) ; \n + String query = redirectURI . getRawQuery ( ) ; \n + if ( query != null ) { \n + uri = uri + STRING0 + query ; SINGLE \n + } \n createClient ( redirectURI . getScheme ( ) , redirectURI . getHost ( ) , redirectPort ) ; \n - makeRequest ( redirectURI . getScheme ( ) , redirectURI . getHost ( ) , redirectPort , redirectURI . getPath ( ) ) ; \n + makeRequest ( redirectURI . getScheme ( ) , redirectURI . getHost ( ) , redirectPort , uri ) ; \n } catch ( URISyntaxException e ) { \n log . error ( STRING1 + location ) ; \n }", "msg_token": "Fix HttpResolution to follow entire location header uri including query"} {"diff": " public class Install { \n public static final String DEFAULT_DISTRIBUTION_PATH = STRING0 ; \n private final IDownload download ; \n private final PathAssembler pathAssembler ; \n - private final ExclusiveFileAccessManager exclusiveFileAccessManager = new ExclusiveFileAccessManager ( NUMBER0 , NUMBER1 ) ; \n + private final ExclusiveFileAccessManager exclusiveFileAccessManager = new ExclusiveFileAccessManager ( NUMBER2 , NUMBER3 ) ; \n \n public Install ( IDownload download , PathAssembler pathAssembler ) { \n this . download = download ;", "msg_token": "Use a larger timeout waiting for the distribution to be available"} {"diff": " public class TestJoystick extends SimpleApplication { \n } \n \n public void setAxisValue ( JoystickAxis axis , float value ) { \n - SINGLE \n + System . out . println ( STRING0 + axis . getName ( ) + STRING1 + value ) ; \n if ( axis == axis . getJoystick ( ) . getXAxis ( ) ) { \n setXAxis ( value ) ; \n } else if ( axis == axis . getJoystick ( ) . getYAxis ( ) ) {", "msg_token": "revert commented out sysout on axis update"} {"diff": " import NAMESPACE ; \n @ mojo ( name = STRING0 , defaultPhase = LifecyclePhase . GENERATE_RESOURCES ) \n public final class InstallNodeAndNpmMojo extends AbstractMojo { \n \n - @ parameter ( defaultValue = STRING1 ) \n + COMMENT \n + COMMENT \n + COMMENT \n + @ parameter ( required = true ) \n private String nodeVersion ; \n \n - @ parameter ( defaultValue = STRING2 ) \n + COMMENT \n + COMMENT \n + COMMENT \n + @ parameter ( required = true ) \n private String npmVersion ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n @ parameter ( defaultValue = STRING3 ) \n private String targetDir ; \n \n public final class KarmaRunMojo extends AbstractMojo { \n @ parameter ( defaultValue = STRING3 , property = STRING4 , required = false ) \n private File workingDirectory ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n @ parameter ( defaultValue = STRING5 ) \n private String karmaConfPath ;", "msg_token": "Make nodeVersion and npmVersion obligatory add description to plugin properties"} {"diff": " public class CompletionResult { \n } \n } ; \n } \n - \n - public static Mapper < CompletionResult , String > completionResultToJson ( ) { \n - return new Mapper < CompletionResult , String > ( ) { \n - public String call ( CompletionResult result ) throws Exception { \n - return methods . toJson ( result ) ; \n - } \n - } ; \n - } \n - \n - public static Mapper < String , CompletionResult > completionResultFromJson ( ) { \n - return new Mapper < String , CompletionResult > ( ) { \n - public CompletionResult call ( String result ) throws Exception { \n - return methods . fromJson ( result ) ; \n - } \n - } ; \n - } \n } \n \n public static final class methods {", "msg_token": "removed unused functions"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class TransferCallDialog \n this . setOkButtonText ( GuiActivator . getResources ( ) \n . getI18NString ( STRING0 ) ) ; \n \n + this . setMinimumSize ( new Dimension ( NUMBER0 , NUMBER0 ) ) ; \n + \n addOkButtonListener ( new ActionListener ( ) \n { \n public void actionPerformed ( ActionEvent e )", "msg_token": "Set minimum size for transfer call dialog"} {"diff": " public class VoiceRouter { \n \n SINGLE \n if ( next == null || next . distance == NUMBER0 ) { \n - if ( currentStatus <= STATUS_UNKNOWN && currentDirection > NUMBER0 ) { \n + SINGLE \n + if ( currentStatus <= STATUS_UNKNOWN ) { \n CommandBuilder play = getNewCommandPlayerToPlay ( ) ; \n if ( play != null ) { \n play . goAhead ( router . getLeftDistance ( ) ) . andArriveAtDestination ( ) . play ( ) ;", "msg_token": "announce final prompt again if recovering from a U turn when possible situation"} {"diff": " \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ShadowDrawable { \n \n @ implementation \n public static Drawable createFromStream ( InputStream is , String srcName ) { \n - BitmapDrawable drawable = new BitmapDrawable ( ) ; \n + BitmapDrawable drawable = new BitmapDrawable ( Robolectric . newInstanceOf ( Bitmap . class ) ) ; \n shadowOf ( drawable ) . setSource ( srcName ) ; \n return drawable ; \n }", "msg_token": "createFromStream should create a BitmapDrawable which contains an instance of a bitmap"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class TaskRunner extends InterruptingExecutionThreadService { \n \n private void pullImage ( final String image ) throws DockerException , InterruptedException { \n listener . pulling ( ) ; \n - docker . pull ( image ) ; \n + \n + SINGLE \n + try { \n + docker . pull ( image ) ; \n + } catch ( ImageNotFoundException e ) { \n + log . warn ( STRING0 , image , e ) ; \n + } \n + \n + SINGLE \n + docker . inspectImage ( image ) ; \n } \n \n public static interface Listener {", "msg_token": "agent fix pull code"} {"diff": " public class Logger \n \n public void log ( Level level , String message , Object . . . parameters ) \n { \n - \n - final String logMessage = String . format ( message , parameters ) ; \n - if ( logger != null ) \n - { \n - if ( logger . isLoggable ( level ) ) \n - { \n - logger . log ( level , logMessage ) ; \n - } \n - } \n - else \n + SINGLE \n + if ( logger . isLoggable ( level ) ) \n { \n - System . out . println ( \n - String . format ( STRING0 , level . getName ( ) , logMessage ) ) ; \n + final String logMessage = String . format ( message , parameters ) ; \n + \n + logger . log ( level , logMessage ) ; \n } \n }", "msg_token": "cleaning up logging config"} {"diff": " public class TomcatPlugin implements ProfilerPlugin { \n InstrumentClass target = instrumentContext . getInstrumentClass ( classLoader , className , classfileBuffer ) ; \n if ( target != null ) { \n target . weave ( STRING0 ) ; \n + return target . toBytecode ( ) ; \n } \n \n - return target . toBytecode ( ) ; \n + return null ; \n } \n } ) ; \n }", "msg_token": "Check NPE condition"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "corrected Javadoc comment"} {"diff": " public class DrawerMenuAdapter extends ArrayAdapter < NavDrawerItem > { \n public DrawerMenuAdapter ( Context context , int textViewResourceId , List < NavDrawerItem > objects ) { \n super ( context , textViewResourceId , objects ) ; \n inflater = LayoutInflater . from ( context ) ; \n - this . appContext = context . getApplicationContext ( ) ; \n + appContext = context . getApplicationContext ( ) ; \n \n mInfoButtonListener = new View . OnClickListener ( ) { \n @ override", "msg_token": "Removed this prefix"} {"diff": " public class ProgressWindow extends BlockingProgressIndicator { \n private boolean myStoppedAlready = false ; \n private FocusTrackback myFocusTrackback ; \n private boolean myStared = false ; \n + private boolean myBackgrounded = false ; \n \n public ProgressWindow ( boolean shouldShowCancel , Project project ) { \n this ( shouldShowCancel , false , project ) ; \n public class ProgressWindow extends BlockingProgressIndicator { \n public void background ( ) { \n if ( myDialog != null ) { \n GeneralSettings . getInstance ( ) . setSearchInBackground ( true ) ; \n + myBackgrounded = true ; \n myDialog . background ( ) ; \n myDialog = null ; \n } \n public class ProgressWindow extends BlockingProgressIndicator { \n . setRequestFocus ( true ) \n . setCancelCallback ( new Computable < Boolean > ( ) { \n public Boolean compute ( ) { \n - return isCanceled ( ) || ! isRunning ( ) ; \n + return isCanceled ( ) || ! isRunning ( ) || ProgressWindow . this . myBackgrounded ; \n } \n } ) . createPopup ( ) ; \n myPopup . showInCenterOf ( myParentWindow ) ;", "msg_token": "hide progress window on background action"} {"diff": " public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS \n Intent intent = new Intent ( action ) ; \n intent . addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ; \n SINGLE \n - SINGLE \n - intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n + SINGLE \n + SINGLE \n + if ( mGlobalSearchMode ) { \n + intent . addFlags ( Intent . FLAG_ACTIVITY_CLEAR_TOP ) ; \n + } \n if ( data != null ) { \n intent . setData ( data ) ; \n }", "msg_token": "Only use FLAG_ACTIVITY_CLEAR_TOP on the search intent when from global search"} {"diff": " public class ResourceLoader { \n return resourcePath ; \n } else if ( ( resourcePath = getAndroidResourcePathFromSystemEnvironment ( ) ) != null ) { \n return resourcePath ; \n + } else if ( ( resourcePath = getAndroidResourcePathFromSystemProperty ( ) ) != null ) { \n + return resourcePath ; \n } else if ( ( resourcePath = getAndroidResourcePathByExecingWhichAndroid ( ) ) != null ) { \n return resourcePath ; \n } \n public class ResourceLoader { \n return null ; \n } \n \n + private String getAndroidResourcePathFromSystemProperty ( ) { \n + SINGLE \n + String resourcePath = System . getProperty ( STRING0 ) ; \n + if ( resourcePath != null ) { \n + return new File ( resourcePath , getAndroidResourceSubPath ( ) ) . toString ( ) ; \n + } \n + return null ; \n + } \n + \n private String getAndroidResourcePathByExecingWhichAndroid ( ) { \n SINGLE \n SINGLE", "msg_token": "also check android sdk path property"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JolokiaAutoConfigurationTests { \n EnvironmentTestUtils . addEnvironment ( this . context , STRING0 , \n STRING1 ) ; \n this . context . register ( Config . class , WebMvcAutoConfiguration . class , \n + PropertyPlaceholderAutoConfiguration . class , \n ManagementServerPropertiesAutoConfiguration . class , \n HttpMessageConvertersAutoConfiguration . class , \n JolokiaAutoConfiguration . class ) ; \n public class JolokiaAutoConfigurationTests { \n EnvironmentTestUtils . addEnvironment ( this . context , \n STRING2 ) ; \n this . context . register ( Config . class , WebMvcAutoConfiguration . class , \n + PropertyPlaceholderAutoConfiguration . class , \n ManagementServerPropertiesAutoConfiguration . class , \n HttpMessageConvertersAutoConfiguration . class , \n JolokiaAutoConfiguration . class ) ;", "msg_token": "Fix failing test due to cache timeout property"} {"diff": " public class TouchEvent { \n return this . mAction ; \n } \n \n + public boolean isActionDown ( ) { \n + return this . mAction == TouchEvent . ACTION_DOWN ; \n + } \n + \n + public boolean isActionUp ( ) { \n + return this . mAction == TouchEvent . ACTION_UP ; \n + } \n + \n + public boolean isActionMove ( ) { \n + return this . mAction == TouchEvent . ACTION_MOVE ; \n + } \n + \n + public boolean isActionCancel ( ) { \n + return this . mAction == TouchEvent . ACTION_CANCEL ; \n + } \n + \n + public boolean isActionOutside ( ) { \n + return this . mAction == TouchEvent . ACTION_OUTSIDE ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added convenience methods to get the action of a TouchEvent"} {"diff": " public class SlidingLayer extends FrameLayout { \n } \n \n public void setOpenOnTapEnabled ( boolean _openOnTapEnabled ) { \n - _openOnTapEnabled = _openOnTapEnabled ; \n + openOnTapEnabled = _openOnTapEnabled ; \n }", "msg_token": "fixed misnamed setter"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class HtmlDocumentImpl extends XmlDocumentImpl { \n super ( XmlElementType . HTML_DOCUMENT ) ; \n } \n \n + public HtmlDocumentImpl ( IElementType type ) { \n + super ( type ) ; \n + } \n + \n @ override \n public XmlTag getRootTag ( ) { \n return ( XmlTag ) findElementByTokenType ( XmlElementType . HTML_TAG ) ;", "msg_token": "add a constructor to HtmlDocumentImpl"} {"diff": " public class HystrixCommandTimeoutConcurrencyTesting { \n . andCommandKey ( HystrixCommandKey . Factory . asKey ( STRING0 ) ) \n . andCommandPropertiesDefaults ( HystrixCommandProperties . Setter ( ) \n . withExecutionTimeoutInMilliseconds ( NUMBER0 ) \n - . withCircuitBreakerEnabled ( false ) ) \n + . withCircuitBreakerEnabled ( false ) \n + . withFallbackIsolationSemaphoreMaxConcurrentRequests ( NUM_CONCURRENT_COMMANDS ) ) \n . andThreadPoolPropertiesDefaults ( HystrixThreadPoolProperties . Setter ( ) \n . withCoreSize ( NUM_CONCURRENT_COMMANDS ) ) ) ; \n }", "msg_token": "Made fallback semaphore allow maximum concurrent fallbacks in unit test"} {"diff": " public class FlickrApi extends DefaultApi10a \n @ override \n public String getAccessTokenEndpoint ( ) \n { \n - return STRING0 ; \n + return STRING1 ; \n } \n \n COMMENT \n public class FlickrApi extends DefaultApi10a \n @ override \n public String getAuthorizationUrl ( Token requestToken ) \n { \n - return STRING2 + requestToken . getToken ( ) ; \n + return STRING3 + requestToken . getToken ( ) ; \n } \n \n COMMENT \n public class FlickrApi extends DefaultApi10a \n @ override \n public String getRequestTokenEndpoint ( ) \n { \n - return STRING4 ; \n + return STRING5 ; \n } \n }", "msg_token": "updated the FlickrApi to use https"} {"diff": " public class GroupByQueryEngine \n } \n cursor . advance ( ) ; \n } \n - while ( ! cursor . isDone ( ) ) { \n + while ( ! cursor . isDone ( ) && rowUpdater . getNumRows ( ) < config . getMaxIntermediateRows ( ) ) { \n ByteBuffer key = ByteBuffer . allocate ( dimensions . size ( ) * Ints . BYTES ) ; \n \n unprocessedKeys = rowUpdater . updateValues ( key , dimensions ) ; \n - if ( unprocessedKeys != null || rowUpdater . getNumRows ( ) > config . getMaxIntermediateRows ( ) ) { \n + if ( unprocessedKeys != null ) { \n break ; \n }", "msg_token": "Fix breaking while exceeding max intermediate rows"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fixed cs issues by removing unused certs"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public class ComboEditorCompletionContributor extends CompletionContributor { \n + public class ComboEditorCompletionContributor extends CompletionContributor implements DumbAware { \n \n public static final Key < Boolean > CONTINUE_RUN_COMPLETION = Key . create ( STRING0 ) ;", "msg_token": "make editorComboBox completion for String ComboBoxes available during dumb mode"} {"diff": " public class TachyonFSContract extends AbstractFSContract { \n public static final String CONTRACT_XML = STRING0 ; \n public static final String SYSPROP_TEST_BUILD_DATA = STRING1 ; \n public static final String DEFAULT_TEST_BUILD_DATA_DIR = STRING2 ; \n - private LocalTachyonCluster mLocalTachyonCluster ; \n + private final LocalTachyonCluster mLocalTachyonCluster ; \n private FileSystem mFS ; \n \n COMMENT", "msg_token": "Make unmodified field final"} {"diff": " public class ShadowHttpGet extends ShadowHttpRequestBase { \n realHttpGet . setURI ( uri ) ; \n } \n \n + public void __constructor__ ( String uri ) { \n + this . __constructor__ ( URI . create ( uri ) ) ; \n + } \n + \n @ implementation \n public String getMethod ( ) { \n return HttpGet . METHOD_NAME ; \n public class HttpGetTest { \n } \n \n @ test \n - public void shouldReturnUri ( ) throws Exception { \n + public void shouldConstructWithURI ( ) throws Exception { \n URI uri = URI . create ( STRING0 ) ; \n assertSame ( uri , new HttpGet ( uri ) . getURI ( ) ) ; \n } \n + \n + @ test \n + public void shouldConstructWithString ( ) throws Exception { \n + assertEquals ( URI . create ( STRING0 ) , new HttpGet ( STRING0 ) . getURI ( ) ) ; \n + } \n }", "msg_token": "Added support for multiple requests in ShadowAbstractHttpClient"} {"diff": " abstract public class Node \n COMMENT \n class EventContentFilter extends FlexibleStanzaTypeFilter < Message > \n { \n - private String firstElement ; \n - private String secondElement ; \n + private final String firstElement ; \n + private final String secondElement ; \n \n EventContentFilter ( String elementName ) \n { \n - firstElement = elementName ; \n + this ( elementName , null ) ; \n } \n \n EventContentFilter ( String firstLevelEelement , String secondLevelElement )", "msg_token": "Make EventContentFilter s members final"} {"diff": " public class ClassFilterEditor extends JPanel implements ComponentWithEmptyText \n private final String myPatternsHelpId ; \n \n public ClassFilterEditor ( Project project ) { \n - this ( project , null , null ) ; \n + this ( project , null ) ; \n + } \n + \n + public ClassFilterEditor ( Project project , ClassFilter classFilter ) { \n + this ( project , classFilter , null ) ; \n } \n \n public ClassFilterEditor ( Project project , ClassFilter classFilter , @ nullable String patternsHelpId ) {", "msg_token": "add constructor in order not to break open API"} {"diff": " public abstract class BaseActualServer < T extends ResponseSetting < T > > extends Ba \n } ; \n } \n \n + @ override \n public int port ( ) { \n if ( port . isPresent ( ) ) { \n return port . get ( ) ; \n package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n - public abstract class BaseServer < T extends ResponseSetting < T > > extends BaseResponseSettingConfiguration < T > { \n + public abstract class BaseServer < T extends ResponseSetting < T > > \n + extends BaseResponseSettingConfiguration < T > implements Server < T > { \n protected abstract T onRequestAttached ( final RequestMatcher matcher ) ; \n \n public T request ( final RequestMatcher matcher ) {", "msg_token": "implemented server interface for base server"} {"diff": " public abstract class InstancePermission extends ClusterPermission { \n protected static final int CREATE = NUMBER0 ; \n protected static final int DESTROY = NUMBER1 ; \n \n + private static final WildcardConfigPatternMatcher CONFIG_PATTERN_MATCHER = new WildcardConfigPatternMatcher ( ) ; \n + \n protected final int mask ; \n protected final String actions ; \n \n - private final WildcardConfigPatternMatcher configPatternMatcher = new WildcardConfigPatternMatcher ( ) ; \n - \n public InstancePermission ( String name , String . . . actions ) { \n super ( name ) ; \n if ( name == null || STRING0 . equals ( name ) ) { \n public abstract class InstancePermission extends ClusterPermission { \n return false ; \n } \n \n - if ( ! configPatternMatcher . matches ( that . getName ( ) , this . getName ( ) ) ) { \n + if ( ! CONFIG_PATTERN_MATCHER . matches ( that . getName ( ) , this . getName ( ) ) ) { \n return false ; \n }", "msg_token": "changed configPatterMatcher to static"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed incorrect comment in QuickSort java"} {"diff": " public class StudyDirectoryProjectGenerator extends PythonProjectGenerator imple \n @ notnull \n @ override \n public String getName ( ) { \n - return STRING0 ; \n + return STRING1 ; \n }", "msg_token": "updated study project name"} {"diff": " public class CommandResult { \n return response ; \n } \n \n + public boolean isOk ( ) { \n + return getResponse ( ) . get ( STRING0 ) . equals ( FLOAT0 ) ; \n + } \n public int getErrorCode ( ) { \n return ( Integer ) getResponse ( ) . get ( STRING1 ) ; \n }", "msg_token": "Added CommandResult isOk"} {"diff": " import NAMESPACE ; \n COMMENT \n public class ElasticsearchClient extends DB { \n \n - public static final String DEFAULT_CLUSTER_NAME = STRING0 ; \n - public static final String DEFAULT_INDEX_KEY = STRING1 ; \n - public static final String DEFAULT_REMOTE_HOST = STRING2 ; \n + private static final String DEFAULT_CLUSTER_NAME = STRING0 ; \n + private static final String DEFAULT_INDEX_KEY = STRING1 ; \n + private static final String DEFAULT_REMOTE_HOST = STRING2 ; \n private Node node ; \n private Client client ; \n private String indexKey ;", "msg_token": "elasticsearch Restrict visibility of defaults"} {"diff": " public class ParticleEmitter { \n aligned = emitter . aligned ; \n behind = emitter . behind ; \n additive = emitter . additive ; \n + premultipliedAlpha = emitter . premultipliedAlpha ; \n } \n \n private void initialize ( ) {", "msg_token": "Copy premultipliedAlpha in copy constructor"} {"diff": " static class InstanceMethodExpr extends MethodExpr { \n { \n Type type = Type . getType ( method . getDeclaringClass ( ) ) ; \n target . emit ( C . EXPRESSION , fn , gen ) ; \n - if ( ! method . getDeclaringClass ( ) . isInterface ( ) ) \n - gen . checkCast ( type ) ; \n + SINGLE \n + gen . checkCast ( type ) ; \n MethodExpr . emitTypedArgs ( fn , gen , method . getParameterTypes ( ) , args ) ; \n if ( context == C . RETURN ) \n {", "msg_token": "added back checkcast before invokevirtual calls"} {"diff": " public final class CentralAuthenticationServiceImpl implements CentralAuthentica \n } \n \n } \n + \n + log . debug ( STRING0 , \n + new Object [ ] { registeredService . getName ( ) , principal . getId ( ) , principalId } ) ; \n return principalId ; \n }", "msg_token": "Add support for logging when CAS tries to determine the principal Id for a given service"} {"diff": " public class Http11AprProcessor extends AbstractHttp11Processor < Long > { \n \n @ override \n protected boolean breakKeepAliveLoop ( SocketWrapper < Long > socketWrapper ) { \n + openSocket = true ; \n SINGLE \n if ( sendfileData != null && ! error ) { \n sendfileData . socket = socketWrapper . getSocket ( ) . longValue ( ) ; \n public class Http11Processor extends AbstractHttp11Processor < Socket > { \n \n @ override \n protected boolean breakKeepAliveLoop ( SocketWrapper < Socket > socketWrapper ) { \n + openSocket = true ; \n SINGLE \n SINGLE \n if ( inputBuffer . lastValid == NUMBER0 ) {", "msg_token": "Fix keep alive broken by refactoring"} {"diff": " public class JavaDocInfoGenerator { \n aClass = ( ( PsiMember ) myElement ) . getContainingClass ( ) ; \n } \n else { \n - LOG . error ( STRING0 + myElement . getClass ( ) . getName ( ) ) ; \n + aClass = PsiTreeUtil . getParentOfType ( myElement , PsiClass . class ) ; \n } \n \n if ( aClass == null ) {", "msg_token": "accept docRoot in parameter documentation"} {"diff": " public class NotificationRowLayout extends ViewGroup { \n STRING0 , \n childIdx , mSlidingChild , mInitialTouchY , mRowHeight , count ) ) ; \n } \n + \n + \n + SINGLE \n + SINGLE \n + requestDisallowInterceptTouchEvent ( true ) ; \n } \n } \n break ;", "msg_token": "Prevent notification swipes from getting canceled too soon"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DependencyParser { \n SINGLE \n SINGLE \n TreeGraphNode rootNode = new TreeGraphNode ( root ) ; \n - return new EnglishGrammaticalStructure ( dependencies , rootNode ) ; \n + return makeGrammaticalStructure ( dependencies , rootNode ) ; \n + } \n + \n + private GrammaticalStructure makeGrammaticalStructure ( List < TypedDependency > dependencies , TreeGraphNode rootNode ) { \n + switch ( language ) { \n + case English : return new EnglishGrammaticalStructure ( dependencies , rootNode ) ; \n + case Chinese : return new ChineseGrammaticalStructure ( dependencies , rootNode ) ; \n + \n + SINGLE \n + default : return new EnglishGrammaticalStructure ( dependencies , rootNode ) ; \n + } \n } \n \n COMMENT", "msg_token": "return different GrammaticalStructure subclasses based on language"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TraktSyncActivity extends BaseActivity { \n super . onCreate ( savedInstanceState ) ; \n setContentView ( R . layout . trakt_sync ) ; \n \n + final ActionBar actionBar = getSupportActionBar ( ) ; \n + actionBar . setHomeButtonEnabled ( true ) ; \n + actionBar . setTitle ( R . string . trakt ) ; \n + setTitle ( R . string . trakt ) ; \n + \n mContainer = findViewById ( R . id . syncbuttons ) ; \n \n mSyncUnseenEpisodes = ( CheckBox ) findViewById ( R . id . checkBoxSyncUnseen ) ;", "msg_token": "Enable the home button for TraktSyncActivity also set the title"} {"diff": " public class ConsoleProcess implements ConsoleOutputEvent . HasHandlers , \n final SatelliteManager satelliteManager ) \n { \n server_ = server ; \n - cryptoServer_ = cryptoServer ; \n eventBus_ = eventBus ; \n \n eventBus_ . addHandler ( SessionInitEvent . TYPE , new SessionInitHandler ( ) \n public class ConsoleProcess implements ConsoleOutputEvent . HasHandlers , \n } \n \n private final ConsoleServerOperations server_ ; \n - private final CryptoServerOperations cryptoServer_ ; \n private final EventBus eventBus_ ; \n } \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "fix some warnings"} {"diff": " public class PhoneStatusBarView extends PanelBar { \n \n @ override \n public boolean onRequestSendAccessibilityEventInternal ( View child , AccessibilityEvent event ) { \n - if ( super . onRequestSendAccessibilityEvent ( child , event ) ) { \n + if ( super . onRequestSendAccessibilityEventInternal ( child , event ) ) { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Fix bad super call in PhoneStatusBarView accessibility"} {"diff": " public abstract class FrameworkSupportModelBase extends UserDataHolderBase imple \n multicaster . frameworkUnselected ( oldProvider ) ; \n } \n } \n + for ( FrameworkSupportInModuleProvider . FrameworkDependency dependency : provider . getDependenciesFrameworkIds ( ) ) { \n + if ( ! dependency . isOptional ( ) ) { \n + String id = dependency . getFrameworkId ( ) ; \n + setFrameworkComponentEnabled ( id , true ) ; \n + } \n + } \n } \n \n public void fireWizardStepUpdated ( ) {", "msg_token": "enable required dependencies"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ReadResponse \n if ( ! digestUpdater . compareAndSet ( this , curr , digest ) ) \n { \n assert digest . equals ( this . digest ) : \n - String . format ( STRING0 , digest . array ( ) , this . digest . array ( ) ) ; \n + String . format ( STRING0 , \n + Arrays . toString ( digest . array ( ) ) , \n + Arrays . toString ( this . digest . array ( ) ) ) ; \n } \n }", "msg_token": "Fix error message in ReadResponse"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - public class FeatureToggles extends SherlockActivity { \n + public class FeatureToggles extends SherlockActivity implements ActionBar . TabListener { \n private static final Random RANDOM = new Random ( ) ; \n \n private int items = NUMBER0 ; \n public class FeatureToggles extends SherlockActivity { \n newTab . setText ( STRING0 ) ; \n } \n } \n - \n + newTab . setTabListener ( FeatureToggles . this ) ; \n getSupportActionBar ( ) . addTab ( newTab ) ; \n } \n } ) ; \n public class FeatureToggles extends SherlockActivity { \n } \n } ) ; \n } \n + \n + @ override \n + public void onTabSelected ( Tab tab ) { } \n + \n + @ override \n + public void onTabUnselected ( Tab tab ) { } \n + \n + @ override \n + public void onTabReselected ( Tab tab ) { } \n }", "msg_token": "Add tab listener for feature toggles"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class Enclosed extends Suite { \n COMMENT", "msg_token": "Added abstract avoiding behavior to the javadoc"} {"diff": " public class BoxConsumer extends DefaultConsumer \n public BoxConsumer ( BoxEndpoint endpoint , Processor processor ) { \n super ( endpoint , processor ) ; \n \n - apiMethod = ApiConsumerHelper . findMethod ( endpoint , this , log ) ; \n + apiMethod = ApiConsumerHelper . findMethod ( endpoint , this ) ; \n \n properties = new HashMap < String , Object > ( ) ; \n properties . putAll ( endpoint . getEndpointProperties ( ) ) ;", "msg_token": "Fixed BoxConsumer compile issue"} {"diff": " public class FlashlightTile extends QSTile < QSTile . BooleanState > implements \n } \n \n @ override \n + public boolean isAvailable ( ) { \n + return mFlashlightController . hasFlashlight ( ) ; \n + } \n + \n + @ override \n protected void handleClick ( ) { \n if ( ActivityManager . isUserAMonkey ( ) ) { \n return ; \n public class FlashlightController { \n } \n } \n \n + public boolean hasFlashlight ( ) { \n + return mCameraId != null ; \n + } \n + \n public synchronized boolean isEnabled ( ) { \n return mFlashlightEnabled ; \n }", "msg_token": "Fix flashlight availability"} {"diff": " public abstract class BlobStoreIndexShardGateway extends AbstractIndexShardCompo \n if ( snapshot . newTranslogCreated ( ) ) { \n try { \n translogContainer . deleteBlob ( STRING0 + snapshot . lastTranslogId ( ) ) ; \n - } catch ( IOException e ) { \n + } catch ( Exception e ) { \n SINGLE \n } \n }", "msg_token": "fix ignored exception"} {"diff": " loop : \n dummyRoot . children = Collections . singletonList ( t ) ; SINGLE \n \n Collection < ParseTree > work = Collections . < ParseTree > singleton ( dummyRoot ) ; \n - work . add ( dummyRoot ) ; \n \n int i = NUMBER0 ; \n while ( i < elements . length ) {", "msg_token": "Fix XPath implementation throwing exception"} {"diff": " class CommentAdapter extends RecyclerView . Adapter < RecyclerView . ViewHolder > { \n return false ; \n } \n \n - final int maxImageWidth = ( int ) mContext . getResources ( ) . getDimension ( R . dimen . reader_comment_embedded_image_max_size ) ; SINGLE \n + final int maxImageWidth = ( int ) mContext . getResources ( ) . getDimension ( R . dimen . reader_comment_embedded_image_max_size ) ; \n \n WPHtml . ImageGetter imgGetter = new WPHtml . ImageGetter ( ) { \n @ override", "msg_token": "erased commented code"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PagesResponseWriter \n OutputStream output ) \n throws IOException , WebApplicationException \n { \n - PagesSerde . writePages ( blockEncodingSerde , new OutputStreamSliceOutput ( output ) , pages ) ; \n + try { \n + PagesSerde . writePages ( blockEncodingSerde , new OutputStreamSliceOutput ( output ) , pages ) ; \n + } \n + catch ( RuntimeIOException e ) { \n + SINGLE \n + SINGLE \n + if ( ! ( e . getCause ( ) instanceof EOFException ) ) { \n + throw e ; \n + } \n + } \n } \n }", "msg_token": "Ignore EOF exception while writing data to client"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class TWSpannableGridLayoutManager extends TWGridLayoutManager { \n - private static final String LOGTAG = STRING0 ; \n + private static final String LOGTAG = STRING1 ; \n \n private static final int DEFAULT_NUM_COLS = NUMBER0 ; \n private static final int DEFAULT_NUM_ROWS = NUMBER0 ;", "msg_token": "library Fix LOGTAG for TWSpannableGridLayoutManager"} {"diff": " public class Select < T > implements Iterable { \n return sql . toString ( ) ; \n } \n \n - String getWhereClause ( ) { \n + String getWhereCond ( ) { \n return whereClause ; \n }", "msg_token": "revert change on whereCond name"} {"diff": " public class JarBuilder implements Closeable { \n } \n copyJarFiles ( writer , jarEntries ) ; \n \n + SINGLE \n + closer . close ( ) ; \n + \n SINGLE \n target . delete ( ) ; \n org . apache . commons . io . FileUtils . moveFile ( tmp , target ) ;", "msg_token": "Close the open files before trying to move them"} {"diff": " public class ReaderActivity extends WPActionBarActivity \n Fragment fragment = ReaderPostDetailFragment . newInstance ( blogId , postId , mIsBlogDetail ) ; \n FragmentTransaction ft = getSupportFragmentManager ( ) . beginTransaction ( ) ; \n ft . setTransition ( FragmentTransaction . TRANSIT_FRAGMENT_FADE ) ; \n + ft . add ( R . id . fragment_container , fragment , tagForFragment ) ; \n \n SINGLE \n if ( hasListFragment ( ) ) { \n - ft . replace ( R . id . fragment_container , fragment , tagForFragment ) ; \n ft . addToBackStack ( tagForFragment ) ; \n - } else { \n - ft . add ( R . id . fragment_container , fragment , tagForFragment ) ; \n } \n \n ft . commit ( ) ;", "msg_token": "Fixed bug that caused scroll position to be lost in reader post list after returning from post detail"} {"diff": " public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class Observable < T > { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Changed javadoc regarding backpressure"} {"diff": " public class UriUtil { \n Cursor cursor = null ; \n try { \n cursor = contentResolver . query ( srcUri , null , null , null , null ) ; \n - if ( cursor != null ) { \n - cursor . moveToFirst ( ) ; \n + if ( cursor != null && cursor . moveToFirst ( ) ) { \n int idx = cursor . getColumnIndex ( MediaStore . Images . ImageColumns . DATA ) ; \n - result = cursor . getString ( idx ) ; \n + if ( idx != - NUMBER0 ) { \n + result = cursor . getString ( idx ) ; \n + } \n } \n } finally { \n if ( cursor != null ) {", "msg_token": "Include better error checks for uri to file path utility method"} {"diff": " public class ByteBuddyTest { \n . intercept ( FieldAccessor . ofBeanProperty ( ) ) ; \n } \n byteBuddy . make ( ) ; \n - if ( System . currentTimeMillis ( ) - time > baseline * NUMBER0 / NUMBER1 ) { \n + if ( System . currentTimeMillis ( ) - time > baseline * NUMBER0 / NUMBER2 ) { \n throw new AssertionError ( STRING0 ) ; \n } \n }", "msg_token": "Relaxed performance test condition"} {"diff": " public class MavenModuleImporter { \n \n String encoding = myMavenProject . getEncoding ( ) ; \n if ( encoding != null ) { \n - try { \n - EncodingProjectManager . getInstance ( myModule . getProject ( ) ) . setEncoding ( myMavenProject . getDirectoryFile ( ) , Charset . forName ( encoding ) ) ; \n - } \n - catch ( UnsupportedCharsetException ignored ) { COMMENT } \n - catch ( IllegalCharsetNameException ignored ) { COMMENT } \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n } \n }", "msg_token": "Temporary comment bad code"} {"diff": " public class LifeLine { \n @ override \n public void run ( ) { \n try { \n - serverSocket = new ServerSocket ( port ) ; \n + serverSocket = new ServerSocket ( ) ; \n + serverSocket . bind ( new InetSocketAddress ( InetAddress . getLocalHost ( ) , port ) ) ; \n } catch ( IOException e ) { \n System . err . println ( STRING0 + port ) ; \n notifyListener ( ExitCode . CANNOT_BIND_TO_LIFELINE_PORT ) ;", "msg_token": "bind lifeline only to localhost"} {"diff": " public abstract class ConfigElement { \n while ( ! element . isRoot ( ) && ! element . getNamespace ( ) . isRoot ( ) ) { \n ConfigNamespace parent = element . getNamespace ( ) ; \n if ( parent . isUmbrella ( ) ) { \n - Preconditions . checkArgument ( umbrellaPos >= NUMBER0 , STRING0 , element ) ; \n + Preconditions . checkArgument ( umbrellaPos >= NUMBER0 , STRING1 , element ) ; \n String umbrellaName = umbrellaElements [ umbrellaPos ] ; \n Preconditions . checkArgument ( ! StringUtils . containsAny ( umbrellaName , ILLEGAL_CHARS ) , STRING2 , umbrellaName ) ; \n path = umbrellaName + SEPARATOR + path ;", "msg_token": "Fix precondition string in ConfigElement"} {"diff": " public class CachingBuildEngine implements BuildEngine { \n successType = Optional . of ( success ) ; \n uploadToCache ( success ) ; \n \n - SINGLE \n - try { \n - outputSize = Optional . of ( buildInfoRecorder . getOutputSize ( ) ) ; \n - outputHash = Optional . of ( buildInfoRecorder . getOutputHash ( fileHashCache ) ) ; \n - } catch ( IOException e ) { \n - context . getEventBus ( ) . post ( \n - ThrowableConsoleEvent . create ( \n - e , \n - STRING0 , \n - rule ) ) ; \n + SINGLE \n + if ( success == BuildRuleSuccessType . BUILT_LOCALLY ) { \n + try { \n + outputSize = Optional . of ( buildInfoRecorder . getOutputSize ( ) ) ; \n + outputHash = Optional . of ( buildInfoRecorder . getOutputHash ( fileHashCache ) ) ; \n + } catch ( IOException e ) { \n + context . getEventBus ( ) . post ( \n + ThrowableConsoleEvent . create ( \n + e , \n + STRING0 , \n + rule ) ) ; \n + } \n } \n }", "msg_token": "only get output size hash when building locally"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ viewdebug.exportedproperty ( deepExport = true , prefix = STRING0 ) \n public ViewGroup . LayoutParams getLayoutParams ( ) { \n public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n public void setLayoutParams ( ViewGroup . LayoutParams params ) { \n if ( params == null ) { \n - throw new NullPointerException ( STRING1 ) ; \n + throw new NullPointerException ( STRING2 ) ; \n } \n mLayoutParams = params ; \n requestLayout ( ) ;", "msg_token": "Add more info to View getLayoutParams"} {"diff": " import NAMESPACE ; \n \n public class DefaultPlatformContainer extends DefaultPolymorphicDomainObjectContainer < Platform > implements PlatformContainer { \n \n - private List < Platform > searchOrder = new ArrayList < Platform > ( ) ; \n - \n public DefaultPlatformContainer ( Instantiator instantiator ) { \n super ( Platform . class , instantiator ) ; \n - whenObjectAdded ( new Action < Platform > ( ) { \n - public void execute ( Platform platform ) { \n - searchOrder . add ( platform ) ; \n - } \n - } ) ; \n - whenObjectRemoved ( new Action < Platform > ( ) { \n - public void execute ( Platform platform ) { \n - searchOrder . remove ( platform ) ; \n - } \n - } ) ; \n } \n \n public < T extends Platform > List < T > chooseFromTargets ( Class < T > type , List < String > targets ) {", "msg_token": "Removed unused code"} {"diff": " class TesterOkHttpChannelBuilder { \n public static ManagedChannel build ( String host , int port , @ nullable String serverHostOverride , \n boolean useTls , @ nullable InputStream testCa , @ nullable String androidSocketFactoryTls ) { \n ManagedChannelBuilder < ? > channelBuilder = ManagedChannelBuilder . forAddress ( host , port ) ; \n + ( ( OkHttpChannelBuilder ) channelBuilder ) . maxMessageSize ( NUMBER0 * NUMBER1 * NUMBER1 ) ; \n if ( serverHostOverride != null ) { \n SINGLE \n channelBuilder . overrideAuthority ( serverHostOverride ) ; \n public class TestServiceServer { \n } \n server = NettyServerBuilder . forPort ( port ) \n . sslContext ( sslContext ) \n + . maxMessageSize ( NUMBER0 * NUMBER1 * NUMBER1 ) \n . addService ( ServerInterceptors . intercept ( \n new TestServiceImpl ( executor ) , \n TestUtils . echoRequestHeadersInterceptor ( Util . METADATA_KEY ) ) )", "msg_token": "Bump maxMessageSize for Android testing"} {"diff": " public class StandardConvertersTest { \n } \n \n private Date getDateToTest ( ) { \n - Calendar calendar = Calendar . getInstance ( ) ; \n + Calendar calendar = Calendar . getInstance ( Locale . US ) ; \n calendar . set ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER3 , NUMBER3 ) ; \n calendar . set ( Calendar . MILLISECOND , NUMBER3 ) ; \n return calendar . getTime ( ) ;", "msg_token": "Always explicitly use a Locale"} {"diff": " public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RepositoryHandler extends ArtifactRepositoryContainer { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added autoTest to some examples"} {"diff": " class SuperColumnSerializer implements IColumnSerializer \n ColumnSerializer serializer = Column . serializer ( ) ; \n ColumnSortedMap preSortedMap = new ColumnSortedMap ( comparator , serializer , dis , interner , size , fromRemote , expireBefore ) ; \n SuperColumn superColumn = new SuperColumn ( name , new ConcurrentSkipListMap < ByteBuffer , IColumn > ( preSortedMap ) ) ; \n - if ( localDeleteTime != Integer . MIN_VALUE && localDeleteTime <= NUMBER0 ) \n - { \n - throw new IOException ( STRING0 + localDeleteTime ) ; \n - } \n superColumn . markForDeleteAt ( localDeleteTime , markedForDeleteAt ) ; \n return superColumn ; \n }", "msg_token": "remove duplicated code"} {"diff": " public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter { \n holder . downloadStatus . setVisibility ( View . INVISIBLE ) ; \n holder . lenSize . setVisibility ( View . INVISIBLE ) ; \n } \n - \n + \n holder . feedImage . setTag ( item . getImageLoaderCacheKey ( ) ) ; \n ImageLoader . getInstance ( ) . loadThumbnailBitmap ( \n item , \n public class ExternalEpisodesListAdapter extends BaseExpandableListAdapter { \n \n @ override \n public int getGroupCount ( ) { \n - return NUMBER0 ; \n + SINGLE \n + if ( manager . getUnreadItemsSize ( true ) > NUMBER1 ) { \n + return NUMBER0 ; \n + } else { \n + return NUMBER2 ; \n + } \n } \n \n @ override", "msg_token": "Hide waiting list if empty"} {"diff": " import static NAMESPACE ; \n COMMENT \n COMMENT \n @ elasticsearchintegrationtest.suitescopetest \n - @ testlogging ( STRING0 ) \n + @ testlogging ( STRING1 ) \n public class GeoBoundsTests extends ElasticsearchIntegrationTest { \n \n private static final String SINGLE_VALUED_FIELD_NAME = STRING2 ;", "msg_token": "added trace action search type to GeoBoundsTests"} {"diff": " public final class RetryHandlingBlockWorkerClient extends AbstractClient \n public synchronized boolean requestSpace ( final long blockId , final long requestBytes ) \n throws IOException { \n try { \n - boolean requested = retryRPC ( new RpcCallableThrowsAlluxioTException < Boolean > ( ) { \n + boolean success = retryRPC ( new RpcCallableThrowsAlluxioTException < Boolean > ( ) { \n @ override \n public Boolean call ( ) throws AlluxioTException , TException { \n return mClient . requestSpace ( mSessionId , blockId , requestBytes ) ; \n } \n } ) ; \n - if ( ! requested ) { \n + if ( ! success ) { \n throw new IOException ( ExceptionMessage . CANNOT_REQUEST_SPACE \n . getMessageWithUrl ( RuntimeConstants . ALLUXIO_DEBUG_DOCS_URL , mAddress , blockId ) ) ; \n }", "msg_token": "SMALLFIX Fix comments"} {"diff": " public enum TaskFilePropertyPathSensitivity { \n RELATIVE_WITH_FILE_NAMES { \n @ override \n public NormalizedFileSnapshot getNormalizedSnapshot ( FileTreeElement fileDetails , IncrementalFileSnapshot snapshot , StringInterner stringInterner ) { \n + SINGLE \n + if ( fileDetails instanceof SingletonFileTree . SingletonFileVisitDetails && fileDetails . isDirectory ( ) ) { \n + return new IgnoredPathFileSnapshot ( snapshot ) ; \n + } \n return getRelativeSnapshot ( fileDetails , snapshot , stringInterner ) ; \n } \n } ,", "msg_token": "do not consider the names of root directories when using PathSensitivity RELATIVE_WITH_FILE_NAMES"} {"diff": " public class RemoteImageLoader { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class RemoteImageLoader { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed wrong javadoc"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class Java extends AbstractLanguage { \n return SUFFIXES ; \n } \n \n + public static boolean isJavaFile ( java . io . File file ) { \n + String suffix = StringUtils . substringAfterLast ( file . getName ( ) , STRING0 ) ; \n + return ArrayUtils . contains ( SUFFIXES , suffix ) ; \n + } \n }", "msg_token": "add method Java isJavaFile java io File"} {"diff": " public class GraphPath { \n } \n TraverseOptions options = vertices . lastElement ( ) . options ; \n ListIterator < SPTEdge > iterator = edges . listIterator ( vertices . size ( ) - NUMBER0 ) ; \n + SPTEdge firstEdge = edges . get ( NUMBER1 ) ; \n while ( iterator . hasPrevious ( ) ) { \n SPTEdge edge = iterator . previous ( ) ; \n + if ( edge == firstEdge ) { \n + state . lastEdgeWasStreet = false ; \n + } \n TraverseResult result = edge . payload . traverseBack ( state , options ) ; \n assert ( result != null ) ; \n state = result . state ;", "msg_token": "handle cases where bike walking starts mid block"} {"diff": " public class DozeService extends DreamService { \n } \n } \n \n - requestPulse ( mPulseReason ) ; \n mRegistered = false ; \n + requestPulse ( mPulseReason ) ; \n updateListener ( ) ; SINGLE \n \n SINGLE", "msg_token": "Fix trigger sensor lifecycle"} {"diff": " public class MimeUtility { \n } \n text . append ( FILENAME_PREFIX ) ; \n text . append ( filename ) ; \n + text . append ( FILENAME_SUFFIX ) ; \n text . append ( TEXT_DIVIDER . substring ( NUMBER0 , TEXT_DIVIDER_LENGTH - \n FILENAME_PREFIX_LENGTH - filename . length ( ) - FILENAME_SUFFIX_LENGTH ) ) ; \n - text . append ( STRING0 ) ; \n } else { \n text . append ( TEXT_DIVIDER ) ; \n }", "msg_token": "Fixed divider before text part with filename"} {"diff": " public abstract class HardwareRenderer { \n if ( canDraw ( ) ) { \n if ( ! hasDirtyRegions ( ) ) { \n dirty = null ; \n + } else if ( dirty != null ) { \n + dirty . intersect ( NUMBER0 , NUMBER0 , mWidth , mHeight ) ; \n } \n attachInfo . mIgnoreDirtyState = true ; \n attachInfo . mDrawingTime = SystemClock . uptimeMillis ( ) ;", "msg_token": "Don t allow screen invalidations to go outside bounds of screen"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class KotlinWithGradleConfigurator implements KotlinProjectConfi \n \n @ override \n public boolean isConfigured ( @ notnull Module module ) { \n + if ( KotlinFrameworkDetector . isJavaKotlinModule ( module ) ) { \n + return true ; \n + } \n + \n GroovyFile moduleGradleFile = getBuildGradleFile ( module . getProject ( ) , getDefaultPathToBuildGradleFile ( module ) ) ; \n if ( moduleGradleFile != null && isFileConfigured ( moduleGradleFile ) ) { \n return true ;", "msg_token": "Check if gradle module has kotlin runtime classes in module classpath"} {"diff": " public class RequestLoggingFilter implements Filter { \n } \n \n public Response filter ( FilterableRequestSpecification requestSpec , FilterableResponseSpecification responseSpec , FilterContext ctx ) { \n - RequestPrinter . print ( requestSpec , ctx . getRequestMethod ( ) . toString ( ) , ctx . getRequestURI ( ) , logDetail , stream , shouldPrettyPrint ) ; \n + RequestPrinter . print ( requestSpec , requestSpec . getMethod ( ) . toString ( ) , requestSpec . getURI ( ) , logDetail , stream , shouldPrettyPrint ) ; \n return ctx . next ( requestSpec , responseSpec ) ; \n }", "msg_token": "No longer using deprecated methods of FilterContext"} {"diff": " import NAMESPACE ; \n public class PythonSdkPathCache extends PythonPathCache implements Disposable { \n private static final Key < Map < Project , PythonSdkPathCache > > KEY = Key . create ( STRING0 ) ; \n \n - public static PythonSdkPathCache getInstance ( Project project , Sdk sdk ) { \n + public static PythonSdkPathCache getInstance ( @ notnull Project project , @ notnull Sdk sdk ) { \n synchronized ( KEY ) { \n Map < Project , PythonSdkPathCache > cacheMap = sdk . getUserData ( KEY ) ; \n if ( cacheMap == null ) { \n public class PythonSdkPathCache extends PythonPathCache implements Disposable { \n private final Sdk mySdk ; \n private final AtomicReference < PyBuiltinCache > myBuiltins = new AtomicReference < PyBuiltinCache > ( ) ; \n \n - public PythonSdkPathCache ( final Project project , final Sdk sdk ) { \n + public PythonSdkPathCache ( @ notnull final Project project , @ notnull final Sdk sdk ) { \n myProject = project ; \n mySdk = sdk ; \n sdk . getRootProvider ( ) . addRootSetChangedListener ( new RootProvider . RootSetChangedListener ( ) {", "msg_token": "Package requirements and skeletons tests should use fixture from test task as it is recreated every run"} {"diff": " class LocalActorRegistry implements co . paralleluniverse . actors . spi . ActorRegistry \n } \n \n @ override \n - public < Message > ActorRef < Message > tryGetActor ( final String name ) { \n + public < Message > ActorRef < Message > tryGetActor ( final String name ) throws SuspendExecution { \n ActorRef < ? > actor = registeredActors . get ( name ) ; \n if ( actor == null ) { \n lock . lock ( ) ;", "msg_token": "Add missing suspendable"} {"diff": " public class ApplicationImpl extends ComponentManagerImpl implements Application \n LOG . error ( t ) ; \n } \n finally { \n - ReflectionUtil . resetThreadLocals ( ) ; \n + SINGLE \n Thread . interrupted ( ) ; SINGLE \n } \n } \n public class ApplicationImpl extends ComponentManagerImpl implements Application \n LOG . error ( t ) ; \n } \n finally { \n - ReflectionUtil . resetThreadLocals ( ) ; \n + SINGLE \n Thread . interrupted ( ) ; SINGLE \n } \n return null ;", "msg_token": "r maxim mossienko Rollback re setting thread locals for release"} {"diff": " b2ContactFilter defaultFilter ; \n COMMENT \n void destroyFixture ( Body body , Fixture fixture ) { \n jniDestroyFixture ( addr , body . addr , fixture . addr ) ; \n - fixture . setUserData ( null ) ; \n } \n \n private native void jniDestroyFixture ( long addr , long bodyAddr , long fixtureAddr ) ; / *", "msg_token": "removed duplicate fixture setUserData"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MiniGraphUI { \n } \n double lat2 = graph . getLatitude ( nodeId ) ; \n double lon2 = graph . getLongitude ( nodeId ) ; \n - if ( lat2 <= NUMBER0 || lon2 <= NUMBER0 ) \n - logger . info ( STRING0 + nodeId + STRING1 + iter . distance ( ) + STRING1 + lat2 + STRING2 + lon2 ) ; \n mg . plotEdge ( g2 , lat , lon , lat2 , lon2 ) ; \n } \n }", "msg_token": "avoid error for negative lat lon"} {"diff": " public class ConstructorInjectionTest { \n \n @ test \n public void should_do_the_trick_of_instantiating ( ) throws Exception { \n - given ( resolver . resolveTypeInstances ( Matchers . < Class < ? > [ ] > anyVararg ( ) ) ) . willReturn ( new Object [ ] { observer } ) ; \n - \n boolean result = underTest . process ( field ( STRING0 ) , this , newSetOf ( observer ) ) ; \n \n assertTrue ( result ) ;", "msg_token": "Removed unused stubbing"} {"diff": " public class WebView extends AbsoluteLayout \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebView extends AbsoluteLayout \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Clarify documentation for WebView loadData"} {"diff": " public class LaterInvocator { \n invokeLater ( runnable1 , modalityState ) ; \n semaphore . waitFor ( ) ; \n if ( ! exception . isNull ( ) ) { \n - Throwable throwable = exception . get ( ) ; \n - if ( throwable instanceof RuntimeException ) throw ( RuntimeException ) throwable ; \n - throw new RuntimeException ( throwable ) ; \n + SINGLE \n + SINGLE \n + throw new RuntimeException ( exception . get ( ) ) ; \n } \n }", "msg_token": "do not wrap RuntimeException"} {"diff": " public class SenderChannel \n receiverWindow ) ; \n activeFlowControlState . updateRightEdgeOfWindow ( rightEdge ) ; \n \n - if ( flowControlTimer . isActive ( ) ) \n - { \n - flowControlTimer . cancel ( ) ; \n - } \n + flowControlTimer . cancel ( ) ; \n } \n \n public void onFlowControlTimer ( ) \n public class TimerWheel \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public boolean cancel ( ) \n { \n - remove ( ) ; \n - state = TimerState . CANCELLED ; \n + if ( isActive ( ) ) \n + { \n + remove ( ) ; \n + state = TimerState . CANCELLED ; \n + } \n return true ; \n }", "msg_token": "make cancelling a timer idempotent"} {"diff": " public class CustomAnnotationTest { \n @ retention ( RetentionPolicy . RUNTIME ) \n @ documented \n public static @ interface MyAnnotation { \n - String value ( ) default STRING0 ; \n + String value ( ) default STRING1 ; \n } \n \n @ myannotation \n public class CustomAnnotationTest { \n @ test \n public void testGet ( ) throws IOException , ServletException { \n \n - AtmosphereRequest request = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING0 ) . method ( STRING2 ) . build ( ) ; \n + AtmosphereRequest request = new AtmosphereRequest . Builder ( ) . pathInfo ( STRING1 ) . method ( STRING2 ) . build ( ) ; \n framework . doCometSupport ( request , AtmosphereResponse . newInstance ( ) ) ; \n r . get ( ) . resume ( ) ;", "msg_token": "Change the path to prevent tests from faling each other"} {"diff": " public class MediaPlayerPerformance extends ActivityInstrumentationTestCase2 < Med \n } \n mMemWriter = new BufferedWriter ( new FileWriter \n ( new File ( MEDIA_MEMORY_OUTPUT ) , true ) ) ; \n + mMemWriter . write ( this . getName ( ) + STRING0 ) ; \n } \n \n @ override", "msg_token": "Append the test case name in the beginning"} {"diff": " public class Parser { \n \n private static final String PYTHON2_EXE = STRING0 ; \n private static final String PYTHON3_EXE = STRING1 ; \n - private static final int TIMEOUT = NUMBER0 ; \n + private static final int TIMEOUT = NUMBER1 ; \n \n Process python2Process ; \n Process python3Process ;", "msg_token": "increase allowed time for parser"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n @ elasticsearchintegrationtest.clusterscope ( scope = ElasticsearchIntegrationTest . Scope . SUITE ) \n public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest { \n \n + @ override \n + protected Settings nodeSettings ( int nodeOrdinal ) { \n + return ImmutableSettings . builder ( ) \n + . put ( super . nodeSettings ( nodeOrdinal ) ) \n + . put ( STRING0 + PluginsService . LOAD_PLUGIN_FROM_CLASSPATH , true ) \n + . build ( ) ; \n + } \n + \n @ test \n public void testKuromojiAnalyzer ( ) throws ExecutionException , InterruptedException { \n AnalyzeResponse response = client ( ) . admin ( ) . indices ( )", "msg_token": "Fix integration tests"} {"diff": " import NAMESPACE ; \n \n public class RulerControl extends MapControls { \n \n + SINGLE \n + SINGLE \n + SINGLE \n + \n ShadowText cacheRulerText = null ; \n double cacheRulerZoom = NUMBER0 ; \n double cacheRulerTileX = NUMBER0 ; \n public class RulerControl extends MapControls { \n } \n \n if ( cacheRulerText != null ) { \n + boolean nightMode = drawSettings == null ? false : drawSettings . isNightMode ( ) ; \n Rect bounds = rulerDrawable . getBounds ( ) ; \n int bottom = ( int ) ( view . getHeight ( ) - vmargin ) ; \n if ( bounds . bottom != bottom ) { \n public class RulerControl extends MapControls { \n rulerDrawable . invalidateSelf ( ) ; \n } \n rulerDrawable . draw ( canvas ) ; \n + rulerTextPaint . setShadowColor ( nightMode ? NUMBER1 : Color . WHITE ) ; \n cacheRulerText . draw ( canvas , bounds . left + ( bounds . width ( ) - cacheRulerTextLen ) / NUMBER2 , bounds . bottom - NUMBER3 * scaleCoefficient , \n rulerTextPaint , shadowColor ) ; \n }", "msg_token": "implement consistent ruler label night appearance"} {"diff": " public class PhoneNumberUtils \n return sb . toString ( ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static String replaceUnicodeDigits ( String number ) { \n + StringBuilder normalizedDigits = new StringBuilder ( number . length ( ) ) ; \n + for ( char c : number . toCharArray ( ) ) { \n + int digit = Character . digit ( c , NUMBER0 ) ; \n + if ( digit != - NUMBER1 ) { \n + normalizedDigits . append ( digit ) ; \n + } else { \n + normalizedDigits . append ( c ) ; \n + } \n + } \n + return normalizedDigits . toString ( ) ; \n + } \n + \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Added API to replace unicoded digits to ascii numbers"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class RecentProjectsManagerBase implements PersistentStateCompon \n myState . lastPath = getProjectPath ( openProjects [ openProjects . length - NUMBER0 ] ) ; \n myState . openPaths = new ArrayList < String > ( ) ; \n for ( Project openProject : openProjects ) { \n - myState . openPaths . add ( getProjectPath ( openProject ) ) ; \n + ContainerUtil . addIfNotNull ( myState . openPaths , getProjectPath ( openProject ) ) ; \n } \n } \n } \n public abstract class RecentProjectsManagerBase implements PersistentStateCompon \n private class MyProjectManagerListener extends ProjectManagerAdapter { \n public void projectOpened ( final Project project ) { \n String path = getProjectPath ( project ) ; \n - markPathRecent ( path ) ; \n + if ( path != null ) { \n + markPathRecent ( path ) ; \n + } \n } \n \n public void projectClosed ( final Project project ) {", "msg_token": "Could not save application settings"} {"diff": " public abstract class DiskJournalCache implements InputCache , OutputCache { \n ) ; \n this . serializer = serializer ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + LOG . debug ( STRING0 , getDbFileName ( ) ) ; \n + db . commit ( ) ; \n + LOG . debug ( STRING1 , getDbFileName ( ) ) ; \n + db . compact ( ) ; \n + \n this . commitService . scheduleWithFixedDelay ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "Commit and compact the database on startup"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( HazelcastSerialClassRunner . class ) \n @ category ( QuickTest . class ) \n + @ ignore \n public class ClientMapPartitionLostListenerTest { \n \n @ after \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n @ runwith ( HazelcastSerialClassRunner . class ) \n @ category ( QuickTest . class ) \n + @ ignore \n public class ClientPartitionLostListenerTest { \n \n @ after", "msg_token": "Temporarily ignore new client tests"} {"diff": " public class AioSocketChannel extends AbstractAioChannel implements SocketChanne \n } \n \n flushing = true ; \n + \n + SINGLE \n + SINGLE \n + SINGLE \n + buf . discardReadBytes ( ) ; \n + \n if ( buf . readable ( ) ) { \n javaChannel ( ) . write ( buf . nioBuffer ( ) , this , WRITE_HANDLER ) ; \n } else { \n - buf . discardReadBytes ( ) ; \n notifyFlushFutures ( ) ; \n flushing = false ; \n }", "msg_token": "Fix regression see comment"} {"diff": " public class SkeletonControl extends AbstractControl implements Cloneable , JmeCl \n SINGLE \n Set < Material > newMaterials = new HashSet < Material > ( ) ; \n for ( Material m : this . materials ) { \n - newMaterials . add ( cloner . clone ( m ) ) ; \n + Material mClone = cloner . clone ( m ) ; \n + newMaterials . add ( mClone ) ; \n + if ( mClone != m ) { \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + MatParam boneMatrices = mClone . getParam ( STRING0 ) ; \n + \n + SINGLE \n + SINGLE \n + if ( boneMatrices != null ) { \n + mClone . clearParam ( STRING0 ) ; \n + } \n + } \n } \n this . materials = newMaterials ; \n }", "msg_token": "Fixed cloning to not confuse the hardware skinning safety check"} {"diff": " \n - class XXX { \n - void f ( ) { \n - new \n - } \n - } \n class C2 { \n public < caret > C2 ( int i ) { \n } \n class XXX { \n void f ( ) { \n new C2 ( < caret > ) \n } \n - } \n - class C2 { \n - public C2 ( int i ) { \n - } \n - } \n + } \n class XXX { \n void f ( ) { \n new < caret > \n } \n - } \n - class C2 { \n - public C2 ( int i ) { \n - } \n - } \n + }", "msg_token": "avoid same class to be present simultaneously in the same package"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class OIntentMassiveInsert implements OIntent { \n iDatabase . getDatabaseOwner ( ) . getLevel1Cache ( ) . setEnable ( previousLevel1CacheEnabled ) ; \n iDatabase . getDatabaseOwner ( ) . getLevel2Cache ( ) . setEnable ( previousLevel2CacheEnabled ) ; \n \n - final ODatabaseComplex < ? > ownerDb = iDatabase . getDatabaseOwner ( ) ; \n + ODatabaseComplex < ? > ownerDb = iDatabase . getDatabaseOwner ( ) ; \n \n if ( ownerDb instanceof ODatabaseRecord ) \n ( ( ODatabaseRecord ) ownerDb ) . setRetainRecords ( previousRetainRecords ) ; \n \n - if ( ownerDb instanceof ODatabaseObject ) \n + while ( ownerDb . getDatabaseOwner ( ) != ownerDb ) \n + ownerDb = ownerDb . getDatabaseOwner ( ) ; \n + \n + if ( ownerDb instanceof ODatabasePojoAbstract ) \n ( ( ODatabasePojoAbstract < ? > ) ownerDb ) . setRetainObjects ( previousRetainObjects ) ; \n } \n }", "msg_token": "now the Massive Insert intent reset the old settings"} {"diff": " public class NewVectorTest extends TestUtil { \n assertEquals ( NUMBER0 , vec . at8 ( NUMBER0 ) ) ; SINGLE \n c2 . close ( NUMBER1 , null ) ; SINGLE \n Chunk c3 = vec . elem2BV ( NUMBER1 ) ; SINGLE \n - assertTrue ( STRING0 + c3 . getClass ( ) + STRING1 , c3 instanceof C1Chunk ) ; \n + assertTrue ( STRING0 + c3 . getClass ( ) + STRING2 , c3 instanceof C1NChunk ) ; \n \n c3 . set8 ( NUMBER2 , NUMBER2 ) ; \n assertEquals ( NUMBER2 , vec . at8 ( NUMBER2 ) ) ; SINGLE \n c3 . close ( NUMBER1 , null ) ; SINGLE \n Chunk c4 = vec . elem2BV ( NUMBER1 ) ; SINGLE \n - assertTrue ( STRING0 + c4 . getClass ( ) + STRING1 , c4 instanceof C1Chunk ) ; \n + assertTrue ( STRING0 + c4 . getClass ( ) + STRING2 , c4 instanceof C1NChunk ) ; \n \n UKV . remove ( av . _key ) ; \n }", "msg_token": "Fix test for new C1NChunk compression"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix wrong import"} {"diff": " \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Added javadoc for View focusable attribute"} {"diff": " public class ObservableCollapserPerfTest { \n @ param ( { STRING0 , STRING1 , STRING2 , STRING3 } ) \n int numToCollapse ; \n \n - @ param ( { STRING0 } ) SINGLE \n + @ param ( { STRING0 , STRING1 , STRING2 } ) \n int numResponsesPerArg ; \n \n @ param ( { STRING0 , STRING3 , STRING4 } )", "msg_token": "Modify ObservableCollapser JMH test to allow multiple response per argument"} {"diff": " public final class SecurityClassLoad { \n \n private final static void loadUtilPackage ( ClassLoader loader ) \n throws Exception { \n - String basePackage = STRING0 ; \n - loader . loadClass ( basePackage + STRING1 ) ; \n - loader . loadClass ( basePackage + STRING2 ) ; \n + String basePackage = STRING3 ; \n + loader . loadClass ( basePackage + STRING4 ) ; \n + loader . loadClass ( basePackage + STRING5 ) ; \n } \n \n \n public final class SecurityClassLoad { \n loader . loadClass ( basePackage + STRING6 ) ; \n loader . loadClass \n ( basePackage + STRING7 ) ; \n + SINGLE \n + Class < ? > clazz = loader . loadClass ( \n + basePackage + STRING8 ) ; \n + clazz . newInstance ( ) ; \n } \n }", "msg_token": "Fix some TCK failures with the BIO AJP connector when using a security manager"} {"diff": " public class AuthCmdFactory \n if ( authRequest != null ) \n { \n SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n + aimConnection . getSsiService ( ) . sendSnac ( \n + new AuthFutureCmd ( \n + uinToAskForAuth , \n + authRequest . getReason ( ) ) ) ; \n \n Vector buddiesToBeAdded = new Vector ( ) ;", "msg_token": "sending future authorization"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import from BootstrapForTesting"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ConsolePreparableReporter implements PreparableReporter < ConsoleRepo \n LOG . debug ( STRING0 ) ; \n ConsoleReporter . Builder builder = ConsoleReporter . forRegistry ( metricsRegistry ) ; \n \n - PrintStream stream = System . out ; \n - if ( stream != null ) { \n - builder . outputTo ( stream ) ; \n - } \n - \n + builder . outputTo ( System . out ) ; \n Locale locale = MetricsUtils . getMetricsReporterLocale ( stormConf ) ; \n if ( locale != null ) { \n builder . formattedFor ( locale ) ;", "msg_token": "Removing unnecessary null check on STDOUT stream"} {"diff": " public abstract class Packet implements TopLevelStreamElement { \n return removeExtension ( extension . getElementName ( ) , extension . getNamespace ( ) ) ; \n } \n \n + @ override \n + SINGLE \n + public String toString ( ) { \n + return toXML ( ) . toString ( ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add Packet toString"} {"diff": " public class DesktopImportControllerUI implements ImportControllerUI { \n dd2 . setValid ( ! ( ( ValidationPanel ) e . getSource ( ) ) . isProblem ( ) ) ; \n } \n } ) ; \n + dd2 . setValid ( ! vp . isProblem ( ) ) ; \n } \n Object result = DialogDisplayer . getDefault ( ) . notify ( dd2 ) ; \n if ( result . equals ( NotifyDescriptor . CANCEL_OPTION ) || result . equals ( NotifyDescriptor . CLOSED_OPTION ) ) {", "msg_token": "Debug validation of Processor UI panels"} {"diff": " public class ContextConfig \n protected InputSource getHostWebXmlSource ( ) { \n String resourceName = getHostConfigPath ( Constants . HostWebXml ) ; \n \n + SINGLE \n + File configBase = getConfigBase ( ) ; \n + if ( configBase == null ) \n + return null ; \n + \n String basePath = null ; \n try { \n - basePath = getConfigBase ( ) . getCanonicalPath ( ) ; \n + basePath = configBase . getCanonicalPath ( ) ; \n } catch ( IOException e ) { \n log . error ( sm . getString ( STRING0 ) , e ) ; \n return null ;", "msg_token": "Fix possible NPE when embedded"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class ExternalClasspathClassLoader extends URLClassLoader { \n + public ExternalClasspathClassLoader ( ClassLoader parent ) { \n + super ( parseUrls ( ) , parent ) ; \n + } \n + \n public ExternalClasspathClassLoader ( ) { \n super ( parseUrls ( ) ) ; \n }", "msg_token": "Missing constructor required for system class loader"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public class PluginModuleType extends ModuleType < PluginModuleBuilder > { \n - private static final Icon PLUGIN_MODULE_ICON = IconLoader . getIcon ( STRING0 ) ; \n + private static final Icon PLUGIN_MODULE_ICON = IconLoader . getIcon ( STRING1 ) ; \n private static final Icon PLUGIN_MODULE_NODE_ICON = IconLoader . getIcon ( STRING2 ) ; \n private static final Icon ADD_PLUGIN_MODULE_ICON = IconLoader . getIcon ( STRING3 ) ; \n private static PluginModuleType ourInstance = new PluginModuleType ( ) ;", "msg_token": "correct sized icon for plugin module type"} {"diff": " public class ShortcutManager implements NativePreviewHandler , \n { \n keyBuffer_ . clear ( ) ; \n \n - SINGLE \n - SINGLE \n if ( XTermWidget . isXTerm ( Element . as ( event . getEventTarget ( ) ) ) && \n ( binding . getContext ( ) != AppCommand . Context . Workbench && \n - binding . getContext ( ) != AppCommand . Context . Addin ) ) \n + binding . getContext ( ) != AppCommand . Context . Addin && \n + binding . getContext ( ) != AppCommand . Context . PackageDevelopment ) ) \n { \n + SINGLE \n return false ; \n } \n event . stopPropagation ( ) ;", "msg_token": "add PackageDevelopment context to list of commands whose keyboard shortcuts are processed even if focus is in terminal"} {"diff": " public class PeopleTable { \n } \n \n public static List < Person > getFollowers ( int localTableBlogId ) { \n - String [ ] args = { Integer . toString ( localTableBlogId ) , Integer . toString ( NUMBER0 ) } ; \n - String where = STRING0 ; \n + String [ ] args = { Integer . toString ( localTableBlogId ) , Integer . toString ( NUMBER0 ) , Integer . toString ( NUMBER1 ) } ; \n + String where = STRING1 ; \n return PeopleTable . getPeople ( localTableBlogId , where , args ) ; \n }", "msg_token": "Don t include email followers in getFollowers query"} {"diff": " public class CookieUtil \n { \n String name = nameValuePair . substring ( NUMBER0 , index ) . trim ( ) ; \n String value = stripOffSurrounding ( nameValuePair . substring ( index + NUMBER1 ) . trim ( ) ) ; \n - if ( nameValuePair . charAt ( NUMBER0 ) != STRING0 ) \n + if ( name . charAt ( NUMBER0 ) != STRING0 ) \n { \n if ( cookieToBeAdd != null ) \n { \n public class CookieUtil \n } \n return s ; \n } \n - } \n + } \n public class TestCookieUtil \n public void testInvalidCookieFromClient ( ) \n { \n cookieA . setComment ( STRING1 ) ; \n - List < String > encodeStrs = Collections . singletonList ( STRING2 ) ; \n + List < String > encodeStrs = Collections . singletonList ( STRING3 ) ; \n List < HttpCookie > cookieList = CookieUtil . decodeCookies ( encodeStrs ) ; \n \n Assert . assertEquals ( NUMBER0 , cookieList . size ( ) ) ;", "msg_token": "Fix a bug when detecting cookies name with sign at the beginning"} {"diff": " public class Requirements { \n Map < String , String > mapService = new HashMap < String , String > ( ) ; \n String [ ] services = ( String [ ] ) listServices . invoke ( null ) ; \n if ( services != null ) \n - for ( String service : services ) { \n - IBinder binder = ( IBinder ) getService . invoke ( null , service ) ; \n - String descriptor = ( binder == null ? null : binder . getInterfaceDescriptor ( ) ) ; \n - mapService . put ( service , descriptor ) ; \n - } \n + for ( String service : services ) \n + if ( service != null ) { \n + IBinder binder = ( IBinder ) getService . invoke ( null , service ) ; \n + String descriptor = ( binder == null ? null : binder . getInterfaceDescriptor ( ) ) ; \n + mapService . put ( service , descriptor ) ; \n + } \n \n if ( mapService . size ( ) > NUMBER0 ) { \n SINGLE", "msg_token": "Skip null service names support info"} {"diff": " public class PipelineInstanceModel implements PipelineInfo { \n } \n \n public String getRevisionOfLatestModification ( ) { \n - return abbreviate ( buildCause . getMaterialRevisions ( ) . latestRevision ( ) ) ; \n - } \n - \n - private String abbreviate ( String originalRevision ) { \n - return originalRevision ; \n + return buildCause . getMaterialRevisions ( ) . latestRevision ( ) ; \n } \n \n public Integer getCounter ( ) {", "msg_token": "Removing no longer required function abbreviate"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + @ unstableapi \n public class Http2ServerDowngrader extends MessageToMessageCodec < Http2StreamFrame , HttpObject > { \n \n private final boolean validateHeaders ;", "msg_token": "Annotate Http2ServerDowngrader with UnstableApi"} {"diff": " public class TrustedSslDomainTable { \n } \n \n public static boolean isDomainTrusted ( String domain ) { \n - return SqlUtils . intForQuery ( getDb ( ) , STRING0 + TABLE_NAME + STRING1 , \n + return domain != null && SqlUtils . intForQuery ( getDb ( ) , STRING0 + TABLE_NAME + STRING1 , \n new String [ ] { domain } ) > NUMBER0 ; \n } \n }", "msg_token": "fix a potential npe"} {"diff": " public class Stage extends InputAdapter implements Disposable { \n if ( target == null ) target = root ; \n \n target . fire ( event ) ; \n + boolean handled = event . isHandled ( ) ; \n Pools . free ( event ) ; \n - return event . isHandled ( ) ; \n + return handled ; \n } \n \n COMMENT", "msg_token": "TouchDown is now caching the handled state of the event before the"} {"diff": " public abstract class FlexibleDividerDecoration extends RecyclerView . ItemDecorat \n int childCount = mShowLastDivider ? parent . getChildCount ( ) : parent . getChildCount ( ) - NUMBER0 ; \n for ( int i = NUMBER1 ; i < childCount ; i ++ ) { \n View child = parent . getChildAt ( i ) ; \n - int childPosition = parent . getChildAdapterPosition ( child ) ; \n + int childPosition = parent . getChildPosition ( child ) ; \n if ( mVisibilityProvider . shouldHideDivider ( childPosition , parent ) ) { \n continue ; \n } \n public abstract class FlexibleDividerDecoration extends RecyclerView . ItemDecorat \n \n @ override \n public void getItemOffsets ( Rect rect , View v , RecyclerView parent , RecyclerView . State state ) { \n - int position = parent . getChildAdapterPosition ( v ) ; \n + int position = parent . getChildPosition ( v ) ; \n setItemOffsets ( rect , position , parent ) ; \n }", "msg_token": "revert fix for deprecated method to avoid crash for older recyclerview version"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove unused import in Scheduler java"} {"diff": " abstract class PooledByteBuf < T > extends AbstractByteBuf implements Unsafe { \n \n @ override \n public void suspendIntermediaryDeallocations ( ) { \n + assert ! isFreed ( ) ; \n if ( suspendedDeallocations == null ) { \n suspendedDeallocations = new ArrayDeque < Allocation < T > > ( NUMBER0 ) ; \n }", "msg_token": "Do not allow suspendIntermediaryDeallocations after free"} {"diff": " public class ExampleRunner { \n request . get ( STRING0 ) . set ( STRING1 ) ; \n request . get ( STRING2 ) . setEmptyList ( ) ; \n ModelNode r = client . execute ( request ) ; \n - System . out . println ( r . asString ( ) ) ; \n + System . out . println ( r . get ( STRING3 ) . asString ( ) ) ; \n \n } finally { \n StreamUtils . safeClose ( client ) ;", "msg_token": "Extract the XML from the overall result"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - public final class Transformation { \n + public class Transformation { \n SINGLE \n SINGLE \n SINGLE", "msg_token": "Made Transformation class non final methods still final"} {"diff": " public final class Aeron implements AutoCloseable \n throwable . printStackTrace ( ) ; \n if ( throwable instanceof DriverTimeoutException ) \n { \n - System . err . printf ( STRING0 ) ; \n + System . err . printf ( STRING1 ) ; \n System . exit ( - NUMBER0 ) ; \n } \n } ; \n public final class Aeron implements AutoCloseable \n } \n catch ( final Exception ex ) \n { \n - System . err . printf ( STRING2 ) ; \n + System . err . printf ( STRING3 ) ; \n \n throw new IllegalStateException ( STRING4 , ex ) ; \n }", "msg_token": "Java Use platform specific new lines in output formatting"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class FsTranslog extends AbstractIndexShardComponent implements Translog \n if ( currentFree < size ) { \n size = currentFree ; \n location = file ; \n - } else if ( currentFree == size && ThreadLocalRandom . current ( ) . nextBoolean ( ) ) { \n - location = file ; \n } \n } \n try { \n public class FsTranslog extends AbstractIndexShardComponent implements Translog \n if ( currentFree < size ) { \n size = currentFree ; \n location = file ; \n - } else if ( currentFree == size && ThreadLocalRandom . current ( ) . nextBoolean ( ) ) { \n - location = file ; \n } \n } \n this . trans = type . create ( shardId , id , new InternalChannelReference ( location . resolve ( getPath ( id ) ) , StandardOpenOption . READ , StandardOpenOption . WRITE , StandardOpenOption . CREATE_NEW ) , transientBufferSize ) ;", "msg_token": "TRANSLOG Remove useless random translog directory selection"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class ChronicleTcpHiccupMain { \n SINGLE \n - static final int WARMUP = Integer . getInteger ( STRING0 , NUMBER0 ) ; \n + static final int WARMUP = Integer . getInteger ( STRING0 , NUMBER1 ) ; \n SINGLE \n static int RUNS = Integer . getInteger ( STRING1 , NUMBER2 ) ; \n SINGLE", "msg_token": "Add hiccup testing module"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class MathJax \n style . setProperty ( STRING0 , STRING1 ) ; \n style . setCursor ( Style . Cursor . DEFAULT ) ; \n \n + SINGLE \n + if ( BrowseCap . isWindowsDesktop ( ) ) \n + { \n + style . setProperty ( STRING2 , STRING3 ) ; \n + style . setProperty ( STRING4 , STRING5 ) ; \n + } \n + \n return panel ; \n }", "msg_token": "improve MathJax sizing behavior on Windows"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public interface RememberMeServices { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Tidying up Javadoc"} {"diff": " public class JDBCRealm \n SINGLE \n open ( ) ; \n \n - try ( PreparedStatement stmt = credentials ( dbConnection , username ) ; \n - ResultSet rs = stmt . executeQuery ( ) ) { \n + PreparedStatement stmt = credentials ( dbConnection , username ) ; \n + try ( ResultSet rs = stmt . executeQuery ( ) ) { \n if ( rs . next ( ) ) { \n dbCredentials = rs . getString ( NUMBER0 ) ; \n } \n public class JDBCRealm \n return null ; \n } \n \n - \n COMMENT \n COMMENT \n COMMENT \n public class JDBCRealm \n SINGLE \n open ( ) ; \n \n - try ( PreparedStatement stmt = roles ( dbConnection , username ) ; \n - ResultSet rs = stmt . executeQuery ( ) ) { \n + PreparedStatement stmt = roles ( dbConnection , username ) ; \n + try ( ResultSet rs = stmt . executeQuery ( ) ) { \n SINGLE \n ArrayList < String > roleList = new ArrayList < > ( ) ;", "msg_token": "Don t use instance scoped variables in try with block since it will get"} {"diff": " public class WelcomeActivity extends Activity { \n } \n } ) ; \n \n - AlertDialog alert = ad . create ( ) ; \n - alert . show ( ) ; \n + ad . show ( ) ; \n }", "msg_token": "Do not leak locale alert dialog"} {"diff": " public class EvalMapperTest extends TestCase { \n for ( String key : keys ) { \n DummyCandidate candidate = population . get ( Integer . parseInt ( key ) ) ; \n assertEquals ( STRING0 + key , NUMBER0 , collector . getValue ( key ) . size ( ) ) ; \n - double fitness = ( double ) collector . getValue ( key ) . get ( NUMBER1 ) . get ( ) ; \n + double fitness = collector . getValue ( key ) . get ( NUMBER1 ) . get ( ) ; \n assertEquals ( STRING1 + key , DummyEvaluator \n . getFitness ( candidate . getIndex ( ) ) , fitness ) ; \n }", "msg_token": "remove unneeded cast"} {"diff": " public class View implements Drawable . Callback , Drawable . Callback2 , KeyEvent . Cal \n if ( mNextFocusForwardId == View . NO_ID ) return null ; \n return findViewInsideOutShouldExist ( root , mNextFocusForwardId ) ; \n case FOCUS_BACKWARD : { \n + if ( mID == View . NO_ID ) return null ; \n final int id = mID ; \n return root . findViewByPredicateInsideOut ( this , new Predicate < View > ( ) { \n @ override", "msg_token": "Fix FOCUS_BACKWARD search if view had no id"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n public class FMLRelauncher \n { \n public class FMLRelauncher \n private void setupHome ( File minecraftHome ) \n { \n FMLInjectionData . build ( minecraftHome , classLoader ) ; \n + FMLRelaunchLog . minecraftHome = minecraftHome ; \n FMLRelaunchLog . info ( STRING0 , FMLInjectionData . major , FMLInjectionData . minor , \n FMLInjectionData . rev , FMLInjectionData . build , FMLInjectionData . mccversion , FMLInjectionData . mcsversion ) ;", "msg_token": "Fix up directory injection of log file locations"} {"diff": " public class ConversationActivity extends XmppActivity \n listView . discardUndo ( ) ; \n super . onPause ( ) ; \n this . mActivityPaused = true ; \n - if ( this . xmppConnectionServiceBound ) { \n - this . xmppConnectionService . getNotificationService ( ) . setIsInForeground ( false ) ; \n - } \n } \n \n @ override \n public class ConversationActivity extends XmppActivity \n recreate ( ) ; \n } \n this . mActivityPaused = false ; \n - if ( this . xmppConnectionServiceBound ) { \n - this . xmppConnectionService . getNotificationService ( ) . setIsInForeground ( true ) ; \n - } \n \n if ( ! isConversationsOverviewVisable ( ) || ! isConversationsOverviewHideable ( ) ) { \n sendReadMarkerIfNecessary ( getSelectedConversation ( ) ) ;", "msg_token": "don t set notification mode to background when on pause"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import static NAMESPACE ; \n \n public class SetAssigneeTest { \n @ test", "msg_token": "Fix copyright header"} {"diff": " public class ZQLTest extends TestCase { \n assertEquals ( STRING0 , q . get ( NUMBER0 ) . getQuery ( ) ) ; \n } \n \n + public void testErbScopeMultilineQueryCondition ( ) throws IOException , ZException , ZQLException { \n + ZQL zql = new ZQL ( STRING1 ) ; \n + \n + List < Z > q = zql . compile ( ) ; \n + assertEquals ( NUMBER0 , q . size ( ) ) ; \n + assertEquals ( STRING2 , q . get ( NUMBER1 ) . getQuery ( ) ) ; \n + } \n + \n public void testErbScopePipedQuery ( ) throws IOException , ZException , ZQLException { \n ZQL zql = new ZQL ( STRING3 ) ;", "msg_token": "Add more zql erb template test case with conditional branch"} {"diff": " public class PowerNotificationWarnings implements PowerUI . WarningsUI { \n updateNotification ( ) ; \n } \n \n - private void cancelOther ( int showing ) { \n - if ( mShowing != SHOWING_NOTHING && mShowing != showing ) { \n - mNoMan . cancel ( TAG_NOTIFICATION , ID_NOTIFICATION ) ; SINGLE \n - } \n - } \n - \n private void updateNotification ( ) { \n Slog . d ( TAG , STRING0 + mWarning \n + STRING1 + mSaver + STRING2 + mInvalidCharger ) ; \n if ( mInvalidCharger ) { \n - cancelOther ( SHOWING_INVALID_CHARGER ) ; \n showInvalidChargerNotification ( ) ; \n mShowing = SHOWING_INVALID_CHARGER ; \n } else if ( mWarning ) { \n - cancelOther ( SHOWING_WARNING ) ; \n showWarningNotification ( ) ; \n mShowing = SHOWING_WARNING ; \n } else if ( mSaver ) { \n - cancelOther ( SHOWING_SAVER ) ; \n showSaverNotification ( ) ; \n mShowing = SHOWING_SAVER ; \n } else {", "msg_token": "Remove obsolete workaround"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n class XPathUsageSearcher implements UsageSearcher { \n if ( psiFile instanceof XmlFile ) { \n final XmlFile t1 = ( XmlFile ) psiFile ; \n final XmlDocument document ; \n - if ( t1 instanceof JspFile ) { \n - final PsiFile root = ( ( JspFile ) t1 ) . getBaseLanguageRoot ( ) ; \n + FileViewProvider fileViewProvider = t1 . getViewProvider ( ) ; \n + \n + if ( fileViewProvider instanceof TemplateLanguageFileViewProvider ) { \n + final PsiFile root = fileViewProvider . getPsi ( ( ( TemplateLanguageFileViewProvider ) fileViewProvider ) . getTemplateDataLanguage ( ) ) ; \n + \n if ( root instanceof XmlFile ) { \n document = ( ( XmlFile ) root ) . getDocument ( ) ; \n } else {", "msg_token": "removed JspFile usage"} {"diff": " public class ContextHandlerMBean extends AbstractHandlerMBean \n } \n \n @ managedattribute ( STRING0 ) \n - public Map getContextAttributes ( ) \n + public Map < String , Object > getContextAttributes ( ) \n { \n - Map map = new HashMap ( ) ; \n + Map < String , Object > map = new HashMap < String , Object > ( ) ; \n Attributes attrs = ( ( ContextHandler ) _managed ) . getAttributes ( ) ; \n - Enumeration en = attrs . getAttributeNames ( ) ; \n + Enumeration < String > en = attrs . getAttributeNames ( ) ; \n while ( en . hasMoreElements ( ) ) \n { \n String name = ( String ) en . nextElement ( ) ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add typing to context handler mbean and remove import from xmlconfiguration"} {"diff": " class RemovePluginCommand extends SettingCommand { \n \n Path pluginDir = env . pluginsFile ( ) . resolve ( pluginName ) ; \n if ( Files . exists ( pluginDir ) == false ) { \n - throw new UserError ( ExitCodes . USAGE , STRING0 + pluginName + STRING1 ) ; \n + throw new UserError ( ExitCodes . USAGE , STRING2 + pluginName + STRING3 ) ; \n } \n \n List < Path > pluginPaths = new ArrayList < > ( ) ; \n public class RemovePluginCommandTests extends ESTestCase { \n \n public void testMissing ( ) throws Exception { \n UserError e = expectThrows ( UserError . class , ( ) - > removePlugin ( STRING4 , home ) ) ; \n - assertTrue ( e . getMessage ( ) , e . getMessage ( ) . contains ( STRING5 ) ) ; \n + assertTrue ( e . getMessage ( ) , e . getMessage ( ) . contains ( STRING6 ) ) ; \n assertRemoveCleaned ( env ) ; \n }", "msg_token": "Fix plugin command name in remove plugin command"} {"diff": " public class CompareTxStreams \n branchingDetected = false ; \n System . out . println ( STRING0 + tx1 ) ; \n } \n + else \n + { \n + System . out . println ( STRING1 + tx1 + STRING2 + extractor1 . getLastCommitEntry ( ) . getMasterId ( ) + STRING3 + extractor2 . getLastCommitEntry ( ) . getMasterId ( ) + \n + STRING4 + extractor1 . getLastTxChecksum ( ) + STRING3 + extractor2 . getLastTxChecksum ( ) ) ; \n + } \n } \n } \n System . out . println ( STRING5 + lastTx ) ;", "msg_token": "Added more useful output"} {"diff": " public class GroovyTestCase extends TestCase { \n public GroovyTestCase ( ) { \n } \n \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getName ( ) { \n + return super . getName ( ) . substring ( NUMBER0 ) . replaceAll ( STRING0 , STRING1 ) . toLowerCase ( ) ; \n + } \n + \n protected void assertArrayEquals ( Object [ ] expected , Object [ ] value ) { \n String message = \n STRING2 + InvokerHelper . toString ( expected ) + STRING3 + InvokerHelper . toString ( value ) ;", "msg_token": "patch to make test cases appear more like AgileDox when running them in a report or IDE"} {"diff": " final class UnsafeAioChannelFinder implements AioChannelFinder { \n public AbstractAioChannel findChannel ( Runnable command ) throws Exception { \n Long offset ; \n for ( ; ; ) { \n - offset = findField ( command ) ; \n + offset = findFieldOffset ( command ) ; \n if ( offset == null ) { \n return null ; \n } \n final class UnsafeAioChannelFinder implements AioChannelFinder { \n } \n } \n \n - private static Long findField ( Object command ) throws Exception { \n + private static Long findFieldOffset ( Object command ) throws Exception { \n Map < Class < ? > , Long > offsetCache = UnsafeAioChannelFinder . offsetCache ; \n Class < ? > commandType = command . getClass ( ) ; \n Long res = offsetCache . get ( commandType ) ;", "msg_token": "Rename to the correct method name"} {"diff": " public class Tag { \n return false ; \n \n SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n if ( this . tagName . equals ( STRING0 ) ) { \n if ( child . tagName . equals ( STRING1 ) || child . tagName . equals ( STRING2 ) || child . tagName . equals ( STRING3 ) || \n - child . tagName . equals ( STRING4 ) || child . tagName . equals ( STRING5 ) ) { \n + child . tagName . equals ( STRING4 ) || child . tagName . equals ( STRING5 ) || child . tagName . equals ( STRING6 ) || child . tagName . equals ( STRING7 ) ) { \n return true ; \n } \n return false ;", "msg_token": "Fixed head canContain"} {"diff": " public class RecursiveWatcherTest { \n \n SINGLE \n watcher . start ( ) ; \n - Thread . sleep ( NUMBER0 ) ; SINGLE \n + Thread . sleep ( NUMBER1 ) ; SINGLE \n \n File largeFile = new File ( tempDir + STRING0 ) ; \n \n public class RecursiveWatcherTest { \n fileWrittenTime . set ( System . currentTimeMillis ( ) ) ; \n \n SINGLE \n - Thread . sleep ( NUMBER1 ) ; SINGLE \n + Thread . sleep ( NUMBER2 ) ; SINGLE \n watcher . stop ( ) ; \n \n SINGLE", "msg_token": "Relaxing timings to accomodate Travis after she has had a stressful couple of minute"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n COMMENT \n COMMENT \n protected void destroyHardwareResources ( ) { \n + clearDisplayList ( ) ; \n destroyLayer ( true ) ; \n }", "msg_token": "Destroy display lists when running complete memory trims"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n public class BlockMeta extends BlockMetaBase { \n private final long mBlockSize ; \n \n - public BlockMeta ( long blockId , long blockSize , StorageDir dir ) { \n - super ( blockId , dir ) ; \n - mBlockSize = blockSize ; \n - } \n - \n public BlockMeta ( TempBlockMeta tempBlock ) { \n super ( tempBlock . getBlockId ( ) , tempBlock . getParentDir ( ) ) ; \n - mBlockSize = tempBlock . getBlockSize ( ) ; \n + mBlockSize = new File ( tempBlock . getCommitPath ( ) ) . length ( ) ; \n } \n \n @ override", "msg_token": "Make BlockMeta size really measured from actual file length"} {"diff": " public class DistanceCalculatorPlugin extends OsmandPlugin { \n if ( distanceControl != null ) { \n String ds = distance ; \n if ( ds == null ) { \n - distanceControl . setText ( app . getString ( R . string . dist_control_start ) , STRING0 ) ; \n + if ( distanceMeasurementMode == NUMBER0 ) { \n + distanceControl . setText ( app . getString ( R . string . dist_control_start ) , STRING0 ) ; \n + } else { \n + distanceControl . setText ( STRING1 , STRING0 ) ; SINGLE \n + } \n } else { \n int ls = ds . lastIndexOf ( STRING2 ) ; \n if ( ls == - NUMBER1 ) {", "msg_token": "indicate immediately when planning widget is in edit mode"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - \n public interface GradleConnectionParticipant extends GradleParticipantBuild { \n String getDisplayName ( ) ;", "msg_token": "Check style fix for GradleConnectionParticipant"} {"diff": " public final class IosMockMaker implements MockMaker { \n IOSClass * clazz = getMethodDescription ( [ self class ] , selector , & methodDescription ) ; \n if ( clazz ) { \n JavaLangReflectMethod * method = \n - [ clazz findMethodWithTranslatedName : NSStringFromSelector ( selector ) ] ; \n + [ clazz findMethodWithTranslatedName : NSStringFromSelector ( selector ) \n + checkSupertypes: YES ] ; \n IOSObjectArray * paramTypes = [ method getParameterTypes ] ; \n NSUInteger numArgs = paramTypes - > size_ ; \n IOSObjectArray * args = [ IOSObjectArray arrayWithLength : numArgs type : NSObject_class_ ( ) ] ;", "msg_token": "Fixed Mockito use of renamed iOS method"} {"diff": " \n \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class Attribute implements Cloneable { \n protected String value ; \n protected String [ ] splits ; \n \n - public Attribute ( String rawName , String name , String value , boolean decode ) { \n + public Attribute ( String rawName , String name , String value ) { \n this . rawName = rawName ; \n this . name = name ; \n - this . value = value != null ? ( decode ? HtmlDecoder . decode ( value ) : value ) : null ; \n + this . value = value ; \n } \n \n @ override \n public Attribute clone ( ) { \n - return new Attribute ( rawName , name , value , false ) ; \n + return new Attribute ( rawName , name , value ) ; \n } \n \n COMMENT", "msg_token": "remove decoding flag"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Remove netty import"} {"diff": " public interface MethodDescription extends ByteCodeElement { \n } \n TypeDescription returnType = getReturnType ( ) ; \n return ( returnType . represents ( boolean . class ) && value instanceof Boolean ) \n - || ( returnType . represents ( boolean . class ) && value instanceof Boolean ) \n || ( returnType . represents ( byte . class ) && value instanceof Byte ) \n || ( returnType . represents ( char . class ) && value instanceof Character ) \n || ( returnType . represents ( short . class ) && value instanceof Short )", "msg_token": "Removed redundant check for boolean"} {"diff": " public class ManagementWebSecurityAutoConfiguration { \n } \n if ( this . endpointHandlerMapping == null ) { \n this . endpointHandlerMapping = new EndpointHandlerMapping ( \n - Collections . < MvcEndpoint > emptySet ( ) ) ; \n + Collections . < MvcEndpoint > emptySet ( ) ) ; \n } \n } \n }", "msg_token": "Make checkstyle happier"} {"diff": " public class ForgeHooksClient { \n } \n } \n \n + static int renderPass = - NUMBER0 ; \n public static void beforeRenderPass ( int pass ) { \n + renderPass = pass ; \n Tessellator . instance = Tessellator . firstInstance ; \n Tessellator . renderingWorldRenderer = true ; \n GL11 . glBindTexture ( NUMBER1 COMMENT , ModLoader \n public class ForgeHooksClient { \n } \n \n public static void afterRenderPass ( int pass ) { \n + renderPass = - NUMBER0 ; \n inWorld = false ; \n for ( List l : renderTextureList ) { \n SINGLE \n public class MinecraftForgeClient { \n rb . renderBlockByRenderType ( bl , i , j , k ) ; \n ForgeHooksClient . afterBlockRender ( bl , rb ) ; \n } \n + \n + COMMENT \n + COMMENT \n + public static int getRenderPass ( ) { \n + return ForgeHooksClient . renderPass ; \n + } \n }", "msg_token": "Added a little support for two pass rendering"} {"diff": " \n SINGLE \n SINGLE \n SINGLE \n + SINGLE \n \n package NAMESPACE ; \n \n public class Control extends AbstractControl implements SessionListener { \n SINGLE \n Proxy proxy = getProxy ( overrides ) ; \n getExtensionLoader ( ) . hookProxyListener ( proxy ) ; \n + getExtensionLoader ( ) . hookOverrideMessageProxyListener ( proxy ) ; \n getExtensionLoader ( ) . hookPersistentConnectionListener ( proxy ) ; \n getExtensionLoader ( ) . hookConnectRequestProxyListeners ( proxy ) ;", "msg_token": "Hook OverrideMessageProxyListener into the Proxy"} {"diff": " public class SimpleErrorPageHandler implements HttpHandler { \n if ( codes == null ? exchange . getResponseCode ( ) >= NUMBER0 : codes . contains ( Integer . valueOf ( exchange . getResponseCode ( ) ) ) ) { \n final String errorPage = STRING0 + exchange . getResponseCode ( ) + STRING1 + StatusCodes . getReason ( exchange . getResponseCode ( ) ) + STRING2 ; \n exchange . getResponseHeaders ( ) . put ( Headers . CONTENT_LENGTH , STRING3 + errorPage . length ( ) ) ; \n + exchange . getResponseHeaders ( ) . put ( Headers . CONTENT_TYPE , STRING4 ) ; \n Sender sender = exchange . getResponseSender ( ) ; \n sender . send ( errorPage ) ; \n return true ;", "msg_token": "Set content type on error page"} {"diff": " public abstract class RequestBuilderBase < T extends RequestBuilderBase < T > > { \n String uri ; \n try { \n uri = URI . create ( url ) . toURL ( ) . toString ( ) ; \n - } catch ( MalformedURLException e ) { \n + } catch ( Throwable e ) { \n throw new IllegalStateException ( STRING0 + url , e ) ; \n }", "msg_token": "Catch any exception and properly display the uri which caused the exception"} {"diff": " public class VerifySegmentState extends AbstractBaseCommand implements Command { \n @ option ( name = STRING0 , required = true , metaVar = STRING1 , usage = STRING2 ) \n String clusterName ; \n \n - @ option ( name = STRING3 , required = false , metaVar = STRING1 , usage = STRING4 ) \n + @ option ( name = STRING3 , required = false , metaVar = STRING1 , usage = STRING5 ) \n String tablePrefix = STRING6 ; \n \n @ option ( name = STRING7 , required = false , help = true , aliases = { STRING8 , STRING9 , STRING10 } ,", "msg_token": "Added more informative usage with examples to VerifySegmentState"} {"diff": " public class SvnVcs extends AbstractVcs { \n final MessageBusConnection messageBusConnection = ApplicationManager . getApplication ( ) . getMessageBus ( ) . connect ( ) ; \n messageBusConnection . subscribe ( ChangeListManagerImpl . LISTS_LOADED , new LocalChangeListsLoadedListener ( ) { \n public void processLoadedLists ( final List < LocalChangeList > lists ) { \n - ChangeListManager . getInstanceChecked ( myProject ) . setReadOnly ( SvnChangeProvider . ourDefaultListName , true ) ; \n + try { \n + ChangeListManager . getInstanceChecked ( myProject ) . setReadOnly ( SvnChangeProvider . ourDefaultListName , true ) ; \n \n - if ( ! supportOptions . changeListsSynchronized ( ) ) { \n - try { \n + if ( ! supportOptions . changeListsSynchronized ( ) ) { \n processChangeLists ( lists ) ; \n supportOptions . upgradeToChangeListsSynchronized ( ) ; \n } \n - catch ( ProcessCanceledException e ) { \n - SINGLE \n - } \n + } \n + catch ( ProcessCanceledException e ) { \n + SINGLE \n } \n messageBusConnection . disconnect ( ) ; \n }", "msg_token": "catch cancelled exception when after change lists loaded correctly"} {"diff": " public final class LeaderInquireClient { \n } \n } catch ( Exception e ) { \n LOG . error ( STRING0 , \n - mZookeeperAddress , e . getMessage ( ) ) ; \n + mZookeeperAddress , e ) ; \n } \n \n return null ;", "msg_token": "Fix zookeeper exception logging"} {"diff": " public class SearchEverywhereAction extends AnAction implements CustomComponentA \n topPanel . add ( title , BorderLayout . WEST ) ; \n myNonProjectCheckBox . setForeground ( new JBColor ( Gray . _240 , Gray . _200 ) ) ; \n myNonProjectCheckBox . setText ( STRING0 + getShortcut ( ) + STRING1 ) ; \n - topPanel . add ( myNonProjectCheckBox , BorderLayout . EAST ) ; \n + if ( ! NonProjectScopeDisablerEP . isSearchInNonProjectDisabled ( ) ) { \n + topPanel . add ( myNonProjectCheckBox , BorderLayout . EAST ) ; \n + } \n panel . add ( myPopupField , BorderLayout . CENTER ) ; \n panel . add ( topPanel , BorderLayout . NORTH ) ; \n panel . setBorder ( IdeBorderFactory . createEmptyBorder ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER1 ) ) ;", "msg_token": "use goto nonProjectScopeDisabler EP to show hide non project items checkbox"} {"diff": " public class PetValidator { \n \n public void validate ( Pet pet , Errors errors ) { \n String name = pet . getName ( ) ; \n - SINGLE \n + SINGLE \n if ( ! StringUtils . hasLength ( name ) ) { \n errors . rejectValue ( STRING0 , STRING1 , STRING1 ) ; \n } else if ( pet . isNew ( ) && pet . getOwner ( ) . getPet ( name , true ) != null ) { \n errors . rejectValue ( STRING0 , STRING2 , STRING3 ) ; \n } \n \n - SINGLE \n + SINGLE \n if ( pet . isNew ( ) && pet . getType ( ) == null ) { \n errors . rejectValue ( STRING4 , STRING1 , STRING1 ) ; \n } \n \n - SINGLE \n + SINGLE \n if ( pet . getBirthDate ( ) == null ) { \n errors . rejectValue ( STRING5 , STRING1 , STRING1 ) ; \n }", "msg_token": "Fixed some typos in comments"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class BraceMatchingUtil { \n private static boolean isStrictTagMatching ( FileType fileType , int tokenGroup ) { \n switch ( tokenGroup ) { \n case XML_TAG_TOKEN_GROUP : \n - return fileType == StdFileTypes . XML ; \n + return fileType instanceof LanguageFileType && \n + ( ( LanguageFileType ) fileType ) . getLanguage ( ) instanceof XMLLanguage ; \n \n case JSP_TOKEN_GROUP : \n return true ;", "msg_token": "fixed issue with entering end tag for html xhtml jspx files"} {"diff": " public abstract class AbstractFlagEncoder implements FlagEncoder , TurnCostEncode \n { \n if ( str == null ) \n return NUMBER0 ; \n - \n - int index = str . indexOf ( STRING0 ) ; \n - \n + \n try \n { \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( str . startsWith ( STRING1 ) ) \n + return NUMBER0 ; \n + \n + int index = str . indexOf ( STRING0 ) ; \n if ( index > NUMBER0 ) \n { \n String hourStr = str . substring ( NUMBER0 , index ) ;", "msg_token": "ignore special duration notation"} {"diff": " public class MongoCredentials { \n public String toString ( ) { \n return STRING0 + \n STRING1 + protocol + \n - STRING2 + userName + STRING3 + \n - STRING4 + password + \n - STRING5 + source + STRING3 + \n + STRING2 + userName + \n + STRING4 + STRING6 + \n + STRING5 + source + \n STRING7 ; \n }", "msg_token": "Fixed up toString of MongoCredentials so it doesn t print the address of the password char array"} {"diff": " abstract class BoundedLocalCache < K , V > extends BLCHeader . DrainStatusRef < K , V > \n COMMENT \n void scheduleDrainBuffers ( ) { \n if ( evictionLock . tryLock ( ) ) { \n - if ( drainStatus ( ) == PROCESSING ) { \n - return ; \n - } \n try { \n + if ( drainStatus ( ) == PROCESSING ) { \n + return ; \n + } \n lazySetDrainStatus ( PROCESSING ) ; \n executor ( ) . execute ( drainBuffersTask ) ; \n } catch ( Throwable t ) {", "msg_token": "Fix eager return causing the lock to not be released"} {"diff": " public class JavaSymbolFinderIntegrationTest { \n @ rule \n public DebuggableTemporaryFolder temporaryFolder = new DebuggableTemporaryFolder ( ) ; \n \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n @ test \n public void shouldFindTargetDefiningSymbol ( ) throws IOException { \n ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario (", "msg_token": "Delete an unintentionally copied comment"} {"diff": " public class Preferences { \n \n SINGLE \n try { \n - load ( Base . getStream ( STRING0 ) ) ; \n + load ( Base . getStream ( STRING1 ) ) ; \n } catch ( Exception te ) { \n Base . showError ( null , STRING2 + \n STRING3 , te ) ;", "msg_token": "change the name"} {"diff": " public abstract class GroovyPsiCreator implements GroovyElementTypes { \n if ( elem . equals ( PACKAGE_DEFINITION ) ) return new GrPackageDefinitionImpl ( node ) ; \n \n SINGLE \n + if ( elem . equals ( ASSIGNMENT_EXPRESSION ) ) return new GrAssignmentExpressionImpl ( node ) ; \n if ( elem . equals ( ADDITIVE_EXXPRESSION ) ) return new GrAdditiveExpressionImpl ( node ) ; \n if ( elem . equals ( LOGICAL_OR_EXPRESSION ) ) return new GrLogicalOrExprImpl ( node ) ; \n if ( elem . equals ( LOGICAL_AND_EXPRESSION ) ) return new GrLogicalAndExprImpl ( node ) ;", "msg_token": "Added some binary expression parsing"} {"diff": " \n \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class XContentSettingsLoader implements SettingsLoader { \n if ( token == null ) { \n return settings ; \n } \n + if ( token != XContentParser . Token . START_OBJECT ) { \n + throw new ElasticSearchParseException ( STRING0 + token + STRING1 ) ; \n + } \n serializeObject ( settings , sb , path , jp , null ) ; \n return settings ; \n }", "msg_token": "malformed elasticsearch yml causes unresponsive hang"} {"diff": " public class GLM2 extends ModelJob { \n _model . setAndTestValidation ( NUMBER0 , t . _val ) ; \n _lambdaIdx = NUMBER1 ; \n } \n - new GLMIterationTask ( GLM2 . this , _dinfo , _glm , case_mode , case_val , null , _ymu = ymut . ymu ( ) , _reg = FLOAT0 / ymut . nobs ( ) , new Iteration ( ) ) . dfork ( _dinfo . _adaptedFrame ) ; \n + if ( _lambdaIdx == lambda . length ) SINGLE \n + GLM2 . this . complete ( ) ; SINGLE \n + else \n + new GLMIterationTask ( GLM2 . this , _dinfo , _glm , case_mode , case_val , null , _ymu = ymut . ymu ( ) , _reg = FLOAT0 / ymut . nobs ( ) , new Iteration ( ) ) . dfork ( _dinfo . _adaptedFrame ) ; \n } \n @ override public boolean onExceptionalCompletion ( Throwable ex , CountedCompleter cc ) { \n ex . printStackTrace ( ) ;", "msg_token": "handle special case when called only with one lambda lambda max just output the null model"} {"diff": " import NAMESPACE ; \n public class WifiKey implements Parcelable { \n \n SINGLE \n - private static final Pattern SSID_PATTERN = Pattern . compile ( STRING0 ) ; \n + private static final Pattern SSID_PATTERN = Pattern . compile ( STRING0 , \n + Pattern . DOTALL ) ; \n private static final Pattern BSSID_PATTERN = \n Pattern . compile ( STRING1 ) ;", "msg_token": "Actually allow all valid characters in a Wi Fi SSID"} {"diff": " public class GroovyJava7RuntimeMemoryLeakStrategy extends MemoryLeakPrevention . S \n } \n \n @ override \n - void prepare ( ClassLoader leakingLoader , ClassLoader . . . affectedLoaders ) throws Exception { \n + public void prepare ( ClassLoader leakingLoader , ClassLoader . . . affectedLoaders ) throws Exception { \n SINGLE \n SINGLE \n \n public class MemoryLeakPrevention { \n return leakingLoader ; \n } \n \n - static abstract class Strategy { \n - boolean appliesTo ( ClassPath classpath ) { \n + public static abstract class Strategy { \n + public boolean appliesTo ( ClassPath classpath ) { \n return false ; \n } \n \n SINGLE \n - void prepare ( ClassLoader leakingLoader , ClassLoader . . . affectedLoaders ) throws Exception { \n + public void prepare ( ClassLoader leakingLoader , ClassLoader . . . affectedLoaders ) throws Exception { \n } \n \n SINGLE \n - void dispose ( ClassLoader classLoader , ClassLoader . . . affectedLoaders ) throws Exception { \n + public void dispose ( ClassLoader classLoader , ClassLoader . . . affectedLoaders ) throws Exception { \n } \n }", "msg_token": "Tweak access modifiers"} {"diff": " public class Http11Processor extends AbstractHttp11Processor { \n \n rp . setStage ( org . apache . coyote . Constants . STAGE_ENDED ) ; \n if ( error || endpoint . isPaused ( ) ) { \n - recycle ( ) ; \n return SocketState . CLOSED ; \n } else if ( isAsync ( ) ) { \n return SocketState . LONG ; \n } else { \n - recycle ( ) ; \n if ( ! keepAlive ) { \n return SocketState . CLOSED ; \n } else {", "msg_token": "Protocol will call recycle"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PatchApplier { \n final List < VirtualFile > directlyAffected = myVerifier . getDirectlyAffected ( ) ; \n final List < VirtualFile > indirectlyAffected = myVerifier . getAllAffected ( ) ; \n \n + refreshIndirectlyAffected ( indirectlyAffected ) ; \n + for ( VirtualFile file : directlyAffected ) { \n + VcsDirtyScopeManager . getInstance ( myProject ) . fileDirty ( file ) ; \n + } \n if ( ( myTargetChangeList != null ) && ( ! directlyAffected . isEmpty ( ) ) ) { \n ApplyPatchAction . moveChangesOfVsToList ( myProject , directlyAffected , myTargetChangeList ) ; \n } else { \n final ChangeListManager changeListManager = ChangeListManager . getInstance ( myProject ) ; \n changeListManager . scheduleUpdate ( ) ; \n } \n - refreshIndirectlyAffected ( indirectlyAffected ) ; \n \n return refStatus . get ( ) ; \n }", "msg_token": "apply patch small improvement"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class CertificateConfigurable implements SearchableConfigurable , Configur \n \n @ override \n public void disposeUIResources ( ) { \n + Disposer . dispose ( myTreeBuilder ) ; \n myTrustManager . removeListener ( this ) ; \n }", "msg_token": "Dispose tree builder in disposeUIResources to prevent memory leak"} {"diff": " public class PyCharmEduInitialConfigurator { \n \n private static void showInitialConfigurationDialog ( ) { \n final JFrame frame = WindowManager . getInstance ( ) . findVisibleFrame ( ) ; \n - new InitialConfigurationDialog ( frame , STRING0 ) . show ( ) ; \n + new InitialConfigurationDialog ( frame , STRING0 ) { \n + @ override \n + protected boolean canCreateLauncherScript ( ) { \n + return false ; \n + } \n + } . show ( ) ; \n } \n }", "msg_token": "Don t create launcher script"} {"diff": " public class BoneContext { \n \n @ override \n public String toString ( ) { \n - return STRING0 + bone . getName ( ) ; \n + return STRING0 + boneName ; \n } \n }", "msg_token": "displaying the bone name in BoneContext toString method even if the bone is not yet created"} {"diff": " public class UpdateGenerator extends AbstractSqlGenerator < UpdateStatement > { \n sqlString = STRING0 + database . escapeStringForDatabase ( newValue . toString ( ) ) + STRING0 ; \n } else if ( newValue instanceof Date ) { \n SINGLE \n - Date date = ( Date ) newValue ; \n - sqlString = database . getDateLiteral ( new java . sql . Timestamp ( date . getTime ( ) ) ) ; \n + Date date = ( Date ) newValue ; \n + if ( date . getClass ( ) . equals ( java . util . Date . class ) ) { \n + date = new java . sql . Date ( date . getTime ( ) ) ; \n + } \n + \n + sqlString = database . getDateLiteral ( date ) ; \n } else if ( newValue instanceof Boolean ) { \n if ( ( ( Boolean ) newValue ) ) { \n sqlString = TypeConverterFactory . getInstance ( ) . findTypeConverter ( database ) . getBooleanType ( ) . getTrueBooleanValue ( ) ;", "msg_token": "handle date conversion better"} {"diff": " public class EpisodeDetailsActivity extends BaseActivity { \n super . onCreate ( savedInstanceState ) ; \n setContentView ( R . layout . episode_pager ) ; \n \n - final ActionBar actionBar = getSupportActionBar ( ) ; \n - actionBar . setDisplayShowTitleEnabled ( false ) ; \n - actionBar . setDisplayHomeAsUpEnabled ( true ) ; \n + setupActionBar ( ) ; \n \n final int episodeId = getIntent ( ) . getIntExtra ( InitBundle . EPISODE_TVDBID , NUMBER0 ) ; \n if ( episodeId == NUMBER0 ) { \n public class EpisodeDetailsActivity extends BaseActivity { \n indicator . setViewPager ( mPager , startPosition ) ; \n } \n \n + private void setupActionBar ( ) { \n + final ActionBar actionBar = getSupportActionBar ( ) ; \n + actionBar . setDisplayShowTitleEnabled ( false ) ; \n + actionBar . setDisplayHomeAsUpEnabled ( true ) ; \n + actionBar . setBackgroundDrawable ( null ) ; \n + } \n + \n @ override \n protected void onStart ( ) { \n super . onStart ( ) ;", "msg_token": "Remove background in episode details activity"} {"diff": " public abstract class Context { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix doc typo"} {"diff": " public class QueryStringJsonQueryParser extends AbstractIndexComponent implement \n int fuzzyPrefixLength = FuzzyQuery . defaultPrefixLength ; \n int phraseSlop = NUMBER0 ; \n float boost = FLOAT0 ; \n - boolean escape = true ; \n + boolean escape = false ; \n Analyzer analyzer = null ; \n \n String currentFieldName = null ;", "msg_token": "revert escaspe default to true in queryString"} {"diff": " class ResultSetPersister { \n statement . keyAttributes . add ( \n new DBDAttributeValue ( \n binding , \n - row . values [ binding . getOrdinalPosition ( ) ] ) ) ; \n + model . getCellValue ( binding , row ) ) ) ; \n } \n deleteStatements . add ( statement ) ; \n }", "msg_token": "Delete row fix"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class Orient extends OListenerManger < OOrientListener > { \n SINGLE \n return this ; \n \n - profiler = new OProfiler ( ) ; \n - \n if ( timer == null ) \n timer = new Timer ( true ) ; \n \n + profiler = new OProfiler ( ) ; \n + \n shutdownHook = new OrientShutdownHook ( ) ; \n if ( signalHandler == null ) { \n signalHandler = new OSignalHandler ( ) ;", "msg_token": "Postponed Profile creation After time"} {"diff": " public class Printer { \n private String indent = STRING0 ; \n private final StringBuilder out ; \n \n - Printer ( @ notnull StringBuilder out ) { \n + public Printer ( @ notnull StringBuilder out ) { \n this . out = out ; \n }", "msg_token": "Make Printer constructor public"} {"diff": " public final class AppendProcessor extends AbstractProcessor { \n Object value = ConfigurationUtils . readObject ( TYPE , processorTag , config , STRING0 ) ; \n TemplateService . Template compiledTemplate = ConfigurationUtils . compileTemplate ( TYPE , processorTag , \n STRING1 , field , templateService ) ; \n - return new AppendProcessor ( processorTag , templateService . compile ( field ) , ValueSource . wrap ( value , templateService ) ) ; \n + return new AppendProcessor ( processorTag , compiledTemplate , ValueSource . wrap ( value , templateService ) ) ; \n } \n } \n }", "msg_token": "don t render template twice for append processor"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix up ChannelPipeline javadocs by add lost don t"} {"diff": " \n COMMENT \n COMMENT \n \n + package NAMESPACE ; \n + \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Add missing package declaration"} {"diff": " public class RegexUrlMapping extends AbstractUrlMapping { \n String [ ] thisTokens = getUrlData ( ) . getTokens ( ) ; \n String [ ] otherTokens = other . getUrlData ( ) . getTokens ( ) ; \n for ( int i = NUMBER0 ; i < thisTokens . length ; i ++ ) { \n + if ( i == otherTokens . length ) break ; \n boolean thisTokenIsWildcard = isSingleWildcard ( thisTokens [ i ] ) ; \n boolean otherTokenIsWildcard = isSingleWildcard ( otherTokens [ i ] ) ; \n if ( thisTokenIsWildcard && ! otherTokenIsWildcard ) {", "msg_token": "fix failing tests"} {"diff": " public class DarculaButtonUI extends BasicButtonUI { \n public void update ( Graphics g , JComponent c ) { \n super . update ( g , c ) ; \n if ( ( ( JButton ) c ) . isDefaultButton ( ) && ! SystemInfo . isMac ) { \n - c . setFont ( c . getFont ( ) . deriveFont ( Font . BOLD ) ) ; \n + if ( ! c . getFont ( ) . isBold ( ) ) { \n + c . setFont ( c . getFont ( ) . deriveFont ( Font . BOLD ) ) ; \n + } \n } \n }", "msg_token": "Darcula eats almost all EDT cpu time"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n @ notthreadsafe \n public class OperatorStats \n { \n - private static final ThreadMXBean THREAD_MX_BEAN = ManagementFactory . getThreadMXBean ( ) ; \n - \n private final TaskOutput taskOutput ; \n \n private long declaredSize ; \n public class OperatorStats \n private long completedPositions ; \n \n private CpuTimer cpuTimer = new CpuTimer ( ) ; \n - private long exchangeWaitTime ; \n \n private boolean finished ;", "msg_token": "Remove unused fields"} {"diff": " public class CodegenTestsOnAndroidGenerator extends UsefulTestCase { \n } \n } \n \n - private int counter ; \n - \n private void processFiles ( \n @ notnull Printer printer , \n @ notnull File [ ] files , \n public class CodegenTestsOnAndroidGenerator extends UsefulTestCase { \n @ notnull FilesWriter holderMock ) \n throws IOException \n { \n - if ( counter > NUMBER0 ) return ; \n holderFull . writeFilesOnDiskIfNeeded ( ) ; \n holderMock . writeFilesOnDiskIfNeeded ( ) ; \n \n public class CodegenTestsOnAndroidGenerator extends UsefulTestCase { \n if ( InTextDirectivesUtils . isDirectiveDefined ( text , STRING0 ) || text . contains ( STRING1 ) ) continue ; \n \n if ( hasBoxMethod ( text ) ) { \n - counter ++ ; \n String generatedTestName = generateTestName ( file . getName ( ) ) ; \n String packageName = file . getPath ( ) . replaceAll ( STRING2 , STRING3 ) ; \n text = changePackage ( packageName , text ) ;", "msg_token": "Removed debug counter"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Update the javadoc for the clip path fix"} {"diff": " public class GradleDistributionExecuter extends AbstractGradleExecuter implement \n TestFile tmpDir = getTmpDir ( ) ; \n if ( tmpDir != null ) { \n tmpDir . deleteDir ( ) . createDir ( ) ; \n - forkingGradleExecuter . addGradleOpts ( String . format ( STRING0 , tmpDir ) ) ; \n + forkingGradleExecuter . addGradleOpts ( String . format ( STRING1 , tmpDir ) ) ; \n } \n returnedExecuter = forkingGradleExecuter ; \n }", "msg_token": "Remove all quoting of the tmpdir argument for the test harness"} {"diff": " public final class FileTypes { \n . put ( STRING0 , STRING1 ) \n . put ( STRING2 , STRING3 ) \n . put ( STRING4 , STRING5 ) \n + . put ( STRING6 , STRING7 ) \n . put ( STRING8 , STRING9 ) \n . put ( STRING10 , STRING9 ) \n . put ( STRING11 , STRING12 )", "msg_token": "Add stringsdict file type for Xcode project generation"} {"diff": " public enum ActionCode { \n COMMENT \n CLIENT_FLUSH , \n \n - CUSTOM , \n RESET , \n \n COMMENT \n public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > { \n \n getOutputBuffer ( ) . reset ( ) ; \n \n - } else if ( actionCode == ActionCode . CUSTOM ) { \n - SINGLE \n - SINGLE \n - \n } else if ( actionCode == ActionCode . REQ_SET_BODY_REPLAY ) { \n ByteChunk body = ( ByteChunk ) param ;", "msg_token": "Remove some unused code"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n \n - public class PlurkApi extends DefaultApi10a \n + public class MobilePlurkApi extends DefaultApi10a \n { \n private static final String REQUEST_TOKEN_URL = STRING0 ; \n private static final String AUTHORIZATION_URL = STRING1 ;", "msg_token": "Fix MobilePlurkApi naming"} {"diff": " public class SearchedTrendsActivity extends Activity { \n private void handleIntent ( Intent intent ) { \n if ( Intent . ACTION_SEARCH . equals ( intent . getAction ( ) ) ) { \n searchQuery = intent . getStringExtra ( SearchManager . QUERY ) ; \n - searchQuery += STRING0 ; \n \n String query = searchQuery ; \n \n - if ( query . contains ( STRING1 ) ) { \n - doSearch ( query ) ; \n - } \n - \n SearchRecentSuggestions suggestions = new SearchRecentSuggestions ( this , \n MySuggestionsProvider . AUTHORITY , MySuggestionsProvider . MODE ) ; \n \n public class SearchedTrendsActivity extends Activity { \n source . createTag ( searchQuery . replaceAll ( STRING1 , STRING2 ) ) ; \n } \n } \n + \n + searchQuery += STRING0 ; \n + \n + if ( query . contains ( STRING1 ) ) { \n + doSearch ( query ) ; \n + } \n + \n + \n } \n }", "msg_token": "Fix change the way it saves a trends search"} {"diff": " public abstract class BeanIds { \n COMMENT \n static final String INTERCEPT_METHODS_BEAN_FACTORY_POST_PROCESSOR = STRING0 ; \n static final String CONTEXT_SOURCE_SETTING_POST_PROCESSOR = STRING1 ; \n + static final String HTTP_POST_PROCESSOR = STRING2 ; \n \n public static final String JDBC_USER_DETAILS_MANAGER = STRING3 ; \n public static final String USER_DETAILS_SERVICE = STRING4 ; \n public class HttpSecurityBeanDefinitionParser implements BeanDefinitionParser { \n registry . registerBeanDefinition ( BeanIds . FILTER_SECURITY_INTERCEPTOR , filterSecurityInterceptorBuilder . getBeanDefinition ( ) ) ; \n \n SINGLE \n - registry . registerBeanDefinition ( STRING5 , new RootBeanDefinition ( HttpSecurityConfigPostProcessor . class ) ) ; \n + registry . registerBeanDefinition ( BeanIds . HTTP_POST_PROCESSOR , new RootBeanDefinition ( HttpSecurityConfigPostProcessor . class ) ) ; \n \n return null ; \n }", "msg_token": "Moved Http post processor bean name to BeanIds class"} {"diff": " public class DatePickerDialog extends DialogFragment implements \n Bundle savedInstanceState ) { \n Log . d ( TAG , STRING0 ) ; \n \n - View view = inflater . inflate ( R . layout . mdtp_date_picker_dialog , container ) ; \n + View view = inflater . inflate ( R . layout . mdtp_date_picker_dialog , container , false ) ; \n \n mDayOfWeekView = ( TextView ) view . findViewById ( R . id . date_picker_header ) ; \n mMonthAndDayView = ( LinearLayout ) view . findViewById ( R . id . date_picker_month_and_day ) ; \n public class TimePickerDialog extends DialogFragment implements \n @ override \n public View onCreateView ( LayoutInflater inflater , ViewGroup container , \n Bundle savedInstanceState ) { \n - View view = inflater . inflate ( R . layout . mdtp_time_picker_dialog , container ) ; \n + View view = inflater . inflate ( R . layout . mdtp_time_picker_dialog , container , false ) ; \n KeyboardListener keyboardListener = new KeyboardListener ( ) ; \n view . findViewById ( R . id . time_picker_dialog ) . setOnKeyListener ( keyboardListener ) ;", "msg_token": "Fixed java lang IllegalStateException when using as a fragment"} {"diff": " public class Checker extends AutomaticBean \n try { \n final Object module = mModuleFactory . createModule ( name ) ; \n if ( ! ( module instanceof FileSetCheck ) ) { \n - throw new CheckstyleException ( name + STRING0 ) ; \n + throw new CheckstyleException ( name \n + + STRING1 ) ; \n } \n final FileSetCheck fsc = ( FileSetCheck ) module ; \n fsc . contextualize ( mChildContext ) ; \n public class Checker extends AutomaticBean \n catch ( Exception ex ) { \n SINGLE \n throw new CheckstyleException ( \n - STRING2 \n + STRING3 \n + name + STRING4 + ex . getMessage ( ) ) ; \n } \n }", "msg_token": "improved error messages so a user can understand them"} {"diff": " public class PathChildrenCache implements Closeable \n getDataAndStat ( fullPath ) ; \n } \n \n - if ( mode == RefreshMode . POST_INITIALIZED ) \n - { \n - updateInitialSet ( name , null ) ; \n - } \n + updateInitialSet ( name , null ) ; \n } \n }", "msg_token": "Always updateInitialSet allow multiple changes to initial set up to the point that the INITIALIZED event is sent"} {"diff": " public class StbTrueTypeBuild { \n BuildTarget lin32 = BuildTarget . newDefaultTarget ( TargetOs . Linux , false ) ; \n BuildTarget lin64 = BuildTarget . newDefaultTarget ( TargetOs . Linux , true ) ; \n BuildTarget mac = BuildTarget . newDefaultTarget ( TargetOs . MacOsX , false ) ; \n - new AntScriptGenerator ( ) . generate ( new BuildConfig ( STRING0 ) , win32home , win32 , win64 , lin32 , lin64 , mac ) ; \n + new AntScriptGenerator ( ) . generate ( new BuildConfig ( STRING1 ) , win32home , win32 , win64 , lin32 , lin64 , mac ) ; \n \n SINGLE \n AntScriptExecutor . execute ( STRING2 , STRING3 ) ;", "msg_token": "fixed stbtt build shared lib name"} {"diff": " public class PowerManager \n COMMENT \n public void release ( int flags ) { \n synchronized ( mToken ) { \n - mHandler . removeCallbacks ( mReleaser ) ; \n if ( ! mRefCounted || -- mCount == NUMBER0 ) { \n + mHandler . removeCallbacks ( mReleaser ) ; \n try { \n mService . releaseWakeLock ( mToken , flags ) ; \n } catch ( RemoteException e ) {", "msg_token": "Fix race condition in WakeLocks"} {"diff": " public class PlaybackService extends Service { \n mediaPlayer . pause ( true , true ) ; \n } \n break ; \n - case KeyEvent . KEYCODE_MEDIA_FAST_FORWARD : { \n + case KeyEvent . KEYCODE_MEDIA_FAST_FORWARD : \n mediaPlayer . seekDelta ( PlaybackController . DEFAULT_SEEK_DELTA ) ; \n break ; \n - } \n - case KeyEvent . KEYCODE_MEDIA_REWIND : { \n + case KeyEvent . KEYCODE_MEDIA_REWIND : \n mediaPlayer . seekDelta ( - PlaybackController . DEFAULT_SEEK_DELTA ) ; \n break ; \n - } \n } \n }", "msg_token": "Remove unnecessary braces in PlaybackService case block"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n \n public class CoreProxy {", "msg_token": "Forgot to remove an import"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class MetricsResourceTest \n @ beforeclass \n public static void startup ( ) throws Exception \n { \n + SINGLE \n + SLF4JBridgeHandler . removeHandlersForRootLogger ( ) ; \n + SLF4JBridgeHandler . install ( ) ; \n + \n Injector injector = Guice . createInjector ( new WebServletModule ( new Properties ( ) ) , new AbstractModule ( ) \n { \n private Datastore datastore = new TestDatastore ( ) ;", "msg_token": "Redirect Jersey Jetty logging through logback so we don t get log messages in the test output"} {"diff": " public class EnglishGrammaticalStructure extends GrammaticalStructure { \n COMMENT \n COMMENT \n private static void correctWHAttachment ( SemanticGraph sg ) { \n + COMMENT \n + if ( sg . getRoots ( ) . isEmpty ( ) ) \n + return ; \n + \n SemanticGraph sgCopy = sg . makeSoftCopy ( ) ; \n SemgrexMatcher matcher = XCOMP_PATTERN . matcher ( sgCopy ) ; \n while ( matcher . findNextMatchingNode ( ) ) { \n public class UniversalEnglishGrammaticalStructure extends GrammaticalStructure { \n COMMENT \n COMMENT \n private static void correctWHAttachment ( SemanticGraph sg ) { \n + \n + COMMENT \n + if ( sg . getRoots ( ) . isEmpty ( ) ) \n + return ; \n + \n SemanticGraph sgCopy = sg . makeSoftCopy ( ) ; \n SemgrexMatcher matcher = XCOMP_PATTERN . matcher ( sgCopy ) ; \n while ( matcher . findNextMatchingNode ( ) ) {", "msg_token": "Add check for root in correctWHAttachment"} {"diff": " public class TestLeftRecursion extends BaseTest { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n - STRING4 + \n + STRING5 + \n + STRING6 + \n STRING7 + \n - STRING8 + \n + STRING9 + \n STRING10 + \n STRING11 + \n STRING12 +", "msg_token": "add alt labels to all alts"} {"diff": " public class ModelControllerOperationHandlerImpl extends AbstractMessageHandler \n case NUMBER0 : { \n synchronized ( outputStream ) { \n outputStream . write ( ModelControllerClientProtocol . PARAM_HANDLE_RESULT_FAILED ) ; \n - outputStream . write ( ModelControllerClientProtocol . PARAM_OPERATION ) ; \n failureHolder . getFailure ( ) . writeExternal ( outputStream ) ; \n outputStream . flush ( ) ; \n }", "msg_token": "Remove extraneous PARAM_OPERATION"} {"diff": " public class tutorial { \n \n System . out . println ( STRING0 ) ; \n SINGLE \n - People p = peopletable . name . SINGLE \n + People p = peopletable . name . equal ( STRING1 ) . findFirst ( ) ; \n System . out . println ( p ) ; \n SINGLE \n SINGLE", "msg_token": "Fixed tutorial bug"} {"diff": " public class MapActivityActions implements DialogProvider { \n } ) . reg ( ) ; \n } \n final OsmAndLocationProvider loc = app . getLocationProvider ( ) ; \n - if ( app . getTargetPointsHelper ( ) . getPointToNavigate ( ) != null || loc . getLocationSimulation ( ) . isRouteAnimating ( ) ) { \n + SINGLE \n + SINGLE \n + if ( app . getTargetPointsHelper ( ) . getPointToNavigate ( ) != null && loc . getLocationSimulation ( ) . isRouteAnimating ( ) ) { \n if ( OsmandPlugin . getEnabledPlugin ( OsmandDevelopmentPlugin . class ) != null ) { \n optionsMenuHelper \n . item ( loc . getLocationSimulation ( ) . isRouteAnimating ( ) ? R . string . animate_route_off : R . string . animate_route )", "msg_token": "Shorten our menus by one more obsolete item"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "remove unused import"} {"diff": " public class ReaderPostListFragment extends Fragment \n Toolbar . OnMenuItemClickListener toolbarListener = new Toolbar . OnMenuItemClickListener ( ) { \n @ override \n public boolean onMenuItemClick ( MenuItem item ) { \n + if ( ! isAdded ( ) ) { \n + return false ; \n + } \n if ( item . getItemId ( ) == R . id . menu_settings ) { \n ReaderActivityLauncher . showReaderSubs ( getActivity ( ) ) ; \n return true ;", "msg_token": "Check isAdded in toolbar listener"} {"diff": " public class ConstantCaptureActivity extends Activity implements SurfaceHolder . C \n case NUMBER0 : GLES20 . glClearColor ( FLOAT0 , FLOAT0 , FLOAT1 , FLOAT1 ) ; break ; \n } \n \n - int xpos = ( frameNum * NUMBER1 ) % width ; \n + int xpos = ( int ) ( width * ( ( frameNum % NUMBER2 ) / FLOAT2 ) ) ; \n GLES20 . glEnable ( GLES20 . GL_SCISSOR_TEST ) ; \n GLES20 . glScissor ( xpos , NUMBER3 , width / NUMBER4 , height / NUMBER4 ) ; \n GLES20 . glClear ( GLES20 . GL_COLOR_BUFFER_BIT ) ;", "msg_token": "Tweak constant capture"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removed unused imports"} {"diff": " public enum Material { \n COMMENT \n COMMENT \n public static Material getMaterial ( final int id ) { \n - if ( byId . length > id ) { \n + if ( byId . length > id && id >= NUMBER0 ) { \n return byId [ id ] ; \n } else { \n return null ; \n public class MaterialTest { \n @ test \n public void getByOutOfRangeId ( ) { \n assertThat ( Material . getMaterial ( Integer . MAX_VALUE ) , is ( nullValue ( ) ) ) ; \n + assertThat ( Material . getMaterial ( Integer . MIN_VALUE ) , is ( nullValue ( ) ) ) ; \n } \n \n @ test", "msg_token": "Added negative id check to Material getMaterial int"} {"diff": " public class ShinyAppsDeployDialog \n events_ = events ; \n lastAppName_ = lastAppName ; \n \n - launchCheck_ = new CheckBox ( STRING0 ) ; \n + launchCheck_ = new CheckBox ( STRING1 ) ; \n launchCheck_ . setValue ( true ) ; \n launchCheck_ . setStyleName ( contents_ . getStyle ( ) . launchCheck ( ) ) ; \n addLeftWidget ( launchCheck_ ) ;", "msg_token": "change caption to launch browser"} {"diff": " public class SimpleValueListener < O extends Object > implements ValueListener { \n } \n SINGLE \n for ( int i = NUMBER0 ; i < keys . size ( ) ; i ++ ) { \n - Map m = merge ( current . source ( ) , keys . get ( i ) , values . get ( i ) ) ; \n - current . source ( m ) ; \n + Map map = null ; \n + try { \n + map = JsonXContent . jsonXContent . createParser ( values . get ( i ) . toString ( ) ) . mapAndClose ( ) ; \n + } catch ( Exception e ) { } \n + \n + Map m = merge ( current . source ( ) , keys . get ( i ) , map != null && map . size ( ) > NUMBER0 ? map : values . get ( i ) ) ; \n + current . source ( m ) ; \n } \n return this ; \n }", "msg_token": "Check fields for json before treating them as normal strings"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Add copyright notice to BitmapCreationBenchmark"} {"diff": " public abstract class InputHandler extends KeyAdapter \n StringBuilder sb = new StringBuilder ( ) ; \n for ( int i = NUMBER0 ; i < repeatCount ; i ++ ) \n sb . append ( str ) ; \n - textArea . overwriteSetSelectedText ( sb . toString ( ) ) ; \n + if ( hasBracketsAndQuotes ( str ) ) { \n + matchBracketsAndQuotes ( str , evt , textArea , sb ) ; \n + } else { \n + textArea . overwriteSetSelectedText ( sb . toString ( ) ) ; \n + } \n } \n else \n {", "msg_token": "Check String do matchBracketsAndQuotes"} {"diff": " class SocketIOConnection { \n } \n \n public void connect ( SocketIOClient client ) { \n - clients . add ( client ) ; \n + if ( ! clients . contains ( client ) ) \n + clients . add ( client ) ; \n webSocket . send ( String . format ( STRING0 , client . endpoint ) ) ; \n }", "msg_token": "Do not readd existing clients"} {"diff": " public class PrimeConnections { \n SINGLE \n SINGLE \n SINGLE \n + logger . debug ( STRING0 , e . getMessage ( ) ) ; \n lastException = e ; \n sleepBeforeRetry ( tryNum ) ; \n } \n public class HttpPrimeConnection implements IPrimeConnection { \n @ override \n public boolean connect ( Server server , String primeConnectionsURIPath ) throws Exception { \n String url = STRING1 + server . getHostPort ( ) + primeConnectionsURIPath ; \n + logger . debug ( STRING2 , url ) ; \n HttpUriRequest get = new HttpGet ( url ) ; \n HttpResponse response = null ; \n try {", "msg_token": "Add debugging for prime connections"} {"diff": " \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n public class TableStat {", "msg_token": "add copyright info"} {"diff": " public class MasterInfoIntegrationTest { \n Assert . assertFalse ( fileInfo . isComplete ) ; \n } \n \n + SINGLE \n + SINGLE \n @ test \n public void concurrentCreateJournalTest ( ) throws Exception { \n SINGLE", "msg_token": "Add TODO statement for master info test"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix a missing word in AppCompatDelegate documentation"} {"diff": " \n package NAMESPACE ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public enum PrimitiveType \n COMMENT \n public static PrimitiveType lookup ( final String value ) \n { \n - for ( final PrimitiveType p : values ( ) ) \n + for ( final PrimitiveType p : Singleton . values ) \n { \n if ( value . equals ( p . name ) ) \n { \n public enum PrimitiveType \n \n throw new IllegalArgumentException ( STRING0 + value ) ; \n } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + static class Singleton \n + { \n + public static final PrimitiveType [ ] values = PrimitiveType . values ( ) ; \n + } \n }", "msg_token": "Use a cached singleton for PrimitiveType lookup name to avoid defensive copy of values array"} {"diff": " public class OsMoThread { \n } \n \n public void reconnect ( ) { \n + sessionInfo = null ; \n reconnect = true ; \n } \n }", "msg_token": "Fix osmo login issue"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n public abstract class ParallaxRecyclerAdapter < T > extends RecyclerView . Adapter < RecyclerView . ViewHolder > { \n - private static final float SCROLL_MULTIPLIER = FLOAT0 ; \n + private float SCROLL_MULTIPLIER = FLOAT0 ; \n \n public static class VIEW_TYPES { \n public static final int NORMAL = NUMBER0 ;", "msg_token": "removed static and final modifier SCROLL_MULTIPLIER"} {"diff": " public class MagicNumberCheck extends Check \n COMMENT \n private boolean isConstantDefinition ( DetailAST aAST ) \n { \n - if ( ScopeUtils . inInterfaceBlock ( aAST ) ) { \n - return true ; \n - } \n DetailAST parent = aAST . getParent ( ) ; \n \n SINGLE \n public class MagicNumberCheck extends Check \n return false ; \n } \n \n - SINGLE \n + SINGLE \n final DetailAST modifiersAST = \n parent . findFirstToken ( TokenTypes . MODIFIERS ) ; \n - return modifiersAST . branchContains ( TokenTypes . FINAL ) ; \n + return modifiersAST . branchContains ( TokenTypes . FINAL ) \n + || ScopeUtils . inInterfaceBlock ( parent ) ; \n } \n \n COMMENT", "msg_token": "efficiency improvement don t go up the tree twice"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PyClassImpl extends PyPresentableElementImpl < PyClassStub > implement \n } \n \n public PyClassImpl ( final PyClassStub stub ) { \n - super ( stub , PyElementTypes . CLASS_DECLARATION ) ; \n + this ( stub , PyElementTypes . CLASS_DECLARATION ) ; \n + } \n + \n + public PyClassImpl ( final PyClassStub stub , IStubElementType nodeType ) { \n + super ( stub , nodeType ) ; \n } \n \n public PsiElement setName ( @ notnull String name ) throws IncorrectOperationException {", "msg_token": "Added parsing of Cython property declarations"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Resolved incorrect path for ReaderTaskFragment"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n public class TestOfflinePermissible implements OfflinePlayer , Permissible { \n private boolean op ; \n + private UUID randomUuid = UUID . randomUUID ( ) ; \n \n private final Map < String , Boolean > assignedPermissions = new HashMap < String , Boolean > ( ) ; \n \n public class TestOfflinePermissible implements OfflinePlayer , Permissible { \n return STRING0 ; \n } \n \n + public UUID getUniqueId ( ) { \n + return randomUuid ; \n + } \n + \n public boolean isBanned ( ) { \n throw new UnsupportedOperationException ( STRING1 ) ; \n }", "msg_token": "Added getUniqueId to TestOfflinePermissible"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "add missing imports"} {"diff": " public class DirectoryUtil { \n throw new PermanentStorageException ( String . format ( STRING0 , location ) ) ; \n \n if ( ! storageDir . exists ( ) && ! storageDir . mkdirs ( ) ) \n - throw new PermanentStorageException ( String . format ( STRING1 , location ) ) ; \n + throw new PermanentStorageException ( String . format ( STRING2 , location ) ) ; \n \n return storageDir ; \n }", "msg_token": "Fixed error message"} {"diff": " public class CoreProgressManager extends ProgressManager implements Disposable { \n public Task getTask ( ) { \n return myTask ; \n } \n + \n + @ override \n + public String toString ( ) { \n + return myTask . toString ( ) ; \n + } \n } \n protected static class TaskRunnable extends TaskContainer { \n private final ProgressIndicator myIndicator ; \n public class ProgressManagerImpl extends CoreProgressManager implements Disposab \n final Runnable process = new TaskRunnable ( task , progressIndicator , continuation ) ; \n \n TaskContainer action = new TaskContainer ( task ) { \n - \n - @ override \n - public String toString ( ) { \n - return task . toString ( ) ; \n - } \n - \n @ override \n public void run ( ) { \n boolean canceled = false ;", "msg_token": "TaskContainer move meaningful toString to the base class"} {"diff": " public class PyStructureViewTest extends PyTestCase { \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 , \n + STRING3 + \n + STRING4 , \n true ) ; \n }", "msg_token": "Updated structure view test to include object"} {"diff": " public final class TypeUtils \n return type . equalTo ( leftBlock , leftPosition , rightBlock , rightPosition ) ; \n } \n \n - public static List < Type > resolveTypes ( List < TypeSignature > typeNames , final TypeManager typeManager ) \n + public static List < Type > resolveTypes ( List < TypeSignature > typeNames , TypeManager typeManager ) \n { \n return typeNames . stream ( ) \n . map ( ( TypeSignature type ) - > checkNotNull ( typeManager . getType ( type ) , STRING0 , type ) )", "msg_token": "Remove unnecessary final"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JTASessionContext extends AbstractCurrentSessionContext { \n private static final CoreMessageLogger LOG = Logger . getMessageLogger ( CoreMessageLogger . class , JTASessionContext . class . getName ( ) ) ; \n \n - private transient Map currentSessionMap = new Hashtable ( ) ; \n + private transient Map < Object , Session > currentSessionMap = new ConcurrentHashMap < Object , Session > ( ) ; \n \n public JTASessionContext ( SessionFactoryImplementor factory ) { \n super ( factory ) ; \n public class JTASessionContext extends AbstractCurrentSessionContext { \n \n final Object txnIdentifier = jtaPlatform . getTransactionIdentifier ( txn ) ; \n \n - Session currentSession = ( Session ) currentSessionMap . get ( txnIdentifier ) ; \n + Session currentSession = currentSessionMap . get ( txnIdentifier ) ; \n \n if ( currentSession == null ) { \n currentSession = buildOrObtainSession ( ) ;", "msg_token": "using ConcurrentHashMap for decrease synchronization"} {"diff": " final class MultiServerCluster extends BaseCluster { \n \n switch ( clusterType ) { \n case ReplicaSet : \n - handleReplicaSetMemberChange ( newDescription ) ; \n + handleReplicaSetMemberChanged ( newDescription ) ; \n break ; \n case Sharded : \n handleShardRouterChanged ( newDescription ) ; \n final class MultiServerCluster extends BaseCluster { \n fireChangeEvent ( ) ; \n } \n \n - private void handleReplicaSetMemberChange ( final ServerDescription newDescription ) { \n + private void handleReplicaSetMemberChanged ( final ServerDescription newDescription ) { \n if ( ! newDescription . isReplicaSetMember ( ) ) { \n LOGGER . severe ( format ( STRING0 , \n newDescription . getType ( ) , newDescription . getAddress ( ) ) ) ;", "msg_token": "Fixed method name"} {"diff": " public class SyncManager { \n null , null ) ; \n } \n \n - Intent startServiceIntent = new Intent ( mContext , SyncJobService . class ) ; \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + final Intent startServiceIntent = new Intent ( mContext , SyncJobService . class ) ; \n startServiceIntent . putExtra ( SyncJobService . EXTRA_MESSENGER , new Messenger ( mSyncHandler ) ) ; \n - mContext . startService ( startServiceIntent ) ; \n + new Handler ( mContext . getMainLooper ( ) ) . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + mContext . startService ( startServiceIntent ) ; \n + } \n + } ) ; \n } \n \n private boolean isDeviceProvisioned ( ) {", "msg_token": "Start the sync job service after primary boot"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public class PlatformModifiableModelsProvider implements ModifiableModelsProvider { \n @ override \n - public ModifiableRootModel getModuleModifiableModel ( final Module module ) { \n + public ModifiableRootModel getModuleModifiableModel ( @ notnull final Module module ) { \n return ModuleRootManager . getInstance ( module ) . getModifiableModel ( ) ; \n }", "msg_token": "do not call GemManager updateGemset Module with null"} {"diff": " public class OperatorContext \n } \n } ) ; \n } \n - long newReservation = memoryReservation . getAndAdd ( bytes ) ; \n + long newReservation = memoryReservation . addAndGet ( bytes ) ; \n if ( newReservation > maxMemoryReservation ) { \n memoryReservation . getAndAdd ( - bytes ) ; \n throw new ExceededMemoryLimitException ( getMaxMemorySize ( ) ) ; \n public class OperatorContext \n return false ; \n } \n \n - long newReservation = memoryReservation . getAndAdd ( bytes ) ; \n + long newReservation = memoryReservation . addAndGet ( bytes ) ; \n if ( newReservation > maxMemoryReservation ) { \n memoryReservation . getAndAdd ( - bytes ) ; \n return false ;", "msg_token": "Fix memory accounting error in OperatorContext"} {"diff": " public class LockPatternUtils { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - public static boolean isDeviceEncrypted ( ) { \n - IMountService mountService = IMountService . Stub . asInterface ( \n - ServiceManager . getService ( STRING0 ) ) ; \n - try { \n - return mountService . getEncryptionState ( ) != IMountService . ENCRYPTION_STATE_NONE \n - && mountService . getPasswordType ( ) != StorageManager . CRYPT_TYPE_DEFAULT ; \n - } catch ( RemoteException re ) { \n - Log . e ( TAG , STRING1 , re ) ; \n - } \n - return true ; \n - } \n - \n - COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Move legacy full disk encryption code to Settings"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class JetContentBasedFileSubstitutor implements ContentBasedClassFileProc \n return new JetHighlighter ( ) ; \n } \n \n - @ notnull \n + @ nullable \n @ override \n public PsiFile getDecompiledPsiFile ( PsiFile psiFile ) { \n return JetDecompiledData . getDecompiledData ( ( ClsFileImpl ) psiFile ) . getJetFile ( ) ;", "msg_token": "Made JetContentBasedFileSubstitutor getDecompiledPsiFile Nullable"} {"diff": " public class PredefinedConfiguration extends Configuration { \n SINGLE \n createSearchTemplateInfo ( SSRBundle . message ( STRING0 ) , STRING1 , EXPRESSION_TYPE ) , \n createSearchTemplateInfo ( SSRBundle . message ( STRING2 ) , STRING3 , EXPRESSION_TYPE ) , \n + createSearchTemplateInfo ( SSRBundle . message ( STRING4 ) , STRING5 , EXPRESSION_TYPE ) , \n createSearchTemplateInfo ( SSRBundle . message ( STRING6 ) , STRING7 , EXPRESSION_TYPE ) , \n createSearchTemplateInfo ( SSRBundle . message ( STRING8 ) , STRING9 , EXPRESSION_TYPE ) , \n createSearchTemplateInfo ( SSRBundle . message ( STRING10 ) , STRING11 , EXPRESSION_TYPE ) ,", "msg_token": "lambdas predefined template"} {"diff": " public class SimpleHandlerResultHandlerTests { \n \n hm = new HandlerMethod ( controller , TestController . class . getMethod ( STRING0 ) ) ; \n type = ResolvableType . forMethodParameter ( hm . getReturnType ( ) ) ; \n - SINGLE \n + SINGLE \n assertTrue ( resultHandler . supports ( createHandlerResult ( hm , type ) ) ) ; \n \n hm = new HandlerMethod ( controller , TestController . class . getMethod ( STRING1 ) ) ;", "msg_token": "Remove reference to Fluxion"} {"diff": " class DriverDependenciesTree { \n return libraries ; \n } \n \n - public void resolveLibraries ( ) { \n + public boolean resolveLibraries ( ) { \n + boolean resolved = false ; \n try { \n runnableContext . run ( true , true , new DBRRunnableWithProgress ( ) { \n @ override \n class DriverDependenciesTree { \n } \n } \n } ) ; \n + resolved = true ; \n } catch ( InterruptedException e ) { \n SINGLE \n } catch ( InvocationTargetException e ) { \n class DriverDependenciesTree { \n SINGLE \n SINGLE \n } \n + return resolved ; \n } \n \n public void resizeTree ( ) { \n class DriverDownloadAutoPage extends DriverDownloadPage { \n \n @ override \n void resolveLibraries ( ) { \n - depsTree . resolveLibraries ( ) ; \n + if ( ! depsTree . resolveLibraries ( ) ) { \n + setErrorMessage ( STRING0 ) ; \n + } \n depsTree . resizeTree ( ) ; \n }", "msg_token": "Driver files download error message"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import NAMESPACE ; \n - \n import static NAMESPACE ; \n import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n import static NAMESPACE ; \n \n @ requiresauthentication \n public class StreamsTest extends BaseRestTest { \n . statusCode ( NUMBER0 ) ; \n } \n \n - protected ValidatableResponse createStreamFromRequest ( byte [ ] request ) { \n - return given ( ) \n - . when ( ) \n - . body ( request ) \n - . post ( STRING0 ) \n - . then ( ) \n - . contentType ( ContentType . JSON ) \n - . assertThat ( ) ; \n - } \n - \n protected ValidatableResponse createStreamFromRequest ( String request ) { \n return given ( ) \n . when ( )", "msg_token": "Removing unused helper method"} {"diff": " public final class Providers { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n public static < T > Provider < T > guicify ( javax . inject . Provider < T > provider ) { \n if ( provider instanceof Provider ) {", "msg_token": "add missing since tag"} {"diff": " public class DatabaseDescriptor \n \n public static String getInitialToken ( ) \n { \n - return conf . initial_token ; \n + return System . getProperty ( STRING0 , conf . initial_token ) ; \n } \n \n public static String getClusterName ( ) \n public class DatabaseDescriptor \n \n public static int getStoragePort ( ) \n { \n - return conf . storage_port ; \n + return Integer . parseInt ( System . getProperty ( STRING1 , conf . storage_port . toString ( ) ) ) ; \n } \n \n public static int getRpcPort ( ) \n { \n - return conf . rpc_port ; \n + return Integer . parseInt ( System . getProperty ( STRING2 , conf . rpc_port . toString ( ) ) ) ; \n } \n \n public static long getRpcTimeout ( )", "msg_token": "Allow configured ports and initial token to be overridden by system"} {"diff": " import NAMESPACE ; \n \n public class Constants { \n \n - public static final String VERSION = STRING0 ; \n + public static final String VERSION = STRING1 ; \n \n }", "msg_token": "run gen thrift java to update thrift Constants java"} {"diff": " public class ZWaveConverterHandler { \n ZWaveCommandClass commandClass ; \n String commandClassName = bindingConfiguration . getArguments ( ) . get ( STRING0 ) ; \n \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - SINGLE \n - \n if ( commandClassName != null ) { \n commandClass = node . resolveCommandClass ( CommandClass . getCommandClass ( commandClassName ) , bindingConfiguration . getEndpoint ( ) ) ;", "msg_token": "Remove commented out code"} {"diff": " public class NewChatActivity extends FragmentActivity implements View . OnCreateCo \n mHandler = new SimpleAlertHandler ( this ) ; \n \n mChatPager = ( ViewPager ) findViewById ( R . id . chatpager ) ; \n + mChatPager . setSaveEnabled ( false ) ; \n mChatPager . setOnPageChangeListener ( new OnPageChangeListener ( ) \n {", "msg_token": "prevent ClassNotFoundException when restoring ViewPager"} {"diff": " class CollectionBinding extends AbstractCollectionBinding { \n \n Iterable getIterable ( Object o ) { \n if ( o instanceof Set ) { \n - Set set = ( Set ) o ; \n - return new TreeSet ( set ) ; \n + SINGLE \n + SINGLE \n + if ( o instanceof SortedSet ) { \n + SINGLE \n + return ( Iterable ) o ; \n + } \n + return new TreeSet ( ( Set ) o ) ; \n } \n return ( Collection ) o ; \n }", "msg_token": "collection binder corrected a bit"} {"diff": " public class PipeWorldRenderer implements ISimpleBlockRenderingHandler { \n if ( icons == null ) \n return ; \n \n - state . currentTexture = icons . getIcon ( state . textureMatrix . getTextureIndex ( ForgeDirection . UNKNOWN ) ) ; \n - \n boolean west = false ; \n boolean east = false ; \n boolean down = false ; \n public class PipeWorldRenderer implements ISimpleBlockRenderingHandler { \n south = true ; \n } \n \n + state . currentTexture = icons . getIcon ( state . textureMatrix . getTextureIndex ( ForgeDirection . UNKNOWN ) ) ; \n block . setBlockBounds ( minSize , minSize , minSize , maxSize , maxSize , maxSize ) ; \n renderblocks . setRenderBoundsFromBlock ( block ) ; \n if ( ! west )", "msg_token": "Fix pipe renderer using wrong texture for center"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public enum Platform { \n COMMENT \n COMMENT \n COMMENT \n + @ skylarkcallable ( name = STRING0 , structField = true , \n + doc = STRING1 \n + + STRING2 \n + + STRING3 ) \n public String getNameInPlist ( ) { \n return nameInPlist ; \n }", "msg_token": "Expose Apple platform name to Skylark"} {"diff": " public final class ClassReflection { \n } \n \n COMMENT \n - static public Object newInstance ( Class c ) throws ReflectionException { \n - return ReflectionCache . getType ( c ) . newInstance ( ) ; \n + static public < T > T newInstance ( Class < T > c ) throws ReflectionException { \n + return ( T ) ReflectionCache . getType ( c ) . newInstance ( ) ; \n } \n \n COMMENT \n public final class ClassReflection { \n } \n \n COMMENT \n - static public Object newInstance ( Class c ) throws ReflectionException { \n + static public < T > T newInstance ( Class < T > c ) throws ReflectionException { \n try { \n return c . newInstance ( ) ; \n } catch ( InstantiationException e ) {", "msg_token": "Change newInstance to a generic method"} {"diff": " public class FetchBlogListWPOrg extends FetchBlogListAbstract { \n \n private boolean validateListMethodsResponse ( Object [ ] availableMethods ) { \n if ( availableMethods == null ) { \n - AppLog . e ( T . NUX , STRING0 ) ; \n + AppLog . e ( T . NUX , STRING1 ) ; \n return false ; \n } \n SINGLE \n public class FetchBlogListWPOrg extends FetchBlogListAbstract { \n private boolean checkXMLRPCEndpointValidity ( String url ) { \n try { \n Object [ ] methods = ( Object [ ] ) doSystemListMethodsXMLRPC ( url ) ; \n + if ( methods == null ) { \n + AppLog . e ( T . NUX , STRING1 ) ; \n + return false ; \n + } \n SINGLE \n AppLog . i ( T . NUX , STRING2 + url ) ; \n AppLog . i ( T . NUX , STRING3 ) ;", "msg_token": "Do not return xml rpc endpoint found but have missing methods when the server replies with an empty document"} {"diff": " public class JavadocOptionFileWriterContext { \n SINGLE \n SINGLE \n write ( value . replaceAll ( STRING0 , STRING1 ) \n + SINGLE \n . replaceAll ( STRING2 + getLineSeparator ( ) + STRING3 , STRING0 + getLineSeparator ( ) ) ) ; \n write ( STRING4 ) ; \n return this ;", "msg_token": "Added a comment that describes some gotchas around writing options file on windows"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class GoCreateFileAction extends CreateFileFromTemplateAction implements \n \n @ override \n protected PsiFile createFile ( String name , @ notnull String templateName , @ notnull PsiDirectory dir ) { \n - FileTemplate template = FileTemplateManager . getInstance ( ) . getInternalTemplate ( templateName ) ; \n + FileTemplate template = FileTemplateManager . getInstance ( dir . getProject ( ) ) . getInternalTemplate ( templateName ) ; \n Properties properties = new Properties ( ) ; \n properties . setProperty ( PACKAGE , ContainerUtil . getLastItem ( StringUtil . split ( dir . getName ( ) , STRING0 ) ) ) ; \n try {", "msg_token": "Fix deprecated invocation"} {"diff": " public class Element extends Node { \n COMMENT \n COMMENT \n public String id ( ) { \n - String id = attr ( STRING0 ) ; \n - return id == null ? STRING1 : id ; \n + return attributes . get ( STRING0 ) ; \n } \n \n COMMENT", "msg_token": "Simplify get by ID"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ListTemplatesHandler implements CodeInsightActionHandler { \n } \n \n if ( matchingTemplates . isEmpty ( ) && customTemplatesLookupElements . isEmpty ( ) ) { \n - HintManager . getInstance ( ) . showErrorHint ( editor , CodeInsightBundle . message ( STRING0 ) ) ; \n + if ( ! ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n + HintManager . getInstance ( ) . showErrorHint ( editor , CodeInsightBundle . message ( STRING0 ) ) ; \n + } \n return ; \n }", "msg_token": "do not show an error hint in unit test mode"} {"diff": " public final class ShutdownThread extends Thread { \n if ( confirm ) { \n final CloseDialogReceiver closer = new CloseDialogReceiver ( context ) ; \n final AlertDialog dialog = new AlertDialog . Builder ( context ) \n - . setIconAttribute ( android . R . attr . alertDialogIcon ) \n . setTitle ( com . android . internal . R . string . power_off ) \n . setMessage ( resourceId ) \n . setPositiveButton ( com . android . internal . R . string . yes , new DialogInterface . OnClickListener ( ) {", "msg_token": "Don t show icon for power off confirmation dialog"} {"diff": " public class RapidsTest extends TestUtil { \n tree = STRING0 ; \n checkTree ( tree ) ; \n SINGLE \n - tree = STRING1 ; \n + SINGLE \n + tree = STRING2 ; \n checkTree ( tree ) ; \n }", "msg_token": "Remove test checkout dup OOO rows"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PlacePickerFragment extends GraphObjectListFragment < GraphPlace > { \n \n private void onSearchTextTimerTriggered ( ) { \n if ( hasSearchTextChangedSinceLastQuery ) { \n - getActivity ( ) . runOnUiThread ( new Runnable ( ) { \n + Handler handler = new Handler ( Looper . getMainLooper ( ) ) ; \n + handler . post ( new Runnable ( ) { \n @ override \n public void run ( ) { \n FacebookException error = null ;", "msg_token": "android sdk Fix PlacePickerFragment search text timer to avoid null reference"} {"diff": " public class ResultSetViewer extends Viewer implements IDataSourceProvider , ISpr \n } \n \n SINGLE \n - SINGLE \n - reorderResultSet ( constraint . getOrderPosition ( ) == NUMBER0 , new Runnable ( ) { \n + reorderResultSet ( false , new Runnable ( ) { \n @ override \n public void run ( ) \n {", "msg_token": "RSV ordering fix"} {"diff": " public class TestExpressionInterpreter \n assertOptimizedEquals ( STRING0 , getSeconds ( new DateTime ( NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 , DateTimeZone . UTC ) ) ) ; \n } \n \n + @ test \n + public void testDateLiteral ( ) \n + { \n + assertOptimizedEquals ( STRING1 , getSeconds ( new DateTime ( NUMBER0 , NUMBER1 , NUMBER7 , NUMBER8 , NUMBER8 , NUMBER8 , NUMBER8 , DateTimeZone . UTC ) ) ) ; \n + assertOptimizedEquals ( STRING2 , getSeconds ( new DateTime ( NUMBER9 , NUMBER3 , NUMBER7 , NUMBER8 , NUMBER8 , NUMBER8 , NUMBER8 , DateTimeZone . UTC ) ) ) ; \n + } \n + \n private static String getSeconds ( DateTime dateTime ) \n { \n return String . valueOf ( MILLISECONDS . toSeconds ( dateTime . getMillis ( ) ) ) ;", "msg_token": "Implement DATE literal"} {"diff": " public class NettyAsyncHttpProvider extends IdleStateHandler implements AsyncHtt \n ChannelFuture writeFuture ; \n if ( channel . getPipeline ( ) . get ( SslHandler . class ) != null ) { \n writeFuture = channel . write ( new ChunkedFile ( raf , NUMBER0 , fileLength , NUMBER1 ) ) ; \n - writeFuture . addListener ( new ProgressListener ( false , future . getAsyncHandler ( ) , future ) { \n - public void operationComplete ( ChannelFuture cf ) { \n - super . operationComplete ( cf ) ; \n - } \n - } ) ; \n + writeFuture . addListener ( new ProgressListener ( false , future . getAsyncHandler ( ) , future ) ) ; \n } else { \n final FileRegion region = new OptimizedFileRegion ( raf , NUMBER0 , fileLength ) ; \n writeFuture = channel . write ( region ) ;", "msg_token": "Remove unneeded override"} {"diff": " package NAMESPACE ; \n \n COMMENT \n COMMENT \n - COMMENT \n COMMENT \n COMMENT \n public interface Defn", "msg_token": "removed meaningless javadoc"} {"diff": " public class StructStrategy implements ModelSchemaExtractionStrategy { \n return Iterables . filter ( methods , new Predicate < Method > ( ) { \n @ override \n public boolean apply ( Method method ) { \n - return ! method . getName ( ) . contains ( STRING0 ) && ! ignoredMethods . contains ( equivalence . wrap ( method ) ) ; \n + return ! method . isSynthetic ( ) && ! ignoredMethods . contains ( equivalence . wrap ( method ) ) ; \n } \n } ) ; \n }", "msg_token": "Ignore synthetic methods instead of using presence of in name"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class JPAModelTest { \n } \n \n @ test \n + public void testInsertOneToMany ( ) { \n + PersonEntity person = randomPerson ( ) ; \n + PhoneEntity phone = new PhoneEntity ( ) ; \n + phone . setPhoneNumber ( STRING0 ) ; \n + phone . setOwner ( person ) ; \n + person . getPhoneNumbers ( ) . add ( phone ) ; \n + data . insert ( person ) ; \n + } \n + \n + @ test \n public void testSingleQueryExecute ( ) { \n data . insert ( randomPerson ( ) ) ; \n Result < Person > result = data . select ( Person . class ) . get ( ) ;", "msg_token": "Add additional test testInsertOneToMany"} {"diff": " public class DiffContentUtil { \n } \n \n public static boolean isTextType ( FileType fileType ) { \n - return fileType != null && ! fileType . isBinary ( ) ; \n + return fileType != null && ! fileType . isBinary ( ) && ! fileType . isReadOnly ( ) ; \n } \n \n public static String getTitle ( VirtualFile virtualFile ) {", "msg_token": "don t get documents for files with read onloy file type"} {"diff": " package NAMESPACE ; \n @ suppresswarnings ( STRING0 ) \n public class InvalidJsonException extends JsonPathException { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + private final String json ; \n + \n public InvalidJsonException ( ) { \n + json = null ; \n } \n \n public InvalidJsonException ( String message ) { \n super ( message ) ; \n + json = null ; \n } \n \n public InvalidJsonException ( String message , Throwable cause ) { \n super ( message , cause ) ; \n + json = null ; \n } \n \n public InvalidJsonException ( Throwable cause ) { \n super ( cause ) ; \n + json = null ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public InvalidJsonException ( final Throwable cause , final String json ) { \n + super ( cause ) ; \n + this . json = json ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + public String getJson ( ) { \n + return json ; \n } \n }", "msg_token": "Provide a constructor that captures the JSON"} {"diff": " public class NotificationManagerService extends INotificationManager . Stub \n if ( ! notificationMatchesUserId ( r , userId ) ) { \n continue ; \n } \n + SINGLE \n + if ( r . userId == UserHandle . USER_ALL && pkg == null ) { \n + continue ; \n + } \n if ( ( r . notification . flags & mustHaveFlags ) != mustHaveFlags ) { \n continue ; \n }", "msg_token": "Don t cancel any notifications that are meant for all users if no package is specified"} {"diff": " public class RxPermissions { \n COMMENT \n COMMENT \n COMMENT \n - public void onRequestPermissionsResult ( int requestCode , \n - String permissions [ ] , int [ ] grantResults ) { \n + void onRequestPermissionsResult ( int requestCode , \n + String permissions [ ] , int [ ] grantResults ) { \n for ( int i = NUMBER0 ; i < permissions . length ; i ++ ) { \n SINGLE \n PublishSubject < Boolean > subject = mSubjects . get ( permissions [ i ] ) ;", "msg_token": "Fix onRequestPermissionsResult scope"} {"diff": " public class Inputs { \n } \n } catch ( NoSuchInputTypeException e ) { \n LOG . warn ( STRING0 , io . getType ( ) ) ; \n - throw new WebApplicationException ( e , Response . Status . NOT_FOUND ) ; \n + continue ; \n } catch ( ConfigurationException e ) { \n - LOG . error ( STRING1 , e ) ; \n - throw new WebApplicationException ( e , Response . Status . BAD_REQUEST ) ; \n + LOG . error ( STRING2 , e ) ; \n + continue ; \n } \n \n launch ( input , io . getInputId ( ) ) ;", "msg_token": "do not throw WebApplicationExceptions in Inputs java lolwut"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n + import static NAMESPACE ; \n \n SINGLE \n SINGLE \n public class ModelType \n return null ; \n } \n \n - return String . format ( STRING0 , getTypeSignature ( ) ) ; \n + return format ( STRING0 , getTypeSignature ( ) ) . getBytes ( ) ; \n } \n }", "msg_token": "Fix ML types in CLI"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n COMMENT \n COMMENT \n public class MessageManager implements OnLoadListener , OnPacketListener , OnDisconnectListener , \n - OnAccountRemovedListener , OnRosterReceivedListener , OnAccountArchiveModeChangedListener , \n - OnStatusChangeListener { \n + OnAccountRemovedListener , OnAccountDisabledListener , OnRosterReceivedListener , \n + OnAccountArchiveModeChangedListener , OnStatusChangeListener { \n \n private final static MessageManager instance ; \n \n public class MessageManager implements OnLoadListener , OnPacketListener , OnDisco \n chats . clear ( accountItem . getAccount ( ) ) ; \n } \n \n + @ override \n + public void onAccountDisabled ( AccountItem accountItem ) { \n + chats . clear ( accountItem . getAccount ( ) ) ; \n + } \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "MessageManager removed active chats on account disable"} {"diff": " static public void print ( Object x , Writer w ) throws Exception { \n if ( RT . count ( o . meta ( ) ) > NUMBER0 ) \n { \n IPersistentMap meta = o . meta ( ) ; \n - w . write ( STRING0 ) ; \n + w . write ( STRING1 ) ; \n if ( meta . count ( ) == NUMBER1 && meta . contains ( TAG_KEY ) ) \n print ( meta . valAt ( TAG_KEY ) , w ) ; \n else", "msg_token": "added hash to metadata print"} {"diff": " class NotificationManagerService extends INotificationManager . Stub \n private NotificationRecord mSoundNotification ; \n private AsyncPlayer mSound ; \n private boolean mSystemReady ; \n - private int mDisabledNotifications = StatusBarManager . DISABLE_NOTIFICATION_ALERTS ; \n + private int mDisabledNotifications ; \n \n private NotificationRecord mVibrateNotification ; \n private Vibrator mVibrator = new Vibrator ( ) ; \n class NotificationManagerService extends INotificationManager . Stub \n mStatusBarService = statusBar ; \n statusBar . setNotificationCallbacks ( mNotificationCallbacks ) ; \n \n + SINGLE \n + SINGLE \n + SINGLE \n + SINGLE \n + if ( NUMBER0 != Settings . Secure . getInt ( mContext . getContentResolver ( ) , \n + Settings . Secure . DEVICE_PROVISIONED , NUMBER0 ) ) { \n + mDisabledNotifications = AudioManager . STREAM_NOTIFICATION ; \n + } \n + \n SINGLE \n IntentFilter filter = new IntentFilter ( ) ; \n filter . addAction ( Intent . ACTION_BATTERY_CHANGED ) ;", "msg_token": "Have the notification service only have notifications diabled"} {"diff": " public class SlidingUpPanelLayout extends ViewGroup { \n SINGLE \n return mIsSlidingUp \n ? getMeasuredHeight ( ) - getPaddingBottom ( ) - mPanelHeight - slidePixelOffset \n - : getPaddingTop ( ) + slidePixelOffset ; \n + : getPaddingTop ( ) - panelHeight + mPanelHeight + slidePixelOffset ; \n } \n \n COMMENT \n public class SlidingUpPanelLayout extends ViewGroup { \n result = super . drawChild ( canvas , child , drawingTime ) ; \n canvas . restoreToCount ( save ) ; \n \n - if ( drawScrim && mCoveredFadeColor > NUMBER0 ) { \n + if ( drawScrim && mCoveredFadeColor != NUMBER0 ) { \n final int baseAlpha = ( mCoveredFadeColor & NUMBER1 ) > > > NUMBER2 ; \n final int imag = ( int ) ( baseAlpha * mSlideOffset ) ; \n final int color = imag < < NUMBER2 | ( mCoveredFadeColor & NUMBER3 ) ;", "msg_token": "Fixed the top gravity support and dimming"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n @ runwith ( Cucumber . class ) \n - SINGLE \n - SINGLE \n - @ cucumber.options ( tags = { STRING0 } , format = { STRING1 , STRING2 } ) \n + @ cucumber.options ( format = { STRING1 , STRING2 } ) \n public class RunCukesTest { \n }", "msg_token": "Don t specify tags in runner"} {"diff": " public interface IndexSearcherWrapper { \n DirectoryReader wrap ( DirectoryReader reader ) ; \n \n COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n - IndexSearcher wrap ( IndexSearcher searcher ) throws EngineException ; \n + IndexSearcher wrap ( EngineConfig engineConfig , IndexSearcher searcher ) throws EngineException ; \n \n } \n public final class IndexSearcherWrappingService { \n SINGLE \n SINGLE \n SINGLE \n - IndexSearcher indexSearcher = wrapper . wrap ( innerIndexSearcher ) ; \n + IndexSearcher indexSearcher = wrapper . wrap ( engineConfig , innerIndexSearcher ) ; \n if ( reader == engineSearcher . reader ( ) && indexSearcher == innerIndexSearcher ) { \n return engineSearcher ; \n } else { \n public class InternalEngineTests extends ESTestCase { \n } \n \n @ override \n - public IndexSearcher wrap ( IndexSearcher searcher ) throws EngineException { \n + public IndexSearcher wrap ( EngineConfig engineConfig , IndexSearcher searcher ) throws EngineException { \n counter . incrementAndGet ( ) ; \n return searcher ; \n }", "msg_token": "Pass down the EngineConfig to IndexSearcherWrapper"} {"diff": " public class DjangoProjectCreationTest extends PyEnvTestCase { \n contentRoot , \n WEB_SITE_NAME , \n STRING0 , \n + templateDir , \n djangoPath , \n false , \n false", "msg_token": "reverted back templates folder setup in django"} {"diff": " abstract class AbstractModuleComponentResolveMetadata implements MutableModuleCo \n \n public abstract AbstractModuleComponentResolveMetadata copy ( ) ; \n \n + @ override \n + public ModuleComponentResolveMetadata asImmutable ( ) { \n + SINGLE \n + return copy ( ) ; \n + } \n + \n + @ override \n + public MutableModuleComponentResolveMetadata asMutable ( ) { \n + return copy ( ) ; \n + } \n + \n public MutableModuleComponentResolveMetadata withSource ( ModuleSource source ) { \n AbstractModuleComponentResolveMetadata copy = copy ( ) ; \n copy . setModuleSource ( source ) ; \n public interface ModuleComponentResolveMetadata extends ComponentResolveMetadata \n ModuleComponentResolveMetadata withSource ( ModuleSource source ) ; \n \n COMMENT \n + COMMENT \n + COMMENT \n + MutableModuleComponentResolveMetadata asMutable ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n ModuleComponentArtifactMetadata artifact ( String type , @ nullable String extension , @ nullable String classifier ) ; \n import NAMESPACE ; \n \n public interface MutableModuleComponentResolveMetadata extends ModuleComponentResolveMetadata { \n COMMENT \n + COMMENT \n + COMMENT \n + ModuleComponentResolveMetadata asImmutable ( ) ; \n + \n + COMMENT \n COMMENT \n COMMENT \n MutableModuleComponentResolveMetadata copy ( ) ;", "msg_token": "Added methods to convert an immutable ModuleComponentResolveMetadata into a mutable MutableModuleComponentResolveMetadata and vice versa"} {"diff": " public class EmojiconGridFragment extends Fragment implements AdapterView . OnItem \n super . onAttach ( activity ) ; \n if ( activity instanceof OnEmojiconClickedListener ) { \n mOnEmojiconClickedListener = ( OnEmojiconClickedListener ) activity ; \n - } else { \n + } if ( getParentFragment ( ) instanceof OnEmojiconClickedListener ) \n + { \n + mOnEmojiconClickedListener = ( OnEmojiconClickedListener ) getParentFragment ( ) ; \n + } \n + else { \n throw new IllegalArgumentException ( activity + STRING0 + OnEmojiconClickedListener . class . getSimpleName ( ) ) ; \n } \n } \n public class EmojiconsFragment extends Fragment implements ViewPager . OnPageChang \n super . onAttach ( activity ) ; \n if ( getActivity ( ) instanceof OnEmojiconBackspaceClickedListener ) { \n mOnEmojiconBackspaceClickedListener = ( OnEmojiconBackspaceClickedListener ) getActivity ( ) ; \n - } else { \n + } if ( getParentFragment ( ) instanceof OnEmojiconBackspaceClickedListener ) \n + { \n + mOnEmojiconBackspaceClickedListener = ( OnEmojiconBackspaceClickedListener ) getParentFragment ( ) ; \n + } \n + else { \n throw new IllegalArgumentException ( activity + STRING0 + OnEmojiconBackspaceClickedListener . class . getSimpleName ( ) ) ; \n } \n }", "msg_token": "Adding support for using inside a fragment as fragment children"} {"diff": " public abstract class FirebaseLoginBaseActivity extends AppCompatActivity { \n @ override \n protected void onStart ( ) { \n super . onStart ( ) ; \n + SINGLE \n + SINGLE \n getFirebaseRef ( ) . addAuthStateListener ( new Firebase . AuthStateListener ( ) { \n @ override \n public void onAuthStateChanged ( AuthData authData ) {", "msg_token": "Added some todos"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n } \n } \n } \n - \n + GeometryFactory geometryFactory = new GeometryFactory ( ) ; \n + \n COMMENT \n ArrayList < Vertex > endpoints = new ArrayList < Vertex > ( ) ; \n \n public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n Vertex startEndpoint = null , endEndpoint = null ; \n \n ArrayList < Coordinate > segmentCoordinates = new ArrayList < Coordinate > ( ) ; \n - GeometryFactory geometryFactory = new GeometryFactory ( ) ; \n \n COMMENT \n COMMENT", "msg_token": "use a single geometry factory for all geometries"} {"diff": " public class IndexDatabase { \n RuntimeEnvironment env = RuntimeEnvironment . getInstance ( ) ; \n String path = env . getPathRelativeToSourceRoot ( file , NUMBER0 ) ; \n SINGLE \n + SINGLE \n path = path . replace ( STRING0 , STRING1 ) ; \n \n IndexReader ireader = getIndexReader ( path ) ;", "msg_token": "improve comment why we can change to"} {"diff": " class BackupManagerService extends IBackupManager . Stub { \n \n synchronized ( mClearDataLock ) { \n mClearingData = true ; \n + COMMENT \n + Temporarily revert this change until we find a better solution . \n try { \n mActivityManager . clearApplicationUserData ( packageName , observer ) ; \n } catch ( RemoteException e ) { \n SINGLE \n } \n + COMMENT \n + mPackageManager . clearApplicationUserData ( packageName , observer ) ; \n \n SINGLE \n long timeoutMark = System . currentTimeMillis ( ) + TIMEOUT_INTERVAL ;", "msg_token": "Temporarily rollback a change that s causing SetupWizard failures during restore"} {"diff": " public final class MultiPassLightingLogic extends DefaultTechniqueDefLogic { \n lightDir . setValue ( VarType . Vector4 , tmpLightDirection ) ; \n \n break ; \n + case Probe : \n + break ; \n default : \n throw new UnsupportedOperationException ( STRING0 + l . getType ( ) ) ; \n } \n public final class SinglePassLightingLogic extends DefaultTechniqueDefLogic { \n lightData . setVector4InArray ( tmpVec . getX ( ) , tmpVec . getY ( ) , tmpVec . getZ ( ) , spotAngleCos , lightDataIndex ) ; \n lightDataIndex ++ ; \n break ; \n + case Probe : \n + break ; \n default : \n throw new UnsupportedOperationException ( STRING0 + l . getType ( ) ) ; \n }", "msg_token": "Fixed a crash with singlepass an multipass TDL when a lightProbe is added to the scene"} {"diff": " public abstract class AbstractTestResourceSet { \n getMount ( ) + STRING0 , webResource . getWebappPath ( ) ) ; \n } \n \n + @ test \n + public final void testGetResourceCaseSensitive ( ) { \n + WebResource webResource = \n + resourceRoot . getResource ( getMount ( ) + STRING1 ) ; \n + Assert . assertFalse ( webResource . exists ( ) ) ; \n + } \n + \n + @ test \n + public final void testGetResourceTraversal ( ) { \n + WebResource webResource = \n + resourceRoot . getResource ( getMount ( ) + STRING2 ) ; \n + Assert . assertFalse ( webResource . exists ( ) ) ; \n + } \n + \n + \n SINGLE \n \n @ test ( expected = IllegalArgumentException . class )", "msg_token": "Add a couple of test cases"} {"diff": " public final class CipherSuiteConverter { \n handshakeAlgo = STRING0 ; \n } \n \n + handshakeAlgo = handshakeAlgo . replace ( STRING1 , STRING2 ) ; \n handshakeAlgo = handshakeAlgo . replace ( STRING3 , STRING4 ) ; \n if ( export ) { \n return handshakeAlgo + STRING5 ;", "msg_token": "Some OpenSSL aliases use EDH instead of DHE"} {"diff": " public class MainActivity extends ActionBarActivity implements NavDrawerActivity \n menuInfo = lastMenuInfo ; \n } \n \n - if ( menuInfo . targetView . getParent ( ) instanceof ListView == false \n - || ( ( ListView ) menuInfo . targetView . getParent ( ) ) . getId ( ) != R . id . nav_list ) { \n + if ( menuInfo == null \n + || menuInfo . targetView == null \n + || menuInfo . targetView . getParent ( ) == null \n + || menuInfo . targetView . getParent ( ) instanceof ListView == false \n + || ( ( ListView ) menuInfo . targetView . getParent ( ) ) . getId ( ) != R . id . nav_list ) { \n return false ; \n } \n final int position = menuInfo . position ;", "msg_token": "Just check everything for null before you do stuff with it"} {"diff": " public class EntitySerializer implements Serializer { \n writer . append ( STRING0 ) ; \n for ( Parameter p : method . getParameters ( ) ) { \n SINGLE \n - writer . append ( COMMA + STRING1 + p . getName ( ) + STRING2 ) ; \n + String paramType = writer . getGenericName ( true , p . getType ( ) ) ; \n + writer . append ( COMMA + STRING3 + paramType + STRING4 + p . getName ( ) + STRING2 ) ; \n } \n writer . append ( STRING5 ) ;", "msg_token": "added proper type parameter to ConstantImpl usage"} {"diff": " public class ColorRGBADialog extends javax . swing . JDialog { \n } \n \n public void setColor ( Color color ) { \n - this . color = color ; \n - jColorChooser1 . setColor ( color ) ; \n - \n - alphaSlider . setValue ( ( int ) ( ( float ) ( color . getAlpha ( ) / NUMBER0 f ) * NUMBER1 ) ) ; \n + if ( color != null ) { \n + this . color = color ; \n + jColorChooser1 . setColor ( color ) ; \n + \n + alphaSlider . setValue ( ( int ) ( ( float ) ( color . getAlpha ( ) / NUMBER0 f ) * NUMBER1 ) ) ; \n + } \n \n } \n }", "msg_token": "fixed NPE in colorRGBADIalog introduced by previous change"} {"diff": " public abstract class JavaPlugin implements Plugin { \n \n try { \n URL url = getClassLoader ( ) . getResource ( filename ) ; \n + \n + if ( url == null ) { \n + return null ; \n + } \n + \n URLConnection connection = url . openConnection ( ) ; \n connection . setUseCaches ( false ) ; \n return connection . getInputStream ( ) ;", "msg_token": "Fixed the fix of the fix of javaplugin getResource"} {"diff": " public class CompileStepBeforeRun extends BeforeRunTaskProvider < CompileStepBefor \n } \n } \n \n - done . down ( ) ; \n - scope . putUserData ( RUN_CONFIGURATION , configuration ) ; \n - compilerManager . make ( scope , callback ) ; \n + if ( ! myProject . isDisposed ( ) ) { \n + done . down ( ) ; \n + scope . putUserData ( RUN_CONFIGURATION , configuration ) ; \n + compilerManager . make ( scope , callback ) ; \n + } \n } \n } , ModalityState . NON_MODAL ) ; \n }", "msg_token": "do not start compilation for disposed project"} {"diff": " public class TextEditingTarget implements EditingTarget \n } \n } ; \n \n - if ( isCpp ) \n + if ( isCpp && dirtyState_ . getValue ( ) ) \n saveThenExecute ( null , sourceCommand ) ; \n else \n sourceCommand . execute ( ) ;", "msg_token": "only save cpp docs before sourcing if they are dirty"} {"diff": " public class AhcBridgeEndpointTest extends BaseAhcTest { \n \n @ test \n public void testBridgeEndpoint ( ) throws Exception { \n - String response = template . requestBodyAndHeader ( STRING0 + port1 + STRING1 , \n + String response = template . requestBodyAndHeader ( STRING0 + port1 + STRING1 , \n new ByteArrayInputStream ( STRING2 . getBytes ( ) ) , STRING3 , STRING4 , String . class ) ; \n assertEquals ( STRING5 , STRING6 , response ) ;", "msg_token": "Fixed a CS error of AhcBridgeEndpointTest"} {"diff": " public class PokemonGo { \n map = new Map ( this ) ; \n longitude = Double . NaN ; \n latitude = Double . NaN ; \n + altitude = Double . NaN ; \n } \n \n COMMENT \n public class LocationFixes extends ArrayList < SignatureOuterClass . Signature . Locat \n float latitude = offsetOnLatLong ( api . getLatitude ( ) , random . nextInt ( NUMBER0 ) + NUMBER1 ) ; \n float longitude = offsetOnLatLong ( api . getLongitude ( ) , random . nextInt ( NUMBER0 ) + NUMBER1 ) ; \n float altitude = NUMBER2 ; \n + if ( api . getAltitude ( ) != Double . NaN ) { \n + altitude = ( float ) api . getAltitude ( ) ; \n + } \n float verticalAccuracy = ( float ) ( NUMBER3 + ( NUMBER4 - NUMBER3 ) * random . nextDouble ( ) ) ; \n \n SINGLE", "msg_token": "Prefer user values to maintain consistency Altitude"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SpnegoAuthenticator extends AuthenticatorBase { \n String krb5Conf = System . getProperty ( Constants . KRB5_CONF_PROPERTY ) ; \n if ( krb5Conf == null ) { \n SINGLE \n - File krb5ConfFile = new File ( Bootstrap . getCatalinaBase ( ) , \n + File krb5ConfFile = new File ( container . getCatalinaBase ( ) , \n Constants . DEFAULT_KRB5_CONF ) ; \n System . setProperty ( Constants . KRB5_CONF_PROPERTY , \n krb5ConfFile . getAbsolutePath ( ) ) ; \n public class SpnegoAuthenticator extends AuthenticatorBase { \n String jaasConf = System . getProperty ( Constants . JAAS_CONF_PROPERTY ) ; \n if ( jaasConf == null ) { \n SINGLE \n - File jaasConfFile = new File ( Bootstrap . getCatalinaBase ( ) , \n + File jaasConfFile = new File ( container . getCatalinaBase ( ) , \n Constants . DEFAULT_JAAS_CONF ) ; \n System . setProperty ( Constants . JAAS_CONF_PROPERTY , \n jaasConfFile . getAbsolutePath ( ) ) ;", "msg_token": "Remove dependency on Bootstrap"} {"diff": " public class StdlibTest extends KotlinTestWithEnvironment { \n JvmContentRootsKt . addJvmClasspathRoot ( configuration , junitJar ) ; \n \n ContentRootsKt . addKotlinSourceRoot ( configuration , KotlinTestUtils . getHomeDirectory ( ) + STRING0 ) ; \n - ContentRootsKt . addKotlinSourceRoot ( configuration , KotlinTestUtils . getHomeDirectory ( ) + STRING1 ) ; \n configuration . put ( CLIConfigurationKeys . MESSAGE_COLLECTOR_KEY , PrintingMessageCollector . PLAIN_TEXT_TO_SYSTEM_ERR ) ; \n \n return KotlinCoreEnvironment . createForTests ( getTestRootDisposable ( ) , configuration , EnvironmentConfigFiles . JVM_CONFIG_FILES ) ;", "msg_token": "Minor delete kunit source root from StdlibTest"} {"diff": " abstract public class AvailableJavaHomes { \n return getAvailableJdk ( new Spec < JvmInstallation > ( ) { \n @ override \n public boolean isSatisfiedBy ( JvmInstallation element ) { \n - return element . getJavaHome ( ) . equals ( Jvm . current ( ) . getJavaHome ( ) ) ; \n + return ! element . getJavaHome ( ) . equals ( Jvm . current ( ) . getJavaHome ( ) ) ; \n } \n } ) ; \n } \n abstract public class AvailableJavaHomes { \n return getAvailableJdk ( new Spec < JvmInstallation > ( ) { \n @ override \n public boolean isSatisfiedBy ( JvmInstallation element ) { \n - return element . getJavaVersion ( ) . equals ( Jvm . current ( ) . getJavaVersion ( ) ) ; \n + return ! element . getJavaVersion ( ) . equals ( Jvm . current ( ) . getJavaVersion ( ) ) ; \n } \n } ) ; \n }", "msg_token": "Properly negate these conditions"} {"diff": " public class ExportHTMLAction extends AnAction implements DumbAware { \n } \n PathMacroManager . getInstance ( myView . getProject ( ) ) . collapsePaths ( problems ) ; \n try { \n - JDOMUtil . writeDocument ( new Document ( problems ) , \n - outputDirectoryName + File . separator + toolWrapper . getShortName ( ) + InspectionApplication . XML_EXTENSION , \n - CodeStyleSettingsManager . getSettings ( null ) . getLineSeparator ( ) ) ; \n + if ( problems . getContentSize ( ) != NUMBER0 ) { \n + JDOMUtil . writeDocument ( new Document ( problems ) , \n + outputDirectoryName + File . separator + toolWrapper . getShortName ( ) + InspectionApplication . XML_EXTENSION , \n + CodeStyleSettingsManager . getSettings ( null ) . getLineSeparator ( ) ) ; \n + } \n } \n catch ( IOException e ) { \n ex [ NUMBER0 ] = e ;", "msg_token": "create inspection xml if no problems"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + import NAMESPACE ; \n + \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + @ override \n + public boolean equals ( Object object ) { \n + if ( ! ( object instanceof ActivityLifecycleCallbacksWrapper ) ) \n + return false ; \n + ActivityLifecycleCallbacksWrapper that = ( ActivityLifecycleCallbacksWrapper ) object ; \n + return null == mCallback ? null == that . mCallback : mCallback . equals ( that . mCallback ) ; \n + } \n + \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ override \n - public boolean equals ( Object o ) { \n - return null == mCallback ? null == o : mCallback . equals ( o ) ; \n + public int hashCode ( ) { \n + return null != mCallback ? mCallback . hashCode ( ) : NUMBER0 ; \n } \n }", "msg_token": "equals method modified and hashcode added to ActivityLifecycleCallbacksWrapper"} {"diff": " public class JspHelper { \n public static String escapeXml ( Object obj ) { \n String value = null ; \n try { \n - value = ( obj == null ) ? null : String . valueOf ( obj ) ; \n + value = ( obj == null ) ? null : obj . toString ( ) ; \n } catch ( Exception e ) { \n SINGLE \n }", "msg_token": "Simplify escapeXml Object"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class TagDataService { \n cursor . moveToNext ( ) ; \n } \n ActFmSyncService . JsonHelper . featuredListFromJson ( featObject , tagData ) ; \n + tagData . putTransitory ( SyncFlags . ACTFM_SUPPRESS_OUTSTANDING_ENTRIES , true ) ; \n save ( tagData ) ; \n \n } finally {", "msg_token": "Don t record changeshappened for featured lists"} {"diff": " static final public IPersistentMap CHAR_MAP = \n STRING0 , STRING1 , \n STRING2 , STRING3 , \n STRING4 , STRING5 , \n - STRING6 , STRING7 , \n + STRING8 , STRING9 , \n + STRING10 , STRING11 , \n STRING12 , STRING13 , \n STRING14 , STRING15 , \n STRING16 , STRING17 ,", "msg_token": "fix munge handling of"} {"diff": " public class GLMModel extends Model < GLMModel , GLMModel . GLMParameters , GLMModel . GLM \n public boolean _stdOverride ; SINGLE \n \n public void validate ( GLM glm ) { \n + if ( _alpha != null && ( NUMBER0 < _alpha [ NUMBER1 ] || _alpha [ NUMBER1 ] < NUMBER1 ) ) \n + glm . error ( STRING0 , STRING1 ) ; \n if ( _compute_p_values && _solver != Solver . AUTO && _solver != Solver . IRLSM ) \n glm . error ( STRING2 , STRING3 + _solver ) ; \n if ( _compute_p_values && ( _lambda == null || _lambda [ NUMBER1 ] > NUMBER1 ) )", "msg_token": "Added validation of alpha parameter in glm"} {"diff": " public class DroidGap extends Activity implements CordovaInterface { \n public boolean onKeyUp ( int keyCode , KeyEvent event ) \n { \n SINGLE \n - if ( appView . getHitTestResult ( ) . getType ( ) == WebView . HitTestResult . EDIT_TEXT_TYPE && \n - keyCode == KeyEvent . KEYCODE_BACK ) \n - { \n - return appView . onKeyUp ( keyCode , event ) ; \n + if ( appView . getHitTestResult ( ) != null && \n + appView . getHitTestResult ( ) . getType ( ) == WebView . HitTestResult . EDIT_TEXT_TYPE && \n + keyCode == KeyEvent . KEYCODE_BACK ) { \n + return appView . onKeyUp ( keyCode , event ) ; \n } \n else \n return super . onKeyUp ( keyCode , event ) ;", "msg_token": "Clicking the menu button crashes Jellybean"} {"diff": " public final class RenderTaskListGenerator { \n private static final Logger logger = LoggerFactory . getLogger ( RenderTaskListGenerator . class ) ; \n private List < RenderPipelineTask > taskList ; \n private List < Node > nodeList ; \n - private boolean refreshRequested ; \n \n public RenderTaskListGenerator ( ) { \n taskList = Lists . newArrayList ( ) ;", "msg_token": "Removed no longer necessary line"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n public class LargeValueFormatter implements ValueFormatter { \n \n - private static String [ ] SUFFIX = new String [ ] { \n + private static final String [ ] SUFFIX = new String [ ] { \n STRING0 , STRING1 , STRING2 , STRING3 , STRING4 \n } ; \n - \n - private static int MAX_LENGTH = NUMBER0 ; \n + private static final int MAX_LENGTH = NUMBER0 ; \n \n private DecimalFormat mFormat ; \n + private String mText ; \n \n public LargeValueFormatter ( ) { \n - \n mFormat = new DecimalFormat ( STRING5 ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public LargeValueFormatter ( String text ) { \n + this ( ) ; \n + mText = text ; \n + } \n + \n @ override \n public String getFormattedValue ( float value ) { \n - return makePretty ( value ) ; \n + return makePretty ( value ) + STRING6 + mText ; \n } \n \n COMMENT", "msg_token": "Large value formatter now can appends a specified text to the result string"} {"diff": " public class ResourcesManager { \n } \n \n synchronized ( this ) { \n - final ActivityResources activityResources = \n - getOrCreateActivityResourcesStructLocked ( \n - activityToken ) ; \n - \n - if ( overrideConfig != null ) { \n - activityResources . overrideConfig . setTo ( overrideConfig ) ; \n - } else { \n - activityResources . overrideConfig . setToDefaults ( ) ; \n - } \n + SINGLE \n + getOrCreateActivityResourcesStructLocked ( activityToken ) ; \n } \n \n SINGLE", "msg_token": "Fix issue where existing Activity Resources references would not update"} {"diff": " public class SampleSecureApplication extends WebMvcConfigurerAdapter { \n \n public static void main ( String [ ] args ) throws Exception { \n SINGLE \n - new SpringApplicationBuilder ( SampleSecureApplication . class ) . properties ( \n - STRING0 , STRING1 ) . run ( \n + new SpringApplicationBuilder ( SampleSecureApplication . class ) . properties ( STRING1 ) . run ( \n args ) ; \n }", "msg_token": "Switch default security filter back on"} {"diff": " public class JSONPrettyFormatterTest { \n expected = expected . replace ( STRING0 , STRING1 + File . separator + STRING2 \n + File . separator + STRING3 + File . separator + STRING4 ) ; \n String actual = new Scanner ( report , STRING5 ) . useDelimiter ( STRING6 ) . next ( ) ; \n - assertEquals ( expected , actual ) ; \n + \n + SINGLE \n + SINGLE \n } \n \n private File runFeaturesWithJSONPrettyFormatter ( final List < String > featurePaths ) throws IOException {", "msg_token": "fixed broken test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n public interface MavenDeployer extends MavenResolver { \n COMMENT \n COMMENT \n COMMENT \n - void addProtocolProviderJars ( List < File > jars ) ; \n + void addProtocolProviderJars ( Collection < File > jars ) ; \n \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public class BaseMavenDeployer extends AbstractMavenResolver implements MavenDep \n this . deployTaskFactory = deployTaskFactory ; \n } \n \n - public void addProtocolProviderJars ( List < File > jars ) { \n + public void addProtocolProviderJars ( Collection < File > jars ) { \n protocolProviderJars . addAll ( jars ) ; \n }", "msg_token": "Changed providerJars from List to Collection"} {"diff": " public class NotificationService { \n \n public void pushFromBacklog ( final Message message ) { \n if ( notify ( message ) ) { \n - pushToStack ( message ) ; \n + synchronized ( notifications ) { \n + pushToStack ( message ) ; \n + } \n } \n }", "msg_token": "added missing synchronize when pushing messages from mam backlog"} {"diff": " public class SessionManagementFilter extends SpringSecurityFilter { \n } else { \n SINGLE \n if ( request . getRequestedSessionId ( ) != null && ! request . isRequestedSessionIdValid ( ) ) { \n - invalidSessionRequested ( request , response ) ; \n + if ( invalidSessionUrl != null ) { \n + response . sendRedirect ( invalidSessionUrl ) ; \n + } \n } \n } \n } \n public class SessionManagementFilter extends SpringSecurityFilter { \n chain . doFilter ( request , response ) ; \n } \n \n - protected void invalidSessionRequested ( HttpServletRequest request , HttpServletResponse response ) throws IOException { \n - if ( invalidSessionUrl != null ) { \n - response . sendRedirect ( invalidSessionUrl ) ; \n - } \n - } \n - \n COMMENT \n COMMENT \n COMMENT \n public class SessionManagementFilter extends SpringSecurityFilter { \n this . sessionStrategy = sessionStrategy ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void setInvalidSessionUrl ( String sessionTimeoutUrl ) { \n this . invalidSessionUrl = sessionTimeoutUrl ; \n }", "msg_token": "Simplified implementation by removing template method"} {"diff": " public class RestPermissions { \n public static final String ROLES_READ = STRING0 ; \n public static final String ROLES_EDIT = STRING1 ; \n public static final String ROLES_DELETE = STRING2 ; \n + public static final String CLUSTER_CONFIG_ENTRY_CREATE = STRING3 ; \n + public static final String CLUSTER_CONFIG_ENTRY_READ = STRING4 ; \n + public static final String CLUSTER_CONFIG_ENTRY_EDIT = STRING5 ; \n + public static final String CLUSTER_CONFIG_ENTRY_DELETE = STRING6 ; \n \n SINGLE \n public static final Set < String > READER_BASE_PERMISSIONS = ImmutableSet . < String > builder ( ) . add (", "msg_token": "Add permissions for the cluster config"} {"diff": " public abstract class InspectionProfileEntry implements BatchSuppressableTool { \n for ( Language language : viewProvider . getLanguages ( ) ) { \n ContainerUtil . addIfNotNull ( suppressors , LanguageInspectionSuppressors . INSTANCE . forLanguage ( language ) ) ; \n } \n + ContainerUtil . addIfNotNull ( suppressors , LanguageInspectionSuppressors . INSTANCE . forLanguage ( element . getLanguage ( ) ) ) ; \n return suppressors ; \n } \n return Collections . singleton ( LanguageInspectionSuppressors . INSTANCE . forLanguage ( element . getLanguage ( ) ) ) ;", "msg_token": "Retrieve suppression actions in template languages for embedded tokens"} {"diff": " \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class Bug_for_smoothrat8 extends TestCase { \n \n public void test_set ( ) throws Exception { \n - Map < Integer , Object > map = new HashMap < Integer , Object > ( ) ; \n + Map < Integer , Object > map = new LinkedHashMap < Integer , Object > ( ) ; \n map . put ( NUMBER0 , STRING0 ) ; \n map . put ( NUMBER1 , STRING1 ) ; \n \n public class Bug_for_smoothrat8 extends TestCase { \n \n String text = JSON . toJSONString ( entity , SerializerFeature . WriteClassName ) ; \n System . out . println ( text ) ; \n - Assert . assertEquals ( STRING2 , \n + Assert . assertEquals ( STRING3 , \n text ) ; \n \n Entity entity2 = JSON . parseObject ( text , Entity . class ) ;", "msg_token": "Fixed com alibaba json bvt bug Bug_for_smoothrat8 to not rely on unguarenteed order"} {"diff": " public abstract class TitanBlueprintsTransaction implements TitanTransaction { \n if ( id instanceof Number && AttributeUtil . isWholeNumber ( ( Number ) id ) ) { \n return addVertex ( ( ( Number ) id ) . longValue ( ) ) ; \n } else { \n - if ( id != null ) log . warn ( STRING0 , id ) ; \n + SINGLE \n return addVertex ( null ) ; \n } \n \n public class StandardTitanTx extends TitanBlueprintsTransaction { \n public TitanVertex addVertex ( Long vertexId ) { \n verifyWriteAccess ( ) ; \n if ( vertexId != null && ! graph . getConfiguration ( ) . allowVertexIdSetting ( ) ) { \n - log . warn ( STRING1 , vertexId ) ; \n + log . info ( STRING1 , vertexId ) ; \n vertexId = null ; \n } \n Preconditions . checkArgument ( vertexId != null || ! graph . getConfiguration ( ) . allowVertexIdSetting ( ) , STRING2 ) ;", "msg_token": "Removed warning so that Titan silently ignores passed in ids"} {"diff": " public class TaskExecutorService extends AbstractService implements Scheduler < Ta \n task . getRequestId ( ) , task . getTaskRunnerCallable ( ) . canFinish ( ) , \n preemptionQueue . size ( ) , numSlotsAvailable . get ( ) , waitQueue . size ( ) ) ; \n } \n - if ( numSlotsAvailable . get ( ) == NUMBER0 && preemptionQueue . isEmpty ( ) ) { \n + if ( numSlotsAvailable . get ( ) == NUMBER0 && ( enablePreemption == false || preemptionQueue . isEmpty ( ) ) ) { \n shouldWait = true ; \n } \n } else {", "msg_token": "When pre emption is disabled task scheduler gets into loop Prasanth Jayachandran reviewed by Gopal V"} {"diff": " public class Person { \n String lastName = json . optString ( STRING0 ) ; \n String displayName = json . optString ( STRING1 ) ; \n String avatarUrl = json . optString ( STRING2 ) ; \n + SINGLE \n Role role = Role . fromKey ( json . optJSONArray ( STRING3 ) . optString ( NUMBER0 ) ) ; \n \n return new Person ( personID , localTableBlogId , username , firstName , lastName , displayName , avatarUrl , role ) ;", "msg_token": "Adds a comment which explains why we pick the first role from network response"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public class AdminConsolePlugin implements Plugin { \n adminPort = JiveGlobals . getXMLProperty ( STRING0 , NUMBER0 ) ; \n adminSecurePort = JiveGlobals . getXMLProperty ( STRING1 , NUMBER1 ) ; \n adminServer = new Server ( ) ; \n + SINGLE \n + adminServer . setSendServerVersion ( false ) ; \n \n SINGLE \n if ( adminPort > NUMBER2 ) {", "msg_token": "Removed Jetty info from HTTP headers"} {"diff": " public final class ActivityManagerService extends ActivityManagerNative \n SystemProperties . set ( STRING0 , STRING1 ) ; \n } \n \n - public long inputDispatchingTimedOut ( int pid , boolean aboveSystem ) { \n + public long inputDispatchingTimedOut ( int pid , final boolean aboveSystem ) { \n if ( checkCallingPermission ( android . Manifest . permission . FILTER_EVENTS ) \n != PackageManager . PERMISSION_GRANTED ) { \n throw new SecurityException ( STRING2 \n public final class ActivityManagerService extends ActivityManagerNative \n } \n \n if ( proc != null ) { \n - appNotResponding ( proc , null , null , aboveSystem , STRING3 ) ; \n + final ProcessRecord pr = proc ; \n + mHandler . post ( new Runnable ( ) { \n + @ override \n + public void run ( ) { \n + appNotResponding ( pr , null , null , aboveSystem , STRING3 ) ; \n + } \n + } ) ; \n if ( proc . instrumentationClass != null || proc . usingWrapper ) { \n return INSTRUMENTATION_KEY_DISPATCHING_TIMEOUT ; \n }", "msg_token": "Move stack dump off of InputDispatcher thread"} {"diff": " public class ServerTestUtils { \n props . put ( STRING0 , STRING1 ) ; \n \n VoldemortConfig config = new VoldemortConfig ( props ) ; \n - \n - config = new VoldemortConfig ( props ) ; \n config . setMysqlDatabaseName ( STRING2 ) ; \n config . setMysqlUsername ( STRING2 ) ; \n config . setMysqlPassword ( STRING2 ) ;", "msg_token": "Remove redundant VoldemortConfig allocation"} {"diff": " public class CacheManagingDrawTask extends DrawTask { \n return NUMBER0 ; \n } \n long startTime = System . currentTimeMillis ( ) ; \n - IDanmakus danmakus = danmakuList . subnew ( curr , end ) ; \n + IDanmakus danmakus = null ; \n + synchronized ( danmakuList ) { \n + danmakus = danmakuList . subnew ( curr , end ) ; \n + } \n if ( danmakus == null || danmakus . isEmpty ( ) ) { \n mCacheTimer . update ( end ) ; \n return NUMBER0 ;", "msg_token": "fix a ConcurrentModificationExceptio"} {"diff": " public final class Main implements ActionListener { \n setTrayIcon ( ) ; \n tray . add ( trayIcon ) ; \n } catch ( AWTException e1 ) { \n - SINGLE \n Tools . showError ( e1 ) ; \n } \n } \n public final class Main implements ActionListener { \n try { \n final HTTPServerConfig serverConfig = new HTTPServerConfig ( config . getServerPort ( ) , false ) ; \n httpServer = new HTTPServer ( serverConfig , true ) ; \n - httpServer . run ( ) ; \n + httpServer . run ( ) ; \n if ( enableHttpServerItem != null ) { \n enableHttpServerItem . setState ( httpServer . isRunning ( ) ) ; \n setTrayIcon ( ) ;", "msg_token": "remove misleading comment getSystemTray actually throws that exception earlier"} {"diff": " class WiredAccessoryObserver extends UEventObserver { \n try { \n FileReader file = new FileReader ( uEventInfo [ i ] [ NUMBER0 ] ) ; \n int len = file . read ( buffer , NUMBER1 , NUMBER2 ) ; \n + file . close ( ) ; \n newState = Integer . valueOf ( ( new String ( buffer , NUMBER1 , len ) ) . trim ( ) ) ; \n \n file = new FileReader ( uEventInfo [ i ] [ NUMBER3 ] ) ; \n len = file . read ( buffer , NUMBER1 , NUMBER2 ) ; \n + file . close ( ) ; \n newName = new String ( buffer , NUMBER1 , len ) . trim ( ) ; \n \n } catch ( FileNotFoundException e ) {", "msg_token": "Fixing CloseGuard reported issue in WiredAccessoryObserver"} {"diff": " public final class ManageRegisteredServicesMultiActionController extends MultiAc \n \n final String evalOrderAsString = request . getParameter ( STRING0 ) ; \n if ( ! GenericValidator . isLong ( evalOrderAsString ) ) { \n - response . setStatus ( HttpServletResponse . SC_INTERNAL_SERVER_ERROR ) ; \n throw new IllegalArgumentException ( STRING1 + evalOrderAsString ) ; \n }", "msg_token": "Removed the line that manually set the response status code"} {"diff": " public class TransportClusterUpdateSettingsAction extends TransportMasterNodeOpe \n } \n \n if ( ! changed ) { \n + latch . countDown ( ) ; \n return currentState ; \n }", "msg_token": "count down latch if we don t have any changes in cluster update settings"} {"diff": " public class Notification implements Parcelable \n \n static Message getMessageFromBundle ( Bundle bundle ) { \n try { \n - if ( ! bundle . containsKey ( KEY_TEXT ) || ! bundle . containsKey ( KEY_TIMESTAMP ) || \n - ! bundle . containsKey ( KEY_SENDER ) ) { \n + if ( ! bundle . containsKey ( KEY_TEXT ) || ! bundle . containsKey ( KEY_TIMESTAMP ) ) { \n return null ; \n } else { \n Message message = new Message ( bundle . getCharSequence ( KEY_TEXT ) ,", "msg_token": "Fix broken MessagingStyle"} {"diff": " public class CordovaActivity extends Activity implements CordovaInterface { \n COMMENT \n COMMENT \n public Object onMessage ( String id , Object data ) { \n - LOG . d ( TAG , STRING0 + id + STRING1 + data + STRING2 ) ; \n + if ( ! STRING3 . equals ( id ) ) { \n + LOG . d ( TAG , STRING0 + id + STRING1 + data + STRING2 ) ; \n + } \n + \n if ( STRING4 . equals ( id ) ) { \n if ( STRING5 . equals ( data . toString ( ) ) ) { \n this . removeSplashScreen ( ) ; \n public class CordovaActivity extends Activity implements CordovaInterface { \n } \n } \n } \n -", "msg_token": "Silence excessive logging from scroll events"} {"diff": " public class NioEndpoint extends AbstractEndpoint { \n cancelledKey ( sk , SocketStatus . STOP ) ; \n } else if ( sk . isValid ( ) && attachment != null ) { \n attachment . access ( ) ; SINGLE \n - sk . attach ( attachment ) ; SINGLE \n NioChannel channel = attachment . getChannel ( ) ; \n if ( sk . isReadable ( ) || sk . isWritable ( ) ) { \n if ( attachment . getSendfileData ( ) != null ) {", "msg_token": "Remove this line"} {"diff": " public abstract class Graylog2Module extends AbstractModule { \n return ; \n } \n \n - install ( new FactoryModuleBuilder ( ) . implement ( MessageInput . class , target ) . build ( factoryClass ) ) ; \n - inputMapBinder . addBinding ( target . getCanonicalName ( ) ) . to ( Key . get ( factoryClass ) ) ; \n + installInput ( inputMapBinder , target , factoryClass ) ; \n } \n \n protected MapBinder < String , MessageOutput . Factory < ? extends MessageOutput > > outputsMapBinder ( ) {", "msg_token": "Remove code duplication in Graylog2Module installInput"} {"diff": " public class XMLRuleHandler extends DefaultHandler { \n message . append ( STRING0 ) ; \n message . append ( attrs . getValue ( STRING1 ) ) ; \n checkNumber ( attrs ) ; \n - } else if ( inSuggestion && ! inMessage ) { \n + } else if ( inSuggestion ) { \n if ( suggestionMatchesOutMsg == null ) { \n suggestionMatchesOutMsg = new ArrayList < > ( ) ; \n }", "msg_token": "remove dead code"} {"diff": " public class ListOption extends TextOption { \n COMMENT \n @ notnull \n public String toString ( ) { \n - StringBuffer res = new StringBuffer ( ) ; \n - res . append ( STRING0 ) ; \n - res . append ( getName ( ) ) ; \n - res . append ( STRING1 ) ; \n - res . append ( getValue ( ) ) ; \n - \n - return res . toString ( ) ; \n + return STRING0 + getName ( ) + STRING1 + getValue ( ) ; \n } \n \n @ notnull protected final List < String > dflt ;", "msg_token": "Replaced StringBuilder with string concatenation"} {"diff": " static Symbol registerArg ( int n ) { \n static class ArgReader extends AFn { \n public Object invoke ( Object reader , Object pct ) throws Exception { \n PushbackReader r = ( PushbackReader ) reader ; \n + if ( ARG_ENV . deref ( ) == null ) \n + { \n + return interpretToken ( readToken ( r , STRING0 ) ) ; \n + } \n int ch = r . read ( ) ; \n unread ( r , ch ) ; \n SINGLE", "msg_token": "allow s not in yields as is symbol"} {"diff": " public class ApplicationImpl extends ComponentManagerImpl implements Application \n return ; \n } \n \n - LOG . assertTrue ( myTestModeFlag || ! Thread . holdsLock ( PsiLock . LOCK ) , STRING0 ) ; \n + LOG . assertTrue ( ! Thread . holdsLock ( PsiLock . LOCK ) , STRING0 ) ; \n try { \n myActionsLock . readLock ( ) . acquire ( ) ; \n }", "msg_token": "must not hold PsiLock in readAction in tests"} {"diff": " class GuidedActionAdapter extends RecyclerView . Adapter { \n } \n } else { \n if ( mSelectedView == v ) { \n + mStylist . onAnimateItemPressed ( avh . mStylistViewHolder , false ) ; \n mSelectedView = null ; \n } \n }", "msg_token": "undo pressed animation when losing focus"} {"diff": " public class MetaDataService extends AbstractComponent { \n if ( ! ignoreConflicts && mergeResult . hasConflicts ( ) ) { \n throw new MergeMappingException ( mergeResult . conflicts ( ) ) ; \n } \n - existingMappers . put ( index , newMapper ) ; \n + existingMappers . put ( index , existingMapper ) ; \n } \n } else { \n throw new IndexMissingException ( new Index ( index ) ) ;", "msg_token": "use existing mapping when merging"} {"diff": " public class RoutedStore implements Store < ByteArray , byte [ ] > { \n try { \n GetAllResult getResult = f . get ( ) ; \n if ( getResult . exception != null ) { \n + if ( getResult . exception instanceof VoldemortApplicationException ) { \n + throw ( VoldemortException ) getResult . exception ; \n + } \n failures . add ( getResult . exception ) ; \n continue ; \n } \n public class RoutedStore implements Store < ByteArray , byte [ ] > { \n try { \n GetResult < R > getResult = f . get ( ) ; \n if ( getResult . exception != null ) { \n + SINGLE \n + if ( getResult . exception instanceof VoldemortApplicationException ) { \n + throw ( VoldemortException ) getResult . exception ; \n + } \n failures . add ( getResult . exception ) ; \n continue ; \n }", "msg_token": "Added VoldemortApplicationException handling inside GetCallable GetAllCallable"} {"diff": " public class FormattedEmailAlertSender extends StaticEmailAlertSender implements \n STRING0 + \n STRING1 + \n STRING2 + \n - STRING3 + \n + STRING4 + \n STRING5 + \n STRING6 + \n STRING7 + \n public class StaticEmailAlertSender implements AlertSender { \n } \n \n protected String buildStreamDetailsURL ( URI baseUri , AlertCondition . CheckResult checkResult , Stream stream ) { \n + SINGLE \n + if ( baseUri == null ) { \n + return STRING8 ; \n + } \n + \n StringBuilder sb = new StringBuilder ( ) ; \n \n int time = NUMBER0 ;", "msg_token": "Do not include stream URL in email if web URL is not configured"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class GoModuleLibrariesInitializer implements ModuleComponent { \n ApplicationManager . getApplication ( ) . invokeLater ( updateRequest ) ; \n } \n else { \n - myAlarm . addRequest ( updateRequest , delay ) ; \n + myAlarm . addRequest ( updateRequest , delay , ModalityState . NON_MODAL ) ; \n } \n }", "msg_token": "Do not add libraries in modal state"} {"diff": " class DBTCPConnector implements DBConnector { \n return _curAddress ; \n } \n \n + public List < ServerAddress > getAllAddress ( ) { \n + return _allHosts ; \n + } \n + \n public String getConnectPoint ( ) { \n return _curAddress . toString ( ) ; \n } \n public class Mongo { \n public ServerAddress getAddress ( ) { \n return _connector . getAddress ( ) ; \n } \n + \n + public List < ServerAddress > getAllAddress ( ) { \n + List < ServerAddress > result = _connector . getAllAddress ( ) ; \n + if ( result == null ) { \n + return Arrays . asList ( getAddress ( ) ) ; \n + } \n + return result ; \n + } \n \n final ServerAddress _addr ; \n final List < ServerAddress > _addrs ;", "msg_token": "add ability to return the currently used server addresses"} {"diff": " public abstract class MediaplayerActivity extends ActionBarActivity \n @ override \n public void onProgressChanged ( SeekBar seekBar , int progress , \n boolean fromUser ) { \n - prog = controller . onSeekBarProgressChanged ( seekBar , progress , fromUser , \n - txtvPosition ) ; \n + if ( controller != null ) { \n + prog = controller . onSeekBarProgressChanged ( seekBar , progress , fromUser , \n + txtvPosition ) ; \n + } \n } \n \n @ override \n public void onStartTrackingTouch ( SeekBar seekBar ) { \n - controller . onSeekBarStartTrackingTouch ( seekBar ) ; \n + if ( controller != null ) { \n + controller . onSeekBarStartTrackingTouch ( seekBar ) ; \n + } \n } \n \n @ override \n public void onStopTrackingTouch ( SeekBar seekBar ) { \n - controller . onSeekBarStopTrackingTouch ( seekBar , prog ) ; \n + if ( controller != null ) { \n + controller . onSeekBarStopTrackingTouch ( seekBar , prog ) ; \n + } \n } \n \n }", "msg_token": "Fixed NullPointerException in MediaPlayerActivity"} {"diff": " public final class JerseyBroadcasterUtil { \n if ( cr == null ) { \n logger . debug ( STRING0 , res , cr ) ; \n logger . error ( STRING1 ) ; \n + r . getBroadcaster ( ) . removeAtmosphereResource ( r ) ; \n return ; \n }", "msg_token": "Remove the AtmosphereResource in case something goes wrong"} {"diff": " public class DnsDiscovery implements PeerDiscovery { \n \n private String [ ] hostNames ; \n private NetworkParameters netParams ; \n - private static final String [ ] defaultHosts = new String [ ] { STRING0 , STRING1 } ; \n + \n + public static final String [ ] defaultHosts = new String [ ] { \n + STRING2 , SINGLE \n + STRING0 , SINGLE \n + STRING1 SINGLE \n + } ; \n \n COMMENT \n COMMENT", "msg_token": "Add dnsseed bluematt me to the DNS discovery list"} {"diff": " public class StandardTitanTx extends TitanBlueprintsTransaction implements TypeI \n } \n \n public TitanProperty setProperty ( TitanVertex vertex , final TitanKey key , Object value ) { \n + verifyWriteAccess ( vertex ) ; \n Preconditions . checkNotNull ( key ) ; \n Preconditions . checkArgument ( key . isUnique ( Direction . OUT ) , STRING0 , key . getName ( ) ) ;", "msg_token": "Check write access in setProperty"} {"diff": " public interface Texture \n public enum TextureWrap \n { \n ClampToEdge , \n - Wrap \n + Repeat \n } \n \n COMMENT", "msg_token": "Changed texture wrap enum"} {"diff": " public class UserDataProperty extends PropertySupport . ReadWrite < String > { \n } else if ( type instanceof Long ) { \n return NUMBER0 ; \n } else { \n - Logger . getLogger ( UserDataProperty . class . getName ( ) ) . log ( Level . WARNING , STRING0 + ( type == null ? STRING1 : type . getClass ( ) ) ) ; \n + SINGLE \n return - NUMBER1 ; \n } \n }", "msg_token": "Stopped the not editable Userdata warning to show up"} {"diff": " public class ManagedShutdownStrategyTest extends ContextTestSupport { \n } \n \n public void testManagedShutdownStrategy ( ) throws Exception { \n + SINGLE \n + context . getShutdownStrategy ( ) . setTimeout ( NUMBER0 ) ; \n + \n MBeanServer mbeanServer = context . getManagementStrategy ( ) . getManagementAgent ( ) . getMBeanServer ( ) ; \n \n ObjectName on = ObjectName . getInstance ( STRING0 ) ;", "msg_token": "Fixed unit test"} {"diff": " public abstract class AbstractPartialInstant implements PartialInstant , Serializ \n public AbstractPartialInstant ( Object instant , Chronology chronology ) { \n super ( ) ; \n InstantConverter converter = ConverterManager . getInstance ( ) . getInstantConverter ( instant ) ; \n + chronology = converter . getChronology ( instant , chronology ) ; \n if ( chronology == null ) { \n chronology = ISOChronology . getInstance ( ) ; \n }", "msg_token": "Fix ObjectChronology constructor to use converter properly"} {"diff": " public abstract class ZWaveCommandClass { \n MULTI_INSTANCE ( NUMBER0 , STRING0 , ZWaveMultiInstanceCommandClass . class ) , \n DOOR_LOCK ( NUMBER1 , STRING1 , null ) , \n USER_CODE ( NUMBER2 , STRING2 , null ) , \n - CONFIGURATION ( NUMBER3 , STRING3 , null ) , \n + CONFIGURATION ( NUMBER3 , STRING3 , ZWaveConfigurationCommandClass . class ) , \n ALARM ( NUMBER4 , STRING4 , null ) , \n MANUFACTURER_SPECIFIC ( NUMBER5 , STRING5 , ZWaveManufacturerSpecificCommandClass . class ) , \n POWERLEVEL ( NUMBER6 , STRING6 , null ) ,", "msg_token": "Added configuration command class"} {"diff": " public class ExpressionAnalyzer \n getCaseResultExpressions ( node . getWhenClauses ( ) , node . getDefaultValue ( ) ) ) ; \n expressionTypes . put ( node , type ) ; \n \n + for ( WhenClause whenClause : node . getWhenClauses ( ) ) { \n + Type whenClauseType = process ( whenClause . getResult ( ) , context ) ; \n + checkNotNull ( whenClauseType , STRING0 , whenClause ) ; \n + expressionTypes . put ( whenClause , whenClauseType ) ; \n + } \n + \n return type ; \n } \n \n public class ExpressionAnalyzer \n getCaseResultExpressions ( node . getWhenClauses ( ) , node . getDefaultValue ( ) ) ) ; \n expressionTypes . put ( node , type ) ; \n \n + for ( WhenClause whenClause : node . getWhenClauses ( ) ) { \n + Type whenClauseType = process ( whenClause . getResult ( ) , context ) ; \n + checkNotNull ( whenClauseType , STRING0 , whenClause ) ; \n + expressionTypes . put ( whenClause , whenClauseType ) ; \n + } \n + \n return type ; \n }", "msg_token": "Record type of WhenClause in ExpressionAnalyzer"} {"diff": " public class MultiUserChatTest extends SmackTestCase { \n muc2 . join ( STRING0 , null , history , SmackConfiguration . getPacketReplyTimeout ( ) ) ; \n \n Message msg ; \n - SINGLE \n - muc2 . nextMessage ( NUMBER0 ) ; \n - SINGLE \n + SINGLE \n msg = muc2 . nextMessage ( NUMBER0 ) ; \n assertNotNull ( STRING1 , msg ) ; \n assertEquals ( STRING2 , STRING3 , msg . getBody ( ) ) ; \n public class MultiUserChatTest extends SmackTestCase { \n history . setMaxStanzas ( NUMBER1 ) ; \n muc3 . join ( STRING4 , null , history , SmackConfiguration . getPacketReplyTimeout ( ) ) ; \n \n - SINGLE \n - muc3 . nextMessage ( NUMBER0 ) ; \n SINGLE \n msg = muc3 . nextMessage ( NUMBER0 ) ; \n assertNotNull ( STRING1 , msg ) ;", "msg_token": "Removed welcome message from testDiscussionHistory since the server no longer sends that message"} {"diff": " public class ReaderPostDetailFragment extends Fragment \n TextView txtTitle = ( TextView ) getView ( ) . findViewById ( R . id . text_title ) ; \n TextView txtDateline = ( TextView ) getView ( ) . findViewById ( R . id . text_dateline ) ; \n \n - WPNetworkImageView imgBlavatar = ( WPNetworkImageView ) getView ( ) . findViewById ( R . id . image_blavatar ) ; \n ReaderTagStrip tagStrip = ( ReaderTagStrip ) getView ( ) . findViewById ( R . id . tag_strip ) ; \n ReaderPostDetailHeaderView headerView = ( ReaderPostDetailHeaderView ) getView ( ) . findViewById ( R . id . header_view ) ; \n if ( ! canShowFooter ( ) ) {", "msg_token": "Removed unused blavatar"} {"diff": " public class TestShaderNodes extends SimpleApplication { \n mat . selectTechnique ( STRING0 , renderManager ) ; \n Technique t = mat . getActiveTechnique ( ) ; \n \n - for ( Shader . ShaderSource shaderSource : t . getShader ( ) . getSources ( ) ) { \n - System . out . println ( shaderSource . getSource ( ) ) ; \n - } \n + SINGLE \n + SINGLE \n + SINGLE \n \n \n mat . setColor ( STRING1 , ColorRGBA . Yellow ) ;", "msg_token": "fix build error"} {"diff": " public class GraphHopperWeb implements GraphHopperAPI \n + STRING0 + request . getHint ( STRING1 , NUMBER0 ) \n + STRING2 + request . getAlgorithm ( ) \n + STRING3 + request . getLocale ( ) . toString ( ) \n - + STRING4 + request . getVehicle ( ) \n + STRING5 + withElevation ; \n + \n + if ( ! request . getVehicle ( ) . isEmpty ( ) ) \n + url += STRING4 + request . getVehicle ( ) ; \n + \n if ( ! key . isEmpty ( ) ) \n url += STRING6 + key ;", "msg_token": "Fixed travis error on an empty vehicleStr"} {"diff": " public class Application extends ActorSDKApplication { \n ActorSDK . sharedActor ( ) . setHomePage ( STRING0 ) ; \n ActorSDK . sharedActor ( ) . setInviteUrl ( STRING0 ) ; \n \n - ActorSDK . sharedActor ( ) . setEndpoints ( new String [ ] { STRING1 } ) ; \n - \n - SINGLE \n - SINGLE \n - SINGLE \n + SINGLE \n \n ActorStyle style = ActorSDK . sharedActor ( ) . style ; \n style . setMainColor ( Color . parseColor ( STRING2 ) ) ;", "msg_token": "update foo endpoints"} {"diff": " public class StringAndPartitionAwarePartitioningStrategy implements Partitioning \n public final static StringAndPartitionAwarePartitioningStrategy INSTANCE \n = new StringAndPartitionAwarePartitioningStrategy ( ) ; \n \n + SINGLE \n + private StringAndPartitionAwarePartitioningStrategy ( ) { } \n + \n @ override \n public Object getPartitionKey ( Object key ) { \n if ( key instanceof String ) {", "msg_token": "Made a Singleton out of the StringAndPartitionAwarePartitioningStrategy"} {"diff": " class ConfigurationClassParser { \n throw new IllegalArgumentException ( STRING0 ) ; \n } \n for ( int i = NUMBER0 ; i < nLocations ; i ++ ) { \n - locations [ NUMBER0 ] = this . environment . resolveRequiredPlaceholders ( locations [ NUMBER0 ] ) ; \n + locations [ i ] = this . environment . resolveRequiredPlaceholders ( locations [ i ] ) ; \n } \n ClassLoader classLoader = this . resourceLoader . getClassLoader ( ) ; \n if ( ! StringUtils . hasText ( name ) ) {", "msg_token": "Fix regression in PropertySource placeholder resolution"} {"diff": " public class GroovyDslScript { \n } \n \n private boolean handleDslError ( Throwable e ) { \n - LOG . error ( e ) ; \n if ( project . isDisposed ( ) || ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) { \n return true ; \n }", "msg_token": "don t log error exceptions during gdsl processing only info"} {"diff": " public class DownloadManager { \n COMMENT \n public static final int NETWORK_WIFI = NUMBER0 < < NUMBER0 ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public static final int NETWORK_BLUETOOTH = NUMBER0 < < NUMBER1 ; \n + \n private Uri mUri ; \n private Uri mDestinationUri ; \n private List < Pair < String , String > > mRequestHeaders = new ArrayList < Pair < String , String > > ( ) ;", "msg_token": "Adds missing Bluetooth as network type"} {"diff": " public class Unifier { \n return null ; \n } \n List < AnalyzedTokenReadings > uTokens = new ArrayList < > ( ) ; \n + int counter = NUMBER0 ; \n for ( int j = NUMBER0 ; j < tokSequence . size ( ) ; j ++ ) { \n for ( int i = NUMBER0 ; i < tokSequenceEquivalences . get ( j ) . size ( ) ; i ++ ) { \n int featUnified = NUMBER0 ; \n public class Unifier { \n featUnified = NUMBER0 ; \n } else { \n featUnified ++ ; \n - } \n + } SINGLE \n + SINGLE \n + SINGLE \n if ( featUnified == unificationFeats . entrySet ( ) . size ( ) ) { \n addTokenToSequence ( uTokens , tokSequence . get ( j ) . getAnalyzedToken ( i ) , j ) ; \n }", "msg_token": "add a FIXME"} {"diff": " public class RawLogBuffersFactory implements AutoCloseable \n return newInstance ( subscriptionsDir , channel , sessionId , streamId , correlationId , termBufferLength ) ; \n } \n \n - private FileChannel createTemplateFile ( final String dataDir , final String name , final long size ) \n + private static FileChannel createTemplateFile ( final String dataDir , final String name , final long size ) \n { \n final File templateFile = new File ( dataDir , name ) ; \n templateFile . deleteOnExit ( ) ;", "msg_token": "Java Made method static to avoid this need"} {"diff": " public class KillbillGuiceListener extends SetupServer \n return new KillbillServerModule ( ) ; \n } \n \n + \n + \n @ override \n public void contextInitialized ( ServletContextEvent event ) \n { \n \n \n package NAMESPACE ; \n \n + \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class KillbillServerModule extends AbstractModule \n installKillbillModules ( ) ; \n } \n \n + \n protected void configureDao ( ) { \n + SINGLE \n + try { \n + Class . forName ( STRING0 ) . newInstance ( ) ; \n + } catch ( Exception ignore ) { \n + } \n bind ( IDBI . class ) . to ( DBI . class ) . asEagerSingleton ( ) ; \n bind ( DBI . class ) . toProvider ( DBIProvider . class ) . asEagerSingleton ( ) ; \n }", "msg_token": "Add initialization for mysql driver in server module"} {"diff": " public abstract class PanelView extends FrameLayout { \n boolean expandBecauseOfFalsing ) { \n cancelPeek ( ) ; \n float target = expand ? getMaxPanelHeight ( ) : FLOAT0 ; \n + if ( ! expand ) { \n + mClosing = true ; \n + } \n flingToHeight ( vel , expand , target , collapseSpeedUpFactor , expandBecauseOfFalsing ) ; \n }", "msg_token": "Fix closing state"} {"diff": " public class Response \n \n COMMENT \n COMMENT \n + COMMENT \n COMMENT \n protected Connector connector ;", "msg_token": "Deprecate unused protected field"} {"diff": " public class NotSoMiniClusterIterations { \n config . setInteger ( STRING0 , NUMBER0 ) ; \n \n cluster = new LocalFlinkMiniCluster ( config , false ) ; \n + cluster . start ( ) ; \n \n runConnectedComponents ( cluster . getLeaderRPCPort ( ) ) ; \n } \n public class StreamingScalabilityAndLatency { \n config . setInteger ( STRING0 , NUMBER0 ) ; \n \n cluster = new LocalFlinkMiniCluster ( config , false , StreamingMode . STREAMING ) ; \n + cluster . start ( ) ; \n \n runPartitioningProgram ( cluster . getLeaderRPCPort ( ) , PARALLELISM ) ; \n }", "msg_token": "hotfix tests Fix manual tests to properly start testing cluster"} {"diff": " public class ShadowActivity extends ShadowContextWrapper { \n return contentView . findViewById ( id ) ; \n } else { \n System . out . println ( STRING0 ) ; \n + Thread . dumpStack ( ) ; \n return null ; \n } \n }", "msg_token": "Added Thread dumpStack to warning from ShadowActivity findViewById when contentView is null"} {"diff": " public class DashboardWidgetCreator { \n final TimeRange timeRange ; \n switch ( rangeType ) { \n case STRING0 : \n - timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING1 ) ) ) ) ; \n + timeRange = new RelativeRange ( Integer . parseInt ( String . valueOf ( timerangeConfig . get ( STRING0 ) ) ) ) ; \n break ; \n case STRING2 : \n timeRange = new KeywordRange ( ( String ) timerangeConfig . get ( STRING2 ) ) ;", "msg_token": "Use relative key to get relative timerange info"} {"diff": " public class OutgoingServerSession extends Session { \n COMMENT \n COMMENT \n public static boolean authenticateDomain ( String domain , String hostname ) { \n + if ( hostname == null || hostname . length ( ) == NUMBER0 ) { \n + SINGLE \n + return false ; \n + } \n try { \n SINGLE \n SINGLE", "msg_token": "Do not create outgoing connection if hostname is empty or null"} {"diff": " public final class CommonCrawlNGramJob { \n \n public static void main ( String [ ] args ) throws Exception { \n Configuration conf = new Configuration ( ) ; \n - conf . set ( STRING0 , STRING1 ) ; \n + SINGLE \n + SINGLE \n Job job = Job . getInstance ( conf , STRING2 ) ; \n job . setJarByClass ( CommonCrawlNGramJob . class ) ; \n job . setMapperClass ( TokenizerMapper . class ) ;", "msg_token": "comment out the xz compression as I got an Unexpected end of stream error in Amazon EMR with"} {"diff": " abstract class AbstractTFS extends FileSystem { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Improve Javadoc comments"} {"diff": " public class DuplicateVariableInsertTest extends PluggableActivitiTestCase { \n \n SINGLE \n assertEquals ( NUMBER0 , exceptions . size ( ) ) ; \n - assertTrue ( exceptions . get ( NUMBER1 ) instanceof ActivitiOptimisticLockingException ) ; \n \n SINGLE \n Map < String , Object > variables = runtimeService . getVariables ( processInstance . getId ( ) ) ;", "msg_token": "Fixing failing test for duplicate variable inserts"} {"diff": " public class WiederVsWiderRule extends GermanRule { \n if ( token . trim ( ) . equals ( STRING0 ) ) { \n SINGLE \n } else { \n - if ( token . equalsIgnoreCase ( STRING1 ) || token . equalsIgnoreCase ( STRING2 ) ) { \n + if ( token . equalsIgnoreCase ( STRING1 ) || token . equalsIgnoreCase ( STRING2 ) || token . equalsIgnoreCase ( STRING3 ) \n + || token . equalsIgnoreCase ( STRING4 ) ) { \n foundSpiegelt = true ; \n } else if ( token . equalsIgnoreCase ( STRING5 ) ) { \n foundWieder = true ;", "msg_token": "adding missing word forms"} {"diff": " public class GzipUtils { \n private static class StringMatch implements Predicate < String > { \n @ override \n public boolean test ( String s ) { \n + if ( s == null ) { \n + return false ; \n + } \n + \n return s . contains ( GZIP ) ; \n } \n }", "msg_token": "Add null check when header is empty"} {"diff": " public class SASLAuthentication { \n StringBuilder reply = new StringBuilder ( NUMBER0 ) ; \n reply . append ( STRING0 ) ; \n if ( successData != null ) { \n - reply . append ( STRING1 ) . append ( successData ) . append ( STRING2 ) ; \n + String successData_b64 = StringUtils . encodeBase64 ( successData ) . trim ( ) ; \n + reply . append ( STRING1 ) . append ( successData_b64 ) . append ( STRING2 ) ; \n } \n else { \n reply . append ( STRING3 ) ;", "msg_token": "Encode success data"} {"diff": " public final class InstallDirect { \n SINGLE \n Shell . Builder builder = new Shell . Builder ( ) \n . useSU ( ) \n - . setOnSTDERRLineListener ( new StderrListener ( callback ) ) \n - . addEnvironment ( STRING0 , STRING1 ) ; \n + . setOnSTDERRLineListener ( new StderrListener ( callback ) ) ; \n \n + Shell . Interactive shell = builder . open ( new OpenListener ( callback ) ) ; \n + shell . addCommand ( STRING2 ) ; \n if ( systemless ) { \n - builder . addEnvironment ( STRING3 , STRING1 ) ; \n + shell . addCommand ( STRING4 ) ; \n } \n - \n - Shell . Interactive shell = builder . open ( new OpenListener ( callback ) ) ; \n shell . addCommand ( getShellPath ( updateBinaryFile ) + STRING5 + getShellPath ( zipPath ) , NUMBER0 , new StdoutListener ( callback ) ) ; \n shell . addCommand ( STRING6 ) ; \n }", "msg_token": "Improve compatibility with su implementations"} {"diff": " public class FqNameUnsafe { \n \n \n private void validateFqName ( ) { \n - if ( fqName . indexOf ( STRING0 ) >= NUMBER0 ) { \n + if ( fqName . indexOf ( STRING0 ) >= NUMBER0 || fqName . indexOf ( STRING1 ) >= NUMBER0 ) { \n throw new IllegalArgumentException ( STRING2 + fqName ) ; \n } \n }", "msg_token": "prohibit in FqNameUnsafe"} {"diff": " public class AuthToken { \n \n private static final long serialVersionUID = NUMBER0 ; \n private String username ; \n + private Boolean anonymous ; \n \n COMMENT \n COMMENT \n public class AuthToken { \n COMMENT \n COMMENT \n public boolean isAnonymous ( ) { \n - return username == null || ! UserManager . getInstance ( ) . isRegisteredUser ( username ) ; \n + if ( anonymous == null ) { \n + anonymous = username == null || ! UserManager . getInstance ( ) . isRegisteredUser ( username ) ; \n + } \n + return anonymous ; \n } \n }", "msg_token": "Optimization keep info if user is anonymous"} {"diff": " public class CsrfPreventionFilter extends FilterBase { \n public void setEntryPoints ( String entryPoints ) { \n String values [ ] = entryPoints . split ( STRING0 ) ; \n for ( String value : values ) { \n - this . entryPoints . add ( value ) ; \n + this . entryPoints . add ( value . trim ( ) ) ; \n } \n }", "msg_token": "Trim the value before adding to the list"} {"diff": " public class TextView extends View implements ViewTreeObserver . OnPreDrawListener \n selectCurrentWord ( ) ; \n } \n \n - final InputMethodManager imm = ( InputMethodManager ) \n - getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n - imm . showSoftInput ( this , NUMBER0 , null ) ; \n + if ( ! mTextIsSelectable ) { \n + SINGLE \n + final InputMethodManager imm = ( InputMethodManager ) \n + getContext ( ) . getSystemService ( Context . INPUT_METHOD_SERVICE ) ; \n + imm . showSoftInput ( this , NUMBER0 , null ) ; \n + } \n \n ActionMode . Callback actionModeCallback = new SelectionActionModeCallback ( ) ; \n mSelectionActionMode = startActionMode ( actionModeCallback ) ;", "msg_token": "Do not display the IME when selection in non editable text"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n - \n - import NAMESPACE ; \n \n COMMENT \n COMMENT", "msg_token": "Remove unused imports"} {"diff": " public abstract class GitPlatformTest extends PlatformTestCase { \n \n @ override \n protected void setUp ( ) throws Exception { \n - myTestRoot = new File ( FileUtil . getTempDirectory ( ) ) ; \n + myTestRoot = new File ( FileUtil . getTempDirectory ( ) , STRING0 ) ; \n myFilesToDelete . add ( myTestRoot ) ; \n \n edt ( new ThrowableRunnable ( ) {", "msg_token": "git place testRoot into a subfolder of the temp directory"} {"diff": " public final class GraphVisualizer { \n sourceBinding . getDependencies ( dependencies , dependencies ) ; \n for ( Binding < ? > targetBinding : dependencies ) { \n String targetName = namesIndex . get ( targetBinding ) ; \n + if ( targetName == null ) { \n + targetName = STRING0 + targetBinding . provideKey ; \n + } \n writer . edge ( sourceName , targetName ) ; \n } \n }", "msg_token": "Fix dot writer from breaking when there are missing bindings"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Version { \n COMMENT \n - public static final String VERSION = STRING0 ; \n + public static final String VERSION = STRING1 ; \n \n COMMENT \n public static final int MAJOR ;", "msg_token": "updated to next snapshot version"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - \n - public class ListSamples extends ActionBarActivity { \n + public class ListSamples extends AppCompatActivity { \n \n public static final String INTENT_PATH = STRING0 ; \n public static final String INTENT_SAMPLE = STRING1 ;", "msg_token": "replace extends of deprecated activity"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class ProjectGenerator { \n \n private HashCode getHeaderSymlinkTreeHashCode ( ImmutableSortedMap < Path , Path > contents ) { \n Hasher hasher = Hashing . sha1 ( ) . newHasher ( ) ; \n + hasher . putBytes ( BuckVersion . getVersion ( ) . getBytes ( Charsets . UTF_8 ) ) ; \n for ( Map . Entry < Path , Path > entry : contents . entrySet ( ) ) { \n byte [ ] key = entry . getKey ( ) . toString ( ) . getBytes ( Charsets . UTF_8 ) ; \n byte [ ] value = entry . getValue ( ) . toString ( ) . getBytes ( Charsets . UTF_8 ) ;", "msg_token": "Rebuild Xcode symlink trees on Buck version change"} {"diff": " public class ForeignKey implements DatabaseObject , Comparable < ForeignKey > { \n \n ForeignKey that = ( ForeignKey ) o ; \n \n + if ( getForeignKeyColumns ( ) == null ) { \n + return this . getName ( ) . equalsIgnoreCase ( that . getName ( ) ) ; \n + } \n + \n return getForeignKeyColumns ( ) . equalsIgnoreCase ( that . getForeignKeyColumns ( ) ) \n && foreignKeyTable . equals ( that . foreignKeyTable ) \n && getPrimaryKeyColumns ( ) . equalsIgnoreCase ( that . getPrimaryKeyColumns ( ) )", "msg_token": "I can t gen dbDoc from changeLog like this"} {"diff": " public abstract class AbstractReplicatedMap < K , V > \n COMMENT \n COMMENT \n protected void memberAlive ( Member member ) { \n + mapMemberAdded ( member ) ; \n synchronized ( mapMembers ) { \n - if ( ! mapMembers . containsKey ( member ) ) { \n - mapMemberAdded ( member ) ; \n - } SINGLE \n mapMembers . put ( member , new Long ( System . currentTimeMillis ( ) ) ) ; \n } \n }", "msg_token": "Fix a possible deadlock when receiver thread invokes mapMemberAdded while ping thread invokes memberAlive"} {"diff": " public class ChannelFunctionFileChannel extends FileChannel { \n \n @ override \n public FileChannel position ( long newPosition ) throws IOException { \n - return new ChannelFunctionFileChannel ( channel . position ( newPosition ) , functions ) ; \n + channel . position ( newPosition ) ; \n + return this ; \n } \n \n @ override \n public class ChannelFunctionFileChannel extends FileChannel { \n \n @ override \n public FileChannel truncate ( long size ) throws IOException { \n - return new ChannelFunctionFileChannel ( channel . truncate ( size ) , functions ) ; \n + channel . truncate ( size ) ; \n + return this ; \n } \n \n @ override", "msg_token": "Don t create new instances of FileChannel"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DiffContentFactoryImpl extends DiffContentFactory { \n @ notnull String name , \n @ notnull FileType type , \n @ notnull byte [ ] content ) throws IOException { \n - boolean useTemporalFile = true ; SINGLE \n - SINGLE \n + SINGLE \n + boolean useTemporalFile = type instanceof ArchiveFileType || BinaryFileTypeDecompilers . INSTANCE . forFileType ( type ) != null ; \n \n VirtualFile file ; \n if ( useTemporalFile ) {", "msg_token": "do not create temp file to show diff for binary file"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DemoPlayer implements ExoPlayer . Listener , ChunkSampleSource . EventLi \n \n public void setSelectedTrack ( int type , int index ) { \n player . setSelectedTrack ( type , index ) ; \n + if ( type == TYPE_TEXT && index < NUMBER0 && captionListener != null ) { \n + captionListener . onCues ( Collections . < Cue > emptyList ( ) ) ; \n + } \n } \n \n public boolean getBackgrounded ( ) {", "msg_token": "Hide captions when the track is disabled"} {"diff": " public class NeuralNetConfiguration implements Serializable , Cloneable { \n } \n \n public MultiLayerConfiguration build ( ) { \n - if ( layerwise . size ( ) != hiddenLayerSizes . length + NUMBER0 ) \n - throw new IllegalStateException ( STRING0 ) ; \n \n List < NeuralNetConfiguration > list = new ArrayList < > ( ) ; \n for ( int i = NUMBER1 ; i < layerwise . size ( ) ; i ++ ) {", "msg_token": "Pulled error message because its a conflict for convolutional nets structure"} {"diff": " public class OperationSetPersistentPresenceIrcImpl extends AbstractOperationSetP \n \n ContactGroupIrcImpl volatileGroup = \n new ContactGroupIrcImpl ( this . parentProvider , this . rootGroup , \n - IrcActivator . getResources ( ) . getI18NString ( \n - STRING0 ) ) ; \n + groupName ) ; \n \n this . rootGroup . addSubGroup ( volatileGroup ) ;", "msg_token": "Re use earlier retrieved internationalization string"} {"diff": " public class ScopeProvider { \n \n WritableScope writableScope = new WritableScopeImpl ( \n JetScope . EMPTY , packageDescriptor , RedeclarationHandler . DO_NOTHING , STRING0 ) ; \n + writableScope . changeLockLevel ( WritableScope . LockLevel . BOTH ) ; \n \n NamespaceDescriptor rootPackageDescriptor = resolveSession . getPackageDescriptorByFqName ( FqName . ROOT ) ; \n if ( rootPackageDescriptor == null ) { \n public class ScopeProvider { \n resolveSession . getInjector ( ) . getQualifiedExpressionResolver ( ) ) ; \n \n writableScope . changeLockLevel ( WritableScope . LockLevel . READING ) ; \n - \n SINGLE \n return writableScope ; \n }", "msg_token": "Adjusting lock level"} {"diff": " public class ShowcaseViews { \n return this ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public void addAnimatedGestureToView ( int viewIndex , float offsetStartX , float offsetStartY , float offsetEndX , float offsetEndY ) throws IndexOutOfBoundsException { \n animations . remove ( viewIndex ) ; \n animations . add ( viewIndex , new float [ ] { offsetStartX , offsetStartY , offsetEndX , offsetEndY } ) ;", "msg_token": "Added Javadoc for ShowcaseViews addAnimatedGestureToView"} {"diff": " public class PlotPublishMRUList \n \n menu . addItem ( new MenuItem ( AppCommand . formatMenuLabel ( \n RSConnectResources . INSTANCE . republishPlot ( ) , \n - mruEntry . name , null ) , true , new Command ( ) \n + mruEntry . name + STRING0 + mruEntry . server + STRING1 , null ) , true , \n + new Command ( ) \n { \n @ override \n public void execute ( )", "msg_token": "include server name in plot MRU for symmetry with doc MRU"} {"diff": " public class RouteListCommand extends AbstractCamelCommand { \n final String rowFormat = buildFormatString ( columnWidths , false ) ; \n \n if ( routes . size ( ) > NUMBER0 ) { \n - out . println ( String . format ( headerFormat , CONTEXT_COLUMN_LABEL , ROUTE_COLUMN_LABEL , STATUS_COLUMN_LABEL , TOTAL_COLUMN_LABEL , FAILED_COLUMN_LABEL , INFLIGHT_COLUMN_LABEL , UPTIME_COLUMN_LABEL ) ) ; \n + out . println ( String . format ( headerFormat , CONTEXT_COLUMN_LABEL , ROUTE_COLUMN_LABEL , STATUS_COLUMN_LABEL , TOTAL_COLUMN_LABEL , FAILED_COLUMN_LABEL , INFLIGHT_COLUMN_LABEL , \n + UPTIME_COLUMN_LABEL ) ) ; \n out . println ( String . format ( headerFormat , STRING0 , STRING1 , STRING2 , STRING0 , STRING3 , STRING4 , STRING2 ) ) ; \n for ( Map < String , String > row : routes ) { \n String contextId = row . get ( STRING5 ) ;", "msg_token": "Fix Checkstyle issues"} {"diff": " public class ColumnNotFoundException \n \n public ColumnNotFoundException ( SchemaTableName tableName , String columnName ) \n { \n - this ( tableName , columnName , STRING0 + tableName + STRING1 ) ; \n + this ( tableName , columnName , STRING2 + columnName + STRING3 + tableName ) ; \n } \n \n public ColumnNotFoundException ( SchemaTableName tableName , String columnName , String message )", "msg_token": "Improve error message for column not found"} {"diff": " public class UndertowDeploymentInfoService implements Service < DeploymentInfo > { \n if ( file . startsWith ( STRING0 ) ) { \n d . addWelcomePages ( file . substring ( NUMBER0 ) ) ; \n } else { \n - d . addWelcomePages ( welcomeFiles ) ; \n + d . addWelcomePages ( file ) ; \n } \n } \n } else {", "msg_token": "Fix welcome files typo"} {"diff": " public class XPackageManager extends XHook { \n break ; \n \n case Srv_queryContentProviders : \n - if ( param . args . length > NUMBER0 && param . args [ NUMBER0 ] instanceof String && param . getResult ( ) != null ) { \n - String processName = ( String ) param . args [ NUMBER0 ] ; \n - if ( isRestrictedExtra ( param , processName ) ) \n - param . setResult ( filterProviderInfo ( ( List < ProviderInfo > ) param . getResult ( ) ) ) ; \n - } \n + if ( isRestricted ( param ) ) \n + param . setResult ( filterProviderInfo ( ( List < ProviderInfo > ) param . getResult ( ) ) ) ; \n break ; \n \n case Srv_queryIntentActivities :", "msg_token": "Lets keep things as simple as possible"} {"diff": " public abstract class InplaceVariableIntroducer < E extends PsiElement > extends In \n initOccurrencesMarkers ( ) ; \n } \n \n + @ deprecated \n + public boolean performInplaceRename ( ) { \n + return performInplaceRefactoring ( null ) ; \n + } \n + \n @ override \n protected boolean shouldSelectAll ( ) { \n return true ;", "msg_token": "restore and deprecate api for a while"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n } ) \n @ serverside \n public class NotificationService implements Startable { \n + private static final String THREAD_NAME_PREFIX = STRING0 ; \n \n private static final Logger LOG = Loggers . get ( NotificationService . class ) ; \n \n public class NotificationService implements Startable { \n \n @ override \n public void start ( ) { \n - executorService = Executors . newSingleThreadScheduledExecutor ( ) ; \n + executorService = \n + Executors . newSingleThreadScheduledExecutor ( \n + new ThreadFactoryBuilder ( ) \n + . setNameFormat ( THREAD_NAME_PREFIX + STRING1 ) \n + . setPriority ( Thread . MIN_PRIORITY ) \n + . build ( ) ) ; \n executorService . scheduleWithFixedDelay ( new Runnable ( ) { \n @ override \n public void run ( ) {", "msg_token": "add name to thread used by NotificationService"} {"diff": " public final class Roster extends Manager { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public final class Roster extends Manager { \n Objects . requireNonNull ( rosterEntries , STRING0 ) ; \n \n synchronized ( rosterListenersAndEntriesLock ) { \n - rosterEntries . rosterEntires ( entries . values ( ) ) ; \n + rosterEntries . rosterEntries ( entries . values ( ) ) ; \n addRosterListener ( rosterListener ) ; \n } \n } \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n \n public interface RosterEntries { \n \n - public void rosterEntires ( Collection < RosterEntry > rosterEntries ) ; \n + public void rosterEntries ( Collection < RosterEntry > rosterEntries ) ; \n \n }", "msg_token": "Fix typo in RosterEntries"} {"diff": " public class DruidCoordinator \n } \n loadManagementPeons . clear ( ) ; \n \n - databaseSegmentManager . stop ( ) ; \n serverInventoryView . stop ( ) ; \n + databaseRuleManager . stop ( ) ; \n + databaseSegmentManager . stop ( ) ; \n leader = false ; \n } \n catch ( Exception e ) {", "msg_token": "Stop databaseRuleManager in stopBeingLeader"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n public class ResponseBodySubscriber implements WriteListener , Subscriber < ByteBuf \n \n if ( ready ) { \n if ( this . buffer != null ) { \n - output . write ( new Buffer ( this . buffer ) . asBytes ( ) ) ; \n + byte [ ] bytes = new byte [ this . buffer . remaining ( ) ] ; \n + this . buffer . get ( bytes ) ; \n this . buffer = null ; \n - \n + output . write ( bytes ) ; \n if ( ! subscriberComplete ) { \n this . subscription . request ( NUMBER0 ) ; \n }", "msg_token": "Remove isolated use of Reactor Buffer"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public abstract class ActionWrapperBase < V > implements Action < V > { \n \n protected Context < V > context ; \n public abstract class ActionWrapperBase < V > implements Action < V > { \n this . context = subContext ; \n } \n \n + @ override \n + public String toString ( ) { \n + return getClass ( ) . getSimpleName ( ) ; \n + } \n + \n } \n public class ActionMatcher < V > extends AbstractMatcher < V > { \n } \n \n public String getLabel ( ) { \n - return STRING0 + action . toString ( ) ; \n + return action . toString ( ) ; \n } \n \n public boolean match ( @ notnull MatcherContext < V > context ) {", "msg_token": "Improved generated action class toString"} {"diff": " public class BuilderStatisticsMessage extends BuildMessage { \n private final long myElapsedTimeMs ; \n \n public BuilderStatisticsMessage ( String builderName , long elapsedTimeMs ) { \n - super ( builderName + STRING0 + elapsedTimeMs + STRING1 , Kind . INFO ) ; \n + super ( STRING2 , Kind . INFO ) ; \n myBuilderName = builderName ; \n myElapsedTimeMs = elapsedTimeMs ; \n }", "msg_token": "send empty text with statistics message to avoid producing unnecessary output by IDEA Project Runner in TeamCity"} {"diff": " public class TextureView extends View { \n return false ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n @ override \n protected void destroyHardwareResources ( ) { \n super . destroyHardwareResources ( ) ;", "msg_token": "Fix the build"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import static NAMESPACE ; \n public class SqsFilterMessagesWithNoDeleteTest extends TestSupport { \n } \n \n @ test \n + @ ignore ( STRING0 ) \n public void testGetThroughFilter ( ) throws Exception { \n final String sqsURI = String . format ( STRING1 \n SINGLE", "msg_token": "Skip test which fails occationally on CI"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import NAMESPACE ; \n + import NAMESPACE ; \n + \n public class Runner { \n \n public static void main ( String [ ] args ) { \n try { \n Class clazz = Class . forName ( args [ NUMBER0 ] ) ; \n CommandLineInterpreter commandLineInterpreter = ( CommandLineInterpreter ) clazz . newInstance ( ) ; \n - commandLineInterpreter . reader ( STRING0 , System . in ) \n - . run ( true ) ; \n + InputStream in = args . length > NUMBER1 ? new FileInputStream ( args [ NUMBER1 ] ) : System . in ; \n + commandLineInterpreter . reader ( STRING0 , in ) . run ( true ) ; \n + in . close ( ) ; \n } catch ( Throwable e ) { \n e . printStackTrace ( ) ; \n System . exit ( NUMBER1 ) ;", "msg_token": "reading definition from file as an alternative to System in"} {"diff": " public class WifiStateMachine extends HierarchicalStateMachine { \n } \n \n private void sendConfigChangeBroadcast ( ) { \n + if ( ! ActivityManagerNative . isSystemReady ( ) ) return ; \n Intent intent = new Intent ( WifiManager . CONFIG_CHANGED_ACTION ) ; \n intent . putExtra ( WifiManager . EXTRA_NETWORK_PROPERTIES , mNetworkProperties ) ; \n mContext . sendBroadcast ( intent ) ; \n public class WifiStateMachine extends HierarchicalStateMachine { \n \n private void updateConfigAndSendChangeBroadcast ( ) { \n updateConfiguredNetworks ( ) ; \n + if ( ! ActivityManagerNative . isSystemReady ( ) ) return ; \n Intent intent = new Intent ( WifiManager . SUPPLICANT_CONFIG_CHANGED_ACTION ) ; \n mContext . sendBroadcast ( intent ) ; \n }", "msg_token": "sendBroadcast needs protection"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public final class HttpProtocol extends Protocol { \n return ; \n } \n \n - NettyRequest nettyRequest = future . getNettyRequest ( ) ; \n AsyncHandler < ? > handler = future . getAsyncHandler ( ) ; \n try { \n if ( e instanceof HttpResponse ) { \n HttpResponse response = ( HttpResponse ) e ; \n - logger . debug ( STRING0 , nettyRequest . getHttpRequest ( ) , response ) ; \n SINGLE \n future . setPendingResponse ( response ) ; \n return ;", "msg_token": "Remove duplicate log"} {"diff": " public class Leg { \n public String agencyId = null ; \n \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - @ xmlattribute \n - public String tripId = null ; \n - \n - COMMENT \n COMMENT \n COMMENT \n public Place from = null ; \n public class PlanGenerator { \n Trip trip = en . getTrip ( ) ; \n if ( trip != null ) { \n leg . headsign = trip . getTripHeadsign ( ) ; \n - leg . tripId = trip . getId ( ) . getId ( ) ; \n leg . agencyId = trip . getId ( ) . getAgencyId ( ) ; \n leg . tripShortName = trip . getTripShortName ( ) ; \n leg . routeShortName = trip . getRoute ( ) . getShortName ( ) ;", "msg_token": "Revert Add tripId to Legs"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class AbstractTreeStructureBase extends AbstractTreeStructure { \n try { \n elements = provider . modify ( treeNode , ( Collection < AbstractTreeNode > ) elements , settings ) ; \n } \n + catch ( ProcessCanceledException e ) { \n + throw e ; \n + } \n catch ( Exception e ) { \n LOG . error ( e ) ; \n }", "msg_token": "do not log PCE"} {"diff": " public class JavaCodeStyleSettingsProvider extends CodeStyleSettingsProvider { \n return new JavaCodeStyleMainPanel ( getCurrentSettings ( ) , settings ) ; \n } \n public String getHelpTopic ( ) { \n - return null ; \n + return STRING0 ; \n } \n } ; \n }", "msg_token": "Java code style help topic ID"} {"diff": " public final class SequencedSkyframeExecutor extends SkyframeExecutor { \n COMMENT \n COMMENT \n private static final Set < SkyFunctionName > PACKAGE_LOCATOR_DEPENDENT_VALUES = ImmutableSet . of ( \n + SkyFunctions . AST_FILE_LOOKUP , \n SkyFunctions . FILE_STATE , \n SkyFunctions . FILE , \n SkyFunctions . DIRECTORY_LISTING_STATE ,", "msg_token": "Add AST_FILE_LOOKUP to the list of key types whose SkyFunction implicitly uses the PathPackageLocator"} {"diff": " class SaveHandler extends DataHandler { \n COMMENT \n COMMENT \n private long saving ( DataSupport baseObj , ContentValues values ) { \n + if ( values . size ( ) == NUMBER0 ) { \n + values . putNull ( STRING0 ) ; \n + } \n return mDatabase . insert ( baseObj . getTableName ( ) , null , values ) ; \n }", "msg_token": "Fix bug of throwing error when saving model with none field"} {"diff": " \n package NAMESPACE ; \n \n - SINGLE \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n \n import static NAMESPACE ;", "msg_token": "o Add license header"} {"diff": " Above scenario allowed \n pipelineOne . materialConfigs ( ) . validate ( ConfigSaveValidationContext . forChain ( config ) ) ; \n \n assertThat ( pipelineOne . materialConfigs ( ) . get ( NUMBER0 ) . errors ( ) . on ( ScmMaterialConfig . AUTO_UPDATE ) , \n - is ( STRING0 ) ) ; \n + is ( STRING1 ) ) ; \n } \n \n @ test \n public class ConfigRepoConfigTest { \n \n assertThat ( svn . errors ( ) . isEmpty ( ) , is ( false ) ) ; \n assertThat ( svn . errors ( ) . on ( ScmMaterialConfig . AUTO_UPDATE ) , \n - is ( STRING2 ) ) ; \n + is ( STRING3 ) ) ; \n } \n \n @ test", "msg_token": "Fixing tests related to material autoUpdate checks"} {"diff": " public class LegacyRequestMapper { \n return Camera . Parameters . WHITE_BALANCE_CLOUDY_DAYLIGHT ; \n case CONTROL_AWB_MODE_TWILIGHT : \n return Camera . Parameters . WHITE_BALANCE_TWILIGHT ; \n + case CONTROL_AWB_MODE_SHADE : \n + return Parameters . WHITE_BALANCE_SHADE ; \n default : \n Log . w ( TAG , STRING0 + mode ) ; \n return Camera . Parameters . WHITE_BALANCE_AUTO ;", "msg_token": "Add missing whitebalance mapping"} {"diff": " public class TestPerformance extends BaseTest { \n @ suppresswarnings ( { STRING0 } ) \n final Class < ? extends Parser > parserClass = ( Class < ? extends Parser > ) loader . loadClass ( STRING1 ) ; \n @ suppresswarnings ( { STRING0 } ) \n - final Class < ? extends ParseTreeListener < Token > > listenerClass = ( Class < ? extends ParseTreeListener < Token > > ) loader . loadClass ( STRING2 ) ; \n + final Class < ? extends ParseTreeListener < Token > > listenerClass = ( Class < ? extends ParseTreeListener < Token > > ) loader . loadClass ( STRING3 ) ; \n TestPerformance . sharedListener = listenerClass . newInstance ( ) ; \n \n final Constructor < ? extends Lexer > lexerCtor = lexerClass . getConstructor ( CharStream . class ) ;", "msg_token": "Fix listener name BlankJavaListener JavaBaseListener"} {"diff": " public class EphemeralFileSystemAbstraction implements FileSystemAbstraction , Li \n SINGLE \n SINGLE \n SoftReference < ByteBuffer > ref = new SoftReference < ByteBuffer > ( buf ) ; \n - ( sizeIndex < pool . length ( ) ? pool . get ( sizeIndex ) : growPool ( sizeIndex ) ) . add ( ref ) ; \n + \n + SINGLE \n + Queue < Reference < ByteBuffer > > references = null ; \n + if ( sizeIndex < pool . length ( ) ) \n + { \n + references = pool . get ( sizeIndex ) ; \n + SINGLE \n + if ( references == null ) \n + { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n + } else { \n + references = growPool ( sizeIndex ) ; \n + SINGLE \n + if ( references == null ) \n + { \n + throw new RuntimeException ( STRING0 ) ; \n + } \n + } \n + \n + references . add ( ref ) ; \n } \n finally \n {", "msg_token": "Expanded a compact statement in EphemeralFileSystemAbstraction to help track down a flaky NPE"} {"diff": " import NAMESPACE ; \n COMMENT \n public class Affiliation implements ExtensionElement \n { \n + public static final String ELEMENT = STRING0 ; \n + \n protected String node ; \n protected Type type ; \n \n public class Affiliation implements ExtensionElement \n \n public String getElementName ( ) \n { \n - return STRING1 ; \n + return ELEMENT ; \n } \n \n public String getNamespace ( )", "msg_token": "Fix PubSub Affiliation getElementName"} {"diff": " public class ZapRelease { \n public ZapRelease ( ) { \n } \n \n + public ZapRelease ( String version ) { \n + this . version = version ; \n + } \n + \n public ZapRelease ( String version , URL url , String fileName , long size , String releaseNotes ) { \n super ( ) ; \n this . version = version ;", "msg_token": "Enhanced ZapRelease tests"} {"diff": " public interface LivingEntity extends Entity { \n COMMENT \n COMMENT \n public Collection < PotionEffect > getActivePotionEffects ( ) ; \n + \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public boolean hasLineOfSight ( Entity other ) ; \n } \n public class TestPlayer implements Player { \n public boolean isBlocking ( ) { \n throw new UnsupportedOperationException ( STRING0 ) ; \n } \n + \n + public boolean hasLineOfSight ( Entity other ) { \n + throw new UnsupportedOperationException ( STRING0 ) ; \n + } \n }", "msg_token": "Add LivingEntity hasLineOfSight"} {"diff": " public class OsmandSettings { \n \n \n \n - public final OsmandPreference < Integer > NUMBER_OF_FREE_DOWNLOADS = new IntPreference ( STRING0 , NUMBER0 ) . makeGlobal ( ) ; \n + public final OsmandPreference < Integer > NUMBER_OF_FREE_DOWNLOADS = new IntPreference ( STRING1 , NUMBER0 ) . makeGlobal ( ) ; \n \n public boolean checkFreeDownloadsNumberZero ( ) { \n if ( ! settingsAPI . contains ( globalPreferences , NUMBER_OF_FREE_DOWNLOADS . getId ( ) ) ) {", "msg_token": "Fix free downloads"} {"diff": " public class TimeTools { \n COMMENT \n COMMENT \n public static LocalTime getShowReleaseTime ( int showReleaseTime ) { \n - if ( showReleaseTime >= NUMBER0 || showReleaseTime <= NUMBER1 ) { \n + if ( showReleaseTime >= NUMBER0 && showReleaseTime <= NUMBER1 ) { \n int hour = showReleaseTime / NUMBER2 ; \n int minute = showReleaseTime - ( hour * NUMBER2 ) ; \n if ( minute <= NUMBER3 ) {", "msg_token": "Fix show release time check"} {"diff": " public class ConfigurationMetadataMatchers { \n if ( itemHint == null ) { \n return false ; \n } \n - if ( this . name != null && ! this . name . equals ( itemHint . getName ( ) ) ) { \n - return false ; \n - } \n for ( ValueHintMatcher value : this . values ) { \n if ( ! value . matches ( itemHint ) ) { \n return false ;", "msg_token": "Remove redundant check"} {"diff": " public class VoiceRouter { \n PREPARE_DISTANCE = NUMBER0 ; SINGLE \n PREPARE_DISTANCE_END = NUMBER1 ; SINGLE \n TURN_IN_DISTANCE = NUMBER2 ; SINGLE \n - TURN_IN_DISTANCE_END = NUMBER3 ; SINGLE \n + TURN_IN_DISTANCE_END = NUMBER4 ; SINGLE \n TURN_DISTANCE = NUMBER5 ; SINGLE \n TURN_DEFAULT_SPEED = FLOAT0 ; SINGLE \n DEFAULT_SPEED = NUMBER6 ; SINGLE \n public class VoiceRouter { \n PREPARE_DISTANCE = ( int ) ( DEFAULT_SPEED * NUMBER7 ) ; \n PREPARE_DISTANCE_END = ( int ) ( DEFAULT_SPEED * NUMBER8 ) ; \n TURN_IN_DISTANCE = ( int ) ( DEFAULT_SPEED * NUMBER9 ) ; \n - TURN_IN_DISTANCE_END = ( int ) ( DEFAULT_SPEED * NUMBER10 ) ; \n + TURN_IN_DISTANCE_END = ( int ) ( DEFAULT_SPEED * NUMBER11 ) ; \n TURN_DISTANCE = ( int ) ( DEFAULT_SPEED * NUMBER12 ) ; \n } \n }", "msg_token": "fine tune lead time"} {"diff": " import static NAMESPACE ; \n \n public class OAuthITest { \n \n - @ test public void \n + @ ignore ( STRING0 ) @ test public void \n oauth1_works_with_header_signing ( ) { \n given ( ) . \n auth ( ) . oauth ( STRING1 , STRING2 , STRING3 , STRING4 ) . \n public class OAuthITest { \n body ( STRING5 , equalTo ( STRING6 ) ) ; \n } \n \n - @ ignore @ test public void \n + @ ignore ( STRING0 ) @ test public void \n oauth1_works_with_query_signing ( ) { \n given ( ) . \n auth ( ) . oauth ( STRING1 , STRING2 , STRING3 , STRING4 , QUERY_STRING ) . \n public class AdvancedValidationITest extends WithJetty { \n body ( STRING7 , is ( FLOAT0 ) ) . \n body ( STRING8 , is ( FLOAT1 ) ) . \n body ( STRING9 , is ( NUMBER0 ) ) . \n - body ( STRING10 , is ( NUMBER1 ) ) ; \n + body ( STRING10 , is ( FLOAT2 ) ) ; \n } \n }", "msg_token": "Fixed failing test"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class SubPlan \n . bag ( ) ; \n \n Multiset < PlanFragmentId > childrenIds = IterableTransformer . on ( children ) \n - . transform ( SubPlan . fragmentGetter ( ) ) \n + . transform ( SubPlan : : getFragment ) \n . transform ( PlanFragment : : getId ) \n . bag ( ) ; \n \n public class SubPlan \n child . sanityCheck ( ) ; \n } \n } \n - \n - public static Function < SubPlan , PlanFragment > fragmentGetter ( ) \n - { \n - return new Function < SubPlan , PlanFragment > ( ) \n - { \n - @ override \n - public PlanFragment apply ( SubPlan input ) \n - { \n - return input . getFragment ( ) ; \n - } \n - } ; \n - } \n }", "msg_token": "Remove getter functions from SubPlan"} {"diff": " public class PluginManager { \n COMMENT \n public void loadPlugins ( ) { \n int id = this . ctx . getActivity ( ) . getResources ( ) . getIdentifier ( STRING0 , STRING1 , this . ctx . getActivity ( ) . getPackageName ( ) ) ; \n - if ( id == NUMBER0 ) \n - { \n - id = this . ctx . getActivity ( ) . getResources ( ) . getIdentifier ( STRING2 , STRING1 , this . ctx . getActivity ( ) . getPackageName ( ) ) ; \n - LOG . i ( TAG , STRING3 ) ; \n - } \n if ( id == NUMBER0 ) { \n this . pluginConfigurationMissing ( ) ; \n SINGLE", "msg_token": "Seriously we didn t deprecate this for a year"} {"diff": " public class DefaultPackageScanClassResolver implements PackageScanClassResolver \n } \n try { \n Class type = classLoader . loadClass ( externalName ) ; \n + if ( LOG . isTraceEnabled ( ) ) { \n + LOG . trace ( STRING0 + type + STRING1 + classLoader ) ; \n + } \n if ( test . matches ( type ) ) { \n if ( LOG . isTraceEnabled ( ) ) { \n - LOG . trace ( STRING2 + type + STRING1 + classLoader ) ; \n + LOG . trace ( STRING2 + type + STRING3 + classLoader ) ; \n } \n classes . add ( type ) ; \n }", "msg_token": "Added more trace logs for debugging"} {"diff": " public class AppEngineSupportProvider extends FacetBasedFrameworkSupportProvider \n } \n \n @ override \n + public void wizardStepUpdated ( ) { \n + } \n + \n + @ override \n public void addSupport ( @ notnull Module module , @ notnull ModifiableRootModel rootModel , @ nullable Library library ) { \n AppEngineSupportProvider . this . addSupport ( module , rootModel , mySdkEditor . getPath ( ) , PersistenceApiComboboxUtil . getSelectedApi ( myPersistenceApiComboBox ) ) ; \n } \n public class AppEngineSupportProvider extends FacetBasedFrameworkSupportProvider \n public JComponent getComponent ( ) { \n return myMainPanel ; \n } \n - \n } \n - \n }", "msg_token": "added method to listener to notify when step is reached"} {"diff": " public class SummaryPage extends Request { \n Response r = Response . done ( res ) ; \n r . setBuilder ( ROOT_OBJECT , new Builder ( ) { \n @ override public String build ( Response response , JsonElement element , String contextName ) { \n - StringBuilder pageBldr = new StringBuilder ( STRING0 ) ; \n + StringBuilder pageBldr = new StringBuilder ( STRING1 ) ; \n StringBuilder sb = new StringBuilder ( STRING2 ) ; \n JsonArray cols = element . getAsJsonObject ( ) . get ( STRING3 ) . getAsJsonObject ( ) . get ( STRING4 ) . getAsJsonArray ( ) ; \n Iterator < JsonElement > it = cols . iterator ( ) ;", "msg_token": "Undo Spencer s one line change which had a strange overlay side effect"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import static NAMESPACE ; \n import static NAMESPACE ; \n \n + @ ignore ( STRING0 + \n + STRING1 ) \n @ runwith ( Parallelized . class ) \n public class ZooKeeperCuratorFailoverTest {", "msg_token": "disable curator failover test"} {"diff": " public class ContributionListing { \n \n \n protected AvailableContribution getAvailableContribution ( Contribution info ) { \n - for ( AvailableContribution advertised : advertisedContributions ) { \n - if ( advertised . getType ( ) == info . getType ( ) && \n - advertised . getName ( ) . equals ( info . getName ( ) ) ) { \n - return advertised ; \n + synchronized ( advertisedContributions ) { \n + for ( AvailableContribution advertised : advertisedContributions ) { \n + if ( advertised . getType ( ) == info . getType ( ) && \n + advertised . getName ( ) . equals ( info . getName ( ) ) ) { \n + return advertised ; \n + } \n } \n } \n return null ;", "msg_token": "saw exception with concurrent modification"} {"diff": " public final class ConfigurationBuilder { \n \n @ nonnull \n Set < ReportField > reportContent ( ) { \n - Set < ReportField > reportContent = new HashSet < ReportField > ( ) ; \n + final Set < ReportField > reportContent = new HashSet < ReportField > ( ) ; \n if ( customReportContent != null ) { \n if ( ACRA . DEV_LOGGING ) ACRA . log . d ( LOG_TAG , STRING0 ) ; \n reportContent . addAll ( Arrays . asList ( customReportContent ) ) ; \n public final class ConfigurationBuilder { \n if ( ACRA . DEV_LOGGING ) ACRA . log . d ( LOG_TAG , STRING1 ) ; \n reportContent . addAll ( Arrays . asList ( DEFAULT_MAIL_REPORT_FIELDS ) ) ; \n } \n + \n + SINGLE \n for ( Map . Entry < ReportField , Boolean > entry : reportContentChanges . entrySet ( ) ) { \n if ( entry . getValue ( ) ) { \n reportContent . add ( entry . getKey ( ) ) ;", "msg_token": "Added comment and made variable final"} {"diff": " public final class Ln { \n } \n \n } \n + \n + public static void setPrint ( Print print ) { \n + Ln . print = print ; \n + } \n \n COMMENT \n public static class Print {", "msg_token": "Add ability to set custom Print object"} {"diff": " public class ApacheAsyncHttpProvider implements AsyncHttpProvider { \n \n if ( proxyServer . getPrincipal ( ) != null ) { \n Credentials defaultcreds = new UsernamePasswordCredentials ( proxyServer . getPrincipal ( ) , proxyServer . getPassword ( ) ) ; \n - client . getState ( ) . setCredentials ( new AuthScope ( null , - NUMBER0 , AuthScope . ANY_REALM ) , defaultcreds ) ; \n + client . getState ( ) . setProxyCredentials ( new AuthScope ( null , - NUMBER0 , AuthScope . ANY_REALM ) , defaultcreds ) ; \n } \n \n ProxyHost proxyHost = proxyServer == null ? null : new ProxyHost ( proxyServer . getHost ( ) , proxyServer . getPort ( ) ) ;", "msg_token": "Fix proxy authentication in ApacheAsyncHttpProvider"} {"diff": " public class PreBuiltTransportClientTests extends RandomizedTest { \n new PreBuiltTransportClient ( Settings . EMPTY , plugin ) ; \n fail ( STRING0 ) ; \n } catch ( IllegalArgumentException ex ) { \n - assertTrue ( ex . getMessage ( ) . startsWith ( STRING1 ) ) ; \n + assertTrue ( STRING2 + ex . getMessage ( ) + STRING3 , \n + ex . getMessage ( ) . startsWith ( STRING1 ) ) ; \n } \n } \n }", "msg_token": "Added failure message to test"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class PropertyResolverProcessor extends ResolverProcessor { \n } \n } \n } else if ( myName == null || myName . equals ( ( ( PsiNamedElement ) element ) . getName ( ) ) ) { \n + if ( element instanceof GrField && ( ( GrField ) element ) . isProperty ( ) ) return true ; \n return super . execute ( element , substitutor ) ; \n }", "msg_token": "do not process properties themselves"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public class TimedInterface { \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ;", "msg_token": "Fix javadocs and update copyright"} {"diff": " public class PSurfaceJOGL implements PSurface { \n caps . setNumSamples ( PGL . smoothToSamples ( graphics . smooth ) ) ; \n caps . setBackgroundOpaque ( true ) ; \n caps . setOnscreen ( true ) ; \n - pgl . capabilities = caps ; \n pgl . setCaps ( caps ) ; \n }", "msg_token": "removed assignment in PSurfaceJOGL"} {"diff": " public class AbstractBlockMetaTest { \n private static final int TEST_TIER_ORDINAL = NUMBER0 ; \n private static final String TEST_TIER_ALIAS = STRING0 ; \n private static final long [ ] TEST_TIER_CAPACITY_BYTES = { NUMBER1 } ; \n - private String mTestDirPath ; \n private StorageTier mTier ; \n private StorageDir mDir ; \n private AbstractBlockMetaForTest mBlockMeta ; \n public class AbstractBlockMetaTest { \n COMMENT \n @ before \n public void before ( ) throws Exception { \n - mTestDirPath = mFolder . newFolder ( ) . getAbsolutePath ( ) ; \n + String testDirPath = mFolder . newFolder ( ) . getAbsolutePath ( ) ; \n SINGLE \n TieredBlockStoreTestUtils . setupConfWithSingleTier ( null , TEST_TIER_ORDINAL , \n - TEST_TIER_ALIAS , new String [ ] { mTestDirPath } , TEST_TIER_CAPACITY_BYTES , STRING1 ) ; \n + TEST_TIER_ALIAS , new String [ ] { testDirPath } , TEST_TIER_CAPACITY_BYTES , STRING1 ) ; \n \n mTier = StorageTier . newStorageTier ( TEST_TIER_ALIAS ) ; \n mDir = mTier . getDir ( NUMBER0 ) ;", "msg_token": "SMALLFIX Made field a local variable in AbstractBlockMetaTest"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Remove dead import"} {"diff": " public class TestLexerExec extends BaseTest { \n } \n \n @ test \n + public void testNonGreedyTermination2 ( ) throws Exception { \n + String grammar = \n + STRING0 \n + + STRING1 ; \n + \n + String found = execLexer ( STRING2 , grammar , STRING3 , STRING4 ) ; \n + assertEquals ( \n + STRING5 + \n + STRING6 , found ) ; \n + assertNull ( stderrDuringParse ) ; \n + } \n + \n + @ test \n public void testGreedyOptional ( ) throws Exception { \n String grammar = \n STRING0", "msg_token": "added unit test"} {"diff": " public abstract class ReplayingDecoder < T extends Enum < T > > \n try { \n result = decode ( context , channel , replayable , state ) ; \n if ( result == null ) { \n - if ( oldReaderIndex == cumulation . readerIndex ( ) ) { \n + if ( oldReaderIndex == cumulation . readerIndex ( ) && oldState == state ) { \n throw new IllegalStateException ( \n - STRING0 ) ; \n + STRING1 ) ; \n } else { \n - SINGLE \n + SINGLE \n SINGLE \n continue ; \n }", "msg_token": "ReplayingDecoder should not throw an IllegalStateException even if a decoder implementation returns null when state transition occurred at least"} {"diff": " public final class QRCodeEncoder { \n try { \n ByteMatrix result = new MultiFormatWriter ( ) . encode ( mContents , \n mFormat , mPixelResolution , mPixelResolution ) ; \n - int width = result . width ( ) ; \n - int height = result . height ( ) ; \n + int width = result . getWidth ( ) ; \n + int height = result . getHeight ( ) ; \n byte [ ] [ ] array = result . getArray ( ) ; \n int [ ] pixels = new int [ width * height ] ; \n for ( int y = NUMBER0 ; y < height ; y ++ ) {", "msg_token": "Add MatrixToImageWriter convenience class small code tweaks in javase make ByteMatrix width height property getters names standard"} {"diff": " public class WsHttpUpgradeHandler implements HttpUpgradeHandler { \n WsFrameServer wsFrame = new WsFrameServer ( \n sis , \n wsSession ) ; \n - sis . setReadListener ( new WsReadListener ( this , wsFrame ) ) ; \n sos . setWriteListener ( \n new WsWriteListener ( this , wsRemoteEndpointServer ) ) ; \n ep . onOpen ( wsSession , endpointConfig ) ; \n webSocketContainer . registerSession ( ep , wsSession ) ; \n + sis . setReadListener ( new WsReadListener ( this , wsFrame ) ) ; \n } catch ( DeploymentException e ) { \n throw new IllegalArgumentException ( e ) ; \n } finally {", "msg_token": "Don t register the ReadListener until after onOpen has completed as MessageHandler instances are likely to be registered during onOpen"} {"diff": " public class TemplateState implements Disposable { \n gotoEnd ( true ) ; \n } \n \n + COMMENT \n + COMMENT \n + COMMENT \n + public void cancelTemplate ( ) { \n + if ( myTemplate == null ) return ; \n + LookupManager . getInstance ( myProject ) . hideActiveLookup ( ) ; \n + cleanupTemplateState ( true ) ; \n + } \n + \n private void finishTemplateEditing ( ) { \n if ( myTemplate == null ) return ; \n LookupManager . getInstance ( myProject ) . hideActiveLookup ( ) ;", "msg_token": "restored compatibility with Kotlin plugin"} {"diff": " public class AndroidSdk { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n public String getPathForTool ( String tool ) { \n \n String [ ] possiblePaths = { \n - sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING1 + tool , \n sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool , \n sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool + STRING2 , \n sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool + STRING3 , \n + sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING1 + tool , \n getPlatform ( ) + STRING4 + tool , \n getPlatform ( ) + STRING4 + tool + STRING2 , \n getPlatform ( ) + STRING4 + tool + STRING3 , \n + getPlatform ( ) + STRING5 + tool , \n sdkPath + STRING4 + tool , \n sdkPath + STRING4 + tool + STRING2 , \n - sdkPath + STRING4 + tool + STRING3 \n + sdkPath + STRING4 + tool + STRING3 , \n + sdkPath + STRING5 + tool \n } ; \n \n for ( String possiblePath : possiblePaths ) {", "msg_token": "Added more possible paths"} {"diff": " import NAMESPACE \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n COMMENT \n public final class EurekaHttpClients { \n + private static final Logger logger = LoggerFactory . getLogger ( EurekaHttpClients . class ) ; \n \n private EurekaHttpClients ( ) { \n } \n public final class EurekaHttpClients { \n final String myRegion = clientConfig . getRegion ( ) ; \n \n String discoveryDnsName = STRING0 + myRegion + STRING1 + clientConfig . getEurekaServerDNSName ( ) ; \n + int port = NUMBER0 ; \n + try { \n + port = Integer . parseInt ( clientConfig . getEurekaServerPort ( ) ) ; \n + } catch ( NumberFormatException e ) { \n + logger . warn ( STRING2 ) ; \n + } \n final ClusterResolver < AwsEndpoint > dnsResolver = new DnsTxtRecordClusterResolver ( \n myRegion , \n discoveryDnsName , \n true , \n - Integer . parseInt ( clientConfig . getEurekaServerPort ( ) ) , \n + port , \n false , \n clientConfig . getEurekaServerURLContext ( ) \n ) ;", "msg_token": "handle unavailable port when not using dns to bootstrap resolve"} {"diff": " public final class ArrayConcatUtils \n \n public static Block concat ( Type elementType , Block leftBlock , Block rightBlock ) \n { \n - BlockBuilder blockBuilder = elementType . createBlockBuilder ( new BlockBuilderStatus ( ) , leftBlock . getSizeInBytes ( ) + rightBlock . getSizeInBytes ( ) ) ; \n + int totalSize = leftBlock . getSizeInBytes ( ) + rightBlock . getSizeInBytes ( ) ; \n + int totalEntries = leftBlock . getPositionCount ( ) + rightBlock . getPositionCount ( ) ; \n + if ( totalEntries == NUMBER0 ) { \n + SINGLE \n + return leftBlock ; \n + } \n + BlockBuilder blockBuilder = elementType . createBlockBuilder ( new BlockBuilderStatus ( ) , totalEntries , ( int ) Math . ceil ( totalSize / ( double ) totalEntries ) ) ; \n for ( int i = NUMBER0 ; i < leftBlock . getPositionCount ( ) ; i ++ ) { \n elementType . appendTo ( leftBlock , i , blockBuilder ) ; \n }", "msg_token": "Allocate appropriate amount of memory in array concat"} {"diff": " public class FileDownloadStatus { \n } \n \n public static boolean isKeepAhead ( final int status , final int nextStatus ) { \n - if ( status != progress && status == nextStatus ) { \n + if ( status != progress && status != retry && status == nextStatus ) { \n return false ; \n } \n \n public class FileDownloadStatus { \n } \n \n public static boolean isKeepFlow ( final int status , final int nextStatus ) { \n - if ( status != progress && status == nextStatus ) { \n + if ( status != progress && status != retry && status == nextStatus ) { \n return false ; \n } \n \n public class FileDownloadStatus { \n case retry : \n case started : \n switch ( nextStatus ) { \n + case retry : \n case connected : \n return true ; \n default :", "msg_token": "fix can t call back retry in expect the case of the call back method retry one by one"} {"diff": " public class CookieITest extends WithJetty { \n when ( ) . \n post ( STRING0 ) ; \n } \n + \n + @ test \n + public void cookiesParsingSupportsNoValueCookies ( ) throws Exception { \n + given ( ) . \n + cookie ( STRING1 ) . \n + expect ( ) . \n + cookie ( STRING1 ) . \n + when ( ) . \n + post ( STRING0 ) ; \n + } \n }", "msg_token": "Added test for no value cookies"} {"diff": " public class DataQueueProxy extends QueueProxySupport implements QueueProxy < Data \n } \n \n public LocalQueueStats getLocalQueueStats ( ) { \n - return null ; \n + return getService ( ) . createLocalQueueStats ( name , partitionId ) ; \n } \n \n public boolean add ( Data data ) {", "msg_token": "Adding stats for dataQueueProxy"} {"diff": " \n COMMENT \n package NAMESPACE ; \n \n + import static NAMESPACE ; \n + import static NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n - import NAMESPACE ; \n \n import NAMESPACE ; \n \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n - import static NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n public class RedisCodecTest { \n \n public class RedisCodecTest { \n } \n \n @ test \n - public void decodeReplies ( ) throws IOException { \n + public void decodeReplies ( ) { \n { \n Object receive = decode ( STRING0 . getBytes ( ) ) ; \n assertTrue ( receive instanceof StatusReply ) ;", "msg_token": "Fix a compiler warning"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n public class CompileEnvironment { \n method . setAccessible ( true ) ; \n method . invoke ( null ) ; \n \n - return AllModules . modules ; \n + ArrayList < Module > answer = new ArrayList < Module > ( AllModules . modules ) ; \n + AllModules . modules . clear ( ) ; \n + return answer ; \n } catch ( Exception e ) { \n throw new ModuleExecutionException ( e ) ; \n }", "msg_token": "Make sure we won t compile same modules in subsequent script runs in same VM instance"} {"diff": " public interface Broadcaster { \n COMMENT \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Broadcaster Add documentation"} {"diff": " public final class AndroidGraphicsGridSampler extends GridSampler { \n transformMatrix . mapPoints ( points ) ; \n SINGLE \n SINGLE \n - checkEndpoint ( image , points ) ; \n + checkAndNudgePoints ( image , points ) ; \n for ( int j = NUMBER0 ; j < max ; j += NUMBER1 ) { \n if ( image . isBlack ( ( int ) points [ j ] , ( int ) points [ j + NUMBER2 ] ) ) { \n SINGLE", "msg_token": "Improved bounds checking and point nudging logic in GridSampler"} {"diff": " public class HttpConnection extends AbstractConnection implements Runnable , Http \n } \n catch ( InterruptedException x ) \n { \n - x . printStackTrace ( ) ; \n throw ( IOException ) new InterruptedIOException ( ) . initCause ( x ) ; \n } \n - catch ( TimeoutException e ) \n - { \n - e . printStackTrace ( ) ; \n - throw new IOException ( e ) ; \n - } \n catch ( ClosedChannelException e ) \n { \n - e . printStackTrace ( ) ; \n throw new EofException ( e ) ; \n } \n + catch ( IOException e ) \n + { \n + throw e ; \n + } \n + catch ( TimeoutException e ) \n + { \n + throw new IOException ( e ) ; \n + } \n } \n \n @ override", "msg_token": "removed debug prints"} {"diff": " public class MeshBuilder implements MeshPartBuilder { \n } \n \n @ override \n + public void setUVRange ( float u1 , float v1 , float u2 , float v2 ) { \n + uMin = u1 ; \n + vMin = v1 ; \n + uMax = u2 ; \n + vMax = v2 ; \n + } \n + \n + @ override \n public short vertex ( Vector3 pos , Vector3 nor , Color col , Vector2 uv ) { \n if ( vindex >= Short . MAX_VALUE ) \n throw new GdxRuntimeException ( STRING0 ) ; \n public interface MeshPartBuilder { \n public void setColor ( final Color color ) ; \n COMMENT \n public void setColor ( float r , float g , float b , float a ) ; \n + COMMENT \n + public void setUVRange ( float u1 , float v1 , float u2 , float v2 ) ; \n COMMENT \n public short vertex ( final float [ ] values ) ; \n COMMENT", "msg_token": "MeshBuilder add setUVRange"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class DOMStoragePeerManager extends ChromePeerManager { \n SharedPreferencesHelper . valueToString ( newValue ) ) ; \n mCopy . put ( key , newValue ) ; \n } else { \n - throw new RuntimeException ( STRING0 + key ) ; \n + SINGLE \n + SINGLE \n + LogUtil . i ( STRING1 , key ) ; \n } \n } \n }", "msg_token": "Fix crash when rapidly adding removing SharedPreferences keys"} {"diff": " public class RestAssuredSetupRule extends ExternalResource { \n protected void before ( ) throws Throwable { \n final GraylogControl graylogController = new GraylogControl ( ) ; \n final URL url = graylogController . getUrl ( ) ; \n + graylogController . startServer ( ) ; \n RestAssured . baseURI = url . getProtocol ( ) + STRING0 + url . getHost ( ) ; \n RestAssured . port = url . getPort ( ) ; \n String [ ] userInfo = url . getUserInfo ( ) . split ( STRING1 ) ;", "msg_token": "Starting graylog server in class rule"} {"diff": " \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "remove unused import"} {"diff": " public class TestStreetMatcher { \n } \n \n @ override \n - public void setCarSpeed ( float carSpeed ) { \n - SINGLE \n - \n - } \n + public void setCarSpeed ( float carSpeed ) { } \n \n @ override \n public String getLabel ( ) {", "msg_token": "remove eclipse generated comment"} {"diff": " public class Chronometer extends TextView { \n } \n } \n setText ( text ) ; \n - Slog . v ( STRING0 , STRING1 + seconds + STRING2 + mFormat + STRING3 + text ) ; \n } \n \n private void updateRunning ( ) {", "msg_token": "Remove Chronometer logspew"} {"diff": " public class DeepLearning extends SupervisedModelBuilder < DeepLearningModel , DeepL \n new DeepLearningTask2 ( self ( ) , train , model . model_info ( ) , rowFraction ( train , mp , model ) ) . doAllNodes ( ) . model_info ( ) ) : SINGLE \n new DeepLearningTask ( self ( ) , model . model_info ( ) , rowFraction ( train , mp , model ) ) . doAll ( train ) . model_info ( ) ) ; SINGLE \n update ( model . actual_train_samples_per_iteration ) ; SINGLE \n - if ( ! mp . _quiet_mode ) Log . info ( STRING0 + PrettyPrint . formatPct ( progress ( ) ) ) ; \n } \n while ( model . doScoring ( train , trainScoreFrame , validScoreFrame , self ( ) ) ) ;", "msg_token": "Remove progress printout"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n public class UploadingTest { \n \n public static void main ( String [ ] args ) throws IOException , UploadFailException {", "msg_token": "add user name of code"} {"diff": " public class JavaGenerator implements CodeGenerator \n indent + STRING0 + \n indent + STRING1 + \n indent + STRING2 + \n - indent + STRING3 + \n - indent + STRING4 + \n + indent + STRING5 + \n + indent + STRING6 + \n indent + STRING7 , \n dimensionHeaderSize \n ) ) ; \n public class JavaGenerator implements CodeGenerator \n indent + STRING8 + \n indent + STRING9 + \n indent + STRING2 + \n - indent + STRING3 + \n - indent + STRING4 + \n + indent + STRING5 + \n + indent + STRING6 + \n indent + STRING7 , \n javaTypeForNumInGroup , \n javaTypeForBlockLength , \n public class JavaGenerator implements CodeGenerator \n indent + STRING10 + \n indent + STRING11 + \n indent + STRING12 + \n + indent + STRING13 + \n indent + STRING14 + \n indent + STRING15 + \n indent + STRING16", "msg_token": "Fixed bug with offset moving for iterating over repeating groups"} {"diff": " public class LogAnalyzerTotal implements Serializable { \n JavaPairDStream < String , Long > ipAddressesDStream = accessLogsDStream . mapToPair ( new Functions . IpTuple ( ) ) ; \n JavaPairDStream < String , Long > ipAddressesCountsDStream = ipAddressesDStream . reduceByKey ( new Functions . LongSumReducer ( ) ) ; \n SINGLE \n - JavaPairDStream < String , Long > ipAddressesBytesDStream = accessLogsDStream . mapToPair ( new Functions . IpContentTuple ( ) ) ; \n - JavaPairDStream < String , Long > ipAddressesBytesSumDStream = ipAddressesBytesDStream . reduceByKey ( new Functions . LongSumReducer ( ) ) ; \n - JavaPairDStream < String , Tuple2 < Long , Long > > ipBytesRequestCountDStream = ipAddressesByteSumDStream . join ( ipAddressesCountsDStream ) ; \n + JavaPairDStream < String , Long > ipBytesDStream = accessLogsDStream . mapToPair ( new Functions . IpContentTuple ( ) ) ; \n + JavaPairDStream < String , Long > ipBytesSumDStream = ipBytesDStream . reduceByKey ( new Functions . LongSumReducer ( ) ) ; \n + JavaPairDStream < String , Tuple2 < Long , Long > > ipBytesRequestCountDStream = ipBytesSumDStream . join ( ipAddressesCountsDStream ) ; \n \n SINGLE \n JavaDStream < String > ipAddressDStream = ipAddressesCumDStream . transform (", "msg_token": "Add the dstream join in Java example"} {"diff": " public class View implements Drawable . Callback , KeyEvent . Callback , \n \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class WebViewClient { \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class MediaPlayer implements SubtitleController . Listener \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fixed Javadoc typos"} {"diff": " \n SINGLE \n package NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public interface BundleClassLoaderHelper \n COMMENT \n public static final String CLASS_NAME = STRING0 ; \n \n + COMMENT \n + public static BundleClassLoaderHelper DEFAULT = new DefaultBundleClassLoaderHelper ( ) ; \n + \n COMMENT \n COMMENT \n COMMENT \n package NAMESPACE ; \n \n import NAMESPACE ; \n \n + import NAMESPACE ; \n import NAMESPACE ; \n \n COMMENT \n public interface BundleFileLocatorHelper \n COMMENT \n public static final String CLASS_NAME = STRING1 ; \n \n + COMMENT \n + public static BundleFileLocatorHelper DEFAULT = new DefaultFileLocatorHelper ( ) ; \n + \n + \n COMMENT \n COMMENT \n COMMENT", "msg_token": "add the default helpers as static objects as thy are quite useful to the outside world as it"} {"diff": " public class RelationTriple implements Comparable < RelationTriple > , Iterable < Core \n thisChunk = NUMBER0 ; \n } \n } \n + SINGLE \n + if ( thisChunk > longestChunk ) { \n + longestChunk = thisChunk ; \n + longestChunkStart = thisChunkStart ; \n + } \n SINGLE \n return Pair . makePair ( \n relation . get ( longestChunkStart ) . index ( ) - NUMBER0 , \n - relation . get ( longestChunkStart + longestChunk ) . index ( ) \n + relation . get ( longestChunkStart + longestChunk - NUMBER0 ) . index ( ) \n ) ; \n } \n }", "msg_token": "Fix code to get best relation token span"} {"diff": " implements ReaderInterfaces . OnReaderPostSelectedListener , \n mPostAdapter = new ReaderPostAdapter ( context , getPostListType ( ) ) ; \n mPostAdapter . setOnPostSelectedListener ( this ) ; \n mPostAdapter . setOnTagSelectedListener ( this ) ; \n + mPostAdapter . setOnPostPopupListener ( this ) ; \n mPostAdapter . setOnDataLoadedListener ( mDataLoadedListener ) ; \n mPostAdapter . setOnDataRequestedListener ( mDataRequestedListener ) ; \n mPostAdapter . setOnReblogRequestedListener ( mRequestReblogListener ) ;", "msg_token": "Added missing popup listener"} {"diff": " public class FuzzyKMeansMapper extends Mapper < WritableComparable < ? > , VectorWritab \n } \n \n if ( clusters . isEmpty ( ) ) { \n - throw new IllegalStateException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING1 ) ; \n } \n }", "msg_token": "improved error message in Fuzzy k Means"} {"diff": " package NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n - import NAMESPACE ; \n import NAMESPACE ; \n - \n - import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ;", "msg_token": "Removing accidental import"} {"diff": " import NAMESPACE ; \n protected static void commitDocument ( final Document document ) { \n PsiDocumentManager . getInstance ( getProject ( ) ) . commitDocument ( document ) ; \n } \n + protected static void commitAllDocuments ( ) { \n + PsiDocumentManager . getInstance ( getProject ( ) ) . commitAllDocuments ( ) ; \n + } \n \n protected Document getDocument ( final PsiFile file ) { \n return PsiDocumentManager . getInstance ( getProject ( ) ) . getDocument ( file ) ; \n public class InjectedLanguageUtil { \n } \n \n public static void clearCaches ( PsiFile injected , DocumentRange documentRange ) { \n - PsiElement host = injected . getContext ( ) ; \n - if ( host != null ) { \n - host . putUserData ( INJECTED_PSI , null ) ; \n - } \n VirtualFileDelegate virtualFile = ( VirtualFileDelegate ) injected . getVirtualFile ( ) ; \n injected . putUserData ( ResolveUtil . INJECTED_IN_ELEMENT , null ) ; \n ( ( PsiManagerEx ) injected . getManager ( ) ) . getFileManager ( ) . setViewProvider ( virtualFile , null ) ;", "msg_token": "reparse injected files"} {"diff": " public class EditorFragment extends EditorFragmentAbstract implements View . OnCli \n \n if ( clipDescription . hasMimeType ( MIMETYPE_JPEG ) || clipDescription . hasMimeType ( MIMETYPE_PNG ) ) { \n mEditorFragmentListener . onMediaDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getUri ( ) ) ; \n - } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_PLAIN ) || \n - clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_HTML ) ) { \n + } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_PLAIN ) ) { \n + mEditorFragmentListener . onTextDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getText ( ) \n + . toString ( ) ) ; \n + } else if ( clipDescription . hasMimeType ( ClipDescription . MIMETYPE_TEXT_HTML ) ) { \n mEditorFragmentListener . onTextDropped ( dragEvent . getClipData ( ) . getItemAt ( NUMBER0 ) . getHtmlText ( ) ) ; \n } \n break ;", "msg_token": "plain text drop uses a different getter"} {"diff": " public class JspCServletContext implements ServletContext { \n \n \n COMMENT \n + COMMENT \n + COMMENT \n + public String getContextPath ( ) { \n + \n + return ( null ) ; \n + \n + } \n + \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add new method dummy"} {"diff": " public class EncodedDataType extends Type \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class EncodedDataType extends Type \n { \n if ( getPresence ( ) != Presence . CONSTANT ) \n { \n - throw new IllegalArgumentException ( STRING0 ) ; \n + throw new IllegalStateException ( STRING0 ) ; \n } \n \n return constValue ;", "msg_token": "Changed size javadoc description and throw an IllegalStateException rather than a IllegalArgumentException on getConstValue"} {"diff": " public class TaskAdapter extends CursorAdapter implements Filterable { \n } \n else \n { \n - checkBoxView . setBackgroundResource ( R . drawable . btn_check ) ; \n + checkBoxView . setButtonDrawable ( R . drawable . btn_check ) ; \n } \n if ( pictureView . getVisibility ( ) == View . VISIBLE ) { \n checkBoxView . setVisibility ( View . INVISIBLE ) ; \n public class EditTitleControlSet extends EditTextControlSet implements Importanc \n } \n else \n { \n - completeBox . setBackgroundResource ( R . drawable . btn_check ) ; \n + completeBox . setButtonDrawable ( R . drawable . btn_check ) ; \n } \n }", "msg_token": "Fixed weird looking overlapping checkbox buttons"} {"diff": " public class WordSplitter extends BaseSplitter { \n } \n \n @ nonnls \n - private static final Pattern SPECIAL = Pattern . compile ( STRING0 ) ; \n + private static final Pattern SPECIAL = Pattern . compile ( STRING1 ) ; \n \n @ override \n public void split ( @ nullable String text , @ notnull TextRange range , Consumer < TextRange > consumer ) { \n public class SplitterTest { \n \n @ test \n public void testSpecial ( ) { \n - String text = STRING2 ; \n + String text = STRING3 ; \n correctListToCheck ( PlainTextSplitter . getInstance ( ) , text , STRING4 , STRING4 ) ; \n }", "msg_token": "skip shorter entities too"} {"diff": " import NAMESPACE ; \n public class NoopTask extends AbstractTask \n { \n private static final Logger log = new Logger ( NoopTask . class ) ; \n - private static int defaultRunTime = NUMBER0 ; \n - private static int defaultIsReadyTime = NUMBER1 ; \n - private static IsReadyResult defaultIsReadyResult = IsReadyResult . YES ; \n + private static final int defaultRunTime = NUMBER0 ; \n + private static final int defaultIsReadyTime = NUMBER1 ; \n + private static final IsReadyResult defaultIsReadyResult = IsReadyResult . YES ; \n \n enum IsReadyResult \n { \n public class NoopTask extends AbstractTask \n log . info ( STRING0 ) ; \n return TaskStatus . success ( getId ( ) ) ; \n } \n + \n + public static NoopTask create ( ) \n + { \n + return new NoopTask ( null , NUMBER1 , NUMBER1 , null , null ) ; \n + } \n }", "msg_token": "Fix things that should be static"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING2 , label = STRING3 ) \n + @ uriendpoint ( scheme = STRING0 , title = STRING1 , syntax = STRING4 , label = STRING3 ) \n public class KubernetesEndpoint extends DefaultEndpoint { \n \n private static final Logger LOG = LoggerFactory . getLogger ( KubernetesEndpoint . class ) ;", "msg_token": "Fix Kubernetes Syntax"} {"diff": " public class FileFilter { \n \n static final String [ ] ignoreTestList = { \n STRING0 , SINGLE \n + STRING1 , SINGLE \n STRING2 , SINGLE \n STRING3 , SINGLE \n STRING4 , SINGLE", "msg_token": "Add new LayoutTest fast dom DeviceOrientation basic operation html to skipped list"} {"diff": " public class QuickStatusBarHeader extends BaseStatusBarHeader implements \n \n public void setupHost ( final QSTileHost host ) { \n mHost = host ; \n - host . setHeaderView ( this ) ; \n + host . setHeaderView ( mExpandIndicator ) ; \n mHeaderQsPanel . setQSPanelAndHeader ( mQsPanel , this ) ; \n mHeaderQsPanel . setHost ( host , null COMMENT ) ; \n setUserInfoController ( host . getUserInfoController ( ) ) ;", "msg_token": "Fix QS expanding"} {"diff": " public abstract class HystrixCommandProperties { \n COMMENT \n COMMENT \n public HystrixProperty < Integer > executionTimeoutInMilliseconds ( ) { \n - return executionTimeoutInMilliseconds ; \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + return executionIsolationThreadTimeoutInMilliseconds ( ) ; \n } \n \n COMMENT", "msg_token": "Make HystrixCommandProperties backwards compatible for classes which extend it"} {"diff": " public class IQRegisterHandler extends IQHandler implements ServerFeaturesProvid \n public IQ handleIQ ( IQ packet ) throws PacketException , UnauthorizedException { \n ClientSession session = sessionManager . getSession ( packet . getFrom ( ) ) ; \n IQ reply = null ; \n + SINGLE \n + if ( session == null ) { \n + Log . error ( STRING0 + \n + sessionManager . getPreAuthenticatedKeys ( ) + \n + STRING1 + \n + packet . getFrom ( ) ) ; \n + SINGLE \n + reply = IQ . createResultIQ ( packet ) ; \n + reply . setChildElement ( packet . getChildElement ( ) . createCopy ( ) ) ; \n + reply . setError ( PacketError . Condition . internal_server_error ) ; \n + return reply ; \n + } \n SINGLE \n if ( ! enabled ) { \n reply = IQ . createResultIQ ( packet ) ;", "msg_token": "Added debugging information when a session was not found"} {"diff": " public final class OBJLoader implements AssetLoader { \n \n public Spatial createGeometry ( ) { \n Node groupNode = new Node ( objectName ) ; \n - \n + if ( objectName == null ) { \n + groupNode . setName ( STRING0 ) ; \n + } \n SINGLE \n SINGLE \n SINGLE", "msg_token": "avoid null node names in obj importer"} {"diff": " public abstract class CreateResourceDirectoryDialog extends DialogWrapper { \n \n @ override \n public JComponent getPreferredFocusedComponent ( ) { \n - return myResourceTypeComboBox ; \n + if ( myResourceTypeComboBox . isEnabled ( ) ) { \n + return myResourceTypeComboBox ; \n + } \n + else { \n + return myDirectoryNameTextField ; \n + } \n } \n \n public InputValidator getValidator ( ) {", "msg_token": "fix preferred focus"} {"diff": " \n package NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n public class PackageViewDescriptorImpl extends DeclarationDescriptorImpl impleme \n public Collection < DeclarationDescriptor > getAllDescriptors ( ) { \n List < DeclarationDescriptor > result = Lists . newArrayList ( ) ; \n for ( FqName subFqName : module . getPackageFragmentProvider ( ) . getSubPackagesOf ( fqName ) ) { \n - result . add ( getPackage ( subFqName . shortName ( ) ) ) ; \n + ContainerUtil . addIfNotNull ( result , getPackage ( subFqName . shortName ( ) ) ) ; \n } \n return result ; \n }", "msg_token": "Do not add subpackages that are not found"} {"diff": " package NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n + import NAMESPACE ; \n import NAMESPACE ; \n \n import NAMESPACE ; \n public class ObjectIdentityImpl implements ObjectIdentity { \n public ObjectIdentityImpl ( Object object ) throws IdentityUnavailableException { \n Assert . notNull ( object , STRING0 ) ; \n \n - this . javaType = object . getClass ( ) ; \n + this . javaType = ClassUtils . getUserClass ( object . getClass ( ) ) ; \n \n Object result ;", "msg_token": "Retrieve true underlaying class properly handling CGLIB enhanced versions"} {"diff": " public class ZoomableDraweeView extends DraweeView < GenericDraweeHierarchy > { \n FLog . v ( TAG , STRING0 , this . hashCode ( ) ) ; \n return true ; \n } \n - return true ; \n + return false ; \n } \n \n @ override", "msg_token": "Fix touch handling in the ZoomableDraweeView"} {"diff": " import NAMESPACE ; \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Corrected a typo in comment"} {"diff": " public class BaseFileSystem implements FileSystem { \n @ override \n public void loadMetadata ( AlluxioURI path ) \n throws FileDoesNotExistException , IOException , AlluxioException { \n + LOG . debug ( STRING0 , path ) ; \n loadMetadata ( path , LoadMetadataOptions . defaults ( ) ) ; \n } \n \n @ override \n public void loadMetadata ( AlluxioURI path , LoadMetadataOptions options ) \n throws FileDoesNotExistException , IOException , AlluxioException { \n - LOG . debug ( STRING1 , path ) ; \n + LOG . debug ( STRING2 , path , options ) ; \n FileSystemMasterClient masterClient = mContext . acquireMasterClient ( ) ; \n try { \n masterClient . loadMetadata ( path , options ) ;", "msg_token": "Add log to all kind of loadMetadata"} {"diff": " public class HttpPageBufferClient \n \n SINGLE \n int startOffset = Ints . saturatedCast ( sequenceId - startingSequenceId ) ; \n - if ( startOffset > pages . size ( ) ) { \n + if ( startOffset >= pages . size ( ) ) { \n SINGLE \n return ImmutableList . of ( ) ; \n }", "msg_token": "Fix edge condition when checking number of pages"} {"diff": " import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n @ requestscoped \n public class MyRequestScopedBean { \n \n COMMENT \n package NAMESPACE ; \n \n - import NAMESPACE ; \n + import NAMESPACE ; \n + import NAMESPACE ; \n \n COMMENT \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n - @ requestscoped \n - public class MySessionScopedBean { \n + @ sessionscoped \n + public class MySessionScopedBean implements Serializable { \n public String getID ( ) { \n return this + STRING0 ; \n }", "msg_token": "added correct scope annotation"} {"diff": " import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n import NAMESPACE ; \n + import NAMESPACE ; \n \n import NAMESPACE ; \n import NAMESPACE ; \n public abstract class KotlinDebuggerTestCase extends DescriptorTestCase { \n protected Sdk getTestProjectJdk ( ) { \n return PluginTestCaseBase . fullJdk ( ) ; \n } \n + \n + @ override \n + protected void checkTestOutput ( ) throws Exception { \n + try { \n + super . checkTestOutput ( ) ; \n + } \n + catch ( ComparisonFailure e ) { \n + JetTestUtils . assertEqualsToFile ( \n + new File ( getTestAppPath ( ) + File . separator + STRING0 + File . separator + getTestName ( true ) + STRING1 ) , \n + e . getActual ( ) ) ; \n + } \n + } \n }", "msg_token": "throw FileComparisonFailure instaed of ComparisonFailure"} {"diff": " public class ConventionAwareHelper implements ConventionMapping { \n String propertyName = entry . getKey ( ) ; \n if ( ! ReflectionUtil . hasProperty ( source , propertyName ) ) { \n throw new InvalidUserDataException ( \n - STRING0 + propertyName ) ; \n + STRING1 + propertyName ) ; \n } \n if ( entry . getValue ( ) == null ) { \n throw new IllegalArgumentException ( STRING2 + propertyName ) ;", "msg_token": "Removed unnecessary space from debug message"} {"diff": " public final class TestOptions { \n static { \n String value = System . getProperty ( STRING0 , STRING1 ) ; \n ENABLED = ! ConversionUtil . toBoolean ( value ) ; \n - System . out . println ( STRING2 ) ; \n + if ( ! ENABLED ) { \n + System . err . println ( STRING2 ) ; \n + } \n } \n \n public static boolean isTimingTestEnabled ( ) {", "msg_token": "Printed a warning message when timing tests are disabled"} {"diff": " public class RequestParams { \n } \n \n COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + COMMENT \n + public RequestParams ( Object . . . keysAndValues ) { \n + int len = keysAndValues . length ; \n + if ( len % NUMBER0 != NUMBER1 ) \n + throw new IllegalArgumentException ( STRING0 ) ; \n + for ( int i = NUMBER1 ; i < len ; i += NUMBER0 ) { \n + String key = String . valueOf ( keysAndValues [ i ] ) ; \n + String val = String . valueOf ( keysAndValues [ i + NUMBER2 ] ) ; \n + put ( key , val ) ; \n + } \n + } \n + \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Add varargs RequestParams convenience constructor"} {"diff": " public class CDFitness implements Writable { \n \n CDFitness f = ( CDFitness ) obj ; \n \n - return tp == f . getFp ( ) && fp == f . getFp ( ) && tn == f . getTn ( ) && fn == f . getTn ( ) ; \n + return tp == f . getTp ( ) && fp == f . getFp ( ) && tn == f . getTn ( ) && fn == f . getFn ( ) ; \n } \n \n @ override", "msg_token": "Fix bug in equals from prior change"} {"diff": " public class PipelineConfig extends BaseCollection < StageConfig > implements Param \n public static final String CONFIGURATION_TYPE = STRING0 ; \n public static final String CONFIGURATION_TYPE_STAGES = STRING1 ; \n public static final String CONFIGURATION_TYPE_TEMPLATE = STRING2 ; \n + public static final String LABEL_TEMPLATE_ERROR_MESSAGE = STRING3 ; \n \n @ skipparameterresolution \n @ configattribute ( value = STRING4 , optional = false ) \n public class PipelineConfig extends BaseCollection < StageConfig > implements Param \n \n private void validateLabelTemplate ( ) { \n if ( XmlUtils . doesNotMatchUsingXsdRegex ( LABEL_TEMPLATE_FORMAT_REGEX , labelTemplate ) ) { \n - addError ( STRING5 , \n - STRING6 \n - + STRING7 \n - + STRING8 \n - + STRING9 ) ; \n + addError ( STRING5 , LABEL_TEMPLATE_ERROR_MESSAGE ) ; \n return ; \n }", "msg_token": "adapting error message"} {"diff": " public class Http2UpgradeHandler extends AbstractStream implements InternalHttpU \n } else { \n result = toWrite ; \n } \n - decrementWindowSize ( - result ) ; \n + decrementWindowSize ( result ) ; \n } \n return result ; \n }", "msg_token": "Remove stray after splitting of increment and decrement methods"} {"diff": " public class PhoneStatusBar extends BaseStatusBar implements DemoMode , \n \n SINGLE \n mBackdrop . setVisibility ( View . GONE ) ; \n + mBackdropBack . setImageDrawable ( null ) ; \n } else { \n mBackdrop . animate ( ) \n SINGLE \n public class PhoneStatusBar extends BaseStatusBar implements DemoMode , \n public void run ( ) { \n mBackdrop . setVisibility ( View . GONE ) ; \n mBackdropFront . animate ( ) . cancel ( ) ; \n - mBackdropBack . animate ( ) . cancel ( ) ; \n + mBackdropBack . setImageDrawable ( null ) ; \n mHandler . post ( mHideBackdropFront ) ; \n } \n } ) ;", "msg_token": "Setting mBackdropBack to null if artwork isn t available"} {"diff": " public class ViewConfiguration { \n COMMENT \n COMMENT \n COMMENT \n - private static final int OVERSCROLL_DISTANCE = NUMBER0 ; \n + private static final int OVERSCROLL_DISTANCE = NUMBER1 ; \n \n COMMENT \n COMMENT", "msg_token": "DO NOT MERGE Tweak overscroll"} {"diff": " public final class FileSystemMaster extends AbstractMaster { \n COMMENT \n COMMENT \n public FileInfo getFileInfo ( AlluxioURI path ) \n - throws AccessControlException , FileDoesNotExistException , InvalidPathException { \n + throws FileDoesNotExistException , InvalidPathException , AccessControlException { \n MasterContext . getMasterSource ( ) . incGetFileInfoOps ( NUMBER0 ) ; \n synchronized ( mInodeTree ) { \n checkPermission ( FileSystemAction . READ , path , false ) ; \n public final class FileSystemMaster extends AbstractMaster { \n } \n \n COMMENT \n - COMMENT \n - COMMENT \n + COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Apply the change from upstream master by adding more comments on security on master"} {"diff": " public class FeedItemMenuHandler { \n } \n \n boolean isInQueue = queueAccess . contains ( selectedItem . getId ( ) ) ; \n - if ( queueAccess . size ( ) == NUMBER0 || queueAccess . get ( NUMBER0 ) != selectedItem . getId ( ) ) { \n + if ( queueAccess . size ( ) == NUMBER0 || queueAccess . get ( NUMBER0 ) == selectedItem . getId ( ) ) { \n mi . setItemVisibility ( R . id . move_to_top_item , false ) ; \n } \n - if ( queueAccess . size ( ) == NUMBER0 || queueAccess . get ( queueAccess . size ( ) - NUMBER1 ) != selectedItem . getId ( ) ) { \n + if ( queueAccess . size ( ) == NUMBER0 || queueAccess . get ( queueAccess . size ( ) - NUMBER1 ) == selectedItem . getId ( ) ) { \n mi . setItemVisibility ( R . id . move_to_bottom_item , false ) ; \n } \n if ( ! isInQueue || isPlaying ) {", "msg_token": "Fix move to top bottom"} {"diff": " public class TestingConnectorSession \n . add ( STRING0 , timeZoneKey ) \n . add ( STRING1 , locale ) \n . add ( STRING2 , startTime ) \n - . add ( STRING3 , properties ) \n + . add ( STRING3 , propertyValues ) \n . toString ( ) ; \n } \n }", "msg_token": "Fix properties in toString for TestingConnectorSession"} {"diff": " public class AclExampleTest extends AbstractJavaDocTestbase \n { \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT \n public class AclExampleTest extends AbstractJavaDocTestbase \n COMMENT \n COMMENT \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Define ACL acronym on first usage"} {"diff": " public class MessageView extends K9Activity \n \n class MyGestureDetector extends SimpleOnGestureListener { \n @ override \n + public boolean onDoubleTap ( MotionEvent ev ) { \n + super . onDoubleTap ( ev ) ; \n + int height = getResources ( ) . getDisplayMetrics ( ) . heightPixels ; \n + if ( ev . getRawY ( ) < ( height / NUMBER0 ) ) { \n + mTopView . fullScroll ( mTopView . FOCUS_UP ) ; \n + \n + } else if ( ev . getRawY ( ) > ( height - height / NUMBER0 ) ) { \n + mTopView . fullScroll ( mTopView . FOCUS_DOWN ) ; \n + \n + } \n + return false ; \n + } \n + \n + @ override \n public boolean onFling ( MotionEvent e1 , MotionEvent e2 , float velocityX , float velocityY ) { \n \n SINGLE", "msg_token": "add double tap at top or bottom to jump to the top or bottom of the message"} {"diff": " public class GenericExporter { \n } \n \n COMMENT \n - COMMENT \n + COMMENT \n COMMENT \n COMMENT \n COMMENT", "msg_token": "Fix javadoc of setHandleMethods"} {"diff": " public class OpenStreetMapGraphBuilderImpl implements GraphBuilder { \n street . setStreetClass ( cls ) ; \n \n if ( ! way . hasTag ( STRING0 ) && ! way . hasTag ( STRING1 ) ) { \n - street . setBogusName ( true ) ; \n + street . setHasBogusName ( true ) ; \n } \n street . setStairs ( steps ) ;", "msg_token": "Fix due to lombok change in PlainStreetEdge"}