diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public final class AuthenticationContextValidator {
final MultifactorAuthenticationProvider [ ] providers = satisfiedProviders . toArray ( new MultifactorAuthenticationProvider [ ] { } ) ;
OrderComparator . sortIfNecessary ( providers ) ;
final Optional < MultifactorAuthenticationProvider > result = Arrays .... | add missing Optional get |
<nb> public class SettingsFragment extends PreferenceFragment {
displayPreferences ( ) ;
}
+ @ override
+ public void onPause ( ) {
+ super . onPause ( ) ;
+
+ if ( mDialog != null && mDialog . isShowing ( ) ) {
+ mDialog . dismiss ( ) ;
+ }
+ }
+
private void initNotifications ( ) {
SINGLE ... | Dismissing Language dialog onPause |
<nb> public abstract class BaseCommandReader implements CommandReader
@ override
public final Command read ( ReadableChannel channel ) throws IOException
{
- byte commandType = NUMBER0 ;
- while ( commandType == NUMBER0 )
+ byte commandType ;
+ do
{
commandType = channel . get ( ) ;
}
-
- if ( c... | Remove useless code |
<nb> public class UIUtil {
JComponent c = ( JComponent ) comp ;
- if ( SystemInfo . isMac ) {
+ if ( isUnderAquaBasedLookAndFeel ( ) ) {
c . putClientProperty ( STRING0 ,
componentStyle == ComponentStyle . REGULAR ? STRING1 : componentStyle == ComponentStyle . SMALL ? STRING2 : STRING3 ) ;
} | utilizing apple s sizeVariant only on aqua based UIs |
<nb> public class WPPrefUtils {
COMMENT
COMMENT
@ nullable
- public static Pair < String [ ] , String [ ] > createSortedLanguageDisplayStrings ( CharSequence [ ] languageCodes , Locale locale ) {
+ public static Pair < String [ ] , String [ ] > createSortedLanguageDisplayStrings ( CharSequence [ ] languageCod... | Fix styling issues in createSortedLanguageDisplayStrings |
<nb> public class AprEndpoint {
if ( timeout < NUMBER0 ) {
timeout = soTimeout ;
}
- if ( comet ) {
- SINGLE
- SINGLE
- timeout = soTimeout * NUMBER1 ;
- }
serverPollset = allocatePoller ( size , pool , timeout ) ;
if ( serverPollset == NUMBER0 && size > NUMBER2 ) {
size = NUMBER2 ; | Remove fixme for the timeout hack |
<nb> public class HiveServer2 extends CompositeService {
SINGLE
SINGLE
- LogUtils . initHiveLog4j ( ) ;
-
+ String initLog4jMessage = LogUtils . initHiveLog4j ( ) ;
+ LOG . debug ( initLog4jMessage ) ;
+
HiveStringUtils . startupShutdownMessage ( HiveServer2 . class , args , LOG ) ;
SINGLE
LOG . d... | HiveServer2 does not log the output of LogUtils initHiveLog4j Hari Sankar Sivarama Subramaniyan via Thejas Nair |
<nb> public class GenericValueReferenceProvider implements PsiReferenceProvider {
if ( ReflectionCache . isAssignable ( Integer . class , clazz ) ) {
return new PsiReference [ ] { new GenericDomValueReference < Integer > ( ( GenericDomValue < Integer > ) domValue , true ) {
public Object [ ] getVariants ( ) {
-... | remove funny numbers |
<nb> public class PropertiesConfiguration extends LocalConfiguration {
registerHelp = getBool ( STRING0 , registerHelp ) ;
wandItem = getInt ( STRING1 , wandItem ) ;
superPickaxeDrop = getBool ( STRING2 , superPickaxeDrop ) ;
- superPickaxeManyDrop = getBool ( STRING3 , superPickaxeManyDrop ) ;
+ superPickaxe... | Renamed some configuration settings in PropertiesConfiguration |
<nb>
package NAMESPACE ;
- SINGLE
public class BlockId {
private static final int CONTAINER_ID_BITS = NUMBER0 ; | Remove TODO comment |
<nb> public class BasicDBObject extends HashMap < String , Object > implements DBObject {
public BasicDBObject ( ) {
}
+
+ COMMENT
+ COMMENT
+ COMMENT
+ public BasicDBObject ( String key , Object value ) {
+ put ( key , value ) ;
+ }
+
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public... | add convenience CTOR and chaining append doc tweaks |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAM... | replace Toast instanciation by ToastUtils showToast |
<nb> public class IdentifierHighlighterPass extends TextEditorHighlightingPass {
} else {
PsiReference ref = TargetElementUtil . findReference ( myEditor ) ;
if ( ref instanceof PsiPolyVariantReference ) {
+ if ( ! ref . getElement ( ) . isValid ( ) ) {
+ throw new PsiInvalidElementAccessException ( ref . get... | who gives us invalid PSI to highlight usages of |
<nb> public class NetworkUtil {
IntentFilter filter = new IntentFilter ( ) ;
filter . addAction ( Intent . ACTION_SHUTDOWN ) ;
filter . addAction ( ConnectivityManager . CONNECTIVITY_ACTION ) ;
- context . getApplicationContext ( ) . registerReceiver ( sConnectionBroadcastReceiver , filter ) ;
+ try {
+ con... | add protect for NetworkUtil |
<nb> public class StoreDirect implements Engine {
index . close ( ) ;
phys . close ( ) ;
- if ( ! indexFile . renameTo ( indexFile_ ) ) throw new InternalError ( ) ;
- if ( ! physFile . renameTo ( physFile_ ) ) throw new InternalError ( ) ;
+ if ( ! indexFile . renameTo ( indexFile_ ) ) throw new InternalEr... | Improve error reporting |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Driven by user questions added a bit more docs and a sample to the test logging container |
<nb> public class CollisionShapeFactory {
shape . addChildShape ( new HeightfieldCollisionShape ( terrain . getHeightMap ( ) , terrain . getLocalScale ( ) ) ,
trans . getTranslation ( ) ,
trans . getRotation ( ) . toRotationMatrix ( ) ) ;
- } else if ( spatial instanceof Geometry && ! ( ( Geometry ) spatial ) .... | Reverted previous change and made the batchNode batch geom to ignore physics |
<nb> package NAMESPACE ;
import static NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ @ ignore ( STRING0 )
public class UserManagerFT extends BaseSeleniumTestCase {
@ test
<nb> package NAMESPACE ... | ignore some GUI test to let showcase test pass |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+
import NAMESPACE ;
public class ComponentManager {
- private Map < String , Component > components = new HashMap < String , Component > ( ) ;
+ private Map < String , Component > components = new ConcurrentHashMap ... | Replaced HashMap with ConcurrentHashMap to make the class thread safe |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class HttpProducer extends DefaultProducer {
SINGLE
SINGLE
String charset = IOHelper . getCharsetName ( exchange , false ) ;
... | http producer should use charset from content type as fallback |
<nb> public class ODatabaseDocumentTx extends OListenerManger < ODatabaseListener > impl
return ORecordHook . RESULT . RECORD_NOT_CHANGED ;
final OScenarioThreadLocal . RUN_MODE runMode = OScenarioThreadLocal . INSTANCE . get ( ) ;
+ if ( runMode != RUN_MODE . RUNNING_DISTRIBUTED && getStorage ( ) . isDistribut... | fixed issue on distributed hook management |
<nb> public class CompilerOptions implements Serializable , Cloneable {
this . propertyRenaming = newPropertyPolicy ;
}
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- @ deprecated
- public void setPropertyAffinity ( boolean useAffinity ) {
- }
-
COMMENT
public void setShadowVariables ( boolean shad... | Remove calls to setPropertyAffinity now that it does nothing |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
COMMENT
COMMENT | Remove unused import |
<nb> public class JavaFormatterWrapTest extends AbstractJavaFormatterTest {
doMethodTest (
STRING0 +
STRING1 +
- STRING2 +
+ STRING3 +
STRING4 +
STRING5 ,
STRING0 +
STRING1 +
- STRING6 +
+ STRING7 +
STRING8 +
STRING4 +
STRING5 | fix test data |
<nb> public class TestProtocolProviderServiceIcqImpl extends TestCase
SINGLE
SINGLE
SINGLE
- Map supportedOperationSets =
- fixture . provider . getSupportedOperationSets ( ) ;
- OperationSetBasicInstantMessaging opSetBasicIM =
- ( OperationSetBasicInstantMessaging ) supportedOperationSets . get (
- Ope... | Removing offline message collector registration to fix build |
<nb> public class DeepLearningAutoEncoderTest extends TestUtil {
SINGLE
p . epochs = NUMBER0 ;
SINGLE
- p . force_load_balance = true ;
+ p . force_load_balance = false ; SINGLE
p . invoke ( ) ;
DeepLearningModel mymodel = UKV . get ( p . dest ( ) ) ;
<nb> public class DeepLearningAutoEncoderTest exte... | Fix DLAutoEncoder JUnit failure bad accuracy on systems with many cores by |
<nb> public abstract class SeriesGuideExtension extends IntentService {
private static final String TAG = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String ACTION_SERIESGUIDE_EXTENSION
+ = STRING1 ;
+
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMEN... | Define extensions intent actions to filter for |
<nb> public class TCPReceiverThread extends Thread {
int sz = _bb . getShort ( start ) ; SINGLE
assert sz < AutoBuffer . BBP_SML . size ( ) : STRING0 + sz + STRING1 + start ;
read ( start + sz - _bb . position ( ) ) ;
- assert ( NUMBER0 & _bb . get ( start + sz ) ) == NUMBER1 ;
+ assert ( NUMBER0 & _bb . get ... | Added more error message to assert |
<nb> public class GroovyImportsTracker {
private final Map < GroovyFile , Set < GrImportStatement > > myUsedImportStatements = new HashMap < GroovyFile , Set < GrImportStatement > > ( ) ;
private final Map < GroovyFile , Set < GrImportStatement > > myUnusedImportStatements = new HashMap < GroovyFile , Set < GrImpor... | synchronize GroovyImportsTracker since it s used in multithreaded environment |
<nb> public class MediaMetadataRetrieverTest extends AndroidTestCase {
}
SINGLE
- SINGLE
- @ suppress
- public static void disableTestThumbnailCapture ( ) throws Exception {
+ @ largetest
+ public static void testThumbnailCapture ( ) throws Exception {
MediaMetadataRetriever retriever = new MediaMetad... | Turn on thubmnail capture unit test for media metadata retriever |
<nb> public class VideoPlayer extends Plugin {
SINGLE
if ( url . contains ( YOU_TUBE ) ) {
SINGLE
+ uri = Uri . parse ( STRING0 + uri . getQueryParameter ( STRING1 ) ) ;
intent = new Intent ( Intent . ACTION_VIEW , uri ) ;
} else {
SINGLE | VideoPlayer will now start YouTube without having to ask the user first |
<nb> public class MavenModuleNameMapper {
mavenProjectToModuleName . put ( each . project , each . getResultName ( ) ) ;
}
- assert new HashSet < String > ( mavenProjectToModuleName . values ( ) ) . size ( ) == mavenProjectToModuleName . size ( ) : mavenProjectToModuleName
- . values ( ) +
- STRING0 +
- m... | Add additional diagnostic |
<nb> public class GeneratedJava14LexerTest
final String [ ] expected = {
STRING0 ,
} ;
- SINGLE
+ verify ( checkConfig , getPath ( STRING1 ) , expected ) ;
}
} | uncommenting the test |
<nb> public class Post {
if ( i == NUMBER0
&& ( post . blog . isFullSizeImage ( ) == false && ! post . blog
. isScaledImage ( ) ) ) {
- content = content + STRING0
+ content = content + STRING1 + finalThumbnailUrl + STRING2
+ mf . getTitle ( ) + STRING3
+ alignmentCSS
+ STRING4
- + finalThumbnailUrl +... | Link the image to itself to support lightbox plugins |
<nb> import NAMESPACE ;
final class OverscrollHelper {
static void overScrollBy ( PullToRefreshBase < ? > view , int deltaY , int scrollY , boolean isTouchEvent ) {
- final Mode mode = view . getCurrentMode ( ) ;
+ final Mode mode = view . getMode ( ) ;
if ( mode != Mode . DISABLED && ! isTouchEvent ) {
... | Fix Overscroll when we re using Mode BOTH |
<nb> final class FragmentManagerImpl extends FragmentManager {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
public void enqueueAction ( Runnable action , boolean allowStateLoss ) {
if ( ! allowStateLoss ) {
checkStateLoss ( ) ;
}
synchronized ( this ) {
- if ... | Throw exception in FragmentManager when queuing after destroy |
<nb> public class MovAvgReducer extends Reducer {
Double thisBucketValue = resolveBucketValue ( histo , bucket , bucketsPaths ( ) [ NUMBER0 ] , gapPolicy ) ;
currentKey = bucket . getKey ( ) ;
- if ( thisBucketValue != null ) {
+ if ( ! ( thisBucketValue == null || thisBucketValue . equals ( Double . NaN ) ) ... | Fix bug where MovAvgReducer would allow NaN s to corrupt the moving avg |
<nb> public class ShardCompactionManager
if ( ! metadataDao . isCompactionEnabled ( tableId ) ) {
continue ;
}
- List < ShardMetadata > shardMetadata = entry . getValue ( ) ;
- Set < ShardMetadata > shards = shardMetadata . stream ( )
+ Set < ShardMetadata > shards = entry . getValue ( ) . stream ( )
. ... | Skip shards in progress for temporal compaction |
<nb> public class SvnCommittedViewTest extends SvnTestCase {
break ;
}
}
- Assert . assertTrue ( found ) ;
+ Assert . assertTrue ( printChanges ( changes ) , found ) ;
}
}
+
+ private String printChanges ( final Collection < Change > changes ) {
+ final StringBuilder sb = new StringBuilder ( STRING0... | SVN test debug info |
<nb> public abstract class CollectExpression < ReturnType > implements Input < ReturnType >
COMMENT
COMMENT
COMMENT
- SINGLE
public void startCollect ( ) {
} | removed old comment |
<nb> public class PssmShadowRenderer implements SceneProcessor {
SINGLE
state . setBlendMode ( RenderState . BlendMode . Modulate ) ;
state . setFaceCullMode ( RenderState . FaceCullMode . Off ) ;
+ state . setDepthWrite ( false ) ;
+ state . setPolyOffset ( - FLOAT0 , NUMBER0 ) ;
+
}
COMMENT | post shadow pas does not write depth anymore also added a slight polyOffset to avoid z fighting |
<nb> final class BindingClass {
}
for ( FieldDrawableBinding binding : drawableBindings ) {
- int tintAttributeId = binding . getTintAttributeId ( ) . value ;
- if ( tintAttributeId != NUMBER0 ) {
+ Id tintAttributeId = binding . getTintAttributeId ( ) ;
+ if ( tintAttributeId . value != NUMBER0 ) {
res... | Emit R qualified attribute references when available |
<nb> public class JmsSelectorOptionTest extends CamelTestSupport {
MockEndpoint endpointB = getMockEndpoint ( STRING0 ) ;
MockEndpoint endpointC = getMockEndpoint ( STRING1 ) ;
- endpointA . expectedBodiesReceived ( STRING2 , STRING3 ) ;
+ endpointA . expectedBodiesReceivedInAnyOrder ( STRING2 , STRING3 ) ;
... | fixed failing JMS test |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class StructureFieldOrderTest extends TestCase {
ignoreConstructorError . add ( X11 . class . getName ( ) + STRING0 ) ;
}
+ ignoreConstructorError . add ( DBT . D... | ignore ctor errors in stuctures manually validated by wolftobias |
<nb> public class Sketch {
Base . showWarning ( STRING0 , message , null ) ;
}
- } SINGLE
+ } else {
+ SINGLE
+ final String message =
+ STRING1 +
+ STRING2 + Integer . toString ( wide ) + STRING3 +
+ Integer . toString ( high ) + STRING4 ;
+
+ Base . showWarning ( STRING0 , message , null ) ;
... | Added export warning if no size was found |
<nb> public class ExpressionAnalyzer
{
List < Integer > matches = tupleDescriptor . resolveFieldIndexes ( node . getName ( ) ) ;
if ( matches . isEmpty ( ) ) {
- throw new SemanticException ( MISSING_ATTRIBUTE , node , STRING0 , node . getName ( ) ) ;
+ throw new SemanticException ( MISSING_ATTRIBUTE , node ,... | Make error message say column instead of attribute |
<nb> public class MongoConfig {
}
public void setMapperOutputValue ( final Class < ? > val ) {
- MongoConfigUtil . setMapperOutputKey ( configuration , val ) ;
+ MongoConfigUtil . setMapperOutputValue ( configuration , val ) ;
}
public Class < ? extends Reducer > getCombiner ( ) { | set the output value rather than the output key |
<nb> public final class TvInputManagerService extends SystemService {
private void setStateLocked ( String inputId , int state , int userId ) {
UserState userState = getUserStateLocked ( userId ) ;
TvInputState inputState = userState . inputMap . get ( inputId ) ;
- ServiceState serviceState = userState . servi... | Fix invalid use of serviceStateMap get |
<nb> public final class ArrayUtils {
return ArrayUtils . idealByteArraySize ( pSize < < NUMBER0 ) > > NUMBER0 ;
}
- public static int idealObjectArraySize ( final int pSize ) {
- return ArrayUtils . idealByteArraySize ( pSize < < NUMBER0 ) > > NUMBER0 ;
+ public static int idealDoubleArraySize ( final int p... | Added missing function in ArrayUtils |
<nb> import NAMESPACE ;
COMMENT
public class Measurements
{
- private static final String MEASUREMENT_TYPE_PROPERTY = STRING0 ;
+ public static final String MEASUREMENT_TYPE_PROPERTY = STRING0 ;
private static final String MEASUREMENT_TYPE_PROPERTY_DEFAULT = STRING1 ; | Make MEASUREMENT_TYPE_PROPERTY constant public in Measurements class |
<nb> public class ManyToOneRingBuffer implements RingBuffer
if ( eventTypeId < NUMBER0 )
{
final String msg = String . format ( STRING0 ,
- eventTypeId ) ;
+ Integer . valueOf ( eventTypeId ) ) ;
throw new IllegalArgumentException ( msg ) ;
}
<nb> public class ManyToOneRingBuffer implements RingBuffer... | Make boxing explicit |
<nb> public class Deserializer {
FieldNode classNode = asset . getTypeTree ( ) . get ( path . classID2 ) ;
if ( classNode == null ) {
- throw new DeserializationException ( STRING0 ) ;
+ throw new DeserializationException ( STRING1 ) ;
}
UnityObject ac = new UnityObject ( ) ; | Changed exception message |
<nb> public class LayoutParserWrapper implements XmlPullParser {
if ( mPeeked ) {
if ( mAttributes == null ) {
if ( mEventType != START_TAG ) {
- throw new IndexOutOfBoundsException ( STRING0 +
- STRING1 ) ;
+ throw new IndexOutOfBoundsException ( STRING2 ) ;
} else {
return null ;
} | Don t break error string easier grepping |
<nb> public final class AccessibilityInteractionClient
COMMENT
COMMENT
COMMENT
- public List < AccessibilityNodeInfo > findAccessibilityNodeInfosByViewTextInActiveWindow (
+ public List < AccessibilityNodeInfo > findAccessibilityNodeInfosByTextInActiveWindow (
int connectionId , String text ) {
try {
IA... | Fixing the build |
<nb> public class PostUploadService extends Service {
}
@ override
- public void onStart ( Intent intent , int startId ) {
+ public void onDestroy ( ) {
+ super . onDestroy ( ) ;
+ SINGLE
+ if ( mCurrentTask != null ) {
+ AppLog . d ( T . API , STRING0 ) ;
+ mCurrentTask . cancel ( true ) ;
+ }
... | reset upload task and therefor the uploaded post when PostUploadService is destroyed |
<nb> public class PullToRefreshListView extends PullToRefreshAdapterViewBase < ListView
super ( context ) ;
this . setDisableScrollingWhileRefreshing ( false ) ;
}
+
+ public PullToRefreshListView ( Context context , int mode ) {
+ super ( context , mode ) ;
+ this . setDisableScrollingWhileRefreshing ( f... | add missing constructor for PullToRefreshListView with mode |
<nb> public class JavaCompilingVisitor extends JavaRecursiveElementWalkingVisitor {
private final GlobalCompilingVisitor myCompilingVisitor ;
@ nonnls private static final String COMMENT = STRING0 ;
- private static Pattern ourPattern = Pattern . compile ( STRING1 + COMMENT , Pattern . DOTALL ) ;
- private st... | make fields final |
<nb> import NAMESPACE ;
public class FieldSerializer extends Serializer {
private static Map < Class , SavedField [ ] > savedFields = new HashMap < Class , SavedField [ ] > ( ) ;
+ protected void checkClass ( Class clazz ) {
+
+ SINGLE
+ try {
+ clazz . getConstructor ( ) ;
+ } catch ( NoSuchMethodExc... | Added a check for no arg constructor during initialize |
<nb> import NAMESPACE ;
import NAMESPACE ;
- COMMENT
- COMMENT
public class LZFCompressedStreamOutput extends CompressedStreamOutput < LZFCompressorContext > {
private final BufferRecycler recycler ;
<nb> public class LZFCompressedStreamOutput extends CompressedStreamOutput < LZFCompres
this . recyc... | Change LZFCompressedStreamOutput to use buffer recycler when allocating encoder |
<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 ;
- import NAMESPACE ;
import NAMESPACE ;
COMM... | Remove unused imports |
<nb> public class Requirements {
if ( services != null )
for ( String service : services ) {
IBinder binder = ( IBinder ) getService . invoke ( null , service ) ;
- String description = binder . getInterfaceDescriptor ( ) ;
- mapService . put ( service , description ) ;
+ if ( binder != null ) {
+ String ... | Fix null pointer from support info |
<nb>
COMMENT
package NAMESPACE ;
+ import static NAMESPACE ;
+ import static NAMESPACE ;
+
+ import NAMESPACE ;
+
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
-
- import static NAMESPACE ;
- import static NAMESPACE ;
-
public clas... | Fixed failing auto indexer test |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> class ProjectGenerator {
new ByteArrayInputStream ( entity . getContent ( ) ) ) ;
try {
extractFromStream ( zipStream , overwrite , outputFolder ) ;
+ fixExecutableFlag ( outputFolder , STRING0 ) ;
+ fixExecutableFlag ( outputFolder ,... | Fix Maven Gradle wrapper executable flag |
<nb> public class DeepLearningParameters extends Model . Parameters {
}
}
if ( ! _autoencoder && _sparsity_beta != NUMBER0 )
- dl . info ( STRING0 , STRING1 ) ;
+ dl . error ( STRING0 , STRING1 ) ;
if ( classification && dl . hasOffsetCol ( ) )
- dl . info ( STRING2 , STRING3 ) ;
+ dl . error ( STRING2 ... | Turn validation info into error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class Exceptions {
+ private final static ESLogger LOGGER = Loggers . getLogger ( E... | Add warn logging to Exceptions unwrap |
<nb> public final class EditorImpl extends UserDataHolderBase implements EditorEx , Hi
AnActionListener . Adapter actionListener = new AnActionListener . Adapter ( ) {
@ override
public void beforeActionPerformed ( AnAction action , DataContext dataContext , AnActionEvent event ) {
- if ( isZeroLatencyTypingEna... | skip Paste with existing selection |
<nb> import NAMESPACE ;
COMMENT
public class Utils {
- private static final int ITEM_COUNT = NUMBER0 ;
+ private static final int ITEM_COUNT = NUMBER1 ;
public static List < String > getSampleData ( ) {
return getSampleData ( ITEM_COUNT ) ; | Updated sample data size |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
public class ServiceUtils
{
<nb> public class ServiceUtils
: ( T ) bundleContext . getService ( serviceReference ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ C... | Adds getServiceReferences utility method |
<nb> public class UnifiedDiffViewer extends ListenerDiffViewerBase {
if ( ! myEditor . isViewer ( ) ) {
for ( ChangedBlock block : blocks ) {
LineRange range = myMasterSide . select ( block . getRange2 ( ) , block . getRange1 ( ) ) ;
+ if ( range . isEmpty ( ) ) continue ;
TextRange textRange = DiffUtil . get... | unified viewer forbid typing near empty line deletion at EOF |
<nb> class ApplicationHttpRequest extends HttpServletRequestWrapper {
COMMENT
@ override
public String getPathTranslated ( ) {
- if ( getPathInfo ( ) == null ) {
+ if ( getPathInfo ( ) == null || getServletContext ( ) == null ) {
return null ;
} | Extend NPE protection |
<nb> public class AntChangeVisitor implements XmlChangeVisitor {
}
public void visitDocumentChanged ( final XmlDocumentChanged xmlDocumentChanged ) {
- final AntElement element = getAntParent ( xmlDocumentChanged . getDocument ( ) ) ;
- if ( element != null ) {
- element . clearCaches ( ) ;
+ final AntFil... | on document changed clear caches of ant file |
<nb> final class FileWorkerMasterSyncExecutor implements HeartbeatExecutor {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
public FileWorkerMasterSyncExecutor ( FileDataManager fileDataManager ,
FileSystemMasterClient masterClient ) { | Fix javadoc comment for masterClient param |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> public class ProtobufAnnotationSerializer extends AnnotationSerializer {
mentionProto . getMentionID ( ) ,
mentionProto . getSentenceIndex ( ) + NUMBER0 ,
new IntTuple ( new int [ ] { mentionProto . getSentenceIndex ( ) + NUMBER0 , mentionProto . getPosition ( ) } ) ,
- mentionSpan . substring ( NUMBER0 ) ... | Fix some bugs with serialization |
<nb> public class Categories extends Suite {
}
private static void assertNoCategorizedDescendentsOfUncategorizeableParents ( Description description ) throws InitializationError {
- if ( ! canHaveCategorizedChildren ( description ) ) {
+ if ( canHaveCategorizedChildren ( description ) ) {
+ for ( Descriptio... | Avoid repeated checks |
<nb> public class VimPlugin implements ApplicationComponent , PersistentStateComponent
if ( VimPlugin . isEnabled ( ) ) {
SINGLE
- if ( ! EditorData . isFileEditor ( editor ) ) {
+ if ( ! EditorData . isFileEditor ( editor ) && ! CommandState . inInsertMode ( editor ) ) {
CommandGroups . getInstance ( ) . g... | Prevent extra modes in states stack |
<nb> public class TextField extends Widget implements Disableable {
COMMENT
COMMENT
static public interface TextFieldListener {
- public void keyTyped ( TextField textField , char key ) ;
+ public void keyTyped ( TextField textField , char c ) ;
}
COMMENT
COMMENT
static public interface TextFieldFil... | Changed variable names |
<nb> class SanityCheck implements CompilerPass {
private void sanityCheckExternProperties ( Node externs ) {
Set < String > externProperties = compiler . getExternProperties ( ) ;
+ if ( externProperties == null ) {
+ SINGLE
+ return ;
+ }
( new GatherExternProperties ( compiler , gatherExternsFromTypes... | Fix SanityCheck for extern properties to only run after the extern properties have been set |
<nb> public class UIExporterGDF implements ExporterUI {
private UIExporterGDFPanel panel ;
private ExporterGDF exporterGDF ;
- private ExporterGDFSettings settings ;
+ private ExporterGDFSettings settings = new ExporterGDFSettings ( ) ;
public void setup ( Exporter exporter ) {
exporterGDF = ( ExporterG... | Fix issue with Export settings |
<nb> public class EntitySpawnHandler extends SimpleChannelInboundHandler < FMLMessage . E
private void spawnEntity ( FMLMessage . EntitySpawnMessage spawnMsg )
{
- System . out . println ( STRING0 ) ;
ModContainer mc = Loader . instance ( ) . getIndexedModList ( ) . get ( spawnMsg . modId ) ;
EntityRegistra... | Remove unneeded entity spawn debug logging |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import static NAMESPACE ;
<nb> public class HintsCatalogTest
writeDescriptor ( directory , descriptor3 ) ;
writeDescriptor ( directory , descriptor4 ) ;
- HintsCatalog catalog = HintsCatalog . l... | Do not reference HintsService from test |
<nb> public class StorageService implements IEndpointStateChangeSubscriber , StorageSe
if ( tokenMetadata . isMember ( endpoint ) )
logger . info ( STRING0 + endpoint + STRING1 ) ;
+ SINGLE
+ if ( Gossiper . instance . getVersion ( endpoint ) >= MessagingService . VERSION_12 )
+ tokenMetadata . updateHostId... | update host ID before token |
<nb> public abstract class JBListTable extends JPanel {
mainTable . setStriped ( true ) ;
}
+ public void stopEditing ( ) {
+ TableUtil . stopEditing ( mainTable ) ;
+ }
+
private void installPaddingAndBordersForEditors ( JBTableRowEditor editor ) {
final List < EditorTextField > editors = UIUtil . fi... | add stopEditing method |
<nb> public class EmbeddedElasticSearchClient {
SINGLE
deleteIndex ( indexName ) ;
+ server . getMongoBridge ( ) . removeIndexDateRange ( indexName ) ;
}
} | Also update index ranges after retention cleaning |
<nb> public abstract class AbstractApplicationEventMulticaster
}
for ( ApplicationListener < ? > listener : listeners ) {
if ( supportsEvent ( listener , event . getClass ( ) , sourceType ) ) {
- retriever . applicationListeners . add ( listener ) ;
+ if ( retriever != null ) {
+ retriever . applicationList... | Prevent NPE in AbstractApplicationEventMulticaster s non caching code path |
<nb> public class DraggableView extends RelativeLayout {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DraggableView extends RelativeLayout {
COMMENT
public void slideMinimizedView ( float slideOffset , float drawerPosition , int width ) {
float slide = Ma... | DraggableView updated added a more param to minimize view |
<nb> public class OsmandApplication extends Application {
public PoiFiltersHelper getPoiFilters ( ) {
if ( poiFilters == null ) {
poiFilters = new PoiFiltersHelper ( this ) ;
- poiFilters . updateFilters ( true ) ;
+ poiFilters . updateFilters ( false ) ;
}
return poiFilters ;
}
<nb> public class PoiF... | Don t show ways poi |
<nb> public abstract class AbstractAndroidMojo extends AbstractMojo {
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
protected AndroidSdk getAndroidSdk ( ) throws MojoExecutionException {
File chosenSdkPath ; | Declare throws to satisfy javadoc validation |
<nb> public final class Notification < T > {
}
}
- public static enum Kind {
+ public enum Kind {
OnNext , OnError , OnCompleted
}
<nb> public class Single < T > {
COMMENT
COMMENT
COMMENT
- public static interface OnSubscribe < T > extends Action1 < SingleSubscriber < ? super T > > {
+ publi... | Remove unnecessary static modifier |
<nb> import NAMESPACE ;
public class CoyoteAdapter implements Adapter {
+ private static final Log log = LogFactory . getLog ( CoyoteAdapter . class ) ;
+
+ SINGLE
+
private static final String POWERED_BY = STRING0 +
STRING1 + ServerInfo . getServerInfo ( ) + STRING2 +
System . getProperty ( STRING3... | Move declaration as per Knostantin s review comment |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class Jvm implements JavaInfo {
return true ;
}
}
-
- private static String getJavaVersion ( ) {
- return System . getProperty ( STRING0 ) ;
- }
} | Removed unused method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class GitTest extends AbstractVcsTestCase {
myClientBinaryPath = new File ( pluginRoot , STRING0 ) ;
}
+ final GitVc... | set git executable in GitVcsApplicationSettings |
<nb> public class AppLog {
}
private static class LogEntry {
- LogLevel mLogLevel ;
- String mLogText ;
- java . util . Date mDate ;
- T mLogTag ;
+ final LogLevel mLogLevel ;
+ final String mLogText ;
+ final java . util . Date mDate ;
+ final T mLogTag ;
public LogEntry ( LogLevel logLevel ,... | Make LogEntry members final |
<nb> public class ParserTest
CSTNode root = parser . expression ( ) ;
}
+ public void testLogicalAndExpression ( )
+ throws Exception
+ {
+ Parser parser = newParser ( STRING0 ) ;
+
+ CSTNode root = parser . expression ( ) ;
+
+ System . out . println ( STRING1 + root ) ;
+ }
+
public void t... | added test to show that boolean expressions look screwy |
<nb> import NAMESPACE ;
public class NodeList extends ArrayList {
static {
SINGLE
- setMetaClass ( GroovySystem . getMetaClassRegistry ( ) . getMetaClass ( NodeList . class ) ) ;
+ setMetaClass ( NodeList . class , GroovySystem . getMetaClassRegistry ( ) . getMetaClass ( NodeList . class ) ) ;
}
public ... | Allow subclasses of XmlParser to customize creation of new Nodes additional tweak |
<nb> public class WebImageCache {
memoryCache . remove ( getCacheKey ( url ) ) ;
SINGLE
- File f = new File ( diskCachePath , url ) ;
+ File f = new File ( diskCachePath , getCacheKey ( url ) ) ;
if ( f . exists ( ) && f . isFile ( ) ) {
f . delete ( ) ;
}
<nb> public class WebImageCache {
return ur... | fix the disk cache deletion |
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ CO... | Add List removeAt int and Collection removeElement Object |
<nb> public final class DiskLruCache implements Closeable {
try {
outputStream = new FileOutputStream ( dirtyFile ) ;
} catch ( FileNotFoundException e ) {
- SINGLE
+ SINGLE
directory . mkdirs ( ) ;
- directory . setReadable ( true , false ) ;
- directory . setWritable ( true , false ) ;
try {
outpu... | Remove safety calls to set cache directory r w |
<nb> public class TabletStatusBar extends StatusBar implements
}
} ) ;
- WindowManager . LayoutParams lp = mNotificationPanelParams = new WindowManager . LayoutParams (
+ WindowManager . LayoutParams lp = new WindowManager . LayoutParams (
ViewGroup . LayoutParams . MATCH_PARENT ,
ViewGroup . LayoutParams... | Fix crazy notification panel background |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed XML example for setup of scheduled tasks |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.