diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class MediaCodecInfo {
int maxInstances = Utils . parseIntSafely (
map . get ( STRING0 ) , mMaxSupportedInstances ) ;
+ SINGLE
+ maxInstances = Utils . parseIntSafely (
+ map . get ( STRING1 ) , maxInstances ) ;
mMaxSupportedInstances =
Range . create ( NUMBER0 , MAX_SUPPORTED_INSTANCE... | parse max concurrent instances |
<nb> public class ReadRecordsTest
int propertyCount = NUMBER0 ;
for ( LegacyPropertyStoreReader . LegacyPropertyRecord record : records )
{
+ int keyIndexId = record . getKeyIndexId ( ) ;
+ assertEquals ( NUMBER0 , keyIndexId ) ;
+ Object value = record . getType ( ) . getValue ( record , null ) ;
+ asser... | Make some assertions about the properties stored in the legacy record |
<nb> public class RetransmitHandler
if ( isInvalid )
{
- invalidPackets . orderedIncrement ( ) ;
+ invalidPackets . increment ( ) ;
}
return isInvalid ; | Java Increment of invalid packets counter needs to be concurrent because it is used by both sender and receiver threads |
<nb> public class LegendRenderer extends Renderer {
if ( direction == Legend . LegendDirection . LEFT_TO_RIGHT )
originPosX -= mLegend . mNeededWidth ;
} else SINGLE
- originPosX = mViewPortHandler . contentLeft ( ) + contentWidth / FLOAT0 ;
+ originPosX = mViewPortHandler . contentLeft ( ) + contentWidth / F... | Include offset in position calculation |
<nb> public class PsiReferenceExpressionImpl extends ExpressionPsiElement implements
return null ;
case ChildRole . REFERENCE_NAME :
- return getChildRole ( getLastChildNode ( ) ) == role ? getLastChildNode ( ) : null ;
+ if ( getChildRole ( getLastChildNode ( ) ) == role ) {
+ return getLastChildNode ( ) ;... | fix completion inside class literal |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class IdeEventQueue extends EventQueue {
myDispatchingFocusEvent = e instanceof FocusEvent ;
maybeReady ( ) ;
+ fixStickyAlt ( e ) ;
super . dispatchEvent ( e ) ;
}
<nb> public class IdeEventQueue extends EventQueue {
}... | consume Alt events on WinXP in default handler to avoid WindowsRootPaneUI AltProcessor |
<nb> public class ConvolutionLayer extends BaseLayer < org . deeplearning4j . nn . conf . layer
applyDropOutIfNecessary ( training ) ;
INDArray z = preOutput ( training ) ;
+ String afn = conf . getLayer ( ) . getActivationFunction ( ) ;
+ if ( STRING0 . equals ( afn ) ) {
+ return z ;
+ }
if ( helper... | Skip unnecessary op execution for identity activation |
<nb> public class PropertyAccessProxyMetaClass extends ProxyMetaClass {
super . setProperty ( object , property , newValue ) ;
}
}
- super . setProperty ( object , property , newValue ) ;
- }
+ else {
+ super . setProperty ( object , property , newValue ) ;
+ }
+ }
} | fixed bug in logic causing MissingPropertyException |
<nb> public class FunctionInfo implements Comparable < FunctionInfo > , Streamable {
}
+ public FunctionInfo ( FunctionIdent ident , DataType returnType ) {
+ this ( ident , returnType , false ) ;
+ }
+
public FunctionInfo ( FunctionIdent ident , DataType returnType , boolean isAggregate ) {
this . id... | add another ctor for FunctionInfo |
<nb> public enum BlockType {
COMMENT
private static final Set < Integer > usesData = new HashSet < Integer > ( ) ;
static {
+ usesData . add ( BlockID . STONE ) ;
usesData . add ( BlockID . DIRT ) ;
usesData . add ( BlockID . WOOD ) ;
usesData . add ( BlockID . SAPLING ) ; | Add stone to usesData HashSet |
<nb> public class SpringJmsAOPClientServerTest extends SpringJmsClientServerTest {
@ beforeclass
public static void setUpServer ( ) {
- serverContext = new ClassPathXmlApplicationContext ( STRING0 ) ;
+ if ( ! STRING1 . equalsIgnoreCase ( System . getProperty ( STRING2 ) ) ) {
+ serverContext = new ClassPat... | enhance the camel example spring jms to run the test without start the server |
<nb> public class DBBatchSaveQueue extends Thread {
models . clear ( ) ;
}
if ( tmpModels . size ( ) > NUMBER0 ) {
- SINGLE
-
databaseDefinition . beginTransactionAsync (
new ProcessModelTransaction . Builder ( modelSaver )
. addAll ( tmpModels ) | remove comment here |
<nb> public final class DomainServerMain {
COMMENT
COMMENT
public static void main ( String [ ] args ) {
- SINGLE
- System . setProperty ( STRING0 , STRING1 ) ;
+
+ SecurityActions . setSystemProperty ( STRING0 , STRING1 ) ;
new BridgeRepositorySelector ( ) . start ( ) ;
final InputStream initialInp... | Use a privileged action to set system property |
<nb> public class DefaultTrackOutput implements TrackOutput {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
private boolean advanceToEligibleSample ( ) { | Fix broken Javadoc |
<nb> public class OsmandSettings {
public final OsmandPreference < String > MAP_PREFERRED_LOCALE = new StringPreference ( STRING0 , STRING1 ) . makeGlobal ( ) ;
public boolean usingEnglishNames ( ) {
- return MAP_PREFERRED_LOCALE . get ( ) . length ( ) > NUMBER0 ;
+ return MAP_PREFERRED_LOCALE . get ( ) . equ... | Fix preferred locale |
<nb> public class ClientActionTests {
final ServletExternalContext servletExternalContext = mock ( ServletExternalContext . class ) ;
when ( servletExternalContext . getNativeRequest ( ) ) . thenReturn ( mockRequest ) ;
+ when ( servletExternalContext . getNativeResponse ( ) ) . thenReturn ( new MockHttpServlet... | Fixed test cases |
<nb> public class SegmentColumnarIndexCreator implements SegmentCreator {
properties . setProperty ( SEGMENT_START_TIME , config . getStartTime ( ) ) ;
}
if ( config . containsKey ( SEGMENT_END_TIME ) ) {
- properties . setProperty ( SEGMENT_END_TIME , config . getStartTime ( ) ) ;
+ properties . setProperty ... | Fixed incorrect end time in metadata |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WebView extends AbsoluteLayout
return false ;
}
+ private int mOrientation = Configuration . ORIENTATION_UNDEFINED ;
... | cancel text selection on rotate |
<nb> public class ReviewPresenter implements IsWidget
@ override
public void onVcsRefresh ( VcsRefreshEvent event )
{
- updateDiff ( false ) ;
+ updateDiff ( true ) ;
}
} ) ; | Automatically switch view modes when staging unstaging a file |
<nb> public class DraggableListView extends ListView {
if ( dragThread != null && mClickListener != null ) {
dragThread . interrupt ( ) ;
dragThread = null ;
- mClickListener . onClick ( viewAtPosition ( ) ) ;
+ if ( action == MotionEvent . ACTION_UP )
+ mClickListener . onClick ( viewAtPosition ( ) ) ;
}... | Fixed a bug in DraggableListView that would fire click events for cancelled motion events |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Hystrix {
SINGLE
HystrixCircuitBreaker . Factory . reset ( ) ;
HystrixPlugins . reset ( ) ;
+ HystrixPropertiesFactory . reset ( ) ;
}
private static T... | Added HystrixPropertiesFactory reset method to allow command and thread pool |
<nb> public class UIManagerModule extends ReactContextBaseJavaModule implements
public void setChildren (
int viewTag ,
ReadableArray childrenTags ) {
- FLog . d (
- ReactConstants . TAG ,
- STRING0 + viewTag + STRING1 + childrenTags ) ;
+ if ( DEBUG ) {
+ FLog . d (
+ ReactConstants . TAG ,
+ STRIN... | Put setChildren debug log in DEBUG clause |
<nb> import NAMESPACE ;
@ retention ( RetentionPolicy . RUNTIME )
@ target ( ElementType . METHOD )
public @ interface ExceptionMetered {
-
+ COMMENT
+ COMMENT
+ COMMENT
String DEFAULT_NAME_SUFFIX = STRING0 ;
COMMENT
<nb> import NAMESPACE ;
@ retention ( RetentionPolicy . RUNTIME )
@ target ( ... | Add some docs to metrics annotation |
<nb> public class XaLogicalLog
if ( autoRotate &&
writeBuffer . getFileChannelPosition ( ) >= rotateAtSize )
{
- rotate ( ) ;
+ long currentPos = writeBuffer . getFileChannelPosition ( ) ;
+ long firstStartEntry = getFirstStartEntry ( currentPos ) ;
+ SINGLE
+ if ( ( currentPos - firstStartEntry ) < rot... | Fixed problem when active transactions are larger then logical log target rotate size |
<nb> public class GCEvent extends AbstractGCEvent < GCEvent > {
public void toStringBuffer ( StringBuffer sb ) {
sb . append ( getTimestamp ( ) ) ;
sb . append ( STRING0 ) ;
- sb . append ( getExtendedType ( ) . getName ( ) ) ;
+ sb . append ( getExtendedType ( ) != null ? getExtendedType ( ) . getName ( ) : ... | avoid NullPointerException in toStringBuffer |
<nb> public class FilterHolder extends Holder
COMMENT
public void doStop ( )
+ throws Exception
{
if ( _filter != null )
{
<nb> public class Holder extends AbstractLifeCycle
COMMENT
public void doStop ( )
+ throws Exception
{
if ( ! _extInstance )
_class = null ;
<nb> public class Servle... | Restore inherited throws Exception to doStop overrides to ease subclassing |
<nb> public final class FactoryExpressionTransformer implements ResultTransformer {
@ override
public Object transformTuple ( Object [ ] tuple , String [ ] aliases ) {
+ if ( projection . getArgs ( ) . size ( ) < tuple . length ) {
+ Object [ ] shortened = new Object [ projection . getArgs ( ) . size ( ) ] ; ... | Revert FactoryExpressionTransformer change |
<nb> public class SearchReplaceComponent extends EditorHeaderComponent implements Dat
SINGLE
myDataProviderDelegate = dataProvider ;
+
+ setFocusCycleRoot ( true ) ;
+
+ setFocusTraversalPolicy ( new LayoutFocusTraversalPolicy ( ) ) ;
}
public void resetUndoRedoActions ( ) { | Find and replace panel focus traversal |
<nb> public class PsiGraphInferenceHelper implements PsiInferenceHelper {
leftTypes = new PsiType [ ] { arg } ;
rightTypes = new PsiType [ ] { param } ;
}
- final InferenceSession inferenceSession = new InferenceSession ( new PsiTypeParameter [ ] { typeParam } , leftTypes , rightTypes , PsiSubstitutor . EMPTY ,... | retrieve all type parameters from owner to get correct inference context to calculate type parameter substitution |
<nb> public class Observable < T > {
COMMENT
COMMENT
public final Subscription subscribe ( final Observer < ? super T > observer ) {
+ if ( observer instanceof Subscriber ) {
+ return subscribe ( ( Subscriber < ? super T > ) observer ) ;
+ }
return subscribe ( new Subscriber < T > ( ) {
@ override
<... | Cast back Observer to Subscriber if passed to subscribe Observer |
<nb> public class SummaryDataWriter extends AbstractDataWriter {
exportValue ( out , STRING0 , isSignificant ( model . getFullGCPause ( ) . average ( ) , model . getFullGCPause ( ) . standardDeviation ( ) ) ) ;
exportValue ( out , STRING1 , pauseFormatter . format ( model . getFullGCPause ( ) . average ( ) ) , STRI... | add min and max full GC pause to summary output |
<nb> public abstract class WorldProperty implements IWorldProperty {
@ override
public void clear ( ) {
for ( DimensionProperty p : properties ) {
- p . clear ( ) ;
+ if ( p != null ) {
+ p . clear ( ) ;
+ }
}
properties . clear ( ) ; | fixed NPE in WorldProperty |
<nb> public final class InferConstsTest extends TestCase {
testConsts ( STRING0 , STRING1 ) ;
}
+ public void testFunctionParam ( ) {
+ testConsts ( STRING2 , STRING1 ) ;
+ testConsts ( STRING3 , STRING1 ) ;
+ testConsts ( STRING4 , STRING5 , STRING6 ) ;
+ testConsts ( STRING7 , STRING5 , STRING6 ) ;
... | Added test on inferring constants on function parameters including destructured param and default value |
<nb> public abstract class ParserUtils {
public static boolean lookAhead ( PsiBuilder builder , IElementType . . . elems ) {
PsiBuilder . Marker rb = builder . mark ( ) ;
int i = NUMBER0 ;
- for ( ; ! builder . eof ( ) && i < elems . length - NUMBER1 && elems [ i ] . equals ( builder . getTokenType ( ) ) ; ) { ... | changed parser txt |
<nb> public class moderateCommentsTab extends ListActivity {
XMLRPCMethod method = new XMLRPCMethod ( STRING0 , new XMLRPCMethodCallback ( ) {
public void callFinished ( Object [ ] result ) {
- if ( ! loadMore && ! doInBackground ) {
- closeProgressBar ( ) ;
- }
- else if ( loadMore ) {
- switcher . sho... | Fixed the comments progress bar from hanging |
<nb> public class MetaContactImpl
if ( ! isLazy )
return getAvatar ( ) ;
- if ( cachedAvatar != null )
+ if ( cachedAvatar != null
+ && cachedAvatar . length > NUMBER0 )
{
- if ( cachedAvatar . length == NUMBER0 )
- {
- SINGLE
- SINGLE
- return null ;
- }
+ SINGLE
return cachedAvatar ;
}... | Fixing avatar retrieves |
<nb> class JarFileResource extends JarResource
_list = null ;
_entry = null ;
_file = null ;
-
- if ( _jarFile != null )
+ SINGLE
+ SINGLE
+ if ( ! getUseCaches ( ) )
{
- try
+ if ( _jarFile != null )
{
- _jarFile . close ( ) ;
- }
- catch ( IOException ioe )
- {
- LOG . ignore ( ioe )... | zip file closed exception |
<nb> public class NodeCmd
StringBuilder header = new StringBuilder ( ) ;
header . append ( STRING0 ) ;
SINGLE
- addCmdHelp ( header , STRING1 , STRING2 ) ;
addCmdHelp ( header , STRING3 , STRING4 ) ;
addCmdHelp ( header , STRING5 , STRING6 ) ;
addCmdHelp ( header , STRING7 , STRING8 ) ;
<nb> public clas... | update nodetool ring description |
<nb> public class TransitIndexBuilder implements GraphBuilderWithGtfsDao {
}
if ( e instanceof PatternDwell || e instanceof Dwell ) {
segment . dwell = e ;
+ for ( Edge e2 : e . getToVertex ( ) . getIncoming ( ) ) {
+ if ( e2 instanceof Board || e2 instanceof PatternBoard ) {
+ segment . board = e2 ;
+ } ... | handle non removed dwells in transit index builder |
<nb> public class PdePreprocessor {
}
}
+ static String advClassName = STRING0 ;
+
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
String getFirstClassName ( AST ast ) {
- SINGLE
- return STRING1 ;
+ String t = advClassName ;
+ advClassName = STRING0 ;
+
+ return t ... | Added quick hack to get ADVANCED mode classname |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public abstract class WebBean {
<nb> public abstract class WebBean {
this . session = session ;
this . application = app ;
}
+
+ public void init ( PageContext pageContext ) {
+ this . reque... | Added pageContext for simplicity |
<nb> public abstract class ASingleTexture extends ATexture
public void setResourceId ( int resourceId ) {
mResourceId = resourceId ;
Context context = TextureManager . getInstance ( ) . getContext ( ) ;
- setBitmap ( BitmapFactory . decodeResource ( context . getResources ( ) , resourceId ) ) ;
+ BitmapFactor... | prevent bitmap auto scaling |
<nb> public class StringBuilderMemory extends StringMemory {
this . builder . append ( value ) ;
}
+ public void append ( char value ) {
+ append ( StringMemory . valueOf ( value ) ) ;
+ }
+
public void append ( long value ) {
resolveBuilder ( ) ;
builder . append ( value ) ; | Fix append chars to StringBuilderMemory objects |
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer {
COMMENT
COMMENT
public synchronized Updater getUpdater ( ) {
- return solver . getOptimizer ( ) . getUpdater ( ) ;
+ if ( solver == null ) return null ;
+ ConvexOptimizer optimizer = solver . getOptimizer ( ) ;
+ if ( optim... | Add null check for MultiLayerNetwork getUpdater |
<nb> final class DockObserver extends SystemService {
SINGLE
SINGLE
getContext ( ) . sendStickyBroadcastAsUser ( intent , UserHandle . ALL ) ;
-
- SINGLE
- mWakeLock . release ( ) ;
}
}
<nb> final class DockObserver extends SystemService {
switch ( msg . what ) {
case MSG_DOCK_STATE_CHANGED :
... | Move wakelock release to handleMessage |
<nb> public class AMQPProducer implements RadioTransport {
}
public void send ( Message msg ) throws IOException {
final int currentIndex = pointer . getAndIncrement ( ) ;
- senders [ currentIndex % count ] . send ( msg ) ;
+ senders [ Math . abs ( currentIndex % count ) ] . send ( msg ) ;
}
} | Using absolute index to prevent out of bounds array access |
<nb> public class DomUtil {
}
public static class NullResolver implements EntityResolver {
+ @ override
public InputSource resolveEntity ( String publicId ,
String systemId )
throws SAXException , IOException | Add Override annotation |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SqlScriptSmallTest {
assertEquals ( NUMBER0 , sqlStatement . getLineNumber ( ) ) ;
assertEquals ( source , sqlStatement . getSql ( ) ) ;
}
+
+ @ ignore ( ... | Added broken test to demonstrate failing trailing comment parsing |
<nb> public class IndexMaker
) ;
}
}
- )
- ,
- Ordering . < String > natural ( ) . nullsFirst ( )
+ ) ,
+ Ordering . < String > natural ( )
) ;
int cardinality = NUMBER0 ;
<nb> public class IndexMaker
if ( nullSet != null ) {
log . info ( STRING0 , dimension ) ;
- if ( Iterables . getFir... | fix small bug |
<nb> import NAMESPACE ;
COMMENT
@ publicapi
public abstract class OutStreamBase extends OutputStream implements Cancelable {
- SINGLE
+ SINGLE
+ SINGLE
COMMENT
protected int mBytesWritten = NUMBER0 ;
<nb> public class FileOutStream extends OutStreamBase {
getNextBlock ( ) ;
}
mCurrentBlockOutS... | SMALLFIX Fix comments |
<nb> public class CustomTemplateCallback {
public PsiFile getFile ( ) {
return myFile ;
}
+
+ public Project getProject ( ) {
+ return myProject ;
+ }
} | comment broken test getting project |
<nb> public class HiveConf extends Configuration {
LLAP_DAEMON_COMMUNICATOR_NUM_THREADS ( STRING0 , NUMBER0 ,
STRING1 ,
STRING2 ) ,
- LLAP_DAEMON_ALLOW_PERMANENT_FNS ( STRING3 , true ,
+ LLAP_DAEMON_ALLOW_PERMANENT_FNS ( STRING3 , false ,
STRING4 ) ,
LLAP_TASK_SCHEDULER_NODE_REENABLE_MIN_TIMEOUT_MS (
ST... | disable permanent fns by default for now Sergey Shelukhin reviewed by Gopal V |
<nb> public class ColQueryImpl extends AbstractColQuery < ColQueryImpl > implements ColQ
COMMENT
COMMENT
public ColQueryImpl ( ColQueryTemplates templates ) {
- this ( new DefaultQueryEngine ( new DefaultEvaluatorFactory ( ColQueryTemplates . DEFAULT ) ) ) ;
+ this ( new DefaultQueryEngine ( new DefaultEvalua... | fixed ColQueryImpl constructor |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class InteropTester extends AsyncTask < Void , Void , String > {
OkHttpChannelBuilder channelBuilder = OkHttpChannelBuilder . forAddress ( host , ... | Android interop test Support non tls test and replace a deprecated API call |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> final class ParameterInliner implements Predicate < Object [ ] > {
final Consumer < Object > collect = new Consumer < Object > ( ) {
@ override
public void accept ( Object o... | Remove unnecessary method call use List add |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StatsVisitorsAndViewsFragment extends StatsAbstractFragment
public void onSaveInstanceState ( Bundle outState ) {
SINGLE
+ SINGLE
+ if (... | Rewrite VolleyErrors in VisitorsAndViews module |
<nb> public class ZincScalaCompiler implements Compiler < ScalaJavaJointCompileSpec > , S
} ) ;
zincCache . close ( ) ;
- SINGLE
List < String > scalacOptions = new ZincScalaCompilerArgumentsGenerator ( ) . generate ( spec ) ;
List < String > javacOptions = new JavaCompilerArgumentsBuilder ( spec ) . includ... | Fixing checkstyle errors |
<nb> public abstract class ParameterTableModelBase < P extends ParameterInfo > extends L
private final FileType myFileType ;
public TypeColumn ( Project project , FileType fileType ) {
- super ( RefactoringBundle . message ( STRING0 ) ) ;
+ this ( project , fileType , RefactoringBundle . message ( STRING0 ) )... | don t show column titles with colon |
<nb> public class AuthenticatorActivity extends AccountAuthenticatorActivity
getSupportActionBar ( ) . setDisplayShowHomeEnabled ( false ) ;
getSupportActionBar ( ) . setDisplayShowTitleEnabled ( false ) ;
}
-
+
mIsFirstAuthAttempt = true ;
SINGLE
<nb> public class PreviewImageActivity extends FileAct... | Fix App crash after rotate the device previewing an image |
<nb> public class CreateResourceFileAction extends CreateElementActionBase {
@ override
protected void doOKAction ( ) {
- super . doOKAction ( ) ;
myAction . myRootElement = getRootElement ( ) ;
+ super . doOKAction ( ) ;
}
}
} | set root to action before creating |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public clas... | Any comments elements should implement PsiComment in order to comment by block to work |
<nb> public class JsFacade implements Exportable {
} ) ;
}
+ public void answerCall ( long callId ) {
+ messenger . answerCall ( callId ) ;
+ }
+
+ public void endCall ( long callId ) {
+ messenger . endCall ( callId ) ;
+ }
+
public void bindCall ( String id , JsBindedValueCallback callback ) {... | add answer end call to facade |
<nb> public class WindowManagerService extends IWindowManager . Stub
final int myLayer = win . mBaseLayer ;
int i ;
for ( i = windows . size ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) {
- if ( windows . get ( i ) . mBaseLayer <= myLayer ) {
+ final WindowState otherWin = windows . get ( i ) ;
+ if ( otherWin . g... | Ignore wallpaper when looking for a position for a free window |
<nb> public class Configuration {
}
public Executor newExecutor ( Transaction transaction , ExecutorType executorType ) {
- return newExecutor ( transaction , defaultExecutorType , false ) ;
+ return newExecutor ( transaction , executorType , false ) ;
}
public Executor newExecutor ( Transaction transac... | maximum open cursors exceeded not close result use selectKey |
<nb> public class MsOutlookAddrBookContactSourceService
hasMore = ( contactIds . size ( ) > NUMBER0 ) ;
if ( hasMore )
{
- idFunction = contactIds . remove ( NUMBER0 ) ;
+ idFunction = contactIds . get ( NUMBER0 ) ;
}
}
while ( hasMore )
<nb> public class MsOutlookAddrBookContactSourceService
}
sy... | Corrects count synchronization for the remaining Outlook notification events |
<nb> import NAMESPACE ;
public class MapSizeRequest extends MapAllPartitionsClientRequest implements Portable , RetryableRequest , SecureRequest {
- private String name ;
-
public MapSizeRequest ( ) {
} | Removed leftover name field |
<nb> public abstract class DefaultProjectProfileManager extends ProjectProfileManager
@ notnull
protected final Project myProject ;
- protected String myProjectProfile ;
+ private String myProjectProfile ;
COMMENT
public boolean USE_PROJECT_PROFILE = true ;
<nb> public class InspectionProjectProfileMa... | make myProjectProfile private |
<nb> public class CypherSql
+ STRING0 ,
STRING1 , STRING2 , STRING3 , STRING4 , STRING5 ) ) ;
add ( new TestData (
- STRING6 ,
+ STRING7 ,
STRING8 . replace (
STRING9 , identifierQuoteString ) ,
STRING10 ,
<nb> public class CypherSqlTest extends AbstractJavaDocTestbase
COMMENT
COMMENT
COMMENT
... | Fixed a query in the sql cypher examples |
<nb> public final class DiskLruCacheTest extends TestCase {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public void testAggressiveClearingHandlesWrite ( ) throws Exception {
<nb> public final class DiskLruCacheTest extends TestCase {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
publ... | Remove stray character from docs |
<nb> public class ApplicationInfoEx implements Comparable < ApplicationInfoEx > {
return Long . parseLong ( PrivacyManager . getSetting ( - getUid ( ) , PrivacyManager . cSettingModifyTime , STRING0 , false ) ) ;
}
- public boolean _isSystem ( ) {
+ public boolean isSystem ( ) {
boolean mSystem = false ;
... | Fix compilation error |
<nb> public interface W32API extends StdCallLibrary {
class HRESULT extends NativeLong { }
COMMENT
- HANDLE INVALID_HANDLE_VALUE = new HANDLE ( Pointer . createConstant ( Pointer . SIZE == NUMBER0 ? - NUMBER1 : NUMBER2 ) ) ;
+ HANDLE INVALID_HANDLE_VALUE = new HANDLE ( Pointer . createConstant ( Pointer . SIZ... | add test for INVALID_HANDLE_VALUE add explicit long value |
<nb> public class DirectPublication implements DriverManagedResource
public void close ( )
{
+ rawLog . close ( ) ;
publisherLimit . close ( ) ;
subscriberPositions . forEach ( ReadablePosition : : close ) ;
- rawLog . close ( ) ;
}
public void addSubscription ( final ReadablePosition subscriberPosi... | Close managed resources in consistent order |
<nb> public class ResultFeature {
private static final long serialVersionUID = - NUMBER0 ;
- COMMENT
- COMMENT
- COMMENT
+ public String id ;
public Map < String , Histogram > histograms ;
public ResultFeature ( ) { | ResultFeature gets an id |
<nb> final class ModuleIdentityArtifactProvider extends AbstractService < Void > impleme
props . put ( Constants . SERVICE_RANKING , Integer . MAX_VALUE ) ;
registration = syscontext . registerService ( ArtifactProviderPlugin . class . getName ( ) , this , props ) ;
ServerEnvironment serverEnvironment = injectedE... | Restore modulesDir from ServerEnvironment in ModuleIdentityArtifactProvider |
<nb> public class EnvironmentVariablesComponent extends LabeledComponent < TextFieldWit
}
protected void doOKAction ( ) {
+ myEnvVariablesTable . stopEditing ( ) ;
final Map < String , String > envs = new LinkedHashMap < String , String > ( ) ;
for ( EnvironmentVariable variable : myEnvVariablesTable . getE... | Call stopEditing on table before closing the dialog |
<nb> public class BusinessSubscription
Plan thePlan = null ;
PlanPhase thePhase = null ;
try {
- thePlan = catalog . findPlan ( currentPlan , new DateTime ( ) , startDate ) ;
- thePhase = catalog . findPhase ( currentPhase , new DateTime ( ) , startDate ) ;
+ thePlan = ( currentPlan != null ) ? catalog . fi... | Fix null Plan or null Phase issue |
<nb> public final class NpmMojo extends AbstractMojo {
@ parameter ( property = STRING0 , defaultValue = STRING1 , readonly = true )
private MavenSession session ;
+ COMMENT
+ COMMENT
+ COMMENT
+ @ parameter ( property = STRING2 , defaultValue = STRING3 , required = false )
+ private Boolean skipNpm ;
... | Moved the skip npm parameter to a Maven parameter |
<nb> public class AbstractTestOSGi
protected static void addMoreOSGiContainers ( List < Option > options )
{
options . add ( CoreOptions . equinox ( ) . version ( STRING0 ) ) ;
- options . add ( CoreOptions . equinox ( ) . version ( STRING1 ) ) ;
+ SINGLE
+ SINGLE
+ SINGLE
options . add ( CoreOptions . ... | Avoid downloaded equinox for each test |
<nb> public class DeployToServerSettingsEditor < S extends ServerConfiguration , D exten
@ override
protected void applyEditorTo ( DeployToServerRunConfiguration < S , D > configuration ) throws ConfigurationException {
+ updateDeploymentSettingsEditor ( ) ;
+
configuration . setServerName ( myServerListMod... | deployment source change does not update error warnings |
<nb> public abstract class ESRestTestCase extends ESTestCase {
return restClientSettings ( ) ; SINGLE
}
- COMMENT
- protected URL [ ] getClusterUrls ( ) {
- return clusterUrls ;
- }
-
@ before
public void reset ( ) throws IOException {
SINGLE | TEST remove unused method |
<nb> class FileInEditorProcessor {
String reformatInfo = notifications . getReformatCodeNotification ( ) ;
String rearrangeInfo = notifications . getRearrangeCodeNotification ( ) ;
- String firstNotificationLine = joinWithCommaAndCapitalize ( reformatInfo , rearrangeInfo ) ;
+ builder . append ( joinWithComma... | Corrected notification messages |
<nb> public class AtmosphereResourceImpl implements AtmosphereResource {
return this ;
}
- public synchronized void cancel ( ) throws IOException {
+ public void cancel ( ) throws IOException {
action . type ( Action . TYPE . RESUME ) ;
if ( isCancelled . getAndSet ( true ) ) return ; | Remove unnessary synchrnonization |
<nb> public abstract class Actor < Message , V > implements SuspendableCallable < V > , Joina
String className = getClass ( ) . getSimpleName ( ) ;
if ( className . isEmpty ( ) )
className = getClass ( ) . getName ( ) . substring ( getClass ( ) . getPackage ( ) . getName ( ) . length ( ) + NUMBER0 ) ;
+ final S... | Improve Actor toString |
<nb> public class MessageCompose extends K9Activity implements OnClickListener ,
intent . putExtra ( OpenPgpApi . EXTRA_REQUEST_ASCII_ARMOR , true ) ;
SINGLE
SINGLE
- String accName = mAccount . getName ( ) + STRING0 + mAccount . getAccountNumber ( ) + STRING1
- + mAccount . getEmail ( ) + STRING2 ;
+ Strin... | Use identity instead of account in MessageCompose simplify account naming |
<nb> public class VcsLogGraphTable extends JBTable implements TypeSafeDataProvider , C
private void performAction ( @ notnull MouseEvent e , @ notnull PairFunction < Integer , Point , GraphAction > actionConstructor ) {
int row = PositionUtil . getRowIndex ( e . getPoint ( ) ) ;
+ if ( row > getRowCount ( ) - N... | log Don t send performAction request to the graph if below the log |
<nb> public abstract class WPActionBarActivity extends Activity {
String [ ] blogNames = getBlogNames ( ) ;
if ( blogNames . length >= NUMBER0 ) {
setupCurrentBlog ( ) ;
- SINGLE
- if ( data != null && data . getBooleanExtra ( PreferencesActivity . CURRENT_BLOG_CHANGED , true ) ) {
- onBlogChanged ( ) ;
-... | Call onBlogChanged if currentBlog is not null |
<nb> public class ModuleDeleteProvider implements DeleteProvider , TitledHandler {
@ override
public String getActionTitle ( ) {
- return ProjectAttachProcessor . canAttachToProject ( ) ? STRING0 : STRING1 ;
+ return ProjectAttachProcessor . canAttachToProject ( ) ? STRING2 : STRING1 ;
}
public static v... | detach project close project |
<nb> public enum Material {
COMMENT
COMMENT
public Class < ? extends MaterialData > getData ( ) {
- return data ;
+ return ( data == null ) ? MaterialData . class : data ;
}
COMMENT
<nb> public enum Material {
COMMENT
public MaterialData getNewData ( final byte raw ) {
if ( data == null ) {
- ... | Fixed Material getData returning for dull materials with no fancy dataclass |
<nb> public class Toolkit {
}
if ( ! fontFile . exists ( ) ) {
String msg = STRING0 ;
- if ( hasNonAsciiChars ( System . getProperty ( STRING1 ) ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( hasNonAsciiChars ( Base . getJavaHome ( ) . getAbsolutePath ( ) ) ) {
msg += STRING2 ;
} else {
- msg += STRING3 ... | try that again |
<nb> public class ModelControllerOperationHandlerImpl extends AbstractMessageHandler
SINGLE
int length = StreamUtils . readInt ( inputStream ) ;
ByteArrayOutputStream bout = new ByteArrayOutputStream ( ) ;
- try {
-
- for ( int i = NUMBER0 ; i < length ; i ++ ) {
- int b = inputStream . read ( ) ;
- if ... | Don t prematurely close the input stream |
<nb> public class ModelMetrics extends Keyed < ModelMetrics > {
excluded . add ( STRING0 ) ;
excluded . add ( STRING1 ) ;
excluded . add ( STRING2 ) ;
+ excluded . add ( STRING3 ) ;
if ( m != null ) {
for ( Method meth : m . getClass ( ) . getMethods ( ) ) {
if ( excluded . contains ( meth . getName ( ) )... | Excluded nobs from early stopping |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PieChartView extends AbstractChartView implements PieChartDataProvi
final int numValues = NUMBER0 ;
PieChartData data = new... | Remove color from PieChart dummy data |
<nb> public class MessageList extends K9FragmentActivity implements MessageListFragme
mSearch . or ( new SearchCondition ( Searchfield . SENDER , Attribute . CONTAINS , query ) ) ;
mSearch . or ( new SearchCondition ( Searchfield . SUBJECT , Attribute . CONTAINS , query ) ) ;
+ mSearch . or ( new SearchConditio... | Make search also search the message contents |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback , Accessibility
}
final AttachInfo ai = mAttachInfo ;
final ViewParent p = mParent ;
- if ( p != null && ai != null && ai . mHardwareAccelerated ) {
- SINGLE
- SINGLE
- p . invalidateChild ( this , null ) ;
- return ;
- }
... | Revert Re add performance optimization in View |
<nb> class CallbackProxy extends Handler {
public void onProgressChanged ( int newProgress ) {
SINGLE
synchronized ( this ) {
- if ( mWebChromeClient == null || mLatestProgress == newProgress ) {
+ SINGLE
+ SINGLE
+ if ( mLatestProgress == newProgress ) {
return ;
}
mLatestProgress = newProgress ;
... | Update the mLatestProgress of CallbackProxy even |
<nb> public class Compiler extends AbstractCompiler {
return hasHaltingErrors ( ) ;
}
- SINGLE
COMMENT
@ override
void addToDebugLog ( String str ) {
<nb> public class CompilerOptions implements Serializable , Cloneable {
public void setCheckDeterminism ( boolean checkDeterminism ) {
this . checkD... | Always use the debug log when running determinism checks |
<nb> public interface Constant {
STRING0 ,
STRING1 ,
SINGLE
- SINGLE
+ STRING2 ,
SINGLE
SINGLE
SINGLE
<nb> public class SingleTaskTestActivity extends AppCompatActivity {
switch ( position ) {
case NUMBER0 :
- url = Constant . BIG_FILE_URLS [ NUMBER1 ] ;
+ url = Constant . BIG_FILE_URLS [ NU... | use the non etag response url instead in the second download test in sing task test |
<nb> class RobotiumUtils {
public boolean waitForText ( String text , int matches , long timeout )
{
- RobotiumUtils . sleep ( PAUS ) ;
long now = System . currentTimeMillis ( ) ;
final long endTime = now + timeout ; | Removed a sleep that should not be there |
<nb> public abstract class AbstractStaticMethodInvocation implements StaticMethodInvo
public void setPattern ( Pattern pattern ) {
this . pattern = pattern ;
}
+
+ public void setPattern ( String methodPattern ) {
+ setPattern ( Pattern . compile ( methodPattern ) ) ;
+ }
protected Pattern getPattern ... | overload AbstractStaticMethodInvocation setPattern Pattern with AbstractStaticMethodInvocation setPattern String |
<nb> public class RoutingNodes implements Iterable < RoutingNode > {
for ( ShardRoutingState s : state ) {
if ( s == ShardRoutingState . UNASSIGNED ) {
for ( ShardRouting unassignedShard : unassignedShards ) {
- if ( unassignedShard . index ( ) . equals ( index ) ) {
+ if ( unassignedShard . index ( ) . getNa... | Fix index name equality check in RoutingNodes |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.