diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class AndroidAssetManager extends DesktopAssetManager {
logger . fine ( STRING0 ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ override
- public Texture loadTexture ( TextureKey key ) {
- Texture tex = ( Texture ) loadAsset ( key ) ;
-
- SINGLE
- SINGLE
- SINGL... | Removed some code that was forcing nearest filtering for textures filtering on android |
<nb> public class OServerAdmin {
sessionToken = network . readBytes ( ) ;
if ( sessionToken . length == NUMBER0 ) {
sessionToken = null ;
+ } else {
network . getServiceThread ( ) . setTokenBased ( true ) ;
}
storage . setSessionId ( network . getServerURL ( ) , sessionId , sessionToken ) ;
<nb> public ... | fixed wrong token managment for network remote push |
<nb> public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
if ( SCOPE_SINGLETON . equals ( scopeName ) || SCOPE_PROTOTYPE . equals ( scopeName ) ) {
throw new IllegalArgumentException ( STRING0 ) ;
}
- this . scopes . put ( scopeName , scope ) ;
+ Scope previous = this . scopes . pu... | Improve logging of registerScope |
<nb> public class ParamsPanel extends AbstractPanel {
}
protected HtmlParameterStats getSelectedParam ( ) {
+ int selectedRow = this . getParamsTable ( ) . getSelectedRow ( ) ;
+ if ( selectedRow == - NUMBER0 ) {
+ return null ;
+ }
SINGLE
- String type = ( String ) this . getParamsTable ( ) . getVa... | Fix IndexOutOfBoundsException in ParamsPanel when showing context menu |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix a javadoc typo |
<nb> final class WindowState implements WindowManagerPolicy . WindowState {
SINGLE
Gravity . applyDisplay ( mAttrs . gravity , df , frame ) ;
- SINGLE
+ SINGLE
SINGLE
- if ( overscan . left < frame . left ) overscan . left = frame . left ;
- if ( overscan . top < frame . top ) overscan . top = frame . t... | Don t limit the overscan frame to the window frame |
<nb> public class FastModelTest extends FlowTestCase {
startTime = System . currentTimeMillis ( ) ;
list = SQLite . select ( ) . from ( FastModel . class ) . queryList ( ) ;
-
System . out . println ( STRING0 + ( System . currentTimeMillis ( ) - startTime ) ) ;
+ startTime = System . currentTimeMillis ( )... | added query list in the fold |
<nb> public class TsvCsvImporter implements ReaderImporter , StreamImporter {
CSVParser parser = ( sep != null && sep . length ( ) > NUMBER0 && splitIntoColumns ) ?
new CSVParser ( sep . toCharArray ( ) [ NUMBER0 ] , SINGLE
CSVParser . DEFAULT_QUOTE_CHARACTER ,
- CSVParser . DEFAULT_ESCAPE_CHARACTER ,
+ ( cha... | Importing attached file strips backslashes |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
public class ClassRulesTest {
public static class Counter extends ExternalResource {
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
public ... | Remove outdated documentation |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
- public interface OfflinePlayer extends ServerOperator {
+ public interface OfflinePlayer extends ServerOperator , AnimalTamer {
COMMENT
COMMENT
COMMENT | Made OfflinePlayer AnimalTamer |
<nb> public class HttpRequestTest extends ServerTestCase {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ test
+ public void acceptJson ( ) throws Exception {
+ final AtomicReference < String > header = new AtomicReference < String > ( ) ;
+ String url = setUp ( new RequestHandl... | Add unit test for HttpRequest acceptJson |
<nb> import NAMESPACE ;
@ jsontypeinfo ( use = JsonTypeInfo . Id . NAME , include = JsonTypeInfo . As . WRAPPER_OBJECT )
@ jsonsubtypes ( value = {
@ jsonsubtypes.type ( value = CnnToFeedForwardPreProcessor . class , name = STRING0 ) ,
+ @ jsonsubtypes.type ( value = CnnToRnnPreProcessor . class , name = STRING... | add json subtypes for cnn rnn and rnn cnn preprocessors |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class ArrayCreationExpressionPredicate implements PsiElementPredica... | prevent IOE on array initializer without array type e g Map String String m |
<nb> import NAMESPACE ;
COMMENT
@ xmlrootelement ( name = STRING0 )
@ xmlaccessortype ( XmlAccessType . FIELD )
- public class WireTapDefinition < Type extends ProcessorDefinition < Type > > extends NoOutputDefinition < Type > implements ExecutorServiceAwareDefinition < WireTapDefinition < Type > > {
+ public... | Fixed the generic model type of WireTap EIP so that it s backwards compatible with older releases |
<nb> public class RedissonSetTest extends BaseTest {
set . add ( NUMBER0 ) ;
set . add ( NUMBER1 ) ;
- assertThat ( set . removeRandom ( ) ) . isIn ( NUMBER2 , NUMBER0 , NUMBER1 ) ;
- assertThat ( set . removeRandom ( ) ) . isIn ( NUMBER2 , NUMBER0 , NUMBER1 ) ;
- assertThat ( set . removeRandom ( ) ) . isI... | Fix more copypasta it s a pasta kind of day |
<nb> public class MockSubscriptionDaoMemory extends MockEntityDaoBase < SubscriptionBun
try {
subscription . rebuildTransitions ( getEventsForSubscription ( in . getId ( ) , context ) , catalogService . getFullCatalog ( context ) ) ;
} catch ( CatalogApiException e ) {
- e . printStackTrace ( ) ;
+ log . warn... | Fixes log message Pierre s code review |
<nb> public abstract class AbstractMultiTestRunner extends Runner implements Filterab
COMMENT
COMMENT
protected List < ? extends Class < ? > > loadTargetClasses ( ) {
- return Arrays . asList ( target ) ;
+ return Collections . singletonList ( target ) ;
}
}
} | fixed unchecked warning |
<nb> public class PatternValidationInstrumenter extends ClassAdapter implements Instr
if ( name . equals ( ASSERTIONS_DISABLED_NAME ) ) {
myHasAssertions = true ;
} else if ( name . equals ( PATTERN_CACHE_NAME ) ) {
- throw new InstrumentationException ( STRING0 + myClassName ) ;
+ throw new InstrumentationEx... | Improved error message |
<nb> public class HgCheckoutProvider implements CheckoutProvider {
parseLine = parseLine . substring ( eqIdx + NUMBER0 ) . trim ( ) ; SINGLE
try {
final URI uri = new URI ( parseLine ) ;
- final String urlWithoutAuthData = uri . toString ( ) . replace ( uri . getUserInfo ( ) + STRING0 , STRING1 ) ;
+ final St... | HgCheckoutProvider cleanupAuthDataFromHgrc clean only password leave username as is |
<nb> public class DataFactories
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static Header . Factory defaultFormatNodeFileHeader ( )
{
<nb> public class DataFactories
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public static Header . Factory defaultFormatRelationshi... | Fix javadoc compilation error |
<nb> static public class CompilerException extends Exception {
}
static public Var isMacro ( Object op ) throws Exception {
+ SINGLE
+ if ( op instanceof Symbol && referenceLocal ( ( Symbol ) op ) != null )
+ return null ;
if ( op instanceof Symbol || op instanceof Var )
{
Var v = ( op instanceof Var ... | locals shadow macros |
<nb> public class MediaDriver implements AutoCloseable
private final File adminDirFile ;
private final File dataDirFile ;
- private final TermBuffersFactory termBuffersFactory ;
-
private final Receiver receiver ;
private final Sender sender ;
private final MediaConductor conductor ;
<nb> public class... | Removed unused field |
<nb> public class SpongeGameRegistry implements GameRegistry {
addTextColor ( EnumChatFormatting . LIGHT_PURPLE , new Color ( NUMBER0 ) ) ;
addTextColor ( EnumChatFormatting . YELLOW , new Color ( NUMBER1 ) ) ;
addTextColor ( EnumChatFormatting . WHITE , Color . WHITE ) ;
+ addTextColor ( EnumChatFormatting . R... | Add missing mapping for TextColors RESET in SpongeGameRegistry |
<nb> public class EhcacheTicketRegistryConfiguration {
bean . setMaxEntriesLocalDisk ( casProperties . getTicket ( ) . getRegistry ( ) . getEhcache ( ) . getMaxElementsOnDisk ( ) ) ;
bean . setMemoryStoreEvictionPolicy ( casProperties . getTicket ( ) . getRegistry ( ) . getEhcache ( ) . getMemoryStoreEvictionPolicy... | Fixed test cases |
<nb> public class MoveClassTest extends CodeInsightTestCase {
String rootAfter = root + STRING0 ;
VirtualFile rootDir2 = LocalFileSystem . getInstance ( ) . findFileByPath ( rootAfter . replace ( File . separatorChar , STRING1 ) ) ;
myProject . getComponent ( PostprocessReformattingAspect . class ) . doPostponedF... | fixing extract include test |
<nb> public abstract class ChooseLibrariesDialogBase extends DialogWrapper {
myBuilder . initRootNode ( ) ;
myTree . setDragEnabled ( false ) ;
- myTree . setRowHeight ( PlatformIcons . CLASS_ICON . getIconHeight ( ) ) ;
myTree . setShowsRootHandles ( true ) ;
UIUtil . setLineStyleAngled ( myTree ) ; | use standard item height |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EtcdRoutePolicy extends RoutePolicySupport implements ResponsePromi
}
@ override
- public void onExchangeBegin ( Route ... | Move RoutePolicy initialization logic in onStart |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClassFileViewProvider extends SingleRootFileViewProvider {
@ override
protected PsiFile creatFile ( final Project projec... | allow cls PSI for all files outside sources |
<nb> public class TextEditingTarget implements EditingTarget
void onReflowComment ( )
{
if ( fileType_ . isCpp ( ) )
- doReflowComment ( STRING0 ) ;
+ {
+ String currentLine = docDisplay_ . getLine (
+ docDisplay_ . getCursorPosition ( ) . getRow ( ) ) ;
+ if ( currentLine . startsWith ( STRING1 ) )
+... | handle reflow for prefaced doxygen comments |
<nb> public class FeedlistAdapter extends BaseAdapter {
+ DateUtils . getRelativeTimeSpanString (
feed . getItemAtIndex ( true , NUMBER0 ) . getPubDate ( ) . getTime ( ) ,
System . currentTimeMillis ( ) , NUMBER0 , NUMBER0 ) ) ;
+ } else {
+ holder . lastUpdate . setText ( STRING0 ) ;
}
}
holder . numbe... | Feedlist displayed wrong value in last update if feed had no episodes |
<nb> public class DateHistogramTests extends ElasticsearchIntegrationTest {
@ test
public void unmapped ( ) throws Exception {
- client ( ) . admin ( ) . cluster ( ) . prepareHealth ( STRING0 ) . setWaitForYellowStatus ( ) . execute ( ) . actionGet ( ) ;
+ client ( ) . admin ( ) . cluster ( ) . prepareHealth ... | added more wait for green status on aggs tests |
<nb> public class GrabAnnotationTransformation extends ClassCodeVisitorSupport implem
private static final List < String > GRAB_OPTIONAL = Arrays . asList ( STRING0 , STRING1 , STRING2 , STRING3 ) ;
private static final Collection < String > GRAB_ALL = DefaultGroovyMethods . plus ( GRAB_REQUIRED , GRAB_OPTIONAL ) ;... | Support changing attribute on Grab annotation refine attribute regex |
<nb> public class KeyguardTransportControlView extends FrameLayout {
mAudioManager . unregisterRemoteController ( mRemoteController ) ;
KeyguardUpdateMonitor . getInstance ( mContext ) . removeCallback ( mUpdateMonitor ) ;
mUserSeeking = false ;
+ removeCallbacks ( mUpdateSeekBars ) ;
}
void setBadgeIcon ... | Fix memory leak and slowness in keyguard |
<nb> public final class CrashReportDataFactory {
SINGLE
SINGLE
SINGLE
- if ( prefs . getBoolean ( ACRA . PREF_ENABLE_SYSTEM_LOGS , true )
- && ( pm . hasPermission ( Manifest . permission . READ_LOGS ) )
- || Compatibility . getAPILevel ( ) >= NUMBER0 ) {
+ final boolean hasReadLogsPermission = pm . hasPe... | Fix check for whether to gather read logs |
<nb> public class DecisionTreeTransformTest {
@ test
public void testToHumanReadableConfig ( ) {
- DecisionTreeModel tree = makeTree ( ) ;
- String result = tree . toHumanReadableTransform ( ) ;
- log . info ( result ) ;
- String tokens [ ] = result . split ( STRING0 ) ;
- assertEquals ( NUMBER0 , token... | Fix more indents |
<nb> public class HadoopStoreBuilder {
long size = sizeOfPath ( tempFs , inputPath ) ;
logger . info ( STRING0 + size + STRING1
+ storeDef . getReplicationFactor ( ) + STRING2
- + cluster . getNumberOfNodes ( ) + STRING3 + chunkSizeBytes ) ;
+ + cluster . getNumberOfNodes ( ) + STRING4
+ + cluster . getNumb... | Print number of partitions useful for debugging |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileCacheBuilder {
String path = System . getenv ( STRING0 ) ;
if ( path == null ) {
SINGLE
- path = FileUtils . getUserDirectoryPath ( ) + File . separator + STRING1 ;
+ path = System... | Remove coupling on commons io FileUtils |
<nb> public class PhoneWindowManager implements WindowManagerPolicy {
PowerManager pm = ( PowerManager ) context . getSystemService ( Context . POWER_SERVICE ) ;
mBroadcastWakeLock = pm . newWakeLock ( PowerManager . PARTIAL_WAKE_LOCK ,
STRING0 ) ;
- mDockWakeLock = pm . newWakeLock ( PowerManager . FULL_WAKE_L... | Do not turn off screen immediately after undocking |
<nb> public class Wallet implements Serializable {
COMMENT
COMMENT
synchronized void confirmSend ( Transaction tx ) {
- assert ! pending . containsKey ( tx ) : STRING0 ;
+ assert ! pending . containsKey ( tx . getHash ( ) ) : STRING0 ;
log . info ( STRING1 , tx . getHashAsString ( ) ) ;
SINGLE
for ( Tra... | Fix an assertion in Wallet to use the correct type |
<nb> public class WorldEdit extends Plugin {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class WorldEdit extends Plugin {
return version ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public HMWorldEditListener getListener ( ) {
+ return listener ... | Fixed WorldEdit bridge |
<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable {
COMMENT
VOID ,
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ LIGHTNING ,
+ COMMENT
COMMENT
COMMENT
COMMENT | Added LIGHTNING as a possible source of damage |
<nb> public final class Geofence implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | DO NOT MERGE clarify Geofence createCircle param ranges |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DomImplUtil {
}
return ContainerUtil . findAll ( subTags , new Condition < XmlTag > ( ) {
public boolean value ( final X... | don t create dom elements for totally malformed tags like |
<nb> import NAMESPACE ;
import NAMESPACE ;
public class SetColumnNames extends Request {
+
+
protected final H2OHexKey _tgtKey = new H2OHexKey ( STRING0 ) ;
- protected final H2OHexKey _srcKey = new H2OHexKey ( STRING1 ) ;
+
+ private class HeaderKey extends H2OHexKey {
+ public HeaderKey ( ) { supe... | update set column names functionality to throw an error if number of columns in source and target do not match |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class TransactionSubsystemAdd extends AbstractSubsystemAdd <... | Fix txn subsystem |
<nb> public class XsltBreakpointHandler extends XBreakpointHandler < XLineBreakpoint < XB
final Project project = myXsltDebugProcess . getSession ( ) . getProject ( ) ;
final String fileURL = getFileURL ( file ) ;
final int lineNumber = getActualLineNumber ( breakpoint , project ) ;
+ if ( lineNumber == - NUMBE... | breakpoint on closing XML tag causes AE at BreakpointManagerImpl setBreakpoint |
<nb> public class TTSServiceMacOS implements TTSService {
COMMENT
public synchronized void say ( String text , String voiceName ) {
- String command = STRING0 + ( voiceName != null ? STRING1 + voiceName + STRING2 : STRING3 ) + text ;
+ String command = STRING0 + ( voiceName != null ? STRING1 + voiceName + STR... | fixed bug which prevented hyphens to be used in TTS on Mac |
<nb> public class KeyValuePairs
long size = INSTANCE_SIZE ;
size += keyBlockBuilder . getRetainedSizeInBytes ( ) ;
size += valueBlockBuilder . getRetainedSizeInBytes ( ) ;
- size += keySet . getEstimatedSize ( ) ;
+ size += keySet . getRetainedSizeInBytes ( ) ;
return size ;
}
<nb> public class TypedS... | Rename getEstimatedSize to be more clear |
<nb> public class Preferences {
}
}
+ static public File getPreferencesFile ( ) {
+ return preferencesFile ;
+ }
+
SINGLE
<nb> public class Preferences {
static protected void setSketchbookPath ( String path ) {
set ( STRING0 , path ) ; SINGLE
}
- }
+ }
<nb> public class PreferencesFra... | Fix preferences file path in preferences window |
<nb> public class SpringBatchEndpoint extends DefaultEndpoint {
private String jobName ;
@ uriparam
- private Boolean jobFromHeader ;
+ private boolean jobFromHeader ;
COMMENT
COMMENT
<nb> public class SpringBatchEndpoint extends DefaultEndpoint {
if ( jobLauncher == null ) {
jobLauncher = resolve... | Fix option jobFromHeader data type that was causing exception to be thrown if used |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TinkerIndex < T extends Element > implements Index < T > , Serializable {
if ( null == set )
return new WrappingCloseableSequence < T > ( new ... | pushed concurrent modification bug found in TinkerGraph indices |
<nb> public class XmppRobustConnectionTest extends CamelTestSupport {
@ test
public void testXmppChatWithRobustConnection ( ) throws Exception {
+ SINGLE
+ if ( isPlatform ( STRING0 ) || isPlatform ( STRING1 ) ) {
+ return ;
+ }
+
MockEndpoint consumerEndpoint = context . getEndpoint ( STRING2 , MockE... | Skip test on some platforms |
<nb> public class MysqlTestingHelper {
dbi . withHandle ( new HandleCallback < Void > ( ) {
@ override
public Void withHandle ( final Handle handle ) throws Exception {
- log . info ( STRING0 + ddl ) ;
+ log . debug ( STRING0 + ddl ) ;
handle . createScript ( ddl ) . execute ( ) ;
return null ;
} | reduce verbosity of MysqlTestingHelper |
<nb> public class WindowManagerService extends IWindowManager . Stub
STRING0 + win . mRemoved + STRING1 + win . isVisibleLw ( ) +
STRING2 + win . mHasSurface +
STRING3 + win . mWinAnimator . mDrawState ) ;
- if ( win . mRemoved || ! win . mHasSurface ) {
- SINGLE
+ if ( win . mRemoved || ! win . mHasSurface... | Remove window from mWaitingForDrawn when policy hidden |
<nb> public class QueryBuilder < T > {
return this ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public WhereCondition or ( WhereCondition cond1 , WhereCondition cond2 , WhereCondition . . . condMore ) {
return combineWhereConditions ( STRING0 , cond1 , cond2 , condMore ) ;
}
+ COMMENT... | added javaDoc for or and and |
<nb> public class CommandFailureException extends MongoException {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public CommandFailureException ( CommandResult commandResult ) {
super ( ServerError . getCode ( commandResult ) , commandResult . toString ( ) ) ;
this . commandResult = command... | Deprecated CommandFailureException constructor and getCommandResult method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed obsolete imports |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class WrappingExecutorService implements ExecutorService {
try {
wrapped . call ( ) ;
} catch ( Exception e ) {
- Throw... | Inline remaining usages of Throwables propagate |
<nb> class PublicationImagePadding4 extends PublicationImageStatusFields
COMMENT
public class PublicationImage
extends PublicationImagePadding4
- implements AutoCloseable , NakMessageSender , DriverManagedResource
+ implements NakMessageSender , DriverManagedResource
{
public enum Status
{ | Java Remove unneeded AutoClosable interface from PublicationImage |
<nb> public abstract class LoadBalancerSupport extends ServiceSupport implements Load
protected void doStop ( ) throws Exception {
ServiceHelper . stopServices ( processors ) ;
+ }
+
+ @ override
+ protected void doShutdown ( ) throws Exception {
+ ServiceHelper . stopAndShutdownServices ( processors ) ... | Load balancer should only clear processors on shutdown |
<nb> public class MessageTypeFilter extends FlexiblePacketTypeFilter < Message > {
public static final PacketFilter GROUPCHAT = new MessageTypeFilter ( Type . groupchat ) ;
public static final PacketFilter HEADLINE = new MessageTypeFilter ( Type . headline ) ;
public static final PacketFilter ERROR = new MessageT... | Add MessageTypeFilter NORMAL_OR_CHAT |
<nb> public final class FileUtils {
COMMENT
COMMENT
public static boolean isPathWithinSubtree ( Path path , Path subtree ) {
- while ( path != null ) {
+ return isPathWithinSubtree ( path , subtree , subtree . depth ( ) ) ;
+ }
+
+ private static boolean isPathWithinSubtree ( Path path , Path subtree , ... | Improve FileUtils isPathWithinSubtree Rajesh Balamohan reviewed by Sergey Shelukhin |
<nb> public class DataSourceTestCase extends AbstractCliTestBase {
SINGLE
cli . sendLine ( STRING0 + profileNames [ NUMBER0 ] +
- STRING1 ) ;
+ STRING2 ) ;
SINGLE
cli . sendLine ( STRING3 + profileNames [ NUMBER0 ] + STRING4 ) ; | fixed xa data source add command test by adding new required xa datasource properties argument |
<nb> public class StringDescription implements Description {
public StringDescription ( StringBuffer buffer ) {
this . buffer = buffer ;
}
+
+ public static String toString ( SelfDescribing selfDescribing ) {
+ StringDescription description = new StringDescription ( ) ;
+ selfDescribing . describeTo ( des... | Added static utility function for returning description of a SelfDescribing object as a String |
<nb> public class HAManager {
} ) ;
vertx . setContext ( ctx ) ;
try {
- if ( ! latch . await ( NUMBER0 , TimeUnit . SECONDS ) ) {
+ if ( ! latch . await ( NUMBER1 , TimeUnit . SECONDS ) ) {
throw new VertxException ( STRING0 ) ;
}
} catch ( InterruptedException e ) {
<nb> public class HATest extends ... | changing timers for CI |
<nb> public class TemporaryJobs extends ExternalResource {
public TemporaryJob deploy ( final Job job , final List < String > hosts ,
final Set < String > waitPorts ) {
if ( ! started ) {
- fail ( STRING0 ) ;
+ fail ( STRING1
+ + STRING2 ) ;
}
if ( hosts . isEmpty ( ) ) { | helios testing Improve error message |
<nb> public class SgSyncAdapter extends AbstractThreadedSyncAdapter {
return ;
}
+ if ( ! isTimeForSync ( context , System . currentTimeMillis ( ) ) ) {
+ return ;
+ }
+
SgSyncAdapter . requestSyncIfConnected ( context , SyncType . DELTA , NUMBER0 ) ;
} | Do not even schedule a sync if time is not right again |
<nb> public class ZipUtilTest {
File specialFile = new File ( srcDir , STRING0 ) ;
FileUtils . writeStringToFile ( specialFile , STRING1 ) ;
- zipFile = zipUtil . zip ( srcDir , temporaryFolder . newFolder ( ) , Deflater . NO_COMPRESSION ) ;
+ zipFile = zipUtil . zip ( srcDir , temporaryFolder . newFile ( ) ,... | Fixed a failing test |
<nb> public class CometdAtmosphereInterceptor implements AtmosphereInterceptor {
@ override
public void configure ( AtmosphereConfig config ) {
+ if ( config . getServletContext ( ) . getServerInfo ( ) . contains ( STRING0 ) ) {
+ config . framework ( ) . setAsyncSupport ( new JettyAsyncSupport (
+ config )... | Move custom jetty async support to interceptor |
<nb> public class StanfordCoreNLPServer implements Runnable {
}
String text = IOUtils . slurpReader ( IOUtils . encodedInputStreamReader ( httpExchange . getRequestBody ( ) , encoding ) ) ;
+
+
+ SINGLE
+ text = text . replaceAll ( STRING0 , STRING1 ) ;
+ text = text . replaceAll ( STRING2 , STRING3 ) ;... | Fixed processing of POST payload before decoding the URL corenlpserver |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class VideoEditorImpl implements VideoEditor {
}
}
+ FileOutputStream stream = null ;
try {
- FileOutputStream stream = new FileOutputStream ( mProjectPath + STRING0
-... | generateProjectThumbnail can fail to close output stream |
<nb> public class CliPeon extends GuiceRunnable
)
) ;
injector . getInstance ( ExecutorLifecycle . class ) . join ( ) ;
+ SINGLE
+ lifecycle . stop ( ) ;
}
catch ( Throwable t ) {
log . error ( t , STRING0 ) ; | explicitly call lifecycle stop |
<nb> public class AppWindowAnimator {
animation = sDummyAnimation ;
animInitialized = false ;
}
+ hasTransformation = true ;
+ transformation . clear ( ) ;
+ transformation . setAlpha ( mAppToken . reportedVisible ? NUMBER0 : NUMBER1 ) ;
}
public void clearAnimation ( ) {
<nb> public class AppWindow... | Fix flashy transition in QuickContacts |
<nb> public class ContextService extends ResourceBase implements Serializable {
sb . append ( STRING0 ) ;
sb . append ( displayname ) ;
}
+ if ( serviceinterface != null ) {
+ sb . append ( STRING1 ) ;
+ sb . append ( serviceinterface ) ;
+ }
if ( icon != null ) {
sb . append ( STRING2 ) ;
sb . appe... | Use the interface rather than the type which is apparently null here |
<nb> public class TestParseTreeMatcher extends BaseTest {
}
@ test
+ public void testHiddenTokensNotSeenByTreePatternParser ( ) throws Exception {
+ String grammar =
+ STRING0 +
+ STRING1 +
+ STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 ;
+ boolean ok =
+ rawGenerateAndBuildRecognizer ( STRING6... | add test for hidden tokens |
<nb> public class PerformanceWatcher implements ApplicationComponent {
private static void dumpCallStack ( final ThreadInfo info , final Writer f , final StackTraceElement [ ] stackTraceElements ) {
try {
- StringBuilder sb = new StringBuilder ( STRING0 + info . getThreadName ( ) + STRING0 +
- STRING1 + info ... | put fictive tid and nid in order for IDEA parser to split into threads |
<nb> public class StreamTransferTaskTest extends SchemaLoader
{
List < Range < Token > > ranges = new ArrayList < > ( ) ;
ranges . add ( new Range < > ( sstable . first . getToken ( ) , sstable . last . getToken ( ) ) ) ;
- task . addTransferFile ( sstable , NUMBER0 , sstable . getPositionsForRanges ( ranges ) ... | Fix test build |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class NodeChildren extends GPathResult {
final Iterator iter = nodeIterator ( ) ;
while ( iter . hasNext ( ) ) {
- ( ( Node ) iter . next ( ) ) . build ( builder , this . namespaceMap , th... | Fix problem when the result of a GPath filter operation is used in a builder |
<nb> public class IosAssetManager extends DesktopAssetManager {
logger . fine ( STRING0 ) ;
}
-
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ override
- public Texture loadTexture ( TextureKey key ) {
- Texture tex = ( Texture ) loadAsset ( key ) ;
-
- SINGLE
- SINGLE
- SINGLE
... | Remove nearest filtering override old code |
<nb> public class RadToolBar extends RadContainer {
public boolean isIndexed ( ) {
return true ;
}
+
+ @ override
+ public void addSnapshotComponent ( final JComponent parent , final JComponent child ,
+ final RadContainer container , final RadComponent component ) {
+ container . addComponent ( compone... | SnapShooter supports JToolbar |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServletTester extends ContainerLifeCycle
{
return _connector . getResponses ( request ) ;
}
-
+
+ public String getResponses ( String ... | ServletTester calls LocalConnector method with hardcoded timeout |
<nb> public class Tag {
@ param child potential child tag .
@ return true if this can contain child .
COMMENT
- public boolean canContain ( Tag child ) {
+ boolean canContain ( Tag child ) {
Validate . notNull ( child ) ;
if ( child . isBlock && ! this . canContainBlock )
<nb> public class Tag {
ret... | Knock access down |
<nb> public class Compilation
public String getLevel ( )
{
String result = null ;
-
+
+ Tag tag ;
+
if ( tagNMethod != null )
{
- Map < String , String > tagAttributes = tagNMethod . getAttributes ( ) ;
+ tag = tagNMethod ;
+ }
+ else
+ {
+ tag = tagTaskQueued ;
+ }
+
+ if ( tag != n... | Show compile level for stale tasks |
<nb> public class InputServiceImpl extends PersistedServiceImpl implements InputServi
input . addStaticField ( field . getKey ( ) , field . getValue ( ) ) ;
}
+ input . setConfiguration ( new Configuration ( io . getConfiguration ( ) ) ) ;
+
return input ;
}
@ override
public MessageInput getMessage... | Removing doubled input initialization |
<nb> public class ComputationSteps {
COMMENT
public static List < Class < ? extends ComputationStep > > orderedStepClasses ( ) {
return Arrays . asList (
+ SINGLE
ParseReportStep . class ,
+
+ SINGLE
PersistIssuesStep . class ,
+ PersistComponentLinksStep . class ,
+ PersistEventsStep . class ,
+ ... | Fix purge issue because events persistence was done after switch of snapshot |
<nb> import NAMESPACE ;
COMMENT
public class ConcurrentMessageDigest {
+ private static final String MD5 = STRING0 ;
+
private static final Map < String , Queue < MessageDigest > > queues =
new HashMap < > ( ) ;
<nb> public class ConcurrentMessageDigest {
SINGLE
}
+ static {
+ try {
+ SING... | Add a MD5 digest method as it is the most commonly used |
<nb> public abstract class AbstractTypeBinding extends AbstractBinding implements ITy
throw new AssertionError ( STRING0 ) ;
}
- @ override
public IMethodBinding getFunctionalInterfaceMethod ( ) {
return null ;
}
- @ override
public IAnnotationBinding [ ] getTypeAnnotations ( ) {
return null ;
}... | Removed Overrides from previous CL that caused some versions of javac to report as errors |
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
... | fixed up test runners |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public interface ViewAttribute extends Bindable {
- SINGLE
-
void preInitializeView ( BindingContext bindingContext ) ;
} | removed the commented out method per discussion |
<nb> public class XmppConnection extends ImConnection implements CallbackHandler {
if ( mPingCollector != null ) {
IQ result = ( IQ ) mPingCollector . pollResult ( ) ;
mPingCollector . cancel ( ) ;
+ mPingCollector = null ;
if ( result == null || result . getError ( ) != null ) {
- mPingCollector = null ;
... | Fix bogus ping failure |
<nb> public class JsMessagesBind implements Exportable , JsDisplayListCallback < JsMessa
boolean isLoaded = this . conversationVM . getIsLoaded ( ) . get ( ) ;
double readDate = this . conversationVM . getReadDate ( ) . get ( ) / FLOAT0 ;
double receiveDate = this . conversationVM . getReceiveDate ( ) . get ( ) /... | Pass ReadByMe date |
<nb>
SINGLE
SINGLE
SINGLE
+ SINGLE
package NAMESPACE ;
<nb> public class LogPanel extends AbstractPanel implements Runnable {
listLog = new javax . swing . JList < > ( ) ;
listLog . setDoubleBuffered ( true ) ;
listLog . setCellRenderer ( getLogPanelCellRenderer ( ) ) ;
- listLog . setSelectionM... | Allow non sequential lines to be selected in the history log |
<nb> public interface MethodGraph {
public Entry < U > extendBy ( MethodDescription methodDescription , Harmonizer < U > harmonizer ) {
Harmonized < U > key = this . key . extend ( methodDescription . asDefined ( ) , harmonizer ) ;
LinkedHashSet < MethodDescription > methodDescriptions = new LinkedHashSet < Metho... | Removed unncessecary erasure resolution due to new equality rules |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
public class LoggingConfigurationTests extends ElasticsearchTestCase {
- @ awaitsfix ( bugUrl = S... | Revert TEST re enabled AwaitsFix for LoggingConfigurationTests |
<nb> public class ConstantsForTests {
}
public GtfsContext getPortlandContext ( ) {
- setupPortland ( ) ;
+ if ( portlandGraph == null ) {
+ setupPortland ( ) ;
+ }
return portlandContext ;
} | only set up portland once |
<nb> public class PostsActivity extends WPDrawerActivity
ViewPostFragment viewPostFragment = ( ViewPostFragment ) fm . findFragmentById ( R . id . postDetail ) ;
if ( post != null ) {
+ if ( post . isUploading ( ) ) {
+ return ;
+ }
WordPress . currentPost = post ;
if ( viewPostFragment == null || ! vie... | Prevent posts from being opened if it is uploading |
<nb> public class WifiConfiguration implements Parcelable {
COMMENT
COMMENT
public boolean isValid ( ) {
- if ( SSID == null )
- return false ;
if ( allowedKeyManagement == null )
return false ; | revert change preventing NULL SSID in a WifiConfiguration |
<nb> public class StoreDirect extends Store {
protected long longStackTake ( final long ioList , boolean recursive ) {
assert ( structuralLock . isLocked ( ) ) ;
assert ( ioList >= IO_FREE_RECID && ioList < IO_USER_START ) : STRING0 + ioList ;
- if ( ioList > maxUsedIoList ) return NUMBER0 ;
long dataOffset... | revert potencially incorrect part |
<nb> public abstract class SearchResource extends RestResource {
return searches . fieldStats ( field , query , filter , timeRange , true , true ) ;
} catch ( Searches . FieldTypeException e1 ) {
LOG . error ( STRING0 , field , ExceptionUtils . getRootCauseMessage ( e1 ) ) ;
- throw new BadRequestException ( ) ... | add exception and info text to return value in error case |
<nb> public class ClasspathEditor extends ModuleElementsEditor {
}
void apply ( ) throws ConfigurationException {
- if ( isModified ( ) ) {
- final String storageID = getSelectedClasspathFormat ( ) ;
- ClasspathStorage . getProvider ( storageID ) . assertCompatible ( myModel ) ;
- ClasspathStorage . setSt... | assert format compatibility on every apply |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.