content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p: Product, id: number) => p.id == id; constructor() { this.dataSource = new SimpleDataSo...
__label__POS
0.891078
import { Directive, HostBinding, Input, SimpleChange, KeyValueDiffer, KeyValueDiffers, ChangeDetectorRef } from "@angular/core"; import { DiscountService } from "./discount.service"; @Directive({ selector: "td[pa-price]", exportAs: "discount" }) export class PaDiscountAmountDirective { private diff...
__label__POS
0.615057
package com.apress.todo.actuator; import com.apress.todo.domain.ToDo; import com.apress.todo.repository.ToDoRepository; import lombok.AllArgsConstructor; import lombok.Data; import org.springframework.boot.actuate.endpoint.annotation.*; import org.springframework.stereotype.Component; @Component @Endpoint(id="todo-st...
__label__POS
0.982279
<!DOCTYPE html> <html lang="en"> <head> <title>ALBusLeftHandDriveLayout Class Reference</title> <link rel="stylesheet" type="text/css" href="../css/jazzy.css" /> <link rel="stylesheet" type="text/css" href="../css/highlight.css" /> <meta charset='utf-8'> <script src="../js/jquery.min.js" defer></s...
__label__POS
0.668697
# Multi-Agent Chat We demonstrate four different ways of implementing a multi-agent chat system using APPL. The four implementations are: 1. [**Resume**](#resume) **(Recommended)**: Uses the resume feature of the APPL function to store the state of the conversation. The context is stored in the instance of the class w...
__label__POS
0.993812
/// <reference path="../angular.js" /> angular.module("customFilters", []) .filter("unique", function () { return function (data, propertyName) { if (angular.isArray(data) && angular.isString(propertyName)) { var results = []; var keys = {}; for (var i = 0; i < data.le...
__label__POS
0.933373
import { Component, Output, EventEmitter, ViewEncapsulation, Inject, SkipSelf } from "@angular/core"; import { Product } from "./product.model"; import { ProductFormGroup } from "./form.model"; import { Model } from "./repository.model"; import { VALUE_SERVICE } from "./valueDisplay.directive"; @Component({ ...
__label__POS
0.695477
import { Injectable } from "@angular/core"; import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; @Injectable() export class Model { //private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; ...
__label__POS
0.870373
# Enabling Tool Calls for LMs ## Defining Tools with Python Functions To streamline the process of LMs using tools, APPL provides a simple way to convert Python functions into tools that can be called by LMs. This is done by using the `as_tool` function, which automatically extract information from the function signat...
__label__POS
0.620946
import { Injectable } from "@angular/core"; import { ActivatedRouteSnapshot, RouterStateSnapshot, Router } from "@angular/router"; import { Observable, Subject } from "rxjs"; import { MessageService } from "../messages/message.service"; import { Message } from "../messages/message.model"; import { FormComponent...
__label__POS
0.833622
import sympy from appl import AIMessage, Generation, convo, gen, ppl, records def is_lucky(x: int) -> bool: """Determine whether the input number is a lucky number. Args: x (int): The input number to be checked. Returns: bool: True if the number is a lucky number, False otherwise. "...
__label__POS
0.852999
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; constructor() { this.dataSource = new SimpleDataSour...
__label__POS
0.889928
import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { FormsModule } from "@angular/forms"; import { ModelModule } from "../model/model.module"; import { TableComponent } from "./table.component"; import { FormComponent } from "./form.component"; import { Subject }...
__label__POS
0.711094
import { ApplicationRef, Component } from "@angular/core"; import { NgForm } from "@angular/forms"; import { Model } from "./repository.model"; import { Product } from "./product.model"; import { ProductFormGroup } from "./form.model"; @Component({ selector: "app", templateUrl: "template.html" }) export class ...
__label__POS
0.68288
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; constructor() { this.dataSource = new SimpleDataSour...
__label__POS
0.901517
rootProject.name = 'pro-spring-5' include 'chapter02:hello-world' include 'chapter03:bean-aliases' include 'chapter03:bean-autowiring' include 'chapter03:bean-inheritance' include 'chapter03:bean-instantiation-mode' include 'chapter03:cdl' include 'chapter03:collections' include 'chapter03:constructor-injection' inc...
__label__POS
0.999574
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; constructor() { this.dataSource = new SimpleDataSour...
__label__POS
0.889928
package com.apress.todo.config; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.web.socket.config.annotation.EnableWebSocketM...
__label__POS
0.838459
package com.apress.prospring5.ch17.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servlet.config.annotation.EnableW...
__label__POS
0.954082
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p: Product, id: number) => p.id == id; constructor() { this.dataSource = new SimpleDataSo...
__label__POS
0.891078
package com.apress.prospring5.ch17.config; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; im...
__label__POS
0.913439
import { Injectable } from "@angular/core"; import { ActivatedRouteSnapshot, RouterStateSnapshot, Router } from "@angular/router"; import { Observable } from "rxjs/Observable"; import { Subject } from "rxjs/Subject"; import { MessageService } from "../messages/message.service"; import { Message } from "../messa...
__label__POS
0.816032
### 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
import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { ProductComponent } from "./component"; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { PaAttrDirective } from "./attr.directive"; import { PaModel } from "./twoway.directive"; impor...
__label__POS
0.811905
package com.apress.prospring5.ch8.config; import com.apress.prospring5.ch8.entities.SingerAudit; import com.apress.prospring5.ch8.repos.SingerAuditRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Se...
__label__POS
0.912655
import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { FormsModule } from "@angular/forms"; import { ModelModule } from "../model/model.module"; import { TableComponent } from "./table.component"; import { FormComponent } from "./form.component"; import { Subject }...
__label__POS
0.705979
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p: Product, id: number) => p.id == id; constructor() { this.dataSource = new SimpleDataSo...
__label__POS
0.891078
package com.apress.prospring5.ch8.services; import com.apress.prospring5.ch8.entities.SingerAudit; import com.apress.prospring5.ch8.repos.SingerAuditRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.beans.factory.annot...
__label__POS
0.60216
package com.apress.prospring5.ch8; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.support.GenericXmlApplicationContext; import java.util.List; public class SpringJPADemo { private static Logger logger = LoggerFactory.getLogger(SpringJPADemo.class); public static void ...
__label__POS
0.825178
<!-- 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.648519
import { Directive, HostBinding, Input, SimpleChange, KeyValueDiffer, KeyValueDiffers, ChangeDetectorRef } from "@angular/core"; import { DiscountService } from "./discount.service"; @Directive({ selector: "td[pa-price]", exportAs: "discount" }) export class PaDiscountAmountDirective { private diff...
__label__POS
0.615057
package com.apress.prospring5.ch8.config; import com.apress.prospring5.ch8.entities.Album; import com.apress.prospring5.ch8.entities.Singer; import com.apress.prospring5.ch8.repos.InstrumentRepository; import com.apress.prospring5.ch8.repos.SingerRepository; import com.apress.prospring5.ch8.entities.Instrument; import...
__label__POS
0.728932
import { Injectable } from "@angular/core"; import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; @Injectable() export class Model { //private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; ...
__label__POS
0.882379
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; constructor() { this.dataSource = new SimpleDataSour...
__label__POS
0.889928
package com.apress.prospring5.ch8.services; import com.apress.prospring5.ch8.entities.Singer; import com.apress.prospring5.ch8.repos.SingerRepository; import org.springframework.stereotype.Service; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; impor...
__label__POS
0.638481
/******************************************************************************* * © Apployees Inc., 2019 * All Rights Reserved. ******************************************************************************/ import { IBuildBuilderOptions, ExternalDependencies, IFileReplacement, InspectType, } from "@apploye...
__label__POS
0.987721
package com.apress.prospring5.ch8.config; import com.apress.prospring5.ch8.InstrumentRepository; import com.apress.prospring5.ch8.SingerRepository; import com.apress.prospring5.ch8.entities.Album; import com.apress.prospring5.ch8.entities.Instrument; import com.apress.prospring5.ch8.entities.Singer; import org.slf4j.L...
__label__POS
0.731339
import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { ProductComponent } from "./component"; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { PaAttrDirective } from "./attr.directive"; import { PaModel } from "./twoway.directive"; impor...
__label__POS
0.811905
package com.apress.prospring6.fourteen.boot; import org.hibernate.boot.model.naming.Identifier; import org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl; import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment; import org.springframework.context.annotation.Bean; import org.springframework.context.ann...
__label__POS
0.72515
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <script type="text/javascript" src="//use.typekit.net/jbn8qxr.js"></script> <scri...
__label__POS
0.977552
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; constructor() { this.dataSource = new SimpleDataSour...
__label__POS
0.889928
package com.apress.prospring5.ch8; import com.apress.prospring5.ch8.config.JpaConfig; import com.apress.prospring5.ch8.service.SingerSummaryService; import com.apress.prospring5.ch8.service.SingerSummaryUntypeImpl; import com.apress.prospring5.ch8.view.SingerSummary; import org.junit.After; import org.junit.Before; im...
__label__POS
0.726729
package com.apress.prospring5.ch8.service; import org.springframework.stereotype.Repository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import java.util.Iterator; i...
__label__POS
0.754868
import { Directive, HostBinding, Input, SimpleChange, KeyValueDiffer, KeyValueDiffers, ChangeDetectorRef } from "@angular/core"; import { DiscountService } from "./discount.service"; @Directive({ selector: "td[pa-price]", exportAs: "discount" }) export class PaDiscountAmountDirective { private diff...
__label__POS
0.615057
import { NgModule } from "@angular/core"; import { BrowserModule } from "@angular/platform-browser"; import { ProductComponent } from "./component"; import { FormsModule, ReactiveFormsModule } from "@angular/forms"; import { PaAttrDirective } from "./attr.directive"; import { PaModel } from "./twoway.directive"; impor...
__label__POS
0.714839
<!DOCTYPE html> <html> <head> <title>Example 9.2: Rigid Shape Impulse</title> <link rel ="icon" type ="image/x-icon" href="./assets/favicon.png"> <!-- the following says there are javascript source code contained in the external source files --> <!-- external l...
__label__POS
0.894584
import { Component, Output, EventEmitter, ViewEncapsulation } from "@angular/core"; import { Product } from "./product.model"; import { ProductFormGroup } from "./form.model"; import { Model } from "./repository.model"; @Component({ selector: "paProductForm", templateUrl: "productForm.component.html", //st...
__label__POS
0.820489
import { Injectable } from "@angular/core"; import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; @Injectable() export class Model { //private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; ...
__label__POS
0.870373
package com.apress.todo.repository; import com.apress.todo.domain.ToDo; import org.springframework.stereotype.Repository; import java.time.LocalDateTime; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.util.stream.Collectors; @Repository public cl...
__label__POS
0.880816
angular.module("sportsStore") .constant("productListActiveClass", "btn-primary") .constant("productListPageCount", 3) .controller("productListCtrl", function ($scope, $filter, productListActiveClass, productListPageCount) { var selectedCategory = null; $scope.selectedPage = 1; ...
__label__POS
0.733939
import { Injectable } from "@angular/core"; import { Product } from "./product.model"; import { StaticDataSource } from "./static.datasource"; @Injectable() export class Model { private products: Product[]; private locator = (p: Product, id: number) => p.id == id; constructor(private dataSource: StaticDat...
__label__POS
0.877568
angular.module("customFilters", []) .filter("unique", function () { return function (data, propertyName) { if (angular.isArray(data) && angular.isString(propertyName)) { var results = []; var keys = {}; for (var i = 0; i < data.length; i++) { var val = da...
__label__POS
0.959039
package com.apress.todo.client; import com.apress.todo.client.domain.ToDo; import com.apress.todo.client.error.ToDoErrorHandler; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.core.ParameterizedTypeReference; import org.springframework.http.*; import org.sp...
__label__POS
0.88291
var faker = require("faker"); faker.seed(100); var categories = ["Watersports", "Soccer", "Chess"]; var products = []; for (let i = 1; i <= 503; i++) { var category = faker.helpers.randomize(categories); products.push({ id: i, name: faker.commerce.productName(), category: category, ...
__label__POS
0.993179
package com.apress.prospring5.ch8.config; import com.apress.prospring5.ch8.entities.SingerAudit; import com.apress.prospring5.ch8.repos.SingerAuditRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Se...
__label__POS
0.928504
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p: Product, id: number) => p.id == id; constructor() { this.dataSource = new SimpleDataSo...
__label__POS
0.891078
import { ApplicationRef, Component } from "@angular/core"; import { Model } from "./repository.model"; import { Product } from "./product.model"; @Component({ selector: "app", templateUrl: "template.html" }) export class ProductComponent { model: Model = new Model(); constructor(ref: ApplicationRef) {...
__label__POS
0.711826
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ViewFeatures; using System.Linq; namespace ControllersAndActions.Controllers { public class PocoController { [ControllerContext] public ControllerContext ControllerContext { get; set; } ...
__label__POS
0.915719
<!--The content below is only a placeholder and can be replaced.--> <div style="text-align:center"> <h1> Welcome to {{title}}! </h1> <img width="300" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgM...
__label__POS
0.724884
angular.module("sportsStore") .constant("productListActiveClass", "btn-primary") .constant("productListPageCount", 3) .controller("productListCtrl", function ($scope, $filter, productListActiveClass, productListPageCount, cart) { var selectedCategory = null; $scope.selectedPage = ...
__label__POS
0.703751
package com.apress.prospring5.ch8; import com.apress.prospring5.ch8.config.DataJpaConfig; import com.apress.prospring5.ch8.entities.Singer; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.Anno...
__label__POS
0.706313
package com.apress.prospring5.ch8; import java.util.List; import com.apress.prospring5.ch8.entities.Singer; import org.springframework.context.support.GenericXmlApplicationContext; public class SpringJPADemo { public static void main(String... args) { GenericXmlApplicationContext ctx = new GenericXmlAppl...
__label__POS
0.99728
angular.module("customFilters", []) .filter("unique", function () { return function (data, propertyName) { if (angular.isArray(data) && angular.isString(propertyName)) { var results = []; var keys = {}; for (var i = 0; i < data.length; i++) { var val = da...
__label__POS
0.959039
package com.apress.prospring5.ch8; import com.apress.prospring5.ch8.entities.Singer; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.beans.factory.annotation.Autowired; import java.util.List; import com.google.common.collect.L...
__label__POS
0.839838
package com.apress.prospring5.ch11.services; import com.apress.prospring5.ch11.entities.Car; import org.joda.time.DateTime; import org.joda.time.Years; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Repository; ...
__label__POS
0.831908
angular.module("sportsStore") .constant("productListActiveClass", "btn-primary") .constant("productListPageCount", 3) .controller("productListCtrl", function ($scope, $filter, productListActiveClass, productListPageCount, cart) { var selectedCategory = null; $scope.selectedPage = ...
__label__POS
0.703751
package com.apress.prospring5.ch11.config; import com.apress.prospring5.ch11.entities.Car; import com.apress.prospring5.ch11.repos.CarRepository; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import org.slf4j.Logger; import org.slf4j.LoggerFac...
__label__POS
0.802305
import React, { Component } from "react"; export class ProductList extends Component { render() { if (this.props.products == null || this.props.products.length === 0) { return <h5 className="p-2">No Products</h5> } return this.props.products.map(p => <div class...
__label__POS
0.620912
package com.apress.prospring5.ch11.services; import com.apress.prospring5.ch11.entities.Car; import com.apress.prospring5.ch11.repos.CarRepository; import com.google.common.collect.Lists; import org.joda.time.DateTime; import org.joda.time.Years; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.spri...
__label__POS
0.621721
package com.apress.prospring5.ch11; import java.util.concurrent.Future; import com.apress.prospring5.ch11.config.AppConfig; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.support.GenericAppli...
__label__POS
0.949579
<!--The content below is only a placeholder and can be replaced.--> <div style="text-align:center"> <h1> Welcome to {{title}}! </h1> <img width="300" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTAgMjUwIj4KICAgIDxwYXRoIGZpbGw9IiNERDAwMzEiIGQ9Ik0xMjUgM...
__label__POS
0.724884
angular.module("customFilters", []) .filter("unique", function () { return function (data, propertyName) { if (angular.isArray(data) && angular.isString(propertyName)) { var results = []; var keys = {}; for (var i = 0; i < data.length; i++) { var val = da...
__label__POS
0.959039
package com.apress.prospring5.ch5; import org.springframework.aop.Advisor; import org.springframework.aop.Pointcut; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.ControlFlowPointcut; import org.springframework.aop.support.DefaultPointcutAdvisor; public class ControlFlow...
__label__POS
0.984012
import { Injectable } from "@angular/core"; import { Product } from "./product.model"; import { StaticDataSource } from "./static.datasource"; @Injectable() export class Model { private products: Product[]; private locator = (p: Product, id: number) => p.id == id; constructor(private dataSource: StaticDat...
__label__POS
0.877568
package com.apress.prospring5.ch5; import java.lang.reflect.Method; import org.springframework.aop.ThrowsAdvice; import org.springframework.aop.framework.ProxyFactory; public class SimpleThrowsAdvice implements ThrowsAdvice { public static void main(String... args) throws Exception { ErrorBean errorBean ...
__label__POS
0.846616
package com.apress.prospring5.ch5; import com.apress.prospring5.ch2.common.Contact; import com.apress.prospring5.ch5.introduction.IsModified; import com.apress.prospring5.ch5.introduction.IsModifiedAdvisor; import org.springframework.aop.IntroductionAdvisor; import org.springframework.aop.framework.ProxyFactory; publ...
__label__POS
0.681384
angular.module("sportsStore") .constant("productListActiveClass", "btn-primary") .constant("productListPageCount", 3) .controller("productListCtrl", function ($scope, $filter, productListActiveClass, productListPageCount, cart) { var selectedCategory = null; $scope.selectedPage = ...
__label__POS
0.705284
import { Product } from "./product.model"; import { SimpleDataSource } from "./datasource.model"; export class Model { private dataSource: SimpleDataSource; private products: Product[]; private locator = (p:Product, id:number) => p.id == id; constructor() { this.dataSource = new SimpleDataSour...
__label__POS
0.889928
import { ApplicationRef, Component } from "@angular/core"; import { Model } from "./repository.model"; import { Product } from "./product.model"; @Component({ selector: "app", templateUrl: "template.html" }) export class ProductComponent { model: Model = new Model(); constructor(ref: ApplicationRef) {...
__label__POS
0.711826
package com.apress.prospring5.ch5; import com.apress.prospring5.ch2.common.Singer; import org.aopalliance.aop.Advice; import org.springframework.aop.Advisor; import org.springframework.aop.Pointcut; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.DefaultPointcutAdvisor; p...
__label__POS
0.99924
/// <reference path="../angular.js" /> angular.module("customFilters", []) .filter("unique", function () { return function (data, propertyName) { if (angular.isArray(data) && angular.isString(propertyName)) { var results = []; var keys = {}; for (var i = 0; i < data.le...
__label__POS
0.933373
package com.apress.prospring5.ch5.introduction; import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; import org.aopalliance.intercept.MethodInvocation; import org.springframework.aop.support.DelegatingIntroductionInterceptor; public class IsModifiedMixin extends DelegatingIntroductionInte...
__label__POS
0.834304
angular.module("sportsStore") .constant("productListActiveClass", "btn-primary") .constant("productListPageCount", 3) .controller("productListCtrl", function ($scope, $filter, productListActiveClass, productListPageCount, cart) { var selectedCategory = null; $scope.selectedPage = ...
__label__POS
0.705284
<!-- 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.685168
package com.apress.todo.repository; import com.apress.todo.domain.ToDo; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate; import or...
__label__POS
0.711157
package com.apress.prospring5.ch5; import java.lang.reflect.Method; import com.apress.prospring5.ch2.common.Guitar; import org.springframework.aop.Advisor; import org.springframework.aop.ClassFilter; import org.springframework.aop.framework.ProxyFactory; import org.springframework.aop.support.ComposablePointcut; impo...
__label__POS
0.974442
/// <reference path="../angular.js" /> angular.module("customFilters", []) .filter("unique", function () { return function (data, propertyName) { if (angular.isArray(data) && angular.isString(propertyName)) { var results = []; var keys = {}; for (var i = 0; i < data.le...
__label__POS
0.933373
package com.apress.prospring6.seventeen.boot; import org.hibernate.boot.model.naming.Identifier; import org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl; import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment; import org.springframework.context.annotation.Bean; import org.springframework.context.an...
__label__POS
0.724154
package com.apress.prospring5.ch5; import org.springframework.aop.framework.ProxyFactory; public class SecurityDemo { public static void main(String... args) { SecurityManager mgr = new SecurityManager(); SecureBean bean = getSecureBean(); mgr.login("John", "pwd"); bean.writeSecu...
__label__POS
0.988368
import React, { Component } from "react"; export class ProductList extends Component { render() { if (this.props.products == null || this.props.products.length === 0) { return <h5 className="p-2">No Products</h5> } return this.props.products.map(p => <div class...
__label__POS
0.620912
package com.apress.prospring5.ch4; import com.apress.prospring5.ch2.decoupled.MessageProvider; import com.apress.prospring5.ch2.decoupled.MessageRenderer; import com.apress.prospring5.ch2.decoupled.StandardOutMessageRenderer; import com.apress.prospring5.ch3.xml.ConfigurableMessageProvider; import org.springframework....
__label__POS
0.933364
package com.apress.prospring5.ch4.config; import com.apress.prospring5.ch4.DestructiveBeanWithJSR250; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframe...
__label__POS
0.998044
package com.apress.prospring5.ch4; import java.util.HashMap; import java.util.Map; import org.springframework.context.support.GenericXmlApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.MapPropertySource; import org.springframework.core.env.MutablePro...
__label__POS
0.991942
package com.apress.prospring5.ch4; import org.springframework.context.support.GenericXmlApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.MapPropertySource; import org.springframework.core.env.MutablePropertySources; import java.util.HashMap; import j...
__label__POS
0.993068
package com.apress.prospring5.ch4.config; import com.apress.prospring5.ch4.Singer; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annota...
__label__POS
0.985408
using Io.AppMetrica.Internal; using JetBrains.Annotations; using System.Collections.Generic; namespace Io.AppMetrica.Native.Utils.Serializer { internal static class StartupParamsSerializer { [CanBeNull] public static StartupParamsResult ResultFromJsonString([CanBeNull] string jsonStr) { ...
__label__POS
0.611133
#if UNITY_ANDROID using JetBrains.Annotations; using UnityEngine; namespace Io.AppMetrica.Native.Android.Proxy { internal static class AppMetricaProxy { private static readonly AndroidJavaClass NativeClass = new AndroidJavaClass("io.appmetrica.analytics.plugin.unity.AppMetricaProxy"); public stati...
__label__POS
0.866417
#if UNITY_ANDROID using JetBrains.Annotations; using UnityEngine; namespace Io.AppMetrica.Native.Android.Proxy { internal static class ReporterProxy { private static readonly AndroidJavaClass NativeClass = new AndroidJavaClass("io.appmetrica.analytics.plugin.unity.ReporterProxy"); publ...
__label__POS
0.679694
#import "AMAUECommerceEvent.h" #import "AMAUECommerceAmount.h" #import "AMAUECommerceCartItem.h" #import "AMAUECommerceOrder.h" #import "AMAUECommercePrice.h" #import "AMAUECommerceProduct.h" #import "AMAUECommerceReferrer.h" #import "AMAUECommerceScreen.h" #import "AMAUUtils.h" AMAECommerce *amau_deserializeECommerc...
__label__POS
0.882321
package com.apress.prospring5.ch4; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.support.ClassPathXmlApplicationContext; public class Publisher implements Applicatio...
__label__POS
0.940484