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 18
18
from typing import Any , Dict , List , Optional
19
19
20
20
21
- < << << << HEAD
22
- < << << << HEAD
23
21
def camel_to_snake (camel_case_string : str ) -> str :
24
22
"""Converts camelCase to snake_case_string using a regex.
25
23
26
24
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))
39
25
"""
40
26
return re .sub (r"(?<!^)(?=[A-Z])" , "_" , camel_case_string ).lower ()
41
27
You can’t perform that action at this time.
0 commit comments