100+ results for 'php floor'

Not the results you expected?

content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines

1 <?php

2 //

3 // Created on: <2007-11-21 13:01:28 ab>

19 // You should have received a copy of version 2.0 of the GNU General

20 // Public License along with this program; if not, write to the Free

21 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,

22 // MA 02110-1301, USA.

23 //

VacancyListRestController.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 189 lines

1 <?php

2

3 /**

15 *

16 * You should have received a copy of the GNU General Public License along with this program;

17 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

18 * Boston, MA 02110-1301, USA

19 */

TerminationReasonConfigurationDao.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 184 lines

1 <?php

2 /**

3 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures

14 *

15 * You should have received a copy of the GNU General Public License along with this program;

16 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

17 * Boston, MA 02110-1301, USA

18 */

test_ntp.cc (https://bitbucket.org/camp0/aiengine.git) C++ · 220 lines

16 * You should have received a copy of the GNU Library General Public

17 * License along with this library; if not, write to the

18 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,

19 * Boston, MA 02110-1301, USA.

20 *

cookie_test.js (https://gitlab.com/bethalice523/WebAPI) JavaScript · 206 lines

162 assert.equal(actual.value, cookie.value);

163 // expiry times are exchanged in seconds since January 1, 1970 UTC.

164 assert.equal(actual.expiry, Math.floor(futureTime / 1000));

165 });

166

202 function getRandomString() {

203 var x = 1234567890;

204 return Math.floor(Math.random() * x).toString(36);

205 }

206 });

