{"query": "}; ``` A request to `/api/:date?` with a valid date should return a JSON object with a `unix` key that is a Unix timestamp of the input date in milliseconds A request to `/api/:date?` with a valid date should return a JSON object with a `unix` key that is a Unix timestamp of the input date in milliseconds (as type Number) ```js (getUserInput) =>", "pos": ["The test requires that the value is of type Number. But you have to look at the example response given and realize it is a number and not a string. We do pretty often get forum posts about this so maybe this needs to be made more clear? Challenge:\nI feel like observing the behaviour of the demo API and figuring out how your own API differs from the spec is an important part of the project, where giving too much information up-front might not be desirable because then people can complete it on autopilot instead of having learning experiences. There is something to be said more generally though about the current difficulty in debugging why your code fails one of the project requirements, as unlike the Frontend Libraries Cert you can't see the actual output of any failed tests.\nI completely agree but it would be nice if the test blocks were formatted a bit better. Like the response on its own line using a fenced code block with some highlighting. I know it would make it take up more space but I think that would be worth it. Just as an example: ! Although, I don't think providing the types in the specs is that unreasonable either.\nBTW, the type is provided for the other response: I'm not suggesting we spoon-feed the students, just that we give them clear instructions.\nPersonally, \"in milliseconds\" suggests it should be a number to me. But that could be more due to my experience than anything else. I don't see a reason why this shouldn't be clarified, so I'm on board. Maybe just adding a note will work?\nI would be fine with just a mention of the type in the message. Edit: maybe (as type Number) just to avoid any confusion?\nWorks for me! Will go ahead and open up for first timers. This looks like something that can be fixed by \"first time\" code contributors to this repository. Here are the files that you should be looking at to work on a fix: List of files: Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or 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.", "I created a full-stack JavaScript app that is functionally similar to this: https://timestamp- you can check it at github repo I also requested a pull. and how it works I uploaded a video , please accept my pull request and merge it https://user-\nThis is an issue about adding type information to one of the test output blocks. We do not merge people's projects. You submit the project on the challenge page and it gets tested.\nok but there's a problem that every time after refresh it changes its localhost port because of this it's hard to deploy it\nPlease use the if you need help with the curriculum."], "neg": []} {"query": "`button1` represents your first `button` element. These elements have a special property called `onclick`, which you can use to determine what happens when someone clicks that button. You can access properties in JavaScript a couple of different ways. The first is with dot notation. Accessing the `onclick` property of a button would look like: You can access properties in JavaScript a couple of different ways. The first is with dot notation. Here is an example of using dot notation to set the `onclick` property of a button to a function reference. ```js button.onclick button.onclick = myFunction; ``` In this example, `button` is the button element, and `myFunction` is a reference to a function. When the button is clicked, `myFunction` will be called. Use dot notation to set the `onclick` property of your `button1` to the function reference of `goStore`. Note that `button1` is already declared, so you don't need to use `let` or `const`. # --hints--", "pos": ["We still have a lot of confusion on the forum about step 41 I think adding a code example of what they need to do will help. Here is my proposed update to the step. js button.onclick = myFunction; ` 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\nJust a note - that will be step 40 currently\nThis 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 Happy coding"], "neg": []} {"query": "**Examples** ```js 5 > 3 7 > '3' 2 > 3 '1' > 9 5 > 3 // true 7 > '3' // true 2 > 3 // false '1' > 9 // false ``` In order, these expressions would evaluate to `true`, `true`, `false`, and `false`. # --instructions-- Add the greater than operator to the indicated lines so that the return statements make sense.", "pos": ["The student has to go all the way down up to the explanation \"In order, these expressions would evaluate to true, false, true, and true.\" to realize what the result of the operations is. My suggestion is that the second section of the code should look like this: 1 == 1 // true 1 == 2 // false 1 == '1' // true \"3\" == 3 // true instead of the screenshot attached. ", "pos": [" We need to add a fallback to the ```background``` property of the ```.black-box`` class. ### Example ```css :root { --black-color: black; } .black-box { background: var(--black-color); width: 100px; height: 100px; } ``` ## Solution Add a fallback to the ```background``` property before the existing background declaration: ```css :root { --black-color: black; } .black-box { background: black; background: var(--black-color); width: 100px; height: 100px; } ``` ", "pos": ["redirects to the wrong Guide article URL, causing a 404.\nI would like to do this. Can you assign this to me?\nSure - thanks for volunteering to tackle this. Yes - please keep me posted on your progress :)\nIt is the 'Get a hint' button on the page. Probably needs a stub to avoid the 404.\nis contributing to the guide a thing too? adding a stub here: should help. More challenging: write the guide :)\nYes - we would welcome your contributions to the guide.\nIs the issue sorted or can I work on this ?\nThe problem is settled here:\nIs this the same as this issue: ?"], "neg": []} {"query": "lambda x: expr ``` In the example above, `x` is a parameter to be use in the expression `expr`. Create a `test` variable and assign it a lambda function that takes an `x` parameter and returns `x * 2`. In the example above, `x` is a parameter to be used in the expression `expr`. Create a `test` variable and assign it a lambda function that takes an `x` parameter and returns `x * 2`. # --hints--", "pos": ["I noticed a typo in the instructions for Step 11 for The typo is in the line I think the word should be I know it's a bit pedantic, but this is so... N/A N/A No response Device: HP Laptop OS: Windows 10 Browser:Firefox Version: 122.0 No response"], "neg": []} {"query": "const challengeTitles = new ChallengeTitles(); const validateChallenge = challengeSchemaValidator(); describe('Assert meta order', function () { /** This array can be used to skip a superblock - we'll use this * when we are working on the new project-based curriculum for * a superblock (because keeping those challenges in order is * tricky and needs cleaning up before deploying). */ const superBlocksUnderDevelopment = [ '2022/javascript-algorithms-and-data-structures' ]; const superBlocks = new Set([ ...Object.values(meta) .map(el => el.superBlock) .filter(el => !superBlocksUnderDevelopment.includes(el)) ]); superBlocks.forEach(superBlock => { const filteredMeta = Object.values(meta) .filter(el => el.superBlock === superBlock) .sort((a, b) => a.order - b.order); if (!filteredMeta.length) { return; } it(`${superBlock} should have the same order in every meta`, function () { const firstOrder = getSuperOrder(filteredMeta[0].superBlock, { showNewCurriculum: process.env.SHOW_NEW_CURRICULUM if (!process.env.npm_config_block) { describe('Assert meta order', function () { /** This array can be used to skip a superblock - we'll use this * when we are working on the new project-based curriculum for * a superblock (because keeping those challenges in order is * tricky and needs cleaning up before deploying). */ const superBlocksUnderDevelopment = [ '2022/javascript-algorithms-and-data-structures' ]; const superBlocks = new Set([ ...Object.values(meta) .map(el => el.superBlock) .filter(el => !superBlocksUnderDevelopment.includes(el)) ]); superBlocks.forEach(superBlock => { const filteredMeta = Object.values(meta) .filter(el => el.superBlock === superBlock) .sort((a, b) => a.order - b.order); if (!filteredMeta.length) { return; } it(`${superBlock} should have the same order in every meta`, function () { const firstOrder = getSuperOrder(filteredMeta[0].superBlock, { showNewCurriculum: process.env.SHOW_NEW_CURRICULUM }); assert.isNumber(firstOrder); assert.isTrue( filteredMeta.every( el => getSuperOrder(el.superBlock, { showNewCurriculum: process.env.SHOW_NEW_CURRICULUM }) === firstOrder ), 'The superOrder properties are mismatched.' ); }); assert.isNumber(firstOrder); assert.isTrue( filteredMeta.every( el => getSuperOrder(el.superBlock, { showNewCurriculum: process.env.SHOW_NEW_CURRICULUM }) === firstOrder ), 'The superOrder properties are mismatched.' ); }); filteredMeta.forEach((meta, index) => { it(`${meta.superBlock} ${meta.name} must be in order`, function () { assert.equal(meta.order, index); filteredMeta.forEach((meta, index) => { it(`${meta.superBlock} ${meta.name} must be in order`, function () { assert.equal(meta.order, index); }); }); }); }); }); } describe(`Check challenges (${lang})`, function () { this.timeout(5000);", "pos": ["The instructions are here: But, using for the practice projects will always result in a meta order error: - [Help by answering coding questions](https://forum.freecodecamp.org/c/help?max_posts=1) on our community forum. - [Help by answering coding questions](https://forum.freecodecamp.org) on our community forum. - [Give feedback on coding projects](https://forum.freecodecamp.org/c/project-feedback?max_posts=1) built by campers. - [Help us translate](https://translate.freecodecamp.org) these Contributing Guidelines. - [Contribute to our open source codebase](/index?id=our-open-source-codebase) on GitHub.", "pos": ["Describe your problem and how to reproduce it: There is a bad link on the page. The link to 'help by answering coding questions' takes you to which says \"Oops! That page doesn\u2019t exist or is private.\" Add a Link to the page with the problem: Recommended fix, suggestions (how would you update it?): I tried looking around the forum for the page that that used to link to but I am not sure. I would say it could just go to the home page. If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box): \"Screen {/* Change code below this line */}

Active Users:

{/* Change code below this line */} {/* Change code above this line */} ); }", "pos": [" | [Read these guidelines in other languages](/docs/i18n-languages) | |-| # \u041a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c Pull Request (\u041f\u0443\u043b\u043b \u0420\u0435\u043a\u0432\u0435\u0441\u0442) ## \u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0434\u043b\u044f Pull Request: \u0421\u043e\u0437\u0434\u0430\u0432\u0430\u044f Pull Request (PR), \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0438\u0442\u044c PR \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435: `fix/feat/chore/refactor/docs/perf (scope): PR Title` \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `fix(learn): Fixed tests for the do...while loop challenge`. | \u041e\u0431\u043b\u0430\u0441\u0442\u044c | \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 | |---|---| | `learn`,`curriculum` | \u0414\u043b\u044f PR'\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043d\u043e\u0441\u044f\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0443\u0447\u0435\u0431\u043d\u044b\u0439 \u043f\u043b\u0430\u043d. | | `client` | \u0414\u043b\u044f PR'\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043d\u043e\u0441\u044f\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043b\u043e\u0433\u0438\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441. | | `guide` | \u0414\u043b\u044f PR'\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043d\u043e\u0441\u044f\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0438\u043d\u0441\u0442\u0443\u043a\u0446\u0438\u0438. | | `docs` | \u0414\u043b\u044f PR'\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043d\u043e\u0441\u044f\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e. | ## \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u041f\u0443\u043b\u043b \u0420\u0435\u043a\u0432\u0435\u0441\u0442\u0430 (PR) 1. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u044b \u0432\u043d\u0435\u0441\u0451\u0442\u0435 \u043a\u0430\u043a\u0438\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u0439 \u0444\u043e\u0440\u043a \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, GitHub \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0432\u0430\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c PR ![\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 - \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 PR](/docs/images/github/compare-pull-request-prompt.png) 2. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u0441\u0435 PR \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0432\u0435\u0442\u043a\u0443 `master` \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f freeCodeCamp \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 PR, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432 \u043f\u043e\u043b\u0435 \"base fork\" \u0443\u043a\u0430\u0437\u0430\u043d \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 freeCodeCamp/freeCodeCamp ![\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 - \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0444\u043e\u0440\u043a\u043e\u0432 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 PR](/docs/images/github/comparing-forks-for-pull-request.png) 3. \u041d\u0430\u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \"Create pull request\", \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f PR \u0438\u0437 \u0432\u0430\u0448\u0435\u0439 \u0432\u0435\u0440\u043a\u0438 \u0432 \u0432\u0435\u0442\u043a\u0443 `master` freeCodeCamp. 4. \u0412 \u043f\u043e\u043b\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f PR \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0439 \u043e\u0442\u0447\u0451\u0442 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u0438 \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0430\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c - \u0412\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0448\u0430\u0431\u043b\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0443\u043d\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0432\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u0442\u0435 PR. - \u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u044d\u0442\u0438 \u043f\u0443\u043d\u043a\u0442\u044b. \u041e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u043d\u0438\u0445, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e PR - \u0415\u0441\u043b\u0438 PR \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043e\u0448\u0438\u0431\u043a\u0438/\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0442\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e PR \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e `closes` \u0438 #xxxx (\u0433\u0434\u0435 xxxx \u044d\u0442\u043e \u043d\u043e\u043c\u0435\u0440 \u0432\u044b\u043f\u0443\u0441\u043a\u0430). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: `closes #1337`. \u0422\u0430\u043a GitHub \u043f\u043e\u0439\u043c\u0451\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u0438 PR \u043d\u0443\u0436\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044c Issue \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u043d\u043e\u043c\u0435\u0440\u043e\u043c 5. \u0423\u043a\u0430\u0436\u0438\u0442\u0435, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043b\u0438 \u0432\u044b \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043f\u0438\u044e \u0441\u0430\u0439\u0442\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0435 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0442\u0435\u043a\u0441\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0442\u0430\u0442\u044c\u044e \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430), \u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0435 JavaScript, HTML \u0438\u043b\u0438 CSS \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043b\u0438 \u043c\u0430\u043a\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. ", "pos": ["from its english version at from its english version at from its english version at from its english version at from its english version at from its english version at \nPlease, review\n[x] [x] /docs/russian/how-to-work-on-coding- [] ()\nFixes the html links in the top language bar for all language README docs. Not a translation, but just link fixes. Once the Russian README files get merged, we can add the markdown style for links to all the articles in Russian too!\nstarted to review PRs. ping me if more help needed reviewed and requested changed at LGTM from native russian speaker view LGTM Resolve conflict is needed\nHi, guys! Please review my PR\nThanks for working on the translations for the \"Contributing to freeCodeCamp\". Here on we are making contributing to translations for contribution docs ad hoc. You are free to make pull-requests for improving these translations. We are closing the issue as these do not need tracking per se. You can raise a fresh issue if you find something incorrect in the existing docs."], "neg": []} {"query": "* Angular - The Angular Homepage * Angular Style Guide - Detailed best practices for Angular Development * Angular Material - Excellent UI Framework that was built for Angular * Angular Bootstrap Boilerplate - Free, responsive CRUD application starter with NgRx state management, Firebase backend and material design ### Specific-topic Pages", "pos": ["Please consider adding the to It's a useful, open-sourced Angular CRUD application starter with NgRx state management and Firebase backend.\n- please feel free to submit a Pull Request with the content you would like to have . If you have questions or concerns regarding a Pull Request, please feel free to drop by the I have the help wanted label as well in case anyone else is interested.\nAdding the label. This looks like a good first PR for a new contributor.\nHi. I am new to this. Can I take this on?\nThanks, ;) of course, you can take this on\nI stil do not see it here:\nWe still haven\u2019t deployed the current master to production. It will be done shortly"], "neg": []} {"query": "*, ::before, ::after { padding: 0; margin: 0; box-sizing: border-box; } --fcc-editable-region--", "pos": ["Someone in the forums pointed out that adding the property just to will not have the intended effect since the property is not inherited. It appears to me that removing this property completely from in the final product does not seem to make any difference to the layout. Do we need ? If so, if the intent is to apply it to all elements then it should probably be moved to the rule set. Either remove completely or move it into the ruleset. No response N/A No response\nPretty sure I saw this in another challenge too and it got fixed. The CSS used looks like the of setting the but with the actual inheriting missing from the code. It should be fixed, but I would not suggest we remove , setting that (in my opinion) is pretty much a best pratice.\nI'm guessing it would be easier and take less explaining to update step 26 to add the on that selector and then remove the mention of it in step 27. Then update all the seed code.\nJust a heads up, if lasjorg PR merged without issue, balance sheet project suffer the same issue, we can open a PR or issue for it, if the PR is merged. Except that the balance sheet project , doesn't do much and moving it break the layout."], "neg": []} {"query": "Add all your code for these lessons in the `server.js` file between the code we have started you off with. Do not change or delete the code we have added for you. BCrypt has already been added as a dependency, so require it ad `bcrypt` in your server. BCrypt has already been added as a dependency, so require it as `bcrypt` in your server. Submit your page when you think you've got it right.", "pos": ["There is a typo in Understand BCrypt Hashes, is used instead of . Here is the typo If you would like to fix this issue, please make sure you read , we prioritize contributors following the instructions in our guides. Join us in if you need help contributing, our moderators will guide you through this. Sometimes we may get more than one pull requests. We typically accept the most quality contribution, followed by the one that is made first. Happy contributing."], "neg": []} {"query": " const assert = require('chai').assert; const { assert, AssertionError } = require('chai'); const Mocha = require('mocha'); const { flatten } = require('lodash'); const path = require('path');", "pos": ["Describe the bug Several warnings in the Travis CI builds: To Reproduce Steps to reproduce the behavior: a PR the output in Travis CI build Expected behavior Cleaner builds; maybe reduce build time(?) Screenshots ! Additional context Error references this documentation: Live Demo in doc:"], "neg": []} {"query": "\"passport-local\": \"^1.0.0\", \"passport-oauth\": \"^1.0.0\", \"passport-twitter\": \"^1.0.2\", \"ramda\": \"^0.10.0\", \"request\": \"^2.49.0\", \"sitemap\": \"^0.7.4\", \"uglify-js\": \"^2.4.15\",", "pos": ["the first line in the function says - it wont pass testing unless you change it to Browser Name: Firefox Browser Version: 60.0.1 Operating System: High Sierra ! <div class=\"row\"> element, then each of them within a <div class=\"col-xs-4\"> element.\", \"Bootstrap uses a responsive grid system, which makes it easy to put elements into rows and specify each element's relative width. Most of Bootstrap's classes can be applied to a div element.\", \"Here's a diagram of how Bootstrap's 12-column grid layout works:\", \"\", \"\", \"Note that in this illustration, we use the col-md-* class. Here, \"md\" means \"medium\", and \"*\" is a number specifying how many columns wide the element should be. In this case, we're specifying how many columns wide an element should be on a medium-sized screen, such as a laptop.\", \"In the Cat Photo App that we're building, we'll use col-xs-*, where \"*\" is the number of columns wide the element should be, and \"xs\" means \"extra small\", like an extra-small mobile phone screen.\", \"The row class is applied to a div, and the buttons themselves can be wrapped within it.\"", "pos": ["Spelling error: The waypoint requirements say, \"You should have three li elements on within your ol element.\" I think \"within\" is the better choice here.", "Typo on the first test \"your text field have the property of being required\". Also, the second test passes even if the placeholder text field is empty.\nThanks for the report, the copy has been updated.", "This isn't exactly a bug, but in the description for the challenge, there is an image that shows how bootstrap lays out elements on a page. This image is way too small to see or read any of the text in the image, and there doesn't seem to be a good way to get a larger version of the image.\nThanks, we've updated the copy to have the image link to the specific section of the bootstrap website!", "One of the requirements are not fulfilled (Wrap your all of your checkboxes inside one div with the class \"row\".) even though the codes have fulfilled the requirement. Per checking my code 3 times, I know I have fulfilled the requirement. Kindly check and see if this is just an error on my part. Thank you.", " assert(code.match(/...arr/)); assert(code.match(/...s*arr/)); ``` # --seed--", "pos": ["On , the task is to use the spread operator to copy an array. JS semantics allow the spread operator to have whitespace between it and the object it is being applied to. The following is valid: However, in the challenge, any whitespace between the operator and the value will cause the test to fail. The issue is with the test regex here: Which should probably be amended to: NOTE: this issue was , I am submitting it on their behalf. Whitespace between the spread operator and the object it is being applied to should not cause the test to fail. 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\nLooks like a good beginner friendly fix to me\nThanks for opening this issue. This looks like something that can be fixed by \"first-time\" code contributors to this repository. Here are the files that you should be looking at to work on a fix: List of files: Please make sure you read our , we prioritize contributors following the instructions in our guides. 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."], "neg": []} {"query": "\"assert.deepEqual(myArray, [0,1,2,3,4], 'message: myArray should equal [0,1,2,3,4].');\" ], \"challengeSeed\":[ \"ourArray = [];\", \"var ourArray = [];\", \"for(var i = 0; i < 5; i++){\", \" ourArray.push(i);\", \"}\",", "pos": ["The left sidebar has var ourArray = []; But the code only has ourArray = []; Then the code has var myArray = []; It runs with our without the pink var (declaration I think)... Just might want to fix the typo or have it be consistent or explained that it will work either way... Challenge has an issue. User Agent is: User Story #14: My legend should contain rect elements. User Story #15: The rect elements in the legend should use at least 4 different fill colors. User Story #16: I can mouse over an area and see a tooltip with a corresponding id=\"tooltip\" which displays more information about the area. User Story #16: My tooltip should have a data-year property that corresponds to the data-year of the active area. User Story #17: My tooltip should have a data-year property that corresponds to the data-year of the active area. Here is the dataset you will need to complete this project: https://raw.githubusercontent.com/freeCodeCamp/ProjectReferenceData/master/global-temperature.json You can build your project by forking this CodePen pen. Or you can use this CDN link to run the tests in any environment you like: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js Once you're done, submit the URL to your working project with all its tests passing.", "pos": ["This project has two user stories that are listed as !\nThank you, for spotting this. This is an easy fix; Here is the culprit file:\nhi , Can I go ahead with this?\nHello , As you are considered a Contributor (made at least 1 contribution), I suggest you leave this open to first timers. Thank you, for your understanding.\nHey I figured I'll mention here. I was not aware that we could not do it ourselves. I apologize for the inconvenience.\nHi can I work on this? I am a first-timer\nHi , I think this issue has already been picked up. Feel free to claim an issue with label .\nI think that I sent it through but I'm unsure if I did it correctly. It might still need someone with Write access to accept the edits?\nI can check it for you\nHi I'm unsure if I am doing this correctly but I have a pending pull request. It needs approval to be submitted.\nHello , sorry, things are quite busy. You have done what you needed to, and, as it stands, your PR is approved. Thank you, for your patience.\nOk thanks for the heads up!", "It flashes the form fields for a second and then is blank between \"Update your profile here:\" and \"Actions\" headings. Here's the console error: TypeError: Cannot read property 'toLowerCase' of undefined at at at at l.$eval () at l.$digest () at l.$apply () at l () at O () at () That looks like it's on the $() on line 49. The JSON from my /account/api doesn't have a user.profile.username key. Maybe it would be a simple fix of piping? () '';\nWhich method did you use to sign up for freecodecamp? It's an issue of your username not existing.\nSigned up with email.\nHow long ago did you sign up for FCC? On Mon Jan 12 2015 at 11:40:50 AM Justin Rogers wrote:\nAround December 8th. Am I the only document without a username in the db?"], "neg": []} {"query": " require('dotenv').config({ path: `${__dirname}/../../.env` }); const core = require('@actions/core'); const { getFiles } = require('../../utils/files'); const { getStrings, changeHiddenStatus } = require('../../utils/strings'); const filename = core.getInput('filename'); const stringContent = core.getInput('string-content'); const hideString = async (projectId, fileName, string) => { const fileResponse = await getFiles(projectId); const targetFile = fileResponse.find(el => el.path.endsWith(filename)); if (!targetFile) { core.setFailed(`${fileName} was not found.`); return; } const stringResponse = await getStrings({ projectId, fileId: targetFile.fileId }); const targetString = stringResponse.find(el => el.data.text === string); if (!targetString) { core.setFailed(`${string} was not found.`); return; } await changeHiddenStatus(projectId, targetString.data.id, false); console.log('string unhidden!'); }; const projectId = process.env.CROWDIN_PROJECT_ID; hideString(projectId, filename, stringContent); ", "pos": ["The challenge title of challenge Use && for a More Concise Conditional is not translatable on Crowdin ! (the greyed out text is for not translatable strings) An other challenge where the title is translatable ! this is the link for crowdin file: markdown file for the challenge:\nmind taking a look?\nI have manually marked the string as translatable today. After our workflows run tomorrow, I will confirm the string is still translatable - if it is not, I will investigate further.\nReopen if still and issue.\nthis actually happened again with last update\nJust to add that this is also happening in pt-BR. The entry is blocked for translation. I suspect this has to do with the double ampersand.\nHello, we are a group of researchers developing machine learning techniques to locate issues suitable for newcomers, and our model consider this issue as likely a \"good first issue\". May we recommend you to label it as \"good first issue\" so newcomers know where to choose? Thank you!\nthanks but it is not - this needs to be done through Crowdin pipeline, will need to do it, again"], "neg": []} {"query": "# --description-- Continuing with the date theme, HTML5 also introduced the `time` element along with a `datetime` attribute to standardize times. The `datetime` attribute is an inline element that can wrap a date or time on a page. A `datetime` attribute holds a valid format of that date. This is the value accessed by assistive devices. It helps avoid confusion by stating a standardized version of a time, even if it's informally or colloquially written in the text. Continuing with the date theme, HTML5 also introduced the `time` element along with a `datetime` attribute to standardize times. The `time` element is an inline element that can wrap a date or time on a page. A `datetime` attribute holds a valid format of that date. This is the value accessed by assistive devices. It helps avoid confusion by stating a standardized version of a time, even if it's informally or colloquially written in the text. Here's an example:", "pos": ["n'; const jsCatch = 'n;/*fcc*/n';", "pos": ["I did not see anyone raising this issue, but I don't think the background of the preview in default or night mode should be anything other than white unless the coding exercise specifically changes the background to something else. The preview should be exactly what you would see in a browser. In almost all the challenges, the background would be white. !\nI share your concerns The reason we changed the color of the display is that a white display is discomforting to the eye on night mode when everything else is dark. so we injected some styles to harmonize the view in general. That convention was carried over to light mode.\nIt might be better to default to white in light mode, same as the editor. As for night mode, some of the css challenges might need some changes to look reasonable in both modes. For instance, in night mode, looks like this: ! If we change the seed code to it would become ! It would have to be case-by-case, though.\nThat is a very good point. I will defer this to\nLogically, I have to agree with - displaying anything other than what the code in the editor would produce might confuse campers. But it is a little rough on the eyes to have the white background on night mode. And the current theme looks a lot better - so it's a tough call. I scrolled through a number of challenges, and there's quite a few that don't look right with the blue background. So there might be a decent amount of work to go through and fix all of them.\nI really like the new theme, but a preview should be a true preview. We want to make this like the real world. Developers working in some kind of night mode on their favorite local editors, still expect to check the \"real\" result of the code they have written on a browser or in a preview mode in their local editors. The night mode should only apply to the editor or the non-preview part of the FCC site. Anything else is just not realistic.\nThe preview should be white.\nI agree with everyone here on this thread. The preview should remain white. Note that soon the preview won't always be there on the right side \"brightening up\" the user interface and ruining people's night mode experience.", "Soon we will have a single column layout where you the preview only shows up when you click a button to show it, or it loads in a separate tab. - could you update the styling on this so that the preview area is unaffected by our styling?\nDefinitely."], "neg": []} {"query": "isOnlineSelector, isServerOnlineSelector, userFetchStateSelector, showCodeAllySelector, userSelector, ( isSignedIn,", "pos": ["The page gets stuck and goes blank with you leave the relational database challenges. to 'Start the course' the fCC logo/button in the nav goes blank and nav disappears Page not to go blank. Clicking fCC logo should go to /learn No response Same on Chrome and Firefox Console errors: \"Screen After the unordered list, add a new image with an `src` attribute value set to: After the unordered list, add a new image with a `src` attribute value set to: `https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg`", "pos": ["I noticed that we are using both \"a attribute\" and \"an attribute\" in challenge descriptions. And we even use both in the same challenge (): \"Screenshot `What does he does as our team lead?` `What does he does as the team lead?` ### --feedback--", "pos": ["The fill-in-the-blank sentence doesn't match what the character says. The written sentence is: The character says: Note the \"the\", instead of \"our\". No response Device: all OS: all Browser: all Version: all No response\nThank you for reporting the issue. Note for maintainers: Step 54 () uses \"our\" instead of \"the\" in the quiz. I think it's fine as-is since there isn't associated audio/caption text, but I'd vote updating it, too, for consistency. This issue is open to first-time code contributors to this repository. Requirements: In Change the text in the tag from to In Change the text in the tag from to Change the fill-in-the-blank text from to Change the backtick placement in the description text from ` In Change the text of the answers from to Please make sure you read our , we prioritize contributors following the instructions in our guides. 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.\nHi I've created a PR addressing these changes."], "neg": []} {"query": ")} {isTopContributor && (
", "pos": ["A2 English blocks have challenges whose title is displayed next to a completion indicator. The indicator is having a right margin, which creates a gap between the indicator and the text. \"Screenshot background-color: var(--primary-background); } .testimonial-image {", "pos": ["Looking forward for reporting a security issue: Please report security issues by sending an email to instead of raising a GitHub issue. Describe the bug The heights of the SVG files on the landing page vary, which causes the certification chart to look inconsistent. To Reproduce \"zoomfloatingvideowindowandLearntoCode\u2014ForFree\u2014CodingCoursesforBusyPeople\" margin: 0px; margin: 0; } .footer-col {", "pos": ["found an issue: Unexpected shorthand "padding" after "padding-bottom" (declaration-block-no-shorthand-property-overrides) It's currently on:\nI'm happy to fix this (and remove the units from zero values also in that file), but I'm not sure what the preferred replacement is for the padding. Should I just remove the padding: and add lines for padding-top: 0; padding-right: 15px; to reflect the styles currently specified by the padding: 0 15px 15px line?\nI would delete , you can start and these question will be answer by reviewers if they need changes later"], "neg": []} {"query": "} @media screen and (max-width: 991px) { .challenge-success-modal .btn-lg { font-size: 1rem; } .challenge-success-modal .btn-cta-big { max-width: 100%; font-size: 1rem; } .completion-modal-body { min-height: 340px; } .progress-bar-wrap, .progress-bar-background { height: 10px;", "pos": ["The contains a lot of unused CSS rules, which should be cleaned up. The unused rules/classes are: .challenge-success-modal .btn-lg .btn-cta-big .completion-modal-body .completion-message .completion-challenge-nameRemove the above classes from Test and confirm that the modal displays properly after the changes\nHi, I can help with this If you would like to assign it to me."], "neg": []} {"query": "```js const exampleArr = [\"This\", \"is\", \"a\", \"sentence\"]; const sentence = exampleArray.join(\" \"); // Separator takes a space character const sentence = exampleArr.join(\" \"); // Separator takes a space character console.log(sentence); // Output: \"This is a sentence\" ```", "pos": ["Hello, I believe there is a typo in the join() method example on Learn Basic String and Array Methods by Building a Music Player - Step 18 I expect: should actually be: It's just a typo in the example explaining the join() method. ! N/A No response\nGood catch. I will open it up for first timers contribution\nThis 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 The code example in this step needs to be updated to reference the correct array name Happy coding"], "neg": []} {"query": "assert.equal(allSongs[2].duration, \"3:51\"); ``` The third object in your `allSongs` array should have an `src` property set to the string `\"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3\"`. The third object in your `allSongs` array should have a `src` property set to the string `\"https://cdn.freecodecamp.org/curriculum/js-music-player/can't-stay-down.mp3\"`. ```js assert.equal(allSongs[2].src, \"https://cdn.freecodecamp.org/curriculum/js-music-player/still-learning.mp3\");", "pos": ["I noticed that we are using both \"a attribute\" and \"an attribute\" in challenge descriptions. And we even use both in the same challenge (): \"Screenshot import React from 'react'; function B1EnglishIcon( props: JSX.IntrinsicAttributes & React.SVGProps ): JSX.Element { return ( <> ); } B1EnglishIcon.displayName = 'B1EnglishIcon'; export default B1EnglishIcon; ", "pos": ["The B1 English icon isn't available, so we are temporarily using the A2 icon for this superblock. \"Screenshot /* * Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. * Microsoft Open Technologies would like to thank its contributors, a list * of whom are at http://rx.codeplex.com/wikipage?title=Contributors. * * Licensed under the Apache License, Version 2.0 (the \"License\"); you * may not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an \"AS IS\" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing permissions * and limitations under the License. */ import debugFactory from 'debug'; import { noop, Observable, throwError } from 'rxjs'; import { map } from 'rxjs/operators'; import { isGoodXHRStatus } from './'; const debug = debugFactory('fcc:ajax$'); const root = typeof window !== 'undefined' ? window : {}; // Gets the proper XMLHttpRequest for support for older IE function getXMLHttpRequest() { if (root.XMLHttpRequest) { return new root.XMLHttpRequest(); } else { var progId; try { var progIds = [ 'Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0' ]; for (var i = 0; i < 3; i++) { try { progId = progIds[i]; if (new root.ActiveXObject(progId)) { break; } } catch (e) { // purposely do nothing noop.noop(e); } } return new root.ActiveXObject(progId); } catch (e) { throw new Error('XMLHttpRequest is not supported by your browser'); } } } // Get CORS support even for older IE function getCORSRequest() { var xhr = new root.XMLHttpRequest(); if ('withCredentials' in xhr) { return xhr; } else if (root.XDomainRequest) { return new root.XDomainRequest(); } else { throw new Error('CORS is not supported by your browser'); } } function parseXhrResponse(responseType, xhr) { switch (responseType) { case 'json': { if (isGoodXHRStatus(xhr.status)) { if ('response' in xhr) { return xhr.responseType ? xhr.response : JSON.parse(xhr.response || xhr.responseText || 'null'); } else { return JSON.parse(xhr.responseText || 'null'); } } else { return null; } } case 'xml': return xhr.responseXML; case 'text': default: return 'response' in xhr ? xhr.response : xhr.responseText; } } function normalizeAjaxSuccessEvent(e, xhr, settings) { return { response: parseXhrResponse(settings.responseType || xhr.responseType, xhr), status: xhr.status, responseType: xhr.responseType, xhr: xhr, originalEvent: e }; } function createNormalizeAjaxErrorEvent(options) { let _body = {}; let _endpoint = ''; if (typeof options === 'string') { _endpoint = options; } else { _body = options.body; _endpoint = options.url; } return (e, xhr, type) => ({ _body, _endpoint, type: type, status: xhr.status, xhr: xhr, originalEvent: e }); } /* * Creates an observable for an Ajax request with either a settings object * with url, headers, etc or a string for a URL. * * @example * source = Rx.DOM.ajax('/products'); * source = Rx.DOM.ajax( url: 'products', method: 'GET' }); * * interface Options { * url: String, // URL of the request * body?: Object, // The body of the request * method? = 'GET' : 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', * async? = true: Boolean, // Whether the request is async * headers?: Object, // optional headers * crossDomain?: true // if a cross domain request, else false * } * * ajax$(url?: String, options: Options) => Observable[XMLHttpRequest] */ export function ajax$(options) { var settings = { method: 'GET', crossDomain: false, async: true, headers: {}, responseType: 'text', createXHR: function() { return this.crossDomain ? getCORSRequest() : getXMLHttpRequest(); }, normalizeError: createNormalizeAjaxErrorEvent(options), normalizeSuccess: normalizeAjaxSuccessEvent }; if (typeof options === 'string') { settings.url = options; } else { for (var prop in options) { if (hasOwnProperty.call(options, prop)) { settings[prop] = options[prop]; } } } const { normalizeError, normalizeSuccess } = settings; if (!settings.crossDomain && !settings.headers['X-Requested-With']) { settings.headers['X-Requested-With'] = 'XMLHttpRequest'; } settings.hasContent = typeof settings.body !== 'undefined'; return new Observable.create(function(observer) { var isDone = false; var xhr; const throwWithMeta = err => { err._body = options.body || {}; err._endpoint = options.url; observer.error(err); }; var processResponse = function(xhr, e) { var status = xhr.status === 1223 ? 204 : xhr.status; if ((status >= 200 && status <= 300) || status === 0 || status === '') { try { observer.next(normalizeSuccess(e, xhr, settings)); observer.complete(); } catch (err) { throwWithMeta(err); } } else { observer.error(normalizeError(e, xhr, 'error')); } isDone = true; }; try { xhr = settings.createXHR(); } catch (err) { throwWithMeta(err); } try { if (settings.user) { xhr.open( settings.method, settings.url, settings.async, settings.user, settings.password ); } else { xhr.open(settings.method, settings.url, settings.async); } var headers = settings.headers; for (var header in headers) { if (hasOwnProperty.call(headers, header)) { xhr.setRequestHeader(header, headers[header]); } } if (!xhr.upload || (!('withCredentials' in xhr) && root.XDomainRequest)) { xhr.onload = function(e) { if (settings.progressObserver) { settings.progressObserver.next(e); settings.progressObserver.complete(); } processResponse(xhr, e); }; if (settings.progressObserver) { xhr.onprogress = function(e) { settings.progressObserver.next(e); }; } xhr.onerror = function(e) { if (settings.progressObserver) { settings.progressObserver.error(e); } observer.error(normalizeError(e, xhr, 'error')); isDone = true; }; xhr.onabort = function(e) { if (settings.progressObserver) { settings.progressObserver.error(e); } observer.error(normalizeError(e, xhr, 'abort')); isDone = true; }; } else { xhr.onreadystatechange = function(e) { if (xhr.readyState === 4) { processResponse(xhr, e); } }; } debug('ajax$ sending content', settings.hasContent && settings.body); xhr.send((settings.hasContent && settings.body) || null); } catch (err) { throwWithMeta(err); } return function() { if (!isDone && xhr.readyState !== 4) { xhr.abort(); } }; }); } // Creates an observable sequence from an Ajax POST Request with the body. // post$(url: String, body: Object) => Observable[Any] export function post$(url, body) { try { body = JSON.stringify(body); } catch (e) { return throwError(e); } return ajax$({ url, body, method: 'POST' }); } // postJSON$(url: String, body: Object) => Observable[Object] export function postJSON$(url, body) { try { body = JSON.stringify(body); } catch (e) { return throwError(e); } return ajax$({ url, body, method: 'POST', responseType: 'json', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, normalizeError: (e, xhr) => parseXhrResponse('json', xhr) }); } // Creates an observable sequence from an Ajax GET Request with the body. // get$(url: String) => Obserable[Any] export function get$(url) { return ajax$({ url: url }); } /** * Creates an observable sequence from JSON from an Ajax request * * @param {String} url The URL to GET * @returns {Observable} The observable sequence which contains the parsed JSON */ // getJSON$(url: String) => Observable[Object]; export function getJSON$(url) { return ajax$({ url: url, responseType: 'json', headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, normalizeError: (e, xhr) => parseXhrResponse('json', xhr) }).pipe(map(({ response }) => response)); } ", "pos": ["Steps to reproduce: to your credit card information and hit submit transaction will not go through (won't show up in Stripe) and you'll get a blank page like this: \"Supportournonprofit_freeCodeCamp_org\" assert.match(code, /consts+updates*=s*(?s*events*)?s*=>s*{s*consts+elements*=s*event.target;?s*consts+values*=s*element.value.replace(s*/s/gs*,s*('|\"|`)1s*);?s*ifs*(s*(!value.includes(s*element.ids*)s*&&s*(?:values*[s*0s*]s*===s*('|\"|`)=3|value.charAt(0)s*===s*('|\"|`)=4|value.startsWith(('|\"|`)=5))|(?:values*[s*0s*]s*===s*('|\"|`)=6|value.charAt(0)s*===s*('|\"|`)=7|value.startsWith(('|\"|`)=8))s*||s*!value.includes(s*element.ids*))s*)s*{s*element.values*=s*evalFormula(s*value.slice(/); assert.match(code, /consts+updates*=s*(?s*events*)?s*=>s*{s*consts+elements*=s*event.target;?s*consts+values*=s*element.value.replace(s*/s/gs*,s*('|\"|`)1s*);?s*ifs*(s*(!value.includes(s*element.ids*)s*&&s*(?:values*[s*0s*]s*===s*('|\"|`)=3|value.charAt(0)s*===s*('|\"|`)=4|value.startsWith(('|\"|`)=5))|(?:values*[s*0s*]s*===s*('|\"|`)=6|value.charAt(0)s*===s*('|\"|`)=7|value.startsWith(('|\"|`)=8))s*||s*!value.includes(s*element.ids*))s*)s*{s*element.values*=s*evalFormula(s*value.(?:slice|substring)(/); ``` You should pass the number `1` as the argument to your `.slice()` call. ```js assert.match(code, /consts+updates*=s*(?s*events*)?s*=>s*{s*consts+elements*=s*event.target;?s*consts+values*=s*element.value.replace(s*/s/gs*,s*('|\"|`)1s*);?s*ifs*(s*(!value.includes(s*element.ids*)s*&&s*(?:values*[s*0s*]s*===s*('|\"|`)=3|value.charAt(0)s*===s*('|\"|`)=4|value.startsWith(('|\"|`)=5))|(?:values*[s*0s*]s*===s*('|\"|`)=6|value.charAt(0)s*===s*('|\"|`)=7|value.startsWith(('|\"|`)=8))s*||s*!value.includes(s*element.ids*))s*)s*{s*element.values*=s*evalFormula(s*value.slice(s*1s*)s*);?/); assert.match(code, /consts+updates*=s*(?s*events*)?s*=>s*{s*consts+elements*=s*event.target;?s*consts+values*=s*element.value.replace(s*/s/gs*,s*('|\"|`)1s*);?s*ifs*(s*(!value.includes(s*element.ids*)s*&&s*(?:values*[s*0s*]s*===s*('|\"|`)=3|value.charAt(0)s*===s*('|\"|`)=4|value.startsWith(('|\"|`)=5))|(?:values*[s*0s*]s*===s*('|\"|`)=6|value.charAt(0)s*===s*('|\"|`)=7|value.startsWith(('|\"|`)=8))s*||s*!value.includes(s*element.ids*))s*)s*{s*element.values*=s*evalFormula(s*value.(?:slice|substring)(s*1s*)s*);?/); ``` # --seed--", "pos": ["The expected solution for step 91 is the following However, the directions don't mention using the method Since the directions mention then a camper could write this and then be surprised to learn that the method is expected. we should update instructions here to let campers know that there is an expected solution. Or update the tests to allow for multiple valid solutions. Open to hearing thoughts 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\nIt would be interesting to see how campers can achieve the same result with both methods since they do the same job fairly, so I'm up for modifying the test to accept multiple valid solutions. As per the solutions it can accept, I looked up a few methods, and stuff like is now said to be 'legacy'... ? So if we do validate the option of modifying the tests, only and would be accepted?\nWe could use the event. That way it is only the value set on the element we care about. But I can't figure out how to do the assert inside a window load event (we have to wait for the DOM). I see the assert in the browser console but the test just passes anyway. I tried a few different things (try/catch, throwing, , promise delays and try/catch) but I can't get the test to fail properly. There is apparently something about how the tests run I don't understand.\nRather than that approach, we could mock the event. Or some such.\nI think we should go with something like this\nI am going to go ahead and open this up for contribution. So it looks like instead of updating the directions to expect one solution, we will just update the tests to accept multiple valid solutions. It looks like the conversation in this thread has focused on different approaches to update the tests but I think that we can leave that actual implementation up to the contributor."], "neg": []} {"query": "assert.match(getStandardDeviation.toString(), /standardDeviations*=s*Math.pow(/); ``` Your `standardDeviation` variable should use the `variance` variable. ```js assert.match(getStandardDeviation.toString(), /standardDeviations*=s*Math.pow(s*variances*,/); ``` Your `standardDeviation` variable should use the `1/2` exponent. Your `Math.pow()` function should have a base of `variance` and an exponent of `1/2`. ```js assert.match(getStandardDeviation.toString(), /standardDeviations*=s*Math.pow(s*variances*,s*1s*/s*2s*)/);", "pos": ["I struggled with the error message, see screenshot below. The error message asks challengers to use the variable, which I clearly did. So, it was not only unclear why the code didn't pass the test, but also misleading because the error message does not point to the real problem here: a second argument for (arg1, arg2) is missing. Since the instruction also doesn't provide a clear description of the syntax of (), I suggest that the syntax information of () be to the instruction. Albeit a minor issue, because anyone can look it up, I believe it would still make the instruction clearer. The error message should alert the challenger about a necessary second argument to pass in () if the variable is already passed in as the first argument. ! Device: Laptop OS: Windows 11 Browser: FireFox Version: 125.0.1 (64-bit) No response\nFor the new updated description, we could use this js (base, exponent) js const base = 4; const exponent = 0.5; // returns 2 (base, exponent); as for the hint text, it looks like the tests are broken up into two for In this case, I think it would be better to just have one test like this js (getStandardDeviation.toString(), /standardDeviations=sMath.pow(svariances,s1s/s2s)/);\nWhy step-51 in codebase is different also there is 58 steps showing when im running freecodecamp locally.But here there is only 55 steps.\nThe project is in beta which means the steps will be changing. So a recent update was made to the stats calculator project which means the step numbers were updated."], "neg": []} {"query": "script(type='text/javascript', src='/js/lib/jailed/jailed.js') .row(ng-controller=\"pairedWithController\") .col-xs-12.col-sm-12.col-md-4.col-lg-3 .col-md-4.col-lg-3 .scroll-locker(id = \"scroll-locker\") .innerMarginFix(style=' width: 99%') #testCreatePanel.well", "pos": ["A camper relayed this to me: There is some problem with the first challenge ending button on android with firefox browser. And in this moment I tried in chrome too, the issue is the same, the button is not active after the challenge is done. Xperia Z1 compact, android: 5.0.2, firefox: 39.0 Chrome: 43.0.2357.93\nThis is an issue whenever the screen size is small. It will also happen on a desktop if you resize the window to half screen or less."], "neg": []} {"query": ".col-xs-12.col-md-1 label.control-label.control-label-story-submission(for='name') Link .col-xs-12.col-md-11 input#story-url.form-control(placeholder='Paste your link here', name='Link') input#story-url.form-control(name='Link', ng-model='submitStory.url', disabled=\"disabled\", ng-init='submitStory.url=\"#{storyURL}\"') .form-group .col-xs-12.col-md-1 label.control-label.control-label-story-submission(for='name') Title", "pos": ["I tried submitting a URL to camper news and somehow it got as a blank URL. The link I tried to add was but it just links to http:// I also can't edit or delete it, so I can't try fixing it.\nYup, I confirmed this with that URL. Did you make a change to disallow blank URLs that might affect this?\nNope. Didn't realize this was possible.\nI see the mistake I made, I clicked \"Submit\" then typed in the url and hit \"Submit\" again. Then on the next page the title is auto-filled out but the URL is not copied over so I hit submit again, which let it be a blank URL. URL should copy from previous page into the new textbox.\nI think I may have done the same thing.\nFor some reason the url value is not copied from the page URL. This requires some adjustments in the jade template. I will fix that."], "neg": []} {"query": "padding: 25px; text-align: justify; justify-content: center; background-color: var(--primary-background); } .landing-top, .as-seen-in,", "pos": ["Looking forward for reporting a security issue: Please report security issues by sending an email to instead of raising a GitHub issue. Describe the bug The heights of the SVG files on the landing page vary, which causes the certification chart to look inconsistent. To Reproduce \"zoomfloatingvideowindowandLearntoCode\u2014ForFree\u2014CodingCoursesforBusyPeople\" import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { graphql } from 'gatsby'; import normalizeUrl from 'normalize-url'; import { executeChallenge,", "pos": ["Describe the bug Submitting the solution link as \"\" produces an error. Submitting \"\" does not. Whenever we submit a solution link \"\" it is appended with \"/api/\" so resultant solution gives \"Not Found/Timeout error\" and the same link submitted without \"/\" like \"\" gives solution as accepted. To Reproduce Steps to reproduce the behavior: to on 'solution input box' \"https://freecodecamp-\" solution gets accepted. \"https://freecodecamp-\" error Expected behavior This should be tackled as Chrome appends \"/\" by default to any domain URL you copy, so people who would copy URL from search bars will get URLs appended with \"/\" hence producing wrong results. This file shows the testString is directly appended with \"/api\" without checking if the input URL contains \"/\" at the end or not. Screenshots ! Desktop (please complete the following information): OS: Ubuntu 18 Browser: Google Chrome Version 73.0.3683.75\nI am not having this problem - my project will pass the tests with or without the trailing https://fcc-manage-npm- and https://fcc-manage-npm- both pass for me in chrome Can you share a share a screen shot of the error?\nUpdated\nhmm, it's strange that my project will give a good response when that string is appended but not yours https://fcc-manage-npm- - package as response https://freecodecamp- - not found as response not sure what is causing this - the only difference seems to be that I'm using glitch and you're using heroku in fact mine will work like this... https://fcc-manage-npm- so maybe how the two websites process a route or something? can they do that? glitch strips out the extra or something? weird Either way - I think a solution like you suggested would probably work - check if the submitted URL ends in a and remove it if it's there. This same problem probably occurs throughout the whole backend area all over the place.\nWeird, would u check with an alternative hosting if the problem persists? If the problem persists the last solution would be stripping the las from input url\nDid you try this Above is the actual link processed in the test with an appended , It gives a response with the same as it is shown in the screenshot I posted. So I guess the problem is with the routing of Heroku."], "neg": []} {"query": "stroke: var(--color-quaternary); } .map-title svg:first-child { transform: rotate(90deg); } .open > .map-title svg:first-child { transform: rotate(-90deg); transform: rotate(90deg); } .map-challenges-ul {", "pos": ["Describe the bug The arrow to the left of Expand courses/Collapse courses buttons points down when the list is in collapsed state and points up when the list is in expanded state. This is opposed to standard behavior of similar features in other apps. To Reproduce Steps to reproduce the behavior: to at the arrow to the left of Collapse courses. It points up while the list is in expanded state. on the above mentioned button to collapse the list. the list is collapsed state but the arrow points down. Expected behavior By convention, the arrow should point to the right or up when the list is in collapsed state and point down when the list is in expanded state. Screenshots ! ! Desktop: OS: Ubuntu 20.04.2 LTS Browser: Opera Version: 76 Additional context Also tested this on the same OS with Firefox 88.0.1 with the same result.\nI agree, we should have the arrow pointing to the left when the courses are collapsed and down when they are expanded.\nHi Ahmad, I think you mean we should have the arrow pointing to the right when the courses are collapsed, right?\nHi. I'm new to contributing to FreecodeCamp, and just read the guidelines. With your permission, I will fork the project and try to solve the issue with a pull request."], "neg": []} {"query": "isSignedInSelector, userSelector, challengeTestsSelector, isChallengeCompletedSelector, ( canFocus: boolean, { challengeType }: { challengeType: number },", "pos": ["I am learning from the RWD course, and I wanted to revise what I had done previously. I went to previous steps, but I found that the steps are shown incomplete when I open them. It tells you to do the step again. This doesn't make sense because you have a button at the top if you do want to do the step again. Completed code should be shown in completed challenge's code editor along with an indicator like ! !\nIt would be relatively easy to show the solution to a step, and the \"Step completed\" text, (rather than storing the user's code) if a user has already submitted that step. If other maintainers are in favour of this change, I'd be happy to open this up for PRs.\nMy concern with that approach would be it completely destroys the UX if someone wants to go through a practise project again.\nI propose to add a button under the summary of each project for this issue.\nI'm not keen on adding a button to do that, given the potential for frustration if someone triggers that accidentally.\nI think I'd be in favour of the existing flow, presonally.\nAt a minimum, we could probably add the checkmark next to \"Step 22\" like we do for all the other challenges after it has been completed. That seems to be missing here. !\nThat's a good idea, IMO.\nI think just adding that check mark is probably the way to go then. It keeps it consistent with everything else. I'm going to open it up for contributions. If anyone still has reservations, be sure to bring them up.\nMay I suggest in addition to indicating completed challenges in the challenge itself, to do that in the list of steps. Here is a crude representation of what I have in mind:

\"Install how-to-npm with this command: npm install -g git-it\", \"Install git-it with this command: npm install -g git-it\", \"Now start the tutorial by running git-it.\", \"Note that you can resize the c9.io's windows by dragging their borders.\", \"Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.\",", "pos": ["Challenge has an issue. Please describe how to reproduce it, and include links to screenshots if possible. step 9 says Install how-to-npm with this command: npm install -g git-it. it looks like we are installing something called git-it instead of how-to-npm. As before, if I am incorrect please disregard this issue and just close. Just trying to do what I can for you guys. Love this site!\nHey thanks for posting an issue! It looks like you are right! I believe the step should say\nThat's what it looked like to me to. It seems that the command was copied from the next page when you do actually have to install how-to-npm. Btw, now that I have done a lot of the free code camp challenges, how would I go about starting to contribute to the project? I would love to help out with the code or issues or anything really.\nAwesome! Just jump right in :smile:! Maybe start with putting in a pull request for this issue? Feel free to ping me in gitter if you want to chat about this further (so as to not pollute this issue with conversation)\nDear camper, your issue is related to: Please see .\nI checked when I was creating the pull request to fix this issue and it seems that the how-to-npm part of it is already fixed."], "neg": []} {"query": "); ``` `knapsackUnbounded([{ name:\"panacea\", value:3000, weight:0.3, volume:0.025 }, { name:\"ichor\", value:1800, weight:0.2, volume:0.015 }, { name:\"gold\", value:2500, weight:2, volume:0.002 }], 35, 0.35)` should return `75300`. `knapsackUnbounded([{ name:\"panacea\", value:3000, weight:0.3, volume:0.025 }, { name:\"ichor\", value:1800, weight:0.2, volume:0.015 }, { name:\"gold\", value:2500, weight:2, volume:0.002 }], 35, 0.35)` should return `75900`. ```js assert.equal(", "pos": ["Describe your problem and how to reproduce it: One of the tests in this challenge has wrong result, both in test code and description. It says: This isn't correct. For example: knapsack having 11 panacea, 3 ichor and 15 gold has value , while being within the weight and value constrains: This seems to be case of precision issue. Multiplication input item weights, volumes and max values for those parameters, to start operations without decimals, makes result as it should be, also for the problematic test. Add a Link to the page with the problem:\nYes, it seems you are right - do you want to propose a solution?\nYes, sorry. The least invasive way to correct the seems to be to multiply in function, by the same factor, initial items weights, volumes, and in the first recursive call multiply and . This is enough to make calculations on integers and get correct answers. I don't know if just such change would be okay or if more desirable would be more elaborate rewrite of solution. Or at least changing to / and renaming some variables to better names.\nwould you be willing to open a PR for it so that the challenge can be changed? you can also contribute to the guide by opening a topic in the #subforum category in the forum\nDefinitely yes, although I need advice which approach here would be preferred. Considering that the sample solution in code is just used for internal testing and just small change to it can fix the issue."], "neg": []} {"query": "# --description-- Promises are most useful when you have a process that takes an unknown amount of time in your code (i.e. something asynchronous), often a server request. When you make a server request it takes some amount of time, and after it completes you usually want to do something with the response from the server. This can be achieved by using the `then` method. The `then` method is executed immediately after your promise is fulfilled with `resolve`. Here\u2019s an example: Promises are most useful when you have a process that takes an unknown amount of time in your code (i.e. something asynchronous), often a server request. When you make a server request it takes some amount of time, and after it completes you usually want to do something with the response from the server. This can be achieved by using the `then` method. ```js Promise.prototype.then(onFulfilled, onRejected) ``` The `then` method schedules callback functions for the eventual completion of a Promise - either fulfillment or rejection. One of the `onFulfilled` and `onRejected` handlers will be executed to handle the current promise's fulfillment or rejection. When the promise is fulfilled with `resolve` the `onFulfilled` handler is called. ```js myPromise.then(result => {", "pos": ["I realize it is probably just an oversimplification but the part that may need correction is. I think this should say the handler is called when the promise becomes fulfilled. Or something to that effect. More precise verbiage. 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] Forum: Specs/MDN:\nI'd say something like: I think mentioning the might get confusing.\nThe thing is, it takes two callbacks. An and the optional . So we may have to make the distinction. The name is just the spec definition. It might be less confusing if we show the signature. I pretty much just stole the text from MDN. I think we are far enough into the curriculum that a little technical lingo isn't the worst. It might be a bit verbose although it explains it better if you ask me.\nI could go with that, yeah."], "neg": []} {"query": "\"Bonus User Story: 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 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.\", \"Note that CodePen.io overrides the Window.open() function, so if you want to open windows using jquery, you will need to target invisible anchor elements like this one: <a target='_blank'>.\", \"Note that CodePen.io overrides the Window.open() function, so if you want to open windows using jQuery, you will need to target invisible anchor elements like this one: <a target='_blank'>.\", \"Remember to use Read-Search-Ask if you get stuck.\", \"When you are finished, click the \"I've completed this challenge\" button and include a link to your CodePen. If you pair programmed, you should also include the Free Code Camp username of your pair.\", \"If you'd like immediate feedback on your project from fellow campers, click this button and paste in a link to your CodePen project.

Click here then add your link to your tweet's text\"", "pos": ["Challenge has an issue. User Agent is: Which of the following options can be used set a breakpoint in Visual Studio Code? Which of the following options can be used to set a breakpoint in Visual Studio Code? ## --answers--", "pos": ["Hello, On the challenge project \"Debug a C# Console Application Using Visual Studio Code, the question is: The word is missing between and . N/A I believe the question should be: No response Device: all OS: all Browser: all Version: all No response\nThanks for opening this issue. This looks something that can be fixed by \"first time\" code contributors to this repository. Here are the files that you should be looking at to work on a fix: List of files: Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our moderators will guide you through this. Sometimes we may get more than one pull requests. We typically accept the most quality contribution followed by the one that is made first. Happy contributing."], "neg": []} {"query": "const origin = returnUrl.origin; // if this is not one of the client languages, validation will convert // this to '' before it is used. const pathPrefix = returnUrl.pathname.split('/')[0]; const pathPrefix = returnUrl.pathname.split('/')[1]; return _normalizeParams({ returnTo: returnUrl.href, origin, pathPrefix }); }", "pos": ["If I am signed in as a user while on and log out, I am redirected to the english home page. redirects to the chinese page.\nwrong endpoint in server code? Thats what I would assume, but am not sure how to locate where the correct endpoint would be placed in the code.\nHere is the endpoint: and most likely the issue is with the redirect \"predictor\" utility: However we would want to confirm the cause before we open this up for contributions.\nyes, that's the issue. To fix it we can grab the from and combine that with to get the desired redirect.\nShould that be done in the getRedirectParams function or should the path be put together from the data set returned by getRedirectParams in\nYou need to construct the URL from the values you get from the as a consumer of the function and not change its existing behavior. In simple terms the change is required within the endpoint handler.\nThat makes sense.\nI got the codebase installed locally is there a way to run just\nNot sure what you mean by running only one file? The API server is an express based application (Loopback 3). You need to start up at least the api-server app. If you want to do that, you should be able to do that by navigating to directory and using the run-script commands in its\nI'm trying to figure out what gets passed in pathPrefix, from getRedirectParams, when one signs out from the Spanish page. But when running the site locally, switching to Espanol leads to a \"This site can't be reached\" error. Just for clarity's sake, I realize now that is not meant to be run alone and I am using the \"npm run develop\" command to try and recreate this bug locally. Is this a bad approach?\nAh - right. Sorry about sending you on a goose-chase. When you build locally, we do not have a way yet to develop both and at the same time alongside the API app. I am going to untag this from help-wanted and assign this instead. Oliver, you should be able to test / reproduce and recommend a fix on our staging instance - not sure because this may be needing access for \"close to prod\" type setup.\nI was just in the process of going through the steps, when you commented Mrugesh!", "I'll leave them here for the curious: Unfortunately testing locally is quite a pain, because we use since is entirely separate from . It's a bit of a slow, memory intensive process, but you can do this: in your .env file Then you can go to"], "neg": []} {"query": "\"Here's the anatomy of a CSS class:\", \"a diagram of how style tags are composed, which is also described in detail on the following lines.\", \"You can see that we've created a CSS class called \"blue-text\" within the <style> tag.\", \"You can apply a class to an HTML element like this: <h2 class=\"blue-text\">CatPhotoApp<h2>\", \"You can apply a class to an HTML element like this: <h2 class=\"blue-text\">CatPhotoApp</h2>\", \"Note that in your CSS style element, classes should start with a period. In your HTML elements' class declarations, classes shouldn't start with a period.\", \"Instead of creating a new Style tag, try removing the h2 style declaration from the existing style element, and replace it with the class declaration for \".red-text\".\" ],", "pos": ["Challenge has an issue. Please describe how to reproduce it, and include links to screen shots if possible. What I see: You can apply a class to an HTML element like this:

myRegex should return true for the string Franklin D. Roosevelt testString: assert(myRegex.test('Franklin D. Roosevelt')); testString: myRegex.lastIndex = 0; assert(myRegex.test('Franklin D. Roosevelt')); - text: Your regex myRegex should return true for the string Eleanor Roosevelt testString: assert(myRegex.test('Eleanor Roosevelt')); testString: myRegex.lastIndex = 0; assert(myRegex.test('Eleanor Roosevelt')); - text: Your regex myRegex should return false for the string Franklin Rosevelt testString: assert(!myRegex.test('Franklin Rosevelt')); testString: myRegex.lastIndex = 0; assert(!myRegex.test('Franklin Rosevelt')); - text: You should use .test() to test the regex. testString: assert(code.match(/myRegex.test(s*myStrings*)/)); - text: Your result should return true.", "pos": ["Link to the challenge: Adding a global flag to the regular expression has the test fail for the first two assertions. This can be confusing considering also how the challenge is introduced, since the code snippet explaining the concept shows the global flag being used. Update the code snippet introducing the challenge: However, since the global flag should not affect the outcome of the test (to what I can ascertain), a better suggestion would be to update the test itself, to account for its presence.\nThanks for the detailed report! I think it would make sense to do both. The isn't necessary, so it should not be there and it's not wrong, so we should not reject it.\nIt might be better to remove the global flag from the challenge example unless we also explain how and give some info on . I think in order to really know if we should fail the test when using the global flag we would have to consider how the code is supposed to run. Are we \"emulating\" that each is being run in isolation or are they executed one after the other.\nAgreed. This challenge focuses on teaching the user about groups - the use of over seem incidental to me, as does the presence of the flag. Also, the challenge asks you to make sure so it's only asking you to use against once.\nBut it is when the test is called multiple times on the same regex. Isn't this kind of the same as when users use global variables which end up causing the user's code to fail for all tests except the first because the the global variable does not get reset each time?\nI'm dumb - I'd completely failed to realise it's being run twice, once in the user's code and again in the tests. You're quite right and PR fixes that.\nChallenge: Fails with: Passes with:\nThe example/seed code moves to 14. I guess one easy option would be to change the example string to something like \"Fun with regular expressions!\", that should let all the tests pass and accept the global flag. The problem is if the camper uses a different string to test the regex it may fail. So we might just have to reset before running the tests.\nI assumed it would be the exact same fix as what Tom did:\nyep, that's what I concluded. I think we can apply Tom's fix in , rather than modifying the tests. Either works, but that should be more concise."], "neg": []} {"query": "\"Wait for the workspace to finish processing and select it on the left sidebar, below the Create New Workspace button.\", \"Click the \"Start Editing\" button.\", \"In the lower right hand corner you should see a terminal window. In this window use the following commands. You don't need to know what these mean at this point.\", \"Run this command: npm install how-to-npm -g\", \"Now start this tutorial by running npm install how-to-npm@2.0.0.\", \"Install how-to-npm with this command: npm install how-to-npm -g\", \"Now start the tutorial by running how-to-npm.\", \"Note that you can resize the c9.io's windows by dragging their borders.\", \"Make sure that you are always in your project's \"workspace\" directory. You can always navigate back to this directory by running this command: cd ~/workspace.\", \"Note that you can only add dist tags to the specific version numbers published in steps 8 and 10. If you receive a 403 or 404 error, run how-to-npm and try again.\",", "pos": ["One of the instructions has the following: start this tutorial by running npm install how-to-npm it says to run the npm tutorial by typing 'npm install how-to-npm but you are actually supposed to just type 'how-to-npm'"], "neg": []} {"query": "```yml tests: - text: Your code should add one s tag to the markup. testString: assert($('s').length == 1, 'Your code should add one s tag to the markup.'); testString: assert($('s').length == 1); - text: A s tag should wrap around the Google text in the h4 tag. It should not contain the word Alphabet. testString: assert($('s').text().match(/Google/gi) && !$('s').text().match(/Alphabet/gi), 'A s tag should wrap around the Google text in the h4 tag. It should not contain the word Alphabet.'); testString: assert($('h4 > s').text().match(/Google/gi) && !$('h4 > s').text().match(/Alphabet/gi)); - text: Include the word Alphabet in the h4 tag, without strikethrough formatting. testString: assert($('h4').html().match(/Alphabet/gi), 'Include the word Alphabet in the h4 tag, without strikethrough formatting.'); testString: assert($('h4').html().match(/Alphabet/gi)); ```", "pos": ["", "pos": ["! Our local images currently do not render in the translated documentation views. This is due to the use of a relative link, which breaks with the new path generated for i18n pages. A couple of potential fixes: Use an absolute link ( The positionData variable holds a 3-dimensional (3D) array. Use a D3 method to find the maximum value of the z coordinate (the third value) from the arrays and save it in the output variable. Note
Fun fact - D3 can plot 3D arrays.
The positionData array holds sub arrays of x, y, and z coordinates. Use a D3 method to find the maximum value of the z coordinate (the third value) from the arrays and save it in the output variable. ## Tests", "pos": [" ", "pos": ["", "pos": ["The function used in the code, named : Instructions mention function: \"Because returns a function, your function ultimately returns an array of function references...\" Instruction should mention function, not function. No response Device: Laptop OS: Windows 10 Browser: Chrome No response\nThanks for opening this issue. This looks something that can be fixed by \"first time\" code contributors to this repository. Here are the files that you should be looking at to work on a fix: List of files: Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our moderators will guide you through this. Sometimes we may get more than one pull requests. We typically accept the most quality contribution followed by the one that is made first. Happy contributing.\ncan you assign me this issue?\nWe typically do not assign issues. Instead, we accept the first pull request that comprehensively solves the issue. Issues labelled with or are open for contributions. Please make sure you read . We prioritize contributors following the instructions in our guide. Join us in or if you need help contributing - our community will be happy to assist you."], "neg": []} {"query": "], 'id' ); return updatedExisting; return { updated: updatedExisting, isNewCompletionCount: updatedExisting.length - completedChallenges.length }; } function isTheSame(val1, val2) {", "pos": ["Completing projects from the settings page, submitting a url, dose not increment the points a user has. We need to push a new timestamp to the users array.\nHi I can help out with this. Am I correct in thinking that this should be done in the file? If so, I'll look at for some guidance."], "neg": []} {"query": "--yellow-light: #ffc300; --yellow-dark: #4d3800; --blue-light: rgb(153, 201, 255); --blue-light-translucent: rgb(153, 201, 255, 0.3); --blue-dark: rgb(0, 46, 173); --blue-dark-translucent: rgb(0, 46, 173, 0.3); --green-light: #acd157; --blue-mid: #198eee; --purple-mid: darkviolet;", "pos": ["If I try to select text with my mouse so I can copy/paste it or something - the selected text has the same background as the rest of the page. Making it difficult to see what is selected, and frustrating to try and select, well anything. ! This seems to occur across the entire site. Perhaps it was intentional or something, but I don't think it's a good ux. Note: the text does actually get selected, so you can still copy/paste it. Tested on Chrome and Firefox\nGood catch. It'll be this PR: which didn't scope the change to challenge descriptions. I'll put together a quick fix. Edit: nevermind, it's just that has to be passed four values, not two. I don't quite understand how this ever worked."], "neg": []} {"query": "li • Understand that they will build your project using JavaScript frameworks (as opposed to older or proprietary tools) li • Keep your expectations high. Our students' goal is to produce work that's up to your standards h3 If you're OK with these terms, great! We'd love to help you! Fill in this form and we'll get right back to you. form.form-horizontal(role='form', action=\"/nonprofits/\", method='POST') form.form-horizontal(role='form', action=\"/nonprofits/\", method='POST', novalidate='novalidate', name='nonprofitForm') input(type='hidden', name='_csrf', value=_csrf) .form-group label(class='col-sm-2 control-label', for='name') Your name label(class='col-sm-2 control-label', for='name') Your name * .col-sm-8 input.form-control(type='text', name='name', id='name') input.form-control(type='text', name='name', id='name', autocomplete=\"off\", ng-model='name', required='required') .col-sm-8.col-sm-offset-2(ng-show=\"nonprofitForm.name.$invalid && nonprofitForm.name.$error.required && !nonprofitForm.name.$pristine\") alert(type='danger') span.ion-close-circled(id='#name-error') | Your name is required. .form-group label(class='col-sm-2 control-label', for='email') Your email label(class='col-sm-2 control-label', for='email') Your email * .col-sm-8 input.form-control(type='text', name='email', id='email') input.form-control(type='text', name='email', id='email', autocomplete=\"off\", ng-model='email', required='required') .col-sm-8.col-sm-offset-2(ng-show=\"nonprofitForm.email.$invalid && nonprofitForm.email.$error.required && !nonprofitForm.email.$pristine\") alert(type='danger') span.ion-close-circled(id='#email-error'). Your email is required. .form-group label(class='col-sm-2 control-label', for='message') Briefly describe what problem you need to solve, and for whom. label(class='col-sm-2 control-label', for='message') Briefly describe what problem you need to solve, and for whom. * .col-sm-8 textarea.form-control(type='text', name='message', id='message', rows='7') textarea.form-control(type='text', name='message', id='message', rows='7', autocomplete=\"off\", ng-model='message', required='required') .col-sm-8.col-sm-offset-2(ng-show=\"nonprofitForm.message.$invalid && nonprofitForm.message.$error.required && !nonprofitForm.message.$pristine\") alert(type='danger') span.ion-close-circled(id='#message-error') | Your message is required. .form-group .col-sm-offset-2.col-sm-8 button.btn.btn-primary(type='submit') button.btn.btn-primary(type='submit', ng-disabled='nonprofitForm.$invalid') span.ion-paper-airplane | Submit | Submit No newline at end of file", "pos": ["it should be --important <-- instead of import Learn Bash Scripting by Building Five Programs False. An important operator in that menu is =~. It allows for pattern matching. Using the same syntax but with this operator, check if hello contains the pattern el. ! 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\nI'll fix this! Just for reference, I will be fixing this issue in repository.\nHey guys! I'm getting this error when typing in the terminal. Anyone know how to fix? I created a seperate branch that is up to date.\nFor generating file, the coderoad cli requires for the version branch to exist locally. Detailed guidelines how to contribute to these tutorials can be found on Please refer to the parts about making changes on the branch. Thank you and happy coding!\nPerfect. I have the typo fixed and ill make that branch work with coderoad. Thank you for your patience", " # --description-- Now you will practice listening for the correct form of `do.` Listen carefully to how Tom asks about Maria's job as a team lead. Now you will practice listening for the correct form of `do`. Listen carefully to how Tom asks about Maria's job as a team lead. # --instructions--", "pos": ["The fill-in-the-blank sentence doesn't match what the character says. The written sentence is: The character says: Note the \"the\", instead of \"our\". No response Device: all OS: all Browser: all Version: all No response\nThank you for reporting the issue. Note for maintainers: Step 54 () uses \"our\" instead of \"the\" in the quiz. I think it's fine as-is since there isn't associated audio/caption text, but I'd vote updating it, too, for consistency. This issue is open to first-time code contributors to this repository. Requirements: In Change the text in the tag from to In Change the text in the tag from to Change the fill-in-the-blank text from to Change the backtick placement in the description text from ` In Change the text of the answers from to Please make sure you read our , we prioritize contributors following the instructions in our guides. 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.\nHi I've created a PR addressing these changes."], "neg": []} {"query": "# --description-- Add another `p` element with the text `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element so to have it aligned to the left, and `13%` to the right. Below your last `p` element, add another `p` element with the text `Total Carbohydrate 37g 13%`. Like before, use `span` elements to make the text `Total Carbohydrate` and `13%` bold. Also add an additional `span` element to wrap the `Total Carbohydrate 37g` text in a span element to have it aligned to the left, and `13%` to the right. # --hints--", "pos": ["The instructions do not state clearly where the new element should be . I believe they are relying on the fact that the previous two steps a element to the end of the div and thus they assume the user will continue this trend in step 55. But I just ran into a forum post that the element after the div, so I'm not sure that's a safe assumption. Step 54 tells the user to add the element \"Below your last element\" and I think we should do the same thing here. N/A Change the beginning of the instructions to read: \"Below your last element, add another element with the text...\" 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\nQuick question, do you think we have a typo in the instruction as well?\nYes, you're correct. The phrase \"so to have it aligned to the left\" can be revised to \"to have it aligned to the left\" for a better concise expression.\nWhen will be waiting for triage label removed\nThanks for opening this issue. This looks like something that can be fixed by \"first-time\" code contributors to this repository. Here are the files that you should be looking at to work on a fix: List of files: A pull request which resolves this issue should: Please make sure you read our , we prioritize contributors following the instructions in our guides. 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.\nHi, do you think the sentence could be made more effective by removing the redundant phrase 'span element' that occurs twice in the same line?\nI agree that the \"in a span element\" part is redundant and should be removed, but I'm not sure about the extra comma there as it makes the sentence disjointed. We might want to just ditch the commas altogether:\nAgreed. Two commas seem to break the sentence unnecessarily. I already raised a PR () suggesting the removal of the redundant part, which was not merged. Should I push changes in the same PR, or create a new one?"], "neg": []} {"query": "const Project = ({ challenge }: { challenge: ChallengeWithCompletedNode }) => ( {challenge.title} ", "pos": ["A2 English blocks have challenges whose title is displayed next to a completion indicator. The indicator is having a right margin, which creates a gap between the indicator and the text. \"Screenshot Inside your `select` element, add the following five `option` elements with these corresponding values for the option text and `value` attribute: Inside your `select` element, add the following five `option` elements with these corresponding values for the `option` text and `value` attribute: **Value Attributes:**", "pos": ["There are some small issues that need to be fixed in the following files: optionfor elementsinline\"Check your code\" String` This looks like something that can be fixed by \"first-time\" code contributors to this repository. The files you should look at to work on a fix are those linked above. Please make sure you read our , we prioritize contributors following the instructions in our guides. 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.\nHi I'd like to work on this issue. Thanks\nHey We typically do not assign issues. Instead, we accept the first pull request that comprehensively solves the issue. Issues labelled with or are open for contributions. Please make sure you read . We prioritize contributors following the instructions in our guide. Join us in or if you need help contributing - our community will be happy to assist you."], "neg": []} {"query": "userSelector, isOnlineSelector, isServerOnlineSelector, showCodeAllySelector, userFetchStateSelector } from '../../redux/selectors';", "pos": ["The page gets stuck and goes blank with you leave the relational database challenges. to 'Start the course' the fCC logo/button in the nav goes blank and nav disappears Page not to go blank. Clicking fCC logo should go to /learn No response Same on Chrome and Firefox Console errors: \"Screen assert.match(code, /ifs*(s*keys.rightKey.presseds*&&s*isCheckpointCollisionDetectionActives*)s*{s*(.*?)s*}/); assert.match(code, /ifs*(((s*keys.rightKey.presseds*&&s*isCheckpointCollisionDetectionActives*)|(s*isCheckpointCollisionDetectionActives*&&s*keys.rightKey.presseds*)))s*{s*(.*?)s*}/); ``` # --seed--", "pos": ["step 78 of the platformer game project wants the user to type: but if we type the checks in reverse like: It is not accepted. Stumbled on this one because to me writing the long variable name first is easier because I copy and paste it directly from the step and then I spend a little longer looking up how to tell the right key is pressed so I put that second. Since the order of conditions is not specified though in the step, the check should not be so picky. (see above) less strict checking when the order of comparisons in the if makes no difference to the result (or please specify that order matters in the instructions or the hint) No response N/A please note that step 80 has the same issue as well:"], "neg": []} {"query": "import { wrapHandledError } from '../utils/create-handled-error'; const authRE = /^/auth//; const confirmEmailRE = /^/confirm-email$/; const newsShortLinksRE = /^/n/|^/p//; const publicUserRE = /^/api/users/get-public-profile$/; const publicUsernameRE = /^/api/users/exists$/; const resubscribeRE = /^/resubscribe//; const showCertRE = /^/certificate/showCert//; // note: signin may not have a trailing slash const signinRE = /^/signin/; const statusRE = /^/status/ping$/; const unsubscribedRE = /^/unsubscribed//; const unsubscribeRE = /^/u/|^/unsubscribe/|^/ue//; const updatePaypalRE = /^/donate/update-paypal/; const _whiteListREs = [ authRE, confirmEmailRE, newsShortLinksRE, publicUserRE, publicUsernameRE, resubscribeRE, showCertRE, signinRE, statusRE, unsubscribedRE, unsubscribeRE, updatePaypalRE", "pos": ["These should be available without any access tokens: [x] Used for public profile views. [x] Used for confirming and email. [x] Health Check"], "neg": []} {"query": "import { CompletedChallenge } from '../../redux/prop-types'; import { getSolutionDisplayType } from '../../utils/solution-display-type'; import './solution-display-widget.css'; import '@freecodecamp/ui/dist/base.css'; interface Props { completedChallenge: CompletedChallenge;", "pos": ["contains a single CSS rule: This rule is not needed as the underline of the is already turned off by the component library. Remove Remove the class from\nThis issue is open for contribution. Please make sure you read our as well as our , we prioritize contributors following the instructions in our guides. 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."], "neg": []} {"query": "if (this.state.downloadURL) { URL.revokeObjectURL(this.state.downloadURL); } this.props.close(); } render() {", "pos": ["Describe the bug If you complete a challenge, navigate back (taking you to the curriculum), then open a new challenge the success modal will still be open. To Reproduce Steps to reproduce the behavior: to the challenge -enter the success modal back to that the modal is still present Expected behavior The modal should be closed every time you leave a challenge. Screenshots !"], "neg": []} {"query": "- HOME_LOCATION=http://$DOCKER_HOST_LOCATION:8000 - API_LOCATION=http://$DOCKER_HOST_LOCATION:3000 volumes: - .:/app - node_modules:/app/node_modules - client_node_modules:/app/client/node_modules - server_node_modules:/app/api-server/node_modules - curriculum_node_modules:/app/curriculum/node_modules - challenge_md_parser_node_modules:/app/tools/challenge-md-parser/node_modules - seed_node_modules:/app/tools/scripts/seed/node_modules - client_plugin_nav_data_node_modules:/app/client/plugins/fcc-create-nav-data/node_modules - .:/app:delegated - node_modules:/app/node_modules:delegated - client_node_modules:/app/client/node_modules:delegated - server_node_modules:/app/api-server/node_modules:delegated - curriculum_node_modules:/app/curriculum/node_modules:delegated - challenge_md_parser_node_modules:/app/tools/challenge-md-parser/node_modules:delegated - seed_node_modules:/app/tools/scripts/seed/node_modules:delegated - client_plugin_nav_data_node_modules:/app/client/plugins/fcc-create-nav-data/node_modules:delegated working_dir: /app/api-server command: npm run develop ports:", "pos": ["Is your feature request related to a problem? Please describe. Building project using docker on macOS is notoriously slow, after some googling, I found that there's some ways to boost the performance of this process. I post the link to the posts I read in here just in case someone want some reference Here's the link to performance comparison Here's the GitHub issue related to the subject In a nutshell, building project with docker on mac is unbearably slow, so, I use flag when run docker, here's the screenshot on how I modified my docker- to make the build process from almost forever to just a few second: (I still modify a section but there's no enough space to include that to the screenshot, anyway, you can tell from the preview pane on the upper right) ! Describe the solution you'd like So, I suggest include this change to yaml file in the project, or(see next) Describe alternatives you've considered Add an extra notice to , letting those who use mac be aware this issue and let them know how to alleviate the pain. PS: I'm also happy to help with this issue\nSure, the docker setup guide has not seen much love lately. Its intial intention was to remove the friction of installing the services like MongoDB, etc. However, it has become painfully slow when setting up from scratch. Please feel free to open a PR for benifit of everyone.\nThanks for the response! So, which option do you recommend? modify the docker- file and make the PR add a new notice in the contribution guide for those who run the project from scratch PS: thanks to the usage of flag , I never hear those crazy fan noise from my old MBP anymore and the CPU usage of the docker is really low now~\nLets start by adding the flag like you have tested. We could merge the PR and keep it under observation for a few days. We could add a warning or remove/overhaul the docker setup if the flags break something, later.\nHey, man, thanks for the advice and sorry for not keeping the update or work on it for several days, I'm currently dealing with some life emergency, and magically, the only thing that can let me feel less painful or pain-free is immerse myself in the world of coding how crazy!", "Anyway, I just opened a PR and hopefully that can help a lot of people using mac and try to build the project from docker~ PS: I kind of favor adding a note on the guide to remind those with mac to do the flag thing when they build the project, because slow building only happen on mac I think, although this could lead to problems like forgot to remove the flag in the file when they commit so they push to the remote and cause a lot of conflicts... Anyway, adding this flag while building on PC or Linux shouldn't cause any problem I think, because means the change between host and container is not in sync immediately... hmm... sounds like a problem... but for more on it I think you should consult the docker doc I posted above\nHey Benjamin. Hope that you are hanging in well. Stay strong and I wish you the very best in whatever you are dealing with. Keep doing what you love. Thanks a lot for the PR, and your contributions during these hard times. I will take a look at the PR and will check your recommendations. I hope you have a great day ahead. Goodluck.\nThank you so much for the kind words you said, you have no idea what they means to me during this time... thank you!!!! And I am really grateful that I am able to find peace inside the world of code... Also, there seems some problems of the cypress testing of my pr.... dang it... anyway, I will have a look on it as well later. Thank you guys! Stay safe! And have a great day!\nHey I'm glad you're able to find some peace, that's some good news. As for the cypress testing, don't worry about it - I'll investigate. It's almost certainly not your code. It looks like a old bug that I thought I'd squashed."], "neg": []} {"query": ")}`} onChange={this.handleInputChange} data-index={node.value} style={{ width: `${ blankAnswers[node.value].length * 11 + 11 }px` }} size={blankAnswers[node.value].length} aria-label={t('learn.blank')} /> );", "pos": ["In the fill in the blank challenges, the size of the blanks are based on the number of characters in that blank. It's 11px per letter, plus an additional 11px buffer - This works pretty good, but sometimes you get a word with really wide letters and it doesn't fit: \"Screenshot 3 !== 3 3 !== '3' 4 !== 3 3 !== 3 // false 3 !== '3' // true 4 !== 3 // true ``` In order, these expressions would evaluate to `false`, `true`, and `true`. # --instructions-- Add the strict inequality operator to the `if` statement so the function will return the string `Not Equal` when `val` is not strictly equal to `17`", "pos": ["The student has to go all the way down up to the explanation \"In order, these expressions would evaluate to true, false, true, and true.\" to realize what the result of the operations is. My suggestion is that the second section of the code should look like this: 1 == 1 // true 1 == 2 // false 1 == '1' // true \"3\" == 3 // true instead of the screenshot attached. # --description--", "pos": ["The fill-in-the-blank sentence doesn't match what the character says. The written sentence is: The character says: Note the \"the\", instead of \"our\". No response Device: all OS: all Browser: all Version: all No response\nThank you for reporting the issue. Note for maintainers: Step 54 () uses \"our\" instead of \"the\" in the quiz. I think it's fine as-is since there isn't associated audio/caption text, but I'd vote updating it, too, for consistency. This issue is open to first-time code contributors to this repository. Requirements: In Change the text in the tag from to In Change the text in the tag from to Change the fill-in-the-blank text from to Change the backtick placement in the description text from ` In Change the text of the answers from to Please make sure you read our , we prioritize contributors following the instructions in our guides. 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.\nHi I've created a PR addressing these changes."], "neg": []} {"query": "function* logToConsole(channel) { yield takeEvery(channel, function*(args) { yield put(updateLogs(args)); yield put(updateLogs(escape(args))); }); }", "pos": ["I stumbled upon this issue when playing around with the challenge. If a user wanted to see what the output of the final variable (the converted version of the string) to the FCC console, it does not get rendered showing the converted entities. You can see in the screenshot below that the browser console has the correct values but the FCC console does not show the same thing. ! I am guessing there are several other challenges where the user would not see the HTML code and would instead send the rendered version in the FCC console."], "neg": []} {"query": "challenge: ChallengeWithCompletedNode; }) => ( {challenge.title}", "pos": ["A2 English blocks have challenges whose title is displayed next to a completion indicator. The indicator is having a right margin, which creates a gap between the indicator and the text. \"Screenshot - [Start MongoDB and seed the database](how-to-setup-freecodecamp-locally.md#step-3-start-mongodb-and-seed-the-database) - [Start MongoDB and seed the database](how-to-setup-freecodecamp-locally.md#step-3-start-mongodb-and-seed-the-database). In order for Playwright tests to work, be sure that you use the `pnpm run seed:certified-user` command. - [Start the freeCodeCamp client application and API server](how-to-setup-freecodecamp-locally.md#step-4-start-the-freecodecamp-client-application-and-api-server)", "pos": ["I had a facepalm moment when I was working on a set of Playwright tests. The tests passed locally but failed in CI, and turned out I was seeding my DB with demo user () while we seed CI with certified user (): The failure was expected then, because the tests were working with different user data. I'm now wondering if we should recommend developing with over in general. If we are okay with this, we will need to update the following section of the : \"Screenshot ```js // The global variable var fixedValue = 4; const incrementer = val => val + 1; // Only change code below this line function incrementer (fixedValue) { return fixedValue + 1; // Only change code above this line } ``` ", "pos": ["\", \"\", \"cat photos\", \"\", \"\", \"\", \"\", \"

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

\",", "pos": ["! Challenge has an issue. User Agent is: if (i >= (n - 1) / 2) { return true; } if ( arr[i] >= arr[2 * i + 1] && arr[i] >= arr[2 * i + 2] && isHeap(arr, 2 * i + 1, n) && isHeap(arr, 2 * i + 2, n) ) { return true; } return false; if( arr[i] < arr[2 * i + 1] || arr[i] < arr[2 * i + 2] ){ return false; } if (i > (n - 1) / 2) { return true; } if (isHeap(arr, 2 * i + 1, n) && isHeap(arr, 2 * i + 2, n)) { return true; } return false; } assert( (function () { let test = false; if (typeof MaxHeap !== 'undefined') { test = new MaxHeap(); } else { return false; } let max = Infinity; const [result, vals] = [[], [2, 15, 3, 7, 12, 7, 10, 90]]; vals.forEach((val) => test.insert(val)); for (let i = 0; i < vals.length; i++) { const curHeap = test.print(); const arr = curHeap[0] === null ? curHeap.slice(1) : curHeap; if (!isHeap(arr, 0, arr.length - 1)) { return false; let max = Infinity; const [result, vals] = [[], [9, 3, 5, 2, 15, 3, 7, 12, 7, 10, 90]]; vals.forEach((val) => test.insert(val)); for (let i = 0; i < vals.length; i++) { const curHeap = test.print(); const arr = curHeap[0] === null ? curHeap.slice(1) : curHeap; if (!isHeap(arr, 0, arr.length - 1)) { return false; } const removed = test.remove(); if (!vals.includes(removed)) return false; if (removed > max) return false max = removed; result.push(removed); } const removed = test.remove(); if (!vals.includes(removed)) return false; if (removed > max) return false max = removed; result.push(removed); } for (let i = 0; i < vals.length; i++) { if (!result.includes(vals[i])) { return false; } } return true for (let i = 0; i < vals.length; i++) { if (!result.includes(vals[i])) { return false; } } return true; })() ); ```", "pos": ["A wrong solution is accepted at coding-interview-prep/data-structures/remove-an-element-from-a-max-heap challenge The test case for The remove method should remove the greatest element from the max heap while maintaining the max heap property should not pass. The next example shows that, the function does not maintain the max heap properly: Device: [Laptop] OS: [ Windows 10] Browser: [Chrome] Version: [121.0.6167.86]\nOK, I have make it."], "neg": []} {"query": "} function handleRunRequest(data: PythonRunEvent['data']) { if (ignoreRunMessages) return; const code = (data.code.contents || '').slice(); // TODO: use reset-terminal for clarity? postMessage({ type: 'reset' }); const { runPython, getResetId, globals, printException } = initRunPython(); // use pyodide.runPythonAsync if we want top-level await try { runPython(code); } catch (e) { const err = e as PythonError; // the formatted exception is printed to the terminal printException(); // but the full error is logged to the console for debugging console.error(err); const resetId = getResetId(); // TODO: if a user raises a KeyboardInterrupt with a custom message this // will be treated as a reset, the client will resend their code and this // will loop. Can we fix that? Perhaps by using a custom exception? if (err.type === 'KeyboardInterrupt' && resetId) { // If the client sends a lot of run messages, it's easy for them to build // up while the worker is busy. As such, we both ignore any queued run // messages... ignoreRunMessages = true; // ...and tell the client that we're ignoring them. postMessage({ type: 'stopped', text: getResetId() }); if (ignoreRunMessages) return; const code = (data.code.contents || '').slice(); // TODO: use reset-terminal for clarity? postMessage({ type: 'reset' }); const { runPython, getResetId, globals, printException } = initRunPython(); // use pyodide.runPythonAsync if we want top-level await try { runPython(code); } catch (e) { const err = e as PythonError; // the formatted exception is printed to the terminal printException(); // but the full error is logged to the console for debugging console.error(err); const resetId = getResetId(); // TODO: if a user raises a KeyboardInterrupt with a custom message this // will be treated as a reset, the client will resend their code and this // will loop. Can we fix that? Perhaps by using a custom exception? if (err.type === 'KeyboardInterrupt' && resetId) { // If the client sends a lot of run messages, it's easy for them to build // up while the worker is busy. As such, we both ignore any queued run // messages... ignoreRunMessages = true; // ...and tell the client that we're ignoring them. postMessage({ type: 'stopped', text: getResetId() }); } } finally { getResetId.destroy(); printException.destroy(); globals.destroy(); } } finally { getResetId.destroy(); printException.destroy(); globals.destroy(); } catch (e) { // This should only be reach if pyodide crashes, but it's helpful to log // the error in case it's something else. console.error(e); void resetPyodide(); } }", "pos": ["Pyodide can crash when adding or method to the class, while NOT trying to write invalid code. I'm mentioning intent, because it can be encountered when attempting to write correct code. ing instance of the class. or method to the class. On each key pressed, code will execute, including the newly written method. So when we are writing the method: Then starting writing inside of the brackets: . Code will be execute also when it's . That's when it will crash hard: Further changes to code will bring up in browser's console: With example challenge to the at the bottom of code. to class definition, add boilerplate: writing between brackets: on the right crashes at the point when it's . Ideally omitting the crashing part. After the crash window needs to be reloaded to make pyodide on the right work again. Tests still appear to work correctly. Recursive function going into maximum call stack size exceeded does not crash pyodide. I've tested example class from above on , it does not crash pyodide."], "neg": []} {"query": "You should import the `Lobster` font. ```js assert(new RegExp('googleapis', 'gi').test(code)); assert($('link[href*=\"googleapis\" i]').length); ``` Your `h2` element should use the font `Lobster`.", "pos": [" # --description--", "pos": ["Change \"You are Sarah\" to \"You're Sarah\" in step 150, 154, and 155 of Learn Greetings in your First Day at the Office. The change is to match the caption text. (The text isn't visible on the Task 155 page, but in the code.) Change \"You are Sarah\" to \"You're Sarah\" in the following files:\nWe introduce contraction form in task 1 () so I assume we would want to use contractions in later tasks. But I'll wait for the curriculum team to confirm before opening this issue up for contribution. (If we don't want to use contraction in these tasks, the caption text should be updated to match the fill the blank text.)"], "neg": []} {"query": "# --instructions-- There is a component in the code editor that is trying to render a `name` property from its `state`. However, there is no `state` defined. Initialize the component with `state` in the `constructor` and assign your name to a property of `name`. There is a component in the code editor that is trying to render a `firstName` property from its `state`. However, there is no `state` defined. Initialize the component with `state` in the `constructor` and assign your name to a property of `firstName`. # --hints--", "pos": ["A user wondering why his solution passed. I then realized the 2nd test test is not working as intended. The user is supposed to assign a string to a property of . The user's solution assigns an uninitialized variable as a property. The purpose of the test is to make sure the user assigns a string value to a prop named , but the test still allows the user to pass as the prop's value and the test passes. Not sure why, but assigning an uninitialized property to ends up assigned an empty string to it. This of course passes the test requirement but defeats the purpose of the learning here. I suggest changed the required property name to something like , so if a user does something like this, all of the tests will fail. Test in question: The second test should fail because the property of should be undefinedbecause it was not initialized by the user's code. 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\nAfter a bit of research, it appears that assigning as a property that is uninitialized is the same as writing: = { } Since the window has no name, it is just an empty string."], "neg": []} {"query": "assert(document.querySelector('img')); ``` Your `img` element should have an `src` attribute. You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name. Your `img` element should have a `src` attribute. You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name. ```js assert(document.querySelector('img').src);", "pos": ["I noticed that we are using both \"a attribute\" and \"an attribute\" in challenge descriptions. And we even use both in the same challenge (): \"Screenshot const sciCompPyBase = '/learn/scientific-computing-with-python/' + 'scientific-computing-with-python-projects'; const sciCompPyBase = '/learn/scientific-computing-with-python'; const dataAnalysisPyBase = '/learn/data-analysis-with-python/data-analysis-with-python-projects'; const machineLearningPyBase =", "pos": ["Describe the bug Clicking on the certification project name results in both in settings and from the view certification page. ! To Reproduce Steps to reproduce the behavior: to either or (note that you must replace in the link) on a certification project name 404 Page Not Found"], "neg": []} {"query": "\"

\" ], \"challengeType\": 0, \"type\": \"waypoint\" \"type\": \"waypoint\", \"nameEs\": \"Activa eventos de pulsaci\u00f3n con jQuery\", \"descriptionEs\": [ \"En esta secci\u00f3n, vamos a aprender c\u00f3mo obtener datos de las APIs. Las APIs - o interfaces de programaci\u00f3n de aplicaciones - son herramientas que utilizan los computadores para comunicarse entre s\u00ed.\", \"Tambi\u00e9n aprenderemos c\u00f3mo actualizar HTML con los datos que obtenemos de estas API usando una tecnolog\u00eda llamada Ajax.\", \"En primer lugar, vamos a revisar lo que hace la funci\u00f3n $(document).ready(). Esta funci\u00f3n hace que todo el c\u00f3digo dentro de ella se ejecute s\u00f3lo hasta que nuestra p\u00e1gina ha sido cargada.\", \"Hagamos que nuestro bot\u00f3n \"Get message\" cambie el texto del elemento con clase message.\", \"Antes de poder hacer esto, tenemos que implementar un evento de pulsaci\u00f3n dentro de nuestra funci\u00f3n $(document).ready(), a\u00f1adiendo este c\u00f3digo:\", \"$(\"#getMessage\").on(\"click\", function(){\", \"\", \"});\" ] }, { \"id\": \"bc000000000000000000001\", \"title\": \"Change Text with Click Events\", \"title\": \"Change Text with Click Events\", \"description\": [ \"When our click event happens, we can use Ajax to update an HTML element.\", \"Let's make it so that when a user clicks the \"Get Message\" button, we change the text of the element with the class message to say \"Here is the message\".\",", "pos": ["[x] Trigger Click Events with jQuery [x] Change Text with Click Events [x] Get JSON with the jQuery getJSON Method [x] Convert JSON Data to HTML [x] Render Images from Data Sources [x] Prefilter JSON [x] Get Geo-location Data\nTrabajando en esta"], "neg": []} {"query": "Return an array with the current date in the formats:
  • 2007-11-23
  • Sunday, November 23, 2007
  • Friday, November 23, 2007
Example output: ['2007-11-23', 'Sunday, November 23, 2007'] Example output: ['2007-11-23', 'Friday, November 23, 2007'] ## Instructions", "pos": [" ", "pos": ["There's a typo in the PR template on line 14. The word additional is misspelled. !"], "neg": []} {"query": "const createOnClick = navigate => e => { e.preventDefault(); gtagReportConversion(); return navigate(`${apiLocation}/signin`); };", "pos": ["I can work on this. A little confused though, since it appears to be there already. Does the mission statement go here? Please provide instructions, thanks."], "neg": []} {"query": "{ name: 'keywords', content: metaKeywords.join(', ') } ]} > ", "pos": ["Describe the bug When you reload a page two style issues appear. The placeholder text moves slightly once the page has fully loaded. The search hits are briefly bold To Reproduce Steps to reproduce the behavior: to (or any page with search) the placeholder text move on the search bar anything the result appear briefly as bold, then change to a normal weight Expected behavior The page should start with the styles it ends up getting. Screenshots !\nHey, I wanna help with it. Where can I find the code for it? (First time contributing)\nI'm not 100% sure where the problem is, but the , and components are all involved to some degree. Somehow the are not getting the right classes when first rendered I think. I'm planning to take a closer look myself, tomorrow, but you're welcome to submit a PR/share any insight. As you wish!\nIt turns out it wasn't anything to do with those components. The problem is that the font doesn't get loaded until it's needed - in this case when the search results appear. That causes a brief flash of and that's the cause of the problem. I'm going to look into pre-loading the fonts and clear this up."], "neg": []} {"query": "onClick={() => togglePane('showPreviewPortal')} > {getPreviewBtnsSrText().portal}
", "pos": ["A camper mentioned in his comment, that this icon below indicate to them that it's an external link not a popup. ! We can change it to clearer icon that show, that it's a popup. The original comment for context:\nI found it interesting, that say you should use ellipsis (\u2026) when there is some additional action required after the action (popup, dialog, confirmation) and it isn't clear by the action itself. This doesn't mean you should use an ellipsis whenever an action displays another window only when additional information is required to perform the action. Consequently, any command button whose implicit verb is to \"show another window\" doesn't take an ellipsis, such as with the commands About, Advanced, Help (or any other command linking to a Help topic), Options, Properties, or Settings. So maybe an ellipsis of some kind: in button's label or in the icon? More so, it's a part of too. If we were to stick with keeping an icon regardless, this regular feels like a better choice, with the arrow denoting there would be some kind of external interface but the enclosed square representing that it is not an external redirection, thus denoting some kind of popup or modal.\nI think these guides are saying that the ellipses should be when the button opens a window that requires the user to enter more information or perform another action. This isn't the case here, so I don't think they are warranted in this instance. If we want to use a new icon then I would suggest we use one that has . I'm not suggesting that we use this exact icon. This is just an example of what I'm suggesting.\nI second the use of some kind of variation of that icon. There's a small issue though, there's no such icon in the font awesome library for this so we'll have to find a different way to implement this.\nFont awesome has an icon that could have the same meaning: Alternatively Material Icons has a specific preview icon if these can be used?\ncan you assign me this task?\nissues with label, aren't open for contribution yet. You can however browse the label help wanted for open issues\nallright sir\nBoth and both are plausible.\nI'd suggest we should move forward to replace the icon with the icon. Should I move ahead and send over a PR? This is the output - !\nSure. Just make sure we don't need to add other dependencies to get that icon."], "neg": []} {"query": "5. Install a code editor of your choice. We highly recommend using [Visual Studio Code](https://code.visualstudio.com/) or Android Studio. We also recommend installing the official [extensions](https://docs.flutter.dev/get-started/editor?tab=vscode) We highly recommend using [Visual Studio Code](https://code.visualstudio.com/) or Android Studio. We also recommend installing the official [extensions](https://docs.flutter.dev/get-started/editor?tab=vscode). ## Fork the repository on GitHub", "pos": ["in the docs, there is a line that is missing period at the end of it. These should have period in the end of it Here is the markdown file Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our moderators will guide you through this. Sometimes we may get more than one pull requests. We typically accept the most quality contribution, followed by the one that is made first. Happy contributing.\nI will work on that"], "neg": []} {"query": "3. \u5e2e\u52a9\u6211\u4eec\u4e3a[YouTube\u9891\u9053\u89c6\u9891](https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ/videos)\u6dfb\u52a0\u5b57\u5e55\u3002 ##\u8d21\u732e\u4e88\u5f00\u6e90\u4ee3\u7801\u5e93 ## \u8d21\u732e\u4e88\u5f00\u6e90\u4ee3\u7801\u5e93 \u6211\u4eec\u6709\u6570\u4ee5\u5343\u8ba1\u7684[\u7f16\u7801\u6311\u6218](https://learn.freecodecamp.org)\u548c[\u6307\u5357\u6587\u7ae0](https://guide.freecodecamp.org)\u96c6\u4e2d\u5728\u8fd9\u4e2a\u5e9e\u5927\u7684\u5f00\u6e90\u4ee3\u7801\u5e93\u4e2d\u3002", "pos": ["Describe your problem and how to reproduce it: Anchor links such is not working properly in several languages. For sure is not working in: Russian, Spanish, Chinese languages. Add a Link to the page with the problem: Tell us about your browser and operating system: Browser Name: Chrome Browser Version: Version 74.0.3729.169 (Official Build) (64-bit) Operating System: Windows 10 Pro 1809 If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box): !\nThese 3/4 PRs (exlude one - which I PR'd to my own forked-repo) may close this issue. Please review them."], "neg": []} {"query": "shift = 3 --fcc-editable-region-- def caesar(): --fcc-editable-region-- alphabet = 'abcdefghijklmnopqrstuvwxyz' encrypted_text = ''", "pos": ["In the Building a Cipher project, comment is first mentioned in step 51: But in step 59, we actually introduce comment and its syntax: In step 51, we introduce function parameters, so I think mentioning comment here would be a little overwhelming. I think the comment introduction should either be moved to an earlier challenge or kept in step 59. If we move the comment introduction to an earlier challenge, step 51 can be kept as-is. But if we keep comment introduction in step 59, we should update step 51. Instead of asking the users to comment out the code, I wonder if we could ask them to remove the line entirely (though the code is in step 50, so it's probably a little odd to immediately remove it in the next step).\nThis does seems to be out of sequence. I would suggest to not comment out in step 51 and let the exception be(the resolution is there in the coming steps). This part of the instruction can be updated from: to:\nIf we don't ask to comment out the function call in step 51 and tell the campers they will work on fixing the error in the next steps, it would be logic to address the error in the console () and require to pass the two positional arguments to the function call in step 52. But then the function will seem to work fine, although it's still using the and variable inside its body instead of the function parameters. The alternative is to ignore the in the console for step 52, and address it directly in step 53. For that we should simply keep the function call instead of commenting it out and there is no need to swap the step order. Honestly, I don't like particularly any of these options."], "neg": []} {"query": " /* global HOME_PATH */ import { ofType } from 'redux-observable'; import { tap, ignoreElements } from 'rxjs/operators';", "pos": ["While Gatsby allows us to create globals in we also make use of for that purpose. We should DRY this out and use one ( seems the best). See"], "neg": []} {"query": "## --seed-contents-- ```html ``` # --solutions--", "pos": ["An empty solution seed with the following format does not parse correctly in Crowdin: ! Adding an empty new-line between the backtick lines will parse correctly in Crowdin: ! The following files have empty seeds with the first format and need a blank line : JavaScript / Basic JavaScript comment your javascript code declare javascript variables declare string variables initializing variables with the assignment operator passing values to functions with arguments return a value from a function with return write reusable javascript with functions JavaScript / ES6 create a javascript promise JavaScript / Object Oriented Programming define a constructor function Front End Libraries / Bootstrap Create a bootstrap headline Front End Libraries / React Create a complex jsx element Quality Assurance Projects metric imperial converter Coding Interview Prep / Data Structures Create an ES6 Javascript Map\nHi, I'll add those blank lines. It'll be my first time contributing to an open-source project, though.\nPlease visit to find all the info you will need to get started with contributing a fix for this issue.\nAlright. I'll go through the documentation.\nHi. First time contributor here. I have forked the free code camp files to my github page. I have cloned them locally, opened the appropriate folders into my VSCode editor and made the changes (though I was not able to find a # --seed-- in Quality Assurance Projects: metric imperial conversion) but now I have no idea of how to get the code back here. Is there some documentation with instructions on how to do that? Thanks in advance."], "neg": []} {"query": ".container .row.flashMessage.negative-30 .row.flashMessage .col-xs-12.col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-3 if (messages.errors || messages.error) .alert.alert-danger.fade.in", "pos": ["We need to push these notifications down so there's a reasonable space between them and the navbar (perhaps 20px?). !\nIt's been years since I've done a PR :) I managed to have the website downloaded locally and all that. It seemed that the overlapping was caused by a class negative-30 that gave a margin-top: -30px. Removed it for flash partial view. It is also used in 2 other places but not sure right now if needed or not.\nThanks for your PR. CamperBot automatically closed it. Could you follow its instructions and try again? We'd value your help with this.\nSure thing. I actually made a separate branch (as in the instructions) but what I did was merge that branch into main one and did the PR from the main one. Now, I realise that I should have made the PR from that branch so that CamperBot will work."], "neg": []} {"query": "- HOME_LOCATION=http://$DOCKER_HOST_LOCATION:8000 - API_LOCATION=http://$DOCKER_HOST_LOCATION:3000 volumes: - .:/app - node_modules:/app/node_modules - client_node_modules:/app/client/node_modules - server_node_modules:/app/api-server/node_modules - curriculum_node_modules:/app/curriculum/node_modules - challenge_md_parser_node_modules:/app/tools/challenge-md-parser/node_modules - seed_node_modules:/app/tools/scripts/seed/node_modules - client_plugin_nav_data_node_modules:/app/client/plugins/fcc-create-nav-data/node_modules - .:/app:delegated - node_modules:/app/node_modules:delegated - client_node_modules:/app/client/node_modules:delegated - server_node_modules:/app/api-server/node_modules:delegated - curriculum_node_modules:/app/curriculum/node_modules:delegated - challenge_md_parser_node_modules:/app/tools/challenge-md-parser/node_modules:delegated - seed_node_modules:/app/tools/scripts/seed/node_modules:delegated - client_plugin_nav_data_node_modules:/app/client/plugins/fcc-create-nav-data/node_modules:delegated working_dir: /app/client command: npm run develop -- -H '0.0.0.0' ports:", "pos": ["Is your feature request related to a problem? Please describe. Building project using docker on macOS is notoriously slow, after some googling, I found that there's some ways to boost the performance of this process. I post the link to the posts I read in here just in case someone want some reference Here's the link to performance comparison Here's the GitHub issue related to the subject In a nutshell, building project with docker on mac is unbearably slow, so, I use flag when run docker, here's the screenshot on how I modified my docker- to make the build process from almost forever to just a few second: (I still modify a section but there's no enough space to include that to the screenshot, anyway, you can tell from the preview pane on the upper right) ! Describe the solution you'd like So, I suggest include this change to yaml file in the project, or(see next) Describe alternatives you've considered Add an extra notice to , letting those who use mac be aware this issue and let them know how to alleviate the pain. PS: I'm also happy to help with this issue\nSure, the docker setup guide has not seen much love lately. Its intial intention was to remove the friction of installing the services like MongoDB, etc. However, it has become painfully slow when setting up from scratch. Please feel free to open a PR for benifit of everyone.\nThanks for the response! So, which option do you recommend? modify the docker- file and make the PR add a new notice in the contribution guide for those who run the project from scratch PS: thanks to the usage of flag , I never hear those crazy fan noise from my old MBP anymore and the CPU usage of the docker is really low now~\nLets start by adding the flag like you have tested. We could merge the PR and keep it under observation for a few days. We could add a warning or remove/overhaul the docker setup if the flags break something, later.\nHey, man, thanks for the advice and sorry for not keeping the update or work on it for several days, I'm currently dealing with some life emergency, and magically, the only thing that can let me feel less painful or pain-free is immerse myself in the world of coding how crazy!", "Anyway, I just opened a PR and hopefully that can help a lot of people using mac and try to build the project from docker~ PS: I kind of favor adding a note on the guide to remind those with mac to do the flag thing when they build the project, because slow building only happen on mac I think, although this could lead to problems like forgot to remove the flag in the file when they commit so they push to the remote and cause a lot of conflicts... Anyway, adding this flag while building on PC or Linux shouldn't cause any problem I think, because means the change between host and container is not in sync immediately... hmm... sounds like a problem... but for more on it I think you should consult the docker doc I posted above\nHey Benjamin. Hope that you are hanging in well. Stay strong and I wish you the very best in whatever you are dealing with. Keep doing what you love. Thanks a lot for the PR, and your contributions during these hard times. I will take a look at the PR and will check your recommendations. I hope you have a great day ahead. Goodluck.\nThank you so much for the kind words you said, you have no idea what they means to me during this time... thank you!!!! And I am really grateful that I am able to find peace inside the world of code... Also, there seems some problems of the cypress testing of my pr.... dang it... anyway, I will have a look on it as well later. Thank you guys! Stay safe! And have a great day!\nHey I'm glad you're able to find some peace, that's some good news. As for the cypress testing, don't worry about it - I'll investigate. It's almost certainly not your code. It looks like a old bug that I thought I'd squashed."], "neg": []} {"query": "

**Projects**: [Random Quote Machine](https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine), [Markdown Previewer](https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-markdown-previewer), [Drum Machine](https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-drum-machine), [JavaScript Calculator](https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-javascript-calculator), [25 + 5 Clock](https://www.freecodecamp.org/learn/front-end-libraries/front-end-libraries-projects/build-a-25--5-clock) #### 4. Data Visualization Certification - [Data Visualization with D3](https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3)", "pos": ["This is a broken link. \"Screen #nav-lang-menu li:first-child { border-bottom: 0.1rem solid var(--gray-45) !important; } button.nav-link:focus { color: var(--tertiary-color); background-color: var(--tertiary-background);", "pos": ["The language selection menu is not intuitive about the no. of available options. It's a bit paradoxical at the moment: You will not notice additional options until you start scrolling while being on top of the options. You will not start scrolling until you know there are additional options. to '/learn' on 'Menu' down to 'Change Language' the cursor on the options Scrolling while being in the area of the listed options. menu should be very clean and intuitive. \"Cancel Change\" option should have some form of visual separation. https://user- Device: All Devices OS: All OS Browser: All Browsers Version: All Versions No response\nthis will start becoming evident with more languages on the list. The quickest and simplest way this can be handled is by slightly increasing the height of the list and decreasing the height of the hover-state highlight (each item). That will leave some space at the bottom of the last item, intuitively letting the user know there is more to be looked at. Currently, the perfect-sized (height) items and the overall height of the list make it difficult to notice more entries. Finally, that \"Cancel\" option should be a different color or have some form of visual separation.\nis this issue still being worked on? If not, I would like to take it.\nThat makes sense, I thought we fixed that. should be removed for and\nor anyone else interested, this is up for grabs.\nThis is what makes the language menu full length so no vertical scroll bar appears. Originally, I had the language menu set so that a vertical scroll bar would appear if it was taller than the main menu. But it was decided that there shouldn't be a vertical scroll bar, the language menu should be as tall as necessary so no scroll bar was needed. Is this what we still want? Even as we continue to add even more languages?\nthanks for bringing this up. Ideally we would need to show as many languages as possible in a viewport and display a minified scroll bar if the list exceeds the height viewport minus of the navigation. We could show a scrollbar initially as you recommended, but the dropdown needs expand further than the main menu if needed."], "neg": []} {"query": "# --description-- Congratulations! You finished the lessons on React and Redux. There's one last item worth pointing out before you move on. Typically, you won't write React apps in a code editor like this. This challenge gives you a glimpse of what the syntax looks like if you're working with npm and a file system on your own machine. The code should look similar, except for the use of `import` statements (these pull in all of the dependencies that have been provided for you in the challenges). The \"Managing Packages with npm\" section covers npm in more detail. Congratulations! You finished the lessons on React and Redux. There's one last item worth pointing out before you move on. Typically, you won't write React apps in a code editor like this. This challenge gives you a glimpse of what the syntax looks like if you're working with a file system on your own machine. The code should look similar, except for the use of `import` statements (these pull in all of the dependencies that have been provided for you in the challenges). Finally, writing React and Redux code generally requires some configuration. This can get complicated quickly. If you are interested in experimenting on your own machine, the Create React App comes configured and ready to go.", "pos": ["Currently, the instructions in module, mention about subsection, which is a subsection of a completely different course ( i.e. course ). At the moment, those instructions in module, only mention the name of the \"Managing Packages with NPM\" subsection and no link has been provided to that particular subsection. Keeping that in mind, I believe to make it easier for the user to navigate to the subsection from within the instructions of module, a link to the subsection should be provided within the module. Hence, taking the above point into consideration, I believe the last line in the first paragraph of module, should be changed from: To The last line in the first paragraph of module, should be changed to: \"image\" :not(pre) > code { border: 1px solid var(--secondary-color); } .challenge-instructions code { white-space: break-spaces; }", "pos": ["Unnecessary borders are displayed around each line in the solution code of certification projects. For example: to someone's certification page on 'View' ('View Code') to see the solution code Each line in the solution code should not have borders around it ! Device: Laptop OS: Windows 10 Browser: Chrome Version: 114.0.5735.199 (Official Build) (64-bit) The border seems to be in\nHi the borders on the code doesnt seem to be a good UX. I would like to take up this issue.\nHello! I would like to work on this issue. Seems to be a quick fix.\nHey. Contributions are very welcome. Please take a look at to get started.\n! Would this sample look better ?\nI have fixed the issue and created a pull request . Please review it and let me know if there are any concerns.\nTo solve the issue move the properties in , to CSS selector that affects the challenges' layout, or doesn't affect the setting layout.\nSimply removing the border property in fixes the issue ! ! Is it fine if done this way? I have reverted the changes I made to the bootstrap file back to its original form.\nHow can we find those code files from the repo ? If the particular link to the file is not provided in the issue.\nHello I would like to request to be assigned to fix this\nHi! I would like to take up this issue"], "neg": []} {"query": "} const { textarea } = this.state; const placeholderText = `Please provide as much detail as possible about the account or behavior you are reporting.`; return ( Report a users profile | freeCodeCamp.org

Do you want to report {username} 's profile for abuse?

We will notify the community moderators' team, and a send copy of this report to your email:{' '} {email}. this report to your email: {email}

We may get back to you for more information, if required.

Additional Information What would you like to report? placeholder='' placeholder={placeholderText} value={textarea} />
); }", "pos": ["\"Screen outline-offset: 1px; outline: 1px dashed #A0A0A0; }", "pos": [" # --description--", "pos": ["Change \"You are Sarah\" to \"You're Sarah\" in step 150, 154, and 155 of Learn Greetings in your First Day at the Office. The change is to match the caption text. (The text isn't visible on the Task 155 page, but in the code.) Change \"You are Sarah\" to \"You're Sarah\" in the following files:\nWe introduce contraction form in task 1 () so I assume we would want to use contractions in later tasks. But I'll wait for the curriculum team to confirm before opening this issue up for contribution. (If we don't want to use contraction in these tasks, the caption text should be updated to match the fill the blank text.)"], "neg": []} {"query": "{ allowedTags: [], allowedAttributes: [] }); }).replace(/"/g, '\"'); if (data.body !== sanitizedBody) { req.flash('errors', { msg: 'HTML is not allowed'", "pos": [" Read these guidelines in English \u4e2d\u6587 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0639\u0631\u0628\u064a Espa\u00f1ol \u4e2d\u6587 Portugu\u00eas \u0420\u0443\u0441\u0441\u043a\u0438\u0439 Espa\u00f1ol \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac ", "pos": ["Describe your problem and how to reproduce it: When you try to change contibution guidelines language - you'll see how the languages table's order is desynchronized and in several languages you cannot find new Greek language. Add a Link to the page with the problem: Tell us about your browser and operating system: Browser Name: Chrome Browser Version: Version 74.0.3729.169 (Official Build) (64-bit) Operating System: Windows 10 Pro 1809 If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box): !"], "neg": []} {"query": "// (re)initializes the plugin var reset = function() { requests = 0; plugin = new jailed.Plugin(path+'plugin_v0.1.2.js', api); plugin = new jailed.Plugin(path+'plugin_v0.1.3.js', api); plugin.whenDisconnected( function() { // give some time to handle the last responce setTimeout( function() {", "pos": ["the first line in the function says - it wont pass testing unless you change it to Browser Name: Firefox Browser Version: 60.0.1 Operating System: High Sierra ! function countOnline(usersObj) { function countOnline(allUsers) { // Only change code below this line // Only change code above this line", "pos": ["This seed code can lead to a bit of confusion because the global variable name and parameter name are pretty similar What about isn't my favorite if someone has another idea. I just don't like when the type isn't strictly needed. No response All No response\ncan I work on this if anyone is not working?\nThis issue isn't ready for PRs yet\nOne idea for naming: -or -\nI went with something other than because 1) that's the example 2) at least one learner has has said was a little hard to grok at first We could change the example (and maybe we should in light of 2?)\nI can appreciate the idea behind it but I don't think the names should imply they are different things, and are not the same thing. Wouldn't just changing to for the parameter and leaving the object name as is work?\nWe can use that as the parameter name; I like it better than . This still doesn't fully handle the user complaint though. I see two problems 1) is a really awkward variable name. Swapping to fixes this. 2) Given the example, its an easy bug for users to write instead of the intended . Not sure if we want to address this or ignore this. Changing the global object name seems to be the best way to address this.\nMaybe what really needs to be done is to change the example to something else, like maybe or something like that?\nIf we change the parameter we should change the example as well. Either to something unrelated and change the text as needed, or it would need to use as well. I think we are, in part, trying to fix the underlying issue of campers not fully understanding parameters and arguments. Which I'm not sure how or where to address. I think the code highlighter isn't helping either. Usually, const and arguments are colored differently from parameters and reassignable variables. As an example (I changed the loop to use const as well) !\nNot sure how I feel about the parameter name but it might work.\nI like the direction. How about Instructions Sometimes you need to iterate through all the keys within an object. You can use a await new Promise(resolve => setTimeout(resolve, 50)); // Brief additional delay to allow UI to update await new Promise(resolve => setTimeout(resolve, 1000)); // Additional delay to allow UI to update assert.lengthOf(typesEl.children, 1); assert.strictEqual(typesEl?.children[0]?.innerText.trim().toLowerCase(), 'electric');", "pos": ["When testing one camper's code it fails some tests unless I increase all the delays to 1000ms, I tested with 500ms but that was not enough. I also saw the example project fail a test but it does pass more consistently (my guess is it is just faster with fewer async functions). To be on the safe side we should have a longer delay. I know 1000ms is a lot but better safe than sorry. Tests: Valid code should not fail because of \"timing\" issues. 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] Forum:\nAs this is a bug with a certificate project I the showstopper label."], "neg": []} {"query": "# --description-- JavaScript has seven primitive data types, with `String` being one of them. In JavaScript, a string represents a sequence of characters and can be enclosed in either single (`'`) or double (`\"`) quotes. JavaScript has seven primitive data types, with String being one of them. In JavaScript, a string represents a sequence of characters and can be enclosed in either single (`'`) or double (`\"`) quotes. Note that strings are immutable, which means once they are created, they cannot be changed. The variable can still be reassigned another value.", "pos": ["There are some small issues that need to be fixed in the following files: optionfor elementsinline\"Check your code\" String` This looks like something that can be fixed by \"first-time\" code contributors to this repository. The files you should look at to work on a fix are those linked above. Please make sure you read our , we prioritize contributors following the instructions in our guides. 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.\nHi I'd like to work on this issue. Thanks\nHey We typically do not assign issues. Instead, we accept the first pull request that comprehensively solves the issue. Issues labelled with or are open for contributions. Please make sure you read . We prioritize contributors following the instructions in our guide. Join us in or if you need help contributing - our community will be happy to assist you."], "neg": []} {"query": "var image = !{JSON.stringify(image)}; .spacer h3.row.col-xs-12 h3.row .row.text-left.negative-10 .col-xs-3.col-sm-1.text-center .row.negative-5", "pos": ["! In Firefox 36.0.1 on OS X 10.9.5 Link:\nFirefox appears to be jamming the comment-list on top of the display area for the main story.\nThose elements are floating left because of .col-xs-12 on the h3."], "neg": []} {"query": "--- id: 56bbb991ad1ed5201cd392ce title: Manipulate Arrays With unshift() title: Manipulate Arrays With unshift Method challengeType: 1 videoUrl: 'https://scrimba.com/c/ckNDESv' forumTopicId: 18239", "pos": ["Describe the bug Having special character in the slug, title, or heading of the challenges lead to broken structure as shown in the image below. Originally reported by ! These challenges are the translation of these. ! Although we can not add them in the Arabic translation, this is a fix to the side effect, because Arabic isn't the only RTL language with translation efforts. I think it's better to not include special characters in the heading, if they aren't wrapped in spaced, example 'the Logical And Operator &&'. So I suggest two solutions: Delete special character, if they aren't wrapped around spaces, like change \"push()\" to \"push\". Add code block around functions and methods, to be something like .\nWould it be acceptable to spell these out a little more? Instead of We could do Not only do we get rid of the special characters but it possibly makes it a little clearer for people listening to the page.\nIn translation, that's perfectly fine . Good call."], "neg": []} {"query": "### --feedback-- Places to eat or drink. Don't forget the stress mark. Places to eat or drink. Don't forget the stress mark (`\u00e9`). ---", "pos": ["Describe the bug Task 37 requires typing in one of the blanks. This can be problematic due to the letter, which might not be present in the used keyboard layout. Expected behavior I don't want to say to use completely different word for the fill the blank, as at some point there might be no other choice. There could be some kind way to ease up procuring of the letter in question, for example including it in the feedback, so it can be copied.\nHi I would love to work on this. If someone could point me in the right direction, that would be amazing!\nHi Thank you for being eager to contribute. This issue has not been triaged yet. Feel free to share your insights and ideas on the matter. However as far as the code contributing, take a look at the issues with label. Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our moderators will guide you through this. Thank you and happy coding.\nYes, I think in both of those challenges we can update the \"Don't forget the stress mark.\" in the feedback to: \"Don't forget the stress mark ().\"\nI will open the issue to contribution with this as the solution"], "neg": []} {"query": "padding:10px 0; padding-left:50px; padding-right:20px; cursor: pointer; } a {", "pos": ["On the map, if I hover my cursor over a link, it shows the text selection cursor, not the clicker cursor.\nI get both pointers and text selectors in Chrome. Same with a big map (full page). !"], "neg": []} {"query": "import CollegeAlgebra from './college-algebra'; import CSharpLogo from './c-sharp-logo'; import A2EnglishIcon from './a2-english'; import B1EnglishIcon from './b1-english'; import RosettaCodeIcon from './rosetta-code'; const iconMap = {", "pos": ["The B1 English icon isn't available, so we are temporarily using the A2 icon for this superblock. \"Screenshot 0, 'Make your h1 element visible on your page by uncommenting it.')\", \"assert($('h2').length > 0, 'Make your h2 element visible on your page by uncommenting it.')\", \"assert($('p').length > 0, 'Make your p element visible on your page by uncommenting it.')\", \"assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete the --> that ends the comment.')\" \"assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete all trailing comment tags, i.e. -->.')\" ], \"challengeSeed\": [ \"\", \"\", \"
\", \"

jQuery Playground

\", \"
\", \"
\", \"

#left-well

\", \"
\", \" \", \" \", \" \", \"
\", \"
\", \"
\", \"

#right-well

\", \"
\", \" \", \" \", \" \", \"\", \"
\", \"

jQuery Playground

\", \"
\", \"
\", \"

#left-well

\", \"
\", \" \", \" \", \" \", \"
\", \"
\", \"
\", \"

#right-well

\", \"
\", \" \", \" \", \" \", \"
\", \"
\", \"
\", \"
\", \"
\" \"\" ], \"type\": \"waypoint\", \"challengeType\": 0", "pos": ["Challenge text reads: \"For example, your jQuery Playground h3 element has the parent element of , which itself has the parent body.\" However, the placeholder code doesn't have the ![Image - QA Warning Message](./images/crowdin/qa-message.png) ![Image - QA Warning Message](https://contribute.freecodecamp.org/images/crowdin/qa-message.png) This message appears when Crowdin's QA system has identified a potential error in the proposed translation. In this example, we have modified the text of a `` tag and Crowdin has caught that.", "pos": ["! Our local images currently do not render in the translated documentation views. This is due to the use of a relative link, which breaks with the new path generated for i18n pages. A couple of potential fixes: Use an absolute link ( **Hint** Refer to the example code in the text editor if you get stuck. # --hints-- `myArray` should be an `array`.", "pos": ["", "pos": ["Change \"You are Sarah\" to \"You're Sarah\" in step 150, 154, and 155 of Learn Greetings in your First Day at the Office. The change is to match the caption text. (The text isn't visible on the Task 155 page, but in the code.) Change \"You are Sarah\" to \"You're Sarah\" in the following files:\nWe introduce contraction form in task 1 () so I assume we would want to use contractions in later tasks. But I'll wait for the curriculum team to confirm before opening this issue up for contribution. (If we don't want to use contraction in these tasks, the caption text should be updated to match the fill the blank text.)"], "neg": []} {"query": "code[class*='language-'], pre[class*='language-'] { border-radius: 0; border: none; } pre {", "pos": ["Unnecessary borders are displayed around each line in the solution code of certification projects. For example: to someone's certification page on 'View' ('View Code') to see the solution code Each line in the solution code should not have borders around it ! Device: Laptop OS: Windows 10 Browser: Chrome Version: 114.0.5735.199 (Official Build) (64-bit) The border seems to be in\nHi the borders on the code doesnt seem to be a good UX. I would like to take up this issue.\nHello! I would like to work on this issue. Seems to be a quick fix.\nHey. Contributions are very welcome. Please take a look at to get started.\n! Would this sample look better ?\nI have fixed the issue and created a pull request . Please review it and let me know if there are any concerns.\nTo solve the issue move the properties in , to CSS selector that affects the challenges' layout, or doesn't affect the setting layout.\nSimply removing the border property in fixes the issue ! ! Is it fine if done this way? I have reverted the changes I made to the bootstrap file back to its original form.\nHow can we find those code files from the repo ? If the particular link to the file is not provided in the issue.\nHello I would like to request to be assigned to fix this\nHi! I would like to take up this issue"], "neg": []} {"query": "# --description-- Move the right eye into position with a `position` property of `absolute` a `top` of `54px`, and a `left` of `134px`. Move the right eye into position with a `position` property of `absolute`, a `top` of `54px`, and a `left` of `134px`. # --hints--", "pos": ["this sentence is missing a comma after \"absolute\". This looks like something that can be fixed by \"first-time\" code contributors to this repository. You should look at the file linked above. Please make sure you read our , we prioritize contributors following the instructions in our guides. 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."], "neg": []} {"query": "You can use the built-in function `print()` to print the output of your code on the terminal. Functions are reusable code blocks that you can call (run) when you need them. To call (or invoke) a function, you just need to write a pair of parentheses next to its name. You will learn more about functions very soon. Functions are reusable code blocks that you can call, or invoke, to run their code when you need them. To call a function, you just need to write a pair of parentheses next to its name. You will learn more about functions very soon. For now, go to a new line and add an empty call to the `print()` function. You should not see any output yet.", "pos": ["The second paragraph of the instructions (shown below) uses parentheses twice. \"Screenshot \"monaco-editor\": \"^0.17.1\", \"monaco-editor\": \"^0.18.1\", \"monaco-editor-webpack-plugin\": \"^1.7.0\", \"nanoid\": \"^1.2.2\", \"prismjs\": \"^1.17.1\",", "pos": ["Describe the bug When viewing any challenge in Firefox, I can scroll in the instructions/theory part of the window, but the scrolling does not work in the code editor. I have tried with an external mouse as well as with the Trackpad in my Mac. In the same computer and with the same devices it works perfectly using Chrome. To Reproduce to any challenge. to scroll inside the code editor. does not work. Expected behavior It should scroll. Desktop: macOS 10.14.6 Mozilla Firefox 69.0.3 Additional context So far, to scroll in Firefox I have to click and drag the side scrolling bar in order to navigate the code. I think I'm only having this issue since the last redesign, but I may be wrong on this.\nI've noticed this for quite a while - but I don't recall if it was present before the latest redesign.\nI am also experiencing this problem as of the update. Windows 10 desktop Firefox 69.0.3 External mouse with a scroll wheel In order to scroll I have to find the very small and hard to see scroll bar inside the code editor and click+drag\nHaving the same issue as you Might take a dig in the code/inspector and see what's up.\nIt looks like a possible bug with the monaco editor (we are using monaco-editor\": \"^0.17.1\") I confirmed the bug locally first and I then updated to the latest version of monaco and the scroll works again in Firefox. So it has been fixed. I'm just not sure how involved it is for us to update the editor?\nThanks for digging into this and finding the updates. I think we should be able to update monaco-editor itself which we have as a dep: But the issue right now is to confirm if react-monaco-editor is going to play along as well: I think I could not bump it last time I was trying to update it. Opening up for investigation and fix. A PR is most welcome, or any pointers are welcome as well.\nI am also experiencing this problem after the update. MacOS 10.14.6 Firefox 69.0.3 Both external mouse with a scroll wheel and Macbook Pro trackpad cannot scroll the code window however Chrome and Safari browser does not have this problem.\nI was able to update to both and .", "I updated react-monaco to 0.18.1 and react-monaco-editor to 0.31.0, did a few challenges locally and didn't see any immediate issues from the editor update. A PR would just be a chore update to and package- correct?\nThanks for reporting, please use the voting feature instead of confirming further. We know this is a confirmed bug, more so in an underlying library that we have little control over. We are working on a solution. Keeping the thread free for solutions will help.\nYes please. You are the rockstar."], "neg": []} {"query": "], [ \"http://i.imgur.com/sfsidp6.jpg\", \"El texto \"Volverse bueno programa requiere tiempo.\"\", \"El texto \"Volverse bueno programando requiere tiempo.\"\", \"Volverse bueno programando requiere tiempo. No esperar\u00edas derrotar a un maestro del ajedrez despu\u00e9s de jugar por 3 meses. No esperes crear el pr\u00f3ximo Facebook despu\u00e9s de programar 3 meses.\", \"\" ],", "pos": ["[X] Learn how Free Code Camp Works [X] Create a GitHub Account and Join our Chat Rooms [X] Configure your Code Portfolio [X] Join a Campsite in Your City [X] Learn What to Do If You Get Stuck"], "neg": []} {"query": "```js assert.strictEqual( (function () { bob.setFirstName('Haskell'); return bob.getFullName(); _test_bob.setFirstName('Haskell'); return _test_bob.getFullName(); })(), 'Haskell Ross' );", "pos": ["A user can fail with correct code because the tests secretly rely upon global variables accessible to the user. This code fails because the user has the correct solution but deleted the instantiation of the object. Tests should instantiate any data they need. We should update the seed code to We should then add and modify the test suite to use instead of . No response All No response\nHello, Just to clarify, did you want to add in the user code block? Because I noticed when I attempted to reproduce the bug you encountered that two test cases still passed, despite not being initialized in the user's code. I checked the lesson's markdown file and found out that those two test cases did have their own initialized. I was thinking of adding to all the test cases instead. For reference, here's the code for one of the test cases that still passed, despite the bug.\nThose tests initiate their own values so they are fine. I'm talking about the tests that fail if users modify their seed code to not have the object initialization. The new variable would go into a new --after-user-code-- part; that's not currently present. Just adding this new variable inside of the seed creates the exact same problem. Note - this issue isn't marked as ready for contributions yet. Maybe we should review if the tests logic too to see if they are independent\nOpening this up for contribution.\nHi assign this issue for branch bugfix/. I have resolved it, need to create PR for same\nWe don't assign issues. The first PR that fully covers the issue will be accepted.\nHi ok !! I have raised PR . thanks for reply."], "neg": []} {"query": "

{t('learn.fill-in-the-blank')}

{/* what we want to observe is ctrl/cmd + enter, but ObserveKeys is buggy and throws an error if it encounters a key combination, so we have to pass in the individual keys to observe */}

{splitSentence.map((s, i) => {", "pos": ["The English curriculum was as an upcoming change. A new \"Fill in the blank\" style challenge was created for it. When you go to one of these challenges and try to type an , it doesn't show up (sometimes). If you type it really quickly after a different character, it does show up. I'm quite sure the hotkeys are interfering - if you turn them off, the problem goes away. The is the one that we noticed, but there could be other characters that have this issue as well. Fill in the blank style challenges the codebase with the upcoming changes shown to one of the fill in the blank challenges: http://localhost:8000/learn/a2-english-for-developers/learn-greetings-in-your-first-day-at-the-office/right to type an in the blank, it doesn't work of keyboard shortcuts in settings, it does work All keys to work all the time. Related discussion:"], "neg": []} {"query": "\"title\": \"Generate Random Whole Numbers within a Range\", \"difficulty\":\"9.9829\", \"description\":[ \"We can use a certain mathematical expression to get a random number between between two numbers.\", \"We can use a certain mathematical expression to get a random number between two numbers.\", \"Math.floor(Math.random() * (max - min + 1)) + min\", \"By using this we can control the output of a random number.\" ],", "pos": ["Challenge has an issue. \"We can use a certain mathematical expression to get a random number between between two numbers.\" double between Best regards. misuta !"], "neg": []} {"query": "| passport-linkedin-oauth2 | Sign-in with LinkedIn plugin. | | passport-oauth | Allows you to set up your own OAuth 1.0a and OAuth 2.0 strategies. | | request | Simplified HTTP request library. | | lodash | Handy JavaScript utlities library. | | lodash | Handy JavaScript utilities library. | | uglify-js | Dependency for connect-assets library to minify JS. | | mocha | Test framework. | | chai | BDD/TDD assertion library. |", "pos": ["The updated topic banner on the is covering up a couple of the table headers here \"Screen On each player's turn, the player removes one or more stones from the piles. However, if the player takes stones from more than one pile, the same number of stunes must be removed from each of the selected piles. On each player's turn, the player removes one or more stones from the piles. However, if the player takes stones from more than one pile, the same number of stones must be removed from each of the selected piles. In other words, the player chooses some $N > 0$ and removes:", "pos": ["! there is written stUnes instead of stOnes This looks something that can be fixed by \"first time\" code contributors to this repository. Here are the files that you should be looking at to work on a fix: List of files: Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our moderators will guide you through this. Sometimes we may get more than one pull requests. We typically accept the most quality contribution followed by the one that is made first. Happy contributing."], "neg": []} {"query": "const { close, isOpen, isSignedIn, submitChallenge, handleKeypress, message,", "pos": ["I'm testing beta. Describe the bug When submitting a challenge using Ctrl+Enter it automatically completes also the following challenge. To Reproduce Steps to reproduce the behavior: a logged out user to the first challenge it Ctrl+Enter marks as solved also the following challenge and you can go ahead Expected behavior It should solve the current challenge and present the following one. Screenshots As you can see I can submit multiple challenges: ! Desktop (please complete the following information): OS: Ubuntu Browser Firefox Version 69.0.1 Additional context I've been able to reproduce it on but I could skip only one challenge. On my local dev I managed to skip 4.\nI've digged a bit on this issue, and I think the problem is somehow related to this line: As this is triggered also when I'm submitting the finished challenge. If I comment that line out everything works fine, meaning I can Ctrl+Enter to run the tests and submit and the bug disappear. I'm going to dig a bit more, but does that makes any sense to you?\nThanks for testing our beta version and reporting this! You rock. /cc\nThanks It looks like I didn't test the logged out behaviour. so, what do we want to happen for logged out users? The issue I see is that it currently says 'Submit and go to the next challenge', but clearly they can't submit. For now, do we just want them to see the same as logged in users (and quietly not submit)?\nHere is what I would do: ! Of course the modal should close as well like you mentioned. The signin button can link to same as the home page CTA. And we could remove from the first button\nTurns out it's not working properly even when the user is logged in. I think it's a race condition between and . was quite right, the problem is on that line. It shouldn't be called if the modal is open since it's listening to as well.\nyes I think it's with the in the editor and the in the . I can give a further look later if you wish.\nThanks for the offer but I think (with your help!) I've fixed it. It seemed only fair, since I introduced the bug.\nExcellent!\nRelease on its way, should be available within the hour."], "neg": []} {"query": "import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { FormFields, BlockSaveButton, BlockSaveWrapper } from './'; import { FormFields, BlockSaveButton, BlockSaveWrapper, formatUrlValues } from './'; const propTypes = { buttonText: PropTypes.string,", "pos": ["Describe the bug Submitting the solution link as \"\" produces an error. Submitting \"\" does not. Whenever we submit a solution link \"\" it is appended with \"/api/\" so resultant solution gives \"Not Found/Timeout error\" and the same link submitted without \"/\" like \"\" gives solution as accepted. To Reproduce Steps to reproduce the behavior: to on 'solution input box' \"https://freecodecamp-\" solution gets accepted. \"https://freecodecamp-\" error Expected behavior This should be tackled as Chrome appends \"/\" by default to any domain URL you copy, so people who would copy URL from search bars will get URLs appended with \"/\" hence producing wrong results. This file shows the testString is directly appended with \"/api\" without checking if the input URL contains \"/\" at the end or not. Screenshots ! Desktop (please complete the following information): OS: Ubuntu 18 Browser: Google Chrome Version 73.0.3683.75\nI am not having this problem - my project will pass the tests with or without the trailing https://fcc-manage-npm- and https://fcc-manage-npm- both pass for me in chrome Can you share a share a screen shot of the error?\nUpdated\nhmm, it's strange that my project will give a good response when that string is appended but not yours https://fcc-manage-npm- - package as response https://freecodecamp- - not found as response not sure what is causing this - the only difference seems to be that I'm using glitch and you're using heroku in fact mine will work like this... https://fcc-manage-npm- so maybe how the two websites process a route or something? can they do that? glitch strips out the extra or something? weird Either way - I think a solution like you suggested would probably work - check if the submitted URL ends in a and remove it if it's there. This same problem probably occurs throughout the whole backend area all over the place.\nWeird, would u check with an alternative hosting if the problem persists? If the problem persists the last solution would be stripping the las from input url\nDid you try this Above is the actual link processed in the test with an appended , It gives a response with the same as it is shown in the screenshot I posted. So I guess the problem is with the routing of Heroku."], "neg": []} {"query": "font-size: 1.5rem; } .donation-modal .btn-link:focus { outline-width: 1px; outline-style: solid; } @media screen and (max-width: 991px) { .donation-icon-container { margin: 30px;", "pos": ["Describe the bug The popup modal for becoming a sponsor cannot be closed by just using the keyboard. To Reproduce Steps to reproduce the behavior: some challenges which triggers the modal Expected behavior The modal closes when pressing the Esc key The modal closes when clicking somewhere outside of the modal I can navigate to the \"Ask me later\" button with the tab key to close the modal Screenshots ! Desktop (please complete the following information): OS: Ubuntu Browser: chrome and firefox Version: Latest Smartphone (please complete the following information): Unknown\nThis is by design to the best of my knowledge. I would defer to Quincy for a confirmation.\nThanks for reporting that the \"ask me later\" link should be accessible by tab but you're correct - it isn't. We will fix this. We decided not to have escape key / clicking outside of the modal to dismiss this modal (like we do with other modals) since the goal is to get people to actually slow down and consider donating to our nonprofit - not to just mash the escape key."], "neg": []} {"query": "assert(document.querySelectorAll('.characters > div')?.length === 4); ``` Your two new `div` elemnts should have the `class` set to `blue`. Your two new `div` elements should have the `class` set to `blue`. ```js const divs = document.querySelectorAll('.characters > div');", "pos": ["There is a typo in learn-intermediate-css-by-building-a-picasso-painting, is used instead of . Here is the typo Here is the markdown file Please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our moderators will guide you through this. Sometimes we may get more than one pull requests. We typically accept the most quality contribution, followed by the one that is made first. Happy contributing.\ncan i take this up\nfeel free to open pull request after you have read the guidelines"], "neg": []} {"query": "} ::selection { background-color: rgba(var(--highlight-color), 0.3); background-color: var(--selection-color); } @media (max-width: 500px) {", "pos": ["If I try to select text with my mouse so I can copy/paste it or something - the selected text has the same background as the rest of the page. Making it difficult to see what is selected, and frustrating to try and select, well anything. ! This seems to occur across the entire site. Perhaps it was intentional or something, but I don't think it's a good ux. Note: the text does actually get selected, so you can still copy/paste it. Tested on Chrome and Firefox\nGood catch. It'll be this PR: which didn't scope the change to challenge descriptions. I'll put together a quick fix. Edit: nevermind, it's just that has to be passed four values, not two. I don't quite understand how this ever worked."], "neg": []} {"query": "## Description

A side effect of the sort method is that it changes the order of the elements in the original array. In other words, it mutates the array in place. One way to avoid this is to first concatenate an empty array to the one being sorted (remember that concat returns a new array), then run the sort method. A side effect of the sort method is that it changes the order of the elements in the original array. In other words, it mutates the array in place. One way to avoid this is to first concatenate an empty array to the one being sorted (remember that slice and concat return a new array), then run the sort method.
## Instructions", "pos": ["Feature Request: Add as valid method to clone/copy array and as an alternative to Link to challenge: I often use () to return an array copy, as this is what MDN recommends. When I was working on this challenge I could not get it to pass, even though my solution was returning the correct answer. The challenge ONLY accepts answers that use the format [].concat(arr). The wording in the challenge is clear, but experience from earlier challenges hava been lenient as long as you provide a valid solution. Other reasons: When googling for array copying the top result from MDN recommends slice.()MDN's Array page recommends using () for array copying opinion, is more readable than\nYou have to also view the test text as part of the instructions for the challenges. In this case, one of the the challenge test expects you to use the method. It even mentions the method in the Description section of the challenge. Always read the test text to make sure you understand what is being asked of you.\nIf anyone working on this issue? I would like to take care of this. In my opinion, has a point in that the test should allow .slice() if the effect is the same - we know that many times people can solve a problem in multiple ways, and that should be ok. Please let me know. I can either clarify the text so that the user knows to use concat, or I can modify both the description and the test so that .slice(0) is accepted ( I am inclining more towards the second option though).\nI bring it up since alternative solutions has been accepted previously in the corriculum. As long as the final solution is correct. It was frustrating to have the tests fail even though the output was correct.\nI normally would agree, but the description mentioned and the test case specifically tells you to use\nDoes it have to be specifically .concat() though? The test seems to be about learning mutation and which functions have side effects and how to work around that. We learn about both concat and slice earlier on, and it seems arbitrary to only accept concat. If the point of the challenge is to learn about concat that's fair. I'd recommend mentioning that .slice() is also an option, but ask to use .concat() still.", "If the point is avoiding mutation and being aware that certain methods like .sort() will have side effects on the original array. Then I don't understand why it's so strict.\nand After thinking a bit more about your points, I agree this challenge could be updated to allow any valid method for copying the array (, , , ) and other possible ways not mentioned. While looking at the challenge tests, I also realized someone could still technically hard-code the final return value, so I created a PR to address your concerns and attempt to not allow hard coding of the final array returned."], "neg": []} {"query": "You are provided sentences with some missing words, like nouns, verbs, adjectives and adverbs. You then fill in the missing pieces with words of your choice in a way that the completed sentence makes sense. Consider this sentence - It was really **____**, and we **____** ourselves **____**. This sentence has three missing pieces- an adjective, a verb and an adverb, and we can add words of our choice to complete it. We can then assign the completed sentence to a variable as follows: Consider this sentence: ```md It was really ____, and we ____ ourselves ____. ``` This sentence has three missing pieces- an adjective, a verb and an adverb, and we can add words of our choice to complete it. We can then assign the completed sentence to a variable as follows: ```js const sentence = \"It was really \" + \"hot\" + \", and we \" + \"laughed\" + \" ourselves \" + \"silly\" + \".\";", "pos": ["The following sentence in the Word Blanks lesson should have a code block (three backticks) surrounding the code section which is directly referring to the completed code block below it on the page. Instead of: Consider this sentence - It was really , and we ourselves . It should say: Consider this sentence - The sentence has been translated because of the missing code blocks (and will not make sense as it's a direct reference to the actual code shown below it) The sentence with the blanks should be in a code block that does not wrap. (three backticks above and below it) Instead of: Consider this sentence - It was really , and we ourselves . It becomes: Consider this sentence - No response n/a No response\nQuestion for those in the know. Do we have a way to keep content from being translated that doesn't involve using the triple back tick code block? I would be cool to use sr-only text \"Blank\" (or something similar) for those underlines to represent missing text. But we can't do that using the code blocks since they are wrapped in a .\nDo they get wrapped in a if they're inline code?\nIt looks like they are just wrapped in strong tags in crowdin at least. I don't see a pre tag.\npre sounds like a plausible idea. We should go ahead with that.\nThe challenge require the sentence to not be translated, and element don't stop translation, it gives the choice to the translation to translate or not, which isn't ideal. Here is the file, to solve this issue, change the structure of the sentence to md It was really , and we ourselves . ` If you would like to fix this issue, please make sure you read , we prioritize contributors following the instructions in our guides. Join us in or if you need help contributing, our prolific contributors will guide you through this.\nnope, but we can open an issue for this yes\nCan you assign me this issue\nOnly issues with the or label is open 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"], "neg": []} {"query": "button1.onclick = buyHealth; button2.onclick = buyWeapon; button3.onclick = goTown; } --fcc-editable-region--", "pos": ["In step 41 of the RPG project in the JS beta curriculum, the instruction states: Change the property of the to be \"You enter the store.\". I believe this sentence is not 100% clear without either removing the word \u201cthe\u201d in front of or adding the word \u201cvariable\u201d to the right of . As it is, the sentence misleads a bit because it says \u201cthe \u201d which makes it sound like it is referring to some text somewhere, instead of the text variable. so either: Change the property of to be \"You enter the store.\". or Change the property of the variable to be \"You enter the store.\". will be clearer. Please look at questions posted on the forum for examples of people missing the point of the request with the current wording. I personally prefer the second one. N/A N/A N/A Example of confused learner:"], "neg": []} {"query": "} if (provider === 'email') { return User.findOne$({ where: { email } }) return User.findOne$({ where: { email: new RegExp(email.replace('.', '.'), 'i') } }) .flatMap(user => { return user ? Observable.of(user)", "pos": ["I can't change my email address on the settings page. Anyone one else want to confirm this?\nHappy to help on this - I poked around a bit and believe I've found the source of the bug. Also glad to point you in that direction if you prefer to handle this since you've already assigned it to yourself.\nSure, thing go for a PR if you have something ready.\nI have a WIP PR ready - cool if I open that?\nDo it you can use draft mode if it's not ready.", "Describe the bug TL;DR \u2013 first signed up with GitHub (which has email # 1 set as primary). Lately changed the email on FCC to email # 2 and since then unable to log in using any of the available methods. I have two emails: .domain On GitHub, I have the first one as a primary email and the second one as a secondary. IIRC, I first signed up to FCC with GitHub, so the letters were going to my first email. Then I set my email at FCC to the second one and this is where the fun begins. What happens when I try to log in using different methods: As you can see, no method allows me to log into my original account. Email bindings shown in each of the accounts: My session cookie is still present in one of the browsers and when I try to change the email back to # 1, it says that it is already bound to another account, which is fair enough.\nDoes something need to be clarified? It's not a \"Help\" issue, it's a bug report.\nWhat if you try to change your email to some other email - then go to the browser that's still logged in with the original account, and change the email back to - or if you're still logged in on a browser with your original account, maybe change the email to a new email and see if that will allow you on to your original account. It doesn't get to the root of the problem, but it may get you back on to your original account.\nHi Thanks for your report. Can you send me an email with details of your emails. I'll fix up your account, and investigate the root cause and possible fix there on.\nI no longer have this session. I've sent an email, the subject is as the name of the issue.\nI can see that we indeed have two accounts for each of your emails listed in the email. For all intents and purposes, we only use email as the primary identifier of your account. So, it literally depends on what a provider returns us as an email address to lookup and sign you into the account. For example: First email: Changed email: Scenario 1: When you sign-in through email, you must use your changed email \"\", using the old email will indeed create a new account for \"\". We do not track old emails per account as a measure of privacy.", "Scenario 2: When you sign-in through social providers like GitHub, they should be returning us the changed email, or indeed it will simply create a new account for the email they returned to us. We do not bind email to social provider again for privacy reasons. Essentially by design, we will create or return an account as per the authentication method used.\nWell, the thing is \u2013 there are now three accounts. The original one is .\nOkay, I found the issue. Thanks for the additional information. This indeed is a validation bug, when someone changes email. So, when you entered your email on the update form in settings: You entered something like: , this was stored on our DB as is without sanitising it to lowercase. And the providers will always return lowercase emails. We unfortunately treated this incorrectly. If you are okay, I am going to delete your 'new accounts' and restore the email that you intended as per the change lower-cased, which should give you access back to your original account. As for the fix, I'll audit the code and get back to you.\nI don't use them, so yeah.\nthanks for confirming, I have updated the email to be lowercased on your original account and removed the new accounts. Can you test this and let me know, if it's all fixed.\nYep, it's working.\nThe fix for this is dependent on"], "neg": []} {"query": "\"Vamos a darle un id \u00fanico a cada uno de nuestros elementos div que tienen la clase well.\", \"Recuerda que puedes darle a un elemento un id como el siguiente:\", \"<div class=\"well\" id=\"center-well\">\", \"Dale al pozo de la izquireda el id left-well. Al pozo de la derecha, dale un id de right-well.\" \"Dale al pozo de la izquireda el id left-well. Al pozo de la derecha, dale un id right-well.\" ] }, {", "pos": ["[ ] Use Responsive Design with Bootstrap Fluid Containers [ ] Make Images Mobile Responsive [ ] Center Text with Bootstrap [ ] Create a Bootstrap Button [ ] Create a Block Element Bootstrap Button [ ] Taste the Bootstrap Button Color Rainbow [ ] Call out Optional Actions with Button Info [ ] Warn your Users of a Dangerous Action [ ] Use the Bootstrap Grid to Put Elements Side By Side [ ] Ditch Custom CSS for Bootstrap [ ] Use Spans for Inline Elements [ ] Create a Custom Heading [ ] Add Font Awesome Icons to our Buttons [ ] Add Font Awesome Icons to all of our Buttons [ ] Responsively Style Radio Buttons [ ] Responsively Style Checkboxes [ ] Style Text Inputs as Form Controls [ ] Line up Form Elements Responsively with Bootstrap [ ] Create a Bootstrap Headline [ ] House our page within a Bootstrap Container Fluid Div [ ] Create a Bootstrap Row [ ] Split your Bootstrap Row [ ] Create Bootstrap Wells [ ] Add Elements within your Bootstrap Wells [ ] Apply the Default Bootstrap Button Style [ ] Create a Class to Target with jQuery Selectors [ ] Add ID Attributes to Bootstrap Elements [ ] Label Bootstrap Wells [ ] Give Each Element a Unique ID [ ] Label Bootstrap Buttons [ ] Use Comments to Clarify Code\nWorking on this one"], "neg": []} {"query": "\"assert.deepEqual(inventory([], [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]), [[2, 'Hair Pin'], [3, 'Half-Eaten Apple'], [67, 'Bowling Ball'], [7, 'Toothpaste']]);\", \"assert.deepEqual(inventory([[0, 'Bowling Ball'], [0, 'Dirty Sock'], [0, 'Hair pin'], [0, 'Microphone']], [[1, 'Hair Pin'], [1, 'Half-Eaten Apple'], [1, 'Bowling Ball'], [1, 'Toothpaste']]), [[1, 'Bowling Ball'], [1, 'Dirty Sock'], [1, 'Hair pin'], [1, 'Half-Eaten Apple'], [1, 'Microphone'], [1, 'Toothpaste']]);\" ] }, { \"_id\": \"a2f1d72d9b908d0bd72bb9f6\", \"name\": \"Make a Person\", \"difficulty\": \"3.12\", \"description\": [ \"Fill in the object constructor with the methods specified in the tests.\", \"Those methods are getFirstName(), getLastName(), getFullName(), setFirstName(), setLastName(), and setFullName().\", \"These methods must be the only available means for interacting with the object.\", \"There will be some linting errors on the tests, you may safely ignore them. You should see undefined in the console output.\" ], \"challengeEntryPoint\": \"var bob = new Person('Bob Ross');\", \"challengeSeed\": \"var Person = function(firstAndLast) {n return firstAndLast;rn};\", \"tests\": [ \"expect(Object.keys(bob).length).to.eql(6);\", \"expect(bob instanceof Person).to.be.true;\", \"expect(bob.firstName).to.be.undefined();\", \"expect(bob.lastName).to.be.undefined();\", \"expect(bob.getFirstName()).to.eql('Bob');\", \"expect(bob.getLastName()).to.eql('Ross');\", \"expect(bob.getFullName()).to.eql('Bob Ross');\", \"bob.setFirstName('Happy');\", \"expect(bob.getFirstName()).to.eql('Happy');\", \"bob.setLastName('Trees');\", \"expect(bob.getLastName()).to.eql('Trees');\", \"bob.setFullName('George Carlin');\", \"expect(bob.getFullName()).to.eql('George Carlin');\" ] } ]", "pos": ["

Click here to view more cat photos.

\"A --fcc-editable-region-- ", "pos": ["The catphotoapp project\u2019s step 16 asks users to use a section element however if a user type Section as the tag name, the test rejects the code even though html tags are supposed to be case insensitive. It is expected that this code passes since the correct section element is being created. No response Not applicable Issue found on the forum"], "neg": []}