Usage:
        Create servcice process.
189418
def create_deamon(cmd, shell=False, root=False):
    
    try:
        if root:
            cmd.insert(0, 'sudo')
        LOG.info(cmd)
        subproc = subprocess.Popen(cmd, shell=shell, stdout=subprocess.PIPE,
                                   stderr=subprocess.PIPE)
        return subproc.pid
    except Exception as e:
        LOG.error(e)
        raise
485264
def create_service(self, customer_id, name, publish_key=None, comment=None):
		""""""
		body = self._formdata({
			"customer_id": customer_id,
			"name": name,
			"publish_key": publish_key,
			"comment": comment,
		}, FastlyService.FIELDS)
		content = self._fetch("/service", method="POST", body=body)
		return FastlyService(self, content)
209518
def makeService(cls, options):
        
        from axiom.store import Store
        jm = options['journal-mode']
        if jm is not None:
            jm = jm.decode('ascii')
        store = Store(options['dbdir'], debug=options['debug'], journalMode=jm)
        service = IService(store)
        _CheckSystemVersion(store).setServiceParent(service)
        return service
1132631
def process_request(self, request_object):
        """"""

        resource = request_object.entity_cls.create(**request_object.data)
        return ResponseSuccessCreated(resource)
1143654
protected function _process()
	{
		$this->_msg( 'Adding service base performance data', 0 );


		$manager = MShop_Service_Manager_Factory::createManager( $this->_getContext() );
		$typeManager = $manager->getSubManager( 'type' );

		$search = $typeManager->createSearch();
		$expr = array(
			$search->compare( '==', 'service.type.domain', 'service' ),
			$search->compare( '==', 'service.type.code', 'payment' ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );
		$types = $typeManager->searchItems( $search );

		if( ( $typeItem = reset( $types ) ) === false ) {
			throw new Exception( 'Service type item "payment" not found' );
		}

		$item = $manager->createItem();
		$item->setTypeId( $typeItem->getId() );
		$item->setProvider( 'PrePay' );
		$item->setStatus( 1 );

		$this->_txBegin();

		for( $i = 0; $i < 100; $i++ )
		{
			$code = 'perf-' . str_pad( $i, 3, '0', STR_PAD_LEFT );

			$item->setId( null );
			$item->setCode( $code );
			$item->setLabel( 'Payment service ' . $code );
			$item->setPosition( $i );

			$manager->saveItem( $item, false );
		}

		$this->_txCommit();


		$search = $typeManager->createSearch();
		$expr = array(
			$search->compare( '==', 'service.type.domain', 'service' ),
			$search->compare( '==', 'service.type.code', 'delivery' ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );
		$types = $typeManager->searchItems( $search );

		if ( ( $typeItem = reset( $types ) ) === false ) {
			throw new Exception( 'Service type item "delivery" not found' );
		}

		$item = $manager->createItem();
		$item->setTypeId( $typeItem->getId() );
		$item->setProvider( 'Manual' );
		$item->setStatus( 1 );

		$this->_txBegin();

		for( $i = 0; $i < 100; $i++ )
		{
			$code = 'perf-' . str_pad( $i, 3, '0', STR_PAD_LEFT );

			$item->setId( null );
			$item->setCode( $code );
			$item->setLabel( 'Delivery service ' . $code );
			$item->setPosition( $i );

			$manager->saveItem( $item, false );
		}

		$this->_txCommit();


		$this->_status( 'done' );
	}
1180796
def create(self):
        """"""
        self.server_attrs = self.consul.create_server(
                "%s-%s" % (self.stack.name, self.name),
                self.disk_image_id,
                self.instance_type,
                self.ssh_key_name,
                tags=self.tags,
                availability_zone=self.availability_zone,
                timeout_s=self.launch_timeout_s,
                security_groups=self.security_groups,
                **self.provider_extras
                )
        log.debug('Post launch delay: %d s' % self.post_launch_delay_s)
        time.sleep(self.post_launch_delay_s)
427952
def create(server, name, project, apikey, output, threshold, verbose):
    
    if verbose:
        log("Entity Matching Server: {}".format(server))

    if threshold is None:
        raise ValueError("Please provide a threshold")

    # Create a new run
    try:
        response = run_create(server, project, apikey, threshold, name)
    except ServiceError as e:
        log("Unexpected response with status {}".format(e.status_code))
        log(e.text)
    else:
        json.dump(response, output)
449705
public void doProcess(HttpServletRequest req, HttpServletResponse res) 
        throws ServletException, IOException
    {
        ServletTask servletTask = new ServletTask(this, BasicServlet.SERVLET_TYPE.HTML);
        try {
            this.addBrowserProperties(req, servletTask);
            servletTask.doProcess(this, req, res, null);
        } catch (ServletException e) {
            throw e;
        } catch (IOException e) {
            throw e;
        } finally {
            servletTask.free();
        }
    }
1050773
protected function startServer(): void
    {
        $this->guardServerStarting();

        $this->process = new Process($this->prepareCommand());
        $this->process->setWorkingDirectory($this->laravelPublicPath());
        $this->process->start();
    }
152146
public function doProcess()
	{

		// double request errors
		$this->checkDouble();

		// process type errors
		$rc = $this->doProcessType();
		if ($rc !== '00') {
			$this->payment->status = Status::ERROR;
			$this->payment->save();

			return;
		}

		$this->payment->saveByType();

	}
611515
def create(self, **kwargs):
        """"""
        resp = self.client.create(url=self.base_url,
                                  json=kwargs)
        return resp
181305
def create(
        cls, api_key=None, idempotency_key=None, stripe_account=None, **params
    ):
        """"""
        url = cls.class_url()
        headers = populate_headers(idempotency_key)
        return make_request(
            cls, 'post', url, stripe_account=stripe_account,
            headers=headers, params=params)
813420
private function createActionProcess() {
        /** @var CreateObject[] $createObjects */
        $createObjects = [];
        try {
            $params = new Params($this->request);
        } catch(Exception $e) {
            $this->handleError($e);
            return $createObjects;
        }
        $postParams = $params->getParams();
        if(!is_array($postParams)) {
            $postParams = [$postParams];
        }
        foreach($postParams as $postParam) {
            $createObject = new CreateObject($postParam);
            try {
                $entity = $this->createActionInternal($postParam);
                $createObject->setEntity($entity);

            } catch(Exception $e) {
                $this->handleError($e);
            } catch(ValidationException $e) {
                $this->handleValidationError($e);
            } catch(AclException $e) {
                $this->handleAclError($e);
            } catch(CatchableException $e) {
                $this->handleCatchableError($e);
            }
            $createObject->setStatusCode($this->getStatusCode());
            $createObject->setErrors($this->getErrors());
            $this->setErrors([]);
            $createObjects[] = $createObject;
        }
        return $createObjects;
    }
772438
private function createServer()
    {
        $server = new SoapServer(null, $this->soapServerOptions);
        $server->SetClass($this->wsdlclassname);
        $server->handle();
    }
344377
def do_create(marfile, files, compress, productversion=None, channel=None,
              signing_key=None, signing_algorithm=None):
    """"""
    with open(marfile, 'w+b') as f:
        with MarWriter(f, productversion=productversion, channel=channel,
                       signing_key=signing_key,
                       signing_algorithm=signing_algorithm,
                       ) as m:
            for f in files:
                m.add(f, compress=compress)
50239
def _create(self):
        """"""
        if self.readonly:
            raise VirtualenvReadonlyException()
        args = ['virtualenv']
        if self.system_site_packages:
            args.append('--system-site-packages')
        if self.python is None:
            args.append(self.name)
        else:
            args.extend(['-p', self.python, self.name])
        proc = subprocess.Popen(args, cwd=self.root, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        output, error = proc.communicate()
        returncode = proc.returncode
        if returncode:
            raise VirtualenvCreationException((returncode, output, self.name))
        self._write_to_log(output, truncate=True)
        self._write_to_error(error, truncate=True)
1188913
public static function create()
	{
		switch (func_num_args()) {
			case 0:
				return new ServiceDescriptorProto();
			case 1:
				return new ServiceDescriptorProto(func_get_arg(0));
			case 2:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1));
			case 3:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1), func_get_arg(2));
			case 4:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3));
			case 5:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
			case 6:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5));
			case 7:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6));
			case 8:
				return new ServiceDescriptorProto(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6), func_get_arg(7));
			default:
				throw new \InvalidArgumentException('More than 8 arguments supplied, please be reasonable.');
		}
	}