def _init_features(self): self._extension_to_count_feature = Feature.create( 'Share of {}-extensions by count'.format(self.category)) self._extension_to_size_feature = Feature.create( 'Share of {}-extensions by size'.format(self.category)) self.features = [ self._extension_to_count_feature, self._extension_to_size_feature ]
def _init_features(self): self.features = [Feature.create('Language feature for DEV')]
def _init_features(self): self.feature = Feature.create('Has build file')
def _init_features(self): self.features = [Feature.create('Language feature for ' + CATEGORY)]
def _init_features(self): self.feature = Feature.create('Has wiki')
def _init_features(self): self.feature = Feature.create('Active time in days')
def _init_features(self): self.feature = Feature.create('Is a fork')
def _init_features(self): self.features = [ Feature.create('Contains file "' + filename + '"') for filename in self.filenames ]
def _init_features(self): self.feature = Feature.create('Number of forks')
def _init_features(self): self.feature = Feature.create('Number of contributors')
def _init_features(self): self.feature = Feature.create('Number of commits')
def _init_features(self): self.feature = Feature.create('Number of branches')
def _init_features(self): self.feature = Feature.create('Number of watchers')
def _init_features(self): self.feature = Feature.create('Size of repo')
def _init_features(self): self.feature = Feature.create('Number of open issues')
def _init_features(self): self.feature = Feature.create('Description or name contains year')
def _init_features(self): self.features = [ Feature.create('Contains keyword "' + keyword + '"') for keyword in self.keywords ]
def _init_features(self): self.feature = Feature.create('Has downloads')
def _init_features(self): self.feature = Feature.create('Has pages')
def _init_features(self): self.features = [Feature.create("Description contains URL")]