diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class RendererRegistry {
internalRenderers . put ( DEFAULT_RENDER , STRING0 ) ;
internalRenderers . put ( STRING1 , STRING1 + STRING2 ) ;
internalRenderers . put ( STRING3 , STRING3 + STRING2 ) ;
+ internalRenderers . put ( STRING4 , STRING4 + STRING2 ) ;
internalRenderers . put ( STRING5 , STRING... | Revert Remove ability to choose Cycle map |
<nb> public class AndroidManifestRule extends AbstractCachingBuildRule {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
private ImmutableList < AndroidResourceRule > getAndroidResourceDepsInternal ( | Correct a javadoc link that does not need to be fully qualified |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Threading {
public static CycleDetectingLockFactory factory ;
public static ReentrantLock lock ( String name ) {
- return factory . newRee... | On Android use non cycle detecting locks with fairness activated experimental |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
- public class DefaultPeriodCleaner {
+ public class DefaultPeriodCleaner implements TaskExt... | Fix loading of DefaultPurgeTask |
<nb> public class JsonExtension extends Extension {
@ override
public void onRegister ( CompileScope scope ) {
+ registerConstants ( new JsonConstants ( ) ) ;
registerFunctions ( new JsonFunctions ( ) ) ;
registerNativeClass ( scope , JsonSerializable . class ) ;
} | Implement json extension |
<nb> public class ForgeHooksClient
matrix . mul ( flipX , matrix ) ;
matrix . mul ( matrix , flipX ) ;
}
- if ( pair . getRight ( ) != null ) multiplyCurrentGlMatrix ( pair . getRight ( ) ) ;
+ multiplyCurrentGlMatrix ( matrix ) ;
}
return pair . getLeft ( ) ;
} | Fixed incorrect rotations for items in the left hand |
<nb> public class GeometryBatchFactory {
mat . setTexture ( STRING0 , diffuseMap ) ;
}
if ( normalMap != null ) {
- TangentBinormalGenerator . generate ( mesh ) ;
mat . setTexture ( STRING1 , normalMap ) ;
}
if ( specularMap != null ) { | remove tangent generation from batch factory |
<nb> public class MucOptions {
user . setAffiliation ( item . getAttribute ( STRING0 ) ) ;
user . setRole ( item . getAttribute ( STRING1 ) ) ;
user . setJid ( item . getAttributeAsJid ( STRING2 ) ) ;
- if ( codes . contains ( STATUS_CODE_SELF_PRESENCE ) ) {
+ if ( codes . contains ( STATUS_CODE_SELF_PRESENCE... | made muc parser more compatible with legacy mucs |
<nb> public class CropView extends ImageView {
@ override
public boolean dispatchTouchEvent ( MotionEvent event ) {
- super . dispatchTouchEvent ( event ) ;
+ boolean result = super . dispatchTouchEvent ( event ) ;
+
+ if ( ! isEnabled ( ) ) {
+ return result ;
+ }
touchManager . onEvent ( event )... | Don t handle touches if View is not enabled |
<nb> public abstract class BaseTest {
@ afterclass
public static void afterClass ( ) throws IOException , InterruptedException {
if ( ! RedissonRuntimeEnvironment . isTravis ) {
- RedisRunner . startDefaultRedisServerInstance ( ) ;
+ RedisRunner . shutDownDefaultRedisServerInstance ( ) ;
defaultRedisson . s... | fixed the redis instance not stopped issue |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class Injection {
return new InjectingHandler ( handlerType ) ;
}
+ public static GuiceBackedHandlerFactory handlerFactory ( ) {
+ return new DefaultGuiceBackedHandlerFactory ( ) ;
+ }
... | Expose a public method for creating a Guice backed handler |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ListUtil {
boolean myIsEngaged = false ;
public void mouseMoved ( MouseEvent e ) {
- if ( myIsEngaged && ! UIUtil . isSelectionButtonDown ( e ) ) {
+ Component focusOwner = KeyboardFocusManager . getCurrentKeyboardFocusMa... | don t do autoselection if context menu is visible |
<nb> public abstract class ESTestCase extends LuceneTestCase {
}
COMMENT
- @ suppresswarnings ( STRING0 )
public static < T extends Throwable > T expectThrows ( Class < T > expectedType , ThrowingRunnable runnable ) {
try {
runnable . run ( ) ;
} catch ( Throwable e ) {
if ( expectedType . isInstance ... | Remove unnecessary unchecked cast |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ ignore ( STRING0 )
public final class FreeAndDeleteIntegrationTest {
private stat... | Ignore flaky tests |
<nb> public class DocumentManager
public void fileOpened ( FileEditorManager fileEditorManager , VirtualFile virtualFile )
{
Document doc = FileDocumentManager . getInstance ( ) . getDocument ( virtualFile ) ;
- addListeners ( doc ) ;
+ if ( doc != null )
+ {
+ addListeners ( doc ) ;
+ }
}
public ... | Fixed exception when opening a file that has no document such as images with ImageViewer plugin |
<nb> public interface HostedConnection extends MessageConnection
COMMENT
COMMENT
COMMENT
- public long getId ( ) ;
+ public int getId ( ) ;
COMMENT
COMMENT
<nb> public class DefaultServer implements Server
private Kernel fast ;
private KernelAdapter fastAdapter ;
private Redispatch dispatcher = ... | Fixed some more cases where I missed the long int |
<nb> public class PShapeSVG extends PShape {
} else if ( name . equals ( STRING0 ) ) {
SINGLE
- } else {
+ } else if ( ! name . startsWith ( STRING1 ) ) {
PGraphics . showWarning ( STRING2 + name + STRING3 ) ;
SINGLE
} | remove silly warnings |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix copyright date |
<nb> public class ReaderPostDetailFragment extends Fragment
if ( ! mHasAlreadyUpdatedPost ) {
mHasAlreadyUpdatedPost = true ;
updatePost ( ) ;
- requestRelatedPosts ( ) ;
}
+ requestRelatedPosts ( ) ;
}
} , NUMBER0 ) ;
} else { | Move related posts request to always trigger when page finishes |
<nb> public class ListRemoveOperation extends CollectionBackupAwareOperation {
return new CollectionRemoveBackupOperation ( name , itemId ) ;
}
- @ override
+ @ override
public void beforeRun ( ) throws Exception {
- publishEvent ( ItemEventType . ADDED , ( Data ) response ) ;
+ publishEvent ( ItemEvent... | list remove operation should publish REMOVED event |
<nb> public class Activity extends ContextThemeWrapper
COMMENT
COMMENT
public void closeContextMenu ( ) {
- mWindow . closePanel ( Window . FEATURE_CONTEXT_MENU ) ;
+ if ( mWindow . hasFeature ( Window . FEATURE_CONTEXT_MENU ) ) {
+ mWindow . closePanel ( Window . FEATURE_CONTEXT_MENU ) ;
+ }
}
COMM... | Fix crash caused by disabling the Options panel on TVs |
<nb> public final class ViewRootImpl implements ViewParent ,
}
}
+ public void dispatchUnhandledInputEvent ( InputEvent event ) {
+ if ( event instanceof KeyEvent ) {
+ dispatchUnhandledKey ( ( KeyEvent ) event ) ;
+ return ;
+ }
+ }
+
public void dispatchAppVisibility ( boolean visible ) {
Mess... | Add ViewRootImpl unhandledInputEvent API stub |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ impor... | fixed problem with UPSERT in batch transaction |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public class TextType extends AbstractLongStringType { | restore original author |
<nb> abstract class RequestBuilderBase < T extends RequestBuilderBase < ? > > {
return ( T ) this ;
}
- public void addQueryParameter ( String name , String value )
- {
+ @ suppresswarnings ( { STRING0 , STRING1 } )
+ public T addQueryParameter ( String name , String value ) {
if ( request . queryParams... | allow chaining of addQueryParameter method |
<nb> public class ViewConfiguration {
COMMENT
COMMENT
COMMENT
- private static final int OVERFLING_DISTANCE = NUMBER0 ;
+ private static final int OVERFLING_DISTANCE = NUMBER1 ;
private final int mEdgeSlop ;
private final int mFadingEdgeLength ;
<nb> public class OverScroller {
}
mCurrentPositio... | Reduced Overfling threshold after many different cefficient tries |
<nb> public class EthernetDataTracker implements NetworkStateTracker {
COMMENT
COMMENT
public String getTcpBufferSizesPropName ( ) {
- return STRING0 ;
+ return STRING1 ;
}
public void setDependencyMet ( boolean met ) { | fix ethernet and wifi can t be tuned seperately issue |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | added marker not sure that the javadoc is correct |
<nb> public class LogExtractor
if ( ! fileSystem . fileExists ( name ) )
{
name = activeLogFiles . get ( version ) ;
- if ( name == null ) throw new NoSuchLogVersionException ( version ) ;
+ if ( name == null ) throw new NoSuchLogVersionException ( version , name ) ;
}
FileChannel channel = fileSystem . o... | Added a more specific error message to NoSuchLogVersionException |
<nb> class DisplayContent {
}
TaskStack getHomeStack ( ) {
- if ( mHomeStack == null ) {
+ if ( mHomeStack == null && mDisplayId == Display . DEFAULT_DISPLAY ) {
Slog . e ( TAG , STRING0 + this ) ;
}
return mHomeStack ; | Remove misleading error log |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
public class RatingBarLayout extends FrameLayout {
<nb> public class RatingBarLayout extends FrameLayout {
}
public void setRatingGlobalPercentage ( int ratingGlobalPercentage ) {
- if ( mRatingGlobalPercentage !=... | Fix Rating Bar not showing text |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
public class ControllerDynamicMethodsInterceptor extends
AbstractDynamicMethodsInterceptor {
- public ControllerDynamicMethodsInterceptor ( Class theClass , HttpServ... | added the redirect dynamic controller method |
<nb> import NAMESPACE ;
class CommonsLogger implements InternalLogger {
private final Log logger ;
+ private final String loggerName ;
- CommonsLogger ( Log logger ) {
+ CommonsLogger ( Log logger , String loggerName ) {
this . logger = logger ;
+ this . loggerName = loggerName ;
}
public void d... | Fixed failing tests |
<nb> public class RouterNanoHTTPD extends NanoHTTPD {
router = new UriRouter ( ) ;
}
+ public RouterNanoHTTPD ( String hostname , int port ) {
+ super ( hostname , port ) ;
+ router = new UriRouter ( ) ;
+ }
+
COMMENT
COMMENT
COMMENT | add constructor with hostname parameter to RouterNanoHTTPD |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed the CS error of FreemarkerComponent |
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
protected String customPackage ; | Allow setting Dandroid customPackage from command line |
<nb> public abstract class RemoteVmConnection extends VmConnection < Vm > {
. rejected ( new Consumer < Throwable > ( ) {
@ override
public void consume ( Throwable error ) {
- if ( ! ( error instanceof Promise . MessageError ) ) {
+ if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) || ! ( err... | assert position on initialSteppedOut |
<nb> public interface ExoPlayer {
COMMENT
COMMENT
COMMENT
- static final class Factory {
+ final class Factory {
COMMENT
COMMENT
<nb> public interface ExoPlayer {
COMMENT
COMMENT
COMMENT
- static final int STATE_IDLE = NUMBER0 ;
+ int STATE_IDLE = NUMBER0 ;
COMMENT
COMMENT
COMMENT
- ... | Remove redundant modifiers in ExoPlayer java |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
public class JsonMarshaller < T extends Object > implements DynamoDBMarshaller < T > { | Updated broken URL for Jackson documentation |
<nb> public class ShAnalyzerFactory extends FileAnalyzerFactory {
STRING0 ,
STRING1 ,
STRING2 ,
- STRING3 ,
- STRING4 ,
STRING5 ,
STRING6 ,
STRING7 , | tcl tk files should use the new specialized analyzer |
<nb> public final class ParseDataset extends Job {
static final void onProgress ( final Key chunk , final Key progress ) {
assert progress != null ;
+ Value val = DKV . get ( chunk ) ;
+ if ( val == null ) return ;
+ final long len = val . length ( ) ;
new TAtomic < Progress > ( ) {
@ override public Pr... | Do not load the chunk on the Progress key s home just to get it s length |
<nb> public class FileInStreamIntegrationTest {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ test
public void seekTest ( ) throws IOException , TachyonException { | SMALLFIX Changed thrown exception in Javadoc in FileInStreamIntegrationTest |
<nb> public class ItemStack implements ConfigurationSerializable {
COMMENT
COMMENT
public MaterialData getData ( ) {
- if ( Material . getMaterial ( getTypeId ( ) ) . getData ( ) != null ) {
- data = Material . getMaterial ( getTypeId ( ) ) . getNewData ( ( byte ) this . durability ) ;
+ Material mat = Mate... | Fixed NPE in ItemStack |
<nb> import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- public class ActivityPlugin extends Plugin {
+ public class ActivityPlugin extends CordovaPlugin {
static String TAG = STRING0 ; | Remove use of deprecate org apache cordova api Plugin |
<nb> public final class CounterToRateMetricTransform implements MetricObserver {
protected boolean removeEldestEntry ( Map . Entry < MonitorConfig , CounterValue > eldest ) {
final long now = System . currentTimeMillis ( ) ;
final long lastMod = eldest . getValue ( ) . getTimestamp ( ) ;
- final boolean expired... | Make the expiration check precendence obvious |
<nb> public class SeriesGuidePreferences extends SherlockPreferenceActivity implement
public boolean onPreferenceChange ( Preference preference , Object newValue ) {
if ( preference . getKey ( ) . equals ( KEY_THEME ) ) {
Utils . updateTheme ( ( String ) newValue ) ;
+
+ SINGLE
+ Intent intent = getIntent (... | Restart app after applying new theme |
<nb> public final class Permission {
}
SINGLE
User user = AuthenticatedClientUser . get ( conf ) ;
- Preconditions . checkNotNull ( user , ExceptionMessage . AUTHORIZED_CLIENT_USER_IS_NULL . getMessage ( ) ) ;
+ if ( user == null ) {
+ throw new IOException ( ExceptionMessage . AUTHORIZED_CLIENT_USER_IS_NUL... | Do not checkfail when AUTHORIZED_CLIENT_USER_IS_NULL |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class PopupMenuHttpMessageContainer extends ExtensionPopupMenuMessageCont
case ActiveScanPanel . MESSAGE_CONTAINER_NAME :
invoker... | remove dependency on fuzzer classes |
<nb> public class PreferenceGroupAdapter extends RecyclerView . Adapter < PreferenceViewH
a . recycle ( ) ;
final View view = inflater . inflate ( pl . resId , parent , false ) ;
- view . setBackgroundDrawable ( background ) ;
+ if ( view . getBackground ( ) == null ) {
+ view . setBackgroundDrawable ( back... | Don t overwrite pref s backgrounds |
<nb> public class CreateFileFix implements IntentionAction , LocalQuickFix {
long current = System . currentTimeMillis ( ) ;
if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) || current - myIsAvailableTimeStamp > REFRESH_INTERVAL ) {
- myIsAvailable = myDirectory . getVirtualFile ( ) . findChild... | fix the test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ singleton
public class BodyParserEngineJson implements BodyParserEngine {
- private final Logger logger = L... | remove unused variable and imports |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
@ jsonserialize ( include = Inclusion . NON_NULL )
public class ResponseDefinition {
<nb> public class ResponseDefinition {
if ( expecteds == null ) return false ;
if ( actuals == null ) return false ;
- int a... | Remove need for Array reflection call |
<nb> public interface MavenDomBuild extends MavenDomBuildBase {
COMMENT
@ notnull
@ required ( value = false , nonEmpty = true )
- @ convert ( value = PathReferenceConverter . class , soft = false )
+ @ convert ( value = PathReferenceConverter . class , soft = true )
GenericDomValue < PathReference > getOut... | don t validate outputDirectory |
<nb> public class DepInterpreter extends Interpreter {
if ( sparkInterpreter != null && sparkInterpreter . isSparkContextInitialized ( ) ) {
return new InterpreterResult ( Code . ERROR ,
- STRING0 ) ;
+ STRING1 +
+ STRING2 +
+ STRING3 ) ;
}
scala . tools . nsc . interpreter . Results . Result ret = ... | added hint to errror message |
<nb> public class OSProcessHandler extends ProcessHandler {
while ( myReader . ready ( ) ) {
int n = myReader . read ( buffer ) ;
if ( n > NUMBER0 ) {
- myNotificationQueue . offer ( new String ( buffer , NUMBER0 , n ) ) ;
+ int start = NUMBER0 ;
+ int end = NUMBER0 ;
+ while ( start < n ) {
+ while ( e... | Chop process output one line per chunk |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GradleProjectStartupActivity implements StartupActivity {
@ override
public void runActivity ( @ notnull final Project project ) {
if ( ApplicationManager . g... | fixed IndexNotReadyException for MavenProjectIndicesManager usage in startup activity |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JSONResult extends ActionResult {
super ( NAME ) ;
}
- @ in ( scope = ScopeType . CONTEXT )
- protected MadvocConfig madvocConf... | dropped dependency on MadvocConfig and use getCharset in results |
<nb> public enum DataType {
@ override
public BytesRef readFrom ( StreamInput in ) throws IOException {
- int length = in . readVInt ( ) ;
- if ( length == NUMBER0 ) {
+ int length = in . readVInt ( ) - NUMBER1 ;
+ if ( length == - NUMBER1 ) {
return null ;
}
- byte [ ] bytes = new byte [ length - N... | use more logic from upstream in read byteref |
<nb> public class FadeEffect implements JazzyEffect {
@ override
public void setupAnimation ( View item , int position , int scrollDirection , ViewPropertyAnimator animator ) {
- animator . setDuration ( animator . getDuration ( ) * JazzyListView . DURATION * DURATION_MULTIPLIER ) ;
+ animator . setDuration (... | Fix error while factoring out fade effect |
<nb> import NAMESPACE ;
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
+ @ deprecated
public class GradientPlotterIterationListener implements IterationListener {
private int iterations = NUMBER0 ;
private NeuralNetPlotter plotter = new NeuralNetPlotter ( ) ;
<nb> import NAMESPACE ;
COMMENT
COMME... | Deprecate GradientPlotterIterationListener and NeuralNetPlotterIterationListener |
<nb> public interface RecordStore {
boolean isLocked ( Data key ) ;
- boolean isLockedBy ( Data key , String caller , long threadId ) ;
-
boolean canAcquireLock ( Data key , String caller , long threadId ) ;
String getLockOwnerInfo ( Data key ) ;
<nb> public interface RecordStore {
Object evict ( ... | remove unused methods |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class DirectoryGroupingRule implements UsageGroupingRule {
UsageInFile usageInFile = ( UsageInFile ) usage ;
VirtualFile file = usageInFile . getFile ( ) ;
if ( file != null )... | correctly show file path for usage in injected block |
<nb> public class Observable < T > {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Observable < T > {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ deprecated
public final Observable < T > aggregate ( Func2 < T , T , T > accumulator ) {
<nb> public c... | fixing javadoc layout bugs |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClassLoaderUtil {
}
SINGLE
- Class callerClass = Reflection . getCallerClass ( NUMBER0 ) ;
+ Class callerClass = ReflectUtil . getCallerClass ( NUMBER0 ) ... | removed sun reflect Reflection dependency |
<nb> public class OETLPipeline {
final OETLProcessor . LOG_LEVELS iLogLevel , final int iMaxRetries ) {
logLevel = iLogLevel ;
processor = iProcessor ;
- context = ( OBasicCommandContext ) new OBasicCommandContext ( iProcessor . getContext ( ) ) ;
+ context = new OBasicCommandContext ( ) ;
transformers = ... | Fixed compilation problem |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Scale extends Visibility {
@ override
public Animator onDisappear ( ViewGroup sceneRoot , final View view , TransitionValues startValues ,
T... | revert original scale values in the end on Scale disappearing transition |
<nb> public class DevicePolicyManager {
= STRING0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ public static final String EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE
+ = STRING1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add extra for account migration in the DevicePolicyMamager |
<nb> public class SimpleRecordInheritanceTest {
assertThat ( b . get ( B . $d1 ) , equalTo ( NUMBER0 ) ) ;
assertThat ( b . get ( B . $str1 ) , equalTo ( STRING0 ) ) ;
}
+
+ @ test
+ public void testIsInstance ( ) {
+ Record < B > b = B . rt . newInstance ( ) ;
+ Record < A > a = A . rt . newInstance ( ... | Added a test for RecordType isInstance |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class NotificationGroupManager {
return true ;
}
NotificationGroup group = mGroupMap . get ( sbn . getGroupKey ( ) ) ;
- if ( group != null && group . expanded ) ... | Fixed a bug where notification where invisible on the lockscreen |
<nb> public class PythonPyInspectionToolProvider implements ApplicationComponent {
int len = pyList . __len__ ( ) ;
for ( int i = NUMBER0 ; i < len ; i ++ ) {
final String inspectionToolName = pyList . __getitem__ ( i ) . toString ( ) ;
- myRegistrar . registerInspectionToolFactory ( new PyInspectionToolFactory... | restore Python plugin API compatibility |
<nb> public class Block extends Message {
}
private void checkTimestamp ( ) throws VerificationException {
- SINGLE
- long currentTime = Utils . currentTimeSeconds ( ) ;
- if ( time > currentTime + ALLOWED_TIME_DRIFT )
- throw new VerificationException ( String . format ( Locale . US , STRING0 , time , cu... | Improve message of VerificationException that is thrown when a blocks time is too far in the future |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
- import NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import N... | Removed unused imports Main java |
<nb> public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
if ( validationFactory != null ) {
BeanValidationIntegrator . validateFactory ( validationFactory ) ;
serviceRegistryBuilder . applySetting ( AvailableSettings . VALIDATION_FACTORY , validationFactory ) ;
+ configurationValues... | Making the validator factory available via EntityManagerFactory getProperties |
<nb> public final class RuntimeEnvironment {
log . info ( STRING0 + configuration . getSourceRoot ( ) ) ;
}
} catch ( IOException e ) {
- log . log ( Level . WARNING , STRING1 , e ) ;
+ log . log ( Level . SEVERE , STRING1 , e ) ;
+ } catch ( RuntimeException e ) {
+ log . log ( Level . SEVERE , STRING2 ,... | Catch RuntimeExceptions as well to ensure that the socket gets closed and the clients disconnected |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DefaultInitialDirContextFactory implements InitialDirContextFactory
public void setMessageSource ( MessageSource messageSource ) {
this . messages = new MessageSour... | Added setter method to allow connection pooling to be disabled |
<nb> public class JSPSourceProcessor extends BaseSourceProcessor {
}
protected boolean hasUnusedVariable ( String fileName , String line ) {
- if ( fileName . startsWith ( STRING0 ) ) {
- return false ;
- }
-
if ( line . contains ( STRING1 ) ) {
return false ;
} | Revert SourceFormatter Ignore files in modules when checking for unused variables for now to make the tests pass |
<nb> final class AtomFeedCheckerCmd {
System . out . println ( STRING0 + sleepTimeMillis + STRING1 ) ;
Thread . sleep ( sleepTimeMillis ) ;
}
- } catch ( IOException e ) {
- SINGLE
+ } catch ( Exception e ) {
+ SINGLE
e . printStackTrace ( ) ;
System . out . println ( STRING0 + sleepTimeMillis + STRIN... | catch all exceptions and continue so we don t crash because of network problems |
<nb> public class TestLuceneIndex extends AbstractLuceneIndexTest
}
@ test
- public void shouldNotFindValueDeletedInSameTx2 ( ) {
+ public void shouldCountCorrectlyEvenIfNodesHaveBeenRemoved ( ) {
Index < Node > nodeIndex = graphDb . index ( ) . forNodes ( STRING0 ) ;
Node node = graphDb . createNode ( ) ... | Changed test name |
<nb>
package NAMESPACE ;
import static NAMESPACE ;
- import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> import NAMESPACE ;
STRING0 +
STRING1 +
STRING2 ,
- category = GUAVA , severity = WARNING , maturity = MA... | Disable the PreconditionsExpensiveString check since it has a bug |
<nb> public class ClassFileSetCheck
visitSet ( javaClasses ) ;
SINGLE
- final JavaClassWalker walker = JavaClassWalker . getInstance ( ) ;
+ final JavaClassWalker walker = new JavaClassWalker ( ) ;
walker . setVisitor ( getTreeVisitor ( ) ) ;
final Iterator it = javaClasses . iterator ( ) ;
while ( it .... | remove singleton pattern for tree walker |
<nb> public abstract class HeavyFileEditorManagerTestCase extends CodeInsightFixtureT
}
@ override
+ protected void tearDown ( ) throws Exception {
+ myManager = null ;
+
+ super . tearDown ( ) ;
+ }
+
+ @ override
protected String getBasePath ( ) {
return STRING0 ;
} | reset FileEditorManagerImpl in tearDown |
<nb> public class TaskStack implements DimLayer . DimLayerUser ,
}
private boolean updateBoundsAfterConfigChange ( ) {
- if ( mFullscreen ) {
- SINGLE
- SINGLE
- return false ;
- }
-
final int newRotation = getDisplayInfo ( ) . rotation ;
final int newDensity = getDisplayInfo ( ) . logicalDensityD... | Update stack bounds for fullscreen if rotated after updateDisplayInfo |
<nb> public class CreateTableChange extends AbstractChange {
fkConstraints . append ( STRING0 ) ;
}
if ( constraints . isDeferrable ( ) != null && constraints . isDeferrable ( ) ) {
- fkConstraints . append ( STRING1 ) ;
+ fkConstraints . append ( STRING2 ) ;
}
fkConstraints . append ( STRING3 ) ;
SINGL... | removed duplicate comma in statements with deferrable constraints |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add documentation about Receiver |
<nb> public final class TypeTransformationParser {
private ErrorReporter errorReporter ;
private int templateLineno , templateCharno ;
- private static final int VAR_ARGS = Integer . MAX_VALUE ;
+ private static final int VAR_ARGS = Integer . MAX_VALUE - NUMBER0 ;
COMMENT
public static enum OperationKin... | Fix a bug in the type transformation parser which was adding one to the Integer MAX_VALUE |
<nb> public class IndexQueue extends LinkedBlockingQueue < Runnable >
refreshTime = System . currentTimeMillis ( ) ;
index . refresh ( ) ;
refreshTime = System . currentTimeMillis ( ) - refreshTime ;
- refreshes . add ( action . getIndex ( ) . getIndexName ( ) ) ;
+ refreshes . add ( index . getIndexName ( ) ... | fix quality flaw possible NPE |
<nb> public class PreparedStatementProxyImpl extends StatementProxyImpl implements Pr
protected final PreparedStatement statement ;
protected final String sql ;
- SINGLE
private JdbcParameter [ ] parameters = new JdbcParameter [ NUMBER0 ] ;
private int parametersSize = NUMBER1 ;
<nb> public class Prepar... | decrease memory copy |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class AsyncRequestReadTest
}
@ test
+ @ ignore
public void test ( ) throws Exception
{
final Socket socket = new Socket ( STRING0 , connector . getLo... | ignore the aysncrequestreadtest as it is known to fail and is waiting for a fix |
<nb> public final class FtpUtils {
public static void ensureRelativeFtpDirectory ( Component ftpComponent , RemoteFileConfiguration configuration ) {
if ( FileUtil . hasLeadingSeparator ( configuration . getDirectoryName ( ) ) ) {
String relativePath = FileUtil . stripLeadingSeparator ( configuration . getDirecto... | Fixed the CS error in camel ftp |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
... | Fix javadocs for Gauge and ExceptionMetered |
<nb> public class ModelLoader
{
float [ ] vertices = new float [ numElements ] ;
for ( int i = NUMBER0 ; i < numElements ; i ++ )
- vertices [ i ] = din . readInt ( ) ;
+ vertices [ i ] = din . readFloat ( ) ;
mesh . setVertices ( vertices ) ;
}
<nb> public class ShaderProgram
{
checkManaged ( ) ;... | fixed small bug in model loader |
<nb> private IFn getFn ( Object dispatchVal ) throws Exception {
return targetFn ;
}
+ public Object invoke ( ) throws Exception {
+ return getFn ( dispatchFn . invoke ( ) ) . invoke ( ) ;
+ }
+
public Object invoke ( Object arg1 ) throws Exception {
return getFn ( dispatchFn . invoke ( arg1 ) ) . inv... | added no arg support for multimethods |
<nb> public class Solo {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
<nb> class ViewFetcher {
}
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMEN... | Clarified javadoc for getCurrentListViews in Solo and ViewFetcher |
<nb> public class FileAttributesReadingTest {
final File target = FileUtil . createTempFile ( myTempDirectory , STRING0 , STRING1 ) ;
final File link = IoTestUtil . createHardLink ( target . getPath ( ) , myTempDirectory . getPath ( ) + STRING2 ) ;
- FileAttributes attributes = getAttributes ( link ) ;
+ File... | Fix test failing on XP |
<nb> public class OSchemaShared extends ODocumentWrapperNoClass implements OSchema , O
clusterIds [ NUMBER0 ] = database . addCluster ( CLUSTER_TYPE . PHYSICAL . toString ( ) , iClassName , null , null ) ;
else
for ( int i = NUMBER0 ; i < minimumClusters ; ++ i ) {
- clusterIds [ i ] = database . addCluster ( C... | reuse a cluster by name if already exists |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class DefaultJavaCoverageRunner extends DefaultJavaProgramRunner {
public boolean canRun ( @ notnull final String executorId , @ notnull final RunP... | enable run with coverage for local servers |
<nb> public class PythonGenerator implements CodeGenerator
STRING0 +
STRING1 +
STRING2 +
- STRING3 +
- STRING4 +
+ STRING5 +
+ STRING6 +
STRING7 +
- STRING8 + byteOrder + STRING9 +
- STRING10 +
- STRING11 +
+ STRING8 + byteOrder + STRING12 +
+ STRING13 +
+ STRING14 +
STRING15 ,
propertyN... | python Fix VarData to correctly handle positions and to work with python strings behavior change |
<nb> import NAMESPACE ;
public class ReservoirSegmentSamplerTest
{
- private DruidMaster master ;
private DruidServer druidServer1 ;
private DruidServer druidServer2 ;
private DruidServer druidServer3 ;
<nb> public class ReservoirSegmentSamplerTest
@ before
public void setUp ( ) throws Exception
{... | removed unecessary line |
<nb> public class ShowcaseView extends RelativeLayout
this ( activity , false ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
public Builder ( Activity activity , boolean useNewStyle ) {
this . activity = activity ;
this . showcaseView = new ShowcaseView ( activity , useNe... | Add builder methods to aid easy showcase drawing API |
<nb> public class SingleClassHierarchy extends ClassHierarchy {
SINGLE
result = Arrays . copyOf ( result , i ) ;
- Arrays . sort ( result , Comparator . comparing ( a - > a . myFileId ) ) ;
+ Arrays . sort ( result , ( a1 , a2 ) - > Integer . compare ( a1 . myFileId , a2 . myFileId ) ) ;
return result ;
} | avoid accidental boxing during stub hierarchy creation |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.