File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/sagemaker/jumpstart/hub Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 1818from typing import Any , Dict , List , Optional
1919
2020
21- < << << << HEAD
22- < << << << HEAD
2321def camel_to_snake (camel_case_string : str ) -> str :
2422 """Converts camelCase to snake_case_string using a regex.
2523
2624 This regex cannot handle whitespace ("camelString TwoWords")
27- =======
28- def pascal_to_snake(camel_case_string: str) -> str:
29- """ Converts PascalCase to snake_case_string using a regex .
30-
31- This regex cannot handle whitespace ("PascalString TwoWords" )
32- > >> >> >> ff3eae05 (feat : Adding Bedrock Store model support for HubService (#1539))
33- == == == =
34- def camel_to_snake (camel_case_string : str ) -> str :
35- """Converts camelCase to snake_case_string using a regex.
36-
37- This regex cannot handle whitespace ("camelString TwoWords")
38- >>>>>>> 42acb4f4 (chore: Merge from main (#1600))
3925 """
4026 return re .sub (r"(?<!^)(?=[A-Z])" , "_" , camel_case_string ).lower ()
4127
You can’t perform that action at this time.
0 commit comments