diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> MAIN_LOOP :
SINGLE
if ( columnTypes == null || ncols != columnTypes . length ) {
+ int i = bits . length - NUMBER0 ;
+ for ( ; i > NUMBER1 ; -- i )
+ if ( bits [ i ] == STRING0 ) break ;
+ if ( i > NUMBER1 ) bits = Arrays . copyOf ( bits , i ) ; SINGLE
InputStream is = new ByteArrayInputStream ( bi... | Fixed guess parse setup to stop at the last full line |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestHiveConf {
@ test
public void testHiveSitePath ( ) throws Exception {
String expectedPath = HiveTestUtils . getFileFromClasspath ( STRING0 ) ;... | Fix TestHiveConf testConfProperties test case Pankit Thapar via Ashutosh Chauhan |
<nb> public abstract class AbstractDao < T , K > {
assertSinglePk ( ) ;
K key = getKeyVerified ( entity ) ;
deleteByKey ( key ) ;
- if ( identityScope != null ) {
- identityScope . remove ( key ) ;
- }
}
COMMENT | removed redundant identityScope key removal |
<nb> public class Stream extends AbstractStream implements HeaderEmitter {
buffer . put ( chunk . getBytes ( ) , chunk . getOffset ( ) + offset , thisTime ) ;
offset += thisTime ;
len -= thisTime ;
- if ( ! buffer . hasRemaining ( ) ) {
+ if ( len > NUMBER0 && ! buffer . hasRemaining ( ) ) {
+ SINGLE
+ SI... | If a write fills the buffer exactly flush shouldn t empty it |
<nb> public interface DebuggerIcons {
Icon WATCHED_VALUE_ICON = IconLoader . getIcon ( STRING0 ) ;
Icon STACK_FRAME_ICON = IconLoader . getIcon ( STRING1 ) ;
+ Icon CURRENT_THREAD_ICON = IconLoader . getIcon ( STRING2 ) ;
Icon SUSPENDED_THREAD_ICON = IconLoader . getIcon ( STRING3 ) ;
} | threads switched fixed |
<nb> public class OFileMMap extends OAbstractFile {
@ override
public void close ( ) throws IOException {
- OMMapManagerLocator . getInstance ( ) . flush ( ) ;
if ( headerBuffer != null ) {
setSoftlyClosed ( true ) ;
headerBuffer = null ;
}
+ OMMapManagerLocator . getInstance ( ) . flush ( ) ;
+
s... | Fixed file shutdown |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
- public class GoGetPackageFix extends LocalQuickFixBase {
+ public class GoGetPackageFix extends LocalQuickFixBase implements Hi... | Make go get fix more priority |
<nb> public class PackageManagerService extends IPackageManager . Stub {
private InstallArgs createInstallArgs ( int flags , String fullCodePath , String fullResourcePath ,
String nativeLibraryPath ) {
- if ( installOnSd ( flags ) || installForwardLocked ( flags ) ) {
+ final boolean isInAsec ;
+ if ( insta... | Delete old forward locked apps on upgrade |
<nb> public abstract class Neurons {
int c = ( int ) data [ i ] ;
if ( c != NUMBER0 ) cats [ ncats ++ ] = c + _dinfo . _catOffsets [ i ] - NUMBER1 ;
}
- final int n = data . length - _dinfo . _responses ;
+ final int n = data . length ; SINGLE
for ( ; i < n ; ++ i ) {
double d = data [ i ] ;
if ( _dinfo... | Do not expect response column in scoring data |
<nb> public class ViewPostFragment extends Fragment {
public void loadPost ( Post post ) {
+ SINGLE
+ if ( post == null || post . getTitle ( ) == null )
+ return ;
+
TextView title = ( TextView ) getActivity ( ) . findViewById ( R . id . postTitle ) ;
if ( post . getTitle ( ) . equals ( STRING0 ) )
... | Should fix crash in ViewPostFragment although I couldn t reproduce to find the actual cause |
<nb> public class Notification implements Parcelable
sb . append ( this . vibrate [ i ] ) ;
sb . append ( STRING0 ) ;
}
- if ( N != - NUMBER0 ) {
- sb . append ( this . vibrate [ N ] ) ;
- }
+ if ( N != - NUMBER0 ) {
+ sb . append ( this . vibrate [ N ] ) ;
+ }
sb . append ( STRING1 ) ;
} else if ... | Removed usage of tabs for indention |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class IO... | Add method to recursively delete dir for testing |
<nb>
COMMENT
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 ;
import NAMESPACE ;
impo... | Fix duplicate imports from rebase |
<nb> 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 ;
import NAMESPACE ;
<nb... | replace map with an internal concurrent version |
<nb> public class S3BackupProvider implements BackupProvider
private static final BackupConfigSpec CONFIG_THROTTLE = new BackupConfigSpec ( STRING0 , STRING1 , STRING2 , Integer . toString ( NUMBER0 * NUMBER0 ) , BackupConfigSpec . Type . INTEGER ) ;
private static final BackupConfigSpec CONFIG_BUCKET = new Backu... | Default backup key prefix doesn t need a trailing dash |
<nb> public class PGraphics extends PImage implements PConstants {
COMMENT
protected PShape createShapeFamily ( int type ) {
- showMethodWarning ( STRING0 ) ;
- return null ;
+ return new PShape ( this , type ) ;
+ SINGLE
+ SINGLE
}
<nb> public class PGraphics extends PImage implements PConstant... | add default version of createShape to PGraphics |
<nb> public class WindowManagerService extends IWindowManager . Stub
throw new SecurityException (
STRING0 ) ;
case InputManager . INPUT_EVENT_INJECTION_SUCCEEDED :
- Slog . v ( TAG , STRING1 ) ;
+ SINGLE
return true ;
case InputManager . INPUT_EVENT_INJECTION_TIMED_OUT :
Slog . w ( TAG , STRING2 ) ; | Mute a common case progress log about input injection |
<nb> import NAMESPACE ;
COMMENT
public class LexerATNSimulator extends ATNSimulator {
- public static boolean debug = false ;
- public static boolean dfa_debug = false ;
+ public static final boolean debug = false ;
+ public static final boolean dfa_debug = false ;
public static final int MIN_DFA_EDGE... | Eliminate debug and dfa_debug overhead in LexerATNSimulator by making them compile time constants |
<nb> class LogTransaction extends Transactional . AbstractTransactional implements Tran
if ( logger . isDebugEnabled ( ) )
{
ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ;
- PrintStream ps = new PrintStream ( baos ) ;
- e . printStackTrace ( ps ) ;
- ps . close ( ) ;
+ try ( PrintStream ps =... | Fix eclipse warning |
<nb> public class TagViewFragment extends TaskListFragment {
android . R . drawable . ic_dialog_alert ,
new DialogInterface . OnClickListener ( ) {
public void onClick ( DialogInterface dialog , int which ) {
+ String oldUuid = tagData . getUuid ( ) ;
tagData . setValue ( TagData . DELETION_DATE , DateUtiliti... | Fixed metadata bugs when creating a new list after becoming unauthorized |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClientMultiMapListenerStressTest {
@ beforeclass
public static void init ( ) {
- server = Hazelcast . newHazelcastInstance ( ) ;
+ Config cfg = new Config... | configured event queue capacity |
<nb> public class WindowManagerService extends IWindowManager . Stub
break ;
case TAP_OUTSIDE_STACK : {
- int stackId ;
- synchronized ( mWindowMap ) {
- stackId = ( ( DisplayContent ) msg . obj ) . stackIdFromPoint ( msg . arg1 , msg . arg2 ) ;
- }
- if ( stackId >= NUMBER0 ) {
- try {
- mActivityM... | Defer tap outside stack until multiwindows |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PostfixCompletionSettings implements PersistentStateComponent < Postf
myTemplatesState = templatesState ;
}
+ public char getShortcut ( ) {
+ return TemplateSettings . TAB_CHA... | Postfix live template should return shortcut char from settings |
<nb>
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
package NAMESPACE ;
import NAMESPACE ;
<nb> public class ClassLoaderDump implements Dumpable
}
}
}
-
- }
... | added license headers |
<nb> public class HealthCheckUtils {
}
public static String canonicalizeSiteUrl ( String siteUrl ) throws HealthCheckException {
- if ( TextUtils . isEmpty ( siteUrl ) ) {
+ if ( TextUtils . isEmpty ( siteUrl ) || TextUtils . isEmpty ( siteUrl . trim ( ) ) ) {
throw new HealthCheckException ( org . wordpres... | Cover the case were inputUrl is whitespace |
<nb> public class IWindowManagerImpl implements IWindowManager {
}
@ override
+ public void keyguardGoingAway ( ) throws RemoteException {
+ }
+
+ @ override
public void lockNow ( Bundle options ) {
SINGLE
} | implement keyguardGoingAway fixes build |
<nb> public abstract class BaseTest {
COMMENT
COMMENT
protected boolean compile ( String . . . fileNames ) {
- String classpathOption = STRING0 ;
-
- String [ ] args = new String [ ] {
- STRING1 , STRING2 , tmpdir ,
- classpathOption , tmpdir + pathSep + CLASSPATH ,
- tmpdir + STRING3 + fileName
- }... | remove stale code and fix broken build |
<nb> public class TestNGConfigurationEditor extends SettingsEditor < TestNGConfiguratio
else if ( packagesAcrossModules . isSelected ( ) ) data . setScope ( TestSearchScope . MODULE_WITH_DEPENDENCIES ) ;
}
else {
- data . setScope ( TestSearchScope . SINGLE_MODULE ) ;
+ data . setScope ( TestSearchScope . MOD... | expand scope to search |
<nb> public class PhysicsCollisionEvent extends EventObject {
public PhysicsCollisionEvent ( int type , PhysicsCollisionObject nodeA , PhysicsCollisionObject nodeB , long manifoldPointObjectId ) {
super ( nodeA ) ;
+ this . type = type ;
+ this . nodeA = nodeA ;
+ this . nodeB = nodeB ;
this . manifoldPoi... | Committed iwgeric patch for native bullet PhysicCollisionEvent |
<nb> public class SwiftUnderFileSystem extends UnderFileSystem {
COMMENT
private boolean mSimulationMode ;
+ COMMENT
private String mAccountOwner ;
+ COMMENT
private short mAccountMode ;
COMMENT | Add more comments |
<nb> public class JsonSlurper {
COMMENT
public Object parseText ( String text ) {
if ( text == null || STRING0 . equals ( text ) ) {
- throw new IllegalArgumentException ( STRING1 ) ;
+ throw new IllegalArgumentException ( STRING2 ) ;
}
return createParser ( ) . parse ( text ) ;
} | Improve exception message for parseText String |
<nb> public class AudioTrack
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public final static int WRITE_BLOCKING = NUMBER0 ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public final static int WRITE_NON_BLOCKING = NUMBER1 ; | Fix javadoc reference in AudioTrack write modes |
<nb> public class RemoteServer implements Server
}
SINGLE
- public void onWorkbenchReady ( )
+ public void initializeForMainWorkbench ( )
{
SINGLE
if ( Satellite . isSatellite ( ) )
<nb> public class Workbench implements BusyHandler ,
public void onWorkbenchLoaded ( WorkbenchLoadedEvent event )
... | rename onWorkbenchReady to initializeForMainWorkbench |
<nb> public class Compiler extends AbstractCompiler {
compilerThread = null ;
if ( dumpTraceReport ) {
Tracer . logCurrentThreadTrace ( ) ;
- tracker . outputTracerReport ( outStream == null ?
- System . out : outStream ) ;
}
Tracer . clearCurrentThreadTrace ( ) ;
}
<nb> public class Compiler extends ... | Don t print the tracker output many times |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class IssueDoc extends BaseDoc implements Issue {
@ override
public Map < String , String > attributes ( ) {
- return KeyValueFormat . parse ( (... | fix quality flaw |
<nb> public class ConnectedDataStream < IN1 , IN2 > {
protected ConnectedDataStream ( DataStream < IN1 > input1 , DataStream < IN2 > input2 ) {
this . jobGraphBuilder = input1 . streamGraph ;
this . environment = input1 . environment ;
- if ( input1 != null ) {
- this . dataStream1 = input1 . copy ( ) ;
- }... | Remove unwanted check null of input1 in ConnectedDataStream |
<nb> public class PeopleInviteFragment extends Fragment implements
checkAndSend ( ) ;
}
} ) ;
+ } else {
+ checkAndSend ( ) ;
}
} | send invite on usernames editbox empty as well |
<nb> public class ShadowMotionEvent {
}
@ implementation
+ public static MotionEvent obtain ( MotionEvent motionEvent ) {
+ return obtain ( motionEvent . getDownTime ( ) , motionEvent . getEventTime ( ) , motionEvent . getAction ( ) , motionEvent . getX ( ) , motionEvent . getY ( ) , motionEvent . getMetaStat... | Add support for obtain MotionEvent in ShadowMotionEvent |
<nb> public class UpgradeMessageBoards extends UpgradeProcess {
ps = con . prepareStatement ( _UPGRADE_MESSAGE_6 ) ;
+ ps . setString ( NUMBER0 , STRING0 ) ;
+ ps . setString ( NUMBER1 , STRING1 ) ;
+
+ ps . executeUpdate ( ) ;
+
+ ps = con . prepareStatement ( _UPGRADE_MESSAGE_7 ) ;
+
ps . setStr... | MB update script bug |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT | remove unused imports |
<nb> public class EpisodesActivity extends BaseNavDrawerActivity implements
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
- private int updateEpisodeList ( ) {
- return updateEpisodeList ( NUMBER0 ) ;
+ private void updateEpisodeList ( ) {
+ updateEpisodeList ( NUMBER0 ) ;
}
COMMENT | Drop unused return value |
<nb> public class SQLEvalVisitorUtils {
return ( ( Number ) val ) . shortValue ( ) ;
}
+ @ suppresswarnings ( STRING0 )
public static Integer castToInteger ( Object val ) {
if ( val == null ) {
return null ;
<nb> public class SQLEvalVisitorUtils {
return ( ( Number ) val ) . intValue ( ) ;
}
+ @... | fixed compile warnnings |
<nb> public class IdeErrorsDialog extends DialogWrapper implements MessagePoolListene
. setHyperlinkText (
DiagnosticBundle . message ( STRING0 ) + STRING1 + vendor + STRING2 ,
contactInfo , STRING3 ) ;
- myForeignPluginWarningLabel . setHyperlinkTarget ( STRING4 + contactInfo ) ;
+ final String target = ( St... | add mailto prefix only if contact info matches vendor email |
<nb> public class AudioService extends IAudioService . Stub {
SINGLE
private int mRingerModeMutedStreams ;
- COMMENT
+ COMMENT
+ COMMENT
private int mMuteAffectedStreams ;
COMMENT
<nb> public class AudioService extends IAudioService . Stub {
boolean isMuteAdjust = isMuteAdjust ( direction ) ;
... | Use the unresolved stream type for mute checking |
<nb> package NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import static NAMES... | Fix javadoc spacing |
<nb> public class ForcedBuildFileAttribute {
public static void forceFileToFramework ( VirtualFile file , String frameworkId , boolean value ) {
- if ( value ) { SINGLE
- String existingFrameworkId = getFrameworkIdOfBuildFile ( file ) ;
- if ( ! StringUtil . isEmpty ( existingFrameworkId ) && ! frameworkId ... | tests for phing and ant build files separation |
<nb> public abstract class AbstractChange implements Change {
String elementName = ( ( LiquibaseSerializable ) collectionType . newInstance ( ) ) . getSerializedObjectName ( ) ;
List < ParsedNode > nodes = new ArrayList < ParsedNode > ( parsedNode . getChildren ( null , param . getParameterName ( ) ) ) ;
- node... | Removed duplicated collection elements when parsing XML |
<nb> public class QueryParameterUtils {
Map < String , Deque < String > > newQueryParameters = parseQueryString ( newQueryString ) ;
SINGLE
- SINGLE
for ( Map . Entry < String , Deque < String > > entry : queryParameters . entrySet ( ) ) {
if ( ! newQueryParameters . containsKey ( entry . getKey ( ) ) ) {
... | Fix query param aggregation problem |
<nb> public class MongoStorage extends StoreFunc implements StoreMetadata {
public void putNext ( final Tuple tuple ) throws IOException {
- LOG . info ( STRING0 + tuple . toString ( ) ) ;
+ LOG . debug ( STRING0 + tuple . toString ( ) ) ;
final BasicDBObjectBuilder builder = BasicDBObjectBuilder . start ( ... | Put printing of every record as debug output not info output |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SearchEverywhereAction extends AnAction implements CustomComponentA
final Project project = e . getProject ( ) ;
if ( project == null ) return ;
+ SINGLE
+ SwingUtil... | hide active lookup when show SearchEverywhere |
<nb> public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
-
COMMENT
COMMENT
protected abstract void decode ( ChannelHandlerContext ctx , ByteBuf in , List < Object > out ) thr... | Fix and clearify javadocs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class EnvironmentObjects extends ResizeComposite
SINGLE
SINGLE
SINGLE
- SINGLE
+ SINGLE
SINGLE
SINGLE
SINGLE
- Ti... | only repeatedly retry DataGrid creation in SuperDevMode |
<nb> public interface Player extends HumanEntity , CommandSender {
public void setSneaking ( boolean sneak ) ;
COMMENT
+ COMMENT
+ COMMENT
+ public void saveData ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void loadData ( ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added interface for player saveData and player loadData |
<nb> public class ConfigurationManager
COMMENT
private static boolean autoAnswerDisableSubmenu = false ;
+ private static final String SHOW_SMILEYS_PROPERTY
+ = STRING0 ;
+
COMMENT
COMMENT
COMMENT
<nb> public class ConfigurationManager
SINGLE
isShowSmileys
= configService . getBoolean (
- ST... | Applies a patch from Boris Grozev that fixes the option that allows to disable smileys |
<nb> public abstract class BaseStatusBar extends SystemUI implements
public void onListenerConnected ( ) {
if ( DEBUG ) Log . d ( TAG , STRING0 ) ;
final StatusBarNotification [ ] notifications = getActiveNotifications ( ) ;
+ if ( notifications == null ) {
+ Log . w ( TAG , STRING1 ) ;
+ return ;
+ }
f... | Fix NPE in BaseStatusbar in onListenerConnected |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public abstract class HttpParser {
StringBuilder stringBuilder = state . stringBuilder ;
if ( stringBuilder == null ) {
stringBuilder = new StringBuilder ( ... | Handle other character sets in headers |
<nb> public class StreamRouter {
final Map < StreamRule , Boolean > result = Maps . newHashMap ( ) ;
final List < StreamRule > streamRules = getStreamRules ( stream ) ;
- msg . recordCounter ( serverStatus , STRING0 + stream . getId ( ) , streamRules . size ( ) ) ;
+ int evaluatedRulesCount = NUMBER0 ;
fo... | actually count evaluated stream rules |
<nb> public class NotificationsDetailListFragment extends ListFragment implements Not
reloadNoteBlocks ( ) ;
mRestoredNoteId = null ;
}
+
+ if ( getNote ( ) == null ) {
+ showErrorToastAndFinish ( ) ;
+ }
}
@ override
<nb> public class NotificationsDetailListFragment extends ListFragment implement... | Move the code that checks if the note obj is not null in onResume |
<nb> final class HttpQuery {
}
final DefaultHttpResponse response =
new DefaultHttpResponse ( HttpVersion . HTTP_1_1 , status ) ;
- response . setHeader ( HttpHeaders . Names . CONTENT_TYPE ,
- ( status == HttpResponseStatus . OK
- ? guessMimeType ( buf )
- : HTML_CONTENT_TYPE ) ) ; SINGLE
+ response . ... | Detect content type for error pages |
<nb> public class Trie < C extends CharSequence > {
private int childrenSize = NUMBER0 ;
protected Node parent = null ;
- protected Character character = null ; SINGLE
protected boolean isWord = false ; SINGLE
+ protected Character character = null ; SINGLE
protected Node ( Node parent , Character cha... | Updated a comment in Trie |
<nb> public final class TelecineService extends Service {
if ( showTouchesProvider . get ( ) ) {
Settings . System . putInt ( contentResolver , SHOW_TOUCHES , NUMBER0 ) ;
}
-
- stopForeground ( true COMMENT ) ;
}
@ override public void onEnd ( ) { | Don t stop foreground notification explicitly |
<nb> public class ClassPreloadingUtils {
int classNumberEstimate ,
ClassHandler handler
) throws IOException {
- Map < String , Object > resources = new HashMap < String , Object > ( classNumberEstimate ) ;
+ SINGLE
+ Map < String , Object > resources = new HashMap < String , Object > ( ( int ) ( classNumbe... | HashMap constructor takes capacity not expected size |
<nb> public class MethodDatabase implements Log {
public static boolean isJavaCore ( String className ) {
return className . startsWith ( STRING0 ) || className . startsWith ( STRING1 )
- || className . startsWith ( STRING2 ) || className . startsWith ( STRING3 ) ;
+ || className . startsWith ( STRING2 ) || (... | exclude com sun jersey from isJavaCore |
<nb> public class ClientStateMachine extends StateMachine implements IMalmoMessageLis
MinecraftForge . EVENT_BUS . register ( this ) ;
MalmoMod . MalmoMessageHandler . registerForMessage ( this , MalmoMessageType . SERVER_TEXT ) ;
}
+
+ @ override
+ public void clearErrorDetails ( )
+ {
+ super . clearE... | Fixed bug whereby old quit messages were being returned for subsequent missions |
<nb> public class XRestriction {
public static List < String > getRestrictions ( ) {
List < String > listRestriction = new ArrayList < String > ( Arrays . asList ( cRestrictionNames ) ) ;
if ( ! Boolean . parseBoolean ( XRestriction . getSetting ( null , null , XRestriction . cSettingExpert ,
- Boolean . FALSE ... | Move category shell to expert |
<nb> public class HttpConnectionTest extends BaseHttpDatabaseTest {
Assert . assertEquals ( get ( STRING0 + getDatabaseName ( ) ) . getResponse ( ) . getStatusLine ( ) . getStatusCode ( ) , NUMBER0 ) ;
}
- @ test
+
public void testTooManyConnect ( ) throws Exception {
if ( isInDevelopmentMode ( ) )
SING... | Disable HTTP test that failed randomly bad design it has to be rewritten |
<nb> public abstract class AbstractSyncableContentProvider extends SyncableContentPro
public void writeSyncDataBytes ( Account account , byte [ ] data ) {
mSyncState . writeSyncDataBytes ( mOpenHelper . getWritableDatabase ( ) , account , data ) ;
}
+
+ protected ContentProvider getSyncStateProvider ( ) {
+... | Add access to ContentProvider for SyncState |
<nb> public class RnnOutputLayer extends BaseOutputLayer {
private RnnOutputLayer ( Builder builder ) {
super ( builder ) ;
}
-
- @ noargsconstructor
+
public static class Builder extends BaseOutputLayer . Builder < Builder > {
- protected LossFunction lossFunction = LossFunction . MCXENT ;
+
+ publ... | Fix default loss function for RnnOutputLayer |
<nb> public final class Tools {
return addr . getHostName ( ) ;
}
+
+ public static String getLocalCanonicalHostname ( ) {
+ InetAddress addr = null ;
+ try {
+ addr = InetAddress . getLocalHost ( ) ;
+ } catch ( UnknownHostException ex ) {
+ return STRING0 ;
+ }
+
+ return addr . getCanonical... | write full hostname in server values |
<nb> class ReaderPostRenderer {
}
SINGLE
- sbHtml . append ( STRING0 ) . append ( mResourceVars . greyExtraLightStr ) . append ( STRING1 )
+ sbHtml
. append ( STRING2 )
. append ( STRING3 )
. append ( STRING4 ) | Remove image grey back in Reader detail |
<nb> public class ColumnFamilyStore implements ColumnFamilyStoreMBean
for ( SSTableReader reader : view . sstables )
if ( reader . selfRef ( ) . globalCount ( ) == NUMBER0 )
released . add ( reader ) ;
- logger . info ( STRING0 , released ) ;
- logger . info ( STRING1 , view . sstables ) ;
+ NoSpamLogger . ... | Reduce amount of logging calls from ColumnFamilyStore selectAndReference |
<nb> public final class DefBootstrap {
} ;
MethodHandle cacheLookup = MEGAMORPHIC_LOOKUP . bindTo ( megamorphicCache ) ;
cacheLookup = MethodHandles . dropArguments ( cacheLookup ,
- NUMBER0 , type . parameterList ( ) . subList ( NUMBER1 , type . parameterCount ( ) ) ) ;
+ NUMBER1 , type . parameterList ( ) .... | Fix bug with first param receiver on the cache lookup |
<nb> public class HttpsArgsParser extends StartArgsParser {
return new HttpsArg ( https , keystore , cert ) ;
}
- return null ;
+ throw new ParseArgException ( STRING0 ) ;
}
@ override
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ; ... | missing https arguments would throw exception |
<nb> public class GLSurfaceView extends SurfaceView implements SurfaceHolder . Callback
public void start ( GLThread thread ) throws InterruptedException {
GLThread oldThread = null ;
synchronized ( this ) {
- mMostRecentGLThread = thread ;
oldThread = mMostRecentGLThread ;
+ mMostRecentGLThread = thread ; ... | Fix stupid bug in GLThreadManager implementation |
<nb> public class ForgeVersion
SINGLE
public static final int majorVersion = NUMBER0 ;
SINGLE
- public static final int minorVersion = NUMBER1 ;
+ public static final int minorVersion = NUMBER2 ;
SINGLE
public static final int revisionVersion = NUMBER3 ;
SINGLE
- public static final int buildVersion =... | Fix version number |
<nb> public class DeterministicKeyChain implements EncryptableKeyChain {
basicKeyChain . importKeys ( lookahead ) ;
List < DeterministicKey > keys = new ArrayList < DeterministicKey > ( numberOfKeys ) ;
- for ( int i = NUMBER0 ; i <= numberOfKeys ; i ++ ) {
- keys . add ( hierarchy . get ( HDUtils . append ( ... | Simplify an unusual for loop in DKC |
<nb> import NAMESPACE ;
public interface ResourceTranscoder < Z , R > {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix spelling error in ResourceTranscoder |
<nb> public class Transformer {
COMMENT
public float [ ] generateTransformedValuesBubble ( IBubbleDataSet data , float phaseY , int from , int to ) {
- final int count = ( int ) Math . ceil ( to - from ) * NUMBER0 ; SINGLE
+ final int count = ( to - from + NUMBER1 ) * NUMBER0 ; SINGLE
float [ ] valuePoint... | Fix issue related to values not being drawn |
<nb> public class FileDeleteStrategy {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb>
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ CO... | Fix Javadoc errors |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class XtbMessageBundle implements MessageBundle {
SINGLE
private SAXParser createSAXParser ( )
throws ParserConfigurationException , SAXExcept... | Eliminate a warning by depending on a factory rather than a specific Impl |
<nb> public class MotorcycleFlagEncoder extends CarFlagEncoder
shift += reverseSpeedEncoder . getBits ( ) ;
priorityWayEncoder = new EncodedValue ( STRING0 , shift , NUMBER0 , NUMBER1 , NUMBER0 , NUMBER2 ) ;
- shift += reverseSpeedEncoder . getBits ( ) ;
+ shift += priorityWayEncoder . getBits ( ) ;
retur... | Fixed Type in MotorcycleFlagEncoder |
<nb> public class View implements Drawable . Callback , KeyEvent . Callback ,
} else {
SINGLE
if ( mOutline == null ) {
- mOutline = new Outline ( outline ) ;
+ mOutline = new Outline ( ) ;
}
+ mOutline . set ( outline ) ;
}
mRenderNode . setOutline ( mOutline ) ;
} | Fixed a bug where the outline was not correctly updated |
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
}
}
- SINGLE
isScrap [ NUMBER0 ] = true ;
+
+ SINGLE
+ transientView . dispatchFinishTemporaryDetach ( ) ;
return transientView ;
}
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > ... | Call dispatchFinishTemporaryDetach before returning a transient view |
<nb> class BlockingReadingMode extends SocketReadingMode {
socketReader . session . close ( ) ;
}
catch ( Exception e ) {
- Log . warn ( LocaleUtils . getLocalizedString ( STRING0 )
- + STRING1 + socket . toString ( ) ) ;
+ Log . warn ( LocaleUtils . getLocalizedString ( STRING0 ) + socket . toString ( ) ) ... | Removed confusing newline character in log statement |
<nb> import static NAMESPACE ;
import static NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class TestWithPeerGroup extends TestWithNetworkConnections {
protected static final NetworkParameters params = UnitTestParams . get ( ) ;
<nb> public class TestWithPeerGroup exte... | don t stopAsync if the peergroup isn t running and update the class description |
<nb> public class Transaction extends ChildMessage implements Serializable {
public static final int LOCKTIME_THRESHOLD = NUMBER0 ; SINGLE
COMMENT
- public static final int MAX_STANDARD_TX_SIZE = NUMBER1 * NUMBER2 ;
+ public static final int MAX_STANDARD_TX_SIZE = NUMBER3 ;
COMMENT
COMMENT | fixed MAX_STANDARD_TX_SIZE to match bitcoin core |
<nb> public class DownloadIndexesThread {
! date . equals ( indexactivateddate ) &&
! date . equals ( indexfilesdate ) &&
indexActivatedFileNames . containsKey ( sfName ) ) {
- if ( item . getType ( ) == DownloadActivityType . NORMAL_FILE ) {
+ if ( item . getType ( ) == DownloadActivityType . NORMAL_FILE || ... | Updated fix for updates tts files |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class ExecutionHandler {
builder . setBuildFile ( buildFile . getAllOptions ( ) , VfsUtil . virtualToIoFile ( buildFile . get... | use project default charset for running ant script from within IDEA |
<nb> public class SynchronizationPoint < E extends Exception > {
break ;
}
} catch ( InterruptedException e ) {
- LOGGER . log ( Level . FINE , STRING0 , e ) ;
+ LOGGER . log ( Level . WARNING , STRING1 , e ) ;
}
}
} | Raise log level of InterruptedException |
<nb> public class EntityTargetEvent extends EntityEvent implements Cancellable {
COMMENT
DEFEND_VILLAGE ,
COMMENT
+ COMMENT
+ COMMENT
+ TARGET_ATTACKED_NEARBY_ENTITY ,
+ COMMENT
+ COMMENT
+ COMMENT
+ REINFORCEMENT_TARGET ,
+ COMMENT
+ COMMENT
+ COMMENT
+ COLLISION ,
+ COMMENT
COMMENT
C... | Bleeding Add new TargetReasons to EntityTargetEvent |
<nb> public class Application implements ApplicationEventHandlers
private void navigateWindowTo ( String relativeUrl )
{
+ navigateWindowTo ( relativeUrl , true ) ;
+ }
+
+ private void navigateWindowTo ( String relativeUrl , boolean includeContext )
+ {
cleanupWorkbench ( ) ;
SINGLE
String url ... | include context by default when performing application level redirects e g for auth |
<nb> public class HighlyAvailableGraphDatabase implements GraphDatabaseService , Respo
public void somethingIsWrong ( Exception e )
{
- new Exception ( STRING0 ) . printStackTrace ( ) ;
new Thread ( )
{
@ override | Removed an unused stacktrace |
<nb> public class EpicenterTranslateClipReveal extends Visibility {
private Rect getEpicenterOrCenter ( Rect bestRect ) {
final Rect epicenter = getEpicenter ( ) ;
if ( epicenter != null ) {
- COMMENT
- SINGLE
- final int offsetX = bestRect . centerX ( ) - epicenter . centerX ( ) ;
- final int offsetY = b... | Remove dead code from EpicenterTranslateClipReveal |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public interface ModuleFactory
{
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
class PackageObjectFactory implements ModuleFactory
{
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
C... | Remove legacy tags |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
public class SecondaryReadTest extends TestCase {
<nb> public class SecondaryReadTest extends TestCase {
} else {
deviation = ( double ) NUMBER0 - ( ( ( double ) queriesExecuted / ( do... | Added message to assertion |
<nb> import NAMESPACE ;
public interface RemovalListener < K , V > {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
SINGLE
SINGLE | Adds a small clarifying comment to the Javadoc of common cache RemovalListener |
<nb> public final class JDBCUtil {
}
}
+ SINGLE
private static void setParameter ( PreparedStatement stmt , int i , Object o ) throws NoSuchMethodException ,
IllegalAccessException , InvocationTargetException {
Class < ? > type = o . getClass ( ) ; | added TODO comment |
<nb> public class Switch extends CompoundButton {
thumbDrawable . setBounds ( thumbLeft , switchTop , thumbRight , switchBottom ) ;
final Drawable background = getBackground ( ) ;
- if ( background . supportsHotspots ( ) ) {
+ if ( background != null && background . supportsHotspots ( ) ) {
background . set... | Add null bg check to switch |
<nb> public class SimpleFacebook {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
public AccessToken getAccessToken ( ) {
return mSessionManager . getAccessToken ( ) ;
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- public void eventAppLaunched ( ) {
- SI... | Fix docs and remove unsupported method |
<nb> public class AbstractAggregationTest
public static void startup ( ) {
HAZELCAST_INSTANCE = Hazelcast . newHazelcastInstance ( ) ;
Hazelcast . newHazelcastInstance ( ) ;
- Hazelcast . newHazelcastInstance ( ) ;
}
@ afterclass | Changed number of nodes for unittest to two instead of three to speed tests up |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.