bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); ... | public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); ... | 3,224,642 |
private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); FloatedBlockBox last = (FloatedBlockBox)floats.g... | private void alignToLastFloat(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, int direction) { List floats = getFloats(direction); if (floats.size() > 0) { Point offset = bfc.getOffset(); FloatedBlockBox last = (FloatedBlockBox)floats.g... | 3,224,643 |
public void floatLeft(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, LEFT); save(current, bfc, LEFT); } | private void floatLeft(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, LEFT); save(current, bfc, LEFT); } | 3,224,644 |
public void floatRight(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, RIGHT); save(current, bfc, RIGHT); } | private void floatRight(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current) { position(cssCtx, bfc, current, RIGHT); save(current, bfc, RIGHT); } | 3,224,645 |
private void moveClear(CssContext cssCtx, BlockFormattingContext bfc, FloatedBlockBox current, List floats) { Point offset = bfc.getOffset(); Rectangle bounds = current.getBounds(cssCtx, -offset.x, -offset.y); int y = findLowestAbsoluteY(cssCtx, floats); if (b... | private void moveClear(CssContext cssCtx, BlockFormattingContext bfc, Box current, List floats) { Point offset = bfc.getOffset(); Rectangle bounds = current.getBounds(cssCtx, -offset.x, -offset.y); int y = findLowestAbsoluteY(cssCtx, floats); if (bounds.y < y)... | 3,224,646 |
public void paintFloats(RenderingContext c) { for (Iterator i = leftFloats.iterator(); i.hasNext(); ) { Box floater = (Box)i.next(); Point offset = (Point)offsetMap.get(floater); floater.paint(c, -offset.x, -offset.y); } for (Iterator i = rightFloats.ite... | public void paintFloats(RenderingContext c) { for (Iterator i = leftFloats.iterator(); i.hasNext(); ) { Box floater = (Box)i.next(); Point offset = (Point)offsetMap.get(floater); floater.paint(c, -offset.x, -offset.y); } c.getGraphics().translate(-master.x, -master.y)... | 3,224,647 |
public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend... | public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend... | 3,224,649 |
public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend... | public static Map getTokens(String companyId, String rootPath) { Map tokens = CollectionFactory.getHashMap(); try { Company company = CompanyLocalServiceUtil.getCompany(companyId); String friendlyURLPrivatePath = rootPath + PropsUtil.get( PropsUtil.LAYOUT_FRIENDLY_URL_PRIVATE_SERVLET_MAPPING); String friend... | 3,224,650 |
public IRubyObject call(IRubyObject[] args) { Ruby ruby = self.getRuntime(); Block oldBlock = ruby.getBlockStack().getCurrent(); ruby.getBlockStack().setCurrent(this); ruby.getIterStack().push(Iter.ITER_CUR); ruby.getCurrentFrame().setIter(Iter.ITER_CUR); try { r... | public IRubyObject call(IRubyObject[] args) { Ruby ruby = self.getRuntime(); Block oldBlock = ruby.getBlockStack().getCurrent(); ruby.getBlockStack().setCurrent(this.cloneBlock()); ruby.getIterStack().push(Iter.ITER_CUR); ruby.getCurrentFrame().setIter(Iter.ITER_CUR); try {... | 3,224,651 |
public static void paint( Context c, Box box, boolean stylePushed, boolean restyle ) { // Uu.p("BoxRenderer.paint " + box); Box block = (Box)box; restyle = restyle || box.restyle;//cascade it down box.restyle = false;//reset //set the current style CascadedStyle style = nul... | publicstaticvoidpaint(Contextc,Boxbox,booleanstylePushed,booleanrestyle){//Uu.p("BoxRenderer.paint"+box);Boxblock=(Box)box;restyle=restyle||box.restyle;//cascadeitdownbox.restyle=false;//reset//setthecurrentstyleCascadedStylestyle=null;if(!stylePushed&&block.element!=null){style=c.getCss().getCascadedStyle(block.elemen... | 3,224,653 |
public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect... | public static void paintAbsoluteBox( Context c, Box block, boolean restyle ) { Rectangle rect = c.getExtents(); //why this? int xoff = -rect.x; int yoff = -rect.y; if ( block.top_set ) { yoff += block.top; } if ( block.right_set ) { xoff = -rect... | 3,224,654 |
public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); List names = configuration.getLocalVariables(); if (names != null && names.size() > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); localNames.setNames(new ArrayList... | public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); List names = configuration.getLocalVariables(); if (names != null && names.size() > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); localNames.setNames(new ArrayList... | 3,224,656 |
public void reset() { localNamesStack = new Stack(); blockNamesStack = new BlockNamesStack(localNamesStack); inSingle = 0; inDef = false; inDefined = false; classNest = configuration.isClassNest() ? 1 : 0; } | public void reset() { localNamesStack = new Stack(); blockNamesStack = new BlockNamesStack(localNamesStack); inSingle = 0; inDef = false; inDefined = false; } | 3,224,657 |
private static Arity procArityOf(Node node) { if (node == null) { return Arity.optional(); } else if (node instanceof IArityNode) { return ((IArityNode) node).getArity(); } throw new Error("unexpected type " + node.getClass() + " at " + node.getPosition()); } | private static Arity procArityOf(Node node) { if (node == null) { return Arity.optional(); } else if (node instanceof CallNode) { return Arity.singleArgument(); } else if (node instanceof IArityNode) { return ((IArityNode) node).getArity(); } else if (node instanceof Call... | 3,224,658 |
protected JSONObject getUpdates(HttpServletRequest req) { HttpSession ses = req.getSession(); JabberSession jabberSes = (JabberSession) ses.getAttribute(WebKeys.JABBER_XMPP_SESSION); JSONObject jo = new JSONObject(); String waitCmd = ""; try { MessageWait msgWait = new MessageWait(); msgWait.setSessionId(ses.... | protected JSONObject getUpdates(HttpServletRequest req) { HttpSession ses = req.getSession(); JabberSession jabberSes = (JabberSession) ses.getAttribute(WebKeys.JABBER_XMPP_SESSION); JSONObject jo = new JSONObject(); String waitCmd = ""; try { MessageWait msgWait = new MessageWait(); msgWait.setSessionId(ses.... | 3,224,659 |
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)... | public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { Rectangle bounds = Geometry.toDisplay(getParen... | 3,224,660 |
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)... | public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)... | 3,224,661 |
public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)... | public void paneDragStart(LayoutPart pane, Point initialLocation, boolean keyboard) { if (pane == null) { if (canMoveFolder()) { if (presentationSite.getState() == IStackPresentationSite.STATE_MAXIMIZED) { setState(IStackPresentationSite.STATE_RESTORED)... | 3,224,662 |
public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el... | public static short sacPrimitiveTypeForString(String type) { if ("em".equals(type)) { return CSSPrimitiveValue.CSS_EMS; } else if ("ex".equals(type)) { return CSSPrimitiveValue.CSS_EXS; } else if ("px".equals(type)) { return CSSPrimitiveValue.CSS_PX; } el... | 3,224,663 |
private String _getPreviewHeaders(HttpServletRequest req) throws Exception { JSONObject jsonObj = new JSONObject(); String folderId = ParamUtil.getString(req, "folderId"); String sortBy = ParamUtil.getString(req, "sortBy"); boolean asc = ParamUtil.getBoolean(req, "asc"); SortedSet set; MailUtil.setCurrentFolder(... | private String _getPreviewHeaders(HttpServletRequest req) throws Exception { JSONObject jsonObj = new JSONObject(); String folderId = ParamUtil.getString(req, "folderId"); String sortBy = ParamUtil.getString(req, "sortBy"); boolean asc = ParamUtil.getBoolean(req, "asc"); SortedSet set; MailUtil.setCurrentFolder(... | 3,224,664 |
protected RubyClass subclass() { throw new TypeError(runtime, "can't make subclass of virtual class"); } | protected RubyClass subclass() { throw getRuntime().newTypeError("can't make subclass of virtual class"); } | 3,224,665 |
protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)... | protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)... | 3,224,666 |
protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)... | protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)... | 3,224,667 |
protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)... | protected void moveMessages(HttpServletRequest req) throws Exception { HttpSession ses = req.getSession(); long[] messages = StringUtil.split( ParamUtil.getString(req, "messages"), ",", -1L); String folderName = ParamUtil.getString(req, "folderName"); MailUtil.moveMessages(req.getSession(), messages, folderName)... | 3,224,668 |
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | 3,224,669 |
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | 3,224,670 |
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | 3,224,671 |
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | 3,224,672 |
public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case CompassMote.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_p... | 3,224,673 |
private void sendData() { UnicastPack pack = new UnicastPack(); pack.set_data_type(BigPack.BIGPACKDATA); pack.set_data_data_bpData_curPack(curPackNum); int firstByte = curPackNum * BigPack.BP_DATA_LEN; int length = BigPack.BP_DATA_LEN; if ((firstByte + length) > stream.length) length = stream.length - firstByt... | private void sendData() { UnicastPack pack = new UnicastPack(); pack.set_data_type(BigPack.BIGPACKDATA); pack.set_data_data_bpData_curPack(curPackNum); int firstByte = curPackNum * BigPack.BP_DATA_LEN; int length = BigPack.BP_DATA_LEN; if ((firstByte + length) > stream.length) length = stream.length - firstByt... | 3,224,674 |
private void sendHeader() { UnicastPack pack = new UnicastPack(); pack.set_data_type(BigPack.BIGPACKHEADER); pack.set_data_data_bpHeader_requestType(type); pack.set_data_data_bpHeader_packTotal((short) numPacks); pack.set_data_data_bpHeader_byteTotal(stream.length); pack.set_data_data_bpHeader_numBlocks((short) ... | private void sendHeader() { UnicastPack pack = new UnicastPack(); pack.set_data_type(BigPack.BIGPACKHEADER); pack.set_data_data_bpHeader_requestType(type); pack.set_data_data_bpHeader_packTotal((short) numPacks); pack.set_data_data_bpHeader_byteTotal(stream.length); pack.set_data_data_bpHeader_numBlocks((short) ... | 3,224,675 |
public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get... | public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get... | 3,224,676 |
public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get... | public static void paint( Context c, Box block ) { // don't draw if the backgrounds are turned off if ( !Configuration.isTrue( "xr.renderer.draw.backgrounds", true ) ) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.get... | 3,224,677 |
void doPendingWork() { Semaphore work; while ((work = pendingWork.remove()) != null) { try { currentWork = work; work.getRunnable().run(); } finally { currentWork = null; work.release(); } } } | void doPendingWork() { Semaphore work; while ((work = pendingWork.remove()) != null) { try { currentWork = work; work.getRunnable().run(); } finally { currentWork = null; work.release(); } } } | 3,224,678 |
protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata) { super.initState(state, portlet, rundata); PortletConfig config = portlet.getPortletConfig(); // types of sites that can either be public or private String changeableTypes = StringUtil.trimToNull(config.getInitParam... | protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata) { super.initState(state, portlet, rundata); PortletConfig config = portlet.getPortletConfig(); // types of sites that can either be public or private String changeableTypes = StringUtil.trimToNull(config.getInitParam... | 3,224,679 |
public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String ... | public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String ... | 3,224,680 |
public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String ... | public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String ... | 3,224,681 |
public RubyFixnum aref(RubyNumeric other) { long position = other.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.newBignum(runtime, value); ... | public RubyFixnum aref(RubyNumeric other) { long position = other.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.newBignum(getRuntime(), value); ... | 3,224,682 |
public IRubyObject id2name() { return RubySymbol.getSymbol(runtime, value).convertToString(); } | public IRubyObject id2name() { return RubySymbol.getSymbol(getRuntime(), value).convertToString(); } | 3,224,683 |
public void marshalTo(MarshalStream output) throws java.io.IOException { if (value <= MAX_MARSHAL_FIXNUM) { output.write('i'); output.dumpInt((int) value); } else { output.dumpObject(RubyBignum.newBignum(runtime, value)); } } | public void marshalTo(MarshalStream output) throws java.io.IOException { if (value <= MAX_MARSHAL_FIXNUM) { output.write('i'); output.dumpInt((int) value); } else { output.dumpObject(RubyBignum.newBignum(getRuntime(), value)); } } | 3,224,684 |
public static RubyFixnum minus_one(Ruby runtime) { return newFixnum(runtime, -1); } | public static RubyFixnum minus_one(Ruby runtime) { return runtime.newFixnum(-1); } | 3,224,685 |
public static RubyFixnum one(Ruby runtime) { return newFixnum(runtime, 1); } | public static RubyFixnum one(Ruby runtime) { return runtime.newFixnum(1); } | 3,224,686 |
public RubyNumeric op_div(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_div(other); } ... | public RubyNumeric op_div(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_div(other); } ... | 3,224,687 |
public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(runtime, ... | public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(getRuntime(), ... | 3,224,688 |
public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(runtime, ... | public RubyInteger op_lshift(RubyNumeric other) { long width = other.getLongValue(); if (width < 0) { return op_rshift(other.op_uminus()); } if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigValue = RubyBignum.newBignum(getRuntime(), ... | 3,224,689 |
public RubyNumeric op_mod(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_mod(other); } ... | public RubyNumeric op_mod(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_mod(other); } ... | 3,224,690 |
public RubyNumeric op_pow(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } if (other.getLongValue() == 0) { return newFixnum(getRuntime(), 1); } else if (other.getLongValue() == 1) { return this; }... | public RubyNumeric op_pow(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } if (other.getLongValue() == 0) { return newFixnum(getRuntime(), 1); } else if (other.getLongValue() == 1) { return this; }... | 3,224,691 |
public RubyNumeric quo(RubyNumeric other) { return new RubyFloat(runtime, op_div(other).getDoubleValue()); } | public RubyNumeric quo(RubyNumeric other) { return new RubyFloat(getRuntime(), op_div(other).getDoubleValue()); } | 3,224,692 |
public RubyString to_s() { return RubyString.newString(getRuntime(), String.valueOf(getLongValue())); } | public RubyString to_s() { return getRuntime().newString(String.valueOf(getLongValue())); } | 3,224,693 |
public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyFixnum.newFixnum(input.getRuntime(), input.unmarshalInt()); } | public static RubyFixnum unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyFixnum.newFixnum(input.getRuntime(), input.unmarshalInt()); } | 3,224,694 |
public static RubyFixnum zero(Ruby runtime) { return newFixnum(runtime, 0); } | public static RubyFixnum zero(Ruby runtime) { return runtime.newFixnum(0); } | 3,224,695 |
public void criticalize(AtomicSpinlock lock) { synchronized (criticalLock) { criticalized = true; // if already stopped, don't increment spinlock // it will either decriticalize before waking or criticalize when it wakes if (!isStopped) { spinlock = lock; spinlock.increment(); } } } | publicvoidcriticalize(AtomicSpinlocklock){ synchronized(criticalLock){ criticalized=true; //ifalreadystopped,don'tincrementspinlock //itwilleitherdecriticalizebeforewakingorcriticalizewhenitwakes if(!isStopped){ spinlock=lock; spinlock.increment(); } } } | 3,224,696 |
public void criticalize(AtomicSpinlock lock) { synchronized (criticalLock) { criticalized = true; // if already stopped, don't increment spinlock // it will either decriticalize before waking or criticalize when it wakes if (!isStopped) { spinlock = lock; spinlock.increment(); } } } | public void criticalize(AtomicSpinlock lock) { synchronized (criticalLock) { criticalized = true; // if already stopped, don't increment spinlock // it will either decriticalize before waking or criticalize when it wakes if (!isStopped) { spinlock = lock; spinlock.increment(); } } } | 3,224,697 |
public void run(IAction action) { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Run script", "We're running!"); //agl todo:temp } | public void run(IAction action) { MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), "Run script", "We're running!"); //agl todo:temp } | 3,224,698 |
public void selectionChanged(IAction action, ISelection selection) { // TODO Auto-generated method stub } | public void selectionChanged(IAction action, ISelection selection) { // TODO Auto-generated method stub } | 3,224,699 |
public void setActiveEditor(IAction action, IEditorPart targetEditor) { // TODO Auto-generated method stub } | public void setActiveEditor(IAction action, IEditorPart targetEditor) { // TODO Auto-generated method stub } | 3,224,700 |
public void addMessageResources(java.lang.String categoryId, java.lang.String topicId, java.lang.String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public void addMessageResources(java.lang.String categoryId, java.lang.String topicId, java.lang.String messageId, boolean addCommunityPermissions, boolean addGuestPermissions) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,701 |
public void deleteDiscussionMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public void deleteDiscussionMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,702 |
public void deleteMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public void deleteMessage(java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,703 |
public com.liferay.portlet.messageboards.model.MBMessage getMessage( java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public com.liferay.portlet.messageboards.model.MBMessage getMessage( java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,704 |
public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay( java.lang.String topicId, java.lang.String messageId, java.lang.String userId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay( java.lang.String topicId, java.lang.String messageId, java.lang.String userId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,705 |
public void subscribeMessage(java.lang.String userId, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public void subscribeMessage(java.lang.String userId, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,706 |
public void unsubscribeMessage(java.lang.String userId, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public void unsubscribeMessage(java.lang.String userId, java.lang.String topicId, java.lang.String messageId) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,707 |
public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String subject, java.lang.String body) throws com.liferay.portal.PortalException, com.liferay.portal.SystemException; | 3,224,708 |
public com.liferay.portlet.messageboards.model.MBMessage updateMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files, javax.portlet.PortletPreferences prefs) throws com.liferay.portal.PortalException, co... | public com.liferay.portlet.messageboards.model.MBMessage updateMessage( java.lang.String topicId, java.lang.String messageId, java.lang.String categoryId, java.lang.String subject, java.lang.String body, java.util.List files, javax.portlet.PortletPreferences prefs) throws com.liferay.portal.PortalException, co... | 3,224,709 |
public static boolean isOnAnySubnet(Inet4Address addr) { if (localAddresses == null) { NetworkHelper nh = NetworkHelper.getInstance(); if (nh == null) { LOG.verbose("Subnet test not supported on this platform."); return false; } localA... | public static boolean isOnAnySubnet(Inet4Address addr) { if (localAddresses == null) { NetworkHelper nh = NetworkHelper.getInstance(); if (nh == null) { LOG.verbose("Subnet test not supported on this platform."); return false; } localA... | 3,224,710 |
public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, int noex) { this.name = name; this.originalName = originalName; this.recvClass = recvClass; this.origin = origin; this.method = method; this.noex = noex; ... | public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, Visibility visibility) { this.name = name; this.originalName = originalName; this.recvClass = recvClass; this.origin = origin; this.method = method; this.n... | 3,224,712 |
public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, int noex) { this.name = name; this.originalName = originalName; this.recvClass = recvClass; this.origin = origin; this.method = method; this.noex = noex; ... | public CacheEntry(String name, String originalName, RubyModule recvClass, RubyModule origin, ICallable method, int noex) { this.name = name; this.originalName = originalName; this.recvClass = recvClass; this.origin = origin; this.method = method; this.visibility = v... | 3,224,713 |
private String buildCommandLine(String workspace) { String property = System.getProperty(PROP_VM); if (property == null) { MessageDialog .openError( window.getShell(), IDEWorkbenchMessages ... | private String buildCommandLine(String workspace) { String property = System.getProperty(PROP_VM); if (property == null) { MessageDialog .openError( window.getShell(), IDEWorkbenchMessages ... | 3,224,714 |
public Object getContent(Context c) { return ContentUtil.getInlineContentList(_elem, c); } | public List getContent(Context c) { return ContentUtil.getInlineContentList(_elem, c); } | 3,224,715 |
public com.liferay.portlet.messageboards.model.MBMessageFlag update( com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) throws SystemException { Session session = null; try { if (mbMessageFlag.isNew() || mbMessageFlag.isModified()) { session = openSession(); if (mbMessageFlag.isNew()) { ... | public com.liferay.portlet.messageboards.model.MBMessageFlag update( com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag) throws SystemException { Session session = null; try { if (mbMessageFlag.isNew() || mbMessageFlag.isModified()) { session = openSession(); if (mbMessageFlag.isNew()) { ... | 3,224,716 |
public LabelProviderTest2() { // Create shell shell = new Shell(Display.getCurrent()); { // Initialize shell listOfRenamables = new WritableList(); list = new ListViewer(shell); ObservableListContentProvider contentProvider = new ObservableListContentProvider(); list.setContentProvider(contentProvider); l... | public LabelProviderTest2() { // Create shell shell = new Shell(Display.getCurrent()); { // Initialize shell listOfRenamables = new WritableList(); list = new ListViewer(shell); ObservableListContentProvider contentProvider = new ObservableListContentProvider(); list.setContentProvider(contentProvider); l... | 3,224,717 |
public void handleValueChange( IObservableValue source, ValueDiff diff) { boolean shouldEnable = selectedRenamable .getValue() != null; removeButton.setEnabled(shouldEnable); renameButton.setEnabled(shouldEnable); } | public void handleValueChange( IObservableValue source, ValueDiff diff) { boolean shouldEnable = selectedRenamable .getValue() != null; removeButton.setEnabled(shouldEnable); renameButton.setEnabled(shouldEnable); } | 3,224,718 |
private void openDialog(WorkbenchPage page) { final int MAX_ITEMS = 22; selection = null; final Shell dialog = new Shell(getWorkbenchWindow().getShell(), SWT.MODELESS); Display display = dialog.getDisplay(); dialog.setLayout(new FillLayout()); final Table table = new Table(dialog, SWT.SINGLE | SWT.FULL_SELECT... | private void openDialog(WorkbenchPage page) { final int MAX_ITEMS = 22; selection = null; final Shell dialog = new Shell(getWorkbenchWindow().getShell(), SWT.MODELESS); Display display = dialog.getDisplay(); dialog.setLayout(new FillLayout()); final Table table = new Table(dialog, SWT.SINGLE | SWT.FULL_SELECT... | 3,224,719 |
private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i... | private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i... | 3,224,720 |
private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i... | private void layoutAbsoluteChildren(LayoutContext c) { List children = getChildren(); if (children.size() > 0) { LayoutState state = c.captureLayoutState(); for (int i = 0; i < children.size(); i++) { Layer child = (Layer)children.get(i); if (child.i... | 3,224,721 |
private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { getMaster().positionAbsolute(c); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } } | private void position(LayoutContext c) { if (getMaster().getStyle().isAbsolute() && ! c.isPrint()) { ((BlockBox)getMaster()).positionAbsolute(c); } else if (getMaster().getStyle().isRelative() && isInline()) { getMaster().positionRelative(c); } } | 3,224,722 |
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... | private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = 0; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... | 3,224,723 |
private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... | private void positionFixedLayer(RenderingContext c) { Rectangle rect = c.getFixedRectangle(); rect.translate(-1, -1); Box fixed = getMaster(); fixed.x = 0; fixed.y = -rect.y; fixed.setAbsX(0); fixed.setAbsY(0); fixed.setContainingBlock(new ViewportBox(rect)); ... | 3,224,724 |
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa... | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPa... | 3,224,725 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 3,224,726 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 3,224,727 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 3,224,728 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 3,224,729 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 3,224,730 |
public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | public static void justifyLine( Context c, LineBox line, int width ) { if ( line.width > width ) { return; } // split each inline box into words List temp_list = new ArrayList(); for ( int i = 0; i < line.getChildCount(); i++ ) { splitInlineBox( c, (InlineBox... | 3,224,731 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 3,224,732 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 3,224,733 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 3,224,734 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 3,224,735 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 3,224,736 |
private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | private static void splitInlineBox( Context c, InlineBox ibox, List temp_list ) { if ( !( ibox instanceof InlineTextBox ) ) { temp_list.add( ibox.copy() ); return; } InlineTextBox box = (InlineTextBox)ibox; String[] words = words( box ); // don't split if onl... | 3,224,737 |
private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | private static String[] words(InlineTextBox box) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | 3,224,738 |
private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split( "\\s" ); return words; } | private static String[] words( InlineTextBox box ) { String text = box.getSubstring(); String[] words = text.split("\\s"); return words; } | 3,224,739 |
public void propertyChange(PropertyChangeEvent propertyChangeEvent) { if (IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR .equals(propertyChangeEvent.getProperty())) { update(); IContributionManager parent = getParent(); if (p... | public void propertyChange(PropertyChangeEvent propertyChangeEvent) { if (IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR .equals(propertyChangeEvent.getProperty()) || IWorkbenchPreferenceConstants.DOCK_PERSPECTIVE_BAR.equals(propertyChangeEvent.getProperty())) { ... | 3,224,740 |
public com.liferay.portlet.journal.model.JournalStructure update( com.liferay.portlet.journal.model.JournalStructure journalStructure) throws SystemException { Session session = null; try { if (journalStructure.isNew() || journalStructure.isModified()) { session = openSession(); if (journalStructure.isNew(... | public com.liferay.portlet.journal.model.JournalStructure update( com.liferay.portlet.journal.model.JournalStructure journalStructure) throws SystemException { Session session = null; try { if (journalStructure.isNew() || journalStructure.isModified()) { session = openSession(); if (journalStructure.isNew(... | 3,224,741 |
public IRubyObject aref(IRubyObject key) { if (key instanceof RubyString || key instanceof RubySymbol) { return getByName(key.asSymbol()); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { throw new IndexError(run... | public IRubyObject aref(IRubyObject key) { if (key instanceof RubyString || key instanceof RubySymbol) { return getByName(key.asSymbol()); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { throw getRuntime().newIn... | 3,224,742 |
public IRubyObject aref(IRubyObject key) { if (key instanceof RubyString || key instanceof RubySymbol) { return getByName(key.asSymbol()); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { throw new IndexError(run... | public IRubyObject aref(IRubyObject key) { if (key instanceof RubyString || key instanceof RubySymbol) { return getByName(key.asSymbol()); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { throw getRuntime().newIn... | 3,224,743 |
public IRubyObject aset(IRubyObject key, IRubyObject value) { if (key instanceof RubyString || key instanceof RubySymbol) { return setByName(key.asSymbol(), value); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { ... | public IRubyObject aset(IRubyObject key, IRubyObject value) { if (key instanceof RubyString || key instanceof RubySymbol) { return setByName(key.asSymbol(), value); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { ... | 3,224,744 |
public IRubyObject aset(IRubyObject key, IRubyObject value) { if (key instanceof RubyString || key instanceof RubySymbol) { return setByName(key.asSymbol(), value); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { ... | public IRubyObject aset(IRubyObject key, IRubyObject value) { if (key instanceof RubyString || key instanceof RubySymbol) { return setByName(key.asSymbol(), value); } int idx = RubyNumeric.fix2int(key); idx = idx < 0 ? values.length + idx : idx; if (idx < 0) { ... | 3,224,745 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.