content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package edu.stanford.math.plex4.visualization;
public class PointCloudScaling {
/**
*
* Returns a scaled version of the point cloud. Scales the coordinates by
* computing overall minimum and maximum and scaling uniformly in all
* directions such that all coordinates fit in a box of dimensions: [-scale,
* ... | __label__POS | 0.927628 |
package com.apress.springrecipes.nosql;
import java.util.List;
import com.mongodb.MongoClient;
public class Main {
public static final String DB_NAME = "vehicledb";
public static void main(String[] args) throws Exception {
// Default monogclient for localhost and port 27017
MongoClient mong... | __label__POS | 0.994169 |
package com.apress.springrecipes.nosql;
public class Vehicle {
private String vehicleNo;
private String color;
private int wheel;
private int seat;
public Vehicle() {
}
public Vehicle(String vehicleNo, String color, int wheel, int seat) {
this.vehicleNo = vehicleNo;
this.... | __label__POS | 0.680388 |
package com.apress.springrecipes.nosql;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import org.bson.Document;
import javax.annotation.PreDestroy;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
import static com.mongodb.client.model.Fil... | __label__POS | 0.807129 |
package com.spaceprogram.simplejpa;
import org.apache.commons.lang.StringUtils;
import javax.persistence.*;
import java.lang.reflect.*;
import java.util.*;
/**
* Kerry Wright
*/
public abstract class PersistentProperty {
protected final AnnotatedElement element;
protected final List<OrderClause> orderBys;
... | __label__POS | 0.860345 |
**[How To Unproxy A Proxy](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootUnproxyAProxy)**
**Description:** A Hibernate proxy can be useful when a child entity can be persisted with a reference to its parent (`@ManyToOne` or `@OneToOne` association). In such cases, fetching the p... | __label__POS | 0.666005 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.900566 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.862449 |
**[How To Efficiently Chunk A Java List](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/ChunkList)**
<b><a href="https://persistencelayer.wixsite.com/springboot-hibernate/post/how-to-efficiently-chunk-a-java-list">If you prefer to read it as a blog-post containing the relevant snippets of code then ... | __label__POS | 0.872891 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import java.util.Iterator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersiste... | __label__POS | 0.813733 |
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Router } from '@angular/router';
import { CardDto } from './card.dto';
@Component({
selector: 'app-card',
templateUrl: './card.component.html',
styleUrls: ['./card.component.scss'],
})
export class CardComponent {
@Input(... | __label__POS | 0.655532 |
// <copyright file="ApplicationsMetricsRegistry.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using App.Metrics.Apdex;
using App.Metrics.BucketHistogram;
using App.Metrics.BucketTimer;
using App.Metrics.Counter;
using App.Metrics.Gauge;
using A... | __label__POS | 0.674756 |
<!DOCTYPE html>
<html lang="ZH-cn">
<head>
<meta charset="UTF-8" />
<title>Test</title>
<meta name="viewport"
content="width=device-width,viewport-fit=cover,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<script type="module" src="../dist/main.js"></script>
<style>
body {
... | __label__POS | 0.997322 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import java.util.Iterator;
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.inter... | __label__POS | 0.790034 |
package com.apress.springrecipes.nosql;
import org.neo4j.graphdb.*;
import org.neo4j.graphdb.factory.GraphDatabaseFactory;
import java.nio.file.Paths;
import static com.apress.springrecipes.nosql.Main.RelationshipTypes.*;
public class Main {
public enum RelationshipTypes implements RelationshipType {FRIENDS_WI... | __label__POS | 0.991452 |
<!--
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}, theme=${#themes.code('name')}" th:lang="${lang}" th:theme="${theme}">
<head th:fragment="pageTitle(title)">
<link rel="icon" type="image/p... | __label__POS | 0.646021 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.homology.interfaces.AbstractPersistenceBasisAlgorithm;
import e... | __label__POS | 0.831944 |
package io.appoutlet.karavel
import androidx.compose.runtime.Composable
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
internal class KaravelTest {
private val page1 = object : Page() {
@Composable
override fun content() {
/*no-op*/
}
}
p... | __label__POS | 0.631623 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.941794 |
package com.github.appreciated.spring;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.flow.component.button.testbench.ButtonElement;
import com.vaadin.flow.component.notification.testbench.NotificationElement;
import com.vaadin.flow.theme.lumo.Lumo;
public cl... | __label__POS | 0.994869 |
**[Get Transaction Id In MySQL](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootTransactionId)**
**Description:** This application is an example of getting the current database transaction id in MySQL. Only read-write database transactions gets an id in MySQL. Every database has... | __label__POS | 0.8991 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.857337 |
package com.apress.springrecipes.nosql;
import java.io.Serializable;
@SuppressWarnings("serial")
public class Vehicle implements Serializable {
private String vehicleNo;
private String color;
private int wheel;
private int seat;
public Vehicle() {
}
public Vehicle(String vehicleNo, Stri... | __label__POS | 0.608015 |
package com.spaceprogram.simplejpa;
/**
* User: treeder
* Date: Aug 13, 2008
* Time: 1:10:52 PM
*/
public interface DatabaseManager {
/**
* This method will rename an attribute in SimpleDB by iterating through EVERY element in the Domain
* putting the old attribute value to the new attribute name, th... | __label__POS | 0.89169 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.963111 |
package com.spaceprogram.simplejpa;
import org.apache.commons.lang.StringUtils;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import java.lang.reflect.Method;
/**
* Utility class for names of items in the database.
* <p/>
* User: tr... | __label__POS | 0.990452 |
package edu.stanford.math.plex4.autogen.homology;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.barcodes.AnnotatedBarcodeCollection;
import edu.stanford.math.plex4.homology.barcodes.BarcodeCollection;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import edu.stanford.... | __label__POS | 0.807509 |
package com.spaceprogram.simplejpa;
import java.util.ArrayList;
import java.util.List;
import com.amazonaws.AmazonClientException;
import com.amazonaws.services.simpledb.AmazonSimpleDB;
import com.amazonaws.services.simpledb.model.GetAttributesRequest;
import com.amazonaws.services.simpledb.model.GetAttributesResult;... | __label__POS | 0.982754 |
**[How To Customize C3P0 Settings Via Properties And `DataSourceBuilder`](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootDataSourceBuilderC3P0Kickoff)**
**Note:** The best way to tune the connection pool parameters consist in using [Flexy Pool](https://github.com/vladmihalcea/flex... | __label__POS | 0.964658 |
package com.spaceprogram.simplejpa.cache;
import java.util.Set;
import java.util.Map;
import java.util.Collection;
/**
* User: treeder
* Date: Jun 7, 2008
* Time: 4:47:01 PM
*/
public class NoopCache implements Cache {
public boolean containsKey(Object o) {
return false;
}
public boolean cont... | __label__POS | 0.970878 |
package com.spaceprogram.simplejpa.query;
/**
* User: treeder
* Date: Feb 8, 2008
* Time: 7:26:42 PM
*/
public class AbstractJPQLQuery implements Cloneable {
public static final String[] SINGLE_STRING_KEYWORDS = {
"SELECT", "UPDATE", "DELETE", "UNIQUE", "FROM", "WHERE", "GROUP BY", "HAVING", "ORDER... | __label__POS | 0.894859 |
package edu.stanford.math.plex4.streams.filter;
import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace;
import edu.stanford.math.plex4.metric.utility.DensityEstimation;
public class KernelDensityFilterFunction implements IntFilterFunction {
private final double[] densities;
private boolean maxMinCo... | __label__POS | 0.92665 |
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.spaceprogram.simplejpa.query;
import com.amazonaws.services.s3.internal.S3QueryStringSigner;
import com.spaceprogram.simplejpa.EntityManagerSimpleJPA;
import javax.persistence.Query;
import javax.persistence.TemporalType;
import java.util.*;
import java.util.logging.Logger;
import java.util.regex.Matcher;... | __label__POS | 0.66785 |
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.spaceprogram.simplejpa.query;
import javax.persistence.Query;
/**
* User: treeder Date: Nov 2, 2008 Time: 12:50:20 AM
*/
public interface SimpleQuery extends Query {
int MAX_RESULTS_PER_REQUEST = 2500;
/**
* Same as getSingleResult, but does not throw NonUniqueResultException or NoResultE... | __label__POS | 0.977248 |
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 |
#import <Kiwi/Kiwi.h>
#import "AMATableDescriptionProvider.h"
SPEC_BEGIN(AMATableDescriptionProviderTests)
describe(@"AMATableDescriptionProvider", ^{
it(@"Should provide valid events table", ^{
NSArray *eventsTable = [AMATableDescriptionProvider eventsTableMetaInfo];
NSArray *expectedTable = @[
... | __label__POS | 0.732708 |
package edu.stanford.math.plex4.streams.filter;
import edu.stanford.math.plex4.metric.interfaces.AbstractIntMetricSpace;
public class EccentricityFilterFunction implements IntFilterFunction {
private final double[] eccentricities;
private double maxValue;
private double minValue;
public EccentricityFilterFuncti... | __label__POS | 0.961071 |
package edu.stanford.math.plex4.streams.derived;
import java.util.Comparator;
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.streams.interfaces.AbstractFilteredStream;... | __label__POS | 0.899874 |
/**
*
*/
package edu.stanford.math.plex4.streams.derived;
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.Interval;
import edu.stanford.math.plex4.homology... | __label__POS | 0.778516 |
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 com.github.appreciated.app.layout;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.checkbox.Checkbox;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.com... | __label__POS | 0.641343 |
package com.github.appreciated.app.layout;
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.uti... | __label__POS | 0.962652 |
package com.github.appreciated.app.layout;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
@Route(value = "view2/subcontent", layout = MainLayout.class)
public class SubContent extends VerticalLayout {
public Sub... | __label__POS | 0.92139 |
package com.github.appreciated.app.layout.navigation;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.Comparator;
public class RouteSimilarityTest {
@Test
public void testRouteSimilarity() {
String[] urls = new String[]{
"navigation/view1",
... | __label__POS | 0.988697 |
package com.spaceprogram.simplejpa.query;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;
/**
* User: treeder
* Date: Nov 7, 2008
* Time: 5:31:27 PM
*/
public class QueryBuilderImp... | __label__POS | 0.875587 |
package com.spaceprogram.simplejpa.util;
import com.amazonaws.AmazonClientException;
import com.amazonaws.services.simpledb.AmazonSimpleDB;
import com.amazonaws.services.simpledb.model.Attribute;
import com.amazonaws.services.simpledb.model.Item;
import com.amazonaws.services.simpledb.model.SelectRequest;
import com.a... | __label__POS | 0.912048 |
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 |
**[Pay Attention To Spring Projections That Include Associated Collections](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootProjectionAndCollections)**
**Description:** This application inspect the Persistent Context content during fetching Spring projections that includes collecti... | __label__POS | 0.81981 |
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.Iterator;
import edu.stanford.math.primitivelib.autogen.pair.IntObjectPair;
/**
* This class provides iteration over the second component of each element
* in an Iterable collection of type IntObjectPair<E>. It essentially
* ignores the... | __label__POS | 0.886189 |
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.streams.storage_structures;
import gnu.trove.TIntObjectHashMap;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
/**
* This class implements the Iterator interface for a HashedStorageStructure. It allows
* the user to traverse the structure in increasing or... | __label__POS | 0.98829 |
/**
*
*/
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import edu.stanford.math.primitivelib.autogen.pair.IntObjectPair;
import edu.stanford.math.primitivelib.autog... | __label__POS | 0.850936 |
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.Comparator;
/**
* This interface defines the functionality of a stream storage structure. Such
* a structure is designed to be the backing of a streamed filtered chain complex.
*
* Note that this interface extends the Iterable<T> interf... | __label__POS | 0.998929 |
**[How To Declare Immutable Entities And Store Them In Second Level Cache (e.g., `EhCache`)](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootImmutableEntity)**
**Description:** This application is a sample of declaring an immutable entity. Moreover, the immutable entity will be sto... | __label__POS | 0.656526 |
package com.github.appreciated.app.layout.session;
import com.vaadin.flow.component.UI;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
public class UIAttributes implements Serializable {
private static final long serialVersionUID = 1L;
Map<UI, Map<Class, Object>> map = new Hash... | __label__POS | 0.948853 |
package com.github.appreciated.app.layout.navigation;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.router.RouteData;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class RouteSimilarity {
private final int similarity;
private Class<? extends ... | __label__POS | 0.929953 |
package com.github.appreciated.app.layout.navigation;
import com.github.appreciated.app.layout.session.UIAttributes;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.UI;
import com.vaadin.flow.router.Location;
import com.vaadin.flow.router.RouteConfiguration;
import com.vaadin.flow.router.R... | __label__POS | 0.966887 |
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
/**
* This class contains various convenience functions for constructing stream storage structures. It also
* defines the default stream storage struct... | __label__POS | 0.923093 |
/**
*
*/
package edu.stanford.math.plex4.streams.storage_structures;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.PrimitiveBasisElement;
import gnu.trove.TIntObjectHashMap... | __label__POS | 0.633966 |
export interface Release {
url?: string;
assets_url?: string;
upload_url?: string;
html_url?: string;
id?: number;
author?: Author;
node_id?: string;
tag_name?: string;
target_commitish?: string;
name?: string;
draft?: boolean;
prerelease?: boolean;
created_at?: Date;... | __label__POS | 0.999756 |
package com.github.appreciated.app.layout.addons.search;
import com.github.appreciated.app.layout.component.appbar.IconButton;
import com.vaadin.flow.component.*;
import com.vaadin.flow.component.icon.VaadinIcon;
import com.vaadin.flow.component.textfield.TextField;
public class SearchButton extends IconButton {
... | __label__POS | 0.885252 |
package com.github.appreciated.app.layout.addons.notification;
import com.github.appreciated.app.layout.addons.notification.component.NotificationView;
import com.github.appreciated.app.layout.addons.notification.interfaces.Notification;
import com.github.appreciated.app.layout.addons.notification.interfaces.Notificat... | __label__POS | 0.892812 |
// <copyright file="WeightedSampleTests.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using App.Metrics.ReservoirSampling.ExponentialDecay;
using FluentAssertions;
using Xunit;
namespace App.Metrics.Sampling.Facts
{
public class WeightedSa... | __label__POS | 0.974107 |
package com.github.appreciated.app.layout.addons.notification;
import com.github.appreciated.app.layout.addons.notification.component.NotificationCardView;
import com.github.appreciated.app.layout.addons.notification.interfaces.Notification;
import com.github.appreciated.app.layout.addons.notification.interfaces.Notif... | __label__POS | 0.813272 |
package edu.stanford.math.plex4.streams.utility;
import java.util.Comparator;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
/**
* This class provides filtration based comparison of basis elements. It implements
* a dictionary ordering where first the filtration indices are compared, and... | __label__POS | 0.977609 |
// <copyright file="UserValueWrapperTests.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using FluentAssertions;
using Xunit;
namespace App.Metrics.Sampling.Facts
{
public class UserValueWrapperTests
{
[Fact]
public void... | __label__POS | 0.955565 |
package edu.stanford.math.plex4.streams.utility;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.graph.AbstractUndirectedGraph;
import edu.stanford.math.plex4.graph.UndirectedListGraph;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homolo... | __label__POS | 0.98894 |
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 edu.stanford.math.plex4.streams.utility;
import java.util.ArrayList;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.metric.interfaces.AbstractObjectMetricSpace;
import edu.stanford.math.plex4.streams.interfaces.AbstractFilteredStream;
import ... | __label__POS | 0.955239 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
**[Why the `@Transactional` annotation is being ignored](https://github.com/AnghelLeonard/Hibernate-SpringBoot/tree/master/HibernateSpringBootWhyTransactionalIsIgnored)**
**Description:** This application is an example of fixing the case when `@Transactional` annotation is ignored. Most of the time, this annotation i... | __label__POS | 0.617745 |
<!DOCTYPE html>
<html lang="ZH-cn">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<script type="module" src="../../dist/main.js"></script>
<link rel="stylesheet" href="../styles/default.css">
<script type... | __label__POS | 0.695797 |
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.app.layout.addons.profile.builder;
import com.github.appreciated.app.layout.addons.profile.ProfileButton;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.con... | __label__POS | 0.886012 |
// <copyright file="MetricsFixture.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>
using System;
using App.Metrics.Filtering;
using App.Metrics.Filters;
using App.Metrics.Internal;
using App.Metrics.Registry;
using App.Metrics.ReservoirSampling;
u... | __label__POS | 0.649325 |
package com.github.appreciated.app.layout.addons.profile.builder;
import com.github.appreciated.app.layout.addons.profile.ImageProfileButton;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.componen... | __label__POS | 0.870148 |
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Cell;
import edu.stanford.math.plex4.homology.chain_basis.CellComparator;
import gnu.trove.TIntObjectHashMap;
/**
* This class is a wrappe... | __label__POS | 0.939171 |
package com.github.appreciated.app.layout.addons.notification.interfaces;
import com.github.appreciated.app.layout.addons.notification.DefaultNotificationHolder;
import com.github.appreciated.app.layout.addons.notification.entity.Priority;
import com.github.appreciated.app.layout.component.appbar.ComponentBadgeWrapper... | __label__POS | 0.626852 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.homology.... | __label__POS | 0.86087 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import edu.stanford.math.plex4.graph.UndirectedWeightedListGraph;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import edu.stanford.math.plex4.homology.barcodes.PersistenceInvariantDescriptor;
import edu.stanford.math.plex4.homology.chain_basis.Sim... | __label__POS | 0.789431 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package com.github.appreciated.app.layout.component.builder;
import com.github.appreciated.app.layout.component.applayout.AppLayout;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.html.Image;
import com.vaadin.flow.component.html.Span;
import javax.validation.constraints.NotNull;
/**
*... | __label__POS | 0.777994 |
package edu.stanford.math.plex4.streams.impl;
import java.util.List;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.chain_basis.SimplexPair;
import edu.stanford.math.plex4.homology.chain_basis.SimplexPairComparator;
public class WitnessBicomplex<T> extends Explic... | __label__POS | 0.995796 |
package edu.stanford.math.plex4.streams.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import edu.stanford.math.plex4.graph.UndirectedWeightedListGraph;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.filtration.ExternalConverter;... | __label__POS | 0.820459 |
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.streams.impl;
import java.util.ArrayList;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
import java.util.List;
//import java.util.Collections;
//import org.apache.commons.lang.ArrayUtils;
import edu.stanford.math.plex4.homology.barcodes.Interval;
import... | __label__POS | 0.674678 |
/**
* ____ _ _ _____ _ _ _ _
* | _ \ __ _| |_| |__ | ___(_)_ __ __| (_)_ __ __ _ (_)___
* | |_) / _` | __| '_ \| |_ | | '_ \ / _` | | '_ \ / _` | | / __|
* | __/ (_| | |_| | | | _| | | | | | (_| | | | | | (_| |_ | \__ \
* |_| \__,_... | __label__POS | 0.72664 |
package edu.stanford.math.plex4.streams.impl;
import java.util.Comparator;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.chain_basis.SimplexComparator;
/**
* This class is a wrapper for the ExplicitStream class and provides
* convenience functions when the ba... | __label__POS | 0.992822 |
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.streams.impl;
import edu.stanford.math.plex4.graph.UndirectedWeightedListGraph;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.filtration.FiltrationConverter;
import edu.stanford.math.plex4.metric.interfaces.AbstractSearc... | __label__POS | 0.926072 |
/*
* Copyright (c) 2007-2010 Projet RNRT SAPHIR
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, m... | __label__POS | 0.87824 |
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.899866 |
#import <Kiwi/Kiwi.h>
#import "AMAAttributeNameProvider.h"
SPEC_BEGIN(AMAAttributeNameProviderTests)
describe(@"AMAAttributeNameProvider", ^{
it(@"Should return name", ^{
[[[AMAAttributeNameProvider name] should] equal:@"appmetrica_name"];
});
it(@"Should return gender", ^{
[[[AMAAttribu... | __label__POS | 0.825813 |
/**
*
*/
package edu.stanford.math.plex4.streams.impl;
import edu.stanford.math.plex4.homology.chain_basis.Simplex;
import edu.stanford.math.plex4.homology.filtration.ExternalConverter;
import edu.stanford.math.plex4.homology.filtration.IncreasingLinearConverter;
import edu.stanford.math.plex4.metric.interfaces.Abs... | __label__POS | 0.925158 |
package com.github.appreciated.app.layout.component.applayout;
import com.github.appreciated.app.layout.webcomponents.applayout.AppDrawerLayout;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.dependency.StyleSheet;
import com.vaadin.flow.com... | __label__POS | 0.97129 |
package com.github.appreciated.apexcharts;
import com.github.appreciated.apexcharts.examples.ExampleChartGenerator;
import com.github.appreciated.apexcharts.examples.RevenueExample;
import com.github.appreciated.apexcharts.examples.event.ScatterChartWithEventsExample;
import com.github.appreciated.apexcharts.examples.... | __label__POS | 0.959177 |
package com.github.appreciated.app.layout.component.menu;
import com.vaadin.flow.component.HasStyle;
import com.vaadin.flow.component.html.Span;
public class MenuBadgeComponent extends Span implements HasStyle {
private static final long serialVersionUID = 1L;
public MenuBadgeComponent() {
setWidth("... | __label__POS | 0.999412 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.