content stringlengths 263 5.24M | pred_label stringclasses 1
value | pred_score_pos float64 0.6 1 |
|---|---|---|
package net.sf.flatpack;
import java.io.Reader;
import lombok.experimental.UtilityClass;
import net.sf.flatpack.brparse.BuffReaderParseFactory;
/**
* Easy way to get a CSV Parser (separator , and qualifier ").
*
*/
@UtilityClass
public final class CsvParserFactory {
/**
* This should be your default mech... | __label__POS | 0.988459 |
package net.sf.flatpack.util;
/**
* Thanks to the Apache Commons Contributors.
*
* @author Jakarta Commons
*/
public final class FPStringUtils {
private FPStringUtils() {
}
/**
* <p>Checks if a String is whitespace, empty ("") or null.</p>
*
* <pre>
* PZStringUtils.isBlank(null) ... | __label__POS | 0.892648 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using System.Web.WebPages;
using Juice.Mobile;
namespace Juice.Mvc.Mobile {
public partial class MobileHelpers {
/// <summary>
/// {summary}
/// </summary>
/// <param name="elementId">Sets the id attribute of the rende... | __label__POS | 0.709498 |
/**
*
*/
package net.sf.flatpack.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.flatpack.structure.ColumnMetaData;
/**
* Helper class to create ColumnMetaData and Mapping for the Writer Factory.
* @author Benoit ... | __label__POS | 0.990078 |
package net.sf.flatpack.brparse;
import java.io.FileNotFoundException;
import java.io.Reader;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import net.sf.flatpack.InitialisationException;
import net.sf.flatpack.structure.ColumnMetaData;
import net.sf.flatpack.util.ParserUtils;
/**
... | __label__POS | 0.922476 |
package net.objectlab.kit.datecalc.common;
import static java.util.Calendar.APRIL;
import static net.objectlab.kit.datecalc.common.Utils.getCal;
import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
public class DefaultHolidayCalendarTest extends TestCase {
... | __label__POS | 0.993649 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using System.Web.WebPages;
using Juice.Mobile;
namespace Juice.Mvc.Mobile {
public partial class MobileHelpers {
/// <summary>
/// {summary}
/// </summary>
/// <param name="elementId">Sets the id attribute of the rende... | __label__POS | 0.724477 |
using System;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
namespace Juice.Framework.TypeConverters {
public class Int32ArrayConverter : TypeConverter {
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {
if(destina... | __label__POS | 0.784505 |
using System;
using System.Collections;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
namespace Juice.Framework.TypeConverters {
/// <summary>
/// Basically a 1-1 copy of the StringArrayConverter.
/// Use case: Autocomplete's Source property can accept a string (specifying a url) or ... | __label__POS | 0.743147 |
package net.sf.flatpack.writer;
/**
* Defines options for various Writer behaviours
*
* @author Paul Zepernick
*/
public class WriterOptions {
private boolean autoPrintHeader = true;
private String replaceCarriageReturnWith = null;
private String lineSeparator = System.lineSeparator();
/**
*... | __label__POS | 0.936681 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Globalization;
using System.Linq;
using System.Runtime.Serialization.Json;
namespace Juice.Framework.TypeConverters {
public class AutocompleteListConverter : TypeConverter {
publi... | __label__POS | 0.624556 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Globalization;
using System.Linq;
using System.Runtime.Serialization.Json;
namespace Juice.Framework.TypeConverters {
public class AutocompleteSourceConverter : TypeConverter {
pub... | __label__POS | 0.899071 |
package net.sf.flatpack.writer;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.sf.flatpack.structure.ColumnMetaData;
import net.sf.flatpack.util.FPConstants;
/**
*
* @author Dirk Holmes and Holger Holger Hoffstatte
*/
publi... | __label__POS | 0.896031 |
package net.sf.flatpack.writer;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import net.sf.flatpack.InitialisationException;
import net.sf.flatpack.util.FPConstants;
import net.sf.flatpack.xml.MapParser;
/... | __label__POS | 0.836829 |
package net.sf.flatpack.writer;
import java.io.IOException;
import java.io.Reader;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import net.sf.flatpack.structure.ColumnMetaData;
import net.sf.flatpack.util.FPConstants;
/**
*
* @author Dirk Holmes and Holger Holger Hoffstatte
*/
public ... | __label__POS | 0.98572 |
package net.sf.flatpack.writer;
import java.io.BufferedWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* This class encapsulates the writer that's used to output the data.
* @author Dirk Holmes and Holger Holger Hoffstatte
*/
public abstract class AbstractWriter implements W... | __label__POS | 0.781033 |
package net.sf.flatpack.writer;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import net.sf.flatpack.structure.ColumnMetaData;
import net.sf.flatpack.util.FPConstants;
/**
*
* @author Dirk Holmes and Holg... | __label__POS | 0.960798 |
using System;
using System.ComponentModel;
using System.Reflection;
using System.Web.UI;
using Juice.Framework;
namespace Juice.Mobile.Framework {
public static class JuiceMobileApp {
public static void Start() {
ScriptManager.ScriptResourceMapping.AddDefinition("jquery-mobile",
new ScriptResourceDefinit... | __label__POS | 0.773865 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.IO;
using System.Globalization;
using System.Linq;
using System.Reflection;
namespace Juice.Mobile.Framework.TypeConverters {
public class MobileToler... | __label__POS | 0.619646 |
/**
*
*/
package net.sf.flatpack.xml;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import net.sf.flatpack.structure.ColumnMetaData;
import net.sf.flatpack.util.FPConstants;
/**
* @author Benoit Xhenseval... | __label__POS | 0.921042 |
<%@ Page Language="C#" MasterPageFile="~/Base.master" AutoEventWireup="true" CodeBehind="collapsables.aspx.cs" Inherits="Mobile.Collapsables" %>
<asp:Content ID="_Page" runat="server" ContentPlaceHolderID="_Content">
<mobile:page runat="server">
<mobile:header Text="Collapsables" runat="server">
<a href="/" ... | __label__POS | 0.729661 |
package net.objectlab.kit.datecalc.common.ccy;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import net.objectlab.kit.datecalc.common.CalculatorConstants;
import net.objectlab.kit.datecalc.common.WorkingWeek;
/**
* Default for:
* <ul><... | __label__POS | 0.62901 |
<%@ Page Language="C#" MasterPageFile="~/Base.master" AutoEventWireup="true" CodeBehind="lists.aspx.cs" Inherits="Mobile.Lists" %>
<asp:Content ID="_Page" runat="server" ContentPlaceHolderID="_Content">
<mobile:page runat="server">
<mobile:header Text="Listviews" runat="server">
<a href="/" data-icon="home" ... | __label__POS | 0.887762 |
package net.objectlab.kit.datecalc.jdk8;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
import net.objectlab.kit.datecalc.common.DefaultHolidayCalendar;
import net.objectlab.kit.datecalc.common.HolidayCalendar;
public class DefaultHolidayCalendarTest exte... | __label__POS | 0.99796 |
package net.objectlab.kit.datecalc.jdk8;
import java.time.LocalDate;
import net.objectlab.kit.datecalc.common.CurrencyDateCalculatorBuilder;
import net.objectlab.kit.datecalc.common.ccy.AbstractCurrencyDateCalculator;
/**
* JDK8 Date implementation for currency date calculator.
* @author Benoit Xhenseval
* @since... | __label__POS | 0.997626 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;
namespace WebForms {
/// <summary>
/// Summary description for Handler1
/// </summary>
public class AutoCompleteData : IHttpHandler {
private List<String> _data = new List<String>{ "Actio... | __label__POS | 0.947365 |
package net.objectlab.kit.fxcalc;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class StandardMajorCurrencyRankingTest {
private final MajorCurrencyRanking majorCurrencyRanking = StandardMajorCurrencyRanking.getDefault();
@Test
public void testSelectMajorCurrenc... | __label__POS | 0.999833 |
package net.objectlab.kit.fxcalc;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class CurrencyPairTest {
@Test(expected = IllegalArgumentException.class)
public void testNull1() {
new CurrencyPair("", "B");
}
@Test(expected = IllegalArgumentExceptio... | __label__POS | 0.93916 |
package net.objectlab.kit.fxcalc;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.HashSet;
import java.util.Set;
import org.junit.Test;
public class CashTest {
@Test
public void testEquals() {
final Cash money = Cash.of("USD", 1L);
final Cash money2 = Cash.of("USD"... | __label__POS | 0.938704 |
package net.objectlab.kit.fxcalc;
import java.util.Arrays;
/**
* Utility class to determine the market convention for the FX Rate for a given currency pair.
* See <a href="https://en.wikipedia.org/wiki/Currency_pair">https://en.wikipedia.org/wiki/Currency_pair</a>, Although there is no standards-setting body or rul... | __label__POS | 0.922677 |
package net.objectlab.kit.fxcalc;
import java.math.BigDecimal;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.objectlab.kit.util.BigDecimalUtil;
/**
* Calculator responsible for generating a new cross FX Rate based on two relevant (sharing a cross currency) FX Rates;... | __label__POS | 0.786395 |
package net.objectlab.kit.fxcalc;
import java.math.BigDecimal;
import java.util.Optional;
/**
* Represents a read-only view on an FxRate.
* @author Benoit Xhenseval
*/
public interface FxRate {
/**
* The CurrencyPair as in Ccy1/Ccy2 where the Bid will be the price for selling ccy1 and buying ccy2.
*/... | __label__POS | 0.719341 |
package net.objectlab.kit.fxcalc;
import java.math.BigDecimal;
/**
* Read-only representation of a currency and a value.
*
* Hesitated creating this but it may be better to be explicit when doing conversions with the FX Rate.
*
* @author Benoit Xhenseval
*/
public interface CurrencyAmount {
String getCurre... | __label__POS | 0.738219 |
package net.objectlab.kit.fxcalc;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* Main implementation, uses the ratesSnapshot or BaseFxRateProvider to find the FX Rate, if not present then
* try via a cross currency in the order specified in orderedCurrenciesF... | __label__POS | 0.835611 |
/**
*
*/
package net.objectlab.kit.fxcalc;
import java.math.BigDecimal;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import net.objectlab.kit.util.BigDecimalUtil;
import net.objectlab.kit.util.StringUtil;
/**
* A simple class to represent an immu... | __label__POS | 0.973394 |
package net.objectlab.kit.fxcalc;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.objectlab.kit.util.StringUtil;
/**
* Utility class to determine the market convention for the FX Rate for a given currency pair.
* See <a href="https://en.wikipedia.org/... | __label__POS | 0.99813 |
package net.objectlab.kit.fxcalc;
/**
* Utility interface to determine the market convention for the FX Rate for a given currency pair.
* See <a href="https://en.wikipedia.org/wiki/Currency_pair">https://en.wikipedia.org/wiki/Currency_pair</a>, Although there is no standards-setting body or ruling organization,
* t... | __label__POS | 0.996658 |
package net.objectlab.kit.fxcalc;
import java.util.Optional;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import net.objectlab.kit.util.StringUtil;
/**
* Immutable class representing a Currency pair, ccy1/ccy2; thread-safe and able to be used in Co... | __label__POS | 0.942464 |
package net.objectlab.kit.report;
import java.io.StringWriter;
import java.util.List;
import org.junit.Test;
import com.google.common.collect.ImmutableList;
public class TextRendererTest {
protected List<SimpleData> createDataSet() {
SimpleData sd = new SimpleData("Apple", 50_000_00, "USD", true);
... | __label__POS | 0.984476 |
package net.objectlab.kit.report;
public class SimpleData {
private String name;
private long revenue;
private String currency;
private Boolean international;
public SimpleData(String name, long revenue, String currency, Boolean international) {
super();
this.name = name;
t... | __label__POS | 0.793118 |
package net.objectlab.kit.report.gist;
import java.io.StringWriter;
import java.util.List;
import com.google.common.collect.ImmutableList;
import lombok.Getter;
import lombok.Setter;
import net.objectlab.kit.report.ReportTable;
import net.objectlab.kit.report.ReportTextColumn;
import net.objectlab.kit.report.SimpleD... | __label__POS | 0.788739 |
package net.objectlab.kit.report;
public class ReportTextColumn implements ReportColumn {
private final String title;
private final String propertyName;
private final boolean truncate;
private final boolean formatAsANumber;
private final Integer size;
public ReportTextColumn(String title, Stri... | __label__POS | 0.994202 |
/**
*
*/
package net.objectlab.kit.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
/**
* @author Benoit
*
*/
public class FrequencyBucketDistributionTest {
@T... | __label__POS | 0.99942 |
package net.objectlab.kit.util;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class BooleanUtilTest {
@Test
public void testIfTrue() {
assertFalse(BooleanUtil.ifTrue(null, () -> assertTrue(false)));
assertFalse(BooleanUtil... | __label__POS | 0.906337 |
/**
*
*/
package net.objectlab.kit.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import org.junit.Before;
import org.junit.Test;
/**
* @author Benoit
*
*/
public class AverageTest {
private Average average;
@Before
public void setUp() {
averag... | __label__POS | 0.998103 |
unit WebMock.FormFieldMatcher.Tests;
interface
uses
DUnitX.TestFramework,
IdCustomHTTPServer,
WebMock.FormFieldMatcher;
type
[TestFixture]
TWebMockFormFieldMatcherTests = class(TObject)
private
Matcher: TWebMockFormFieldMatcher;
public
[TearDown]
procedure TearDown;
[Test]
procedu... | __label__POS | 0.908491 |
package net.objectlab.kit.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import org.junit.Test;
public class CounterTest {
@Test
public void testEmpty() {
Counter<String> c = new Counter<>();
assertThat(c.getTotal()).isEqualTo(0);
assert... | __label__POS | 0.999438 |
/**
*
*/
package net.objectlab.kit.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import org.junit.Before;
import org.junit.Test;
/**
* @author Benoit
*
*/
public class SampleStandardDeviationTest {
private SampleStandardDeviation stdDev;
@Before
publi... | __label__POS | 0.996143 |
package net.objectlab.kit.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.math.BigDecimal;
import org.junit.Test;
public class TotalTest {
@Test
public void testSum() {
final Total sum = new Total()... | __label__POS | 0.98431 |
/**
*
*/
package net.objectlab.kit.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import org.junit.Before;
import org.junit.Test;
/**
* @author Benoit
*
*/
public class PopulationStandardDeviationTest {
private PopulationStandardDeviation stdDev;
@Before
... | __label__POS | 0.996408 |
package net.objectlab.kit.util;
import static net.objectlab.kit.util.IntegerUtil.assign;
import static net.objectlab.kit.util.IntegerUtil.isNotSameValue;
import static net.objectlab.kit.util.IntegerUtil.isNotZero;
import static net.objectlab.kit.util.IntegerUtil.isNotZeroOrNegative;
import static net.objectlab.kit.uti... | __label__POS | 0.684203 |
package net.objectlab.kit.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import org.junit.Test;
public class ObjectUtilTest {
@Test
public void testEqualsValueValueValueIntegerInteger() {
assertThat(ObjectUtil.equalsValue((Integer) null, null)).isTrue()... | __label__POS | 0.964542 |
package net.objectlab.kit.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import org.junit.Test;
public class ObjectHolderTest {
@Test
public void testObjectHolder() {
final ObjectHolder<Integer> it = new ObjectHolder<>();
assertNull(it.getValue(... | __label__POS | 0.99997 |
package net.objectlab.kit.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import org.junit.Test;
public class CollectionUtilTest {
@Test... | __label__POS | 0.97921 |
/**
*
*/
package net.objectlab.kit.collections;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
/**
* @author Benoit Xhenseval
*
*/
public class ReadOnlyExpiringHashSetTest impleme... | __label__POS | 0.925384 |
package net.objectlab.kit.util.predicate;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.function.Predicate;
import org.junit.Test;
import lombok.AllArgsConstructor;
import lombok.Data;
import net.objectlab.kit.util.StringUtil;
public class PrintablePredicateTest {
@Data
@AllArg... | __label__POS | 0.813099 |
package net.objectlab.kit.util.predicate;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
import lombok.AllArgsConstructor;
import lombok.Data;
import net.objectlab.kit.util.StringUtil;
/**
* Example for the PrintablePredicate.
* Note that the example uses Lombok (highly rec... | __label__POS | 0.981468 |
package net.objectlab.kit.util;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
public class PopulationStandardDeviation {
private final Average average = new Average();
private List<BigDecimal> dataPoints;
public Optiona... | __label__POS | 0.954113 |
/*
* ObjectLab, http://www.objectlab.co.uk/open is sponsoring the ObjectLab Kit.
*
* Based in London, we are world leaders in the design and development
* of bespoke applications for the securities financing markets.
*
* <a href="http://www.objectlab.co.uk/open">Click here to learn more</a>
* ___ _ ... | __label__POS | 0.949731 |
/*
* ObjectLab, http://www.objectlab.co.uk/open is sponsoring the ObjectLab Kit.
*
* Based in London, we are world leaders in the design and development
* of bespoke applications for the securities financing markets.
*
* <a href="http://www.objectlab.co.uk/open">Click here to learn more</a>
* ___ _ ... | __label__POS | 0.941828 |
package net.objectlab.kit.util;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
/**
* Very basic distribution count per bucket. It is not meant to handle extreme large dataset and the calculation
* is quite basic and inefficient at the moment.
*... | __label__POS | 0.973493 |
package net.objectlab.kit.util;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Collectors;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* Simple counter ... | __label__POS | 0.732698 |
{******************************************************************************}
{ }
{ Delphi-WebMocks }
{ ... | __label__POS | 0.64078 |
@Html.Juice().Mobile.BeginPage()
@Html.Juice().Mobile.BeginHeader().Content(@<h1>Lists</h1>)
@{
Html.Juice().Mobile.Anchor(iconpos: MobileIconPosition.NoText, icon: MobileIcon.Home, direction: MobileDirection.Reverse)
.AddAttribute("href", "/")
.AddAttribute("id", "_Home")
.Content(@<text>Home</tex... | __label__POS | 0.873096 |
@Html.Juice().Mobile.BeginPage()
@Html.Juice().Mobile.BeginHeader().Content(@<h1>Collapsibles</h1>)
@{
Html.Juice().Mobile.Anchor(iconpos: MobileIconPosition.NoText, icon: MobileIcon.Home, direction: MobileDirection.Reverse)
.AddAttribute("href", "/")
.AddAttribute("id", "_Home")
.Content(@<text>Ho... | __label__POS | 0.751263 |
/**
*
*/
package net.objectlab.kit.util;
/**
* A simple helper class that is NOT SCIENTIFIC but accurate enough
* for the mere mortals, to calculate the number of milliseconds to
* be used in say a timer but setup in a easier way...
* @author Benoit Xhenseval
*
*/
public class PeriodBuilder {
private stati... | __label__POS | 0.85554 |
/**
*
*/
package net.objectlab.kit.collections;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* @author Benoit Xhenseval
*
*/
public class ReadOnlyExpiringHashSet<T> extends AbstractReadOnlyExpiringCollection implements ReadOnlyExpiringSet<T> {
pr... | __label__POS | 0.973983 |
package net.objectlab.kit.collections;
import net.objectlab.kit.util.PeriodBuilder;
/**
* Builder for the immutable classes.
* Default:
* - no time out
* - reload on expiry: true
* - load on first access only (ie not at construction time)
*
* @author Benoit Xhenseval
*
*/
public class ReadOnlyExpiringCollect... | __label__POS | 0.684757 |
/**
*
*/
package net.objectlab.kit.collections;
import java.util.Timer;
import java.util.TimerTask;
/**
* @author Benoit Xhenseval
*/
public abstract class AbstractReadOnlyExpiringCollection {
private TimeProvider timeProvider;
private long expiryTimeoutMilliseconds;
private boolean reloadOnExpiry = t... | __label__POS | 0.749574 |
/**
*
*/
package net.objectlab.kit.collections;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
/**
* @author Benoit Xhenseval
*
*/
public class ReadOnlyExpiringHashMap<K, V> extends AbstractReadOnlyExpiringCollection implements ReadOnlyExpiringMap<K, V> {
p... | __label__POS | 0.971909 |
/**
*
*/
package net.objectlab.kit.collections;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import net.objectlab.kit.util.Pair;
/**
* Inspired by the Google Collection builder.
*
* @author Benoit Xhenseval
*
*/
public class Def... | __label__POS | 0.913929 |
package net.objectlab.kit.util.predicate;
import java.util.function.Predicate;
/**
* Class to represent a Predicate that can be displayed for human consumption.
*
* Often, if you model some predicates for a data set, it would be great to print a predicate so that a user
* could understand it. You then get just a... | __label__POS | 0.668525 |
package net.objectlab.kit.util.excel;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
public class ExcelStyleTest {
@Test
public void testAll() {
final ExcelStyle build = ExcelStyle.builder().bold().center().header().italic().underline().numericFormat().wrap().build(... | __label__POS | 0.984878 |
package net.objectlab.kit.util.excel;
import org.junit.Before;
import org.junit.Test;
import java.math.BigDecimal;
import java.util.List;
import static junit.framework.Assert.assertEquals;
/**
* @author Marcin Jekot
* @since 2012/08/17
*/
public class ExcelTest {
private Excel xls;
private Excel xlsx;
... | __label__POS | 0.602352 |
package net.objectlab.kit.util.excel;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.function.Predicate;
import org.apache.poi.ss.usermodel.FillPatternType;
import org.apache.poi.ss.usermodel.IndexedColors;
import org.junit.Test;
public class ExcelWorkbookTest {
public static final Exc... | __label__POS | 0.998658 |
package net.objectlab.kit.util.excel.gist;
import java.io.IOException;
import java.math.BigDecimal;
import org.apache.poi.ss.usermodel.FillPatternType;
import org.apache.poi.ss.usermodel.IndexedColors;
import net.objectlab.kit.util.excel.ExcelStyle;
import net.objectlab.kit.util.excel.ExcelWorkbook;
public class Ex... | __label__POS | 0.999516 |
package net.objectlab.kit.util.excel;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.Workbook;
import org.a... | __label__POS | 0.740854 |
package net.objectlab.kit.util.excel;
import java.io.InputStream;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.a... | __label__POS | 0.811412 |
package net.objectlab.kit.pf.cuke;
import static org.assertj.core.api.Assertions.assertThat;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import... | __label__POS | 0.873641 |
package net.objectlab.kit.pf.ucits;
import java.util.HashMap;
import java.util.Map;
import net.objectlab.kit.pf.AssetDetails;
import net.objectlab.kit.pf.AssetDetailsProvider;
import net.objectlab.kit.pf.AssetEligibilityProvider;
import net.objectlab.kit.pf.BasicAsset;
import cucumber.api.java.en.Given;
public class... | __label__POS | 0.999575 |
package net.objectlab.kit.pf.ucits;
import static net.objectlab.kit.util.BigDecimalUtil.bd;
import static org.assertj.core.api.Assertions.assertThat;
//import static org.assertj.core.api.StrictAssertions.assertThat;
import static org.mockito.BDDMockito.given;
import java.util.ArrayList;
import java.util.List;
import... | __label__POS | 0.798124 |
package net.objectlab.kit.pf;
public class BasicAsset implements AssetDetails {
private String assetCode;
private String assetName;
private String ultimateIssuerCode;
public BasicAsset(final String assetCode, final String assetName, final String ultimateIssuerCode) {
super();
this.asse... | __label__POS | 0.966031 |
package net.objectlab.kit.pf.validator;
import org.apache.commons.lang3.StringUtils;
import net.objectlab.kit.pf.RuleIssue;
import net.objectlab.kit.pf.Severity;
import net.objectlab.kit.pf.ValidatedPortfolioLine;
public class RuleIssueImpl implements RuleIssue {
private final Severity severity;
private fina... | __label__POS | 0.981983 |
package net.objectlab.kit.pf.validator;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
import net.objectlab.kit.pf.ExistingPortfolioLine;
import net.objectlab.kit.pf.RuleIssue;
import net.objectlab.ki... | __label__POS | 0.719348 |
package net.objectlab.kit.pf.validator;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import net.objectlab.kit.pf.ExistingPortfolio;
import net.objectlab.kit.pf.RuleIssue;
import net.objectlab.kit.pf.Severity;
import net.objectlab.kit.pf.ValidatedPortfolioLine;
impor... | __label__POS | 0.96582 |
package net.objectlab.kit.pf.ucits;
import java.math.BigDecimal;
public class UcitsLimits {
private final BigDecimal maxConcentrationPerIssuer;
private final BigDecimal mediumConcentrationPerIssuer;
private final BigDecimal maxForMediumConcentration;
private final boolean fund;
private final boole... | __label__POS | 0.991052 |
<document>
<properties>
<author email="Kit@objectlab.co.uk">Benoit Xhenseval</author>
<title>Holiday Handler Algorithms</title>
</properties>
<head>
<meta name="description"
content="Each algorithm is explained: forward, backward, etc."
/>
<meta name="keywords"
content="Date calculator,... | __label__POS | 0.870942 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>简约导航</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta content="telephone=no,email=no" name="format-detection">
<m... | __label__POS | 0.993387 |
# jianavi
简约导航开源版,演示地址:https://appexplore.github.io/jianavi/
简约导航最初源自于小呆导航
因此当简约导航发展到现在,我决定做些什么,于是便有了简约导航开源版
### 界面截图
https://ae01.alicdn.com/kf/Hf8c6c8b083734fc9bd73e334017995fcK.jpg
### 版权事项
除了保留页脚版权信息中本项目的开源地址,其它地方可以随便改,请勿出售
### 使用说明
纯静态网页,下载zip,解压上传到虚拟主机就可以直接访问了
如果需要修改网址可以下载个notepad++ >> https://notepad-p... | __label__POS | 0.984163 |
package net.objectlab.kit.datecalc.jdk;
import java.util.Calendar;
import java.util.Date;
import net.objectlab.kit.datecalc.common.CurrencyDateCalculatorBuilder;
import net.objectlab.kit.datecalc.common.ccy.AbstractCurrencyDateCalculator;
/**
* JDK Date implementation for currency date calculator.
* @author Benoit... | __label__POS | 0.985702 |
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace QuickSearch {
public static class QuickSearchController {
private static QuickSearchWindow window_ = null;
#if UNITY_EDITOR_OSX
[MenuItem("Window/Toggle QuickSearch #`")]
#else
[MenuItem("Window/Toggl... | __label__POS | 0.860003 |
package net.objectlab.kit.datecalc.jdk;
import java.util.Calendar;
import net.objectlab.kit.datecalc.common.CurrencyDateCalculatorBuilder;
import net.objectlab.kit.datecalc.common.ccy.AbstractCurrencyDateCalculator;
/**
* JDK Calendar implementation for currency date calculator.
* @author Benoit Xhenseval
* @sinc... | __label__POS | 0.996541 |
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
namespace QuickSearch {
public sealed class SceneIndexer : SearchIndexerBase {
private readonly List<ISearchableElement> elements_ = new List<ISearchableElement>(100);
private readonly List<Transform... | __label__POS | 0.754649 |
package net.objectlab.kit.datecalc.joda;
import java.util.Calendar;
import java.util.HashSet;
import java.util.Set;
import junit.framework.TestCase;
import net.objectlab.kit.datecalc.common.DefaultHolidayCalendar;
import net.objectlab.kit.datecalc.common.HolidayCalendar;
import org.joda.time.LocalDate;
import org.jo... | __label__POS | 0.895955 |
package net.objectlab.kit.datecalc.gist;
import java.util.HashSet;
import java.util.Set;
import org.joda.time.LocalDate;
import net.objectlab.kit.datecalc.common.CalculatorConstants;
import net.objectlab.kit.datecalc.common.CurrencyDateCalculatorBuilder;
import net.objectlab.kit.datecalc.common.DefaultHolidayCalenda... | __label__POS | 0.805587 |
A wonderful > serenity > has taken <b>possession</b> of my entire soul, <a href="LINK1">like these sweet</a> mornings of spring which I enjoy with my <b><i>whole heart</i></b>. I am alone, and feel the <a href="http://example.com/" rel="nofollow">charm of existence</a> in this spot, which was <i>created for the b... | __label__POS | 0.916301 |
package net.objectlab.kit.datecalc.gist;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import net.objectlab.kit.datecalc.common.IMMDateCalculator;
import net.objectlab.kit.datecalc.common.Tenor;
import net.objectlab.kit.datecalc.common.TenorCode;
import net.objectlab.kit.datecalc.joda.L... | __label__POS | 0.994762 |
package net.objectlab.kit.datecalc.joda;
import net.objectlab.kit.datecalc.common.CurrencyDateCalculatorBuilder;
import net.objectlab.kit.datecalc.common.ccy.AbstractCurrencyDateCalculator;
import org.joda.time.LocalDate;
/**
* Joda LocalDate implementation for currency date calculator.
* @author Benoit Xhenseval
... | __label__POS | 0.99794 |
# frozen_string_literal: true
class Author < ActiveRecord::Base
has_many :posts
has_many :tagging, through: :posts # through polymorphic has_one
has_many :taggings, through: :posts, source: :taggings # through polymorphic has_many
has_many :tags, through: :posts ... | __label__POS | 0.923917 |
require 'spec_helper'
describe 'manifests' do
MY_MANIFEST = spec_asset("manifests/my-manifest.yml")
SYM_MANIFEST = spec_asset("manifests/sym-manifest.yml")
SUB_MANIFEST = spec_asset("manifests/sub-manifest.yml")
BAD_MANIFEST = spec_asset("manifests/bad-manifest.yml")
it "loads the specified manifest file" d... | __label__POS | 0.865321 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.