diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class DumpMatrices {
String filename = unaryScoreDir + File . separator + entry . getKey ( ) + STRING0 ;
dumpMatrix ( filename , entry . getValue ( ) ) ;
}
+
+ String embeddingFile = outputDir + File . separator + STRING1 ;
+ FileWriter fout = new FileWriter ( embeddingFile ) ;
+ BufferedWrite... | Add the embeddings to the matrix dump |
<nb> public class XmlStringBuilder implements Appendable , CharSequence {
return this ;
}
+ public XmlStringBuilder emptyElement ( Enum < ? > element ) {
+ return emptyElement ( element . name ( ) ) ;
+ }
+
public XmlStringBuilder emptyElement ( String element ) {
halfOpenElement ( element ) ;
retur... | Add XmlStringBuilder emptyElement Enum |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | run mojo to point to correct documentation |
<nb> public class ComboBoxTableRenderer < T > extends JLabel implements TableCellRendere
public Component getTableCellEditorComponent ( JTable table , final Object value , boolean isSelected , final int row , final int column ) {
@ suppresswarnings ( STRING0 ) final T t = ( T ) value ;
myValue = t ;
- customize... | severities table cell not changes foreground on selection while editing fixed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ContentRootData extends AbstractExternalEntityData {
return buffer . toString ( ) ;
}
- public static class SourceRoot {
+ public static... | source package prefix support added fix for out of process mode support |
<nb> public final class AsyncHttpClientConfigDefaults {
}
public static boolean defaultAcceptAnyCertificate ( ) {
- return getBooleanValue ( ASYNC_CLIENT + STRING0 , false ) ;
+ return getBoolean ( ASYNC_CLIENT + STRING0 , false ) ;
}
} | Fix build after revert |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class PreprocessorDelegate implements RuleKeyAppendable {
public String hashCommand ( CxxToolFlags extraFlags ) {
Hasher hasher = Hashing . murmur3_128 ( )... | ignore the executable itself when hashing preprocessor command |
<nb> public final class BluetoothGatt implements BluetoothProfile {
mService . readDescriptor ( mClientIf , address ,
srvcType , srvcInstId , srvcUuid , charInstId , charUuid ,
descrInstId , descrUuid , AUTHENTICATION_MITM ) ;
+ return ;
} catch ( RemoteException e ) {
Log . e ( TAG , STRING0 , e ) ;
}
... | Do not invoke callback if retrying read write operation |
<nb> public final class BridgeWindowSession implements IWindowSession {
@ override
public int addToDisplay ( IWindow arg0 , int seq , LayoutParams arg1 , int arg2 , int displayId ,
- Rect arg3 , Rect arg4 , InputChannel outInputchannel )
+ Rect arg3 , Rect arg4 , Rect arg5 , InputChannel outInputchannel )
t... | Build fix after changing IWindowSession |
<nb> public class ControlStructureTypingVisitor extends ExpressionTypingVisitor {
@ notnull
private DataFlowInfo checkCondition ( @ notnull JetScope scope , @ nullable JetExpression condition , ExpressionTypingContext context ) {
if ( condition != null ) {
- JetTypeInfo typeInfo = facade . getTypeInfo ( conditi... | Fixed expected type for if expression |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Add license header |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
COMMENT
COMMENT
public void setFilterTouchesWhenObscured ( boolean enabled ) {
- setFlags ( enabled ? NUMBER0 : FILTER_TOUCHES_WHEN_OBSCURED ,
+ setFlags ( enabled ? FILTER_TOUCHES_WHEN_OBSCURED : NUMBER0 ,
FILTER_TOUCHES_WHEN_OBS... | Fix inverted conditional in View setFilterTouchesWhenObscured |
<nb> final class CdmaServiceStateTracker extends ServiceStateTracker {
if ( ! mPendingRadioPowerOffAfterDataOff ) {
DataConnectionTracker . State currentState = dcTracker . getState ( ) ;
if ( currentState != DataConnectionTracker . State . CONNECTED
- && currentState != DataConnectionTracker . State . DISCONNE... | Resolve race conditions with disconnect of CDMA data and airplane mode |
<nb>
package NAMESPACE ;
- SINGLE
-
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public interface Managed {
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void start ( ) throws Exception ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void stop ( ) throws Exce... | Added docs for Managed |
<nb> public class AccessibilityServiceInfo implements Parcelable {
mId = new ComponentName ( serviceInfo . packageName , serviceInfo . name ) . flattenToShortString ( ) ;
mResolveInfo = resolveInfo ;
- String settingsActivityName = null ;
- boolean retrieveScreenContent = false ;
XmlResourceParser parser = ... | AccessibilityNodeInfo does not report checkable coreclty |
<nb> public class PlanGenerator {
if ( backMode != TraverseMode . LEG_SWITCH ) { SINGLE
legIndexPairs [ NUMBER0 ] = i ;
} else if ( forwardMode != TraverseMode . LEG_SWITCH ) { SINGLE
- if ( legIndexPairs [ NUMBER0 ] == states . length - NUMBER0 ) continue ;
- legsIndexes . add ( legIndexPairs ) ;
+ if ( le... | Fix It Again Tony |
<nb> public abstract class AbstractCacheRecordStore < R extends CacheRecord , CRM extend
protected R createRecord ( Data key , Object value , long expiryTime ,
long now , boolean disableWriteThrough , int completionId , String origin ) {
- R record = createRecord ( value , expiryTime ) ;
+ R record = createRe... | Fix cache record creation with expiry time |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public class FileAuthenticationHandlerTests {
private FileAuthenticationHandler authenticationHandl... | Fixing new line at the end of files marked the rule to be an error |
<nb> public class ConvolutionLayer extends FeedForwardLayer {
this . padding = builder . padding ;
}
- public enum PoolingType {
- FULL , VALID , SAME
- }
-
@ override
public ConvolutionLayer clone ( ) {
ConvolutionLayer clone = ( ConvolutionLayer ) super . clone ( ) ;
<nb> public class Subsamplin... | Aligned api interface for CNN and subsampling |
<nb> public class SupportFragment extends Fragment implements ISupportFragment {
if ( mIsFirstVisible ) {
mIsFirstVisible = false ;
onLazyInitView ( mSaveInstanceState ) ;
- _mActivity . dispatchFragmentLifecycle ( LifecycleHelper . LIFECYLCE_ONLAZYINITVIEW , this ) ;
+ if ( _mActivity != null ) {
+ _mActiv... | Add a null value check |
<nb> public class ForgeWorldEdit {
@ forgesubscribe
public void onPlayerInteract ( PlayerInteractEvent event ) {
if ( platform == null ) {
- logger . warning ( STRING0 ) ;
return ;
} | Forge Remove the message if platform null |
<nb> public class FlowLayout extends ViewGroup {
@ override
protected void onMeasure ( int widthMeasureSpec , int heightMeasureSpec ) {
int sizeWidth = MeasureSpec . getSize ( widthMeasureSpec ) - this . getPaddingRight ( ) - this . getPaddingLeft ( ) ;
- int sizeHeight = MeasureSpec . getSize ( widthMeasureSpe... | FIX bug vertical layout max size |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import N... | Don t launch REPL on kotlinc jvm version |
<nb> public class ProfilerEditingTarget implements EditingTarget ,
{
FileSystemItem fsi ;
if ( suggestedPath != null )
- fsi = FileSystemItem . createFile ( suggestedPath ) ;
+ fsi = FileSystemItem . createFile ( suggestedPath ) . getParentPath ( ) ;
else
fsi = workbenchContext_ . getDefaultFileDialogDir ... | clear the file name for the save profile as dialog |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class EurekaModule extends AbstractModule {
+ public final class EurekaModule extends AbstractModule {
@ override
protected void configure ( ) {
SINGLE
<nb> public class EurekaModule extends AbstractModule {
bind ( EurekaClient . class ) . t... | Adding equals and hashcode to EurekaModule |
<nb> public class TomcatEmbeddedServletContainerFactory extends
private String protocol = DEFAULT_PROTOCOL ;
- private static String DEFAULT_SKIP_JARS = STRING0
+ private static String DEFAULT_SKIP_JARS = STRING1
+ + STRING2
+ STRING3
- + STRING4
- + STRING5
+ + STRING6
+ + STRING7
+ STRING8 ;
... | Fix JSP sample |
<nb> public abstract class WebappClassLoaderBase extends URLClassLoader
COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- protected final Permission allPermission = new java . security . AllPermission ( ) ;
-
-
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class WebappClassLo... | Remove unused code |
<nb> public class GrailsHibernateUtil {
if ( offset > - NUMBER0 ) {
c . setFirstResult ( offset ) ;
}
- if ( GrailsClassUtils . getBooleanFromMap ( ARGUMENT_CACHE , argMap ) ) {
- c . setCacheable ( true ) ;
- }
if ( GrailsClassUtils . getBooleanFromMap ( ARGUMENT_LOCK , argMap ) ) {
c . setLockMode ( L... | disable query cache when lock true make it possible to disable caching for a query |
<nb> public class ShadowAnimation {
private int repeatCount ;
private int repeatMode ;
private long startOffset ;
+ private boolean fillAfter ;
@ realobject
private Animation realAnimation ;
<nb> public class ShadowAnimation {
return startOffset ;
}
+ @ implementation
+ public void setFillAfte... | Added ShadowAnimation getFillAfter and setFillAfter |
<nb> static ISeq seqFrom ( Object coll ) {
else {
Class c = coll . getClass ( ) ;
Class sc = c . getSuperclass ( ) ;
- throw new IllegalArgumentException ( STRING0 + c . getSimpleName ( ) ) ;
+ throw new IllegalArgumentException ( STRING0 + c . getName ( ) ) ;
}
} | improve error message on seqFrom to include full classname |
<nb> public class FingerprintService extends SystemService implements IBinder . DeathRe
removeClient ( client ) ;
}
if ( DEBUG ) Slog . v ( TAG , STRING0
- + client != null ? client . getOwnerString ( ) : STRING1 + STRING2 + error + STRING3 ) ;
+ + ( client != null ? client . getOwnerString ( ) : STRING1 ) + ... | Fix operator precedence bug causing a crash |
<nb> public class RevealFrameLayout extends FrameLayout implements RevealAnimator {
@ override
public void setRevealRadius ( float radius ) {
mRadius = radius ;
+ mRevealInfo . getTarget ( ) . getHitRect ( mTargetBounds ) ;
invalidate ( mTargetBounds ) ;
}
<nb> public class RevealFrameLayout extends Fra... | Fix reveal layout invalidation rect refresh |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class LivenessInfo
{ | Add hopefully useful clarification comment |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MongoDbCasEventRepository extends AbstractCasEventRepository {
@ notnull
private MongoOperations mongoTemplate ;
-
COMMENT
COMMENT
C... | added principal id |
<nb> public class DefaultWorkerProcess implements WorkerProcess {
@ override
public String toString ( ) {
- return execHandle . toString ( ) ;
+ return STRING0
+ + STRING1 + running
+ + STRING2 + execHandle
+ + STRING3 ;
}
public ObjectConnection getConnection ( ) { | Fix potential NPE in DefaultWorkerProcess toString |
<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve
} else if ( arg . equals ( STRING0 ) ) {
if ( database . FindProduct ( node . getManufacturer ( ) , node . getDeviceType ( ) , node . getDeviceId ( ) ) != false ) {
List < ZWaveDbConfigurationParameter > configList = database .... | Fix NPE if database has no configuration for a device |
<nb> public class OSProcessHandler extends ProcessHandler {
processRequest ( request ) ;
if ( ! request . isClosed ( ) ) addRequest ( request ) ;
- Thread . yield ( ) ;
+ try {
+ Thread . sleep ( NUMBER0 ) ;
+ }
+ catch ( InterruptedException e ) {
+ SINGLE
+ }
}
} | They say Thread yield doesn t work reliably on some platforms |
<nb> import NAMESPACE ;
COMMENT
COMMENT
final class HttpRequestBuilder {
- private static final Logger LOGGER = Logger . getLogger ( HttpRequestBuilder . class . getName ( ) ) ;
-
private final Gson gson ;
private Method javaMethod ; | Remove unused Logger instance |
<nb> public class FileGraphSource implements GraphSource {
Graph newGraph = loadGraph ( ) ;
if ( graph != null )
decorator . shutdownGraph ( graph ) ;
- SINGLE
- graph = newGraph ; SINGLE
+ SINGLE
+ if ( newGraph != null ) {
+ graph = newGraph ; SINGLE
+ } else {
+ LOG . warn ( STRING0 ,
+ routerI... | Keep old graph in case of graph load failure |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
public class BanoGeocoder implements Geocoder { | Remove fixed TODO comment at least in this branch |
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
LOGGER . log ( Level . WARNING , STRING0 , e ) ;
ks = null ;
}
+ } else {
+ ks . load ( null , null ) ;
}
} | Initialize the Key Store |
<nb> public class OLocalPaginatedCluster extends OSharedResourceAdaptive implements O
acquireExclusiveLock ( ) ;
try {
diskCache . setSoftlyClosed ( fileId , softlyClosed ) ;
+ clusterStateHolder . setSoftlyClosed ( softlyClosed ) ;
} finally {
releaseExclusiveLock ( ) ;
} | Add missing softly closed flag to clusterStateHolder |
<nb> public final class NodeUtil {
case Token . SCRIPT :
case Token . BLOCK :
case Token . LABEL :
+ case Token . NAMESPACE_ELEMENTS : SINGLE
return true ;
default :
return false ;
<nb> public final class Es6TypedToEs6ConverterTest extends CompilerTestCase {
testExternChanges ( STRING0 ,
STRING1 ) ;... | Include NAMESPACE_ELEMENTS in NodeUtil isStatementParent for TypeScript namespaces |
<nb> public class Inspect extends Request {
return NBModelView . redirect ( this , key ) ;
if ( f instanceof DRFModel )
return DRFModelView . redirect ( this , key ) ;
- if ( f instanceof hex . speedrf . RFModel )
- return water . api . SPDRFView . redirect ( this , key ) ;
if ( f instanceof GapStatisticMod... | remove cast in Inspect for old speedrf |
<nb> public class GelfCodec extends AbstractCodec {
}
SINGLE
- if ( message . getField ( key ) != null || Message . RESERVED_FIELDS . contains ( key ) ) {
+ if ( message . getField ( key ) != null || ( Message . RESERVED_FIELDS . contains ( key ) && ! Message . RESERVED_SETTABLE_FIELDS . contains ( key ) ) ) ... | Allow Message RESERVED_SETTABLE_FIELDS fields set by a GELF message |
<nb> public class CRUDDocumentPhysicalTest {
record . field ( STRING0 , STRING1 ) ;
record . field ( STRING2 , STRING3 ) ;
record . field ( STRING4 , ( i + NUMBER0 ) ) ;
+ record . field ( STRING5 , NUMBER1 ) ; SINGLE
record . field ( STRING6 , STRING7 ) ;
record . save ( STRING8 ) ;
<nb> public class C... | Inserted test for LONG types |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
- impo... | tidied up imports |
<nb> public class TileAdapter extends BaseAdapter {
}
private void addTile ( String spec , Icon icon , CharSequence label , Context context ) {
- addTile ( spec , icon . getDrawable ( context ) , label ) ;
+ addTile ( spec , icon != null ? icon . getDrawable ( context ) : null , label ) ;
}
private View... | Fix crash in add QS tiles |
<nb> public class TxManager extends AbstractTransactionManager implements Lifecycle
if ( ! tmOk )
{
SystemException ex = new SystemException ( STRING0
- + STRING1 ) ;
+ + STRING2 ) ;
if ( tmNotOkCause != null )
{
ex = Exceptions . withCause ( ex , tmNotOkCause ) ;
<nb> public class TxManager extends A... | Fixed spelling mistake |
<nb> class Normalize implements CompilerPass {
}
} else if ( n . isStringKey ( ) && isMarkedExpose ( n ) ) {
exposedProperties . add ( n . getString ( ) ) ;
+ } else if ( n . isGetProp ( ) && n . getParent ( ) . isExprResult ( )
+ && isMarkedExpose ( n ) ) {
+ exposedProperties . add ( n . getLastChild ( ) ... | Allow expose on stub declarations |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
public class JerseyClientFactory {
private final JerseyClientConfiguration configur... | Removed unused code from JerseyClientFactory |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
COMMENT
public void clearUnsafe ( )
{
- for ( ColumnFamilyStore cfs : concatWithIndexes ( ) )
- cfs . data . init ( ) ;
+ for ( final ColumnFamilyStore cfs : concatWithIndexes ( ) )
+ {
+ cfs . runWithCompactionsDisabled ( new Callabl... | Stop compactions before butchering DataTracker in tests |
<nb> public class Decoder extends DecoderBase {
int first = tmpbuf [ NUMBER0 ] ;
- in_progress . set_flags ( first ) ;
+ in_progress . set_flags ( first & Msg . more ) ;
next_step ( in_progress ,
message_ready ) ; | Fix the message decoder to ignore reserved flags |
<nb> public interface CodingConvention extends Serializable {
final String subclassName ;
final String superclassName ;
- SubclassRelationship ( SubclassType type ,
+ public SubclassRelationship ( SubclassType type ,
Node subclassNode , Node superclassNode ) {
this . type = type ;
this . subclassName = ... | Allow JSC to understand the basic class relationships excluding interfaces |
<nb> public class ReadMoreTextView extends TextView {
typedArray . getBoolean ( R . styleable . ReadMoreTextView_showTrimExpandedText , DEFAULT_SHOW_TRIM_EXPANDED_TEXT ) ;
typedArray . recycle ( ) ;
viewMoreSpan = new ReadMoreClickableSpan ( ) ;
+ setText ( ) ;
}
private void setText ( ) { | Fix error with setText from layout |
<nb> public class DefaultSourceMappingTests extends ElasticsearchTestCase {
assertThat ( mapper . type ( ) , equalTo ( STRING0 ) ) ;
assertThat ( mapper . sourceMapper ( ) . enabled ( ) , equalTo ( false ) ) ;
try {
- mapper = MapperTestUtils . newParser ( ) . parse ( null , getRandom ( ) . nextBoolean ( ) ? nu... | Remove random empty string from test since it triggers a different exception |
<nb> public class DefaultFileSystemContext implements FileSystemContext {
@ override
public File file ( String . . . path ) {
- return new File ( file , join ( File . separator , path ) ) ;
+ return new File ( file , join ( File . separator , ( Object [ ] ) path ) ) ;
}
@ override
<nb> public abstract... | Fix some compiler warnings |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ObjectNode < T > {
action . execute ( myObject ) ;
myTree . fireExecuted ( myObject ) ;
}
+ catch ( ProcessCanceledException e ) {
+ throw new Proce... | do not log ProcessCanceledException |
<nb> public class FeedItem extends FeedComponent implements ShownotesProvider , Flattr
if ( other . media != null ) {
if ( media == null ) {
setMedia ( other . media ) ;
- } else if ( media . compareWithOther ( other ) ) {
- media . updateFromOther ( other ) ;
+ } else if ( media . compareWithOther ( other ... | Fix issue where feed media attributes did not get updated |
<nb> public class WireMockClassRule implements MethodRule , TestRule {
private final Options options ;
private final WireMockServer wireMockServer ;
+ private final WireMock wireMock ;
public WireMockClassRule ( Options options ) {
this . options = options ;
this . wireMockServer = new WireMockServer ( ... | create an instance of WireMock for the server created by the WireMockClassRule |
<nb> final class LocalDisplayAdapter extends DisplayAdapter {
physIndex = findDisplayInfoIndexLocked ( colorTransformId , modeId ) ;
}
}
- if ( physIndex > NUMBER0 && mActivePhysIndex == physIndex ) {
+ if ( mActivePhysIndex == physIndex ) {
return ;
}
SurfaceControl . setActiveConfig ( getDisplayTokenL... | Do not issue config change command when not needed |
<nb> public class BlockChain {
SINGLE
blockStore . put ( newStoredBlock ) ;
SINGLE
- if ( storedPrev == chainHead ) {
+ if ( storedPrev . equals ( chainHead ) ) {
SINGLE
chainHead = newStoredBlock ;
LOG ( STRING0 + chainHead . height + STRING1 ) ;
<nb> class StoredBlock {
boolean moreWorkThan ( Stor... | Implement the equals method on StoredBlock and use it |
<nb> public final class FileUtils {
PosixFileAttributeView view =
Files . getFileAttributeView ( Paths . get ( path ) , PosixFileAttributeView . class ,
LinkOption . NOFOLLOW_LINKS ) ;
- UserPrincipal userPrincipal = lookupService . lookupPrincipalByGroupName ( user ) ;
+ UserPrincipal userPrincipal = lookupS... | SMALLFIX Fix a bug in FileUtils when getting local principal |
<nb> public class PeerGroup extends AbstractIdleService implements TransactionBroadca
COMMENT
COMMENT
public ListenableFuture < Transaction > broadcastTransaction ( final Transaction tx ) {
- return broadcastTransaction ( tx , getMinBroadcastConnections ( ) ) ;
+ return broadcastTransaction ( tx , Math . max ... | Don t allow attempts to broadcast to zero peers |
<nb> public class PsiUtilBase {
break ;
}
}
- curOffset = elt . getTextRange ( ) . getEndOffset ( ) ;
+ int endOffset = elt . getTextRange ( ) . getEndOffset ( ) ;
+ if ( endOffset == curOffset ) {
+ endOffset ++ ;
+ }
+ curOffset = endOffset ;
} while ( curOffset < end ) ;
return narrowLanguage (... | avoid infinite loop on zero size PSI elements |
<nb> public class TrustManagerService extends SystemService {
if ( resolveInfo . serviceInfo == null ) continue ;
String packageName = resolveInfo . serviceInfo . packageName ;
- SINGLE
- SINGLE
- COMMENT
if ( pm . checkPermission ( PERMISSION_PROVIDE_AGENT , packageName )
!= PackageManager . PERMISSION... | Reenabling permission check for TrustAgent |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MatcherImpl {
match ( el ) ;
}
if ( element instanceof PsiLanguageInjectionHost ) {
- InjectedLa... | rename InjectedLanguageFacadeImpl back to InjectedLanguageUtil |
<nb> public class FindbugsSensor implements Sensor {
context . saveViolation ( violation ) ;
}
} else {
- Logs . INFO . debug ( STRING0 , fbViolation . getType ( ) ) ;
+ Logs . INFO . warn ( STRING1 , fbViolation . getType ( ) ) ;
}
}
} | Ignore violations from findbugs report if rule not activated in Sonar |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class NativeFileIconProvider implements FileIconProvider {
- private final JFileChooser myFileChooser = new JFileChooser ( ) ;
private final Map < Ext , Icon > myIconCache = new HashMap < Ext , Icon > ( ) ;
SINGLE
private final Set < Ext > myCustomIconExtensi... | replace init of swing components on component initialization in read action with static inner class access with no read action |
<nb> public class AudioService extends IAudioService . Stub {
( flags & AudioManager . FLAG_BLUETOOTH_ABS_VOLUME ) == NUMBER0 ) {
synchronized ( mA2dpAvrcpLock ) {
if ( mA2dp != null && mAvrcpAbsVolSupported ) {
- mA2dp . setAvrcpAbsoluteVolume ( index ) ;
+ mA2dp . setAvrcpAbsoluteVolume ( index / NUMBER1 ) ... | DO NOT MERGE setAvrcpAbsoluteVolume is passed wrong unit parameter from AudioManager |
<nb> public class AccountActivity extends Activity {
public void showQR ( )
{
- try {
String localFingerprint = OtrAndroidKeyManagerImpl . getInstance ( this ) . getLocalFingerprint ( mOriginalUserAccount ) ;
String uri = XmppUriHelper . getUri ( mOriginalUserAccount , localFingerprint ) ;
new IntentI... | remove unneeded exception handling code |
<nb> public class WebsocketComponentConfigurationAndDocumentationTest extends CamelTe
ComponentConfiguration compConf = comp . createComponentConfiguration ( ) ;
String json = compConf . createParameterJsonSchema ( ) ;
- assertTrue ( json . contains ( STRING0 ) ) ;
- assertTrue ( json . contains ( STRING1 ) )... | Changed the json schema slightly to alwyas include the javaType as well |
<nb> public class WifiWatchdogStateMachine extends StateMachine {
break ;
case EVENT_WIFI_RADIO_STATE_CHANGE :
- if ( ( Integer ) msg . obj == WifiManager . WIFI_STATE_DISABLING )
+ if ( msg . arg1 == WifiManager . WIFI_STATE_DISABLING ) {
transitionTo ( mNotConnectedState ) ;
+ }
break ;
default: | Fix msg argument usage |
<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 ;
import NAMESPA... | don t check uncommitted documents allow inspection validators to provide some custom checks |
<nb> public class CoreModManager {
return name . endsWith ( STRING0 ) ;
}
} ;
+ FilenameFilter derpfilter = new FilenameFilter ( ) {
+ @ override
+ public boolean accept ( File dir , String name )
+ {
+ return name . endsWith ( STRING1 ) ;
+ }
+ } ;
+ File [ ] derplist = coreMods . listFiles ( der... | Make more noise when people screw up mod downloading and put |
<nb> public class OCommandExecutorSQLCreateEdge extends OCommandExecutorSQLSetAware {
edge . save ( clusterName ) ;
- edges . add ( edge . getId ( ) ) ;
+ edges . add ( edge ) ;
}
} | Fixed bug on SQL create edge against remote protocol |
<nb> public class IOSRobovmTests extends IOSApplication . Delegate {
protected IOSApplication createApplication ( ) {
IOSApplicationConfiguration config = new IOSApplicationConfiguration ( ) ;
config . useAccelerometer = false ;
- return new IOSApplication ( new GcTest ( ) , config ) ;
+ return new IOSApplica... | fixed compiler errors |
<nb> public final class Runner implements Callable < Object > , Closeable {
connector . setMaxPostSize ( NUMBER0 ) ;
connector . setAttribute ( STRING0 , false ) ;
+ SINGLE
+ connector . setAttribute ( STRING1 , NUMBER1 ) ;
+
return connector ;
} | Allow longer URLs in Serving Layer |
<nb> public class Container extends AbsLayoutContainer {
if ( oldFrames . get ( m . getKey ( ) ) != null ) {
ItemProxy old = oldFrames . remove ( m . getKey ( ) ) ;
+ proxy . view = old . view ;
- SINGLE
- proxy . view = old . view ;
+ if ( ! old . compareFrames ( ( ( ItemProxy ) m . getValue ( ) ) . fr... | We now only move cells that need to be moved |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class DialogWrapper {
helpButton . putClientProperty ( STRING0 , STRING1 ) ;
helpButton . setText ( STRING2 ) ;
helpButton . setMargin ( insets ) ;
+ hel... | added tooltip text for mac os x help button |
<nb> public class CeQueueDao implements Dao {
private Optional < CeQueueDto > tryToPeek ( DbSession session , String taskUuid ) {
int touchedRows = mapper ( session ) . updateIfStatus ( taskUuid , IN_PROGRESS , system2 . now ( ) , system2 . now ( ) , PENDING ) ;
if ( touchedRows != NUMBER0 ) {
- session . rollb... | remove useless session rollback causing MySql UT instability |
<nb> public class GameData
private static final int MIN_POTIONTYPE_ID = NUMBER0 ; SINGLE
private static final int MAX_POTIONTYPE_ID = Integer . MAX_VALUE > > NUMBER1 ; SINGLE
private static final int MIN_ENCHANTMENT_ID = NUMBER0 ; SINGLE
- private static final int MAX_ENCHANTMENT_ID = Integer . MAX_VALUE > > NU... | Set max enchantment ID to Short MAX_VALUE |
<nb> public class NumberPickerDialog extends DialogFragment
private SwitchCompat mSwitch ;
private TextView mHeaderText ;
private NumberPicker mNumberPicker ;
+ private NumberPicker . Formatter mFormat ;
private int mMinValue ;
private int mMaxValue ;
private boolean mConfirmed ;
<nb> public class Numbe... | Exposing a number formatter for NumberPickerDialog |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConvertFormatOperatorToMethodIntention extends BaseIntentionAction
if ( f_modifier != null ) {
SINGLE
if ( has ( f_modifi... | fixed inappropriate align in Replace format with str format intention |
<nb> public final class ActiveServices {
static final boolean DEBUG_DELAYED_SERVICE = ActivityManagerService . DEBUG_SERVICE ;
static final boolean DEBUG_DELAYED_STARTS = DEBUG_DELAYED_SERVICE ;
static final boolean DEBUG_MU = ActivityManagerService . DEBUG_MU ;
- static final boolean LOG_SERVICE_START_STOP = t... | Stop logging service starts and stops |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HdfsSecurityUtil {
public static void login ( Map conf , Configuration hdfsConfig ) throws IOException {
SINGLE
if ( conf . get ( TOPOLOGY_AUTO_CREDENTIALS ) == null... | Allow AutoTGT to work with storm hdfs too |
<nb> public class FloatingActionsMenu extends ViewGroup {
private ObjectAnimator mExpandAlpha = new ObjectAnimator ( ) ;
private ObjectAnimator mCollapseDir = new ObjectAnimator ( ) ;
private ObjectAnimator mCollapseAlpha = new ObjectAnimator ( ) ;
+ private boolean animationsSetToPlay ;
public LayoutParams... | Only call AnimatorSet play once for each animation |
<nb> public class SampleAdditionalAttachmentEmailView extends FrameLayout {
telescopeView . setLens (
new EmailLens ( getContext ( ) , STRING0 , STRING1 ) {
@ override protected Set < Uri > getAdditionalAttachments ( ) {
+ SINGLE
return Collections . singleton ( Uri . fromFile ( file ) ) ;
}
} | Add a note about FileProvider in the sample |
<nb> public class PeriodGranularity extends BaseQueryGranularity
@ override
public byte [ ] cacheKey ( )
{
- return ( period . toString ( ) + STRING0 + chronology . getZone ( ) . toString ( ) ) . getBytes ( Charsets . UTF_8 ) ;
+ return ( period . toString ( ) + STRING0 + chronology . getZone ( ) . toString (... | Include origin when creating the cacheKey for period Grans |
<nb> public class ReflectionUtil {
int columnIndex = cursor . getColumnIndex ( colName ) ;
+ SINGLE
+ if ( columnIndex < NUMBER0 ) {
+ Log . e ( STRING0 , STRING1 ) ;
+ return ;
+ }
+
if ( cursor . isNull ( columnIndex ) ) {
return ;
} | warn developer to upgrade database on missing colName |
<nb> class ContextSourceSettingPostProcessor implements BeanFactoryPostProcessor , Ord
STRING0 , e ) ;
}
- String [ ] sources = bf . getBeanNamesForType ( contextSourceClass ) ;
-
+ String [ ] sources = bf . getBeanNamesForType ( contextSourceClass , false , false ) ;
if ( sources . length == NUMBER0 ) ... | Avoid bean creation side effects in ContextSourceSettingPostProcessor |
<nb> public abstract class BaseOnScreenControl extends HUD implements IOnSceneTouchLi
final ILayer bottomLayer = this . getBottomLayer ( ) ;
bottomLayer . addEntity ( this . mControlBase ) ;
bottomLayer . addEntity ( this . mControlKnob ) ;
+
+ this . setBackgroundEnabled ( false ) ;
}
SINGLE | Fixed OnSceenControls having a black background and making everything below invisible |
<nb> NEXT_CHAR :
dout . rollbackLine ( ) ;
SINGLE
SINGLE
- if ( offset + NUMBER0 < bits . length ) din . setChunkDataStart ( cidx + NUMBER0 , offset + NUMBER0 ) ;
+ if ( offset + NUMBER0 < bits . length ) {
+ if ( state == EXPECT_COND_LF && bits [ offset + NUMBER0 ] == CHAR_LF ) offset ++ ;
+ if ( offset ... | Fix a windows gzip parse bug |
<nb> public class SequenceFileLoader < K extends Writable , V extends Writable > extends
COMMENT
return null ;
}
-
+
protected void ensureUDFContext ( Configuration conf ) {
+ Preconditions . checkNotNull ( conf , STRING0 ) ;
if ( UDFContext . getUDFContext ( ) . isUDFConfEmpty ( )
&& conf . get ( STR... | Backs out ensureUDFContext from getContextProperties |
<nb> public final class ProxyManager {
throw new IllegalArgumentException ( STRING0 + service ) ;
}
final ClientProxy clientProxy = factory . create ( id ) ;
+ clientProxy . setContext ( new ClientContext ( client , this ) ) ;
final ClientProxy current = proxies . putIfAbsent ( ns , clientProxy ) ;
if ( cur... | Fix client proxy initialization |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class LoggerPrinter implements Printer {
@ override public void e ( Throwable throwable , String message , Object . . . args ) {
if ( throwable != null && message != null ) {
- messa... | Shows more info about throwable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SqliteAndroidDatabaseType extends BaseSqliteDatabaseType implements
}
@ override
- protected void appendDateType ( Stri... | Tweaked the OracleDatabaseType per information from stew |
<nb> public class ReplacePolicy implements ConflictResolutionPolicy {
}
public PsiMethod applyMethod ( PsiClass clazz , PsiMethod existingMethod , @ notnull PsiMethod newMethod , Editor editor ) throws IncorrectOperationException {
- if ( existingMethod != null ) {
- return ( PsiMethod ) existingMethod . repl... | don t manually replace toString if it exists generate the new one in the appropriate place instead |
<nb> abstract class AppCompatDelegateImplBase extends AppCompatDelegate {
if ( mActionBar == null ) {
mActionBar = createSupportActionBar ( ) ;
}
+ } else {
+ mActionBar = null ;
}
return mActionBar ;
}
<nb> class AppCompatDelegateImplV7 extends AppCompatDelegateImplBase
SINGLE
mSubDecor = ( ViewG... | Don t allow an Action Bar to be created for floating windows |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class TimerManager {
- private static TimerManager mInstance ;
+ private static final ThreadLocal < TimerManager > mThreadLocalManager =
+ new ThreadLocal < TimerManager > ( ) ;
private Stack < Timer > mTimers ;
private TimerManager ( ) {
<nb> public... | Fix live wallpaper freeze after applying |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.