Skip to content

Commit

Permalink
add les miserables sample folder
Browse files Browse the repository at this point in the history
  • Loading branch information
YinYue33 committed Dec 18, 2017
1 parent 2b37576 commit b255c82
Show file tree
Hide file tree
Showing 37 changed files with 1,281 additions and 3,752 deletions.
21 changes: 21 additions & 0 deletions Les Miserables/charactersPhotos.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Les Miserables
VALJEAN
https://vignette.wikia.nocookie.net/lesmiserables/images/c/c7/JV2.jpg/revision/latest/scale-to-width-down/145?cb=20120531104616
MARIUS
https://vignette2.wikia.nocookie.net/lesmiserables/images/6/6a/Marius_Pontmercy.jpg/revision/latest?cb=20140202114006
JAVERT
https://vignette.wikia.nocookie.net/lesmiserables/images/a/a2/Tumblr_mfhvrjroCB1r2n2w2o3_500.jpg/revision/latest?cb=20130102081322
THENARDIER
https://vignette.wikia.nocookie.net/lesmiserables/images/1/10/Th%C3%A9nardier_les_miserables_movie_poster.jpg/revision/latest/scale-to-width-down/140?cb=20141108093219
ENJOLRAS
https://vignette.wikia.nocookie.net/lesmiserables/images/b/b6/Tumblr_mfhecvqSQr1qlrrbto1_1280.jpg/revision/latest/scale-to-width-down/250?cb=20130102075437
FANTINE
https://vignette.wikia.nocookie.net/lesmiserables/images/1/10/Tumblr_mfhvrjroCB1r2n2w2o2_500.jpg/revision/latest?cb=20130102071028
EPONINE
https://vignette.wikia.nocookie.net/lesmiserables/images/c/cd/%C3%89ponine.jpg/revision/latest/scale-to-width-down/300?cb=20140226041553
COSETTE
https://vignette.wikia.nocookie.net/lesmiserables/images/0/0d/Tumblr_mfhvrjroCB1r2n2w2o4_500.jpg/revision/latest/scale-to-width-down/300?cb=20130102070005
#sentiment -0.177118
#/art and entertainment/music/music genres/opera 0.531204
#/religion and spirituality/christianity/catholicism 0.501052
#/law, govt and politics/law enforcement/police 0.467703
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions Les Miserables/keywords.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"keywords":[{"size":0.943747,"text":"valjean"},{"size":0.762176,"text":"jean valjean"},{"size":0.754485,"text":"factory woman"},{"size":0.681806,"text":"main factory woman"},{"size":0.672233,"text":"javert"},{"size":0.659,"text":"convict JEAN VALJEAN"},{"size":0.65025,"text":"Valjean moves"},{"size":0.623159,"text":"command. Valjean"},{"size":0.61891,"text":"Valjean stoops"},{"size":0.617894,"text":"bewildered Valjean"},{"size":0.60605,"text":"Valjean kneels"},{"size":0.601503,"text":"Valjean stands"},{"size":0.586634,"text":"Valjean shows"},{"size":0.563504,"text":"EXT"},{"size":0.543583,"text":"bishop"},{"size":0.514627,"text":"foreman"},{"size":0.504774,"text":"yellow paper"},{"size":0.498424,"text":"factory women"},{"size":0.497704,"text":"fantine"},{"size":0.493977,"text":"end"},{"size":0.479561,"text":"night"},{"size":0.478022,"text":"factory floor"},{"size":0.476378,"text":"Javert stares"},{"size":0.473835,"text":"SCENE OMITTED"},{"size":0.473374,"text":"SUPERIMPOSE CAPTION"},{"size":0.472799,"text":"digne"},{"size":0.471643,"text":"way"},{"size":0.471468,"text":"Javert hurry"},{"size":0.470586,"text":"Sweet Jesus"},{"size":0.465105,"text":"old man"},{"size":0.463143,"text":"silver candlesticks"},{"size":0.460884,"text":"cart"},{"size":0.457869,"text":"door"},{"size":0.456584,"text":"factory buildings"},{"size":0.456534,"text":"cart driver"},{"size":0.451535,"text":"factory yard"},{"size":0.451116,"text":"montreuil"},{"size":0.450557,"text":"dangerous man"},{"size":0.45041,"text":"7A EXT"},{"size":0.449949,"text":"God"},{"size":0.449843,"text":"INT"},{"size":0.448776,"text":"kind old man"},{"size":0.446934,"text":"pretty young woman"},{"size":0.446639,"text":"light catches glints"},{"size":0.446361,"text":"tall masted warships"},{"size":0.446263,"text":"long rising road"},{"size":0.446095,"text":"well-dressed prosperous man"},{"size":0.445195,"text":"great wave rolls"},{"size":0.44475,"text":"Claude- Michel Schönberg"},{"size":0.44406,"text":"French navy"},{"size":0.44355,"text":"cold winter wind"},{"size":0.44294,"text":"folded yellow paper"},{"size":0.44181,"text":"church"},{"size":0.441479,"text":"low tide"},{"size":0.441078,"text":"long work space"},{"size":0.44089,"text":"housekeeper Madame Magloire"},{"size":0.440422,"text":"red brick"},{"size":0.44003,"text":"yellow passport"},{"size":0.439567,"text":"Bishop sleeps"}]}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</div>
</nav>

