diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class WorldEdit {
commands . put ( STRING0 , STRING1 ) ;
commands . put ( STRING2 , STRING3 ) ;
commands . put ( STRING4 , STRING5 ) ;
- commands . put ( STRING6 , STRING7 ) ;
+ commands . put ( STRING8 , STRING7 ) ;
commands . put ( STRING9 , STRING10 ) ;
commands . put ( STRING11 , STRING12 ... | Changed super pickaxe command to |
<nb> public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
SINGLE
final DeleteResponse deleteResponse = client ( ) . prepareDelete ( doc . v1 ( ) , RANDOM_BOGUS_TYPE , doc . v2 ( ) ) . get ( ) ;
if ( deleteResponse . isFound ( ) == false ) {
- logger . warn ( STRING0 , doc . v1 ( ) , ... | missing from log command in indexRandom |
<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 ;
<nb> public class GriffonRunConfigurationType impl... | Disable CompileBeforeRun for GrailsRunConfiguration and GriffonRunConfiguration |
<nb> public class AbstractPopup implements JBPopup {
boolean doRevalidate = false ;
if ( myHeaderComponent != null ) {
myHeaderPanel . remove ( myHeaderComponent ) ;
- myHeaderPanel . add ( myCaption , BorderLayout . NORTH ) ;
myHeaderComponent = null ;
doRevalidate = true ;
}
if ( c != null ) {
- m... | do not hide caption when showing speedsearch |
<nb> public class IDevice implements AutoCloseable {
udids [ i ] = devices . get ( i ) ;
}
return udids ;
+ } catch ( LibIMobileDeviceException e ) {
+ if ( e . getErrorCode ( ) == IDEVICE_E_NO_DEVICE ) {
+ SINGLE
+ return new String [ NUMBER0 ] ;
+ }
+ throw e ;
} finally {
devicesOut . delete ( ... | Fixed failing libimobiledevice tests on Linux when usbmuxd isn t running |
<nb> public class MenuInflater {
itemListenerMethodName = a . getString ( R . styleable . SherlockMenuItem_android_onClick ) ;
itemActionViewLayout = a . getResourceId ( R . styleable . SherlockMenuItem_android_actionLayout , NUMBER0 ) ;
- itemActionViewClassName = a . getString ( R . styleable . SherlockMenuIt... | Check type of new MenuItem attributes before reading value |
<nb> public class VoldemortConfig implements Serializable {
this . enablePruneJob = props . getBoolean ( STRING0 , true ) ;
this . enableSlopPurgeJob = props . getBoolean ( STRING1 , true ) ;
this . enableJmxClusterName = props . getBoolean ( STRING2 , false ) ;
- this . enableQuotaLimiting = props . getBoolean... | Fixing default value for quota limiting config in VoldemortConfig |
<nb> public final class Settings {
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
public static final String SMS_SHORT_CODE_CONFIRMATION = STRING0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final String SMS_SHORT_CODE_RULE = STRING1 ;
+... | Fix the build |
<nb> public class FileInStream extends InputStream implements BoundedStream , Seekable
int currentOffset = off ;
int bytesLeftToRead = len ;
- while ( bytesLeftToRead > NUMBER0 && validPosition ( mPos ) ) {
+ while ( ( mCurrentBlockInStream == null || mCurrentBlockInStream . remaining ( ) != NUMBER0 )
+ && ... | Fix unknown length read for when the instream is done |
<nb> public class SQLServer2005DialectTestCase extends BaseUnitTestCase {
final String query = STRING0 ;
assertEquals (
STRING1 +
- STRING2 + System . lineSeparator ( ) +
+ STRING3 +
STRING4 +
STRING5 ,
dialect . getLimitHandler ( ) . processSql ( query , toRowSelection ( NUMBER0 , NUMBER1 ) ) | Add a r n on the expected form too |
<nb> public class SpringSecurityMessageSourceTests extends TestCase {
public void testReplacableLookup ( ) {
SINGLE
Locale before = LocaleContextHolder . getLocale ( ) ;
- LocaleContextHolder . setLocale ( Locale . ENGLISH ) ;
+ LocaleContextHolder . setLocale ( Locale . FRENCH ) ;
SINGLE
MessageSourceA... | Switch test to use a specific locale for which we have a message file french |
<nb> public class UpdateTask extends AsyncTask < Void , Integer , Integer > {
TheTVDB . onRenewFTSTable ( mAppContext ) ;
}
- SINGLE
- final int traktResult = getTraktActivity ( prefs , maxProgress , currentTime ,
- isAutoUpdateWlanOnly ) ;
- SINGLE
- if ( resultCode == UPDATE_SUCCESS ) {
- resultCode... | Don t get trakt activity if we just update one show |
<nb> public abstract class AbstractTransportTest {
StreamObserver < StreamingOutputCallResponse > responseObserver = mock ( StreamObserver . class ) ;
StreamObserver < StreamingOutputCallRequest > requestObserver
= stub . fullDuplexCall ( responseObserver ) ;
- requestObserver . onNext ( StreamingOutputCallRequ... | Fix flakiness in test timeoutOnSleepingServer |
<nb> public class ContactListTreeCellRenderer
COMMENT
COMMENT
COMMENT
- private static final int V_GAP = NUMBER0 ;
+ private static final int V_GAP = NUMBER1 ;
COMMENT
COMMENT
<nb> public class ContactListTreeCellRenderer
{
preferredNotSelectedContactNodeHeight
= ComponentUtils . getStringHeight... | Change contact list entry gap height to avoid clipping of names |
<nb> public class HttpDestination implements Dumpable
this . proxyEndPoint = proxyEndPoint ;
this . exchange = exchange ;
setMethod ( HttpMethods . CONNECT ) ;
+ setVersion ( exchange . getVersion ( ) ) ;
String serverHostAndPort = serverAddress . toString ( ) ;
setURI ( serverHostAndPort ) ;
addRequestHe... | CONNECT uses same HTTP version as original request |
<nb> public class RangeSliceResponseResolver implements IResponseResolver < List < Row > >
this . table = table ;
}
- public List < Row > resolve ( ) throws DigestMismatchException , IOException
+ public List < Row > resolve ( ) throws IOException
{
CollatingIterator collator = new CollatingIterator ( new... | RSRR doesn t actually throw DigestMismatchException |
<nb> public class DhcpClient extends BaseDhcpStateMachine {
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
private PendingIntent createStateMachineCommandIntent ( final String cmdName , final int cmd ) {
- String action = DhcpClient . class . getName ( ) + STRING0 + cmdName ;
... | Specify more information in DhcpClient PendingIntents |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class BlockWorkerTest {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
@ after
public void after ( ) throws IOException {
- ... | Fix failing tests |
<nb> public final class UrlImageViewHelper {
mDownloader = mDefaultDownloader ;
mUseLegacyDownloader = false ;
}
+
+ public static UrlDownloader getDefaultDownloader ( ) {
+ return mDownloader ;
+ }
public static void useLegacyDownloader ( ) {
mUseLegacyDownloader = true ;
<nb>
package NAMESPACE... | fix missing methods |
<nb> public class HistoryWindow extends JFrame
new Integer ( height ) . intValue ( ) ) ;
}
else {
- this . setPreferredSize ( new Dimension (
+ this . setSize ( new Dimension (
Constants . HISTORY_WINDOW_WIDTH ,
Constants . HISTORY_WINDOW_HEIGHT ) ) ;
} | set the initial history window size using setSize and not setPreferredSize |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class BasicInstanceGroup implements InstanceGroup {
COMMENT
@ override
public List < String > instances ( ) {
- return list ;
+ return Collections . unmodifiableList ( list ) ;
... | Don t return modifiable reference |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Remove unused import |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> abstract class NioSocketChannel extends AbstractChannel
final AtomicBoolean writeTaskInTaskQueue = new AtomicBoolean ( ) ;
final R... | Replaced ConcurrentLinkedQueue with LinkedBlockingQueue in NioSocketChannel |
<nb> public class Messages {
}
public static int showDialog ( Project project , String message , String title , String [ ] options , int defaultOptionIndex , Icon icon ) {
- if ( ApplicationManager . getApplication ( ) . isUnitTestMode ( ) ) {
+ final Application application = ApplicationManager . getApplicat... | do not show dialogs in headless environment throw runtime exceptions instead |
<nb> public class AntConfigurationImpl extends AntConfigurationBase implements Persis
private static void queueLater ( final Task task ) {
final Application app = ApplicationManager . getApplication ( ) ;
- if ( app . isDispatchThread ( ) ) {
- task . queue ( ) ;
- } else {
+ if ( ! app . isDispatchThread... | fixing SOE in Ant initialization for headless mode |
<nb> public class SerializationManagerImpl extends SerializationManager implements Ap
serializer . serialize ( rootStub , stream ) ;
final List < StubElement > children = rootStub . getChildrenStubs ( ) ;
- DataInputOutputUtil . writeINT ( stream , children . size ( ) ) ;
- for ( StubElement child : children ... | avoid SmartList iterator in hotspot code |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT... | Add missing headers in some files |
<nb> public class RequestServer extends NanoHTTPD {
Request . addToNavbar ( registerRequest ( new AUC ( ) ) , STRING0 , STRING1 ) ;
Request . addToNavbar ( registerRequest ( new HitRatio ( ) ) , STRING2 , STRING1 ) ;
Request . addToNavbar ( registerRequest ( new PCAScore ( ) ) , STRING3 , STRING1 ) ;
- Request ... | Make Gains Lift Table non beta |
<nb> public class GitCheckoutProcess {
LocalChangeList defaultList = myChangeManager . getDefaultChangeList ( ) ;
for ( ChangeListInfo changeListInfo : changes . CHANGE_LISTS ) {
LocalChangeList changeList = lists . get ( changeListInfo . NAME ) ;
- if ( changeList != null ) {
- myChangeManager . setReadOnly ... | Removing clearing readonly flag on changelists |
<nb> public class Sketch {
current = code [ which ] ;
currentIndex = which ;
current . visited = System . currentTimeMillis ( ) ;
+
editor . setCode ( current ) ;
SINGLE
editor . header . repaint ( ) ; | i will get it right |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Fix grammar in Javadoc for ResponseBody |
<nb> public class KeyboardHelper
map [ NUMBER0 ] = STRING0 ;
map [ NUMBER1 ] = STRING1 ;
map [ NUMBER2 ] = STRING2 ;
+ map [ NUMBER3 ] = STRING3 ;
map [ NUMBER4 ] = STRING4 ;
map [ NUMBER5 ] = STRING5 ;
map [ NUMBER6 ] = STRING6 ; | add missing keycode alias |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class BaseOAuthActivity extends BaseActivity {
actionBar . setDisplayHomeAsUpEnabled ( true ) ;
}
+ @ suppresslint ( STRING0 )
protected void setupViews ( WebView webview... | Allow Javascript on OAuth pages |
<nb> public class Assert {
assertSame ( null , expected , actual ) ;
}
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
static public void assertNotSame ( String message , Object expected , Object actual ) {
if ( expected == actual )
failSame ( message ) ;
}
COMMENT
- COMM... | Fix cut n paste error for assertNotSame javadocs |
<nb> public class SMWorldEditListener extends PluginListener {
public boolean onBlockDestroy ( Player modPlayer , Block blockClicked ) {
if ( ! canUseCommand ( modPlayer , STRING0 )
&& ! canUseCommand ( modPlayer , STRING1 )
- && ! canUseCommand ( modPlayer , STRING2 ) ) { return false ; }
+ && ! canUseComman... | Fixed worldedit misspelling in SMWorldListener onBlockDestroy |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | SMALLFIX Removed unused import in Format class |
<nb> public class JspCompilationContext {
static Object outputDirLock = new Object ( ) ;
+ public void checkOutputDir ( ) {
+ if ( outputDir != null ) {
+ if ( ! ( new File ( outputDir ) ) . exists ( ) ) {
+ makeOutputDir ( ) ;
+ }
+ } else {
+ createOutputDir ( ) ;
+ }
+ }
+
protected boole... | Always check the output folder when going in the compile method to make sure it exists |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ChunkContextToolbar extends Composite
initOptions ( dark ) ;
initRunPrevious ( dark ) ;
- runPrevious_ . setVisible ( runPrevious ) ;
+ setRunPrevious ( r... | hide run button more cleanly on eval FALSE chunks |
<nb> public abstract class Visibility extends Transition {
if ( ( mMode & MODE_IN ) != MODE_IN || endValues == null ) {
return null ;
}
+ if ( startValues == null ) {
+ VisibilityInfo parentVisibilityInfo = null ;
+ View endParent = ( View ) endValues . view . getParent ( ) ;
+ TransitionValues startParen... | Omit appearing views that have a parent that is also appearing |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add a not about Boolean vs boolean |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
+
+ import NAMESPACE ;
+
COMMENT
COMMENT
COMMENT
<nb> public final class AnnotationUtils {
}
if ( result == null ) {
- Class [ ] interfaces = initialClass . getInterfaces ( ) ;
+ List < Class > interfaces = ClassUtils . getAllInterfac... | Fix loading of extensions which extend abstract classes |
<nb> public class BinaryValuesCommandsTest extends JedisCommandTestBase {
String status = jedis . set ( bfoo , binaryValue ) ;
assertTrue ( Keyword . OK . name ( ) . equalsIgnoreCase ( status ) ) ;
SINGLE
- String statusSuccess = jedis . set ( bfoo , binaryValue , setParams ( ) . nx ( ) . ex ( expireSeconds ) )... | fixing wrong test |
<nb> public class TrivialPathServiceImpl implements PathService {
}
@ override
- public void setGraphService ( GraphService graphService ) {
- this . graphService = graphService ;
- }
-
- @ override
- public GraphService getGraphService ( ) {
- return graphService ;
- }
-
- @ override
public... | remove GraphService related methods from PathService |
<nb> public class DatabaseConsumerPageMapping extends ActiveWizardPage < DataTransferWi
attribute . updateMappingType ( VoidProgressMonitor . INSTANCE ) ;
} else if ( data instanceof DatabaseMappingContainer ) {
DatabaseMappingContainer container = ( DatabaseMappingContainer ) data ;
- container . setMappingTyp... | Data transfer mapping fix |
<nb> public class GlobalInspectionContextImpl implements GlobalInspectionContext {
isLocalTool = tool instanceof LocalInspectionToolWrapper ;
isDescriptorProvider = true ;
}
- else if ( tool . hasReportedProblems ( ) ) {
- hasProblems = true ;
- tool . exportResults ( root ) ;
+ else {
+ tool . updateCo... | filtering inspection tool export results fix |
<nb> public class AppleTestIntegrationTest {
}
@ test
+ @ ignore SINGLE
public void successOnAppTestPassing ( ) throws IOException {
assumeTrue ( Platform . detect ( ) == Platform . MACOS ) ;
ProjectWorkspace workspace = TestDataHelper . createProjectWorkspaceForScenario ( | Disable other flaky Apple app test integration test |
<nb> public class JobManagerITCase {
public void testExecutionWithLargeDoP ( ) {
SINGLE
- final int numberOfSubtasks = NUMBER0 ;
+ final int numberOfSubtasks = NUMBER1 ;
File inputFile1 = null ;
File inputFile2 = null ; | Reduced DoP for graph scheduling test previous version caused OutOfMemoryError |
<nb> class XMLLightweightParser {
head . append ( ch ) ;
} else if ( status == XMLLightweightParser . INIT ) {
- if ( ch != STRING0 && ch != STRING1 && ch != STRING2 && ch != STRING3 ) {
- invalidateBuffer ( ) ;
- return ;
- }
if ( ch == STRING3 ) {
status = XMLLightweightParser . HEAD ;
}
+ else ... | Fixed parsing when handling big packets |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
+
public class QProfile {
private Integer id ;
<nb> public class QProfile {
return this ;
}
+ @ checkfornull
public String parent ( ) {
return parent ;
}
- public QProfile setPa... | Fix quality flaws |
<nb> public class Setting < T > extends ToXContentToBytes {
public boolean prepareApply ( Settings settings ) {
- String newValue = settings . get ( key ) ;
- if ( newValue == null ) {
- newValue = getRaw ( settings ) ;
- }
+ final String newValue = getRaw ( settings ) ;
if ( value . equals ( newValue... | use raw value directly |
<nb> import static NAMESPACE
import static NAMESPACE ;
public class ForeachPostfixTemplate extends StringBasedPostfixTemplate {
- public ForeachPostfixTemplate ( ) {
- super ( STRING0 , STRING1 , selectorTopmost ( IS_ITERABLE_OR_ARRAY ) ) ;
+ public ForeachPostfixTemplate ( String name ) {
+ super ( name ... | Addded iter postfix template working like for one to be consistent with live templates |
<nb> public class CurrentTestFailedMarker extends RunListener {
}
@ override
- public void testRunStarted ( Description description ) throws Exception {
+ public void testStarted ( Description description ) throws Exception {
failed . set ( false ) ;
} | TEST fix CurrentTestFailedMarker to reset its state after each test |
<nb> public class ConversationActivity extends XmppActivity {
protected ConversationFragment swapConversationFragment ( ) {
ConversationFragment selectedFragment = new ConversationFragment ( ) ;
+ if ( ! isFinishing ( ) ) {
FragmentTransaction transaction = getFragmentManager ( )
. beginTransaction ( ) ; ... | trying to fix activity has been destroyed error |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import static NAMESPACE ;
<nb> import static NAMESPACE ;
COMMENT
public class RejectUsersAuthenticationHandlerTests {
- priva... | updated test case to match handler |
<nb> public class CommandLineParameters {
description = STRING0 )
String graphDirectory ;
+ @ parameter ( names = { STRING1 , STRING2 } ,
+ description = STRING3 )
+ boolean longDistance = false ;
+
@ parameter ( names = { STRING4 , STRING5 } , validateWith = AvailablePort . class ,
description = STRI... | add longDistance command line parameter |
<nb> public class PApplet extends Applet
COMMENT
COMMENT
public String dataPath ( String where ) {
- return path + File . separator + STRING0 + where ;
+ return path + File . separator + STRING0 + File . separator + where ;
} | fix bug in dataPath |
<nb> public class ExpandedActivity extends Activity {
@ override
public void onPause ( ) {
- Log . d ( TAG , STRING0 ) ;
+ Log . d ( TAG , STRING1 ) ;
super . onPause ( ) ;
mIsShowing = false ;
} | Fix bad log |
<nb> final class FragmentManagerImpl extends FragmentManager {
FragmentManagerImpl . VIEW_STATE_TAG , f . mSavedViewState ) ;
}
if ( ! f . mUserVisibleHint ) {
+ if ( result == null ) {
+ result = new Bundle ( ) ;
+ }
SINGLE
result . putBoolean ( FragmentManagerImpl . USER_VISIBLE_HINT_TAG , f . mUserVi... | Fix potential NPE when saving fragment state |
<nb> public class HeartbeatInterceptor extends AtmosphereInterceptorAdapter {
public void onDisconnect ( AtmosphereResourceEvent event ) {
cancelF ( request ) ;
}
+
+ @ override
+ public void onClose ( AtmosphereResourceEvent event ) {
+ cancelF ( request ) ;
+ }
} ) ;
} else {
return Action . CON... | KIll the associate the Future when the client disconnect or close |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
COMMENT
COMMENT
COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class OtpsRoutingRequest {
public void setDestination ( OtpsIndividual dest ) {
this . setDestination ( de... | Add setBannedRoutes to scripting request |
<nb> public class WPHtml {
out . append ( getGalleryShortcode ( ( MediaGalleryImageSpan ) style [ j ] ) ) ;
} else if ( style [ j ] instanceof WPImageSpan && ( ( WPImageSpan ) style [ j ] ) . getMediaFile ( ) . getMediaId ( ) != null ) {
out . append ( getContent ( ( WPImageSpan ) style [ j ] ) ) ;
- } else if ... | Fixed the instanceof check in WPHtml to use WPImageSpan |
<nb> public class ClassPathTest extends TestCase {
. isEmpty ( ) ;
}
+ public void testReadClassesFromFile_notJarFile ( ) throws IOException {
+ ClassLoader classLoader = ClassPathTest . class . getClassLoader ( ) ;
+ File notJar = File . createTempFile ( STRING0 , STRING1 ) ;
+ try {
+ ASSERT . that ( ... | added tests to cover non jar file case |
<nb> public abstract class InjectedLanguageManager {
public abstract List < DocumentWindow > getCachedInjectedDocuments ( @ notnull PsiFile hostPsiFile ) ;
public abstract void startRunInjectors ( @ notnull Document hostDocument , boolean synchronously ) ;
+
+ public abstract void enumerate ( @ notnull PsiEle... | expose InjectedLanguageUtil enumerate through InjectedLanguageManager |
<nb> public enum Cipher {
false ,
NUMBER0 ,
NUMBER1 ,
- new String [ ] { STRING0 } ,
+ new String [ ] { STRING1 } ,
null
) ,
SINGLE | Fix typo in JSSE name |
<nb> public class main {
. create ( STRING0 ) ;
Option allowOdexOption = OptionBuilder . withLongOpt ( STRING1 )
- . withDescription ( STRING2 )
+ . withDescription ( STRING3 +
+ STRING4 +
+ STRING5 )
. create ( STRING6 ) ;
Option dumpOption = OptionBuilder . withLongOpt ( STRING7 ) | Add additional verbage for the allow odex instructions in smali |
<nb> public class DistributionIntegrationTestRunner extends BlockJUnit4ClassRunner {
final File gradleHomeDir = file ( STRING0 ) ;
final File samplesDir = new File ( gradleHomeDir , STRING1 ) ;
File srcDir = file ( STRING2 ) ;
- final File userGuideOutputDir = new File ( srcDir , STRING3 ) ;
+ final File user... | fixed int tests for case sensitive file systems |
<nb> import static NAMESPACE ;
public class FreemarkerRendererTest {
+ @ org.junit.ignore
@ test
public void shouldRenderIfFor_oneArgPredicate ( ) throws Exception {
ExecTask task = new ExecTask ( ) ; | Ignoring FreemarkerRendererTest for now |
<nb> public class HttpObjectAggregator
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Add unit to maxContentLength javadoc of HttpObjectAggregator |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AntChangeVisitor implements XmlChangeVisitor {
. getPsi ( AntSupport . getLanguage ( ) ) ;
if ( antFile != null ) {
antFile . clearCach... | propagate psi changes to the ant toolwindow if necessary |
<nb> public class PackageListGenerator extends DefaultTask {
if ( endIndex > NUMBER0 ) {
String packageName = zipEntry . getName ( ) . substring ( NUMBER0 , endIndex ) ;
for ( String exclude : getExcludes ( ) ) {
- if ( zipEntry . getName ( ) . startsWith ( exclude + STRING0 ) ) {
+ if ( ( packageName + STRIN... | Make code more readable in PackageListGenerator |
<nb> import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
import static NAMESPACE ;
+ import static NAMESPACE ;
@ runwith ( WithTestDefaultsRunner . class )
public class SimpleTestCursorTest {
<nb> public class SimpleTestCursorTest {
cursor . close ( )... | Added getColumnIndexOrThrow and Tests for getColumnIndex to SimpleTestCursor |
<nb> public class PropsTest {
assertArrayEquals ( new String [ ] { STRING0 , STRING1 } , profiles ) ;
}
+ @ test
+ public void testChangeActiveProfile ( ) {
+ Props p = new Props ( ) ;
+
+ p . load ( STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 ) ;
+
+ p . setActiveProfiles ( STRING0 ) ;
+ as... | Added one more Props test |
<nb> import static NAMESPACE ;
public class BsonDocumentBufferSerializerTest extends MongoClientTestBase {
- BsonDocumentBufferSerializer serializer =
+ private BsonDocumentBufferSerializer serializer =
new BsonDocumentBufferSerializer ( new PowerOfTwoByteBufferPool ( NUMBER0 ) , PrimitiveSerializers . crea... | Made field private |
<nb> class HistoryCache {
}
}
- long time = System . currentTimeMillis ( ) ;
HistoryParser parser = parserClass . newInstance ( ) ;
- History history = parser . parse ( file , repository ) ;
+ History history = null ;
+ long time ;
+ try {
+ time = System . currentTimeMillis ( ) ;
+ history = pa... | Print out the filename if an error occurs while parsing history log |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
COMMENT
COMMENT
<nb> public class StubStatement implements Statement
}
COMMENT
+ @ suppresswarnings ( STRING0 )
@ override
public < T > T unwrap ( Class < T > iface ) throws SQLException
{ | Remove IDE warnings |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import static NAMESPACE ;
import static NAMESPACE ;
<nb> public ... | Failing EntryProcessor test fix |
<nb> public class IndexerClusterCheckerThread extends Periodical {
for ( NodeInfo node : indexer . cluster ( ) . getDataNodes ( ) ) {
SINGLE
final String osName = node . getJvm ( ) . getSystemProperties ( ) . get ( STRING0 ) ;
- if ( osName . startsWith ( STRING1 ) ) {
+ if ( null != osName && osName . starts... | Add null check for Elasticsearch node os name just in case |
<nb> public class AceCommandManager extends JavaScriptObject
COMMENT
var command = this . byName [ id ] ;
- if ( command == null ) {
- throw new Error ( STRING0 + id + STRING1 ) ;
- }
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( command == null )
+ return ;
SINGLE
SINGLE | don t throw JS exception on non existent commands too intrusive |
<nb> public class EnglishGrammaticalRelations {
SINGLE
STRING0 ,
SINGLE
- STRING1 ,
- STRING2 ,
+ STRING3 ,
SINGLE
STRING4 , SINGLE
STRING5 , SINGLE | Combine two almost identical tregex expressions |
<nb> public abstract class BaseCheckTestSupport
}
@ override
public void auditStarted ( AuditEvent evt ) { }
- @ override
- public void fileFinished ( AuditEvent evt ) { }
- @ override
- public void fileStarted ( AuditEvent evt ) { }
}
protected final ByteArrayOutputStream baos = new ByteArrayOutput... | Remove redundant overriding methods |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public abstract class MessageInput implements Stoppable {
super ( name , exclusive , linkToDocs ) ;
}
}
+
+ @ override
+ public ... | Override MessageInput toString method |
<nb> public class Env {
return value ;
}
+ public String get ( String key , String defaultValue ) {
+ String result = get ( key ) ;
+ return result != null ? result : defaultValue ;
+ }
+
private static String asEnvKey ( String key ) {
return key . replace ( STRING0 , STRING1 ) . toUpperCase ( ) ;
... | Add default value to env |
<nb> public class ChatWindowManager
ChatWindow chatWindow ;
if ( Constants . TABBED_CHAT_WINDOW )
+ {
+ if ( this . chatWindow == null )
+ {
+ this . chatWindow = new ChatWindow ( mainFrame ) ;
+
+ GuiActivator . getUIService ( )
+ . registerExportedWindow ( this . chatWindow ) ;
+ }
+
chatWin... | fix open multi user chat |
<nb> public class MessageTimeoutTest extends ActorBaseTest
UUID uuid = someActor . getUniqueActivationId ( NUMBER0 ) . get ( ) ;
assertEquals ( uuid , someActor . getUniqueActivationId ( ) . get ( ) ) ;
Future < UUID > call = someActor . getUniqueActivationId ( TimeUnit . SECONDS . toNanos ( NUMBER1 ) ) ;
- awa... | Removing unnecessary wait |
<nb> public class ListKeyValueSource < V >
PartitionService ps = nei . getPartitionService ( ) ;
Data data = ss . toData ( listName , StringAndPartitionAwarePartitioningStrategy . INSTANCE ) ;
int partitionId = ps . getPartitionId ( data ) ;
- if ( ! ps . getPartitionOwner ( partitionId ) . equals ( thisAddress... | Fixed possbile NPE PartitionService getPartitionOwner pid may return null |
<nb> public interface FunctionFormatSpec {
COMMENT
COMMENT
- COMMENT
COMMENT
String afterArgs ( Function function ) ;
<nb> public class ThreadPools {
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> package NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT ... | Fix some javadoc warnings |
<nb> final class HttpTunnelingClientSocketPipelineSink extends AbstractChannelSink {
new IoWorkerRunnable (
new ThreadRenamingRunnable (
new HttpTunnelWorker ( channel ) ,
- STRING0 +
+ STRING1 +
channel . getId ( ) + STRING2 +
channel . getLocalAddress ( ) + STRING3 +
channel . getRemoteAddress ( ) + S... | Fixed wrong thread name |
<nb> public class ZenFooter extends LinearLayout {
public void onConfigurationChanged ( ) {
mSpTexts . update ( ) ;
+ Util . setText ( mEndNowButton , mContext . getString ( R . string . volume_zen_end_now ) ) ;
}
} | Reload the EndNowButton label |
<nb> import NAMESPACE ;
class GithubUser {
@ notnull private final String myLogin ;
- private int myPrivateRepos ;
- private int myMaxPrivateRepos ;
+ private final int myPrivateRepos ;
+ private final int myMaxPrivateRepos ;
GithubUser ( @ notnull String login , int privateRepos , int maxPrivateRepos... | add final keyword |
<nb> public class DirectedMultiGraph < V , E > implements Graph < V , E > COMMENT {
}
}
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public Map < V , List < E > > toMap ( ) {
+ Map < V , List < E > > map = new HashMap < V , List < E > > ( ) ;
+ for ( V vertex : getAllVertices ( ) ) {
+ ma... | Add a test for graph consistency begin implementing interface for entity linking |
<nb> public class Process {
public static final int NFC_UID = NUMBER0 ;
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final int MEDIA_RW_GID = NUMBER1 ;
+
+ COMMENT
COMMENT
COMMENT
COMMENT | Add Process MEDIA_RW_GID constant |
<nb> public class DTree extends Iced {
boolean featureAllowed = isFeatureAllowed ( ) ;
if ( ! featureAllowed ) {
- sb . append ( STRING0
+ sb . append ( STRING1 ) ;
sb . append ( STRING2 ) ;
sb . append ( STRING3 ) ;
sb . append ( STRING4 ) ; | fix build break |
<nb> public abstract class PsiFileImpl extends ElementBase implements PsiFileEx , PsiF
public ASTNode findTreeForStub ( StubTree tree , StubElement stub ) {
final Iterator < StubElement < ? > > stubs = tree . getPlainList ( ) . iterator ( ) ;
- stubs . next ( ) ;
- return findTreeForStub ( calcTreeElement ( )... | Allow indexing file level stubs |
<nb> public class Http11AprProcessor implements ActionHook {
recycle ( ) ;
return SocketState . CLOSED ;
} else if ( ! comet ) {
- recycle ( ) ;
endpoint . getPoller ( ) . add ( socket ) ;
+ recycle ( ) ;
return SocketState . OPEN ;
} else {
endpoint . getCometPoller ( ) . add ( socket ) ; | Fix oops when keeping alive a gracefully closed Comet connection |
<nb> public class LookupCellRenderer implements ListCellRenderer {
final SimpleColoredComponent nameComponent ) {
final SimpleTextAttributes base = new SimpleTextAttributes ( style , foreground ) ;
- final String prefix = myLookup . itemPattern ( item ) ;
+ final String prefix = item instanceof EmptyLookupIte... | don t render empty lookup items |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ @ ignore
public class MultiJvmWithZooKeeperTest extends MultiJvmTest
{
private static final File BASE_ZOO_KEEPER_DATA_DIR = | Ignores this test for now zoo keeper is not stable in test environment yet |
<nb> public class StethoTree extends Timber . Tree {
logLevel = Console . MessageLevel . WARNING ;
break ;
case Log . ERROR :
+ case Log . ASSERT :
logLevel = Console . MessageLevel . ERROR ;
break ;
default : | Display logs with ASSERT level as ERROR messages in Chrome console |
<nb> public class StatFilterAfterResetTest extends TestCase {
Histogram histogram = sqlStat . getExecuteAndResultHoldTimeHistogram ( ) ;
Assert . assertEquals ( STRING0 , NUMBER0 ,
- histogram . getValue ( NUMBER1 ) + histogram . getValue ( NUMBER0 ) + histogram . getValue ( NUMBER2 ) ) ;
+ histogram . getSum... | add testcase bug fixed |
<nb> final class DefaultChannelPipeline implements ChannelPipeline {
if ( m instanceof ReferenceCounted ) {
( ( ReferenceCounted ) m ) . release ( ) ;
}
+ logger . debug (
+ STRING0 +
+ STRING1 , m ) ;
}
logger . warn (
STRING2 +
<nb> final class DefaultChannelPipeline implements ChannelPipeline {
... | add more debug info about discarded message |
<nb> public class Imps {
int OTR_TURNED_ON_BY_USER = NUMBER0 ;
COMMENT
int OTR_TURNED_ON_BY_BUDDY = NUMBER1 ;
+
+ COMMENT
+ int INCOMING_ENCRYPTED = NUMBER2 ;
+ COMMENT
+ int INCOMING_ENCRYPTED_VERIFIED = NUMBER3 ;
+
+ COMMENT
+ int OUTGOING_ENCRYPTED = NUMBER4 ;
+ COMMENT
+ int OUTGOING_ENCRY... | add new message type flags for encrypted message type |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.