bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse(); fw = FastW... | 3,238,116 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); Locale locale = ... | 3,238,117 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | 3,238,118 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | 3,238,119 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | 3,238,120 |
public Node cond(Node node) { return cond1(node, 0); } | public Node cond(Node node) { if (node == null) { return null; } if (node.getType() == Constants.NODE_NEWLINE) { node.setNextNode(cond0(node.getNextNode()/*, logop*/)); return node; } return cond0(node/*, logop*/); } | 3,238,121 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node /*, int logop*/) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } ... | 3,238,122 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { /*case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } r... | 3,238,123 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break;*/ } r... | 3,238,124 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | 3,238,125 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | 3,238,126 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | 3,238,127 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | 3,238,128 |
private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | private Node cond0(Node node, int logop) { int type = node.getType(); // enum node_type assign_in_cond(node); switch (type) { case Constants.NODE_DSTR : case Constants.NODE_STR : if (logop != 0) { break; } rb_... | 3,238,129 |
public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); ... | public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond(left), cond(right)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); defa... | 3,238,130 |
public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond1(left, 1), cond1(right, 1)); ... | public Node logop(int type, Node left, Node right) { value_expr(left); switch (type) { case Constants.NODE_AND : return new AndNode(cond1(left, 1), cond1(right, 1)); case Constants.NODE_OR : return new OrNode(cond(left), cond(right)); defa... | 3,238,131 |
private int registerLocal(String name) { name = name.intern(); if (lvtbl.tbl == null) { lvtbl.tbl = new ArrayList(); lvtbl.tbl.add("_"); lvtbl.tbl.add("~"); if (name == "_") { return 0; } else if (name == "~") { ... | private int registerLocal(String name) { name = name != null ? name.intern() : null; if (lvtbl.tbl == null) { lvtbl.tbl = new ArrayList(); lvtbl.tbl.add("_"); lvtbl.tbl.add("~"); if (name == "_") { return 0; } else if (name ... | 3,238,132 |
private void addDefaultModules(RubyClass rubyClass) { if (rubyClass.isMethodDefined("hasNext") && rubyClass.isMethodDefined("next")) { rubyClass.includeModule(ruby.getClasses().getEnumerableModule()); rubyClass.defineMethod("each", new JavaEachMethod("hasNext", "next")); } else i... | private void addDefaultModules(RubyClass rubyClass) { if (rubyClass.isMethodDefined("hasNext") && rubyClass.isMethodDefined("next")) { rubyClass.includeModule(ruby.getClasses().getEnumerableModule()); rubyClass.defineMethod("each", new JavaEachMethod("hasNext", "next")); } else i... | 3,238,133 |
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) ... | private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) ... | 3,238,135 |
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) ... | private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) ... | 3,238,136 |
private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) ... | private RubyModule createRubyInterface(Class javaInterface, String rubyName) { RubyModule newInterface = ruby.defineModule(rubyName); Map methods = sortMethodsByName(Arrays.asList(javaInterface.getMethods())); for (Iterator iter = methods.entrySet().iterator(); iter.hasNext();) ... | 3,238,137 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | 3,238,138 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | 3,238,139 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | 3,238,140 |
private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | private void defineConstants(Class javaClass, RubyClass rubyClass) { // add constants Field[] fields = javaClass.getFields(); for (int i = 0; i < fields.length; i++) { int modifiers = fields[i].getModifiers(); if (Modifier.isStatic(modifiers) && Modifier.isFinal(modif... | 3,238,141 |
private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName... | private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName... | 3,238,142 |
private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName... | private void defineWrapperMethods(Class javaClass, RubyClass rubyClass, boolean searchSuper) { Map methodMap = new HashMap(); Map singletonMethodMap = new HashMap(); Method[] methods = javaClass.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName... | 3,238,143 |
public RubyModule loadClass(Class javaClass, String rubyName) { if (javaClass == Object.class) { return ruby.getClasses().getJavaObjectClass(); } else if (loadedJavaClasses.get(javaClass) != null) { return (RubyModule) loadedJavaClasses.get(javaClass); } else { if ... | public RubyModule loadClass(Class javaClass, String rubyName) { if (javaClass == Object.class) { return ruby.getClasses().getJavaObjectClass(); } else if (loadedJavaClasses.get(javaClass) != null) { return (RubyModule) loadedJavaClasses.get(javaClass); } else { if ... | 3,238,144 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | 3,238,145 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | 3,238,146 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | 3,238,147 |
private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | private static Map sortMethodsByName(List methodList) { Map methodMap = new HashMap(); Iterator iter = methodList.iterator(); while (iter.hasNext()) { Method method = (Method) iter.next(); if (!methodMap.containsKey(method.getName())) { m... | 3,238,148 |
private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalAr... | private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalAr... | 3,238,149 |
private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalAr... | private static void copyResourceFromJar(String resourceName, File directory) throws IOException { int n; byte[] buf = new byte[1024]; InputStream in = null; FileOutputStream out = null; directory.mkdirs(); try { in = CopyFiles.class.getResourceAsStream(resourceName); if (in == null) throw new IllegalAr... | 3,238,150 |
private void buildGUI() { JProgressBar progressBar = new JProgressBar(); progressBar.setVisible(true); progressBar.setIndeterminate(true); JPanel p = new JPanel(); p.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); p. setBorder(BorderFactory.createEtchedBorder()); ... | private void buildGUI() { JProgressBar progressBar = new JProgressBar(); progressBar.setVisible(true); progressBar.setIndeterminate(true); JPanel p = new JPanel(); p.setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); p. setBorder(BorderFactory.createEtchedBorder()); ... | 3,238,151 |
public void testAndSaveSomtheingWithParents() throws Exception { DatasetData dd = simpleDatasetData(); Set dss = new HashSet(); dss.add(dd); imgData = simpleImageData(); imgData.setDatasets(dss); img = (Image) reverse.map(imgData); img = (Image) iUpdate.sa... | public void testAndSaveSomtheingWithParents() throws Exception { DatasetData dd = simpleDatasetData(); Set dss = new HashSet(); dss.add(dd); imgData = simpleImageData(); imgData.setDatasets(dss); img = (Image) reverse.map(imgData); img = (Image) iUpdate.sa... | 3,238,152 |
public void init(Broker broker,Settings config) throws InitException { super.init(broker,config); this.broker = broker; log = broker.getLog("resource","DelegatingTemplateProvider"); String factoryClass = config.getSetting("TemplateLoaderFactory",""); log.info("DelegatingTemplatePr... | public void init(Broker broker,Settings config) throws InitException { super.init(broker,config); this.broker = broker; log = broker.getLog("resource","DelegatingTemplateProvider"); String factoryClass = config.getSetting("TemplateLoaderFactory",""); log.info("DelegatingTemplatePr... | 3,238,154 |
public IRubyObject getConstant(IRubyObject self, String name) { for (Namespace ns = this; ns != null && ns.getParent() != null; ns = ns.getParent()) { if (ns.getNamespaceModule() == null) { return self.getInternalClass().getConstant(name); } else if (! ns.getNamespaceModu... | public IRubyObject getConstant(IRubyObject self, String name) { for (Namespace ns = this; ns != null && ns.getParent() != null; ns = ns.getParent()) { if (ns.getNamespaceModule() == null) { return self.getInternalClass().getConstant(name); } else if (ns.getNamespaceModule... | 3,238,155 |
protected void createServiceForFile(String name, File file, ClassLoader classLoader, ApplicationContext parentContext) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { if (isSpringConfigFile(file)) { // make the current directory availabl... | protected void createServiceForFile(String name, File file, ClassLoader classLoader, ApplicationContext parentContext) throws ServiceAlreadyExistsException, ServiceRegistrationException, BeansException, IOException { if (isSpringConfigFile(file)) { // make the current directory availabl... | 3,238,157 |
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer."... | private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer."... | 3,238,159 |
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer."... | privatevoidinitComponents(Registryregistry,intmaxZ,intmaxT){//buttonsIconManagerim=IconManager.getInstance(registry);viewer3D=newJButton(im.getIcon(IconManager.VIEWER3D));viewer3D.setToolTipText(UIUtilities.formatToolTipText("Bringuptheimage3Dviewer."));viewer3D.setEnabled(maxZ==0);saveAs=newJButton(im.getIcon(IconMana... | 3,238,160 |
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer."... | private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer."... | 3,238,161 |
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); //if (maxT == 0) tField.setEditable(false); tField.setEditable(maxT != 0); tField.setForegroun... | privatevoidinitTextFields(intt,intz,intmaxT,intmaxZ){zLabel=newJLabel("/"+maxZ);tLabel=newJLabel("/"+maxT);tField=newJTextField(""+t,(""+maxT).length());//if(maxT==0)tField.setEditable(false);tField.setEditable(maxT!=0);tField.setForeground(Viewer.STEELBLUE);tField.setToolTipText(UIUtilities.formatToolTipText("Enterati... | 3,238,162 |
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); //if (maxT == 0) tField.setEditable(false); tField.setEditable(maxT != 0); tField.setForegroun... | privatevoidinitTextFields(intt,intz,intmaxT,intmaxZ){zLabel=newJLabel("/"+maxZ);tLabel=newJLabel("/"+maxT);tField=newJTextField(""+t,(""+maxT).length());//if(maxT==0)tField.setEditable(false);tField.setEditable(maxT!=0);tField.setForeground(Viewer.STEELBLUE);tField.setToolTipText(UIUtilities.formatToolTipText("Enterati... | 3,238,163 |
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { try { target = (Variable) builder.getArg(ALTERNATE_TARGET, bc); } catch (ClassCastException e) { throw new NotVariableBuildException(myDescr.name, e); } list = builder.getArg(ALTERN... | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { try { target = (Variable) builder.getArg(ALTERNATE_TARGET, bc); } catch (ClassCastException e) { throw new NotVariableBuildException(myDescr.name, e); } list = builder.getArg(ALTERN... | 3,238,164 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); }... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Object l = null; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); ... | 3,238,165 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); }... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) l = ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); } catch (Cl... | 3,238,166 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); }... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else l = list; Iterator itr = context.getBroker()._propertyOperators.getIterator(l); ta... | 3,238,167 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); }... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Object[] arr; try { if (list instanceof Macro) arr = (Object[]) ((Macro) list).evaluate(context); else arr = (Object[]) list; target.setValue(context, (Object) new Alternator(arr)); }... | 3,238,168 |
public Object evaluate(Context context) { Object o = list[index++]; if (index == list.length) index = 0; return o; } | public Object evaluate(Context context) { Object o = list[index++]; if (index == list.length) index = 0; return o; } | 3,238,169 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object o = evaluate(context); if (o != null) out.write(o.toString()); } | public void write(FastWriter out, Context context) throws PropertyException, IOException { Object o = evaluate(context); if (o != null) out.write(o.toString()); } | 3,238,170 |
public void setUp() { runtime = Ruby.getDefaultInstance(); } | public void setUp() throws Exception { super.setUp(); runtime = Ruby.getDefaultInstance(); } | 3,238,171 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | public void testObjectSpace() { IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); Li... | 3,238,173 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | 3,238,174 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | 3,238,175 |
public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.... | 3,238,176 |
public void visitAliasNode(AliasNode iVisited) { iVisited.accept(_Payload); } | public void visitAliasNode(AliasNode iVisited) { iVisited.accept(_Payload); } | 3,238,177 |
public void visitAndNode(AndNode iVisited) { iVisited.getFirstNode().accept(this); iVisited.accept(_Payload); iVisited.getSecondNode().accept(this); } | public void visitAndNode(AndNode iVisited) { iVisited.getFirstNode().accept(this); iVisited.accept(_Payload); iVisited.getSecondNode().accept(this); } | 3,238,178 |
public void visitArgsCatNode(ArgsCatNode iVisited) { iVisited.accept(_Payload); } | public void visitArgsCatNode(ArgsCatNode iVisited) { iVisited.accept(_Payload); } | 3,238,179 |
public void visitArgsNode(ArgsNode iVisited) { iVisited.accept(_Payload); Node lOptNode = iVisited.getOptNode(); if (lOptNode != null) { lOptNode.accept(this); } } | public void visitArgsNode(ArgsNode iVisited) { iVisited.accept(_Payload); Node lOptNode = iVisited.getOptNode(); if (lOptNode != null) { lOptNode.accept(this); } } | 3,238,180 |
public void visitArgsPushNode(ArgsPushNode iVisited) { iVisited.accept(_Payload); } | public void visitArgsPushNode(ArgsPushNode iVisited) { iVisited.accept(_Payload); } | 3,238,181 |
public void visitArrayNode(ArrayNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | public void visitArrayNode(ArrayNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | 3,238,182 |
public void visitAttrSetNode(AttrSetNode iVisited) { iVisited.accept(_Payload); } | public void visitAttrSetNode(AttrSetNode iVisited) { iVisited.accept(_Payload); } | 3,238,183 |
public void visitBackRefNode(BackRefNode iVisited) { iVisited.accept(_Payload); } | public void visitBackRefNode(BackRefNode iVisited) { iVisited.accept(_Payload); } | 3,238,184 |
public void visitBeginNode(BeginNode iVisited) { iVisited.accept(_Payload); } | public void visitBeginNode(BeginNode iVisited) { iVisited.accept(_Payload); } | 3,238,185 |
public void visitBlockArgNode(BlockArgNode iVisited) { iVisited.accept(_Payload); } | public void visitBlockArgNode(BlockArgNode iVisited) { iVisited.accept(_Payload); } | 3,238,186 |
public void visitBlockNode(BlockNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | public void visitBlockNode(BlockNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited; node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | 3,238,187 |
public void visitBlockPassNode(BlockPassNode iVisited) { iVisited.accept(_Payload); } | public void visitBlockPassNode(BlockPassNode iVisited) { iVisited.accept(_Payload); } | 3,238,188 |
public void visitBreakNode(BreakNode iVisited) { iVisited.accept(_Payload); } | public void visitBreakNode(BreakNode iVisited) { iVisited.accept(_Payload); } | 3,238,189 |
public void visitCDeclNode(CDeclNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | public void visitCDeclNode(CDeclNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | 3,238,190 |
public void visitCFuncNode(CFuncNode iVisited) { iVisited.accept(_Payload); } | public void visitCFuncNode(CFuncNode iVisited) { iVisited.accept(_Payload); } | 3,238,191 |
public void visitCVAsgnNode(CVAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | public void visitCVAsgnNode(CVAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | 3,238,192 |
public void visitCVDeclNode(CVDeclNode iVisited) { iVisited.accept(_Payload); } | public void visitCVDeclNode(CVDeclNode iVisited) { iVisited.accept(_Payload); } | 3,238,193 |
public void visitCVar2Node(CVar2Node iVisited) { iVisited.accept(_Payload); } | public void visitCVar2Node(CVar2Node iVisited) { iVisited.accept(_Payload); } | 3,238,194 |
public void visitCVarNode(CVarNode iVisited) { iVisited.accept(_Payload); } | public void visitCVarNode(CVarNode iVisited) { iVisited.accept(_Payload); } | 3,238,195 |
public void visitCallNode(CallNode iVisited) { iVisited.getRecvNode().accept(this); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } iVisited.accept(_Payload); } | public void visitCallNode(CallNode iVisited) { iVisited.getRecvNode().accept(this); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } iVisited.accept(_Payload); } | 3,238,196 |
public void visitCaseNode(CaseNode iVisited) { iVisited.accept(_Payload); } | public void visitCaseNode(CaseNode iVisited) { iVisited.accept(_Payload); } | 3,238,197 |
public void visitClassNode(ClassNode iVisited) { iVisited.accept(_Payload); Node lSuperNode = iVisited.getSuperNode(); if (lSuperNode != null) lSuperNode.accept(this); //NOTE: suprised that this is not used //iVisited.getBodyNode().accept(this); } | public void visitClassNode(ClassNode iVisited) { iVisited.accept(_Payload); Node lSuperNode = iVisited.getSuperNode(); if (lSuperNode != null) lSuperNode.accept(this); //NOTE: suprised that this is not used //iVisited.getBodyNode().accept(this); } | 3,238,198 |
public void visitColon2Node(Colon2Node iVisited) { iVisited.accept(_Payload); } | public void visitColon2Node(Colon2Node iVisited) { iVisited.accept(_Payload); } | 3,238,199 |
public void visitColon3Node(Colon3Node iVisited) { iVisited.accept(_Payload); } | public void visitColon3Node(Colon3Node iVisited) { iVisited.accept(_Payload); } | 3,238,200 |
public void visitConstNode(ConstNode iVisited) { iVisited.accept(_Payload); } | public void visitConstNode(ConstNode iVisited) { iVisited.accept(_Payload); } | 3,238,201 |
public void visitDAsgnCurrNode(DAsgnCurrNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | public void visitDAsgnCurrNode(DAsgnCurrNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | 3,238,202 |
public void visitDAsgnNode(DAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | public void visitDAsgnNode(DAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | 3,238,203 |
public void visitDRegxNode(DRegxNode iVisited) { iVisited.accept(_Payload); } | public void visitDRegxNode(DRegxNode iVisited) { iVisited.accept(_Payload); } | 3,238,204 |
public void visitDRegxOnceNode(DRegxOnceNode iVisited) { iVisited.accept(_Payload); } | public void visitDRegxOnceNode(DRegxOnceNode iVisited) { iVisited.accept(_Payload); } | 3,238,205 |
public void visitDStrNode(DStrNode iVisited) { iVisited.accept(_Payload); } | public void visitDStrNode(DStrNode iVisited) { iVisited.accept(_Payload); } | 3,238,206 |
public void visitDVarNode(DVarNode iVisited) { iVisited.accept(_Payload); } | public void visitDVarNode(DVarNode iVisited) { iVisited.accept(_Payload); } | 3,238,207 |
public void visitDXStrNode(DXStrNode iVisited) { iVisited.accept(_Payload); } | public void visitDXStrNode(DXStrNode iVisited) { iVisited.accept(_Payload); } | 3,238,208 |
public void visitDefinedNode(DefinedNode iVisited) { iVisited.accept(_Payload); } | public void visitDefinedNode(DefinedNode iVisited) { iVisited.accept(_Payload); } | 3,238,209 |
public void visitDefnNode(DefnNode iVisited) { iVisited.accept(_Payload); iVisited.getDefnNode().accept(this); } | public void visitDefnNode(DefnNode iVisited) { iVisited.accept(_Payload); iVisited.getDefnNode().accept(this); } | 3,238,210 |
public void visitDefsNode(DefsNode iVisited) { iVisited.accept(_Payload); iVisited.getRecvNode().accept(this); } | public void visitDefsNode(DefsNode iVisited) { iVisited.accept(_Payload); iVisited.getRecvNode().accept(this); } | 3,238,211 |
public void visitDotNode(DotNode iVisited) { iVisited.accept(_Payload); } | public void visitDotNode(DotNode iVisited) { iVisited.accept(_Payload); } | 3,238,212 |
public void visitEnsureNode(EnsureNode iVisited) { iVisited.accept(_Payload); } | public void visitEnsureNode(EnsureNode iVisited) { iVisited.accept(_Payload); } | 3,238,213 |
public void visitEvStrNode(EvStrNode iVisited) { iVisited.accept(_Payload); } | public void visitEvStrNode(EvStrNode iVisited) { iVisited.accept(_Payload); } | 3,238,214 |
public void visitFBodyNode(FBodyNode iVisited) { iVisited.accept(_Payload); } | public void visitFBodyNode(FBodyNode iVisited) { iVisited.accept(_Payload); } | 3,238,215 |
public void visitFCallNode(FCallNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | public void visitFCallNode(FCallNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | 3,238,216 |
public void visitFalseNode(FalseNode iVisited) { iVisited.accept(_Payload); } | public void visitFalseNode(FalseNode iVisited) { iVisited.accept(_Payload); } | 3,238,217 |
public void visitFlipNode(FlipNode iVisited) { iVisited.accept(_Payload); } | public void visitFlipNode(FlipNode iVisited) { iVisited.accept(_Payload); } | 3,238,218 |
public void visitForNode(ForNode iVisited) { iVisited.accept(_Payload); } | public void visitForNode(ForNode iVisited) { iVisited.accept(_Payload); } | 3,238,219 |
public void visitGAsgnNode(GAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | public void visitGAsgnNode(GAsgnNode iVisited) { iVisited.accept(_Payload); iVisited.getValueNode().accept(this); } | 3,238,220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.