text stringlengths 7 995k |
|---|
package kata;
import static org.junit.Assert.*;
import org.junit.Test;
public class MiddleCharacterTest {
public MiddleCharacterTest() {
}
@Test
public void evenTests() {
assertEquals("es", MiddleCharacter.getMiddle("test"));
assertEquals("dd", MiddleCharacter.getMiddle("middle"));
... |
/**
*
*/
package com.dokkaebistudio.tacticaljourney.alterations.blessings;
import com.badlogic.ashley.core.Entity;
import com.badlogic.gdx.math.RandomXS128;
import com.dokkaebistudio.tacticaljourney.Assets;
import com.dokkaebistudio.tacticaljourney.ai.random.RandomSingleton;
import com.dokkaebistudio.tacticaljourne... |
/*
* Copyright (C) 2007 The Android Open Source 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-2.0
*
* Unless required by app... |
package org.openstack4j.api.networking;
import org.openstack4j.common.RestService;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.network.Resource;
import org.openstack4j.openstack.networking.domain.NeutronResourceTag;
/**
* @author bboyHan
*/
public interface NeutronResourceTagSer... |
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... |
package com.thinkbiganalytics.install.inspector.config;
/*-
* #%L
* kylo-install-inspector
* %%
* Copyright (C) 2017 - 2018 ThinkBig Analytics
* %%
* 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... |
package me.devnatan.events4m.fight.command;
import me.devnatan.events4m.fight.argument.Argument;
import org.bukkit.command.CommandSender;
public class FightCommand extends Command {
public FightCommand(Argument... arguments) {
super(arguments);
}
@Override
public void execute(CommandSender s... |
// Copyright 2014 The Bazel Authors. 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 appl... |
package SY_9;
import java.awt.event.*;
import java.io.*;
import javax.swing.event.*;
import javax.swing.*;
import java.util.*;
public class TextListener implements DocumentListener {
JTextArea inputText,showText;
public void setInputText(JTextArea text) {
inputText = text;
}
public void setShowText(JT... |
/**
* Copyright 2012 Alex Yanchenko
*
* 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 ag... |
package co.nyzo.verifier.messages;
import co.nyzo.verifier.*;
import co.nyzo.verifier.util.NotificationUtil;
import co.nyzo.verifier.util.PrintUtil;
import co.nyzo.verifier.util.TestnetUtil;
import co.nyzo.verifier.MemoryMonitor;
import java.nio.ByteBuffer;
import java.util.*;
public class StatusResponse implements ... |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.mina;
import java.net.URISyntaxException;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.apache.camel.spi.EndpointUriFactory;
/**
... |
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (C) 2014-2018 Sam Bassett (aka Lothrazar)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), ... |
/*
* Copyright (C) 2017 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.board.web.forum.form;
... |
/*
* Copyright 1999-2012 Alibaba Group.
*
* 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 la... |
/**
* Licensed to Apereo under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright ownership. Apereo
* licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compli... |
package trendli.me.makhana.common.eventsystem;
import com.jme3.network.Client;
public abstract class ClientNetworkEvent extends Event
{
public enum ConnectionType
{
MASTER, GAME
}
private final Client client;
private final ConnectionType connectionType;
public ClientNetworkEvent( Cli... |
/*
* Copyright © 2014-2017 EntIT Software LLC, a Micro Focus company (L.P.)
*
* 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... |
package com.ruoyi.goods.service.impl;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.goods.domain.PmsCommentReplay;
import com.ruoyi.goods.mapper.PmsCommentReplayMapper;
import com.ruoyi.goods.service.IPmsCommentReplayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springf... |
package com.oney.WebRTCModule;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.util.Log;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
import com.faceboo... |
package org.eclipse.samples;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import org.eclipse.persistence.testing.perf.jpa.model.metaannotations.EListener;
@Entity
@EntityListeners(EListener.class)
public @interface LoggableEntity { } |
package com.wcy.gulimall.coupon.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 秒杀活动场次
*
* @author wangchunyu
* @email wangchunyu@gmail.com
* @date 2021-04-16 21:48:25... |
package com.francetelecom.rd.stubs.annotation;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2008 - 2014 Orange SA
* %%
* 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
... |
package edu.harvard.iq.dataverse.engine.command.impl;
import edu.harvard.iq.dataverse.DataverseRoleServiceBean;
import edu.harvard.iq.dataverse.engine.TestCommandContext;
import edu.harvard.iq.dataverse.engine.TestDataverseEngine;
import edu.harvard.iq.dataverse.engine.command.exception.CommandException;
import edu.ha... |
/*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* 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 app... |
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.nls.base;
import net.sf.mmm.util.nls.api.NlsFormatterPlugin;
/**
* T import net.sf.mmm.util.nls.api.NlsTemplateResolver; his is the abstract base-implementation of ... |
package ru.job4j.trackerupdate;
public interface UserAction {
String name();
boolean execute(Input input, Tracker tracker);
} |
package com.agentdid127.resourcepack.forwards;
import com.agentdid127.resourcepack.library.Converter;
import com.agentdid127.resourcepack.library.PackConverter;
import com.agentdid127.resourcepack.library.Util;
import com.agentdid127.resourcepack.library.pack.Pack;
import com.agentdid127.resourcepack.forwards.impl.*;
... |
package com.litle.sdk;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.BeforeClass;
import org.junit.Test;
import com.litle.sdk.generate.CardType;
import com.litle.sdk.generate.Credit;
import com.litle.sdk.generate.Credit.P... |
// Copyright 2021 Google LLC
//
// 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... |
package org.solovyev.tasks;
import javax.annotation.Nonnull;
/**
* User: serso
* Date: 4/8/13
* Time: 8:18 PM
*/
public interface NamedTask<V> extends Task<V> {
@Nonnull
String getName();
} |
package org.apereo.cas.services;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.google.common.base.Predicates;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import java.... |
/*
* Copyright 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://www.apache.org/licenses/LICENSE-2.0
*
* or in... |
/*
* Copyright 2000-2014 Vaadin Ltd.
*
* 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... |
package com.moxi.mogublog.web.config;
import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class FeignConfiguration {
@Bean
public BasicAuthRequestInterceptor basicAuthRequestInter... |
package de.develman.mmi.parser.impl;
import de.develman.mmi.model.Edge;
import de.develman.mmi.model.Graph;
import de.develman.mmi.model.Vertex;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
/**
* @author Georg Henkel <georg@develman.de>
*/
public class AdjacentMatrixLoader extends... |
package eu.datlab.worker.cl.parsed;
import eu.datlab.dataaccess.dto.codetables.PublicationSources;
import eu.datlab.worker.parser.BaseDatlabTenderParser;
import eu.dl.core.UnrecoverableException;
import eu.dl.dataaccess.dto.codetables.BodyIdentifier;
import eu.dl.dataaccess.dto.codetables.UnitType;
import eu.dl.dataac... |
package com.tkmtwo.timex;
import org.joda.time.DateTime;
import org.joda.time.Duration;
import org.joda.time.Period;
import org.joda.time.Interval;
import org.joda.time.Hours;
import org.joda.time.LocalTime;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
import static... |
/*
* Copyright 2003,2004 The Apache Software Foundation
*
* 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 ... |
package com.bobocode.basics;
/**
* This demo demonstrates why using Object is not safe. It's not safe because runtime casting can cause runtime
* exceptions. We should always fail as soon as possible. So in this code we should not allow setting String
* value at compile time, if we expect to work with integers.
* ... |
/*
* 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 upatras.automaticparallelism.exceptions;
/**
*
* @author Paris
*/
public class NoSimulationInstanceException extends Except... |
/*******************************************************************************
* Copyright 2014 See AUTHORS file.
*
* 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.a... |
class zj2vFsRiGBJ3 {
}
class UpC {
}
class nw9nOV0jJKe6O5 {
public boolean zd1Hls;
public static void dGMFSc8Ym (String[] DzC6gZYMkQYG) throws QS2IBq3 {
!--new int[ null.TaWI_1dMpERVK].n1YIgL98hTIt();
SPYB[][][] vOgM3bKJ = -new boolean[ ( -aXJiNl_WRkWR80.fufL)[ --( !-d4xp.xRFD1QSV2qe)[ D5p_... |
/*
* Copyright 2019-present HiveMQ 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 required by applicable law or ag... |
/*
* 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) 2008-2017, Hazelcast, 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 ... |
/*
* 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 2020 Google LLC
*
* 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 applicable law or agreed to ... |
package org.jjche.system.modules.system.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.jjche.mybatis.base.entity.BaseEntity;
/**
* <p>
* 数据字段角色
* </p>
*
* @author miaoyj
* @version 1.0.1-SNAPSHOT
* @... |
import java.util.ArrayDeque;
import java.util.Deque;
public class Solution {
public boolean validateStackSequences(int[] pushed, int[] popped) {
int len1 = pushed.length;
int len2 = popped.length;
if (len1 == 0 && len2 == 0){
return true;
}
if (len2 == 0 || ... |
package ca.waterloo.dsg.graphflow.graph;
import ca.waterloo.dsg.graphflow.util.IntArrayList;
import ca.waterloo.dsg.graphflow.util.ShortArrayList;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
/**
* Tests {@link SortedAdjacencyList}.
*/
public class SortedAdjacen... |
/**
* 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-2004,2006,2008 Jeremias Maerki.
*
* 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 appl... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/securitycenter/v1/securitycenter_service.proto
package com.google.cloud.securitycenter.v1;
/**
*
*
* <pre>
* Response message for grouping by assets.
* </pre>
*
* Protobuf type {@code google.cloud.securitycenter.v1.GroupAssetsR... |
/*
* 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.reencode;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.FileChannel;
import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;
/**
* Copyright 2012 Ni... |
/*******************************************************************************
* Copyright (C) 2017 wysohn
*
* 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... |
package xyz.zinglizingli.common.utils;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.Charsets;
import org.apache.http.config.Registry;
import org.apache.http.config.RegistryBuilder;
import org.apache.http.conn.socket.ConnectionSocketFactory;
import org.apache.http.conn.s... |
package org.bouncycastle.jcajce;
import org.bouncycastle.crypto.CharToByteConverter;
/**
* A password based key for use with PBKDF2 as defined in PKCS#5.
*/
public class PBKDF2Key
implements PBKDFKey
{
private final char[] password;
private final CharToByteConverter converter;
/**
* Basic cons... |
package jp.ne.donuts.safetynetplugin;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import com.unity3d.player.UnityPlayer;
public class SafetyNetRequestHandler {
public static void RequestVerification(final byte[] nonce, final String key, String callbackGameObject, String callbackM... |
package com.example.finalproject;
import androidx.appcompat.app.AppCompatActivity;
import androidx.room.Room;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.io.Serializable;
impo... |
/*
* Author: Mike Atkinson
*
* This software has been developed under the copyleft
* rules of the GNU General Public License. Please
* consult the GNU General Public License for more
* details about use and distribution of this software.
*/
package net.sourceforge.jrefactory.ast;
import net.sourceforge.j... |
package org.openntf.domino.graph2.builtin.social;
import org.openntf.domino.graph2.annotations.AdjacencyUnique;
import org.openntf.domino.graph2.annotations.IncidenceUnique;
import org.openntf.domino.graph2.annotations.TypedProperty;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.frames.modules.typed... |
package gameauthoring.waves;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import engine.IGame;
import engine.definitions.spawnerdef.WaveBlockDefinition;
import engine.definitions.spawnerdef.WaveDefinition;
import engine.profile.Profile;
import gameauthoring.creation.cellviews.Nam... |
package vktec.redlog.events;
import net.minecraft.block.BlockState;
import net.minecraft.block.PistonBlock;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
public class RedBlockEvent extends RedEvent.AtBlock {
public final int type, data;
public RedBlockEvent(long time, BlockStat... |
/*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 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.apach... |
package me.catcoder.sidebar.util;
import java.lang.reflect.Field;
public class ReflectionUtil {
/**
* Sets the value of a field on the object.
* @param obj The object
* @param fieldName The name of the field
* @param fieldValue The value to set
* @since 1.9
*/
p... |
/*
* 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.chenbo.dbcp.druid;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author : chenbo
* @date : 2020-09-27
*/
@SpringBootApplication
@MapperScan("com.chenbo.dbcp.druid.mapper")
p... |
/**
* Copyright (C) 2013 – 2016 SLUB Dresden & Avantgarde Labs GmbH (<code@dswarm.org>)
*
* 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/LICEN... |
/*
* (c)Copyright 2013-2014 Ken Yee, KEY Enterprise Solutions
*
* 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 may... |
package ca.zesty.fleetreporter;
/** Shared preference keys. */
public class Prefs {
static final String DAILY_POINT_SMS_LIMIT = "pref_daily_point_sms_limit";
static final String DAILY_RELAUNCH_TIME = "pref_daily_relaunch_time";
static final String DESTINATION_NUMBER = "pref_destination_number";
static ... |
package org.basex.query.func.bin;
import static org.basex.query.QueryError.*;
import java.nio.charset.*;
import org.basex.query.*;
import org.basex.query.func.convert.*;
import org.basex.query.value.item.*;
import org.basex.query.value.seq.*;
import org.basex.util.*;
/**
* Function implementation.
*
* @author Ba... |
package owltools.gaf.inference;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entr... |
/*
* 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 ... |
package com.communote.server.core.image.type;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.communote.common.image.ImageHelper;
import com.communote.server.api.ServiceLocator;
import com.communote.server.api.core.image.ByteArrayImage;
import com.communote.server.api.core.image.Image;
import com.... |
/*
* Copyright 2014-2019 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 ru.stqa.project1.addressbook.tests;
import com.google.gson.Gson;
import com.thoughtworks.xstream.XStream;
import org.openqa.selenium.json.TypeToken;
import org.testng.annotations.*;
import ru.stqa.project1.addressbook.model.ContactData;
import ru.stqa.project1.addressbook.model.Contacts;
import ru.stqa.project... |
package com.ferreusveritas.dynamictrees.systems.genfeatures;
import com.ferreusveritas.dynamictrees.api.IPostGenFeature;
import com.ferreusveritas.dynamictrees.api.IPostGrowFeature;
import com.ferreusveritas.dynamictrees.api.TreeHelper;
import com.ferreusveritas.dynamictrees.api.network.MapSignal;
import com.ferreusve... |
package de.oes.core2.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import de.oes.core2.entity.eXPERIMENTrUN;
@Repository
@Transacti... |
package dev.coomware.libs.tweaks;
import org.bukkit.block.Block;
import org.bukkit.entity.*;
import java.util.HashMap;
import java.util.Map;
public final class SupportedEntities {
public static Map<String, EntityType> getAllEntities() {
Map<String, EntityType> typeMap = new HashMap<>();
typeMap.... |
/**
* Copyright (C) 2010 - 2014 VREM Software Development <VREMSoftwareDevelopment@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 copy of the License at
*
* http://www.apache.o... |
package com.teoan.tclass.common.config;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.Request... |
package club.easyutils.weprogram.model.analysis.response;
import club.easyutils.weprogram.model.BaseResponseModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 访问页面。目前只提供按 page_visit_pv 排序的 top200。
* @author rainyblossom
*/
@Data
@Builder
@NoAr... |
package worldline.com.foldablelayout.demo.admin;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android... |
package ua.com.fielden.platform.reflection;
import static java.lang.String.format;
import static java.util.Optional.empty;
import static java.util.Optional.of;
import static ua.com.fielden.platform.reflection.Finder.findFieldByNameOptionally;
import static ua.com.fielden.platform.reflection.PropertyTypeDeterminator.is... |
/*
* 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 n... |
package com.highperformancespark.examples.objects;
import java.io.Serializable;
public class JavaPandas implements Serializable {
private String name;
private String zip;
private int pandaSize;
private int age;
/**
* @param name name of panda
* @param zip zip code
* @param pandaSize siz... |
package com.fanhl.logviewsample.util;
import com.fanhl.logview.LogViewApi;
/**
* A Custom Log with LogViewApi.
* <p/>
* Created by fanhl on 16/4/29.
*/
public class Log {
public static void v(String tag, String msg) {
android.util.Log.v(tag, msg);
LogViewApi.v(tag, msg);
}
public stat... |
package com.ikaimen.net.aio;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.nio.channels.AsynchronousSocketChannel;
import java.nio.channels.CompletionHandler;
import java.util.concurrent.CountDownLatch;
/**
* @author Mr.Chen
* @description 客户端读取处理器
... |
package com.gdtopway.core.entity.def;
import com.gdtopway.core.annotation.MetaData;
public enum DynamicParameterTypeEnum {
@MetaData(value = "日期", comments = "不带时分的年月日日期,格式yyyy-MM-dd")
DATE,
@MetaData(value = "日期时间", comments = "带时分的日期,格式:yyyy-MM-dd HH:mm:ss")
TIMESTAMP,
@MetaData("浮点数")
FL... |
package org.opencds.cqf.cql.execution;
import org.opencds.cqf.cql.elm.execution.EquivalentEvaluator;
import org.opencds.cqf.cql.exception.InvalidOperatorArgument;
import org.opencds.cqf.cql.runtime.DateTime;
import org.opencds.cqf.cql.runtime.TemporalHelper;
import org.opencds.cqf.cql.runtime.Time;
import org.testng.A... |
package org.fan.demo.scheduledservice.jobs;
import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
/**
* @author Fan
* @ve... |
/*
* 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 org.jpc.mapping.converter.catalog.error;
import org.jpc.Jpc;
import org.jpc.JpcBuilder;
import org.jpc.term.Compound;
import org.junit.Test;
public class ErrorConversionsTest {
Jpc jpc = JpcBuilder.create().build();
@Test
public void testJException() {
try {
throw new RuntimeException();
} catch(... |
package com.oltpbenchmark.benchmarks;
import com.usc.dblab.cafe.CachePolicy;
public class Config {
public static final String CACHE_POOL_NAME = "oltpbench";
public static boolean ENABLE_LOGGING = false;
public static boolean CAFE = true;
public static String[] cacheServers = new String[] { "168.62.24.... |
package com.planet_ink.coffee_mud.Abilities.Common;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.Common.CraftingSkill.CraftParms;
import com.planet_ink.coffee_mud.Abilities.int... |
package cn.ac.caict.iiiiot.idisc.core;
/*
* 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 t... |
package cl.zpricing.avant.web.administrators;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.we... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.