diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class PieChartRenderer extends DataRenderer {
SINGLE
SINGLE
- float layoutWidth = Utils . getStaticLayoutMaxWidth ( mCenterTextLayout ) ,
- layoutHeight = mCenterTextLayout . getHeight ( ) ;
+ SINGLE
+ float layoutHeight = mCenterTextLayout . getHeight ( ) ;
c . save ( ) ;
c . translate ... | Fix issue in piechartrenderer |
<nb> public class CropImageView extends ImageView {
@ override
public boolean onTouchEvent ( @ nonnull MotionEvent event ) {
+ if ( ! mIsInitialized ) return true ;
switch ( event . getAction ( ) ) {
case MotionEvent . ACTION_DOWN :
onDown ( event ) ; | Fix TouchEvent crash |
<nb> import static NAMESPACE ;
class DefaultConnectionProvider implements ConnectionProvider {
private final ConcurrentPool < UsageTrackingConnection > pool ;
- private final DefaultConnectionProviderSettings settings ;
+ private final ConnectionProviderSettings settings ;
private final AtomicInteger waitQu... | remove Default from the names |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
impo... | changed creation of repo session |
<nb> public class AddOn extends Enableable {
if ( fileName . substring ( NUMBER0 , fileName . indexOf ( STRING0 ) ) . split ( STRING1 ) . length < NUMBER1 ) {
return false ;
}
+ String [ ] strArray = fileName . substring ( NUMBER0 , fileName . indexOf ( STRING0 ) ) . split ( STRING1 ) ;
+ try {
+ Status . v... | Added check for valid status and version parts of the name |
<nb> public class FsTranslog extends AbstractIndexShardComponent implements Translog
newSnapshot . seekForward ( snapshot . position ( ) ) ;
return newSnapshot ;
}
- } catch ( IOException e ) {
+ } catch ( Exception e ) {
throw new TranslogException ( shardId , STRING0 , e ) ;
}
} | handle any exception when failing to snapshot |
<nb> public class Http2Server {
. setServerOption ( UndertowOptions . ENABLE_HTTP2 , true )
. setServerOption ( UndertowOptions . ENABLE_SPDY , true )
. addHttpsListener ( NUMBER0 , STRING0 , createSSLContext ( loadKeyStore ( STRING1 ) , loadKeyStore ( STRING2 ) ) )
- . setHandler ( resource ( new FileResourceM... | Allow the example directory to be changed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AccessibilityInputFilter extends InputFilter {
private final Context mContext ;
+ private final PowerManager mPm ;
+
private final Ges... | Keeping the screen on during gesture detection |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed checkstyle failure |
<nb> public class JmePaletteShinySphere implements ActiveEditorDrop {
private String createBody ( ) {
- String body = STRING0 ;
+ String body = STRING1 ;
return body ;
} | added material colors specular diffuse to shiny sphere snippet in Palette |
<nb> public class LocationController extends BroadcastReceiver {
final ContentResolver cr = mContext . getContentResolver ( ) ;
SINGLE
SINGLE
- Settings . Secure . setLocationMasterSwitchEnabled ( cr , enabled ) ;
+ int mode = enabled
+ ? Settings . Secure . LOCATION_MODE_HIGH_ACCURACY : Settings . Secure .... | Switch QuickSettings to new LocationMode setting api |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class WindowManagerPolicyThread {
static Thread m... | Add copyright header for new file |
<nb> public interface AgentBuilder {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added missing dot |
<nb> public class SockJsUrlInfoTests {
public void serverId ( ) throws Exception {
SockJsUrlInfo info = new SockJsUrlInfo ( new URI ( STRING0 ) ) ;
int serverId = Integer . valueOf ( info . getServerId ( ) ) ;
- assertTrue ( STRING1 + serverId , serverId > NUMBER0 && serverId < NUMBER1 ) ;
+ assertTrue ( STRI... | Fix test condition |
<nb> public class MulticastProcessor extends ServiceSupport implements AsyncProcessor
completion . submit ( new Callable < Exchange > ( ) {
public Exchange call ( ) throws Exception {
- SINGLE
- SINGLE
+ SINGLE
if ( aggregationTaskSubmitted . compareAndSet ( false , true ) ) {
- SINGLE
+ SINGLE
aggr... | Fixed few comments |
<nb> class PostHighlightingVisitor {
}
} ) ;
} ;
- Disposer . register ( ( DaemonProgressIndicator ) progress , invokeFixLater ) ;
+ try {
+ Disposer . register ( ( DaemonProgressIndicator ) progress , invokeFixLater ) ;
+ }
+ catch ( Exception ignored ) {
+ SINGLE
+ }
if ( progress . isCanceled (... | suppress benign parent already has been disposed exception |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractProcessingFilter implements Filter , InitializingBe
logger . debug ( STRING0 ) ;
}
- String failureUrl = exceptionMappings ... | Refactored the failureUrl lookup into a protected method to allow customization |
<nb> import NAMESPACE ;
public interface DockContainerFactory extends Disposable {
- DockContainer createContainer ( ) ;
+ DockContainer createContainer ( DockableContent content ) ;
interface Persistent extends DockContainerFactory {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
... | allow container customization based on content |
<nb> public final class BuildConfiguration {
return buildOptions ;
}
- COMMENT
- COMMENT
- COMMENT
- public List < Root > getRoots ( ) {
- List < Root > roots = new ArrayList < > ( ) ;
-
- SINGLE
- roots . add ( getBinDirectory ( ) ) ;
- roots . add ( getGenfilesDirectory ( ) ) ;
- roots . add... | Remove an unused method from BuildConfiguration |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AppUtils {
}
public static void setTextWithLinks ( TextView textView , String htmlText ) {
- textView . setText ( Html . fromHtml ( htmlTe... | Avoid empty html |
<nb> public class SSLContextServerParameters extends BaseSSLContextParameters {
Configurer < SSLEngine > sslEngineConfigurer = new Configurer < SSLEngine > ( ) {
@ override
public SSLEngine configure ( SSLEngine engine ) {
- LOG . info ( STRING0 , engine , clientAuthValue ) ;
+ LOG . trace ( STRING0 , engine ... | Turn down INFO logging as that was per request which can flood the logs |
<nb> public abstract class ImportClassFixBase < T extends PsiElement & PsiReference > im
if ( doShow && canImportHere ) {
String hintText = ShowAutoImportPass . getMessage ( classes . length > NUMBER0 , classes [ NUMBER1 ] . getQualifiedName ( ) ) ;
- if ( ! ApplicationManager . getApplication ( ) . isUnitTestM... | prevent import question popup from showing when another hint is shown e g line status change tooltip |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JacksonJsonSupport implements JsonSupport {
ObjectMapper mapper = ( ObjectMapper ) jp . getCodec ( ) ;
ObjectNode root = (... | not handled event NPE fixed |
<nb> public final class Host extends AbstractModel < Host > {
COMMENT
public long elementHash ( ) {
- long cksum = NUMBER0 ;
+ long cksum = NUMBER1 ;
synchronized ( interfaces ) {
cksum = calculateElementHashOf ( interfaces . values ( ) , cksum ) ;
<nb> public class CompoundCriteriaElement extends Abs... | Use uppercase L to avoid confusion |
<nb> public class UndoManagerImpl extends UndoManager implements ProjectComponent , Ap
final DocumentReference [ ] refs = new DocumentReference [ ] { DocumentReferenceManager . getInstance ( ) . create ( file ) } ;
if ( myCurrentMerger . hasChangesOf ( refs [ NUMBER0 ] ) ) return ;
- System . out . println ( ST... | forgotten logging removed |
<nb> public abstract class AutoValueExtension {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Remove an inaccurate javadoc reference which referred to an artifact from an earlier draft version of the Extensions API |
<nb> public class LocalEnvironment extends ExecutionEnvironment {
public void setNumTaskManager ( int numTaskManager ) {
this . numTaskManager = numTaskManager ;
}
+
+ public int getNumTaskManager ( ) { return this . numTaskManager ; }
public boolean isLoggingEnabled ( ) {
return this . logging ;
<nb>... | Fixed free memory calculation bug in case where multiple task manager run on the same jvm |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class PythonFacetType extends FacetType < PythonFacet , PythonFacetConfiguration > {
- public static final Icon ICON = IconLoader . findIcon ( STRING0 ) ;
+ public static final Icon ICON = IconLoader . getIcon ( STRING0 ) ;
@ nonnls
private static final Str... | always use getIcon instead of findIcon |
<nb> class MountService extends IMountService . Stub
}
private void onVolumeCreatedLocked ( VolumeInfo vol ) {
+ if ( mPms . isOnlyCoreApps ( ) ) {
+ Slog . d ( TAG , STRING0 + vol . getId ( ) ) ;
+ return ;
+ }
+
if ( vol . type == VolumeInfo . TYPE_EMULATED ) {
final StorageManager storage = mCont... | Skip mounting sdcardfs in core mode |
<nb> public class FontFamily_Delegate {
}
@ layoutlibdelegate
- COMMENT
- ByteBuffer buffer , final List < FontListParser . Axis > axes ,
- final int weight , final boolean isItalic ) {
+ COMMENT
+ int ttcIndex , List < FontListParser . Axis > listOfAxis ,
+ int weight , boolean isItalic ) {
assert ... | Fix FontFamily nAddFontWeightStyle in nyc |
<nb> public class PApplet implements PConstants {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | cleaning up param docs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ @ esintegtestcase.clusterscope ( minNumDataNodes = N... | add some nodes with ingest set to false to test redirect |
<nb> public class DeodexUtil {
public boolean visited = false ;
COMMENT
- COMMENT
- COMMENT
- public boolean fixed = false ;
-
- COMMENT
COMMENT
COMMENT
COMMENT | Remove unused fixed field from DeodexUtil insn |
<nb> public class MathUtils implements MathConstants {
return ( ( n != NUMBER0 ) && ( n & ( n - NUMBER1 ) ) == NUMBER0 ) ;
}
+ public static final int nextPowerOfTwo ( final float f ) {
+ return MathUtils . nextPowerOfTwo ( ( int ) ( Math . ceil ( f ) ) ) ;
+ }
+
public static final int nextPowerOfTwo (... | Added utility function in MathUtils |
<nb> public class TableDefinition extends BaseTableDefinition implements FlowWriter {
SINGLE
if ( getPrimaryColumnDefinitions ( ) . size ( ) == NUMBER0 ) {
- ColumnDefinition columnDefinition = getColumnDefinitions ( ) . get ( NUMBER1 ) ;
- if ( columnDefinition . isPrimaryKey ) {
- hasCachingId = ! columnD... | Fix order dependencies in caching mechanism |
<nb> public abstract class AndroidLiveWallpaperService extends WallpaperService {
Log . d ( TAG , STRING0 + pAction + STRING1 + pX + STRING1 + pY + STRING1 + pZ + STRING1 + pExtras + STRING1
+ pResultRequested + STRING2 ) ;
- if ( pAction . equals ( WallpaperManager . COMMAND_TAP ) ) {
- app . input . onTap (... | changed livewallpaper service doesn t report tap drop |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
Vector3f [ ] translations = track . getTranslations ( ) ;
int maxFrames = translations . length ;
for ( int frame = NUMBER0 ; frame < maxFrames ; ++ frame ) {
- System... | Removed unnecessary System out s |
<nb> public class WalletTest {
assertTrue ( STRING0 , wallet . getEncryptionType ( ) == EncryptionType . ENCRYPTED_SCRYPT_AES ) ;
SINGLE
- assertTrue ( STRING1 , wallet . checkPassword ( PASSWORD1 ) ) ;
+ assertTrue ( STRING2 , wallet . checkPassword ( PASSWORD1 ) ) ;
SINGLE
- assertTrue ( STRING3 , ! w... | Fix some labels in the wallet encryption tests |
<nb> public class AjpNioProtocol extends AbstractAjpProtocol {
COMMENT
public void release ( SocketWrapper < NioChannel > socket ,
AjpNioProcessor processor , boolean isSocketClosing ) {
- connections . remove ( socket ) ;
processor . recycle ( isSocketClosing ) ;
recycledProcessors . offer ( processor ) ; ... | Remove unnecessary call |
<nb> public class AudioService extends IAudioService . Stub {
|| mContext . getResources ( ) . getBoolean (
com . android . internal . R . bool . config_safe_media_volume_enabled ) ;
+ boolean safeMediaVolumeBypass =
+ SystemProperties . getBoolean ( STRING0 , false ) ;
+
SINGLE
SINGLE
int persistedSt... | Fix for SafeMedia logic and CTS tests |
<nb> public class DataIntegrityMetadata
incrementalChecksum . update ( buffer , start , end ) ;
incrementalChecksumValue = ( int ) incrementalChecksum . getValue ( ) ;
- incrementalOut . writeInt ( ( int ) incrementalChecksumValue ) ;
+ incrementalOut . writeInt ( incrementalChecksumValue ) ;
incrementalChe... | nit remove redundant int cast |
<nb> public class InsetDrawable extends Drawable implements Drawable . Callback {
throws XmlPullParserException , IOException {
final TypedArray a = r . obtainAttributes ( attrs , R . styleable . InsetDrawable ) ;
super . inflateWithAttributes ( r , parser , a , R . styleable . InsetDrawable_visible ) ;
+
+ m... | Fix behavior of inflating InsetDrawable |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
<nb> public class Scanner implements Runnable {
@ override
public void run ( ) {
- scan ( target ) ;
+ try {
+ scan ( target ) ;
SINGLE
SINGLE
SINGLE
- pool . waitAllThreadComplete ( NUMBER0 ) ;
- notifyScannerComplete ( ) ; ... | Prevent active scans from becoming in undefined state on exceptions |
<nb> public class ReaderPostListFragment extends Fragment
MenuItemCompat . setOnActionExpandListener ( mSearchMenuItem , new MenuItemCompat . OnActionExpandListener ( ) {
@ override
public boolean onMenuItemActionExpand ( MenuItem item ) {
+ if ( getPostListType ( ) != ReaderPostListType . SEARCH_RESULTS ) {
... | Don t bump stat again after rotation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
public class ExceptionTest
{
private HikariDataSource ds ; | Remove unused import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
public final class CompileUtils {
private CompileUtils ( ) { } | Remove reference to junit framework |
<nb> public class StructuralSearchTest extends StructuralSearchTestCase {
STRING0 +
STRING1 +
STRING2 ;
- assertEquals ( STRING3 , NUMBER0 , findMatchesCount ( source , STRING4 ) ) ;
+ assertEquals ( STRING5 , NUMBER0 , findMatchesCount ( source , STRING4 ) ) ;
assertEquals ( STRING6 , NUMBER1 , findMatches... | removed last package local |
<nb> public class ScopeChooserCombo extends ComboboxWithBrowseButton {
}
}
- model . addElement ( new ModifiedFilesScopeDescriptor ( ) ) ;
+ if ( ChangeListManager . getInstance ( myProject ) . getAffectedFiles ( ) . size ( ) > NUMBER0 ) {
+ model . addElement ( new ModifiedFilesScopeDescriptor ( ) ) ;
+ ... | Only show VCS modification scope for find usages if there are changes actually |
<nb> public class LookupImpl extends LightweightHint implements Lookup , Disposable {
private void restoreSelection ( @ nullable LookupElement oldSelected , boolean choosePreselectedItem , @ nullable String oldInvariant ) {
if ( oldSelected != null ) {
- if ( oldSelected . isValid ( ) && ListScrollingUtil . sel... | allow scrolling in a constantly updating lookup |
<nb> public class PartitionTask extends AbstractTask {
SINGLE
DistributionPattern dpReader = null ;
- switch ( config . getInputShipStrategy ( NUMBER0 ) ) {
+ switch ( config . getInputShipStrategy ( NUMBER1 ) ) {
case FORWARD :
SINGLE
dpReader = new PointwiseDistributionPattern ( ) ; | Fixed bug in PartitionTask distribution pattern |
<nb> public class CountriesFragment extends Fragment {
mViews = new ViewHolder ( view ) ;
mViews . initViews ( getActivity ( ) ) ;
mAdapter = new CountryNamesAdapter ( getActivity ( ) , mHeaderMode ) ;
+ mAdapter . setHeadersSticky ( mAreHeadersSticky ) ;
+ mAdapter . setMarginsFixed ( mAreMarginsFixed ) ;
... | Fix loss of header settings on example fragment recreation |
<nb> public class HistoricProcessInstanceAndVariablesQueryTest extends PluggableActiv
instanceList = historyService . createHistoricProcessInstanceQuery ( )
. variableValueEquals ( STRING0 , STRING0 )
. includeProcessVariables ( )
+ . orderByProcessInstanceId ( )
+ . asc ( )
. listPage ( NUMBER0 , NUMBER1 )... | Add order by for QA |
<nb>
- COMMENT
- COMMENT
- COMMENT
package NAMESPACE ;
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
public interface Pig extends Animals {
-
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean hasSaddle ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void se... | Added ability to saddle a pig to the API |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DeepLearningAutoEncoderCategoricalTest extends TestUtil {
}
@ test
+ @ ignore
public void run ( ) {
long seed = NUM... | Ignore failing test for now |
<nb> public abstract class GwtApplication implements EntryPoint , Application {
} ) ;
}
- protected void setupLoop ( ) {
+ void setupLoop ( ) {
SINGLE
try {
graphics = new GwtGraphics ( root , config ) ; | Change setupLoop to default access |
<nb> public class CompilerOptions {
checkGlobalNamesLevel = level ;
}
+ @ deprecated
public CheckLevel brokenClosureRequiresLevel ;
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public void setBrokenClosureRequiresLevel ( CheckLevel level ) {
brokenClosureRequiresLevel = l... | Remove references to the allow broken Closure requires option which will be removed soon |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ValidatorHelper {
}
}
+ public void isNotInterface ( TypeElement element , ElementValidation valid ) {
+ if ( annotationHelper . isInterface ( ele... | Fix EBean validation on interface |
<nb> public class EntityPersister < T , K > {
COMMENT
COMMENT
COMMENT
- public Builder < T , K > withEntity ( Class < T > clazz ) {
+ public Builder < T , K > withEntityType ( Class < T > clazz ) {
Preconditions . checkNotNull ( clazz ) ;
this . clazz = clazz ;
SINGLE
<nb> public class EntityPersister... | renamed withEntity to withEntityType |
<nb> public class Accounts extends K9ListActivity implements OnItemClickListener , OnC
new String [ ] { STRING0 , STRING1 } ,
new String [ ] { STRING2 , STRING3 } ,
new String [ ] { STRING4 , STRING5 } ,
+ new String [ ] { STRING6 , STRING7 }
} ;
private void onAbout ( ) { | Add ActionBarSherlock to the used libraries in the about dialog |
<nb> class BluetoothBondState {
mService = service ;
mBluetoothInputProfileHandler =
BluetoothInputProfileHandler . getInstance ( mContext , mService ) ;
+ getProfileProxy ( ) ;
}
synchronized void setPendingOutgoingBonding ( String address ) {
<nb> class BluetoothBondState {
if ( state == Bluetooth... | Fix crash during unpair |
<nb> import NAMESPACE ;
public class RemoteTest {
+ public static final int MAX_WORKERS = NUMBER0 ;
+
public static void main ( String [ ] args ) throws Exception {
if ( args . length < NUMBER1 || args . length > NUMBER2 )
croak ( STRING0 + RemoteTest . class . getName ( )
<nb> public class RemoteTest... | Set the connection pool max connetions per node to be |
<nb> public abstract class SQLiteProgram extends SQLiteClosable {
SINGLE
String prefixSql = mSql . substring ( NUMBER0 , NUMBER1 ) ;
if ( ! prefixSql . equalsIgnoreCase ( STRING0 ) && ! prefixSql . equalsIgnoreCase ( STRING1 ) &&
+ ! prefixSql . equalsIgnoreCase ( STRING2 ) &&
! prefixSql . equalsIgnoreCase (... | add REPLACE to the list of cached sql stmnts |
<nb> public final class Terasology {
}
public long getTimeInMs ( ) {
-
+ if ( _timer == null ) {
+ initTimer ( ) ;
+ }
return _timer . getTimeInMs ( ) ;
} | Fix broken performance test |
<nb> public class Main
}
File xml = new File ( xmlFilename ) ;
- if ( xml . exists ( ) && xml . isFile ( ) && xml . isAbsolute ( ) )
+ if ( xml . exists ( ) && xml . isFile ( ) )
{
return xml . getAbsolutePath ( ) ;
} | Command line should accept relative paths for xml config files |
<nb> public class PlayApplicationPlugin implements Plugin < Project > {
COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
- @ rulesource
- public static class Rules {
+ public static class Rules extends RuleSource {
@ model
PlayPluginConfigurations configurations ( ExtensionContainer extensions ) {
retur... | Change a missed use of RuleSource annotation to class |
<nb> public class GtfsRealtimeAlertsUpdater extends PollingGraphUpdater {
lastTimestamp = feedTimestamp ;
} catch ( Exception e ) {
- LOG . error ( STRING0 + url , e ) ;
+ LOG . error ( STRING1 + url , e ) ;
}
} | Fix another typo |
<nb> public class JDKAsyncHttpProvider implements AsyncHttpProvider < HttpURLConnection
}
if ( hasAuthentication ) {
- String password = STRING0 ;
- if ( proxyServer != null ) {
- if ( proxyServer . getPassword ( ) != null ) {
- password = proxyServer . getPassword ( ) ;
- }
- return new PasswordAuthe... | Remove duplicate logic |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class AppleNati... | Moved exportedDeps to CxxLibrary |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ANTLRFileStream extends ANTLRInputStream {
}
try {
data = new char [ size ] ;
- super . n = isr . read ( data ) ;
+ n = isr . read ( data ) ;
+ if ( n < dat... | Resize ANTLRInputStream data after reading a file with fewer characters than bytes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public class JSSESocketFactory implements ServerSocketFactory , SSLUtil { | Remove my Author Tags |
<nb> public interface GoIcons {
Icon CONST = new LayeredIcon ( AllIcons . Nodes . Field , AllIcons . Nodes . FinalMark ) ; SINGLE
Icon PARAMETER = AllIcons . Nodes . Parameter ;
Icon FIELD = AllIcons . Nodes . Field ;
- Icon LABEL = FIELD ; SINGLE
+ Icon LABEL = null ; SINGLE
Icon RECEIVER = AllIcons . Node... | use empty icon |
<nb> package NAMESPACE ;
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... | removed outdated docs |
<nb> public class Encoder implements Closeable
serializedToken . putMaxVal ( valArray , NUMBER0 , IrCodecUtils . putVal ( valBuffer , token . encoding ( ) . maxVal ( ) , type ) ) ;
serializedToken . putNullVal ( valArray , NUMBER0 , IrCodecUtils . putVal ( valBuffer , token . encoding ( ) . nullVal ( ) , type ) ) ;... | Inlined temporary variables |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CheckTagEmptyBodyInspection extends XmlSuppressableInspectionTool {
new WriteCommandAction ( project ) {
@ override
prote... | Replace Tag Empty Body With Empty End should obey code style |
<nb> public abstract class AbstractPartialInstant implements PartialInstant , Serializ
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public boolean equals ( Object instant ) { | Fixed param doc |
<nb> public class TemplateQueryTest extends ElasticsearchIntegrationTest {
templateParams . put ( STRING0 , STRING1 ) ;
SearchResponse searchResponse = client ( ) . prepareSearch ( STRING2 ) . setTypes ( STRING3 ) .
- setTemplateName ( STRING4 ) . setTemplateType ( ScriptService . ScriptType . INDEXED ) . setTe... | TEST Remove redundant call to setTemplateType |
<nb> import NAMESPACE ;
public class SwiftUnderFileSystemUtils {
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static void addKey ( Configuration conf , TachyonConf tachyonConf , String key ) {
if ( System . getProperty ( key ) != null... | Fixing mvn site warnings and cleaning up JavaDoc style in tachyon underfs swift |
<nb> public class ClientRequest extends OutboundMessageContext implements ClientReque
commitStream ( ) ;
} catch ( final IOException e ) {
ExceptionUtils . conditionallyReThrow ( e , ! runtimeException , LOGGER ,
- LocalizationMessages . ERROR_COMMITTING_OUTPUT_STREAM ( ) , Level . SEVERE ) ;
+ LocalizationMe... | adjusting log level of logged exception |
<nb> public class Update
COMMENT
COMMENT
COMMENT
- if ( ! deltaLink . equalsIgnoreCase ( downloadLink )
- && logger . isDebugEnabled ( ) )
+ if ( ! deltaLink . equalsIgnoreCase ( downloadLink ) )
delta = download ( deltaLink ) ;
+
if ( delta != null )
{
File [ ] deltaMsi = new File [ NUMBER0 ] ; | Activate windows delta check |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add new sample code for writing a ViewGroup |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT ... | tidied up the javadoc |
<nb> public class ContextualUndoListViewTouchListener implements View . OnTouchListener
}
}
- if ( mDownView != null ) {
+ if ( mDownView != null && mDownView instanceof ContextualUndoView ) {
mDownX = motionEvent . getRawX ( ) ;
mDownPosition = mListView . getPositionForView ( mDownView ) ;
<nb> publ... | Added a check so only instances of ContextualUndoView are swipeable |
<nb> public class BroadcastPlugin implements Plugin , Component , PropertyEventListener
public void destroyPlugin ( ) {
PropertyEventDispatcher . removeListener ( this ) ;
SINGLE
- try {
- componentManager . removeComponent ( serviceName ) ;
- }
- catch ( Exception e ) {
- componentManager . getLog ( ) ... | Improved destroy logic to be more resistent |
<nb> public class ZWaveController {
COMMENT
public void sendData ( SerialMessage serialMessage )
{
+ if ( serialMessage == null ) {
+ logger . error ( STRING0 ) ;
+ return ;
+ }
if ( serialMessage . getMessageClass ( ) != SerialMessageClass . SendData ) {
logger . error ( String . format ( STRING1 , s... | Step NPE if message encapsulation fails |
<nb> public class PagePool {
}
}
finally {
+ flushFinalizationQueue ( Integer . MAX_VALUE ) ;
+
+ COMMENT
if ( flushQueueNow ) {
SINGLE
SINGLE
<nb> public class PagePool {
SINGLE
SINGLE
}
+ COMMENT
}
}
<nb> public class PagePool {
if ( request == null ) return false ;
synchroni... | Don t use finalization queue for pages falling out of the cache |
<nb> public class AndroidApplication extends Activity implements Application {
public void onConfigurationChanged ( Configuration config ) {
super . onConfigurationChanged ( config ) ;
boolean keyboardAvailable = false ;
- if ( config . keyboardHidden == Configuration . HARDKEYBOARDHIDDEN_NO ) keyboardAvailable... | fixed keyboard config changes |
<nb> public class ResolveVisitor extends CodeVisitorSupport implements ExpressionTran
currentClass . getCompileUnit ( ) . addClassNodeToCompile ( type ) ;
return true ;
}
- return false ;
+ SINGLE
+ return type . isResolved ( ) ;
} | enables classloading again |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RoutingTableImpl extends BasicModule implements RoutingTable {
( ( Hashtable ) resourceRoutes ) . get ( node . getResourcePrep ( ) ) ;
}
else {
- System . e... | Replaces printStackTrace with Log error |
<nb> public class PopupIndicator {
public PopupIndicator ( Context context , AttributeSet attrs , int defStyleAttr , String maxValue , int thumbSize , int separation ) {
mWindowManager = ( WindowManager ) context . getSystemService ( Context . WINDOW_SERVICE ) ;
mPopupView = new Floater ( context , attrs , defSty... | Read display size before showing the indicator |
<nb> public class Converter
private static List < RawKeyspace > readTablesFromXml ( XMLUtils xmlUtils ) throws ConfigurationException
{
-
List < RawKeyspace > keyspaces = new ArrayList < RawKeyspace > ( ) ;
COMMENT
try
<nb> public class Converter
throw new ConfigurationException ( STRING0 ) ;
}
} ... | update Converter to switch default thrift mode to framed |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ; ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix bad import in VideoDumpActivity |
<nb> public class Reference < T > {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
public T getAndClear ( ) {
- return exchange ( null ) ;
+ return getAndSet ( null ) ;
}
COMMENT
<nb> public class Reference < T > {
COMMENT
COMMENT
COMMENT
- public T exchange ( T value ... | Small naming improvement in org parboiled common Reference |
<nb> public class CoreModManager {
coreModList = ObjectArrays . concat ( coreModList , versionedCoreMods , File . class ) ;
}
- ObjectArrays . concat ( coreModList , ModListHelper . additionalMods . values ( ) . toArray ( new File [ NUMBER0 ] ) , File . class ) ;
+ coreModList = ObjectArrays . concat ( coreMo... | Fix mods defined via mods or modListFile launch args not being searched for coremods |
<nb> public class MaterialMenuDrawable extends Drawable implements Animatable {
startX += strokeWidth / NUMBER0 + ratio * dip4 ;
stopX += ratio * ( dip6 + dip2 ) ;
} else {
- SINGLE
- rotation = CHECK_MIDDLE_ANGLE + ( NUMBER1 - ratio ) * NUMBER2 ;
+ SINGLE
+ rotation = CHECK_MIDDLE_ANGLE - CHECK_MIDDLE_AN... | Improved CHECK to ARROW animation |
<nb> public class StringUtils {
if ( count == NUMBER0 ) {
return context . getString ( one ) ;
}
- return context . getString ( other , count ) ;
+ return String . format ( context . getString ( other ) , count ) ;
}
} | use String format getString format instead of buggy getString format |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Ref < T > {
myValue = value ;
}
- public boolean isNull ( ) {
+ public final boolean isNull ( ) {
return myValue == null ;
}
- public T get ( ) {
+ public final T get ( ) {
return myValue ;
}
- public vo... | made accessors final to avoid megamorphism |
<nb> public class PolishWordTokenizer extends WordTokenizer {
COMMENT
COMMENT
COMMENT
- private final static Set < String > prefixes ;
+ private static final Set < String > prefixes ;
SINGLE
SINGLE
<nb> public class PolishWordTokenizer extends WordTokenizer {
} else {
l . add ( token ) ;
}
- }... | remove dead code remove outdated comment |
<nb> public class StorageDir {
public void resizeTempBlockMeta ( TempBlockMeta tempBlockMeta , long newSize )
throws InvalidStateException {
long oldSize = tempBlockMeta . getBlockSize ( ) ;
- tempBlockMeta . setBlockSize ( newSize ) ;
if ( newSize > oldSize ) {
reserveSpace ( newSize - oldSize , false ) ; ... | Set tempBlock size only when method reserveSpace succeeds |
<nb> public class TransactionContextProxy implements TransactionContext {
this . client = transactionManager . getClient ( ) ;
try {
this . connection = client . getConnectionManager ( ) . tryToConnect ( null ) ;
- System . out . println ( STRING0 + connection ) ;
} catch ( Exception e ) {
throw new Hazelca... | removing the system out println |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class SelectConnector extends AbstractLifeCycle implements HttpClient . Connector
else
{
... | SelectConnector catch UnresolvedAddressException to avoid socket leak |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.