100+ results for 'php list'
Not the results you expected?
ConstructorNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 164 lines
✨ Summary
This Java class represents a constructor node in an abstract syntax tree (AST). It extends TigerNode
and provides methods to access and manipulate its parameters, type parameters, and throws clause. The toString()
method returns a string representation of the constructor node, including its formal parameters and type parameters.
This Java class represents a constructor node in an abstract syntax tree (AST). It extends TigerNode
and provides methods to access and manipulate its parameters, type parameters, and throws clause. The toString()
method returns a string representation of the constructor node, including its formal parameters and type parameters.
8 * Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
35 public class ConstructorNode extends TigerNode implements Parameterizable {
36 String typeParams = null;
37 List formalParams = null;
39 public ConstructorNode() {}
41 public ConstructorNode( String name, int modifiers, String typeParams, List formalParams ) {
42 super( name, modifiers );
43 this.typeParams = typeParams;
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
1 <?php
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
18 /**
19 * List of comments
20 * @var array
21 */
70 $_POST['_per_page'] = 100;
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
74 // Make the request
AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines
1 <?php
2 /* This class is part of the XP framework
3 *
5 */
7 uses('unittest.TestCase', 'lang.types.String', 'lang.types.ArrayList');
9 /**
392 */
393 #[@test, @expect('unittest.AssertionFailedError')]
394 public function arrayListIsNotInstanceOfArray() {
395 $this->assertInstanceOf('array', new ArrayList(1, 2, 3));
587 /**
588 * Test assertArray() for a lang.types.ArrayList
589 *
590 * @deprecated
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
14 * @package Gedmo.Tree
15 * @link http://www.gediminasm.org
16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17 */
18 class NestedTreeRootTest extends BaseTestCaseORM
26 $evm = new EventManager;
27 $evm->addEventSubscriber(new TreeListener);
29 $this->getMockSqliteEntityManager($evm);
37 $took = microtime(true) - $start;
38 $minutes = intval($took / 60); $seconds = $took % 60;
39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;
40 };
41 $repo = $this->em->getRepository(self::CATEGORY);
PluginUpdate.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 124 lines
✨ Summary
This HTML code is a documentation page for a Java class, PluginUpdate
, generated by javadoc. It displays information about the class, including its usage, package tree, deprecated classes, and related links. The page includes navigation bars at the top and bottom, with links to other documentation pages and an index of all classes.
This HTML code is a documentation page for a Java class, PluginUpdate
, generated by javadoc. It displays information about the class, including its usage, package tree, deprecated classes, and related links. The page includes navigation bars at the top and bottom, with links to other documentation pages and an index of all classes.
34 <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
88 <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD>
89 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
90 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
91 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
92 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
DictionaryLoader.php (https://github.com/gmimano/newd.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
40 *
41 * It takes a string which is actually <segment_name>.tii index file data and
42 * returns two arrays - term and tremInfo lists.
43 *
44 * See Zend_Search_Lucene_Index_SegmintInfo class for details
59 if ($tiVersion != (int)0xFFFFFFFE /* pre-2.1 format */ &&
60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) {
61 require_once 'Zend/Search/Lucene/Exception.php';
62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');
63 }
65 // $indexTermCount = $tiiFile->readLong();
66 if (PHP_INT_SIZE > 4) {
67 $indexTermCount = ord($data[$pos]) << 56 |
68 ord($data[$pos+1]) << 48 |
Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines
143 {
144 // Validate and cleanup the tags
145 $itemList = $this->getItemList();
147 foreach ($tags as $tag) {
183 * Set the item list
184 *
185 * @param Zend_Tag_ItemList $itemList
186 * @return Zend_Tag_Cloud
187 */
188 public function setItemList(Zend_Tag_ItemList $itemList)
189 {
190 $this->_tags = $itemList;
202 {
203 if (null === $this->_tags) {
204 #require_once 'Zend/Tag/ItemList.php';
205 $this->setItemList(new Zend_Tag_ItemList());
Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines
1 <?php namespace Illuminate\Filesystem;
3 use ErrorException;
279 // To get the appropriate files, we'll simply glob the directory and filter
280 // out any "files" that are not truly files so we do not end up with any
281 // directories in our list, but only true files within the directory.
282 return array_filter($glob, function ($file) {
283 return filetype($file) == 'file';
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
1 <?php
2 /**
3 * File containing the eZISBN10To13Converter class.
47 "data_type_string='ezisbn' and version='0'";
49 $classAttributeList = $db->arrayQuery( $sql );
50 $status = false;
51 if ( count( $classAttributeList ) > 0 )
231 while ( true )
232 {
233 $contentObjectAttributeList = eZPersistentObject::fetchObjectList( eZContentObjectAttribute::definition(),
234 null,
235 $conditions,
251 $this->Cli->output( ' ' . $this->Cli->stylize( 'strong', $i * $limit ) );
252 }
253 $countList = count( $contentObjectAttributeList );
254 unset( $contentObjectList );
PageRepositoryTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 282 lines
content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
37 private function setheaders() {
38 /*$BccList = array('nakarinb@bluecube.com.sg','bobby.tan@bluecube.com.sg');*/
39 $this->headers = "To: " . $this->toMail . "\r\n";
40 $this->headers .= "From: " . $this->fromMail . "\r\n";
52 $this->headers .= "MIME-Version: 1.0\r\n";
53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
55 }
65 }
67 private function GetMailsFromList($mails) {
68 $line = "";
69 foreach ($mails as $mail) {
fengoffice.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 121 lines
1 <?php return array(
2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.',
3 'how to purchase' => 'Hvordan kjøpe',
46 'chelp add milestone reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',
47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',
48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>',
49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/>
50 I dette menyvalget kan du redigere din personlige informasjon.<br/>
51 På høyre side er det plassert en liste av handlinger. De viktigste handlingene er:<br/>
52 <b>Oppdater profilen:</b> Lar deg endre din informasjon.<br/>
53 <b>Endre passord:</b> Lar deg endre ditt passord<br/>',
58 <br/>
59 <b>Legg til milepæl:</b> Velg å legge til milepælen.<br/>
60 Definer mer informasjon i alternativ-listen. <br/>',
61 'chelp add new task' => 'Skriv inn informasjonen om oppgaven i dette vinduet.<br/>
62 <br/>
Cloud.php (https://github.com/komola/ZendFramework.git) PHP · 410 lines
143 {
144 // Validate and cleanup the tags
145 $itemList = $this->getItemList();
147 foreach ($tags as $tag) {
183 * Set the item list
184 *
185 * @param Zend_Tag_ItemList $itemList
186 * @return Zend_Tag_Cloud
187 */
188 public function setItemList(Zend_Tag_ItemList $itemList)
189 {
190 $this->_tags = $itemList;
202 {
203 if (null === $this->_tags) {
204 require_once 'Zend/Tag/ItemList.php';
205 $this->setItemList(new Zend_Tag_ItemList());
class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
61 *
62 * @param string $cluster The cluster ID
63 * @param array $types The list of relationships type to add
64 * @return bool|array True if the relationship was registered. An array
65 * containing the unregistered types otherwise.
275 /**
276 * Get the last active date for a specified list of user ids.
277 *
278 * @since 1.0.0
279 *
280 * @param array $user_ids The list of user IDs.
281 * @return array The list of last active date by user_id.
ConfigListener.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 383 lines
23 * Config listener
24 */
25 class ConfigListener extends AbstractListener implements
26 ConfigMergerInterface,
27 ListenerAggregateInterface
115 *
116 * @param ModuleEvent $e
117 * @return ConfigListener
118 */
119 public function onLoadModule(ModuleEvent $e)
168 /**
169 * Detach all previously attached listeners
170 *
171 * @param EventManagerInterface $events
174 public function detach(EventManagerInterface $events)
175 {
176 foreach ($this->listeners as $key => $listener) {
177 $events->detach($listener);
Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 lines
153 $em = $sm->get('doctrine.entitymanager.orm_default');
155 /** @var $listener UserMapperListenerAggregate */
156 $listener = $sm->get('User\EventManager\UserMapperListenerAggregate');
158 $baseMapper = new BaseMapper(new DoctrineAdapter($em, 'User\Entity\User'));
159 $baseMapper->setEntityPrototype(new User());
160 $baseMapper->getEventManager()->attachAggregate($listener);
162 return $baseMapper;
214 ),
215 'invokables' => array(
216 'User\EventManager\DispatchErrorListenerAggregate' => 'User\EventManager\DispatchErrorListenerAggregate'
217 ),
218 'aliases' => array(
256 );
258 /** @var $dispatchErrorListener ListenerAggregateInterface */
259 $dispatchErrorListener = $e->getApplication()->getServiceManager()
AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines
1 <?php
3 /*
21 use Symfony\Component\Security\Acl\Voter\AclVoter;
23 class AclVoterTest extends \PHPUnit_Framework_TestCase
24 {
25 /**
28 public function testSupportsAttribute($attribute, $supported)
29 {
30 list($voter, , $permissionMap, ,) = $this->getVoter(true, false);
32 $permissionMap
45 public function testSupportsAttributeNonString($attribute)
46 {
47 list($voter, , , , ,) = $this->getVoter(true, false);
49 $this->assertFalse($voter->supportsAttribute($attribute));
tip52.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 6 lines
irlmp.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 295 lines
✨ Summary
This is a C header file that defines an interface for IrDA (Infrared Data Association) protocol implementation. It provides functions and data structures for managing connections, sending and receiving data, and handling discovery requests. The code appears to be part of a larger system that uses IrDA for wireless communication.
This is a C header file that defines an interface for IrDA (Infrared Data Association) protocol implementation. It provides functions and data structures for managing connections, sending and receiving data, and handling discovery requests. The code appears to be part of a larger system that uses IrDA for wireless communication.
110 struct sk_buff *conn_skb; /* Store skb here while connecting */
112 struct timer_list watchdog_timer;
114 LSAP_STATE lsap_state; /* Connection state */
155 struct qos_info *qos; /* LAP QoS for this session */
156 struct timer_list idle_timer;
158 #ifdef CONFIG_IRDA_CACHE_LAST_LSAP
178 int last_lsap_sel;
180 struct timer_list discovery_timer;
182 hashbin_t *links; /* IrLAP connection table */
TemplateSettings.java (https://bitbucket.org/nbargnesi/idea.git) Java · 747 lines
64 private @NonNls static final String DELETED_TEMPLATES = "deleted_templates";
65 private final List<TemplateKey> myDeletedTemplates = new ArrayList<TemplateKey>();
67 public static final char SPACE_CHAR = ' ';
280 Element deleted = parentNode.getChild(DELETED_TEMPLATES);
281 if (deleted != null) {
282 List children = deleted.getChildren();
283 for (final Object aChildren : children) {
284 Element child = (Element)aChildren;
713 public List<TemplateImpl> collectMatchingCandidates(String key, Character shortcutChar, boolean hasArgument) {
714 final Collection<TemplateImpl> templates = getTemplates(key);
715 List<TemplateImpl> candidates = new ArrayList<TemplateImpl>();
716 for (TemplateImpl template : templates) {
717 if (template.isDeactivated()) {
AbbrevsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 508 lines
✨ Summary
This Java code is a GUI application for managing abbreviations and expansions. It allows users to add, remove, and sort abbreviations based on their text content. The data is stored in a Hashtable
and displayed in a table with two columns: abbreviation and expansion. The application uses a custom comparator to sort the data alphabetically.
This Java code is a GUI application for managing abbreviations and expansions. It allows users to add, remove, and sort abbreviations based on their text content. The data is stored in a Hashtable
and displayed in a table with two columns: abbreviation and expansion. The application uses a custom comparator to sort the data alphabetically.
88 setsComboBox = new JComboBox(sets);
89 ActionHandler actionHandler = new ActionHandler();
90 setsComboBox.addActionListener(actionHandler);
91 panel2.add(setsComboBox);
92 panel2.add(Box.createGlue());
103 abbrevsTable.getTableHeader().addMouseListener(new HeaderMouseHandler());
104 abbrevsTable.getSelectionModel().addListSelectionListener(
105 new SelectionHandler());
106 abbrevsTable.getSelectionModel().setSelectionMode(
107 ListSelectionModel.SINGLE_SELECTION);
108 abbrevsTable.addMouseListener(new TableMouseHandler());
258 //{{{ SelectionHandler class
259 private class SelectionHandler implements ListSelectionListener
260 {
261 public void valueChanged(ListSelectionEvent evt)
phrasebookbox.ui (https://bitbucket.org/ultra_iter/qt-vtl.git) Qt · 237 lines
squidconf.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 228 lines
28 <KEYWORD1>mcast_icp_query_timeout</KEYWORD1>
29 <KEYWORD1>dead_peer_timeout</KEYWORD1>
30 <KEYWORD1>hierarchy_stoplist</KEYWORD1>
31 <KEYWORD1>no_cache</KEYWORD1>
32 <KEYWORD1>cache_mem</KEYWORD1>
58 <KEYWORD1>client_netmask</KEYWORD1>
59 <KEYWORD1>ftp_user</KEYWORD1>
60 <KEYWORD1>ftp_list_width</KEYWORD1>
61 <KEYWORD1>ftp_passive</KEYWORD1>
62 <KEYWORD1>ftp_sanitycheck</KEYWORD1>
LogViewerAttributes.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 371 lines
✨ Summary
This Java class provides a set of properties and methods for configuring a log viewer application. It allows users to customize settings such as font, buffer size, latency, and tab placement, as well as store and retrieve these values from a configuration file. The class also handles default values and invalid input, ensuring that the application remains stable and functional.
This Java class provides a set of properties and methods for configuring a log viewer application. It allows users to customize settings such as font, buffer size, latency, and tab placement, as well as store and retrieve these values from a configuration file. The class also handles default values and invalid input, ensuring that the application remains stable and functional.
25 import java.io.FileOutputStream;
26 import java.io.IOException;
27 import java.util.ArrayList;
28 import java.util.Iterator;
29 import java.util.List;
128 /**
129 * Gets a list of followed files
130 *
131 * @return The iterator of the list
134 List fileNames = properties_.getEnumeratedProperty(followedFilesKey);
135 List files = new ArrayList();
136 Iterator i = fileNames.iterator();
137 while (i.hasNext()) {
145 *
146 * @param file The file to check
147 * @return true if any File in the List of followed Files
148 * (getFollowedFiles()) has the same Canonical Path as the supplied
149 * File
Log.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 258 lines
✨ Summary
This Java code generates a log of changes made to a SVN repository. It takes a list of paths, a start and end revision, and prints out the author, date, and log message for each change. Additionally, it displays the changed paths and their type (added, deleted, or modified). The output is printed to the console.
This Java code generates a log of changes made to a SVN repository. It takes a list of paths, a start and end revision, and prints out the author, date, and log message for each change. Additionally, it displays the changed paths and their type (added, deleted, or modified). The output is printed to the console.
8 * Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
55 private LogResults results = new LogResults();
56 private TreeMap < String, List < SVNLogEntry >> entries = new TreeMap < String, List < SVNLogEntry >> ();
58 private PrintStream out = null;
229 data.setUsername("daleanson");
230 data.setPassword("");
231 List<String> paths = new ArrayList<String>();
232 paths.add("/home/danson/src/plugins/SVNPlugin/src/ise/plugin/svn/command/Log.java");
233 data.setPaths(paths);
_events.rhtml
(http://rorptm.googlecode.com/svn/trunk/)
Ruby HTML · 31 lines
✨ Summary
This Ruby HTML code outputs a list of events with their dates, projects, and titles. It also displays additional information such as “today!”, “tomorrow”, “near future”, “past” based on the event date relative to today’s date. Each event has an optional delete link if it’s a calendar event.
This Ruby HTML code outputs a list of events with their dates, projects, and titles. It also displays additional information such as “today!”, “tomorrow”, “near future”, “past” based on the event date relative to today’s date. Each event has an optional delete link if it’s a calendar event.
SVGViewSpec.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 168 lines
package-tree.html
(http://keywatch.googlecode.com/svn/trunk/)
HTML · 150 lines
✨ Summary
This HTML code generates a documentation page for a Java class StrongCache
and its related classes, displaying their hierarchy and relationships. It includes navigation bars at the top and bottom of the page, with links to other relevant pages. The output is likely from a tool like Javadoc, which generates documentation for Java classes and libraries.
This HTML code generates a documentation page for a Java class StrongCache
and its related classes, displaying their hierarchy and relationships. It includes navigation bars at the top and bottom of the page, with links to other relevant pages. The output is likely from a tool like Javadoc, which generates documentation for Java classes and libraries.
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
40 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
108 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
109 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD>
110 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
111 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
112 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
tst_qtconcurrentfilter.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1546 lines
208 }
209 {
210 QList<int> list2 = QtConcurrent::blockingFiltered(list, KeepEvenIntegers());
211 QCOMPARE(list2, QList<int>() << 2 << 4);
212 }
213 {
214 QList<int> list2 = QtConcurrent::blockingFiltered<QList<int> >(list.begin(),
215 list.end(),
218 }
219 {
220 QList<int> list2 = QtConcurrent::blockingFiltered<QList<int> >(list.constBegin(),
221 list.constEnd(),
241 linkedList << 1 << 2 << 3 << 4;
242 QLinkedList<int> linkedList2 = QtConcurrent::blockingFiltered(linkedList, KeepEvenIntegers());
243 QCOMPARE(linkedList2, QLinkedList<int>() << 2 << 4);
RootImporter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 171 lines
✨ Summary
This Java code defines a class RootImporter
that imports files and directories from a project root, optionally removing existing files before importing. It uses a component as its parent and provides options for importing settings. The class handles user input, imports files recursively, and updates the project structure after import.
This Java code defines a class RootImporter
that imports files and directories from a project root, optionally removing existing files before importing. It uses a component as its parent and provides options for importing settings. The class handles user input, imports files recursively, and updates the project structure after import.
25 import java.util.Iterator;
26 import java.util.ArrayList;
27 import java.util.Collection;
28 import java.util.Enumeration;
117 if (clean) {
118 Enumeration e = project.children();
119 ArrayList toRemove = new ArrayList();
120 while (e.hasMoreElements()) {
121 VPTNode n = (VPTNode) e.nextElement();
performance.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This is a documentation page for a C++ library, specifically the Boost library. It provides an overview of the library’s features and performance characteristics, including memory usage and processor cycles. The page includes links to other resources, such as licensing information and contact details. It appears to be a generated HTML output from a documentation system.
This is a documentation page for a C++ library, specifically the Boost library. It provides an overview of the library’s features and performance characteristics, including memory usage and processor cycles. The page includes links to other resources, such as licensing information and contact details. It appears to be a generated HTML output from a documentation system.
SideKickCompletionPopup.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 197 lines
✨ Summary
This Java code defines a popup completion window for a text editor, specifically designed for the SideKick plugin. It provides auto-completion functionality based on user input, allowing users to select from a list of suggested completions and insert them into their text. The popup is customizable and can be updated dynamically as the user types.
This Java code defines a popup completion window for a text editor, specifically designed for the SideKick plugin. It provides auto-completion functionality based on user input, allowing users to select from a list of suggested completions and insert them into their text. The popup is customizable and can be updated dynamically as the user types.
112 private class Candidates implements CompletionPopup.Candidates
113 {
114 private final ListCellRenderer renderer;
116 public Candidates()
134 }
136 public Component getCellRenderer(JList list, int index,
137 boolean isSelected, boolean cellHasFocus)
138 {
139 return renderer.getListCellRendererComponent(list,
140 complete.get(index), index,
141 isSelected, cellHasFocus);
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.
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.
243 hostField.setEnabled(false);
244 if (secure)
245 hostField.getDocument().addDocumentListener(new FieldCompletionListener());
246 hostField.addActionListener(this);
255 userField.setColumns(20);
256 if (secure)
257 userField.getDocument().addDocumentListener(new FieldCompletionListener());
258 userField.addActionListener(this);
278 privateKeySelect = new JButton("...");
279 privateKeySelect.setMargin(new Insets(0,0,0,0));
280 privateKeySelect.addActionListener(new PrivateKeySelectActionListener(this));
281 privateKeyBox.add(privateKeySelect);
282 panel.add(privateKeyBox);
327 //{{{ class FieldCompletionListener
328 class FieldCompletionListener implements DocumentListener
329 {
330 public void changedUpdate(DocumentEvent e) { checkKey(); }
LaTeXPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 59 lines
✨ Summary
This Java class, LatexPlugin
, extends a plugin for an editor (JEdit) and manages LaTeX-related functionality. It adds components to and removes them from an edit bus, which is used to manage components in the editor. The class also handles messages related to LaTeX editing, but currently does nothing with them.
This Java class, LatexPlugin
, extends a plugin for an editor (JEdit) and manages LaTeX-related functionality. It adds components to and removes them from an edit bus, which is used to manage components in the editor. The class also handles messages related to LaTeX editing, but currently does nothing with them.
25 import sidekick.SideKickPlugin;
26 import java.util.ArrayList;
27 import java.util.Iterator;
28 import java.util.List;
31 extends SideKickPlugin {
33 private static List editBusList = new ArrayList();
35 //~ Methods ...............................................................
37 public static void addToEditBus(EBComponent component){
38 EditBus.addToBus(component);
39 editBusList.add(component);
40 }
FirewallOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 131 lines
✨ Summary
This Java code defines a FirewallOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.
This Java code defines a FirewallOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.
68 httpNonProxy.setEnabled(enabled);
70 httpEnabled.addActionListener(new ActionHandler());
72 // checkbox
85 socksPort.setEnabled(enabled);
87 socksEnabled.addActionListener(new ActionHandler());
88 } //}}}
116 //{{{ ActionHandler class
117 class ActionHandler implements ActionListener
118 {
119 public void actionPerformed(ActionEvent evt)
absorbs_identities_icl__id518936.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
47 <a name="id1144203"></a><h3>
48 <a name="id518998-bb"></a><code class="computeroutput">absorbs_identities</code> public member functions</h3>
49 <div class="orderedlist"><ol type="1"><li><pre class="literallayout"> <a name="id519001-bb"></a><span class="identifier">BOOST_STATIC_CONSTANT</span><span class="special">(</span><span class="keyword">int</span><span class="special">,</span> <span class="identifier">value</span> <span class="special">=</span> <span class="identifier">Traits</span><span class="special">::</span><span class="identifier">absorbs_identities</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
50 </div>
51 </div>
process.hh
(git://github.com/ticking/self.git)
C++ Header · 368 lines
✨ Summary
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
34 class PreservedList {
35 public:
36 preservedVmObjBList list;
38 PreservedList() : list(32, true) { }
39 void clear() { list.clear(); }
40 void oops_do(oopsDoFn f, Process* p);
41 };
62 Stack stk;
63 oop method; // top-level doIt method
64 PreservedList preservedList;
65 processOop procObj;
245 void killVFrameOopsAndSetWatermark(frame* currentFrame);
247 void printVFrameList(fint howMany);
248 bool verifyVFrameList();
factory_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 203 lines
SortedSequence.html
(http://xbird.googlecode.com/svn/trunk/)
HTML · 297 lines
✨ Summary
This is a rendered HTML page that displays the contents of a Java class file, specifically the KeyStrippingIterator
class. The code shows the class’s constructor, methods, and fields, providing a detailed view of its implementation. It appears to be generated by a tool such as javadoc or a Java IDE.
This is a rendered HTML page that displays the contents of a Java class file, specifically the KeyStrippingIterator
class. The code shows the class’s constructor, methods, and fields, providing a detailed view of its implementation. It appears to be generated by a tool such as javadoc or a Java IDE.
48 <FONT color="green">045</FONT> private static final long serialVersionUID = 4609114921086601562L;<a name="line.45"></a>
49 <FONT color="green">046</FONT> <a name="line.46"></a>
50 <FONT color="green">047</FONT> private final List<Comparable[]> _items;<a name="line.47"></a>
51 <FONT color="green">048</FONT> private final Sorter _sorter;<a name="line.48"></a>
52 <FONT color="green">049</FONT> private final List<OrderSpec> _orderSpecs;<a name="line.49"></a>
53 <FONT color="green">050</FONT> private final Type _type;<a name="line.50"></a>
54 <FONT color="green">051</FONT> <a name="line.51"></a>
55 <FONT color="green">052</FONT> public SortedSequence(Sequence src, List<OrderSpec> orderSpecs, Sequence contextSeq, DynamicContext dynEnv) {<a name="line.52"></a>
56 <FONT color="green">053</FONT> super(dynEnv);<a name="line.53"></a>
57 <FONT color="green">054</FONT> if(orderSpecs == null) {<a name="line.54"></a>
197 <FONT color="green">194</FONT> private transient Iterator<Comparable[]> delegate;<a name="line.194"></a>
198 <FONT color="green">195</FONT> <a name="line.195"></a>
199 <FONT color="green">196</FONT> public KeyStrippingIterator(List<Comparable[]> items, List<OrderSpec> orderSpecs) {<a name="line.196"></a>
200 <FONT color="green">197</FONT> this.items = items;<a name="line.197"></a>
201 <FONT color="green">198</FONT> this.orderSpecs = orderSpecs;<a name="line.198"></a>
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS
106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog
107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd
108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9
109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa
557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+
558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj
559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr
560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx
mthca_user.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 113 lines
✨ Summary
This is a C header file that defines various data structures and constants for use with the MTHCA (Multi-Threaded Coherent Accelerator) user-level interface. It provides definitions for structs representing memory regions, queues, and QPs (Queues and PEs), as well as constants for attributes and version numbers. The code is designed to be compatible with both 32-bit and 64-bit architectures.
This is a C header file that defines various data structures and constants for use with the MTHCA (Multi-Threaded Coherent Accelerator) user-level interface. It provides definitions for structs representing memory regions, queues, and QPs (Queues and PEs), as well as constants for attributes and version numbers. The code is designed to be compatible with both 32-bit and 64-bit architectures.
14 *
15 * - Redistributions of source code must retain the above
16 * copyright notice, this list of conditions and the following
17 * disclaimer.
18 *
19 * - Redistributions in binary form must reproduce the above
20 * copyright notice, this list of conditions and the following
21 * disclaimer in the documentation and/or other materials
22 * provided with the distribution.
CopyAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 325 lines
✨ Summary
This Java code implements a “Copy” action for an integrated development environment (IDE). It allows users to copy files from one location to another, either within the same repository or between different repositories. The action creates a new process that performs the copy operation and displays the results in the IDE’s UI.
This Java code implements a “Copy” action for an integrated development environment (IDE). It allows users to copy files from one location to another, either within the same repository or between different repositories. The action creates a new process that performs the copy operation and displays the results in the IDE’s UI.
8 * Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
60 /**
61 * ActionListener to perform an svn copy.
62 * This is not dependent on ProjectViewer.
63 */
ArchiveDirectoryCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 211 lines
✨ Summary
This Java class, ArchiveDirectoryCache
, caches remote directories to improve performance by storing their listings in a temporary file and storing the file path in a hash table for efficient lookup. It provides methods to cache, retrieve, and clear cached directory listings, as well as manage its internal state and settings directory.
This Java class, ArchiveDirectoryCache
, caches remote directories to improve performance by storing their listings in a temporary file and storing the file path in a hash table for efficient lookup. It provides methods to cache, retrieve, and clear cached directory listings, as well as manage its internal state and settings directory.
29 {
30 /**
31 * Returns the specified cached directory listing, or null if
32 * it is not in the cache.
33 * @param url The URL
77 /**
78 * Caches the specified directory listing.
79 * @param url The URL
80 * @param directory The directory listing
131 /**
132 * Removes the cached listing of the specified directory.
133 * @param url The URL
134 * @since jEdit 2.6pre5
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.
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.
53 listModel = TagsPlugin.getTagStack(view);
54 list = new JList(listModel);
55 list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
56 list.setCellRenderer(new PositionCellRenderer());
57 list.addMouseListener(new MouseHandler());
58 add(new JScrollPane(list),BorderLayout.CENTER);
67 //{{{ private members
68 private View view;
69 private JList list;
70 private TagStackModel listModel;
118 goTo.setEnabled(list.getSelectedValue() != null);
119 remove.setEnabled(listModel.size() > 0);
120 pop.setEnabled(listModel.size() > 0);
240 //{{{ getListCellRendererComponent() method
241 public Component getListCellRendererComponent(JList list,
242 Object value, int index, boolean isSelected,
243 boolean cellHasFocus)
SideKickPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 435 lines
✨ Summary
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
405 SideKickBindings b = new SideKickBindings();
406 textArea.putClientProperty(SideKickBindings.class,b);
407 textArea.addKeyListener(b);
408 } //}}}
415 SideKickBindings.class);
416 textArea.putClientProperty(SideKickBindings.class,null);
417 textArea.removeKeyListener(b);
418 SideKickTree.CaretHandler caretHandler = (SideKickTree.CaretHandler) textArea.getClientProperty(SideKickTree.CaretHandler.class);
419 if (caretHandler != null)
420 {
421 textArea.putClientProperty(SideKickTree.CaretHandler.class, null);
422 textArea.removeCaretListener(caretHandler);
423 }
424 } //}}}
Node.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 38 lines
✨ Summary
This Java interface defines a basic structure for Abstract Syntax Tree (AST) nodes in an ECMAScript parser. It provides methods to manage child nodes, set and get parent nodes, add children, and accept visitors. These methods enable the construction of a tree-like data structure representing the syntactic structure of ECMAScript code.
This Java interface defines a basic structure for Abstract Syntax Tree (AST) nodes in an ECMAScript parser. It provides methods to manage child nodes, set and get parent nodes, add children, and accept visitors. These methods enable the construction of a tree-like data structure representing the syntactic structure of ECMAScript code.
strings.xml (http://softkeyboard.googlecode.com/svn/) XML · 139 lines
51 <!-- Options menu -->
52 <string name="change_ime">Ändra inmatningsmetod</string>
53 <string name="override_dictionary">Ĺsidosätt standardordlista</string>
54 <!-- Dictionary override strings -->
55 <string name="override_dictionary_title">Ĺsidosätt <xliff:g id="word">%s</xliff:g> ordlista</string>
134 <string name="please_wait">Var vänlig vänta</string>
135 <string name="toast_lengthy_words_long_operation">Läser in ordlista...</string>
136 <string name="toast_lengthy_start_up_operation">Startar AnySoftKeyboard...</string>
137 <string name="lengthy_creating_keyboard_operation">Skapar tangentbord...</string>
MarkerViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 283 lines
✨ Summary
This Java code defines a MarkerViewer
class, which is a dockable view of markers in a text editor’s current buffer. It displays a list of markers and provides buttons to add, remove, navigate through, and clear markers. The viewer updates dynamically when the underlying buffer changes. It also handles user interactions such as mouse clicks on the marker list.
This Java code defines a MarkerViewer
class, which is a dockable view of markers in a text editor’s current buffer. It displays a list of markers and provides buttons to add, remove, navigate through, and clear markers. The viewer updates dynamically when the underlying buffer changes. It also handles user interactions such as mouse clicks on the marker list.
166 //{{{ Instance variables
167 private JList markerList;
168 private View view;
169 private RolloverButton previous;
213 private void updateSelection()
214 {
215 ListModel model = markerList.getModel();
216 int currentLine = view.getTextArea().getCaretLine();
217 Buffer buffer = view.getBuffer();
241 public Component getListCellRendererComponent(
242 JList list, Object value, int index,
243 boolean isSelected, boolean cellHasFocus)
244 {
245 super.getListCellRendererComponent(list,value,
246 index,isSelected,cellHasFocus);
Mode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
HistoryModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 320 lines
✨ Summary
This Java class, HistoryModel
, is a list model for storing and managing a history of text input. It allows multiple instances to be created with unique names, and provides methods for adding, retrieving, and saving entries in the history. The data is stored in a vector and can be loaded from a file when the application starts.
This Java class, HistoryModel
, is a list model for storing and managing a history of text input. It allows multiple instances to be created with unique names, and provides methods for adding, retrieving, and saving entries in the history. The data is stored in a vector and can be loaded from a file when the application starts.
1 /*
2 * HistoryModel.java - History list model
3 * :tabSize=8:indentSize=8:noTabs=false:
4 * :folding=explicit:collapseFolds=1:
25 //{{{ Imports
26 import javax.swing.AbstractListModel;
27 import java.io.*;
28 import java.util.*;
32 /**
33 * A history list. One history list can be used by several history text
34 * fields. Note that the list model implementation is incomplete; no events
53 //{{{ addItem() method
54 /**
55 * Adds an item to the end of this history list, trimming the list
56 * to the maximum number of items if necessary.
57 * @param text The item
README (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 17 lines
inode.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 5312 lines
✨ Summary
This C code is part of a file system implementation, specifically handling journaling and data corruption protection for a Linux file system. It provides functions to manage inodes, handle page faults, and ensure data integrity by writing changes to a journal before modifying the underlying storage. The code ensures that file system updates are atomic and consistent, preventing data corruption and ensuring system reliability.
This C code is part of a file system implementation, specifically handling journaling and data corruption protection for a Linux file system. It provides functions to manage inodes, handle page faults, and ensure data integrity by writing changes to a journal before modifying the underlying storage. The code ensures that file system updates are atomic and consistent, preventing data corruption and ensuring system reliability.
220 /*
221 * If we're going to skip the normal cleanup, we still need to
222 * make sure that the in-core orphan linked list is properly
223 * cleaned up.
224 */
243 * restarts journal transactions; therefore there may not be
244 * enough credits left in the handle to remove the inode from
245 * the orphan list and set the dtime field.
246 */
247 if (!ext4_handle_has_enough_credits(handle, 3)) {
TextCheckerState.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 52 lines
ProjectListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 75 lines
✨ Summary
This is a Java interface definition for a ProjectListener
that extends the EventListener
interface. It provides methods to be notified when files are added, removed, and project properties change in a project. The listener can react to these events by implementing the corresponding methods.
This is a Java interface definition for a ProjectListener
that extends the EventListener
interface. It provides methods to be notified when files are added, removed, and project properties change in a project. The listener can react to these events by implementing the corresponding methods.
IgnoreDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 172 lines
✨ Summary
This Java code creates a graphical user interface (GUI) dialog box for ignoring files and directories in a Subversion version control system. The dialog allows users to select whether to ignore specific files, directories, or patterns within directories, as well as enable recursive ignoring. It also includes options for canceling the operation and displaying the selected path, filename, pattern, and recursive status.
This Java code creates a graphical user interface (GUI) dialog box for ignoring files and directories in a Subversion version control system. The dialog allows users to select whether to ignore specific files, directories, or patterns within directories, as well as enable recursive ignoring. It also includes options for canceling the operation and displaying the selected path, filename, pattern, and recursive status.
8 * Redistributions of source code must retain the above copyright notice,
9 this list of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
96 // actions
97 this_dir_pattern_btn.addChangeListener(
98 new ChangeListener() {
105 );
107 ok_btn.addActionListener(
108 new ActionListener() {
122 );
124 cancel_btn.addActionListener(
125 new ActionListener() {
HelpfulJTable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 562 lines
✨ Summary
This Java code is part of a table component, specifically a JTable class, which provides functionality for sorting and resizing columns. It includes event listeners for mouse clicks on the table header to change sort order and column width. The code also handles tooltips and icons for sorting indicators. Its purpose is to provide interactive and customizable table behavior.
This Java code is part of a table component, specifically a JTable class, which provides functionality for sorting and resizing columns. It includes event listeners for mouse clicks on the table header to change sort order and column width. The code also handles tooltips and icons for sorting indicators. Its purpose is to provide interactive and customizable table behavior.
47 * Therefore, <code>addActionListener(ActionListener)</code> and
48 * <code>removeActionListener(ActionListener)</code> methods are provided.
49 * </li>
50 *
214 public void addActionListener(ActionListener l) {
215 listenerList.add(ActionListener.class, l);
216 }
220 public void removeActionListener(ActionListener l) {
221 listenerList.remove(ActionListener.class, l);
222 }
352 */
353 protected void fireActionEvent(ActionEvent evt) {
354 Object[] listeners = listenerList.getListenerList();
355 // Process the listeners last to first, notifying those that are interested in this event:
BufferSwitcher.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 114 lines
✨ Summary
This Java class, BufferSwitcher
, is a part of an integrated development environment (IDE) for editing files. It creates a dropdown menu that displays a list of available buffers (files being edited). The user can select a buffer from this list and switch to it in the IDE. The class also updates the list of buffers when they change, ensuring the correct buffer is displayed.
This Java class, BufferSwitcher
, is a part of an integrated development environment (IDE) for editing files. It creates a dropdown menu that displays a list of available buffers (files being edited). The user can select a buffer from this list and switch to it in the IDE. The class also updates the list of buffers when they change, ensuring the correct buffer is displayed.
46 addActionListener(new ActionHandler());
47 addPopupMenuListener(new PopupMenuListener()
48 {
49 public void popupMenuWillBecomeVisible(
63 }
65 public void updateBufferList()
66 {
67 // if the buffer count becomes 0, then it is guaranteed to
96 public Component getListCellRendererComponent(
97 JList list, Object value, int index,
98 boolean isSelected, boolean cellHasFocus)
99 {
100 super.getListCellRendererComponent(list,value,index,
101 isSelected,cellHasFocus);
102 Buffer buffer = (Buffer)value;
Make_Get_and_Set_Methods.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 298 lines
SQLTransaction.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 137 lines
LoadLibraryWithNonConstantStringInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 95 lines
Look_and_Feel_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 59 lines
30 {
31 keys = javax.swing.UIManager.getLookAndFeelDefaults().keys();
32 sb = new StringBuffer("--listing look and feel property names--\n");
33 while(keys.hasMoreElements())
34 {
45 Macro index data (in DocBook format)
47 <listitem>
48 <para><filename>Look_and_Feel_Properties.bsh</filename></para>
49 <abstract><para>
50 Writes an unsorted list of the names of Java Look and Feel
51 properties in a new buffer.
52 </para></abstract>
qimagewriter.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 734 lines
68 what went wrong.
70 Call supportedImageFormats() for a list of formats that
71 QImageWriter can write. QImageWriter supports all built-in image
72 formats, in addition to any image format plugins that support
145 // check if any plugins can write the image
146 QFactoryLoader *l = loader();
147 QStringList keys = l->keys();
148 int suffixPluginIndex = -1;
149 #endif
338 \snippet doc/src/snippets/code/src_gui_image_qimagewriter.cpp 0
340 You can call supportedImageFormats() for the full list of formats
341 QImageWriter supports.
htmltblx.mod (https://bitbucket.org/nbargnesi/idea.git) Unknown · 238 lines
24 Please direct all questions, bug reports, or suggestions for
25 changes to the docbook@lists.oasis-open.org mailing list. For more
26 information, see http://www.oasis-open.org/docbook/.
27 -->
37 This module has been developed for use with the DocBook V4.4
38 "union table model" in which elements and attlists common to both
39 models are defined (as the union) in the CALS table module by
40 setting various parameter entities appropriately in this file.
99 <!ELEMENT td (%para.char.mix; | %tabentry.mix; | table | informaltable)*>
101 <!ATTLIST colgroup
102 %attrs;
103 span CDATA "1"
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 474 lines
50 <para>
51 <guimenu>Plugins</guimenu>><guisubmenu>Error
52 List</guisubmenu>><guimenuitem>Error List</guimenuitem> displays the error
53 list window. This window is floating by default, but it can be made to
108 List</guisubmenu>><guimenuitem>Go to Previous Error</guimenuitem> moves the
109 caret to the error immediately before the one currently selected in the
110 error list window. If no error is selected, the last error in the list is
111 chosen. This will open the appropriate file if the error is in a
112 different file.
420 <listitem><para>Updated for jEdit 4.0 API changes.</para></listitem>
421 <listitem><para>EditBus plugin merged with this one.</para></listitem>
422 <listitem><para>Changes to error source API; see <xref linkend="api" />
431 <itemizedlist>
432 <listitem><para>If the error list was open but not visible, the
433 <guilabel>Show on error</guilabel> option would do nothing.</para></listitem>
434 <listitem><para>If no error sources were registered, all highlights added
435 after the error list would not be painted.</para></listitem>
436 </itemizedlist>
tip95.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 2 lines
✨ Summary
This HTML code snippet provides instructions on how to recover deleted lines of code by pressing a specific keyboard shortcut: C+e C+y. It opens a dialog box listing the 20 most recently deleted runs of text, allowing users to easily retrieve their lost changes.
This HTML code snippet provides instructions on how to recover deleted lines of code by pressing a specific keyboard shortcut: C+e C+y. It opens a dialog box listing the 20 most recently deleted runs of text, allowing users to easily retrieve their lost changes.
1 <html><body>Suppose you delete a few lines of code, make some further changes, then realize you want the lines of code back. While you just could copy your changes to the clipboard, undo a bunch of times, and paste, there is an easier way. Simply press <b>C+e C+y</b> which will open a dialog box listing the 20 most recently deleted runs of text.</body></html>
SimpleListModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 106 lines
✨ Summary
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
This Java class, SimpleListModel
, extends AbstractListModel
and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.
29 }
31 public void setList(List list, String searchString) {
32 int oldSize = this.list.size();
38 for (int i = 0; i < list.size(); i++) {
39 PHPItem phpItem = (PHPItem) list.get(i);
40 if (accept(phpItem, searchString)) {
53 Iterator iterator = list.iterator();
54 while (iterator.hasNext()) {
55 PHPItem phpItem = (PHPItem) iterator.next();
56 if (!accept(phpItem, searchString)) {
74 private boolean accept(PHPItem phpItem, String searchText) {
75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;
76 }
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 992 lines
✨ Summary
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
NavigatorPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 71 lines
38 navigator.menu.label=Navigator
40 # this setting describes the submenu. Each menu item is listed in the
41 # order it is shown. The dash is a special character and will cause a
42 # menu separator to be inserted. This line also must start with the string
43 # passed to the GUIUtilities.loadMenu method in createMenuItems. The items
44 # are the action names as set in the actions.xml file.
45 plugin.ise.plugin.nav.NavigatorPlugin.menu=navigator.back navigator.backList navigator.forward navigator.forwardList navigator.showdockable
46 #navigator.toolbar
54 navigator.back.icon=ArrowL.png
56 navigator.backList.label=Back list
57 navigator.backList.icon=ArrowD.png
64 navigator.forward.icon=ArrowR.png
66 navigator.forwardList.label=Forward list
67 navigator.forwardList.icon=ArrowU.png
icon.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 199 lines
31 <SEQ TYPE="OPERATOR">~===</SEQ>
32 <SEQ TYPE="OPERATOR">===</SEQ>
33 <SEQ TYPE="OPERATOR">|||</SEQ> <!-- list concatenation -->
35 <!-- lexical operators -->
186 <KEYWORD4>file</KEYWORD4>
187 <KEYWORD4>integer</KEYWORD4>
188 <KEYWORD4>list</KEYWORD4>
189 <KEYWORD4>null</KEYWORD4>
190 <KEYWORD4>real</KEYWORD4>
CTagsFileProvider.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 57 lines
✨ Summary
This Java class, CTagsFileProvider
, is a provider of identifier names from a tags file generated by ctags. It loads and processes the identifiers from the file, storing them in an internal list. The class provides methods to process the file, forget the loaded identifiers, and iterate over the identifiers, allowing for use in other parts of the application.
This Java class, CTagsFileProvider
, is a provider of identifier names from a tags file generated by ctags. It loads and processes the identifiers from the file, storing them in an internal list. The class provides methods to process the file, forget the loaded identifiers, and iterate over the identifiers, allowing for use in other parts of the application.
10 public class CTagsFileProvider implements IdentifierProvider, Serializable
11 {
12 private ArrayList<String> identifierList;
13 private String fileName;
14 private File ctagsFile;
21 public void process() {
22 identifierList = new ArrayList<String>();
23 try {
24 BufferedReader reader = new BufferedReader(new FileReader(ctagsFile));
45 public void forget() {
46 identifierList = new ArrayList<String>();
47 }
Jump.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 166 lines
✨ Summary
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
51 ProjectBuffer pb = getProjectBuffer(view);
52 if (pb.ctagsBuffer != null) {
53 JumpPlugin.fja.showList();
54 }
55 }
62 ProjectBuffer pb = getProjectBuffer(view);
63 if (pb.ctagsBuffer != null) {
64 JumpPlugin.tja.showList();
65 }
66 }
79 public void showFoldJump() {
80 FoldJumpAction foldja = new FoldJumpAction();
81 foldja.showFoldsList();
82 }
videoplayer.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 85 lines
InstallMacrosDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 532 lines
✨ Summary
This Java code is for a graphical user interface (GUI) dialog box that allows users to manage and download macros from a database. It provides features such as sorting, searching, and selecting macros to download. The GUI includes buttons, text fields, and lists to display the available macros and their properties.
This Java code is for a graphical user interface (GUI) dialog box that allows users to manage and download macros from a database. It provides features such as sorting, searching, and selecting macros to download. The GUI includes buttons, text fields, and lists to display the available macros and their properties.
62 .getMacroList();
63 list.sortMacroList(MacroList.SORT_BY_NAME);
64 }
65 catch(Exception e)
422 macros.setModel(list.macros);
423 macros.getSelectionModel().addListSelectionListener(new ListHandler());
424 macros.getModel().addTableModelListener(new TableModelHandler());
441 {
442 macros.setModel(results);
443 macros.getSelectionModel().addListSelectionListener(new ListHandler());
444 macros.getModel().addTableModelListener(new TableModelHandler());
514 //{{{ ListHandler class
515 class ListHandler implements ListSelectionListener
516 {
517 public void valueChanged(ListSelectionEvent evt)
listitem.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 109 lines
40 ****************************************************************************/
42 #ifndef LISTITEM_H
43 #define LISTITEM_H
53 class QGraphicsItem;
55 class ListItem : public GvbWidget
56 {
57 Q_OBJECT
71 };
73 ListItem(QGraphicsWidget *parent = 0);
74 virtual ~ListItem();
94 private:
95 Q_DISABLE_COPY(ListItem)
96 QGraphicsGridLayout *m_txtlayout;
97 QGraphicsLinearLayout *m_layout;
MacrosChanged.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 43 lines
✨ Summary
This Java class represents a message sent when the list of available macros changes in the jEdit text editor. It extends the EBMessage
class and has a constructor that takes an EBComponent
source as a parameter, indicating where the change occurred. The message is used to notify other parts of the program about the updated macro list.
This Java class represents a message sent when the list of available macros changes in the jEdit text editor. It extends the EBMessage
class and has a constructor that takes an EBComponent
source as a parameter, indicating where the change occurred. The message is used to notify other parts of the program about the updated macro list.
PluginManagerOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 377 lines
✨ Summary
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It manages a list of mirrors, which are sources of software packages. The code updates the mirror list from a cache or web source and displays it in a GUI. It also allows users to select a specific mirror and download its contents.
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It manages a list of mirrors, which are sources of software packages. The code updates the mirror list from a cache or web source and displays it in a GUI. It also allows users to select a specific mirror and download its contents.
244 }
246 public void setList(List<MirrorList.Mirror> mirrors)
247 {
248 this.mirrors = mirrors;
301 setValue(0);
303 final List<MirrorList.Mirror> mirrors = new ArrayList<MirrorList.Mirror>();
304 try
305 {
306 MirrorList mirrorList = new MirrorList(download, this);
307 if (download)
308 saveMirrorList(mirrorList.xml);
CompletionRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 219 lines
✨ Summary
This Java class, CompletionRequest
, is part of a CSS editor’s auto-completion feature. It analyzes user input and suggests possible completions based on CSS properties, units, and values. The class uses regular expressions to parse the input text and determine whether it matches certain patterns, allowing it to provide relevant suggestions for completion.
This Java class, CompletionRequest
, is part of a CSS editor’s auto-completion feature. It analyzes user input and suggests possible completions based on CSS properties, units, and values. The class uses regular expressions to parse the input text and determine whether it matches certain patterns, allowing it to provide relevant suggestions for completion.
101 //{{{ Private members
103 private List completionList;
104 private JEditBuffer buffer;
105 private String textBeforeCaret;
108 // {{{ Static fields
109 private static ArrayList emptyArrayList = new ArrayList(0);
111 // patterns
136 //{{{ addMatchedToCompletionList() method
137 private void addMatchedToCompletionList(ArrayList cantidateCompletions, String startsWith) {
138 Iterator it = cantidateCompletions.iterator();
139 String value;
149 //{{{ addMatchedToCompletionList() method
150 private void addMatchedToCompletionList(ArrayList completions) {
151 Iterator it = completions.iterator();
152 while (it.hasNext()) {
InstallPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1155 lines
✨ Summary
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It provides functionality to manage plugins, including sorting and filtering plugin information, displaying plugin details in a table, and handling keyboard and mouse events. The code also includes rendering and focus management for the plugin table.
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It provides functionality to manage plugins, including sorting and filtering plugin information, displaying plugin details in a table, and handling keyboard and mouse events. The code also includes rendering and focus management for the plugin table.
489 saveSelection(savedChecked,savedSelection);
491 PluginList pluginList = window.getPluginList();
493 if (pluginList == null) return;
650 Entry[] getParents()
651 {
652 List<Entry> list = new ArrayList<Entry>();
653 getParents(list);
654 Entry[] array = list.toArray(new Entry[list.size()]);
655 Arrays.sort(array,new StandardUtilities.StringCompare<Entry>(true));
656 return array;
739 //{{{ SelectallButton class
740 private class SelectallButton extends JCheckBox implements ActionListener, TableModelListener
741 {
742 SelectallButton()
index.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 262 lines
✨ Summary
This HTML code is a documentation page for LaTeX Tools, a plugin for editing LaTeX documents. It provides information on how to use the plugin’s features, such as customizing navigation menus and icons, and explains the syntax of the default navigation file. The page also includes links to release notes and contact information for the plugin maintainer.
This HTML code is a documentation page for LaTeX Tools, a plugin for editing LaTeX documents. It provides information on how to use the plugin’s features, such as customizing navigation menus and icons, and explains the syntax of the default navigation file. The page also includes links to release notes and contact information for the plugin maintainer.
141 </ul>
143 The ALT-Click locking mechanism allows the entire list of labels to be explored by keeping ALT held down and clicking the labels to view their positions. Double clicking a reference (with or without the ALT key) will insert the reference at the saved cursor location.
144 </p>
168 The way I use the document navigator is to have the Structure Browser docked to the right, and the Navigation Toolbar docked at the top (it is one line deep, so doesn't take much space). This way it is easy to select the features of the document you wish to see. If you simply want all of the main elements displayed, don't bother with the toolbar - it is the default parser.
170 <h3>User defined Navigation Lists.</h3>
172 <p>User defined navigation lists are text files containing search
180 a single digit, giving the preferred position in the combo box (1
181 being the top, 9 being the bottom) or 0 if it should not appear
182 at all. Users can override default lists by adding a new list of
183 the same name to a user list - user lists take precedent over the
238 </tr>
239 <tr>
240 <td><img alt="list" src="images/list.png"></td><td>List</td><td>5</td>
241 </tr>
242 <tr>
JCheckBoxList.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 350 lines
✨ Summary
This Java code defines a custom table model for a JTable component, specifically designed to display check boxes with labels. It allows users to select individual checkboxes and edit their corresponding values. The model provides a way to customize the appearance of the table, including font styles for checkbox labels. It is likely used in a graphical user interface application.
This Java code defines a custom table model for a JTable component, specifically designed to display check boxes with labels. It allows users to select individual checkboxes and edit their corresponding values. The model provides a way to customize the appearance of the table, including font styles for checkbox labels. It is likely used in a graphical user interface application.
1 /*
2 * JCheckBoxList.java - A list, each item can be checked or unchecked
3 * :tabSize=8:indentSize=8:noTabs=false:
4 * :folding=explicit:collapseFolds=1:
50 //{{{ JCheckBoxList constructor
51 /**
52 * Creates a checkbox list with the given list of objects. The elements
53 * of this vector can either be Entry instances, or other objects (if the
54 * latter, they will default to being unchecked).
106 public void selectAll()
107 {
108 CheckBoxListModel model = (CheckBoxListModel)getModel();
109 for(int i = 0; i < model.items.size(); i++)
110 {
120 public Entry[] getValues()
121 {
122 CheckBoxListModel model = (CheckBoxListModel)getModel();
123 Entry[] retVal = new Entry[model.items.size()];
124 model.items.copyInto(retVal);
DictionarySQLiteConnection.java
(http://softkeyboard.googlecode.com/svn/)
Java · 105 lines
✨ Summary
This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.
This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.
1 package com.menny.android.anysoftkeyboard.Dictionary;
3 import java.util.ArrayList;
4 import java.util.List;
80 }
82 public List<DictionaryWord> getAllWords()
83 {
84 //starting with a big storage
85 List<DictionaryWord> words = new ArrayList<DictionaryWord>(5000);
86 SQLiteDatabase db = getReadableDatabase();
87 Cursor c = db.query(mTableName, new String[]{mWordsColumnName, mFrequencyColumnName}, null, null, null, null, null);
PlatformStrategiesWinCE.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 154 lines
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
114 virtual WTF::String AXWebAreaText();
115 virtual WTF::String AXLinkText();
116 virtual WTF::String AXListMarkerText();
117 virtual WTF::String AXImageMapText();
118 virtual WTF::String AXHeadingText();
119 virtual WTF::String AXDefinitionListTermText();
120 virtual WTF::String AXDefinitionListDefinitionText();
124 virtual WTF::String AXCheckedCheckBoxActionVerb();
125 virtual WTF::String AXUncheckedCheckBoxActionVerb();
126 virtual WTF::String AXMenuListActionVerb();
127 virtual WTF::String AXMenuListPopupActionVerb();
ellint_3.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
36 </p>
37 <pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">math</span><span class="special">/</span><span class="identifier">special_functions</span><span class="special">/</span><span class="identifier">ellint_3</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
38 </pre>
39 <p>
40 </p>
41 <pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">math</span> <span class="special">{</span>
43 <span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T3</span><span class="special">></span>
73 the arguments.
74 </p>
75 <pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">T1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T2</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T3</span><span class="special">></span>
76 <a class="link" href="../../main_overview/result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>calculated-result-type</em></span></a> <span class="identifier">ellint_3</span><span class="special">(</span><span class="identifier">T1</span> <span class="identifier">k</span><span class="special">,</span> <span class="identifier">T2</span> <span class="identifier">n</span><span class="special">,</span> <span class="identifier">T3</span> <span class="identifier">phi</span><span class="special">);</span>
VPTSelectionListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 188 lines
✨ Summary
This Java code is a listener for a JTree component, specifically designed to work with the ProjectViewer application. It responds to mouse events and tree selection changes, allowing users to interact with the project hierarchy. The listener handles double-clicks, middle clicks, and other events to perform actions such as opening or closing files, switching buffers, and updating the status bar.
This Java code is a listener for a JTree component, specifically designed to work with the ProjectViewer application. It responds to mouse events and tree selection changes, allowing users to interact with the project hierarchy. The listener handles double-clicks, middle clicks, and other events to perform actions such as opening or closing files, switching buffers, and updating the status bar.
21 //{{{ Imports
22 import java.awt.event.MouseEvent;
23 import java.awt.event.MouseListener;
25 import javax.swing.tree.TreePath;
26 import javax.swing.SwingUtilities;
27 import javax.swing.event.TreeSelectionEvent;
28 import javax.swing.event.TreeSelectionListener;
30 import org.gjt.sp.jedit.jEdit;
41 * @version $Id: VPTSelectionListener.java 6334 2005-02-10 06:33:28Z vanza $
42 */
43 public final class VPTSelectionListener implements TreeSelectionListener, MouseListener {
45 //{{{ Instance Variables
index.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 98 lines
✨ Summary
This HTML code generates a help page for a plugin called HexTools, which extracts data from a hex dump and saves it to a file or clipboard. The page provides information on how to use the plugin, its license, and contact options for feedback and bug reports. It includes images and links to external resources.
This HTML code generates a help page for a plugin called HexTools, which extracts data from a hex dump and saves it to a file or clipboard. The page provides information on how to use the plugin, its license, and contact options for feedback and bug reports. It includes images and links to external resources.
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
510 name=<IDENTIFIER>
511 [ "extends" AmbiguousName() { jjtThis.extend = true; } ]
512 [ "implements" numInterfaces=NameList()
513 { jjtThis.numInterfaces=numInterfaces; } ]
514 Block()
535 )
536 FormalParameters()
537 [ "throws" count=NameList() { jjtThis.numThrows=count; } ]
538 ( Block() | ";" )
539 }
673 }
675 int NameList() :
676 { int count = 0; }
677 {
journal.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2456 lines
✨ Summary
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
411 */
412 JBUFFER_TRACE(jh_in, "file as BJ_Shadow");
413 spin_lock(&journal->j_list_lock);
414 __jbd2_journal_file_buffer(jh_in, transaction, BJ_Shadow);
415 spin_unlock(&journal->j_list_lock);
993 mutex_init(&journal->j_checkpoint_mutex);
994 spin_lock_init(&journal->j_revoke_lock);
995 spin_lock_init(&journal->j_list_lock);
996 spin_lock_init(&journal->j_state_lock);
QuickNotepad.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 68 lines
TMXTileSet.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 191 lines
✨ Summary
This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.
This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.
12 import org.w3c.dom.Document;
13 import org.w3c.dom.Element;
14 import org.w3c.dom.NodeList;
16 /**
105 }
107 NodeList list = element.getElementsByTagName("image");
108 Element imageNode = (Element) list.item(0);
114 }
116 NodeList pElements = element.getElementsByTagName("tile");
117 for (int i = 0; i < pElements.getLength(); i++) {
118 Element tileElement = (Element) pElements.item(i);
124 Element propsElement = (Element) tileElement.getElementsByTagName(
125 "properties").item(0);
126 NodeList properties = propsElement.getElementsByTagName("property");
127 for (int p = 0; p < properties.getLength(); p++) {
128 Element propElement = (Element) properties.item(p);
BrowserListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 47 lines
✨ Summary
This Java interface defines a listener for events related to file selection and activation in a Virtual File System (VFS) browser. It provides two methods: filesSelected
and filesActivated
, which are called when files are selected and double-clicked, respectively, allowing the listener to respond to these events.
This Java interface defines a listener for events related to file selection and activation in a Virtual File System (VFS) browser. It provides two methods: filesSelected
and filesActivated
, which are called when files are selected and double-clicked, respectively, allowing the listener to respond to these events.
1 /*
2 * BrowserListener.java - VFS browser listener
3 * Copyright (C) 2000 Slava Pestov
4 *
20 package org.gjt.sp.jedit.browser;
22 import java.util.EventListener;
24 import org.gjt.sp.jedit.io.VFS;
26 /**
27 * A browser event listener.
28 * @author Slava Pestov
29 * @version $Id: BrowserListener.java 3801 2001-09-08 04:50:46Z spestov $
30 */
31 public interface BrowserListener extends EventListener
32 {
33 /**
amf-uml-states.ads
(git://github.com/landgraf/matreshka.git)
Ada · 320 lines
✨ Summary
This is an Ada implementation of a UML State Machine class. It defines a set of abstract operations and attributes for managing states, including entry and exit actions, state invariants, and relationships with other states and state machines. The class provides a framework for modeling complex state-based systems and allows for redefinition and extension of existing states.
This is an Ada implementation of a UML State Machine class. It defines a set of abstract operations and attributes for managing states, including entry and exit actions, state invariants, and relationships with other states and state machines. The class provides a framework for modeling complex state-based systems and allows for redefinition and extension of existing states.
17 -- --
18 -- * Redistributions of source code must retain the above copyright --
19 -- notice, this list of conditions and the following disclaimer. --
20 -- --
21 -- * Redistributions in binary form must reproduce the above copyright --
22 -- notice, this list of conditions and the following disclaimer in the --
23 -- documentation and/or other materials provided with the distribution. --
24 -- --
102 -- Getter of State::deferrableTrigger.
103 --
104 -- A list of triggers that are candidates to be retained by the state
105 -- machine if they trigger no transitions out of the state (not consumed).
106 -- A deferred trigger is retained until the state machine reaches a state
JThis.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 238 lines
✨ Summary
This Java code defines a set of listener interfaces and event handlers for various GUI events, such as button clicks, key presses, and window changes. It also provides a method to update an image in a graphical application. The code uses a custom interpreter and call stack system to handle the event handling and method invocation.
This Java code defines a set of listener interfaces and event handlers for various GUI events, such as button clicks, key presses, and window changes. It also provides a method to update an image in a graphical application. The code uses a custom interpreter and call stack system to handle the event handling and method invocation.
64 ActionListener, AdjustmentListener, ComponentListener,
65 ContainerListener, FocusListener, ItemListener, KeyListener,
66 MouseListener, MouseMotionListener, TextListener, WindowListener,
68 // All listeners in javax.swing.event as of Swing 1.1
69 AncestorListener, CaretListener, CellEditorListener, ChangeListener,
70 DocumentListener, HyperlinkListener,
71 InternalFrameListener, ListDataListener, ListSelectionListener,
72 MenuDragMouseListener, MenuKeyListener, MenuListener, MouseInputListener,
73 PopupMenuListener, TableColumnModelListener, TableModelListener,
74 TreeExpansionListener, TreeModelListener, TreeSelectionListener,
75 TreeWillExpandListener, UndoableEditListener
76 {
ConditionalExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 70 lines
✨ Summary
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
42 * Get the variables from outside (parameters, globals ...)
43 *
44 * @param list the list where we will put variables
45 */
46 public void getOutsideVariable(final List list) {}
49 * get the modified variables.
50 *
51 * @param list the list where we will put variables
52 */
53 public void getModifiedVariable(final List list) {
60 * Get the variables used.
61 *
62 * @param list the list where we will put variables
63 */
64 public void getUsedVariable(final List list) {
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 121 lines
window.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 80 lines
14 ** met:
15 ** * Redistributions of source code must retain the above copyright
16 ** notice, this list of conditions and the following disclaimer.
17 ** * Redistributions in binary form must reproduce the above copyright
18 ** notice, this list of conditions and the following disclaimer in
46 class QContext2DCanvas;
47 QT_BEGIN_NAMESPACE
48 class QListWidget;
49 class QListWidgetItem;
60 Window(QWidget *parent = 0);
61 private slots:
62 void selectScript(QListWidgetItem *item);
63 void reportScriptError(const QScriptValue &value);
64 #ifndef QT_NO_SCRIPTTOOLS
68 void runScript(const QString &fileName, bool debug);
70 QListWidget *m_view;
71 Environment *m_env;
72 QContext2DCanvas *m_canvas;
xprt.c
(http://photon-android.googlecode.com/svn/)
C · 1160 lines
✨ Summary
This C code implements a transport layer for RPC (Remote Procedure Call) communications. It manages a pool of slots to handle incoming requests, prioritizes them based on their priority, and ensures that resources are released when no longer needed. The code also handles creation, destruction, and reference management of the transport instance.
This C code implements a transport layer for RPC (Remote Procedure Call) communications. It manages a pool of slots to handle incoming requests, prioritizes them based on their priority, and ensures that resources are released when no longer needed. The code also handles creation, destruction, and reference management of the transport instance.
107 spin_lock(&xprt_list_lock);
108 list_for_each_entry(t, &xprt_list, list) {
109 /* don't register the same transport class twice */
110 if (t->ident == transport->ident)
112 }
114 list_add_tail(&transport->list, &xprt_list);
115 printk(KERN_INFO "RPC: Registered %s transport module.\n",
116 transport->name);
139 spin_lock(&xprt_list_lock);
140 list_for_each_entry(t, &xprt_list, list) {
141 if (t == transport) {
142 printk(KERN_INFO
172 spin_lock(&xprt_list_lock);
173 list_for_each_entry(t, &xprt_list, list) {
174 if (strcmp(t->name, transport_name) == 0) {
175 spin_unlock(&xprt_list_lock);
Go_to_Column.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 52 lines
qxml.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 427 lines
46 #include <QtCore/qfile.h>
47 #include <QtCore/qstring.h>
48 #include <QtCore/qstringlist.h>
49 #include <QtCore/qlist.h>
98 void splitName(const QString&, QString&, QString&) const;
99 void processName(const QString&, bool, QString&, QString&) const;
100 QStringList prefixes() const;
101 QStringList prefixes(const QString&) const;
146 QString qname, uri, localname, value;
147 };
148 typedef QList<Attribute> AttributeList;
149 AttributeList attList;
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
7 *
8 * - Redistributions of source code must retain the above copyright notice, this
9 * list of conditions and the following disclaimer.
10 *
11 * - Redistributions in binary form must reproduce the above copyright notice,
394 // will be converted to strings, padded as appropriate, and added to the
395 // line buffer b. This is the "accumulator".
396 static ArrayList a = new ArrayList();
398 // where to write the completely beautified code.
565 // string literals. All extra spaces are removed from the output
566 // string, except that string literals are left as is.
567 ArrayList list = new ArrayList();
568 String s = new String("");
569 for (int i = 0; i < a.size(); i++) {
FileEntryTest.java (https://bitbucket.org/nbargnesi/idea.git) Java · 146 lines
24 import org.junit.Test;
26 import java.util.List;
28 public class FileEntryTest extends LocalHistoryTestCase {
90 Entry e2 = new FileEntry("another name", c("content"), -1, false);
92 List<Difference> dd = Entry.getDifferencesBetween(e1, e2);
93 assertDifference(dd, e1, e2);
94 }
111 FileEntry e2 = new FileEntry("name", c("another content"), -1, false);
113 List<Difference> dd = Entry.getDifferencesBetween(e1, e2);
114 assertDifference(dd, e1, e2);
115 }
TestFailedState.java (https://bitbucket.org/nbargnesi/idea.git) Java · 118 lines
26 import java.util.Arrays;
27 import java.util.List;
29 /**
31 */
32 public class TestFailedState extends AbstractState {
33 private final List<String> myPresentationText;
35 public TestFailedState(@Nullable final String localizedMessage,
36 @Nullable final String stackTrace)
37 {
38 myPresentationText = ContainerUtilRt.newArrayList(buildErrorPresentationText(localizedMessage, stackTrace));
39 }
README.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 126 lines
16 <http://www.jedit.org>.
18 A list of people who contributed to jEdit, either by submitting code or
19 edit modes to the core, or writing plugins can be viewed by selecting
20 'About jEdit' from jEdit's 'Help' menu.
68 If you would like to discuss jEdit and be informed when new versions are
69 released, you should subscribe to the mailing lists; see
70 <http://www.jedit.org/?page=feedback> for details.
72 If you would like to discuss the BeanShell scripting language, subscribe
73 to one of the BeanShell mailing lists by visiting
74 <http://www.beanshell.org/contact.html>.
JCompiler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 454 lines
✨ Summary
This Java code is a compiler for Java programs. It takes a set of .java
files, compiles them into bytecode, and then runs the resulting classes using Sun’s javac
tool. The compiled output is displayed in a GUI window, allowing users to view the compilation process and any errors that occur.
This Java code is a compiler for Java programs. It takes a set of .java
files, compiles them into bytecode, and then runs the resulting classes using Sun’s javac
tool. The compiled output is displayed in a GUI window, allowing users to view the compilation process and any errors that occur.
160 private Vector listeners = new Vector();
162 public void addBuildProgressListener(BuildProgressListener listener) {
163 listeners.addElement(listener);
164 }
166 public void removeBuildProgressListener(BuildProgressListener listener) {
167 listeners.removeElement(listener);
172 Log.log( Log.DEBUG, "JCompiler", " sendStatus()" );
174 //enumerate through all the BuildProgressListeners and report messages
175 for ( int i = 0; i < listeners.size(); ++i ) {
176 Log.log( Log.DEBUG, "JCompiler", " sending status of " + progress );
177 ( (BuildProgressListener)listeners.elementAt(i) ).reportStatus(progress, message);
178 }
normal.conf
(git://github.com/dellort/lumbricus.git)
Config · 363 lines
✨ Summary
This configuration code defines various visual settings for a graphical user interface (GUI) application, likely a game. It specifies colors, fonts, borders, and other visual elements to be used throughout the application, including buttons, labels, and windows. The code also sets up layout and rendering options, such as background images and font styles, to create a consistent and visually appealing user experience.
This configuration code defines various visual settings for a graphical user interface (GUI) application, likely a game. It specifies colors, fonts, borders, and other visual elements to be used throughout the application, including buttons, labels, and windows. The code also sets up layout and rendering options, such as background images and font styles, to create a consistent and visually appealing user experience.
gtkrc (http://gnome-colors.googlecode.com/svn/trunk/) Unknown · 555 lines
72 GtkMenu::vertical-padding = 0
74 WnckTasklist::fade-overlay-rect = 0
75 GtkEntry::honors-transparent-bg-hint = 1
76 GtkEntry::progress-border = { 2, 2, 2, 2 } # Border of GtkEntry progressbars.
483 widget_class "*.<GtkTreeView>.<GtkButton>" style "clearlooks-treeview-header"
484 widget_class "*.<GtkCTree>.<GtkButton>" style "clearlooks-treeview-header"
485 widget_class "*.<GtkList>.<GtkButton>" style "clearlooks-treeview-header"
486 widget_class "*.<GtkCList>.<GtkButton>" style "clearlooks-treeview-header"
490 widget_class "*.ETree.ECanvas" style "clearlooks-treeview-header"
491 widget_class "*GtkCTree*" style "evolution-hack"
492 widget_class "*GtkList*" style "evolution-hack"
493 widget_class "*GtkCList*" style "evolution-hack"
515 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
516 # Note that the work around assumes that the combobox is _not_ in appears-as-list mode.
517 # This style does not affect GtkComboBoxEntry, it does have an effect on comboboxes in appears-as-list mode though.
LICENSE (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 23 lines
INSTALL.libusb.in (https://libusb.svn.sourceforge.net/svnroot/libusb) Unknown · 60 lines
java_typemaps_proxy_runme.java
(https://swig.svn.sourceforge.net/svnroot/swig)
Java · 82 lines
✨ Summary
This Java code tests the functionality of the java_typemaps_proxy
library, which is used to interface with C++ code from Java. It creates objects, calls methods, and checks for correct behavior, including exception handling, garbage collection prevention, and template metaprogramming. The test ensures that the pure Java code compiles correctly and behaves as expected when interacting with native C++ code.
This Java code tests the functionality of the java_typemaps_proxy
library, which is used to interface with C++ code from Java. It creates objects, calls methods, and checks for correct behavior, including exception handling, garbage collection prevention, and template metaprogramming. The test ensures that the pure Java code compiles correctly and behaves as expected when interacting with native C++ code.
iriap.c
(http://photon-android.googlecode.com/svn/)
C · 1094 lines
✨ Summary
This C code implements a Linux kernel module that provides a file system interface to interact with LM-IAS (Logical Management Interface for Application Server) objects and their attributes. It allows users to list, read, and manipulate LM-IAS objects and their attributes using a sequence-based file system interface. The code also includes watchdog timer functionality to abort queries that take too long.
This C code implements a Linux kernel module that provides a file system interface to interact with LM-IAS (Logical Management Interface for Application Server) objects and their attributes. It allows users to list, read, and manipulate LM-IAS objects and their attributes using a sequence-based file system interface. The code also includes watchdog timer functionality to abort queries that take too long.
nsISpellChecker.h
(git://github.com/zpao/v8monkey.git)
C Header · 160 lines
✨ Summary
This is a C++ header file that defines an interface for a spell checker. It provides methods for setting and getting documents, checking words, replacing words, ignoring words, adding and removing words from personal dictionaries, and managing supported dictionaries. The interface is designed to be used by other components of the Mozilla browser.
This is a C++ header file that defines an interface for a spell checker. It provides methods for setting and getting documents, checking words, replacing words, ignoring words, adding and removing words from personal dictionaries, and managing supported dictionaries. The interface is designed to be used by other components of the Mozilla browser.
116 /**
117 * Returns the list of words in the user's personal dictionary.
118 * @param aWordList is an array of nsStrings that represent the
119 * list of words in the user's personal dictionary.
120 */
121 NS_IMETHOD GetPersonalDictionary(nsTArray<nsString> *aWordList) = 0;
123 /**
124 * Returns the list of strings representing the dictionaries
125 * the spellchecker supports. It was suggested that the strings
126 * returned be in the RFC 1766 format. This format looks something
130 * dictionaries supported by the spellchecker.
131 */
132 NS_IMETHOD GetDictionaryList(nsTArray<nsString> *aDictionaryList) = 0;
134 /**
init_32.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 536 lines
✨ Summary
This C code initializes and manages memory for a SPARC-based Linux system. It allocates valid address space, maps physical pages to virtual addresses, and tracks available memory. The code also handles memory initialization, freeing unused kernel memory, and flushing pages to RAM. Additionally, it provides functions for managing initrd memory and exporting the sparc_flush_page_to_ram
function.
This C code initializes and manages memory for a SPARC-based Linux system. It allocates valid address space, maps physical pages to virtual addresses, and tracks available memory. The code also handles memory initialization, freeing unused kernel memory, and flushing pages to RAM. Additionally, it provides functions for managing initrd memory and exporting the sparc_flush_page_to_ram
function.
96 int ctx;
98 ctx_list_pool = __alloc_bootmem(numctx * sizeof(struct ctx_list), SMP_CACHE_BYTES, 0UL);
100 for(ctx = 0; ctx < numctx; ctx++) {
101 struct ctx_list *clist;
103 clist = (ctx_list_pool + ctx);
108 ctx_used.next = ctx_used.prev = &ctx_used;
109 for(ctx = 0; ctx < numctx; ctx++)
110 add_to_free_ctxlist(ctx_list_pool + ctx);
111 }
libtasn1.h
(git://github.com/xbmc/xbmc.git)
C++ Header · 217 lines
✨ Summary
This is a C++ header file for the LIBTASN1 library, which provides functions and data structures for working with ASN.1 (Abstract Syntax Notation One) definitions. It defines constants, structures, and functions for parsing, encoding, and decoding ASN.1 data, including DER (Distinguished Encoding Rules) encoding and decoding.
This is a C++ header file for the LIBTASN1 library, which provides functions and data structures for working with ASN.1 (Abstract Syntax Notation One) definitions. It defines constants, structures, and functions for parsing, encoding, and decoding ASN.1 data, including DER (Distinguished Encoding Rules) encoding and decoding.
CCMenu.h
(git://github.com/kstenerud/ObjectAL-for-iPhone.git)
C Header · 0 lines
✨ Summary
This is a C header file for a CCMenu class, which is part of the cocos2d framework for iPhone development. It defines a menu system that can be customized with various alignment options and has properties such as opacity and color. The class allows adding items dynamically and conforms to certain protocols.
This is a C header file for a CCMenu class, which is part of the cocos2d framework for iPhone development. It defines a menu system that can be customized with various alignment options and has properties such as opacity and color. The class allows adding items dynamically and conforms to certain protocols.
54 /** initializes a CCMenu with it's items */
55 - (id) initWithItems: (CCMenuItem*) item vaList: (va_list) args;
57 /** align items vertically */
72 /** align items in rows of columns */
73 -(void) alignItemsInColumns: (NSNumber *) columns, ... NS_REQUIRES_NIL_TERMINATION;
74 -(void) alignItemsInColumns: (NSNumber *) columns vaList: (va_list) args;
76 /** align items in columns of rows */
77 -(void) alignItemsInRows: (NSNumber *) rows, ... NS_REQUIRES_NIL_TERMINATION;
78 -(void) alignItemsInRows: (NSNumber *) rows vaList: (va_list) args;
prompt-tests.rktl
(git://github.com/gmarceau/PLT.git)
Racket · 2307 lines
✨ Summary
This Racket code tests various aspects of composable continuations, a concept in functional programming that allows for efficient and flexible control flow. It verifies that prompts are properly handled when applying composable continuations, ensuring that the target prompt is still in place after composition. The tests cover different scenarios to ensure correctness and robustness of the continuation system.
This Racket code tests various aspects of composable continuations, a concept in functional programming that allows for efficient and flexible control flow. It verifies that prompts are properly handled when applying composable continuations, ensuring that the target prompt is still in place after composition. The tests cover different scenarios to ensure correctness and robustness of the continuation system.
9 (let pre-loop ([m m-top])
10 (if (zero? m)
11 (list
12 (do-mid-stream
13 (lambda ()
22 (lambda () 5000))))
23 (+ (loop (sub1 n))))))))))
24 (list (car (pre-loop (sub1 m))))))))))
25 (test '(5000) values result)))])
26 (try thread 5000 10000 (lambda (mid) (mid))
136 (with-continuation-mark
137 'x 17
138 (list* x y
139 (continuation-mark-set->list
236 (thread (lambda ()
237 (set! result (retry 0)))))
238 (list result did?))))
240 (with-cc-variants
help-doc.html (https://svn.apache.org/repos/asf/incubator/droids/) text · 0 lines
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="org/apache/droids/dynamic/package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
47 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Help</B></FONT> </TD>
129 Tree (Class Hierarchy)</H3>
130 <BLOCKQUOTE>
131 There is a <A HREF="overview-tree.html">Class Hierarchy</A> page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with <code>java.lang.Object</code>. The interfaces do not inherit from <code>java.lang.Object</code>.<UL>
132 <LI>When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.<LI>When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.</UL>
133 </BLOCKQUOTE>
135 Deprecated API</H3>
136 <BLOCKQUOTE>
137 The <A HREF="deprecated-list.html">Deprecated API</A> page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.</BLOCKQUOTE>
138 <H3>
139 Index</H3>
TwitterAlikeExample.html
(http://redis.googlecode.com/svn/trunk/)
HTML · 253 lines
✨ Summary
This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.
This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.
28 <div class="narrow">
29 <h1><a name="A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></h1>In this article I'll explain the design and the implementation of a <a href="http://retwis.antirez.com" target="_blank">simple clone of Twitter</a> written using PHP and <a href="http://code.google.com/p/redis/" target="_blank">Redis</a> as only database. The programming community uses to look at key-value stores like special databases that can't be used as drop in replacement for a relational database for the development of web applications. This article will try to prove the contrary.<br/><br/>Our Twitter clone, <a href="http://retwis.antirez.com" target="_blank">called Retwis</a>, is structurally simple, has very good performances, and can be distributed among N web servers and M Redis servers with very little efforts. You can find the source code <a href="http://code.google.com/p/redis/downloads/list" target="_blank">here</a>.<br/><br/>We use PHP for the example since it can be read by everybody. The same (or... much better) results can be obtained using Ruby, Python, Erlang, and so on.
30 <h1><a name="Key-value stores basics">Key-value stores basics</a></h1>
31 The essence of a key-value store is the ability to store some data, called <i>value</i>, inside a key. This data can later be retrieved only if we know the exact key used to store it. There is no way to search something by value. So for example I can use the command SET to store the value <b>bar</b> at key <b>foo</b>:<br/><br/><pre class="codeblock python" name="code">
57 LPUSH mylist c (now mylist holds 'c,b,a')
58 </pre>LPUSH means <i>Left Push</i>, that is, add an element to the left (or to the head) of the list stored at <i>mylist</i>. If the key <i>mylist</i> does not exist it is automatically created by Redis as an empty list before the PUSH operation. As you can imagine, there is also the RPUSH operation that adds the element on the right of the list (on the tail).<br/><br/>This is very useful for our Twitter clone. Updates of users can be stored into a list stored at <code name="code" class="python">username:updates</code> for instance. There are operations to get data or information from Lists of course. For instance LRANGE returns a range of the list, or the whole list.<br/><br/><pre class="codeblock python python python python python python python" name="code">
59 LRANGE mylist 0 1 => c,b
61 LRANGE mylist 0 -1 => c,b,a
62 </pre>Other important operations are LLEN that returns the length of the list, and LTRIM that is like LRANGE but instead of returning the specified range <b>trims</b> the list, so it is like <i>Get range from mylist, Set this range as new value</i> but atomic. We will use only this List operations, but make sure to check the <a href="http://code.google.com/p/redis/wiki/README" target="_blank">Redis documentation</a> to discover all the List operations supported by Redis.
63 <h3><a name="The set data type">The set data type</a></h3>
64 There is more than Lists, Redis also supports Sets, that are unsorted collection of elements. It is possible to add, remove, and test for existence of members, and perform intersection between different Sets. Of course it is possible to ask for the list or the number of elements of a Set. Some example will make it more clear. Keep in mind that SADD is the <i>add to set</i> operation, SREM is the <i>remove from set</i> operation, <i>sismember</i> is the <i>test if it is a member</i> operation, and SINTER is <i>perform intersection</i> operation. Other operations are SCARD that is used to get the cardinality (the number of elements) of a Set, and SMEMBERS that will return all the members of a Set.<br/><br/><pre class="codeblock python python python python python python python python python" name="code">
79 </pre>Ok I think we are ready to start coding!
80 <h2><a name="Prerequisites">Prerequisites</a></h2>
81 If you didn't download it already please <a href="http://code.google.com/p/redis/wiki/README" target="_blank">grab the source code of Retwis</a>. It's a simple tar.gz file with a few of .php files inside. The implementation is very simple. You will find the PHP library client inside (redis.php) that is used to talk with the Redis server from PHP. This library was written by <a href="http://qix.it" target="_blank">Ludovico Magnocavallo</a> and you are free to reuse this in your own projects, but for updated version of the library please download the Redis distribution.<br/><br/>Another thing you probably want is a working Redis server. Just get the source, compile with make, and run with ./redis-server and you are done. No configuration is required at all in order to play with it or to run Retwis in your computer.
82 <h2><a name="Data layout">Data layout</a></h2>
83 Working with a relational database this is the stage were the database layout should be produced in form of tables, indexes, and so on. We don't have tables, so what should be designed? We need to identify what keys are needed to represent our objects and what kind of values this keys need to hold.<br/><br/>Let's start from Users. We need to represent this users of course, with the username, userid, password, followers and following users, and so on. The first question is, what should identify an user inside our system? The username can be a good idea since it is unique, but it is also too big, and we want to stay low on memory. So like if our DB was a relational one we can associate an unique ID to every user. Every other reference to this user will be done by id. That's very simple to do, because we have our atomic INCR operation! When we create a new user we can do something like this, assuming the user is callled "antirez":<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">
igmp.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 244 lines
✨ Summary
This is a C header file that defines various data structures and functions for managing multicast (multicast) functionality on a network device. It provides an interface for joining, leaving, and manipulating multicast groups, as well as handling incoming multicast packets. The code appears to be part of the Linux kernel’s networking subsystem.
This is a C header file that defines various data structures and functions for managing multicast (multicast) functionality on a network device. It provides an interface for joining, leaving, and manipulating multicast groups, as well as handling incoming multicast packets. The code appears to be part of the Linux kernel’s networking subsystem.
164 #define IP_SFBLOCK 10 /* allocate this many at once */
166 /* ip_mc_socklist is real list now. Speed is not argument;
167 this list never used in fast path code
168 */
170 struct ip_mc_socklist
171 {
172 struct ip_mc_socklist *next;
173 struct ip_mreqn multi;
174 unsigned int sfmode; /* MCAST_{INCLUDE,EXCLUDE} */
175 struct ip_sf_socklist *sflist;
176 };
178 struct ip_sf_list
179 {
180 struct ip_sf_list *sf_next;