Dataset Viewer
Auto-converted to Parquet Duplicate
hexsha
stringlengths
40
40
size
int64
10
794k
ext
stringclasses
1 value
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
5
220
max_stars_repo_name
stringlengths
6
117
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
6
max_stars_count
int64
1
14.7k
max_stars_repo_stars_event_min_datetime
stringdate
2015-01-01 01:20:43
2022-03-31 19:18:09
max_stars_repo_stars_event_max_datetime
stringdate
2015-01-02 05:08:12
2022-03-31 23:57:55
max_issues_repo_path
stringlengths
5
220
max_issues_repo_name
stringlengths
6
117
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
6
max_issues_count
int64
1
3.42k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
5
220
max_forks_repo_name
stringlengths
6
117
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
6
max_forks_count
int64
0
5.94k
max_forks_repo_forks_event_min_datetime
stringdate
2015-01-01 00:55:08
2022-03-31 23:12:50
max_forks_repo_forks_event_max_datetime
stringdate
2015-01-05 02:59:17
2022-03-31 23:12:50
content
stringlengths
10
794k
avg_line_length
float64
2.9
123
max_line_length
int64
9
497
alphanum_fraction
float64
0.29
0.95
retain
bool
1 class
num_tokens
int64
4
558k
ef737085a8a123fd9842299a4e69ecc6e6739bdb
214
ino
Arduino
examples/3.Advanced/ball/Set_UP.ino
FT81xMania/GD23ZU_FH
05406715ceccabc46849d8e21091f72501e6d313
[ "BSD-3-Clause" ]
1
2021-05-01T04:26:42.000Z
2021-05-01T04:26:42.000Z
examples/3.Advanced/ball/Set_UP.ino
FT81xMania/GD23ZU_FH
05406715ceccabc46849d8e21091f72501e6d313
[ "BSD-3-Clause" ]
null
null
null
examples/3.Advanced/ball/Set_UP.ino
FT81xMania/GD23ZU_FH
05406715ceccabc46849d8e21091f72501e6d313
[ "BSD-3-Clause" ]
1
2021-03-16T08:32:51.000Z
2021-03-16T08:32:51.000Z
void setup() { GD.begin(); //GD.cmd_setrotate(0); IDEMCU(); XMAX=GD.w; YMAX=GD.h; //GD.BitmapHandle(15); GD.cmd_loadimage(0, 0); GD.load("football.png"); //48 MP(); } void loop(){}
15.285714
32
0.53271
true
74
42d75118904fe2637f6bcbd95498cb760c50c0a7
48,612
ino
Arduino
IMAGEDISPLAY.ino
2brandonh/ideahacks
426d2ea613aff073714c62cd9d2b6124d7b88826
[ "Intel" ]
1
2020-01-27T00:43:09.000Z
2020-01-27T00:43:09.000Z
IMAGEDISPLAY.ino
Realises/ideahacks
426d2ea613aff073714c62cd9d2b6124d7b88826
[ "Intel" ]
null
null
null
IMAGEDISPLAY.ino
Realises/ideahacks
426d2ea613aff073714c62cd9d2b6124d7b88826
[ "Intel" ]
1
2020-08-29T04:12:25.000Z
2020-08-29T04:12:25.000Z
/********* Rui Santos Complete project details at https://randomnerdtutorials.com *********/ #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels // Declaration for an SSD13...
81.563758
100
0.638423
true
31,964
97420f90fbd57b7b73d049a6acc106c7ef612161
1,096
ino
Arduino
src/test_dcmotor_speed/test_dcmotor_speed.ino
akafael/spider-rccar
b19714e9e056b320026eca384ba2bc6faa474635
[ "MIT" ]
null
null
null
src/test_dcmotor_speed/test_dcmotor_speed.ino
akafael/spider-rccar
b19714e9e056b320026eca384ba2bc6faa474635
[ "MIT" ]
null
null
null
src/test_dcmotor_speed/test_dcmotor_speed.ino
akafael/spider-rccar
b19714e9e056b320026eca384ba2bc6faa474635
[ "MIT" ]
0
null
null
#include <elapsedMillis.h> #define PINLED 13 #define PINMOTOR_EN 9 #define PINMOTOR1 6 #define PINMOTOR2 5 #define MAX_SPEED 100 #define SPEED_ACC 500 elapsedMillis timerLoop; const int timeStep = 100; // ms elapsedMillis timerGlobal; int speedMotor,speedStep; void setup() { Serial.begin(9600); pinMode(P...
17.396825
83
0.668796
true
331
bcfe318ad4f03e84f639c60d317e2301fc6cc9e5
1,062
ino
Arduino
2017 Robot/src/org/usfirst/frc/team4634/robot/rangefinder-arduino.ino/rangefinder-arduino.ino.ino
Wolfbotz-4634/wolfbotz-code
1545e6ae6ae80408099bda0e04d898e2fc2e0b8f
[ "Apache-2.0" ]
null
null
null
2017 Robot/src/org/usfirst/frc/team4634/robot/rangefinder-arduino.ino/rangefinder-arduino.ino.ino
Wolfbotz-4634/wolfbotz-code
1545e6ae6ae80408099bda0e04d898e2fc2e0b8f
[ "Apache-2.0" ]
null
null
null
2017 Robot/src/org/usfirst/frc/team4634/robot/rangefinder-arduino.ino/rangefinder-arduino.ino.ino
Wolfbotz-4634/wolfbotz-code
1545e6ae6ae80408099bda0e04d898e2fc2e0b8f
[ "Apache-2.0" ]
0
null
null
/***************************************************************************/ // Function: Measure the distance to obstacles in front and display the // result on seeedstudio serialLcd. Make sure you installed the // serialLCD, SoftwareSerial and Ultrasonic library. // ...
31.235294
87
0.546139
true
225
a144236247190d0e2558d63dc72b759244c8829a
3,083
ino
Arduino
Deprecated_fw/sketches/WHID_and_Cactus_micro_rev2_sketches/Arduino_Sketch/Arduino_Sketch.ino
minkione/WHID
a7cc46f992af38d3417cbfb79117a8cd69adc8a1
[ "MIT" ]
1
2018-12-10T10:02:22.000Z
2018-12-10T10:02:22.000Z
Deprecated_fw/sketches/WHID_and_Cactus_micro_rev2_sketches/Arduino_Sketch/Arduino_Sketch.ino
minkione/WHID
a7cc46f992af38d3417cbfb79117a8cd69adc8a1
[ "MIT" ]
null
null
null
Deprecated_fw/sketches/WHID_and_Cactus_micro_rev2_sketches/Arduino_Sketch/Arduino_Sketch.ino
minkione/WHID
a7cc46f992af38d3417cbfb79117a8cd69adc8a1
[ "MIT" ]
0
null
null
/* * ################################################ * #### DEPRECATED FW! Please use ESPloitV2!!! #### * ################################################ * WHID Injector - Arduino Sketch * http://whid.ninja * Forked by Luca Bongiorni * Based on ESPloit by Corey Harding of www.LegacySecurityGroup.com */ /* For...
33.150538
190
0.655855
true
749
d50e75991d4b443492ad74c90a8316f5b370bb20
319
ino
Arduino
ejercicio/_26-motor-servo/_26-motor-servo.ino
MaraniMatias/curso-Arduino
75e17affe629a96630dea3c6209d3830bd0cc337
[ "MIT" ]
null
null
null
ejercicio/_26-motor-servo/_26-motor-servo.ino
MaraniMatias/curso-Arduino
75e17affe629a96630dea3c6209d3830bd0cc337
[ "MIT" ]
null
null
null
ejercicio/_26-motor-servo/_26-motor-servo.ino
MaraniMatias/curso-Arduino
75e17affe629a96630dea3c6209d3830bd0cc337
[ "MIT" ]
0
null
null
#include <Servo.h> Servo myservo; int pos = 0; void setup() { myservo.attach(12); } void loop() { for (pos = 0; pos <= 180; pos += 1) { // desde 0 a 180 grados myservo.write(pos); delay(10); } for (pos = 180; pos >= 0; pos -= 1) { // desde 180 a 0 grados myservo.write(pos); delay(10); } }
15.95
63
0.545455
true
119
8867dd1a46aa6e0ad2178ed6208f90c58b58abf2
11,983
ino
Arduino
Main.ino
georgeuy2/Ferrofluid-Display
6b79eb5cbb94c2f02a19cabc0cea632624bd76c1
[ "Apache-2.0" ]
null
null
null
Main.ino
georgeuy2/Ferrofluid-Display
6b79eb5cbb94c2f02a19cabc0cea632624bd76c1
[ "Apache-2.0" ]
null
null
null
Main.ino
georgeuy2/Ferrofluid-Display
6b79eb5cbb94c2f02a19cabc0cea632624bd76c1
[ "Apache-2.0" ]
0
null
null
/* CS179J Senior Project * Created and designed by: George Uy de Ong II * * Ferrofluid Display * * Parts: * (5) Nema 17 stepper motors * (5) Stepper motor drivers * (5) 24V solenoid * (25) Round shape neodymium magnets * (1) Ferrofluid bottle 250ml * (1) Pow...
23.823062
162
0.594425
true
3,890
17e462a390ea6463294edfee680661be98ceed3d
3,099
ino
Arduino
examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino
winocc/snooze
e62da81df2c713888f1548f0aa61318449764e72
[ "MIT" ]
null
null
null
examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino
winocc/snooze
e62da81df2c713888f1548f0aa61318449764e72
[ "MIT" ]
null
null
null
examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino
winocc/snooze
e62da81df2c713888f1548f0aa61318449764e72
[ "MIT" ]
0
null
null
/************************************************* This example is used when you want to simulate a button being held for certian amount of time before waking your Teensy from deepSleep sleep. This example uses the Bounce library to make sure the button is still pressed for 3 seconds after waking up from low po...
28.431193
78
0.593417
true
742
5526930ac4b84848e71ac221a91d0be12be3f265
8,133
ino
Arduino
Arduino Libraries/Adafruit_BluefruitLE_nRF51-master/examples/hidmouse/hidmouse.ino
Olivinitic/Environment-Monitor
34fbaddce5d126b1aa9559dbb14e717c9ab4e986
[ "MIT" ]
1
2016-06-22T04:31:25.000Z
2016-06-22T04:31:25.000Z
Adafruit_BluefruitLE_nRF51-master/examples/hidmouse/hidmouse.ino
Olivinitic/Garden_Project_Libraries
b868bb7d7dab56a7fbfa7b684711f9ab9ea2b858
[ "MIT" ]
null
null
null
Adafruit_BluefruitLE_nRF51-master/examples/hidmouse/hidmouse.ino
Olivinitic/Garden_Project_Libraries
b868bb7d7dab56a7fbfa7b684711f9ab9ea2b858
[ "MIT" ]
0
null
null
/********************************************************************* This is an example for our nRF51822 based Bluefruit LE modules Pick one up today in the adafruit shop! Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing product...
35.36087
108
0.577647
true
1,753
271aa3dd008a8949180f3cca92cffa512c9dd42e
3,268
ino
Arduino
sd-card-tester.ino
CyberPuck/SD-Card-Tester
fbad6dd10fa2bd311481e154f44e4c0a212caff5
[ "MIT" ]
null
null
null
sd-card-tester.ino
CyberPuck/SD-Card-Tester
fbad6dd10fa2bd311481e154f44e4c0a212caff5
[ "MIT" ]
null
null
null
sd-card-tester.ino
CyberPuck/SD-Card-Tester
fbad6dd10fa2bd311481e154f44e4c0a212caff5
[ "MIT" ]
0
null
null
/** * Simple test for the SD Card using an Arduino Uno R2. * This will do three things: * 1. Connect to card * 2. Get card type * 3. Check the volume size * */ #include<SPI.h> #include<SD.h> // Globals, primarly PIN setup const int CS_PIN = 8; const int CD_PIN = 9; // Primary SD Card object Sd2Card card; // S...
23.342857
80
0.632191
true
896
2b4057fcb64322e02073f25060bf7ff9066a5d72
468
ino
Arduino
examples/01.TurnOnLedIfButtonPressed/Example_01.ino
PeterKapor/Arduino-Button
ff0d1ebad3fd0458f8e2172ef5fcf9d886a0340f
[ "MIT" ]
null
null
null
examples/01.TurnOnLedIfButtonPressed/Example_01.ino
PeterKapor/Arduino-Button
ff0d1ebad3fd0458f8e2172ef5fcf9d886a0340f
[ "MIT" ]
null
null
null
examples/01.TurnOnLedIfButtonPressed/Example_01.ino
PeterKapor/Arduino-Button
ff0d1ebad3fd0458f8e2172ef5fcf9d886a0340f
[ "MIT" ]
0
null
null
#include "Button.h" #define LED_PIN 13 #define BUTTON_PIN 12 #define BUTTON_DEBOUNCE_TIME 10 Button button12(BUTTON_PIN, Button::ButtonInputSetting::DownIsLow, BUTTON_DEBOUNCE_TIME); void setup() { pinMode(LED_PIN, OUTPUT); } void loop() { // refresh state of the button button12.refresh(); // check the button...
18
89
0.726496
true
132
1ce2fe162ae499844e9b426bfc45cd4c99fa443c
1,993
ino
Arduino
arduino/opencr_arduino/opencr/libraries/OpenCR/examples/08. DynamixelWorkbench/o_Read_Write/o_Read_Write.ino
yemiaobing/opencr
8700d276f60cb72db4f1ed85deff26a5f96ce7b6
[ "Apache-2.0" ]
3
2019-12-06T08:28:21.000Z
2021-05-28T22:56:22.000Z
arduino/opencr_arduino/opencr/libraries/OpenCR/examples/08. DynamixelWorkbench/o_Read_Write/o_Read_Write.ino
yemiaobing/opencr
8700d276f60cb72db4f1ed85deff26a5f96ce7b6
[ "Apache-2.0" ]
null
null
null
arduino/opencr_arduino/opencr/libraries/OpenCR/examples/08. DynamixelWorkbench/o_Read_Write/o_Read_Write.ino
yemiaobing/opencr
8700d276f60cb72db4f1ed85deff26a5f96ce7b6
[ "Apache-2.0" ]
1
2019-02-03T04:49:15.000Z
2019-02-03T04:49:15.000Z
/******************************************************************************* * Copyright 2016 ROBOTIS CO., LTD. * * 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.a...
28.471429
85
0.583041
true
492
39bac9fa059fb379c850177a29ed6483149bd440
5,091
ino
Arduino
drive-auto/drive-auto.ino
boothinator/arduino-videos
355136e7af29041984446157910b3f1dfd28e56d
[ "MIT" ]
null
null
null
drive-auto/drive-auto.ino
boothinator/arduino-videos
355136e7af29041984446157910b3f1dfd28e56d
[ "MIT" ]
null
null
null
drive-auto/drive-auto.ino
boothinator/arduino-videos
355136e7af29041984446157910b3f1dfd28e56d
[ "MIT" ]
0
null
null
void setup() { pinMode(7, OUTPUT); pinMode(8, OUTPUT); pinMode(5, OUTPUT); pinMode(9, OUTPUT); pinMode(11, OUTPUT); pinMode(6, OUTPUT); } void loop() { /* * Full course * |-----| |-----| * | | * | | * |-----| */ /* * Current position * X-----| ...
17.141414
31
0.555883
true
1,582
3397d64204480d13df06b3995614082f1422da1f
1,818
ino
Arduino
playground/LED7Segment/ShiftDriveSPI/ShiftDriveSPI.ino
novaprimexex/LittleArduinoProjects
382d9827459882c19afe20513cc1232214a047c6
[ "MIT" ]
1
2020-12-27T17:38:55.000Z
2020-12-27T17:38:55.000Z
playground/LED7Segment/ShiftDriveSPI/ShiftDriveSPI.ino
novaprimexex/LittleArduinoProjects
382d9827459882c19afe20513cc1232214a047c6
[ "MIT" ]
null
null
null
playground/LED7Segment/ShiftDriveSPI/ShiftDriveSPI.ino
novaprimexex/LittleArduinoProjects
382d9827459882c19afe20513cc1232214a047c6
[ "MIT" ]
0
null
null
/* LED7Segment/ShiftDriveSPI Using SPI to control a 7-segment display via a 74HC595 shift register For info and circuit diagrams see https://github.com/tardate/LittleArduinoProjects/tree/master/playground/LED7Segment/ShiftDriveSPI */ #include <SPI.h> SPISettings shiftRegisterSettings(2000000, MSBFIRST, SPI_...
22.170732
133
0.744224
true
520
ceaf11d7f268d359a3557126ee4e8ae9f7a609c7
330
ino
Arduino
shutter_speed_checker.ino
omegaatt36/shutter_speed_checker
730fbe03e295d17d04782d61e164eb1b858754a9
[ "MIT" ]
null
null
null
shutter_speed_checker.ino
omegaatt36/shutter_speed_checker
730fbe03e295d17d04782d61e164eb1b858754a9
[ "MIT" ]
null
null
null
shutter_speed_checker.ino
omegaatt36/shutter_speed_checker
730fbe03e295d17d04782d61e164eb1b858754a9
[ "MIT" ]
0
null
null
#include <Wire.h> // Arduino IDE 內建 int receiverPin = 0; // 宣告腳位2名稱為receiverPin unsigned long duration; // 持續時間 void setup() { pinMode(receiverPin, INPUT); //把receiverPin設為輸入 INPUT Serial.begin(9600); // // 開啟 Serial port, 通訊速率為 9600 bps } void loop() { duration = pulseIn(receiverPin, LOW); Serial.print(dur...
23.571429
59
0.69697
true
113
939a12d0c28cb8615d373564a2dfe2e9f2375ee8
11,862
ino
Arduino
badge_leds_serial.ino
scottymuse/badge_leds_serial
116256a57c16c11fd0b6c7dc06e5d10e1aad8029
[ "MIT" ]
null
null
null
badge_leds_serial.ino
scottymuse/badge_leds_serial
116256a57c16c11fd0b6c7dc06e5d10e1aad8029
[ "MIT" ]
null
null
null
badge_leds_serial.ino
scottymuse/badge_leds_serial
116256a57c16c11fd0b6c7dc06e5d10e1aad8029
[ "MIT" ]
0
null
null
/* AUTHOR: Scott Nielsen (scotty) Thanks to Klint Holmes. I used a lot of his original badge code here and to learn this stuff. And Thanks to Luke Jenkins, Klint Holmes, Matt Lorimer, and Jonathan Karras for these badges! To use: Load this program onto the SaintCON 2014 badge. This does not require any additional ha...
30.03038
147
0.630754
true
3,148
b6a4291b178a78222f87e4ff97ac73ba78ce47d3
1,231
ino
Arduino
arduino/test_pca9685/test_pca9685.ino
serge-m/pwm_radio_arduino
2f5581900ecbdf98e1a1af7ded7bd033d4e0fd30
[ "MIT" ]
null
null
null
arduino/test_pca9685/test_pca9685.ino
serge-m/pwm_radio_arduino
2f5581900ecbdf98e1a1af7ded7bd033d4e0fd30
[ "MIT" ]
null
null
null
arduino/test_pca9685/test_pca9685.ino
serge-m/pwm_radio_arduino
2f5581900ecbdf98e1a1af7ded7bd033d4e0fd30
[ "MIT" ]
0
null
null
#include <Adafruit_PWMServoDriver.h> // using the default address 0x40 Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(); // Analog servos run at ~60 Hz updates int frequency_ = 60; void setup() { Serial.begin(57600); Serial.println("Starting servo test"); pwm.begin(); pwm.setPWMFreq(frequency_); ...
22.381818
67
0.696994
true
380
ea9714a4ac9e70dc67aac3420f50f2e62ee13a43
982
ino
Arduino
test_atmega8/test_atmega8.ino
oloturia/atmega8_test
ab91e7f7dff855514a790a0002328064e63bcbda
[ "Unlicense" ]
null
null
null
test_atmega8/test_atmega8.ino
oloturia/atmega8_test
ab91e7f7dff855514a790a0002328064e63bcbda
[ "Unlicense" ]
null
null
null
test_atmega8/test_atmega8.ino
oloturia/atmega8_test
ab91e7f7dff855514a790a0002328064e63bcbda
[ "Unlicense" ]
0
null
null
void setup() { Serial.begin(9600); Serial.println("Ready"); pinMode(5,OUTPUT); //fw motor 1 pinMode(6,OUTPUT); //bk motor 1 pinMode(7,OUTPUT); //fw motor 2 pinMode(8,OUTPUT); //bk motor 2 pinMode(9,OUTPUT); //analog motor 1 pinMode(10,OUTPUT);//analog motor 2 } void motorAction(int fwm, int bkm,int anm...
23.380952
57
0.57332
true
299
70341f984ca1696c7f5226ab20f03a264a66e0ec
49,053
ino
Arduino
VanLiveConnect/DSEG14Classic-BoldItalic.woff.ino
0xCAFEDECAF/VanLiveConnect
4865ca992697c581693db97abc3563166408f9dc
[ "MIT" ]
10
2021-06-14T14:00:27.000Z
2022-03-24T22:48:53.000Z
VanLiveConnect/DSEG14Classic-BoldItalic.woff.ino
0xCAFEDECAF/VanLiveConnect
4865ca992697c581693db97abc3563166408f9dc
[ "MIT" ]
1
2022-03-24T23:34:54.000Z
2022-03-25T12:08:45.000Z
VanLiveConnect/DSEG14Classic-BoldItalic.woff.ino
0xCAFEDECAF/VanLiveConnect
4865ca992697c581693db97abc3563166408f9dc
[ "MIT" ]
0
null
null
// Generate with: // % xxd --include .../DSEG14Classic-BoldItalic.woff > /tmp/DSEG14Classic-BoldItalic.woff.ino char DSEG14Classic_BoldItalic_woff[] PROGMEM = { 0x77, 0x4f, 0x46, 0x46, 0x4f, 0x54, 0x54, 0x4f, 0x00, 0x00, 0x1e, 0x84, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x54, 0x34, 0x00, 0x00, 0x00, 0x2e, ...
74.435508
95
0.640491
true
40,525
7f8112e0a20b00716f29951cea6b15e6359685f2
6,143
ino
Arduino
Performances/mostra qwerty/arduino/MIDI_DELAY_SIN_v6/MIDI_DELAY_SIN_v6.ino
JoakuDeSotavento/Joakinator
71384d54cb7bd3d9030fddf50d838df5116af22b
[ "MIT" ]
null
null
null
Performances/mostra qwerty/arduino/MIDI_DELAY_SIN_v6/MIDI_DELAY_SIN_v6.ino
JoakuDeSotavento/Joakinator
71384d54cb7bd3d9030fddf50d838df5116af22b
[ "MIT" ]
null
null
null
Performances/mostra qwerty/arduino/MIDI_DELAY_SIN_v6/MIDI_DELAY_SIN_v6.ino
JoakuDeSotavento/Joakinator
71384d54cb7bd3d9030fddf50d838df5116af22b
[ "MIT" ]
0
null
null
/* Blink without Delay Turns on and off a light emitting diode (LED) connected to a digital pin, without using the delay() function. This means that other code can run at the same time without being interrupted by the LED code. The circuit: - Use the onboard LED. - Note: Most Arduinos have an on-board L...
26.252137
110
0.629497
true
1,896
End of preview. Expand in Data Studio

This is a filtered version of the near-deduped bigcode/the-stack-dedup dataset. We further apply the following filters:

  1. For files forked more than 25 times, we retain them if the average line length is less than 140, the maximum line length is less than 500 and the alphanumeric fraction is more than 25%.

  2. For files forked between 10 and 25 times, we retain them if the average line length is less than 120, the maximum line length is less than 200 and the alphanumeric fraction is more than 35%.

  3. For files forked less than 10 times, we retain them if the average line length is less than 100, the maximum line length is less than 200 and the alphanumeric fraction is more than 40%.

  4. We only retain language splits that still have more than 50,000 samples after the above filtering steps, with the exception of llvm, which we also retain. This leaves us with 60 languages.

  5. We only retain samples from conventionally used extensions and drop samples from valid but uncommon extensions. We select the following extensions for the 60 languages:

     ext_map = {
         "ASP":
         [
             ".asp",
         ],
         "Arduino":
         [
             ".ino"
         ],
         "AsciiDoc":
         [
             ".asciidoc",
         ],
         "Batchfile":
         [
             ".bat",
             ".cmd"
         ],
         "C":
         [
             ".c",
             ".h",
         ],
         "C#":
         [
             ".cs",
         ],
         "C++":
         [
             ".cpp",
             ".c++",
             ".cc",
             ".cxx",
             ".h++",
             ".hh",
             ".hpp",
             ".hxx",
         ],
         "CMake":
         [
             ".cmake",
         ],
         "CSS":
         [
             ".css"
         ],
         "Clojure":
         [
             ".clj",
         ],
         "CoffeeScript":
         [
             ".coffee",
         ],
         "Common Lisp":
         [
             ".lisp",
         ],
         "Crystal":
         [
             ".cr"
         ],
         "Cuda":
         [
             ".cu",
             ".cuh"
         ],
         "Dart":
         [
             ".dart"
         ],
         "Dockerfile":
         [
             ".dockerfile",
             "Dockerfile"
         ],
         "Elixir":
         [
             ".ex",
         ],
         "Emacs Lisp":
         [
             ".el",
             ".emacs",
         ],
         "Erlang":
         [
             ".erl",
         ],
         "F#":
         [
             ".fs",
         ],
         "FORTRAN":
         [
             ".f90",
             ".f",
             ".f03",
             ".f08",
             ".f77",
             ".f95",
         ],
         "GLSL":
         [
             ".glsl",
         ],
         "Go":
         [
             ".go"
         ],
         "Groovy":
         [
             ".groovy",
         ],
         "HCL":
         [
             ".hcl",
         ],
         "HTML":
         [
             ".html",
         ],
         "HTML+Django":
         [
             ".mustache",
             ".jinja"
         ],
         "HTML+ERB":
         [
             ".erb",
         ],
         "HTML+PHP":
         [
             ".phtml"
         ],
         "Haml":
         [
             ".haml",
         ],
         "Haskell":
         [
             ".hs",
         ],
         "JSON":
         [
             ".json",
         ],
         "Java":
         [
             ".java"
         ],
         "JavaScript":
         [
             ".js",
         ],
         "Julia":
         [
             ".jl"
         ],
         "Kotlin":
         [
             ".kt",
         ],
         "LLVM":
         [
             ".ll"
         ],
         "Lua":
         [
             ".lua",
         ],
         "Makefile":
         [
             "Makefile"
         ],
         "Markdown":
         [
             ".md",
             ".markdown",
         ],
         "OCaml":
         [
             ".ml",
         ],
         "Objective-C++":
         [
             ".mm"
         ],
         "PHP":
         [
             ".php",
             ".php3",
             ".php4",
             ".php5",
         ],
         "Pascal":
         [
             ".pas",
         ],
         "Perl":
         [
             ".pl",
         ],
         "PowerShell":
         [
             ".ps1",
             ".psm1"
         ],
         "Python":
         [
             ".py",
         ],
         "R":
         [
             ".r",
         ],
         "Ruby":
         [
             ".rb",
         ],
         "Rust":
         [
             ".rs",
         ],
         "SCSS":
         [
             ".scss"
         ],
         "SQL":
         [
             ".plsql",
             ".sql",
             ".ddl",
     
         ],
         "Sass":
         [
             ".sass"
         ],
         "Scala":
         [
             ".scala",
             ".sbt"
         ],
         "Shell":
         [
             ".sh",
             ".bash",
             ".zsh"
         ],
         "Smalltalk":
         [
             ".st"
         ],
         "Smarty":
         [
             ".tpl"
         ],
         "Solidity":
         [
             ".sol"
         ],
         "Swift":
         [
             ".swift"
         ],
         "TOML":
         [
             ".toml"
         ],
         "TeX":
         [
             ".tex",
             ".sty",
         ],
         "Twig":
         [
             ".twig"
         ],
         "TypeScript":
         [
             ".ts",
         ],
         "Visual Basic":
         [
             ".vb",
         ],
         "Vue":
         [
             ".vue"
         ],
         "YAML":
         [
             ".yml",
             ".yaml",
         ],
     }
    

Below, we provide the language-wise token-count breakdown of the dataset as counted by the meta-llama/Meta-Llama-3-8B tokenizer (the full dataset is around 144 Billion tokens):

Language Token_Count
Json 18,349,014,478
Java 16,249,736,121
C 14,381,796,257
Python 12,868,526,213
Javascript 11,780,759,219
Cpp 10,912,556,820
Php 8,934,867,699
C-Sharp 6,784,433,504
Markdown 5,614,520,807
Go 5,561,257,406
Html 4,956,588,993
Typescript 4,437,582,117
Yaml 3,464,120,199
Css 2,472,231,309
Rust 1,932,035,717
Ruby 1,517,724,917
Vue 1,188,684,557
Kotlin 1,136,507,152
Swift 1,051,682,820
Scala 979,598,470
Scss 954,556,739
Sql 910,548,728
Shell 735,010,998
Dart 697,568,091
Lua 650,818,157
Haskell 528,482,496
Fortran 524,261,306
Tex 429,010,699
Julia 322,241,716
Pascal 245,237,366
Ocaml 223,652,453
Perl 215,973,238
Solidity 212,647,529
Common-Lisp 177,139,498
Powershell 172,556,068
Erlang 171,211,323
Arduino 166,862,916
Groovy 166,678,846
Objective-Cpp 158,210,523
Html_erb 145,488,020
Llvm 135,137,323
Cuda 131,054,442
Coffeescript 129,999,078
Smalltalk 124,718,870
Visual-Basic 121,466,641
Elixir 119,466,430
Twig 106,160,625
F-Sharp 104,922,127
Toml 101,217,092
Emacs-Lisp 94,724,490
Cmake 89,707,698
Clojure 79,005,141
Batchfile 62,657,884
Smarty 61,937,213
Crystal 47,220,882
Sass 43,661,923
Glsl 32,127,331
Html_php 29,231,389
Haml 25,043,854
Html_django 16,596,017
Total 144,038,437,935
Downloads last month
22