This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy of original code from https://codeshare.io/2jk6DM + fixed and prettified (but not linted yet) | |
| # Goal: To get top-5 starred repositories from Google GitHub account (https://github.com/google/api) | |
| # | |
| # Result: Printed Python dictionary with top-5 repositories where key is a name of repository and value is count of stars. | |
| # The result should be sorted in descending order | |
| # | |
| # Sample of potential response from github: | |
| # [{ | |
| # "id": 1, | |
| # "repo_name": "google_1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy of original code from https://codeshare.io/2jk6DM + fixed and prettified (but not linted yet) | |
| # Goal: To get top-5 starred repositories from Google GitHub account (https://github.com/google/api) | |
| # | |
| # Result: Printed Python dictionary with top-5 repositories where key is a name of repository and value is count of stars. | |
| # The result should be sorted in descending order | |
| # | |
| # Sample of potential response from github: | |
| # [{ | |
| # "id": 1, | |
| # "repo_name": "google_1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy of original code from https://codeshare.io/2jk6DM + fixed and prettified (but not linted yet) | |
| # Goal: To get top-5 starred repositories from Google GitHub account (https://github.com/google/api) | |
| # | |
| # Result: Printed Python dictionary with top-5 repositories where key is a name of repository and value is count of stars. | |
| # The result should be sorted in descending order | |
| # | |
| # Sample of potential response from github: | |
| # [{ | |
| # "id": 1, | |
| # "repo_name": "google_1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copy of original code from https://codeshare.io/2jk6DM | |
| # Goal: To get top-5 starred repositories from Google GitHub account (https://github.com/google/api) | |
| # | |
| # Result: Printed Python dictionary with top-5 repositories where key is a name of repository and value is count of stars. | |
| # The result should be sorted in descending order | |
| # | |
| # Sample of potential response from github: | |
| # [{ | |
| # "id": 1, | |
| # "repo_name": "google_1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| /** | |
| * @dev Wrappers over Solidity's arithmetic operations with added overflow | |
| * checks. | |
| * | |
| * Arithmetic operations in Solidity wrap on overflow. This can easily result | |
| * in bugs, because programmers usually assume that an overflow raises an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| /** | |
| * @dev Wrappers over Solidity's arithmetic operations with added overflow | |
| * checks. | |
| * | |
| * Arithmetic operations in Solidity wrap on overflow. This can easily result | |
| * in bugs, because programmers usually assume that an overflow raises an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| /** | |
| * @dev Wrappers over Solidity's arithmetic operations with added overflow | |
| * checks. | |
| * | |
| * Arithmetic operations in Solidity wrap on overflow. This can easily result | |
| * in bugs, because programmers usually assume that an overflow raises an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.0; | |
| /** | |
| * @dev Wrappers over Solidity's arithmetic operations with added overflow | |
| * checks. | |
| * | |
| * Arithmetic operations in Solidity wrap on overflow. This can easily result | |
| * in bugs, because programmers usually assume that an overflow raises an |