diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb
if ( averageResponseTime > timeout * NUMBER0 / NUMBER1 ) {
final long sleep = Math . abs ( timeout - averageResponseTime ) ;
- ODistributedServerLog . warn ( this , getLocalNodeName ( ) , null , DIRECTION . NONE ,
+ ODistrib... | Changed log gin level warn debug |
<nb> public class AlertViewPanel extends AbstractPanel {
}
private ZapTextArea createZapTextArea ( ) {
- ZapTextArea ZapTextArea = new ZapTextArea ( ) ;
- ZapTextArea = new ZapTextArea ( NUMBER0 , NUMBER1 ) ;
+ ZapTextArea ZapTextArea = new ZapTextArea ( NUMBER0 , NUMBER1 ) ;
ZapTextArea . setLineWrap ( t... | Remove instantiation of unused ZapTextArea |
<nb> public final class BluetoothAdapter {
SINGLE
}
} catch ( RemoteException e ) { Log . e ( TAG , STRING0 , e ) ; }
- if ( DBG ) Log . d ( TAG , STRING0 + hashCode ( ) + STRING1 ) ;
return STATE_OFF ;
} | Reduce log spam in BluetoothAdapter for getState |
<nb> public class NamespaceBuilderSupport extends BuilderSupport {
autoPrefix = true ;
}
+ public NamespaceBuilderSupport ( BuilderSupport builder , String uri , String prefix , boolean autoPrefix ) {
+ super ( builder ) ;
+ this . builder = builder ;
+ nsMap . put ( prefix , uri ) ;
+ this . autoPrefix... | Support the multiple namespaces with NamespaceBuilderSupport |
<nb> public class DefaultFileLockManager implements FileLockManager {
}
this . target = target ;
- this . mode = mode ;
+
this . displayName = displayName ;
this . operationDisplayName = operationDisplayName ;
if ( target . isDirectory ( ) ) {
<nb> public class DefaultFileLockManager implements FileLo... | Handle case where we ask the OS for a shared lock but it can only provide an exclusive lock |
<nb> public class ApkMojo extends AbstractAndroidMojo {
final File artifactFile = resolvedArtifact . getFile ( ) ;
try
{
- final File file = new File ( finalDestinationDirectory , STRING0 + resolvedArtifact . getArtifactId ( ) + STRING1 ) ;
- getLog ( ) . debug ( STRING2 + resolvedArtifact . getArtifactId ( )... | Only add lib to the beginning of an |
<nb> public class NavigationMenuPresenter implements MenuPresenter , AdapterView . OnIte
if ( mUpdateSuspended ) {
return ;
}
+ mUpdateSuspended = true ;
mItems . clear ( ) ;
int currentGroupId = - NUMBER0 ;
int currentGroupStart = NUMBER1 ;
<nb> public class NavigationMenuPresenter implements MenuPrese... | Fix NavigationView duplicating some items |
<nb> public class NotificationGuts extends LinearLayout implements TunerService . Tunab
} else {
mReset . setText ( mContext . getString ( R . string . do_not_silence_block ) ) ;
}
+ mBlock . setText ( mContext . getString ( R . string . block ) ) ;
+ mSilent . setText ( mContext . getString ( R . string . sh... | Always reapply strings |
<nb> public class Join < ModelClass extends Model , FromClass extends Model > implements
queryBuilder . append ( STRING0 ) ;
}
- queryBuilder . append ( type . name ( ) . replace ( STRING1 , STRING2 ) ) . appendSpace ( ) ;
+ queryBuilder . append ( type . name ( ) . replace ( STRING1 , STRING3 ) ) . appendSpa... | Fixed JOIN name bug |
<nb> public class JetPsiUtil {
}
@ notnull
- public static String getElementTextWithContext ( @ notnull JetElement element ) {
- if ( element instanceof JetFile ) {
+ public static String getElementTextWithContext ( @ notnull PsiElement element ) {
+ if ( element instanceof PsiFile ) {
return element . ... | JetPsiUtil getElementTextWithContext accepts PsiElement |
<nb> 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
import NAMESPACE ;
import static NAMESPACE ;
- i... | Delete unused imports in spring websocket module |
<nb> public class ContactListTreeModel
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public ContactNode findFirstContactNode ( )
{
<nb> public class ContactListTreeModel
COMMENT
private ContactNode findFirstContactNode ( GroupNode parentNode )
{
+ SINGLE
+ if ( parentNode . getChil... | Fixes a NoSuchElementException in the contact list |
<nb> public abstract class UsefulTestCase extends TestCase {
try {
Element newS = new Element ( STRING0 ) ;
settings . writeExternal ( newS ) ;
- SINGLE
+ Assert . assertEquals ( STRING1 , DEFAULT_SETTINGS_EXTERNALIZED , JDOMUtil . writeElement ( newS , STRING2 ) ) ;
}
catch ( AssertionError error ) {
C... | Revert commited by mistake |
<nb> public class Solo {
COMMENT
public Activity getCurrentActivity ( ) {
- return activityUtils . getCurrentActivity ( ) ;
+ return activityUtils . getCurrentActivity ( false ) ;
}
COMMENT | Removed sleep from getCurrentActivity in order for it to behave like the other getCurrent methods |
<nb> public class FileServer
{
public static void main ( String [ ] args ) throws Exception
{
+ SINGLE
+ SINGLE
+ SINGLE
Server server = new Server ( NUMBER0 ) ;
+ SINGLE
+ SINGLE
ResourceHandler resource_handler = new ResourceHandler ( ) ;
+ SINGLE
+ SINGLE
resource_handler . setDirectories... | Add comments to embedded FileServer example |
<nb>
COMMENT
COMMENT
- package NAMESPACE ;
+ package NAMESPACE ;
import NAMESPACE ; | en move the tokenizer test |
<nb> public abstract class TokenMarker
COMMENT
COMMENT
COMMENT
- public LineInfo ( byte token , Object obj )
- {
- this . token = token ;
- this . obj = obj ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
COMMENT
COMMENT
<nb> public abstract class TokenMarker
COMMENT
COMMENT
C... | remove unused portions |
<nb> public class GoPsiImplUtil {
if ( StringUtil . isEmpty ( packageName ) || StringUtil . isEmpty ( typeName ) ) return Collections . emptyList ( ) ;
String key = packageName + STRING0 + typeName ;
Project project = ( ( GoFile ) file ) . getProject ( ) ;
- PsiDirectory parent = file . getParent ( ) ;
- Glob... | Use file based package scope while looking for type methods |
<nb> public class TextField extends Widget implements Disableable {
copy ( ) ;
return true ;
}
- if ( keycode == Keys . X || keycode == Keys . DEL ) {
+ if ( keycode == Keys . X ) {
cut ( true ) ;
return true ;
} | Remove wrong keyboard shortcut |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class CommonUtils {
COMMENT
COMMENT
public static void changeLocalFilePermission ( String filePath , String perms ) throw... | Revert added todo |
<nb> public class ActFmInvoker {
}
} ) ;
+ String url = URL ;
+ if ( method . startsWith ( STRING0 ) )
+ url = url . replaceAll ( STRING1 , STRING2 ) ;
StringBuilder requestBuilder = new StringBuilder ( URL ) . append ( method ) . append ( STRING3 ) ;
StringBuilder sigBuilder = new StringBuilder ( ) ;
... | Allow non api url prefixes in api url |
<nb> public final class Timing extends ReactContextBaseJavaModule implements Lifecycl
@ reactmethod
public void deleteTimer ( ExecutorToken executorToken , int timerId ) {
synchronized ( mTimerGuard ) {
- Timer timer = mTimerIdsToTimers . get ( executorToken ) . get ( timerId ) ;
- if ( timer != null ) {
- ... | Fix null deref in RN timer code |
<nb> public class TextChangesStorage {
clientShift += adjusted . getDiff ( ) ;
newChangeEnd -= storedClientEnd - newChangeStart ;
insertionIndex = i + NUMBER0 ;
+ continue ;
+ }
+
+ SINGLE
+ if ( newChangeEnd == storedClientStart ) {
+ changeEntry . clientStartOffset += changeDiff ;
}
}
<nb> p... | Optimize performance of applying formatting changes |
<nb> import NAMESPACE ;
COMMENT
public class JsonSchemaFileIndex extends FileBasedIndexExtension < String , Integer > {
public static final ID < String , Integer > PROPERTIES_INDEX = ID . create ( STRING0 ) ;
- public static final int VERSION = NUMBER0 ;
+ public static final int VERSION = NUMBER1 ;
private... | provide parsing for rc file |
<nb> public class AsmClassGenerator extends ClassGenerator {
try {
cv . visit (
getBytecodeVersion ( ) ,
- adjustedModifiers ( classNode . getModifiers ( ) ) ,
+ adjustedClassModifiers ( classNode . getModifiers ( ) ) ,
controller . getInternalClassName ( ) ,
BytecodeHelper . getGenericsSignature ( classN... | remove static modifier from classes before writing the class |
<nb> public class Options {
private static boolean docCommentsEnabled = false ;
private static boolean finalMethodsAsFunctions = true ;
private static boolean removeClassMethods = false ;
- private static boolean hidePrivateMembers = true ;
+ SINGLE
+ private static boolean hidePrivateMembers = false ;
pr... | Temporarily change hide private methods to false so projects can |
<nb> public class FragmentActivity extends Activity {
COMMENT
public void onBackPressed ( ) {
if ( ! mFragments . popBackStackImmediate ( ) ) {
- finishAfterTransition ( ) ;
+ supportFinishAfterTransition ( ) ;
}
}
<nb> public class FragmentActivity extends Activity {
COMMENT
COMMENT
COMMENT
-... | Fix stack overflow from finishAfterTransition |
<nb> public abstract class DateFormatter {
public static SimpleDateFormat accountFor24HourTime ( Context context , SimpleDateFormat input ) { SINGLE
SharedPreferences prefs = MainActivity . getPrefs ( context ) ;
- boolean isUsing24HourTime = prefs . getBoolean ( SettingsFragment . TIMESTAMPS_24H , DateFormat .... | Replace getActivity with context |
<nb> public class TachyonMaster {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
public void stop ( ) throws Exception {
if ( mIsServing ) { | Stop master only in tests |
<nb> class JBTerminalSystemSettingsProvider extends DefaultTabbedSettingsProvider {
}
@ override
+ public KeyStroke [ ] getNextTabKeyStrokes ( ) {
+ return getKeyStrokesByActionId ( STRING0 ) ;
+ }
+
+ @ override
+ public KeyStroke [ ] getPreviousTabKeyStrokes ( ) {
+ return getKeyStrokesByActionId ... | Take shortcuts for next tab and prev tabs from keymap |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ @ cancelable
public class EntityJoinWorldEvent extends EntityEvent
{ | Make EntityJoinWorldEvent Cancelable properly |
<nb> public interface World {
COMMENT
COMMENT
public void setWeatherDuration ( int duration ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public boolean isThundering ( ) ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setThundering ( boolean thundering )... | Add methods to control thunder |
<nb> public class GroupVM extends BaseValueModel < Group > {
isChanged |= isCanClear . change ( rawObj . isCanClear ( ) ) ;
isChanged |= isCanViewInfo . change ( rawObj . isCanViewInfo ( ) ) ;
isChanged |= isCanJoin . change ( rawObj . isCanJoin ( ) ) ;
+ isChanged |= isCanCall . change ( rawObj . isCanCall ( )... | update isCanCall group permission |
<nb> final class AccessibilityController {
continue ;
}
- SINGLE
- if ( windowState . mAttrs . type ==
- WindowManager . LayoutParams . TYPE_ACCESSIBILITY_OVERLAY ) {
- continue ;
- }
-
SINGLE
final Rect boundsInScreen = mTempRect ;
computeWindowBoundsInScreen ( windowState , boundsInScreen ) ; ... | Don t ignore accessibility overlays during visibility computation |
<nb> public class CustomRootLayout extends LinearLayout implements ViewTreeObserver . O
private boolean mIsKeyboardShowing = false ;
+ private Runnable mKeyboardCallbackRunnable ;
+
protected void onKeyboardShowing ( final boolean isShowing ) {
this . mIsKeyboardShowing = isShowing ;
getPanelLayout ( th... | optimize keyboardlistener callback invocation |
<nb> public class ZeppelinDriverFactory {
try {
Thread . currentThread ( ) . setContextClassLoader ( cl ) ;
cls = cl . loadClass ( driverClassName ) ;
- Constructor < ZeppelinDriver > constructor = cls . getConstructor ( new Class [ ] { ZeppelinConfiguration . class , URI . class , URLClassLoader . class } ) ; ... | Apply changes URLClassloader Classloader when create constructor using reflection |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ suppresslint ( S... | Use C SAMPLE_FLAG_SYNC |
<nb> public class ZuulHeaders {
public static final String X_NETFLIX_CLIENT_PROTO = STRING0 ;
public static final String X_ZUUL_SURGICAL_FILTER = STRING1 ;
public static final String X_ZUUL_FILTER_EXECUTION_STATUS = STRING2 ;
+
+ SINGLE
+ private ZuulHeaders ( ) {
+ throw new AssertionError ( STRING3 ) ; ... | Prevent instantiation of constant utility class for Zuul headers |
<nb> public class HttpRequest {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public Map < String , List < String > > headers ( ) {
return connection . getHeaderFields ( ) ; | Expand return parameter documentation in headers |
<nb> public class GpodnetAuthenticationActivity extends ActionBarActivity {
if ( exception == null ) {
advance ( ) ;
} else {
- txtvError . setText ( exception . getMessage ( ) ) ;
+ txtvError . setText ( exception . getCause ( ) . getMessage ( ) ) ;
txtvError . setVisibility ( View . VISIBLE ) ;
}
} | Display error more nicely |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class ActionBar {
COMMENT
COMMENT
public static class LayoutParams extends MarginLayoutParams {
+ private static final int [ ] ATTRS = new int [ ] {
+ ... | Explicitly read gravity in context attrs constructor of layout params |
<nb> public class InExRules < T , R > implements InExRuleMatcher < T , R > {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- public int count ( ) {
+ public int totalRules ( ) {
if ( rules == null ) {
return NUMBER0 ;
}
<nb> public class InExRules < T , R > implements InExRuleMatcher < T , R > {
}
... | added total counts for included excluded rules |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public final class LocalTachyonMaster {
Constants . BLOCK_MASTER_SERVICE_NAME ,
Constants .... | Remove remaining references to user master |
<nb> public class ResourceLoader {
if ( ! respath . startsWith ( STRING0 ) || respath . indexOf ( STRING1 ) == - NUMBER0 )
throw new RuntimeException ( STRING2 + respath ) ;
respath = respath . substring ( new String ( STRING0 ) . length ( ) , respath . indexOf ( STRING1 ) ) + STRING3 ;
- SINGLE
File systemRe... | Remove old println from ResourceLoader |
<nb> public class ApkMojo extends AbstractAndroidMojo {
. getFinalName ( ) + STRING0 + ANDROID_PACKAGE_EXTENSTION ) ;
getLog ( ) . info ( STRING1 + unsignedOutputFile ) ;
createApkFile ( unsignedOutputFile , false ) ;
+ projectHelper . attachArtifact ( project , unsignedOutputFile , STRING2 ) ;
} else {
cre... | Attach the unsigned apk as artifact |
<nb> public class Vpn {
return true ;
}
- SINGLE
+ SINGLE
+ if ( getAlwaysOnPackage ( ) != null ) {
+ return false ;
+ }
+
+ SINGLE
enforceControlPermission ( ) ;
prepareInternal ( newPackage ) ; | Disallow prepare ing over an always on VPN app |
<nb> public class DefaultWebInvocationPrivilegeEvaluator implements WebInvocationPriv
return true ;
}
- if ( authentication == null || authentication . getAuthorities ( ) . isEmpty ( ) ) {
+ if ( authentication == null ) {
return false ;
} | Removed check for empty authority list from DefaultWebInvocationPrivilegeEvaluator |
<nb> public class CameraCaptureSessionImpl extends CameraCaptureSession {
}
SINGLE
+ mUnconfigureDrainer . taskStarted ( ) ;
try {
- mUnconfigureDrainer . taskStarted ( ) ;
mDeviceImpl
. configureOutputsChecked ( null ) ; SINGLE
} catch ( CameraAccessException e ) {
<nb> public class CameraCapture... | Fix parallel session and device close exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TestWebappClassLoaderMemoryLeak extends TomcatBaseTest {
SINGLE
Context ctx =
tomcat . addContext ( STRING0 , System . getProperty ( STRING1 ) ) ;
+
+ if (... | Fix test failure |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class NativeActivity extends Activity implements SurfaceHolder . Callback2 ,
InputQueue . Callback , ... | The NDK samples moved a while back |
<nb> public class PyClassNameCompletionContributor extends CompletionContributor {
if ( parent instanceof PyReferenceExpression && ( ( PyReferenceExpression ) parent ) . getQualifier ( ) != null ) {
return ;
}
+ final FileViewProvider provider = element . getContainingFile ( ) . getViewProvider ( ) ;
+ if ( p... | disable smart type completion inside views |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> pa... | Moved EJBUtilities class to the proper architectural level |
<nb> public class ListView extends AbsListView {
}
mDivider = divider ;
mDividerIsOpaque = divider == null || divider . getOpacity ( ) == PixelFormat . OPAQUE ;
- requestLayoutIfNecessary ( ) ;
+ requestLayout ( ) ;
+ invalidate ( ) ;
}
COMMENT
<nb> public class ListView extends AbsListView {
COMM... | Don t reset ListView when changing the divider drawable |
<nb> public class Validator
}
}
- SINGLE
- return false ;
+ SINGLE
+ SINGLE
+ for ( int i = NUMBER0 ; i < NUMBER1 ; i ++ ) {
+ testResult = executeQuery ( testGateway , testUsername , testPassword , queryPair . getTest ( ) , testTimeout , sessionProperties ) ;
+ if ( testResult . getState ( ) != Sta... | Improve verifier when underlying data may change |
<nb> public class TestBrickWall extends SimpleApplication {
@ override
public void simpleInitApp ( ) {
- System . loadLibrary ( STRING0 ) ;
- PhysicsSpace . initNativePhysics ( ) ;
- System . out . println ( STRING1 + Runtime . getRuntime ( ) . availableProcessors ( ) ) ;
bulletAppState = new BulletAppS... | remove wrong native call from test |
<nb> public abstract class FluidRegistry
static BiMap < String , Integer > fluidIDs = HashBiMap . create ( ) ;
public static final Fluid WATER = new Fluid ( STRING0 ) . setBlockID ( Block . waterStill . blockID ) . setUnlocalizedName ( Block . waterStill . getUnlocalizedName ( ) ) ;
- public static final Fluid ... | Adds Temperature to Lava |
<nb> public class ODatabaseImport extends ODatabaseImpExpAbstract {
jsonReader . readNext ( OJSONReader . NEXT_IN_OBJECT ) ;
} else if ( fieldName . equals ( STRING0 ) )
blueprintsIndexClass = jsonReader . readString ( OJSONReader . NEXT_IN_OBJECT ) ;
-
}
+ if ( indexName == null )
+ throw new IllegalAr... | added check if index name is missing |
<nb> public class SearchRequestBuilder extends ActionRequestBuilder < SearchRequest , Se
}
public SearchRequestBuilder setRescorer ( RescoreBuilder . Rescorer rescorer ) {
- rescoreBuilder ( ) . setRescorer ( rescorer ) ;
+ rescoreBuilder ( ) . rescorer ( rescorer ) ;
return this ;
}
public SearchRequ... | keep the rescorer builder consistent with other builders without the use of setters |
<nb> public class Pixmap implements Disposable {
COMMENT
COMMENT
COMMENT
- public void fillTriangle ( int x1 , int y1 , int x2 , int y2 , int x3 , int y3 , int radius ) {
+ public void fillTriangle ( int x1 , int y1 , int x2 , int y2 , int x3 , int y3 ) {
context . beginPath ( ) ;
context . moveTo ( x1 , ... | remove accidental radius parameter from fillTriangle |
<nb> public interface PackageDefinitionStrategy {
class ForTypeResourceUrl implements SealBaseLocator {
COMMENT
+ COMMENT
+ COMMENT
+ private static final int EXCLUDE_INITIAL_SLASH = NUMBER0 ;
+
+ COMMENT
COMMENT
COMMENT
private static final String CLASS_FILE_EXTENSION = STRING0 ;
<nb> public in... | Added field for extracting module name from path to make the code better readable |
<nb> public final class WebViewFactory {
Context webViewContext = initialApplication . createPackageContext (
sPackageInfo . packageName ,
Context . CONTEXT_INCLUDE_CODE | Context . CONTEXT_IGNORE_SECURITY ) ;
- initialApplication . getAssets ( ) . addAssetPath (
+ initialApplication . getAssets ( ) . addAsse... | Using addAssetPathAsSharedLibrary to load asset |
<nb> public class StreamApiMigrationInspection extends BaseJavaBatchLocalInspectionTo
new ReplaceWithCollectCallFix ( STRING0 + ( addAll ? STRING1 : STRING2 ) ) ) ;
}
else if ( REPLACE_TRIVIAL_FOREACH || ! isTrivial ( body , statement . getIterationParameter ( ) ) ) {
+ final List < LocalQuickFix > fixes = new ... | disable foreachOrdered for pure collections without filter |
<nb> public final class PoolBagEntry implements IConcurrentBagEntry
this . lastAccess = ClockSource . INSTANCE . currentTime ( ) ;
this . openStatements = new FastList < > ( Statement . class , NUMBER0 ) ;
- final long variance = pool . configuration . getMaxLifetime ( ) > NUMBER1 ? ThreadLocalRandom . current ... | Rename configuration member to config |
<nb> public class RedisClient extends DB {
String password = props . getProperty ( PASSWORD_PROPERTY ) ;
if ( password != null ) {
jedis . auth ( password ) ;
- jedis . flushAll ( ) ;
}
} | removed purge on auth behaviour |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import com google common base Optional |
<nb> public class ResourceLoader {
loadPluralsResources ( localValueResourceDir , systemValueResourceDir ) ;
loadValueResources ( localValueResourceDir , systemValueResourceDir ) ;
loadDimenResources ( localValueResourceDir , systemValueResourceDir ) ;
- loadIntegerResource ( localValueResourceDir , systemResou... | Loading int resources from same dir as others |
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public interface ProjectConnection {
COMMENT | Updated some Javadoc |
<nb> public class Task implements Runnable , TaskActions {
try {
if ( watchDogThread != null ) {
watchDogThread . start ( ) ;
- logger . info ( STRING0 ) ;
}
SINGLE | hotfix Remove noisy log message in TaskCancelerWatchDog |
<nb> public class CarrierConfigManager {
STRING0 ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public static final String KEY_IMS_DTMF_TONE_DELAY_INT = STRING1 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static fina... | Add a new carrier config for DTMF tone gap in CDMA |
<nb> public class JettyWebSocketUtil {
logger . info ( STRING0 , bufferSize ) ;
webSocketFactory . setBufferSize ( bufferSize ) ;
- int timeOut = NUMBER0 ;
+ int timeOut = NUMBER1 * NUMBER2 ;
if ( config . getInitParameter ( AtmosphereServlet . WEBSOCKET_IDLETIME ) != null ) {
timeOut = Integer . valueOf ... | InteliJ I hate you |
<nb> class ListConverter implements SingleValueConverter {
@ override
public Object fromString ( String s ) {
+ if ( s . isEmpty ( ) ) {
+ return new ArrayList < String > ( NUMBER0 ) ;
+ }
+
final String [ ] strings = s . split ( delimiter ) ;
List < Object > list = new ArrayList < Object > ( strings ... | Handle properly in ListConverter |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class FormDecoder {
}
try {
FileUpload nettyFileUpl... | Retain file upload buffer |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
public class VimShortcutKeyAction extends AnAction implements DumbAware {
- SINGLE
@ notnull public static Set < KeyStroke > VIM_ONLY_EDITOR_KEYS = ImmutableSet . < KeyStroke > builder ( )
. addAll ( getKeyStrokes ( VK_ENTER , NUMBER0 ) )
. addAll ( getKeyStr... | Removed obsolete TODO item |
<nb> public class Generator implements EntryPoint {
result += STRING0 ;
result += sizeY ;
result += STRING1 ;
- result += URL . encode ( content ) ;
+ result += URL . encodeComponent ( content ) ;
return result ;
}
<nb> package NAMESPACE ;
COMMENT
public final class Validators {
public static St... | Allow the character in phone numbers |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ServerRestartRequiredHandler implements OperationStepHandler , Descr
public static final ServerRestartRequiredHandler INSTANCE = new Ser... | acquire ControllerLock in the restart required handler |
<nb> public class JAASRealm
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
protected Principal createPrincipal ( String username , Subject subject , | Fix some typos |
<nb> public class ContributionListPanel extends JPanel implements Scrollable , Contrib
&& contribManager . getListing ( ) . hasUpdates ( contrib ) ) ;
}
+ installRemoveButton . removeActionListener ( installActionListener ) ;
+ installRemoveButton . removeActionListener ( removeActionListener ) ;
+ installR... | Fixed bug that tried to remove contributions twice when Remove button pressed |
<nb> public class TextureView extends View {
@ override
public void setLayerType ( int layerType , Paint paint ) {
if ( paint != mLayerPaint ) {
- mLayerPaint = paint ;
+ mLayerPaint = paint == null ? new Paint ( ) : paint ;
invalidate ( ) ;
}
} | Prevent TextureView from ever setting a null layer paint |
<nb> public abstract class Metadata {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public byte [ ] [ ] serialize ( ) {
Preconditions . checkState ( serializable , STRING0 ) ;
<nb> public abstract class Metadata {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
... | Make docs more strict for byte methods in Metadata |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Added class Javadoc |
<nb> public interface DelegateTask extends VariableScope {
COMMENT
String getTaskDefinitionKey ( ) ;
+
+ COMMENT
+ boolean isSuspended ( ) ;
+
+ COMMENT
+ String getTenantId ( ) ;
+
+ COMMENT
+ String getFormKey ( ) ;
+
+ COMMENT
+ void setFormKey ( String formKey ) ;
COMMENT
Delegat... | Add some getter and setter to DelegateTask |
<nb> class FloatingActionButtonEclairMr1 extends FloatingActionButtonImpl {
@ override
void setRippleColor ( int rippleColor ) {
- DrawableCompat . setTint ( mRippleDrawable , rippleColor ) ;
+ DrawableCompat . setTintList ( mRippleDrawable , createColorStateList ( rippleColor ) ) ;
}
@ override
<nb> ... | Fix setRippleColor on FloatingActionButton |
<nb> public class EnglishGrammaticalStructureTest extends TestCase {
STRING0 + STRING1 + STRING2 + STRING3 + STRING4 + STRING5 + STRING6 + STRING7 + STRING8 + STRING9 + STRING10 ,
STRING11 + STRING12 + STRING13 + STRING14 + STRING15 + STRING16 + STRING17 ,
STRING18 + STRING19 + STRING20 + STRING21 ,
- STRING22 ... | Fix up the unittest for the fixed dependency |
<nb> public class UpcomingFragment extends SherlockFragment implements
public void setIsShowingHeaders ( boolean isShowingHeaders ) {
if ( isShowingHeaders ) {
mHeaders = generateHeaderList ( ) ;
- if ( mHeaderChangeDataObserver != null ) {
+ if ( mHeaderChangeDataObserver == null ) {
mHeaderChangeDataObser... | Fix wrong conditional |
<nb> public class SimpleDiffChange {
boolean isEditable = DiffUtil . isEditable ( mySide . select ( myEditor1 , myEditor2 ) ) ;
boolean isOtherEditable = DiffUtil . isEditable ( mySide . other ( ) . select ( myEditor1 , myEditor2 ) ) ;
+ boolean isAppendable = myFragment . getStartLine1 ( ) != myFragment . getE... | do not show chevrone append actions for inserted removed fragments |
<nb> public abstract class AbstractContextLoader implements SmartContextLoader {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix malformed HTML in Javadoc |
<nb> public class HsqlDatabase extends AbstractJdbcDatabase {
@ override
public String escapeObjectName ( String objectName , Class < ? extends DatabaseObject > objectType ) {
+ if ( quotingStrategy == ObjectQuotingStrategy . QUOTE_ALL_OBJECTS ) {
+ return super . escapeObjectName ( objectName , objectType ) ... | Fixed failing test |
<nb> public class DexProducedFromJavaLibrary extends AbstractBuildRule
@ visiblefortesting
static final String LINEAR_ALLOC_KEY_ON_DISK_METADATA = STRING0 ;
+ @ visiblefortesting
static final String CLASSNAMES_TO_HASHES = STRING1 ;
private final JavaLibrary javaLibrary ; | Add VisibleForTesting to a constant |
<nb> public class ArticleTextExtractor {
authorName = SHelper . innerTrim ( IGNORE_AUTHOR_PARTS . matcher ( authorName ) . replaceAll ( STRING0 ) ) ;
+ SINGLE
+ int atIndex = authorName . indexOf ( STRING1 ) ;
+ if ( atIndex > NUMBER0 ) {
+ authorName = SHelper . innerTrim ( authorName . substring ( NUMBE... | Handle author name with in it |
<nb> public class DevicePolicyManager {
}
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Change javadoc of setAccountManagementDisabled |
<nb> public abstract class BaseOptimizer implements ConvexOptimizer {
public final static String SCORE_KEY = STRING0 ;
public final static String PARAMS_KEY = STRING1 ;
public final static String SEARCH_DIR = STRING2 ;
- protected Map < String , GradientUpdater > adaGradForVariable = new ConcurrentHashMap < > (... | Added searchState key for searchDirection |
<nb> public class ECKey implements EncryptableItem , Serializable {
BigInteger srInv = rInv . multiply ( sig . s ) . mod ( n ) ;
BigInteger eInvrInv = rInv . multiply ( eInv ) . mod ( n ) ;
ECPoint . Fp q = ( ECPoint . Fp ) ECAlgorithms . sumOfTwoMultiplies ( CURVE . getG ( ) , eInvrInv , R , srInv ) ;
- return... | respect the compressed flag again |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPA... | Fix InLineFileCache bug |
<nb> import NAMESPACE ;
public class DependencyBank {
SINGLE
- static String libgdxVersion = STRING0 ;
+ static String libgdxVersion = STRING1 ;
static String roboVMVersion = STRING2 ;
SINGLE
<nb> public class DependencyBank {
new String [ ] { STRING3 , STRING4 }
) ,
BOX2DLIGHTS (
- new String... | updated dependency bank to use correct gdx version |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Relative302Test extends AbstractBasicTest {
assertNotNull ( response ) ;
assertEquals ( response . getStatusCode ( ) , NUMB... | Fix proper exception |
<nb> import NAMESPACE ;
COMMENT
public class JLanguageTool {
+ COMMENT
public static final String VERSION = STRING0 ;
+ COMMENT
public static final String BUILD_DATE = getBuildDate ( ) ;
+ COMMENT
public static final String PATTERN_FILE = STRING1 ;
+ COMMENT
public static final String FALSE_FRIE... | add javadoc for public fields |
<nb> public abstract class BarcodeScannerView extends FrameLayout implements Camera . P
}
Rect rect = new Rect ( framingRect ) ;
- rect . left = rect . left * previewWidth / viewFinderViewWidth ;
- rect . right = rect . right * previewWidth / viewFinderViewWidth ;
- rect . top = rect . top * previewHeight /... | Don t need translation when viewfinder rect fits inside camera preview |
<nb> public class XmlHighlightVisitor extends PsiElementVisitor implements Validator .
QuickFixAction . registerQuickFixAction ( highlightInfo , intentionAction , null ) ;
QuickFixAction . registerQuickFixAction ( highlightInfo , intentionAction2 , null ) ;
- QuickFixAction . registerQuickFixAction ( highlightI... | order of intentions rename start tag name fixed to suggest renaming end first |
<nb>
- F / *
+ COMMENT
COMMENT
COMMENT
COMMENT | removed typo in lwjglCanvas preventing the engine to build |
<nb> public class P2 < E > extends T2 < E , E > {
public P2 ( E first , E second ) {
super ( first , second ) ;
}
+
+ public String toString ( ) {
+ return STRING0 + getFirst ( ) + STRING1 + getSecond ( ) + STRING2 ;
+ }
} | add toString method to pair |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.