Show the author picker.
503632
def show(cls):
        
        cls.div_el.style.display = "block"
        cls.hide_errors()

        cls.overlay.show()
        cls.overlay.el.bind("click", lambda x: cls.hide())
119397
def author(self):
        
        if self.api and self.author_id:
            return self.api._get_user(self.author_id)
710951
def show_intro(self):
        """"""
        from IPython.core.usage import interactive_usage
        self.main.help.show_rich_text(interactive_usage)
752380
def by_readings(self, role_names=['', 'Author']):
        
        if not spectator_apps.is_enabled('reading'):
            raise ImproperlyConfigured("To use the CreatorManager.by_readings() method, 'spectator.reading' must by in INSTALLED_APPS.")

        qs = self.get_queryset()

        qs = qs.filter(publication_roles__role_name__in=role_names) \
                .exclude(publications__reading__isnull=True) \
                .annotate(num_readings=Count('publications__reading')) \
                .order_by('-num_readings', 'name_sort')

        return qs
1231780
function createPicker() {
      if (pickerApiLoaded && oauthToken) {
        var picker = new google.picker.PickerBuilder().addView(google.picker.ViewId.DOCS)
          .setOAuthToken(oauthToken)
          .setDeveloperKey(developerKey)
          .setCallback(pickerCallback)
          .build();
        picker.setVisible(true);
        $('.picker-dialog-bg').css('z-index', 1052); // make it appear above modals
        $('.picker-dialog').css('z-index', 1053);
      }
    }
478781
def _show_selection(self, text, bbox):
        """"""
        x, y, width, height = bbox

        textw = self._font.measure(text)

        canvas = self._canvas
        canvas.configure(width=width, height=height)
        canvas.coords(canvas.text, width - textw, height / 2 - 1)
        canvas.itemconfigure(canvas.text, text=text)
        canvas.place(in_=self._calendar, x=x, y=y)
218923
def author_line(soup):
    """"""
    author_line = None
    authors_json_data = authors_json(soup)
    author_names = extract_author_line_names(authors_json_data)
    if len(author_names) > 0:
        author_line = format_author_line(author_names)
    return author_line
180451
def pull(self,bookName=None,sheetName=None):
        """"""

        # tons of validation
        if bookName is None and self.bookName: bookName=self.bookName
        if sheetName is None and self.sheetName: sheetName=self.sheetName
        if bookName is None: bookName=OR.activeBook()
        if bookName and sheetName is None: sheetName=OR.activeSheet()
        if not bookName or not sheetName:
            print("can't figure out where to pull from! [%s]%s"%(bookName,sheetName))
            return

        # finally doing the thing
        poSheet=OR.getSheet(bookName,sheetName)
        self.bookName=bookName
        self.sheetName=sheetName
        self.desc=poSheet.GetLongName()
        self.colNames=[poCol.GetName() for poCol in poSheet.Columns()]
        self.colDesc=[poCol.GetLongName() for poCol in poSheet.Columns()]
        self.colUnits=[poCol.GetUnits() for poCol in poSheet.Columns()]
        self.colComments=[poCol.GetComments() for poCol in poSheet.Columns()]
        self.colTypes=[poCol.GetType() for poCol in poSheet.Columns()]
        self.colData=[poCol.GetData() for poCol in poSheet.Columns()]
574285
def set_author(self, **kwargs):
        
        self.author = {
            'name': kwargs.get('name'),
            'url': kwargs.get('url'),
            'icon_url': kwargs.get('icon_url'),
            'proxy_icon_url': kwargs.get('proxy_icon_url'),
        }
148995
def pageSizePicked( self, pageSize ):
        
        try:
            pageSize = int(self._pageSizeCombo.currentText())
        except ValueError:
            pageSize = 0
        
        self.setPageSize(pageSize)
        self.pageSizeChanged.emit(pageSize)
522811
def find_author(self):
        """"""
        return Author(name=self.context.capture('git', 'config', 'user.name', check=False, silent=True),
                      email=self.context.capture('git', 'config', 'user.email', check=False, silent=True))
317840
def author_display(author, *args):
    """"""

    # Call get_absolute_url or a function returning none if not defined
    url = getattr(author, 'get_absolute_url', lambda: None)()
    # get_short_name or unicode representation
    short_name = getattr(author, 'get_short_name', lambda: six.text_type(author))()
    if url:
        return mark_safe('<a href="{}">{}</a>'.format(url, short_name))
    else:
        return short_name
277284
def item_author_link(self, item):
        
        try:
            author_url = self.item_author.get_absolute_url()
            return self.site_url + author_url
        except NoReverseMatch:
            return self.site_url
348642
function() {
        if (!this.items.length) {
            this.hide();
            return;
        }

        this.fireEvent('showing');

        var iPos = this.input.offset();

        this.element
            .css('top', iPos.top + this.input.outerHeight())
            .css(Toolkit.isRTL ? 'right' : 'left', iPos.left)
            .reveal();

        this.input.aria('expanded', true);

        this.fireEvent('shown');
    }
379543
def author_display(author)
      if (author.first.present? && author.last.present?)
        "#{author.last}, #{author.first.slice(0,1)}"
      elsif author.display.present?
        author.display
      elsif author.last.present?
        author.last
      else
        nil
      end
    end
550570
def authors(self):
        
        result = []
        authors = self._safe_get_element('ItemAttributes.Author')
        if authors is not None:
            for author in authors:
                result.append(author.text)
        return result
732585
protected function selectAuthors()
    {
        $options = $this->getAuthorsAsOptions();
        $this->getOutput()->writeln('');
        $this->getOutput()->writeln(
            '<info>Multiple authors found on ' .
            'project\'s composer.json file.</info>'
        );
        $question = new ChoiceQuestion(
            'Please select the author from the list above:',
            $options,
            0
        );
        $question->setErrorMessage('The choice %s is invalid.');
        $selected = $this->getQuestionHelper()
            ->ask($this->input, $this->output, $question);
        $parts = explode('<', $selected);
        return [
            'authorName' => trim($parts[0]),
            'authorEmail' => trim($parts[1], '>'),
        ];
    }