diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class ProducteevDetailExposer extends BroadcastReceiver {
@ override
public void onReceive ( Context context , Intent intent ) {
- SINGLE
- if ( ! ProducteevUtilities . INSTANCE . isLoggedIn ( ) )
- return ;
-
long taskId = intent . getLongExtra ( AstridApiConstants . EXTRAS_TASK_ID , - NUMB... | always show pdv notes whether you are logged in or not |
<nb> import static NAMESPACE ;
public class DeepLearningProstateTest extends TestUtil {
@ beforeclass ( ) public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
- @ test public void run ( ) throws Exception { runFraction ( FLOAT0 ) ; }
+ @ test public void run ( ) throws Exception { runFraction (... | Only run Poisson Gamma Tweedie with Tanh in JUnit to avoid instabilities |
<nb> public class StandardStream implements IStream
updateCloseState ( dataFrame . isClose ( ) ) ;
int length = data . remaining ( ) ;
- SINGLE
- SINGLE
-
notifyOnData ( dataFrame , data ) ;
if ( ! isClosed ( ) )
{
<nb> public class DataFrameGenerator
buffer . putInt ( NUMBER0 , streamId & NUMBER1... | Removed TODOs about data compression since it s being dropped from the spec |
<nb> public class OMetadata {
schema . close ( ) ;
if ( security != null )
security . close ( ) ;
- if ( functionLibrary != null )
- functionLibrary . close ( ) ;
+ SINGLE
+ SINGLE
}
protected ODatabaseRecord getDatabase ( ) {
<nb> public class OSQLFunctionRuntime extends OSQLFilterItemAbstract { ... | Fixed bug on remote invocation of functions |
<nb> public class InliningInstructionAdapter extends InstructionAdapter {
return null ;
}
+ @ override
+ public void visitEnd ( ) {
+
+ }
} | Skip visitEnd in InliningInstructionAdapter |
<nb> public class ErrorProneCompiler {
}
return ImmutableList . < String > builder ( )
+ SINGLE
+ SINGLE
+ . add ( STRING0 )
. add ( STRING1 ) . add ( overrideLanguageLevel )
. add ( STRING2 ) . add ( overrideLanguageLevel )
. add ( argv ) | Suppress options warnings when setting the source and target explicitly |
<nb> public class ExtensibleDynamicObject extends CompositeDynamicObject implements H
BeforeConvention , AfterConvention
}
- private final Object delegate ;
private final AbstractDynamicObject dynamicDelegate ;
private DynamicObject parent ;
private Convention convention ;
<nb> public class ExtensibleDy... | Removed unused field |
<nb> public class XMPPTCPConnection extends AbstractXMPPConnection {
if ( socketFactory == null ) {
socketFactory = SocketFactory . getDefault ( ) ;
}
+ socket = socketFactory . createSocket ( ) ;
for ( HostAddress hostAddress : hostAddresses ) {
Iterator < InetAddress > inetAddresses = null ;
String host... | Only create the socket once |
<nb> public class DownloadIndexAdapter extends OsmandBaseExpandableListAdapter implem
|| e . getType ( ) == DownloadActivityType . SRTM_COUNTRY_FILE ) {
item . setTextColor ( okColor ) ; SINGLE
String sfName = e . getTargetFileName ( ) ;
- if ( ! indexActivatedFileNames . containsKey ( sfName ) ) {
- item . s... | use regular order like in other cases we do not activate de activate hillshade files at all for now |
<nb> public class HandleFaultInterceptor extends DelegateAsyncProcessor {
exchange . setException ( ( Throwable ) faultBody ) ;
} else {
SINGLE
- exchange . setException ( new CamelException ( faultBody . toString ( ) ) ) ;
+ String data = exchange . getContext ( ) . getTypeConverter ( ) . convertTo ( String ... | Handle fault Should convert the payload to String using type converter |
<nb> public final class StorageUtils {
if ( Environment . getExternalStorageState ( ) . equals ( android . os . Environment . MEDIA_MOUNTED ) ) {
appCacheDir = new File ( Environment . getExternalStorageDirectory ( ) , cacheDir ) ;
}
- if ( ! appCacheDir . exists ( ) ) {
- if ( ! appCacheDir . mkdirs ( ) ) { ... | Fixed bug that causes the app to crash when appCacheDir is null |
<nb> public final class ObjectNode
COMMENT
public JsonNode setAll ( ObjectNode other )
{
- other . _children . putAll ( _children ) ;
+ _children . putAll ( other . _children ) ;
return this ;
}
<nb> public class TestObjectNode
n2 . put ( STRING0 , NUMBER0 ) ;
assertFalse ( n . equals ( n2 ) ) ;
... | Fix a regression bug caused by immutability changes to OBjectNode |
<nb> public class ManifestFetcher < T > implements Loader . Callback {
inputStream = connection . getInputStream ( ) ;
inputEncoding = connection . getContentEncoding ( ) ;
result = parser . parse ( inputStream , inputEncoding , contentId ,
- Util . parseBaseUri ( manifestUrl ) ) ;
+ Util . parseBaseUri ( con... | Correctly handle redirection when requesting manifests |
<nb> public class NotificationStackScrollLayout extends ViewGroup
if ( childViewState == null ) {
return ViewState . LOCATION_UNKNOWN ;
}
+ if ( childViewState . gone ) {
+ return ViewState . LOCATION_GONE ;
+ }
return childViewState . location ;
}
<nb> public class StackScrollState {
public stati... | Never log GONE notifications as visible |
<nb> import NAMESPACE ;
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface DependencyHandler {
COMMENT
COMMENT
COMMENT
- Dependency project ( Map notation ) ;
+ Dependency project ( Map < String , ? > notation ) ;
COMMENT
COMMENT | Added some generic type declarations |
<nb> public class FileSystemSourceCache {
}
ConfigurationSource getSourceForDirectory ( File directory , ConfigurationProblemReporter reporter ) {
- if ( ! directory . exists ( ) || ! directory . isDirectory ( ) ) throw new IllegalArgumentException ( STRING0 + directory ) ;
long now = System . currentTimeMill... | config Don t access the file system every call |
<nb> public class CallPeerMediaHandlerSipImpl
OperationFailedException . ILLEGAL_ARGUMENT , e ) ;
}
- SINGLE
+ SINGLE
if ( savpOption == ProtocolProviderFactory . SAVP_MANDATORY
- && transportProtocol . equals ( SdpConstants . RTP_AVP )
+ && ! ( transportProtocol . equals ( STRING0 )
+ || transportPro... | Accept RTP SAVPF media profile |
<nb> public class ContactRightButtonMenu
. bundleContext . getService ( serRefs [ i ] ) ; ;
if ( component . getComponent ( ) == null )
- return ;
+ continue ;
component . setCurrentContact ( contactItem ) ; | Fix missing contact info option in contact right button menu |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- @ mod ( name = STRING0 , version = Version . VERSION , useMetadata = false , modid = STRING1 , acceptedMinecraftVersions = STRING2 , dependencies = STRING3 )
+ @ mod ( name = STRING0 , version = Version . VERSION , useMetadata = false , modid = S... | Fixed Forge version dependency |
<nb> public interface AnnotationDescription {
COMMENT
public abstract static class ForPrepared < S extends Annotation > extends AbstractBase implements Loadable < S > {
- COMMENT
- COMMENT
- COMMENT
- public static final String ERROR_MESSAGE = STRING0 ;
-
@ override
public S loadSilent ( ) {
try {... | Improved error message |
<nb> public class TheTVDB {
long imageSize = urlConnection . getContentLength ( ) ;
SINGLE
SINGLE
- if ( imageSize > NUMBER0 ) {
+ if ( imageSize > NUMBER0 || imageSize == - NUMBER1 ) {
return null ;
} else {
inputStream = urlConnection . getInputStream ( ) ; | Also do not decode image if content length is not set |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PostUploadService extends Service {
n = new Notification ( R . drawable . notification_icon , message , System . currentTimeM... | Don t load a new PostsActivity instance when tapping on a failed upload notification |
<nb> public class LoginActivity extends Activity implements View . OnClickListener {
private void loginToFacebook ( ) {
mFacebook = new Facebook ( Constants . FACEBOOK_APP_ID ) ;
- mFacebook . authorize ( this , Constants . FACEBOOK_PERMISSIONS , BuildConfig . DEBUG ? Facebook . FORCE_DIALOG_AUTH
- : REQUEST_... | Don t use SSO |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface IBolt extends Serializable {
COMMENT
COMMENT
void cleanup ( ) ;
- }
+ } | Fix minor grammar bug in javadoc |
<nb> import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class AndroidMusic implements Music {
<nb> public class AndroidMusic implements Music {
@ override public void dispose ( ) {
if ( player == null ) return ;
- if ( player . isPlaying ( ) ) player . stop ( ) ... | fixed temporary fix for an issue with AndroidMusic dispose |
<nb> public class PeopleInviteFragment extends Fragment implements
}
private boolean endsWithDelimiter ( String string ) {
- if ( TextUtils . isEmpty ( string ) ) return false ;
+ if ( TextUtils . isEmpty ( string ) ) {
+ return false ;
+ }
for ( String usernameDelimiter : USERNAME_DELIMITERS ) {
if... | Added missing braces removed redundant code |
<nb> public class AmazonEC2Client extends AmazonWebServiceClient implements AmazonEC2
return new DryRunResult < X > ( true , request , ase . getMessage ( ) , ase ) ;
} else if ( ase . getErrorCode ( ) . equals ( STRING0 ) && ase . getStatusCode ( ) == NUMBER0 ) {
return new DryRunResult < X > ( false , request , ... | Re throw the original service error if it s not UnauthorizedOperation |
<nb> public class CommentByLineCommentHandler implements CodeInsightActionHandler {
else {
endOffset = CharArrayUtil . shiftBackward ( chars , endOffset , STRING0 ) ;
}
- if ( endOffset <= offset ) return ;
+ if ( endOffset < offset || offset == textLength - NUMBER0 ) return ;
final String text = chars . su... | comment command on empty line does nothing |
<nb> public class BasicBSONList extends ArrayList < Object > implements BSONObject {
COMMENT
COMMENT
COMMENT
+ @ deprecated
public boolean containsKey ( String key ) {
return containsField ( key ) ;
} | Deprecated annotation to methods |
<nb> public final class ActivityManagerService extends ActivityManagerNative
}
synchronized ( this ) {
- if ( callerApp != null && callerApp . pid == NUMBER0 ) {
- SINGLE
+ if ( callerApp != null && ( callerApp . thread == null
+ || callerApp . thread . asBinder ( ) != caller . asBinder ( ) ) ) {
+ SING... | Check caller status precisely when registering receiver |
<nb> public class PShape implements PConstants {
SINGLE
SINGLE
- SINGLE
- SINGLE
- rectMode = CORNER ;
- ellipseMode = CORNER ;
+ rectMode = g . rectMode ;
+ ellipseMode = g . ellipseMode ;
SINGLE
SINGLE
<nb> public class PShapeSVG extends PShape {
opacity = parent . opacity ;
}
+
+ ... | PShape gets rect ellipse mode from parent |
<nb> public class TabParser {
workingTab . setIconResId ( parser . getAttributeResourceValue ( i , NUMBER0 ) ) ;
break ;
case STRING0 :
- workingTab . setInActiveColor ( getColorValue ( i , parser ) ) ;
+ Integer inActiveColor = getColorValue ( i , parser ) ;
+
+ if ( inActiveColor != null ) {
+ working... | Now we re not setting colors for tabs if they re not specified in the xml |
<nb> public class OpenStreetMapViewerFragment extends BaseSupportFragment implements
static class Itemization extends ItemizedOverlay < OverlayItem > {
- private final ArrayList < OverlayItem > mOverlays = new ArrayList < OverlayItem > ( ) ;
+ private final ArrayList < OverlayItem > mOverlays = new ArrayList ... | moved OSM viewer fragment to right source folder fixed CI errors |
<nb> package NAMESPACE ;
COMMENT
public class NoneType {
- public static NoneType NONE = new NoneType ( ) ;
+ public static final NoneType NONE = new NoneType ( ) ;
} | Made constant final |
<nb> public class ActivityLog
String queueMessage = message ;
if ( ( type == Type . ERROR ) && ( exception != null ) )
{
- String exceptionMessage = exception . getMessage ( ) ;
- if ( exceptionMessage == null )
- {
- exceptionMessage = getExceptionMessage ( exception ) ;
- }
- queueMessage += STRING0... | Always use the stacktrace from exceptions |
<nb> public abstract class DruidAbstractDataSource extends WrapperAdapter implements
this . useLocalSessionState = useLocalSessionState ;
}
-
-
public boolean isOracle ( ) {
return isOracle ;
}
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ... | bug fixed for ConfigFilter set MaxWait error |
<nb> public class AgentInfoSenderTest {
final AtomicInteger successServerRequestCount = new AtomicInteger ( ) ;
final AtomicInteger failServerRequestCount = new AtomicInteger ( ) ;
final AtomicInteger successCount = new AtomicInteger ( ) ;
- final long agentInfoSendRetryIntervalMs = NUMBER0 ;
- final long age... | Increase resend interval to lessen error margin when testing |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Call {
Response getResponse ( boolean forWebSocket ) throws IOException {
SINGLE
RequestBody body = request . body ( ) ;... | Remove unused local which was always null |
<nb> final class DumpSeries {
. append ( STRING0 )
. append ( cell . isInteger ( ) ? STRING1 : STRING2 )
. append ( STRING0 )
- . append ( cell . parseValue ( ) )
+ . append ( Arrays . toString ( cell . value ( ) ) )
. append ( STRING0 )
. append ( cell . absoluteTimestamp ( base_time ) )
. append ( STR... | Fix scan import output where data values were printed as an array of bytes |
<nb> public class CompilerTester {
path . getChildren ( ) ;
assert path != null ;
path . refresh ( false , true ) ;
- return path . findChild ( className . replace ( STRING0 , STRING1 ) + STRING2 ) ;
+ return path . findFileByRelativePath ( className . replace ( STRING0 , STRING1 ) + STRING2 ) ;
}
publi... | fixed findClass method for classes from non default packages |
<nb> public class CompletionProgressIndicator extends ProgressIndicatorBase implement
private void updateLookup ( ) {
ApplicationManager . getApplication ( ) . assertIsDispatchThread ( ) ;
+ myLookup . updateList ( ) ;
if ( ! myInitialized ) {
myInitialized = true ;
myLookup . show ( ) ;
}
- if ( myLo... | don t allow lookup to overlap screen bounds |
<nb> import NAMESPACE ;
public class ChooseIdentity extends K9ListActivity {
Account mAccount ;
- String mUID ;
ArrayAdapter < String > adapter ;
public static final String EXTRA_ACCOUNT = STRING0 ; | removed unused private field mUID |
<nb> public class PyPackageManagerImpl extends PyPackageManager {
} ) ) ;
try {
if ( askForSudo ) {
- askForSudo = ! manager . ensureCanWrite ( null , remoteSdkData , remoteSdkData . getInterpreterPath ( ) ) ;
+ askForSudo = ! manager . ensureCanWrite ( remoteSdkData , remoteSdkData . getInterpreterPath ( ) )... | refactoring RemoteRunUserInfo doesn t use projectOrComponent anymore |
<nb> public class Lexer {
}
public BigDecimal decimalValue ( ) {
- return new BigDecimal ( text . toCharArray ( ) , mark , bufPos ) ;
+ return new BigDecimal ( subString ( mark , bufPos ) . toCharArray ( ) ) ;
}
public static interface CommentHandler { | improve sql parser |
<nb> public abstract class DiffPanelBase extends JPanel implements DataProvider {
}
protected void setCurrentCard ( @ notnull String card , boolean keepFocus ) {
- boolean focused = isFocused ( ) ;
+ boolean restoreFocus = keepFocus && isFocused ( ) ;
myCardLayout . show ( myContentPanel , card ) ;
myCu... | avoid unnecessary check |
<nb> public class ZeppelinConfiguration extends XMLConfiguration {
ZEPPELIN_PORT ( STRING0 , NUMBER0 ) ,
ZEPPELIN_WAR ( STRING1 , STRING2 ) ,
ZEPPELIN_API_WAR ( STRING3 , STRING4 ) ,
- ZEPPELIN_INTERPRETERS ( STRING5 , STRING6 ) ,
+ ZEPPELIN_INTERPRETERS ( STRING5 , STRING7 ) ,
ZEPPELIN_INTERPRETER_DIR ( ST... | add SVG TYPE |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPAC... | Support go home feature |
<nb> public class JoglNewtDisplay extends JoglNewtAbstractDisplay {
if ( waitFor ) {
waitFor ( false ) ;
}
+ if ( animator . isAnimating ( ) )
+ animator . stop ( ) ;
}
public void restart ( ) { | Fixes the NullPointerException in the demos when using JoglNewtDisplay |
<nb> public class SystemResource extends RestResource {
fields = indices . getAllMessageFields ( ) ;
} else {
fields = Sets . newHashSet ( ) ;
+ addStandardFields ( fields ) ;
int i = NUMBER0 ;
for ( String field : indices . getAllMessageFields ( ) ) {
if ( i == limit ) {
<nb> public class SystemResourc... | Always add custom fields to result of list of fields |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class SslHttpExchangeTest extends HttpExchangeTest
@ override
public void testPerf ( ) throws Exception
{
+ Assume . assumeTrue ( ! ... | Excluded AsyncSslHttpExchangeTest testPerf from test runs on MacOS X unless stress is enabled |
<nb> public class ToFileStoreWriter implements StoreWriter
{
this . basePath = new File ( graphDbStoreDir ) ;
}
-
- @ override
+
public void write ( String path , ReadableByteChannel data , boolean hasData ) throws IOException
{
try
<nb> public class ToFileStoreWriter implements StoreWriter
}
} ... | Removed superfluous Override annotations |
<nb> public class SerialApiGetInitDataMessageClass extends ZWaveCommandProcessor {
}
}
+ logger . info ( STRING0 , incomingMessage . getMessagePayloadByte ( NUMBER0 ) & NUMBER1 ? STRING1 : STRING2 ) ;
+ logger . info ( STRING3 , incomingMessage . getMessagePayloadByte ( NUMBER0 ) & NUMBER2 ? STRING4 : STRING5... | Add information on controller and API type |
<nb> public class TestResults {
return testCases ;
}
- @ jsonignore
public ImmutableSet < String > getContacts ( ) {
return contacts ;
}
<nb> public class EventSerializationTest {
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
+ STRING4 +
+ STRING5 +
STRING6 , message ) ;
}
<nb> public cl... | Serialize contacts information into buck events |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class OrderedSpanRecorder implements ListenableDataSender . Listener , Iterable < TBase < ? , ? > > {
+ private static final int ROOT_SEQUENCE = - NUMBER0 ;
private static final int ASYNC_ID_NOT_SET = - NUMBER0 ;
private final List < Item > list = new ArrayLi... | Extracted ROOT_SEQUENCE constant var |
<nb> public class TransfVec extends WrappedVec {
@ override boolean set_impl ( int idx , float f ) { return false ; }
@ override boolean setNA_impl ( int idx ) { return false ; }
@ override NewChunk inflate_impl ( NewChunk nc ) {
+ nc . set_sparseLen ( nc . set_len ( NUMBER0 ) ) ;
for ( int i = NUMBER0 ; i < ... | inflate_impl in TransFVec was incorrectly setting the sparseLength at the end |
<nb> public class KeyguardManager {
COMMENT
public boolean isKeyguardLocked ( ) {
try {
- return mWM . isKeyguardSecure ( ) ;
+ return mWM . isKeyguardLocked ( ) ;
} catch ( RemoteException ex ) {
return false ;
} | Fix copy paste error in isKeyguardLocked |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MainActivity extends Activity implements CropImageView . OnSetImageUr
@ override
public void onClick ( View v ) {
- mCr... | undo sample activity change |
<nb> public class ChaseCamera implements ActionListener , AnalogListener , Control {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public void setChasingSensitivity ( float chasingSensitivity ) {
<nb> public class ChaseCamera implements ActionListener , AnalogListener ,... | fixed javadoc on ChaseCam |
<nb> public abstract class ViewGroup extends View implements ViewParent , ViewManager
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
+ SINGLE
@ override
public boolean dispatchDragEvent ( DragEvent event ) {
boolean retval = false ; | Prevent a TODO from appearing in the JavaDoc |
<nb> public class SqlEndpointTest extends CamelTestSupport {
ds = new SingleConnectionDataSource ( url , user , password , true ) ;
SqlEndpoint sql = new SqlEndpoint ( ) ;
+ sql . setCamelContext ( context ) ;
sql . setJdbcTemplate ( new JdbcTemplate ( ds ) ) ;
sql . setQuery ( STRING0 ) ; | Endpoints must have CamelContext set |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
- SINGLE
+ @ category ( ExternalDB . class )
public class OracleSuiteTest extends AbstractSuite {
@ beforeclass | Add ExternalDB annotation back |
<nb> public class SQLConnection {
public static String host ;
public static Connection getConnection ( ) throws SQLException , ClassNotFoundException {
- System . out . println ( STRING0 + dbusername + STRING1 + dbLocation ) ;
- return DriverManager . getConnection ( dbLocation + STRING2 + host + STRING3
- ... | trying sql connection |
<nb> public class ConversationFragment extends Fragment implements EditMessage . Keyboa
cancelTransmission . setVisible ( true ) ;
}
if ( treatAsFile ) {
- deleteFile . setVisible ( true ) ;
- deleteFile . setTitle ( activity . getString ( R . string . delete_x_file , UIHelper . getFileDescriptionString ( act... | dont show delete file button when outside conversations directory |
<nb> public class BaseHadoopTest {
String serverType = property != null ? property . replaceAll ( STRING0 , STRING1 ) : STRING2 ;
String path = format ( STRING3 , serverType , property ) ;
MONGO_IMPORT = new File ( path ) . exists ( ) ? path : STRING4 ;
+ if ( ! new File ( MONGO_IMPORT ) . exists ( ) ) {
+ th... | add error logging for when mongoimport can t be found |
<nb> public final class FileOutStreamIntegrationTest extends AbstractFileOutStreamInt
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | SMALLFIX Fix a format lint |
<nb> public abstract class jOOQAbstractTest <
connection . setAutoCommit ( autocommit ) ;
}
+ @ beforeclass
+ public static void testStart ( ) {
+ log . info ( STRING0 ) ;
+ }
+
@ afterclass
public static void quit ( ) throws Exception {
log . info ( STRING1 ) ;
<nb> public abstract class jOOQAb... | Moved some methods |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
public class SitePickerSearchViewTest extends InstrumentationTestCase {
private SitePickerSearchView mSitePickerSearchView ; | Cleaning up imports |
<nb> public class AtmosphereFilter implements ResourceFilterFactory {
response . write ( ) ;
}
- if ( entity != null ) {
+ if ( entity != null && ! entity . toString ( ) . isEmpty ( ) ) {
if ( location != null ) {
b = b . header ( HttpHeaders . LOCATION , location ) ;
} | If the entity is empty do not commit the response |
<nb> public class WindowManagerService extends IWindowManager . Stub
SINGLE
SINGLE
android . os . Process . setThreadPriority (
- android . os . Process . THREAD_PRIORITY_DISPLAY ) ;
+ android . os . Process . THREAD_PRIORITY_FOREGROUND ) ;
android . os . Process . setCanSelfBackground ( false ) ;
mPolicy... | Increase lock screen s thread priority |
<nb> public class StandaloneClusterClient
System . err . println ( STRING0 ) ;
System . exit ( NUMBER0 ) ;
}
+ if ( ! config . containsKey ( ClusterSettings . server_id . name ( ) ) )
+ {
+ System . err . println ( STRING1 ) ;
+ System . exit ( NUMBER0 ) ;
+ }
}
private static Map < String , Strin... | Adds extra check for config error message and also imports the server_id setting |
<nb> public class Serial implements SerialPortEventListener {
STRING0 +
STRING1 ;
System . err . println ( MESSAGE ) ;
+ throw new RuntimeException ( STRING2 +
+ STRING3 ) ;
}
} | throw an exception when var lock does not exist |
<nb> public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
codecReconfigurationState = RECONFIGURATION_STATE_WRITE_PENDING ;
}
inputStreamEnded = true ;
+ if ( ! codecHasQueuedBuffers ) {
+ processEndOfStream ( ) ;
+ return false ;
+ }
try {
if ( codecNeedsEosPropagationWorka... | If no buffers were queued handle EoS directly |
<nb> import NAMESPACE ;
COMMENT
public class EmbeddedDatabaseRule extends DatabaseRule
{
- private final TemporaryFolder temp = new TemporaryFolder ( ) ;
+ protected final TemporaryFolder temp = new TemporaryFolder ( ) ;
@ override
protected GraphDatabaseFactory newFactory ( ) | Changed rule so that it is easier to subclass |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ProjectRepositoriesProvider extends ProviderAdapter {
private static final String LOG_MSG = STRING0 ;
private ProjectRepositories project ... | Fix quality issue |
<nb> public class TraverseModeSet implements Cloneable , Serializable {
public String toString ( ) {
StringBuilder out = new StringBuilder ( ) ;
for ( TraverseMode mode : TraverseMode . values ( ) ) {
- if ( ( modes & getMaskForMode ( mode ) ) != NUMBER0 ) {
+ int mask = getMaskForMode ( mode ) ;
+ if ( mas... | do not include pseudomodes in mask |
<nb> public class UsersAndGroupsSearchProvider extends ContentProvider {
private static final String [ ] COLUMNS = {
BaseColumns . _ID ,
SearchManager . SUGGEST_COLUMN_TEXT_1 ,
- SearchManager . SUGGEST_COLUMN_FLAGS ,
SearchManager . SUGGEST_COLUMN_INTENT_DATA
} ;
<nb> public class UsersAndGroupsSearchP... | Removed option to refine suggestions in edit field |
<nb> public class HitTest {
o1 . setFilename ( STRING0 ) ;
assertFalse ( o2 . equals ( o1 ) ) ;
assertFalse ( o1 . equals ( o2 ) ) ;
+ assertFalse ( o1 . equals ( new Object ( ) ) ) ;
}
@ test | Add a test to verify that Hit equals Object works |
<nb> import NAMESPACE ;
import NAMESPACE ;
@ xmlrootelement ( name = STRING0 )
- @ xmltype ( propOrder = { STRING1 , STRING2 , STRING3 , STRING4 , STRING5 , } )
+ @ xmltype ( propOrder = { STRING1 , STRING2 , STRING3 , STRING4 , STRING5 } )
public class OServerNetworkListenerConfiguration {
@ xmlattribu... | Fixed syntax error in annotation |
<nb> public class HTMLAwareWriter extends Writer {
SINGLE
private RingBuffer ringBuffer = new RingBuffer ( NUMBER0 ) ;
- SINGLE
+ SINGLE
public Context getState ( ) {
return state ;
} | update the comment |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public interface B... | Add license and comments for BundleExtractor |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class WebManager extends WebBean {
}
}
}
+
+ public Cache [ ] getCaches ( ) {
+ List < Cache > caches = new ArrayList < Cache > ( CacheManager . getCaches ( )... | Added getCaches to return a sorted list of system caches |
<nb> public class OTxTask extends OAbstractReplicatedTask {
final List < Object > results = new ArrayList < Object > ( ) ;
+ SINGLE
for ( OAbstractRecordReplicatedTask task : tasks ) {
- final Object taskResult = task . execute ( iServer , iManager , database ) ;
- results . add ( taskResult ) ;
+ if ( ... | fixed problem with temporary rids |
<nb> class AppWidgetServiceImpl extends IAppWidgetService . Stub implements WidgetBacku
for ( int i = N - NUMBER0 ; i >= NUMBER1 ; i -- ) {
Provider provider = installedProviders . get ( i ) ;
- ensureGroupStateLoadedLocked ( provider . getUserId ( ) ) ;
+ final int userId = provider . getUserId ( ) ;
+ if ... | Skip app widget config changes when user locked |
<nb> public class DisplayUtils {
String [ ] parts = dateString . toString ( ) . split ( STRING0 ) ;
if ( parts . length == NUMBER0 ) {
- if ( parts [ NUMBER1 ] . contains ( STRING1 ) && ! parts [ NUMBER2 ] . contains ( STRING1 ) ) {
- return parts [ NUMBER2 ] ;
- } else if ( parts [ NUMBER2 ] . contains ( S... | flipped the if else for performance optimization |
<nb> class DynamicConnectionStatus extends ConnectionStatus {
private boolean isMongos ;
}
- private ConnectionStatus getConnectionStatus ( ) {
+ private synchronized ConnectionStatus getConnectionStatus ( ) {
if ( connectionStatus == null ) {
try {
- synchronized ( this ) {
- wait ( _mongoOptions . c... | Partially reverted last change |
<nb> public class MainActivity extends QKActivity implements SlidingMenu . OnOpenListen
private void launchWelcomeActivity ( ) {
if ( mPrefs . getBoolean ( SettingsFragment . WELCOME_SEEN , false ) ) {
SINGLE
- SINGLE
+ return ;
}
Intent welcomeIntent = new Intent ( this , WelcomeActivity . class ) ; | Fixed commented code |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MulticoreWrapper < I , O > {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- public synchronized void ... | Add exception handling to TranslationRequestHandler fix NullPointerException in AbstractBeamInferer |
<nb> public class IgnitedHttpResponseImpl implements IgnitedHttpResponse {
@ override
public InputStream getResponseBody ( ) throws IOException {
- if ( entity == null )
- return null ;
+ if ( entity == null ) {
+ return null ;
+ }
return entity . getContent ( ) ;
}
@ override
public byte [ ] ... | Fix code formatting |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- class TransactionImpl implements Transaction , Constants {
+ class TransactionImpl implements Transaction {
public class TxnRecord {
public String name ;
<nb> class TransactionImpl implements Transaction , Constants {
} else if ( proxy ... | removed unnecessary implements Constants |
<nb> public class HiveInputFormat < K extends WritableComparable , V extends Writable >
} catch ( Exception e ) {
throw new IOException (
STRING0
- + inputSplitClassName + STRING1 + e . getMessage ( ) ) ;
+ + inputSplitClassName + STRING1 + e . getMessage ( ) , e ) ;
}
inputSplit . readFields ( in ) ;
i... | HiveInputFormat readFields should print the cause when there s an exception Ashutosh Chauhan via He Yongqiang |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
public class GroovyMain {
<nb> public class GroovyMain {
printHelp ( out , options ) ;
} else if ( cmd . hasOption ( STRING0 ) ) {
String version = GroovySystem . getVersion ( ) ;
- out . println ( STRING1 + version + STRI... | Include some more info in groovy version output |
<nb> public class MiniDrawer {
return this ;
}
+ private boolean mInRTL = false ;
+
+ public MiniDrawer withInRTL ( boolean inRTL ) {
+ this . mInRTL = inRTL ;
+ return this ;
+ }
+
+
public RecyclerView getRecyclerView ( ) {
return mRecyclerView ;
}
<nb> public class MiniDrawer {
public... | add possibility to set the MiniDrawer in RTL mode to display the shadow on the other side |
<nb> public class SecurityTests extends ElasticsearchTestCase {
SINGLE
assertTrue ( permissions . implies ( new FilePermission ( esHome . toString ( ) , STRING0 ) ) ) ;
- SINGLE
+ SINGLE
assertFalse ( permissions . implies ( new FilePermission ( path . toString ( ) , STRING0 ) ) ) ;
SINGLE
assertFalse (... | fix wrong comment change |
<nb> public class JarHell {
SINGLE
SINGLE
String javaHome = System . getProperty ( STRING0 ) ;
+ logger . debug ( STRING1 , javaHome ) ;
final Map < String , URL > clazzes = new HashMap < > ( NUMBER0 ) ;
Set < String > seenJars = new HashSet < > ( ) ;
for ( final URL url : urls ) { | Add java home to debug logging |
<nb> public class StatusBarPolicy {
iconId = sWifiSignalImages [ mLastWifiInetConnectivityState ]
[ mLastWifiSignalLevel ] ;
}
-
mService . setIcon ( STRING0 , iconId , NUMBER0 ) ;
SINGLE
mService . setIconVisibility ( STRING0 , true ) ;
<nb> public class StatusBarPolicy {
int iconId ;
final int new... | Fix statusbar display of wifi signalstrength |
<nb> public class OtrSm implements OtrTlvHandler {
COMMENT
COMMENT
byte [ ] our_fp = Hex . decode ( keyManager . getLocalFingerprint ( sessionID ) ) ;
- byte [ ] their_fp = Hex . decode ( keyManager . getRemoteFingerprint ( sessionID ) ) ;
+
+ String remoteFingerprint = keyManager . getRemoteFingerprint ( s... | handle null remotefingerprint so app doesn t crash |
<nb> public class NewViolationsDecorator implements Decorator {
}
for ( Rule rule : childrenByRule . keys ( ) ) {
- RuleMeasure measure = RuleMeasure . createForRule ( CoreMetrics . VIOLATIONS , rule , null ) ;
+ RuleMeasure measure = RuleMeasure . createForRule ( CoreMetrics . NEW_VIOLATIONS , rule , null ) ... | Fix metric name |
<nb> package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServerInterceptors {
return interceptor . interceptCall ( method , call , headers , callHandler ) ;
}
}
-
- COMMENT
- COMMENT
- COMMENT
- CO... | Remove deprecated classes from ServerInterceptors |
<nb> public class WsSession implements Session {
if ( state == State . OPEN ) {
state = State . OUTPUT_CLOSED ;
sendCloseMessage ( closeReason ) ;
+ fireEndpointOnClose ( closeReason ) ;
}
- fireEndpointOnClose ( closeReason ) ;
state = State . CLOSED ;
SINGLE | Should only call onClose once per session |
<nb> public class RunnerContentUi implements ContentUI , Disposable , CellTransform . Fac
for ( TabInfo each : tabs ) {
hasToolbarContent |= updateTabUI ( each ) ;
}
+ myTabs . getPresentation ( ) . setHideTabs ( ! hasToolbarContent && tabs . size ( ) <= NUMBER0 && myOriginal == null ) ;
myTabs . updateTabAct... | hide last tab in main window only |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.