internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: python/python-docs-es

Issue:
Translate 'library/os.po'
This needs to reach 100% translated.

The rendered version of this file will be available at https://docs.python.org/es/3.10/library/os.html once translated.
Meanwhile, the English version is shown.

Current stats for `library/os.po`:

* Fuzzy: 27
* Percent translated: 94.8%
* Entries: 804 / 848
* Untranslated: 44

Please, comment here if you want this file to be assigned to you and an member will assign it to you as soon as possible, so you can start working on it.

Remember to follow the steps in our [Contributing Guide](https://python-docs-es.readthedocs.io/page/CONTRIBUTING.html).


Discussion:

Resolving patch:
diff --git a/scripts/translate.py b/scripts/translate.py
--- a/scripts/translate.py
+++ b/scripts/translate.py
@@ -44,6 +44,8 @@
     ":RFC:`[^`]+`",
     ":rfc:`[^`]+`",
     ":doc:`[^`]+`",
+    ":manpage:`[^`]+`",
+    ":sup:`[^`]+`",
     "``[^`]+``",
     "`[^`]+`__",
     "`[^`]+`_",


Test patch:
Repository: python/python-docs-es

Issue:
Translate 'using/unix.po'
This needs to reach 100% translated.

The rendered version of this file will be available at https://docs.python.org/es/3.10/using/unix.html once translated.
Meanwhile, the English version is shown.

Current stats for `using/unix.po`:

* Fuzzy: 1
* Percent translated: 88.9%
* Entries: 40 / 45
* Untranslated: 5

Please, comment here if you want this file to be assigned to you and an member will assign it to you as soon as possible, so you can start working on it.

Remember to follow the steps in our [Contributing Guide](https://python-docs-es.readthedocs.io/page/CONTRIBUTING.html).


Discussion:
Please assign me :)
todo tuyo :tada:
@macagua te puedo ayudar con algo?
tomando esta issue por inactividad, recuerda que puedes buscar issues abiertas sin problema cuando tengas tiempo!

Resolving patch:
diff --git a/scripts/translate.py b/scripts/translate.py
--- a/scripts/translate.py
+++ b/scripts/translate.py
@@ -44,6 +44,7 @@
     ":RFC:`[^`]+`",
     ":rfc:`[^`]+`",
     ":doc:`[^`]+`",
+    ":source:`[^`]+`",
     ":manpage:`[^`]+`",
     ":sup:`[^`]+`",
     "``[^`]+``",


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Add 'properties' property to conversationAccount
See https://github.com/microsoft/botbuilder-js/pull/999

**Additional context**
This is not in the swagger file, but exists in both dotnet and javascript.  This should exist in Python as well.

[enhancement]



Discussion:

Resolving patch:
diff --git a/libraries/botbuilder-schema/botbuilder/schema/_models_py3.py b/libraries/botbuilder-schema/botbuilder/schema/_models_py3.py
--- a/libraries/botbuilder-schema/botbuilder/schema/_models_py3.py
+++ b/libraries/botbuilder-schema/botbuilder/schema/_models_py3.py
@@ -763,6 +763,8 @@ class ConversationAccount(Model):
     :type role: str or ~botframework.connector.models.RoleTypes
     :param tenant_id: This conversation's tenant ID
     :type tenant_id: str
+    :param properties: This conversation's properties
+    :type properties: object
     """
 
     _attribute_map = {
@@ -773,6 +775,7 @@ class ConversationAccount(Model):
         "aad_object_id": {"key": "aadObjectId", "type": "str"},
         "role": {"key": "role", "type": "str"},
         "tenant_id": {"key": "tenantID", "type": "str"},
+        "properties": {"key": "properties", "type": "object"},
     }
 
     def __init__(
@@ -785,6 +788,7 @@ def __init__(
         aad_object_id: str = None,
         role=None,
         tenant_id=None,
+        properties=None,
         **kwargs
     ) -> None:
         super(ConversationAccount, self).__init__(**kwargs)
@@ -795,6 +799,7 @@ def __init__(
         self.aad_object_id = aad_object_id
         self.role = role
         self.tenant_id = tenant_id
+        self.properties = properties
 
 
 class ConversationMembers(Model):


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Minor differences in what's displayed after user response 45.state-management bot
## Version
v4.50b4

## Describe the bug
There's a minor difference in what's displayed after the user responds to the bot. The javascript_nodejs bot exhibits the same behavior (see [issue 1718](https://github.com/microsoft/BotBuilder-Samples/issues/1718) for more information).

## To Reproduce
Run bot per README.md instructions
1. go to bot's folder
2. run `python install -r requirement.txt`, then run `python app.py`
3. open in Emulator

The csharp_dotnet and javascript_nodejs bots were also run via CLI. 

## Expected behavior
Bot should look and function just like bots in other languages (specifically csharp_dotnet bot since there are currently issues with javascript_nodejs sample). 

## Screenshots
**charp_dotnetcore bot**: Bot responds with, "Thanks <string_user_responded_with. To see conversation data, type anything." after user's second response. Also welcomes users. This is IMHO the best version/gold standard for the sample currently. 
![45-csharp](https://user-images.githubusercontent.com/9682548/63467941-73f35a00-c41b-11e9-901f-9151a894317f.png)

**Python bot**: Bot responds with, "Thanks <string_user_responded_with." after user's second response. Also welcomes user.
![45-python](https://user-images.githubusercontent.com/9682548/63467950-78b80e00-c41b-11e9-9e2c-a6651e3247ec.png)

**javascript_nodejs bot**: Bot responds with, "Thanks <string_user_responded_with." after user's second response. Does not welcome user (addressed in [issue 1718](https://github.com/microsoft/BotBuilder-Samples/issues/1718)).
![45 -javascript](https://user-images.githubusercontent.com/9682548/63467957-7d7cc200-c41b-11e9-9c11-f5495d3bfa25.png)


## Additional context
To fix: Add **"To see conversation data, type anything."** to the string in **line 62** in 45.state-management/bots/state_management_bot.py



Discussion:

Resolving patch:
diff --git a/samples/45.state-management/bots/state_management_bot.py b/samples/45.state-management/bots/state_management_bot.py
--- a/samples/45.state-management/bots/state_management_bot.py
+++ b/samples/45.state-management/bots/state_management_bot.py
@@ -59,7 +59,9 @@ async def on_message_activity(self, turn_context: TurnContext):
                 user_profile.name = turn_context.activity.text
 
                 # Acknowledge that we got their name.
-                await turn_context.send_activity(f"Thanks { user_profile.name }.")
+                await turn_context.send_activity(
+                    f"Thanks { user_profile.name }. To see conversation data, type anything."
+                )
 
                 # Reset the flag to allow the bot to go though the cycle again.
                 conversation_data.prompted_for_user_name = False


Test patch:
Repository: microsoft/botbuilder-python

Issue:
LuisRecognizer is missing use of interface 
## Version
What package version of the SDK are you using.

## Describe the bug
Give a clear and concise description of what the bug is.

## To Reproduce
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Expected behavior
Give a clear and concise description of what you expected to happen.

## Screenshots
If applicable, add screenshots to help explain your problem.

## Additional context
Add any other context about the problem here.

[bug]



Discussion:
Created PR #255 as a fix for this. 

Can move interface to where ever preferred if there is any feedback. 

This item is of particular need when trying to build out a bot that can be tested with a Mock Recognizer 

Resolving patch:
diff --git a/libraries/botbuilder-ai/botbuilder/ai/luis/luis_recognizer.py b/libraries/botbuilder-ai/botbuilder/ai/luis/luis_recognizer.py
--- a/libraries/botbuilder-ai/botbuilder/ai/luis/luis_recognizer.py
+++ b/libraries/botbuilder-ai/botbuilder/ai/luis/luis_recognizer.py
@@ -8,7 +8,13 @@
 from azure.cognitiveservices.language.luis.runtime.models import LuisResult
 from msrest.authentication import CognitiveServicesCredentials
 
-from botbuilder.core import BotAssert, IntentScore, RecognizerResult, TurnContext
+from botbuilder.core import (
+    BotAssert,
+    IntentScore,
+    Recognizer,
+    RecognizerResult,
+    TurnContext,
+)
 from botbuilder.schema import ActivityTypes
 
 from . import LuisApplication, LuisPredictionOptions, LuisTelemetryConstants
@@ -16,7 +22,7 @@
 from .luis_util import LuisUtil
 
 
-class LuisRecognizer:
+class LuisRecognizer(Recognizer):
     """
     A LUIS based implementation of <see cref="IRecognizer"/>.
     """
@@ -95,7 +101,7 @@ def top_intent(
 
         return top_intent or default_intent
 
-    async def recognize(
+    async def recognize(  # pylint: disable=arguments-differ
         self,
         turn_context: TurnContext,
         telemetry_properties: Dict[str, str] = None,
diff --git a/libraries/botbuilder-core/botbuilder/core/recognizer.py b/libraries/botbuilder-core/botbuilder/core/recognizer.py
--- a/libraries/botbuilder-core/botbuilder/core/recognizer.py
+++ b/libraries/botbuilder-core/botbuilder/core/recognizer.py
@@ -1,12 +1,12 @@
 # Copyright (c) Microsoft Corporation. All rights reserved.
 # Licensed under the MIT License.
 
-from abc import ABC
+from abc import ABC, abstractmethod
 from .turn_context import TurnContext
 from .recognizer_result import RecognizerResult
 
 
 class Recognizer(ABC):
-    @staticmethod
-    async def recognize(turn_context: TurnContext) -> RecognizerResult:
+    @abstractmethod
+    async def recognize(self, turn_context: TurnContext) -> RecognizerResult:
         raise NotImplementedError()


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Fix session injection message from msrest
Support session injection in MicrosoftAppCredentials fixing the warning of: Your credentials class does not support session injection. Performance will not be at the maximum.


Discussion:

Resolving patch:
diff --git a/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py b/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py
--- a/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py
+++ b/libraries/botframework-connector/botframework/connector/auth/microsoft_app_credentials.py
@@ -3,8 +3,9 @@
 
 from datetime import datetime, timedelta
 from urllib.parse import urlparse
-from msrest.authentication import BasicTokenAuthentication, Authentication
 import requests
+
+from msrest.authentication import Authentication
 from .constants import Constants
 
 # TODO: Decide to move this to Constants or viceversa (when porting OAuth)
@@ -82,20 +83,25 @@ def __init__(self, app_id: str, password: str, channel_auth_tenant: str = None):
         self.oauth_scope = AUTH_SETTINGS["refreshScope"]
         self.token_cache_key = app_id + "-cache"
 
-    def signed_session(self) -> requests.Session:  # pylint: disable=arguments-differ
+    # pylint: disable=arguments-differ
+    def signed_session(self, session: requests.Session = None) -> requests.Session:
         """
         Gets the signed session.
         :returns: Signed requests.Session object
         """
-        auth_token = self.get_access_token()
-
-        basic_authentication = BasicTokenAuthentication({"access_token": auth_token})
-        session = basic_authentication.signed_session()
+        if not session:
+            session = requests.Session()
 
         # If there is no microsoft_app_id and no self.microsoft_app_password, then there shouldn't
         # be an "Authorization" header on the outgoing activity.
         if not self.microsoft_app_id and not self.microsoft_app_password:
-            del session.headers["Authorization"]
+            session.headers.pop("Authorization", None)
+
+        elif not session.headers.get("Authorization"):
+            auth_token = self.get_access_token()
+            header = "{} {}".format("Bearer", auth_token)
+            session.headers["Authorization"] = header
+
         return session
 
     def get_access_token(self, force_refresh: bool = False) -> str:


Test patch:
Repository: microsoft/botbuilder-python

Issue:
ChoiceFactory.for_channel could erroneously return a List instead of an Activity
Found in 4.5b5.

ChoiceFactory.for_channel could return a List instead of the expected Activity when the type should have defaulted to a list style.

[bug]



Discussion:

Resolving patch:
diff --git a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py b/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
--- a/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
+++ b/libraries/botbuilder-dialogs/botbuilder/dialogs/choices/choice_factory.py
@@ -69,7 +69,7 @@ def for_channel(
             # If the titles are short and there are 3 or less choices we'll use an inline list.
             return ChoiceFactory.inline(choices, text, speak, options)
         # Show a numbered list.
-        return [choices, text, speak, options]
+        return ChoiceFactory.list_style(choices, text, speak, options)
 
     @staticmethod
     def inline(


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Bug in 45.state-management sample

To create the user profile property  , it should refer the UserState but in the sample its referring the  
conversationstate.

Current code : self.user_profile = self.conversation_state.create_property("UserProfile")

Expected code  : self.user_profile = self.user_state.create_property("UserProfile")


Discussion:
Thanks!  Pushing a fix to master shortly.

Resolving patch:
diff --git a/samples/45.state-management/bots/state_management_bot.py b/samples/45.state-management/bots/state_management_bot.py
--- a/samples/45.state-management/bots/state_management_bot.py
+++ b/samples/45.state-management/bots/state_management_bot.py
@@ -2,7 +2,6 @@
 # Licensed under the MIT License.
 
 import time
-import pytz
 from datetime import datetime
 
 from botbuilder.core import ActivityHandler, ConversationState, TurnContext, UserState
@@ -25,10 +24,10 @@ def __init__(self, conversation_state: ConversationState, user_state: UserState)
         self.conversation_state = conversation_state
         self.user_state = user_state
 
-        self.conversation_data = self.conversation_state.create_property(
+        self.conversation_data_accessor = self.conversation_state.create_property(
             "ConversationData"
         )
-        self.user_profile = self.conversation_state.create_property("UserProfile")
+        self.user_profile_accessor = self.user_state.create_property("UserProfile")
 
     async def on_turn(self, turn_context: TurnContext):
         await super().on_turn(turn_context)
@@ -47,8 +46,8 @@ async def on_members_added_activity(
 
     async def on_message_activity(self, turn_context: TurnContext):
         # Get the state properties from the turn context.
-        user_profile = await self.user_profile.get(turn_context, UserProfile)
-        conversation_data = await self.conversation_data.get(
+        user_profile = await self.user_profile_accessor.get(turn_context, UserProfile)
+        conversation_data = await self.conversation_data_accessor.get(
             turn_context, ConversationData
         )
 


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Channel returns 401 on ContinueConversationAsync calls
## Version
4.7.0

## Describe the bug
See https://github.com/microsoft/botbuilder-dotnet/issues/3245 for details on the issue.

## To Reproduce
Python uses different caching mechanisms than C#, we need to test and see if we can repro the issue here.


Discussion:

Resolving patch:
diff --git a/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py b/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py
--- a/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py
+++ b/libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py
@@ -222,6 +222,9 @@ async def continue_conversation(
         context = TurnContext(self, get_continuation_activity(reference))
         context.turn_state[BOT_IDENTITY_KEY] = claims_identity
         context.turn_state["BotCallbackHandler"] = callback
+        await self._ensure_channel_connector_client_is_created(
+            reference.service_url, claims_identity
+        )
         return await self.run_pipeline(context, callback)
 
     async def create_conversation(
@@ -965,3 +968,31 @@ def check_emulating_oauth_cards(self, context: TurnContext):
             )
         ):
             self._is_emulating_oauth_cards = True
+
+    async def _ensure_channel_connector_client_is_created(
+        self, service_url: str, claims_identity: ClaimsIdentity
+    ):
+        # Ensure we have a default ConnectorClient and MSAppCredentials instance for the audience.
+        audience = claims_identity.claims.get(AuthenticationConstants.AUDIENCE_CLAIM)
+
+        if (
+            not audience
+            or AuthenticationConstants.TO_BOT_FROM_CHANNEL_TOKEN_ISSUER != audience
+        ):
+            # We create a default connector for audiences that are not coming from
+            # the default https://api.botframework.com audience.
+            # We create a default claim that contains only the desired audience.
+            default_connector_claims = {
+                AuthenticationConstants.AUDIENCE_CLAIM: audience
+            }
+            connector_claims_identity = ClaimsIdentity(
+                claims=default_connector_claims, is_authenticated=True
+            )
+
+            await self.create_connector_client(service_url, connector_claims_identity)
+
+        if SkillValidation.is_skill_claim(claims_identity.claims):
+            # Add the channel service URL to the trusted services list so we can send messages back.
+            # the service URL for skills is trusted because it is applied by the
+            # SkillHandler based on the original request received by the root bot
+            MicrosoftAppCredentials.trust_service_url(service_url)


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Consolidate serialization helpers to be static and shared
In the teams_helper there are 2 serialization helper methods. Currently they both create a big dict of all the Model objects that exist in Teams and BF. We should make the optimization to make the big dict once, and update the 2 helpers to use the new dict.


Discussion:
@virtual-josh, please drive to closure. Add better description. 

Resolving patch:
diff --git a/libraries/botbuilder-core/botbuilder/core/teams/teams_helper.py b/libraries/botbuilder-core/botbuilder/core/teams/teams_helper.py
--- a/libraries/botbuilder-core/botbuilder/core/teams/teams_helper.py
+++ b/libraries/botbuilder-core/botbuilder/core/teams/teams_helper.py
@@ -10,23 +10,21 @@
 import botbuilder.schema as schema
 import botbuilder.schema.teams as teams_schema
 
-# Optimization: The dependencies dictionary could be cached here,
-# and shared between the two methods.
+DEPENDICIES = [
+    schema_cls
+    for key, schema_cls in getmembers(schema)
+    if isinstance(schema_cls, type) and issubclass(schema_cls, (Model, Enum))
+]
+DEPENDICIES += [
+    schema_cls
+    for key, schema_cls in getmembers(teams_schema)
+    if isinstance(schema_cls, type) and issubclass(schema_cls, (Model, Enum))
+]
+DEPENDICIES_DICT = {dependency.__name__: dependency for dependency in DEPENDICIES}
 
 
 def deserializer_helper(msrest_cls: Type[Model], dict_to_deserialize: dict) -> Model:
-    dependencies = [
-        schema_cls
-        for key, schema_cls in getmembers(schema)
-        if isinstance(schema_cls, type) and issubclass(schema_cls, (Model, Enum))
-    ]
-    dependencies += [
-        schema_cls
-        for key, schema_cls in getmembers(teams_schema)
-        if isinstance(schema_cls, type) and issubclass(schema_cls, (Model, Enum))
-    ]
-    dependencies_dict = {dependency.__name__: dependency for dependency in dependencies}
-    deserializer = Deserializer(dependencies_dict)
+    deserializer = Deserializer(DEPENDICIES_DICT)
     return deserializer(msrest_cls.__name__, dict_to_deserialize)
 
 
@@ -34,17 +32,6 @@ def serializer_helper(object_to_serialize: Model) -> dict:
     if object_to_serialize is None:
         return None
 
-    dependencies = [
-        schema_cls
-        for key, schema_cls in getmembers(schema)
-        if isinstance(schema_cls, type) and issubclass(schema_cls, (Model, Enum))
-    ]
-    dependencies += [
-        schema_cls
-        for key, schema_cls in getmembers(teams_schema)
-        if isinstance(schema_cls, type) and issubclass(schema_cls, (Model, Enum))
-    ]
-    dependencies_dict = {dependency.__name__: dependency for dependency in dependencies}
-    serializer = Serializer(dependencies_dict)
+    serializer = Serializer(DEPENDICIES_DICT)
     # pylint: disable=protected-access
     return serializer._serialize(object_to_serialize)


Test patch:
Repository: microsoft/botbuilder-python

Issue:
Fix versioning on dependencies
Fix dependency package versions to be consistent with the rest of the libraries


Discussion:

Resolving patch:
diff --git a/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py b/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py
--- a/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py
+++ b/libraries/botbuilder-integration-applicationinsights-aiohttp/setup.py
@@ -6,14 +6,14 @@
 
 REQUIRES = [
     "applicationinsights>=0.11.9",
-    "botbuilder-schema>=4.4.0b1",
-    "botframework-connector>=4.4.0b1",
-    "botbuilder-core>=4.4.0b1",
-    "botbuilder-applicationinsights>=4.4.0b1",
+    "aiohttp==3.6.2",
+    "botbuilder-schema>=4.7.1",
+    "botframework-connector>=4.7.1",
+    "botbuilder-core>=4.7.1",
+    "botbuilder-applicationinsights>=4.7.1",
 ]
 TESTS_REQUIRES = [
     "aiounittest==1.3.0",
-    "aiohttp==3.5.4",
 ]
 
 root = os.path.abspath(os.path.dirname(__file__))


Test patch: