repo
stringlengths
1
191
file
stringlengths
23
351
code
stringlengths
0
5.32M
file_length
int64
0
5.32M
avg_line_length
float64
0
2.9k
max_line_length
int64
0
288k
extension_type
stringclasses
1 value
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/OrtProvider.java
/* * Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.util.HashMap; import java.util.Map; /** The execution providers available through the Java API. */ public enum OrtProvider { CPU("CPUExecutionProvider"), CU...
1,731
24.850746
90
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/OrtProviderOptions.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.io.IOException; /** An abstract base class for execution provider options classes. */ // Note this lives in ai.onnxruntime to allow subclasses to access the OnnxRunti...
3,602
29.025
96
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/OrtSession.java
/* * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import ai.onnxruntime.providers.CoreMLFlags; import ai.onnxruntime.providers.NNAPIFlags; import ai.onnxruntime.providers.OrtCUDAProviderOptions; import ai.onnxruntime.provid...
52,471
33.818845
163
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/OrtTrainingSession.java
/* * Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.io.IOException; import java.nio.file.Path; import java.util.Arrays; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Map; import ja...
45,860
36.901653
120
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/OrtUtil.java
/* * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.lang.reflect.Array; import java.nio.Buffer; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.DoubleBuffer; import java.nio.FloatBuffer; imp...
19,012
32.23951
114
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/SequenceInfo.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import ai.onnxruntime.TensorInfo.OnnxTensorType; /** Describes an {@link OnnxSequence}, including it's element type if known. */ public class SequenceInfo implements ValueInfo { ...
2,962
27.76699
100
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/TensorInfo.java
/* * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.lang.reflect.Array; import java.nio.Buffer; import java.util.Arrays; /** Describes an {@link OnnxTensor}, including it's size, shape and element type. */ public...
13,816
33.5425
99
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/ValueInfo.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; /** * Interface for info objects describing an {@link OnnxValue}. * * <p>Will be sealed to {@link MapInfo}, {@link TensorInfo} and {@link SequenceInfo} when Java * supports se...
371
25.571429
94
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/package-info.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ /** * A Java interface to the ONNX Runtime. * * <p>Provides access to the same execution backends as the C library. Non-representable types in * Java (such as fp16) are converted into the nearest Jav...
2,601
53.208333
100
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/CoreMLFlags.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; /** Flags for the CoreML provider. */ public enum CoreMLFlags implements OrtFlags { CPU_ONLY(1), // COREML_FLAG_USE_CPU_ONLY(0x001) ENABLE_ON_SUBGRAPH(2), // COREML_...
582
23.291667
84
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/NNAPIFlags.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; /** Flags for the NNAPI provider. */ public enum NNAPIFlags implements OrtFlags { USE_FP16(1), // NNAPI_FLAG_USE_FP16(0x001) USE_NCHW(2), // NNAPI_FLAG_USE_NCHW(0x00...
566
21.68
73
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/OrtCUDAProviderOptions.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; import ai.onnxruntime.OrtException; import ai.onnxruntime.OrtProvider; /** * Options for configuring the CUDA execution provider. * * <p>Supported options are listed...
2,464
28.698795
111
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/OrtFlags.java
/* * Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; import java.util.EnumSet; /** An interface for bitset enums that should be aggregated into a single integer. */ public interface OrtFlags { /** * Gets the underly...
828
22.027778
85
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/OrtTensorRTProviderOptions.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; import ai.onnxruntime.OrtException; import ai.onnxruntime.OrtProvider; /** * Options for configuring the TensorRT execution provider. * * <p>Supported options are li...
2,522
29.39759
120
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/StringConfigProviderOptions.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; import ai.onnxruntime.OrtException; import ai.onnxruntime.OrtProviderOptions; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java...
2,811
30.595506
98
java
null
onnxruntime-main/java/src/main/java/ai/onnxruntime/providers/package-info.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ /** Classes for controlling the behaviour of ONNX Runtime Execution Providers. */ package ai.onnxruntime.providers;
233
28.25
81
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/EnvironmentThreadPoolTest.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import static ai.onnxruntime.TestHelpers.getResourcePath; import static ai.onnxruntime.TestHelpers.loadTensorFromFile; import static org.junit.jupiter.api.Assertions.assertArrayEq...
3,998
42.945055
94
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/InferenceTest.java
/* * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions...
75,584
41.06177
153
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/ModelGenerators.java
/* * Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import ai.onnxruntime.OnnxMl.StringStringEntryProto; import ai.onnxruntime.OnnxMl.TensorProto.DataLocation; import java.io.IOException; import java.io.OutputStream; import java.ni...
6,742
35.448649
100
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/OnnxMl.java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: onnx-ml.proto3 package ai.onnxruntime; public final class OnnxMl { private OnnxMl() {} public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} public static void registerAllExtensions(com.google.prot...
1,161,023
31.478013
130
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/SparseTensorTest.java
/* * Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions...
15,833
34.742664
111
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/TensorCreationTest.java
/* * Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.nio.ByteBuffer; import java.nio.FloatBuffer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class TensorCreationTest { @T...
4,882
31.993243
93
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/TestHelpers.java
/* * Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException...
13,158
27.920879
115
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/TrainingTest.java
/* * Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import ai.onnxruntime.OrtTrainingSession.OrtCheckpointState; import ai.onnxruntime.TensorInfo.OnnxTensorType; import java.io.IOException; import java.nio.ByteBuffer; import ...
15,242
39.865952
100
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/UtilTest.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** */ public class UtilTest { @Test public void reshapeTest() { float[] input = new ...
4,427
42.841584
99
java
null
onnxruntime-main/java/src/test/java/ai/onnxruntime/providers/ProviderOptionsTest.java
/* * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package ai.onnxruntime.providers; import static ai.onnxruntime.TestHelpers.getResourcePath; import static ai.onnxruntime.TestHelpers.loadTensorFromFile; import static org.junit.jupiter.api.Assertions.ass...
5,507
43.419355
100
java
null
onnxruntime-main/java/src/test/java/sample/ScoreMNIST.java
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * Licensed under the MIT License. */ package sample; import ai.onnxruntime.NodeInfo; import ai.onnxruntime.OnnxTensor; import ai.onnxruntime.OrtEnvironment; import ai.onnxruntime.OrtException; import ai.onnxruntime.OrtSession; import ai.onn...
10,868
29.616901
100
java
null
onnxruntime-main/js/react_native/android/src/androidTest/java/ai/onnxruntime/reactnative/FakeBlobModule.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.JavaOnlyMap; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.Reada...
1,050
27.405405
73
java
null
onnxruntime-main/js/react_native/android/src/androidTest/java/ai/onnxruntime/reactnative/OnnxruntimeModuleTest.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession; import static org.mockito.Mockito.when; import ai.onnxruntime.TensorInfo; import android.util.Base64...
7,282
34.70098
120
java
null
onnxruntime-main/js/react_native/android/src/androidTest/java/ai/onnxruntime/reactnative/TensorHelperTest.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import static com.android.dx.mockito.inline.extended.ExtendedMockito.mockitoSession; import static org.mockito.Mockito.when; import ai.onnxruntime.OnnxJavaType; import ai.onnxruntime.On...
22,995
41.743494
120
java
null
onnxruntime-main/js/react_native/android/src/main/java/ai/onnxruntime/reactnative/OnnxruntimeExtensionsDisabled.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import ai.onnxruntime.OrtSession.SessionOptions; import android.util.Log; class OnnxruntimeExtensions { public void registerOrtExtensionsIfEnabled(SessionOptions sessionOptions) { ...
597
34.176471
117
java
null
onnxruntime-main/js/react_native/android/src/main/java/ai/onnxruntime/reactnative/OnnxruntimeExtensionsEnabled.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import ai.onnxruntime.OrtException; import ai.onnxruntime.OrtSession.SessionOptions; import ai.onnxruntime.extensions.OrtxPackage; class OnnxruntimeExtensions { public void registerOr...
474
30.666667
97
java
null
onnxruntime-main/js/react_native/android/src/main/java/ai/onnxruntime/reactnative/OnnxruntimeJSIHelper.java
package ai.onnxruntime.reactnative; import androidx.annotation.NonNull; import com.facebook.react.bridge.JavaScriptContextHolder; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.facebook.react.bridge.ReactMethod; import com.facebook.reac...
2,153
29.338028
100
java
null
onnxruntime-main/js/react_native/android/src/main/java/ai/onnxruntime/reactnative/OnnxruntimeModule.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import ai.onnxruntime.OnnxTensor; import ai.onnxruntime.OnnxValue; import ai.onnxruntime.OrtEnvironment; import ai.onnxruntime.OrtException; import ai.onnxruntime.OrtSession; import ai.o...
16,166
34.299127
117
java
null
onnxruntime-main/js/react_native/android/src/main/java/ai/onnxruntime/reactnative/OnnxruntimePackage.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import android.os.Build; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.NativeModule...
1,132
31.371429
96
java
null
onnxruntime-main/js/react_native/android/src/main/java/ai/onnxruntime/reactnative/TensorHelper.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package ai.onnxruntime.reactnative; import ai.onnxruntime.OnnxJavaType; import ai.onnxruntime.OnnxTensor; import ai.onnxruntime.OnnxValue; import ai.onnxruntime.OrtEnvironment; import ai.onnxruntime.OrtSession; import ai.o...
12,104
41.325175
115
java
null
onnxruntime-main/js/react_native/e2e/android/app/src/androidTest/java/com/example/reactnativeonnxruntimemodule/DetoxTest.java
// Dummy auxiliary Android Test // Detox requires the project to have a single dummy native Android Test with some special content, // which will be picked up by the testRunner. package com.example.reactnativeonnxruntimemodule; import com.wix.detox.Detox; import com.wix.detox.config.DetoxConfig; import org.junit.Rul...
1,073
31.545455
115
java
null
onnxruntime-main/js/react_native/e2e/android/app/src/debug/java/com/example/reactnativeonnxruntimemodule/ReactNativeFlipper.java
/** * Copyright (c) Facebook, Inc. and its affiliates. * * <p>This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ package com.example.reactnativeonnxruntimemodule; import android.content.Context; import com.facebook.flipper.android.AndroidFl...
3,159
46.164179
114
java
null
onnxruntime-main/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/DataHandlerPackage.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.example.reactnativeonnxruntimemodule; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.u...
959
28.090909
87
java
null
onnxruntime-main/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MNISTDataHandler.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.example.reactnativeonnxruntimemodule; import static java.util.stream.Collectors.joining; import ai.onnxruntime.reactnative.OnnxruntimeModule; import ai.onnxruntime.reactnative.TensorHelper; import android.cont...
7,090
31.231818
114
java
null
onnxruntime-main/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MainActivity.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.example.reactnativeonnxruntimemodule; import com.facebook.react.ReactActivity; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. Th...
483
25.888889
96
java
null
onnxruntime-main/js/react_native/e2e/android/app/src/main/java/com/example/reactnativeonnxruntimemodule/MainApplication.java
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.example.reactnativeonnxruntimemodule; import ai.onnxruntime.reactnative.OnnxruntimePackage; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.face...
2,648
30.535714
118
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/ParaViewTangoRecorder/src/com/kitware/tangoproject/paraviewtangorecorder/PCRenderer.java
/* * Copyright 2014 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 applic...
3,325
36.370787
80
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/ParaViewTangoRecorder/src/com/kitware/tangoproject/paraviewtangorecorder/PointCloudActivity.java
/* * Copyright 2014 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 applic...
34,432
41.042735
113
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/ParaViewTangoRecorder/src/com/kitware/tangoproject/paraviewtangorecorder/ZipWriter.java
package com.kitware.tangoproject.paraviewtangorecorder; /* * Copyright 2015 Kitware 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.apach...
2,283
30.287671
94
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/ParaViewTangoRecorder/src/com/kitware/tangoproject/paraviewtangorecorder/package-info.java
/* * Copyright 2014 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 applic...
818
38
83
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/ModelMatCalculator.java
/* * Copyright 2014 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 applic...
8,985
36.598326
83
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/Renderer.java
package com.kitware.tangoutils; import android.opengl.Matrix; import android.util.Log; import android.view.MotionEvent; public class Renderer { protected static final int FIRST_PERSON = 0; protected static final int TOP_DOWN = 1; protected static final int THIRD_PERSON = 2; protected static final int...
12,055
40.006803
83
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/CameraFrustum.java
/* * Copyright 2014 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 applic...
4,959
34.942029
81
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/CameraFrustumAndAxis.java
/* * Copyright 2014 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 applic...
5,184
33.566667
81
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/Grid.java
/* * Copyright 2014 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 applic...
4,176
38.40566
81
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/PointCloud.java
/* * Copyright 2014 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 applic...
4,171
36.927273
81
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/RenderUtils.java
/* * Copyright 2014 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 applic...
1,410
29.021277
77
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/Renderable.java
/* * Copyright 2014 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 applic...
2,181
31.088235
78
java
ParaViewTangoRecorder
ParaViewTangoRecorder-master/TangoUtils/src/com/kitware/tangoutils/renderables/Trajectory.java
/* * Copyright 2014 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 applic...
7,088
38.383333
81
java
treelstm
treelstm-master/lib/CollapseUnaryTransformer.java
import java.util.List; import edu.stanford.nlp.ling.Label; import edu.stanford.nlp.trees.Tree; import edu.stanford.nlp.trees.TreeTransformer; import edu.stanford.nlp.util.Generics; /** * This transformer collapses chains of unary nodes so that the top * node is the only node left. The Sentiment model does not hand...
1,190
33.028571
69
java
treelstm
treelstm-master/lib/ConstituencyParse.java
import edu.stanford.nlp.process.WordTokenFactory; import edu.stanford.nlp.ling.HasWord; import edu.stanford.nlp.ling.Word; import edu.stanford.nlp.ling.CoreLabel; import edu.stanford.nlp.process.PTBTokenizer; import edu.stanford.nlp.util.StringUtils; import edu.stanford.nlp.parser.lexparser.LexicalizedParser; import ed...
7,589
31.297872
106
java
treelstm
treelstm-master/lib/DependencyParse.java
import edu.stanford.nlp.process.WordTokenFactory; import edu.stanford.nlp.ling.HasWord; import edu.stanford.nlp.ling.Word; import edu.stanford.nlp.ling.TaggedWord; import edu.stanford.nlp.parser.nndep.DependencyParser; import edu.stanford.nlp.process.PTBTokenizer; import edu.stanford.nlp.trees.TypedDependency; import e...
4,721
32.489362
114
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/ByteOrderMark.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
6,054
30.21134
128
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/ByteOrderParser.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
2,490
36.742424
135
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/Charsets.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
8,074
40.839378
119
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/EndianUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
21,943
38.610108
124
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/FileCleaningTracker.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
11,605
38.610922
111
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/FileDeleteStrategy.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
5,629
33.121212
85
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/FileUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
147,128
43.382805
269
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/FilenameUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
65,548
38.368769
118
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/HexDump.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
6,209
35.745562
102
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/IOUtils.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
153,798
41.936628
238
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-docs/LineIterator.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
6,780
33.42132
114
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/ByteOrderMarkTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class ByteOrderMarkTest { @Test public void testAssertThrowsMessage_get_posTooLarge() { final java.lang.Ar...
2,043
44.422222
169
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/ByteOrderParserTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class ByteOrderParserTest { @Test public void testAssertThrowsMessage_parseByteOrder_unknownByteOrder() { ...
678
44.266667
185
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/CharsetsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class CharsetsTest { @Test public void testAssertThrowsMessage_toCharset_charsetNameIllegal() { final java...
852
39.619048
174
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/EndianUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class EndianUtilsTest { @Test public void testAssertThrows_writeSwappedShort_byteArray_dataNull() { assert...
20,468
51.891473
220
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/FileCleaningTrackerTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class FileCleaningTrackerTest { @Test public void testAssertThrowsMessage_track_NullFile() { final java.la...
3,199
55.140351
216
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/FileDeleteStrategyTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class FileDeleteStrategyTest { @Test public void testAssertThrows_delete_fileNull() { assertThrows(java.la...
1,252
39.419355
171
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/FileUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class FileUtilsTest { @Test public void testAssertThrowsMessage_contentEquals_file1Dir() { final java.io.I...
131,492
57.702232
253
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/FilenameUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class FilenameUtilsTest { @Test public void testAssertThrowsMessage_getName_filenameNullBytes() { final ja...
12,555
72.426901
228
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/HexDumpTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class HexDumpTest { @Test public void testAssertThrowsMessage_dump_streamNull() { final java.lang.IllegalA...
2,132
51.02439
237
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/IOUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class IOUtilsTest { @Test public void testAssertThrows_toString_inputStreamWithString_inNull() { assertThr...
87,930
52.259237
267
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/output-tests/LineIteratorTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class LineIteratorTest { @Test public void testAssertThrowsMessage_remove_always() { final java.lang.Unsup...
2,866
49.298246
195
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/templates/Template.java
package $package$; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; public class $class$Test { /** * IF: $state$ THEN: [$ex$] [is] [thrown] */ @Template("template1") @Types($state$=EXPR, $ex$=...
1,982
29.984375
94
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/ByteOrderMarkUtils.java
package org.apache.commons.io; public class ByteOrderMarkUtils { public static ByteOrderMark testBOM() { return new ByteOrderMark("test", 1); } }
155
14.6
39
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/EndianUtilsUtils.java
package org.apache.commons.io; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class EndianUtilsUtils { public static final Double DOUBLE = Double.longBitsToDouble(0x0102030405060708L); public static final Float FLOAT = Float.intBits...
1,548
20.816901
82
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/FileCleaningTrackerUtils.java
import org.apache.commons.io.FileCleaningTracker; //package org.apache.commons.io; public class FileCleaningTrackerUtils { public static FileCleaningTracker closedTracker() { FileCleaningTracker tracker = new FileCleaningTracker(); tracker.exitWhenFinished(); return tracker; } }
292
21.538462
58
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/FileDeleteStrategyUtils.java
package org.apache.commons.io; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class FileDeleteStrategyUtils { private static final String BASE = "testResources"; public static FileDeleteStrategy normal() { return new FileDeleteStrategy("Normal"); } public static File n...
568
20.884615
52
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/FileUtilsUtils.java
package org.apache.commons.io; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.MalformedURLException; import java.net.URL; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import jav...
8,240
22.214085
114
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/FilenameUtilsUtils.java
package org.apache.commons.io; public class FilenameUtilsUtils { public static final String FILENAME_NULL_BYTES = "~u\u0000ser\\bob\u0000\\fil\u0000e.txt"; public static final String FILENAME = "/foo/"; public static final String FILENAME_INVALID = "/../"; }
266
25.7
91
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/HexDumpUtils.java
package org.apache.commons.io; import java.io.IOException; import java.io.OutputStream; public class HexDumpUtils { public static OutputStream outputStreamWriteIOException() { return new OutputStream() { @Override public void write(final int b) throws IOException { ...
965
18.714286
64
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/IOUtilsUtils.java
package org.apache.commons.io; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.CharArrayReader; import java.io.CharArrayWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; import java.net.UR...
5,530
19.186131
96
java
DScribe-Research
DScribe-Research-master/Section 6 - Usefulness Study/testUtils/LineIteratorUtils.java
package org.apache.commons.io; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; public class LineIteratorUtils { public static LineIterator lineIteratorReadIOException() { final Reader reader = new BufferedReader(new StringReader("")) { ...
1,146
22.408163
78
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/ByteOrderMarkTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import org.junit.j...
2,951
42.411765
86
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/ByteOrderParserTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import java.nio.ByteOrder; import org.junit.jupiter.api.Test; public class ByteOrderParserTest { @Test public void testParseByteOrder() { ByteOrder byteOrder = ByteOrderParser.parseByteOrder("LITTLE_ENDIAN"); assertE...
371
20.882353
72
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/CharsetsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import java.nio.charset.Charset; import org.junit.jupiter.api.Test; public class CharsetsTest { @Test public void testIso8859_1() { assertEquals("ISO-8859-1...
1,492
29.469388
61
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/EndianUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertion...
4,087
36.163636
128
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/FileCleaningTrackerTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; import java.io.File; import java.util.List; import org.junit.jupiter.api.Test; public class FileCleaningTracker...
5,354
47.681818
93
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/FileDeleteStrategyTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions...
6,419
50.36
111
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/FileUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertio...
13,164
35.068493
134
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/FilenameUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class...
4,288
45.11828
741
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/HexDumpTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.fail; import java.io.OutputStream; import java.util.Arrays; import org.junit.jupiter.api.Test; public class HexDump...
2,498
34.7
130
java
DScribe-Research
DScribe-Research-master/Section 7 - Comparison Study/Annotator A tests/IOUtilsTest.java
package org.apache.commons.io; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertion...
7,539
32.963964
107
java