Gets data for CurrentInvoiceLine from the API
969462
def find(handle)
      handle = Entity::Handle.build(:number => handle) unless handle.is_a?(Entity::Handle)
      super(handle)
    end
56282
def get_context_data(self, **kwargs):
        
        context = super(ForumView, self).get_context_data(**kwargs)

        # Insert the considered forum into the context
        context['forum'] = self.get_forum()

        # Get the list of forums that have the current forum as parent
        context['sub_forums'] = ForumVisibilityContentTree.from_forums(
            self.request.forum_permission_handler.forum_list_filter(
                context['forum'].get_descendants(), self.request.user,
            ),
        )

        # The announces will be displayed on each page of the forum
        context['announces'] = list(
            self.get_forum()
            .topics.select_related('poster', 'last_post', 'last_post__poster')
            .filter(type=Topic.TOPIC_ANNOUNCE)
        )

        # Determines the topics that have not been read by the current user
        context['unread_topics'] = TrackingHandler(self.request).get_unread_topics(
            list(context[self.context_object_name]) + context['announces'], self.request.user,
        )

        return context
945516
function () {

                $scope.currentFiles.forEach(function (file) {

                    if (file.selected) {
                        ScribeAPI.log({
                            path : file.path
                        }, function (data) {
                            if (!Array.isArray($scope.lines)) {
                                $scope.lines = [];
                            }
                            $scope.lines = $scope.lines.concat(data);
                        });
                    }

                });
            }
741542
def get_current_task_info(self):
        """"""
        name = self.model.workflow.name
        if not name:
            return

        current_task = workflows[name].workflow
        for step in self.callback_pos:
            current_task = current_task[step]
            if callable(current_task):
                return get_func_info(current_task)
1177504
protected String getDescription(final DocWorkUnit currentWorkUnit) {
        return Arrays.stream(currentWorkUnit.getClassDoc().inlineTags())
                .filter(t -> getTagPrefix() == null || !t.name().startsWith(getTagPrefix()))
                .map(t -> t.text())
                .collect(Collectors.joining());
    }
384213
public function get()
    {
        $data = $this->twisto->requestJson('GET', 'invoice/' . urlencode($this->invoice_id) . '/');
        $this->deserialize($data);
    }
773645
function getCurrentApplication() {
        $url = \CharlotteDunois\Yasmin\HTTP\APIEndpoints::ENDPOINTS['currentOAuthApplication'];
        return $this->api->makeRequest('GET', $url, array());
    }
696091
private int _current() {
        if (buf != null) {
            return UTF16.charAt(buf, 0, buf.length, bufPos);
        } else {
            int i = pos.getIndex();
            return (i < text.length()) ? UTF16.charAt(text, i) : DONE;
        }
    }
1199542
function getRecordUpdateData (msg) {
  let data

  try {
    data = JSON.parse(msg.data[2])
  } catch (error) {
    return error
  }

  return data
}
1114740
private List<String> getFurtherInfoLines(CmsSessionInfo currentSession) {

        boolean neverActive = false;
        Long inacTime = new Long(0L);
        List<String> res = new ArrayList<String>();
        if (currentSession == null) {
            inacTime = new Long(System.currentTimeMillis() - m_user.getLastlogin());
            neverActive = m_user.getLastlogin() == 0L;
        } else {
            inacTime = new Long(System.currentTimeMillis() - currentSession.getTimeUpdated());
        }

        String[] inactiveTime = CmsSessionInfo.getHourMinuteSecondTimeString(inacTime.longValue());

        if (!neverActive) {
            if (currentSession != null) {
                res.add("");
                res.add("<p>Session info:</p>");
                res.add(
                    CmsVaadinUtils.getMessageText(
                        Messages.GUI_MESSAGES_LAST_ACTIVITY_2,
                        inactiveTime[1] + ":" + inactiveTime[2],
                        CmsVaadinUtils.getMessageText(Messages.GUI_MESSAGES_MINUTES_0)) + getStatusHTML(inacTime));
            } else {
                res.add(getLastLoginMessage(inacTime));
            }
        }
        res.add(
            CmsVaadinUtils.getMessageText(Messages.GUI_USERMANAGEMENT_USER_DATE_CREATED_0)
                + ": "
                + CmsDateUtil.getDateTime(
                    new Date(m_user.getDateCreated()),
                    DateFormat.SHORT,
                    A_CmsUI.get().getLocale()));
        if (currentSession != null) {
            res.add(TableProperty.Site.getLocalizedMessage() + ": " + getSiteTitle(currentSession));

            try {
                res.add(
                    TableProperty.Project.getLocalizedMessage()
                        + ": "
                        + A_CmsUI.getCmsObject().readProject(currentSession.getProject()).getName());
            } catch (CmsException e) {
                LOG.error("Unable to read project", e);
            }
        }
        return res;
    }
574148
def currentText(self):
        
        lineEdit = self.lineEdit()
        if lineEdit:
            return lineEdit.currentText()
        text = nativestring(super(XComboBox, self).currentText())
        if not text:
            return self._hint
        return text
1368014
@Test(groups = {SAMPLES})
    public void getInvoiceDataForPreviousMonth() {
        InvoiceData invoice = invoiceService.getInvoice(
            LocalDate.now().minusMonths(1)
        );

        assertNotNull(invoice);
    }
1373442
def _fetch_itemslist(self, current_item):
        
        if current_item.is_root:
            html = requests.get(self.base_url).text
            soup = BeautifulSoup(html, 'html.parser')
            for item_html in soup.select(".row .col-md-6"):
                try:
                    label = item_html.select_one("h2").text
                except Exception:
                    continue
                yield API(label, blob=item_html)
        else:
            # parameter = current_item.parent
            # data = requests.get(parameter.url)
            for resource in current_item.json["resource"]:
                label = u"{}, {}".format(resource["title"], resource["summary"])
                yield SMHIDataset(label, blob=resource)
297374
def fetch(self):
        
        params = values.of({})

        payload = self._version.fetch(
            'GET',
            self._uri,
            params=params,
        )

        return CallSummaryInstance(self._version, payload, call_sid=self._solution['call_sid'], )
240040
function gotData() {
  var currentString = serial.readLine();  // read the incoming string
  trim(currentString);                    // remove any trailing whitespace
  if (!currentString) return;             // if the string is empty, do no more
  console.log(currentString);             // println the string
  latestData = currentString;            // save it for the draw method
}
1233113
def to_array(self):
        
        array = super(Invoice, self).to_array()
        array['title'] = u(self.title)  # py2: type unicode, py3: type str
        array['description'] = u(self.description)  # py2: type unicode, py3: type str
        array['start_parameter'] = u(self.start_parameter)  # py2: type unicode, py3: type str
        array['currency'] = u(self.currency)  # py2: type unicode, py3: type str
        array['total_amount'] = int(self.total_amount)  # type int
        return array
1121673
def invoice_items(self, **params):
        """"""
        params['customer'] = self.id
        return InvoiceItem.all(self.api_key, **params)