MCPcopy Create free account

hub / github.com/ProjectUnifree/unifree / functions

Functions205 in github.com/ProjectUnifree/unifree

↓ 10 callersFunction_normalize_definition
(s: str)
tests/test_csharp_migration_strategies.py:310
↓ 9 callersMethodcreate_destination_file_path
(self, extension: str)
unifree/csharp_migration_strategies.py:98
↓ 9 callersFunctionto_default_dict
(d)
unifree/utils.py:69
↓ 7 callersFunction_load_file_migration_spec
(source_file_name: str)
tests/test_csharp_migration_strategies.py:289
↓ 7 callersMethodtranslate_code
(self, code: str, prompt_type: str, system: str, extractor_fn: Callable[[str], ResultType])
unifree/csharp_migration_strategies.py:166
↓ 4 callersMethodcount_tokens
Count number of tokens for the given source text :param source_text: Text to count tokens in :return: Number of tokens
unifree/__init__.py:89
↓ 4 callersMethodcreate_prompt
(self, prompt_type: str, replacements: Dict[str, str])
unifree/csharp_migration_strategies.py:175
↓ 4 callersMethodfits_in_one_prompt
Check if the given token count fits into one prompt :param token_count: Token count to check :return: True if this token coun
unifree/__init__.py:81
↓ 3 callersMethod_to_user_prompt
(self, user: str)
unifree/llms/huggingface_llm.py:74
↓ 3 callersFunctionload_llm
(config: Dict)
unifree/utils.py:53
↓ 3 callersMethodmaybe_convert_tabs_and_spaces
(self, source: str)
unifree/csharp_migration_strategies.py:121
↓ 3 callersMethodsave_content
(self, content: str, target_file_path: str)
unifree/csharp_migration_strategies.py:132
↓ 2 callersMethod__init__
( self, source_path: str, destination_path: str, config: Dict,
unifree/project_migration_strategies.py:32
↓ 2 callersMethod__init__
(self, file_migration_spec: FileMigrationSpec, config: Dict)
unifree/csharp_migration_strategies.py:151
↓ 2 callersMethod_c_sharp_library_path
(cls)
unifree/source_code_parsers.py:67
↓ 2 callersFunction_setup_test_config
(target)
tests/test_csharp_migration_strategies.py:314
↓ 2 callersMethod_upsert_translations
(self, translations: Iterable[KnownTranslation])
unifree/known_translations_db.py:139
↓ 2 callersMethodcreate_code_prompt
(self, prompt_type: str, code: str)
unifree/csharp_migration_strategies.py:172
↓ 2 callersMethodexecute
(self)
tests/test_csharp_migration_strategies.py:17
↓ 2 callersMethodexecute
(self)
unifree/project_migration_strategies.py:58
↓ 2 callersMethodfetch_nearest_as_query_history
(self, query: str, count: Optional[int] = None)
unifree/known_translations_db.py:49
↓ 2 callersMethodfetch_nearest_known_translations
(self, query: str, count: Optional[int] = None)
unifree/known_translations_db.py:73
↓ 2 callersMethodinitialize
(self)
tests/test_csharp_migration_strategies.py:253
↓ 2 callersMethodinitialize
Initialize the LLM
unifree/__init__.py:75
↓ 2 callersMethodinitialize
(self)
unifree/llms/multiprocess_local_llm.py:42
↓ 2 callersMethodis_instance_initialized
(cls)
unifree/known_translations_db.py:169
↓ 2 callersMethodmap_concurrently
(self, fn, iterables, **tqdm_kwargs)
unifree/project_migration_strategies.py:21
↓ 2 callersMethodquery
Query LLM with the provided input. :param user: The actual query. :param system: "System" query. Some LLMs support ins
unifree/__init__.py:63
↓ 1 callersMethod_check_if_source_is_unity_project
(self)
unifree/project_migration_strategies.py:142
↓ 1 callersMethod_create_migration_strategy
(self, strategy_name: str, spec: FileMigrationSpec)
unifree/project_migration_strategies.py:127
↓ 1 callersMethod_create_sentence_transformer
(self, translations_config: Dict)
unifree/known_translations_db.py:118
↓ 1 callersMethod_initialize_shared_objects
(self)
unifree/project_migration_strategies.py:135
↓ 1 callersFunction_load_source_file
(source_file_name: str)
tests/test_csharp_migration_strategies.py:303
↓ 1 callersMethod_load_source_file_paths
(self)
unifree/project_migration_strategies.py:88
↓ 1 callersMethod_replace_macros_with_comments
(self, source_str)
unifree/source_code_parsers.py:71
↓ 1 callersMethod_upsert_translations_from_yaml
(self, target_engine: str)
unifree/known_translations_db.py:123
↓ 1 callersMethodappWillOpenUrl
(string url)
tests/resources/LongClassWithNamespace.cs:332
↓ 1 callersMethodcount_tokens
(self, source_text: str)
unifree/llms/multiprocess_local_llm.py:69
↓ 1 callersMethodcount_tokens
(self, source_text: str)
unifree/llms/chatgpt_llm.py:89
↓ 1 callersMethodexecute
(self)
unifree/project_migration_strategies.py:158
↓ 1 callersFunctionextract_first_source_code
Parse response and find the first occurrence of text separated with `code_delimiter` :param response: Response from the model :par
unifree/llms/code_extrators.py:9
↓ 1 callersFunctionextract_header_implementation
This is a hacky attempt to parse ChatGPT response that contain both header an implementation. Sometimes the result would be something like:
unifree/llms/code_extrators.py:31
↓ 1 callersMethodfits_in_one_prompt
(self, token_count: int)
unifree/llms/multiprocess_local_llm.py:65
↓ 1 callersFunctionget_or_create_global_instance
(name: str, new_instance_creator: Callable[[], InstanceType])
unifree/utils.py:88
↓ 1 callersMethodinitialize
(self)
unifree/known_translations_db.py:96
↓ 1 callersMethodinitialize
(cls)
unifree/source_code_parsers.py:27
↓ 1 callersMethodinitialize_instance
(cls, config: Dict)
unifree/known_translations_db.py:173
↓ 1 callersMethodinstance
(cls)
unifree/known_translations_db.py:162
↓ 1 callersMethodis_success
(self)
unifree/llms/multiprocess_local_llm.py:105
↓ 1 callersFunctionload_class
(class_name: str, module: str)
unifree/utils.py:42
↓ 1 callersMethodload_llm
Load target LLM. Please note: this method is separate for unit tests to be able to override it :return: Newly loaded LLM
unifree/csharp_migration_strategies.py:202
↓ 1 callersMethodload_translation_history
Load translation history that is relevant to the given bit of translated code. :param code: Code that will be translated
unifree/csharp_migration_strategies.py:186
↓ 1 callersMethodmaybe_initialize_shared_executor
(cls, config: Dict)
unifree/llms/multiprocess_local_llm.py:74
↓ 1 callersFunctionmigrate
()
unifree/free.py:73
↓ 1 callersMethodmigrations
(self)
unifree/project_migration_strategies.py:55
↓ 1 callersMethodparse
(self, file_path: str)
unifree/source_code_parsers.py:41
↓ 1 callersMethodquery
(self, user: str, system: Optional[str] = None, history: Optional[List[QueryHistoryItem]] = None)
tests/test_csharp_migration_strategies.py:243
↓ 1 callersMethodquery
(self, user: str, system: Optional[str] = None, history: Optional[List[QueryHistoryItem]] = None)
unifree/llms/multiprocess_local_llm.py:48
↓ 1 callersMethodreplace_spaces_with_tabs
(s: str)
unifree/csharp_migration_strategies.py:144
↓ 1 callersMethodreplace_tabs_with_spaces
(s: str)
unifree/csharp_migration_strategies.py:140
↓ 1 callersFunctionrun_migration
( config: str, source: str, destination: str, llm_secret_key: Optional[str] =
unifree/free.py:16
↓ 1 callersMethodstart
(AdjustConfig adjustConfig)
tests/resources/LongClassWithNamespace.cs:168
MethodAdjustAdRevenue
(string source)
tests/resources/ShortClassNoNamespace.cs:17
MethodAdjustAdRevenue
(string source)
tests/resources/ShortClassWithNamespace.cs:18
MethodAwake
()
tests/resources/LongClassWithNamespace.cs:91
MethodGetAuthorizationStatus
(string authorizationStatus)
tests/resources/LongClassWithNamespace.cs:1124
MethodGetNativeAttribution
(string attributionData)
tests/resources/LongClassWithNamespace.cs:942
MethodGetNativeConversionValueUpdated
(string conversionValue)
tests/resources/LongClassWithNamespace.cs:1043
MethodGetNativeDeferredDeeplink
(string deeplinkURL)
tests/resources/LongClassWithNamespace.cs:1027
MethodGetNativeEventFailure
(string eventFailureData)
tests/resources/LongClassWithNamespace.cs:976
MethodGetNativeEventSuccess
(string eventSuccessData)
tests/resources/LongClassWithNamespace.cs:959
MethodGetNativeSessionFailure
(string sessionFailureData)
tests/resources/LongClassWithNamespace.cs:1010
MethodGetNativeSessionSuccess
(string sessionSuccessData)
tests/resources/LongClassWithNamespace.cs:993
MethodGetNativeSkad4CompletionDelegate
(string message)
tests/resources/LongClassWithNamespace.cs:1105
MethodGetNativeSkad4ConversionValueUpdated
(string conversionValueUpdate)
tests/resources/LongClassWithNamespace.cs:1066
MethodGetNativeSkadCompletionDelegate
(string message)
tests/resources/LongClassWithNamespace.cs:1086
MethodGetNativeVerificationInfo
(string verificationInfoData)
tests/resources/LongClassWithNamespace.cs:1144
MethodIsEditor
()
tests/resources/LongClassWithNamespace.cs:1162
MethodOnApplicationPause
(bool pauseStatus)
tests/resources/LongClassWithNamespace.cs:136
MethodSetTestOptions
(Dictionary<string, string> testOptions)
tests/resources/LongClassWithNamespace.cs:1172
Method__init__
(self, config: Dict)
unifree/project_migration_strategies.py:18
Method__init__
(self, strategies: List[MigrationStrategy], config: Dict)
unifree/project_migration_strategies.py:153
Method__init__
(self, config: Dict)
unifree/__init__.py:27
Method__init__
(self, config: Dict)
unifree/__init__.py:59
Method__init__
(self, config: Dict)
unifree/known_translations_db.py:43
Method__init__
(self, config: Dict)
unifree/source_code_parsers.py:19
Method__init__
(self, file_migration_spec: FileMigrationSpec, config: Dict)
unifree/csharp_migration_strategies.py:26
Method__init__
(self, file_migration_spec: FileMigrationSpec, destination: Dict)
unifree/csharp_migration_strategies.py:214
Method__init__
(self, config: Dict)
unifree/llms/huggingface_llm.py:27
Method__init__
(self, config: Dict)
unifree/llms/multiprocess_local_llm.py:37
Method__init__
(self, config: Dict)
unifree/llms/trivial_llm.py:24
Method__init__
(self, config: Dict)
unifree/llms/chatgpt_llm.py:31
Method__str__
(self)
unifree/csharp_migration_strategies.py:253
Method__str__
(self)
unifree/csharp_migration_strategies.py:305
Method_execute_strategy
(self, strategy: MigrationStrategy)
unifree/project_migration_strategies.py:180
Method_map_file_path_to_migration
(self, file_path: str)
unifree/project_migration_strategies.py:109
Function_multi_process_worker_init
(config: Dict)
unifree/llms/multiprocess_local_llm.py:112
Function_multi_process_worker_translate
(query: _QueryRequest)
unifree/llms/multiprocess_local_llm.py:123
Function_return_none
()
unifree/utils.py:78
Method_upsert_translations_from_yaml
(self, language: str)
tests/test_known_translations_db.py:13
next →1–100 of 205, ranked by callers