code stringlengths 1 2.08M | language stringclasses 1
value |
|---|---|
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
// 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... | JavaScript |
$(document).ready(function() {
$('#home-slide').cycle('fade');
}); | JavaScript |
/*******
*** Anchor Slider by Cedric Dugas ***
*** Http://www.position-absolute.com ***
Never have an anchor jumping your content, slide it.
Don't forget to put an id to your anchor !
You can use and modify this script for any project you want, but please leave this comment as credit.
*****/
... | JavaScript |
$(document).ready(function() {
$('#home-slide').cycle('fade');
}); | JavaScript |
/*******
*** Anchor Slider by Cedric Dugas ***
*** Http://www.position-absolute.com ***
Never have an anchor jumping your content, slide it.
Don't forget to put an id to your anchor !
You can use and modify this script for any project you want, but please leave this comment as credit.
*****/
... | JavaScript |
$(document).ready(function() {
$('#home-slide').cycle('fade');
}); | JavaScript |
/*******
*** Anchor Slider by Cedric Dugas ***
*** Http://www.position-absolute.com ***
Never have an anchor jumping your content, slide it.
Don't forget to put an id to your anchor !
You can use and modify this script for any project you want, but please leave this comment as credit.
*****/
... | JavaScript |
function getVal(id) {
return $("#" + id).val();
}
function getAttr(id, attr) {
return $("#" + id).attr(attr)
}
/**//************************************************************************
| 函数名称: setCookie |
| 函数功能: 设置cookie函数 ... | JavaScript |
/**
*
*/ | JavaScript |
/**
*
*/
colors = Array("#ffb","#fbf","#bff","#6ff","#ff6","#f6f","#6ff");
color = 0;
$(document).ready(function() {
$(".component").hover(function() {
$("#"+$(this).children(".position").text()).addClass("myhover");
//$("#"+$(this).attr("value")).css("color","#fff");
},function() {
$("#"+$(thi... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
/*
prop = {
header, // String
property, // String
events, //
type, // checkbox, select, ... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var baseDir = '/setting/';
var rules = [];
var scripts = [];
var issues = [];
var dirty = false;
function stringHash(str) {
... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
List.types.input = function(p, prop) {
p[0].listdata = this;
this.p = p;
var input = this.input = $('<input></input>').addClas... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var tabStatus = {};
var version;
var default_id = "lgllffgicojgllpmdbemgglaponefajn";
var debug = chrome.i18n.getMessage("@@extensio... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
// Permission for experimental not given.
var handler = chrome.webRequest;
function onBeforeSendHeaders(details) {
var rule = se... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
/*
Rule: {
identifier: an unique identifier
title: description
type: Can be "wild", "regex", "clsid"
... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
// Updater events:
// error
// updating
// complete
// success
// itemupdated
// progress
// properties:
// statu... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var FLASH_CLSID = '{d27cdb6e-ae6d-11cf-96b8-444553540000}';
var typeId = "application/x-itst-activex";
function executeScript(scrip... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var controlLogFName="__npactivex_log";
var controlLogEvent="__npactivex_log_event__";
var config = null;
var port = null;
var l... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
/*
prop = {
header, // String
property, // String
events, //
type, // checkbox, select, ... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
replaceDocument();
window.addEventListener('load', replaceDocument, false);
| JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var USE_RECORD_GAP = 3 * 60 * 1000; // 3 minutes
var background = chrome.extension.getBackgroundPage();
var _gaq = background._gaq ... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var tabId = parseInt(location.href.replace(/.*tabid=([0-9]*).*/, '$1'));
if (isNaN(tabId)) {
alert('Invalid tab id');
}
var bac... | JavaScript |
// Copyright (c) 2010 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var $$ = chrome.i18n.getMessage;
function loadI18n() {
document.title = chrome.i18n.getMessage("option_title")
var spans = docum... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var background = chrome.extension.getBackgroundPage();
var setting = background.setting;
var updateSession = background.updateSession... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
List.types.input = function(p, prop) {
p[0].listdata = this;
this.p = p;
var input = this.input = $('<input></input>').addClas... | JavaScript |
// Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved.
// Use of this source code is governed by a Mozilla-1.1 license that can be
// found in the LICENSE file.
var tabId = parseInt(location.href.replace(/.*tabid=([0-9]*).*/, '$1'));
if (isNaN(tabId)) {
alert('Invalid tab id');
}
var bac... | JavaScript |
$(document).ready(function() {
$('#userRole').datagrid({
data :null
});
$('#reloadList').linkbutton('disable');
$("#targetUser").combobox({
onSelect : function(record) {
loadGridData(record.id);
$('#reloadList').linkbutton('enable');
}
});
});
function loadGridData(username) {
... | JavaScript |
var inData;
$(document).ready(
function() {
toggleNotebooks();
var prjObjId = $("#prjObjId").val();
var oppId=$("#opportunityId").val();
$.getJSON('getCompleteOpportunity.htm?prjObjId=' + prjObjId + "&oppId=" + oppId,
function(data) {
inData = $.extend({}, data.opportunity, dat... | JavaScript |
$(document).ready(function() {
loadGridData("");
$('#dg').datagrid({
toolbar : toolbar,
rownumbers : true,
singleSelect : true
});
});
function loadGridData(filter) {
var userId = $("#userId").val();
if (userId == undefined)
return;
$.getJSON('listActionItems.htm?userId=' + userId + '&filt... | JavaScript |
$(document).ready(function() {
loadGridData("");
$('#resourceGrid').datagrid({
rownumbers : true,
singleSelect : true
});
});
function loadGridData(filter) {
var prjObjId = $("#prjObjId").val();
if (prjObjId == undefined)
return;
$.getJSON('getResourceDetails.htm?prjObjId=' + prjObjId,
func... | JavaScript |
$(document).ready(function() {
$("#contractValSel").click(addCost);
$("#contractValClear").click(clearCost);
var prjObjId = $("#prjObjId").val();
$.getJSON('getOpportunityViewData.htm?prjObjId=' + prjObjId, function(data) {
setFormData("ff", data);
//alert($("#hiddenAddNotes").val());
});... | JavaScript |
function saveReviewData() {
if (!$("#ff").form('validate')) {
showMessager("Alert", 'Required fields can not be left blank.');
return false;
}
var data = getFormData("ff");
data["userId"] = $("#userId").val();
data["opportunityId"] = $("#opportunityId").val();
data["prjObjId"] = $("#prjObjId").v... | JavaScript |
JavaScript-Code-Large
JavaScript-Code-Large is a large-scale corpus of JavaScript source code comprising around 5 million JavaScript files. The dataset is designed to support research in large language model (LLM) pretraining, code intelligence, software engineering automation, and program analysis for the JavaScript ecosystem.
By providing a high-volume, language-specific corpus, JavaScript-Code-Large enables systematic experimentation in JavaScript-focused model training, domain adaptation, and downstream code understanding tasks.
JavaScript-Code-Large addresses the need for a dedicated JavaScript-only dataset at substantial scale, enabling focused research across frontend, backend, and full-stack JavaScript environments. .
1. Dataset Composition
Programming Language: JavaScript
File Count: 5M+ JavaScript files
File Format: .jsonl
Content Types
The dataset includes a wide variety of JavaScript constructs and paradigms, such as:
Functions (declarations, expressions, arrow functions)
Classes and prototypes
Modules (CommonJS and ES Modules)
Asynchronous patterns (async/await, Promises, callbacks)
Event-driven code
Closures and higher-order functions
Functional programming constructs
DOM manipulation code
Node.js backend logic
Frontend framework components
JSDoc comments
Error handling patterns
Modern ES6+ features
2. Intended Research Applications
2.1 Pretraining
Training JavaScript code foundation models from scratch
Continued pretraining of existing LLMs
JavaScript-specialized language modeling
Tokenizer training for JS ecosystems
2.2 Fine-Tuning and Adaptation
Code completion systems
Intelligent IDE assistants
Automated refactoring tools
Conversational programming agents
JavaScript-specific copilots
2.3 Code Intelligence Tasks
Code summarization
Code-to-text generation
Documentation generation
Bug detection
Vulnerability detection
Clone detection
Code similarity modeling
Minified-to-readable code transformation
Static and structural analysis
2.4 Software Engineering Research
Empirical studies of JavaScript coding patterns
Analysis of async and event-driven architectures
Framework usage studies
Dependency modeling
AST-based experiments
Cross-version JavaScript evolution analysis
3. Relationship to Java-Code-Large
JavaScript-Code-Large complements Java-Code-Large, enabling comparative research between:
Statically typed vs dynamically typed languages
Class-based vs prototype-based paradigms
Backend vs frontend dominant ecosystems
JVM vs Node.js environments
Together, these datasets support cross-language transfer learning and controlled specialization studies.
Thanks to open source community for all the guidance & support!!
- Downloads last month
- 8,940