Skip to content

Commit 463f0fe

Browse files
committed
Fix beauitfulsoup issue and add config path
Fix beauitfulsoup issue and add config path Fix beauitfulsoup issue and add config path
1 parent 5d32104 commit 463f0fe

File tree

34 files changed

+135
-108
lines changed

34 files changed

+135
-108
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
biglambda/producers/parser.out
22
biglambda/producers/typetab.py
3-
biglambda/producers/__pycache__
4-
biglambda/consumers/__pycache__
5-
biglambda/__pycache__
3+
__pycache__
4+
.python-version
5+
setup.pyc

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# biglambda
2-
Source code for the BigLambda data-parallel synthesis project. Based on the PLDI 2016 paper **MapReduce Program Synthesis** by [Calvin Smith](http://pages.cs.wisc.edu/~cjsmith/) and [Aws Albarghouthi](http://pages.cs.wisc.edu/~aws/).
2+
Source code for the BigLambda data-parallel synthesis project. Based
3+
on the PLDI 2016 paper **MapReduce Program Synthesis** by
4+
[Calvin Smith](http://pages.cs.wisc.edu/~cjsmith/) and
5+
[Aws Albarghouthi](http://pages.cs.wisc.edu/~aws/).
36

47
## Dependencies
5-
The tool depends on the most recent versions of `BeautifulSoup` and `ply`, neither of which are included.
8+
The tool depends on the most recent versions of `BeautifulSoup`,
9+
`lxml`, and `ply`, neither of which are included.
10+
11+
## Usage
12+
First edit `PATH` in `biglambda/setup.py`.
13+
```
14+
usage: BigLambda - synthesizing MapReduce programs since 2015
15+
[-h] [-s SIGNATURE] [-d DATA] [-v] [-fs FRONTIERSIZE] [-p] [--dinner]
16+
[-b BENCHMARK]
17+
18+
optional arguments:
19+
-h, --help show this help message and exit
20+
-s SIGNATURE, --signature SIGNATURE
21+
-d DATA, --data DATA
22+
-v, --verbose
23+
-fs FRONTIERSIZE, --frontiersize FRONTIERSIZE
24+
-p, --parallel
25+
--dinner
26+
-b BENCHMARK, --benchmark BENCHMARK
27+
```
28+
`biglambda/producers/parser.out` and `biglambda/producers/typetab.py`
29+
will be generated after the computation.

benchmarks/anagram/data

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<data input="String" output="[String]" key="String">
2-
<norm name="append" tag="assoc">
3-
<weight name="emit" val=0.001>
4-
<weight name="sort_word" val=2>
5-
<weight name="to_chars" val=0.1>
2+
<norm name="append" tag="assoc" />
3+
<weight name="emit" val="0.001" />
4+
<weight name="sort_word" val="2" />
5+
<weight name="to_chars" val="0.1" />
66
<example>
77
<input delim=","> "banana aaabnn test", "estt ananab" </input>
88
<output>

benchmarks/average/data

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<data input="Int" key="Int" output="Float">
22
<example>
33
<input delim=","> 1, 2, 3 </input>
4-
<output val=2.0 />
4+
<output val="2.0" />
55
</example>
66
<example>
77
<input delim=","> 0, 5 </input>
8-
<output val=2.5 />
8+
<output val="2.5" />
99
</example>
1010
</data>

benchmarks/cycling_bpm/data

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<data input="Record" key="Int" output="Int">
2-
<weight name="fst" val=0.0001>
3-
<weight name="snd" val=0.0001>
4-
<weight name="emit" val=0.0001>
5-
<weight name="one" val=0.1>
2+
<weight name="fst" val="0.0001" />
3+
<weight name="snd" val="0.0001" />
4+
<weight name="emit" val="0.0001" />
5+
<weight name="one" val="0.1" />
66
<example>
77
<input>
88
(212956, 218, 79, 6.991)

benchmarks/cycling_speed/data

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<data input="Record" key="Int" output="Int">
2-
<weight name="fst" val=0.0001>
3-
<weight name="snd" val=0.0001>
4-
<weight name="emit" val=0.0001>
5-
<weight name="speed" val=100>
2+
<weight name="fst" val="0.0001" />
3+
<weight name="snd" val="0.0001" />
4+
<weight name="emit" val="0.0001" />
5+
<weight name="speed" val="100" />
66
<example>
77
<input>
88
(212956, 218, 79, 6.991)

benchmarks/cycling_watts/data

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<data input="Record" key="Int" output="Int">
2-
<weight name="fst" val=0.0001>
3-
<weight name="snd" val=0.0001>
4-
<weight name="emit" val=0.0001>
5-
<weight name="one" val=0.1>
2+
<weight name="fst" val="0.0001" />
3+
<weight name="snd" val="0.0001" />
4+
<weight name="emit" val="0.0001" />
5+
<weight name="one" val="0.1" />
66
<example>
77
<input>
88
(212956, 218, 79, 6.991)

benchmarks/dateextraction/data

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<data input="String" output="[String]">
2-
<norm name="append" tag="assoc">
3-
<weight name="extract" val=100>
2+
<norm name="append" tag="assoc" />
3+
<weight name="extract" val="100" />
44
<example>
55
<input>
66
"There will be a meeting at DATE01, and maybe DATE02"

benchmarks/factorcounting/data

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<data input="Int" output="Int" key="Int">
2-
<norm name="plus" tag="ac">
3-
<weight name="factor" val=10>
4-
<weight name="emit" val=0.01>
2+
<norm name="plus" tag="ac" />
3+
<weight name="factor" val="10" />
4+
<weight name="emit" val="0.01" />
55
<example>
66
<input delim=","> 2, 3, 4 </input>
77
<output>

benchmarks/grep/data

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<data input="String" output="[String]">
2-
<weight name="core_filter" val=100>
2+
<weight name="core_filter" val="100" />
33
<example>
44
<input delim=","> "That dog there", "what a human cat" </input>
55
<output delim=","> "dog", "human", "cat" </output>

0 commit comments

Comments
 (0)