diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class ActivityManagerService extends ActivityManagerNative
COMMENT
COMMENT
private void installEncryptionUnawareProviders ( int userId ) {
+ if ( ! StorageManager . isFileBasedEncryptionEnabled ( ) ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ return ;
+ }
+
synchronized ( this ) {... | Don t spin up encryption unaware providers twice |
<nb> class RunConfigurable extends BaseConfigurable {
super ( ExecutionBundle . message ( STRING0 ) ,
ExecutionBundle . message ( STRING0 ) ,
COPY_ICON ) ;
- registerCustomShortcutSet ( new CustomShortcutSet ( KeyStroke . getKeyStroke ( KeyEvent . VK_D , KeyEvent . CTRL_MASK ) ) , myTree ) ;
+
+ final AnAct... | Copy configuration action on Mac should be invoked by Meta D hotkey instead of D reviewed by peter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractTemplateViewResult extends BaseActionResult < String
String path = actionPath ;
String value = resultPath . getValue ( ) ;
... | Detect empty result paths |
<nb> public class Execution extends AbstractExecution implements Startable
{
if ( logger . isDebugEnabled ( ) )
{
- logger . debug ( STRING0 , invocation ) ;
+ logger . debug ( STRING1 , invocation ) ;
}
try
{ | Fixing debug message |
<nb> import NAMESPACE ;
import static NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
final class ReadHandler extends AbstractSelectionHandler implements Runnable {
private final ByteBuffer buffer ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Improved javadoc on the tcpipconnection |
<nb> public class HorizontalScrollView extends FrameLayout {
}
@ override
+ public boolean shouldDelayChildPressedState ( ) {
+ return true ;
+ }
+
+ @ override
protected void onOverScrolled ( int scrollX , int scrollY ,
boolean clampedX , boolean clampedY ) {
SINGLE | HorizontalScrollView should delay child presses |
<nb> import NAMESPACE ;
COMMENT
public interface RuleFinder extends BatchComponent , ServerComponent {
+ COMMENT
+ COMMENT
+ COMMENT
Rule findById ( int ruleId ) ;
Rule findByKey ( String repositoryKey , String key ) ;
Rule find ( RuleQuery query ) ; | add a missing javadoc tag since |
<nb> public class OverviewActivity extends BaseNavDrawerActivity {
setupNavDrawer ( ) ;
showTvdbId = getIntent ( ) . getIntExtra ( OverviewFragment . InitBundle . SHOW_TVDBID , - NUMBER0 ) ;
- if ( showTvdbId == - NUMBER0 ) {
+ if ( showTvdbId < NUMBER1 ) {
finish ( ) ;
return ;
} | Better show tvdb id check when launching OverviewActivity |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class UrlFilter implements Filter {
- public static final Pattern URL_PATTERN = Pattern . compile ( STRING0 ) ;
+ public static final Pattern URL_PATTERN = Pattern . compile ( STRING1 ) ;
@ nullable
@ override | detect URLs starting with www |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DeploymentMenuItem extends CheckableMenuItem
boolean isChecked ,
Command onInvoked )
{
- super ( record . getName ( ) + STRING0 + record . getServer ( ) + STRING1 ) ;
+ SINGLE
+ supe... | don t show document name of content deployed to rpubs |
<nb> public class JavaSourceProcessor extends BaseSourceProcessor {
Tuple combinedLines = null ;
int lineLength = getLineLength ( line ) ;
- if ( ! isExcluded ( _lineLengthExclusions , absolutePath , lineCount ) &&
- ! line . startsWith ( STRING0 ) && ! line . startsWith ( STRING1 ) &&
+ if ( ! line . start... | SourceFormatter Move exclusion check closer to where it s needed |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DismissView extends StackScrollerDecorView {
|| touchY > mContent . getY ( ) + mContent . getHeight ( ) ;
}
+ @ override
+ protected void onConfigurationChanged ( Configurat... | Fixed a bug where clear all wasn t translated |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed misspelled reference |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
abstract class ClickItemTouchListener implements On... | core Use GestureDetectorCompat in ClickItemTouchListener |
<nb> public class PostsListPost {
status = post . getPostStatus ( ) ;
isLocalDraft = post . isLocalDraft ( ) ;
- hasLocalChanges = post . hasChangedFromLocalDraftToPublished ( ) ;
+ hasLocalChanges = post . isLocalChange ( ) ;
isUploading = post . isUploading ( ) ;
setDateCreatedGmt ( post . getDate_cre... | Fixed bug that caused PostsListPost hasLocalChanges to be incorrectly set |
<nb> public interface PagesHashStrategy
long hashRow ( int position , Page page ) ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
boolean rowEqualsRow ( int leftPosition , Page leftPage , int rightPosition , Page rightPage ) ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COM... | Fix PagesHashStrategy java docs |
<nb> public class Comments extends WPActionBarActivity implements
}
@ override
- protected void onResume ( ) {
- super . onResume ( ) ;
- SINGLE
+ protected void onPostResume ( ) {
+ super . onPostResume ( ) ;
boolean commentsLoaded = commentList . loadComments ( false , false ) ;
if ( ! commentsLoa... | Can not perform this action after onSaveInstanceState error when trying to show an alert dialog after resuming |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class DeleteOnExit {
- private static ArrayList < File > files = new ArrayList < File > ( ) ;
+ private static final ArrayList < File > files = new ArrayList < File > ( ) ;
static {
Runtime . getRuntime ( ) . addShutdownHook ( new DeleteOnExitThread ( ) ) ;
... | Fixed possible race condition in DeleteOnExit |
<nb> public final class Settings {
COMMENT
public static final String [ ] CLONE_TO_MANAGED_PROFILE = {
DATE_FORMAT ,
+ HAPTIC_FEEDBACK_ENABLED ,
+ SOUND_EFFECTS_ENABLED ,
+ TEXT_SHOW_PASSWORD ,
TIME_12_24
} ; | Replicate text and sounds settings for managed profile |
<nb> public class HandleConstructor {
Annotation [ ] copiedAnnotations = copyAnnotations ( source , findAnnotations ( field , TransformationsUtil . NON_NULL_PATTERN ) , findAnnotations ( field , TransformationsUtil . NULLABLE_PATTERN ) ) ;
if ( copiedAnnotations . length != NUMBER0 ) parameter . annotations = cop... | Oops used the wrong Argument |
<nb> public class GroovyScriptClass extends LightElement implements GrMemberOwner , Sy
}
} ) ;
return Result . create ( result , PsiModificationTracker . JAVA_STRUCTURE_MODIFICATION_COUNT , myFile ) ;
-
}
} ) ;
} | make Field variables visible from other files |
<nb> public class MessagingListener {
public void folderStatusChanged ( Account account , String folderName , int unreadMessageCount ) { }
- public void folderStatusChanged ( Account account , String folderName ) { }
-
public void systemStatusChanged ( ) { } | Removed unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import... | Fix a stray import or two |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix compilation error |
<nb> public class InputStreamContentProvider implements ContentProvider
return ByteBuffer . wrap ( buffer , offset , length ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected void onReadFailure ( Throwable failure )
+ {
+ }
+
@ override
public Iterator < ByteBuff... | Added onReadFailure callback to allow subclasses to perform actions |
<nb> public abstract class OrientBaseGraph extends OrientConfigurableGraph implements
if ( doc == null )
return null ;
- final OClass cls = ( ( ODocument ) rec ) . getSchemaClass ( ) ;
+ final OClass cls = doc . getSchemaClass ( ) ;
if ( cls != null ) {
if ( cls . isVertexType ( ) )
throw new IllegalArg... | Fix ClassCastException on edge class check |
<nb> public class Tree extends WidgetGroup {
public void draw ( Batch batch , float parentAlpha ) {
Color color = getColor ( ) ;
- if ( style . background != null ) {
- batch . setColor ( color . r , color . g , color . b , color . a * parentAlpha ) ;
- style . background . draw ( batch , getX ( ) , getY ( ... | Fixed tree not setting color |
<nb> public interface World extends PluginMessageRecipient , Metadatable {
void playSound ( Location loc , Sound sound , float volume , float pitch ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String [ ] getGameRules ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Add API for managing and using GameRules |
<nb> public class RemoteImService extends Service implements OtrEngineListener , ImSer
@ override
public void onStart ( Intent intent , int startId ) {
super . onStart ( intent , startId ) ;
- mNeedCheckAutoLogin = intent . getBooleanExtra ( ImServiceConstants . EXTRA_CHECK_AUTO_LOGIN ,
+
+ if ( intent != n... | fixes NPE that sometimes occured on intent boolean |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class EchoSpringRemotingPojoOutOfCamelContextTest extends EchoSpringRemotingPojoTest {
+
protected AbstractXmlApplicationContext createApplicationContext ( ) {
return new ClassPathXmlApplicationContext ( STRING0 ) ;
}
<nb>
COMMENT
package NAMESPACE ;... | Fixed test after the big osgi related refactor |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Orient extends OSharedResource {
OLogManager . instance ( ) . debug ( this ,... | Fixed issue on orient shutdown |
<nb> public abstract class ScanPanel2 extends AbstractPanel {
if ( scanner != null ) {
getProgressBar ( ) . setValue ( scanner . getProgress ( ) ) ;
getProgressBar ( ) . setMaximum ( scanner . getMaximum ( ) ) ;
+ } else {
+ getProgressBar ( ) . setValue ( NUMBER0 ) ;
}
switchView ( scanner ) ; | Reset the value of progress bar when scans are clear or switch to no scan |
<nb> public class Toast {
mWM = WindowManagerImpl . getDefault ( ) ;
SINGLE
SINGLE
- final int layoutDirection = LocaleUtil . getLayoutDirectionFromLocale (
- Locale . getDefault ( ) ) ;
+ final Locale locale = mView . getContext ( ) . getResources ( ) . getConfiguration ( ) . locale ;
+ final int layoutD... | Improve Toast RTL support |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | FillInterest fix javadoc |
<nb> public class ItemStack {
COMMENT
COMMENT
public MaterialData getData ( ) {
+ if ( Material . getMaterial ( getTypeId ( ) ) . getData ( ) != null ) {
+ data = Material . getMaterial ( getTypeId ( ) ) . getNewData ( ( byte ) this . durability ) ;
+ }
+
return data ;
} | Fixed getData not returning the correct values |
<nb> public abstract class AbstractFuture < V > implements ListenableFuture < V > {
}
case CANCELLED :
- throw new CancellationException ( STRING0 ) ;
+ throw cancellationExceptionWithCause (
+ STRING0 , exception ) ;
default:
throw new IllegalStateException (
<nb> public abstract class AbstractFutu... | Store the stack trace of the thread that called cancel in AbstractFuture and attach it to CancellationExceptions |
<nb> public class AggregateException extends Exception {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public AggregateException ( List < Exception > errors ) {
<nb> public class AggregateException extends Exception {
for ( Throwable cause : causes ) {
if ( cause instanceof Exception ) {
er... | Convert non Exception Throwables to Exception for deprecated method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BinaryShardedJedis extends Sharded < Jedis , JedisShardInfo > implement
for ( Jedis jedis : getAllShards ( ) ) {
try {
jedis . quit ( ) ;
- } catch ( Excepti... | Change catch to handle expected exception |
<nb> public class Watchdog extends Thread {
STRING0 ,
STRING1 , SINGLE
STRING2 , SINGLE
+ STRING3 , SINGLE
} ;
static Watchdog sWatchdog ; | Add Bluetooth to native processes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ SINGLE
+ @ ignore
public class JournalIntegrationTest {
private LocalTachyonCluster mLocalTachyonClu... | SMALLFIX Temporarily ignore journal tests which break in hdfs mode |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
class RangeHighlighterImpl extends RangeMarkerImpl implements RangeHighlighterEx , Getter < RangeHi... | cleanup remove yellow code |
<nb> public class CreateConstructorParameterFromFieldFix implements IntentionAction {
}
public boolean isAvailable ( @ notnull Project project , Editor editor , PsiFile file ) {
- final PsiField fieldElement = ( PsiField ) myField . getElement ( ) ;
- return myField . getElement ( ) != null
- && fieldElemen... | do not propose fix for static field |
<nb> public class JavaTextArea extends JEditTextArea {
}
} ) ;
} catch ( Exception e ) {
- Messages . loge ( STRING0 , e . getCause ( ) ) ;
+ Messages . loge ( STRING0 , e ) ;
}
} ) ;
} | Fix NPE while logging exceptions in JavaTextArea |
<nb> public class KeywordSubstitutionWrapper {
}
public static KeywordSubstitutionWrapper getValue ( String substitution ) {
- KeywordSubstitution keywordSubstitution = KeywordSubstitution . getValue ( substitution ) ;
+ final KeywordSubstitution keywordSubstitution = KeywordSubstitution . getValue ( substitu... | add null check |
<nb> public class RaftInstance implements LeaderLocator ,
{
for ( RaftMessages . Directed outgoingMessage : outcome . getOutgoingMessages ( ) )
{
- outbound . send ( outgoingMessage . to ( ) , outgoingMessage . message ( ) ) ;
+ try
+ {
+ outbound . send ( outgoingMessage . to ( ) , outgoingMessage . mess... | don t break the database if unable to send a message |
<nb> public class MultiLayerNetwork implements Serializable , Classifier , Layer {
currPair = new Pair < > ( currPair . getFirst ( ) , this . layerWiseConfigurations . getInputPreProcess ( numLayers - NUMBER0 ) . backprop ( currPair . getSecond ( ) ) ) ;
prevLayer = currLayer ;
}
-
- SINGLE
- SINGLE
}
... | Pulled out TODOs |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Added missing header in JmxAttributeRepresentation |
<nb> public class TvView extends ViewGroup {
super . updateWindow ( force , redrawNeeded ) ;
relayoutSessionOverlayView ( ) ;
} } ;
+ SINGLE
+ mSurfaceView . setSecure ( true ) ;
mSurfaceView . getHolder ( ) . addCallback ( mSurfaceHolderCallback ) ;
if ( mWindowZOrder == ZORDER_MEDIA_OVERLAY ) {
mSurfa... | Set the surface secure |
<nb> public class CompatibilityEngine extends AbstractEngine {
@ override
public void initScreenshot ( GL gl , GLU glu ) {
initDisplayLists ( gl , glu ) ;
+ textManager . initRenderer ( ) ;
}
@ override | Fix label drawing on screenshot |
<nb> public class Animation {
path = new Path ( ) ;
path . moveTo ( startingX . get ( i ) [ j ] , startingY . get ( i ) [ j ] ) ;
- path . lineTo ( mSets . get ( i ) . getEntry ( j ) . getX ( ) , mSets . get ( i ) . getEntry ( j ) . getY ( ) ) ; SINGLE
+ path . lineTo ( mSets . get ( i ) . getEntry ( j ) . ge... | cleaning up code for next version |
<nb> public class LoadEntities extends SingleStepLoadProcess {
@ override
public boolean step ( ) {
EntityManager em = CoreRegistry . get ( EntityManager . class ) ;
+ boolean entityCreated = false ;
for ( EntityRef entity : em . getAllEntities ( ) ) {
- logger . error ( STRING0 , entity . toFullDescription... | Added exception if entities are created during game intialisation |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Proxetta {
if ( classLoader == null ) {
ClassLoader cl = target . getClassLoader ( ) ;
if ( cl == null ) {
- cl = JoddDefault . classLoader ;
+ c... | Add thread context classloader |
<nb> public class ValidationTest extends DialogWrapper {
}
@ override
+ public JComponent getPreferredFocusedComponent ( ) {
+ return myPanel . field2 ;
+ }
+
+ @ override
protected void doOKAction ( ) {
super . doOKAction ( ) ;
Messages . showInfoMessage ( STRING0 , STRING1 ) ; | set focused component |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyTemplateProperties extends AbstractViewResolverProperties {
COMMENT
private String suffix = DE... | Remove unused configuration map |
<nb> public final class CFMetaData
public final static double DEFAULT_ROW_CACHE_SIZE = FLOAT0 ;
public final static double DEFAULT_KEY_CACHE_SIZE = NUMBER0 ;
public final static double DEFAULT_READ_REPAIR_CHANCE = FLOAT1 ;
- public final static boolean DEFAULT_REPLICATE_ON_WRITE = false ;
+ public final stati... | Setting replicateOnWrite counter option to true by default |
<nb> public class WXTextDomObject extends WXDomObject {
Layout layout ;
if ( ! FloatUtil . floatsEqual ( previousWidth , textWidth ) || previousLayout == null ) {
layout = new StaticLayout ( spanned , textPaint , ( int ) Math . ceil ( textWidth ) ,
- Layout . Alignment . ALIGN_NORMAL , NUMBER0 , NUMBER1 , false... | Set textLayout includePadding to true |
<nb> public class StatementDeserializerTest
assertThat ( de . hasNext ( ) , equalTo ( false ) ) ;
}
+ @ test
+ public void shouldTakeParametersBeforeStatement ( ) throws Exception
+ {
+ SINGLE
+ String json = STRING0 ;
+
+ SINGLE
+ StatementDeserializer de = new StatementDeserializer ( new ByteArr... | Added additional test for giving parameter statement in the opposite order |
<nb> public class TestOperationSetMultiUserChat2
suite . addTest (
new TestOperationSetMultiUserChat2 ( STRING0 ) ) ;
-
- suite . addTest (
- new TestOperationSetMultiUserChat2 ( STRING1 ) ) ;
+ SINGLE
+ SINGLE
+ SINGLE
suite . addTest (
new TestOperationSetMultiUserChat2 ( STRING2 ) ) ;
<nb> ... | temporarily disable failing test |
<nb> public final class JoglGraphics implements Graphics , RenderListener
frame . pack ( ) ;
frame . setVisible ( true ) ;
frame . setDefaultCloseOperation ( JFrame . DISPOSE_ON_CLOSE ) ;
+ frame . setLocationRelativeTo ( null ) ;
frame . addWindowListener ( new WindowAdapter ( )
{
public void windowClosi... | Centered window for JOGL |
<nb> public class PowerManagerService extends IPowerManager . Stub
mScreenOffHandler . postAtTime ( this , now + ( NUMBER0 / NUMBER1 ) ) ;
}
} else {
- SINGLE
- SINGLE
- nativeStartSurfaceFlingerAnimation (
- mScreenOffReason == WindowManagerPolicy . OFF_BECAUSE_OF_PROX_SENSOR
- ? NUMBER2 : mAnimationSe... | Fix merge problem |
<nb> public class StdErrLogTest
SINGLE
log . setLevel ( StdErrLog . LEVEL_DEBUG ) ;
log . debug ( STRING0 ) ;
+
+ Assert . assertThat ( STRING1 , log . isDebugEnabled ( ) , is ( true ) ) ;
SINGLE
log . setLevel ( StdErrLog . LEVEL_ALL ) ; | Adding test on StdErrLog isDebugEnabled |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class JSON {
return TreeRule . stringToType ( parser . getValueAsString ( ) ) ;
}
}
+
+ COMMENT
+ COMMENT
+ ... | Add JSON SearchTypeDeserializer helper to deserialize human readable query types |
<nb> public final class ThreadReferenceProxyImpl extends ObjectReferenceProxyImpl imp
DebuggerManagerThreadImpl . assertIsManagerThread ( ) ;
final ThreadReference threadRef = getThreadReference ( ) ;
try {
- LOG . assertTrue ( threadRef . isSuspended ( ) ) ;
+ SINGLE
checkValid ( ) ;
if ( myFrames == n... | remove potentially expensive assertion |
<nb> public class PApplet extends Applet
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
static public final float lerp ( float start , float stop , float amt ) {
return start + ( stop - start ) * amt ;
<nb> public class PApplet extends Applet
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
... | Added related links to lerp and PVector lerp |
<nb> public class HeaderOrderTestCase {
if ( Modifier . isTransient ( field . getModifiers ( ) ) ) {
continue ;
}
+
Object value = field . get ( null ) ;
if ( ! ( value instanceof HttpString ) ) {
continue ; | added jacoco test coverage with the profile test coverage and collected into the coverage report module |
<nb> public class CleanupInspectionIntention implements IntentionAction , HighPriority
}
public boolean isAvailable ( @ notnull final Project project , final Editor editor , final PsiFile file ) {
- return myQuickfixClass != null && myQuickfixClass != EmptyIntentionAction . class && ! ( myTool instanceof Unfair... | disable fix all for unfair inspections |
<nb> public final class ExpressionBuilder {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static Expression nullExpression ( ) {
return new ExpressionAdapter ( ) { | Corrected the copy paste typo inside the Javadoc |
<nb> public class AppTransition implements Dump {
SINGLE
Animation clipAnimLR = new ClipRectLRAnimation (
- centerX - mNextAppTransitionStartWidth / NUMBER0 ,
- centerX + mNextAppTransitionStartWidth / NUMBER0 ,
+ centerX - mNextAppTransitionStartWidth / NUMBER1 ,
+ centerX + mNextAppTransitionStartWidth ... | Use correct starting size for clip reveal transition |
<nb> public class OCreateEdgeStatement extends OStatement {
rightParamValue = val ;
}
}
+ if ( body != null ) {
+ body . replaceParameters ( params ) ;
+ }
}
}
COMMENT | fixed CREATE EDGE with unnamed parameters |
<nb> public class LayoutManager extends RecyclerView . LayoutManager {
public FillResult layoutAndAddHeader ( LayoutState state , SectionData section ,
FillResult fillResult ) {
final LayoutState . View header = section . getSectionHeader ( state ) ;
+ if ( header == null ) {
+ return fillResult ;
+ }
+
... | Check header exists before attempting layout |
<nb> public class DefaultLibrarySpec implements LibrarySpec , ComponentSpecInternal {
return mainSourceSet ;
}
- SINGLE
+ SINGLE
+ SINGLE
public Set < Class < ? extends LanguageOutputType > > getInputTypes ( ) {
return new HashSet < Class < ? extends LanguageOutputType > > ( ) ;
} | Add comment to potential open issue when declaring custom component |
<nb> public class PermissionsResolverManager implements PermissionsResolver {
} catch ( MissingPluginException e ) {
perms = new ConfigurationPermissionsResolver ( config ) ;
logger . info ( name + STRING0 ) ;
+ } catch ( Throwable e ) {
+ perms = new ConfigurationPermissionsResolver ( config ) ;
+ logger .... | Made the PermissionsResolverManager catch Throwable just in case |
<nb> public abstract class HttpParser {
int parseState = state . parseState ;
+ while ( buffer . hasRemaining ( ) && parseState == NORMAL ) {
+ final byte next = buffer . get ( ) ;
+ if ( next == STRING0 ) {
+ parseState = BEGIN_LINE_END ;
+ } else if ( next == STRING1 ) {
+ parseState = LINE_END ;
... | Move initial state into its own loop with less branches |
<nb> import static NAMESPACE ;
public class TransformationActionTest {
- private static final String FOO = STRING0 , BAR = STRING1 , QUX = STRING2 , TEMP = STRING3 ;
+ private static final String FOO = STRING0 , BAR = STRING1 , QUX = STRING2 , TEMP = STRING4 ;
@ rule
public TestRule mockitoRule = new Mo... | Add dot to temp file suffix |
<nb> public class CoordinatorModule
@ override
protected void setup ( Binder binder )
{
- httpServerBinder ( binder ) . bindResource ( STRING0 , STRING1 ) . withWelcomeFile ( STRING2 ) ;
+ SINGLE
- discoveryBinder ( binder ) . bindHttpAnnouncement ( STRING3 ) ;
+ httpServerBinder ( binder ) . bindResour... | Only announce coordinator if configured as one |
<nb> public class RecentsImpl extends IRecentsNonSystemUserCallbacks . Stub
public void dockTopTask ( ) {
SystemServicesProxy ssp = Recents . getSystemServices ( ) ;
ActivityManager . RunningTaskInfo topTask = ssp . getTopMostTask ( ) ;
- if ( topTask != null && ! ssp . isInHomeStack ( topTask . id ) ) {
+ if... | Fixing build breakage |
<nb> public class GrLightParameter extends LightVariableBuilder < GrLightParameter > imp
private volatile boolean myOptional ;
private volatile GrModifierList myModifierList ;
private PsiElement myScope ;
- private boolean myVarArg ;
public GrLightParameter ( @ nullable String name , @ notnull PsiType type ... | Remove unused variable |
<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 NAMESP... | removed some unused unneeded code |
<nb> import NAMESPACE ;
public class ThriftColumnFamilyDefinitionImpl implements ColumnFamilyDefinition {
private final static Map < String , FieldMetadata > fieldsMetadata = Maps . newHashMap ( ) ;
- {
+ static {
for ( Entry < _Fields , FieldMetaData > field : CfDef . metaDataMap . entrySet ( ) ) {
field... | Changed keyspace and column family metatdata to be initialized inside the static block |
<nb> public class ThroughputThrottler {
return false ;
}
- float elapsedMs = ( sendStartMs - startMs ) / FLOAT0 ;
- return elapsedMs > NUMBER0 && ( amountSoFar / elapsedMs ) > this . targetThroughput ;
+ float elapsedSec = ( sendStartMs - startMs ) / FLOAT0 ;
+ return elapsedSec > NUMBER0 && ( amountSoFar... | Fix a variable name semantically correct |
<nb> public class TachyonFile implements Comparable < TachyonFile > {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- long getBlockIdBasedOnOffset ( long offset ) throws IOException {
- return getBlockId ( ( int ) ( offset / getBlockSizeByte ( ) ) ) ;
- }
-
- COMMENT ... | Remove unused method |
<nb> public class OPropertyImpl extends ODocumentWrapperNoClass implements OProperty
document . setInternalStatus ( ORecordElement . STATUS . UNMARSHALLING ) ;
try {
- SINGLE
- SINGLE
+ document . field ( STRING0 , getName ( ) ) ;
+ document . field ( STRING1 , getType ( ) . id ) ;
document . field ( ST... | reintroduced name and type in the property serialization for Network Compatibility |
<nb> public class RestSwaggerReader {
if ( verb . getType ( ) != null ) {
if ( verb . getType ( ) . endsWith ( STRING0 ) ) {
- Property prop = modelTypeAsProperty ( verb . getType ( ) , swagger ) ;
+ String typeName = verb . getType ( ) ;
+ typeName = typeName . substring ( NUMBER0 , typeName . length ( ) -... | Removed multiple arrays |
<nb> public class UpdateTest extends FlowTestCase {
. getQuery ( ) ;
String trimmed = query . trim ( ) . replaceFirst ( STRING0 , STRING1 ) ;
- trimmed = trimmed . replace ( STRING2 , STRING1 ) ;
+ trimmed = trimmed . replace ( STRING3 , STRING1 ) ;
trimmed = trimmed . replace ( STRING4 , STRING1 ) . trim (... | fix another test |
<nb> public class InternalNioOutputBuffer
if ( socket . getBufHandler ( ) . getWriteBuffer ( ) . position ( ) == socket . getBufHandler ( ) . getWriteBuffer ( ) . capacity ( ) ) {
flushBuffer ( ) ;
}
- if ( thisTime > socket . getBufHandler ( ) . getWriteBuffer ( ) . capacity ( ) - socket . getBufHandler ( ) . ... | Use the remaining for the byte buffer as the capacity is the total capacity and not the limit |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public abstract class InspectionToolsConfigurable extends BaseConfigurabl... | enable search through inspections |
<nb> public class TestContextConfigAnnotation extends TestCase {
if ( antFile . lastModified ( ) >= eclipseFile . lastModified ( ) ) {
return antFile ;
}
+ return eclipseFile ;
}
+ return antFile ;
}
return eclipseFile ;
} | Fix tests for a pure Ant run |
<nb> public class DerbyDatabase extends AbstractJdbcDatabase {
return ;
}
}
- log . debug ( STRING0 + STRING1 ) ;
+ SINGLE
driverVersionMajor = - NUMBER0 ;
driverVersionMinor = - NUMBER0 ;
} catch ( Exception e ) {
- log . debug ( STRING0 + STRING2 + e . getMessage ( ) ) ;
+ SINGLE
driverVersionMa... | Don t log derby driver missing info |
<nb> public abstract class AsyncHttpServerRequestImpl extends FilteredDataEmitter imp
DataEmitter emitter = Util . getBodyDecoder ( mSocket , mRawHeaders , true , mReporter ) ;
emitter . setEndCallback ( mReporter ) ;
mBody = Util . getBody ( emitter , mReporter , mRawHeaders ) ;
+ mHeaders = new RequestHeaders... | Fix bug where headers were being parsed before being received |
<nb> public class BatteryStatsImpl extends BatteryStats {
powerState == DataConnectionRealTimeInfo . DC_POWER_STATE_MEDIUM
|| powerState == DataConnectionRealTimeInfo . DC_POWER_STATE_HIGH ;
if ( active ) {
- mMobileRadioActiveStartTime = realElapsedRealtimeMs = elapsedRealtime ;
+ mMobileRadioActiveStartTime... | use the same timestamp for comparing intervals |
<nb> public class SearchManager
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
- private ComponentName getGlobalSearchActivity ( ) {
+ public ComponentName getGlobalSearchActivity ( ) {
Intent intent = new Intent ( INTENT_ACTION_GLOBAL_SEARCH ) ;
PackageManager pm = mContext . getPackageManager... | Make SearchManager getGlobalSearchActivity public but hidden |
<nb> public class ConversationActivity extends XmppActivity {
@ override
public void onPanelClosed ( View arg0 ) {
paneShouldBeOpen = false ;
- if ( conversationList . size ( ) > NUMBER0 ) {
+ if ( ( conversationList . size ( ) > NUMBER0 ) && ( getSelectedConversation ( ) != null ) ) {
getActionBar ( ) . se... | fixed null pointer issue |
<nb> public class GitLogUI implements Disposable {
final CommitI commitI = myTableModel . getCommitAt ( row ) ;
if ( commitI == null ) {
return Collections . emptyList ( ) ;
-
}
if ( commitI . holdsDecoration ( ) ) {
- return Collections . emptyList ( ) ;
+ continue ;
}
final VirtualFile root = comm... | cannot cherry pick several commits when date row is selected |
<nb> public class ServerQueryExecutorV1Impl implements QueryExecutor {
LOGGER . error ( e . getMessage ( ) ) ;
instanceResponse = null ;
} finally {
- _instanceDataManager . getResourceDataManager ( instanceRequest . getQuery ( ) . getQuerySource ( ) . getResourceName ( ) )
- . returnSegmentReaders ( instance... | won t return segments for now |
<nb> public class PhotoViewAttacher implements IPhotoView , View . OnTouchListener , Vers
SINGLE
if ( null == imageView ) {
cleanup ( ) ;
- throw new IllegalStateException (
- STRING0 ) ;
+ Log . i ( LOG_TAG , STRING0 ) ;
}
return imageView ; | Change getImageView to log an error rather than throw an exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class GotoTaskAction extends GotoActionBase {
+ public class GotoTaskAction ex... | while building indexes Switch Task then Open Task in popup gets no reaction |
<nb> public class H2ONotFoundArgumentException extends H2OIllegalArgumentException {
public H2ONotFoundArgumentException ( String msg , String dev_msg ) {
super ( msg , dev_msg ) ;
}
+
+ public H2ONotFoundArgumentException ( String msg ) {
+ super ( msg , msg ) ;
+ }
} | Add one argument constructor |
<nb> public class ExecUtil {
ByteArrayOutputStream stdout = new ByteArrayOutputStream ( ) ;
PumpStreamHandler streamHandler = new PumpStreamHandler ( stdout ) ;
- executor . setExitValue ( NUMBER0 ) ;
+ executor . setExitValues ( null ) ;
executor . setStreamHandler ( streamHandler ) ;
executor . setWatch... | disable handling of error exit codes |
<nb> class EventHandler {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> class EventHandler {
throw new IllegalStateException ( toString ( ) + STRING0 ) ;
}
try {
- method . invoke ( target , new Object [ ] { event } ) ;
+ method . invoke ( target , event ) ;
} ca... | Fix Javadoc tag |
<nb> package NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improve Command Javadoc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.