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
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/goodware/ripper/FeatureRipper.java
package it.polimi.elet.necst.heldroid.goodware.ripper; import it.polimi.elet.necst.heldroid.pipeline.ApplicationData; import it.polimi.elet.necst.heldroid.smali.SmaliConstantFinder; import it.polimi.elet.necst.heldroid.smali.SmaliLoader; import it.polimi.elet.necst.heldroid.smali.core.SmaliClass; import it.polimi.elet...
13,165
32.758974
122
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/Logging.java
package it.polimi.elet.necst.heldroid.utils; import java.io.OutputStream; import java.io.PrintStream; public class Logging { private static PrintStream originalOut, originalErr; public static void suppressOut() { originalOut = System.out; PrintStream dummyStream = new PrintStream(new OutputS...
1,067
20.795918
69
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/MultiMap.java
package it.polimi.elet.necst.heldroid.utils; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; public class MultiMap<K, V> { private Map<K, Collection<V>> map; public MultiMap() { map = new HashMap<K, Collection<V>>(); } public void put(...
1,893
26.057143
61
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/Wrapper.java
package it.polimi.elet.necst.heldroid.utils; public class Wrapper<T> { public T value; public Wrapper() { } public Wrapper(T value) { this.value = value; } }
185
14.5
44
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/Literal.java
package it.polimi.elet.necst.heldroid.utils; public class Literal { public static boolean isString(String liteal) { return liteal.startsWith("\""); } public static String getStringValue(String literal) { return literal.replace("\"", ""); } }
276
22.083333
57
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/MixedInputStream.java
package it.polimi.elet.necst.heldroid.utils; import java.io.IOException; import java.io.InputStream; public class MixedInputStream extends InputStream { private static final int PARTIAL_BUFFER_MAX_SIZE = 4096; private InputStream stream; private byte[] partialBuffer; private int partialBufferIndex; ...
3,598
28.5
104
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/Stopwatch.java
package it.polimi.elet.necst.heldroid.utils; public class Stopwatch { public static double time(Runnable runnable) { Long startTime, endTime; startTime = System.currentTimeMillis(); runnable.run(); endTime = System.currentTimeMillis(); return (double)(endTime - startTime) ...
338
23.214286
54
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/CollectionToJsonConverter.java
package it.polimi.elet.necst.heldroid.utils; import java.util.Collection; import org.json.JSONArray; public class CollectionToJsonConverter { /** * This method will create a JSONArray from a {@link Collection}. For each * object inside the collection, the {@link Object#toString()} method is * called and adde...
925
27.060606
75
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/CFGUtils.java
/** * */ package it.polimi.elet.necst.heldroid.utils; import java.io.File; import java.util.Collections; import it.polimi.elet.necst.heldroid.apk.DecodedPackage; import it.polimi.elet.necst.heldroid.ransomware.Globals; import soot.PackManager; import soot.Scene; import soot.SootMethod; import soot.jimple.infoflow....
2,873
25.366972
77
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/TextFileWriter.java
package it.polimi.elet.necst.heldroid.utils; import java.io.*; public class TextFileWriter extends FileWriter { private boolean printOut = false; private boolean fileOut = true; public void setPrintOut(boolean printOut) { this.printOut = printOut; } public void setFileOut(boolean fileOut...
1,134
22.645833
82
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/Options.java
package it.polimi.elet.necst.heldroid.utils; public class Options { private String args[]; public Options(String args[]) { this.args = args; } public boolean contains(String option) { for (int i = 0; i < args.length; i++) if (args[i].equals(option)) return ...
932
22.325
61
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/FileSystem.java
package it.polimi.elet.necst.heldroid.utils; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileReader; import java.io.FilenameFilter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.security.DigestInputStream; im...
6,148
28.14218
110
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/Xml.java
package it.polimi.elet.necst.heldroid.utils; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import java.util.ArrayList; import java.util.Collection; import java.util.List; public class Xml { public static Element getChildElement(Element parent, String name) { NodeList n...
1,531
25.413793
92
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/utils/PersistentFileList.java
package it.polimi.elet.necst.heldroid.utils; import java.io.*; import java.util.ArrayList; import java.util.List; public class PersistentFileList { private List<String> innerList; private BufferedWriter writer; public PersistentFileList(File repo) throws IOException { innerList = new ArrayList<St...
1,287
24.254902
96
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliLoader.java
package it.polimi.elet.necst.heldroid.smali; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import it.polimi.elet.necst.heldroid.pipeline.ThreadedCollectionExecutor; import it....
6,466
33.956757
127
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliSimulator.java
package it.polimi.elet.necst.heldroid.smali; import it.polimi.elet.necst.heldroid.smali.core.SmaliMethod; import it.polimi.elet.necst.heldroid.smali.names.SmaliMemberName; import it.polimi.elet.necst.heldroid.smali.statements.*; import it.polimi.elet.necst.heldroid.utils.MultiMap; import java.util.*; public class Sm...
7,128
38.826816
123
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliConstantFinder.java
package it.polimi.elet.necst.heldroid.smali; import it.polimi.elet.necst.heldroid.smali.core.SmaliClass; import it.polimi.elet.necst.heldroid.smali.core.SmaliField; import it.polimi.elet.necst.heldroid.smali.core.SmaliMethod; import it.polimi.elet.necst.heldroid.smali.names.SmaliMemberName; import it.polimi.elet.necst...
5,219
38.545455
126
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliInspector.java
package it.polimi.elet.necst.heldroid.smali; import it.polimi.elet.necst.heldroid.smali.collections.QueryableSmaliClassCollection; import it.polimi.elet.necst.heldroid.smali.core.SmaliClass; import it.polimi.elet.necst.heldroid.smali.core.SmaliMethod; import it.polimi.elet.necst.heldroid.smali.names.SmaliClassName; im...
9,404
42.948598
172
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliHelper.java
package it.polimi.elet.necst.heldroid.smali; import java.util.ArrayList; import java.util.List; public class SmaliHelper { public static final String SMALI_EXTENSION = ".smali"; // Type examples: "I", "[S", "Ljava/lang/Object;" public static final String TYPE_REGEX = "[\\w\\d\\$\\/\\[;_]+"; // Access...
2,047
34.310345
83
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliSyntaxException.java
package it.polimi.elet.necst.heldroid.smali; public class SmaliSyntaxException extends Exception { public SmaliSyntaxException(String message) { super(message); } }
182
21.875
53
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/SmaliFormatException.java
package it.polimi.elet.necst.heldroid.smali; public class SmaliFormatException extends Exception { public SmaliFormatException(String message) { super(message); } }
182
21.875
53
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/core/SmaliField.java
package it.polimi.elet.necst.heldroid.smali.core; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliField { private static final String DECLARATION_PREFIX = ".field"; private static final Pattern DECLARATION_PATTERN = Pattern.compile("\\.field\\s+([\\-\\w]+\\s+)*?([\\w\\d\\$]+)...
1,361
25.705882
159
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/core/SmaliClass.java
package it.polimi.elet.necst.heldroid.smali.core; import it.polimi.elet.necst.heldroid.smali.SmaliFormatException; import it.polimi.elet.necst.heldroid.smali.SmaliHelper; import it.polimi.elet.necst.heldroid.smali.collections.QueryableSmaliClassCollection; import it.polimi.elet.necst.heldroid.smali.names.SmaliClassNam...
5,483
29.983051
123
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/core/SmaliMethod.java
package it.polimi.elet.necst.heldroid.smali.core; import it.polimi.elet.necst.heldroid.smali.SmaliFormatException; import it.polimi.elet.necst.heldroid.smali.SmaliHelper; import it.polimi.elet.necst.heldroid.smali.statements.SmaliLabelDeclaration; import it.polimi.elet.necst.heldroid.smali.statements.SmaliStatement; i...
4,725
31.593103
177
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/collections/QueryableSmaliClassCollection.java
package it.polimi.elet.necst.heldroid.smali.collections; import it.polimi.elet.necst.heldroid.smali.core.SmaliClass; import it.polimi.elet.necst.heldroid.smali.names.SmaliClassName; import java.util.*; public class QueryableSmaliClassCollection implements Collection<SmaliClass> { private Collection<SmaliClass> i...
4,039
26.862069
115
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/names/SmaliMemberName.java
package it.polimi.elet.necst.heldroid.smali.names; import java.util.ArrayList; import java.util.List; public class SmaliMemberName { private SmaliClassName className; private String memberName; private String completeName; public SmaliMemberName(String completeName) { String[] parts = complet...
1,717
26.709677
107
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/names/SmaliClassName.java
package it.polimi.elet.necst.heldroid.smali.names; public class SmaliClassName { private String packageName; private String simpleName; private String completeName; public SmaliClassName(String completeName) { this.completeName = completeName; if (completeName.indexOf('/') >= 0) { ...
1,259
26.391304
89
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliNewInstanceStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import it.polimi.elet.necst.heldroid.smali.names.SmaliClassName; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliNewInstanceStatement extends SmaliStatement { ...
1,509
31.12766
125
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliMoveStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliMoveStatement extends SmaliStatement { private static final String CALL_PREFIX = "move"; private static fi...
1,559
28.433962
122
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliArrayGetStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; public class SmaliArrayGetStatement extends SmaliArrayAccessStatement { }
131
25.4
71
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliArrayAccessStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliArrayAccessStatement extends SmaliStatement { private static final String[] CALL_PREFIXES = {"aget", "aput" };...
2,299
30.081081
140
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliGetStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; public class SmaliGetStatement extends SmaliAccessStatement { }
121
23.4
61
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliMoveResultStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliMoveResultStatement extends SmaliStatement { private static final String CALL_PREFIX = "move-result"; priv...
1,397
29.391304
105
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliConstantStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliConstantStatement extends SmaliStatement { private static final String CALL_PREFIX = "const"; private stat...
1,552
28.301887
117
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliReturnStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliReturnStatement extends SmaliStatement { private static final String CALL_PREFIX = "return"; private stati...
1,570
29.803922
116
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliIfStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliIfStatement extends SmaliStatement { private static final String CALL_PREFIX = "if-"; private static final...
2,139
30.014493
154
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliLabelDeclaration.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliLabelDeclaration extends SmaliStatement { private static final String CALL_PREFIX = ":"; private static fi...
998
27.542857
92
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliInvocationStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliHelper; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import it.polimi.elet.necst.heldroid.smali.names.SmaliClassName; import it.polimi.elet.necst.heldroid.smali.names.SmaliMemberName; import jav...
4,123
36.490909
225
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliArrayPutStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; public class SmaliArrayPutStatement extends SmaliArrayAccessStatement { }
131
25.4
71
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliAccessStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import it.polimi.elet.necst.heldroid.smali.names.SmaliClassName; import it.polimi.elet.necst.heldroid.smali.names.SmaliMemberName; import java.util.regex.Matcher; import java.util.regex.Pattern; p...
2,750
32.144578
214
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; public abstract class SmaliStatement { private String codeLine; public boolean is(Class type) { return this.getClass().getName().equals(type.getName()); } public static Sm...
1,929
32.275862
85
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliPutStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; public class SmaliPutStatement extends SmaliAccessStatement { }
121
23.4
61
java
heldroid
heldroid-master/src/java/it/polimi/elet/necst/heldroid/smali/statements/SmaliGotoStatement.java
package it.polimi.elet.necst.heldroid.smali.statements; import it.polimi.elet.necst.heldroid.smali.SmaliSyntaxException; import java.util.regex.Matcher; import java.util.regex.Pattern; public class SmaliGotoStatement extends SmaliStatement { private static final String CALL_PREFIX = "goto"; private static fi...
1,276
27.377778
101
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/TestUtils.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,658
32.568807
128
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/ECIESTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
6,761
41.2625
281
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/CryptoTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
15,330
39.238845
344
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/ECIESCoderTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,913
40.042254
459
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/ECKeyTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
18,454
41.327982
298
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/cryptohash/Keccak512Test.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
118,187
141.566948
525
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/cryptohash/AbstractCryptoTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,740
40.10989
82
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/crypto/cryptohash/Keccak256Test.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
101,807
121.660241
525
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/validator/ProofOfWorkRuleTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
6,908
85.3625
1,118
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/validator/EthashRuleTest.java
package org.ethereum.validator; import org.ethereum.core.Block; import org.ethereum.core.BlockHeader; import org.ethereum.core.BlockSummary; import org.ethereum.listener.CompositeEthereumListener; import org.ethereum.listener.EthereumListener; import org.ethereum.mine.EthashValidationHelper; import org.junit.Test; imp...
10,678
58.994382
1,156
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/StateTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
5,707
38.916084
139
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/ImportLightTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
40,103
42.168999
144
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/ChainTest.java
package org.ethereum.core; import org.ethereum.core.genesis.GenesisJson; import org.ethereum.core.genesis.GenesisLoader; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.InputStream; import java.math.BigInteger; import static org.junit.Assert.*; /** * @author alexbraz ...
1,702
25.2
141
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/AccountStateTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
1,497
35.536585
94
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/LogInfoTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,762
41.761364
220
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/TransactionReceiptTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,476
41.925926
646
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/ABITest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
30,384
50.5
2,722
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/PendingStateTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
27,207
40.858462
188
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/TransactionExecutionSummaryTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
7,363
37.962963
160
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/PendingStateLongRunTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
5,721
36.398693
107
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/BloomTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,782
36.106667
531
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/PremineRawTest.java
package org.ethereum.core; import org.junit.Test; import java.math.BigInteger; import static org.junit.Assert.*; /** * @author alexbraz * @since 29/03/2019 */ public class PremineRawTest { @Test public void testPremineRawNotNull() { byte[] addr = "0xcf0f482f2c1ef1f221f09e3cf14122fce0424f94".get...
569
20.923077
81
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/PruneTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
25,182
42.19554
188
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/CloseTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,162
34.459016
85
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/TransactionTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
40,705
50.461441
1,191
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/BlockchainGetHeadersTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
8,839
38.81982
117
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/BlockTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
62,584
291.453271
51,686
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/ImportTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,863
33.19469
89
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/core/genesis/GenesisLoadTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
6,641
38.535714
108
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/DaoLightMiningTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,285
36.770115
113
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/ConfigTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,621
42.119048
111
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/DefaultConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
3,129
35.395349
141
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/GenerateNodeIdRandomlyTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,444
37.809524
97
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/SystemPropertiesTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
25,948
40.058544
192
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/GetNodeIdFromPropsFileTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
5,369
38.777778
125
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/InitializerTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
9,140
34.707031
108
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/NodeFilterTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
6,553
37.327485
108
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/BlockHeaderBuilder.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,329
32.285714
122
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/ETCFork3MTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
8,273
40.164179
124
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/ConstantinopleConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
8,791
43.857143
124
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/Eip150HFConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
7,321
42.070588
133
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/TestBlockchainConfig.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
5,232
25.69898
124
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/ByzantiumConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
10,025
44.572727
124
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/blockchain/Eip160HFConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
5,605
41.469697
135
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/net/TestNetConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
1,709
37
148
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/net/ETCNetConfigTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
1,969
41.826087
148
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/net/JsonNetConfigTest.java
/* * Copyright (c) [2017] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
7,516
42.450867
148
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/config/net/BaseNetConfigTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,608
36.271429
138
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/manager/BlockLoaderTest.java
package org.ethereum.manager; import org.ethereum.core.Block; import org.ethereum.core.Blockchain; import org.ethereum.core.EventDispatchThread; import org.ethereum.core.Genesis; import org.ethereum.core.ImportResult; import org.ethereum.db.DbFlushManager; import org.ethereum.listener.CompositeEthereumListener; import...
4,914
32.209459
132
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/ByteArrayWrapperTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
8,411
51.248447
146
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/IndexedBlockStoreTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
43,119
39.526316
1,127
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/TransactionStoreTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
6,060
42.292857
107
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/FlushDbManagerTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
4,439
34.806452
136
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/QuotientFilterTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
2,548
30.469136
88
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/RepositoryTest.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
35,494
33.83317
113
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/SlowHashMapDb.java
/* * Copyright (c) [2016] [ <ether.camp> ] * This file is part of the ethereumJ library. * * The ethereumJ library is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, ...
1,915
28.030303
80
java
ethereumj
ethereumj-master/ethereumj-core/src/test/java/org/ethereum/db/prune/SegmentTest.java
package org.ethereum.db.prune; import org.junit.Test; import static org.ethereum.util.ByteUtil.intToBytes; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; /** * @author Mikhail Kalinin * @since 31.01.2018 */ public class SegmentTe...
8,382
32.802419
84
java