diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class BitmapDocIdIterator implements IndexBasedDocIdIterator {
public int next ( ) {
SINGLE
if ( currentDocId == Constants . EOF || ! iterator . hasNext ( ) ) {
+ currentDocId = Constants . EOF ;
return Constants . EOF ;
} | Fixing infinite loop in BitmapDocIdIterator |
<nb> public class InMemoryDataSource < T extends Cacheable > implements DataSource < T > {
private void updateItem ( T item ) {
List < T > newItems = new LinkedList < > ( ) ;
for ( T i : items ) {
- if ( i . equals ( item ) ) {
+ if ( i . getId ( ) . equals ( item . getId ( ) ) ) {
newItems . add ( item ) ;... | Change update method |
<nb> public class InternalSearchHit implements SearchHit {
builder . raw ( STRING0 ) ;
builder . raw ( source ( ) ) ;
}
- if ( fields ( ) != null ) {
+ if ( fields ( ) != null && ! fields ( ) . isEmpty ( ) ) {
builder . startObject ( STRING1 ) ;
for ( SearchHitField field : fields ( ) . values ( ) ) {
i... | don t print fields when the fields map is empty |
<nb> public final class FactoryGenerated {
}
SINGLE
+ SINGLE
FactoryGenerated (
Object name ,
@ provided Dependency dependency2 , | Use double checked locking for Memoize methods |
<nb> public class ClientApi {
}
}
+
+ public void activeScanSessionUrls ( String regex ) {
+
+ }
} | Removing type arguments as compiler will infer them |
<nb> public class StickyRecyclerHeadersDecoration extends RecyclerView . ItemDecoration
}
return - NUMBER0 ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void invalidateHeaders ( ) {
+ mHeaderViews . clear ( ) ;
+ }
} | Add method to invalidate headers |
<nb> public class AlarmCallbackResource extends RestResource {
final Map < String , String > result = ImmutableMap . of ( STRING0 , id ) ;
final URI alarmCallbackUri = UriBuilder . fromResource ( AlarmCallbackResource . class )
. path ( STRING1 )
- . build ( id ) ;
+ . build ( streamid , id ) ;
return Res... | Fix more URL builder errors for the alerts management |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+
COMMENT
COMMENT
<nb> public final class ColumnFamilyStore implements ColumnFamilyStoreMBean
Set < Memtable > memtables = memtablesPendingFlush . get ( columnFamilyName ) ;
if ( memtables == null )
{
- memtable... | use CSLS instead of NBHS for memtablesPendingFlush |
<nb> class TelephonyRegistry extends ITelephonyRegistry . Stub {
modified = true ;
}
if ( modified ) {
- Slog . d ( TAG , STRING0 + state + STRING1 + networkType + STRING2 ) ;
+ Slog . d ( TAG , STRING0 + mDataConnectionState
+ + STRING1 + mDataConnectionNetworkType + STRING2 ) ;
for ( Record r : mRecords... | Notify overall state instead of current changed state |
<nb> public class FastAdapterTest {
@ test
public void constructor_Default_IsSelectable ( ) throws Exception {
- assertThat ( adapter . isSelectable ( ) ) . isTrue ( ) ; SINGLE
+ assertThat ( adapter . isSelectable ( ) ) . isFalse ( ) ; SINGLE
}
@ test
<nb> public class FastAdapterTest {
assertThat ... | we changed the default behavior so we also have to adjust the test |
<nb> public class SkylarkFileType {
return ImmutableList . copyOf ( FileType . filter ( files , fileType ) ) ;
}
- @ skylarkcallable ( doc = STRING0 )
- public boolean matches ( String fileName ) {
- return fileType . apply ( fileName ) ;
- }
-
@ visiblefortesting
public Object getExtensions ( ) {
... | Kill FileType matches |
<nb> public class DefaultStackTraceFilterer implements StackTraceFilterer {
private static final String [ ] DEFAULT_INTERNAL_PACKAGES = new String [ ] {
STRING0 ,
STRING1 ,
+ STRING2 ,
STRING3 ,
STRING4 ,
STRING5 , | fix failing tests |
<nb> public class StubIndexImpl extends StubIndex implements ApplicationComponent , Pe
needRebuild |= registerIndexer ( extension , forceClean ) ;
}
if ( needRebuild ) {
- requestRebuild ( ) ;
+ forceRebuild ( new Throwable ( ) ) ;
}
dropUnregisteredIndices ( ) ;
} | force rebuild on version change |
<nb> public final class PreferenceScreen extends PreferenceGroup {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix docs build |
<nb> public abstract class BaseTableView extends Table {
}
}
} ) ;
-
- model . addTableModelListener ( new TableModelListener ( ) {
- public void tableChanged ( final TableModelEvent e ) {
- JTableHeader header = getTableHeader ( ) ;
- if ( header != null ) {
- header . repaint ( ) ;
- }
- }
- }... | insert new row in table editor |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
mImeSwitcherNotification . setLatestEventInfo (
mContext , title , summary , mImeSwitchPendingIntent ) ;
- if ( mNotificationManager != null ) {
+ if ( ( mNotificationManager != null )
+ && ! mWindowManagerService . hasNavigation... | Don t show IME Switcher not |
<nb> public abstract class IccPhoneBookInterfaceManager extends IIccPhoneBook . Stub {
logd ( STRING0 + recordSize [ NUMBER0 ] +
STRING1 + recordSize [ NUMBER1 ] +
STRING2 + recordSize [ NUMBER2 ] ) ;
- mLock . notifyAll ( ) ;
}
+ mLock . notifyAll ( ) ;
}
break ;
case EVENT_UPDATE_DONE : | Fix hang when error in SIM card communication |
<nb> public class ServiceTaskDelegateExpressionActivityBehavior extends TaskActivityB
ClassDelegate . applyFieldDeclaration ( fieldDeclarations , delegate ) ;
if ( delegate instanceof ActivityBehavior ) {
+
+ if ( delegate instanceof AbstractBpmnActivityBehavior ) {
+ ( ( AbstractBpmnActivityBehavior ) dele... | set MultiInstanceActivityBehavior when executing service tasks inheriting AbstractBpmnActivityBehavior as delegate expression to avoid infinite loops |
<nb> public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
BitmapFactory . Options options = new BitmapFactory . Options ( ) ;
options . inJustDecodeBounds = true ;
BitmapFactory . decodeFile ( imagePath , options ) ;
-
+
+ SINGLE
+ if ( options . outWidth == NUMBER0 || options ... | Added a check for width and height |
<nb> public class VertexBuffer extends GLObject implements Savable , Cloneable {
}
SINGLE
- if ( this . data . getClass ( ) != data . getClass ( ) || data . limit ( ) != lastLimit ) {
+ if ( data != null && ( this . data . getClass ( ) != data . getClass ( ) || data . limit ( ) != lastLimit ) ) {
dataSizeCh... | Fixed exception in Mesh setInterleaved |
<nb> public class LauncherAppsService extends SystemService {
String packageName = component . getPackageName ( ) ;
Intent intent = new Intent ( Settings . ACTION_APPLICATION_DETAILS_SETTINGS ,
Uri . fromParts ( STRING0 , packageName , null ) ) ;
- intent . setFlags ( Intent . FLAG_ACTIVITY_NEW_TASK | Intent . ... | Don t exclude app info from recents |
<nb> public class TestTomcat extends TestCase {
tomcat . addWebapp ( null , STRING0 ,
appDir . getAbsolutePath ( ) ) ;
- ctx . start ( ) ;
tomcat . start ( ) ;
ByteChunk res = getUrl ( STRING1 + port + STRING2 ) ; | Remove unnecessary code that just leads to a warning in the logs |
<nb>
package NAMESPACE ;
import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public interface ITransportPlugin {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public TServer getServer ( int port , TProcessor proc... | fix comments in ITransportPlugin |
<nb> public class IQVersionHandler extends IQHandler implements ServerFeaturesProvide
if ( bodyElement == null ) {
bodyElement = DocumentHelper . createElement ( QName . get ( STRING0 , STRING1 ) ) ;
bodyElement . addElement ( STRING2 ) . setText ( STRING3 ) ;
- bodyElement . addElement ( STRING4 ) . setText ( ... | Updated version response packet |
<nb> package NAMESPACE ;
public interface WorkbenchView
{
void bringToFront ( ) ;
+ void maximize ( ) ;
void ensureHeight ( int height ) ;
void setProgress ( boolean showProgress ) ;
void onBeforeUnselected ( ) ;
<nb> public abstract class ToolbarPane extends LazyPanel implements RequiresResize ,
{
... | explicit maximize method |
<nb> public abstract class Closure extends GroovyObjectSupport implements Cloneable ,
return getDelegate ( ) ;
} else if ( STRING0 . equals ( property ) ) {
return getOwner ( ) ;
+ } else if ( STRING1 . equals ( property ) ) {
+ return getMethod ( ) ;
} else if ( STRING2 . equals ( property ) ) {
return g... | allow access to the method property used when a closure wraps a class method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OrcPageSourceFactory
}
catch ( IOException ignored ) {
}
- if ( e instanceof BlockMissingException ) {
+ if ( e . get... | Fix non portable check for BlockMissingException |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchScrollWithFailingNodesTests extends ElasticsearchIntegrationT
assertThat ( searchResponse . getSuccessfulShards ( ) , equalTo ( numberOfSuccessfulShards ) ) ;
} while ( sear... | remove unnecessary clearScroll call these contexts are released by delete index now |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GitCloneFunction implements SkyFunction {
} catch ( GitAPIException e ) {
throw new RepositoryFunctionException (
new IOE... | Prevent jgit from dumping stack traces all over the place |
<nb> public final class PahoConstants {
@ deprecated
public static final String HEADER_ORIGINAL_MESSAGE = STRING0 ;
+ public static final String CAMEL_PAHO = STRING1 ;
+ public static final String CAMEL_PAHO_MSG_QOS = CAMEL_PAHO + STRING2 ;
+ public static final String CAMEL_PAHO_MSG_RETAINED = CAMEL_PAHO +... | add Constant header |
<nb> public class StatusCommandTest {
} ) ) ;
SINGLE
- assertTrue ( STRING0 , tempLogFile . exists ( ) ) ;
+ assertTrue ( STRING0 , new File ( tempLogFile . getAbsolutePath ( ) + STRING1 ) . exists ( ) ) ;
assertEquals ( NUMBER0 , cliOut . length ) ;
assertEquals ( STRING2 , cliOut [ NUMBER1 ] ) ;
asser... | Fix broken log test |
<nb> public class ExtendedPopupMenu
COMMENT
COMMENT
COMMENT
- private final JComponent invoker ;
+ private final Component invoker ;
COMMENT
COMMENT
<nb> public class ExtendedPopupMenu
COMMENT
COMMENT
COMMENT
- public ExtendedPopupMenu ( JComponent invoker ,
+ public ExtendedPopupMenu ( Comp... | Changes the invoker type of extended popup menu so we can pass main frame as invoker |
<nb> public class JavaGenerator implements CodeGenerator
STRING0 +
indent + STRING1 +
indent + STRING2 +
- indent + STRING3 +
+ STRING3 +
indent + STRING4 +
indent + STRING5 +
indent + STRING6 , | Java correct indentation in generated code |
<nb> public class MadvocServletFilter implements Filter {
madvoc = Madvoc . get ( servletContext ) ;
if ( madvoc == null ) {
madvoc = createMadvoc ( filterConfig ) ;
- }
- try {
- madvoc . startNewWebApplication ( servletContext ) ;
- } catch ( Exception ex ) {
- throw new ServletException ( STRING0 ,... | don t start madvoc twice |
<nb> public class PatternRuleTest extends TestCase {
SINGLE
goodSentence = goodSentence . replaceAll ( STRING0 , STRING1 ) ;
goodSentence = cleanXML ( goodSentence ) ;
- assertTrue ( lang + STRING2 + rule . getId ( ) , goodSentence . trim ( ) . length ( ) > NUMBER0 ) ;
+ assertTrue ( lang + STRING2 + rule . g... | improve message formatting for test failures |
<nb> public class BpmnParse extends Parse {
}
}
-
if ( expressionLanguage != null ) {
if ( expressionLanguage . contains ( STRING0 ) ) {
- LOG . info ( STRING1 ) ;
+ LOG . info ( STRING2 ) ;
}
} | fixed typo in warning message when using XPath |
<nb> public class SetAttributeOptions {
mPersisted = options . isSetPersisted ( ) ? options . isPersisted ( ) : null ;
mOwner = options . isSetOwner ( ) ? options . getOwner ( ) : null ;
mGroup = options . isSetGroup ( ) ? options . getGroup ( ) : null ;
- mPermission = options . isSetPermission ( ) ? options .... | Fixing test failures |
<nb> public class SlidingPaneLayout extends ViewGroup {
return false ;
}
- final boolean interceptForDrag = mDragHelper . shouldInterceptTouchEvent ( ev ) ;
boolean interceptTap = false ;
<nb> public class SlidingPaneLayout extends ViewGroup {
}
break ;
}
+
+ case MotionEvent . ACTION_MOVE : {... | Prevent strange falsing on SlidingPaneLayout |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
private int myLength ;
private char [ ] mySymbols ; | removed unused import |
<nb> public class GpsNavigationMessageEvent implements Parcelable {
COMMENT
COMMENT
COMMENT
- public static final int STATUS_NOT_SUPPORTED = NUMBER0 ;
+ public static int STATUS_NOT_SUPPORTED = NUMBER0 ;
COMMENT
COMMENT
COMMENT
COMMENT
- public static final int STATUS_READY = NUMBER1 ;
+ public ... | Revert API breaking change in System API |
<nb> public class Camera implements IUpdateHandler {
public void setHUD ( final HUD pHUD ) {
this . mHUD = pHUD ;
- pHUD . setCamera ( this ) ;
+ if ( pHUD != null ) {
+ pHUD . setCamera ( this ) ;
+ }
}
public boolean hasHUD ( ) { | Camera setHUD HUD can now take a null parameter |
<nb> public class SortBuilderTests extends ESTestCase {
sortBuilder = result . get ( NUMBER0 ) ;
assertEquals ( new FieldSortBuilder ( STRING0 ) , sortBuilder ) ;
+ SINGLE
+ json = STRING1 ;
+ result = parseSort ( json ) ;
+ assertEquals ( NUMBER1 , result . size ( ) ) ;
+ sortBuilder = result . get ( N... | Adding test for parsing sort on single fields as list |
<nb> public final class Okio {
SINGLE
SINGLE
logger . log ( Level . WARNING , STRING0 + socket , e ) ;
+ } else {
+ throw e ;
}
- throw e ;
}
}
} ; | Actually ignore expected AssertionError |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
package NAMESPACE ;
import NAMESPACE ; | Fixed the checkstyle issue missing license header |
<nb> public class MemcachedCacheBroker implements CacheBroker
private String computeKey ( String identifier , byte [ ] key ) {
return identifier + Base64 . encodeBytes ( key , Base64 . DONT_BREAK_LINES ) ;
}
-
- protected MemcachedClientIF getClient ( )
- {
- return client ;
- }
} | remove unused method |
<nb> public class Meta {
mListHook . add ( new Hook ( STRING0 , STRING1 , STRING2 , NUMBER0 , STRING3 , null ) . dangerous ( ) ) ;
mListHook . add ( new Hook ( STRING4 , STRING5 , STRING6 , NUMBER1 , null , null ) ) ;
- mListHook . add ( new Hook ( STRING4 , STRING7 , STRING8 , NUMBER1 , null , null ) . dangero... | Set browser download version from |
<nb> public class ORecordId implements ORID {
final ODatabaseRecord db = ODatabaseRecordThreadLocal . INSTANCE . get ( ) ;
if ( db == null )
throw new ODatabaseException (
- STRING0 ) ;
+ STRING1 ) ;
return db . load ( this ) ;
} | Thrown ODatabaseException in case ORecordId getRecord has no database set in thread local |
<nb> public class Capsule implements Runnable {
private static final String ATTR_NATIVE_DEPENDENCIES_WIN = registerAttribute ( STRING0 , null , true , null , STRING1 ) ;
private static final String ATTR_NATIVE_DEPENDENCIES_MAC = registerAttribute ( STRING2 , null , true , null , STRING3 ) ;
private static final S... | Add Icon attribute |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
CasCoreServicesConfiguration . class ,
CasPersonDirectoryAttributeRepositoryConfiguration . class ,
RefreshA... | Fixed tests with durations on throttling and others |
<nb> public class SwiftUnderFileSystem extends UnderFileSystem {
SINGLE
@ override
public String getOwner ( String path ) throws IOException {
- return null ;
+ return STRING0 ;
}
SINGLE
@ override
public String getGroup ( String path ) throws IOException {
- return null ;
+ return STRING0 ;
}... | Change swift ufs to return empty group owner instead of null |
<nb> public abstract class AbstractSQLClause < C extends AbstractSQLClause < C > > implemen
}
private long executeBatch ( PreparedStatement stmt ) throws SQLException {
- if ( configuration . getTemplates ( ) . isBatchCountViaGetUpdateCount ( ) ) {
+ if ( configuration . getUseLiterals ( ) ) {
+ return stmt... | Improve batch handling |
<nb> class SchemeGenerator {
Optional < String > remoteRunnablePath = launchAction . getRemoteRunnablePath ( ) ;
if ( remoteRunnablePath . isPresent ( ) ) {
Element remoteRunnableElem = doc . createElement ( STRING0 ) ;
+ remoteRunnableElem . setAttribute ( STRING1 , STRING2 ) ;
remoteRunnableElem . setAttrib... | Set runnableDebuggingMode when generating RemoteRunnable schemes |
<nb> public class CropImageView extends FrameLayout implements CropOverlayView . CropWi
int orgHeight = mBitmap . getHeight ( ) * mLoadedSampleSize ;
SINGLE
- Rect rect = BitmapUtils . getRectFromPoints ( points , orgWidth ,
- orgHeight , mCropOverlayView . isFixAspectRatio ( ) , mCropOverlayView . getAspectR... | remove unnecessary second fix by aspect ratio |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MapStackControl extends ViewGroup {
private Drawable getStackDrawable ( int i ) {
while ( i >= cacheStackDrawables . size... | Fix blocker issue with route calculation |
<nb> public class AsyncHttpObservable {
public void call ( final Subscriber < ? super Response > subscriber ) {
try {
AsyncCompletionHandler < Void > handler = new AsyncCompletionHandler < Void > ( ) {
- @ override
- public State onStatusReceived ( HttpResponseStatus status ) throws Exception {
- return sup... | dont need onstatus received method |
<nb> public class CassandraEmbeddedKeyColumnValueStore implements KeyColumnValueStore
public Object getMetaData ( Column element , EntryMetaData meta ) {
switch ( meta ) {
case TIMESTAMP : return element . timestamp ( ) ;
+ SINGLE
case TTL : return Long . valueOf ( element . getMarkedForDeleteAt ( ) - times .... | How to get the TTL from Cassandra embedded |
<nb> public class PropertyDescriptor extends Descriptor {
return ( readMethodDescriptor == null ) && ( writeMethodDescriptor == null ) ;
}
+
+ SINGLE
+ protected Class type ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public Class getType ( ) {
+ if ( type == null ) {
+ if ( readMethodDescriptor != nul... | Added PropertyDescriptor getType |
<nb> public abstract class AbstractRegisteredService
private long id = - NUMBER0 ;
@ elementcollection ( targetClass = String . class , fetch = FetchType . EAGER )
- @ jointable ( name = STRING0 )
+ @ jointable ( name = STRING0 , joinColumns = @ joincolumn ( name = STRING1 ) )
@ column ( name = STRING2 , nu... | added a JoinColumn annotation to avoid a couple alter table queries |
<nb> public class DerivedIdentitySimpleParentIdClassDepTest extends TestCase {
s . persist ( d ) ;
s . persist ( e ) ;
- SINGLE
- SINGLE
-
- SINGLE
+ SINGLE
Query query = s . createQuery ( STRING0 ) ;
List depList = query . list ( ) ;
assertEquals ( NUMBER0 , depList . size ( ) ) ; | only comment change |
<nb> public class EstimatedHistogram
buckets = new AtomicLongArray ( numBuckets ) ;
}
- public EstimatedHistogram ( long [ ] bucketData )
- {
- makeOffsets ( bucketData . length - NUMBER0 ) ;
- buckets = new AtomicLongArray ( bucketData ) ;
- }
-
public EstimatedHistogram ( long [ ] offsets , long [... | remove unused constructor in EstimatedHistogram |
<nb> public class GrailsDomainClassPersistentEntity implements PersistentEntity , Init
persistentProperty = createOneToMany ( mappingContext , grailsDomainClassProperty ) ;
}
else if ( grailsDomainClassProperty . isHasOne ( ) ) {
- persistentProperty = createOneToOne ( mappingContext , grailsDomainClassProperty... | correctly configured hasOne |
<nb> import NAMESPACE ;
public class StacktracePrintingMatcherTest {
@ test
- public void succeedsWhenInnerMatcherSuceeds ( ) throws Exception {
+ public void succeedsWhenInnerMatcherSucceeds ( ) throws Exception {
assertTrue ( isThrowable ( any ( Throwable . class ) ) . matches ( new Exception ( ) ) ) ;
... | Fix typo in test name |
<nb> public class WifiStateMachine extends StateMachine {
transitionTo ( mTransitionToState ) ;
break ;
COMMENT
+ case WifiMonitor . SUPPLICANT_STATE_CHANGE_EVENT :
case CMD_LOAD_DRIVER :
case CMD_UNLOAD_DRIVER :
case CMD_START_SUPPLICANT : | Fix driver stop handling |
<nb> public class DAType
{
return synched ;
}
+
+ @ override
+ public String toString ( )
+ {
+ String str = isMmap ( ) ? STRING0 : STRING1 ;
+ if ( isInteg ( ) )
+ str += STRING2 ;
+ if ( isStore ( ) )
+ str += STRING3 ;
+ if ( isSynched ( ) )
+ str += STRING4 ;
+ return str ;
+ }
} | added missing DAType toString |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public abstract class AbstractParsingTest extends ParsingTestCase {
public AbstractParsin... | Fix RelaxNG tests in CE |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Views {
inject = INJECTORS . get ( targetClass ) ;
}
SINGLE
- if ( inject != null ) inject . invoke ( null , finder , t... | Fix checkstyle errors |
<nb> public interface GradleProject extends HierarchicalElement , BuildableElement {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ incubating
DomainObjectSet < GradlePublication > getPublications ( ) ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ ... | updated since tags |
<nb> public class HttpClientStreamTest extends AbstractHttpClientServerTest
. scheme ( scheme )
. file ( upload )
. onRequestSuccess ( request - > requestTime . set ( System . nanoTime ( ) ) )
- . timeout ( NUMBER0 , TimeUnit . SECONDS )
+ . timeout ( NUMBER1 , TimeUnit . SECONDS )
. send ( ) ;
long respo... | Increased timeouts to avoid failures on slower machines |
<nb> public final class TypeCheck implements NodeTraversal . Callback , CompilerPass {
ILLEGAL_OBJLIT_KEY ,
NON_STRINGIFIABLE_OBJECT_KEY ,
ABSTRACT_METHOD_IN_CONCRETE_CLASS ,
+ ABSTRACT_METHOD_NOT_CALLABLE ,
ES5_CLASS_EXTENDING_ES6_CLASS ,
RhinoErrorReporter . TYPE_PARSE_ERROR ,
TypedScopeCreator . UNKNOW... | Add a couple of DiagnosticTypes about abstract to proper DiagnosticGroups |
<nb> import static NAMESPACE ;
@ category ( QuickTest . class )
public class RingbufferContainerSerializationTest extends HazelcastTestSupport {
- private static final int CLOCK_DIFFERENCE_MS = NUMBER0 ;
+ private static final int CLOCK_DIFFERENCE_MS = NUMBER1 ;
private SerializationService serializationS... | Increated a test timeout window to prevent false negatives |
<nb> public class MediaConfigurationImpl
{
case DeviceConfigurationComboBoxModel . AUDIO :
preferredDeviceAndPreviewPanelHeight
- = ( devicePanel == null ) ? NUMBER0 : NUMBER1 ;
+ = ( devicePanel == null ) ? NUMBER2 : NUMBER3 ;
break ;
case DeviceConfigurationComboBoxModel . VIDEO :
preferredDeviceAndPr... | Increase audio controls height to show mic level for WASAPI |
<nb> public class TtsService extends Service implements OnCompletionListener {
return sr ;
}
+ private void broadcastTtsQueueProcessingCompleted ( ) {
+ Intent i = new Intent ( Intent . ACTION_TTS_QUEUE_PROCESSING_COMPLETED ) ;
+ sendBroadcast ( i ) ;
+ }
+
private void dispatchSpeechCompletedCallback... | Using a sendBroadcast to notify interested parties of when |
<nb> public class SQLInsertTest {
database . open ( STRING0 , STRING0 ) ;
OIdentifiable result = database . command (
- new OCommandSQL ( STRING1 ) )
+ new OCommandSQL ( STRING2 ) )
. execute ( ) ;
Assert . assertNotNull ( result ) ;
<nb> public class SQLInsertTest {
Map < String , String > map = re... | Fixed bug on parsing SQL UPDATE with maps between SET clause |
<nb> public class MipMapGenerator {
return ;
}
- if ( Gdx . app . getType ( ) == ApplicationType . Android || Gdx . app . getType ( ) == ApplicationType . WebGL ) {
+ if ( Gdx . app . getType ( ) == ApplicationType . Android || Gdx . app . getType ( ) == ApplicationType . WebGL || Gdx . app . getType ( ) == A... | Add support for iOS application types in the MipMapGenerator utility class |
<nb> public class AsyncLoadBalancingClient < T extends ClientRequest , S extends IRespon
@ override
public void completed ( T response ) {
- latch . countDown ( ) ;
completeResponse = response ;
+ latch . countDown ( ) ;
if ( callback != null ) {
callback . completed ( response ) ;
}
<nb> public cla... | set exception or response first before latch count down so that Future get will return correct object |
<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 NAMES... | Fix imports in example |
<nb> public class EntryActivity extends Activity {
}
} else {
if ( ! showingTamperPrompt ) {
- startActivityForResult ( new Intent ( this , SettingsActivity . class ) , NUMBER0 ) ;
+ startActivityForResult ( new Intent ( this , HomeActivity . class ) , NUMBER0 ) ;
}
} | Set EntryActivity as Launcher activity |
<nb> public class TextEditingTarget implements
{
event . preventDefault ( ) ;
event . stopPropagation ( ) ;
+
+ SINGLE
+ if ( docDisplay_ . isPopupVisible ( ) )
+ return ;
+
if ( commands_ . interruptR ( ) . isEnabled ( ) )
commands_ . interruptR ( ) . execute ( ) ;
} | don t interrupt R if autocompletion popup visible |
<nb> public class SharedLibraryLoader {
file = new File ( STRING0 + dirName , fileName ) ;
if ( canWrite ( file ) ) return file ;
+ SINGLE
+ if ( System . getenv ( STRING1 ) != null ) return idealFile ;
+
return null ;
} | Allow building in the OS X sandbox |
<nb> public class QuickStatusBarHeader extends BaseStatusBarHeader implements
updateAlarmVisibilities ( ) ;
mEmergencyOnly . setVisibility ( mExpanded && mShowEmergencyCallsOnly
? View . VISIBLE : View . INVISIBLE ) ;
+ mSettingsContainer . setVisibility ( mExpanded ? View . VISIBLE : View . INVISIBLE ) ;
mSe... | Fix QS header settings user visibilities |
<nb> public class DexBuffer {
}
sb . append ( STRING0 ) ;
+ sb . append ( returnType ) ;
return sb . toString ( ) ;
} | Fix the missing return type for method references |
<nb> import NAMESPACE ;
public class LwjglInput extends BaseLwjglSubsystem {
private static final Logger logger = LoggerFactory . getLogger ( LwjglInput . class ) ;
+ private boolean mouseGrabbed ;
@ override
public void preInitialise ( ) {
<nb> public class LwjglInput extends BaseLwjglSubsystem {
pub... | Changed LwjglInput to avoid setting mouseGrabbed unnecessarily in an attempt to fix mouse under OSX |
<nb> public class LoadDatasets extends Job {
TestUtil . parseFromH2OFolder ( STRING0 ) ;
TestUtil . parseFromH2OFolder ( STRING1 ) ;
TestUtil . parseFromH2OFolder ( STRING2 ) ;
+ TestUtil . parseFromH2OFolder ( STRING3 ) ;
TestUtil . parseFromH2OFolder ( STRING4 ) ;
TestUtil . parseFromH2OFolder ( STRING5 )... | Load new iris dataset with missing values |
<nb> public class WifiP2pGroup implements Parcelable {
}
if ( nameValue [ NUMBER0 ] . equals ( STRING0 ) ) {
- mOwner = new WifiP2pDevice ( sa ) ;
mNetId = Integer . parseInt ( nameValue [ NUMBER1 ] ) ;
continue ;
} | Fix invitation request from persistent GC |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class BitSet {
SINGLE | Record cleanup task for BitSet java |
<nb> public class SharedPreferencesHelper {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public boolean savePersonalInfo ( SharedPreferenceEntry sharedPreferenceEntry ) { | Fixed code javadoc tag |
<nb> class GitBranchUiHandlerImpl implements GitBranchUiHandler {
@ override
public int showSmartOperationDialog ( @ notnull Project project , @ notnull List < Change > changes , @ notnull String operation , boolean force ) {
- return GitSmartOperationDialog . showAndGetAnswer ( myProject , changes , STRING0 , ... | use correct operation name in the smart dialog |
<nb> public class JavaPlugin implements Plugin {
} ,
STRING0 , new ConventionValue ( ) {
public Object getValue ( Convention convention , Task task ) {
- return java ( convention ) . getClassesDir ( ) ;
+ return java ( convention ) . getTestClassesDir ( ) ;
}
} ,
STRING1 , new ConventionValue ( ) { | Fixed wrong assignment to eclipse test output directory |
<nb> public class EditPreferences extends TodorooPreferenceActivity {
}
public void addPreferenceListeners ( ) {
- findPreference ( getString ( R . string . p_theme ) ) . setOnPreferenceChangeListener ( new OnPreferenceChangeListener ( ) {
- @ override
- public boolean onPreferenceChange ( Preference prefer... | Fixed a preferences display bug |
<nb> public class AndroidSdkTool {
} else {
executable = folder . getFileObject ( STRING0 ) ;
}
- return FileUtil . toFile ( executable ) . getPath ( ) ;
+ if ( executable != null ) {
+ return FileUtil . toFile ( executable ) . getPath ( ) ;
+ } else {
+ return null ;
+ }
}
COMMENT | add null check on executable file to android SDK execution |
<nb> public class ZipUtilTest {
@ test public void testGetUnsignedShort_FFFF ( ) {
int result = ZipUtil . getUnsignedShort ( new byte [ ] { ( byte ) NUMBER0 , ( byte ) NUMBER0 } , NUMBER1 ) ;
assertThat ( ( short ) result ) . isEqualTo ( ( short ) - NUMBER2 ) ;
- if ( ( short ) result == - NUMBER2 ) {
- Syste... | Remove debugging output |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ motanservice ( export = STRING0 )
+ @ motanservice ( export = STRING1 )
public class MotanDemoServiceImpl implements MotanDemoService {
public String hello ( String name ) { | annotation demo add protocol |
<nb> public class ZuulConstants {
public static final String ZUUL_DEBUG_VIP = STRING0 ;
public static final String ZUUL_DEBUG_HOST = STRING1 ;
+ SINGLE
+ private ZuulConstants ( ) {
+ throw new AssertionError ( STRING2 ) ;
+ }
+
} | Prevent instantiation of constant utility class for Zuul property constants |
<nb> public class MemoryRecords implements Records {
if ( writable ) {
return compressor . buffer ( ) . position ( ) ;
} else {
- return compressor . buffer ( ) . limit ( ) ;
+ return buffer . limit ( ) ;
}
} | MemoryRecords sizeInBytes throws NPE when non writable |
<nb> import NAMESPACE ;
public class UpdateIAPTask extends AsyncTask < Void , Void , Void > {
private static final int GET_IAP_BINDER_TIMEOUT = NUMBER0 ;
private static final String IAP_ENDPOINT = STRING0 ;
- protected Context mContext ;
+ private final Context mContext ;
private IabHelper mIabHelper ;
pr... | Change the visibilty of mContext to private in UpdateIAPTask |
<nb> public class SkyFactory {
}
private static void checkImage ( Image image ) {
- if ( image . getDepth ( ) != NUMBER0 )
- throw new IllegalArgumentException ( STRING0 ) ;
+ SINGLE
+ SINGLE
if ( image . getWidth ( ) != image . getHeight ( ) )
throw new IllegalArgumentException ( STRING1 ) ; | Fixed exception in SkyFactory |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ target ( METHOD )
@ retention ( RUNTIME ) | Fix the link to UnitOfWorkApplicationListener in the javadoc |
<nb> public class MaterialDialog extends DialogBase implements
return this ;
}
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public Builder customView ( @ layoutres int layoutRes ) {
- return customView ( layoutRes , true ) ;
- }
-
public Builder customView ( @ layoutres int layoutRes , boolean... | Removed more deprecated methods since no one should still be using them |
<nb> public class Classifier
double cost = FLOAT0 ;
double correct = FLOAT0 ;
- SINGLE
- SINGLE
- SINGLE
- Set < Integer > preMapIndicesSeen = new HashSet < > ( ) ;
-
for ( Example ex : examples ) {
List < Integer > feature = ex . getFeature ( ) ;
List < Integer > label = ex . getLabel ( ) ;
<nb... | Remove preMap index tracking |
<nb> public class ConcurrentShiftQueue < T > implements IQueue < T > {
} else {
COMMENT
final int newCapacity = ( currentCapacity * NUMBER0 ) / NUMBER1 + NUMBER2 ;
- final Object newItems [ ] = new Object [ newCapacity ] ;
- System . arraycopy ( this . mItems , NUMBER3 , newItems , NUMBER3 , currentCapacity )... | Made ConcurrentShiftQueue use java internal method of copying an Array for eventually better performance |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.