Returns the pen author ID, useful for setting the sync authorId.
@method getAuthorId
@return {String}
@memberof module:altspace/utilities/codePen
165504
function getAuthorId() {
	var url = getParsedUrl();
	var splitPath = url.path.split('/');
	var isTeam = splitPath[1] == 'team';
	var id = isTeam ? 'team-' + splitPath[2] : splitPath[1];
	return id;
}
787019
@InterfaceAudience.Public
    public String getDocumentId() {
        // Get the doc id from either the embedded document contents, or the '_id' value key.
        // Failing that, there's no document linking, so use the regular old _sourceDocID
        String docID = null;
        if (documentRevision != null)
            docID = documentRevision.getDocID();
        if (docID == null) {
            if (value != null) {
                if (value instanceof Map) {
                    Map<String, Object> props = (Map<String, Object>) value;
                    docID = (String) props.get("_id");
                }
            }
        }
        if (docID == null)
            docID = sourceDocID;
        return docID;
    }
212252
protected function getAuthorsColumn(): Closure
    {
        return function(ExtensionContract $extension) {
            $authors = array_map(function(array $author) {
                if (array_key_exists('email', $author)) {
                    return (string) HTML::mailto($author['email'], $author['name']);
                }

                return $author['name'];
            }, $extension->getPackage()->getAuthors());

            $prefix = '';

            if ($extension->getVendorName() === 'antaresproject') {
                $prefix = trans('antares/foundation::title.antares_team');
            }

            return $prefix . ' - ' . implode(', ', $authors);
        };
    }
658095
public function getAuthor()
    {
        if ($this->author === null) {
            $this->author = $this->authorFactory->create($this->getAuthorId());
        }

        return $this->author;
    }
1342820
def obtain_the_author(postid = nil)
      if id.blank?
        return nil if @content.blank? || !@content[0].blank?
      	obtain_users(@content.admin_id)
      else
      	Admin.joins(:posts).select(user_select_fields).where(posts: { id: postid }).first
      end
    end
1034943
def _get_git_author():
    """"""
    _, stdout, _ = run("git var GIT_AUTHOR_IDENT")

    git_author = stdout[0]
    return git_author[:git_author.find(">") + 1]
536420
function getId(rootFolder) {
    return new Promise((resolve, reject) => {
        const dir = path.join(rootFolder, constants.META_DIR, constants.META_ID);
        fs.readFile(dir, 'utf8', (err, id) => {
            if (err) {
                reject(err);
                return;
            } else {
                resolve(id);
                return;
            }
        });
    });
}
127418
def get_role_id(self, role_name, mount_point='approle'):
        

        url = '/v1/auth/{0}/role/{1}/role-id'.format(mount_point, role_name)
        return self._adapter.get(url).json()['data']['role_id']
41901
function getOwnerId()
    {
        if ($this->withIdentity() instanceof iIdentityOfUser)
        {
            /** @var IdentityOAuthToken|iIdentityOfUser $identity */
            $identity = $this->withIdentity();
            $userId   = $identity->getOwnerId();
        }
        else
        {
            $userInfo = $this->getAuthInfo();
            $userId   = $userInfo['user']['uid'];
        }


        return $userId;
    }
785788
function getAuthor(packageJson) {
	if (Array.isArray(packageJson.authors)) {
		packageJson.authors = packageJson.authors.map(author => {
			if (typeof author === 'string') {
				return getPersonObject(author);
			}

			return getAllStar(author);
		});

		return packageJson.authors ? packageJson.authors : false;
	}

	if (typeof packageJson.author === 'string') {
		return getPersonObject(packageJson.author);
	}

	return packageJson.author ?
		getAllStar(packageJson.author) :
		false;
}
993059
public String getId()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
    {
      SibTr.entry(tc, "getId");
      SibTr.exit(tc, "getId", ""+aoStream.getID());
    }
    return ""+aoStream.getID() + ":" + tick;
  }
448326
@Programmatic
    public String getId() {
        Object objectId = JDOHelper.getObjectId(this);
        if (objectId == null) {
            return "";
        }
        String objectIdStr = objectId.toString();
        final String id = objectIdStr.split("\\[OID\\]")[0];
        return id;
    }
990326
function getCardId(o) {
  return o.master + '#' + o.combination.front.join(',') + '@' + o.combination.back.join(',');
}
93942
function getAuthToken () {
  console.log('You have hit the rate limit for unauthenticated requests, please log in to raise your rate limit:\n'.red);

  program.prompt('GitHub Username: ', function (user) {

    console.log('\nAfter entering your password, hit return' + ' twice.\n'.green);
    var authProcess = spawn('curl', [
      '-u',
      user,
      '-d',
      '{"scopes":["repo"],"note":"mdlint"}',
      '-s',
      'https://api.github.com/authorizations'
    ], {
      stdio: [process.stdin, 'pipe', process.stderr]
    });

    authProcess.stdout.setEncoding('utf8');
    authProcess.stdout.on('data', function (data) {
      var response = JSON.parse(data);
      if (response.message) {
        console.log(response.message.red + '\n');
        process.exit();
      } else {
        fs.writeFileSync(tokenFile, response.token);
        console.log('Authenticated :). Now try your lint again. \n'.green);
        process.exit();
      }
    });
  });
}
542725
function () {
                var res = idMgr.getId();
                if (this._dynamicIds) {
                    this._dynamicIds.push(res);
                } else {
                    this._dynamicIds = [res];
                }
                return res;
            }
155247
public char getToken() {
    int index = getPosition();
    String document = getDocument();
    return index >= document.length() ? NodewalkerCodec.END_OF_STRING : document.charAt(index);
  }
1347166
def _author_uid_get(post):
    
    u = post.meta('author.uid')
    return u if u else str(current_user.uid)