Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
COMP90024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felipe Ramos
COMP90024
Commits
a2dfc685
Commit
a2dfc685
authored
4 years ago
by
Felipe Ramos
Browse files
Options
Downloads
Patches
Plain Diff
update paths
parent
9de6a80d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Data collection/filterbigupdate.py
+1
-1
1 addition, 1 deletion
Data collection/filterbigupdate.py
Data collection/searchFile_to_couch.py
+2
-2
2 additions, 2 deletions
Data collection/searchFile_to_couch.py
Data collection/streamFile_to_couch.py
+2
-2
2 additions, 2 deletions
Data collection/streamFile_to_couch.py
with
5 additions
and
5 deletions
Data collection/filterbigupdate.py
+
1
−
1
View file @
a2dfc685
...
...
@@ -11,7 +11,7 @@ couchserver = couchdb.Server("http://admin:admin@"+couchIP+":5984/")
db
=
couchserver
[
'
live_demo2
'
]
with
open
(
'
./comp90024/Data
\
collection//
'
+
'
big_filtered.json
'
,
'
r
'
,
encoding
=
'
utf-8
'
)
as
file
:
with
open
(
'
./comp90024/Data collection//
'
+
'
big_filtered.json
'
,
'
r
'
,
encoding
=
'
utf-8
'
)
as
file
:
biga
=
json
.
load
(
file
)
...
...
This diff is collapsed.
Click to expand it.
Data collection/searchFile_to_couch.py
+
2
−
2
View file @
a2dfc685
...
...
@@ -14,9 +14,9 @@ db = couchserver['live_demo2']
data
=
{}
for
filename
in
os
.
listdir
(
'
./comp90024/Data
\
collection//UPLOAD
'
):
for
filename
in
os
.
listdir
(
'
./comp90024/Data collection//UPLOAD
'
):
if
filename
.
startswith
(
'
twt_search
'
):
with
open
(
'
./comp90024/Data
\
collection/UPLOAD/
'
+
filename
,
'
r
'
,
encoding
=
'
utf-8
'
)
as
file
:
with
open
(
'
./comp90024/Data collection/UPLOAD/
'
+
filename
,
'
r
'
,
encoding
=
'
utf-8
'
)
as
file
:
for
line
in
file
:
#line = ast.literal_eval(line)
line
=
json
.
loads
(
line
)
...
...
This diff is collapsed.
Click to expand it.
Data collection/streamFile_to_couch.py
+
2
−
2
View file @
a2dfc685
...
...
@@ -18,9 +18,9 @@ data = []
log
=
[]
for
filename
in
os
.
listdir
(
'
./comp90024/Data
\
collection/UPLOAD/
'
):
for
filename
in
os
.
listdir
(
'
./comp90024/Data collection/UPLOAD/
'
):
if
filename
.
startswith
(
'
twt_stream
'
):
with
open
(
'
./comp90024/Data
\
collection/UPLOAD/
'
+
filename
,
'
r
'
,
encoding
=
'
utf-8
'
)
as
file
:
with
open
(
'
./comp90024/Data collection/UPLOAD/
'
+
filename
,
'
r
'
,
encoding
=
'
utf-8
'
)
as
file
:
for
line
in
file
:
try
:
line
=
ast
.
literal_eval
(
line
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment