Skip to content

Instantly share code, notes, and snippets.

@raphaelcosta
Created July 23, 2010 03:45
Show Gist options
  • Select an option

  • Save raphaelcosta/486979 to your computer and use it in GitHub Desktop.

Select an option

Save raphaelcosta/486979 to your computer and use it in GitHub Desktop.
views:
default_per_page: 10
mask:
decimal:
delimiter:
with_comma: "comma_delimiter"
with_point: "point_delimiter"
negative:
signal: "signal"
parenthesis: "parenthesis"
integer:
separator:
with_comma: "comma_separator"
with_point: "point_separator"
negative:
signal: "signal"
parenthesis: "parenthesis"
import:
max_mega_file_size: 50
status:
stated: "started"
verified: "verified"
matched: "matched"
waiting: "waiting"
processing: "processing"
completed: "completed"
failed: "failed"
type_file:
txt: "txt"
xls: "xls"
xlsx: "xlsx"
merge:
with_morphology: ["name", "address", "mother_name", "father_name", "city", "state", "email"]
primary_match_method: [ { :name : "name"}, { :name : "email"}, { :name : "cpf"} ]
match_methods:
cpf:
fields: [ { :name : 'cpf' , :precision : 1, :match_mode : 'levenshtein', :weight : 1, :multiple_fields_criteria : 'ignore_order' } ]
min_rate: 1.0
name_email:
fields: [ { :name : 'name' , :precision : 0.5 , :match_mode : 'levenshtein', :weight : 0.4, :multiple_fields_criteria : 'keep_order'} , { :name : 'email' , :precision : 0.6 , :match_mode : 'levenshtein', :weight : 0.6, :multiple_fields_criteria : 'keep_order' } ]
min_rate: 0.8
name_telephone_number:
fields: [{ :name : 'name' , :precision : 0.5, :match_mode : 'levenshtein' , :weight : 0.3, :multiple_fields_criteria : 'keep_order' }, { :name : 'telephone_number' , :precision : 0.8 , :match_mode : 'levenshtein', :weight : 0.7, :multiple_fields_criteria : 'keep_order' }]
min_rate: 0.8
# name_rg:
# fields: ["name", "rg"]
# name_mother_name:
# fields: ["name", "mother_name"]
# name_father_name:
# fields: ["name", "father_name"]
# name_address:
# fields: ["name", "address"]
# name_city:
# fields: ["name", "city"]
# name_cellphone_number:
# fields: ["name", "cellphone_number"]
# name_postalcode:
# fields: ["name", "postalcode"]
# name_birth_date:
# fields: ["name", "birth_date"]
# email_rg:
# fields: ["email", "rg"]
# email_mother_name:
# fields: ["email", "mother_name"]
# email_father_name:
# fields: ["email", "father_name"]
# email_birth_date:
# fields: ["email", "birth_date"]
# email_telephone_number:
# fields: ["email", "telephone_number"]
# email_cellphone_number:
# fields: ["email", "cellphone_number"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment