diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class TestCommand extends BuildCommand {
ProcessExecutorParams . builder ( )
. addAllCommand ( command )
. addAllCommand ( withDashArguments )
+ . setEnvironment ( params . getEnvironment ( ) )
. addCommand ( STRING0 , infoFile . toString ( ) )
. setDirectory ( params . getCell ( ) . getFilesyst... | pass client env to external test runner |
<nb> public class ExcelImporter implements StreamImporter {
protected Serializable extractCell ( org . apache . poi . ss . usermodel . Cell cell ) {
int cellType = cell . getCellType ( ) ;
+ if ( cellType == org . apache . poi . ss . usermodel . Cell . CELL_TYPE_FORMULA ) {
+ cellType = cell . getCachedFormul... | Handle the case where an excel cell has a formula but the cached result of that formula is an error |
<nb> public class Base64 {
if ( dialect == null ) {
throw new NullPointerException ( STRING0 ) ;
}
- return breakLines ( dialect ) ;
+ return dialect . breakLinesByDefault ;
}
public static ChannelBuffer encode ( ChannelBuffer src ) { | Fixed an infinite recursion in Base64 |
<nb> class SpanishLexer {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | flexeverything a spelling mistake |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Removed unused import |
<nb> public final class RingBuffer < T > extends Sequencer
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
public RingBuffer ( final EventFactory < T > eventFactory ,
- final int size ,
+ final int bufferSize ,
final ClaimStrategy . Option claimStrategyOpt... | Rename size to bufferSize |
<nb> public class TestServlet extends HttpServlet {
for ( String j : jo . getJobNames ( ) ) {
out . println ( STRING0 + j + STRING1 ) ;
}
+ out . println ( STRING2 ) ;
out . println ( STRING3 ) ;
out . println ( STRING4 ) ;
} catch ( JobStartException | JobSecurityException ex ) { | Adding prompts to check server log |
<nb> public class JavaFxTagNameReference extends TagNameReference {
if ( object instanceof JavaFxClassBackedElementDescriptor ) {
final XmlFile xmlFile = ( XmlFile ) context . getFile ( ) ;
final String shortName = ( ( JavaFxClassBackedElementDescriptor ) object ) . getName ( ) ;
- JavaFxPsiUtil . insertImportW... | commit document before import insertion |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix javadoc example |
<nb> public class LzoProtobufB64LinePigletGenerator extends ProtoCodeGenerator {
ProtogenHelper . getProtoClass ( packageName_ , protoFilename_ , descriptorProto_ . getName ( ) ) ) ;
sb . append ( protoToPig_ . toPigScript ( msgDescriptor , LzoProtobufB64LinePigLoader . class . getCanonicalName ( ) ,
- String .... | Fix class name in rotobuf piglet generator |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | remove duplicate import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class IntersectionVertex extends StreetVertex {
private static final Logger LOG = LoggerFactory . getLogger ( IntersectionVertex . class ) ;
<nb> public ... | remove the old free flowing inference logic |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixing a build failure |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PyCharmInitialConfigurator {
}
} ) ;
}
+
+ Registry . get ( STRING0 ) . setValue ( false ) ; SINGLE
}
private s... | Disable scratch in PyCharm |
<nb> public class MediaPlayerPerformance extends ActivityInstrumentationTestCase < Medi
Thread . sleep ( NUMBER0 ) ;
mEndPid = getMediaserverPid ( ) ;
int memDiff = mEndMemory - startMemory ;
- if ( memDiff < NUMBER1 )
+ if ( memDiff < NUMBER1 ) {
memDiff = NUMBER1 ;
- else
- output . write ( STRING0 + ... | Fix the bug that it should write the zero diff to the output file when the actual diff is negative |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ORecordSerializerSchemaAware2CSV extends ORecordSerializerCSVAbstra
Object firstValue = coll != null ? coll . iterator ( ) . ... | Fixed a lot of bugs on embedded fields |
<nb> public class SessionListenerBridge implements SessionListener {
if ( reason == SessionDestroyedReason . TIMEOUT ) {
handle = threadSetup . setup ( exchange ) ;
}
+ for ( String attribute : session . getAttributeNames ( ) ) {
+ session . removeAttribute ( attribute ) ;
+ }
applicationListeners . sessi... | Remove all attributes before destroying the session to make sure |
<nb> public class Raptor implements PathService {
SINGLE
double distance = distanceLibrary . distance ( options . rctx . origin . getCoordinate ( ) , options . rctx . target . getCoordinate ( ) ) ;
if ( distance < shortPathCutoff ) {
+ log . debug ( STRING0 ) ;
return shortPathService . getPaths ( options ) ;... | log fall back to avoid confusion |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ; | Removing bad org omg CORBA Environment import |
<nb> public class ControlFrameHandler implements FrameHandler , AutoCloseable
public ControlFrameHandler ( final UdpDestination destination ,
final MediaDriverAdminThread mediaDriverAdminThread ) throws Exception
{
- this . transport = new UdpTransport ( this , destination . localData ( ) , mediaDriverAdminThre... | actually read control data on the control address |
<nb> public class Inspect extends Request {
Response r = Response . done ( result ) ;
r . addHeader ( STRING0 SINGLE
- + Parse . link ( v . _key , STRING1 ) + STRING2 SINGLE
+ + Parse . link ( v . _key , STRING1 ) + STRING3 SINGLE
+ RReader . link ( v . _key , STRING4 ) + STRING5 ) ;
return r ;
} | Remove an extraneous comma |
<nb> public class NoiseTest {
FastRandom sfr = new FastRandom ( seed ) ;
PerlinNoise pn = new PerlinNoise ( seed ) ;
- SimplexNoise sn = new SimplexNoise ( ) ;
+ SimplexNoise sn = new SimplexNoise ( seed ) ;
for ( int i = NUMBER0 ; i < warmUp ; i ++ ) {
double posX = pfr . nextDouble ( ) * NUMBER1 d ; | Tiny fix feed a seed value to SimplexNoise |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class StandardRuleXmlFormat {
} else if ( StringUti... | add the property defaultValue to param nodes |
<nb> public class CookieDecoder {
private final static String COMMA = STRING0 ;
- private boolean lenient ;
+ private final boolean lenient ;
COMMENT
COMMENT | Declare field final |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix Spelling in ReflectorLoader |
<nb> public class SuggestionAutoCompleteText extends MultiAutoCompleteTextView {
return ;
}
String text = getAutoSaveTextHelper ( ) . loadString ( this ) ;
- setText ( text ) ;
- setSelection ( text . length ( ) ) ;
+ if ( ! text . isEmpty ( ) ) {
+ setText ( text ) ;
+ setSelection ( text . length ( ) ... | never auto fill the empty string |
<nb> import NAMESPACE ;
COMMENT
public class RESTClientFactory implements StoreClientFactory {
+ public static final int SHUTDOWN_TIMEOUT = NUMBER0 ;
private RESTClientConfig config = null ;
private final StoreStats stats ;
private Logger logger = Logger . getLogger ( RESTClientFactory . class ) ;
<nb> ... | Incorporating review comments |
<nb>
package NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final cl... | Fix an NPE in Status |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ; | added javadoc headers |
<nb> public abstract class Repository extends RepositoryInfo {
return ;
}
if ( this . getTagList ( ) == null ) {
- throw new HistoryException ( STRING0 + this ) ;
+ throw new HistoryException ( STRING0 ) ;
}
Iterator < TagEntry > it = this . getTagList ( ) . descendingIterator ( ) ;
TagEntry lastTagEntr... | remove debugging leftover |
<nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF
synchronized ( myStubLock ) {
StubTree fileStub = derefStub ( ) ;
StubElement childStub = child . getStub ( ) ;
- if ( fileStub == null || childStub != null && fileStub . getRoot ( ) != childStub . getParentStub ( ) ) {
+ i... | avoid race condition when calling isValid during stub ast switching |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PsiMethodReferenceExpressionImpl extends PsiReferenceExpressionBase
@ nullable
@ override
public PsiType getFunctionalInt... | apply non wildcard parameterization for method refs |
<nb> static String errorMsg ( String source , int line , String s ) {
public static Object eval ( Object form ) throws Exception {
boolean createdLoader = false ;
- if ( ! LOADER . isBound ( ) )
+ if ( true ) SINGLE
{
Var . pushThreadBindings ( RT . map ( LOADER , RT . makeClassLoader ( ) ) ) ;
createdL... | made eval use ephemeral classloader in all cases |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class ZenCodingGenerator {
}
protected boolean isAllowedChar ( char c ) {
- return ( Character . isDigit ( c ) || Character . isLetter ( c ) || StringUtil . containsChar ( STRING0 , c ) ) ;
+ return Character . isDigit... | Remove redundant brackets |
<nb> public class OFieldTransformer extends OAbstractTransformer {
if ( db == null )
throw new OTransformException ( STRING0 ) ;
+ log ( OETLProcessor . LOG_LEVELS . DEBUG , STRING1 , doc ) ;
db . save ( doc ) ;
}
} | Added log on save |
<nb> public abstract class AbstractNCSARequestLog extends AbstractLifeCycle implement
if ( authentication instanceof Authentication . User )
buf . append ( ( ( Authentication . User ) authentication ) . getUserIdentity ( ) . getUserPrincipal ( ) . getName ( ) ) ;
else
- buf . append ( STRING0 ) ;
+ buf . appe... | Removed extra space in NCSA log |
<nb> public class SipUser {
}
private void setupUserProfile ( String username , String password , String realm , String phone ) {
- String fromURL = STRING0 + phone + STRING1 + phone + STRING2 + proxy + STRING3 ;
+ String fromURL = STRING0 + username + STRING1 + phone + STRING2 + proxy + STRING3 ;
userProfi... | display the username instead of the userid on the voice participant s window |
<nb> public class JavaVersionRule implements MethodRule {
AT_MOST {
@ override
protected boolean check ( ClassFileVersion current , ClassFileVersion enforced ) {
- return current . isAtLeast ( enforced ) ;
+ return current . isLessThan ( enforced ) || current . equals ( enforced ) ;
}
} ; | Fixed version rule |
<nb> public class SerializingCache < K , V > implements ICache < K , V >
FreeableMemory mem = serialize ( value ) ;
if ( mem == null )
return false ; SINGLE
- V oldValue = deserialize ( old ) ;
+
+ V oldValue ;
+ SINGLE
+ if ( ! old . reference ( ) )
+ return false ; SINGLE
+ try
+ {
+ oldValue ... | avoid seg faults during compaction |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ApplicationImpl extends ComponentManagerImpl implements Application
loadComponentRoamingTypes ( ) ;
+ HeavyProcessLatch... | r peter prevent index vfs flushes while the app is initializing |
<nb> public class PoiUIFilter implements SearchPoiTypeFilter , Comparable < PoiUIFilter >
public static void combineStandardPoiFilters ( Set < PoiUIFilter > filters , OsmandApplication app ) {
Set < PoiUIFilter > standardFilters = new TreeSet < > ( ) ;
for ( PoiUIFilter filter : filters ) {
- if ( filter . isSt... | combine with custom filter |
<nb> public final class StringUtil {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static CharSequence escapeCsv ( CharSequence value ) {
int length = checkNotNull ( value , STRING0 ) . length ( ) ;
<nb> public final class StringUtil {
} else {
boolean isNextCharDoubleQuote = isDouble... | Remove the condition which is always true when reached |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class DataSetTest extends ContextTestSupport {
protected SimpleDataSet dataSet = new SimpleDataSet ( NUMBER0 ) ;
- public void test ( ) throws Exception {
- MockEnd... | fixed unit test repoted by TC |
<nb> public class CommentUtils {
COMMENT
COMMENT
public static void displayHtmlComment ( TextView textView , String content , int maxImageSize ) {
- if ( textView == null )
+ if ( textView == null ) {
return ;
+ }
if ( content == null ) {
textView . setText ( null ) ;
<nb> public class CommentUtil... | Fixed bug that caused blank lines after reader comments |
<nb> public class SwitchDrawerItem extends BaseDrawerItem < SwitchDrawerItem > {
private CompoundButton . OnCheckedChangeListener checkedChangeListener = new CompoundButton . OnCheckedChangeListener ( ) {
@ override
public void onCheckedChanged ( CompoundButton buttonView , boolean isChecked ) {
+ checked = isC... | remember state of toggle and switch |
<nb> public class ZygoteInit {
private static void preloadClasses ( ) {
final VMRuntime runtime = VMRuntime . getRuntime ( ) ;
- InputStream is = ZygoteInit . class . getClassLoader ( ) . getResourceAsStream (
+ InputStream is = ClassLoader . getSystemClassLoader ( ) . getResourceAsStream (
PRELOADED_CLASSE... | Don t use bootstrap loader directly |
<nb> public class MapActivity extends AccessibleActivity implements IMapLocationListe
final GeoidAltitudeCorrection geo = app . getResourceManager ( ) . getGeoidAltitudeCorrection ( ) ;
if ( geo != null ) {
alt -= geo . getGeoidHeight ( l . getLatitude ( ) , l . getLongitude ( ) ) ;
- l . setAltitude ( alt ) ; ... | Fix altitude correction |
<nb> public class InformationSchemaServiceTest extends SQLTransportIntegrationTest {
STRING0 +
STRING1 +
STRING2 +
- STRING3 ) ;
- ensureYellow ( ) ;
+ STRING4 ) ;
+ ensureGreen ( ) ;
execUsingClient ( STRING5 ) ;
assertEquals ( NUMBER0 , response . rowCount ( ) ) ;
assertEquals ( STRING6 , response... | fix test flakyness in another one of many cases |
<nb> public class OTPServiceImpl implements OTPService . Iface {
LocationObservation . Builder builder = new LocationObservation . Builder ( ) . setCoordinate ( c ) ;
if ( req . isSetHeading ( ) ) builder . setHeading ( req . getHeading ( ) ) ;
- SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
StreetVertexIndexServic... | Add a comment |
<nb> public class BasicBSONObject extends LinkedHashMap < String , Object > implements BSO
return ( ( Number ) foo ) . longValue ( ) ;
}
-
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public double getDouble ( String key ) {
+ Object foo = get ( key ) ;
+ return ( ( Number ) f... | Added a method getDouble to BasicBSONObject java for easily fetching a double |
<nb> public class NewConnectionNavigationPage
ImageResource icon ,
NewConnectionContext input )
{
- super ( title , subTitle , STRING0 ,
+ super ( title , subTitle , STRING1 ,
icon , null , createPages ( input ) ) ;
}
<nb> public class NewConnectionNavigationPage
new ArrayList < WizardPage < NewConn... | tweak connection wizard names |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public class BootstrapAuthenticatorActivity extends SherlockAccountAuthenticator
setContentView ( layout . login_activity ) ;
+ Views . inject ( this ) ;
... | Adding injection to activities for some reason the injection doesnt work on base classes |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed typo in javadoc |
<nb> public class StreetLayer implements Serializable {
for ( int e = NUMBER0 ; e < edgeStore . nEdges ; e += NUMBER1 ) {
edge . seek ( e ) ;
SINGLE
- if ( edge . getLengthMm ( ) < NUMBER2 * NUMBER3 * NUMBER3 ) {
- spatialIndex . insert ( edge . getEnvelope ( ) , e ) ;
- }
+ SINGLE
+ spatialIndex . inse... | insert all edges into spatial index |
<nb> public abstract class AbstractInitCommand extends Command implements UserInterac
if ( oAuthSettings != null ) {
Constructor < ? extends OAuthGenerator > optionCallbackClassConstructor = oAuthSettings . value ( ) . getDeclaredConstructor ( settings . getClass ( ) ) ;
- OAuthGenerator oAuthGenerator = option... | Fixed missing variable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractQueryTestCase < QB extends AbstractQueryBuilder < QB > >
b . bind ( Environment . class ) . toInstance ( new... | Fix percolator tests |
<nb> package NAMESPACE ;
COMMENT
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class VimToolWindow extends JPanel
COMMENT
private VimToolWindow ( )
{
+ add ( new JLabel ( STRING0 ) ) ;
+
setSize ( NUMBER0 , NUMBER0 ) ;
} | Added message to resize tool window |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class EditContent extends Activity {
<nb> public class EditContent extends Activity {
EditContent . this ) ;
if ( mediaData == null ) {
+ SINGLE
+ Toast . makeText ( ... | Fix crash when adding image from Picasa |
<nb> public class LockBasedStorageManager implements StorageManager {
value = cache . get ( input ) ;
if ( value != null ) return WrappedValues . unescapeExceptionOrNull ( value ) ;
+ AssertionError error = null ;
try {
V typedValue = compute . invoke ( input ) ;
Object oldValue = cache . put ( input , Wr... | Preserve exception cause in LockBasedStorageManager |
<nb> package NAMESPACE ;
COMMENT
COMMENT
public class Polygon {
- private final float [ ] localVertices ;
+ private float [ ] localVertices ;
private float [ ] worldVertices ;
private float x , y ;
private float originX , originY ;
<nb> public class Polygon {
this . y = y ;
dirty = true ;
}
+ ... | Adding setter for polygon s localVertices which are no longer final |
<nb> public final class MasterWorkerInfo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public synchronized void setLastUpdatedTimeMs ( long lastUpdatedTimeMs ) {
mLastUpdatedTimeMs = lastUpdatedTimeMs ; | Fix javadoc format to compile |
<nb> public class VoiceInteractionService extends Service {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public final AlwaysOnHotwordDetector createAlwaysOnHotwordDetector (
- String keyphrase , String locale , AlwaysOnHotwordDetector . Callback callback ) {
- return createAl... | Remove the old API for creating hotword detector |
<nb> package NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
explanation = STRING0 +
STRING1 +
STRING2 ,
- category = JD... | Changed severity type on NonStaticInnerClass so that it activates in unit tests |
<nb> class CheckRequiresForConstructors implements HotSwapCompilerPass {
String name = root . getString ( ) ;
Scope . Var var = t . getScope ( ) . getVar ( name ) ;
- if ( var == null || var . isLocal ( ) || var . isExtern ( ) ) {
+ if ( var != null && ( var . isLocal ( ) || var . isExtern ( ) ) ) {
return ... | Make the check for missing goog requires stricter |
<nb> public abstract class ToolWindowHeader extends JPanel implements Disposable , UIS
toolWindow . getContentUI ( ) . showContextMenu ( comp , x , y , toolWindow . getPopupGroup ( ) , toolWindow . getContentManager ( ) . getSelectedContent ( ) ) ;
}
} ) ;
+ westPanel . addMouseListener ( new MouseAdapter ( ) {... | toolwindow should focus content when clicking on its header |
<nb> public class XsltBreakpointHandler extends XBreakpointHandler < XLineBreakpoint < XB
int offset = - NUMBER0 ;
final Document document = PsiDocumentManager . getInstance ( project ) . getDocument ( file ) ;
- if ( document != null && document . getLineCount ( ) > position . getLine ( ) ) {
+ if ( document... | Run to Cursor causes IOOBE at SegmentArray getSegmentStart |
<nb> public class MoviesCursorAdapter extends CursorAdapter {
String poster = cursor . getString ( MoviesQuery . POSTER ) ;
if ( ! TextUtils . isEmpty ( poster ) ) {
String posterPath = poster . substring ( NUMBER0 , poster . length ( ) - NUMBER1 ) + mSizeSpec ;
- mImageDownloader . downloadAndStore ( posterPat... | Do not cache movie posters for now reset if no poster |
<nb> public abstract class CodeInsightTestCase extends PsiTestCase {
final String extension = _extension == null ? fileType . getDefaultExtension ( ) : _extension ;
File dir = createTempDirectory ( ) ;
- final File tempFile = FileUtil . createTempFile ( dir , STRING0 , STRING1 + extension , true ) ;
+ final F... | avoid coincidental confusion CreateASVariableIntentionTest uses aaa field |
<nb> public abstract class BlockMetaBase {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static String tempPath ( StorageDir dir , long userId , long blockId ) {
return PathUtils . concatPath ( dir . getDirPath ( ) , userId , b... | Fix comments in tachyon worker block meta BlockMetaBase tempPath |
<nb> public interface ContextBind {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface ContextBind {
COMMENT
COMMENT
COMMENT
- public ClassLoader bind ( boolean usePrivilegedAction , ClassLoader originalClas... | Fix Javadoc errors |
<nb> public class DiscoveryClient implements LookupService {
@ inject ( optional = true )
private EventBus eventBus ;
- DiscoveryClient ( InstanceInfo myInfo , EurekaClientConfig config , EventBus eventBus ) {
+ public DiscoveryClient ( InstanceInfo myInfo , EurekaClientConfig config , EventBus eventBus ) {
... | Make DiscoveryClient constructor public so it can be created by a provider |
<nb> public class NotificationUsageStats {
SINGLE
SINGLE
private static final boolean ENABLE_AGGREGATED_IN_MEMORY_STATS = false ;
- private static final boolean ENABLE_SQLITE_LOG = true ;
+ private static final boolean ENABLE_SQLITE_LOG = false ;
private static final AggregatedStats [ ] EMPTY_AGGREGATED_S... | Disable SQLite stats DO NOT MERGE |
<nb>
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IndyDemo {
public static void timeReflection ( IndyDemo indyDemo ) throws Throwable {
long start = System . currentTimeMillis ( ) ;
Object [ ] scopes = { indyDem... | tidy up the benchmark to avoid errors |
<nb> public class RecyclerView extends ViewGroup {
final int parentBottom = getHeight ( ) - getPaddingBottom ( ) ;
final int childLeft = child . getLeft ( ) + rect . left ;
final int childTop = child . getTop ( ) + rect . top ;
- final int childRight = childLeft + rect . right ;
- final int childBottom = chil... | DO NOT MERGE Fix RecyclerView s child focus rect calculations |
<nb> public abstract class DeclarativeScope < VALUE_LOADER extends ValueManager > extend
}
protected final void loadScopeObjectProperties ( @ notnull ObjectValue value , @ notnull final AsyncResult < List < ? extends Variable > > result ) {
+ if ( valueManager . rejectIfObsolete ( result ) ) {
+ return ;
+ ... | don t load data for obsolete suspend context |
<nb> public class HumanoidRagdollPreset extends RagdollPreset {
entry = new LexiconEntry ( ) ;
entry . addSynonym ( STRING0 , NUMBER0 ) ;
entry . addSynonym ( STRING1 , NUMBER0 ) ;
+ entry . addSynonym ( STRING2 , NUMBER0 ) ;
entry . addSynonym ( STRING3 , NUMBER1 ) ;
entry . addSynonym ( STRING4 , NUMBER2 ... | Added shin to HumanoidRagdollPreset so that Jaime works better with the KinematicRagdollControl |
<nb> public class SSTableReader extends SSTable implements Comparable < SSTableReader >
assert openedFiles . get ( dataFileName ) == null ;
long start = System . currentTimeMillis ( ) ;
- SSTableReader sstable = new SSTableReader ( dataFileName , partitioner )
+ SSTableReader sstable = new SSTableReader ( dat... | re add missing semicolon to test fixing build |
<nb> public class TcpIpJoiner extends AbstractJoiner {
long joinStartTime = Clock . currentTimeMillis ( ) ;
Connection connection = null ;
- node . getFailedConnections ( ) . clear ( ) ;
while ( node . isActive ( ) && ! joined . get ( ) && ( Clock . currentTimeMillis ( ) - joinStartTime < maxJoinMillis ) ) { ... | Cleanup for split brain merge handling |
<nb> public class JNITableTest {
String TABLENAME = STRING0 ;
new File ( FILENAME ) . delete ( ) ;
- new File ( FILENAME + STRING1 ) . delete ( ) ;
SharedGroup group = new SharedGroup ( FILENAME ) ; | removed deletion of |
<nb> public class TextInputLayout extends LinearLayout {
mCollapsingTextHelper . onLayout ( changed , left , top , right , bottom ) ;
if ( mEditText != null ) {
- final int l = mEditText . getLeft ( ) + mEditText . getPaddingLeft ( ) ;
- final int r = mEditText . getRight ( ) - mEditText . getPaddingRight ( )... | Take compound drawables into account for TextInputLayout |
<nb> abstract class StaticTypeCheckingSupport {
for ( int i = NUMBER0 ; i < o1ps . length && allEqual ; i ++ ) {
allEqual = o1ps [ i ] . getType ( ) . equals ( o2ps [ i ] . getType ( ) ) ;
}
- if ( allEqual ) return NUMBER0 ;
+ if ( allEqual ) {
+ if ( o1 instanceof ExtensionMethodNode && o2 instanceof Exte... | Fixed method sorting when methods are of type ExtensionMethodNode |
<nb> public interface Chart {
public void setDataAnimationListener ( ChartAnimationListener animationListener ) ;
+ public void setViewportAnimationListener ( ChartAnimationListener animationListener ) ;
+
public void callTouchListener ( SelectedValue selectedValue ) ;
public boolean isInteractive ( ) ;... | Added method for setting viewportAnimationListener listener called when viewport is setting with animation |
<nb> public class ChatRoomMemberJabberImpl
@ override
public PresenceStatus getPresenceStatus ( )
{
- SINGLE
+ SINGLE
return ( ( ProtocolProviderServiceJabberImpl ) getProtocolProvider ( ) )
. getJabberStatusEnum ( ) . getStatus ( JabberStatusEnum . AVAILABLE ) ;
} | Added TODO for implementing accurate Jabber chat room member presence |
<nb> import NAMESPACE ;
COMMENT
public class PackageIconLoader extends SimpleLoader {
@ override
- public Future < BitmapInfo > loadBitmap ( final Ion ion , final String key , final String uri , int resizeWidth , int resizeHeight ) {
+ public Future < BitmapInfo > loadBitmap ( final Ion ion , final String key... | fix up broken overrides |
<nb> public final class Mp4Util {
}
}
- int limit = endOffset - NUMBER0 ;
+ int limit = endOffset - NUMBER1 ;
SINGLE
SINGLE
SINGLE | Fix off by one bug preventing NAL unit detection at the limit |
<nb> public class AjpProcessor < S > extends AbstractProcessor < S > {
}
case NB_READ_INTEREST : {
if ( ! endOfStream ) {
- registerForEvent ( true , false ) ;
+ socketWrapper . regsiterForEvent ( true , false ) ;
}
break ;
}
<nb> public class AjpProcessor < S > extends AbstractProcessor < S > {
req... | Replace registerForEvent with equivalent call that makes registerForEvent unused for AJP |
<nb> public class HttpObjectAggregatorTest {
assertEquals ( HttpResponseStatus . REQUEST_ENTITY_TOO_LARGE , response . getStatus ( ) ) ;
assertEquals ( STRING0 , response . headers ( ) . get ( Names . CONTENT_LENGTH ) ) ;
assertFalse ( embedder . isOpen ( ) ) ;
-
- HttpContent chunk1 = new DefaultHttpContent ... | Fix another leak in HttpObjectAggregatorTest by removing redundant code |
<nb> public class Timing {
return elapsed ;
}
+ COMMENT
public String toSecondsString ( ) {
return toSecondsString ( report ( ) ) ;
}
<nb> public class Timing {
return elapsed ;
}
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add javadoc for method |
<nb> public class TextServicesManagerService extends ITextServicesManager . Stub {
Slog . d ( TAG , STRING0 ) ;
}
synchronized ( mSpellCheckerMap ) {
+ final ArrayList < SpellCheckerBindGroup > removeList =
+ new ArrayList < SpellCheckerBindGroup > ( ) ;
for ( SpellCheckerBindGroup group : mSpellCheckerBind... | Fix ConcurrentModificationException in TextServicesManagerService |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public interface OneWireBindingProvider {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public class OneWireConfiguration implements ManagedSe... | added author tag |
<nb> abstract class PoolBase
return lastConnectionFailure . getAndSet ( null ) ;
}
- boolean isAutoCommit ( )
- {
- return isAutoCommit ;
- }
-
public DataSource getUnwrappedDataSource ( )
{
return dataSource ; | removed unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RestClusterStateAction extends BaseRestHandler {
try {
XContentBuilder builder = RestXContentBuilder . restContentBuilder (... | add cluster name back to cluster state API |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class H2QueryRunner
public H2QueryRunner ( )
{
- Logging . initialize ( ) ;
-
handle = DBI . open ( STRING0 + System . na... | Remove logging initialization from H2QueryRunner |
<nb> public final class PhoneCapabilities {
COMMENT
public static final int DISCONNECT_FROM_CONFERENCE = NUMBER0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final int GENERIC_CONFERENCE = NUMBER1 ;
+
public static final int ALL = HOLD | S... | Add GENERIC_CONFERENCE to phone capabilities |
<nb> public class ProducteevInvoker {
throws IOException , ApiServiceException {
try {
String request = createFetchUrl ( method , getParameters ) ;
+ System . err . println ( STRING0 + request ) ;
String response = null ;
try {
response = restClient . get ( request ) ;
<nb> public class ProducteevInvoke... | debug added some debugging to PDV logic |
<nb> public class SourceFormatter {
if ( ( includeFileName . endsWith ( STRING0 ) ||
includeFileName . endsWith ( STRING1 ) ) &&
- ! includeFileNames . contains ( includeFileName ) &&
- ! includeFileName . contains ( STRING2 ) ) {
+ ! includeFileName . endsWith ( STRING2 ) &&
+ ! includeFileName . endsWit... | SourceFormatter improve logic for finding unused imports in jsp jspf |
<nb> public class AntFileImpl extends LightPsiFileBase implements AntFile {
myEpilogueElement = new AntOuterProjectElement ( this , projectEnd , fileText . substring ( projectEnd ) ) ;
}
final AntProjectImpl project = new AntProjectImpl ( this , tag , createProjectDefinition ( ) ) ;
- project . loadPredefinedPr... | crash proofing the case when project name contains property reference |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MyApplication extends Application {
private AtomicInteger counter ;
@ override
+ public Map < String , Object > getProperties ( ) {
+ return... | Fix unmapped exceptions from Jersey in WLS |
<nb> public class TaskListActivity extends AstridActivity implements MainMenuListener
if ( ( requestCode == FilterListFragment . REQUEST_NEW_LIST || requestCode == FilterListFragment . REQUEST_NEW_FILTER ) && resultCode == Activity . RESULT_OK ) {
Filter newList = data . getParcelableExtra ( TagSettingsActivity . T... | Fixed bug where the displayed list wouldn t fully switch when creating a new list |
<nb> public class BeanArchiveProcessor implements DeploymentUnitProcessor {
final boolean isRootBda = resourceRoot . equals ( deploymentResourceRoot ) ;
+ ResourceRoot indexResourceRoot = resourceRoot ;
if ( resourceRoot == deploymentResourceRoot && classesResourceRoot != null ) {
SINGLE
- resourceRoot = ... | Fix issue with implicit bean archives |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.