Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
f83d1231
Commit
f83d1231
authored
9 years ago
by
Mateus Rambo Strey
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.c3sl.ufpr.br:portalmec/portalmec
parents
eed87dd8
ed188268
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/services/autocomplete_service.rb
+1
-1
1 addition, 1 deletion
app/services/autocomplete_service.rb
autocomplete/src/main.cpp
+6
-3
6 additions, 3 deletions
autocomplete/src/main.cpp
with
7 additions
and
4 deletions
app/services/autocomplete_service.rb
+
1
−
1
View file @
f83d1231
...
...
@@ -6,6 +6,6 @@ class AutocompleteService
end
def
query
(
query
)
return
open
(
"
#{
@url
}
:
#{
@port
}
?q=
#{
query
}
"
).
read
return
open
(
"
#{
@url
}
:
#{
@port
}
?q=
#{
query
.
downcase
}
"
).
read
end
end
This diff is collapsed.
Click to expand it.
autocomplete/src/main.cpp
+
6
−
3
View file @
f83d1231
...
...
@@ -44,12 +44,15 @@ using namespace std;
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
3
){
cerr
<<
"Usage: "
<<
argv
[
0
]
<<
" <dicionary
:file_url> <port:int
>
\n
"
;
if
(
argc
<
2
){
cerr
<<
"Usage: "
<<
argv
[
0
]
<<
" <
string
dicionary
=../brazilian.txt> <int port=4242
>
\n
"
;
return
1
;
}
int
port
=
atoi
(
argv
[
2
]);
int
port
=
4242
;
if
(
argc
>
2
){
port
=
atoi
(
argv
[
2
]);
}
EmbeddedServer
server
(
argv
[
1
],
port
);
while
(
1
)
sleep
(
100
);
...
...
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