<p>
One or more <a>DominantLanguage</a> objects describing the dominant languages in the document.
</p>

@param languages
One or more <a>DominantLanguage</a> objects describing the dominant languages in the document.
769066
public void setLanguages(java.util.Collection<DominantLanguage> languages) {
        if (languages == null) {
            this.languages = null;
            return;
        }

        this.languages = new java.util.ArrayList<DominantLanguage>(languages);
    }
816849
protected List<Map<String, ?>> generatePrimitiveTypes(Set<String> primitiveTypes) {
		final List<Map<String, ?>> list = new ArrayList<>();
		if (!primitiveTypes.isEmpty()) {
			list.add(pattern(it -> {
				it.matches(keywordRegex(primitiveTypes) + "(?:\\s*\\[\\s*\\])*"); //$NON-NLS-1$
				it.style(PRIMITIVE_TYPE_STYLE);
				it.comment("Primitive types"); //$NON-NLS-1$
			}));
		}
		return list;
	}
983126
public java.util.List<PlatformProgrammingLanguage> getProgrammingLanguages() {
        if (programmingLanguages == null) {
            programmingLanguages = new com.amazonaws.internal.SdkInternalList<PlatformProgrammingLanguage>();
        }
        return programmingLanguages;
    }
245260
public static List<LanguageExtension> findAll(Collection<? extends Extension> extensions)
    {
        List<LanguageExtension> result = new ArrayList<LanguageExtension>();
        for (Extension extension : extensions)
        {
            if (LANGUAGE_EXTENSION_ID == extension.getId())
                result.add((LanguageExtension)extension);
        }
        return result;
    }
474959
@Override
  public final void setLang(final Languages pLang) {
    this.lang = pLang;
    if (this.itsId == null) {
      this.itsId = new IdI18nCurrency();
    }
    this.itsId.setLang(this.lang);
  }
204465
def __initialize_languages_model(self):
        

        languages = [PYTHON_LANGUAGE, LOGGING_LANGUAGE, TEXT_LANGUAGE]
        existingGrammarFiles = [os.path.normpath(language.file) for language in languages]

        for directory in RuntimeGlobals.resources_directories:
            for file in foundations.walkers.files_walker(directory, ("\.{0}$".format(self.__extension),), ("\._",)):
                if os.path.normpath(file) in existingGrammarFiles:
                    continue

                languageDescription = get_language_description(file)
                if not languageDescription:
                    continue

                LOGGER.debug("> Adding '{0}' language to model.".format(languageDescription))
                languages.append(languageDescription)

        self.__languages_model = LanguagesModel(self, sorted(languages, key=lambda x: (x.name)))
        self.__get_supported_file_types_string()
681094
private List<String> extractWords(@NotNull String text, Language language) {

        List<String> words = textUtils.extractWords(text, language);

        List<String> wordList = words.stream()
                                     .flatMap(word -> {
                                         return textUtils.getNormalForms(word.toLowerCase(), language)
                                                         .stream()
                                                         .filter(element -> textUtils.isNormalWord(element, language));
                                     })
                                     .collect(Collectors.toList());

        return wordList;
    }
1362527
@Override
  public final void setLang(final Languages pLang) {
    this.lang = pLang;
    if (this.itsId == null) {
      this.itsId = new IdI18nChooseableSpecifics();
    }
    this.itsId.setLang(this.lang);
  }
739545
public static Set<String> getLanguages(final ITextNode[] textNodes) {
    SortedSet<String> languages = new TreeSet<String>();
    for (ITextNode textNode : textNodes) {
      IValueNode[] valueNodes = textNode.getValueNodes();
      for (IValueNode valueNode : valueNodes) {
        languages.add(valueNode.getLanguage());
      }
    }
    return languages;
  }
1363086
protected String [] getHeaderRow(String masterlanguage, String[] languages) {
    List<String> headerRow = new ArrayList<>();
    headerRow.add(AbstractFile.KEY_HEADER);
    headerRow.add(AbstractFile.STATUS_HEADER);
    if (!ArrayUtils.contains(languages, masterlanguage)) {
      headerRow.add(AbstractFile.MASTER_HEADER + " (" + masterlanguage + ")");
    }
    for (String language : languages) {
      headerRow.add(AbstractFile.VALUE_HEADER + " (" + language + ")");
    }
    headerRow.add(AbstractFile.CONTEXT_HEADER);
    return headerRow.toArray(new String[headerRow.size()]);
  }
1294987
public void setParamLanguage(String language) {

        if (language != null) {
            if (m_paramSelectedLanguages == null) {
                m_paramSelectedLanguages = new HashSet<String>();
            }
            // add all available values here
            String[] values = getParameterMap().get(PARAM_LANGUAGE);
            for (int i = 0; i < values.length; i++) {
                m_paramSelectedLanguages.add(decodeParamValue(PARAM_LANGUAGE, values[i]));
            }
        }
    }
479006
@Override
  public final void setLang(final Languages pLang) {
    this.lang = pLang;
    if (this.itsId == null) {
      this.itsId = new IdI18nInvItem();
    }
    this.itsId.setLang(this.lang);
  }
428545
public void setSpeechMarkTypes(java.util.Collection<String> speechMarkTypes) {
        if (speechMarkTypes == null) {
            this.speechMarkTypes = null;
            return;
        }

        this.speechMarkTypes = new java.util.ArrayList<String>(speechMarkTypes);
    }
550583
public final void setLanguage(Context context, String language) {
        Locale locale = new Locale(language);
        setLanguage(context, locale);
    }
1144
public void setDominantLanguageDetectionJobPropertiesList(
            java.util.Collection<DominantLanguageDetectionJobProperties> dominantLanguageDetectionJobPropertiesList) {
        if (dominantLanguageDetectionJobPropertiesList == null) {
            this.dominantLanguageDetectionJobPropertiesList = null;
            return;
        }

        this.dominantLanguageDetectionJobPropertiesList = new java.util.ArrayList<DominantLanguageDetectionJobProperties>(
                dominantLanguageDetectionJobPropertiesList);
    }
945227
public String getLanguageComponent(String language) {
        if (StringUtils.isNullOrEmpty(language)) {
            return "";
        }

        if (language.contains("-")) {
            return language.split("-")[0];
        } else if (language.contains("_")) {
            return language.split("_")[0];
        }

        return language;
    }
204743
protected void processDescriptions(List<MonolingualTextValue> descriptions) {
        for(MonolingualTextValue description : descriptions) {
        	NameWithUpdate currentValue = newDescriptions.get(description.getLanguageCode());
        	// only mark the description as added if the value we are writing is different from the current one
        	if (currentValue == null || !currentValue.value.equals(description)) {
        		newDescriptions.put(description.getLanguageCode(),
                    new NameWithUpdate(description, true));
        	}
        }
    }