Add generic family? and platform methods to an existing platform

 This is done later to add any custom
 families/properties that were created
507662
def add_platform_methods
      # Redo clean name if there is a detect override
      clean_name(force: true) unless @platform[:name].nil?

      # Add in family methods
      family_list = Train::Platforms.families
      family_list.each_value do |k|
        next if respond_to?(k.name + '?')
        define_singleton_method(k.name + '?') do
          family_hierarchy.include?(k.name)
        end
      end

      # Helper methods for direct platform info
      @platform.each_key do |m|
        next if respond_to?(m)
        define_singleton_method(m) do
          @platform[m]
        end
      end

      # Create method for name if its not already true
      m = name + '?'
      return if respond_to?(m)
      define_singleton_method(m) do
        true
      end
    end
1060898
function createPlatformFactory(parentPlatformFactory, name, providers) {
    if (providers === void 0) { providers = []; }
    var /** @type {?} */ marker = new InjectionToken("Platform: " + name);
    return function (extraProviders) {
        if (extraProviders === void 0) { extraProviders = []; }
        var /** @type {?} */ platform = getPlatform();
        if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
            if (parentPlatformFactory) {
                parentPlatformFactory(providers.concat(extraProviders).concat({ provide: marker, useValue: true }));
            }
            else {
                createPlatform(ReflectiveInjector.resolveAndCreate(providers.concat(extraProviders).concat({ provide: marker, useValue: true })));
            }
        }
        return assertPlatform(marker);
    };
}
240233
private void addSubManagedType(ManagedType inheritedType)
    {

        if (Modifier.isAbstract(this.getJavaType().getModifiers()))
        {
            subManagedTypes.add(inheritedType);
        }
    }
688905
public function addMappedType($databaseType, $fridgeType)
    {
        if ($this->hasMappedType($databaseType)) {
            throw PlatformException::mappedTypeAlreadyExists($databaseType);
        }

        if (!Type::hasType($fridgeType)) {
            throw TypeException::typeDoesNotExist($fridgeType);
        }

        $this->mappedTypes[$databaseType] = $fridgeType;
    }
747344
protected void addCachedExtension(E extension)
    {
        if (!this.extensions.containsKey(extension.getId())) {
            // extensions
            this.extensions.put(extension.getId(), extension);

            // versions
            addCachedExtensionVersion(extension.getId().getId(), extension);
            if (!this.strictId) {
                for (String feature : extension.getFeatures()) {
                    addCachedExtensionVersion(feature, extension);
                }
            }
        }
    }
1042907
@Override
  public void addColumnFamily(TableName tableName, ColumnFamilyDescriptor columnFamilyDesc)
      throws IOException {
    modifyColumns(tableName, columnFamilyDesc.getNameAsString(), "add",
            ModifyTableBuilder.newBuilder(tableName).add(TableAdapter2x.toHColumnDescriptor(columnFamilyDesc)));
  }
732908
private function addFamilyAndDescendantsToCart(Family $family): void
    {
        $this->addRecordToCart($family);

        foreach ($family->spouses() as $spouse) {
            $this->addRecordToCart($spouse);
        }
        foreach ($family->children() as $child) {
            $this->addRecordToCart($child);
            foreach ($child->spouseFamilies() as $child_family) {
                $this->addFamilyAndDescendantsToCart($child_family);
            }
        }
    }
1120963
@Override
	public void addNextProcessor(ChainedResourceBundlePostProcessor nextProcessor) {
		if (!isVariantPostProcessor) {
			isVariantPostProcessor = nextProcessor.isVariantPostProcessor();
		}
		if (this.nextProcessor == null) {
			this.nextProcessor = nextProcessor;
		} else {
			this.nextProcessor.addNextProcessor(nextProcessor);
		}
	}
1081240
public CreateTableRequest addFamily(String familyId, GCRule gcRule) {
    Preconditions.checkNotNull(familyId);
    tableRequest.putColumnFamilies(
        familyId, ColumnFamily.newBuilder().setGcRule(gcRule.toProto()).build());
    return this;
  }
1080081
def add(self, method_class, action, version=None):
        
        by_version = self._by_action.setdefault(action, {})
        if version in by_version:
            raise RuntimeError("A method was already registered for action"
                               " %s in version %s" % (action, version))
        by_version[version] = method_class
131903
private void addColumnFamilyAndSetProperties(HTableDescriptor tableDescriptor, String colFamilyName)
    {
        if (!tableDescriptor.hasFamily(colFamilyName.getBytes()))
        {
            HColumnDescriptor hColumnDescriptor = getColumnDescriptor(colFamilyName);
            tableDescriptor.addFamily(hColumnDescriptor);
            setExternalProperties(tableDescriptor.getNameAsString(), hColumnDescriptor);
        }
    }
803285
public <T extends SubSystem> T addSystemIfAbsent(T system)
  {
    return addSystemIfAbsent(system.getClass(), system);
  }
452366
protected void addProperties(Root<T> root, CriteriaQuery<T> query, Set<String> properties) {
		
		// Ajout des ppt
		addProperties(root, properties);
		
		// On positionne le distict
		query.distinct(true);
	}
1143059
def add_properties(self, properties):
        
        if isinstance(properties, dict):
            self._properties.update(properties)
924513
def AddMemberDefinition(self, member_definition):
    
    self.members.append(member_definition)
    member_definition.family_definition = self
328081
private function addFamilyAndChildrenToCart(Family $family): void
    {
        $this->addRecordToCart($family);

        foreach ($family->spouses() as $spouse) {
            $this->addRecordToCart($spouse);
        }
        foreach ($family->children() as $child) {
            $this->addRecordToCart($child);
        }
    }
683773
function setPlatformConfig(platformName, platformConfigs) {
    configProperties.platform[platformName] = platformConfigs;
    provider.platform[platformName] = {};

    addConfig(configProperties, configProperties.platform[platformName]);

    createConfig(configProperties.platform[platformName], provider.platform[platformName], '');
  }