100+ results for 'function is_bot lang:PHP'

Not the results you expected?

em-tickets.php (https://github.com/sharpmachine/whiteantelopestudio.com.git) PHP · 242 lines

27 * @param mixed $event

28 */

29 function __construct( $object = false ){

30 global $wpdb;

31 if( is_numeric($object) || (is_object($object) && in_array(get_class($object), array("EM_Event","EM_Booking"))) ){

61 * @return EM_Event

62 */

63 function get_event(){

64 global $EM_Event;

65 if( is_object($EM_Event) && $EM_Event->event_id == $this->event_id ){

74 * @return bool

75 */

76 function has_ticket($ticket_id){

77 foreach( $this->tickets as $EM_Ticket){

78 if($EM_Ticket->ticket_id == $ticket_id){

AbstractFactory.php (https://bitbucket.org/hill2steve/mobileroom.git) PHP · 197 lines

46 );

47

48 public function create(ContainerBuilder $container, $id, $config, $userProviderId, $defaultEntryPointId)

49 {

50 // authentication provider

68 }

69

70 public function addConfiguration(NodeDefinition $node)

71 {

72 $builder = $node->children();

88 }

89

90 final public function addOption($name, $default = null)

91 {

92 $this->options[$name] = $default;

business-hours.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 393 lines

13 public $base;

14

15 public function get_name() {

16 return Handler::get_name();

17 }

18

19 public function get_title() {

20 return Handler::get_title();

21 }

22

23 public function get_icon() {

24 return Handler::get_icon();

25 }

module.php (https://gitlab.com/mostafame/team_website) PHP · 471 lines

8 var $module_category;

9

10 function __construct() {

11

12 $this->module_id = 'DSLC_TP_Excerpt';

17 }

18

19 function options() {

20

21 $dslc_options = array(

433 }

434

435 function output( $options ) {

436

437 global $dslc_active;

bestseller.php (https://github.com/smadi/arabian-land.git) PHP · 120 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/bestseller');

7

98 }

99

100 private function validate() {

101 if (!$this->user->hasPermission('modify', 'module/bestseller')) {

102 $this->error['warning'] = $this->language->get('error_permission');

Pdo.php (https://github.com/ntulip/piwik.git) PHP · 439 lines

53 * @throws Zend_Db_Statement_Exception

54 */

55 protected function _prepare($sql)

56 {

57 try {

73 * @throws Zend_Db_Statement_Exception

74 */

75 public function bindColumn($column, &$param, $type = null)

76 {

77 try {

98 * @throws Zend_Db_Statement_Exception

99 */

100 protected function _bindParam($parameter, &$variable, $type = null, $length = null, $options = null)

101 {

102 try {

bestseller.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 120 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/bestseller');

7

98 }

99

100 protected function validate() {

101 if (!$this->user->hasPermission('modify', 'module/bestseller')) {

102 $this->error['warning'] = $this->language->get('error_permission');

class-fs-admin-notices.php (https://github.com/livinglab/openlab.git) PHP · 321 lines

61 * @return FS_Admin_Notices

62 */

63 static function instance( $id, $title = '', $module_unique_affix = '', $is_network_and_blog_admins = false ) {

64 if ( ! isset( self::$_instances[ $id ] ) ) {

65 self::$_instances[ $id ] = new FS_Admin_Notices( $id, $title, $module_unique_affix, $is_network_and_blog_admins );

76 * blog admin pages.

77 */

78 protected function __construct( $id, $title = '', $module_unique_affix = '', $is_network_and_blog_admins = false ) {

79 $this->_id = $id;

80 $this->_title = $title;

119 * @uses add_action()

120 */

121 function add(

122 $message,

123 $title = '',

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

This Java code is part of a GUI application that displays and manages abbreviations with expansions. It creates a table to display the abbreviations and their corresponding expansions, allowing users to add, remove, and edit entries. The data is stored in an internal data structure and updated when changes are made to the table.

619 private int col;

620 /**

621 * Getter function for the field col

622 */

623 public int getCol() {

stata.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 451 lines

189 syn cluster stataParenGroup contains=stataParenError,stataBracketError,stataBraceError,stataSpecial,stataFormat

190

191 " Stata functions

192 " Math

193 syn region stataFunc matchgroup=Function start=/\<abs(/ end=/)/ contains=@stataFuncGroup

194 syn region stataFunc matchgroup=Function start=/\<acos(/ end=/)/ contains=@stataFuncGroup

195 syn region stataFunc matchgroup=Function start=/\<asin(/ end=/)/ contains=@stataFuncGroup

196 syn region stataFunc matchgroup=Function start=/\<atan(/ end=/)/ contains=@stataFuncGroup

197 syn region stataFunc matchgroup=Function start=/\<atan2(/ end=/)/ contains=@stataFuncGroup

198 syn region stataFunc matchgroup=Function start=/\<atanh(/ end=/)/ contains=@stataFuncGroup

199 syn region stataFunc matchgroup=Function start=/\<ceil(/ end=/)/ contains=@stataFuncGroup

200 syn region stataFunc matchgroup=Function start=/\<cloglog(/ end=/)/ contains=@stataFuncGroup

201 syn region stataFunc matchgroup=Function start=/\<comb(/ end=/)/ contains=@stataFuncGroup

options-sanitize.php (https://gitlab.com/pornmongkon.p/wordpress) PHP · 481 lines

5

6 /* Text that allows all html */

7 function cyberchimps_sanitize_text_html( $input ) {

8 $output = wp_kses_post( $input );

9

14

15 /* Unfiltered Textarea */

16 function cyberchimps_sanitize_unfiltered_textarea( $input ) {

17 $output = cyberchimps_get_option( 'html_box', '' );

18 if( current_user_can( 'unfiltered_html' ) ) {

29

30 /* CSS Textarea */

31 function cyberchimps_sanitize_csstextarea( $input ) {

32

33 // Remove unwanted white spaces from start and end.

module.php (https://gitlab.com/mostafame/team_website) PHP · 513 lines

8 var $module_category;

9

10 function __construct() {

11

12 $this->module_id = 'DSLC_TP_Title';

17 }

18

19 function options() {

20

21 $dslc_options = array(

462 }

463

464 function output( $options ) {

465

466 global $dslc_active;

filter.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 102 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/filter');

7

88 }

89

90 public function validate() {

91 if (!$this->user->hasPermission('modify', 'module/filter')) {

92 $this->error['warning'] = $this->language->get('error_permission');

perl.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 180 lines

35 endif

36

37 " Only define the function once.

38 if exists("*GetPerlIndent")

39 finish

43 set cpo-=C

44

45 function GetPerlIndent()

46

47 " Get the line to be indented

173 return ind

174

175 endfunction

176

177 let &cpo = s:cpo_save

filter.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 102 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/filter');

7

88 }

89

90 protected function validate() {

91 if (!$this->user->hasPermission('modify', 'module/filter')) {

92 $this->error['warning'] = $this->language->get('error_permission');

constants.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 446 lines ✨ Summary

This C++ header file defines constants and enumerations for the SCTP (Stream Control Transmission Protocol) protocol, including transport layer parameters, address scopes, retransmit reasons, lower cwnd reasons, and authentication-related constants. It provides a set of values that can be used throughout an application or library implementing SCTP functionality.

235 } sctp_sock_state_t;

236

237 /* These functions map various type to printable names. */

238 const char *sctp_cname(const sctp_subtype_t); /* chunk types */

239 const char *sctp_oname(const sctp_subtype_t); /* other events */

320

321 #define SCTP_COOKIE_MULTIPLE 32 /* Pad out our cookie to make our hash

322 * functions simpler to write.

323 */

324

375 ipv4_is_anycast_6to4(a))

376

377 /* Flags used for the bind address copy functions. */

378 #define SCTP_ADDR6_ALLOWED 0x00000001 /* IPv6 address is allowed by

379 local sock family */

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

191

192 <para>

193 In addition to the toolbar buttons, different functions can be accessed by

194 right clicking on each item in the tree.

195 </para>

riemann_zeta.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 0 lines ✨ Summary

This C++ code defines a function boost_riemann_zeta that calculates the Riemann zeta function for a given input x. It uses the Boost library’s c_policies::zeta function, which is likely implemented using a specialized algorithm. The function is declared with external linkage and throws an exception if the C99 standard is not supported.

9 #endif

10 #include <boost/math/tr1.hpp>

11 #include <boost/math/special_functions/zeta.hpp>

12 #include "c_policy.hpp"

13

filter.php (https://bitbucket.org/deringer/opencart.git) PHP · 102 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/filter');

7

88 }

89

90 protected function validate() {

91 if (!$this->user->hasPermission('modify', 'module/filter')) {

92 $this->error['warning'] = $this->language->get('error_permission');

compare.php (https://github.com/sansanwawa/e-commerse.git) PHP · 199 lines

1 <?php

2 class ControllerProductCompare extends Controller {

3 public function index() {

4 $this->language->load('product/compare');

5

159 }

160

161 public function update() {

162 $this->language->load('product/compare');

163

account.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 99 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/account');

7

85 }

86

87 protected function validate() {

88 if (!$this->user->hasPermission('modify', 'module/account')) {

89 $this->error['warning'] = $this->language->get('error_permission');

api_pointer.cpp (git://pkgs.fedoraproject.org/scilab) C++ · 208 lines

10 *

11 * Please note that piece of code will be rewrited for the Scilab 6 family

12 * However, the API (profile of the functions in the header files) will be

13 * still available and supported in Scilab 6.

14 */

compare.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 204 lines

1 <?php

2 class ControllerProductCompare extends Controller {

3 public function index() {

4 $this->language->load('product/compare');

5

166 }

167

168 public function add() {

169 $this->language->load('product/compare');

170

MysqlQuery.php (https://github.com/regality/zombie-core.git) PHP · 253 lines

50 * @param string $connector the connector from the config file.

51 */

52 public function __construct($query = '', $connector = 'mysql') {

53 if (MysqlQuery::$db == null) {

54 $config = getZombieConfig();

67 * Convert the query to a string.

68 */

69 public function __toString() {

70 return $this->getQueryString();

71 }

78 * @return MysqlResult

79 */

80 public function getMysqlResult($query, $debug = false) {

81 if ($debug) {

82 trigger_error("Query debug:" . $query, E_USER_NOTICE);

axis_label_exact.php (https://github.com/Proudio-Interactive/phpUnderControl.git) PHP · 304 lines

38 * @ignore

39 */

40 public function __construct( array $options = array() )

41 {

42 $this->properties['showLastValue'] = true;

58 * @ignore

59 */

60 public function __set( $propertyName, $propertyValue )

61 {

62 switch ( $propertyName )

88 * @return void

89 */

90 public function renderLabels(

91 ezcGraphRenderer $renderer,

92 ezcGraphBoundings $boundings,

bigbrother.php (https://bitbucket.org/pombredanne/spip-zone-treemap.git) PHP · 176 lines

12

13 // Met à jour la session et enregistre dans la base

14 function bigbrother_enregistrer_la_visite_du_site(){

15 if(($time < ($GLOBALS['visiteur_session']['date_visite'])) OR !($GLOBALS['visiteur_session']['date_visite'])){

16 session_set('date_visite', time());

38

39 // Teste s'il faut enregistrer la visite ou pas

40 function bigbrother_tester_la_visite_du_site(){

41 global $visiteur_session;

42 /**

43 * Ne pas prendre en compte les bots

44 */

45 if (_IS_BOT)

46 return;

47

boxes.php (https://github.com/Genesis-Simple/Genesis-Simple-Plugin.git) PHP · 367 lines

1 <?php

2 /**

3 * This next section defines functions that contain the content of the "boxes" that will be

4 * output by default on the "SEO Settings" page. There's a bunch of them.

5 *

6 */

7

8 function simplehooks_wp_hooks_box() {

9

10 simplehooks_form_generate( array(

22 }

23

24 function simplehooks_document_hooks_box() {

25

26 simplehooks_form_generate( array(

snip-lib.rkt (git://github.com/gmarceau/PLT.git) Racket · 118 lines ✨ Summary

This Racket code defines a set of functions and classes for working with “snips”, which appear to be graphical elements used in an editor. The functions provide information about snip dimensions, parent pasteboards, and apply transformations to snips. They also define classes for stretchable snips and editors, allowing for manipulation and interaction with these graphical elements.

11 ;; a snip

12 (define snip? (is-a?/c snip%))

13 ;; a snip to act as the varying argument to a recursive functions

14 (define linked-snip? (or/c snip? false/c))

15 ;; a function to act on snips being mapped

16 (define snip-visitor? any/c #;((snip?) (listof any/c) . ->* . (void)))

17 ;; the rest of the lists passed to a snip mapping function

18 (define rest-lists? (listof (listof any/c)))

19 ;; a class that contains a snip

80 [else acc])))

81

82 ;; applies the function to all the snips

83 (define (for-each-snip f first-snip . init-lists)

84 (let loop ([snip first-snip]

wishlist.php (https://gitlab.com/shapcy/opencart) PHP · 174 lines

1 <?php

2 class ControllerAccountWishList extends Controller {

3 public function index() {

4 if (!$this->customer->isLogged()) {

5 $this->session->data['redirect'] = $this->url->link('account/wishlist', '', true);

129 }

130

131 public function add() {

132 $this->load->language('account/wishlist');

133

store.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 354 lines

20 * @return Store

21 */

22 public static function create($table_name, $class_name = '', $id_name = 'id', $db_name = '')

23 {

24 return new self($table_name, $class_name, $id_name, $db_name);

30 protected $class_name = '';

31

32 function __construct($table_name, $class_name = '', $id_name = 'id', $db_name = '')

33 {

34 $this->db_name = $db_name ? $db_name : Database::get_main_database();

38 }

39

40 function get_db_name($object = '')

41 {

42 if ($this->db_name)

configuration.php (https://github.com/dkullmann/vielerets.git) PHP · 507 lines

23 var $fileName;

24

25 function Configuration($fileName = null)

26 {

27 if ($fileName != null)

36 }

37

38 function buildIndex()

39 {

40 if ($this->contents != null)

115 }

116

117 function getName()

118 {

119 return baseName($this->fileName);

special.php (https://github.com/smadi/arabian-land.git) PHP · 120 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/special');

7

98 }

99

100 private function validate() {

101 if (!$this->user->hasPermission('modify', 'module/special')) {

102 $this->error['warning'] = $this->language->get('error_permission');

changes-4.7.0 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 514 lines

58 NOTE: This is source-incompatible for the bogus QString(0) case.

59 * Removed internal but exported qt_winQString2MB() and qt_winMB2QString()

60 * Added setRawData() function (also revived the one in QByteArray)

61 * Various performance improvements

62 - QList

63 * Added reserve() function

64 * Various performance improvements

65 - QMetaType

66 * Significantly improved performance of the type() function

67 * [QTBUG-8235] Support QEasingCurve as a built in metatype.

68 * Added possibility to register several name for the same type with

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

This C code implements a proc interface for managing WAN devices and router statistics. It creates directories and files under /proc to display configuration, status, and statistics of connected WAN devices. The wanrouter_proc_init function initializes the interface, while wanrouter_proc_cleanup cleans it up when needed. The wanrouter_proc_add and wanrouter_proc_delete functions manage the creation and deletion of directories for individual WAN devices.

44 " Unknown" )

45

46 /****** Function Prototypes *************************************************/

47

48 #ifdef CONFIG_PROC_FS

72

73 /*

74 * Interface functions

75 */

76

special.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 120 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/special');

7

98 }

99

100 protected function validate() {

101 if (!$this->user->hasPermission('modify', 'module/special')) {

102 $this->error['warning'] = $this->language->get('error_permission');

store.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 111 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/store');

7

97 }

98

99 public function validate() {

100 if (!$this->user->hasPermission('modify', 'module/store')) {

101 $this->error['warning'] = $this->language->get('error_permission');

vc-accordion-tab.php (https://gitlab.com/darmawan.fatria/df-skp-2014) PHP · 130 lines

11 );

12

13 public function contentAdmin( $atts, $content = null ) {

14 $width = $el_class = $title = '';

15 extract( shortcode_atts( $this->predefined_atts, $atts ) );

74 }

75

76 public function mainHtmlBlockParams( $width, $i ) {

77 return 'data-element_type="' . $this->settings["base"] . '" class=" wpb_' . $this->settings['base'] . '"' . $this->customAdminBlockParams();

78 }

79

80 public function containerHtmlBlockParams( $width, $i ) {

81 return 'class="wpb_column_container vc_container_for_children"';

82 }

IsType.php (https://github.com/grjones/qframe.git) PHP · 169 lines

71 protected $type;

72

73 public function __construct($type)

74 {

75 switch ($type) {

109 * @return bool

110 */

111 public function evaluate($other)

112 {

113 switch ($this->type) {

158 * @access public

159 */

160 public function toString()

161 {

162 return sprintf(

Lexer.php (https://github.com/adrienbrault/doctrine2.git) PHP · 214 lines

100 * @param string $input A query string.

101 */

102 public function __construct($input)

103 {

104 $this->setInput($input);

108 * {@inheritdoc}

109 */

110 protected function getCatchablePatterns()

111 {

112 return [

122 * {@inheritdoc}

123 */

124 protected function getNonCatchablePatterns()

125 {

126 return ['\s+', '(.)'];

Font.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 542 lines

90 * its ramifications are

91 */

92 public function __construct($isSupervisor = false, $isConditional = false)

93 {

94 // Supervisor?

121 * @return Font

122 */

123 public function getSharedComponent()

124 {

125 return $this->parent->getSharedComponent()->getFont();

133 * @return array

134 */

135 public function getStyleArray($array)

136 {

137 return ['font' => $array];

Type.php (https://github.com/inmarelibero/Legacy-Code.git) PHP · 192 lines

58 class PHPUnit_Util_Type

59 {

60 public static function isType($type)

61 {

62 return in_array(

79 }

80

81 public static function shortenedExport($value)

82 {

83 if (is_string($value)) {

140 }

141

142 public static function shortenedString($string)

143 {

144 $string = preg_replace('#\n|\r\n|\r#', ' ', $string);

store.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 111 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/store');

7

97 }

98

99 protected function validate() {

100 if (!$this->user->hasPermission('modify', 'module/store')) {

101 $this->error['warning'] = $this->language->get('error_permission');

yuitree.xsl (git://github.com/hpcc-systems/HPCC-Platform.git) Extensible Stylesheet Language Transformations · 502 lines

90 </style>

91 </head>

92 <body class="yui-skin-sam" onload="setReloadFunction('refreshNode');buildTree();" onclick="checkTreeClick();">

93 <div id="left1" style="text-align:left; width:600px; font-size:0.85em; height:auto; min-height:100%;">

94 <div id="espNavTree" class=" ygtv-highlight" style="font-size:0.90em; padding: 2px; height: 100%;">&nbsp;</div>

105

106 /*

107 function init() {

108 var loader = new YAHOO.util.YUILoader({

109

118 //our TabView process; we can set this here or pass this

119 //in as an argument to the insert() method:

120 onSuccess: function() {

121

122 //YAHOO.util.Get.css('yui/build/treeview/assets/css/folders/tree.css');

Deviations.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 141 lines

21 public static function sumSquares(...$args)

22 {

23 $aArgs = Functions::flattenArrayIndexed($args);

24

25 $aMean = Averages::average($aArgs);

37 ((!Functions::isCellValue($k)) ||

38 (Functions::getCompatibilityMode() == Functions::COMPATIBILITY_OPENOFFICE))

39 ) {

40 $arg = (int) $arg;

66 $mean = Averages::average($aArgs);

67 if (!is_numeric($mean)) {

68 return Functions::DIV0();

69 }

70 $stdDev = StandardDeviations::STDEV($aArgs);

74

75 foreach ($aArgs as $k => $arg) {

76 if ((is_bool($arg)) && (!Functions::isMatrixValue($k))) {

77 } else {

78 // Is it a numeric value?

MySqlGrammar.php (https://gitlab.com/jjpa2018/dashboard) PHP · 329 lines

22 * @return string

23 */

24 protected function whereNull(Builder $query, $where)

25 {

26 if ($this->isJsonSelector($where['column'])) {

40 * @return string

41 */

42 protected function whereNotNull(Builder $query, $where)

43 {

44 if ($this->isJsonSelector($where['column'])) {

58 * @return string

59 */

60 public function whereFullText(Builder $query, $where)

61 {

62 $columns = $this->columnize($where['columns']);

Dumper.php (https://github.com/ewandor/horde.git) PHP · 216 lines

41 * @return string YAML representation of $value

42 */

43 public function dump($value, $options = array())

44 {

45 // validate & merge default options

78 * @return string

79 */

80 protected function _yamlize($key, $value, $indent)

81 {

82 if ($value instanceof Serializable) {

108 * @return string

109 */

110 protected function _yamlizeArray($array, $indent)

111 {

112 if (!is_array($array)) {

welcome.php (https://github.com/smadi/arabian-land.git) PHP · 113 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/welcome');

7

99 }

100

101 private function validate() {

102 if (!$this->user->hasPermission('modify', 'module/welcome')) {

103 $this->error['warning'] = $this->language->get('error_permission');

store.php (https://github.com/smadi/arabian-land.git) PHP · 111 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/store');

7

97 }

98

99 private function validate() {

100 if (!$this->user->hasPermission('modify', 'module/store')) {

101 $this->error['warning'] = $this->language->get('error_permission');

template_typedef_cplx5.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 23 lines

9

10 // This typedef triggers an inifinite recursion

11 // in the next test1() nd test2() function declarations

12

13 typedef std::complex<double> complex;

SchemaTestCase.php (https://github.com/robertleeplummerjr/bluebox.git) PHP · 113 lines

36 public $schema;

37

38 public function testYmlImport()

39 {

40 $path = dirname(__FILE__) . '/import_builder_test';

56 }

57

58 public function testBuildSchema()

59 {

60 $schema = new Doctrine_Import_Schema();

79 }

80

81 public function testSchemaRelationshipCompletion()

82 {

83 $this->buildSchema = new Doctrine_Import_Schema();

pavcustom.php (https://gitlab.com/fcupen/PHP-SHOPPING) PHP · 152 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/pavcustom');

7

138 }

139

140 protected function validate() {

141 if (!$this->user->hasPermission('modify', 'module/pavcustom')) {

142 $this->error['warning'] = $this->language->get('error_permission');

module.php (https://gitlab.com/mostafame/team_website) PHP · 487 lines

8 var $module_category;

9

10 function __construct() {

11

12 $this->module_id = 'DSLC_TP_Downloads_Button';

17 }

18

19 function options() {

20

21 $dslc_options = array(

428 }

429

430 function output( $options ) {

431

432 global $dslc_active;

UserAgentTest.php (https://gitlab.com/vannh/portal_training) PHP · 189 lines

10 protected static $json;

11

12 public function setUp()

13 {

14 $this->detect = new Mobile_Detect;

15 }

16

17 public static function generateJson()

18 {

19 //in case this gets run multiple times

113 }

114

115 public static function setUpBeforeClass()

116 {

117 //generate json file first

amazon_pay.php (https://gitlab.com/shapcy/opencart) PHP · 146 lines

5 private $error = array();

6

7 public function index() {

8 $this->load->language('module/amazon_pay');

9

122 }

123

124 protected function validate() {

125 if (!$this->user->hasPermission('modify', 'module/amazon_pay')) {

126 $this->error['warning'] = $this->language->get('error_permission');

134 }

135

136 public function install() {

137 $this->load->model('extension/event');

138 $this->model_extension_event->addEvent('amazon_pay', 'catalog/controller/account/logout/after', 'module/amazon_pay/logout');

plugin_ajax.php (https://gitlab.com/luyxtran264/myproject) PHP · 196 lines

3 class Transfers_Plugin_Ajax extends Transfers_BaseSingleton {

4

5 protected function __construct() {

6

7 // our parent class might contain shared code in its constructor

9 }

10

11 public function init() {

12

13 add_action( 'wp_ajax_number_format_i18n_request', array( $this, 'number_format_i18n_request' ) );

20 }

21

22 function transfers_extra_tables_ajax_request() {

23

24 if ( isset($_REQUEST) ) {

Alignment.php (https://github.com/allinside/Yii-CMS.git) PHP · 481 lines

116 * Create a new PHPExcel_Style_Alignment

117 */

118 public function __construct($isSupervisor = false)

119 {

120 // Supervisor?

128 * @return PHPExcel_Style_Alignment

129 */

130 public function bindParent($parent)

131 {

132 $this->_parent = $parent;

139 * @return boolean

140 */

141 public function getIsSupervisor()

142 {

143 return $this->_isSupervisor;

account.php (https://github.com/sansanwawa/e-commerse.git) PHP · 102 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/account');

7

88 }

89

90 private function validate() {

91 if (!$this->user->hasPermission('modify', 'module/account')) {

92 $this->error['warning'] = $this->language->get('error_permission');

Pql.php (https://github.com/markvince/CakePHP-GAStats-Plugin.git) PHP · 174 lines

39 * {@link Pql} is meant to be used statically.

40 */

41 private function __construct() {}

42

43 /**

54 * @throws InvalidArgumentException if value cannot be converted

55 */

56 public static function CreateValue($value) {

57 if ($value instanceof Value) {

58 return $value;

95 * @throws InvalidArgumentException if value cannot be converted

96 */

97 public static function ToString(Value $value) {

98 if ($value instanceof BooleanValue) {

99 return ($value->value) ? 'true' : 'false';

operators.py (https://bitbucket.org/sqlalchemy/sqlalchemy/) Python · 583 lines ✨ Summary

This code defines a set of operators and functions for working with data, including comparison operators, arithmetic operations, string manipulation, and more. It also provides a way to check if an operator is commutative, ordering modifier, associative, or has a certain precedence. The code appears to be part of a SQL-like query language or a database library.

96

97 def op(self, opstring):

98 """produce a generic operator function.

99

100 e.g.::

108 :param operator: a string which will be output as the infix operator

109 between this :class:`.ClauseElement` and the expression passed to the

110 generated function.

111

112 This function can also be used to make bitwise operators explicit. For

161 By default all methods call down to

162 :meth:`Operators.operate` or :meth:`Operators.reverse_operate`

163 passing in the appropriate operator function from the

164 Python builtin ``operator`` module or

165 a SQLAlchemy-specific operator function from

slideshow.php (https://github.com/smadi/arabian-land.git) PHP · 122 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/slideshow');

7

100 }

101

102 private function validate() {

103 if (!$this->user->hasPermission('modify', 'module/slideshow')) {

104 $this->error['warning'] = $this->language->get('error_permission');

Alignment.php (https://gitlab.com/techniconline/kmc) PHP · 475 lines

117 * its ramifications are

118 */

119 public function __construct($isSupervisor = FALSE, $isConditional = FALSE)

120 {

121 // Supervisor?

135 * @return PHPExcel_Style_Alignment

136 */

137 public function getSharedComponent()

138 {

139 return $this->_parent->getSharedComponent()->getAlignment();

146 * @return array

147 */

148 public function getStyleArray($array)

149 {

150 return array('alignment' => $array);

fb_mobile.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 117 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/fb_mobile');

7

103 }

104

105 private function validate() {

106 if (!$this->user->hasPermission('modify', 'module/fb_mobile')) {

107 $this->error['warning'] = $this->language->get('error_permission');

IsType.php (https://bitbucket.org/rybadour/todo_list_site.git) PHP · 190 lines

102 * @throws PHPUnit_Framework_Exception

103 */

104 public function __construct($type)

105 {

106 if (!isset($this->types[$type])) {

124 * @return bool

125 */

126 protected function matches($other)

127 {

128 switch ($this->type) {

180 * @return string

181 */

182 public function toString()

183 {

184 return sprintf(

slideshow.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 122 lines

3 private $error = array();

4

5 public function index() {

6 $this->language->load('module/slideshow');

7

100 }

101

102 protected function validate() {

103 if (!$this->user->hasPermission('modify', 'module/slideshow')) {

104 $this->error['warning'] = $this->language->get('error_permission');

Class.php (https://gitlab.com/oytunistrator/coffeescript-php) PHP · 277 lines

20 }

21

22 function add_bound_functions($options)

23 {

24 if ($this->bound_funcs)

32 }

33

34 function add_properties($node, $name, $options)

35 {

36 $props = array_slice($node->base->properties, 0);

157 }

158

159 function determine_name()

160 {

161 if ( ! (isset($this->variable) && $this->variable))

hooks.php (https://github.com/digitalstrategyworks/Reese-WordPress.git) PHP · 240 lines

4 */

5

6 function thesis_hook_before_html() {

7 do_action('thesis_hook_before_html');

8 }

9

10 function thesis_hook_after_html() {

11 do_action('thesis_hook_after_html');

12 }

13

14 function thesis_hook_before_header() {

15 do_action('thesis_hook_before_header');

16 }

Xml.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 166 lines

33 * @param \Magento\Framework\Xml\Generator $xmlGenerator

34 */

35 public function __construct(\Magento\Framework\Xml\Generator $xmlGenerator)

36 {

37 $this->_xmlGenerator = $xmlGenerator;

43 * @return string

44 */

45 public function getMimeType()

46 {

47 return self::MIME_TYPE;

54 * @return string

55 */

56 public function render($data)

57 {

58 $formattedData = $this->_formatData($data, true);

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

This Java code creates an adapter that communicates with native functions of macOS, allowing for custom application behavior. It sets up event listeners to handle various application events, such as quit, about, and preferences menus, and allows developers to override these behaviors by providing their own implementation methods. The adapter uses reflection to interact with the native macOS API.

3 * :folding=explicit:collapseFolds=1:

4 *

5 * OSXAdapter.java - An adapter which communicates with the native functions of osx

6 * Copyright (C) 2008 Seph M. Soliman

7 *

CHANGELOG (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 560 lines

32 VERSION 1.0.5

33 [matthew payne]

34 -added functionality to load/store properties for associating external applications

35 with specific file extentions. For instances, (".gif" can optionally be opened up with gimp or paintshop,

36 or "css" with w/topstyle).

547 - (DONE)use a correct temp dir

548 - (DONE)test it out when there aren't any files define...

549 - (DONE)add SAVE functionality.

550 - (DONE)delete a project

551 - (DONE)remove a file from a project

module.php (https://gitlab.com/mostafame/team_website) PHP · 384 lines

8 var $module_category;

9

10 function __construct() {

11

12 $this->module_id = 'DSLC_TP_Thumbnail';

17 }

18

19 function options() {

20

21 $dslc_options = array(

314 }

315

316 function output( $options ) {

317

318 global $dslc_active;

type_functions.php (https://github.com/F5/zetacomponents.git) PHP · 161 lines

31 * @access private

32 */

33 class ezcTemplateTypeFunctions extends ezcTemplateFunctions

34 {

35

36 /**

37 * Translates a function used in the Template language to a PHP function call.

38 * The function call is represented by an array with three elements:

46 * @return array(mixed)

47 */

48 public static function getFunctionSubstitution( $functionName, $parameters )

49 {

50 switch ( $functionName )

68 // is_float( $v )

69 case "is_float": return array( array( "%var" ),

70 self::functionCall( "is_float", array( "%var" ) ) );

71

72 // is_int( $v )::

resource.php (https://github.com/beaudesigns/recurly-client-php.git) PHP · 157 lines

7 protected $_errors;

8

9 abstract protected function getNodeName();

10 abstract protected function getWriteableAttributes();

11 abstract protected function getRequiredAttributes();

12

13 public function __construct($href = null, $client = null)

20

21

22 public function __set($k, $v)

23 {

24 $this->_values[$k] = $v;

25 $this->_unsavedKeys[$k] = true;

26 }

27 public function __isset($k)

28 {

29 return isset($this->_values[$k]);

test_ThumbnailPicker.html (http://enginey.googlecode.com/svn/trunk/) HTML · 147 lines ✨ Summary

This HTML code creates a web page that tests the functionality of the dojox.image.ThumbnailPicker widget, which displays images with thumbnails and allows users to click on them for more information. The page demonstrates different scenarios using two data stores: Flickr REST APIs and an item file read store, showcasing various features such as linking, cursor changes, and alignment.

32 reads from the Flickr REST APIs.

33 */

34 function initFlickrGallery() {

35 var flickrRestStore = new dojox.data.FlickrRestStore();

36 var req = {

60 from the JSON URL.

61 */

62 function initItemStoreGallery(){

63 var itemRequest = {

64 query: {},

79

80 //Subscribe to clicks on the thumbnails, and print out the information provided

81 function doSubscribe(){

82 function updateDiv(packet){

92 //When an image in the ThumbnailPicker is clicked on, it publishes

93 //information on the image to a topic, whose name is found by calling

94 //the 'getTopicName' function on the widget.

95 dojo.subscribe(dijit.byId('thumbPicker1').getClickTopicName(), updateDiv);

96 dojo.subscribe(dijit.byId('thumbPicker2').getClickTopicName(), updateDiv);

checkout.php (https://gitlab.com/hazelnuts23/unitedfoodstuff) PHP · 147 lines

1 <?php

2 class ControllerCheckoutCheckout extends Controller {

3 public function index() {

4 // Validate cart has products and has stock.

5 if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {

95 }

96

97 public function country() {

98 $json = array();

99

121 }

122

123 public function customfield() {

124 $json = array();

125

affiliate.php (https://github.com/sansanwawa/e-commerse.git) PHP · 102 lines

3 private $error = array();

4

5 public function index() {

6 $this->load->language('module/affiliate');

7

88 }

89

90 private function validate() {

91 if (!$this->user->hasPermission('modify', 'module/affiliate')) {

92 $this->error['warning'] = $this->language->get('error_permission');

Image.php (https://gitlab.com/dae.nuli/toko) PHP · 125 lines

21 {

22

23 function render(Frame $frame)

24 {

25 // Render background & borders

isapnp.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 132 lines ✨ Summary

This C header file provides support for ISA Plug & Play (PnP) devices, allowing them to be detected and configured by the operating system. It defines data structures and macros for representing device IDs, vendors, and functions, as well as functions for reading and writing to PnP devices. The code is designed to work with both kernel and user-space applications.

37 (((x)&0x00f0)<<8)|\

38 (((x)&0x000f)<<8))

39 #define ISAPNP_FUNCTION(x) ISAPNP_DEVICE(x)

40

41 /*

56 #define ISAPNP_DEVICE_ID(_va, _vb, _vc, _function) \

57 { .vendor = ISAPNP_VENDOR(_va, _vb, _vc), .function = ISAPNP_FUNCTION(_function) }

58

59 /* export used IDs outside module */

65 unsigned short card_vendor, card_device;

66 struct {

67 unsigned short vendor, function;

68 } devs[ISAPNP_CARD_DEVS]; /* logical devices */

69 };

71 #define ISAPNP_DEVICE_SINGLE(_cva, _cvb, _cvc, _cdevice, _dva, _dvb, _dvc, _dfunction) \

72 .card_vendor = ISAPNP_VENDOR(_cva, _cvb, _cvc), .card_device = ISAPNP_DEVICE(_cdevice), \

73 .vendor = ISAPNP_VENDOR(_dva, _dvb, _dvc), .function = ISAPNP_FUNCTION(_dfunction)

74 #define ISAPNP_DEVICE_SINGLE_END \

75 .card_vendor = 0, .card_device = 0

Page.php (https://gitlab.com/ealexis.t/kiosco) PHP · 199 lines

35 private $_canvas;

36

37 function __construct(PageFrameDecorator $frame)

38 {

39 parent::__construct($frame);

40 }

41

42 function apply_page_style(Frame $frame, $page_number)

43 {

44 $style = $frame->get_style();

84 * http://www.w3.org/TR/CSS21/page.html

85 */

86 function reflow(BlockFrameDecorator $block = null)

87 {

88 $fixed_children = array();

package.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 38 lines ✨ Summary

This HTML code outputs a documentation page explaining how to create custom nodes for a project viewer plugin. It outlines the steps required to create a new node class, node handler, and action, providing guidance on implementing these components to make the node persistently saved with the corresponding project. The process is considered experimental.

2

3 <p>It's possible to create new kinds of nodes to be inserted into a project.

4 Although not tested, all the necessary functionality is available. To create

5 a new kind of node, the following steps need to be taken:</p>

6

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.

114 void transfer(); // coroutine transfer to this process

115

116 // termination functions

117 static void volatile abort_process();

118 static void volatile terminate_process();

348 }

349

350 // stack-switching functions; execute the continuation function on the VM stack

351 void switchToVMStack(doFn continuation);

352 oop switchToVMStack(fntype continuation, void* arg1);

AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

36 class AndCondition extends ConditionBase implements Condition {

37

38 public function evaluate() {

39 foreach($this as $c) { // ConditionBase implements IteratorAggregator

40 if (!$c->evaluate()) {

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

86 class Cursor : public RefCounted<Cursor> {

87 public:

88 virtual bool continueFunction(const IDBKey* = 0) = 0;

89 virtual PassRefPtr<IDBKey> key() = 0;

90 virtual PassRefPtr<IDBKey> primaryKey() = 0;

zone.hh (git://github.com/ticking/self.git) C++ Header · 270 lines ✨ Summary

This C++ header file defines a memory management system for a compiler, specifically for handling nmethods (optimized methods). It provides classes and functions for managing memory allocation, deallocation, and usage tracking, as well as features like LRU caching and frame chaining. The code is designed to be used in a compiler environment, with various zones (memory regions) and objects (nmethods) that interact with each other.

187 };

188

189 // use this to make sure frames are unchained when returning from function

190 class FrameChainer {

191 zone* z;

ScriptingCore.cpp (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ · 882 lines

35 std::vector<sc_register_sth> registrationList;

36

37 static void executeJSFunctionFromReservedSpot(JSContext *cx, JSObject *obj,

38 jsval &dataVal, jsval &retval) {

39

44 jsval thisObj = JS_GetReservedSlot(obj, 1);

45 if(thisObj == JSVAL_VOID) {

46 JS_CallFunctionValue(cx, obj, func, 1, &dataVal, &retval);

47 } else {

48 assert(!JSVAL_IS_PRIMITIVE(thisObj));

49 JS_CallFunctionValue(cx, JSVAL_TO_OBJECT(thisObj), func, 1, &dataVal, &retval);

50 }

51 // }

COMPILER.H (git://github.com/AnimatorPro/Animator-Pro.git) C Header · 138 lines ✨ Summary

This is a header file that standardizes macros and options for different compilers used in PJ, a game engine. It defines several macros to fix quirks between different compilers and provides options for performance tuning. The code also includes definitions for specific compilers such as Watcom C/386, High C, and Borland Turbo C.

13 * appropriate to your compiler. Currently, these macros are:

14 *

15 * NOFUNC - A NULL pointer that works for function pointers.

16 * copy_va_list - Copy a value from one va_list variable to another.

17 *

26 * Items specific to 386/protected mode, but not any given compiler...

27 *

28 * norm_pointer is a function for the 86/286, but in protected mode with

29 * a flat address space it's unnecessary.

30 ****************************************************************************/

44

45 #pragma off(unreferenced); /* don't whine about unused */

46 /* function parameters. */

47

48 #define PROTECTED /* not sure what this is for. */

CSSParser.cpp (git://github.com/CyanogenMod/android_external_webkit.git) C++ · 5431 lines ✨ Summary

This C++ code is part of a web browser’s CSS parser, responsible for parsing and validating CSS properties. It checks the validity of individual CSS properties, such as background, border, and outline, by verifying their syntax, values, and relationships with other properties in shorthand declarations. The code returns true if the property is valid or false otherwise.

188 // that can potentially change the length of the string rather than the character

189 // by character kind. If we don't need Unicode lowercasing, it would be good to

190 // simplify this function.

191

192 if (charactersAreAllASCII(characters, length)) {

297

298 #ifdef ANDROID_INSTRUMENT

299 android::TimeCounter::record(android::TimeCounter::CSSParseTimeCounter, __FUNCTION__);

300 #endif

301 return ok;

976 m_valueList->next();

977 }

978 } else if (value->unit == CSSParserValue::Function && equalIgnoringCase(value->function->name, "-webkit-gradient(")) {

979 if (parseGradient(parsedValue))

980 m_valueList->next();

icon.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 199 lines

79 <SEQ TYPE="OPERATOR">/</SEQ>

80

81 <!-- Function calls -->

82 <MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="OPERATOR">(</MARK_PREVIOUS>

176 <KEYWORD3>_PIPES</KEYWORD3>

177 <KEYWORD3>_PRESENTATION_MGR</KEYWORD3>

178 <KEYWORD3>_SYSTEM_FUNCTION</KEYWORD3>

179 <KEYWORD3>_UNIX</KEYWORD3>

180 <KEYWORD3>_VMS</KEYWORD3>

181 <KEYWORD3>_WINDOW_FUNCTIONS</KEYWORD3>

182 <KEYWORD3>_X_WINDOW_SYSTEM</KEYWORD3>

183

poly_function_funop.hpp (http://hadesmem.googlecode.com/svn/trunk/) C++ Header · 0 lines ✨ Summary

This C++ header code defines a function that takes a variable number of arguments and returns a Derived object, which is constructed from the input arguments using a template instantiation process. The function uses a recursive approach to handle different numbers of arguments, with each recursive call taking one fewer argument than the previous one.

1 ///////////////////////////////////////////////////////////////////////////////

2 // poly_function_funop.hpp

3 // Contains overloads of poly_function\<\>::operator()

ndis_events.c (https://bitbucket.org/freebsd/freebsd-head/) C · 809 lines ✨ Summary

This C code initializes a Windows-based network interface for receiving notifications about network events, such as packet arrival and error conditions. It creates an instance of a WMI (Windows Management Instrumentation) object sink, connects to a WMI server, and registers asynchronous notifications with the sink. The sink provides methods for querying, adding references, releasing, indicating, and setting the status of the notification.

45 #define BstrFree(x) if (x) SysFreeString(x)

46

47 /* WBEM / WMI wrapper functions, to perform in-place conversion of WCHARs to

48 * BSTRs */

49 HRESULT STDMETHODCALLTYPE call_IWbemServices_ExecQuery(

auto-nullary-test-case.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code is a documentation page for Boost Test Library, specifically explaining how to create a nullary function based test case with automated registration using the BOOST_AUTO_TEST_CASE macro. It provides an example and explains the benefits of using this macro. The page includes links to related documents and a table of contents.

9 <link rel="prev" href="manual-nullary-test-case.html" title="Manually registered nullary function based test case">

10 <link rel="next" href="unary-test-case.html" title="Unary function based test case">

11 <script language="JavaScript1.2" src="../../../../js/boost-test.js"></script>

12 </head>

18 </a><a href="../test-organization.html">Test organization</a><a href="../fixture.html">

19 &gt;

20 </a><a href="nullary-test-case.html">Nullary function based test case</a><a href="unary-test-case.html">

21 &gt;

22 </a><b>Automated registration</b>

40 existing test case, implemented as a free function, registered in place are illustrated in the following

41 example (compare with <a class="xref" href="manual-nullary-test-case.html#utf.user-guide.test-organization.manual-nullary-test-case.example01" title="Example 5. Nullary free function manually registered">Example 5, &#8220;Nullary free function manually registered&#8221;</a>):

42 </p>

43 <div class="example">

49 //____________________________________________________________________________//

50

51 BOOST_AUTO_TEST_CASE( free_test_function )

52 {

53 BOOST_CHECK( true /* test assertion */ );

btkGetPoints.cpp (http://b-tk.googlecode.com/svn/BTK/trunk/) C++ · 52 lines ✨ Summary

This is a MEX-file for Matlab that creates a structure with information about points in an acquisition object.

39 #include <btkAcquisition.h>

40

41 void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])

42 {

43 if(nrhs!=1)

globals_eval_0x77.html (http://micropolis.googlecode.com/svn/trunk/) HTML · 72 lines ✨ Summary

This is a Doxygen-generated documentation file for a C++ project, specifically for Micropolis. It contains information about the classes and functions in the project, including their parameters, return types, and descriptions. The HTML code output includes navigation links to other pages in the documentation, as well as a list of all files included in the project.

25 <ul>

26 <li><a href="globals.html"><span>All</span></a></li>

27 <li><a href="globals_func.html"><span>Functions</span></a></li>

28 <li><a href="globals_vars.html"><span>Variables</span></a></li>

29 <li><a href="globals_type.html"><span>Typedefs</span></a></li>

checkcalltimeref.sh (git://github.com/ezsystems/ezpublish.git) Shell · 3 lines

1 #!/bin/sh

2

3 grep -n -H -E '[a-zA-Z0-9_]+ *\( [^&]*&\$[a-zA-Z_]+' $1 | grep -v -E 'function &?[a-zA-Z0-9]+ *\('

4

.cvsignore (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 336 lines

111 features

112 friends

113 function_typedef

114 fvirtual

115 global_ns_arg

if_cscop.txt (https://code.google.com/p/msysgit/) Unknown · 491 lines

11 a cscope query is just like jumping to any tag; it is saved on the tag stack

12 so that with the right keyboard mappings, you can jump back and forth between

13 functions as you normally would with |tags|.

14

15 1. Cscope introduction |cscope-intro|

56 Where is this function in the source files?

57 What functions call this function?

58 What functions are called by this function?

125 0 or s: Find this C symbol

126 1 or g: Find this definition

127 2 or d: Find functions called by this function

128 3 or c: Find functions calling this function

392

393 A couple of very commonly used cscope queries (using ":cs find") is to

394 find all functions calling a certain function and to find all occurrences

395 of a particular C symbol. To do this, you can use these mappings as an

396 example: >

CSSDefinition.php (http://0byte.googlecode.com/svn/trunk/) PHP · 39 lines ✨ Summary

This is a custom HTMLPurifier_Printer class that extends the HTMLPurifierPrinter class and overrides its render() method to display information about the CSS definition in a table format. The class uses the getClass() function to extract the name of the AttrDef class from the object, which is then used as the definition for each property. The resulting output is a table with two columns: Property and Definition, where the former displays the name of each property and the latter shows the corresponding AttrDef_ class name.

6 protected $def;

7

8 public function render($config) {

9 $this->def = $config->getCSSDefinition();

10 $ret = '';

generator.py (git://github.com/couchapp/couchapp.git) Python · 368 lines ✨ Summary

This Python code generates a CouchApp using the couchapp library. It takes three arguments: the path to the app directory, the type of app (either “view”, “list”, “show”, “filter”, “function”, “vendor”, “update”, or “spatial”), and the name of the app.

The code first checks if the couchapp library is installed, and then it generates a new CouchApp using the specified type and name. It also saves the app’s ID to a file named _id.

76 mytmpl/

77 app/

78 functions/

79 vendor/

80

130 :param func_type: function type. e.g. ``view``, ``show``.

131 :param name: the function name

132 :param template: the template set

133

137 Here we show the detail structure of ``functions`` dir::

138

139 functions/

140 filter.js

141 list.js

166 '{0}.js'.format(name)))

167

168 elif func_type == 'function': # user defined function

169 dir_ = path

170 file_list.append(('{0}.js'.format(name),

Tags.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 354 lines ✨ Summary

This is an HTML document that serves as a documentation page for a Java-based application, likely a plugin or extension for a text editor like Eclipse. It provides information about the application’s features, usage, and version history, presented in a structured format with headings, paragraphs, and links to external resources.

45 The Tags plugin allows a user to jump to the definition of a specific language

46 object or "tag" using tag index files. For example, in C programs, the user can

47 immediatly jump to the definition of a desired function or data structure

48 without having to know where or what file it is defined. Tag jumping can be

49 accomplished by either selecting the desired tag, placing the cursor on the

dynamic_interval_traits_id505876.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

39 <span class="keyword">typedef</span> <span class="identifier">DomainT</span> <a name="boost.icl.dynamic_interval_traits_id505876.domain_type"></a><span class="identifier">domain_type</span><span class="special">;</span>

40

41 <span class="comment">// <a class="link" href="dynamic_interval_traits_id505876.html#id505914-bb">public member functions</a></span>

42 <span class="keyword">typedef</span> <a class="link" href="dynamic_interval_traits_id505876.html#id505917-bb"><span class="identifier">ICL_COMPARE_DOMAIN</span></a><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span>

43

44 <span class="comment">// <a class="link" href="dynamic_interval_traits_id505876.html#id505932-bb">public static functions</a></span>

45 <span class="keyword">static</span> interval_type

46 <a class="link" href="dynamic_interval_traits_id505876.html#id505935-bb"><span class="identifier">construct</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&amp;</span><span class="special">,</span> <a class="link" href="interval_bounds.html" title="Class interval_bounds">interval_bounds</a><span class="special">)</span><span class="special">;</span>

53 <div class="refsect2" lang="en">

54 <a name="id1026111"></a><h3>

55 <a name="id505914-bb"></a><code class="computeroutput">dynamic_interval_traits</code> public member functions</h3>

56 <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="keyword">typedef</span> <a name="id505917-bb"></a><span class="identifier">ICL_COMPARE_DOMAIN</span><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>

57 </div>

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

299 If your plugin does a runtime check for the existence of another

300 plugin, and uses its services if it exists, but can otherwise

301 function fine, then you *MUST* add an optional dependency on that

302 plugin, otherwise reloading plugins will leave stale classes in the

303 active class loader.

546 progress").

547

548 - The backspace key now functions correctly with a tall caret.

549

550 - Making changes in a buffer before the start of a rectangular selection

898

899 - Drag and drop in the text area. You can disable this in the Mouse pane

900 of the Global Options dialog box. The functionality of the DragAndDrop

901 plugin (handling files dropped from your operating system's file

902 manager) has been incorporated too.

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

This C code implements a Watchdog driver for the W83977AF chip, which is used to monitor and control system stability. It provides a Linux kernel module that registers a watchdog device with the operating system, allowing it to be controlled and monitored through standard Linux interfaces. The driver can start and stop the watchdog, set its timeout value, and receive notifications when the system goes down or is halted.

348 * @arg: argument pointer

349 *

350 * The watchdog API defines a common set of functions for all watchdogs

351 * according to their available features.

352 */

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.

18 *

19 * We do not actually manage the physical storage of the journal in this

20 * file: that is left to a per-journal policy function, which allows us

21 * to store the journal within a filesystem-specified area for ext2

22 * journaling (ext2 can use a reserved inode for storing the log).

95

96 /*

97 * Helper function used to manage commit timeouts

98 */

99

106

107 /*

108 * kjournald2: The main thread function used to manage a logging device

109 * journal.

110 *

verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 220 lines

172

173 <!-- System Tasks With No/Optional Arguments -->

174 <FUNCTION>$stop</FUNCTION>

175 <FUNCTION>$finish</FUNCTION>

183 <FUNCTION>$monitoron</FUNCTION>

184 <FUNCTION>$monitoroff</FUNCTION>

185 <FUNCTION>$random</FUNCTION>

192 <FUNCTION>or</FUNCTION>

193 <FUNCTION>nor</FUNCTION>

194 <FUNCTION>xor</FUNCTION>

212 <FUNCTION>rtranif0</FUNCTION>

213 <FUNCTION>rtranif1</FUNCTION>

214 <FUNCTION>pullup</FUNCTION>

215 <FUNCTION>pulldown</FUNCTION>

216 </KEYWORDS>

217 </RULES>

unwind.h (https://bitbucket.org/freebsd/freebsd-head/) C++ Header · 157 lines ✨ Summary

This C++ header file provides a platform-independent unwind library, allowing for exception handling and stack unwinding across different operating systems. It defines various functions and structures to manage exceptions, frames, and registers, providing a way to handle runtime errors in a portable manner. The library is designed to work with both C and C++ codebases.

138

139 /* Find the start-address of the procedure containing the specified IP

140 or NULL if it cannot be found (e.g., because the function has no

141 unwind info). Note: there is not necessarily a one-to-one

142 correspondence between source-level functions and procedures: some

143 functions don't have unwind-info and others are split into multiple

144 procedures. */

145 extern void *_Unwind_FindEnclosingFunction (void *);

PLRALLOC.ASM (git://github.com/AnimatorPro/Animator-Pro.git) Assembly · 89 lines ✨ Summary

This is a set of assembly language routines for allocating and freeing memory below the 1MB line in DOS using Phar Lap’s special functions. The pj_dosmem_alloc routine takes a size argument and returns a pointer to a structure that describes the allocated memory block, which can be used to free it later with the pj_dosmem_free routine.

2 ;* PLRALLOC.ASM - Allocate/Free DOS real (below 1mb line) memory (Phar Lap).

3 ;*

4 ;* Phar Lap has special functions for allocating memory below the 1mb line.

5 ;* It (like native DOS) deals with things in terms of segments and

6 ;* paragraphs. Our caller deals with far32 pointers and bytes, so the

35 add ebx,15 ; round up to next 16-byte value,

36 shr ebx,4 ; adjust to paragraph count.

37 mov eax,25c0h ; pharlap alloc-dos-memory function,

38 int 21h ; do it. if CARRY set, go handle

39 jnc short #good ; error, else move returned DOS

73 test ecx,ecx ; NULL, just punt, else pass it

74 jz short #punt ; to the pharlap free DOS memory

75 mov ax,25C1h ; function.

76 int 21h ; do it.

77 mov edx,#block