<div class="container">
<div class="container">
<br><br><br>

<!-- Main component for a primary marketing message or call to action-->
Expand All @@ -55,16 +55,22 @@ <h2></h2>
</div>
</div>

<div class="container">
<div style="background:transparent; !important" class="jumbotron">
<div class="container">
<h2></h2>
<div id="chart"></div>
</div>
</div>

<div style="background:transparent !important" class="jumbotron">
<div class="container">
<h2></h2>
<div class="card-block">
<h2 class="card-title"></h2>
<p class="card-text">An icicle graph visualizing the protagonist’s intrinsic personality characteristics, including Big Five, Need and Values. Data derived using Personality Insight API which applies linguistic analytics and personality theory.</p>
</div>
<div id="personality"></div>
</div>
</div>

</body>
<script>
Expand Down Expand Up @@ -102,7 +108,7 @@ <h2></h2>
.enter().append("text")
.attr("class", "label")
.attr("dy", ".35em")
.attr("transform", function(d) { return "translate(" + (d.x + d.dx / 2) + "," + (d.y + d.dy / 2) + ")rotate(90)"; })
.attr("transform", function(d) { return "translate(" + (d.x + d.dx / 2) + "," + (d.y + d.dy / 8) + ")rotate(90)"; })
.text(function(d) { return d.name; });
});

