-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgh_data.json
64 lines (64 loc) · 15.6 KB
/
gh_data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[
{
"code": "@@ -342,7 +342,7 @@\nangular.module('coala')\n total_projects = $scope.projectList.length\n angular.forEach($scope.projectList, function (value, key) {\n- if ($scope.currentProject.name == value['name']) {\n+ if ($scope.currentProject.path == value['path']) {\n current_project_index = key\n }\n });\n@@ -366,9 +366,6 @@ angular.module('coala')\n\n $scope.projectRequest = function () {\n\n- var redirectTo = {\n- 'integrate_pyflakes-enhanced_ast_into_coala_': 'integrate_pyflakes-enhanced_ast_into_coala'\n- };\n $scope.projects_url_dict = {}\n $scope.projects_url_list = Object.keys($scope.projects_url_dict);\n angular.forEach($scope.projectList, function (value, key) {\n@@ -378,17 +375,14 @@ angular.module('coala')\n $scope.projects_url_dict[value['url']] = key\n });\n\n- $scope.sortProjects();\n-\n var project_requested = encodeURIComponent($location.search().project);\n if (project_requested) {\n- if (project_requested in redirectTo) {\n- project_requested = redirectTo[project_requested]\n- }\n if (Object.keys($scope.projects_url_dict).indexOf(project_requested) > -1) {\n self.showProject($scope.projectList[$scope.projects_url_dict[project_requested]])\n }\n }\n+\n+ $scope.sortProjects();\n }\n\n var search_requested = $location.search().q;",
"repo": "coala/projects",
"commit_id": "2ce4f8c",
"file": "resources/js/directives/projects.js",
"commit_message": "Fix randomly redirecting issue",
"explanation": "Description: Corrects the redirection behavior when selecting a project in the application.\nReason: To ensure that the correct project is displayed when selected and prevent random redirections.\nChanges: Updated the comparison condition to check the 'path' attribute instead of the 'name' attribute, removed unnecessary redirection mapping, and reorganized the code for clarity.\nImpact: Resolves the issue of random redirections and improves the reliability of project selection functionality."
},
{
"code": "@@ -1,7 +1,7 @@\ndef calculate_area(radius):\n- return 3.14 * radius * radius\n+ return 3.14159265359 * radius * radius",
"repo": "SnazzyBucket11/math-utils",
"commit_id": "b7f6e2a",
"file": "math_utils.py",
"commit_message": "Improve accuracy of circle area calculation",
"explanation": "Description: Enhances the accuracy of the circle area calculation by using a more precise value for pi.\nReason: To provide more accurate results for area calculations and adhere to standard mathematical constants.\nChanges: Updated the value of pi from 3.14 to 3.14159 in the calculation formula.\nImpact: Improves the precision of area calculations, especially for larger radii, leading to more accurate results."
},
{
"code": "@@ -606,37 +606,42 @@\ncdef _TSObject convert_str_to_tsobject(str ts, tzinfo tz,\n # equiv: datetime.today().replace(tzinfo=tz)\n return convert_datetime_to_tsobject(dt, tz, nanos=0, reso=NPY_FR_us)\n else:\n- string_to_dts_failed = string_to_dts(\n- ts, &dts, &out_bestunit, &out_local,\n- &out_tzoffset, False\n- )\n- if not string_to_dts_failed:\n- reso = get_supported_reso(out_bestunit)\n- check_dts_bounds(&dts, reso)\n- obj = _TSObject()\n- obj.dts = dts\n- obj.creso = reso\n- ival = npy_datetimestruct_to_datetime(reso, &dts)\n-\n- if out_local == 1:\n- obj.tzinfo = timezone(timedelta(minutes=out_tzoffset))\n- obj.value = tz_localize_to_utc_single(\n- ival, obj.tzinfo, ambiguous='raise', nonexistent=None, creso=reso\n- )\n- if tz is None:\n- check_overflows(obj, reso)\n- return obj\n- _adjust_tsobject_tz_using_offset(obj, tz)\n- return obj\n- else:\n- if tz is not None:\n- # shift for _localize_tso\n- ival = tz_localize_to_utc_single(\n- ival, tz, ambiguous='raise', nonexistent=None, creso=reso\n+ if not dayfirst: # GH 58859\n+ string_to_dts_failed = string_to_dts(\n+ ts, &dts, &out_bestunit, &out_local,\n+ &out_tzoffset, False\n+ )\n+ if not string_to_dts_failed:\n+ reso = get_supported_reso(out_bestunit)\n+ check_dts_bounds(&dts, reso)\n+ obj = _TSObject()\n+ obj.dts = dts\n+ obj.creso = reso\n+ ival = npy_datetimestruct_to_datetime(reso, &dts)\n+\n+ if out_local == 1:\n+ obj.tzinfo = timezone(timedelta(minutes=out_tzoffset))\n+ obj.value = tz_localize_to_utc_single(\n+ ival,\n+ obj.tzinfo,\n+ ambiguous='raise',\n+ nonexistent=None,\n+ creso=reso,\n )\n- obj.value = ival\n- maybe_localize_tso(obj, tz, obj.creso)\n- return obj\n+ if tz is None:\n+ check_overflows(obj, reso)\n+ return obj\n+ _adjust_tsobject_tz_using_offset(obj, tz)\n+ return obj\n+ else:\n+ if tz is not None:\n+ # shift for _localize_tso\n+ ival = tz_localize_to_utc_single(\n+ ival, tz, ambiguous='raise', nonexistent=None, creso=reso\n+ )\n+ obj.value = ival\n+ maybe_localize_tso(obj, tz, obj.creso)\n+ return obj\n\n dt = parse_datetime_string(\n ts,",
"repo": "pandas-dev/pandas",
"commit_id": "288af5f",
"file": "pandas/_libs/tslibs/conversion.pyx",
"commit_message": "Fix to_datetime not respecting dayfirst",
"explanation": "Description: Corrects the behavior of the conversion function to respect the dayfirst parameter.\nReason: To ensure that the dayfirst parameter is correctly handled when converting strings to datetime objects.\nChanges: Added a conditional check to handle the dayfirst parameter and restructured the code to properly localize the datetime object based on the timezone.\nImpact: Resolves the issue where the dayfirst parameter was not being considered during string-to-datetime conversion, improving the accuracy of datetime localization."
},
{
"code": "@@ -377,32 +377,33 @@\ndef parse_datetime_string_with_reso(\n raise ValueError(f'Given date string '{date_string}' not likely a datetime')\n\n- # Try iso8601 first, as it handles nanoseconds\n- string_to_dts_failed = string_to_dts(\n- date_string, &dts, &out_bestunit, &out_local,\n- &out_tzoffset, False\n- )\n- if not string_to_dts_failed:\n- # Match Timestamp and drop picoseconds, femtoseconds, attoseconds\n- # The new resolution will just be nano\n- # GH#50417\n- if out_bestunit in _timestamp_units:\n- out_bestunit = NPY_DATETIMEUNIT.NPY_FR_ns\n-\n- if out_bestunit == NPY_DATETIMEUNIT.NPY_FR_ns:\n- # TODO: avoid circular import\n- from pandas import Timestamp\n- parsed = Timestamp(date_string)\n- else:\n- if out_local:\n- tz = timezone(timedelta(minutes=out_tzoffset))\n+ if not dayfirst: # GH 58859\n+ string_to_dts_failed = string_to_dts(\n+ date_string, &dts, &out_bestunit, &out_local,\n+ &out_tzoffset, False\n+ )\n+ if not string_to_dts_failed:\n+ # Match Timestamp and drop picoseconds, femtoseconds, attoseconds\n+ # The new resolution will just be nano\n+ # GH#50417\n+ if out_bestunit in _timestamp_units:\n+ out_bestunit = NPY_DATETIMEUNIT.NPY_FR_ns\n+\n+ if out_bestunit == NPY_DATETIMEUNIT.NPY_FR_ns:\n+ # TODO: avoid circular import\n+ from pandas import Timestamp\n+ parsed = Timestamp(date_string)\n else:\n- tz = None\n- parsed = datetime_new(\n- dts.year, dts.month, dts.day, dts.hour, dts.min, dts.sec, dts.us, tz\n- )\n+ if out_local:\n+ tz = timezone(timedelta(minutes=out_tzoffset))\n+ else:\n+ tz = None\n+ parsed = datetime_new(\n+ dts.year, dts.month, dts.day, dts.hour, dts.min, dts.sec, dts.us, tz\n+ )\n\n- reso = npy_unit_to_attrname[out_bestunit]\n- return parsed, reso\n+ reso = npy_unit_to_attrname[out_bestunit]\n+ return parsed, reso\n\n parsed = _parse_delimited_date(date_string, dayfirst, &out_bestunit)\n if parsed is not None:",
"repo": "pandas-dev/pandas",
"commit_id": "288af5f",
"file": "pandas/_libs/tslibs/parsing.pyx",
"commit_message": "Fix to_datetime no respecting dayfirst",
"explanation": "Description: Corrects the behavior of the parse_datetime_string_with_reso function to respect the dayfirst parameter.\nReason: To ensure that the dayfirst parameter is correctly handled when parsing datetime strings with resolution.\nChanges: Added a conditional check to handle the dayfirst parameter and updated the code to properly create datetime objects with the correct timezone information.\nImpact: Resolves the issue where the dayfirst parameter was not being considered during datetime string parsing, leading to incorrect datetime objects and resolutions."
},
{
"code": "@@ -191,7 +191,7 @@\n <li role='separator' class='popover-menu-separator hidden-for-spectators'></li>\n <li role='none' class='popover-menu-list-item link-item'>\n <a role='menuitem' href='{{ pm_with_url }}' class='narrow_to_private_messages popover-menu-link hidden-for-spectators' tabindex='0'>\n- <i class='popover-menu-icon zulip-icon zulip-icon-mail' aria-hidden='true'></i>\n+ <i class='popover-menu-icon zulip-icon zulip-icon-user' aria-hidden='true'></i>\n {{#if is_me}}\n <span class='popover-menu-label'>{{t 'View messages with yourself' }}</span>\n {{else}}",
"repo": "zulip/zulip",
"commit_id": "93e2941",
"file": "web/templates/popovers/mobile_message_buttons_popover.hbs",
"commit_message": "user_card_popover: Replace envelope icon with zulip-icon-user.",
"explanation": "Description: Replaces the envelope icon with a user icon in the user card popover menu.\nReason: To improve the visual representation and consistency of the user card popover menu.\nChanges: Updated the icon class from 'zulip-icon-mail' to 'zulip-icon-user' and adjusted the associated label text.\nImpact: Enhances the user experience by providing a more relevant and intuitive icon for viewing messages with oneself in the user card popover menu."
},
{
"code": "@@ -157,6 +157,10 @@\n color: var(--color-text-search-hover);\n }\n\n+ .typeahead-menu .simplebar-content {\n+ min-width: unset;\n+ }\n\n .typeahead-menu .simplebar-content > li > a {\n max-width: none;\n }",
"repo": "zulip/zulip",
"commit_id": "155f344",
"file": "web/styles/search.css",
"commit_message": "search: Fix search suggestions not wrapping on overflow.",
"explanation": "Description: Fixes the issue where search suggestions were not wrapping when overflowing.\nReason: To ensure that long search suggestions are displayed correctly and do not extend beyond the visible area.\nChanges: Added a CSS rule to unset the minimum width of the typeahead menu content, allowing suggestions to wrap properly.\nImpact: Improves the usability of the search feature by ensuring that all search suggestions are visible and properly formatted."
},
{
"code": "@@ -242,13 +242,12 @@ in-memory database. To override:\n%cozo_open <ENGINE>, <PATH>\n```\n\n-where `<ENGINE>` can now be `'sqlite'`, `'rocksdb'` or `'mem'`.\n+where `<ENGINE>` can now be `'http'`, `'sqlite'`, `'rocksdb'` or `'mem'`.\n\nTo connect to a standalone server, use\n\n```\n-%cozo_host http://<ADDRESS>:<PORT>\n-%cozo_auth <AUTH_STRING>\n+%cozo_open 'http', '', {'host': 'http://127.0.0.1:9070', 'auth': '<AUTH_STRING>'}\n```\n\nwhere `<AUTH_STRING>` is optional if `<ADDRESS>` is a loopback address.",
"repo": "cozodb/pycozo",
"commit_id": "4121229",
"file": "README.md",
"commit_message": "Fix connection to 'http' using ipython magic",
"explanation": "Description: Corrects the connection setup for 'http' engines using the ipython magic command.\nReason: To ensure that the connection to an 'http' engine is properly configured and functional.\nChanges: Updated the available engine options to include 'http' and adjusted the connection command to specify the host and authentication details.\nImpact: Enables users to connect to an 'http' engine using the correct syntax and parameters, facilitating communication with standalone servers."
},
{
"code": "@@ -67,6 +67,8 @@ export const handleDocumentAnalyze = async (\n const verifiedResponse = verifyResponseOfSubmit(response);\n if (!verifiedResponse || !verifiedResponse.results) {\n if (!suppressRateLimitErrors) {\n+ vscode.window.showErrorMessage(CONSTANTS.analyzeCommandTimeoutMessage);\n+ }\n getExtensionEventEmitter().fire({\n type: 'Analysis_Error',\n data: '',\n@@ -77,8 +79,6 @@ export const handleDocumentAnalyze = async (\n name: currentWorkSpaceFolder,\n },\n });\n- vscode.window.showErrorMessage(CONSTANTS.analyzeCommandTimeoutMessage);\n- }\n\n return failedResponseReturn;\n } else if (verifiedResponse.status === 'failed') {\n@@ -121,7 +121,20 @@ export const handleDocumentAnalyze = async (\n\n // convert problem paths to absolute path and normalize them\n const workspaceFolderPath = vscode.workspace.workspaceFolders?.[0].uri.fsPath;\n- if (!workspaceFolderPath) {return failedResponseReturn;}\n+ if (!workspaceFolderPath) {\n+ getExtensionEventEmitter().fire({\n+ type: 'Analysis_Error',\n+ data: '',\n+ });\n+ getExtensionEventEmitter().fire({\n+ type: 'CURRENT_PROJECT',\n+ data: {\n+ name: currentWorkSpaceFolder,\n+ },\n+ });\n+\n+ return failedResponseReturn;\n+ }\n verifiedResponse.results.forEach(result => {\n result.path = path.join(workspaceFolderPath, result.path);\n });",
"repo": "MetabobProject/metabob-vscode",
"commit_message": "fix analyze button remains disabled when analyze fails",
"explanation": "Description: Fixes the issue where the analyze button remained disabled after a failed analysis.\nReason: To ensure that the analyze button is re-enabled and the user is notified of the analysis failure.\nChanges: Added error message notifications and event triggers to handle analysis errors and re-enable the analyze button.\nImpact: Improves the user experience by providing feedback on analysis failures and allowing users to re-trigger the analysis process."
}
]