diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PyTestRemoteSdkProvider {
}
}
- private static RemoteCredentialsHolder getTestSdkCredentials ( String path ) {
+ priv... | Remove unused parameter |
<nb> public class PsiClassImpl extends JavaStubPsiElement < PsiClassStub < ? > > implements
@ nonnls private static final String VALUE_OF_METHOD = STRING0 ;
public PsiClassImpl ( final PsiClassStub stub ) {
- super ( stub , typeForClass ( stub . isAnonymous ( ) , stub . isEnumConstantInitializer ( ) ) ) ;
+ t... | Allow custom stubs for classes |
<nb> public final class ViewRootImpl implements ViewParent ,
for ( int i = NUMBER0 ; i < viewCount ; i ++ ) {
mTempViews [ i ] . invalidate ( ) ;
+ mTempViews [ i ] = null ;
}
for ( int i = NUMBER0 ; i < viewRectCount ; i ++ ) { | Fix a bug where late invalidating views with animations would be held |
<nb> public class DatePicker extends LinearLayout implements Button . OnClickListener ,
public boolean onLongClick ( View v ) {
v . performHapticFeedback ( HapticFeedbackConstants . LONG_PRESS ) ;
if ( v == mDelete ) {
+ mDelete . setPressed ( false ) ;
reset ( ) ;
updateKeypad ( ) ;
return true ;
<nb> ... | Fixing long press for pre ICS devices that still think the button is pressed |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GitResetDialog extends DialogWrapper {
init ( ) ;
}
+ @ nullable
+ @ override
+ public JComponent getPreferredFocusedComponent ( ) {
... | select the text box by default |
<nb> public class FileDataStorageManager implements DataStorageManager {
Vector < OCFile > files = getFilesbyParent ( id ) ;
- Log_OC . d ( TAG , STRING0 + String . valueOf ( id ) + STRING1 + String . valueOf ( files . size ( ) ) ) ;
-
for ( OCFile f : files )
{
folderSize = folderSize + f . getFileLeng... | Remove two log lines in FileDataStorageManager |
<nb> public class EditSourceUtil {
if ( element == null || ! element . isValid ( ) ) {
return false ;
}
- PsiElement navigationElement = element . getNavigationElement ( ) ;
- VirtualFile virtualFile = PsiUtil . getVirtualFile ( navigationElement ) ;
+ final PsiElement navigationElement = element . getNavig... | take canNavigate into considerations |
<nb> public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme
public void addMessageToConsoleWindow ( final String message , final TextAttributes attributes ) {
ApplicationManager . getApplication ( ) . invokeLater ( new Runnable ( ) {
public void run ( ) {
- if ( myProject . isDisposed ... | fixed NPE that happens when a message is added to vcs console window when current project is a default project |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class TestCaseNode extends TestNode implements TestPropertyExporter . Callback {
private final Map < String , String > properties = new ConcurrentHashMap < >... | Declare field as ConcurrentMap instead of ConcurrentHashMap |
<nb> class Layout extends RelativeLayout {
HardwareConfig hwConfig = getParams ( ) . getHardwareConfig ( ) ;
Density density = hwConfig . getDensity ( ) ;
boolean isRtl = Bridge . isLocaleRtl ( getParams ( ) . getLocale ( ) ) ;
+ setLayoutDirection ( isRtl ? LAYOUT_DIRECTION_RTL : LAYOUT_DIRECTION_LTR ) ;
N... | Fix layout mirroring |
<nb> public class DanmakuFactory {
scaleX = viewportWidth / ( float ) CURRENT_DISP_WIDTH ;
scaleY = viewportHeight / ( float ) CURRENT_DISP_HEIGHT ;
}
- CURRENT_DISP_WIDTH = ( int ) viewportWidth ;
- CURRENT_DISP_HEIGHT = ( int ) viewportHeight ;
if ( viewportHeight > NUMBER0 ) {
updateSpecialDanmakusDate... | set CURRENT_DISP_WIDTH and CURRENT_DISP_HEIGHT in updateViewportState |
<nb> class BrowserFrame extends Handler {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
- private int getFile ( String uri , byte [ ] buffer , int offset ) {
+ private int getFile ( String uri , byte [ ] buffer , int offset ,
+ int expectedSize ) {
int size = NUMBER0 ;
try {
InputStream stre... | Prevent getFile from copying when the file is too large |
<nb> public enum StoreType
public static StoreType typeOf ( String storeFileName )
{
final Optional < StoreType > optional = isStoreType ( storeFileName ) ;
- if ( optional . isPresent ( ) )
- {
- return optional . get ( ) ;
- }
- else
- {
- throw new IllegalArgumentException ( STRING0 + storeFileNa... | StoreType make use of Optional functionality |
<nb> public class MapActivity extends AccessibleActivity implements DownloadEvents ,
System . err . println ( STRING0 + ( System . currentTimeMillis ( ) - tm ) + STRING1 ) ;
}
- if ( ! permissionDone ) {
+ if ( ! permissionDone && ! app . getAppInitializer ( ) . isFirstTime ( ) ) {
if ( ! permissionAsked ) ... | Skip permission and storage dialog first time |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class SurfaceTexture { | Add docs about threading to SurfaceTexture |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | torodb Removed an unused import |
<nb> public class AarMojo extends AbstractAndroidMojo
SINGLE
for ( Artifact apkLibraryArtifact : getAllRelevantDependencyArtifacts ( ) )
{
- if ( apkLibraryArtifact . getType ( ) . equals ( AAR ) )
+ if ( apkLibraryArtifact . getType ( ) . equals ( AAR ) || apkLibraryArtifact . getType ( ) . equals ( APKLIB )... | Also include native lib from apklib s |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public final class DetailAST
extends CommonAST | added link to ANTLR FAQ patch by Peter Dobratz |
<nb> public class InMemoryBayesDatastore implements Datastore {
try {
SequenceFileModelReader . loadModel ( this , FileSystem . get ( new Path ( basePath ) . toUri ( ) , conf ) , params , conf ) ;
} catch ( IOException e ) {
- throw new InvalidDatastoreException ( e . getMessage ( ) ) ;
+ throw new InvalidDat... | throw a better exception |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConstraintSecurityHandler extends SecurityHandler implements Constr
if ( paths != null && ! paths . isEmpty ( ) )
{
for (... | Add logging of which webapp has path with uncovered http methods |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | add missing import in ContextPreparer |
<nb> public class WebApplicationHeader extends Composite
String textAlign = BrowseCap . hasMetaKey ( )
? STRING0
: STRING1 ;
- return STRING2 + cmd . getMenuLabel ( true ) + STRING3 +
+ return STRING2 + cmd . getMenuLabel ( false ) + STRING3 +
STRING4 + textAlign + STRING5
+ cmd . getShortcutPrettyHtml ( ... | don t display mnenomics in edit commands disabled dialog |
<nb> public class MacUtil {
} else if ( documentRoot instanceof Dialog ) {
windowTitle = ( ( Dialog ) documentRoot ) . getTitle ( ) ;
} else {
- throw new RuntimeException ( STRING0 ) ;
+ throw new RuntimeException ( STRING1 + documentRoot . getClass ( ) + STRING2 ) ;
}
return windowTitle ;
} | include window class into diagnostics met with documentation popup |
<nb> public class ContainerGateInterface extends BuildCraftContainer {
public ContainerGateInterface ( IInventory playerInventory , Pipe pipe ) {
super ( NUMBER0 ) ;
+ for ( int i = NUMBER0 ; i < actionsState . length ; ++ i ) {
+ actionsState [ i ] = ActionState . Deactivated ;
+ }
+
this . playerIInve... | fixed initial gate activation status |
<nb> public class ButtonGroupPropertiesPanel implements CustomPropertiesPanel {
myBindToFieldCheckBox . setSelected ( group . isBound ( ) ) ;
myBindToFieldCheckBox . addChangeListener ( new ChangeListener ( ) {
public void stateChanged ( ChangeEvent e ) {
- myGroup . setBound ( myBindToFieldCheckBox . isSelecte... | bound button group save fix |
<nb> import NAMESPACE ;
import NAMESPACE ;
@ runwith ( Suite . class )
- @ suite.suiteclasses ( { } )
+ @ suite.suiteclasses ( { CustomMeasuresTest . class , MeasureFiltersTest . class , TimeMachineTest . class } )
public class MeasuresTestSuite {
@ classrule | Add tests in suite |
<nb> public class PausesStat {
int toDelete = N_MAX / NUMBER0 ;
assert toDelete % NUMBER1 == NUMBER2 : toDelete ;
pauses . remove ( NUMBER2 , toDelete ) ;
+ maxDuration = NUMBER2 ;
}
register ( ) ;
started = true ; | reset max on overflow |
<nb> public class JUnitTestRunner {
Result result = junitCore . run ( c ) ;
hasError = hasError || ! result . wasSuccessful ( ) ;
}
- return hasError ? NUMBER0 : NUMBER1 ;
+ return hasError ? NUMBER1 : NUMBER0 ;
}
COMMENT | Fixed test runner return code |
<nb>
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+
package NAMESPACE ;
import NAMESPACE ; | added copyright notice |
<nb> public class PatternRuleHandler extends XMLRuleHandler {
int flags = regexCaseSensitive ? NUMBER0 : Pattern . CASE_INSENSITIVE | Pattern . UNICODE_CASE ;
String regexStr = regex . toString ( ) ;
if ( regexMode == RegexpMode . SMART ) {
+ SINGLE
regexStr = replaceSpacesInRegex ( regexStr ) ;
- SINGLE
... | turn TODO into a normal comment as it s probably not something we ll fix |
<nb> public class PsiElementRenameHandler implements RenameHandler {
private static void rename ( PsiElement element , final Project project , PsiElement nameSuggestionContext , Editor editor , String defaultName ) {
RenamePsiElementProcessor processor = RenamePsiElementProcessor . forElement ( element ) ;
- el... | reassigned variables complicate back forth debugging |
<nb> public class RulesWs implements WebService {
. setInternal ( true )
. setHandler ( searchHandler )
. createParam ( STRING0 , STRING1 )
- . createParam ( STRING2 , STRING3 )
+ . createParam ( STRING2 , STRING4 )
. createParam ( STRING5 , STRING6 )
. createParam ( STRING7 , STRING8 )
. createParam ( ... | Set api rules list as internal |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public interface GrMethodCall extends GrCallExpression {
+ public interface GrMethodCall extends GrCallExpression , NavigationItem {
@ nullable
GrExpression getInvokedExpress... | find usages of step definition |
<nb> public class AsyncIndexer implements Runnable {
databaseVersionListener . process ( null ) ;
this . done = true ;
}
-
- public boolean isDone ( ) {
- return this . done ;
- }
} | Removed method that is no longer needed |
<nb> public class ProcMeminfoParser {
ImmutableMap . Builder < String , Long > builder = ImmutableMap . builder ( ) ;
for ( String line : lines ) {
int colon = line . indexOf ( STRING0 ) ;
+ if ( colon == - NUMBER0 ) {
+ continue ;
+ }
String keyword = line . substring ( NUMBER1 , colon ) ;
String valSt... | Prevent ProcMemInfo from crashing when it gets weird input |
<nb> public class OHazelcastPlugin extends ODistributedAbstractPlugin implements Memb
if ( file . exists ( ) )
file . delete ( ) ;
+ try {
+ file . createNewFile ( ) ;
+ } catch ( IOException e ) {
+ throw new ODistributedException ( STRING0 , e ) ;
+ }
+
FileOutputStream out = null ;
try {
out ... | fixed problem on remote db deployment |
<nb> public class GdxTests {
TextButtonTest . class , TextButtonTestGL2 . class , TextureBindTest . class , SortedSpriteTest . class ,
ExternalMusicTest . class , SoftKeyboardTest . class , DirtyRenderingTest . class , YDownTest . class ,
ScreenCaptureTest . class , BitmapFontTest . class , LabelScaleTest . class... | Add new Vector2dTest to the GdxTets tests list |
<nb> public class AccountActivity extends ActionBarActivity {
if ( isSignedIn ) {
signOut ( ) ;
isSignedIn = false ;
+ setSupportProgressBarIndeterminateVisibility ( false ) ;
} else {
setAccountKeepSignedIn ( rememberPass ) ; | turn off indeterminate progress thing on sign out |
<nb> public class BroadcasterFuture < E > implements Future {
public E get ( long l , TimeUnit tu ) throws InterruptedException , ExecutionException , TimeoutException {
if ( innerFuture != null ) {
- return ( E ) innerFuture . get ( ) ;
+ return ( E ) innerFuture . get ( l , tu ) ;
}
- latch . await ( ... | Future should throw TimeoutException if get timeout reached |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ManagePackagesDialog extends DialogWrapper {
String name = ( String ) ( ( Pair ) value ) . getFirst ( ) ;
myNameLabel . set... | don t use Color BLUE |
<nb> public class IncrementalCompilerDecorator {
this . sourceDirs = sourceDirs ;
}
- public Compiler < JavaCompileSpec > prepareCompiler ( final IncrementalTaskInputs inputs ) {
- final Compiler < JavaCompileSpec > compiler = getCompiler ( inputs , sourceDirs ) ;
+ public Compiler < JavaCompileSpec > prepa... | Removed unnecessary modifier |
<nb> public class MavenSelectProjectPopup {
JBPopup popup = new PopupChooserBuilder ( projectTree )
. setTitle ( STRING0 )
+ . setResizable ( true )
. setItemChoosenCallback ( clickCallBack ) . setAutoselectOnMouseMove ( true )
. setCloseOnEnter ( false )
. createPopup ( ) ; | Make Select module popup resizable |
<nb> public class EntityDamageEvent extends EntityEvent implements Cancellable {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public void setDamage ( int damage ) {
+ this . damage = damage ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Adding EntityDamageEvent setDamage |
<nb> public class Application extends ApplicationAdapter
IServiceCapableConnection sc = ( IServiceCapableConnection ) conn ;
String chatLog = chatListener . getChatLog ( ) ;
SINGLE
- sc . invoke ( STRING0 , new Object [ ] { chatLog } ) ;
+ SINGLE
} | Remove chat callback to client |
<nb> public class VelocityBodyAsDomainObjectTest extends CamelTestSupport {
@ test
public void testWithObject ( ) throws Exception {
- String msg = String . format ( STRING0 , LS ) ;
+ String msg = String . format ( STRING0 , STRING1 ) ;
MockEndpoint mock = getMockEndpoint ( STRING2 ) ;
mock . expectedM... | Fixed the VelocityBodyAsDomainObjectTest in windows |
<nb> public class DependencyParserITest extends TestCase {
public void testDependencyParserEnglishSD ( ) {
DependencyParser parser = new DependencyParser ( ) ;
- parser . loadModelFile ( STRING0 ) ;
+ parser . loadModelFile ( STRING1 ) ;
double las = parser . testCoNLL ( STRING2 , null ) ;
assertEquals ( ... | Fix dependency parser model file reference again |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- @ target ( { ElementType . TYPE } )
+ @ target ( ElementType . TYPE )
@ retention ( RetentionPolicy . RUNTIME )
@ jacksonannotation
public @ interface JsonSnakeCase { | Simplify annotation in JsonSnakeCase |
<nb> public class ExtraTestCommandLineOptionsListener implements CommandLineArgumentA
}
public String getAdditionalCommandLineArguments ( String commandLineArguments ) {
- return String . format ( STRING0 , gradleUserHomeDir ) ;
+ return String . format ( STRING1 , gradleUserHomeDir ) ;
}
}
<nb> public ... | Make the out of process gradle no daemon |
<nb> public class LargeRecordHandlerITCase {
channel , memMan , memory , out . getBytesInLatestSegment ( ) ) ;
for ( int i = NUMBER0 ; i < NUM_RECORDS ; i ++ ) {
- System . out . println ( i ) ;
in . seek ( offsets . get ( i ) ) ;
Tuple3 < Long , SomeVeryLongValue , Byte > next = serializer . deserialize ( ... | hotfix tests Remove sysout logging in LargeRecordHandlerITCase |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove an unused import |
<nb> import NAMESPACE ;
key = CoreProperties . SCM_DISABLED_KEY ,
defaultValue = STRING0 ,
name = STRING1 ,
- description = STRING2 ,
+ description = STRING3 ,
module = false ,
project = true ,
global = true , | Fix description of property sonar scm disabled |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SchemaIndexHaIT
}
}
- @ test
+ @ test @ ignore ( STRING0 )
public void populatingSchemaIndicesOnMasterShouldBeBroughtOnlineOnSlavesAft... | Ignored flaky test while I debug to allow CI to keep running other stuff |
<nb> public abstract class WithWildCardPathCommand extends AbstractShellCommand {
}
Collections . sort ( paths , createAlluxioURIComparator ( ) ) ;
- List < String > errorMessages = new ArrayList < String > ( ) ;
+ List < String > errorMessages = new ArrayList < > ( ) ;
for ( AlluxioURI path : paths ) {
t... | SMALLFIX Removed explicit argument type in WithWildCardPathCommand |
<nb> public class ChunkSampleSource implements SampleSource , Loader . Callback {
private long currentLoadStartTimeMs ;
private MediaFormat downstreamMediaFormat ;
- private volatile Format downstreamFormat ;
+ private Format downstreamFormat ;
public ChunkSampleSource ( ChunkSource chunkSource , LoadCont... | Remove deprecated method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed package reference |
<nb> public class IdeaApplication {
ApplicationManagerEx . getApplicationEx ( ) . load ( ) ;
myLoaded = true ;
- myStarter . main ( myArgs ) ;
+ ( ( TransactionGuardImpl ) TransactionGuard . getInstance ( ) ) . performUserActivity ( ( ) - > myStarter . main ( myArgs ) ) ;
myStarter = null ; SINGLE
}
cat... | consider application startup a user activity fixes assertions during project opening in non ide application kinds e g inspections |
<nb> final class BootstrapCheck {
@ override
public String errorMessage ( ) {
return STRING0 + ElectMasterService . DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING . getKey ( ) +
- STRING1 ;
+ STRING2 ;
}
@ override | Remove period in min master node check log message |
<nb> public class HiveMetaTool {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
if ( oldURI . getHost ( ) == null || newURI . getHost ( ) == null ) {
System . err . println ( STRING0 ) ;
- } else if ( oldURI . getPort ( ) > NUMBER0 && newURI . getPort ( ) < NUMBER0 ) {
- S... | Allow URIs without port to be specified in metatool Shreepadma via Ashutosh Chauhan |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Russian extends Language {
private Tagger tagger = new RussianTagger ( ) ;
private Disambiguator disambiguator = new RussianRuleDisambiguato... | ru add Unifier |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPAC... | eliminate eclipse warnings |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb> public class RunConfigurationExtensionsManager < U extends RunConfigurationBase , T... | RunConfigurationExtensionsManager must not write defaults |
<nb> public class EventConfiguration
EventCode code = null ;
try
{
- code = EventCode . get ( Integer . parseInt ( codeId ) ) ;
+ code = EventCode . valueOf ( codeId ) ;
}
catch ( final IllegalArgumentException ignore )
{
}
- try
- {
- code = EventCode . valueOf ( codeId ) ;
- }
- catch ( ... | Java Don t throw unnecessary exceptions when parsing event codes |
<nb> public class Surface implements Parcelable {
SINGLE
SINGLE
SINGLE
- throw new IllegalStateException ( STRING0 ) ;
+ throw new IllegalArgumentException ( STRING0 ) ;
}
mLockedObject = nativeLockCanvas ( mNativeObject , mCanvas , inOutDirty ) ;
return mCanvas ;
<nb> public class Surface implements ... | Leave object in unlocked state when unlockCanvasAndPost fails |
<nb> public interface TraversalDescription
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
TraversalDescription depthFirst ( ) ;
<nb> public interface TraversalDescription
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
TraversalDescription breadthFirst ( ) ; | Added link to wikipedia in depth first breadth first description |
<nb> public class CarrierConfigManager {
STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING =
+ STRING1 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
... | Add instant lettering encoding and length limit carrier config options |
<nb> public class PhotoTag {
public JSONObject toJsonObject ( ) throws JSONException {
JSONObject object = new JSONObject ( ) ;
- object . put ( STRING0 , mFriend . getId ( ) ) ;
+ if ( hasFriend ( ) ) {
+ object . put ( STRING0 , mFriend . getId ( ) ) ;
+ }
object . put ( STRING1 , mX ) ;
object . pu... | Fix Photo Uploads with empty tags not being able to be saved |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | android update WXSDKInstance java |
<nb> public class TitanFeatures implements Graph . Features {
public VertexProperty . Cardinality getCardinality ( final String key ) {
TitanTransaction tx = TitanFeatures . this . graph . newTransaction ( ) ;
try {
- if ( ! tx . containsPropertyKey ( key ) ) return VertexProperty . Cardinality . single ; SINGL... | Changed getCardinality key default to list so that the crew could be loaded in the tests |
<nb> public class PApplet extends Applet
COMMENT
COMMENT
COMMENT
- static public String useQuartz = STRING0 ;
+ static public boolean useQuartz = true ;
+ SINGLE
COMMENT
COMMENT
<nb> public class PApplet extends Applet
if ( platform == MACOSX ) {
SINGLE
SINGLE
- System . setProperty ( STRING... | make this a proper boolean |
<nb> public class FileDownloader extends Service implements OnDatatransferProgressLis
COMMENT
COMMENT
public void cancel ( Account account , OCFile file ) {
- if ( Looper . myLooper ( ) == Looper . getMainLooper ( ) ) {
- Log_OC . d ( TAG , STRING0 ) ;
- } else {
- Log_OC . d ( TAG , STRING1 ) ;
- }
-... | Removed unneeded logs |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ notthreadsafe
public final class GreedyAllocator implements Allocator {
private BlockMetadataManagerView mManagerView ;
<nb>
package NAMESPACE ;... | Adding thread safety annotations for tachyon worker block allocator package in servers module |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReaderPostListFragment extends Fragment
} ) ;
mSearchView = ( SearchView ) mSearchMenuItem . getActionView ( ) ;
- SearchManager searchManager = ( SearchMan... | Simplified search view config |
<nb> public class ShaderTest extends GdxTest {
}
public static class TestShader extends BaseShader {
- public final static String vertexShader = STRING0 + STRING1
- + STRING2 + STRING3 + STRING4 + STRING5
- + STRING6 + STRING7 + STRING8 ;
- public final static String fragmentShader = STRING4 + STRING5
-... | Fixed formatting and crash in ShaderTest |
<nb> public final class ActivityThread {
COMMENT
Locale . setDefault ( data . config . locale ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ Resources . getSystem ( ) . updateConfiguration ( mConfiguration , null ) ;
+
data . info = getPackageInfoNoCheck ( data . appInfo ) ;
if ( data... | Invoke getSystem updateConfiguration when binding an application to |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class WarPackagingTests {
STRING0 , STRING1 , STRING2 , STRING3 ,
STRING4 , STRING5 ,
STRING6 , STRING7 ,
- STRING8 , STRING9 , STRING10 ,
+ STRING8 , STRING10 ,
STRING11 ) ) ;
private static final String BOOT_VERSION = V... | Fix broken build |
<nb> public class Tethering extends BaseNetworkObserver {
( ( BluetoothPan ) proxy ) . setBluetoothTethering ( enable ) ;
SINGLE
SINGLE
- int result = ( ( BluetoothPan ) proxy ) . isTetheringOn ( ) ?
+ int result = ( ( BluetoothPan ) proxy ) . isTetheringOn ( ) == enable ?
ConnectivityManager . TETHER_ERROR... | Fix a small issue with the BT Tether callback value |
<nb> public class NavBarPanel extends JPanel implements DataProvider , PopupOwner , Dis
}
final NavBarItem item = getItem ( index ) ;
- myNodePopup = new NavBarPopup ( this , siblings , NUMBER0 ) ;
+ myNodePopup = new NavBarPopup ( this , siblings , index < myModel . size ( ) - NUMBER1 ? objects . indexOf ( m... | fix selected index |
<nb> import NAMESPACE ;
COMMENT
public class HighFrequencySqlAnalyzer implements QueryResultListener {
- private static final int CAPACITY_SIZE = NUMBER0 ;
- private static final int DELETE_SIZE = NUMBER1 ;
+ private static final int CAPACITY_SIZE = NUMBER1 ;
+ private static final int DELETE_SIZE = NUMBE... | adjust cache size |
<nb> public abstract class ObjCObject extends NativeObject {
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public abstract class ObjCObject extends NativeObject {
COMMENT
COMMENT
COMMENT
- protected void updateStrongRef ( Object before , Object after ... | Made ObjCObject updateStrongRef public |
<nb> public class OsmandSettings {
defaultLocation ) ) ;
}
- public static final int VERSION_DEFAULTLOCATION_CHANGED = NUMBER0 ;
+ public static final int VERSION_DEFAULTLOCATION_CHANGED = Integer . MAX_VALUE ;
public String getDefaultExternalStorageLocation ( ) {
String defaultLocation = ctx . getExter... | Revert change with default location |
<nb> public class MainActivity extends QKActivity implements SlidingMenu . OnOpenListen
mSlidingMenu . setTouchModeAbove ( SlidingMenu . TOUCHMODE_FULLSCREEN ) ;
mSlidingMenu . setContent ( R . layout . content_frame ) ;
mSlidingMenu . setMenu ( R . layout . menu_frame ) ;
+ mSlidingMenu . showMenu ( false ) ; ... | Fixed conversation list shown at wrong time with wrong title |
<nb> public final class PendingIntent implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class PendingIntent implements Parcelable {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class ... | Fix bad links in PendingIntent java |
<nb> public class PowerProfile {
private static final String POWER_CPU_CLUSTER_SPEED_PREFIX = STRING0 ;
private static final String POWER_CPU_CLUSTER_ACTIVE_PREFIX = STRING1 ;
- @ suppresswarnings ( STRING2 )
+ @ suppresswarnings ( STRING3 )
private void initCpuClusters ( ) {
SINGLE
final Object obj = s... | Fix SuppressWarnings typo |
<nb> public class MainSettingsActivity extends PreferenceActivity {
return false ;
}
} ) ;
- if ( ! ShellUtils . isRooted ( ) ) {
+ if ( ! ShellUtils . checkRooted ( ) ) {
getPreferenceScreen ( ) . removePreference ( findPreference ( STRING0 ) ) ;
getPreferenceScreen ( ) . removePreference ( findPreferenc... | hide pref when not rooted |
<nb> public class WordPressDB {
public String getCurrentThemeId ( String blogId ) {
String [ ] selection = { blogId , String . valueOf ( NUMBER0 ) } ;
+ String currentThemeId ;
+ try {
+ currentThemeId = DatabaseUtils . stringForQuery ( db , STRING0 + Theme . ID + STRING1 + THEMES_TABLE + STRING2 + Theme . ... | Catching db error |
<nb> public class HBaseStoreManager extends DistributedStoreManager implements KeyCol
public static final String TABLE_NAME_DEFAULT = STRING0 ;
public static final String SHORT_CF_NAMES_KEY = STRING1 ;
- public static final boolean SHORT_CF_NAMES_DEFAULT = false ;
+ public static final boolean SHORT_CF_NAMES_... | Use single char CF names by default in HBase |
<nb> public final class MediaBrowserCompat {
mImpl . getItem ( mediaId , cb ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
public static class MediaItem implements Parcelable {
private final int mFlags ;
private final MediaDescriptionCompat mDescription ;
<nb> public abstract class MediaBrowserServiceCompat ex... | Add a class Javadoc for MediaBrowserCompat MediaItem |
<nb> public class BraceHighlightingHandler {
if ( lBrace != null && rBrace != null ) {
final int startLine = myEditor . offsetToLogicalPosition ( lBrace . getStartOffset ( ) ) . line ;
final int endLine = myEditor . offsetToLogicalPosition ( rBrace . getEndOffset ( ) ) . line ;
- if ( endLine - startLine > NUMB... | remove line markers if new scope is one line |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class HttpSessionEventPublisherTests extends TestCase {
SINGLE
<nb> public class HttpSessionEventPublisherTests extends TestCase {
pub . getContext ( ) ;
fail ( STRING0 ) ;
} catch ( IllegalArgumentException e ) {
- e . pri... | Removed printStackTrace from expected exception |
<nb> public class SmtpTransport extends Transport {
}
String authType = server . authenticationType ;
- if ( ! STRING0 . equals ( authType ) && ! STRING1 . equals ( authType ) ) {
+ if ( ! ( AUTH_AUTOMATIC . equals ( authType ) ||
+ AUTH_LOGIN . equals ( authType ) ||
+ AUTH_PLAIN . equals ( authType ) ||... | Added new authentication methods to SmtpTransport createUri |
<nb> public class DeprecationLogger {
private static final ThreadLocal < Boolean > LOG_TRACE = new ThreadLocal < Boolean > ( ) {
@ override
protected Boolean initialValue ( ) {
- return true ;
+ return false ;
}
} ; | Don t log deprecation trace by default |
<nb> public class SwiftInputStream extends InputStream {
if ( n <= NUMBER0 ) {
return NUMBER0 ;
}
-
closeStream ( ) ;
mPos += n ;
openStream ( ) ; | Remove extra spacing |
<nb> class TestOperationExecutor implements OperationExecutor {
}
@ override
+ @ suppresswarnings ( STRING0 )
public < T > T execute ( final ReadOperation < T > operation , final ReadPreference readPreference ) {
this . readOperation = operation ;
this . readPreference = readPreference ;
<nb> class Test... | Suppressed warnings in test class |
<nb> public class ServletContextImpl implements ServletContext {
Class < ? extends EventListener > clazz = ( Class < ? extends EventListener > ) deploymentInfo . getClassLoader ( ) . loadClass ( className ) ;
addListener ( clazz ) ;
} catch ( ClassNotFoundException e ) {
- throw new RuntimeException ( e ) ;
+... | Throw correct exception |
<nb> public abstract class TransportShardReplicationOperationAction < Request extends S
}
protected class PrimaryOperationRequest {
- public ShardId shardId ;
- public Request request ;
+ public final ShardId shardId ;
+ public final Request request ;
public PrimaryOperationRequest ( int shardId , Str... | Remove dead code |
<nb> public abstract class SpellingCheckRule extends Rule {
public List < DisambiguationPatternRule > getAntiPatterns ( ) {
return antiPatterns ;
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ protected int startsWithIgnoredWord ( String word ) {
+ Optional < String > match = ... | all add method startsWithIgnoredWord to SpellingCheckRule |
<nb> public class LuceneDocCollector extends Collector implements CrateCollector , Row
@ override
public void resume ( boolean async ) {
+ pendingPause = false ;
if ( paused . compareAndSet ( true , false ) ) {
if ( ! async ) {
innerCollect ( ) ;
<nb> public class LuceneDocCollector extends Collector im... | avoid pendingPause race condition on resume |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Removed TODO for WATCH support since this is now supported |
<nb> public interface Rule {
boolean template ( ) ;
+ @ checkfornull
RuleKey templateKey ( ) ;
COMMENT | Add missing CheckForNull on templateKey |
<nb> public class NotificationStackScrollLayout extends ViewGroup
SINGLE
mMaxOverScroll = FLOAT0 ;
}
+ int minScrollY = Math . max ( NUMBER0 , scrollRange ) ;
+ if ( mExpandedInThisMotion ) {
+ minScrollY = Math . min ( minScrollY , mMaxScrollAfterExpand ) ;
+ }
mScroller . fling ( mScrollX , mOwnScroll... | Fixed a bug with the scrolling after expanding a notification |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.