diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> class ContextImpl extends Context {
registerService ( PERSISTENT_DATA_BLOCK_SERVICE , new ServiceFetcher ( ) {
public Object createService ( ContextImpl ctx ) {
IBinder b = ServiceManager . getService ( PERSISTENT_DATA_BLOCK_SERVICE ) ;
- return new PersistentDataBlockManager (
- IPersistentDataBlockServ... | Don t register PDBService if not available on device |
<nb> public final class Bridge extends com . android . ide . common . rendering . api . Bridge {
Capability . UNBOUND_RENDERING ,
Capability . CUSTOM_BACKGROUND_COLOR ,
Capability . RENDER ,
- SINGLE
+ Capability . LAYOUT_ONLY ,
Capability . EMBEDDED_LAYOUT ,
Capability . VIEW_MANIPULATION ,
Capability ... | enable the LAYOUT_ONLY capability |
<nb> public class PGraphicsFX2D extends PGraphics {
}
SINGLE
SINGLE
- System . out . println ( STRING0 ) ;
+ SINGLE
pw . setPixels ( NUMBER0 , NUMBER0 , source . width , source . height ,
argbFormat , source . pixels , NUMBER0 , source . width ) ;
} | remove debug message |
<nb> final public class AndrolibResources {
}
File dir = new File ( path ) ;
- if ( ! dir . exists ( ) ) {
- if ( ! dir . mkdirs ( ) ) {
+
+ if ( dir . getParentFile ( ) . isFile ( ) ) {
+ System . err . println ( STRING0 + dir . getParentFile ( ) ) ;
+ System . exit ( NUMBER0 ) ;
+ }
+
+ if ( !... | prevent execution if file is named same as apktool framework folder |
<nb> public class NsdService extends INsdManager . Stub {
for ( String key : txtRecords . keySet ( ) ) {
try {
SINGLE
+ byte [ ] recordValue = txtRecords . get ( key ) ;
cmd . appendArg ( String . format ( Locale . US , STRING0 , key ,
- new String ( txtRecords . get ( key ) , STRING1 ) ) ) ;
+ recordValu... | Handle null values in registerService |
<nb> public class ResolveClassTest extends ResolveTestCase {
assertNull ( target ) ;
}
- public void testStaticImportInTheSameClass ( ) throws Exception {
+ public void _testStaticImportInTheSameClass ( ) throws Exception {
PsiReference ref = configure ( ) ;
long start = System . currentTimeMillis ( ) ;
... | temporarily disable the hanging static import tests |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixing a CheckStyle error |
<nb> public abstract class PlatformTestCase extends UsefulTestCase implements DataPro
private static void setPlatformPrefix ( String prefix ) {
System . setProperty ( PlatformUtils . PLATFORM_PREFIX_KEY , prefix ) ;
+ ourPlatformPrefixInitialized = true ;
}
@ retention ( RetentionPolicy . RUNTIME ) | do not change detected platform with initPlatformPrefix |
<nb> package NAMESPACE ;
import NAMESPACE ;
- public interface IQueue < E > extends ICollection , BlockingQueue < E > , ICommon {
+ public interface IQueue < E > extends ICollection < E > , BlockingQueue < E > , ICommon {
} | Added generic argument to ICollection |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Corrected typo inside javadoc |
<nb> public final class ActivityManagerService extends ActivityManagerNative
int res = broadcastIntentLocked ( callerApp ,
callerApp != null ? callerApp . info . packageName : null ,
intent , resolvedType , resultTo , resultCode , resultData , resultExtras ,
- requiredPermissions , appOp , null , serialized , s... | Receiving connectivity receiver |
<nb> public abstract class Node implements Cloneable {
COMMENT
COMMENT
COMMENT
- public Integer siblingIndex ( ) {
+ public int siblingIndex ( ) {
return siblingIndex ;
} | removing boxing unboxing |
<nb> public class DeepLearning extends Job . ValidatedJob {
public boolean ignore_const_cols = true ;
@ api ( help = STRING0 , filter = Default . class , json = true )
- public boolean force_load_balance = true ;
+ public boolean force_load_balance = false ;
@ api ( help = STRING1 , filter = Default . cla... | Turn off load balancing by default since it can lead to overly high memory usage |
<nb> public class IOSFileHandle extends FileHandle {
return file ;
}
- @ override
- public boolean exists ( ) {
- return file ( ) . exists ( ) ;
- }
-
}
<nb> public class FileHandle {
public boolean exists ( ) {
switch ( type ) {
case Internal :
- if ( file . exists ( ) ) return true ;
+ i... | Fix existence check |
<nb> public class SftpChangedExclusiveReadLockStrategy implements GenericFileExclusiv
LOG . trace ( STRING0 , file . getAbsoluteFilePath ( ) , files . size ( ) ) ;
for ( ChannelSftp . LsEntry f : files ) {
if ( f . getFilename ( ) . equals ( file . getFileNameOnly ( ) ) ) {
- newLastModified = f . getAttrs ( ) ... | SFTP readLock changed does not work with readLockMinAge option |
<nb> public final class OAuth20CallbackAuthorizeController extends AbstractController
private static final Logger logger = LoggerFactory . getLogger ( OAuth20CallbackAuthorizeController . class ) ;
- @ suppresswarnings ( {
- STRING0 , STRING1
- } )
@ override
protected ModelAndView handleRequestInternal... | use generics to avoid suppress warnings |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class PhaseOptimizer implements CompilerPass {
COMMENT
private void randomizePasses ( ) {
- List < NamedPass > mixedupPasses =... | Slightly simplify shuffling code |
<nb> public class HostConfigurationPersisterImpl implements HostConfigurationPersiste
@ override
public void writeContent ( XMLExtendedStreamWriter streamWriter ) throws XMLStreamException {
streamWriter . writeStartDocument ( ) ;
- streamWriter . writeStartElement ( Element . DOMAIN . getLocalName ( ) ) ;
+ ... | Use the correct root element when persisting |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Add missing imports |
<nb> public class Solo {
COMMENT
COMMENT
- protected void finalize ( ) throws Throwable {
+ public void finalize ( ) throws Throwable {
try {
for ( int i = NUMBER0 ; i < activityList . size ( ) ; i ++ ) {
activityList . get ( i ) . finish ( ) ; | Changed the finalize method to public instead of protected |
<nb> public class MapActivity extends AccessibleActivity {
{
showImportedGpx ( new File ( data . getPath ( ) ) ) ;
}
+ setIntent ( null ) ;
}
else if ( STRING0 . equals ( scheme ) || STRING1 . equals ( scheme ) )
{
<nb> public class MapActivity extends AccessibleActivity {
{
AccessibleToast . makeTe... | set intent to null when handled |
<nb> public abstract class List < T > {
for ( int i = NUMBER0 ; i < size ; i ++ ) {
T obj = array [ i ] ;
if ( obj . equals ( value ) ) {
- for ( int j = i + NUMBER1 ; j < size ; j ++ ) {
- array [ j - NUMBER1 ] = array [ j ] ;
- }
+ System . arraycopy ( array , i + NUMBER1 , array , i , array . length - ... | Changed the way I shift an item down the array |
<nb> public abstract class AbstractConnection implements NIOConnection {
lastReadTime = TimeUtil . currentTimeMillis ( ) ;
if ( got < NUMBER0 ) {
this . close ( STRING0 ) ;
+ return ;
} else if ( got == NUMBER0 ) {
if ( ! this . channel . isOpen ( ) ) {
this . close ( STRING1 ) ; | fix add return |
<nb> public final class InjectAdapterGenerationTest {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
+ STRING4 ,
+ STRING5 ,
STRING6 ,
STRING7 ,
STRING8 , | Fix test to conform with stateless module adapters |
<nb> final class HttpPostBodyUtil {
COMMENT
COMMENT
COMMENT
- static class SeekAheadNoBackArray extends Exception {
+ static class SeekAheadNoBackArrayException extends Exception {
private static final long serialVersionUID = - NUMBER0 ;
}
<nb> final class HttpPostBodyUtil {
COMMENT
COMMENT
Seek... | Add Exception to name of the Exception |
<nb> public abstract class AbstractShadowRenderer implements SceneProcessor , Savable
renderManager . setForcedTechnique ( postTechniqueName ) ;
SINGLE
- viewPort . getQueue ( ) . renderShadowQueue ( lightReceivers , renderManager , cam , true ) ;
+ viewPort . getQueue ( ) . renderShadowQueue ( lightReceivers... | Fixed an issue with where one couldn t have several Shadow renderers in the same scene |
<nb> public class MainActivity extends Activity implements View . OnClickListener {
@ override
public void onSuccess ( int statusCode , Header [ ] headers , String content ) {
setStatusMessage ( STRING0 , Color . parseColor ( STRING1 ) ) ;
+ printThrowable ( null ) ;
printHeaders ( headers ) ;
printContents... | Cleaning up error message output |
<nb> public abstract class ExecutableValidator {
return ;
}
- LOG . info ( STRING0 + getCurrentExecutable ( ) ) ;
+ LOG . info ( STRING1 + getCurrentExecutable ( ) ) ;
if ( myNotificationManager . getNotificationsOfType ( ExecutableNotValidNotification . class , myProject ) . length == NUMBER0 ) { SINGLE
... | Fixed message in executable validation logic removed git from message |
<nb> public class Common implements Comparator < File > , Runnable , OnClickListener , OnIt
AbsListView lv = ( AbsListView ) parent ;
- if ( lv . getAdapter ( ) instanceof BaseAdapter ) {
- sl = new Common ( ) ;
- lv . setOnScrollListener ( sl ) ;
- lv . setTag ( AQuery . TAG_SCROLL_LISTENER , sl ) ;
- ... | remove BaseAdapter check code |
<nb> public class CompletionHandlerTest extends LightCompletionTestCase {
}
public void testFunctionLiteralInsertOnSpace ( ) {
- doTest ( STRING0 ) ;
+ doTest ( CompletionType . BASIC , NUMBER0 , null , null , STRING0 ) ;
}
public void testInsertImportOnTab ( ) {
<nb> public class CompletionHandlerTes... | Removed doTest char since it was erroneous |
<nb> public class Image extends ImageModel {
}
public String getType ( ) {
+ if ( _textObj == null ) {
+ getTextObj ( ) ;
+ }
+
if ( ( _type == null ) && ( _textObj != null ) ) {
MemoryCacheImageInputStream mcis = new MemoryCacheImageInputStream (
new ByteArrayInputStream ( _textObj ) ) ; | Fix image where it didn t return type had errors in firefox |
<nb> public class SpeedBumpView extends ExpandableView implements View . OnClickListene
@ override
public int getIntrinsicHeight ( ) {
- return getActualHeight ( ) ;
+ if ( mCurrentAnimator != null ) {
+ SINGLE
+ return getActualHeight ( ) ;
+ }
+ return mIsExpanded ? getHeight ( ) : mCollapsedHeight ... | Fixed the gap which could occur after the speedbumpview |
<nb> import NAMESPACE ;
public class GenerateSourcesMojo extends AbstractAndroidMojo {
COMMENT
- COMMENT
- COMMENT
- COMMENT
- private boolean createPackageDirectories ;
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class GenerateSourcesMojo extends AbstractAndroidMojo {
List < String > ... | Removed parameter createPackageDirectories for clarity and because we currently have no known use case for setting it to false |
<nb> public class Runner implements MessageConsumer {
listener . statusError ( STRING0 ) ;
err . println ( STRING1 ) ;
err . println ( STRING2 +
- ( ( Base . getNativeBits ( ) == NUMBER0 ) ? STRING3 : STRING4 ) + STRING5 ) ;
+ ( ( Base . getNativeBits ( ) == NUMBER0 ) ? STRING6 : STRING7 ) + STRING5 ) ;
}... | Fix double space in UnsatisfiedLinkError message |
<nb> public class OSQLFunctionGremlin extends OSQLFunctionAbstract {
private List < Object > result ;
+ private OrientGraph graph = null ;
+
+ private ScriptEngine engine ;
+
public OSQLFunctionGremlin ( ) {
super ( NAME , NUMBER0 , NUMBER0 ) ;
}
<nb> public class OSQLFunctionGremlin extends OSQLF... | Improved speed with GREMLIN function by reusing Graph and Engine multiple times |
<nb> public class NonExistingFileHandlingSftpClient extends DefaultSftpClient impleme
@ override
public void close ( ) throws IOException {
super . close ( ) ;
- clientSession . close ( true ) ;
+ clientSession . close ( false ) . awaitUninterruptibly ( ) ;
}
public boolean isLocked ( ) { | Revert this change |
<nb> public class RosterGroup {
COMMENT
COMMENT
COMMENT
- public boolean conatins ( String user ) {
+ public boolean contains ( String user ) {
if ( user == null ) {
return false ;
} | Fixed method name |
<nb> public class DisplaySettings {
public void getOverscanLocked ( String name , Rect outRect ) {
Entry entry = mEntries . get ( name ) ;
+ if ( entry == null && mEntries . size ( ) == NUMBER0 ) {
+ entry = mEntries . values ( ) . iterator ( ) . next ( ) ;
+ }
if ( entry != null ) {
outRect . left = en... | If no display settings are matched return the first one |
<nb> public class OsmEditingPlugin extends OsmandPlugin {
}
private static String getPrefix ( OsmPoint osmPoint ) {
- return ( osmPoint . getGroup ( ) == OsmPoint . Group . POI ? STRING0 : STRING1 ) + STRING2 + osmPoint . getId ( ) ;
+ return ( osmPoint . getGroup ( ) == OsmPoint . Group . POI ? STRING0 : STR... | Add space for better viewing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyMain {
COMMENT
private void processReader ( Script s , BufferedReader reader , PrintWriter pw ) throws IOException {
String line = nul... | add line numbers to the command line options |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class RefreshableTargetSourceTests {
@ test
public void testRefreshOverTime ( ) throws Exception {
+ Assume . group ( TestGroup . PERFORMANCE ) ;
... | Add aop target source test to TestGroup PERFORMANCE |
<nb> public class ConnectRequestInboxAdapter extends BaseAdapter {
SINGLE
IConversation request = getItem ( position ) ;
- viewHolder . nameView . setText ( context . getString ( R . string . connect_request__inbox__header , request . getName ( ) ) ) ;
+ viewHolder . nameView . setText ( request . getName ( )... | Removes reference to unused copy |
<nb> import NAMESPACE ;
public class ModelNode {
public String id ;
- public int boneId = - NUMBER0 ;
public Vector3 translation ;
public Quaternion rotation ;
public Vector3 scale ; | remove unused boneId variable in ModelNode |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
public class HistogramTest {
@... | Added test for Histogram processing |
<nb> class TelephonyRegistry extends ITelephonyRegistry . Stub {
if ( events != NUMBER0 ) {
SINGLE
if ( ( events & PhoneStateListener . LISTEN_CELL_LOCATION ) != NUMBER0 ) {
- mContext . enforceCallingOrSelfPermission (
- android . Manifest . permission . ACCESS_COARSE_LOCATION , null ) ;
-
+ SINGLE
+ i... | Allow getCellLocation if client has permission ACCESS_FINE_LOCATION |
<nb> public class ApkDecoder {
meta . put ( STRING0 , Androlib . getVersion ( ) ) ;
meta . put ( STRING1 , mApkFile . getName ( ) ) ;
- if ( hasResources ( ) ) {
+ if ( mDecodeResources != DECODE_RESOURCES_NONE && hasResources ( ) ) {
meta . put ( STRING2 ,
Boolean . valueOf ( mAndrolib . isFrameworkApk (... | don t write framework info if not decoding resources |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ; | Adding necessary imports |
<nb> public class NodeCmd
outs . println ( STRING0 + cfstore . getWriteCount ( ) ) ;
outs . println ( STRING1 + String . format ( STRING2 , cfstore . getRecentWriteLatencyMicros ( ) / NUMBER0 ) + STRING3 ) ;
outs . println ( STRING4 + cfstore . getPendingTasks ( ) ) ;
- outs . println ( STRING5 + cfstore . getB... | Fix typo in nodetool output |
<nb> public class SpecialFiles {
}
private static void fillExcludedFiles ( ) {
+ excludedFiles . add ( STRING0 ) ; SINGLE
excludedFiles . add ( STRING1 ) ; SINGLE
excludedFiles . add ( STRING2 ) ; SINGLE
excludedFiles . add ( STRING3 ) ; SINGLE | Excluded newly added codegen test from Android JVM test |
<nb> public class PullToRefreshAttacher implements View . OnTouchListener {
}
private void setRefreshingInt ( View view , boolean refreshing , boolean fromTouch ) {
- clearRefreshableViews ( ) ;
+ checkIfDestroyed ( ) ;
if ( DEBUG ) Log . d ( LOG_TAG , STRING0 + refreshing ) ;
SINGLE | Fix Stupid Typo |
<nb> public class ChatRoomTableModel
OperationSetPresence presence
= provider . getProtocolProvider ( )
. getOperationSet ( OperationSetPresence . class ) ;
- presence . addProviderPresenceStatusListener ( this ) ;
+
+ if ( presence != null )
+ presence . addProviderPresenceStatusListener ( this ) ;
}
... | Fix possible NPE in Chatrooms dialog |
<nb> public abstract class Binding < T > implements Provider < T > , MembersInjector < T > {
super ( error ) ;
this . type = type ;
}
-
- public InvalidBindingException ( String type , String error , Throwable cause ) {
- super ( STRING0 + type + STRING1 + error , cause ) ;
- this . type = type ;
- }
... | Remove unused constructor overload |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public class PluginRestResource {
+ public interface PluginRestResource {
} | Change PluginRestResource to a marker interface |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public abstract class BinaryOutputFormat < T extends Record > extends FileOutputFormat < T > {
+
COMMENT
COMMENT
COMMENT
<nb> public abstract class BinaryOutputFormat < T extends Record > extends FileOutputFor
super . close ( ) ;
}
- @ suppresswarnings ( S... | Cleaned up warnings in pact common |
<nb> public class OMMapManager {
try {
entry . buffer . force ( ) ;
} catch ( Exception e ) {
- OLogManager . instance ( ) . info ( entry . buffer ,
+ OLogManager . instance ( ) . debug ( entry . buffer ,
STRING0 + ( i + NUMBER0 ) + STRING1 + FORCE_RETRY + STRING2 ) ;
try {
System . gc ( ) ; | Changed log level of retries messages to debug |
<nb> public abstract class OBinaryNetworkProtocolAbstract extends ONetworkProtocol {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo in javadocs |
<nb> public class UpdatePolicyUtils {
return GitVcsSettings . UpdateChangesPolicy . SHELVE ;
}
else {
- throw new IllegalStateException ( STRING0 ) ;
+ SINGLE
+ return GitVcsSettings . UpdateChangesPolicy . STASH ;
}
}
} | Added handling for the case when all radio buttons are deselected in push active braches dialog |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ configuration
+... | Make data jpa conditional on DataSource bean |
<nb> public class FileUtil {
return _path ;
}
+
+ public static boolean isHashBangLine ( CharSequence firstCharsIfText , String marker ) {
+ if ( firstCharsIfText == null ) {
+ return false ;
+ }
+ final int lineBreak = StringUtil . indexOf ( firstCharsIfText , STRING0 ) ;
+ if ( lineBreak < NUMBER0... | detect Ruby file type by hashbang line |
<nb> public class OverlayDrawer extends DraggableDrawer {
break ;
case RIGHT :
- mMenuOverlay . setBounds ( NUMBER0 , NUMBER0 , width - offsetPixels , height ) ;
+ mMenuOverlay . setBounds ( NUMBER0 , NUMBER0 , width + offsetPixels , height ) ;
break ;
case TOP :
<nb> public class OverlayDrawer extend... | Don t cover right bottom drawer with overlay |
<nb> public class Hyphenator {
sMap . put ( null , null ) ;
SINGLE
- String [ ] availableLanguages = { STRING0 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 } ;
+ String [ ] availableLanguages = { STRING0 , STRING7 , STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 } ;
for ( int i = N... | Make Hyphenator load Spanish hyphenation patterns |
<nb> public class MucOptions {
this . onJoinListener . onSuccess ( ) ;
this . onJoinListener = null ;
}
+ } else if ( packet . getFrom ( ) . equals ( this . conversation . getContactJid ( ) ) ) {
+ self = user ;
} else {
addUser ( user ) ;
} | do not add yourself to the muc user list |
<nb> public class XAxisRenderer extends AxisRenderer {
MPPointF pointF = MPPointF . getInstance ( NUMBER0 , NUMBER0 ) ;
if ( mXAxis . getPosition ( ) == XAxisPosition . TOP ) {
pointF . x = FLOAT0 ;
- pointF . y = FLOAT1 ;
+ pointF . y = FLOAT2 ;
drawLabels ( c , mViewPortHandler . contentTop ( ) - yoffset ... | Fixed legend anchor for TOP |
<nb> public abstract class ParserMinimalBase extends JsonParser
protected final JsonParseException _constructError ( String msg , Throwable t ) {
return new JsonParseException ( msg , getCurrentLocation ( ) , t ) ;
}
+
+ protected static byte [ ] _asciiBytes ( String str ) {
+ byte [ ] b = new byte [ str . ... | adding ascii util methods |
<nb> public class VariableInspector extends JDialog {
thisFields = new ArrayList < VariableNode > ( ) ;
declaredThisFields = new ArrayList < VariableNode > ( ) ;
+ scrollPane . setBorder ( BorderFactory . createEmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ;
return scrollPane ;
} | remove ugly focus highlight border |
<nb> public class FloatingActionButton extends FrameLayout {
return this ;
}
+ public Builder setBackgroundDrawable ( int drawableId ) {
+ return setBackgroundDrawable ( activity . getResources ( ) . getDrawable ( drawableId ) ) ;
+ }
+
public Builder setPosition ( int position ) {
this . position = p... | add method that sets a fab background from a resource id |
<nb> public class Peer {
log . info ( STRING0 , toHash . toString ( ) ) ;
return ;
}
- log . info ( STRING1 , new Object [ ] { toString ( ) ,
+ log . debug ( STRING1 , new Object [ ] { toString ( ) ,
toHash . toString ( ) , chainHead . getHeader ( ) . getHashAsString ( ) } ) ;
StoredBlock cursor = chainHe... | Quieten a noisy debug line when downloading the block chain |
<nb> final public class MediaCodec {
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final int ERROR_NO_KEY = NUMBER0 ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static final int ERROR_KEY_EXPIRED = NUMBER1 ;
COMMENT
COMMENT
- COMMENT
+ CO... | Document retry behavior for MediaCodec CryptoException |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Clarified the origins of this class |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- public class HeliosClient {
+ public class HeliosClient implements AutoCloseable {
private static final Logger log = LoggerFactory . getLogger ( HeliosClient . class ) ;
private static final long TIMEOUT_MILLIS = SECOND... | Make the helios client AutoCloseable |
<nb> public class UsbDeviceManager {
mAdbEnabled = enable ;
SINGLE
SINGLE
- setEnabledFunctions ( mDefaultFunctions , false ) ;
+ setEnabledFunctions ( mDefaultFunctions , true ) ;
updateAdbNotification ( ) ;
}
} | Fix typo that broke adb on off setting persistence |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FancyButton extends LinearLayout {
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public CharSequence getText ( ) ... | Added some defaults getters |
<nb> public class StringPattern extends ObjectPattern < String , StringPattern > {
return with ( new ValuePatternCondition < String > ( STRING0 ) {
@ override
public boolean accepts ( @ notnull String str , final ProcessingContext context ) {
- if ( ! str . isEmpty ( ) && ( str . charAt ( NUMBER0 ) == STRING1 |... | make matchesBrics consistent with matches |
<nb> public class AnimationContent extends DocumentContent {
public AnimationContent ( ContentLocalContainer contentContainer ) {
super ( contentContainer ) ;
- LocalVideo localVideo = ( LocalVideo ) contentContainer . getContent ( ) ;
+ LocalAnimation localVideo = ( LocalAnimation ) contentContainer . getCon... | Fixing local animation content |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public abstract class CamelSpringTestSupport extends CamelTestSupport {
<nb> public abstract class CamelSpringTestSupport extends CamelTestSupport {
@ override
- @ aftertest
... | Spring test support in camel testng should use AfterMethod like its base class does in teardown |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add registerDefaultExceptionMappers property documentation |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
public class RunnerFactory {
- private final RunnerProvider runnerProvider ;
-
- RunnerFactory ( RunnerProvider runnerProvider ) {
- this . runnerProvider = runnerProvider ;
- }
-
- public RunnerFactory ( ) {
- this... | Cleaned up a TODO |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class PersistentDataStore {
public PersistentDataStore ( Context context , int userId ) {
mContext = context ;
- File tvDir = ... | Change the directory of the state file |
<nb> public abstract class Layer extends Iced {
@ api ( help = STRING0 )
public float max_w2 ;
- public boolean unstable = false ;
+ public volatile boolean unstable = false ;
public void transferParams ( NeuralNet p ) {
initial_weight_distribution = p . initial_weight_distribution ; | Make instability detector a volatile boolean |
<nb> public class Conditional extends Node {
}
}
- return new Conditional ( getPosition ( ) , newCondition , truePart . optimize ( ) , falsePart . optimize ( ) ) ;
+ return new Conditional ( getPosition ( ) , newCondition , truePart . optimize ( ) , falsePart == null ? null : falsePart . optimize ( ) ) ;
} ... | Fixed a NullPointerException in ifs without an else |
<nb> public class JSONParser {
nextToken ( ) ;
return false ;
}
+
+ if ( token == Token . NULL ) {
+ nextToken ( ) ;
+ return null ;
+ }
throw new IllegalArgumentException ( STRING0 + token ) ;
}
<nb> public class JSONParser {
scanDigit ( ) ;
return ;
}
+
+ if ( text . startsWith ( STR... | bug fixed json parser |
<nb> public class DeepLearning extends Job . ValidatedJob {
if ( input_dropout_ratio < NUMBER0 || input_dropout_ratio >= NUMBER1 ) {
throw new IllegalArgumentException ( STRING0 ) ;
}
- if ( class_sampling_factors != null || ! balance_classes ) {
+ if ( class_sampling_factors != null && ! balance_classes ) { ... | Fix typo in parameter validation |
<nb> public class AffiliationProvider extends ExtensionElementProvider < Affiliation > {
affiliation = new Affiliation ( jid , affiliationType , namespace ) ;
}
else {
- throw new SmackException ( STRING0 ) ;
+ throw new SmackException ( STRING1
+ + STRING2 + node
+ + STRING3 + jid
+ + STRING4 ) ;
}
... | Improve Invalid affiliation exception message |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ suppresswarnings ( STRING0 )
@ mixin ( value = LivingDropsEvent . class , remap = false )
public abstract class MixinEventLivingDrops extends MixinEventLiving implements DropItemEvent . Destruct {
<nb> public abstract class MixinEventLivi... | Add missing override annotation |
<nb> public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements
}
}
}
- SINGLE
- if ( SystemInfo . isJavaVersionAtLeast ( STRING0 ) ) {
- if ( hasOpenEditorFiles ( ) ) {
- activateEditorComponentImpl ( commandList , false ) ;
- }
- else {
- focusToolWinowByDefault ( id ) ;
- }... | remove old code |
<nb> public class GoBuckConfig {
ProcessExecutor . Result goToolResult = processExecutor . launchAndExecute (
ProcessExecutorParams . builder ( ) . addCommand (
goTool . toString ( ) , STRING0 , env ) . setEnvironment ( goRootEnv ) . build ( ) ,
- EnumSet . of ( ProcessExecutor . Option . EXPECTING_STD_ERR ) , ... | Fix ANSI codes found in Go tool output |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RepositoryUtil {
}
public static void visitAllChildrenRecursively ( @ nullable VirtualFile dir ) {... | use existing constant |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- abstract class AbstractBufferingClientHttpRequest extends AbstractClientHttpRequest {
+ public abstract class AbstractBufferingClientHttpRequest extends AbstractClientHttpRequest {
private ByteArrayOutputStream bufferedOutput = new ByteArrayOutputStream ( ... | Made abstract requests public again |
<nb> public class CasWebAppConfiguration {
COMMENT
COMMENT
COMMENT
- @ value ( STRING0 )
+ @ value ( STRING1 )
private String pathPrefix ; | Remove extra slash from path prefix |
<nb> import NAMESPACE ;
}
SINGLE
+ AnimControl control = new AnimControl ( animData . skeleton ) ;
ArrayList < Animation > animList = animData . anims ;
if ( animList != null && animList . size ( ) > NUMBER0 ) {
HashMap < String , Animation > anims = new HashMap < String , Animation > ( animList . size ( ... | Fixing a bug with cloning SkeletonControl for Spatial |
<nb> public class GpsLocationProvider implements LocationProviderInterface {
if ( networkType == TelephonyManager . NETWORK_TYPE_UMTS
|| networkType == TelephonyManager . NETWORK_TYPE_HSDPA
|| networkType == TelephonyManager . NETWORK_TYPE_HSUPA
- || networkType == TelephonyManager . NETWORK_TYPE_HSPA ) {
+ |... | Adding HSPAP info in Android |
<nb> public class ColumnDefinition extends BaseDefinition {
if ( this instanceof ForeignKeyColumnDefinition && isPrimaryKey
&& ( ( ForeignKeyColumnDefinition ) this ) . isModelContainer ) {
+ ForeignKeyColumnDefinition foreignKeyColumnDefinition = ( ForeignKeyColumnDefinition ) this ;
+ TableDefinition refere... | correctly reference foreign property value |
<nb> public class Source extends ElementaryOperator < Source > {
try {
final URI validURI = new URI ( inputPath ) ;
if ( validURI . getScheme ( ) == null )
- throw new IllegalStateException ( STRING0 + inputPath ) ;
+ throw new IllegalStateException ( STRING1 + inputPath ) ;
} catch ( final URISyntaxExcepti... | Changed error message for uri file schemes to make it clearer |
<nb> public class VimPlugin implements ApplicationComponent , JDOMExternalizable
public static void showMode ( String msg )
{
- if ( msg . length ( ) == NUMBER0 || Options . getInstance ( ) . isSet ( STRING0 ) )
- {
- showMessage ( msg ) ;
- }
+ showMessage ( msg ) ;
}
public static void showMessa... | Don t check showmode for showMode |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Added a missed import |
<nb> public class SignInFragment extends AbstractFragment implements TextWatcher {
if ( errorReason != null && errorReason . equals ( REASON_ERROR_TAKEN ) && mListener != null ) {
mListener . onMagicLinkRequestSuccess ( mUsername ) ;
} else {
- showPasswordFieldAndFocus ( ) ;
+ if ( isUsernameEmail ( ) ) {
... | Show self hosted sign in form if the email isn t available on wordpress com |
<nb> public class InMemoryExchange
private void updateState ( )
{
- if ( noMoreSinkFactories && sinkFactories == NUMBER0 && sinks == NUMBER0 ) {
- finishing = true ;
+ if ( noMoreSinkFactories && ( sinkFactories == NUMBER0 ) && ( sinks == NUMBER0 ) ) {
+ finish ( ) ;
}
} | Fix missing notification in InMemoryExchange |
<nb> public class SkipButton extends WelcomeScreenViewWrapper {
@ override
public void setup ( WelcomeScreenConfiguration config ) {
super . setup ( config ) ;
- onlyShowOnFirstPage = config . getShowNextButton ( ) ;
+ onlyShowOnFirstPage = config . getShowPrevButton ( ) ;
WelcomeUtils . setTypeface ( ( Tex... | Fix skip button visibility |
<nb> public final class Job < T extends Keyed > extends Keyed < Job > {
private void update_from_remote ( ) {
Job remote = DKV . getGet ( _key ) ; SINGLE
if ( this == remote ) return ; SINGLE
+ if ( null == remote ) return ; SINGLE
boolean differ = false ;
if ( _stop_requested != remote . _stop_requested ) ... | Fix NPE in update_from_remote |
<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 ;
<nb> pu... | Set ServiceLocator resourceAccessor correctly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.