_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q166400 | InsertQueue.getActiveIndexes | validation | @NonNull
public Collection<Integer> getActiveIndexes() {
Collection<Integer> result = new HashSet<>();
for (AtomicInteger i : mActiveIndexes) {
result.add(i.get());
}
return result;
} | java | {
"resource": ""
} |
q166401 | ExpandableListItemAdapter.getTitleView | validation | @Nullable
public View getTitleView(final int position) {
View titleView = null;
View parentView = findViewForPosition(position);
if (parentView != null) {
Object tag = parentView.getTag();
if (tag instanceof ViewHolder) {
titleView = ((ViewHolder) tag... | java | {
"resource": ""
} |
q166402 | ExpandableListItemAdapter.getContentView | validation | @Nullable
public View getContentView(final int position) {
View contentView = null;
View parentView = findViewForPosition(position);
if (parentView != null) {
Object tag = parentView.getTag();
if (tag instanceof ViewHolder) {
contentView = ((ViewHolde... | java | {
"resource": ""
} |
q166403 | ExpandableListItemAdapter.expand | validation | public void expand(final int position) {
long itemId = getItemId(position);
if (mExpandedIds.contains(itemId)) {
return;
}
toggle(position);
} | java | {
"resource": ""
} |
q166404 | ExpandableListItemAdapter.collapse | validation | public void collapse(final int position) {
long itemId = getItemId(position);
if (!mExpandedIds.contains(itemId)) {
return;
}
toggle(position);
} | java | {
"resource": ""
} |
q166405 | ExpandableListItemAdapter.getContentParent | validation | @Nullable
private View getContentParent(final int position) {
View contentParent = null;
View parentView = findViewForPosition(position);
if (parentView != null) {
Object tag = parentView.getTag();
if (tag instanceof ViewHolder) {
contentParent = ((Vi... | java | {
"resource": ""
} |
q166406 | AnimateAdditionAdapter.getAdditionalAnimators | validation | @SuppressWarnings({"MethodMayBeStatic", "UnusedParameters"})
@NonNull
protected Animator[] getAdditionalAnimators(@NonNull final View view, @NonNull final ViewGroup parent) {
return new Animator[]{};
} | java | {
"resource": ""
} |
q166407 | BitmapUtils.getBitmapFromView | validation | @NonNull
static Bitmap getBitmapFromView(@NonNull final View v) {
Bitmap bitmap = Bitmap.createBitmap(v.getMeasuredWidth(), v.getMeasuredHeight(), Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
v.draw(canvas);
return bitmap;
} | java | {
"resource": ""
} |
q166408 | SwipeTouchListener.isDismissable | validation | private boolean isDismissable(final int position) {
if (mListViewWrapper.getAdapter() == null) {
return false;
}
if (mDismissableManager != null) {
long downId = mListViewWrapper.getAdapter().getItemId(position);
return mDismissableManager.isDismissable(downI... | java | {
"resource": ""
} |
q166409 | SwipeTouchListener.reset | validation | private void reset() {
if (mVelocityTracker != null) {
mVelocityTracker.recycle();
}
mVelocityTracker = null;
mDownX = 0;
mDownY = 0;
mCurrentView = null;
mSwipingView = null;
mCurrentPosition = AdapterView.INVALID_POSITION;
mSwiping =... | java | {
"resource": ""
} |
q166410 | ViewAnimator.reset | validation | public void reset() {
for (int i = 0; i < mAnimators.size(); i++) {
mAnimators.get(mAnimators.keyAt(i)).cancel();
}
mAnimators.clear();
mFirstAnimatedPosition = -1;
mLastAnimatedPosition = -1;
mAnimationStartMillis = -1;
mShouldAnimate = true;
} | java | {
"resource": ""
} |
q166411 | ViewAnimator.cancelExistingAnimation | validation | void cancelExistingAnimation(@NonNull final View view) {
int hashCode = view.hashCode();
Animator animator = mAnimators.get(hashCode);
if (animator != null) {
animator.end();
mAnimators.remove(hashCode);
}
} | java | {
"resource": ""
} |
q166412 | ViewAnimator.animateView | validation | private void animateView(final int position, @NonNull final View view, @NonNull final Animator[] animators) {
if (mAnimationStartMillis == -1) {
mAnimationStartMillis = SystemClock.uptimeMillis();
}
ViewHelper.setAlpha(view, 0);
AnimatorSet set = new AnimatorSet();
... | java | {
"resource": ""
} |
q166413 | ViewAnimator.calculateAnimationDelay | validation | @SuppressLint("NewApi")
private int calculateAnimationDelay(final int position) {
int delay;
int lastVisiblePosition = mListViewWrapper.getLastVisiblePosition();
int firstVisiblePosition = mListViewWrapper.getFirstVisiblePosition();
int numberOfItemsOnScreen = lastVisiblePosition -... | java | {
"resource": ""
} |
q166414 | AnimatorUtil.concatAnimators | validation | @NonNull
public static Animator[] concatAnimators(@NonNull final Animator[] childAnimators, @NonNull final Animator[] animators, @NonNull final Animator alphaAnimator) {
Animator[] allAnimators = new Animator[childAnimators.length + animators.length + 1];
int i;
for (i = 0; i < childAnimato... | java | {
"resource": ""
} |
q166415 | CORSFilter.handleNonCORS | validation | public void handleNonCORS(final HttpServletRequest request,
final HttpServletResponse response, final FilterChain filterChain)
throws IOException, ServletException {
// Let request pass.
filterChain.doFilter(request, response);
} | java | {
"resource": ""
} |
q166416 | NonEmptyVirtualStorage.addStreamOfLiteralWords | validation | @Override
public void addStreamOfLiteralWords(Buffer buffer, int start, int number) {
for(int x = start; x < start + number ; ++x)
if(buffer.getWord(x)!=0) throw nonEmptyException;
} | java | {
"resource": ""
} |
q166417 | IteratorUtil.materialize | validation | public static void materialize(final IteratingRLW i,
final BitmapStorage c) {
while (true) {
if (i.getRunningLength() > 0) {
c.addStreamOfEmptyWords(i.getRunningBit(), i.getRunningLength());
}
int il = i.getNumberOfLiteralWor... | java | {
"resource": ""
} |
q166418 | PriorityQ.poll | validation | public T poll() {
T ans = this.a[1];
this.a[1] = this.a[this.lastIndex--];
percolateDown(1);
return ans;
} | java | {
"resource": ""
} |
q166419 | LongArray.resizeBuffer | validation | private void resizeBuffer(int number) {
int size = newSizeInWords(number);
if (size >= this.buffer.length) {
long oldBuffer[] = this.buffer;
this.buffer = new long[size];
System.arraycopy(oldBuffer, 0, this.buffer, 0, oldBuffer.length);
}
} | java | {
"resource": ""
} |
q166420 | LongArray.newSizeInWords | validation | private int newSizeInWords(int number) {
int size = this.actualSizeInWords + number;
if (size >= this.buffer.length) {
if (size < 32768)
size = size * 2;
else if (size * 3 / 2 < size) // overflow
size = Integer.MAX_VALUE;
else
... | java | {
"resource": ""
} |
q166421 | FastAggregation32.xor | validation | public static EWAHCompressedBitmap32 xor(final EWAHCompressedBitmap32... bitmaps) {
PriorityQueue<EWAHCompressedBitmap32> pq = new PriorityQueue<EWAHCompressedBitmap32>(bitmaps.length,
new Comparator<EWAHCompressedBitmap32>() {
@Override
public int compare... | java | {
"resource": ""
} |
q166422 | BitCounter32.addStreamOfLiteralWords | validation | @Override
public void addStreamOfLiteralWords(Buffer32 buffer, int start, int number) {
for (int i = start; i < start + number; i++) {
addLiteralWord(buffer.getWord(i));
}
} | java | {
"resource": ""
} |
q166423 | UpdateableBitmapFunction32.fillWithLiterals | validation | public final void fillWithLiterals(final List<EWAHPointer32> container) {
for (int k = this.litwlist.nextSetBit(0); k >= 0; k = this.litwlist
.nextSetBit(k + 1)) {
container.add(this.rw[k]);
}
} | java | {
"resource": ""
} |
q166424 | ImmutableBitSet.asBitSet | validation | public BitSet asBitSet() {
BitSet bs = new BitSet(this.size());
this.data.rewind();
this.data.get(bs.data, 0, bs.data.length);
return bs;
} | java | {
"resource": ""
} |
q166425 | ImmutableBitSet.cardinality | validation | public int cardinality() {
int sum = 0;
int length = this.data.limit();
for(int k = 0; k < length; ++k)
sum += Long.bitCount(this.data.get(k));
return sum;
} | java | {
"resource": ""
} |
q166426 | ImmutableBitSet.empty | validation | public boolean empty() {
int length = this.data.limit();
for(int k = 0; k < length; ++k)
if (this.data.get(k) != 0) return false;
return true;
} | java | {
"resource": ""
} |
q166427 | ImmutableBitSet.intIterator | validation | public IntIterator intIterator() {
return new IntIterator() {
@Override
public boolean hasNext() {
return this.i >= 0;
}
@Override
public int next() {
this.j = this.i;
this.i = ImmutableBitSet.this.nextSetBit(this.i + 1);... | java | {
"resource": ""
} |
q166428 | ImmutableBitSet.intersects | validation | public boolean intersects(BitSet bs) {
for (int k = 0; k < Math.min(this.data.limit(), bs.data.length); ++k) {
if ((this.data.get(k) & bs.data[k]) != 0) return true;
}
return false;
} | java | {
"resource": ""
} |
q166429 | ImmutableBitSet.unsetIntIterator | validation | public IntIterator unsetIntIterator() {
return new IntIterator() {
@Override
public boolean hasNext() {
return this.i >= 0;
}
@Override
public int next() {
this.j = this.i;
this.i = ImmutableBitSet.this.nextUnsetBit(this.... | java | {
"resource": ""
} |
q166430 | EWAHPointer32.parseNextRun | validation | public void parseNextRun() {
if ((this.isLiteral)
|| (this.iterator.getNumberOfLiteralWords() == 0)) {
// no choice, must load next runs
this.iterator.discardFirstWords(this.iterator.size());
if (this.iterator.getRunningLength() > 0) {
this.end... | java | {
"resource": ""
} |
q166431 | TapBarMenu.open | validation | public void open() {
state = State.OPENED;
showIcons(true);
animator[LEFT].setFloatValues(button[LEFT], 0);
animator[RIGHT].setFloatValues(button[RIGHT], width);
animator[RADIUS].setFloatValues(button[RADIUS], 0);
animator[TOP].setFloatValues(button[TOP], 0);
animator[BOTTOM].setFloatValues... | java | {
"resource": ""
} |
q166432 | TapBarMenu.close | validation | public void close() {
updateDimensions(width, height);
state = State.CLOSED;
showIcons(false);
animator[LEFT].setFloatValues(0, button[LEFT]);
animator[RIGHT].setFloatValues(width, button[RIGHT]);
animator[RADIUS].setFloatValues(0, button[RADIUS]);
animator[TOP].setFloatValues(0, button[TOP... | java | {
"resource": ""
} |
q166433 | TapBarMenu.setMenuBackgroundColor | validation | public void setMenuBackgroundColor(int colorResId) {
backgroundColor = ContextCompat.getColor(getContext(), colorResId);
paint.setColor(backgroundColor);
invalidate();
} | java | {
"resource": ""
} |
q166434 | H2URLParser.fetchDatabaseNameRangeIndexFromURLForH2FileMode | validation | private int[] fetchDatabaseNameRangeIndexFromURLForH2FileMode(String url) {
int fileLabelIndex = url.indexOf(FILE_MODE_FLAG);
int parameterLabelIndex = url.indexOf(";", fileLabelIndex);
if (parameterLabelIndex == -1) {
parameterLabelIndex = url.length();
}
if (fileLabelIndex != -1) {
re... | java | {
"resource": ""
} |
q166435 | H2URLParser.fetchDatabaseNameRangeIndexFromURLForH2MemMode | validation | private int[] fetchDatabaseNameRangeIndexFromURLForH2MemMode(String url) {
int fileLabelIndex = url.indexOf(MEMORY_MODE_FLAG);
int parameterLabelIndex = url.indexOf(";", fileLabelIndex);
if (parameterLabelIndex == -1) {
parameterLabelIndex = url.length();
}
if (fileLabelIndex != -1) {
r... | java | {
"resource": ""
} |
q166436 | URLParser.parser | validation | public static ConnectionInfo parser(String url) {
if (null == url) {
return ConnectionInfo.UNKNOWN_CONNECTION_INFO;
}
String lowerCaseUrl = url.toLowerCase();
ConnectionURLParser parser = findURLParser(lowerCaseUrl);
if (parser == null) {
return ConnectionInfo.UNKNOWN_CONNECTION_INFO;
... | java | {
"resource": ""
} |
q166437 | URLParser.registerConnectionParser | validation | public static void registerConnectionParser(String urlPrefix, ConnectionURLParser parser) {
if (null == urlPrefix || parser == null) {
throw new IllegalArgumentException("urlPrefix and parser can not be null");
}
parserRegister.put(urlPrefix.toLowerCase(), parser);
} | java | {
"resource": ""
} |
q166438 | AbstractURLParser.fetchDatabaseNameFromURL | validation | protected String fetchDatabaseNameFromURL(String url) {
URLLocation hostsLocation = fetchDatabaseNameIndexRange(url);
return url.substring(hostsLocation.startIndex(), hostsLocation.endIndex());
} | java | {
"resource": ""
} |
q166439 | Daemon.run | validation | public static void run(final Context context, final Class<?> daemonServiceClazz,
final int interval) {
new Thread(new Runnable() {
@Override
public void run() {
Command.install(context, BIN_DIR_NAME, DAEMON_BIN_NAME);
start(context, daemonServiceClazz, interval);
}
}).start(... | java | {
"resource": ""
} |
q166440 | Command.copyFile | validation | private static void copyFile(File file, InputStream is, String mode)
throws IOException, InterruptedException {
final String abspath = file.getAbsolutePath();
final FileOutputStream out = new FileOutputStream(file);
byte buf[] = new byte[1024];
int len;
while ((len = is.read(buf)) > 0) {
out.write(buf, 0... | java | {
"resource": ""
} |
q166441 | Command.copyAssets | validation | public static void copyAssets(Context context, String assetsFilename, File file, String mode)
throws IOException, InterruptedException {
AssetManager manager = context.getAssets();
final InputStream is = manager.open(assetsFilename);
copyFile(file, is, mode);
} | java | {
"resource": ""
} |
q166442 | Command.install | validation | @SuppressWarnings("deprecation")
public static boolean install(Context context, String destDir, String filename) {
String binaryDir = "armeabi";
String abi = Build.CPU_ABI;
if (abi.startsWith("armeabi-v7a")) {
binaryDir = "armeabi-v7a";
} else if (abi.startsWith("x86")) {
binaryDir = "x86";
}
/* fo... | java | {
"resource": ""
} |
q166443 | Resolver.handleMissingFields | validation | private void handleMissingFields()
{
MissingFieldHandler missingFieldHandler = reader.getMissingFieldHandler();
if (missingFieldHandler != null)
{
for (Missingfields mf : missingFields)
{
missingFieldHandler.fieldMissing(mf.target, mf.fieldName, mf.val... | java | {
"resource": ""
} |
q166444 | Resolver.getEnum | validation | private Object getEnum(Class c, JsonObject jsonObj)
{
try
{
return Enum.valueOf(c, (String) jsonObj.get("name"));
}
catch (Exception e)
{ // In case the enum class has it's own 'name' member variable (shadowing the 'name' variable on Enum)
return Enu... | java | {
"resource": ""
} |
q166445 | Resolver.patchUnresolvedReferences | validation | protected void patchUnresolvedReferences()
{
Iterator i = unresolvedRefs.iterator();
while (i.hasNext())
{
UnresolvedReference ref = (UnresolvedReference) i.next();
Object objToFix = ref.referencingObj.target;
JsonObject objReferenced = reader.getObjectsRe... | java | {
"resource": ""
} |
q166446 | MapResolver.traverseFields | validation | public void traverseFields(final Deque<JsonObject<String, Object>> stack, final JsonObject<String, Object> jsonObj)
{
final Object target = jsonObj.target;
for (Map.Entry<String, Object> e : jsonObj.entrySet())
{
final String fieldName = e.getKey();
final Field field ... | java | {
"resource": ""
} |
q166447 | JsonReader.jsonToJava | validation | public static Object jsonToJava(String json, Map<String, Object> optionalArgs)
{
if (optionalArgs == null)
{
optionalArgs = new HashMap<String, Object>();
optionalArgs.put(USE_MAPS, false);
}
if (!optionalArgs.containsKey(USE_MAPS))
{
optio... | java | {
"resource": ""
} |
q166448 | JsonReader.jsonObjectsToJava | validation | public Object jsonObjectsToJava(JsonObject root)
{
getArgs().put(USE_MAPS, false);
return convertParsedMapsToJava(root);
} | java | {
"resource": ""
} |
q166449 | ObjectResolver.traverseFields | validation | public void traverseFields(final Deque<JsonObject<String, Object>> stack, final JsonObject<String, Object> jsonObj)
{
final Object javaMate = jsonObj.target;
final Iterator<Map.Entry<String, Object>> i = jsonObj.entrySet().iterator();
final Class cls = javaMate.getClass();
while (i.... | java | {
"resource": ""
} |
q166450 | ObjectResolver.storeMissingField | validation | private void storeMissingField(Object target, String missingField, Object value)
{
missingFields.add(new Missingfields(target, missingField, value));
} | java | {
"resource": ""
} |
q166451 | ObjectResolver.getRawType | validation | public static Class getRawType(final Type t)
{
if (t instanceof ParameterizedType)
{
ParameterizedType pType = (ParameterizedType) t;
if (pType.getRawType() instanceof Class)
{
return (Class) pType.getRawType();
}
}
ret... | java | {
"resource": ""
} |
q166452 | JsonParser.readArray | validation | private Object readArray(JsonObject object) throws IOException
{
final List<Object> array = new ArrayList();
while (true)
{
final Object o = readValue(object);
if (o != EMPTY_ARRAY)
{
array.add(o);
}
final int c = s... | java | {
"resource": ""
} |
q166453 | JsonParser.readNumber | validation | private Number readNumber(int c) throws IOException
{
final FastPushbackReader in = input;
final StringBuilder number = numBuf;
number.setLength(0);
number.appendCodePoint(c);
boolean isFloat = false;
if (JsonReader.isLenient() && (c == '-' || c == 'N' || c =... | java | {
"resource": ""
} |
q166454 | JsonParser.readString | validation | private String readString() throws IOException
{
final StringBuilder str = strBuf;
final StringBuilder hex = hexBuf;
str.setLength(0);
int state = STRING_START;
final FastPushbackReader in = input;
while (true)
{
final int c = in.read();
... | java | {
"resource": ""
} |
q166455 | MetaUtils.getField | validation | public static Field getField(Class c, String field)
{
return getDeepDeclaredFields(c).get(field);
} | java | {
"resource": ""
} |
q166456 | MetaUtils.removeLeadingAndTrailingQuotes | validation | static String removeLeadingAndTrailingQuotes(String s)
{
Matcher m = extraQuotes.matcher(s);
if (m.find())
{
s = m.group(2);
}
return s;
} | java | {
"resource": ""
} |
q166457 | JsonWriter.objectToJson | validation | public static String objectToJson(Object item, Map<String, Object> optionalArgs)
{
try
{
ByteArrayOutputStream stream = new ByteArrayOutputStream();
JsonWriter writer = new JsonWriter(stream, optionalArgs);
writer.write(item);
writer.close();
... | java | {
"resource": ""
} |
q166458 | JsonWriter.formatJson | validation | public static String formatJson(String json, Map readingArgs, Map writingArgs)
{
Map args = new HashMap();
if (readingArgs != null)
{
args.putAll(readingArgs);
}
args.put(JsonReader.USE_MAPS, true);
Object obj = JsonReader.jsonToJava(json, args);
a... | java | {
"resource": ""
} |
q166459 | JsonWriter.tab | validation | private void tab(Writer output, int delta) throws IOException
{
if (!isPrettyPrint)
{
return;
}
output.write(NEW_LINE);
depth += delta;
for (int i=0; i < depth; i++)
{
output.write(" ");
}
} | java | {
"resource": ""
} |
q166460 | JsonWriter.writeArrayElementIfMatching | validation | public boolean writeArrayElementIfMatching(Class arrayComponentClass, Object o, boolean showType, Writer output)
{
if (!o.getClass().isAssignableFrom(arrayComponentClass) || notCustom.contains(o.getClass()))
{
return false;
}
try
{
return writeCustom(... | java | {
"resource": ""
} |
q166461 | JsonWriter.writeCustom | validation | protected boolean writeCustom(Class arrayComponentClass, Object o, boolean showType, Writer output) throws IOException
{
if (neverShowType)
{
showType = false;
}
JsonClassWriterBase closestWriter = getCustomWriter(arrayComponentClass);
if (closestWriter == null)
... | java | {
"resource": ""
} |
q166462 | JsonWriter.forceGetCustomWriter | validation | private JsonClassWriterBase forceGetCustomWriter(Class c)
{
JsonClassWriterBase closestWriter = nullWriter;
int minDistance = Integer.MAX_VALUE;
for (Map.Entry<Class, JsonClassWriterBase> entry : writers.entrySet())
{
Class clz = entry.getKey();
if (clz == c)... | java | {
"resource": ""
} |
q166463 | JsonWriter.write | validation | public void write(Object obj)
{
traceReferences(obj);
objVisited.clear();
try
{
writeImpl(obj, true);
}
catch (Exception e)
{
throw new JsonIoException("Error writing object to JSON:", e);
}
flush();
objVisited.c... | java | {
"resource": ""
} |
q166464 | JsonWriter.traceReferences | validation | protected void traceReferences(Object root)
{
if (root == null)
{
return;
}
Map<Class, List<Field>> fieldSpecifiers = (Map) args.get(FIELD_SPECIFIERS);
final Deque<Object> stack = new ArrayDeque<Object>();
stack.addFirst(root);
final Map<Object, Lo... | java | {
"resource": ""
} |
q166465 | JsonWriter.traceFields | validation | protected void traceFields(final Deque<Object> stack, final Object obj, final Map<Class, List<Field>> fieldSpecifiers)
{
// If caller has special Field specifier for a given class
// then use it, otherwise use reflection.
Collection<Field> fields = getFieldsUsingSpecifier(obj.getClass(), fie... | java | {
"resource": ""
} |
q166466 | JsonWriter.ensureJsonPrimitiveKeys | validation | public static boolean ensureJsonPrimitiveKeys(Map map)
{
for (Object o : map.keySet())
{
if (!(o instanceof String))
{
return false;
}
}
return true;
} | java | {
"resource": ""
} |
q166467 | JsonWriter.writeCollectionElement | validation | private void writeCollectionElement(Object o) throws IOException
{
if (o == null)
{
out.write("null");
}
else if (o instanceof Boolean || o instanceof Double)
{
writePrimitive(o, false);
}
else if (o instanceof Long)
{
... | java | {
"resource": ""
} |
q166468 | WorldbankImportServiceImpl.createMapFromList | validation | private static Map<String, String> createMapFromList(final List<String> all) {
final Map<String, String> map = new ConcurrentHashMap<>();
for (final String documentElement : all) {
if (documentElement != null) {
map.put(documentElement, documentElement);
}
}
return map;
} | java | {
"resource": ""
} |
q166469 | IndicatorElement.getSource | validation | @Embedded
@AttributeOverrides({
@AttributeOverride(name = "value", column = @Column(name = "SOURCE_VALUE")),
@AttributeOverride(name = "id", column = @Column(name = "SOURCE_ID"))
})
public Source getSource() {
return source;
} | java | {
"resource": ""
} |
q166470 | IndicatorElement.getTopics | validation | @ManyToOne(targetEntity = Topics.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "TOPICS_INDICATOR_ELEMENT_HJID")
public Topics getTopics() {
return topics;
} | java | {
"resource": ""
} |
q166471 | IndicatorElement.getHjid | validation | @Id
@Column(name = "HJID")
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getHjid() {
return hjid;
} | java | {
"resource": ""
} |
q166472 | DocumentDetailContainer.getDocumentDetailList | validation | @OneToMany(targetEntity = DocumentDetailData.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "DOCUMENT_DETAIL_LIST_DOCUMEN_0")
public List<DocumentDetailData> getDocumentDetailList() {
return this.documentDetailList;
} | java | {
"resource": ""
} |
q166473 | ChartOptionsImpl.createAxesXYDateFloat | validation | private static Axes createAxesXYDateFloat() {
return new Axes()
.addAxis(new XYaxis().setRenderer(AxisRenderers.DATE)
.setTickOptions(new AxisTickRenderer().setFormatString(YEAR_MONTH_DAY_FORMAT).setFontFamily(FONT_FAMILY).setTextColor(TEXT_COLOR).setFontSize(FONT_SIZE))
.setNumberTicks(NUMBER_TICKS_D... | java | {
"resource": ""
} |
q166474 | ChartOptionsImpl.createDefaultGrid | validation | private static Grid createDefaultGrid() {
final Grid grid = new Grid();
grid.setBackground(BACKGROUND_COLOR);
grid.setGridLineColor(GRIDLINE_COLOR);
grid.setBorderColor(BORDER_COLOR);
return grid;
} | java | {
"resource": ""
} |
q166475 | ChartOptionsImpl.createdLegendEnhancedInsideNorthWest | validation | private static Legend createdLegendEnhancedInsideNorthWest() {
return setLegendStyling(new Legend().setShow(true)
.setRendererOptions(
new EnhancedLegendRenderer().setSeriesToggle(SeriesToggles.NORMAL).setSeriesToggleReplot(true).setNumberColumns(LEGEND_COLUMNS).setNumberRows(LEGEND_ROWS))
.setPlacement... | java | {
"resource": ""
} |
q166476 | ChartOptionsImpl.createdLegendEnhancedInsideWest | validation | private static Legend createdLegendEnhancedInsideWest() {
return setLegendStyling(
new Legend().setShow(true).setPlacement(LegendPlacements.INSIDE_GRID).setLocation(LegendLocations.WEST)
.setRenderer(LegendRenderers.ENHANCED).setRendererOptions(new EnhancedLegendRenderer()
.setSeriesToggle(SeriesTog... | java | {
"resource": ""
} |
q166477 | ChartOptionsImpl.createLegendOutsideOneColumn | validation | private static Legend createLegendOutsideOneColumn() {
return setLegendStyling(new Legend().setShow(true)
.setRendererOptions(
new EnhancedLegendRenderer().setSeriesToggle(SeriesToggles.NORMAL).setSeriesToggleReplot(true).setNumberColumns(ONE_COLUMN_NUMBER_OF_COLUMNS).setNumberRows(ONE_COLUMN_NUMBER_OF_ROWS... | java | {
"resource": ""
} |
q166478 | ChartOptionsImpl.setLegendStyling | validation | private static Legend setLegendStyling(final Legend legend) {
legend.setBackground(BACKGROUND_COLOR).setFontFamily(FONT_FAMILY).setTextColor(TEXT_COLOR).setFontSize(LEGEND_FONT_SIZE);
return legend;
} | java | {
"resource": ""
} |
q166479 | ChartOptionsImpl.createHighLighter | validation | private static Highlighter createHighLighter() {
return new Highlighter().setShow(true).setShowTooltip(true).setTooltipAlwaysVisible(true)
.setKeepTooltipInsideChart(true);
} | java | {
"resource": ""
} |
q166480 | ChartOptionsImpl.createHighLighterNorth | validation | private static Highlighter createHighLighterNorth() {
return new Highlighter().setShow(true).setShowTooltip(true).setTooltipAlwaysVisible(true)
.setKeepTooltipInsideChart(true).setTooltipLocation(TooltipLocations.NORTH)
.setTooltipAxes(TooltipAxes.XY_BAR).setShowMarker(true).setBringSeriesToFront(true);
} | java | {
"resource": ""
} |
q166481 | ChartOptionsImpl.createSeriesDefaultPieChart | validation | private static SeriesDefaults createSeriesDefaultPieChart() {
return new SeriesDefaults().setRenderer(SeriesRenderers.PIE)
.setRendererOptions(new PieRenderer().setShowDataLabels(true)).setShadow(true);
} | java | {
"resource": ""
} |
q166482 | ChartOptionsImpl.createDonoutSeriesDefault | validation | private static SeriesDefaults createDonoutSeriesDefault() {
return new SeriesDefaults().setRenderer(SeriesRenderers.DONUT)
.setRendererOptions(new DonutRenderer().setSliceMargin(SLICE_MARGIN).setStartAngle(START_ANGLE).setShowDataLabels(true)
.setDataLabels(DataLabels.VALUE));
} | java | {
"resource": ""
} |
q166483 | DocumentAttachmentContainer.getDocumentAttachmentList | validation | @OneToMany(targetEntity = DocumentAttachment.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "DOCUMENT_ATTACHMENT_LIST_DOC_0")
public List<DocumentAttachment> getDocumentAttachmentList() {
return this.documentAttachmentList;
} | java | {
"resource": ""
} |
q166484 | CommitteeRankingMenuItemFactoryImpl.createCommitteeeRankingMenuBar | validation | @Override
public void createCommitteeeRankingMenuBar(final MenuBar menuBar) {
initApplicationMenuBar(menuBar);
applicationMenuItemFactory.addRankingMenu(menuBar);
createCommitteeRankingTopics(menuBar.addItem(COMMITTEE_RANKING_TEXT, null, null));
} | java | {
"resource": ""
} |
q166485 | CommitteeRankingMenuItemFactoryImpl.createCommitteeRankingTopics | validation | @Override
public void createCommitteeRankingTopics(final MenuItem committeeMenuItem) {
committeeMenuItem.addItem(OVERVIEW_TEXT, VaadinIcons.GROUP, COMMAND_OVERVIEW);
final MenuItem listByTopic = committeeMenuItem.addItem(RANKING_LIST_BY_TOPIC_TEXT, VaadinIcons.GROUP, null);
final MenuItem listItem = listByTopi... | java | {
"resource": ""
} |
q166486 | CommitteeRankingMenuItemFactoryImpl.createOverviewPage | validation | @Override
public void createOverviewPage(final VerticalLayout panelContent) {
final ResponsiveRow grid = RowUtil.createGridLayout(panelContent);
createButtonLink(grid,POLITICAL_WORK_SUMMARY_TEXT,VaadinIcons.GROUP, COMMAND_DATAGRID, "Scoreboard over current member size, political days served and total assignments... | java | {
"resource": ""
} |
q166487 | PoliticianOverviewPageModContentFactoryImpl.createOverviewContent | validation | private void createOverviewContent(final VerticalLayout panelContent, final PersonData personData,
final ViewRiksdagenPolitician viewRiksdagenPolitician, final String pageId) {
LabelFactory.createHeader2Label(panelContent, OVERVIEW);
final Link createPoliticianPageLink = getPageLinkFactory().createPoliticianPag... | java | {
"resource": ""
} |
q166488 | SwedenMunicipalityData.getKommunvalkrets | validation | @OneToMany(targetEntity = SwedenMunicipalityElectionRegionData.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "KOMMUNVALKRETS_SWEDEN_MUNICI_0")
public List<SwedenMunicipalityElectionRegionData> getKommunvalkrets() {
return this.kommunvalkrets;
} | java | {
"resource": ""
} |
q166489 | BootstrapDefaultConfig.configureAuthentication | validation | private static void configureAuthentication(final String role) {
final Collection<GrantedAuthority> authorities = AuthorityUtils.createAuthorityList(role);
final Authentication authentication = new UsernamePasswordAuthenticationToken("service.impl.BootstrapDefaultConfig", "n/a", authorities);
SecurityContextHolde... | java | {
"resource": ""
} |
q166490 | ComplianceCheckResponse.setList | validation | public void setList(final List<ComplianceCheck> list) {
this.list = Collections.unmodifiableList(ListUtils.emptyIfNull(list));
} | java | {
"resource": ""
} |
q166491 | ComplianceCheckResponse.setStatusMap | validation | public void setStatusMap(final Map<Status, List<RuleViolation>> statusMap) {
this.statusMap = Collections.unmodifiableMap(MapUtils.emptyIfNull(statusMap));
} | java | {
"resource": ""
} |
q166492 | ComplianceCheckResponse.setResourceTypeMap | validation | public void setResourceTypeMap(final Map<ResourceType, List<RuleViolation>> resourceTypeMap) {
this.resourceTypeMap = Collections.unmodifiableMap(MapUtils.emptyIfNull(resourceTypeMap));
} | java | {
"resource": ""
} |
q166493 | SwedenCountyData.getKommun | validation | @OneToMany(targetEntity = SwedenMunicipalityData.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "KOMMUN_SWEDEN_COUNTY_DATA_HJ_0")
public List<SwedenMunicipalityData> getKommun() {
return this.kommun;
} | java | {
"resource": ""
} |
q166494 | PersonAssignmentElement.getUppdrag | validation | @OneToMany(targetEntity = AssignmentElement.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "UPPDRAG_PERSON_ASSIGNMENT_EL_0")
public List<AssignmentElement> getUppdrag() {
return this.uppdrag;
} | java | {
"resource": ""
} |
q166495 | DocumentProposalContainer.getProposal | validation | @ManyToOne(targetEntity = DocumentProposalData.class, cascade = {
CascadeType.ALL
})
@JoinColumn(name = "PROPOSAL_DOCUMENT_PROPOSAL_C_0")
public DocumentProposalData getProposal() {
return proposal;
} | java | {
"resource": ""
} |
q166496 | PageModeMenuCommand.getPagePath | validation | public String getPagePath() {
if (pageReference != null && !pageReference.isEmpty()) {
return page + PAGE_SEPARATOR + pageReference;
} else {
return page;
}
} | java | {
"resource": ""
} |
q166497 | RiksdagenVoteDataWorkConsumerImpl.updateBallot | validation | private void updateBallot(final String ballotId) {
try {
configureAuthentication();
updateService.updateVoteDataData(riksdagenApi.getBallot(ballotId));
} catch (final DataFailureException e) {
LOGGER.warn("Eror loading riksdagen voteData:" + ballotId + " errorMessage:", e);
} finally {
clearAuthentica... | java | {
"resource": ""
} |
q166498 | PartyChartDataManagerImpl.getMaxSizeViewRiksdagenVoteDataBallotPartySummaryDaily | validation | private List<ViewRiksdagenVoteDataBallotPartySummaryDaily> getMaxSizeViewRiksdagenVoteDataBallotPartySummaryDaily() {
initPartyMap();
final Optional<Entry<String, List<ViewRiksdagenVoteDataBallotPartySummaryDaily>>> first = partyMap.entrySet()
.stream().sorted((e1, e2) -> Integer.compare(e2.getValue().size(), ... | java | {
"resource": ""
} |
q166499 | PartyChartDataManagerImpl.initPartyMap | validation | private synchronized void initPartyMap() {
if (partyMap == null) {
final DataContainer<ViewRiksdagenVoteDataBallotPartySummaryDaily, RiksdagenVoteDataBallotPartyPeriodSummaryEmbeddedId> partyBallotSummaryDailyDataContainer = getApplicationManager()
.getDataContainer(ViewRiksdagenVoteDataBallotPartySummaryDail... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.