diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> final static class ArrayNode implements INode {
public INode assoc ( AtomicReference < Thread > edit , int shift , int hash , Object key , Object val , Box addedLeaf ) {
int idx = mask ( hash , shift ) ;
INode node = array [ idx ] ;
- if ( node == null )
- return editAndSet ( edit , idx , BitmapIndexedNo... | Fixed count on transient assoc |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class ConstructTreeFromInOrderPreOrder {
-
+
private int index = NUMBER0 ;
public Node createTree ( int inorder [ ] , int preorder [ ] ) {
r... | Adding more documentation |
<nb> import NAMESPACE ;
public class MismatchedCollectionQueryUpdateInspectionBase extends BaseInspection {
@ suppresswarnings ( { STRING0 } )
public final ExternalizableStringSet queryNames =
- new ExternalizableStringSet ( STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , STRING6 , STRING7 , STRING8 ) ;
+ n... | add stream and parallelStream query names |
<nb> public class GroovyMain {
s . setProperty ( autoSplitName , line . split ( splitPattern ) ) ;
Object o = s . run ( ) ;
- if ( autoOutput ) {
+ if ( autoOutput && o != null ) {
pw . println ( o ) ;
}
} | remove null response when processing line by line with autoOutput enabled |
<nb> public abstract class AbstractOperationSetTelephonyConferencing <
confInfo . setEntity ( getLocalEntity ( callPeer ) ) ;
Call call = callPeer . getCall ( ) ;
+ if ( call == null )
+ return null ;
+
List < CallPeer > conferenceCallPeers = CallConference . getCallPeers ( call ) ;
confInfo . setUserCo... | Fix an NPE if we try to generate conference info for a CallPeer without a Call |
<nb> public class DefaultFileCollectionResolveContext implements ResolvableFileCollec
for ( File file : fileSet . getFiles ( ) ) {
convertFileToFileTree ( file , result ) ;
}
- } else if ( element instanceof FileCollection || element instanceof MinimalFileCollection ) {
+ } else if ( element instanceof FileCo... | allow composing i e adding FileCollections that don t implement MinimalFileSet |
<nb> public abstract class KeyguardActivityLauncher {
public void launchCamera ( Handler worker , Runnable onSecureCameraStarted ) {
LockPatternUtils lockPatternUtils = getLockPatternUtils ( ) ;
+
+ SINGLE
+ SINGLE
+ KeyguardUpdateMonitor . getInstance ( getContext ( ) ) . setAlternateUnlockEnabled ( fals... | Disable face unlock when returning from camera |
<nb> public final class MapMaker extends GenericMapMaker < Object , Object > {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class MapMaker extends GenericMapMaker < Object , Object > {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMEN... | remove antiquated comment about upper limits on expiration time |
<nb> public class TaskSerdeTest
null ,
null
) ,
+ null ,
null
) ; | fix broken ut |
<nb> public class RCompletionManager implements CompletionManager
}
}
- if ( isValidForRIdentifier ( c ) )
- {
- Scheduler . get ( ) . scheduleDeferred ( new ScheduledCommand ( )
- {
- @ override
- public void execute ( )
- {
- beginSuggest ( false , true , false ) ;
- }
- } ) ;
- }
-
+ ... | always update completions after inserting characters when popup visible |
<nb> public class PermissionCheckerImpl implements PermissionChecker , Serializable {
boolean hasLayoutManagerPermission = true ;
+ SINGLE
+ SINGLE
+
if ( ( Validator . isNotNull ( name ) ) && ( Validator . isNotNull ( primKey ) ) &&
( primKey . indexOf ( PortletImpl . LAYOUT_SEPARATOR ) != - NUMBER0 ) ... | Added comment to make the code easier to understand |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed a warning |
<nb> public abstract class NanoHTTPD {
}
}
- protected static void printHeader ( PrintWriter pw , String key , String value ) {
+ @ suppresswarnings ( STRING0 )
+ protected void printHeader ( PrintWriter pw , String key , String value ) {
pw . append ( key ) . append ( STRING1 ) . append ( value ) . appen... | Removed static method didn t see the protected thanks Travis |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class PythonBundledColorSchemeProvider implements BundledColorSchemesProv
@ override
public String [ ] getBundledSchemesRelativePaths ( ) {
+ if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) ret... | Don t show custom color schemes in unit test mode |
<nb> public final class BlazeRuntime {
public static final class RemoteExceptionHandler implements SubscriberExceptionHandler {
@ override
public void handleException ( Throwable exception , SubscriberExceptionContext context ) {
+ LOG . log ( Level . SEVERE , STRING0 , exception ) ;
LoggingUtil . logToRemote... | When we log to instead of crashing on EventBus failures also log exception to blaze INFO |
<nb> public class BlockWrapper implements Block {
@ override
public void replaceWith ( BlockState state ) {
SINGLE
- handle . setBlockState ( pos , ( IBlockState ) state , NUMBER0 ) ;
+ if ( state instanceof IBlockState ) {
+ handle . setBlockState ( pos , ( IBlockState ) state , NUMBER0 ) ;
+ } else {
... | Fix replaceWith BlockSnapshot |
<nb> public class EditPost extends Activity implements LocationListener {
s . removeSpan ( wpIS ) ;
s . insert ( tagStart , STRING0
+ wpIS . getImageSource ( ) . toString ( ) + STRING1 ) ;
- content = EscapeUtils . unescapeHtml ( WPHtml . toHtml ( s ) ) ;
+ if ( localDraft )
+ content = EscapeUtils . unesca... | Don t convert existing post s content to html when adding an image |
<nb> public class ZWaveController {
logger . debug ( String . format ( STRING0 , entry . getKey ( ) , entry . getValue ( ) . getNodeStage ( ) . getLabel ( ) , entry . getValue ( ) . getQueryStageTimeStamp ( ) . toString ( ) ) ) ;
- if ( entry . getValue ( ) . getNodeStage ( ) == NodeStage . DONE || ( ! entry . ... | Stop initialisation if node is dead since no more packets will be sent anyway |
<nb> public class AppMenuItem extends MenuItem
setTitle ( cmd_ . getDesc ( ) ) ;
}
+ public static String escapeMnemonics ( String label )
+ {
+ return label . replace ( STRING0 , STRING1 ) ;
+ }
+
public static String replaceMnemonics ( String label , final String replacement )
{
return Pattern .... | Open recent underscore disappeaers |
<nb> public class JdbcDatabaseSnapshot extends DatabaseSnapshot {
return new ResultSetCache . RowData ( catalogName , schemaName , database , tableName , columnName ) ;
}
- SINGLE
- SINGLE
- SINGLE
- SINGLE
@ override
boolean shouldBulkSelect ( String schemaKey , ResultSetCache resultSetCache ) {
- ... | Should not always snapshot all columns for performance reasons |
<nb> public class TieredBlockStoreTest {
TieredBlockStoreTestUtils . cache ( USER_ID1 , BLOCK_ID2 , BLOCK_SIZE , mTestDir1 , mMetaManager ,
mEvictor ) ;
- long lockId1 , lockId2 ;
- lockId1 = mBlockStore . lockBlock ( USER_ID1 , BLOCK_ID1 ) ;
+ long lockId1 = mBlockStore . lockBlock ( USER_ID1 , BLOCK_ID1 )... | Fix style issues |
<nb> public class RemoteImageLoaderHandler extends Handler {
SINGLE
SINGLE
Object viewTag = view . getTag ( ) ;
- if ( imageUrl . equals ( viewTag ) ) {
- if ( bitmap == null ) {
- if ( view != null ) {
- onImageLoadedFailed ( ) ;
- }
- } else {
- if ( view != null ) {
- onImageLoadedSuccess ( bit... | Refactored code not to have too many nested if clauses |
<nb> public class JazzyListView extends ListView implements OnScrollListener {
int lastVisibleItem = firstVisibleItem + visibleItemCount - NUMBER0 ;
if ( IS_AT_LEAST_HC && mIsScrolling && shouldAnimateItems ) {
- SINGLE
- SINGLE
int indexAfterFirst = NUMBER1 ;
while ( firstVisibleItem + indexAfterFirst < ... | Remove TODOs that have been completed |
<nb> public class CaretModelImpl implements CaretModel , PrioritizedDocumentListener ,
}
}
if ( keepPrimary != getPrimaryCaret ( ) ) {
- myCarets . remove ( keepPrimary ) ;
- myCarets . add ( keepPrimary ) ;
+ synchronized ( myCarets ) {
+ myCarets . remove ( keepPrimary ) ;
+ myCarets . add ( keepPrima... | Retain primary caret status on merging perform modifications in synchronized block |
<nb> import NAMESPACE ;
public class TestReplicatedContext extends TomcatBaseTest {
@ test
- public void testBug57425 ( ) throws LifecycleException , IOException , ServletException {
+ public void testBug57425 ( ) throws LifecycleException , IOException {
Tomcat tomcat = getTomcatInstance ( ) ;
Host host ... | Fix IDE warning |
<nb> public class PostgreSQLWriteInterface extends AbstractWriteInterface {
throw errorHandler . handleUserException ( Context . INSERT , ex ) ;
} catch ( IOException ex ) {
if ( ex instanceof EOFException && ex . getMessage ( ) == null ) {
+ LOGGER . debug ( ex ) ;
ex = new EOFException ( STRING0 ) ;
} | Logging original EOFException with null message on PostgreSQL COPY |
<nb> public final class TaskEditActivity extends Activity {
database . openForReading ( ) ;
if ( idParam > - NUMBER0 ) {
model = taskService . fetchById ( idParam , Task . PROPERTIES ) ;
- model . clearValue ( Task . REMOTE_ID ) ; SINGLE
+ if ( model != null )
+ model . clearValue ( Task . REMOTE_ID ) ; SIN... | Fixed a possible null pointer exception in TaskEditActivity |
<nb> import static 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
+ COMME... | Java Updated LogBufferDescriptor |
<nb> public class LiveUpdatesFragment extends BaseOsmAndFragment implements InAppList
protected void onPostExecute ( List < LocalIndexInfo > result ) {
SINGLE
adapter . sort ( ) ;
+ adapter . notifyDataSetInvalidated ( ) ;
}
}
<nb> import NAMESPACE ;
import NAMESPACE ;
- public class OsmLiveActi... | Fix live updates |
<nb> public class BaseRenderersConfigurable implements Configurable {
}
public String getHelpTopic ( ) {
- return null ;
+ return STRING0 ;
}
}
<nb> public class ThreadsViewConfigurable extends BaseConfigurable {
}
public String getHelpTopic ( ) {
- return null ;
+ return STRING1 ;
}
pub... | help topics ids |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class VertexIterable implements Iterable < InternalVertex > {
InternalVertex v = null ;
while ( v == null && iterator . hasNext ( ) ) {
long nextI... | Used new hidden id recognition to filter in VertexIterable |
<nb> public class BackpressureTests {
final AtomicInteger emitCount = new AtomicInteger ( ) ;
final AtomicInteger dropCount = new AtomicInteger ( ) ;
final AtomicInteger passCount = new AtomicInteger ( ) ;
- final int NUM = ( int ) ( RxRingBuffer . SIZE * FLOAT0 ) ; SINGLE
+ final int NUM = RxRingBuffer . SIZ... | Added more to take to decrease the likelyhood that nothing is dropped |
<nb> public class Protobufs {
return protoClass . asSubclass ( Message . class ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static boolean useDynamicProtoMessage ( Class protoClass ) {
+ return protoClass == null || protoClass . getCanonicalName ( ) . equals ( DynamicMessage . class . getCan... | Refactoring useDynamicProtoMessage to a home that isn t JDBC centric |
<nb> public class Asserter {
COMMENT
COMMENT
- public void assertNotLowMemory ( )
+ public void assertMemoryNotLow ( )
{
ActivityManager . MemoryInfo mi = new ActivityManager . MemoryInfo ( ) ;
( ( ActivityManager ) activityUtils . getCurrentActivity ( ) . getSystemService ( STRING0 ) ) . getMemoryInfo ... | Changed method name |
<nb> public class SqlProducer extends DefaultProducer {
if ( expected > NUMBER0 && exchange . getIn ( ) . getBody ( ) != null ) {
Iterator < ? > iterator = exchange . getIn ( ) . getBody ( Iterator . class ) ;
while ( iterator != null && iterator . hasNext ( ) ) {
- ps . setObject ( argNumber ++ , iterator . ne... | camel sql now trace logs the parameter it sets |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
class ViewAttributeMappingsImpl < T extends View > implements ViewAttributeMappings < T >
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public class ViewAttributeResolver
<nb> import NAM... | Add some authoring information |
<nb> class Args
public String get ( String key , String defaultValue )
{
- return this . map . containsKey ( key ) ? this . map . get ( key ) : defaultValue ;
+ String value = this . map . get ( key ) ;
+ return value != null ? value : defaultValue ;
}
public Number getNumber ( String key , Number def... | Fixed a bug in parsing some parameters |
<nb> public class ContextClassLoaderSetupAction implements ThreadSetupAction {
@ override
public Handle setup ( final HttpServerExchange exchange ) {
final ClassLoader old = SecurityActions . getContextClassLoader ( ) ;
- Thread . currentThread ( ) . setContextClassLoader ( classLoader ) ;
+ SecurityActions .... | Use SecurityActions to set the TCCL |
<nb> class TrustedListenableFutureTask < V > extends AbstractFuture . TrustedFuture < V >
}
}
+ @ override
+ public String toString ( ) {
+ return super . toString ( ) + STRING0 + task + STRING1 ;
+ }
+
@ weakouter
private final class TrustedFutureInterruptibleTask extends InterruptibleTask {
priv... | Propagate toString through TrustedListenableFutureTask for better debug |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Remove my remaining author tags |
<nb> public class BottomBar extends LinearLayout {
} ) ;
}
+ public int getCurrentItemPosition ( ) {
+ return mCurrentPosition ;
+ }
+
public interface OnTabSelectedListener {
void onTabSelected ( int position , int prePosition ) ;
<nb> public class BottomBar extends LinearLayout {
mCurrentPosit... | Add getCurrentItemPosition to BottomBar class |
<nb> public class HandleConstructor {
private JCMethodDecl createConstructor ( AccessLevel level , JavacNode typeNode , List < JavacNode > fields , boolean suppressConstructorProperties ) {
TreeMaker maker = typeNode . getTreeMaker ( ) ;
- JCClassDecl type = ( JCClassDecl ) typeNode . get ( ) ;
List < JCSta... | delombok added type parameters to constructors that mirror the type s own type parameters |
<nb> final class ActivityStack {
if ( DEBUG_SWITCH ) Slog . v ( TAG_SWITCH , STRING0 + next
+ STRING1 + next . stopped + STRING2 + next . visible ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ final boolean lastActivityTranslucent = lastStack != null
+ && ( ! lastStack . mF... | Fix bad animation when pressing Home with translucent activity |
<nb> public class DcorefChineseBenchmarkSlowITest extends TestCase {
setAll ( lowResults , highResults , expectedResults , CEAFE_TP , FLOAT0 ) ;
setLowHighExpected ( lowResults , highResults , expectedResults , CEAFE_F1 , FLOAT1 , FLOAT2 , FLOAT3 ) ;
- setAll ( lowResults , highResults , expectedResults , BLANC... | change expected test results |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class JavadocConfiguration implements JDOMExternalizable {
}
public void writeExternal ( Element element ) throws WriteExternalException {
... | don t save default value of newly added option |
<nb> public class WebView extends AbsoluteLayout
private void clearTextEntry ( boolean disableFocusController ) {
if ( inEditingMode ( ) ) {
mWebTextView . remove ( ) ;
- if ( disableFocusController ) {
- setFocusControllerInactive ( ) ;
- }
+ } else {
+ SINGLE
+ hideSoftKeyboard ( ) ;
+ }
+ if ( ... | Hide the soft keyboard even if WebTextView is not in use |
<nb> public class HazelcastClientProxy implements HazelcastInstance , SerializationSer
getLifecycleService ( ) . shutdown ( ) ;
}
+ @ override
public SerializationService getSerializationService ( ) {
return getClient ( ) . getSerializationService ( ) ;
} | Added missing Override in HazelcastClientProxy |
<nb> class TokenStream
}
if ( c == STRING0 ) {
+ SINGLE
+
c = getChar ( ) ;
- if ( c != STRING1 && c != STRING2 ) {
- addToString ( STRING0 ) ;
+
+ switch ( c ) {
+
+ case STRING0 : SINGLE
+ case STRING3 : SINGLE
+ case STRING4 : SINGLE
+ case STRING5 : SINGLE
+ case STRING6 : SINGLE
+... | Only escape the characters that do need to be escaped |
<nb> public class ConcurrentMergeSchedulerProvider extends MergeSchedulerProvider {
@ override
public MergeScheduler buildMergeScheduler ( ) {
CustomConcurrentMergeScheduler concurrentMergeScheduler = new CustomConcurrentMergeScheduler ( logger , shardId , this ) ;
- SINGLE
SINGLE
SINGLE
SINGLE | remove stale nocommit |
<nb>
COMMENT
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
COMMENT
<nb> public clas... | Fix thread safety of marshalling configuration map |
<nb> public class FallbackMustacheFactory extends DefaultMustacheFactory {
COMMENT
COMMENT
public FallbackMustacheFactory ( String resourceRoot , String fallbackRoot ) {
- this ( new String [ ] { resourceRoot , fallbackRoot } ) ;
+ this ( new Object [ ] { resourceRoot , fallbackRoot } ) ;
}
COMMENT
<n... | remove a couple warnings from compilation |
<nb> public class CppModuleMapAction extends AbstractFileWriteAction {
for ( CppModuleMap dep : dependencies ) {
f . addPath ( dep . getArtifact ( ) . getExecPath ( ) ) ;
}
+ f . addInt ( additionalExportedHeaders . size ( ) ) ;
+ for ( PathFragment path : additionalExportedHeaders ) {
+ f . addPath ( path ... | Fix cache key generation of CppModuleMapAction |
<nb> public class TestHelixBrokerStarter {
_helixAdmin = _helixZkManager . getClusterManagmentTool ( ) ;
Thread . sleep ( NUMBER0 ) ;
final Configuration pinotHelixBrokerProperties = DefaultHelixBrokerConfig . getDefaultBrokerConf ( ) ;
-
+ pinotHelixBrokerProperties . addProperty ( CommonConstants . Helix . ... | Adding another port for brokerTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class RobotiumUtils {
COMMENT
public static int checkAndGetMatches ( String regex , TextView view , Set < TextView > uniqueTextViews )... | If a pattern is invalid treat it as a literal instead |
<nb> public abstract class GrammaticalStructure extends TreeGraph {
COMMENT
COMMENT
public static Set < TreeGraphNode > getDependents ( TreeGraphNode t ) {
- Set < TreeGraphNode > deps = Generics . newTreeSet ( ) ;
- for ( Tree subtree : t ) {
+ Set < TreeGraphNode > deps = Generics . newHashSet ( ) ;
+ f... | Fix a bug in a method that should probably be moved elsewhere anyway |
<nb> public abstract class FragmentPagerAdapter extends PagerAdapter {
mCurTransaction . attach ( fragment ) ;
} else {
fragment = getItem ( position ) ;
- fragment . mViewPagerParticipant = true ;
updateSelectedState ( fragment , false ) ;
if ( DEBUG ) Log . v ( TAG , STRING0 + position + STRING1 + fragmen... | Properly toggle ViewPager participation state |
<nb> public class FlowTableList < ModelClass extends Model > extends ContentObserver imp
private TransactionListener < List < ModelClass > > mInternalTransactionListener = new TransactionListenerAdapter < List < ModelClass > > ( ) {
@ override
public void onResultReceived ( List < ModelClass > modelClasses ) {
... | exposed refresh on flow table list |
<nb> public class CropImageView extends FrameLayout {
private RectF mRestoreCropWindowRect ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private boolean mSizeChanged ;
+
+ COMMENT
COMMENT
COMMENT
private WeakReference < BitmapLoadingWorkerTask > mBitmapLoadingWorkerTask ;
<nb> public class CropIma... | handle auto zoom required on size change of the crop image view |
<nb> public final class ConcurrentHashMultiset < E > extends AbstractMultiset < E > impleme
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public boolean removeExactly ( @ nullable Object element , int occurrences ) {
if ( occurrences == NUMBER0 ) { | Added missing throws tag to ConcurrentHashMultiset removeExactly |
<nb> public class CountAggregation
@ override
public void addInput ( int positionCount , Block block , Slice valueSlice , int valueOffset )
{
- long currentValue = SINGLE_LONG . getLong ( valueSlice , valueOffset , NUMBER0 ) ;
- SINGLE_LONG . setLong ( valueSlice , valueOffset , NUMBER0 , currentValue + posit... | Simplify count aggregation |
<nb> public class GenericAStar implements SPTService { SINGLE
private SkipTraverseResultStrategy skipTraversalResultStrategy ;
- private SearchTerminationStrategy searchTerminationStrategy ;
-
private TraverseVisitor traverseVisitor ;
COMMENT
<nb> public class GenericAStar implements SPTService { SING... | remove search termination as a property of the algorithm runner rather it s a property of the run |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ suppresswarnings ( STRING0 )
public class GLSurfaceViewAPI18 extends SurfaceView implements SurfaceHolder . Callback {
private final static String TAG = STRING1 ;
private final static boolean LOG_ATTACH_DETACH = false ;
<nb> public class GLSurfaceViewA... | Removed loads of warnings |
<nb> public class ObjectiveCHeaderGenerator extends ObjectiveCSourceFileGenerator {
if ( l == Long . MIN_VALUE ) {
println ( STRING0 ) ;
} else {
- println ( value . toString ( ) ) ;
+ println ( value . toString ( ) + STRING1 ) ;
}
} else if ( value instanceof Integer ) {
long l = ( ( Integer ) value ) ... | Generate long constants in headers to have LL suffix |
<nb> public class ModifyKeyboardShortcutsWidget extends ModalDialogBase
{
NativeEvent event = preview . getNativeEvent ( ) ;
String type = event . getType ( ) ;
- if ( type . equals ( STRING0 ) && event . getKeyCode ( ) == KeyCodes . KEY_ESCAPE )
+ if ( type . equals ( STRING0 ) )
{
- event . stopPropagat... | allow enter to transition from name to shortcut cell |
<nb> public class AsyncHttpClient {
protected void finalize ( ) throws Throwable {
try {
if ( ! isClosed . get ( ) ) {
- logger . warn ( STRING0 ) ;
+ logger . debug ( STRING0 ) ;
}
} finally {
super . finalize ( ) ; | The AsyncHttpClient migth get gc but the Future associated with the live connection may not |
<nb> public class SSLConfig {
keyStore = KeyStore . getInstance ( storeType ) ;
keyStore . load ( null , keypass . toCharArray ( ) ) ;
- s2sTrustStore = KeyStore . getInstance ( storeType ) ;
- s2sTrustStore . load ( null , s2sTrustpass . toCharArray ( ) ) ;
+ SINGLE
+ if ( s2sTrustStore == null ) {
+ s... | Don t overwrite the TrustStore |
<nb> class MockContentProvider extends ContentProvider {
COMMENT
COMMENT
COMMENT
- COMMENT
+ public class VCardTestsBase extends AndroidTestCase {
public static final int V21 = VCardConfig . VCARD_TYPE_V21_GENERIC_UTF8 ;
public static final int V30 = VCardConfig . VCARD_TYPE_V30_GENERIC_UTF8 ; | Make VCardTestsBase public |
<nb> public class Activity extends ContextThemeWrapper
mFragments . dump ( prefix , fd , writer , args ) ;
- getWindow ( ) . getDecorView ( ) . getViewRootImpl ( ) . dump ( prefix , fd , writer , args ) ;
+ if ( getWindow ( ) != null &&
+ getWindow ( ) . peekDecorView ( ) != null &&
+ getWindow ( ) . peek... | Only call dump when a ViewRoot actually exists |
<nb> public class AsyncChannel {
if ( isHeaderSent ) {
writeChunk ( data , close ) ;
} else {
- firstWrite ( data , close ) ;
isHeaderSent = true ;
+ firstWrite ( data , close ) ;
}
}
return true ; | We sent a response the client which immediately sends a new request |
<nb> public class ProfileRouter {
if ( dlb > MAX_DURATION ) return false ;
SINGLE
for ( Ride oldRide : retainedRides . get ( newRide . from ) ) { SINGLE
- if ( dlb < oldRide . previous . durationUpperBound ( ) ) {
- return false ;
+ if ( dlb > oldRide . previous . durationUpperBound ( ) ) { SINGLE
+ retur... | reject profile router ride if minimum duration of new ride is longer than maximum duration of some existing ride |
<nb> public class CassandraDatastore extends Datastore
startKey , endKey , false , m_singleRowReadSize ) ;
SetMultimap < String , String > filterTags = query . getTags ( ) ;
- System . out . println ( STRING0 + filterTags ) ;
outer: while ( iterator . hasNext ( ) )
{
DataPointsRowKey rowKey = iterator . n... | Removed System out println statement used for debugging |
<nb> public class EntityRobotEnergyFX extends EntityFX {
if ( this . posY == this . prevPosY ) {
this . motionX *= FLOAT0 ;
- this . motionY *= FLOAT0 ;
+ this . motionY = FLOAT1 ;
this . motionZ *= FLOAT0 ;
} | fix the robot smoke particle causing fps drops in certain cases |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
@ configuration
public class JobEventConfig {
-
+
+ @ autowired
+ private DataSource dataSource ;
... | inject springboot datasource bean |
<nb> public class Classifier {
COMMENT
public void preCompute ( Set < Integer > toPreCompute ) {
long startTime = System . currentTimeMillis ( ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
saved = new double [ preMap . size ( ) ] [ config . hiddenSize ] ;
+
for ( int x : toPreCompute ) {
... | Add note on unintuitive part of code |
<nb> public class MetaData implements ExcerptMarshallable {
}
public static void writeFromGateway ( Excerpt out ) {
- out . writeLong ( System . currentTimeMillis ( ) ) ;
+ out . writeLong ( - NUMBER0 ) ; SINGLE
out . writeLong ( ClockSupport . nanoTime ( ) ) ;
out . writeLong ( NUMBER1 L ) ;
} | Add demo processing engine |
<nb> public class OStringParser {
if ( buffer . length ( ) > NUMBER0 ) {
SINGLE
fields . add ( buffer . toString ( ) ) ;
- System . out . println ( STRING0 + i + STRING1 + buffer ) ;
buffer . setLength ( NUMBER0 ) ;
}
break ;
<nb> public class OStringParser {
if ( buffer . length ( ) > NUMBER0 ) {
S... | Removed forgiven sysout |
<nb> public class JetPsiUtil {
return callOperationNode != null && callOperationNode . getElementType ( ) == JetTokens . SAFE_ACCESS ;
}
- public static boolean isFunctionLiteralWithoutDeclaredParameterTypes ( @ nullable JetExpression expression ) {
- if ( ! ( expression instanceof JetFunctionLiteralExpressio... | Remove unused method |
<nb> public class Http11NioProtocol extends AbstractHttp11JsseProtocol {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ override
public void release ( NioChannel socket ) { | Fix Javadoc error |
<nb> class ActionBarActivityDelegateBase extends ActionBarActivityDelegate implements
SINGLE
private boolean mSubDecorInstalled ;
+ private CharSequence mTitleToSet ;
+
SINGLE
private boolean mFeatureProgress , mFeatureIndeterminateProgress ;
<nb> class ActionBarActivityDelegateBase extends ActionBarA... | Fix Title Setting if changed before setContentView |
<nb> public class Antlr4Mojo extends AbstractMojo {
}
private Set < File > getImportFiles ( File sourceDirectory ) throws InclusionScanException {
+ if ( ! libDirectory . exists ( ) ) return Collections . emptySet ( ) ;
+
Set < String > includes = new HashSet < String > ( ) ;
includes . add ( STRING0 ) ; ... | Don t require imports directory |
<nb> public class HttpClient4PluginConfig {
return statusCode ;
}
+ public boolean isIo ( ) {
+ return io ;
+ }
+
@ override
public String toString ( ) {
final StringBuilder sb = new StringBuilder ( STRING0 ) ; | add http param option |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPAC... | groovy script class icon has visibility |
<nb> public class MasterInfo extends ImageWriter {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
public ClientBlockInfo getClientBlockInfo ( long blockId ) throws FileDoesNotExistException ,
- IOException , BlockInfoException {
+ BlockInfoException {
int fileId = BlockInfo . computeInodeId ( blo... | Remove unused IOException in getClientBlockInfo in MasterInfo |
<nb> public class JettyContentExchange extends ContentExchange {
} else {
SINGLE
if ( exchange . getException ( ) != null ) {
- exchange . setException ( new CamelExchangeException ( STRING0 + exchangeState , exchange ) ) ;
+ exchange . setException ( new CamelExchangeException ( STRING0 + exchangeState , exc... | Fixed swalling caused exception |
<nb> public abstract class StringUtils {
validateLocalePart ( language ) ;
validateLocalePart ( country ) ;
String variant = STRING0 ;
- if ( parts . length >= NUMBER0 ) {
+ if ( parts . length > NUMBER0 ) {
SINGLE
SINGLE
int endIndexOfCountryCode = localeString . lastIndexOf ( country ) + country . len... | Fix off by one error in parseLocaleString |
<nb> public class IntentFilter implements Parcelable {
COMMENT
COMMENT
public void writeToXml ( XmlSerializer serializer ) throws IOException {
- serializer . attribute ( null , AUTO_VERIFY_STR , Boolean . toString ( getAutoVerify ( ) ) ) ;
+
+ if ( getAutoVerify ( ) ) {
+ serializer . attribute ( null , ... | Don t write IntentFilter autoVerify field to xml if false |
<nb> public class BeanWithXPathInjectionTest extends ContextTestSupport {
assertEquals ( STRING0 + myBean , STRING1 , myBean . foo ) ;
}
+ public void testSendTwoMessages ( ) throws Exception {
+ SINGLE
+ String expectedBody = STRING2
+ + STRING3 ;
+
+ template . sendBodyAndHeader ( STRING4 , expected... | Added unit test |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class BufferPositionReporter implements PositionReporter
{
-
private final AtomicBuffer buffer ;
private final int counterId ;
private final CountersManager countersManager ;
<nb> public class BufferPositionR... | Java Close PositionReporters when a connection closes |
<nb> public @ interface Api {
COMMENT
COMMENT
COMMENT
- String value ( ) ;
+ String value ( ) default STRING0 ;
COMMENT
COMMENT | added default value |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ChooseTypeAndAccountActivity extends Activity
private ... | Fix NPE when restarting ChooseTypeAndAccountActiivty |
<nb> public class HttpClientRequestImpl extends HttpClientRequestBase implements Http
HttpClientConnection conn = stream . connection ( ) ;
- synchronized ( conn ) {
+ synchronized ( this ) {
this . conn = conn ;
this . stream = stream ;
stream . beginRequest ( this ) ; | Fix wrong synchronization |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT
COMMENT
<nb> public class Books {
COMMENT
COMMENT
COMMENT
- private static Map < String , Book > books = new HashMap < String , Book > ( ) ;
+ pu... | change books map to public for testing purposes |
<nb> public class UriBeaconDiscoveryService extends Service implements MetadataResolv
return address . compareTo ( otherAddress ) ;
}
} ;
+ SINGLE
private Runnable mNotificationUpdateGateTimeout = new Runnable ( ) {
@ override
public void run ( ) { | added todo comment |
<nb> public final class NioDatagramChannel extends AbstractNioChannel implements io . n
}
try {
- MembershipKey key = getJdkChannel ( ) . getChannel ( ) . join ( multicastAddress , networkInterface ) ;
+ MembershipKey key ;
+ if ( source == null ) {
+ key = getJdkChannel ( ) . getChannel ( ) . join ( mult... | Only use the source address to join a multicast group if it was specified |
<nb> public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
}
@ consolecommand ( splitInWords = false , description = STRING0 )
- public void truncateClass (
- @ consoleparameter ( name = STRING1 , description = STRING2 ) String iCommandText ) {
+ public void truncateClass ( @ cons... | Added truncate record command in console |
<nb> public class ApklibMojo extends AbstractAndroidMojo
{
if ( apkLibraryArtifact . getType ( ) . equals ( APKLIB ) )
{
- final File apklibLibsDirectory = new File ( getLibraryUnpackDirectory ( apkLibraryArtifact )
+ final File apklibLibsDirectory = new File ( getLibraryUnpackDirectory ( apkLibraryArtifact )... | fix a missing slash |
<nb> public class NullBuilder extends Builder {
super ( new RunIfConfigs ( ) , null , STRING0 ) ;
}
- public void cancel ( DefaultGoPublisher publisher , EnvironmentVariableContext environmentVariableContext ) {
+ public void cancel ( DefaultGoPublisher publisher , EnvironmentVariableContext environmentVariab... | Fixing failing test |
<nb> public class VideoApplication extends MultiThreadedApplicationAdapter {
private void recordStream ( IBroadcastStream stream ) {
IConnection conn = Red5 . getConnectionLocal ( ) ;
long now = System . currentTimeMillis ( ) ;
- String recordingStreamName = stream . getPublishedName ( ) + STRING0 + now ;
+ C... | remove adding timstamp in recording filename as it screws up ingest and processing |
<nb> public class Sprite extends TextureRegion {
miny = miny > vertices [ Y3 ] ? vertices [ Y3 ] : miny ;
miny = miny > vertices [ Y4 ] ? vertices [ Y4 ] : miny ;
- maxy = maxy > vertices [ Y2 ] ? vertices [ Y2 ] : maxy ;
- maxy = maxy > vertices [ Y3 ] ? vertices [ Y3 ] : maxy ;
- maxy = maxy > vertices [ ... | fixed Sprite getBoundingRectangle |
<nb> public class BaseBundle {
COMMENT
static final int FLAG_DEFUSABLE = NUMBER0 < < NUMBER1 ;
+ private static final boolean LOG_DEFUSABLE = false ;
+
private static volatile boolean sShouldDefuse = false ;
COMMENT
<nb> public class BaseBundle {
return ;
}
- if ( sShouldDefuse && ( mFlags & F... | Disable defusable logging for now |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.