bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public IRubyObject each() { for (int i = 0; i < values.length; i++) { runtime.yield(values[i]); } return this; } | public IRubyObject each() { for (int i = 0; i < values.length; i++) { getRuntime().yield(values[i]); } return this; } | 3,224,746 |
public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | public IRubyObject equal(IRubyObject other) { if (this == other) { return getRuntime().getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } els... | 3,224,747 |
public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return getRuntime().getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return getRuntime().getFalse(); ... | 3,224,748 |
public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return getRuntime().getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return getRuntime().getFalse(); ... | 3,224,749 |
public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return getRuntime().getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return getRuntime().getFalse(); ... | 3,224,750 |
public IRubyObject equal(IRubyObject other) { if (this == other) { return runtime.getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } else { ... | public IRubyObject equal(IRubyObject other) { if (this == other) { return getRuntime().getTrue(); } else if (!(other instanceof RubyStruct)) { return runtime.getFalse(); } else if (getMetaClass() != other.getMetaClass()) { return runtime.getFalse(); } els... | 3,224,751 |
public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.ent... | public IRubyObject get() { String name = getRuntime().getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (membe... | 3,224,752 |
public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.ent... | public IRubyObject get() { String name = runtime.getCurrentFrame().getLastFunc(); RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.ent... | 3,224,753 |
private IRubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { ... | private IRubyObject getByName(String name) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).asSymbol().equals(name)) { ... | 3,224,754 |
public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw getRuntime().newArgumentError("struct size differs (" + args.length +" for " + size + ")"); } f... | 3,224,755 |
public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | 3,224,756 |
public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | public IRubyObject initialize(IRubyObject[] args) { modify(); int size = RubyNumeric.fix2int(getInstanceVariable(getMetaClass(), "__size__")); if (args.length > size) { throw new ArgumentError(runtime, "struct size differs (" + args.length +" for " + size + ")"); } for ... | 3,224,757 |
public RubyString inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getMetaClass().getName()).append(' '); for (int i = 0... | public RubyString inspect() { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); StringBuffer sb = new StringBuffer(100); sb.append("#<").append(getMetaClass().getName()).append(' '); for (int i = 0... | 3,224,758 |
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw new ArgumentError(runtime, "can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(run... | public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw getRuntime().newArgumentError("can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(... | 3,224,759 |
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw new ArgumentError(runtime, "can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(run... | public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw new ArgumentError(runtime, "can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(get... | 3,224,760 |
public static RubyArray members(IRubyObject recv) { RubyArray member = (RubyArray) getInstanceVariable((RubyClass) recv, "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); RubyArray result = RubyArray.newArray(recv.getRuntime(), member.getLength()); for (int i = 0; i... | public static RubyArray members(IRubyObject recv) { RubyArray member = (RubyArray) getInstanceVariable((RubyClass) recv, "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); RubyArray result = recv.getRuntime().newArray(member.getLength()); for (int i = 0; i < member.g... | 3,224,761 |
public static RubyArray members(IRubyObject recv) { RubyArray member = (RubyArray) getInstanceVariable((RubyClass) recv, "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); RubyArray result = RubyArray.newArray(recv.getRuntime(), member.getLength()); for (int i = 0; i... | public static RubyArray members(IRubyObject recv) { RubyArray member = (RubyArray) getInstanceVariable((RubyClass) recv, "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); RubyArray result = RubyArray.newArray(recv.getRuntime(), member.getLength()); for (int i = 0; i... | 3,224,762 |
private void modify() { testFrozen("Struct is frozen"); if (!isTaint() && runtime.getSafeLevel() >= 4) { throw new SecurityError(runtime, "Insecure: can't modify struct"); } } | private void modify() { testFrozen("Struct is frozen"); if (!isTaint() && runtime.getSafeLevel() >= 4) { throw new SecurityError(runtime, "Insecure: can't modify struct"); } } | 3,224,763 |
public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = RubyArray.newArray(recv.getRuntime()); for (int i = name == null ? 0 :... | public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < a... | 3,224,764 |
public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(runtime, getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); ... | public IRubyObject rbClone() { RubyStruct clone = new RubyStruct(getRuntime(), getMetaClass()); clone.values = new IRubyObject[values.length]; System.arraycopy(values, 0, clone.values, 0, values.length); clone.setFrozen(this.isFrozen()); clone.setTaint(this.isTaint()); ... | 3,224,765 |
public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!membe... | public IRubyObject set(IRubyObject value) { String name = getRuntime().getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!... | 3,224,766 |
public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!membe... | public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!membe... | 3,224,767 |
private IRubyObject setByName(String name, IRubyObject value) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).as... | private IRubyObject setByName(String name, IRubyObject value) { RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); Asserts.isTrue(!member.isNil(), "uninitialized struct"); modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).as... | 3,224,768 |
public RubyFixnum size() { return RubyFixnum.newFixnum(runtime, values.length); } | public RubyFixnum size() { return getRuntime().newFixnum(values.length); } | 3,224,769 |
public RubyArray to_a() { return RubyArray.newArray(runtime, values); } | public RubyArray to_a() { return getRuntime().newArray(values); } | 3,224,770 |
public RubyString to_s() { return RubyString.newString(runtime, "#<" + getMetaClass().getName() + ">"); } | public RubyString to_s() { return getRuntime().newString("#<" + getMetaClass().getName() + ">"); } | 3,224,771 |
public IRubyObject raise(IRubyObject exc) { receivedException = exc; // FIXME return this; } | public IRubyObject raise(IRubyObject exc) { receivedException = exc; // FIXME return this; } | 3,224,772 |
protected void refresh() { uiJob.setPriority(Job.INTERACTIVE); uiJob.setSystem(true); if (refreshJob == null) { refreshJob = new RestartableJob( Messages.format("MarkerView.refreshTitle", new Object[] {getTitle()}),//$NON-NLS-1$ new IRunnableWithProgress() { public void run(IProgressMonitor monitor) th... | protected void refresh() { uiJob.setPriority(Job.INTERACTIVE); uiJob.setSystem(true); if (refreshJob == null) { refreshJob = new RestartableJob( Messages.format("MarkerView.refreshTitle", new Object[] {getTitle()}),//$NON-NLS-1$ new IRunnableWithProgress() { public void run(IProgressMonitor monitor) th... | 3,224,773 |
public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | public static CellBox layoutCell(Context c, CellBox block, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } if ... | 3,224,774 |
private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 3,224,776 |
private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 3,224,777 |
private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 3,224,778 |
private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 3,224,779 |
private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | private void checkQueuedUploads() { // Check uploads to start List<Upload> uploadsToStart = new LinkedList<Upload>(); Map<Member, Long> uploadSizeToStartNodes = new HashMap<Member, Long>(); List<Upload> uploadsToBreak = new ArrayList<Upload>(); if (logVerbose) { log().v... | 3,224,780 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,781 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,782 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,783 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,784 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,785 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,786 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,787 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,788 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,789 |
private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | private void dataTransform(WaveletConfig wc) { int predLevel, lastUpdLevel; int maxLevel = 0; // Find the level at which this mote predicts, if any predLevel = (int)wc.mScale[id - 1]; // Find motes that we are a predict neighbor for // i.e. we update when they predict for (int mote = 0; mote < wc.mScale.length;... | 3,224,790 |
private void _upgradeMessage(String categoryId, String topicId) throws Exception { Connection con = null; PreparedStatement ps = null; ResultSet rs = null; try { con = DataAccess.getConnection(Constants.DATA_SOURCE); ps = con.prepareStatement(_UPGRADE_MESSAGE_1); ps.setString(1, topicId); rs = ps.executeQ... | private void _upgradeMessage(String categoryId, String topicId) throws Exception { Connection con = null; PreparedStatement ps = null; ResultSet rs = null; try { con = DataAccess.getConnection(Constants.DATA_SOURCE); ps = con.prepareStatement(_UPGRADE_MESSAGE_1); ps.setString(1, topicId); rs = ps.executeQ... | 3,224,791 |
public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { PortletPreferences prefs = req.getPreferences(); String baseURL = prefs.getValue("base-url", StringPool.BLANK); String indexURL = prefs.getValue("index-url", Stri... | public ActionForward render( ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception { PortletPreferences prefs = req.getPreferences(); String baseURL = prefs.getValue("base-url", StringPool.BLANK); String indexURL = prefs.getValue("index-url", Stri... | 3,224,792 |
public RubyString internalGets(IRubyObject[] args) { checkReadable(); IRubyObject sepVal = getRuntime().getGlobalVariables().get("$/"); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (sep... | public RubyString internalGets(IRubyObject[] args) { checkReadable(); IRubyObject sepVal = getRuntime().getGlobalVariables().get("$/"); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (sep... | 3,224,793 |
public IRubyObject each() { if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { long endLong = ((RubyNumeric) end).getLongValue(); long i = ((RubyNumeric) begin).getLongValue(); if (!isExclusive) { endLong += 1; } for (; i < en... | public IRubyObject each() { if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { long endLong = ((RubyNumeric) end).getLongValue(); long i = ((RubyNumeric) begin).getLongValue(); if (!isExclusive) { endLong += 1; } for (; i < en... | 3,224,795 |
public IRubyObject equal(IRubyObject obj) { if (!(obj instanceof RubyRange)) { return getRuntime().getFalse(); } RubyRange otherRange = (RubyRange) obj; boolean result = begin.equals(otherRange.begin) && end.equals(otherRange.end) && isExclusiv... | public IRubyObject equal(IRubyObject obj) { if (!(obj instanceof RubyRange)) { return getRuntime().getFalse(); } RubyRange otherRange = (RubyRange) obj; boolean result = begin.equals(otherRange.begin) && end.equals(otherRange.end) && isExclusiv... | 3,224,796 |
public RubyBoolean exclude_end_p() { return RubyBoolean.newBoolean(getRuntime(), isExclusive); } | public RubyBoolean exclude_end_p() { return getRuntime().newBoolean(isExclusive); } | 3,224,797 |
public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | 3,224,798 |
public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | 3,224,799 |
public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | 3,224,800 |
public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | public long[] getBeginLength(long limit, boolean truncate, boolean isStrict) { long beginLong = RubyNumeric.num2long(begin); long endLong = RubyNumeric.num2long(end); if (! isExclusive) { endLong++; } if (beginLong < 0) { beginLong += limit; if (be... | 3,224,801 |
public void init(IRubyObject begin, IRubyObject end, RubyBoolean isExclusive) { if (!(begin instanceof RubyFixnum && end instanceof RubyFixnum)) { try { begin.callMethod("<=>", end); } catch (RaiseException rExcptn) { throw new ArgumentError(getRuntime(), "... | public void init(IRubyObject begin, IRubyObject end, RubyBoolean isExclusive) { if (!(begin instanceof RubyFixnum && end instanceof RubyFixnum)) { try { begin.callMethod("<=>", end); } catch (RaiseException rExcptn) { throw getRuntime().newArgumentError("ba... | 3,224,802 |
public IRubyObject initialize(IRubyObject[] args) { if (args.length == 3) { init(args[0], args[1], (RubyBoolean) args[2]); } else if (args.length == 2) { init(args[0], args[1], getRuntime().getFalse()); } else { throw new ArgumentError(getRuntime(), "Wrong argum... | public IRubyObject initialize(IRubyObject[] args) { if (args.length == 3) { init(args[0], args[1], (RubyBoolean) args[2]); } else if (args.length == 2) { init(args[0], args[1], getRuntime().getFalse()); } else { throw getRuntime().newArgumentError("Wrong argumen... | 3,224,803 |
public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).g... | public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return getRuntime().newFixnum(0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLongValue(... | 3,224,804 |
public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).g... | public RubyFixnum length() { long size = 0; if (begin.callMethod(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuntime(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).g... | 3,224,805 |
public RubyArray to_a() { IRubyObject currentObject = begin; String compareMethod = isExclusive ? "<" : "<="; RubyArray array = RubyArray.newArray(getRuntime()); while (currentObject.callMethod(compareMethod, end).isTrue()) { array.append(currentObject); if (currentObje... | public RubyArray to_a() { IRubyObject currentObject = begin; String compareMethod = isExclusive ? "<" : "<="; RubyArray array = getRuntime().newArray(); while (currentObject.callMethod(compareMethod, end).isTrue()) { array.append(currentObject); if (currentObject.equals... | 3,224,806 |
public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start... | public void addInlineChild(Context c, InlineBox ib) { if (ib == null) throw new NullPointerException("trying to add null child"); if (getChildCount() == 0 && ib instanceof InlineTextBox) {//first box on line InlineTextBox child = (InlineTextBox) ib; if (child.getSubstring().start... | 3,224,807 |
public boolean equals(Object object) { if (!(object instanceof ActivityRequirementBinding)) return false; ActivityRequirementBinding castedObject = (ActivityRequirementBinding) object; boolean equals = true; equals &= Util.equals(requiredActivityId, castedObject... | public boolean equals(Object object) { if (!(object instanceof ActivityRequirementBinding)) return false; ActivityRequirementBinding castedObject = (ActivityRequirementBinding) object; boolean equals = true; equals &= Util.equals(requiredActivityId, castedObject... | 3,224,808 |
public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 3,224,809 |
public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | 3,224,810 |
public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str... | public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str... | 3,224,811 |
public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | 3,224,812 |
public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | 3,224,813 |
public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | 3,224,814 |
public void setStructureId(String structureId) { if (((structureId == null) && (_structureId != null)) || ((structureId != null) && (_structureId == null)) || ((structureId != null) && (_structureId != null) && !structureId.equals(_structureId))) { if (!XSS_ALLOW_STRUCTUREID) { structureId = XSSUtil.str... | public void setStructureId(String structureId) { if (((structureId == null) && (_structureId != null)) || ((structureId != null) && (_structureId == null)) || ((structureId != null) && (_structureId != null) && !structureId.equals(_structureId))) { if (!XSS_ALLOW_STRUCTUREID) { structureId = XSSUtil.str... | 3,224,815 |
public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 3,224,816 |
public void setUserName(String userName) { if (((userName == null) && (_userName != null)) || ((userName != null) && (_userName == null)) || ((userName != null) && (_userName != null) && !userName.equals(_userName))) { if (!XSS_ALLOW_USERNAME) { userName = XSSUtil.strip(userName); } _userName = user... | public void setUserName(String userName) { if (((userName == null) && (_userName != null)) || ((userName != null) && (_userName == null)) || ((userName != null) && (_userName != null) && !userName.equals(_userName))) { if (!XSS_ALLOW_USERNAME) { userName = XSSUtil.strip(userName); } _userName = user... | 3,224,817 |
public void setXsd(String xsd) { if (((xsd == null) && (_xsd != null)) || ((xsd != null) && (_xsd == null)) || ((xsd != null) && (_xsd != null) && !xsd.equals(_xsd))) { if (!XSS_ALLOW_XSD) { xsd = XSSUtil.strip(xsd); } _xsd = xsd; setModified(true); } } | public void setXsd(String xsd) { if (((xsd == null) && (_xsd != null)) || ((xsd != null) && (_xsd == null)) || ((xsd != null) && (_xsd != null) && !xsd.equals(_xsd))) { if (!XSS_ALLOW_XSD) { xsd = XSSUtil.strip(xsd); } _xsd = xsd; setModified(true); } } | 3,224,818 |
public void testBindTestExtension() { INavigatorContentService contentServiceWithProgrammaticBindings = NavigatorContentServiceFactory.INSTANCE .createContentService(COMMON_NAVIGATOR_INSTANCE_ID); INavigatorContentDescriptor[] boundDescriptors = contentServiceWithProgrammaticBindings .bindExtensions(new String... | public void testBindTestExtension() { INavigatorContentService contentServiceWithProgrammaticBindings = NavigatorContentServiceFactory.INSTANCE .createContentService(COMMON_NAVIGATOR_INSTANCE_ID); INavigatorContentDescriptor[] boundDescriptors = contentServiceWithProgrammaticBindings .bindExtensions(new String... | 3,224,819 |
public void addChild( Box child ) { child.setParent( this ); boxes.add( child ); //u.p("added child: " + child + " to " + this); } | if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } if(child.isChildrenExceedBounds()) { setChildrenExceedBounds(true); } publicif(child.isChildrenExceedBounds())... | 3,224,820 |
public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | public void setCompanyId(String companyId) { if (((companyId == null) && (_companyId != null)) || ((companyId != null) && (_companyId == null)) || ((companyId != null) && (_companyId != null) && !companyId.equals(_companyId))) { if (!XSS_ALLOW_COMPANYID) { companyId = XSSUtil.strip(companyId); } _co... | 3,224,821 |
public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | public void setCreateDate(Date createDate) { if (((createDate == null) && (_createDate != null)) || ((createDate != null) && (_createDate == null)) || ((createDate != null) && (_createDate != null) && !createDate.equals(_createDate))) { _createDate = createDate; setModified(true); } } | 3,224,822 |
public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str... | public void setDescription(String description) { if (((description == null) && (_description != null)) || ((description != null) && (_description == null)) || ((description != null) && (_description != null) && !description.equals(_description))) { if (!XSS_ALLOW_DESCRIPTION) { description = XSSUtil.str... | 3,224,823 |
public void setFolderId(String folderId) { if (((folderId == null) && (_folderId != null)) || ((folderId != null) && (_folderId == null)) || ((folderId != null) && (_folderId != null) && !folderId.equals(_folderId))) { if (!XSS_ALLOW_FOLDERID) { folderId = XSSUtil.strip(folderId); } _folderId = fold... | public void setFolderId(String folderId) { if (((folderId == null) && (_folderId != null)) || ((folderId != null) && (_folderId == null)) || ((folderId != null) && (_folderId != null) && !folderId.equals(_folderId))) { if (!XSS_ALLOW_FOLDERID) { folderId = XSSUtil.strip(folderId); } _folderId = fold... | 3,224,824 |
public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | public void setGroupId(String groupId) { if (((groupId == null) && (_groupId != null)) || ((groupId != null) && (_groupId == null)) || ((groupId != null) && (_groupId != null) && !groupId.equals(_groupId))) { if (!XSS_ALLOW_GROUPID) { groupId = XSSUtil.strip(groupId); } _groupId = groupId; setModi... | 3,224,825 |
public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | public void setModifiedDate(Date modifiedDate) { if (((modifiedDate == null) && (_modifiedDate != null)) || ((modifiedDate != null) && (_modifiedDate == null)) || ((modifiedDate != null) && (_modifiedDate != null) && !modifiedDate.equals(_modifiedDate))) { _modifiedDate = modifiedDate; setModified(true);... | 3,224,826 |
public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | public void setName(String name) { if (((name == null) && (_name != null)) || ((name != null) && (_name == null)) || ((name != null) && (_name != null) && !name.equals(_name))) { if (!XSS_ALLOW_NAME) { name = XSSUtil.strip(name); } _name = name; setModified(true); } } | 3,224,827 |
public void setParentFolderId(String parentFolderId) { if (((parentFolderId == null) && (_parentFolderId != null)) || ((parentFolderId != null) && (_parentFolderId == null)) || ((parentFolderId != null) && (_parentFolderId != null) && !parentFolderId.equals(_parentFolderId))) { if (!XSS_ALLOW_PARENTFOLDERI... | public void setParentFolderId(String parentFolderId) { if (((parentFolderId == null) && (_parentFolderId != null)) || ((parentFolderId != null) && (_parentFolderId == null)) || ((parentFolderId != null) && (_parentFolderId != null) && !parentFolderId.equals(_parentFolderId))) { if (!XSS_ALLOW_PARENTFOLDERI... | 3,224,828 |
public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | public void setUserId(String userId) { if (((userId == null) && (_userId != null)) || ((userId != null) && (_userId == null)) || ((userId != null) && (_userId != null) && !userId.equals(_userId))) { if (!XSS_ALLOW_USERID) { userId = XSSUtil.strip(userId); } _userId = userId; setModified(true); } ... | 3,224,829 |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | public static InlineBox createInline(Context c, TextContent content, InlineBox prev, InlineBox prev_align, int avail, int max, Font font, CascadedStyle firstLineStyle) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitesp... | 3,224,830 |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 3,224,831 |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 3,224,832 |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 3,224,833 |
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ... | 3,224,834 |
public String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) {//should never happen whitespace = "normal"; } return whitespace; } | public static String getWhitespace(CalculatedStyle style) { String whitespace = style.getStringProperty("white-space"); if (whitespace == null) {//should never happen whitespace = "normal"; } return whitespace; } | 3,224,835 |
public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... | public static String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ... | 3,224,836 |
public void unbreakable(InlineBox box, int n) { if (box.start_index == -1) { box.start_index = 0; } box.setSubstring(box.start_index, box.start_index + n); return; } | public static void unbreakable(InlineBox box, int n) { if (box.start_index == -1) { box.start_index = 0; } box.setSubstring(box.start_index, box.start_index + n); return; } | 3,224,837 |
public PageBox getLastPage(CssContext c, Box box) { return getPage(c, box.getAbsY() + box.getHeight()); } | public PageBox getLastPage(CssContext c, Box box) { return getPage(c, box.getAbsY() + box.getHeight() - 1); } | 3,224,838 |
protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | 3,224,839 |
protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | 3,224,840 |
protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | protected void updateActions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String modelResource... | 3,224,841 |
protected void updateGroupPermissions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String mode... | protected void updateGroupPermissions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String mode... | 3,224,842 |
protected void updateGroupPermissions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String mode... | protected void updateGroupPermissions(ActionRequest req, ActionResponse res) throws Exception { ThemeDisplay themeDisplay = (ThemeDisplay)req.getAttribute(WebKeys.THEME_DISPLAY); String roleId = ParamUtil.getString(req, "roleId"); String portletResource = ParamUtil.getString(req, "portletResource"); String mode... | 3,224,843 |
public String getLabel(Object o) { return MarkerMessages.MarkerList_0; } | public String getLabel(Object o) { return MarkerMessages.MarkerList_0; } | 3,224,844 |
public void initialize(IWorkbenchConfigurer configurer) { // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); // setup the event loop exception handler exceptionHandler = new IDEExceptionHandler(configurer); // register workspace adapters ... | public void initialize(IWorkbenchConfigurer configurer) { // make sure we always save and restore workspace state configurer.setSaveAndRestore(true); // setup the event loop exception handler exceptionHandler = new IDEExceptionHandler(configurer); // register workspace adapters ... | 3,224,845 |
public void postStartup() { try { refreshFromLocal(); checkUpdates(); } finally {//Resume background jobs after we startup Platform.getJobManager().resume(); } } | publicvoidpostStartup(){try{refreshFromLocal();checkUpdates();}finally{//ResumebackgroundjobsafterwestartupPlatform.getJobManager().resume();}} | 3,224,848 |
public void selectionChanged(SelectionChangeEvent event) { Object[] selections = getSelectionModel().getSelections(); Object target = getUIController().getInformationQuarter() .getDisplayTarget(); final Folder folder; if (target instanceof Directory) { ... | public void selectionChanged(SelectionChangeEvent event) { Object[] selections = getSelectionModel().getSelections(); Object displayTarget = getUIController().getInformationQuarter() .getDisplayTarget(); final Folder folder; if (target instanceof Direct... | 3,224,849 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.