diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class LocalFileSystemTest extends PlatformTestCase {
}
public void testBrokenSymlinkMove ( ) throws IOException , InterruptedException {
+ if ( ! SystemInfo . areSymLinksSupported ) {
+ System . err . println ( getName ( ) + STRING0 + SystemInfo . OS_NAME ) ;
+ return ;
+ }
+
final File sr... | tests adds a precondition for symlink test |
<nb> import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class SocketCustomizationListener implements Listener
{ | Fixing bad javadoc |
<nb> public class APIMessage {
COMMENT
apiName = STRING0 ;
- apiDescription = apiCodeReceived + STRING1 ;
partition = Integer . parseInt ( apiMessage . substring ( NUMBER0 , NUMBER1 ) ) ;
user = apiMessage . substring ( NUMBER1 ) ;
apiName = apiName . concat ( STRING2 + user ) ;
+ apiDescription = apiCo... | Included the user number in the User Opening Closing Messages |
<nb> public class SSBasedInspectionTest extends InspectionTestCase {
configuration . setMatchOptions ( options ) ;
configurations . add ( configuration ) ;
inspection . setConfigurations ( configurations , myProject ) ;
- inspection . projectOpened ( getProject ( ) ) ;
myWrapper = new LocalInspectionToolWrapp... | remove unnecessary projectOpened call from tests |
<nb> public final class ChannelImpl extends Channel {
COMMENT
COMMENT
COMMENT
- @ experimentalapi ( comment = STRING0 )
+ @ experimentalapi ( STRING0 )
public void ping ( final PingCallback callback , final Executor executor ) {
try {
obtainActiveTransport ( ) . ping ( callback , executor ) ;
<nb> imp... | Change ExperimentalApi field comment to value |
<nb> public class CreateFileFix implements IntentionAction , LocalQuickFix {
myDirectory = directory ;
myText = text ;
myKey = key ;
+ if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
+ System . out . println ( STRING0 ) ;
+ System . out . println ( newFileName ) ;
+ System . out . pr... | debugging the test |
<nb> public class SubtitleView extends View {
mInnerPaddingX = ( int ) ( size * INNER_PADDING_RATIO + FLOAT0 ) ;
mHasMeasurements = false ;
- forceLayout ( ) ;
+
+ requestLayout ( ) ;
+ invalidate ( ) ;
}
}
<nb> public class SubtitleView extends View {
mTextPaint . setTypeface ( typeface ) ;
... | Fix layout and invalidate in SubtitleView |
<nb> public class OClass extends ODocumentWrapperNoClass implements Comparable < OClass
id = ( Integer ) document . field ( STRING0 ) ;
defaultClusterId = ( Integer ) document . field ( STRING1 ) ;
- overSize = document . field ( STRING2 ) ;
+ overSize = ( Float ) document . field ( STRING2 ) ;
final Obje... | Removed nasty warning with javac |
<nb> class GitTreeController implements ManageGitTreeView {
SINGLE
private final AtomicReference < List < String > > myTags ;
private final AtomicReference < List < String > > myBranches ;
- private final AtomicReference < List < String > > myUsers ;
private final MyFiltersStateHolder myFilterHolder ;
pri... | not used code |
<nb> public class SedaConsumer extends ServiceSupport implements Consumer , Runnable ,
private static final transient Logger LOG = LoggerFactory . getLogger ( SedaConsumer . class ) ;
private final AtomicInteger taskCount = new AtomicInteger ( ) ;
- private CountDownLatch latch ;
+ private volatile CountDownL... | Fixed a potential NPE when shutting down a seda consumer which hasn t properly been started prior to shutdown |
<nb> import NAMESPACE ;
name = STRING0 ,
project = true ,
category = STRING1 ,
- type = PropertyType . PROPERTY_SET ,
propertySetKey = STRING2 ) } )
public class PropertySetsPlugin extends SonarPlugin {
public List getExtensions ( ) { | Remove wrong property type in plugin IT |
<nb> public class WebView extends AbsoluteLayout
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Improve loadData JavaDoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
COMMENT
COMMENT | Replace a deprecated package import |
<nb> public class SvnMapping {
@ nullable
public String getRootForPath ( final String path ) {
String floor = myFile2UrlMap . floorKey ( path ) ;
+ if ( floor == null ) return null ;
NavigableMap < String , RootUrlInfo > head = myFile2UrlMap . headMap ( floor , true ) ;
for ( String root : head . descending... | Avoid not null assertion violation on importing from gradle |
<nb> public class AndroidDatabaseConnection implements DatabaseConnection {
}
public boolean isTableExists ( String tableName ) {
- SINGLE
- return true ;
+ Cursor cursor =
+ db . rawQuery ( STRING0 + tableName + STRING1 , null ) ;
+ if ( cursor != null && cursor . getCount ( ) > NUMBER0 ) {
+ return ... | Added isTableExists support to Dao AndroidDatabaseConnection |
<nb> public class TileMapRenderer implements Disposable {
if ( blended == blendedTiles . contains ( tile ) ) {
region = atlas . getRegion ( tile ) ;
if ( region != null ) {
- y = ( ( layer . length - row ) - ( region . packedHeight + region . offsetY ) / tileHeight ) * unitsPerTileY ;
- x = ( col + region . o... | fixed TileMapRenderer was incorrectly placing tiles with transparency |
<nb> public class ReaderPostAdapter extends RecyclerView . Adapter < RecyclerView . ViewHol
}
SINGLE
- if ( mIsLoggedOutReader || isDiscoverPost ) {
+ if ( mIsLoggedOutReader ) {
postHolder . followButton . setVisibility ( View . GONE ) ;
} else {
postHolder . followButton . setIsFollowed ( post . isFol... | Reverted hiding follow button for discover posts |
<nb> public class MainActivity extends AppCompatActivity {
. findFragmentById ( R . id . search_fragment ) ;
}
+ @ override
public boolean onCreateOptionsMenu ( Menu menu ) {
super . onCreateOptionsMenu ( menu ) ;
MenuInflater inflater = getMenuInflater ( ) ; | Add missing Override decorator |
<nb> public class ListScrollingUtil {
Rectangle cellBounds = list . getCellBounds ( top , bottom ) ;
if ( cellBounds != null ) {
cellBounds . x = NUMBER0 ;
- cellBounds . y = NUMBER0 ;
list . scrollRectToVisible ( cellBounds ) ;
}
} | Fix scrolling in completion lists etc |
<nb> public class MediaRouteControllerDialog extends AlertDialog {
}
}
}
- if ( art != null ) {
- if ( art . getWidth ( ) < art . getHeight ( ) ) {
- SINGLE
- mBackgroundColor = new Palette . Builder ( art ) . generate ( ) . getDarkVibrantColor ( NUMBER0 ) ;
- }
+ if ( art != null && art . getWidth ( ... | Pick dominant color for portrait art work s background |
<nb> public class KeepAliveService implements MessageListener {
private KeepAliveTask task = new KeepAliveTask ( ) ;
private volatile boolean processMessages = false ;
private ArrayList < String > pingMessages = new ArrayList < String > ( ) ;
- volatile boolean available = true ;
+ volatile boolean available ... | init the bbb apps state to not available to prevent race condition where |
<nb> public class ZWaveMultiInstanceCommandClass extends ZWaveCommandClass {
CommandClass . MULTI_INSTANCE_ASSOCIATION ,
CommandClass . CONFIGURATION ,
CommandClass . CLOCK ,
- CommandClass . WAKE_UP
+ CommandClass . WAKE_UP ,
+ CommandClass . BATTERY
) ; | Add BATTERY class to single endpoint class list |
<nb> public abstract class UriUtils {
private static byte [ ] encode ( byte [ ] source , BitSet notEncoded ) {
Assert . notNull ( source , STRING0 ) ;
ByteArrayOutputStream bos = new ByteArrayOutputStream ( source . length * NUMBER0 ) ;
- for ( byte b : source ) {
+ for ( int i = NUMBER1 ; i < source . length... | fixed accidental change to byte array loop |
<nb> public class ImageLoader {
COMMENT
COMMENT
public ImageContainer get ( String requestUrl , final ImageListener listener ) {
- return get ( requestUrl , listener , NUMBER0 , NUMBER0 , ScaleType . CENTER_INSIDE ) ;
+ return get ( requestUrl , listener , NUMBER0 , NUMBER0 ) ;
+ }
+
+ COMMENT
+ COMME... | Fix volley related build breakage |
<nb> public final class TextAttributesReaderTest extends LightPlatformTestCase {
assertEquals ( expected , actual ) ;
SINGLE
SINGLE
- Field field = TextAttributes . class . getDeclaredField ( STRING0 ) ;
+ Field field = TextAttributes . class . getDeclaredField ( STRING1 ) ;
field . setAccessible ( true ) ;... | corrected field name used in reflection |
<nb> public class DevicePolicyManagerService extends IDevicePolicyManager . Stub {
}
PersistentDataBlockManager manager = ( PersistentDataBlockManager )
mContext . getSystemService ( Context . PERSISTENT_DATA_BLOCK_SERVICE ) ;
- manager . wipe ( ) ;
+ if ( manager != null ) {
+ manager . wipe ( ) ;
+ }
... | Fix NPE if FPE service does not exist |
<nb> public class PyStudyInitialConfigurator {
}
}
copyCourse ( file , newCourses ) ;
- propertiesComponent . setValue ( CONFIGURED_V11 , STRING0 ) ;
+ propertiesComponent . setValue ( CONFIGURED_V2 , STRING0 ) ;
}
catch ( IOException e ) {
LOG . warn ( STRING1 + e ) ; | fixed typo in configurator |
<nb> public class TextArea extends TextField {
return linesShowing ;
}
+ public float getCursorX ( ) {
+ return textOffset + fontOffset + style . font . getData ( ) . cursorX ;
+ }
+
+ public float getCursorY ( ) {
+ BitmapFont font = style . font ;
+ return - ( - font . getDescent ( ) / NUMBER0 - (... | Added getCursorX Y |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FetchProjection extends Projection {
@ override
public void readFrom ( StreamInput in ) throws IOException {
- throw new NotImplementedExc... | remove NotImplementedException usage |
<nb> public class AppBarLayout extends LinearLayout {
break ;
}
}
- return mTotalScrollRange = ( range - getTopInset ( ) ) ;
+ return mTotalScrollRange = Math . max ( NUMBER0 , range - getTopInset ( ) ) ;
}
private boolean hasScrollableChildren ( ) {
<nb> public class AppBarLayout extends LinearLayout... | Take the window insets into account when ABL is dragged |
<nb> public class BenchmarkRunner
int avg = ( int ) sum / map . size ( ) ;
System . out . println ( STRING0
+ m . name ( )
- + STRING1
+ + STRING2
+ valSb . toString ( ) . substring ( NUMBER0 , valSb . length ( ) - NUMBER1 )
+ STRING3
+ NUMBER0 | change image size to fit all serializers |
<nb> public class ShadowActivity extends ShadowContextThemeWrapper {
COMMENT
public boolean clickMenuItem ( int menuItemResId ) {
if ( optionsMenu == null ) {
- throw new RuntimeException ( STRING0 ) ;
+ throw new RuntimeException ( STRING1 +
+ STRING2 + realActivity . getClass ( ) . getName ( ) + STRING3 )... | Add debugging info for ShadowActivity clickMenuItem |
<nb> public class JsonValue implements Iterable < JsonValue > {
if ( isValue ( ) )
return name == null ? asString ( ) : name + STRING0 + asString ( ) ;
else
- return name == null ? asString ( ) : name + STRING0 + prettyPrint ( OutputType . minimal , NUMBER0 ) ;
+ return ( name == null ? STRING1 : name + STRIN... | Fixed toString I just broked |
<nb> public class DragSortListView extends ListView {
int movePosition ;
if ( dy > NUMBER0 ) {
- if ( first == NUMBER0 && getChildAt ( NUMBER0 ) . getTop ( ) == padTop ) {
- mScrolling = false ;
- return ;
+ View v = getChildAt ( NUMBER0 ) ;
+ if ( ( v == null ) || ( first == NUMBER0 && v . getTop ( ) =... | Fix another rare crash |
<nb> public class CatalanTagger extends BaseTagger {
}
@ override
+ public String getManualRemovalsFileName ( ) {
+ return STRING0 ;
+ }
+
+ @ override
public boolean overwriteWithManualTagger ( ) {
return false ;
} | ca add file for removing postags |
<nb> public class CompositesSearcher extends SecondaryIndexSearcher
{
SINGLE
SINGLE
- if ( columnsCount > limit )
+ if ( columnsCount >= limit )
return makeReturn ( currentKey , data ) ;
if ( indexColumns == null || indexColumns . isEmpty ( ) ) | Fix merge s in CompositesSearcher |
<nb> public class ExtractorFactory {
return new RegexExtractor ( id , title , cursorStrategy , sourceField , targetField , extractorConfig , creatorUserId , converters ) ;
case SUBSTRING :
return new SubstringExtractor ( id , title , cursorStrategy , sourceField , targetField , extractorConfig , creatorUserId , c... | completed split count extractor |
<nb> public class OTraverseRecordProcess extends OTraverseAbstractProcess < ODocument >
}
public OIdentifiable process ( ) {
+ if ( target == null )
+ return drop ( ) ;
+
if ( command . getContext ( ) . isAlreadyTraversed ( target ) )
SINGLE
return drop ( ) ; | added check of target null on traverse |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BytecodeAnalysisTest extends JavaCodeInsightFixtureTestCase {
final HashMap < Method , boolean [ ] > map = new HashMap < Method , boolean [ ] > ... | let BytecodeAnalysisTest work when its path contains spaces |
<nb> public class XMLLoggerTest {
}
private static class TestThrowable extends Exception {
+
+ private static final long serialVersionUID = NUMBER0 ;
+
@ override
public void printStackTrace ( PrintWriter s ) {
s . print ( STRING0 ) ;
<nb> public class JavadocMethodCheckTest extends BaseCheckTestSup... | Added serialId to test classes |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class EditSignatureBalloon {
( ( EditorEx ) editor ) . setEmbeddedIntoDialogWrapper ( true ) ;
}
+ editor . getColorsScheme ( ) . se... | Removed different color for caret row in balloon to avoid confusing |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ColumnConfig {
}
public void setValueDate ( String valueDate ) throws ParseException {
- this . valueDate = new ISODateFormat ( ) . parse... | Allow computed date |
<nb> public class NetworkAbstractionTests {
} catch ( IllegalStateException e ) { }
SINGLE
- byte [ ] messageBytes5 = msg5 . toByteArray ( ) ;
byte [ ] messageLength5 = new byte [ NUMBER0 ] ;
- Utils . uint32ToByteArrayBE ( messageBytes5 . length , messageLength5 , NUMBER1 ) ;
- client . writeBytes ( mess... | Fix broken test case |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ; ;
-
COMMENT
COMMENT
COMMENT | remove useless import |
<nb> public class PApplet extends Applet
if ( ! newBounds . equals ( oldBounds ) ) {
SINGLE
setBounds ( newBounds ) ;
+ revalidate ( ) ; SINGLE
}
}
} | Revalidating the PApplet on resize so child components like GLCanvas |
<nb> public class X509TestUtils {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class X509TestUtils {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | removed monkeymachine co uk email addresses |
<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 ;
<nb> public class Certific... | Prevent error while parsing self generated certificate |
<nb> public abstract class ConsoleSupport {
return promptStyle ;
}
+ public GroovyShell getShell ( ) {
+ return shell ;
+ }
+
protected Object evaluate ( String text ) {
System . out . println ( STRING0 + text ) ; | Added a property to avoid the exception stack trace when running the console |
<nb> public class GroovyEnterHandler extends EditorWriteActionHandler {
type != mGDOC_COMMENT_START ) {
return false ;
}
+ if ( ( line . equals ( STRING0 ) || line . equals ( STRING1 ) ) && type == mGDOC_COMMENT_START ) {
+ return false ;
+ }
iterator = highlighter . createIterator ( caret - NUMBER0 ) ;
... | enter handler altered |
<nb> public class CreatureSpawnEvent extends EntityEvent implements Cancellable {
COMMENT
REINFORCEMENTS ,
COMMENT
+ COMMENT
+ COMMENT
+ NETHER_PORTAL ,
+ COMMENT
+ COMMENT
+ COMMENT
+ DISPENSE_EGG ,
+ COMMENT
COMMENT
COMMENT
CUSTOM , | Added SpawnReasons for nether portals and dispensers |
<nb> public class SortsTiming {
}
}
- private static final void showResult ( Integer [ ] unsorted , Integer [ ] result ) {
- System . out . println ( STRING0 + print ( unsorted ) ) ;
- System . out . println ( STRING1 + print ( result ) ) ;
+ private static final void showResult ( Integer [ ] u , Integer ... | Cleaned up some timing tests |
<nb> public class MappedFile {
}
private void expand ( ) throws IOException {
- resize ( ( int ) ( myRealSize + Math . max ( myRealSize , NUMBER0 * NUMBER1 ) ) ) ;
+ resize ( ( int ) ( ( myRealSize + NUMBER2 ) * NUMBER3 ) > > NUMBER4 ) ;
}
public void put ( final byte [ ] src , final int offset , final ... | smarter expand strategy mulpiply size on the golden section approximation |
<nb> import NAMESPACE ;
COMMENT
public class ProjectJdksEditor extends DialogWrapper {
private ProjectRootConfigurable myConfigurable ;
+ private ProjectJdk myProjectJdk ;
public ProjectJdksEditor ( ProjectJdk jdk , Component parent ) {
super ( parent , true ) ;
<nb> public class ProjectJdksEditor exten... | restore selection during project creation |
<nb> public final class QueryString extends HashMap < String , ArrayList < String > > {
values . add ( value ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getFirst ( final String key ) {
+ final ArrayList < String > values = super . get ( key ) ;
+ return values == null ? null : values . get ( N... | Add a method to get the first value of a query string parameter |
<nb> public class MediaUtils
Constants . TELEPHONE_EVENT ,
NUMBER0 ) ;
+ addMediaFormats ( ( byte ) SdpConstants . JPEG ,
+ STRING0 ,
+ MediaType . VIDEO ,
+ VideoFormat . JPEG_RTP ) ;
+
+ COMMENT
addMediaFormats (
( byte ) SdpConstants . H263 ,
STRING1 ,
MediaType . VIDEO ,
VideoFormat . H2... | Remove H261 and H263 since they don t really work that well |
<nb> public abstract class ValidatableResponseOptionsImpl < T extends ValidatableRespon
private final RestAssuredConfig config ;
public ValidatableResponseOptionsImpl ( String contentType , ResponseParserRegistrar rpr , RestAssuredConfig config , Response response , ExtractableResponse < R > extractableResponse )... | Fixed issue where response could not be created using the ResponseBuilder if using the given when then syntax |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused imports |
<nb> public final class KeyValueStoreOperations implements Callable < Boolean > {
System . exit ( - NUMBER0 ) ;
}
+ if ( ! Configuration . getBoolean ( Constants . KEY_VALUE_ENABLED ) ) {
+ System . out . println ( STRING0
+ + Constants . KEY_VALUE_ENABLED + STRING1 ) ;
+ System . exit ( - NUMBER0 ) ;
+... | SMALLFIX Quit KVTest if kv not enabled with error message |
<nb> final class Mark {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public void pushStream ( char [ ] inStream , int inFileId , String name ,
String inBaseDir ) | Remove Javadoc for non existent parameter |
<nb> public interface TypeDescription extends TypeDefinition , TypeVariableSource {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
class ForModernVm implements Dispatcher {
COMMENT | Added remaining documentation and tests |
<nb> public class UdcExtensionImpl extends KernelExtension implements UdcProperties {
}
}
-
@ override
protected void unload ( KernelData kernel ) {
- timer . cancel ( ) ;
+ if ( timer != null )
+ {
+ timer . cancel ( ) ;
+ }
}
COMMENT | Fixed a possible NPE if the timer wasn t started disabled |
<nb>
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
package NAMESPACE ;
import NAMESPACE ; | remove testdata copyright |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
public class InsertFromValuesAnalyzer extends AbstractInsertAnalyzer < InsertFromValuesAnalysis > {
<nb> public class InsertFromV... | improve error message if num columns doesn t match number of values on insert |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
mTransientStateViewsById = new LongSparseArray < View > ( ) ;
}
mTransientStateViewsById . put ( lp . itemId , scrap ) ;
- } else {
+ } else if ( ! mDataChanged ) {
+ SINGLE
+ SINGLE
if ( mTransientStateViews == nul... | Fix bug with transientState for listviews without stable IDs |
<nb> public class JobServiceContext extends IJobCallback . Stub implements ServiceConne
mRunningJob = job ;
final boolean isDeadlineExpired =
- job . getLatestRunTimeElapsed ( ) >= SystemClock . elapsedRealtime ( ) ;
+ job . hasDeadlineConstraint ( ) &&
+ ( job . getLatestRunTimeElapsed ( ) < SystemClock . ... | Fix bug with jobservice context giving wrong value |
<nb> public abstract class KernelExtension extends Service
{
for ( KernelExtension extension : Service . load ( KernelExtension . class ) )
{
- System . out . println ( STRING0 + extension ) ;
try
{
extension . init ( this ) ; | Removed a System out |
<nb> public class StorageService implements IEndpointStateChangeSubscriber , StorageSe
SINGLE
Token < ? > token ;
InetAddress current = null ;
- logger_ . debug ( STRING0 ,
- new Object [ ] { DatabaseDescriptor . isAutoBootstrap ( ) , SystemTable . bootstrapInProgress ( ) , SystemTable . bootstrapComplete ( )... | Fix debug log format |
<nb> public class RtmpClientAdapter implements DeskshareClient , RecordStatusListener
msg . add ( new String ( STRING0 ) ) ;
}
- so . sendMessage ( STRING1 , msg ) ;
+ SINGLE
}
} | remove deskshare client callback |
<nb> public class ORecordCache extends LinkedHashMap < ORID , ORecordInternal < ? > > {
int entryNum = NUMBER0 ;
int i = NUMBER0 ;
for ( java . util . Map . Entry < ORID , ORecordInternal < ? > > ridEntry : entrySet ( ) ) {
- if ( ! ridEntry . getValue ( ) . isDirty ( ) && ! ridEntry . getValue ( ) . isPinned (... | Removed check Avoid to remove from the cache ONLY if dirty |
<nb> public class FakeVirtualFile extends StubVirtualFile {
return myParent ;
}
+ @ override
+ public boolean isDirectory ( ) {
+ return false ;
+ }
+
@ notnull
@ override
public String getPath ( ) { | do not throw exception on isDirectory |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix license header |
<nb> public abstract class Model < M extends Model < M , P , O > , P extends Model . Parameters ,
COMMENT
COMMENT
public Output ( ModelBuilder b ) {
+ if ( b == null ) return ;
if ( b . error_count ( ) > NUMBER0 )
throw new IllegalArgumentException ( b . validationErrors ( ) ) ;
SINGLE | Allow trivial empty test Model |
<nb> public class ExpressionAnalyzer
ImmutableList . < Expression > builder ( ) . add ( value ) . addAll ( inListExpression . getValues ( ) ) . build ( ) ) ;
}
else if ( valueList instanceof SubqueryExpression ) {
+ coerceToSingleType ( context , node , STRING0 , value , valueList ) ;
subqueryInPredicates . a... | Validate types for IN subquery expression |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Use correct Lists implementation in MessageToJsonSerializerTest |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DebuggerUtils {
if ( isPackageClassName ( className ) ) {
for ( JetFile file : filesWithExactName ... | Replace KotlinPackage legacy facade with corresponding package parts in DebuggerUtils java |
<nb> public class RadialPickerLayout extends FrameLayout implements OnTouchListener {
Log . e ( TAG , STRING0 + index ) ;
return ;
}
+
+ SINGLE
+ animate = animate && Build . VERSION . SDK_INT >= NUMBER0 ;
int lastIndex = getCurrentItemShowing ( ) ;
mCurrentItemShowing = index ; | Disable HR MIN circle animation on old platforms |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT | Fix template exception breakpoints default |
<nb> public class ConnectivityService extends IConnectivityManager . Stub {
}
public ProxyProperties getProxy ( ) {
- enforceAccessPermission ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
synchronized ( mDefaultProxyLock ) {
return mDefaultProxyDisabled ? null : mDefaultProxy ;
}
<nb> public class C... | Remove two new permission checks |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public final class CppFileTypes {
- public static final FileType CPP_SOURCE = FileType . of ( STRING0 , STRING1 , STRING2 , STRING3 ) ;
+ public static final FileType CPP_SOURCE = FileType . of ( STRING0 , STRING1 , STRING2 , STRING4 , STRING3 ) ;
public static final ... | Allow C files to have the |
<nb>
package NAMESPACE ;
- public class HostAndPort {
- public static final String LOCALHOST_STR = STRING0 ;
+ import NAMESPACE ;
+
+ public class HostAndPort implements Serializable {
+ private static final long serialVersionUID = - NUMBER0 ;
+
+ public static final String LOCALHOST_STR = STRING0 ;... | HostAndPort implement Serializable |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Polished the javadoc of ResolverUtil |
<nb> public abstract class OBinaryNetworkProtocolAbstract extends ONetworkProtocol {
SINGLE
final ODatabaseDocumentInternal db = ODatabaseRecordThreadLocal . INSTANCE . getIfDefined ( ) ;
if ( db != null && db instanceof ODatabaseDocument ) {
- if ( db . getSerializer ( ) instanceof ORecordSerializerSchemaAware... | fix bug on wrong trimming of binary serialized record |
<nb> public class ActionMenuPresenter extends BaseMenuPresenter
if ( subMenu == null ) return false ;
mOpenSubMenuId = ( ( SubMenuBuilder ) subMenu ) . getItem ( ) . getItemId ( ) ;
- return false ;
+ final MenuPresenter . Callback cb = getCallback ( ) ;
+ return cb != null ? cb . onOpenSubMenu ( subMenu ) ... | Fix action menu visibility callbacks for nested popups |
<nb> public class SentenceITest {
in . close ( ) ;
}
+ COMMENT
@ test
public void testFragmentConstructor ( ) {
StanfordCoreNLP pipeline = new StanfordCoreNLP ( new Properties ( ) { {
<nb> public class SentenceITest {
StringUtils . join ( fragment . words . stream ( ) . map ( CoreLabel : : word ) , ST... | Gah don t have the OpenIE models yet |
<nb>
package NAMESPACE ;
-
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | add some javadoc |
<nb> public class IndexBatchCreator {
continue ;
}
if ( f . getName ( ) . endsWith ( STRING0 ) || f . getName ( ) . endsWith ( STRING1 ) || f . getName ( ) . endsWith ( STRING2 ) ) {
+ if ( skipExistingIndexes != null ) {
+ int i = f . getName ( ) . indexOf ( STRING1 ) ;
+ String name = f . getName ( ) . su... | update skip files |
<nb> public class PutSourceItemIntoParentAndLinkViaManifestAction extends PutIntoDefa
}
boolean enable = parentInfo != null ;
+ boolean isProvideElements = false ;
for ( PackagingSourceItem item : mySourceItemsTree . getSelectedItems ( ) ) {
+ isProvideElements |= item . isProvideElements ( ) ;
if ( ! ite... | hide put and link via manifest action if there are no suitable items selected |
<nb> public class ScheduleItem implements Cloneable , Comparable < ScheduleItem > {
}
ScheduleItem i = ( ScheduleItem ) o ;
return type == i . type &&
- sessionId == i . sessionId &&
+ sessionId . equals ( i . sessionId ) &&
startTime == i . startTime &&
endTime == i . endTime ;
} | Fixed a string comparison |
<nb> public class InvocationBuilder {
request ,
status ,
responseHeaders ,
- unreleasableBuffer ( unmodifiableBuffer ( responseBody . copy ( ) ) ) ,
+ responseBody . copy ( ) ,
registry ,
timeout ,
handler
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
im... | Lock the test response buffer later |
<nb> public class MockFactory < T > {
SINGLE
SINGLE
+ SINGLE
enhancer . setClassLoader ( MockFactory . class . getClassLoader ( ) ) ;
return enhancer ; | added TODO comment |
<nb> public class OFetchHelper {
iContext . onBeforeCollection ( iRootRecord , fieldName , iUserObject , linked ) ;
for ( OIdentifiable d : linked ) {
+ if ( d == null )
+ continue ;
+
SINGLE
final Integer fieldDepthLevel = parsedRecords . get ( d . getIdentity ( ) ) ;
if ( ! d . getIdentity ( ) . isV... | Fixed problem on fetching with null values in arrays |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class VirtualFilePointerContainerImpl extends TraceableDisposable impleme
@ nonnls public static final String URL_ATTR = STRING0 ;
private boolean myDisposed ;
private static final boolean TRACE_CREATION = LOG . isDebugEnabled ( ) ... | do not leave stale data in cache |
<nb> import NAMESPACE ;
public class UkrainianMyspellTagger implements Tagger {
private static final String RESOURCE_FILENAME = STRING0 + File . separator + STRING1
- + File . separator + STRING2 ;
+ + File . separator + STRING3 ;
SINGLE
private HashMap < String , String [ ] > wordsToPos ; | use a better file name parallel to the other languages |
<nb> public class BarController {
}
} else {
vis = ( vis & ~ mTranslucentFlag ) | ( oldVis & mTranslucentFlag ) ;
- vis = ( vis & View . SYSTEM_UI_TRANSPARENT ) | ( oldVis & View . SYSTEM_UI_TRANSPARENT ) ;
+ vis = ( vis & ~ View . SYSTEM_UI_TRANSPARENT ) | ( oldVis & View . SYSTEM_UI_TRANSPARENT ) ;
}
} ... | Fix typo causing immersive mode transition flickering |
<nb> public final class Bitmap implements Parcelable {
}
nativeCopyPixelsFromBuffer ( mNativeBitmap , src ) ;
+
+ SINGLE
+ int position = src . position ( ) ;
+ position += bitmapBytes > > shift ;
+ src . position ( position ) ;
}
COMMENT | Adjust buffer position after copying |
<nb> public abstract class PredictionContext implements Iterable < SingletonPredictionC
int p = lastSlot ; SINGLE
while ( p >= NUMBER0 && mergedParents [ p ] == null ) { p -- ; }
SINGLE
- assert p > NUMBER0 ; SINGLE
+ assert p >= NUMBER0 ; SINGLE
if ( p < lastSlot ) {
int n = p + NUMBER1 ; SINGLE
if ( n... | Fix assertion in PredictionContext mergeArrays |
<nb> public class ProjectOpener
ProjectsServerOperations server ,
String defaultLocation ,
int defaultType ,
+ boolean showNewSession ,
final ProgressOperationWithInput < OpenProjectParams > onCompleted )
{
SINGLE
<nb> public class Projects implements OpenProjectFileHandler ,
ProgressOperationWithInpu... | add new session option to project opener |
<nb> public class PhysicsSystem extends BaseComponentSystem implements UpdateSubscrib
@ receiveevent ( components = { RigidBodyComponent . class } )
public void onChangeVelocity ( ChangeVelocityEvent event , EntityRef entity ) {
- if ( event . getAngularVelocity ( ) . length ( ) > NUMBER0 ) {
+ if ( event . g... | Fixed ChangeVelocity event |
<nb> public abstract class BaseSourceProcessor implements SourceProcessor {
directoryScanner . setBasedir ( basedir ) ;
excludes = ArrayUtil . append (
- excludes , _excludes , new String [ ] { STRING0 , STRING1 } ) ;
+ excludes , _excludes ,
+ new String [ ] {
+ STRING0 , STRING2 , STRING3 ,
+ STRING4 ... | SourceFormatter ignore files in temporary test folders |
<nb> public class ConfigurationUtil {
T instance = ( T ) constructor . newInstance ( constructorArgs ) ;
return instance ;
} catch ( ClassNotFoundException e ) {
- throw new IllegalArgumentException ( STRING0 + clazzname ) ;
+ throw new IllegalArgumentException ( STRING0 + clazzname , e ) ;
} catch ( NoSuch... | Log more exception info in ConfigurationUtil |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.