diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public abstract class AbstractCheckVisitor aKey , aArgs , getSeverityLevel ( ) , - this . getClass ( ) . getName ( ) ) ) ; + this . getClass ( ) ) ) ; } COMMENT
fixed parameter type issue strange
<nb> package NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; - COMMENT COMMENT <nb> public class UserMap {...
Make UserMap work with UserDetails not User concrete class
<nb> public class TestSerDeUtils InnerStruct innerStruct ; } - private static ObjectInspector getInspector ( Type type ) + private static synchronized ObjectInspector getInspector ( Type type ) { + SINGLE + SINGLE + + SINGLE + SINGLE + SINGLE + return getReflectionObjectInspector ( type , Ob...
Fix flaky tests in TestSerDeUtils
<nb> public class MediaRecorder COMMENT public void setCaptureRate ( double fps ) { SINGLE - setParameter ( String . format ( STRING0 ) ) ; + setParameter ( STRING0 ) ; double timeBetweenFrameCapture = NUMBER0 / fps ; int timeBetweenFrameCaptureMs = ( int ) ( NUMBER1 * timeBetweenFrameCapture ) ; - se...
Make setCaptureRate locale safe
<nb> public class Argument { CHARACTER , STRING , DIGRAPH , - EX_STRING ; + EX_STRING } COMMENT <nb> public class CharacterHelper { KATAKANA , HALF_WIDTH_KATAKANA , PUNCTUATION , - WHITESPACE ; + WHITESPACE } public static final char CASE_TOGGLE = STRING0 ;
Removed unnecessary semicolons
<nb> public class BatchNumberList extends BaseBatchBolt { @ override public void prepare ( Map conf , TopologyContext context , BatchOutputCollector collector , Object id ) { _collector = collector ; - System . out . println ( STRING0 + id ) ; } @ override public void execute ( Tuple tuple ) { - Syste...
remove debug prints
<nb> public class MessageList sortDateAscending = mController . isSortAscending ( SORT_TYPE . SORT_DATE ) ; mController . addListener ( mAdapter . mListener ) ; - mAdapter . markAllMessagesAsDirty ( ) ; if ( mFolderName != null ) { <nb> public class MessageList } else { + mAdapter . markAllMessa...
Optimize the new return to listview code
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class GlassPaneDialogWrapperPeer extends DialogWrapperPeer implements Foc private MyDialog ( IdeGlassPaneEx pane , DialogWrapper wrapper , Project project ) { setLayout ( new BorderLayout ( ) ) ; setOpaque ( false ) ; - setBorder...
remove empty border from glasspane
<nb> public interface OutputManager COMMENT COMMENT COMMENT - Writer newOutput ( final String name ) throws IOException ; + Writer createOutput ( final String name ) throws IOException ; } <nb> public class PackageOutputManager implements OutputManager COMMENT COMMENT COMMENT - public Writer newOu...
Rename newOutput to createOutput
<nb> public class BatchProcessor extends ServiceSupport implements Processor , Navigat try { sendExchanges ( ) ; } catch ( Throwable t ) { - if ( t instanceof Exception ) { - getExceptionHandler ( ) . handleException ( t ) ; - } else { - getExceptionHandler ( ) . handleException ( new CamelException ( t )...
BatchProcessor now catches throwable and logs them
<nb> public class CachingClusteredClient < T > implements QueryRunner < T > } if ( queryCacheKey != null ) { - Map < Pair < ServerSelector , SegmentDescriptor > , Cache . NamedKey > cacheKeys = Maps . newHashMap ( ) ; + SINGLE + Map < Pair < ServerSelector , SegmentDescriptor > , Cache . NamedKey > cacheKey...
preserve segment order when pulling from cache
<nb> public class WebView extends AbsoluteLayout COMMENT COMMENT COMMENT - COMMENT COMMENT + COMMENT COMMENT protected WebView ( Context context , AttributeSet attrs , int defStyle , Map < String , Object > javaScriptInterfaces , boolean privateBrowsing ) {
Fix silly comment order error
<nb> public class ValidationImpl implements Validation { @ override public boolean hasBeanViolation ( String field ) { - for ( FieldViolation fieldViolation : beanViolations ) { - if ( fieldViolation . field . contentEquals ( field ) ) { + for ( FieldViolation beanViolation : beanViolations ) { + if ( bea...
Adding consistent method for beans validations
<nb> public class PGraphicsRetina2D extends PGraphicsJava2D { SINGLE + + @ override + public boolean canDraw ( ) { + return parent . getGraphicsConfiguration ( ) != null ; + } + + @ override public void beginDraw ( ) { SINGLE GraphicsConfiguration gc = parent . getGraphicsConfiguration ( )...
add canDraw method for embedding
<nb> public class Source implements InsertSourceHandler , if ( activeEditor_ != null && activeEditor_ instanceof TextEditingTarget ) { TextEditingTarget editor = ( TextEditingTarget ) activeEditor_ ; - editor . reflowText ( ) ; + editor . onReflowComment ( ) ; } } <nb> public class TextEditingTarget i...
allow reflowComment in Markdown mode to just reflow text
<nb> public class DraggableView extends RelativeLayout { COMMENT void changeSecondViewPosition ( ) { ViewHelper . setY ( secondView , dragView . getBottom ( ) ) ; - ViewHelper . setX ( secondView , dragView . getLeft ( ) ) ; } COMMENT <nb> public class ResizeTransformer extends Transformer { RelativeL...
Fix bug related with positions when the top view is resized
<nb> import static NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Removed obsolete import
<nb> public class ChunkedInputFilter implements InputFilter { String headerName = new String ( trailingHeaders . getBytes ( ) , startPos , colonPos - startPos , StandardCharsets . ISO_8859_1 ) ; - if ( allowedTrailerHeaders . contains ( headerName . trim ( ) . toLowerCase ( Locale . ENGLISH ) ) ) { + if ( all...
Remove unnecessary code
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class SQLEditorContributor extends BasicTextEditorActionContributor IMenuManager editMenu = manager . findMenuUsingPath ( IWorkbenchActionConstants ...
Add toggle block selection mode action in SQL editor menu
<nb> public class RouteDefinition extends ProcessorDefinition < RouteDefinition > { SINGLE SINGLE if ( builder . getRouteCollection ( ) . getErrorHandlerBuilder ( ) != null - && camelContext . getErrorHandlerBuilder ( ) != builder . getRouteCollection ( ) . getErrorHandlerBuilder ( ) ) { + && camelContext . g...
Fixed the cs error of RouteDefinition
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RemoteExternalSystemCommunicationManager implements ExternalSystemC SINGLE ContainerUtil . addIfNotNull ( PathUtil . getJarPathForClass ( Un...
add kotlin runtime jar to the classpath of the remote process
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - public class ManagedRouteLoadStatisticsTest extends ManagementTestSupport { + public class ManagedRouteLoadstatisticsTest extends ManagementTestSupport { public void testLoadStatisticsAreDisabledByDefault ( ) throws Exception { SINGLE
Disable load performance statistics by default
<nb> public class ComboBox extends ComboBoxWithWidePopup implements AWTEventListener @ override public boolean hasFocus ( ) { - if ( SystemInfo . isMac && UIUtil . isUnderAquaLookAndFeel ( ) && myPaintingNow ) { + if ( SystemInfo . isMac && UIUtil . isUnderAquaLookAndFeel ( ) && myPaintingNow && isEditable ) ...
restore focus ring for non editable combo
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection { SINGLE SINGLE Exception res = closingStreamReceived . checkIfSuccessOrWait ( ) ; - LOGGER . info ( STRING0 + res ) ; } catch ( InterruptedException | NoResponseException e ) { LOGGER . log ( Level . INFO , STRING1 + this , e ) ; }
Remove log statement
<nb> public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig actionManager . getActionHandler ( IdeActions . ACTION_EDITOR_BACKSPACE ) . execute ( getEditor ( ) , dataContext ) ; return ; } + if ( c == STRING0 ) { + actionManager . getActionHandler ( IdeActions . ACTION_EDITOR_ENTER )...
understand enter in fixture
<nb> public class TextureView extends View { } mSurface = surfaceTexture ; - SINGLE - SINGLE - if ( ( ( mViewFlags & VISIBILITY_MASK ) == VISIBLE ) ) { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + if ( ( ( mViewFlags & VISIBILITY_MASK ) == VISIBLE ) && mLayer != null ) { mSu...
Fix NPE in setSurfaceTexure
<nb> public class LayoutInflater extends android . view . LayoutInflater implements Clone } public static void registerPackage ( String packageName ) { - packageName = Package . getPackage ( packageName ) . getName ( ) ; - if ( ! sPackages . contains ( packageName ) ) { + packageName = resolveFullPackageNam...
Fixed layout inflater throwing NullPointerException during initization
<nb> public class CSVResultsExtractor { } docsAsMap . add ( doc ) ; } + ArrayList < String > headersList = new ArrayList < > ( csvHeaders ) ; if ( this . includeScore ) { - csvHeaders . add ( STRING0 ) ; + headersList . add ( STRING0 ) ; } if ( this . includeType ) { - csvHeaders . add ( STRING1 ) ;...
csv change headers to list instead of hashset to maintain order
<nb> public class LangFunctions extends FunctionsContainer { } @ runtime.immutable + public static boolean is_number ( Memory memory ) { + return StringMemory . toNumeric ( memory . toString ( ) , true , null ) != null ; + } + + @ runtime.immutable public static boolean is_scalar ( Memory memory ) { ...
Add is_number function
<nb> public class Container extends ViewGroup { View view = itemAdapter . getHeaderViewForSection ( frameDesc . itemSection , headerViewpool . size ( ) > NUMBER0 ? headerViewpool . remove ( NUMBER0 ) : null , this ) ; - view . setAlpha ( NUMBER1 ) ; usedHeaderViews . put ( frameDesc . data , view ) ; addVie...
removed setAlpha in the container
<nb> public class DebugLogs extends BaseActivity { Intent intent = new Intent ( Intent . ACTION_SEND ) ; intent . setType ( STRING0 ) ; SINGLE - intent . putExtra ( Intent . EXTRA_EMAIL , STRING1 ) ; + intent . putExtra ( Intent . EXTRA_EMAIL , new String [ ] { STRING1 } ) ; intent . putExtra ( Intent . EXT...
fixed merge conflict
<nb> public class NioEndpoint extends AbstractJsseEndpoint < NioChannel > { public void run ( ) { SINGLE while ( true ) { - SINGLE - while ( paused && ( ! close ) ) { - try { - Thread . sleep ( NUMBER0 ) ; - } catch ( InterruptedException e ) { - SINGLE - } - } boolean hasEvents = false ;
Pausing the endpoint should not pause the poller
<nb> public class BpmnParseTest extends PluggableActivitiTestCase { SINGLE List < String > resourceNames = repositoryService . getDeploymentResourceNames ( processDefinitionEntity . getDeploymentId ( ) ) ; - GraphicsEnvironment ge = GraphicsEnvironment . getLocalGraphicsEnvironment ( ) ; - if ( ! ge . isHeadl...
Removed headless check in testcase
<nb> public class MetricsController extends AuthenticatedController { clearSessionId . set ( userAndSessionId [ NUMBER0 ] ) ; } else if ( command instanceof SubscribeMetricsUpdates ) { final SubscribeMetricsUpdates metricsUpdates = ( SubscribeMetricsUpdates ) command ; - Logger . info ( STRING0 , + Logger . d...
Lowering severity of log message to prevent log spamming
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; COMMENT <nb> public class SslHandler extends FrameDecoder int ignoreClosedChannelException ; final Object ignoreClosedChannelExceptionLock = new Object ( ) ; private final Queue...
Replaced SslHandler pendingEncryptedWrites with the thread safe one
<nb> public class XmlRpcClient implements CcuClient { COMMENT @ override public void release ( HmInterface hmInterface ) throws CcuClientException { - xmlRpcConnections . get ( hmInterface ) . init ( STRING0 , hmInterface . toString ( ) ) ; + xmlRpcConnections . get ( hmInterface ) . init ( config . getXmlRpc...
Fixed wrong init parameter in XML RPC release
<nb> public class MasterClientAuthenticationIntegrationTest { Assert . assertFalse ( masterClient . isConnected ( ) ) ; masterClient . connect ( ) ; Assert . assertTrue ( masterClient . isConnected ( ) ) ; - masterClient . createFile ( filename , Constants . DEFAULT_BLOCK_SIZE_BYTE , true , Constants . NO_TTL )...
Resolve the conflicts
<nb> public class DefaultFailover implements Failover { private Response failoverResponse ( HttpRequest request ) { final Request dumpedRequest = createDumpedRequest ( request ) ; List < Session > sessions = restoreSessions ( this . file ) ; - logger . info ( STRING0 , sessions . size ( ) ) ; final Optional <...
removed bug fix log
<nb> public class EnergenieBinding extends AbstractActiveBinding < EnergenieBindingProv try { loginResponseString = HttpUtil . executeUrl ( STRING0 , url , urlContent , STRING1 , timeout ) ; - String stateResponseSearch = STRING2 ; + String stateResponseSearch = STRING3 ; int findState = loginResponseString...
removed wide space from stateResponseSearch String
<nb> public class Mesh implements Savable , Cloneable { COMMENT COMMENT COMMENT - Hybrid ( false ) ; - + Hybrid ( false ) , + COMMENT + COMMENT + COMMENT + COMMENT + Patch ( true ) ; private boolean listMode = false ; private Mode ( boolean listMode ) { <nb> public class Mesh implements Sa...
Added Patch as MeshMode
<nb> public class ShardedJedisTest extends Assert { private static HostAndPort redis1 = HostAndPortUtil . getRedisServers ( ) . get ( NUMBER0 ) ; private static HostAndPort redis2 = HostAndPortUtil . getRedisServers ( ) . get ( NUMBER1 ) ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT ...
Change test name to something more descriptive
<nb> public class RendererBuilderTest { } @ test ( expected = NullPrototypeClassException . class ) - public void shouldThrowNullPrototypeClassExceptionIfRendererBuilderImplementationReturnsNullPrototypeClassAndGetItemViewType ( ) { + public void + shouldThrowNullPrototypeClassExceptionIfRendererBuilderImpl...
Fix some checkstyle issues
<nb> public class Window extends FrameLayout { . commit ( ) ; break ; } + mContext . onResize ( id , this , this , event ) ; } return true ;
Call onResize from pinch to zoom to alert implementation that a resize has occurred
<nb> public class DefaultTypeTransformation { if ( object == null ) { return false ; } - - SINGLE + + SINGLE + if ( object . getClass ( ) == Boolean . class ) { + return ( ( Boolean ) object ) . booleanValue ( ) ; + } + + SINGLE return ( Boolean ) InvokerHelper . invokeMethod ( object , STRING...
add a short path for boolean casts and boolean unboxing if done for a Boolean
<nb> public class TemplateState implements Disposable { PsiFile file = getPsiFile ( ) ; preprocessTemplate ( file , myEditor . getCaretModel ( ) . getOffset ( ) ) ; myPrevTemplate = myTemplate ; - assert ! myTemplate . isInline ( ) ; + LOG . assertTrue ( ! myTemplate . isInline ( ) , + STRING0 + presentTemp...
Preprocessing Live Template
<nb> import NAMESPACE ; COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT public class DataFrameDispatcher <nb> public class ReceiveChannelEndpoint implements AutoCloseable smBuffer . limit ( frameLength ) ; final int bytesSent = udpTransport . sendTo ( smBuffer , controlAddress ) ; - if ( b...
Java Remove unneeded todos
<nb> public class ChatViewerAdapter extends FragmentStatePagerAdapter { private int getRealPagePosition ( int virtualPosition ) { - return abs ( virtualPosition - OFFSET ) % getRealCount ( ) ; + int realCount = getRealCount ( ) ; + + int pageNumber = abs ( virtualPosition - OFFSET ) % realCount ; + if (...
chats order fixed
<nb> public class TestNet3Params extends NetworkParameters { alertSigningKey = Utils . HEX . decode ( STRING0 ) ; dnsSeeds = new String [ ] { - STRING1 , SINGLE STRING2 , SINGLE STRING3 SINGLE } ;
Take out Alex Kotenko s testnet seed as it appears to be down
<nb> public final class Variables { public static void processScopeVariables ( @ notnull Scope scope , @ notnull XCompositeNode node , @ notnull final VariableContext context , - final @ nullable ActionCallback compoundActionCallback ) { + @ nullable final ActionCallback compoundActionCallback ) { final boo...
remove useless HideFunctionValuesAction now we correctly grouping functions
<nb> public class UsbDeviceManager { } break ; case MSG_USER_SWITCHED : { - mCurrentUser = msg . arg1 ; - UserManager userManager = ( UserManager ) mContext . getSystemService ( Context . USER_SERVICE ) ; if ( userManager . hasUserRestriction ( UserManager . DISALLOW_USB_FILE_TRANSFER ) ) { Slog . v (...
Restore user switching logic
<nb> public class ImageManager { } } - private void handleException ( Exception e ) { - cb . onLoadFailed ( e ) ; + private void handleException ( final Exception e ) { + mainHandler . post ( new Runnable ( ) { + @ override + public void run ( ) { + cb . onLoadFailed ( e ) ; + } + } ) ; } ...
Call ImageLoader exception handler on main thread
<nb> public class TermsLookupQueryBuilder extends QueryBuilder { private String lookupId ; private String lookupRouting ; private String lookupPath ; - private Boolean lookupCache ; private String queryName ; <nb> public class TermsLookupQueryBuilder extends QueryBuilder { return this ; } - publ...
remove support for lookup cache in TermsLooukpBuilder
<nb> public class ClusterHeartbeatTest join ( NUMBER0 , NUMBER1 , NUMBER2 ) . message ( NUMBER3 , STRING0 ) . getRoles ( NUMBER4 , roles ) . - down ( NUMBER5 , NUMBER2 ) . + down ( NUMBER6 , NUMBER2 ) . message ( NUMBER7 , STRING1 ) . verifyCoordinatorRoleSwitched ( roles ) . leave ( NUMBER4 , NUMBER2 )...
Increases interval in cluster test
<nb> public class PrivacyService { outputStreamWriter . write ( Log . getStackTraceString ( ex ) ) ; outputStreamWriter . write ( STRING0 ) ; outputStreamWriter . close ( ) ; - } catch ( IOException exex ) { + } catch ( Throwable exex ) { Util . bug ( null , exex ) ; } }
Catch all exceptions to be sure
<nb> public class ExpandableNotificationRow extends ActivatableNotificationView { } @ override + public boolean onTouchEvent ( MotionEvent event ) { + if ( event . getActionMasked ( ) != MotionEvent . ACTION_DOWN + || ! isChildInGroup ( ) || isGroupExpanded ( ) ) { + return super . onTouchEvent ( event ) ...
Handling content intent of groups correctly
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Corrected merge conflict in ReaderCommentListActivity
<nb> public class ManagementErrorEndpoint { this . errorAttributes = errorAttributes ; } - @ requestmapping ( STRING0 ) + @ requestmapping ( STRING1 ) @ responsebody public Map < String , Object > invoke ( ) { return this . errorAttributes . getErrorAttributes (
Fix server error path reference in error controller
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class MainServlet extends ActionServlet { req . setAttribute ( WebKeys . CURRENT_URL , completeURL ) ; - SINGLE - - Objec...
Remove Chat references
<nb> package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; - public class MultiGetRequest extends ActionRequest < MultiGetRequest > { + public...
Allow iteration over MultiGetRequest Item instances
<nb> public class CommonTermsQueryBuilder extends AbstractQueryBuilder < CommonTermsQue } } } else { + if ( fieldName != null ) { + throw new ParsingException ( parser . getTokenLocation ( ) , STRING0 + + fieldName + STRING1 + parser . currentName ( ) + STRING2 ) ; + } fieldName = parser . currentName (...
Throw parsing error if common terms query contains multiple fields in its short version
<nb> public class SkeletonControl extends AbstractControl implements Cloneable { } catch ( java . lang . IllegalArgumentException e ) { Logger . getLogger ( SkeletonControl . class . getName ( ) ) . log ( Level . INFO , STRING0 , new String [ ] { m . getName ( ) } ) ; setUseHwSkinning ( false ) ; + return ; }...
Fixed HWSkinning initialization that was not properly falling back to software when HW skinning was not available
<nb> public final class TachyonConf { } COMMENT - COMMENT + COMMENT COMMENT COMMENT private void checkUserFileBufferBytes ( ) { - if ( ! this . containsKey ( Constants . USER_FILE_BUFFER_BYTES ) ) { SINGLE + if ( ! containsKey ( Constants . USER_FILE_BUFFER_BYTES ) ) { SINGLE return ; } - long...
fix some format issues
<nb> public final class IntrospectionSupport { EXCLUDED_METHODS . addAll ( Arrays . asList ( Proxy . class . getMethods ( ) ) ) ; } - private static final Set < Class > PRIMITIVE_CLASSES = new HashSet < Class > ( ) ; + private static final Set < Class < ? > > PRIMITIVE_CLASSES = new HashSet < Class < ? > > ( ...
Fix a problem with the use of generics that is raising a warning
<nb> public class Application implements SystemListener { } task . invoke ( ) ; } while ( ( ( task = taskQueue . poll ( ) ) != null ) ) ; + + COMMENT + AppTask < ? > task ; + while ( ( task = taskQueue . poll ( ) ) != null ) { + if ( ! task . isCancelled ( ) ) { + task . invoke ( ) ; + } + } + S...
Added a comment with what I think the taskQueue
<nb> public class TransitIndex { @ get @ path ( STRING0 ) @ produces ( { MediaType . APPLICATION_JSON , MediaType . APPLICATION_XML , MediaType . TEXT_XML } ) - public Object getAgencyIds ( @ queryparam ( STRING1 ) String routerId ) + public AgencyList getAgencyIds ( @ queryparam ( STRING1 ) String routerId )...
simplify signature where possible
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Remove unused import
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import static NAMESPACE ; <nb> public class MessageResource extends RestResource { final ResolvableInetSocketAddress remoteAddress = ResolvableInetSocketAddress . wrap ( new InetSocketAddress ( requ...
Add missing charset in MessageResource parse
<nb> public class LwjglRenderer implements Renderer { if ( state . isDepthTest ( ) && ! context . depthTestEnabled ) { glEnable ( GL_DEPTH_TEST ) ; - glDepthFunc ( GL_LESS ) ; + glDepthFunc ( GL_LEQUAL ) ; context . depthTestEnabled = true ; } else if ( ! state . isDepthTest ( ) && context . depthTestEnab...
Changed depth function back to GL_LEQUAL
<nb> public class SpdyServer { public static void main ( String [ ] args ) throws Exception { - String jetty_home = System . getProperty ( STRING0 , STRING1 ) ; + String jetty_home = System . getProperty ( STRING0 , STRING2 ) ; System . setProperty ( STRING0 , jetty_home ) ; SINGLE <nb> public class S...
Added some debugging
<nb> public final class ActivityStackSupervisor implements DisplayListener { SINGLE SINGLE SINGLE - mWindowManager . getStackDockedModeBounds ( - HOME_STACK_ID , tempRect , true COMMENT ) ; + if ( dockedBounds != null ) { + mWindowManager . getStackDockedModeBounds ( + HOME_STACK_ID , tempRect , true CO...
Set correct bounds when docked stack is removed
<nb> class GlobalTypeInfo implements CompilerPass { } else if ( ctorType . isStruct ( ) && ! parentClass . isStruct ( ) ) { warnings . add ( JSError . make ( declNode , TypeCheck . CONFLICTING_SHAPE_TYPE , - className , STRING0 , STRING0 ) ) ; + STRING0 , className ) ) ; } else if ( ctorType . isDict ( ) &&...
Fix formatting arguments passed to the conflicting shape type error so that the error message makes sense
<nb> public class EditNoteActivity extends LinearLayout implements TimerActionListene activity . runOnUiThread ( new Runnable ( ) { @ override public void run ( ) { + if ( task == null ) + return ; task = PluginServices . getTaskService ( ) . fetchById ( task . getId ( ) , Task . NOTES , Task . ID , Task . ...
Fixed a potential null pointer when refreshing comments list
<nb> public class DefaultCamelCatalog implements CamelCatalog { this . runtimeProvider = runtimeProvider ; SINGLE this . runtimeProvider . setCamelCatalog ( this ) ; + SINGLE + cache . remove ( STRING0 ) ; + cache . remove ( STRING1 ) ; + cache . remove ( STRING2 ) ; + cache . remove ( STRING3 ) ; + c...
Camel catalog support different runtimes to provide their supported list of components etc
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ClientHeartbeatMonitor implements Runnable { } private void monitor ( String memberUuid , ClientEndpointImpl clientEndpoint ) { - if ( cl...
Include owner connection to heart beat check
<nb> public class PyTypeParser { final RatedResolveResult result = results . get ( NUMBER0 ) ; final PsiElement resolved = result . getElement ( ) ; if ( resolved instanceof PyTypedElement ) { - final PyType t = ( ( PyTypedElement ) resolved ) . getType ( context . getTypeEvalContext ( ) ) ; + PyType t = ( ( ...
Fixed evaluation of instance types from strings
<nb> public final class MediaStore { public static final String MEDIA_TYPE = STRING0 ; COMMENT - COMMENT + COMMENT + COMMENT COMMENT public static final int MEDIA_TYPE_NONE = NUMBER0 ; + + COMMENT + COMMENT + COMMENT public static final int MEDIA_TYPE_IMAGE = NUMBER1 ; + + COMMENT + COMM...
Fix javadoc for MediaStore Files FileColumns constants
<nb> public class WebChromeClient { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT public void onGeolocationPermissionsShowPrompt ( String origin , - GeolocationPermissions . Callback callback ) { } + GeolocationPermissions . Callbac...
Invoke geolocation permissions callback with denied state by default
<nb> public class DevicePolicyManager { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DevicePolicyManager { COMMENT COMMENT COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DevicePolicyManager { COMMENT COMM...
Adding SecurityException information to all device logging DPM public methods
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT - COMMENT COMMENT COMMENT public class FeatureUtil {
Remove inaccurate claim of GWT compatibility
<nb> public abstract class MixinEntityBoat extends Entity implements Boat { @ override public boolean isInWater ( ) { - SINGLE - return this . inWater ; + return ! this . onGround ; } @ override
Properly implement isInWater for boats
<nb> import NAMESPACE ; public class SignalStrength implements Parcelable { private static final String LOG_TAG = STRING0 ; - private static final boolean DBG = true ; + private static final boolean DBG = false ; COMMENT public static final int SIGNAL_STRENGTH_NONE_OR_UNKNOWN = NUMBER0 ;
Reduce log spam
<nb> public class CassandraStorage extends LoadFunc implements StoreFuncInterface , Lo { if ( System . getenv ( PIG_RPC_PORT ) != null ) ConfigHelper . setRpcPort ( conf , System . getenv ( PIG_RPC_PORT ) ) ; - else + else if ( ConfigHelper . getRpcPort ( conf ) == NUMBER0 ) throw new IOException ( STRING0 ...
Only require pig env vars to be set on the machine launching pig
<nb> import NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + COMMENT + COMMENT + COMMENT + COMMENT COMMENT COMMENT COMMENT
Add missing text to CachingResourceTransformer Javadoc
<nb> public class NodeTool ProxyHistograms . class , Rebuild . class , Refresh . class , - RemoveToken . class , RemoveNode . class , Repair . class , SetCacheCapacity . class , <nb> public class NodeTool } } - @ deprecated - @ command ( name = STRING0 , description = STRING1 , hidden = true )...
Remove deprecated removetoken command from nodetool
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix compilation errors
<nb> import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + COMMENT COMMENT COMMENT <nb> public abstract class Job { } private Params mParams ; - private Context mContext ; + private WeakReference < Context > mContextReference ; + private Context mApplicationContext ; private boo...
Return the service in getContext of the job like the documentation mentions
<nb> import NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; - import static NAMESPACE ; COMMENT COMMENT <nb> public class LogRebuilder extends LogBufferPartition } COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - public void tail ( final int offset ) - { - metaDataBu...
Java Remove unneeded use of setting the tail in the LogRebuilder
<nb> public final class DocumentsContract { public static final String COLUMN_AVAILABLE_BYTES = STRING0 ; COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + public static final String COLUMN_CAPACITY_BYTES = STRING1 ; + + COMMENT COMMENT COMMENT COMMENT
Add COLUMN_CAPACITY_BYTES column to DocumentsContract
<nb> public class PyDuplocatorTest extends PyTestCase { public void testIgnoreStringLiteral ( ) throws Exception { myDuplocatorSettings . DISTINGUISH_LITERALS = false ; try { - doTest ( NUMBER0 ) ; + doTest ( NUMBER1 ) ; } finally { myDuplocatorSettings . DISTINGUISH_LITERALS = true ;
fixed test data for duplocator test
<nb> public class AddExchanges . addAll ( preferencesFromParent . getLocalProperties ( ) ) . build ( ) ; - Set < Symbol > partitioning = ImmutableSet . of ( ) ; + Set < Symbol > partitioning = ImmutableSet . copyOf ( partitioningColumns ) ; SINGLE SINGLE
Identify common partitioning columns for preferred properties
<nb> public class InvalidAttributesException extends RuntimeException { COMMENT COMMENT COMMENT - public static final String DBNAME_IS_EMPTY_OR_NOT_DEFINED = STRING0 ; + public static final String DBNAME_IS_EMPTY_OR_NOT_DEFINED = STRING1 ; COMMENT COMMENT
Modify the description when exception happens
<nb> public class IndexerCoordinatorResource if ( taskMasterLifecycle . getResourceManagementScheduler ( ) == null ) { return Response . noContent ( ) . build ( ) ; } - ScalingStats foo = new ScalingStats ( NUMBER0 ) ; - foo . addProvisionEvent ( new AutoScalingData < String > ( Lists . newArrayList ( STRING0...
remove test code
<nb> public class ETC1TextureData implements TextureData { this . useMipMaps = useMipMaps ; } + public ETC1TextureData ( ETC1Data encodedImage , boolean useMipMaps ) { + this . data = encodedImage ; + this . useMipMaps = useMipMaps ; + } + @ override public TextureDataType getType ( ) { return Tex...
added new constructor to ETC1TextureData that takes ETC1Data directly
<nb> public class DanmakuRenderer extends Renderer { } mRenderingState . nothingRendered = ( mRenderingState . totalDanmakuCount == NUMBER0 ) ; + mRenderingState . endTime = drawItem != null ? drawItem . time : RenderingState . UNKNOWN_TIME ; if ( mRenderingState . nothingRendered ) { mRenderingState . begi...
Fix incorrect endTime for waitRendering in DrawHandler
<nb> public final class CharSeq implements CharSequence , IndexedSeq < Character > , Seria COMMENT public static CharSeq of ( char . . . characters ) { Objects . requireNonNull ( characters , STRING0 ) ; - final char [ ] chrs = new char [ characters . length ] ; - System . arraycopy ( characters , NUMBER0 , c...
Return empty before instantiation of empty array
<nb> public class ClientSideSessionStore implements SessionStore { if ( cookieConfig . getDomain ( ) != null ) { cookie . setDomain ( cookieConfig . getDomain ( ) ) ; } + + long expirySeconds = cookieConfig . getExpires ( ) == null ? NUMBER0 : cookieConfig . getExpires ( ) . getSeconds ( ) ; + if ( expirySe...
add max age setting for session related cookies
<nb> public final class ContextName { public String getDisplayName ( ) { StringBuilder tmp = new StringBuilder ( ) ; - if ( path == STRING0 ) { + if ( STRING0 . equals ( path ) ) { tmp . append ( STRING1 ) ; } else { tmp . append ( path ) ; } - if ( version != STRING0 ) { + if ( ! STRING0 . equa...
Fix my stupid mistake
<nb> public class Reader { listeners . clear ( ) ; for ( Class < ? > cls : classes ) { - if ( ReaderListener . class . isAssignableFrom ( ReaderListener . class ) && listeners . containsKey ( cls ) ) { + if ( ReaderListener . class . isAssignableFrom ( cls ) && listeners . containsKey ( cls ) ) { try { li...
fixed isAssignableFrom check
<nb> public final class DefaultExchange implements Exchange { public DefaultExchange ( Endpoint fromEndpoint ) { this ( fromEndpoint , ExchangePattern . InOnly ) ; } - + public DefaultExchange ( Endpoint fromEndpoint , ExchangePattern pattern ) { this ( fromEndpoint . getCamelContext ( ) , pattern ) ; t...
Headers on message and properties on Exchange is now using string interning for Camel keys to reduce memory consumption
<nb> public class AlternateRecentsComponent implements ActivityOptions . OnAnimationSta COMMENT void updateAnimationRects ( ) { - if ( mServiceIsBound && mBootCompleted ) { + if ( mServiceIsBound ) { Resources res = mContext . getResources ( ) ; int statusBarHeight = res . getDimensionPixelSize ( com . ...
Fixing issue where we do not get the task rects and therefore have no transitions