text stringlengths 7 995k |
|---|
package com.sap.espm.model.data;
import java.math.BigDecimal;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.TypedQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sap.espm.model.Customer;
import com.sap... |
/**
* 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... |
/*
* 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 ... |
/*
* 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
* distributed u... |
package com.rohan.dp.command.solution.ex1.composite;
public interface Command {
void execute();
} |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.hullwhitediscounting;
import static com.opengamma.engine.value.ValuePropertyNames.CALCULATION_METHOD;
import static com.opengamma.eng... |
package org.delaunay.model;
import java.awt.geom.Rectangle2D;
public class Vectors {
public static Rectangle2D boundingBox(Iterable<? extends Vector> vs){
Rectangle2D rect = null;
for(Vector v : vs){
if(rect == null){
rect = new Rectangle2D.Double(v.x, v.y, 0, 0);
} else{
rect.... |
/*
* Copyright 2012-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 ap... |
package com.algoplay.visualgo.Sharmin;
import android.animation.ObjectAnimator;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.algoplay.visualgo.R;
import java... |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... |
package selim.core.events;
import org.bukkit.entity.Player;
import org.bukkit.event.HandlerList;
import selim.core.games.Game;
public class GameLeaveEvent extends GameEvent {
private static final HandlerList handlers = new HandlerList();
private final Player player;
public GameLeaveEvent(Game game, Player play... |
package com.xeed.cheapnsale.service.model;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.math.BigDecimal;
public class Payment implements Serializable {
@SerializedName("impUid")
String impUid;
@SerializedName("merchantUid")
String merchantUid;
@Ser... |
package br.com.collei.lavi.morphology.enums;
import java.util.Arrays;
import java.util.List;
import br.com.collei.lavi.morphology.filter.VerbConjugationFilter;
/**
* <p>Enumerated verb persons.</p>
* @author almir jr.
*
*/
public enum EnumVerbPersons implements VerbConjugationFilter {
I(1,"I"), YOU(2,"YOU"), H... |
/*
* Copyright (C) 2012 Google Inc. 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. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
/*
* 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 org.mockserver.mappers;
import io.netty.handler.ssl.util.LazyJavaxX509Certificate;
import org.mockserver.log.model.LogEntry;
import org.mockserver.logging.MockServerLogger;
import org.mockserver.model.HttpRequest;
import org.mockserver.model.X509Certificate;
import java.security.cert.Certificate;
import java.... |
package br.uece.tabusearch;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import org.junit.Before;
import org.junit.Test;
public class BasicTestCase {
private List<Solution> solutions;
@Test
p... |
// Copyright 2016 Google Inc. 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... |
/**
* 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 2012-2018 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... |
/*
* 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 com.jsgygujun.code.other._003_返回链表倒数第K个节点;
import com.jsgygujun.code.util.ListNode;
/**
* @author GuJun
* @date 2020/12/20
*/
public class Solution {
public int kthToLast(ListNode head, int k) {
ListNode fast = head;
ListNode slow = head;
// 快指针先走「k」步骤
for (int i = 0; i ... |
package br.unicamp.ic.lsd.mercurius.persistence.dao;
import java.util.List;
import br.unicamp.ic.lsd.mercurius.datatype.ProductImage;
import br.unicamp.ic.lsd.mercurius.datatype.ProductQuantity;
public interface ProductImageDAO extends DAO<ProductImage, Integer> {
List<ProductImage> getImagesFromProductQuantity(Pr... |
package module0384.a;
import javax.naming.directory.*;
import javax.net.ssl.*;
import javax.rmi.ssl.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et e... |
package test.pack.data.greenvine.dao.test.impl.springjpa;
import java.util.List;
import org.springframework.orm.jpa.support.JpaDaoSupport;
import org.springframework.stereotype.Repository;
import test.pack.data.greenvine.dao.test.TypeDao;
import test.pack.data.greenvine.entity.test.Type;
import java.lang.Long;
impo... |
//
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
package com.charlezz.lintcheck;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void... |
package com.project.convertedCode.globalNamespace.namespaces.Ramsey.namespaces.Uuid.classes;
import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs;
import com.runtimeconverter.runtime.classes.StaticBaseClass;
import com.project.convertedCode.globalNamespace.namespaces.Ramsey.namespaces.Uuid.classes.B... |
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
// Source File Name: WSIOMaxArtifactsRemove.java
package com.ibm.tivoli.maximo.interaction.generate;
import com.ibm.tivoli.maximo.interaction.obp.*;
import ... |
package net.java.ao.atlassian;
import net.java.ao.schema.DefaultSequenceNameConverter;
import net.java.ao.schema.SequenceNameConverter;
import static com.google.common.base.Preconditions.checkNotNull;
import static net.java.ao.Common.shorten;
public final class AtlassianSequenceNameConverter implements SequenceNameC... |
package com.braintreepayments.api;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Builder used to construct a UnionPay card tokenization request.
*/
public class UnionPayCa... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.filedistribution;
import com.yahoo.config.FileReference;
import com.yahoo.config.model.api.FileDistribution;
import com.yahoo.io.IOUtils;
import com.yahoo.log.Lo... |
/*
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 not use this f... |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/**
* 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 2002-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 ap... |
/*
* 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 (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.keys.cryptography;
import javax.crypto.NoSuchPaddingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoS... |
/*
* 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 com.wjruiying;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
... |
package uk.gov.dvla.osl.eventsourcing.store.http.entity;
import com.fasterxml.jackson.annotation.*;
import javax.annotation.Generated;
import java.util.HashMap;
import java.util.Map;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"name"
})
public class Autho... |
package org.usfirst.frc.team5800.robot.base.buttons;
import edu.wpi.first.wpilibj.buttons.Button;
/**
* An extension of the Button class that is triggered by a set value of an axis.
*
* @author Sean Zammit
*/
public class JoystickAxisButton extends Button
{
JoystickAxis m_axis;
boolean m_negative;
do... |
package org.ciwise.blackhole.aop.logging;
import org.ciwise.blackhole.config.Constants;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.asp... |
package com.github.hugh.util;
import com.github.hugh.model.dto.GpsDTO;
import java.text.DecimalFormat;
/**
* 坐标工具类
*
* @author hugh
* @since 1.6.3
*/
public class CoordinatesUtils {
/**
* 圆周率
*/
private static double pi = 3.14159265358979324;
/**
* 计算后的Π
*/
private static d... |
/**
* Copyright 2021 SPeCS.
*
* 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 writi... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.dataprotection.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.a... |
package dev.yong.com.videoedit.adapter;
/**
* Created by HY on 2017/9/28.
*/
public class CommonListAdapter {
} |
/*
* Copyright (C) 2016, 2018 Player, asie
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pro... |
/*
* Copyright (c) 2005-2022 Xceptance Software Technologies GmbH
*
* 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 requir... |
package com.reason.lang.core.psi.impl;
import com.intellij.psi.PsiElement;
import com.intellij.psi.impl.source.tree.CompositePsiElement;
import com.intellij.psi.tree.IElementType;
import com.intellij.util.containers.ContainerUtil;
import com.reason.lang.core.psi.PsiRecordField;
import java.util.ArrayList;
import java.... |
package module60packageJava0;
import java.lang.Integer;
public class Foo188 {
Integer int0;
Integer int1;
public void foo0() {
new module60packageJava0.Foo187().foo4();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public voi... |
package com.twasyl.slideshowfx.server.bus;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
/**
* This class provides a simple event bus that can be used in the whole SlideshowFX application in order to share events.
* In order to share events, {@l... |
package frc.robot.lib.trajectory.jetsoninterface.model;
import frc.robot.lib.trajectory.WaypointSequence;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class GetWaypointSequencePropertyResponse extends Response {
public WaypointSequence data;
... |
package com.github.fangming.springboot.h2;
import com.google.common.base.MoreObjects;
import org.junit.Test;
import java.util.function.Consumer;
import java.util.function.Function;
public class TestLamanda {
Consumer<Human> f1 = (Human human) -> System.out.println(human.getId());
Function<Human, String> f2... |
class TEazDM {
public void[][][] PjxGr5JkrP_;
public int[][] pPss;
public n7w0K992iuYu[][] oPLvqG () {
return false.ogpJS8LjBR;
while ( !-!b8Tt()[ !7835.ARyYTVR3B6WlX]) if ( -new void[ true.CHeeYG()][ ---!new wiQHxswbZY().PaW]) return;
Rzi0yp6EyY NxxdN2kc;
;
iJ4nv[] ... |
package dan2;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
public class Prva {
public static void main(String[] args) throws IOException {
System.out.println(intcode1("src/dan2/dan2.in", "src/d... |
/**
*
* $Id$
*/
package qualities.validation;
/**
* A sample validator interface for {@link qualities.EfficiencyCompliance}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator ... |
/*
* Copyright 2015 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
/*
* Copyright 2002-2017 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 com.vinsguru.api.service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Flux;
import reactor.core.scheduler.Schedulers;
import javax.annotation.PostConst... |
package this_Constructor;
public class Person {
private String name;
private int age;
public Person() {
// this()는 해당 클래스의 생성자
this("익명", 0);
}
public Person(String name) { // 생성자는 클래스와 이름이 같고 리턴 타입이 없음
this(name, 0);
}
public Person(String name, int age) { // 생성자는 클래스와 이름이 같고 리턴 타입이 없음
this.nam... |
package com.blakebr0.cucumber.inventory;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Inventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import net.minecraftforge.items.ItemStackHandler;
import org.apache.commons.lang3.ArrayUtils;
import java.util.HashM... |
/*
* Copyright 2000-2014 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... |
/*
* 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
* distribu... |
/**
* 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 it.infn.security.saml.iam.impl;
import it.infn.security.saml.configuration.AuthorityConfiguration;
import it.infn.security.saml.configuration.AuthorityConfigurationFactory;
import it.infn.security.saml.iam.AccessConstraints;
import it.infn.security.saml.iam.AccessManager;
import it.infn.security.saml.iam.Acces... |
package com.bazaarvoice.emodb.sor.client;
import com.bazaarvoice.emodb.client.EmoClient;
import com.bazaarvoice.emodb.client.EmoResource;
import com.bazaarvoice.emodb.sor.api.AuditBuilder;
import com.bazaarvoice.emodb.sor.delta.Deltas;
import com.bazaarvoice.emodb.sor.uuid.TimeUUIDs;
import org.hamcrest.Description;
i... |
package com.plivo.api.validators;
import com.plivo.api.exceptions.PlivoValidationException;
import com.plivo.api.util.Utils;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.regex.Pattern;
pub... |
package module0194.a;
import javax.rmi.ssl.*;
import java.awt.datatransfer.*;
import java.beans.beancontext.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolo... |
package module1063packageJava0;
import java.lang.Integer;
public class Foo753 {
Integer int0;
Integer int1;
public void foo0() {
new module1063packageJava0.Foo752().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public... |
package org.kyojo.schemaorg.m3n3.core.impl;
import java.util.ArrayList;
import java.util.List;
import org.kyojo.schemaorg.SimpleJsonBuilder;
import org.kyojo.schemaorg.m3n3.core.Clazz;
import org.kyojo.schemaorg.m3n3.core.Container.ActionStatus;
import org.kyojo.schemaorg.m3n3.core.Container.AdditionalType;
import or... |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2007, by Object Refinery Limited and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/in... |
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IExecutorService;
public class MasterMember {
public static void main(String[] args) throws Exception {
HazelcastInstance hz = Hazelcast.newHazelcastInstance();
IExecutorService executor = hz... |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* #%L
* Wisdom-Framework
* %%
* Copyright (C) 2013 - 2014 Wisdom Framework
* %%
* 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... |
package com.coq.record.files;
import com.coq.record.files.base.BaseFile;
import java.io.File;
import java.io.FileNotFoundException;
public class MetaDataFile extends BaseFile {
public MetaDataFile(File baseDir, String name, String mode) throws FileNotFoundException {
super(baseDir, name, mode);
}
} |
/**
* The MIT License
* Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS)
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Autho... |
//
// ========================================================================
// Copyright (c) 1995-2017 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
package com.simon.provider;
import org.apache.ibatis.jdbc.SQL;
import java.util.Map;
/**
* 侧边栏菜单多语言
* @author jeesun
* @date 2019-05-30
**/
public class SideMenuMultiLanguageProvider {
/**
* 构造SQL查询语句
* @param param 查询条件
* @return SQL字符串
*/
public String getList(Map<String, Object> param... |
package cn.dawangroad.jarteam;
import java.util.HashSet;
import java.util.Set;
/**
* @author zhiyingyang
* @version 2018-10-11 18:08
*/
public class LP {
public static int longestPalindrome(String s) {
int n = s.length();
boolean[][] pal = new boolean[n][n];
//pal[i][j] 表示s[i...j]是否是回文串... |
// This file was generated by the TNO Bean Generator.
// Any modifications to this file will be lost upon re-generation.
// Generated on: 2020/03/27 12:19:05
package nl.tno.rpr.datatypes;
/** Spatial structure for Dead Reckoning Algorithm FPW (2) and FPB (6). */
public class SpatialFPStruct {
/** Location of the o... |
package xal.smf.impl;
import xal.smf.*;
import xal.smf.attr.*;
import xal.smf.impl.qualify.*;
import xal.ca.*;
/**
* The implementation of the Horizontal Dipole corrector element. This class
* extends the dipole class, and is meant to hold dipole objects
* that are specifically correctors.
*
* @author J.... |
package basic_java;
class Box{
double width;
double height;
double depth;
//construct clone of an object
Box(Box ob){
width = ob.width;
height = ob.height;
depth = ob.depth;
}
//constructor used when all dimensions are specified
Box(double w, double h, double d){
width = w;
height = h;
depth = ... |
package io.github.kuroppoi.qtoolkit.pack.collision;
import java.util.HashSet;
import java.util.Set;
public class Collision {
private String sceneName;
private Set<Polygon> polygons;
public Collision(String sceneName) {
this.sceneName = sceneName;
this.polygons = new HashSet<>();
... |
package org.psjava.ds;
import org.psjava.util.VarargsIterable;
import java.util.Set;
public class SetFromVarargs {
public static <T> Set<T> create(T... values) {
return SetFromIterableV2.create(VarargsIterable.create(values));
}
} |
/*
* Copyright (c) [2016] [ <ether.camp> ]
* This file is part of the ethereumJ library.
*
* The ethereumJ library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, ... |
package com.snow.dcl.eduservice.service;
import com.snow.dcl.eduservice.entity.EduCourseDescription;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 课程简介 服务类
* </p>
*
* @author Dcl_Snow
* @since 2020-10-12
*/
public interface EduCourseDescriptionService extends IService<EduCourseDescrip... |
package mage.cards.o;
import java.util.UUID;
import mage.abilities.dynamicvalue.common.StaticValue;
import mage.abilities.dynamicvalue.common.TargetPermanentPowerCount;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuo... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.com)
*
* 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... |
/*
* Copyright [2021-present] [ahoo wang <ahoowang@qq.com> (https://github.com/Ahoo-Wang)].
* 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.... |
package baftek.pl.jbossapp;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.view.animation.LayoutAnimationController;
import android.widget.Button;
import android.widget.ProgressBar;
import android... |
package utils;
import pojo.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
* 进行输出
*/
public class Output {
private static final Constant constant = new Constant();
public static void output_daily(int purchase_server_num, HashMap<String, Integer> purchase_server_list,
... |
package seatsio.reports.events;
import java.util.Map;
public class EventReportSummaryItemBuilder {
private int count;
private Map<String, Integer> bySection;
private Map<String, Integer> byCategoryKey;
private Map<String, Integer> byCategoryLabel;
private Map<String, Integer> byStatus;
privat... |
package com.alipay.sdk.auth;
import android.webkit.WebView;
final class e
implements Runnable
{
e(AuthActivity paramAuthActivity, String paramString)
{
}
public final void run()
{
try
{
AuthActivity.h(this.b).loadUrl("javascript:" + this.a);
return;
}
catch (Exception localExc... |
/*
* Copyright (c) 7/18/2021, HuXiaozhong. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*/
package interview;
import java.util.Arrays;
public class No16dot03 {
private static final double ERROR = 1e-6;
public double[] intersection(int[] start1, int[] end1, int[] st... |
package com.letv.core.bean;
import java.util.ArrayList;
import java.util.List;
public class TopicDetailInfoListBean implements LetvBaseBean {
public static final String CACHE_KEY_TOPIC_ALBUM_LIST = TopicDetailInfoListBean.class.getSimpleName();
private static final long serialVersionUID = 1;
public List<T... |
package br.cert.app;
import java.net.URL;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.Capabilities;
import ru.stqa.selenium.factory.WebDriverPool;
/**
* Base class for all the JUnit-based test classes
*/
public ... |
/*
* Copyright 2012 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 © 2020 Compass. All rights reserved.
package com.compass.vinyl.serializer;
import com.compass.vinyl.Data;
import com.compass.vinyl.Scenario;
import com.compass.vinyl.serializer.models.Animal;
import com.compass.vinyl.serializer.models.Bird;
import com.compass.vinyl.serializer.models.Lion;
import com.comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.