Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
public class HundredIntegers { public static void main (String[] args) { for (int i = 1; i<=100; i++) { System.out.println(i); } } }
100integers
HundredIntegers.java
Java
epl
147
public class HundredIntegers { public static void main (String[] args) { for (int i = 1; i<=100; i++) { System.out.println(i); } } }
100integers
trunk/HundredIntegers.java
Java
epl
147
package Entity; public interface IOperatoerDTO { int getoprId(); void setoprId(int Id); String getoprNavn(); void setoprNavn(String Navn); String getini(); void setini(String In); String getcpr(); void setcpr(String cp); String getpassword(); void setpassword(String passwd); } ...
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Entity/IOperatoerDTO.java
Java
epl
325
package Entity; public class OperatoerDTO implements IOperatoerDTO { int oprId; String oprNavn; String ini; String cpr; String password; public OperatoerDTO() //Default Constructor { this.oprId = 0; this.oprNavn = ""; this.ini = ""; this.cpr = ""; this.password = ""; } ...
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Entity/OperatoerDTO.java
Java
epl
1,149
package Controller; import Entity.OperatoerDTO; /* public class ChangePassword implements IOperatoerDAO { OperatoerDTO opr = new OperatoerDTO(); public String passwordGenerator(String passwd){ return passwd; } public String opChangePasswd(int Id) { return null; } */
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Controller/ChangePassword.java
Java
epl
300
package Controller; import java.util.ArrayList; import Entity.OperatoerDTO; public class OperatoerDAO implements IOperatoerDAO{ OperatoerDTO opr = new OperatoerDTO(); private ArrayList<OperatoerDTO> oDTO = new ArrayList<OperatoerDTO>();; //added an arraylist of type OperatoerDTO public OperatoerDA...
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Controller/OperatoerDAO.java
Java
epl
682
package Controller; import java.util.regex.Matcher; import java.util.regex.Pattern; public class PasswordValidator{ private Pattern pattern; private Matcher matcher; private static String PASSWORD_PATTERN = "((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{6,20})"; public P...
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Controller/PasswordValidator.java
Java
epl
702
package Controller; import Entity.OperatoerDTO; /* public class LoginTjeck implements IOperatoerDAO { OperatoerDTO opr = new OperatoerDTO(); public int loginUser(String passwd, int id) { return 0; } }*/
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Controller/LoginTjeck.java
Java
epl
229
package Controller; import Entity.OperatoerDTO; /* public class Afvejning implements IOperatoerDAO { OperatoerDTO opr = new OperatoerDTO(); public double beregningNetto(double Tara, double Brutto) { return 0.0; } }*/
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Controller/Afvejning.java
Java
epl
243
package Controller; import Entity.OperatoerDTO; import java.util.ArrayList; public interface IOperatoerDAO { //int loginUser(String passwd, int id); OperatoerDTO getOperatoer(int oprId) throws DALException; ArrayList<OperatoerDTO> getOperatoerList() throws DALException; void createOperatoer(Operat...
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Controller/IOperatoerDAO.java
Java
epl
706
package Boundary; import Entity.OperatoerDTO; import Controller.IOperatoerDAO.DALException; import Controller.OperatoerDAO; import Controller.PasswordValidator; import java.util.Scanner; public class Graenseflade { OperatoerDTO opr = new OperatoerDTO(); OperatoerDAO dao = new OperatoerDAO(); Pass...
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Boundary/Graenseflade.java
Java
epl
3,119
import Boundary.Graenseflade; public class Main { public static void main(String[] args) { Graenseflade g = new Graenseflade(); } }
02324cdio-del1
https:/gezienajose@code.google.com/p/02324cdio-del1/COPY/Copy of Gruppe11CDIO1/src/Main.java
Java
epl
140
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
low_pass_filter.js
JavaScript
asf20
5,777
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
deps.js
JavaScript
asf20
2,201
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
oscillator_interface.js
JavaScript
asf20
4,979
<!doctype html> <!-- // Copyright 2012 Google Inc. All Rights Reserved. // // 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 r...
010pepe010-moog
demo.html
HTML
asf20
2,825
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
synthesizer.js
JavaScript
asf20
6,169
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
envelope_generator.js
JavaScript
asf20
7,743
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
compound_audio_node.js
JavaScript
asf20
1,421
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
synthesizer_interface.js
JavaScript
asf20
3,037
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
oscillator.js
JavaScript
asf20
15,905
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
wide_band_pass_filter.js
JavaScript
asf20
2,965
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
master_mixer_interface.js
JavaScript
asf20
1,129
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
moog.js
JavaScript
asf20
3,633
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
010pepe010-moog
master_mixer.js
JavaScript
asf20
2,462
#include <iostream> using namespace std; int main() { int height; float eyesight; height = 175; eyesight = 0.8f; bool ok; ok = height >= 160 && height <=180 && eyesight >= 1.0f && eyesight <= 2.0f; cout << boolalpha; cout << ok << endl; return 0; }
103956-kirak-cpp
helloWorld/helloWorld/HelloWorld.cpp
C++
asf20
285
int main() { int a = 100; int b = 200; int c = 300; return 0; }
103956-kirak-cpp
test/test/test.cpp
C++
asf20
81
#include<iostream> using namespace std; void main() { int a[10], i; for(i=0; i<10; i++) a[i]=i+1; for(i=0; i<10; i++) cout << a[i] << " "; cout <<"\n"; }
103956-kirak-cpp
CLASS6_1/CLASS6_1/CLASS6.cpp
C++
asf20
210
if False: # set to True to insert test data store(store.product.id > 0).delete() store(store.category.id > 0).delete() if len(store(store.product.id > 0).select()) == 0: fantasy_id = store.category.insert(name='Fantasy', description='Fantasy books', small_image='testdata/hp1.jpg') hp1 = ...
0707tim-web2pestore
models/testdata.py
Python
gpl2
1,693
UNDEFINED = -1 if request.env.web2py_runtime_gae: # if running on Google App Engine store = DAL('gae') # connect to Google BigTable session.connect(request, response, db=store) # and store sessions and tickets there else: store = DAL("sqlite://store.db") store.define...
0707tim-web2pestore
models/store.py
Python
gpl2
6,730
# import re # delimiter to use between words in URL URL_DELIMITER = '-' def pretty_url(id, name): """Create pretty URL from record name and ID """ return '%s%s%d' % (' '.join(re.sub('[^\w ]+', '', name).split()).replace(' ', URL_DELIMITER), URL_DELIMITER, id) def pretty_id(url): """Extract id fr...
0707tim-web2pestore
models/globals.py
Python
gpl2
779
########################################################### ### make sure administrator is on localhost ############################################################ import os, socket, datetime,copy import gluon.contenttype import gluon.fileutils ### crytical --- make a copy of the environment global_env=copy.copy(glo...
0707tim-web2pestore
controllers/appadmin.py
Python
gpl2
7,872
if not session.cart: # instantiate new cart session.cart, session.balance = [], 0 session.google_merchant_id = mystore.google_merchant_id response.menu = [ ['Store Front', request.function == 'index', URL(r=request, f='index')], ['About Us', request.function == 'aboutus', URL(r=request, f='aboutus')]...
0707tim-web2pestore
controllers/default.py
Python
gpl2
5,948
########################################################### ### make sure administrator is on localhost ############################################################ import os from gluon.contenttype import contenttype from gluon.fileutils import check_credentials, listdir if not session.authorized and not request.func...
0707tim-web2pestore
controllers/manage.py
Python
gpl2
6,428
{{ def show(products, width=4, function='product'): }} <table> {{ for i, product in enumerate(products): }} {{ if i == 0: }} <tr> {{ elif i % width == 0: }} </tr> <tr> {{ pass }} <td style="text-align: center"> <a href="{{= URL(r=request, f=function, args=pret...
0707tim-web2pestore
views/catalog.html
HTML
gpl2
585
{{ extend 'layout.html' }} <h2>Login to the Administrative Interface</h2><br/> <form action="" method="post"> <table> <tr><td>Administrator Password:</td><td><input type="password" name="password"/></td></tr> <tr><td></td><td><input type="submit" value="login"/></td></tr> </table> </form>
0707tim-web2pestore
views/manage/login.html
HTML
gpl2
299
{{ extend 'layout.html' }} <h1>web2py Store Setup</h1> <h2>Instructions</h2> <ul> <li>Register with <a href="http://checkout.google.com">Google Checkout</a></li> <li>Google will assign you a "merchant id", insert it below</li> <li>web2py/store comes with some example products in the database. Access the <a href="/{{=re...
0707tim-web2pestore
views/manage/setup.html
HTML
gpl2
1,200
{{ extend 'layout.html' }} {{ import cgi }} <h1>Contact Us</h1> <h2>Address</h2> <p>{{= XML(cgi.escape(mystore.address).replace(', ','<br/>').replace('\n','</p><p>')) }}<br/> {{= A('directions',_href='http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=%s' % cgi.escape(mystore.address)) }}</p> <h2>F...
0707tim-web2pestore
views/default/contactus.html
HTML
gpl2
497
{{ extend 'layout.html' }} <h1>web2py Store Setup</h1> <h2>Instructions</h2> <ul> <li>Register with <a href="http://checkout.google.com">Google Checkout</a></li> <li>Google will assign you a "merchant id", insert it below</li> <li>web2py/store comes with some example products in the database. Access the <a...
0707tim-web2pestore
views/default/setup.html
HTML
gpl2
1,224
{{ extend 'layout.html' }} {{ include 'catalog.html' }} <h1>Checkout</h1> {{ if not order: }} <h2>No products in your shopping cart</h2> {{ else: }} <h2>Products in your shopping cart</h2> <table> <tr> <th>Product</th> <th>Total</th> </tr> {{ for i, (product_id, qty, total_price, product,...
0707tim-web2pestore
views/default/checkout.html
HTML
gpl2
2,421
{{ extend 'layout.html' }} {{ include 'catalog.html' }} <h1>{{= product.name }}</h1> <img src="{{= URL(r=request, f='show', args=(product.large_image if product.large_image else product.small_image)) }}" height="200px"/> {{= product_form }} <p>{{= XML(product.description) }}</p> {{ if product.allow_rating and pro...
0707tim-web2pestore
views/default/product.html
HTML
gpl2
1,378
{{ extend 'layout.html' }} {{ include 'catalog.html' }} <h2>Product Categories:</h2> {{ show(categories, function='category') }} <br/><br/> {{ if featured: }} <h1>Featured Products</h1> {{ show(featured) }} {{ pass }}
0707tim-web2pestore
views/default/index.html
HTML
gpl2
223
{{ extend 'layout.html' }} {{ include 'catalog.html' }} <h1>Products in {{= category_name }}</h1> {{ if featured or favourites: }} {{ show(featured) }} {{ show(favourites) }} {{ else: }} <h2>No products in category {{= category_name }}</h2> {{ pass }}
0707tim-web2pestore
views/default/category.html
HTML
gpl2
262
{{ extend 'layout.html' }} {{ import cgi }} <h1>About Us</h1> <h2>Our Store</h2> <p>{{= XML(cgi.escape(mystore.description).replace('\n', '</p><p>')) }}</p> <h2>Why Buy From Us?</h2> <p>{{= XML(cgi.escape(mystore.why_buy).replace('\n', '</p><p>')) }}</p> <h2>Return Policy</h2> <p>{{= XML(cgi.escape(mystore.retur...
0707tim-web2pestore
views/default/aboutus.html
HTML
gpl2
363
<html> <head> <title>Product Image</title> <script language='javascript'> var arrTemp=self.location.href.split("?"); var picUrl = (arrTemp.length>0)?arrTemp[1]:""; var NS = (navigator.appName=="Netscape")?true:false; function FitPic() { iWidth = (NS)?window.innerWidth:document.body.clien...
0707tim-web2pestore
views/default/popup.html
HTML
gpl2
829
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="keywords" content="{{=response.keywords}}" /> <meta n...
0707tim-web2pestore
views/layout.html
HTML
gpl2
6,077
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> {{import os if os.path.exists(os.path.join(request.folder,'static','calendar.js')):}} <link rel="stylesheet" href="/{{=request.application}}/static/calendar.css" type="text/css" media="screen" title="core css fi...
0707tim-web2pestore
views/web2py_ajax.html
HTML
gpl2
2,230
{{extend 'layout.html'}} <script><!-- $(document).ready(function(){ $("table.sortable tbody tr").mouseover( function() { $(this).addClass("highlight"); }).mouseout( function() { $(this).removeClass("highlight"); }); $('table.sortable tbody tr:odd').addClass('odd'); $('table.sortable tbody tr:even').add...
0707tim-web2pestore
views/appadmin.html
HTML
gpl2
3,738
{{extend 'layout.html' }} <script src="/{{= request.application }}/static/sorttable.js"></script> <style> table.sortable thead { background-color:#eee; color:#666666; font-weight: bold; cursor: default; } </style> {{ try: }}{{= uplink }}{{ except: }}{{ pass }} <h1> {{ if request.function == 'state': }} ...
0707tim-web2pestore
views/manage.html
HTML
gpl2
4,184
{{ extend 'layout.html' }} {{= BEAUTIFY(response._vars) }}
0707tim-web2pestore
views/generic.html
HTML
gpl2
58
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/tesseract/android/TessBaseAPI.java
Java
asf20
12,348
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/leptonica/android/Pix.java
Java
asf20
9,231
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/leptonica/android/ReadFile.java
Java
asf20
6,967
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/leptonica/android/Box.java
Java
asf20
4,880
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/leptonica/android/Convert.java
Java
asf20
1,506
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/leptonica/android/Pixa.java
Java
asf20
13,432
/* * Copyright (C) 2011 Google Inc. * * 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 ...
1006373c-hello
tesseract-android-tools/src/com/googlecode/leptonica/android/WriteFile.java
Java
asf20
7,145
End of preview. Expand in Data Studio

Google Code Archive Dataset

Dataset Description

This dataset was compiled from the Google Code Archive, a preserved snapshot of projects hosted on Google Code, Google's open-source project hosting service that operated from 2006 to 2016. Google Code was one of the major code hosting platforms of its era, hosting hundreds of thousands of open-source projects before its shutdown. The archive provides a unique historical record of open-source development during a formative period of modern software engineering.

Dataset Summary

Statistic Value
Total Files 65,825,565
Total Repositories 488,618
Total Size 47 GB (compressed Parquet)
Programming Languages 454
File Format Parquet with Zstd compression (71 files)

Key Features

  • Historical open-source corpus: Contains code from over 488K repositories hosted on Google Code during 2006-2016
  • Diverse language coverage: Spans 454 programming languages identified by go-enry (based on GitHub Linguist rules)
  • Rich metadata: Includes repository name, file path, detected language, license information, and file size
  • Quality filtered: Extensive filtering to remove vendor code, build artifacts, generated files, and low-quality content
  • Era-specific patterns: Captures coding conventions and library usage from the pre-modern era of software development

Languages

The dataset includes 454 programming languages. The top 30 languages by file count:

Rank Language File Count
1 Java 16,331,993
2 PHP 12,764,574
3 HTML 5,705,184
4 C++ 5,090,685
5 JavaScript 4,937,765
6 C 4,179,202
7 C# 3,872,245
8 Python 2,207,240
9 CSS 1,697,385
10 Objective-C 1,186,050
11 Shell 639,183
12 Java Server Pages 541,498
13 ActionScript 540,557
14 Makefile 481,563
15 ASP.NET 381,389
16 Smarty 339,555
17 Ruby 331,743
18 Go 316,427
19 Perl 307,960
20 Vim Script 216,236
21 Lua 215,226
22 HTML+PHP 150,781
23 HTML+Razor 149,131
24 MATLAB 145,686
25 Batchfile 138,523
26 Pascal 135,992
27 Visual Basic .NET 118,732
28 TeX 110,379
29 Less 98,221
30 Unix Assembly 94,758

Licenses

The dataset includes files from repositories with various licenses as specified in the Google Code Archive:

License File Count
Apache License 2.0 (asf20) 21,568,143
GNU GPL v3 (gpl3) 14,843,470
GNU GPL v2 (gpl2) 6,824,185
Other Open Source (oos) 5,433,436
MIT License (mit) 4,754,567
GNU LGPL (lgpl) 4,073,137
BSD License (bsd) 3,787,348
Artistic License (art) 1,910,047
Eclipse Public License (epl) 1,587,289
Mozilla Public License 1.1 (mpl11) 580,102
Multiple Licenses (multiple) 372,457
Google Summer of Code (gsoc) 63,292
Public Domain (publicdomain) 28,092

Dataset Structure

Data Fields

Field Type Description
code string Content of the source file (UTF-8 encoded)
repo_name string Name of the Google Code project
path string Path of the file within the repository (relative to repo root)
language string Programming language as identified by go-enry
license string License of the repository (Google Code license identifier)
size int64 Size of the source file in bytes

Data Format

  • Format: Apache Parquet with Zstd compression
  • File Structure: 71 files (google_code_0000.parquet to google_code_0070.parquet)

Data Splits

All examples are in the train split. There is no validation or test split.

Example Data Point

{
    'code': 'public class HundredIntegers {\n\tpublic static void main (String[] args) {\n\t\tfor (int i = 1; i<=100; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}\n}',
    'repo_name': '100integers',
    'path': 'HundredIntegers.java',
    'language': 'Java',
    'license': 'epl',
    'size': 147
}

Dataset Creation

Project Discovery

Most project IDs were sourced from the Archive Team Google Code Wiki. This list provided the basis for the crawling and extraction process.

Pipeline Overview

The dataset was created through a multi-stage pipeline:

  1. Project Discovery: Fetching project metadata from the Google Code Archive
  2. Source Filtering: Selecting projects that have source code available (hasSource: true)
  3. Archive Downloading: Downloading source archives from the Google Code Archive storage
  4. Content Extraction: Extracting and filtering source code files
  5. Parquet Generation: Writing filtered records to Parquet shards with Zstd compression

Language Detection

Programming languages are detected using go-enry, a Go port of GitHub's Linguist library. Only files classified as Programming or Markup language types are included (Data and Prose types are excluded).

License Detection

Licenses are obtained directly from the Google Code Archive project metadata. The archive preserves the original license selection made by project owners when creating their repositories on Google Code.

File Filtering

Extensive filtering is applied to ensure data quality:

Size Limits

Limit Value
Max repository archive size 64 MB
Max single file size 2 MB
Max line length 1,000 characters

Excluded Directories

  • Configuration: .git/, .github/, .gitlab/, .vscode/, .idea/, .vs/, .settings/, .eclipse/, .project/, .metadata/
  • Vendor/Dependencies: node_modules/, bower_components/, jspm_packages/, vendor/, third_party/, 3rdparty/, external/, packages/, deps/, lib/vendor/, target/dependency/, Pods/
  • Build Output: build/, dist/, out/, bin/, target/, release/, debug/, .next/, .nuxt/, _site/, _build/, __pycache__/, .pytest_cache/, cmake-build-*, .gradle/, .maven/

Excluded Files

  • Lock Files: package-lock.json, yarn.lock, pnpm-lock.yaml, Gemfile.lock, Cargo.lock, poetry.lock, Pipfile.lock, composer.lock, go.sum, mix.lock
  • Minified Files: Any file containing .min. in the name
  • Binary Files: .exe, .dll, .so, .dylib, .a, .lib, .o, .obj, .jar, .war, .ear, .class, .pyc, .pyo, .wasm, .bin, .dat, .pdf, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .zip, .tar, .gz, .bz2, .7z, .rar, .jpg, .jpeg, .png, .gif, .bmp, .ico, .svg, .mp3, .mp4, .avi, .mov, .wav, .flac, .ttf, .otf, .woff, .woff2, .eot
  • System Files: .DS_Store, thumbs.db

Content Filtering

  • UTF-8 Validation: Files must be valid UTF-8 encoded text
  • Binary Detection: Files detected as binary by go-enry are excluded
  • Generated Files: Files with generation markers in the first 500 bytes are excluded:
    • generated by, do not edit, auto-generated, autogenerated, @generated, <auto-generated
  • Empty Files: Files that are empty or contain only whitespace are excluded
  • Long Lines: Files with any line exceeding 1,000 characters are excluded
  • go-enry Filters: Additional filtering using go-enry's IsVendor(), IsImage(), IsDotFile(), IsTest(), and IsGenerated() functions
  • Documentation-only Repos: Repositories containing only documentation files (no actual code) are skipped

Source Data

All data originates from the Google Code Archive, which preserves projects hosted on Google Code before its shutdown in January 2016.

Considerations for Using the Data

Historical Context

This dataset represents code from 2006-2016 and may contain:

  • Outdated coding patterns and deprecated APIs
  • Legacy library dependencies that are no longer maintained
  • Security vulnerabilities that have since been discovered and patched
  • Code written for older language versions (Python 2, older Java versions, etc.)

Users should be aware that this code reflects historical practices and may not represent modern best practices.

Personal and Sensitive Information

The dataset may contain:

  • Email addresses in code comments or configuration files
  • API keys or credentials that were accidentally committed
  • Personal information in comments or documentation

Users should exercise caution and implement appropriate filtering when using this data.

Licensing Information

This dataset is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in this dataset must abide by the terms of the original licenses, including attribution clauses when relevant. The license field in each data point indicates the license of the source repository.

Downloads last month
600