Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/index.js
index.js
/* 33 JavaScript Concepts is a project created to help JavaScript developers master their skills. It is a compilation of fundamental JavaScript concepts that are important and fundamental. This project was inspired by an article written by Stephen Curtis. Any kind of contribution is welcome. Feel free ...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/vitest.config.js
vitest.config.js
import { defineConfig } from 'vitest/config' export default defineConfig({ test: { include: ['tests/**/*.test.js'], globals: false, environment: 'node' } })
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/async-javascript/callbacks/callbacks.test.js
tests/async-javascript/callbacks/callbacks.test.js
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest' describe('Callbacks', () => { // ============================================================ // OPENING EXAMPLES // From callbacks.mdx lines 9-22, 139-155 // ============================================================ describe('...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
true
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/async-javascript/callbacks/callbacks.dom.test.js
tests/async-javascript/callbacks/callbacks.dom.test.js
/** * @vitest-environment jsdom */ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest' // ============================================================ // DOM EVENT HANDLER CALLBACKS // From callbacks.mdx lines 401-434 // Pattern 1: Event Handlers // ==============================================...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/functional-programming/higher-order-functions/higher-order-functions.test.js
tests/functional-programming/higher-order-functions/higher-order-functions.test.js
import { describe, it, expect, vi } from 'vitest' describe('Higher-Order Functions', () => { describe('Functions that accept functions as arguments', () => { it('should execute the passed function', () => { const mockFn = vi.fn() function doTwice(action) { action() action() ...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/functional-programming/map-reduce-filter/map-reduce-filter.test.js
tests/functional-programming/map-reduce-filter/map-reduce-filter.test.js
import { describe, it, expect } from 'vitest' describe('map, reduce, filter', () => { describe('map()', () => { it('should transform every element in the array', () => { const numbers = [1, 2, 3, 4] const doubled = numbers.map(n => n * 2) expect(doubled).toEqual([2, 4, 6, 8]) }) ...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/functional-programming/pure-functions/pure-functions.test.js
tests/functional-programming/pure-functions/pure-functions.test.js
import { describe, it, expect } from 'vitest' describe('Pure Functions', () => { describe('Rule 1: Same Input → Same Output', () => { it('should always return the same result for the same inputs', () => { // Pure function: deterministic function add(a, b) { return a + b } expect(...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/functional-programming/recursion/recursion.test.js
tests/functional-programming/recursion/recursion.test.js
import { describe, it, expect } from 'vitest' import { JSDOM } from 'jsdom' describe('Recursion', () => { describe('Base Case Handling', () => { it('should return immediately when base case is met', () => { function countdown(n) { if (n <= 0) return 'done' return countdown(n - 1) } ...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
false
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/functional-programming/currying-composition/currying-composition.test.js
tests/functional-programming/currying-composition/currying-composition.test.js
import { describe, it, expect } from 'vitest' describe('Currying & Composition', () => { describe('Basic Currying', () => { describe('Manual Currying with Arrow Functions', () => { it('should create a curried function with arrow syntax', () => { const add = a => b => c => a + b + c ...
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
true
leonardomso/33-js-concepts
https://github.com/leonardomso/33-js-concepts/blob/5cda73bac940173b77d19a23a208fea234ca6c33/tests/web-platform/http-fetch/http-fetch.test.js
tests/web-platform/http-fetch/http-fetch.test.js
"import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'\n\n// ====================(...TRUNCATED)
javascript
MIT
5cda73bac940173b77d19a23a208fea234ca6c33
2026-01-04T14:56:49.684692Z
true
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
91

Models trained or fine-tuned on Shuu12121/github-file-programs-dataset-javascript