Esempio n. 1
0
def clusterUsersSkillsLocation():
    #try:
    inputUtils = InputUtils()

    username = inputUtils.getCleanString(request.form["username"])
    password = inputUtils.getCleanString(request.form["password"])

    analysisController = AnalysisController()
    return analysisController.clusterUsersSkillsLocation(username, password)
Esempio n. 2
0
def predictGithubSkillTrendsWorldwide():
    #try:
    inputUtils = InputUtils()

    username = inputUtils.getCleanString(request.form["username"])
    password = inputUtils.getCleanString(request.form["password"])

    analysisController = AnalysisController()
    return analysisController.predictGithubSkillTrendsWorldwide(
        username, password)
Esempio n. 3
0
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)
Esempio n. 4
0
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)
Esempio n. 5
0
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)
Esempio n. 6
0
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)
Esempio n. 7
0
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)
Esempio n. 8
0
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)