diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Adding link back to Firebase auth docs that include snippets from this file |
<nb> public class MaterialLoader implements AssetLoader {
textures [ texUnit ] . setImage ( loadedTexture . getImage ( ) ) ;
textures [ texUnit ] . setMinFilter ( loadedTexture . getMinFilter ( ) ) ;
+ textures [ texUnit ] . setMagFilter ( loadedTexture . getMagFilter ( ) ) ;
+ textures [ texUnit ] . setAniso... | inherit more parameters from TextureKey |
<nb> public class BuildCraftTransport extends BuildCraftMod {
SINGLE
GameRegistry . addShapelessRecipe ( new ItemStack ( pipeWaterproof , NUMBER0 ) , new ItemStack ( Items . dye , NUMBER0 , NUMBER1 ) ) ;
if ( additionalWaterproofingRecipe ) {
- GameRegistry . addShapelessRecipe ( new ItemStack ( pipeWaterproof ... | Slimeballs don t have meta |
<nb> public final class ScanSettings implements Parcelable {
mScanResultType = scanResultType ;
mReportDelayMillis = reportDelayMillis ;
mNumOfMatchesPerFilter = numOfMatchesPerFilter ;
- mMatchMode = numOfMatchesPerFilter ;
+ mMatchMode = matchMode ;
}
private ScanSettings ( Parcel in ) { | Fix a bug in ScanSettings constructor |
<nb> public abstract class KVDocument extends KVValue < KVDocument > implements Iterable
@ override
public String toString ( ) {
- return Iterables . toString ( this ) ;
+ StringBuilder toStringBuilder = new StringBuilder (
+ Iterables . toString ( this ) ) ;
+
+ toStringBuilder . setCharAt ( NUMBER0 , ... | Added brackets to KVDocument toString |
<nb> public class Journal {
COMMENT
COMMENT
public String getCompletedLogFilePath ( int logNumber ) {
- return getCompletedDirectory ( ) + String . format ( STRING0 , mEntryLogFilenameBase , logNumber ) ;
+ return getCompletedDirectory ( ) + String . format ( STRING1 , mEntryLogFilenameBase , logNumber ) ;
... | Fix journal log filename generator |
<nb> public class LintManager
return ;
if ( uiPrefs_ . lintOnSave ( ) . getValue ( ) )
- lint ( true , false ) ;
+ lint ( false , false ) ;
}
} ) ;
} | don t show markers on save need explicit dialog |
<nb> public final class LongTaskExecutor {
}
public boolean cancel ( ) {
- if ( inBackground ) {
+ COMMENT
if ( future != null && future . cancel ( false ) ) {
return true ;
}
- }
+ COMMENT
if ( task != null ) {
return task . cancel ( ) ;
} | Fix LongTask cancelling |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove unused imports |
<nb> public class InvokeDynamicWriter extends InvocationWriter {
) {
SINGLE
boolean containsSpreadExpression = AsmClassGenerator . containsSpreadExpression ( arguments ) ;
- if ( containsSpreadExpression ) {
- super . makeCall ( origin , receiver , message , arguments , adapter , safe , spreadSafe , implicitT... | start handling spread expressions inmethod calls |
<nb> public class FeaturesConfig
return this ;
}
+ public boolean isExperimentalSyntaxEnabled ( )
+ {
+ return experimentalSyntaxEnabled ;
+ }
+
@ legacyconfig ( STRING0 )
@ config ( STRING1 )
public FeaturesConfig setExperimentalSyntaxEnabled ( boolean enabled )
<nb> public class FeaturesConfig... | Reorder methods in FeaturesConfig |
<nb> public final class WineQualityIT extends AbstractComputationIT {
}
double mostImportant = Doubles . max ( importances ) ;
assertTrue ( importances [ NUMBER0 ] == mostImportant || importances [ NUMBER1 ] == mostImportant ) ;
- assertTrue ( importances [ NUMBER2 ] > FLOAT0 ) ;
assertTrue ( importances [ NU... | Loosen IT again to make it less flaky |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class TestServlet extends HttpServlet {
out . println ( STRING0 ) ;
Client client = ClientBuilder . newClient ( ) ;
WebTarget target = client
- . register ( new Loggi... | Removing GlassFish specific dependency |
<nb> public class RCFileThriftOutputFormat extends RCFileOutputFormat {
return metadata . build ( ) ;
}
- private class ProtobufWriter extends RCFileOutputFormat . Writer {
+ private class ThriftWriter extends RCFileOutputFormat . Writer {
private ByteStream . Output byteStream = new ByteStream . Output (... | Rename RCFileThriftOutputFormat ProtobufWriter RCFileThriftOutputFormat ThriftWriter |
<nb> class NioProviderMetadata {
os = os . toLowerCase ( ) ;
vendor = vendor . toLowerCase ( ) ;
- System . out . println ( version ) ;
- System . out . println ( vminfo ) ;
- System . out . println ( os ) ;
- System . out . println ( vendor ) ;
- System . out . println ( provider ) ;
+ SINGLE
+ SIN... | Commented out debugging purpose printlns |
<nb> public class WebInfConfiguration implements Configuration
SINGLE
Resource web_inf = web_app . addPath ( STRING0 ) ;
- if ( web_inf . exists ( ) && web_inf . isDirectory ( ) && ( web_inf . getFile ( ) == null || ! web_app . getFile ( ) . isDirectory ( ) ) )
+ if ( web_inf . exists ( ) && web_inf . isDirec... | Improved handling of overlays and resourceCollections |
<nb> public class TextField extends Widget {
COMMENT
public void copy ( ) {
- if ( hasSelection ) {
+ if ( hasSelection && ! passwordMode ) {
int minIndex = Math . min ( cursor , selectionStart ) ;
int maxIndex = Math . max ( cursor , selectionStart ) ;
clipboard . setContents ( text . substring ( minIn... | Update TextField java can t copy passwords ANYMORE |
<nb> public class MainActivityTest extends ActivityInstrumentationTestCase2 < MainActiv
public void testGoToPreferences ( ) {
openNavDrawer ( ) ;
- solo . clickOnMenuItem ( solo . getString ( R . string . settings_label ) ) ;
+ solo . clickOnText ( solo . getString ( R . string . settings_label ) ) ;
solo .... | Fix UI test |
<nb> public class TaskAdapter extends CursorAdapter implements Filterable {
COMMENT
COMMENT
protected synchronized Collection < TYPE > initialize ( long taskId ) {
- if ( cache . containsKey ( taskId ) )
+ if ( cache . containsKey ( taskId ) && cache . get ( taskId ) != null )
return get ( taskId ) ;
cach... | Fix for NPE during task adapter initialization |
<nb> public class WifiWatchdogStateMachine extends StateMachine {
SINGLE
loge ( STRING0 + se ) ;
success = true ;
+ } catch ( IllegalArgumentException ae ) {
+ log ( STRING0 + ae ) ;
+ success = true ;
}
return success ; | handle exception from ArpPeer |
<nb> public class Group implements Closeable {
}
if ( immutable ) {
if ( ! hasTable ( name ) ) {
- throwImmutable ( ) ;
+ throw new IllegalStateException ( STRING0 +
+ STRING1 + name ) ;
}
} | Improved error message when trying to access unknown tables outside a transaction |
<nb> public class GenericCursor implements Cursor
return FINISHED ;
}
- AdvanceResult result = blockCursor . advanceToPosition ( newPosition ) ;
- if ( result == FINISHED ) {
- SINGLE
- throw new IllegalStateException ( STRING0 ) ;
- }
- return result ;
+ return blockCursor . advanceToPosition ( new... | Allow GenericCursor to advance past the last position |
<nb> public final class AnimatorProxy extends Animation {
final float sX = mScaleX ;
final float sY = mScaleY ;
- if ( ( sX != NUMBER0 ) || ( sX != NUMBER0 ) ) {
+ if ( ( sX != NUMBER0 ) || ( sY != NUMBER0 ) ) {
final float deltaSX = ( ( sX * w ) - w ) / FLOAT0 ;
final float deltaSY = ( ( sY * h ) - h ) /... | Fixed bug where scaleX is tested twice instead of scaleX scaleY |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
SINGLE
SINGLE
- if ( attrs . type == TYPE_INPUT_METHOD && ! win . getGivenInsetsPendingLw ( ) ) {
+ if ( attrs . type == TYPE_INPUT_METHOD && win . isVisibleOrBehindKeyguardLw ( )
+ && ! win . getGivenInsetsPendingLw ( ) ) {
setLastInpu... | Don t set keyboard insets if keyboard is hidden |
<nb> public class SocketEchoTest extends AbstractSocketTest {
testSimpleEcho0 ( sb , cb , false , false ) ;
}
- @ test ( timeout = NUMBER0 )
+ @ test SINGLE
public void testSimpleEchoWithAdditionalExecutor ( ) throws Throwable {
run ( ) ;
}
<nb> public class SocketEchoTest extends AbstractSocketTest {... | Disable the timeout of some tests in SocketEchoTest to find out why it is hanging in CI |
<nb> public class RememberMeBeanDefinitionParser implements BeanDefinitionParser {
}
if ( tokenValiditySet ) {
- services . getPropertyValues ( ) . addPropertyValue ( STRING0 , Integer . parseInt ( tokenValiditySeconds ) ) ;
+ services . getPropertyValues ( ) . addPropertyValue ( STRING0 , new Integer ( token... | Fixed autoboxing issue |
<nb> public abstract class BaseMod implements cpw . mods . fml . common . modloader . BaseModPr
return null ;
}
+ @ sideonly ( CLIENT )
public void clientCustomPayload ( NetClientHandler handler , Packet250CustomPayload packet )
{ | Add missing SideOnly in BaseMod |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> class StartupInfoLogger {
private StringBuilder getRunningMessage ( ) {
StringBuilder message = new StringBuilder ( ) ;
message . append ( STRING0 ) ;
- message . append ( getVersion ( SpringApplication . class ) ) ;
+ message . appen... | Fix class tangle |
<nb> public class Master implements Callback
return false ;
}
- public void rotateLogAndPushToSlaves ( ) throws IOException
+ public synchronized void rotateLogAndPushToSlaves ( ) throws IOException
{
if ( slaveList . size ( ) == NUMBER0 )
{
return ;
}
+ for ( XaDataSource xaDs : xaDsMgr . getAllR... | Fixed bug that caused push of logs to slave to roate log for each slave |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class InferenceSession {
}
}
if ( lub != null ) {
- inf... | open top level captured wildcards |
<nb> public class MockTransportService extends TransportService {
@ override
public Transport start ( ) throws ElasticsearchException {
- return transport . start ( ) ;
+ transport . start ( ) ;
+ return this ;
}
@ override
public Transport stop ( ) throws ElasticsearchException {
- return transpo... | TEST return the correct transport instance in mock transport |
<nb> public class WorkSource implements Parcelable {
mNum = NUMBER0 ;
}
+ @ override
+ public boolean equals ( Object o ) {
+ return o instanceof WorkSource && ! diff ( ( WorkSource ) o ) ;
+ }
+
+ @ override
+ public int hashCode ( ) {
+ int result = NUMBER0 ;
+ for ( int i = NUMBER0 ; i < mNum... | Implement equals and hashCode like a good little object |
<nb> public class Rectangle implements Cloneable {
throw new AssertionError ( ) ;
}
}
+
+ public String toString ( ) {
+ return getClass ( ) . getSimpleName ( ) + STRING0 + x + STRING1 + y + STRING2 + width + STRING3 + height + STRING4 ;
+ }
} | Added Rectangle toString |
<nb> public class Resources {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Resources {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Resources {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public cl... | Remove remaining doc references to StyledAttributes |
<nb> public class GLDualActivity extends Activity {
super . onCreate ( icicle ) ;
View root = getLayoutInflater ( ) . inflate ( R . layout . gldual_activity , null ) ;
mGLView = ( GLSurfaceView ) root . findViewById ( R . id . gl1 ) ;
+ mGLView . setEGLConfigChooser ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER2 , NUM... | Make our choice of surface explicit |
<nb> public class ClassDefinition
Iterable < Parameter > parameters )
{
MethodDefinition methodDefinition = new MethodDefinition ( this , access , name , returnType , parameters ) ;
+ for ( MethodDefinition method : methods ) {
+ if ( name . equals ( method . getName ( ) ) && method . getParameterTypes ( ) . ... | Add check for duplicate method declaration |
<nb> public class DefaultObjectConfigurationAction implements ObjectConfigurationActi
Project project = ( Project ) target ;
project . getPlugins ( ) . apply ( pluginClass ) ;
} else {
- throw new UnsupportedOperationException ( ) ;
+ throw new UnsupportedOperationException ( String . format ( STRING0 , plugi... | Improved error message when an attempt is made to apply a plugin to something that is not a project |
<nb> public class LocalIndexesFragment extends OsmandExpandableListFragment {
public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) {
SINGLE
SINGLE
+ int test1 = listAdapter . getGroupCount ( ) ;
+ int test2 = getDownloadActivity ( ) . getLocalIndexInfos ( ) . size ( ) ;
SINGLE
SINGLE
SI... | check out variables |
<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 ;
import NAMESPACE ;
import N... | Fixed some warnings |
<nb> public class ActivityMain extends Activity implements OnItemSelectedListener , Co
if ( PrivacyManager . isDangerousRestriction ( restrictionName ) )
return getResources ( ) . getColor ( getThemed ( R . attr . color_dangerous ) ) ;
else {
- TypedArray array = getTheme ( ) . obtainStyledAttributes ( new int ... | Fix resource leak |
<nb> public class PermanentGraphImpl < CommitId > implements PermanentGraph < CommitId > , P
} ;
}
else {
- final TIntHashSet branchNodes = new TIntHashSet ( ) ;
+ final Set < CommitId > branchNodes = ContainerUtil . newHashSet ( ) ;
myBranchesGetter . walkBranch ( myPermanentCommitsInfo . getNodeId ( head ... | vcs log use more memory but work faster when CommitId is not integer |
<nb> public abstract class QueryBuilders {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static FuzzyQueryBuilder fuzzyQuery ( String name , Object value ) {
+ return new FuzzyQueryBuilder ( name , value ) ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abs... | Added QueryBuilders fuzzyQuery method that accepts value parameter as an object |
<nb> public abstract class ChangesTreeList < T > extends JPanel implements TypeSafeDataP
myTree . addKeyListener ( new KeyAdapter ( ) {
@ override
public void keyPressed ( KeyEvent e ) {
- if ( KeyEvent . VK_ENTER == e . getKeyCode ( ) ) {
+ if ( KeyEvent . VK_ENTER == e . getKeyCode ( ) && e . getModifiers (... | improve ChangesTreeList selection in Tree mode |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo in BaseScriptASTTransformation GroovyDoc |
<nb> import NAMESPACE ;
public class SpriteBatchTest implements RenderListener , InputListener
{
- int SPRITES = NUMBER0 ;
+ int SPRITES = NUMBER1 / NUMBER2 ;
long startTime = System . nanoTime ( ) ;
int frames = NUMBER3 ;
<nb> import NAMESPACE ;
public class StageTest implements RenderListener , ... | changed some constants |
<nb> public class PackageResourceLoader extends XResourceLoader {
new ValueResourceLoader ( data , STRING0 , STRING1 , ResType . DIMEN ) ,
new ValueResourceLoader ( data , STRING2 , STRING3 , ResType . INTEGER ) ,
new ValueResourceLoader ( data , STRING4 , STRING5 , ResType . INTEGER_ARRAY ) ,
+ new ValueResour... | Add ValueResourceLoader that has item type layout to |
<nb> public class Node implements Serializable , Cloneable {
List < String > answer = new ArrayList < String > ( ) ;
for ( Iterator iter = InvokerHelper . asIterator ( value ) ; iter . hasNext ( ) ; ) {
Object child = iter . next ( ) ;
- if ( child instanceof String ) {
- answer . add ( ( String ) child ) ;
... | improved localText for groovy util Nodes |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
public class HamcrestMatcher... | Added more coverage |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix swapped LAC CID in card inflater |
<nb> public class MonitoringStatus {
} catch ( IOException | ClassNotFoundException | ClassCastException e ) {
if ( e instanceof InvalidClassException ) {
LogManager . d ( TAG , STRING0 ) ;
- } else LogManager . e ( TAG , STRING1 , e . getMessage ( ) ) ;
+ } else LogManager . e ( TAG , STRING2 , e . getMessag... | Missing log arguments due to typo error |
<nb> public interface PeriodPrinter {
COMMENT
COMMENT
COMMENT
- int calculatePrintedLength ( ReadablePeriod period , Locale iLocale ) ;
+ int calculatePrintedLength ( ReadablePeriod period , Locale locale ) ;
COMMENT
COMMENT
<nb> public interface PeriodPrinter {
COMMENT
COMMENT
COMMENT
- int c... | Fix parameter names |
<nb> public class FormatProcessor {
if ( isReformatSelectedRangesContext ( ) ) {
if ( isCurrentBlockAlignmentUsedInRangesToModify ( ) && whiteSpace . isReadOnly ( ) ) {
whiteSpace . setReadOnly ( false ) ;
+ whiteSpace . setLineFeedsAreReadOnly ( true ) ;
}
} | do not touch linefeeds |
<nb> public abstract class ConnectionProxy implements IHikariConnectionProxy
try
{
SINGLE
- final int length = openStatements . size ( ) ;
- for ( int i = NUMBER0 ; i < length ; i ++ )
+ for ( int i = NUMBER0 ; i < openStatements . size ( ) ; i ++ )
{
try
{ | Remove unnecessary optimisation that the JIT will perform anyway |
<nb> public class DefaultAuthenticationEventExecutionPlan implements AuthenticationEv
@ override
public void registerAuthenticationHandlerWithPrincipalResolver ( final AuthenticationHandler handler , final PrincipalResolver principalResolver ) {
if ( principalResolver == null ) {
- LOGGER . debug ( STRING0 , ha... | Fix log statements |
<nb> public class DefaultCamelContext extends ServiceSupport implements ModelCamelCon
if ( componentType . isInstance ( component ) ) {
return componentType . cast ( component ) ;
} else {
- throw new IllegalArgumentException ( STRING0
- + component . getClass ( ) + STRING1 + componentType ) ;
+ String mess... | Avoid NPE in the case getComponent name returns null |
<nb> public class CaptivePortalTracker extends StateMachine {
long responseTimestamp = SystemClock . elapsedRealtime ( ) ;
SINGLE
- boolean isCaptivePortal = urlConnection . getResponseCode ( ) != NUMBER0 ;
+ int rspCode = urlConnection . getResponseCode ( ) ;
+ boolean isCaptivePortal = rspCode != NUMBER0 ... | Add debug and remove SocketTimeoutException |
<nb> public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
}
ByteBuf byteBuf = pipeline ( ) . inboundByteBuffer ( ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ byteBuf . discardReadBytes ( ) ;
+
expandReadBuffer ( byteBuf ) ;
readInProgress = true ; | Fix a which could cause data corruption when using AioSocketChannel |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DarculaLaf extends BasicLookAndFeel {
base . initialize ( ) ;
} catch ( Exception ignore ) { }
myD... | avoid wrong memleak assertion |
<nb> public class PingRunner
{
impl = new AeronPing ( ) ;
}
- else if ( args [ NUMBER0 ] . equalsIgnoreCase ( STRING0 ) )
- {
- impl = new QpidPing ( ) ;
- }
impl . prepare ( ) ;
impl . connect ( ) ;
<nb> public class PongRunner
{
impl = new AeronPong ( ) ;
}
- else if ( args [ NUMBER0 ] .... | Removed Qpid option from ping pong runners |
<nb> public abstract class CardCursorAdapter extends BaseCardCursorAdapter {
Log . d ( TAG , STRING0 ) ;
SINGLE
- if ( mCard . getCardHeader ( ) != null && mCard . getCardHeader ( ) . isButtonExpandVisible ( ) ) {
+ if ( ( mCard . getCardHeader ( ) != null && mCard . getCardHeader ( ) . isButtonExpandVisible ... | Fixed call with a ViewToClickToExpand |
<nb> public class ResizeAndRotateProducer implements Producer < EncodedImage > {
@ visiblefortesting static final int MIN_TRANSFORM_INTERVAL_MS = NUMBER0 ;
private static final float MAX_BITMAP_SIZE = NUMBER1 f ;
+ private static final float ROUNDUP_FRACTION = FLOAT0 / NUMBER2 ;
private final Executor mExec... | Adjust the roundup parameter |
<nb> public class SessionManager extends BasicModule implements ClusterEventListener
COMMENT
COMMENT
public void addSession ( LocalClientSession session ) {
- SINGLE
- localSessionManager . getPreAuthenticatedSessions ( ) . remove ( session . getStreamID ( ) . toString ( ) ) ;
SINGLE
routingTable . addCli... | Prevent session not found errors |
<nb> public class OracleIntegrationTest extends AbstractIntegrationTest {
throw e ;
}
}
- }
+
+ @ override
+ @ test
+ public void testDiffExternalForeignKeys ( ) throws Exception {
+ SINGLE
+ }
+ } | ignore test that is too hard to get passing due to permissions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
public class Authentication {
<nb> public class Authentication {
}
}
} else {
- state = ActorSDK . sharedActor ( ) . getDelegate ( ) . getAuthStartState ( ) ;
+ state = AuthState . AUTH_START ... | revert initial AUTH_START for Authentication |
<nb> public class PropertyCodegen extends GenerationStateAware {
iv . load ( NUMBER0 , OBJECT_TYPE ) ;
paramCode = NUMBER1 ;
}
-
+ ReceiverParameterDescriptor receiverParameter = propertyDescriptor . getReceiverParameter ( ) ;
+ if ( receiverParameter != null ) {
+ paramCode += typeMapper . mapType ( rece... | skip receiver argument |
<nb> import NAMESPACE ;
SINGLE
public void visit ( String name , Object value ) {
- AnnotationElement ae = newAnnotationElement ( name ) ;
- ae . value = EncodedValue . wrap ( cp . wrapEncodedItem ( value ) ) ;
+ if ( value instanceof Object [ ] ) {
+ DexAnnotationVisitor s = visitArray ( name ) ;
+ if ... | fix write array of in annotation |
<nb> class RippleBackground {
public void setup ( int maxRadius , int color , float density ) {
mColorOpaque = color | NUMBER0 ;
- mColorAlpha = Color . alpha ( color ) ;
+ mColorAlpha = Color . alpha ( color ) / NUMBER1 ;
if ( maxRadius != RippleDrawable . RADIUS_AUTO ) {
mHasMaxRadius = true ; | Cut ripple background alpha in half |
<nb> public final class FingerprintTrustManagerFactory extends SimpleTrustManagerFact
int strIdx = i < < NUMBER0 ;
farr [ i ] = ( byte ) Integer . parseInt ( f . substring ( strIdx , strIdx + NUMBER1 ) , NUMBER2 ) ;
}
+ list . add ( farr ) ;
}
return list . toArray ( new byte [ list . size ( ) ] [ ] ) ; | Fixed FingerprintTrustManagerFactory constructor |
<nb> public final class Settings {
public static final String UNLOCK_SOUND = STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String SIP_RECEIVE_CALLS = STRING1 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public... | Add SIP related settings in the Settings System |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
public class ArrayUtil { | add missing copyright header |
<nb> public class UpdateService extends Service {
if ( first == NUMBER0 )
Util . log ( null , Log . WARN , STRING0 + sVersion ) ;
- SINGLE
- PrivacyManager . setSetting ( userId , PrivacyManager . cSettingDangerous , null ) ;
+ if ( dangerous ) {
+ SINGLE
+ PrivacyManager . setSetting ( userId , Privacy... | Wipe template on upgrade |
<nb> class RealmAuthenticationProvider implements ServerAuthenticationProvider {
}
if ( plainSupported ( ) ) {
+ if ( true )
+ throw new IllegalStateException ( STRING0 ) ;
+
return OptionMap . create ( Options . SASL_MECHANISMS , Sequence . of ( PLAIN ) , SASL_POLICY_NOPLAINTEXT , false ) ;
} | Temporarily disable the changes until Remoting is ready to support SSL |
<nb> public class HdmiTimerRecordSources {
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ systemapi
public static class Time extends TimeUnit {
private Time ( int hour , int minute ) {
super ( hour , minute ) ;
<nb> public class HdmiTimerRecordSources {
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ syste... | Add hide and SystemApi to HdmiTimerRecordSources |
<nb> public final class OperatorMerge < T > implements Operator < T , Observable < ? extends
private boolean mayNeedToDrain = false ;
COMMENT
int emitted = NUMBER0 ;
+ final int THRESHOLD = ( int ) ( q . capacity ( ) * FLOAT0 ) ;
public InnerSubscriber ( MergeSubscriber < T > parent , MergeProducer < T > pr... | Clarity about batching request |
<nb> public class RestSwaggerReader {
BodyParameter bp = ( BodyParameter ) parameter ;
if ( verb . getType ( ) != null ) {
- String ref = modelTypeAsRef ( verb . getType ( ) , swagger ) ;
- if ( ref != null ) {
- bp . setSchema ( new RefModel ( ref ) ) ;
+ if ( verb . getType ( ) . endsWith ( STRING0 ) ) ... | Added array support for input body paremeter |
<nb> public final class CommandLineRunnerTest extends TestCase {
COMMENT
COMMENT
COMMENT
- private void compileFiles ( String expectedOutput , FlagEntry < JsSourceType > . . . entries )
+ @ safevarargs
+ private final void compileFiles ( String expectedOutput , FlagEntry < JsSourceType > . . . entries )
t... | Add SafeVarargs to methods that cause warnings |
<nb> public class Robolectric {
return ( ShadowNotification ) Robolectric . shadowOf_ ( other ) ;
}
- public static < E > SparseArray < E > shadowOf ( SparseArray < E > other ) {
+ public static < E > ShadowSparseArray < E > shadowOf ( SparseArray < E > other ) {
SINGLE
- return ( SparseArray < E > ) Robo... | Fixed shadowOf SparseArray |
<nb>
- SINGLE
- SINGLE
package NAMESPACE ;
import NAMESPACE ;
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
package NAMESPACE ; | removed invalid copyright information |
<nb> public class TestBasic {
testBasePlanComplete ( clock . getUTCNow ( ) . getDayOfMonth ( ) ) ;
}
- @ test ( groups = STRING0 , enabled = true )
+ @ test ( groups = STRING0 , enabled = false )
public void testBasePlanCompleteWithBillingDayAlignedWithTrial ( ) throws Exception {
testBasePlanComplete ( c... | Turning Beatrix tests off until we put them in an embedded db |
<nb> public class RouteResultPreparation {
if ( current <= NUMBER0 ) {
current = NUMBER1 ;
}
- if ( ls >= NUMBER0 COMMENT ) {
+ SINGLE
lanes = new int [ current + left + right ] ;
ls = current + left + right ;
for ( int it = NUMBER0 ; it < ls ; it ++ ) {
<nb> public class RouteResultPreparation {
if... | Always show pseudo lanes even if they are not available because the voice is suppressed |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class AbstractBitcoinNetParams extends NetworkParameters {
+
COMMENT
COMMENT
COMMENT
public static final String BITCOIN_SCHEME = STRING0 ;
+ public static final int REWARD_HALVING_INTERVAL = NUMBER0 ;
private static final Logger log = LoggerF... | Add an AbstractBitcoinNetParams isRewardHalvingPoint int height method |
<nb> final class VirtualDisplayAdapter extends DisplayAdapter {
@ override
public void performTraversalInTransactionLocked ( ) {
- if ( mSurface != null ) {
- setSurfaceInTransactionLocked ( mSurface ) ;
- }
+ setSurfaceInTransactionLocked ( mSurface ) ;
}
public void setSurfaceLocked ( Surface surf... | Set the transaction surface even if NULL |
<nb> public class CoreEnvironment {
myEncodingRegistry = new CoreEncodingRegistry ( ) ;
myApplication = new MockApplication ( parentDisposable ) ;
- ApplicationManager . setApplication ( myApplication ,
- new StaticGetter < FileTypeRegistry > ( myFileTypeRegistry ) ,
- new StaticGetter < EncodingRegistry > ... | Allow core and normal environments to co exist |
<nb> public interface Broker
SINGLE
Object instantiateMasterServer ( GraphDatabaseService graphDb ) ;
+
+ void shutdown ( ) ;
} | Added a shutdown method |
<nb> public class RTMSyncService extends SynchronizationService {
}
SINGLE
- if ( task . notes != null && task . notes . length ( ) > NUMBER0 && ! task . equals ( remoteTask . notes ) )
+ if ( task . notes != null && task . notes . length ( ) > NUMBER0 &&
+ ! task . notes . equals ( remoteTask . notes ) )
... | I did not save this file |
<nb> public class FileWatcher {
case CREATE :
case DELETE :
for ( String p : paths ) {
+ myDirtyPaths . dirtyPaths . add ( p ) ;
String parentPath = new File ( p ) . getParent ( ) ;
- myDirtyPaths . dirtyPaths . add ( parentPath != null ? parentPath : p ) ;
+ if ( parentPath != null ) {
+ myDirtyPaths .... | on create delete notifications mark a child dirty as well |
<nb> import NAMESPACE ;
import static NAMESPACE ;
public abstract class AbstractGradleExecuter implements GradleExecuter {
+
+ private final int DEFAULT_DAEMON_IDLE_TIMEOUT_SECS = NUMBER0 * NUMBER1 ;
+
private final List < String > args = new ArrayList < String > ( ) ;
private final List < String > task... | Fixed executer reset WRT daemon idle timeout |
<nb> public final class OAuth20AccessTokenControllerTests {
oauth20WrapperController . handleRequest ( mockRequest , mockResponse ) ;
assertEquals ( NUMBER0 , mockResponse . getStatus ( ) ) ;
assertEquals ( STRING0 + OAuthConstants . INVALID_REQUEST , mockResponse . getContentAsString ( ) ) ;
-
}
@ test | Removed blank line |
<nb> public final class Label implements Comparable < Label > , Serializable , SkylarkPrin
@ skylarkcallable ( name = STRING0 , doc =
STRING1
+ STRING2
- + STRING3
+ + STRING4
+ STRING5
+ STRING6
+ STRING7 | Remove stray ul tag |
<nb> public final class Downsampler {
+ STRING0 + options . inDensity
+ STRING1 + densityMultiplier ) ;
}
- SINGLE
- setInBitmap ( options , pool , expectedWidth , expectedHeight , options . inPreferredConfig ) ;
+ SINGLE
+ SINGLE
+ if ( expectedWidth > NUMBER0 && expectedHeight > NUMBER0 ) {
+ setInB... | Handle invalid sizes in Downsampler |
<nb> public class MasterInfo {
throws InvalidPathException , FileDoesNotExistException {
List < Integer > ret = new ArrayList < Integer > ( pathList . size ( ) ) ;
for ( int k = NUMBER0 ; k < pathList . size ( ) ; k ++ ) {
- int fid = getFileId ( pathList . get ( k ) ) ;
- if ( fid == - NUMBER1 ) {
- throw ... | change createdep imple in master side |
<nb> public abstract class GitHandler {
public void onLineAvailable ( @ nonnls String line , Key outputType ) {
String lowerCaseLine = line . toLowerCase ( ) ;
if ( lowerCaseLine . contains ( STRING0 ) || lowerCaseLine . contains ( STRING1 ) ) {
+ LOG . debug ( STRING2 + line ) ;
myHttpAuthFailed = true ;
}... | git add debug logging to capture the auth failure problem |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class Color {
public static final int BLACK = NUMBER0 ; | Fix typos in comment |
<nb> class DictionaryBuilder {
}
protected String getOption ( String option ) {
- return props . getProperty ( option ) . trim ( ) ;
+ String property = props . getProperty ( option ) ;
+ if ( property == null ) {
+ return null ;
+ }
+ return property . trim ( ) ;
}
protected boolean hasOption (... | prevent NPE on |
<nb> public class CommentDetailFragment extends Fragment implements NotificationFragm
setIdForCommentContainer ( ) ;
showComment ( ) ;
}
- setRemoteBlogId ( note . getSiteId ( ) ) ;
+
+ mRemoteBlogId = note . getSiteId ( ) ;
}
private void setIdForFragmentContainer ( int id ) {
<nb> public class Com... | Remove a private simple one line method that s only used in place |
<nb> public class SecurityConfig implements ConfigAttribute {
return createList ( StringUtils . commaDelimitedListToStringArray ( access ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public static List < ConfigAttribute > createSingleAttributeList ( String access ) {
return createList ( access ... | Deprecate unnecessary method in SecurityConfig |
<nb> public class LinkProperties implements Parcelable {
}
public void addLinkAddress ( LinkAddress address ) {
- mLinkAddresses . add ( address ) ;
+ if ( address != null ) mLinkAddresses . add ( address ) ;
}
public Collection < LinkAddress > getLinkAddresses ( ) {
<nb> public class LinkProperties i... | Add some input checking to prevent problems |
<nb> public class RuleDoc extends BaseDoc implements Rule {
public static final String MANUAL_REPOSITORY = STRING0 ;
- RuleDoc ( @ nullable Map < String , Object > fields ) {
+ RuleDoc ( Map < String , Object > fields ) {
super ( fields ) ;
} | fix quality flaws RuleDoc CTor needs a non nullable map |
<nb> public class SeriesGuideContract {
String IMDBID = STRING0 ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
String LAST_EDITED = STRING1 ; | Add unit to Episodes LAST_EDITED description |
<nb> public abstract class Datastore
private String calculateFilenameHash ( QueryMetric metric ) throws NoSuchAlgorithmException , UnsupportedEncodingException
{
- byte [ ] digest = messageDigest . digest ( metric . getCacheString ( ) . getBytes ( STRING0 ) ) ;
+ String hashString = metric . getCacheString ( ... | Fixed code to deal with null cache strings |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.