sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
8db115c11be76ae2a970f148b493a08e0622f0d1c24d1204771ef1ff1c342f68
Java
720
24
package org.pytorch.torchvision; import static org.junit.Assert.assertArrayEquals; import android.graphics.Bitmap; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import org.pytorch.Tensor; @RunWith(AndroidJUnit4.class) public class TorchVisionInstrumente...
ed8b9e5e743f52703233b1554385744a2ea65da1625f44688d03a70de1c57fe8
Java
752
28
package model; import java.io.*; import java.util.Scanner; import org.json.JSONObject; public class JSONio { public static JSONObject read(String filepath) throws FileNotFoundException { try { return new JSONObject(new Scanner(new File(filepath)).useDelimiter("\\A").next()); } catch (...
9ecf7c2a76861bdd18cb38336b78af7fff40d0bd61a1d861dbcdcb5f815e844a
Java
759
27
package org.pytorch; /** Codes representing tensor data types. */ public enum DType { // NOTE: "jniCode" must be kept in sync with pytorch_jni_common.cpp. // NOTE: Never serialize "jniCode", because it can change between releases. /** Code for dtype torch.uint8. {@link Tensor#dtype()} */ UINT8(1), /** Code ...
54dca3546cea21b992f1c83efbc9f232e6e17bfd54d32880b42da8e953a77b5a
Java
772
25
package org.pytorch; import java.io.IOException; import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.StandardCopyOption; import java.util.Objects; public class PytorchHostTests extends PytorchTestBase { @Override protected Module loadModel(String path) throws I...
7f7c249f387af6e9b5fa1e2e1468c65e66a0ee5df7bf18f5782c79b31962dd47
Java
840
33
package gadgetron.external; import java.net.Socket; import java.io.InputStream; import java.io.OutputStream; import java.io.IOException; public class SocketWrapper { private Socket socket; private InputStream input; private OutputStream output; public SocketWrapper(Socket socket) throws IOException...
fcb50d7f4a038dfd779f036a4d49b52ee7c5912fbb89368997a75c7fec701510
Java
887
29
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import java.io.*; import java.util.Scanner; import org.j...
cc1ba9cd915c1dc1576861145abcd1eaa4ad528b57ef288c4d2049af80f1792b
Java
1,011
34
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE.txt and README.txt files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package threedmodel; import java.io.*; import java.util.Scanner; i...
d9f0deb4406b08f78c2c33a2712915051b825a7458e7b02b6d3a8acef39e88b2
Java
1,262
42
package org.pytorch; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.junit.runner.RunWith; @Run...
a3b0a995a3d6e9c25e7a9701a5fa87680c2ef11f2c2715ed11368f38814fb4fe
Java
1,276
42
package org.pytorch; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.junit.runner.RunWith; @Run...
a9d376954ac32342afd205fa485df0948667feb779d7ea2e1cf65c1b8c02623d
Java
1,301
40
package model; import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; import org.json.JSONArray; import org.json.JSONObject; /** Inspired by code from https://crunchify.com/how-to-read-json-object-from-file-in-java/ */ public class JSONReader { private JSONObject jsonObject; ...
da160746f1b7b69d1b06d15d6fe2dd54b0f1123351a4272334a6be0f02333455
Java
1,335
46
package org.pytorch; import com.facebook.jni.HybridData; import com.facebook.jni.annotations.DoNotStrip; import com.facebook.soloader.nativeloader.NativeLoader; import java.util.Map; class NativePeer implements INativePeer { static { NativeLoader.loadLibrary("pytorch_jni"); PyTorchCodegenLoader.loadNativeLi...
db55f2307dca5baf1c14e54a645b144fd04af6212f3d8bf9a0ec49781c9ce81a
Java
1,714
50
package org.pytorch; import android.content.res.AssetManager; import com.facebook.jni.annotations.DoNotStrip; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; public final class PyTorchAndroid { static { if (!NativeLoader.isInitialized()) { ...
a453df463e4f46fccfe426f4f11b35b9246693a0f2baceb56ca79abb88287bf3
Java
2,090
49
package org.pytorch; import android.content.res.AssetManager; import java.util.Map; public class LiteModuleLoader { /** * Loads a serialized TorchScript module from the specified path on the disk to run on specified * device. The model should be generated from this api _save_for_lite_interpreter(). * *...
c253d8616692918ea6c5eac0c2086c034fc09716c41b3ae5465e07df87028549
Java
2,285
64
package org.pytorch; import com.facebook.jni.HybridData; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; import java.util.Map; class LiteNativePeer implements INativePeer { static { if (!NativeLoader.isInitialized()) { NativeLoader.init(new...
249505353b52953eabf13728d6c745ac2e26bb9015bac6e3554f71edd51c4d86
Java
2,694
75
// Copyright 2004-present Facebook. All Rights Reserved. package org.pytorch; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; import java.util.Map; /** Java wrapper for torch::jit::Module. */ public class Module { private INativePeer mNativePeer; ...
555e5c89e3b025ab40a2f77378a3900ce4acb992114eee7153391702df65f816
Java
3,373
107
import com.google.gson.Gson; import com.sun.net.httpserver.Headers; import edu.uic.ncdm.venn.VennAnalytic; import edu.uic.ncdm.venn.VennDiagram; import edu.uic.ncdm.venn.data.VennData; import java.util.HashMap; import java.io.IOException; import java.io.OutputStream; import java.io.InputStream; import java.net.InetSoc...
f53bf64696f9fd0bc0f80d5a9868b6c6fb47dc0d48375319ecfa191a8e35193a
Java
5,021
142
package model; import java.util.*; import org.json.JSONObject; public class IdentifierManager { private HashMap<String, Integer> identifierStates = new HashMap<>(); private HashMap<String, String> identifierPseudonyms = new HashMap<>(); public String[] labels = null; public HashMap<Integer, JSONObje...
07721feae64acfafa949212218261467e5adf7d7e14a985da98cc4221cb9d8ca
Java
5,280
148
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE.txt and README.txt files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package threedmodel; import java.util.*; import org.json.JSONObjec...
4753268e1facf1326cf96f4302a826f3e088d436901c93a7ed5ce6e3bc08cd7a
Java
5,443
152
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import java.util.*; import org.json.JSONObject; @Suppre...
f8b10116fd8d1078c74f6a7ca7b9bebbe0d622723849f96bf8ec29c7a52e0e08
Java
6,375
191
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.Model; import com.comsol.model.u...
7254a69dcb6c1e47b51269318f1e51f6ffc001bd389167757fa5803712fd00ff
Java
6,692
191
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.Model; import com.comsol.model.u...
043822ab63dabdb203fb13c334b44a19c323e2a1beb06d93023f59d9b814c7bf
Java
7,420
223
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE.txt and README.txt files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package threedmodel; import com.comsol.model.Model; import com.com...
bdf3a911caa55050bb7cd1b5f75d61ddde1bdeb7b049f0d8d9ddcab304d748b4
Java
8,064
216
package model; import com.comsol.model.Model; import com.comsol.model.util.ModelUtil; import com.comsol.util.exceptions.FlException; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.regex.Matcher; import java.util.regex.Pattern; impor...
49c7e184c51c7595dd1766d79f16ca89a8924d9799ccd6f7d207a10103bad30f
Java
9,049
265
package model; import com.comsol.model.Model; import com.comsol.model.util.ModelUtil; import com.comsol.util.exceptions.FlException; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintWriter; import java.util.Scanner; import java.util.concurrent.TimeUnit; /** *...
b504baf9cdca5eb7e5ee985bf87efb2a3ad3ff070a3921c206a59c841046d00c
Java
9,262
343
package org.pytorch; import com.facebook.jni.annotations.DoNotStrip; import java.util.Locale; import java.util.Map; /** * Java representation of a TorchScript value, which is implemented as tagged union that can be one * of the supported types: https://pytorch.org/docs/stable/jit.html#types . * * <p>Calling {@cod...
25ebff711f69836775e8508459b298aff19d198fa800c1c8cc96a787909f165d
Java
13,917
398
package org.pytorch.torchvision; import android.graphics.Bitmap; import android.graphics.ImageFormat; import android.media.Image; import com.facebook.soloader.nativeloader.NativeLoader; import com.facebook.soloader.nativeloader.SystemDelegate; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.FloatBu...
ce8409bc3ffeb2b0a3f1873d9e28f9ea5c39d0c7655884b7e38c926b134a06e0
Java
21,861
694
package org.pytorch; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.util.HashMap; import java.uti...
0a06eff892b4a1b8164aeaaae0b9c899c88846de4c198f9e004e00b9865b7800
Java
25,544
735
package org.pytorch; import com.facebook.jni.HybridData; import com.facebook.jni.annotations.DoNotStrip; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.DoubleBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.nio.LongBuffer; import java.util.Arra...
f70bfd45f95980a419c595d7fcc5bea3f1a39c45c5a89be9be096a7a16af9696
Java
90,316
2,183
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE.txt and README.txt files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package threedmodel; import com.comsol.model.*; import com.comsol....
d4a488e1fce6489279cbdd4e3c8a369c1c3fbc7e0bed3bb20a42876e5fbe4e56
Java
101,198
2,374
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.*; import com.comsol.model.physi...
9694da0c9a74f2e49b5df8c07b27b76963a26fb51e12ae28ca42697676b39fae
Java
107,566
2,495
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.*; import com.comsol.model.physi...
77eba03d957961e0525f3ae9bbc824cf629976c5f80484a10685390237231272
Java
115,413
2,634
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.*; import com.comsol.model.physi...
2bac3c8a0157dbb62cc45c9204036f479eddf95526c12e70c45605b9b5f03e6f
Java
200,000
4,196
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.*; import com.comsol.model.physi...
52ff4127684a1ca7feff27537d7ad8bfa9d927be4d5d56156556460e4a61ff72
Java
200,000
4,204
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE.txt and README.txt files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package threedmodel; import com.comsol.model.*; import com.comsol....
8bedcd768d8cae2530823faddf51453cd6c31c25597ac19f429228529e62a360
Java
200,000
4,188
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.*; import com.comsol.model.physi...
b939df950c4ba5e75c7830a3a9cd3bca1c401e3b0d794b25145f70917d8f1837
Java
200,000
4,199
/* The copyrights of this software are owned by Duke University. Please refer to the LICENSE and README.md files for licensing instructions. The source code can be found on the following GitHub repository: https://github.com/wmglab-duke/ascent */ package model; import com.comsol.model.*; import com.comsol.model.physi...
ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356
JavaScript
3
1
{}
2381bc843b2a0b42506a50f79427cfd052a24f3a43c46915dfaa405f552c45e2
JavaScript
11
1
../../c3.js
5f3f611128e32dafd04ce182272d5ffedcb33fc11275c5254450d59c43afc911
JavaScript
13
1
d3.svg = {};
682b2e817d287ce9ee726453b7286537d2a41b6128be0d828dfd1f974d992adf
JavaScript
13
1
d3.geo = {};
6e8924f3455af5a02056bfe3088084a3c4971bd48a34829225aad7c009a41aea
JavaScript
14
1
d3.geom = {};
684126680c1634e40395a0d983c706da565dbcde6dfc404ad15b9c5d2d3f0b09
JavaScript
15
1
../../c3.min.js
13edc8ac200f571745adc2b3ebcce620b67e2aa0921c9cfe21ee7df8d898177a
JavaScript
16
1
d3.layout = {};
0670ae5629021251309cf75ba8f02bfe30ec1d7880dfd8523abf69e2e8fdbd9c
JavaScript
18
1
d3.behavior = {};
200bb8514bb1969f965c348935c7207665ad2be6cc7dbd0a50ce2fccce82784c
JavaScript
20
1
var abs = Math.abs;
7fa9987e484d2c8cd264f4fcee98f382e404839d958bae3988911871410f36f1
JavaScript
20
1
import "selection";
0d92b3149f4968babeae51f67f2babdd1505bd7c33405e67ea3fc0cd872436e0
JavaScript
21
1
import "transition";
46828b8a87194e293a8871b32c2b27fee2ff267e0707c55ec0f9c9acd7d9373f
JavaScript
22
1
function d3_noop() {}
d47dbc8d593089025161425ec7f09958724e3e3a9af21af2194b3cf35bbbca80
JavaScript
35
3
function d3_zero() { return 0; }
47361928bbeeaa5f2afc100b0777d251d857f8eab0445e140e6f24bbca813cc7
JavaScript
37
2
import "random"; import "transform";
c9da80df774d1708bed357c5cc9e9af13524c0b5f9d2b8c40d7977e273cb6f94
JavaScript
38
3
function d3_true() { return true; }
433560bc47962f174817ea0ac9bc609c570954dc9cc37adcc04a7945fdec4a9a
JavaScript
40
3
function d3_identity(d) { return d; }
38fa1dd746f0abfe57a7565b2cf0cce32510242ebf87fd54af8ab8fb3b9032ba
JavaScript
42
3
import "dsv"; import "csv"; import "tsv";
12c0d32483e7d2a0f16a1d89f728fbc5f32b7a53afb9752cb1b71514fa2cca61
JavaScript
45
3
function d3_source(d) { return d.source; }
d787575bd1a23c9ddd45cd6a8796c5285f44c06c41c35fa7cb5b1b1ec364b65c
JavaScript
45
3
function d3_target(d) { return d.target; }
ddaca3c73aab560334450fa24f719246fc610ce82cae1586f218248188ea8e84
JavaScript
47
3
import "array"; import "date"; import "style";
d3e179fda79ad37a389450c4079d351ff0395eee5183751f930f1187d1c8edb5
JavaScript
48
3
import "functor"; import "ns"; import "rebind";
dc7921fdddeb6e54a9844c338e3bd5d9125a210bda1bc61bd71df420470e6e50
JavaScript
49
3
import "behavior"; import "drag"; import "zoom";
f0f17a7128eafc0492f562a04ad8bdeb7fdf58f170904a5f0df84c6015160e9e
JavaScript
49
3
import "dsv"; d3.csv = d3.dsv(",", "text/csv");
85b1f9faa94993811224af590287461593ce5f5950503544308aea56f353ff80
JavaScript
55
2
!function(){ var d3 = {version: "3.5.16"}; // semver
539b3e1355ebf05c7943191d5a47bf871b7ebd13816f373ead47019fc54503e2
JavaScript
62
3
import "format"; var d3_time_formatUtc = d3_time_format.utc;
c7736c734cc2ea6aec429a5b4d9002cd0bb4bc7b8fef6422b70ae76b01a0426d
JavaScript
62
3
if (!Date.now) Date.now = function() { return +new Date; };
e4943a0887c8c84c3d6a903fa0992c96cf524f1f82ed892577674c15a432c300
JavaScript
67
3
import "dsv"; d3.tsv = d3.dsv("\t", "text/tab-separated-values");
24bb4e5c6cd1fa8487882c7b1689cffc4451b00cf25e02809be81c1e41a70cba
JavaScript
68
3
import "../locale/en-US"; d3.format = d3_locale_enUS.numberFormat;
2e2a0b2fb6895c1585a0ef405e2bd02b52a18f31e6069b164162ac650940a384
JavaScript
68
3
function d3_collapse(s) { return s.trim().replace(/\s+/g, " "); }
03c8f91cddc207445b97f9aab35b28687186e4f4516a3ccab05f90d49d07c359
JavaScript
73
5
import "xhr"; import "text"; import "json"; import "html"; import "xml";
7248e82179454b8f4fa20a69ea1fcce36901c7f160e4e3bdf03da0e66e629bd8
JavaScript
74
4
import "format"; import "formatPrefix"; import "requote"; import "round";
678f6ce2cb80b1fe72fc67e7412be6e2ab6ada083111b64f7c40d35e3cba5e00
JavaScript
80
1
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
8a8e584859cd8c9c682d4467d6f9cb86aa0249e7f1f0f8f795d0a671e9919822
JavaScript
80
5
import "transpose"; d3.zip = function() { return d3.transpose(arguments); };
aa2a7df3d698554e7efdd6c04506492534077625b89aa233b6b7a7ba980e3763
JavaScript
86
6
import "color"; import "rgb"; import "hsl"; import "hcl"; import "lab"; import "xyz";
e63ea17506417a724c77a7e49441e4c7138e4237152a87aa55b07a70c104792e
JavaScript
88
3
d3.descending = function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; };
3e6f6de2eee255b93d68ad3c4636550d99c3cdcde4ab064ad87d8f9f892c97b3
JavaScript
89
4
(function (window) { 'use strict'; /*global define, module, exports, require */
82c11e736647056ccec4e34f1496b1bbc40db6b38bbfd9bb345965bd032ccaac
JavaScript
89
5
import "xhr"; d3.xml = d3_xhrType(function(request) { return request.responseXML; });
5252921ad799d668b0eda9c87094bde9189381d54546d44d3c27216ccf49aebb
JavaScript
90
5
import "selection"; d3_selectionPrototype.empty = function() { return !this.node(); };
4987e01255fcb6ff5db273ff9c3e9b4832160143e4b12a522cd4c20d5ae4ae2f
JavaScript
91
5
import "xhr"; d3.text = d3_xhrType(function(request) { return request.responseText; });
06a2c1192ce5b7ed11db3f6dbf15e86badb54869e4c5c625d2339ec1a21b9b5a
JavaScript
93
7
function d3_geom_pointX(d) { return d[0]; } function d3_geom_pointY(d) { return d[1]; }
5676699f702355802b1b28cd9df7fb09d11e271c321137405f177d9fc85ad680
JavaScript
98
3
function d3_format_precision(x, p) { return p - (x ? Math.ceil(Math.log(x) / Math.LN10) : 1); }
d7275c11742da73e9d0834ca3611dabed86ba58b330f5621897501f4cbe9a51a
JavaScript
100
5
d3.keys = function(map) { var keys = []; for (var key in map) keys.push(key); return keys; };
e58cae6a16bd616f48df6b6c50aa0520b9a79224a25afd56a0baa375be856ddc
JavaScript
101
6
import "dispatch"; import "event"; import "mouse"; import "touch"; import "touches"; import "timer";
5a2a04e262f79c30d28d6a7bb795ed5de58960769ecb4eecdce6c91d47bb6932
JavaScript
102
6
import "pow"; import "scale"; d3.scale.sqrt = function() { return d3.scale.pow().exponent(0.5); };
ec8de24e8643f0776046660a776b4303c7b7a6815a3dd6ccc0ad2fb4e63ca0ae
JavaScript
104
6
import "geom"; import "hull"; import "polygon"; import "voronoi"; import "delaunay"; import "quadtree";
179ba2f4a449e58e574680c32c406b1c049d8872c52b28b3610ee41fe9947e58
JavaScript
106
7
function d3_number(x) { return x === null ? NaN : +x; } function d3_numeric(x) { return !isNaN(x); }
9840cac71e8621c4d9ab4631245a17f0312acadde9d4114a39c73907d9d1b20c
JavaScript
107
4
import "../locale/en-US"; import "time"; var d3_time_format = d3_time.format = d3_locale_enUS.timeFormat;
19a46a54964c8021ce7fa86575b08ec8e5832588a6c76420c9af2242acabf5b0
JavaScript
113
5
d3.values = function(map) { var values = []; for (var key in map) values.push(map[key]); return values; };
7f4ca51a8d68dc3182d1b8d87c6b0b66215c1718ca49fda74ad97ece8dbd9644
JavaScript
114
5
d3.ascending = d3_ascending; function d3_ascending(a, b) { return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN; }
f93e159c10dc0c40d8432cdb9e268857e577a9caedf614da59cc1fd9a0216caf
JavaScript
115
5
d3.round = function(x, n) { return n ? Math.round(x * (n = Math.pow(10, n))) / n : Math.round(x); };
17d53b5e29f4a61183f1feab033ab7a61fe8670f1bad23b7962e1043f179e98b
JavaScript
118
5
function d3_functor(v) { return typeof v === "function" ? v : function() { return v; }; } d3.functor = d3_functor;
a404b3b2d0bfcc890cb5447d1054231392e7a2b6feb13ca9ee996a00b7107cbb
JavaScript
118
7
d3.color = d3_color; function d3_color() {} d3_color.prototype.toString = function() { return this.rgb() + ""; };
ba690eccd9ebb30a2cf8dde00b82e195d7337fa82f1d47ab763250e5bf451b0f
JavaScript
122
5
// TODO: fix c3_chart_fn.color = function (id) { var $$ = this.internal; return $$.color(id); // more patterns };
19a173c1f740bb38dd2eff7dc7da8ad216f59fdac943dc60ba5097ca8a025b4e
JavaScript
126
2
var d3_arraySlice = [].slice, d3_array = function(list) { return d3_arraySlice.call(list); }; // conversion for NodeLists
81f43b671d1c1051bda920017bea2952c73dc7edc35a5376bd81a2f5e4159ca7
JavaScript
128
6
import "variance"; d3.deviation = function() { var v = d3.variance.apply(this, arguments); return v ? Math.sqrt(v) : v; };
d989f905b0558f6958500fda65d39c46ca44472e87cf9bafc6f93c8f474d220d
JavaScript
129
5
d3.requote = function(s) { return s.replace(d3_requote_re, "\\$&"); }; var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
03f62ed45128dd52cc86fb3366242754e823c1c136ed793c616de5b1367c5e3c
JavaScript
134
7
import "each"; d3_selectionPrototype.size = function() { var n = 0; d3_selection_each(this, function() { ++n; }); return n; };
88fb544a2306c1f1512e4f4ed644200a8f5a5d1943cfe8753aadf8418bbf5ee4
JavaScript
136
5
d3.entries = function(map) { var entries = []; for (var key in map) entries.push({key: key, value: map[key]}); return entries; };
8f3cd03743e48bcb9e38f8f36cf2aa7a9ea7979117108a8f61f1e531ada372e2
JavaScript
149
6
d3.interpolateRound = d3_interpolateRound; function d3_interpolateRound(a, b) { b -= a; return function(t) { return Math.round(a + b * t); }; }
df08b6798c27c4fff73aa2c31ef978d53c366feeedb4466676f2dfe1656c0573
JavaScript
158
6
d3.interpolateNumber = d3_interpolateNumber; function d3_interpolateNumber(a, b) { a = +a, b = +b; return function(t) { return a * (1 - t) + b * t; }; }
1de7d85afb363aa05ffe5f293f6e102c9d00550446e47c2c600d07555ec58a93
JavaScript
160
5
d3.permute = function(array, indexes) { var i = indexes.length, permutes = new Array(i); while (i--) permutes[i] = array[indexes[i]]; return permutes; };
3788b2db1af2dfe3b4aba7fa0a3549d602d8799a3bfa27a6a824cdb1ba680dff
JavaScript
162
6
import "geom"; // @deprecated; use d3.geom.voronoi triangles instead. d3.geom.delaunay = function(vertices) { return d3.geom.voronoi().triangles(vertices); };
28960a51f27059656be0f416160c0bcc8a3037c39e51785918368e6fd4e9825b
JavaScript
163
6
module.exports = { presets: [ ['@babel/preset-env', { targets: { node: 'current' } }], ['@babel/preset-react', { targets: { node: 'current' } }] ], };
37d65b560ad4e1b779f780826df29070d4443ce4ebb780e1e467bd7b0ce0bfb1
JavaScript
166
4
c3_chart_internal_fn.categoryName = function (i) { var config = this.config; return i < config.axis_x_categories.length ? config.axis_x_categories[i] : i; };