diff
stringlengths
38
1.78k
msg_token
stringlengths
9
190
<nb> public class TerasologyEngine implements GameEngine { moduleSecurityManager . addAPIPackage ( STRING0 ) ; moduleSecurityManager . addAPIPackage ( STRING1 ) ; moduleSecurityManager . addAPIPackage ( STRING2 ) ; + moduleSecurityManager . addAPIPackage ( STRING3 ) ; moduleSecurityManager . addAPIPackage ( S...
Added whitelist candidate
<nb> public class BitmapAjaxCallback extends AbstractAjaxCallback < Bitmap , BitmapAjaxC return result ; } + private static boolean isInputSharable ( ) { + AQUtility . debug ( STRING0 , AQuery . SDK_INT ) ; + return AQuery . SDK_INT < NUMBER0 ; + + } + private static Bitmap decodeFile ( String path ...
Not use bitmap decode options of input sharable for kitkat or above
<nb> public class AntlrTask extends SourceTask { private FileCollection antlrClasspath ; private File outputDirectory ; - private String maxHeapSize = STRING0 ; + private String maxHeapSize ; COMMENT COMMENT
set default maxHeapSize in AntlrTask to null jvm default
<nb> public class JInputJoyInput implements JoyInput { for ( int i = NUMBER0 ; i < cs . length ; i ++ ) { Controller c = cs [ i ] ; - if ( c . getType ( ) == Controller . Type . UNKNOWN - || c . getType ( ) == Controller . Type . KEYBOARD + if ( c . getType ( ) == Controller . Type . KEYBOARD || c . getTy...
Removed yet another check for unknown joystick type
<nb> public class DiffToChangeLog { private List < DatabaseObject > sortMissingObjects ( Collection < DatabaseObject > missingObjects , Database database ) { - if ( missingObjects . size ( ) > NUMBER0 && supportsSortingObjects ( database ) && database . getConnection ( ) != null && ! ( database . getConnection ...
Fix NPE in sortMissingObjects when using the Maven plugin
<nb> public final class PluginManager { @ suppresswarnings ( STRING0 ) private boolean isPhoneGapPlugin ( Class c ) { if ( c != null ) { - if ( c . getSuperclass ( ) . getName ( ) . equals ( STRING1 ) ) { - return true ; - } - Class [ ] interfaces = c . getInterfaces ( ) ; - for ( int j = NUMBER0 ; j < ...
Change PluginManager isPhoneGapPlugin to be much shorter like on the BlackBerry
<nb> public class GangliaReporter extends AbstractPollingReporter { private void reportCounter ( String name , Counter counter ) { final String group = group ( name ) ; try { - announce ( name , group , counter . getCount ( ) , STRING0 ) ; + announce ( name ( name , STRING1 ) , group , counter . getCount ( ) ...
Fix counter names in GangliaReporter
<nb> public class Grammar { COMMENT COMMENT @ safevarargs - public static Subrule subRule ( RulePart . . . alternatives ) { + public static Subrule subrule ( RulePart . . . alternatives ) { return new Subrule ( alternatives ) ; }
changed method name
<nb> package NAMESPACE ; import NAMESPACE ; COMMENT - COMMENT + COMMENT COMMENT public class MultipleFailureException extends Exception { private static final long serialVersionUID = NUMBER0 ; <nb> public class MultipleFailureException extends Exception { COMMENT COMMENT COMMENT - COMMENT + ...
Fix typos in comments
<nb> public class MetaClass { COMMENT if ( object == null ) { - throw new InvokerException ( STRING0 + methodName + STRING1 ) ; + throw new NullPointerException ( STRING0 + methodName + STRING1 ) ; } List methods = getMethods ( methodName ) ; <nb> public class Invoker { COMMENT public Object getPr...
Throw NullPointerException when navigating null which seems more natural to Java developeres
<nb> public class MixinErrorHandler implements IMixinErrorHandler { . add ( ) . log ( this . log ) ; - FMLCommonHandler . instance ( ) . exitJava ( NUMBER0 , false ) ; + FMLCommonHandler . instance ( ) . exitJava ( NUMBER0 , true ) ; } return null ;
Fix minecraft launcher hanging on handled exit
<nb> public class CXFGreeterRouterTest extends CamelTestSupport { @ test public void testInvokingServiceFromCXFClient ( ) throws Exception { - Thread . sleep ( NUMBER0 ) ; Service service = Service . create ( serviceName ) ; service . addPort ( routerPortName , STRING0 , STRING1 ) ;
Revert the change of thread sleep
<nb> public class CustomViewAbove extends ViewGroup { direction ) ; if ( nextFocused != null && nextFocused != currentFocused ) { if ( direction == View . FOCUS_LEFT ) { - SINGLE - SINGLE - if ( currentFocused != null && nextFocused . getLeft ( ) >= currentFocused . getLeft ( ) ) { - handled = pageLeft ( ...
Stopping incorrect focusing on SlidingMenu
<nb> final class ClientCallImpl < ReqT , RespT > extends ClientCall < ReqT , RespT > return true ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - @ nullable - private static Long getRemainingTimeoutNanos ( @ nullable Long deadlineNanoTime ) { - if ( deadlineNanoTime == null ) { - return n...
Remove unused method
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ;
Add support for XML resources
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public class KShingling extends HashSet < String > implements Serializable { this . k = k ; } + private static final Pattern spaceReg = Pattern . compile ( STRING0 ) ; pu...
use a compiled regex pattern
<nb> import NAMESPACE ; import NAMESPACE ; public abstract class PsiDiamondType extends PsiType { - public static RecursionGuard ourDiamondGuard = RecursionManager . createGuard ( STRING0 ) ; + public static final RecursionGuard ourDiamondGuard = RecursionManager . createGuard ( STRING0 ) ; public PsiDiam...
make guard final
<nb> public class SingleDatastoreProvider implements DatastoreProvider { private static final long serialVersionUID = NUMBER0 ; - private Datastore datastore ; + private transient Datastore datastore ; @ override public Datastore get ( ) { <nb> public class ThreadLocalDatastoreProvider implements Data...
make Datastore references as transient
<nb> class WikiDumpHandler extends DefaultHandler { private void saveResultToDatabase ( List < RuleMatch > ruleMatches , String text , Language language ) throws SQLException { - String sql = STRING0 + - STRING1 + - STRING2 ; + String sql = STRING3 + + STRING4 + + STRING5 ; PreparedStatement prepSt ...
update database column names they changed after the switch to Groovy domain classes
<nb> public final class UpgradeService { } ) . start ( ) ; } - private class UpgradeActivity extends Activity { + public class UpgradeActivity extends Activity { public static final String TOKEN_FROM = STRING0 ; SINGLE public static final String TOKEN_VERSION_NAME = STRING1 ; SINGLE @ override
Make UpgradeActivity public
<nb> public class FMLRelauncher } catch ( Exception e ) { + if ( RelaunchLibraryManager . downloadMonitor == null ) + { + e . printStackTrace ( ) ; + } popupWindow = null ; RelaunchLibraryManager . downloadMonitor . makeHeadless ( ) ; }
Make the exception print for headless servers if the Downloader cant initalize
<nb> public class JCVideoPlayer extends FrameLayout implements View . OnClickListener , if ( onClickListener != null ) { ivStart . setOnClickListener ( onClickListener ) ; ivThumb . setOnClickListener ( onClickListener ) ; - } else b + } else { + ivStart . setOnClickListener ( this ) ; + ivThumb . setOnCl...
set start listener
<nb> public class DefaultSourceDependencyParser implements SourceDependencyParser { private void searchForDependency ( List < File > dependencies , List < File > quotedSearchPath , String include ) { for ( File searchDir : quotedSearchPath ) { File candidate = new File ( searchDir , include ) ; - if ( candidate...
A directory cannot satisfy a include dependency
<nb> import NAMESPACE ; public final class LegacyJavadocRedirectServlet extends HttpServlet { - private static final String PREFIX = STRING0 ; + private static final String PREFIX = STRING1 ; @ override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) { String request...
Fix corner case for javadoc redirector
<nb> public class SoapCxfServerTest extends RouteBuilder { ElementNameStrategy elNameStrat = new ServiceInterfaceStrategy ( CustomerService . class , true ) ; SoapJaxbDataFormat soapDataFormat = new SoapJaxbDataFormat ( jaxbPackage , elNameStrat ) ; from ( STRING0 ) SINGLE - . onException ( NoSuchCustomerExcept...
Fixed the test error of SoapCxfServerTest
<nb> public class JarDirectoryStepHelper { STRING0 , file ) ; SINGLE - copyZipEntriesToJar ( file , + copyZipEntriesToJar ( + file , outputFile , manifest , alreadyAddedEntries , <nb> public class JarDirectoryStepHelper { if ( ! isDuplicateAllowed ( entryName ) && ! alreadyAddedEntries . add ( ent...
show the name of the relevant jar when we find a duplicate file entry
<nb> COMMENT COMMENT - package NAMESPACE ; + package NAMESPACE ; import static NAMESPACE ; import static NAMESPACE ; <nb> import static NAMESPACE ; import static NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ;
Move NormalizationTest to the correct package
<nb> public class BitmapFont implements Disposable { capGlyph = getGlyph ( capChars [ i ] ) ; if ( capGlyph != null ) break ; } + if ( xGlyph == null ) xGlyph = getFirstGlyph ( ) ; capHeight = capGlyph . height ; ascent = baseLine - capHeight ;
fixed NPE if no cap glyphs
<nb> public class ServiceLocator { if ( packagesToScan . size ( ) == NUMBER0 ) { addPackageToScan ( STRING0 ) ; + addPackageToScan ( STRING1 ) ; addPackageToScan ( STRING2 ) ; addPackageToScan ( STRING3 ) ; addPackageToScan ( STRING4 ) ; <nb> public class ServiceLocator { protected Logger getLogger ( ...
Syncs default packagesToScan entries with META INF MANIFEST
<nb> import static NAMESPACE import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class WindowAnimator { mWindowPlacerLocked . requestTraversal ( ) ; } + if ( mAnimating && ! wasAnimating && Trace . isTagEnabled ( Trace ....
Add traces when windows are animating
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class BeaconConfigHelper extends BluetoothGattCallback { private byte [ ] mData ; private BeaconConfigCallback mCallback ; private BluetoothGattSe...
Removed Handler that was never used
<nb> public class WXViewUtils { } return - NUMBER0 ; } - private static int mScreenHeight = NUMBER1 ; public static int getScreenHeight ( ) { - return mScreenHeight > NUMBER1 ? mScreenHeight : WXEnvironment . sApplication . getResources ( ) + return WXEnvironment . sApplication . getResources ( ) . getD...
android revert getScreenWidth getScreenHeight cache
<nb> public class HyperLogLogPlus implements ICardinality { biasTotal += biasVector [ nearestNeighbor ] ; } - return biasTotal / ( biasVector . length ) ; + return biasTotal / nearestNeighbors . length ; } private int [ ] getNearestNeighbors ( SortedMap < Double , Integer > distanceMap )
fix bug in bias calculation
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class RoutedStoreParallelismTest { int numKeys = Integer . parseInt ( args [ argsIndex ++ ] ) ; boolean usePipeline = args [ args...
Using sequential keys instead of random to increase predictability of results
<nb> public class HttpEndpoint extends HttpCommonEndpoint { HttpHost proxy = new HttpHost ( host , port , scheme ) ; clientBuilder . setProxy ( proxy ) ; } else { - if ( ObjectHelper . isNotEmpty ( getProxyHost ( ) ) && ObjectHelper . isNotEmpty ( getProxyPort ( ) ) ) { + if ( ObjectHelper . isNotEmpty ( getP...
Revert Fixed CS
<nb> public class Config { COMMENT public static void addWhiteListEntry ( String origin , boolean subdomains ) { if ( self == null ) { + Log . e ( TAG , STRING0 ) ; return ; } self . whitelist . addWhiteListEntry ( origin , subdomains ) ; <nb> public class Config { COMMENT public static boolean isUr...
Added Log e when Config is not initialised but accessed
<nb> public final class ActivityManagerService extends ActivityManagerNative @ override public int hashCode ( ) { - return toString ( ) . hashCode ( ) ; + int hashCode = NUMBER0 ; + hashCode = NUMBER1 * hashCode + sourceUserId ; + hashCode = NUMBER1 * hashCode + uri . hashCode ( ) ; + hashCode = NUMBER1...
Speed up GrantUri hashCode
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class OStorageRemote extends OStorageAbstract implements OStorageProxy { if ( exception instanceof OTimeoutException ) SINGLE throw ( OTimeoutException ) exception ...
Fixed auto reconnection in client
<nb> public class HasChildQueryBuilderTests extends AbstractQueryTestCase < HasChildQue } public void testParseFromJSON ( ) throws IOException { - String query = copyToStringFromClasspath ( STRING0 ) . trim ( ) ; + String query = copyToStringFromClasspath ( STRING0 ) ; HasChildQueryBuilder queryBuilder = ( ...
TEST only trim for the comparison
<nb> package NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ;
Fix wrong import in Guava auto config
<nb> public class XMPPConnect implements ManagedService { } public void connectionClosedOnError ( Exception e ) { - logger . info ( STRING0 , e . getMessage ( ) ) ; + SINGLE + SINGLE + logger . warn ( STRING0 , e ) ; try { if ( ! connection . isConnected ( ) ) { initialized = false ;
Improve connectionClosedOnError logging in XMPP action
<nb> public class JSError { public final String sourceName ; COMMENT - final Node node ; + public final Node node ; COMMENT public final int lineNumber ;
Allow access to JSError node
<nb> public class TimeFormatter { this . format = new SimpleDateFormat ( pattern ) ; } + @ override public Value apply ( CoreMap m ) { try { SINGLE <nb> public class TimeFormatter { this . action = action ; } + @ override public O apply ( I in ) { O v = base . apply ( in ) ; if ( action !=...
Add override s
<nb> public class StormSubmitter { } public static String submitJar ( Map conf , String localJar ) { + if ( localJar == null ) { + throw new RuntimeException ( STRING0 ) ; + } NimbusClient client = NimbusClient . getConfiguredClient ( conf ) ; try { String uploadLocation = client . getClient ( ) . beg...
throw helpful error message if StormSubmitter used without storm client script
<nb> public abstract class AbstractWizard < T extends Step > extends DialogWrapper { } ) ; } + @ nullable + @ override + public JComponent getPreferredFocusedComponent ( ) { + JComponent component = mySteps . get ( myCurrentStep ) . getPreferredFocusedComponent ( ) ; + return component == null ? super ....
preferred focused component for wizards
<nb> public class ContextMenuLayer extends OsmandMapLayer { textView = new TextView ( view . getContext ( ) ) ; LayoutParams lp = new LayoutParams ( BASE_TEXT_SIZE , LayoutParams . WRAP_CONTENT ) ; textView . setLayoutParams ( lp ) ; - textView . setTextSize ( NUMBER0 * dm . scaledDensity ) ; + textView . set...
Revert text size increase
<nb> public class UiInspectorAction extends ToggleAction implements DumbAware { private static Vector prepareChildren ( Component toSelect , Component parent ) { Vector < ComponentNode > result = new Vector < ComponentNode > ( ) ; if ( parent == null ) { - Container root = toSelect . getParent ( ) ; - while (...
UI Inspector doesn t show UI structure for dialogs
<nb> package NAMESPACE ; + import NAMESPACE ; COMMENT COMMENT <nb> public abstract class AbstractClientService extends AbstractService < ClientServic protected AbstractClientService ( ) { } + COMMENT + COMMENT + COMMENT + COMMENT + protected Client getClient ( ) { + ClientServiceManage...
Added getServer and getClient convenience methods
<nb> public abstract class Spatial implements Savable , Cloneable , Collidable { COMMENT COMMENT public Vector3f localToWorld ( final Vector3f in , Vector3f store ) { + checkDoTransformUpdate ( ) ; return worldTransform . transformVector ( in , store ) ; } <nb> public abstract class Spatial implements S...
Fixed bug with Spatial localToWorld and Spatial worldToLocal not using checkDoTransformUpdate
<nb> public class HystrixCommandMetricsTest { int NUM_CMDS = NUMBER0 ; for ( int i = NUMBER1 ; i < NUM_CMDS ; i ++ ) { - HystrixCommand < Boolean > cmd = new SuccessCommand ( key , NUMBER2 ) ; + HystrixCommand < Boolean > cmd = new SuccessCommand ( key , NUMBER3 ) ; if ( metrics == null ) { metrics = cmd ...
Increased time spent in command to allow concurrency check to work as expected
<nb> public class TypeExtractorTest { private static final long serialVersionUID = NUMBER0 ; @ override - public void combineFirst ( Iterator < String > records , Collector < String > out ) throws Exception { - SINGLE - } - - @ override - public void combineSecond ( Iterator < String > records , Colle...
Adjusted TypeExtractorTest for updates CoGroup combiner signatures
<nb> public class StringUtil extends StringUtilRt { return - NUMBER0 ; } + @ contract ( pure = true ) + public static int lastIndexOfAny ( @ notnull CharSequence s , @ notnull final String chars ) { + for ( int i = s . length ( ) - NUMBER0 ; i >= NUMBER1 ; i -- ) { + if ( containsChar ( chars , s . charAt...
add StringUtil lastIndexOfAny
<nb> public class MergedContextConfiguration { return new String [ ] { } ; } - SINGLE - SINGLE - SINGLE + SINGLE + SINGLE + SINGLE SortedSet < String > sortedProfilesSet = new TreeSet < String > ( Arrays . asList ( activeProfiles ) ) ; return StringUtils . toStringArray ( sortedProfilesSet ) ; }
polishing developer documentation
<nb> public class DynamicChannelBuffer extends AbstractChannelBuffer { int minNewCapacity = writerIndex ( ) + minWritableBytes ; while ( newCapacity < minNewCapacity ) { newCapacity < <= NUMBER0 ; + + + SINGLE + SINGLE + SINGLE + SINGLE + if ( newCapacity == NUMBER1 ) { + throw new IllegalStateExc...
Throw IllegalStateException if DynamicChannelBuffer exceed the maximum
<nb> public class Main { LOG . info ( STRING0 ) ; LOG . info ( STRING1 ) ; LOG . info ( STRING2 ) ; - LOG . info ( STRING3 ) ; - LOG . info ( STRING4 ) ; + LOG . info ( STRING5 ) ; + LOG . info ( STRING6 ) ; LOG . info ( STRING7 ) ; LOG . info ( STRING8 ) ; LOG . info ( STRING9 ) ; <nb> public cla...
Allow ignoreFailedFutureMigration to be configured through properties
<nb> public class AtmosphereResourceImpl implements AtmosphereResource { private final AtomicBoolean isSuspendEvent = new AtomicBoolean ( false ) ; private final AtmosphereHandler atmosphereHandler ; private final boolean writeHeaders ; - private final String padding ; + private String padding ; COMMENT ...
Output some bytes with SSE to make Firefox happy
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; import static NAMESPACE ;
Added license header
<nb> public class GoBuildingRunner extends AsyncGenericProgramRunner { throw new ExecutionException ( STRING0 + outputDirectory . getAbsolutePath ( ) ) ; } } - if ( ! outputFile . setExecutable ( true ) ) { + if ( ! prepareFile ( outputFile ) ) { throw new ExecutionException ( STRING1 + outputFile . getAbso...
Add elf magic number into temporary executable file in order to go treates it as an object file
<nb> public class Node extends ClusterEntity { public BufferInfo getBufferInfo ( ) { try { return new BufferInfo ( - api . path ( routes . BufferResource ( ) . utilization ( ) , BuffersResponse . class ) + api . path ( routes . BuffersResource ( ) . utilization ( ) , BuffersResponse . class ) . node ( this ...
Fixing changed resource name
<nb> COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class ODatabaseFlat extends ODatabaseRecordTx { public ODatabaseFlat ( String iURL ) { super ( iURL , ORecordFlat . RECORD_TYPE ) ; + serializer = ODatabaseDocumentTx . getD...
Fixed a bug in ODBFlat
<nb> public class GroovyScriptClass extends LightElement implements GrMemberOwner , Sy } } ) ; return Result . create ( result , PsiModificationTracker . JAVA_STRUCTURE_MODIFICATION_COUNT , myFile ) ; + } } ) ; }
drop Field caches on any change within the file
<nb> - package NAMESPACE ; + package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class UnitTestUtil { return pigServer ; } + + static public String getTestDataDir ( Class < ? > testClass ) { + return System . getProperty ( STRING0 ) + STRING1 + testClass . getName ( ) ; + } ...
move UnitTestUtil into main from test so that it can be used in other modules
<nb> public abstract class BaseQuickAdapter < T > extends RecyclerView . Adapter < RecyclerV default : convert ( ( BaseViewHolder ) holder , mData . get ( holder . getLayoutPosition ( ) - getHeaderViewsCount ( ) ) ) ; onBindDefViewHolder ( ( BaseViewHolder ) holder , mData . get ( holder . getLayoutPosition ( ) -...
other type item add click
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> public class PlanFragment private final boolean partitioned ; private final Map < Symbol , Type > symbols ; + @ jsoncreator public PlanFragment ( @ j...
Add JsonCreator annotation to PlanFragment
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; - import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ...
replace LBQ with CLQ in RangeSliceResponseResolver
<nb> public class DefaultUrlMappingEvaluator implements UrlMappingEvaluator , ClassLoa Object controllerName = namedArguments . get ( GrailsControllerClass . CONTROLLER ) ; if ( controllerName == null ) { - controllerName = binding . getVariables ( ) . get ( - GrailsControllerClass . CONTROLLER ) ; + contro...
fixed NPE when action not specified in URL mapping
<nb> public class CliLightClassGenerationSupport extends LightClassGenerationSupport JetDeclaration jetDeclaration = ( JetDeclaration ) key ; if ( ! JetPsiUtil . isLocal ( jetDeclaration ) ) { kotlinCodeAnalyzer . resolveToDescriptor ( jetDeclaration ) ; + return super . get ( slice , key ) ; } } } - ...
remove unnecessary call to super get in CliBindingTrace
<nb> public final class MathUtils { return start + ( stop - start ) * amount ; } + public static float norm ( float start , float stop , float value ) { + return ( value - start ) / ( stop - start ) ; + } + + public static float map ( float minStart , float minStop , float maxStart , float maxStop , flo...
Add norm and map to MathUtils
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT
update code example for setCallback
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - public class JetPackageDirective extends JetModifierListOwnerStub < KotlinPlaceHolderStub < JetPackageDirective > > implements JetExpression { + public class JetPackageDirective extends JetModifierListOwnerStub < KotlinPlaceHolderStub < JetPackag...
JetPackageDirective made not JetExpression
<nb> package NAMESPACE ; import NAMESPACE ; import NAMESPACE ; - import NAMESPACE ; - import NAMESPACE ; COMMENT + COMMENT COMMENT + COMMENT COMMENT public class PluginDownloadManager { + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public Update downloadPlugin ( Str...
Updated JavaDocs in PluginDownloadManager
<nb> public class DebuggerExpressionComboBox extends DebuggerEditorImpl { LinkedList < TextWithImports > recents = DebuggerRecents . getInstance ( getProject ( ) ) . getRecents ( getRecentsId ( ) ) ; ArrayList < TextWithImports > singleLine = new ArrayList < TextWithImports > ( ) ; for ( TextWithImports evaluatio...
fix debugger evaluate histiry combobox
<nb> public class AntJPADomainExporter { SINGLE SINGLE SINGLE - final Map < String , String > properties = ( configuration != null ) ? configuration . getProperties ( ) : null ; - final EntityManagerFactory emf = Persistence . createEntityManagerFactory ( persistenceUnitName , properties ) ; + Map < String ...
Remove final modifiers
<nb> public class EncodedArrayItem extends OffsettedItem < EncodedArrayItem > { } ; } - public void readFrom ( Input in ) { - super . readFrom ( in ) ; - } - - public int place ( int index , int offset ) { - return super . place ( index , offset ) ; - } - - public void writeTo ( AnnotatedOutput ...
removed superfluous methods
<nb> public class ViewPostsFragment extends ListFragment { . beginTransaction ( ) ; WPAlertDialogFragment alert = WPAlertDialogFragment . newInstance ( String . format ( getResources ( ) . getString ( R . string . error_refresh ) , ( isPage ) ? getResources ( ) . getText ( R . string . pages ) : getResources ( ) ...
Placing a try catch around the showing of an alert after the posts list refreshes
<nb> public class MapboxWebMapViewBuilder implements AirMapViewBuilder < WebViewMapFrag if ( options instanceof MapboxWebMapType ) { return MapboxWebViewMapFragment . newInstance ( options ) ; } - return null ; + throw new IllegalStateException ( STRING0 + + STRING1 + options + STRING2 ) ; } }
Replacing return null with IllegalStateException
<nb> public class TestAppRS { fb . setObjectConst ( mFsConst2 . getAllocation ( ) . getType ( ) ) ; fb . setShader ( mRes , R . raw . plastic_lights ) ; mLightsF = fb . create ( ) ; + + FullscreenBlur . initShaders ( mRes , mRS ) ; } void initRenderPasses ( ) {
Adding accidentally removed init block
<nb> public class NeoServerStartupLoggingFunctionalTest { @ before public void setupServer ( ) throws IOException { tempDir = new File ( ServerTestUtils . createTempDir ( ) . getAbsolutePath ( ) + File . separator + STRING0 ) ; - FileUtils . moveDirectory ( new File ( STRING1 ) , tempDir ) ; appender = new ...
Removed file copy operations from setup teardown so that the tests run in the IDE properly
<nb> import NAMESPACE ; COMMENT COMMENT COMMENT + COMMENT COMMENT COMMENT COMMENT
Add rain measure
<nb> import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT public class PennTreeReaderTest extends TestCase { public void testRead ( ) throws IOException { String treeText = STRING0 ;
Add a small bit of documentation
<nb> public class GraphPath { this . edges = new LinkedList < Edge > ( ) ; for ( State cur = lastState ; cur != null ; cur = cur . getBackState ( ) ) { states . addFirst ( cur ) ; - if ( cur . getBackEdge ( ) != null ) + + SINGLE + if ( cur . getBackEdge ( ) != null && cur . getBackState ( ) != null ) { ...
Don t include the backEdge of the initial state in path edges
<nb> public abstract class Toolkit < C , T extends C , L extends BaseTableLayout > { COMMENT public void setWidget ( L layout , Cell cell , C widget ) { + if ( cell . widget == widget ) return ; removeChild ( ( T ) layout . table , ( C ) cell . widget ) ; cell . widget = widget ; if ( widget != null ) add...
TableLayout don t do anything if cell already has widget
<nb> public class DefaultProjectStoreImpl extends ProjectStoreImpl { myElement = projectManager . getDefaultProjectRootElement ( ) ; } + @ nullable Element getStateCopy ( ) { - return ( Element ) myProjectManager . getDefaultProjectRootElement ( ) . clone ( ) ; + final Element element = myProjectManager ....
mike fix NPE on creating new project with empty config dir
<nb> public class BytesStreamOutput extends StreamOutput implements BytesStream { protected int count ; COMMENT - COMMENT + COMMENT COMMENT public BytesStreamOutput ( ) { - this ( BigArrays . PAGE_SIZE_IN_BYTES ) ; + SINGLE + SINGLE + this ( NUMBER0 ) ; } COMMENT
Fix initial sizing of BytesStreamOutput
<nb> public class UnpackMojo extends AbstractAndroidMojo } else { + outputDirectory . mkdirs ( ) ; + for ( Artifact artifact : getRelevantCompileArtifacts ( ) ) {
automatically create outputDirectory
<nb> public class DeepLearningTask extends FrameTask < DeepLearningTask > { ( ( Neurons . Linear ) neurons [ neurons . length - NUMBER0 ] ) . fprop ( ) ; SINGLE if ( offset > NUMBER1 ) { - double mul = minfo . data_info ( ) . _normRespMul [ NUMBER1 ] ; - double sub = minfo . data_info ( ) . _normRespSub [ NUM...
Fix offset in DL for exponential family that doesn t do standardization
<nb> public class FileUtils COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class FileUtils return renameFile ( toMove , endFile ) ? toMove : null ; } + public static void moveFiles ( File fromDirectory , File toDirectory ) + { + if ( ! fromDirectory . isDir...
Added utility method for moving files between directories
<nb> public class MessageList MessageInfoHolder holder = iter . next ( ) ; if ( holder . dirty ) { + if ( holder . selected ) + { + mSelectedCount -- ; + toggleBatchButtons ( ) ; + } iter . remove ( ) ; } }
make batch buttons behave correctly if the last selected item is deleted
<nb> public class Sql { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Sql { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class Sql { COMMENT COMMENT COMMENT - COMMENT + COMMENT COMMENT COMMENT ...
SQL named parameters in Sql executeUpdate
<nb> public class TestSemPredEvalParser extends BaseTest { assertEquals ( expecting , found ) ; } - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT - COMMENT + @ test public void testPredTestedEvenWhenUnAmbig ( ) throws Exception { + Stri...
add unit test
<nb> COMMENT - COMMENT + COMMENT COMMENT COMMENT COMMENT <nb> public class DarculaButtonPainter implements Border , UIResource { @ override public Insets getBorderInsets ( Component c ) { - return new InsetsUIResource ( NUMBER0 , NUMBER1 , NUMBER0 , NUMBER1 ) ; + return new InsetsUIResource ( NU...
make buttons bigger fix text centering
<nb> public class PipManager { stackInfo = mActivityManager . getStackInfo ( PINNED_STACK_ID ) ; if ( stackInfo == null ) { Log . w ( TAG , STRING0 ) ; - closeInternal ( false ) ; + closePipInternal ( false ) ; return ; } } catch ( RemoteException e ) { <nb> public class PipManager { } } SINGLE ...
Rename closeInternal to closePipInternal
<nb> public class ClassNode extends AnnotatedNode implements Opcodes { if ( declaredMethods . isEmpty ( ) ) { method = addMethod ( STRING0 , ACC_PUBLIC | ACC_STATIC , STRING1 , Parameter . EMPTY_ARRAY , new BlockStatement ( ) ) ; + method . setSynthetic ( true ) ; } else { method = ( MethodNode ) declared...
mark the default static initializer as synthetic
<nb> public abstract class TextUtils { sb . append ( STRING0 ) ; } else if ( c == STRING1 ) { sb . append ( STRING2 ) ; + } else if ( c == STRING3 ) { + sb . append ( STRING4 ) ; } else { sb . append ( c ) ; }
TextUtils java does not escape ampersand character
<nb> public class CheckInDialogFragment extends SherlockDialogFragment { final int episode = getArguments ( ) . getInt ( ShareItems . EPISODE ) ; SINGLE - mGetGlueChecked = prefs . getBoolean ( SeriesGuidePreferences . KEY_SHAREWITHTRAKT , false ) ; + mGetGlueChecked = prefs . getBoolean ( SeriesGuidePreferen...
Fix service states not saving correctly
<nb> public final class ActivityStackSupervisor implements DisplayListener { SINGLE if ( ! aInfo . processName . equals ( STRING0 ) ) { if ( ( startFlags & ActivityManager . START_FLAG_DEBUG ) != NUMBER0 ) { - mService . setDebugApp ( aInfo . processName , true , false ) ; + final ProcessRecord app = mService...
Do not set waitForDebugger if the process to be debugged already started
<nb> import NAMESPACE ; public class ProtocolProviderFactoryIrcImpl extends ProtocolProviderFactory { + COMMENT + COMMENT + COMMENT public ProtocolProviderFactoryIrcImpl ( ) { super ( IrcActivator . getBundleContext ( ) , ProtocolNames . IRC ) ; <nb> public class ProtocolProviderFactoryIrcImpl ret...
Added some comments
<nb> public abstract class DefaultTraversalVisitor < R , C > process ( node . getLeft ( ) , context ) ; process ( node . getRight ( ) , context ) ; - if ( node . getCriteria ( ) . get ( ) instanceof JoinOn ) { - process ( ( ( JoinOn ) node . getCriteria ( ) . get ( ) ) . getExpression ( ) , context ) ; - } ...
Fix NoSuchElementException when cross join is used inside IN subquery
<nb> public class MemoryPasswordSafe extends BasePasswordSafeProvider { @ override protected int getMinutesToLive ( ) { - return Registry . intValue ( STRING0 ) ; + return MemoryPasswordSafe . this . getMinutesToLive ( ) ; } } ; + protected int getMinutesToLive ( ) { + return Registry . intValue ( S...
allow TTL customization
<nb> + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT + COMMENT package NAMESPACE ; + import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; import NAMESPACE ; <nb> import NAMESPACE ;...
update test data