diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ... | allow non LigthVirtualFile non physical files to be considered in project |
<nb> import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Edge implements Serializable {
COMMENT
COMMENT
COMMENT
- @ getter
private int id ;
protected Vertex fromv ;
<nb> public abstract class E... | towards removing lombok |
<nb> public class MavenUIUtil {
final Color foreground = selected ? UIUtil . getTreeSelectionForeground ( ) : UIUtil . getTreeTextForeground ( ) ;
- Color background = selected ? UIUtil . getTreeSelectionBackground ( ) : UIUtil . getTreeTextBackground ( ) ;
+ Color background = selected ? UIUtil . getTreeSele... | Fix background color in Maven Tool window |
<nb> public class HttpClient extends HttpBuffers implements Attributes , Dumpable
COMMENT
public ThreadPool getThreadPool ( )
{
+ if ( _threadPool == null )
+ {
+ QueuedThreadPool pool = new QueuedThreadPool ( ) ;
+ pool . setMaxThreads ( NUMBER0 ) ;
+ pool . setDaemon ( true ) ;
+ pool . setName ( ST... | testing HttpClient FDs |
<nb> public class Example_ActivityBaseClass extends ActionBarSherlock . Activity {
. with ( savedInstanceState )
. layout ( R . layout . activity_hello )
. menu ( R . menu . hello )
- . title ( STRING0 )
+ . homeAsUp ( true )
+ . title ( R . string . hello )
. handleCustom ( ActionBarForAndroidActionBar .... | Call homeIsUp in the Android ActionBar example and use a string resource rather than a hardcoded version |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove import in IndicesClusterStateService java |
<nb> public final class JsInvocation extends JsExpressionImpl . JsExpressionHasArgument
return qualifier ;
}
+ public void setQualifier ( @ notnull JsExpression qualifier ) {
+ this . qualifier = qualifier ;
+ }
+
@ override
public void accept ( JsVisitor v ) {
v . visitInvocation ( this ) ; | make qualifier mutable |
<nb> public class Session
catch ( InvalidRequestException e )
{
out . println ( STRING0 + e . getWhy ( ) ) ;
- System . exit ( NUMBER0 ) ;
}
catch ( Exception e )
{ | Remove errant System exit from stress so it can reuse keyspaces |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator .
localizedMessage , HighlightInfo . htmlEscapeToolTip ( l... | creating highlight info anyway |
<nb> public class ChangeListManagerImpl extends ChangeListManagerEx implements Projec
catch ( Exception ex ) {
LOG . error ( ex ) ;
}
+ catch ( AssertionError ex ) {
+ LOG . error ( ex ) ;
+ }
finally {
myListeners . getMulticaster ( ) . changeListUpdateDone ( ) ;
synchronized ( myPendingUpdatesLock )... | don t swallow AssertionError from ChangeProvider |
<nb> public abstract class CallPeerMediaHandler < T extends MediaAwareCallPeer < ? , ? , ? > >
case VIDEO :
return videoStream ;
default :
- throw new IllegalArgumentException ( STRING0 ) ;
+ return null ;
}
} | Prepare for the message MediaType |
<nb> public class Notification implements Parcelable
COMMENT
public int visibility ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static final int VISIBILITY_PUBLIC = NUMBER0 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public static final int VISIBILITY_... | Copy visibility docs from support version to base Notification |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class DefaultListableBeanFactoryTests {
+ public class DefaultListableBeanFactoryTests {
private static final Log factoryLog = LogFactory . getLog ( DefaultListableBeanFactory . class ) ;
<nb> public final class DefaultListableBeanFactoryT... | added test for getType against an abstract FactoryBean |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class ScriptService extends ... | make the cached compile scripts a soft map |
<nb> public class PyUnresolvedReferencesInspection extends PyInspection {
actions . add ( new UnresolvedRefCreateFunctionQuickFix ( callExpression , refex ) ) ;
}
PyFunction parentFunction = PsiTreeUtil . getParentOfType ( element , PyFunction . class ) ;
- if ( parentFunction != null ) {
+ PyDecorator decora... | disable intention for unresolved decorator |
<nb> public class DetailActivity extends ActionBarActivity {
SINGLE
if ( id == R . id . action_settings ) {
+ startActivity ( new Intent ( this , SettingsActivity . class ) ) ;
return true ;
}
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
impor... | Launch the settings activity when the settings menu item is selected |
<nb> public class ConsoleViewImpl extends JPanel implements ConsoleView , ObservableCo
myTooMuchOfOutput = true ;
final EditorNotificationPanel comp =
new EditorNotificationPanel ( ) . text ( STRING0 ) . icon ( AllIcons . General . ExclMark ) ;
- add ( comp , BorderLayout . NORTH ) ;
+ final Alarm tooMuchOutp... | show the notification with a delay to avoid blinking when too much output ceases quickly |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class MeteorPubSub extends HttpServlet { | Specify the sampel support WebSocket |
<nb> public class NativeFormatPlugin extends FormatPlugin {
@ override
public void detectLanguageAndEncoding ( Book book ) {
detectLanguageAndEncodingNative ( book ) ;
- book . save ( ) ;
}
public native void detectLanguageAndEncodingNative ( Book book ) ; | plugin does not save book encoding |
<nb> public class SitePickerActivity extends ActionBarActivity
@ override
public boolean onOptionsItemSelected ( final MenuItem item ) {
int itemId = item . getItemId ( ) ;
-
if ( itemId == android . R . id . home ) {
onBackPressed ( ) ;
return true ;
<nb> public class SitePickerActivity extends ActionB... | Resetting formatting scope to develop |
<nb> public class RecipientSelectView extends TokenCompleteTextView < Recipient > implem
adapter = new RecipientAdapter ( context ) ;
setAdapter ( adapter ) ;
+
+ setLongClickable ( true ) ;
}
@ override | enable long click on recipient select view |
<nb> public class HostnameVerificationTest
SINGLE
SINGLE
- SINGLE
- Throwable cause = x . getCause ( ) . getCause ( ) ;
+ SINGLE
+ Throwable cause = x . getCause ( ) ;
if ( cause instanceof SSLHandshakeException )
assertThat ( cause . getCause ( ) . getCause ( ) , instanceOf ( CertificateException . c... | Do not wrap SSL Exception as EoFException |
<nb> public class HawkBuilder {
return this ;
}
+ public HawkBuilder setLogInterceptor ( LogInterceptor logInterceptor ) {
+ this . logInterceptor = logInterceptor ;
+ return this ;
+ }
+
HawkBuilder setConverter ( Converter converter ) {
this . converter = converter ;
return this ;
<nb> public ... | Make LogInterceptor public |
<nb> public class AlluxioFramework {
System . exit ( NUMBER0 ) ;
}
- SINGLE
- SINGLE
Protos . FrameworkInfo . Builder frameworkInfo = Protos . FrameworkInfo . newBuilder ( )
. setName ( STRING0 ) . setCheckpoint ( true ) ;
if ( Configuration . containsKey ( PropertyKey . INTEGRATION_MESOS_ROLE ) ) {
... | Improve some comments |
<nb> public class ClientReadHandler
lastHandle = Clock . currentTimeMillis ( ) ;
+ if ( ! connection . heartBeating ) {
+ logger . info ( connection + STRING0 ) ;
+ }
+
int readBytes = socketChannel . read ( buffer ) ;
if ( readBytes <= NUMBER0 ) {
if ( readBytes == - NUMBER1 ) { | Improved logging client readhandler i case of not beating |
<nb> import NAMESPACE ;
public final class NetworkManagementSocketTagger extends SocketTagger {
private static final boolean LOGI = false ;
+ private static final boolean ENABLE_TAGGING = false ;
private static ThreadLocal < SocketTags > threadSocketTags = new ThreadLocal < SocketTags > ( ) {
@ override p... | Temporarily disable socket tagging |
<nb> public class DisambiguationRuleTest {
}
SINGLE
- private static AnalyzedSentence disambiguateUntil (
+ protected AnalyzedSentence disambiguateUntil (
List < DisambiguationPatternRule > rules , String ruleID ,
AnalyzedSentence sentence ) throws IOException {
AnalyzedSentence disambiguated = sentence... | expose disambiguateUntil for subclases so we can roll up disambiguations |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMM... | Forced DB in ThreadLocal in parallel mode |
<nb> class LanguageToolHttpHandler implements HttpHandler {
}
print ( STRING0 + sourceText . length ( ) +
STRING1 + text . length ( ) + STRING2 +
- motherTongue + STRING3 + langParam ) ;
+ motherTongue + STRING4 + langParam ) ;
final JLanguageTool sourceLt = getLanguageToolInstance ( motherTongue , null ) ;... | add missing space |
<nb> static class BodyExpr implements Expr {
PersistentVector exprs = PersistentVector . EMPTY ;
for ( ; forms != null ; forms = forms . rest ( ) )
{
- Expr e = ( context == C . STATEMENT || forms . rest ( ) != null ) ?
+ Expr e = ( context != C . EVAL &&
+ ( context == C . STATEMENT || forms . rest ( ) != ... | fixed bug in do at top level |
<nb> public class AndroidDomExtender extends DomExtender < AndroidDomElement > {
DomExtensionsRegistrar registrar ,
MyAttributeProcessor processor ,
Set < XmlName > skippedAttrSet ) {
- COMMENT
-
- if ( ! shouldValidateAttributes ( element ) ) {
- XmlAttribute [ ] existingAttrs = element . getXmlTag ( ) .... | remove commented block |
<nb> public class MetaDataMappingService extends AbstractComponent {
}
assert mappingType != null ;
- if ( ! MapperService . DEFAULT_MAPPING . equals ( mappingType ) && ! PercolatorFieldMapper . TYPE_NAME . equals ( mappingType ) && mappingType . charAt ( NUMBER0 ) == STRING0 ) {
+ if ( ! MapperService . DEFA... | Removed unneeded refresh during post recovery |
<nb> public class LwjglFrame extends JFrame {
if ( size . width == NUMBER0 && size . height == NUMBER0 ) pack ( ) ;
Point location = getLocation ( ) ;
if ( location . x == NUMBER0 && location . y == NUMBER0 ) setLocationRelativeTo ( null ) ;
- setVisible ( true ) ;
lwjglCanvas . getCanvas ( ) . requestFocus (... | LwjglFrame removed setVisible from constructor |
<nb> public class StreamingDrmSessionManager implements DrmSessionManager {
public interface EventListener {
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ void onKeysLoaded ( ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class StreamingDrmSessionManager implements DrmSessionManager {
try {
... | Add onKeysLoaded callback |
<nb> public class ObjectiveCImplementationGenerator extends ObjectiveCSourceFileGener
List < AbstractTypeDeclaration > types = unit . getTypes ( ) ;
if ( ! types . isEmpty ( ) ) {
findInvokedConstructors ( unit ) ;
- printStart ( getOutputPath ( ) ) ;
+ printStart ( getGenerationUnit ( ) . getSourceName ( ) )... | Restore correct line directive file name |
<nb> public class Intent implements Parcelable , Cloneable {
COMMENT
COMMENT
COMMENT
+ @ systemapi
@ sdkconstant ( SdkConstantType . BROADCAST_INTENT_ACTION )
public static final String ACTION_QUERY_PACKAGE_RESTART = STRING0 ;
COMMENT
<nb> public class Intent implements Parcelable , Cloneable {
COMMEN... | Add SystemApi annotations to ACTION_QUERY_PACKAGE_RESTART and related |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fix junit annotation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultInitialDirContextFactory implements InitialDirContextFactory
COMMENT
private boolean useConnectionPool = true ;
+ COMMENT
+ priva... | Added property to force use of LdapContext instead of DirContext |
<nb> public class ChatRoomConfigurationWindow
{
SINGLE
field = new SIPCommCheckBox ( formField . getLabel ( ) ) ;
+ label . setText ( STRING0 ) ;
if ( values . hasNext ( ) )
{ | Fixes duplicate labels in chat room config form |
<nb> public class ObjectiveCImplementationGenerator extends ObjectiveCSourceFileGener
printf ( STRING0 , fullName ) ;
printf ( STRING1 , type . getName ( ) ) ;
String pkgName = type . getPackage ( ) . getName ( ) ;
- if ( Strings . isNullOrEmpty ( pkgName ) ) {
+ if ( pkgName == null ) {
printf ( STRING2 ) ... | Generate empty name string for default package |
<nb> public final class ImmutableOpenMap < KType , VType > implements Iterable < ObjectObje
return map . iterator ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public ObjectLookupContainer < KType > keys ( ) {
+ return map . keys ( ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public Objec... | add keys values to ImmutableOpenMap |
<nb> public class FileSystemMasterIntegrationTest {
@ after
public final void after ( ) throws Exception {
- AuthorizedClientUser . set ( mOldUser . getName ( ) ) ;
+ if ( mOldUser == null ) {
+ AuthorizedClientUser . remove ( ) ;
+ } else {
+ AuthorizedClientUser . set ( mOldUser . getName ( ) ) ;
+ ... | Handle null mOldUser |
<nb> public class GitBranch extends GitReference {
final String prefix = STRING0 ;
return head . startsWith ( prefix ) ? new GitBranch ( head . substring ( prefix . length ( ) ) , true , false ) : null ;
} catch ( IOException e ) {
+ LOG . info ( e ) ;
return null ;
}
} | Contained i branches shows always the Loading status |
<nb> public class RecentsPanelView extends FrameLayout implements OnItemClickListener
if ( DEBUG ) Log . v ( TAG , STRING0 + intent ) ;
context . startActivity ( intent , opts . toBundle ( ) ) ;
}
- if ( ! usingDrawingCache ) {
+ if ( usingDrawingCache ) {
holder . thumbnailViewImage . setDrawingCacheEnable... | Tweak recents launch app animation |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class NetworkApi {
- private GitHubService gitHubService ;
+ private final GitHubService gitHubService ;
public NetworkApi ( ) {
RestAdapter restAdapter = new RestAdapter . Builder ( )
<nb> public class RepositoriesViewModel {
@ inject
DataLayer dataL... | Changed member declaration |
<nb> public class Transcript {
assertEquals ( Arrays . asList ( expectedEvents ) , events ) ;
events . clear ( ) ;
}
+
+ public void clear ( ) {
+ events . clear ( ) ;
+ }
public List < String > getEvents ( ) {
return events ; | Added clear method to transcript |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public abstract class CodeInsightTestCase extends PsiTestCase {
}
}
- protected VirtualFile getVirtualFile ( String filePath ) {
+ protected VirtualFile getVirtualFile ( @ nonnls... | extended web xml highlighting test |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Removed an empty line |
<nb> public class TextureManager {
final ArrayList < ITexture > texturesToBeUnloaded = this . mTexturesToBeUnloaded ;
COMMENT
- final int textursLoadedCount = texturesLoaded . size ( ) ;
+ final int texturesLoadedCount = texturesLoaded . size ( ) ;
- if ( textursLoadedCount > NUMBER0 ) {
- for ( int i =... | Corrected minor spelling mistake textursLoadedCount texturesLoadedCount |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMES... | Move KafkaClientProvider to servicescommon |
<nb> public class OIndexUnique extends OIndexOneValue {
SINGLE
if ( ! value . equals ( iSingleValue ) )
throw new ORecordDuplicatedException ( String . format (
- STRING0 , null ,
- OIndexException . class , iSingleValue . getIdentity ( ) , iKey , getName ( ) , value . getIdentity ( ) ) , value . getIdentity ... | changed exception message |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class GroovyCompilerConfigurable implements SearchableConfigurable , Configurable . NoScroll {
+ private final Project myProject ;
private JText... | stop preloaded build process on groovy compiler setting change |
<nb> public class GpxSelectionHelper {
public void clearAllGpxFileToShow ( ) {
selectedGPXFiles . clear ( ) ;
+ saveCurrentSelections ( ) ;
}
public boolean isShowingAnyGpxFiles ( ) { | Fix deselction of all gpx |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RequestMappingHandlerAdapter extends AbstractHandlerMethodAdapter i
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT... | Allow greater flexibility for template method createDataBinderFactory |
<nb> public final class R {
public static final int activity_main = NUMBER0 ;
public static final int activity_main_1 = NUMBER1 ;
public static final int ordinal_scrollbar = NUMBER2 ;
+ public static final int custom_layout6 = NUMBER3 ;
}
public static final class anim {
<nb> public final class R {
pu... | Fix merges from regenerated R java file |
<nb> public class Instruction
protected int sign ;
protected String name ;
- protected double radian ;
protected double distance ;
protected long time ;
protected final PointList points ;
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
public class ... | removing unused radian property from Instructions RoundaboutInstruction would overwrite this field |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> final class Enum extends Iced {
_map . put ( new ValueString ( ab . getA1 ( len ) ) , ab . get4 ( ) ) ;
return this ;
}
+ @ override public AutoBuffer... | Missed custom json printer |
<nb> enum CompilationParam {
SINGLE
SINGLE
+ CHECK_LINT {
+ @ override
+ void apply ( CompilerOptions options , boolean value ) {
+ if ( value ) {
+ options . setWarningLevel ( DiagnosticGroups . LINT_CHECKS , CheckLevel . WARNING ) ;
+ }
+ }
+ } ,
+
COMMENT
CHECK_SYMBOLS ( true ) {
@ over... | Add option to enable the lint checks in the debugger |
<nb> public class ServerSystemTest {
@ test
public void display_system_info ( ) {
Selenese selenese = Selenese . builder ( ) . setHtmlTestsInClasspath ( STRING0 ,
- STRING1
- ) . build ( ) ;
+ STRING1 ) . build ( ) ;
new SeleneseTest ( selenese ) . runOn ( orchestrator ) ;
}
<nb> public class Server... | fix ServerSystemTest response content must not be called twice |
<nb> public class IndexSamplingIntegrationTest
db = new TestGraphDatabaseFactory ( ) . newEmbeddedDatabase ( testDirectory . graphDbDir ( ) . getAbsolutePath ( ) ) ;
@ suppresswarnings ( STRING0 )
GraphDatabaseAPI api = ( GraphDatabaseAPI ) db ;
- CountsTracker countsTracker = api . getDependencyResolver ( ) . ... | Fix issue with forward merge and API change |
<nb> public class MapActivity extends AccessibleActivity {
createProgressBarForRouting ( ) ;
SINGLE
SINGLE
- if ( settings . FOLLOW_THE_ROUTE . get ( ) && ( ! app . getRoutingHelper ( ) . isRouteCalculated ( ) || ! app . getRoutingHelper ( ) . isRouteBeingCalculated ( ) ) ) {
+ if ( settings . FOLLOW_THE_ROUT... | Fix route recalculate |
<nb> public class Socks5BytestreamRequest implements BytestreamRequest {
break ;
}
- catch ( TimeoutException e ) {
- incrementConnectionFailures ( address ) ;
- }
- catch ( IOException e ) {
- incrementConnectionFailures ( address ) ;
- }
- catch ( XMPPException e ) {
+ catch ( TimeoutException |... | Also catch SmackException in Socks5BytestreamRequest |
<nb> final class Settings {
SINGLE
SINGLE
- if ( dataPath . indexOf ( STRING0 ) >= NUMBER0 || ai . uid <= Process . FIRST_APPLICATION_UID )
+ if ( dataPath . indexOf ( STRING0 ) >= NUMBER0 || ai . uid < Process . FIRST_APPLICATION_UID )
continue ;
SINGLE
<nb> final class Settings {
pw . println ( ST... | Fix off by one error when filtering application UIDs |
<nb> final class NewTypeInference implements CompilerPass {
}
}
pair = analyzeExprFwd ( index , pair . env ) ;
- pair . type = requiredType ;
+ pair . type = JSType . UNKNOWN ;
return pair ;
}
<nb> public final class NewTypeInferenceES5OrLowerTest extends NewTypeInferenceTestBa
STRING0 ,
STRING1 ,... | NTI Fix an inexistent property spurious warning |
<nb> public class SubsampleTests {
input = input . get ( NDArrayIndex . all ( ) , NDArrayIndex . all ( ) , NDArrayIndex . interval ( NUMBER0 , NUMBER1 ) , NDArrayIndex . interval ( NUMBER0 , NUMBER1 ) ) ;
INDArray output = model . activate ( input ) ;
- assertTrue ( Arrays . equals ( new int [ ] { mnist . numEx... | change back tests |
<nb> public class OMVRBTreeRID extends OMVRBTreePersistent < OIdentifiable , OIdentifiab
@ override
public OIdentifiable internalPut ( final OIdentifiable e , final OIdentifiable v ) {
+ ( ( OMVRBTreeRIDProvider ) dataProvider ) . lazyUnmarshall ( ) ;
+
if ( e . getIdentity ( ) . isNew ( ) ) {
final OReco... | Fixed problem with linkeset modified right after query in remote configuration |
<nb> public class PeerGroup implements TransactionBroadcaster {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public void addPeerFilterProvider ( PeerFilterProvider provider ) {
+ public ListenableFuture < BloomFilter > addPeerFilterProvider ( Peer... | Change PeerGroup addPeerFilterProvider to return a ListenableFuture BloomFilter |
<nb> public class ServiceRegistration {
private List < Endpoint > endpoints = new ArrayList < > ( ) ;
+ @ deprecated
+ public Builder endpoint ( final String name ,
+ final String protocol ,
+ final int port ) {
+ endpoints . add ( new Endpoint ( name , protocol , port , STRING0 , STRING0 ) ) ;
+ retu... | Added Deprecated legacy method to ServiceRegistration |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class OneDayDecorator implements DayViewDecorator {
... | Modify OneDayDecorator to be cooler |
<nb> public class SequenceActor extends ModuleActor {
return ;
}
- if ( processor . isCausesInvalidation ( update ) ) {
+ if ( ( ! ( u instanceof FatSeqUpdate ) ) && processor . isCausesInvalidation ( update ) ) {
Log . w ( TAG , STRING0 ) ;
invalidate ( ) ;
return ; | Fix FatSeqUpdate invalidation |
<nb> public class HelixInstanceDataManager implements InstanceDataManager {
ResourceDataManager resourceDataManager =
ResourceDataManagerProvider . getResourceDataManager ( resourceDataManagerConfig ) ;
resourceDataManager . start ( ) ;
- addResourceDataManager ( BrokerRequestUtils . getOfflineResourceNameForRe... | Removed an unnecessary offline suffix in the helix instance data manager after a rebase |
<nb> public class XDebuggerTreeRestorer implements XDebuggerTreeListener , TreeSelecti
}
private void restoreChildren ( final XDebuggerTreeNode treeNode , final XDebuggerTreeState . NodeInfo nodeInfo ) {
- if ( nodeInfo . isExpanded ( ) ) {
+ if ( ! treeNode . isLeaf ( ) && nodeInfo . isExpanded ( ) ) {
myT... | preserve tree scrolling position on last class level watch deletion |
<nb> public class PolyUtil {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ClusterManager < T extends ClusterItem > implements GoogleMap . OnCamera
cluster ( ) ;
}
+ public ClusterRenderer < T > getRenderer ( ) {
+ return mRenderer ;
+ }
+
+ public Algor... | Add getters for ClusterManger algorithm renderer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StandardHost extends ContainerBase implements Host {
}
@ override
- protected void initInternal ( ) throws LifecycleException {
-
- su... | Don t add HostConfig as a listener twice |
<nb> public class Browser {
public static final String [ ] HISTORY_PROJECTION = new String [ ] {
BookmarkColumns . _ID , BookmarkColumns . URL , BookmarkColumns . VISITS ,
BookmarkColumns . DATE , BookmarkColumns . BOOKMARK , BookmarkColumns . TITLE ,
- BookmarkColumns . FAVICON } ;
+ BookmarkColumns . FAVICO... | Alter the HISTORY_PROJECTION and BookmarkColumns |
<nb> public class SIPCommButton
SINGLE
SINGLE
this . setBorder ( null ) ;
- this . setOpaque ( false ) ;
+ this . setContentAreaFilled ( false ) ;
this . bgImage = bgImage ;
this . pressedImage = pressedImage ;
<nb> public class SIPCommButton
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | Replace setOpaque false with setContentAreaFilled false |
<nb> public class UnbufferedTokenStream < T extends Token >
@ override
public T get ( int i ) {
- throw new UnsupportedOperationException ( STRING0 ) ;
+ int bufferStartIndex = currentElementIndex - p ;
+ int bufferStopIndex = bufferStartIndex + data . size ( ) - NUMBER0 ;
+ if ( i < bufferStartIndex || i... | Implement UnbufferedTokenStream get int within marked intervals |
<nb> public class HelpPane extends WorkbenchPane
private void setLocation ( final String url )
{
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ targetUrl_ = url ;
+
RepeatingCommand navigateCommand = new RepeatingCommand ( ) {
@ override
public boolean execute ( )
<nb> public class HelpPane extends Wor... | Help displays the wrong help page on startup |
<nb> public class ChunkDataWidget extends SimplePanel
getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING1 ) ;
getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING2 ) ;
getElement ( ) . getStyle ( ) . setProperty ( STRING0 , STRING3 ) ;
+
+ getElement ( ) . getStyle ( ) . setProperty ( ST... | expand data chunk for satellite chunks with only data output |
<nb> public class ShortDocumentationExamplesTest implements GraphHolder
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class TestJavaTestDocsGenerator implements GraphHolder
data . get ( ) ;
gen . get ( ) . setGraph ( graphdb ) ;
assertNotNull ( data . get ( ) . ... | fixing compole error and the doc snippet |
<nb> public final class Configuration implements Parcelable , Comparable < Configuration
}
fixUpLocaleList ( ) ;
delta . fixUpLocaleList ( ) ;
- if ( ! mLocaleList . equals ( delta . mLocaleList ) ) {
+ if ( ! delta . mLocaleList . isEmpty ( ) && ! mLocaleList . equals ( delta . mLocaleList ) ) {
changed |=... | Ignore empty locale list when diffing Configuration objects |
<nb> public class MethodValidator {
}
if ( each . getReturnType ( ) != Void . TYPE ) {
errors . add ( new Exception ( STRING0 + each . getName ( )
- + STRING1 ) ) ;
+ + STRING2 ) ) ;
}
if ( each . getParameterTypes ( ) . length != NUMBER0 ) {
errors . add ( new Exception ( STRING0 + each . getName ( ) | Make exception message more descriptive when methods do not have a void return value |
<nb> public class AmenityMenuController extends MenuController {
}
@ override
+ public boolean displayDistanceDirection ( ) {
+ return true ;
+ }
+
+ @ override
public String getTypeStr ( ) {
PoiCategory pc = amenity . getType ( ) ;
PoiType pt = pc . getPoiTypeByKeyName ( amenity . getSubType ( ) ... | Added compass to poi context menu |
<nb> public class JetCodeConformanceTest extends TestCase {
private static final Pattern JAVA_FILE_PATTERN = Pattern . compile ( STRING0 ) ;
private static final Pattern SOURCES_FILE_PATTERN = Pattern . compile ( STRING1 ) ;
private static final List < File > EXCLUDED_FILES_AND_DIRS = Arrays . asList (
+ new Fi... | Minor ignore android dependencies when looking for author |
<nb> import static NAMESPACE ;
public final class FileContentType {
public static final MediaType DEFAULT_CONTENT_TYPE_WITH_CHARSET = MediaType . PLAIN_TEXT_UTF_8 ;
- private static final MediaType DEFAULT_CONTENT_TYPE = MediaType . create ( STRING0 , STRING1 ) ;
private static final ImmutableMap < String ,... | removed unused default content type |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class GradleBuildProcessParametersProvider extends BuildProcessParametersProvider {
+ @ notnull private final Project myProject ;
+
private List < String > myClasspath ;
+ public GradleBuildProcessParametersProvider ( @ notnull Project project ) {
+ myPro... | remove extra jars from make process classpath for non gradle project |
<nb> import NAMESPACE ;
@ configurationproperties ( STRING0 )
public class MetricExportProperties extends TriggerProperties {
- COMMENT
- COMMENT
- COMMENT
- private boolean enabled = true ;
-
- private Map < String , SpecificTriggerProperties > triggers = new LinkedHashMap < String , SpecificTriggerP... | Remove duplicate in MetricExportProperties |
<nb> public class TextBodyBuilder {
return HtmlConverter . textToHtmlFragment ( text ) ;
}
- SINGLE
-
- public boolean isIncludeQuotedText ( ) {
- return mIncludeQuotedText ;
- }
+ SINGLE
public void setIncludeQuotedText ( boolean includeQuotedText ) {
mIncludeQuotedText = includeQuotedText ;
... | Remove unused getter |
<nb> public class CocoaMessenger extends Messenger {
public BindedDisplayList < Message > getMessageDisplayList ( final Peer peer ) {
if ( ! messagesLists . containsKey ( peer ) ) {
BindedDisplayList < Message > list = ( BindedDisplayList < Message > ) modules . getDisplayListsModule ( ) . getMessagesSharedList (... | Fixing messages history loading |
<nb> public class DownloadService extends Service {
}
private Downloader getDownloader ( DownloadRequest request ) {
- if ( URLUtil . isHttpUrl ( request . getSource ( ) ) ) {
+ if ( URLUtil . isHttpUrl ( request . getSource ( ) )
+ || URLUtil . isHttpsUrl ( request . getSource ( ) ) ) {
return new HttpDo... | https download URLs did not work correctly |
<nb> public class ScaleUpAnimHelper {
}
public void show ( ) {
+ int duration = NUMBER0 ;
if ( mView . getVisibility ( ) != View . VISIBLE ) {
+ duration = NUMBER1 ;
mView . animate ( ) . cancel ( ) ;
mView . setAlpha ( FLOAT0 ) ;
mView . setVisibility ( View . VISIBLE ) ;
<nb> public class ScaleUpA... | Increase the speed the BadgeView animates on screen |
<nb> public class GitHistoryUtils {
GitLogParser parser = new GitLogParser ( project , GitLogParser . NameStatus . NONE , HASH , PARENTS , AUTHOR_NAME , AUTHOR_TIME , SUBJECT ) ;
h . setStdoutSuppressed ( true ) ;
h . addParameters ( parser . getPretty ( ) , STRING0 ) ;
+ h . addParameters ( STRING1 , STRING2 ,... | read whole log from all branches |
<nb> public class GPXUtilities {
}
res . points . clear ( ) ;
}
+ } catch ( RuntimeException e ) {
+ log . error ( STRING0 , e ) ; SINGLE
+ res . warning = ctx . getString ( R . string . error_reading_gpx ) + STRING1 + e . getMessage ( ) ;
} catch ( XmlPullParserException e ) {
log . error ( STRING0 , e... | Fix gpx utilties to log exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultDatabase implements Database {
@ override
public String toString ( ) {
- return STRING0 + ( properties != null ?... | Remove unused import in DefaultDatabase |
<nb> public final class DlvDebugProcess extends DebugProcessImpl < RemoteVmConnection >
@ override
public void consume ( @ notnull final DebuggerState o ) {
if ( o . exited ) {
- getSession ( ) . stop ( ) ;
+ stop ( ) ;
return ;
} | use the same stop |
<nb> public class VcsEventWatcher implements ProjectComponent {
}
public void rootsChanged ( ModuleRootEvent event ) {
+ if ( event . isCausedByDumbnessChange ( ) ) return ;
ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
public void run ( ) {
if ( myProject . isDisposed ( ) || ... | don t refresh VCS file status when entering exiting dumb mode |
<nb> public class InBandBytestreamSession implements BytestreamSession {
}
SINGLE
- return ( int ) buffer [ bufferPointer ++ ] ;
+ return ( ( int ) buffer [ bufferPointer ++ ] ) & NUMBER0 ;
}
public synchronized int read ( byte [ ] b , int off , int len ) throws IOException { | Fix erroneous cast from byte to int in IBBInputStream s read |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HazelCastStateTracker extends Application < HazelCastConf > implements
return Response . ok ( new ArrayList < > ( workers ( ) ) . size ( ) ) . build ( ) ;
}
... | added ability to download model via rest |
<nb> public class InstrumentedThreadFactoryTest {
SINGLE
executor . shutdown ( ) ;
- assertThat ( executor . awaitTermination ( NUMBER0 , TimeUnit . SECONDS ) ) . isTrue ( ) ;
+ assertThat ( executor . awaitTermination ( NUMBER1 , TimeUnit . SECONDS ) ) . isTrue ( ) ;
SINGLE
assertThat ( terminated . ge... | Provide a slightly longer wait for thread termination |
<nb> public class FilePermissionHandlerFactory {
try {
LibC libc = ( LibC ) Native . loadLibrary ( STRING0 , LibC . class ) ;
return new LibcChmod ( libc ) ;
- } catch ( Throwable e ) {
+ } catch ( LinkageError e ) {
return new EmptyChmod ( ) ;
}
} | Only ignore LinkageError on loading LibC in FilePermissionsHandlerFactory |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.