code
stringlengths 24
983k
| language
stringclasses 3
values | AST_depth
int64 -1
40
| alphanumeric_fraction
float64 0
1
| max_line_length
int64 0
500k
| avg_line_length
float64 0
249k
| num_lines
int64 0
33.7k
| source
stringclasses 1
value |
---|---|---|---|---|---|---|---|
for (var i=1; i<10; i++) {
for (var j=1; j<10; j++) {
console.log(i + 'x' + j + '=' + i*j)
}
}
| javascript | 13 | 0.354545 | 42 | 21 | 5 | codenet |
for(i=1;i<10;i++){
for(j=1;j<10;j++){
console.log(i+"x"+j+"="+i*j);
}
} | javascript | 13 | 0.428571 | 31 | 14.6 | 5 | codenet |
for(i=1;i<10;i++){
for(j=1;j<10;j++){
console.log(i+"x"+j+"="+i*j);
}
} | javascript | 13 | 0.417722 | 33 | 15 | 5 | codenet |
for(var i=1; i < 10; i++){
for(var j=1; j < 10; j++){
console.log("%dx%d=%d",i,j,i*j)
}
} | javascript | 9 | 0.47191 | 31 | 17 | 5 | codenet |
for(var i = 1; i < 10; i++){
for(var j = 1; j < 10; j++){
console.log(i + 'x' + j + '=' + i * j);
}
} | javascript | 13 | 0.357798 | 43 | 21 | 5 | codenet |
// Generated by dart2js, the Dart to JavaScript compiler version: 1.7.2.
// The code supports the following hooks:
// dartPrint(message):
// if this function is defined it is called instead of the Dart [print]
// method.
//
// dartMainRunner(main, args):
// if this function is defined, the Dart [main] method will not be invoked
// directly. Instead, a closure that will invoke [main], and its arguments
// [args] is passed to [dartMainRunner].
if (typeof($dart_deferred_initializers) === "undefined") $dart_deferred_initializers = Object.create(null);
(function($) {
function dart() {
this.x = 0;
delete this.x;
}
var A = new dart;
var B = new dart;
var C = new dart;
var D = new dart;
var E = new dart;
var F = new dart;
var G = new dart;
var H = new dart;
var J = new dart;
var K = new dart;
var L = new dart;
var M = new dart;
var N = new dart;
var O = new dart;
var P = new dart;
var Q = new dart;
var R = new dart;
var S = new dart;
var T = new dart;
var U = new dart;
var V = new dart;
var W = new dart;
var X = new dart;
var Y = new dart;
var Z = new dart;
function Isolate() {}
init();
$ = Isolate.$isolateProperties;
(function(reflectionData) {
"use strict";
function map(x) {
x = Object.create(null);
x.x = 0;
delete x.x;
return x;
}
function processStatics(descriptor) {
for (var property in descriptor) {
if (!hasOwnProperty.call(descriptor, property))
continue;
if (property === "^")
continue;
var element = descriptor[property];
var firstChar = property.substring(0, 1);
var previousProperty;
if (firstChar === "+") {
mangledGlobalNames[previousProperty] = property.substring(1);
var flag = descriptor[property];
if (flag > 0)
descriptor[previousProperty].$reflectable = flag;
if (element && element.length)
init.typeInformation[previousProperty] = element;
} else if (firstChar === "@") {
property = property.substring(1);
$[property]["@"] = element;
} else if (firstChar === "*") {
globalObject[previousProperty].$defaultValues = element;
var optionalMethods = descriptor.$methodsWithOptionalArguments;
if (!optionalMethods) {
descriptor.$methodsWithOptionalArguments = optionalMethods = {};
}
optionalMethods[property] = previousProperty;
} else if (typeof element === "function") {
globalObject[previousProperty = property] = element;
functions.push(property);
init.globalFunctions[property] = element;
} else if (element.constructor === Array) {
addStubs(globalObject, element, property, true, descriptor, functions);
} else {
previousProperty = property;
var newDesc = {};
var previousProp;
for (var prop in element) {
if (!hasOwnProperty.call(element, prop))
continue;
firstChar = prop.substring(0, 1);
if (prop === "static") {
processStatics(init.statics[property] = element[prop]);
} else if (firstChar === "+") {
mangledNames[previousProp] = prop.substring(1);
var flag = element[prop];
if (flag > 0)
element[previousProp].$reflectable = flag;
} else if (firstChar === "@" && prop !== "@") {
newDesc[prop.substring(1)]["@"] = element[prop];
} else if (firstChar === "*") {
newDesc[previousProp].$defaultValues = element[prop];
var optionalMethods = newDesc.$methodsWithOptionalArguments;
if (!optionalMethods) {
newDesc.$methodsWithOptionalArguments = optionalMethods = {};
}
optionalMethods[prop] = previousProp;
} else {
var elem = element[prop];
if (prop !== "^" && elem != null && elem.constructor === Array && prop !== "<>") {
addStubs(newDesc, elem, prop, false, element, []);
} else {
newDesc[previousProp = prop] = elem;
}
}
}
$$[property] = [globalObject, newDesc];
classes.push(property);
}
}
}
function addStubs(descriptor, array, name, isStatic, originalDescriptor, functions) {
var f, funcs = [originalDescriptor[name] = descriptor[name] = f = array[0]];
f.$stubName = name;
functions.push(name);
for (var index = 0; index < array.length; index += 2) {
f = array[index + 1];
if (typeof f != "function")
break;
f.$stubName = array[index + 2];
funcs.push(f);
if (f.$stubName) {
originalDescriptor[f.$stubName] = descriptor[f.$stubName] = f;
functions.push(f.$stubName);
}
}
for (var i = 0; i < funcs.length; index++, i++) {
funcs[i].$callName = array[index + 1];
}
var getterStubName = array[++index];
array = array.slice(++index);
var requiredParameterInfo = array[0];
var requiredParameterCount = requiredParameterInfo >> 1;
var isAccessor = (requiredParameterInfo & 1) === 1;
var isSetter = requiredParameterInfo === 3;
var isGetter = requiredParameterInfo === 1;
var optionalParameterInfo = array[1];
var optionalParameterCount = optionalParameterInfo >> 1;
var optionalParametersAreNamed = (optionalParameterInfo & 1) === 1;
var isIntercepted = requiredParameterCount + optionalParameterCount != funcs[0].length;
var functionTypeIndex = array[2];
var unmangledNameIndex = 2 * optionalParameterCount + requiredParameterCount + 3;
var isReflectable = array.length > unmangledNameIndex;
if (getterStubName) {
f = tearOff(funcs, array, isStatic, name, isIntercepted);
descriptor[name].$getter = f;
f.$getterStub = true;
if (isStatic)
init.globalFunctions[name] = f;
originalDescriptor[getterStubName] = descriptor[getterStubName] = f;
funcs.push(f);
if (getterStubName)
functions.push(getterStubName);
f.$stubName = getterStubName;
f.$callName = null;
if (isIntercepted)
init.interceptedNames[getterStubName] = true;
}
if (isReflectable) {
for (var i = 0; i < funcs.length; i++) {
funcs[i].$reflectable = 1;
funcs[i].$reflectionInfo = array;
}
var mangledNames = isStatic ? init.mangledGlobalNames : init.mangledNames;
var unmangledName = array[unmangledNameIndex];
var reflectionName = unmangledName;
if (getterStubName)
mangledNames[getterStubName] = reflectionName;
if (isSetter) {
reflectionName += "=";
} else if (!isGetter) {
reflectionName += ":" + requiredParameterCount + ":" + optionalParameterCount;
}
mangledNames[name] = reflectionName;
funcs[0].$reflectionName = reflectionName;
funcs[0].$metadataIndex = unmangledNameIndex + 1;
if (optionalParameterCount)
descriptor[unmangledName + "*"] = funcs[0];
}
}
function tearOffGetterNoCsp(funcs, reflectionInfo, name, isIntercepted) {
return isIntercepted ? new Function("funcs", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "(x) {" + "if (c === null) c = H.closureFromTearOff(" + "this, funcs, reflectionInfo, false, [x], name);" + "return new c(this, funcs[0], x, name);" + "}")(funcs, reflectionInfo, name, H, null) : new Function("funcs", "reflectionInfo", "name", "H", "c", "return function tearOff_" + name + functionCounter++ + "() {" + "if (c === null) c = H.closureFromTearOff(" + "this, funcs, reflectionInfo, false, [], name);" + "return new c(this, funcs[0], null, name);" + "}")(funcs, reflectionInfo, name, H, null);
}
function tearOffGetterCsp(funcs, reflectionInfo, name, isIntercepted) {
var cache = null;
return isIntercepted ? function(x) {
if (cache === null)
cache = H.closureFromTearOff(this, funcs, reflectionInfo, false, [x], name);
return new cache(this, funcs[0], x, name);
} : function() {
if (cache === null)
cache = H.closureFromTearOff(this, funcs, reflectionInfo, false, [], name);
return new cache(this, funcs[0], null, name);
};
}
function tearOff(funcs, reflectionInfo, isStatic, name, isIntercepted) {
var cache;
return isStatic ? function() {
if (cache === void 0)
cache = H.closureFromTearOff(this, funcs, reflectionInfo, true, [], name).prototype;
return cache;
} : tearOffGetter(funcs, reflectionInfo, name, isIntercepted);
}
var functionCounter = 0;
var tearOffGetter = typeof dart_precompiled == "function" ? tearOffGetterCsp : tearOffGetterNoCsp;
if (!init.libraries)
init.libraries = [];
if (!init.mangledNames)
init.mangledNames = map();
if (!init.mangledGlobalNames)
init.mangledGlobalNames = map();
if (!init.statics)
init.statics = map();
if (!init.typeInformation)
init.typeInformation = map();
if (!init.globalFunctions)
init.globalFunctions = map();
if (!init.interceptedNames)
init.interceptedNames = map();
var libraries = init.libraries;
var mangledNames = init.mangledNames;
var mangledGlobalNames = init.mangledGlobalNames;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var length = reflectionData.length;
for (var i = 0; i < length; i++) {
var data = reflectionData[i];
var name = data[0];
var uri = data[1];
var metadata = data[2];
var globalObject = data[3];
var descriptor = data[4];
var isRoot = !!data[5];
var fields = descriptor && descriptor["^"];
if (fields instanceof Array)
fields = fields[0];
var classes = [];
var functions = [];
processStatics(descriptor);
libraries.push([name, uri, classes, functions, metadata, fields, isRoot, globalObject]);
}
})([
["dart2js._js_primitives", "dart:_js_primitives", , H, {
"^": "",
printString: function(string) {
if (typeof dartPrint == "function") {
dartPrint(string);
return;
}
if (typeof console == "object" && typeof console.log != "undefined") {
console.log(string);
return;
}
if (typeof window == "object")
return;
if (typeof print == "function") {
print(string);
return;
}
throw "Unable to print message: " + String(string);
}
}],
["", "test.dart", , V, {
"^": "",
main: function() {
var i, j, line;
for (i = 1; i <= 9; ++i)
for (j = 1; j <= 9; ++j) {
line = "" + i + "x" + j + "=" + i * j;
H.printString(line);
}
}
},
1],
]);
// Runtime type support
// getInterceptor methods
$.Closure_functionCounter = 0;
$.BoundClosure_selfFieldNameCache = null;
$.BoundClosure_receiverFieldNameCache = null;
$.printToZone = null;
init.metadata = [];
$ = null;
Isolate = Isolate.$finishIsolateConstructor(Isolate);
$ = new Isolate();
function convertToFastObject(properties) {
function MyClass() {
}
MyClass.prototype = properties;
new MyClass();
return properties;
}
;
A = convertToFastObject(A);
B = convertToFastObject(B);
C = convertToFastObject(C);
D = convertToFastObject(D);
E = convertToFastObject(E);
F = convertToFastObject(F);
G = convertToFastObject(G);
H = convertToFastObject(H);
J = convertToFastObject(J);
K = convertToFastObject(K);
L = convertToFastObject(L);
M = convertToFastObject(M);
N = convertToFastObject(N);
O = convertToFastObject(O);
P = convertToFastObject(P);
Q = convertToFastObject(Q);
R = convertToFastObject(R);
S = convertToFastObject(S);
T = convertToFastObject(T);
U = convertToFastObject(U);
V = convertToFastObject(V);
W = convertToFastObject(W);
X = convertToFastObject(X);
Y = convertToFastObject(Y);
Z = convertToFastObject(Z);
function init() {
Isolate.$isolateProperties = Object.create(null);
Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyValue) {
if (!init.lazies)
init.lazies = Object.create(null);
init.lazies[fieldName] = getterName;
var sentinelUndefined = {};
var sentinelInProgress = {};
prototype[fieldName] = sentinelUndefined;
prototype[getterName] = function() {
var result = $[fieldName];
try {
if (result === sentinelUndefined) {
$[fieldName] = sentinelInProgress;
try {
result = $[fieldName] = lazyValue();
} finally {
if (result === sentinelUndefined)
$[fieldName] = null;
}
} else {
if (result === sentinelInProgress)
H.throwCyclicInit(staticName);
}
return result;
} finally {
$[getterName] = function() {
return this[fieldName];
};
}
};
};
Isolate.$finishIsolateConstructor = function(oldIsolate) {
var isolateProperties = oldIsolate.$isolateProperties;
function Isolate() {
var hasOwnProperty = Object.prototype.hasOwnProperty;
for (var staticName in isolateProperties)
if (hasOwnProperty.call(isolateProperties, staticName))
this[staticName] = isolateProperties[staticName];
var lazies = init.lazies;
for (var lazyInit in lazies) {
this[lazies[lazyInit]] = null;
}
function ForceEfficientMap() {
}
ForceEfficientMap.prototype = this;
new ForceEfficientMap();
for (var lazyInit in lazies) {
var lazyInitName = lazies[lazyInit];
this[lazyInitName] = isolateProperties[lazyInitName];
}
}
Isolate.prototype = oldIsolate.prototype;
Isolate.prototype.constructor = Isolate;
Isolate.$isolateProperties = isolateProperties;
return Isolate;
};
}
// BEGIN invoke [main].
;(function(callback) {
if (typeof document === "undefined") {
callback(null);
return;
}
if (document.currentScript) {
callback(document.currentScript);
return;
}
var scripts = document.scripts;
function onLoad(event) {
for (var i = 0; i < scripts.length; ++i) {
scripts[i].removeEventListener("load", onLoad, false);
}
callback(event.target);
}
for (var i = 0; i < scripts.length; ++i) {
scripts[i].addEventListener("load", onLoad, false);
}
})(function(currentScript) {
init.currentScript = currentScript;
if (typeof dartMainRunner === "function") {
dartMainRunner(V.main, []);
} else {
V.main([]);
}
});
;
// END invoke [main].
})()
//# sourceMappingURL=out.js.map | javascript | 40 | 0.621226 | 646 | 33.223278 | 421 | codenet |
for(var i=1;i<10;i++){
for(var j=1;j<10;j++){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.433333 | 34 | 17.2 | 5 | codenet |
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= 9; j++) {
console.log(i+'x'+j+'='+i*j);
}
}; | javascript | 13 | 0.355769 | 33 | 20 | 5 | codenet |
for(var i=1;i<10;i++){
for(var j=1;j<10;j++){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.481481 | 31 | 15.4 | 5 | codenet |
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= 9; j++) {
console.log('%dx%d=%d', i, j, i * j);
}
} | javascript | 9 | 0.336134 | 45 | 23 | 5 | codenet |
for(var i=1;i<=9;i++)
for(var j=1;j<=9;j++)
console.log(i+"x"+j+"="+(i*j)); | javascript | 11 | 0.45679 | 35 | 26.333333 | 3 | codenet |
for(i=1;i<=9;i++)for(j=1;console.log(i+'x'+j+'='+(i*j)),j<9;j++); | javascript | 12 | 0.476923 | 65 | 65 | 1 | codenet |
for(i=1;i<=9;i++)for(j=1;console.log(i+'x'+j+'='+i*j),j<9;j++); | javascript | 12 | 0.492063 | 63 | 63 | 1 | codenet |
for(var i=0; i<9; i++){
for(var j=0; j<9; j++){
kotae = (i+1) * (j+1);
console.log((i+1)+"x"+(j+1)+"="+kotae);
}
} | javascript | 14 | 0.369565 | 47 | 22.166667 | 6 | codenet |
for(var i = 1; i < 10; i++){
for(var j = 1; j < 10; j++){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.357798 | 39 | 21 | 5 | codenet |
var qq=function(i,j){
if(j==10){
qq(i+1,1)
}else if(i==10){
return
}else{
console.log(i+"x"+j+"="+i*j)
qq(i,j+1)
}
}
qq(1,1) | javascript | 18 | 0.395349 | 36 | 14.727273 | 11 | codenet |
'use strict';
var NS = {};
function addProps(ns) {
var isBrowser = function() {
return typeof window !== 'undefined';
}
ns.isBrowser = isBrowser;
var isNodejs = function() {
return ! isBrowser();
}
ns.isNodejs = isNodejs;
if (isBrowser()) {
var getHtmlEncoded = function(string0) {
return String(string0)
.replace(/&/g, '&')
.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '<')
.replace(/>/g, '>');
}
ns.getHtmlEncoded = getHtmlEncoded;
var outputCode = function() {
document.getElementById('code').innerHTML = '<pre><code>' + getHtmlEncoded(addProps) + '</code></pre>';
}
ns.outputCode = outputCode;
}
var getInput = function() {
var inputLines = [];
if (isBrowser()) {
var html = document.getElementById('input').innerHTML;
inputLines = html.split('<br>');
}
if (isNodejs()) {
inputLines = require("fs").readFileSync("/dev/stdin", "utf8").trim().split('\n');
}
return inputLines;
}
var doOutput = function(outputLines) {
if (isBrowser()) {
document.getElementById('output').innerHTML = outputLines.map(getHtmlEncoded).join('<br>\n');
}
if (isNodejs()) {
for (var i = 0; i < outputLines.length; i++) {
console.log(outputLines[i]);
}
}
}
ns.doOutput = doOutput;
var getProduct = function(a, b) {
return a * b;
}
var main = function() {
var strings = [];
for (var a = 1; a <= 9; a++) {
for (var b = 1; b <= 9; b++) {
var s = a + 'x' + b + '=' + getProduct(a, b);
strings.push(s);
}
}
doOutput(strings);
}
ns.main = main;
}
addProps(NS);
if (NS.isBrowser()) {
window.onload = function() {
NS.outputCode();
}
}
NS.main(); | javascript | 22 | 0.462082 | 115 | 26.584416 | 77 | codenet |
'use strict';
(function(stdin) {
for(var i = 1; i <= 9; i++)
for (var j = 1; j <= 9; j++)
console.log([i,'x',j,'=',i*j].join(''));
}(require('fs').readFileSync('/dev/stdin', 'utf8'))); | javascript | 15 | 0.461538 | 53 | 33.833333 | 6 | codenet |
'use strict';
(function(stdin) {
for(var i =1;i<=9;i++){
for (var j=1;j<=9;j++){
console.log([i,'x',j,'=',i*j].join(''));
}
}
}(require('fs').readFileSync('/dev/stdin', 'utf8'))); | javascript | 17 | 0.468293 | 53 | 19.6 | 10 | codenet |
'use strict';
(function(stdin) {
for(var j = 1; j <= 9; j ++)
for(var i = 1; i <= 9; i ++)
console.log(j + 'x' + i + '=' + i * j);
}(require('fs').readFileSync('/dev/stdin', 'utf8'))); | javascript | 16 | 0.377049 | 57 | 39.833333 | 6 | codenet |
'use strict';
(function(stdin) {
for(var i= 1;i<= 9;i++){
for (var j= 1;j<= 9;j++){
console.log([i,'x' ,j ,'=' ,i*j].join(''));
}
}
}(require('fs').readFileSync('/dev/stdin', 'utf8'))); | javascript | 17 | 0.492308 | 53 | 23.5 | 8 | codenet |
for(var i = 1; i <= 9; ++i)
for(var j = 1; j <= 9; ++j)
console.log(i + 'x' + j + '=' + i * j); | javascript | 11 | 0.342593 | 47 | 26.25 | 4 | codenet |
for(i=1;i<=9;i++)for(j=1;console.log(i+'x'+j+'='+i*j),j<9;j++); | javascript | 12 | 0.492063 | 63 | 63 | 1 | codenet |
for(var i = 1; i < 10; i++){
for(var j = 1; j < 10; j++){
console.log(i + "x" + j + "=" + (i * j));
}
} | javascript | 13 | 0.364486 | 43 | 20.6 | 5 | codenet |
for(var i=1;i<=9;i++){
for(var j=1;j<=9;j++){
console.log(i+"x"+j+"="+i*j);
}
} | javascript | 13 | 0.389474 | 37 | 18.2 | 5 | codenet |
for (var i = 1 ; i <= 9 ; i++)
{
for (var j = 1 ; j <= 9 ; j++)
{
console.log('%dx%d=%d', i, j, i*j);
}
} | javascript | 9 | 0.363636 | 37 | 14.857143 | 7 | codenet |
var i,j;
for (i=1; i<=9; i++) {
for (j=1; j<=9; j++) {
console.log( i + "x" + j + "=" + j*i);
}} | javascript | 13 | 0.356436 | 39 | 19.4 | 5 | codenet |
var i,j;
var result="";
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
console.log(i+"x"+j+"="+(i*j));
}} | javascript | 13 | 0.46875 | 31 | 15.166667 | 6 | codenet |
for(var i = 1; i <= 9; ++i) {
for(var j = 1; j <= 9; ++j) {
console.log(i + 'x' + j + '=' + i * j);
}
} | javascript | 13 | 0.330357 | 42 | 21.6 | 5 | codenet |
for (a=1; a<=9; a++) {
for (b=1; b<=9; b++) {
console.log (a + 'x' + b + '=' + a*b);
}
} | javascript | 13 | 0.333333 | 40 | 17.8 | 5 | codenet |
for(i=1; i<=9; ++i) {
for(j=1; j<=9; ++j) {
v = i * j;
console.log(i.toString() + "x" + j.toString() + "=" + v.toString());
}
} | javascript | 14 | 0.377483 | 76 | 24.333333 | 6 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i*j));
}
} | javascript | 13 | 0.322314 | 47 | 23.4 | 5 | codenet |
for(x=1;x<10;x++){y=1;for(;y<10;){console.log(x+"x"+y+"="+x*y++);}} | javascript | 13 | 0.477612 | 67 | 67 | 1 | codenet |
var i, j, result;
for(i = 1; i < 10; i++) {
for(j = 1; j < 10; j++) {
result = i * j;
console.log(i.toString() + 'x' + j.toString() + '=' + result.toString());
}
} | javascript | 14 | 0.425532 | 81 | 22.625 | 8 | codenet |
var i, j, result;
for(i = 1; i < 10; i++) {
for(j = 1; j < 10; j++) {
result = i * j;
console.log(i.toString() + 'x' + j.toString() + '=' + result.toString());
}
} | javascript | 14 | 0.42328 | 81 | 22.75 | 8 | codenet |
for(var a = 1; a <= 9; a += 1){
for(var b = 1; b <= 9; b += 1){
console.log(a + 'x' + b + '=' + a * b);
}
} | javascript | 13 | 0.314516 | 47 | 19.833333 | 6 | codenet |
for(var i = 1; i < 10; ++i) {
for(var j = 1; j < 10; ++j) {
console.log(i + 'x' + j + '=' + (i * j));
}
} | javascript | 13 | 0.357798 | 43 | 21 | 5 | codenet |
for(var i = 1; i < 10; ++i) {
for(var j = 1; j < 10; ++j) {
console.log(i + 'x' + j + '=' + (i * j));
}
} | javascript | 13 | 0.357798 | 43 | 21 | 5 | codenet |
'use strict';
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= 9; j++) {
console.log(i + 'x' + j + '=' + (i * j))
}
} | javascript | 13 | 0.359375 | 44 | 20.5 | 6 | codenet |
for(var i=1; i<10; i++){
for(var j=1; j<10; j++){
console.log(i + "x" + j + "=" + i * j);
}
} | javascript | 13 | 0.393939 | 41 | 13.285714 | 7 | codenet |
for(var i=1;i<10;i++){
for(var j=1;j<10;j++){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.481481 | 31 | 15.4 | 5 | codenet |
for(var i=1;i<10;i++){
for(var j=1;j<10;j++){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.458824 | 33 | 16.2 | 5 | codenet |
for(var i=1;i<10;i++){
for(var j=1;j<10;j++){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.458824 | 33 | 16.2 | 5 | codenet |
function main() {
for (var x = 1; x <= 9; x++) {
for (var y = 1; y <= 9; y++) {
console.log(x + "x" + y + "=" + x * y);
}
}
}
main(); | javascript | 15 | 0.311765 | 51 | 18 | 9 | codenet |
main();
function main(){
var num;
var str;
for(var i=1;i<=9;++i){
for(var j=1;j<=9;++j){
num = i * j;
str = i + "x" + j + "=" + num;
console.log(str);
}
}
} | javascript | 14 | 0.334783 | 42 | 15.5 | 14 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i * j));
}
} | javascript | 13 | 0.317073 | 49 | 23.8 | 5 | codenet |
for(var i = 1; i < 10; i++) for(var j = 1; j < 10; j++) console.log(i + 'x' + j + '=' + (i*j)); | javascript | 11 | 0.410526 | 95 | 95 | 1 | codenet |
for(var i = 1; i < 10; i++) {
for(var j = 1; j < 10; j++) {
console.log(i+"x"+j+"="+i*j);
}
} | javascript | 13 | 0.39 | 33 | 15.833333 | 6 | codenet |
for (var i = 0; i < (9 * 9); i++) {
var a = Math.floor(i / 9) + 1;
var b = (i % 9) + 1;
console.log(a + "x" + b + "=" + (a*b));
} | javascript | 11 | 0.337838 | 45 | 28.8 | 5 | codenet |
for (var i = 0; i < 9 * 9; i++) {
var a = Math.floor(i / 9) + 1;
var b = i % 9 + 1;
console.log(a + "x" + b + "=" + a*b);
} | javascript | 11 | 0.352113 | 43 | 27.6 | 5 | codenet |
for (var i = 0; i < (9 * 9); i++) {
var a = Math.floor(i / 9) + 1;
var b = (i % 9) + 1;
console.log(a + "x" + b + "=" + (a*b));
} | javascript | 11 | 0.337838 | 45 | 28.8 | 5 | codenet |
for (var i = 0; i < (9 * 9); i++) {
var a = Math.floor(i / 9) + 1;
var b = (i % 9) + 1;
console.log(a + "x" + b + "=" + (a*b));
} | javascript | 11 | 0.340136 | 45 | 28.6 | 5 | codenet |
/**
* Prints multiplication tables
*/
function main() {
var lines = [];
for (var a = 1; a <= 9; a++) {
for (var b = 1; b <= 9; b++) {
lines.push(template(a, b));
}
}
for (var i = 0; i < lines.length; i++) {
console.log(lines[i]);
}
}
function template(a, b) {
return a + 'x' + b + '=' + (a * b);
}
main(); | javascript | 12 | 0.457726 | 42 | 13.333333 | 24 | codenet |
for (var i = 0; i < (9 * 9); i++) {
var a = Math.floor(i / 9) + 1;
var b = (i % 9) + 1;
console.log(a + "x" + b + "=" + (a*b));
} | javascript | 11 | 0.340136 | 45 | 28.6 | 5 | codenet |
process.stdin.resume();
process.stdin.setEncoding('utf8');
var a = 1;
for(a;a<=9;a++){
for(var i=0;i<9;i++){
console.log(a+"x"+(i+1)+"="+a*(i+1));
}
} | javascript | 13 | 0.537975 | 42 | 16.666667 | 9 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i*j));
}
} | javascript | 13 | 0.33913 | 43 | 22.2 | 5 | codenet |
var Multiply = {
start: 1,
end: 10,
equation: function(multiplicand) {
for(i=1; i<this.end; i++) {
console.log(multiplicand + "x" + i + "=" + multiplicand*i);
}
},
solve: function() {
for(multiplicand=1; multiplicand < this.end; multiplicand++) {
this.equation(multiplicand);
}
return;
}
}
Multiply.solve(); | javascript | 17 | 0.581197 | 66 | 21 | 16 | codenet |
var i = 0;
while(i++ < 9){
var j = 0;
while(j++ < 9){
console.log(i+"x"+j+"="+(i*j));
}
} | javascript | 13 | 0.357798 | 39 | 14.714286 | 7 | codenet |
//limit is inclusive
function printMultiplicationsTable(start, limit) {
for(var i = start; i <= limit; i++) {
for(var k = start; k <= limit; k++) {
console.log(i + "x" + k + "=" + (i*k));
}
}
}
printMultiplicationsTable(1, 9); | javascript | 15 | 0.57438 | 50 | 23.3 | 10 | codenet |
var begin = 1,
end = 9;
for(var i = begin; i <= end; i++) {
for(var j = begin; j <= end; j++) {
console.log(i + 'x' + j + '=' + i * j);
}
} | javascript | 13 | 0.407895 | 43 | 18.125 | 8 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i * j))
}
} | javascript | 13 | 0.348214 | 42 | 21.6 | 5 | codenet |
for (var i = 1; i <= 9; i ++) {
for (var j = 1; j <= 9; j ++) {
console.log(i + 'x' + j + '=' + i * j);
}
} | javascript | 13 | 0.333333 | 41 | 21.4 | 5 | codenet |
for(var i=1; i<=9; i++) {
for(var j=1; j<=9; j++) {
process.stdout.write(i+"x"+j+"="+(i*j)+"\n");
}
} | javascript | 14 | 0.422018 | 49 | 21 | 5 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i*j));
}
} | javascript | 13 | 0.33913 | 43 | 22.2 | 5 | codenet |
for(var i=1;i<=9;i++){
for(var j=1;j<=9;j++){
console.log(i+'x'+j+'='+(i*j));
}
} | javascript | 13 | 0.440476 | 32 | 16 | 5 | codenet |
for(var i = 1; i <= 9; i++){
for(var j = 1; j <= 9; j++){
console.log(i + "x" + j + "=" + (i * j));
}
} | javascript | 13 | 0.310924 | 49 | 23 | 5 | codenet |
function hoge() {
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log("%dx%d=%d", i, j, i*j);
}
}
}
hoge() | javascript | 11 | 0.394558 | 41 | 15.444444 | 9 | codenet |
function main() {
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + i*j);
}
}
}
main(); | javascript | 15 | 0.327381 | 49 | 17.777778 | 9 | codenet |
process.stdin.resume();
process.stdin.setEncoding('utf8');
for(var i = 1; i<10; i++){
for(var j = 1; j<10; j++){
var k = i*j;
console.log(i +"x" + j +"="+k)
}
} | javascript | 13 | 0.470899 | 38 | 18 | 10 | codenet |
var MIN = 1;
var MAX = 9;
for (var i = MIN; i <= MAX; i++) {
for (var j = MIN; j <= MAX; j++) {
console.log(i + "x" + j + "=" + i*j);
}
} | javascript | 13 | 0.406897 | 41 | 19.857143 | 7 | codenet |
for(var i = 1;i<=9;i++){
for(var j = 1;j<=9;j++){
console.log(i + "x" + j + "=" + i*j);
}
} | javascript | 13 | 0.389474 | 39 | 18.2 | 5 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i*j));
}
} | javascript | 13 | 0.345133 | 43 | 21.8 | 5 | codenet |
for(i=1;i<10;i++){
for(j=1;j<10;j++){
console.log(i+"x"+j+"="+i*j);
}
} | javascript | 13 | 0.428571 | 31 | 14.6 | 5 | codenet |
for(var i = 1; i < 10; i++) {
for(var j = 1; j < 10; j++) {
console.log(i + 'x' + j + '=' + (i*j));
}
} | javascript | 13 | 0.357798 | 43 | 21 | 5 | codenet |
for (i = 1; i <= 9; i++)
for (j = 1; j <= 9; j++)
console.log("%dx%d=%d", i, j, i * j); | javascript | 7 | 0.377778 | 39 | 29.333333 | 3 | codenet |
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= 9; j++) {
console.log(i + 'x' + j + '=' + (i*j));
}
} | javascript | 13 | 0.298387 | 48 | 24 | 5 | codenet |
(function() {
var a, b;
a = [1, 2, 3, 4, 5, 6, 7, 8, 9];
b = a;
a.forEach(function(n) {
return b.forEach(function(m) {
return console.log(n + "x" + m + "=" + (n * m));
});
});
}).call(this); | javascript | 25 | 0.431193 | 54 | 14.642857 | 14 | codenet |
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= 9; j++) {
console.log(i + 'x' + j + '=' + (i * j));
}
} | javascript | 13 | 0.321739 | 45 | 22.2 | 5 | codenet |
var start = 1,
end = 9;
for (var i = start; i <= end; i++) {
for (var j = start; j <= end; j++) {
console.log(i + 'x' + j + '=' + i * j);
}
} | javascript | 13 | 0.382716 | 47 | 19.375 | 8 | codenet |
function makeMultiplyTable(n) {
var ans = 0 ;
for (var i = 1; i < 10; i++){
ans = n * i;
console.log(n.toString(10) + "x" + i.toString(10) + "=" + ans.toString(10));
}
}
for (var i = 1; i < 10; i++){
makeMultiplyTable(i)
} | javascript | 14 | 0.522822 | 80 | 21 | 11 | codenet |
const RANGE = 9;
for (var i = 1; i <= RANGE; i++) {
for (var j = 1; j <= RANGE; j++) {
console.log(i + 'x' + j + '=' + (i * j));
}
}
| javascript | 13 | 0.394366 | 45 | 19.285714 | 7 | codenet |
(function Main(){
for(var i=1; i <=9;i++){
for(var j=1;j<=9;j++){
console.log(i+"x"+j+"="+i*j);
}
}
})();
| javascript | 18 | 0.382813 | 36 | 15 | 8 | codenet |
for(var i = 1; i <= 9; i++) {
for(var j = 1; j <= 9; j++) {
console.log(`${i}x${j}=${i*j}`);
}
}
| javascript | 11 | 0.366337 | 34 | 19.2 | 5 | codenet |
for (let i = 1; i <= 9; i++) {
for (let j = 1; j <= 9; j++) {
console.log(`${i}x${j}=${i * j}`)
}
}
| javascript | 11 | 0.33945 | 37 | 17.166667 | 6 | codenet |
for(var i = 1; i <= 9; i++){
for(var j = 1; j <= 9; j++){
console.log(i + "x" + j + "=" + (i * j));
}
}
| javascript | 13 | 0.308333 | 49 | 23 | 5 | codenet |
for ( var i = 1; i <= 9; ++ i ) for ( var j = 1; j <= 9; ++ j ) console.log(i+'x'+j+'='+i*j); | javascript | 11 | 0.397849 | 93 | 93 | 1 | codenet |
setTimeout(function() { for ( var i = 1; i <= 9; ++ i ) for ( var j = 1; j <= 9; ++ j ) console.log(i+'x'+j+'='+i*j); },1000) | javascript | 16 | 0.472 | 125 | 125 | 1 | codenet |
global.func = function() { for ( var i = 1; i <= 9; ++ i ) for ( var j = 1; j <= 9; ++ j ) console.log(i+'x'+j+'='+i*j); }; func(); | javascript | 15 | 0.450382 | 131 | 131 | 1 | codenet |
output = function() {
console.log.apply( console, arguments );
};
(function kuku( a, b ) {
if ( a > 9 )
return;
if ( b > 9 )
return kuku( a + 1, 1 );
output( '%dx%d=%d', a, b, a * b );
return kuku( a, b + 1 );
})( 1, 1 ); | javascript | 11 | 0.497835 | 41 | 18.333333 | 12 | codenet |
for(var i=1;i<10;i++){
for(var j=1;j<10;j++){
console.log("%dx%d=%d",i,j,i*j);
}
} | javascript | 9 | 0.411765 | 40 | 19.6 | 5 | codenet |
function Main(input) {
for(i=1;i<10;i++){
for(j=1;j<10;j++){
console.log("%dx%d=%d",i,j,i*j);
}
}
}
//input
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | javascript | 11 | 0.533708 | 55 | 18.888889 | 9 | codenet |
function Main(input) {
for(var i=1; i<10; i++){
for(var j=1; j<10; j++){
console.log(i +"x"+ j +"="+i*j);
}
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | javascript | 15 | 0.522472 | 55 | 18.888889 | 9 | codenet |
function Main(input) {
for(var i=1; i<10; i++){
for(var j=1; j<10; j++){
console.log(i +"x"+ j +"="+i*j);
}
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | javascript | 15 | 0.522472 | 55 | 18.888889 | 9 | codenet |
for (var i = 1; i <= 9; i++)
for (var j = 1; j <= 9; j++)
console.log((i) + "x" + (j) + "=" + (i*j)); | javascript | 11 | 0.327434 | 51 | 37 | 3 | codenet |
for(var i=1;i<10;++i) for(var j=1;j<10;++j) console.log(i+"x"+j+"="+i*j); | javascript | 11 | 0.534247 | 73 | 73 | 1 | codenet |
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= 9; j++) {
var a = i * j;
console.log(i+"x"+j+"="+a);
}
} | javascript | 13 | 0.318182 | 35 | 21.166667 | 6 | codenet |
// Generated by CoffeeScript 1.6.2
(function() {
var each;
each = function(obj, iterator, context) {
return Object.keys(obj).forEach(function(key) {
if (iterator.call(context, obj[key], key, obj)) {
return true;
}
});
};
(function(input) {
var i, j, _i, _results;
_results = [];
for (i = _i = 1; _i <= 9; i = ++_i) {
_results.push((function() {
var _j, _results1;
_results1 = [];
for (j = _j = 1; _j <= 9; j = ++_j) {
_results1.push(console.log("" + i + "x" + j + "=" + (i * j)));
}
return _results1;
})());
}
return _results;
})(require('fs').readFileSync('/dev/stdin', 'utf8'));
}).call(this); | javascript | 34 | 0.469444 | 72 | 22.258065 | 31 | codenet |
for(var i=1,j;i<10;i++)for(j=1;console.log(i+"x"+j+"="+i*j),j<9;j++); | javascript | 12 | 0.521739 | 69 | 69 | 1 | codenet |
for (var i = 1; i < 10; i++)
{
for (var j = 1; j < 10; j++)
{
console.log(i + "x" + j + "=" + i * j);
}
} | javascript | 13 | 0.312 | 47 | 17 | 7 | codenet |
for (var i = 1; i < 10; i++) {
for (var j = 1; j < 10; j++) {
console.log(i + "x" + j + "=" + (i*j));
}
} | javascript | 13 | 0.336207 | 43 | 18.5 | 6 | codenet |
End of preview. Expand
in Dataset Viewer.
No dataset card yet
- Downloads last month
- 0