This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy as np | |
import pandas as pd | |
from sklearn.cluster import KMeans | |
import warnings | |
class Helpers(): | |
def get_optimum_clusters(df): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LocaleManager { | |
private static final String LANGUAGE_KEY = "CHOOSE_LANGUAGE"; | |
public static Context setLocale(Context c) { | |
String savedLanguage = getLanguage(c); | |
return savedLanguage == null ? c : updateResources(c, savedLanguage); | |
} | |
public static Context setNewLocale(Context c, String language) { | |
persistLanguage(c, language); |