diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class AceEditorBackgroundLinkHighlighter
highlighters_ . add ( webLinkHighlighter ( ) ) ;
if ( fileType != null && ( fileType . isMarkdown ( ) || fileType . isRmd ( ) ) )
highlighters_ . add ( markdownLinkHighlighter ( ) ) ;
-
nextHighlightStart_ = NUMBER0 ;
timer_ . schedule ( NUMBER1 ) ;
}
... | missing escape on |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClientLockTest {
assertFalse ( STRING0 , lockObtained ) ;
}
+
+ @ test ( expected = UnsupportedOperationException . c... | added one simple test in client lock |
<nb> public class SettingActivity extends android . preference . PreferenceActivity imple
mEnableNotification = ( CheckBoxPreference ) findPreference ( getString ( R . string . pref_notification_ringtone ) ) ;
mNotificationVibrate = ( CheckBoxPreference ) findPreference ( getString ( R . string . pref_notification_... | remove duplicate call to setInitialValues in onCreate |
<nb> public class LocalStopFinder {
SINGLE
HashSet < Vertex > closed = new HashSet < Vertex > ( ) ;
BinHeap < State > queue = new BinHeap < State > ( NUMBER0 ) ;
- options . setRoutingContext ( graph ) ;
BasicShortestPathTree spt = new BasicShortestPathTree ( options ) ;
State initial = new State ( origin ,... | do not set context in local stop finder it only does walk bike |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
import NAMESPACE ;
<nb> public class FrameCreator extends H2O . H2OCountedCompleter {
for ( int c : _cat_cols ) {
_domain [ c ] = new String [ _createFrame . factors ] ;
for ( int i = NUMBE... | Remove dead code |
<nb> public class TestNGTestClassProcessor implements TestClassProcessor {
} catch ( NoSuchMethodException e ) {
COMMENT
} catch ( InvocationTargetException e ) {
- COMMENT
+ throw new GradleException ( String . format ( STRING0 , options . getAnnotations ( ) ) , e ) ;
} catch ( IllegalAccessException e ) {... | propagate catched InvocationTargetException and IllegalAccessException |
<nb> import NAMESPACE ;
public abstract class DTask < T extends DTask > extends H2OCountedCompleter implements Freezable {
SINGLE
SINGLE
- private String _exception ;
- private String _msg ;
- private String _eFromNode ; SINGLE
+ protected String _exception ;
+ protected String _msg ;
+ protected Stri... | Changed access rights of DTask |
<nb> public interface NotificationService
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fixed javadoc comment |
<nb> import NAMESPACE ;
public class NeuronsTest extends water . TestUtil {
@ beforeclass public static void setup ( ) { stall_till_cloudsize ( NUMBER0 ) ; }
+ @ ignore
@ test
public void matrixVecTest ( ) {
int rows = NUMBER1 ; | Ignore NeuronsTest pure benchmark |
<nb> public abstract class AbstractAQuery < T extends AbstractAQuery < T > > implements Con
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
public T textColor ( int color ) {
<nb> public abstract class AbstractAQuery < T extends AbstractAQuery < T > > implements Con
r... | Add textColorId method |
<nb> public class ExpressionState {
return new TypedValue ( returnValue , TypeDescriptor . forObject ( returnValue ) ) ;
}
else {
- throw new SpelException ( SpelMessages . OPERATOR_NOT_SUPPORTED_BETWEEN_TYPES , op , left , right ) ;
+ String leftType = ( left == null ? STRING0 : left . getClass ( ) . getName... | Corrected exception message inserts |
<nb> import NAMESPACE
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
COMMENT
@ elasticsearchintegrationtest.suitescopetest
+ @ testlogging ( STRING0 )
public class GeoBoundsTests extends... | TEST added trace logging for index recovery in GeoBoundsTests |
<nb> public abstract class AbstractCommandLineRunner < A extends Compiler ,
}
COMMENT
+ COMMENT
+ COMMENT
+ @ deprecated
+ public static List < SourceFile > getBuiltinExterns ( CompilerOptions options ) throws IOException {
+ return getBuiltinExterns ( options . getEnvironment ( ) ) ;
+ }
+
+ COMM... | Add an overload of getBuiltinExterns to unbreak clutz |
<nb> abstract class Server {
STRING0 , SINGLE
STRING1
) ) ;
- static final int THREAD_POOL_SIZE = NUMBER0 ;
protected int port ;
protected String host ; | remove unused constant |
<nb> public class QueryResource
catch ( Exception e ) {
SINGLE
yielder . close ( ) ;
+ throw Throwables . propagate ( e ) ;
}
finally {
SINGLE | fix missing return statement |
<nb> abstract class Elements {
public static final String PORT_MAPPINGS = STRING0 ;
public static final String PORT_MAPPING = STRING1 ;
public static final String CUSTOM_FILTER = STRING2 ;
- public static final String CUSTOM_AUTH_RPOVIDER = STRING3 ;
+ public static final String CUSTOM_AUTH_PROVIDER = STRING3... | Fixed typo in constant name |
<nb> public class ParserErrorMessagesTests extends ExpressionTestCase {
parseAndCheckError ( STRING0 , SpelMessages . PARSE_PROBLEM , NUMBER0 , STRING1 ) ; SINGLE
}
+ public void testExpressionLists02a ( ) {
+ SINGLE
+ parseAndCheckError ( STRING2 , SpelMessages . PARSE_PROBLEM , NUMBER1 , STRING3 ) ; SINGL... | moved test into ParserErrorMessageTests |
<nb> class TranslationProcessor extends FileProcessor {
return ; SINGLE
}
String typeName = type . getErasure ( ) . getQualifiedName ( ) ;
- String sourceName = typeName . replace ( STRING0 , File . pathSeparatorChar ) + STRING1 ;
+ String sourceName = typeName . replace ( STRING0 , File . separatorChar ) + S... | Fixed dependent source file lookup |
<nb> import NAMESPACE ;
public class AsyncMetadataVersionManager implements Runnable {
- public static final String CLUSTER_VERSION_KEY = STRING0 ;
- public static String STORES_VERSION_KEY = STRING1 ;
+ public final String CLUSTER_VERSION_KEY = STRING0 ;
+ public String STORES_VERSION_KEY = STRING1 ;
p... | Fixing a bug in AsyncMetadataVersionManager related to store version tracking |
<nb> public class InternalEngine extends AbstractIndexShardComponent implements Engin
SINGLE
dirty = false ;
try {
- SINGLE
- SINGLE
- SINGLE
- currentIndexWriter ( ) . close ( false ) ;
+ { SINGLE
+ final long translogId = translog . currentId ( ) ;
+ indexWriter . setCommitData ( MapBuilder . < St... | ENGINE Add current translog ID to commit meta before closing |
<nb> public class GoogleLogin extends Login {
return authbuilder . build ( ) ;
} catch ( Exception e ) {
- throw new LoginFailedException ( ) ;
+ throw new LoginFailedException ( e ) ;
}
}
<nb> public class PtcLogin extends Login {
return authbuilder . build ( ) ;
} catch ( Exception e ) {
- t... | Add cause to LoginFailedExceptions |
<nb> public class SmsMessage {
return mWrappedSmsMessage . getUserData ( ) ;
}
- COMMENT
- protected SmsHeader getUserDataHeader ( )
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public SmsHeader getUserDataHeader ( ) {
+ return mWrappedSmsMessage . getUserDataHeader ( ) ;
+ ... | expose but still hide sms user data headers |
<nb> public class NoWhitespaceBeforeCheck
@ override
public int [ ] getDefaultTokens ( ) {
return new int [ ] {
+ TokenTypes . COMMA ,
TokenTypes . SEMI ,
TokenTypes . POST_INC ,
TokenTypes . POST_DEC ,
<nb> public class NoWhitespaceBeforeCheck
@ override
public int [ ] getAcceptableTokens ( ) {
r... | Allow COMMA again in NoWhiteSpaceBefore |
<nb> public class Account extends AbstractEntity {
private List < Bookmark > bookmarks = new CopyOnWriteArrayList < > ( ) ;
private final Collection < Jid > blocklist = new CopyOnWriteArraySet < > ( ) ;
- public Account ( ) {
- this . uuid = STRING0 ;
- }
-
public Account ( final Jid jid , final String ... | made constructor private in Account entity |
<nb> public class InfinispanConfiguration {
private boolean sync = true ;
@ uriparam ( label = STRING0 , javaType = STRING1 )
private Set < String > eventTypes ;
- @ uriparam
+ @ uriparam ( label = STRING0 )
private InfinispanCustomListener customListener ;
@ uriparam ( label = STRING0 , defaultValue = ST... | Add label to InfinispanConfiguration customListener UriParam |
<nb> public class JetHighlighter extends SyntaxHighlighterBase {
keys1 . put ( JetTokens . INTEGER_LITERAL , JetHighlightingColors . NUMBER ) ;
keys1 . put ( JetTokens . FLOAT_LITERAL , JetHighlightingColors . NUMBER ) ;
- fillMap ( keys1 , TokenSet . andNot (
- JetTokens . OPERATIONS ,
- TokenSet . andNot ... | Fix absence of highlighting for as in is keywords |
<nb> public class DeliverFirst < View , T > implements Observable . Transformer < T , Delivery
} ) ;
}
} )
+ . filter ( new Func1 < Delivery < View , T > , Boolean > ( ) {
+ @ override
+ public Boolean call ( Delivery < View , T > delivery ) {
+ return delivery != null ;
+ }
+ } )
. take ( NUMBER0 )... | Add missing filter call to DeliverFirst |
<nb> class DefaultConstructionProxyFactory implements ConstructionProxyFactory {
return ( T ) fastConstructor . newInstance ( arguments ) ;
}
public List < Parameter < ? > > getParameters ( ) {
- return Parameter . forConstructor ( errorHandler , fastConstructor ) ;
+ return Parameter . forConstructor ( error... | Fixing a bug where CGLib multiple classes with the same FQN pain |
<nb> public class ToolingApiGradleExecutor implements GradleExecutor {
if ( gradleDistribution instanceof VersionBasedGradleDistribution ) {
gradleConnector . useGradleVersion ( ( ( VersionBasedGradleDistribution ) gradleDistribution ) . getVersion ( ) ) ;
} else if ( gradleDistribution instanceof InstalledGradle... | Fix method name |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class ReaderActivityLauncher {
if ( TextUtils . isEmpty ( url ) )
return ;
try {
- Intent intent = new Intent ( Intent . ACTION_VIEW , Uri . parse ( url ) ... | Use in app web view to open external links in native reader |
<nb> public class OCamlBuildRulesGenerator {
. addAll (
cxxPreprocessorInput . getIncludes ( ) . getNameToPathMap ( ) . values ( ) )
. build ( ) ) )
- SINGLE
- SINGLE
+ SINGLE
+ SINGLE
. addAll (
BuildRules . toBuildRulesFor (
params . getBuildTarget ( ) ,
resolver ,
cxxPreprocessorInput . getRu... | include C compiler in C compile build rule |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ResourceChat {
COMMENT
@ broadcast ( writeEntity = false )
@ post
- public JSONWithPadding broadcast ( Message message ) {
- return new JSONWithPadding ( new Respons... | Fix wrong commit again |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Util {
Util . log ( null , Log . INFO , STRING0 ) ;
return true ;
}
+ } catch ( NameNotFoundException ignored ) {
} c... | Suppress exception log |
<nb> public abstract class PyElementGenerator {
public abstract PyNamedParameter createParameter ( @ notnull String name ) ;
- public abstract PsiWhiteSpace createWhiteSpace ( int length ) ;
-
public abstract PsiFile createDummyFile ( String contents ) ;
}
<nb> public class PyElementGeneratorImpl extend... | do not create whitespace from text |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SimpleSampleActivity extends AppCompatActivity {
ImageView mImageView = ( ImageView ) findViewById ( R . id . iv_photo ) ;
... | Remove usage of deprecated getDrawable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClusterStateMonitor extends org . elasticsearch . common . component . Abst
@ override
public void clusterChanged ( Clust... | Only process fully applied cluster state changes in ClusterStateMonitor |
<nb> public abstract class TestBase2 {
public File asFile ( String path ) {
try {
- return new File ( new URI ( path ) . getPath ( ) ) ;
+ URI uri = new URI ( path ) ;
+ if ( uri . getScheme ( ) . equals ( STRING0 ) ) {
+ return new File ( uri . getPath ( ) ) ;
+ } else {
+ throw new IllegalArgumentEx... | Fixed check for local file scheme in TestBase2 |
<nb> public abstract class AbstractFuture < V > implements Future < V > {
COMMENT
COMMENT
COMMENT
- protected void done ( ) {
+ void done ( ) {
SINGLE
}
<nb> public abstract class AbstractListenableFuture < V >
COMMENT
COMMENT
@ override
- protected void done ( ) {
+ void done ( ) {
execut... | Make AbstractFuture done package private |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Added stats action to controlbus component to get performance stats easily |
<nb> public class MultipartBodyTest {
} catch ( IOException ie ) {
Assert . fail ( STRING0 ) ;
}
- if ( readBytes >= NUMBER0 ) {
+ if ( readBytes > NUMBER0 ) {
totalBytes += readBytes ;
} else {
last = true ; | Fixed infinite loop of MultipartBodyTest for master branch |
<nb> public class DNSUtil {
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix typo in DNSUtil setIdnaTransformer |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class RestAssuredSetupRule extends ExternalResource {
@ override
protected void before ( ) throws Throwable {
- final ServerH... | Removing unused variable |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public class ClassFileStubBuilder implements BinaryFileStubBuilder {
@ override
public int getStubVersion ( ) {
int version = STUB_VERSION ;
- fin... | to get version sort copy of ClsStubBuilderFactory implementation array |
<nb> public class OtrAndroidKeyManagerImpl implements OtrKeyManager {
private void load ( )
{
- android . os . Debug . waitForDebugger ( ) ;
try
{
<nb> public class OtrAndroidKeyManagerImpl implements OtrKeyManager {
private void store ( ) throws FileNotFoundException , IOException {
- android .... | removed debug breaks for service |
<nb> public class OBISMessage {
private void postProcessKaifaE0003 ( ) {
logger . debug ( STRING0 ) ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+
+ SINGLE
+ SINGLE
if ( cosemValues . size ( ) > FIRST_POWER_FAILURE_DURATION ) {
CosemDate p... | Added inline comment for postProcessKaifaE0003 |
<nb> public class OneRecursiveShotMergeInfoWorker implements MergeInfoWorker {
if ( relativeToWc == null ) return SvnMergeInfoCache . MergeCheckResult . NOT_EXISTS ;
final InfoProcessor processor = new InfoProcessor ( relativeToWc , myFromUrlRelative , revisionNumber ) ;
- myDataMap . getSimiliar ( relativeToWc... | SVN merge info worker to correctly handle case sensitive FS |
<nb> public class DefaultModelRegistry implements ModelRegistry {
binder . bindInput ( finalI , path ) ;
return true ;
}
- } else if ( path == inputReference . getPath ( ) ) {
+ } else if ( path . equals ( inputReference . getPath ( ) ) ) {
boolean typeCompatible = promise . asReadOnly ( inputReference . ge... | Fix bug that prevented binding references with a path |
<nb> public class SvnClientRunnerImpl implements SvnClientRunner {
@ override
public void checkin ( final VirtualFile file ) throws IOException {
- AbstractVcsTestCase . verify ( runSvn ( file , STRING0 , STRING1 , STRING2 ) ) ;
+ AbstractVcsTestCase . verify ( runSvn ( file , STRING0 , STRING1 , STRING2 , fi... | specify absolute checkout path for tests |
<nb>
package NAMESPACE ;
- public abstract class BusinessFieldModelDao {
+ import NAMESPACE ;
+
+ public abstract class BusinessFieldModelDao extends EntityBase {
private final String name ;
private final String value ; | make BusinessFieldModelDao extend EntityBase |
<nb> import NAMESPACE ;
COMMENT
@ configuration
@ enableconfigurationproperties
- @ conditionalonclass ( { EnableWebSecurity . class } )
+ @ conditionalonclass ( { EnableWebSecurity . class , AuthenticationEntryPoint . class } )
@ conditionalonmissingbean ( WebSecurityConfiguration . class )
@ conditional... | Make web security config require spring security web on classpath |
<nb> public class IpnbHeadingPanel extends IpnbEditablePanel < JBLabel , IpnbHeadingCell
@ override
public void updateCellView ( ) {
final String text = myEditablePanel . getText ( ) ;
- myCell . setSource ( StringUtil . splitByLines ( text ) ) ;
+ myCell . setSource ( StringUtil . splitByLinesKeepSeparators ... | keep separators in heading cell |
<nb> public final class AnimatorSet extends Animator {
if ( duration < NUMBER0 ) {
throw new IllegalArgumentException ( STRING0 ) ;
}
- for ( Node node : mNodes ) {
- SINGLE
- SINGLE
- node . animation . setDuration ( duration ) ;
- }
+ SINGLE
mDuration = duration ;
return this ;
}
<nb> public... | Fix AnimatorSet duration issue |
<nb> public interface IStoreConfig {
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
void storeConfig ( ) ;
<nb> public interface IStoreConfig {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
COMMENT
boolean store ( Server aServer ) ; | Fix Javadoc nags |
<nb> public class DynamicPropertyFactory {
} catch ( Throwable e ) {
if ( isThrowMissingConfigurationSourceException ( ) ) {
throw new MissingConfigurationSourceException ( STRING0 , e ) ;
- } else {
+ } else if ( ! Boolean . getBoolean ( STRING1 ) ) {
logger . warn ( STRING0 , e ) ;
}
initializeWithDef... | suppress logging from DynamicPropertyFactory |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ClassNestingDepthInspection
public void visitClass ( @ notnull PsiClass aClass ) {
SINGLE
-
+ if ( aClass instanceof... | don t count type parameters |
<nb> public class TypeMigrationVariableTypeFixProvider implements ChangeVariableTypeQ
@ override
public boolean startInWriteAction ( ) {
- return true ;
+ return false ;
}
} ;
}
<nb> public class GuavaInspection extends BaseJavaLocalInspectionTool {
@ override
public boolean startInWriteAction (... | run type migration based quick fixes inside read action |
<nb> public class CamelConduit extends AbstractConduit implements Configurable {
decoupledMessageObserver = observer ;
}
- protected synchronized MessageObserver getMessageObserver ( ) {
+ public synchronized MessageObserver getMessageObserver ( ) {
return decoupledMessageObserver ;
}
} | added work around for change in CXF |
<nb> public class FBUtilities
{
throw new ConfigurationException ( String . format ( STRING0 , readable , classname ) ) ;
}
+ catch ( NoClassDefFoundError e )
+ {
+ throw new ConfigurationException ( String . format ( STRING0 , readable , classname ) ) ;
+ }
}
COMMENT | add catch for NoClassDefFoundError |
<nb> class IonDrawable extends Drawable {
PixelFormat . TRANSLUCENT : PixelFormat . OPAQUE ;
}
- @ override
- public Drawable mutate ( ) {
- throw new UnsupportedOperationException ( ) ;
- }
-
-
static IonDrawable getOrCreateIonDrawable ( ImageView imageView ) {
Drawable current = imageView . getD... | remove unsupported operation |
<nb> public class OverridingUtil {
COMMENT
COMMENT
@ notnull
- @ suppresswarnings ( STRING0 )
public static < D extends CallableDescriptor > Set < D > filterOutOverridden ( @ notnull Set < D > candidateSet ) {
return filterOverrides ( candidateSet , FunctionsKt . < CallableDescriptor > identity ( ) ) ;
} ... | Minor add comment remove warning suppression |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
public interface OfflinePlayer extends ServerOperator , AnimalTamer , ConfigurationSerializable {
<nb> public interface OfflinePlayer extends ServerOperator , AnimalTamer , Configuratio
COMMENT
COM... | Added OfflinePlayer getPlayer for getting the online Player object |
<nb> public class InspectionResultsView extends JPanel implements Disposable , Occuren
myOccurenceNavigator = initOccurenceNavigator ( ) ;
mySplitter = new OnePixelSplitter ( false , AnalysisUIOptions . getInstance ( myProject ) . SPLITTER_PROPORTION ) ;
-
- mySplitter . setFirstComponent ( ScrollPaneFactory ... | do not paint a lot of pixel borders to make visible border more thin |
<nb> public class ShowInfoFragment extends SherlockFragment implements LoaderCallback
}
public void onEvent ( TraktActionCompleteEvent event ) {
- if ( event . mTraktTaskArgs . getInt ( TraktTask . InitBundle . TRAKTACTION ) == TraktAction . RATE_EPISODE . index ) {
+ if ( event . mTraktTaskArgs . getInt ( Tr... | Fix show info not listening to rating updates |
<nb> public class TemporaryJob {
} catch ( InterruptedException | ExecutionException | TimeoutException e ) {
fail ( format ( STRING0 , job . getId ( ) , job . toString ( ) , e ) ) ;
} finally {
- createJob . finish ( ) ; ;
+ createJob . finish ( ) ;
}
final TemporaryJobReports . Step deployJob = report... | remove extra semicolon |
<nb> public final class Converters {
@ override
public FullRevision convert ( String input ) throws OptionsParsingException {
try {
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- SINGLE
- input = input . replace ( STRING0 , STRING1 ) ;
return FullRevision . parseRevision ( input ) ;
} catch ( NumberFormatE... | Removes preview hack for Android build tools version attribute |
<nb> public abstract class CallPeerMediaHandler < T extends MediaAwareCallPeer < ? , ? , ? > >
{
case AUDIO :
return audioStream ;
+ case DATA :
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ return null ;
case VIDEO :
return videoStream ;
default : | Fixes a failure to initiate outgoing calls |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public class DropwizardServiceRule < C extends Configuration > implements TestRule
try {
base . evaluate ( ) ;
} finally {
+ resetConfigOverrides ( ) ;
jet... | JUnit rule now resets property overrides after test class |
<nb> import static NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class NetworkPolicyManagerShellCommand extends ShellCommand {
private List < NetworkPolicy > getWifiPolicies ( ) throws RemoteException {
SINGLE
f... | Fixed NPE when wifi is turned off |
<nb> public class RemoteBlockInStream extends BlockInStream {
SINGLE
if ( bytesLeft > NUMBER0 && mBlockOutStream == null && mRecache ) {
try {
- mBlockOutStream = new BlockOutStream ( mFile , WriteType . TRY_CACHE , mBlockIndex ) ;
+ mBlockOutStream = new BlockOutStream ( mFile , WriteType . TRY_CACHE , mBloc... | Add conf to the constructor in RemoteInStream |
<nb> public class CompileContextImpl extends UserDataHolderBase implements CompileCon
myProjectPaths = new ProjectPaths ( pd . getProject ( ) ) ;
SINGLE
SINGLE
- myFSCache = FSCache . NO_CACHE COMMENT ;
+ myFSCache = isProjectRebuild ? FSCache . NO_CACHE : new FSCache ( ) ;
}
@ override | enable FS cache |
<nb> public class DefaultCamelContext extends ServiceSupport implements CamelContext ,
this . lifecycleStrategies . add ( lifecycleStrategy ) ;
}
- public List < RouteDefinition > getRouteDefinitions ( ) {
+ public synchronized List < RouteDefinition > getRouteDefinitions ( ) {
return routeDefinitions ;
}... | Fixed concurrent issue with getRouteDefinition methods |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | removed unused import |
<nb> public class SelectStatement implements CQLStatement
{
SINGLE
SINGLE
- return sliceRestriction != null && ! sliceRestriction . isInclusive ( Bound . START ) ? parameters . limit + NUMBER0 : parameters . limit ;
+ return sliceRestriction != null && ! sliceRestriction . isInclusive ( Bound . START ) && par... | Fix overflow in SelectStatement getLimit |
<nb> public final class MoreExecutors {
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public final class MoreExecutors {
COMMENT
COMMENT
COMMENT
- CO... | Improve MoreExecutors shutdownAndAwaitTermination |
<nb>
SINGLE
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlazeCommandEventHandler implements EventHandler {
category = STRING0 ,
help = STRING1 )
public boolean externalRepositories ;
-
+
@ option ( name = STRING2 ,
def... | Send bug report on IOException in BlazeCommandEventHandler instead of ignoring |
<nb> public class UIMenuSelectWorld extends UIWindow {
return ;
}
+ int selectionIndex = list . getSelectionIndex ( ) ;
+ if ( ( selectionIndex < NUMBER0 ) || ( selectionIndex >= list . getItemCount ( ) ) ) {
+ getGUIManager ( ) . showMessage ( STRING0 , STRING1 ) ;
+ return ;
+ }
+
try {
GameMani... | Fix unnecessary stack trace when deleting and no saved game selected |
<nb> public class ViewFlow extends AdapterView < Adapter > {
} else if ( deltaX > NUMBER0 ) {
final int availableToScroll = getChildAt (
getChildCount ( ) - NUMBER1 ) . getRight ( )
- - scrollX - getChildWidth ( ) ;
+ - getPaddingRight ( ) - getHorizontalFadingEdgeLength ( )
+ - scrollX - getWidth ( ) ;
i... | Handle padding in end of carousel scroll limit |
<nb> public final class HlsPlaylistParser implements UriLoadable . Parser < HlsPlaylist >
private static final Pattern METHOD_ATTR_REGEX =
Pattern . compile ( METHOD_ATTR + STRING0 + METHOD_NONE + STRING1 + METHOD_AES128 + STRING2 ) ;
private static final Pattern URI_ATTR_REGEX =
- Pattern . compile ( URI_ATTR ... | Fixed bug of AES URI Pattern for hls |
<nb> public class XsltFromFileExceptionTest extends ContextTestSupport {
. onException ( Exception . class )
. to ( STRING0 )
. end ( )
- . convertBodyTo ( String . class )
. to ( STRING1 )
. to ( STRING2 ) ;
} | Reverted the change of the XsltFromFileExceptionTest which should not be committed |
<nb> public class Peer {
disconnect ( ) ;
throw new PeerException ( e ) ;
} catch ( RuntimeException e ) {
- log . error ( STRING0 , e . getMessage ( ) ) ;
+ log . error ( STRING1 , e ) ;
disconnect ( ) ;
throw e ;
} | Restore error message that got accidentally taken out |
<nb> public class ScalaCompileOptions extends BaseScalaCompileOptions {
STRING0
+ STRING1 ) ;
this . fork = fork ;
- if ( fork == useAnt ) {
- setUseAnt ( ! fork ) ;
- }
}
COMMENT | Setting useAnt should take precedence over fork |
<nb>
COMMENT
COMMENT
+ package NAMESPACE ;
+
import static NAMESPACE ;
import static NAMESPACE ; | Add package statement to HttpUtilTest |
<nb> public abstract class BaseMenuController {
}
public boolean isLandscapeLayout ( ) {
- return ! portraitMode && ! largeDevice ;
+ return ! portraitMode ;
}
public float getLandscapeWidthDp ( ) { | Fix context menu landscape layout |
<nb> public class AndroidSafeDeleteProcessorDelegate implements SafeDeleteProcessorDe
@ override
public UsageInfo [ ] preprocessUsages ( Project project , UsageInfo [ ] usages ) {
- return getBaseHandler ( ) . preprocessUsages ( project , usages ) ;
+ return usages ;
}
@ override | do not repeat java preprocessing as it should be done anyway |
<nb> public class Stage extends InputAdapter implements Disposable {
public Stage ( ) {
this ( new ScalingViewport ( Scaling . stretch , Gdx . graphics . getWidth ( ) , Gdx . graphics . getHeight ( ) , new OrthographicCamera ( ) ) ,
null ) ;
- getViewport ( ) . update ( Gdx . graphics . getWidth ( ) , Gdx . gra... | Update all viewports by default |
<nb> public class JavaFileIconPatcher implements FileIconPatcher {
SINGLE
final String fileName = file . getNameWithoutExtension ( ) ;
for ( PsiClass aClass : classes ) {
- if ( Comparing . strEqual ( aClass . getName ( ) , fileName ) ) {
+ if ( ! ( aClass instanceof SyntheticElement ) && Comparing . strEqual... | don t take icons from synthetic classes |
<nb> public abstract class TitanGraphTest extends TitanGraphBaseTest {
}
} ) ;
Thread . sleep ( NUMBER0 ) ;
- assertEquals ( NUMBER1 , txMsgCounter . get ( ) ) ;
+ assertEquals ( NUMBER2 * NUMBER3 + ( features . hasTxIsolation ( ) ? NUMBER4 : NUMBER3 ) , txMsgCounter . get ( ) ) ;
assertEquals ( NUMBER3 , t... | fixed test case after changing commit behavior |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
<nb> public class DBCursor implements Iterator < DBObject > , Iterable < DBObject > {
public ... | Added getQuery method and set protection level to private for other fields |
<nb> public class GCMMessageService extends GcmListenerService {
boolean shouldPlaySound = prefs . getBoolean ( STRING0 , false ) ;
boolean shouldVibrate = prefs . getBoolean ( STRING1 , false ) ;
boolean shouldBlinkLight = prefs . getBoolean ( STRING2 , false ) ;
- String notificationSound = prefs . getString ... | Changed the None sound logic |
<nb> public class CacheEvictionConfig
}
@ override
+ public CacheEvictionConfig setMaximumSizePolicy ( MaxSizePolicy maxSizePolicy ) {
+ super . setMaximumSizePolicy ( maxSizePolicy ) ;
+ return this ;
+ }
+
+ @ override
+ public CacheEvictionConfig setEvictionPolicy ( EvictionPolicy evictionPolicy ... | Override setters of EvictionConfig in CacheEvictionConfig and return its type CacheEvictionConfig for backward compatibility |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class TargetGraphHashing {
try ( final OutputStream hasherOutputStream = Funnels . asOutputStream ( hasher ) ) {
for ( Path path : walkedPathsInSor... | Make target graph hasing consisitent across platforms |
<nb> public class StompBrokerRelayMessageHandler extends AbstractBrokerMessageHandler
public ListenableFuture < Void > forward ( final Message < ? > message , final StompHeaderAccessor accessor ) {
TcpConnection < byte [ ] > conn = this . tcpConnection ;
- if ( ! this . isStompConnected ) {
+ if ( ! this . is... | Check both connection and connected flag |
<nb> public class HttpRequest extends HttpBase < HttpRequest > {
}
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public HttpRequest open ( HttpConnection httpConnection ) {
+ this . httpConnection = httpConnection ;
+ return this ;
+ }
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add open method for assigning connections directly |
<nb> public class BitmapCache {
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
public void addBitmapToCache ( String uri , Bitmap bitmap , CompressFormat compressFormat ) {
if ( uri == null || bitmap == null ) { | update one comment |
<nb> import NAMESPACE ;
public class SeqIterator implements Iterator {
- static Object START = new Object ( ) ;
+ static final Object START = new Object ( ) ;
Object seq ;
Object next ;
public SeqIterator ( Object o ) {
- seq = this ;
+ seq = START ;
next = o ;
}
SINGLE
public SeqIterato... | don t use this as a sentinel in SeqIterator |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Cli {
stdErr . println ( e . getMessage ( ) ) ;
e . getParser ( ) . printHelp ( stdErr ) ;
return false ;
+ } catch ( ConfigurationException e ) {
+ SINGLE
+ stdErr . printl... | Suppress stack traces for ConfigurationExceptions |
<nb> public class SpringGsonJsonDataFormatTest extends CamelSpringTestSupport {
Object marshalled = template . requestBody ( STRING0 , in ) ;
String marshalledAsString = context . getTypeConverter ( ) . convertTo ( String . class , marshalled ) ;
- String expected = STRING1 +
- STRING2 +
- STRING3 ;
+ Str... | Fixed the CS error of camel gson and camel xstream |
<nb> public class CreateTableClause {
stmt . execute ( builder . toString ( ) ) ;
for ( IndexData index : indexes ) {
- String columns = StringUtils . join ( index . getColumns ( ) , STRING0 ) ;
- String sql = STRING1 + index . getName ( ) + STRING2 + table + STRING3 + columns + STRING4 ;
+ String indexColu... | fixed hidden field |
<nb> public class DefaultRuntimeEndpointRegistry extends EventNotifierSupport impleme
SINGLE
ExchangeCreatedEvent ece = ( ExchangeCreatedEvent ) event ;
Endpoint endpoint = ece . getExchange ( ) . getFromEndpoint ( ) ;
- String routeId = ece . getExchange ( ) . getFromRouteId ( ) ;
- String uri = endpoint . g... | Fixed potential NPE if components create exchange the wrong way |
<nb> package NAMESPACE ;
import static NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ExternalJavacEscaperTest {
this , STRING0 , tmp ) ;
workspace . setUp ( ) ;
- Path... | Do not hardcode the path of javac |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.