Retrieves the opens for this campaign.
336565
def opens(self, date="", page=1, page_size=1000, order_field="date", order_direction="asc"):
        """"""
        params = {
            "date": date,
            "page": page,
            "pagesize": page_size,
            "orderfield": order_field,
            "orderdirection": order_direction}
        response = self._get(self.uri_for("opens"), params=params)
        return json_to_py(response)
1024761
def open(self):
        
        self.startTime = datetime.datetime.now()
        self.offset = 0
        return self
1234255
public boolean isDrawerOpen() {
        if (mDrawerBuilder.mDrawerLayout != null && mDrawerBuilder.mSliderLayout != null) {
            return mDrawerBuilder.mDrawerLayout.isDrawerOpen(mDrawerBuilder.mDrawerGravity);
        }
        return false;
    }
1238591
def open(self):
        """"""
        # guess protocol
        if self.protocol==0:
            _in = open(self.name) # don't specify binary mode !
        else:
            _in = open(self.name,'rb')
        self.fields = cPickle.load(_in)
        self.next_id = cPickle.load(_in)
        self.records = cPickle.load(_in)
        self.indices = cPickle.load(_in)
        for f in self.indices.keys():
            setattr(self,'_'+f,Index(self,f))
        _in.close()
        self.mode = "open"
        return self
769896
def get_open_spaces(board):
  """"""
  open_spaces = []
  for i in range(3):
    for j in range(3):
      if board[i][j] == 0:
        open_spaces.append(encode_pos(i, j))
  return open_spaces
472360
function pollForParentOpen() {
  /* jshint validthis:true */
  if (this.pollNum > 0) {
    if (this.opener && !this.opener.OLD_TUNGSTEN_MASTER && typeof this.opener.attachTungstenDebugPane === 'function') {
      this.opener.attachTungstenDebugPane(this);
    } else {
      this.pollNum -= 1;
      this.loadingCounter.textContent = '' + this.pollNum;
      this.setTimeout(pollForParentOpen, POLL_INTERVAL);
    }
  } else {
    this.window.close();
  }
}
581903
public Record openMainRecord()
    {
        String strClassName = this.getProperty(MenuConstants.RECORD);
        Record record = Record.makeRecordFromClassName(strClassName, this);
        return record;
    }
1201767
private void open() {
    for (Snapshot snapshot : loadSnapshots()) {
      snapshots.put(snapshot.index(), snapshot);
    }

    if (!snapshots.isEmpty()) {
      currentSnapshot = snapshots.lastEntry().getValue();
    }
  }
351459
function open()
    {
        if (!$this->_opened) {
            $this->_stream = mcal_open($this->_calendar, $this->_username,
                $this->_password, $this->_options);
            $this->_opened = true;
        }

        return $this->_opened;
    }
1145861
private static function getAuto()
    {
        if (!ini_get('open_basedir') && self::isFopenAvailable()) {
            return self::getFopen(func_get_args());
        }

        if (self::isCurlAvailable()) {
            return self::getCurl(func_get_args());
        }

        return null;
    }
426656
def opens(self, tag=None, fromdate=None, todate=None):
        
        return self.call("GET", "/stats/outbound/opens", tag=tag, fromdate=fromdate, todate=todate)
963730
public static Intent openPlayStore(Context context, boolean openInBrowser) {
        String appPackageName = context.getPackageName();
        Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + appPackageName));
        if (isIntentAvailable(context, marketIntent)) {
            return marketIntent;
        }
        if (openInBrowser) {
            return openLink("https://play.google.com/store/apps/details?id=" + appPackageName);
        }
        return marketIntent;
    }
1039059
function getAllOpenFiles() {
        var result = getWorkingSet(ALL_PANES);
        _.forEach(_panes, function (pane) {
            var file = pane.getCurrentlyViewedFile();
            if (file) {
                result = _.union(result, [file]);
            }
        });
        return result;
    }
124415
function () {
                var openedPopups = this.openedPopups;
                var topPopup = null;
                if (openedPopups.length > 0) {
                    topPopup = openedPopups[openedPopups.length - 1];
                    var topZIndex = topPopup.getZIndex();
                    for (var i = openedPopups.length - 2; i >= 0; i--) {
                        var curPopup = openedPopups[i];
                        var curZIndex = curPopup.getZIndex();
                        if (curZIndex > topZIndex) {
                            topPopup = curPopup;
                            topZIndex = curZIndex;
                        }
                    }
                }
                return topPopup;
            }
1360475
public Record openMainRecord()
    {
        DatabaseInfo record = new DatabaseInfo();
        record.setDatabaseName("main");
        record.init(this);
        return record;
    }
330016
public function openModalForm($visit_date, $member_campaign_id, $top_term_id) {
    $response = new AjaxResponse();
    $memberCampaignStorage = $this->entityTypeManager->getStorage('openy_campaign_member_campaign');

    // Get the modal form using the form builder.
    $activityTrackingModalForm = $this->formBuilder->getForm('Drupal\openy_campaign\Form\ActivityTrackingModalForm', $visit_date, $member_campaign_id, $top_term_id);

    $memberCampaign = $memberCampaignStorage->load($member_campaign_id);
    /** @var \Drupal\node\Entity\Node $campaign */
    $campaign = $memberCampaign->getCampaign();
    // If member logged in.
    if (MemberCampaign::isLoggedIn($campaign->id())) {
      // Add an AJAX command to open a modal dialog with the form as the content.
      $response->addCommand(new OpenModalDialogCommand(t('Track activity'), $activityTrackingModalForm, ['width' => '800']));
    }

    return $response;
  }
562777
public function open():string
	{
		if( isset($this->config['opener']) )
			{ return $this->config['opener']; }

		$this->parsePrivateAttributes();
		$this->parseCommonAttributes();

		if( isset($this->config['in_scope']) && isset($this->config['scope_function']) && is_callable($this->config['scope_function']) )
			{ $this->config['scope_function']->call($this,$this->document->scope); }

		$finisher= $this->isEmpty ? ' />' : '>';

		return "<{$this->tagName}{$this->attributesString}{$finisher}";
	}