diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class AssetBundleUtils {
if ( size > NUMBER0 < < NUMBER1 ) {
SINGLE
Path tmpFile = Files . createTempFile ( STRING0 , null ) ;
- Files . copy ( entry . inputStream ( ) , tmpFile ) ;
+ Files . copy ( entry . inputStream ( ) , tmpFile , REPLACE_EXISTING ) ;
chan = Files . newByteChannel ( tmpFile ... | Added missing REPLACE_EXISTING option |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SimpleReplaceRule extends AbstractSimpleReplaceRule {
public static final String ROMANIAN_SIMPLE_REPLACE_RULE = STRING0 ;
private static final String FILE_NAME = STRING1 ;
+ S... | ro Make Romanian SimpleRuleReplace case insensitive |
<nb> public class GLMModel extends Model implements Comparable < GLMModel > {
@ api ( help = STRING0 ) double [ ] norm_beta ;
final int rank ;
+
+ @ api ( help = STRING1 )
final int [ ] idxs ;
public Submodel ( double [ ] beta , double [ ] norm_beta , long run_time , int iteration ) { | Added Submodel idxs to the json output |
<nb> public class SSBasedInspection extends BaseJavaLocalInspectionTool {
if ( ApplicationManager . getApplication ( ) . isHeadlessEnvironment ( ) ) {
precompile . run ( ) ;
} else {
- DumbService . getInstance ( ) . smartInvokeLater ( precompile , ModalityState . NON_MODAL ) ;
+ DumbService . getInstance ( p... | give a project to DumbService listen to events in project context |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
if ( ! mPowerKeyHandled ) {
mHandler . removeCallbacks ( mPowerLongPress ) ;
}
- mPendingPowerKeyUpCanceled = true ;
+ if ( mPowerKeyTriggered ) {
+ mPendingPowerKeyUpCanceled = true ;
+ }
}
private void interceptScreenshotChord (... | Fix power key handling after volume change |
<nb> public class ProfileRouter {
this . min = pattern . min [ hop1 ] - pattern . min [ hop0 ] ;
this . avg = pattern . avg [ hop1 ] - pattern . avg [ hop0 ] ;
this . max = pattern . max [ hop1 ] - pattern . max [ hop0 ] ;
- this . dump ( ) ;
+ SINGLE
}
public Stats ( Stats s0 , Stats s1 ) {
this . min ... | remove debug statement |
<nb> public class SSHMain {
private void authenticate ( final Connection c ) throws IOException {
LinkedList < String > methods = new LinkedList < String > ( myHost . getPreferredMethods ( ) ) ;
String lastSuccessfulMethod = myXmlRpcClient . getLastSuccessful ( myHandlerNo , getUserHostString ( ) ) ;
+ System .... | logging authentication methods |
<nb> public class TaskActionToolbox
Preconditions . checkArgument ( ! segments . isEmpty ( ) , STRING0 ) ;
final DataSegment firstSegment = segments . iterator ( ) . next ( ) ;
for ( final DataSegment segment : segments ) {
- if ( ! segment . getDataSource ( ) . equals ( firstSegment . getDataSource ( ) ) ) {
... | Combine adjacent ifs |
<nb> public class FinestWebViewActivity extends AppCompatActivity implements AppBarLa
if ( url . endsWith ( STRING0 ) ) {
Intent intent = new Intent ( Intent . ACTION_VIEW ) ;
intent . setDataAndType ( Uri . parse ( url ) , STRING1 ) ;
+ intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) ;
view . getContex... | Added new task flag because activity could not be created from view s context without it |
<nb> public class MortarScope {
COMMENT
COMMENT
public Builder withService ( String serviceName , Object service ) {
+ if ( service instanceof Scoped ) {
+ throw new IllegalArgumentException ( String . format (
+ STRING0 ,
+ serviceName , service , Scoped . class . getSimpleName ( ) ) ) ;
+ }
return d... | Revert deletion of Scoped instance check |
<nb> public class IndyInterface {
if ( ci . args . length != parameters . length ) {
throw new GroovyBugError ( STRING0 ) ;
}
- for ( int i = NUMBER0 ; i < ci . args . length ; i ++ ) {
+ for ( int i = NUMBER1 ; i < ci . args . length ; i ++ ) {
if ( parameters [ i ] == Object . class ) continue ;
Object ... | include receiver in argument coercion logic |
<nb> class MappedRawLog implements RawLog
this . logFile = location ;
partitions = new RawLogPartition [ PARTITION_COUNT ] ;
- try ( final FileChannel logChannel = new RandomAccessFile ( logFile , STRING0 ) . getChannel ( ) )
+
+ try ( final RandomAccessFile raf = new RandomAccessFile ( logFile , STRING0 ) ... | Set new log length when creating file to make the creation faster |
<nb> public class AdvancedNeoServer extends CommunityNeoServer {
private ServerManagement serverManagement ;
+ protected AdvancedNeoServer ( )
+ {
+
+ }
+
public AdvancedNeoServer ( Configurator configurator )
{
this . configurator = configurator ; | Added no arg protected constructor to AdvancedNeoServer |
<nb> public class TextEditingTarget implements
public boolean isCompletionEnabled ( )
{
return session_ . getSessionInfo ( ) . getClangAvailable ( ) &&
- ( docUpdateSentinel_ . getPath ( ) != null ) ;
+ ( docUpdateSentinel_ . getPath ( ) != null ) &&
+ fileType_ . isC ( ) ;
}
@ override | disable cpp completion in Rmd files |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
COMMENT | Added Playgound class |
<nb> public class CachesManager implements Startable {
props . setProperty ( STRING0 , STRING1 ) ;
props . setProperty ( STRING2 , STRING3 ) ;
props . setProperty ( STRING4 , STRING5 ) ;
+ props . setProperty ( STRING6 , STRING7 ) ;
persistit . setProperties ( props ) ;
persistit . initialize ( ) ;
<nb>... | Disable JMX in Persistit |
<nb> public class WsFrame {
CloseCodes . PROTOCOL_ERROR ,
sm . getString ( STRING0 ) ) ) ;
}
- reason = new String ( controlBufferBinary . array ( ) ,
- controlBufferBinary . arrayOffset ( ) +
- controlBufferBinary . position ( ) ,
- controlBufferBinary . remaining ( ) , STRING1 ) ;
+ SINGLE
+ SINGLE ... | Remove a new String that should have been removed when the decoder was added |
<nb> public class Drawer {
}
}
+ public boolean isDrawerOpen ( ) {
+ if ( mDrawer . mDrawerLayout != null && mDrawer . mSliderLayout != null ) {
+ return mDrawer . mDrawerLayout . isDrawerOpen ( mDrawer . mSliderLayout ) ;
+ }
+ return false ;
+ }
+
public LinearLayout getSlider ( ) {
return mDr... | add helper method to check if Drawer is open |
<nb> public class DBeaverPreferencesInitializer extends AbstractPreferenceInitializer
RuntimeUtils . setDefaultPreferenceValue ( store , DBeaverPreferences . STATEMENT_INVALIDATE_BEFORE_EXECUTE , false ) ;
RuntimeUtils . setDefaultPreferenceValue ( store , DBeaverPreferences . STATEMENT_TIMEOUT , NUMBER0 * NUMBER1 ... | Disable row count read by default |
<nb> public final class ActivityManagerService extends ActivityManagerNative
try {
if ( AppGlobals . getPackageManager ( ) . isUidPrivileged ( callingUid ) ) {
allowed = true ;
- Slog . w ( TAG , caller + STRING0 + callingUid
+ if ( DEBUG_TASKS ) Slog . w ( TAG , caller + STRING0 + callingUid
+ STRING1 ) ; ... | Reduce log noise |
<nb> public class LazyRangeMarkerFactory {
}
@ nullable
- private RangeMarker getOrCreateDelegate ( ) {
+ protected final RangeMarker getOrCreateDelegate ( ) {
if ( myDelegate == null ) {
Document document = FileDocumentManager . getInstance ( ) . getDocument ( myFile ) ;
if ( document == null ) {
<nb... | LineColumnLazyMarker must compute delegate on start end offset request review |
<nb> public class StaticTypeCheckingVisitor extends ClassCodeVisitorSupport {
private void doInferClosureParameterTypes ( final ClassNode receiver , final Expression arguments , final ClosureExpression expression , final MethodNode selectedMethod , final Expression hintClass , final Expression options ) {
try {
P... | Use transform loader to load type checking hints |
<nb> public final class ActionManagerImpl extends ActionManagerEx implements JDOMExte
ref = element . getAttributeValue ( ID_ATTR_NAME ) ;
}
- if ( LOG . isDebugEnabled ( ) ) {
- LOG . debug ( STRING0 + ref + STRING1 ) ;
- }
if ( ref == null || ref . length ( ) == NUMBER0 ) {
reportActionError ( pluginI... | remove unnecessary debugging |
<nb> public class Tokens {
public static int DEFAULT_MAP_SPILL_OVER = NUMBER0 ;
- SINGLE
- SINGLE
- SINGLE
-
}
<nb> import NAMESPACE ;
COMMENT
public class TitanHBaseInputFormat extends TitanInputFormat {
- SINGLE
private final TableInputFormat tableInputFormat = new TableInputFormat ( ) ;
... | Commented constant deletion |
<nb> public class ConversationActivity extends XmppActivity
this . mPendingGeoUri = null ;
}
}
+ } else {
+ mPendingImageUris . clear ( ) ;
+ mPendingFileUris . clear ( ) ;
}
} | handle returning from camera without picture |
<nb> public class DirectoryCreateIssueTest extends TestSupport {
public void testFileCreatedAsDir ( ) throws Exception {
log . debug ( STRING0 ) ;
- final String path = STRING1 ;
+ final String path = STRING2 ;
final int numFiles = NUMBER0 ;
context . addRoutes ( | Moved the test directory below the target |
<nb> public class ReaderTag implements Serializable , FilterCriteria {
COMMENT
COMMENT
private static boolean isTagAlphaNumeric ( String tagString ) {
- if ( tagString == null ) return false ;
+ if ( TextUtils . isEmpty ( tagString ) ) {
+ return false ;
+ }
for ( int i = NUMBER0 ; i < tagString . len... | Fixed isTagAlphaNumeric bug caused by not correctly handling empty string |
<nb> public class VizGui extends JFrame implements VertexSelectionListener {
indexService . setGraphService ( graphService ) ;
indexService . setup ( ) ;
routingService = new ContractionRoutingServiceImpl ( ) ;
- routingService . setGraphService ( graphService ) ;
}
public Graph getGraph ( ) {
<nb> publ... | fix compile time errors in integration test and vizgui |
<nb> public class RosterAccess extends AccessModel {
Roster roster = server . getRosterManager ( ) . getRoster ( nodeOwner . getNode ( ) ) ;
RosterItem item = roster . getRosterItem ( owner ) ;
SINGLE
- boolean isSubscribed = RosterItem . SUB_BOTH == item . getSubStatus ( ) ||
- RosterItem . SUB_FROM == item ... | Fixed potential NPE |
<nb> public final class OrderedDownstreamThreadPoolExecutor extends OrderedMemoryAwar
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public OrderedDownstreamThreadPoolExecutor (
- int corePoolSize ,
- long keepAliveTime , TimeUnit unit ,
- Objec... | Remove bogus constructor |
<nb> public class AudioService extends IAudioService . Stub {
( ! mVoiceCapable && streamType != AudioSystem . STREAM_VOICE_CALL &&
streamType != AudioSystem . STREAM_BLUETOOTH_SCO ) ||
( mVoiceCapable && streamType == AudioSystem . STREAM_RING ) ) {
+ SINGLE
+ if ( mRingerMode != AudioManager . RINGER_MODE_N... | Holding volume down vibrates |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Add missing apache headers |
<nb> public class WebView extends AbsoluteLayout
if ( nativeFocusIsPlugin ( ) ) {
for ( int i = NUMBER0 ; i < count ; i ++ ) {
letPluginHandleNavKey ( selectKeyCode , time , true ) ;
- letPluginHandleNavKey ( selectKeyCode , time , false ) ;
}
+ letPluginHandleNavKey ( selectKeyCode , time , false ) ;
} e... | For flash trackball send several downs followed by a single up |
<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy {
if ( members != null ) {
serverURLs . clear ( ) ;
- SINGLE
+ SINGLE
for ( ODocument m : members )
if ( m != null && ! serverURLs . contains ( ( String ) m . field ( STRING0 ) ) ) {
<nb> public class OStorageRemote ext... | Fixed problem with auto switch to available server |
<nb> class AndroidLiveWallpaper implements Application {
}
public void onDestroy ( ) {
+ graphics . clearManagedCaches ( ) ;
graphics . destroy ( ) ;
} | calling Graphics ClearManagedCaches in AndroidLiveWallpaper |
<nb> abstract class AbstractCommandLineRunner < A extends Compiler ,
OUTPUT_WRAPPER_MARKER ) ;
SINGLE
- outputSourceMap ( options ) ;
+ outputSourceMap ( options , options . jsOutputFile ) ;
} else {
String moduleFilePrefix = config . moduleOutputPathPrefix ;
maybeCreateDirsForPath ( moduleFilePrefix ) ... | put the proper name of the associate js file in the |
<nb> public class ArtefactHandlerAdapter implements ArtefactHandler , org . codehaus . gro
}
protected boolean isValidArtefactClassNode ( ClassNode classNode , int modifiers ) {
- return ! classNode . isEnum ( ) && ! classNode . isInterface ( ) && ! Modifier . isAbstract ( modifiers ) && ! ( classNode instanceo... | Allow abstract artefact types |
<nb> public class TaskMasterLifecycle
public Optional < ResourceManagementScheduler > getResourceManagementScheduler ( )
{
if ( leading ) {
- return Optional . of ( resourceManagementScheduler ) ;
+ return Optional . fromNullable ( resourceManagementScheduler ) ;
} else {
return Optional . absent ( ) ;
... | Fix getResourceManagementScheduler for non autoscaling configs |
<nb> public class Peer extends PeerSocketHandler {
} else {
lock . lock ( ) ;
try {
- log . info ( STRING0 ,
+ log . info (
+ STRING1 ,
+ Utils . dateTimeFormat ( fastCatchupTimeSecs * NUMBER0 ) , blockChain . getBestChainHeight ( ) + NUMBER1 ,
m . getBlockHeaders ( ) . size ( ) - i ) ;
this . downloa... | Log fast catchup time and height of first block to pass it |
<nb> public abstract class MappedFieldType extends FieldType {
eagerGlobalOrdinals , similarity == null ? null : similarity . name ( ) , nullValue , nullValueAsString ) ;
}
- SINGLE
+ SINGLE
COMMENT
public abstract String typeName ( ) ; | Change norelease in MappedFieldType to TODO |
<nb> public class ShapefileStreetLoader {
} else if ( trafDir . equals ( STRING0 ) ) {
SINGLE
Street street = new Street ( id , name , geom . getLength ( ) ) ;
- street . setGeometry ( geom ) ;
+ street . setGeometry ( geom . reverse ( ) ) ;
graph . addEdge ( endCorner , startCorner , street ) ;
} else if... | backwards streets must have backwards geometry |
<nb> class TestOutputRedirector {
void setOutputOwner ( Object testId ) {
assert testId != null ;
- System . out . flush ( ) ;
- System . err . flush ( ) ;
+ if ( System . out != null ) {
+ System . out . flush ( ) ;
+ }
+ if ( System . err != null ) {
+ System . err . flush ( ) ;
+ }
outForward... | Don t flush the standard streams if they are null |
<nb> public class QueuedThreadPool extends AbstractLifeCycle implements ThreadPool , E
COMMENT
public String toString ( )
{
- return _name + STRING0 + getMinThreads ( ) + STRING1 + getIdleThreads ( ) + STRING1 + getThreads ( ) + STRING2 + getMaxThreads ( ) + STRING3 ;
+ return _name + STRING0 + getMinThreads ... | report jobs queue size |
<nb> final class MediaRouterThemeHelper {
Context context , View mainControls , View groupControls , boolean hasGroup ) {
int primaryColor = getThemeColor ( context , R . attr . colorPrimary ) ;
int primaryDarkColor = getThemeColor ( context , R . attr . colorPrimaryDark ) ;
- if ( hasGroup && ColorUtils . calc... | Fix for background colors of group volume controls |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class NetworkManagementService extends INetworkManagementService . Stub {
mObservers = new ArrayList < INetworkManagementEventObserver >... | Make the simulator boot again |
<nb> public final class MessageQueue {
}
Message next ( ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ final int ptr = mPtr ;
+ if ( ptr == NUMBER0 ) {
+ return null ;
+ }
+
int pendingIdleHandlerCount = - NUMBER1 ; SINGLE
int nextPollTimeoutMillis = NUMBER0 ;
for ( ; ; ) {
<nb> public final class Messa... | Fix crash when Looper used after quit |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TileMarker extends TileBuildCraft implements IAreaProvider {
}
if ( marker == null ) {
- marker = ( TileMarker ) world . getTileEntity ( x , y , z ) ;
+ T... | Fix tile marker crash |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- public class TemplateProjectStructureAction extends AnAction implements DumbAware {
- @ override
- public ... | TemplateProjectStructureAction shows Project structure dialog with gaps |
<nb> public class Session {
public final static int STREAM_AUDIO = NUMBER0 ;
- COMMENT
+ COMMENT
public final static int ERROR_CAMERA_ALREADY_IN_USE = NUMBER0 ;
+ COMMENT
public final static int ERROR_CONFIGURATION_NOT_SUPPORTED = NUMBER1 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Documented some constants in Session java |
<nb> public class TextView extends View implements ViewTreeObserver . OnPreDrawListener
mInputType = EditorInfo . TYPE_NULL ;
mInput = null ;
bufferType = BufferType . SPANNABLE ;
- setFocusableInTouchMode ( true ) ;
SINGLE
setMovementMethod ( ArrowKeyMovementMethod . getInstance ( ) ) ;
} else if ( edita... | Removed focusableInTouchMode flag for selectable text |
<nb> public class PeerEurekaNode {
boolean success = registerBatcher . process ( new ReplicationTask ( info
. getAppName ( ) , info . getId ( ) , Action . Heartbeat ) {
public void execute ( ) {
+ CurrentRequestVersion . set ( Version . V2 ) ;
String urlPath = STRING0 + info . getAppName ( ) ;
ClientRespons... | Specify the version number before serializing instance information |
<nb> public class ButtonlessScrollBarUI extends BasicScrollBarUI {
thumbBounds = getMacScrollBarBounds ( thumbBounds , true ) ;
Graphics2D g2d = ( Graphics2D ) g ;
+ if ( Registry . is ( STRING0 ) ) {
+ float value = ( float ) ( NUMBER0 - myMacScrollbarFadeLevel ) ;
+ RegionPainter < Float > painter = isDar... | use the same thumb painter in editor |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in docs missing breaklines |
<nb> public class MessageView extends LinearLayout {
}
Intent intent = new Intent ( Intent . ACTION_VIEW ) ;
- intent . setDataAndType ( Uri . parse ( body ) , mimeType ) ;
+ SINGLE
+ intent . setData ( Uri . parse ( body ) ) ;
getContext ( ) . startActivity ( intent ) ;
} | just pass the URI and let Android figure it out |
<nb> public class ServerBackedApplicationUnderTest implements ApplicationUnderTest {
URI address ;
try {
- address = new URI ( server . getScheme ( ) + STRING0 + server . getBindHost ( ) + STRING1 + server . getBindPort ( ) ) ;
+ address = new URI ( server . getScheme ( ) + STRING0 + server . getBindHost ( ) ... | Add a slash to the server url |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT | Removing unused imports |
<nb> package 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 NAMESPACE ;
import NA... | editor should display groovy rather than java in editor |
<nb> public class SimpleItemListActivity extends AppCompatActivity implements ItemTou
public boolean filter ( SampleItem item , CharSequence constraint ) {
SINGLE
SINGLE
- return ! item . name . getText ( ) . toLowerCase ( ) . contains ( constraint ) ;
+ return ! item . name . getText ( ) . toLowerCase ( ) . ... | ignore case in search sample |
<nb> public class StandardJarScanner implements JarScanner {
SINGLE
String jarName = getJarName ( urls [ i ] ) ;
- SINGLE
- SINGLE
- if ( jarName != null &&
- ! ( Matcher . matchPath ( ignoredJarsTokens , jarName ) ||
- urls [ i ] . toString ( ) . contains (
- Constants . WEB_INF_LIB + jarName ) ) ) {... | Already skipped WEB INF lib so no need to skip those JARs again |
<nb> public class LanguageRegistry
throw new IllegalArgumentException ( String . format ( STRING0 , objectToName ) ) ;
}
objectName += STRING1 ;
- addStringLocalization ( lang , lang , name ) ;
+ addStringLocalization ( objectName , lang , name ) ;
}
public void loadLanguageTable ( Properties languagePa... | Fix derp in LanguageRegistry |
<nb> public class GroupNode
{
SINGLE
SINGLE
- final int insertionPoint = Collections . binarySearch ( children ,
+ int insertionPoint = Collections . binarySearch ( children ,
groupNode , nodeComparator ) ;
if ( insertionPoint < NUMBER0 )
{
SINGLE
SINGLE
- final int index = ( insertionPoint + NUMB... | Fix the disappearance of external contact sources |
<nb> public class JarFileClassPathLocationScanner implements ClassPathLocationScanner
COMMENT
COMMENT
private Set < String > findResourceNamesFromJarFile ( JarFile jarFile , String location ) throws IOException {
+ location += location . endsWith ( STRING0 ) ? STRING1 : STRING0 ;
Set < String > resourceNames ... | Found more than one migration with version when multiple locations named with the same roots |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XmlCompletionData extends CompletionData {
XmlUtil . collectEnumerationValues ( simpleContent , varian... | don t complete all words if there are references inside xml tag |
<nb> public class BatchEventData implements Sequenced , EventData {
}
}
-
@ override
public void readData ( ObjectDataInput in ) throws IOException {
source = in . readUTF ( ) ;
<nb> public interface SubscriberSequencerProvider {
COMMENT
long getSequence ( int partitionId ) ;
-
COMMENT
COMME... | Fixed superfluous newlines in QueryCache event package |
<nb> public class Connection {
COMMENT
public boolean isIdle ( ) {
- return tcp . writeBuffer . position ( ) / tcp . writeBuffer . capacity ( ) < tcp . idleThreshold ;
+ return tcp . writeBuffer . position ( ) / ( float ) tcp . writeBuffer . capacity ( ) < tcp . idleThreshold ;
}
COMMENT | Fixed isIdle float division |
<nb> public class ShowsActivity extends BaseTopShowsActivity implements
SINGLE
mProgressBar = ( SmoothProgressBar ) findViewById ( R . id . progressBarShows ) ;
+ mProgressBar . setVisibility ( View . GONE ) ;
}
COMMENT
<nb> public class ShowsActivity extends BaseTopShowsActivity implements
COMMENT
... | Don t animate progress bar if state is not changing |
<nb> public class Factory implements FactoryOperations {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Factory implements FactoryOperations {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Factory implemen... | Fixed Javadoc links |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class Texture implements Asset , Savable , Cloneable {
SINGLE
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix for typos in Texture javadoc |
<nb> public class BiomeDictionary
COMMENT
public static void registerAllBiomesAndGenerateEvents ( )
{
- for ( int i = NUMBER0 ; i < BIOME_LIST_SIZE ; i ++ )
+ for ( int i = NUMBER0 ; i < BiomeGenBase . biomeList . length ; i ++ )
{
BiomeGenBase biome = BiomeGenBase . biomeList [ i ] ;
+
+ if ( biome =... | Fix null pointer exception in BiomeDictionary causing the ChunkManager s config to not load save |
<nb> public class Html {
if ( style [ j ] instanceof TypefaceSpan ) {
String s = ( ( TypefaceSpan ) style [ j ] ) . getFamily ( ) ;
- if ( s . equals ( STRING0 ) ) {
+ if ( STRING0 . equals ( s ) ) {
out . append ( STRING1 ) ;
}
} | Fix NPE in Html inParagraph |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestNullGreetingsClient extends RestLiIntegrationTest
catch ( RestLiResponseException responseException )
{
Assert . asse... | Fix error msg |
<nb> public class DeployedXmlJMSManagementTestCase {
public void tearDown ( final ManagementClient managementClient , final String containerId ) throws Exception {
final ServerDeploymentManager manager = ServerDeploymentManager . Factory . create ( managementClient . getControllerClient ( ) ) ;
final DeploymentPl... | Get the Future so the JVM doesn t exit before the undeploy execution is complete |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class StorageVolume implements Parcelable {
COMMENT
COMMENT
COMMENT
- public Intent createAccessIntent ( @ nonnull String directoryName ) {
+ public Intent createAccessInten... | Removed obsolete NonNull |
<nb> public class WebDavStore extends Store {
COMMENT
public class DataSet {
private HashMap < String , HashMap < String , String > > mData = new HashMap < String , HashMap < String , String > > ( ) ;
- SINGLE
private StringBuilder mUid = new StringBuilder ( ) ;
private HashMap < String , String > mTempData... | Fixed the parsing of response data for WebDAV requests |
<nb> public class ZooClient extends AbstractZooKeeperManager
else
{ SINGLE
if ( ! allowCreateCluster ) throw new RuntimeException ( STRING0 ) ;
- storeId = new StoreId ( ) ;
- createCluster ( storeId ) ;
- rootPath = asRootPath ( storeId ) ;
- committedTx = NUMBER0 ;
+ StoreId storeIdSuggestion = NeoSto... | Picks up existing store id if there s a local db but no cluster in ZK |
<nb> class JavacCompiler implements BackendCompiler {
classPath = cp ;
commandLine . add ( STRING0 ) ;
- addClassPathValue ( jdk , isVersion1_0 , commandLine , bootCp , STRING1 ) ;
+ addClassPathValue ( jdk , isVersion1_0 , commandLine , CompilerUtil . quotePath ( bootCp ) , STRING1 ) ;
LOG . info ( STRING2... | Removed Ann s changes introduced my own for bootclasspath only |
<nb> public class MainTest extends AbstractSecurityTestCase {
final String output = new String ( this . out . toByteArray ( ) ) ;
assertTrue ( STRING0 + output , output . contains ( STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
STRING5 ) ) ;
} | make test work again under Linux will probably fail again under Windows now |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
SINGLE
if ( enabledSubtypeSet . contains ( subtypeHashCode )
&& ( ( mInputShown && ! isScreenLocked ) || ! subtype . isAuxiliary ( ) ) ) {
- final CharSequence subtypeLabel = subtype . getDisplayName ( context ,
- imi . getPackageN... | Do not show the label for auto subtypes |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> class TiffUtil {
COMMENT
public static int getAutoRotateAngleFromOrientation ( int orientation ) {
switch ( orientation ) {
- case NUMBER0 :
+ case ExifInterface . ORIENTATION_NORMAL :
return NUMBER1... | Added ExifInterface constants in TiffUtil |
<nb> public class OracleSchema extends Schema {
for ( String statement : generateDropStatementsForObjectType ( STRING0 , STRING1 ) ) {
jdbcTemplate . execute ( statement ) ;
}
+
+ for ( String statement : generateDropStatementsForObjectType ( STRING2 , STRING3 ) ) {
+ jdbcTemplate . execute ( statement ) ; ... | add support for cleaning JAVA SOURCE in Oracle DB |
<nb> public class OperationSetBasicTelephonyJabberImpl
COMMENT
COMMENT
COMMENT
- public Iterator getActiveCalls ( )
+ public Iterator < CallJabberImpl > getActiveCalls ( )
{
return activeCallsRepository . getActiveCalls ( ) ;
} | Removes a SuppressWarnings because its warning can be resolved gracefully |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ registersystem
- public class BehaviorTreeEditorSystem implements ComponentSystem {
+ public class BehaviorTree... | Removed BehaviorTreeEditorSystem unnecessarily closing screens |
<nb> ViewPager . OnPageChangeListener , EditNoteActivity . UpdatesChangedListener {
if ( title . getText ( ) . length ( ) == NUMBER0
|| TextUtils . isEmpty ( model . getValue ( Task . TITLE ) ) ) {
if ( isNewTask ) {
+ TimerPlugin . updateTimer ( getActivity ( ) , model , false ) ;
taskService . delete ( mode... | Fixed a bug where timer notification could get stuck after deleting a new tasl |
<nb> public class SentenceSourceChecker {
throw new RuntimeException ( STRING0 + StringUtils . abbreviate ( sentence . getText ( ) , NUMBER0 ) , e ) ;
}
}
- } catch ( ErrorLimitReachedException | DocumentLimitReachedException e ) {
- System . out . println ( e ) ;
+ } catch ( DocumentLimitReachedException |... | improve exception message |
<nb> public abstract class EditorTextFieldCellRenderer implements TableCellRenderer ,
SINGLE
EditorTextField field = new EditorTextField ( new MyDocument ( ) , null , FileTypes . PLAIN_TEXT , false , false ) ;
field . setSupplementary ( true ) ;
+ field . setFontInheritedFromLAF ( false ) ;
field . addNotify ... | do not inherit fonts from LaF |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public abstract class CommonUtils { | remove unused import |
<nb> class SkeletonVersionChecker {
}
public int getBuiltinVersion ( ) {
+ if ( myBuiltinsVersion == null ) {
+ myBuiltinsVersion = myDefaultVersion ;
+ SINGLE
+ }
return myBuiltinsVersion ;
} | never return an null builtins version |
<nb> public class ProtobufAnnotationSerializerSlowITest {
assertNotNull ( compressedProto ) ;
SINGLE
- assertTrue ( STRING0 + compressedProto . length , compressedProto . length < NUMBER0 ) ;
+ assertTrue ( STRING0 + compressedProto . length , compressedProto . length < NUMBER1 ) ;
assertTrue ( STRING0 + un... | fix save size issue |
<nb> public class FileLoader {
try {
BufferedReader br = new BufferedReader ( new FileReader ( new File (
this . fileName ) ) ) ;
- String text = STRING0 ;
- String line = STRING0 ;
+ StringBuilder sb = new StringBuilder ( ) ;
+ String line ;
while ( ( line = br . readLine ( ) ) != null ) {
- text +... | Uses a StringBuilder to improve performance |
<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
+ C... | Fix copyright header |
<nb> class ExpansionSourceImpl implements ExpansionSource , Position
ExpansionSourceImpl ( TraverserIterator traverser , ExpansionSource parent , int depth ,
Node source , RelationshipExpander expander , Relationship toHere )
{
- System . out . println ( STRING0 ) ;
this . traverser = traverser ;
this . par... | Removed some System outs |
<nb> public class Texture {
pTextureRegion . setTexture ( this ) ;
}
- public void associateTextureRegion ( final TextureRegion pTextureRegion ) {
+ public TextureRegion associateTextureRegion ( final TextureRegion pTextureRegion ) {
pTextureRegion . setTexture ( this ) ;
+ return pTextureRegion ;
}
... | Added convenience return value |
<nb> class AlarmManagerService extends SystemService {
for ( int i = NUMBER0 ; i < triggerList . size ( ) ; i ++ ) {
Alarm alarm = triggerList . get ( i ) ;
try {
- Slog . v ( TAG , STRING0 + alarm ) ;
+ if ( localLOGV ) {
+ Slog . v ( TAG , STRING0 + alarm ) ;
+ }
alarm . operation . send ( getContext ... | Log alarm delivery only when localLOGV |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class S3PseudoLock extends PseudoLockBase
@ override
protected byte [ ] getFileContents ( String key ) throws Exception
{
- S3Object object = client . getObject ( bucket , key ) ;
+... | Catch AWS exception |
<nb> public class RecyclerViewSwipeManager implements SwipeableItemConstants {
SINGLE
- private static final int MIN_DISTANCE_TOUCH_SLOP_MUL = NUMBER0 ;
+ private static final int MIN_DISTANCE_TOUCH_SLOP_MUL = NUMBER1 ;
private static final int SLIDE_ITEM_IMMEDIATELY_SET_TRANSLATION_THRESHOLD_DP = NUMBER2 ;... | Tweak swipe threshold distance |
<nb> public class GroovyDefTag extends GroovySyntaxTag {
}
public boolean hasPrecedingContent ( ) {
- return false ;
+ return true ;
}
}
<nb> public class GroovySetTag extends GroovySyntaxTag {
}
public boolean hasPrecedingContent ( ) {
- return false ;
+ return true ;
}
} | fixed bug where preceding content setting was incorrectly set for the def and set tags causing tag exception |
<nb> public class QueryImplCloneTest extends TestBase {
@ test
public void testQueryClone ( ) throws Exception {
Query q = ds . createQuery ( E1 . class ) . field ( STRING0 ) . equal ( NUMBER0 ) . limit ( NUMBER0 ) . filter ( STRING1 , STRING2 ) . filter ( STRING3 , STRING4 )
- . skip ( NUMBER0 ) . batchSize ( ... | make the context of validation more clear |
<nb> public class BridgeIInputMethodManager implements IInputMethodManager {
}
@ override
+ public boolean shouldOfferSwitchingToNextInputMethod ( IBinder arg0 ) throws RemoteException {
+ SINGLE
+ return false ;
+ }
+
+ @ override
public void updateStatusIcon ( IBinder arg0 , String arg1 , int arg2... | Fix test breakage |
<nb> public final class Maps {
}
@ override
+ public boolean isEmpty ( ) {
+ return ! Iterables . any ( unfiltered . entrySet ( ) , entryPredicate ) ;
+ }
+
+ @ override
@ nullable
public V get ( @ nullable Object key ) {
return filteredDelegate . get ( key ) ; | FilteredEntryNavigableMap should short circuit isEmpty queries |
<nb> public abstract class IgnitedAsyncTask < ContextT extends Context , ParameterT , Pro
this . context = context ;
if ( context instanceof IgnitedAsyncTaskContextHandler ) {
this . contextHandler = ( IgnitedAsyncTaskContextHandler < ProgressT , ReturnT > ) context ;
+ } else if ( context instanceof IgnitedAsy... | Allow a Context to be its own context delegate handler when connecting via connect Context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.