Create a new head within the repository.
        For more documentation, please see the Head.create method.

        :return: newly created Head Reference
343972
def create_head(self, path, commit='HEAD', force=False, logmsg=None):
        """"""
        return Head.create(self, path, commit, force, logmsg)
444667
def _get_head_id(cls, request):
        
        head_id = request.url.query.get('head', None)

        if head_id is not None:
            cls._validate_id(head_id)

        return head_id
461358
def create(self, *args, **kwargs):
        
        if kwargs.has_key('author'):
            kwargs['created_by'] = kwargs['author']
            kwargs['last_modified_by'] = kwargs['author']
            del kwargs['author']
        return super(CMSPageManager, self).create(*args, **kwargs)
568094
def create(self, create_missing=None):
        
        return type(self)(
            self._server_config,
            id=self.create_json(create_missing)['id'],
        ).read()
1084669
def create(self, model_obj):
        """"""
        # Update the value of the counters
        model_obj = self._set_auto_fields(model_obj)

        # Add the entity to the repository
        identifier = model_obj[self.entity_cls.meta_.id_field.field_name]
        with self.conn['lock']:
            self.conn['data'][self.schema_name][identifier] = model_obj

        return model_obj
229560
def create(self, name, description, **attrs):
        
        attrs.update({'name': name, 'description': description})
        return self._new_resource(payload=attrs)
421261
def create(cls):
        
        if cls not in cls._instances:
            cls._instances[cls] = cls()

        return cls._instances[cls]
215441
def create(self, repo_user, repo_name, issue_number, body):
        
        return self.api.makeRequest(
            ['repos', repo_user, repo_name,
             'issues', issue_number, 'comments'],
            method='POST',
            post=dict(body=body))
425133
def __create(self):
        
        self.__data = json.dumps({
            'config_path': self.encode(self.config_path),
            'subject': self.encode(self.__subject),
            'text': self.encode(self.__text),
            'html': self.encode(self.__html),
            'files': self.__files,
            'send_as_one': self.send_as_one,
            'addresses': self.__addresses,
            'ccs': self.__ccs,
        })
190401
def new(attributes = {})
      resource = repository.scope { model.new(attributes) }
      self << resource
      resource
    end
125628
def _new_instance(self):
        

        new_obj = self.__class__()
        new_obj.class_ = self.class_
        new_obj.tag = self.tag
        new_obj.implicit = self.implicit
        new_obj.explicit = self.explicit
        return new_obj
71816
def create(cls, description="", message=""):
        
        instance = cls()
        instance.revision_id = make_hash_id()
        instance.release_date = datetime.datetime.now()

        if len(description) > 0:
            instance.description = description

        if len(message) > 0:
            instance.message = message

        return instance
1252886
def create(self, **kwargs):
        
        if self.created:
            raise RuntimeError(
                '{} already created.'.format(self.__model_type__.__name__))

        kwargs = self.merge_kwargs(self._create_kwargs, kwargs)

        self._inner = self.helper.create(
            self.name, *self._create_args, **kwargs)
578892
def copy(self, *args, **kwargs):
        
        self.make_body_seekable()
        env = self.environ.copy()
        new_req = self.__class__(env, *args, **kwargs)
        new_req.copy_body()
        new_req.identity = self.identity
        return new_req
1136534
def create(self):
        
        lib.gp_camera_folder_make_dir(
            self._cam._cam, self.parent.path.encode(), self.name.encode(),
            self._cam._ctx)
236009
def create_branch(self, branch_name: str):
        
        LOGGER.info('creating branch: %s', branch_name)
        self._validate_branch_name(branch_name)
        if branch_name in self.list_branches():
            LOGGER.error('branch already exists')
            sys.exit(-1)
        new_branch = self.repo.create_head(branch_name)
        new_branch.commit = self.repo.head.commit
689025
def create(self):
        
        if not os.path.exists(self.path):
            with open(self.path, 'w') as fileobj:
                fileobj.write('')