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
xgboost
xgboost-master/jvm-packages/xgboost4j-spark-gpu/src/main/java/ml/dmlc/xgboost4j/java/nvidia/spark/GpuColumnBatch.java
/* Copyright (c) 2021 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
1,736
24.173913
73
java
xgboost
xgboost-master/jvm-packages/xgboost4j-tester/src/main/java/ml/dmlc/xgboost4j/tester/App.java
package ml.dmlc.xgboost4j.tester; import ml.dmlc.xgboost4j.java.example.*; import java.io.IOException; import ml.dmlc.xgboost4j.java.XGBoostError; public class App { public static void main(String[] args) throws IOException, XGBoostError { String[] args2 = new String[0]; System.out.println("BoostFromPredic...
849
30.481481
75
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Booster.java
/* Copyright (c) 2014-2022 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
27,881
31.725352
100
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Column.java
/* Copyright (c) 2021 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
1,200
28.292683
86
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/ColumnBatch.java
/* Copyright (c) 2021 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
3,108
32.074468
90
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/Communicator.java
package ml.dmlc.xgboost4j.java; import java.io.Serializable; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.LinkedList; import java.util.List; import java.util.Map; /** * Collective communicator global class for synchronization. * * Currently the communicator API is experimental, function ...
3,949
24.816993
95
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/DMatrix.java
/* Copyright (c) 2014-2023 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
14,122
28.484342
100
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/DataBatch.java
package ml.dmlc.xgboost4j.java; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import ml.dmlc.xgboost4j.LabeledPoint; /** * A mini-batch of data that can be converted to DMatrix. * The data is in sp...
3,700
30.905172
91
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/ExternalCheckpointManager.java
package ml.dmlc.xgboost4j.java; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.*; import java.util.stream.Collectors; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.fs.FileSystem; import org.apache.ha...
4,333
35.728814
95
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/IEvaluation.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
1,067
24.428571
73
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/IObjective.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
1,121
30.166667
92
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/IRabitTracker.java
package ml.dmlc.xgboost4j.java; import java.util.Map; import java.util.concurrent.TimeUnit; /** * Interface for Rabit tracker implementations with three public methods: * * - start(timeout): Start the Rabit tracker awaiting for worker connections, with a given * timeout value (in milliseconds.) * - getWorkerE...
1,432
30.844444
96
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/NativeLibLoader.java
/* Copyright (c) 2014, 2021 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
10,293
33.086093
100
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/QuantileDMatrix.java
package ml.dmlc.xgboost4j.java; import java.util.Iterator; /** * QuantileDMatrix will only be used to train */ public class QuantileDMatrix extends DMatrix { /** * Create QuantileDMatrix from iterator based on the cuda array interface * * @param iter the XGBoost ColumnBatch batch to provide the corres...
2,331
29.684211
99
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/RabitTracker.java
package ml.dmlc.xgboost4j.java; import java.io.*; import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicReference; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * Java implementation of the Rabit trac...
7,641
32.517544
98
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/TrackerProperties.java
package ml.dmlc.xgboost4j.java; import java.io.*; import java.net.URL; import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class TrackerProperties { private static String PROPERTIES_FILENAME = "xgboost-tracker.properties"; private static String...
1,542
26.070175
96
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoost.java
/* Copyright (c) 2014,2021 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
18,838
31.039116
99
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoostError.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
867
26.125
73
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/XGBoostJNI.java
/* Copyright (c) 2014-2023 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
7,622
43.319767
108
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/util/BigDenseMatrix.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
2,236
28.051948
89
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/main/java/ml/dmlc/xgboost4j/java/util/UtilUnsafe.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
1,330
27.319149
82
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/ArchDetectionTest.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
2,895
28.252525
98
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/BoosterImplTest.java
/* Copyright (c) 2014-2022 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
24,651
33.002759
107
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/DMatrixTest.java
/* Copyright (c) 2014-2022 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
12,996
29.085648
87
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/LibraryPathProviderTest.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
1,987
31.064516
91
java
xgboost
xgboost-master/jvm-packages/xgboost4j/src/test/java/ml/dmlc/xgboost4j/java/OsDetectionTest.java
/* Copyright (c) 2014 by Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, so...
2,623
26.051546
73
java
D2F-Bench
D2F-Bench-master/tpch/tpch-gen/src/main/java/org/notmysock/tpch/GenTable.java
package org.notmysock.tpch; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.io.*; import org.apache.hadoop.io.compress.DefaultCodec; import org.apache.hadoop.io.compress.SnappyCodec; import org.apache.hadoop.util.*; import org.apache.hadoop.file...
8,778
33.292969
162
java
null
flower-main/examples/android/client/app/src/main/java/flwr/android_client/FlowerClient.java
package flwr.android_client; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.os.ConditionVariable; import android.util.Log; import android.util.Pair; import androidx.lifecycle.MutableLiveData; import java.io.Buffere...
4,959
34.428571
161
java
null
flower-main/examples/android/client/app/src/main/java/flwr/android_client/MainActivity.java
package flwr.android_client; import android.app.Activity; import android.icu.text.SimpleDateFormat; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import android.os.Handler; import android.os.Looper; import android.text.TextUtils; import android.text.method.ScrollingMovementMethod; import...
12,085
40.675862
148
java
null
flower-main/examples/android/client/app/src/main/java/flwr/android_client/TransferLearningModelWrapper.java
package flwr.android_client; import android.content.Context; import android.os.ConditionVariable; import android.os.Environment; import android.util.Pair; import java.io.Closeable; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.Fi...
4,168
29.210145
105
java
null
flower-main/examples/android/client/transfer_api/src/androidTest/java/org/tensorflow/lite/examples/transfer/api/LiteBottleneckModelTest.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,267
34.4375
100
java
null
flower-main/examples/android/client/transfer_api/src/androidTest/java/org/tensorflow/lite/examples/transfer/api/LiteTrainHeadModelTest.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
5,109
36.29927
100
java
null
flower-main/examples/android/client/transfer_api/src/androidTest/java/org/tensorflow/lite/examples/transfer/api/ModelCorrectnessTest.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
5,515
31.069767
95
java
null
flower-main/examples/android/client/transfer_api/src/androidTest/java/org/tensorflow/lite/examples/transfer/api/TransferLearningModelTest.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,631
36.070423
99
java
null
flower-main/examples/android/client/transfer_api/src/androidTest/java/org/tensorflow/lite/examples/transfer/api/ZipUtils.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
1,765
32.320755
100
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/AssetModelLoader.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,849
36.012987
98
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/LiteBottleneckModel.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,032
30.765625
91
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/LiteInferenceModel.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
2,145
31.515152
87
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/LiteInitializeModel.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
1,911
30.344262
94
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/LiteModelWrapper.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
1,941
27.985075
80
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/LiteOptimizerModel.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
3,525
33.910891
99
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/LiteTrainHeadModel.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
4,481
32.447761
93
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/ModelLoader.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
1,174
35.71875
93
java
null
flower-main/examples/android/client/transfer_api/src/main/java/org/tensorflow/lite/examples/transfer/api/TransferLearningModel.java
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
20,577
31.715421
102
java
qark
qark-master/qark/exploit_apk/app/src/androidTest/java/com/secbro/qark/ApplicationTest.java
package com.secbro.qark; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(A...
346
25.692308
93
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/TopLevelActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
6,117
37
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/filebrowser/FileBrowserFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
18,978
40.169197
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/filebrowser/FileBrowserActivity.java
/* * * Reference: https://github.com/vaal12/AndroidFileBrowser by Alexey Vassiliev * */ package com.secbro.qark.filebrowser; import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.Collections; //Android imports import a...
17,555
40.308235
120
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/tapjacking/TapJackingExploitFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
7,199
34.121951
165
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/customintent/ChooseIntentUseCaseActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
5,322
41.584
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/customintent/CreateCustomIntentActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
12,463
40.685619
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/webviewtests/WebViewTestsActivityFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
4,024
34
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/webviewtests/WebViewTestsActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
5,872
41.557971
176
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/ExportedComponentsFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
3,732
35.598039
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/exportedactivity/ExportedActivityListFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
4,101
39.215686
170
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/exportedactivity/IntentSenderActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
4,702
39.895652
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/exportedactivity/IntentParamsFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
7,291
38.630435
186
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/exportedreceiver/IntentSenderFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
5,394
39.871212
182
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/exportedreceiver/ExportedReceiverListFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
3,956
38.57
169
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/exportedcomponent/exportedreceiver/IntentSenderActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
3,086
40.16
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/intentsniffer/BroadcastIntentSnifferActivity.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
1,540
40.648649
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/intentsniffer/BroadcastIntentSnifferFragment.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
2,695
36.444444
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/intentsniffer/services/BootReceiver.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
883
37.434783
161
java
qark
qark-master/qark/exploit_apk/app/src/main/java/com/secbro/qark/intentsniffer/services/BroadcastStealerService.java
/* * Copyright 2015 LinkedIn Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, sof...
2,951
35.9
161
java
qark
qark-master/tests/test_java_files/check_permissions.java
import android.content.Context; class Test { public static void Test(Context context) { context.checkCallingOrSelfPermission(); context.enforceCallingOrSelfPermission(); } }
186
22.375
45
java
qark
qark-master/tests/test_java_files/test_android_logging.java
class Test { public void Test() { Log.d("test"); Log.v("test"); } public void Test2() { d("test"); v("test"); } }
137
12.8
23
java
qark
qark-master/tests/test_java_files/task_affinity.java
import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.widget.Toast; public class MyActivity extends Activity { protected void Test() { Intent intent = new Intent(this, BPSplashActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);...
525
20.04
59
java
qark
qark-master/tests/test_java_files/dynamic_broadcast_receiver.java
class RegisterReceiver { public void Test(Context context, Calendar c) { final String SOME_ACTION = "com.android.action.MyAction.SomeAction"; IntentFilter intentFilter = new IntentFilter(SOME_ACTION); Receiver mReceiver = new Receiver(); context.registerReceiver(mReceiver, intentFilter); } }
313
33.888889
72
java
qark
qark-master/tests/test_java_files/phone_identifier.java
import android.telephony.TelephonyManager; class Test { public static void Test(Context context) { TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); //Calling the methods of TelephonyManager the returns the information String IMEINumber=tm.getDeviceId(); } }
312
30.3
89
java
qark
qark-master/tests/test_java_files/http_url_hardcoded.java
class Test { public static void TestMethod() { final TextView mTextView = (TextView) findViewById(R.id.text); // ... // Instantiate the RequestQueue. RequestQueue queue = Volley.newRequestQueue(this); String url ="http://www.google.com"; // Request a string response from the provided URL. StringRequ...
909
31.5
76
java
qark
qark-master/tests/test_java_files/send_broadcast_receiver_permission.java
/* * Decompiled with CFR 0_124. * * Could not load the following classes: * android.content.BroadcastReceiver * android.content.Context * android.content.Intent * android.content.IntentFilter * android.os.Handler * android.os.Looper * android.os.Message */ package android.support.v4.content; import a...
3,000
33.895349
120
java
qark
qark-master/tests/test_java_files/external_storage.java
class Test { public static File[] Test(Context context) { File[] roots = context.getExternalFilesDirs("external"); File roots = context.getExternalFilesDir("external"); File roots = context.getExternalMediaDirs("external"); File roots = context.getExternalStoragePublicDirectory("external"); return...
333
36.111111
71
java
qark
qark-master/tests/test_java_files/insecure_functions.java
class Test { @Override public Bundle call(String method, String arg, Bundle extras) { pass; } }
105
16.666667
64
java
qark
qark-master/tests/test_plugins/test_cert_plugins/testHostnameVerifier.java
package test_plugins.test_cert_plugins; public class testHostnameVerifier { public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER = new AllowAllHostnameVerifier(); } public class testSetHostnameVerifier { public static void vulnerableMethod() { URL url = new URL("https://example.org/"); Htt...
734
37.684211
104
java
qark
qark-master/tests/test_plugins/test_cert_plugins/testCertMethodsFile.java
class VulnerableCheckServerTrusted { public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {} } class VulnerableCheckServerTrustedEmptyReturn { public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {return;} } class Vulner...
798
41.052632
117
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/ecb3.java
class Example{ public static void main(){ Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding", "SunJCE"); Key skeySpec = KeyGenerator.getInstance("AES").generateKey(); cipher.init(Cipher.ENCRYPT_MODE, skeySpec); System.out.println(Arrays.toString(cipher.doFinal(new byte[] { 0, 1, 2, 3 }))); } }
312
33.777778
81
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/secure_random_args1.java
import java.security.SecureRandom; class Aoeu{ public String generate(){ SecureRandom random = new SecureRandom(); Random r = new Random(); int seed = r.nextInt(); random.setSeed(seed); return new BigInteger(130, random).toString(32); } }
255
18.692308
50
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/secure_random_no_args1.java
import java.security.SecureRandom; import java.util.Random; public final class mfo { public static final SecureRandom a; private static final Random b; static { b = new mfp(); SecureRandom secureRandom = new SecureRandom(); secureRandom.nextLong(); a = secureRandom; } }...
321
20.466667
55
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/no_ecb1.java
class Example{ private static String decrypt_data(String encData) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException { String key = "bad8deadcafef00d"; SecretKeySpec skeySpec = new SecretKeySpec(key.getBytes(), "AES"); ...
643
34.777778
77
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/secure_random_args2.java
import java.security.SecureRandom; import java.math.BigInteger; class Aoeu{ public BigInteger generate(){ SecureRandom random = new SecureRandom(); Random r = new Random(); int seed = r.nextInt(); random.setSeed(seed); return new BigInteger(130, random).toString(32); } }
286
19.5
50
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/ecb1.java
class Example{ public static void main(){ Cipher.getInstance("AES/ECB/PKCS5Padding", "SunJCE"); } }
104
16.5
55
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/invalid.java
THIS IS AN INVALID JAVA FILE
29
14
28
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/ecb2.java
class Example{ public static void main(){ Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding", "SunJCE"); Key skeySpec = KeyGenerator.getInstance("AES").generateKey(); cipher.init(Cipher.ENCRYPT_MODE, skeySpec); System.out.println(Arrays.toString(cipher.doFinal(new byte[] { 0, 1, 2, 3 }))); } }
312
33.777778
81
java
qark
qark-master/tests/test_plugins/test_crypto_plugins/java_files/blank.java
0
0
0
java
qark
qark-master/tests/test_plugins/test_file_plugins/test_file_permissions.java
class ExampleReadable{ public static void main(){ SharedPreferences preference = context.getContext() .getSharedPreferences(Context.MODE_WORLD_READABLE); } } class ExampleWritable{ public static void main(){ SharedPreferences preference = context.getContext() .getSharedPreferences(Context....
703
26.076923
60
java
qark
qark-master/tests/test_plugins/test_webviews/vulnerable_webview_add_javascript_interface.java
class JsObject { @JavascriptInterface public String toString() { return "injectedObject"; } } class vulnerable_webview_add_javascript_interface extends WebViewClient { public void vulnerableMethodSetAllowFileAccess() { WebView web = (WebView) findViewById(R.id.webview); web.addJavascriptInterface(new JsO...
570
30.722222
73
java
qark
qark-master/tests/test_plugins/test_webviews/vulnerable_webview_universal_access_from_urls.java
class vulnerable_webview_universal_access_from_urls extends WebViewClient { public void vulnerableMethodSetAllowUniversalAccessFromURLs() { WebView web = (WebView) findViewById(R.id.webview); } public void vulnerableMethodSetAllowUniversalAccessFromURLs2() { WebView web = (WebView) findViewById(R.id.webvi...
875
42.8
75
java
qark
qark-master/tests/test_plugins/test_webviews/vulnerable_webview_content_access.java
class WebviewJavascript extends WebViewClient { public void vulnerableMethodSetAllowContentAccess() { WebView web = (WebView) findViewById(R.id.webview); } public void vulnerableMethodSetAllowContentAccess2() { WebView web = (WebView) findViewById(R.id.webview); WebSettings webSettings = web.getSettin...
759
37
56
java
qark
qark-master/tests/test_plugins/test_webviews/vulnerable_webview.java
class WebviewJavascript extends WebViewClient { public void vulnerableMethodJavascriptEnabled() { WebView web = (WebView) findViewById(R.id.webview); web.setWebChromeClient(new MyCustomChromeClient(this)); web.setWebViewClient(new MyCustomWebViewClient(this)); web.clearCache(true); web.clearHistor...
2,549
41.5
106
java
qark
qark-master/tests/test_plugins/test_webviews/vulnerable_webview_file_access.java
class WebviewJavascript extends WebViewClient { public void vulnerableMethodSetAllowFileAccess() { WebView web = (WebView) findViewById(R.id.webview); } public void vulnerableMethodSetAllowFileAccess2() { WebView web = (WebView) findViewById(R.id.webview); WebSettings webSettings = web.getSettings(); ...
744
36.25
56
java
qark
qark-master/tests/test_plugins/test_webviews/vulnerable_webview_set_dom_storage_enabled.java
class vulnerable_webview_set_dom_storage_enabled extends WebViewClient { public void vulnerableMethodSetDomStorageEnabled() { WebView web = (WebView) findViewById(R.id.webview); web.getSettings().setDomStorageEnabled(true); } public void vulnerableMethodSetAllowFileAccess2(WebView web) { web.setDomSto...
461
34.538462
72
java
qark
qark-master/tests/test_plugins/test_intent/test_implicit_intent.java
package android.support.v4.content; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.os.Handler; import android.os.Looper; import android.os.Message; import java.util.ArrayList;...
1,169
36.741935
124
java
qark
qark-master/tests/test_plugins/test_manifest_plugins/broadcastreceivers/SendSMSNowReceiver.java
package test_plugins.test_manifest_plugins.broadcastreceivers; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsManager; import org.owasp.goatdroid.fourgoats.misc.Utils; public class SendSMSNowReceiver ex...
793
30.76
123
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/diqube/TicketSignatureService.java
package diqube; import java.nio.ByteBuffer; import java.util.List; import org.bouncycastle.crypto.CryptoException; import org.bouncycastle.crypto.DataLengthException; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.crypto.params.RSAKeyParameters; import org.bouncycastle.crypto.params.RSAP...
2,488
31.324675
110
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/iso9796_signer_verifier/Main.java
package iso9796_signer_verifier; import java.io.File; import java.math.BigInteger; import java.nio.file.Files; import java.security.KeyFactory; import java.security.PrivateKey; import java.security.interfaces.RSAKey; import java.security.spec.PKCS8EncodedKeySpec; import org.bouncycastle.asn1.pkcs.RSAPrivateKey; impor...
1,555
30.755102
94
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/gwt_crypto/ISO9796SignerTest.java
package gwt_crypto; import java.math.BigInteger; import java.util.Arrays; import org.bouncycastle.crypto.AsymmetricBlockCipher; import org.bouncycastle.crypto.digests.SHA1Digest; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.crypto.engines.RSABlindedEngine; import org.bouncycastle.crypt...
7,099
51.205882
554
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/gwt_crypto/PSSTest.java
package gwt_crypto; import java.util.Arrays; import org.bouncycastle.crypto.digests.SHA1Digest; import org.bouncycastle.crypto.engines.RSAEngine; import org.bouncycastle.crypto.params.ParametersWithRandom; import org.bouncycastle.crypto.params.RSAKeyParameters; import org.bouncycastle.crypto.signers.PSSSigner; import...
1,187
24.826087
85
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/gwt_crypto/PSSBlindTest.java
package gwt_crypto; import java.math.BigInteger; import java.util.Arrays; import org.bouncycastle.crypto.digests.SHA1Digest; import org.bouncycastle.crypto.engines.RSABlindingEngine; import org.bouncycastle.crypto.engines.RSAEngine; import org.bouncycastle.crypto.generators.RSABlindingFactorGenerator; import org.boun...
2,327
31.788732
91
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/gwt_crypto/X931SignerTest.java
package gwt_crypto; import java.math.BigInteger; import org.bouncycastle.crypto.digests.SHA1Digest; import org.bouncycastle.crypto.engines.RSAEngine; import org.bouncycastle.crypto.params.RSAKeyParameters; import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters; import org.bouncycastle.crypto.signers.X931Sig...
4,629
69.151515
552
java
CryptoAnalysis
CryptoAnalysis-master/CryptoAnalysisTargets/BCSignerExamples/src/main/java/bop_bitcoin_client/ECKeyPair.java
package bop_bitcoin_client; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.math.BigInteger; import java.security.SecureRandom; import javax.xml.bind.ValidationException; import org.bouncycastle.asn1.ASN1Integer; import org.bouncycastle.asn1.DERSequenceGenerator; import org.bouncycastle...
2,641
36.742857
138
java