diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class CatalogUpdater {
if ( desc . getProductCategory ( ) == ProductCategory . ADD_ON ) {
for ( final String bp : desc . getAvailableBaseProducts ( ) ) {
- catalog . addProductAvailableAO ( getExistingProduct ( bp ) , product ) ;
+ final DefaultProduct targetBasePlan = getExistingProduct ( bp ) ; ... | Fix CatalogUpdater to not throw an exception when an AO plan for an already existing AO is added |
<nb> public class Util {
mHasLBEDetermined = true ;
try {
File apps = new File ( Environment . getDataDirectory ( ) + File . separator + STRING0 ) ;
- for ( File file : apps . listFiles ( ) )
- if ( file . getName ( ) . startsWith ( STRING1 ) )
- mHasLBE = true ;
+ if ( apps != null )
+ for ( File file ... | Fix null pointer exception in system components |
<nb> public class ObjectColumnTest extends SQLTransportIntegrationTest {
}
) ;
refresh ( ) ;
+ ensureGreen ( ) ;
execute ( STRING0 ) ;
assertEquals ( NUMBER0 , response . rowCount ( ) ) ;
assertEquals ( STRING1 , response . rows ( ) [ NUMBER1 ] [ NUMBER1 ] ) ; | prevent test flakyness in one of many cases |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class DiffRequestProcessor implements Disposable {
SINGLE
SINGLE
- private class MyPanel extends JPanel implements D... | when nothing is selected in the LocalChanges the PreviewDiff pane doesn t get applied background |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
- public abstract class BaseShadowSystem implements ShadowSystem {
+ public abstract class BaseShadowSystem implements Sh... | Add Disposable interface to BaseShadowSystem |
<nb> public class PhoneNumberUtils
number = extractNetworkPortionAlt ( number ) ;
SINGLE
- String numbers = SystemProperties . get ( STRING0 ) ;
+ SINGLE
+ String numbers = SystemProperties . get ( STRING1 ) ;
+ if ( TextUtils . isEmpty ( numbers ) ) {
+ SINGLE
+ numbers = SystemProperties . get ( STR... | Add r w property of emergency number list |
<nb> class NamedElementSelector < T extends Named > implements Transformer < List < T > , Name
public List < T > transform ( NamedDomainObjectContainer < ? super T > ts ) { SINGLE
NamedDomainObjectSet < T > allWithType = ts . withType ( type ) ;
- SINGLE
if ( names . isEmpty ( ) ) {
if ( allWithType . size ... | Cleaned up some more todos |
<nb> public class AtmosphereFramework implements ServletContextProvider {
try {
sc . getServletContext ( ) . addListener ( SessionSupport . class ) ;
} catch ( Throwable t ) {
- logger . warn ( STRING0 , t ) ;
+ logger . error ( STRING0 , t ) ;
+ logger . debug ( STRING1 , SessionSupport . class . getName (... | Log an error |
<nb> import NAMESPACE ;
SINGLE
- SINGLE
-
SINGLE
+ SINGLE
+
public interface NavigableSourceEditor
{
<nb> public class TextEditingTarget implements EditingTarget
commandHandlerReg_ . removeHandler ( ) ;
commandHandlerReg_ = null ;
+
+ SINGLE
+ try
+ {
+ docDisplay_ . recordCurr... | add tab switch to nav history |
<nb> 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 NAMESPACE ;
public class SgTmdb extends Tmd... | Drop unused imports |
<nb> public class WrapTime extends BaseObject implements IComparableObject < WrapTime >
this . date = new Date ( args [ NUMBER0 ] . toLong ( ) ) ;
this . timeZone = zone ;
+
+ calendar = Calendar . getInstance ( timeZone ) ;
+ calendar . setTime ( date ) ;
+
return Memory . NULL ;
} | Fix class Time |
<nb> public class PartitionFactory {
}
values . add ( value ) ;
}
- if ( values . size ( ) < FLOAT0 / NUMBER0 f * nonNullvalues ) { SINGLE
+ if ( values . size ( ) < FLOAT0 / NUMBER0 f * nonNullvalues ) { SINGLE
return true ;
}
}
<nb> public class PartitionFactory {
}
values . add ( value ) ;
} ... | Fix Partition non null values limit |
<nb> class QueryPlanner
private PlanBuilder explicitCoercionSymbols ( PlanBuilder subPlan , Iterable < Symbol > alreadyCoerced , Iterable < ? extends Expression > uncoerced )
{
TranslationMap translations = new TranslationMap ( subPlan . getRelationPlan ( ) , analysis ) ;
+ translations . copyMappingsFrom ( sub... | Fix planner bug when mixing window functions and implicit coercions |
<nb> import NAMESPACE ;
public class DumpToXmlTest extends ContextTestSupport {
@ override
protected void setUp ( ) throws Exception {
- deleteDirectory ( STRING0 ) ;
+ SINGLE
+ File file = new File ( STRING0 ) ;
+ if ( file . getAbsoluteFile ( ) . exists ( ) ) {
+ deleteDirectory ( STRING0 ) ;
+ }
... | Using more common way to check the file in DumpToXmlTest |
<nb> public final class Main {
System . exit ( NUMBER0 ) ;
}
- SINGLE
+ SINGLE
if ( commandLineArguments . isConfigTest ( ) ) {
+ GraylogServer server = new GraylogServer ( ) ;
+ DroolsInitializer drools = new DroolsInitializer ( server , configuration ) ;
+ drools . initialize ( ) ;
+ SINGLE
Syst... | add rules checking to configtest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlockMasterTest {
mPrivateAccess = new PrivateAccess ( mMaster ) ;
}
+ @ after
+ public void after ( ) throws Exception {
+ mMaster . ... | Stop mBlockMaster at the end of each block master test |
<nb> public class CodeSearchOracle extends SuggestOracle
request_ = request ;
callback_ = callback ;
invalidationToken_ = searchInvalidation_ . getInvalidationToken ( ) ;
- nudge ( ) ;
+
+ if ( ! executing_ )
+ nudge ( ) ;
}
@ override
protected void performAction ( boolean shouldSchedulePassive )... | further limit number of executions |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMM... | Fixed Neo in javadoc |
<nb> public class NavigationBarView extends LinearLayout {
+ ( offscreen ? STRING0 : STRING1 ) ) ;
pw . println ( String . format ( STRING2 ,
- getResourceName ( mCurrentView . getId ( ) ) ,
- mCurrentView . getWidth ( ) , mCurrentView . getHeight ( ) ,
- visibilityToString ( mCurrentView . getVisibility ( ... | Fix a crash in SystemUI when using CarNavigationBar |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class BeaconManager {
@ deprecated
publi... | Removed p tags in javadoc |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class BlockMasterClientPool extends ResourcePool < BlockMasterClient > {
+ final class BlockMasterClientPool extends ResourcePool < BlockMasterClient > {
private final InetSocketAddress mMasterAddress ;
COMMENT
<nb> import NAMESPACE ;
CO... | Make pools private |
<nb> public class GraphSerializationLibrary {
if ( ! graphPath . getParentFile ( ) . exists ( ) )
graphPath . getParentFile ( ) . mkdirs ( ) ;
- _log . info ( STRING0 ) ;
+ _log . info ( STRING1 + graphPath . getAbsolutePath ( ) + STRING2 ) ;
ObjectOutputStream out = new ObjectOutputStream ( new BufferedOut... | display the path where the graph is being read written to |
<nb> public class NotificationUtils {
AppLog . d ( T . NOTIFS , STRING0 ) ;
SharedPreferences . Editor editor = PreferenceManager . getDefaultSharedPreferences ( ctx ) . edit ( ) ;
editor . remove ( WPCOM_PUSH_DEVICE_SERVER_ID ) ;
+ editor . remove ( WPCOM_PUSH_DEVICE_NOTIFICATION_SETTINGS ) ;
editor . commit... | Remove settings on logout |
<nb> public class UpdateAction implements CustomMeasuresWsAction {
private final CustomMeasureJsonWriter customMeasureJsonWriter ;
private final UserIndex userIndex ;
- public UpdateAction ( DbClient dbClient , UserSession userSession , System2 system , CustomMeasureValidator validator , CustomMeasureJsonWriter... | fix quality flaw |
<nb> public class ExecutorSchedulerTest extends AbstractSchedulerConcurrencyTests {
} ;
ExecutorSchedulerWorker w = ( ExecutorSchedulerWorker ) Schedulers . from ( e ) . createWorker ( ) ;
- w . schedule ( Actions . empty ( ) , NUMBER0 , TimeUnit . MILLISECONDS ) ;
+ w . schedule ( Actions . empty ( ) , NUMBE... | reduce probability of ExecutorSchedulerTest testOnBackpressureDrop failing on slow machine |
<nb> public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstra
SINGLE
linkedType = OType . LINK ;
type = OType . LINKMAP ;
- } else {
- type = OType . EMBEDDEDMAP ;
}
}
- } else
+ }
+
+ if ( type == null )
type = OType . EMBEDDEDMAP ;
- if ( fieldValue instanceof OReco... | Fixed issue on serialization on embedded maps |
<nb> public class IabHelper {
logDebug ( STRING0 ) ;
return BILLING_RESPONSE_RESULT_OK ;
} else if ( o instanceof Integer ) {
- return ( ( Integer ) o ) . intValue ( ) ;
+ return ( Integer ) o ;
} else if ( o instanceof Long ) {
return ( int ) ( ( Long ) o ) . longValue ( ) ;
} else {
<nb> public clas... | Fix some boxing warnings |
<nb> import NAMESPACE ;
return getAccountType ( typeIdentifier . value ( ) ) ;
}
public void requestAccessToAccounts ( ACAccountType accountType , ACAccountOptions options , @ block VoidBlock2 < Boolean , NSError > completion ) {
- requestAccessToAccounts ( accountType , options . data , completion ) ;
+ requ... | Allow ACAccountStore requestAccessToAccounts to be called with options set |
<nb> class ErrorPageFilter extends AbstractConfigurableEmbeddedServletContainer imple
rethrow ( ex ) ;
return ;
}
- logger . error ( STRING0 , ex ) ;
+ if ( logger . isErrorEnabled ( ) ) {
+ String message = STRING1
+ + request . getServletPath ( ) + request . getPathInfo ( )
+ + STRING2 + ex . getMessa... | Add a little more context to ErrorPageFilter log |
<nb> public class ConsistentKeyIDAuthority extends AbstractIDAuthority implements Bac
private static final Logger log = LoggerFactory . getLogger ( ConsistentKeyIDAuthority . class ) ;
- private static final StaticBuffer LOWER_SLICE = BufferUtil . zeroBuffer ( NUMBER0 ) ;
+ private static final StaticBuffer L... | Rolling back two lower bound changes since their impact isn t readily clear |
<nb> public class PackagesNotificationPanel {
}
private void showContent ( String text , final Color background ) {
- myEditorPane . removeAll ( ) ;
String htmlText = text . startsWith ( STRING0 ) ? text : UIUtil . toHtml ( text ) ;
myEditorPane . setText ( htmlText ) ;
myEditorPane . setBackground ( back... | don t remove child components of JEditorPane |
<nb> public abstract class AbstractSocketSslEchoTest {
hf . awaitUninterruptibly ( ) ;
if ( ! hf . isSuccess ( ) ) {
logger . error ( STRING0 , hf . getCause ( ) ) ;
+ sh . channel . close ( ) . awaitUninterruptibly ( ) ;
+ ch . channel . close ( ) . awaitUninterruptibly ( ) ;
+ sc . close ( ) . awaitUninte... | Fixed a problem where AbstractSocketSslEchoTest doesn t close all channels when handshake fails |
<nb> public class Inflector {
singular ( STRING0 , STRING1 ) ;
singular ( STRING2 , STRING3 ) ;
+ singular ( STRING4 , STRING5 ) ;
+ plural ( STRING6 , STRING7 ) ;
+
irregular ( STRING8 , STRING9 ) ;
- irregular ( STRING5 , STRING7 ) ;
irregular ( STRING10 , STRING11 ) ;
irregular ( STRING12 , STRIN... | Fix bad singularization of words that include man |
<nb> public class SanityChecker implements TestListener {
private final StringWriter out = new StringWriter ( ) ;
public static void run ( Class < ? > testClass ) {
+ run ( testClass , false ) ;
}
public static void run ( Class < ? > testClass , boolean debug ) { | Add missing chaining of cucumber runtime junit SanityChecker run |
<nb> class MediaSessionCompatApi21 {
}
@ override
+ public void onPlayFromMediaId ( String mediaId , Bundle extras ) {
+ mCallback . onPlayFromMediaId ( mediaId , extras ) ;
+ }
+
+ @ override
+ public void onPlayFromSearch ( String search , Bundle extras ) {
+ mCallback . onPlayFromSearch ( search ... | Forward all MediaSession callbacks to MediaSessionCompat |
<nb> public class FileDocumentManagerImpl extends FileDocumentManager implements Appl
}
private void fireFileContentLoaded ( final VirtualFile file , final DocumentEx document ) {
- ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
+ final Runnable fireRunnable = new Runnable ( ) {
... | Fix stress test |
<nb> public final class Functions {
COMMENT
COMMENT
COMMENT
- public static SerializedLambda getSerializedFunction ( Serializable lambda ) {
+ public static SerializedLambda getSerializedLambda ( Serializable lambda ) {
return Try . of ( ( ) - > {
final Method method = lambda . getClass ( ) . getDeclaredM... | Fixed method name |
<nb> public class CookbookGroupedQuantiles extends TestUtil {
. with ( new Histogram ( dg_idx , val_idx , wt_idx , false , basic_summaries ) )
. doit ( ) ;
- Log . info ( STRING0 ) ;
-
AppendableVec gidVec = new AppendableVec ( STRING1 ) ;
AppendableVec [ ] avecs = new AppendableVec [ NUMBER0 ] ;
Vec [ ... | Cookbook grouped quantile cleanup |
<nb> public class PluginModuleType extends ModuleType < PluginModuleBuilder > {
ModulesProvider modulesProvider ) {
final ProjectWizardStepFactory stepFactory = ProjectWizardStepFactory . getInstance ( ) ;
ArrayList < ModuleWizardStep > steps = new ArrayList < ModuleWizardStep > ( ) ;
+ steps . add ( stepFactor... | restore src step |
<nb> public class Checker extends AutomaticBean
mSeverityLevel = SeverityLevel . getInstance ( aSeverity ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public final void setClassLoader ( ClassLoader aLoader )
+ {
+ mLoader = aLoader ;
+ }
+
} | added classloader property so the Checker is contextualized |
<nb> public class ChatWindow extends JFrame {
this . mainFrame = mainFrame ;
+ this . setDefaultCloseOperation ( JFrame . DO_NOTHING_ON_CLOSE ) ;
+
this . setSize ( NUMBER0 , NUMBER1 ) ;
this . setIconImage ( ImageLoader . getImage ( ImageLoader . SIP_LOGO ) ) ; | Cancel of confirmation dialog when closing chat window if there are unsent |
<nb> public class OCommandExecutorSQLSelect extends OCommandExecutorSQLResultsetAbstr
if ( groupByFields . size ( ) > NUMBER0 ) {
SINGLE
final Object [ ] fields = new Object [ groupByFields . size ( ) ] ;
- for ( int i = NUMBER1 ; i < groupByFields . size ( ) ; ++ i )
- fields [ i ] = doc . field ( groupByFie... | Fixed groupby with multiple fields and context variables |
<nb> public class ProfileSettingDrawerItem extends AbstractDrawerItem < ProfileSettingD
}
public void setDescription ( String description ) {
- this . email = email ;
+ this . email = new StringHolder ( description ) ;
}
@ override | fix setDescription does not set the value correctly |
<nb> public final class GLTracer implements InvocationHandler {
noEnumArgs ( STRING0 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 ) ;
noEnumArgs ( STRING1 , NUMBER0 , NUMBER1 , NUMBER2 , NUMBER3 , NUMBER4 , NUMBER5 , NUMBER6 ) ;
noEnumArgs ( STRING2 , NUMBER7 ) ;
+ noEnumArgs ( STRING3 ... | Add glReadPixels to GLTracer |
<nb> public class Fiber < V > extends Strand implements Joinable < V > , Serializable {
@ override
public String toString ( ) {
- return STRING0 + ( name != null ? name : Integer . toHexString ( System . identityHashCode ( this ) ) ) + STRING1 + state + STRING2 + fjPool + STRING3 + fjTask + STRING4 + ( target i... | Removed pool from Fiber toString |
<nb>
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add Copyright assignement |
<nb> public class MessagingController implements Runnable {
COMMENT
COMMENT
if ( ! localUidMap . isEmpty ( ) && remoteUidMap != null && ! remoteUidMap . isEmpty ( ) ) {
- Set < Map . Entry < String , String > > remoteSrcEntries = remoteUidMap . entrySet ( ) ;
- Iterator < Map . Entry < String , String > > rem... | replaced unnecessary explicit iterator use with for each loop |
<nb> class WikipediaTextFilter implements TextFilter {
WikiModel wikiModel = new WikiModel ( STRING0 , STRING1 ) ;
s = wikiModel . render ( s ) ;
SINGLE
- s = s . replaceAll ( STRING2 , STRING3 ) ;
s = s . replaceAll ( STRING4 , STRING5 ) ;
s = s . replaceAll ( STRING6 , STRING7 ) ;
s = s . replaceAll ( S... | fix losing line breaks e g several list items had been appended to a single sentence |
<nb> class CountsBuilderDecorator extends CheckDecorator . Adapter
}
}
}
-
- inner . check ( record , engine , records ) ;
}
+ inner . check ( record , engine , records ) ;
}
@ override | not checking all relationship records on multipass |
<nb> public class SlidingLayer extends FrameLayout {
final float y = MotionEventCompat . getY ( ev , pointerIndex ) ;
final float yDiff = Math . abs ( y - mLastY ) ;
- if ( xDiff > mTouchSlop && xDiff > yDiff && allowDragingX ( dx , mInitialX ) ) {
- mIsDragging = true ;
+ final boolean validHorizontalDrag ... | Removed complexity from what s simple |
<nb> public class AddDialogFragment extends DialogFragment {
@ override
public void onStart ( ) {
super . onStart ( ) ;
- EasyTracker . getTracker ( ) . trackView ( STRING0 ) ;
+ EasyTracker . getTracker ( ) . sendView ( STRING0 ) ;
}
@ override | Use new send method for add dialog |
<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement
}
private boolean hideAutopopupIfMeaningless ( ) {
- if ( ourHintAutopopup ) {
- return false ;
- }
-
if ( isAutopopupCompletion ( ) && ! myLookup . isSelectionTouched ( ) && ! myLookup . isCalculating ( ) ) {
myLook... | when no variants are left finish the autopopup even in the new mode |
<nb> public abstract class FunctionalTest extends RandomData {
}
@ test
+ public void testQueryByUUID ( ) {
+ Person person = randomPerson ( ) ;
+ data . insert ( person ) ;
+ UUID uuid = person . getUUID ( ) ;
+ Person result = data . select ( Person . class ) . where ( Person . UUID . eq ( uuid ) ) . ... | Add test case for querying by UUID |
<nb> public final class Iconics {
mappedFonts . put ( font . getMappingPrefix ( ) , font ) ;
}
+ SINGLE
+ COMMENT
if ( view . getText ( ) instanceof Editable ) {
Iconics . styleEditable ( ctx , mappedFonts , ( Editable ) view . getText ( ) , withStyles , withStylesFor ) ;
- } else if ( view . getText ( ... | do not directly style Editable comes from EditText as this also causes bad issues with the cursor |
<nb> public class TestUtils {
public static void createDatabase ( ODatabase database , final String iURL ) throws IOException {
if ( iURL . startsWith ( OEngineRemote . NAME ) ) {
SINGLE
- File file = new File ( STRING0 + OConstants . ORIENT_VERSION + STRING1 ) ;
+ File file = new File ( STRING0 + OConstants ... | Committed fix by Diego Ferri about the Removal of the db prefix to find the OrientDB home in tests |
<nb>
COMMENT
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 ;
- im... | Fixed import order CheckStyle errors this time for real |
<nb> public class ServerSentEventConnection implements Channel , Attachable {
break ;
}
}
- if ( ! channel . flush ( ) ) {
- sink . resumeWrites ( ) ;
- return ;
- }
if ( res == NUMBER0 ) {
sink . resumeWrites ( ) ;
<nb> public class ServerSentEventConnection implements Channel , Attachable {
} ... | Fix SSE error |
<nb> class MongoAsyncQueryCursor < T > implements MongoAsyncCursor < T > {
handleExhaustCleanup ( responseTo , future , e ) ;
} else {
releaseConnectionSource ( ) ;
- LOGGER . debug ( STRING0 + ( e == null ? STRING1 : STRING2 + e ) ) ;
+ LOGGER . trace ( STRING0 + ( e == null ? STRING1 : STRING2 + e ) ) ;
f... | Lowered log level to trace in MongoAsyncQueryCursor |
<nb> public class MainActivity extends AppCompatActivity {
mBottomBar . mapColorForTab ( NUMBER0 , STRING0 ) ;
mBottomBar . mapColorForTab ( NUMBER1 , STRING1 ) ;
mBottomBar . mapColorForTab ( NUMBER2 , STRING2 ) ;
-
- SINGLE
- mBottomBar . makeBadgeForTabAt ( NUMBER3 , NUMBER4 , NUMBER5 ) . setAutoShowAfte... | Remove the badges from the sample app |
<nb> public final class BlockMaster extends AbstractMaster implements ContainerIdGene
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- SINGLE
- private void processLostWorker ( MasterWorkerInfo latest ) {
- final Set < Long > lostBlocks = latest . getBlocks ( ) ;
- processWorkerRemovedBlocks ( ... | Remove unused processLostWorker method |
<nb> public class TraktAddFragment extends AddFragment {
shows = manager . recommendationsService ( ) . shows ( ) ;
break ;
case AddPagerAdapter . LIBRARY_TAB_POSITION :
- shows = manager . userService ( )
- . libraryShowsAll ( TraktSettings . getUsername ( mContext ) ) ;
+ shows = manager . userService ( )... | Fix library tab not displaying show overviews |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class AddCatalogMenuActivity extends MenuActivity {
<nb> public class AddCatalogMenuActivity extends MenuActivity {
@ override
protected void runItem ( final PluginApi . MenuActionInfo info ) {
try {
- star... | fixed package for AddCatalogActivity intent |
<nb> public class MessageListFragment extends SherlockFragment implements OnItemClick
mFontSizes . getMessageListSender ( ) ;
AbsoluteSizeSpan span = new AbsoluteSizeSpan ( fontSize , true ) ;
- str . setSpan ( span , NUMBER0 , beforePreviewText . length ( ) + NUMBER1 ,
+ str . setSpan ( span , NUMBER0 , befo... | Fix the span range for the text in front of the message preview |
<nb> public class InvoiceResource extends JaxRsResourceBase {
@ headerparam ( HDR_CREATED_BY ) final String createdBy ,
@ headerparam ( HDR_REASON ) final String reason ,
@ headerparam ( HDR_COMMENT ) final String comment ) {
+ if ( externalPayment ) {
+ return Response . status ( Status . BAD_REQUEST ) . ent... | Add exception for unsupported extermal payment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public final class FileSystemMaster extends MasterBase {
private static final Logger LOG = LoggerFactory . getLogger ( Constants . LOGGER_TYPE ) ;
<nb> public final class FileSystemMaster extends MasterBase {... | Improve javadocs in the master file package |
<nb> public final class GeolocationPermissions {
boolean allowed = nativeGetAllowed ( origin ) ;
Map retValues = new HashMap < String , Object > ( ) ;
retValues . put ( CALLBACK , callback ) ;
- retValues . put ( ALLOWED , new Boolean ( allowed ) ) ;
+ retValues . put ( ALLOWED , Boolean . valueOf ( allowed )... | Don t waste memory creating new Boolean objects |
<nb> public class ViewCompat {
static final ViewCompatImpl IMPL ;
static {
final int version = android . os . Build . VERSION . SDK_INT ;
- if ( STRING0 . equals ( android . os . Build . VERSION . CODENAME ) ) {
+ if ( version >= NUMBER0 ) {
IMPL = new JbMr1ViewCompatImpl ( ) ;
} else if ( version >= NUMB... | Updating the support library to user SDK version integer |
<nb> public final class BlockMaster extends AbstractMaster implements ContainerIdGene
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
SINGLE | Fix ambiguous wording |
<nb> public class Client extends ConnectionWithStatus implements IStatefulObject {
private synchronized void closeChannelAndReconnect ( Channel channel ) {
if ( channel != null ) {
+ LOG . info ( STRING0 , channel . toString ( ) , dstAddressPrefixedName ) ;
channel . close ( ) ;
if ( channelRef . compareAnd... | Add logging to closeChannelAndReconnect to help with connnection troubleshooting |
<nb> public class DefaultClusterRenderer < T extends ClusterItem > implements ClusterRen
COMMENT
COMMENT
public boolean isBusy ( ) {
- return ! ( mCreateMarkerTasks . isEmpty ( ) && mOnScreenCreateMarkerTasks . isEmpty ( ) &&
- mOnScreenRemoveMarkerTasks . isEmpty ( ) && mRemoveMarkerTasks . isEmpty ( ) &&
... | Add lock check missing from waitUntilFree method |
<nb> public class MySQLDatabase extends AbstractJdbcDatabase {
@ override
protected boolean mustQuoteObjectName ( String objectName , Class < ? extends DatabaseObject > objectType ) {
- return super . mustQuoteObjectName ( objectName , objectType ) || ! objectName . matches ( STRING0 ) ;
+ return super . must... | Don t break count column names |
<nb> public class AlignmentOperator implements Operator
return PageIterators . emptyIterator ( tupleInfos ) ;
}
- if ( expectedDataSize . isPresent ( ) ) {
- operatorStats . addCompletedDataSize ( expectedDataSize . get ( ) . toBytes ( ) ) ;
- }
- operatorStats . addCompletedPositions ( expectedPositionCo... | Only declare completed rows and bytes once |
<nb> public class PennTreeReader implements TreeReader {
if ( treeNormalizer != null && treeFactory != null ) {
t = treeNormalizer . normalizeWholeTree ( t , treeFactory ) ;
+ t . indexLeaves ( true ) ;
}
}
} | Fixed the index bug in PennTreeReader java |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class AioServerSocketChannel extends AbstractAioChannel implements ServerSocketChannel {
+ private static... | Fix another compilation error |
<nb> public abstract class ExtendableListView extends AbsListView {
if ( infos == null ) return ;
for ( FixedViewInfo info : infos ) {
final View child = info . view ;
- final LayoutParams p = ( LayoutParams ) child . getLayoutParams ( ) ;
- if ( p != null ) {
- p . recycledHeaderFooter = false ;
+ final ... | LayoutParams casting issue when recycling state |
<nb> public abstract class GenericPool < T > {
item = this . mAvailableItems . remove ( this . mAvailableItems . size ( ) - NUMBER0 ) ;
}
SINGLE
- Debug . i ( this . getClass ( ) . getName ( ) + STRING0 + item . getClass ( ) . getSimpleName ( ) + STRING1 + this . mUnrecycledItemCount + STRING2 + this . mGrowth ... | Made GenericPool debug logging as VERBOSE so it is easier to hide during development |
<nb> public class AjpAprProtocol extends AbstractAjpProtocol {
cHandler = new AjpConnectionHandler ( this ) ;
setSoLinger ( Constants . DEFAULT_CONNECTION_LINGER ) ;
setSoTimeout ( Constants . DEFAULT_CONNECTION_TIMEOUT ) ;
- SINGLE
setTcpNoDelay ( Constants . DEFAULT_TCP_NO_DELAY ) ;
}
<nb> public clas... | Remove unused code |
<nb> public class ImageSettingsDialogFragment extends DialogFragment {
if ( isAdded ( ) ) {
final Uri localUri = Utils . downloadExternalMedia ( getActivity ( ) , Uri . parse ( src ) ) ;
- getActivity ( ) . runOnUiThread ( new Runnable ( ) {
- @ override
- public void run ( ) {
- thumbnailImage . setImage... | Fixed a crash issue in the image settings dialog fragment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ModelMojoWriter < M extends Model < M , P , O > , P extends Model .
writekv ( STRING0 , H2O . ABV . projectVersion ( ) ) ;
writekv ( ... | Save endianness information inside the mojo |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
... | Fixed the CS error of camel web |
<nb> public class RollingThreadPoolMaxConcurrencyStreamTest extends CommandStreamTest
stream . observe ( ) . take ( NUMBER0 ) . subscribe ( getSubscriber ( latch ) ) ;
Command cmd1 = Command . from ( groupKey , key , HystrixEventType . SUCCESS , NUMBER1 ) ;
- Command cmd2 = Command . from ( groupKey , key , Hys... | Lengthen command latencies in thread pool max counter unit tests |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fix a date |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JpsGantProjectBuilder {
private void runBuild ( final Set < String > modulesSet , final boolean allModules , boolean includ... | disable default file logging when JPS build is started from our gant scripts because they use custom logging |
<nb> public class GithubShareAction extends DumbAwareAction {
handler . addParameters ( STRING0 , dialog . getCommitMessage ( ) ) ;
handler . endOptions ( ) ;
handler . run ( ) ;
+
+ VcsFileUtil . refreshFiles ( project , dialog . getSelectedFiles ( ) ) ;
}
catch ( VcsException e ) {
GithubNotifications... | refresh Vcs after commit |
<nb> public interface EjbMessages {
DeploymentUnitProcessingException failToFindMethodWithParameterTypes ( String name , String methodName , MethodParametersMetaData methodParams ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- @ message ( id = NUMBER0 , value = STRING0 )
- DeploymentUnitPr... | Update the deployment failure log message to contain the component name |
<nb> public class MessageHistoryServiceImpl
}
}
- return result ;
+ LinkedList resultAsList = new LinkedList ( result ) ;
+ int startIndex = resultAsList . size ( ) - count ;
+
+ if ( startIndex < NUMBER0 )
+ startIndex = NUMBER0 ;
+
+ return resultAsList . subList ( startIndex , resultAsList . si... | Fixed last N messages when metacontact has more than one proto contact |
<nb> public class DefaultMessage extends MessageSupport {
}
public boolean hasAttachments ( ) {
- if ( attachments == null ) {
- attachments = createAttachments ( ) ;
- }
return this . attachments != null && this . attachments . size ( ) > NUMBER0 ;
} | Fixed hasAttachments method to not lazy create an empty map |
<nb> public class ClassGenerator implements GroovyClassVisitor , GroovyCodeVisitor , Co
expression . getExpression ( i ) . visit ( this ) ;
cv . visitInsn ( AASTORE ) ;
}
- createTupleMethod . call ( cv ) ;
+ SINGLE
}
public void visitArrayExpression ( ArrayExpression expression ) { | removed superflous creation of Tuple objects when invoking methods dynamicallly |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AnnotationConfigApplicationContext extends GenericApplicationContex
}
COMMENT
+ COMME... | Add AnnotationConfigApplicationContext constructor |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface ModelRegistry {
ModelRegistry configure ( ModelActionRole role , ModelAction action ) ;
+ ModelRegistry configureMatching ( ModelSpec spec , ModelActionRole role , ModelAc... | Promote ModelRegistry configureMatching methods to more general interface |
<nb> import NAMESPACE ;
COMMENT
COMMENT
class MeasuredText {
+ private static final boolean localLOGV = false ;
COMMENT
COMMENT
COMMENT
<nb> class MeasuredText {
}
}
mt = new MeasuredText ( ) ;
- Log . e ( STRING0 , STRING1 + mt ) ;
+ if ( localLOGV ) {
+ Log . v ( STRING0 , STRING1 + mt ) ;... | Remove MeasuredText debug messages |
<nb> public class JsonHelper {
public static int [ ] jsonArrayToIntArray ( String json ) {
try {
JSONArray jsonArray = new JSONArray ( json ) ;
- int [ ] stringArray = new int [ jsonArray . length ( ) ] ;
+ int [ ] intArray = new int [ jsonArray . length ( ) ] ;
for ( int i = NUMBER0 ; i < jsonArray . lengt... | Rename stringArray to intArray |
<nb> public class CommandLineArguments {
private String pluginShortname ;
@ parameter ( names = { STRING0 , STRING1 } , description = STRING2 )
- private String pluginVersion = Core . GRAYLOG2_VERSION ;
+ private String pluginVersion = Core . GRAYLOG2_VERSION . toString ( ) ;
@ parameter ( names = { STRIN... | Fixing compilation error related to new Version class |
<nb> public class DefaultBlock extends ValidatingConfig < StandaloneCatalog > implements
@ override
public Double getMinTopUpCredit ( ) throws CatalogApiException {
- if ( type != BlockType . TOP_UP ) {
+ if ( minTopUpCredit != null && type != BlockType . TOP_UP ) {
throw new CatalogApiException ( ErrorCode... | throw exception conditionally in DefaultBlock |
<nb> package NAMESPACE ;
COMMENT
public interface CacheEvictor extends Cache . Listener {
+ COMMENT
+ void onCacheInitialized ( ) ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class LeastRecentlyUsedCacheEvictor implements CacheEvictor , Compar
}
@ override
+ public void onCacheInitialized (... | Add cache initializtion signal to CacheEvictor |
<nb> public class LocalGateway extends AbstractLifecycleComponent < Gateway > implements
return ;
}
+ SINGLE
+ if ( location == null ) {
+ return ;
+ }
+
SINGLE
for ( Map . Entry < String , ImmutableSet < ClusterBlock > > entry : event . state ( ) . blocks ( ) . indices ( ) . entrySet ( ) ) {
fina... | don t store the local state when not a data master node |
<nb>
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
public final class HeapSort implements IndexedSorter {
<nb>
C... | Added licencing headers |
<nb> public class RecyclerView extends ViewGroup {
final int parentBottom = getHeight ( ) - getPaddingBottom ( ) ;
final int childLeft = child . getLeft ( ) + rect . left ;
final int childTop = child . getTop ( ) + rect . top ;
- final int childRight = childLeft + rect . right ;
- final int childBottom = chil... | Fix RecyclerView s child focus rect calculations |
<nb> public interface UndertowMessages {
@ message ( id = NUMBER0 , value = STRING0 )
IOException couldNotReadContentLengthData ( ) ;
+
+ @ message ( id = NUMBER1 , value = STRING1 )
+ IllegalArgumentException failedToDecodeURL ( String s , String enc , @ cause Exception e ) ;
}
<nb> import NAMESPACE ; ... | Improve error message |
<nb> public class AndroidCompiledStatement implements CompiledStatement {
return getCursor ( ) . getColumnName ( column ) ;
}
- public DatabaseResults runQuery ( ) throws SQLException {
- return runQuery ( null ) ;
- }
-
public DatabaseResults runQuery ( ObjectCache objectCache ) throws SQLException {
... | Removed deprecated internal method |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.