-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack_overflow.py
More file actions
27 lines (21 loc) · 791 Bytes
/
stack_overflow.py
File metadata and controls
27 lines (21 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-
#sample = "import numpy as np \
#from sklearn.preprocessing import normalize \
#\
sample ="protected void changeMatch(RouteMatch match) {\n\
List<String> requestList = SparkUtils.convertRouteToList(match.getRequestURI());\n\
List<String> matchedList = SparkUtils.convertRouteToList(match.getMatchUri());\n\
\n\
params = getParams(requestList, matchedList);\n\
splat = getSplat(requestList, matchedList);\n\
}"
def code_snippet_get_language(code_snippet):
return 'Java'
def so_get_code(answer):
# TODO: find <code> </code> the internal is the actual code
return answer
def so_get_interesting_answers():
""" returns a list of possible answers """
# TODO: load so data and cut it down to interesting ones
# TODO: define filter
return [sample]