diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class DeepLearningTask2 extends MRTask < DeepLearningTask2 > {
@ override
public void setupLocal ( ) {
_res = new DeepLearningTask ( _jobKey , _model_info , _sync_fraction ) ;
- _res . addToPendingCount ( NUMBER0 ) ;
+ addToPendingCount ( NUMBER0 ) ;
_res . setCompleter ( this ) ;
_res . async... | Fix bug found by Tomas thanks |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StopDeploymentGroupTest {
. thenReturn ( tasksExist ? mock ( Stat . class ) : null ) ;
final ZooKeeperMasterModel master... | Fix compilation error |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
public class SyndTypeUtils {
- private static final String VALID_MEDIA_MIMETYPE = STRING0 + STRING1 + STRING2
- + STRING1 + STRING3 ;
- private static final String VALID_IMA... | Accept application octet stream as valid media mime type |
<nb> public class MultiThreadedTest extends TestBase {
public static void main ( String [ ] args ) throws Exception {
int numberOfThreads = NUMBER0 ;
+ long before = System . currentTimeMillis ( ) ;
runInMultipleThreads ( numberOfThreads ) ;
-
- System . out . println ( STRING0 + numberOfThreads + STRING1... | now printing execution time |
<nb> public class GLM2 extends ModelJob {
_oldModel = new GLMModel ( dest ( ) , source , new GLMParams ( family , tweedie_variance_power , link , NUMBER0 - tweedie_variance_power ) , beta_epsilon , alpha , lambda , System . currentTimeMillis ( ) - _startTime , GLM2 . this . case_mode , GLM2 . this . case_val ) ;
tw... | Remove debug print |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class AbstractExpandableItemsHandler < KeyType , ComponentType exte
SwingUtilities . convertPointToScreen ( location , m... | Remove shadow from the expansion hint on Mac |
<nb> public class NotificationManagerService extends SystemService {
visibilityOverrides . putInt ( record . sbn . getKey ( ) ,
record . getPackageVisibilityOverride ( ) ) ;
}
+ SINGLE
if ( speedBumpIndex == - NUMBER0 &&
+ SINGLE
+ ! record . isRecentlyIntrusive ( ) &&
record . sbn . getNotification ( )... | Fix speedbump for PRIORITY_MIN intrusives |
<nb> public abstract class AccountHandle {
public abstract boolean authenticated ( ) ;
-
- protected void success ( Context context ) {
- callback ( context ) ;
- }
-
- private synchronized void callback ( Context context ) {
+
+ protected synchronized void success ( Context context ) {
if ( c... | Remove redundant method |
<nb> public class WrappingAndBracesPanel extends OptionTableWithPreviewPanel {
addOption ( STRING0 , ApplicationBundle . message ( STRING1 ) , WRAPPING_KEEP ) ;
addOption ( STRING2 , ApplicationBundle . message ( STRING3 ) , WRAPPING_KEEP ) ;
+ addOption ( STRING4 , ApplicationBundle . message ( STRING5 ) , nul... | pull option up |
<nb> public class JarHelper {
COMMENT
COMMENT
protected void writeManifestEntry ( byte [ ] content ) throws IOException {
- writeEntry ( out , MANIFEST_DIR , new byte [ ] { } ) ;
- writeEntry ( out , MANIFEST_NAME , content ) ;
+ int oldStorageMethod = storageMethod ;
+ SINGLE
+ SINGLE
+ if ( content ... | Do not compress small manifest files |
<nb> public class HdfsUnderFileSystem extends UnderFileSystem {
mFileSystem . setOwner ( fileStatus . getPath ( ) , user , group ) ;
} catch ( IOException e ) {
LOG . error ( STRING0 , path , user , group , e ) ;
+ LOG . warn ( STRING1 +
+ STRING2 ) ;
throw e ;
}
} | Add a warning in case of hdfs setowner errors |
<nb> class PackageManagerService extends IPackageManager . Stub {
COMMENT
COMMENT
public void updateExternalMediaStatus ( final boolean mediaStatus , final boolean reportStatus ) {
- if ( Binder . getCallingUid ( ) != Process . SYSTEM_UID ) {
+ int callingUid = Binder . getCallingUid ( ) ;
+ if ( callingUid... | Allow root to set the mount state as well so that the simulator |
<nb> public class FakeContext implements Context {
public Validation getValidation ( ) {
return validation ;
}
+
+ @ override
+ public String getPathParameterEncoded ( String name ) {
+ return this . getPathParameterEncoded ( name ) ;
+ }
} | Added encoded method for FakeContext |
<nb> public class EmmaMojo extends AbstractAndroidMojo
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed documentation syntax error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileManagerImpl implements FileManager {
private final FileIndexFacade myFileIndex ;
private final ConcurrentMap < Virtua... | do store view providers in weak map to avoid long indexing |
<nb> public class MultiUserChatServiceImpl implements Component , MultiUserChatService
return ;
}
}
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
if ( packet . getError ( ) != null &&
- packet . getError ( ) . getType ( ) . equals ( PacketError . Condition . remote_server_not_found ) ) {
+ packet . getError (... | Detect all non recoverable errors |
<nb> import NAMESPACE ;
import static NAMESPACE ;
- public class DummySerializer {
+ public class DummySerializer { SINGLE
public static void writeTargetTo ( File outputFile , Object target ) {
try {
FileOutputStream out = new FileOutputStream ( outputFile ) ; | Added a TODO |
<nb> public class AntlrParserPlugin extends ASTHelper implements ParserPlugin , Groovy
Expression leftExpression = expression ( leftNode ) ;
AST rightNode = leftNode . getNextSibling ( ) ;
if ( rightNode == null ) {
- rightNode = leftNode . getFirstChild ( ) ;
+ SINGLE
+ return leftExpression ;
}
- if (... | avoids BinarayExpressions for parameters with default values |
<nb> public class ColumnSnapshotGenerator extends JdbcSnapshotGenerator {
if ( defaultValue != null && defaultValue instanceof String ) {
if ( defaultValue . equals ( STRING0 ) ) {
- columnMetadataResultSet . set ( STRING1 , null ) ;
+ columnMetadataResultSet . set ( STRING1 , new DatabaseFunction ( STRING2 )... | Capture explicit null default values on snapshot and generate diffChangeLog |
<nb> public enum TraverserReturnType
@ override
public MappingRepresentation toRepresentation ( Path position )
{
- return new org . neo4j . server . rest . repr . PathRepresentation ( position ) ;
+ return new org . neo4j . server . rest . repr . PathRepresentation < Path > ( position ) ;
}
} ,
fullpat... | Added generic arguments to tidy up |
<nb> public abstract class ParseTime {
}
private static long hdigit ( long x , byte b ) {
- if ( false ) return Long . MIN_VALUE ;
+ if ( x == Long . MIN_VALUE ) return Long . MIN_VALUE ;
else if ( b >= STRING0 && b <= STRING1 ) return ( x < < NUMBER0 ) + b - STRING0 ;
else if ( b >= STRING2 && b <= STRIN... | Missed another fail UUID path |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed import BlockGrass BlockTallGrass |
<nb> public class StoreDirect extends Store {
checkHeaders ( ) ;
indexSize = index . getLong ( IO_INDEX_SIZE ) ;
physSize = index . getLong ( IO_PHYS_SIZE ) ;
- indexSize = index . getLong ( IO_FREE_SIZE ) ;
+ freeSize = index . getLong ( IO_FREE_SIZE ) ;
}
}
<nb> public class StoreDirect extends Stor... | Fixed data corruption caused by typo |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class TypeRepr {
switch ( t . getSort ( ) ) {
case Type . OBJECT :
- return context . getType ( new ClassType ( context . get ( t . getClassName ( ) . replaceAll ( STRING0 , STRING1 ) ) ) ) ... | minor optimization don t use regexp |
<nb> public class JavaSourceProcessor extends BaseSourceProcessor {
if ( ! trimmedLine . startsWith ( STRING0 ) ) {
line = StringUtil . replace (
line , STRING1 ,
- STRING0 + MAIN_RELEASE_LATEST_VERSION ) ;
+ STRING0 + getMainReleaseVersion ( ) ) ;
}
else {
String version = trimmedLine . substring ( NUM... | SourceFormatter Use new method |
<nb> public class CompactionManager implements CompactionManagerMBean
assert ! cfs . isIndex ( ) ;
Table table = cfs . table ;
Collection < Range > ranges = StorageService . instance . getLocalRanges ( table . name ) ;
+ if ( ranges . isEmpty ( ) )
+ {
+ logger . info ( STRING0 ) ;
+ return ;
+ }
fo... | Don t all cleanup if ring is not joined since this wiped all data |
<nb> public class EmbeddedMojo extends AbstractExecMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
protected String outputDirectory ;
<nb> public class RunMojo extends AbstractExecMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
protected String dot... | Fixed the plugins parameter annotation usages where a default value parameter should have been specified and not the property |
<nb> public class ContiguousIntervalConsumableInArrear {
Preconditions . checkState ( isBuilt . get ( ) ) ;
if ( transitionTimes . size ( ) < NUMBER0 ) {
- return new ConsumableInArrearItemsAndNextNotificationDate ( ImmutableList . < InvoiceItem > of ( ) , null ) ;
+ return new ConsumableInArrearItemsAndNextN... | Fix usage issue for pure usage plan where there is no recurring section |
<nb> public class OTPServiceImplTest {
@ before
public void before ( ) {
- rand = new Random ( NUMBER0 ) ;
+ rand = new Random ( NUMBER1 ) ;
GraphServiceImpl graphService = new GraphServiceImpl ( ) ;
graphService . registerGraph ( STRING0 , graph ) ; | Change random seed so all routes exist for bulk lookup |
<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 ; | eliminate eclipse warnings |
<nb> import NAMESPACE ;
public class BridgePowerManager implements IPowerManager {
@ override
- public boolean isScreenOn ( ) throws RemoteException {
+ public boolean isInteractive ( ) throws RemoteException {
return true ;
} | Fix another build breakage |
<nb> public class HistoricVariableInstanceQueryImpl extends AbstractQuery < HistoricVar
if ( taskId != null ) {
throw new ActivitiIllegalArgumentException ( STRING0 ) ;
}
+ if ( taskIds != null ) {
+ throw new ActivitiIllegalArgumentException ( STRING1 ) ;
+ }
excludeTaskRelated = true ;
return this ;
... | Cannot use taskIds together with excludeTaskVariables |
<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 ;
- import NAMESPACE ;
- import NAMESPACE ;
- impor... | remove unused imports |
<nb> public class MagicLinkSignInActivity extends SignInActivity implements WPComMagi
private void slideInFragment ( Fragment fragment , boolean shouldAddToBackStack ) {
FragmentTransaction fragmentTransaction = getSupportFragmentManager ( ) . beginTransaction ( ) ;
- fragmentTransaction . setCustomAnimations (... | Using non helpshift in house animations |
<nb> public class CodeItem extends Item < CodeItem > {
InstructionWriter . writeInstructions ( encodedInstructions , referencedItems , out ) ;
if ( tries != null && tries . length > NUMBER0 ) {
- if ( ( tries . length % NUMBER1 ) == NUMBER2 ) {
+ if ( ( encodedInstructions . length % NUMBER3 ) != NUMBER0 ) { ... | Fixed an issue with the logic that determines if the padding field should be written before the tries handlers |
<nb> public final class RemoteReceiver implements IOReadableWritable {
final InetAddress ia = this . connectionAddress . getAddress ( ) ;
out . writeInt ( ia . getAddress ( ) . length ) ;
out . write ( ia . getAddress ( ) ) ;
- out . write ( this . connectionAddress . getPort ( ) ) ;
+ out . writeInt ( this .... | Fixed bug in serialization method of RemoteReceiver |
<nb> public class JobCreateCommand extends ControlCommand {
. help ( STRING0 +
STRING1 +
STRING2 +
- STRING3 ) ;
+ STRING4 ) ;
argsArg = parser . addArgument ( STRING5 )
. nargs ( STRING6 ) | Fix docs on volumes |
<nb> public class TWFragment extends Fragment {
private static class SimpleDecoration extends RecyclerView . ItemDecoration {
private final int mBorderWidth ;
private final Paint mPaint ;
- private final Rect mTempRect = new Rect ( ) ;
public SimpleDecoration ( Context context ) {
final Resources res = co... | sample Remove unused member from SimpleItemDecoration |
<nb> public class SymbolFormatter extends SymbolVisitor < Void , String > {
private SymbolFormatter ( ) { }
public static String format ( String messageTmpl , Symbol . . . symbols ) {
- String [ ] formattedSymbols = new String [ symbols . length ] ;
+ Object [ ] formattedSymbols = new String [ symbols . lengt... | fix varargs call warning |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class OServerNetworkListener extends Thread {
for ( int port : ports ) {
inboundAddr = new InetSocketAddress ( iHostName , port ... | Fixed issue reported by Marc Ende me e beyond de on listen of tcp ip server socket |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ShadowActivity extends ShadowContextWrapper {
public void onDestroy ( ) {
assertNoBroadcastListenersRegistered ( ) ;
}
... | Added runOnUiThread to ShadowActivity |
<nb> public class FileBasedIndexImpl extends FileBasedIndex {
@ nullable GlobalSearchScope filter ,
@ nullable VirtualFile restrictedFile ) {
ProgressManager . checkCanceled ( ) ;
- myContentlessIndicesUpdateQueue . ensureUpToDate ( ) ; SINGLE
+ myContentlessIndicesUpdateQueue . ensureUpToDate ( ) ; SINGLE
... | assert that index queries are to be performed in a read action |
<nb> public class WPWebViewActivity extends WebViewActivity {
if ( ! TextUtils . isEmpty ( authURL ) ) {
allowedURL . add ( authURL ) ;
}
+
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( ! TextUtils . isEmpty ( addressToLoad ) && addressToLoad . endsWith ( STRING0 ) ) {
+ int indexOf = addressToLoad . lastIndexOf ... | Remove the preview true prefix from the passed post address and add it to the list of allowable URLs |
<nb> public class HikariClassTransformer implements ClassFileTransformer
if ( LOGGER . isDebugEnabled ( ) )
{
- target . debugWriteFile ( STRING0 ) ;
+ target . debugWriteFile ( System . getProperty ( STRING1 ) ) ;
}
return target . toBytecode ( ) ;
} | Use the configured temp folder for dumping instrumented class files in debug mode |
<nb> public class WebdavEntry {
if ( mContentType . indexOf ( STRING0 ) >= NUMBER0 ) {
mContentType = mContentType . substring ( NUMBER0 , mContentType . indexOf ( STRING0 ) ) ;
}
- } else {
- mContentType = STRING1 ;
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ }
+
+ SINGLE
+ prop = ... | Fixed folder detection now WebDAV compliant |
<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 ; | Removed simple compilation warnings |
<nb> public interface WindowManager extends ViewManager {
title = STRING0 ;
mTitle = TextUtils . stringOrSpannedString ( title ) ;
- accessibilityTitle = mTitle ;
}
public final CharSequence getTitle ( ) { | Do not update accessibilityTitle in |
<nb> import NAMESPACE ;
@ cancelable
public class ServerChatEvent extends Event {
- public final String message , username ;
- public final EntityPlayerMP player ;
- public String line ;
- public ServerChatEvent ( EntityPlayerMP player , String message , String line )
- {
- super ( ) ;
- this . mess... | Add event to cancel or change chat messages sent from server |
<nb> public final class ButterKnife {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public static void inject ( Activity target ) {
inject ( target , target , Finder . ACTIVITY ) ;
<nb> public final class ButterKnife {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
public static void inject ( View ta... | Missed a few exception declarations |
<nb>
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ReflectionTestUtil {
Constructor < T > constructor = enumClass . getDeclaredConstructor (
parameterTypes ) ;
- Method acquireConstructorAccessorMethod = ... | Fix use of imports inconsistent with liferay standards |
<nb> public class TraitASTTransformation extends AbstractASTTransformation implements
private static final ClassNode INVOKERHELPER_CLASSNODE = ClassHelper . make ( InvokerHelper . class ) ;
+ private static final ClassNode OVERRIDE_CLASSNODE = ClassHelper . make ( Override . class ) ;
+
private SourceUnit u... | Create Override annotation ClassNode and using it for filtering Helper |
<nb> public class RowN implements Row {
@ override
public Object [ ] materialize ( ) {
- return cells ;
+ Object [ ] result = new Object [ size ] ;
+ System . arraycopy ( cells , NUMBER0 , result , NUMBER0 , size ) ;
+ return result ;
}
} | fix materialization of RowN it now has the proper size and also copies the array |
<nb> public class OChannelBinaryAsynchClient extends OChannelBinary {
public void endResponse ( ) throws IOException {
channelRead = false ;
- boolean dirty = false ;
try {
- if ( inStream . available ( ) > NUMBER0 ) {
- throw new IOException ( STRING0 ) ;
- }
+ if ( inStream != null && inStream . ava... | Fixed issue caused HACrashtest to fail |
<nb> public class PythonFormattingModelBuilder implements FormattingModelBuilderEx , C
public FormattingModel createModel ( @ notnull PsiElement element ,
@ notnull CodeStyleSettings settings ,
@ notnull FormattingMode mode ) {
- final ASTNode fileNode = element . getContainingFile ( ) . getNode ( ) ;
if ( DU... | Python formatter builds root block from any given PsiElement since formatter core supports that now |
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMEN... | remove javadoc warnings from cache add since annotation to cache b |
<nb> public final class PageConfig {
}
return requestedProjects ;
}
- private static Pattern COMMA_PATTERN = Pattern . compile ( STRING0 ) ;
+ private static Pattern COMMA_PATTERN = Pattern . compile ( STRING1 ) ;
private static void splitByComma ( String value , List < String > result ) {
if ( value ==... | Comma pattern should contain a comma |
<nb> public class SSTableWriter extends SSTable
try
{
DecoratedKey key ;
- long dataPosition = NUMBER0 ;
- while ( dataPosition < dfile . length ( ) )
+ long rowPosition = NUMBER0 ;
+ while ( rowPosition < dfile . length ( ) )
{
key = SSTableReader . decodeKey ( StorageService . getPartitioner ( ) , d... | rename dataPosition rowPosition |
<nb> public class MtpDatabase {
protected void finalize ( ) throws Throwable {
try {
native_finalize ( ) ;
- mDevicePropDb . close ( ) ;
} finally {
super . finalize ( ) ;
} | Fix build break due to misuse of git add i command |
<nb> public class SearchableOptionsRegistrarImpl extends SearchableOptionsRegistrar {
for ( String opt : options ) {
if ( isStopWord ( opt ) ) continue ;
final String processed = PorterStemmerUtil . stem ( opt ) ;
- assert processed != null ;
if ( isStopWord ( processed ) ) continue ;
result . add ( opt ) ;... | Fix Stress tests |
<nb> public class DownloadIndexesThread {
public void runReloadIndexFiles ( ) {
checkRunning ( ) ;
+ indexFiles = null ;
final BasicProgressAsyncTask < Void , Void , IndexFileList > inst = new BasicProgressAsyncTask < Void , Void , IndexFileList > ( ctx ) {
@ override | reset indexFiles when reloadiing Index lists |
<nb> public class InputMethodManagerService extends IInputMethodManager . Stub
map . put ( id , p ) ;
SINGLE
- SINGLE
- SINGLE
- if ( ( isValidSystemDefaultIme ( p , mContext ) || isSystemImeThatHasEnglishSubtype ( p ) )
- && ( ! haveHardKeyboard || disabledSysImes . indexOf ( id ) < NUMBER0 ) ) {
+ SIN... | Fix an inconsistent state with IMMS and Settings when the hard keyboard is connected |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Plan implements Visitable < Operator < ? > > {
COMMENT
protected int maxNumberMachines ;
- protected HashMap < String , DistributedCacheEn... | Fix generic warning in Plan |
<nb> public class CleaningNeoServer extends NeoServer
this . dir = dir ;
if ( lastOpened != null )
{
- String message = lastOpened + STRING0 ;
+ String message = lastOpened + STRING1 ;
lastOpened = null ;
- throw new RuntimeException ( message ) ;
+ System . out . println ( message ) ;
}
lastOpened ... | We found most of the tests that did not clean up properly so now we will stop throwing exceptions |
<nb> public class WPCOMReaderImpl extends WPCOMReaderBase {
Bundle extras = data . getExtras ( ) ;
if ( extras != null ) {
String newTopicID = extras . getString ( STRING0 ) ;
+ String newTopicName = extras . getString ( STRING1 ) ;
+ if ( newTopicName != null )
+ this . setTitle ( newTopicName ) ;
if ( t... | Set the activity title to the newly selected topic title |
<nb> public final class CaptureActivity extends Activity implements SurfaceHolder . Cal
cameraManager . setManualFramingRect ( width , height ) ;
}
}
+
+ if ( intent . hasExtra ( Intents . Scan . CAMERA_ID ) ) {
+ int cameraId = intent . getIntExtra ( Intents . Scan . CAMERA_ID , - NUMBER0 ) ;
+ if ( came... | Amended onResume to read CAMERA_ID from intent |
<nb> public interface Buffer extends ClusterSerializable {
long getUnsignedInt ( int pos ) ;
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
long getUnsignedIntLE ( int pos ) ; | add doc to the method of getUnsignedIntLe |
<nb> public class CachedClass {
public CachedMethod [ ] mopMethods ;
public static final CachedClass [ ] EMPTY_ARRAY = new CachedClass [ NUMBER0 ] ;
- COMMENT
private final LazyReference < Set < CachedClass > > declaredInterfaces = new LazyReference < Set < CachedClass > > ( softBundle ) {
public Set < Cach... | remove debug comment |
<nb> public class MUCServiceImpl
public List < String > getExistingChatRooms (
ChatRoomProviderWrapper chatRoomProvider )
{
+ if ( chatRoomProvider == null )
+ return null ;
+
ProtocolProviderService protocolProvider
= chatRoomProvider . getProtocolProvider ( ) ; | Adds argument checks for null value in getExistingChatRooms in MUC |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Toolkit {
static ArrayList < Image > iconImages ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ ... | bring back function that broke all the tools and modes |
<nb> public abstract class DiffViewerBase implements DiffViewer , DataProvider {
@ calledinawt
public final void scheduleRediff ( ) {
if ( myDisposed . get ( ) ) return ;
+ myTaskExecutor . abort ( ) ;
final int modificationStamp = myTaskExecutor . getModificationStamp ( ) ;
myAlarm . cancelAllRequests ( ... | abort current rediff when scheduling new one |
<nb> public class GangliaWriter extends BaseOutputWriter {
for ( final Map . Entry < String , Object > resultValue : result . getValues ( ) . entrySet ( ) ) {
final String name = JmxUtils . getKeyString2 ( query , result , resultValue , getTypeNames ( ) , null ) ;
final String value = resultValue . getValue ( ) .... | Remove ill formatted debug modification |
<nb> public class ReaderPost {
}
SINGLE
- post . excerpt = HtmlUtils . fastStripHtml ( JSONUtils . getString ( json , STRING0 ) ) ;
+ post . excerpt = HtmlUtils . fastStripHtml ( JSONUtils . getString ( json , STRING0 ) ) . trim ( ) ;
post . text = JSONUtils . getString ( json , STRING1 ) ;
post . title... | Trim the post excerpt |
<nb> public class WPLinkMovementMethod extends LinkMovementMethod {
SINGLE
String url = StringUtils . notNullStr ( urlSpans [ NUMBER0 ] . getURL ( ) ) ;
- if ( ! url . contains ( STRING0 ) )
+ if ( Uri . parse ( url ) . getScheme ( ) == null )
return STRING1 + url . trim ( ) ;
return url . trim ( ) ; | Now using Uri getScheme to check for missing protocol |
<nb> public class RosterManager extends BasicModule implements GroupEventListener , Us
otherGroupNames . contains ( group . getName ( ) ) ) {
return true ;
}
+ SINGLE
+ SINGLE
+ Collection < Group > groupList = parseGroups ( groupNames ) ;
+ Collection < Group > otherGroupList = parseGroups ( otherGroupNa... | Fix shared group presence problem with complex group visibility setup |
<nb> public class NetworkController extends BroadcastReceiver {
} else {
label = context . getString ( R . string . status_bar_settings_signal_meter_disconnected ) ;
combinedSignalIconId = mDataSignalIconId ;
- dataTypeIconId = mDataTypeIconId ;
+ dataTypeIconId = NUMBER0 ;
}
if ( false ) { | Don t use mobile networktype icon if not connected |
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data
} ) ;
ListScrollingUtil . installActions ( list ) ;
- SINGLE
+ SINGLE
installEditOnDoubleClick ( list ) ;
return list ;
<nb> public abstract class FinderRecursivePanel < T > extends JBSplitter implements Data
} ... | fixed enterprise view providers |
<nb> public class TransportIndexAction extends TransportReplicationAction < IndexReques
}
if ( indexShard . getTranslogDurability ( ) == Translog . Durabilty . REQUEST && location != null ) {
- try {
- indexShard . sync ( location ) ;
- } catch ( EngineClosedException e ) {
- SINGLE
- SINGLE
- }
+ i... | Ignore EngineClosedException on IndexShard sync |
<nb> public class ClusterManager
}
catch ( IOException e )
{
- SINGLE
- SINGLE
- assert false ;
+ SINGLE
+ throw new AssertionError ( STRING0 ) ;
}
final Clusters clusters = new Clusters ( ) ;
<nb> public class ClusterManager
catch ( IOException ex )
{
SINGLE
+ except . add ( port ) ;
... | Throw AssertionError instead of assert false |
<nb> public class CreateProcedureChange extends AbstractChange implements DbmsTargete
validate . addError ( STRING0 ) ;
}
} else {
- validate . checkDisallowedField ( STRING1 , this . getReplaceIfExists ( ) , null ) ;
+ validate . checkDisallowedField ( STRING1 , this . getReplaceIfExists ( ) , database ) ;
... | Fixed failing test |
<nb> public class ExpressionAnalyzer
for ( SortItem sortItem : node . getWindow ( ) . get ( ) . getOrderBy ( ) ) {
process ( sortItem . getSortKey ( ) , context ) ;
Type type = expressionTypes . get ( sortItem . getSortKey ( ) ) ;
- if ( ! type . isComparable ( ) ) {
- throw new SemanticException ( TYPE_MISMA... | Fix analysis of window frames |
<nb> public class Material implements CloneableSmartAsset , Cloneable , Savable {
case Directional :
DirectionalLight dl = ( DirectionalLight ) l ;
Vector3f dir = dl . getDirection ( ) ;
- SINGLE
+ SINGLE
SINGLE
SINGLE
- SINGLE
+ SINGLE
SINGLE
tmpLightPosition . set ( dir . getX ( ) , dir . getY (... | Fixed some typo in some comments in Material java |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class MUCMentionExtractor extends MentionExtractor {
<nb> public class MUCMentionExtractor extends MentionExtractor {
Matcher m = idPattern . matcher ( w ) ;
m . find ( ) ;
- mention . me... | Avoid useless boxing unboxing |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Tweak Javadoc for Part to use something other than RequestBody |
<nb> public class GenerationTest extends TestCase {
if ( nextLine == null ) {
return i ;
}
- index += nextLine . length ( ) + NUMBER0 ; SINGLE
if ( ! nextLine . trim ( ) . equals ( lines [ i ] . trim ( ) ) ) {
SINGLE
- int subsequentMatch = unmatchedLineIndex ( s . substring ( index ) , lines ) ;
+ int ... | Fixes a bug in assertTranslatedLines where it fails to match when the first line is repeated in the source |
<nb> public interface DataReadCursors
NodeCursor nodeCursorGetFromIndexLookup ( IndexDescriptor index , Object value )
throws IndexNotFoundKernelException ;
+ NodeCursor nodeCursorGetFromIndexByPrefixSearch ( IndexDescriptor index , String prefix )
+ throws IndexNotFoundKernelException ;
+
NodeCursor node... | Add calls for prefix search in new cursor API |
<nb> public class ScrollableArea extends CoreLayout {
} else {
throw new IllegalStateException ( STRING0 ) ;
}
-
-
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SING... | Cleaning up the ScrollableArea |
<nb> public final class Native {
}
}
catch ( IOException e ) {
- throw new IOException ( STRING0 + name + STRING1 , e ) ;
+ throw new IOException ( STRING0 + name + STRING2 + e . getMessage ( ) ) ;
}
finally {
try { is . close ( ) ; } catch ( IOException e ) { } | fix compile error |
<nb> public class LocalizedMessageTest {
}
@ test
+ public void testGetModuleId ( ) {
+ LocalizedMessage localizedMessage = createSampleLocalizedMessage ( ) ;
+
+ assertEquals ( STRING0 , localizedMessage . getModuleId ( ) ) ;
+ }
+
+ @ test
public void testMessageInEnglish ( ) {
LocalizedMessag... | Add test for getModuleId from LocalizedMessage |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public final class ServerBootstrap extends AbstractBootstrap < ServerBootstrap , Channel > {
+ public final class ServerBootstrap extends AbstractBootstrap < ServerBootstrap , ServerChannel > {
private static final InternalLogger logger = InternalLoggerFac... | Tighten up generics on ServerBootstrap again as it was fixed in UDT |
<nb> public class XaLogicalLog
long [ ] header = readAndAssertLogHeader ( buf , log , version ) ;
committedTx = header [ NUMBER0 ] ;
log . close ( ) ;
- if ( committedTx <= txId )
+ if ( committedTx < txId )
{
break ;
} | Changed an if statement so that it can get transactions from correct log version |
<nb> public abstract class ExecutablePreparedStatementBase implements ExecutablePrepa
SINGLE
String relativeBaseFileName = changeSet . getChangeLog ( ) . getPhysicalFilePath ( ) ;
- System . out . println ( STRING0 + relativeBaseFileName ) ;
- System . out . println ( new File ( STRING1 ) . getAbsolutePath ( ... | Removed System out debug statements |
<nb> public class GradlePluginLord {
return nextRequestID ++ ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public Request addRefreshRequestToQueue ( ) {
+ return addRefreshRequestToQueue ( null ) ;
+ }
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Request addRe... | Adding ability to refresh the list of tasks for plugins using additional command line arguments |
<nb> import NAMESPACE ;
COMMENT
public abstract class WebSocketFixedPayloadFrameSourceChannel extends StreamSourceFrameChannel {
- protected int readBytes ;
+ protected long readBytes ;
protected WebSocketFixedPayloadFrameSourceChannel ( WebSocketChannel . StreamSourceChannelControl streamSourceChannelCon... | Fix byte counting |
<nb> public class IconUtil {
}
@ notnull
- public static Icon colorize ( @ notnull final Icon source , @ notnull Color color ) {
+ public static Icon colorize ( @ notnull Icon source , @ notnull Color color ) {
return colorize ( source , color , false ) ;
}
@ notnull
- public static Icon colorize ( ... | remove final modifiers |
<nb> public final class SpongeChunkGeneratorForge extends SpongeChunkGenerator {
if ( type . equals ( BlockTypes . DIRT ) ) {
otype = GenerateMinable . EventType . DIRT ;
} else if ( type . equals ( BlockTypes . GRAVEL ) ) {
- otype = GenerateMinable . EventType . DIRT ;
+ otype = GenerateMinable . EventType ... | Fix ore event type |
<nb> package NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class FindElementsOccurringNByKTimesTetris { | Adding some comments |
<nb> public class CliClient extends CliUserHelp
{
sessionState . out . printf ( STRING0 , cf_def . comment ) ;
}
-
+
+ if ( cf_def . default_validation_class != null )
+ sessionState . out . printf ( STRING1 , cf_def . default_validation_class ) ;
+
sessionState . out . printf ( STRING2 , cf_def . com... | show default_validation_class in cli describe keyspace |
<nb> public class RenameJavaMethodProcessor extends RenameJavaMemberProcessor {
methodAndOverriders . add ( method ) ;
containingClasses . add ( method . getContainingClass ( ) ) ;
- findCollisionsAgainstNewName ( method , newName , staticImportHides ) ;
-
SINGLE
for ( UsageInfo usage : usages ) {
PsiEl... | do not find collisions on write stage |
<nb> public class ImageDownloader {
private static final int DELAY_BEFORE_PURGE = NUMBER0 * NUMBER1 ; SINGLE
SINGLE
+ @ suppresswarnings ( STRING0 )
private final HashMap < String , Bitmap > sHardBitmapCache = new LinkedHashMap < String , Bitmap > (
HARD_CACHE_CAPACITY / NUMBER2 , FLOAT0 , true ) {
@ over... | Suppress a warning |
<nb> public class AntUtil {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Simplify Javadoc for AntUtil maskFilename |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.