diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> class DetailsPanel extends JPanel {
if ( selectionLength > MAX_ROWS ) {
myMainContentPanel . add ( new SeparatorComponent ( NUMBER0 , OnePixelDivider . BACKGROUND , null ) ) ;
- JBLabel label = new JBLabel ( STRING0 + MAX_ROWS + STRING1 + selectionLength + STRING2 ) ;
+ JBLabel label = new JBLabel ( STRI... | vcs log remove spaces that crawled back during rebase |
<nb> public class Itinerary {
public Double waitingTime = FLOAT0 ;
public Double walkDistance = FLOAT0 ;
+
+ public Double elevationLost = FLOAT0 ;
+ public Double elevationGained = FLOAT0 ;
public Integer transfers = NUMBER0 ; | add placeholders for elevation |
<nb> public class SpringChristianDLCLoseMessageIssueTest extends SpringTestSupport {
template . sendBody ( STRING0 , STRING1 ) ;
template . sendBody ( STRING0 , STRING2 ) ;
+ SINGLE
+ Thread . sleep ( NUMBER0 ) ;
+
assertMockEndpointsSatisfied ( ) ;
}
<nb> public class SpringChristianDLCLoseMessageI... | Fixed potential unit test failure |
<nb> public abstract class IntentionSettingsTree {
CheckedTreeNode node = ( CheckedTreeNode ) value ;
SimpleTextAttributes attributes = node . getUserObject ( ) instanceof IntentionActionMetaData ? SimpleTextAttributes . REGULAR_ATTRIBUTES : SimpleTextAttributes . REGULAR_BOLD_ATTRIBUTES ;
final String text = get... | Fix problem with background UI in Intentions |
<nb> import NAMESPACE ;
public abstract class PEPItem implements ExtensionElement {
String id ;
- abstract String getNode ( ) ;
- abstract String getItemDetailsXML ( ) ;
+ public abstract String getNode ( ) ;
+ public abstract String getItemDetailsXML ( ) ;
COMMENT
COMMENT | Make abstract package protected methods in PEPItem public |
<nb> public class Notification implements Parcelable
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String CONTENT_PRICING_PREORDER = STRING0 ;
+
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add pre order as a pricing type for ContentInfoExtender |
<nb> public class TermSession {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
protected void notifyTitleChanged ( ) {
UpdateCallback listener = mTitleChangedListener ; | update documentation for notifyTitleChanged |
<nb> public class HystrixCircuitBreakerTest {
SINGLE
Thread . sleep ( NUMBER0 ) ;
+ System . out . println ( STRING0 + cmd1 . getMetrics ( ) . getHealthCounts ( ) ) ;
assertFalse ( cb . allowRequest ( ) ) ;
assertTrue ( cb . isOpen ( ) ) ;
<nb> public class HystrixCircuitBreakerTest {
asyncResult . to... | Added logging to HystrixCircuitBreakerTest testCircuitClosedAfterSuccess |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
} , title , null ) ;
}
} ;
- if ( ApplicationManage... | run inspection cleanup in a transaction |
<nb>
SINGLE
SINGLE
SINGLE
+
package NAMESPACE ;
import NAMESPACE ;
<nb>
SINGLE
SINGLE
SINGLE
+
package NAMESPACE ;
import NAMESPACE ; | Add space to license for license checker recognition |
<nb> public abstract class AbstractTitanTx extends TitanBlueprintsTransaction impleme
vertices . addAll ( attrSubindex . get ( attribute ) ) ;
}
Map < Object , TitanVertex > keySubindex = keyIndex . get ( key ) ;
- if ( keySubindex != null ) {
- vertices . add ( keySubindex . get ( attribute ) ) ;
+ TitanVe... | Add null check |
<nb>
COMMENT
package 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 ;
-
... | avoided NPE in case of records with no class |
<nb> class RecentTasks extends ArrayList < TaskRecord > {
for ( int i = NUMBER0 ; i < recentsCount ; i ++ ) {
final TaskRecord tr = get ( i ) ;
if ( task != tr ) {
- if ( task . stack != tr . stack ) {
+ if ( task . stack != null && tr . stack != null && task . stack != tr . stack ) {
continue ;
}
if ( ... | Only skip trimming task if the stacks are not null |
<nb> public interface Input {
public static final int KEYCODE_COMMA = NUMBER0 ;
public static final int KEYCODE_D = NUMBER1 ;
public static final int KEYCODE_DEL = NUMBER2 ;
+ public static final int KEYCODE_BACKSPACE = NUMBER2 ;
public static final int KEYCODE_FORWARD_DEL = NUMBER3 ;
public static final in... | added keycode Keys KEYCODE_BACKSPACE alias to KEYCODE_DEL blame android |
<nb> public class PersistenceManager
this . transactionManager = transactionManager ;
this . persistenceSource = persistenceSource ;
}
+
+ public PersistenceSource getPersistenceSource ( )
+ {
+ return persistenceSource ;
+ }
public boolean loadLightNode ( int id )
{ | Added public method to get PersistenceSource in use |
<nb> public class ComboChartRenderer extends AbstractChartRenderer {
protected List < ChartRenderer > renderers ;
protected Viewport unionViewport = new Viewport ( ) ;
- protected Rect unionContentRectWithAxesMargins = new Rect ( ) ;
- protected Rect unionContentRectWithAllMargins = new Rect ( ) ;
public ... | Removed unused members from ComboChartRenderer |
<nb> public class JSONPath implements JSONAware {
}
}
- public void write ( JSONSerializer serializer , Object object , Object fieldName , Type fieldType ,
- int features ) throws IOException {
- serializer . write ( path ) ;
- }
-
@ override
public String toJSONString ( ) {
return JSON . toJSONSt... | removed unused code |
<nb> public class Browser {
COMMENT
public static class SearchColumns implements BaseColumns {
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public static final String URL = STRING0 ;
<nb> public final class CacheManager {
SINGLE
SINGLE
COMMENT
- COMMENT
+ COMMENT
COMMENT
... | Fix warnings in docs generation |
<nb> public final class Bundle extends BaseBundle implements Cloneable , Parcelable {
} else if ( obj instanceof Parcelable [ ] ) {
Parcelable [ ] array = ( Parcelable [ ] ) obj ;
for ( int n = array . length - NUMBER0 ; n >= NUMBER1 ; n -- ) {
- if ( ( array [ n ] . describeContents ( )
- & Parcelable . CONT... | Fix NullPointerException in Bundle hasFileDescriptors |
<nb> public class Application implements SystemListener {
COMMENT
COMMENT
public Application ( ) {
+ initStateManager ( ) ;
}
COMMENT
<nb> public class Application implements SystemListener {
if ( renderManager != null ) {
renderManager . setTimer ( timer ) ;
}
+ }
+
+ public Timer getTimer ... | Added an accessor for Timer |
<nb> import NAMESPACE ;
public class TitanHadoopConfiguration {
public static final ConfigNamespace ROOT_NS =
- new ConfigNamespace ( null , STRING0 , STRING1 ) ;
+ new ConfigNamespace ( null , STRING2 , STRING3 ) ;
public static final ConfigNamespace TRUNK_NS =
new ConfigNamespace ( new ConfigNamespace... | Rename root hadoop config root ns to faunus |
<nb> public class Activity extends ContextThemeWrapper
}
}
}
+ if ( mActionBar != null ) {
+ mActionBar . setTitle ( title ) ;
+ }
}
protected void onChildTitleChanged ( Activity childActivity , CharSequence title ) { | Directly propagate Activity titles to action bars |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileIdempotentConsumerCreateRepoTest extends Assert {
@ test
public void shouldCreateParentOfRepositoryFileStore ( ) throws IOExce... | Improved test fixtures |
<nb> public abstract class WebappClassLoaderBase extends URLClassLoader
COMMENT
COMMENT
+ COMMENT
COMMENT
+ @ deprecated
protected final Permission allPermission = new java . security . AllPermission ( ) ;
<nb> public abstract class WebappClassLoaderBase extends URLClassLoader
COMMENT
COMMENT
... | Deprecate unused code |
<nb> public abstract class InspectionGadgetsFix implements LocalQuickFix {
}
}
- protected static boolean isQuickFixOnReadOnlyFile ( PsiElement problemElement ) {
+ protected static boolean isQuickFixOnReadOnlyFile ( PsiElement problemElement ) {
final PsiFile containingPsiFile = problemElement . getContain... | removing redundant psimanager s |
<nb> public class ResolveVisitor extends ClassCodeExpressionTransformer {
for ( Iterator iter = an . getMembers ( ) . entrySet ( ) . iterator ( ) ; iter . hasNext ( ) ; ) {
Map . Entry member = ( Map . Entry ) iter . next ( ) ;
Expression memberValue = ( Expression ) member . getValue ( ) ;
- member . setValue ... | improves error reporting abilities for enum usage in annotations |
<nb> public class SmartPointerManagerImpl extends SmartPointerManager {
PointerReference reference = references [ i ] ;
if ( reference != null && reference . get ( ) == smartPointer ) {
references [ i ] = null ;
+ size -- ;
result = true ;
break ;
}
}
- size -- ;
return result ;
} | only decrease smart pointer list size when a pointer is actually removed |
<nb> public class OLazyObjectSet < TYPE > implements Set < Object > , Serializable {
}
public boolean contains ( final Object o ) {
- return underlying . contains ( underlying . contains ( database . getRecordByUserObject ( o , false ) ) ) ;
+ return underlying . contains ( database . getRecordByUserObject ( ... | Fixed stupid bug reported in ML in OLazyObjectSet in contains and remove methods |
<nb> public class OsmandRegions {
}
fullNamesToLocaleNames . put ( fullName , locPrefix + STRING0 + locName ) ;
fullNamesNoParentToLocaleNames . put ( fullName , locName ) ;
- String index = fullNamesToLowercaseIndex . get ( fullName ) ;
- String prindex = fullNamesToLowercaseIndex . get ( parentFullName ) ; ... | Don t add parent to index |
<nb> public abstract class WindowOrientationListener {
SINGLE
SINGLE
- private static final int DEFAULT_TIME_CONSTANT_MS = NUMBER0 ;
+ private static final int DEFAULT_TIME_CONSTANT_MS = NUMBER1 ;
SINGLE
- private static final int TILTED_TIME_CONSTANT_MS = NUMBER2 ;
+ private static final int TILTED_TIM... | Decrease sensitivity of orientation changes a bit |
<nb> public class WildcardName implements TypeName {
@ override
public Appendable write ( Appendable appendable , CompilationUnitContext context )
throws IOException {
- return null ;
+ appendable . append ( STRING0 ) ;
+ if ( extendsBound . isPresent ( ) ) {
+ appendable . append ( STRING1 ) ;
+ extend... | Fix an issue in which wildcards weren t actually getting written |
<nb> public class IdeaProject {
ipr . getWhenMerged ( ) . execute ( xmlProject ) ;
}
- SINGLE
private void includeModulesFromComposite ( Project xmlProject ) {
SINGLE
ProjectComponentIdentifier thisProjectId = DefaultProjectComponentIdentifier . newId ( project . getRootProject ( ) . getName ( ) + STRING0... | Remove a couple of TODOs |
<nb> public class PeekableInputStream extends InputStream {
if ( ! mPeeked ) {
return mIn . read ( b , offset , length ) ;
} else {
- b [ NUMBER0 ] = ( byte ) mPeekedByte ;
+ b [ offset ] = ( byte ) mPeekedByte ;
mPeeked = false ;
int r = mIn . read ( b , offset + NUMBER1 , length - NUMBER1 ) ;
if ( r =... | Fix bad offset in PeekableInputStream |
<nb> public class OScriptManager {
currentLine = scanner . next ( ) ;
int pos = currentLine . indexOf ( STRING0 ) ;
if ( pos > - NUMBER0 ) {
- final String [ ] words = OStringParser . getWords ( currentLine . substring ( pos + STRING0 . length ( ) + NUMBER0 ) , STRING1 ) ;
+ final String [ ] words = OStringPa... | fixed javascript error handling in script manager index out of bounds in a corner case |
<nb> class Waiter {
sleeper . sleep ( ) ;
}
- return null ;
+ return view ;
}
COMMENT | Return the view even when timing out in waitForView |
<nb> public class Hadoop23Shims extends HadoopShimsSecure {
aclStatus = fs . getAclStatus ( file ) ;
} catch ( Exception e ) {
LOG . info ( STRING0 + file + STRING1 +
- STRING2 + e , e ) ;
+ STRING3 ) ;
+ LOG . debug ( STRING4 + e , e ) ;
}
}
return new Hadoop23FileStatus ( fileStatus , aclStatus ) ; ... | Remove Exception stacktrace from Log info when ACL is not supported |
<nb> public interface PsiElement extends UserDataHolder , Iconable {
PsiElement replace ( @ notnull PsiElement newElement ) throws IncorrectOperationException ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | expand javadoc on PSI validity |
<nb> public class OneToOneCallPeerPanel
COMMENT
public void removeMouseAndKeyListeners ( )
{
- System . out . println ( STRING0 + remoteVideo ) ;
if ( remoteVideo != null )
{
remoteVideo . removeKeyListener ( mouseAndKeyListener ) ;
<nb> public class OneToOneCallPeerPanel
COMMENT
public void mouseMo... | Remove two system out prints used for testing |
<nb> public class StandardSession implements ISession , Parser . Listener , Dumpable
goAway ( x . getSessionStatus ( ) , NUMBER0 , TimeUnit . SECONDS , new Callback . Adapter ( ) ) ;
}
- private void onSyn ( SynStreamFrame frame )
+ private void onSyn ( final SynStreamFrame frame )
{
- IStream stream = cr... | Fix NPE when a broken client tried to create duplicate stream IDs |
<nb> public class LintManager
{
showMarkers_ = showMarkers ;
excludeCurrentStatement_ = excludeCurrentStatement ;
- timer_ . schedule ( NUMBER0 ) ;
+
+ SINGLE
+ timer_ . schedule ( NUMBER1 ) ;
}
private void getAceWorkerDiagnostics ( final DocDisplay docDisplay ) | add delay to avoid lint being immediately cleared after being shown |
<nb> public class DescriptorResolver {
public VariableDescriptor resolveLocalVariableDescriptor (
DeclarationDescriptor containingDeclaration ,
JetScope scope ,
- JetProperty property ,
+ JetVariableDeclaration property ,
DataFlowInfo dataFlowInfo ,
BindingTrace trace
) {
<nb> public class DescriptorR... | resolve local variable descriptors based on abstract interface |
<nb> public class Netapi32Test extends TestCase {
if ( Netapi32Util . getJoinStatus ( ) != LMJoin . NETSETUP_JOIN_STATUS . NetSetupDomainName )
return ;
+ IntByReference domainTrustCount = new IntByReference ( ) ;
PointerByReference domainsPointerRef = new PointerByReference ( ) ;
assertEquals ( W32Errors .... | Re added missing declaration |
<nb> public final class InternalTestCluster extends TestCluster {
COMMENT
COMMENT
public void restartRandomDataNode ( ) throws Exception {
- restartRandomNode ( EMPTY_CALLBACK ) ;
+ restartRandomDataNode ( EMPTY_CALLBACK ) ;
}
COMMENT | TEST InternalCluster restartRandomDataNode should restart a data node |
<nb> public class Html {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public static String toHtml ( Spanned text ) {
StringBuilder out = new StringBuilder ( ) ; | Improve Html toHtml documentation |
<nb> public abstract class AbstractQualifiedReference < T extends AbstractQualifiedRefe
@ notnull
protected abstract T parseReference ( String newText ) ;
- protected final boolean isAccessible ( final PsiElement element ) {
+ protected boolean isAccessible ( final PsiElement element ) {
if ( element instan... | name pointcut reference completion should not include methods having wrong visibility |
<nb> class LruBitmapCache extends LruCache < String , Bitmap > {
super ( maxSize ) ;
}
- @ override
- protected void entryRemoved ( boolean evicted , String key , Bitmap oldValue , Bitmap newValue ) {
- super . entryRemoved ( evicted , key , oldValue , newValue ) ;
- if ( evicted && oldValue != null ) {
... | Let bitmaps GC themselves |
<nb> public class IonBitmapCache {
ret . bitmaps = ret . bitmapsRef . get ( ) ;
SINGLE
if ( ret . bitmaps != null ) {
+ cache . remove ( key ) ;
+ cache . put ( key , ret ) ;
System . out . println ( STRING0 ) ;
return ret ;
} | Fix up crash around weak ref usage |
<nb> public class ShadowAdapterView extends ShadowViewGroup {
@ implementation
public void setAdapter ( Adapter adapter ) {
this . adapter = adapter ;
- adapter . registerDataSetObserver ( new AdapterViewDataSetObserver ( ) ) ;
+
+ if ( null != adapter ) {
+ adapter . registerDataSetObserver ( new Adapter... | Modified ShadowAdapterView setAdapter to tolerate being passed a null adapter |
<nb> public class ScopeProvider {
return classObjectDescriptor . getScopeForMemberDeclarationResolution ( ) ;
}
- throw new IllegalStateException ( STRING0 + jetDeclaration + STRING1 + jetDeclaration . getText ( ) ) ;
+ throw new IllegalStateException ( STRING0 + jetDeclaration + STRING2 +
+ JetPsiUtil . ge... | Add information about declaration |
<nb> public class EpisodeDetailsFragment extends SherlockListFragment implements
. append ( STRING0 ) ;
}
airTimeAndNumberText . setSpan ( new TextAppearanceSpan ( mContext ,
- R . style . TextAppearance_XSmall_Dim ) , numberStartIndex ,
+ R . style . TextAppearance_Small_Dim ) , numberStartIndex ,
airTimeA... | Fix text size of episode number in details |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JNITableSpecTest {
}
private List < ? > columnTypes ( ) {
- return Array... | Updated failing unit test |
<nb> public class PydevConsoleExecuteActionHandler extends ConsoleExecuteActionHandle
private void processOneLine ( String line ) {
int indentSize = IndentHelperImpl . getIndent ( getProject ( ) , PythonFileType . INSTANCE , line , false ) ;
+ line = StringUtil . trimTrailing ( line ) ;
if ( StringUtil . isEm... | Strim trailing spaces in console executed lines |
<nb> public class WarPackagingTests {
private static final Set < String > TOMCAT_EXPECTED_IN_WEB_INF_LIB_PROVIDED = new HashSet < String > (
Arrays . asList ( STRING0 , STRING1 ,
- STRING2 , STRING3 ,
- STRING4 ) ) ;
+ STRING2 , STRING4 ) ) ;
private static final Set < String > JETTY_EXPECTED_IN_WEB_INF... | Fix broken tomcat juli gradle test |
<nb> public class GenericExporter {
File file = files . pop ( ) ;
for ( File child : file . listFiles ( ) ) {
if ( child . getName ( ) . endsWith ( STRING0 ) ) {
- String fileName = child . getPath ( ) . substring ( packagePath . length ( ) + NUMBER0 ) . replace ( STRING1 , STRING2 ) ;
+ String fileName = chi... | simplified classloader handling |
<nb> public interface OfflinePlayer extends ServerOperator , AnimalTamer , Configuratio
COMMENT
COMMENT
public boolean hasPlayedBefore ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Location getBedSpawnLocation ( ) ;
+
}
<nb> public interface Player extends Huma... | Add Player setBedSpawnLocation Location |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class Gradient {
}
mInterpolator = interpolator ;
mColorMapSize = colorMapSize ;
- this . mColors = colors ;
- this . mStartPoints = startPoints ;
+ System . arraycopy ( ... | copied colors and start point arrays |
<nb> public class CommunityEditionModule
File storeDir = platformModule . storeDir ;
DataSourceManager dataSourceManager = platformModule . dataSourceManager ;
LifeSupport life = platformModule . life ;
+ life . add ( platformModule . dataSourceManager ) ;
+
GraphDatabaseFacade graphDatabaseFacade = platfor... | Edition modules add data source module to life |
<nb> public class Platform {
SINGLE
String decodedPath ;
try {
- decodedPath = pathURL . toURI ( ) . getPath ( ) ;
+ decodedPath = pathURL . toURI ( ) . getSchemeSpecificPart ( ) ;
} catch ( URISyntaxException e ) {
e . printStackTrace ( ) ;
return null ;
<nb> public class PApplet implements PConstant... | Fix running PDE from network locations |
<nb> public class ApiOriginFilter implements javax . servlet . Filter {
HttpServletResponse res = ( HttpServletResponse ) response ;
res . addHeader ( STRING0 , STRING1 ) ;
res . addHeader ( STRING2 , STRING3 ) ;
- res . addHeader ( STRING4 , STRING5 ) ;
+ res . addHeader ( STRING4 , STRING6 ) ;
chain . doF... | added fallback for integer without format |
<nb> public class BackendCompilerWrapper {
}
}
finally {
- if ( fileToDelete != null && myCompileContext . getMessageCount ( CompilerMessageCategory . ERROR ) == NUMBER0 ) {
+ if ( fileToDelete != null ) {
FileUtil . asyncDelete ( fileToDelete ) ;
}
} | revert wrong change |
<nb> public abstract class AbstractTarget implements Target {
libs . addAll ( Arrays . asList ( STRING0 , new File ( p ) . getAbsolutePath ( ) , STRING1 ) ) ;
}
} else {
- SINGLE
- libs . add ( STRING2 + p ) ;
+ SINGLE
+ libs . add ( STRING2 + p ) ;
}
}
} | Changed tabs spaces |
<nb> public class AndroidSdk {
String [ ] possiblePaths = {
sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool ,
+ sdkPath + STRING0 + PLATFORM_TOOLS_FOLDER_NAME + STRING0 + tool + STRING1 ,
getPlatform ( ) + STRING2 + tool ,
- sdkPath + STRING2 + tool
+ getPlatform ( ) + STRING2 + tool + STR... | Allow tools to be named |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- abstract class AbstractLoader
+ public abstract class AbstractLoader
extends DefaultHandler
{
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class ConfigurationLoader
+ public class ConfigurationLoader
extends AbstractLoader
{ ... | Changed the scope to be public |
<nb> import NAMESPACE ;
}
}
if ( source != null ) {
- source . release ( ) ;
+ try {
+ source . release ( ) ;
+ } catch ( RuntimeException e ) {
+ SINGLE
+ Log . e ( TAG , STRING0 , e ) ;
+ }
source = null ;
}
} | Suppress source release failures |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class IkTokenizerFactory extends AbstractTokenizerFactory {
private boolean useSmart = false ;
+ @ inject
public IkTokeniz... | add Inject Annotate to IkTokenizerFactory |
<nb> public class TraverseOptions implements Serializable , Cloneable {
COMMENT
COMMENT
COMMENT
- public int minTransferTime = NUMBER0 * NUMBER1 ;
+ SINGLE
+ SINGLE
+ public int minTransferTime = NUMBER2 ;
public int maxTransfers = NUMBER3 ; | Initialize minTransferTime to zero |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface XReferrersProvider < T extends XValue > {
- T getReferringObjectsValue ( ) ;
+ public abstract class XReferrersProvider < T extends XValue > {
+ public abstract T getReferringObjectsValue ( ) ;
} | Make abstract class instead of interface |
<nb> public class PeopleManagementActivity extends AppCompatActivity implements Peopl
int localBlogId = BlogUtils . getBlogLocalId ( WordPress . getCurrentBlog ( ) ) ;
Blog blog = WordPress . getBlog ( localBlogId ) ;
- FragmentManager fragmentManager = getFragmentManager ( ) ;
- PeopleListFragment peopleList... | Only create people list fragment for the first time fixes rotation issue |
<nb> public class DirectoryFragment extends Fragment {
SINGLE
final int originalPos = position ;
final int size = mMarkedForDeletion . size ( ) ;
- for ( int i = NUMBER0 ; i <= size ; ++ i ) {
+ for ( int i = NUMBER0 ; i < size ; ++ i ) {
SINGLE
SINGLE
if ( mMarkedForDeletion . keyAt ( i ) <= position &... | Fix a crash during file deletion |
<nb> public class CompactionController
long minTimestamp = Long . MAX_VALUE ;
for ( SSTableReader sstable : overlapping )
- minTimestamp = Math . min ( minTimestamp , sstable . getMinTimestamp ( ) ) ;
+ {
+ SINGLE
+ SINGLE
+ if ( sstable . getSSTableMetadata ( ) . maxLocalDeletionTime >= gcBefore )
+ ... | Ignore fully expired sstables when finding min timestamp |
<nb> public class ScheduledStopPattern {
}
public static ScheduledStopPattern fromTrip ( Trip trip , List < StopTime > stopTimes ) {
- ArrayList < Stop > stops = new ArrayList < Stop > ( ) ;
- ArrayList < Integer > pickups = new ArrayList < Integer > ( ) ;
- ArrayList < Integer > dropoffs = new ArrayList < ... | Slightly improve graph building performance when creating a |
<nb> public class BindyKeyValuePairFactory extends BindyAbstractFactory implements Bi
String targetClass = oneToMany . mappedTo ( ) ;
- if ( targetClass != STRING0 ) {
+ if ( ! targetClass . equals ( STRING0 ) ) {
SINGLE
SINGLE
Class cl = null ;
try {
cl = Thread . currentThread ( ) . getContextCl... | Solve last checkstyle errors |
<nb> public class AppleBundle extends AbstractBuildRule implements HasPostBuildSteps ,
binary . get ( ) . getPathToOutput ( ) ,
bundleBinaryPath ) ) ;
if ( debugInfoFormat == DebugInfoFormat . DSYM ) {
+ buildableContext . recordArtifact ( dsymPath ) ;
stepsBuilder . add (
new DsymStep (
getProjectFilesys... | Record the dsym |
<nb> public class AsyncHttpClient {
return ;
}
}
- AsyncHttpRequest newReq = new AsyncHttpRequest ( redirect , AsyncHttpGet . METHOD ) ;
+ AsyncHttpRequest newReq = new AsyncHttpRequest ( redirect , request . getMethod ( ) ) ;
newReq . executionTime = request . executionTime ;
newReq . logLevel = request ... | keep originally requested method when handling a redirect |
<nb> public class IssueHandlers implements BatchExtension {
@ override
public IssueHandler . Context assign ( @ nullable String assignee ) {
- updater . assign ( issue , new DefaultUser ( ) . setLogin ( assignee ) . setName ( assignee ) , changeContext ) ;
+ User user = null ;
+ if ( assignee != null ) {
... | Fixed quality issue |
<nb> public class BubbleChartActivity extends ActionBarActivity {
}
if ( id == R . id . action_animate ) {
prepareDataAnimation ( ) ;
+ chart . startDataAnimation ( ) ;
return true ;
}
if ( id == R . id . action_toggle_selection_mode ) {
<nb> public class BubbleChartActivity extends ActionBarActivity { ... | Refactored BubbleChart samples |
<nb> public class LazyClassDescriptor extends ClassDescriptorBase implements ClassDes
}
List < KtTypeParameter > typeParameters = typeParameterList . getParameters ( ) ;
+ if ( typeParameters . isEmpty ( ) ) return Collections . emptyList ( ) ;
List < TypeParameterDescriptor > parameters = new ArrayList < T... | Don t generate new empty list with TypeParameterDescriptor |
<nb> public class Reporter {
public void cannotCallRealMethodOnInterface ( ) {
throw new MockitoException ( join (
- STRING0 ,
+ STRING1 ,
STRING2 ,
- STRING3 ,
+ STRING4 ,
STRING5
) ) ;
} | Inform the user immediately when she tries to callRealMethod on a mock of a interface |
<nb> public class TestTransactionEvents extends AbstractNeo4jTestCase
public void afterCommit ( TransactionData data , T state )
{
+ assertNotNull ( data ) ;
this . receivedState = state ;
this . afterCommit = counter ++ ;
}
public void afterRollback ( TransactionData data , T state )
{
+ assertNo... | Also added tests for the afterCommit getting no data issue |
<nb> class EditVarConstraintsDialog extends DialogWrapper {
containedInConstraints . setVisible ( false ) ;
withinCombo . getComboBox ( ) . setEditable ( true ) ;
+ customScriptCode . getTextField ( ) . getDocument ( ) . putProperty ( STRING0 , null ) ; SINGLE
customScriptCode . getButton ( ) . addActionListe... | do not remove newlines from script constraint |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ configuration
- @ conditionalonclass ( GzipFilter . class )
+ @ conditionalonclass ( { GzipFilter . class , HttpMethod . class } )
@... | Make GzipFilterAutoConfiguration conditional on HttpMethod |
<nb>
package NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
public enum AmazonSku {
- SERIESGUIDE_SUB ( STRING0 ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ SERIESGUIDE_SUB ( STRING0 ) ,
+ COMMENT
+ COMMENT
+ COMMENT
+ SERIESGUIDE_PASS ( STRING1 ) ;
private final String sku ;
<nb> publ... | Add pass Amazon SKU |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed closing code tag in Application |
<nb> public class DashFavoritesFragment extends DashBaseFragment {
- private void setupFavorites ( ) {
+ public void setupFavorites ( ) {
View mainView = getView ( ) ;
final FavouritesDbHelper helper = getMyApplication ( ) . getFavorites ( ) ;
points = new ArrayList < FavouritePoint > ( helper . getFavo... | make setupFavorites public |
<nb> public class FlagTask extends AsyncTask < Void , Integer , Integer > {
}
break ;
case EPISODE_COLLECTED :
+ case SEASON_COLLECTED :
if ( mIsFlag ) {
message = R . string . trakt_collected ;
} else {
<nb> public class FlagTask extends AsyncTask < Void , Integer , Integer > {
}
}
- if ( mActi... | Fix crash due to missing confirm collected notification |
<nb> public interface TimeLimiter {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Delete warning that TimeLimiter might be changed significantly |
<nb> public class Am extends BaseCommand {
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
STRING5 +
STRING6 +
STRING7 + | Fix a typo |
<nb> public class DeploymentScannerDefinition extends SimpleResourceDefinition {
new SimpleAttributeDefinitionBuilder ( CommonAttributes . DEPLOYMENT_TIMEOUT , ModelType . LONG , true )
. setXmlName ( Attribute . DEPLOYMENT_TIMEOUT . getLocalName ( ) )
. setAllowExpression ( true )
- . setDefaultValue ( new Mod... | Align deployment timeout default with the xsd |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
... | Some initial fetching strategy comments |
<nb> public class Simulation implements Disposable {
vertices [ idx ++ ] = FLOAT0 + column * FLOAT0 ;
vertices [ idx ++ ] = FLOAT0 + row * FLOAT0 ;
- final int t = row * column * NUMBER0 ;
+ final int t = ( NUMBER0 * row + column ) * NUMBER0 ;
indices [ index ++ ] = ( short ) ( t ) ;
indices [ index ++ ] ... | Fix invaders explosion |
<nb> public abstract class ResourceTest {
modules . add ( module ) ;
}
+ protected Json getJson ( ) {
+ return new Json ( ) ;
+ }
+
protected Client client ( ) {
return test . client ( ) ;
}
<nb> public abstract class ResourceTest {
for ( Class < ? > provider : providers ) {
config . getClasse... | Allow implementations of ResourceTest to supply their own implementation of Json |
<nb> public class ShellInteractionManager implements ShellOutputWriter
display_ . addCapturingKeyDownHandler ( new InputKeyDownHandler ( ) ) ;
}
- public void setPublicKeyInfo ( PublicKeyInfo publicKeyInfo )
- {
- publicKeyInfo_ = publicKeyInfo ;
- }
-
public void setHistoryEnabled ( boolean enabled )... | eliminate unused setPublicKeyInfo method from ShellInteractionManager |
<nb> public class DeepLearningV3 extends ModelBuilderSchema < DeepLearning , DeepLearning
@ api ( help = STRING0 , values = { STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } , required = false , level = API . Level . secondary , direction = API . Direction . INOUT , gridable = true )
public DeepLearningParameters... | Add Huber and Laplace loss to DL |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BuiltInCheckerSuppliers {
ArraysAsListPrimitiveArray . class ,
AssistedInjectScoping . class ,
AssistedParameters . class... | Fix integration of AsyncCallableReturnsNull |
<nb> public class FileResource extends Resource
_file = file ;
URI file_uri = _file . toURI ( ) ;
_uri = normalizeURI ( _file , uri ) ;
-
- if ( ! _uri . equals ( file_uri ) && ! _uri . toString ( ) . equals ( file_uri . toString ( ) ) )
+
+ if ( ! _uri . equals ( file_uri . toString ( ) ) )
{
SINGLE ... | FileResource string compare fix |
<nb> public class DiscoveryClient implements LookupService {
SINGLE
scheduler . scheduleWithFixedDelay ( new InstanceInfoReplicator ( ) ,
- NUMBER0 * NUMBER1 + clientConfig . getInstanceInfoReplicationIntervalSeconds ( ) ,
+ NUMBER0 + clientConfig . getInstanceInfoReplicationIntervalSeconds ( ) ,
clientConf... | Fixing the scheduling delay for InstanceInfoReplicator |
<nb> public class SuggestStatsTests extends ElasticsearchIntegrationTest {
SINGLE
assertThat ( indicesStats . getTotal ( ) . getSuggest ( ) . getTimeInMillis ( ) , greaterThan ( NUMBER0 l ) ) ;
- assertThat ( indicesStats . getTotal ( ) . getSuggest ( ) . getTimeInMillis ( ) , lessThanOrEqualTo ( endTime - star... | TEST use a real upperbound for the check on the time spend during suggestions |
<nb> public class MailSubsystem20TestCase extends AbstractSubsystemBaseTest {
return readResource ( STRING0 ) ;
}
+ @ override
+ protected String getSubsystemXsdPath ( ) throws Exception {
+ return STRING1 ;
+ }
+
+ @ override
+ protected String [ ] getSubsystemTemplatePaths ( ) throws IOException {... | add XML validation for mail subsystem |
<nb> public class SimpleResourceManagementStrategy implements ResourceManagementStrat
. toList ( ) ;
if ( laziestWorkerIps . isEmpty ( ) ) {
- log . info ( STRING0 ) ;
+ log . info ( STRING0 , excessWorkers ) ;
} else {
log . info (
STRING1 , | Fix termination related log message |
<nb> public class NetworkUtilsTest {
logger . debug ( STRING0 , localHost . getCanonicalHostName ( ) ) ;
}
- @ test
+
public void testGetMachineName2 ( ) {
String machineName = NetworkUtils . getMachineName ( ) ;
Assert . assertNotSame ( machineName , NetworkUtils . ERROR_HOST_NAME ) ; | modified not to test a deprecated method testGetMachineName2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.