100+ results for 'ERROR'
Not the results you expected?
CatalogStar.java (https://github.com/jankotek/Pixy2.git) Java · 459 lines
104 /**
105 * Gets the mean error of position in arcsec.
106 * @return the mean error of position in arcsec.
107 */
108 public double getPositionErrorInArcsec ( ) {
109 return 1.0;
112 /**
113 * Gets the maximum error of position in arcsec. It is the search
114 * area size to identify with other stars.
115 * @return the maximum error of position in arcsec.
116 */
117 public double getMaximumPositionErrorInArcsec ( ) {
118 return 5.0;
settings.js (https://github.com/ChuguluGames/mediawiki-svn.git) JavaScript · 439 lines
71 if (a.length != dimensions) {
72 throw new Error("Expected a tuple of " + dimensions + " dimensions separated with " + separator + " but got " + value);
73 } else {
101 }
102 throw new Error("Expected a floating point number but got " + s);
103 } else if (type == "int") {
111 }
112 throw new Error("Expected an integer but got " + s);
113 } else if (type == "boolean") {
123 }
124 throw new Error("Expected either 'true' or 'false' but got " + s);
125 } else if (type == "function") {
137 }
138 throw new Error("Expected a function or the name of a function but got " + s);
139 } else if (type == "enum") {
mmap.c (https://github.com/jehc/MondocosmOS.git) C · 409 lines
123 if (!(flags & MAP_ANONYMOUS)) {
124 /* msync() won't work here, so we return an error if write is
125 possible while it is a shared mapping */
247 (offset & ~qemu_host_page_mask) != (start & ~qemu_host_page_mask)) {
248 /* msync() won't work here, so we return an error if write is
249 possible while it is a shared mapping */
388 #else
389 qerror("target_mremap: unsupported\n");
390 #endif
minval_i8.c (https://bitbucket.org/Underworld79/toolchain_gcc-4.8.git) C · 545 lines
114 if (rank != GFC_DESCRIPTOR_RANK (retarray))
115 runtime_error ("rank of return array incorrect in"
116 " MINVAL intrinsic: is %ld, should be %ld",
248 else
249 runtime_error ("Funny sized logical array");
307 if (rank != GFC_DESCRIPTOR_RANK (retarray))
308 runtime_error ("rank of return array incorrect in MINVAL intrinsic");
489 if (rank != GFC_DESCRIPTOR_RANK (retarray))
490 runtime_error ("rank of return array incorrect in"
491 " MINVAL intrinsic: is %ld, should be %ld",
502 if (extent[n] != ret_extent)
503 runtime_error ("Incorrect extent in return value of"
504 " MINVAL intrinsic in dimension %ld:"
branches_spec.rb (https://gitlab.com/the-undefined/gitlab-ce) Ruby · 302 lines
39 it "returns a 403 error if guest" do
40 get api("/projects/#{project.id}/repository/branches", user2)
44 it "returns a 404 error if branch is not available" do
45 get api("/projects/#{project.id}/repository/branches/unknown", user)
191 it "returns a 404 error if branch not found" do
192 put api("/projects/#{project.id}/repository/branches/unknown/protect", user)
196 it "returns a 403 error if guest" do
197 put api("/projects/#{project.id}/repository/branches/#{branch_name}/protect", user2)
triedict.h (https://github.com/MIPS/external-chromium.git) C Header · 390 lines
34 * If length==-1, then outData will not be used and can be NULL.
35 * @param pErrorCode ICU UErrorCode parameter, must not be NULL and must
36 * fulfill U_SUCCESS on input.
44 const void *inData, int32_t length, void *outData,
45 UErrorCode *pErrorCode);
104 */
105 virtual StringEnumeration *openWords( UErrorCode &status ) const = 0;
153 */
154 MutableTrieDictionary( UChar median, UErrorCode &status, UBool containsValue = FALSE );
200 */
201 virtual StringEnumeration *openWords( UErrorCode &status ) const;
parse-events.y (https://github.com/othane/linux.git) Happy · 672 lines
303 struct parse_events_evlist *data = _data;
304 struct parse_events_error *error = data->error;
305 struct list_head *list;
315 struct parse_events_evlist *data = _data;
316 struct parse_events_error *error = data->error;
317 struct list_head *list;
327 struct parse_events_evlist *data = _data;
328 struct parse_events_error *error = data->error;
329 struct list_head *list;
385 struct parse_events_evlist *data = _data;
386 struct parse_events_error *error = data->error;
387 struct list_head *list;
447 struct parse_events_evlist *data = _data;
448 struct parse_events_error *error = data->error;
449 struct list_head *list;
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 61 lines
secmem.h (https://github.com/gidlbn/dlbn_02.git) C Header · 438 lines
113 * The use of this function is discouraged because of the risk of memory
114 * errors. Use MemoryRegion<T>::set()
115 * instead.
117 * The former contents of *this are discarded.
118 * The length of *this must be at least n, otherwise memory errors occur.
119 * @param in the array to copy the contents from
126 * The use of this function is discouraged because of the risk of memory
127 * errors. Use MemoryRegion<T>::set()
128 * instead.
130 * The former contents of *this are discarded.
131 * The length of *this must be at least n, otherwise memory errors occur.
132 * @param off the offset position inside this buffer to start inserting
gnu_io_RXTXPort.h (https://github.com/societies/SOCIETIES-Platform.git) C Header · 533 lines
411 * Class: gnu_io_RXTXPort
412 * Method: nativeGetParityErrorChar
413 * Signature: ()B
414 */
415 JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar
416 (JNIEnv *, jobject);
419 * Class: gnu_io_RXTXPort
420 * Method: nativeSetParityErrorChar
421 * Signature: (B)Z
422 */
423 JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar
424 (JNIEnv *, jobject, jbyte);
write-concern.yml (https://github.com/paralect/mongo.git) YAML · 554 lines
triedict.h (https://bitbucket.org/kennethendfinger/chromium.git) C Header · 389 lines
34 * If length==-1, then outData will not be used and can be NULL.
35 * @param pErrorCode ICU UErrorCode parameter, must not be NULL and must
36 * fulfill U_SUCCESS on input.
44 const void *inData, int32_t length, void *outData,
45 UErrorCode *pErrorCode);
104 */
105 virtual StringEnumeration *openWords( UErrorCode &status ) const = 0;
152 */
153 MutableTrieDictionary( UChar median, UErrorCode &status, UBool containsValue = FALSE );
199 */
200 virtual StringEnumeration *openWords( UErrorCode &status ) const;
gsl_matrix_ulong.h (https://github.com/mantidproject/3rdpartyincludes.git) C Header · 358 lines
282 {
283 GSL_ERROR_VAL("first index out of range", GSL_EINVAL, 0) ;
284 }
286 {
287 GSL_ERROR_VAL("second index out of range", GSL_EINVAL, 0) ;
288 }
302 {
303 GSL_ERROR_VOID("first index out of range", GSL_EINVAL) ;
304 }
306 {
307 GSL_ERROR_VOID("second index out of range", GSL_EINVAL) ;
308 }
322 {
323 GSL_ERROR_NULL("first index out of range", GSL_EINVAL) ;
324 }
lzma.js (https://bitbucket.org/tapanij/ogthreejs.git) JavaScript · 510 lines
transformationMacros.h (https://bitbucket.org/bathtub/rose.git) C Header · 255 lines
File.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 478 lines
75 "Cannot access storage directory $dir",
76 Zend_OpenId_Exception::ERROR_STORAGE );
77 }
81 'Cannot create a lock file in the directory ' . $dir,
82 Zend_OpenId_Exception::ERROR_STORAGE );
83 }
87 'Cannot create a lock file in the directory ' . $dir,
88 Zend_OpenId_Exception::ERROR_STORAGE );
89 }
devres.c (https://github.com/acmel/linux.git) C · 483 lines
fsl_qe_udc.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 438 lines
✨ Summary
This C++ header file defines a USB device controller for a Freescale QorIQ processor. It provides functions and constants for managing USB transactions, including transmit and receive buffers, packet IDs, and error handling. The code is likely used in a Linux kernel module to interact with a USB device connected to the QorIQ processor.
This C++ header file defines a USB device controller for a Freescale QorIQ processor. It provides functions and constants for managing USB transactions, including transmit and receive buffers, packet IDs, and error handling. The code is likely used in a Linux kernel module to interact with a USB device connected to the QorIQ processor.
210 #define FRAME_OK 0x00000000 /* Frame tranmitted or received OK */
211 #define FRAME_ERROR 0x80000000 /* Error occured on frame */
212 #define START_FRAME_LOST 0x40000000 /* START_FRAME_LOST */
215 #define RX_ER_BITSTUFF 0x08000000 /* Frame Aborted --Received packet
216 with bit stuff error */
217 #define RX_ER_CRC 0x04000000 /* Received packet with CRC error */
344 u32 usb_sof_count; /* SOF count */
345 u32 errors; /* USB ERRORs count */
386 #define DEVICE_T_ERROR (T_UN | T_TO)
387 #define HOST_T_ERROR (T_UN | T_TO | T_NAK | T_STAL)
388 #define DEVICE_T_BD_MASK DEVICE_T_ERROR
389 #define HOST_T_BD_MASK HOST_T_ERROR
RESyntax.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 492 lines
✨ Summary
This Java code defines a class RESyntax
that represents a regular expression syntax. It provides methods to create, modify, and finalize a syntax object, allowing users to customize its behavior. The class also includes constants for predefined syntaxes, such as RE_SYNTAX_EMACS
, which is the default syntax with all bits turned off.
This Java code defines a class RESyntax
that represents a regular expression syntax. It provides methods to create, modify, and finalize a syntax object, allowing users to customize its behavior. The class also includes constants for predefined syntaxes, such as RE_SYNTAX_EMACS
, which is the default syntax with all bits turned off.
411 * so their interpretation cannot vary. Conceivably useful
412 * for your syntaxes as well. Causes IllegalAccessError to
413 * be thrown if any attempt to modify the syntax is made.
443 public RESyntax set(int index) {
444 if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);
445 bits.set(index);
455 public RESyntax clear(int index) {
456 if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);
457 bits.clear(index);
478 public RESyntax setLineSeparator(String aSeparator) {
479 if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);
480 lineSeparator = aSeparator;
ErrorNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 54 lines
✨ Summary
This Java class, ErrorNode
, extends another class called TigerNode
to represent an error node in a display tree. It stores an exception object and provides methods to access this exception and its ordinal value (in this case, -1). The class is used for displaying errors in a program, likely as part of a compiler or interpreter.
This Java class, ErrorNode
, extends another class called TigerNode
to represent an error node in a display tree. It stores an exception object and provides methods to access this exception and its ordinal value (in this case, -1). The class is used for displaying errors in a program, likely as part of a compiler or interpreter.
LogViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 542 lines
✨ Summary
This Java code is part of a log viewer application, allowing users to customize the display settings for different types of logs (debug, message, notice, warning, error). It provides a graphical user interface with checkboxes and color selection buttons to control these settings. The changes are saved when the “OK” button is clicked, and the updated settings can be applied to the log viewer application.
This Java code is part of a log viewer application, allowing users to customize the display settings for different types of logs (debug, message, notice, warning, error). It provides a graphical user interface with checkboxes and color selection buttons to control these settings. The changes are saved when the “OK” button is clicked, and the updated settings can be applied to the log viewer application.
186 private static boolean showWarning = jEdit.getBooleanProperty("log-viewer.message.warning", true);
187 private static boolean showError = jEdit.getBooleanProperty("log-viewer.message.error", true);
415 return false;
416 if (text.contains("[error]") && !showError)
417 return false;
445 jEdit.getBooleanProperty("log-viewer.message.warning", true));
446 error = new JCheckBox(jEdit.getProperty("log-viewer.message.error.label", "Error"),
447 jEdit.getBooleanProperty("log-viewer.message.error", true));
507 jEdit.setBooleanProperty("log-viewer.message.warning", showWarning);
508 showError = error.isSelected();
509 jEdit.setBooleanProperty("log-viewer.message.error", showError);
514 jEdit.setColorProperty("log-viewer.message.warning.color", warningColor.getSelectedColor());
515 jEdit.setColorProperty("log-viewer.message.error.color", errorColor.getSelectedColor());
AddOnsFactory.java
(http://softkeyboard.googlecode.com/svn/)
Java · 259 lines
✨ Summary
This Java code defines a class that manages external keyboard add-ons for an Android application. It parses XML files to extract add-on details, such as preferences and descriptions, and creates instances of E
(an abstract class) based on this data. The class also handles broadcast receivers and package contexts to retrieve additional information about the add-ons.
This Java code defines a class that manages external keyboard add-ons for an Android application. It parses XML files to extract add-on details, such as preferences and descriptions, and creates instances of E
(an abstract class) based on this data. The class also handles broadcast receivers and package contexts to retrieve additional information about the add-ons.
Roster.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 484 lines
✨ Summary
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It downloads and installs plugins from a mirror server, handling errors and progress updates. The code uses Swing for GUI interactions and IOUtilities for file I/O operations. It also manages the download directory and deletes downloaded files if configured to do so.
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It downloads and installs plugins from a mirror server, handling errors and progress updates. The code uses Swing for GUI interactions and IOUtilities for file I/O operations. It also manages the download directory and deletes downloaded files if configured to do so.
232 String[] args = {this.jar};
233 GUIUtilities.error(comp,"plugin-manager.remove-failed",args);
234 }
362 Log.log(Log.ERROR,this,e);
363 GUIUtilities.error(null,"plugin-error-download",new Object[]{""});
364 }
369 String[] args = { io.getMessage() };
370 GUIUtilities.error(null,"ioerror",args);
371 }
451 {
452 GUIUtilities.error(null,"plugin-error-download",new Object[]{""});
453 }
466 String[] args = { io.getMessage() };
467 GUIUtilities.error(null,"plugin-error-download",args);
468 }
ErrorsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 292 lines
✨ Summary
This Java code defines a GUI component, ErrorsOptionPane
, which displays a list of error matches and allows users to edit them. It includes buttons for adding, removing, moving up/down, and reloading errors, as well as handling mouse clicks and list selection changes. The component uses a custom model and view to manage the data and display it in a user-friendly manner.
This Java code defines a GUI component, ErrorsOptionPane
, which displays a list of error matches and allows users to edit them. It includes buttons for adding, removing, moving up/down, and reloading errors, as well as handling mouse clicks and list selection changes. The component uses a custom model and view to manage the data and display it in a user-friendly manner.
103 errorListModel = ErrorListModel.load();
104 errorList = new JList();
193 {
194 ErrorMatcher matcher = (ErrorMatcher)errorList.getSelectedValue();
195 if (matcher != null)
243 else if (! errorListModel.isEmpty())
244 errorList.setSelectedIndex(errorListModel.size() - 1);
245 errorList.repaint();
250 int index = errorList.getSelectedIndex();
251 ErrorMatcher selected = errorListModel.get(index);
252 errorListModel.removeElementAt(index);
259 int index = errorList.getSelectedIndex();
260 ErrorMatcher matcher = errorListModel.get(index);
261 errorListModel.removeElementAt(index);
Inflate.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 375 lines
✨ Summary
This Java code implements a decompression algorithm for ZIP files, specifically the DEFLATE compression format used by ZIP. It provides methods for inflating compressed data, setting dictionaries, and checking sync points to ensure proper decompression. The code is part of the Zlib library, which is widely used in various applications for compressing and decompressing data.
This Java code implements a decompression algorithm for ZIP files, specifically the DEFLATE compression format used by ZIP. It provides methods for inflating compressed data, setting dictionaries, and checking sync points to ensure proper decompression. The code is part of the Zlib library, which is widely used in various applications for compressing and decompressing data.
55 static final private int Z_ERRNO=-1;
56 static final private int Z_STREAM_ERROR=-2;
57 static final private int Z_DATA_ERROR=-3;
58 static final private int Z_MEM_ERROR=-4;
59 static final private int Z_BUF_ERROR=-5;
60 static final private int Z_VERSION_ERROR=-6;
74 static final private int DONE=12; // finished check, done
75 static final private int BAD=13; // got an error--stay here
95 int inflateReset(ZStream z){
96 if(z == null || z.istate == null) return Z_STREAM_ERROR;
driver.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 291 lines
✨ Summary
This C code provides a set of functions for managing device drivers in Linux. It allows drivers to be registered, unregistered, and managed by the system bus. The functions also provide iterators for iterating over devices bound to a driver and finding a specific driver on a bus. Additionally, it handles file creation and removal for sysfs files associated with drivers.
This C code provides a set of functions for managing device drivers in Linux. It allows drivers to be registered, unregistered, and managed by the system bus. The functions also provide iterators for iterating over devices bound to a driver and finding a specific driver on a bus. Additionally, it handles file creation and removal for sysfs files associated with drivers.
45 struct device *dev;
46 int error = 0;
52 start ? &start->p->knode_driver : NULL);
53 while ((dev = next_device(&i)) && !error)
54 error = fn(dev, data);
55 klist_iter_exit(&i);
56 return error;
57 }
102 {
103 int error;
104 if (drv)
105 error = sysfs_create_file(&drv->p->kobj, &attr->attr);
106 else
Duplicate_Line.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 71 lines
stata.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2980 lines
195 <!-- //-line comments at the start of a line do not work reliably in semicolon environment (this is a Stata problem)-->
196 <!-- e.g.: put //-comment at the line start of two successive lines at the start of semicolon environment: this will lead to an Stata(v10)-error/break-->
197 <!-- if you want to enable this anyway, just uncomment the follwoing line: -->
856 <KEYWORD1>_prefix_relabel_eqns</KEYWORD1>
857 <KEYWORD1>_prefix_run_error</KEYWORD1>
858 <KEYWORD1>_prefix_saving</KEYWORD1>
890 <KEYWORD1>_small2dotz</KEYWORD1>
891 <KEYWORD1>_stata_internalerror</KEYWORD1>
892 <KEYWORD1>_stcurv</KEYWORD1>
SquareSum.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 101 lines
✨ Summary
This C++ code defines a class SquareSum
that represents a node in an image processing pipeline. It takes two input images and produces an output image where each pixel value is the square root of the sum of corresponding pixel values from the two input images. The output image is updated only when necessary, and exceptions are thrown if errors occur during processing.
This C++ code defines a class SquareSum
that represents a node in an image processing pipeline. It takes two input images and produces an output image where each pixel value is the square root of the sum of corresponding pixel values from the two input images. The output image is updated only when necessary, and exceptions are thrown if errors occur during processing.
jikes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 78 lines
BufferLoadRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 395 lines
✨ Summary
This Java code is part of a text editor’s buffer management system. It reads and processes markers from a file, which are used to mark specific positions in a document. The code handles various encoding formats, detects errors, and updates the buffer with the correct content based on the detected encoding. It also logs any errors that occur during this process.
This Java code is part of a text editor’s buffer management system. It reads and processes markers from a file, which are used to mark specific positions in a document. The code handles various encoding formats, detects errors, and updates the buffer with the correct content based on the detected encoding. It also logs any errors that occur during this process.
107 Object[] pp = { e.toString() };
108 VFSManager.error(view,path,"ioerror.read-error",pp);
114 Log.log(Log.ERROR,this,oom);
115 VFSManager.error(view,path,"out-of-memory-error",null);
132 String[] pp = { e.toString() };
133 VFSManager.error(view,path,"ioerror.read-error",pp);
135 buffer.setBooleanProperty(ERROR_OCCURRED,true);
136 }
340 }
341 VFSManager.error(view,path,"ioerror.encoding-error",pp);
342 markedStream = rewindContentsStream(markedStream, gzipped);
BSHMethodInvocation.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 103 lines
✨ Summary
This Java code defines a class BSHMethodInvocation
that extends SimpleNode
. It handles method invocations in a BeanShell interpreter, evaluating methods with specified callstack and interpreter. It checks for ambiguous names, invokes methods, and throws exceptions if errors occur during evaluation.
This Java code defines a class BSHMethodInvocation
that extends SimpleNode
. It handles method invocations in a BeanShell interpreter, evaluating methods with specified callstack and interpreter. It checks for ambiguous names, invokes methods, and throws exceptions if errors occur during evaluation.
55 public Object eval( CallStack callstack, Interpreter interpreter )
56 throws EvalError
57 {
72 return name.invokeMethod( interpreter, args, callstack, this);
73 } catch ( ReflectError e ) {
74 // XXX
75 //e.printStackTrace();
76 throw new EvalError(
77 "Error in method invocation: " + e.getMessage(),
89 boolean isNative = true;
90 if ( te instanceof EvalError )
91 if ( te instanceof TargetError )
92 isNative = ((TargetError)te).inNativeCode();
93 else
local_date_time.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
27 //! simple exception for reporting when STD or DST cannot be determined
28 struct ambiguous_result : public std::logic_error
29 {
30 ambiguous_result (std::string const& msg = std::string()) :
31 std::logic_error(std::string("Daylight Savings Results are ambiguous: " + msg)) {}
32 };
33 //! simple exception for when time label given cannot exist
34 struct time_label_invalid : public std::logic_error
35 {
36 time_label_invalid (std::string const& msg = std::string()) :
37 std::logic_error(std::string("Time label given is invalid: " + msg)) {}
38 };
133 //TODO maybe not the right set...Ignore the last 2 for now...
134 enum DST_CALC_OPTIONS { EXCEPTION_ON_ERROR, NOT_DATE_TIME_ON_ERROR };
135 //ASSUME_DST_ON_ERROR, ASSUME_NOT_DST_ON_ERROR };
activity-log.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 43 lines
IO.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 63 lines
✨ Summary
This Java code provides a utility class named IO
that offers methods to close input and output streams, handling potential exceptions and logging errors. It ensures streams are properly closed to prevent resource leaks, while also providing a way to log any errors that occur during the closing process.
This Java code provides a utility class named IO
that offers methods to close input and output streams, handling potential exceptions and logging errors. It ensures streams are properly closed to prevent resource leaks, while also providing a way to log any errors that occur during the closing process.
TemplateFile.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 217 lines
✨ Summary
This Java class represents a file within the templates directory hierarchy, providing information about the template and its label. It acts as a proxy for a Template object, allowing access to the template’s properties and behavior. The class implements the TreeNode interface, enabling it to be used in a tree-like data structure.
This Java class represents a file within the templates directory hierarchy, providing information about the template and its label. It acts as a proxy for a Template object, allowing access to the template’s properties and behavior. The class implements the TreeNode interface, enabling it to be used in a tree-like data structure.
56 } catch (Exception e) {
57 Log.log(Log.ERROR,this,jEdit.getProperty("plugin.TemplatesPlugin.error.template-label")
58 + templateFile.getName());
59 Log.log(Log.ERROR,this,e);
60 }
200 * Updated README, CHANGES, to-do files.
201 * Use properties for error messages, rather than hard-coded strings.
202 *
XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines
643 m_exceptionCode = 0;
644 m_error = false;
754 genericError();
755 m_progressEventThrottle.dispatchEvent(XMLHttpRequestProgressEvent::create(eventNames().errorEvent));
756 if (!m_uploadComplete) {
764 void XMLHttpRequest::abortError()
765 {
951 void XMLHttpRequest::didFail(const ResourceError& error)
952 {
965 if (error.domain() == errorDomainWebKitInternal)
966 reportUnsafeUsage(scriptExecutionContext(), "XMLHttpRequest cannot load " + error.failingURL() + ". " + error.localizedDescription());
Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines
129 {
130 Macros.error(view,"You must install the InfoViewerPlugin"
131 + " to use this macro.");
147 {
148 Macros.error(view,"Cannot find the url " + urlStr);
149 }
158 {
159 Macros.error(view,"You must install the Console plugin"
160 + " to use this macro.");
218 if(jEdit.getPlugin("console.ConsolePlugin") == null)
219 Macros.error(view,"You must install the Console plugin"
220 + " to use this macro.");
221 else
222 Macros.error(view,"You must install the InfoViewerPlugin plugin"
223 + " to use this macro.");
IconComposer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 366 lines
✨ Summary
This Java code is part of a version control system, specifically a plugin for a text editor called PV. It provides functionality for composing icons based on file states and versions. The code includes classes for icon composition, file state management, and version control provider interfaces. It allows the plugin to display different icons in the text editor depending on the file’s status and version.
This Java code is part of a version control system, specifically a plugin for a text editor called PV. It provides functionality for composing icons based on file states and versions. The code includes classes for icon composition, file state management, and version control provider interfaces. It allows the plugin to display different icons in the text editor depending on the file’s status and version.
40 import errorlist.ErrorSource;
82 private final static Icon MSG_STATE_ERRORS_IMG =
83 new ImageIcon(IconComposer.class.getResource("/projectviewer/images/msg_state_errors.png"));
307 int msg_state = IconComposer.MSG_STATE_NONE;
308 ErrorSource[] sources = ErrorSource.getErrorSources();
309 for(int i = 0; i < sources.length; i++) {
311 msg_state = IconComposer.MSG_STATE_MESSAGES;
312 ErrorSource.Error[] errors = sources[i].getAllErrors();
313 for(int j=0; j < errors.length; j++) {
314 if(errors[j].getErrorType() == ErrorSource.ERROR
315 && errors[j].getFilePath().equals(path)) {
ProjectEventDumper.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 96 lines
✨ Summary
This Java code is a debugging tool for project events in a 3D viewer application. It logs error messages to the console when specific events occur, such as files being added or removed from a project, or when project properties change. The log messages include details about the affected file or property.
This Java code is a debugging tool for project events in a 3D viewer application. It logs error messages to the console when specific events occur, such as files being added or removed from a project, or when project properties change. The log messages include details about the affected file or property.
41 public void fileAdded(ProjectEvent pe) {
42 Log.log(Log.ERROR, this, "File added: " + pe.getAddedFile().getFile().getAbsolutePath());
43 }
52 public void filesAdded(ProjectEvent pe) {
53 Log.log(Log.ERROR, this, "Multiple files added!");
54 for (Iterator i = pe.getAddedFiles().iterator(); i.hasNext(); ) {
55 Log.log(Log.ERROR, this, "File added: " + ((VPTFile)i.next()).getFile().getAbsolutePath());
56 }
64 public void fileRemoved(ProjectEvent pe) {
65 Log.log(Log.ERROR, this, "File removed: " + pe.getRemovedFile().getFile().getAbsolutePath());
66 }
73 public void filesRemoved(ProjectEvent pe) {
74 Log.log(Log.ERROR, this, "Multiple files removed!");
75 for (Iterator i = pe.getRemovedFiles().iterator(); i.hasNext(); ) {
NodeRenamerAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 335 lines
✨ Summary
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
This Java code is part of a project that allows users to rename nodes (files, directories) within a project structure. It provides a dialog for inputting new names and includes options to prevent changes on disk. The code handles renaming files, directories, and projects, and updates the project structure accordingly.
95 JOptionPane.showMessageDialog(viewer,
96 jEdit.getProperty("projectviewer.action.rename.file_error"),
97 jEdit.getProperty("projectviewer.action.rename.title"),
98 JOptionPane.ERROR_MESSAGE);
99 } else {
109 jEdit.getProperty("projectviewer.action.rename.title"),
110 JOptionPane.ERROR_MESSAGE);
111 } else {
116 if (!isValid) {
117 GUIUtilities.error(viewer, "projectviewer.action.rename.cannot_rename", null);
118 }
133 JOptionPane.showMessageDialog(viewer,
134 jEdit.getProperty("projectviewer.action.rename.rename_error"),
135 jEdit.getProperty("projectviewer.action.rename.title"),
HyperSearchRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 420 lines
✨ Summary
This Java code implements a text search functionality for a BeanShell editor. It searches for matches of a given pattern within a text buffer, highlighting and displaying the matched text in a hierarchical structure, with subnodes representing individual lines or ranges of lines that contain matches. The search is case-insensitive and can be configured to ignore certain characters or patterns.
This Java code implements a text search functionality for a BeanShell editor. It searches for matches of a given pattern within a text buffer, highlighting and displaying the matched text in a hierarchical structure, with subnodes representing individual lines or ranges of lines that contain matches. The search is case-insensitive and can be configured to ignore certain characters or patterns.
Tiger.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 4099 lines
35 JAVA_UNICODE_ESCAPE = true;
36 //ERROR_REPORTING = true;
37 STATIC = false;
155 */
156 public Token error_skipto(ParseException pe, int... kinds) {
157 if (pe == null) {
182 private List<ErrorNode> exceptions = new ArrayList<ErrorNode>();
185 //pe.printStackTrace();
186 ErrorNode en = new ErrorNode(pe);
187 exceptions.add(en);
190 public List<ErrorNode> getErrors() {
191 return exceptions;
PropertyParser.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 150 lines
✨ Summary
This Java code defines a PropertyParser
class that extends SideKickParser
. It parses properties from a given buffer and converts them to a tree data structure, which can be used in a text editor. The parser handles errors and sends error messages to an ErrorSource
object. It uses regular expressions to extract location information from exception messages.
This Java code defines a PropertyParser
class that extends SideKickParser
. It parses properties from a given buffer and converts them to a tree data structure, which can be used in a text editor. The parser handles errors and sends error messages to an ErrorSource
object. It uses regular expressions to extract location information from exception messages.
46 import sidekick.property.parser.property.Token;
47 import errorlist.DefaultErrorSource;
48 import errorlist.ErrorSource;
69 * @param buffer the buffer to parse
70 * @param errorSource where to send any error messages
71 * @return data for the tree
72 */
73 public SideKickParsedData parse( Buffer buffer, DefaultErrorSource errorSource ) {
74 String filename = buffer.getPath();
108 to the ErrorList plugin. */
109 private void handleErrors( Buffer buffer, DefaultErrorSource errorSource, List<ParseException> errors ) {
110 for ( ParseException pe : errors ) {
111 Location loc = getExceptionLocation( pe );
112 errorSource.addError( ErrorSource.ERROR, buffer.getPath(), loc.line, loc.column, loc.column, pe.getMessage() );
113 }
TigerLabeler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 787 lines
✨ Summary
This Java code is part of a class that generates HTML labels for Java syntax elements, such as methods, fields, and classes. It takes into account various options to customize the appearance of these labels, including icons, formatting, and alignment. The output is an HTML string that can be used in a graphical user interface or other application.
This Java code is part of a class that generates HTML labels for Java syntax elements, such as methods, fields, and classes. It takes into account various options to customize the appearance of these labels, including icons, formatting, and alignment. The output is an HTML string that can be used in a graphical user interface or other application.
51 protected static ImageIcon IMPORT_ICON = null;
52 protected static ImageIcon ERROR_ICON = null;
53 protected static ImageIcon CLASS_ICON = null;
71 protected static ImageIcon E_IMPORT_ICON = null;
72 protected static ImageIcon E_ERROR_ICON = null;
73 protected static ImageIcon E_CLASS_ICON = null;
110 try {
111 ERROR_ICON = new ImageIcon(TigerLabeler.class.getClassLoader().getResource("sidekick/java/icons/Error.gif"));
112 }
341 switch (tn.getOrdinal()) {
342 case TigerNode.ERROR:
343 icon = ERROR_ICON;
444 switch (tn.getOrdinal()) {
445 case TigerNode.ERROR:
446 icon = ERROR_ICON;
BufferOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 339 lines
✨ Summary
This Java code creates a GUI dialog for editing settings of a text editor. It allows users to select various options such as line ending, encoding, compression, and formatting preferences. The selected values are then saved back to the application’s configuration. The dialog also includes buttons for saving changes and possibly canceling or applying other actions.
This Java code creates a GUI dialog for editing settings of a text editor. It allows users to select various options such as line ending, encoding, compression, and formatting preferences. The selected values are then saved back to the application’s configuration. The dialog also includes buttons for saving changes and possibly canceling or applying other actions.
gnome-print-check.m4
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
m4 · 172 lines
✨ Summary
This M4 code defines a macro AM_PATH_GNOME_PRINT
that tests for the presence and version of GNOME-PRINT, a printing system used in GNOME desktop environments. It checks if the required version is met by running a test program and provides error messages if not found or incompatible. The macro can be used to configure build systems to include GNOME-PRINT support.
This M4 code defines a macro AM_PATH_GNOME_PRINT
that tests for the presence and version of GNOME-PRINT, a printing system used in GNOME desktop environments. It checks if the required version is met by running a test program and provides error messages if not found or incompatible. The macro can be used to configure build systems to include GNOME-PRINT support.
152 [ echo "*** The test program failed to compile or link. See the file config.log for the"
153 echo "*** exact error that occured. This usually means GNOME-PRINT was incorrectly installed"
154 echo "*** or that you have moved GNOME-PRINT since it was installed. In the latter case, you"
169 AC_DEFUN([GNOME_PRINT_CHECK], [
170 AM_PATH_GNOME_PRINT(0.1.0,,[AC_MSG_ERROR(GNOME-PRINT not found)])
171 ])
lua.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines
Create_Constructor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 222 lines
ImportDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 270 lines
✨ Summary
This Java code creates a dialog box for importing data into a version control system, specifically Subversion (SVN). The dialog allows users to input the URL of the SVN repository, the local directory to import from, and their username and password. Once entered, the user can click “OK” to generate a CopyData
object containing the necessary information for importing the data into the SVN repository.
This Java code creates a dialog box for importing data into a version control system, specifically Subversion (SVN). The dialog allows users to input the URL of the SVN repository, the local directory to import from, and their username and password. Once entered, the user can click “OK” to generate a CopyData
object containing the necessary information for importing the data into the SVN repository.
200 if ( url == null || url.getText().length() == 0 ) {
201 JOptionPane.showMessageDialog( ImportDialog.this, jEdit.getProperty("ips.URL_is_required.", "URL is required."), jEdit.getProperty("ips.Error", "Error"), JOptionPane.ERROR_MESSAGE );
202 return ;
204 if ( path == null || path.getText().length() == 0 ) {
205 JOptionPane.showMessageDialog( ImportDialog.this, jEdit.getProperty("ips.Directory_is_required.", "Directory is required."), jEdit.getProperty("ips.Error", "Error"), JOptionPane.ERROR_MESSAGE );
206 return ;
QuickNotepad.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 256 lines
✨ Summary
This Java code defines a QuickNotepad plugin for the jEdit text editor. It creates a floating window with a text area, toolbar, and tool panel, allowing users to edit files and save changes. The plugin also handles file loading, saving, and formatting, as well as responding to keyboard shortcuts like Esc to close the window.
This Java code defines a QuickNotepad plugin for the jEdit text editor. It creates a floating window with a text area, toolbar, and tool panel, allowing users to edit files and save changes. The plugin also handles file loading, saving, and formatting, as well as responding to keyboard shortcuts like Esc to close the window.
bind_tests_advanced.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code is a test suite for the Phoenix library, which provides a set of functional programming utilities. It tests various features such as nested binds, unlambda functions, protect, and lambda functors used as arguments to other lambda functors. The tests verify that these features work correctly and produce expected results.
This C++ code is a test suite for the Phoenix library, which provides a set of functional programming utilities. It tests various features such as nested binds, unlambda functions, protect, and lambda functors used as arguments to other lambda functors. The tests verify that these features work correctly and produce expected results.
Add_Prefix_and_Suffix.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 161 lines
astyle.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 1480 lines
✨ Summary
This HTML code outputs a manual page for Artistic Style, a source code formatter. It provides information on options and usage, including explanations of various flags and their effects. The output includes acknowledgments to contributors and beta-testers, as well as a call to action to enjoy the program. The text is formatted in a traditional manual page style, with sections and paragraphs that resemble those found in printed documentation.
This HTML code outputs a manual page for Artistic Style, a source code formatter. It provides information on options and usage, including explanations of various flags and their effects. The output includes acknowledgments to contributors and beta-testers, as well as a call to action to enjoy the program. The text is formatted in a traditional manual page style, with sections and paragraphs that resemble those found in printed documentation.
bootstrap.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 463 lines
✨ Summary
This JavaScript code is a part of the Dojo toolkit, a popular JavaScript library for building web applications. It provides various utility functions and APIs for tasks such as object manipulation, event handling, and debugging. The code defines several functions that can be used to perform common operations in a web application, including eval
, deprecated
, and experimental
markers.
This JavaScript code is a part of the Dojo toolkit, a popular JavaScript library for building web applications. It provides various utility functions and APIs for tasks such as object manipulation, event handling, and debugging. The code defines several functions that can be used to perform common operations in a web application, including eval
, deprecated
, and experimental
markers.
Active.jedit-scheme (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 78 lines
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1047 lines
✨ Summary
This Java code implements a console emulator for a shell-like interface. It provides methods to execute commands, navigate directories, and handle file operations. The code uses a stack-based directory system and handles escaping and quoting of command arguments. It also keeps track of the current working directory and last directory used. The code is likely part of a larger project or library for building custom shells or console interfaces.
This Java code implements a console emulator for a shell-like interface. It provides methods to execute commands, navigate directories, and handle file operations. The code uses a stack-based directory system and handles escaping and quoting of command arguments. It also keeps track of the current working directory and last directory used. The code is likely part of a larger project or library for building custom shells or console interfaces.
179 args.removeElementAt(0);
180 executeBuiltIn(console, output, error, commandName, args);
181 output.commandDone();
185 // if current working directory doesn't exist, print an error.
186 String cwd = state.currentDirectory;
207 args.setElementAt(fullPath, 0);
208 executeBuiltIn(console, output, error, "%cd", args);
209 output.commandDone();
221 output.commandDone();
222 // error.commandDone();
223 }
805 String[] pp = { command };
806 error.print(console.getErrorColor(), jEdit.getProperty(
807 "console.shell.unknown-builtin", pp));
DefaultShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 429 lines
✨ Summary
This Java code implements a console output system for an integrated development environment (IDE). It creates a new process to execute a command, reads its standard output and error streams, and displays them in the IDE. The process can be stopped and waited for to complete, allowing the IDE to display the exit status of the executed command.
This Java code implements a console output system for an integrated development environment (IDE). It creates a new process to execute a command, reads its standard output and error streams, and displays them in the IDE. The process can be stopped and waited for to complete, allowing the IDE to display the exit status of the executed command.
70 else
71 console.printError(jEdit.getProperty("console.shell.cd-error",args));
72 }
234 String[] args = { command };
235 console.printError(jEdit.getProperty("console.shell.killed",args));
277 {
278 case ErrorSource.ERROR:
279 console.printError(line);
379 String[] args = { io.getMessage() };
380 console.printError(jEdit.getProperty("console.shell.ioerror",args));
381 }
419 String[] args = { io.getMessage() };
420 console.printError(jEdit.getProperty("console.shell.ioerror",args));
421 }
List_Plugin_Internal_Names.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 53 lines
Delegate.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 573 lines
✨ Summary
This Java code is part of a text editor’s plugin system, responsible for managing various menus and actions. It defines classes for handling recent files, macros, and new views, as well as actions to show files in the Finder. The code provides a framework for plugins to interact with the text editor, allowing users to customize its behavior through menu options and keyboard shortcuts.
This Java code is part of a text editor’s plugin system, responsible for managing various menus and actions. It defines classes for handling recent files, macros, and new views, as well as actions to show files in the Finder. The code provides a framework for plugins to interact with the text editor, allowing users to customize its behavior through menu options and keyboard shortcuts.
EditBus.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 167 lines
✨ Summary
The EditBus
class is a global event notification mechanism for jEdit, a text editor. It allows plugins and other components to receive messages reflecting changes in the application’s state, such as buffer changes or property updates. The bus maintains a list of registered components, which receive messages sent using the send()
method.
The EditBus
class is a global event notification mechanism for jEdit, a text editor. It allows plugins and other components to receive messages reflecting changes in the application’s state, such as buffer changes or property updates. The bus maintains a list of registered components, which receive messages sent using the send()
method.
Delegate.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 582 lines
✨ Summary
This Java code is part of a text editor’s functionality, specifically for handling file operations and macros. It provides actions such as showing files in the finder, creating new views, and executing macros. The code uses Swing for GUI interactions and macOS-specific APIs like MacOSActions
to interact with the operating system.
This Java code is part of a text editor’s functionality, specifically for handling file operations and macros. It provides actions such as showing files in the finder, creating new views, and executing macros. The code uses Swing for GUI interactions and macOS-specific APIs like MacOSActions
to interact with the operating system.
contract.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 239 lines
Patch.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 395 lines
✨ Summary
This Java code implements a patch editor that applies changes to a text file by applying chunks of text, known as “patches”, to the original file. It supports three types of patches: add (insertion), change (replacement), and delete (removal). The code uses an offset-based system to apply patches to the original file, allowing for precise control over where in the file each patch is applied.
This Java code implements a patch editor that applies changes to a text file by applying chunks of text, known as “patches”, to the original file. It supports three types of patches: add (insertion), change (replacement), and delete (removal). The code uses an offset-based system to apply patches to the original file, allowing for precise control over where in the file each patch is applied.
216 * This will adjust the following chunk operations so that they match the right lines.
217 * Without this there could be errors after the first chunk was applied, if this changed
218 * the number of lines. So we keep track of how many lines were added and/or removed and
278 if ( fromLine < 0 || toLine < 0 || baseText == null ) {
279 log( "### delete() - Argument ERROR" );
280 return baseText;
314 if ( fromLine < 0 || toLine < 0 || baseText == null || changeTo == null ) {
315 log( "### change() - Argument ERROR" );
316 return baseText;
367 if ( line < 0 || baseText == null || insertion == null ) {
368 log( "### add(line: " + line + ", insertion: " + insertion + ", baseText: " + baseText + ") - Argument ERROR" );
369 return baseText;
Base64.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1437 lines
✨ Summary
This Java code implements a base64 encoding and decoding system. It provides two main classes: Base64
and OutputStream
. The Base64
class contains methods for encoding and decoding strings, while the OutputStream
class is used to output the encoded data. The main
method demonstrates how to use these classes by taking a command-line argument (either “decode” or “encode”) and applying it to a string input.
This Java code implements a base64 encoding and decoding system. It provides two main classes: Base64
and OutputStream
. The Base64
class contains methods for encoding and decoding strings, while the OutputStream
class is used to output the encoded data. The main
method demonstrates how to use these classes by taking a command-line argument (either “decode” or “encode”) and applying it to a string input.
14 * with other encodings (like EBCDIC).</li>
15 * <li>v2.0.1 - Fixed an error when decoding a single byte, that is, when the
16 * encoded data was a single byte.</li>
34 * where last buffer being read, if not completely full, was not returned.</li>
35 * <li>v1.3.4 - Fixed when "improperly padded stream" error was thrown at the wrong time.</li>
36 * <li>v1.3.3 - Fixed I/O streams which were totally messed up.</li>
164 // I think I end up not using the BAD_ENCODING indicator.
165 //private final static byte BAD_ENCODING = -9; // Indicates error in encoding
166 private final static byte WHITE_SPACE_ENC = -5; // Indicates white space in encoding
269 * version of that serialized object. If the object
270 * cannot be serialized or there is another error,
271 * the method will return <tt>null</tt>.
286 * version of that serialized object. If the object
287 * cannot be serialized or there is another error,
288 * the method will return <tt>null</tt>.
RevertAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 191 lines
✨ Summary
This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.
This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.
Service.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 205 lines
✨ Summary
This Java class represents an Info.plist Service, which is a configuration file used by macOS applications to provide services to other apps. It allows developers to define how their app responds to service requests, including port names, message invocation methods, menu item text, and data types. The class provides getter and setter methods for each field, allowing easy access and modification of the service’s properties.
This Java class represents an Info.plist Service, which is a configuration file used by macOS applications to provide services to other apps. It allows developers to define how their app responds to service requests, including port names, message invocation methods, menu item text, and data types. The class provides getter and setter methods for each field, allowing easy access and modification of the service’s properties.
15 * Message - The name of the instance method to invoke for the service.
16 * In Objective-C, the instance method must be of the form messageName:userData:error:.
17 * In Java, the instance method must be of the form messageName(NSPasteBoard,String).
69 * The name of the instance method to invoke for the service.
70 * In Objective-C, the instance method must be of the form messageName:userData:error:.
Toggle_ReadOnly.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 88 lines
query.php
(http://forceworkbench.googlecode.com/svn/trunk/workbench/)
PHP · 996 lines
✨ Summary
This PHP code is part of a Salesforce Workbench application, handling query-related functionality. It generates query results, exports data to CSV, and allows users to execute queries asynchronously. The code also handles errors, warnings, and export options, providing a user-friendly interface for interacting with Salesforce data.
This PHP code is part of a Salesforce Workbench application, handling query-related functionality. It generates query results, exports data to CSV, and allows users to execute queries asynchronously. The code also handles errors, warnings, and export options, providing a user-friendly interface for interacting with Salesforce data.
99 print "<p> </p>";
100 displayError("count() is not supported for CSV. View as List or choose fields and try again.");
101 include_once 'footer.php';
671 if ($memLimitBytes != 0 && (memory_get_usage() / $memLimitBytes > $memWarningThreshold)) {
672 displayError("Workbench almost exhausted all its memory after only processing " . count($records) . " rows of data.
673 When performing a large queries, it is recommended to export as Bulk CSV or Bulk XML.",
690 print "<p><a name='qr'> </a></p>";
691 displayError($e->getMessage(),true,true);
692 }
920 print "<p />";
921 displayError($e->getMessage(), false, true);
922 }
938 try {
939 $csvFile = fopen('php://output','w') or die("Error opening php://output");
940 $csvFilename = "export" . date('YmdHis') . ".csv";
Makefile (http://omnia2droid.googlecode.com/svn/trunk/) Makefile · 9 lines
hayes-esp.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 155 lines
example16.output (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
guidelines.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
QtSql.4.0.0.linux-gcc-ppc32.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 1875 lines
usb_u132.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 102 lines
✨ Summary
This C header file provides a common interface for two Linux modules: “ftdi-u132” and “u132-hcd”. It defines functions for interacting with the Elan Digital Systems U132 adapter, which is a USB to CardBus adapter used in PC cards with OHCI host controllers. The code includes various USB client driver functions and platform data structures for managing the adapter’s behavior.
This C header file provides a common interface for two Linux modules: “ftdi-u132” and “u132-hcd”. It defines functions for interacting with the Elan Digital Systems U132 adapter, which is a USB to CardBus adapter used in PC cards with OHCI host controllers. The code includes various USB client driver functions and platform data structures for managing the adapter’s behavior.
73 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len,
74 int toggle_bits, int error_count, int condition_code, int repeat_number,
75 int halted, int skipped, int actual, int non_null));
78 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len,
79 int toggle_bits, int error_count, int condition_code, int repeat_number,
80 int halted, int skipped, int actual, int non_null));
83 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len,
84 int toggle_bits, int error_count, int condition_code, int repeat_number,
85 int halted, int skipped, int actual, int non_null));
88 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len,
89 int toggle_bits, int error_count, int condition_code, int repeat_number,
90 int halted, int skipped, int actual, int non_null));
93 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len,
94 int toggle_bits, int error_count, int condition_code, int repeat_number,
95 int halted, int skipped, int actual, int non_null));
reg_u_div.S
(http://omnia2droid.googlecode.com/svn/trunk/)
Assembly · 472 lines
✨ Summary
This Assembly code implements a floating-point division algorithm, handling various edge cases such as overflow and rounding. It performs a series of calculations to reduce the result to 32-bit precision, including shifting, adding, subtracting, and comparing values. The code also checks for potential bugs and handles exceptions accordingly, ensuring accurate and reliable results in floating-point arithmetic operations.
This Assembly code implements a floating-point division algorithm, handling various edge cases such as overflow and rounding. It performs a series of calculations to reduce the result to 32-bit precision, including shifting, adding, subtracting, and comparing values. The code also checks for potential bugs and handles exceptions accordingly, ensuring accurate and reliable results in floating-point arithmetic operations.
boot.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1847 lines
✨ Summary
This C code is part of the Linux kernel’s ACPI (Advanced Configuration and Power Interface) subsystem. It initializes and configures various ACPI-related parameters, such as enabling or disabling ACPI features, setting interrupt routing, and configuring system clock sources. The code also handles command-line arguments to control these settings during boot time.
This C code is part of the Linux kernel’s ACPI (Advanced Configuration and Power Interface) subsystem. It initializes and configures various ACPI-related parameters, such as enabling or disabling ACPI features, setting interrupt routing, and configuring system clock sources. The code also handles command-line arguments to control these settings during boot time.
730 * Parse LAPIC entries in MADT
731 * returns 0 on success, < 0 on error
732 */
762 printk(KERN_ERR PREFIX
763 "Error parsing LAPIC address override entry\n");
764 return count;
789 printk(KERN_ERR PREFIX
790 "Error parsing LAPIC address override entry\n");
791 return count;
809 } else if (count < 0 || x2count < 0) {
810 printk(KERN_ERR PREFIX "Error parsing LAPIC entry\n");
811 /* TBD: Cleanup to allow fallback to MPS */
820 if (count < 0 || x2count < 0) {
821 printk(KERN_ERR PREFIX "Error parsing LAPIC NMI entry\n");
822 /* TBD: Cleanup to allow fallback to MPS */
BrowserColorsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 346 lines
✨ Summary
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
This Java code creates a GUI component for managing browser colors. It allows users to add, remove, and edit color settings for different file types. The component displays a table with two columns: one for glob patterns and another for corresponding colors. Users can select new colors from a palette or enter custom values. The changes are saved when the user clicks “Save”.
jEdit.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 4373 lines
✨ Summary
This Java code is part of a text editor application, managing views and user interactions. It handles view creation, closing, and switching between views. It also manages settings, garbage collection, and memory usage. The code provides methods for getting and setting various properties, such as the number of open views, the currently active view, and whether jEdit is running in background mode.
This Java code is part of a text editor application, managing views and user interactions. It handles view creation, closing, and switching between views. It also manages settings, garbage collection, and memory usage. The code provides methods for getting and setting various properties, such as the number of open views, the currently active view, and whether jEdit is running in background mode.
35 import org.gjt.sp.jedit.View.ViewConfig;
36 import org.gjt.sp.jedit.bsh.UtilEvalError;
37 import javax.swing.*;
307 // endlessly, so log it as NOTICE, not
308 // ERROR
309 Log.log(Log.NOTICE,jEdit.class,"An error occurred"
532 }
533 catch(UtilEvalError e)
534 {
535 Log.log(Log.ERROR,jEdit.class,e);
536 }
FtpClient.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1046 lines
✨ Summary
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
maple.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 736 lines
70 <KEYWORD1>end</KEYWORD1>
71 <KEYWORD1>error</KEYWORD1>
72 <KEYWORD1>export</KEYWORD1>
673 <FUNCTION>TopologicalSort</FUNCTION>
674 <FUNCTION>traperror</FUNCTION>
675 <FUNCTION>triangular</FUNCTION>
723 <LITERAL2>integrate</LITERAL2>
724 <LITERAL2>lasterror</LITERAL2>
725 <LITERAL2>libname</LITERAL2>
getlinehandles.m (git://github.com/clawpack/clawpack-4.x.git) Objective C · 16 lines
FontSelector.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 495 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for selecting font properties, such as family, size, and style. It displays a preview of the selected font in real-time, allowing users to adjust these properties interactively. The GUI includes buttons for “OK” and “Cancel”, which trigger the selection of the chosen font properties when clicked.
This Java code creates a graphical user interface (GUI) for selecting font properties, such as family, size, and style. It displays a preview of the selected font in real-time, allowing users to adjust these properties interactively. The GUI includes buttons for “OK” and “Cancel”, which trigger the selection of the chosen font properties when clicked.
BSHUnaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 134 lines
✨ Summary
This Java code defines a class BSHUnaryExpression
that extends SimpleNode
. It handles unary expressions in a programming language, such as increment (++
) and decrement (--
). The class evaluates the expression by first determining if it’s a postfix operation (e.g., x++
) or not. If it’s a postfix operation, it assigns the result to an LHS (left-hand side) before performing the operation.
This Java code defines a class BSHUnaryExpression
that extends SimpleNode
. It handles unary expressions in a programming language, such as increment (++
) and decrement (--
). The class evaluates the expression by first determining if it’s a postfix operation (e.g., x++
) or not. If it’s a postfix operation, it assigns the result to an LHS (left-hand side) before performing the operation.
44 public Object eval( CallStack callstack, Interpreter interpreter)
45 throws EvalError
46 {
59 unaryOperation( node.eval(callstack, interpreter), kind );
60 } catch ( UtilEvalError e ) {
61 throw e.toEvalError( this, callstack );
65 private Object lhsUnaryOperation( LHS lhs, boolean strictJava )
66 throws UtilEvalError
67 {
83 private Object unaryOperation( Object op, int kind ) throws UtilEvalError
84 {
130 else
131 throw new InterpreterError("An error occurred. Please call technical support.");
132 }
NetRexxScriptMacroHandler.nrx (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 92 lines
21 * display error and return if plugin inactive
52 if jEdit.getPlugin("NetRexxScriptPlugin")=null then do
53 Macros.error(view,"The NetRexx Script Plugin is not active.")
54 return
67 say "NetRexx macro handler could not find run method"
68 Macros.error(view,"The runmacro method could not be located.")
69 return
82 catch error=Exception
83 say "runmacro error="error
84 say "cause="error.getCause
85 -- error.getCause.printStackTrace
86 end
index-18.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 822 lines
✨ Summary
This HTML code is a documentation page for a Java-based scripting engine, likely Jython. It displays a table of contents with links to various classes, methods, and constants in the engine’s API. The content includes descriptions, syntax, and usage examples for each item, providing a comprehensive reference guide for developers using the engine.
This HTML code is a documentation page for a Java-based scripting engine, likely Jython. It displays a table of contents with links to various classes, methods, and constants in the engine’s API. The content includes descriptions, syntax, and usage examples for each item, providing a comprehensive reference guide for developers using the engine.
617 <DT><A HREF="../org/gjt/sp/jedit/bsh/EvalError.html#reThrow(java.lang.String)"><B>reThrow(String)</B></A> -
618 Method in exception org.gjt.sp.jedit.bsh.<A HREF="../org/gjt/sp/jedit/bsh/EvalError.html" title="class in org.gjt.sp.jedit.bsh">EvalError</A>
619 <DD>Re-throw the error, prepending the specified message.
EnhancedDialog.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 526 lines
✨ Summary
This HTML code is a documentation page for a Java class called EnhancedDialog
. It displays information about the class, including its package, fields, constructors, and methods. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
This HTML code is a documentation page for a Java class called EnhancedDialog
. It displays information about the class, including its package, fields, constructors, and methods. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
50 <A HREF="../../../../../org/gjt/sp/jedit/gui/EnhancedButton.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>
51 <A HREF="../../../../../org/gjt/sp/jedit/gui/ErrorListDialog.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
92 <DL>
93 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/gui/BufferOptions.html" title="class in org.gjt.sp.jedit.gui">BufferOptions</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/CloseDialog.html" title="class in org.gjt.sp.jedit.gui">CloseDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/ErrorListDialog.html" title="class in org.gjt.sp.jedit.gui">ErrorListDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/FilesChangedDialog.html" title="class in org.gjt.sp.jedit.gui">FilesChangedDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/OptionsDialog.html" title="class in org.gjt.sp.jedit.gui">OptionsDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/PasteFromListDialog.html" title="class in org.gjt.sp.jedit.gui">PasteFromListDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/search/SearchDialog.html" title="class in org.gjt.sp.jedit.search">SearchDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/SelectLineRange.html" title="class in org.gjt.sp.jedit.gui">SelectLineRange</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/StyleEditor.html" title="class in org.gjt.sp.jedit.gui">StyleEditor</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/TextAreaDialog.html" title="class in org.gjt.sp.jedit.gui">TextAreaDialog</A>, <A HREF="../../../../../org/gjt/sp/jedit/gui/TipOfTheDay.html" title="class in org.gjt.sp.jedit.gui">TipOfTheDay</A>, <A HREF="../../../../../org/gjt/sp/jedit/browser/VFSFileChooserDialog.html" title="class in org.gjt.sp.jedit.browser">VFSFileChooserDialog</A></DD>
94 </DL>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD>
231 </TR>
499 <A HREF="../../../../../org/gjt/sp/jedit/gui/EnhancedButton.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>
500 <A HREF="../../../../../org/gjt/sp/jedit/gui/ErrorListDialog.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
501 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
BrowserOptionPane.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 419 lines
✨ Summary
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
REFilterReader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 118 lines
✨ Summary
This Java class, REFilterReader
, is a filter reader that replaces occurrences of a given regular expression with replacement text when reading from a stream. It uses a custom CharIndexedReader
to track character positions and matches the input against a specified regular expression, replacing matches with the provided replacement text.
This Java class, REFilterReader
, is a filter reader that replaces occurrences of a given regular expression with replacement text when reading from a stream. It uses a custom CharIndexedReader
to track character positions and matches the input against a specified regular expression, replacing matches with the provided replacement text.
012.ref (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 28 lines
matroxfb_DAC1064.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1083 lines
✨ Summary
This C code is part of a Linux kernel module that initializes and configures a Matrox graphics card, specifically the Mystique and G100 models. It sets up the card’s clock frequencies, DAC settings, and other hardware parameters to enable proper operation. The code also restores the card’s state after initialization and shutdown, ensuring that the system can resume from a previous state when the module is unloaded.
This C code is part of a Linux kernel module that initializes and configures a Matrox graphics card, specifically the Mystique and G100 models. It sets up the card’s clock frequencies, DAC settings, and other hardware parameters to enable proper operation. The code also restores the card’s state after initialization and shutdown, ensuring that the system can resume from a previous state when the module is unloaded.
SqlServerType.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 745 lines
✨ Summary
This Java code is part of a system that loads and manages SQL server types, including statements and connection parameters. It uses XML files to store this information and provides methods for loading and resolving entities in these files. The code also includes classes for representing statements and connection parameters, as well as a resolver for handling entity references in the XML files.
This Java code is part of a system that loads and manages SQL server types, including statements and connection parameters. It uses XML files to store this information and provides methods for loading and resolving entities in these files. The code also includes classes for representing statements and connection parameters, as well as a resolver for handling entity references in the XML files.
174 {
175 Log.log( Log.ERROR, SqlServerType.class,
176 "Error instantiating " + className + ", using default" );
245 {
246 Log.log( Log.ERROR, SqlServerType.class,
247 "Error loading driver " + drName + ": " + ex );
248 //Log.log( Log.ERROR, SqlServerType.class, ex );
249 return false;
323 {
324 Log.log( Log.ERROR, SqlServerType.class,
325 "Could not create stream from file " + fileName );
326 Log.log( Log.ERROR, SqlServerType.class,
327 ex );
cyclades.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 785 lines
✨ Summary
This C++ header file defines a set of constants and macros for interacting with Cyclades, a type of serial communication interface. It provides definitions for various registers, flags, and control values used in serial communication protocols such as RS-232 and RS-485. The code is likely part of an operating system or device driver that supports Cyclades interfaces.
This C++ header file defines a set of constants and macros for interacting with Cyclades, a type of serial communication interface. It provides definitions for various registers, flags, and control values used in serial communication protocols such as RS-232 and RS-485. The code is likely part of an operating system or device driver that supports Cyclades interfaces.
308 #define C_IN_RXBRK 0x00001000 /* Break received */
309 #define C_IN_PR_ERROR 0x00002000 /* parity error */
310 #define C_IN_FR_ERROR 0x00004000 /* frame error */
311 #define C_IN_OVR_ERROR 0x00008000 /* overrun error */
312 #define C_IN_RXOFL 0x00010000 /* RX buffer overflow */
380 #define C_CM_PR_ERROR 0x85 /* Parity error */
381 #define C_CM_FR_ERROR 0x86 /* Frame error */
382 #define C_CM_OVR_ERROR 0x87 /* Overrun error */
383 #define C_CM_RXOFL 0x88 /* RX buffer overflow */
384 #define C_CM_CMDERROR 0x90 /* command error */
385 #define C_CM_FATAL 0x91 /* fatal error */
409 __u32 sw_overflow; /* sw overflow counter */
410 __u32 comm_error; /* frame/parity error counter */
411 __u32 ichar;
capability.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 574 lines
✨ Summary
This C header file defines a set of functions and macros for managing capabilities, which are permissions that can be assigned to users or processes in an operating system. It provides functions for checking if a task has a certain capability, dropping capabilities from a task, combining capabilities, and getting information about capabilities from disk.
This C header file defines a set of functions and macros for managing capabilities, which are permissions that can be assigned to users or processes in an operating system. It provides functions for checking if a task has a certain capability, dropping capabilities from a task, combining capabilities, and getting information about capabilities from disk.
firewire.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 433 lines
✨ Summary
This is a Linux kernel header file that provides an interface for interacting with FireWire (IEEE 1394) devices. It defines data structures and functions for sending and receiving packets, managing transactions, and handling ISO packet formats. The code allows users to access and control FireWire devices from the operating system.
This is a Linux kernel header file that provides an interface for interacting with FireWire (IEEE 1394) devices. It defines data structures and functions for sending and receiving packets, managing transactions, and handling ISO packet formats. The code allows users to access and control FireWire devices from the operating system.
Ar.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 469 lines
✨ Summary
This Java code is part of a build tool, specifically for creating archives (e.g., .jar
files). It defines classes and attributes related to archive creation, including file modes, user IDs, group IDs, and long file handling options. The code provides a way to customize the behavior of the archive creation process, such as truncating or omitting files based on certain conditions.
This Java code is part of a build tool, specifically for creating archives (e.g., .jar
files). It defines classes and attributes related to archive creation, including file modes, user IDs, group IDs, and long file handling options. The code provides a way to customize the behavior of the archive creation process, such as truncating or omitting files based on certain conditions.
86 * do the business
87 * @throws BuildException on error
88 */
162 || longFileMode.isOmitMode()) {
163 aOut.setLongFileMode(ArOutputStream.LONGFILE_ERROR);
164 } else if (longFileMode.isBsdMode()) {
202 * @param arFileSet the fileset that the file came from.
203 * @throws IOException on error
204 */
382 * If the fullpath ends in '/' the file is omitted from the archive.
383 * It is an error to have more than one file specified in such a fileset.
384 * @param fullpath the path to use for the file in a fileset.
This.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 337 lines
✨ Summary
This Java code defines a class This
that represents a scripted object in a Java-based scripting environment, such as Jython. It provides methods for invoking scripted methods on an object, including binding to a parent’s namespace and reinitializing the call stack. The class also allows invocations of certain method names on This
objects, bypassing its own behavior.
This Java code defines a class This
that represents a scripted object in a Java-based scripting environment, such as Jython. It provides methods for invoking scripted methods on an object, including binding to a parent’s namespace and reinitializing the call stack. The class also allows invocations of certain method names on This
objects, bypassing its own behavior.
92 } catch ( Exception e ) {
93 throw new InterpreterError("internal error 1 in This: "+e);
94 }
105 public Object getInterface( Class clas )
106 throws UtilEvalError
107 {
110 else
111 throw new UtilEvalError( "Dynamic proxy mechanism not available. "
112 + "Cannot construct interface type: "+clas );
119 public Object getInterface( Class [] ca )
120 throws UtilEvalError
121 {
123 if ( !(ca[i].isInstance( this )) )
124 throw new UtilEvalError(
125 "Dynamic proxy mechanism not available. "
manual.html
(http://angel-engine.googlecode.com/svn/trunk/)
HTML · 272 lines
✨ Summary
This HTML code is a documentation page for a Lua library called lfs
(File System). It provides information on various functions and methods related to file system operations, such as creating directories, setting file modes, and managing links. The content is structured in a table format with brief descriptions of each function.
This HTML code is a documentation page for a Lua library called lfs
(File System). It provides information on various functions and methods related to file system operations, such as creating directories, setting file modes, and managing links. The content is structured in a table format with brief descriptions of each function.
180 be stale. To free the the lock call <code>lock:free()</code>. <br/>
181 In case of any errors it returns nil and the error message. In
182 particular, if the lock exists and is not stale it returns the
206 Returns <code>true</code> if the operation was successful; in
207 case of error, it returns <code>nil</code> plus an error string.
208 </dd>
213 Returns <code>true</code> if the operation was successful;
214 in case of error, it returns <code>nil</code> plus an error string.
215 </dd>
219 Returns <code>true</code> if the operation was successful;
220 in case of error, it returns <code>nil</code> plus an error string.</dd>
244 Returns <code>true</code> if the operation was successful;
245 in case of error, it returns <code>nil</code> plus an error string.
246 </dd>
Buffer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2124 lines
✨ Summary
This Java code is part of a text editor’s implementation, specifically for managing buffers and their properties. It handles buffer creation, saving, loading, and updating, as well as handling autosave features and undo/redo functionality. The code updates various flags and properties to reflect changes in the buffer’s state, such as dirty status, file path, and mode.
This Java code is part of a text editor’s implementation, specifically for managing buffers and their properties. It handles buffer creation, saving, loading, and updating, as well as handling autosave features and undo/redo functionality. The code updates various flags and properties to reflect changes in the buffer’s state, such as dirty status, file path, and mode.
322 setBooleanProperty(BufferIORequest.ERROR_OCCURRED,false);
432 {
433 GUIUtilities.error(view,"buffer-multiple-io",null);
434 return false;
534 newPath,
535 "ioerror.write-error-readonly",
536 null);
575 {
576 VFSManager.error(view,newPath,"ioerror",
577 new String[] { io.toString() });
588 {
589 VFSManager.error(view,newPath,"ioerror",
590 new String[] { io.toString() });
bf5xx-i2s.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 331 lines
✨ Summary
This C code implements an I2S (Inter-IC Sound) driver for a Blackfin processor, specifically designed for audio applications. It provides a platform device interface to interact with the audio peripherals and manages the configuration of the I2S interface, including setting formats, rates, and suspending/resuming operations. The code is part of a Linux kernel module that registers the I2S driver with the system.
This C code implements an I2S (Inter-IC Sound) driver for a Blackfin processor, specifically designed for audio applications. It provides a platform device interface to interact with the audio peripherals and manages the configuration of the I2S interface, including setting formats, rates, and suspending/resuming operations. The code is part of a Linux kernel module that registers the I2S driver with the system.
s3c-pcm.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 588 lines
✨ Summary
This C code implements a Linux kernel module for Samsung S3C24XX audio processing. It provides a platform for handling DMA (Direct Memory Access) operations, which is used to transfer data between the CPU and memory. The module registers a platform with the Linux kernel, allowing it to manage PCM (Pulse Code Modulation) devices and handle audio data transfer.
This C code implements a Linux kernel module for Samsung S3C24XX audio processing. It provides a platform for handling DMA (Direct Memory Access) operations, which is used to transfer data between the CPU and memory. The module registers a platform with the Linux kernel, allowing it to manage PCM (Pulse Code Modulation) devices and handle audio data transfer.
hlsl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 479 lines
Macros.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1051 lines
✨ Summary
This Java code is part of a scripting language handler for the JEdit text editor. It allows users to run scripts written in various languages, such as BeanShell, and provides a way to create and invoke macros in these languages. The code defines an abstract Handler
class that encapsulates the logic for handling different scripting languages, and two concrete implementations: BeanShellHandler
for BeanShell scripts.
This Java code is part of a scripting language handler for the JEdit text editor. It allows users to run scripts written in various languages, such as BeanShell, and provides a way to create and invoke macros in these languages. The code defines an abstract Handler
class that encapsulates the logic for handling different scripting languages, and two concrete implementations: BeanShellHandler
for BeanShell scripts.
51 * <li>{@link #confirm(Component,String,int,int)}</li>
52 * <li>{@link #error(Component,String)}</li>
53 * <li>{@link #input(Component,String)}</li>
119 {
120 Log.log(Log.ERROR, Macros.class, e);
121 return;
135 {
136 Log.log(Log.ERROR,Macros.class,path +
137 ": Cannot find a suitable macro handler, "
161 //{{{ error() method
162 /**
163 * Utility method that can be used to display an error dialog in a macro.
164 * @param comp The component to show the dialog on behalf of, this
LoadLibraryWithNonConstantStringInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 95 lines
PhotoBrowser.cs
(http://google-gdata.googlecode.com/svn/trunk/)
C# · 572 lines
✨ Summary
This C# code is a part of a Picasa photo viewer application. It manages asynchronous operations such as uploading, downloading, and querying photos from a Picasa feed. The UserState
class tracks the current operation’s state, including the file name, operation type, and feed information. The code handles canceling and completing these operations, updating the UI with progress and results.
This C# code is a part of a Picasa photo viewer application. It manages asynchronous operations such as uploading, downloading, and querying photos from a Picasa feed. The UserState
class tracks the current operation’s state, including the file name, operation type, and feed information. The code handles canceling and completing these operations, updating the UI with progress and results.
ReflectError.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 43 lines
✨ Summary
This Java code defines a custom exception class ReflectError
that extends the built-in Exception
class. It provides two constructors, one with no arguments and another that takes a string message, allowing for easy creation of exceptions with specific error messages. This class is likely used in the BeanShell scripting environment to handle runtime errors.
This Java code defines a custom exception class ReflectError
that extends the built-in Exception
class. It provides two constructors, one with no arguments and another that takes a string message, allowing for easy creation of exceptions with specific error messages. This class is likely used in the BeanShell scripting environment to handle runtime errors.
BSHSwitchStatement.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 110 lines
✨ Summary
This Java code defines a parser for a switch statement in BeanShell, a JavaScript-like scripting language. It evaluates the switch expression and then iterates through the cases, executing nodes until a break or return control is reached. If a match is found, it returns the corresponding ReturnControl object; otherwise, it returns Primitive.VOID.
This Java code defines a parser for a switch statement in BeanShell, a JavaScript-like scripting language. It evaluates the switch expression and then iterates through the cases, executing nodes until a break or return control is reached. If a match is found, it returns the corresponding ReturnControl object; otherwise, it returns Primitive.VOID.
DockableWindowManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1210 lines
✨ Summary
This Java code defines a dockable window manager for a text editor, allowing plugins to create and manage their own windows with customizable positions (top, left, bottom, right, or floating). The manager handles window creation, positioning, and removal, as well as plugin-specific functionality such as title setting and position registration.
This Java code defines a dockable window manager for a text editor, allowing plugins to create and manage their own windows with customizable positions (top, left, bottom, right, or floating). The manager handles window creation, positioning, and removal, as well as plugin-specific functionality such as title setting and position registration.
101 String message = xe.getMessage();
102 Log.log(Log.ERROR,jEdit.class,path + ":" + line
103 + ": " + message);
106 {
107 Log.log(Log.ERROR,jEdit.class,e);
108 }
161 {
162 Log.log(Log.ERROR,this,"Error while opening"
163 + " dockables.dtd:");
164 Log.log(Log.ERROR,this,e);
165 } */
234 // can't happen
235 throw new InternalError();
236 }
traps.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 768 lines
✨ Summary
This C code defines a set of exception handlers for a Linux kernel, which are triggered when specific conditions occur during execution. The handlers catch and handle exceptions such as stack overflows, division by zero, and data corruption, among others. They print error messages, trigger system calls, and perform other necessary actions to prevent the program from crashing or causing further damage.
This C code defines a set of exception handlers for a Linux kernel, which are triggered when specific conditions occur during execution. The handlers catch and handle exceptions such as stack overflows, division by zero, and data corruption, among others. They print error messages, trigger system calls, and perform other necessary actions to prevent the program from crashing or causing further damage.
399 #define DO_ERROR_INFO(signr, str, name, sicode, siaddr) \
400 static void name(struct pt_regs * regs, long interruption_code) \
410 DO_ERROR_INFO(SIGILL, "addressing exception", addressing_exception,
411 ILL_ILLADR, get_check_address(regs))
412 DO_ERROR_INFO(SIGILL, "execute exception", execute_exception,
413 ILL_ILLOPN, get_check_address(regs))
414 DO_ERROR_INFO(SIGFPE, "fixpoint divide exception", divide_exception,
415 FPE_INTDIV, get_check_address(regs))
416 DO_ERROR_INFO(SIGFPE, "fixpoint overflow exception", overflow_exception,
417 FPE_INTOVF, get_check_address(regs))
actionscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 830 lines
eval.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 76 lines
18 by the code are captured in a bsh.EvalError. This includes ParseException
19 for syntactic errors and TargetError for exceptions thrown by the evaluated
20 code.
25 eval("foo>>><>M>JK$LJLK$");
26 } catch ( EvalError e ) {
27 // ParseException caught here
31 eval("(Integer)true"); // illegal cast
32 } catch ( EvalError e ) {
33 // TargetException caught here
63 <p>
64 Throws bsh.EvalError on error
65 <p>
66 @return the value of the expression.
67 @throws bsh.EvalError on error
68 */
ServerKiller.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 134 lines
✨ Summary
This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.
This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.
HyperSearchRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 218 lines
✨ Summary
This Java class, HyperSearchRequest
, is a work request that runs in an I/O thread to perform a hypersearch operation on a given text buffer. It searches for matches of a specified pattern within the buffer and updates a tree model with the results. The search can be performed on a single buffer or multiple buffers, depending on the selection provided.
This Java class, HyperSearchRequest
, is a work request that runs in an I/O thread to perform a hypersearch operation on a given text buffer. It searches for matches of a specified pattern within the buffer and updates a tree model with the results. The search can be performed on a single buffer or multiple buffers, depending on the selection provided.
parse.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines two template metaprogramming structs, parse_impl
and phrase_parse_impl
, which are used to parse expressions in the Boost.Spirit Qi library. They ensure that the input expressions match the Qi domain and provide a way to compile and execute them for parsing purposes.
This C++ header file defines two template metaprogramming structs, parse_impl
and phrase_parse_impl
, which are used to parse expressions in the Boost.Spirit Qi library. They ensure that the input expressions match the Qi domain and provide a way to compile and execute them for parsing purposes.
27 // Report invalid expression error as early as possible.
28 // If you got an error_invalid_expression error message here,
29 // then the expression (expr) is not a valid spirit qi expression.
54 // Report invalid expression error as early as possible.
55 // If you got an error_invalid_expression error message here,
56 // then the expression (expr) is not a valid spirit qi expression.
74 // Report invalid expression error as early as possible.
75 // If you got an error_invalid_expression error message here,
76 // then the skipper is not a valid spirit qi expression.
SplashScreen.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 155 lines
✨ Summary
This Java code creates a splash screen for a graphical user interface (GUI) application, displaying an image and a progress bar with version information. It uses AWT APIs to create the GUI components and waits for the image to load before showing the splash screen. The advance()
method updates the progress bar over time.
This Java code creates a splash screen for a graphical user interface (GUI) application, displaying an image and a progress bar with version information. It uses AWT APIs to create the GUI components and waits for the image to load before showing the splash screen. The advance()
method updates the progress bar over time.
test_iplconvkernel.rb
(git://github.com/ryanfb/ruby-opencv.git)
Ruby · 54 lines
✨ Summary
This Ruby code defines a test suite for OpenCV’s IplConvKernel
class, which represents a convolution kernel used in image processing. The tests verify that kernels can be created with different shapes and values, and that invalid arguments raise errors. It also checks the size and anchor of the kernel, ensuring they match the expected values.
This Ruby code defines a test suite for OpenCV’s IplConvKernel
class, which represents a convolution kernel used in image processing. The tests verify that kernels can be created with different shapes and values, and that invalid arguments raise errors. It also checks the size and anchor of the kernel, ensuring they match the expected values.
ft2-font_formats.html
(git://github.com/xbmc/xbmc.git)
HTML · 84 lines
✨ Summary
This HTML code generates a documentation page for the FreeType-2.3.9 API, specifically the FT_Get_X11_Font_Format
function. It displays a table of contents, an introduction to font formats, and detailed information about the FT_Get_X11_Font_Format
function, including its input parameters, return value, and usage examples. The page is formatted with a clean and readable design.
This HTML code generates a documentation page for the FreeType-2.3.9 API, specifically the FT_Get_X11_Font_Format
function. It displays a table of contents, an introduction to font formats, and detailed information about the FT_Get_X11_Font_Format
function, including its input parameters, return value, and usage examples. The page is formatted with a clean and readable design.
rgb.c
(git://anongit.freedesktop.org/git/xorg/lib/libXpm.git/)
C · 0 lines
✨ Summary
This C code is a part of the X Window System, specifically for handling RGB colors. It reads and parses color information from an external file (rgb.txt
) to create a table of predefined colors. The code provides functions for reading and parsing color names, converting them to RGB values, and freeing allocated memory.
This C code is a part of the X Window System, specifically for handling RGB colors. It reads and parses color information from an external file (rgb.txt
) to create a table of predefined colors. The code provides functions for reading and parsing color names, converting them to RGB values, and freeing allocated memory.
68 /* Open the rgb text file. Abort if error. */
69 if ((rgbf = fopen(rgb_fname, "r")) == NULL)
92 /* Allocate memory for ascii name. If error give up here. */
93 if (!(rgbname = (char *) XpmMalloc(strlen(name) + 1)))
265 /*
266 * I don't like to run in a ColorInvalid error and to see no pixmap at
267 * all, so simply return a red pixel. Should be wrapped in an #ifdef
272 *g = 0;
273 *b = 0; /* red error pixel */
DefaultHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 38 lines
✨ Summary
This Java class implements a default handler for a calculator, providing empty implementations for various methods that handle different scenarios such as errors, operator input, formula start and end, blank characters, numbers, and current position. It essentially serves as a placeholder or no-op implementation, allowing other classes to extend its functionality if needed.
This Java class implements a default handler for a calculator, providing empty implementations for various methods that handle different scenarios such as errors, operator input, formula start and end, blank characters, numbers, and current position. It essentially serves as a placeholder or no-op implementation, allowing other classes to extend its functionality if needed.
posixemulation.py
(git://github.com/mitsuhiko/werkzeug.git)
Python · 107 lines
✨ Summary
This Python code provides a POSIX emulation for renaming files on Windows systems, allowing for atomic and pseudo-atomic renames. It uses ctypes to interact with Windows API functions and handles cases where the target file already exists. The rename function falls back to traditional OS.rename if atomic rename fails.
This Python code provides a POSIX emulation for renaming files on Windows systems, allowing for atomic and pseudo-atomic renames. It uses ctypes to interact with Windows API functions and handles cases where the target file already exists. The rename function falls back to traditional OS.rename if atomic rename fails.
set_campaign_targets.rb
(https://code.google.com/p/google-api-ads-ruby/)
Ruby · 125 lines
✨ Summary
This Ruby script uses the Google AdWords API to add geo, language and network targeting to an existing campaign. It connects to the AdWords API, sets the target values for a specified campaign ID, and handles potential errors that may occur during the process. The script logs any errors that occur, including connection issues or API exceptions.
This Ruby script uses the Google AdWords API to add geo, language and network targeting to an existing campaign. It connects to the AdWords API, sets the target values for a specified campaign ID, and handles potential errors that may occur during the process. The script logs any errors that occur, including connection issues or API exceptions.
101 # Connection error. Likely transitory.
102 rescue Errno::ECONNRESET, SOAP::HTTPStreamError, SocketError => e
103 puts 'Connection Error: %s' % e
106 # API Error.
107 rescue AdwordsApi::Errors::ApiException => e
111 puts 'Trigger: %s' % e.trigger if e.trigger
112 puts 'Errors:'
113 if e.errors
114 e.errors.each_with_index do |error, index|
115 puts ' %d. Error type is %s. Fields:' % [index + 1, error[:xsi_type]]
116 error.each_pair do |field, value|
117 if field != :xsi_type
OriginalEvent.java
(http://gdata-java-client.googlecode.com/svn/trunk/)
Java · 150 lines
✨ Summary
This Java code defines a class OriginalEvent
that extends ExtensionPoint
. It represents a link to a recurring event and provides methods for generating XML output and parsing attributes. The class includes fields for the original event’s ID, href, and start time, as well as a parser for handling these elements in an XML document.
This Java code defines a class OriginalEvent
that extends ExtensionPoint
. It represents a link to a recurring event and provides methods for generating XML output and parsing attributes. The class includes fields for the original event’s ID, href, and start time, as well as a parser for handling these elements in an XML document.
README.md
(git://github.com/OpenRTMFP/ArcusNode.git)
Markdown · 173 lines
✨ Summary
This is a documentation for ArcusNode, an RTMFP rendezvous server for peer-assisted networking with Adobe Flash on NodeJS. It explains how to build and install ArcusNode, its usage, customization options, events, commands, and settings. The document also provides information about the project’s status, roadmap, and contact details for developers.
This is a documentation for ArcusNode, an RTMFP rendezvous server for peer-assisted networking with Adobe Flash on NodeJS. It explains how to build and install ArcusNode, its usage, customization options, events, commands, and settings. The document also provides information about the project’s status, roadmap, and contact details for developers.