diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT COMMENT COMMENT + @ serviceprovider ( service = GraphController . class ) public class GraphControllerImpl implements GraphController { @ override
Add GraphController ServiceProvider annotation
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class Imps { } public String getXmppResource ( ) { - return getString ( XMPP_RESOURCE , ImApp . DEFAULT_XMPP_RESOURCE ) ; + String currentResource = getString (...
guarantee a unique XMPP Resource
<nb> - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FirebaseComponent extends UriEndpointComponent { FirebaseConfig firebaseConfig = new FirebaseConfig . Builder ( String . format ( STRING0 , remaining ) , - ( String ) parameters . get ( STRING1 ) , - ( String ) parameters . get ( S...
Using the ootb methods for parameter retrieval
<nb> import NAMESPACE ; public abstract class LightElement extends PsiElementBase { protected final PsiManager myManager ; private final Language myLanguage ; - protected volatile PsiElement myNavigationElement = this ; + private volatile PsiElement myNavigationElement = this ; protected LightElement ( Ps...
don t expose LightElement navigationElement allow to override it
<nb> public abstract class Tree extends AbstractCollection < Tree > implements Label , La COMMENT COMMENT COMMENT - private int indexLeaves ( int startIndex , boolean overWrite ) { + public int indexLeaves ( int startIndex , boolean overWrite ) { if ( isLeaf ( ) ) { COMMENT
Make indexLeaves index overwrite public
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PythonInPlaceBinary extends PythonBinary implements HasRuntimeDeps BuildableContext buildableContext ) { Path binPath = get...
create parent dir for in place binary
<nb> public abstract class AbstractGccCompatibleToolChain extends ExtendableToolChain return new UnavailablePlatformToolProvider ( targetPlatform . getOperatingSystem ( ) , result ) ; } - String objectFileSuffix = targetPlatform . getOperatingSystem ( ) . isWindows ( ) ? STRING0 : STRING1 ; - return new GccPl...
Removed unused constructor parameter
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMM...
added javadoc for AutoCleanup
<nb> public class SegmentColumnarIndexCreator implements SegmentCreator { V1Constants . MetadataKeys . Column . getKeyFor ( column , V1Constants . MetadataKeys . Column . HAS_DICTIONARY ) , String . valueOf ( columnIndexCreationInfo . isCreateDictionary ( ) ) ) ; + SINGLE + SINGLE + SINGLE + SINGLE + SI...
In segment metadata set hasInvertedIndex field always true
<nb> public class StringUtilsTest extends TestCase { result = StringUtils . randomString ( NUMBER0 ) ; assertTrue ( result . length ( ) == NUMBER0 ) ; } + + public void testParsing ( ) { + String error = STRING0 ; + assertEquals ( error , StringUtils . parseName ( STRING1 ) , STRING2 ) ; + assertEquals ...
Adds XMPPAdress parsing tests
<nb> public class IndexerCoordinatorNode if ( taskToolbox == null ) { final RestS3Service s3Client = new RestS3Service ( new AWSCredentials ( - props . getProperty ( STRING0 ) , - props . getProperty ( STRING1 ) + PropUtils . getProperty ( props , STRING0 ) , + PropUtils . getProperty ( props , STRING1 ) ...
use PropUtils for indexer coordinator node
<nb> public abstract class GrMethodCallImpl extends GrCallExpressionImpl implements G @ nullable public GrExpression getInvokedExpression ( ) { - return findChildByClass ( GrExpression . class ) ; + for ( PsiElement cur = this . getFirstChild ( ) ; cur != null ; cur = cur . getNextSibling ( ) ) { + if ( cur...
remove an expensive Class isInstance check
<nb> public class HttpRequest { } } + public String toString ( ) { + return connection . getRequestMethod ( ) + STRING0 + connection . getURL ( ) ; + } + COMMENT COMMENT COMMENT
Add toString implementation that includes URL and method
<nb> public final class UiAutomation { canvas . translate ( - screenshotWidth / NUMBER0 , - screenshotHeight / NUMBER0 ) ; canvas . drawBitmap ( screenShot , NUMBER1 , NUMBER1 , null ) ; canvas . setBitmap ( null ) ; + screenShot . recycle ( ) ; screenShot = unrotatedScreenShot ; }
Recycle original screenshot after rotation
<nb> public class Digester extends DefaultHandler { } - SINGLE - - - COMMENT - COMMENT - COMMENT - public Digester ( ) { - - super ( ) ; - - } - - - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public Digester ( SAXParser parser ) { - - super ...
Remove unused constructors and default constructor that adds nothing
<nb> public class ExportEclipseProjectsAction extends AnAction implements DumbAware { final List < Module > incompatibleModules = new ArrayList < Module > ( ) ; for ( Module module : ModuleManager . getInstance ( project ) . getModules ( ) ) { if ( ! EclipseClasspathStorageProvider . ID . equals ( ClasspathStorag...
dispose module model
<nb> public class TestStore public Store ( String fileName ) throws IOException { super ( fileName , MapUtil . genericMap ( IdGeneratorFactory . class , - ID_GENERATOR_FACTORY ) , null ) ; + ID_GENERATOR_FACTORY , STRING0 , STRING1 ) , null ) ; } protected void initStorage ( )
Put message log in right folder
<nb> public class ASTGenerator { if ( td . getStructuralProperty ( TypeDeclaration . SUPERCLASS_TYPE_PROPERTY ) != null ) { SimpleType st = ( SimpleType ) td . getStructuralProperty ( TypeDeclaration . SUPERCLASS_TYPE_PROPERTY ) ; log ( STRING0 + st . getName ( ) ) ; - ArrayList < CompletionCandidate > candidat...
Refactoring had caused all the chaos
<nb> public class DistributedDoubleBarrier COMMENT COMMENT COMMENT - COMMENT + COMMENT + COMMENT COMMENT public DistributedDoubleBarrier ( CuratorFramework client , String barrierPath , int memberQty ) {
updated the doc
<nb> public final class SubripParser implements SubtitleParser { String currentLine ; while ( ( currentLine = reader . readLine ( ) ) != null ) { + SINGLE + if ( currentLine . length ( ) == NUMBER0 ) + continue ; + SINGLE try { Integer . parseInt ( currentLine ) ;
Ignore extra returns in Subrip parsing
<nb> abstract class AndroidKeyStoreAuthenticatedAESCipherSpi extends AndroidKeyStoreC return ; } + if ( ! STRING0 . equalsIgnoreCase ( params . getAlgorithm ( ) ) ) { + throw new InvalidAlgorithmParameterException ( + STRING1 + params . getAlgorithm ( ) + + STRING2 ) ; + } + GCMParameterSpec spec ; ...
Reject AlgorithmParameters of wrong type
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; COMMENT COMMENT COMMENT + @ runwith ( JUnit4 . class ) public class AbstractClientStream...
Adding missing RunWith annotation for tests
<nb> public abstract class OwnedSynchronizer { } public static OwnedSynchronizer create ( Fiber owner ) { - return new LightweightThreadOwnedSynchronizer ( owner ) ; + return new FiberOwnedSynchronizer ( owner ) ; } public abstract Object getOwner ( ) ; <nb> public abstract class OwnedSynchronizer { ...
Renamed internal OwnedSynchronizer class
<nb> public class Viewer extends VBox SINGLE private void highlightLine ( int pos ) - { - System . out . println ( STRING0 + pos ) ; - + { if ( pos != NUMBER0 ) { if ( lastScrollIndex != - NUMBER1 ) <nb> public class Viewer extends VBox private void setScrollBar ( ) { - System . out . prin...
removed System outs from line highlighting
<nb> public class MessageLoaderHelper { private static final int DECODE_MESSAGE_LOADER_ID = NUMBER0 ; - SINGLE - private final Context context ; - private final FragmentManager fragmentManager ; - private final LoaderManager loaderManager ; - @ nullable SINGLE + SINGLE + private Context context ; ...
avoid leaking data to MessagingController via MessageLoaderHelper after detach
<nb> public class ConcurrentShiftQueue < T > implements IQueue < T > { } else { COMMENT final int newCapacity = ( currentCapacity * NUMBER0 ) / NUMBER1 + NUMBER2 ; - this . mItems = Arrays . copyOf ( this . mItems , newCapacity ) ; + final Object newItems [ ] = new Object [ newCapacity ] ; + System . arrayc...
Revert Made ConcurrentShiftQueue use java internal method of copying an Array for eventually better performance
<nb> public final class BasicOperationScheduler { } } - private class ResponseThread extends Thread { + private class ResponseThread extends Thread implements NIOThread { private final BlockingQueue < Packet > workQueue = new LinkedBlockingQueue < Packet > ( ) ; SINGLE private volatile long processedRes...
Prevent running operations on responsethread and operationservice cleanupthread
<nb> public class TraktCredentials { String refreshToken = null ; long expiresIn = - NUMBER0 ; try { - Response < AccessToken > response = ServiceUtils . getTrakt ( mContext ) . refreshAccessToken ( ) ; + Response < AccessToken > response = ServiceUtils . getTraktNoTokenRefresh ( mContext ) + . refreshAcces...
Do not do token refresh when trying to refresh token
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class ConstructorInvocationTests extends ExpressionTestCase { } @ test + @ ignore public void testArgumentConversion01 ( ) { SINGLE + SINGLE evaluate ( STRING0 , STRING1 , String . class ) ; }
ignore failing test for now
<nb> import NAMESPACE ; COMMENT COMMENT public final class CpCommandTest extends AbstractAlluxioShellTest { + + COMMENT + COMMENT + COMMENT @ test public void copyDirTest ( ) throws Exception { AlluxioShellUtilsTest . resetFileHierarchy ( mFileSystem ) ; <nb> public final class CpCommandTest exten...
Add test descriptions
<nb> public class AzureSimpleTests extends AbstractAzureComputeServiceTestCase { super ( AzureComputeServiceSimpleMock . TestPlugin . class ) ; } - public void testOneNodeDhouldRunUsingPrivateIp ( ) { + public void testOneNodeShouldRunUsingPrivateIp ( ) { Settings . Builder settings = Settings . builder ( )...
Fix method name typo
<nb> public final class WebViewCore { Rect rect = ( Rect ) msg . obj ; nativeScrollLayer ( mNativeClass , nativeLayer , rect ) ; + break ; case DELETE_TEXT : { int [ ] handles = ( int [ ] ) msg . obj ;
Fix crash when scrolling a layer
<nb> public class MessageRouter extends BasicModule { final Message msg = ( Message ) packet ; if ( msg . getType ( ) . equals ( Message . Type . chat ) && serverName . equals ( recipient . getDomain ( ) ) && recipient . getResource ( ) != null - && userManager . isRegisteredUser ( recipient . getNode ( ) ) ) ...
Do not send error messages to non available local users
<nb> public class StickyHeaderAdapter extends AbstractAdapter implements StickyRecycl TextView textView = ( TextView ) holder . itemView ; IItem item = getItem ( position ) ; - if ( item instanceof SimpleSubItem && ( ( SimpleSubItem ) item ) . header != null ) { + if ( item instanceof SimpleItem && ( ( Simple...
missed a piece for the SimpleItem in the StickyHeaderAdapter
<nb> import NAMESPACE ; public class RealmMigrationTests extends AndroidTestCase { + @ override + protected void tearDown ( ) throws Exception { + super . tearDown ( ) ; + Realm . setSchema ( null ) ; + } + public void testRealmClosedAfterMigrationException ( ) throws IOException { String REALM_NA...
Fixed unit tests
<nb> public class CallbacksTest extends TestCase implements Paths { private static final int THREAD_TIMEOUT = NUMBER0 ; - protected void waitFor ( Thread t ) { + protected void waitFor ( Thread thread ) { long start = System . currentTimeMillis ( ) ; - while ( t . isAlive ( ) ) { - Thread . sleep ( NUMB...
fix more merge fallout
<nb> package NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; public class RNNOptions implements Serializable { <nb> public class RNNOptions implements Serializable { COMMENT public int numClasses = NUMBER0 ; - public boolean lowercaseWordVectors ; + public boolean lowerc...
Add some defaults to the RNNOptions
<nb> public abstract class GenericFilter implements Filter , FilterConfig , Serializabl public void init ( ) throws ServletException { SINGLE } + + + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + @ override + public void destroy ( ) { + SINGLE + } }
Add a NO OP destroy method
<nb> public class DVParser { SINGLE int startTree = batch * op . trainOptions . batchSize ; int endTree = ( batch + NUMBER0 ) * op . trainOptions . batchSize ; - if ( endTree + op . trainOptions . batchSize > shuffledSentences . size ( ) ) { + if ( endTree > shuffledSentences . size ( ) ) { endTree = shuffl...
Fix the endpoints for each batch in the DVParser
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ...
opened project view after opening of study project
<nb> public abstract class DbConnectorConfig @ config ( STRING0 ) public abstract String getSegmentTable ( ) ; - @ jsonproperty ( STRING1 ) + @ jsonproperty ( STRING2 ) @ config ( STRING3 ) public boolean isValidationQuery ( ) { return false ;
Fix bug with same name on multiple JSON properties
<nb> public class ServletUriComponentsBuilderTests { assertEquals ( NUMBER0 , result . getPort ( ) ) ; } + SINGLE + + @ test + public void fromRequestWithForwardedHostMultiValuedHeader ( ) { + this . request . addHeader ( STRING0 , STRING1 ) ; + + assertEquals ( STRING2 , ServletUriComponentsBuilder...
Add test case for multivalue x forwarded host header
<nb> public final class ReflectedProject { myProject = null ; } } - catch ( Exception e ) { + catch ( Throwable e ) { LOG . info ( e ) ; myProject = null ; }
do not throw class loading errors if failed to load ant project
<nb> public class LocationManagerService extends ILocationManager . Stub { COMMENT COMMENT private void switchUser ( int userId ) { + if ( mCurrentUserId == userId ) { + return ; + } mBlacklist . switchUser ( userId ) ; mLocationHandler . removeMessages ( MSG_LOCATION_CHANGED ) ; synchronized ( mLock ...
remove unnecessary switchUser call
<nb> import NAMESPACE ; @ stateless public class JmsClient { - @ resource ( name = Resources . REQUEST_QUEUE ) + @ resource ( lookup = Resources . REQUEST_QUEUE ) Queue requestQueue ; @ inject
Fix TempQueueTest for Glassfish
<nb> public class ColumnAccessModel implements Query { AdapterQueryBuilder contentValue = new AdapterQueryBuilder ( ) ; if ( ! requiresTypeConverter ) { - if ( castedClass != null && useCastIfApplicable ) { + if ( castedClass != null && useCastIfApplicable && ! isABlob ) { contentValue . appendCast ( isABlo...
fixed cast problem
<nb> public class PyUnresolvedReferencesInspection extends PyInspection { } for ( PyFunction method : containedClass . getMethods ( ) ) { Property property = method . getProperty ( ) ; - if ( property != null ) { + if ( property != null && method . getName ( ) . equals ( refex . getText ( ) ) ) { actions . ...
fixed property quickFixcreation in Unresolved Reference Inspection
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public abstract class SmackTestCase extends TestCase { for ( int i = NUMBER0 ; i < getMaxConnections ( ) ; i ++ ) { SINGLE - getConnection ( i ) . getAccountManager ( ) ....
Improved setup to recover if the account already exists
<nb> COMMENT package NAMESPACE ; - public class NodeNotFoundException extends Exception { + import NAMESPACE ; + + public class NodeNotFoundException extends NotFoundException { public NodeNotFoundException ( String msg ) { super ( msg ) ; }
the NodeNotFoundException did not extend NotFoundException so it wasn t properly mapped
<nb> public class CaldroidFragment extends DialogFragment { } + @ override + public void show ( FragmentManager manager , String tag ) { + if ( manager . findFragmentByTag ( tag ) == null ) { + super . show ( manager , tag ) ; + } + } + @ override public void onDetach ( ) { super . onDetach ( ...
Disallowing launching of multiple instances of the dialog fragment
<nb> import NAMESPACE ; public class InfoConstants extends ConstantsContainer { public static String PATH_SEPARATOR = Constants . PATH_SEPARATOR ; + public static String DIRECTORY_SEPARATOR = Constants . DIRECTORY_SEPARATOR ; }
Add DIRECTORY_SEPARATOR constant
<nb> public abstract class PreferenceFragment extends Fragment implements } } - private ListView getListView ( ) { + COMMENT + public ListView getListView ( ) { ensureList ( ) ; return mList ; }
Make getListView public and hidden as it is needed for WifiSettings
<nb> public class DisambiguationPatternRule extends AbstractPatternRule { final int patternSize = patternElements . size ( ) ; final int limit = Math . max ( NUMBER0 , tokens . length - patternSize + NUMBER1 ) ; Element elem = null ; + boolean changed = false ; for ( int i = NUMBER0 ; i < limit && ! ( sentSta...
create new AnalyzedSentence only when the disambiguation rule actually matched
<nb> public class RulesWsTest { assertThat ( list . handler ( ) ) . isNotNull ( ) ; assertThat ( list . since ( ) ) . isEqualTo ( STRING0 ) ; assertThat ( list . isPost ( ) ) . isFalse ( ) ; - assertThat ( list . isInternal ( ) ) . isFalse ( ) ; + assertThat ( list . isInternal ( ) ) . isTrue ( ) ; assertTh...
Fix unit test
<nb> public class GpsNetInitiatedHandler { mNiNotification . defaults &= ~ Notification . DEFAULT_SOUND ; } - mNiNotification . flags = Notification . FLAG_ONGOING_EVENT ; + mNiNotification . flags = Notification . FLAG_ONGOING_EVENT | Notification . FLAG_AUTO_CANCEL ; mNiNotification . tickerText = getNoti...
Add FLAG_AUTO_CANCEL flag for multiple supl notifications
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class BatchUpdateResult < K , V > { private final Map < K , UpdateResponse > _results ; <nb> public class BatchUpdateResult < K , V > this ( results , Collections . < K , RestLiServiceException > emptyMap ( ) ) ; } + COMMENT + COMMENT ...
Added javadoc for BatchUpdateResult
<nb> public class SlidingLayer extends FrameLayout { private void init ( ) { + if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { + setLayerType ( LAYER_TYPE_HARDWARE , null ) ; + } + setWillNotDraw ( false ) ; setDescendantFocusability ( FOCUS_AFTER_DESCENDANTS ) ; setFocusable...
Enabled hardware acceleration
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - @ ignore @ category ( ExternalDB . class ) public class MSSQLSuiteTest extends AbstractSuite { <nb> package NAMESPACE ;...
Remove Ignore annotations
<nb> public class HistoricTaskDetailPanel extends DetailPanel { List < Attachment > attachments = new ArrayList < Attachment > ( ) ; attachments . addAll ( taskService . getTaskAttachments ( historicTask . getId ( ) ) ) ; if ( historicTask . getProcessInstanceId ( ) != null ) { - System . out . println ( STRING...
Removed System out println message
<nb> public class EnglishTaggerTest extends TestCase { public void testTagger ( ) throws IOException { myAssert ( STRING0 , STRING1 ) ; - myAssert ( STRING2 , STRING3 ) ; - myAssert ( STRING4 , STRING5 ) ; + myAssert ( STRING2 , STRING6 ) ; + myAssert ( STRING4 , STRING7 ) ; myAssert ( STRING8 , STRING9...
fixes for the new dict download a new version from the same address as usual
<nb> public class DateUtils COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DateUtils COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
Fix javadocs based on recent case consistency change
<nb> public class TorodbMeta { SQLWrapper sqlWrapper ) throws SQLException , IOException , InvalidDatabaseException { this . databaseName = databaseName ; + this . sqlWrapper = sqlWrapper ; + Meta jooqMeta = dsl . meta ( ) ; Connection conn = dsl . configuration ( ) . connectionProvider ( ) . acquire ( ) ...
Fixed bug initializing sqlWrapper in TorodbMeta
<nb> public class EditorExampleActivity extends AppCompatActivity implements EditorFr public static final int ADD_MEDIA_ACTIVITY_REQUEST_CODE = NUMBER0 ; public static final int ADD_MEDIA_FAIL_ACTIVITY_REQUEST_CODE = NUMBER1 ; + public static final int MEDIA_REMOTE_ID_SAMPLE = NUMBER2 ; + private static fin...
Updated Editor example project with changes to onMediaUploadProgress
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class h2odriver extends Configured implements Tool { Runtime ....
Removed some dead commented code and unused imports
<nb> package NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; COMMENT COMMENT <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; i...
Remove unused imports
<nb> public interface AgentBuilder { COMMENT COMMENT COMMENT + COMMENT COMMENT public DescriptionStrategy withSuperTypeLoading ( ) { return new SuperTypeLoading ( this ) ; <nb> public interface AgentBuilder { } COMMENT + COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMME...
Added additional documentation
<nb> package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; + import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import NAMESPACE ; + STRING0 + STRING1 , category = TRUTH , - severity = WARNI...
Make TruthSelfEquals an error by default
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public final class HiveType HiveType hiveValueType = toHiveType ( type . getTypeParameters ( ) . get ( NUMBER0 ) ) ; return new HiveType ( format ( STRING0 , hiv...
Categorize unsupported Hive type error
<nb> public class MTLaf extends DarculaLaf { @ suppresswarnings ( STRING0 ) private void patchStyledEditorKit ( UIDefaults defaults ) { - URL url = getClass ( ) . getResource ( getPrefix ( ) + STRING1 ) ; + URL url = getClass ( ) . getResource ( STRING2 + this . theme + STRING3 + this . theme + STRING1 ) ; ...
Fix path to stylesheet
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; <nb> public class PathFunction extends AbstractFunction < Boolean > { private static final String FUNCTION_NAME = STRING0 ; public Atom < Boolean > compute ( final List < Operat...
p function now evaluates arguments
<nb> public class AbstractRestFunctionalTestBase extends SharedServerTestBase impleme + script + STRING0 ; } + protected String formatJavaScript ( String script ) + { + script = script . replace ( STRING1 , STRING2 ) ; + if ( ! script . endsWith ( STRING2 ) ) + { + script += STRING2 ; + } + return...
adding JS formatting
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RobinEngineTests extends ElasticsearchTestCase { } @ test + @ awaitsfix ( bugUrl = STRING0 ) public void testSegments...
Disable testSegmentsWithMergeFlag with AwaitsFix
<nb> public class CompilerOptions implements Serializable , Cloneable { public boolean inlineFunctions ; COMMENT - public boolean decomposeExpressions ; - - COMMENT - public boolean inlineAnonymousFunctionExpressions ; - - COMMENT public boolean inlineLocalFunctions ; COMMENT
Remove unused function inlining compiler options
<nb> public class GremlinSessionTest { String result = session . evaluate ( STRING0 ) . first ( ) ; assertEquals ( STRING1 + NEWLINE , result ) ; - result = session . evaluate ( STRING2 ) . first ( ) ; - assertEquals ( STRING1 + NEWLINE , result ) ; + result = session . evaluate ( STRING3 ) . first ( ) ; ...
fixed the Gremlin test back to the original state where Blueprints is not deleting stuff
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FacetsTreeCellRenderer extends GroupedElementsRenderer . Tree { if ( configurable != null ) { final Icon icon = configurable . getIcon ( expanded ) ; final boolean showSeparator = configurable instanceof FrameworkDetectionCon...
fix always visible hor scrollbar
<nb> public class ServerRootDescription { root . get ( DESCRIPTION ) . set ( bundle . getString ( ReadConfigAsXmlHandler . READ_CONFIG_AS_XML ) ) ; root . get ( REQUEST_PROPERTIES ) . setEmptyObject ( ) ; root . get ( REPLY_PROPERTIES , TYPE ) . set ( ModelType . STRING ) ; - root . get ( REPLY_PROPERTIES , DES...
Use the correct resource bundle key
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; @ xmllayout ( R . layout . at_command_fragment ) public class AtCommandFragment extends InjectionFragment { - private final Logger l...
inject Logger into Fragment
<nb> public class CcuCommunicator implements CcuCallbackReceiver { if ( bindingConfig . getAction ( ) == BindingAction . RELOAD_VARIABLES ) { stateHolder . reloadVariables ( ) ; } else if ( bindingConfig . getAction ( ) == BindingAction . RELOAD_DATAPOINTS ) { - stateHolder . reloadVariables ( ) ; + stateHold...
Fixed datapoint reloading in item action
<nb> public class ReactImageView extends GenericDraweeView { ImageRequest imageRequest = ImageRequestBuilder . newBuilderWithSource ( mUri ) . setPostprocessor ( postprocessor ) . setResizeOptions ( resizeOptions ) + . setAutoRotateEnabled ( true ) . setProgressiveRenderingEnabled ( mProgressiveRenderingEnabl...
Fix image orientation on Android for local uris
<nb> final class ZLTreeResource extends ZLResource { public boolean startElementHandler ( String tag , ZLStringMap attributes ) { final ArrayList < ZLTreeResource > stack = myStack ; if ( ! stack . isEmpty ( ) && ( NODE . equals ( tag ) ) ) { - String name = attributes . getValue ( STRING0 ) ; + final String ...
added final modifier
<nb> public class ProgressBar extends View { mAnimation . setDuration ( mDuration ) ; mAnimation . setInterpolator ( mInterpolator ) ; mAnimation . setStartTime ( Animation . START_ON_FIRST_FRAME ) ; - postInvalidate ( ) ; } + postInvalidate ( ) ; } COMMENT <nb> public class ProgressBar extends View...
Invalidate the ProgressBar when changing animation states
<nb> public class NetworkModHandler } } + FMLLog . finest ( STRING0 , container . getModId ( ) ) ; + boolean acceptsSelf = acceptVersion ( container . getVersion ( ) ) ; + if ( ! acceptsSelf ) + { + FMLLog . severe ( STRING1 , container . getModId ( ) , container . getVersion ( ) ) ; + } + else + ...
Log a big fat warning for the developer in the case the network version
<nb> public class HelloworldActivity extends ActionBarActivity { PrintWriter pw = new PrintWriter ( sw ) ; e . printStackTrace ( pw ) ; pw . flush ( ) ; - return STRING0 + System . lineSeparator ( ) + sw ; + return String . format ( STRING1 , sw ) ; } }
don t use System lineSeparator if unsupported
<nb> public class CommonLVCS extends LocalVcs implements ProjectComponent , FileConten } public synchronized void endAction ( LvcsActionImpl action ) { - checkOldLvcsEnabled ( ) ; + if ( ! isOldLvcsEnabled ( ) ) return ; commitAllUnsavedDocuments ( ) ; if ( LOG . isDebugEnabled ( ) ) {
delayed commit bug fix
<nb> public class ModuleDetection { modules . put ( STRING0 , STRING1 ) ; modules . put ( STRING2 , STRING3 ) ; modules . put ( STRING4 , STRING5 ) ; + modules . put ( STRING6 , STRING7 ) ; + modules . put ( STRING8 , STRING9 ) ; + } public final static String detect ( ) {
Add more modules
<nb> public class PreviewMediaFragment extends FileFragment implements } case R . id . action_send_file : { sendFile ( ) ; + return true ; } case R . id . action_sync_file : { mContainerActivity . getFileOperationsHelper ( ) . syncFile ( getFile ( ) ) ;
Fixed accidental refresh when sending media file to other app
<nb> public final class InputMethodManager { Handler vh = view . getHandler ( ) ; if ( vh == null ) { SINGLE - SINGLE - if ( DEBUG ) Log . v ( TAG , STRING0 ) ; + SINGLE + SINGLE + SINGLE + if ( DEBUG ) Log . v ( TAG , STRING1 ) ; + closeCurrentInput ( ) ; return false ; } if ( vh . getLooper ...
Close the current input method when attached view doesn t have a handler
<nb> public class Splash extends JWindow { if ( myShowLicenseeInfo ) { g . setFont ( new Font ( UIUtil . ARIAL_FONT_NAME , Font . BOLD , NUMBER0 ) ) ; g . setColor ( ideaDARK_BLUE ) ; - g . drawString ( LicenseManager . getInstance ( ) . licensedToMessage ( ) , x + NUMBER1 , y + getIconHeight ( ) - NUMBER2 ) ; ...
integrate splash text position
<nb> public class PyAttachToProcessAction extends AnAction { Project project = CommonDataKeys . PROJECT . getData ( e . getDataContext ( ) ) ; Module module = e . getData ( LangDataKeys . MODULE ) ; - Sdk sdk = PythonSdkType . findPythonSdk ( module ) ; + Sdk sdk = PythonSdkType . findLocalCPython ( module ) ...
We need local CPython here
<nb> public class TestCustomSsl extends TomcatBaseTest { connector . setProperty ( STRING0 , STRING1 ) ; File keystoreFile = - new File ( STRING2 ) ; + new File ( STRING3 ) ; connector . setAttribute ( STRING4 , keystoreFile . getAbsolutePath ( ) ) ;
Missed a keystore in the refactoring
<nb> public abstract class AbstractShadowRenderer implements SceneProcessor , Savable , COMMENT COMMENT COMMENT - protected void setPostShadowMaterial ( Material postShadowMat ) { + protected final void setPostShadowMaterial ( Material postShadowMat ) { this . postshadowMat = postShadowMat ; postshadowMat...
removed the comment and returned a final modification to the method
<nb> import NAMESPACE ; import NAMESPACE ; - public class HelloP5 extends PApplet { + public class ScheduleViz extends PApplet { private static final long serialVersionUID = - NUMBER0 ;
Renamed the class HelloP5 from the hello world template to ScheduleViz
<nb> public final class LocalBlockOutStream extends BufferedBlockOutStream { RandomAccessFile localFile = mCloser . register ( new RandomAccessFile ( blockPath , STRING0 ) ) ; mLocalFileChannel = mCloser . register ( localFile . getChannel ( ) ) ; SINGLE - LOG . info ( STRING1 + blockPath + STRING2 ) ; + LOG ...
Fix Log message in LocalBlockOutStream to not include parenthesis
<nb> public class CliConfiguration { private String user ; public Optional < String > getUser ( ) { - return Optional . of ( user ) ; + return Optional . ofNullable ( user ) ; } @ parameter ( names = STRING0 , description = STRING1 )
Fix use of Optional for null
<nb> class StableInvocationHandler < T extends DomElement > implements InvocationHandler if ( AdvancedProxy . EQUALS_METHOD . equals ( method ) ) { final Object arg = args [ NUMBER0 ] ; - if ( ! ( arg instanceof StableElement ) ) return false ; + if ( arg instanceof StableElement ) { + return myCachedValue ...
stable elements equals fix greg
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + public class HashesCommandsTest extends JedisCommandTestBase { @ test public void hset ( ) { <nb> public class HashesCommandsTest extends JedisCommandTestBase { List < String > expected = new ArrayList < String > ( ) ; expected . ad...
Fix some more U tests
<nb> public class OETLPipeline { } public ODatabaseDocumentTx getDocumentDatabase ( ) { + if ( db != null ) + db . activateOnCurrentThread ( ) ; return db ; } <nb> public class OETLPipeline { } public OrientBaseGraph getGraphDatabase ( ) { + if ( graph != null ) + graph . makeActive ( ) ; ...
Fixed problem with parallel execution
<nb> public class SingleProfileStateStore implements ProfileStateStore { if ( ps . lowerBound >= minUpperBounds . get ( ps . stop ) ) return false ; + ps . previous = null ; + if ( ps . upperBound < minUpperBounds . get ( ps . stop ) ) minUpperBounds . put ( ps . stop , ps . upperBound ) ;
reset previous state in single state store
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; public class BuilderFactory {
Remove unnecessary imports
<nb> public class IrcStack COMMENT COMMENT COMMENT - private ChatRoomIrcImpl chatroom ; + private final ChatRoomIrcImpl chatroom ; COMMENT COMMENT
Made the chat room instance in ChatRoomListener final