text stringlengths 7 995k |
|---|
package com.planet_ink.coffee_mud.Races;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink.coffee_mud.Behaviors.interfaces.*;
import com.planet_i... |
package com.koch.ambeth.merge.mergecontroller;
/*-
* #%L
* jambeth-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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://w... |
/*-
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2018 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark H... |
/*
* 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) OSGi Alliance (2011, 2015). 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 req... |
// Copyright 2018 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 com.bignerdranch.android.nerdmail.inject;
import com.bignerdranch.android.nerdmail.controller.DrawerActivity;
import com.bignerdranch.android.nerdmail.controller.EmailListFragment;
import com.bignerdranch.android.nerdmail.controller.EmailService;
import com.bignerdranch.android.nerdmail.view.EmailListItemView;... |
package heli.htweener.ease.impl.quart;
import heli.htweener.ease.IEaseFunction;
public class QuartOut implements IEaseFunction {
@Override
public double transform(double ratio) {
return 1-(ratio-=1)*ratio*ratio*ratio;
}
} |
package org.amc.game.chessserver.spring;
import static org.junit.Assert.assertFalse;
import static org.mockito.Mockito.mock;
import org.amc.User;
import org.amc.dao.DAO;
import org.amc.dao.DAOInterface;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameter... |
package science.atlarge.opencraft.opencraft.entity;
import com.flowpowered.network.Message;
import java.util.LinkedList;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import science.atlarge.opencraft.opencraft.net.message.play.entity.EntityHeadRotationMessage;
import science.atlarge.opencraft.open... |
/*
* Copyright 2019 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.hzero.boot.imported.domain.repository;
import org.hzero.boot.imported.domain.entity.LocalTemplate;
import org.hzero.mybatis.base.BaseRepository;
/**
* 资源库
*
* @author shuangfei.zhu@hand-china.com 2018-12-18 16:00:39
*/
public interface LocalTemplateRepository extends BaseRepository<LocalTemplate> {
} |
/*
* Copyright 2018 JDCLOUD.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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... |
/*
* Copyright 2017 Pavel Drankov.
*
* 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 ... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* un... |
package com.codigonline.tema2.repositories;
import java.sql.*;
public abstract class JDBCOpearations {
protected static Statement crearSentencia(Connection connection) {
try {
return connection.createStatement();
} catch (SQLException ex) {
System.err.println("No se ha pod... |
/*
* #%L
* SPIM Data: registered, multi-angle, multi-channel etc. image sequences.
* %%
* Copyright (C) 2013 - 2022 BigDataViewer developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistrib... |
package datetime;
import java.time.temporal.ChronoUnit;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.Duration;
import java.time.Period;
public class Java8TestPeriodDuration {
public static void main(String args[]){
Java8TestPeriodDuration java8TestPeriodDuration = new Java8TestPe... |
package pt.up.fe.comp.jmm.report;
public enum Stage {
LEXICAL,
SYNTATIC,
SEMANTIC,
LLIR,
OPTIMIZATION,
GENERATION,
OTHER // e.g. while parsing inputs, uncaught error, etc.
} |
/*
* 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 ... |
/*
* 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 slimeknights.tconstruct.world.worldgen.islands.variants;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import slimeknights.mantle.registration.object.EnumObject;
import slimeknights.tconstruct.shared.block.SlimeType;
import... |
package com.conatus.conatussb.repositories;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import com.conatus.conatussb.entities.Client;
@Repository
@Transactional
public class... |
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
// DO NOT EDIT THIS CLASS, AUTOMATICALLY GENERATED BY io.deephaven.engine.table.impl.by.typed.TypedHasherFactory
// Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
//
package io.deephaven.engine.table.impl.by.typed.staticopenagg.ge... |
package org.joq4j.worker;
import org.joq4j.Task;
public interface WorkerExecutor {
void processTask(Task task);
} |
/*
* 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 ca.gc.agr.mbb.seqdb.ws.payload;
import ca.gc.agr.mbb.seqdb.ws.Payload;
public class ContainerType extends BasePayload{
public String name = null;
public String baseType = null;
public Integer numberOfColumns = null;
public Integer numberOfRows = null;
public Integer numberOfWells = null;
... |
package com.prosper.day.applicationdefinition;
/* ****************************************************************************
/* Copyright (C) 2016 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 Lice... |
/* LanguageTool, a natural language style checker
* Copyright (C) 2018 Daniel Naber (http://www.danielnaber.de)
*
* This 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 2.... |
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016-2017 Testify 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
*
* ... |
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 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/lic... |
package com.lamine.todo;
import com.lamine.todo.model.Task;
import com.lamine.todo.services.TaskService;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Unit tests for {@link Task... |
/**
* Copyright (c) 2021 CentraleSupélec.
* This program and the accompanying materials are made
* available under the terms of the Apache License version 2.0
* which accompanies this distribution, and is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Contributors:
* Computer Science ... |
// ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... |
package com.dev.mytbt.Routing.APIs.BingAPI.Models.GetRoute;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Luís Henriques for MyTbt.
* 22-12-2017, 13:30
*
* Model for Bing API
* BingRouteResourceSet > BingRouteResource > BingRouteLeg > BingItinerary... |
package joshie.harvest.quests.player.recipes;
import joshie.harvest.api.quests.HFQuest;
import joshie.harvest.api.quests.Quest;
import joshie.harvest.npcs.HFNPCs;
import joshie.harvest.quests.Quests;
import joshie.harvest.quests.base.QuestRecipe;
import java.util.Set;
@HFQuest("recipe.noodles.thick.fried")
public cl... |
public abstract class Foo {
private class Bar extends Foo {}
{
java.util.List<Foo> list;
list.contains(new <caret>)
}
} |
/*
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... |
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
// Complete the angryProfessor function below.
static String angryProfessor(int k, int[] a) {
int count=0,i;
fo... |
package com.github.automain.vo;
import com.github.fastjdbc.BaseBean;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
public class SysUserAddVO implements BaseBean<SysUserAddVO> {
// 用户GID
private String gid;
// 创建时间
private Integer createTime;
... |
package com.skewpixel.rltut2019.ui;
import java.awt.*;
public class SpriteSheet {
private final int spriteWidth;
private final int spriteHeight;
private final Color transparentColor;
private final RenderBuffer spriteSheetBuf;
protected final int numCols;
protected final int numRows;
pub... |
package net.mloehr.mango;
import org.slf4j.LoggerFactory;
public class XPathNotFoundException extends Exception {
private static final long serialVersionUID = 4445972411189251015L;
private static final org.slf4j.Logger logger = LoggerFactory
.getLogger(XPathNotFoundException.class);
public X... |
package cn.stackflow.aums.common.bean;
import cn.stackflow.aums.domain.entity.Resource;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* @author: zhangc/jaguar_zc@sina.com
* @create: 2020-08-25 16:55
*/
@Getter
@Setter
public class ResourceUiDTO {
private String id; //id
priva... |
/*
* Copyright 2018 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 applica... |
/*
* Copyright 2002-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 ap... |
package org.cloudfoundry.multiapps.controller.process.listeners;
import java.time.ZonedDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Supplier;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.NoResultException;
import org.cloudfoundry.multiapps.com... |
/*
* Copyright 2022 ConsenSys AG.
*
* 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 wr... |
package com.twitterhashtag.model;
import com.google.gson.annotations.SerializedName;
/**
* Created by Hardik9850 on 21-Nov-15.
*/
public class SearchMetadata {
@SerializedName("completed_in")
private Float CompletedIn;
@SerializedName("max_id")
private long MaxId;
@SerializedName("max_id_str")... |
/*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON)
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 may ... |
package com.grasea.grandroid;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
su... |
package io.github.subzerolabs.wsnoop.api;
import java.nio.file.Path;
public interface WSnoopConfiguration {
int getMaxStoredRelationshipTransactions();
long relationshipTransactionAgeLimitCheckPeriod();
long getRelationshipTransactionAgeLimit();
Path getMessageDirectory();
} |
/*
Copyright 2020-2021. Huawei Technologies Co., Ltd. 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
https://www.apache.org/licenses/LICENSE-2.0
Un... |
package ru.job4j.array;
import org.junit.Test;
import static org.hamcrest.collection.IsArrayContainingInAnyOrder.arrayContainingInAnyOrder;
import static org.junit.Assert.assertThat;
/**Тест Удаление дубликатов в массиве.
*@author IvanPJF (teaching-light@yandex.ru)
*@since 15.09.2018
*@version 0.1
*/
public class... |
package com.ne0fhyklabs.freeflight.tasks;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import com.ne0fhyklabs.freeflight.drone.DroneConfig;
import com.ne0fhyklabs.freeflight.utils.CacheUtils;
import com.ne0fhyklabs.ftp.FTPClient;
import java.io.File;
import java.io.IOException... |
package com.psddev.dari.h2;
import com.psddev.dari.db.Region;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
public class RegionIndexModel extends AbstractIndexModel<RegionIndexModel, Region> {
@Indexed
private Region one;
@Indexed
private S... |
/*
* What is wrong with the following code, which attempts to count the number occurrences of the letter 'e'
* in a string, case-insensitively? Determine what is wrong with the code, and submit a corrected version
* that works properly. Use at least one method call from the Character class in your solution.
*/... |
package org.cboard.elasticsearch;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import com.google.common.base.Charsets;
import com.google.common.hash.Hashing;
import org.apache.commons.collections.keyvalue.DefaultM... |
/*
* Copyright 2019 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... |
package eta.runtime.stg;
import java.lang.ref.WeakReference;
import eta.runtime.util.CompactReferenceSet;
import eta.runtime.Runtime;
import eta.runtime.thunk.SelectorThunk;
import static eta.runtime.RuntimeLogging.*;
import static eta.runtime.thunk.SelectorThunk.*;
public class SelectorThunkManager {
private ... |
/*
* Copyright 2000-2015 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 agency.tango.materialintroscreen.fragments;
import android.os.Bundle;
import agency.tango.materialintroscreen.R;
import androidx.annotation.ColorRes;
import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;
import static agency.tango.materialintroscreen.fragments.SlideFragment.BACKGROUND... |
/*
* Copyright 2019 NAVER Corp.
*
* 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 w... |
/*
* An XML document type.
* Localname: token
* Namespace: http://schemas.xmlsoap.org/soap/encoding/
* Java type: org.xmlsoap.schemas.soap.encoding.TokenDocument
*
* Automatically generated - do not modify.
*/
package org.xmlsoap.schemas.soap.encoding;
/**
* A document containing one token(@http://schemas.xml... |
package org.apache.commons.mail;
import org.apache.commons.mail.Email;
import org.apache.commons.mail.EmailConstants;
import org.apache.commons.mail.EmailException;
import org.apache.commons.mail.SimpleEmail;
import java.util.Properties;
import javax.mail.Session;
import org.junit.Test;
import junit.framework.TestCas... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms.auth;
public final class R {
public static final class attr {
public static final int adSize = 0x7f01002... |
package com.avaje.ebeaninternal.server.persist.dml;
import java.sql.SQLException;
import com.avaje.ebean.bean.EntityBean;
import com.avaje.ebean.config.dbplatform.DatabasePlatform;
import com.avaje.ebeaninternal.server.core.PersistRequestBean;
import com.avaje.ebeaninternal.server.deploy.BeanDescriptor;
import com.av... |
package org.ranji.lemon.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOT... |
/*
* Copyright 2016-present Facebook, Inc.
*
* 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... |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other 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 License at
*
* http://www.apach... |
package br.com.inaconsultoria.ireceitas.data.model;
import org.parceler.Parcel;
/**
* iReceitas
* Created by Luiz Nogueira on 16/12/2018
* All rights reserved 2018.
*/
@Parcel
public class Step {
protected int id;
protected String shortDescription;
protected String description;
protected String vi... |
package br.edu.iftm.os.repository;
import br.edu.iftm.os.model.Permissao;
public class PermissaoRepository extends GenericRepository<Permissao, Integer>{
} |
package com.workdawn.speedlib.load;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.support.annotation.NonNull;
import com.workdawn.speedlib.ErrorCode;
import com.workdawn.speedlib.Status;
import com.workdawn.speedlib.callback.IDownloadPro... |
package com.obsidiandynamics.meteor;
import java.util.*;
final class ListRecordBatch implements RecordBatch {
private final List<Record> records;
ListRecordBatch(List<Record> records) {
this.records = records;
}
@Override
public int size() {
return records.size();
}
@Override
public I... |
/*
* Copyright 2016-2017 Axioma srl.
*
* 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.ig.training.hibernate.domainmodel.composite_keys.foreignKey;
import java.io.Serializable;
public class PostalAddessId implements Serializable {
private Long customerId;
private AddressType addressType;
//required by Hibernate
private PostalAddessId() {
}
public PostalAddessId(Long cust... |
/*
Copyright 2021. Futurewei Technologies 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
Un... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
package org.wikipedia.page;
import java.lang.System;
/**
* An enumeration describing the different possible namespace codes. Do not attempt to use this
* class to preserve URL path information such as Talk: or User: or localization.
* @see [Wikipedia:Namespace](https://en.wikipedia.org/wiki/Wikipedia:Namespace)
*... |
package com.baeldung.web.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.multipart.MultipartFile;
import java.io... |
package org.infinispan;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
import java.util.function.BiFunction;
import java.util.function.Function;
import javax.security.auth.Subject;
import javax.tr... |
/*
* Copyright © 2015-2019 Cask Data, Inc.
*
* 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 agr... |
package org.pitest;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.pitest.testapi.Description;
import org.pitest.testapi.TestResult;
import org.pitest.testapi.TestUnitState;
import org.pitest.util.XStreamCloning;
public class TestResultTest {
@Test
public void shouldCloneViaXStreamWithou... |
/**
* Scaffolding file used to store all the setups needed to run
* tests automatically generated by EvoSuite
* Fri May 22 21:38:52 GMT 2020
*/
package com.alibaba.fastjson;
import org.evosuite.runtime.annotation.EvoSuiteClassExclude;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.After;... |
package com.zarbosoft.gettus;
import com.zarbosoft.coroutines.Coroutine;
import com.zarbosoft.coroutinescore.SuspendExecution;
import io.undertow.client.ClientConnection;
import io.undertow.client.ClientExchange;
import io.undertow.client.ClientResponse;
import org.xnio.XnioWorker;
import java.net.URI;
/**
* A HTTP... |
/**
* 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... |
/**
* 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 cucumber.runtime.java;
import cucumber.api.java.Before;
import cucumber.runtime.CucumberException;
import cucumber.runtime.Glue;
import cucumber.runtime.io.ClasspathResourceLoader;
import org.junit.Test;
import org.mockito.Mockito;
import org.mockito.internal.util.reflection.Whitebox;
import static org.junit.... |
/*
* 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 com.pierless.space.data;
import com.google.api.client.util.Key;
/**
* Created by dschrimpsher on 7/26/15.
*/
public class TABLE
{
@Key
private FIELD[] FIELD;
@Key
private DATA DATA;
public FIELD[] getFIELD ()
{
return FIELD;
}
public void setFIELD (FIELD[] FIELD)... |
package company.microsoft;
public class MaxPower {
public int maxPower(String s) {
char prev = s.charAt(0);
int cur = 1;
int max = 1;
for (int i = 1; i < s.length(); ++i) {
if (s.charAt(i) == prev) {
cur++;
max = Math.max(cur, max);
... |
/*
* Created on Dec 6, 2010
*
* 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,... |
// Copyright: (c) 2014 Christopher Davis <http://christopherdavis.me>
// License: MIT http://opensource.org/licenses/MIT
package org.chrisguitarguy.beanstalkc;
import java.util.Map;
import java.util.Random;
import org.junit.Test;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.AfterClass;
pub... |
package dp;
/**
* @className: _115numDistinct
* @Description: 给定一个字符串 s 和一个字符串 t ,计算在 s 的子序列中 t 出现的个数。
* @author: Zhang Qihang
* @date: 2021/12/22 22:38
*/
public class _115numDistinct {
public int numDistinct(String s, String t) {
//1. dp[i][j]为s[0..i-1]出现t[0..j-1]的个数为dp[i][j]。()
// 选还是不选,其实有... |
package thesis.service;
import thesis.model.Vin;
public interface VinService extends EntityCRUDService<Vin> {
} |
/***********************************************************
* @Description : 归并排序的算法优化(判断arr[mid]是否大于arr[mid+1]是地话再接着往下进行merge)
* @author : 梁山广(Laing Shan Guang)
* @date : 2018/4/14 14:13
* @email : liangshanguang2@gmail.com
***********************************************************/
package Ch... |
package com.ifountain.opsgenie.client.model.alert;
import com.ifountain.opsgenie.client.model.BaseResponse;
/**
* Represents the OpsGenie service response for an add recipient request
*
* @author Sezgin Kucukkaraaslan
* @see com.ifountain.opsgenie.client.IAlertOpsGenieClient#addRecipient(AddRecipientRequest)
* @... |
package com.example.cdm.huntfun.photoView;
import android.graphics.RectF;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.ImageView;
/**
* Provided default implementation of GestureDetector.OnDoubleTapListener, to be overridden with custom behavior, if needed
* <p> <... |
/*
* Copyright 2018-present Open Networking 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.