jiebi/CodeConvo huggingface dataset:
Code change:
Similar to how the tilde we learned about in the last challenge allows npm to install the latest PATCH for a dependency, the caret (`^`) allows npm to install future updates as well. The difference is that the caret will allow both MINOR updates and PATCHes. <del> Your current version of `@freecodecamp/example` should be "~1.2.13" which allows npm to install to the latest 1.2.x version. If you were to use the caret (^) as a version prefix instead, npm would be allowed to update to any 1.x.x version. </del> <ins> Your current version of `@freecodecamp/example` should be `~1.2.13` which allows npm to install to the latest `1.2.x` version. If you were to use the caret (^) as a version prefix instead, npm would be allowed to update to any `1.x.x` version. </ins> ```json "package": "^1.3.8" ``` <del> This would allow updates to any 1.x.x version of the package. </del> <ins> This would allow updates to any `1.x.x` version of the package. </ins> # --instructions--

Related discussion:
text: In RTL, these texts will be broken, because they are a mix of special character, numbers, which follow different direction in RTL than LTR. ~1.2.13 1.2.x 1.x.x To fix these, add code elements around the version number. File: change to there are multiple instances in these files All of them should be wrapped in code elements Speaking of weird interactions. Using special characters that relay on direction will break in RTL, because it will be reverted, in example. will be we can wrap in
I want to contribute towards this issue. Can you assign this issue to me.
The first comprehensive PR created will be reviewed and merged. We typically do not assign issues to anyone other than long-time contributors. If you would like to contribute, and have not read the contributors docs, please do so here: If you have any issues with contributing, be sure to join us on the , or on the
Code change:
"Here are the <a href='http://en.wikipedia.org/wiki/User_story' target='_blank'>user stories</a> you must enable, and optional bonus user stories:", "<span class='text-info'>User Story:</span> As a user, I can access all of the portfolio webpage's content just by scrolling.", "<span class='text-info'>User Story:</span> As a user, I can click different buttons that will take me to the portfolio creator's different social media pages.", <del> "<span class='text-info'>User Story:</span> As a user, I can see thumbnail images of different projects the portfolio creator has built (if you don't haven't built any websites before, use placeholders.)", </del> <ins> "<span class='text-info'>User Story:</span> As a user, I can see thumbnail images of different projects the portfolio creator has built (if you haven't built any websites before, use placeholders.)", </ins> "<span class='text-info'>Bonus User Story:</span> As a user, I navigate to different sections of the webpage by clicking buttons in the navigation.", "Don't worry if you don't have anything to showcase on your portfolio yet - you will build several several apps on the next few CodePen challenges, and can come back and update your portfolio later.", "There are many great portfolio templates out there, but for this challenge, you'll need to build a portfolio page yourself. Using Bootstrap will make this much easier for you.",

