diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class WorkspaceFactory {
private Environment createWorkspaceEnv (
Builder builder , RuleClassProvider ruleClassProvider , String installDir ) {
Environment workspaceEnv = new Environment ( ) ;
+ MethodLibrary . setupMethodEnvironment ( workspaceEnv ) ;
RuleFactory ruleFactory = new RuleFactory (... | Add the default BUILD language functions to the WORKSPACE file |
<nb> public class ChangeSet implements Conditional {
}
for ( CheckSum validCheckSum : validCheckSums ) {
+ if ( validCheckSum . toString ( ) . equalsIgnoreCase ( STRING0 ) ) {
+ return true ;
+ }
if ( currentMd5Sum . equals ( validCheckSum ) ) {
return true ;
} | Added support for validCheckSum any validCheckSum |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import N... | removed unused import |
<nb> public class UpdateStatement implements SqlStatement {
private String convertToString ( Object newValue , Database database ) {
String sqlString ;
- if ( newValue == null ) {
+ if ( newValue == null || newValue . toString ( ) . equalsIgnoreCase ( STRING0 ) ) {
sqlString = STRING0 ;
} else if ( newVal... | handle NULL values correctly |
<nb> public class Environment {
final DropwizardResourceConfig jerseyConfig = new DropwizardResourceConfig ( metricRegistry ) ;
this . servletContext = new ServletContextHandler ( ) ;
+ servletContext . setClassLoader ( Thread . currentThread ( ) . getContextClassLoader ( ) ) ;
this . servletEnvironment = new... | Set servlet context class loaders |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMES... | Replace com google api etc with com google common collect |
<nb> public interface SubsystemRegistration {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- ManagementResourceRegistration registerDeploymentModel ( DescriptionProvider descriptionProvider ) ;
-
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<n... | Remove registerDeploymentModel final DescriptionProvider descriptionProvider |
<nb> public final class ExpressionFormatter
@ override
protected String visitExists ( ExistsPredicate node , Boolean unmangleNames )
{
- return STRING0 + formatSql ( node . getSubquery ( ) , unmangleNames ) + STRING1 ;
+ return STRING2 + formatSql ( node . getSubquery ( ) , unmangleNames ) + STRING3 ;
}
... | Fix formating EXISTS predicate |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExpressionReader {
if ( lines . contains ( null ) )
return true ;
- ArrayDeque < Character > brackets = new ArrayDeque < Character > ( ) ;
+ LinkedList < ... | changed to linked list in expression reader |
<nb> public class TfsShell implements Closeable {
System . out . println ( STRING0 ) ;
System . out . println ( STRING1 ) ;
System . out . println ( STRING2 ) ;
- System . out . println ( STRING3 ) ;
System . out . println ( STRING4 ) ;
System . out . println ( STRING5 ) ;
System . out . println ( STRING6... | Remove unused request command from shell help |
<nb> public class DefaultAnimationHandler extends MenuAnimationHandler {
animation . setInterpolator ( new OvershootInterpolator ( FLOAT0 ) ) ;
animation . addListener ( new SubActionItemAnimationListener ( menu . getSubActionItems ( ) . get ( i ) , ActionType . OPENING ) ) ;
- lastAnimation = animation ;
+ i... | set the last animation correctly for DefaultAnimationHandler |
<nb> public class UserManager implements IQResultListener {
@ override
public void propertyDeleted ( String property , Map params ) {
- SINGLE
+ if ( STRING0 . equals ( property ) ) {
+ initProvider ( ) ;
+ }
}
@ override | Allow reset of UserProvider |
<nb> public interface AgentBuilder {
if ( typeInitializer != null ) {
typeInitializer . getClass ( ) . getMethod ( STRING0 , Class . class ) . invoke ( typeInitializer , type ) ;
} else {
- Logger . getAnonymousLogger ( ) . warning ( STRING1 + type + STRING2 + identification ) ;
+ Logger . getAnonymousLogger ... | Clarified names of texts within agent logging |
<nb> public interface OSGIConfig extends KillbillConfig {
SINGLE
STRING0 +
STRING1 +
- STRING2 )
+ STRING3 )
public String getSystemBundleExportPackages ( ) ;
SINGLE | add exported version for org osgi service log |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class Length implements Function {
JSONArray array = ( JSONArray ) model ;
return Integer . valueOf ( array . size ( ) ) ;
}
+ ... | added case for length of map or JSONArray of values |
<nb> public final class FragmentedMp4Extractor implements Extractor {
} else {
sampleCompositionTimeOffsetTable [ i ] = NUMBER0 ;
}
- sampleDecodingTimeTable [ i ] = ( cumulativeTime * NUMBER1 ) / timescale ;
+ sampleDecodingTimeTable [ i ] = Util . scaleLargeTimestamp ( cumulativeTime , NUMBER1 , timescale )... | Fix overflow for DASH live streams using large timescales |
<nb> public class CrossBuildInMemoryCachingScriptClassCache {
private byte [ ] hashFor ( ScriptSource source ) {
File file = source . getResource ( ) . getFile ( ) ;
- String hash ;
if ( file != null && file . exists ( ) ) {
CachingFileSnapshotter . FileInfo snapshot = snapshotter . snapshot ( file ) ;
re... | Removed unused lvar |
<nb> public class SourceWindowManager implements PopoutDocEvent . Handler ,
@ override
public boolean execute ( )
{
- if ( window . isClosed ( ) ||
+ if ( window == null ||
+ window . isClosed ( ) ||
pSatelliteManager_ . get ( ) . getSatelliteWindowObject (
event . getName ( ) ) == null )
{ | treat null windows as closed when detecting source window closure |
<nb> public class XMLProperties {
}
SINGLE
for ( String value : values ) {
- element . addElement ( childName ) . setText ( value ) ;
+ Element childElement = element . addElement ( childName ) ;
+ if ( value . startsWith ( STRING0 ) ) {
+ childElement . addCDATA ( value . substring ( NUMBER0 , value . le... | Added support for storing CDATA |
<nb> public abstract class CompoundButton extends Button implements Checkable {
}
COMMENT
+ COMMENT
+ COMMENT
+ @ override
+ public void onResolveDrawables ( @ resolvedlayoutdir int layoutDirection ) {
+ super . onResolveDrawables ( layoutDirection ) ;
+ if ( mButtonDrawable != null ) {
+ mButtonDra... | Resolve CompoundButton s foreground drawable for layout direction change |
<nb> public class EntityRegistry
{
if ( EntityList . field_75626_c . containsKey ( entityClass ) )
{
- FMLLog . warning ( STRING0 , Loader . instance ( ) . activeModContainer ( ) . getModId ( ) , entityClass ) ;
+ ModContainer activeModContainer = Loader . instance ( ) . activeModContainer ( ) ;
+ String mo... | Fix up mods trying to register entities outside of modloading |
<nb> public class SeriesGuideDatabase extends SQLiteOpenHelper {
String LIST_ITEMS_COLUMNS = STRING0 ;
String LIST_ITEMS_COLUMNS_INTERNAL = STRING1 ;
String SHOWS_COLUMNS = LIST_ITEMS_COLUMNS
- + STRING2 ;
- String SHOWS_COLUMNS_INTERNAL = STRING3 ;
+ + STRING4 ;
+ String SHOWS_COLUMNS_INTERNAL = STRING5 ... | Modify list query to include more columns for next episode text |
<nb> public class EC2MetadataUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getSubnetId ( ) {
+ return getData ( STRING0 ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getVpcIPv4CidrBlock ( ) {
+ return getData ( STRING1 ) ;
+ }
+
+ C... | add getSubnetId and getVpcIPv4CidrBlock |
<nb> public class StringTypeTest {
assertEquals ( true , expected2 . equals ( new StringType ( STRING0 ) ) ) ;
assertEquals ( false , expected1 . equals ( new StringType ( STRING0 ) ) ) ;
assertEquals ( false , expected2 . equals ( new StringType ( STRING1 ) ) ) ;
+
+ assertEquals ( true , expected1 . equals ... | allow equality check of StringType with java lang String |
<nb> public class StatsGenerator {
BufferedReader dataReader = new BufferedReader ( new FileReader ( dataFileName ) ) ;
SINGLE
- String [ ] headers = dataReader . readLine ( ) . split ( STRING0 ) ;
- int numColumns = headers . length ;
+ String [ ] columns = dataReader . readLine ( ) . split ( STRING0 ) ;
... | Added column name in report |
<nb> public class LanguageManagerDialog implements ActionListener {
}
@ override
public String getDescription ( ) {
- return STRING0 ; SINGLE
+ return STRING1 ; SINGLE
}
} | adapt the displayed file name pattern to the filter actually used |
<nb> import NAMESPACE ;
import NAMESPACE ;
public abstract class GoRunConfigurationBase < RunningState extends GoRunningState >
- extends ModuleBasedConfiguration < GoModuleBasedConfiguration > implements RunConfigurationWithSuppressedDefaultRunAction {
+ extends ModuleBasedConfiguration < GoModuleBasedConfig... | Disable debug for go run configurations |
<nb> public class Compiler extends AbstractCompiler {
SINGLE
public void optimize ( ) {
+ List < PassFactory > optimizations = getPassConfig ( ) . getOptimizations ( ) ;
+ if ( optimizations . isEmpty ( ) ) {
+ return ;
+ }
+
SINGLE
SINGLE
SINGLE
<nb> public class Compiler extends AbstractCompil... | Don t run the normalization pass if the using transpileOnly |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Actor < Message , V > extends LightweightThread < V > {
SINGLE
SINGLE
+ public Channel < Message > getMaibox ( ) {
+ return ( ... | Actor exposes access to mailbox for sending only |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- final class LoadPackagesAsyncTask extends AsyncTask < Void , Void , List < AppInfo > > {
+ final class LoadPackagesAsyncTask extends AsyncTask < Object , Object , List < AppInfo > > {
private static final String [ ] PKG_PREFIX_WHITELIST = {
STRING0 ,
<... | Fix problem on some platforms with AsyncTask array arg type |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
<nb> public class GitTestRepo extends TestRepo {
}
private void cloneBundleToFolder ( File from , File workingDir ) {
- git ( workingDir ) . cloneFrom ( inMemoryConsume... | Adding verbosity to test git repo cloning |
<nb> public final class ParseDataset extends Job < Frame > {
_packedDomains [ i ] = packDomain ( _perColDomains [ i ] ) ;
i ++ ;
}
- Log . trace ( STRING0 ) ;
+ Log . trace ( STRING1 ) ;
}
@ override | Improves trace message |
<nb> class SonosZonePlayer {
coordinator . stop ( ) ;
SINGLE
- coordinator . setCurrentURI ( STRING0 + remotePlayer . getUdn ( ) , STRING1 ) ;
+ coordinator . setCurrentURI ( STRING0 + remotePlayer . getUdn ( ) . getIdentifierString ( ) , STRING1 ) ;
SINGLE
coordinator . setMute ( STRING2 ) ; | fix bug in PlayLine functionality |
<nb> public class MulticastProcessor extends ServiceSupport implements AsyncProcessor
COMMENT
COMMENT
COMMENT
- protected ExecutorService createAggregateExecutorService ( String name ) {
+ protected synchronized ExecutorService createAggregateExecutorService ( String name ) {
return camelContext . getExecut... | Fixed recipient list in parallel mode creating a new thread pool for aggregator background task |
<nb> public class PreviewTextFragment extends FileFragment {
public static boolean canBePreviewed ( OCFile file ) {
final List < String > unsupportedTypes = new LinkedList < String > ( ) ;
unsupportedTypes . add ( STRING0 ) ;
+ unsupportedTypes . add ( STRING1 ) ;
unsupportedTypes . add ( STRING2 ) ;
unsupp... | Fixed text preview filter to take into account local knowledge about MIME types |
<nb> public class MetricInstrumentedStore implements KeyColumnValueStore {
public KeyIterator call ( ) throws StorageException {
KeyIterator ki = backend . getKeys ( query , txh ) ;
if ( null != p ) {
- return MetricInstrumentedIterator . of ( ki , p + STRING0 + M_ITERATOR ) ;
+ return MetricInstrumentedItera... | Fix broken getSlice iterator Metric names |
<nb> public class RobolectricTestRunnerSelfTest {
@ test
@ config ( qualifiers = STRING0 )
public void internalBeforeTest_testValuesResQualifiers ( ) {
- String expectedQualifiers = STRING0 + TestRunners . WithDefaults . SDK_TARGETED_BY_MANIFEST ;
- assertThat ( RuntimeEnvironment . getQualifiers ( ) ) . isEq... | Fix test assumptions to be agnostic of any default qualifiers set |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
im... | Fixed gates rendering incorrectly in GUIs |
<nb> public class PrestoResultSet
new DateTimeParser [ ] {
DateTimeFormat . forPattern ( STRING0 ) . getParser ( ) ,
DateTimeFormat . forPattern ( STRING1 ) . getParser ( ) ,
- }
- )
+ } )
. toFormatter ( )
. withOffsetParsed ( ) ;
private static final DateTimeFormatter TIMESTAMP_FORMATTER = DateTim... | Fix formatting of PrestoResultSet |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class MutableCommit implements Commit {
}
public void setParents ( @ notnull List < Commit > parents ) {
- this . parents = parents ;
+ this . parents = OneElementList... | add usage OneElementList in MutableCommit |
<nb> public abstract class WindowOrientationListener {
SINGLE
SINGLE
SINGLE
- private final int [ ] MAX_TRANSITION_TILT = new int [ ] { MAX_TILT , MAX_TILT , NUMBER0 , MAX_TILT } ;
+ private final int [ ] MAX_TRANSITION_TILT = new int [ ] { MAX_TILT , MAX_TILT , MAX_TILT } ;
SINGLE
SINGLE | Fix a minor bug in transitions to left edge up landscape |
<nb> public class GBM extends SharedTree < GBMModel , GBMModel . GBMParameters , GBMModel . GBM
case bernoulli :
if ( _nclass != NUMBER0 COMMENT )
error ( STRING0 , STRING1 ) ;
- else if ( _response != null )
+ else if ( _response != null ) {
SINGLE
_initialPrediction = Math . log ( mean / ( FLOAT0 - mean... | Add unimpl for offset bernoulli Need to fix the initial value |
<nb> public final class ClientAuthenticationHandler extends AbstractPreAndPostProcess
return new HandlerResult (
this ,
new BasicCredentialMetaData ( credential ) ,
- this . principalFactory . createPrincipal ( userProfile . getId ( ) , userProfile . getAttributes ( ) ) ) ;
+ this . principalFactory . createP... | fixed merge issue |
<nb> public final class BluetoothAdapter {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
public static final String EXTRA_STATE =
STRING0 ;
<nb> public final class BluetoothAdapter {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
public static final Str... | Fix make update api |
<nb> public class ObjectMapperFactory {
COMMENT
COMMENT
public ObjectMapper build ( JsonFactory factory ) {
- final ObjectMapper mapper = new ObjectMapper ( factory ) ;
+ return configure ( new ObjectMapper ( factory ) ) ;
+ }
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ObjectMa... | Add ObjectMapperFactory configure |
<nb> public class SubProcessParser implements BpmnXMLConstants {
if ( ATTRIBUTE_VALUE_FALSE . equalsIgnoreCase ( exclusiveString ) ) {
notExclusive = true ;
}
-
- boolean forCompensation = false ;
- String compensationString = xtr . getAttributeValue ( ACTIVITI_EXTENSIONS_NAMESPACE , ATTRIBUTE_ACTIVITY_ISFO... | Revert IsForCompensation Support for SubProcess Parsing |
<nb> public class TerrainLodControl extends AbstractControl {
}
if ( cameras != null ) {
- if ( cameraLocations . isEmpty ( ) && ! cameras . isEmpty ( ) ) {
- for ( Camera c : cameras ) SINGLE
- {
- cameraLocations . add ( c . getLocation ( ) ) ;
- }
+ cameraLocations . clear ( ) ;
+ for ( Camera c ... | TerrainLodControl no longer caches camera positions |
<nb> public class AjpAprProcessor extends AbstractAjpProcessor < Long > {
try {
SINGLE
if ( ! readMessage ( requestHeaderMessage , ! keptAlive ) ) {
- SINGLE
- SINGLE
- SINGLE
break ;
}
SINGLE | Remove comment to align with BIO and NIO to aid future refactoring |
<nb> public class GrailsCoreDependencies {
if ( java5compatible ) {
compileDependencies = new ArrayList < Dependency > ( compileDependencies ) ;
- runtimeDependencies . add ( new Dependency ( STRING0 , STRING1 , jaxbVersion , true ) ) ;
+ compileDependencies . add ( new Dependency ( STRING0 , STRING1 , jaxbVe... | fix problem adding dependency to wrong scope |
<nb> public interface AsyncLoadingCache < K , V > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improve AsyncLoadingCache getAll JavaDoc |
<nb> public class Artifact
return owner ;
}
+ @ skylarkcallable ( name = STRING0 , structField = true , allowReturnNones = true ,
+ doc = STRING1
+ )
+ public Label getOwnerLabel ( ) {
+ return owner . getLabel ( ) ;
+ }
+
COMMENT
COMMENT
COMMENT
<nb> public class ArtifactTest {
}
@ te... | Expose artifact owner label to Skylark |
<nb> public class PLWJGL extends PGL {
RGBA4 = GL11 . GL_RGBA4 ;
RGB5_A1 = GL11 . GL_RGB5_A1 ;
RGB565 = ARBES2Compatibility . GL_RGB565 ;
+ RGB8 = GL11 . GL_RGB8 ;
+ RGBA8 = GL11 . GL_RGBA8 ;
+ ALPHA8 = GL11 . GL_ALPHA8 ;
READ_ONLY = GL15 . GL_READ_ONLY ;
WRITE_ONLY = GL15 . GL_WRITE_ONLY ;
<nb> pub... | added a couple of missing GL constants |
<nb> public class Androlib {
}
public static String getVersion ( ) {
- return VERSION ;
+ return ApktoolProperties . get ( STRING0 ) ;
}
private File [ ] parseUsesFramework ( Map < String , Object > usesFramework )
<nb> public class Androlib {
new String [ ] { STRING1 , STRING2 } ;
private final s... | read version from apktool properties |
<nb> public class NestedScrollView extends FrameLayout implements NestedScrollingPare
return true ;
}
- COMMENT
- COMMENT
- COMMENT
- if ( getScrollY ( ) == NUMBER0 && ! ViewCompat . canScrollVertically ( this , NUMBER1 ) ) {
- return false ;
- }
-
switch ( action & MotionEventCompat . ACTION_MASK... | Allow NestedScrollView to always intercept touches |
<nb> class TypeRepr {
@ override
public ClassType read ( @ notnull DataInput in ) throws IOException {
final AbstractType read = delegate . read ( in ) ;
- assert read instanceof ClassType ;
- return ( ClassType ) read ;
+ if ( read instanceof ClassType ) {
+ return ( ClassType ) read ;
+ }
+ throw ne... | throw proper exception for better recovery from corrupted storages |
<nb> public class UsageStatsService extends SystemService implements
mAppIdleParoled = paroled ;
if ( DEBUG ) Slog . d ( TAG , STRING0 + mAppIdleParoled ) ;
if ( paroled ) {
+ postParoleEndTimeout ( ) ;
+ } else {
mLastAppIdleParoledTime = checkAndGetTimeLocked ( ) ;
postNextParoleTimeout ( ) ;
}
<nb>... | Fix parole scheduling bugs |
<nb> public class FileManagerImpl implements FileManager {
public PsiFile getCachedPsiFile ( @ notnull VirtualFile vFile ) {
ApplicationManager . getApplication ( ) . assertReadAccessAllowed ( ) ;
LOG . assertTrue ( vFile . isValid ( ) ) ;
- LOG . assertTrue ( ! myDisposed ) ;
+ if ( myDisposed ) {
+ LOG . ... | added error message to assertion |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BitmapFontLoader extends AsynchronousAssetLoader < BitmapFont , Bitmap
textureParams . magFilter = parameter . magFilter ;
}
- AssetDescriptor descriptor = new AssetDescriptor... | Use same resolver for dependencies |
<nb> public class StandardSession implements ISession , Parser . Listener , ISession . Cont
}
else
{
- stream . updateCloseState ( data . isClose ( ) ) ;
if ( stream . isClosed ( ) )
removeStream ( stream ) ;
}
<nb> public class StandardStream implements IStream
@ override
public void data ( DataInf... | Fixed update of stream closed status in case of data frames |
<nb> public class JmeDesktopSystem extends JmeSystemDelegate {
case Canvas :
ctxClazz = ( Class < ? extends JmeContext > ) Class . forName ( STRING0 ) ;
break ;
+ case OffscreenSurface :
+ ctxClazz = ( Class < ? extends JmeContext > ) Class . forName ( STRING1 ) ;
+ break ;
default :
throw new IllegalAr... | Respect the JmeContext Type for OffscreenSurface value when the JmeSystem gets a request for a context |
<nb> public class ReplicaSetStatus {
sb . append ( STRING0 ) . append ( _setName . get ( ) ) ;
sb . append ( STRING1 ) . append ( new Date ( _updater . getNextResolveTime ( ) ) . toString ( ) ) ;
sb . append ( STRING2 ) . append ( _replicaSetHolder ) ;
+ sb . append ( STRING3 ) . append ( updaterIntervalMS ) ; ... | Added static field value to ReplicaSetStatus toString |
<nb> public class BlurDialogFragment extends DialogFragment {
@ override
public void onResume ( ) {
super . onResume ( ) ;
- if ( mBlurredBackgroundView == null ) {
+ if ( mBlurredBackgroundView == null || getRetainInstance ( ) ) {
mBluringTask = new BlurAsyncTask ( ) ;
mBluringTask . execute ( ) ;
} | Fix blurring when Fragment is retained |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BeanPropertyTest {
@ test
public void testGet2 ( ) throws Exception {
- try {
- JournalContentUtil . getJournalContent ( ) ;
-
- Asser... | remove references from portal tests |
<nb> public class PeopleListFragment extends Fragment {
}
@ override
+ public long getItemId ( int position ) {
+ Person person = getPerson ( position ) ;
+ if ( person == null ) {
+ return - NUMBER0 ;
+ }
+ return person . getPersonID ( ) ;
+ }
+
+ @ override
public PeopleViewHolder onCreateV... | Optimize PeopleAdapter by using stable ids |
<nb> public class DefaultPassConfig extends PassConfig {
}
}
+ SINGLE
+ SINGLE
+ if ( options . smartNameRemoval ) {
+ passes . add ( smartNamePass2 ) ;
+ }
+
if ( options . collapseAnonymousFunctions ) {
passes . add ( collapseAnonymousFunctions ) ;
}
<nb> public class DefaultPassConfig exten... | Reapply second run of smart name removal after smart name removal fixes |
<nb> public class FieldValueFactorFunction extends ScoreFunction {
@ override
public String toString ( ) {
- if ( this == NONE ) {
- return STRING0 ;
- }
return super . toString ( ) . toLowerCase ( Locale . ROOT ) ;
}
} | Fix malformed query generation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
SINGLE
SINGLE | Document WebView Metrics opt out API |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAM... | Removed unused import |
<nb> public class SourceLineResultSetIteratorTest {
public void should_ignore_lines_already_handled ( ) throws Exception {
db . prepareDbUnit ( getClass ( ) , STRING0 ) ;
- SourceLineResultSetIterator iterator = SourceLineResultSetIterator . create ( dbClient , db . openConnection ( ) ,
- NUMBER0 ) ;
+ Sour... | Fix DB connection leak |
<nb> final class SVDPreference extends GenericPreference {
SVDPreference ( long userID , long itemID , float value , double cache ) {
super ( userID , itemID , value ) ;
- Preconditions . checkArgument ( ! Double . isNaN ( cache ) , STRING0 + cache ) ;
- this . cache = cache ;
+ setCache ( cache ) ;
}
... | Avoid a String allocation per Tamas |
<nb> public class StackingPopupDispatcherImpl extends StackingPopupDispatcher impleme
if ( ! popup . canClose ( ) ) {
return false ;
}
+
+ SINGLE
+ if ( MenuSelectionManager . defaultManager ( ) . getSelectedPath ( ) . length > NUMBER0 ) {
+ return false ;
+ }
+
popup . cancel ( mouseEvent ) ;
} | click on context menu item outside of the popup shouldn t close it |
<nb> public class NavigationBarView extends LinearLayout {
final static boolean NAVBAR_ALWAYS_AT_RIGHT = true ;
+ SINGLE
+ final static boolean SLIPPERY_WHEN_DISABLED = true ;
+
final static boolean ANIMATE_HIDE_TRANSITION = false ; SINGLE
protected IStatusBarService mBarService ;
<nb> public class ... | Fix Google Now on lockscreen |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class DecompiledNavigationUtils {
VirtualFile virtualFile = findVirtualFileContainingDescriptor ( project , referencedDescr... | Removed unnecessary long checks |
<nb> public class GroupByQueryHelper
@ override
public List accumulate ( List accumulated , T in )
{
+ if ( in == null ) {
+ throw new ISE ( STRING0 ) ;
+ }
accumulated . add ( in ) ;
return accumulated ;
} | add null check early to catch root cause |
<nb> public class MinimalExpandableExampleActivity extends AppCompatActivity {
for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
MyGroupItem group = new MyGroupItem ( i , STRING0 + i ) ;
for ( int j = NUMBER0 ; j < NUMBER2 ; j ++ ) {
- group . children . add ( new MyChildItem ( i , STRING1 + i ) ) ;
+ group . ch... | Fix wrong child item initialization bug in minimal expandable demo |
<nb> public class SlidingUpPanelLayout extends ViewGroup {
COMMENT
COMMENT
COMMENT
- private PanelState mLastNotDraggingSlideState = null ;
+ private PanelState mLastNotDraggingSlideState = DEFAULT_SLIDE_STATE ;
COMMENT
COMMENT | Have a default state for mLastNotDraggingSlideState |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MapStoreTest extends HazelcastTestSupport {
}
@ test
- @ category ( SlowTes... | move testIssue1085WriteBehindBackupWithLongRunnigMapStore to ProblematicTest category |
<nb> public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
- protected void onOutputFormatChanged ( android . media . MediaFormat outputFormat ) {
+ protected void onOutputFormatChanged ( android . media . MediaFormat outputFormat )
+ t... | Allow onOutputFormatChanged to throw ExoPlaybackException |
<nb>
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMME... | Fix license header for SimpleQueryParser |
<nb> public class CreateSimpleGraph {
WebResource resource = Client . create ( ) . resource ( propertyUri ) ; SINGLE
ClientResponse response = resource . accept ( MediaType . APPLICATION_JSON ) . type ( MediaType . APPLICATION_JSON ) . entity ( toJsonStringLiteral ( propertyValue ) ) . put ( ClientResponse . clas... | Moved some output code into a snippet |
<nb> public class Block extends Message {
if ( transactions . isEmpty ( ) )
throw new VerificationException ( STRING0 ) ;
maybeParseTransactions ( ) ;
+ if ( this . getMessageSize ( ) > MAX_BLOCK_SIZE )
+ throw new VerificationException ( STRING1 ) ;
checkTransactions ( ) ;
checkMerkleRoot ( ) ;
checkSi... | Verify MAX_BLOCK_SIZE in verifyTransactions |
<nb> package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT | Fix a Javadoc error |
<nb> public class DreamManagerService
public ComponentName [ ] getDreamComponents ( ) {
SINGLE
String names = Settings . Secure . getString ( mContext . getContentResolver ( ) , SCREENSAVER_COMPONENTS ) ;
- return componentsFromString ( names ) ;
+ return names == null ? null : componentsFromString ( names ) ... | Handle missing db value |
<nb> public class BottomBar extends FrameLayout implements View . OnClickListener , View
}
}
- @ override
- protected void onSizeChanged ( int w , int h , int oldw , int oldh ) {
- super . onSizeChanged ( w , h , oldw , oldh ) ;
- Log . d ( STRING0 , STRING1 ) ;
- }
-
private void updateSelectedTab ... | Removed testing code |
<nb>
COMMENT
COMMENT
COMMENT
- http: SINGLE
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix license header |
<nb> public final class ProjectCustomDashboard extends DashboardTemplate {
return dashboard ;
}
- private void addFirstColumn ( Dashboard dashboard ) {
+ private static void addFirstColumn ( Dashboard dashboard ) {
dashboard . addWidget ( STRING0 , NUMBER0 ) ;
dashboard . addWidget ( STRING1 , NUMBER0 ) ;... | Fix minor quality flaws |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RadiosResource extends RestResource {
inputData . put ( STRING0 , rir . radioId ( ) ) ;
}
- final Input mongoInput = ne... | Replacing reference to implementation class with call to service |
<nb> public class ConferenceChatSession
ChatRoom chatRoom = chatRoomWrapper . getChatRoom ( ) ;
chatRoom . removeMemberPresenceListener ( this ) ;
chatRoom . removePropertyChangeListener ( this ) ;
+ chatRoom . removeConferencePublishedListener ( this ) ;
if ( ConfigurationUtils . isLeaveChatRoomOnWindowClo... | Removes ConferencePublishedListener when chat window is closed |
<nb> public class ApiComponentGeneratorMojo extends AbstractApiMethodBaseMojo {
}
}
- SINGLE
- if ( ! aliases . isEmpty ( ) ) {
- final List < ApiMethodAlias > apiAliases = api . getAliases ( ) ;
- if ( apiAliases . isEmpty ( ) ) {
- api . setAliases ( aliases ) ;
- } else {
- apiAliases . addAll ( ... | Allow users to override API method aliases per proxy |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class S3Client extends DB {
<nb> public class S3Client extends DB {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMME... | added doc about fieldlength and fieldcount |
<nb> public interface UsersResources {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed Wrong javadoc for twitter api UserResources lookupUsers |
<nb> public class OIndexManager extends ODocumentWrapperNoClass {
SINGLE
create ( ) ;
- document . reset ( ) ;
( ( ORecordId ) document . getIdentity ( ) ) . fromString ( document . getDatabase ( ) . getStorage ( ) . getConfiguration ( ) . indexMgrRecordId ) ;
super . load ( STRING0 ) ;
return this ;
<n... | Fixed bug on remote schema loading with cache |
<nb> public class XaLogicalLog
readAndAssertLogHeader ( buffer , fileChannel , currentVersion ) ;
if ( xidIdentMap . size ( ) > NUMBER0 )
{
- fileChannel . position ( getFirstStartEntry ( endPosition ) ) ;
+ long firstEntryPosition = getFirstStartEntry ( endPosition ) ;
+ fileChannel . position ( firstEntry... | Fixed problem with message log spam during large transactions |
<nb> public class FileResource implements Resource {
if ( res == - NUMBER0 ) {
SINGLE
pooled . free ( ) ;
+ IoUtils . safeClose ( fileChannel ) ;
callback . onComplete ( exchange , sender ) ;
return ;
} | Add missing close call |
<nb>
package NAMESPACE ;
public class EventException extends Exception {
- private final Throwable cause ;
+ private static final long serialVersionUID = NUMBER0 ;
+ private final Throwable cause ;
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
public class InvalidDescriptionExceptio... | Added private static final UID |
<nb> public class Http11AprProtocol extends AbstractHttp11Protocol < Long > {
@ override
protected String getNamePrefix ( ) {
- return ( STRING0 ) ;
+ if ( isSSLEnabled ( ) ) {
+ return ( STRING1 ) ;
+ } else {
+ return ( STRING0 ) ;
+ }
}
<nb> public class Http11Nio2Protocol extends AbstractH... | Tweak connector names to make it clearer if SSL has been enabled |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class ModuleTestCase extends ESTestCase {
+ public abstract class ModuleTestCase extends ESTestCase {
COMMENT
public void assertBinding ( Module module , Class to , Class clazz ) { | Make module testcase abstract to appease test naming convetion checks |
<nb> public class DashMapFragment extends DashBaseFragment implements IMapDownloaderC
if ( view == null ) {
return ;
}
- Bitmap image = getMyApplication ( ) . getResourceManager ( ) . getRenderer ( ) . getBitmap ( ) ;
- ImageView map = ( ImageView ) view . findViewById ( R . id . map_image ) ;
+ final Bitma... | Fixed bug with MapFragment sets image in wrong thread |
<nb> public class StringUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean isFullJID ( String jid ) {
+ if ( parseName ( jid ) . length ( ) <= NUMBER0 || parseServer ( jid ) . length ( ) <= NUMBER0
+ || parseResource ( jid ) . length ( ) <= NUMBER0 ) {
+ ... | Added isFullJID helper in StringUtils |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
mLastY = Integer . MIN_VALUE ;
}
- if ( performButtonActionOnTouchDown ( ev ) && ( mTouchMode == TOUCH_MODE_DOWN ) ) {
+ if ( mTouchMode == TOUCH_MODE_DOWN && mMotionPosition != INVALID_POSITION
+ && performButtonAction... | Not create context menu when mouse right click outside list grid items |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.