text
stringlengths
7
995k
/** * <copyright> * * Copyright (c) 2010 SAP AG. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: ...
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
/* * #! * Ontopia OSL Schema * #- * Copyright (C) 2001 - 2014 The Ontopia Project * #- * 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/licenses/LICENSE...
package com.datadoghq.datadog_lambda_java; import io.opentracing.Scope; import io.opentracing.SpanContext; import io.opentracing.Tracer; import io.opentracing.Tracer.SpanBuilder; import io.opentracing.propagation.Format.Builtin; import io.opentracing.propagation.TextMapAdapter; import java.io.IOException; import java....
/* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it w...
package com.fh.service.fhdb.brdb.impl; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.fh.dao.DaoSupport; import com.fh.entity.Page; import com.fh.service.fhdb.brdb.BRdbManager; import com.fh.util.PageData; /** * 说明: 数据库管理 */ @Service("brdbServic...
import msg.Message; import msg.MessageValidator; import msg.PitcherMessageProcessor; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import pitcher.Logger; import pitcher.NetworkMetrics; import pitcher.PitcherCoordinator; import static org.mockito.Mockito.*; public class TestPitcherCoordin...
/* * MIT License * * Copyright (c) 2021 MASES s.r.l. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
package com.ly.quant; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.csvreader.CsvReader; import com.squareup.okhttp.*; import com.zoicapital.stockchartsfx.DailyStock; import org.apache.commons.lang.time.DateUtils; import java.io.IOException; import java.io.InputStream; impo...
package crimsonfluff.augmentedworkbenches.client; @net.fabricmc.api.Environment(net.fabricmc.api.EnvType.CLIENT) public class AugmentedWorkbenchesClient { }
/* * Copyright 2018 the original author or authors. * * 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/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Copyright 2015-2017 Austin Keener & Michael Ritter & Florian Spieß * * 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/licenses/LICENSE-2.0 * * Unl...
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
/* * Copyright 2000-2011 JetBrains s.r.o. * * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
package com.github.badoualy.telegram.tl.api; import static com.github.badoualy.telegram.tl.StreamUtils.*; import static com.github.badoualy.telegram.tl.TLObjectUtils.*; import com.github.badoualy.telegram.tl.TLContext; import com.github.badoualy.telegram.tl.core.TLBytes; import java.io.IOException; import java.io.Inp...
//snippet-sourcedescription:[ListQueryExecutionsExample.java demonstrates how to obtain a list of query execution IDs.] //snippet-keyword:[Java] //snippet-sourcesyntax:[java] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon Athena] //snippet-service:[athena] //snippet-sourcetype:[full-example] //snippet-source...
/* * Copyright 2018-2020 the original author or authors. * * 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/licenses/LICENSE-2.0 * * Unless required by ap...
package slimeknights.tconstruct.library.recipe.modifiers.severing; import lombok.AccessLevel; import lombok.NoArgsConstructor; import net.minecraft.world.entity.EntityType; import net.minecraft.world.item.crafting.RecipeManager; import slimeknights.mantle.recipe.helper.RecipeHelper; import slimeknights.tconstruct.comm...
/** * Copyright © 2016-2019 The Thingsboard Authors * * 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/licenses/LICENSE-2.0 * * Unless required by applicab...
/* * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
package com.ak.student.action; import com.ak.student.dao.impl.TeacherDaoImpl; import com.ak.student.entity.Teacher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServ...
package com.stylepatrick.keycloakAdminClientRestApi.resource.api; import com.stylepatrick.keycloakAdminClientRestApi.service.KeycloakAdminApiService; import lombok.AllArgsConstructor; import org.keycloak.representations.idm.GroupRepresentation; import org.keycloak.representations.idm.RoleRepresentation; import org.key...
/* * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file ...
package com.wdeanmedical.entity; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "race") public class Race extends BaseEntity implements Serializable { private static final long serialVersionUID = 14344080735917...
package pku.miao.zhihudaily.bean; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; import java.util.List; /** * Created by vector on 16/4/13. */ public class LatestNews { @SerializedName("date") @Expose private String date; @...
package Seventh_Week_Mock; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.Stack; public class Keys_and_Rooms { class Solution { public boolean canVisitAllRooms(List<List<Integer>> rooms) { Stack<Integer> dfs = new Stack<>(); dfs.add(0); ...
package nb_classifier; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Map; public class BagOfWordsTest { public static void main(String[] args) throws FileNotFoundException, IOException { String file = "C:\\Users\\Brian\\Desktop\\bowExample.txt"; BagOfWords bow = new BagOfWo...
/** * Copyright (c) 2011, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you 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/licenses/LIC...
/** * JBoss, Home of Professional Open Source. * Copyright 2014-2019 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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...
/* * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
/** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (5.0.1-SNAPSHOT). * https://openapi-generator.tech * Do not edit the class manually. */ package org.openapitools.api; import org.openapitools.model.Client; import io.swagger.annotations.*; import org.springframework.http...
package sam.collection; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Objects; import java.util.PrimitiveIterator.OfDouble; import java.util.PrimitiveIterator.OfInt; public interface PrimitiveIterators { public static final OfInt EMPTY_INT = new OfInt() { @Override public boo...
package com.amazon.dataprepper.plugins.certificate.s3; import com.amazon.dataprepper.plugins.certificate.CertificateProvider; import com.amazon.dataprepper.plugins.certificate.model.Certificate; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3URI; import com.amazonaws.services.s3.mo...
/* */ package com.elcuk.jaxb; /* */ /* */ import java.math.BigDecimal; /* */ import javax.xml.bind.annotation.XmlAccessType; /* */ import javax.xml.bind.annotation.XmlAccessorType; /* */ import javax.xml.bind.annotation.XmlAttribute; /* */ import javax.xml.bind.annotation.XmlType; /* */ import ...
/* * The MIT License (MIT) * * Copyright (c) 2014 daimajia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, cop...
package Feb2021Leetcode; import java.util.Comparator; import java.util.PriorityQueue; public class _0023MergekSortedLists { static public class ListNode { int val; ListNode next; ListNode() { } ListNode(int val) { this.val = val; } ListNode(int val, ListNode next) { this.val = val; this.nex...
package test.jd.framework.orm.dao.impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.sql.DataSource; import junit.framework.TestCase; import org.springframework.context.ApplicationContext...
/*- * << * UAVStack * == * Copyright (C) 2016 - 2017 UAVStack * == * 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/licenses/LICENSE-2.0 * * Unless r...
package com.ketai.gmall.sms.controller; import java.util.Arrays; import java.util.Map; import com.atguigu.core.bean.PageVo; import com.atguigu.core.bean.QueryCondition; import com.atguigu.core.bean.Resp; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.f...
/* * $Id$ * $URL$ * * ============================================================================= * Ikasan Enterprise Integration Platform * * Distributed under the Modified BSD License. * Copyright notice: The copyright for this software and a full listing * of individual contributors are as shown in the...
/* * Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available. * * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. * * BK-JOB蓝鲸智云作业平台 is licensed under the MIT License. * * License for BK-JOB蓝鲸智云作业平台: * ----------------------------------------------...
package com.codemybrainsout.onboarder; import android.content.Context; import android.os.Bundle; import android.support.annotation.ColorRes; import android.support.annotation.DrawableRes; import android.support.annotation.StringRes; import android.support.v4.app.Fragment; import android.support.v4.content.ContextCompa...
/** * Copyright 2011-2019 Asakusa Framework Team. * * 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/licenses/LICENSE-2.0 * * Unless required by applicable...
/* Copyright 2013 Brady Houseknecht 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/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwa...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.datafeed.extractor.scroll; import org.elas...
package io.github.factoryfx.javafx.widget.factory.masterdetail; import io.github.factoryfx.factory.FactoryBase; import io.github.factoryfx.factory.attribute.AttributeChangeListener; import io.github.factoryfx.factory.attribute.dependency.FactoryListAttribute; import io.github.factoryfx.factory.attribute.WeakAttributeC...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
/** * Licensed to Cloudera, Inc. under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Cloudera, Inc. licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use th...
/* This file is automatically generated. Do not edit. */ package net.runelite.api; public final class NullItemID { public static final int NULL = 7; public static final int NULL_9 = 9; public static final int NULL_11 = 11; public static final int NULL_13 = 13; public static final int NULL_29 = 29; public static ...
package configuration; /** * Class for Exception in configuration * @author Or Man * @version 1.0 * @since 21/01/2021 * @see Configuration */ public class ConfigurationException extends RuntimeException { private static final long serialVersionUID = 2898378772037793964L; public ConfigurationException() { s...
/* * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html...
package com.alibaba.ttl.testmodel; import com.alibaba.ttl.TransmittableThreadLocal; /** * @author Jerry Lee (oldratlee at gmail dot com) */ public class DeepCopyFooTransmittableThreadLocal extends TransmittableThreadLocal<FooPojo> { @Override protected FooPojo copy(FooPojo parentValue) { if (parentV...
package org.jeewx.api.third; /** * 选项设置信息返回实体 */ public class AuthorizerOptionRet { //授权公众号appid private String authorizer_appid; //选项名 private String option_name; //选项值 private String option_value; public String getAuthorizer_appid() { return authorizer_appid; } public void setAuthorizer_appid(String auth...
/** * This code was auto-generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. */ package com.mozu.api.resources.commerce.orders; import com.mozu.api.ApiContext; import java.util.List; import java.util.ArrayList; import com.moz...
package org.hl7.fhir.convertors.conv40_50.datatypes40_50; import org.hl7.fhir.convertors.advisors.impl.BaseAdvisor_40_50; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.general40_50.*; import org.hl7.fhir.convertors.conv40_50.datatypes40_50.metadata40_50.*; import org.hl7.fhir.convertors.conv40_50.datatypes40...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package run; import java.io.InputStream; import java.util.Properties; import java.util.stream.IntStream; import loader.InverseWidePropertyTableLoader; import loader.JoinedWidePropertyTableLoader; import loader.Settings; import loader.TripleTableLoader; import loader.VerticalPartitioningLoader; import loader.WidePrope...
package us.parr.bookish.entity; import org.antlr.v4.runtime.Token; public class SubSubSectionDef extends SectionDef { public SubSubSectionDef(int secNumber, Token titleToken, EntityWithScope enclosingScope) { super(secNumber, titleToken, enclosingScope); } }
/* * Copyright (C) 2015, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The PSYCO: A Predicate-based Symbolic Compositional Reasoning environment * platform is licensed under the Apache License, Version 2.0 (the "L...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL")...
package net.minecraft.block; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; ...
package br.com.zupacademy.frederico.treinomercadolivre.treinomercadolivre.dominio.pagamento; import br.com.zupacademy.frederico.treinomercadolivre.treinomercadolivre.dominio.compra.Compra; import javax.persistence.*; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import jav...
package classes; public class Pessoa { private String nome; private int idade; private String pai; private String mae; public Pessoa() { this.nome = ""; this.idade = 0; this.pai = ""; this.mae = ""; } public Pessoa(String nome) { this.nome = nome; ...
package net.trilogy.arch.adapter.structurizr; import lombok.Builder; import lombok.Data; import lombok.RequiredArgsConstructor; @Builder @Data @RequiredArgsConstructor public class WorkspaceConfig { private final Long workspaceId; private final String apiKey; private final String apiSecret; }
package drzhark.mocreatures.entity.passive; import drzhark.mocreatures.MoCTools; import drzhark.mocreatures.MoCreatures; import drzhark.mocreatures.entity.IMoCTameable; import drzhark.mocreatures.entity.MoCEntityTameableAnimal; import drzhark.mocreatures.entity.ai.EntityAIFleeFromPlayer; import drzhark.mocreatures.enti...
/** * Copyright wro4j@2011 */ package ro.isdc.wro.model.resource.processor.decorator; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.io.IOUti...
package org.hisp.dhis.api.mobile.model; /* * Copyright (c) 2004-2019, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the abo...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
package com.mall.common.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.mall.common.enums.DataSourceType; /** * 自定义多数据源切换注解 * * @author mall */ @Target(ElementType.METHOD) @Rete...
package com.atguigu.gmall.ums.service.impl; import com.atguigu.gmall.ums.entity.MemberCollectSpuEntity; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.servi...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package ru.stqa.pft.addressbook.appmanager; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; public class SessionHelper extends BaseHelper { public SessionHelper(WebDriver wd) { super(wd); } public void login(String username, String password) { type(By.name("user"), username); ...
package io.github.mainstringargs.alphaVantageScraper; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.lang.reflect.Type; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util....
/** * Copyright (c) 2016-present, RxJava Contributors. * * 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/licenses/LICENSE-2.0 * * Unless required by applicable l...
package org.apache.avro.perf.test.basic.jmh_generated; public class ArrayTest_TestStateDecode_jmhType_B3 extends ArrayTest_TestStateDecode_jmhType_B2 { byte p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; byte p016, p017, p018, p019, p020, p021, p022, p023, p024, ...
/* SPDX-License-Identifier: Apache-2.0 */ /* Copyright Contributors to the ODPi Egeria project. */ package org.odpi.openmetadata.accessservices.dataengine.rest; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation....
package se.bjurr.gitchangelog.internal.integrations.jira; import static com.google.common.base.Optional.absent; import static com.google.common.base.Optional.fromNullable; import static com.jayway.jsonpath.JsonPath.read; import static java.util.concurrent.TimeUnit.MINUTES; import java.io.UnsupportedEncodingException;...
/** * */ package com.didiglobal.sds.client.util; import java.util.ArrayList; import java.util.Collections; /** * * * @author manzhizhen * @version $Id: ListUtils.java, v 0.1 2016年2月21日 上午10:46:15 Administrator Exp $ */ public class ListUtils { @SafeVarargs public static <E> ArrayList<E> newArrayList(E...
/** * GetAircraftType.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package io.github.learnjaxrpc.ws.messages; public class GetAircraftType implements java.io.Serializable { private java.lang.String designation; private java.l...
package de.roskenet.examples.pt01ex01; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ExCommandLineRunnerApplicationTests { @Test void contextLoads() { } }
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.harvard.iq.dataverse; import edu.harvard.iq.dataverse.authorization.AuthenticationServiceBean; import edu.harvard.iq.datav...
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
/* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
package us.ihmc.avatar; import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.net.URI; import java.util.ArrayList; import java.util.Collections; import java.util.Random; import java.util.concurrent.atomic.AtomicBoolean; import org.junit.After...
/* * Copyright 2014-15 Skynav, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and...
package org.mustangproject.validator; import java.io.*; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.text.SimpleDateFormat; import java.util.Cal...
package com.chutneytesting.design.domain.scenario.compose; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Optional; import org.apache.commons.lang3.StringUtils; public enum StepUsage { GIVEN(Arrays.asList("etant donne", "given")), WHEN(Arrays.asList("quand", "w...
package com.design.patterns.behavioral.state; public class StateDemo { public static void main(String[] args) { Player player = new Player(); UI ui = new UI(player); ui.init(); } }
package com.biggerconcept.epubtoolbox.actions; import com.biggerconcept.epubtoolbox.results.Message; import com.biggerconcept.epubtoolbox.results.Result; import java.io.File; import org.apache.commons.io.FileUtils; public class Action implements _IAction { protected final String[] EPUB_EXTENSIONS = new String[1];...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * noti...
package com.simibubi.create.foundation.ponder.content; import com.google.common.collect.ImmutableList; import com.simibubi.create.AllBlocks; import com.simibubi.create.AllItems; import com.simibubi.create.content.contraptions.components.deployer.DeployerTileEntity; import com.simibubi.create.content.contraptions.compo...
package DesignPattern.StructurePattern.AdapterDesign; /** * author: WentaoKing * created on: 2020/3/3 * description: 适配器模式入口 */ public class AdapterMain { public static void main(String[] args) { //类适配器: ITarget target = new Adaptor(); target.f1(); //对象适配器: Adaptee ada...
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of this s...
package org.ebookdroid.fb2droid.codec; public class FB2MarkupParagraphEnd implements FB2MarkupElement { public static final FB2MarkupParagraphEnd E = new FB2MarkupParagraphEnd(); private FB2MarkupParagraphEnd() { } @Override public void publishToDocument(final FB2Document doc) { doc.comm...
package pinacolada.cards.fool.basic; import pinacolada.cards.base.PCLAffinity; import pinacolada.cards.base.PCLCardData; public class Strike_Orange extends ImprovedStrike { public static final PCLAffinity AFFINITY_TYPE = PCLAffinity.Orange; public static final PCLCardData DATA = Register(Strike_Orange.class);...
package no.nav.data.polly.codelist; import no.nav.data.polly.IntegrationTestBase; import no.nav.data.polly.codelist.commoncode.dto.CommonCodeResponse; import no.nav.data.polly.codelist.domain.Codelist; import no.nav.data.polly.codelist.domain.ListName; import no.nav.data.polly.codelist.dto.AllCodelistResponse; import ...
package com.javferna.packtpub.mastering.irsystem.concurrent; import com.javferna.packtpub.mastering.irsystem.common.Token; public class ConcurrentData { public static void getWordsInFile1(String fileName, ConcurrentInvertedIndex index) { long value = index .getIndex() .parallelStream() .filter(token ...
/* * Copyright (c) 2017 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.gui.api; import com.evolveum.midpoint.schema.constants.SchemaConstants; public class GuiConstants { ...