100+ results for 'ERROR'

Not the results you expected?

CatalogStar.java (https://github.com/jankotek/Pixy2.git) Java · 459 lines

103

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;

110 }

111

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;

119 }

itkImageToHistogramFilterTest.cxx (https://github.com/crtc/ITK-PBNRR-GITHUB.git) C++ · 402 lines

342 if( histogram->GetFrequency( bin, channel ) != expectedFrequency )

343 {

344 std::cerr << "Error in bin= " << bin << " channel = " << channel << std::endl;

345 std::cerr << "Frequency was= " << histogram->GetFrequency( bin, channel ) << " Instead of the expected " << expectedFrequency << std::endl;

346 return EXIT_FAILURE;

settings.js (https://github.com/ChuguluGames/mediawiki-svn.git) JavaScript · 439 lines

70 var a = value.split(separator);

71 if (a.length != dimensions) {

72 throw new Error("Expected a tuple of " + dimensions + " dimensions separated with " + separator + " but got " + value);

73 } else {

74 for (var i = 0; i < a.length; i++) {

100 }

101 }

102 throw new Error("Expected a floating point number but got " + s);

103 } else if (type == "int") {

104 if (sType == "number") {

110 }

111 }

112 throw new Error("Expected an integer but got " + s);

113 } else if (type == "boolean") {

114 if (sType == "boolean") {

mmap.c (https://github.com/jehc/MondocosmOS.git) C · 409 lines

122 prot_new = prot | prot1;

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 */

126 #ifndef __APPLE__

246 if (!(flags & MAP_ANONYMOUS) &&

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 */

250 #ifndef __APPLE__

387 return new_addr;

388 #else

389 qerror("target_mremap: unsupported\n");

390 #endif

391

minval_i1.c (https://bitbucket.org/Underworld79/toolchain_gcc-4.8.git) C · 545 lines

113 {

114 if (rank != GFC_DESCRIPTOR_RANK (retarray))

115 runtime_error ("rank of return array incorrect in"

116 " MINVAL intrinsic: is %ld, should be %ld",

117 (long int) (GFC_DESCRIPTOR_RANK (retarray)),

247 mbase = GFOR_POINTER_TO_L1 (mbase, mask_kind);

248 else

249 runtime_error ("Funny sized logical array");

250

251 delta = GFC_DESCRIPTOR_STRIDE(array,dim);

306 {

307 if (rank != GFC_DESCRIPTOR_RANK (retarray))

308 runtime_error ("rank of return array incorrect in MINVAL intrinsic");

309

310 if (unlikely (compile_options.bounds_check))

branches_spec.rb (https://gitlab.com/the-undefined/gitlab-ce) Ruby · 302 lines

37 end

38

39 it "returns a 403 error if guest" do

40 get api("/projects/#{project.id}/repository/branches", user2)

41 expect(response).to have_http_status(403)

42 end

43

44 it "returns a 404 error if branch is not available" do

45 get api("/projects/#{project.id}/repository/branches/unknown", user)

46 expect(response).to have_http_status(404)

189 end

190

191 it "returns a 404 error if branch not found" do

192 put api("/projects/#{project.id}/repository/branches/unknown/protect", user)

193 expect(response).to have_http_status(404)

triedict.h (https://github.com/MIPS/external-chromium.git) C Header · 390 lines

33 * have a capacity of at least length.

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.

37 * @return The actual length of the data.

43 triedict_swap(const UDataSwapper *ds,

44 const void *inData, int32_t length, void *outData,

45 UErrorCode *pErrorCode);

46

47 U_NAMESPACE_BEGIN

103 * The caller is responsible for closing it. The order is unspecified.

104 */

105 virtual StringEnumeration *openWords( UErrorCode &status ) const = 0;

106

107 };

parse-events.y (https://github.com/othane/linux.git) Happy · 672 lines

302 {

303 struct parse_events_evlist *data = _data;

304 struct parse_events_error *error = data->error;

305 struct list_head *list;

306

314 {

315 struct parse_events_evlist *data = _data;

316 struct parse_events_error *error = data->error;

317 struct list_head *list;

318

384 {

385 struct parse_events_evlist *data = _data;

386 struct parse_events_error *error = data->error;

387 struct list_head *list;

388

devres.c (https://github.com/penberg/linux.git) C · 483 lines

180 * Called by regulator drivers to register a regulator. Returns a

181 * valid pointer to struct regulator_dev on success or an ERR_PTR() on

182 * error. The regulator will automatically be released when the device

183 * is unbound.

184 */

File.php (https://bitbucket.org/Ebozavrik/test-application.git) PHP · 478 lines

74 throw new Zend_OpenId_Exception(

75 "Cannot access storage directory $dir",

76 Zend_OpenId_Exception::ERROR_STORAGE );

77 }

78 }

80 throw new Zend_OpenId_Exception(

81 'Cannot create a lock file in the directory ' . $dir,

82 Zend_OpenId_Exception::ERROR_STORAGE );

83 }

84 fclose($f);

86 throw new Zend_OpenId_Exception(

87 'Cannot create a lock file in the directory ' . $dir,

88 Zend_OpenId_Exception::ERROR_STORAGE );

89 }

90 fclose($f);

lzma.js (https://github.com/danielribeiro/three.js.git) JavaScript · 510 lines

504

505 if ( !decoder.decode(inStream, outStream, outSize) ){

506 throw "Error in data stream";

507 }

508

members_spec.rb (https://gitlab.com/LeclercA/gitlab-ee) Ruby · 363 lines

179 shared_examples 'POST /projects/:id/members with the project group membership locked' do

180 context 'project in a group' do

181 it 'returns a 405 method not allowed error when group membership lock is enabled' do

182 group_with_membership_locked = create(:group, membership_lock: true)

183 project = create(:project, group: group_with_membership_locked)

CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 61 lines

45 StackPosition.releaseBuffer() -> StackPosition.releasePosition()

46 * sequential duplicate positions won't be pushed onto the tag stack

47 * fixed off by 1 error in StackPosition.goTo when a buffer had

48 to be opened.

49 * Locations for tags followed are now added to the TagStack, so

secmem.h (https://github.com/gidlbn/dlbn_02.git) C Header · 438 lines

112 /**

113 * The use of this function is discouraged because of the risk of memory

114 * errors. Use MemoryRegion<T>::set()

115 * instead.

116 * Copy the contents of an array of objects of type T into this buffer.

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

120 * @param n the length of in

125 /**

126 * The use of this function is discouraged because of the risk of memory

127 * errors. Use MemoryRegion<T>::set()

128 * instead.

129 * Copy the contents of an array of objects of type T into this buffer.

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.

209 /* Receive side */

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 */

213 #define END_FRAME_LOST 0x20000000 /* END_FRAME_LOST */

214 #define RX_ER_NONOCT 0x10000000 /* Rx Non Octet Aligned Packet */

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 */

343 USB_DIR_IN or USB_DIR_OUT*/

344 u32 usb_sof_count; /* SOF count */

345 u32 errors; /* USB ERRORs count */

346

347 u8 *tmpbuf;

384 #define T_UN 0x00020000 /* underrun */

385

386 #define DEVICE_T_ERROR (T_UN | T_TO)

387 #define HOST_T_ERROR (T_UN | T_TO | T_NAK | T_STAL)

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.

410 * Called internally when constructing predefined syntaxes

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.

414 *

442 */

443 public RESyntax set(int index) {

444 if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);

445 bits.set(index);

446 return this;

454 */

455 public RESyntax clear(int index) {

456 if (isFinal) throw new IllegalAccessError(SYNTAX_IS_FINAL);

457 bits.clear(index);

458 return this;

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.

29

30

31 // an extension of TigerNode for an error. This should only be a top-level

32 // node for the display tree.

33 public class ErrorNode extends TigerNode {

35 Exception exception = null;

36

37 public ErrorNode(Exception e) {

38 super( "", 0 );

39 if (e != null && e.getMessage() != null)

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.

185 private static boolean showNotice = jEdit.getBooleanProperty("log-viewer.message.notice", true);

186 private static boolean showWarning = jEdit.getBooleanProperty("log-viewer.message.warning", true);

187 private static boolean showError = jEdit.getBooleanProperty("log-viewer.message.error", true);

188

189 //{{{ setFilter() method

414 if (text.contains("[warning]") && !showWarning)

415 return false;

416 if (text.contains("[error]") && !showError)

417 return false;

418 return filter.length() == 0 || text.contains(filter);

444 warning = new JCheckBox(jEdit.getProperty("log-viewer.message.warning.label", "Warning"),

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));

506 showWarning = warning.isSelected();

507 jEdit.setBooleanProperty("log-viewer.message.warning", showWarning);

508 showError = error.isSelected();

509 jEdit.setBooleanProperty("log-viewer.message.error", showError);

Abbrevs.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 595 lines ✨ Summary

This Java code is a text expansion engine, similar to bash’s $(command) syntax. It takes input text and expands special characters like $ and \, replacing them with actual values from an external source (e.g., environment variables). The expanded text is then returned as output.

307 catch(Exception e)

308 {

309 Log.log(Log.ERROR,Abbrevs.class,"Error while saving " + file1);

310 Log.log(Log.ERROR,Abbrevs.class,e);

359 catch(Exception e)

360 {

361 Log.log(Log.ERROR,Abbrevs.class,"Error while loading " + file);

362 Log.log(Log.ERROR,Abbrevs.class,e);

375 catch(Exception e)

376 {

377 Log.log(Log.ERROR,Abbrevs.class,"Error while loading default.abbrevs");

378 Log.log(Log.ERROR,Abbrevs.class,e);

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.

44 struct klist_iter i;

45 struct device *dev;

46 int error = 0;

47

48 if (!drv)

51 klist_iter_init_node(&drv->p->klist_devices, &i,

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 }

58 EXPORT_SYMBOL_GPL(driver_for_each_device);

101 struct driver_attribute *attr)

102 {

103 int error;

104 if (drv)

105 error = sysfs_create_file(&drv->p->kobj, &attr->attr);

stata.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2980 lines

194 <!-- Line comments: -->

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: -->

198 <!--<EOL_SPAN TYPE="COMMENT1" AT_WHITESPACE_END="TRUE">//</EOL_SPAN>-->

855 <KEYWORD1>_prefix_reject</KEYWORD1>

856 <KEYWORD1>_prefix_relabel_eqns</KEYWORD1>

857 <KEYWORD1>_prefix_run_error</KEYWORD1>

858 <KEYWORD1>_prefix_saving</KEYWORD1>

859 <KEYWORD1>_prefix_title</KEYWORD1>

889 <KEYWORD1>_sigfm</KEYWORD1>

890 <KEYWORD1>_small2dotz</KEYWORD1>

891 <KEYWORD1>_stata_internalerror</KEYWORD1>

892 <KEYWORD1>_stcurv</KEYWORD1>

893 <KEYWORD1>_strip_labels</KEYWORD1>

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.

101 addComponent(Box.createVerticalStrut(6));

102

103 errorListModel = ErrorListModel.load();

104 errorList = new JList();

192 private void updateButtons()

193 {

194 ErrorMatcher matcher = (ErrorMatcher)errorList.getSelectedValue();

195 if (matcher != null)

196 {

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);

rfragments.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 184 lines

1 #define SWIG_Error(code, msg) Rf_warning(msg); return Rf_ScalarLogical(NA_LOGICAL)

2

3 #define SWIG_fail return Rf_ScalarLogical(NA_LOGICAL)

140 return SWIG_OK;

141 }

142 return SWIG_TypeError;

143 }

144 }

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.

85 //e->print();

86 throw e->add(new NodeException (this,

87 string("error caught in SquareSum::getOutput(int,int)"),

88 __FILE__,__LINE__));

89 }

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.

106 Log.log(Log.ERROR,this,e);

107 Object[] pp = { e.toString() };

108 VFSManager.error(view,path,"ioerror.read-error",pp);

109

110 buffer.setBooleanProperty(ERROR_OCCURRED,true);

131 Log.log(Log.ERROR,this,e);

132 String[] pp = { e.toString() };

133 VFSManager.error(view,path,"ioerror.read-error",pp);

134

135 buffer.setBooleanProperty(ERROR_OCCURRED,true);

339 pp[1] = "See details in Activity Log";

340 }

341 VFSManager.error(view,path,"ioerror.encoding-error",pp);

342 markedStream = rewindContentsStream(markedStream, gzipped);

343 read(EncodingServer.getEncoding(

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.

54 */

55 public Object eval( CallStack callstack, Interpreter interpreter )

56 throws EvalError

57 {

58 NameSpace namespace = callstack.top();

71 try {

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(),

88 */

89 boolean isNative = true;

90 if ( te instanceof EvalError )

91 if ( te instanceof TargetError )

local_date_time.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

26

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()) :

132

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

23 <listitem><para>Information about your Java implementation (version,

24 operating system, architecture, etc).</para></listitem>

25 <listitem><para>All error messages and runtime exceptions (most errors

26 are shown in dialog boxes as well, but the activity log usually

27 contains more detailed and technical information).

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.

55 s = readTemplateLabel(this.getBufferedReader());

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);

199 * Revision 1.3 2000/03/08 15:46:49 sjakob

200 * Updated README, CHANGES, to-do files.

201 * Use properties for error messages, rather than hard-coded strings.

202 *

203 * Revision 1.2 2000/03/08 06:55:46 sjakob

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.

41 in.close();

42 } catch (IOException e) {

43 Log.log(Log.ERROR, IO.class, e);

44 }

45 }

56 out.close();

57 } catch (IOException e) {

58 Log.log(Log.ERROR, IO.class, e);

59 }

60 }

XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines

754 genericError();

755 m_progressEventThrottle.dispatchEvent(XMLHttpRequestProgressEvent::create(eventNames().errorEvent));

756 if (!m_uploadComplete) {

757 m_uploadComplete = true;

762 }

763

764 void XMLHttpRequest::abortError()

765 {

766 genericError();

949 }

950

951 void XMLHttpRequest::didFail(const ResourceError& error)

952 {

953

965 if (error.domain() == errorDomainWebKitInternal)

966 reportUnsafeUsage(scriptExecutionContext(), "XMLHttpRequest cannot load " + error.failingURL() + ". " + error.localizedDescription());

967

968 m_exceptionCode = XMLHttpRequestException::NETWORK_ERR;

Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines

128 if(jEdit.getPlugin("infoviewer.InfoViewerPlugin") == null)

129 {

130 Macros.error(view,"You must install the InfoViewerPlugin"

131 + " to use this macro.");

132 return;

146 catch (MalformedURLException mu)

147 {

148 Macros.error(view,"Cannot find the url " + urlStr);

149 }

150 }

157 if(jEdit.getPlugin("console.ConsolePlugin") == null)

158 {

159 Macros.error(view,"You must install the Console plugin"

160 + " to use this macro.");

161 return;

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.

38 import org.gjt.sp.util.Log;

39

40 import errorlist.ErrorSource;

41

42 import projectviewer.config.ProjectViewerConfig;

306 public static int getMessageState(String path) {

307 int msg_state = IconComposer.MSG_STATE_NONE;

308 ErrorSource[] sources = ErrorSource.getErrorSources();

309 for(int i = 0; i < sources.length; i++) {

310 if (sources[i].getFileErrorCount(path) > 0) {

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.

40 */

41 public void fileAdded(ProjectEvent pe) {

42 Log.log(Log.ERROR, this, "File added: " + pe.getAddedFile().getFile().getAbsolutePath());

43 }

44

51 */

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());

63 */

64 public void fileRemoved(ProjectEvent pe) {

65 Log.log(Log.ERROR, this, "File removed: " + pe.getRemovedFile().getFile().getAbsolutePath());

66 }

67

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.

94 || (newName.indexOf('/') != -1 || newName.indexOf('\\') != -1)) {

95 JOptionPane.showMessageDialog(viewer,

96 jEdit.getProperty("projectviewer.action.rename.file_error"),

97 jEdit.getProperty("projectviewer.action.rename.title"),

98 JOptionPane.ERROR_MESSAGE);

108 jEdit.getProperty("projectviewer.project.options.name_exists"),

109 jEdit.getProperty("projectviewer.action.rename.title"),

110 JOptionPane.ERROR_MESSAGE);

111 } else {

112 isValid = true;

115 isValid = dlg.getDontChangeDisk();

116 if (!isValid) {

117 GUIUtilities.error(viewer, "projectviewer.action.rename.cannot_rename", null);

118 }

119 }

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.

84 public void run()

85 {

86 GUIUtilities.error(view,"empty-fileset",null);

87 }

88 });

143 catch(final Exception e)

144 {

145 Log.log(Log.ERROR,this,e);

146 SwingUtilities.invokeLater(new Runnable()

147 {

148 public void run()

149 {

150 GUIUtilities.error(view,"searcherror",

151 new String[] { e.toString() });

152 }

Tiger.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 4099 lines

180 }

181

182 private List<ErrorNode> exceptions = new ArrayList<ErrorNode>();

183

184 private void addException(ParseException pe) {

185 //pe.printStackTrace();

186 ErrorNode en = new ErrorNode(pe);

187 exceptions.add(en);

188 }

189

190 public List<ErrorNode> getErrors() {

191 return exceptions;

192 }

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.

45 import sidekick.property.parser.property.Property;

46 import sidekick.property.parser.property.Token;

47 import errorlist.DefaultErrorSource;

48 import errorlist.ErrorSource;

68 * Parse the contents of the given buffer.

69 * @param buffer the buffer to parse

70 * @param errorSource where to send any error messages

71 * @return data for the tree

72 */

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 }

114 }

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.

50 protected static ImageIcon CU_ICON = null;

51 protected static ImageIcon IMPORT_ICON = null;

52 protected static ImageIcon ERROR_ICON = null;

53 protected static ImageIcon CLASS_ICON = null;

54 protected static ImageIcon INNER_CLASS_ICON = null;

70 protected static ImageIcon E_CU_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;

74 protected static ImageIcon E_INNER_CLASS_DEFAULT_ICON = null;

109 }

110 try {

111 ERROR_ICON = new ImageIcon(TigerLabeler.class.getClassLoader().getResource("sidekick/java/icons/Error.gif"));

112 }

113 catch (Exception e) { // NOPMD

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.

223 lineSep = "\r";

224 else

225 throw new InternalError();

226

227 String oldLineSep = buffer.getStringProperty(JEditBuffer.LINESEP);

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.

151 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],

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"

155 echo "*** may want to edit the gnome-config script: $GNOME_CONFIG" ])

168

169 AC_DEFUN([GNOME_PRINT_CHECK], [

170 AM_PATH_GNOME_PRINT(0.1.0,,[AC_MSG_ERROR(GNOME-PRINT not found)])

171 ])

172

lua.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines

97 <KEYWORD2>collectgarbage</KEYWORD2>

98 <KEYWORD2>dofile</KEYWORD2>

99 <KEYWORD2>error</KEYWORD2>

100 <KEYWORD2>_G</KEYWORD2>

101 <KEYWORD2>getfenv</KEYWORD2>

126 <KEYWORD2>_REQUIREDNAME</KEYWORD2>

127 <KEYWORD2>_ALERT</KEYWORD2>

128 <KEYWORD2>_ERRORMESSAGE</KEYWORD2>

129 <KEYWORD2>_PROMPT</KEYWORD2>

130 <KEYWORD2>__add</KEYWORD2>

Create_Constructor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 222 lines

217

218 if( buffer.isReadOnly() )

219 Macros.error( view, "Buffer is read-only." );

220 else

221 parseSelection();

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.

199 public void actionPerformed( ActionEvent ae ) {

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 ;

203 }

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 ;

207 }

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.

174 catch (IOException ioe)

175 {

176 Log.log(Log.ERROR, QuickNotepad.class,

177 "Could not write notepad text to " + filename);

178 }

225 catch (FileNotFoundException fnf)

226 {

227 Log.log(Log.ERROR, QuickNotepad.class,

228 "notepad file " + filename + " does not exist");

229 }

230 catch (IOException ioe)

231 {

232 Log.log(Log.ERROR, QuickNotepad.class,

233 "could not read notepad file " + filename);

234 }

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.

105 // bind(f, _1)(make_const(100));

106 // This would result in;

107 // bind(_1 + 1, _1)(make_const(100)) , which would be a compile time error

108

109 //return bl::bind(unlambda(f), _1)(make_const(100));

378 typedef typename boost::tuples::element<1, Args>::type arg1;

379 // If the argument type is not the same as the expected type,

380 // return void, which will cause an error. Note that we

381 // can't just assert that the types are the same, because

382 // both const and non-const versions can be instantiated

Add_Prefix_and_Suffix.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 161 lines

136 // it calls the methods and exits

137 if(buffer.isReadOnly())

138 Macros.error(view, "Buffer is read-only.");

139 else

140 prefixSuffixDialog(view);

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.

861 ></tt></b></font><font color=#800080 size=3

862 ><b><tt

863 >&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; goto error;<br

864 ><br>error:<br

889 ></tt></b></font><font color=#800080 size=3

890 ><b><tt

891 >&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; goto error;<br

892 ><br>&nbsp;&nbsp;&nbsp; error:<br

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.

273 catch(Exception e)

274 {

275 Log.log(Log.ERROR,this,"Broken Java implementation!");

276 /* Log.log(Log.ERROR,this,"Using deprecated Toolkit.getFontList()"); */

277 Log.log(Log.ERROR,this,e);

278

279 /* fonts = getToolkit().getFontList(); */

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.

43

44 public Object eval( CallStack callstack, Interpreter interpreter)

45 throws EvalError

46 {

47 SimpleNode node = (SimpleNode)jjtGetChild(0);

58 return

59 unaryOperation( node.eval(callstack, interpreter), kind );

60 } catch ( UtilEvalError e ) {

61 throw e.toEvalError( this, callstack );

64

65 private Object lhsUnaryOperation( LHS lhs, boolean strictJava )

66 throws UtilEvalError

67 {

68 if ( Interpreter.DEBUG ) Interpreter.debug("lhsUnaryOperation");

129 return new Double(Primitive.doubleUnaryOperation((Double)operand, kind));

130 else

131 throw new InterpreterError("An error occurred. Please call technical support.");

132 }

133 }

NetRexxScriptMacroHandler.nrx (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 92 lines

19 Version 0.1.2 (Nov. 19, 2009)

20

21 * display error and return if plugin inactive

22

23 Version 0.0.3 (Oct. 21, 2009)

51

52 if jEdit.getPlugin("NetRexxScriptPlugin")=null then do

53 Macros.error(view,"The NetRexx Script Plugin is not active.")

54 return

55 end

66 if runMethod=null then do

67 say "NetRexx macro handler could not find run method"

68 Macros.error(view,"The runmacro method could not be located.")

69 return

70 end

82 catch error=Exception

83 say "runmacro error="error

84 say "cause="error.getCause

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.

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.

49 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

50 &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/EnhancedButton.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;

51 &nbsp;<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">

53 <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/EnhancedDialog.html" target="_top"><B>FRAMES</B></A> &nbsp;

91 </DL>

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>

95 <HR>

228 </TR>

229 <TR BGCOLOR="white" CLASS="TableRowColor">

230 <TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD>

231 </TR>

232 </TABLE>

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.

192 </TR>

193 <TR BGCOLOR="white" CLASS="TableRowColor">

194 <TD><CODE>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</CODE></TD>

195 </TR>

196 </TABLE>

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.

59 /**

60 * Reads the next character from the stream per the general contract of

61 * Reader.read(). Returns -1 on error or end of stream.

62 */

63 public int read() {

012.ref (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 28 lines

25 Attribute( name="attr" namespaceUri="urn:xyzzy" qualifiedName="b:attr" prefix="b" value="2" )

26 )

27 ERROR: Attribute redefined.

28

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.

127 /* !!! you must not access device if MCLK is not running !!!

128 Doing so cause immediate PCI lockup :-( Maybe they should

129 generate ABORT or I/O (parity...) error and Linux should

130 recover from this... (kill driver/process). But world is not

131 perfect... */

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.

111 // Be careful to leave 'log' always at the end

112 var cn = [

113 "assert", "count", "debug", "dir", "dirxml", "error", "group",

114 "groupEnd", "info", "profile", "profileEnd", "time", "timeEnd",

115 "trace", "warn", "log"

Active.jedit-scheme (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 78 lines

12 view.gutter.focusBorderColor=\#0099cc

13 view.status.memory.foreground=\#cccccc

14 error-list.warningColor=\#ffa800

15 jdiff.invalid-color=\#cccccc

16 view.gutter.registerColor=\#ffffcc

60 console.infoColor=\#009600

61 jdiff.overview-changed-color=\#ffcc66

62 error-list.errorColor=\#ff0000

63 console.errorColor=\#ff0000

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.

206 {

207 args.setElementAt(fullPath, 0);

208 executeBuiltIn(console, output, error, "%cd", args);

209 output.commandDone();

210 // error.commandDone();

220 foreground = false;

221 output.commandDone();

222 // error.commandDone();

223 }

224 else

804 {

805 String[] pp = { command };

806 error.print(console.getErrorColor(), jEdit.getProperty(

807 "console.shell.unknown-builtin", pp));

808 }

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.

69 }

70 else

71 console.printError(jEdit.getProperty("console.shell.cd-error",args));

72 }

73 return;

276 switch(type)

277 {

278 case ErrorSource.ERROR:

279 console.printError(line);

378 {

379 String[] args = { io.getMessage() };

380 console.printError(jEdit.getProperty("console.shell.ioerror",args));

381 }

382 finally

418 {

419 String[] args = { io.getMessage() };

420 console.printError(jEdit.getProperty("console.shell.ioerror",args));

421 }

422 finally

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.

173 } catch ( Exception ex )

174 {

175 Log.log( Log.ERROR, SqlServerType.class,

176 "Error instantiating " + className + ", using default" );

244 } catch ( Exception ex )

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;

250 }

322 } catch ( IOException ex )

323 {

324 Log.log( Log.ERROR, SqlServerType.class,

325 "Could not create stream from file " + fileName );

326 Log.log( Log.ERROR, SqlServerType.class,

List_Plugin_Internal_Names.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 53 lines

27 if(ep == null)

28 {

29 Macros.error(view, "Plugin list not found");

30 return;

31 }

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.

307 #define C_IN_MCTS 0x00000800 /* modem CTS change */

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 */

313 #define C_IN_IOCTLW 0x00020000 /* I/O control w/ wait */

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 */

408 __u32 hw_overflow; /* hw overflow counter */

409 __u32 sw_overflow; /* sw overflow counter */

410 __u32 comm_error; /* frame/parity error counter */

411 __u32 ichar;

412 __u32 filler[7];

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.

401

402 #if _KERNEL_CAPABILITY_U32S != 2

403 # error Fix up hand-coded capability macro initializers

404 #else /* HAND-CODED capability initializers */

405

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.

19

20 #define fw_notify(s, args...) printk(KERN_NOTICE KBUILD_MODNAME ": " s, ## args)

21 #define fw_error(s, args...) printk(KERN_ERR KBUILD_MODNAME ": " s, ## args)

22

23 static inline void fw_memcpy_from_be32(void *_dst, void *_src, size_t size)

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.

251

252 if (jEdit.openFile(view,file.getPath()) == null)

253 Log.log(Log.ERROR,this,"Error opening file.");

254 }

255 } //}}}

295

296 NSData data = pboard.dataForType("NSFilenamesPboardType");

297 String[] error = new String[1];

298 int[] format = new int[1];

299 NSArray filenames = (NSArray)NSPropertyListSerialization.propertyListFromData(data,

300 NSPropertyListSerialization.PropertyListImmutable,

301 format,

302 error);

303 int count = filenames.count();

304 for (int i=0; i<count; i++)

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.

85 /**

86 * do the business

87 * @throws BuildException on error

88 */

89 public void execute() throws BuildException {

161 } else if (longFileMode.isFailMode()

162 || longFileMode.isOmitMode()) {

163 aOut.setLongFileMode(ArOutputStream.LONGFILE_ERROR);

164 } else if (longFileMode.isBsdMode()) {

165 aOut.setLongFileMode(ArOutputStream.LONGFILE_BSD);

201 * @param aOut the output stream

202 * @param arFileSet the fileset that the file came from.

203 * @throws IOException on error

204 */

205 protected void arFile(File file, ArOutputStream aOut, ArFileSet arFileSet)

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.

91

92 } catch ( Exception e ) {

93 throw new InterpreterError("internal error 1 in This: "+e);

94 }

95 }

104 */

105 public Object getInterface( Class clas )

106 throws UtilEvalError

107 {

108 if ( clas.isInstance( this ) )

109 return this;

110 else

111 throw new UtilEvalError( "Dynamic proxy mechanism not available. "

112 + "Cannot construct interface type: "+clas );

113 }

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.

179 parameter is <code>INT_MAX</code>, which in practice means the lock will never

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

183 "File exists" message.</dd>

205 its length; both should be numbers.<br />

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>

209

212 directory.<br />

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>

216

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.

150 catch(Throwable t)

151 {

152 Log.log(Log.ERROR,EditBus.class,"Exception"

153 + " while sending message on EditBus:");

154 Log.log(Log.ERROR,EditBus.class,t);

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.

258

259 if (jEdit.openFile(view,file.getPath()) == null)

260 Log.log(Log.ERROR,this,"Error opening file.");

261 }

262 }

304

305 NSData data = pboard.dataForType("NSFilenamesPboardType");

306 String[] error = new String[1];

307 int[] format = new int[1];

308 NSArray filenames = (NSArray)NSPropertyListSerialization.propertyListFromData(data,

309 NSPropertyListSerialization.PropertyListImmutable,

310 format,

311 error);

312 int count = filenames.count();

313 for (int i=0; i<count; i++)

contract.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 239 lines

12

13 #ifdef SWIGD

14 %ignore B::bar; // Prevents getting an error that C.bar does not override any function because multiple inheritance is not supported.

15 #endif

16

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.

533 VFSManager.error(view,

534 newPath,

535 "ioerror.write-error-readonly",

536 null);

537 setPerformingIO(false);

574 catch(IOException io)

575 {

576 VFSManager.error(view,newPath,"ioerror",

577 new String[] { io.toString() });

578 setPerformingIO(false);

587 catch(IOException io)

588 {

589 VFSManager.error(view,newPath,"ioerror",

590 new String[] { io.toString() });

591 setPerformingIO(false);

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.

61 .dma_rx_chan = CH_SPORT0_RX,

62 .dma_tx_chan = CH_SPORT0_TX,

63 .err_irq = IRQ_SPORT0_ERROR,

64 .regs = (struct sport_register *)SPORT0_TCR1,

65 },

67 .dma_rx_chan = CH_SPORT1_RX,

68 .dma_tx_chan = CH_SPORT1_TX,

69 .err_irq = IRQ_SPORT1_ERROR,

70 .regs = (struct sport_register *)SPORT1_TCR1,

71 }

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.

403 spin_unlock(&prtd->lock);

404

405 /* we seem to be getting the odd error from the pcm library due

406 * to out-of-bounds pointers. this is maybe due to the dma engine

407 * not having loaded the new values for the channel before being

hlsl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 479 lines

360 <MARKUP>else</MARKUP>

361 <MARKUP>endif</MARKUP>

362 <MARKUP>error</MARKUP>

363 <MARKUP>if</MARKUP>

364 <MARKUP>ifdef</MARKUP>

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.

50 * <li>{@link #confirm(Component,String,int)}</li>

51 * <li>{@link #confirm(Component,String,int,int)}</li>

52 * <li>{@link #error(Component,String)}</li>

53 * <li>{@link #input(Component,String)}</li>

54 * <li>{@link #input(Component,String,String)}</li>

118 catch (Exception e)

119 {

120 Log.log(Log.ERROR, Macros.class, e);

121 return;

122 }

134 else

135 {

136 Log.log(Log.ERROR,Macros.class,path +

137 ": Cannot find a suitable macro handler, "

138 + "assuming BeanShell");

GeneralTestEventsProcessor.java (https://bitbucket.org/nbargnesi/idea.git) Java · 79 lines

53 final Key outputType);

54

55 void onError(@NotNull final String localizedMessage,

56 @Nullable final String stackTrace,

57 final boolean isCritical);

ExpectedHighlightingData.java (https://bitbucket.org/nbargnesi/idea.git) Java · 588 lines

65 private static final Logger LOG = Logger.getInstance("#com.intellij.testFramework.ExpectedHighlightingData");

66

67 @NonNls private static final String ERROR_MARKER = "error";

68 @NonNls private static final String WARNING_MARKER = "warning";

69 @NonNls private static final String WEAK_WARNING_MARKER = "weak_warning";

70 @NonNls private static final String INFO_MARKER = "info";

71 @NonNls private static final String END_LINE_HIGHLIGHT_MARKER = "EOLError";

72 @NonNls private static final String END_LINE_WARNING_MARKER = "EOLWarning";

73 @NonNls private static final String LINE_MARKER = "lineMarker";

127 boolean checkInfos = false;

128

129 highlightingTypes.put(ERROR_MARKER, new ExpectedHighlightingSet(HighlightSeverity.ERROR, false, true));

130 highlightingTypes.put(WARNING_MARKER, new ExpectedHighlightingSet(HighlightSeverity.WARNING, false, checkWarnings));

131 highlightingTypes.put(WEAK_WARNING_MARKER, new ExpectedHighlightingSet(HighlightSeverity.WEAK_WARNING, false, checkWeakWarnings));

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.

215 * Some words about the offset:

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

219 * adjust the operations by this number of lines.

277 // check input

278 if ( fromLine < 0 || toLine < 0 || baseText == null ) {

279 log( "### delete() - Argument ERROR" );

280 return baseText;

281 }

313 // check input

314 if ( fromLine < 0 || toLine < 0 || baseText == null || changeTo == null ) {

315 log( "### change() - Argument ERROR" );

316 return baseText;

317 }

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.

13 * <li>v2.0.2 - Now specifies UTF-8 encoding in places where the code fails on systems

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>

17 * <li>v2.0 - I got rid of methods that used booleans to set options.

33 * <li>v1.3.5 - Added flag to turn on and off line breaks. Fixed bug in input stream

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>

37 * </ul>

163

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

167 private final static byte EQUALS_SIGN_ENC = -1; // Indicates equals sign in encoding

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.

140 }

141 catch ( Exception e ) {

142 data.getOut().printError( e.getMessage() );

143 }

144 finally {

152 boolean cancelled = super.cancel( mayInterruptIfRunning );

153 if ( cancelled ) {

154 data.getOut().printError( "Stopped 'Revert' action." );

155 data.getOut().close();

156 }

157 else {

158 data.getOut().printError( "Unable to stop 'Revert' action." );

159 }

160 return cancelled;

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.

14

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).

18 *

68

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:.

71

72 * In Java, the instance method must be of the form messageName(NSPasteBoard,String).

LoadLibraryWithNonConstantStringInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 95 lines

37 @Override

38 @NotNull

39 protected String buildErrorString(Object... infos) {

40 return InspectionGadgetsBundle.message(

41 "load.library.with.non.constant.string.problem.descriptor");

90 return;

91 }

92 registerMethodCallError(expression);

93 }

94 }

PublicStaticArrayFieldInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 68 lines

35

36 @NotNull

37 protected String buildErrorString(Object... infos) {

38 return InspectionGadgetsBundle.message(

39 "public.static.array.field.problem.descriptor");

63 return;

64 }

65 registerFieldError(field);

66 }

67 }

Toggle_ReadOnly.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 88 lines

44 if(!buffer.getVFS().getName().equals("file"))

45 {

46 Macros.error(view, "This macro only works on local files.");

47 return;

48 }

63 else

64 {

65 Macros.error(view, "This macro only works on Windows, Unix, & MacOS X.");

66 return;

67 }

BSHWhileStatement.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 100 lines ✨ Summary

This Java class implements a while statement for the BeanShell scripting language. It handles both while{} and do{}while() statements, with the latter having its condition evaluated before the loop body. The class evaluates the condition and body of the loop, handling return controls and breaks, and returns VOID to indicate no result.

45

46 public Object eval( CallStack callstack, Interpreter interpreter)

47 throws EvalError

48 {

49 int numChild = jjtGetNumChildren();

.cproject (git://github.com/PrimeSense/Sensor.git) text · 0 lines

14 <extensions>

15 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>

16 <extension id="com.arc.cdt.toolchain.ARCCompilerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>

17 <extension id="org.eclipse.cdt.core.MakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>

18 <extension id="com.arc.cdt.toolchain.ARCLinkerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>

19 <extension id="com.arc.cdt.toolchain.ARCAssemblerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>

21 </storageModule>

22 <storageModule moduleId="cdtBuildSystem" version="4.0.0">

23 <configuration artifactExtension="a" artifactName="XnDeviceFile" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.staticLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.staticLib" cleanCommand="rm -rf" description="" errorParsers="com.arc.cdt.toolchain.ARCCompilerErrorParser;com.arc.cdt.toolchain.ARCLinkerErrorParser;com.arc.cdt.toolchain.ARCAssemblerErrorParser;org.eclipse.cdt.core.MakeErrorParser" id="com.arc.cdt.toolchain.arc.libDebugConfig.1632712688" name="Debug" parent="com.arc.cdt.toolchain.arc.libDebugConfig">

24 <folderInfo id="com.arc.cdt.toolchain.arc.libDebugConfig.1632712688." name="/" resourcePath="">

25 <toolChain id="com.arc.cdt.toolchain.arc.libDebugToolChain.1787529261" name="ARCompact" superClass="com.arc.cdt.toolchain.arc.libDebugToolChain">

207 </storageModule>

208 <storageModule moduleId="cdtBuildSystem" version="4.0.0">

209 <configuration artifactExtension="a" artifactName="XnDeviceFile" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.staticLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.staticLib" cleanCommand="rm -rf" description="" errorParsers="com.arc.cdt.toolchain.ARCCompilerErrorParser;com.arc.cdt.toolchain.ARCLinkerErrorParser;com.arc.cdt.toolchain.ARCAssemblerErrorParser;org.eclipse.cdt.core.MakeErrorParser" id="com.arc.cdt.toolchain.arc.libReleaseConfig.274390581" name="Release" parent="com.arc.cdt.toolchain.arc.libReleaseConfig">

210 <folderInfo id="com.arc.cdt.toolchain.arc.libReleaseConfig.274390581." name="/" resourcePath="">

211 <toolChain id="com.arc.cdt.toolchain.arc.libReleaseToolChain.280972150" name="ARCompact" superClass="com.arc.cdt.toolchain.arc.libReleaseToolChain">

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.

98 print "</form>"; //could include inside because if IE page loading bug

99 print "<p>&nbsp;</p>";

100 displayError("count() is not supported for CSV. View as List or choose fields and try again.");

101 include_once 'footer.php';

102 }

670

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.",

674 $suppressScreenOutput, true);

689 } catch (Exception $e) {

690 print "<p><a name='qr'>&nbsp;</a></p>";

691 displayError($e->getMessage(),true,true);

692 }

693 }

GroovyEmptyFinallyBlockInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 67 lines

30 @NotNull

31 public String getGroupDisplayName() {

32 return ERROR_HANDLING;

33 }

34

40

41 @Nullable

42 protected String buildErrorString(Object... args) {

43 return "Empty '#ref' block #loc";

44

57 return;

58 }

59 registerError(finallyClause.getFirstChild());

60 }

61

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.

285 catch

286 {

287 Icon error = new Icon(SystemIcons.Exclamation, 40, 40);

288 this.PhotoPreview.Image = error.ToBitmap();

417 this.states.Remove(ut);

418

419 if (e.Error == null && e.Cancelled == false)

420 {

421

hayes-esp.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 155 lines

147 will no longer be accessible by the serial driver.

148

149 If I/O errors are experienced when accessing the port, check for IRQ and DMA

150 conflicts ('cat /proc/interrupts' and 'cat /proc/dma' for a list of IRQs and

151 DMAs currently in use).

Makefile (http://omnia2droid.googlecode.com/svn/trunk/) Makefile · 9 lines

1 # kbuild trick to avoid linker error. Can be omitted if a module is built.

2 obj- := dummy.o

3

PluginJAR.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1485 lines ✨ Summary

This Java code defines a class for storing and managing plugin data, specifically for a text editor application. It provides methods for reading and writing plugin metadata, such as plugin names, URLs, and boolean flags, to and from a file. The data is stored in a binary format using DataInputStream and DataOutputStream classes.

244 String[] args = { arg,

245 System.getProperty("java.version") };

246 jEdit.pluginError(path,"plugin-error.dep-jdk",args);

247 ok = false;

248 }

460 breakPlugin();

461

462 Log.log(Log.ERROR,this,"Error while starting plugin " + className);

463 Log.log(Log.ERROR,this,t);

464 String[] args = { t.toString() };

465 jEdit.pluginError(path,"plugin-error.start-error",args);

466

467 return;

775

776 String[] args = { io.toString() };

777 jEdit.pluginError(path,"plugin-error.load-error",args);

778

779 uninit(false);

Make_Bug_Report.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 119 lines

39 catch(IOException e)

40 {

41 Macros.error(view, "Error opening Activity Log.");

42 return;

43 }

48 lastError = new StringBuffer();

49 insideError = false;

50 startupDone = false;

51 activityLogHeaderLines = 9;

73 if(!insideError)

74 {

75 lastError.setLength(0);

76 insideError = true;

85 catch(IOException e)

86 {

87 Macros.error(view, "Error reading Activity Log");

88 }

89

example16.output (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

1 > example --log_level=message

2 Running 1 test case...

3 test.cpp(8): error in "free_test_function": check 2 == 1 failed

4 Test case has less failures then expected

5

6 *** No errors detected

7

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.

55 text-align: center }

56

57 div.admonition, div.attention, div.caution, div.danger, div.error,

58 div.hint, div.important, div.note, div.tip, div.warning {

59 margin: 2em ;

68

69 div.attention p.admonition-title, div.caution p.admonition-title,

70 div.danger p.admonition-title, div.error p.admonition-title,

71 div.warning p.admonition-title {

72 color: red ;

QtSql.4.0.0.linux-gcc-ppc32.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 1875 lines

619 56 __cxa_pure_virtual

620 60 __cxa_pure_virtual

621 64 QFileEngine::error

622 68 QFileEngine::errorString

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.

35 package bsh;

36

37 class ReflectError extends Exception

38 {

39 public ReflectError() { super(); }

40 public ReflectError(String s) { super(s); }

41 }

42

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.

105 catch(Exception e)

106 {

107 Log.log(Log.ERROR,jEdit.class,e);

108 }

109

160 catch(Exception e)

161 {

162 Log.log(Log.ERROR,this,"Error while opening"

163 + " dockables.dtd:");

164 Log.log(Log.ERROR,this,e);

233 {

234 // can't happen

235 throw new InternalError();

236 }

237 } //}}}

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.

42

43 public Object eval( CallStack callstack, Interpreter interpreter )

44 throws EvalError

45 {

46 int numchild = jjtGetNumChildren();

60 // get the first label

61 if ( child >= numchild )

62 throw new EvalError("Empty switch statement...");

63 label = ((BSHSwitchLabel)jjtGetChild(child++));

64

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.

397 }

398

399 #define DO_ERROR_INFO(signr, str, name, sicode, siaddr) \

400 static void name(struct pt_regs * regs, long interruption_code) \

401 { \

408 }

409

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,

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.

72 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits,

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));

76 int usb_ftdi_elan_edset_output(struct platform_device *pdev, u8 ed_number,

77 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits,

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));

81 int usb_ftdi_elan_edset_empty(struct platform_device *pdev, u8 ed_number,

82 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits,

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));

86 int usb_ftdi_elan_edset_input(struct platform_device *pdev, u8 ed_number,

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.

20 | |

21 | Return value is the tag of the answer, or-ed with FPU_Exception if |

22 | one was raised, or -1 on internal error. |

23 +---------------------------------------------------------------------------*/

24

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.

729 /*

730 * Parse LAPIC entries in MADT

731 * returns 0 on success, < 0 on error

732 */

733

761 if (count < 0) {

762 printk(KERN_ERR PREFIX

763 "Error parsing LAPIC address override entry\n");

764 return count;

765 }

788 if (count < 0) {

789 printk(KERN_ERR PREFIX

790 "Error parsing LAPIC address override entry\n");

791 return count;

792 }

Highlight.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 83 lines

49 gatchan-highlight.errordialog.invalidHighlight.message = Invalid highlight

50 gatchan-highlight.errordialog.invalidHighlight.title = Highlight error

51

52 gatchan-highlight.errordialog.unableToAccessProjectDirectory.message = Unable to access project directory {0}

53 gatchan-highlight.errordialog.unableToAccessProjectDirectory.title = Highlight error

54

55 gatchan.highlight.expire.tooltip=The time in seconds before the highlight will disappear if not used. 0 means unlimited

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”.

286 return Color.class;

287 default:

288 throw new InternalError();

289 }

290 } //}}}

actionscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 830 lines

267 <LITERAL2>loadClip</LITERAL2>

268 <LITERAL2>onLoadComplete</LITERAL2>

269 <LITERAL2>onLoadError</LITERAL2>

270 <LITERAL2>onLoadInit</LITERAL2>

271 <LITERAL2>onLoadProgress</LITERAL2>

320 <LITERAL2>visible</LITERAL2>

321

322 <!-- Error class -->

323 <LITERAL2>Error</LITERAL2>

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.

21 <p>

24 try {

25 eval("foo>>><>M>JK$LJLK$");

26 } catch ( EvalError e ) {

27 // ParseException caught here

28 }

62 Returns the value of the expression.

63 <p>

64 Throws bsh.EvalError on error

65 <p>

66 @return the value of the expression.

67 @throws bsh.EvalError on error

68 */

69

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.

119 /**

120 * try to connect to any running server instance and close it.

121 * exit with an error code on failure, but not if no server was found.

122 */

123 public static void main(String[] args)

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.

104 catch(Exception e)

105 {

106 Log.log(Log.ERROR,this,e);

107 Object[] args = { e.getMessage() };

108 if(args[0] == null)

109 args[0] = e.toString();

110 VFSManager.error(view,"searcherror",args);

111 }

112 catch(WorkThread.Abort a)

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.

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.

30 // Did you intend to use the auto_ facilities while forgetting to

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.

57 // Did you intend to use the auto_ facilities while forgetting to

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.

77 BOOST_SPIRIT_ASSERT_MATCH(qi::domain, Skipper);

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.

52 catch(Exception e)

53 {

54 Log.log(Log.ERROR,this,e);

55 }

56

78 catch(InterruptedException ie)

79 {

80 Log.log(Log.ERROR,this,ie);

81 }

82 }*/

101 catch(InterruptedException ie)

102 {

103 Log.log(Log.ERROR,this,ie);

104 }

105 }

NSString_RegEx.m (git://github.com/laullon/gitx.git) Objective C · 97 lines ✨ Summary

This Objective C code extends the NSString class to support regular expression matching and extraction of substrings. It provides two methods: substringsMatchingRegularExpression:count:options:ranges:error: to find multiple matches, and grep: to search for a single match with default options. The method returns an array of matched substrings or nil if no matches are found.

13 @implementation NSString (RegEx)

14

15 - (NSArray *) substringsMatchingRegularExpression:(NSString *)pattern count:(int)nmatch options:(int)options ranges:(NSArray **)ranges error:(NSError **)error

16 {

17 options |= REG_EXTENDED;

27 errcode = regcomp(&preg, [pattern UTF8String], options);

28 if (errcode != 0)

29 goto catch_error; // regcomp error

30

31 // Match the regular expression against substring self

79 if (len > 0)

80 [userInfo setObject:[NSString stringWithUTF8String:errbuf] forKey:NSLocalizedDescriptionKey];

81 *error = [NSError errorWithDomain:@"regerror" code:errcode userInfo:userInfo];

82 }

83

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.

72 </td></tr></table>

73 <table align=center width="87%" cellpadding=5><tr bgcolor="#EEEEFF"><td><em><b>return</b></em></td></tr><tr><td>

74 <p>Font format string. NULL in case of error.</p>

75 </td></tr></table>

76 </td></tr></table>

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.

66 xpmRgbName *rgb;

67

68 /* Open the rgb text file. Abort if error. */

69 if ((rgbf = fopen(rgb_fname, "r")) == NULL)

70 return 0;

90 continue;

91

92 /* Allocate memory for ascii name. If error give up here. */

93 if (!(rgbname = (char *) XpmMalloc(strlen(name) + 1)))

94 break;

264

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

268 * HeDu

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.

7 }

8

9 public void error(String message) throws Exception {

10 //do nothing

11 }

12

13 public void fatalError(String message) {

14 //do nothing

15 }

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.

101 # Connection error. Likely transitory.

102 rescue Errno::ECONNRESET, SOAP::HTTPStreamError, SocketError => e

103 puts 'Connection Error: %s' % e

104 puts 'Source: %s' % e.backtrace.first

105

106 # API Error.

107 rescue AdwordsApi::Errors::ApiException => e

110 puts 'Code: %d' % e.code if e.code

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

118 puts ' %s: %s' % [field, value]

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.

18

19 import com.google.gdata.util.common.xml.XmlWriter;

20 import com.google.gdata.client.CoreErrorDomain;

21 import com.google.gdata.data.Extension;

22 import com.google.gdata.data.ExtensionPoint;

136 if (originalId == null) {

137 throw new ParseException(

138 CoreErrorDomain.ERR.idRequired);

139 }

140

141 if (originalStartTime == null) {

142 throw new ParseException(

143 CoreErrorDomain.ERR.whenRequired);

144 }

145

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.

121 Type: String

122 Default: 'warn'

123 Can be one of ['fatal', 'error', 'warn', 'info', 'debug'].

124

125 .logFile: