diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class ActivityManagerService extends ActivityManagerNative
Slog . w ( TAG , STRING0 + userId ) ;
return false ;
}
+ if ( foreground && userInfo . isManagedProfile ( ) ) {
+ Slog . w ( TAG , STRING1 + userId + STRING2 ) ;
+ return false ;
+ }
if ( foreground ) {
mWindowManager . sta... | Disallow switching managed profile to foreground |
<nb> public final class ResourceHelper {
}
SINGLE
- if ( buf [ NUMBER0 ] < STRING0 && buf [ NUMBER0 ] > STRING1 && buf [ NUMBER0 ] != STRING2 && buf [ NUMBER0 ] != STRING3 ) {
+ if ( ( buf [ NUMBER0 ] < STRING0 || buf [ NUMBER0 ] > STRING1 ) && buf [ NUMBER0 ] != STRING2 && buf [ NUMBER0 ] != STRING3 ) {
re... | Fix invalid conditional check |
<nb> public class LinkRenderer {
return linkElement ;
}
- listener . warning ( String . format ( STRING0 , className ) ) ;
+ SINGLE
+ if ( className . length ( ) > NUMBER0 ) {
+ listener . warning ( String . format ( STRING0 , className ) ) ;
+ }
Element element = document . createElement ( STRING1 ) ... | Fixed the useless warnings about Could not generate link for unknown class T when generating docs |
<nb> public class DependencyParseAnnotator extends SentenceAnnotator {
@ override
public Set < Requirement > requirementsSatisfied ( ) {
- return new HashSet < > ( ) ;
+ return Collections . singleton ( DEPENDENCY_REQUIREMENT ) ;
}
public static String signature ( String annotatorName , Properties props... | Dependency parser should provide dependencies |
<nb> public class GoTestRunningState extends GoRunningState < GoTestRunConfiguration > {
SINGLE
SINGLE
String pathSuffix = myCoverageFilePath == null ? STRING0 : STRING1 ;
- if ( relativePath != null ) {
+ if ( relativePath != null && ! STRING1 . equals ( relativePath ) ) {
executor . withParameters ( STRIN... | Do not append test directory path with |
<nb> public abstract class Log {
public static interface Tag {
COMMENT
public static enum Sys implements Tag {
- RANDF , GENLM , KMEAN , PARSE , STORE , WATER , HDFS_ , HTTPD , CLEAN , CONFM , EXCEL , SCORM ;
+ RANDF , GBM__ , GENLM , KMEAN , PARSE , STORE , WATER , HDFS_ , HTTPD , CLEAN , CONFM , EXCEL , SCO... | Add a GBM flavor to logging |
<nb> public abstract class DebuggerManager implements ProjectComponent {
public abstract String getVMClassQualifiedName ( PsiClass aClass ) ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public abstract void registerPositionManagerFactory ( Function < DebugProcess , PositionManager > factory ) ;
... | deprecated DebuggerManager registerPositionManagerFactory |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TargetPlatformDetector {
@ notnull
public static TargetPlatform getPlatform ( @ notnull KtFile file ) {
+ if ( file ins... | Get correct target platform for codeFragments |
<nb> import NAMESPACE ;
public interface ContactSourceService
{
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getDisplayName ( ) ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Added a display name for each contact source |
<nb>
package NAMESPACE ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
import NAMESPACE ;
public class TikaImplTests extends ESTestCase ... | add missing license header |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PythonCompletionWeigher extends CompletionWeigher {
@ override
public Comparable weigh ( @ notnull final LookupElemen... | make python completion weigher work only in python contexts |
<nb> public class AppleBundleDescription implements Description < AppleBundleDescriptio
public BuildTarget binary ;
public SourcePath infoPlist ;
public Optional < ImmutableMap < String , String > > infoPlistSubstitutions ;
- public Optional < ImmutableMap < String , SourcePath > > headers ;
public Optional <... | Remove unused field |
<nb> public final class FileUtils {
return new File ( path ) . exists ( ) ;
}
- private FileUtils ( ) {
- SINGLE
- }
+ private FileUtils ( ) { } SINGLE
}
<nb> import NAMESPACE ;
COMMENT
public final class PathUtils {
- private PathUtils ( ) {
- SINGLE
- }
-
COMMENT
COMMENT
COMMENT ... | Refactored two more private constructors |
<nb> public class Source implements InsertSourceHandler ,
@ override
public void onResponseReceived ( JsObject createdFiles )
{
- Debug . logObject ( createdFiles ) ;
-
SINGLE
List < String > failedPaths = new ArrayList < String > ( ) ;
for ( String filePath : JsUtil . asIterable ( createdFiles . keys (... | remove unneeded log |
<nb> public class ConditionalTagsInspector
} catch ( Exception e )
{
if ( enabledLogs )
- logger . warn ( STRING0 + val + STRING1 + tagToCheck + STRING2 + e . getMessage ( ) ) ;
+ logger . warn ( way . getId ( ) + STRING3 + val + STRING1 + tagToCheck + STRING2 + e . getMessage ( ) ) ;
}
}
} | provide way ID as help information |
<nb> public abstract class AbstractProjectViewPSIPane extends AbstractProjectViewPane
@ override
public void uiSettingsChanged ( UISettings source ) {
- myTree . setRowHeight ( - NUMBER0 ) ;
+ SINGLE
myTree . setFont ( UIUtil . getTreeFont ( ) ) ;
myTree . invalidate ( ) ;
myTree . repaint ( ) ; | don t reset row height |
<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 ;
<nb> public class NettyHttpClient implements HttpClient {
... | Use the pooled allocator for performance reasons |
<nb> public abstract class RoboSpiceContentProvider extends OrmLiteSimpleContentProvi
int contentUriPatternMany = ContractHelper . getContentUriPatternMany ( contractClazz ) ;
int contentUriPatternOne = ContractHelper . getContentUriPatternOne ( contractClazz ) ;
controller . add ( clazz , SubType . DIRECTORY , S... | Fix RoboSpiceContentProvider to declare single item URI type as ITEM rather than DIRECTORY |
<nb> public class CommonsDataSourceConfiguration extends AbstractDataSourceConfigurat
setInitialSize ( NUMBER0 ) ;
}
- @ bean
+ @ bean ( destroyMethod = STRING0 )
public DataSource dataSource ( ) {
logger . info ( STRING1
+ STRING2 ) ;
<nb> public enum EmbeddedDatabaseConnection {
COMMENT
COMMENT ... | Add destroyMethods to DataSources |
<nb> public class PythonPathCache implements Disposable {
private final Map < PyQualifiedName , List < PsiElement > > myCache = new HashMap < PyQualifiedName , List < PsiElement > > ( ) ;
+ @ suppresswarnings ( { STRING0 } )
public PythonPathCache ( Module module ) {
module . getMessageBus ( ) . connect ( )... | dispose path cache for sdk when project is disposed |
<nb> public @ interface AutoValue {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ retention ( RetentionPolicy . SOURCE )
@ target ( ElementT... | Deprecate the AutoValue |
<nb> public class SSLHostConfigCertificate {
UNDEFINED ,
RSA ( Authentication . RSA ) ,
DSA ( Authentication . DSS ) ,
- ECC ( Authentication . ECDH , Authentication . ECDSA ) ;
+ EC ( Authentication . ECDH , Authentication . ECDSA ) ;
private final Set < Authentication > compatibleAuthentications ; | Make names consistent with standard Java names |
<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 ;
<nb> import NAMESPACE ;
... | rename most of the parameters that had key in their names to be more descriptive |
<nb> public class ShareUtils {
. toString ( ) ;
final boolean isNewAccount = ( ( CheckBox ) layout
. findViewById ( R . id . checkNewAccount ) ) . isChecked ( ) ;
+ final String traktApiKey = getResources ( ) . getString ( R . string . trakt_apikey ) ;
AsyncTask < String , Void , Response > accountValidator... | Fix crash when trying to register a trakt account |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShowIntentionsPass extends TextEditorHighlightingPass {
}
}
- collectIntentionsFromDoNotShowLeveledInspections ( projec... | don t start INFORMATION inspections e g if file belongs to cls |
<nb> public class Function extends Pointer {
Class [ ] paramTypes = invokingMethod != null ? invokingMethod . getParameterTypes ( ) : null ;
boolean allowObjects = Boolean . TRUE . equals ( options . get ( Library . OPTION_ALLOW_OBJECTS ) ) ;
for ( int i = NUMBER0 ; i < args . length ; i ++ ) {
+ Class paramTyp... | Fix varargs tests |
<nb> public class ValueAnimator extends Animator {
if ( mStartDelay == NUMBER0 ) {
SINGLE
setCurrentPlayTime ( getCurrentPlayTime ( ) ) ;
+ mPlayingState = STOPPED ;
if ( mListeners != null ) {
ArrayList < AnimatorListener > tmpListeners = | Fix bug with bad state in animators |
<nb> import NAMESPACE ;
public class Constants {
- public static final SimpleDateFormat theTVDBDateFormat = new SimpleDateFormat ( STRING0 ) ;
+ public static final SimpleDateFormat theTVDBDateFormat = new SimpleDateFormat ( STRING0 , Locale . US ) ;
public static enum EpisodeSorting {
LATEST_FIRST ( NU... | Set US locale for TVDb date format |
<nb> class FramesHandler < I extends FramesHandler . Frames , S extends FramesBase < I , S > >
throw new H2OIllegalArgumentException ( path , STRING0 , STRING1 + path + STRING2 ) ;
}
InputStream is = ( fr ) . toCSV ( true , false ) ;
- Job job = new Job ( null , STRING3 , STRING4 ) ;
+ Job job = new Job ( fr ... | missing key on file export |
<nb> public class TransportSQLActionTest extends SQLTransportIntegrationTest {
}
@ test
- public void testSelectRandomTwoTimes ( ) throws Exception {
- execute ( STRING0 ) ;
- assertThat ( response . rows ( ) [ NUMBER0 ] [ NUMBER0 ] , is ( not ( response . rows ( ) [ NUMBER0 ] [ NUMBER1 ] ) ) ) ;
-
- th... | remove testSelectRandomTwoTimes in TransportSQLActionTest |
<nb> public class TagFilterExposer extends BroadcastReceiver implements AstridFilterE
filter . color = Color . GRAY ;
}
- TagData tagData = PluginServices . getTagDataService ( ) . getTag ( tag . tag , TagData . ID , TagData . MEMBER_COUNT ) ;
+ TagData tagData = PluginServices . getTagDataService ( ) . getTa... | Fixed a bug with tag context menu intent names |
<nb> public class FileSystemResourceTest
Resource alias = base . addPath ( STRING0 ) ;
if ( alias . exists ( ) )
{
+ assumeThat ( alias . getURI ( ) . getScheme ( ) , is ( STRING1 ) ) ;
+
SINGLE
assertThat ( STRING2 , alias , isAliasFor ( resource ) ) ;
assertThat ( STRING3 , newResource ( alias . getUR... | Ignoring bad canonical uri alias |
<nb> public class AutoCompleteTextView extends EditText implements Filter . FilterListe
private AutoCompleteTextView . ListSelectorHider mHideSelector ;
- SINGLE
- SINGLE
- private int mAttachCount ;
-
private AutoCompleteTextView . PassThroughClickListener mPassThroughClickListener ;
public AutoCom... | getWindowVisibility instead of private attach count |
<nb> public final class Futures {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix comment bug |
<nb> public class TelephonyManager {
COMMENT
public int getPhoneType ( ) {
try {
+ if ( ! isVoiceCapable ( ) ) {
+ return PHONE_TYPE_NONE ;
+ }
ITelephony telephony = getITelephony ( ) ;
if ( telephony != null ) {
return telephony . getActivePhoneType ( ) ; | Have getPhoneType return PHONE_TYPE_NONE for non voice capable devices |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PlannerContextBuilder {
resolvedSymbol = new InputColumn ( context . originalGroupBy . indexOf ( splitSymbol ) ) ;
} else if ( splitSymbol . s... | handle literals in output columns |
<nb> public final class IronEngineCoolant {
}
public static Coolant getCoolant ( FluidStack fluidStack ) {
- return fluidStack != null ? liquidCoolants . get ( fluidStack . getFluid ( ) . getName ( ) ) : null ;
+ return fluidStack != null && fluidStack . getFluid ( ) != null ? liquidCoolants . get ( fluidStac... | Prevent NPE in Coolant API |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Adding missing license headers to be squashed |
<nb> public class Bootstrap extends AbstractBootstrap < Bootstrap , Channel > {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
@ suppresswarnings ( STRING0 )
public Bootstrap resolver ( AddressResolverGroup < ? > resolver ) {
- if ( resolver == null ) {
- throw new N... | Use a default resolver with bootstrap resolver null |
<nb> public abstract class TileEngine extends TileBuildCraft implements IPowerRecepto
if ( extracted > NUMBER0 ) {
float needed = receptor . receiveEnergy ( extracted , orientation . getOpposite ( ) , true ) ;
extractEnergy ( receptor . getMinEnergyReceived ( ) , needed , true ) ; SINGLE
- SINGLE
+ SINGLE
}... | Forgot a minor bit the alt impl |
<nb> public class SearchDialog extends Dialog implements OnItemClickListener , OnItemS
if ( mSearchable == null ) {
return ;
}
+ SearchableInfo searchable = mSearchable ;
+ SINGLE
+ SINGLE
+ cancel ( ) ;
try {
- SINGLE
- SINGLE
- ( ( SearchManager ) getContext ( ) . getSystemService ( Context . SE... | Fix an NPE in SearchDialog when clicking on Mic button |
<nb> public class InstallerGUI {
STRING0 ;
private static final String IDE_EXPLANATION =
- STRING1 +
+ STRING2 +
STRING3 ;
private static final String IDE_LOADING_EXPLANATION =
<nb> public class InstallerGUI {
STRING4 +
STRING5 +
STRING6 +
- STRING7 +
- STRING8 +
- STRING9 +
- STRING10 +... | Updating some of the wording in the installer notably any hint that this thing still does anything for netbeans |
<nb> public class ZPlan extends LinkedList < Z > {
results . add ( zz . result ( ) ) ;
zz . release ( ) ;
} catch ( Exception e ) {
- e . printStackTrace ( ) ;
- throw e ;
- } finally {
closeAllConnections ( ) ;
+ throw e ;
}
}
-
+ closeAllConnections ( ) ;
return results ;
} | Fix connection closing behavior |
<nb> public class IdeaWin32 {
static {
IdeaWin32 instance = null ;
- if ( SystemInfo . isWin2kOrNewer ) {
+ if ( SystemInfo . isWin2kOrNewer && Boolean . parseBoolean ( System . getProperty ( STRING0 , STRING1 ) ) ) {
try {
UrlClassLoader . loadPlatformLibrary ( STRING2 ) ;
instance = new IdeaWin32 ( ) ... | added system property to allow users disable native FS for Windows |
<nb> public class ConferenceCallPanel
this . addCallPeerPanel ( iterator . next ( ) ) ;
}
+ this . setBorder ( null ) ;
this . setViewportBorder ( BorderFactory
. createEmptyBorder ( NUMBER0 , NUMBER0 , NUMBER0 , NUMBER0 ) ) ; | Remove conference window scrollpane border |
<nb> public enum Direction {
OUT , IN , BOTH ;
- public Direction opposite ( final Direction direction ) {
- if ( direction . equals ( OUT ) )
+ public Direction opposite ( ) {
+ if ( this . equals ( OUT ) )
return IN ;
- else if ( direction . equals ( IN ) )
+ else if ( this . equals ( IN ) )
ret... | added a helper method Direction opposite |
<nb> public class Api {
public List < Location > stacktrace ; SINGLE
public Goroutine goroutine ; SINGLE
public List < Variable > variables ; SINGLE
+ public List < Variable > arguments ; SINGLE
}
public static String CONTINUE = STRING0 ; | add arguments to Api BreakpointInfo |
<nb> public class UserREST {
if ( CommaFeedApplication . USERNAME_ADMIN . equals ( user . getName ( ) ) || CommaFeedApplication . USERNAME_DEMO . equals ( user . getName ( ) ) ) {
return Response . status ( Status . FORBIDDEN ) . build ( ) ;
}
- userService . unregister ( user ) ;
+ userService . unregister (... | fetch user from database instead of using the one in the session to avoid hibernate exception |
<nb> public class AtmosphereResourceImpl implements AtmosphereResource {
action . type ( Action . TYPE . RESUME ) ;
isResumed = true ;
- try {
- logger . debug ( STRING0 , getRequest ( false ) ) ;
- } catch ( Throwable ex ) {
- SINGLE
- SINGLE
- SINGLE
- return this ;
- }
-
SINGLE
Broadcaste... | Reduce logging noise |
<nb> public class ExplicitInitializationCheck extends Check {
case TokenTypes . NUM_INT :
case TokenTypes . NUM_LONG :
final String text = expr . getText ( ) ;
- return NUMBER0 == CheckUtils . parseFloat ( text , type ) ;
+ return FLOAT0 == CheckUtils . parseFloat ( text , type ) ;
default :
return false ... | Fix comparison of double value with zero |
<nb> public class IncorectBindingPuzzleFixedTest {
assertEquals ( expected , error . getMessage ( ) ) ;
}
}
-
- @ ignore
- @ test
- public void shouldReportNoMoreInteractionsProperly ( ) throws Exception {
- DerivedInterface derivedMock = Mockito . mock ( DerivedInterface . class ) ;
- setMock ( deriv... | removed one ignored test |
<nb> public class OptionsConnectionPanel extends AbstractParamPanel {
OptionsParam optionsParam = ( OptionsParam ) obj ;
ConnectionParam connectionParam = optionsParam . getConnectionParam ( ) ;
int timeout ;
- String sslPorts ;
try {
timeout = Integer . parseInt ( txtTimeoutInSecs . getText ( ) ) ; | Tidy up removed unused variable that was incorrectly left in a previous change |
<nb> public class DeviceUtils {
COMMENT
public static String getMacAddress ( ) {
String macAddress = null ;
+ LineNumberReader reader = null ;
try {
Process pp = Runtime . getRuntime ( ) . exec ( STRING0 ) ;
InputStreamReader ir = new InputStreamReader ( pp . getInputStream ( ) ) ;
- LineNumberReader re... | Close the buffered source reader |
<nb> public class RecyclerViewPagerAdapter < VH extends RecyclerView . ViewHolder > extend
final View itemView = holder . itemView ;
ViewGroup . LayoutParams lp = itemView . getLayoutParams ( ) == null ? new ViewGroup . LayoutParams ( ViewGroup . LayoutParams . MATCH_PARENT , ViewGroup . LayoutParams . MATCH_PARENT... | changed onBind method to use getMeasured size |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public abstract class InterceptingHttpAccessor extends HttpAccessor {
- private List < ClientHttpRequestInterceptor > interceptors ;
+ private List < ClientHttpRequestInterceptor... | Changed ClientHttpRequestInterceptor array to List |
<nb> public class JdbcDaoImpl extends JdbcDaoSupport implements AuthenticationDao {
}
GrantedAuthority [ ] arrayAuths = { } ;
+
+ addCustomAuthorities ( user . getUsername ( ) , dbAuths ) ;
+
arrayAuths = ( GrantedAuthority [ ] ) dbAuths . toArray ( arrayAuths ) ;
return new User ( user . getUsername ... | Allow subclasses to add their own custom GrantedAuthority s |
<nb> public class DDLSemanticAnalyzer extends BaseSemanticAnalyzer {
if ( partSpecs . isEmpty ( ) ) return ; SINGLE
validateAlterTableType ( tab , AlterTableTypes . DROPPARTITION , expectView ) ;
- inputs . add ( new ReadEntity ( tab ) ) ;
+ ReadEntity re = new ReadEntity ( tab ) ;
+ re . noLockNeeded ( ) ;... | alter table drop partition is acquiring the wrong type of lock Alan Gates via Ashutosh Chauhan |
<nb> public class SecurityLog {
public static final int TAG_SYNC_SEND_FILE = SecurityLogTags . SECURITY_ADB_SYNC_SEND ;
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class SecurityLog {
SecurityLogTags . SECURITY_KEYGUARD_DISMISSED ;
COMMENT
COMMENT
- COMM... | Clarify javadoc for SecurityLog |
<nb> public abstract class HystrixCommand < R > implements HystrixExecutable < R > , Hystrix
HystrixPropertiesStrategy propertiesStrategy , HystrixCommandExecutionHook executionHook ) {
super ( group , key , threadPoolKey , circuitBreaker , threadPool , commandPropertiesDefaults , threadPoolPropertiesDefaults , met... | Remove stray debug println |
<nb> public interface SharedPreferenceConstants {
String KEY_HIDE_CARD_ACTIONS = STRING0 ;
@ preference ( type = INT , hasDefault = true , defaultInt = NUMBER0 )
String KEY_CACHE_SIZE_LIMIT = STRING1 ;
- @ preference ( type = BOOLEAN , hasDefault = true , defaultBoolean = true )
+ @ preference ( type = BOOLEA... | fixed upload media error |
<nb> public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests
internalCluster ( ) . startNode ( nodeSettings ) ;
Client client = client ( ) ;
String secondNode = internalCluster ( ) . startNode ( nodeSettings ) ;
+ logger . info ( STRING0 ) ;
+ assertThat ( client . admin ( ) . cluster ... | add wait for nodes to restorePersistentSettingsTest |
<nb> public class MainTestSuite {
System . out . println ( String . format ( STRING0 , indexName , typeName ) ) ;
}
catch ( IndexMissingException e ) {
- System . out . println ( String . format ( STRING1 ) ) ;
+ System . out . println ( String . format ( STRING1 , indexName ) ) ;
}
} | Add index name to the log message |
<nb> class GoogleOAuthTask extends AsyncTask < String , Integer , String > {
try {
token = GoogleAuthUtil . getToken ( mContext , emails [ NUMBER0 ] , STRING0 ) ;
+ SINGLE
+ GoogleAuthUtil . clearToken ( mContext , token ) ;
} catch ( UserRecoverableAuthException e ) {
Log . e ( TAG , STRING1 , e ) ;
} ... | Clear the Google token to ensure it isn t stored |
<nb> public class GrailsLayoutDecoratorMapperTests extends TestCase {
Page page = parser . parse ( new StringReader ( html ) ) ;
Decorator d = m . getDecorator ( request , page ) ;
- assertEquals ( STRING0 , d . getPage ( ) ) ;
+ assertEquals ( STRING0 , d . getURIPath ( ) ) ;
assertEquals ( STRING1 , d . g... | fixed test case following change to mapper |
<nb> public class HtmlParsing {
return false ;
}
+ if ( STRING0 . equals ( parentName ) && ( STRING1 . equals ( childName ) || STRING2 . equals ( childName ) ) ) {
+ return false ;
+ }
+
if ( HtmlUtil . canTerminate ( childName , parentName ) ) {
return true ;
} | terminate dd dt auto closing at dl |
<nb> public class AnswerPlaceholder {
@ transient
public void setHints ( @ notnull final List < String > hints ) {
- if ( hints . isEmpty ( ) ) return ;
- myHint = hints . get ( NUMBER0 ) ;
- myAdditionalHints = hints . subList ( NUMBER1 , hints . size ( ) ) ;
+ if ( hints . isEmpty ( ) ) {
+ myHint = S... | add ability to remove hints from answer placeholder dialog |
<nb> public class SlidingUpPanelLayout extends ViewGroup {
if ( mDragHelper . getViewDragState ( ) == ViewDragHelper . STATE_IDLE ) {
final int newTop = mSlideableView . getTop ( ) ;
final int topBound = getSlidingTop ( ) ;
- Log . d ( TAG , STRING0 + newTop + STRING1 + topBound ) ;
mSlideOffset = mIsSlidingU... | Removed log statement that was accidentally left in |
<nb> public class OperationDialog extends JDialog {
contentPane . add ( makeButtonPanel ( ) , BorderLayout . SOUTH ) ;
pack ( ) ;
+ setResizable ( false ) ;
}
@ override | Don t allow resize of param dialog |
<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 ;
<nb> public class Visibilities {
return ... | Add Explicit Nullable annotation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
public class Export extends CallableSystemAction {
+ public Export ( ) {
+ Looku... | Fix Export action enabled problem |
<nb> public class OutgoingConnection {
synchronized ( this . queuedEnvelopes ) {
+ checkConnection ( ) ;
+ this . queuedEnvelopes . add ( transferEnvelope ) ;
+ }
+ }
+
+ private void checkConnection ( ) {
+
+ synchronized ( this . queuedEnvelopes ) {
+
if ( ! this . isConnected ) {
this .... | Moved connection check in class OutgoingConnection to separate method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DiffLineMarkerRenderer implements LineMarkerRenderer {
if ( height > NUMBER0 ) {
g . setColor ( color ) ;
g . fillRect ( x , y , width , hei... | diff Draw shadowed lines instead of simple ones on gutter |
<nb> class TelephonyRegistry extends ITelephonyRegistry . Stub {
intent . putExtra ( Phone . STATE_CHANGE_REASON_KEY , reason ) ;
}
intent . putExtra ( Phone . DATA_APN_KEY , apn ) ;
- String types = apnTypes [ NUMBER0 ] ;
- for ( int i = NUMBER1 ; i < apnTypes . length ; i ++ ) {
- types = types + STRING0 ... | Fix exception when reporting disconn cdma state |
<nb> public final class TachyonConf {
SINGLE
public void set ( String key , String value ) {
Preconditions . checkArgument ( key != null && value != null ,
- String . format ( STRING0 , key , value ) ) ;
+ String . format ( STRING1 , key , value ) ) ;
mProperties . put ( key , value ) ;
} | Updated precondition message |
<nb> public class DiscoveryEnabledNIWSServerList extends AbstractServerList < Discovery
datacenter = ConfigurationManager . getDeploymentContext ( ) . getDeploymentDatacenter ( ) ;
targetRegion = ( String ) clientConfig . getProperty ( CommonClientConfigKey . TargetRegion ) ;
- shouldUseIpAddr = clientConfig . ... | add test to classname use property instead of hardcoded false |
<nb> public class OJSONWriter {
else if ( iValue instanceof ORecordId ) {
final ORecordId rid = ( ORecordId ) iValue ;
- buffer . append ( STRING0 ) ;
+ buffer . append ( STRING1 ) ;
buffer . append ( rid . toString ( ) ) ;
buffer . append ( STRING2 ) ; | Fixed issue with relationships in JSON db export |
<nb> public class KMeansDriver {
COMMENT
private static void runClustering ( String input , String clustersIn ,
String output , String measureClass , String convergenceDelta , Class < ? extends Vector > vectorClass ) {
+ if ( log . isInfoEnabled ( ) ) {
+ log . info ( STRING0 ) ;
+ log . info ( STRING1 + in... | print some more info |
<nb> public class AstridActivity extends FragmentActivity
editActivity . repopulateFromScratch ( intent ) ;
TaskListFragment tlf = getTaskListFragment ( ) ;
if ( tlf != null )
- tlf . refresh ( ) ;
+ tlf . loadTaskListContent ( true ) ;
} else {
startActivityForResult ( intent , TaskListFragment . ACTIV... | On tablets don t do a full refresh of the task list just requery full refresh deletes temp tasks |
<nb> public class DefaultNamedDomainObjectSet < T > extends DefaultNamedDomainObjectColl
super ( type , new TreeSet ( new Namer . Comparator ( namer ) ) , classGenerator , namer ) ;
}
+ public DefaultNamedDomainObjectSet ( Class < T > type , ClassGenerator classGenerator ) {
+ this ( type , classGenerator , N... | Added a constructor that knows about Named |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public interface TreeNode
COMMENT
COMMENT
COMMENT
- < T extends TreeNode > T at ( JsonPointer ptr ) ;
+ TreeNode at ( JsonPointer ptr ) ;
COMMENT
COMMENT
<nb> public interface TreeNode
... | Improve type casting for JsonPointer methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public abstract class AbstractGCEvent < T extends AbstractGCEvent < T > > implements Serializable {
@ suppresswarnings ( STRING0 ) | update of class comment |
<nb> public class FileDataStorageManager {
private boolean isAnyAncestorAvailableOfflineFolder ( long parentId ) {
boolean isFavorite = false ;
OCFile file = getFileById ( parentId ) ;
- if ( file . isFolder ( ) ) {
+ if ( file != null && file . isFolder ( ) ) { SINGLE
if ( file . getAvailableOfflineStatus ... | Fix NPE in creation of root folder |
<nb> public abstract class Texture implements CloneableSmartAsset , Savable , Cloneable
STRING0 ) ;
}
this . minificationFilter = minificationFilter ;
- if ( minificationFilter . usesMipMapLevels ( ) && image != null && ! image . isGeneratedMipmapsRequired ( ) ) {
+ if ( minificationFilter . usesMipMapLevels ... | Fixed constantly mipmap generation |
<nb> public class OrientGraph extends OrientTransactionalGraph {
FEATURES . supportsMapProperty = true ;
FEATURES . supportsStringProperty = true ;
FEATURES . supportsThreadedTransactions = false ;
+ FEATURES . supportsThreadIsolatedTransactions = false ;
}
}
<nb> public class OrientGraphNoTx extends Orie... | Supported supportsThreadIsolatedTransactions to avoid tests with reuse of Graph instances not supported anymore |
<nb> public class VcsDirectoryConfigurationPanel extends JPanel implements Configurab
Collection < MapInfo > removedValidRoots = ContainerUtil . mapNotNull ( selection , new Function < MapInfo , MapInfo > ( ) {
@ override
public MapInfo fun ( MapInfo info ) {
- return info . type == MapInfo . Type . NORMAL ? Ma... | vcs Don t treat a root as unregistered if its VCS doesn t support root checking |
<nb> public class NetworkImageView extends ImageView {
SINGLE
loadImageIfNecessary ( false ) ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public String getImageURL ( )
+ {
+ return mUrl ;
+ }
COMMENT
COMMENT | Add a getImageURL method |
<nb> public class TerasologyEngine implements GameEngine {
moduleSecurityManager . addAllowedPermission ( InjectionHelper . class , new RuntimePermission ( STRING0 ) ) ;
moduleSecurityManager . addAllowedPermission ( STRING1 , new RuntimePermission ( STRING2 ) ) ;
- moduleSecurityManager . addAllowedPermission ... | Fixed GUIManager permissions |
<nb> public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
SINGLE
if ( this . logger . isWarnEnabled ( ) ) {
this . logger . warn ( STRING0 + beanName +
- STRING1 +
+ STRING2 +
oldBeanDefinition + STRING3 + beanDefinition + STRING4 ) ;
}
}
- else {
+ else if ( ! beanDefini... | Reduced DefaultListableBeanFactory s override logging to debug level for equivalent bean definition |
<nb> public class UsersResource extends RestResource {
return Response . noContent ( ) . build ( ) ;
}
+ @ delete
+ @ path ( STRING0 )
+ @ requirespermissions ( RestPermissions . USERS_EDIT )
+ public Response deleteUser ( @ pathparam ( STRING1 ) String username ) {
+ final User user = User . load ( use... | add delete users resources |
<nb> public class ErrorReporter implements Thread . UncaughtExceptionHandler {
SINGLE
Log . d ( ACRA . LOG_TAG , STRING0 ) ;
sender = startSendingReports ( sendOnlySilentReports , true ) ;
+ if ( forceSilentReport && ! endApplication ) {
+ SINGLE
+ SINGLE
+ return ;
+ }
+
} else if ( reportingIntera... | Don t spawn thread to wait for SendWorker on handleSilentException |
<nb> public final class WorldRendererImpl implements WorldRenderer {
postProcessor . initializeMaterials ( ) ;
initMaterials ( ) ;
- shadowMapNode = new ShadowMapNode ( getMaterial ( STRING0 ) ,
+ shadowMapNode = new ShadowMapNode ( getMaterial ( STRING1 ) ,
playerCamera ,
this ,
backdropProvider , | Fix shader name |
<nb> public final class SyncResult implements Parcelable {
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public boolean databaseError ; | Fix minor typo in android content SyncResult |
<nb> class FrameHandler extends AbstractReceiveListener {
final Pooled < ByteBuffer [ ] > pooled = message . getData ( ) ;
final ByteBuffer singleBuffer = toBuffer ( pooled . getResource ( ) ) ;
final ByteBuffer toSend = singleBuffer . duplicate ( ) ;
+ SINGLE
+ WebSockets . sendClose ( toSend , channel , nul... | Send the close immediatly rather than waiting for the executor to send it |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class NonSplitRowParser extends RowParser {
}
public boolean parseRow ( Row row , String line , boolean guessValueType , LineNumberReader lineRead... | Non split row parser shouldn t trim lines because whitespaces are significant |
<nb> public class NodeService extends AbstractComponent {
@ nullable
private String hostname ;
- private final String version ;
+ private final Version version ;
@ inject
public NodeService ( Settings settings , ThreadPool threadPool , MonitorService monitorService , Discovery discovery , ClusterService... | Changed es version from string to class Version |
<nb> public class HealthIndicatorAutoConfiguration {
@ bean
@ conditionalonmissingbean ( name = STRING0 )
- public HealthIndicator < ? > redisHealthIndicator ( ) {
+ public HealthIndicator < ? > rabbitHealthIndicator ( ) {
if ( this . rabbitTemplates . size ( ) == NUMBER0 ) {
return new RabbitHealthIndica... | Rename rabbitHealthIndicator bean |
<nb> public class RecyclerListViewFragment extends Fragment {
}
@ override
public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) {
- inflater . inflate ( R . menu . menu_e_add_remove , menu ) ;
+ inflater . inflate ( R . menu . menu_e_already_expanded , menu ) ;
}
@ override | Fix wrong menu resource usage bug |
<nb> public class RoutingTableImpl extends BasicModule implements RoutingTable {
}
public RoutableChannelHandler getRoute ( JID node ) {
+ if ( node == null ) {
+ return null ;
+ }
return getRoute ( node . toString ( ) , node . getNode ( ) == null ? STRING0 : node . getNode ( ) ,
node . getDomain ( ) , ... | Added safety check |
<nb> public abstract class StreamResponse {
public abstract String matchingType ( ) ;
@ jsonproperty ( STRING0 )
+ @ nullable
public abstract String description ( ) ;
@ jsonproperty ( STRING1 )
<nb> public abstract class StreamResponse {
public static StreamResponse create ( @ jsonproperty ( STRING2 )... | Make stream description nullable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SecretSeriesDAO {
. where ( SECRETS . ID . eq ( id ) )
. execute ( ) ;
DSL . using ( configuration )
+ . delete ( SECRE... | Delete secret content when deleting by ID |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.