You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import java.util.*;
class HoistModeled {
int list_contains_hoist(List<String> list, String s) {
int d = 0;
for (int i = 0; i < 10; i++) {
if (list.contains(s.substring(0, 1))) {
d++;
}
}
return d;
}
void deserialize_hoist(
final JsonDeserializer<?> specDeserializer,
final JsonParser p,
final DeserializationContext ctx)
throws IOException {
int d = 0;
Object o;
for (int i = 0; i < 10; i++) {
o = specDeserializer.deserialize(p, ctx);
}
}
boolean contains_pure_FN(Integer i, ArrayList<Integer> list) {
Iterator<Integer> listIterator = list.iterator();
while (listIterator.hasNext()) {
Integer el = listIterator.next();
if (i.equals(el)) {
return true;
}
}
return false;
}
void call_contains_pure_hoist_FN(int b, ArrayList<Integer> list) {
for (int i = 0; i < b; i++) {
contains_pure_FN(b, list);
}
}
}