0% found this document useful (0 votes)
58 views3 pages

Caverphone Code Update for "mb" Handling

The document details a commit to the 'commons-codec' repository that addresses issue CODEC-117, specifically correcting how Caverphone encodes names starting and ending with 'mb'. The code change involves modifying a line in the Caverphone.java file, replacing the regex pattern for 'mb' at the end of strings with a pattern for 'mb' at the start. Additional information includes options for rejecting the annotation and validating the bug, but no answers are provided.

Uploaded by

goutam_dutta123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views3 pages

Caverphone Code Update for "mb" Handling

The document details a commit to the 'commons-codec' repository that addresses issue CODEC-117, specifically correcting how Caverphone encodes names starting and ending with 'mb'. The code change involves modifying a line in the Caverphone.java file, replacing the regex pattern for 'mb' at the end of strings with a pattern for 'mb' at the start. Additional information includes options for rejecting the annotation and validating the bug, but no answers are provided.

Uploaded by

goutam_dutta123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

====================Info Start============================

{
"id": 10,
"repo_name": "commons-codec",
"Commit URL":
"[Link]
28e34?diff=split",
"Issue URL": "[Link]
"language": "Java"
}

====================Info End====================================

====================Additional Info End====================================

For the Code Change area ,


Line of Code starting with "+" represents that the line is REMOVED.
Line of Code starting with "-" represents that the line is ADDED.

While extracting for desired refinement code please be careful in choosing the
right line of code.

Error types = [ code logic , best practice , code quality , security ]

====================Additional Info End====================================

====================Commit Message Start====================================

[CODEC-117] Caverphone encodes names starting and ending with "mb" in… …
[Link]-svn-id:
[Link] 13f79535-47bb-
0310-9956-ffa450edef68

====================Commit Message End====================================

====================Code Change Start====================================

diff --git a/src/java/org/apache/commons/codec/language/[Link]


b/src/java/org/apache/commons/codec/language/[Link]
index 28505574..5ac7e9ce 100644
--- a/src/java/org/apache/commons/codec/language/[Link]
+++ b/src/java/org/apache/commons/codec/language/[Link]
@@ -73,7 +73,7 @@ public class Caverphone implements StringEncoder {
txt = [Link]("^gn", "2n");

// End
- txt = [Link]("mb$", "m2");
+ txt = [Link]("^mb", "m2");

// 4. Handle replacements
txt = [Link]("cq", "2q");
====================Code Change End====================================

====================Additional Info Start====================================

{
"Do you want to reject this annotation": {
"options": [
"1. Yes",
"2. No"
],
"answer": ""
},
"Does the code have a valid bug": {
"options": [
"1. Yes",
"2. No"
],
"answer": ""
},
"Is the provided refinement correct": {
"options": [
"1. Correct",
"2. Not Correct",
"3. Partially Correct"
],
"answer": ""
},

"Annotator Name": "",


"Time taken to annotate (in mins)": ""
}

====================Additional Info End====================================

====================Debug Prompt Start====================================

====================Debug Prompt End=====================================

====================Error Type Start====================================

====================Error Type End=====================================

====================Error Explanation Start====================================

====================Error Explanation End====================================


===================Refinement Summary Start====================================

===================Refinement Summary End====================================

===================Desired Refinement Code


Start====================================

===================Desired Refinement Code End ====================================

===================Alternative Refinement Summary


Start=================================

===================Alternative Refinement Summary


End====================================

===================Alternative Refinement Code


Start====================================

===================Alternative Refinement Code


End====================================

You might also like