content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package edu.stanford.math.plex4.streams.multi;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.plex4.streams.impl.ExplicitStream;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.math.primitivelib.utility.Infinity;
public... | __label__POS | 0.990503 |
package com.github.appreciated.apexcharts.examples;
import com.github.appreciated.apexcharts.ApexCharts;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.TitleSubtitleBuilder;
import com.github.appreciated.apexcharts.examples.bar.RangedVerticalBarChart... | __label__POS | 0.660182 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
**[How To Customize BoneCP Settings Via Properties And `DataSourceBuilder`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDataSourceBuilderBoneCPKickoff)**
**Note:** The best way to tune the connection pool parameters consist in using [Flexy Pool](https://github.com/vladmihalcea/... | __label__POS | 0.963884 |
package com.github.appreciated.apexcharts.examples.radialbar;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.FillBuilder;
import com.github.appreciated.apexcharts.config.builder.Pl... | __label__POS | 0.634331 |
package com.github.appreciated.app.layout.component.appbar;
import com.github.appreciated.app.layout.component.builder.ComponentBuilder;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.orderedlayout.FlexComponent;
import com.vaadin.flow.component.orderedlayout.FlexLayout;
import java.util... | __label__POS | 0.99537 |
package edu.stanford.math.plex4.streams.multi;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
public interface AbstractMultifilteredStream<T> extends Iterable<T> {
/**
* This function retur... | __label__POS | 0.927674 |
package com.github.appreciated.apexcharts.examples.radialbar;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.PlotOptionsBuilder;
import com.github.appreciated.apexcharts.config.cha... | __label__POS | 0.998936 |
package com.github.appreciated.apexcharts.examples.areachart;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.DataLabelsBuilder;
import com.github.appreciated.apexcharts.config.buil... | __label__POS | 0.814483 |
package com.github.appreciated.apexcharts.examples.areachart;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.*;
import com.github.appreciated.apexcharts.config.chart.Type;
import com.github.appreciated.apexcharts.config.chart.builder.ZoomBuilder;
imp... | __label__POS | 0.647762 |
package com.github.appreciated.app.layout.component.appbar;
import com.github.appreciated.app.layout.webcomponents.paperbadge.PaperBadge;
import com.vaadin.flow.component.AttachEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.HasText;
import com.vaadin.flow.component.orderedlayout.Ho... | __label__POS | 0.852661 |
package edu.stanford.math.plex4.streams.multi;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.plex4.streams.impl.ExplicitStream;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.math.primitivelib.autogen.array.DoubleArray... | __label__POS | 0.999814 |
package com.github.appreciated.app.layout.component.appbar;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.contextmenu.ContextMenu;
import com.vaadin.flow.component.contextmenu.MenuItem;
... | __label__POS | 0.669053 |
package com.apress.springrecipes.board;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
@Component
class TodoInitializer {
private final TodoService messageBoardService;
TodoInitializer(TodoService messageBoardService) {
this.messageBoardService = messageBoar... | __label__POS | 0.92755 |
package com.github.appreciated.apexcharts.examples.bar;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.DataLabelsBuilder;
import com.github.appreciated.apexcharts.config.builder.Pl... | __label__POS | 0.955151 |
package edu.stanford.math.plex4.streams.multi;
import java.util.Iterator;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import gnu.trove.THashMap;
p... | __label__POS | 0.910575 |
package com.github.appreciated.apexcharts.examples.bar;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.*;
import com.github.appreciated.apexcharts.config.chart.Type;
import com.github.appreciated.apexcharts.config.plotoptions.builder.BarBuilder;
impo... | __label__POS | 0.984041 |
package com.apress.springrecipes.board;
import java.sql.PreparedStatement;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springfr... | __label__POS | 0.87436 |
package com.github.appreciated.apexcharts.examples.donut;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.LegendBuilder;
import com.github.appreciated.apexcharts.config.builder.Resp... | __label__POS | 0.987753 |
package com.apress.springrecipes.board.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.encoding.LdapShaPasswordEncoder;
import org.springframework.security.config.annotation.authentication.builders.Aut... | __label__POS | 0.853505 |
/**
*
*/
package edu.stanford.math.plex4.homology.zigzag;
public class IntervalDescriptor<T, G> {
protected final T start;
protected final G generator;
protected final int dimension;
public IntervalDescriptor(T start, int dimension, G generator) {
super();
this.start = start;
this.dimension = dimension... | __label__POS | 0.992322 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersistenceAlgorithm;
import edu.stanf... | __label__POS | 0.879723 |
package com.github.appreciated.apexcharts.examples.pie;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.LegendBuilder;
import com.github.appreciated.apexcharts.config.builder.Respon... | __label__POS | 0.970679 |
**[How To Map Java `enum` To Database Via `AttributeConverter`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootEnumAttributeConverter)**
**Description:** This application maps a Java `enum` via `AttributeConverter`. In other words, it maps the `enum` values `HORROR`, `ANTHOLOGY` ... | __label__POS | 0.661869 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.HashMap;
import java.util.Map;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanfo... | __label__POS | 0.77673 |
package com.github.appreciated.apexcharts.examples.locale;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.LegendBuilder;
import com.github.appreciated.apexcharts.config.builder.Loc... | __label__POS | 0.921953 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.primitivelib.au... | __label__POS | 0.981999 |
package com.github.appreciated.app.layout.component.menu.left.items;
import com.github.appreciated.app.layout.component.menu.RoundImage;
import com.vaadin.flow.component.Composite;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
/**
* A simple container com... | __label__POS | 0.943069 |
package com.github.appreciated.app.layout.component.menu.left.items;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.icon.Icon;
/**
* A wrapper class for {@link LeftClickableItem}.
*/
p... | __label__POS | 0.947389 |
package edu.stanford.math.plex4.homology.zigzag;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.ho... | __label__POS | 0.701898 |
package com.github.appreciated.apexcharts.examples.line;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.*;
import com.github.appreciated.apexcharts.config.chart.Type;
import com.github.appreciated.apexcharts.config.chart.builder.ZoomBuilder;
import c... | __label__POS | 0.920456 |
package edu.stanford.math.plex4.homology.nonautogen;
@Deprecated
public class DisjointSetSystem {
int capacity = 16;
int size = 0;
int[] parents = null;
int[] ranks = null;
public DisjointSetSystem(int size) {
while (capacity < size) {
capacity *= 2;
}
this.size = size;
this.parents = new int[capa... | __label__POS | 0.990452 |
package com.github.appreciated.app.layout.component.menu.left.items;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
/**
* A wrapper class for a menu element that is a {@link LeftSectionItem}.
*/
public class L... | __label__POS | 0.993716 |
package com.apress.springrecipes.board;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
@Component
class TodoInitializer {
private final TodoService messageBoardService;
TodoInitializer(TodoService messageBoardService) {
this.messageBoardService = messageBoar... | __label__POS | 0.92755 |
package edu.stanford.math.plex4.homology.nonautogen;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersistenceAl... | __label__POS | 0.765197 |
package com.github.appreciated.apexcharts.examples.syncronised;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.GridBuilder;
import com.github.appreciated.apexcharts.config.builder.... | __label__POS | 0.796392 |
package com.github.appreciated.app.layout.component.menu.left.items;
import com.github.appreciated.app.layout.component.menu.MenuBadgeComponent;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.compo... | __label__POS | 0.898594 |
**[How To Implement Advanced Search Via `Specification`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootSearchViaSpecifications)**
**Description:** This application is an example of implementing an advanced search via `Specification` API. Mainly, you can give the search filters t... | __label__POS | 0.816703 |
package edu.stanford.math.plex4.homology.filtration;
import java.util.Arrays;
/**
* <p>
* This class implements a conversion between filtration values and filtration
* indices that is given as an argument at instantiation of the converter. The
* given filtration values array will be sorted.
* </p>
*
* @author... | __label__POS | 0.997548 |
package com.apress.springrecipes.board;
import java.sql.PreparedStatement;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springfr... | __label__POS | 0.87436 |
package com.github.appreciated.apexcharts.examples.syncronised;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.GridBuilder;
import com.github.appreciated.apexcharts.config.builder.... | __label__POS | 0.7893 |
class DNode {
constructor(area) {
this.left = false
this.right = false
this.area = area
}
forEachArea(f) {
f(this.area)
if (this.left) {
this.left.forEachArea(f)
}
if (this.right) {
this.right.forEachArea(f)
}
}
}... | __label__POS | 0.611022 |
package edu.stanford.math.plex4.homology.filtration;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.primitivelib.autogen.functional.ObjectObjectFunction;
/**
* This interface defines a mapping betw... | __label__POS | 0.989473 |
<!--
Created by IntelliJ IDEA.
User: iulianacosmina
Date: 2019-07-14
Time: 11:43
-->
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" th:with="lang=${#locale.language}" th:lang="${lang}" >
<head th:fragment="pageTitle(title)">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link ... | __label__POS | 0.700353 |
package edu.stanford.math.plex4.homology.filtration;
/**
* This class defines a filtration value conversion which simply defines the filtration
* value to be equal to the filtration index. (i.e. f_i = i)
*
* @author Andrew Tausz
*
*/
public class IdentityConverter extends FiltrationConverter {
/**
* This ... | __label__POS | 0.996441 |
package edu.stanford.math.plex4.homology.filtration;
/**
* <p>This class implements a conversion between filtration values and filtration
* indices that is linear and increasing. If we let f_k be the filtration value
* at index k and N is the number of divisions, then this mapping satisfies:
* <ul>
* <li>f_k = ... | __label__POS | 0.968586 |
package com.github.appreciated.app.layout.component.menu.left.builder;
import com.github.appreciated.app.layout.component.builder.AppLayoutBuilder;
import com.github.appreciated.app.layout.component.builder.ComponentBuilder;
import com.github.appreciated.app.layout.component.menu.left.LeftSubmenu;
import com.vaadin.fl... | __label__POS | 0.934416 |
/**
*
*/
package edu.stanford.math.plex4.homology.filtration;
/**
* This class implements the FiltrationConverter interface for static complexes.
* It simply sets all of the filtration values and indices to 0.
*
* @author Andrew Tausz
*
*/
public class StaticConverter extends FiltrationConverter {
/**
*... | __label__POS | 0.983765 |
**[Offset Pagination - Trigger `SELECT COUNT` Subquery And Return `List<entity>` Via Extra Column](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootListEntityOffsetPaginationExtraColumn)**
**Description:** This application fetches data as `List<entity>` via Spring Boot offset pagin... | __label__POS | 0.7529 |
import Combine
import Foundation
class OrderController: ObservableObject {
@Published private(set) var order: Order
private let orderStoring: OrderStoring
init(orderStoring: OrderStoring = UserDefaults.standard) {
self.orderStoring = orderStoring
order = orderStoring.getOrder()
}
... | __label__POS | 0.75557 |
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Comparator;
public class SimplexPairComparator implements Comparator<SimplexPair> {
private static final SimplexComparator simplexComparator = SimplexComparator.getInstance();
/**
* This is the single instantiation of the class.
*/
priv... | __label__POS | 0.999518 |
package com.github.appreciated.app.layout.component.menu.top.item;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.icon.Icon;
/**
* A wrap... | __label__POS | 0.920774 |
package edu.stanford.math.plex4.homology.chain_basis;
import edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair;
public class SimplexPair extends ObjectObjectPair<Simplex, Simplex> implements PrimitiveBasisElement {
public SimplexPair(Simplex first, Simplex second) {
super(first, second);
}
public S... | __label__POS | 0.997922 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package com.github.appreciated.apexcharts.config.builder;
import com.github.appreciated.apexcharts.config.States;
import com.github.appreciated.apexcharts.config.states.Active;
import com.github.appreciated.apexcharts.config.states.Hover;
import com.github.appreciated.apexcharts.config.states.Normal;
public class Sta... | __label__POS | 0.726814 |
package com.apress.springrecipes.board;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
@Component
class TodoInitializer {
private final TodoService messageBoardService;
TodoInitializer(TodoService messageBoardService) {
this.messageBoardService = messageBoar... | __label__POS | 0.92755 |
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Arrays;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
import edu.stanford.math.primitivelib.utility.CRC;
/**
* <p>This class implements the functionality of a simplex. A simplex
* is an n-dimensional polytope which is the con... | __label__POS | 0.972859 |
/**
*
*/
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Arrays;
import java.util.Collection;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
import edu.stanford.math.plex4.utility.ExceptionUtility;
import edu.stanford.math.primitivelib.utility.CRC;
/**
* This class implem... | __label__POS | 0.77482 |
/**
*
*/
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.utility.HomologyUtility;
/**
* This class defines the standard ordering on the Simplex class and
* implements the Comparator<Simplex> interface. The ordering of the
* simplices is... | __label__POS | 0.963711 |
/**
*
*/
package edu.stanford.math.plex4.homology.chain_basis;
import java.util.Comparator;
/**
* This class provides functionality for comparing two cells within a CW complex.
* The comparison mechanism first compares the dimensions of the cells. If the
* dimensions are equal then it looks at the cellId value... | __label__POS | 0.988693 |
package com.apress.springrecipes.board;
import java.sql.PreparedStatement;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springfr... | __label__POS | 0.87436 |
package com.apress.springrecipes.board.web;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.we... | __label__POS | 0.742223 |
package com.github.appreciated.apexcharts.config.chart;
import com.github.appreciated.apexcharts.config.annotations.AnnotationLabel;
public class PointAnnotations {
private Double x;
private Double y;
private Double yAxisIndex;
private Double seriesIndex;
private Marker marker;
private Annotat... | __label__POS | 0.602266 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import edu.stanford.math.plex4.utility.ComparisonUtility;
impo... | __label__POS | 0.957325 |
/*
* Copyright 2013 APPNEXUS INC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | __label__POS | 0.87257 |
package com.apress.springrecipes.board;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
@Component
class TodoInitializer {
private final TodoService messageBoardService;
TodoInitializer(TodoService messageBoardService) {
this.messageBoardService = messageBoar... | __label__POS | 0.9331 |
**[Offset Pagination - Trigger `SELECT COUNT` Subquery And Return `Page<projection>` That Maps Entities And The Total Number Of Records Via Projection](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootPageEntityOffsetPaginationProjection)**
**Description:** This application fetches... | __label__POS | 0.759367 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AnnotatedBarcodeCollection<T extends Comparable<T>, G> extends PersistenceInvariantDescriptor<Interval<T>, G> {
protected boolean useLeftClosedDefault = true;
protected boolean useR... | __label__POS | 0.818622 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package com.appnexus.opensdk.utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
public class JsonUtil {
// also returns null if array is empty
public static JSONArray getJSONArray(JSONOb... | __label__POS | 0.998956 |
package com.apress.springrecipes.board;
import java.sql.PreparedStatement;
import java.util.List;
import javax.sql.DataSource;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.support.GeneratedKeyHolder;
import org.springfr... | __label__POS | 0.87436 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import edu.stanford.math.primitivelib.autogen.pair.ObjectObjectPair;
import edu.stanford.math.primitivelib.utility.Infinity;
public class BarcodeUtility {
... | __label__POS | 0.998698 |
package edu.stanford.math.plex4.homology.barcodes;
import java.util.List;
public class BarcodeCollection<T extends Comparable<T>> extends AnnotatedBarcodeCollection<T, Object> {
/**
* This function adds the specified finite interval (start, end} at the
* supplied dimension. The curly braces are meant to indicat... | __label__POS | 0.921732 |
package com.apress.springrecipes.board.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web... | __label__POS | 0.951881 |
package com.github.appreciated.apexcharts.config.locale;
import java.util.List;
public class Options {
private List<String> months;
private List<String> shortMonths;
private List<String> days;
private List<String> shortDays;
private Toolbar toolbar;
public Options() {
}
public List<... | __label__POS | 0.862942 |
package com.appnexus.opensdk.utils;
//See http://www.w3.org/TR/calendar-api/#idl-def-CalendarRepeatRule
//Question marks denote optional parameters.
public class W3CRepeatRule {
//Repeat rule?
private String frequency;//?
private int interval;//?
private String expires;//?
private String[] exceptio... | __label__POS | 0.895562 |
**[How To Shuffle Small Result Sets](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootOrderByRandom)**
**Description:** This application is an example of shuffling small results sets. **DO NOT USE** this technique for large results sets, since is extremely expensive.
**Key points... | __label__POS | 0.881498 |
package edu.stanford.math.plex4.homology.barcodes;
import java.io.Serializable;
//import edu.stanford.math.primitivelib.utility.Infinity;
/**
* This class implements the functionality of an interval of values of any comparable type. It supports
* finite, semi-infinite, and infinite intervals with open or closed en... | __label__POS | 0.997726 |
**[How To Map `@ManyToOne` Relationship To A SQL Query Via The Hibernate `@JoinFormula`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootJoinFormula)**
**Description:** This application is an example of mapping the JPA `@ManyToOne` relationship to a SQL query via the Hibernate `@J... | __label__POS | 0.969163 |
// <copyright file="MetricsReportingFixture.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using App.Metrics.Counter;
using App.Metrics.Facts.TestHelpers;
using App.Metrics.FactsCommon;
using App.Metrics.Filtering;
using App.Metric... | __label__POS | 0.603396 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package edu.stanford.math.plex4.homology.utility;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIterator;
/**
* This class contains static utility functions to aid
* the homology computations.
*
* @author Andrew Tausz
*
*/
public class HomologyU... | __label__POS | 0.998789 |
**[Log Slow Queries Via Hibernate 5.4.5](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootLogSlowQueries545)**
**Description:** This application is a sample of logging only slow queries via Hibernate 5.4.5, `hibernate.session.events.log.LOG_QUERIES_SLOWER_THAN_MS` property. A slow q... | __label__POS | 0.96123 |
package com.apress.springrecipes.reactive.court;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
@Service
public cla... | __label__POS | 0.969135 |
package edu.stanford.math.plex4.homology.interfaces;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
/**
* This interface defines the functionality of a persistence algorithm. Namely it is a mapping
* which takes a filtere... | __label__POS | 0.997983 |
package edu.stanford.math.plex4.homology.interfaces;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
/**
* This interface defines the functionality of a persistence algorithm that also produces generators
* for ea... | __label__POS | 0.873888 |
import { EOL } from 'os';
import { IFileTreeItem, IFormatOptions } from './interface';
import { defaultCharset } from '../utils';
function createTreeString(start: string, fill: string, size = 3) {
let result = '';
for (let i = 0; i < size; i++) {
if (i === 0) {
result += start;
} else {
result ... | __label__POS | 0.757248 |
package edu.stanford.math.plex4.homology.zigzag.bootstrap;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import edu.stanford.math.primitivelib.autogen.formal_sum.IntAlgebraicFreeModule;
import edu.stanford.math.primitivelib.autogen.formal_sum.IntSparseFormalSum;
import edu.stanford.math.pr... | __label__POS | 0.998989 |
package edu.stanford.math.plex4.homology.zigzag.bootstrap;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
im... | __label__POS | 0.693336 |
package com.apress.springrecipes.reactive.court;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springfra... | __label__POS | 0.983497 |
package edu.stanford.math.plex4.homology.zigzag.bootstrap;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import edu.stanford.math.plex4.homology.barcodes.Inter... | __label__POS | 0.854371 |
package com.apress.prospring6.twenty.boot.i18n;
import org.springframework.context.i18n.LocaleContext;
import org.springframework.context.i18n.SimpleLocaleContext;
import org.springframework.http.HttpCookie;
import org.springframework.http.ResponseCookie;
import org.springframework.util.CollectionUtils;
import org.spr... | __label__POS | 0.716724 |
// <copyright file="ApdexScoreTestFixture.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using App.Metrics.Apdex;
using App.Metrics.Facts.Apdex;
using App.Metrics.FactsCommon;
usi... | __label__POS | 0.617819 |
// <copyright file="MetricsWithSamplesFixture.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using App.Metrics.Counter;
using App.Metrics.FactsCommon.Fixtures;
using App.Metrics.Gauge;
using App.Metrics.Histogram;
using App.Metrics.Meter;
using A... | __label__POS | 0.609956 |
package com.github.appreciated.example.notification;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
@Route(value = "", layout = MainAppLayout.class)
public class View1 extends VerticalLayout {
public View1() {
... | __label__POS | 0.895832 |
package edu.stanford.math.plex4.graph.io;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.io.ObjectWriter;
import edu.stanford.math.primitivelib.autogen.pair.IntIntPair;
public class Gra... | __label__POS | 0.912675 |
**[Entity Inside Spring Projection](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDtoEntityViaProjection)**
**Description:** If, for some reason, you need an entity in your Spring projection (DTO), then this application shows you how to do it via an example. In this case, th... | __label__POS | 0.881178 |
**[How To Efficiently Finding Top N Rows Of Every Group](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootTopNRowsPerGroup)**
<b><a href="https://persistencelayer.wixsite.com/springboot-hibernate/post/how-to-efficiently-finding-top-n-rows-of-every-group">If you prefer to read it as... | __label__POS | 0.859008 |
package edu.stanford.math.plex4.graph.random;
/**
* Implements a binary tree of nodes labeled 1,2,...,n.
*
* @author Tim Harrington
* @date Feb 8, 2009
*/
public class BinaryTree {
/*
* In binary there is a structure to the labels:
*
* 1
* / \
* / \
... | __label__POS | 0.991218 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.