bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self... | private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { this.var = var; this.method = method; this.self = self; this.frame = ... | 3,229,766 |
public Block cloneBlock() { Block newBlock = new Block(var, method, self, frame, scope, klass, iter, new DynamicVariableSet(dynamicVariables)); newBlock.isLambda = isLambda; if (getNext() != null) { newBlock.setNext(getNext()); } return newBlock; } | public Block cloneBlock() { Block newBlock = new Block(var, method, self, frame, cref, scope, klass, iter, new DynamicVariableSet(dynamicVariables)); newBlock.isLambda = isLambda; if (getNext() != null) { newBlock.setNext(getNext()); } return newBlock; } | 3,229,768 |
public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | 3,229,770 |
public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | 3,229,771 |
protected HashMap buildChainHash(Collection chains) { HashMap map = new HashMap(); Iterator iter = chains.iterator(); while (iter.hasNext()) { LayoutChainData p = (LayoutChainData) iter.next(); Integer id = new Integer(p.getID()); map.put(id,p); } return map; } | protected HashMap buildChainHash(Collection chains) { HashMap map = new HashMap(); Iterator iter = chains.iterator(); while (iter.hasNext()) { LayoutChainData p = (LayoutChainData) iter.next(); Integer id = new Integer(p.getID()); map.put(id,p); } return map; } | 3,229,772 |
protected void buildExecutionHashes(Collection executions) { chainExecutionHashesByID = new HashMap(); executionsByDatasetID = new HashMap(); executionsByChainID = new HashMap(); Iterator iter = executions.iterator(); while (iter.hasNext()) { // hash by execution id ChainExecutionData p = (ChainExecutionDa... | protected void buildExecutionHashes(Collection executions) { chainExecutionHashesByID = new HashMap(); executionsByDatasetID = new HashMap(); executionsByChainID = new HashMap(); Iterator iter = executions.iterator(); while (iter.hasNext()) { // hash by execution id ChainExecutionData p = (ChainExecutionDa... | 3,229,773 |
public void setAnalysisNodes(HashMap analysisNodes) { this.analysisNodes = analysisNodes; } | public void setAnalysisNodes(HashMap analysisNodes) { this.analysisNodes = analysisNodes; } | 3,229,774 |
private void updateExecutionHash(HashMap map, Integer id,ChainExecutionData p) { ArrayList execs = null; Object obj = map.get(id); if (obj == null) execs = new ArrayList(); else execs = (ArrayList) obj; execs.add(p); map.put(id,execs); } | private void updateExecutionHash(HashMap map, Integer id,ChainExecutionData p) { ArrayList execs = null; Object obj = map.get(id); if (obj == null) execs = new ArrayList(); else execs = (ArrayList) obj; execs.add(p); map.put(id,execs); } | 3,229,775 |
public ChainExecutionsLoadedEvent(HashMap executionsByDataset, HashMap executionsByChain,HashMap executionsByID) { super(); setSource(executionsByDataset); this.executionsByChain = executionsByChain; this.executionsByID = executionsByID; } | public ChainExecutionsLoadedEvent(HashMap executionsByDataset, HashMap executionsByChain,HashMap executionsByID) { super(); setSource(executionsByDataset); this.executionsByChain = executionsByChain; this.executionsByID = executionsByID; } | 3,229,776 |
private void init() { ThreadContext tc = getCurrentContext(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); verbose = falseObject; debug = falseObject; javaSupport = new JavaSupport(this);... | private void init() { ThreadContext tc = getCurrentContext(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); verbose = falseObject; debug = falseObject; javaSupport = new JavaSupport(this);... | 3,229,777 |
private RenderRGBWaveTask[] makeRndTasks(PlaneDef planeDef, RGBBuffer renderedDataBuf) { ArrayList tasks = new ArrayList(3); //Get all objects we need to create the tasks. Plane2D wData; QuantumManager qManager = renderer.getQuantum... | private RenderRGBWaveTask[] makeRndTasks(PlaneDef planeDef, RGBBuffer renderedDataBuf) { ArrayList tasks = new ArrayList(3); //Get all objects we need to create the tasks. Plane2D wData; QuantumManager qManager = renderer.getQuantum... | 3,229,779 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | RGBBufferrender(Rendererctx,PlaneDefplaneDef) throwsIOException,QuantizationException { //Settherenderingcontextforthecurrentinvocation. renderer=ctx;RenderingStatsperformanceStats=renderer.getStats(); //InitializesizeX1andsizeX2accordingtotheplanedefinitionand //createtheRGBbuffer. initAxesSize(planeDef,rend... | 3,229,780 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 3,229,781 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 3,229,782 |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 3,229,783 |
public static String getXsdType(Type type) { String name = type.getName(); String xsdType = (String) XSD_TYPES.get(name); if (xsdType == null) { xsdType = "xsd:string"; } return xsdType; } | public static String getXsdType(Type type) { String name = type.getName(); String xsdType = (String) XSD_TYPES.get(name); if (xsdType == null) { xsdType = "xs:string"; } return xsdType; } | 3,229,784 |
public static void createReadline(IRuby runtime) { try { Class readline = Class.forName("org.gnu.readline.Readline"); Class readlineLib = Class.forName("org.gnu.readline.ReadlineLibrary"); readline.getMethod("load",new Class[]{readlineLib}).invoke(null,new Object[]{readlineLi... | public static void createReadline(IRuby runtime) { try { Class readline = Class.forName("org.gnu.readline.Readline"); Class readlineLib = Class.forName("org.gnu.readline.ReadlineLibrary"); readline.getMethod("load",new Class[]{readlineLib}).invoke(null,new Object[]{readlineLi... | 3,229,785 |
public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { addToHistMeth.invoke(null,new Object[]{line.toString()}); return recv.getRuntime().getNil(); } | public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { readline.getHistory().addToHistory(line.toString()); return recv.getRuntime().getNil(); } | 3,229,786 |
public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) { IRubyObject line = recv.getRuntime().getNil(); try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); if(null != v)... | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) throws IOException { IRubyObject line = recv.getRuntime().getNil(); try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); ... | 3,229,787 |
public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) { IRubyObject line = recv.getRuntime().getNil(); try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); if(null != v)... | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) { IRubyObject line = recv.getRuntime().getNil(); try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); if(null != v)... | 3,229,788 |
public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { saved... | public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { saved... | 3,229,789 |
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 3,229,793 |
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 3,229,794 |
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 3,229,795 |
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 3,229,796 |
public static RubySymbol unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubySymbol.newSymbol(input.getRuby(), input.unmarshalString()); } | public static RubySymbol unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubySymbol.newSymbol(input.getRuntime(), input.unmarshalString()); } | 3,229,797 |
public Object invoke(MethodInvocation arg0) throws Throwable { Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); Curre... | public Object invoke(MethodInvocation arg0) throws Throwable { Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); Curre... | 3,229,798 |
public Object invoke(MethodInvocation arg0) throws Throwable { Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); Curre... | public Object invoke(MethodInvocation arg0) throws Throwable { Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); Curre... | 3,229,799 |
public void execute() { ZoomVisitor visitor = new ZoomVisitor(model); Browser browser = model.getBrowser(); ImageDisplay selectedDisplay = browser.getSelectedDisplay(); if (selectedDisplay.getParentDisplay() == null) return; selectedDisplay.accept(visitor); if (selectedD... | public void execute() { ZoomVisitor visitor = new ZoomVisitor(model); Browser browser = model.getBrowser(); ImageDisplay selectedDisplay = browser.getSelectedDisplay(); if (selectedDisplay.getParentDisplay() == null) return; selectedDisplay.accept(visitor); if (selectedD... | 3,229,800 |
public void populateMenuBar(MenuManager menuBar) { noteMenu = new MenuManager("&Note"); menuBar.add(noteMenu); addNoteSubmenu = new MenuManager("&Add Note"); addNoteSubmenu.add(addNoteAfter); addNoteSubmenu.add(addNoteUnder); noteMenu.add(addNoteSubmenu); moveNoteSubmenu = new MenuManager("&Move Note"); mo... | public void populateMenuBar(MenuManager menuBar) { noteMenu = new MenuManager("&Note"); menuBar.add(noteMenu); addNoteSubmenu = new MenuManager("&Add Note"); addNoteSubmenu.add(addNoteAfter); addNoteSubmenu.add(addNoteUnder); noteMenu.add(addNoteSubmenu); moveNoteSubmenu = new MenuManager("&Move Note"); mo... | 3,229,801 |
public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | 3,229,802 |
public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | 3,229,803 |
public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | 3,229,804 |
public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | 3,229,805 |
public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | 3,229,806 |
public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | 3,229,807 |
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | 3,229,810 |
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | 3,229,811 |
public PermissionData( Permissions permissions ) { this.p = permissions; } | public PermissionData( Permissions permissions ) { this.p = permissions; } | 3,229,812 |
public ReflectionCallbackMethod(Class klass, String methodName) { this(klass, methodName, (Class[]) null, false, false); } | public ReflectionCallbackMethod(Class klass, String methodName) { this(klass, methodName, (Class[]) null, false, false); } | 3,229,813 |
public static RubyClass createJavaClassClass(Ruby runtime, RubyModule javaModule) { RubyClass result = javaModule.defineClassUnder("JavaClass", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(JavaClass.class); result.includeModule(runtime.... | public static RubyClass createJavaClassClass(Ruby runtime, RubyModule javaModule) { RubyClass result = javaModule.defineClassUnder("JavaClass", runtime.getClasses().getJavaObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(JavaClass.class); result.includeModule(runt... | 3,229,814 |
public void load(String fileName) throws InitException, IOException { load(fileName,this.getClass().getClassLoader()); } | public void load(String fileName) throws InitException, IOException { load(fileName,this.getClass().getClassLoader()); } | 3,229,815 |
public int parseString(final RubyYaccLexer lexer, LexerSource src) { char c; int space = 0; StringBuffer buffer = new StringBuffer(100); if (func == -1) return Tokens.tSTRING_END; c = src.read(); if ((func & RubyYaccLexer.STR_FUNC_QWORDS) != 0 && C... | public int parseString(final RubyYaccLexer lexer, LexerSource src) { char c; int space = 0; StringBuffer buffer = new StringBuffer(100); if (func == -1) return Tokens.tSTRING_END; c = src.read(); if ((func & RubyYaccLexer.STR_FUNC_QWORDS) != 0 && C... | 3,229,817 |
public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | 3,229,818 |
public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | 3,229,819 |
public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | 3,229,820 |
public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | 3,229,821 |
public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | 3,229,822 |
public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | public char readEscape() { char c = read(); switch (c) { case '\\' : // backslash return c; case 'n' : // newline return '\n'; case 't' : // horizontal tab return '\t'; case 'r' : // carriage return ... | 3,229,823 |
public void addImage(byte[] imageData, String contentType) { List l = getImages(); if (l == null) { l = new ArrayList(); } ContentItemField field = new ContentItemFieldBean(); field.setBinaryValue(imageData); field.setFieldType(contentType); field.setOrderNo(l.size()); l.add(field); setImages(l); } | public void addImage(byte[] imageData, String contentType) { List l = getImages(); if (l == null) { l = new ArrayList(); } ContentItemField field = new ContentItemFieldBean(); field.setBinaryValue(imageData); field.setFieldType(contentType); field.setOrderNo(l.size()); l.add(field); setImages(l); } | 3,229,824 |
public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; setFolderLocation(null); } | public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; setFolderLocation(null); } | 3,229,825 |
public String getAsXML() throws IOException, XMLException { XMLParser builder = new XMLParser(); XMLElement bodyElement = null; prettifyBody(); String bodyString = getBody(); if(bodyString != null && !bodyString.trim().equals("")){ XMLDocument bodyDoc = builder.parse(new ByteArrayInputStream(bodyString.ge... | public String getAsXML() throws IOException, XMLException { XMLParser builder = new XMLParser(); XMLElement bodyElement = null; prettifyBody(); String bodyString = getBody(); if(bodyString != null && !bodyString.trim().equals("")){ XMLDocument bodyDoc = builder.parse(new ByteArrayInputStream(bodyString.ge... | 3,229,826 |
public String getAuthor() { return (String)getValue(FIELDNAME_AUTHOR); } | public String getAuthor() { return (String)getValue(FIELDNAME_AUTHOR); } | 3,229,827 |
public String getBody() { return (String)getValue(FIELDNAME_BODY); } | public String getBody() { return (String)getValue(FIELDNAME_BODY); } | 3,229,828 |
public String getComment() { return (String)getValue(FIELDNAME_COMMENT); } | public String getComment() { return (String)getValue(FIELDNAME_COMMENT); } | 3,229,829 |
public String[] getContentFieldNames(){ return ATTRIBUTE_ARRAY; } | public String[] getContentFieldNames(){ return ATTRIBUTE_ARRAY; } | 3,229,830 |
public String getContentItemPrefix() { return "article_"; } | public String getContentItemPrefix() { return "article_"; } | 3,229,831 |
public String getContentLanguage() { return (String)getValue(FIELDNAME_CONTENT_LANGUAGE); } | public String getContentLanguage() { return (String)getValue(FIELDNAME_CONTENT_LANGUAGE); } | 3,229,832 |
public String getHeadline() { return (String)getValue(FIELDNAME_HEADLINE); } | public String getHeadline() { return (String)getValue(FIELDNAME_HEADLINE); } | 3,229,833 |
public List getImages() { return getItemFields(FIELDNAME_IMAGES); } | public List getImages() { return getItemFields(FIELDNAME_IMAGES); } | 3,229,834 |
public String getLanguageChange() { return (String)getValue(FIELDNAME_LANGUAGE_CHANGE); } | public String getLanguageChange() { return (String)getValue(FIELDNAME_LANGUAGE_CHANGE); } | 3,229,835 |
public String getSource() { return (String)getValue(FIELDNAME_SOURCE); } | public String getSource() { return (String)getValue(FIELDNAME_SOURCE); } | 3,229,836 |
public String getTeaser() { return (String)getValue(FIELDNAME_TEASER); } | public String getTeaser() { return (String)getValue(FIELDNAME_TEASER); } | 3,229,837 |
public String[] getToolbarActions(){ //return ACTION_ARRAY; return super.getToolbarActions(); } | public String[] getToolbarActions(){ //return ACTION_ARRAY; return super.getToolbarActions(); } | 3,229,838 |
public boolean isUpdated() { return _isUpdated; } | public boolean isUpdated() { return _isUpdated; } | 3,229,839 |
public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResourc... | public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResourc... | 3,229,840 |
private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleRootPath(); try { //first make the folder: slideService.c... | private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleRootPath(); try { //first make the folder: slideService.c... | 3,229,841 |
protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... | protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... | 3,229,842 |
public void removeImage(Integer imageNumber) { int imageNo = imageNumber.intValue(); try { List l = getImages(); l.remove(imageNo); for (int i = 0; i < l.size(); i++) { ContentItemField field = (ContentItemField) l.get(i); field.setOrderNo(i); } } catch (Exception e) {} } | public void removeImage(Integer imageNumber) { int imageNo = imageNumber.intValue(); try { List l = getImages(); l.remove(imageNo); for (int i = 0; i < l.size(); i++) { ContentItemField field = (ContentItemField) l.get(i); field.setOrderNo(i); } } catch (Exception e) {} } | 3,229,843 |
public void setAuthor(String s) { setValue(FIELDNAME_AUTHOR, s); } | public void setAuthor(String s) { getLocalizedArticle().setAuthor(s); } | 3,229,844 |
public void setBody(String body) { setValue(FIELDNAME_BODY, body);// if (null != articleIn) {//// System.out.println("ArticleIn = "+articleIn);// //Use JTidy to clean up the html// Tidy tidy = new Tidy();// tidy.setXHTML(true);// tidy.setXmlOut(true);// ByteArrayInputStream bais = new ByteArrayInputStrea... | public void setBody(String body) { setValue(FIELDNAME_BODY, body);// if (null != articleIn) {//// System.out.println("ArticleIn = "+articleIn);// //Use JTidy to clean up the html// Tidy tidy = new Tidy();// tidy.setXHTML(true);// tidy.setXmlOut(true);// ByteArrayInputStream bais = new ByteArrayInputStrea... | 3,229,845 |
public void setComment(String s) { setValue(FIELDNAME_COMMENT, s); } | public void setComment(String s) { setValue(FIELDNAME_COMMENT, s); } | 3,229,846 |
public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); } | public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); } | 3,229,847 |
public void setImages(List l) { setItemFields(FIELDNAME_IMAGES, l); } | public void setImages(List l) { setItemFields(FIELDNAME_IMAGES, l); } | 3,229,848 |
public void setLanguageChange(String s) { setValue(FIELDNAME_LANGUAGE_CHANGE, s); } | public void setLanguageChange(String s) { setValue(FIELDNAME_LANGUAGE_CHANGE, s); } | 3,229,849 |
protected void setPublished(){ setStatus(ContentItemCase.STATUS_PUBLISHED); } | protected void setPublished(){ setStatus(ContentItemCase.STATUS_PUBLISHED); } | 3,229,850 |
public void setSource(String s) { setValue(FIELDNAME_SOURCE, s); } | public void setSource(String s) { setValue(FIELDNAME_SOURCE, s); } | 3,229,851 |
public void setTeaser(String s) { setValue(FIELDNAME_TEASER, s); } | public void setTeaser(String s) { getLocalizedArticle().setTeaser(s); } | 3,229,852 |
public void setUpdated(boolean b) { _isUpdated = b; } | public void setUpdated(boolean b) { _isUpdated = b; } | 3,229,853 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 3,229,854 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 3,229,855 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 3,229,856 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 3,229,857 |
protected void tryPublish(){ //TODO: Implement publishing here: setPublished(); } | protected void tryPublish(){ //TODO: Implement publishing here: setPublished(); } | 3,229,858 |
public RubyFixnum length() { long size = 0; if (begin.funcall(">", end).isTrue()) { return new RubyFixnum(getRuby(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLongValue(... | public RubyFixnum length() { long size = 0; if (begin.funcall(">", end).isTrue()) { return RubyFixnum.newFixnum(getRuby(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLong... | 3,229,859 |
public RubyFixnum length() { long size = 0; if (begin.funcall(">", end).isTrue()) { return new RubyFixnum(getRuby(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLongValue(... | public RubyFixnum length() { long size = 0; if (begin.funcall(">", end).isTrue()) { return new RubyFixnum(getRuby(), 0); } if (begin instanceof RubyFixnum && end instanceof RubyFixnum) { size = ((RubyNumeric) end).getLongValue() - ((RubyNumeric) begin).getLongValue(... | 3,229,860 |
public void makePizza() { System.out.println("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); } | public void makePizza() { log.info("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); } | 3,229,861 |
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | 3,229,862 |
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | 3,229,863 |
public void testThumbnailsDirect() throws Exception { RenderingDef def = qs .findAll(RenderingDef.class, null).get(0); Pixels p = qs.get(Pixels.class, def.getPixels().getId()); tb.getThumbnailDirect(p, def, 8, 8); } | public void testThumbnailsDirect() throws Exception { RenderingDef def = qs .findAll(RenderingDef.class, null).get(0); Pixels p = qs.get(Pixels.class, def.getPixels().getId()); tb.getThumbnailDirect(p, def, 8, 8); } | 3,229,864 |
protected void onSetUp() throws Exception { iQuery = (LocalQuery) applicationContext.getBean("queryService"); iUpdate = (LocalUpdate) applicationContext.getBean("updateService"); iAnalysis= (IAnalysis) applicationContext.getBean("analysisService"); login("root","system","Test"); } | protected void onSetUp() throws Exception { iQuery = (LocalQuery) applicationContext.getBean("queryService"); iUpdate = (LocalUpdate) applicationContext.getBean("updateService"); iAnalysis = (IAnalysis) applicationContext.getBean("analysisService"); iPojos = (IPojos) applicationContext.getBean(... | 3,229,865 |
public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); chainCanvas = new ChainPaletteCanvas(dataManager); chainCanvas.setContents(dataManager.getChains()); long start; if (ChainBuilderAgent.DEBUG) start = System.currentTimeMillis(); chainCanvas.layoutContents()... | public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); chainCanvas = new ChainPaletteCanvas(dataManager); chainCanvas.setContents(dataManager.getChains()); long start; if (ChainBuilderAgent.DEBUG) start = System.currentTimeMillis(); chainCanvas.layoutContents()... | 3,229,866 |
public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); chainCanvas = new ChainPaletteCanvas(dataManager); chainCanvas.setContents(dataManager.getChains()); long start; if (ChainBuilderAgent.DEBUG) start = System.currentTimeMillis(); chainCanvas.layoutContents()... | public void buildGUI() { Container content = getContentPane(); content.setLayout(new BorderLayout()); chainCanvas = new ChainPaletteCanvas(dataManager); chainCanvas.setContents(dataManager.getChains()); long start; if (ChainBuilderAgent.DEBUG) start = System.currentTimeMillis(); chainCanvas.layoutContents()... | 3,229,867 |
public static IRubyObject new_array(IRubyObject recv, IRubyObject object) { return object.callMethod("to_a"); } | public static IRubyObject new_array(IRubyObject recv, IRubyObject object) { IRubyObject value = object.convertToTypeWithCheck("Array", "to_ary"); if (value.isNil()) { ICallable method = object.getMetaClass().searchMethod("to_a"); if (method.getImplementationClass() == recv.getRuntime().getKernel()) { retur... | 3,229,868 |
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ... | public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ... | 3,229,869 |
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ... | public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ... | 3,229,870 |
public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ... | public static IRubyObject select_static(IRuby runtime, IRubyObject[] args) { try { boolean atLeastOneDescriptor = false; Selector selector = Selector.open(); if (!args[0].isNil()) { atLeastOneDescriptor = true; // read ... | 3,229,871 |
public RubyObject m_compact_bang() { modify(); boolean changed = false; int length = length(); for (int i = 0; i < length; i++) { if (entry(i).isNil()) { list.remove(i); changed = true; } } return changed ? (RubyObject)thi... | public RubyObject m_compact_bang() { modify(); boolean changed = false; int length = length(); for (int i = 0; i < length; i++) { if (entry(i).isNil()) { list.remove(i); changed = true; } } return changed ? (RubyObject)thi... | 3,229,872 |
public RubyObject m_compact_bang() { modify(); boolean changed = false; int length = length(); for (int i = 0; i < length; i++) { if (entry(i).isNil()) { list.remove(i); changed = true; } } return changed ? (RubyObject)thi... | public RubyObject m_compact_bang() { modify(); boolean changed = false; int length = length(); for (int i = 0; i < length; i++) { if (entry(i).isNil()) { list.remove(i); changed = true; } } return changed ? (RubyObject)thi... | 3,229,873 |
public ClassData getOrCreateClassData(String name) { ClassData classData = (ClassData)this.classes.get(name); if (classData == null) { classData = new ClassData(name); addClassData(classData); } return classData; } | public ClassData getOrCreateClassData(String name) { ClassData classData = (ClassData)this.classes.get(name); if (classData == null) { classData = new ClassData(name); addClassData(classData); } return classData; } | 3,229,876 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.