content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
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.graph.random;
import java.text.DecimalFormat;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
public class StochasticBlockmodel extends GraphInstanceGenerator {
private static final long serialVersionUID = -49928667... | __label__POS | 0.996439 |
// <copyright file="CounterValueTests.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using App.Metrics.Counter;
using App.Metrics.Gauge;
using FluentAssertions;
using Xunit;
namespace App.Metrics.Facts.Counter
{
public class Co... | __label__POS | 0.936297 |
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.primitivelib.autogen.array.DoubleArrayMath;
public class TorusGraph extends ManifoldGraph {
private static final long serialVersionUID = 101044478862814881L;
public TorusGraph(int size, int dimension, int k) {
super(size, dimension, k);
}
... | __label__POS | 0.997029 |
package com.github.appreciated.example.theme;
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.893551 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
// <copyright file="CounterValueSetItemTests.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using App.Metrics.Counter;
using FluentAssertions;
using Xunit;
namespace App.Metrics.Facts.Counter
{
public class CounterValueSetItemTests
{
... | __label__POS | 0.967289 |
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
import edu.stanford.math.primitivelib.autogen.array.DoubleArrayQuery;
import edu.stanford.math.primitivelib.autogen.array.IntArrayQuery;
/**
* This class i... | __label__POS | 0.98123 |
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.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
import edu.stanford.math.primitivelib.autogen.array.IntArrayManipulation;
import edu.stanford.math.primitivelib.autogen.array.IntArrayMath;
/**
* Implement... | __label__POS | 0.99643 |
package com.github.appreciated.example.theme;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import java.util.ArrayList;
import java.util.List;
import java.... | __label__POS | 0.96144 |
**[How To Create `Specification` Query Fetch Joins](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootSpecificationQueryFetchJoins)**
**Description:** This application contains two examples of how to define `JOIN` in `Specification` to emulate JPQL join-fetch operations.
**Key point... | __label__POS | 0.960046 |
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
/**
* Makes a random hierarchical graph by considering points P = {1,2,...,n} and
* partitions C_{i,j}, where j is the granularity. C_{i,j+1} refines C_{i... | __label__POS | 0.982925 |
package com.github.appreciated.example.theme;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* If you choose the route properly the addon supports back navigation. Also if the Subcontent does not appear in the ... | __label__POS | 0.885852 |
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
import edu.stanford.math.primitivelib.autogen.array.IntArrayMath;
/**
* Implements a Barabasi-Albert (BA) random graph model.
*
* From Wikipedia: The Ba... | __label__POS | 0.80643 |
// <copyright file="MetricSetItemTests.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using FluentAssertions;
using Xunit;
namespace App.Metrics.Facts.Tagging
{
public class MetricSetItemTests
{
[Fact]
publ... | __label__POS | 0.974319 |
package edu.stanford.math.plex4.graph.random;
import java.io.Serializable;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.graph.UndirectedListGraph;
/**
* This class abstracts the construction of graphs.
*
* @author Andrew Tausz
*
*/
public abstract class GraphInst... | __label__POS | 0.933597 |
package com.apress.springrecipes.board.security;
import org.springframework.security.access.expression.SecurityExpressionOperations;
import org.springframework.security.authentication.AuthenticationTrustResolver;
import org.springframework.security.authentication.AuthenticationTrustResolverImpl;
import org.springframe... | __label__POS | 0.996723 |
// <copyright file="MetricTagsTests.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.Counter;
using App.Metrics.FactsCommon.Fixtures;
using App.Metrics.Histogram;... | __label__POS | 0.868638 |
package com.github.appreciated.apexcharts.config.plotoptions.builder;
import com.github.appreciated.apexcharts.config.plotoptions.Treemap;
import com.github.appreciated.apexcharts.config.plotoptions.xmap.ColorScale;
public class TreemapBuilder {
private Boolean enableShades;
private Double shadeIntensity;
... | __label__POS | 0.608313 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows;
namespace Drawing
{
public class DrawingCanvas : Panel
{
private List<Visual> visuals = new List<Visual>();
protected override Visual GetVisualChi... | __label__POS | 0.850051 |
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
/**
* @author Tim Harrington
* @date Apr 1, 2009
*
*/
public class BinaryTreeGraph extends GraphInstanceGenerator {
private static final long serialVersionUID = 379015239255681800L;
protected int n;
pu... | __label__POS | 0.974806 |
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.plotoptions.builder;
import com.github.appreciated.apexcharts.config.plotoptions.Radar;
import com.github.appreciated.apexcharts.config.plotoptions.radar.Polygons;
public class RadarBuilder {
private Double size;
private Double offsetX;
private Double offse... | __label__POS | 0.84695 |
package com.github.appreciated.spring;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import java.util.ArrayList;
import java.util.List;
import java.util.Ra... | __label__POS | 0.961751 |
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
/**
* Class that represents a graph with a circle "shape"
*
* @author Tim Harrington
* @date Dec 20, 2008
*/
public class CircleGraph extends GraphIns... | __label__POS | 0.997875 |
package com.github.appreciated.spring;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* If you choose the route properly the addon supports back navigation. Also if the Subcontent does not appear in the Menu, t... | __label__POS | 0.887135 |
package edu.stanford.math.plex4.graph.random;
import java.util.Random;
import cern.jet.random.AbstractDistribution;
import cern.jet.random.Distributions;
import cern.jet.random.Uniform;
import cern.jet.random.engine.RandomEngine;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import gnu.trove.TIntArray... | __label__POS | 0.727395 |
package com.github.appreciated.apexcharts.config.plotoptions.builder;
import com.github.appreciated.apexcharts.config.plotoptions.Heatmap;
import com.github.appreciated.apexcharts.config.plotoptions.xmap.ColorScale;
public class HeatmapBuilder {
private Double radius;
private Boolean enableShades;
private... | __label__POS | 0.77644 |
package com.github.appreciated.apexcharts.config.plotoptions.bar;
import java.util.Arrays;
import java.util.List;
public class Colors {
private List<Ranges> ranges;
private List<String> backgroundBarColors;
private Double backgroundBarOpacity;
private Double backgroundBarRadius;
public Colors() {... | __label__POS | 0.70606 |
package com.github.appreciated.example.footer;
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.896077 |
package edu.stanford.math.plex4.graph.random;
import java.text.DecimalFormat;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
/**
* Implements the Erdos-Renyi G(n,p) model.
*
* From Wikipedia: In the G(n, p) model, a graph is thought to be const... | __label__POS | 0.930483 |
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 |
**[How To Define A Relationship in an `@Embeddable` Composite Primary Key](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootCompositeKeyEmbeddableMapRel)**
**Description:** This application is a proof of concept of how to define a relationship in an `@Embeddable` composite key. The ... | __label__POS | 0.814856 |
/**
*
*/
package edu.stanford.math.plex4.graph.random;
/**
* @author Tim Harrington
* @date May 6, 2009
*
*/
public class HierarchicalERGraph extends BinaryHierarchicalGraph {
private static final long serialVersionUID = 3491552989916440763L;
protected int rootedGraphSize;
protected int hgLeafCount;
prote... | __label__POS | 0.937781 |
package com.github.appreciated.example.footer;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* If you choose the route properly the addon supports back navigation. Also if the Subcontent does not appear in the... | __label__POS | 0.887714 |
/**
*
*/
package edu.stanford.math.plex4.graph.random;
import java.util.ArrayList;
import java.util.Formatter;
import java.util.List;
import java.util.Locale;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
/**
* Makes a clustered graph by conne... | __label__POS | 0.987164 |
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.config.plotoptions.radialbar.builder;
import com.github.appreciated.apexcharts.config.chart.DropShadow;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.Track;
public class TrackBuilder {
private Boolean show;
private Double startAngle;
privat... | __label__POS | 0.650956 |
/**
*
*/
package edu.stanford.math.plex4.graph.random;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.utility.RandomUtility;
/**
* Generates n random points in [0,1]^d and connects an edge between points x
* and y if d(x,y)<r.
*
* @author Tim Harrington
* @date M... | __label__POS | 0.969117 |
package com.github.appreciated.apexcharts.config.plotoptions.radialbar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.Value;
import com.github.appreciated.apexcharts.helper.Formatter;
public class ValueBuilder {
private Boolean show;
private String fontSize;
private String ... | __label__POS | 0.669428 |
package com.github.appreciated.apexcharts.config.plotoptions.radialbar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.Name;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.RadialBarDataLabels;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.To... | __label__POS | 0.746856 |
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.954283 |
package edu.stanford.math.plex4.graph.utility;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.graph.AbstractWeightedUndirectedGraph;
import edu.stanford.math.plex4.streams.impl.ExplicitSimplexStream;
import edu.stanford.math.plex4.streams.impl.GeometricSimplexStream;
impor... | __label__POS | 0.999577 |
package com.github.appreciated.example.plain;
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.896518 |
**[`LEFT JOIN FETCH`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootLeftJoinFetch)**
**See also:**
- [How To Avoid LazyInitializationException Via JOIN FETCH](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootJoinFetch)
- [JOIN VS. JOIN FETCH](h... | __label__POS | 0.96925 |
package com.github.appreciated.apexcharts.config.plotoptions.radialbar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.Total;
import com.github.appreciated.apexcharts.helper.Formatter;
public class TotalBuilder {
private Boolean show;
private String label;
private String col... | __label__POS | 0.823986 |
/**
*
*/
package edu.stanford.math.plex4.graph.metric;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.graph.utility.GraphUtility;
import edu.stanford.math.plex4.metric.impl.ExplicitMetricSpace;
import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace;
/*... | __label__POS | 0.98467 |
**[How To Customize ViburDBCP Settings Via Properties And `DataSourceBuilder`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDataSourceBuilderViburDBCPKickoff)**
**Note:** The best way to tune the connection pool parameters consist in using [Flexy Pool](https://github.com/vladmih... | __label__POS | 0.963978 |
package com.github.appreciated.apexcharts.config.plotoptions.radialbar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.radialbar.Name;
public class NameBuilder {
private Boolean show;
private String fontSize;
private String color;
private Double offsetY;
private NameBuilder()... | __label__POS | 0.906739 |
package com.github.appreciated.example.plain;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import java.util.ArrayList;
import java.util.List;
import java.... | __label__POS | 0.96197 |
package edu.stanford.math.plex4.metric.utility;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace;
import edu.stanford.math.plex4.metric.interfaces.AbstractObjectMetricSpace;
import edu.stanford.math.plex4.metric.interfa... | __label__POS | 0.996597 |
package com.github.appreciated.example.plain;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* If you choose the route properly the addon supports back navigation. Also if the Subcontent does not appear in the ... | __label__POS | 0.88804 |
### Examples
It's our goal to create a wide variety of example of how Tether
can be used. Here's what we have so far, please send a PR with
any examples you might create.
#### Beginner
- [simple](../../examples/simple): A simple example to get you started
- [out-of-bounds](../../examples/out-of-bounds): How to hide... | __label__POS | 0.941365 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Data;
using System.Globalization;
namespace DataBinding
{
public class PriceRangeProductGrouper : IValueConverter
{
public int GroupInterval
{
get;
set;
}
public obje... | __label__POS | 0.814263 |
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 |
package com.github.appreciated.example.annotation;
import com.github.appreciated.app.layout.annotations.Caption;
import com.github.appreciated.app.layout.annotations.Icon;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.icon.VaadinIcon;
import com.vaadin.flow.component.orderedlayout.V... | __label__POS | 0.700909 |
package edu.stanford.math.plex4.metric.interfaces;
import gnu.trove.TIntHashSet;
/**
* This interface defines the functionality of a metric space with various querying
* capabilities.
*
* @author Andrew Tausz
*
* @param <T> the type of the points in the metric space
*/
public interface AbstractSearchableMet... | __label__POS | 0.995792 |
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 com.github.appreciated.apexcharts.config.plotoptions.radar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.polygons.Fill;
import com.github.appreciated.apexcharts.config.plotoptions.radar.Polygons;
import java.util.List;
public class PolygonsBuilder {
private List<String> strokeColor... | __label__POS | 0.941159 |
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.example.annotation;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* If you choose the route properly the addon supports back navigation. Also if the Subcontent does not appear in... | __label__POS | 0.887221 |
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Compone... | __label__POS | 0.67417 |
package com.github.appreciated.apexcharts.config.plotoptions.bar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.bar.Colors;
import com.github.appreciated.apexcharts.config.plotoptions.bar.Ranges;
import java.util.Arrays;
import java.util.List;
public class ColorsBuilder {
private List<Range... | __label__POS | 0.800451 |
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.946874 |
package edu.stanford.math.plex4.metric.impl;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import edu.stanford.math.primitivelib.autogen.pair.ObjectDoublePair;
/**
* <p>This class is used for holding the set of k-indices with the lowest ranks or values.
* It is used by adding elem... | __label__POS | 0.962844 |
package com.github.appreciated.apexcharts.config.plotoptions.bar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.bar.Style;
public class StyleBuilder {
private String color;
private String fontSize;
private String fontFamily;
private String weight;
private StyleBuilder() {
... | __label__POS | 0.896125 |
<?php
namespace Approached\LaravelImageOptimizer;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Approached\LaravelImageOptimizer\Middleware\AutoImageOptimizer;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
/**
* Register the service provider.
*
* @return void
... | __label__POS | 0.735265 |
package com.github.appreciated.apexcharts.config.plotoptions.bar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.bar.Style;
import com.github.appreciated.apexcharts.config.plotoptions.bar.Total;
public class TotalBuilder {
private boolean enabled;
private String formatter;
private Do... | __label__POS | 0.748676 |
package com.github.appreciated.example.search;
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.895009 |
**[How To Delay Connection Acquisition As Needed (Hibernate 5.2.10)](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDelayConnection)**
**Description:** This is a Spring Boot example that exploits Hibernate 5.2.10 capability of delaying the connection acquisition as needed. By defa... | __label__POS | 0.612204 |
package com.github.appreciated.apexcharts.config.plotoptions.bar.builder;
import com.github.appreciated.apexcharts.config.plotoptions.bar.DataLabels;
import com.github.appreciated.apexcharts.config.plotoptions.bar.Total;
public class DataLabelsBuilder {
private String position;
private Integer maxItems;
p... | __label__POS | 0.847071 |
<?php
class ConvertJPGTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->originalFile = __DIR__.'/files/testimage.jpg';
$this->compressedFile = $temp_file = sys_get_temp_dir().'/php_image_optimizer.jpg';
copy($this->originalFile, $this->compressedFile);
... | __label__POS | 0.982595 |
package edu.stanford.math.plex4.metric.impl;
import java.util.List;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace;
import edu.stanford.math.primitivelib.utility.Infinity;
import gnu.trove.TIntHashSet;
/**
* This class implements the AbstractIntMetricSpace interface. The distances be... | __label__POS | 0.954043 |
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 |
package edu.stanford.math.plex4.metric.impl;
import java.util.List;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace;
import gnu.trove.TIntHashSet;
/**
* This class implements the AbstractSearchableMetricSpace interface over type T. It stores the
* elements of the metric space as an a... | __label__POS | 0.995795 |
<?php
class MimeTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->originalFile = __DIR__.'/files/mime-testimage.png'; // jpg mime type
$this->compressedFile = $temp_file = sys_get_temp_dir().'/php_image_optimizer.PNG';
copy($this->originalFile, $this->co... | __label__POS | 0.91884 |
package com.appnexus.opensdk.mediatedviews;
import android.app.Activity;
import android.os.Handler;
import android.os.Looper;
import com.appnexus.opensdk.TargetingParameters;
import com.appnexus.opensdk.utils.StringUtil;
import com.smartadserver.android.library.model.SASAdPlacement;
import com.smartadserver.android.l... | __label__POS | 0.626841 |
<?php
class JpegOptimTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->app['config']->set('imageoptimizer.options.jpegoptim_options', ['-m80']);
// dd(config('imageoptimizer.options.jpegoptim_options'));
$this->originalFile = __DIR__.'/files/testimage.jp... | __label__POS | 0.978893 |
<?php
class ConvertPNGTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->originalFile = __DIR__.'/files/testimage.png';
$this->compressedFile = $temp_file = sys_get_temp_dir().'/php_image_optimizer.png';
copy($this->originalFile, $this->compressedFile);
... | __label__POS | 0.983447 |
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 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package com.github.appreciated.example.theme;
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.893551 |
package com.github.appreciated.apexcharts.config.plotoptions.pie.builder;
import com.github.appreciated.apexcharts.config.plotoptions.pie.Labels;
import com.github.appreciated.apexcharts.config.plotoptions.pie.Name;
import com.github.appreciated.apexcharts.config.plotoptions.pie.Total;
import com.github.appreciated.ap... | __label__POS | 0.609925 |
package com.github.appreciated.apexcharts.config.plotoptions.pie.builder;
import com.github.appreciated.apexcharts.config.plotoptions.pie.Total;
import com.github.appreciated.apexcharts.helper.Formatter;
public class TotalBuilder {
private Boolean show;
private String label;
private String color;
priv... | __label__POS | 0.820162 |
<?php
class CapitalizedTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->originalFile = __DIR__.'/files/capitalized.JPG';
$this->compressedFile = $temp_file = sys_get_temp_dir().'/php_image_optimizer.JPG';
copy($this->originalFile, $this->compressedFile)... | __label__POS | 0.936453 |
<?php
class TestCase extends Orchestra\Testbench\TestCase
{
protected function getPackageProviders($app)
{
return ['Approached\LaravelImageOptimizer\ServiceProvider'];
}
protected function printFileInformation($filepath)
{
fwrite(STDOUT, 'File: '.$filepath.PHP_EOL);
fwrite(... | __label__POS | 0.996206 |
package com.github.appreciated.apexcharts.config.plotoptions.pie.builder;
import com.github.appreciated.apexcharts.config.plotoptions.pie.Name;
public class
NameBuilder {
private Boolean show;
private String fontSize;
private String fontFamily;
private String color;
private Double offsetY;
pr... | __label__POS | 0.836321 |
package com.github.appreciated.example.theme;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import java.util.ArrayList;
import java.util.List;
import java.... | __label__POS | 0.96144 |
<?php
class ConvertGIFTest extends TestCase
{
public function setUp()
{
parent::setUp();
$this->originalFile = __DIR__.'/files/testimage.gif';
$this->compressedFile = $temp_file = sys_get_temp_dir().'/php_image_optimizer.gif';
copy($this->originalFile, $this->compressedFile);
... | __label__POS | 0.98296 |
package edu.stanford.math.plex4.metric.landmark;
import java.util.List;
import edu.stanford.math.plex4.metric.impl.TruncatedPriorityQueue;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace;
import edu.stanford.math.plex4.utility.ExceptionUtility;
import edu.stanford.math.primitivelib.util... | __label__POS | 0.952636 |
package edu.stanford.math.plex4.metric.landmark;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace;
import edu.stanford.math.plex4.utility.RandomUtility;
import edu.stanford.math.primitivelib.utility.Infinity;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIterator;
/**
* This class ... | __label__POS | 0.61466 |
**[How To Define An Association That Reference `@NaturalId`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootReferenceNaturalId)**
**Description:** This is a SpringBoot application that defines a `@ManyToOne` relationship that doesn't reference a primary key column. It references ... | __label__POS | 0.738293 |
/**
*
*/
package edu.stanford.math.plex4.metric.landmark;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearchableMetricSpace;
import edu.stanford.math.plex4.utility.RandomUtility;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntIterator;
/**
* This class defines a landmark set in a finite metric sp... | __label__POS | 0.994319 |
<?php
namespace Approached\LaravelImageOptimizer\Middleware;
use Closure;
class AutoImageOptimizer
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
*
* @return mixed
*/
public function handle($request, Closure $next)
... | __label__POS | 0.999353 |
package com.github.appreciated.apexcharts.config.plotoptions.xmap.builder;
import com.github.appreciated.apexcharts.config.plotoptions.xmap.ColorScale;
import com.github.appreciated.apexcharts.config.plotoptions.xmap.Ranges;
import java.util.Arrays;
import java.util.List;
public class ColorScaleBuilder {
private... | __label__POS | 0.827026 |
package com.github.appreciated.example.theme;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
/**
* If you choose the route properly the addon supports back navigation. Also if the Subcontent does not appear in the ... | __label__POS | 0.885852 |
**[UTC Timezone And MySQL](https://github.com/AnghelLeonard/Hibernate/tree/master/HibernateSpringBootUTCTimezone)**
**Description:** This application is a sample of how to store date, time, and timestamps in UTC time zone. The second setting, `useLegacyDatetimeCode` is needed only for MySQL. Otherwise, set only `hib... | __label__POS | 0.971464 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package com.github.appreciated.example.profile;
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.895445 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.