signature
stringlengths
43
39.1k
implementation
stringlengths
0
450k
public class UploadServlet { /** * Process an HTML get or post . * @ exceptionServletException From inherited class . * @ exceptionIOException From inherited class . */ public void sendForm ( HttpServletRequest req , HttpServletResponse res , String strReceiveMessage , Properties properties ) throws ServletException , IOException { } }
res . setContentType ( "text/html" ) ; PrintWriter out = res . getWriter ( ) ; out . write ( "<html>" + RETURN + "<head>" + RETURN + "<title>" + this . getTitle ( ) + "</title>" + RETURN + "</head>" + RETURN + "<body>" + RETURN + "<center><b>" + this . getTitle ( ) + "</b></center><p />" + RETURN ) ; String strServletPath = null ; try { strServletPath = req . getRequestURI ( ) ; // Path ( ) ; } catch ( Exception ex ) { strServletPath = null ; } if ( strServletPath == null ) strServletPath = "servlet/" + UploadServlet . class . getName ( ) ; // Never // strServletPath = " http : / / localhost / jbackup / servlet / com . tourgeek . jbackup . Servlet " ; out . write ( strReceiveMessage ) ; // Status of previous upload out . write ( "<p /><form action=\"" + strServletPath + "\"" ) ; out . write ( " method=\"post\"" + RETURN ) ; out . write ( " enctype=\"multipart/form-data\">" + RETURN ) ; // TARGET = _ top // out . write ( " ACTION = " http : / / www45 . visto . com / ? uid = 219979 & service = fileaccess & method = upload & nextpage = fa % 3Dafter _ upload . html & errorpage = fa _ upload @ . html & overwritepage = fa = upload _ replace _ dialog . html " > // out . write ( " What is your name ? < INPUT TYPE = TEXT NAME = submitter > < BR > " + RETURN ) ; String strFormHTML = this . getFormHTML ( ) ; if ( ( strFormHTML != null ) && ( strFormHTML . length ( ) > 0 ) ) out . write ( strFormHTML ) ; out . write ( "Which file to upload? <input type=\"file\" name=\"file\" />" + RETURN ) ; this . writeAfterHTML ( out , req , properties ) ; out . write ( "<input type=\"submit\" value=\"upload\" />" + RETURN ) ; out . write ( "</form></p>" + RETURN ) ; out . write ( "</body>" + RETURN + "</html>" + RETURN ) ;
public class SimpleHTMLTag { /** * Sets a property of the tag by key . * @ param key Property key * @ param value Property value * @ return This tag */ public SimpleHTMLTag setProperty ( String key , String value ) { } }
key = UniformUtils . checkPropertyNameAndLowerCase ( key ) ; if ( properties == null ) { properties = new HashMap < > ( ) ; } properties . put ( key , value ) ; return this ;
public class CommerceDiscountRuleLocalServiceBaseImpl { /** * Adds the commerce discount rule to the database . Also notifies the appropriate model listeners . * @ param commerceDiscountRule the commerce discount rule * @ return the commerce discount rule that was added */ @ Indexable ( type = IndexableType . REINDEX ) @ Override public CommerceDiscountRule addCommerceDiscountRule ( CommerceDiscountRule commerceDiscountRule ) { } }
commerceDiscountRule . setNew ( true ) ; return commerceDiscountRulePersistence . update ( commerceDiscountRule ) ;
public class HttpRequest { /** * 将请求参数转换成Map * @ param map Map * @ return Map */ public Map < String , String > getParametersToMap ( Map < String , String > map ) { } }
if ( map == null ) map = new LinkedHashMap < > ( ) ; final Map < String , String > map0 = map ; getParameters ( ) . forEach ( ( k , v ) -> map0 . put ( k , v ) ) ; return map0 ;
public class SortedBugCollection { /** * Add a BugInstance to this BugCollection . This just calls add ( bugInstance , * true ) . * @ param bugInstance * the BugInstance * @ return true if the BugInstance was added , or false if a matching * BugInstance was already in the BugCollection */ @ Override public boolean add ( BugInstance bugInstance ) { } }
return add ( bugInstance , bugInstance . getFirstVersion ( ) == 0L && bugInstance . getLastVersion ( ) == 0L ) ;
public class MasterSlave { /** * Open a new connection to a Redis Master - Slave server / servers using the supplied { @ link RedisURI } and the supplied * { @ link RedisCodec codec } to encode / decode keys . * This { @ link MasterSlave } performs auto - discovery of nodes using either Redis Sentinel or Master / Slave . A { @ link RedisURI } * can point to either a master or a replica host . * @ param redisClient the Redis client . * @ param codec Use this codec to encode / decode keys and values , must not be { @ literal null } . * @ param redisURI the Redis server to connect to , must not be { @ literal null } . * @ param < K > Key type . * @ param < V > Value type . * @ return a new connection . */ public static < K , V > StatefulRedisMasterSlaveConnection < K , V > connect ( RedisClient redisClient , RedisCodec < K , V > codec , RedisURI redisURI ) { } }
LettuceAssert . notNull ( redisClient , "RedisClient must not be null" ) ; LettuceAssert . notNull ( codec , "RedisCodec must not be null" ) ; LettuceAssert . notNull ( redisURI , "RedisURI must not be null" ) ; return getConnection ( connectAsyncSentinelOrAutodiscovery ( redisClient , codec , redisURI ) , redisURI ) ;
public class RulesDefinitionXmlLoader { /** * Loads rules by reading the XML input stream . The input stream is not always closed by the method , so it * should be handled by the caller . * @ since 4.3 */ public void load ( RulesDefinition . NewRepository repo , InputStream input , String encoding ) { } }
load ( repo , input , Charset . forName ( encoding ) ) ;
public class AbstractFunction { /** * Creates a POWER ( base , exponent ) function that returns the value of the given base * expression power the given exponent expression . * @ param base The base expression . * @ param exponent The exponent expression . * @ return The POWER ( base , exponent ) function . */ @ NonNull public static Expression power ( @ NonNull Expression base , @ NonNull Expression exponent ) { } }
if ( base == null || exponent == null ) { throw new IllegalArgumentException ( "base or exponent cannot be null." ) ; } return new Expression . FunctionExpression ( "POWER()" , Arrays . asList ( base , exponent ) ) ;
public class MonitorService { /** * Deletes the given label from the monitor with the given id . * @ param monitorId The id of the monitor with the label * @ param label The label to delete * @ return This object */ public MonitorService deleteLabel ( String monitorId , Label label ) { } }
HTTP . DELETE ( String . format ( "/v1/monitors/%s/labels/%s" , monitorId , label . getKey ( ) ) ) ; return this ;
public class CommonOps_DDRM { /** * The Kronecker product of two matrices is defined as : < br > * C < sub > ij < / sub > = a < sub > ij < / sub > B < br > * where C < sub > ij < / sub > is a sub matrix inside of C & isin ; & real ; < sup > m * k & times ; n * l < / sup > , * A & isin ; & real ; < sup > m & times ; n < / sup > , and B & isin ; & real ; < sup > k & times ; l < / sup > . * @ param A The left matrix in the operation . Not modified . * @ param B The right matrix in the operation . Not modified . * @ param C Where the results of the operation are stored . Modified . */ public static void kron ( DMatrixRMaj A , DMatrixRMaj B , DMatrixRMaj C ) { } }
int numColsC = A . numCols * B . numCols ; int numRowsC = A . numRows * B . numRows ; if ( C . numCols != numColsC || C . numRows != numRowsC ) { throw new MatrixDimensionException ( "C does not have the expected dimensions" ) ; } // TODO see comment below // this will work well for small matrices // but an alternative version should be made for large matrices for ( int i = 0 ; i < A . numRows ; i ++ ) { for ( int j = 0 ; j < A . numCols ; j ++ ) { double a = A . get ( i , j ) ; for ( int rowB = 0 ; rowB < B . numRows ; rowB ++ ) { for ( int colB = 0 ; colB < B . numCols ; colB ++ ) { double val = a * B . get ( rowB , colB ) ; C . set ( i * B . numRows + rowB , j * B . numCols + colB , val ) ; } } } }
public class MMDCfgPanel { /** * < editor - fold defaultstate = " collapsed " desc = " Generated Code " > / / GEN - BEGIN : initComponents */ private void initComponents ( ) { } }
java . awt . GridBagConstraints gridBagConstraints ; jScrollPane1 = new javax . swing . JScrollPane ( ) ; jPanel6 = new javax . swing . JPanel ( ) ; jPanel3 = new javax . swing . JPanel ( ) ; jLabel2 = new javax . swing . JLabel ( ) ; spinnerConnectorWidth = new javax . swing . JSpinner ( ) ; jLabel5 = new javax . swing . JLabel ( ) ; spinnerCollapsatorSize = new javax . swing . JSpinner ( ) ; jLabel6 = new javax . swing . JLabel ( ) ; spinnerCollapsatorWidth = new javax . swing . JSpinner ( ) ; jLabel7 = new javax . swing . JLabel ( ) ; spinnerJumpLinkWidth = new javax . swing . JSpinner ( ) ; jPanel10 = new javax . swing . JPanel ( ) ; colorChooserCollapsatorBackground = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooserJumpLink = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooserCollapsatorBorder = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooserConnectorColor = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; jPanel4 = new javax . swing . JPanel ( ) ; colorChooserPaperColor = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; checkBoxShowGrid = new javax . swing . JCheckBox ( ) ; colorChooserGridColor = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; spinnerGridStep = new javax . swing . JSpinner ( ) ; jLabel1 = new javax . swing . JLabel ( ) ; jPanel13 = new javax . swing . JPanel ( ) ; comboBoxRenderQuality = new javax . swing . JComboBox ( ) ; jPanel2 = new javax . swing . JPanel ( ) ; checkBoxDropShadow = new javax . swing . JCheckBox ( ) ; jPanel7 = new javax . swing . JPanel ( ) ; buttonFont = new javax . swing . JButton ( ) ; jPanel8 = new javax . swing . JPanel ( ) ; buttonOpenShortcutEditor = new javax . swing . JButton ( ) ; panelScalingModifiers = new javax . swing . JPanel ( ) ; checkBoxScalingCTRL = new javax . swing . JCheckBox ( ) ; checkBoxScalingALT = new javax . swing . JCheckBox ( ) ; checkBoxScalingSHIFT = new javax . swing . JCheckBox ( ) ; checkBoxScalingMETA = new javax . swing . JCheckBox ( ) ; jPanel11 = new javax . swing . JPanel ( ) ; colorChooserRootText = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooserRootBackground = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooser1stBackground = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooser2ndBackground = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooser1stText = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; colorChooser2ndText = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; jPanel12 = new javax . swing . JPanel ( ) ; labelBorderWidth = new javax . swing . JLabel ( ) ; spinnerElementBorderWidth = new javax . swing . JSpinner ( ) ; jPanel14 = new javax . swing . JPanel ( ) ; slider1stLevelHorzGap = new javax . swing . JSlider ( ) ; jPanel15 = new javax . swing . JPanel ( ) ; slider1stLevelVertGap = new javax . swing . JSlider ( ) ; jPanel16 = new javax . swing . JPanel ( ) ; slider2ndLevelHorzGap = new javax . swing . JSlider ( ) ; jPanel17 = new javax . swing . JPanel ( ) ; slider2ndLevelVertGap = new javax . swing . JSlider ( ) ; jPanel1 = new javax . swing . JPanel ( ) ; checkboxUseInsideBrowser = new javax . swing . JCheckBox ( ) ; checkboxRelativePathsForFilesInTheProject = new javax . swing . JCheckBox ( ) ; checkBoxUnfoldCollapsedTarget = new javax . swing . JCheckBox ( ) ; checkBoxCopyColorInfoToNewAllowed = new javax . swing . JCheckBox ( ) ; checkBoxKnowledgeFolderAutogenerationAllowed = new javax . swing . JCheckBox ( ) ; checkBoxWatchFileRefactoring = new javax . swing . JCheckBox ( ) ; checkBoxIgnoreWhereUsedRequests = new javax . swing . JCheckBox ( ) ; labelMiscNeedsReloading = new javax . swing . JLabel ( ) ; checkboxTrimTopicText = new javax . swing . JCheckBox ( ) ; jPanel5 = new javax . swing . JPanel ( ) ; colorChooserSelectLine = new com . igormaznitsa . nbmindmap . nb . swing . ColorChooserButton ( ) ; jLabel3 = new javax . swing . JLabel ( ) ; spinnerSelectLineWidth = new javax . swing . JSpinner ( ) ; jLabel4 = new javax . swing . JLabel ( ) ; spinnerSelectLineGap = new javax . swing . JSpinner ( ) ; jPanel9 = new javax . swing . JPanel ( ) ; buttonAbout = new javax . swing . JButton ( ) ; donateButton1 = new com . igormaznitsa . nbmindmap . nb . swing . DonateButton ( ) ; buttonResetSettings = new javax . swing . JButton ( ) ; buttonExportSettings = new javax . swing . JButton ( ) ; buttonImportSettings = new javax . swing . JButton ( ) ; filler4 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 16 ) , new java . awt . Dimension ( 0 , 16 ) , new java . awt . Dimension ( 32767 , 16 ) ) ; filler5 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 32767 ) ) ; filler2 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 32767 ) ) ; filler6 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 32767 ) ) ; filler7 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 16 ) , new java . awt . Dimension ( 0 , 16 ) , new java . awt . Dimension ( 32767 , 16 ) ) ; filler1 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 32767 , 0 ) ) ; filler3 = new javax . swing . Box . Filler ( new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 0 ) , new java . awt . Dimension ( 0 , 32767 ) ) ; setLayout ( new java . awt . BorderLayout ( ) ) ; jPanel6 . setLayout ( new java . awt . GridBagLayout ( ) ) ; java . util . ResourceBundle bundle = java . util . ResourceBundle . getBundle ( "com/igormaznitsa/nbmindmap/i18n/Bundle" ) ; // NOI18N jPanel3 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.jPanel3.border.title" ) ) ) ; // NOI18N jPanel3 . setLayout ( new java . awt . GridBagLayout ( ) ) ; jLabel2 . setText ( bundle . getString ( "MMDCfgPanel.jLabel2.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHEAST ; jPanel3 . add ( jLabel2 , gridBagConstraints ) ; spinnerConnectorWidth . setModel ( new javax . swing . SpinnerNumberModel ( Float . valueOf ( 0.1f ) , Float . valueOf ( 0.05f ) , Float . valueOf ( 20.0f ) , Float . valueOf ( 0.01f ) ) ) ; spinnerConnectorWidth . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { spinnerConnectorWidthStateChanged ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . ipadx = 82 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel3 . add ( spinnerConnectorWidth , gridBagConstraints ) ; jLabel5 . setText ( bundle . getString ( "MMDCfgPanel.jLabel5.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHEAST ; jPanel3 . add ( jLabel5 , gridBagConstraints ) ; spinnerCollapsatorSize . setModel ( new javax . swing . SpinnerNumberModel ( 5 , 3 , 500 , 1 ) ) ; spinnerCollapsatorSize . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { spinnerCollapsatorSizeStateChanged ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . ipadx = 93 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel3 . add ( spinnerCollapsatorSize , gridBagConstraints ) ; jLabel6 . setText ( bundle . getString ( "MMDCfgPanel.jLabel6.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 3 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHEAST ; jPanel3 . add ( jLabel6 , gridBagConstraints ) ; spinnerCollapsatorWidth . setModel ( new javax . swing . SpinnerNumberModel ( Float . valueOf ( 1.0f ) , Float . valueOf ( 0.01f ) , Float . valueOf ( 100.0f ) , Float . valueOf ( 0.1f ) ) ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 3 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . ipadx = 82 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel3 . add ( spinnerCollapsatorWidth , gridBagConstraints ) ; jLabel7 . setText ( bundle . getString ( "MMDCfgPanel.jLabel7.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHEAST ; jPanel3 . add ( jLabel7 , gridBagConstraints ) ; spinnerJumpLinkWidth . setModel ( new javax . swing . SpinnerNumberModel ( Float . valueOf ( 0.1f ) , Float . valueOf ( 0.05f ) , Float . valueOf ( 20.0f ) , Float . valueOf ( 0.01f ) ) ) ; spinnerJumpLinkWidth . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { spinnerJumpLinkWidthStateChanged ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; gridBagConstraints . ipadx = 82 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel3 . add ( spinnerJumpLinkWidth , gridBagConstraints ) ; jPanel10 . setBorder ( null ) ; jPanel10 . setLayout ( new java . awt . GridLayout ( 2 , 2 ) ) ; colorChooserCollapsatorBackground . setText ( bundle . getString ( "MMDCfgPanel.colorChooserCollapsatorBackground.text" ) ) ; // NOI18N colorChooserCollapsatorBackground . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserCollapsatorBackground . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserCollapsatorBackgroundActionPerformed ( evt ) ; } } ) ; jPanel10 . add ( colorChooserCollapsatorBackground ) ; colorChooserJumpLink . setText ( bundle . getString ( "MMDCfgPanel.colorChooserJumpLink.text" ) ) ; // NOI18N colorChooserJumpLink . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserJumpLink . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserJumpLinkActionPerformed ( evt ) ; } } ) ; jPanel10 . add ( colorChooserJumpLink ) ; colorChooserCollapsatorBorder . setText ( bundle . getString ( "MMDCfgPanel.colorChooserCollapsatorBorder.text" ) ) ; // NOI18N colorChooserCollapsatorBorder . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserCollapsatorBorder . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserCollapsatorBorderActionPerformed ( evt ) ; } } ) ; jPanel10 . add ( colorChooserCollapsatorBorder ) ; colorChooserConnectorColor . setText ( bundle . getString ( "MMDCfgPanel.colorChooserConnectorColor.text" ) ) ; // NOI18N colorChooserConnectorColor . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserConnectorColor . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserConnectorColorActionPerformed ( evt ) ; } } ) ; jPanel10 . add ( colorChooserConnectorColor ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 4 ; gridBagConstraints . gridwidth = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; jPanel3 . add ( jPanel10 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel6 . add ( jPanel3 , gridBagConstraints ) ; jPanel4 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.jPanel4.border.title" ) ) ) ; // NOI18N jPanel4 . setLayout ( new java . awt . GridBagLayout ( ) ) ; colorChooserPaperColor . setText ( bundle . getString ( "MMDCfgPanel.colorChooserPaperColor.text" ) ) ; // NOI18N colorChooserPaperColor . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserPaperColor . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserPaperColorActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 2 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel4 . add ( colorChooserPaperColor , gridBagConstraints ) ; checkBoxShowGrid . setText ( bundle . getString ( "MMDCfgPanel.checkBoxShowGrid.text" ) ) ; // NOI18N checkBoxShowGrid . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxShowGridActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . gridwidth = 2 ; gridBagConstraints . ipady = 10 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel4 . add ( checkBoxShowGrid , gridBagConstraints ) ; colorChooserGridColor . setText ( bundle . getString ( "MMDCfgPanel.colorChooserGridColor.text" ) ) ; // NOI18N colorChooserGridColor . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserGridColor . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserGridColorActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 2 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel4 . add ( colorChooserGridColor , gridBagConstraints ) ; spinnerGridStep . setModel ( new javax . swing . SpinnerNumberModel ( 15 , 2 , 500 , 1 ) ) ; spinnerGridStep . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { spinnerGridStepStateChanged ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . ipadx = 31 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel4 . add ( spinnerGridStep , gridBagConstraints ) ; jLabel1 . setText ( bundle . getString ( "MMDCfgPanel.jLabel1.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . ipady = 11 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel4 . add ( jLabel1 , gridBagConstraints ) ; jPanel13 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.RenderQuality.border.title" ) ) ) ; // NOI18N jPanel13 . setLayout ( new java . awt . GridLayout ( 1 , 0 ) ) ; comboBoxRenderQuality . setModel ( new DefaultComboBoxModel < RenderQuality > ( RenderQuality . values ( ) ) ) ; comboBoxRenderQuality . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { comboBoxRenderQualityActionPerformed ( evt ) ; } } ) ; jPanel13 . add ( comboBoxRenderQuality ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . gridwidth = 3 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel4 . add ( jPanel13 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel6 . add ( jPanel4 , gridBagConstraints ) ; jPanel2 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.jPanel2.border.title" ) ) ) ; // NOI18N jPanel2 . setLayout ( new java . awt . GridBagLayout ( ) ) ; checkBoxDropShadow . setText ( bundle . getString ( "MMDCfgPanel.checkBoxDropShadow.text" ) ) ; // NOI18N checkBoxDropShadow . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxDropShadowActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel2 . add ( checkBoxDropShadow , gridBagConstraints ) ; jPanel7 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.jPanel7.border.title" ) ) ) ; // NOI18N buttonFont . setText ( "..." ) ; // NOI18N buttonFont . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { buttonFontActionPerformed ( evt ) ; } } ) ; javax . swing . GroupLayout jPanel7Layout = new javax . swing . GroupLayout ( jPanel7 ) ; jPanel7 . setLayout ( jPanel7Layout ) ; jPanel7Layout . setHorizontalGroup ( jPanel7Layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( jPanel7Layout . createSequentialGroup ( ) . addContainerGap ( ) . addComponent ( buttonFont , javax . swing . GroupLayout . DEFAULT_SIZE , 263 , Short . MAX_VALUE ) . addContainerGap ( ) ) ) ; jPanel7Layout . setVerticalGroup ( jPanel7Layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( jPanel7Layout . createSequentialGroup ( ) . addComponent ( buttonFont ) . addContainerGap ( javax . swing . GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 7 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel2 . add ( jPanel7 , gridBagConstraints ) ; jPanel8 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.ShortCutsTitle" ) ) ) ; // NOI18N buttonOpenShortcutEditor . setText ( bundle . getString ( "MMDCfgPanel.ShortCutsButtonText" ) ) ; // NOI18N buttonOpenShortcutEditor . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { buttonOpenShortcutEditorActionPerformed ( evt ) ; } } ) ; panelScalingModifiers . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.panelScalingModifiers.border.title" ) ) ) ; // NOI18N checkBoxScalingCTRL . setText ( "CTRL" ) ; // NOI18N checkBoxScalingCTRL . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxScalingCTRLActionPerformed ( evt ) ; } } ) ; checkBoxScalingALT . setText ( "ALT" ) ; // NOI18N checkBoxScalingALT . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxScalingALTActionPerformed ( evt ) ; } } ) ; checkBoxScalingSHIFT . setText ( "SHIFT" ) ; // NOI18N checkBoxScalingSHIFT . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxScalingSHIFTActionPerformed ( evt ) ; } } ) ; checkBoxScalingMETA . setText ( "META" ) ; // NOI18N checkBoxScalingMETA . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxScalingMETAActionPerformed ( evt ) ; } } ) ; javax . swing . GroupLayout panelScalingModifiersLayout = new javax . swing . GroupLayout ( panelScalingModifiers ) ; panelScalingModifiers . setLayout ( panelScalingModifiersLayout ) ; panelScalingModifiersLayout . setHorizontalGroup ( panelScalingModifiersLayout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( panelScalingModifiersLayout . createSequentialGroup ( ) . addContainerGap ( ) . addComponent ( checkBoxScalingCTRL ) . addPreferredGap ( javax . swing . LayoutStyle . ComponentPlacement . RELATED ) . addComponent ( checkBoxScalingALT ) . addPreferredGap ( javax . swing . LayoutStyle . ComponentPlacement . RELATED ) . addComponent ( checkBoxScalingSHIFT ) . addPreferredGap ( javax . swing . LayoutStyle . ComponentPlacement . RELATED ) . addComponent ( checkBoxScalingMETA ) . addContainerGap ( javax . swing . GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ; panelScalingModifiersLayout . setVerticalGroup ( panelScalingModifiersLayout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( panelScalingModifiersLayout . createSequentialGroup ( ) . addContainerGap ( ) . addGroup ( panelScalingModifiersLayout . createParallelGroup ( javax . swing . GroupLayout . Alignment . BASELINE ) . addComponent ( checkBoxScalingCTRL ) . addComponent ( checkBoxScalingALT ) . addComponent ( checkBoxScalingSHIFT ) . addComponent ( checkBoxScalingMETA ) ) . addContainerGap ( javax . swing . GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ; javax . swing . GroupLayout jPanel8Layout = new javax . swing . GroupLayout ( jPanel8 ) ; jPanel8 . setLayout ( jPanel8Layout ) ; jPanel8Layout . setHorizontalGroup ( jPanel8Layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( jPanel8Layout . createSequentialGroup ( ) . addContainerGap ( ) . addGroup ( jPanel8Layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addComponent ( buttonOpenShortcutEditor , javax . swing . GroupLayout . DEFAULT_SIZE , javax . swing . GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) . addComponent ( panelScalingModifiers , javax . swing . GroupLayout . DEFAULT_SIZE , javax . swing . GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) . addContainerGap ( ) ) ) ; jPanel8Layout . setVerticalGroup ( jPanel8Layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( jPanel8Layout . createSequentialGroup ( ) . addContainerGap ( ) . addComponent ( buttonOpenShortcutEditor ) . addPreferredGap ( javax . swing . LayoutStyle . ComponentPlacement . RELATED ) . addComponent ( panelScalingModifiers , javax . swing . GroupLayout . PREFERRED_SIZE , javax . swing . GroupLayout . DEFAULT_SIZE , javax . swing . GroupLayout . PREFERRED_SIZE ) . addContainerGap ( javax . swing . GroupLayout . DEFAULT_SIZE , Short . MAX_VALUE ) ) ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 8 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel2 . add ( jPanel8 , gridBagConstraints ) ; jPanel11 . setLayout ( new java . awt . GridLayout ( 3 , 2 ) ) ; colorChooserRootText . setText ( bundle . getString ( "MMDCfgPanel.colorChooserRootText.text" ) ) ; // NOI18N colorChooserRootText . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserRootText . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserRootTextActionPerformed ( evt ) ; } } ) ; jPanel11 . add ( colorChooserRootText ) ; colorChooserRootBackground . setText ( bundle . getString ( "MMDCfgPanel.colorChooserRootBackground.text" ) ) ; // NOI18N colorChooserRootBackground . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserRootBackground . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserRootBackgroundActionPerformed ( evt ) ; } } ) ; jPanel11 . add ( colorChooserRootBackground ) ; colorChooser1stBackground . setText ( bundle . getString ( "MMDCfgPanel.colorChooser1stBackground.text" ) ) ; // NOI18N colorChooser1stBackground . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooser1stBackground . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooser1stBackgroundActionPerformed ( evt ) ; } } ) ; jPanel11 . add ( colorChooser1stBackground ) ; colorChooser2ndBackground . setText ( bundle . getString ( "MMDCfgPanel.colorChooser2ndBackground.text" ) ) ; // NOI18N colorChooser2ndBackground . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooser2ndBackground . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooser2ndBackgroundActionPerformed ( evt ) ; } } ) ; jPanel11 . add ( colorChooser2ndBackground ) ; colorChooser1stText . setText ( bundle . getString ( "MMDCfgPanel.colorChooser1stText.text" ) ) ; // NOI18N colorChooser1stText . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooser1stText . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooser1stTextActionPerformed ( evt ) ; } } ) ; jPanel11 . add ( colorChooser1stText ) ; colorChooser2ndText . setText ( bundle . getString ( "MMDCfgPanel.colorChooser2ndText.text" ) ) ; // NOI18N colorChooser2ndText . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooser2ndText . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooser2ndTextActionPerformed ( evt ) ; } } ) ; jPanel11 . add ( colorChooser2ndText ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; jPanel2 . add ( jPanel11 , gridBagConstraints ) ; labelBorderWidth . setText ( bundle . getString ( "MMDCfgPanel.labelBorderWidth.text" ) ) ; // NOI18N jPanel12 . add ( labelBorderWidth ) ; spinnerElementBorderWidth . setModel ( new javax . swing . SpinnerNumberModel ( Float . valueOf ( 0.5f ) , Float . valueOf ( 0.05f ) , Float . valueOf ( 50.0f ) , Float . valueOf ( 0.1f ) ) ) ; spinnerElementBorderWidth . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { spinnerElementBorderWidthStateChanged ( evt ) ; } } ) ; jPanel12 . add ( spinnerElementBorderWidth ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel2 . add ( jPanel12 , gridBagConstraints ) ; jPanel14 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.panel1stLevelHorzGap.border.title" ) ) ) ; // NOI18N jPanel14 . setLayout ( new java . awt . BorderLayout ( ) ) ; slider1stLevelHorzGap . setMajorTickSpacing ( 30 ) ; slider1stLevelHorzGap . setMaximum ( 250 ) ; slider1stLevelHorzGap . setMinimum ( 10 ) ; slider1stLevelHorzGap . setPaintLabels ( true ) ; slider1stLevelHorzGap . setPaintTicks ( true ) ; slider1stLevelHorzGap . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { slider1stLevelHorzGapStateChanged ( evt ) ; } } ) ; jPanel14 . add ( slider1stLevelHorzGap , java . awt . BorderLayout . CENTER ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 3 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel2 . add ( jPanel14 , gridBagConstraints ) ; jPanel15 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.panel1stLevelVertGap.border.title" ) ) ) ; // NOI18N jPanel15 . setLayout ( new java . awt . BorderLayout ( ) ) ; slider1stLevelVertGap . setMajorTickSpacing ( 30 ) ; slider1stLevelVertGap . setMaximum ( 250 ) ; slider1stLevelVertGap . setMinimum ( 10 ) ; slider1stLevelVertGap . setPaintLabels ( true ) ; slider1stLevelVertGap . setPaintTicks ( true ) ; slider1stLevelVertGap . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { slider1stLevelVertGapStateChanged ( evt ) ; } } ) ; jPanel15 . add ( slider1stLevelVertGap , java . awt . BorderLayout . CENTER ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 4 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel2 . add ( jPanel15 , gridBagConstraints ) ; jPanel16 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.panel2ndLevelHorzGap.border.title" ) ) ) ; // NOI18N jPanel16 . setLayout ( new java . awt . BorderLayout ( ) ) ; slider2ndLevelHorzGap . setMajorTickSpacing ( 30 ) ; slider2ndLevelHorzGap . setMaximum ( 250 ) ; slider2ndLevelHorzGap . setMinimum ( 10 ) ; slider2ndLevelHorzGap . setPaintLabels ( true ) ; slider2ndLevelHorzGap . setPaintTicks ( true ) ; slider2ndLevelHorzGap . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { slider2ndLevelHorzGapStateChanged ( evt ) ; } } ) ; jPanel16 . add ( slider2ndLevelHorzGap , java . awt . BorderLayout . CENTER ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 5 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel2 . add ( jPanel16 , gridBagConstraints ) ; jPanel17 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.panel2ndLevelVertGap.border.title" ) ) ) ; // NOI18N jPanel17 . setLayout ( new java . awt . BorderLayout ( ) ) ; slider2ndLevelVertGap . setMajorTickSpacing ( 30 ) ; slider2ndLevelVertGap . setMaximum ( 250 ) ; slider2ndLevelVertGap . setMinimum ( 10 ) ; slider2ndLevelVertGap . setPaintLabels ( true ) ; slider2ndLevelVertGap . setPaintTicks ( true ) ; slider2ndLevelVertGap . addChangeListener ( new javax . swing . event . ChangeListener ( ) { public void stateChanged ( javax . swing . event . ChangeEvent evt ) { slider2ndLevelVertGapStateChanged ( evt ) ; } } ) ; jPanel17 . add ( slider2ndLevelVertGap , java . awt . BorderLayout . CENTER ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 6 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel2 . add ( jPanel17 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . gridheight = 4 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel6 . add ( jPanel2 , gridBagConstraints ) ; jPanel1 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.jPanel1.border.title" ) ) ) ; // NOI18N jPanel1 . setLayout ( new java . awt . GridBagLayout ( ) ) ; checkboxUseInsideBrowser . setText ( bundle . getString ( "MMDCfgPanel.checkboxUseInsideBrowser.text" ) ) ; // NOI18N checkboxUseInsideBrowser . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkboxUseInsideBrowserActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkboxUseInsideBrowser , gridBagConstraints ) ; checkboxRelativePathsForFilesInTheProject . setText ( bundle . getString ( "MMDCfgPanel.checkboxRelativePathsForFilesInTheProject.text" ) ) ; // NOI18N checkboxRelativePathsForFilesInTheProject . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkboxRelativePathsForFilesInTheProjectActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkboxRelativePathsForFilesInTheProject , gridBagConstraints ) ; checkBoxUnfoldCollapsedTarget . setText ( bundle . getString ( "MMDCfgPanel.checkBoxUnfoldCollapsedTarget.text" ) ) ; // NOI18N checkBoxUnfoldCollapsedTarget . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxUnfoldCollapsedTargetActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 3 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkBoxUnfoldCollapsedTarget , gridBagConstraints ) ; checkBoxCopyColorInfoToNewAllowed . setText ( bundle . getString ( "MMDCfgPanel.checkBoxCopyColorInfoToNewAllowed.text" ) ) ; // NOI18N checkBoxCopyColorInfoToNewAllowed . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxCopyColorInfoToNewAllowedActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 4 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkBoxCopyColorInfoToNewAllowed , gridBagConstraints ) ; checkBoxKnowledgeFolderAutogenerationAllowed . setText ( bundle . getString ( "MMDCfgPanel.checkBoxKnowledgeFolderAutogenerationAllowed.text" ) ) ; // NOI18N checkBoxKnowledgeFolderAutogenerationAllowed . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxKnowledgeFolderAutogenerationAllowedActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 5 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkBoxKnowledgeFolderAutogenerationAllowed , gridBagConstraints ) ; checkBoxWatchFileRefactoring . setText ( "Watch file refactoring (Experimental)" ) ; // NOI18N checkBoxWatchFileRefactoring . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxWatchFileRefactoringActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 6 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkBoxWatchFileRefactoring , gridBagConstraints ) ; checkBoxIgnoreWhereUsedRequests . setText ( "Turn off processing of \"Where used\" refactoring" ) ; // NOI18N checkBoxIgnoreWhereUsedRequests . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkBoxIgnoreWhereUsedRequestsActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 7 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkBoxIgnoreWhereUsedRequests , gridBagConstraints ) ; labelMiscNeedsReloading . setForeground ( java . awt . Color . red ) ; labelMiscNeedsReloading . setHorizontalAlignment ( javax . swing . SwingConstants . CENTER ) ; labelMiscNeedsReloading . setText ( "IDE should be reloaded for effect" ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 8 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( labelMiscNeedsReloading , gridBagConstraints ) ; checkboxTrimTopicText . setText ( bundle . getString ( "MMDCfgPanel.checkboxTrimTopicText.text" ) ) ; // NOI18N checkboxTrimTopicText . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { checkboxTrimTopicTextActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel1 . add ( checkboxTrimTopicText , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel6 . add ( jPanel1 , gridBagConstraints ) ; jPanel5 . setBorder ( javax . swing . BorderFactory . createTitledBorder ( bundle . getString ( "MMDCfgPanel.jPanel5.border.title" ) ) ) ; // NOI18N jPanel5 . setLayout ( new java . awt . GridBagLayout ( ) ) ; colorChooserSelectLine . setText ( bundle . getString ( "MMDCfgPanel.colorChooserSelectLine.text" ) ) ; // NOI18N colorChooserSelectLine . setHorizontalAlignment ( javax . swing . SwingConstants . LEFT ) ; colorChooserSelectLine . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { colorChooserSelectLineActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel5 . add ( colorChooserSelectLine , gridBagConstraints ) ; jLabel3 . setHorizontalAlignment ( javax . swing . SwingConstants . RIGHT ) ; jLabel3 . setText ( bundle . getString ( "MMDCfgPanel.jLabel3.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipady = 11 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel5 . add ( jLabel3 , gridBagConstraints ) ; spinnerSelectLineWidth . setModel ( new javax . swing . SpinnerNumberModel ( Float . valueOf ( 1.0f ) , Float . valueOf ( 0.02f ) , Float . valueOf ( 100.0f ) , Float . valueOf ( 0.1f ) ) ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipadx = 86 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel5 . add ( spinnerSelectLineWidth , gridBagConstraints ) ; jLabel4 . setHorizontalAlignment ( javax . swing . SwingConstants . RIGHT ) ; jLabel4 . setText ( bundle . getString ( "MMDCfgPanel.jLabel4.text" ) ) ; // NOI18N gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipady = 11 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel5 . add ( jLabel4 , gridBagConstraints ) ; spinnerSelectLineGap . setModel ( new javax . swing . SpinnerNumberModel ( 1 , 1 , 500 , 1 ) ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 1 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . ipadx = 97 ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; gridBagConstraints . weightx = 1000.0 ; jPanel5 . add ( spinnerSelectLineGap , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 3 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; gridBagConstraints . anchor = java . awt . GridBagConstraints . NORTHWEST ; jPanel6 . add ( jPanel5 , gridBagConstraints ) ; jPanel9 . setBorder ( null ) ; jPanel9 . setLayout ( new java . awt . GridBagLayout ( ) ) ; buttonAbout . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/com/igormaznitsa/nbmindmap/icons/info16.png" ) ) ) ; // NOI18N buttonAbout . setText ( bundle . getString ( "MMDCfgPanel.buttonAbout.Text" ) ) ; // NOI18N buttonAbout . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { buttonAboutActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 1 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel9 . add ( buttonAbout , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 2 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel9 . add ( donateButton1 , gridBagConstraints ) ; buttonResetSettings . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/com/igormaznitsa/nbmindmap/icons/stop16.png" ) ) ) ; // NOI18N buttonResetSettings . setText ( bundle . getString ( "MMDCfgPanel.buttonResetSettings.text" ) ) ; buttonResetSettings . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { buttonResetSettingsActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 6 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel9 . add ( buttonResetSettings , gridBagConstraints ) ; buttonExportSettings . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/com/igormaznitsa/nbmindmap/icons/document_export16.png" ) ) ) ; // NOI18N buttonExportSettings . setText ( bundle . getString ( "MMDCfgPanel.buttonExportSettings.text" ) ) ; buttonExportSettings . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { buttonExportSettingsActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 4 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel9 . add ( buttonExportSettings , gridBagConstraints ) ; buttonImportSettings . setIcon ( new javax . swing . ImageIcon ( getClass ( ) . getResource ( "/com/igormaznitsa/nbmindmap/icons/document_import16.png" ) ) ) ; // NOI18N buttonImportSettings . setText ( bundle . getString ( "MMDCfgPanel.buttonImportSettings.text" ) ) ; buttonImportSettings . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent evt ) { buttonImportSettingsActionPerformed ( evt ) ; } } ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 5 ; gridBagConstraints . fill = java . awt . GridBagConstraints . HORIZONTAL ; jPanel9 . add ( buttonImportSettings , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 3 ; jPanel9 . add ( filler4 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 7 ; gridBagConstraints . weighty = 1000.0 ; jPanel9 . add ( filler5 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; jPanel9 . add ( filler2 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; jPanel9 . add ( filler6 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 0 ; jPanel9 . add ( filler7 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 2 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . gridheight = 4 ; gridBagConstraints . fill = java . awt . GridBagConstraints . BOTH ; jPanel6 . add ( jPanel9 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 3 ; gridBagConstraints . gridy = 0 ; gridBagConstraints . weightx = 1000.0 ; jPanel6 . add ( filler1 , gridBagConstraints ) ; gridBagConstraints = new java . awt . GridBagConstraints ( ) ; gridBagConstraints . gridx = 0 ; gridBagConstraints . gridy = 4 ; gridBagConstraints . weighty = 1000.0 ; jPanel6 . add ( filler3 , gridBagConstraints ) ; jScrollPane1 . setViewportView ( jPanel6 ) ; add ( jScrollPane1 , java . awt . BorderLayout . CENTER ) ;
public class CoinEggTradeServiceRaw { /** * TODO : Sort Out Method Grammar */ public CoinEggTradeAdd getCoinEggTradeAdd ( BigDecimal amount , BigDecimal price , String type , String coin ) throws IOException { } }
return coinEggAuthenticated . getTradeAdd ( apiKey , signer , nonceFactory . createValue ( ) , amount , price , type , coin ) ;
public class CmsLogChannelTable { /** * Adds a container item for the given logger . < p > * @ param logger the logger for which to generate a container item */ public void addItemForLogger ( Logger logger ) { } }
Item item = m_container . addItem ( logger ) ; if ( item != null ) { item . getItemProperty ( TableColumn . Channel ) . setValue ( logger . getName ( ) ) ; Logger parent = logger . getParent ( ) ; item . getItemProperty ( TableColumn . ParentChannel ) . setValue ( parent != null ? parent . getName ( ) : "none" ) ; item . getItemProperty ( TableColumn . File ) . setValue ( getLogFiles ( logger ) ) ; item . getItemProperty ( TableColumn . Level ) . setValue ( LoggerLevel . fromLogger ( logger ) ) ; }
public class BeanTransformer { /** * < p > needTransform . < / p > * @ param obj a { @ link java . lang . Object } object . * @ return a boolean . */ protected boolean needTransform ( Object obj ) { } }
Class clazz = obj . getClass ( ) ; return ! clazz . isPrimitive ( ) && ! clazz . getName ( ) . startsWith ( "java." ) ;
public class JspTaglibSubTask { /** * Describe what the method does * @ exception XDocletException */ public void execute ( ) throws XDocletException { } }
if ( getJspversion ( ) . equals ( JspVersionTypes . VERSION_1_1 ) ) { setPublicId ( TLD_PUBLICID_1_1 ) ; setSystemId ( TLD_SYSTEMID_1_1 ) ; setDtdURL ( getClass ( ) . getResource ( TLD_DTD_FILE_NAME_1_1 ) ) ; } else { setPublicId ( TLD_PUBLICID_1_2 ) ; setSystemId ( TLD_SYSTEMID_1_2 ) ; setDtdURL ( getClass ( ) . getResource ( TLD_DTD_FILE_NAME_1_2 ) ) ; } startProcess ( ) ;
public class EnablingAdapter { /** * Creates and returns an enabler that listens for changes in the * specified property ( which must be a { @ link Boolean } valued * property ) and updates the target ' s enabled state accordingly . */ public static PropertyChangeListener getPropChangeEnabler ( String property , JComponent target , boolean invert ) { } }
return new PropertyChangeEnabler ( property , target , invert ) ;
public class ExtendedClassPathClassLoader { /** * Retrieves resource as input stream from a directory or jar in the filesystem . * @ param fileName * @ return */ public InputStream getResourceAsStream ( String fileName ) { } }
InputStream retval = super . getResourceAsStream ( fileName ) ; if ( retval == null ) { // String className = this . convertFileNameToClassName ( fileName ) ; // Object location = classResourceLocations . get ( className ) ; Object location = this . mixedResourceLocations . get ( fileName ) ; if ( location == null ) { return null ; } byte [ ] data ; try { data = getData ( fileName , location ) ; } catch ( IOException ioe ) { return null ; } if ( data == null ) { return null ; } return new ByteArrayInputStream ( data ) ; } return retval ;
public class CloudMe { /** * There are 3 main steps to list a folder : - generate the tree view of CloudMe storage - list all the subfolders - * list all the blobs * @ param cpath * @ return CFolderContent * @ throws CStorageException */ @ Override public CFolderContent listFolder ( final CPath cpath ) throws CStorageException { } }
CMFolder cmRoot = loadFoldersStructure ( ) ; CMFolder cmFolder = cmRoot . getFolder ( cpath ) ; if ( cmFolder == null ) { CMFolder cmParentFolder = cmRoot . getFolder ( cpath . getParent ( ) ) ; if ( cmParentFolder != null ) { CMBlob cmBlob ; try { cmBlob = getBlobByName ( cmParentFolder , cpath . getBaseName ( ) ) ; } catch ( ParseException e ) { throw new CStorageException ( "Can't parse blob at " + cpath , e ) ; } if ( cmBlob != null ) { throw new CInvalidFileTypeException ( cpath , false ) ; } } return null ; } List < CMBlob > cmBlobs = null ; try { cmBlobs = listBlobs ( cmFolder ) ; } catch ( ParseException e ) { throw new CStorageException ( e . getMessage ( ) , e ) ; } Map < CPath , CFile > map = new HashMap < CPath , CFile > ( ) ; // Adding folders for ( CMFolder childFolder : cmFolder ) { CFile cFile = childFolder . toCFolder ( ) ; map . put ( cFile . getPath ( ) , cFile ) ; } // Adding blobs for ( CMBlob cmBLob : cmBlobs ) { CBlob cBlob = cmBLob . toCBlob ( ) ; map . put ( cBlob . getPath ( ) , cBlob ) ; } return new CFolderContent ( map ) ;
public class ImageUtil { /** * Creates a new buffered image with the same sample model and color model as the source image * but with the new width and height . */ public static BufferedImage createCompatibleImage ( BufferedImage source , int width , int height ) { } }
WritableRaster raster = source . getRaster ( ) . createCompatibleWritableRaster ( width , height ) ; return new BufferedImage ( source . getColorModel ( ) , raster , false , null ) ;
public class DomainNameMapping { /** * Adds a mapping that maps the specified ( optionally wildcard ) host name to the specified output value . * < a href = " http : / / en . wikipedia . org / wiki / Wildcard _ DNS _ record " > DNS wildcard < / a > is supported as hostname . * For example , you can use { @ code * . netty . io } to match { @ code netty . io } and { @ code downloads . netty . io } . * @ param hostname the host name ( optionally wildcard ) * @ param output the output value that will be returned by { @ link # map ( String ) } when the specified host name * matches the specified input host name * @ deprecated use { @ link DomainNameMappingBuilder } to create and fill the mapping instead */ @ Deprecated public DomainNameMapping < V > add ( String hostname , V output ) { } }
map . put ( normalizeHostname ( checkNotNull ( hostname , "hostname" ) ) , checkNotNull ( output , "output" ) ) ; return this ;
public class CommerceCountryUtil { /** * Returns the last commerce country in the ordered set where uuid = & # 63 ; . * @ param uuid the uuid * @ param orderByComparator the comparator to order the set by ( optionally < code > null < / code > ) * @ return the last matching commerce country , or < code > null < / code > if a matching commerce country could not be found */ public static CommerceCountry fetchByUuid_Last ( String uuid , OrderByComparator < CommerceCountry > orderByComparator ) { } }
return getPersistence ( ) . fetchByUuid_Last ( uuid , orderByComparator ) ;
public class StreamUtils { /** * Copy all the bytes from an input stream to an output stream . * @ param is Stream to read bytes from * @ param os Stream to write bytes to * @ throws IOException */ static public void copyStream ( InputStream is , OutputStream os ) throws IOException { } }
copyStream ( is , os , DEFAULT_TRANSFER_BUFFER_SIZE ) ;
public class CoreOptions { /** * TODO comment */ public static < P extends Parser > ParserOption parser ( final Class < P > parserClass , final ParserSetup < P > setup ) { } }
return new ParserOption ( parserClass , setup ) ;
public class Etag { /** * 计算输入流的etag * @ param in 数据输入流 * @ param len 数据流长度 * @ return 数据流的etag值 * @ throws IOException 文件读取异常 */ public static String stream ( InputStream in , long len ) throws IOException { } }
if ( len == 0 ) { return "Fto5o-5ea0sNMlW_75VgGJCv2AcJ" ; } byte [ ] buffer = new byte [ 64 * 1024 ] ; byte [ ] [ ] blocks = new byte [ ( int ) ( ( len + Configuration . BLOCK_SIZE - 1 ) / Configuration . BLOCK_SIZE ) ] [ ] ; for ( int i = 0 ; i < blocks . length ; i ++ ) { long left = len - ( long ) Configuration . BLOCK_SIZE * i ; long read = left > Configuration . BLOCK_SIZE ? Configuration . BLOCK_SIZE : left ; blocks [ i ] = oneBlock ( buffer , in , ( int ) read ) ; } return resultEncode ( blocks ) ;
public class InternalSARLParser { /** * InternalSARL . g : 13153:1 : ruleXPostfixOperation returns [ EObject current = null ] : ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) ; */ public final EObject ruleXPostfixOperation ( ) throws RecognitionException { } }
EObject current = null ; EObject this_XMemberFeatureCall_0 = null ; enterRule ( ) ; try { // InternalSARL . g : 13159:2 : ( ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) ) // InternalSARL . g : 13160:2 : ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) { // InternalSARL . g : 13160:2 : ( this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? ) // InternalSARL . g : 13161:3 : this _ XMemberFeatureCall _ 0 = ruleXMemberFeatureCall ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? { if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXPostfixOperationAccess ( ) . getXMemberFeatureCallParserRuleCall_0 ( ) ) ; } pushFollow ( FOLLOW_124 ) ; this_XMemberFeatureCall_0 = ruleXMemberFeatureCall ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { current = this_XMemberFeatureCall_0 ; afterParserOrEnumRuleCall ( ) ; } // InternalSARL . g : 13169:3 : ( ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) ) ? int alt314 = 2 ; int LA314_0 = input . LA ( 1 ) ; if ( ( LA314_0 == 125 ) ) { int LA314_1 = input . LA ( 2 ) ; if ( ( synpred40_InternalSARL ( ) ) ) { alt314 = 1 ; } } else if ( ( LA314_0 == 126 ) ) { int LA314_2 = input . LA ( 2 ) ; if ( ( synpred40_InternalSARL ( ) ) ) { alt314 = 1 ; } } switch ( alt314 ) { case 1 : // InternalSARL . g : 13170:4 : ( ( ( ) ( ( ruleOpPostfix ) ) ) ) = > ( ( ) ( ( ruleOpPostfix ) ) ) { // InternalSARL . g : 13180:4 : ( ( ) ( ( ruleOpPostfix ) ) ) // InternalSARL . g : 13181:5 : ( ) ( ( ruleOpPostfix ) ) { // InternalSARL . g : 13181:5 : ( ) // InternalSARL . g : 13182:6: { if ( state . backtracking == 0 ) { current = forceCreateModelElementAndSet ( grammarAccess . getXPostfixOperationAccess ( ) . getXPostfixOperationOperandAction_1_0_0 ( ) , current ) ; } } // InternalSARL . g : 13188:5 : ( ( ruleOpPostfix ) ) // InternalSARL . g : 13189:6 : ( ruleOpPostfix ) { // InternalSARL . g : 13189:6 : ( ruleOpPostfix ) // InternalSARL . g : 13190:7 : ruleOpPostfix { if ( state . backtracking == 0 ) { if ( current == null ) { current = createModelElement ( grammarAccess . getXPostfixOperationRule ( ) ) ; } } if ( state . backtracking == 0 ) { newCompositeNode ( grammarAccess . getXPostfixOperationAccess ( ) . getFeatureJvmIdentifiableElementCrossReference_1_0_1_0 ( ) ) ; } pushFollow ( FOLLOW_2 ) ; ruleOpPostfix ( ) ; state . _fsp -- ; if ( state . failed ) return current ; if ( state . backtracking == 0 ) { afterParserOrEnumRuleCall ( ) ; } } } } } break ; } } } if ( state . backtracking == 0 ) { leaveRule ( ) ; } } catch ( RecognitionException re ) { recover ( input , re ) ; appendSkippedTokens ( ) ; } finally { } return current ;
public class BasicPathFinder { /** * Determines whether the edge can be traversed . This implementation will * check if the { @ link KamNode } or { @ link KamEdge } have been visited to * ensure there are no cycles in the resulting paths . * If the edge can be travered it will be placed on the edge { @ link Stack } , * and the edge ' s unvisited node will be placed on the node { @ link Stack } . * @ param edge { @ link KamEdge } , the kam edge to evaluate * @ param nodeStack { @ link Stack } of { @ link KamNode } , the nodes on the * current scan from the < tt > source < / tt > * @ param edgeStack { @ link Stack } of { @ link KamEdge } , the edges on the * current scan from the < tt > source < / tt > * @ return < tt > true < / tt > if the edge will be traversed , < tt > false < / tt > if * not */ private boolean pushEdge ( final KamEdge edge , final SetStack < KamNode > nodeStack , final SetStack < KamEdge > edgeStack ) { } }
if ( edgeStack . contains ( edge ) ) { return false ; } final KamNode currentNode = nodeStack . peek ( ) ; final KamNode edgeOppositeNode = ( edge . getSourceNode ( ) == currentNode ? edge . getTargetNode ( ) : edge . getSourceNode ( ) ) ; if ( nodeStack . contains ( edgeOppositeNode ) ) { return false ; } nodeStack . push ( edgeOppositeNode ) ; edgeStack . push ( edge ) ; return true ;
public class PageFlowStack { /** * Internal ( to our framework ) method for seeing whether a given action exists in a page flow that is somewhere in * the stack . If so , the page flow ' s ModuleConfig is returned . */ ModuleConfig findActionInStack ( String actionPath ) { } }
for ( int i = _stack . size ( ) - 1 ; i >= 0 ; -- i ) { ModuleConfig moduleConfig = ( ( PushedPageFlow ) _stack . elementAt ( i ) ) . getPageFlow ( ) . getModuleConfig ( ) ; if ( moduleConfig . findActionConfig ( actionPath ) != null ) { return moduleConfig ; } } return null ;
public class MethodDescriptorBenchmark { /** * Foo bar . */ @ Benchmark @ BenchmarkMode ( Mode . SampleTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public AsciiString transportSpecific ( ) { } }
AsciiString path ; if ( ( path = ( AsciiString ) imd . geRawMethodName ( method ) ) != null ) { path = new AsciiString ( "/" + method . getFullMethodName ( ) ) ; imd . setRawMethodName ( method , path ) ; } return path ;
public class ProxiedFileSystemUtils { /** * Create a { @ link FileSystem } that can perform any operations allowed the by the specified userNameToProxyAs . This * method uses the { @ link # createProxiedFileSystemUsingKeytab ( String , String , Path , URI , Configuration ) } object to perform * all its work . A specific set of configuration keys are required to be set in the given { @ link State } object : * < ul > * < li > { @ link ConfigurationKeys # FS _ PROXY _ AS _ USER _ NAME } specifies the user name to proxy as < / li > * < li > { @ link ConfigurationKeys # SUPER _ USER _ NAME _ TO _ PROXY _ AS _ OTHERS } specifies the name of the user with secure * impersonation priveleges < / li > * < li > { @ link ConfigurationKeys # SUPER _ USER _ KEY _ TAB _ LOCATION } specifies the location of the super user ' s keytab file < / li > * < ul > * @ param state The { @ link State } object that contains all the necessary key , value pairs for * { @ link # createProxiedFileSystemUsingKeytab ( String , String , Path , URI , Configuration ) } * @ param fsURI The { @ link URI } for the { @ link FileSystem } that should be created * @ param conf The { @ link Configuration } for the { @ link FileSystem } that should be created * @ return a { @ link FileSystem } that can execute commands on behalf of the specified userNameToProxyAs */ static FileSystem createProxiedFileSystemUsingKeytab ( State state , URI fsURI , Configuration conf ) throws IOException , InterruptedException { } }
Preconditions . checkArgument ( state . contains ( ConfigurationKeys . FS_PROXY_AS_USER_NAME ) ) ; Preconditions . checkArgument ( state . contains ( ConfigurationKeys . SUPER_USER_NAME_TO_PROXY_AS_OTHERS ) ) ; Preconditions . checkArgument ( state . contains ( ConfigurationKeys . SUPER_USER_KEY_TAB_LOCATION ) ) ; return createProxiedFileSystemUsingKeytab ( state . getProp ( ConfigurationKeys . FS_PROXY_AS_USER_NAME ) , state . getProp ( ConfigurationKeys . SUPER_USER_NAME_TO_PROXY_AS_OTHERS ) , new Path ( state . getProp ( ConfigurationKeys . SUPER_USER_KEY_TAB_LOCATION ) ) , fsURI , conf ) ;
public class LoggerWrapper { /** * Delegate to the appropriate method of the underlying logger . */ public void debug ( Marker marker , String format , Object ... argArray ) { } }
if ( ! logger . isDebugEnabled ( marker ) ) return ; if ( instanceofLAL ) { FormattingTuple ft = MessageFormatter . arrayFormat ( format , argArray ) ; ( ( LocationAwareLogger ) logger ) . log ( marker , fqcn , LocationAwareLogger . DEBUG_INT , ft . getMessage ( ) , argArray , ft . getThrowable ( ) ) ; } else { logger . debug ( marker , format , argArray ) ; }
public class AbstractLogger { /** * Log a formatted message at trace level . * @ param message the message to log * @ param args the arguments for that message */ public void trace ( String message , Object ... args ) { } }
if ( isDebugEnabled ( ) ) { trace ( String . format ( message , args ) , getThrowable ( args ) ) ; }
public class ProductSearchClient { /** * Makes changes to a Product resource . Only the ` display _ name ` , ` description ` , and ` labels ` * fields can be updated right now . * < p > If labels are updated , the change will not be reflected in queries until the next index * time . * < p > Possible errors : * < p > & # 42 ; Returns NOT _ FOUND if the Product does not exist . & # 42 ; Returns INVALID _ ARGUMENT if * display _ name is present in update _ mask but is missing from the request or longer than 4096 * characters . & # 42 ; Returns INVALID _ ARGUMENT if description is present in update _ mask but is * longer than 4096 characters . & # 42 ; Returns INVALID _ ARGUMENT if product _ category is present in * update _ mask . * < p > Sample code : * < pre > < code > * try ( ProductSearchClient productSearchClient = ProductSearchClient . create ( ) ) { * Product product = Product . newBuilder ( ) . build ( ) ; * FieldMask updateMask = FieldMask . newBuilder ( ) . build ( ) ; * Product response = productSearchClient . updateProduct ( product , updateMask ) ; * < / code > < / pre > * @ param product The Product resource which replaces the one on the server . product . name is * immutable . * @ param updateMask The [ FieldMask ] [ google . protobuf . FieldMask ] that specifies which fields to * update . If update _ mask isn ' t specified , all mutable fields are to be updated . Valid mask * paths include ` product _ labels ` , ` display _ name ` , and ` description ` . * @ throws com . google . api . gax . rpc . ApiException if the remote call fails */ public final Product updateProduct ( Product product , FieldMask updateMask ) { } }
UpdateProductRequest request = UpdateProductRequest . newBuilder ( ) . setProduct ( product ) . setUpdateMask ( updateMask ) . build ( ) ; return updateProduct ( request ) ;
public class JNvgraph { /** * Query size and topology information from the graph descriptor */ public static int nvgraphGetGraphStructure ( nvgraphHandle handle , nvgraphGraphDescr descrG , Object topologyData , int [ ] TType ) { } }
return checkResult ( nvgraphGetGraphStructureNative ( handle , descrG , topologyData , TType ) ) ;
public class ClientUserCodeDeploymentConfig { /** * String jarPath is searched in following order : * 1 . as absolute path , * 2 . as URL , * 3 . and in classpath . * @ param jarPaths add list of jarPaths that will be send to clusters * @ return this for chaining */ public ClientUserCodeDeploymentConfig setJarPaths ( List < String > jarPaths ) { } }
isNotNull ( jarPaths , "jarPaths" ) ; this . jarPaths . clear ( ) ; this . jarPaths . addAll ( jarPaths ) ; return this ;
public class DecimalStyle { /** * Converts the input numeric text to the internationalized form using the zero character . * @ param numericText the text , consisting of digits 0 to 9 , to convert , not null * @ return the internationalized text , not null */ String convertNumberToI18N ( String numericText ) { } }
if ( zeroDigit == '0' ) { return numericText ; } int diff = zeroDigit - '0' ; char [ ] array = numericText . toCharArray ( ) ; for ( int i = 0 ; i < array . length ; i ++ ) { array [ i ] = ( char ) ( array [ i ] + diff ) ; } return new String ( array ) ;
public class MediaApi { /** * Set the agent state to Ready * Set the current agent & # 39 ; s state to Ready on the specified media channel . * @ param mediatype The media channel . ( required ) * @ param readyForMediaData ( optional ) * @ return ApiSuccessResponse * @ throws ApiException If fail to call the API , e . g . server error or cannot deserialize the response body */ public ApiSuccessResponse readyForMedia ( String mediatype , ReadyForMediaData readyForMediaData ) throws ApiException { } }
ApiResponse < ApiSuccessResponse > resp = readyForMediaWithHttpInfo ( mediatype , readyForMediaData ) ; return resp . getData ( ) ;
public class DocumentDraftSummaryUrl { /** * Get Resource Url for DeleteDocumentDrafts * @ param documentLists List of document lists that contain documents to delete . * @ return String Resource Url */ public static MozuUrl deleteDocumentDraftsUrl ( String documentLists ) { } }
UrlFormatter formatter = new UrlFormatter ( "/api/content/documentpublishing/draft?documentLists={documentLists}" ) ; formatter . formatUrl ( "documentLists" , documentLists ) ; return new MozuUrl ( formatter . getResourceUrl ( ) , MozuUrl . UrlLocation . TENANT_POD ) ;
public class XmlConfigurer { /** * Creates basic LSParser instance and sets common * properties and configuration parameters . * @ return */ public LSParser createLSParser ( ) { } }
LSParser parser = domImpl . createLSParser ( DOMImplementationLS . MODE_SYNCHRONOUS , null ) ; configureParser ( parser ) ; return parser ;
public class ClassLoader { /** * Finds all resources of the specified name from the search path used to * load classes . The resources thus found are returned as an * { @ link java . util . Enumeration < tt > Enumeration < / tt > } of { @ link * java . net . URL < tt > URL < / tt > } objects . * < p > The search order is described in the documentation for { @ link * # getSystemResource ( String ) } . < / p > * @ param name * The resource name * @ return An enumeration of resource { @ link java . net . URL < tt > URL < / tt > } * objects * @ throws IOException * If I / O errors occur * @ since 1.2 */ public static Enumeration < URL > getSystemResources ( String name ) throws IOException { } }
ClassLoader system = getSystemClassLoader ( ) ; if ( system == null ) { return getBootstrapResources ( name ) ; } return system . getResources ( name ) ;
public class AtomicGrowingSparseMatrix { /** * { @ inheritDoc } The length of the returned row vector reflects the size of * matrix at the time of the call , which may be different from earlier calls * to { @ link # rows ( ) } */ public SparseDoubleVector getColumnVector ( int column ) { } }
checkIndices ( 0 , column ) ; rowReadLock . lock ( ) ; SparseDoubleVector values = new SparseHashDoubleVector ( rows . get ( ) ) ; for ( int row = 0 ; row < rows . get ( ) ; ++ row ) { AtomicSparseVector rowEntry = getRow ( row , - 1 , false ) ; double value = 0 ; if ( rowEntry != null && ( value = rowEntry . get ( column ) ) != 0 ) values . set ( row , value ) ; } rowReadLock . unlock ( ) ; return values ;
public class Nfs3 { /** * / * ( non - Javadoc ) * @ see com . emc . ecs . nfsclient . nfs . Nfs # wrapped _ sendWrite ( com . emc . ecs . nfsclient . nfs . NfsWriteRequest , java . lang . Long ) */ public Nfs3WriteResponse wrapped_sendWrite ( NfsWriteRequest request , final Long verifier ) throws IOException { } }
// for async write , all the writes and commit should be sent to // the same NFS server String ip = request . isSync ( ) ? _rpcWrapper . chooseIP ( request . getIpKey ( ) ) : _server ; NfsResponseHandler < Nfs3WriteResponse > responseHandler = new NfsResponseHandler < Nfs3WriteResponse > ( ) { protected Nfs3WriteResponse makeNewResponse ( ) { return new Nfs3WriteResponse ( ) ; } /* ( non - Javadoc ) * @ see com . emc . ecs . nfsclient . nfs . NfsResponseHandler # checkResponse ( com . emc . ecs . nfsclient . rpc . RpcRequest ) */ public void checkResponse ( RpcRequest request ) throws IOException { super . checkResponse ( request ) ; if ( ! ( ( NfsWriteRequest ) request ) . isSync ( ) && verifier != null && getResponse ( ) . getVerf ( ) != verifier ) { throw new NfsException ( NfsStatus . NFS3ERR_SERVERFAULT , "server restart detected" ) ; } } } ; _rpcWrapper . callRpcWrapped ( request , responseHandler , ip ) ; return responseHandler . getResponse ( ) ;
public class OtpInputStream { /** * Read an array of bytes from the stream . The method reads at most len * bytes from the input stream into offset off of the buffer . * @ return the number of bytes read . * @ exception OtpErlangDecodeException * if the next byte cannot be read . */ public int readN ( final byte [ ] abuf , final int off , final int len ) throws OtpErlangDecodeException { } }
if ( len == 0 && available ( ) == 0 ) { return 0 ; } final int i = super . read ( abuf , off , len ) ; if ( i < 0 ) { throw new OtpErlangDecodeException ( "Cannot read from input stream" ) ; } return i ;
public class JDBCStorageConnection { /** * Calculates node data size . * @ throws RepositoryException * if a database access error occurs */ public long getNodeDataSize ( String nodeIdentifier ) throws RepositoryException { } }
long dataSize = 0 ; ResultSet result = null ; try { result = findNodeDataSize ( getInternalId ( nodeIdentifier ) ) ; try { if ( result . next ( ) ) { dataSize += result . getLong ( 1 ) ; } } finally { JDBCUtils . freeResources ( result , null , null ) ; } result = findNodePropertiesOnValueStorage ( getInternalId ( nodeIdentifier ) ) ; try { while ( result . next ( ) ) { String storageDesc = result . getString ( DBConstants . COLUMN_VSTORAGE_DESC ) ; String propertyId = result . getString ( DBConstants . COLUMN_VPROPERTY_ID ) ; int orderNum = result . getInt ( DBConstants . COLUMN_VORDERNUM ) ; ValueIOChannel channel = containerConfig . valueStorageProvider . getChannel ( storageDesc ) ; dataSize += channel . getValueSize ( getIdentifier ( propertyId ) , orderNum ) ; } } finally { JDBCUtils . freeResources ( result , null , null ) ; } } catch ( IOException e ) { throw new RepositoryException ( e ) ; } catch ( SQLException e ) { throw new RepositoryException ( e . getMessage ( ) , e ) ; } return dataSize ;
public class ItemRule { /** * Returns a list of string values of this item . * @ return a list of string values */ public List < String > getValueList ( ) { } }
if ( tokensList == null ) { return null ; } if ( tokensList . isEmpty ( ) ) { return new ArrayList < > ( ) ; } else { List < String > list = new ArrayList < > ( tokensList . size ( ) ) ; for ( Token [ ] tokens : tokensList ) { list . add ( TokenParser . toString ( tokens ) ) ; } return list ; }
public class StringWalker { /** * Advances this { @ link StringWalker } until the predicate condition is met . * @ param predicate the predicate * @ return true , if successful */ public boolean walkUntil ( Predicate < StringWalker > predicate ) { } }
if ( predicate . test ( this ) ) return true ; while ( nextCharacter ( ) ) if ( predicate . test ( this ) ) return true ; return false ;
public class Job { /** * Finds a job with given dest key or returns null */ public static Job findJobByDest ( final Key destKey ) { } }
Job job = null ; for ( Job current : Job . all ( ) ) { if ( current . dest ( ) . equals ( destKey ) ) { job = current ; break ; } } return job ;
public class ExecutionItemFactory { /** * Create step execution item for a job reference * @ param jobIdentifier * @ param args * @ param nodeStep * @ param handler * @ param keepgoingOnSuccess * @ return * @ deprecated */ public static StepExecutionItem createJobRef ( final String jobIdentifier , final String [ ] args , final boolean nodeStep , final StepExecutionItem handler , final boolean keepgoingOnSuccess , final String label ) { } }
return createJobRef ( jobIdentifier , args , nodeStep , handler , keepgoingOnSuccess , null , null , null , null , null , label , false , null , false , false , null , false ) ;
public class DiagnosticsInner { /** * List Site Detector Responses . * List Site Detector Responses . * @ param resourceGroupName Name of the resource group to which the resource belongs . * @ param siteName Site Name * @ param slot Slot Name * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the { @ link ServiceFuture } object */ public ServiceFuture < List < DetectorResponseInner > > listSiteDetectorResponsesSlotAsync ( final String resourceGroupName , final String siteName , final String slot , final ListOperationCallback < DetectorResponseInner > serviceCallback ) { } }
return AzureServiceFuture . fromPageResponse ( listSiteDetectorResponsesSlotSinglePageAsync ( resourceGroupName , siteName , slot ) , new Func1 < String , Observable < ServiceResponse < Page < DetectorResponseInner > > > > ( ) { @ Override public Observable < ServiceResponse < Page < DetectorResponseInner > > > call ( String nextPageLink ) { return listSiteDetectorResponsesSlotNextSinglePageAsync ( nextPageLink ) ; } } , serviceCallback ) ;
public class ModelsEngine { /** * Evaluate the shadow map . * @ param i * the x axis index . * @ param j * the y axis index . * @ param tmpWR * the output shadow map . * @ param demWR * the elevation map . * @ param res * the resolution of the elevation map . * @ param normalSunVector * @ param inverseSunVector * @ return */ private static WritableRaster shadow ( int i , int j , WritableRaster tmpWR , WritableRaster demWR , double res , double [ ] normalSunVector , double [ ] inverseSunVector ) { } }
int n = 0 ; double zcompare = - Double . MAX_VALUE ; double dx = ( inverseSunVector [ 0 ] * n ) ; double dy = ( inverseSunVector [ 1 ] * n ) ; int nCols = tmpWR . getWidth ( ) ; int nRows = tmpWR . getHeight ( ) ; int idx = ( int ) Math . round ( i + dx ) ; int jdy = ( int ) Math . round ( j + dy ) ; double vectorToOrigin [ ] = new double [ 3 ] ; while ( idx >= 0 && idx <= nCols - 1 && jdy >= 0 && jdy <= nRows - 1 ) { vectorToOrigin [ 0 ] = dx * res ; vectorToOrigin [ 1 ] = dy * res ; int tmpY = ( int ) ( j + dy ) ; if ( tmpY < 0 ) { tmpY = 0 ; } else if ( tmpY > nRows ) { tmpY = nRows - 1 ; } int tmpX = ( int ) ( i + dx ) ; if ( tmpX < 0 ) { tmpX = 0 ; } else if ( tmpY > nCols ) { tmpX = nCols - 1 ; } vectorToOrigin [ 2 ] = demWR . getSampleDouble ( idx , jdy , 0 ) ; // vectorToOrigin [ 2 ] = ( pitRandomIter . getSampleDouble ( idx , jdy , 0 ) + // pitRandomIter // . getSampleDouble ( tmpX , tmpY , 0 ) ) / 2; double zprojection = scalarProduct ( vectorToOrigin , normalSunVector ) ; if ( ( zprojection < zcompare ) ) { tmpWR . setSample ( idx , jdy , 0 , 0 ) ; } else { zcompare = zprojection ; } n = n + 1 ; dy = ( inverseSunVector [ 1 ] * n ) ; dx = ( inverseSunVector [ 0 ] * n ) ; idx = ( int ) Math . round ( i + dx ) ; jdy = ( int ) Math . round ( j + dy ) ; } return tmpWR ;
public class TypedProperties { /** * Equivalent to { @ link # setBoolean ( String , boolean ) * setBoolean } { @ code ( key . name ( ) , value ) } . * If { @ code key } is null , nothing is done . */ public void setBoolean ( Enum < ? > key , boolean value ) { } }
if ( key == null ) { return ; } setBoolean ( key . name ( ) , value ) ;
public class DefaultOptionParser { /** * Handles the following tokens : * < pre > * - SV * - S V * - S = V * - S1S2 * - S1S2 V * - SV1 = V2 * - LV * - L V * - L = V * < / pre > * @ param token the command line token to handle * @ throws OptionParserException if option parsing fails */ private void handleShortAndLongOption ( String token ) throws OptionParserException { } }
if ( token . length ( ) == 1 ) { if ( options . hasShortOption ( token ) ) { handleOption ( options . getOption ( token ) ) ; } else { handleUnknownToken ( currentToken ) ; } return ; } int pos = token . indexOf ( '=' ) ; if ( pos == - 1 ) { // no equal sign found ( - xxx ) if ( options . hasShortOption ( token ) ) { handleOption ( options . getOption ( token ) ) ; } else if ( ! getMatchingLongOptions ( token ) . isEmpty ( ) ) { // - L or - l handleLongOptionWithoutEqual ( token ) ; } else { // look for a long prefix ( - Xmx512m ) String name = getLongPrefix ( token ) ; if ( name != null ) { Option option = options . getOption ( name ) ; if ( ! option . isWithEqualSign ( ) && option . acceptsValue ( ) ) { handleOption ( options . getOption ( name ) ) ; currentOption . addValue ( token . substring ( name . length ( ) ) ) ; currentOption = null ; return ; } } handleUnknownToken ( currentToken ) ; } } else { // equal sign found ( - xxx = yyy ) String name = token . substring ( 0 , pos ) ; String value = token . substring ( pos + 1 ) ; // - S = V Option option = options . getOption ( name ) ; if ( option != null && option . acceptsValue ( ) ) { handleOption ( option ) ; currentOption . addValue ( value ) ; currentOption = null ; } else { // - L = V or - l = V handleLongOptionWithEqual ( token ) ; } }
public class BigIntStringChecksum { /** * Take string as input , and either return an instance or return null . * @ param bics string in " bigintcs : hhhhh - hhhhh - CCCCC " format * @ return big integer string checksum object * OR null if incorrect format , error parsing , etc . */ public static BigIntStringChecksum fromStringOrNull ( String bics ) { } }
BigIntStringChecksum ret ; if ( bics == null ) { ret = null ; } else if ( ! startsWithPrefix ( bics ) ) { ret = null ; } else { try { ret = fromString ( bics ) ; // completely test the input : make sure // asBigInteger will throw a SecretShareException on error if ( ret . asBigInteger ( ) == null ) { // asBigInteger ( ) is not allowed to return null . // but just in case it does : throw new SecretShareException ( "Programmer error converting '" + bics + "' to BigInteger" ) ; } } catch ( SecretShareException e ) { ret = null ; } } return ret ;
public class ReportJob { /** * Gets the reportQuery value for this ReportJob . * @ return reportQuery * Holds the filtering criteria . */ public com . google . api . ads . admanager . axis . v201811 . ReportQuery getReportQuery ( ) { } }
return reportQuery ;
public class BigtableTableAdminGrpcClient { /** * { @ inheritDoc } */ @ Override public Table modifyColumnFamily ( ModifyColumnFamiliesRequest request ) { } }
return createUnaryListener ( request , modifyColumnFamilyRpc , request . getName ( ) ) . getBlockingResult ( ) ;
public class Vectors { /** * Creates a copy of a given { @ code IntegerVector } with the same type as the * original . * @ param source The { @ code Vector } to copy . * @ return A copy of { @ code source } with the same type . */ public static IntegerVector copyOf ( IntegerVector source ) { } }
IntegerVector result = null ; if ( source instanceof TernaryVector ) { TernaryVector v = ( TernaryVector ) source ; int [ ] pos = v . positiveDimensions ( ) ; int [ ] neg = v . negativeDimensions ( ) ; result = new TernaryVector ( source . length ( ) , Arrays . copyOf ( pos , pos . length ) , Arrays . copyOf ( neg , neg . length ) ) ; } else if ( source instanceof SparseVector ) { result = new SparseHashIntegerVector ( source . length ( ) ) ; copyFromSparseVector ( result , source ) ; } else { result = new DenseIntVector ( source . length ( ) ) ; for ( int i = 0 ; i < source . length ( ) ; ++ i ) result . set ( i , source . get ( i ) ) ; } return result ;
public class CmsMessageBundleEditorOptions { /** * Initializes the upper left component . Does not show the mode switch . */ private void initUpperLeftComponent ( ) { } }
m_upperLeftComponent = new HorizontalLayout ( ) ; m_upperLeftComponent . setHeight ( "100%" ) ; m_upperLeftComponent . setSpacing ( true ) ; m_upperLeftComponent . setDefaultComponentAlignment ( Alignment . MIDDLE_RIGHT ) ; m_upperLeftComponent . addComponent ( m_languageSwitch ) ; m_upperLeftComponent . addComponent ( m_filePathLabel ) ;
public class AbstractRemoteClient { /** * { @ inheritDoc } * @ throws org . openbase . jul . exception . CouldNotPerformException { @ inheritDoc } * @ throws java . lang . InterruptedException { @ inheritDoc } */ @ Override public < R > R callMethod ( String methodName , long timeout ) throws CouldNotPerformException , InterruptedException { } }
return callMethod ( methodName , null , timeout ) ;
public class MLChar { /** * Populates the { @ link MLChar } with the { @ link String } value . * @ param value the String value */ public void set ( String value ) { } }
char [ ] cha = value . toCharArray ( ) ; for ( int i = 0 ; i < getN ( ) && i < value . length ( ) ; i ++ ) { setChar ( cha [ i ] , i ) ; }
public class Discovery { /** * List collection fields . * Gets a list of the unique fields ( and their types ) stored in the index . * @ param listCollectionFieldsOptions the { @ link ListCollectionFieldsOptions } containing the options for the call * @ return a { @ link ServiceCall } with a response type of { @ link ListCollectionFieldsResponse } */ public ServiceCall < ListCollectionFieldsResponse > listCollectionFields ( ListCollectionFieldsOptions listCollectionFieldsOptions ) { } }
Validator . notNull ( listCollectionFieldsOptions , "listCollectionFieldsOptions cannot be null" ) ; String [ ] pathSegments = { "v1/environments" , "collections" , "fields" } ; String [ ] pathParameters = { listCollectionFieldsOptions . environmentId ( ) , listCollectionFieldsOptions . collectionId ( ) } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments , pathParameters ) ) ; builder . query ( "version" , versionDate ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "discovery" , "v1" , "listCollectionFields" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( ListCollectionFieldsResponse . class ) ) ;
public class MtasDataItemDoubleFull { /** * ( non - Javadoc ) * @ see mtas . codec . util . collector . MtasDataItem # getCompareValue1 ( ) */ @ Override public MtasDataItemNumberComparator < Double > getCompareValue1 ( ) { } }
createStats ( ) ; switch ( sortType ) { case CodecUtil . STATS_TYPE_SUM : return new MtasDataItemNumberComparator < > ( stats . getSum ( ) , sortDirection ) ; case CodecUtil . STATS_TYPE_MAX : return new MtasDataItemNumberComparator < > ( stats . getMax ( ) , sortDirection ) ; case CodecUtil . STATS_TYPE_MIN : return new MtasDataItemNumberComparator < > ( stats . getMin ( ) , sortDirection ) ; case CodecUtil . STATS_TYPE_SUMSQ : return new MtasDataItemNumberComparator < > ( stats . getSumsq ( ) , sortDirection ) ; default : return null ; }
public class HtmlEscapeUtil { /** * Perform an escape operation , based on a Reader , according to the specified level and type and writing the * result to a Writer . * Note this reader is going to be read char - by - char , so some kind of buffering might be appropriate if this * is an inconvenience for the specific Reader implementation . */ static void escape ( final Reader reader , final Writer writer , final HtmlEscapeType escapeType , final HtmlEscapeLevel escapeLevel ) throws IOException { } }
if ( reader == null ) { return ; } final int level = escapeLevel . getEscapeLevel ( ) ; final boolean useHtml5 = escapeType . getUseHtml5 ( ) ; final boolean useNCRs = escapeType . getUseNCRs ( ) ; final boolean useHexa = escapeType . getUseHexa ( ) ; final HtmlEscapeSymbols symbols = ( useHtml5 ? HtmlEscapeSymbols . HTML5_SYMBOLS : HtmlEscapeSymbols . HTML4_SYMBOLS ) ; int c1 , c2 ; // c1 : current char , c2 : next char c2 = reader . read ( ) ; while ( c2 >= 0 ) { c1 = c2 ; c2 = reader . read ( ) ; /* * Shortcut : most characters will be ASCII / Alphanumeric , and we won ' t need to do anything at * all for them */ if ( c1 <= HtmlEscapeSymbols . MAX_ASCII_CHAR && level < symbols . ESCAPE_LEVELS [ c1 ] ) { writer . write ( c1 ) ; continue ; } /* * Shortcut : we might not want to escape non - ASCII chars at all either . */ if ( c1 > HtmlEscapeSymbols . MAX_ASCII_CHAR && level < symbols . ESCAPE_LEVELS [ HtmlEscapeSymbols . MAX_ASCII_CHAR + 1 ] ) { writer . write ( c1 ) ; continue ; } /* * Compute the codepoint . This will be used instead of the char for the rest of the process . */ final int codepoint = codePointAt ( ( char ) c1 , ( char ) c2 ) ; /* * We know we need to escape , so from here on we will only work with the codepoint - - we can advance * the chars . */ if ( Character . charCount ( codepoint ) > 1 ) { // This is to compensate that we are actually reading two char positions with a single codepoint . c1 = c2 ; c2 = reader . read ( ) ; } /* * Perform the real escape , attending the different combinations of NCR , DCR and HCR needs . */ if ( useNCRs ) { // We will try to use an NCR if ( codepoint < symbols . NCRS_BY_CODEPOINT_LEN ) { // codepoint < 0x2fff - all HTML4 , most HTML5 final short ncrIndex = symbols . NCRS_BY_CODEPOINT [ codepoint ] ; if ( ncrIndex != symbols . NO_NCR ) { // There is an NCR for this codepoint ! writer . write ( symbols . SORTED_NCRS [ ncrIndex ] ) ; continue ; } // else , just let it exit the block and let decimal / hexa escape do its job } else if ( symbols . NCRS_BY_CODEPOINT_OVERFLOW != null ) { // codepoint > = 0x2fff . NCR , if exists , will live at the overflow map ( if there is one ) . final Short ncrIndex = symbols . NCRS_BY_CODEPOINT_OVERFLOW . get ( Integer . valueOf ( codepoint ) ) ; if ( ncrIndex != null ) { writer . write ( symbols . SORTED_NCRS [ ncrIndex . shortValue ( ) ] ) ; continue ; } // else , just let it exit the block and let decimal / hexa escape do its job } } /* * No NCR - escape was possible ( or allowed ) , so we need decimal / hexa escape . */ if ( useHexa ) { writer . write ( REFERENCE_HEXA_PREFIX ) ; writer . write ( Integer . toHexString ( codepoint ) ) ; } else { writer . write ( REFERENCE_DECIMAL_PREFIX ) ; writer . write ( String . valueOf ( codepoint ) ) ; } writer . write ( REFERENCE_SUFFIX ) ; }
public class InteractiveElement { /** * ( non - Javadoc ) * @ see * qc . automation . framework . widget . IInteractiveElement # dragAndDrop ( IElement element ) */ @ Override public void dragAndDrop ( IElement element ) throws WidgetException { } }
try { Actions builder = new Actions ( getGUIDriver ( ) . getWrappedDriver ( ) ) ; synchronized ( InteractiveElement . class ) { getGUIDriver ( ) . focus ( ) ; builder . dragAndDrop ( this . getWebElement ( ) , new InteractiveElement ( element . getByLocator ( ) ) . getWebElement ( ) ) . build ( ) . perform ( ) ; } } catch ( Exception e ) { throw new WidgetException ( "Error while performing drag and drop from " + getByLocator ( ) + " to " + element . getByLocator ( ) , getByLocator ( ) , e ) ; }
public class TrainingsImpl { /** * Gets the number of images tagged with the provided { tagIds } that have prediction results from * training for the provided iteration { iterationId } . * The filtering is on an and / or relationship . For example , if the provided tag ids are for the " Dog " and * " Cat " tags , then only images tagged with Dog and / or Cat will be returned . * @ param projectId The project id * @ param iterationId The iteration id . Defaults to workspace * @ param getImagePerformanceCountOptionalParameter the object representing the optional parameters to be set before calling this API * @ param serviceCallback the async ServiceCallback to handle successful and failed responses . * @ throws IllegalArgumentException thrown if parameters fail the validation * @ return the { @ link ServiceFuture } object */ public ServiceFuture < Integer > getImagePerformanceCountAsync ( UUID projectId , UUID iterationId , GetImagePerformanceCountOptionalParameter getImagePerformanceCountOptionalParameter , final ServiceCallback < Integer > serviceCallback ) { } }
return ServiceFuture . fromResponse ( getImagePerformanceCountWithServiceResponseAsync ( projectId , iterationId , getImagePerformanceCountOptionalParameter ) , serviceCallback ) ;
public class CommerceWarehousePersistenceImpl { /** * Returns a range of all the commerce warehouses where groupId = & # 63 ; and active = & # 63 ; and commerceCountryId = & # 63 ; and primary = & # 63 ; . * Useful when paginating results . Returns a maximum of < code > end - start < / code > instances . < code > start < / code > and < code > end < / code > are not primary keys , they are indexes in the result set . Thus , < code > 0 < / code > refers to the first result in the set . Setting both < code > start < / code > and < code > end < / code > to { @ link QueryUtil # ALL _ POS } will return the full result set . If < code > orderByComparator < / code > is specified , then the query will include the given ORDER BY logic . If < code > orderByComparator < / code > is absent and pagination is required ( < code > start < / code > and < code > end < / code > are not { @ link QueryUtil # ALL _ POS } ) , then the query will include the default ORDER BY logic from { @ link CommerceWarehouseModelImpl } . If both < code > orderByComparator < / code > and pagination are absent , for performance reasons , the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order . * @ param groupId the group ID * @ param active the active * @ param commerceCountryId the commerce country ID * @ param primary the primary * @ param start the lower bound of the range of commerce warehouses * @ param end the upper bound of the range of commerce warehouses ( not inclusive ) * @ return the range of matching commerce warehouses */ @ Override public List < CommerceWarehouse > findByG_A_C_P ( long groupId , boolean active , long commerceCountryId , boolean primary , int start , int end ) { } }
return findByG_A_C_P ( groupId , active , commerceCountryId , primary , start , end , null ) ;
public class JsonBuilder { /** * Create a new field with the key and the result of fromObject on the value . * @ param key key * @ param value value * @ return field entry implementation that can be added to a JsonObject */ public static @ Nonnull Entry < String , JsonElement > field ( String key , Object value ) { } }
return field ( key , fromObject ( value ) ) ;
public class JDBCStoreResource { /** * Returns for the file the input stream . * @ return input stream of the file with the content * @ throws EFapsException on error */ @ Override public InputStream read ( ) throws EFapsException { } }
StoreResourceInputStream in = null ; ConnectionResource res = null ; try { res = Context . getThreadContext ( ) . getConnectionResource ( ) ; final Statement stmt = res . createStatement ( ) ; final StringBuffer cmd = new StringBuffer ( ) . append ( "select " ) . append ( JDBCStoreResource . COLNAME_FILECONTENT ) . append ( " " ) . append ( "from " ) . append ( JDBCStoreResource . TABLENAME_STORE ) . append ( " " ) . append ( "where ID =" ) . append ( getGeneralID ( ) ) ; final ResultSet resultSet = stmt . executeQuery ( cmd . toString ( ) ) ; if ( resultSet . next ( ) ) { if ( Context . getDbType ( ) . supportsBinaryInputStream ( ) ) { in = new JDBCStoreResourceInputStream ( this , res , resultSet . getBinaryStream ( 1 ) ) ; } else { in = new JDBCStoreResourceInputStream ( this , res , resultSet . getBlob ( 1 ) ) ; } } resultSet . close ( ) ; stmt . close ( ) ; } catch ( final IOException e ) { JDBCStoreResource . LOG . error ( "read of content failed" , e ) ; throw new EFapsException ( JDBCStoreResource . class , "read.SQLException" , e ) ; } catch ( final SQLException e ) { JDBCStoreResource . LOG . error ( "read of content failed" , e ) ; throw new EFapsException ( JDBCStoreResource . class , "read.SQLException" , e ) ; } return in ;
public class AbstractCommandLineRunner { /** * Returns true if and only if a source map file should be generated for each module , as opposed * to one unified map . This is specified by having the source map pattern include the % outname % * variable . */ @ GwtIncompatible ( "Unnecessary" ) private boolean shouldGenerateMapPerModule ( B options ) { } }
return options . sourceMapOutputPath != null && options . sourceMapOutputPath . contains ( "%outname%" ) ;
public class Ifc2x3tc1PackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EEnum getIfcStateEnum ( ) { } }
if ( ifcStateEnumEEnum == null ) { ifcStateEnumEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( Ifc2x3tc1Package . eNS_URI ) . getEClassifiers ( ) . get ( 905 ) ; } return ifcStateEnumEEnum ;
public class ClassDocCatalog { /** * Add the given class to the catalog . * @ param classdoc the ClassDoc to add to the catelog . */ public void addClassDoc ( ClassDoc classdoc ) { } }
if ( classdoc == null ) { return ; } addClass ( classdoc , allClasses ) ; if ( classdoc . isOrdinaryClass ( ) ) { addClass ( classdoc , ordinaryClasses ) ; } else if ( classdoc . isException ( ) ) { addClass ( classdoc , exceptions ) ; } else if ( classdoc . isEnum ( ) ) { addClass ( classdoc , enums ) ; } else if ( classdoc . isAnnotationType ( ) ) { addClass ( classdoc , annotationTypes ) ; } else if ( classdoc . isError ( ) ) { addClass ( classdoc , errors ) ; } else if ( classdoc . isInterface ( ) ) { addClass ( classdoc , interfaces ) ; }
public class TaskTracker { /** * Given a TaskCompletionEvent , it checks the store and returns an equivalent * copy that can be used instead . If not in the store , it adds it to the store * and returns the same supplied TaskCompletionEvent . If the caller uses the * stored copy , we have an opportunity to save memory . * @ param t the TaskCompletionEvent to check in the store . If not in the store * add it * @ return the equivalent TaskCompletionEvent to use instead . May be the same * as the one passed in . */ private static TaskCompletionEvent getTceFromStore ( TaskCompletionEvent t ) { } }
// Use the store so that we can save memory in simulations where there // are multiple task trackers in memory synchronized ( taskCompletionEventsStore ) { WeakReference < TaskCompletionEvent > e = taskCompletionEventsStore . get ( t ) ; // If it ' s not in the store , then put it in if ( e == null ) { taskCompletionEventsStore . put ( t , new WeakReference < TaskCompletionEvent > ( t ) ) ; return t ; } // It might be in the map , but the actual item might have been GC ' ed // just after we got it from the map TaskCompletionEvent tceFromStore = e . get ( ) ; if ( tceFromStore == null ) { taskCompletionEventsStore . put ( t , new WeakReference < TaskCompletionEvent > ( t ) ) ; return t ; } return tceFromStore ; }
public class TextEditsVisitor { /** * Write parameter to output file ( and possibly screen ) . * @ param toWrite Text to write to file */ protected void write ( String toWrite ) throws IOException { } }
if ( ! okToWrite ) throw new IOException ( "file not open for writing." ) ; if ( printToScreen ) System . out . print ( toWrite ) ; try { fw . write ( toWrite ) ; } catch ( IOException e ) { okToWrite = false ; throw e ; }
public class IndexedSet { /** * { @ inheritDoc } */ @ Override public int intersectionSize ( Collection < ? extends T > other ) { } }
if ( other == null ) return 0 ; return indices . intersectionSize ( convert ( other ) . indices ) ;
public class SiliCompressor { /** * Compress the image at with the specified path and return the bitmap data of the compressed image . * @ param imagePath The path of the image file you wish to compress . * @ param deleteSourceImage If True will delete the source file * @ return Compress image bitmap * @ throws IOException */ public Bitmap getCompressBitmap ( String imagePath , boolean deleteSourceImage ) throws IOException { } }
File imageFile = new File ( compressImage ( imagePath , new File ( Environment . getExternalStoragePublicDirectory ( Environment . DIRECTORY_PICTURES ) , "Silicompressor/images" ) ) ) ; Uri newImageUri = FileProvider . getUriForFile ( mContext , FILE_PROVIDER_AUTHORITY , imageFile ) ; Bitmap bitmap = MediaStore . Images . Media . getBitmap ( mContext . getContentResolver ( ) , newImageUri ) ; if ( deleteSourceImage ) { boolean isdeleted = deleteImageFile ( imagePath ) ; Log . d ( LOG_TAG , ( isdeleted ) ? "Source image file deleted" : "Error: Source image file not deleted." ) ; } // Delete the file created during the image compression deleteImageFile ( imageFile . getAbsolutePath ( ) ) ; // Return the required bitmap return bitmap ;
public class FctBnPublicTradeProcessors { /** * < p > Lazy get PrcCheckOut . < / p > * @ param pAddParam additional param * @ return requested PrcCheckOut * @ throws Exception - an exception */ protected final PrcCheckOut < RS > lazyGetPrcCheckOut ( final Map < String , Object > pAddParam ) throws Exception { } }
String beanName = PrcCheckOut . class . getSimpleName ( ) ; @ SuppressWarnings ( "unchecked" ) PrcCheckOut < RS > proc = ( PrcCheckOut < RS > ) this . processorsMap . get ( beanName ) ; if ( proc == null ) { proc = new PrcCheckOut < RS > ( ) ; proc . setLog ( getLogger ( ) ) ; proc . setSrvOrm ( getSrvOrm ( ) ) ; proc . setSrvCart ( getSrvShoppingCart ( ) ) ; proc . setProcFac ( this ) ; // assigning fully initialized object : this . processorsMap . put ( beanName , proc ) ; this . logger . info ( null , FctBnPublicTradeProcessors . class , beanName + " has been created." ) ; } return proc ;
public class InternalXtextParser { /** * InternalXtext . g : 1270:1 : entryRuleNegatedToken : ruleNegatedToken EOF ; */ public final void entryRuleNegatedToken ( ) throws RecognitionException { } }
try { // InternalXtext . g : 1271:1 : ( ruleNegatedToken EOF ) // InternalXtext . g : 1272:1 : ruleNegatedToken EOF { before ( grammarAccess . getNegatedTokenRule ( ) ) ; pushFollow ( FollowSets000 . FOLLOW_1 ) ; ruleNegatedToken ( ) ; state . _fsp -- ; after ( grammarAccess . getNegatedTokenRule ( ) ) ; match ( input , EOF , FollowSets000 . FOLLOW_2 ) ; } } catch ( RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return ;
public class NavMesh { /** * Optimize a path by removing segments that arn ' t required * to reach the end point * @ param path The path to optimize . Redundant segments will be removed */ private void optimize ( NavPath path ) { } }
int pt = 0 ; while ( pt < path . length ( ) - 2 ) { float sx = path . getX ( pt ) ; float sy = path . getY ( pt ) ; float nx = path . getX ( pt + 2 ) ; float ny = path . getY ( pt + 2 ) ; if ( isClear ( sx , sy , nx , ny , 0.1f ) ) { path . remove ( pt + 1 ) ; } else { pt ++ ; } }
public class ReflectionUtils { /** * Sets the fields value , first by attempting to call the setter method if it exists and then * falling back to setting the field directly . * @ param obj the object instance to set the value on , cannot be < code > null < / code > . * @ param info the fields reflected info object , cannot be < code > null < / code > . * @ param value the value to set on the field , may be < code > null < / code > . * @ throws Siren4JException upon reflection error . */ public static void setFieldValue ( Object obj , ReflectedInfo info , Object value ) throws Siren4JException { } }
if ( obj == null ) { throw new IllegalArgumentException ( "obj cannot be null" ) ; } if ( info == null ) { throw new IllegalArgumentException ( "info cannot be null" ) ; } if ( info . getSetter ( ) != null ) { Method setter = info . getSetter ( ) ; setter . setAccessible ( true ) ; try { setter . invoke ( obj , new Object [ ] { value } ) ; } catch ( Exception e ) { throw new Siren4JException ( e ) ; } } else { // No setter set field directly try { info . getField ( ) . set ( obj , value ) ; } catch ( Exception e ) { throw new Siren4JException ( e ) ; } }
public class PlaylistSubscriberStream { /** * { @ inheritDoc } */ public void receiveVideo ( boolean receive ) { } }
if ( engine != null ) { boolean receiveVideo = engine . receiveVideo ( receive ) ; if ( ! receiveVideo && receive ) { // video has been re - enabled seekToCurrentPlayback ( ) ; } } else { log . debug ( "PlayEngine was null, receiveVideo cannot be modified" ) ; }
public class RunMap { /** * Add a < em > new < / em > build to the map . * Do not use when loading existing builds ( use { @ link # put ( Integer , Object ) } ) . */ @ Override public R put ( R r ) { } }
// Defense against JENKINS - 23152 and its ilk . File rootDir = r . getRootDir ( ) ; if ( rootDir . isDirectory ( ) ) { throw new IllegalStateException ( "JENKINS-23152: " + rootDir + " already existed; will not overwrite with " + r ) ; } if ( ! r . getClass ( ) . getName ( ) . equals ( "hudson.matrix.MatrixRun" ) ) { // JENKINS - 26739 : grandfathered in proposeNewNumber ( r . getNumber ( ) ) ; } rootDir . mkdirs ( ) ; return super . _put ( r ) ;
public class HttpFields { /** * Get multiple field values of the same name as a { @ link QuotedCSV } * @ param name the case - insensitive field name * @ param keepQuotes True if the fields are kept quoted * @ return List the values with OWS stripped */ public List < String > getCSV ( String name , boolean keepQuotes ) { } }
QuotedCSV values = null ; for ( HttpField f : this ) { if ( f . getName ( ) . equalsIgnoreCase ( name ) ) { if ( values == null ) values = new QuotedCSV ( keepQuotes ) ; values . addValue ( f . getValue ( ) ) ; } } return values == null ? Collections . emptyList ( ) : values . getValues ( ) ;
public class CmsRemovePubLocksDialog { /** * Initializes the session object . < p > */ protected void initObject ( ) { } }
Object o ; if ( CmsStringUtil . isEmpty ( getParamAction ( ) ) || CmsDialog . DIALOG_INITIAL . equals ( getParamAction ( ) ) ) { // this is the initial dialog call o = new ArrayList ( ) ; ( ( List ) o ) . add ( "/" ) ; } else { // this is not the initial call , get module from session o = getDialogObject ( ) ; } if ( ! ( o instanceof List ) ) { m_resources = new ArrayList ( ) ; m_resources . add ( "/" ) ; } else { // reuse object stored in session m_resources = ( List ) o ; }
public class Utility { /** * Encode a run , possibly a degenerate run ( of < 4 values ) . * @ param length The length of the run ; must be > 0 & & < = 0xFFFF . */ private static final < T extends Appendable > void encodeRun ( T buffer , short value , int length ) { } }
try { char valueChar = ( char ) value ; if ( length < 4 ) { for ( int j = 0 ; j < length ; ++ j ) { if ( valueChar == ESCAPE ) { buffer . append ( ESCAPE ) ; } buffer . append ( valueChar ) ; } } else { if ( length == ESCAPE ) { if ( valueChar == ESCAPE ) { buffer . append ( ESCAPE ) ; } buffer . append ( valueChar ) ; -- length ; } buffer . append ( ESCAPE ) ; buffer . append ( ( char ) length ) ; buffer . append ( valueChar ) ; // Don ' t need to escape this value } } catch ( IOException e ) { throw new IllegalIcuArgumentException ( e ) ; }
public class YearSerializer { /** * Override because we have String / Int , NOT String / Array */ @ Override protected void _acceptTimestampVisitor ( JsonFormatVisitorWrapper visitor , JavaType typeHint ) throws JsonMappingException { } }
JsonIntegerFormatVisitor v2 = visitor . expectIntegerFormat ( typeHint ) ; if ( v2 != null ) { v2 . numberType ( JsonParser . NumberType . LONG ) ; }
public class Document { /** * Returns the count of statements contained within the document . * @ return int */ public int getStatementCount ( ) { } }
int ret = 0 ; for ( final StatementGroup sg : statementGroups ) { ret += sg . getAllStatements ( ) . size ( ) ; } return ret ;
public class ValidationErrorMarshaller { /** * Marshall the given parameter object . */ public void marshall ( ValidationError validationError , ProtocolMarshaller protocolMarshaller ) { } }
if ( validationError == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( validationError . getElementPath ( ) , ELEMENTPATH_BINDING ) ; protocolMarshaller . marshall ( validationError . getErrorMessage ( ) , ERRORMESSAGE_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to JSON: " + e . getMessage ( ) , e ) ; }
public class ParosTableAlert { /** * / * ( non - Javadoc ) * @ see org . parosproxy . paros . db . paros . TableAlert # getAlertList ( ) */ @ Override public Vector < Integer > getAlertList ( ) throws DatabaseException { } }
try { try ( PreparedStatement psReadScan = getConnection ( ) . prepareStatement ( "SELECT " + ALERTID + " FROM " + TABLE_NAME ) ) { Vector < Integer > v = new Vector < > ( ) ; try ( ResultSet rs = psReadScan . executeQuery ( ) ) { while ( rs . next ( ) ) { v . add ( rs . getInt ( ALERTID ) ) ; } } return v ; } } catch ( SQLException e ) { throw new DatabaseException ( e ) ; }
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - > * < ! - - end - user - doc - - > * @ generated */ public EClass getGFARC ( ) { } }
if ( gfarcEClass == null ) { gfarcEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 451 ) ; } return gfarcEClass ;
public class CommonRest { /** * 返回所有实例 curl http : / / 127.0.0.1:8081 / destinations */ @ GetMapping ( "/destinations" ) public List < Map < String , String > > destinations ( ) { } }
List < Map < String , String > > result = new ArrayList < > ( ) ; Set < String > destinations = adapterCanalConfig . DESTINATIONS ; for ( String destination : destinations ) { Map < String , String > resMap = new LinkedHashMap < > ( ) ; boolean status = syncSwitch . status ( destination ) ; String resStatus ; if ( status ) { resStatus = "on" ; } else { resStatus = "off" ; } resMap . put ( "destination" , destination ) ; resMap . put ( "status" , resStatus ) ; result . add ( resMap ) ; } return result ;
public class Response { /** * Removes the specified cookie by name . * @ param name * @ return the response */ public Response removeCookie ( String name ) { } }
Cookie cookie = new Cookie ( name , "" ) ; cookie . setSecure ( true ) ; cookie . setMaxAge ( 0 ) ; addCookie ( cookie ) ; return this ;
public class MapWithProtoValuesSubject { /** * Specifies that extra repeated field elements for these explicitly specified field descriptors * should be ignored . Sub - fields must be specified explicitly if their extra elements are to be * ignored as well . * < p > Use { @ link # ignoringExtraRepeatedFieldElementsForValues ( ) } instead to ignore these for all * fields . * @ see # ignoringExtraRepeatedFieldElementsForValues ( ) for details . */ public MapWithProtoValuesFluentAssertion < M > ignoringExtraRepeatedFieldElementsOfFieldDescriptorsForValues ( Iterable < FieldDescriptor > fieldDescriptors ) { } }
return usingConfig ( config . ignoringExtraRepeatedFieldElementsOfFieldDescriptors ( fieldDescriptors ) ) ;
public class CmsLinkRewriter { /** * Decodes a file ' s contents and return the content string and the encoding to use for writing the file * back to the VFS . < p > * @ param file the file to decode * @ return a pair ( content , encoding ) * @ throws CmsException if something goes wrong */ protected CmsPair < String , String > decode ( CmsFile file ) throws CmsException { } }
String content = null ; String encoding = getConfiguredEncoding ( m_cms , file ) ; I_CmsResourceType resType = OpenCms . getResourceManager ( ) . getResourceType ( file . getTypeId ( ) ) ; if ( resType instanceof CmsResourceTypeJsp ) { content = decode ( file . getContents ( ) , encoding ) ; } else { try { CmsXmlEntityResolver resolver = new CmsXmlEntityResolver ( m_cms ) ; // parse the XML and serialize it back to a string with the configured encoding Document doc = CmsXmlUtils . unmarshalHelper ( file . getContents ( ) , resolver ) ; content = CmsXmlUtils . marshal ( doc , encoding ) ; } catch ( Exception e ) { // invalid xml structure , just use the configured encoding content = decode ( file . getContents ( ) , encoding ) ; } } return CmsPair . create ( content , encoding ) ;
public class StringBuilderFutureAppendable { /** * ( non - Javadoc ) * @ see org . esigate . parser . future . FutureAppendable # performAppends ( int , java . util . concurrent . TimeUnit ) */ @ Override public FutureAppendable performAppends ( int timeout , TimeUnit unit ) throws IOException , HttpErrorPage , TimeoutException { } }
return this . futureBuilder . performAppends ( timeout , unit ) ;
public class FormLayout { /** * Sets the column groups , where each column in a group gets the same group wide width . Each * group is described by an array of integers that are interpreted as column indices . The * parameter is an array of such group descriptions . < p > * < strong > Examples : < / strong > < pre > * / / Group columns 1 , 3 and 4. * setColumnGroups ( new int [ ] [ ] { { 1 , 3 , 4 } } ) ; * / / Group columns 1 , 3 , 4 , and group columns 7 and 9 * setColumnGroups ( new int [ ] [ ] { { 1 , 3 , 4 } , { 7 , 9 } } ) ; * < / pre > * @ param colGroupIndicesa two - dimensional array of column groups indices * @ throwsIndexOutOfBoundsException if an index is outside the grid * @ throws IllegalArgumentException if a column index is used twice */ public void setColumnGroups ( int [ ] [ ] colGroupIndices ) { } }
int maxColumn = getColumnCount ( ) ; boolean [ ] usedIndices = new boolean [ maxColumn + 1 ] ; for ( int group = 0 ; group < colGroupIndices . length ; group ++ ) { for ( int j = 0 ; j < colGroupIndices [ group ] . length ; j ++ ) { int colIndex = colGroupIndices [ group ] [ j ] ; if ( colIndex < 1 || colIndex > maxColumn ) { throw new IndexOutOfBoundsException ( "Invalid column group index " + colIndex + " in group " + ( group + 1 ) ) ; } if ( usedIndices [ colIndex ] ) { throw new IllegalArgumentException ( "Column index " + colIndex + " must not be used in multiple column groups." ) ; } usedIndices [ colIndex ] = true ; } } this . colGroupIndices = deepClone ( colGroupIndices ) ;
public class DefaultRedirectResolver { /** * Whether the requested redirect URI " matches " the specified redirect URI . For a URL , this implementation tests if * the user requested redirect starts with the registered redirect , so it would have the same host and root path if * it is an HTTP URL . The port , userinfo , query params also matched . Request redirect uri path can include * additional parameters which are ignored for the match * For other ( non - URL ) cases , such as for some implicit clients , the redirect _ uri must be an exact match . * @ param requestedRedirect The requested redirect URI . * @ param redirectUri The registered redirect URI . * @ return Whether the requested redirect URI " matches " the specified redirect URI . */ protected boolean redirectMatches ( String requestedRedirect , String redirectUri ) { } }
UriComponents requestedRedirectUri = UriComponentsBuilder . fromUriString ( requestedRedirect ) . build ( ) ; UriComponents registeredRedirectUri = UriComponentsBuilder . fromUriString ( redirectUri ) . build ( ) ; boolean schemeMatch = isEqual ( registeredRedirectUri . getScheme ( ) , requestedRedirectUri . getScheme ( ) ) ; boolean userInfoMatch = isEqual ( registeredRedirectUri . getUserInfo ( ) , requestedRedirectUri . getUserInfo ( ) ) ; boolean hostMatch = hostMatches ( registeredRedirectUri . getHost ( ) , requestedRedirectUri . getHost ( ) ) ; boolean portMatch = matchPorts ? registeredRedirectUri . getPort ( ) == requestedRedirectUri . getPort ( ) : true ; boolean pathMatch = isEqual ( registeredRedirectUri . getPath ( ) , StringUtils . cleanPath ( requestedRedirectUri . getPath ( ) ) ) ; boolean queryParamMatch = matchQueryParams ( registeredRedirectUri . getQueryParams ( ) , requestedRedirectUri . getQueryParams ( ) ) ; return schemeMatch && userInfoMatch && hostMatch && portMatch && pathMatch && queryParamMatch ;
public class CompositeAction { /** * Execute sequence of actions . * @ return true if all actions were successful . * @ throws IOException on IO error . */ public boolean execute ( ) throws IOException { } }
if ( stopOnError ) { for ( int i = 0 ; i < actions . length ; i ++ ) { if ( ! actions [ i ] . execute ( ) ) { return false ; } } return true ; } else { boolean status = true ; IOException exception = null ; for ( int i = 0 ; i < actions . length ; i ++ ) { try { status &= actions [ i ] . execute ( ) ; } catch ( IOException ex ) { status = false ; if ( exception == null ) { exception = ex ; } } } if ( exception != null ) { throw exception ; } return status ; }
public class RandomUtil { /** * 随机字母或数字 , 固定长度 */ public static String randomStringFixLength ( int length ) { } }
return RandomStringUtils . random ( length , 0 , 0 , true , true , null , threadLocalRandom ( ) ) ;
public class MutateRowsRequestManager { /** * This is called when all calls to { @ link # onMessage ( MutateRowsResponse ) } are complete . * @ return { @ link ProcessingStatus } of the accumulated responses - success , invalid , retrable , * non - retryable . */ public ProcessingStatus onOK ( ) { } }
// Sanity check to make sure that every mutation received a response . if ( ! messageIsInvalid ) { for ( int i = 0 ; i < results . length ; i ++ ) { if ( results [ i ] == null ) { messageIsInvalid = true ; break ; } } } // There was a problem in the data found in onMessage ( ) , so fail the RPC . if ( messageIsInvalid ) { return ProcessingStatus . INVALID ; } List < Integer > toRetry = new ArrayList < > ( ) ; ProcessingStatus processingStatus = ProcessingStatus . SUCCESS ; // Check the current state to determine the state of the results . // There are three states : OK , Fail , or Partial Retry . for ( int i = 0 ; i < results . length ; i ++ ) { Status status = results [ i ] ; if ( status . getCode ( ) == io . grpc . Status . Code . OK . value ( ) ) { continue ; } else if ( retryOptions . isRetryable ( getGrpcCode ( status ) ) ) { // An individual mutation failed with a retryable code , usually DEADLINE _ EXCEEDED . toRetry . add ( i ) ; if ( processingStatus == ProcessingStatus . SUCCESS ) { processingStatus = ProcessingStatus . RETRYABLE ; } } else { // Don ' t retry if even a single response is not retryable . processingStatus = ProcessingStatus . NOT_RETRYABLE ; break ; } } if ( ! toRetry . isEmpty ( ) ) { currentRequest = createRetryRequest ( toRetry ) ; } return processingStatus ;
public class JwwfServer { /** * Starts Jetty server and waits for it * @ return This JwwfServer */ public JwwfServer startAndJoin ( ) { } }
try { server . start ( ) ; server . join ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return this ;
public class AbstractWebSocketSession { /** * { @ inheritDoc } */ @ SuppressWarnings ( "unchecked" ) @ Override public < R > R getNativeSession ( Class < R > requiredType ) { } }
if ( requiredType != null ) { if ( requiredType . isInstance ( this . nativeSession ) ) { return ( R ) this . nativeSession ; } } return null ;
public class ContentSpec { /** * Set the data that will be appended to the & lt ; book & gt ; . ent file when built . * @ param entities The data to be appended . */ public void setEntities ( final String entities ) { } }
if ( entities == null && this . entities == null ) { return ; } else if ( entities == null ) { removeChild ( this . entities ) ; this . entities = null ; } else if ( this . entities == null ) { this . entities = new KeyValueNode < String > ( CommonConstants . CS_ENTITIES_TITLE , entities ) ; appendChild ( this . entities , false ) ; } else { this . entities . setValue ( entities ) ; }