diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class StanfordCoreNLP extends AnnotationPipeline {
}
public boolean getPrintSingletons ( ) {
- return PropertiesUtils . getBool ( properties , STRING0 , false ) ;
+ return PropertiesUtils . getBool ( properties , STRING0 , false ) ;
}
-
+
public static boolean isXMLOutputPresent ( ) {
... | Make method static |
<nb> public class AceEditor implements DocDisplay ,
boolean addToHistory ,
boolean highlightLine )
{
+ SINGLE
+ Position previousCursorPos = getCursorPosition ( ) ;
+
SINGLE
Position position = Position . create ( srcPosition . getRow ( ) ,
srcPosition . getColumn ( ) ) ;
<nb> public class AceEditor... | don t auto scroll navigations if the cursor is staying on the same line |
<nb> import NAMESPACE ;
public class GeoIntentActivity extends OsmandListActivity {
- private static final String TAG = STRING0 ;
private ProgressDialog progressDlg ;
private LatLon location ; | Removed unnecessary tag |
<nb> public class ShareFileFragment extends Fragment
SINGLE
private void getShares ( ) {
- mShares = new ArrayList < OCShare > ( ) ;
-
SINGLE
FileDataStorageManager fileDataStorageManager =
new FileDataStorageManager ( mAccount , getActivity ( ) . getContentResolver ( ) ) ; | Removed redundant ArrayList creation |
<nb> public class CordovaWebView extends WebView {
SINGLE
if ( android . os . Build . VERSION . SDK_INT < android . os . Build . VERSION_CODES . HONEYCOMB )
settings . setNavDump ( true ) ;
+
+ SINGLE
+ SINGLE
+ if ( android . os . Build . VERSION . SDK_INT > android . os . Build . VERSION_CODES . ICE_CRE... | Specifying Jellybean means that we have to override the default CORS policy |
<nb> public class PreviewParseWriter extends Iced implements ParseWriter {
SINGLE
if ( _domains [ i ] . size ( ) <= NUMBER0
- && ( _nnums [ i ] + _nstrings [ i ] + _nzeros [ i ] ) > _ndates [ i ] + _nUUID [ i ] ) {
+ && ( _nnums [ i ] + _nzeros [ i ] ) > _ndates [ i ] + _nUUID [ i ] ) {
types [ i ] = Vec . ... | Changes parse setup guess when encountering large NA counts to not favor numeric over dates or UUIDs |
<nb> public class SunlightRegenBatchPropagator implements BatchPropagator {
int initialDepth = Math . max ( ChunkConstants . SUNLIGHT_REGEN_THRESHOLD - start , NUMBER0 ) ;
int finalDepth = depth [ depthIndex ] ;
- int strength = start + initialDepth - ChunkConstants . SUNLIGHT_REGEN_THRESHOLD + NUMBER1 ;
+ in... | Fix bug with cap of sunlight |
<nb> public class ServerQueryExecutorV1Impl implements QueryExecutor {
LOGGER . error ( e . getMessage ( ) ) ;
instanceResponse = null ;
} finally {
- SINGLE
- SINGLE
+ _instanceDataManager . getResourceDataManager ( instanceRequest . getQuery ( ) . getQuerySource ( ) . getResourceName ( ) )
+ . returnSeg... | Remove local directory bootstrap process |
<nb> public class GeneralCommands {
max = - NUMBER0
)
@ commandpermissions ( STRING0 )
- public void mask ( CommandContext args , LocalSession session , LocalPlayer player ,
+ public void gmask ( CommandContext args , LocalSession session , LocalPlayer player ,
EditSession editSession ) throws WorldEditExce... | Gave the function containing the code for the gmask command a better name |
<nb> public class MessagesController extends AuthenticatedController {
public Result show ( String index , String id ) {
try {
MessageResult message = messagesService . getMessage ( index , id ) ;
+ message = FieldMapper . run ( message ) ;
Node sourceNode = getSourceNode ( message ) ;
Radio sourceRadio = g... | run fieldmappers on non partial message view too |
<nb> public class LightProbe extends Light implements Savable {
public String toString ( ) {
return STRING0 + position ;
}
+
+ @ override
+ public boolean intersectsSphere ( BoundingSphere sphere , TempVars vars ) {
+ return getBounds ( ) . intersectsSphere ( sphere ) ;
+ } | Implemented intersectBoundingBox for LightProbe |
<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 ;
<nb> public class ExtMergeFiles ... | add dummy progress before dialog in external tool dialog |
<nb> public class SplitFrameModel extends Model < SplitFrameModel , SplitFrameModel . Split
public static class SplitFrameParameters extends Model . Parameters {
COMMENT
- double [ ] _ratios = new double [ ] { FLOAT0 } ;
+ public double [ ] _ratios = new double [ ] { FLOAT0 } ;
COMMENT
- Key [ ] _destKeys... | Make attributes public |
<nb> public class PluginManagerIT extends ESIntegTestCase {
PluginManager . checkForOfficialPlugins ( STRING0 ) ;
PluginManager . checkForOfficialPlugins ( STRING1 ) ;
PluginManager . checkForOfficialPlugins ( STRING2 ) ;
+ PluginManager . checkForOfficialPlugins ( STRING3 ) ;
try {
PluginManager . checkF... | TEST Add discovery multicast to PluginManagerIT |
<nb> public class DeclaredGlobalExternsOnWindowTest extends CompilerTestCase {
@ override
protected void setUp ( ) {
allowExternsChanges ( true ) ;
+ enableTypeCheck ( CheckLevel . ERROR ) ;
+ runTypeCheckAfterProcessing = true ;
}
@ override
<nb> public class DeclaredGlobalExternsOnWindowTest extends... | Slightly simplify DeclaredGlobalExternsOnWindow unit tests |
<nb> public abstract class AxisBase extends ComponentBase {
COMMENT
COMMENT
+ public float getAxisMaximum ( ) {
+ return mAxisMaximum ;
+ }
+
+ public float getAxisMinimum ( ) {
+ return mAxisMinimum ;
+ }
+
COMMENT
COMMENT
COMMENT | Add methods for getting axis min and max value |
<nb> public class DatabaseTransferConsumer implements IDataTransferConsumer < DatabaseC
private void insertBatch ( boolean force ) throws DBCException
{
boolean needCommit = force || ( ( rowsExported % settings . getCommitAfterRows ( ) ) == NUMBER0 ) ;
- if ( needCommit ) {
+ if ( needCommit && executeBatch !... | Data transfer NPE fix |
<nb> public class JobClient {
logErrorAndRethrow ( StringUtils . stringifyException ( e ) ) ;
}
+ final long start = System . currentTimeMillis ( ) ;
+
while ( true ) {
if ( Thread . interrupted ( ) ) {
<nb> public class JobClient {
final JobStatus jobStatus = jobEvent . getCurrentJobStatus ( ) ;
... | Modified Nephele job client to show overall job duration after job has successfully finished |
<nb> import NAMESPACE ;
COMMENT
public class PythonInspectionsTest extends InspectionTestCase {
public void testReturnValueFromInit ( ) throws Exception {
+ final JythonManager manager = JythonManager . getInstance ( ) ;
+ manager . execScriptFromResource ( STRING0 ) ; SINGLE
doTest ( getTestName ( true ) ,... | Reintroduced test setup that got lost during PythonPyInspectionToolProvider refactoring |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ path ( STRING0 )
@ api ( hidden = true , value = STRING0 , description = STRING1 , position = NUMBER0 )
@ produces ( STRING2 )
public class OwnerResource {
<nb> public class OwnerResource {
}
@ get
+ @ path ( STRING3 )
@ produce... | fixed path to avoid double owner |
<nb> public class ClickListener extends InputListener {
private int tapCount ;
private long lastTapTime ;
+ public ClickListener ( ) {
+ }
+
+ public ClickListener ( int button ) {
+ this . button = button ;
+ }
+
public boolean touchDown ( InputEvent event , float x , float y , int pointer , int ... | ClickListener added ctor for specific button click |
<nb> public class BuildableTextureAtlas < S extends ITextureAtlasSource , T extends ITex
@ override
@ deprecated
public void addTextureAtlasSource ( final S pTextureAtlasSource , final int pTextureX , final int pTextureY , final int pTextureAtlasSourcePadding ) {
- this . addTextureAtlasSource ( pTextureAtlasSo... | Fixed infinite recursion discovered by findbugs |
<nb> public class NotificationService {
mList . add ( message ) ;
notifications . put ( conversationUuid , mList ) ;
}
- updateNotification ( ! ( this . mIsInForeground && this . mOpenConversation == null ) || ! isScreenOn ) ;
+ updateNotification ( ! ( this . mIsInForeground && this . mOpenConversation == nu... | fixed possible npe |
<nb> public class UserFunctionalTest {
output . write ( content ) ;
}
finally {
- if ( output != null ) {
+ if ( output != null ) {
output . close ( ) ;
}
} | Added whitespace to stick to code style guide |
<nb> public class OpenHandler extends AbstractDataSourceHandler {
DBeaverCore . getInstance ( ) . getProjectRegistry ( ) . getActiveProject ( ) ;
final DBPDataSourceContainer [ ] containerList = containers . toArray ( new DBPDataSourceContainer [ containers . size ( ) ] ) ;
- final IFolder rootFolder = Resource... | Force create root SQL scripts folder on editor open |
<nb> final class ActivityStack {
if ( r . app == app ) {
Slog . w ( TAG , STRING0
+ r . intent . getComponent ( ) . flattenToShortString ( ) ) ;
- finishActivityLocked ( r , Activity . RESULT_CANCELED , null , STRING1 , false ) ;
+ SINGLE
+ r . app = null ;
+ finishCurrentActivityLocked ( r , FINISH_IMMED... | Finish crashed activities immediately |
<nb> public class AudioService extends IAudioService . Stub {
COMMENT
COMMENT
COMMENT
- private static final int [ ] STEAM_VOLUME_OPS = new int [ ] {
+ private static final int [ ] STREAM_VOLUME_OPS = new int [ ] {
AppOpsManager . OP_AUDIO_VOICE_VOLUME , SINGLE
AppOpsManager . OP_AUDIO_MEDIA_VOLUME , SING... | Fix typo in constant |
<nb> public class DexBuffer {
int stringDataOffset = readSmallUint ( stringOffset ) ;
DexReader reader = readerAt ( stringDataOffset ) ;
int utf16Length = reader . readSmallUleb128 ( ) ;
- return Utf8Utils . utf8BytesToString ( buf , reader . getOffset ( ) , utf16Length ) ;
+ return Utf8Utils . utf8BytesWithU... | Use the correct method when decoding strings |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CursorToMessage {
do {
final Map < String , String > msgMap = new HashMap < String , String > ( columns . length ) ;
for ... | Handle BLOB string conversion exception |
<nb> public class ESQueryBuilder {
raiseUnsupported ( function ) ;
}
- assert left . symbolType ( ) == SymbolType . REFERENCE ;
+ assert left . symbolType ( ) == SymbolType . REFERENCE || left . symbolType ( ) == SymbolType . DYNAMIC_REFERENCE ;
Object value ; | allow dynamic refs in match |
<nb> public class CompactionMetrics implements CompactionManager . CompactionExecutorSt
for ( CompactionInfo . Holder compaction : compactions )
{
CFMetaData metaData = compaction . getCompactionInfo ( ) . getCFMetaData ( ) ;
+ if ( metaData == null )
+ {
+ continue ;
+ }
if ( ! resultMap . containsKey ... | Fix non fatal NPE in CompactionMetrics |
<nb> public abstract class ElementBase extends UserDataHolderBase implements Iconable
layersFromProviders . add ( layerIcon ) ;
}
}
- if ( flags != NUMBER0 ) {
+ if ( flags != NUMBER0 || ! layersFromProviders . isEmpty ( ) ) {
List < Icon > iconLayers = new SmartList < Icon > ( ) ;
for ( IconLayer l : our... | change the fix to what was actually meant |
<nb> public class ConfusionTask extends MRTask {
if ( _classWt != null ) SINGLE
for ( int v = NUMBER0 ; v < _N ; v ++ ) vi [ v ] = ( int ) ( vi [ v ] * _classWt [ v ] ) ;
int result = Model . getPrediction ( vi , ties , row ) ; SINGLE
- if ( vi [ result ] == NUMBER0 ) { cm . _skippedRows ++ ; System . err . pri... | Remove debug print |
<nb> public class SearchThread extends Thread {
}
List < Integer > list = Model . getSingleton ( ) . getDb ( ) . getTableHistory ( ) . getHistoryIdsOfHistType ( session . getSessionId ( ) ,
- HistoryReference . TYPE_PROXIED , HistoryReference . TYPE_ZAP_USER , HistoryReference . TYPE_SPIDER ) ;
+ HistoryRefer... | Change SearchThread to include the type of AJAX spider requests |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ContentFilterPlugin implements Plugin , PacketInterceptor {
this . violationIncludeOriginalPacketEnabled ) ;
}
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
s... | added date to email and user to subject as per feature request from jamest |
<nb> public abstract class AbstractMessagingTemplate < D > extends AbstractMessageSendin
public < T > T convertSendAndReceive ( D destination , Object request , Map < String , Object > headers ,
Class < T > targetClass ) {
- return this . convertSendAndReceive ( destination , request , null ) ;
+ MessagePostP... | Fix issue in AbstractMessagingTemplate |
<nb> public interface ReadableInstant extends Comparable {
COMMENT
COMMENT
COMMENT
- public ReadableInstant withDateTimeZoneMoved ( DateTimeZone newDateTimeZone ) ;
+ ReadableInstant withDateTimeZoneMoved ( DateTimeZone newDateTimeZone ) ;
SINGLE
COMMENT | Remove public modifier on method |
<nb> public class Fields implements Iterable < Fields . Field >
private final String name ;
private final String [ ] values ;
- private Field ( String name , String value )
+ public Field ( String name , String value )
{
this ( name , new String [ ] { value } ) ;
} | Made Fields Field constructor public |
<nb> import NAMESPACE
import NAMESPACE ;
SINGLE
- public class ParseTreeBuilder {
+ public final class ParseTreeBuilder {
private static final String LINE_SEPARATOR = System . getProperty ( STRING0 ) ;
+ private ParseTreeBuilder ( ) {
+ }
+
public static ParseTree treeOneSimpleHtmlTag ( ) {
Java... | Add private constructor to test utility class |
<nb> public class DBPortPool extends SimplePool < DBPort > {
}
MBeanServerFactory . getMBeanServer ( ) . registerMBean ( p , on ) ;
} catch ( JMException e ) {
- Bytes . LOGGER . log ( Level . WARNING , STRING0 + e + STRING1 ) ;
+ Bytes . LOGGER . log ( Level . WARNING , STRING2 + e +
+ STRING3 +
+ STRING... | Updated exception error message for JMX registration to point people to MongoOptions alwaysUseMBeans property |
<nb> public class ExtensionAlert extends ExtensionAdaptor implements SessionChangedLi
private void addAlertToTree ( final Alert alert , final HistoryReference ref , final HttpMessage msg ) {
- if ( ! View . isInitialised ( ) || Constant . isLowMemoryOptionSet ( ) ) {
+ if ( Constant . isLowMemoryOptionSet ( )... | Correct a check that prevents the alerts from being added to the report |
<nb> public abstract class AbstractBlockChain {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public final void addNewBestBlockListener ( Executor executor , final NewBestBlockListener listener ) {
newBestBlockListeners . add ( new ListenerRegistration < NewBestBlockListener > ( executor , listener ) ) ;
}
... | Fix AbstractBlockChain comments |
<nb> public class DistTest
}
@ test
+ @ ignore
public void testLikeDistro_SetupDemoBase ( ) throws Exception
{
File basePath = testdir . getEmptyDir ( ) ; | Ignoring failing test |
<nb> public class ImageLoader implements Runnable {
private static final int DEFAULT_POOL_SIZE = NUMBER0 ;
- static final int HANDLER_MESSAGE_ID = NUMBER1 ;
+ public static final int HANDLER_MESSAGE_ID = NUMBER1 ;
- static final String BITMAP_EXTRA = STRING0 ;
+ public static final String BITMAP_EXTRA =... | give public access to a couple fields |
<nb> class ActivityStarter {
. getSystemService ( Context . KEYGUARD_SERVICE ) ;
final Intent credential =
km . createConfirmDeviceCredentialIntent ( null , null , userId ) ;
+ SINGLE
+ if ( credential == null ) {
+ return ;
+ }
final ActivityRecord activityRecord = targetStack . topRunningActivityLocke... | Should check isDeviceSecure in shouldConfirmCredentials |
<nb> public class WordPress extends Application {
}
versionName = PackageUtils . getVersionName ( this ) ;
- HelpshiftHelper . init ( this ) ;
initWpDb ( ) ;
enableHttpResponseCache ( mContext ) ; | noticed we were calling HelpshiftHelper init twice |
<nb> public class RmiRegistry {
}
public Object invoke ( short procId , Object [ ] args ) {
+ if ( log . isLoggable ( Level . FINEST ) ) {
+ log . finest ( STRING0 + classInfo . getMethod ( procId )
+ + STRING1 + object
+ + STRING2 + ( args == null ? STRING3 : Arrays . asList ( args ) ) ) ;
+ }
return... | Added some additional finest logging |
<nb> public class ByteBufferUtil
if ( buffer . hasArray ( ) )
{
int boff = buffer . arrayOffset ( ) + buffer . position ( ) ;
- if ( boff == NUMBER0 && length == buffer . array ( ) . length )
- return buffer . array ( ) ;
- else
- return Arrays . copyOfRange ( buffer . array ( ) , boff , boff + length ) ;... | Always make a copy in BBU getArray |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ImageLoader {
HttpURLConnection conn = ( HttpURLConnection ) new URL ( imageUrl ) . openConnectio... | Speed up image downloading |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PsiToDocumentSynchronizer extends PsiTreeChangeAdapter {
end -- ;
}
+ SINGL... | Document update correctly updates XML text |
<nb> public class DocumentationManager extends DockablePopupManager < DocumentationComp
SINGLE
}
- storeOriginalElement ( project , originalElement , element ) ;
-
final PopupUpdateProcessor updateProcessor = new PopupUpdateProcessor ( project ) {
@ override
public void updatePopup ( Object lookupIteObj... | always store original element before showing the popup |
<nb> public class Solo {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> class TextEnterer {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarified javadoc for the enterText method in Solo and TextEnterer |
<nb> class RunConfigurable extends BaseConfigurable {
SingleConfigurationConfigurable . editSettings ( settings , null ) ;
installUpdateListeners ( configurationConfigurable ) ;
DefaultMutableTreeNode nodeToAdd = new DefaultMutableTreeNode ( configurationConfigurable ) ;
- myTreeModel . insertNodeInto ( nodeToA... | Allow sort configurations under type or folder node Exception fix |
<nb> public class AppCompiler {
this . classCompiler = new ClassCompiler ( config ) ;
this . linker = new Linker ( config ) ;
}
-
+
+ public Config getConfig ( ) {
+ return config ;
+ }
+
COMMENT
COMMENT
COMMENT | Added a getter for the current config to AppCompiler |
<nb> public class ShadowTextView extends ShadowView {
sendOnTextChanged ( oldValue ) ;
sendAfterTextChanged ( ) ;
}
+
+ @ implementation
+ public final void append ( CharSequence text ) {
+ CharSequence oldValue = this . text ;
+ StringBuffer sb = new StringBuffer ( this . text ) ;
+ sb . append ( tex... | Add implementation of append method to ShadowTextView |
<nb> public class FloatingToolbar extends LinearLayoutCompat implements View . OnClickL
return mCustomView ;
}
+ public Menu getMenu ( ) {
+ return mMenu ;
+ }
+
public void setCustomView ( View view ) {
removeAllViews ( ) ;
mCustomView = view ;
<nb> public class MainActivity extends AppCompatActi... | Add getMenu to allow dynamic changes |
<nb> public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzerEx implements Pers
myProject . getMessageBus ( ) . syncPublisher ( DAEMON_EVENT_TOPIC ) . daemonFinished ( ) ;
}
} ;
+ progress . setModalityProgress ( null ) ;
progress . start ( ) ;
myUpdateProgress = progress ;
return progress ; | Set modality state of the newly created daemon indicator to the current modality state |
<nb> public class TagViewActivity extends TaskListActivity implements OnTabChangeList
protected static final int REQUEST_ACTFM_LOGIN = NUMBER0 ;
private static final String MEMBERS_IN_PROGRESS = STRING0 ; SINGLE
+ private static final String TAB_IN_PROGRESS = STRING1 ; SINGLE
private TagData tagData ;
<... | Save tab on rotate |
<nb> public class TicketNotifier {
SINGLE
UserModel lastAuthor = userManager . getUserModel ( lastChange . author ) ;
- if ( ! lastAuthor . getPreferences ( ) . isEmailMeOnMyTicketChanges ( ) ) {
+ if ( lastAuthor != null && ! lastAuthor . getPreferences ( ) . isEmailMeOnMyTicketChanges ( ) ) {
toAddresses ... | Fix potential NPE when excluding last change author |
<nb> public class YUICompressor {
if ( inputFilename . equals ( STRING0 ) ) {
in = new InputStreamReader ( System . in , charset ) ;
+ type = typeOverride ;
} else { | Fix option parsing when piping data in via stdin |
<nb> package 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 NAMESPACE ;
public class AeronThroughput
... | Removed unused import |
<nb> final class ActivityStack {
SINGLE
if ( DEBUG_VISBILITY ) Slog . v ( TAG , STRING0 + r ) ;
behindFullscreen = true ;
- } else if ( task . mOnTopOfHome ) {
+ } else if ( task . mActivities . indexOf ( r ) == NUMBER0 && task . mOnTopOfHome ) {
if ( DEBUG_VISBILITY ) Slog . v ( TAG , STRING1 + r ) ;
sho... | Only show launcher for the bottom activity in a task |
<nb> public abstract class AbstractAuthenticationManager implements AuthenticationMan
addAuthenticationMethodAttribute ( builder , authentication ) ;
- logger . info ( STRING0 ,
+ logger . info ( STRING1 ,
principal . getId ( ) , principal . getAttributes ( ) , transaction . getCredentials ( ) ) ;
populat... | Fixed javadoc issues |
<nb> public abstract class AbstractViolationReporter
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public final void setId ( final String aId ) | fixed typo in javadoc |
<nb> public class Viewport {
}
mCompleteRange . right = d ;
- if ( ! mYAxisBoundsManual ) {
- d = series . get ( NUMBER0 ) . getLowestValueY ( ) ;
- for ( Series s : series ) {
- if ( ! s . isEmpty ( ) && d > s . getLowestValueY ( ) ) {
- d = s . getLowestValueY ( ) ;
- }
+ d = series . get ( NUMBER... | fixed issue with calc the complete range with some side effects |
<nb> public class AttachmentProvider extends ContentProvider {
return null ;
}
+ if ( attachmentInfo == null ) {
+ if ( K9 . DEBUG ) {
+ Log . d ( K9 . LOG_TAG , STRING0 + id ) ;
+ }
+ return null ;
+ }
+
MatrixCursor ret = new MatrixCursor ( columnNames ) ;
Object [ ] values = new Object [ colu... | Avoid NullPointerException reported via Play Store |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb> public class PasswordPolicyControlFactory extends ControlFactory {
return null ;
}
} ... | Added Acegi license |
<nb>
package NAMESPACE ;
COMMENT
+ # import " NAMESPACE / lang / NumberFormatException . h STRING0 java / lang / NumberFormatException . h "
+
SINGLE
# define SINGLE_EXPONENT_MASK NUMBER0
# define SINGLE_MANTISSA_MASK NUMBER1
<nb> public final class Float extends Number implements Comparable < Float >... | Throw NumberFormatException when parsing bad float and double strings |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
public enum Stage
{
<nb>
package NAMESP... | add missing license headers |
<nb> public class WebSocketClientHandshaker10 extends WebSocketClientHandshaker {
private String expectedChallengeResponseString = null ;
- private final String protocol = null ;
+ private static final String protocol = null ;
private boolean allowExtensions = false ; | Make fields static where possible |
<nb> public final class Spdy3ConnectionTest {
assertEquals ( NUMBER0 , ping . payload1 ) ;
}
-
@ test public void receiveGoAway ( ) throws Exception {
peer . setVariantAndClient ( SPDY3 , false ) ;
SINGLE
peer . acceptFrame ( ) ; SINGLE
peer . acceptFrame ( ) ; SINGLE
+ peer . acceptFrame ( ) ; SI... | Fix flaky test Spdy3ConnectionTest receiveGoAway |
<nb> public class WebView extends AbsoluteLayout
}
private static synchronized WebViewFactoryProvider getFactory ( ) {
- SINGLE
- SINGLE
- checkThread ( ) ;
return WebViewFactory . getProvider ( ) ;
} | Remove checkThread in WebView getFactory |
<nb> public class StorageProxy implements StorageProxyMBean
throw new RuntimeException ( e ) ;
}
rows . addAll ( theseRows ) ;
+ if ( logger . isDebugEnabled ( ) )
+ {
+ for ( Row row : theseRows )
+ logger . debug ( STRING0 + row ) ;
+ }
if ( rows . size ( ) >= index_clause . count )
return rows . ... | add coordinator result debug logging for index scans |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
mResurrectToPosition = mSelectedPosition ;
}
} else {
- if ( mFiltered ) {
+ if ( mFiltered && ! mPopupHidden ) {
SINGLE
showPopup ( ) ;
}
<nb> public abstract class AbsListView extends AdapterView < ListAdapter >... | Fix ListView filter popups when window focus changes |
<nb> public class SignificantTermsBackwardCompatibilityTests extends ElasticsearchBac
}
private void index01Docs ( String type , String settings ) throws ExecutionException , InterruptedException {
- String mappings = STRING0 + type + STRING1 ;
+ String mappings = STRING2 + TEXT_FIELD + STRING3 + type + STRIN... | TEST explicitly map fields in SignificantTermsBWCTests |
<nb> public class ShowGraph extends PApplet implements MouseWheelListener {
if ( e == null )
continue ;
- if ( mode . isTransit ( ) ) {
+ if ( mode != null && mode . isTransit ( ) ) {
stroke ( NUMBER0 , NUMBER1 , NUMBER2 ) ;
strokeWeight ( NUMBER3 ) ;
drawEdge ( e ) ; | Fix null pointer issue |
<nb> class ImmediateCleanupRule implements Rule {
@ override
public boolean isValid ( Resource resource ) {
resource . setExpectedTerminationTime ( new Date ( now . minusMinutes ( NUMBER0 ) . getMillis ( ) ) ) ;
- resource . setNotificationTime ( new Date ( now . getMillis ( ) ) ) ;
+ resource . setNotificati... | Fix race condition when running unit tests on Windows |
<nb> public class EditSession extends JavaScriptObject
if ( existingMode && existingMode . constructor == Mode )
return ;
- this . setMode ( new Mode ( suppressHighlighting , this . getDocument ( ) , this ) ) ;
+ this . setMode ( new Mode ( suppressHighlighting , this ) ) ;
} - * / ;
public native final... | update setMode to respect new interface |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- public final class RecordReader < T extends Record > extends AbstractRecordReader < T > implements Reader < T > {
+ public class RecordReader < T extends Record > extends AbstractRecordReader < T > implements Reader < T > {
COMMENT
COMMENT | Removed final modifier again to fix problem with PowerMock tests |
<nb> public class Main {
STRING0 , SINGLE
STRING1 , SINGLE
STRING2 , SINGLE
+ STRING3 ,
} ,
excludeClasses ,
new String [ ] { | Include EpicenterTranslateClipReveal in LayoutLib |
<nb> public class ShadowResources {
@ implementation
public Configuration getConfiguration ( ) {
if ( configuration == null ) {
- Configuration configuration = new Configuration ( ) ;
+ configuration = new Configuration ( ) ;
configuration . setToDefaults ( ) ;
}
if ( configuration . locale == null ) { ... | add test to make sure getConfiguration returns the right instance |
<nb> public class PostsActivity extends WPActionBarActivity implements OnPostSelected
private MenuItem refreshMenuItem ;
private static final int ACTIVITY_EDIT_POST = NUMBER0 ;
private static final int ACTIVITY_ADD_COMMENT = NUMBER1 ;
- private static final int ACTIVITY_LOCK_SCREEN = NUMBER2 ;
@ override
... | Removed unused variable |
<nb> public class clonesrv6
{
Iterator < kvmsg > it = pending . iterator ( ) ;
while ( it . hasNext ( ) ) {
- if ( msg . UUID ( ) . equals ( it . next ( ) . UUID ( ) ) ) {
+ if ( java . util . Arrays . equals ( msg . UUID ( ) , it . next ( ) . UUID ( ) ) ) {
it . remove ( ) ;
return true ;
}
<nb> publ... | Fixed two bugs in test path |
<nb> public class CodeEditUtil {
}
public static void saveWhitespacesInfo ( final ASTNode first ) {
- checkForOuters ( first ) ;
+ SINGLE
if ( first == null || isNodeGenerated ( first ) || getOldIndentation ( first ) >= NUMBER0 ) return ;
final PsiFile containingFile = first . getPsi ( ) . getContainingFi... | To fix the build |
<nb> public class MBMessagePermission {
throws PortalException , SystemException {
MBCategory category = message . getCategory ( ) ;
-
+ long groupId = ( category != null ) ? category . getGroupId ( ) : NUMBER0 L ;
if ( MBBanLocalServiceUtil . hasBan (
- category . getGroupId ( ) , permissionChecker . get... | Adding null check for mb permissions |
<nb> public class TridentKafkaState implements State {
}
}
}
- }
} | fix travis ci build error |
<nb> public class PlaybackService {
if ( mSeek > NUMBER0 ) {
mPlayer . seekTo ( mSeek ) ;
}
+ mPlayer . setLooping ( true ) ;
mPlayer . start ( ) ;
break ;
} | Looping playing music |
<nb> public class ReaderTagMenuAdapter extends BaseAdapter {
holder . textView . setText ( tag . getCapitalizedTagName ( ) ) ;
if ( isCurrentTag ( tag ) ) {
- holder . textView . setBackground ( mSelectedBackground ) ;
+ holder . textView . setBackgroundDrawable ( mSelectedBackground ) ;
} else {
- holder... | Fixed calling new methods on older versions problem |
<nb> public class StringCache {
SINGLE
- public static class ByteEntry {
+ private static class ByteEntry {
- public byte [ ] name = null ;
- public Charset charset = null ;
- public String value = null ;
+ private byte [ ] name = null ;
+ private Charset charset = null ;
+ private String value ... | Reduce visibility of inner classes |
<nb> class EmulatorDebug {
COMMENT
COMMENT
COMMENT
- public static final boolean LOG_IME = DEBUG && false ;
+ public static final boolean LOG_IME = DEBUG & false ;
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- public static final boolean LOG_CHARACTERS_FLAG = DEBUG && false ;
+ public static final... | Remove Dead Code warnings |
<nb> public class HandlerRegistration < T > implements MessageConsumer < T > , Handler < Messa
if ( timeout != - NUMBER0 ) {
timeoutID = vertx . setTimer ( timeout , tid - > {
metrics . replyFailure ( address , ReplyFailure . TIMEOUT ) ;
- sendAsyncResultFailure ( ReplyFailure . TIMEOUT , STRING0 ) ;
+ sendAs... | Add address and replyAddress to message on reply timeout to aid in problem determination |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class TimeFormat {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
public static String format ( long millis ) {
- return String . format ( STRING... | Removed unused imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CliConfigTest {
SINGLE
SINGLE
SINGLE
+ resetEnvironmentVariables ( ) ;
+ }
+
+ @ after
+ public void tearDown ( ) {
+ resetEnvir... | also reset environments variables after each test |
<nb> public final class TldConfig implements LifecycleListener {
private Digester tldDigester = null ;
- private boolean rescan = true ;
-
COMMENT
COMMENT
COMMENT
<nb> public final class TldConfig implements LifecycleListener {
}
}
- public boolean isRescan ( ) {
- return rescan ;
- }
- ... | Remove unused code |
<nb> public class RadFormLayoutManager extends RadGridLayoutManager implements AlignP
private Map < RadComponent , MyPropertyChangeListener > myListenerMap = new HashMap < RadComponent , MyPropertyChangeListener > ( ) ;
@ nonnls private static final String ENCODED_FORMSPEC_GROW = STRING0 ;
- private static fina... | avoid zero size rows and columns |
<nb> public class CasSecurityContextConfiguration {
COMMENT
COMMENT
COMMENT
- @ value ( STRING0 )
+ @ value ( STRING1 )
private String regexPattern ;
COMMENT | moving dependencies around |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SmoothProgressAdapter extends BlockingProgressIndicator {
}
else {
myStartupAlarm... | dispose ProgressWindow under SmoothProgressAdapter if it wasn t started r jeka |
<nb> public final class Iconics {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean iconExists ( Context context , String icon ) {
+ try {
+ ITypeface font = findFont ( context , icon . substring ( NUMBER0 , NUMBER1 ) ) ;
+ icon = icon . ... | Add iconExists method to check icon availability |
<nb> public final class Pm {
}
private int runGrantRevokePermission ( boolean grant ) {
- int userId = UserHandle . USER_CURRENT ;
+ int userId = UserHandle . USER_OWNER ;
String opt = null ;
while ( ( opt = nextOption ( ) ) != null ) {
<nb> public class PackageManagerService extends IPackageManager .... | Fix grant revoke to act on owner by default and log invalid user id |
<nb> public class XPrivacy implements IXposedHookLoadPackage , IXposedHookZygoteInit {
SINGLE
for ( Member member : listMember )
- XposedBridge . hookMethod ( member , methodHook ) ;
+ try {
+ XposedBridge . hookMethod ( member , methodHook ) ;
+ } catch ( Throwable ex ) {
+ Util . bug ( hook , ex ) ;
... | Handle Xposed hook exceptions support info |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.