ContinuousDistribution.cs (https://github.com/tjom/MIRPCADB.git) C# · 191 lines

34 * You should have received a copy of the GNU Lesser General Public

35 * License along with this library; if not, write to the Free Software

36 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

37 */

38 #endregion

SubqueriesRegressionTest.java (https://gitlab.com/Grupo3/ProyectoED) Java · 175 lines

18 You should have received a copy of the GNU General Public License along with this

19 program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth

20 Floor, Boston, MA 02110-1301 USA

21

22 */

thunder-88xx.dtsi (https://github.com/KanjiMonster/bcm63xx.git) Device Tree · 415 lines

21 * You should have received a copy of the GNU General Public

22 * License along with this library; if not, write to the Free

23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,

24 * MA 02110-1301 USA

25 *

Page.java (https://github.com/vilmospapp/liferay-portal.git) Java · 296 lines

63 }

64

65 return -Math.floorDiv(-_totalCount, _pageSize);

66 }

67

BLI_listbase.h (https://github.com/mgschwan/blensor.git) C Header · 141 lines

14 * You should have received a copy of the GNU General Public License

15 * along with this program; if not, write to the Free Software Foundation,

16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

17 *

18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.

predictive-auto-overlay-auto-dict.el (https://github.com/shanbhardwaj/emacsonrails.git) Emacs Lisp · 203 lines

9 ;; Version: 0.2

10 ;; Keywords: predictive, automatic, overlays, dictionary, auto-dict

11 ;; URL: http://www.dr-qubit.org/emacs.php

12

13

26 ;; You should have received a copy of the GNU General Public License

27 ;; along with this program; if not, write to the Free Software

28 ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,

29 ;; MA 02110-1301, USA.

30

ezlog.php (https://github.com/lserwatka/ezpublish.git) PHP · 228 lines

1 <?php

2 //

3 // Definition of eZLog class

22 // You should have received a copy of version 2.0 of the GNU General

23 // Public License along with this program; if not, write to the Free

24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,

25 // MA 02110-1301, USA.

26 //

32

33 /*!

34 \class eZLog ezlog.php

35 \ingroup eZUtils

36 */

pagination.php (https://github.com/anqh/core.git) PHP · 328 lines

1 <?php defined('SYSPATH') or die('No direct access allowed.');

2 /**

3 * Pagination view.

6 * @author Antti Qvickström

7 * @copyright (c) 2012 Antti Qvickström

8 * @license http://www.opensource.org/licenses/mit-license.php MIT license

9 */

10 class View_Generic_Pagination extends View_Base {

151 <ul class="pager">

152

153 <?php if ($this->first_url): ?>

154 <li class="previous"><?= HTML::anchor($this->first_url, $this->first_text) ?></li>

155 <?php endif; ?>

156

157 <?php if ($this->previous_url): ?>

158 <li class="previous"><?= HTML::anchor($this->previous_url, $this->previous_text) ?></li>

159 <?php endif; ?>

predicates.md (https://github.com/gatoatigrado/gccxmlclone.git) Markdown · 439 lines

16 ;; You should have received a copy of the GNU General Public License

17 ;; along with GCC; see the file COPYING. If not, write to

18 ;; the Free Software Foundation, 51 Franklin Street, Fifth Floor,

19 ;; Boston, MA 02110-1301, USA.

20

Protection.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 529 lines

1 <?php

2 /**

3 * PHPExcel

17 * You should have received a copy of the GNU Lesser General Public

18 * License along with this library; if not, write to the Free Software

19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

20 *

21 * @category PHPExcel

22 * @package PHPExcel_Worksheet

23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.6.3, 2008-08-25

33 * @package PHPExcel_Worksheet

34 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Worksheet_Protection

script_ext_math.cpp (https://github.com/heather162/scummvm.git) C++ · 294 lines

17 * You should have received a copy of the GNU General Public License

18 * along with this program; if not, write to the Free Software

19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

20 *

21 */

23 /*

24 * This file is based on WME Lite.

25 * http://dead-code.org/redir.php?target=wmelite

26 * Copyright (c) 2011 Jan Nedoma

27 */

144

145 //////////////////////////////////////////////////////////////////////////

146 // Floor

147 //////////////////////////////////////////////////////////////////////////

148 else if (strcmp(name, "Floor") == 0) {

sn76489.c (https://github.com/nicoya/OpenEmu.git) C · 307 lines

15 You should have received a copy of the GNU General Public License

16 along with CrabEmu; if not, write to the Free Software

17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

18 */

19

asn1.php (https://gitlab.com/neuser/bitrix-core) PHP · 218 lines

1 <?php

2 /*

3 * SimpleJWT

162 // First octet

163 $oct = ord($oid[$pos++]);

164 $str = floor($oct / 40) . '.' . ($oct % 40);

165

166 // Subsequent octets

LType.cs (https://github.com/Surg420/Machete.git) C# · 418 lines

303 var sign = Math.Sign((double)number.BaseValue);

304 var abs = Math.Abs((double)number.BaseValue);

305 var floor = Math.Floor(abs);

306 return Environment.CreateNumber(sign * floor);

315 return Environment.CreateNumber(0);

316 }

317 var posInt = Math.Sign(number) * Math.Floor(Math.Abs(number));

318 var int32Bit = posInt % uint.MaxValue;

319 if (int32Bit > int.MaxValue)

331 return Environment.CreateNumber(0);

332 }

333 var posInt = Math.Sign(number) * Math.Floor(Math.Abs(number));

334 var int32Bit = posInt % uint.MaxValue;

335 return Environment.CreateNumber(int32Bit);

343 return Environment.CreateNumber(0);

344 }

345 var posInt = Math.Sign(number) * Math.Floor(Math.Abs(number));

346 var int16Bit = posInt % ushort.MaxValue;

347 return Environment.CreateNumber(int16Bit);

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

14 * You should have received a copy of the GNU Library General Public License

15 * along with this library; see the file COPYING.LIB. If not, write to

16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

17 * Boston, MA 02110-1301, USA.

18 *

Settings.php (https://gitlab.com/team_fsn/fsn-php) PHP · 387 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.8.0, 2014-03-02

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

120 * @return boolean Success or failure

121 */

137 * @return string Name of the Zip handler Class that PHPExcel is configured to use

138 * for Zip file management

139 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

140 */

141 public static function getZipClass()

function_definition.php (https://github.com/Socrattes2099/ezpublish.git) PHP · 193 lines

1 <?php

2 //

3 // Created on: <06-feb-2003 10:28:49 sp>

20 // You should have received a copy of version 2.0 of the GNU General

21 // Public License along with this program; if not, write to the Free

22 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,

23 // MA 02110-1301, USA.

24 //

calculate_size.js (https://gitlab.com/junxianlim/kokochat) JavaScript · 310 lines

56 return 1 + Buffer.byteLength(name, 'utf8') + 1 + 4 + Buffer.byteLength(value, 'utf8') + 1;

57 case 'number':

58 if(Math.floor(value) === value && value >= BSON.JS_INT_MIN && value <= BSON.JS_INT_MAX) {

59 if(value >= BSON.BSON_INT32_MIN && value <= BSON.BSON_INT32_MAX) { // 32 bit

60 return (name != null ? (Buffer.byteLength(name, 'utf8') + 1) : 0) + (4 + 1);

smd_rpcrouter_xdr.c (https://github.com/kcs10dc/htc-kernel-msm7x30.git) C · 420 lines

12 * You should have received a copy of the GNU General Public License

13 * along with this program; if not, write to the Free Software

14 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA

15 * 02110-1301, USA.

16 *

pack.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 346 lines

6 // % note 1: Float encoding by: Jonas Raoni Soares Silva

7 // % note 2: Home: http://www.kingsquare.nl/blog/12-12-2009/13507444

8 // % note 3: Feedback: phpjs-pack@kingsquare.nl

9 // % note 4: 'machine dependent byte order and size' aren't

10 // % note 4: applicable for JavaScript; pack works as on a 32bit,

222 signal = (n = status !== 0 ? 0 : n) < 0;

223 n = Math.abs(n);

224 intPart = Math.floor(n);

225 floatPart = n - intPart;

226

230 for (k = bias + 2; intPart && k;) {

231 bin[--k] = intPart % 2;

232 intPart = Math.floor(intPart / 2);

233 }

234 for (k = bias + 1; floatPart > 0 && k; --floatPart) {

GetInstance.java (https://github.com/ikeji/openjdk7-jdk.git) Java · 248 lines

15 * You should have received a copy of the GNU General Public License version

16 * 2 along with this work; if not, write to the Free Software Foundation,

17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

18 *

19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA

player_kills.php (https://github.com/CinisterOne/Statistician_Web.git) PHP · 316 lines

61 ?>

62 <span id="pageSelector">

63 <?php if ($pageNumber > 1) { ?> <a href="./?view=playerKills&uuid=<?php echo($_player->getUUID()); ?>&<?php echo($thisTablePNGet); ?>=<?php echo($pageNumber - 1); ?>#<?php echo($thisTablePNAN); ?>"><< <?php echo(STRING_ALL_PREVIOUS); ?></a> <?php } ?>

64 <?php if ($pageNumber > 1) {

189 ?>

190 <span id="pageSelector">

191 <?php if ($pageNumber > 1) { ?> <a href="./?view=playerKills&uuid=<?php echo($_player->getUUID()); ?>&<?php echo($thisTablePNGet); ?>=<?php echo($pageNumber - 1); ?>#<?php echo($thisTablePNAN); ?>"><< <?php echo(STRING_ALL_PREVIOUS); ?></a> <?php } ?>

192 <?php if ($pageNumber > 1) {

195 if ($jumpToPage >= 1) {

196 ?>

197 <a href="./?view=playerKills&uuid=<?php echo($_player->getUUID()); ?>&<?php echo($thisTablePNGet); ?>=<?php echo($jumpToPage); ?>#<?php echo($thisTablePNAN); ?>"><?php echo($jumpToPage); ?></a>

198 <?php

280 ?>

281 <span id="pageSelector">

282 <?php if ($pageNumber > 1) { ?> <a href="./?view=playerKills&uuid=<?php echo($_player->getUUID()); ?>&<?php echo($thisTablePNGet); ?>=<?php echo($pageNumber - 1); ?>#<?php echo($thisTablePNAN); ?>"><< <?php echo(STRING_ALL_PREVIOUS); ?></a> <?php } ?>

283 <?php if ($pageNumber > 1) {

historyf.el (https://github.com/lugecy/dot-emacs.git) Emacs Lisp · 411 lines

16 ;; You should have received a copy of the GNU General Public License

17 ;; along with this program; if not, write to the Free Software

18 ;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

19

20 ;; Version: 0.0.7

81 c-mode cc-mode c++-mode java-mode

82 perl-mode cperl-mode python-mode ruby-mode

83 ecmascript-mode javascript-mode js2-mode php-mode css-mode

84 makefile-mode sh-mode fortran-mode f90-mode ada-mode

85 xml-mode sgml-mode)

DataSeries.php (https://gitlab.com/team_fsn/fsn-php) PHP · 365 lines

22 * @package PHPExcel_Chart

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.8.0, 2014-03-02

33 * @package PHPExcel_Chart

34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Chart_DataSeries

131 * Plot Values

132 *

133 * @var array of PHPExcel_Chart_DataSeriesValues

134 */

135 private $_plotValues = array();

288 *

289 * @param string $plotStyle

290 * @return PHPExcel_Chart_DataSeries

291 */

292 public function setPlotStyle($plotStyle = null) {

Item_Rest_Helper_Test.php (https://github.com/ffchung/gallery3.git) PHP · 265 lines

1 <?php defined("SYSPATH") or die("No direct script access.");

2 /**

3 * Gallery - a web based photo album viewer and editor

16 * You should have received a copy of the GNU General Public License

17 * along with this program; if not, write to the Free Software

18 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.

19 */

20 class Item_Rest_Helper_Test extends Gallery_Unit_Test_Case {

Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines

22 * @package PHPExcel_Style

23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.9, 2013-06-02

34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

140 *

141 * <code>

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

153 * @throws PHPExcel_Exception

154 * @return PHPExcel_Style_Alignment

155 */

156 public function applyFromArray($pStyles = NULL) {

bytearray-tests.js (https://github.com/jdeolive/ringojs.git) JavaScript · 322 lines

203 var testArray = [];

204 for (var i = 0; i < 1000; i++)

205 testArray.push(Math.floor(Math.random()*256));

206

207 var a = new ByteArray(testArray);

215 var testArray = [];

216 for (var i = 0; i < 1000; i++)

217 testArray.push(Math.floor(Math.random()*256));

218

219 var a = new ByteArray(testArray);

Settings.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 332 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

112 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

113 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

114 * @return boolean Success or failure

115 */

130 * @return string Name of the Zip handler Class that PHPExcel is configured to use

131 * for Zip file management

132 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

133 */

134 public static function getZipClass() {

qrsplit.php (https://gitlab.com/Ltaimao/wecenter) PHP · 311 lines

1 <?php

2 /*

3 * PHP QR Code encoder

8 * Copyright (C) 2006, 2007, 2008, 2009 Kentaro Fukuchi <fukuchi@megaui.net>

9 *

10 * PHP QR Code is distributed under LGPL 3

11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>

12 *

29 * You should have received a copy of the GNU Lesser General Public

30 * License along with this library; if not, write to the Free Software

31 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

32 */

33 class QRsplit {

Protocol.cc (https://github.com/ak2consulting/hypertable.git) C++ · 342 lines

16 * You should have received a copy of the GNU General Public License

17 * along with this program; if not, write to the Free Software

18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA

19 * 02110-1301, USA.

20 */

Alignment.php (https://gitlab.com/dmsapiens/physicians) PHP · 409 lines

22 * @package PHPExcel_Style

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable

37 {

38 /* Horizontal alignment styles */

140 *

141 * <code>

142 * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(

143 * array(

144 * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,

153 * @throws PHPExcel_Exception

154 * @return PHPExcel_Style_Alignment

155 */

156 public function applyFromArray($pStyles = NULL) {

Protection.php (https://gitlab.com/ilyales/vigma) PHP · 581 lines

22 * @package PHPExcel_Worksheet

23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

33 * @package PHPExcel_Worksheet

34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Worksheet_Protection

267 *

268 * @param boolean $pValue

269 * @return PHPExcel_Worksheet_Protection

270 */

271 public function setFormatCells($pValue = false)

399 *

400 * @param boolean $pValue

401 * @return PHPExcel_Worksheet_Protection

402 */

403 public function setDeleteColumns($pValue = false)

script_ext_date.cpp (https://github.com/heather162/scummvm.git) C++ · 310 lines

17 * You should have received a copy of the GNU General Public License

18 * along with this program; if not, write to the Free Software

19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

20 *

21 */

23 /*

24 * This file is based on WME Lite.

25 * http://dead-code.org/redir.php?target=wmelite

26 * Copyright (c) 2011 Jan Nedoma

27 */

Settings.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 332 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.8, 2012-10-12

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

112 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

113 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

114 * @return boolean Success or failure

115 */

130 * @return string Name of the Zip handler Class that PHPExcel is configured to use

131 * for Zip file management

132 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

133 */

134 public static function getZipClass() {

IndexedJoinColumnBidirectionalList.java (https://github.com/masteinhauser/connectedkitchen.git) Java · 250 lines

19 * along with this distribution; if not, write to:

20 * Free Software Foundation, Inc.

21 * 51 Franklin Street, Fifth Floor

22 * Boston, MA 02110-1301 USA

23 */

ezcollaborationitemgrouplink.php (https://github.com/lserwatka/ezpublish.git) PHP · 191 lines

1 <?php

2 //

3 // Definition of eZCollaborationItemGroupLink class

22 // You should have received a copy of version 2.0 of the GNU General

23 // Public License along with this program; if not, write to the Free

24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,

25 // MA 02110-1301, USA.

26 //

33

34 /*!

35 \class eZCollaborationItemGroupLink ezcollaborationitemgrouplink.php

36 \brief The class eZCollaborationItemGroupLink does

37

shader.c (https://github.com/perj/wine.git) C · 311 lines

15 * You should have received a copy of the GNU Lesser General Public

16 * License along with this library; if not, write to the Free Software

17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA

18 */

19

PaginatedList.php (https://github.com/sminnee/silverstripe-framework.git) PHP · 420 lines

1 <?php

2 /**

3 * A decorator that wraps around a data list in order to provide pagination.

204

205 if ($max) {

206 $start = ($this->CurrentPage() - floor($max / 2)) - 1;

207 $end = $this->CurrentPage() + floor($max / 2);

282 $offset = $context;

283 } else {

284 $offset = floor($context / 2);

285 }

286

322 */

323 public function CurrentPage() {

324 return floor($this->getPageStart() / $this->pageLength) + 1;

325 }

326

Settings.php (https://github.com/raymanuk/moodle.git) PHP · 387 lines

22 * @package PHPExcel_Settings

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

33 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../');

34 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

35 }

36

118 * @param string $zipClass The Zip handler class that PHPExcel should use for Zip file management

119 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

120 * @return boolean Success or failure

121 */

137 * @return string Name of the Zip handler Class that PHPExcel is configured to use

138 * for Zip file management

139 * e.g. PHPExcel_Settings::PCLZip or PHPExcel_Settings::ZipArchive

140 */

141 public static function getZipClass()

lm3s_i2c.h (https://github.com/robots/APRS.git) C Header · 255 lines

16 * You should have received a copy of the GNU General Public License

17 * along with this program; if not, write to the Free Software

18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

19 *

20 * As a special exception, you may use this file as part of a free software

lcp_widget_form.php (https://gitlab.com/endomorphosis/reservationtelco) PHP · 126 lines

14 You should have received a copy of the GNU General Public License

15 along with this program; if not, write to the Free Software

16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

17 */

18

44 <?php //var_dump($instance);?>

45 <p><label for="<?php echo $this->get_field_id('title'); ?>">Title: <br/>

46 <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"

47 name="<?php echo $this->get_field_name('title'); ?>" type="text"

48 value="<?php echo attribute_escape($title); ?>" />

51 <p><label for="<?php echo $this->get_field_id('categoryid'); ?>">Category: <br/>

52 <select id="<?php echo $this->get_field_id('categoryid'); ?>" name="<?php echo $this->get_field_name('categoryid'); ?>">

53 <?php

89 <p><label for="<?php echo $this->get_field_id('order'); ?>">Order: <br/>

90 <select id="<?php echo $this->get_field_id('order'); ?>"

91 name="<?php echo $this->get_field_name('order'); ?>" type="text" />

Logical.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 288 lines

22 * @package PHPExcel_Calculation

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

Column.php (https://gitlab.com/team_fsn/fsn-php) PHP · 394 lines

22 * @package PHPExcel_Worksheet

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.8.0, 2014-03-02

33 * @package PHPExcel_Worksheet

34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_Worksheet_AutoFilter_Column

178 * @return PHPExcel_Worksheet_AutoFilter_Column

179 */

180 public function setParent(PHPExcel_Worksheet_AutoFilter $pParent = NULL) {

181 $this->_parent = $pParent;

182

325 * @param PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule

326 * @param boolean $returnRule Flag indicating whether the rule object or the column object should be returned

327 * @return PHPExcel_Worksheet_AutoFilter_Column|PHPExcel_Worksheet_AutoFilter_Column_Rule

328 */

329 public function addRule(PHPExcel_Worksheet_AutoFilter_Column_Rule $pRule, $returnRule=TRUE) {

myisampack.h (https://github.com/codership/mysql-wsrep.git) C Header · 249 lines

22 You should have received a copy of the GNU General Public License

23 along with this program; if not, write to the Free Software

24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */

25

26 /*

InternalFrame.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 221 lines

5 * Copyright (C) 2003 sven_luzar

6 *

7 * 6/01/2006: I, Raphpael Valyi, changed back the header of this file to LGPL

8 * because nobody changed the file significantly since the last

9 * 3.0 version of GPGraphpad that was LGPL. By significantly, I mean:

25 * You should have received a copy of the GNU Lesser General Public

26 * License along with this library; if not, write to the Free Software

27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

28 *

29 */

Bitstream.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 140 lines

1 <?php

2 /* vim: set expandtab tabstop=4 shiftwidth=4: */

3 // +----------------------------------------------------------------------------+

19 // | You should have received a copy of the GNU Lesser General Public |

20 // | License along with this library; if not, write to the Free Software |

21 // | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |

22 // +----------------------------------------------------------------------------+

23

28 * @copyright David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>

29 * @license http://www.gnu.org/copyleft/lesser.html GNU LGPL

30 * @link http://pear.php.net/package/File_Ogg

31 * @package File_Ogg

32 * @version CVS: $Id: Bitstream.php,v 1.3 2005/11/08 19:36:18 djg Exp $

buffer.h (https://github.com/MichaelVlad/Equalizer.git) C Header · 255 lines

13 * You should have received a copy of the GNU Lesser General Public License

14 * along with this library; if not, write to the Free Software Foundation, Inc.,

15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

16 */

17

PasswordHelper.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 148 lines

1 <?php

2 /*

3 * OrangeHRM is a comprehensive Human Resource Management (HRM) System that captures

14 *

15 * You should have received a copy of the GNU General Public License along with this program;

16 * if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

17 * Boston, MA 02110-1301, USA

18 */

25 */

26

27 use ZxcvbnPhp\Zxcvbn;

28 class PasswordHelper {

29

DiscISAM.php (https://gitlab.com/ptisky/API_prestashop) PHP · 219 lines

22 * @package PHPExcel_CachedObjectStorage

23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.9, 2013-06-02

34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache {

37

38 /**

63 *

64 * @return void

65 * @throws PHPExcel_Exception

66 */

67 protected function _storeData() {

87 * @param PHPExcel_Cell $cell Cell to update

88 * @return void

89 * @throws PHPExcel_Exception

90 */

91 public function addCacheData($pCoord, PHPExcel_Cell $cell) {

RichText.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 196 lines

22 * @package PHPExcel_RichText

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_RichText implements PHPExcel_IComparable

37 {

38 /**

46 * Create a new PHPExcel_RichText instance

47 *

48 * @param PHPExcel_Cell $pParent

49 * @throws Exception

50 */

58 // Add cell text and style

59 if ($pCell->getValue() != "") {

60 $objRun = new PHPExcel_RichText_Run($pCell->getValue());

61 $objRun->setFont(clone $pCell->getParent()->getStyle($pCell->getCoordinate())->getFont());

62 $this->addText($objRun);

Logical.php (https://gitlab.com/ptisky/API_prestashop) PHP · 288 lines

22 * @package PHPExcel_Calculation

23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.9, 2013-06-02

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

test_Feature.html (https://github.com/jj0hns0n/oam-original.git) HTML · 253 lines

235

236 handler.active = true;

237 handler.layerIndex = Math.floor(Math.random() * 10);

238

239 deactivated = handler.deactivate();

baseband.h (https://github.com/psyke83/kernel_samsung_europa.git) C Header · 177 lines

15 * You should have received a copy of the GNU General Public License along

16 * with this program; if not, write to the Free Software Foundation, Inc.,

17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

18 *

19 *

ImageTest.php (https://gitlab.com/ntphuc/BackendFeedy) PHP · 190 lines

1 <?php

2 /**

3 This file is part of WideImage.

15 You should have received a copy of the GNU Lesser General Public License

16 along with WideImage; if not, write to the Free Software

17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

18

19 * @package Tests

PdfDeveloperExtension.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 120 lines

19 * You should have received a copy of the GNU Affero General Public License

20 * along with this program; if not, see http://www.gnu.org/licenses or write to

21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

22 * Boston, MA, 02110-1301 USA, or download the license from the following URL:

23 * http://itextpdf.com/terms-of-use/

TemplateDateTest.php (https://github.com/jacknicole/sugarcrm_dev.git) PHP · 107 lines

39 require_once 'modules/DynamicFields/templates/Fields/TemplateDate.php';

40

41 class TemplateDateTest extends Sugar_PHPUnit_Framework_TestCase

42 {

43 private $hasExistingCustomSearchFields = false;

48 {

49 $this->hasExistingCustomSearchFields = true;

50 copy('custom/modules/Opportunities/metadata/SearchFields.php', 'custom/modules/Opportunities/metadata/SearchFields.php.bak');

51 unlink('custom/modules/Opportunities/metadata/SearchFields.php');

60 if(!$this->hasExistingCustomSearchFields)

61 {

62 unlink('custom/modules/Opportunities/metadata/SearchFields.php');

63 }

64

65 if(file_exists('custom/modules/Opportunities/metadata/SearchFields.php.bak')) {

66 copy('custom/modules/Opportunities/metadata/SearchFields.php.bak', 'custom/modules/Opportunities/metadata/SearchFields.php');

67 unlink('custom/modules/Opportunities/metadata/SearchFields.php.bak');

Timer.php (https://github.com/QACMS-Modules/QACMS-SeoTools.git) PHP · 230 lines

1 <?php

2 class Timer

3 {

174 if ($usec > self::USECDIV) {

175 // move the full second microseconds to the seconds' part

176 $sec += (int) floor($usec / self::USECDIV);

177

178 // keep only the microseconds that are over the self::USECDIV

207 if ($usec > self::USECDIV) {

208 // move the full second microseconds to the seconds' part

209 $sec += (int) floor($usec / self::USECDIV);

210

211 // keep only the microseconds that are over the self::USECDIV

Logical.php (https://gitlab.com/rsilveira1987/Expresso) PHP · 288 lines

22 * @package PHPExcel_Calculation

23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.8, 2012-10-12

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

Logical.php (https://gitlab.com/kimting254/wbms) PHP · 288 lines

22 * @package PHPExcel_Calculation

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version ##VERSION##, ##DATE##

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

3level.h (https://github.com/rofl0r/gnulib.git) C Header · 327 lines

19 You should have received a copy of the GNU General Public License

20 along with this program; if not, write to the Free Software

21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,

22 USA. */

23

factory.c (git://pkgs.fedoraproject.org/ghex) C · 66 lines

13 * You should have received a copy of the GNU General Public License along

14 * with this program; if not, write to the Free Software Foundation, Inc.,

15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

16 *

17 */

Logical.php (https://github.com/ashwanthkumar/webnaplo.git) PHP · 290 lines

22 * @package PHPExcel_Calculation

23 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.6, 2011-02-27

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = true;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = false;

122 } else {

CodePage.php (https://gitlab.com/ilyales/vigma) PHP · 158 lines

1 <?php

2

3 /**

4 * PHPExcel_Shared_CodePage

5 *

6 * Copyright (c) 2006 - 2015 PHPExcel

18 * You should have received a copy of the GNU Lesser General Public

19 * License along with this library; if not, write to the Free Software

20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

21 *

22 * @category PHPExcel

23 * @package PHPExcel_Shared

24 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)

25 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

26 * @version ##VERSION##, ##DATE##

RichText.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 196 lines

22 * @package PHPExcel_RichText

23 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.7.4, 2010-08-26

34 * @copyright Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)

35 */

36 class PHPExcel_RichText implements PHPExcel_IComparable

37 {

38 /**

46 * Create a new PHPExcel_RichText instance

47 *

48 * @param PHPExcel_Cell $pParent

49 * @throws Exception

50 */

58 // Add cell text and style

59 if ($pCell->getValue() != "") {

60 $objRun = new PHPExcel_RichText_Run($pCell->getValue());

61 $objRun->setFont(clone $pCell->getParent()->getStyle($pCell->getCoordinate())->getFont());

62 $this->addText($objRun);

memneq.c (https://github.com/WireGuard/WireGuard.git) C · 170 lines

25 * You should have received a copy of the GNU General Public License

26 * along with this program; if not, write to the Free Software

27 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.

28 * The full GNU General Public License is included in this distribution

29 * in the file called LICENSE.GPL.

pSurface.class.php (https://github.com/jleyva/moodle-block_configurablereports.git) PHP · 321 lines

1 <?php

2 /*

3 pSurface - class to draw surface charts

103

104 for ($X = 0; $X <= $this->GridSizeX; $X++) {

105 $XPos = floor($X0 + $X * $XSize + $XSize / 2);

106 $Value = ($Labels == NULL || !isset($Labels[$X])) ? $X + $CountOffset : $Labels[$X];

107 $this->pChartObject->drawText($XPos, $YPos, $Value, $Settings);

144

145 for ($Y = 0; $Y <= $this->GridSizeY; $Y++) {

146 $YPos = floor($Y0 + $Y * $YSize + $YSize / 2);

147 $Value = ($Labels == NULL || !isset($Labels[$Y])) ? $Y + $CountOffset : $Labels[$Y];

148 $this->pChartObject->drawText($XPos, $YPos, $Value, $Settings);

172 $Value = $this->Points[$X][$Y];

173 if ($Value != UNKNOWN && $Value != IGNORED && $Value >= $Threshold) {

174 $X1 = floor($X0 + $X * $XSize) + $Padding;

175 $Y1 = floor($Y0 + $Y * $YSize) + $Padding;

subpaneldefs.php (https://github.com/jacknicole/sugarcrm_dev.git) PHP · 175 lines

1 <?php

2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

3 /*********************************************************************************

19 * You should have received a copy of the GNU Affero General Public License along with

20 * this program; if not, see http://www.gnu.org/licenses or write to the Free

21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA

22 * 02110-1301 USA.

23 *

GoogleCoopFilter.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 157 lines

1 <?php

2 require_once( 'AbstractFilter.php' );

7 * Usage:

8 *

9 * HOSTNAME=kamelopedia.mormo.org php dumpBackup.php \

10 * --plugin=GoogleCoopFilter:Extension/ActiveAbstract/GoogleCoopFilter.php \

28 * You should have received a copy of the GNU General Public License along

29 * with this program; if not, write to the Free Software Foundation, Inc.,

30 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

31 * http://www.gnu.org/copyleft/gpl.html

32 *

ezsection.php (https://github.com/lserwatka/ezpublish.git) PHP · 259 lines

1 <?php

2 //

3 // Definition of eZSection class

22 // You should have received a copy of version 2.0 of the GNU General

23 // Public License along with this program; if not, write to the Free

24 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,

25 // MA 02110-1301, USA.

26 //

30

31 /*!

32 \class eZSection ezsection.php

33 \brief eZSection handles grouping of content in eZ Publish

34

serializer.h (https://github.com/kitech/karia2.git) C Header · 189 lines

15 * You should have received a copy of the GNU Lesser General Public License

16 * along with this library; see the file COPYING.LIB. If not, write to

17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

18 * Boston, MA 02110-1301, USA.

19 */

trafficgraphwidget.cpp (https://gitlab.com/Ltaimao/bitcoin) C++ · 175 lines

1 // Copyright (c) 2011-2013 The Bitcoin developers

2 // Distributed under the MIT/X11 software license, see the accompanying

3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.

4

5 #include "trafficgraphwidget.h"

74

75 // decide what order of magnitude we are

76 int base = floor(log10(fMax));

77 float val = pow(10.0f, base);

78

FloorPlanScreen.java (https://github.com/shingjay/LawsonNavigator.git) Java · 147 lines

1 /*

2 * @author Jeremy Jenkins

3 * The FloorPlanScreen will ask the user to choose which floor plan they would like to view,

4 * and will give a small thumbnail preview.

5 *

32 //starts screen and builds everything

33 super.onCreate(savedInstanceState);

34 setContentView(R.layout.floorplans);

35 parent = (Activity) this.getParent();

36 changeImage = (ImageView)findViewById(R.id.floorPlanImage);

61 spinner = (Spinner)this.findViewById(R.id.floorPlanChoice);

62 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item,

63 new String[] { "Basement", "Floor One", "Floor Two", "Floor Three" });

64 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);

65 spinner.setAdapter(adapter);

BlockHuntSetup.php (https://gitlab.com/Skull3x/WorkingInProgress-Plugins-Sourcecode-For-Dev) PHP · 357 lines

1 <?php

2

3 namespace NetherManiacsKingdom\Block-Hunt;

29 const CLICK_BUTTON_STOP_GAME = 3020;

30 const CLICK_BUTTON_RESET_GAME = 3030;

31 const CLICK_BUTTON_TOP_FLOOR_EXIT = 3040;

32 const CLICK_BUTTON_BOTTOM_FLOOR_EXIT = 3050;

Logical.php (https://gitlab.com/marchelo8622/pluslawip) PHP · 288 lines

22 * @package PHPExcel_Calculation

23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL

25 * @version 1.8.0, 2014-03-02

34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');

35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');

36 }

37

43 * @package PHPExcel_Calculation

44 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

45 */

46 class PHPExcel_Calculation_Logical {

118 if (($arg == 'TRUE') || ($arg == PHPExcel_Calculation::getTRUE())) {

119 $arg = TRUE;

120 } elseif (($arg == 'FALSE') || ($arg == PHPExcel_Calculation::getFALSE())) {

121 $arg = FALSE;

122 } else {

jquery.wookmark.js (https://gitlab.com/ytaras/Modus) JavaScript · 177 lines

7 @category jQuery plugin

8 @copyright (c) 2009-2012 Christoph Ono (www.wookmark.com)

9 @license Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.

10 */

11 $.fn.wookmark = function(options) {

34 var columnWidth = this.wookmarkOptions.itemWidth + this.wookmarkOptions.offset;

35 var containerWidth = this.wookmarkOptions.container.width();

36 var columns = Math.floor((containerWidth+this.wookmarkOptions.offset)/columnWidth);

37 var offset = 0//YSW Math.round((containerWidth - (columns*columnWidth-this.wookmarkOptions.offset))/2);

38

BibTeX.pm (https://gitlab.com/envieidoc/Clover) Perl · 152 lines

18 # along with this program; if not, write to the Free Software

19 # Foundation, Inc.,

20 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

21 #

22 ########################################################################

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

This Java class, ComponentTypeInfo, represents a data structure to hold information about a component in a JBoss application. It has fields for the component’s type and number, and provides getter methods to access these values. The class also implements the IsSerializable interface, allowing it to be converted into a format that can be sent over a network or stored in a file.

This Java class, ComponentTypeInfo, represents a data structure to hold information about a component in a JBoss application. It has fields for the component’s type and number, and provides getter methods to access these values. The class also implements the IsSerializable interface, allowing it to be converted into a format that can be sent over a network or stored in a file.

17 * You should have received a copy of the GNU Lesser General Public

18 * License along with this software; if not, write to the Free

19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA

20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.

21 */

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

This C++ header file provides definitions and macros for decoding and interpreting SPUs (Simple Parallel Units) instructions, which are used in a specific type of processor. It defines various enums and macros to extract instruction arguments, such as register values, immediate values, and opcode fields, from the instruction bytes.

17 You should have received a copy of the GNU General Public License

18 along with this program; if not, write to the Free Software Foundation,

19 Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */

20

21

semanticdb-find.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 1400 lines

21 ;; You should have received a copy of the GNU General Public License

22 ;; along with GNU Emacs; see the file COPYING. If not, write to the

23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

24 ;; Boston, MA 02110-1301, USA.

25 ;;

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

14 * You should have received a copy of the GNU Lesser General Public

15 * License along with this library; if not, write to the Free Software

16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

17 *

18 */

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

This Java class represents a tag in a source file, used by an integrated development environment (IDE). It stores information about the tag, such as its name, line number, and icon, and provides methods to access this information. The class extends another class called SourceAsset and uses a Hashtable to store icons for different types of tags.

14 You should have received a copy of the GNU General Public License

15 along with this program; if not, write to the Free Software

16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

17 */

18

aura.lua (git://github.com/Ekst/Tukui.git) text · 0 lines

154 local growthx = (icons["growth-x"] == "LEFT" and -1) or 1

155 local growthy = (icons["growth-y"] == "DOWN" and -1) or 1

156 local cols = math.floor(icons:GetWidth() / sizex + .5)

157 local rows = math.floor(icons:GetHeight() / sizey + .5)

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

14 * You should have received a copy of the GNU Library General Public License

15 * along with this library; see the file COPYING.LIB. If not, write to

16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

17 * Boston, MA 02110-1301, USA.

18 *

postscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 98 lines

69 <OPERATOR>ned</OPERATOR>

70 <OPERATOR>ceiling</OPERATOR>

71 <OPERATOR>floor</OPERATOR>

72 <OPERATOR>round</OPERATOR>

73 <OPERATOR>truncate</OPERATOR>

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

This C++ header file defines a token_info class and several inline functions for working with tokens, which are likely used in a text processing or formatting application. The class represents a token’s type and provides methods to manipulate its case and sort order. The inline functions provide quick access to the token’s type based on its value.

17 You should have received a copy of the GNU General Public License along

18 with groff; see the file COPYING. If not, write to the Free Software

19 Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */

20

21 enum token_type {

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

430 <LITERAL2>cos</LITERAL2>

431 <LITERAL2>exp</LITERAL2>

432 <LITERAL2>floor</LITERAL2>

433 <LITERAL2>log</LITERAL2>

434 <LITERAL2>max</LITERAL2>

tcl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 458 lines

107 <KEYWORD1>info</KEYWORD1>

108 <KEYWORD1>ceil</KEYWORD1>

109 <KEYWORD1>floor</KEYWORD1>

110 <KEYWORD1>round</KEYWORD1>

111 <KEYWORD1>incr</KEYWORD1>

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

181 <KEYWORD2>math.deg</KEYWORD2>

182 <KEYWORD2>math.exp</KEYWORD2>

183 <KEYWORD2>math.floor</KEYWORD2>

184 <KEYWORD2>math.log</KEYWORD2>

185 <KEYWORD2>math.log10</KEYWORD2>

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

This C header file defines a set of functions and macros for managing filestream associations with allocation groups (AGs) on an XFS filesystem. It provides atomic counters to track active filestreams, ensuring that no invalid references exist in the cache. The code also includes prototypes for various filestream-related functions and constants for allocation selection flags.

14 * You should have received a copy of the GNU General Public License

15 * along with this program; if not, write the Free Software Foundation,

16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

17 */

18 #ifndef __XFS_FILESTREAM_H__

pl1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 597 lines

424 <KEYWORD3>filewrite</KEYWORD3>

425 <KEYWORD3>first</KEYWORD3>

426 <KEYWORD3>floor</KEYWORD3>

427 <KEYWORD3>gamma</KEYWORD3>

428 <KEYWORD3>getenv</KEYWORD3>

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

This Java code implements a patch editor that applies changes to a text file by applying chunks of text, known as “patches”, to the original file. It supports three types of patches: add (insertion), change (replacement), and delete (removal). The code uses an offset-based system to apply patches to the original file, allowing for precise control over where in the file each patch is applied.

36 * You should have received a copy of the GNU General Public License

37 * along with jPatchLib; if not, write to the Free Software

38 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

39 * </pre>

40 *

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

15 You should have received a copy of the GNU Library General Public License

16 along with this library; see the file COPYING.LIB. If not, write to

17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

18 Boston, MA 02110-1301, USA.

19 */

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

17 * You should have received a copy of the GNU Lesser General Public

18 * License along with this library; if not, write to the Free Software

19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

20 */

21

HTMLDocument.idl (https://bitbucket.org/ultra_iter/qt-vtl.git) IDL · 64 lines

15 * You should have received a copy of the GNU Library General Public License

16 * along with this library; see the file COPYING.LIB. If not, write to

17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,

18 * Boston, MA 02110-1301, USA.

19 */

ATNumber.java (http://ambienttalk.googlecode.com/svn/) Java · 173 lines ✨ Summary

This Java interface defines a public interface for an AmbientTalk native number, providing methods for arithmetic operations, iteration, and modular arithmetic. It allows for the creation of tables, random fractions, and floor division between numbers. The methods are designed to be used in a scripting language, with error handling through InterpreterException.

163

164 /**

165 * Returns the floor division between the number and another number passed as argument.

166 *

167 * @param nbr a number.

168 * @return a {@link ATNumber} resulting of the floor division of receiver by nbr.

169 */

170 public ATNumber base__opdiv__opmns_(ATNumber nbr) throws InterpreterException;

tmv.c (git://github.com/xbmc/xbmc.git) C · 200 lines ✨ Summary

This C code implements a demuxer for the 8088flex TMV file format, which is used to store audio and video data in a compressed form. The code provides functions for probing, reading headers, packets, and seeking within the files, as well as registering the demuxer with FFmpeg. It also defines the structure of the TMVContext, which holds metadata about the audio and video streams.

17 * You should have received a copy of the GNU Lesser General Public

18 * License along with FFmpeg; if not, write to the Free Software

19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

20 */

21

logblk.f (git://pkgs.fedoraproject.org/scilab) FORTRAN Legacy · 54 lines

15 c You should have received a copy of the GNU General Public License

16 c along with this program; if not, write to the Free Software

17 c Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

18 c

19 c See the file ./license.txt

llwlparamset.h (https://bitbucket.org/lindenlab/viewer-beta/) C Header · 239 lines ✨ Summary

This C++ header file defines a class LLWLParamSet that represents a set of parameter values for WindLight shaders in a 3D graphics application. It provides methods to update shader uniforms, set and get various parameters (floats, floats2, floats3, floats4), and interpolate between two sets of parameters. The class also stores cloud scrolling settings and star brightness.

19 * You should have received a copy of the GNU Lesser General Public

20 * License along with this library; if not, write to the Free Software

21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

22 *

23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA

pwsafe.py (https://bitbucket.org/erikg/revelation/) Python · 716 lines ✨ Summary

This Python code defines several classes that handle data import and export for various password management software, including MyPasswordSafe, Password Gorilla, and others. Each class implements methods to read and write data in a specific format, with encryption and decryption functionality. The classes are designed to be used as data handlers for these password management systems.

21 # You should have received a copy of the GNU General Public License

22 # along with this program; if not, write to the Free Software

23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

24 #

25

TreeDemo.java (https://bitbucket.org/__wp__/mb-linux-msli.git) Java · 318 lines

16 You should have received a copy of the GNU General Public License

17 along with GNU Classpath; see the file COPYING. If not, write to the

18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA

19 02110-1301 USA.

20