100+ results for 'username'

Not the results you expected?

grade_natural_exclude_empty.feature (https://github.com/markn86/moodle.git) Gherkin Specification · 269 lines

10 | Course 1 | C1 | 0 | 1 |

11 And the following "users" exist:

12 | username | firstname | lastname | email | idnumber |

13 | teacher1 | Teacher | 1 | teacher1@example.com | t1 |

14 | student1 | Student | 1 | student1@example.com | s1 |

grade_natural_exclude_empty_20150619.feature (https://github.com/sbourget/moodle.git) Gherkin Specification · 274 lines

11 And gradebook calculations for the course "C1" are frozen at version "20150619"

12 And the following "users" exist:

13 | username | firstname | lastname | email | idnumber |

14 | teacher1 | Teacher | 1 | teacher1@example.com | t1 |

15 | student1 | Student | 1 | student1@example.com | s1 |

0019_auto__add_field_encuesta_imagen01__add_field_encuesta_imagen02.py (https://github.com/rolexardon/Transparencia.git) Python · 195 lines

182 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),

183 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),

184 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

185 },

186 'contenttypes.contenttype': {

AmazonS3Config.cs (https://bitbucket.org/mdavid/awssdkfornet-extended.git) C# · 355 lines

172 get { return this.proxyUsername; }

173 set { this.proxyUsername = value; }

174 }

175

177 /// Sets the ProxyUsername property

178 /// </summary>

179 /// <param name="userName">Value for the ProxyUsername property</param>

180 /// <returns>this instance</returns>

181 public AmazonS3Config WithProxyUsername(string userName)

182 {

183 this.proxyUsername = userName;

184 return this;

185 }

188 /// Checks if ProxyUsername property is set

189 /// </summary>

190 /// <returns>true if ProxyUsername property is set</returns>

191 internal bool IsSetProxyUsername()

SCProductEntryModel.java (https://github.com/spreddy/liferay-portal.git) Java · 347 lines

140 */

141 @AutoEscape

142 public String getUserName();

143

144 /**

147 * @param userName the user name of this s c product entry

148 */

149 public void setUserName(String userName);

150

151 /**

DLFileShortcutWrapper.java (https://github.com/acs/liferay-portal.git) Java · 501 lines

170 * @return the user name of this document library file shortcut

171 */

172 public java.lang.String getUserName() {

173 return _dlFileShortcut.getUserName();

179 * @param userName the user name of this document library file shortcut

180 */

181 public void setUserName(java.lang.String userName) {

182 _dlFileShortcut.setUserName(userName);

334 * @return the status by user name of this document library file shortcut

335 */

336 public java.lang.String getStatusByUserName() {

337 return _dlFileShortcut.getStatusByUserName();

343 * @param statusByUserName the status by user name of this document library file shortcut

344 */

345 public void setStatusByUserName(java.lang.String statusByUserName) {

346 _dlFileShortcut.setStatusByUserName(statusByUserName);

PollsQuestionModel.java (https://github.com/spreddy/liferay-portal.git) Java · 433 lines

157 */

158 @AutoEscape

159 public String getUserName();

160

161 /**

164 * @param userName the user name of this polls question

165 */

166 public void setUserName(String userName);

167

168 /**

0012_auto__add_field_expense_supplier.py (https://github.com/splanquart/aemanager.git) Python · 154 lines

86 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),

87 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),

88 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

89 },

90 'contact.address': {

jboss-ejb-client_1_3.xsd (https://github.com/ochaloup/jboss-as.git) XML Schema · 330 lines

223 </xsd:annotation>

224 </xsd:attribute>

225 <xsd:attribute name="username" type="xsd:string" use="optional">

226 <xsd:annotation>

227 <xsd:documentation>

228 The username that will be used for authentication during connection creation for nodes in the

229 cluster

230 </xsd:documentation>

272 </xsd:annotation>

273 </xsd:attribute>

274 <xsd:attribute name="username" type="xsd:string" use="optional">

275 <xsd:annotation>

276 <xsd:documentation>

BookmarksFolderModel.java (https://github.com/danielreuther/liferay-portal.git) Java · 529 lines

183 @AutoEscape

184 @Override

185 public String getUserName();

186

187 /**

191 */

192 @Override

193 public void setUserName(String userName);

194

195 /**

363 */

364 @Override

365 public void setStatusByUserName(String statusByUserName);

366

367 /**

SlackHandler.php (https://gitlab.com/judielsm/Handora) PHP · 293 lines

39 * @var string

40 */

41 private $username;

42

43 /**

91 $this->token = $token;

92 $this->channel = $channel;

93 $this->username = $username;

94 $this->iconEmoji = trim($iconEmoji, ':');

95 $this->useAttachment = $useAttachment;

138 'token' => $this->token,

139 'channel' => $this->channel,

140 'username' => $this->username,

141 'text' => '',

142 'attachments' => array()

Kubernetes.groovy (https://gitlab.com/CORP-RESELLER/kubernetes-pipeline-plugin) Groovy · 358 lines

209 this.rm = rm

210 this.timeout = timeout

211 this.username = username

212 this.password = password

213 this.email = email

247 Pod fromPath(String path) {

248 kubernetes.node {

249 kubernetes.script.buildImage(name: name, rm: rm, path: path, timeout: timeout, username: username, password: password, email: email, ignorePatterns: ignorePatterns)

250 }

251 return new NamedImage(kubernetes, name).toPod()

348 void toRegistry(String registry) {

349 kubernetes.node {

350 kubernetes.script.pushImage(name: name, tagName: tagName, timeout: timeout, registry: registry, username: username, password: password, email: email)

351 }

352 }

tests.py (https://github.com/nvbn/djang0byte.git) Python · 366 lines

29 def setUp(self):

30 self.root = User.objects.create(

31 username='root',

32 is_staff=True,

33 is_superuser=True,

255 def setUp(self):

256 self.root = User.objects.create(

257 username='root',

258 is_staff=True,

259 is_superuser=True,

SettingsForm.cs (https://github.com/killerbonzai/BlueVex2.git) C# · 305 lines

185 if (newAccount.ShowDialog() == System.Windows.Forms.DialogResult.OK)

186 {

187 BlueVex2.Properties.Settings.Default.Accounts.Add(newAccount.Username + "," + newAccount.Password + "," + newAccount.CharSlot + "," + newAccount.Master + "," + newAccount.Realm);

188 PopulateAccountsListView();

189 }

209 {

210 BlueVex2.Properties.Settings.Default.Accounts.Remove(itemString);

211 BlueVex2.Properties.Settings.Default.Accounts.Add(newAccount.Username + "," + newAccount.Password + "," + newAccount.CharSlot + "," + newAccount.Master + "," + newAccount.Realm);

212 PopulateAccountsListView();

213 }

AnnouncementsEntryWrapper.java (https://github.com/spreddy/liferay-portal.git) Java · 494 lines

152 * @return the user name of this announcements entry

153 */

154 public java.lang.String getUserName() {

155 return _announcementsEntry.getUserName();

161 * @param userName the user name of this announcements entry

162 */

163 public void setUserName(java.lang.String userName) {

164 _announcementsEntry.setUserName(userName);

Test_POR_22_022_CheckChangesAfterEditPagePropertiesWithFinish.html (https://github.com/anhnht/exogtn.git) HTML · 472 lines

29 <tr>

30 <td>waitForElementPresent</td>

31 <td>username</td>

32 <td></td>

33 </tr>

34 <tr>

35 <td>type</td>

36 <td>username</td>

37 <td>root</td>

38 </tr>

SugarWsClientImpl.java (https://gitlab.com/Aaeinstein54/corelib) Java · 471 lines

60 private WebServiceTemplate webServiceTemplate;

61

62 private String username;

63

64 private String password;

74 /**

75 * Used for unit/integration tests

76 * @param username

77 * @param password

78 */

79 public SugarWsClientImpl(String username,String password){

80 this.username = username;

81 this.password = password;

82 }

420

421 @Override

422 public void setUsername(String username) {

423 this.username = username;

ShoppingCouponWrapper.java (https://github.com/portalcollc/liferay-portal.git) Java · 515 lines

155 * @return the user name of this shopping coupon

156 */

157 public java.lang.String getUserName() {

158 return _shoppingCoupon.getUserName();

164 * @param userName the user name of this shopping coupon

165 */

166 public void setUserName(java.lang.String userName) {

167 _shoppingCoupon.setUserName(userName);

0001_initial.py (https://bitbucket.org/acgray/recruitsql.git) Python · 207 lines

195 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),

196 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),

197 'username': ('django.db.models.fields.CharField', [], {'max_length': '75', 'blank': 'True'})

198 },

199 u'sites.site': {

User.php (https://gitlab.com/x33n/kanboard) PHP · 407 lines

26

27 if (isset($params['user'])) {

28 $params['title'] = ($params['user']['name'] ?: $params['user']['username']).' (#'.$params['user']['id'].')';

29 }

30

42 ->setUrl('user', 'index')

43 ->setMax(30)

44 ->setOrder('username')

45 ->setQuery($this->user->getQuery())

46 ->calculate();

OAuthApplicationWrapper.java (https://github.com/danielreuther/liferay-portal.git) Java · 528 lines

46 attributes.put("companyId", getCompanyId());

47 attributes.put("userId", getUserId());

48 attributes.put("userName", getUserName());

49 attributes.put("createDate", getCreateDate());

50 attributes.put("modifiedDate", getModifiedDate());

82 }

83

84 String userName = (String)attributes.get("userName");

85

86 if (userName != null) {

87 setUserName(userName);

88 }

89

497 */

498 @Override

499 public void setUserName(String userName) {

500 model.setUserName(userName);

IndexController.js (https://gitlab.com/umakantverma/LicExamApp) JavaScript · 246 lines

62 $scope.isSuccess = true;

63 $.cookie('userid', value.id);

64 $.cookie('userName',value.name);

65 var today = $scope.dateFormat();

66 var exp_date = value.exp_date ? value.exp_date.replace(' ', '') : today;

102 $scope.saveInDb();

103 $.cookie('userid', data['result']['id']);

104 $.cookie('userName',data['result']['name']);

105 }

106 else

241 $.removeCookie('url');

242 $.removeCookie('isPaid');

243 $.removeCookie('userName');

244 window.location = url;

245

ContactModel.java (https://github.com/spreddy/liferay-portal.git) Java · 555 lines

122 */

123 @AutoEscape

124 public String getUserName();

125

126 /**

129 * @param userName the user name of this contact

130 */

131 public void setUserName(String userName);

132

133 /**

ChatRabbitMQConnector.java (https://gitlab.com/varunkothamachu/yelo-android) Java · 243 lines

69 * before any messages will be delivered

70 */

71 public boolean connectToRabbitMQ(final String userName,

72 final String password, final String queueName,

73

74 final boolean durable, final boolean exclusive,

75 final boolean autoDelete, final Map<String, Object> args) {

76 if (super.connectToRabbitMQ(userName, password)) {

77

78 try {

bootstrap.php (https://github.com/brikou/mandango.git) PHP · 405 lines

178 'Model\User' => array(

179 'fields' => array(

180 'username' => 'string',

181 ),

182 ),

DLFileVersionModel.java (https://github.com/abdlquadri/liferay-portal.git) Java · 476 lines

140 */

141 @AutoEscape

142 public String getUserName();

143

144 /**

147 * @param userName the user name of this document library file version

148 */

149 public void setUserName(String userName);

150

151 /**

394 * @param statusByUserName the status by user name of this document library file version

395 */

396 public void setStatusByUserName(String statusByUserName);

397

398 /**

ConfirmForgotPasswordRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-android) Java · 478 lines

247 * </p>

248 */

249 public void setUsername(String username) {

250 this.username = username;

419 if (getUsername() != null)

420 sb.append("Username: " + getUsername() + ",");

421 if (getConfirmationCode() != null)

422 sb.append("ConfirmationCode: " + getConfirmationCode() + ",");

434 hashCode = prime * hashCode + ((getClientId() == null) ? 0 : getClientId().hashCode());

435 hashCode = prime * hashCode + ((getSecretHash() == null) ? 0 : getSecretHash().hashCode());

436 hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode());

437 hashCode = prime * hashCode

438 + ((getConfirmationCode() == null) ? 0 : getConfirmationCode().hashCode());

463 if (other.getUsername() == null ^ this.getUsername() == null)

464 return false;

465 if (other.getUsername() != null && other.getUsername().equals(this.getUsername()) == false)

466 return false;

467 if (other.getConfirmationCode() == null ^ this.getConfirmationCode() == null)

assign_group_override.feature (https://github.com/sbourget/moodle.git) Gherkin Specification · 239 lines

7 Background:

8 Given the following "users" exist:

9 | username | firstname | lastname | email |

10 | teacher1 | Tina | Teacher1 | teacher1@example.com |

11 | student1 | Sam1 | Student1 | student1@example.com |

MBMailingListLocalServiceImpl.java (https://github.com/spreddy/liferay-portal.git) Java · 272 lines

84 mailingList.setInServerPort(inServerPort);

85 mailingList.setInUseSSL(inUseSSL);

86 mailingList.setInUserName(inUserName);

87 mailingList.setInPassword(inPassword);

88 mailingList.setInReadInterval(inReadInterval);

173 mailingList.setOutServerPort(outServerPort);

174 mailingList.setOutUseSSL(outUseSSL);

175 mailingList.setOutUserName(outUserName);

176 mailingList.setOutPassword(outPassword);

177 mailingList.setAllowAnonymous(allowAnonymous);

220 mailingListRequest.setInServerPort(mailingList.getInServerPort());

221 mailingListRequest.setInUseSSL(mailingList.getInUseSSL());

222 mailingListRequest.setInUserName(mailingList.getInUserName());

223 mailingListRequest.setInPassword(mailingList.getInPassword());

224 mailingListRequest.setAllowAnonymous(mailingList.getAllowAnonymous());

AssetCategoryPersistenceTest.java (https://github.com/spreddy/liferay-portal.git) Java · 299 lines

79 newAssetCategory.setUserId(nextLong());

80

81 newAssetCategory.setUserName(randomString());

82

83 newAssetCategory.setCreateDate(nextDate());

110 assertEquals(existingAssetCategory.getUserId(),

111 newAssetCategory.getUserId());

112 assertEquals(existingAssetCategory.getUserName(),

113 newAssetCategory.getUserName());

273 assetCategory.setUserId(nextLong());

274

275 assetCategory.setUserName(randomString());

276

277 assetCategory.setCreateDate(nextDate());

forgotpassword.js (https://gitlab.com/Prajkta_Patkar/gkwebapp) JavaScript · 367 lines

46 type: "POST",

47 url: "/securityquestion",

48 data: {"orgcode":$.trim($("#orgcode").val()), "username":$.trim($("#username").val())},

49 global: false,

50 async: false,

87 });

88 $("#securityquestion").val("");

89 $("#username").focus();

90 return false;

91 }

94 type: "POST",

95 url: "/securityquestion",

96 data: {"orgcode":$.trim($("#orgcode").val()), "username":$.trim($("#username").val())},

97 global: false,

98 async: false,

customer.wsdl (https://github.com/axxtel/agilebill.git) Web Services Description Language · 406 lines

230 <wsdl:portType name="Customer">

231

232 <wsdl:operation name="addCustomer" parameterOrder="userName password role langpref parentid customerUserName customerPassword name company address1 address2 address3 city state country zip telNoCc telNo altTelNoCc altTelNo faxNoCc faxNo customerLangPref">

233

234 <wsdl:input name="addCustomerRequest" message="impl:addCustomerRequest"/>

262 </wsdl:operation>

263

264 <wsdl:operation name="getCustomerId" parameterOrder="userName password role langpref parentid customerUsername">

265

266 <wsdl:input name="getCustomerIdRequest" message="impl:getCustomerIdRequest"/>

270 </wsdl:operation>

271

272 <wsdl:operation name="authenticateCustomer" parameterOrder="userName password role langpref parentid username passwd">

273

274 <wsdl:input name="authenticateCustomerRequest" message="impl:authenticateCustomerRequest"/>

activities_visibility_icons.feature (https://github.com/markn86/moodle.git) Gherkin Specification · 180 lines

8 Scenario: Hide/Show toggle with javascript enabled

9 Given the following "users" exist:

10 | username | firstname | lastname | email |

11 | teacher1 | Teacher | 1 | teacher1@example.com |

12 | student1 | Student | 1 | student1@example.com |

68 Scenario: Activities can be made available and unavailable inside a hidden section

69 Given the following "users" exist:

70 | username | firstname | lastname | email |

71 | teacher1 | Teacher | 1 | teacher1@example.com |

72 | student1 | Student | 1 | student1@example.com |

127 Scenario: Activities can be made available but not visible on a course page

128 Given the following "users" exist:

129 | username | firstname | lastname | email |

130 | teacher1 | Teacher | 1 | teacher1@example.com |

131 | student1 | Student | 1 | student1@example.com |

KaleoInstanceWrapper.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 483 lines

152 * @return the user name of this kaleo instance

153 */

154 public java.lang.String getUserName() {

155 return _kaleoInstance.getUserName();

161 * @param userName the user name of this kaleo instance

162 */

163 public void setUserName(java.lang.String userName) {

164 _kaleoInstance.setUserName(userName);

process.php (https://github.com/apurvgupta12/Ushahidi_Web.git) PHP · 310 lines

76 $_SESSION['basic_db_info'] = 'basic_general_settings';

77 // send the database info to the next page for updating the settings table.

78 $_SESSION['username'] = $_POST['username'];

79 $_SESSION['password'] = $_POST['password'];

80 $_SESSION['host'] = $_POST['host'];

112

113 // send the database info to the next page for updating the settings table.

114 $_SESSION['username'] = $_POST['username'];

115 $_SESSION['password'] = $_POST['password'];

116 $_SESSION['host'] = $_POST['host'];

223 // send the database info to the next page for updating the settings table.

224 $_SESSION['site_alert_email'] = $_POST['site_alert_email'];

225 $_SESSION['mail_server_username'] = $_POST['mail_server_username'];

226 $_SESSION['mail_server_pwd'] = $_POST['mail_server_pwd'];

227 $_SESSION['mail_server_port'] = $_POST['mail_server_port'];

edit_form.feature (https://github.com/sbourget/moodle.git) Gherkin Specification · 247 lines

40 | reference | |

41 And the following "user" exists:

42 | username | teacher |

43 | firstname | Teacher |

44 | lastname | One |

AccountModel.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 521 lines

125 */

126 @AutoEscape

127 public String getUserName();

128

129 /**

132 * @param userName the user name of this account

133 */

134 public void setUserName(String userName);

135

136 /**

0003_auto__add_field_page_publish.py (https://github.com/mrluisc/lernanta.git) Python · 150 lines

47 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),

48 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),

49 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

50 },

51 'content.page': {

144 'preflang': ('django.db.models.fields.CharField', [], {'default': "'en'", 'max_length': '16'}),

145 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),

146 'username': ('django.db.models.fields.CharField', [], {'default': "''", 'unique': 'True', 'max_length': '255'})

147 }

148 }

BlogsEntryModel.java (https://github.com/portalcollc/liferay-portal.git) Java · 512 lines

156 */

157 @AutoEscape

158 public String getUserName();

159

160 /**

163 * @param userName the user name of this blogs entry

164 */

165 public void setUserName(String userName);

166

167 /**

430 * @param statusByUserName the status by user name of this blogs entry

431 */

432 public void setStatusByUserName(String statusByUserName);

433

434 /**

__init__.py (https://github.com/liaowang11/v2ex.git) Python · 270 lines

12 auth = db.StringProperty(required=False, indexed=True)

13 deactivated = db.IntegerProperty(required=True, default=0)

14 username = db.StringProperty(required=False, indexed=True)

15 username_lower = db.StringProperty(required=False, indexed=True)

grading_status.feature (https://github.com/markn86/moodle.git) Gherkin Specification · 160 lines

10 | Course 1 | C1 | 0 | 1 |

11 And the following "users" exist:

12 | username | firstname | lastname | email |

13 | teacher1 | Teacher | 1 | teacher1@example.com |

14 | student1 | Student | 1 | student1@example.com |

RequestInterface.php (https://bitbucket.org/nbravo777/repo_ratchet.git) PHP · 341 lines

171

172 /**

173 * Get the username to pass in the URL if set

174 *

175 * @return string|null

176 */

177 public function getUsername();

178

179 /**

prompt-test.js (https://github.com/endor/kanso.git) JavaScript · 390 lines

148 });

149

150 prompt.getInput(helpers.properties.username, this.callback);

151 helpers.stdin.write('some-user\n');

152 },

154 assert.isNull(err);

155 assert.equal(input, 'some-user');

156 assert.isTrue(this.msg.indexOf('username') !== -1);

157 }

158 },

168 })

169

170 prompt.getInput(helpers.properties.username, this.callback);

171

172 prompt.once('invalid', function () {

Criteria.php (https://github.com/wieger/Zend1-Doctrine2-Skeleton.git) PHP · 358 lines

170 * <code>

171 * $filter = $service->buildFilterCriteria('u')

172 * ->where('u.username LIKE ?1')

173 * ->andWhere('u.is_active = 1');

174 * </code>

192 * <code>

193 * $filter = $service->buildFilterCriteria('u')

194 * ->where('u.username LIKE ?1')

195 * ->orWhere('u.is_active = 1');

196 * </code>

g2apay.tpl (https://gitlab.com/reclamare/mao) Smarty Template · 239 lines

35 <label class="col-sm-2 control-label" for="input-username"><?php echo $entry_username; ?></label>

36 <div class="col-sm-10">

37 <input type="text" name="g2apay_username" value="<?php echo $g2apay_username; ?>" placeholder="<?php echo $entry_username; ?>" id="input-username" class="form-control" />

38 <span class="help-block"><?php echo $help_username; ?></span>

39 <?php if ($error_username) { ?>

40 <div class="text-danger"><?php echo $error_username; ?></div>

MemberRequestClp.java (https://github.com/kevincho/liferay-plugins.git) Java · 365 lines

102 }

103

104 public String getUserName() {

105 return _userName;

106 }

107

108 public void setUserName(String userName) {

109 _userName = userName;

198 clone.setCompanyId(getCompanyId());

199 clone.setUserId(getUserId());

200 clone.setUserName(getUserName());

201 clone.setCreateDate(getCreateDate());

202 clone.setModifiedDate(getModifiedDate());

267 sb.append(", userId=");

268 sb.append(getUserId());

269 sb.append(", userName=");

270 sb.append(getUserName());

CommerceAddressCacheModel.java (https://github.com/danielreuther/liferay-portal.git) Java · 426 lines

93 sb.append(", userId=");

94 sb.append(userId);

95 sb.append(", userName=");

96 sb.append(userName);

156 commerceAddressImpl.setUserId(userId);

157

158 if (userName == null) {

159 commerceAddressImpl.setUserName("");

160 }

161 else {

162 commerceAddressImpl.setUserName(userName);

163 }

164

262

263 userId = objectInput.readLong();

264 userName = objectInput.readUTF();

265 createDate = objectInput.readLong();

266 modifiedDate = objectInput.readLong();

KaleoNotificationRecipientWrapper.java (https://github.com/l15k4/liferay-plugins.git) Java · 407 lines

158 * @return the user name of this kaleo notification recipient

159 */

160 public java.lang.String getUserName() {

161 return _kaleoNotificationRecipient.getUserName();

167 * @param userName the user name of this kaleo notification recipient

168 */

169 public void setUserName(java.lang.String userName) {

170 _kaleoNotificationRecipient.setUserName(userName);

PlaceObjectEvent.cs (https://bitbucket.org/TheRealAtho/mango.git) C# · 219 lines

197 }

198

199 instance.GetAvatars().BroadcastPacket(new ItemAddComposer(Item, session.GetPlayer().Username));

200 session.SendPacket(new FurniListRemoveComposer(Item));

201

UserAccountResource.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 501 lines

189 "/o/headless-admin-user/v1.0/my-user-account");

190

191 httpInvoker.userNameAndPassword(

192 _builder._login + ":" + _builder._password);

193

268 organizationId);

269

270 httpInvoker.userNameAndPassword(

271 _builder._login + ":" + _builder._password);

272

345 siteId);

346

347 httpInvoker.userNameAndPassword(

348 _builder._login + ":" + _builder._password);

349

registration.aspx.designer.cs (https://github.com/ranukhandelwal/EC.git) C# · 385 lines

49

50 /// <summary>

51 /// Username control.

52 /// </summary>

53 /// <remarks>

55 /// To modify move field declaration from designer file to code-behind file.

56 /// </remarks>

57 protected global::System.Web.UI.HtmlControls.HtmlInputText Username;

58

59 /// <summary>

WorkflowDefinitionLinkWrapper.java (https://github.com/lululiferay/liferay-portal.git) Java · 500 lines

50 attributes.put("companyId", getCompanyId());

51 attributes.put("userId", getUserId());

52 attributes.put("userName", getUserName());

53 attributes.put("createDate", getCreateDate());

54 attributes.put("modifiedDate", getModifiedDate());

89 }

90

91 String userName = (String)attributes.get("userName");

92

93 if (userName != null) {

94 setUserName(userName);

95 }

96

264 * @param userName the user name of this workflow definition link

265 */

266 public void setUserName(java.lang.String userName) {

267 _workflowDefinitionLink.setUserName(userName);

user_spec.rb (https://gitlab.com/yuanchenxi95/gitlab-ee) Ruby · 325 lines

40 describe 'account exists on server' do

41 before { stub_omniauth_config({ allow_single_sign_on: ['saml'], auto_link_saml_user: true }) }

42 let!(:existing_user) { create(:user, email: 'john@mail.com', username: 'john') }

43 context 'and should bind with SAML' do

44 it 'adds the SAML identity to the existing user' do

195 before do

196 allow(ldap_user).to receive(:uid) { uid }

197 allow(ldap_user).to receive(:username) { uid }

198 allow(ldap_user).to receive(:email) { %w(john@mail.com john2@example.com) }

199 allow(ldap_user).to receive(:dn) { 'uid=user1,ou=People,dc=example' }

207

208 expect(gl_user).to be_valid

209 expect(gl_user.username).to eql uid

210 expect(gl_user.email).to eql 'john@mail.com'

211 expect(gl_user.identities.length).to eql 2

award_emoji_spec.rb (https://gitlab.com/certik/gitlab-ce) Ruby · 315 lines

153 expect(response).to have_http_status(201)

154 expect(json_response['name']).to eq('blowfish')

155 expect(json_response['user']['username']).to eq(user.username)

156 end

157

199 expect(response).to have_http_status(201)

200 expect(json_response['name']).to eq('blowfish')

201 expect(json_response['user']['username']).to eq(user.username)

202 end

203 end

213

214 expect(response).to have_http_status(201)

215 expect(json_response['user']['username']).to eq(user.username)

216 end

217

visual_tokens_spec.rb (https://gitlab.com/certik/gitlab-ce) Ruby · 356 lines

6

7 let!(:project) { create(:project) }

8 let!(:user) { create(:user, name: 'administrator', username: 'root') }

9 let!(:user_rock) { create(:user, name: 'The Rock', username: 'rock') }

70 describe 'selecting different author from dropdown' do

71 before do

72 filter_author_dropdown.find('.filter-dropdown-item .dropdown-light-content', text: "@#{user_rock.username}").click

73 end

74

User.java (https://github.com/oburakevych/Integration-Payments.git) Java · 257 lines

41 * {@link org.springframework.security.authentication.dao.DaoAuthenticationProvider}.

42 *

43 * @param username the username presented to the

44 * <code>DaoAuthenticationProvider</code>

45 * @param password the password that should be presented to the

102 boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities, Long account, Owner owner, Locale locale) {

103

104 if (((username == null) || "".equals(username)) || (password == null)) {

105 throw new IllegalArgumentException("Cannot pass null or empty values to constructor");

106 }

210 StringBuilder sb = new StringBuilder();

211 sb.append(super.toString()).append(": ");

212 sb.append("Username: ").append(this.username).append("; ");

213 sb.append("Password: [PROTECTED]; ");

214 sb.append("Enabled: ").append(this.enabled).append("; ");

users_spec.rb (https://github.com/mizzy/instagram-ruby-gem.git) Ruby · 400 lines

69 users = @client.user_search("Shayne Sweeney")

70 users.should be_a Array

71 users.first.username.should == "shayne"

72 end

73 end

93 follows = @client.user_follows(4)

94 follows.should be_a Array

95 follows.first.username.should == "heartsf"

96 end

97 end

134 followed_by = @client.user_followed_by(4)

135 followed_by.should be_a Array

136 followed_by.first.username.should == "bojieyang"

137 end

138 end

manage.html (https://github.com/tbarbugli/sentry.git) HTML · 170 lines

103 <tr>

104 <td>

105 <a href="{% url sentry-edit-team-member team.slug member.pk %}">{{ user.username }}</a><br>

106 {{ user.email }}

107 </td>

Configuration.php (https://gitlab.com/freebird/WebApp) PHP · 270 lines

53 ->scalarNode('model_manager_name')->defaultNull()->end()

54 ->booleanNode('use_listener')->defaultTrue()->end()

55 ->booleanNode('use_username_form_type')->defaultTrue()->end()

56 ->arrayNode('from_email')

57 ->addDefaultsIfNotSet()

222 ->scalarNode('email_canonicalizer')->defaultValue('fos_user.util.canonicalizer.default')->end()

223 ->scalarNode('token_generator')->defaultValue('fos_user.util.token_generator.default')->end()

224 ->scalarNode('username_canonicalizer')->defaultValue('fos_user.util.canonicalizer.default')->end()

225 ->scalarNode('user_manager')->defaultValue('fos_user.user_manager.default')->end()

226 ->end()

Ldap.php (https://bitbucket.org/baruffaldi/cms-php-bfcms.git) PHP · 296 lines

68 *

69 * @param array $options An array of arrays of Zend_Ldap options

70 * @param string $username The username of the account being authenticated

71 * @param string $password The password of the account being authenticated

72 * @return void

120 * Sets the username for binding

121 *

122 * @param string $username The username for binding

123 * @return Zend_Auth_Adapter_Ldap Provides a fluent interface

124 */

125 public function setUsername($username)

126 {

127 $this->_username = (string) $username;

128 return $this;

129 }

PermissionManager.php (https://github.com/gogbuehi/BMCD.com.git) PHP · 227 lines

27

28 const FORGOT_PASSWORD_SERVICE_NAME='ForgotPasswordService';

29 const FORGOT_PASSWORD_SERVICE_PARAM_USERNAME='username';

30

31 public $services = array(

92 //$user = new User($username,'username');

93 $user = new User(false);

94 $user->d_username = $username;

95

96 if ($user->match() === FALSE) {

183 'formName' => EmailHandler::FORGOT_PASSWORD_FORM,

184 'd_uri' => '_ADMIN_FORGOT_PASSWORD_',

185 'userName' => $user->d_username,

186 'password' => $newPassword

187 );

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

This Java code creates a graphical user interface (GUI) panel for displaying and managing files in a Subversion repository. It allows users to view scheduled additions, errors, and other actions related to file management. The GUI provides options for committing, reverting, locking, unlocking, and remote deleting files, with context menus offering additional actions.

58 private View view = null;

59 private int action;

60 private String username = null;

61 private String password = null;

62

63 public AddResultsPanel( AddResults results, int action, View view, String username, String password ) {

64 super( new LambdaLayout() );

65 if ( action < 0 || action > 6 ) {

68 this.view = view;

69 this.action = action;

70 this.username = username;

71 this.password = password;

72

overview.html (http://fest.googlecode.com/svn/) HTML · 49 lines ✨ Summary

This HTML document is an API specification for the FEST Swing Module, a library that provides tools for creating and maintaining GUI functional tests in Swing applications. It describes the module’s features, including simulation of user-generated events, reliable GUI component lookup, support for JUnit and TestNG, and screenshot embedding capabilities.

22 <code>

23 dialog.comboBox(&quot;domain&quot;).select(&quot;Users&quot;);

24 dialog.textBox(&quot;username&quot;).enterText(&quot;alex.ruiz&quot;);

25 dialog.button(&quot;ok&quot;).click();

26 dialog.optionPane().requireErrorMessage()

appsforyourdomain.xml (http://gdata-java-client.googlecode.com/svn/trunk/) XML · 140 lines

94 description="Runs the AppsForYourDomain Migration sample">

95 <java fork="true" classname="${sample.appsforyourdomain.migration.main}">

96 <arg line="--username ${sample.appsforyourdomain.migration.username} --password ${sample.appsforyourdomain.migration.password} --domain ${sample.appsforyourdomain.migration.domain}"/>

97 <classpath>

98 <path refid="sample.appsforyourdomain.compile.classpath"/>

106 description="Runs the AppsForYourDomain Gmail filter sample">

107 <java fork="true" classname="${sample.appsforyourdomain.gmailsettings.AppsForYourDomainGmailFilterClient}">

108 <arg line="--username ${sample.appsforyourdomain.admin_email} --password ${sample.appsforyourdomain.admin_password} --domain ${sample.appsforyourdomain.domain} --destination_user ${sample.appsforyourdomain.user_email}"/>

109 <classpath>

110 <path refid="sample.appsforyourdomain.compile.classpath"/>

118 description="Runs the AppsForYourDomain Gmail settings sample">

119 <java fork="true" classname="${sample.appsforyourdomain.gmailsettings.GmailSettingsClient}">

120 <arg line="--username ${sample.appsforyourdomain.admin_email} --password ${sample.appsforyourdomain.admin_password} --domain ${sample.appsforyourdomain.domain} --destination_user ${sample.appsforyourdomain.user_email} --setting pop"/>

121 <classpath>

122 <path refid="sample.appsforyourdomain.compile.classpath"/>

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

This Java code generates a log of changes made to a SVN repository. It takes a list of paths, a start and end revision, and prints out the author, date, and log message for each change. Additionally, it displays the changed paths and their type (added, deleted, or modified). The output is printed to the console.

91

92 // use the svnkit client manager

93 SVNClientManager clientManager = SVNClientManager.newInstance( options, data.getUsername(), data.getPassword() );

94

95 // get a commit client

227 // for testing

228 LogData data = new LogData();

229 data.setUsername("daleanson");

230 data.setPassword("");

231 List<String> paths = new ArrayList<String>();

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

This Java class performs a diff between two remote files when a user selects them from a tree view. It retrieves the selected paths, creates a DiffData object with the paths and authentication details, and then calls a RemoteDiffAction to perform the actual diff operation. The result is not returned or displayed in this code snippet.

70 data.addPath( path2 );

71 data.setPathsAreURLs( true );

72 data.setUsername( username );

73 data.setPassword( password );

74 data.setURL( repositoryUrl );

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

This Java code defines a dialog box for adding or editing repository locations, specifically for Subversion version control. It includes fields for repository name, URL, username, and password, with validation and encryption functionality. The dialog allows users to input values and cancel or confirm changes, which are then returned as a RepositoryData object containing the entered information.

60 private JTextField name = null;

61 private JTextField url = null;

62 private JTextField username = null;

63 private JPasswordField password = null;

64

93 url = new JTextField( url_value, 30 );

94

95 // username field

96 JLabel username_label = new JLabel( jEdit.getProperty( SVNAction.PREFIX + "username.label" ) );

97 String username_value = data != null && data.getUsername() != null ? data.getUsername() : "";

98 username = new JTextField( username_value, 30 );

174 data.setName( name.getText() );

175 data.setURL( url.getText() );

176 data.setUsername( username.getText() );

177

178 // encrypt the password if there is one

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

This Java code creates a graphical user interface (GUI) dialog for adding files and directories to a Subversion (SVN) repository. The dialog allows users to select files, set recursive options, and enter login credentials. It also includes buttons for “OK” and “Cancel”, which trigger the submission of the selected files and credentials to the SVN server.

170 }

171

172 addData.setUsername( login.getUsername() );

173 addData.setPassword( login.getPassword() );

174

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

This Java class, CommitAction, is an ActionListener that performs an SVN commit when triggered. It displays a dialog to collect paths and user credentials, then executes the commit using a SwingWorker. After the commit, it updates a GUI panel with the results and reloads any affected buffers in the JEdit editor.

66 * @param view the View in which to display results

67 * @param paths a list of paths to be added

68 * @param username the username for the svn repository

69 * @param password the password for the username

70 */

71 public CommitAction( View view, TreeMap<String, String> paths, String username, String password ) {

72 super( view, jEdit.getProperty( "ips.Commit", "Commit" ) );

73 if ( paths == null )

74 throw new IllegalArgumentException( "paths may not be null" );

75 this.paths = paths;

76 setUsername( username );

77 setPassword( password );

78 }

125 }

126 }

127 data.setUsername( getUsername() );

128 data.setPassword( getPassword() );

129

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

This Java class represents a repository’s data, including its name, URL, username, and password. It provides methods to create instances with default values, copy existing instances, and access the repository’s details through getter and setter methods. The class extends another CheckoutData class, suggesting it might be part of a larger system for managing version control systems like SVN.

44 this.name = name;

45 setURL( url );

46 setUsername( username );

47 setPassword( password );

48 }

53 name = data.getName() == null ? "" : data.getName();

54 setURL(new String(data.getURL()));

55 setUsername(data.getUsername() == null ? null : new String(data.getUsername()));

56 setPassword(data.getPassword() == null ? null : new String(data.getPassword()));

57 }

59

60 public String toString() {

61 return "RepositoryData[name=" + getName() + ", url=" + getURL() + ", username=" + getUsername() + ", password=" + getPassword() + "]";

62 }

63

spreadsheets.cs (http://google-gdata.googlecode.com/svn/trunk/) C# · 315 lines ✨ Summary

This C# code defines a Google.Spreadsheets namespace that provides a class called Application, which is used to interact with Google Spreadsheets. It allows users to log in, retrieve and manage spreadsheets, worksheets, and cells, as well as parse range strings into numerical coordinates.

42 /// default constructor for client login.

43 /// </summary>

44 /// <param name="user">the username to user</param>

45 /// <param name="password">the users password</param>

46 /// <returns></returns>

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

This Java class is a custom action for a Subversion (SVN) GUI application, specifically designed to unlock a repository. When executed, it retrieves the selected paths in the SVN tree and creates an UnlockAction object with those paths, username, password, and other parameters. The UnlockAction object then performs the actual unlocking operation when its own actionPerformed method is called.

57 }

58 }

59 UnlockAction action = new UnlockAction( view, paths, username, password, true );

60 action.actionPerformed( ae );

61 }

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

This Java code implements an FTP plugin for a text editor, providing functionality such as browsing and saving files on FTP servers, displaying login dialogs, and managing saved passwords. It integrates with the editor’s virtual file system (VFS) to allow users to interact with FTP servers within the editor.

104 VFSSession session = (VFSSession)_session;

105 String host = (String)session.get(VFSSession.HOSTNAME_KEY);

106 String user = (String)session.get(VFSSession.USERNAME_KEY);

107 String password = (String)session.get(VFSSession.PASSWORD_KEY);

108

116 {

117 user = login.user;

118 session.put(VFSSession.USERNAME_KEY,user);

119 }

120

143

144 session.put(VFSSession.HOSTNAME_KEY,host);

145 session.put(VFSSession.USERNAME_KEY,user);

146 session.put(VFSSession.PASSWORD_KEY,password);

147

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

This Java code defines a class TarHeader that parses and manipulates data from a tar archive file header. It provides methods to parse entry names, octal integers, long octal integers, and checksums from the header buffer. The methods return parsed values as strings, bytes arrays, or integers, allowing for further processing of the extracted data.

160 * The entry's user name.

161 */

162 public StringBuffer userName;

163 /**

164 * The entry's group name.

191 this.userId = 0;

192 this.groupId = 0;

193 this.userName = new StringBuffer( user );

194 this.groupName = new StringBuffer( "" );

195 }

222 (this.magic == null ) ? null

223 : new StringBuffer( this.magic.toString() );

224 hdr.userName =

225 (this.userName == null ) ? null

226 : new StringBuffer( this.userName.toString() );

227 hdr.groupName =

228 (this.groupName == null ) ? null

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

This Java class, Copy, provides a command-line interface for copying files and directories between working copies and repositories using the Subversion (SVN) version control system. It can perform various types of copies, including local to local, local to repository, repository to local, and repository to repository operations.

71

72 // use the svnkit client manager

73 SVNClientManager clientManager = SVNClientManager.newInstance( options, data.getUsername(), data.getDecryptedPassword() );

74

75 // get a copy client

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

This Java class implements a GUI action for checking out files from a Subversion repository. When executed, it retrieves the selected tree path(s), combines them into a URL string, and uses this URL to perform a checkout operation. It also handles errors and prompts the user if multiple paths are selected or no paths are selected at all.

79 RepositoryData data = new RepositoryData();

80 data.setURL( url );

81 data.setUsername( username );

82 data.setPassword( password );

83 CheckoutAction action = new CheckoutAction( view, data );

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

This Java code creates a dialog box for importing data into a version control system, specifically Subversion (SVN). The dialog allows users to input the URL of the SVN repository, the local directory to import from, and their username and password. Once entered, the user can click “OK” to generate a CopyData object containing the necessary information for importing the data into the SVN repository.

56 /**

57 * Dialog for obtaining the url and local directory for an import and optionally

58 * a username, and password.

59 */

60 public class ImportDialog extends JDialog {

177 // username field

178 JLabel username_label = new JLabel( jEdit.getProperty( SVNAction.PREFIX + "username.label" ) );

179 username = new HistoryTextField(USERNAME);

180 username.setText( jEdit.getProperty( SVNAction.PREFIX + project_name + ".username" ) );

181 username.setColumns( 30 );

258 cd.setSourceFile(new File(path.getText()));

259 cd.setDestinationURL(SVNURL.parseURIDecoded(url.getText()));

260 cd.setUsername(username.getText());

261 cd.setPassword(PasswordHandler.encryptPassword(new String(password.getPassword())));

262 }

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

This Java class, ResolvedActor, extends NodeActor and overrides its actionPerformed method to handle actions related to resolved SVN nodes. When an action is performed, it creates a new ResolvedAction object with the current view, node paths, username, and password, and then calls the actionPerformed method on this object.

64 }

65

66 ResolvedAction action = new ResolvedAction(view, paths, username, password);

67 action.actionPerformed(ae);

68 }

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

This Java code generates a log of changes made to a SVN repository. It takes a list of paths, a start and end revision, and prints out the author, date, and log message for each change. Additionally, it displays the changed paths and their type (added, deleted, or modified). The output is printed to the console.

91

92 // use the svnkit client manager

93 SVNClientManager clientManager = SVNClientManager.newInstance( options, data.getUsername(), data.getDecryptedPassword() );

94

95 // get a commit client

227 // for testing

228 LogData data = new LogData();

229 data.setUsername("daleanson");

230 data.setPassword("");

231 List<String> paths = new ArrayList<String>();

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

This Java code implements a “Copy” action for an integrated development environment (IDE). It allows users to copy files from one location to another, either within the same repository or between different repositories. The action creates a new process that performs the copy operation and displays the results in the IDE’s UI.

82 this.data = data;

83 this.title = data.getTitle();

84 setUsername(data.getUsername());

85 setPassword(data.getPassword());

86 }

99 }

100 }

101 data.setUsername( getUsername() );

102 data.setPassword( getPassword() );

103

140 File file = source.getFile();

141 CopyData cd = new CopyData();

142 cd.setUsername(data.getUsername());

143 cd.setPassword(data.getPassword());

144 cd.setSourceFile( file );

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

This Java class, RepositoryComboBox, is a custom JComboBox that allows users to select a repository from a dropdown list. It populates the list from jEdit properties and saves changes back to the properties file. The combo box displays friendly names of repositories and allows users to add, remove, and save repository data.

39 * propertyPrefix.name.1=repository name (friendly name)

40 * propertyPrefix.url.1=repository url

41 * propertyPrefix.username.1=username for repository, can be null

42 * propertyPrefix.password.1=password for username

70 String name = jEdit.getProperty( propertyPrefix + "name." + i );

71 url = jEdit.getProperty( propertyPrefix + "url." + i );

72 String username = jEdit.getProperty( propertyPrefix + "username." + i );

73 String password = jEdit.getProperty( propertyPrefix + "password." + i );

74

86 // add to the stack and the property lookup table

87 if ( names.search( name ) == -1 ) {

88 RepositoryData data = new RepositoryData( name, url, username, password );

89 propertyMap.put( name, data );

90 names.push( name );

225 if ( value.getUsername() != null ) {

226 jEdit.setProperty( propertyPrefix + "username." + i, value.getUsername() );

227 }

228 if ( value.getPassword() != null ) {

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

This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.

60 * @param view the View in which to display results

61 * @param paths a list of paths to be added

62 * @param username the username for the svn repository

63 * @param password the password for the username

68 throw new IllegalArgumentException( "paths may not be null" );

69 this.paths = paths;

70 setUsername( username );

71 setPassword( password );

72 }

112 return ;

113 }

114 data.setUsername( getUsername() );

115 data.setPassword( getPassword() );

116 }

117 else {

118 setUsername( data.getUsername() );

119 setPassword( data.getPassword() );

120 }

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

This C code is part of an NTLMv2 implementation for a network protocol. It generates and verifies NTLMv2 responses, including calculating hashes and signing keys. The code handles password hashing, domain name conversion to Unicode, and MAC key calculation. It also sets up the response structure with the calculated values and signs it using a MAC key.

238

239 hmac_md5_init_limK_to_64(temp_hash, 16, &ctx);

240 user_name_len = strlen(ses->userName);

241 if (user_name_len > MAX_USERNAME_SIZE)

244 return -EINVAL; /* BB should we use CIFS_LINUX_DOM */

245 dom_name_len = strlen(ses->domainName);

246 if (dom_name_len > MAX_USERNAME_SIZE)

247 return -EINVAL;

248

249 ucase_buf = kmalloc((MAX_USERNAME_SIZE+1), GFP_KERNEL);

250 if (ucase_buf == NULL)

251 return -ENOMEM;

252 unicode_buf = kmalloc((MAX_USERNAME_SIZE+1)*4, GFP_KERNEL);

253 if (unicode_buf == NULL) {

254 kfree(ucase_buf);

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

This Java code defines a FirewallOptionPane class that extends AbstractOptionPane. It creates a GUI panel for configuring firewall settings, including HTTP and SOCKS proxy options. The panel is initialized with default values from a configuration file and allows users to enable or disable these options. When the user saves their changes, the new settings are saved to the configuration file.

50 addComponent(jEdit.getProperty("options.firewall.http.port"),

51 httpPort = new JTextField(jEdit.getProperty("firewall.port"), 15));

52 // proxy username

53 addComponent(jEdit.getProperty("options.firewall.http.user"),

54 httpUser = new JTextField(jEdit.getProperty("firewall.user"), 15));

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

This Java code creates a custom tree view component for displaying directories and their contents. It allows users to interact with the directory structure, including deleting files, locking/unlocking directories, and exporting data. The component also displays additional information such as external repository locations and properties. It uses a custom cell renderer to format the display of directory names and contents.

430 RepositoryData data = new RepositoryData();

431 data.setURL( url );

432 data.setUsername( username );

433 data.setPassword( password );

434 CheckoutAction action = new CheckoutAction( view, data );

693 if ( username != null && password != null ) {

694 cd.setUsername( username );

695 cd.setPassword( password );

696 }

747 if ( username != null && password != null ) {

748 cd.setUsername( username );

749 cd.setPassword( password );

750 }

872 DeleteData data = new DeleteData();

873 data.setPaths( paths );

874 data.setUsername( username );

875 data.setPassword( password );

876 data.setPathsAreURLs( true );

db_queues.rb (git://github.com/37signals/37s_cookbooks.git) Ruby · 103 lines ✨ Summary

This Ruby script checks the size of a database queue by executing a MySQL query and comparing its result to user-defined thresholds for warning and critical values. It outputs Nagios-compatible performance data, indicating whether the query result is within acceptable limits or not, and exits with an appropriate status code (OK, WARNING, CRITICAL, or UNKNOWN).

43 end

44

45 option :username do

46 short '-u'

47 long '--username=VALUE'

48 desc 'MySQL DB username'

49 end

50

79 if c[:warn] && c[:crit]

80

81 conn = Mysql::connect(c[:host], c[:username], c[:password], c[:database], c[:port].to_i)

82 res = conn.query(c[:query])

83 value = res.fetch_row

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

41

42 String scheme() const;

43 String username() const;

44 String password() const;

45 String host() const;

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

This Java code creates a graphical user interface (GUI) for a checkout dialog box, likely used in a version control system like Subversion. It allows users to input their SVN credentials and repository information, such as URL and directory path, before checking out files from the repository. The GUI includes fields for username, password, and repository details, with buttons for canceling or confirming the operation.

54 /**

55 * Dialog for obtaining the url and local directory for a checkout from a

56 * subversion repository, and optionally a username, and password.

57 */

58 public class CheckoutDialog extends JDialog {

178 // username field

179 JLabel username_label = new JLabel( jEdit.getProperty( SVNAction.PREFIX + "username.label" ) );

180 username = new HistoryTextField(USERNAME);

181 username.setText( jEdit.getProperty( SVNAction.PREFIX + project_name + ".username" ));

182 username.setColumns( 30 );

257 CheckoutData cd = new CheckoutData();

258 cd.setURL(url.getText());

259 cd.setUsername(username.getText());

260 cd.setPassword(PasswordHandler.encryptPassword(new String(password.getPassword())));

261 List<String> paths = new ArrayList<String>();

AutoSaveManager.cs (http://uniquestudiocms.googlecode.com/svn/trunk/) C# · 145 lines ✨ Summary

This C# code defines a class AutoSaveManager that handles auto-saving of posts to a database. It provides methods for saving, retrieving, and checking if a post is saved, as well as setting the effectiveness of auto-save functionality. The class uses an AutoSaveProvider instance to interact with the database, logging errors and exceptions along the way.

43 post.Author = string.Empty;

44 }

45 if (post.AddUserName == null)

46 {

47 post.AddUserName = string.Empty;

top.aspx.cs (http://uniquestudiocms.googlecode.com/svn/trunk/) C# · 33 lines ✨ Summary

This C# code defines a web page for an administrative interface, specifically the top section of the admin panel. It displays the current user’s username and enables/disables a time display based on server configuration settings. The page also lists all sites managed by the system, retrieved from a SiteManager class.

21 if (CurrentUser != null)

22 {

23 ltlUserName.Text = CurrentUser.UserName;

24 ltlEnableTime.Visible = ServerConfig.IsDisplayTime;

25 }

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

This Java class, CodeObjectType, represents a type of object in a database schema. It provides methods to retrieve text and statement purpose information about code objects, such as their creation prefix and purpose for loading object code. The class is part of a larger SQL plugin system.

87 * @param path Description of Parameter

88 * @param rec Description of Parameter

89 * @param userName Description of Parameter

90 * @param objName Description of Parameter

91 * @return The Text value

93 public String getText( String path,

94 SqlServerRecord rec,

95 String userName,

96 String objName )

97 {

98 return rec.getServerType().getObjectCreationPrefix() + getSource( path, rec, userName, objName );

99 }

100

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

This Java class, DiffActor, extends a node actor and handles an action event for ProjectViewer’s context menu. When executed, it performs an SVN diff between a working copy and a remote revision if only one file is selected in PV. It creates a new DiffAction instance with the selected node path, username, and password, then calls its actionPerformed method.

30 public void actionPerformed( ActionEvent ae ) {

31 if ( nodes != null && nodes.size() == 1 && nodes.get(0).isFile() ) {

32 DiffAction action = new DiffAction(view, nodes.get(0).getNodePath(), username, password);

33 action.actionPerformed(ae);

34 }

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

This Java class provides a command to check out a project from a Subversion repository using the SVNKit library. It takes a CheckoutData object as input, which contains the URL of the repository and the local path where the checkout should be performed. The method performs the checkout operation and returns the revision number of the checked-out code.

84

85 // use the svnkit client manager

86 SVNClientManager clientManager = SVNClientManager.newInstance( options, SVNWCUtil.createDefaultAuthenticationManager(SVNPlugin.getSvnStorageDir(), cd.getUsername(), cd.getDecryptedPassword() ) );

87

88 // get a commit client

login.js (http://forceworkbench.googlecode.com/svn/trunk/workbench/) JavaScript · 165 lines ✨ Summary

This JavaScript code defines a WorkbenchLogin object that initializes and configures a login form for a web application. It handles various events, such as radio button changes, key presses, and form submissions, to enable or disable fields, update server URLs, and validate user input. The code also includes functionality for handling different login types and interacting with Salesforce services.

23 }

24

25 bindEvent(form.un, "keyup", toggleUsernamePasswordSessionDisabled);

26 bindEvent(form.pw, "keyup", toggleUsernamePasswordSessionDisabled);

27 bindEvent(form.sid, "keyup", toggleUsernamePasswordSessionDisabled);

28 bindEvent(form.sid, "keyup", fuzzyServerUrlSelect);

29

30 bindEvent(form.un, "change", toggleUsernamePasswordSessionDisabled);

31 bindEvent(form.pw, "change", toggleUsernamePasswordSessionDisabled);

32 bindEvent(form.sid, "change", toggleUsernamePasswordSessionDisabled);

33 bindEvent(form.sid, "change", fuzzyServerUrlSelect);

34

accountFeed.cs (http://google-gdata.googlecode.com/svn/trunk/) C# · 269 lines ✨ Summary

The C# code retrieves data from the Google Analytics API using Client Login authentication and prints various information about the account feed, including feed details, advanced segments, custom variables, goals, and profile entries. It displays this data in a console output, providing insights into the user’s analytics settings and configuration.

27 {

28

29 private static String CLIENT_USERNAME = "INSERT_LOGIN_EMAIL_HERE";

30 private static String CLIENT_PASS = "INSERT_PASSWORD_HERE";

31

75

76 // Client Login Authorization.

77 asv.setUserCredentials(CLIENT_USERNAME, CLIENT_PASS);

78

79 // GA Account Feed query uri.

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

This Java class provides a plugin for Subversion (SVN) that allows users to lock and unlock files or URLs. It takes in commit data, validates its contents, and uses SVNKit to interact with the SVN server. The class can either lock or unlock specified paths, and returns the results of the operation, including any errors that occurred.

72

73 // use the svnkit client manager

74 SVNClientManager clientManager = SVNClientManager.newInstance( options, data.getUsername(), data.getPassword() );

75

76 // get a working copy client

Register.cshtml (https://hg01.codeplex.com/openforum) Razor · 62 lines ✨ Summary

This Razor code generates a web form for user registration, including fields for username, email, password, and confirmation password. It uses ASP.NET MVC validation to ensure data integrity and displays error messages if necessary. The form is wrapped in a BeginForm tag, which enables client-side validation using jQuery Validate.

23

24 <div class="editor-label">

25 @Html.LabelFor(m => m.UserName)

26 </div>

27 <div class="editor-field">

28 @Html.TextBoxFor(m => m.UserName)

29 @Html.ValidationMessageFor(m => m.UserName)

RecommendationsMacro.java (https://bitbucket.org/jhoarau/confluence-whotofollow.git) Java · 93 lines

70 public String execute(Map parameters, String body, RenderContext renderContext) throws MacroException

71 {

72 String username = (String) parameters.get("username");

73 if (StringUtils.isBlank(username))

74 {

75 username = AuthenticatedUserThreadLocal.getUsername();

76 }

77

84 Map<String,Object> context = MacroUtils.defaultVelocityContext();

85

86 Collection<User> users = recommendationEngine.recommendFollowings(username);

87 context.put("recommendations", users);

88 context.put("theme", theme);

auth.js (git://github.com/OpenRTMFP/ArcusNode.git) JavaScript · 36 lines ✨ Summary

This JavaScript code creates a new instance of an ArcusNode, which is likely a Node.js server for real-time communication. It sets up an event listener to handle connections, authenticating users with a username and password. If credentials are correct, the connection is accepted; otherwise, it’s rejected with an error message. The server then starts running, waiting for incoming connections.

4 var arc = new ArcusNode(null);

5

6 arc.on('connect', function(nc, options, username, password){

7 // Let the connection wait for auth,

8 // if we need to authenticate the connection with data elsewhere

14 }

15

16 //Make sure the username and password are given

17 if(typeof(username) == 'undefined' || typeof(password) == 'undefined'){

22

23 //Check the credentials

24 if(users[username] === password){

25 //Accept the connection if credentials are correct -> NetConnection.Connect.Success

26 //The specified argument is a description which can be accessed in the client at NetStatusEvent|info.description

README.md (git://github.com/OpenRTMFP/ArcusNode.git) Markdown · 19 lines ✨ Summary

This is an example of using ArcusNode for user authentication in a Node.js application. It demonstrates how to connect to a server, failing if credentials are not provided, rejecting if credentials do not match, and accepting if they are correct. The example can be run with the FLDev Flash project, which allows specifying arguments for a NetConnection.

4 ## auth.js

5 Here you find an example for a possible user authentication,

6 failing the connection if the username and password are not given,

7 rejecting the connection if the given credentials do not match

8 and finally accepting the connection if the credentials are ok.

close.js (git://github.com/OpenRTMFP/ArcusNode.git) JavaScript · 27 lines ✨ Summary

This JavaScript code creates a new ArcusNode instance and sets up an event listener for when a connection is established. When a connection is closed, it logs a message to the console. It then closes the connection after 30 seconds, logging success or error messages accordingly. The server starts running once the setup is complete.

7 var arc = ArcusNode.createServer();

8

9 arc.on('connect', function(nc, options, username, password){

10 nc.on('close', function(){

11 console.log('Connection ' + nc.id + ' was closed.');