diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class SceneEditTool {
Geometry arrowX = new Geometry ( STRING0 , new Arrow ( new Vector3f ( arrowSize , NUMBER0 , NUMBER0 ) ) ) ;
Geometry arrowY = new Geometry ( STRING1 , new Arrow ( new Vector3f ( NUMBER0 , arrowSize , NUMBER0 ) ) ) ;
Geometry arrowZ = new Geometry ( STRING2 , new Arrow ( ... | changed the lineWidth of the axisMarker |
<nb> public class ErrorReportValve
Throwable throwable =
( Throwable ) request . getAttribute ( Globals . EXCEPTION_ATTR ) ;
- if ( response . isAppCommitted ( ) ) {
+ if ( response . isCommitted ( ) ) {
return ;
} | I did not make equivalent modifications the isCommitted method was not invoked on the facade |
<nb> public class Util {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3
+ STRING3 ,
+ STRING4 ,
+ STRING5 ,
+ STRING6 ,
+ STRING7 ,
+ STRING8 ,
+ STRING9 ,
+ STRING10 ,
+ STRING11 ,
+ STRING12 ,
+ STRING13 ,
+ STRING14 ,
+ STRING15 ,
+ STRING16 ,
+ STRING17 ,
+ STRING18
} ;
public... | Added several fallback browsers |
<nb> public class ExpandoMetaClass extends MetaClassImpl implements GroovyObject {
}
private String convertPropertyName ( String prop ) {
- if ( Character . isUpperCase ( prop . charAt ( NUMBER0 ) ) && Character . isUpperCase ( prop . charAt ( NUMBER1 ) ) ) {
+ if ( Character . isUpperCase ( prop . charAt ( N... | fixed bug with properties with only one character |
<nb> public class AndroidBinaryRule extends DoNotUseAbstractBuildable implements
SINGLE
final String preprocessJavaClassesInDir = getBinPath ( STRING0 ) ;
final String preprocessJavaClassesOutDir = getBinPath ( STRING1 ) ;
+ commands . add ( new MakeCleanDirectoryStep ( preprocessJavaClassesInDir ) ) ;
+ comm... | For class preprocessors clean up dirs before starting |
<nb> class AddRemoveUpDownPanel extends JPanel {
@ override
public ShortcutSet getShortcut ( ) {
switch ( myButton ) {
- case ADD : return CustomShortcutSet . fromString ( STRING0 , STRING1 ) ;
+ case ADD : return CommonShortcuts . getNew ( ) ;
case REMOVE : return CustomShortcutSet . fromString ( STRING2 )... | use standard shortcut for add element to a list table |
<nb> public class DefaultBroadcasterFactory extends BroadcasterFactory {
if ( store . size ( ) > NUMBER0 ) {
for ( Broadcaster b : lookupAll ( ) ) {
try {
- SINGLE
- if ( b . getAtmosphereResources ( ) . contains ( r ) ) {
- b . removeAtmosphereResource ( r ) ;
- }
+ b . removeAtmosphereResource ( r ) ;... | Remove this non sense |
<nb> public final class UnsignedInts {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix param javadoc for UnsignedInts parseUnsignedInt to reflect actual parameter name |
<nb> public class Meta {
mListHook . add ( new Hook ( STRING0 , STRING1 , STRING2 , NUMBER0 , null , null ) ) ;
mListHook . add ( new Hook ( STRING0 , STRING3 , STRING2 , NUMBER0 , null , null ) ) ;
mListHook . add ( new Hook ( STRING0 , STRING4 , STRING2 , NUMBER1 , null , null ) ) ;
- mListHook . add ( new Ho... | Added another explicit permission |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class JBSplitter extends Splitter {
mySplitterProportionKey = key ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public final void setAndLoadSplitt... | Splitter forgets its position when switching between Text and Resource bundle tabs |
<nb> public class TestFragmentManager extends FragmentManager {
container = ( ViewGroup ) activity . findViewById ( shadowFragment . getContainerViewId ( ) ) ;
}
- View view = fragment . onCreateView ( activity . getLayoutInflater ( ) , container , null ) ;
+ View view = fragment . onCreateView ( activity . g... | startFragment passes the saved instance state to the fragment s onCreateView method instead of null |
<nb> public class CassandraServer implements Cassandra . Iface
}
}
- private static ByteBuffer getName ( ColumnOrSuperColumn cosc )
- {
- return cosc . isSetSuper_column ( ) ? cosc . super_column . name :
- ( cosc . isSetColumn ( ) ? cosc . column . name :
- ( cosc . isSetCounter_column ( ) ? cosc . cou... | remove dead code |
<nb> public abstract class AbstractHttpQuery {
public Channel channel ( ) {
return chan ;
}
+
+ COMMENT
+ public String getRemoteAddress ( ) {
+ return chan . getRemoteAddress ( ) . toString ( ) ;
+ }
COMMENT
COMMENT | Add getRemoteAddress to the abstract HTTP query class |
<nb> public class CustomMapper extends BaseConverter {
}
Object mapCustom ( Object source ) {
+ if ( source == null ) {
+ return null ;
+ }
+
SINGLE
SINGLE
SINGLE | Avoid NPE as the class is mandatory |
<nb> public class CxxLibraryDescription implements
SINGLE
SINGLE
- if ( type . isPresent ( ) ) {
+ if ( type . isPresent ( ) && platform . isPresent ( ) ) {
Set < Flavor > flavors = Sets . newHashSet ( params . getBuildTarget ( ) . getFlavors ( ) ) ;
flavors . remove ( type . get ( ) . getKey ( ) ) ;
Bu... | Check both type and platform presence in CxxLibraryDescription |
<nb> public class BluetoothService extends IBluetooth . Stub {
SINGLE
private final ArrayList < String > mAutoPairingNameBlacklist =
new ArrayList < String > ( Arrays . asList (
- STRING0 , STRING1 , STRING2 ) ) ;
+ STRING0 , STRING1 , STRING2 , STRING3 , STRING4 ) ) ;
SINGLE
SINGLE
<nb> public class ... | Add BMW and Audi to Auto Pairing black list |
<nb> public interface TestBusinessBean {
void setString ( String s ) ;
void doSomething ( ) ;
+
+ void unprotected ( ) ;
}
<nb> public class TestBusinessBeanImpl implements TestBusinessBean {
public void doSomething ( ) {
}
+
+ public void unprotected ( ) {
+ }
} | Added unprotected method for tests |
<nb> public class JDOExporterMojo extends AbstractExporterMojo {
exporter . setEmbeddedAnnotation ( Embedded . class ) ;
exporter . setEntityAnnotation ( PersistenceCapable . class ) ;
exporter . setSkipAnnotation ( NotPersistent . class ) ;
- exporter . setSupertypeAnnotation ( null ) ;
}
} | Fix NPE when exporting JDO using maven plugin |
<nb> s * /
COMMENT
COMMENT
public void setObject ( int index , Object value ) {
- setObject ( index , value , null , Integer . MAX_VALUE ) ;
+ setObject ( index , value , null , Types . OTHER ) ;
}
COMMENT
<nb> s * /
COMMENT
COMMENT
public void setObject ( String param , Object value ) {
- set... | Set Types OTHER for the Object set get methods |
<nb> import NAMESPACE ;
public interface LibC extends Library {
SINGLE
public int setenv ( String name , String value , int overwrite ) throws LastErrorException ;
- public int unsetenv ( String name ) throws LastErrorException ;
public String getcwd ( byte [ ] out , int size ) throws LastErrorException ;
p... | Removed unused method |
<nb> public class CrashTracking {
Crashlytics . start ( context ) ;
}
+ public static void logException ( Throwable throwable ) {
+ Crashlytics . logException ( throwable ) ;
+ }
+
}
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
im... | Handle favicon exception |
<nb> public class BasicChaosMonkey extends ChaosMonkey {
COMMENT
COMMENT
protected void handleTerminationError ( String instance , Throwable e ) {
- LOGGER . error ( STRING0 + instance , e . getMessage ( ) ) ;
+ LOGGER . error ( STRING0 + instance , e ) ;
throw new RuntimeException ( STRING0 + instance , e ... | Include the full exception when the chaos monkey fails |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileEditorManagerImpl extends FileEditorManagerEx implements Projec
return openEditor ( realDescriptor , focusEditor ) ;
} ... | cleanup use SmartList |
<nb> import NAMESPACE ;
COMMENT
public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback {
private final static boolean LOG_THREADS = false ;
- private final static boolean LOG_PAUSE_RESUME = true ;
- private final static boolean LOG_SURFACE = true ;
- private final static boolean ... | Turn off logging |
<nb> public class TaskLocation
{
return Objects . hash ( host , port ) ;
}
+
+ @ override
+ public String toString ( )
+ {
+ return STRING0 +
+ STRING1 + host + STRING2 +
+ STRING3 + port +
+ STRING4 ;
+ }
} | Add toString method |
<nb> public class AeronTest
@ ignore
@ test
- public void creatingChannelsShouldNotifyMediaDriver ( ) throws Exception
- {
- newPublication ( aeron ) ;
- aeron . conductor ( ) . doWork ( ) ;
-
- assertChannelMessage ( toDriverBuffer , ADD_PUBLICATION ) ;
- }
-
- @ ignore
- @ test ( expected = ... | delete tests moved to the client conductor |
<nb> public class AtmosphereFramework implements ServletContextProvider {
logger . debug ( STRING0 ) ;
addAtmosphereHandler ( STRING1 , new AbstractReflectorAtmosphereHandler ( ) {
@ override
- public void onRequest ( AtmosphereResource httpServletRequestHttpServletResponseAtmosphereResource ) throws IOExceptio... | Log an error instead of doing nothing when a Websocket only application is deployed |
<nb> public class RendererRegistry {
internalRenderers . put ( DEFAULT_RENDER , STRING0 ) ;
internalRenderers . put ( STRING1 , STRING1 + STRING2 ) ;
internalRenderers . put ( STRING3 , STRING3 + STRING2 ) ;
- internalRenderers . put ( STRING4 , STRING4 + STRING2 ) ;
internalRenderers . put ( STRING5 , STRING... | Remove ability to choose Cycle map |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ incubating
public class JvmLanguagePlugin implements Plugin < Project > {
private final Instantiator instantiator ;
- private fin... | remove unused FileResolver |
<nb> public class Execution implements Serializable {
}
void scheduleOrUpdateConsumers ( List < List < ExecutionEdge > > allConsumers ) {
- if ( allConsumers . size ( ) > NUMBER0 ) {
+ final int numConsumers = allConsumers . size ( ) ;
+
+ if ( numConsumers > NUMBER0 ) {
fail ( new IllegalStateException... | runtime Fix possible IndexOutOfBoundsException when scheduling or updating consumers |
<nb> public class ColibriConferenceIQ
throw new NullPointerException ( STRING0 ) ;
return
- channelBundles . contains ( channelBundles )
+ channelBundles . contains ( channelBundle )
? false
: channelBundles . add ( channelBundle ) ;
} | Fixes a typo reported by kamenik |
<nb> public class HistoryWindow
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected void close ( )
{
- this . dispose ( ) ;
+ if ( chatConvPanel . getRightButtonMenu ( ) . isVisible ( ) ) {
+ chatConvPanel . getRightButtonMenu ( ) . setVisible ( false ) ;
+ }
+ else... | In the history window escape closes opened popup menu if there s one |
<nb>
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
package NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | Removing more references which break the build for everyone else |
<nb> package NAMESPACE ;
interface AioChannelFinder {
AbstractAioChannel findChannel ( Runnable command ) throws Exception ;
- }
+ } | Fix a checkstyle violation |
<nb> public class SqlStatementBuilder {
COMMENT
COMMENT
static String stripDelimiter ( String sql , Delimiter delimiter ) {
- return sql . substring ( NUMBER0 , sql . lastIndexOf ( delimiter . getDelimiter ( ) ) ) ;
+ final int lowerCaseIndex = sql . lastIndexOf ( delimiter . getDelimiter ( ) . toLowerCase ( ... | enchancing stripDelimiter function to work properly with special uinicode characters like umlauts etc |
<nb> public final class ProviderProperties implements Parcelable {
parcel . writeInt ( mHasMonetaryCost ? NUMBER0 : NUMBER1 ) ;
parcel . writeInt ( mSupportsAltitude ? NUMBER0 : NUMBER1 ) ;
parcel . writeInt ( mSupportsSpeed ? NUMBER0 : NUMBER1 ) ;
- parcel . writeInt ( mSupportsSpeed ? NUMBER0 : NUMBER1 ) ;
... | Fix some location issues exposed by CTS |
<nb> public class CleanXmlAnnotator implements Annotator {
private static final Pattern TAG_ATTR_PATTERN = Pattern . compile ( STRING0 ) ;
private void addAnnotationPatterns ( CollectionValuedMap < Class , Pair < Pattern , Pattern > > annotationPatterns , String conf , boolean attrOnly ) {
- String [ ] annoPatt... | Fix null pointer exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Adding Imports back in test |
<nb> public class HistoricTaskInstanceQueryProperty implements QueryProperty {
public static final HistoricTaskInstanceQueryProperty TASK_OWNER = new HistoricTaskInstanceQueryProperty ( STRING0 ) ;
public static final HistoricTaskInstanceQueryProperty TASK_DEFINITION_KEY = new HistoricTaskInstanceQueryProperty ( ST... | fixing issue with oracle ordering on end time |
<nb> public class AndroidDatabaseConnection implements DatabaseConnection {
return true ;
}
- private void bindArgs ( SQLiteStatement stmt , Object [ ] args , FieldType [ ] argFieldTypes ) {
+ private void bindArgs ( SQLiteStatement stmt , Object [ ] args , FieldType [ ] argFieldTypes ) throws SQLException { ... | Updated the tests and caught a bug with LONG_STRING handling under Android |
<nb> public class BlockOilStill extends BlockStationary implements ILiquid {
public void registerIcons ( IconRegister iconRegister ) {
this . theIcon = new Icon [ ] { iconRegister . registerIcon ( STRING0 ) , iconRegister . registerIcon ( STRING1 ) } ;
}
+
+ @ override
+ public void initializeBlock ( )
+ ... | Make still oil flammable and prone to explode like real oil |
<nb> public abstract class ComponentManagerImpl extends UserDataHolderBase implements
public MessageBus getMessageBus ( ) {
+ assert ! myDisposeCompleted && ! myDisposed : STRING0 ;
assert myMessageBus != null : STRING1 ;
return myMessageBus ;
} | Added debug assertions |
<nb> public class DependencyManager implements InstallShinyEvent . Handler
Dependency . cranPackage ( STRING0 , STRING1 ) ,
Dependency . cranPackage ( STRING2 , STRING3 ) ,
Dependency . cranPackage ( STRING4 , STRING5 ) ,
+ Dependency . cranPackage ( STRING6 , STRING7 ) ,
+ Dependency . cranPackage ( STRING8 ... | add caTools and bitops dependencies for rmarkdown |
<nb> public final class BlockWorkerClient extends ClientBase {
@ override
protected long getServiceVersion ( ) {
- return Constants . BLOCK_WORKER_SERVICE_VERSION ;
+ return Constants . BLOCK_WORKER_CLIENT_SERVICE_VERSION ;
}
COMMENT
<nb> public final class Constants {
SINGLE
public static final l... | Using consistent naming for service version constant names |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | Add missing license header |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class Animat... | Do not invalidate parent if view is not attached to anything |
<nb> public class ClassesTreeStructureProvider implements SelectableTreeStructureProv
if ( ! ( element instanceof PsiClass ) ) {
return false ;
}
- final PsiElement parent = element . getParent ( ) ;
+ final PsiFile parentFile = parentFileOf ( ( PsiClass ) element ) ;
SINGLE
- return parent instanceof Psi... | ClassesTreeStructureProvider isTopLevelClass Improved parent file discovery |
<nb> public interface SimpleJdbcCallOperations {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
SimpleJdbcCallOperations withNamedBinding ( ) ; | Add missing since tag |
<nb> public abstract class QueueLoadBalancer extends LoadBalancerSupport {
if ( ! list . isEmpty ( ) ) {
Processor processor = chooseProcessor ( list , exchange ) ;
if ( processor == null ) {
- throw new IllegalStateException ( STRING0 + exchange ) ;
+ Exception e = new IllegalStateException ( STRING0 + excha... | Fixed QueueLoadBalancer issue when callback is not executed when processor is not found |
<nb> public abstract class AbstractServerBuilder < BuilderT extends AbstractServerBuild
return server ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
protected abstract ServerEssentials buildEssentials ( ) ;
+ COMMENT
+ COMMENT
+ COMMENT
protected static class ServerEssentials {
fina... | Add a javadoc for AbstractServerBuilder buildEssentials |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
SINGLE
final View transientView = mRecycler . getTransientStateView ( position ) ;
if ( transientView != null ) {
- final View updatedView = mAdapter . getView ( position , transientView , this ) ;
- if ( updatedView != t... | DO NOT MERGE Check item type before re binding transient state views |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GtasksDetailExposer extends BroadcastReceiver {
StringBuilder builder = new StringBuilder ( ) ;
String listId = metadata . getValue ( Gtasks... | Don t display list when it s the user s default list |
<nb> public class TagCommentsFragment extends CommentsFragment {
}
@ override
- @ suppresswarnings ( STRING0 )
protected UserActivity createUpdate ( ) {
UserActivity userActivity = new UserActivity ( ) ;
userActivity . setValue ( UserActivity . MESSAGE , addCommentField . getText ( ) . toString ( ) ) ; | Removed unused SuppressWarnings |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> public class TestProcessStreamHandler
catch ( Exception e )
{ SINGLE
}
- assertTrue ( STRING0 , process . exitValue ( ) != NUMBER0 ) ;
... | Revert Checks exit code |
<nb> public class JmsToHttpRoute extends SpringRouteBuilder {
SINGLE
. policy ( required )
SINGLE
- . to ( STRING0 )
+ . to ( STRING1 )
SINGLE
SINGLE
. convertBodyTo ( String . class )
<nb> public class JmsToHttpRoute extends SpringRouteBuilder {
SINGLE
SINGLE
- from ( STRING2 ) . process ( ne... | Changed the port of JmsToHttpRoute to avoid the port conflict in some TC boxs |
<nb> public class DependencyParseAnnotator extends SentenceAnnotator {
}
public DependencyParseAnnotator ( Properties properties ) {
- String modelPath = PropertiesUtils . getString ( properties , STRING0 , DependencyParser . DEFAULT_MODEL ) ;
+ String modelPath = PropertiesUtils . getString ( properties , ST... | Make depparse model file option consistent with rest of CoreNLP |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class CodeBrowserEditingTargetWidget extends Composite
+ public class CodeBrowserEditingTargetWidget ... | Fix resizing behavior in code browser |
<nb> public class JUnitUtil {
}
final PsiModifierList modifierList = psiClass . getModifierList ( ) ;
if ( modifierList == null ) return false ;
- if ( AnnotationUtil . isAnnotated ( psiClass , RUN_WITH , true ) ) return true ;
-
final boolean hasJUnit5 = isJUnit5 ( modifierList ) ;
if ( ! PsiClassUtil . ... | don t collect abstract classes to run in package |
<nb> public class TitlePageIndicator extends View implements PageIndicator {
SINGLE
if ( mCurrentPage >= boundsSize ) {
setCurrentItem ( boundsSize - NUMBER0 ) ;
+ return ;
}
final int countMinusOne = count - NUMBER0 ; | Don t draw the current state if we are forcing another invalidation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SQLTransportExecutor {
}
return executeAndConvertResult ( preparedStatement ) ;
}
+ } catch ( PSQLException e ) {
... | Improve PSQLException SQLActionException conversion |
<nb> public class CsvSummaryExportFormatter implements ISummaryExportFormatter {
private String separator = STRING0 ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ override
public String formatLine ( String tag , String value , String units ) {
<nb> public class OSXSupport {
COMMENT
COMMENT
- COMMENT ... | remove javadoc warnings |
<nb> public class ExecuteQueryPersistentMethod extends AbstractStaticPersistentMethod
}
if ( queryMetaParams . containsKey ( GrailsHibernateUtil . ARGUMENT_TIMEOUT ) ) {
Integer timeoutParam = converter . convertIfNecessary ( queryMetaParams . get ( GrailsHibernateUtil . ARGUMENT_TIMEOUT ) , Integer . class ) ;
... | fixed small copy paste mistake |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface World {
public Boat spawnBoat ( Location loc ) ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Added spawnCreature Location CreatureType |
<nb> public class WelcomeFragmentSignIn extends NewAccountAbstractPageFragment implem
private class SetupBlogTask extends AsyncTask < Void , Void , List < Object > > {
private SetupBlog mSetupBlog ;
private int mErrorMsgId ;
- private boolean isSelfHostedBlog ;
private void setHttpCredentials ( String usern... | Removing unnecessary isSelfHostedBlog boolean |
<nb> public class Read extends Activity {
if ( WordPress . wpDB == null )
WordPress . wpDB = new WordPressDB ( this ) ;
+ if ( WordPress . currentBlog == null ) {
+ WordPress . currentBlog = new Blog ( WordPress . wpDB . getLastBlogID ( this ) , this ) ;
+ }
if ( loadReader ) { | Add current blog fix to Read java |
<nb> public class OsmandRenderer {
}
protected void drawBitmap ( Canvas cv , Bitmap ico , RectF rf ) {
+ if ( ico == null ) {
+ return ;
+ }
cv . drawBitmap ( ico , rf . left , rf . top , paintIcon ) ;
}
protected void drawBitmap ( Canvas cv , Bitmap ico , RectF rf , Rect src ) {
+ if ( ico == nul... | Fix java renderer |
<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 ... | Always stop the daemon in DaemonMain |
<nb> final class Inflate {
r = f ;
z . avail_in -- ;
z . total_in ++ ;
- } while ( z . next_in [ z . next_in_index ++ ] == NUMBER0 ) ;
+ } while ( z . next_in [ z . next_in_index ++ ] != NUMBER0 ) ;
}
z . istate . mode = GZIP_FCOMMENT ;
case GZIP_FCOMMENT :
<nb> final class Inflate {
r = f ;
z . a... | Fixed a bug where FNAME and FCOMMENT fields are not decoded correctly |
<nb> public class PojoUtils {
if ( f . getType ( ) . isAssignableFrom ( FrameV3 . ColSpecifierV3 . class ) ) {
setField ( o , key , new FrameV3 . ColSpecifierV3 ( ( String ) value ) ) ;
+ } else if ( KeyV3 . class . isAssignableFrom ( f . getType ( ) ) ) {
+ setField ( o , key , KeyV3 . make ( ( Class < ? ext... | allow POST of Keys |
<nb> public class ContactIcqImpl
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
ContactIcqImpl ( Buddy buddy ,
ServerStoredContactListIcqImpl ssclCallback ,
- boolean isPersistent )
+ boolean isPersistent ,
+ boolean isResolved )
{
this . joustSimBuddy = buddy ;
this . isLocal = isLocal... | Added a setResolved method for resolving contacts |
<nb> public abstract class Editor extends JFrame implements RunnerListener {
SINGLE
SINGLE
SINGLE
-
+ boolean openedFile = false ;
+ if ( ( ( Path ) e . context ( ) ) . getFileName ( ) . toString ( ) . startsWith ( STRING0 ) ) {
+ openedFile = true ;
+ }
+ if ( ! openedFile ) {
+ for ( SketchCode ... | Modified the change detection to only prompt for a reload if the changed |
<nb> public class BatchInserterImpl implements BatchInserter
graphDbService . clearCaches ( ) ;
neoStore . close ( ) ;
msgLog . logMessage ( Thread . currentThread ( ) + STRING0 + this + STRING1 , true ) ;
+ StringLogger . close ( storeDir ) ;
}
private Map < Object , Object > getDefaultParams ( )
<nb> ... | Closes messages log on shutdown |
<nb> public class Solo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> class ViewFetcher {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public int getCurrenButtonsCount ( ) { | Clarified javadoc for getCurrentButtonsCount in Solo and ViewFetcher |
<nb> public class TestModelSerialization
assertEquals ( ( int ) ModelUtils . MODEL_SERIALIZATION_IDS . get ( FeatureVectorUnitNormalizer . class ) , NUMBER0 ) ;
assertEquals ( ( int ) ModelUtils . MODEL_SERIALIZATION_IDS . get ( ClassifierFeatureTransformer . class ) , NUMBER1 ) ;
assertEquals ( ( int ) ModelUtil... | Add serialization id test for unit normalizer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class ShadowMediaPlayer {
@ implementation
public static MediaPlayer create ( Cont... | Fix test breakage |
<nb> public abstract class AbstractHttp11Processor < S > extends AbstractProcessor < S > {
request . getReadListener ( ) != null ) {
try {
try {
- if ( inputBuffer . available ( ) > NUMBER0 || inputBuffer . nbRead ( ) > NUMBER0 ) {
+ if ( inputBuffer . available ( ) > NUMBER0 || inputBuffer . nbRead ( ) > NUM... | Fix non blocking test failures on OSX when using APR |
<nb> public class Groovyc extends MatchingTask {
private List < File > temporaryFiles = new ArrayList < File > ( NUMBER0 ) ;
private File stubDir ;
private boolean keepStubs ;
+ private boolean useIndy ;
private Set < String > scriptExtensions = new LinkedHashSet < String > ( ) ;
<nb> public class Groov... | add a indy flag to groovyc not wired up yet |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AnnotationAttributeChildLink extends PsiChildLink < PsiAnnotation , Ps
public PsiAnnotationMemberValue findLinkedChild ( @ nullable PsiAnnotation psiAnnotation ) {
if ( psiAnnotation == null ) return null ;
- psiAnnotation ... | remove obsolete psiAnnotation getText calls Stubs now |
<nb> public interface PsiModificationTracker extends ModificationTracker {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
Key OUT_OF_CODE_BLOCK_MODIFICATION_COUNT = Key . create ( STRING0 ) ; | update PsiModificationTracker OUT_OF_CODE_BLOCK_MODIFICATION_COUNT javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
public class ActorToolbar extends Toolbar {
public ActorToolbar ( Context context , AttributeSet attrs , int defStyleAttr ) {
<nb> public class ActorToolbar extends Toolbar {
( ( ImageButton ) v ) . getDrawable ( ) ... | Fix white avatars in ToolBar |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- public class AvoidEscapedUnicodeCharactersCheckTest extends BaseCheckTestSupport {
+ public class AvoidEscapedUnicodeCharactersTest extends BaseCheckTestSupport {
private static ConfigurationBuilder builder ; | unified test file names |
<nb> class ZoomManager {
private int mInitialScrollY ;
private long mZoomStart ;
- private static final int ZOOM_ANIMATION_LENGTH = NUMBER0 ;
+ private static final int ZOOM_ANIMATION_LENGTH = NUMBER1 ;
SINGLE
private boolean mSupportMultiTouch ; | Shorten the animation length to make it snappier |
<nb> public class JavaScriptCompressor {
SINGLE
SINGLE
globalScope . declareIdentifier ( symbol ) ;
- warn ( STRING0 + symbol , true ) ;
+ SINGLE
}
} else { | removed the other undeclared identifier warning |
<nb> public class FastJSONDatabind
public T deserialize ( byte [ ] array ) throws Exception
{
SINGLE
- return JSON . parseObject ( array , type ) ;
+ return ( T ) JSON . parseObject ( array , type ) ;
}
public byte [ ] serialize ( T data ) throws IOException | fix a compilation error |
<nb> public class SearchView extends LinearLayout {
invalidate ( ) ;
}
updateVoiceButton ( ! hasText ) ;
- updateViewsVisibility ( mIconifiedByDefault ) ;
+ updateCloseButton ( ) ;
if ( mOnQueryChangeListener != null ) {
mOnQueryChangeListener . onQueryTextChanged ( newText . toString ( ) ) ;
} | Fix SearchView collapse on text input |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
class ArchiveExtractionException extends Exception {
ArchiveExtractionException ( String message , Throwable cause ) {
<nb> final class DefaultArchiveExtractor implements ArchiveExtractor {
if ( ! des... | Check write permissions on node destination folder |
<nb> public class EvalTest {
. seed ( NUMBER0 )
. learningRate ( FLOAT0 )
. nIn ( NUMBER1 ) . nOut ( NUMBER2 )
- . layer ( new org . deeplearning4j . nn . conf . layers . OutputLayer ( ) ) . build ( ) ;
+ . layer ( new org . deeplearning4j . nn . conf . layers . OutputLayer . Builder ( LossFunctions . LossFun... | update eval test to new api |
<nb> public interface ClassFileLocator extends Closeable {
COMMENT
COMMENT
COMMENT
+ @ suppressfbwarnings ( value = STRING0 , justification = STRING1 )
public static ClassFileLocator ofBootLayer ( ) {
try {
Map < String , ClassFileLocator > bootModules = new HashMap < String , ClassFileLocator > ( ) ; | Added hint for findbugs |
<nb> public class ControlFlowBuilder {
pending . add ( i , Pair . create ( pendingScope , instruction ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void checkPending ( @ notnull final Instruction instruction ) {
final PsiElement element = instruction . getElement ( ) ;
if ( elem... | Added some javadocs |
<nb> public class WebView extends AbsoluteLayout
}
}
SINGLE
- if ( mTouchMode == TOUCH_INIT_MODE
- || mTouchMode == TOUCH_DOUBLE_TAP_MODE ) {
+ if ( ! mSelectingText && ( mTouchMode == TOUCH_INIT_MODE
+ || mTouchMode == TOUCH_DOUBLE_TAP_MODE ) ) {
mPrivateHandler . sendEmptyMessageDelayed (
SWITCH_TO_... | don t start long press when selecting text |
<nb> public class ContentPanelEditor extends BaseValueEditor < Control > implements IVal
}
} catch ( Exception e ) {
log . error ( e ) ;
+ SINGLE
+ if ( control instanceof Text ) {
+ ( ( Text ) control ) . setText ( STRING0 ) ;
+ } else if ( control instanceof HexEditControl ) {
+ ( ( HexEditControl ) c... | Reset content viewer on value read error |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> publ... | Fix assertion in flaky GraphDatabaseServiceTest |
<nb> public final class ReplicationStream extends ObjectInputStream {
protected Class < ? > resolveProxyClass ( String [ ] interfaces )
throws IOException , ClassNotFoundException {
- ClassLoader latestLoader = ( classLoaders != null && classLoaders . length == NUMBER0 ) ? null : classLoaders [ NUMBER0 ] ;
+ ... | Fix potential NPE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CompileEnvironmentUtil {
if ( jdkAnnotationsPath != null ) {
configuration . add ( JVMConfigurationKeys . ANNOTATIONS_PATH_... | Passing sources via compiler configuration on analyzing module script |
<nb> public final class CompileTask
this . warningLevel . setOptionsForWarningLevel ( options ) ;
options . setManageClosureDependencies ( manageDependencies ) ;
+ options . setTrustedStrings ( true ) ;
if ( replaceProperties ) {
convertPropertiesMap ( options ) ; | Add options setTrustedStrings true to ant jscomp |
<nb> public class ItemDescriptionFragment extends SherlockFragment {
@ override
public void onAttach ( Activity activity ) {
super . onAttach ( activity ) ;
- if ( webViewLoader == null ) {
+ if ( webViewLoader == null && item != null ) {
webViewLoader = createLoader ( ) ;
webViewLoader . execute ( ) ;
... | Fixed possible crash when loading description |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class GwtPlatform {
private GwtPlatform ( ) { }
public static < T > T [ ] clone ( T [ ] array ) {
- return ( T [ ] ) Array . clone ( array ) ;
+ return ( T [ ] ) Arrays... | Fix guava test breakage due to GWT internal changes |
<nb> public class StatementGenerator extends TreeVisitor {
printBlockPreExpression ( methodBinding , returnType ) ;
buffer . append ( nameTable . getSpecificObjCType ( returnType ) ) ;
buffer . append ( STRING0 ) ;
- buffer . append ( Options . getLanguage ( ) == Options . OutputLanguageOption . OBJECTIVE_CPLUS... | Fixed line length from previous commit |
<nb> public class SshDaemon {
gitblit . getBaseFolder ( ) , HOST_KEY_STORE ) . getPath ( ) ) ) ;
sshd . setPublickeyAuthenticator ( publickeyAuthenticator ) ;
sshd . setPasswordAuthenticator ( new SshPasswordAuthenticator ( gitblit ) ) ;
- sshd . setSessionFactory ( new SshSessionFactory ( idGenerator ) ) ;
+... | Remove unused idGenerator from the SshSessionFactory |
<nb> public abstract class HttpSender implements AsyncContentProvider . Listener
sendContent ( exchange , content , this ) ;
return Action . SCHEDULED ;
}
- else if ( consumed )
- {
- sendContent ( exchange , content , lastCallback ) ;
- return Action . IDLE ;
- }
- else
- {
- throw new IllegalSta... | Removed code that should never run and replaced it wil IllegalStateException |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.