diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public abstract class PullToRefreshAdapterViewBase < T extends AbsListView > extend
if ( null != onLastItemVisibleListener ) {
SINGLE
- if ( visibleItemCount > NUMBER0 && visibleItemCount < totalItemCount
- && ( firstVisibleItem + visibleItemCount == totalItemCount ) ) {
+ if ( visibleItemCount > NUMBE... | Allow OnLastItemVisibleListener to fire if the Initial batch of items can t fill the AdapterView |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CCCreateAnswerPlaceholderPanel {
private void updateHintNumberLabel ( ) {
if ( myHints . size ( ) > NUMBER0 ) {
- myHin... | Cosmetics Make hint number color number gray |
<nb> public class BasicTests extends BaseClassForTests
final int CONNECTION_TIMEOUT_MS = NUMBER0 ;
CuratorZookeeperClient client = new CuratorZookeeperClient ( server . getConnectString ( ) , NUMBER1 , CONNECTION_TIMEOUT_MS , null , new RetryOneTime ( NUMBER2 ) ) ;
- client . start ( ) ;
try
{
Assert . as... | Fixed a broken very old test |
<nb> public final class ContactsContract {
public static final Uri CONTENT_SUMMARY_STREQUENT_FILTER_URI = Uri . withAppendedPath (
CONTENT_SUMMARY_STREQUENT_URI , STRING0 ) ;
+ public static final Uri CONTENT_SUMMARY_GROUP_URI = Uri . withAppendedPath (
+ CONTENT_SUMMARY_URI , STRING1 ) ;
+
COMMENT
COMM... | Add Uri for filtering the aggregate summary on group name |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class GitHandler {
myProcess = startProcess ( ) ;
startHandlingStreams ( ) ;
}
+ catch ( ProcessCanceledException pc... | git handle PCE separately |
<nb> public final class CallManager {
public boolean getMute ( ) {
if ( hasActiveFgCall ( ) ) {
return getActiveFgCall ( ) . getPhone ( ) . getMute ( ) ;
+ } else if ( hasActiveBgCall ( ) ) {
+ return getFirstActiveBgCall ( ) . getPhone ( ) . getMute ( ) ;
}
return false ;
}
<nb> public class SipPhone... | Get mute state from active call |
<nb> import NAMESPACE ;
public class CompilerConfig
{
private boolean interpreterEnabled = true ;
- private boolean useNewByteCodeGenerator = true ;
public boolean isInterpreterEnabled ( )
{ | Remove unused field from CompilerConfig |
<nb> final class SettingsTreeView extends JComponent implements Disposable , OptionsEd
myFilter = filter ;
myRoot = new MyRoot ( groups ) ;
myTree = new MyTree ( ) ;
+ myTree . putClientProperty ( WideSelectionTreeUI . TREE_TABLE_TREE_KEY , Boolean . TRUE ) ;
myTree . setBackground ( UIUtil . getSidePanelColo... | don t paint unfocused tree selection |
<nb> public class ValueAnimator extends Animator {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix docs build |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class CorefChain implements Serializable {
Collections . sort ( mentions , new CorefMentionComparator ( ) ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void delet... | Actually fix the build |
<nb> public class PythonDocumentationProvider extends QuickDocumentationProvider {
}
else if ( element instanceof PyFile ) {
SINGLE
- prolog_cat . add ( STRING0 ) ;
}
else { SINGLE
doc_cat . add ( combUp ( PyUtil . getReadableRepr ( element , false ) ) ) ; | Removed unneeded info in module s quickdoc |
<nb> class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
public int getFoldingAreaWidth ( ) {
return isFoldingOutlineShown ( )
? getFoldingAnchorWidth ( ) + NUMBER0
- : isLineNumbersShown ( ) ? getFoldingAnchorWidth ( ) / NUMBER0 : NUMBER1 ;
+ : NUMBER1 ;
}
@ override | remove unneeded extra padding in gutter when code folding outline is hidden but line numbers are shown |
<nb> package 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... | don t hard code product name |
<nb> public class MetaContactImpl
? NUMBER0
: NUMBER1 ;
- return ( ( NUMBER2 - isOnline ) - ( NUMBER2 - targetIsOnline ) ) * NUMBER3
+ return ( ( NUMBER2 - isOnline ) - ( NUMBER2 - targetIsOnline ) ) * NUMBER4
+ getDisplayName ( ) . compareToIgnoreCase ( target . getDisplayName ( ) )
COMMENT
+ getMetaUI... | fixed a bug comparing non latin display names |
<nb> public class ParcelableAction extends AnAction {
@ override
public void update ( AnActionEvent e ) {
PsiClass psiClass = getPsiClassFromContext ( e ) ;
- e . getPresentation ( ) . setEnabled ( psiClass != null ) ;
+ e . getPresentation ( ) . setEnabled ( psiClass != null && ! psiClass . isEnum ( ) && ! p... | Generate menu shows Parcelable for Interfaces and Enums |
<nb> public abstract class AbstractBlockChain {
COMMENT
COMMENT
public void addListener ( BlockChainListener listener ) {
- addListener ( listener , Threading . SAME_THREAD ) ;
+ addListener ( listener , Threading . USER_THREAD ) ;
}
COMMENT | Correct the default thread used by AbstractBlockChain addListener |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
<nb> public class FlagTapedTask implements Task < FlagTapedTask . Callback > {
@ override
public void run ( ) {
SINGLE
- if ( ! AndroidUtils . isNetworkConnected ( mContext ) ... | Only execute trakt action on allowed connection |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GroovyAnnotator implements Annotator {
PsiElement resolved = refElement . resolve ( ) ;
if ( reso... | set error style |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TellstickBinding extends AbstractActiveBinding < TellstickBindingProv
@ override
public void onRequest ( TellstickSensorEvent sensorEvent ) {
controller . set... | Added the current minute to the cache string |
<nb> public final class HikariPool implements HikariPoolMBean , IBagStateListener
return configuration . getConnectionCustomizer ( ) ;
}
- private void logPoolState ( String . . . prefix )
+ public void logPoolState ( String . . . prefix )
{
if ( LOGGER . isDebugEnabled ( ) ) {
LOGGER . debug ( STRING0 ... | Make logPoolState public for testing |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BuildoutCfgSyntaxHighlighter extends SyntaxHighlighterBase implemen
static final String BRACKETS_ID = STRING0 ;
- publ... | remove usage of SyntaxHighlighterColors |
<nb> public class SwipeDismissTouchListener implements View . OnTouchListener {
. setDuration ( mAnimationTime )
. setListener ( null ) ;
}
- mVelocityTracker . recycle ( ) ;
- mVelocityTracker = null ;
+ if ( mVelocityTracker != null ) {
+ mVelocityTracker . recycle ( ) ;
+ mVelocityTracker = null ;
... | recycle VelocityTracker only if not null |
<nb> public class ClearScrollResponse extends ActionResponse implements StatusToXCont
@ override
public XContentBuilder toXContent ( XContentBuilder builder , Params params ) throws IOException {
- builder . startObject ( ) ;
- builder . endObject ( ) ;
return builder ;
} | Removed useless and illegal json object in the response |
<nb> public class Value extends Iced implements ForkJoinPool . ManagedBlocker {
if ( pojo != null ) return pojo ;
pojo = TypeMap . newFreezable ( _type ) ;
pojo . read ( new AutoBuffer ( memOrLoad ( ) ) ) ;
+ if ( pojo instanceof Iced ) ( ( Iced ) pojo ) . init ( _key ) ;
return ( _pojo = pojo ) ;
}
<nb... | Possibly fix an unusual NPE |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NavigationDrawerListAdapter extends BaseAdapter {
String username = account . name . substring ( NUMBER0 , lastAtP... | removed dependency to Hex |
<nb> public class WorldEdit extends Plugin {
loader . addListener ( PluginLoader . Hook . LOGIN , listener , this ,
PluginListener . Priority . MEDIUM ) ;
- logger . log ( Level . INFO , STRING0 + getVersion ( ) + STRING1 ) ;
+ logger . log ( Level . INFO , STRING0 + getVersion ( ) + STRING2 ) ;
}
COMME... | Removed period at the end of the version message for consistency reasons |
<nb> public final class TSDB {
collector . record ( STRING0 , uid . cacheSize ( ) , STRING1 + uid . kind ( ) ) ;
}
+ COMMENT
+ public static short metrics_width ( ) {
+ return METRICS_WIDTH ;
+ }
+
+ COMMENT
+ public static short tagk_width ( ) {
+ return TAG_NAME_WIDTH ;
+ }
+
+ COMMENT
+... | Add accessors to get the metric tag and tagv widths in TSDB |
<nb> public class GroupInfoFragment extends BaseFragment {
SINGLE
TextView memberCount = ( TextView ) header . findViewById ( R . id . membersCount ) ;
- memberCount . setText ( groupInfo . getMembersCount ( ) ) ;
+ memberCount . setText ( groupInfo . getMembersCount ( ) + STRING0 ) ;
memberCount . setTextC... | set members count string |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class FragmentStatePagerAdapter extends RecyclerView . Adapter < Fra
public final FragmentViewHolder onCreateViewHolder ( ViewGroup parent , ... | resolve id conflict |
<nb> public class SpecialPhrases {
}
- SINGLE
- is . close ( ) ;
- br . close ( ) ;
} finally {
Algoritms . closeStream ( is ) ;
Algoritms . closeStream ( br ) ; | remove obsolete closes |
<nb> public class CallSipImpl
OperationFailedException . INTERNAL_ERROR , ex , logger ) ;
}
SINGLE
- CallPeerSipImpl callPeer =
- createCallPeerFor ( inviteTransaction , jainSipProvider ) ;
+ CallPeerSipImpl callPeer
+ = createCallPeerFor ( inviteTransaction , jainSipProvider ) ;
callPeer . invite ( )... | Prevents the SIP provider from reporting a new call every time a new peer is added to an existing call |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
class AssetBitmapHunter extends BitmapHunter {
+ protected static final String ANDROID_ASSET = STRING0 ;
+ private static final int ASSET_PREFIX_LENGTH =
+ ( SCHEME_FILE + STRING1 + AN... | Move declaration to AssetBtimapHunter |
<nb> public class JmsConsumer extends DefaultConsumer implements SuspendableService {
}
} ) ;
} else {
- prepareAndStartListenerContainer ( ) ;
+ stopAndDestroyListenerContainer ( ) ;
}
} | Added option asyncStopListener to camel jms to stop using async thread |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FeedFileSourcesBinaryData extends BaseDataChange {
if ( StringUtils . isNotEmpty ( s ) ) {
lineBuilder . setScmAuthor ( s )... | Fix quality flaw |
<nb> public class AtmosphereServlet extends HttpServlet {
@ override
public void destroy ( ) {
- if ( framework != null ) framework . destroy ( ) ;
+ if ( framework != null ) {
+ framework . destroy ( ) ;
+ framework = null ;
+ }
}
@ override | Set the framework null in case the underlying container re use the Servlet instance after a redeployment |
<nb> class BluetoothEventLoop {
addDevice ( address , properties ) ;
}
}
- mBluetoothService . getBondState ( ) . setBondState ( address , BluetoothDevice . BOND_BONDING ) ;
return ;
}
<nb> class BluetoothEventLoop {
mBluetoothService . cancelPairingUserInput ( address ) ;
return null ;
}
+ SING... | Set the bonding for incoming connections only when authentication is requested |
<nb> public class TestRemoteIpFilter extends TomcatBaseTest {
private static final long serialVersionUID = NUMBER0 ;
- HttpServletRequest request ;
+ private transient HttpServletRequest request ;
public HttpServletRequest getRequest ( ) {
return request ; | Fix FindBugs issues in this class |
<nb> public class Button extends Table {
public Button ( ButtonStyle style ) {
initialize ( ) ;
setStyle ( style ) ;
+ setWidth ( getPrefWidth ( ) ) ;
+ setHeight ( getPrefHeight ( ) ) ;
+ }
+
+ COMMENT
+ protected Button ( ) {
+ initialize ( ) ;
}
private void initialize ( ) {
<nb> public c... | Put back sizing button avoid layout for subclasses differently |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb>
package NAMESPACE ;
... | removed a few unused imports |
<nb> public class TokensRegexNERAnnotator implements Annotator {
private final Pattern validPosPattern ;
private final boolean verbose ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ public TokensRegexNERAnnotator ( String mapping ) {
+ this ( mapping , false ) ;
+ }
+
+ public Tok... | Add more constructors to TokensRegexNERAnnotator |
<nb> public abstract class PageCacheTest < T extends PageCache >
assertThrows ( exceptionType , ( ) - > testTemplate . accept ( ( cursor ) - > cursor . putShort ( NUMBER0 , ( short ) NUMBER1 ) ) ) ;
}
- private void assertThrows ( Class < ? extends Exception > exceptionType , ThrowingAction action )
+ private... | Avoid raw types in PageCacheTest assertThrows |
<nb> public class EditorSearchComponent extends JPanel implements DataProvider , Selec
myDocumentListener = null ;
}
myLivePreview . cleanUp ( ) ;
+ myLivePreview . dispose ( ) ;
if ( myListeningSelection ) {
myEditor . getSelectionModel ( ) . removeSelectionListener ( this ) ;
}
<nb> public class LiveP... | tabs switching issue |
<nb> public final class LocalFileUrl implements Url {
public int hashCode ( ) {
return path . hashCode ( ) ;
}
- }
+ } | we should split path by as path separator Show splitted path in case of windows |
<nb> public class Parse implements Tokens {
while ( m . find ( ) ) {
String name = m . group ( NUMBER0 ) ;
String val = m . group ( NUMBER1 ) ;
+ val = val . trim ( ) ;
name = STRING0 + name + STRING0 ;
if ( val . startsWith ( STRING1 ) && val . endsWith ( STRING2 ) ) {
val = val . substring ( NUMBER0 , v... | added support for having lists and maps as attribute values in GSPs |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Functionizer extends TreeVisitor {
@ override
public void endVisit ( MethodDeclaration node ) {
... | Put functionized function definitions next to the corresponding method |
<nb> public class PShapeOpenGL extends PShape {
return ;
}
- if ( vertexCodes [ index ] != VERTEX ) {
- PGraphics . showWarning ( NOT_A_SIMPLE_VERTEX , STRING0 ) ;
- return ;
- }
-
SINGLE
SINGLE
SINGLE
SINGLE
SINGLE
if ( family == PATH ) {
+ if ( vertexCodes != null && vertexCodeCount > NU... | Fix null pointer exception in setVertex |
<nb> public class OCIUtils
String curAlias = null ;
String line ;
while ( ( line = reader . readLine ( ) ) != null ) {
- if ( line . isEmpty ( ) || line . trim ( ) . startsWith ( STRING0 ) ) {
+ final String trimmedLine = line . trim ( ) ;
+ if ( trimmedLine . isEmpty ( ) || trimmedLine . startsWith ( STRIN... | TNS names parse fix remove comments |
<nb> public class ProfilerEditingTarget implements EditingTarget ,
@ override
public void onResponseReceived ( String response )
{
- selectedPath_ = file ;
selectedLine_ = line ;
hasValidPath_ = ! StringUtil . isNullOrEmpty ( response ) ;
+ selectedPath_ = hasValidPath_ ? response : file ;
commands_ .... | add support for go to profile sources using enhanced path |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
@ notnull
private Color getCaretRowBackground ( ) {
Color color = myScheme . getColor ( EditorColors . CARET_ROW_COLOR ) ;
- return color == null ? myScheme . getDefaultBackground ( ) : color ;
+ return color == null ? getB... | consider custom background color |
<nb> public abstract class AbstractFuture < V > implements ListenableFuture < V > {
return result ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
-... | Remove no arg AbstractFuture cancel updating final caller |
<nb> final class SendResultFuture < T > implements Future < Void > , WebSocketCallback < T > {
throw new IllegalStateException ( ) ;
}
exception = throwable ;
+ done = true ;
if ( waiters > NUMBER0 ) {
notifyAll ( ) ;
} | Fix bug in SendResultFuture |
<nb> public class ManagedProxyFactory {
}
Constructor < ? extends T > constructor = generatedClass . getConstructor ( ModelElementState . class ) ;
return constructor . newInstance ( state ) ;
- } catch ( NoSuchMethodException e ) {
- throw UncheckedException . throwAsUncheckedException ( e ) ;
} catch ( In... | Simplify exception handling |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class CullTest extends GdxTest implements ApplicationListener { | fixed CullTest wtf |
<nb> public interface Player extends HumanEntity , CommandSender , OfflinePlayer , Plugi
COMMENT
COMMENT
public Location getBedSpawnLocation ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean getAllowFlight ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Added Player set getAllowFlight methods |
<nb> public class ScorePhrasesLearnFeatWt < E extends Pattern > extends PhraseScorer < E >
if ( constVars . expandPositivesWhenSampling ) {
SINGLE
SINGLE
- Redwood . log ( STRING0 + closeToPositivesFirstIter + STRING1 ) ;
+ Redwood . log ( STRING0 + Counters . toSortedString ( closeToPositivesFirstIter , clos... | print sorted strings |
<nb> public class ClasspathJarFinder {
List < JarArchive > out = new LinkedList < JarArchive > ( ) ;
for ( File file : classpath ) {
if ( file . getName ( ) . endsWith ( STRING0 ) ) {
- out . add ( new JarArchive ( file , fileOperations . zipTree ( file ) ) ) ;
+ out . add ( new JarArchive ( file , fileOperat... | Documented one more thing TODO |
<nb> public class SandboxStage extends Stage implements ISandboxStage , IStageCloseLis
sandbox = new Sandbox ( parser , this , this ) ;
- setTitle ( STRING0 ) ;
+ setTitle ( STRING1 ) ;
splitEditorPanes = new SplitPane ( ) ;
splitEditorPanes . setOrientation ( Orientation . HORIZONTAL ) ; | Improved title for taskbar |
<nb> public final class ParseDataset2 extends Job {
byte sep = setup == null ? CsvParser . NO_SEPARATOR : setup . _separator ;
if ( setup == null || setup . _data == null || setup . _data [ NUMBER0 ] == null )
setup = csvGuessValue ( vec , sep , compression ) ;
- System . out . println ( STRING0 + setup ) ;
... | Remove debugging print |
<nb> public abstract class JavaElseUnwrapperBase extends JavaUnwrapper {
@ override
public void collectElementsToIgnore ( PsiElement element , Set < PsiElement > result ) {
- result . add ( element . getParent ( ) ) ;
+ PsiElement parent = element . getParent ( ) ;
+
+ while ( parent instanceof PsiIfState... | does not include Unwrap if for all parent ifs when else branch is selected |
<nb> public abstract class RoutingResource {
COMMENT
@ queryparam ( STRING0 ) protected List < Double > maxWalkDistance ;
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
@ queryparam ( STRING1 ) protected List < Double > walkReluctance ;
COMMENT
<nb> public class RoutingRequest imp... | Improve walk reluctance documentation |
<nb> public class Solo {
return viewFetcher . getCurrentViews ( ImageView . class ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ public ArrayList < ImageView > getCurrentImageViews ( View parent ) {
+ return viewF... | Adds getCurrentImageViews with parent parameter |
<nb> public class MetricRegistry implements MetricSet {
@ override
public Map < String , Metric > getMetrics ( ) {
- return metrics ;
+ return Collections . unmodifiableMap ( metrics ) ;
}
COMMENT | Make MetricsRegistry getMetrics return an unmodifiable map |
<nb> public class Note {
public static final String NOTE_MATCHER_TYPE = STRING0 ;
public static final String NOTE_COMMENT_LIKE_TYPE = STRING1 ;
public static final String NOTE_REBLOG_TYPE = STRING2 ;
+ public static final String NOTE_NEW_POST_TYPE = STRING3 ;
public static final String NOTE_UNKNOWN_TYPE = STR... | Adding missing file |
<nb> public class WebappClassLoader extends URLClassLoader
result . resources = this . resources ;
result . delegate = this . delegate ;
- result . state = this . state ;
+ result . state = LifecycleState . NEW ;
result . needConvert = this . needConvert ;
result . clearReferencesStatic = this . clearRefe... | Set correct state for newly created ClassLoader |
<nb> public abstract class BaseCompleteMacro implements Macro {
if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
getCompletionHandler ( ) . invoke ( project , editor , psiFile ) ;
+ return ;
}
ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) { | do not use invokeLater in test mode |
<nb> public class HashingTest extends TestCase {
Hashing . md5 ( ) . hashInt ( Integer . reverseBytes ( input ) ) ) ;
}
+ public void testHashIntVsForLoop ( ) {
+ int input = NUMBER0 ;
+ HashCode expected = Hashing . md5 ( ) . hashInt ( input ) ;
+
+ Hasher hasher = Hashing . md5 ( ) . newHasher ( ) ;
... | Add a test for hashInt vs a loop w putByte |
<nb> public class Loader
private void disableRequestedMods ( )
{
- String disabledModList = System . getProperty ( STRING0 , STRING1 ) ;
+ String disabledModList = System . getProperty ( STRING2 , STRING1 ) ;
FMLLog . fine ( STRING3 , disabledModList ) ;
Map < String , String > sysPropertyStateList = Spli... | Change property name to fml modStates not fml disabledMods it makes more sense that way |
<nb> public class PyDebugProcess extends XDebugProcess implements IPyDebugProcess , Pr
printToConsole ( STRING0 + remoteVersion + STRING1 , ConsoleViewContentType . SYSTEM_OUTPUT ) ;
if ( ! remoteVersion . equals ( currentBuild ) ) {
- printToConsole ( STRING2 , ConsoleViewContentType . ERROR_OUTPUT ) ;
+ pri... | add new line in msg |
<nb> public class WifiConfiguration implements Parcelable {
public boolean isValid ( ) {
String reason = strIsValid ( ) ;
if ( reason != null ) {
- Log . e ( STRING0 , STRING1 + reason ) ;
+ Log . e ( TAG , STRING1 + reason ) ;
return false ;
}
else { | Changed logging tag |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public interface Context extends Registry {
void redirect ( int code , String location ) throws NotInRegistryException ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COM... | Add URI overloads for redirect |
<nb> public abstract class AbstractComplexityCheck
return new int [ ] {
TokenTypes . CTOR_DEF ,
TokenTypes . METHOD_DEF ,
+ TokenTypes . INSTANCE_INIT ,
TokenTypes . STATIC_INIT ,
} ;
}
<nb> public abstract class AbstractComplexityCheck
switch ( aAST . getType ( ) ) {
case TokenTypes . CTOR_DEF :
... | added INSTANCE_INIT to member tokens |
<nb> import NAMESPACE ;
import NAMESPACE ;
class ValidationError extends Exception {
+
+ private static final long serialVersionUID = NUMBER0 ;
+
public ValidationError ( FrameworkMember < ? > member , Class < ? extends Annotation > annotation , String suffix ) {
super ( String . format ( STRING0 , anno... | Add serialver generated serialVersionUID |
<nb> public class ProcessDiagramGenerator {
GraphicInfo labelGraphicInfo = bpmnModel . getLabelGraphicInfo ( sequenceFlow . getId ( ) ) ;
if ( labelGraphicInfo != null ) {
GraphicInfo lineCenter = getLineCenter ( graphicInfoList ) ;
- processDiagramCanvas . drawLabel ( sequenceFlow . getName ( ) , ( int ) lineC... | Moved label from the center of sequence flow using labels x and y positions |
<nb> public class ServletInitialHandler implements HttpHandler , ServletDispatcher {
@ override
public void handleRequest ( final HttpServerExchange exchange ) throws Exception {
final String path = exchange . getRelativePath ( ) ;
+ if ( isForbiddenPath ( path ) ) {
+ exchange . setResponseCode ( NUMBER0 ) ;... | Reject access to WEB INF and META INF |
<nb> public class DefaultImageViewCallback implements BitmapLoader . Callback {
}
Bitmap bitmap = ok . getBitmap ( ) ;
- if ( ok instanceof MemoryRetriever . Success ) {
- imageView . setImageBitmap ( bitmap ) ;
- } else {
- imageSetter . setBitmap ( imageView , bitmap ) ;
- }
+ imageSetter . setBitma... | remove unnecessary if clause DefaultImageSetter only does imageView setImageBitmap more sophisticated ImageSetter could handle different Success classes |
<nb> public class AjpClientExchange extends AbstractAttachable implements ClientExcha
private IOException failedReason ;
private int state = NUMBER0 ;
- private final int REQUEST_TERMINATED = NUMBER1 ;
- private final int RESPONSE_TERMINATED = NUMBER1 < < NUMBER1 ;
+ private static final int REQUEST_TERMINA... | declares constant fields as static |
<nb> public class BatchInserterImpl implements BatchInserter
nodeRecord . setInUse ( true ) ;
nodeRecord . setCreated ( ) ;
nodeRecord . setNextProp ( createPropertyChain ( properties ) ) ;
+ getNodeStore ( ) . updateRecord ( nodeRecord ) ;
}
public long createRelationship ( long node1 , long node2 , Rela... | Fixed bug in create node that didn t store the created node properly |
<nb> public final class Neo4jManager extends KernelProxy implements Kernel
return configuration ;
}
- @ override
public Date getKernelStartTime ( )
{
return kernel . getKernelStartTime ( ) ;
}
- @ override
public String getKernelVersion ( )
{
return kernel . getKernelVersion ( ) ;
}
- @ ... | cleaning up override annotations |
<nb> public class ViewPagerEx extends ViewGroup {
}
}
- private void setOnPageChanged ( int position ) {
+ private void triggerOnPageChangeEvent ( int position ) {
for ( OnPageChangeListener eachListener : mOnPageChangeListeners ) {
if ( eachListener != null ) {
InfinitePagerAdapter infiniteAdapter = ( ... | Corrected method name to better follow Android convetions |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Mes... | add error message if the metric registry parameters are identical |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DefaultTaskGraphExec... | Remove unused test setup code |
<nb> public class Murmur3Partitioner extends AbstractPartitioner < LongToken >
SINGLE
if ( ! i . hasNext ( ) )
- throw new RuntimeException ( STRING0 ) ;
+ throw new RuntimeException ( STRING1 ) ;
SINGLE
if ( sortedTokens . size ( ) == NUMBER0 )
ownerships . put ( ( Token ) i . next ( ) , new Float ( FL... | Give users a clue how they called it |
<nb> public class NavigationBarView extends LinearLayout {
if ( DEBUG ) {
Slog . d ( TAG , STRING0 + mDisplay . getRotation ( ) ) ;
}
+
+ setNavigationIconHints ( mNavigationIconHints , true ) ;
}
@ override | Fix back button state issue |
<nb> public class HintManagerImpl extends HintManager implements Disposable {
public void focusLost ( final FocusEvent e ) {
SINGLE
myHideAlarm . addRequest ( new Runnable ( ) {
+ private boolean myNotFocused ; SINGLE
+
@ override
public void run ( ) {
- if ( ! JBPopupFactory . getInstance ( ) . isChild... | Fix an unexpected closing the floating navigation bar |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | adding other copyright holders |
<nb> public class MorePaths {
}
public static String pathWithUnixSeparators ( Path path ) {
- return path . toString ( ) . replace ( STRING0 , STRING1 ) ;
+ return path . toString ( ) . replace ( STRING2 , STRING3 ) ;
+ }
+
+ public static String pathWithWindowsSeparators ( Path path ) {
+ return path... | Replace string search and replace with char one |
<nb> public class IndexShardGateway extends AbstractIndexShardComponent implements Cl
}
}
}
+
+ @ override
+ public String toString ( ) {
+ return STRING0 ;
+ }
} | Add toString to IndexShardGateway |
<nb> public class DownloadRequester {
private boolean isFilenameAvailable ( String path ) {
for ( String key : downloads . keySet ( ) ) {
FeedFile f = downloads . get ( key ) ;
- if ( f . getFile_url ( ) . equals ( path ) ) {
+ if ( f . getFile_url ( ) != null && f . getFile_url ( ) . equals ( path ) ) {
if... | Fixed NullpointerException in DownloadRequester |
<nb> public class ZeppelinIT {
driver . findElement ( By . linkText ( STRING0 ) ) . click ( ) ;
SINGLE
- ( new WebDriverWait ( driver , NUMBER0 ) ) . until ( new ExpectedCondition < Boolean > ( ) {
+ ( new WebDriverWait ( driver , NUMBER1 ) ) . until ( new ExpectedCondition < Boolean > ( ) {
public Boolean ... | Wait more times |
<nb> public class ClusterInfoServiceIT extends ESIntegTestCase {
return Settings . builder ( )
SINGLE
. put ( InternalClusterInfoService . INTERNAL_CLUSTER_INFO_TIMEOUT , STRING0 )
- . putArray ( STRING1 , Plugin . class . getName ( ) , MockTransportService . TestPlugin . class . getName ( ) )
+ . putArray ( ... | Fix naming problem with test plugin |
<nb> public abstract class GrammaticalStructure extends TreeGraph {
public boolean accept ( TypedDependency d ) {
if ( d == null ) return false ;
+ if ( d . reln ( ) == GrammaticalRelation . ROOT ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ return true ;
+ }
+
TreeGraphNode s = d . dep ( ) ;
if ( s == null ... | If a punct dependency is a root dependency don t filter it |
<nb> public class NeoServer implements WrapperListener {
log . info ( STRING0 , webServerPort ) ;
webServer . setPort ( webServerPort ) ;
- SINGLE
log . info ( STRING1 , WEB_ADMIN_PATH ) ;
webServer . addStaticContent ( STATIC_CONTENT_LOCATION , WEB_ADMIN_PATH ) ; | Removed an outdated comment on web admin path |
<nb>
COMMENT
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Move TransactedPropertyPlaceholderIssueTest to the correct package |
<nb> public class ActionUtil {
presentation . putClientProperty ( WAS_ENABLED_BEFORE_DUMB , enabledBeforeUpdate ) ;
}
presentation . setEnabled ( false ) ;
- presentation . setVisible ( false ) ;
}
} | do not hide non dumb aware actions just disable them |
<nb> public class DigestMD5SaslClient implements SaslClient
else
m_realm = ( ( RealmCallback ) callbacks [ NUMBER0 ] ) . getText ( ) ;
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( m_realm == null )
+ {
+ m_realm = STRING0 ;
+ }
+
m_clientNonce = getClientNonce ( ) ;
m_name = ( ( NameCallback ) callback... | Fix NPE in DigestMD5SaslClient when realm is null |
<nb> public class FoldingStructureProvider implements com . intellij . ide . projectView . Tr
resultList . add ( fileNode ) ;
}
- FoldedDirectoryNode fileNode = new FoldedDirectoryNode ( project , viewSettings , OTHER_NODE ) ;
- fileNode . getChildren ( ) . addAll ( otherNodeList ) ;
- resultList . add ( fi... | Fixed issue when other folder was always created |
<nb> public class VolumeDialogMotion {
setDismissing ( true ) ;
if ( mShowing ) {
mDialogView . animate ( ) . cancel ( ) ;
- mContentsPositionAnimator . cancel ( ) ;
+ if ( mContentsPositionAnimator != null ) {
+ mContentsPositionAnimator . cancel ( ) ;
+ }
mContents . animate ( ) . cancel ( ) ;
- mCh... | Fix NPE found in monkey testing |
<nb> class PowerManagerService extends IPowerManager . Stub
Log . d ( TAG , STRING0 + visible ) ;
}
mKeyboardVisible = visible ;
- SINGLE
- SINGLE
- if ( visible || ( mPowerState & SCREEN_ON_BIT ) != NUMBER0 ) {
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( ( mPowerState & SCREEN_ON_BIT ) != NUMBER0 ) {
userA... | Don t wake up the screen as soon as the lid opens |
<nb> public class WebView extends AbsoluteLayout
public int findAll ( String find ) {
if ( NUMBER0 == mNativeClass ) return NUMBER0 ; SINGLE
int result = find != null ? nativeFindAll ( find . toLowerCase ( ) ,
- find . toUpperCase ( ) ) : NUMBER0 ;
+ find . toUpperCase ( ) , find . equalsIgnoreCase ( mLastFin... | Tell nativeFindAll whether the new search matches the last one |
<nb> public class DataHeaderFlyweight extends HeaderFlyweight
COMMENT
public static final short BEGIN_AND_END_FLAGS = BEGIN_FLAG | END_FLAG ;
+ public static final long DEFAULT_RESERVE_VALUE = NUMBER0 L ;
+
public static final int TERM_OFFSET_FIELD_OFFSET = NUMBER1 ;
public static final int SESSION_ID_FIE... | Java Added default reserved space value in data header |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.