commited all contents created by participants

This commit is contained in:
Bachir Soussi Chiadmi
2017-12-21 18:12:40 +01:00
parent cefd1c2ad0
commit b936b1e616
2137 changed files with 1076319 additions and 730 deletions
+1
View File
@@ -0,0 +1 @@
I came here to lend my support to you today, to offer my solidarity, for this unprecedented display of democracy and popular will. People have asked, « So what are the demands? What are the demands all these people are making? » Either they say there are no demands and that leaves your critics confused - or they say that the demand for social equality and economic justice are impossible demands. And impossible demands, they say, are just not practical. If hope is an impossible demand, then we demand the impossible. If the right to shelter, food, and employment are impossible demands, then we demand the impossible. if it is impossible to demand that those who profit from the recession redistribute their wealth and cease their greed, then yes, we demand the impossible. But it is true that there are no demands that you can submit to arbitration here because we are not just demanding economic justice and social equality. We are assembling in public, we are coming together as bodies in alliance, in the street and in the square. Were standing here together making democracy, enacting the phrase « We the people! »
+4
View File
@@ -0,0 +1,4 @@
phrase originale: Les gouvernements suspectent la littérature parce quelle est une force qui leur échappe.
['les', 'gouvernements', 'suspectent', 'la', 'littérature', 'parce', 'quelle', 'est', 'une', 'force', 'qui', 'leur', 'échappe']
['est', 'force', 'gouvernements', 'la', 'les', 'leur', 'littérature', 'parce', 'qui', 'quelle', 'suspectent', 'une', 'échappe']
phrase alphabétique: Est force gouvernements la les leur littérature parce qui quelle suspectent une échappe.
+51
View File
@@ -0,0 +1,51 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import random
occurences = ["What are the demands","There are no demands","The demands","Impossible demands", "Impossible demand","We demand the impossible","Impossible to demand"]
# read from file
with open("occupy.txt", "r") as source:
# for each line
txt = source.readline()
print(txt)
new_txt = txt.replace(democracy, democracy_shuffled)
print(new_txt)
# clean returns
#line = line.strip()
#print(line)
democracy = "democracy"
democracy_majuscule = democracy.upper()
print(democracy_majuscule)
liste = list( democracy )
random.shuffle( liste )
democracy_shuffled = ''.join( liste )
print(democracy_shuffled)
#replace what are the demands
sentence = occurences[0]
print("sentence:", sentence)
sentence.replace("What are the demands"," what are the demands ")
print(sentence)
#replace there are no demands
sentence = occurences[1]
sentence.replace("there are no demands","therearenodemands")
print(sentence)
#reverse order
sentence = occurences[4,5,7]
chaine = "impossible demands, impossible demand, impossible to demand"
chaine = chaine [::-1]
print(chaine)
# passer en majuscule
sentence = occurences[6]
#sentence = sentence.upper()
#print(sentence)
# écrire la nouvelle liste comme chaîne de caractères dans un fichier texte
#with open('export.txt', 'w') as f:
#f.write(script1)
+67
View File
@@ -0,0 +1,67 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import random
occurences = ["What are the demands","There are no demands","The demands","Impossible demands", "Impossible demand","We demand the impossible","Impossible to demand"]
democracy = "democracy"
democracy_en_grand = democracy.upper()
print(democracy_en_grand)
liste = list( democracy )
random.shuffle( liste )
democracy_shuffled = ''.join( liste )
print(democracy_shuffled)
# read stopwords from file & save them in a list
# read from file
with open("occupy.txt", "r") as source:
txt = source.readline()
print(txt)
newtxt = txt.replace(democracy, democracy_shuffled)
print(newtxt)
# # for each line
# for line in source:
# # clean returns
# line = line.strip()
# #print(line)
# #split sentences into words
# words = line.split()
# print(" ".join(words))
# #for each words ...
# for word in words:
# if word == "democracy":
# word = word.upper()
# print(word)
# liste = list( word )
# random.shuffle( liste )
# word = ''.join( liste )
# print(word)
# print(" ".join(words))
# #replace what are the demands
# sentence = occurences[0]
# print("sentence:", sentence)
# sentence.replace("What are the demands"," what are the demands ")
# print(sentence)
# #replace there are no demands
# #sentence.replace("there are no demands","therearenodemands")
# #print(sentence)
# #reverse order
# #chaine = "impossible demands, impossible demand, impossible to demand"
# #chaine = chaine [::-1]
# #print(chaine)
# # majuscule
# #if sentence == "We demand the impossible":
# #sentence = sentence.upper()
# # écrire la nouvelle liste comme chaîne de caractères dans un fichier texte
# with open('export.txt', 'w') as f:
# f.write(script1)