Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
18,100 | boolean () { try { return myRemote.start(); } catch (RemoteException e) { throw handleRemoteException(e); } } | start |
18,101 | void () { try { myRemote.step(); } catch (RemoteException e) { throw handleRemoteException(e); } } | step |
18,102 | void () { try { myRemote.stepInto(); } catch (RemoteException e) { throw handleRemoteException(e); } } | stepInto |
18,103 | void () { try { myRemote.resume(); } catch (RemoteException e) { throw handleRemoteException(e); } } | resume |
18,104 | void () { try { myRemote.pause(); } catch (RemoteException e) { throw handleRemoteException(e); } } | pause |
18,105 | boolean () { try { return myRemote.isStopped(); } catch (RemoteException e) { throw handleRemoteException(e); } } | isStopped |
18,106 | StyleFrame () { try { return new MyFrame(myRemote.getCurrentFrame()); } catch (RemoteException e) { throw handleRemoteException(e); } } | getCurrentFrame |
18,107 | SourceFrame () { try { return new MySourceFrame(myRemote.getSourceFrame()); } catch (RemoteException e) { throw handleRemoteException(e); } } | getSourceFrame |
18,108 | List<Variable> () { try { return MyVariable.convert(myRemote.getGlobalVariables()); } catch (RemoteException e) { throw handleRemoteException(e); } } | getGlobalVariables |
18,109 | BreakpointManager () { return myBreakpointManager; } | getBreakpointManager |
18,110 | OutputEventQueue () { return myEventQueue; } | getEventQueue |
18,111 | Breakpoint (File file, int line) { try { return new MyBreakpoint(myManager.setBreakpoint(file, line)); } catch (RemoteException e) { throw handleRemoteException(e); } } | setBreakpoint |
18,112 | Breakpoint (String uri, int line) { try { return new MyBreakpoint(myManager.setBreakpoint(uri, line)); } catch (RemoteException e) { throw handleRemoteException(e); } } | setBreakpoint |
18,113 | void (Breakpoint bp) { try { myManager.removeBreakpoint(bp.getUri(), bp.getLine()); } catch (RemoteException e) { throw handleRemoteException(e); } } | removeBreakpoint |
18,114 | void (String uri, int line) { try { myManager.removeBreakpoint(uri, line); } catch (RemoteException e) { throw handleRemoteException(e); } } | removeBreakpoint |
18,115 | List<Breakpoint> () { try { final List<RemoteBreakpoint> list = myManager.getBreakpoints(); final ArrayList<Breakpoint> breakpoints = new ArrayList<>(list.size()); for (RemoteBreakpoint breakpoint : list) { breakpoints.add(new MyBreakpoint(breakpoint)); } return breakpoints; } catch (RemoteException e) { throw handleRemoteException(e); } } | getBreakpoints |
18,116 | Breakpoint (String uri, int lineNumber) { try { final RemoteBreakpoint breakpoint = myManager.getBreakpoint(uri, lineNumber); return breakpoint != null ? new MyBreakpoint(breakpoint) : null; } catch (RemoteException e) { throw handleRemoteException(e); } } | getBreakpoint |
18,117 | String () { try { return myBreakpoint.getUri(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getUri |
18,118 | int () { try { return myBreakpoint.getLine(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getLine |
18,119 | boolean () { try { return myBreakpoint.isEnabled(); } catch (RemoteException e) { throw handleRemoteException(e); } } | isEnabled |
18,120 | String () { try { return myBreakpoint.getCondition(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getCondition |
18,121 | String () { try { return myBreakpoint.getLogMessage(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getLogMessage |
18,122 | void (String expr) { try { myBreakpoint.setCondition(expr); } catch (RemoteException e) { throw handleRemoteException(e); } } | setCondition |
18,123 | void (boolean enabled) { try { myBreakpoint.setEnabled(enabled); } catch (RemoteException e) { throw handleRemoteException(e); } } | setEnabled |
18,124 | void (String expr) { try { myBreakpoint.setLogMessage(expr); } catch (RemoteException e) { throw handleRemoteException(e); } } | setLogMessage |
18,125 | String () { try { return myBreakpoint.getTraceMessage(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getTraceMessage |
18,126 | void (String expr) { try { myBreakpoint.setTraceMessage(expr); } catch (RemoteException e) { throw handleRemoteException(e); } } | setTraceMessage |
18,127 | boolean () { try { return myBreakpoint.isSuspend(); } catch (RemoteException e) { throw handleRemoteException(e); } } | isSuspend |
18,128 | void (boolean suspend) { try { myBreakpoint.setSuspend(suspend); } catch (RemoteException e) { throw handleRemoteException(e); } } | setSuspend |
18,129 | int () { try { return myFrame.getLineNumber(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getLineNumber |
18,130 | String () { try { return myFrame.getURI(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getURI |
18,131 | F () { try { return createImpl(myFrame.getNext()); } catch (RemoteException e) { throw handleRemoteException(e); } } | getNext |
18,132 | F () { try { return createImpl(myFrame.getPrevious()); } catch (RemoteException e) { throw handleRemoteException(e); } } | getPrevious |
18,133 | String () { try { return myFrame.getXPath(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getXPath |
18,134 | List<Variable> () { try { return MyVariable.convert(myFrame.getVariables()); } catch (RemoteException e) { throw handleRemoteException(e); } } | getVariables |
18,135 | String () { try { return myFrame.getInstruction(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getInstruction |
18,136 | StyleFrame (RemoteDebugger.Frame frame) { return create(frame); } | createImpl |
18,137 | StyleFrame (RemoteDebugger.Frame currentFrame) { return currentFrame != null ? new MyFrame(currentFrame) : null; } | create |
18,138 | SourceFrame (RemoteDebugger.Frame frame) { return create(frame); } | createImpl |
18,139 | SourceFrame (RemoteDebugger.Frame currentFrame) { return currentFrame != null ? new MySourceFrame(currentFrame) : null; } | create |
18,140 | String () { try { return myVariable.getURI(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getURI |
18,141 | int () { try { return myVariable.getLineNumber(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getLineNumber |
18,142 | boolean () { try { return myVariable.isGlobal(); } catch (RemoteException e) { throw handleRemoteException(e); } } | isGlobal |
18,143 | Kind () { try { return myVariable.getKind(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getKind |
18,144 | String () { try { return myVariable.getName(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getName |
18,145 | Value () { try { return myVariable.getValue(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getValue |
18,146 | List<Variable> (List<? extends RemoteDebugger.Variable> list) { final ArrayList<Variable> variables = new ArrayList<>(list.size()); for (final RemoteDebugger.Variable variable : list) { variables.add(new MyVariable(variable)); } return variables; } | convert |
18,147 | void (boolean b) { try { myEventQueue.setEnabled(b); } catch (RemoteException e) { throw handleRemoteException(e); } } | setEnabled |
18,148 | List<NodeEvent> () { try { return myEventQueue.getEvents(); } catch (RemoteException e) { throw handleRemoteException(e); } } | getEvents |
18,149 | void (StyleFrame frame) { super.enter(frame); frames.put(frame, frame.getVariables()); } | enter |
18,150 | StreamSource (String file) { String path = PathManagerEx.getCommunityHomePath() + "/plugins/xslt-debugger/engine/impl/testData/" + file; return new StreamSource(new File(path)); } | getTestSource |
18,151 | void () { if (myEnabled) { myEvents.add(new NodeEvent(START_DOCUMENT, null, null)); } } | startDocument |
18,152 | void () { if (myEnabled) { myEvents.add(new NodeEvent(END_DOCUMENT, null, null)); } } | endDocument |
18,153 | void (String prefix, String localName, String uri) { addEvent(new NodeEvent(OutputEventQueue.START_ELEMENT, new NodeEvent.QName(prefix, localName, uri), null)); } | startElement |
18,154 | void (String prefix, String localName, String uri, String value) { addEvent(new NodeEvent(ATTRIBUTE, new NodeEvent.QName(prefix, localName, uri), value)); } | attribute |
18,155 | void () { addEvent(new NodeEvent(END_ELEMENT, null, null)); } | endElement |
18,156 | void (String s) { addEvent(new NodeEvent(CHARACTERS, null, s)); } | characters |
18,157 | void (String s) { addEvent(new NodeEvent(COMMENT, null, s)); } | comment |
18,158 | void (String target, String data) { addEvent(new NodeEvent(PI, new NodeEvent.QName(target), data)); } | pi |
18,159 | void (String text) { addEvent(new NodeEvent(TRACE_POINT, null, text)); } | trace |
18,160 | void (boolean b) { myEnabled = b; } | setEnabled |
18,161 | boolean () { return myEnabled; } | isEnabled |
18,162 | void (NodeEvent event) { if (myEnabled) { final Debugger.StyleFrame frame = myDebugger.getCurrentFrame(); if (frame != null) { event.setLocation(frame.getURI(), frame.getLineNumber()); } myEvents.add(event); } } | addEvent |
18,163 | List<NodeEvent> () { try { return new ArrayList<>(myEvents); } finally { myEvents.clear(); } } | getEvents |
18,164 | String () { return myUri; } | getURI |
18,165 | int () { return myLineNumber; } | getLineNumber |
18,166 | String () { return myRealname; } | getName |
18,167 | Value () { return myValue; } | getValue |
18,168 | boolean () { return myGlobal; } | isGlobal |
18,169 | Kind () { return myKind; } | getKind |
18,170 | String () { return (myGlobal ? "global:" : "") + "{" + myKind + ":" + myRealname + "=" + myValue + "}"; } | toString |
18,171 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final VariableImpl that = (VariableImpl)o; return myRealname.equals(that.myRealname); } | equals |
18,172 | int () { return myRealname.hashCode(); } | hashCode |
18,173 | void (Transformer transformer) { try { if (Saxon9Support.init(transformer, this)) { return; } } catch (NoClassDefFoundError e1) { // ignore } try { if (SaxonSupport.init(transformer, this)) { return; } } catch (NoClassDefFoundError e) { // ignore } try { if (XalanSupport.init(transformer, this)) { return; } } catch (NoClassDefFoundError e1) { // ignore } throw new UnsupportedOperationException("Unsupported Transformer: " + transformer.getClass().getName()); } | prepareTransformer |
18,174 | void () { synchronized (theLock) { if (myState == State.STOPPED) { throw new DebuggerStoppedException(); } else if (myState != State.RUNNING) { throw new IllegalStateException(); } myCurrentStopCondition = Condition.TRUE; } } | pause |
18,175 | void () { assert Thread.currentThread() == myThread; stop0(); } | stopped |
18,176 | void () { synchronized (theLock) { myState = State.STOPPED; theLock.notifyAll(); } } | stop0 |
18,177 | State () { synchronized (theLock) { return myState; } } | getState |
18,178 | void (boolean force) { stop0(); myThread.interrupt(); if (!force) { return; } try { myThread.join(1000); if (myThread.isAlive()) { myThread.stop(); } } catch (InterruptedException e) { // } } | stop |
18,179 | State (State state) { try { synchronized (theLock) { if (myState == State.STOPPED) { return State.STOPPED; } while (myState == state) { theLock.wait(); } return myState; } } catch (InterruptedException e) { return null; } } | waitForStateChange |
18,180 | boolean () { try { synchronized (theLock) { while (myState == State.RUNNING) { theLock.wait(); } return myState != State.STOPPED; } } catch (InterruptedException e) { return false; } } | waitForDebuggee |
18,181 | boolean () { synchronized (theLock) { return myState == State.STOPPED; } } | isStopped |
18,182 | boolean () { assert myState == State.CREATED : "Already started"; myThread.start(); try { synchronized (theLock) { while (myState == State.CREATED) { theLock.wait(); } } return true; } catch (InterruptedException e) { // } return false; } | start |
18,183 | void (StyleFrame frame) { myFrames.addFirst(frame); final String uri = frame.getURI(); final StyleFrame previous = frame.getPrevious(); //if (previous != null && previous.getLineNumber() == frame.getLineNumber() && uri != null && uri.equals(previous.getURI())) { // if (frame.getInstruction().equals(previous.getInstruction())) { // System.err.println( // "WARN: Same instruction <" + frame.getInstruction() + "> on line " + frame.getLineNumber() + " encountered more than once"); // } //} if (isStopped()) { throw new DebuggerStoppedException(); } else if (myCurrentStopCondition != null && myCurrentStopCondition.value()) { suspendAndWait(); } else { final int lineNumber = frame.getLineNumber(); final Breakpoint breakpoint = myBreakpointManager.getBreakpoint(uri, lineNumber); if (breakpoint != null && breakpoint.isEnabled()) { // do not evaluate a log or condition bp more than once on the same line if (previous == null || previous.getLineNumber() != lineNumber) { final String condition = breakpoint.getCondition(); try { if (evalCondition(condition)) { final String logMessage = breakpoint.getLogMessage(); final String traceMessage = breakpoint.getTraceMessage(); if (logBreakpoint(frame, logMessage, traceMessage) || breakpoint.isSuspend()) { suspendAndWait(); } } } catch (EvaluationException e) { // TODO: send to IDEA System.err.println("[" + lineNumber + "]: Failed to evaluate expression: " + condition + " -- " + e.getMessage()); breakpoint.setEnabled(false); } } } } } | enter |
18,184 | void () { if (isStopped()) { throw new DebuggerStoppedException(); // } else if (myBreakpointManager.isBreakpoint(uri, lineNumber)) { // suspendAndWait(); // } else if (myCurrentStopCondition != null && myCurrentStopCondition.value()) { // suspendAndWait(); } ((AbstractFrame<?>)myFrames.removeFirst()).invalidate(); } | leave |
18,185 | void () { final int targetSize = myFrames.size(); myCurrentStopCondition = new Condition() { public boolean value() { return myFrames.size() <= targetSize; } }; resume(); } | step |
18,186 | boolean () { return myFrames.size() <= targetSize; } | value |
18,187 | void () { myCurrentStopCondition = Condition.TRUE; resume(); } | stepInto |
18,188 | StyleFrame () { return myFrames.size() > 0 ? myFrames.getFirst() : null; } | getCurrentFrame |
18,189 | SourceFrame () { return mySourceFrames.size() > 0 ? mySourceFrames.getFirst() : null; } | getSourceFrame |
18,190 | BreakpointManager () { return myBreakpointManager; } | getBreakpointManager |
18,191 | void (SourceFrame sourceFrame) { mySourceFrames.addFirst(sourceFrame); } | pushSource |
18,192 | void () { ((AbstractFrame<?>)mySourceFrames.removeFirst()).invalidate(); } | popSource |
18,193 | boolean () { return true; } | value |
18,194 | OutputEventQueueImpl () { return myEventQueue; } | getEventQueue |
18,195 | boolean () { return true; } | ping |
18,196 | void () { assert myValid; assert myNext == null; if (myPrev != null) { ((AbstractFrame<?>)myPrev).myNext = null; } myValid = false; } | invalidate |
18,197 | F () { assert myValid; return myNext; } | getNext |
18,198 | F () { assert myValid; return myPrev; } | getPrevious |
18,199 | boolean () { return myValid; } | isValid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.