diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class DateFormatUtil {
final ID autoReleasePool = Foundation . invoke ( STRING0 , STRING1 ) ;
try {
final ID dateFormatter = Foundation . invoke ( STRING2 , STRING1 ) ;
+ Foundation . invoke ( dateFormatter , Foundation . createSelector ( STRING3 ) , MacFormatterBehavior_10_4 ) ;
int style ;
s... | anton no in date presentation on mac |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT | Removed javadoc on old properties |
<nb> public class MentionsFragment extends MainFragment {
}
- cursorAdapter = new TimeLineCursorAdapter ( context , cursor , false ) ;
+ cursorAdapter = setAdapter ( cursor ) ;
attachCursor ( ) ;
try {
<nb> public class MentionsFragment extends MainFragment {
} . execute ( ) ;
}
+ public TimeL... | Fix Pull to refresh reverting to original account |
<nb> public class StatusBarPopupMenu extends ScrollableToolbarPopupMenu
}
} ) ;
}
+
+ @ override
+ protected int getMaxHeight ( )
+ {
+ return NUMBER0 ;
+ }
} | allow more vertical space for status bar menu |
<nb> public class VanillaTrainingWorker implements TrainingWorker < VanillaTrainingResu
public MultiLayerNetwork getInitialModel ( ) {
NetBroadcastTuple tuple = broadcast . getValue ( ) ;
MultiLayerNetwork net = new MultiLayerNetwork ( tuple . getConfiguration ( ) ) ;
- net . init ( ) ; SINGLE
-
- SINGLE
... | Switch Vanilla training worker to use new init INDArray boolean |
<nb> public class Config extends HashMap < String , Object > {
public static final Object TOPOLOGY_NAME_SCHEMA = String . class ;
COMMENT
+ COMMENT
+ COMMENT
+ public static final String TOPOLOGY_SHELLBOLT_MAX_PENDING = STRING0 ;
+ public static final Object TOPOLOGY_SHELLBOLT_MAX_PENDING_SCHEMA = Number ... | add shell bolt pending limit in fresh branch |
<nb> public class CXDChunk extends CXIChunk {
}
@ override public int asSparseDoubles ( double [ ] vals , int [ ] ids ) {
- if ( vals . length != _len ) throw new IllegalArgumentException ( ) ;
+ if ( vals . length != _sparseLen ) throw new IllegalArgumentException ( ) ;
int off = _OFF ;
final int inc = N... | Fix wrong assertion in CXDChunk getDoubles |
<nb> public class SPDYConnection extends AbstractConnection implements Controller , Id
public SPDYConnection ( EndPoint endPoint , ByteBufferPool bufferPool , Parser parser , Executor executor ,
boolean executeOnFillable , int bufferSize )
{
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ SINGLE
+ SI... | add comment why executeOnFillable defaults to true |
<nb> public class AuthProceduresTest
manager . newUser ( STRING0 , STRING1 , false ) ;
manager . newUser ( STRING2 , STRING1 , false ) ;
manager . newUser ( STRING3 , STRING4 , false ) ;
- SINGLE
+ SINGLE
manager . addUserToRole ( STRING5 , ADMIN ) ;
- manager . newRole ( ARCHITECT , STRING0 ) ;
- manag... | Updated tests to new default roles |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
@ benchmarkmode ( Mode . Throughput )
<nb> public class OperatorFlatMapPerf {
@ benchmark
public void flatMapIntPassthruAsync ( Input input ) throws InterruptedException {
+ L... | Fix OperatorFlatMapPerf flatMapIntPassthruAsync Perf Test |
<nb> public class TaskEntity extends VariableScopeImpl implements Task , DelegateTask ,
if ( assignee == null && this . assignee == null ) {
return ;
}
- SINGLE
- SINGLE
- SINGLE
this . assignee = assignee ;
CommandContext commandContext = Context . getCommandContext ( ) ; | Removed obsolete commented out code |
<nb> import NAMESPACE ;
COMMENT
public class JavaLanguage extends Language {
- public static JavaLanguage INSTANCE = new JavaLanguage ( ) ;
+ public static final JavaLanguage INSTANCE = new JavaLanguage ( ) ;
- public JavaLanguage ( ) {
+ private JavaLanguage ( ) {
super ( STRING0 , STRING1 , STRING2 ... | make instance field final and constructor private |
<nb> public class AppleCxxPlatform implements CxxPlatform {
cflagsBuilder . add ( STRING0 , sdkPaths . sdkPath ( ) . toString ( ) ) ;
cflagsBuilder . add ( STRING1 , targetArchitecture ) ;
switch ( targetPlatform ) {
- case MACOS :
+ case MACOSX :
cflagsBuilder . add ( STRING2 + targetVersion ) ;
break ; ... | Fix typo in ApplePlatform |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PlacesListFragment extends SherlockDialogFragment implements Places
public void onCreate ( Bundle save... | Fix Places Fragment |
<nb> public class DatabaseUtils {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static < INPUT extends Comparable < INPUT > > int executeLargeUpdates ( Collection < INPUT > inputs , Function < List < INPUT > , Integer > sqlCaller )... | add DatabaseUtils executeLargeUpdates which returns rows count |
<nb> public class CarrierConfigManager {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class CarrierConfigManager {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
@ nullable
<nb> public class CarrierConfigManager ... | Add comments to carrierconfigmanager for required permission |
<nb>
COMMENT
package NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
- import static NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
... | Remove unused import in MockHttpServletRequestBuilderTests |
<nb>
SINGLE
SINGLE
+ SINGLE
SINGLE
SINGLE
SINGLE | Fixing license header |
<nb> public class JavaFindUsagesProvider implements FindUsagesProvider {
return LangBundle . message ( STRING0 ) ;
} else if ( ( ( PsiClass ) element ) . isInterface ( ) ) {
return LangBundle . message ( STRING1 ) ;
+ } else if ( element instanceof PsiTypeParameter ) {
+ return LangBundle . message ( STRING2 ... | Reduce scope for find usages of type parameter |
<nb> public class OsmandSettings {
if ( ip . trim ( ) . length ( ) > NUMBER0 ) {
list . addAll ( Arrays . asList ( ip . split ( STRING0 ) ) ) ;
}
+ while ( list . size ( ) > sz ) {
+ list . remove ( list . size ( ) - NUMBER1 ) ;
+ }
while ( list . size ( ) < sz ) {
list . add ( STRING1 ) ;
} | Avoid Array out of bound execption |
<nb> public class ExhibitorMain implements Closeable
options . addOption ( null , S3_CREDENTIALS , true , STRING0 + PropertyBasedS3Credential . PROPERTY_S3_KEY_ID + STRING1 + PropertyBasedS3Credential . PROPERTY_S3_SECRET_KEY ) ;
options . addOption ( null , S3_BACKUP , true , STRING2 ) ;
options . addOption ( nu... | Added some more options |
<nb> public class GroovycStubGenerator extends GroovyCompilerBase {
}
if ( ! excluded . isExcluded ( virtualFile ) ) {
- if ( fileType == GroovyFileType . GROOVY_FILE_TYPE ) {
+ if ( fileType == GroovyFileType . GROOVY_FILE_TYPE && ! STRING0 . equals ( virtualFile . getNameWithoutExtension ( ) ) ) {
total .... | don t generate stubs for package info |
<nb> public class PaneLayoutPreferencesPane extends PreferencesPane
}
PaneConfig value = uiPrefs . paneConfig ( ) . getValue ( ) ;
- if ( value == null || value . isValid ( ) )
+ if ( value == null || ! value . isValid ( ) )
uiPrefs . paneConfig ( ) . setValue ( PaneConfig . createDefault ( ) ) ;
JsArra... | Fix erroneous logic in prepopulating Pane Layout prefs |
<nb> public class NioBlockingSelector {
try {
if ( att . getReadLatch ( ) == null || att . getReadLatch ( ) . getCount ( ) == NUMBER0 ) att . startReadLatch ( NUMBER1 ) ;
poller . add ( att , SelectionKey . OP_READ , reference ) ;
- att . awaitReadLatch ( readTimeout , TimeUnit . MILLISECONDS ) ;
+ if ( readT... | Add Filip s additional patch to correctly handle infinite read timeouts |
<nb> public abstract class HystrixCommand < R > extends AbstractCommand < R > implements Hy
COMMENT
COMMENT
COMMENT
- . andCommandKey ( HystrixCommandKey . Factory . asKey ( STRING0 ) )
- . andEventNotifier ( notifier ) ;
+ . andCommandKey ( HystrixCommandKey . Factory . asKey ( STRING0 ) ) ;
COMMENT
CO... | Fixed Javadoc suggesting incorrect addEventNotifier method in HystrixCommand Setter |
<nb> public class SemanticVersion implements Comparable < SemanticVersion >
public boolean isSupportedBy ( SemanticVersion version )
{
- return major == version . major && minor <= version . minor ;
+ return major == version . major && minor <= version . minor && patch <= version . patch ;
}
private sta... | Fix small bug in handling SemanticVersion |
<nb> public class FileManagerImpl implements FileManager {
}
else {
FileViewProvider viewProvider = myVFileToViewProviderMap . remove ( file ) ;
- markInvalidated ( viewProvider ) ;
+ if ( viewProvider != null ) {
+ markInvalidated ( viewProvider ) ;
+ }
}
return true ;
}
<nb> public class FileMan... | avoid NPE in FileManagerImpl markInvalidated |
<nb> public class DeploymentDescriptorMethodProcessor implements DeploymentUnitProces
final SessionBeanMetaData sessionBeanMetadata = ( SessionBeanMetaData ) metaData ;
SINGLE
final LifecycleCallbacksMetaData prePassivates = sessionBeanMetadata . getPrePassivates ( ) ;
- if ( preDestroys != null ) {
+ if ( pr... | Fix minor typo |
<nb> public class OverrideImplementUtil {
chooser . selectElements ( isAll ? all : onlyPrimary ) ;
}
+ if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
+ chooser . selectElements ( all ) ;
+ chooser . close ( DialogWrapper . OK_EXIT_CODE ) ;
+ return chooser ;
+ }
+
chooser . sh... | do not call show for tests |
<nb> public class ShellTest
doc . add ( STRING0 , STRING1 , STRING2 ) ;
doc . add ( STRING3 , STRING4 , STRING5 ) ;
doc . run ( ) ;
- SINGLE
- SINGLE
- SINGLE
- SINGLE
+ doc . add ( STRING6 , STRING7 , STRING8 ) ;
+ doc . add ( STRING9 , STRING7 , STRING10 ) ;
+ doc . add ( STRING0 , STRING11 , STRI... | Added mknode to a documented test |
<nb> public class OmniSegmentLoader implements SegmentLoader
getPuller ( segment . getLoadSpec ( ) ) . getSegmentFiles ( segment , storageDir ) ;
- try {
- FileUtils . deleteDirectory ( downloadStartMarker ) ;
- }
- catch ( Exception e ) {
+ if ( ! downloadStartMarker . delete ( ) ) {
throw new Segmen... | Changed downloadStartMarker in OmniSegmentLoader to simply use its |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class WPMainActivity extends Activity
moderateCommentOnActivityResult ( data ) ;
}
break ;
- case RequestCodes . PICTURE_LIB... | Removing undefined references |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class QueryHostFinder < T >
STRING0
) . emit ( ) ;
- return null ;
+ throw new ISE ( STRING1 , query ) ;
}
log . debug ( STRING2 , server . getHost ( ) ) ... | throw ISE when no servers found at all |
<nb> abstract class BasicInvocation implements Callback < Object > , BackupCompletionCall
if ( invTarget == null ) {
remote = false ;
if ( nodeEngine . isActive ( ) ) {
- notify ( new WrongTargetException ( thisAddress , invTarget , partitionId , replicaIndex , op . getClass ( ) . getName ( ) , serviceName ) ) ... | Removed a load of a known null variable |
<nb> import NAMESPACE ;
public class PaymentModule extends KillBillModule {
private static final String PLUGIN_THREAD_PREFIX = STRING0 ;
+ private static final String PAYMENT_PLUGIN_TH_GROUP_NAME = STRING1 ;
public static final String JANITOR_EXECUTOR_NAMED = STRING2 ;
public static final String PLUGIN_EX... | Add ThreadGroup for payment plugin thread |
<nb> public class GitPushActiveBranchesDialog extends DialogWrapper {
Set < String > unchecked = new HashSet < String > ( ) ;
uncheckedCommits . put ( r . root , unchecked ) ;
if ( r . commits . size ( ) == NUMBER0 ) {
+ if ( r . remoteCommits > NUMBER0 ) {
+ roots . add ( r . root ) ;
+ }
continue ;
} ... | Handled the case when root skipped in Push Active Branches dialog |
<nb> public class HttpOutput extends ServletOutputStream
if ( _eof )
{
SINGLE
+ _in . close ( ) ;
closed ( ) ;
_channel . getByteBufferPool ( ) . release ( _buffer ) ;
return true ;
<nb> public class HttpOutput extends ServletOutputStream
{
_eof = true ;
len = NUMBER0 ;
- _in . close ( ) ;
}
... | DefaultServlet leaves open file descriptors with file sizes greater than response buffer |
<nb> public class FileUtils extends Plugin {
COMMENT
COMMENT
COMMENT
- COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- private JSONObject transferTo ( String fileName , JSONObject newParent , String newName , boolean move ) throws JSONException , FileExistsException , NoModificationAllow... | removed FileExistsException that is not needed |
<nb> public class MediaPlayerPerformance extends ActivityInstrumentationTestCase2 < Med
mProcMemWriter = new BufferedWriter ( new FileWriter
( new File ( MEDIA_PROCMEM_OUTPUT ) , true ) ) ;
mProcMemWriter . write ( this . getName ( ) + STRING0 ) ;
- mMemWriter = new BufferedWriter ( new FileWriter
- ( new Fil... | Fix the NPE for the memwriter |
<nb> public class KeyguardHostView extends KeyguardViewBase {
@ override
protected void onFinishInflate ( ) {
+ mViewStateManager = new KeyguardViewStateManager ( ) ;
+
SINGLE
SINGLE
mAppWidgetContainer = ( KeyguardWidgetPager ) findViewById ( R . id . app_widget_container ) ;
<nb> public class Keygua... | Fix ordering bug |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public class GenericShellSpout extends ShellSpout implements IRichSpout {
+ private String [ ] outputFields ;
+
+ public GenericShellSpout ( String [ ] args , String [ ] output... | allow output field definition |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
public class CacheControlScanner extends PluginPassiveScanner { | removed unused packages |
<nb> public class QueryImpl < T > extends CriteriaContainerImpl implements Query < T > {
final Map < String , Integer > fieldsFilter = new HashMap < String , Integer > ( ) ;
for ( String field : fields ) {
final StringBuilder sb = new StringBuilder ( field ) ; SINGLE
- SINGLE
- SINGLE
validateQuery ( clazz ... | remove old comments |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
@ controller
@ requestmapping ( STRING0 )
<nb> public class CallableController {
}
@ requestmapping ( STRING1 )
- public @ responsebody AsyncTask < String > callableWithCu... | Fix renamed type AsyncTask MvcAsyncTask |
<nb> import NAMESPACE ;
COMMENT
COMMENT
public class GenericFont implements ITypeface {
- private String mFontName = STRING0 ;
- private String mAuthor = STRING1 ;
+ private String mFontName ;
+ private String mAuthor ;
private String mMappingPrefix ;
private String mFontFile ;
<nb> public class G... | Add mappingPrefix validation |
<nb> public final class ActivityThread {
if ( ( data . appInfo . flags & ApplicationInfo . FLAG_LARGE_HEAP ) != NUMBER0 ) {
dalvik . system . VMRuntime . getRuntime ( ) . clearGrowthLimit ( ) ;
+ } else {
+ SINGLE
+ SINGLE
+ dalvik . system . VMRuntime . getRuntime ( ) . clampGrowthLimit ( ) ;
}
SIN... | Call VMRuntime clampGrowthLimit for small heap apps |
<nb> public class ClassesProcessor {
if ( interfaces . length > NUMBER0 ) {
if ( interfaces . length > NUMBER1 ) {
- throw new RuntimeException ( STRING0 + cl . qualifiedName ) ;
+ DecompilerContext . getLogger ( ) . writeMessage ( STRING0 + cl . qualifiedName , IFernflowerLogger . WARNING ) ;
}
nestednod... | accept inonsistent anonymous classes with warning |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MissingSymbolsHandler {
missingSymbolEvents . get ( event . getBuildId ( ) ) ) ;
} catch ( InterruptedException e ) {
LOG . error ( e , STRING0 ) ;
+ } catch... | Suppress one more kind of interrupt related exception |
<nb> public class DefaultFileLockManager implements FileLockManager {
}
GFileUtils . mkdirs ( lockFile . getParentFile ( ) ) ;
- lockFile . createNewFile ( ) ;
+ try {
+ lockFile . createNewFile ( ) ;
+ } catch ( IOException e ) {
+ LOGGER . info ( STRING0 , lockFile ) ;
+ throw e ;
+ }
LockStat... | Log the file path we tried to create if we fail to create a file lock |
<nb> public final class ApplicationSupport {
. addArgument ( STRING0 )
. addArgument ( STRING1
+ STRING2 + prefix . getExecPathString ( ) + STRING3
- + STRING4 + in . getExecPathString ( ) + STRING5
- SINGLE
+ + STRING4
+ SINGLE
+ STRING6 + escapedBundleId + STRING7
-
+
SINGLE
+ STRING8
+ STRI... | Fix objc entitlements substitution on OSX |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class LeveledManifest
for ( SSTableReader ssTableReader : added )
add ( ssTableReader , newLevel ) ;
+ if ( newLevel != NUMBER0 )
+ {
+ SING... | Backport leveled integrity check from trunk |
<nb> static public void print ( Object x , Writer w ) throws Exception {
}
}
}
+ else if ( x instanceof Class )
+ {
+ w . write ( ( ( Class ) x ) . getName ( ) ) ;
+ }
else if ( x instanceof BigDecimal && readably )
{
w . write ( x . toString ( ) ) ; | changed Class printing to print only name |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> class SpelView implements View {
public void render ( Map < String , ? > model , HttpServletRequest request , HttpServletResponse response )
throws Exception {
Map < String , ... | Add support for x forwarded prefix to SpelView |
<nb> public class WildcardQueryParser implements QueryParser {
WildcardQuery wildcardQuery = new WildcardQuery ( new Term ( fieldName , valueBytes ) ) ;
QueryParsers . setRewriteMethod ( wildcardQuery , parseContext . parseFieldMatcher ( ) , rewriteMethod ) ;
- wildcardQuery . setRewriteMethod ( QueryParsers . ... | Fix rewrite set twice in WildcardQueryParser |
<nb> public class MessageSourceService
. get ( recentMessages . size ( ) - NUMBER0 ) . getTimestamp ( ) ;
if ( recentQuery != null )
+ {
+ recentQuery . updateContact (
+ existingMsc , existingMsc . getEventObject ( ) ) ;
recentQuery . fireContactChanged ( existingMsc ) ;
+ }
return ;
} | Updates existing recent messages source contacts on new messages |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
- COMMENT
public abstract class WebBrowserUrlProvider {
public static ExtensionPointName < WebBrowserUrlProvider > EP_NAME = ExtensionPointName . create ( STRING0 ) ;
<nb> public abstract class WebBrowserUrlProvider { ... | remove deprecated method |
<nb> public abstract class AppIntroBase extends AppCompatActivity implements AppIntro
boolean isSlideChangingAllowed = handleBeforeSlideChanged ( ) ;
if ( isSlideChangingAllowed ) {
+ handleSlideChanged ( currentFragment , null ) ;
onDonePressed ( currentFragment ) ;
}
else {
<nb> public abstract class ... | Call onSlideChanged if the intro is finished via pressing the done button |
<nb> public abstract class ChangesTreeList < T > extends JPanel {
}
public JComponent getPreferredFocusedComponent ( ) {
- return myTree ;
+ return myShowFlatten ? myList : myTree ;
}
public Dimension getPreferredSize ( ) { | provided invisible component for focus request |
<nb> public class StorageUtils {
COMMENT
public static long getFreeSpaceAvailable ( ) {
- StatFs stat = new StatFs ( Environment . getExternalStorageDirectory ( )
- . getPath ( ) ) ;
+ StatFs stat = new StatFs ( PodcastApp . getDataFolder (
+ PodcastApp . getInstance ( ) , null ) . getAbsolutePath ( ) ) ;... | Updated getFreeSpaceAvailable method |
<nb> public class DocumentPreprocessorTest extends TestCase {
}
public void testSetSentencePunctWords ( ) {
- String test = STRING0 ;
+ String test = STRING1 ;
String [ ] expectedResults = { STRING2 ,
- STRING3 , STRING4 } ;
+ STRING3 , STRING5 } ;
ArrayList < String > results = new ArrayList < String... | Update the DocumentPreprocessor test for the new tokenization rules |
<nb> public class Resources {
private CompatibilityInfo mCompatibilityInfo ;
private Display mDefaultDisplay ;
- private static final LongSparseArray < Object > EMPTY_ARRAY = new LongSparseArray < Object > ( ) {
+ private static final LongSparseArray < Object > EMPTY_ARRAY = new LongSparseArray < Object > ( N... | Save a few bytes on the zygote heap |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
@ gwtcompatible
+ @ checkreturnvalue
public final class Functions {
private Functions ( ) { } | Add CheckReturnValue to Functions |
<nb> import static NAMESPACE ;
COMMENT
COMMENT
@ jsonignoreproperties ( ignoreUnknown = true )
- public class DeploymentGroupEvent {
+ public class DeploymentGroupEvent extends Descriptor {
private final RolloutTask . Action action ;
private final JobId jobId ;
<nb> public class DeploymentGroupHistory... | Write actual bytes |
<nb> public class EdgeSerializer implements RelationReader {
in . movePositionTo ( data . getValuePosition ( ) ) ;
other = readPropertyValue ( in , key ) ;
}
+ Preconditions . checkState ( other != null , STRING0 ) ;
}
assert other != null ; | Added explicit exception when serializer returns null value in error as suggested by Praveen Peddi to make debugging easier |
<nb> public class FreemarkerViewRendererTest extends JerseyTest {
public void rendersViewsWithAbsoluteTemplatePaths ( ) throws Exception {
final String response = client ( ) . resource ( getBaseURI ( ) + STRING0 ) . get ( String . class ) ;
assertThat ( response )
- . isEqualToIgnoringCase ( String . format ( S... | EOL in tests strings must match those in template files |
<nb> public class ONetworkProtocolBinary extends OBinaryNetworkProtocolAbstract {
final int id = channel . readShort ( ) ;
- boolean result = connection . database . dropCluster ( connection . database . getClusterNameById ( id ) ) ;
+ final String clusterName = connection . database . getClusterNameById ( id... | Fixed weird message when you try to remove a cluster not more existent client s db structure wasn t updated |
<nb> public class NegTranslator implements IInstructionTranslator {
SINGLE
final TranslationResult result = Helpers . translateOperand ( environment , offset , operand , true ) ;
-
- SINGLE
- offset = baseOffset + instructions . size ( ) ;
+ instructions . addAll ( result . getInstructions ( ) ) ;
+
+... | Missed instructions in Neg translator |
<nb> final class StandardWrapperValve
SINGLE
- SINGLE
+ SINGLE
SINGLE
private volatile long processingTime ;
private volatile long maxTime ;
<nb> final class StandardWrapperValve
if ( servlet instanceof CometProcessor
&& request . getAttribute ( STRING0 ) == Boolean . TRUE ) {
comet = true ;
+... | Fix classcast exceptions if Comet is used and there s a filter I forgot to commit this patch |
<nb> public class WebView extends AbsoluteLayout
imm . restartInput ( mWebTextView ) ;
}
}
- mWebTextView . requestFocus ( ) ;
+ if ( isFocused ( ) ) {
+ mWebTextView . requestFocus ( ) ;
+ }
}
COMMENT | Do not call WebTextView requestFocus if WebView is not focused |
<nb> public class WXListComponent extends WXVContainer implements
mAppearComponents . put ( adapterPosition , child ) ;
child . registerAppearEvent = true ;
}
+ checkRefreshOrLoading ( child ) ;
}
COMMENT
<nb> public class WXListComponent extends WXVContainer implements
}
int pos = index == - NUMB... | android update WXListCompoent java refresh |
<nb> public final class CaptureActivityHandler extends Handler {
ResolveInfo resolveInfo =
activity . getPackageManager ( ) . resolveActivity ( intent , PackageManager . MATCH_DEFAULT_ONLY ) ;
String browserPackageName = null ;
- if ( resolveInfo . activityInfo != null ) {
+ if ( resolveInfo != null && resolv... | Avoid NPE when no resolver info is available |
<nb> final class ActivityStack {
case RESUMED :
case PAUSING :
case PAUSED :
+ SINGLE
+ SINGLE
+ mStackSupervisor . mStoppingActivities . remove ( r ) ;
stopActivityLocked ( r ) ;
break ; | Remove stopping activity from activities to stop |
<nb> public class MethodAnalyzer {
case SPUT_WIDE_VOLATILE :
analyzePutGetVolatile ( analyzedInstruction ) ;
return true ;
+ case THROW_VERIFICATION_ERROR :
+ return true ;
case EXECUTE_INLINE :
analyzeExecuteInline ( analyzedInstruction ) ;
return true ;
<nb> public class MethodAnalyzer {
case IPUT... | Add support for the THROW_VERIFICATION_ERROR opcode in MethodAnalyzer |
<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 ;
... | Fix project build |
<nb> public class ChangeListStorageImpl implements ChangeListStorage {
try {
if ( myStorage != null ) {
myStorage . setVersion ( - NUMBER0 ) ;
+ myStorage . force ( ) ;
}
}
catch ( Throwable ex ) {
<nb> public class LocalHistoryImpl extends LocalHistory implements ApplicationCompone
private void valid... | handling exception during storage validation |
<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 ;
import NAMESPACE ... | added location information for when the assertion fails |
<nb> public class ContentView extends FrameLayout {
@ override
public boolean shouldAdBlockUrl ( String baseHost , String urlStr , String filterOption ) {
+ if ( null != mWebRenderer ) {
+ URL currentUrl = mWebRenderer . getUrl ( ) ;
+ if ( currentUrl . toString ( ) . equals ( urlStr ) ) {
+ return false ... | Google search sponsored hit blocked |
<nb> public class XmlFoldingBuilder implements FoldingBuilder {
if ( rootTag != null ) {
foldings = new ArrayList < FoldingDescriptor > ( ) ;
- if ( rootTag instanceof XmlTag ) addElementsToFold ( foldings , rootTag , document ) ;
+ if ( rootTag instanceof XmlTag ) {
+ addElementsToFold ( foldings , rootTag... | fixed HTML foldings in JSP after root tag |
<nb> public class AssetManager implements Disposable {
SINGLE
SINGLE
if ( type == null ) {
+ SINGLE
+
throw new GdxRuntimeException ( STRING0 + fileName + STRING1 ) ;
}
Object asset = assets . get ( type ) . get ( fileName ) ;
<nb> public class AssetManager implements Disposable {
AssetLoadingTask t... | added FIXME comment to AssetManager remove |
<nb> public class ContainerUtil extends ContainerUtilRt {
@ nullable
@ contract ( pure = true )
- public static < T , L extends List < T > > T getLastItem ( @ notnull L list , @ nullable T def ) {
- return list . isEmpty ( ) ? def : list . get ( list . size ( ) - NUMBER0 ) ;
+ public static < T , L extends ... | getLastItem should accept nullable list the same as getFirstItem does |
<nb> public class WithDataPointMethod {
private List < PotentialAssignment > potentialValues ( Method method )
throws Exception {
- return Assignments . allUnassigned ( method , HasDateMethod . class )
+ return Assignments . allUnassigned ( method , HasDateMethod . class , true )
. potentialsForNextUnassign... | Pass nullsOk into Assignments constructor requires further cleanup |
<nb> public class DataSourceTransactionManager extends AbstractPlatformTransactionMan
DataSourceTransactionObject txObject = new DataSourceTransactionObject ( ) ;
txObject . setSavepointAllowed ( isNestedTransactionAllowed ( ) ) ;
ConnectionHolder conHolder =
- ( ConnectionHolder ) TransactionSynchronizationMan... | DataSourceTransactionManager resets ConnectionHolder on doBegin failure |
<nb> public class K9 extends Application
Integer quietEnds = endHour * NUMBER0 + endMinute ;
SINGLE
- if ( quietStarts == quietEnds )
+ if ( quietStarts . equals ( quietEnds ) )
{
return false ;
} | fix a numeric equality bug spotted by intellij |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ChangesViewManager implements ChangesViewI , JDOMExternalizable , Pro
@ override
public JComponent create ( ) {
JLabel la... | replace Color red to JBColor red |
<nb> import NAMESPACE ;
public class IndexAlreadyExistsException extends ElasticsearchException {
public IndexAlreadyExistsException ( Index index ) {
- this ( index , STRING0 ) ;
+ this ( index , STRING1 + index . toString ( ) + STRING2 ) ;
}
public IndexAlreadyExistsException ( Index index , String me... | Add index name and uuid in IndexAlreadyExistsException default message |
<nb> public class GraphTestSuite extends TestSuite {
public void testStringRepresentationOfVertexId ( ) {
final Graph graph = graphTest . generateGraph ( ) ;
+ if ( graph . getFeatures ( ) . supportsTransactions ) {
+ ( ( TransactionalGraph ) graph ) . commit ( ) ;
+ }
+
final Vertex a = graph . addVert... | Committed transaction prior to running GraphTestSuite testStringRepresentationOfVertexId if a transactional graph |
<nb> public class MediaNotificationManager extends BroadcastReceiver {
mStarted = true ;
SINGLE
updateNotificationMetadata ( ) ;
+ mService . startForeground ( NOTIFICATION_ID , mNotificationBuilder . build ( ) ) ;
}
}
<nb> public class MediaNotificationManager extends BroadcastReceiver {
mMetadata = ... | Allow notification to be dismissed when paused |
<nb> public class BikeParkUnlinked extends GraphBuilderAnnotation {
private static final long serialVersionUID = NUMBER0 ;
private static final String FMT = STRING0 ;
- private static final String HTMLFMT = STRING1 ;
+ private static final String HTMLFMT = STRING2 ;
final BikeParkVertex bikeParkVertex ;
... | Remove link to transit layer on Bike annotations |
<nb> public class EvictionTest extends HazelcastTestSupport {
public void run ( ) throws Exception {
final int currentMapSize = map . size ( ) ;
final int expectedSize = maxSize * ( NUMBER0 - evictionPercentage ) / NUMBER0 ;
- System . out . println ( STRING0 + expectedSize ) ;
assertTrue ( currentMapSize < e... | remove system out |
<nb> public class ApiClient {
URL prepareUrl ( ) {
SINGLE
- Preconditions . checkNotNull ( pathTemplate , STRING0 ) ;
+ Preconditions . checkNotNull ( pathTemplate , STRING1 ) ;
final URL builtUrl ;
try { | use correct error message |
<nb> public final class PutBackupOperation extends KeyBasedMapOperation implements Ba
protected void writeInternal ( ObjectDataOutput out ) throws IOException {
super . writeInternal ( out ) ;
out . writeBoolean ( unlockKey ) ;
- recordInfo . writeData ( out ) ;
+ if ( recordInfo != null ) {
+ out . writeBo... | make null check before writing recordInfo |
<nb> public class DTree extends Iced {
meanLeaves = ( ( float ) sumLeaves / numTrees ) ;
}
}
+
+ public void setNumTrees ( int i ) { numTrees = i ; }
}
SINGLE
<nb> public class SpeeDRFModel extends Model implements Job . Progress {
treeStats . minLeaves = ( int ) leaf_stats [ NUMBER0 ] ;
treeStats... | Added setNumTrees so SpeeDRF email dialog box is triggered from Web UI |
<nb> public abstract class MongodbSerializer implements Visitor < Object , Void > {
return asReference ( ( ( Constant < ? > ) expr . getArg ( constIndex ) ) . getConstant ( ) ) ;
}
- protected DBRef asReference ( Object constant ) {
- SINGLE
- throw new UnsupportedOperationException ( ) ;
- }
+ protecte... | Make template methods abstract |
<nb> public class SQLTemplates extends Templates {
}
public final String getTypeForClass ( Class < ? > cl ) {
- Class < ? > key = cl . isPrimitive ( ) ? ClassUtils . primitiveToWrapper ( cl ) : cl ;
- if ( class2type . containsKey ( key ) ) {
- return class2type . get ( key ) ;
+ Class < ? > clazz = cl . ... | fixed duplicate variable issue |
<nb> public class AtmosphereRequest extends HttpServletRequestWrapper {
@ override
public void setAttribute ( String s , Object o ) {
- if ( o == null ) o = STRING0 ;
+ if ( o == null ) {
+ removeAttribute ( s ) ;
+ return ;
+ }
b . localAttributes . put ( s , o ) ;
if ( isNotNoOps ( ) ) {
b . req... | Fix this non sence |
<nb> import NAMESPACE ;
@ override
public long getTimeUs ( long position ) {
- return ( ( position - firstFramePosition ) * C . MICROS_PER_SECOND * BITS_PER_BYTE ) / bitrate ;
+ return ( Math . max ( NUMBER0 , position - firstFramePosition ) * C . MICROS_PER_SECOND * BITS_PER_BYTE )
+ / bitrate ;
}
@ ... | Fix Seeker getTimeUs for positions before the first frame |
<nb> public class ProjectGeneratorTest {
arg . configs = ImmutableMap . of (
STRING0 , ImmutableList . < Either < Path , ImmutableMap < String , String > > > of ( ) ) ;
arg . srcs = ImmutableList . of ( AppleSource . ofSourcePathWithFlags (
- new Pair < SourcePath , String > ( new FileSourcePath ( STRING1 ) , S... | Fix FileSourcePath break in tests |
<nb>
From _The Busy Coder ' s Guide to Android Development_
http: SINGLE
- COMMENT
+ COMMENT
package NAMESPACE ;
<nb> public class FauxSenderTest extends Activity {
@ override
public void onCreate ( Bundle savedInstanceState ) {
super . onCreate ( savedInstanceState ) ;
-
+
sendIt ( getStr... | restored missing code |
<nb> public class Snapshot implements Comparable < Snapshot > {
try {
if ( file . getName ( ) . toLowerCase ( ) . endsWith ( STRING0 ) ) {
ZipFile entry = new ZipFile ( file ) ;
- return entry . getEntry ( worldname ) != null ;
+ return ( entry . getEntry ( worldname ) != null
+ || entry . getEntry ( worldn... | Improve zip file recognition |
<nb> package 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 ;
import NAM... | Delete unnecessary imports |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.