Change the current orga
425606
def setOrga(request, hproPk=None):
    """"""

    if settings.PIAPI_STANDALONE:
        request.session['plugit-standalone-organame'] = request.GET.get('name')
        request.session['plugit-standalone-orgapk'] = request.GET.get('pk')
    else:

        (_, _, hproject) = getPlugItObject(hproPk)

        from organizations.models import Organization

        orga = get_object_or_404(Organization, pk=request.GET.get('orga'))

        if request.user.is_superuser or orga.isMember(request.user) or orga.isOwner(request.user):
            request.session['plugit-orgapk-' + str(hproject.pk)] = orga.pk

    return HttpResponse('')
465551
def change_active_pointer_grab(self, event_mask, cursor, time, onerror = None):
        """"""
        request.ChangeActivePointerGrab(display = self.display,
                                        onerror = onerror,
                                        cursor = cursor,
                                        time = time,
                                        event_mask = event_mask)
635077
function changeMetaState(uri, update) {
  return getMeta(uri)
    .then(old => mergeNewAndOldMeta(old, update))
    .then(updatedMeta => putMeta(uri, updatedMeta));
}
1183426
function() {
		var root = document.documentElement;
		gui.DOMChanger.init();
		this.$spiritualizeOne(root);
		if (gui.mode === gui.MODE_ROBOT) {
			gui.DOMChanger.change();
			if (gui.Client.isWebKit) {
				gui.DOMObserver.observe();
			}
			this.$spiritualizeSub(root);
		}
	}
388831
def rhochange(self):
        """"""

        self.Gamma = 1.0 / (1.0 + (self.lmbda/self.rho)*(self.Alpha**2))
644555
private QrCode.Mode updateModeLogic( QrCode.Mode current , QrCode.Mode candidate )
	{
		if( current == candidate )
			return current;
		else if( current == QrCode.Mode.UNKNOWN ) {
			return candidate;
		} else {
			return QrCode.Mode.MIXED;
		}
	}
251608
def change(self, key, value):
        """"""
        self.obj[key] = value
        self.changes.append("Updating build:{}.{}={}"
                            .format(self.obj['name'], key, value))
        return self
851486
function updateoct(){
  var oct = octinputfield;
  if(octinputvalue != oct){
    updateall(octinputtobin(oct));
    clearallinputs();
    octinputfield = oct;
    octinputvalue = oct;
  }
}
174029
function(data) { 
			if (data && data.handler.changedItem) {
				data.handler.changedItem();
			} else { 
				explorer.changedItem(); 
			}
		}
33700
def set_to_current(self, ):
        
        cur = self.get_current_file()
        if cur is not None:
            self.set_selection(cur)
        else:
            self.init_selection()
565852
public function changeOrganizationAction()
    {
        if ($this->changeOrganizationSnippets) {
            $params = $this->_processParameters(
                    $this->changeOrganizationParameters +
                    $this->editParameters +
                    $this->createEditParameters +
                    ['createData' => false]);

            $this->addSnippets($this->changeOrganizationSnippets, $params);
        }
    }
398296
private void replace(PersistentStore store, NodeAVL x, NodeAVL n) {

        if (x.isRoot()) {
            if (n != null) {
                n = n.setParent(store, null);
            }

            store.setAccessor(this, n);
        } else {
            set(store, x.getParent(store), x.isFromLeft(store), n);
        }
    }
778171
def modify(self, *, sort=None, purge=False, done=None):
        """"""
        return self._modifyInternal(sort=sort, purge=purge, done=done)
384774
def setCurrentMode( self, mode ):
        
        if ( self._currentMode == mode ):
            return
        
        self._currentMode = mode
        self.updateModeSettings()
640824
def update_buttons(self):
        """"""
        current_scheme = self.current_scheme
        names = self.get_option("names")
        try:
            names.pop(names.index(u'Custom'))
        except ValueError:
            pass
        delete_enabled = current_scheme not in names
        self.delete_button.setEnabled(delete_enabled)
        self.reset_button.setEnabled(not delete_enabled)
1303
def update_active(self):
        """"""
        if self.active is not None:
            self.update_state(self.active, "normal")
        if self.current_iid == self.active:
            self._active = None
            return
        self._active = self.current_iid
        if self.active is not None:
            self.update_state(self.active, "active")
843528
def change_view(self, change_in_depth):
        """"""
        self.current_view_depth += change_in_depth
        if self.current_view_depth < 0:
            self.current_view_depth = 0
        self.collapseAll()
        if self.current_view_depth > 0:
            for item in self.get_items(maxlevel=self.current_view_depth-1):
                item.setExpanded(True)