100+ results for 'gets'

Not the results you expected?

socket.cpp (https://bitbucket.org/ewfiseli/elib.git) C++ · 365 lines

343

344 ::socklen_t len = sizeof(::sockaddr_in);

345 int ret = ::getsockname(

346 s.raw_socket()

347 , reinterpret_cast<::sockaddr*>(&in)

scl_memmgr.cc (https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git) C++ · 410 lines

65 std::string getsrcfile( void ) const;

66 unsigned int getsrcline( void ) const;

67 };

68

186 irecord != _records.end();

187 irecord ++ ) {

188 scl_memmgr_error error( irecord->getsrcfile(), irecord->getsrcline() );

189 ierror = errors.find( error );

190 if( ierror == errors.end() ) {

202 ierror ++ ) {

203 // todo: generate error for memory leak

204 printf( "scl_memmgr warning: Possible memory leak in %s line %d\n", ierror->getsrcfile().c_str(), ierror->getsrcline() );

205 }

206

258 } else {

259 // Update stats

260 _allocated -= record->getsize();

261 _deallocated_total += record->getsize();

itkCenteredTransformInitializerTest.cxx (https://github.com/chrismullins/ITK.git) C++ · 392 lines

49

50 const typename FixedImageType::RegionType & fixedRegion = fixedImage->GetLargestPossibleRegion();

51 const typename FixedImageType::SizeType & fixedSize = fixedRegion.GetSize();

52 const typename FixedImageType::IndexType & fixedIndex = fixedRegion.GetIndex();

53 ContinuousIndexType fixedCenterIndex;

61

62 const typename MovingImageType::RegionType & movingRegion = movingImage->GetLargestPossibleRegion();

63 const typename MovingImageType::SizeType & movingSize = movingRegion.GetSize();

64 const typename MovingImageType::IndexType & movingIndex = movingRegion.GetIndex();

65 ContinuousIndexType movingCenterIndex;

188

189 const RegionType & region = image->GetLargestPossibleRegion();

190 const SizeType & size = region.GetSize();

191 const IndexType & index = region.GetIndex();

192

instmgr.cc (https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git) C++ · 413 lines

346

347 SDAI_Application_instance *

348 InstMgr::GetSTEPentity( int index ) {

349 MgrNode * mn = ( MgrNode * )( *master )[index];

350 if( mn ) {

385

386 SDAI_Application_instance *

387 InstMgr::GetSTEPentity( const char * entityKeyword, int starting_index ) {

388 MgrNode * node;

389 SDAI_Application_instance * se;

404

405 void *

406 InstMgr::GetSEE( int index ) {

407 MgrNode * mn = ( MgrNode * )( *master )[index];

408 if( mn ) {

vtkBoxWidget2.cxx (https://github.com/dgobbi/VTK.git) C++ · 332 lines

32 vtkBoxWidget2::vtkBoxWidget2()

33 {

34 this->WidgetState = vtkBoxWidget2::Start;

35 this->ManagesCursor = 1;

36

107 !self->CurrentRenderer->IsInViewport(X,Y) )

108 {

109 self->WidgetState = vtkBoxWidget2::Start;

110 return;

111 }

152

153 // We are definitely selected

154 self->WidgetState = vtkBoxWidget2::Active;

155 self->GrabFocus(self->EventCallbackCommand);

156

SOCK_Connector.cpp (https://gitlab.com/wis-junior-dev/wis-junior-dev) C++ · 350 lines

123 // which will immediately return with the handle in an

124 // error state. The error code is then retrieved with

125 // getsockopt(). Good sockets however will return from

126 // the select() with ETIME - in this case return

127 // EWOULDBLOCK so the wait strategy can complete the

qMRMLDisplayNodeWidget.cxx (https://github.com/LinjieChen/Slicer-1.git) C++ · 390 lines

373 }

374 d->VisibilityCheckBox->setChecked(d->MRMLDisplayNode->GetVisibility());

375 d->SelectedCheckBox->setEnabled(d->MRMLDisplayNode->GetSelectable());

376 d->SelectedCheckBox->setChecked(d->MRMLDisplayNode->GetSelected());

377 d->ClippingCheckBox->setChecked(d->MRMLDisplayNode->GetClipping());

378 d->SliceIntersectionVisibilityCheckBox->setChecked(

379 d->MRMLDisplayNode->GetSliceIntersectionVisibility());

380 d->MaterialPropertyWidget->setColor(

381 QColor::fromRgbF(d->MRMLDisplayNode->GetColor()[0],

385 d->MaterialPropertyWidget->setAmbient(d->MRMLDisplayNode->GetAmbient());

386 d->MaterialPropertyWidget->setDiffuse(d->MRMLDisplayNode->GetDiffuse());

387 d->MaterialPropertyWidget->setSpecular(d->MRMLDisplayNode->GetSpecular());

388 d->MaterialPropertyWidget->setSpecularPower(d->MRMLDisplayNode->GetPower());

389 d->MaterialPropertyWidget->setBackfaceCulling(d->MRMLDisplayNode->GetBackfaceCulling());

MOAIGrid.cpp (https://github.com/neojjang/moai-beta.git) C++ · 479 lines

37

38 //----------------------------------------------------------------//

39 /** @name getSize

40 @text Returns the dimensions of the grid (in tiles).

41

44 @out number height

45 */

46 int MOAIGrid::_getSize ( lua_State* L ) {

47 MOAI_LUA_SETUP ( MOAIGrid, "U" )

48

374 luaL_Reg regTable [] = {

375 { "clearTileFlags", _clearTileFlags },

376 { "getSize", _getSize },

377 { "getTile", _getTile },

378 { "getTileFlags", _getTileFlags },

GlyphPageTreeNodeTest.cpp (https://gitlab.com/jonnialva90/iridium-browser) C++ · 253 lines

211 GlyphPageTreeNode* node1 = GlyphPageTreeNode::getNormalRootChild(segmentedData.get(), kPageNumber);

212 GlyphPageTreeNode* node2 = node1->getNormalChild(dataBtoD.get(), kPageNumber);

213 SystemFallbackGlyphPageTreeNode* node3 = node2->getSystemFallbackChild(kPageNumber);

214

215 EXPECT_TRUE(node3->isSystemFallback());

233 RefPtr<TestSimpleFontData> defaultData = TestSimpleFontData::create('A', 'B');

234 GlyphPageTreeNode* node1 = GlyphPageTreeNode::getNormalRootChild(defaultData.get(), kPageNumber);

235 SystemFallbackGlyphPageTreeNode* node2 = node1->getSystemFallbackChild(kPageNumber);

236

237 EXPECT_TRUE(node2->isSystemFallback());

FirstConfigure.cxx (https://github.com/thewtex/CMake.git) C++ · 509 lines

207 }

208

209 QString CrossCompilerSetup::getSystem() const

210 {

211 return this->systemName->text();

391 settings.setValue("FortranCompiler", this->mCrossCompilerSetupPage->getFortranCompiler());

392 settings.setValue("ToolChainFile", this->getCrossCompilerToolChainFile());

393 settings.setValue("SystemName", this->mCrossCompilerSetupPage->getSystem());

394 settings.setValue("SystemVersion", this->mCrossCompilerSetupPage->getVersion());

395 settings.setValue("SystemProcessor", this->mCrossCompilerSetupPage->getProcessor());

426 }

427

428 QString FirstConfigure::getSystemName() const

429 {

430 return this->mCrossCompilerSetupPage->getSystem();

SimpleAudioEngineJni.cpp (https://bitbucket.org/kevin_sun/sanguo_client.git) C++ · 443 lines

74 }

75

76 static bool getStaticMethodInfo(JniMethodInfo &methodinfo, const char *methodName, const char *paramCode)

77 {

78 jmethodID methodID = 0;

90 jclass classID = getClassID(pEnv);

91

92 methodID = pEnv->GetStaticMethodID(classID, methodName, paramCode);

93 if (! methodID)

94 {

112 JniMethodInfo methodInfo;

113

114 if (! getStaticMethodInfo(methodInfo, "preloadBackgroundMusic", "(Ljava/lang/String;)V"))

115 {

116 return;

GitAdminDirTest.cpp (https://gitlab.com/cjeight/tortoisegit) C++ · 358 lines

329 }

330

331 TEST(CGitAdminDir, GetSuperProjectRoot)

332 {

333 CAutoTempDir tmpDir;

334

335 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir()));

336

337 EXPECT_TRUE(::CreateDirectory(tmpDir.GetTempDir() + L"\\.git", nullptr));

338 EXPECT_STREQ(L"", GitAdminDir::GetSuperProjectRoot(tmpDir.GetTempDir()));

339

340 EXPECT_TRUE(::CreateDirectory(tmpDir.GetTempDir() + L"\\subdir", nullptr));

ParticleProcessor.cpp (https://github.com/rpavlik/openscenegraph-oldstable-ubuntu.git) C++ · 249 lines

124 "Set the start time of this processor. ",

125 "");

126 I_Method0(double, getStartTime,

127 Properties::NON_VIRTUAL,

128 __double__getStartTime,

241 __void__setResetTime__double);

242 I_SimpleProperty(double, StartTime,

243 __double__getStartTime,

244 __void__setStartTime__double);

245 I_SimpleProperty(const osg::Matrix &, WorldToLocalMatrix,

priority_write_scheduler_test.cc (https://gitlab.com/0072016/Facebook-SDK-) C++ · 289 lines

37 }

38

39 TEST_F(PriorityWriteSchedulerTest, GetStreamPriority) {

40 EXPECT_DFATAL(EXPECT_EQ(kV3LowestPriority, scheduler_.GetStreamPriority(1)),

42

43 scheduler_.RegisterStream(1, 3);

44 EXPECT_EQ(3, scheduler_.GetStreamPriority(1));

45

46 // Redundant registration shouldn't change stream priority.

47 EXPECT_DFATAL(scheduler_.RegisterStream(1, 4), "Stream 1 already registered");

48 EXPECT_EQ(3, scheduler_.GetStreamPriority(1));

49

50 scheduler_.UpdateStreamPriority(1, 5);

51 EXPECT_EQ(5, scheduler_.GetStreamPriority(1));

52

53 // Toggling ready state shouldn't change stream priority.

MQ2RaidType.cpp (https://gitlab.com/mxdog/mqnext-mxdog) C++ · 506 lines

390 if (!pMember)

391 {

392 return pSpawnType->GetMember(GetSpawnByName(raidMember.Name), Member, Index, Dest);

393 }

394

446

447 case RaidMemberMembers::Spawn:

448 Dest = pSpawnType->MakeTypeVar(GetSpawnByName(raidMember.Name));

449 return true;

450

497 return false;

498

499 toVar = pSpawnType->MakeVarPtr(GetSpawnByName(pRaid->RaidMember[nRaidMember].Name));

500 return true;

501 }

AbstractPlugin.cpp (https://github.com/carrot-garden/carrot-jnlper.git) C++ · 317 lines

20 jmethodID AbstractPlugin::newDoubleID = NULL;

21 jmethodID AbstractPlugin::wrapOrUnwrapScriptingObjectID = NULL;

22 jmethodID AbstractPlugin::getScriptingObjectForAppletID = NULL;

23 jmethodID AbstractPlugin::getJavaNameSpaceID = NULL;

24 jmethodID AbstractPlugin::javaObjectInvokeID = NULL;

54 newDoubleID = env->GetMethodID(absPluginClass, "newDouble", "(D)Ljava/lang/Double;");

55 wrapOrUnwrapScriptingObjectID = env->GetMethodID(absPluginClass, "wrapOrUnwrapScriptingObject", "(J)Ljava/lang/Object;");

56 getScriptingObjectForAppletID = env->GetMethodID(absPluginClass, "getScriptingObjectForApplet", "(J)J");

57 getJavaNameSpaceID = env->GetMethodID(absPluginClass, "getJavaNameSpace", "(Ljava/lang/String;)Ljava/lang/Object;");

58 javaObjectInvokeID = env->GetMethodID(absPluginClass, "javaObjectInvoke", "(Lsun/plugin2/liveconnect/RemoteJavaObject;ZJJIJJ)Z");

155 }

156

157 jlong AbstractPlugin::getScriptingObjectForApplet(jobject javaPluginInstance,

158 jlong exceptionInfo) {

159 if (javaPluginInstance == NULL) {

ia2AccessibleText.cpp (https://bitbucket.org/avikpal/mozilla-central.git) C++ · 537 lines

142

143 int32_t selCount = 0;

144 nsresult rv = textAcc->GetSelectionCount(&selCount);

145 if (NS_FAILED(rv))

146 return GetHRESULT(rv);

194

195 int32_t startOffset = 0, endOffset = 0;

196 nsresult rv = textAcc->GetSelectionBounds(aSelectionIndex,

197 &startOffset, &endOffset);

198 if (NS_FAILED(rv))

CatmullClarkLevel.cpp (https://github.com/williamwaterson/protolayer.git) C++ · 416 lines

276

277 HalfEdge& firstHalfEdge = edge.getFirstHalf();

278 HalfEdge& secondHalfEdge = edge.getSecondHalf();

279

280 Vertex& fromVertex = firstHalfEdge.getFromVertex();

354 result = &(edge.getFirstHalf());

355 break;

356 } else if (edge.getSecondHalf().isEquivalent(from, to)) {

357 result = &(edge.getSecondHalf());

auto_encoder_stack.cc (https://gitlab.com/max-crow/rtbkit-p) C++ · 480 lines

195 std::pair<float, float>

196 Auto_Encoder_Stack::

197 itargets(float maximum) const

198 {

199 if (layers_.empty())

200 throw Exception("itargets(): no layers");

201 return layers_.back().itargets(maximum);

207 {

208 if (layers_.empty())

209 throw Exception("itargets(): no layers");

210 return layers_.back().supports_missing_outputs();

211 }

427 std::pair<float, float>

428 Auto_Encoder_Stack::

429 targets(float maximum) const

430 {

431 return layers_.targets(maximum);

PVCAMUtils.cpp (https://github.com/astraw/micromanager1.3.git) C++ · 255 lines

149 *

150 * Description ::

151 * This routine gets a parameter in PvCam, it takes care of data type for

152 * the user by returning it in a long.

153 *

lua_ScriptTargetEventRegistry.cpp (https://github.com/blackberry/GamePlay.git) C++ · 322 lines

122 {

123 // Get parameter 1 off the stack.

124 const char* param1 = gameplay::ScriptUtil::getString(2, false);

125

126 ScriptTarget::EventRegistry* instance = getInstance(state);

153 {

154 // Get parameter 1 off the stack.

155 const char* param1 = gameplay::ScriptUtil::getString(2, false);

156

157 // Get parameter 2 off the stack.

158 const char* param2 = gameplay::ScriptUtil::getString(3, false);

159

160 ScriptTarget::EventRegistry* instance = getInstance(state);

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

This Java class represents a sequence of XML fragments as a string. It takes a NodeList of nodes and constructs an XML fragment for each node, appending them to a StringBuffer. The resulting string is then returned. It also handles various types of nodes (elements, text, attributes, comments, etc.) and provides methods to access the fragment positions and count.

75 * Returns string of XML fragments representing the sequence of nodes in a node set.

76 */

77 public String getString() {

78 return buffer.toString();

79 }

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

55 {

56 public:

57 Invisible(Q3WidgetStack * parent): QWidget(parent, "qt_invisible_widgetstack")

58 {

59 setBackgroundMode(NoBackground);

93 the stack.

94

95 Q3WidgetStack also provides the ability to manipulate widgets

96 through application-specified integer IDs. You can also translate

97 from widget pointers to IDs using id() and from IDs to widget

140 */

141

142 Q3WidgetStack::~Q3WidgetStack()

143 {

144 delete focusWidgets;

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

This Java code is a part of a logging system for a GUI application, specifically designed for use with the Subversion plugin. It displays log messages in a text area and allows users to control the display of the log, including whether to show the tail of the log. The code also includes features like clearing the log and selecting all text.

131

132 /**

133 * Gets the textArea attribute of the AntelopeGUILogHandler object

134 *

135 * @return The textArea value

195

196 /**

197 * Gets the size attribute of the optional frame.

198 *

199 * @return The size value

200 */

201 public Dimension getSize() {

202 return _frame.getSize();

270 StyleConstants.setBold( set, _font.isBold() );

271 StyleConstants.setItalic( set, _font.isItalic() );

272 StyleConstants.setFontSize( set, _font.getSize() );

273 }

274 if ( lr.getLevel().equals( Level.WARNING ) ) {

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

This Java interface defines a PHPItem, which represents an item in a PHP file. It provides constants for different types of items (e.g., class, method, field) and methods to retrieve information about each item, such as its name, start position, and icon. The interface also includes methods to get the item’s type and path, and to convert the name to lowercase.

30 String getNameLowerCase();

31

32 int getSourceStart();

33

34 int getBeginLine();

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

This Java code is part of a text editor’s rendering engine, responsible for drawing the visual representation of text on the screen. It handles various aspects such as caret (cursor) placement, bracket highlighting, and selection rendering. The code uses graphics and painting techniques to display the text in a visually appealing manner, taking into account features like block overwrite mode and bracket matching.

88 //{{{ Getters and setters

89

90 //{{{ getStyles() method

91 /**

92 * Returns the syntax styles used to paint colorized text. Entry <i>n</i>

94 * @see org.gjt.sp.jedit.syntax.Token

95 */

96 public final SyntaxStyle[] getStyles()

97 {

98 return styles;

133 } //}}}

134

135 //{{{ getSelectionColor() method

136 /**

137 * Returns the selection color.

ObjectAllocationInLoopInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 130 lines

18 import com.intellij.psi.*;

19 import com.intellij.psi.util.PsiTreeUtil;

20 import com.siyeh.InspectionGadgetsBundle;

21 import com.siyeh.ig.BaseInspection;

22 import com.siyeh.ig.BaseInspectionVisitor;

28 @NotNull

29 public String getDisplayName() {

30 return InspectionGadgetsBundle.message(

31 "object.allocation.in.loop.display.name");

32 }

34 @NotNull

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

36 return InspectionGadgetsBundle.message(

37 "object.allocation.in.loop.problem.descriptor");

38 }

flymake-css.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 162 lines

138

139 This function replaces numeric entities in the input STRING and

140 returns the modified string. For example \"&#42;\" gets replaced

141 by \"*\"."

142 (if (and string (stringp string))

dsc.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 55 lines ✨ Summary

This C code sets the drive strength control (DSC) value for a specific GPIO pin on an S3C2440 processor. It takes two arguments: the pin number and the desired DSC value, then writes the new value to the corresponding register using I/O operations. The function is exported as a symbol, making it accessible from other parts of the kernel.

39

40 base = (pin & S3C2440_SELECT_DSC1) ? S3C2440_DSC1 : S3C2440_DSC0;

41 mask = 3 << S3C2440_DSC_GETSHIFT(pin);

42

43 local_irq_save(flags);

pl.UTF-8.po (https://bitbucket.org/ultra_iter/vim-qt.git) Portable Object · 6525 lines

414 msgstr "E461: Niedozwolona nazwa zmiennej: %s"

415

416 msgid "E687: Less targets than List items"

417 msgstr "E687: Mniej celów niż elementów Listy"

418

419 msgid "E688: More targets than List items"

420 msgstr "E688: Więcej celów niż elementów Listy"

421

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

96 bool JSDirectoryEntryConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)

97 {

98 return getStaticValueSlot<JSDirectoryEntryConstructor, JSDOMWrapper>(exec, &JSDirectoryEntryConstructorTable, this, propertyName, slot);

99 }

100

101 bool JSDirectoryEntryConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)

102 {

103 return getStaticValueDescriptor<JSDirectoryEntryConstructor, JSDOMWrapper>(exec, &JSDirectoryEntryConstructorTable, this, propertyName, descriptor);

104 }

105

136 bool JSDirectoryEntryPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)

137 {

138 return getStaticFunctionSlot<JSObject>(exec, getJSDirectoryEntryPrototypeTable(exec), this, propertyName, slot);

139 }

140

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

293 clear();

294 break;

295 case QDesignerWidgetBox::LoadCustomWidgetsOnly:

296 addCustomCategories(true);

297 updateGeometries();

332 {

333 if (replace) {

334 // clear out all existing custom widgets

335 if (const int numTopLevels = topLevelItemCount()) {

336 for (int t = 0; t < numTopLevels ; ++t)

450 * <ui language="c++">

451 * <widget class="MultiPageWidget" name="multipagewidget"> ... </widget>

452 * <customwidgets>...</customwidgets>

453 * <ui>

454 *

612

613 const QDesignerPluginManager *pm = m_core->pluginManager();

614 const QDesignerPluginManager::CustomWidgetList customWidgets = pm->registeredCustomWidgets();

615 if (customWidgets.empty())

test_pkgutil.py (https://bitbucket.org/tarek/distutils2/) Python · 609 lines ✨ Summary

This is a Python script that tests the functionality of the pkgutil module, which provides tools for working with Python packages and distributions. The test suite checks various aspects of the module’s behavior, including parsing package metadata, finding distributions, and handling obsolete versions. It ensures that the module behaves correctly in different scenarios.

198 path = relpath(file, sys.prefix)

199 digest = get_hexdigest(file)

200 size = os.path.getsize(file)

201 return [path, digest, size]

202

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

This Java code is a log retrieval tool for SVN (Subversion) version control systems. It takes a list of file paths, a start and end revision date, and connects to an SVN repository. It then retrieves log entries for each file path within the specified revision range and prints them to the console.

131 out.println( "\t path: " + path );

132 out.println( "\t peg revision: " + data.getPegRevision() );

133 out.println( "\tstart revision: " + data.getStartRevision() );

134 out.println( "\t end revision: " + data.getEndRevision() );

135 out.println( "\t stop on copy: " + data.getStopOnCopy() );

136 out.println( "\t show paths: " + data.getShowPaths() );

137 out.println( "\t max logs: " + data.getMaxLogs() );

138

147 client.doLog( repositoryUrl, pathToCheck, data.getPegRevision(), data.getStartRevision(),

148 data.getEndRevision(), data.getStopOnCopy(), data.getShowPaths(), data.getMaxLogs(), handler );

149 }

150 }

168 client.doLog( pathToCheck, data.getPegRevision(), data.getStartRevision(),

169 data.getEndRevision(), data.getStopOnCopy(), data.getShowPaths(), data.getMaxLogs(), handler );

170 }

171 }

launcher-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 593 lines

117 Before committing changes to the command line parameters,

118 <command>jedit.exe</command> validates the paths for the Java

119 and jEdit targets as well as the working directory. It will complain if

120 the paths are invalid. It will not validate command line options, but it

121 will warn you if it finds the <userinput>-noserver</userinput> option

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

This Java code defines a GUI component for managing tag index files, which are used to store file paths and their corresponding tags. The component allows users to add, remove, and edit tag index files, as well as enable/disable individual files. It also updates the UI in response to changes made by the user.

175 searchAllFilesCheckBox_ = new JCheckBox(jEdit.getProperty(

176 "options.tags.tag-search-all-files.label"));

177 searchAllFilesCheckBox_.setSelected(Tags.getSearchAllTagFiles());

178 addComponent(searchAllFilesCheckBox_);

179

201 searchInParentDirs_ = new JCheckBox(jEdit.getProperty(

202 "options.tags.tags-search-parent-dirs.label"));

203 searchInParentDirs_.setSelected(Tags.getSearchInParentDirs());

204 addComponent(searchInParentDirs_);

205

211 pane_ = new JScrollPane(table_, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,

212 JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);

213 table_.getSelectionModel().addListSelectionListener(listSelectionListener_);

214 table_.setPreferredScrollableViewportSize(new Dimension(250, 110));

215 TableColumnModel columnModel = table_.getColumnModel();

actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 45 lines

30 // JOptionPane.showMessageDialog(view, "Got Project Viewer");

31 String s = "";

32 List list = pv.getSelectedFilePaths();

33 if (list !=null) {

34 ListIterator iter = list.listIterator();

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.

127 new ActionListener() {

128 public void actionPerformed( ActionEvent ae ) {

129 String selection = burp.getSelectionPath();

130 dialog.setVisible( false );

131 dialog.dispose();

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

This Java class, MutableFilterOptions, represents filter options for JBrowse. It provides a way to customize which types of information are displayed in a graphical representation. The class has boolean fields for each type of information and corresponding getter and setter methods. It also includes methods for setting the visibility index for top-level and member elements.

45 public boolean equals(Object o) {

46 MutableFilterOptions fo = (MutableFilterOptions)o;

47 return showImports == fo.getShowImports() &&

48 showFields == fo.getShowFields() &&

49 showThrows == fo.getShowThrows() &&

50 showVariables == fo.getShowVariables() &&

51 showPrimitives == fo.getShowPrimitives() &&

52 showInitializers == fo.getShowInitializers() &&

53 showGeneralizations == fo.getShowGeneralizations() &&

54 topLevelVisIndex == fo.getTopLevelVisIndex() &&

55 memberVisIndex == fo.getMemberVisIndex();

57

58

59 public final boolean getShowImports() { return showImports; }

60 public final boolean getShowFields() { return showFields; }

description.html (https://freespeech.svn.sourceforge.net/svnroot/freespeech) HTML · 530 lines ✨ Summary

This is a technical documentation of an acoustic speech recognition system, written in HTML format. It outlines the system’s components, including data collection, front-end processing, decoding, and integration with audio servers. The document also includes a to-do list for future development and maintenance tasks.

317 5.2.3 Training</H4>

318 (given utterance, HMM-graph)

319 <P>1. produce targets for the states (Baum-Welch, Viterbi)

320 <BR>2. accumulate statistics, weighted by targets

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

This Java code creates a dialog window that displays the progress of plugin downloads. It uses a separate thread to perform the download operations in the background, updating the progress bar and displaying a “stop” button to cancel the operation. When the download is complete, it closes the dialog window. The dialog is designed to be used with a plugin manager application.

141 public void actionPerformed(ActionEvent evt)

142 {

143 if(evt.getSource() == stop)

144 {

145 thread.stop();

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

This Java code defines a custom options panel for a text editor, specifically for mouse-related settings. It allows users to configure various mouse actions, such as dragging and dropping text, joining non-word characters, pasting from middle mouse button clicks, and modifying gutter click behavior. The settings are saved when the user closes the options panel.

127 for(int i = 0; i < c; i++)

128 {

129 int idx = gutterClickActions[i].getSelectedIndex();

130 jEdit.setProperty("view.gutter."+clickModifierKeys[i],

131 clickActionKeys[idx]);

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

This Java code is a GUI application for managing FTP connections and private keys. It allows users to input host, user, and password information, as well as select a private key file. The application checks if a private key file exists for each user-host combination and provides a button to select a new private key file.

194 public void actionPerformed(ActionEvent evt)

195 {

196 Object source = evt.getSource();

197 if(source == ok)

198 ok();

317 if(returnVal == JFileChooser.APPROVE_OPTION) {

318 try{

319 privateKeyField.setText(chooser.getSelectedFile().getCanonicalPath());

320 } catch(java.io.IOException err) {

321 // Might be nice to pop this up

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

This Java code defines a plugin options pane for a text editor, specifically for managing dirty line providers. It allows users to select a provider from a dropdown list and view its specific options in a panel. The selected provider’s options are saved when the user clicks “Save”. The code uses a combination of Swing components and service management to interact with the text editor.

52 protected void _init()

53 {

54 String [] services = ServiceManager.getServiceNames(

55 DirtyLineProvider.class.getCanonicalName());

56 provider = new JComboBox(services);

82 if (currentPanel != null)

83 currentPanel.setVisible(false);

84 int providerIndex = provider.getSelectedIndex();

85 DirtyLineProviderOptions opts = providerOptions[providerIndex];

86 if (opts == null)

87 {

88 String selectedName = provider.getSelectedItem().toString();

89 DirtyLineProvider selProvider= (DirtyLineProvider)

90 ServiceManager.getService(

ova.html (http://flowplayer-core.googlecode.com/svn/) HTML · 121 lines ✨ Summary

This HTML code sets up a basic Flowplayer video player with various plugins and settings, such as auto-playing videos, controls, and fullscreen toggle functionality. It also includes custom plugins like SMIL and OVA for handling video metadata and ads. The code is designed to play a specific video from a URL and provides options for controlling the playback experience.

109 does not affect on Flowplayer functionality

110 <button type="button" onclick="info($f()._api().fp_getVersion());">get version</button>

111 <button type="button" onclick="info($f().getStatus().time);">show time3</button>

112 <button type="button" onclick="info($f().getState());">get state</button>

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

This Java code is part of an XQuery adapter for the JEdit text editor. It provides a way to interact with XQuery queries, including evaluating expressions, handling performance output, and accessing JEdit properties. The code uses JEdit’s built-in functionality without importing it directly into the adapter, allowing adapters to be written independently.

402 ErrorSource.registerErrorSource(errorSource);

403 errorSource.addError(new DefaultErrorSource.DefaultError(errorSource, ErrorSource.ERROR, getXQueryPath(), ae.getLine(),

404 ae.getStart(), ae.getEnd() ,ae.getMessage()));

405 //ae.printStackTrace();

406 } catch (AdapterException ae) {

441 */

442 private void saveInputSettings() {

443 jEdit.setProperty("xquery.selectXmlInput.last-source", inputPanel.browsePanel.getSourceFieldText());

444 jEdit.setProperty("xquery.selectBaseUriInput.last-source", inputPanel.uriSelectionPanel.getSourceFieldText());

445 jEdit.setProperty("xquery.selectXQueryInput.last-source", queryPanel.browsePanel.getSourceFieldText());

446 }

447

496 {

497 String uri = "";

498 uri = inputPanel.uriSelectionPanel.getSourceFieldText();

499 if (uri.trim().equals(jEdit.getProperty("xquery.selectBaseUriInput.prompt").trim())) {

500 return "";

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

This Java class, SessionChanged, represents an edit bus message that notifies of a session change. It extends another class, SessionMessage, and takes four parameters in its constructor: the source component, old and new sessions, and the current session. The class provides a method to retrieve the current session.

37

38

39 public final Session getSession()

40 {

41 return session;

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

This Java code defines a TemplateDockable class that extends JPanel. It creates a dockable template tree component with features like mouse click actions, keyboard shortcuts, and edit functionality. The component interacts with the jEdit text editor and provides options for editing templates, setting accelerators, and reloading templates.

103 {

104 TemplatesPlugin plugin = (TemplatesPlugin) jEdit.getPlugin("templates.TemplatesPlugin");

105 plugin.processTemplate(templates.getSelectedTemplate(), view, view.getTextArea());

106 view.getEditPane().getTextArea().requestFocus();

107 }

166 if ((evt.getModifiers() & MouseEvent.BUTTON1_MASK) != 0 && evt.getClickCount() == 1) {

167 TreePath path = templates.getPathForLocation(evt.getX(), evt.getY());

168 if (templates.isLastPathComponentATemplate(path) && path.equals(templates.getSelectionPath())) {

169 processSelectedTemplate();

170 }

184 } else if (EDIT.equals(evt.getActionCommand())) {

185 jEdit.openFile(view, MiscUtilities.concatPath(TemplatesPlugin.getTemplateDir(),

186 templates.getSelectedTemplate()));

187 } else if (SET_ACCELERATOR.equals(evt.getActionCommand())) {

188 String mode =

Cut_Lines.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 42 lines

11

12 cutLines(){

13 selections = textArea.getSelectedLines();

14

15 if(selections.length == 0){

seeds.txt (http://softkeyboard.googlecode.com/svn/) Unknown · 94 lines

42 com.menny.android.anysoftkeyboard.dictionary.BinaryDictionary: void closeNative(int)

43 com.menny.android.anysoftkeyboard.dictionary.BinaryDictionary: boolean isValidWordNative(int,char[],int)

44 com.menny.android.anysoftkeyboard.dictionary.BinaryDictionary: int getSuggestionsNative(int,int[],int,char[],int[],int,int,int,int)

45 com.menny.android.anysoftkeyboard.AnyKeyboardViewDonut

46 com.menny.android.anysoftkeyboard.AnyKeyboardViewDonut: AnyKeyboardViewDonut(android.content.Context,android.util.AttributeSet)

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.

557 if (options.getShowLineNum()) {

558 sb.append(tn.getStartLocation().line).append(": "); //.append(tn.getStartLocation().column).append("::").append( tn.getEndLocation().line ).append( ": " ).append(tn.getEndLocation().column);

559 }

560

586 // which seems like an odd choice of words to me. I was expecting icons,

587 // but I think it means more like "show keywords beside icons"

588 if (options.getShowIconKeywords()) {

589 switch (tn.getOrdinal()) {

590 case TigerNode.CLASS:

666 if (options.getShowArguments()) {

667 if (tn.getOrdinal() == TigerNode.CONSTRUCTOR) {

668 sb.append('(').append(((ConstructorNode) tn).getFormalParams(options.getShowArgumentNames(), options.getTypeIsSuffixed(), options.getShowMiscMod(), options.getShowTypeArgs())).append(')');

669 }

670 else if (tn.getOrdinal() == TigerNode.METHOD || tn.getOrdinal() == TigerNode.BNF_PRODUCTION) {

671 sb.append('(').append(((MethodNode) tn).getFormalParams(options.getShowArgumentNames(), options.getTypeIsSuffixed(), options.getShowMiscMod(), options.getShowTypeArgs())).append(')');

672 }

673 }

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

This Java code is part of a file system utility, specifically handling environment variable expansion and compression. It maps certain directory prefixes to their corresponding environment variables, compressing paths by replacing them with these variables. The VarCompressor class uses a reverse mapping to quickly replace paths with their prefixed versions, allowing for efficient expansion in the future.

720 encoding = System.getProperty("file.encoding");

721 else

722 encoding = buffer.getStringProperty(JEditBuffer.ENCODING);

723 boolean gzipped = false;

724

978 * <li><i>java.home</i>/lib/. In this case, tools.jar is added to

979 * jEdit's list of known jars using jEdit.addPluginJAR(),

980 * so that it gets loaded through JARClassLoader.

981 * </ol><p>

982 *

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

This Java code defines a GUI option pane for syntax highlighting settings, allowing users to customize font colors and styles for different programming languages. It uses a table with two columns to display options and their corresponding values, which are stored in a configuration file. The user can select new options and save them to the configuration file.

124 SyntaxHiliteOptionPane.this);

125 if (dialog != null)

126 style = new StyleEditor(dialog, current, token).getStyle();

127 else

128 {

129 View view = GUIUtilities.getView(SyntaxHiliteOptionPane.this);

130 style = new StyleEditor(view, current, token).getStyle();

131 }

132 if(style != null)

223 .get(i);

224 jEdit.setProperty(ch.property,

225 GUIUtilities.getStyleString(ch.style));

226 }

227 } //}}}

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

This Java class, DefaultInputHandler, is a default implementation of an input handler for a text editor. It maps keystrokes to actions and inserts key typed events into the text area. It handles various keyboard inputs, including modifier keys, and invokes actions based on user input. The class also manages key bindings and prefix keys, providing a basic framework for handling user input in a text editing application.

94 public void setCurrentBindings(Hashtable bindings)

95 {

96 view.getStatus().setMessage((String)bindings.get(PREFIX_STR));

97 currentBindings = bindings;

98 } //}}}

140 {

141 readNextChar = null;

142 view.getStatus().setMessage(null);

143 }

144 }

216 } //}}}

217

218 //{{{ getSymbolicModifierName() method

219 /**

220 * Returns a the symbolic modifier name for the specified Java modifier

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

This Java code defines a text area component with various features, including folding, popup menus, and caret management. It handles user interactions such as right-clicking, scrolling, and keyboard input to provide a customizable editing experience. The code also integrates with other plugins and services, allowing for advanced functionality like syntax highlighting and code completion.

395 return caret;

396

397 return getSelection(0).getStart();

398 } //}}}

399

446 public final int getSelectionEnd()

447 {

448 return getSelectionCount() == 1 ? getSelection(0).getEnd() : caret;

449

450 } //}}}

485 public final void setSelectionEnd(int selectionEnd)

486 {

487 int selectionStart = getSelectionCount() == 1 ? getSelection(0).getStart() : caret;

488 setSelection(new Selection.Range(selectionStart, selectionEnd));

489 moveCaretPosition(selectionEnd,true);

CMakeLists.txt (git://github.com/hpcc-systems/HPCC-Platform.git) CMake · 53 lines ✨ Summary

This CMake code defines a build configuration for an executable named updtdalienv. It specifies the source files, includes necessary directories and libraries, and sets up the build process to create an executable from the specified sources. The resulting executable is installed in a specific directory with its runtime destination set accordingly.

44

45 HPCC_ADD_EXECUTABLE ( updtdalienv ${SRCS} )

46 install ( TARGETS updtdalienv RUNTIME DESTINATION ${EXEC_DIR} )

47 target_link_libraries ( updtdalienv

48 jlib

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

This Java class, GeneralOptions, represents general options for a JBrowse application. It stores and manages various settings, such as displaying the status bar, automatic parsing, sorting, filter options, display options, and custom style settings. The class provides methods to load and save these options from/to a PropertyAccessor object.

158 // General Options

159 //----------------

160 props.setBooleanProperty("sidekick.java.showStatusBar", getShowStatusBar());

161 props.setBooleanProperty("sidekick.java.automaticParse", getAutomaticParse());

162 props.setBooleanProperty("sidekick.java.sort", getSort());

166 //---------------

167 props.setBooleanProperty("sidekick.java.showAttr",

168 filterOpt.getShowFields());

169 props.setBooleanProperty("sidekick.java.showPrimAttr",

170 filterOpt.getShowPrimitives());

171 props.setBooleanProperty("sidekick.java.showVariables",

172 filterOpt.getShowVariables());

173 props.setBooleanProperty("sidekick.java.showInitializers",

174 filterOpt.getShowInitializers());

plugin-implement.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1130 lines

701 if(this.filename == null || this.filename.length() == 0)

702 {

703 this.filename = new String(jEdit.getSettingsDirectory()

704 + File.separator + "qn.txt");

705 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX

967 + "font", _font.getFamily());

968 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX

969 + "fontsize", String.valueOf(_font.getSize()));

970 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX

971 + "fontstyle", String.valueOf(_font.getStyle()));

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

This Java class handles the deletion of items from a Subversion (SVN) repository. When an item is selected and the “Delete” action is performed, it extracts the paths to the selected items, creates a DeleteData object with these paths, and then calls the DeleteAction to perform the actual deletion.

40

41 public void actionPerformed( ActionEvent ae ) {

42 TreePath[] tree_paths = tree.getSelectionPaths();

43 if ( tree_paths.length == 0 ) {

44 return ;

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

This Java class is a layout manager for components in a graphical user interface (GUI). It determines how to arrange and size components within a container, such as a panel or frame. The class takes several parameters, including horizontal and vertical gaps, border distances, and a comptable flag, to customize its behavior.

174

175 /**

176 * An enum to tell the {@code getSize()} method which size is requested.

177 *

178 * @see #getSize()

351 Set<ExtendedGridLayoutConstraints> rowspans = new HashSet<ExtendedGridLayoutConstraints>();

352 Dimension gridSize = buildGrid(parent,gridRows,colspans,rowspans);

353 return getSize(parent,LayoutSize.MINIMUM,false,gridSize,gridRows,colspans,rowspans,new int[0][0]);

354 }

355 }

372 Set<ExtendedGridLayoutConstraints> rowspans = new HashSet<ExtendedGridLayoutConstraints>();

373 Dimension gridSize = buildGrid(parent,gridRows,colspans,rowspans);

374 return getSize(parent,LayoutSize.PREFERRED,false,gridSize,gridRows,colspans,rowspans,new int[0][0]);

375 }

376 }

workspaceEditor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 125 lines

41 this.returnVal = chooser.showOpenDialog( bsh.system.desktop.pane );

42 if (returnVal == JFileChooser.APPROVE_OPTION) {

43 this.file = chooser.getSelectedFile();

44 this.reader=new FileReader( file );

45 this.ca=new char [file.length()];

55 this.returnVal = chooser.showSaveDialog( bsh.system.desktop.pane );

56 if (returnVal == JFileChooser.APPROVE_OPTION) {

57 this.file = chooser.getSelectedFile();

58 this.writer=new FileWriter( file );

59 writer.write( textarea.getText().toCharArray() );

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

This Java code is part of a Tar ( Tape Archive) file parser. It defines classes and methods to parse, create, and manipulate TarHeader information, which represents metadata about files in a Tar archive. The code handles various aspects of Tar file structure, including file names, permissions, ownership, timestamps, and checksums.

367 */

368 public long

369 getSize()

370 {

371 return this.header.size;

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

This Java class, ShortcutPrefixActiveEvent, is an event class that notifies listeners when a shortcut prefix becomes active or inactive in a text editor. It extends ChangeEvent and provides methods to add and remove listener objects, as well as fire the event with the current state of the shortcut prefix.

121 //{{{ getBindings()

122 /**

123 * Gets the bindings attribute of the ShortcutPrefixActiveEvent object

124 *

125 *@return The bindings value

132 //{{{ getActive()

133 /**

134 * Gets the active attribute of the ShortcutPrefixActiveEvent object

135 *

136 *@return The active value

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

This Java code is part of a text replacement engine, likely used for editing and formatting text. It provides methods to replace occurrences of a search string with a replacement string, using various replacement strategies such as regular expressions, literal strings, and BeanShell scripting. The code also handles cases like case sensitivity, line breaks, and column offsets.

85 } //}}}

86

87 //{{{ getSearchString() method

88 /**

89 * Returns the current search string.

90 */

91 public static String getSearchString()

92 {

93 return search;

274 } //}}}

275

276 //{{{ getSearchMatcher() method

277 /**

278 * Returns the current search string matcher.

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

This Java code defines a custom JListCellRenderer class, CBListCellRenderer, which displays information about buffers in a file system view. It renders the buffer name with its assigned color and path, truncated to fit within the cell width, with an ellipsis if necessary. The renderer also indicates whether the buffer is saved or has unsaved changes, and highlights selected buffers in bold font.

85 Font f=UIManager.getFont("Tree.font");

86 if(selected) f=f.deriveFont(Font.BOLD);

87 Font fi=f.deriveFont((selected)?Font.BOLD|Font.ITALIC:Font.ITALIC,f.getSize()-1);

88 FontRenderContext frc=new FontRenderContext(null,true,false);

89

91 int baseline=2+(int)Math.ceil(lm.getAscent());

92

93 Rectangle2D r2d=f.getStringBounds(" ",frc);

94 int spacesWidth=(int)Math.ceil(r2d.getWidth());

95 r2d=fi.getStringBounds("...",frc);

103 if(idx>0) path=path.substring(0,idx);

104

105 r2d=f.getStringBounds(name,frc);

106 int nl=(int)Math.ceil(r2d.getWidth());

107 r2d=fi.getStringBounds(path,frc);

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

This is a Java interface definition for a PHPItem, which represents an item in a PHP project. It defines constants and methods to describe the type, name, location, and other properties of the item. The interface provides a way to access and manipulate this information, likely used in a parser or editor for PHP projects.

51 String getNameLowerCase();

52

53 int getSourceStart();

54

55 int getBeginLine();

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

This Java code defines an interface StructureMatcher for matching parts of a source file’s structure, such as brackets. It provides default implementations for bracket matching and highlights the matched structure in a text area. The interface also includes methods for selecting from the caret to the matching structure element.

142 return;

143

144 Match match = textArea.getStructureMatch();

145 if(match != null)

146 {

154 int x1, x2;

155

156 int matchStartLine = textArea.getScreenLineOfOffset(

157 match.start);

158 int matchEndLine = textArea.getScreenLineOfOffset(

165 else

166 {

167 x1 = textArea.getScreenLineStartOffset(

168 screenLine);

169 }

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

This Java class represents a text input buffer with line and column numbers, tokenization, and string manipulation capabilities. It provides methods for initializing the buffer, reading and writing strings, adjusting line and column numbers, and handling tokenization. The class also includes features like image extraction and suffix retrieval. It appears to be designed for use in a text editor or similar application.

366 }

367

368 public char[] GetSuffix(int len)

369 {

370 char[] ret = new char[len];

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

This Java code creates a graphical user interface (GUI) for exporting data from an application to a file. The GUI allows users to select files, choose export options such as recursive and revision selection, and specify end-of-line style. Once options are set, the user can click “Export” to save the data to a file.

69 throw new IllegalArgumentException( "data cannot be null" );

70 }

71 if ( data.getSourceFiles() == null && data.getSourceURLs() == null ) {

72 throw new IllegalArgumentException( "no source file(s) to copy" );

73 }

83 // source for export

84 List paths;

85 if ( data.getSourceFiles() != null ) {

86 paths = data.getSourceFiles();

87 }

88 else {

89 paths = data.getSourceURLs();

90 }

91

125

126 // revision selection panels

127 revision_panel = new RevisionSelectionPanel( "Export from this revision:", SwingConstants.VERTICAL, data.getSourceURLs() == null );

128 peg_revision_panel = new RevisionSelectionPanel( "Using this peg revision:", SwingConstants.VERTICAL, false, false, true, false, false );

129

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

This Java code creates a graphical user interface (GUI) panel to display the results of a dry-run merge operation in a Subversion version control system. It shows the files that have conflicts, additions, deletions, merges, skips, and updates, with collapsible nodes for each category. The GUI is designed to be used within the JEdit text editor.

92 }

93

94 list = results.getSkipped();

95 if ( list != null ) {

96 root.add( createNode( jEdit.getProperty("ips.Skipped_files>", "Skipped files:"), list ) );

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

This Java code is a printer utility for the JEdit text editor. It allows users to print documents with customizable settings, such as page layout, orientation, and color mode. The code reads and writes printer settings from a file, enabling users to save their preferred printing options. It also provides methods for printing individual pages or the entire document.

43 format = new HashPrintRequestAttributeSet();

44

45 String settings = jEdit.getSettingsDirectory();

46 if(settings != null)

47 {

161 private static void savePrintSpec()

162 {

163 String settings = jEdit.getSettingsDirectory();

164 if(settings == null)

165 return;

SimpleTutorialEuml2.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

52 BOOST_MSM_EUML_ACTION(good_disk_format)

53 {

54 template <class FSM,class EVT,class SourceState,class TargetState>

55 bool operator()(EVT const& evt,FSM&,SourceState& ,TargetState& )

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

This Java class, LineElement, represents a single line of text in a document. It provides methods to access information about the line, such as its start and end offsets, and is used for backwards compatibility with an older version of the jEdit 3.2.2-style document model. The class implements the Element interface and has private members to store the buffer and line number associated with it.

69 } //}}}

70

71 //{{{ getStartOffset() method

72 public int getStartOffset()

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

This Java class, EnhancedButton, extends RolloverButton to create a custom toolbar button with enhanced functionality. It sets up an action listener and mouse handler to display a message when the button is hovered over, and resets the message when the mouse is released. The button’s enabled state is also determined by its associated action context.

73 if(msgSet)

74 {

75 GUIUtilities.getView((Component)evt.getSource())

76 .getStatus().setMessage(null);

84 if(msg != null)

85 {

86 GUIUtilities.getView((Component)evt.getSource())

87 .getStatus().setMessage(msg);

94 if(msgSet)

95 {

96 GUIUtilities.getView((Component)evt.getSource())

97 .getStatus().setMessage(null);

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

This Java code is a parser for XML documents, specifically handling the parsing of XML declarations, processing instructions, comments, and text content. It reads an input XML string, tokenizes it into individual elements, and then writes the parsed XML to an output writer. The parser also handles various edge cases such as closing tags, doc types, and processing instructions.

241

242 private int writeElement( int start ) throws IOException, SAXException {

243 int end = getStartTagEnd( start );

244 writeRemaining( start, end );

245

281 * Ignores '>' characters that are inside of attribute values.

282 */

283 private int getStartTagEnd( int start ) {

284 int end = -1;

285 int index = start;

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

This Java code is a part of a file manager application, specifically a dialog box for selecting files. It handles user input, updates the file name field, and checks if the selected file exists before proceeding with further actions. The dialog box also displays a progress bar while waiting for the file system to respond.

128 public void ok()

129 {

130 VFSFile[] files = browser.getSelectedFiles();

131 filename = filenameField.getText();

132 boolean choosingDir = (browser.getMode() ==

223 } //}}}

224

225 //{{{ getSelectedFiles() method

226 public String[] getSelectedFiles()

231 if(browser.getMode() == VFSBrowser.CHOOSE_DIRECTORY_DIALOG)

232 {

233 if(browser.getSelectedFiles().length > 0)

234 {

235 return getSelectedFiles(VFSFile.DIRECTORY,

246 }

247 else

248 return getSelectedFiles(VFSFile.FILE,VFSFile.FILE);

249 } //}}}

250

CodeGeneratorCPP.pm (https://bitbucket.org/ultra_iter/qt-vtl.git) Perl · 961 lines

204

205 # FIXME: We don't generate bindings for SVG related interfaces yet

206 return 1 if $typeInfo->signature->name =~ /getSVGDocument/;

207

208 return 1 if $typeInfo->signature->name =~ /Constructor/;

219

220 # FIXME: We don't generate bindings for SVG related interfaces yet

221 return 1 if $typeInfo->signature->name =~ /getSVGDocument/;

222

223 return 1 if $typeInfo->signature->name =~ /Constructor/;

api-objects.txt (https://bitbucket.org/genuine_/simplifire.idascope.git) Plain Text · 322 lines

42 IDAscope.idascope.data IDAscope.idascope.data-module.html

43 IDAscope.idascope.data.__package__ IDAscope.idascope.data-module.html#__package__

44 IDAscope.idascope.widgets IDAscope.idascope.widgets-module.html

45 IDAscope.idascope.widgets.__package__ IDAscope.idascope.widgets-module.html#__package__

46 IDAscope.idascope.widgets.BoundsEditor IDAscope.idascope.widgets.BoundsEditor-module.html

47 IDAscope.idascope.widgets.CryptoIdentificationWidget IDAscope.idascope.widgets.CryptoIdentificationWidget-module.html

48 IDAscope.idascope.widgets.FunctionInspectionWidget IDAscope.idascope.widgets.FunctionInspectionWidget-module.html

49 IDAscope.idascope.widgets.NumberQTableWidgetItem IDAscope.idascope.widgets.NumberQTableWidgetItem-module.html

50 IDAscope.idascope.widgets.RangeSlider IDAscope.idascope.widgets.RangeSlider-module.html

51 IDAscope.idascope.widgets.WinApiWidget IDAscope.idascope.widgets.WinApiWidget-module.html

69 IDAscope.IDAscope.IDAscopeForm.setTabFocus IDAscope.IDAscope.IDAscopeForm-class.html#setTabFocus

70 IDAscope.IDAscope.IDAscopeForm.setup_shared_modules IDAscope.IDAscope.IDAscopeForm-class.html#setup_shared_modules

71 IDAscope.IDAscope.IDAscopeForm.setup_widgets IDAscope.IDAscope.IDAscopeForm-class.html#setup_widgets

72 IDAscope.IDAscope.IDAscopeForm.OnCreate IDAscope.IDAscope.IDAscopeForm-class.html#OnCreate

73 IDAscope.IDAscope.IDAscopeForm.__init__ IDAscope.IDAscope.IDAscopeForm-class.html#__init__

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

This Java class, RESearchMatcher, implements a regular expression string matcher for the jEdit text editor. It allows users to search and replace text in a buffer using Perl5 syntax with character classes enabled. The class provides methods for searching, replacing, and substituting text, as well as handling special cases such as matching from the start or end of the buffer.

109 return null;

110

111 int _start = match.getStartIndex();

112 int _end = match.getEndIndex();

113

130 else

131 {

132 _start = match.getStartIndex() + 1;

133 _end = match.getEndIndex() + 1;

134 }

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

This Java class appears to be a part of the Java Virtual Machine (JVM) implementation, specifically for handling primitive types and method invocation. It provides methods for computing the size of values of different types, adapting JVM instruction opcodes to these types, and determining the opcode for specific instructions like IALOAD or IREM.

35

36 /**

37 * The sort of the <tt>void</tt> type. See {@link #getSort getSort}.

38 */

39

41

42 /**

43 * The sort of the <tt>boolean</tt> type. See {@link #getSort getSort}.

44 */

45

47

48 /**

49 * The sort of the <tt>char</tt> type. See {@link #getSort getSort}.

50 */

51

Endpoint.java (https://bitbucket.org/nbargnesi/idea.git) Java · 420 lines

314 }

315

316 public DataSource getSystemVersionJson()

317 throws IOException, MalformedURLException

318 {

Kconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 954 lines

557 most cases you will need to specify the root device here.

558

559 config EXTRA_TARGETS

560 string "Additional default image types"

561 help

562 List additional targets to be built by the bootwrapper here (separated

563 by spaces). This is useful for targets that depend of device tree

564 files in the .dts directory.

565

566 Targets in this list will be build as part of the default build

567 target, or when the user does a 'make zImage' or a

568 'make zImage.initrd'.

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

This is a table of values for the visitInsn method, which appears to be part of the Java Virtual Machine (JVM) specification. It maps integer codes to their corresponding bytecode instructions, providing a reference for developers working with JVMs. The codes represent various operations, such as arithmetic, comparison, and control flow instructions.

247 int ARETURN = 176; // -

248 int RETURN = 177; // -

249 int GETSTATIC = 178; // visitFieldInsn

250 int PUTSTATIC = 179; // -

251 int GETFIELD = 180; // -

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

28 {

29 // if anything is selected, use standard

30 if(textArea.getSelection().length != 0)

31 {

32 textArea.delete();

SimplifiableAnnotation.html (https://bitbucket.org/nbargnesi/idea.git) HTML · 10 lines

6 <!-- tooltip end -->

7 <p>

8 <small>New in 10, Powered by InspectionGadgets </small>

9 </body>

10 </html>

README.txt (http://angel-engine.googlecode.com/svn/trunk/) Plain Text · 52 lines

29 and include the FTGL headers located in the src directory. Your project

30 will also need Freetype and OpenGL. For your convinience a pkg-config

31 metadata file has been included (ftgl.pc) and gets installed in

32 <libdir>/pkgconfig, where pkg-config should be able to find it. In

33 order to take advantage of this, just include something like this in

MainViewModel.cs (https://hg01.codeplex.com/mvvmlight) C# · 75 lines ✨ Summary

This C# code defines a MainViewModel class that exposes a single property, WelcomeTitle, which is bound to data retrieved from an IDataService. The view model initializes with an instance of IDataService and uses it to fetch data when the view is loaded, updating the WelcomeTitle property accordingly.

10 /// </para>

11 /// <para>

12 /// See http://www.galasoft.ch/mvvm/getstarted

13 /// </para>

14 /// </summary>

25

26 /// <summary>

27 /// Gets the WelcomeTitle property.

28 /// Changes to that property's value raise the PropertyChanged event.

29 /// </summary>

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

This Java code defines a plugin options pane for JCompiler, a compiler plugin for jEdit, a text editor. It displays various settings and allows users to adjust them, such as debugging options, classpath settings, and output directory selection. The changes are saved when the user clicks “Save” or selects a new directory using the “Pick Directory” button.

157

158 public void actionPerformed(ActionEvent e) {

159 if (e.getSource() == pickDirectory) {

160 File file = chooseDirectory();

161 setDirectoryText(file, outputDirectory);

162 }

163 else if (e.getSource() == pickBasePathButton) {

164 File file = chooseDirectory();

165 setDirectoryText(file, basePath);

180

181 if (retVal == JFileChooser.APPROVE_OPTION)

182 return chooser.getSelectedFile();

183 else

184 return null;

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

This Java code defines a panel for displaying and editing BibTeX entries within a LaTeX editor. It creates a table to display the entries, allows users to select multiple entries and insert them into the current document with formatting options. The panel is designed to be used in conjunction with other tools and features of the LaTeX editor.

145 }

146

147 int[] sels = table.getSelectedRows();

148 StringBuffer sb = new StringBuffer();

149

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

This Java code creates a graphical user interface (GUI) component that displays information about a file or directory from a version control system, such as Git. It fetches and formats various metadata, including timestamps, checksums, and conflict information, into a table for easy viewing. The GUI is designed to be compact and readable, with features like automatic row packing and mouse event handling.

108 info_table_model.addRow( new String[] {jEdit.getProperty("ips.Node_Kind", "Node Kind"), jEdit.getProperty("ips.unknown", "unknown")} );

109 }

110 if ( info.getSchedule() == null && !info.isRemote() ) {

111 info_table_model.addRow( new String[] {jEdit.getProperty("ips.Schedule", "Schedule"), jEdit.getProperty("ips.normal", "normal")} );

112 }

113 else if ( !info.isRemote() ) {

114 info_table_model.addRow( new String[] {jEdit.getProperty("ips.Schedule", "Schedule"), info.getSchedule() } );

115 }

116 if ( info.getAuthor() != null ) {

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

This Java class, IntegerArray, is a simple dynamic array that stores integers and automatically grows when full. It provides methods to add elements, retrieve an element by index, get the current size, set the size, clear the array, and access the underlying array. The array’s initial size can be specified during construction or defaults to 2000 if not provided.

59 } //}}}

60

61 //{{{ getSize() method

62 public final int getSize()

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

This Java code is part of a BeanShell interpreter, which allows users to execute dynamic Java code. It provides methods for parsing and executing compound names (e.g., “this.myMethod()”), invoking local methods, and loading commands from namespaces. The code also handles errors, exceptions, and command invocation. Its purpose is to provide a flexible and dynamic way to interact with the BeanShell interpreter.

401 try {

402 if ( Interpreter.DEBUG )

403 Interpreter.debug("Name call to getStaticField, class: "

404 +clas+", field:"+field);

405 obj = Reflect.getStaticField(clas, field);

519 //throw new UtilEvalError("Redundant to call .this on This type");

520

521 // Allow getSuper() to through BlockNameSpace to the method's super

522 This ths = thisNameSpace.getSuper( interpreter );

525

526 // XXXX re-evaluate this

527 // can getSuper work by itself now?

528 // If we're a class instance and the parent is also a class instance

529 // then super means our parent.

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

This Java code defines a custom panel for selecting input sources in an XQuery editor. It includes a text field to display the current source, a browse button to select a new source, and a label with a customizable property. The panel’s behavior is controlled by its actionPerformed method, which is declared abstract and must be implemented by subclasses.

93 };

94

95 public String getSourceFieldText() {

96 return sourceField.getText();

97 };

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

This Java code provides various string manipulation and formatting functions, including:

  • String case detection (mixed, lower case, upper case, title case)
  • String conversion to title case
  • Line wrapping and formatting for text with a specified maximum line length
  • Leading whitespace trimming and calculation
  • Tokenization of strings into words

These functions can be used in various applications, such as text editing or formatting.

595 } //}}}

596

597 //{{{ getStringCase() method

598 public static final int MIXED = 0;

599 public static final int LOWER_CASE = 1;

607 * @since jEdit 4.0pre1

608 */

609 public static int getStringCase(String str)

610 {

611 if(str.length() == 0)

Duplicate_Lines_Above.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 70 lines

37 }

38

39 selections = textArea.getSelectedLines();

40 if(selections.length == 0){

41 selections = new int [] {textArea.getCaretLine()};

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

This Java code defines a GUI dialog for selecting a line range in a text editor. It allows users to input two line numbers and, when “OK” is clicked, selects the specified lines in the current document. If invalid input is provided, it beeps and cancels the operation. The dialog also includes a “Cancel” button to exit without making any changes.

125 public void actionPerformed(ActionEvent evt)

126 {

127 Object source = evt.getSource();

128 if(source == ok)

129 ok();

ThreadSpecific.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 310 lines

148 inline T* ThreadSpecific<T>::get()

149 {

150 Data* data = static_cast<Data*>(pthread_getspecific(m_key));

151 return data ? data->value : 0;

152 }

quickfix.txt (https://bitbucket.org/ultra_iter/vim-qt.git) Plain Text · 1456 lines

49 one window. The location list is independent of the quickfix list.

50

51 When a window with a location list is split, the new window gets a copy of the

52 location list. When there are no references to a location list, the location

53 list is destroyed.

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

This Java class, PHPHyperlink, implements a hyperlink functionality for a text editor. It represents a hyperlink to a PHP file and provides methods to get its start and end offsets, lines, and tooltip. When clicked, it opens the corresponding PHP file in the text editor and moves the caret position to the line where the hyperlink is located.

54

55 @Override

56 public int getStartOffset()

57 {

58 return startOffset;

66

67 @Override

68 public int getStartLine()

69 {

70 return line;

98 Log.log(Log.MESSAGE, this, "Moving to line " + itemLine + ' ' + caretPosition);

99 /*

100 Selection[] s = getSelection();

101 if (s == null)

102 return;

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

This Java class represents a marker in a buffer, which is a textual bookmark that can be used to navigate within a document. It has attributes such as a buffer, line number, and optional shortcut character, allowing users to quickly jump to specific locations in the text using a keyboard shortcut. The class provides methods for setting and retrieving these attributes, as well as managing cached positions.

41 public class Marker

42 {

43 //{{{ getShortcut() method

44 /**

45 * Returns the marker's shortcut character.

46 * @since jEdit 3.2pre1

47 */

48 public char getShortcut()

49 {

50 return shortcut;

Copy_Lines.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 37 lines

10

11 copyLines(){

12 selections = textArea.getSelectedLines();

13

14 if(selections.length == 0){

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

This Java code defines a custom exception class ParseException that extends the built-in Exception class. It provides additional functionality for parsing errors, including getting the error text, line number, and source file name. The class also includes methods to add escaped characters to strings and convert raw characters to their escaped versions.

149 * "currentToken" and "expectedTokenSequences" to generate a parse

150 * error message and returns it. If this object has been created

151 * due to a parse error, and you do not catch it (it gets thrown

152 * from the parser), then this method is called during the printing

153 * of the final stack trace, and hence the correct error message

154 * gets displayed.

155 */

156 public String getMessage() {

Write_HyperSearch_Results.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 216 lines

129 else

130 sb.append("search term: ");

131 sb.append(SearchAndReplace.getSearchString());

132 sb.append(" (case ");

133 if(SearchAndReplace.getIgnoreCase())

159 {

160 result = new StringBuffer();

161 fileSet = SearchAndReplace.getSearchFileSet();

162 if(fileSet instanceof CurrentBufferSet)

163 result.append("current buffer");

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

This Java code defines a GUI component, TagStack, which displays a list of stack positions for a text editor. It allows users to navigate through these positions by clicking on them, and provides options to remove, pop, or clear the current position. The component also includes a popup menu with actions to perform on the selected position.

83 int index = list.locationToIndex(new Point(evt.getX(),

84 evt.getY()));

85 if(index > -1 && index != list.getSelectedIndex())

86 list.setSelectedIndex(index);

87

95 {

96 StackPosition pos = (StackPosition)

97 list.getSelectedValue();

98 if(pos != null)

99 pos.goTo(view);

116 }

117

118 goTo.setEnabled(list.getSelectedValue() != null);

119 remove.setEnabled(listModel.size() > 0);

120 pop.setEnabled(listModel.size() > 0);

ContentPane.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 236 lines ✨ Summary

This JavaScript code defines a custom widget called dojox.layout.ContentPane that extends the built-in dijit.layout.ContentPane. It provides additional features such as support for inline scripts, external script references, and relative path adjustments. The widget also includes error handling and deferred loading capabilities.

44 //

45 // NOTE that dojo.require in script in the fetched file isn't recommended

46 // Many widgets need to be required at page load to work properly

47

48 // adjustPaths: Boolean

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

This Java code creates a dialog window for viewing registers in an integrated development environment (IDE). It displays a list of register names and their corresponding values, with each value represented as a single character. The user can select a register name from the list to view its value in a text area. The dialog includes buttons for closing the window and canceling the operation.

65 }

66

67 if(registerModel.getSize() == 0)

68 registerModel.addElement(jEdit.getProperty("view-registers.none"));

69

157 public void actionPerformed(ActionEvent evt)

158 {

159 if(evt.getSource() == close)

160 cancel();

161 }

166 public void valueChanged(ListSelectionEvent evt)

167 {

168 Object value = registerList.getSelectedValue();

169 if(!(value instanceof Character))

170 return;

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

204 widget->resize(1, 1);

205

206 // We don't need this internal widget to appear in QApplication::topLevelWidgets()

207 if (QWidgetPrivate::allWidgets)

208 QWidgetPrivate::allWidgets->remove(widget);

209 init = false;

210 }

431 QGLContext *ctx = NULL;

432

433 // For translucent top-level widgets we need alpha in the format.

434 if (widget->testAttribute(Qt::WA_TranslucentBackground)) {

435 QGLFormat modFormat(surfaceFormat);

605 if (window() != widget) {

606 // For performance reasons we don't support

607 // flushing native child widgets on Symbian.

608 // It breaks overlapping native child widget

609 // rendering in some cases but we prefer performance.

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

This Java code defines a custom dialog box for a text editor plugin, QuickNotepad. It allows users to customize settings such as file path, font, and display options. The dialog box includes fields for selecting a file path, choosing a font, and toggling the display of file paths. When the user saves their changes, the settings are stored in the plugin’s properties.

83 .getFamily());

84 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX + "fontsize", String

85 .valueOf(_font.getSize()));

86 jEdit.setProperty(QuickNotepadPlugin.OPTION_PREFIX + "fontstyle",

87 String.valueOf(_font.getStyle()));

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

This Java code is part of a text rendering engine, responsible for laying out and rendering text on a screen. It uses font substitution to find suitable fonts for characters that can’t be rendered by the default font. The code creates glyph vectors, which represent the visual representation of text, and calculates their widths based on the chosen font.

549 if (f != null)

550 {

551 f = f.deriveFont(dflt.getStyle(), dflt.getSize());

552

553 /*

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

This Java code is a part of a web browser implementation, specifically for navigating and displaying a table of contents (TOC). It handles user interactions such as clicking on links, pressing enter, and using back/forward navigation to navigate between URLs. The code uses various components like JTree, DefaultTreeCellRenderer, and HyperlinkListener to display the TOC and handle link clicks.

614 public void actionPerformed(ActionEvent evt)

615 {

616 Object source = evt.getSource();

617 if(source == back)

618 {

SbbAlias.java (http://mobicents.googlecode.com/svn/trunk/) Java · 110 lines ✨ Summary

This Java class represents an XML element called sbb-alias. It has two properties: id and value, which are used to store and retrieve data from an XML file. The class provides getter and setter methods for these properties, allowing users to access and modify the data. It is generated by JAXB (Java Architecture for XML Binding) Reference Implementation.

60

61 /**

62 * Gets the value of the id property.

63 *

64 * @return

84

85 /**

86 * Gets the value of the value property.

87 *

88 * @return

test_SexpVector.py (https://bitbucket.org/lgautier/rpy2/) Python · 639 lines ✨ Summary

This is a Python test suite for a library of R-like data structures, specifically SexpVector and its variants. It tests various aspects of these classes, including initialization, assignment, indexing, and slicing, to ensure they behave as expected. The tests cover different types of data, such as integers, strings, and complex numbers, and verify that the classes can handle various operations correctly.

409 ri.R_LEN_T_MAX+1)

410

411 def testGetSliceFloat(self):

412 vec = ri.FloatSexpVector([1.0,2.0,3.0])

413 vec = vec[0:2]

416 self.assertEqual(2.0, vec[1])

417

418 def testGetSliceInt(self):

419 vec = ri.IntSexpVector([1,2,3])

420 vec = vec[0:2]

423 self.assertEqual(2, vec[1])

424

425 def testGetSliceIntNegative(self):

426 vec = ri.IntSexpVector([1,2,3])

427 vec = vec[-2:-1]

JSParser.GUI-VS-2010.csproj (git://github.com/saidai-no/nemerle.git) MSBuild · 114 lines

1 <?xml version="1.0" encoding="utf-8"?>

2 <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

3 <PropertyGroup>

4 <ProjectGuid>{E1D04553-80B1-48C9-9256-B14BF4C2F2B0}</ProjectGuid>

75 <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>

76 </PropertyGroup>

77 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />

78 <ItemGroup>

79 <Reference Include="Nemerle">