def clusterUsersSkillsLocation(): #try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) analysisController = AnalysisController() return analysisController.clusterUsersSkillsLocation(username, password)
def predictGithubSkillTrendsWorldwide(): #try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) analysisController = AnalysisController() return analysisController.predictGithubSkillTrendsWorldwide( username, password)
def transformAppendTimestampLatestReposSkills(): try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) transformationController = TransformationController() return transformationController.transformAppendTimestampLatestReposSkills( username, password) except ValueError as e: return 'Failed to transformAppendTimestampLatestReposSkills {0}'.format( e)
def scrapGithubUsersRepositoriesSkills(): try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) location = inputUtils.getCleanString(request.form["location"]) scrapingController = ScrapingController() return scrapingController.scrapGithubUsersRepositoriesSkills( username, password, location) except ValueError as e: return 'Failed to scrapGithubUsersRepositoriesSkills {0}'.format(e)
def describeStatsDatasetGithubProfilesSkillsInsights(): try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) analysisController = AnalysisController() return analysisController.describeStatsDatasetGithubProfilesSkillsInsights( username, password) except ValueError as e: return 'Failed to describeStatsDatasetGithubProfilesSkillsInsights {0}'.format( e)
def removeAllKeysWithPatternFrom(): try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) pattern = inputUtils.getCleanString(request.form["pattern"]) transformationController = TransformationController() return transformationController.removeAllKeysWithPatternFrom( username, password, pattern) except ValueError as e: return 'Failed to removeAllKeysWithPatternFrom {0}'.format(e)
def scrapCommitsCodeSamplesGithubUsersFromLocation(): try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) location = inputUtils.getCleanString(request.form["location"]) skill = inputUtils.getCleanString(request.form["skill"]) scrapingController = ScrapingController() return scrapingController.scrapCommitsCodeSamplesGithubUsersFromLocation( username, password, location, skill) except ValueError as e: return 'Failed to scrapCommitsCodeSamplesGithubUsersFromLocation {0}'.format( e)
def scrapGithubProfilesFromLocation(): try: inputUtils = InputUtils() username = inputUtils.getCleanString(request.form["username"]) password = inputUtils.getCleanString(request.form["password"]) location = inputUtils.getCleanString(request.form["location"]) initialPage = request.form["initial_page"] numPages = request.form["num_pages"] scrapingController = ScrapingController() return scrapingController.scrapBasicProfileGithubUsers( username, password, location, initialPage, numPages) except ValueError as e: return 'Failed to scrapGithubProfilesFromLocation {0}'.format(e)