diff stringlengths 38 1.78k | msg_token stringlengths 9 190 |
|---|---|
<nb> public class GuiIngameForge extends GuiIngame
protected void renderPlayerList ( int width , int height )
{
+ if ( pre ( PLAYER_LIST ) ) return ;
ScoreObjective scoreobjective = this . mc . theWorld . getScoreboard ( ) . func_96539_a ( NUMBER0 ) ;
NetClientHandler handler = mc . thePlayer . sendQueue ; ... | Added pre post to player list rendering in GuiIngameForge |
<nb> public class IOGroovyMethods extends DefaultGroovyMethodsSupport {
COMMENT
COMMENT
COMMENT
- public static < T > T withCloseable ( Closeable self , @ closureparams ( value = SimpleType . class , options = STRING0 ) Closure < T > action ) throws IOException {
+ public static < T , U extends Closeable > T ... | withCloseable should use the actual closeable type as the closure param |
<nb> public class Ringtone {
MediaStore . Audio . Media . TITLE
} ;
COMMENT
- private static final String MEDIA_SELECTION = MediaColumns . MIME_TYPE + STRING0 ;
+ private static final String MEDIA_SELECTION = MediaColumns . MIME_TYPE + STRING1
+ + MediaColumns . MIME_TYPE + STRING2 ;
SINGLE
private st... | Expand ringtone titles to support OGG and FLAC |
<nb> public class IconicsDrawable extends Drawable {
COMMENT
COMMENT
COMMENT
- public void respectFontBounds ( boolean respectBounds ) {
+ public IconicsDrawable respectFontBounds ( boolean respectBounds ) {
this . mRespectFontBounds = respectBounds ;
+ invalidateSelf ( ) ;
+ return this ;
}
COMME... | respectFontBounds should return the drawable itself again |
<nb> public class SearchURLCustomAdapter extends ArrayAdapter < SearchURLSuggestions > {
FilterResults results = new FilterResults ( ) ;
String constraint = Util . getUrlWithoutHttpHttpsWww ( getContext ( ) , mRealUrlBarConstraint ) ;
+ MainApplication . sSearchURLSuggestionsContainer . loadSuggestions ( getCon... | Fixed crash when suggestions list is not filled |
<nb>
package NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
public class IntersectNode
extends SetOperationNode
{
+ @ jsoncreator
public IntersectNode (
@ jsonproperty ( STRING0 ) PlanNodeId id ,
@ jsonproperty ( STRING1 ) ... | Add missing JsonCreator annotation |
<nb> public class SuppressWithNearbyCommentFilter
setFileContents ( currentContents ) ;
tagSuppressions ( ) ;
}
- if ( matchTag ( event ) ) {
+ if ( matchesTag ( event ) ) {
accepted = false ;
}
}
<nb> public class SuppressWithNearbyCommentFilter
COMMENT
COMMENT
COMMENT
- private boolean match... | Rename method returning boolean to use question word |
<nb> public class Language {
STRING0 , SINGLE
STRING1 , SINGLE
STRING2 , SINGLE
- STRING3 SINGLE
+ STRING3 SINGLE
} ;
+ Arrays . sort ( SUPPORTED ) ;
+
return SUPPORTED ;
COMMENT
<nb> public class Language {
COMMENT
static public Language init ( ) {
if ( instance == null ) {
- synchroniz... | added sort of available languages |
<nb> public class Mention implements CoreAnnotation < Mention > , Serializable {
private static final long serialVersionUID = - NUMBER0 ;
- COMMENT
- COMMENT
+ public Mention ( ) {
+ }
public Mention ( int mentionID , int startIndex , int endIndex , List < CoreLabel > sentenceWords , SemanticGraph bas... | try new hashCode |
<nb> public class Users {
} else {
returnedBytes = tUser . getOwnBytes ( ) ;
String folder = getUserTempFolder ( userId ) ;
- sb . append ( STRING0 + returnedBytes + STRING1 + folder
- + STRING2 ) ;
+ sb . append ( STRING0 ) . append ( returnedBytes ) . append ( STRING3 ) ;
+ sb . append ( STRING4 ) . app... | Remove additional StringBuilders creation by removing the redundant addition sign for String concat |
<nb> public class ElasticsearchClient extends DB {
Boolean . parseBoolean ( props . getProperty ( STRING0 , STRING1 ) ) ;
Builder settings = Settings . settingsBuilder ( )
. put ( STRING2 , Boolean . toString ( ! remoteMode ) )
- . put ( STRING3 , System . getProperty ( STRING4 ) + STRING5 )
. put ( STRING6 ,... | elasticsearch Remove unneeded path data setting |
<nb>
package NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class AudioTrackProperty extends PropertySupport . ReadWrite < AudioNode > {
@ override
public void setValue ( final Audio... | Fixed an issue in AudioTrackProperty where the value was not properly set |
<nb> public class GetPatternsFromDataMultiClass implements Serializable {
Redwood . log ( ConstantsAndVariables . extremedebug , STRING0 + pat
+ STRING1 + p ) ;
notchoose = true ;
-
- if ( pat . toStringSimple ( ) . contains ( STRING2 ) && p . toStringSimple ( ) . contains ( STRING2 ) ) {
- System . out . p... | removing extra log msgs |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class GithubShareAction ex... | remove unused code |
<nb> import 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 WordPressMediaUtils {
COMMENT
COMMENT... | Added some sanity checks to the getVideoPressVideoPosterFromURL helper method |
<nb> public class PluginAdvertiserEditorNotificationProvider extends EditorNotificati
try {
myAllPlugins = RepositoryHelper . loadPluginsFromRepository ( indicator ) ;
for ( IdeaPluginDescriptor loadedPlugin : myAllPlugins ) {
- if ( plugins . contains ( new PluginsAdvertiser . Plugin ( loadedPlugin . getPlugin... | do not check plugin name for non bundled plugins |
<nb> public class LeveledManifest
}
logger . debug ( STRING0 ,
- new Object [ ] { Arrays . asList ( estimated ) , cfs . table . name , cfs . columnFamily } ) ;
+ new Object [ ] { Arrays . toString ( estimated ) , cfs . table . name , cfs . columnFamily } ) ;
return Ints . checkedCast ( tasks ) ;
} | switch out Arrays asList toString for Arrays toString |
<nb> public abstract class AbstractLocalTachyonCluster {
protected Thread mWorkerThread ;
+ COMMENT
+ protected String [ ] mMasterServiceNames = new String [ ] {
+ Constants . BLOCK_MASTER_NAME ,
+ Constants . FILE_SYSTEM_MASTER_NAME ,
+ Constants . LINEAGE_MASTER_NAME ,
+ Constants . RAW_TABLE_MASTER... | Move master service names to class variable |
<nb> public abstract class GridSampler {
COMMENT
COMMENT
COMMENT
- static void checkAndNudgePoints ( MonochromeBitmapSource image , float [ ] points ) throws ReaderException {
+ protected static void checkAndNudgePoints ( MonochromeBitmapSource image , float [ ] points ) throws ReaderException {
int width =... | Oops fix an error introduced in recent change |
<nb> public class TypedValue {
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ public static final int DATA_NULL_UNDEFINED = NUMBER0 ;
+ COMMENT
+ COMMENT
+ COMMENT
+ public static final int DATA_NULL_EMPTY = NUMBER1 ;
+
+ COMMENT
+
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> public class ResValueF... | Adds support for DATA_NULL_EMPTY |
<nb> public class DiagnosticGroups {
SINGLE
SINGLE
static final String DIAGNOSTIC_GROUP_NAMES =
- STRING0 +
- STRING1 +
- STRING2 +
+ STRING3 +
+ STRING4 +
+ STRING5 +
STRING6 +
STRING7 +
- STRING8 +
+ STRING9 +
STRING10 +
STRING11 +
STRING12 +
<nb> public class DiagnosticGroups {
St... | Add diagnostic groups for goog provide goog require checks |
<nb> public class ProjectRootManagerImpl extends ProjectRootManagerEx implements Proj
if ( myProject . isDisposed ( ) ) return ;
clearScopesCaches ( ) ;
- Module [ ] modules = ModuleManager . getInstance ( myProject ) . getModules ( ) ;
-
-
- for ( Module module : modules ) {
- ( ( ModuleImpl ) module )... | external roots changed performance optimization |
<nb> public class OptimizeImportsAction extends AnAction {
text = CodeInsightBundle . message ( STRING0 , projectContext . getPresentableUrl ( ) ) ;
}
LayoutProjectCodeDialog dialog
- = new LayoutProjectCodeDialog ( project , CodeInsightBundle . message ( STRING1 ) , text , false , FormatChangedTextUtil . hasCh... | exception fixed removed unused method |
<nb> public class TransactionEventsSyncHook implements Synchronization
}
else if ( status == Status . STATUS_ROLLEDBACK )
{
+ if ( this . states == null )
+ {
+ SINGLE
+ return ;
+ }
+
for ( HandlerAndState state : this . states )
{
state . handler . afterRollback ( this . transactionData , stat... | Fixed a bug where a NPE would be thrown if a transaction was rolled back |
<nb> public class RubberIndicator extends RelativeLayout {
throw new IllegalArgumentException ( STRING0 ) ;
}
- int i = NUMBER0 ;
- for ( ; i < focusPos ; i ++ ) {
- addSmallCircle ( ) ;
- }
- addLargeCircle ( ) ;
- for ( i = focusPos + NUMBER1 ; i < count ; i ++ ) {
- addSmallCircle ( ) ;
+ COMME... | Prevent setCount for adding more view each times by clearing container and collections |
<nb> public abstract class HazelcastTestSupport {
public void run ( ) {
sleepMillis ( delaysMs ) ;
currentThread . interrupt ( ) ;
- System . out . println ( currentThread + STRING0 ) ;
}
} . start ( ) ;
} | Removed unwanted system out |
<nb> public class ListNode < T > {
}
@ override public String toString ( ) {
- return STRING0 +
- STRING1 + data +
- STRING2 + next +
- STRING3 ;
+ return STRING0 + STRING1 + data + STRING2 + next + STRING3 ;
}
} | Fix check style issue related to toString method generated by IntelliJ |
<nb> public class ContentProviderClient implements AutoCloseable {
return null ;
}
- if ( STRING0 . equals ( mPackageName )
- || STRING1 . equals ( mPackageName ) ) {
+ if ( STRING0 . equals ( mPackageName ) ) {
SINGLE
return cursor ;
} else { | Remove com google android syncadapters contacts from exception list |
<nb> public class NonUniqueIndexPopulatorCompatibility extends IndexProviderCompatibi
IndexSamplingConfig indexSamplingConfig = new IndexSamplingConfig ( new Config ( ) ) ;
IndexPopulator populator = indexProvider . getPopulator ( NUMBER0 , descriptor , config , indexSamplingConfig ) ;
String failure = STRING0 ; ... | Fix NonUniqueIndexPopulatorCompatibility flaky test |
<nb> public class ZWaveConfiguration implements OpenHABConfigurationService , ZWaveEve
} else if ( arg . equals ( STRING0 ) ) {
record = new OpenHABConfigurationRecord ( domain , STRING1 , STRING2 , true ) ;
record . value = Integer . toString ( node . getDeviceId ( ) ) ;
+ records . add ( record ) ;
if ( n... | Add nodeID to info |
<nb> public final class TSMeta {
if ( custom == null ) {
json . writeNullField ( STRING0 ) ;
} else {
- json . writeStartObject ( ) ;
+ json . writeObjectFieldStart ( STRING0 ) ;
for ( Map . Entry < String , String > entry : custom . entrySet ( ) ) {
json . writeStringField ( entry . getKey ( ) , entry . ... | Fix TSMeta custom field storage serialization bug |
<nb> public class OGLESShaderRenderer implements Renderer {
id , source . getDefines ( )
+ source . getSource ( ) ) ;
} else {
+ String precision = STRING0 ;
+ if ( source . getType ( ) == ShaderType . Fragment ) {
+ precision = STRING1 ;
+ }
GLES20 . glShaderSource (
- id ,
- STRING1
- + source .... | OGLESShaderRenderer now only force mediump precision for float in the fragment shader |
<nb> public class JSUniversalStructuralSearchTest extends StructuralSearchTestCase {
public void testLoop ( ) {
- JSRootConfiguration . getInstance ( getProject ( ) ) . storeLanguageLevel ( JSLanguageLevel . JS_1_7 ) ;
+ JSRootConfiguration . getInstance ( getProject ( ) ) . storeLanguageLevelAndUpdateCaches ... | invalidate caches on unsetting JS language level |
<nb> public abstract class LocalContribution extends Contribution {
name = folder . getName ( ) ;
categories = defaultCategory ( ) ;
}
+
+ if ( categories . contains ( SPECIAL_CATEGORY_NAME ) )
+ validateSpecial ( ) ;
+ }
+
+
+ private void validateSpecial ( ) {
+ for ( AvailableContribution avail... | Added validation to check if the contrib is actually starred |
<nb> public class XposedInstallerActivity extends Activity {
selectTabIndex = NUMBER0 ;
else if ( extraS . equals ( STRING0 ) )
selectTabIndex = NUMBER1 ;
- else if ( extraS . equals ( STRING1 ) )
- selectTabIndex = NUMBER2 ;
}
} else if ( savedInstanceState != null ) {
selectTabIndex = savedInstanceSta... | Remove leftovers of native libraries code |
<nb> public class Extractor {
break ;
case SPLIT_AND_INDEX :
loadSplitAndIndexConfig ( form ) ;
+ break ;
case GROK :
loadGrokConfig ( form ) ;
break ; | Add break statement on load extractor from form |
<nb> public class AccountsFragment extends ListFragment {
public void onAttach ( Activity activity ) {
super . onAttach ( activity ) ;
mActivity = ( AccountListActivity ) activity ;
- setListAdapter ( mActivity . getAdapter ( ) ) ;
}
@ override
+ public void onActivityCreated ( Bundle savedInstanceState... | only set the list adapter when activity is created not on each attach |
<nb> public abstract class AppIntroBase extends AppCompatActivity {
COMMENT
COMMENT
protected void onPageSelected ( int position ) {
- setButtonState ( skipButton , skipButtonEnabled ) ;
+ SINGLE
}
public boolean isSkipButtonEnabled ( ) {
<nb> public abstract class AppIntroBase extends AppCompatActivi... | Removed setButtonState for skipButton inside AppIntroBase onPageSelected |
<nb> public final class MountTable {
COMMENT
public synchronized TachyonURI resolve ( TachyonURI uri ) throws InvalidPathException {
String path = uri . getPath ( ) ;
- LOG . info ( STRING0 + path ) ;
+ LOG . debug ( STRING0 + path ) ;
String mountPoint = getMountPoint ( uri ) ;
if ( mountPoint != null ) ... | Info log in resolve will cause unnecessarily verbose log |
<nb> public class PrepareCatalogMojo extends AbstractMojo {
public static final int BUFFER_SIZE = NUMBER0 * NUMBER1 ;
- private static final String [ ] EXCLUDE_DOC_FILES = { STRING0 , STRING1 , STRING2 ,
- STRING3 , STRING4 , STRING5 , STRING6 , STRING7 } ;
+ private static final String [ ] EXCLUDE_DOC_FILE... | Excluding some particular components from PrepareCatalogMojo |
<nb> public class TimePickerDialog extends AlertDialog
mTimePicker = ( TimePicker ) view . findViewById ( R . id . timePicker ) ;
SINGLE
+ mTimePicker . setIs24HourView ( mIs24HourView ) ;
mTimePicker . setCurrentHour ( mInitialHourOfDay ) ;
mTimePicker . setCurrentMinute ( mInitialMinute ) ;
- mTimePicke... | Fix Incorrect Times in TimePickerDialog |
<nb> public final class SequenceFilesFromMailArchives {
try {
parseFileLineByLine ( current ) ;
} catch ( IOException e ) {
- throw new IllegalStateException ( e ) ;
+ throw new IllegalStateException ( STRING0 + current , e ) ;
}
}
return false ; | provide more info about the file that failed |
<nb> public class SearchService extends AbstractLifecycleComponent < SearchService > {
String sSource = STRING0 ;
try {
sSource = Unicode . fromBytes ( source , offset , length ) ;
- } catch ( Error e1 ) {
+ } catch ( Throwable e1 ) {
SINGLE
}
- throw new SearchParseException ( context , STRING1 + sSour... | improve error handling we can t always parse the source to a stirng |
<nb> public class Wrapper extends DefaultTask {
writeProperties ( getPropertiesFile ( ) ) ;
- URL jarFileSource = getClass ( ) . getResource ( STRING0 ) ;
+ URL jarFileSource = Wrapper . class . getResource ( STRING0 ) ;
if ( jarFileSource == null ) {
throw new GradleException ( STRING1 ) ;
} | When extracting the wrapper jar do it via Wrapper class instead of getClass in case someone subclasses the wrapper task |
<nb> public class ToolsMenu
JMenuItem menuItem = ( JMenuItem ) e . getSource ( ) ;
String itemName = menuItem . getName ( ) ;
+ if ( itemName == null )
+ return ;
+
if ( itemName . equalsIgnoreCase ( STRING0 ) )
{
configActionPerformed ( ) ; | Fixes advanced chat theme |
<nb> public class DocumentWindowImpl extends UserDataHolderBase implements Disposable
@ override
public boolean containsRange ( int start , int end ) {
synchronized ( myLock ) {
- Segment hostRangeMarker = myShreds . get ( NUMBER0 ) . getHostRangeMarker ( ) ;
- if ( hostRangeMarker == null || end - start > ho... | check all shreds |
<nb> public class ODocument extends ORecordVirtualAbstract < Object > implements Iterabl
COMMENT
COMMENT
public boolean hasSameContentOf ( final ODocument iOther ) {
+ if ( iOther == null )
+ return false ;
+
if ( ! equals ( iOther ) && _recordId . isValid ( ) )
return false ;
+ if ( _status == STAT... | Fixed issue on ODocument hasSameContentOf |
<nb> package NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | eliminate eclipse warning |
<nb> public abstract class HazelcastTestSupport {
for ( ; ; ) {
String id = prefix + randomString ( ) ;
Partition partition = partitionService . getPartition ( id ) ;
- if ( comparePartitionOwnership ( true , localMember , partition ) ) {
+ if ( comparePartitionOwnership ( false , localMember , partition ) ) ... | Fixed HazelcastTestSupport issue in random name generation |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
COMMENT
<nb> public class WorldEditPlugin extends JavaPlugin {
public void onDisable ( ) {
controller . clearSessions ( ) ;
for ( Player player : getServer ( ) . getOnlinePlayer... | Fixed potential client spamming bug |
<nb> public class ItemAdapter < Item extends IItem > extends AbstractAdapter < Item > imple
}
SINGLE
- public Comparator < Item > mComparator ;
+ protected Comparator < Item > mComparator ;
COMMENT
COMMENT
<nb> public class ItemAdapter < Item extends IItem > extends AbstractAdapter < Item > imple
re... | add getter for the comparator |
<nb>
COMMENT
COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
- COMMENT
@ api package NAMESPACE ;
import NAMESPACE ; | Allowing access to Delayed actions to modules |
<nb> public class CatalystInstanceImpl implements CatalystInstance {
final JavaScriptModulesConfig jsModulesConfig ,
final JSBundleLoader jsBundleLoader ,
NativeModuleCallExceptionHandler nativeModuleCallExceptionHandler ) {
+ FLog . d ( ReactConstants . TAG , STRING0 ) ;
mReactQueueConfiguration = ReactQueue... | Add log message to bridge init |
<nb> public class TreeShapedStack < T > {
} else if ( size ( ) == NUMBER0 ) {
return data . toString ( ) ;
} else {
- return data . toString ( ) + STRING0 + previous . internalToString ( ) ;
+ return previous . internalToString ( ) + STRING0 + data . toString ( ) ;
}
} | Reverse the order of the stack in toString |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import static NAMESPACE ;
@ runwith ( HazelcastParallelClassRunner . class )
@ category ( { QuickTest . class , ParallelTest . class }... | ignored ClientRegressionWithMockNetworkTest class that causes build failures |
<nb> public class NotificationsListFragment extends Fragment
private void showEmptyView ( @ stringres int stringResId , boolean showSignIn ) {
if ( isAdded ( ) && mEmptyView != null ) {
+ mFilterRadioGroup . setVisibility ( View . GONE ) ;
( ( TextView ) mEmptyView . findViewById ( R . id . text_empty ) ) . s... | Hide the filter bar when showing the empty list view |
<nb> public class Definitions implements Serializable {
COMMENT
COMMENT
COMMENT
- private static class Tag implements Serializable {
+ public static class Tag implements Serializable {
COMMENT
public final int line ;
COMMENT | Fix build break |
<nb> public abstract class Maker {
x = FilterBuilders . termFilter ( name , value ) ;
break ;
}
+ case LIKE :
+ String queryStr = ( ( String ) value ) . replace ( STRING0 , STRING1 ) . replace ( STRING2 , STRING3 ) ;
+ WildcardQueryBuilder wildcardQuery = QueryBuilders . wildcardQuery ( name , queryStr ) ; ... | Add LIKE query support |
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT
<nb> import NAMESPACE ;
COMMENT
COMMENT
COMMENT
- COMMENT
+ COMMENT
COMMENT
COMMENT
COMMENT | Corrected CatchAllConverter ordering docs |
<nb> public class Box implements IBox , ISerializable {
if ( toBeContained == null ) {
return this ;
}
-
- setMin ( toBeContained . min ( ) ) ;
- setMax ( toBeContained . max ( ) ) ;
+ extendToEncompassBoth ( toBeContained . min ( ) , toBeContained . max ( ) ) ;
return this ;
} | Actually ACTUALLY fix the box extendToEncompass method |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public final class Expressions {
return TimeOperation . create ( type , operator , args ) ;
}
+ @ suppresswarnings ( STRING0 )
+ p... | added Expressions numberOperation |
<nb> public final class AccessibilityManager {
sInstance = new AccessibilityManager ( context , service ) ;
}
}
-
- AccessibilityManager accessibilityManager =
- ( AccessibilityManager ) context . getSystemService ( Context . ACCESSIBILITY_SERVICE ) ;
return sInstance ;
} | Fix crash at boot |
<nb> public final class Rect implements Parcelable {
public int right ;
public int bottom ;
- private static final Pattern FLATTENED_PATTERN = Pattern . compile (
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ private static final class UnflattenHelper {
+ private static final Pat... | Move FLATTENED_PATTERN to inner class |
<nb> public class InvokeDynamic implements Instrumentation {
COMMENT
COMMENT
public ForClassValue ( TypeDescription typeDescription ) {
- this . typeDescription = typeDescription ;
+ this . typeDescription = typeDescription ;
}
@ override | Fixed checkstyle error |
<nb> public class BukkitWorld extends LocalWorld {
contents [ i ] = new BaseItemStack (
bukkitStack . getTypeId ( ) ,
bukkitStack . getAmount ( ) ,
- bukkitStack . getDamage ( ) ) ;
+ ( byte ) bukkitStack . getDamage ( ) ) ;
}
} | Changed BukkitWorld in hopes that it will fix the error regarding ItemStack getDamage |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class MarkResolvedAction extends BasicAction {
SVNWCClient wcClient = vcs . createWCClient ( ) ;
for ( String path : pathsArray ) {
File ioFile = ... | resolve conflict as merged to work |
<nb> public class CreateIndexesOperation implements AsyncOperation < Void > , Operation < V
private void executeInsertProtocolAsync ( final SingleResultFuture < Void > retVal , final ServerConnectionProvider connectionProvider ,
final List < Index > indexesRemaining ) {
Index index = indexesRemaining . remove ( N... | Remove unused future |
<nb> public class SignavioConnector extends AbstractRepositoryConnector < SignavioConne
if ( SignavioPluginDefinition . ORYX_TYPE_ATTRIBUTE_FOR_BPMN_20 . equals ( type ) ) {
artifactTypeID = SignavioPluginDefinition . ARTIFACT_TYPE_BPMN_20 ;
}
+ else if ( SignavioPluginDefinition . SIGNAVIO_NAMESPACE_FOR_BPMN_2... | fixed problem with Oryx Backend |
<nb> public class ThirdEyeJob {
if ( indexMetadata . getMinDataTime ( ) != null && indexMetadata . getMinDataTime ( ) < min )
{
min = indexMetadata . getMinDataTime ( ) ;
- minMillis = indexMetadata . getMaxDataTimeMillis ( ) ;
+ minMillis = indexMetadata . getMinDataTimeMillis ( ) ;
}
if ( indexMetadata ... | Metadata should use aggregation granularity not input granularity |
<nb> public class JarDirectoryStep implements Step {
continue ;
}
- SINGLE
- SINGLE
ZipEntry newEntry = new ZipEntry ( entry ) ;
- newEntry . setCompressedSize ( - NUMBER0 ) ;
+
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ SINGLE
+ if ( entry .... | only reset compressed size for deflated entries |
<nb> public class Groovyc extends MatchingTask {
commandLineList . add ( javaHome + separator + STRING0 + separator + STRING1 ) ;
commandLineList . add ( STRING2 ) ;
commandLineList . add ( classpath . toString ( ) ) ;
+
+ final String fileEncodingProp = System . getProperty ( STRING3 ) ;
+ if ( ( fileEncod... | taking file encoding property over from parent process when forked |
<nb> public class MailUtil {
for ( int i = NUMBER0 ; i < folders . length ; i ++ ) {
if ( ( folders [ i ] . getType ( ) & IMAPFolder . HOLDS_MESSAGES ) != NUMBER0 ) {
MailFolder mf = new MailFolder (
- folders [ i ] . getNewMessageCount ( ) , folders [ i ] . getName ( ) ,
- folders [ i ] . getMessageCount ( )... | Fixed folder counts |
<nb> public class FromFtpRemoteFileFilterTest extends FtpServerTestSupport {
protected RouteBuilder createRouteBuilder ( ) throws Exception {
return new RouteBuilder ( ) {
public void configure ( ) throws Exception {
- from ( getFtpUrl ( ) ) . to ( STRING0 ) ;
+ from ( getFtpUrl ( ) ) . convertBodyTo ( String... | Fixed tests on other and slower boxes |
<nb> public interface MethodGraph {
@ override
public String toString ( ) {
- return STRING0 +
+ return STRING1 +
STRING2 + key +
STRING3 + methodDescription +
STRING4 + madeVisible +
<nb> public interface MethodGraph {
@ override
public String toString ( ) {
- return STRING5 +
+ return STRI... | Fixed naming of keys |
<nb> public class UndertowXhrTransport extends AbstractXhrTransport {
public void httpClientConnect ( UndertowClient httpClient , ClientCallback < ClientConnection > listener , URI uri ,
XnioWorker worker , OptionMap options ) {
ReflectionUtils . invokeMethod ( httpClientConnectCallbackMethod , httpClient , liste... | Fix undertow httpClientConnect invoke signature |
<nb> public class HeadersBlockGenerator
public ByteBuffer generate ( short version , Headers headers ) throws StreamException
{
+ SINGLE
Charset iso1 = Charset . forName ( STRING0 ) ;
ByteArrayOutputStream buffer = new ByteArrayOutputStream ( headers . getSize ( ) * NUMBER0 ) ;
writeCount ( version , buff... | Added TODO for an optimization |
<nb> public class AtCommandFragment extends Fragment {
COMMENT
COMMENT
RootShell . handlerEnabled = false ;
- RootShell . debugMode = true ;
SINGLE
boolean root = RootShell . isAccessGiven ( ) ; | Turned debug mode off |
<nb> public class ApplicationController {
public Result postForm ( Context context , FormObject formObject ) {
SINGLE
- SINGLE
- SINGLE
+ SINGLE
return Results . json ( ) . render ( formObject ) ;
} | Fix a comment |
<nb> public abstract class AbstractExpandedDecoder {
return information ;
}
- final GeneralAppIdDecoder getGeneralDecoder ( ) {
+ protected final GeneralAppIdDecoder getGeneralDecoder ( ) {
return generalDecoder ;
} | Revert inadvertent change to non private API |
<nb> public class DefaultJSONParser extends AbstractJSONParser {
return this . context ;
}
- private void clearChildContext ( ParseContext parent , int start ) {
- for ( int i = start ; i < contextArrayIndex ; ++ i ) {
- ParseContext item = contextArray [ i ] ;
- if ( item . getParentContext ( ) == parent... | remove unused code |
<nb> public final class SmackConfiguration {
COMMENT
COMMENT
public static int getPacketReplyTimeout ( ) {
+ SINGLE
+ if ( packetReplyTimeout == - NUMBER0 ) {
+ return NUMBER1 ;
+ }
return packetReplyTimeout ;
} | Answers a default timeout value if timeout value has not been initialized yet |
<nb> public class AvailabilityGuard
return false ;
}
-
+ try
+ {
+ Thread . sleep ( NUMBER0 ) ;
+ }
+ catch ( InterruptedException e )
+ {
+ Thread . interrupted ( ) ;
+ break ;
+ }
Thread . yield ( ) ;
} | Introduces a tiny sleep in the loop that checks HA availability |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class ConfigWorldGenScreen extends CoreScreenLayer {
SINGLE
Set < Module > selectedModules = Sets . newHashSet ( ) ;
for ( Name... | Fix bug where modules with dependencies caused errors on the world config screen |
<nb> public class Client implements Runnable {
int port ;
String host ;
-
- SINGLE
-
- InputStream input ;
- OutputStream output ;
+ public InputStream input ;
+ public OutputStream output ;
byte buffer [ ] = new byte [ NUMBER0 ] ;
int bufferIndex ;
<nb> public class Server implements Runnab... | make some fields public |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
- import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ; | Fixed broken import which causes a build failure |
<nb> public class YoutubeStreamExtractorDefaultTest extends AndroidTestCase {
public void testGetDashMpd ( ) throws ParsingException {
assertTrue ( extractor . getDashMpdUrl ( ) ,
- ! extractor . getDashMpdUrl ( ) . isEmpty ( ) ) ;
+ extractor . getDashMpdUrl ( ) != null || ! extractor . getDashMpdUrl ( ) . i... | fix broken unit test |
<nb> public class JavaGenerator implements CodeGenerator
{
final String actingFields = codecType == CodecType . ENCODER ?
STRING0 :
- STRING1 +
STRING2 ;
return String . format ( | Java Remove actingBlockLength from composites |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class FileStructureDialog extends DialogWrapper {
}
AbstractTreeStructure treeStructure = new MyStructureTreeStructure ( ) ;
... | Keep file structure sortered even with narrow down active |
<nb> public class Classifier
SINGLE
for ( Collection < Example > chunk : chunks )
jobHandler . put ( new Pair < > ( chunk , params ) ) ;
- jobHandler . join ( ) ;
+ jobHandler . join ( false ) ;
SINGLE
Cost cost = null ; | Join worker threads without destroying threadpool |
<nb> public final class MacOSXQuitRegistration
COMMENT
COMMENT
COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
COMMENT
- event . setHandled ( false ) ;
+ event . setHandled ( true ) ;
}
} ) ;
return true ; | When quiting cause of logout or shutdown fix the notification shown to user that application has prevented the operation |
<nb>
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
+ COMMENT
package NAMESPACE ;
public class ExprException extends RuntimeException {
<nb> public final class PathMetadata < T > implements Serializable {
private static final long serialVersionUID = - NUMBER0 ;
- SINGLE
private final Expr < T > exp... | added javadoc headers |
<nb> public abstract class Job extends Func {
SINGLE
if ( source . numRows ( ) == NUMBER0 )
throw new H2OIllegalArgumentException ( find ( STRING0 ) , STRING1 ) ;
+ SINGLE
+ if ( response == null )
+ throw new H2OIllegalArgumentException ( find ( STRING2 ) , STRING3 ) ;
SINGLE
SINGLE
SINGLE | Reject a job without specified response |
<nb> public class SessionManager extends BasicModule {
SINGLE
SINGLE
if ( serverName == null || ! serverName . equals ( domain ) ) {
- if ( serverName == null || domain . indexOf ( serverName ) == - NUMBER0 ) {
- Log . warn ( STRING0 + domain +
- STRING1 +
- serverName ) ;
- }
return null ;
} | Removed unnecessary logging |
<nb> public class ScatterChartRenderer extends LineScatterCandleRadarRenderer {
buffer . buffer [ i + NUMBER0 ] + shapeHoleSizeHalf + shapeStrokeSizeHalf ,
mRenderPaint ) ;
- if ( shapeHoleColor != ColorTemplate . COLOR_NONE && shapeHoleSize > FLOAT0 ) {
+ if ( shapeHoleColor != ColorTemplate . COLOR_NONE ) {... | Remove redundant if check |
<nb> import NAMESPACE ;
public class NonBlockingHashMapLongZeroKeyConcurrentGetPutIfAbsentTest extends TestCase {
private static final int N_THREADS = NUMBER0 ;
- private static final int ITERATIONS = NUMBER1 ;
+ private static final int ITERATIONS = NUMBER2 ;
private ExecutorService service ;
protected... | Speed up NBHM Junit test |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> import NAMESPACE ;
@ springbootapplication
@ contextconfiguration ( classes = ServletMappingAutoConfiguration . class )
@ springbootte... | Ignore tests so fastinall and other profiles can work |
<nb> import NAMESPACE ;
public abstract class PrimitiveTypes {
- public static final Map < ModelType < ? > , Object > TYPES_DEFAULT_VALUES = ImmutableMap . < ModelType < ? > , Object > builder ( )
+ private static final Map < ModelType < ? > , Object > TYPES_DEFAULT_VALUES = ImmutableMap . < ModelType < ? > ,... | Reduce field visibility |
<nb> import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
+ import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
import NAMESPACE ;
<nb> public class JavaTestFinder implements TestFinder {
@ nullable
private static Module getModule ( PsiElement element ) {
ProjectFileInd... | Go to test class should handle files in memory |
<nb> public final class HdmiCecMessageValidator {
addValidationInfo ( Constants . MESSAGE_SET_STREAM_PATH ,
physicalAddressValidator , DEST_BROADCAST ) ;
addValidationInfo ( Constants . MESSAGE_SYSTEM_AUDIO_MODE_REQUEST ,
- physicalAddressValidator , DEST_DIRECT ) ;
+ new SystemAudioModeRequestValidator ( ) ,... | Allow no parameters with System Audio Mode Request |
<nb> public class NodePingThread extends Periodical {
. addType ( Notification . Type . NO_MASTER )
. addSeverity ( Notification . Severity . URGENT )
. publishIfFirst ( ) ;
- activityWriter . write (
- new Activity (
- STRING0 +
- STRING1 ,
- NodePingThread . class ) ) ;
}
} catch ( NodeNotFoundExc... | do not write Activity for missing master all the time |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.