Related discussion:
text: Challenge has a minor typo. Step 8 reads "[...] if you don't haven't built any websites before [...]" when it should simply read "[...] if you haven't built any websites before [...]". Additionally, the code styling from step 12 appears to be bleeding over into steps 13 - 16, so the text for those steps is improperly styled. !
Code change:
max-height: 100%; font-size: 27px; white-space: normal; <ins> width: 100%; </ins> } .default-layout {

Related discussion:
text: There is a difference in the font size and the margin between the text , on the home page () and the learn page (). Although you may not notice it on first glance but it disturbs the UI. The "sign in and get started" button on home page is also wider than the "sign in to save your progress button" on /learn page.
Hi Could you add some screenshots that demonstrate the problem you're describing?
Here are two screenshots from the landing and the /learn tab, before you're logged in. ! ! There is a difference with the button width being stretched to fit the container in the landing page, but not on the /learn page. There is a minor difference in the margin right below the 'Welcome' Header between the two pages.
I was talking about the change in margin between "Welcome to " and "Learn to code." on the lading page and the /learn page , and the width of the yellow Button on the two pages , as you can see in the screenshots shared by
Thanks for clarifying, and I'll open this up for PRs.
Implemented some changes. Please see screenshots <img width="1280" alt="Screenshot 2020-01-19 at 09 59 13" src="https://user-"<img width="1280" alt="Screenshot 2020-01-19 at 09 59 31" src="https://user-"
Code change:
reload(probability_calculator) probability_calculator.random.seed(95) <del> def test_hat_draw(self): </del> <ins> class UnitTests(unittest.TestCase): maxDiff = None def test_hat_draw(self): </ins> hat = probability_calculator.Hat(red=5,blue=2) actual = hat.draw(2) expected = ['blue', 'red']

Related discussion:
text: Faulty method of the class can expose itself only during function tests. Case when number of balls to draw is higher than number of balls in hat is not tested explicitly, but it can fail function test, as it includes such experiment. - - Depending on the number of balls to draw and number of balls in Hat: Remove the required number of balls randomly selected, from the Hat. If number of balls to draw is higher than the number of balls, return all the balls. Test for the method checks only the first case: The second behavior is not checked explicitly, but it's a part of the second sub-case in the function test. This creates situation where passing method test and failing function test, can suggest to camper that issue lies in the function. Example with faulty method: Error: Adding test to check second behavior of the method would make debugging easier for campers, as it would show more clearly where is the issue. No response n/a No response
Code change:
{currentCertTitles.map(title => ( <Certification key={title} certName={title} t={t} /> ))} <ins> <Spacer size='medium' /> </ins> <SectionHeader>{t('settings.headings.legacy-certs')}</SectionHeader> <LegacyFullStack {...props} /> {legacyCertTitles.map(title => (

Related discussion:
text: On Settings page, the empty space between the "Certifications" and "Legacy Certifications" seems to be missing. <img width="840" alt="Screenshot 2024-03-12 at 12 04 47" src=""We could add a to space them out a little. The Spacer should go in between line 421 and 422.
Code change:
h4.negative-10.text-nowrap Live Content Manager img.profile-image(src='https://s3.amazonaws.com/freecodecamp/jason-rueckert.jpg' alt="Jason Rueckert's picture") h4.text-nowrap Seattle, Washington <del> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </del>  No newline at end of file <ins> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </ins>

Related discussion:
text: In step , currently, the instruction says: The at the beginning of the other commands at the bottom stands for "meta". It's a key that doesn't exist on most keyboards. If you're on OSX it means press then then the letter. If you are on another system, press then the letter. Use the exit command to get back to the terminal. Instead of this, the instruction should be as follows: The at the beginning of the other commands at the bottom stands for "meta". It's a key that doesn't exist on most keyboards. If you're on OSX it means press then the letter. If you are on another system, press then the letter. Use the exit command to get back to the terminal. NOTE: There's an extra then in the third sentence i.e. If you're on OSX it means press then the letter. In step , currently, the instruction says: That construction team must be working hard Open the file again to continue building. Instead of this, the instruction should be as follows: That construction team must be working hard . Open the file again to continue building. NOTE: There's a missing full stop ( ) after within the first sentence. In step , the instruction should be as follows: The at the beginning of the other commands at the bottom stands for "meta". It's a key that doesn't exist on most keyboards. If you're on OSX it means press then the letter. If you are on another system, press then the letter. Use the exit command to get back to the terminal. In step , the instruction should be as follows: That construction team must be working hard . Open the file again to continue building. <img width="707" alt="image" src="https://user-"<img width="706" alt="image" src="https://user-"- Device: Laptop OS: macOS 13.0.1 Browser: Chrome Version: 107.0.5304.110
Code change:
h4.negative-10.text-nowrap Live Content Manager img.profile-image(src='https://s3.amazonaws.com/freecodecamp/jason-rueckert.jpg' alt="Jason Rueckert's picture") h4.text-nowrap Seattle, Washington <del> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </del>  No newline at end of file <ins> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </ins>

Related discussion:
text: It says that plot 1 should have an x label of Month, but it's the second plot that is monthly. It should say that plot 2 should have that xlabel. It should say that plot 2 should have an xlabel of Years It's testing correctly, so it should be an issue only with the assert message ! Device: [e.g. iPhone 6, Laptop] OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04] Browser: [e.g. Chrome, Safari] Version: [e.g. 22] No response
same thing for the ylabel in plot 2 actually, it says plot 1 there too
Hello, It seems that same thing is for the "testboxplot_titles".
I am opening this for contribution. The PR has to be done on the boilerplate:
Code change:
h4.negative-10.text-nowrap Live Content Manager img.profile-image(src='https://s3.amazonaws.com/freecodecamp/jason-rueckert.jpg' alt="Jason Rueckert's picture") h4.text-nowrap Seattle, Washington <del> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </del>  No newline at end of file <ins> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </ins>

Related discussion:
text: Sometimes when testing the Scientific Computing with Python projects the unittest response is "The diff is x character long. Set maxDiff to None to view it" (or something similar) I propose we set that maxDiff to none in the tests in advance
To expand on this, the boilerplate projects can be found in the following 5 repositories: (see below for this one) Each of these has a file which contains the tests. From what I can tell, adding between these two lines would resolve this. The arithmetic formatter uses a different testing package - do we know if this one is having the same error?
Hi. I would like to work on this. But I wasn't able to find instructions on setting up the code?
Arithmetic formatter can have part of the output truncated. Using in will always give full output.
I vote to do that change to Arithmetic Formatter then
did you do all the projects? or there is something missing?
only left is Arithmetic Formatter
Ok, let's see if I can do it
For the Arithmetic Formatter, the tests say
I seems I am not managing to figure out how to make the change to pytest in the file, I probalby need to delve deeper in the pytest documentation
Changing to in the file should do that.
yes, it does! and now it says lots more I don't know if maybe now there is too much?
It can be a bit overwhelming for somebody not used to it, but that can be said about version without as well.
Code change:
h4.negative-10.text-nowrap Live Content Manager img.profile-image(src='https://s3.amazonaws.com/freecodecamp/jason-rueckert.jpg' alt="Jason Rueckert's picture") h4.text-nowrap Seattle, Washington <del> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </del>  No newline at end of file <ins> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </ins>

Related discussion:
text: <!-- NOTE: If you're reporting a security issue, don't create a GitHub issue. Instead, email We will look into it immediately. -- <!-- Add a link to the coding challenge with the problem. --<!-- Copy and paste the code from the editor that you used in between the back-ticks below: -- Expected to see Clothing withdrawal transactions (-25.55) on output but only seeing the 'transfer from food $50'. Transfer method passes but the food transfer of 50 but it is 0. <!-- Add a clear and concise description of what you expected to happen. --<!-- If applicable, add screenshots to help explain your problem. you can drag and drop, png, jpg, gif, etc. in this box. --<!-- Please complete the following information. --- Device: PC Desktop OS: Windows 10 Browser: Firefox Version: 93.0 <!-- Add any other context about the problem here. --I've since updated my transfer method to use the withdrawal and deposit functions to accomplish the task correctly. It seems the Transfer method test case needs a bit of an upgrade to make sure withdrawals are working.
The test for transfer function is not checking if the amount is deducted or , But only checks for the ledger entries. Adding two additional tests for deduction and addition will fix this issue.
I tossed up a PR for this: I two asserts to the existing test.
Code change:
h4.negative-10.text-nowrap Live Content Manager img.profile-image(src='https://s3.amazonaws.com/freecodecamp/jason-rueckert.jpg' alt="Jason Rueckert's picture") h4.text-nowrap Seattle, Washington <del> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </del>  No newline at end of file <ins> p.negative-10 "My high school job was testing basketball shoes for Nike. I learned code to work smarter, not harder. I have no thyroid." </ins>

Related discussion:
text: Challenge has an issue. User Agent is: <codeMozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
you need a closing brace after the quoted class.
thanx
Code change:
</html> `, { runScripts: 'dangerously', <del> virtualConsole </del> <ins> virtualConsole, url: 'http://localhost' </ins> }); const { window } = dom;

Related discussion:
text: Describe the bug PR builds for freeCodeCamp / freeCodeCamp are failing in Travis CI with the following: To Reproduce a minor PR change build in Travis CI (ie: https://travis-) Expected behavior PR should pass all the builds to allow QAs to merge PRs to repo. Screenshots ! Additional context ref:jsdom/jsdom
Correct me if I'm wrong but '' is asking for: If this file was missing would that not trip something?
Did you mean this file: ? I believe all this is unused completely. And some of the files around that as well. If you are investigating, I recommend you look The challenge-markdown-parser is something worth looking at as well. It's in the tools.
Code change:
The attack of the monster will be based on the monster's `level` and the player's `xp`. In the `getMonsterAttackValue` function, use `const` to create a variable called `hit`. Assign it the equation `(level * 5) - (Math.floor(Math.random() * xp));`. <del> This will set the monster's attack to five times their `level` minus a random number between 0 and the player's `xp`. </del> <ins> This will set the monster's attack to five times their `level` minus a random number between `0` and the player's `xp`. </ins> # --hints--

Related discussion:
text: The description here is missing backticks for the number zero. Here is the new updated description. This has been opened for contribution. The first comprehensive PR created will be reviewed and merged. We typically do not assign issues to anyone other than long-time contributors. If you would like to contribute and have not read the contributors docs, please do so here: If you have any issues with contributing, be sure to join us on the , or on the Here is the correct file that needs to be updated. Note: Even though the file says step 62 instead of step 63 that is on the site, this is still the correct file that needs updating. We recently made changes to the ordering and those changes haven't shown up yet on the live site. Happy coding see explanation above see explanation above No response Device: [e.g. iPhone 6, Laptop] OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04] Browser: [e.g. Chrome, Safari] Version: [e.g. 22] No response
Step 145 has the same issue here Here is the file that needs to be updated here is the correct use of backticks for the number zero in the last sentence here
Code change:
import { omit } from 'lodash-es'; import { call, <del> delay, </del> put, select, takeLatest, <del> takeEvery </del> <ins> takeEvery, debounce </ins> } from 'redux-saga/effects'; import { createFlashMessage } from '../../components/Flash/redux';

Related discussion:
text: On the settings page, you can change your username. Any time you stop typing, it reads from the database to see if the username is available - we could change it so that it only makes a query when the user is ready. So instead of when they stop typing, we just let them choose the name they want, then when they click save we check if it's available. Not sure how big of a deal this is, I'm guessing users don't change their username often. Every little bit helps?
I've always wondered about this one. Definitely agree that we shouldn't hit the DB until the camper tries to submit.
I think we can go with the current implementation but wait for a meaningful pause to make sure the user is intending to submit the new username for validity check.
Code change:
], "tests": [ "assert($("i").hasClass("fa fa-thumbs-up"), 'Add an <code>i</code> element with the classes <code>fa</code> and <code>fa-thumbs-up</code>.')", <ins> "assert($("i.fa-thumbs-up").parent().text().match(/Like/gi), 'Your <code>fa-thumbs-up</code> icon should be located within the Like button.')", </ins> "assert($("button").children("i").length > 0, 'Nest your <code>i</code> element within your <code>button</code> element.')", "assert(editor.match(/</i>/g), 'Make sure your <code>i</code> element has a closing tag.')" ],

Related discussion:
text: I the "thumbs-up" icon to the "Info" button and I still passed the challenge. I don't know if this was intended to help. Cheers! :D Challenge has an issue. User Agent is: <codeMozilla/5.0 (Macintosh; Intel Mac OS X ) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7</code. Please describe how to reproduce this issue, and include links to screenshots if possible. My code:
Thanks for the report. I've put in a PR that will check what the parent element of your icon is.
Thanks for taking the time to fix it! :D Cheers!
Code change:
Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style. <del> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. Required (non-virtual) DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </del> <ins> You can use HTML, JavaScript, CSS, and the D3 svg-based visualization library. Required DOM elements are queried on the moment of each test. If you use a frontend framework (like Vue for example), the test results may be inaccurate for dynamic content. We hope to accommodate them eventually, but these frameworks are not currently supported for D3 projects. </ins> **User Story #1:** My choropleth should have a title with a corresponding `id="title"`.

Related discussion:
text: Join us in our or our if you need help contributing; our moderators will guide you through this. Sometimes we may get more than one pull request. We typically accept the most quality contribution followed by the one that is made first. Happy contributing.
Code change:
"<code>i</code> means that we want to ignore the case (uppercase or lowercase) when searching for the pattern.", "<code>Regular expressions</code> are written by surrounding the pattern with <code>/</code> symbols.", "Let's try selecting all the occurrences of the word <code>and</code> in the string <code>Ada Lovelace and Charles Babbage designed the first computer and the software that would have run on it</code>.", <del> "We can do this by replacing the <code>.</code> part of our regular expression with the current <code>regular expression</code> with the word <code>and</code>." </del> <ins> "We can do this by replacing the <code>.</code> part of our regular expression with the word <code>and</code>." </ins> ], "tests": [ "assert(test==2, 'message: Your <code>regular expression</code> should find two occurrences of the word <code>and</code>.');",

Related discussion:
text: I suspect there is some text missing from this (it makes no sense): "We can do this by replacing the . part of our regular expression with the current regular expression with the word and." My suggested verbiage would be: "We can do this by replacing the . in our regular expression with the string we wish to match (the word 'and')." Secondly, let me suggest "g means that we want to search the entire string for this pattern instead of just the first match." should be reworded to "g stands for 'global' and means that we want to search the entire string for this pattern instead of just the first match." This will be a great aid to students in remembering the parameter.
Likewise, in "Waypoint: Find Numbers with Regular Expressions" it should be mentioned that represents a digit. The proper association goes a long way in retention of new concepts and ideas.
Code change:
- text: Your code should use the <code>map</code> method. testString: assert(code.match(/.map/g)); - text: <code>ratings</code> should equal <code>[{"title":"Inception","rating":"8.8"},{"title":"Interstellar","rating":"8.6"},{"title":"The Dark Knight","rating":"9.0"},{"title":"Batman Begins","rating":"8.3"},{"title":"Avatar","rating":"7.9"}]</code>. <del> testString: assert(JSON.stringify(ratings) === JSON.stringify([{"title":"Inception","rating":"8.8"},{"title":"Interstellar","rating":"8.6"},{"title":"The Dark Knight","rating":"9.0"},{"title":"Batman Begins","rating":"8.3"},{"title":"Avatar","rating":"7.9"}])); </del> <ins> testString: assert.deepEqual(ratings, [{"title":"Inception","rating":"8.8"},{"title":"Interstellar","rating":"8.6"},{"title":"The Dark Knight","rating":"9.0"},{"title":"Batman Begins","rating":"8.3"},{"title":"Avatar","rating":"7.9"}]); </ins> ```

Related discussion:
text: Thanks for reporting. I created a PR to resolve the issue. Once it gets reviewed/merged, a user will be able to put the properties in any order (as it should be).