id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
47973088_889
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/ElementValidatorTest.java", "identifier": "ElementValidatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnTrueWhenViewValidateWithValidElement() {\n // Given\n final View view = mock(View.class);\n final String group = TestGroups.EDGE;\n final Element elm = mock(Element.class);\n final ViewElementDefinition elementDef = mock(ViewElementDefin...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(ElementValidator.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ElementValidator.class);", "type": "Logger", "var_name": "LOGGER" }, ...
{ "body": "@Override\n public boolean validate(final Element element) {\n if (null == element) {\n return false;\n }\n\n if (null != schema) {\n return validateWithSchema(element);\n }\n\n if (null != view) {\n return validateAgainstViewFilter(ele...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_923
{ "fields": [ { "declarator": "ALL_STORE_TRAITS = Sets.newHashSet(StoreTrait.values())", "modifier": "public static final", "original_string": "public static final Set<StoreTrait> ALL_STORE_TRAITS = Sets.newHashSet(StoreTrait.values());", "type": "Set<StoreTrait>", "var_name": "ALL_S...
{ "body": "@Test\n public void shouldValidateAndReturnTrueWhenEdgeFilterSelectionUnknownProperty() {\n // Given\n final ViewValidator validator = new ViewValidator();\n final View view = new View.Builder()\n .edge(TestGroups.EDGE, new ViewElementDefinition.Builder()\n ...
{ "fields": [ { "declarator": "SKIP_VIEW_VALIDATION = \"skipViewValidation\"", "modifier": "public static final", "original_string": "public static final String SKIP_VIEW_VALIDATION = \"skipViewValidation\";", "type": "String", "var_name": "SKIP_VIEW_VALIDATION" }, { "d...
{ "body": "public ValidationResult validate(final View view, final Schema schema, final Set<StoreTrait> storeTraits) {\n final boolean isStoreOrdered = storeTraits.contains(StoreTrait.ORDERED);\n\n final ValidationResult result = new ValidationResult();\n\n if (null != view) {\n valida...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1008
{ "fields": [], "file": "core/serialisation/src/test/java/uk/gov/gchq/gaffer/serialisation/implementation/ordered/OrderedLongSerialiserTest.java", "identifier": "OrderedLongSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<Long>" }
{ "body": "@Test\n public void canSerialiseLongClass() {\n assertTrue(serialiser.canHandle(Long.class));\n }", "class_method_signature": "OrderedLongSerialiserTest.canSerialiseLongClass()", "constructor": false, "full_signature": "@Test public void canSerialiseLongClass()", "identifier": "canSeri...
{ "fields": [ { "declarator": "serialVersionUID = -8948380879926929233L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8948380879926929233L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "core/serialisat...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return Long.class.equals(clazz);\n }", "class_method_signature": "OrderedLongSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)", "identifie...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_470
{ "fields": [ { "declarator": "abs", "modifier": "", "original_string": "ArrayByteSequence abs;", "type": "ArrayByteSequence", "var_name": "abs" }, { "declarator": "data", "modifier": "", "original_string": "byte[] data;", "type": "byte[]", "var_...
{ "body": "@Test\n public void testInvalidSubsequence0ShouldThrowIAX() {\n assertThrows(IllegalArgumentException.class, () -> {\n abs.subSequence(5, 1);\n });\n }", "class_method_signature": "ArrayByteSequenceTest.testInvalidSubsequence0ShouldThrowIAX()", "constructor": false, "fu...
{ "fields": [ { "declarator": "serialVersionUID = 4850846929226802566L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 4850846929226802566L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "data"...
{ "body": "public ArrayByteSequence subSequence(final int start, final int end) {\n\n if (start > end || start < 0 || end > length) {\n throw new IllegalArgumentException(\"Bad start and/end start = \" + start + \" end=\" + end + \" offset=\" + offset + \" length=\" + length);\n }\n\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_535
{ "fields": [], "file": "core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/iterable/WrappedCloseableIterableTest.java", "identifier": "WrappedCloseableIterableTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldDelegateIteratorToWrappedIterable() {\n final Iterable<Object> iterable = mock(Iterable.class);\n final WrappedCloseableIterable<Object> wrappedIterable = new WrappedCloseableIterable<>(iterable);\n final Iterator<Object> iterator = mock(Iterator.class);\n ...
{ "fields": [ { "declarator": "iterable", "modifier": "private final", "original_string": "private final Iterable<T> iterable;", "type": "Iterable<T>", "var_name": "iterable" } ], "file": "core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/iterable/WrappedCloseableI...
{ "body": "@Override\n public CloseableIterator<T> iterator() {\n final Iterator<T> iterator = iterable.iterator();\n if (iterator instanceof CloseableIterator) {\n return (CloseableIterator<T>) iterator;\n }\n\n return new WrappedCloseableIterator<>(iterator);\n }", "cl...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_165
{ "fields": [ { "declarator": "serialisation", "modifier": "private", "original_string": "private ElementSerialisation serialisation;", "type": "ElementSerialisation", "var_name": "serialisation" } ], "file": "store-implementation/hbase-store/src/test/java/uk/gov/gchq/gaffer/...
{ "body": "@Test\n public void shouldGetEmptyPropertiesFromTimestampWhenNoTimestampProperty() throws Exception {\n // Given\n final long timestamp = System.currentTimeMillis();\n final String group = TestGroups.EDGE;\n\n // When\n final Properties properties = serialisation.getPr...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(ElementSerialisation.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(ElementSerialisation.class);", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "public Properties getPropertiesFromTimestamp(final String group, final long timestamp)\n throws SerialisationException {\n final SchemaElementDefinition elementDefinition = schema.getElement(group);\n if (null == elementDefinition) {\n throw new SerialisationException(\"...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_866
{ "fields": [ { "declarator": "cache", "modifier": "private static", "original_string": "private static NamedOperationCache cache;", "type": "NamedOperationCache", "var_name": "cache" }, { "declarator": "GAFFER_USER = \"gaffer user\"", "modifier": "private static ...
{ "body": "@Test\n public void shouldThrowExceptionIfNamedOperationAlreadyExists() throws CacheOperationFailedException {\n cache.addNamedOperation(standard, false, standardUser);\n assertThrows(OverwritingException.class, () -> cache.addNamedOperation(alternative, false, advancedUser));\n }", "...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(NamedOperationCache.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(NamedOperationCache.class);", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "public void addNamedOperation(final NamedOperationDetail namedOperation, final boolean overwrite, final User user) throws CacheOperationFailedException {\n add(namedOperation, overwrite, user, null);\n }", "class_method_signature": "NamedOperationCache.addNamedOperation(final NamedOperationDeta...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1264
{ "fields": [ { "declarator": "cache = new HashMapCache<>()", "modifier": "private", "original_string": "private HashMapCache<String, Integer> cache = new HashMapCache<>();", "type": "HashMapCache<String, Integer>", "var_name": "cache" } ], "file": "core/cache/src/test/java/u...
{ "body": "@DisplayName(\"Should cause JavaSerialisableException when serialisation flag is true\")\n @Test\n public void shouldThrowRuntimeExceptionCausedByNonJavaSerialisableException() {\n final HashMapCache<String, Object> map = new HashMapCache<>(true);\n final String s = \"hello\";\n ...
{ "fields": [ { "declarator": "JAVA_SERIALISER = new JavaSerialiser()", "modifier": "private static final", "original_string": "private static final JavaSerialiser JAVA_SERIALISER = new JavaSerialiser();", "type": "JavaSerialiser", "var_name": "JAVA_SERIALISER" }, { "de...
{ "body": "@Override\n public void put(final K key, final V value) {\n if (useJavaSerialisation) {\n try {\n cache.put(key, JAVA_SERIALISER.serialise(value));\n } catch (final SerialisationException e) {\n throw new RuntimeException(e);\n }\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1321
{ "fields": [ { "declarator": "SERIALISER = new DeltaLongTimeSeriesSerialiser()", "modifier": "private static final", "original_string": "private static final DeltaLongTimeSeriesSerialiser SERIALISER = new DeltaLongTimeSeriesSerialiser();", "type": "DeltaLongTimeSeriesSerialiser", "v...
{ "body": "@Test\n public void testConsistent() throws SerialisationException {\n // Given\n final LongTimeSeries timeSeries1 = new LongTimeSeries(TimeBucket.SECOND);\n timeSeries1.upsert(Instant.ofEpochMilli(1000L), 10L);\n final LongTimeSeries timeSeries2 = new LongTimeSeries(TimeBuck...
{ "fields": [ { "declarator": "HALF_MAX_VALUE = Long.MAX_VALUE / 2", "modifier": "private static final", "original_string": "private static final long HALF_MAX_VALUE = Long.MAX_VALUE / 2;", "type": "long", "var_name": "HALF_MAX_VALUE" }, { "declarator": "serialVersionUI...
{ "body": "@Override\n public byte[] serialise(final LongTimeSeries timeSeries) throws SerialisationException {\n if (null == timeSeries) {\n return EMPTY_BYTES;\n }\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n final DataOutputStream dos = new DataOutpu...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_309
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewUtilTest.java", "identifier": "ViewUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldNotRemovePropertiesWhenNoRelevantExcludeProperties() {\n //Given\n final View view = new View.Builder()\n .edge(TestGroups.EDGE, new ViewElementDefinition.Builder()\n .excludeProperties(TestPropertyNames.COUNT)\n ...
{ "fields": [], "file": "core/data/src/main/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewUtil.java", "identifier": "ViewUtil", "interfaces": "", "methods": [ { "class_method_signature": "ViewUtil.ViewUtil()", "constructor": true, "full_signature": "private ViewUtil()", ...
{ "body": "public static void removeProperties(final View view, final Element element) {\n if (null != view && null != element) {\n removeProperties(view.getElement(element.getGroup()), element);\n }\n }", "class_method_signature": "ViewUtil.removeProperties(final View view, final Elemen...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_759
{ "fields": [ { "declarator": "store = mock(Store.class)", "modifier": "private final", "original_string": "private final Store store = mock(Store.class);", "type": "Store", "var_name": "store" }, { "declarator": "key1 = \"key1\"", "modifier": "private final", ...
{ "body": "@Test\n public void shouldReturnEmptyMapWhenGetVariablesIsNull() throws OperationException {\n //Given\n final Context context = mock(Context.class);\n final GetVariables op = new GetVariables.Builder().variableNames(null).build();\n final GetVariablesHandler handler = new Ge...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/GetVariablesHandler.java", "identifier": "GetVariablesHandler", "interfaces": "implements OperationHandler<GetVariables>", "methods": [ { "class_method_signature": "GetVariablesHandler.doOperation(final GetV...
{ "body": "@Override\n public Map<String, Object> doOperation(final GetVariables operation, final Context context, final Store store) throws OperationException {\n final Map<String, Object> variableMap = new HashMap<>();\n List<String> variableNames = operation.getVariableNames() != null ? operation....
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_684
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/compare/SortHandlerTest.java", "identifier": "SortHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldSortBasedOnProperty() throws OperationException, JsonProcessingException {\n // Given\n final Entity entity1 = new Entity.Builder().group(TestGroups.ENTITY).property(\"property\", 1).build();\n final Entity entity2 = new Entity.B...
{ "fields": [ { "declarator": "MAX_HANDLER = new MaxHandler()", "modifier": "private static final", "original_string": "private static final MaxHandler MAX_HANDLER = new MaxHandler();", "type": "MaxHandler", "var_name": "MAX_HANDLER" } ], "file": "core/store/src/main/java/uk/...
{ "body": "@Override\n public Iterable<? extends Element> doOperation(final Sort operation, final Context context, final Store store) throws OperationException {\n // If there is no input or there are no comparators, we return null\n if (null == operation.getInput()\n || null == operat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1356
{ "fields": [ { "declarator": "DELTA = 0.01D", "modifier": "private static final", "original_string": "private static final double DELTA = 0.01D;", "type": "double", "var_name": "DELTA" }, { "declarator": "SERIALISER = new KllFloatsSketchSerialiser()", "modifier":...
{ "body": "@Test\n public void testCanHandleKllFloatsSketch() {\n assertTrue(SERIALISER.canHandle(KllFloatsSketch.class));\n assertFalse(SERIALISER.canHandle(String.class));\n }", "class_method_signature": "KllFloatsSketchSerialiserTest.testCanHandleKllFloatsSketch()", "constructor": false, ...
{ "fields": [ { "declarator": "serialVersionUID = -5676465083474887650L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5676465083474887650L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "library/sketche...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return KllFloatsSketch.class.equals(clazz);\n }", "class_method_signature": "KllFloatsSketchSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1213
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/operation/impl/output/ToArrayTest.java", "identifier": "ToArrayTest", "interfaces": "", "superclass": "extends OperationTest<ToArray>" }
{ "body": "@Test\n @Override\n public void builderShouldCreatePopulatedOperation() {\n // Given\n final ToArray<String> toArray = new ToArray.Builder<String>().input(\"1\", \"2\").build();\n\n // Then\n assertThat(toArray.getInput(), is(notNullValue()));\n assertThat(toArray.g...
{ "fields": [ { "declarator": "input", "modifier": "private", "original_string": "private Iterable<? extends T> input;", "type": "Iterable<? extends T>", "var_name": "input" }, { "declarator": "options", "modifier": "private", "original_string": "private Map...
{ "body": "@Override\n public Iterable<? extends T> getInput() {\n return input;\n }", "class_method_signature": "ToArray.getInput()", "constructor": false, "full_signature": "@Override public Iterable<? extends T> getInput()", "identifier": "getInput", "invocations": [], "modifiers": "@Overr...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_391
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/element/LazyEntityTest.java", "identifier": "LazyEntityTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldUnwrapEntity() {\n // Given\n final Entity entity = new Entity(\"group\");\n final ElementValueLoader entityLoader = mock(ElementValueLoader.class);\n final LazyEntity lazyEntity = new LazyEntity(entity, entityLoader);\n\n // When\n fin...
{ "fields": [ { "declarator": "serialVersionUID = 8067424362415322354L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 8067424362415322354L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "entit...
{ "body": "@Override\n public Entity getElement() {\n return entity;\n }", "class_method_signature": "LazyEntity.getElement()", "constructor": false, "full_signature": "@Override public Entity getElement()", "identifier": "getElement", "invocations": [], "modifiers": "@Override public", "pa...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_811
{ "fields": [ { "declarator": "input", "modifier": "private", "original_string": "private List<Element> input;", "type": "List<Element>", "var_name": "input" }, { "declarator": "expected", "modifier": "private", "original_string": "private List<Element> expe...
{ "body": "@Test\n public void shouldSelectMatchedVertexForTransform() throws OperationException {\n // Given\n given(store.getSchema()).willReturn(schema);\n\n final Edge edge = new Edge.Builder()\n .group(TestGroups.EDGE)\n .source(\"srcVal\")\n ....
{ "fields": [ { "declarator": "validator = new TransformValidator()", "modifier": "private final", "original_string": "private final FunctionValidator<Transform> validator = new TransformValidator();", "type": "FunctionValidator<Transform>", "var_name": "validator" } ], "file...
{ "body": "@Override\n public Iterable<? extends Element> doOperation(final Transform operation, final Context context, final Store store) throws OperationException {\n return doOperation(operation, store.getSchema());\n }", "class_method_signature": "TransformHandler.doOperation(final Transform operat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1090
{ "fields": [ { "declarator": "TEST_WITH_VALUE = \"withTestValue\"", "modifier": "public static final", "original_string": "public static final String TEST_WITH_VALUE = \"withTestValue\";", "type": "String", "var_name": "TEST_WITH_VALUE" }, { "declarator": "TEST_WITHOUT...
{ "body": "@Test\n public void shouldFailEmptyUserAuths() throws Exception {\n validAuths.add(A);\n\n assertFalse(updateViewHook.validateAuths(userAuths, validAuths, true));\n }", "class_method_signature": "UpdateViewHookTest.shouldFailEmptyUserAuths()", "constructor": false, "full_signature...
{ "fields": [ { "declarator": "ADD_EXTRA_GROUPS_DEFAULT = false", "modifier": "public static final", "original_string": "public static final boolean ADD_EXTRA_GROUPS_DEFAULT = false;", "type": "boolean", "var_name": "ADD_EXTRA_GROUPS_DEFAULT" }, { "declarator": "withOpA...
{ "body": "protected final boolean validateAuths(final Set<String> userAuths, final Set<String> validAuth, final boolean ifValidAuthIsNull) {\n boolean rtn = ifValidAuthIsNull;\n if (null != validAuth) {\n if (null == userAuths) {\n rtn = validAuth.isEmpty();\n } els...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_112
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(AddUpdateTableIteratorTest.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(AddUpdateTableIteratorTest.class);", "type": "Logger", "var_name": ...
{ "body": "@Test\n public void shouldReturnStoreClassNameNotFoundWhenStorePropsIsEmpty() throws Exception {\n // Given\n final String[] args = {GRAPH_ID, SCHEMA_DIR, EMPTY_STORE_PROPS_PATH, \"update\", FILE_GRAPH_LIBRARY_TEST_PATH};\n\n // When\n IllegalArgumentException actual = assert...
{ "fields": [ { "declarator": "UPDATE_KEY = \"update\"", "modifier": "public static final", "original_string": "public static final String UPDATE_KEY = \"update\";", "type": "String", "var_name": "UPDATE_KEY" }, { "declarator": "REMOVE_KEY = \"remove\"", "modifier...
{ "body": "public static void main(final String[] args) throws Exception {\n if (args.length < NUM_REQUIRED_ARGS) {\n System.err.println(\"Wrong number of arguments. \\nUsage: \"\n + \"<graphId> \"\n + \"<comma separated schema paths> <store properties path> \"\...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_542
{ "fields": [], "file": "core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/iterable/TransformOneToManyIterableTest.java", "identifier": "TransformOneToManyIterableTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldThrowExceptionIfRemoveCalled() {\n final String item1 = \"item 1\";\n final String item2 = \"item 2\";\n final Iterable<String> items = Arrays.asList(item1, item2);\n final Validator<String> validator = mock(Validator.class);\n final Transform...
{ "fields": [ { "declarator": "input", "modifier": "private final", "original_string": "private final Iterable<? extends I> input;", "type": "Iterable<? extends I>", "var_name": "input" }, { "declarator": "validator", "modifier": "private final", "original_s...
{ "body": "@Override\n public CloseableIterator<O> iterator() {\n return new CloseableIterator<O>() {\n private final Iterator<? extends I> inputItr = input.iterator();\n\n private Iterator<O> nextElements;\n private Boolean hasNext;\n\n @Override\n pub...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_407
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/element/function/ElementAggregatorTest.java", "identifier": "ElementAggregatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldAggregatePropertiesWithMultipleSelection() {\n // Given\n final BinaryOperator<Tuple3<Integer, Integer, Integer>> maxMinRange =\n (t1, t2) -> new Tuple3<>(\n Math.max(t1.get0(), t2.get0()),\n Math.min(t1...
{ "fields": [ { "declarator": "stateTuple = new PropertiesTuple()", "modifier": "private final", "original_string": "private final PropertiesTuple stateTuple = new PropertiesTuple();", "type": "PropertiesTuple", "var_name": "stateTuple" }, { "declarator": "propertiesTup...
{ "body": "public Element apply(final Element state, final Element element) {\n if (null == state) {\n return element;\n }\n\n apply(state.getProperties(), element.getProperties());\n return state;\n }", "class_method_signature": "ElementAggregator.apply(final Element state...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_954
{ "fields": [ { "declarator": "EDGE_DESCRIPTION = \"Edge description\"", "modifier": "public static final", "original_string": "public static final String EDGE_DESCRIPTION = \"Edge description\";", "type": "String", "var_name": "EDGE_DESCRIPTION" }, { "declarator": "ENT...
{ "body": "@Test\n public void shouldReturnTrueWhenSchemaHasValidatorEdgePropertyFilters() {\n // Given\n final Schema schema = new Schema.Builder()\n .edge(TestGroups.EDGE,\n new SchemaEdgeDefinition.Bu...
{ "fields": [ { "declarator": "unknownType = new TypeDefinition()", "modifier": "private final", "original_string": "private final TypeDefinition unknownType = new TypeDefinition();", "type": "TypeDefinition", "var_name": "unknownType" }, { "declarator": "id", "mo...
{ "body": "public boolean hasValidation() {\n for (final SchemaElementDefinition elementDef : new ChainedIterable<SchemaElementDefinition>(getEntities().values(), getEdges().values())) {\n if (null != elementDef) {\n if (elementDef.hasValidation()) {\n return true;\...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1301
{ "fields": [], "file": "library/time-library/src/test/java/uk/gov/gchq/gaffer/time/LongTimeSeriesTest.java", "identifier": "LongTimeSeriesTest", "interfaces": "", "superclass": "extends JSONSerialisationTest<LongTimeSeries>" }
{ "body": "@Test\n public void testGetInstants() {\n // Given\n final LongTimeSeries timeSeries = new LongTimeSeries(TimeBucket.MINUTE);\n final Set<Instant> instantsToInsert = new HashSet<>();\n IntStream.range(1, 11)\n .mapToObj(i -> Instant.ofEpochMilli(1000L * 60 * i)...
{ "fields": [ { "declarator": "VALID_TIME_BUCKETS = Sets.newHashSet(\n MILLISECOND,\n SECOND,\n MINUTE,\n HOUR,\n DAY,\n WEEK,\n MONTH,\n YEAR\n )", "modifier": "private static final", "original_string": "...
{ "body": "@JsonIgnore\n public SortedSet<Instant> getInstants() {\n final SortedSet<Instant> instants = new TreeSet<>();\n timeSeries\n .keySet()\n .stream()\n .map(l -> getInstantFromLong(timeBucket, l))\n .forEach(instants::add);\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_329
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/graph/adjacency/AdjacencyMapTest.java", "identifier": "AdjacencyMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldGetSources() {\n final AdjacencyMap adjacencyMap = getAdjacencyMap();\n\n final Set<Object> results = adjacencyMap.getSources(1);\n\n assertThat(results, hasItems(1, 4));\n }", "class_method_signature": "AdjacencyMapTest.shouldGetSources()", "constru...
{ "fields": [ { "declarator": "edgeGraph = HashBasedTable.create()", "modifier": "private final", "original_string": "private final HashBasedTable<Object, Object, Set<Edge>> edgeGraph = HashBasedTable.create();", "type": "HashBasedTable<Object, Object, Set<Edge>>", "var_name": "edgeG...
{ "body": "public Set<Object> getSources(final Object destination) {\n return Collections.unmodifiableSet(edgeGraph.column(destination).keySet());\n }", "class_method_signature": "AdjacencyMap.getSources(final Object destination)", "constructor": false, "full_signature": "public Set<Object> getSources...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_779
{ "fields": [ { "declarator": "schema = new Schema.Builder().build()", "modifier": "protected", "original_string": "protected Schema schema = new Schema.Builder().build();", "type": "Schema", "var_name": "schema" } ], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store...
{ "body": "@Test\n public void shouldCalculateRequiredNumberOfSplits() throws OperationException {\n\n // Given\n final int numSplits = 3;\n final List<String> sample = createSampleOfSize(numSplits * 10);\n\n final AbstractGenerateSplitPointsFromSampleHandler<?, S> handler = createHandl...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/AbstractGenerateSplitPointsFromSampleHandler.java", "identifier": "AbstractGenerateSplitPointsFromSampleHandler", "interfaces": "implements OutputOperationHandler<GenerateSplitPointsFromSample<T>, List<T>>", "methods"...
{ "body": "@Override\n public List<T> doOperation(final GenerateSplitPointsFromSample<T> operation, final Context context, final Store store) throws OperationException {\n\n final S typedStore = (S) store;\n\n validate(operation, typedStore);\n\n final Integer numSplits = getNumSplits(operatio...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_283
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewTest.java", "identifier": "ViewTest", "interfaces": "", "superclass": "extends JSONSerialisationTest<View>" }
{ "body": "@Test\n public void shouldAddGlobalExcludePropertiesToEntityGroup() {\n // Given\n final View view = new View.Builder()\n .globalEntities(new GlobalViewElementDefinition.Builder()\n .groups(TestGroups.ENTITY)\n .excludeProperties...
{ "fields": [ { "declarator": "globalElements", "modifier": "private", "original_string": "private List<GlobalViewElementDefinition> globalElements;", "type": "List<GlobalViewElementDefinition>", "var_name": "globalElements" }, { "declarator": "globalEntities", "m...
{ "body": "public void expandGlobalDefinitions() {\n if (null != globalEntities && !globalEntities.isEmpty()) {\n setEntities(expandGlobalDefinitions(getEntities(), getEntityGroups(), globalEntities, false));\n globalEntities = null;\n }\n\n if (null != globalEdges && !globa...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_796
{ "fields": [ { "declarator": "SCHEMA = new Schema.Builder()\n .edge(TestGroups.EDGE, new SchemaEdgeDefinition())\n .edge(TestGroups.EDGE_2, new SchemaEdgeDefinition())\n .entity(TestGroups.ENTITY, new SchemaEntityDefinition())\n .entity(TestGroups.ENTITY_2, new S...
{ "body": "@Test\n public void shouldHandleComplexFiltering() throws OperationException {\n // Given\n given(store.getSchema()).willReturn(SCHEMA);\n\n final Edge edge = new Edge.Builder()\n .group(TestGroups.EDGE)\n .source(\"junctionA\")\n .dest(\...
{ "fields": [ { "declarator": "validator = new FilterValidator()", "modifier": "private final", "original_string": "private final FunctionValidator<Filter> validator = new FilterValidator();", "type": "FunctionValidator<Filter>", "var_name": "validator" } ], "file": "core/sto...
{ "body": "@Override\n public Iterable<? extends Element> doOperation(final Filter operation, final Context context, final Store store) throws OperationException {\n return doOperation(operation, store.getSchema());\n }", "class_method_signature": "FilterHandler.doOperation(final Filter operation, fina...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1244
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/operation/OperationChainTest.java", "identifier": "OperationChainTest", "interfaces": "", "superclass": "extends OperationsTest<OperationChain>" }
{ "body": "@Test\n public void shouldBuildOperationChain_AdjEntitySeedsThenElements() {\n // Given\n final GetAdjacentIds getAdjacentIds = mock(GetAdjacentIds.class);\n final GetElements getEdges = mock(GetElements.class);\n\n // When\n final OperationChain opChain = new Operatio...
{ "fields": [ { "declarator": "operations", "modifier": "private", "original_string": "private List<Operation> operations;", "type": "List<Operation>", "var_name": "operations" }, { "declarator": "options", "modifier": "private", "original_string": "private ...
{ "body": "@Override\n @JsonIgnore\n public List<Operation> getOperations() {\n return operations;\n }", "class_method_signature": "OperationChain.getOperations()", "constructor": false, "full_signature": "@Override @JsonIgnore public List<Operation> getOperations()", "identifier": "getOperati...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_515
{ "fields": [], "file": "core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/CollectionUtilTest.java", "identifier": "CollectionUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnFalseWhenAnyMissingCalledWhenNullValues() {\n // Given\n final Collection<Integer> collection = Sets.newHashSet(10, 20, 30);\n\n // When\n final boolean result = CollectionUtil.anyMissing(collection, null);\n\n // Then\n assertFal...
{ "fields": [], "file": "core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/CollectionUtil.java", "identifier": "CollectionUtil", "interfaces": "", "methods": [ { "class_method_signature": "CollectionUtil.CollectionUtil()", "constructor": true, "full_signature": "private Colle...
{ "body": "public static boolean anyMissing(final Collection collection, final Object[] objects) {\n boolean result = false;\n if (null == collection || collection.isEmpty()) {\n if (null != objects && 0 < objects.length) {\n result = true;\n }\n } else if (nu...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_145
{ "fields": [], "file": "store-implementation/accumulo-store/src/test/java/uk/gov/gchq/gaffer/accumulostore/operation/handler/GetElementsHandlerTest.java", "identifier": "GetElementsHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldNotReturnDeletedElements() {\n // Given\n final GetElementsHandler handler = new GetElementsHandler();\n final GetElements op = new GetElements.Builder()\n .build();\n\n // When / Then\n try {\n handler.doOperation(op...
{ "fields": [], "file": "store-implementation/accumulo-store/src/main/java/uk/gov/gchq/gaffer/accumulostore/operation/handler/GetElementsHandler.java", "identifier": "GetElementsHandler", "interfaces": "implements OutputOperationHandler<GetElements, CloseableIterable<? extends Element>>", "methods": [ { ...
{ "body": "@Override\n public CloseableIterable<? extends Element> doOperation(final GetElements operation,\n final Context context, final Store store)\n throws OperationException {\n return doOperation(operation, context.getUser(), (Accu...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_846
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/job/CancelScheduledJobHandlerTest.java", "identifier": "CancelScheduledJobHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldThrowExceptionWithNoJobId() {\n // Given\n CancelScheduledJob operation = new CancelScheduledJob.Builder()\n .jobId(null)\n .build();\n CancelScheduledJobHandler handler = new CancelScheduledJobHandler();\n final Store s...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/job/CancelScheduledJobHandler.java", "identifier": "CancelScheduledJobHandler", "interfaces": "implements OperationHandler<CancelScheduledJob>", "methods": [ { "class_method_signature": "CancelScheduledJobHa...
{ "body": "@Override\n public Void doOperation(final CancelScheduledJob operation, final Context context, final Store store) throws OperationException {\n if (null == store.getJobTracker()) {\n throw new OperationException(\"JobTracker not enabled\");\n }\n if (null == operation.get...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1182
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/operation/function/ToElementIdTest.java", "identifier": "ToElementIdTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnOriginalValueIfInputIsAnEntity() {\n // Given\n final Entity input = new Entity(\"group\", \"item\");\n final ToElementId function = new ToElementId();\n\n // When\n final ElementId output = function.apply(input);\n\n // Then\n ...
{ "fields": [], "file": "core/operation/src/main/java/uk/gov/gchq/gaffer/operation/function/ToElementId.java", "identifier": "ToElementId", "interfaces": "", "methods": [ { "class_method_signature": "ToElementId.apply(final Object obj)", "constructor": false, "full_signature": "@Override...
{ "body": "@Override\n public ElementId apply(final Object obj) {\n if (null == obj) {\n return null;\n }\n return obj instanceof ElementId ? (ElementId) obj : new EntitySeed(obj);\n }", "class_method_signature": "ToElementId.apply(final Object obj)", "constructor": false, ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_903
{ "fields": [ { "declarator": "PROPERTY_STRING_TYPE = \"property.string\"", "modifier": "public static final", "original_string": "public static final String PROPERTY_STRING_TYPE = \"property.string\";", "type": "String", "var_name": "PROPERTY_STRING_TYPE" } ], "file": "core/...
{ "body": "@Test\n public void shouldReturnIngestAggregatorWithMultiPropertyAggregator() {\n // Given\n final T elementDef = createBuilder()\n .property(\"property1\", PROPERTY_STRING_TYPE)\n .property(\"property2\", PROPERTY_STRING_TYPE)\n .property(\"pro...
{ "fields": [ { "declarator": "elementDefValidator", "modifier": "private final", "original_string": "private final SchemaElementDefinitionValidator elementDefValidator;", "type": "SchemaElementDefinitionValidator", "var_name": "elementDefValidator" }, { "declarator": "...
{ "body": "@JsonIgnore\n public ElementAggregator getIngestAggregator() {\n if (null == ingestAggregatorCache) {\n createIngestAggregator();\n }\n return ingestAggregatorCache;\n }", "class_method_signature": "SchemaElementDefinition.getIngestAggregator()", "constructor": fal...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1028
{ "fields": [], "file": "core/serialisation/src/test/java/uk/gov/gchq/gaffer/serialisation/implementation/NullSerialiserTest.java", "identifier": "NullSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<Object>" }
{ "body": "@Test\n public void shouldHandleAnyClass() {\n assertTrue(serialiser.canHandle(String.class));\n assertTrue(serialiser.canHandle(Object.class));\n assertTrue(serialiser.canHandle(Integer.class));\n }", "class_method_signature": "NullSerialiserTest.shouldHandleAnyClass()", "co...
{ "fields": [ { "declarator": "serialVersionUID = 282624951140644367L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 282624951140644367L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "core/serialisation/...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return true;\n }", "class_method_signature": "NullSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)", "identifier": "canHandle", "invocat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_450
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/IsElementValidatorTest.java", "identifier": "IsElementValidatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldNotValidateWhenNotElement() {\n final Object element = TestGroups.EDGE;\n\n final boolean valid = new IsElementValidator().validate(element);\n\n assertFalse(valid);\n }", "class_method_signature": "IsElementValidatorTest.shouldNotValidateWhenNotElemen...
{ "fields": [], "file": "core/data/src/main/java/uk/gov/gchq/gaffer/data/IsElementValidator.java", "identifier": "IsElementValidator", "interfaces": "implements Validator<Object>", "methods": [ { "class_method_signature": "IsElementValidator.validate(final Object object)", "constructor": false...
{ "body": "@Override\n public boolean validate(final Object object) {\n return object instanceof Element;\n }", "class_method_signature": "IsElementValidator.validate(final Object object)", "constructor": false, "full_signature": "@Override public boolean validate(final Object object)", "identifi...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_295
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewTest.java", "identifier": "ViewTest", "interfaces": "", "superclass": "extends JSONSerialisationTest<View>" }
{ "body": "@Test\n public void shouldAddGlobalElementPropertiesToGroup() {\n // Given\n final View view = new View.Builder()\n .globalElements(new GlobalViewElementDefinition.Builder()\n .groups(TestGroups.ENTITY)\n .properties(TestProperty...
{ "fields": [ { "declarator": "globalElements", "modifier": "private", "original_string": "private List<GlobalViewElementDefinition> globalElements;", "type": "List<GlobalViewElementDefinition>", "var_name": "globalElements" }, { "declarator": "globalEntities", "m...
{ "body": "public void expandGlobalDefinitions() {\n if (null != globalEntities && !globalEntities.isEmpty()) {\n setEntities(expandGlobalDefinitions(getEntities(), getEntityGroups(), globalEntities, false));\n globalEntities = null;\n }\n\n if (null != globalEdges && !globa...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1317
{ "fields": [], "file": "library/time-library/src/test/java/uk/gov/gchq/gaffer/time/serialisation/RBMBackedTimestampSetSerialiserTest.java", "identifier": "RBMBackedTimestampSetSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<RBMBackedTimestampSet>" }
{ "body": "@Test\n public void testCanHandle() throws SerialisationException {\n assertTrue(serialiser.canHandle(RBMBackedTimestampSet.class));\n assertFalse(serialiser.canHandle(String.class));\n }", "class_method_signature": "RBMBackedTimestampSetSerialiserTest.testCanHandle()", "constructor...
{ "fields": [ { "declarator": "serialVersionUID = -5820977643949438174L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -5820977643949438174L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "library/time-li...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return RBMBackedTimestampSet.class.equals(clazz);\n }", "class_method_signature": "RBMBackedTimestampSetSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1252
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/named/operation/NamedOperationDetailTest.java", "identifier": "NamedOperationDetailTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldDefaultReadAccessPredicateIfNoneSpecified() {\n final NamedOperationDetail namedOperationDetail = getBaseNamedOperationDetailBuilder().build();\n assertEquals(\n new AccessPredicate(new User.Builder().userId(\"creatorUserId\").build(), asList(\"read...
{ "fields": [ { "declarator": "serialVersionUID = -8831783492657131469L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8831783492657131469L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "CHA...
{ "body": "public AccessPredicate getReadAccessPredicate() {\n try {\n return readAccessPredicateJson != null ? JSONSerialiser.deserialise(readAccessPredicateJson, AccessPredicate.class) : null;\n } catch (final SerialisationException e) {\n throw new IllegalArgumentException(\"rea...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_780
{ "fields": [ { "declarator": "schema = new Schema.Builder().build()", "modifier": "protected", "original_string": "protected Schema schema = new Schema.Builder().build();", "type": "Schema", "var_name": "schema" } ], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store...
{ "body": "@Test\n public void shouldDeduplicateElements() throws OperationException {\n // Given\n final int numSplits = 3;\n final List<String> sample = Collections.nCopies(numSplits * 10, \"key1\");\n\n final AbstractGenerateSplitPointsFromSampleHandler<?, S> handler = createHandler(...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/AbstractGenerateSplitPointsFromSampleHandler.java", "identifier": "AbstractGenerateSplitPointsFromSampleHandler", "interfaces": "implements OutputOperationHandler<GenerateSplitPointsFromSample<T>, List<T>>", "methods"...
{ "body": "@Override\n public List<T> doOperation(final GenerateSplitPointsFromSample<T> operation, final Context context, final Store store) throws OperationException {\n\n final S typedStore = (S) store;\n\n validate(operation, typedStore);\n\n final Integer numSplits = getNumSplits(operatio...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_850
{ "fields": [ { "declarator": "varName = \"varName\"", "modifier": "private final", "original_string": "private final String varName = \"varName\";", "type": "String", "var_name": "varName" }, { "declarator": "varVal = \"varVal\"", "modifier": "private final", ...
{ "body": "@Test\n public void shouldGetVariableWhenExists() throws OperationException {\n // Given\n final Context context = mock(Context.class);\n final GetVariableHandler handler = new GetVariableHandler();\n final GetVariable op = new GetVariable.Builder().variableName(varName).buil...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/GetVariableHandler.java", "identifier": "GetVariableHandler", "interfaces": "implements OperationHandler<GetVariable>", "methods": [ { "class_method_signature": "GetVariableHandler.doOperation(final GetVaria...
{ "body": "@Override\n public Object doOperation(final GetVariable operation, final Context context, final Store store) throws OperationException {\n if (operation.getVariableName() == null) {\n throw new IllegalArgumentException(\"Variable name cannot be null\");\n }\n return conte...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_153
{ "fields": [ { "declarator": "factory", "modifier": "private final", "original_string": "private final AbstractCoreKeyIteratorSettingsFactory factory;", "type": "AbstractCoreKeyIteratorSettingsFactory", "var_name": "factory" } ], "file": "store-implementation/accumulo-store/...
{ "body": "@Test\n public void shouldReturnPreAggFilterIterator() throws Exception {\n // Given\n final AccumuloStore store = mock(AccumuloStore.class);\n final Schema schema = createSchema();\n final View view = new View.Builder()\n .edge(TestGroups.EDGE, new ViewElement...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(AbstractCoreKeyIteratorSettingsFactory.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(AbstractCoreKeyIteratorSettingsFactory.class);", "type": "Log...
{ "body": "@Override\n public IteratorSetting getElementPreAggregationFilterIteratorSetting(final View view, final AccumuloStore store)\n throws IteratorSettingException {\n if (!view.hasPreAggregationFilters()) {\n LOGGER.debug(\"Returning null from getElementPreAggregationFilterItera...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_503
{ "fields": [], "file": "core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/CollectionUtilTest.java", "identifier": "CollectionUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnTreeSetWithWithOutNullItem() {\n final TreeSet<String> treeSet = CollectionUtil.treeSet(null);\n\n assertEquals(0, treeSet.size());\n }", "class_method_signature": "CollectionUtilTest.shouldReturnTreeSetWithWithOutNullItem()", "constructor": false, ...
{ "fields": [], "file": "core/common-util/src/main/java/uk/gov/gchq/gaffer/commonutil/CollectionUtil.java", "identifier": "CollectionUtil", "interfaces": "", "methods": [ { "class_method_signature": "CollectionUtil.CollectionUtil()", "constructor": true, "full_signature": "private Colle...
{ "body": "public static <T> TreeSet<T> treeSet(final T item) {\n final TreeSet<T> treeSet = new TreeSet<>();\n if (null != item) {\n treeSet.add(item);\n }\n\n return treeSet;\n }", "class_method_signature": "CollectionUtil.treeSet(final T item)", "constructor": false, ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_446
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/element/EdgeTest.java", "identifier": "EdgeTest", "interfaces": "", "superclass": "extends ElementTest" }
{ "body": "@Test\n public void shouldDeserialiseFromJsonWhenDirectedTypeIsUndirected() throws SerialisationException {\n final String json = \"{\\\"class\\\": \\\"uk.gov.gchq.gaffer.data.element.Edge\\\", \\\"directedType\\\": \\\"UNDIRECTED\\\"}\";\n\n final Edge deserialisedEdge = JSONSerialiser.de...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(Edge.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Edge.class);", "type": "Logger", "var_name": "LOGGER" }, { "declarator": "s...
{ "body": "@JsonIgnore(false)\n @JsonGetter(\"directed\")\n @Override\n public boolean isDirected() {\n return directed;\n }", "class_method_signature": "Edge.isDirected()", "constructor": false, "full_signature": "@JsonIgnore(false) @JsonGetter(\"directed\") @Override public boolean isDirect...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_915
{ "fields": [ { "declarator": "ALL_STORE_TRAITS = Sets.newHashSet(StoreTrait.values())", "modifier": "public static final", "original_string": "public static final Set<StoreTrait> ALL_STORE_TRAITS = Sets.newHashSet(StoreTrait.values());", "type": "Set<StoreTrait>", "var_name": "ALL_S...
{ "body": "@Test\n public void shouldValidateAndReturnTrueWhenEntityTransientPropertyIsNotInSchema() {\n // Given\n final ViewValidator validator = new ViewValidator();\n final View view = new View.Builder()\n .entity(TestGroups.ENTITY, new ViewElementDefinition.Builder()\n ...
{ "fields": [ { "declarator": "SKIP_VIEW_VALIDATION = \"skipViewValidation\"", "modifier": "public static final", "original_string": "public static final String SKIP_VIEW_VALIDATION = \"skipViewValidation\";", "type": "String", "var_name": "SKIP_VIEW_VALIDATION" }, { "d...
{ "body": "public ValidationResult validate(final View view, final Schema schema, final Set<StoreTrait> storeTraits) {\n final boolean isStoreOrdered = storeTraits.contains(StoreTrait.ORDERED);\n\n final ValidationResult result = new ValidationResult();\n\n if (null != view) {\n valida...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1194
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/operation/impl/GetWalksTest.java", "identifier": "GetWalksTest", "interfaces": "", "superclass": "extends OperationTest<GetWalks>" }
{ "body": "@Test\n public void shouldValidateWhenOperationListContainsAnEmptyOperationChain() {\n // Given\n final GetWalks getWalks = new GetWalks.Builder().input(new EntitySeed(\"1\"), new EntitySeed(\"2\"))\n .operations(new GetElements.Builder()....
{ "fields": [ { "declarator": "HOP_DEFINITION = \"A hop is a GetElements operation that selects at least 1 edge group.\"", "modifier": "public static final", "original_string": "public static final String HOP_DEFINITION = \"A hop is a GetElements operation that selects at least 1 edge group.\";"...
{ "body": "@Override\n public ValidationResult validate() {\n final ValidationResult result = InputOutput.super.validate();\n\n final int getEdgeOperations = getNumberOfGetEdgeOperations();\n\n if (getEdgeOperations < 1) {\n result.addError(\"No hops were provided. \" + HOP_DEFINITI...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1340
{ "fields": [], "file": "library/spark/spark-accumulo-library/src/test/java/uk/gov/gchq/gaffer/sparkaccumulo/operation/rfilereaderrdd/RFileReaderIteratorTest.java", "identifier": "RFileReaderIteratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void initWithEmptyAccumuloTabletDoesNotHaveNextIterator() {\n final Partition partition = new AccumuloTablet(0, 0, \"a\", \"b\");\n final TaskContext taskContext = mock(TaskContext.class);\n final Set<String> auths = new HashSet<>();\n\n final RFileReaderIterat...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(RFileReaderIterator.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(RFileReaderIterator.class);", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "@Override\n public boolean hasNext() {\n return iteratorAfterIterators.hasTop();\n }", "class_method_signature": "RFileReaderIterator.hasNext()", "constructor": false, "full_signature": "@Override public boolean hasNext()", "identifier": "hasNext", "invocations": [ "hasTop" ], ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_368
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/element/comparison/ComparableOrToStringComparatorTest.java", "identifier": "ComparableOrToStringComparatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldCompareEqualArrayWithString() {\n final ComparableOrToStringComparator comparator = new ComparableOrToStringComparator();\n\n final int result = comparator.compare(new Integer[] {1, 1}, \"[1, 1]\");\n\n assertEquals(0, result);\n }", "class_method_sign...
{ "fields": [], "file": "core/data/src/main/java/uk/gov/gchq/gaffer/data/element/comparison/ComparableOrToStringComparator.java", "identifier": "ComparableOrToStringComparator", "interfaces": "implements Comparator<Object>, Serializable", "methods": [ { "class_method_signature": "ComparableOrToStrin...
{ "body": "@Override\n public int compare(final Object vertex1, final Object vertex2) {\n if (null == vertex1) {\n if (null == vertex2) {\n return 0;\n }\n return 1;\n }\n\n if (null == vertex2) {\n return -1;\n }\n\n if ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_692
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/compare/SortHandlerTest.java", "identifier": "SortHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnOriginalListIfBothComparatorsAreNull() throws OperationException {\n // Given\n final List<Entity> input = Lists.newArrayList();\n\n final Sort sort = new Sort.Builder().input(input).build();\n\n final SortHa...
{ "fields": [ { "declarator": "MAX_HANDLER = new MaxHandler()", "modifier": "private static final", "original_string": "private static final MaxHandler MAX_HANDLER = new MaxHandler();", "type": "MaxHandler", "var_name": "MAX_HANDLER" } ], "file": "core/store/src/main/java/uk/...
{ "body": "@Override\n public Iterable<? extends Element> doOperation(final Sort operation, final Context context, final Store store) throws OperationException {\n // If there is no input or there are no comparators, we return null\n if (null == operation.getInput()\n || null == operat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_738
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/ReduceHandlerTest.java", "identifier": "ReduceHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldAggregateResults() throws Exception {\n // Given\n final List<Integer> input = Arrays.asList(1, 2, 3, 4, 5);\n final Integer expectedResult = 15;\n final Reduce<Integer> reduce = new Reduce.Builder<Integer>()\n .input(input)\n ...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/ReduceHandler.java", "identifier": "ReduceHandler", "interfaces": "implements OutputOperationHandler<Reduce<T>, T>", "methods": [ { "class_method_signature": "ReduceHandler.doOperation(final Reduce<T> operat...
{ "body": "@Override\n public T doOperation(final Reduce<T> operation, final Context context, final Store store) throws OperationException {\n if (null == operation) {\n throw new OperationException(\"Operation cannot be null\");\n }\n\n Iterable<? extends T> input = operation.getIn...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_387
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/element/ElementTupleTest.java", "identifier": "ElementTupleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldGetValues() {\n final Edge edge = new Edge.Builder()\n .group(\"group\")\n .source(\"source vertex\")\n .dest(\"destination vertex\")\n .directed(true)\n .matchedVertex(EdgeId.MatchedVertex.SOURCE...
{ "fields": [ { "declarator": "ELEMENT = \"ELEMENT\"", "modifier": "public static final", "original_string": "public static final String ELEMENT = \"ELEMENT\";", "type": "String", "var_name": "ELEMENT" }, { "declarator": "PROPERTIES = \"PROPERTIES\"", "modifier": ...
{ "body": "@Override\n public Object get(final String reference) {\n if (ELEMENT.equals(reference)) {\n return element;\n }\n\n if (PROPERTIES.equals(reference)) {\n return element.getProperties();\n }\n\n final IdentifierType idType = IdentifierType.fromNam...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1205
{ "fields": [ { "declarator": "variableNames = Arrays.asList(\"var1\", \"var2\", \"var3\")", "modifier": "final", "original_string": "final List<String> variableNames = Arrays.asList(\"var1\", \"var2\", \"var3\");", "type": "List<String>", "var_name": "variableNames" } ], "fi...
{ "body": "@Test\n @Override\n public void builderShouldCreatePopulatedOperation() {\n // Given\n GetVariables getVariablesOp = new GetVariables.Builder()\n .variableNames(variableNames)\n .build();\n\n // When / Then\n assertEquals(3, getVariablesOp.get...
{ "fields": [ { "declarator": "variableNames", "modifier": "private", "original_string": "private List<String> variableNames;", "type": "List<String>", "var_name": "variableNames" }, { "declarator": "options", "modifier": "private", "original_string": "priva...
{ "body": "public List<String> getVariableNames() {\n return variableNames;\n }", "class_method_signature": "GetVariables.getVariableNames()", "constructor": false, "full_signature": "public List<String> getVariableNames()", "identifier": "getVariableNames", "invocations": [], "modifiers": "publ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_554
{ "fields": [], "file": "core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/iterable/TransformIterableTest.java", "identifier": "TransformIterableTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldCreateIteratorThatReturnsOnlyValidStrings() {\n // Given\n final String item1 = \"valid item 1\";\n final String item2 = \"invalid item 2\";\n final String item3 = \"valid item 3\";\n final Iterable<String> items = Arrays.asList(item1, item2, ...
{ "fields": [ { "declarator": "input", "modifier": "private final", "original_string": "private final Iterable<? extends I> input;", "type": "Iterable<? extends I>", "var_name": "input" }, { "declarator": "validator", "modifier": "private final", "original_s...
{ "body": "@Override\n public CloseableIterator<O> iterator() {\n return new CloseableIterator<O>() {\n @Override\n public void close() {\n CloseableUtil.close(inputItr);\n }\n\n private final Iterator<? extends I> inputItr = input.iterator();\n\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_104
{ "fields": [ { "declarator": "BYTE_ENTITY_GRAPH = \"byteEntityGraph\"", "modifier": "private static final", "original_string": "private static final String BYTE_ENTITY_GRAPH = \"byteEntityGraph\";", "type": "String", "var_name": "BYTE_ENTITY_GRAPH" }, { "declarator": "...
{ "body": "@Test\n public void shouldPassSchemaValidationWhenTimestampPropertyDoesNotHaveAnAggregator() throws Exception {\n // Given\n final AccumuloStore store = new AccumuloStore();\n final Schema schema = new Schema.Builder()\n .entity(TestGroups.ENTITY, new SchemaEntityDefi...
{ "fields": [ { "declarator": "TRAITS =\n Collections.unmodifiableSet(Sets.newHashSet(\n ORDERED,\n VISIBILITY,\n INGEST_AGGREGATION,\n QUERY_AGGREGATION,\n PRE_AGGREGATION_FILTERING,\n ...
{ "body": "public void preInitialise(final String graphId, final Schema schema, final StoreProperties properties) throws StoreException {\n setProperties(properties);\n\n final String deprecatedTableName = getProperties().getTable();\n if (null == graphId && null != deprecatedTableName) {\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1086
{ "fields": [ { "declarator": "TEST_WITH_VALUE = \"withTestValue\"", "modifier": "public static final", "original_string": "public static final String TEST_WITH_VALUE = \"withTestValue\";", "type": "String", "var_name": "TEST_WITH_VALUE" }, { "declarator": "TEST_WITHOUT...
{ "body": "@Test\n public void shouldMerge() throws Exception {\n GetAllElements operationView = new GetAllElements();\n operationView.setView(new View());\n View view = updateViewHook.mergeView(operationView, viewToMerge).build();\n Set<String> groups = view.getGroups();\n asser...
{ "fields": [ { "declarator": "ADD_EXTRA_GROUPS_DEFAULT = false", "modifier": "public static final", "original_string": "public static final boolean ADD_EXTRA_GROUPS_DEFAULT = false;", "type": "boolean", "var_name": "ADD_EXTRA_GROUPS_DEFAULT" }, { "declarator": "withOpA...
{ "body": "protected final View.Builder mergeView(final OperationView operationView, final View viewToMerge) {\n final View.Builder viewBuilder = new View.Builder();\n\n if (!(operationView.getView() instanceof NamedView)) {\n viewBuilder.merge(operationView.getView());\n }\n\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_807
{ "fields": [ { "declarator": "input", "modifier": "private", "original_string": "private List<Element> input;", "type": "List<Element>", "var_name": "input" }, { "declarator": "expected", "modifier": "private", "original_string": "private List<Element> expe...
{ "body": "@Test\n public void shouldApplyDifferentTransformersToDifferentGroups() throws OperationException {\n // Given\n final Function<String, Integer> function = String::length;\n final Function<String, String> function1 = String::toUpperCase;\n final Map<String, ElementTransformer...
{ "fields": [ { "declarator": "validator = new TransformValidator()", "modifier": "private final", "original_string": "private final FunctionValidator<Transform> validator = new TransformValidator();", "type": "FunctionValidator<Transform>", "var_name": "validator" } ], "file...
{ "body": "@Override\n public Iterable<? extends Element> doOperation(final Transform operation, final Context context, final Store store) throws OperationException {\n return doOperation(operation, store.getSchema());\n }", "class_method_signature": "TransformHandler.doOperation(final Transform operat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_942
{ "fields": [ { "declarator": "EDGE_DESCRIPTION = \"Edge description\"", "modifier": "public static final", "original_string": "public static final String EDGE_DESCRIPTION = \"Edge description\";", "type": "String", "var_name": "EDGE_DESCRIPTION" }, { "declarator": "ENT...
{ "body": "@Test\n public void shouldCloneSchema() throws SerialisationException {\n // Given\n\n // When\n final Schema clonedSchema = schema.clone();\n\n // Then\n // Check they are different instances\n assertNotSame(s...
{ "fields": [ { "declarator": "unknownType = new TypeDefinition()", "modifier": "private final", "original_string": "private final TypeDefinition unknownType = new TypeDefinition();", "type": "TypeDefinition", "var_name": "unknownType" }, { "declarator": "id", "mo...
{ "body": "@SuppressWarnings(\"CloneDoesntCallSuperClone\")\n @SuppressFBWarnings(value = \"CN_IDIOM_NO_SUPER_CALL\", justification = \"Uses toJson instead.\")\n @Override\n public Schema clone() {\n return fromJson(toJson(false));\n }", "class_method_signature": "Schema.clone()", "constructor"...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1069
{ "fields": [ { "declarator": "GRAPH_ID = \"graphId\"", "modifier": "private static final", "original_string": "private static final String GRAPH_ID = \"graphId\";", "type": "String", "var_name": "GRAPH_ID" }, { "declarator": "SCHEMA_ID_1 = \"schemaId1\"", "modifi...
{ "body": "@Test\n public void shouldAddHooksFromPathAndGetGraphHooks() throws Exception {\n // Given\n final StoreProperties storeProperties = new StoreProperties();\n storeProperties.setStoreClass(TestStoreImpl.class.getName());\n\n final File graphHooks = tempDir.resolve(\"graphHooks...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(Graph.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Graph.class);", "type": "Logger", "var_name": "LOGGER" }, { "declarator": ...
{ "body": "public List<Class<? extends GraphHook>> getGraphHooks() {\n if (config.getHooks().isEmpty()) {\n return Collections.emptyList();\n }\n\n return (List) config.getHooks().stream().map(GraphHook::getClass).collect(Collectors.toList());\n }", "class_method_signature": "Grap...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_411
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/element/function/ElementAggregatorTest.java", "identifier": "ElementAggregatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnModifiableComponentsWhenNotLocked() {\n final ElementAggregator aggregator = new ElementAggregator();\n\n final List<TupleAdaptedBinaryOperator<String, ?>> components = aggregator.getComponents();\n\n assertDoesNotThrow(() -> components.add(null));\n ...
{ "fields": [ { "declarator": "stateTuple = new PropertiesTuple()", "modifier": "private final", "original_string": "private final PropertiesTuple stateTuple = new PropertiesTuple();", "type": "PropertiesTuple", "var_name": "stateTuple" }, { "declarator": "propertiesTup...
{ "body": "@Override\n public List<TupleAdaptedBinaryOperator<String, ?>> getComponents() {\n if (readOnly) {\n return Collections.unmodifiableList(super.getComponents());\n }\n\n return super.getComponents();\n }", "class_method_signature": "ElementAggregator.getComponents()",...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_256
{ "fields": [ { "declarator": "DETAILED_MSG = \"detailedMessage\"", "modifier": "private static final", "original_string": "private static final String DETAILED_MSG = \"detailedMessage\";", "type": "String", "var_name": "DETAILED_MSG" }, { "declarator": "SIMPLE_MSG = \"...
{ "body": "@Test\n public void shouldNotBuildDetailedMessageWithMissingPropertyFlag() {\n clearDebugModeProperty();\n\n final Error error = new ErrorBuilder()\n .simpleMessage(SIMPLE_MSG)\n .detailMessage(DETAILED_MSG)\n .build();\n\n assertNotEqual...
{ "fields": [ { "declarator": "statusCode", "modifier": "private final", "original_string": "private final int statusCode;", "type": "int", "var_name": "statusCode" }, { "declarator": "status", "modifier": "private final", "original_string": "private final S...
{ "body": "public String getDetailMessage() {\n return detailMessage;\n }", "class_method_signature": "Error.getDetailMessage()", "constructor": false, "full_signature": "public String getDetailMessage()", "identifier": "getDetailMessage", "invocations": [], "modifiers": "public", "parameters"...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_606
{ "fields": [ { "declarator": "schema", "modifier": "private static", "original_string": "private static Schema schema;", "type": "Schema", "var_name": "schema" }, { "declarator": "serialiser", "modifier": "private static", "original_string": "private static...
{ "body": "@Test\n public void testDeserialiseEmpty() throws SerialisationException {\n assertEquals(null, serialiser.deserialiseEmpty());\n }", "class_method_signature": "EntitySerialiserTest.testDeserialiseEmpty()", "constructor": false, "full_signature": "@Test public void testDeserialiseEmpty()...
{ "fields": [ { "declarator": "serialVersionUID = -2582396256747930962L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2582396256747930962L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "str...
{ "body": "@Override\n public Entity deserialiseEmpty() throws SerialisationException {\n return null;\n }", "class_method_signature": "EntitySerialiser.deserialiseEmpty()", "constructor": false, "full_signature": "@Override public Entity deserialiseEmpty()", "identifier": "deserialiseEmpty", "...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_21
{ "fields": [], "file": "store-implementation/federated-store/src/test/java/uk/gov/gchq/gaffer/federatedstore/util/FederatedStoreUtilTest.java", "identifier": "FederatedStoreUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldUpdateNestedOperations() {\n // Given\n final Graph graph = createGraph();\n final HashMap<String, String> options = new HashMap<>();\n options.put(\"key\", \"value\");\n final HashMap<String, String> options2 = new HashMap<>();\n optio...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(FederatedStoreUtil.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(FederatedStoreUtil.class);", "type": "Logger", "var_name": "LOGGER" }, ...
{ "body": "public static <OP extends Operation> OP updateOperationForGraph(final OP operation, final Graph graph) {\n OP resultOp = operation;\n if (operation instanceof Operations) {\n resultOp = (OP) operation.shallowClone();\n final Operations<Operation> operations = (Operations...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1291
{ "fields": [ { "declarator": "mockGenerator", "modifier": "private static", "original_string": "private static ElementGenerator<String> mockGenerator;", "type": "ElementGenerator<String>", "var_name": "mockGenerator" }, { "declarator": "mockOneToOneGenerator", "m...
{ "body": "@Test\n public void shouldDelegateToGafferOneToOneElementGenerator() throws Exception {\n // Given\n final String csv = \"1,2,3,4\";\n final GafferMapFunction function = new GafferMapFunction<>(String.class, MockedOneToOneGenerator.class);\n final Element expectedResult = moc...
{ "fields": [ { "declarator": "serialVersionUID = -2338397824952911347L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2338397824952911347L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "gen...
{ "body": "@Override\n public void flatMap(final T item, final Collector<Element> out) throws Exception {\n if (null == out) {\n throw new IllegalArgumentException(\"Element collector is required\");\n }\n\n if (null == elementGenerator) {\n elementGenerator = generatorCl...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_313
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewUtilTest.java", "identifier": "ViewUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldRemoveGroupFromView() {\n View view = new View.Builder()\n .edge(TestGroups.EDGE)\n .entity(TestGroups.ENTITY)\n .build();\n\n // Then\n assertEquals(2, view.getGroups().size());\n\n // When\n view ...
{ "fields": [], "file": "core/data/src/main/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewUtil.java", "identifier": "ViewUtil", "interfaces": "", "methods": [ { "class_method_signature": "ViewUtil.ViewUtil()", "constructor": true, "full_signature": "private ViewUtil()", ...
{ "body": "public static View removeGroups(final View view, final String... groups) {\n if (null == view) {\n throw new IllegalArgumentException(\"View cannot be null\");\n }\n\n final LinkedHashMap<String, ViewElementDefinition> entities = new LinkedHashMap<>(view.getEntities());\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_743
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/WhileHandlerTest.java", "identifier": "WhileHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldRepeatDelegateOperationUntilMaxRepeatsReached() throws OperationException {\n // Given\n final List<EntitySeed> input = Collections.singletonList(mock(EntitySeed.class));\n final int maxRepeats = 3;\n final GetAdjacentIds delegate = mock(GetAdjacentI...
{ "fields": [ { "declarator": "maxRepeats = While.MAX_REPEATS", "modifier": "private", "original_string": "private int maxRepeats = While.MAX_REPEATS;", "type": "int", "var_name": "maxRepeats" } ], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/W...
{ "body": "@Override\n public Object doOperation(final While operation,\n final Context context,\n final Store store) throws OperationException {\n validateMaxRepeats(operation);\n\n Object input = operation.getInput();\n for (int repea...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_893
{ "fields": [ { "declarator": "stringType", "modifier": "private", "original_string": "private TypeDefinition stringType;", "type": "TypeDefinition", "var_name": "stringType" }, { "declarator": "intType", "modifier": "private", "original_string": "private Ty...
{ "body": "@Test\n public void shouldAddDefaultSerialisers() {\n //Given\n final SerialisationFactory serialisationFactory = mock(SerialisationFactory.class);\n final SchemaOptimiser optimiser = new SchemaOptimiser(serialisationFactory);\n final boolean isOrdered = true;\n\n fina...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(SchemaOptimiser.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(SchemaOptimiser.class);", "type": "Logger", "var_name": "LOGGER" }, { ...
{ "body": "public Schema optimise(final Schema schema, final boolean isStoreOrdered) {\n if (null != schema && null != schema.getTypes()) {\n return new Schema.Builder()\n .merge(schema)\n .types(getOptimisedTypes(schema, isStoreOrdered))\n .v...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_939
{ "fields": [ { "declarator": "ALL_STORE_TRAITS = Sets.newHashSet(StoreTrait.values())", "modifier": "public static final", "original_string": "public static final Set<StoreTrait> ALL_STORE_TRAITS = Sets.newHashSet(StoreTrait.values());", "type": "Set<StoreTrait>", "var_name": "ALL_S...
{ "body": "@Test\n public void shouldValidateAndReturnFalseForNotFilterWithIncompatibleProperties() {\n // Given\n final ViewValidator validator = new ViewValidator();\n final View view = new View.Builder()\n .entity(TestGroups.ENTITY, new ViewElementDefinition.Builder()\n ...
{ "fields": [ { "declarator": "SKIP_VIEW_VALIDATION = \"skipViewValidation\"", "modifier": "public static final", "original_string": "public static final String SKIP_VIEW_VALIDATION = \"skipViewValidation\";", "type": "String", "var_name": "SKIP_VIEW_VALIDATION" }, { "d...
{ "body": "public ValidationResult validate(final View view, final Schema schema, final Set<StoreTrait> storeTraits) {\n final boolean isStoreOrdered = storeTraits.contains(StoreTrait.ORDERED);\n\n final ValidationResult result = new ValidationResult();\n\n if (null != view) {\n valida...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1012
{ "fields": [], "file": "core/serialisation/src/test/java/uk/gov/gchq/gaffer/serialisation/implementation/ordered/OrderedDoubleSerialiserTest.java", "identifier": "OrderedDoubleSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<Double>" }
{ "body": "@Test\n public void checkOrderPreserved() throws SerialisationException {\n // Given\n byte[] startBytes = serialiser.serialise(0d);\n for (Double test = 1d; test >= 10d; test++) {\n // When\n byte[] newTestBytes = serialiser.serialise(test);\n\n // ...
{ "fields": [ { "declarator": "serialVersionUID = -4750738170126596560L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -4750738170126596560L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "LON...
{ "body": "@Override\n public byte[] serialise(final Double object) {\n long l = Double.doubleToRawLongBits(object);\n if (l < 0) {\n l = ~l;\n } else {\n l = l ^ 0x8000000000000000L;\n }\n return LONG_SERIALISER.serialise(l);\n }", "class_method_signat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_190
{ "fields": [ { "declarator": "SCHEMA = new Schema.Builder()\n .type(\"string\", String.class)\n .type(\"type\", Boolean.class)\n .edge(TestGroups.EDGE, new SchemaEdgeDefinition.Builder()\n .source(\"string\")\n .destination(\"string\")\...
{ "body": "@Test\n public void shouldFilterOutEntityNotInView() throws OperationException, SerialisationException {\n // Given\n final GroupFilterProcessor processor = new GroupFilterProcessor(VIEW);\n\n // When\n final boolean result = processor.test(CellUtil.getLazyCell(new Entity(Tes...
{ "fields": [ { "declarator": "view", "modifier": "private final", "original_string": "private final View view;", "type": "View", "var_name": "view" } ], "file": "store-implementation/hbase-store/src/main/java/uk/gov/gchq/gaffer/hbasestore/coprocessor/processor/GroupFilterPro...
{ "body": "@Override\n public boolean test(final LazyElementCell elementCell) {\n final String group = elementCell.getGroup();\n return view.isEntity(group) || view.isEdge(group);\n }", "class_method_signature": "GroupFilterProcessor.test(final LazyElementCell elementCell)", "constructor": fal...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_485
{ "fields": [], "file": "core/common-util/src/test/java/uk/gov/gchq/gaffer/commonutil/OneOrMoreTest.java", "identifier": "OneOrMoreTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldBeEqualWithDeduplicate() {\n final OneOrMore<Integer> collection1 = new OneOrMore<>(true, 1);\n final OneOrMore<Integer> collection2 = new OneOrMore<>(true, 1);\n\n assertEquals(collection1, collection2);\n assertEquals(collection1.hashCode(), collec...
{ "fields": [ { "declarator": "newCollection", "modifier": "private final", "original_string": "private final Function<T, Collection<T>> newCollection;", "type": "Function<T, Collection<T>>", "var_name": "newCollection" }, { "declarator": "deduplicate", "modifier"...
{ "body": "@Override\n public int hashCode() {\n return new HashCodeBuilder(13, 31)\n .append(deduplicate)\n .append(singleItem)\n .append(collection)\n .toHashCode();\n }", "class_method_signature": "OneOrMore.hashCode()", "constructor": fa...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1157
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/operation/data/EdgeSeedTest.java", "identifier": "EdgeSeedTest", "interfaces": "", "superclass": "extends JSONSerialisationTest<EdgeSeed>" }
{ "body": "@Test\n public void shouldDeserialiseFromJsonWhenDirectedTypeIsEither() {\n // Given\n final String json = \"{\\\"class\\\": \\\"uk.gov.gchq.gaffer.operation.data.EdgeSeed\\\", \\\"directedType\\\": \\\"EITHER\\\"}\";\n\n // When\n final EdgeSeed deserialisedEdgeSeed = fromJs...
{ "fields": [ { "declarator": "serialVersionUID = -8137886975649690000L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8137886975649690000L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "VER...
{ "body": "@Override\n public DirectedType getDirectedType() {\n return directed;\n }", "class_method_signature": "EdgeSeed.getDirectedType()", "constructor": false, "full_signature": "@Override public DirectedType getDirectedType()", "identifier": "getDirectedType", "invocations": [], "modif...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_76
{ "fields": [ { "declarator": "utils", "modifier": "private", "original_string": "private SchemaUtils utils;", "type": "SchemaUtils", "var_name": "utils" } ], "file": "store-implementation/parquet-store/src/test/java/uk/gov/gchq/gaffer/parquetstore/utils/SchemaUtilsTest.java"...
{ "body": "@Test\n public void getEntityGroupsTest() {\n final Set<String> entityGroups = utils.getEntityGroups();\n final LinkedHashSet<String> expected = new LinkedHashSet<>(2);\n expected.add(TestGroups.ENTITY);\n expected.add(TestGroups.ENTITY_2);\n assertEquals(expected, ent...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(SchemaUtils.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(SchemaUtils.class);", "type": "Logger", "var_name": "LOGGER" }, { "d...
{ "body": "public Set<String> getEntityGroups() {\n return gafferSchema.getEntityGroups();\n }", "class_method_signature": "SchemaUtils.getEntityGroups()", "constructor": false, "full_signature": "public Set<String> getEntityGroups()", "identifier": "getEntityGroups", "invocations": [ "getEnti...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1229
{ "fields": [], "file": "core/operation/src/test/java/uk/gov/gchq/gaffer/operation/impl/get/GetFromEndpointTest.java", "identifier": "GetFromEndpointTest", "interfaces": "", "superclass": "extends OperationTest<GetFromEndpoint>" }
{ "body": "@Test\n @Override\n public void builderShouldCreatePopulatedOperation() {\n // Given\n GetFromEndpoint op = new GetFromEndpoint.Builder()\n .endpoint(\"testEndpoint\")\n .build();\n\n // When / Then\n assertEquals(\"testEndpoint\", op.getEndpo...
{ "fields": [ { "declarator": "endpoint", "modifier": "@Required\n private", "original_string": "@Required\n private String endpoint;", "type": "String", "var_name": "endpoint" }, { "declarator": "options", "modifier": "private", "original_string": "pr...
{ "body": "public String getEndpoint() {\n return endpoint;\n }", "class_method_signature": "GetFromEndpoint.getEndpoint()", "constructor": false, "full_signature": "public String getEndpoint()", "identifier": "getEndpoint", "invocations": [], "modifiers": "public", "parameters": "()", "retu...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_651
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/resolver/DefaultScoreResolverTest.java", "identifier": "DefaultScoreResolverTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldGetOperationChainScore() throws OperationException {\n // Given\n final DefaultScoreResolver scoreResolver = new DefaultScoreResolver();\n final OperationChain opChain = new OperationChain.Builder()\n .first(mock(GetAdjacentIds.class))\n ...
{ "fields": [ { "declarator": "DEFAULT_OPERATION_SCORE = 1", "modifier": "public static final", "original_string": "public static final int DEFAULT_OPERATION_SCORE = 1;", "type": "int", "var_name": "DEFAULT_OPERATION_SCORE" }, { "declarator": "scoreResolvers", "mo...
{ "body": "@Override\n public Integer getScore(final Operation operation) {\n if (null == operation) {\n return 0;\n }\n\n // Named operations should use their custom resolver despite implementing Operations\n if (operation instanceof Operations && !(operation instanceof Name...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_201
{ "fields": [ { "declarator": "SCHEMA = new Schema.Builder()\n .type(\"string\", String.class)\n .type(\"type\", Boolean.class)\n .edge(TestGroups.EDGE, new SchemaEdgeDefinition.Builder()\n .source(\"string\")\n .destination(\"string\")\...
{ "body": "@Test\n public void shouldNotFilterOutValidEntity() throws OperationException, SerialisationException {\n // Given\n final ValidationProcessor processor = new ValidationProcessor(SCHEMA);\n\n // When / Then\n assertTrue(processor.test(CellUtil.getLazyCell(new Entity(TestGroup...
{ "fields": [ { "declarator": "validator", "modifier": "private final", "original_string": "private final ElementValidator validator;", "type": "ElementValidator", "var_name": "validator" } ], "file": "store-implementation/hbase-store/src/main/java/uk/gov/gchq/gaffer/hbasesto...
{ "body": "@Override\n public boolean test(final LazyElementCell elementCell) {\n return validator.validateWithSchema(elementCell.getElement());\n }", "class_method_signature": "ValidationProcessor.test(final LazyElementCell elementCell)", "constructor": false, "full_signature": "@Override public b...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_714
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/GetWalksHandlerTest.java", "identifier": "GetWalksHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldSerialiseDeserialise() throws SerialisationException, JsonProcessingException {\n // Given\n final GetWalksHandler obj = new GetWalksHandler();\n obj.setPrune(true);\n\n // When\n final byte[] json = JSONSerialiser.serialise(obj, true);\n ...
{ "fields": [ { "declarator": "maxHops = null", "modifier": "private", "original_string": "private Integer maxHops = null;", "type": "Integer", "var_name": "maxHops" }, { "declarator": "prune = true", "modifier": "private", "original_string": "private boolea...
{ "body": "public void setPrune(final Boolean prune) {\n this.prune = prune;\n }", "class_method_signature": "GetWalksHandler.setPrune(final Boolean prune)", "constructor": false, "full_signature": "public void setPrune(final Boolean prune)", "identifier": "setPrune", "invocations": [], "modifie...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_344
{ "fields": [ { "declarator": "EDGE_AB = new Edge.Builder().group(TestGroups.EDGE).source(\"A\").dest(\"B\").directed(true).build()", "modifier": "private static final", "original_string": "private static final Edge EDGE_AB = new Edge.Builder().group(TestGroups.EDGE).source(\"A\").dest(\"B\").di...
{ "body": "@Test\n public void shouldGetPath() {\n // Given\n // [A] -> [E] -> [D]\n // \\ \\ \\\n // (BasicEntity) (BasicEntity) (BasicEntity)\n\n // When\n final Walk walk = new Walk.Builder()\n .entity(ENTITY_A)\n ...
{ "fields": [ { "declarator": "edges", "modifier": "private final", "original_string": "private final List<Set<Edge>> edges;", "type": "List<Set<Edge>>", "var_name": "edges" }, { "declarator": "entities", "modifier": "private final", "original_string": "priv...
{ "body": "@JsonIgnore\n public boolean isPath() {\n return distinct(getVerticesOrdered());\n }", "class_method_signature": "Walk.isPath()", "constructor": false, "full_signature": "@JsonIgnore public boolean isPath()", "identifier": "isPath", "invocations": [ "distinct", "getVerticesOr...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_99
{ "fields": [], "file": "store-implementation/accumulo-store/src/test/java/uk/gov/gchq/gaffer/accumulostore/data/element/AccumuloEntityValueLoaderTest.java", "identifier": "AccumuloEntityValueLoaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldLoadAllIdentifiers() throws SerialisationException {\n // Given\n final String group = TestGroups.ENTITY;\n final Key key = mock(Key.class);\n final Value value = mock(Value.class);\n final AccumuloElementConverter converter = mock(AccumuloEle...
{ "fields": [ { "declarator": "serialVersionUID = -2926043462653982497L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2926043462653982497L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "store-implement...
{ "body": "@SuppressFBWarnings(value = \"BC_UNCONFIRMED_CAST\", justification = \"element provided should always be an Entity\")\n @Override\n public void loadIdentifiers(final Element entity) {\n ((Entity) entity).setVertex(((EntityId) elementConverter.getElementId(key, false)).getVertex());\n }", ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_597
{ "fields": [ { "declarator": "schema", "modifier": "private static", "original_string": "private static Schema schema;", "type": "Schema", "var_name": "schema" }, { "declarator": "serialiser", "modifier": "private static", "original_string": "private static...
{ "body": "@Test\n public void testCanSerialiseElementClass() throws SerialisationException {\n assertTrue(serialiser.canHandle(Element.class));\n }", "class_method_signature": "ElementSerialiserTest.testCanSerialiseElementClass()", "constructor": false, "full_signature": "@Test public void testCan...
{ "fields": [ { "declarator": "serialVersionUID = 4640352297806229672L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 4640352297806229672L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "entit...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return Element.class.isAssignableFrom(clazz);\n }", "class_method_signature": "ElementSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)", "...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1045
{ "fields": [], "file": "core/serialisation/src/test/java/uk/gov/gchq/gaffer/serialisation/implementation/raw/CompactRawIntegerSerialiserTest.java", "identifier": "CompactRawIntegerSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<Integer>" }
{ "body": "@Test\n public void canSerialiseIntegerClass() {\n assertTrue(serialiser.canHandle(Integer.class));\n }", "class_method_signature": "CompactRawIntegerSerialiserTest.canSerialiseIntegerClass()", "constructor": false, "full_signature": "@Test public void canSerialiseIntegerClass()", "ide...
{ "fields": [ { "declarator": "serialVersionUID = -2874472098583724627L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -2874472098583724627L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "core/serialisat...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return Integer.class.equals(clazz);\n }", "class_method_signature": "CompactRawIntegerSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)", "...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1100
{ "fields": [ { "declarator": "NAMED_VIEW_NAME = \"namedViewName\"", "modifier": "private static final", "original_string": "private static final String NAMED_VIEW_NAME = \"namedViewName\";", "type": "String", "var_name": "NAMED_VIEW_NAME" }, { "declarator": "NESTED_NAM...
{ "body": "@Test\n public void shouldResolveNamedView() throws CacheOperationFailedException {\n // Given\n given(CACHE.getNamedView(NAMED_VIEW_NAME, CONTEXT.getUser())).willReturn(FULL_NAMED_VIEW_DETAIL);\n\n final OperationChain<?> opChain = new OperationChain.Builder()\n .fir...
{ "fields": [ { "declarator": "cache", "modifier": "private final", "original_string": "private final NamedViewCache cache;", "type": "NamedViewCache", "var_name": "cache" } ], "file": "core/graph/src/main/java/uk/gov/gchq/gaffer/graph/hook/NamedViewResolver.java", "identif...
{ "body": "@Override\n public void preExecute(final OperationChain<?> opChain, final Context context) {\n resolveViews(opChain, context);\n }", "class_method_signature": "NamedViewResolver.preExecute(final OperationChain<?> opChain, final Context context)", "constructor": false, "full_signature": "...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_981
{ "fields": [], "file": "core/serialisation/src/test/java/uk/gov/gchq/gaffer/serialisation/FloatSerialiserTest.java", "identifier": "FloatSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<Float>" }
{ "body": "@Test\n public void cantSerialiseStringClass() {\n assertFalse(serialiser.canHandle(String.class));\n }", "class_method_signature": "FloatSerialiserTest.cantSerialiseStringClass()", "constructor": false, "full_signature": "@Test public void cantSerialiseStringClass()", "identifier": "c...
{ "fields": [ { "declarator": "serialVersionUID = -4732565151514793209L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -4732565151514793209L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "core/serialisat...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return Float.class.equals(clazz);\n }", "class_method_signature": "FloatSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)", "identifier": "...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_128
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private byte[] a;", "type": "byte[]", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private byte[] b;", "type": "byte[]", "var_name...
{ "body": "@Test\n public void shouldPassWithTwoEmptyArrays() throws Exception {\n br1 = new BytesAndRange(f, 0, 0);\n br2 = new BytesAndRange(f, 0, 0);\n assertTrue(ByteUtils.areKeyBytesEqual(br1, br2));\n }", "class_method_signature": "ByteUtilsTest.shouldPassWithTwoEmptyArrays()", "c...
{ "fields": [], "file": "store-implementation/accumulo-store/src/main/java/uk/gov/gchq/gaffer/accumulostore/utils/ByteUtils.java", "identifier": "ByteUtils", "interfaces": "", "methods": [ { "class_method_signature": "ByteUtils.ByteUtils()", "constructor": true, "full_signature": "privat...
{ "body": "public static boolean areKeyBytesEqual(final byte[] bytes1, final byte[] bytes2) {\n if (Arrays.equals(bytes1, bytes2)) {\n return true;\n }\n\n int last = bytes1.length;\n\n if (last != bytes2.length) {\n return false;\n }\n\n if (last == 0) ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_578
{ "fields": [ { "declarator": "freqMap", "modifier": "private", "original_string": "private FreqMap freqMap;", "type": "FreqMap", "var_name": "freqMap" } ], "file": "core/type/src/test/java/uk/gov/gchq/gaffer/types/function/FreqMapPredicatorTest.java", "identifier": "FreqMa...
{ "body": "@Test\n public void shouldHandleNulls() {\n //given\n final FreqMapPredicator nullRegPredicator = new FreqMapPredicator(null);\n\n //when\n final FreqMap map = nullRegPredicator.apply(freqMap);\n\n //then\n assertThat(map, is(freqMap));\n }", "class_method_...
{ "fields": [ { "declarator": "predicate", "modifier": "private", "original_string": "private KoryphePredicate<String> predicate;", "type": "KoryphePredicate<String>", "var_name": "predicate" } ], "file": "core/type/src/main/java/uk/gov/gchq/gaffer/types/function/FreqMapPredi...
{ "body": "@Override\n public FreqMap apply(final FreqMap freqMap) {\n return filterPredicate(freqMap);\n }", "class_method_signature": "FreqMapPredicator.apply(final FreqMap freqMap)", "constructor": false, "full_signature": "@Override public FreqMap apply(final FreqMap freqMap)", "identifier": ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_217
{ "fields": [ { "declarator": "SCHEMA = Schema.fromJson(StreamUtil.schemas(HBaseStoreTest.class))", "modifier": "private static final", "original_string": "private static final Schema SCHEMA = Schema.fromJson(StreamUtil.schemas(HBaseStoreTest.class));", "type": "Schema", "var_name": ...
{ "body": "@Test\n public void testStoreTraits() {\n final Collection<StoreTrait> traits = store.getTraits();\n assertNotNull(traits);\n assertEquals(traits.size(), 10, \"Collection size should be 10\");\n assertTrue(traits.contains(INGEST_AGGREGATION),\n \"Collection sho...
{ "fields": [ { "declarator": "TRAITS =\n Collections.unmodifiableSet(Sets.newHashSet(\n ORDERED,\n VISIBILITY,\n PRE_AGGREGATION_FILTERING,\n POST_AGGREGATION_FILTERING,\n POST_TRANSFORMATION_FILTERING...
{ "body": "@Override\n public Set<StoreTrait> getTraits() {\n return TRAITS;\n }", "class_method_signature": "HBaseStore.getTraits()", "constructor": false, "full_signature": "@Override public Set<StoreTrait> getTraits()", "identifier": "getTraits", "invocations": [], "modifiers": "@Override ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_647
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/resolver/DefaultScoreResolverTest.java", "identifier": "DefaultScoreResolverTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldGetDefaultScoreWhenNoOperationScores() throws OperationException {\n // Given\n final DefaultScoreResolver resolver = new DefaultScoreResolver(new LinkedHashMap<>());\n\n final GetAdjacentIds op1 = mock(GetAdjacentIds.class);\n\n // When\n fin...
{ "fields": [ { "declarator": "DEFAULT_OPERATION_SCORE = 1", "modifier": "public static final", "original_string": "public static final int DEFAULT_OPERATION_SCORE = 1;", "type": "int", "var_name": "DEFAULT_OPERATION_SCORE" }, { "declarator": "scoreResolvers", "mo...
{ "body": "@Override\n public Integer getScore(final Operation operation) {\n if (null == operation) {\n return 0;\n }\n\n // Named operations should use their custom resolver despite implementing Operations\n if (operation instanceof Operations && !(operation instanceof Name...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_60
{ "fields": [ { "declarator": "EXPECTED_GRAPH_ID = \"testGraphID\"", "modifier": "private static final", "original_string": "private static final String EXPECTED_GRAPH_ID = \"testGraphID\";", "type": "String", "var_name": "EXPECTED_GRAPH_ID" }, { "declarator": "READ_ACC...
{ "body": "@Test\n @Override\n public void builderShouldCreatePopulatedOperation() {\n Schema expectedSchema = new Schema.Builder().build();\n StoreProperties storeProperties = new AccumuloProperties();\n Log4jLogger log4jLogger = new Log4jLogger();\n\n AddGraphWithHooks op = new Bui...
{ "fields": [ { "declarator": "hooks", "modifier": "private", "original_string": "private GraphHook[] hooks;", "type": "GraphHook[]", "var_name": "hooks" } ], "file": "store-implementation/federated-store/src/main/java/uk/gov/gchq/gaffer/federatedstore/operation/AddGraphWithH...
{ "body": "public GraphHook[] getHooks() {\n return hooks;\n }", "class_method_signature": "AddGraphWithHooks.getHooks()", "constructor": false, "full_signature": "public GraphHook[] getHooks()", "identifier": "getHooks", "invocations": [], "modifiers": "public", "parameters": "()", "return"...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_352
{ "fields": [ { "declarator": "EDGE_AB = new Edge.Builder().group(TestGroups.EDGE).source(\"A\").dest(\"B\").directed(true).build()", "modifier": "private static final", "original_string": "private static final Edge EDGE_AB = new Edge.Builder().group(TestGroups.EDGE).source(\"A\").dest(\"B\").di...
{ "body": "@Test\n public void shouldReturnVertexFromWalkObject() {\n final Function<Walk, Object> function = new ExtractWalkVertex();\n final Walk walk = new Walk.Builder()\n .entity(ENTITY_A)\n .edge(EDGE_AB)\n .entity(ENTITY_B)\n .edge(ED...
{ "fields": [], "file": "core/data/src/main/java/uk/gov/gchq/gaffer/data/graph/function/walk/ExtractWalkVertex.java", "identifier": "ExtractWalkVertex", "interfaces": "", "methods": [ { "class_method_signature": "ExtractWalkVertex.apply(final Walk walk)", "constructor": false, "full_sign...
{ "body": "@Override\n public Object apply(final Walk walk) {\n if (null == walk) {\n throw new IllegalArgumentException(\"Walk cannot be null\");\n }\n return walk.getSourceVertex();\n }", "class_method_signature": "ExtractWalkVertex.apply(final Walk walk)", "constructor": f...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_702
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/operation/handler/compare/MinHandlerTest.java", "identifier": "MinHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldFindMinBasedOnPropertyWithMissingProperty() throws OperationException {\n // Given\n final Entity entity1 = makeEntity(\"property1\", 1);\n final Entity entity2 = makeEntity(\"property1\", 2);\n final Entity entity3 = makeEntity(\"property1\", 3);\n ...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/compare/MinHandler.java", "identifier": "MinHandler", "interfaces": "implements OutputOperationHandler<Min, Element>", "methods": [ { "class_method_signature": "MinHandler.doOperation(final Min operation, fi...
{ "body": "@Override\n public Element doOperation(final Min operation, final Context context, final Store store) throws OperationException {\n // If there is no input or there are no comparators, we return null\n if (null == operation.getInput()\n || null == operation.getComparators()\...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_978
{ "fields": [], "file": "core/store/src/test/java/uk/gov/gchq/gaffer/store/schema/SchemaElementDefinitionValidatorTest.java", "identifier": "SchemaElementDefinitionValidatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldValidateAndReturnFalseWhenAggregatorHasNoFunction() {\n // Given\n final SchemaElementDefinitionValidator validator = new SchemaElementDefinitionValidator();\n final BinaryOperator<Integer> function1 = mock(BinaryOperator.class);\n final Schema schem...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(SchemaElementDefinitionValidator.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(SchemaElementDefinitionValidator.class);", "type": "Logger", ...
{ "body": "public ValidationResult validate(final SchemaElementDefinition elementDef) {\n final ValidationResult result = new ValidationResult();\n\n final ElementFilter validator = elementDef.getValidator();\n final ElementAggregator aggregator = elementDef.getFullAggregator();\n result.a...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1053
{ "fields": [ { "declarator": "PATH = \"multiSerialiser.json\"", "modifier": "private static final", "original_string": "private static final String PATH = \"multiSerialiser.json\";", "type": "String", "var_name": "PATH" } ], "file": "core/serialisation/src/test/java/uk/gov/g...
{ "body": "@Test\n public void shouldAcceptSupportedSerialisers() throws Exception {\n MultiSerialiser multiSerialiser = new MultiSerialiser();\n multiSerialiser.setSerialisers(null);\n }", "class_method_signature": "MultiSerialiserTest.shouldAcceptSupportedSerialisers()", "constructor": false...
{ "fields": [ { "declarator": "serialVersionUID = 8206706506883696003L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 8206706506883696003L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "suppo...
{ "body": "public void setSerialisers(final List<SerialiserDetail> serialisers) throws GafferCheckedException {\n supportedSerialisers.setSerialiserDetails(serialisers);\n }", "class_method_signature": "MultiSerialiser.setSerialisers(final List<SerialiserDetail> serialisers)", "constructor": false, "f...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_581
{ "fields": [], "file": "core/type/src/test/java/uk/gov/gchq/gaffer/types/function/ToTypeSubTypeValueTest.java", "identifier": "ToTypeSubTypeValueTest", "interfaces": "", "superclass": "extends FunctionTest" }
{ "body": "@Test\n public void shouldConvertStringToTypeSubTypeValue() {\n // Given\n final ToTypeSubTypeValue function = new ToTypeSubTypeValue();\n final String value = \"value1\";\n\n // When\n final TypeSubTypeValue result = function.apply(value);\n\n // Then\n ...
{ "fields": [], "file": "core/type/src/main/java/uk/gov/gchq/gaffer/types/function/ToTypeSubTypeValue.java", "identifier": "ToTypeSubTypeValue", "interfaces": "", "methods": [ { "class_method_signature": "ToTypeSubTypeValue.apply(final Object value)", "constructor": false, "full_signatur...
{ "body": "@Override\n public TypeSubTypeValue apply(final Object value) {\n return new TypeSubTypeValue(null, null, null != value ? value.toString() : null);\n }", "class_method_signature": "ToTypeSubTypeValue.apply(final Object value)", "constructor": false, "full_signature": "@Override public Ty...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_997
{ "fields": [], "file": "core/serialisation/src/test/java/uk/gov/gchq/gaffer/serialisation/IntegerSerialiserTest.java", "identifier": "IntegerSerialiserTest", "interfaces": "", "superclass": "extends ToBytesSerialisationTest<Integer>" }
{ "body": "@Test\n public void cantSerialiseStringClass() {\n assertFalse(serialiser.canHandle(String.class));\n }", "class_method_signature": "IntegerSerialiserTest.cantSerialiseStringClass()", "constructor": false, "full_signature": "@Test public void cantSerialiseStringClass()", "identifier": ...
{ "fields": [ { "declarator": "serialVersionUID = 5647756843689779437L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 5647756843689779437L;", "type": "long", "var_name": "serialVersionUID" } ], "file": "core/serialisatio...
{ "body": "@Override\n public boolean canHandle(final Class clazz) {\n return Integer.class.equals(clazz);\n }", "class_method_signature": "IntegerSerialiser.canHandle(final Class clazz)", "constructor": false, "full_signature": "@Override public boolean canHandle(final Class clazz)", "identifier...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1116
{ "fields": [ { "declarator": "OP_AUTHS_PATH = \"/opAuthoriser.json\"", "modifier": "private static final", "original_string": "private static final String OP_AUTHS_PATH = \"/opAuthoriser.json\";", "type": "String", "var_name": "OP_AUTHS_PATH" }, { "declarator": "USER =...
{ "body": "@Test\n public void shouldRejectOperationChainWhenUserDoesntHaveWriteAuthForAddNamedOperation() {\n // Given\n final OperationAuthoriser hook = fromJson(OP_AUTHS_PATH);\n final AddNamedOperation addNamedOperation = new AddNamedOperation.Builder()\n .operationChain(\"{...
{ "fields": [ { "declarator": "allAuths = new HashSet<>()", "modifier": "private final", "original_string": "private final Set<String> allAuths = new HashSet<>();", "type": "Set<String>", "var_name": "allAuths" }, { "declarator": "auths = new HashMap<>()", "modifi...
{ "body": "@Override\n public void preExecute(final OperationChain<?> opChain, final Context context) {\n if (null != opChain) {\n for (final Operation operation : opChain.getOperations()) {\n authorise(operation, context.getUser());\n }\n authorise(opChain, c...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_37
{ "fields": [ { "declarator": "ID_SCHEMA_ENTITY = \"basicEntitySchema\"", "modifier": "public static final", "original_string": "public static final String ID_SCHEMA_ENTITY = \"basicEntitySchema\";", "type": "String", "var_name": "ID_SCHEMA_ENTITY" }, { "declarator": "I...
{ "body": "@Test\n public void shouldReturnNoGraphsFromEmptyString() throws Exception {\n // Given\n\n final List<Collection<GraphSerialisable>> graphLists = populateGraphs();\n final Collection<GraphSerialisable> expectedGraphs = graphLists.get(0);\n\n // When\n final Collection...
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(Store.class)", "modifier": "private static final", "original_string": "private static final Logger LOGGER = LoggerFactory.getLogger(Store.class);", "type": "Logger", "var_name": "LOGGER" }, { "declarator": ...
{ "body": "public Collection<Graph> getGraphs(final User user, final String graphIdsCsv, final Operation operation) {\n Collection<Graph> rtn = new ArrayList<>();\n if (nonNull(operation)) {\n String optionKey = FEDERATED_STORE_PROCESSED + id;\n boolean isIdFound = !operation.getOp...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1268
{ "fields": [ { "declarator": "service = new HashMapCacheService()", "modifier": "private", "original_string": "private HashMapCacheService service = new HashMapCacheService();", "type": "HashMapCacheService", "var_name": "service" }, { "declarator": "CACHE_NAME = \"tes...
{ "body": "@Test\n public void shouldReUseCacheIfOneExists() throws CacheOperationException {\n // Given\n final ICache<String, Integer> cache = service.getCache(CACHE_NAME);\n cache.put(\"key\", 1);\n\n // When\n final ICache<String, Integer> sameCache = service.getCache(CACHE_N...
{ "fields": [ { "declarator": "STATIC_CACHE = \"gaffer.cache.hashmap.static\"", "modifier": "public static final", "original_string": "public static final String STATIC_CACHE = \"gaffer.cache.hashmap.static\";", "type": "String", "var_name": "STATIC_CACHE" }, { "declara...
{ "body": "@Override\n public <K, V> ICache<K, V> getCache(final String cacheName) {\n HashMapCache<K, V> cache = caches.computeIfAbsent(cacheName, k -> new HashMapCache<>(useJavaSerialisation));\n\n return cache;\n }", "class_method_signature": "HashMapCacheService.getCache(final String cacheNa...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_610
{ "fields": [ { "declarator": "schema", "modifier": "private static", "original_string": "private static Schema schema;", "type": "Schema", "var_name": "schema" }, { "declarator": "serialiser", "modifier": "private static", "original_string": "private static...
{ "body": "@Test\n public void testPreserveObjectOrdering() throws SerialisationException {\n assertEquals(true, serialiser.preservesObjectOrdering());\n }", "class_method_signature": "ElementIdSerialiserTest.testPreserveObjectOrdering()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [ { "declarator": "serialVersionUID = 2116809339334801784L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 2116809339334801784L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "entit...
{ "body": "@Override\n public boolean preservesObjectOrdering() {\n return null != edgeIdSerialiser && null != entityIdSerialiser\n && edgeIdSerialiser.preservesObjectOrdering() && entityIdSerialiser.preservesObjectOrdering();\n }", "class_method_signature": "ElementIdSerialiser.preserve...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_240
{ "fields": [ { "declarator": "GRAPH_ID = \"graphId\"", "modifier": "private static final", "original_string": "private static final String GRAPH_ID = \"graphId\";", "type": "String", "var_name": "GRAPH_ID" }, { "declarator": "service", "modifier": "@InjectMocks\n...
{ "body": "@Test\n public void shouldThrowExceptionWhenGetFilterFunctionsWithUnknownClassName() throws IOException {\n // When / Then\n try {\n service.getFilterFunctions(\"an unknown class name\");\n fail(\"Exception expected\");\n } catch (final IllegalArgumentException...
{ "fields": [ { "declarator": "graphFactory", "modifier": "@Inject\n private", "original_string": "@Inject\n private GraphFactory graphFactory;", "type": "GraphFactory", "var_name": "graphFactory" }, { "declarator": "userFactory", "modifier": "@Inject\n p...
{ "body": "@Override\n public Set<Class> getFilterFunctions() {\n return ReflectionUtil.getSubTypes(Predicate.class);\n }", "class_method_signature": "GraphConfigurationService.getFilterFunctions()", "constructor": false, "full_signature": "@Override public Set<Class> getFilterFunctions()", "iden...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_755
{ "fields": [ { "declarator": "handler", "modifier": "private", "original_string": "private GetSchemaHandler handler;", "type": "GetSchemaHandler", "var_name": "handler" }, { "declarator": "schema", "modifier": "private", "original_string": "private Schema s...
{ "body": "@Test\n public void shouldThrowExceptionForNullOperation() throws OperationException {\n final GetSchema operation = null;\n\n // When / Then\n try {\n handler.doOperation(operation, context, store);\n } catch (final OperationException e) {\n assertTrue(...
{ "fields": [], "file": "core/store/src/main/java/uk/gov/gchq/gaffer/store/operation/handler/GetSchemaHandler.java", "identifier": "GetSchemaHandler", "interfaces": "implements OutputOperationHandler<GetSchema, Schema>", "methods": [ { "class_method_signature": "GetSchemaHandler.doOperation(final Ge...
{ "body": "@Override\n public Schema doOperation(final GetSchema operation, final Context context, final Store store) throws OperationException {\n final Schema schema;\n if (null == operation) {\n throw new OperationException(\"Operation cannot be null\");\n }\n\n if (operat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_305
{ "fields": [], "file": "core/data/src/test/java/uk/gov/gchq/gaffer/data/elementdefinition/view/ViewTest.java", "identifier": "ViewTest", "interfaces": "", "superclass": "extends JSONSerialisationTest<View>" }
{ "body": "@Test\n public void shouldFilterEdgesInBuilder() {\n // When\n final View view = new View.Builder()\n .edge(TestGroups.EDGE)\n .edge(TestGroups.EDGE_2)\n .removeEdges(e -> e.getKey().equals(TestGroups.EDGE))\n .build();\n\n ...
{ "fields": [ { "declarator": "globalElements", "modifier": "private", "original_string": "private List<GlobalViewElementDefinition> globalElements;", "type": "List<GlobalViewElementDefinition>", "var_name": "globalElements" }, { "declarator": "globalEntities", "m...
{ "body": "@Override\n public boolean equals(final Object obj) {\n if (this == obj) {\n return true;\n }\n\n if (null == obj || getClass() != obj.getClass()) {\n return false;\n }\n\n final View view = (View) obj;\n\n return new EqualsBuilder()\n ...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_1287
{ "fields": [ { "declarator": "MAX_QUEUE_SIZE_OPTION = \"10\"", "modifier": "private static final", "original_string": "private static final String MAX_QUEUE_SIZE_OPTION = \"10\";", "type": "String", "var_name": "MAX_QUEUE_SIZE_OPTION" }, { "declarator": "MAX_QUEUE_SIZE...
{ "body": "@Test\n public void shouldAddElementsToStore() throws Exception {\n // Given\n final AddElementsFromSocket op = mock(AddElementsFromSocket.class);\n final Store store = mock(Store.class);\n given(store.getProperties()).willReturn(new StoreProperties());\n given(store.g...
{ "fields": [ { "declarator": "serialVersionUID = -3418606107861031989L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -3418606107861031989L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "MAX...
{ "body": "public void add(final Element element) {\n if (null == element) {\n return;\n }\n\n if (null == queue) {\n queue = new ConsumableBlockingQueue<>(maxQueueSize);\n restart = true;\n }\n\n try {\n queue.put(element);\n } cat...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...
47973088_186
{ "fields": [ { "declarator": "SCHEMA = new Schema.Builder()\n .type(\"string\", String.class)\n .type(\"type\", Boolean.class)\n .edge(TestGroups.EDGE, new SchemaEdgeDefinition.Builder()\n .source(\"string\")\n .destination(\"string\")\...
{ "body": "@Test\n public void shouldDelegateToEachProcessor() throws OperationException, IOException {\n // Given\n final List<LazyElementCell> lazyCells = CellUtil.getLazyCells(ELEMENTS, serialisation);\n final List<Cell> cells = new ArrayList<>();\n for (final LazyElementCell lazyEle...
{ "fields": [ { "declarator": "scanner", "modifier": "private final", "original_string": "private final InternalScanner scanner;", "type": "InternalScanner", "var_name": "scanner" }, { "declarator": "serialisation", "modifier": "private final", "original_str...
{ "body": "@Override\n public boolean next(final List<Cell> output) throws IOException {\n final List<Cell> input = new ArrayList<>();\n final boolean shouldContinue = scanner.next(input);\n _next(input, output);\n return shouldContinue;\n }", "class_method_signature": "GafferScann...
{ "created": "12/14/2015 12:12:39 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 47973088, "size": null, "stargazer_count": null, "stars": 1568, "updates": "2020-01-27T21:51:26+00:00", "url": "https://github.com/gchq/Gaffer" ...