Expand Down Expand Up @@ -136,7 +142,7 @@ <h2></h2>
rawFile.abort();
}*/
var characters;
readTextFile("characters.txt");
readTextFile("charactersPhotos.txt");
function readTextFile(file){
var rawFile = new XMLHttpRequest();
rawFile.open("GET", file, false);
Expand Down Expand Up @@ -168,11 +174,11 @@ <h2></h2>


var margin = { top: 50, right: 0, bottom: 100, left: 30 },
width = 960 - margin.left - margin.right,
width = 1860 - margin.left - margin.right,
height = 430 - margin.top - margin.bottom,
gridSize = Math.floor(width / 100),
gridHeight = Math.floor(width/24),
legendElementWidth = gridSize*6,
gridSize = Math.floor(width / 300),
gridHeight = Math.floor(width/50),
legendElementWidth = gridSize*10,
buckets = 9,
colors = ["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"], // alternatively colorbrewer.YlGnBu[9]
emotions = ["Anger", "Fear", "Joy", "Sadness", "Disgust"],
Expand Down Expand Up @@ -272,7 +278,7 @@ <h2></h2>

legend.append("rect")
.attr("x", function(d, i) { return legendElementWidth * i; })
.attr("y", height)
.attr("y", height - 60)
.attr("width", legendElementWidth)
.attr("height", gridHeight / 2)
.style("fill", function(d, i) { return colors[i]; });
Expand All @@ -281,7 +287,7 @@ <h2></h2>
.attr("class", "mono")
.text(function(d) { return "≥ " + Math.round(d); })
.attr("x", function(d, i) { return legendElementWidth * i; })
.attr("y", height + gridSize);
.attr("y", height - gridSize * 5);

legend.exit().remove();

Expand Down
9 changes: 9 additions & 0 deletions Les Miserables/occurrences.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name,occurences
VALJEAN,131
MARIUS,72
JAVERT,59
THENARDIER,52
ENJOLRAS,39
FANTINE,39
EPONINE,35
COSETTE,31
1 change: 1 addition & 0 deletions Les Miserables/personality.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"children":[{"children":[{"children":[{"size":0.7082202631800885,"name":"Adventurousness"},{"size":0.9555228282201818,"name":"Artistic interests"},{"size":0.980077456767391,"name":"Emotionality"},{"size":0.7266031773669489,"name":"Imagination"},{"size":0.9782848110900741,"name":"Intellect"},{"size":0.21587697434186387,"name":"Authority-challenging"}],"name":"Openness"},{"children":[{"size":0.512309842879916,"name":"Achievement striving"},{"size":0.5242623917179539,"name":"Cautiousness"},{"size":0.7314019851300302,"name":"Dutifulness"},{"size":0.2778791724732771,"name":"Orderliness"},{"size":0.5684885244644999,"name":"Self-discipline"},{"size":0.3341990034369316,"name":"Self-efficacy"}],"name":"Conscientiousness"},{"children":[{"size":0.5237063021276295,"name":"Activity level"},{"size":0.42319823878956103,"name":"Assertiveness"},{"size":0.7115575594227918,"name":"Cheerfulness"},{"size":0.3702514739168029,"name":"Excitement-seeking"},{"size":0.4437461755418471,"name":"Outgoing"},{"size":0.04641334877383668,"name":"Gregariousness"}],"name":"Extraversion"},{"children":[{"size":0.9536770853055153,"name":"Altruism"},{"size":0.7257536177696047,"name":"Cooperation"},{"size":0.9922097764718832,"name":"Modesty"},{"size":0.9908960562934588,"name":"Uncompromising"},{"size":0.9927960782562155,"name":"Sympathy"},{"size":0.1458441180333545,"name":"Trust"}],"name":"Agreeableness"},{"children":[{"size":0.1944676551927016,"name":"Fiery"},{"size":0.4256322432046428,"name":"Prone to worry"},{"size":0.7132956571881323,"name":"Melancholy"},{"size":0.26498559265473975,"name":"Immoderation"},{"size":0.528210465595392,"name":"Self-consciousness"},{"size":0.6030841137952773,"name":"Susceptible to stress"}],"name":"Emotional range"}],"name":"personality"},{"children":[{"size":0.7547465419098511,"name":"Conservation"},{"size":0.5081605828001579,"name":"Openness to change"},{"size":0.16782370505974759,"name":"Hedonism"},{"size":0.01116012323253096,"name":"Self-enhancement"},{"size":0.8640760080693055,"name":"Self-transcendence"}],"name":"values"},{"children":[{"size":0.07381392572276302,"name":"Challenge"},{"size":0.9622013802999791,"name":"Closeness"},{"size":0.7265093326043859,"name":"Curiosity"},{"size":0.4356790708382335,"name":"Excitement"},{"size":0.9877547897445165,"name":"Harmony"},{"size":0.382886021565971,"name":"Ideal"},{"size":0.4702924021660711,"name":"Liberty"},{"size":0.38531429648069615,"name":"Love"},{"size":0.23152373975490503,"name":"Practicality"},{"size":0.6843286972673192,"name":"Self-expression"},{"size":0.9465093573397447,"name":"Stability"},{"size":0.8015496767615846,"name":"Structure"}],"name":"needs"}],"name":"personalityReport"}
Loading

0 comments on commit b255c82

Please sign in to comment.