100+ results for 'php rename'

Not the results you expected?

FUXmlWriter.cpp (https://bitbucket.org/ardalanaz/dava.framework.git) C++ · 259 lines

4 Copyright (C) 2005-2007 Sony Computer Entertainment America

5

6 MIT License: http://www.opensource.org/licenses/mit-license.php

7 */

8

64 }

65

66 void RenameNode(xmlNode* node, const char* newName)

67 {

68 xmlNodeSetName(node, xcT(newName));

timezone.P (https://github.com/JTroniks/CyanogenMod-7.git) Prolog · 259 lines

19 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h \

20 /usr/include/stdint.h /usr/include/bits/wchar.h \

21 external/icu4c/i18n/../common/unicode/urename.h \

22 external/icu4c/i18n/../common/unicode/uvernum.h \

23 external/icu4c/i18n/../common/unicode/utf.h \

148 /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/include/stdint.h :

149 /usr/include/stdint.h /usr/include/bits/wchar.h :

150 external/icu4c/i18n/../common/unicode/urename.h :

151 external/icu4c/i18n/../common/unicode/uvernum.h :

152 external/icu4c/i18n/../common/unicode/utf.h :

AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines

1 <?php

2 namespace Parser;

3 /*

17 */

18

19 use Meta\AbstractPHPStructure;

20 use Meta\DocBlock;

21

32

33 /**

34 * Responsible for parsing a php class

35 *

36 * @author Richard Downes <richard@sculpt.ie>

44 * Responsible for storing the information about the structure being parsed

45 *

46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure

47 */

48 protected $structure;

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

This Java code defines a class VPTContextMenu that handles context menus for a graphical user interface (GUI) application, specifically designed for a project management system. It loads menu items based on the currently selected nodes in a tree view and provides actions such as adding projects, renaming nodes, and editing node properties.

52 import projectviewer.action.EditProjectAction;

53 import projectviewer.action.NodeRemoverAction;

54 import projectviewer.action.NodeRenamerAction;

55 import projectviewer.action.OpenWithAppAction;

56 import projectviewer.action.LaunchBrowserAction;

85 intActions.add(new NodeRemoverAction(false));

86 intActions.add(new NodeRemoverAction(true));

87 intActions.add(new NodeRenamerAction());

88 intActions.add(new LaunchBrowserAction());

89 intActions.add(new OpenWithAppAction());

252 }

253

254 if (a instanceof NodeRenamerAction) {

255 ActionSeparator as = new ActionSeparator();

256 as.setViewer(viewer);

ControllerTest.php (https://github.com/corneliusweiss/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 266 lines

1 <?php

2 /**

3 * Tine 2.0 - http://www.tine20.org

63 {

64 $syncrotonFolder = $this->testCreateFolder();

65 $syncrotonFolder->displayName = 'RenamedTestFolder';

66

67 $controller = Syncroton_Data_Factory::factory($this->_class, $this->_getDevice($type), new Tinebase_DateTime(null, null, 'de_DE'));

72

73 $this->assertArrayHasKey($syncrotonFolder->serverId, $allFolders);

74 $this->assertEquals('RenamedTestFolder', $allFolders[$syncrotonFolder->serverId]->displayName);

75

76 return $updatedSyncrotonFolder;

MySqlGrammar.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 577 lines

1 <?php namespace Illuminate\Database\Schema\Grammars;

2

3 use Illuminate\Support\Fluent;

264

265 /**

266 * Compile a rename table command.

267 *

268 * @param \Illuminate\Database\Schema\Blueprint $blueprint

270 * @return string

271 */

272 public function compileRename(Blueprint $blueprint, Fluent $command)

273 {

274 $from = $this->wrapTable($blueprint);

275

276 return "rename table {$from} to ".$this->wrapTable($command->to);

277 }

278

Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use ErrorException;

139 public function move($path, $target)

140 {

141 return rename($path, $target);

142 }

143

augmented_raw_syscalls.c (https://github.com/tekkamanninja/linux.git) C · 294 lines

201 }

202

203 SEC("!syscalls:sys_enter_rename")

204 int sys_enter_rename(struct syscall_enter_args *args)

218 }

219

220 SEC("!syscalls:sys_enter_renameat")

221 int sys_enter_renameat(struct syscall_enter_args *args)

FileSystem_LocalTest.php (https://github.com/ThiloWitt/core.git) PHP · 311 lines

1 <?php

2 require_once dirname(__FILE__) . '/../../../../bootstrap.php';

3

4 // exclude the following file from code coverage reports.

5 PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(dirname(__FILE__). '/../../../../../src/lib/Zikula/FileSystem/Facade/Local.php');

6

7 /**

8 * Zikula_FileSystem_Local test case.

9 */

10 class Zikula_FileSystem_LocalTest extends PHPUnit_Framework_TestCase

11 {

12

141 {

142 // Configure the stub.

143 $handle = fopen('php://temp', 'r+');

144 $stub = $this->getMock('Zikula_FileSystem_Facade_Local');

145 $stub->expects($this->any())

OraclePlatformMigrationTest.php (https://github.com/apinstein/Propel2.git) PHP · 455 lines

1 <?php

2

3 /**

45 DROP SEQUENCE foo1_SEQ;

46

47 ALTER TABLE foo3 RENAME TO foo4;

48

49 CREATE TABLE foo5

59 INCREMENT BY 1 START WITH 1 NOMAXVALUE NOCYCLE NOCACHE ORDER;

60

61 ALTER TABLE foo2 RENAME COLUMN bar TO bar1;

62

63 ALTER TABLE foo2 MODIFY

75

76 /**

77 * @dataProvider providerForTestGetRenameTableDDL

78 */

79 public function testGetRenameTableDDL($fromName, $toName)

ResourceTypeConfig.php (https://github.com/GunioRobot/boutiqueMvc.git) PHP · 351 lines

1 <?php

2 /*

3 * CKFinder

223 * @access public

224 * @param string $extension extension

225 * @param boolean $renameIfRequired whether try to rename file or not

226 * @return boolean

227 */

228 function checkExtension(&$fileName, $renameIfRequired = true)

229 {

230 if (strpos($fileName, '.') === false) {

241 $pieces = explode('.', $fileName);

242

243 // First, check the last extension (ex. in file.php.jpg, the "jpg").

244 if ( !$this->checkSingleExtension( $pieces[sizeof($pieces)-1] ) ) {

245 return false;

ext_ftp.php (https://gitlab.com/iranjith4/hhvm) PHP · 265 lines

1 <?hh

2 // generated by idl-to-hni.php

3

4 /* Sends an ALLO command to the remote FTP server to allocate space for a file

211 mixed $recursive): mixed;

212

213 /* ftp_rename() renames a file or a directory on the FTP server.

214 */

215 <<__Native("ZendCompat")>>

216 function ftp_rename(mixed $ftp_stream,

217 mixed $oldname,

218 mixed $newname): mixed;

250 * host. Why this function may not exist ftp_ssl_connect() is only available

251 * if both the ftp module and the OpenSSL support is built statically into

252 * php, this means that on Windows this function will be undefined in the

253 * official PHP builds. To make this function available on Windows you must

OS_main.h (https://gitlab.com/Kanedias/MangosDeprecated) C Header · 305 lines

8 *

9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>

10 * @author Jesper S. M|ller<stophph@diku.dk>

11 * @author and a cast of thousands...

12 *

70 && !defined (ACE_DOESNT_INSTANTIATE_NONSTATIC_OBJECT_MANAGER)

71

72 // Rename "main ()" on platforms that don't allow it to be called "main ()".

73

74 # if defined (ACE_VXWORKS) && !defined (__RTP__)

4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines

1 <?php

2 /**

3 * Changes major.minor revisions to single revision numbers.

20 {

21 parent::__construct($connection, $version);

22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';

23 $this->_vfs = $GLOBALS['injector']

24 ->getInstance('Horde_Core_Factory_Vfs')

88 $version = 1;

89 }

90 $this->_rename(

91 $entry['page_id'],

92 $entry['attachment_name'],

125 $version++;

126 }

127 $this->_rename(

128 $attachment['page_id'],

129 $attachment['attachment_name'],

Store.php (https://github.com/speedupmate/Magento-CE-Mirror.git) PHP · 510 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Adminhtml

23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

360 * @return string

361 */

362 public function getStoreName($storeId)

363 {

364 if (isset($this->_storeCollection[$storeId])) {

sysfs.h (https://github.com/odelay941/bravo-kernel.git) C Header · 230 lines

175 void sysfs_remove_subdir(struct sysfs_dirent *sd);

176

177 int sysfs_rename(struct sysfs_dirent *sd,

178 struct sysfs_dirent *new_parent_sd, const void *ns, const char *new_name);

179

SqlServerGrammar.php (https://gitlab.com/vincetang/mtweb) PHP · 551 lines

1 <?php

2

3 namespace Illuminate\Database\Schema\Grammars;

220

221 /**

222 * Compile a rename table command.

223 *

224 * @param \Illuminate\Database\Schema\Blueprint $blueprint

226 * @return string

227 */

228 public function compileRename(Blueprint $blueprint, Fluent $command)

229 {

230 $from = $this->wrapTable($blueprint);

231

232 return "sp_rename {$from}, ".$this->wrapTable($command->to);

233 }

234

CopyRenameTest.php (https://github.com/zucchi/zf2.git) PHP · 364 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

19 * @group Zend_Ldap

20 */

21 class CopyRenameTest extends AbstractOnlineTestCase

22 {

23 /**

117 }

118

119 public function testSimpleLeafRename()

120 {

121 $org = $this->getLDAP()->getEntry($this->orgDn, array(), true);

122 $this->getLDAP()->rename($this->orgDn, $this->newDn, false);

123 $this->assertFalse($this->getLDAP()->exists($this->orgDn));

124 $this->assertTrue($this->getLDAP()->exists($this->newDn));

Synchronization.php (https://github.com/imr/horde.git) PHP · 305 lines

1 <?php

2 /**

3 * Handles synchronization of the list query cache.

4 *

5 * PHP version 5

6 *

7 * @category Kolab

9 * @author Gunnar Wrobel <wrobel@pardus.de>

10 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1

11 * @link http://pear.horde.org/index.php?package=Kolab_Storage

12 */

13

24 * @author Gunnar Wrobel <wrobel@pardus.de>

25 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1

26 * @link http://pear.horde.org/index.php?package=Kolab_Storage

27 */

28 class Horde_Kolab_Storage_List_Query_List_Cache_Synchronization

AbstractEvent.php (https://github.com/joomla/joomla-cms.git) PHP · 178 lines

1 <?php

2

3 /**

69 */

70 if (empty($eventClassName) || !class_exists($eventClassName, true)) {

71 $bareName = strpos($eventName, 'on') === 0 ? substr($eventName, 2) : $eventName;

72 $parts = Normalise::fromCamelCase($bareName, true);

japanese-euc.php (https://github.com/hatone/Nucleus-v3.64.git) PHP · 185 lines

1 <?php

2

3 /*

4 * @version $Id: japanese-euc.php 931 2009-02-11 08:33:42Z shizuki $

5 * @version $NucleusJP: japanese-euc.php,v 1.3 2007/02/04 06:28:46 kimitake Exp $

16 define('_SKINFILES_ACTIONS', '¥¢¥¯¥·¥ç¥ó');

17

18 define('_SKINFILES_RENAME', '̾���ѹ�');

19 define('_SKINFILES_RENAME_DIR_MSG', '���Υǥ��쥯�ȥ�̾');

20 define('_SKINFILES_RENAME_DIR_MSG2', '�򲼵���̾�����ѹ�');

21 define('_SKINFILES_EDIT_FILE_MSG', '¥Õ¥¡¥¤¥ë¤ÎÊÔ½¸');

22 define('_SKINFILES_RENAME_FILE_MSG', '¥Õ¥¡¥¤¥ë');

arch.def (https://github.com/barak/ivtools-cvs.git) Module-Definition · 462 lines

33 #undef vax

34 #define VaxArchitecture

35 #define ArchitectureName VAX

36 #define architectureName vax

42 #undef mipsel

43 #define MipsArchitecture

44 #define ArchitectureName MIPSEL

45 #define architectureName mipsel

54 #undef vax

55 #define VaxArchitecture

56 #define ArchitectureName VAX

57 #define architectureName vax

67 #undef SUN3

68 #undef sun3

69 #define ArchitectureName SUN3

70 #define architectureName sun3

PropelTableComparator.php (https://gitlab.com/Isaki/le331.fr) PHP · 312 lines

1 <?php

2

3 /**

9 */

10

11 require_once dirname(__FILE__) . '/../Table.php';

12 require_once dirname(__FILE__) . '/PropelTableDiff.php';

13 require_once dirname(__FILE__) . '/PropelColumnComparator.php';

14 require_once dirname(__FILE__) . '/PropelColumnDiff.php';

15 require_once dirname(__FILE__) . '/PropelIndexComparator.php';

16 require_once dirname(__FILE__) . '/PropelForeignKeyComparator.php';

150 if (!PropelColumnComparator::computeDiff($addedColumn, $removedColumn)) {

151 // no difference except the name, that's probably a renaming

152 $this->tableDiff->addRenamedColumn($removedColumn, $addedColumn);

153 $this->tableDiff->removeAddedColumn($addedColumnName);

154 $this->tableDiff->removeRemovedColumn($removedColumnName);

FileSystem_FtpTest.php (https://github.com/ThiloWitt/core.git) PHP · 436 lines

1 <?php

2 require_once dirname(__FILE__) . '/../../../../bootstrap.php';

3

4 // exclude the following file from code coverage reports.

5 PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(dirname(__FILE__). '/../../../../../src/lib/Zikula/FileSystem/Facade/Ftp.php');

6

7

10 * Zikula_FileSystem_Ftp test case.

11 */

12 class Zikula_FileSystem_FtpTest extends PHPUnit_Framework_TestCase

13 {

14

330 $stub = $this->getMock('Zikula_FileSystem_Facade_Ftp');

331 $stub->expects($this->any())

332 ->method('rename')

333 ->will($this->returnValue(true));

334

class-wp-sitemaps-posts.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 228 lines

1 <?php

2 /**

3 * Sitemaps: WP_Sitemaps_Posts class

54 *

55 * @since 5.5.0

56 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class

57 * for PHP 8 named parameter support.

149 *

150 * @since 5.5.0

151 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class

152 * for PHP 8 named parameter support.

source_code.php (https://github.com/F5/zetacomponents.git) PHP · 317 lines

1 <?php

2 /**

3 * File containing the ezcTemplateSourceCode class

72 *

73 * @property string $stream

74 * The PHP stream path for the template source file.

75 * @property string $resource

76 * The resource string which requested this template.

161 * Initialises the source object with the code and output context.

162 *

163 * @param string $stream The actual PHP stream path for the template source

164 * file.

165 * @param string $resource The requested resource string, if false $stream

180

181 /**

182 * Loads the data from the PHP stream into the $code member variable.

183 *

184 * @throws ezcTemplateFileNotFoundException if the file does not exist on disk.

S3.php (https://github.com/basdog22/Qool.git) PHP · 332 lines

1 <?php

2 /**

3 * LICENSE

18 */

19

20 require_once 'Zend/Service/Amazon/S3.php';

21 require_once 'Zend/Cloud/StorageService/Adapter.php';

22 require_once 'Zend/Cloud/StorageService/Exception.php';

23

24 /**

217

218 /**

219 * Rename an item in the storage service to a given name.

220 *

221 *

DB_forge.php (https://github.com/adobi/codeigniter-base.git) PHP · 382 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * Code Igniter

4 *

5 * An open source application development framework for PHP 5.1.6 or newer

6 *

7 * @package CodeIgniter

221

222 /**

223 * Rename Table

224 *

225 * @access public

228 * @return bool

229 */

230 function rename_table($table_name, $new_table_name)

231 {

232 if ($table_name == '' OR $new_table_name == '')

Subs-Install.php (https://github.com/nikop/PostHistory.git) PHP · 258 lines

1 <?php

2

3 if (!defined('SMF'))

4 die('Hacking attempt...');

5

6 function doTables($tables, $columnRename = array())

7 {

8 global $smcFunc, $db_prefix, $db_type, $db_show_debug;

25 $currentTable = $smcFunc['db_table_structure']('{db_prefix}' . $table_name);

26

27 // Renames in this table?

28 if (!empty($table['rename']))

30 foreach ($currentTable['columns'] as $column)

31 {

32 if (isset($table['rename'][$column['name']]))

33 {

34 $old_name = $column['name'];

test-dropin.sh (https://gitlab.com/parabola/user_lukeshu_systemd) Shell · 274 lines

134 # changed by loading an alias...

135 #

136 # [1] 'a1' is loaded and then "renamed" into 'a'. 'a1' is therefore

137 # part of the names set so all its specific dropins are loaded.

138 #

CopyRenameTest.php (https://github.com/bruisedlee/zf2.git) PHP · 361 lines

1 <?php

2 /**

3 * Zend Framework

35 * @group Zend_LDAP

36 */

37 class CopyRenameTest extends OnlineTestCase

38 {

39 /**

119 }

120

121 public function testSimpleLeafRename()

122 {

123 $org=$this->_getLDAP()->getEntry($this->_orgDn, array(), true);

124 $this->_getLDAP()->rename($this->_orgDn, $this->_newDn, false);

125 $this->assertFalse($this->_getLDAP()->exists($this->_orgDn));

126 $this->assertTrue($this->_getLDAP()->exists($this->_newDn));

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

194 nameOfClass.clear();

195 namespaces.clear();

196 bareNameOfClass.clear();

197 }

198

267 nameOfClass = getObjectName(e);

268 namespaces = nameOfClass.split(QLatin1String("::"));

269 bareNameOfClass = namespaces.last();

270 namespaces.removeLast();

271

Varargs.html (https://swig.svn.sourceforge.net/svnroot/swig) HTML · 942 lines ✨ Summary

This HTML code outputs a technical documentation page for SWIG, a software development tool. It provides information on how to wrap variable-length argument functions in C++ using various techniques, including the %varargs directive and typemaps. The content explains the challenges of wrapping varargs, discusses different approaches, and offers guidance on how to implement them.

799 arguments presents a number of challenges. By far, the easiest way to

800 handle this is to use the <tt>%varargs</tt> directive. This is portable

801 and it fully supports classes much like the <tt>%rename</tt> directive. For example:

802 </p>

803

PropelTableComparator.php (https://github.com/esimionato/Propel2.git) PHP · 312 lines

1 <?php

2

3 /**

147 if (!PropelColumnComparator::computeDiff($addedColumn, $removedColumn, $caseInsensitive)) {

148 // no difference except the name, that's probably a renaming

149 $this->tableDiff->addRenamedColumn($removedColumn, $addedColumn);

150 $this->tableDiff->removeAddedColumn($addedColumnName);

151 $this->tableDiff->removeRemovedColumn($removedColumnName);

197 if (!PropelColumnComparator::computeDiff($addedColumn, $removedColumn, $caseInsensitive)) {

198 // no difference except the name, that's probably a renaming

199 $this->tableDiff->addRenamedPkColumn($removedColumn, $addedColumn);

200 $this->tableDiff->removeAddedPkColumn($addedColumnName);

201 $this->tableDiff->removeRemovedPkColumn($removedColumnName);

ClientInterface.php (https://gitlab.com/ntphuc/BackendFeedy) PHP · 230 lines

1 <?php

2

3 /*

38 * @method int pttl($key)

39 * @method string randomkey()

40 * @method mixed rename($key, $target)

41 * @method int renamenx($key, $target)

DB_forge.php (https://github.com/busaway/FoOlSlide.git) PHP · 382 lines

1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * Code Igniter

4 *

5 * An open source application development framework for PHP 5.1.6 or newer

6 *

7 * @package CodeIgniter

221

222 /**

223 * Rename Table

224 *

225 * @access public

228 * @return bool

229 */

230 function rename_table($table_name, $new_table_name)

231 {

232 if ($table_name == '' OR $new_table_name == '')

TestsGeneratorTest.php (https://github.com/masicek/XSLT-Benchmarking-XSLTMark-II.git) PHP · 173 lines

1 <?php

2

3 /**

10 namespace Tests\XSLTBenchmarking\TestsGenerator;

11

12 require_once ROOT_TOOLS . '/RunnerConsole/Runner.php';

13

14 use \Tests\XSLTBenchmarking\TestCase;

47

48 // check not existence of tests

49 $this->assertFalse(is_dir($this->setDirSep($tests . '/modify-element-rename')));

50 $this->assertFalse(is_dir($this->setDirSep($tests . '/modify-element-remove')));

51 $this->assertFalse(is_dir($this->setDirSep($tests . '/modify-element-copy')));

60

61 // check generated tests

62 $this->assertTrue(is_dir($this->setDirSep($tests . '/modify-element-rename')));

63 $this->assertTrue(is_dir($this->setDirSep($tests . '/modify-element-remove')));

64 $this->assertTrue(is_dir($this->setDirSep($tests . '/modify-element-copy')));

QtOpenGL.4.5.0.linux-gcc-amd64.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 15777 lines

646 88 QAbstractFileEngine::remove

647 96 QAbstractFileEngine::copy

648 104 QAbstractFileEngine::rename

649 112 QAbstractFileEngine::link

650 120 QAbstractFileEngine::mkdir

723 88 QFSFileEngine::remove

724 96 QFSFileEngine::copy

725 104 QFSFileEngine::rename

726 112 QFSFileEngine::link

727 120 QFSFileEngine::mkdir

ChangeLog-2003-10-25 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 1484 lines

97 2003-09-22 Darin Adler <darin@apple.com>

98

99 * JavaScriptCore.pbproj/project.pbxproj: Rename Mixed build style to OptimizedWithSymbols.

100

101 2003-09-22 Darin Adler <darin@apple.com>

cifsglob.h (http://omnia2droid.googlecode.com/svn/trunk/) C Header · 711 lines ✨ Summary

This C header file defines various global variables and data structures for a CIFS (Common Internet File System) implementation, which is a protocol used to access Windows networks from Linux systems. It sets up locks and counters for managing SMB sessions, transactions, and buffers, as well as debug counters and miscellaneous settings.

264 atomic_t num_posixmkdirs;

265 atomic_t num_rmdirs;

266 atomic_t num_renames;

267 atomic_t num_t2renames;

282 unsigned long long time_mkdirs;

283 unsigned long long time_rmdirs;

284 unsigned long long time_renames;

285 unsigned long long time_t2renames;

ada95.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 225 lines

182 <KEYWORD2>record</KEYWORD2>

183 <KEYWORD2>rem</KEYWORD2>

184 <KEYWORD2>renames</KEYWORD2>

185 <KEYWORD2>requeue</KEYWORD2>

186 <KEYWORD2>return</KEYWORD2>

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

125

126 - Project properties will now be stored under <settings directory>/projectviewer. The

127 plugin should move old properties files to this directory, as well as rename them.

128

129

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

113 will show options related to the current selection on the tree, allowing

114 you to remove files or directories from a project, deleting them from the

115 disk, or rename them, among many other options.

116 </para>

117

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

This HTML code outputs a manual page for Artistic Style, a source code formatter. It provides information on options and usage, including explanations of various flags and their effects. The output includes acknowledgments to contributors and beta-testers, as well as a call to action to enjoy the program. The text is formatted in a traditional manual page style, with sections and paragraphs that resemble those found in printed documentation.

161 will be named </font><font color="#993399" size="3"><strong>Foo.java</strong></font><font

162 color="#330000" size="3">, while the original

163 pre-indented file will be renamed to </font><font

164 color="#993399" size="3"><strong>Foo.java.orig</strong> </font><font

165 color="#330000" size="3">.</font></p>

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

This JavaScript code is a part of the Dojo toolkit, a popular JavaScript library for building web applications. It provides various utility functions and APIs for tasks such as object manipulation, event handling, and debugging. The code defines several functions that can be used to perform common operations in a web application, including eval, deprecated, and experimental markers.

63 // conditions, Dojo auto-detects the correct location from which it

64 // was loaded. You may need to manually configure `baseUrl` in cases

65 // where you have renamed `dojo.js` or in which `<base>` tags confuse

66 // some browsers (e.g. IE 6). The variable `dojo.baseUrl` is assigned

67 // either the value of `djConfig.baseUrl` if one is provided or the

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

This Java code is part of a file browser application, specifically handling menu buttons for browsing directories and managing favorites. It creates instances of JPopupMenu to display options such as adding files to favorites, editing favorites, and navigating to specific directories. The code also handles user input and updates the application’s state accordingly.

565 } //}}}

566

567 //{{{ rename() method

568 public void rename(String from)

572 String filename = vfs.getFileName(from);

573 String[] args = { filename };

574 String to = GUIUtilities.input(this,"vfs.browser.rename",

575 args,filename);

576 if(to == null)

587

588 VFSManager.runInWorkThread(new BrowserIORequest(

589 BrowserIORequest.RENAME,this,

590 session,vfs,from,to,null));

591 } //}}}

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

This Java code is part of a file system browser for a text editor, likely NetBeans. It provides functionality to list files and directories in a file system, filter by type and name, and colorize file names based on regular expressions. The code also handles recursive directory traversal, symlinks, and binary files. It uses an internal configuration system to store user preferences, such as colorizing file names.

139

140 /**

141 * Rename file capability.

142 * @since jEdit 2.6pre2

143 */

144 public static final int RENAME_CAP = 1 << 4;

145

146 /**

373 *

374 * By default jEdit first saves a file to <code>#<i>name</i>#save#</code>

375 * and then renames it to the original file. However some virtual file

376 * systems might not support the <code>#</code> character in filenames,

377 * so this method permits the VFS to override this behavior.

progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1060 lines

330 <KEYWORD1>OS-DELETE</KEYWORD1>

331 <KEYWORD1>OS-DIR</KEYWORD1>

332 <KEYWORD1>OS-RENAME</KEYWORD1>

333 <KEYWORD1>OS400</KEYWORD1>

334 <KEYWORD1>OTHERWISE</KEYWORD1>

377 <KEYWORD1>RECTANGLE</KEYWORD1>

378 <KEYWORD1>RELEASE</KEYWORD1>

379 <KEYWORD1>RENAME</KEYWORD1>

380 <KEYWORD1>REPEAT</KEYWORD1>

381 <KEYWORD1>REPOSITION</KEYWORD1>

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

This Java code implements a file system view for a text editor, allowing users to interact with files and directories on their local file system. It provides methods for creating input/output streams, saving files, setting permissions, and preserving file permissions. The code also handles Unix-specific commands like chmod and ls.

51 {

52 super("file",READ_CAP | WRITE_CAP | BROWSE_CAP | DELETE_CAP

53 | RENAME_CAP | MKDIR_CAP | LOW_LATENCY_CAP

54 | (OperatingSystem.isCaseInsensitiveFS()

55 ? CASE_INSENSITIVE_CAP : 0),

424 } //}}}

425

426 //{{{ _rename() method

427 @Override

428 public boolean _rename(Object session, String from, String to,

472 _to.delete();

473

474 boolean retVal = _from.renameTo(_to);

475 VFSManager.sendVFSUpdate(this,fromCanonPath,true);

476 VFSManager.sendVFSUpdate(this,toCanonPath,true);

bbj.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 309 lines

190 <KEYWORD2>RECORD</KEYWORD2>

191 <KEYWORD2>REMOVE</KEYWORD2>

192 <KEYWORD2>RENAME</KEYWORD2>

193 <KEYWORD2>RESCLOSE</KEYWORD2>

194 <KEYWORD2>RESFIRST</KEYWORD2>

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

121

122 - File System Browser now recognizes Backspace, DEL and F2 to

123 go to parent dir, delete and rename files respectively.

124 The "path:" textarea accepts environment variables and expands them too.

125 (1542365) (Alan Ezust)

168 (#1549282) (Matthieu Casanova)

169

170 - ArrayOutOfBoundException fixed in VFS browser when choosing to delete, rename

171 or browse in right click popupmenu when no file are selected

172 (#1565286) (Matthieu Casanova)

327 (Marcelo Vanzin)

328

329 - SF bug 1523117: Add explicit fold in PHP mode inserts wrong comments

330 The "DEF_CLASS" rule set in the php mode file didn't have any line

331 or range comments declared in the props section; so the code was now

332 picking up the porperties for the default rule set, which had the

333 HTML-style range comment instead of the PHP line comment. This is

334 probably due to the XML parser change - the old code was probably

335 propagating some property of another rule set to the DEF_CLASS rule

setupscript.rst (https://bitbucket.org/tarek/distutils2/) ReStructuredText · 687 lines ✨ Summary

This text explains how to use the setup function in Python’s Distutils library to create a package. It covers various options, such as specifying version information, classifiers, and license, and provides examples of valid values for each field. It also discusses debugging techniques, including setting the DISTUTILS_DEBUG environment variable to print detailed output.

520

521 Note that you can specify the directory names where the data files will be

522 installed, but you cannot rename the data files themselves.

523

524 Each (*directory*, *files*) pair in the sequence specifies the installation

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

216 <KEYWORD2>os.getenv</KEYWORD2>

217 <KEYWORD2>os.remove</KEYWORD2>

218 <KEYWORD2>os.rename</KEYWORD2>

219 <KEYWORD2>os.setlocale</KEYWORD2>

220 <KEYWORD2>os.time</KEYWORD2>

TestUtils.cs (https://hg01.codeplex.com/linqtoroot) C# · 712 lines ✨ Summary

This C# code is a collection of utility methods for analyzing and manipulating source code. It provides functionality for tasks such as finding variable names, checking for return statements, and navigating scope in code. The methods are designed to be used in conjunction with other tools or frameworks for static analysis and testing of software code.

40 }

41

42 public override void RenameVariable(string origName, string newName)

43 {

44 throw new NotImplementedException();

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

This Java code is for a graphical user interface (GUI) dialog box that manages sessions, likely related to software development or debugging. It allows users to rename and delete existing sessions, and provides an option to close the dialog. The GUI displays a list of available sessions, with options to change the current session, rename a session, and delete a session.

81 JScrollPane scrSessions = new JScrollPane(lSessions);

82

83 bRename = new JButton(jEdit.getProperty("sessions.manager.rename"));

84 bRename.addActionListener(this);

200

201

202 private void rename()

203 {

204 // TODO: Move this functionality to SessionManager

211

212 // Load the session to be re-named

213 Session renameSession;

214 if (oldName.equals(currentSession))

215 {

225 }

226

227 if (renameSession.rename(newName)) // rename succeeded

228 {

229 setNewListModel();

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

104 <KEYWORD1>exit</KEYWORD1>

105 <KEYWORD1>history</KEYWORD1>

106 <KEYWORD1>rename</KEYWORD1>

107 <KEYWORD1>info</KEYWORD1>

108 <KEYWORD1>ceil</KEYWORD1>

tsql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1020 lines

766 <KEYWORD3>sp_remove_job_from_targets</KEYWORD3>

767 <KEYWORD3>sp_removedbreplication</KEYWORD3>

768 <KEYWORD3>sp_rename</KEYWORD3>

769 <KEYWORD3>sp_renamedb</KEYWORD3>

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

524 <KEYWORD3>present</KEYWORD3>

525 <KEYWORD3>procname</KEYWORD3>

526 <KEYWORD3>procedurename</KEYWORD3>

527 <KEYWORD3>prod</KEYWORD3>

528 <KEYWORD3>putenv</KEYWORD3>

director_basic.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 145 lines

38

39 // basic renaming

40 %rename(rg) A::gg;

41 %feature("nodirector") hi::A1::gg;

42

faq-use.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 715 lines

316 result, the jEdit file browser treats both spellings

317 identically and does not make a name change. Using our

318 example, the easiest workaround is to rename the file in two

319 steps: first to <filename>_myfile.txt</filename>, then to

320 <filename>MyFile.txt</filename>.</para>

rebol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 547 lines

297 <KEYWORD1>remold</KEYWORD1>

298 <KEYWORD1>remove-event-func</KEYWORD1>

299 <KEYWORD1>rename</KEYWORD1>

300 <KEYWORD1>repend</KEYWORD1>

301 <KEYWORD1>replace</KEYWORD1>

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

This Java code is part of a plugin for an Integrated Development Environment (IDE) that provides features such as syntax highlighting, code completion, and tree view display for Java source code. It allows users to customize various settings, including visibility options, sorting, and filtering, through GUI actions and system properties.

378 Integer other_vis = new Integer( ModifierSet.visibilityRank( tnb.getModifiers() ) );

379 int comp = my_vis.compareTo( other_vis );

380 return comp == 0 ? compareNames( tna, tnb ) : comp;

381 }

382 else {

383 // sort by name

384 return compareNames( tna, tnb );

385 }

386 }

387

388 private int compareNames( TigerNode tna, TigerNode tnb ) {

389 // sort by name

390 Integer my_ordinal = new Integer( tna.getOrdinal() );

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

31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).

32

33 - PHP mode now recognizes <script language="PHP">...</script>.

34

35 - Updated Omnimark syntax highlighting (Lionel Fiol).

766 - Fixed long-standing race condition in file system browser that could

767 prevent a directory listing from being updated after a file was

768 created, removed or renamed.

769

770 - Changes made in the Docking option pane only took effect after a

836 modes.

837

838 - SCRIPT tags in HTML files no longer recognize <?php ... ?>.

839

840 }}}

QtScript.4.6.0.linux-gcc-ia32.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 2811 lines

429 44 QAbstractFileEngine::remove

430 48 QAbstractFileEngine::copy

431 52 QAbstractFileEngine::rename

432 56 QAbstractFileEngine::link

433 60 QAbstractFileEngine::mkdir

773 44 QFSFileEngine::remove

774 48 QFSFileEngine::copy

775 52 QFSFileEngine::rename

776 56 QFSFileEngine::link

777 60 QFSFileEngine::mkdir

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

This Java code implements a file system interface for a text editor, allowing users to interact with files on their local machine. It provides methods for creating, reading, writing, and deleting files, as well as managing file permissions and updating the file system when changes are made. The code is designed to work on Unix-like systems, but does nothing on non-Unix platforms.

45 {

46 super("file",READ_CAP | WRITE_CAP | BROWSE_CAP | DELETE_CAP

47 | RENAME_CAP | MKDIR_CAP | LOW_LATENCY_CAP);

48 } //}}}

49

286 } //}}}

287

288 //{{{ _rename() method

289 public boolean _rename(Object session, String from, String to,

296 _to.delete();

297

298 boolean retVal = new File(from).renameTo(_to);

299 VFSManager.sendVFSUpdate(this,from,true);

300 VFSManager.sendVFSUpdate(this,to,true);

Mksymlists.pm (git://github.com/tokuhirom/mobirc.git) Perl · 313 lines ✨ Summary

This Perl code generates a linker option file for creating shared libraries for dynamic extensions. It takes a list of key-value pairs as input, including package names, function names, and variable names to be exported. The output is used by the linker under certain operating systems during library creation.

65 my($data) = @_;

66

67 rename "$data->{FILE}.exp", "$data->{FILE}.exp_old";

68

69 open( my $exp, ">", "$data->{FILE}.exp")

96 $comment = "$comment (Perl-config: $Config{config_args})";

97 $comment = substr($comment, 0, 200) . "...)" if length $comment > 203;

98 rename "$data->{FILE}.def", "$data->{FILE}_def.old";

99

100 open(my $def, ">", "$data->{FILE}.def")

125 $data->{DLBASE} = substr($data->{DLBASE},0,7) . '_';

126 }

127 rename "$data->{FILE}.def", "$data->{FILE}_def.old";

128

129 open( my $def, ">", "$data->{FILE}.def" )

sas.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 459 lines

389 <KEYWORD2>REG</KEYWORD2>

390 <KEYWORD2>REGR</KEYWORD2>

391 <KEYWORD2>RENAME</KEYWORD2>

392 <KEYWORD2>REPLACE</KEYWORD2>

393 <KEYWORD2>RETAIN</KEYWORD2>

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

This C code implements a Linux kernel module for interacting with Aiptek tablets, which are known as “styluses” or “mouse devices”. The module registers itself with the USB subsystem and provides a way to program the tablet’s settings, such as delay times for stylus movement and mouse settlement. It also creates sysfs files for configuration and status information.

42 * for reports 1, 6.)

43 * what physical device reports for reports 1, 6.) Also enabled

44 * MOUSE and LENS tool button modes. Renamed "rubber" to "eraser".

45 * Feb 20, 2004, Bryan W. Headley.

46 * v1.5 - Added previousJitterable, so we don't do jitter delay when the

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

This Java code manages XML catalogs and resources for a text editor, specifically JEdit. It loads and parses catalog files, handles resource downloads, and updates the catalog when the user changes a file on disk. The code uses a custom Entry class to represent XML entries and a VFSUpdateHandler component to reload catalogs when files are modified.

236

237 oldDtdFile.delete();

238 newFile.renameTo(oldDtdFile);

239

240 JOptionPane.showMessageDialog(

i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines

474 <KEYWORD1>REMAINDER</KEYWORD1>

475 <KEYWORD1>REMOVE</KEYWORD1>

476 <KEYWORD1>RENAME</KEYWORD1>

477 <KEYWORD1>REOPTIMIZATION</KEYWORD1>

478 <KEYWORD1>REPEATABLE</KEYWORD1>

TabItemWidget.java (http://keywatch.googlecode.com/svn/trunk/) Java · 180 lines ✨ Summary

This Java code defines a TabItemWidget class, which represents a single tab item on a desktop panel. It displays a label and a close button, allowing users to rename or remove the associated desktop. When the close button is clicked, it prompts the user to confirm removal. If renamed, it updates the desktop’s name and saves changes.

34 private InputBox inputBox;

35

36 static final String PROMPT_TITLE_RENAME = "Rename";

37 static final String PROMPT_RENAME = "Please specify the new desktop name.";

38 static final String PROMPT_REMOVE = "Are you sure you want to remove the current desktop tab from you profile?";

39 static final String TABNAME_SETTINGS = "Settings";

40 static final String RENAME_NOT_UNIQUE = "Could not rename because another desktop with the same name exists";

41

42 /**

99 !desktopPanel.isSettingsDesktop())

100 {

101 renameDesktop();

102 }

103 }

110 {

111 // Ask for new name

112 inputBox = new InputBox(PROMPT_TITLE_RENAME, PROMPT_RENAME);

113 inputBox.setInputText(desktopPanel.getCategory().getName());

114 inputBox.addCloseHandler(new CloseHandler<PopupPanel>()

AdvancedDtdOptions.java (https://bitbucket.org/nbargnesi/idea.git) Java · 258 lines

182 }

183

184 public static Map<String, ?> prepareNamespaceMap(Project project, VirtualFile firstFile) {

185 final PsiFile file = PsiManager.getInstance(project).findFile(firstFile);

186 if (file == null) {

aclocal.m4 (https://bitbucket.org/freebsd/freebsd-head/) m4 · 905 lines ✨ Summary

This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.

292 # Check whether this is an Automake generated Makefile or not.

293 # We used to match only the files named `Makefile.in', but

294 # some people rename them; so instead we look at the file content.

295 # Grep'ing the first line is not enough: some people post-process

296 # each Makefile.in and add a new line on top of each file to say so.

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

160 if(ruleType == QLatin1String("RenamedHeader")) {

161 headerReplacements.insert(qt3Symbol.toLatin1(), qt4Symbol.toLatin1());

162 } else if(ruleType == QLatin1String("RenamedClass") || ruleType == QLatin1String("RenamedToken") ) {

163 tokenRules.append(new ClassNameReplacement(

164 qt3Symbol.toLatin1(), qt4Symbol.toLatin1()));

165 } else if(ruleType == QLatin1String("RenamedEnumvalue") || ruleType == QLatin1String("RenamedType") ||

166 ruleType == QLatin1String("RenamedQtSymbol") ) {

255 bool PortingRules::isReplacementRule(const QString ruleType) const

256 {

257 return (ruleType == QLatin1String("RenamedHeader") || ruleType == QLatin1String("RenamedClass") ||

258 ruleType == QLatin1String("RenamedToken") || ruleType == QLatin1String("RenamedEnumvalue") ||

259 ruleType == QLatin1String("RenamedType") || ruleType == QLatin1String("RenamedQtSymbol") );

260 }

261

MethodOverridesPrivateMethodInspection.java (https://bitbucket.org/nbargnesi/idea.git) Java · 93 lines

23 import com.siyeh.ig.BaseInspectionVisitor;

24 import com.siyeh.ig.InspectionGadgetsFix;

25 import com.siyeh.ig.fixes.RenameFix;

26 import org.jetbrains.annotations.NotNull;

27

49

50 protected InspectionGadgetsFix buildFix(Object... infos) {

51 return new RenameFix();

52 }

53

home.ctp (https://bitbucket.org/floresj/notetime.git) Unknown · 189 lines

88 echo __d('cake_dev', 'Your database configuration file is NOT present.');

89 echo '<br/>';

90 echo __d('cake_dev', 'Rename APP/Config/database.php.default to APP/Config/database.php');

91 echo '</span>';

92 endif;

169 <ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>

170 <li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a>

171 <ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>

173 <ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>

174 <li><a href="http://api20.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>

175 <ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li>

183 <ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>

184 <li><a href="http://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>

185 <ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li>

186 <li><a href="http://cakephp.lighthouseapp.com/"><?php echo __d('cake_dev', 'CakePHP Lighthouse'); ?> </a>

187 <ul><li><?php echo __d('cake_dev', 'CakePHP Tickets, Wiki pages, Roadmap'); ?></li></ul></li>

PropertyRenameHandler.java (https://bitbucket.org/nbargnesi/idea.git) Java · 69 lines

24 import com.intellij.psi.*;

25 import com.intellij.psi.impl.source.resolve.reference.impl.PsiMultiReference;

26 import com.intellij.refactoring.rename.PsiElementRenameHandler;

27 import com.intellij.lang.properties.references.PropertyReferenceBase;

28 import org.jetbrains.annotations.NotNull;

32 * @author Dmitry Avdeev

33 */

34 public class PropertyRenameHandler extends PsiElementRenameHandler {

35

36 public boolean isAvailableOnDataContext(final DataContext dataContext) {

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

187 overload_extend

188 overload_extendc

189 overload_rename

190 overload_simple

191 overload_subtype

196 primitive_ref

197 private_assign

198 protected_rename

199 pure_virtual

200 redefined

202 reference_global_vars

203 register_par

204 rename_scope

205 ret_by_value

206 return_const_value

enum_scope.i (https://swig.svn.sourceforge.net/svnroot/swig) Swig · 17 lines

1 %module enum_scope

2

3 #ifdef SWIGPHP

4 // php internal naming conflict

5 %rename (chops) chop;

6 #endif

7

RenameFix.java (https://bitbucket.org/nbargnesi/idea.git) Java · 93 lines

25 import com.intellij.refactoring.RenameRefactoring;

26 import com.intellij.refactoring.rename.RenameHandler;

27 import com.intellij.refactoring.rename.RenameHandlerRegistry;

76 @Override

77 public void run(DataContext context) {

78 final RenameHandler renameHandler = RenameHandlerRegistry.getInstance().getRenameHandler(context);

79 if (renameHandler == null) {

80 return;

81 }

82 renameHandler.invoke(project, new PsiElement[]{elementToRename}, context);

83 }

84 });

88 final RenameRefactoring renameRefactoring =

89 factory.createRename(elementToRename, m_targetName, m_searchInStrings, m_searchInNonJavaFiles);

90 renameRefactoring.run();

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

45 an argument to an existing function.

46

47 Rename a global variable in all source files.

48

49 Change a constant to a preprocessor symbol in selected lines of files.

bwapi-bridge.i (http://bwapi-mono-bridge.googlecode.com/svn/trunk/) Swig · 109 lines ✨ Summary

This is a SWIG interface file for the BWAPI C++ library, which generates Python bindings for the library’s classes and functions. It includes various directives and templates to ensure that the generated Python code is correct and efficient. The file includes headers from the BWAPI library, as well as some custom directives and templates to handle certain issues with the library’s typemaps and operator overloads.

27

28 //fix up operator overrides.

29 %rename (opAssign) *::operator =;

30 %rename (opEquals) *::operator ==;

31 %rename (opLessThan) *::operator <;

32 %rename (opGreaterThan) *::operator >;

33 %rename (opMinus) *::operator -;

34 %rename (opNotEquals) *::operator !=;

35 %rename (opPlus) *::operator +;

36 %rename (opAdd) *::operator +=;

37 %rename (opSubtract) *::operator -=;

38 %rename (opInt) *::operator int;

ChangeLog-9899 (https://bitbucket.org/freebsd/freebsd-head/) Unknown · 1670 lines

218 1999-08-08 Ian Lance Taylor <ian@zembu.com>

219

220 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to

221 MKDEP. Rebuild dependencies.

222 * Makefile.in: Rebuild.

338 1999-05-28 Linus Nordberg <linus.nordberg@canit.se>

339

340 * m68k-opc.c: Rename MACL/MSACL to MAC/MSAC. Add MACM/MSACM. Add

341 MOVE MACSR,CCR.

342

360 (dis386_twobyte_att, dis386_twobyte_intel): Use Ed for movd.

361 (Rw): Remove.

362 (OP_rm): Rename to OP_Rd.

363 (ONE): Remove.

364 (OP_ONE): Remove.

RenameLibraryHandler.java (https://bitbucket.org/nbargnesi/idea.git) Java · 129 lines

35 import com.intellij.psi.PsiElement;

36 import com.intellij.psi.PsiFile;

37 import com.intellij.refactoring.rename.RenameHandler;

38 import org.jetbrains.annotations.NotNull;

39 import org.jetbrains.annotations.Nullable;

42 * @author Konstantin Bulenkov

43 */

44 public class RenameLibraryHandler implements RenameHandler, TitledHandler {

45 private static final Logger LOG = Logger.getInstance("#com.intellij.ide.projectView.actions.RenameModuleHandler");

63 Messages.showInputDialog(project,

64 IdeBundle.message("prompt.enter.new.library.name"),

65 IdeBundle.message("title.rename.library"),

66 Messages.getQuestionIcon(),

67 library.getName(),

70

71 public String getActionTitle() {

72 return IdeBundle.message("title.rename.library");

73 }

74

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

This Java class, VPTGroup, represents a container for groups and projects in a file system viewer. It extends another class, VPTNode, and provides methods to display an icon, get its path, compare with other nodes, and convert to a string representation. The class is part of the Project Viewer (PV) software and follows the GNU General Public License.

74 return 1;

75 } else {

76 return compareName(n);

77 }

78 } //}}}

pl-sql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 503 lines

243 <KEYWORD1>RELEASE</KEYWORD1>

244 <KEYWORD1>REMR</KEYWORD1>

245 <KEYWORD1>RENAME</KEYWORD1>

246 <KEYWORD1>RESOURCE</KEYWORD1>

247 <KEYWORD1>RETURN</KEYWORD1>

GTMServiceManagement.c (http://update-engine.googlecode.com/svn/trunk/) C · 777 lines ✨ Summary

This C code provides a set of functions for interacting with the launchd system on macOS, which manages background processes and services. The functions allow users to create, copy, and retrieve dictionaries representing launchd jobs, as well as access launchd exports. It also handles errors and provides debugging information. The code appears to be part of a larger framework or library for working with launchd.

736 // and

737 // http://opensource.apple.com/source/launchd/launchd-329.3/launchd/src/

738 // It turns out that they renamed the enum that I need to use between 10.5 and

739 // 10.6. Luckily if we request the 10_5 value on 10_6 we get an error

740 // so we just ask for the 10_5 value first, and then the 10_6 value second.

gtk_tree_iter.e (git://github.com/tybor/Liberty.git) Specman e · 277 lines ✨ Summary

This is a Specman e code output that defines a class GtkTreeIter which represents an iterator for traversing a tree data structure in GTK (GIMP Toolkit). It provides methods to navigate through the tree, such as moving to a child node, parent node, or nth child node, and to get a string representation of the current position. The class also manages its own memory allocation and disposal.

29 insert

30 GTK

31 GTK_TREE_ITER_EXTERNALS rename set_stamp as set_stamp_internal end

32 GTK_TREE_MODEL_EXTERNALS

33 GLIB_MEMORY_ALLOCATION

config.hpp (http://rgdengine.googlecode.com/svn/trunk/) C++ Header · 147 lines ✨ Summary

This is a header file for Boost Test, which provides configuration macros and definitions for various aspects of the library’s behavior. It includes workarounds for compiler-specific issues, defines macros for controlling the library’s behavior, and includes other headers as needed.

134 // Revision 1.26 2005/01/30 01:48:24 rogeeff

135 // BOOST_TEST_STRINGIZE introduced

136 // counter type renamed

137 //

138 // Revision 1.25 2005/01/22 19:22:12 rogeeff

ARM-gcc.h (http://photon-android.googlecode.com/svn/) C++ Header · 121 lines ✨ Summary

This C header file defines various types and macros for working with integers of different bit sizes, including 8-bit, 16-bit, 32-bit, and 64-bit. It also provides definitions for special function names used in a GCC soft-float library to map between floating-point and integer operations. The macros are designed to be compatible with different compilers and implementations.

86

87 /* These ones go through the glue code. To avoid namespace pollution

88 we rename the internal functions too. */

89 #define float32_eq ___float32_eq

90 #define float32_le ___float32_le

example.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 77 lines

8 %include typemaps.i

9

10 %rename(VERSION) ZLIB_VERSION;

11 %rename(z_error) zError;

POCOLIB.TXT (git://github.com/AnimatorPro/Animator-Pro.git) Plain Text · 409 lines

347 ErrCode DosCopy(char *source, char *dest);

348 ErrCode DosDelete(char *filename);

349 ErrCode DosRename(char *old, char *new);

350 ErrCode SetDir(char *dir);

351 ErrCode GetDir(char *dir);

upload.php (http://rorptm.googlecode.com/svn/trunk/) PHP · 107 lines ✨ Summary

This PHP script is a file uploader for FCKeditor, a text editor for internet. It checks if the uploaded file meets certain criteria (e.g., valid type, allowed extension) and renames the file if another one with the same name already exists in the target directory. If successful, it sends a JavaScript notification to the parent window with the upload results.

1 <?php

2 /*

3 * FCKeditor - The text editor for internet

5 *

6 * Licensed under the terms of the GNU Lesser General Public License:

7 * http://www.opensource.org/licenses/lgpl-license.php

8 *

9 * For further information visit:

12 * "Support Open Source software. What about a donation today?"

13 *

14 * File Name: upload.php

15 * This is the "File Uploader" for PHP.

33 // Check if this uploader has been enabled.

34 if ( !$Config['Enabled'] )

35 SendResults( '1', '', '', 'This file uploader is disabled. Please check the "editor/filemanager/upload/php/config.php" file' ) ;

36

37 // Check if the file has been correctly uploaded.

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

141 overload_extend.cl

142 overload_extendc.cl

143 overload_rename.cl

144 overload_simple.cl

145 overload_subtype.cl

150 primitive_ref.cl

151 private_assign.cl

152 protected_rename.cl

153 pure_virtual.cl

154 redefined.cl

156 reference_global_vars.cl

157 register_par.cl

158 rename_scope.cl

159 ret_by_value.cl

160 return_const_value.cl

std_multiset.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 51 lines

39

40

41 %rename("delete") std::multiset::__delete__;

42 %rename("reject!") std::multiset::reject_bang;

43 %rename("map!") std::multiset::map_bang;

44 %rename("empty?") std::multiset::empty;

45 %rename("include?" ) std::multiset::__contains__ const;

46 %rename("has_key?" ) std::multiset::has_key const;

filefn.cpp (git://github.com/xbmc/xbmc.git) C++ · 439 lines ✨ Summary

This C++ code provides functions for interacting with files and directories on various operating systems. It includes file name conversion, CRC calculation, renaming, deleting, and directory deletion. The code is designed to be platform-independent, using Windows-specific APIs where necessary, but also providing fallbacks for other operating systems.

409

410

411 bool RenameFile(const char *SrcName,const wchar *SrcNameW,const char *DestName,const wchar *DestNameW)

412 {

413 return(rename(SrcName,DestName)==0);

enum_thorough_runme.pl (https://swig.svn.sourceforge.net/svnroot/swig) Perl · 410 lines ✨ Summary

This Perl code is a test suite for an enum module, verifying its functionality and behavior under various scenarios. It exercises different aspects of the enum module, including typemaps, speed tests, and error handling, to ensure they work as expected. The output indicates that the tests have passed or failed, providing feedback on the module’s correctness.

164 {

165 my $val = $enum_thorough::argh;

166 is(enum_thorough::renameTest1($val), $val, "renameTest Global 1");

167 is(enum_thorough::renameTest2($val), $val, "renameTest Global 2");

169 {

170 my $n = enum_thorough::NewNameStruct->new();

171 is($n->renameTest1($enum_thorough::NewNameStruct::bang), $enum_thorough::NewNameStruct::bang, "renameTest 1");

172 is($n->renameTest2($enum_thorough::NewNameStruct::bang), $enum_thorough::NewNameStruct::bang, "renameTest 2");

173 is($n->renameTest3($enum_thorough::NewNameStruct::simple1), $enum_thorough::NewNameStruct::simple1, "renameTest 3");

174 is($n->renameTest4($enum_thorough::NewNameStruct::doublename1), $enum_thorough::NewNameStruct::doublename1, "renameTest 4");

175 is($n->renameTest5($enum_thorough::NewNameStruct::doublename1), $enum_thorough::NewNameStruct::doublename1, "renameTest 5");

176 is($n->renameTest6($enum_thorough::NewNameStruct::singlename1), $enum_thorough::NewNameStruct::singlename1, "renameTest 6");

177 }

178 {

179 is(enum_thorough::renameTest3($enum_thorough::NewNameStruct::bang), $enum_thorough::NewNameStruct::bang, "renameTest Global 3");

180 is(enum_thorough::renameTest4($enum_thorough::NewNameStruct::simple1), $enum_thorough::NewNameStruct::simple1, "renameTest Global 4");

parser-tests.factor (git://github.com/abeaumont/factor.git) Unknown · 638 lines

523 [ 2 ] [ p:x ] unit-test

524

525 RENAME: x qualified.tests.baz => y

526 [ 3 ] [ y ] unit-test

527

NOTES.txt (git://github.com/jbevain/cecil.git) Unknown · 190 lines

53

54 - AssemblyKind:

55 renamed to ModuleKind.

56

57 + ModuleKind:

posixemulation.py (git://github.com/mitsuhiko/werkzeug.git) Python · 107 lines ✨ Summary

This Python code provides a POSIX emulation for renaming files on Windows systems, allowing for atomic and pseudo-atomic renames. It uses ctypes to interact with Windows API functions and handles cases where the target file already exists. The rename function falls back to traditional OS.rename if atomic rename fails.

32 _rename = lambda src, dst: False

33 _rename_atomic = lambda src, dst: False

34

35 try:

64 def _rename_atomic(src, dst):

65 ta = _CreateTransaction(None, 0, 0, 0, 0, 1000, 'Werkzeug rename')

66 if ta == -1:

67 return False

87 def rename(src, dst):

88 # Try atomic or pseudo-atomic rename

89 if _rename(src, dst):

103 pass

104 else:

105 rename = os.rename

106 can_rename_open_file = True