Returns data for a funnel
 @return [Octo::FunnelData] The Octo funnel data
424538
def data(ts = Time.now.floor)
      args = {
        enterprise_id: self.enterprise.id,
        funnel_slug: self.name_slug,
        ts: ts
      }
      res = Octo::FunnelData.where(args)
      if res.count > 0
        res.first
      elsif self.enterprise.fakedata?
        args.merge!({ value: fake_data(self.funnel.count) })
        Octo::FunnelData.new(args).save!
      end
    end
1162399
protected function _getData()
    {
        $data = $this->getRepository()->fetch($this->getQuery(), AnDomain::FETCH_ENTITY_LIST);

        return $data;
    }
1193845
def get_data(self) -> bytes:
        
        data = {
            "_class_name": self.__class__.__name__,
            "version": 1,
            "segments_bin": SegmentSequence([self.command_seg, self.tan_request]).render_bytes(),
            "resume_method": self.resume_method,
            "tan_request_structured": self.tan_request_structured,
        }
        return compress_datablob(DATA_BLOB_MAGIC_RETRY, 1, data)
8910
def to_api_data(self, restrict_keys=None):
        
        cc = self._cc  # alias
        data = {
            cc('column_hidden'): self._column_hidden,
            cc('row_hidden'): self._row_hidden,
            cc('formulas'): self._formulas,
            cc('formulas_local'): self._formulas_local,
            cc('formulas_r1_c1'): self._formulas_r1_c1,
            cc('number_format'): self._number_format,
            cc('values'): self._values,
        }

        if restrict_keys:
            for key in list(data.keys()):
                if key not in restrict_keys:
                    del data[key]
        return data
1291714
public function getData() {
		$data = $this->resellerOption;

		$data['reseller_identifier'] = ! empty( $data['reseller_identifier'] ) ?
			strtolower( $data['reseller_identifier'] ) : null;

		$data['reseller_website_url'] = ! empty( $data['reseller_website_url'] ) ?
			esc_url( $data['reseller_website_url'] ) : 'https://www.boldgrid.com/';

		$data['reseller_title'] = ! empty( $data['reseller_title'] ) ?
			esc_html( $data['reseller_title'] ) : esc_html( 'BoldGrid.com' );

		$data['reseller_support_url'] = ! empty( $data['reseller_support_url'] ) ?
			esc_url( $data['reseller_support_url'] ) : 'https://www.boldgrid.com/documentation';

		$data['reseller_amp_url'] = ! empty( $data['reseller_amp_url'] ) ?
			esc_url( $data['reseller_amp_url'] ) : 'https://www.boldgrid.com/central';

		return $data;
	}
1241577
def get_data(self, request=None):
        """"""
        if request is None:
            raise ValueError
        data = [[] for _ in self.sources]
        for i in range(request):
            try:
                for source_data, example in zip(
                        data, next(self.child_epoch_iterator)):
                    source_data.append(example)
            except StopIteration:
                # If some data has been extracted and `strict` is not set,
                # we should spit out this data before stopping iteration.
                if not self.strictness and data[0]:
                    break
                elif self.strictness > 1 and data[0]:
                    raise ValueError
                raise
        return tuple(numpy.asarray(source_data) for source_data in data)
1083170
def getAnalogActionData(self, action, unActionDataSize, ulRestrictToDevice):
        

        fn = self.function_table.getAnalogActionData
        pActionData = InputAnalogActionData_t()
        result = fn(action, byref(pActionData), unActionDataSize, ulRestrictToDevice)
        return result, pActionData
988721
def data(self):
        
        if self.is_obsolete():
            self.update_cache(self.get_data())
        return self.cache_data
42968
def get_render_data(self, **kwargs):
        
        if hasattr(self, 'get_context_data'):
            data = self.get_context_data(**kwargs)
        else:
            data = kwargs
        return data
199052
def data
      @grid_file ||= self.class.grid.get(id) if persisted?
      return @grid_file.data if @grid_file

      file.rewind if file.respond_to? :rewind
      file.read
    end
1123583
public function get_data() {
        $data = parent::get_data();
        if ($data && $this->hascustomrules) {
            $this->get_module_form()->data_postprocessing($data);
        }
        return $data;
    }
821507
public function get_data() {
		$data        = array(
			$this->slug => null,
		);
		$submit_data = uix()->request_vars( 'post' );
		$id = $this->id();
		if ( isset( $submit_data[ $id ] ) ) {
			$this->data[ $id ][ $this->slug ] = $submit_data[ $id ];
		}
		if ( isset( $this->data[ $id ] ) ) {
			$data = $this->data[ $id ];
		}

		return $data;
	}
1297116
def data(self):
        """"""
        return NodeData(
            self.foo, get_arguments(self.bound_args), self.hints)
1366658
public function getData()
    {
        if ($this->data instanceof Arrayable) {
            $this->data = $this->data->toArray();
        }

        if (!is_array($this->data)) {
            $this->data = null;
        }

        return $this->data;
    }
537171
def data(self):
        
        if self._data is None:
            # self._data is None if data segment is empty
            return np.empty((0, 1))
        if self._data_scaled is None:
            scale = scaling.get_scaling(self)
            if scale is None:
                self._data_scaled = self._data
            else:
                self._data_scaled = scale.scale(self._data)

        return self._data_scaled
507171
def get_data_or_404(model, instance_id, kind=''):
    
    data = get_data(model, instance_id, kind)

    if not data:
        return abort(404)

    return data
1028030
def to_api_data(self):
        
        return [attachment.to_api_data() for attachment in self.__attachments if
                attachment.on_cloud is False]