content
stringlengths
263
5.24M
pred_label
stringclasses
1 value
pred_score_pos
float64
0.6
1
angular.module("exampleApp") .filter("labelCase", function () { return function (value, reverse) { if (angular.isString(value)) { var intermediate = reverse ? value.toUpperCase() : value.toLowerCase(); return (reverse ? intermediate[0].toLowerCase() : ...
__label__POS
0.983316
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
import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) in dots else "#" grid += "\n" ...
__label__POS
0.83518
# Code for chapter 03 - Semantic Errors import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) i...
__label__POS
0.767739
# Code for chapter 03 - Semantic Errors import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) i...
__label__POS
0.767739
class Transmitter { var nextLink:Transmitter?; required init() {} func sendMessage(message:Message, handled: Bool = false) -> Bool { if (nextLink != nil) { return nextLink!.sendMessage(message, handled: handled); } else if (!handled) { println("End of chain ...
__label__POS
0.958533
# Code for chapter 03 - Semantic Errors import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) i...
__label__POS
0.767739
<!--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
import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) in dots else "#" grid += "\n" ...
__label__POS
0.83518
# Improved version of the code from chapter 03 # created in chapter 11 to accelerate execution import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): f...
__label__POS
0.616266
package com.apress.spring.config; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; import org.springframework.web.servlet.co...
__label__POS
0.983667
import random XMAX, YMAX = 19, 16 def create_grid_string(dots, xsize, ysize): """ Creates a grid of size (xx, yy) with the given positions of dots. """ grid = "" for y in range(ysize): for x in range(xsize): grid += "." if (x, y) in dots else "#" grid += "\n" ...
__label__POS
0.83518
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
package com.apress.spring.service; import java.text.ParseException; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.apress.spring.domain.Journal; import com.apress....
__label__POS
0.720344
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 Foundation final class Library { private let pool:Pool<Book>; private init(stockLevel:Int) { var stockId = 1; pool = Pool<Book>( itemCount:stockLevel, itemFactory: {() in return BookSeller.buyBook("Dickens, Charles", ...
__label__POS
0.775701
package com.apress.spring; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import com....
__label__POS
0.856965
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
package com.martinappl.components.ui.containers; import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; i...
__label__POS
0.676413
package com.apress.spring; import java.util.Date; import org.springframework.amqp.core.Queue; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.Sprin...
__label__POS
0.877176
package com.martinappl.components.ui.containers.contentbands; /** * @author Martin Appl * * Base class for Content band datamodel. Extend to add data specific for your tiles and their behavior. * This class includes data needed for positioning of tiles inside container. */ public class TileBase { private int...
__label__POS
0.83508
package com.martinappl.components.ui.containers.contentbands; import android.content.Context; import android.util.AttributeSet; import android.view.View; import com.martinappl.components.general.ToolBox; /** * @author Martin Appl * DSP = device specific pixel * TODO last poster is disappearing prematurely and rea...
__label__POS
0.9311
package com.martinappl.components.ui.containers.contentbands; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.LinkedList; import java.util.List; import android.content.Context; import android.content.r...
__label__POS
0.754804
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.spring.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.li...
__label__POS
0.678384
package com.apress.spring; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; impor...
__label__POS
0.890111
protocol StockServer { func getStockLevel(product:String, callback: (String, Int) -> Void); func setStockLevel(product:String, stockLevel:Int); } class StockServerFactory { class func getStockServer() -> StockServer { return server; } private class var server:StockServer { ...
__label__POS
0.96094
import UIKit; class CellFormatter { var nextLink:CellFormatter?; func formatCell(cell: ProductTableCell) { nextLink?.formatCell(cell); } class func createChain() -> CellFormatter { let formatter = ChessFormatter(); formatter.nextLink = WatersportsFormatter(); f...
__label__POS
0.826874
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 { SharedSta...
__label__POS
0.658084
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
package com.apress.spring.config; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; @Configuration public class ResourceSecu...
__label__POS
0.959495
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
angular.module("exampleApp") .filter("labelCase", function () { return function (value, reverse) { if (angular.isString(value)) { var intermediate = reverse ? value.toUpperCase() : value.toLowerCase(); return (reverse ? intermediate[0].toLowerCase() : ...
__label__POS
0.983316
// Copyright 2018 Appliscale // // Maintainers and contributors are listed in README file inside repository. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org...
__label__POS
0.699241
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
pluginManagement { repositories { mavenLocal() mavenCentral() maven { url "https://plugins.gradle.org/m2" } maven { url "https://repo.spring.io/release" } maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/libs-snapshot" } mave...
__label__POS
0.85055
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 { 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
package estimatecost import ( "github.com/Appliscale/perun/parameters" "github.com/Appliscale/perun/stack/stack_mocks" "github.com/aws/aws-sdk-go/service/cloudformation" "github.com/golang/mock/gomock" "github.com/stretchr/testify/assert" "io/ioutil" "testing" ) func TestEstimateCosts(t *testing.T) { template...
__label__POS
0.883644
<!--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
package com.apress.spring; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfi...
__label__POS
0.872065
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 { SharedSta...
__label__POS
0.653085
package com.apress.spring; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org....
__label__POS
0.65475
package logger import ( "github.com/stretchr/testify/assert" "testing" ) func TestResourceValidation_AddValidationError(t *testing.T) { resourceValidation := ResourceValidation{ResourceName: "Name", Errors: []string{}} resourceValidation.AddValidationError("Error") assert.NotEmpty(t, resourceValidation.Errors) ...
__label__POS
0.692149
package com.apress.spring.domain; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class JournalEntry { private String title; private Date created; private String summary; private final SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"); public Jou...
__label__POS
0.601048
package validators import ( "github.com/Appliscale/perun/context" "github.com/Appliscale/perun/logger" "github.com/Appliscale/perun/validator/template" "strconv" "strings" ) type Restrictor func(string) (bool, string) var defaultRestrictor Restrictor = func(propertyName string) (valid bool, msg string) { return...
__label__POS
0.635101
package stack_mocks import ( "github.com/Appliscale/perun/cliparser" "github.com/Appliscale/perun/configuration" "github.com/Appliscale/perun/configurator" "github.com/Appliscale/perun/context" "github.com/Appliscale/perun/logger" "io/ioutil" "testing" ) func SetupContext(t *testing.T, args []string) *context....
__label__POS
0.737568
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
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
<!DOCTYPE html> <html> <head> <title>Example 9.1: Rigid Shape Bounds</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 li...
__label__POS
0.842291
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.719651
package com.apress.spring; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation...
__label__POS
0.999522
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.714308
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 { 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
<!--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
# Spring Boot in the Cloud : Cloud Foundry You can use the __cloud-connectors__ as well and get the DataSource. ###pom.xml ```xml <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-spring-service-connector</artifactId> </dependency> <dependency> <groupId>org.springframework.cl...
__label__POS
0.794807
using System.Runtime.CompilerServices; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Running; namespace Gc1 { [Config(typeof(Config))] [MemoryDiagnoser] public class Benchmarks { private class Config : ManualConfig { ...
__label__POS
0.66421
using System; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; namespace Intrinsics4 { public static unsafe class CompareHelper { // Assuming x.Length == y.Length public static bool NotEqualManual(int[] x, in...
__label__POS
0.926887
using System; using System.Collections.Generic; using System.Linq; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Order; using BenchmarkDotNet.Reports; using BenchmarkDotNet.Running; namespace BranchPrediction4 { [Config(typeof(Config))] public class Benchmarks { ...
__label__POS
0.972361
using System; using System.Diagnostics; namespace InstructionLevelParallelism4 { public class Program { private static int n = 10000000; private static int rep = 100; static void Main() { MeasureAll(); MeasureAll(); } public static void...
__label__POS
0.980662
import { Component, Output, EventEmitter, ViewEncapsulation, Inject, SkipSelf } from "@angular/core"; import { Product } from "../model/product.model"; import { ProductFormGroup } from "../model/form.model"; import { Model } from "../model/repository.model"; import { VALUE_SERVICE } from "../common/valueDisplay...
__label__POS
0.711826
using System; using System.Runtime.CompilerServices; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Diagnostics.Windows.Configs; using BenchmarkDotNet.Running; namespace Inlining3 { [LegacyJitX86Job] [InliningDiagnoser] [DisassemblyDiagnoser(printSource: true, recursiveDepth: 2)] public class...
__label__POS
0.994896
using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; namespace Intrinsics1 { public static class MyMath { public static double Round(double a) { if (a == (double)((long)a)) { return a; } double flrTempV...
__label__POS
0.989211
using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; namespace BranchPrediction2 { public class Benchmarks { private const int n = 100000; private int[] a = new int[n]; private int[] b = new int[n]; private int[] c = new int[n]; [Params(false,...
__label__POS
0.991396
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
using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; namespace BranchPrediction1 { public class Benchmarks { private const int n = 100000; private byte[] sorted = new byte[n]; private byte[] unsorted = new byte[n]; [GlobalSetup] public void Se...
__label__POS
0.979259
using System.Runtime.CompilerServices; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Diagnostics.Windows.Configs; using BenchmarkDotNet.Running; namespace Inlining2 { [InliningDiagnoser] [DisassemblyDiagnoser(printSource: true, recursiveDepth: 2)] [LegacyJitX86Job] public class Benchmarks ...
__label__POS
0.99828
using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Running; namespace InstructionLevelParallelism1 { public class Config : ManualConfig { public Config() { Add(Job.Default ...
__label__POS
0.992244
using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; namespace BranchPrediction3 { [LegacyJitX86Job, LegacyJitX64Job, RyuJitX64Job, MonoJob] [DisassemblyDiagnoser] public class Benchmarks { const int N = 100001; private int[] a = new int[N]; private i...
__label__POS
0.843291
using System; using System.Diagnostics; namespace P06_Iterations { class Program { static void Bad() { const int N = 100000; for (int iter = 0; iter < 10; iter++) { var stopwatch = Stopwatch.StartNew(); int counter = 0; ...
__label__POS
0.930152
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 { 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.spring; import org.springframework.beans.factory.InitializingBean; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import co...
__label__POS
0.8807
<!DOCTYPE html> <html lang="en"> <head> <title>Classes 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></script> <script src="js/jazz...
__label__POS
0.678948
<!DOCTYPE html> <html lang="en"> <head> <title>Protocols 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></script> <script src="js/ja...
__label__POS
0.679
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
<!DOCTYPE html> <html lang="en"> <head> <title>Enumerations 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></script> <script src="js...
__label__POS
0.699331
<!DOCTYPE html> <html lang="en"> <head> <title>ALSelectionType Enumeration 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></scri...
__label__POS
0.726799
<!DOCTYPE html> <html lang="en"> <head> <title>ALBusSeatType Enumeration 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></script...
__label__POS
0.64757
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
using System; using System.Diagnostics; using System.Runtime.CompilerServices; namespace P05_Inlining { class Program { class Bad { double A(double x) { return x * x; } double B(double x) { if (x < 0) ...
__label__POS
0.911613
<!-- 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.spring; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.metrics.CounterService; import...
__label__POS
0.971923
using System; using System.Diagnostics; using System.Runtime.CompilerServices; namespace P06_ConditionalJitting_Better { // Should be executed on Windows (LegacyJIT-x86 is required) class Program { [MethodImpl(MethodImplOptions.NoInlining)] public static double Measure1() { ...
__label__POS
0.979821
package com.apress.todo; import com.apress.todo.domain.ToDo; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.json.JsonTest; import org.springframework.boot.test.context.SpringBootTest; import org....
__label__POS
0.794842
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
<!--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
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; namespace ConsoleApp19 { class Program { static List<long> m = new List<long>(); static byte[] data = new byte[64 * 1024 * 1024]; static long Measure() { var stopwatch = Stopw...
__label__POS
0.686237
package com.apress.todo.controller; import com.apress.todo.domain.ToDo; import com.apress.todo.repository.ToDoRepository; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.support.ServletUriComponentsBuilder; import java.net.URI; ...
__label__POS
0.959516
<!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
<!DOCTYPE html> <html lang="en"> <head> <title>Classes 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></script> <script src="js/jazz...
__label__POS
0.678948
<!DOCTYPE html> <html lang="en"> <head> <title>Protocols 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></script> <script src="js/ja...
__label__POS
0.679
<!DOCTYPE html> <html lang="en"> <head> <title>Enumerations 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></script> <script src="js...
__label__POS
0.699331
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.90246
<!DOCTYPE html> <html lang="en"> <head> <title>ALSelectionType Enumeration 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></scri...
__label__POS
0.726799
<!DOCTYPE html> <html> <head> <title>Example 9.4: Particle Emitters</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 lib...
__label__POS
0.921093
<!DOCTYPE html> <html lang="en"> <head> <title>ALBusSeatType Enumeration 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></script...
__label__POS
0.64757
var app = angular.module("exampleApp", []); app.controller("topLevelCtrl", function ($scope) { $scope.dataValue = "Hello, Adam"; $scope.reverseText = function () { $scope.dataValue = $scope.dataValue.split("").reverse().join(""); } $scope.changeCase = function () { var result = []; ...
__label__POS
0.650884
using System; using System.Diagnostics; using System.Runtime.InteropServices; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Exporters; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Running; using BenchmarkDotNet.Toolchains.CsProj; using B...
__label__POS
0.99999