diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class PerformanceTests
}
@ test
- public void createNodes ( ) throws Exception
+ public void createFewNodesInManyTransactions ( ) throws Exception
+ {
+ testJob ( new CommonJobs . PerformanceCreateNodesJob ( NUMBER0 , NUMBER1 ) ) ;
+ }
+
+ @ test
+ public void createManyNodesInFewTrans... | Added one more test |
<nb> public class UnsafeSlice extends AbstractSlice
return false ;
}
+ if ( ! ( slice instanceof UnsafeSlice ) ) {
+ return slice . equals ( this ) ;
+ }
+
UnsafeSlice that = ( UnsafeSlice ) slice ;
int offset = NUMBER0 ;
int length = size ; | make unsafe slice comparable with bytearrayslice |
<nb> public class ProjectFilesystem {
COMMENT
COMMENT
COMMENT
- public boolean isSymLink ( Path path ) throws IOException {
+ public boolean isSymLink ( Path path ) {
return Files . isSymbolicLink ( getPathForRelativePath ( path ) ) ;
}
<nb> public class FakeProjectFilesystem extends ProjectFilesystem... | Remove exception declaration |
<nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy {
status = STATUS . CLOSING ;
SINGLE
- engine . getConnectionManager ( ) . closePool ( getCurrentServerURL ( ) ) ;
-
+ for ( String url : serverURLs ) {
+ engine . getConnectionManager ( ) . closePool ( url ) ;
+ }
sbTr... | fixed closing of all pools for the current storage |
<nb> public class SetupBlog {
private String getmXmlrpcByUserEnteredPath ( String baseUrl ) {
String xmlRpcUrl = null ;
- if ( ! UrlUtils . isValidUrl ( baseUrl ) ) {
+ if ( ! UrlUtils . isValidUrlAndHostNotNull ( baseUrl ) ) {
AppLog . e ( T . NUX , STRING0 + baseUrl ) ;
mErrorMsgId = R . string . invali... | rename isValidUrl to isValidUrlAndHostNotNull |
<nb> public abstract class DB {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
@ deprecated
<nb> public abstract class DB {
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
@ deprecated
<nb> public abstract class DB {
COMMENT
COMMENT
COMMENT
+ COMMENT ... | Added reference links to deprecated auth doctags |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
COMMENT
<nb> public abstract class Service < T extends Configuration > extends AbstractService < T
protected Service ( String name ) {
super ( name ) ;
addBundle ( new JavaBundle ( ) ) ;
+ checkForSca... | Throw an exception if a Scala class tries to extend Service |
<nb> public class MaxentTaggerITest extends TestCase {
try {
for ( String outputLine ; ( outputLine = reader . readLine ( ) ) != null ; ) {
outputStrings . add ( outputLine ) ;
- SINGLE
- SINGLE
- if ( emulateStdin )
- reader . readLine ( ) ;
}
} catch ( IOException e ) {
throw new RuntimeException ... | Removing the extra blank lines makes it so we don t need to itest for those now |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public abstract class XBreakpointsTestCase extends XDebuggerTestCase { ... | registering RemoteFileManager service implementation |
<nb> public class MarkupBuilder extends BuilderSupport {
COMMENT
COMMENT
COMMENT
- public Object getMkp ( ) {
+ public MarkupBuilderHelper getMkp ( ) {
return new MarkupBuilderHelper ( this ) ;
} | Make MarkupBuilder getMkp return MarkupBuilderHelper instead of Object |
<nb> public class Watchman {
ExecutableFinder exeFinder ,
Console console ,
Clock clock ) throws InterruptedException {
+ LOG . info ( STRING0 + rootPath ) ;
try {
String watchman = exeFinder . getExecutable ( WATCHMAN , env ) . toAbsolutePath ( ) . toString ( ) ;
Optional < Map < String , String > > resu... | Handle warnings from watchman appropriately |
<nb> public class TestJSONObject extends TestCase
Map < String , Object > map = new HashMap < String , Object > ( ) ;
map . put ( STRING0 , STRING1 ) ;
assertEquals ( STRING2 , JSONObject . wrap ( map ) . toString ( ) ) ;
- assertEquals ( STRING3 ,
- JSONObject . wrap ( new javax . print . PrintException ( ) ... | Changed Exception test to IOException |
<nb> public class SwissKnife {
return Short . valueOf ( value ) ;
}
- public static Date toDate ( String value ) {
- if ( value != null && value . length ( ) > NUMBER0 ) {
+ public static Date toDate ( String value ) {
+ if ( value != null && value . length ( ) > NUMBER0 ) {
return new LocalDateTime ( v... | Added whitespaces as requested by raphaelbauer |
<nb> public final class GenMapRedUtils {
if ( mrWork . getReduceWork ( ) != null ) {
mrWork . getReduceWork ( ) . setGatheringStats ( true ) ;
}
- } else {
+ } else if ( currTask . getWork ( ) instanceof SparkWork ) {
+ SparkWork work = ( SparkWork ) currTask . getWork ( ) ;
+ for ( BaseWork w : work . ge... | addStatsTask only assumes either MapredWork or TezWork Chao via Brock Spark Branch |
<nb> public class CapturedParamDesc {
}
- public static CapturedParamDesc createDesc ( CapturedParamOwner containingLambdaInfo , String fieldName , Type type ) {
+ public static CapturedParamDesc createDesc ( @ notnull CapturedParamOwner containingLambdaInfo , @ notnull String fieldName , @ notnull Type type ... | Added nullability annotations |
<nb> public abstract class Model extends Lockable < Model > {
String cns [ ] = classNames ( ) ;
return cns == null ? NUMBER0 : cns . length ;
}
+ COMMENT
+ public int nfeatures ( ) { return _names . length - NUMBER0 ; }
COMMENT
public ConfusionMatrix cm ( ) { return null ; } | Model API now provides number of input features |
<nb> public class FiltersRadioGroup extends RadioGroup implements AnimationListener {
Utils . checkPhotoProcessingThread ( ) ;
Bitmap bitmap = mUpload . getThumbnailImage ( mContext ) ;
- final Bitmap filteredBitmap = PhotoProcessing . filterPhoto ( bitmap , mFilter . getId ( ) ) ;
- bitmap . recycle ( ) ;
... | Fix FC for using recycled bitmap |
<nb> public class MySiteFragment extends Fragment
}
@ override
- public void onPause ( ) {
- super . onPause ( ) ;
- if ( mFabView . getVisibility ( ) == View . VISIBLE ) {
- AniUtils . showFab ( mFabView , false ) ;
- }
- }
-
- @ override
public void onResume ( ) {
super . onResume ( ) ;
... | Keep FAB on pause slide in on first creation |
<nb> public final class JsonAuthenticationMethodConfigurationProvider implements Auth
this . authnMethods = new TreeSet < > ( ) ;
}
- COMMENT
- COMMENT
- COMMENT
+
@ override
public boolean contains ( final String name ) {
return get ( name ) != null ;
}
- COMMENT
- COMMENT
- COMMENT
@ o... | Added translators for authn methods |
<nb> public abstract class ByteToByteEncoder extends ChannelOutboundByteHandlerAdapte
ByteBuf in = ctx . outboundByteBuffer ( ) ;
ByteBuf out = ctx . nextOutboundByteBuffer ( ) ;
- int oldOutSize = out . readableBytes ( ) ;
while ( in . readable ( ) ) {
int oldInSize = in . readableBytes ( ) ;
try { | Remove unused local variable |
<nb> public class DescriptorDeserializer {
@ notnull AnnotationDeserializer annotationDeserializer
) {
return new DescriptorDeserializer ( storageManager ,
- new TypeDeserializer ( storageManager , null , nameResolver , descriptorFinder , STRING0 + containingDeclaration , NONE ) ,
+ new TypeDeserializer ( sto... | Do not include DescriptorDeclaration toString in debug message |
<nb> public class SuspendManagerImpl implements SuspendManager {
myDebugProcess . logThreads ( ) ;
final ThreadReferenceProxyImpl thread = getThread ( ) ;
- if ( thread != null && ! thread . isCollected ( ) ) {
- LOG . assertTrue ( thread . isSuspended ( ) , STRING0 ) ;
+ if ( thread != null ) { SINGLE
+ ... | rearrange assertion condition to eliminate false alarms |
<nb>
package NAMESPACE ;
- import NAMESPACE ;
-
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
-
public class UtilsTest
extends TestCase
{ | removed unused imports |
<nb> public abstract class CmdLineTool implements Runnable {
final Set < Plugin > plugins = loadPlugins ( pluginPath ) ;
final PluginBindings pluginBindings = new PluginBindings ( plugins , capabilities ( ) ) ;
for ( final Plugin plugin : plugins ) {
- for ( final PluginModule pluginModule : plugin . modules ( ... | Exclude config beans of incompatible plugins |
<nb> public abstract class Mustache {
this . root = root ;
}
+ public File getRoot ( ) {
+ return root ;
+ }
+
public void setPath ( String path ) {
this . path = path ;
}
<nb> public class Scope extends HashMap {
}
}
} catch ( Exception e ) {
- logger . warning ( STRING0 + name + STRING1 ... | expose the root used for the mustache |
<nb> public class PortalImpl implements Portal {
value = GetterUtil . getShortValues ( values ) ;
}
else if ( type == ExpandoColumnConstants . STRING_ARRAY ) {
- value = uploadPortletRequest . getParameterValues ( name ) ;
+ String [ ] values = uploadPortletRequest . getParameterValues ( name ) ;
+
+ if (... | Can not get String array from Expandovalue with Group of Text Values in case of Custom Fields for DM |
<nb> public class StdErrLog implements Logger
buffer . append ( STRING0 ) ;
format ( buffer , elements [ i ] . toString ( ) ) ;
}
+
+ Throwable cause = thrown . getCause ( ) ;
+ if ( cause != null && cause != thrown )
+ {
+ buffer . append ( STRING1 ) ;
+ format ( buffer , cause ) ;
+ }
}
}
... | readded unwrapping of caused by exceptions |
<nb> public class ToroQueryCommandProcessor implements QueryCommandProcessor {
@ override
public CountReply count ( CountRequest request ) throws Exception {
- if ( ! request . getDatabase ( ) . equals ( databaseName ) ) {
- LOGGER . warn ( STRING0 , STRING1 , request . getDatabase ( ) ) ;
- return new Coun... | main Removed the unusual behaviour of count command |
<nb> public final class ViewRootImpl implements ViewParent ,
COMMENT
COMMENT
void outputDisplayList ( View view ) {
- RenderNode renderNode = view . updateDisplayListIfDirty ( ) ;
- renderNode . output ( ) ;
+ view . mRenderNode . output ( ) ;
}
COMMENT | Don t update DisplayLists when dumping |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaCoverageEngine extends CoverageEngine {
} ) ;
}
+ @ override
+ public boolean isReportGenerationAvailable ( @ not... | don t require Sdk availability for all CoverageEngines |
<nb> public class UpdateTests extends AbstractNodesTests {
. endObject ( ) )
. setRefresh ( true )
. execute ( ) . actionGet ( ) ;
+ clusterHealth = client . admin ( ) . cluster ( ) . prepareHealth ( ) . setWaitForGreenStatus ( ) . execute ( ) . actionGet ( ) ;
+ assertThat ( clusterHealth . timedOut ( ) , eq... | improve update test to wait for green cluster state |
<nb> public final class MenuItemImpl implements SupportMenuItem {
@ override
public String toString ( ) {
- return mTitle . toString ( ) ;
+ return mTitle != null ? mTitle . toString ( ) : null ;
}
void setMenuInfo ( ContextMenuInfo menuInfo ) { | Fix possible NPE in MenuItemImpl toString |
<nb>
package NAMESPACE ;
+ import NAMESPACE ;
+
public class UnderDevelopmentGradleDistribution extends DefaultGradleDistribution {
public UnderDevelopmentGradleDistribution ( ) {
<nb> public class UnderDevelopmentGradleDistribution extends DefaultGradleDistributio
) ;
}
+ @ override
+ publi... | Changed UnderDevelopmentGradleDistribution executer to return whatever executer we re using to run the tests rather than always forking |
<nb> public final class WindowManagerImpl extends WindowManagerEx implements Applicat
frame . setFileTitle ( null , null ) ;
myProject2Frame . remove ( project ) ;
- Disposer . dispose ( frame . getStatusBar ( ) ) ;
- frame . dispose ( ) ;
+ if ( myProject2Frame . isEmpty ( ) ) {
+ myProject2Frame . put (... | reusing project frames |
<nb> public class FragmentActivity extends Activity implements OnCreatePanelMenuListe
boolean mReallyStopped ;
boolean mRetaining ;
- boolean mOptionsMenuInvalidated ;
+ SINGLE
boolean mCheckedForLoaderManager ;
boolean mLoadersStarted ;
<nb> public class FragmentActivity extends Activity implements O... | Properly send old style invalidate to new style |
<nb> public class Mongo {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | docs driver compat add note about MongoOptions immutability |
<nb> public interface EnterpriseServerSettings
@ suppresswarnings ( STRING0 ) SINGLE
@ description ( STRING1 )
- Setting < Boolean > browser_storeCredentials = setting ( STRING2 , BOOLEAN , TRUE ) ;
+ Setting < Boolean > browser_retainConnectionCredentials = setting ( STRING3 , BOOLEAN , TRUE ) ;
@ suppre... | Rename config attribute for retaining creds in browser |
<nb> public final class MediaCodecInfo {
SINGLE
SINGLE
SINGLE
- if ( Integer . valueOf ( NUMBER0 ) . equals ( map . get ( STRING0 ) ) ) {
+ if ( map . containsKey ( STRING0 ) ) {
if ( widths != null ) {
mSmallerDimensionUpperLimit =
Math . min ( widths . getUpper ( ) , heights . getUpper ( ) ) ; | allow feature can swap width height to be optional |
<nb> public class InputMethodService extends AbstractInputMethodService {
ic . sendKeyEvent ( new KeyEvent ( eventTime , eventTime ,
KeyEvent . ACTION_DOWN , keyEventCode , NUMBER0 , NUMBER0 , KeyCharacterMap . VIRTUAL_KEYBOARD , NUMBER0 ,
KeyEvent . FLAG_SOFT_KEYBOARD | KeyEvent . FLAG_KEEP_TOUCH_MODE ) ) ;
- ... | Fix downTime of InputMethodService sendDownUpKeyEvents method |
<nb> public class WebSocketPolicy
COMMENT
private boolean autoFragment = true ;
+ private int maxPayloadSize ;
+ private int autoFragmentSize ;
+
COMMENT
COMMENT
COMMENT | Adding policy maxPayloadSize and autoFragmentSize |
<nb> class WXDomStatement {
}
return ;
}
- parent . remove ( domObject ) ;
clearRegistryForDom ( domObject ) ;
+ parent . remove ( domObject ) ;
mNormalTasks . add ( new IWXRenderTask ( ) {
<nb> class WXRenderStatement {
return component ;
}
WXVContainer parent = component . getParent ( ) ;
... | Android Fix UnRemved dom and component in registry |
<nb> public class ActiveRepairService
private final ConcurrentMap < UUID , ParentRepairSession > parentRepairSessions ;
- private CountDownLatch prepareLatch = null ;
COMMENT
COMMENT
COMMENT
<nb> public class ActiveRepairService
{
UUID parentRepairSession = UUIDGen . getTimeUUID ( ) ;
registerPare... | Move prepareLatch to local scope |
<nb> import NAMESPACE ;
public class BasicAvgWithKryo {
SINGLE
class AvgCount {
+ public AvgCount ( ) {
+ total_ = NUMBER0 ;
+ num_ = NUMBER0 ;
+ }
public AvgCount ( int total , int num ) {
total_ = total ;
num_ = num ; | Add the required zero argument constructor for Kryo serilization |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class Corrupte... | TEST use the correct translog setting |
<nb> public abstract class HttpMessageDecoder extends ReplayingDecoder < HttpMessageDec
return reset ( ) ;
}
case READ_FIXED_LENGTH_CONTENT : {
- System . out . println ( STRING0 ) ;
SINGLE
readFixedLengthContent ( buffer ) ;
- System . out . println ( STRING1 ) ;
return reset ( ) ;
}
COMMENT
<nb>... | Removed System out printlns |
<nb> public class LetterRecognizer {
case NUMBER0 :
classifier = readV1 ( in ) ;
break ;
+ default :
+ Log . d ( LOG_TAG , STRING0 + version +
+ STRING1 ) ;
+ break ;
}
} catch ( IOException e ) {
<nb> public abstract class AbsListView extends AdapterView < ListAdapter > implements Te
GesturesPr... | Fix another crash in Gestures this one caused by the data file |
<nb> public final class PoolUtilities
setNetworkTimeout ( connection , TimeUnit . SECONDS . toMillis ( NUMBER0 ) , true ) ;
connection . close ( ) ;
}
- catch ( Exception e ) {
+ catch ( Throwable e ) {
LOGGER . debug ( STRING0 , poolName , connection . toString ( ) , e ) ;
}
}
<nb> public final class... | Don t reset isNetworkTimeoutSupported here but do log a warning on exception |
<nb> public class WXEnvironment {
COMMENT
COMMENT
- public static String JS_LIB_SDK_VERSION = STRING0 ;
+ public static String JS_LIB_SDK_VERSION = STRING1 ;
- public static String WXSDK_VERSION = STRING2 ;
+ public static String WXSDK_VERSION = STRING3 ;
public static Application sApplication ;
pub... | android update wxenvironment java modify version |
<nb>
COMMENT
package NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
COMMENT
<nb> public class MutableLongValue extends Number implements Serializable , Comparable
public int compareTo ( MutableLongValue o ) {
return Long . compare ( value , o . value ) ;
}
+
+ @ o... | Adding missing equals and hashCode methods to MutableLongValue |
<nb> public class InspectionResultsView extends JPanel implements Disposable , Occuren
@ override
@ nullable
protected Navigatable createDescriptorForNode ( DefaultMutableTreeNode node ) {
+ if ( node instanceof InspectionTreeNode && ( ( InspectionTreeNode ) node ) . isResolved ( ) ) {
+ return null ;
+ }
... | skip excluded nodes during prev next occurrence navigation |
<nb> public class DcorefBenchmarkSlowITest extends TestCase {
String currentDir = System . getProperty ( STRING0 ) ;
System . err . println ( STRING1 + currentDir ) ;
- String expectedResults = IOUtils . slurpFile ( STRING2 ) ;
+ String expectedResults = IOUtils . slurpFile ( STRING3 ) ;
String [ ] corefA... | If you change something at least run it once before checking it in come on |
<nb> public class RecyclerView extends ViewGroup implements ScrollingView {
Log . d ( TAG , STRING0 + position + STRING1
+ STRING2 ) ;
}
- holder = getRecycledViewPool ( )
- . getRecycledView ( mAdapter . getItemViewType ( offsetPosition ) ) ;
+ holder = getRecycledViewPool ( ) . getRecycledView ( type ) ; ... | Reduces the number of calls to getItemViewType |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
import NAMESPACE ;
<nb>
+ COMMENT
+ COMMENT
+ COMMENT... | Added license header |
<nb>
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class AllEncompassingFormHttpMessageConverter extends FormHttpMessageConv
public AllEncompassingFormHttpMessageConverter ( ) {
addPartConverter ( new SourceHttpMessageConverter < Source > ( ) ) ;
- if ( jaxb2Present && ! jackson2... | Allow JAXB to be registered next to plain Jackson |
<nb> public class AIMSICD extends FragmentActivity implements AsyncResponse {
public void run ( ) {
Log . d ( TAG , STRING0 ) ;
int lastIcon = Icon . getIcon ( Icon . Type . valueOf ( iconType ) ) ;
- mActionBar . setIcon ( lastIcon ) ;
while ( isViewingGUI ) {
final int thisIcon = Icon . getIcon ( Icon . T... | Removed some redudant icon update code |
<nb> import NAMESPACE ;
public class TezRuntimeEnvironment {
private static int DEFAULT_PAGE_SIZE = NUMBER0 ;
- private static int DEFAULT_NUM_SLOTS = NUMBER1 ;
private final IOManager ioManager ;
private final MemoryManager memoryManager ;
public TezRuntimeEnvironment ( long totalMemory ) {
- int... | tez Fix initialization of MemoryManager |
<nb> public class CustomDataSetTest extends ContextTestSupport {
public void assertMessageExpected ( DataSetEndpoint dataSetEndpoint , Exchange expected , Exchange actual , long index ) throws Exception {
SINGLE
Predicate < Exchange > predicate = PredicateBuilder . isEqualTo ( expression , ExpressionBuilder . con... | removed some unnecessary logging when running the tests |
<nb> public final class LocalizedMessage
final LocalizedMessage lt = ( LocalizedMessage ) aOther ;
if ( getLineNo ( ) == lt . getLineNo ( ) ) {
if ( getColumnNo ( ) == lt . getColumnNo ( ) ) {
- return mKey . compareTo ( lt . mKey ) ;
+ return getMessage ( ) . compareTo ( lt . getMessage ( ) ) ;
}
return ... | Fixed bug in which a check logs multiple LocalizedMessages with identical |
<nb> class PathPrefixPredicate implements Predicate {
public boolean resolve ( final HttpServerExchange value ) {
final String relativePath = value . getRelativePath ( ) ;
PathMatcher . PathMatch < Boolean > result = pathMatcher . match ( relativePath ) ;
- return result . getValue ( ) == Boolean . TRUE ;
+
... | Add ability to get remaining path |
<nb> public abstract class CompilerTestCase extends TestCase {
COMMENT
protected CompilerOptions getOptions ( CompilerOptions options ) {
options . setLanguageIn ( acceptedLanguage ) ;
+ options . setLanguageOut ( languageOut ) ;
SINGLE
SINGLE
<nb> public abstract class CompilerTestCase extends TestCase... | Set the languageOut in getOptions so that it happens for all tests |
<nb> public final class CoreMetrics {
COMMENT
COMMENT
COMMENT
- public static final Metric FALSE_POSITIVE_ISSUES = new Metric . Builder ( FALSE_POSITIVE_ISSUES_KEY , STRING0 , Metric . ValueType . INT )
- . setDescription ( STRING0 )
+ public static final Metric FALSE_POSITIVE_ISSUES = new Metric . Builder ... | Fix type in false positive issues metric name |
<nb> public class GitUnstashDialog extends DialogWrapper {
COMMENT
public GitUnstashDialog ( final Project project , final List < VirtualFile > roots , final VirtualFile defaultRoot ) {
super ( project , true ) ;
+ setModal ( false ) ;
myProject = project ;
myVcs = GitVcs . getInstance ( project ) ;
setTi... | git Make GitUnstashDialog non modal |
<nb> public class FragmentShader extends AShader {
{
super . initialize ( ) ;
- addPrecisionSpecifier ( DataType . FLOAT , Precision . MEDIUMP ) ;
+ addPrecisionQualifier ( DataType . FLOAT , Precision . MEDIUMP ) ;
SINGLE
<nb> public class VertexShader extends AShader {
{
super . initialize ( ) ;... | Refactored the addPrecisionSpecifier to addPrecisionQualifier to comply with OpenGL jargon |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
<nb> public class RouteViewHandler {
args [ i ] = response . raw ( ) ;
} else if ( paramTypeClazz . equals ( HttpSession . class ) ) {
args [ i ] = request . raw ( ) . getSessio... | add fileItem Param |
<nb> public class Splash extends JDialog implements StartupProgress {
if ( Registry . is ( STRING0 ) ) {
ApplicationInfoEx infoEx = ApplicationInfoEx . getInstanceEx ( ) ;
if ( infoEx instanceof ApplicationInfoImpl ) {
- offsetX = ( ( ApplicationInfoImpl ) infoEx ) . getProgressX ( ) ;
+ offsetX = Math . max ... | set minimum X offset for License text |
<nb> public class WheelJoint extends Joint {
}
COMMENT
- private boolean isMotorEnabled ( ) {
+ public boolean isMotorEnabled ( ) {
return joint . isMotorEnabled ( ) ;
}
<nb> public class WheelJoint extends Joint {
COMMENT
COMMENT
- private boolean isMotorEnabled ( ) {
+ public boolean isMot... | Make isMotorEnabled public |
<nb> import NAMESPACE ;
COMMENT
@ state ( Scope . Benchmark )
public class HeadersBenchmark {
- @ param ( { STRING0 , STRING1 , STRING2 , STRING3 } )
+ @ param ( { STRING4 , STRING5 , STRING0 , STRING1 } )
public int headerCount ;
private final AsciiMarshaller < String > keyMarshaller = new AsciiMarshal... | use more realistic header counts in benchmark |
<nb> public class AUC extends Func {
precision = null ;
recall = null ;
specificity = null ;
+ mcc = null ;
max_per_class_error = null ;
threshold_for_criteria = null ;
F1_for_criteria = null ;
<nb> public class AUC extends Func {
sb . append ( STRING0 + STRING1 ) ;
sb . append ( STRING0 + STRING2 )... | Display MCC in Mouse Over JavaScript |
<nb> public class DataFormatClause < T extends ProcessorDefinition < ? > > {
dataFormat . setMapping ( mapping ) ;
dataFormat . setStreamName ( streamName ) ;
dataFormat . setEncoding ( encoding ) ;
- dataFormat . setIgnoreInvalidRecords ( ignoreInvalidRecords ) ;
+ dataFormat . setIgnoreUnidentifiedRecords (... | Fixed parameter unusued in beanio java dsl |
<nb> public class ClientConfig {
List < InetSocketAddress > addressList = new ArrayList < InetSocketAddress > ( NUMBER0 ) ;
private Credentials credentials ;
private int connectionTimeout = NUMBER1 ;
-
private int initialConnectionAttemptLimit = NUMBER2 ;
private int reconnectionAttemptLimit = NUMBER2 ;
p... | Updated ClientConfig for spring module |
<nb> public class WalletAppKit extends AbstractIdleService {
for ( PeerAddress addr : peerAddresses ) vPeerGroup . addAddress ( addr ) ;
vPeerGroup . setMaxConnections ( peerAddresses . length ) ;
peerAddresses = null ;
- } else if ( params != RegTestParams . get ( ) ) {
+ } else if ( params != RegTestParams ... | don t add DNS discovery in WalletAppKit when Tor is active |
<nb>
COMMENT
package NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
public class SvnPage extends VersionControlPage
<nb> public class SvnPage extends VersionControlPage
@ override
protected String guessRepoDir ( String url )
{
- String guess = FileSystemItem . createFile ( url ) . getStem (... | improved svn directory guessing logic |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- class TransformAMDToCJSModule implements CompilerPass {
+ public final class TransformAMDToCJSModule implements CompilerPass {
@ visiblefortesting
static final DiagnosticType UNSUPPORTED_DEFINE_SIGNATURE_ERROR =
<nb> class TransformAMDToCJSModule imple... | Make TransformAMDToCJSModule public for ClojureScript AMD module support |
<nb> public class AttachJsDocs {
return res ;
}
}
+ int finpos = t . getFinallyPosition ( ) ;
+ if ( finpos != - NUMBER0 ) {
+ if ( capos < finpos ) {
+ return new NodePos ( n , napos ) ;
+ }
+ res = attachComment ( t . getFinallyBlock ( ) , napos ) ;
+ if ( res != null ) {
+ return res ;
+ }
... | attach jsdoc comments inside finally nodes |
<nb> public class DeepLearningGradientCheck extends TestUtil {
Distribution . Family . multinomial ,
} ) {
for ( DeepLearningParameters . Activation act : new DeepLearningParameters . Activation [ ] {
- DeepLearningParameters . Activation . ExpRectifier ,
- SINGLE
- SINGLE
+ SINGLE
+ DeepLearningParamet... | Make DLGradientCheck JUnit pass again |
<nb> public class ModuleManagerImpl implements ModuleManager {
@ override
public Module getActiveModule ( String id ) {
String normalisedName = UriUtil . normalise ( id ) ;
- return activeModules . get ( normalisedName ) ;
+ Module module = activeModules . get ( normalisedName ) ;
+ if ( null == module ) { ... | log missing modules at error level |
<nb> public class ForkingTaskRunner implements TaskRunner , TaskLogStreamer
command . add ( statusFile . toString ( ) ) ;
String nodeType = task . getNodeType ( ) ;
if ( nodeType != null ) {
- command . add ( String . format ( STRING0 , nodeType ) ) ;
+ command . add ( STRING1 ) ;
+ command . add ( nodeType... | Fix pass down of nodeType |
<nb> public class MultiUpstreamRowReceiver implements RowReceiver , RowDownstream {
private final RowReceiver delegate ;
private final List < ResumeHandle > resumeHandles = Collections . synchronizedList ( new ArrayList < ResumeHandle > ( ) ) ;
private final AtomicInteger activeUpstreams = new AtomicInteger ( NUM... | MultiUpstreamRowReceiver must not call prepare on its delegate |
<nb> public class NepheleMiniCluster {
GlobalConfiguration . getLong ( ConfigConstants . TASK_MANAGER_NETWORK_BUFFER_SIZE_KEY ,
ConfigConstants . DEFAULT_TASK_MANAGER_NETWORK_BUFFER_SIZE ) ;
- memorySize = memorySize - bufferMem ;
+ memorySize = memorySize - ( bufferMem * numTaskManager ) ;
SINGLE
memor... | Fix simple error in local execution memory estimation |
<nb> public class DBMakerTest {
DBMaker . newFileDB ( folderDoesNotExist ) . make ( ) ;
}
+ @ test ( expected = IOError . class )
public void nonExistingFolder3 ( ) {
DBMaker . newFileDB ( folderDoesNotExist ) . mmapFileEnable ( ) . make ( ) ;
} | Fix single test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class SmaliClass extends SmaliStubBasedPsiElement < SmaliClassStub > impleme
}
String expectedPath = STRING0 + getName ( ) + ST... | Fix NPE in SmaliClass setName |
<nb> public abstract class AdapterView < T extends Adapter > extends ViewGroup {
}
event . setItemCount ( getCount ( ) ) ;
event . setCurrentItemIndex ( getSelectedItemPosition ( ) ) ;
- event . setFromIndex ( mFirstPosition ) ;
- event . setToIndex ( mFirstPosition + getChildCount ( ) ) ;
+ if ( getChildCo... | AbsListView does not populate accessibility events correctly |
<nb> public class SpringProfileDocumentMatcher implements DocumentMatcher {
return result . toString ( ) ;
}
+ COMMENT
+ COMMENT
+ COMMENT
enum ProfileType {
POSITIVE , NEGATIVE
} | Fix checkstyle error |
<nb> public class LdapUserProfile {
}
element = vCard . element ( STRING0 ) ;
if ( element != null ) {
- fullName = vCard . getTextTrim ( ) ;
+ fullName = element . getTextTrim ( ) ;
}
element = vCard . element ( STRING1 ) ;
if ( element != null ) {
- nickname = vCard . getTextTrim ( ) ;
+ nickname ... | Fixed dummy copy and paste error |
<nb> import NAMESPACE ;
import NAMESPACE ;
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
- COMMENT
+ COMMENT
+ COMMENT
COMMENT
COMMENT
public class RemoteFileHelper { | Remove inappropriate author credit |
<nb> public class QueueSharder < U , T extends QueueBase < U > > implements Closeable
}
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | fixed typo in doc |
<nb> public class ECTranslation extends AnAction {
break ;
}
}
+
+ int lastLetter = NUMBER0 ;
for ( int ptr = cursor ; ptr < lineEndOffset - lineStartOffset ; ptr ++ ) {
+ lastLetter = ptr ;
if ( ! Character . isLetter ( chars [ ptr ] ) ) {
end = ptr ;
break ;
}
}
+ if ( end == NUMBER0 ) {
+... | fix the StringIndexOutOfBoundsException |
<nb> public class PlaybackOverlayFragment extends DetailsFragment {
COMMENT
COMMENT
public void fadeOut ( ) {
- if ( ! mFadingEnabled ) {
- return ;
- }
mHandler . removeMessages ( START_FADE_OUT ) ;
fade ( false ) ;
}
<nb> public class PlaybackOverlaySupportFragment extends DetailsSupportFragment {... | allow fadeOut when fadeEnabled is false |
<nb> public class Spr7839Tests {
}
@ test
+ @ ignore
public void map ( ) throws Exception {
request . setRequestURI ( STRING0 ) ;
request . addParameter ( STRING1 , STRING2 ) ; | ignore failing test |
<nb> public class IndyInterface {
correctCoerce ( callInfo ) ;
correctNullReceiver ( callInfo ) ;
- try {
- callInfo . handle = callInfo . handle . asType ( callInfo . targetType ) ;
- } catch ( Exception e ) {
- System . err . println ( STRING0 + methodName ) ;
- throw e ;
- }
+ callInfo . handle =... | remove debug system out |
<nb> public class UIUtil {
return UIManager . getColor ( STRING0 ) ;
}
+ public static Color getTableGridColor ( ) {
+ return UIManager . getColor ( STRING1 ) ;
+ }
+
public static Color getListBackground ( ) {
SINGLE
return isUnderGTKLookAndFeel ( ) ? getTreeTextBackground ( ) : UIManager . getColo... | peter spleaner color scheme change bug |
<nb> public class CommonsConfiguration implements WriteConfiguration {
String estr = config . getProperty ( key ) . toString ( ) ;
for ( Enum ec : constants )
- if ( ec . name ( ) . equals ( estr ) )
+ if ( ec . toString ( ) . equals ( estr ) )
return ( O ) ec ;
throw new IllegalArgumentException ( STRING... | Revert CommonsConfiguration to Enum toString usage |
<nb> public class RedisClusterMapState < T > implements IBackingMap < T > {
public static class Options < T > implements Serializable {
public int localCacheSize = NUMBER0 ;
public String globalKey = STRING0 ;
- KeyFactory keyFactory = null ;
+ public KeyFactory keyFactory = null ;
public Serializer < T > s... | Made keyFactory public in RedisClusterMapState Options |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
int rightMargin = settings . getRi... | improve distraction free mode for detached editors |
<nb> public class BeanConfig extends AbstractScanner implements Scanner , SwaggerConfi
public void setScan ( boolean shouldScan ) {
Set < Class < ? > > classes = classes ( ) ;
if ( classes != null ) {
- reader . read ( classes )
- . host ( host )
- . basePath ( basePath )
- . info ( info ) ;
+ reader . ... | fixed initialization order |
<nb> public class PokeBank {
COMMENT
COMMENT
public void addPokemon ( final Pokemon pokemon ) {
- pokemon . setPgo ( instance ) ;
List < Pokemon > alreadyAdded = StreamSupport . stream ( pokemons ) . filter ( new Predicate < Pokemon > ( ) {
@ override
public boolean test ( Pokemon testPokemon ) { | Adjusted some other functions |
<nb> public class JavaGenerator implements CodeGenerator
indent + STRING0 +
indent + STRING1 +
indent + STRING2 +
- indent + STRING3 +
indent + STRING4 ,
dimensionHeaderSize
) ) ;
<nb> public class JavaGenerator implements CodeGenerator
indent + STRING5 +
indent + STRING1 +
indent + STRING2 +
- ... | Fixed bug with offset moving for iterating over nested repeating groups |
<nb> public class SyndTypeUtils {
if ( extension != null ) {
String type = MimeTypeMap . getSingleton ( ) . getMimeTypeFromExtension (
extension ) ;
- if ( typeValid ( type ) ) {
+ if ( type != null && typeValid ( type ) ) {
return type ;
}
} | Fixed nullpointer exception in SyndTypeUtils |
<nb> public abstract class OBinaryNetworkProtocolAbstract extends ONetworkProtocol {
clientTxId = NUMBER0 ;
- final long timer = Orient . instance ( ) . getProfiler ( ) . startChrono ( ) ;
+ final long timer ;
try {
requestType = channel . readByte ( ) ;
clientTxId = channel . readInt ( ) ;
+ time... | Fixed issue on profiling request metrics |
<nb> public class BatchedScanSettings implements Parcelable {
COMMENT
public final static int UNSPECIFIED = Integer . MAX_VALUE ;
- SINGLE
+ SINGLE
public final static int MIN_SCANS_PER_BATCH = NUMBER0 ;
- public final static int MAX_SCANS_PER_BATCH = NUMBER1 ;
+ public final static int MAX_SCANS_PER_BA... | Use correct wifi batching parameter ranges |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.