text stringlengths 7 995k |
|---|
package com.animsh.pokedex.model.pokemondetails;
import com.google.gson.annotations.SerializedName;
public class Generation4 {
@SerializedName("diamond-pearl")
private DiamondPearl diamondPearl;
@SerializedName("heartgold-soulsilver")
private HeartgoldSoulsilver heartgoldSoulsilver;
private Plat... |
/**
*
* Base classes for the lightweight API.
*/
package org.bouncycastle.crypto;
/**
* The basic interface that basic Diffie-Hellman implementations
* conforms to.
*/
public interface BasicAgreement {
/**
* initialise the agreement engine.
*/
public void init(CipherParameters param);
/**
* give... |
package android.json.currentconverter.current;
import android.util.Log;
import com.google.gson.JsonElement;
import com.google.gson.annotations.SerializedName;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
/**
* Created by Mi... |
/**
* Copyright (C) 2015 Orange
* 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, s... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Marc de Verdelhan, 2017-2019 Ta4j Organization & respective
* authors (see AUTHORS)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the So... |
package db.migration.common;
import java.sql.SQLException;
import java.sql.Types;
import java.util.List;
import java.util.UUID;
import org.springframework.jdbc.core.JdbcTemplate;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.cloudfoundry.credhub.utils.UuidUtil;
import org.flywaydb.core.api.mi... |
package com.android.customviewgroup;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.Arrays;
import jav... |
package com.oe.aoepub_viewer.folioreader.model.event;
/**
* Created by gautam on 8/12/17.
*/
public class UpdateHighlightEvent {
} |
package com.nirenr.screencapture;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.media.projection.MediaProjectionManager;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.p... |
package org.intermine.web.struts;
/*
* Copyright (C) 2002-2014 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/lesser.h... |
package com.android.iam.retrofitlista;
import java.util.List;
import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.http.GET;
import retrofit2.http.Path;
public interface GithubUserAPI {
/* @GET("/users/{usuario}")
Call<List<Usuario>> getUsua... |
/*
* 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 m... |
/**
* Copyright (c) 2013-2021 Nikita Koksharov
*
* 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... |
package org.tic.concurrent.lock;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 描述:http://waitingkkk-163-com.iteye.com/blog/2240412
* <p>
* 作者:Jange Gu
* 网址:http://1gb.tech
* http://jange.me
* 创建时间:17/10/8.
*/
public class De... |
/*
* Copyright 2000-2011 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package com.taobao.taokeeper.research.watcher;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.a... |
package com.marqo404.appcys.web;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import com.marqo404.appcys.domain.Proveedor;
import com.marqo404.appcys.service.ProveedorService;
@ManagedB... |
/*
* Copyright (C) 2017 Peng fei Pan <sky@panpf.me>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.shaking.classkinds;
public class Class {
// Intentionally left empty.
} |
package com.socatel.dtos;
import javax.validation.constraints.Pattern;
public class PasswordDTO {
@Pattern(regexp = "(.{8,64})", message = "{user_password.length}")
private String password;
private String matchingPassword;
public PasswordDTO() {}
public boolean passwordsMatches() {
retu... |
/*
* Copyright 2005-2018 Dozer 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 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 n... |
/**
* Spring Security configuration.
*/
package com.therealdanvega.security; |
package com.zegoggles.smssync.auth;
import oauth.signpost.commonshttp.CommonsHttpOAuthProvider;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.RobolectricTestRunner;
import static org.fest.assertions.api.Assertions.assertThat... |
package ru.stqa.pft.addressbook.tests;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import ru.stqa.pft.addressbook.model.Groups;
import java.sql.*;
public class DbConnectionTest {
@Test
public void testDbConnection() {
Connection conn = null;
try{
conn = DriverMa... |
/**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford University
*
* 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:/... |
/*
* 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 a... |
/*
* Copyright 2016-2021 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 T02MultidimentionalArrays.exercise;
import java.util.Arrays;
import java.util.Scanner;
public class P04MaximalSum {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] rowsAndCols = readArray(scan.nextLine(), "\\s+");
int rows = rowsAndCols[0];
... |
/*
* This file is part of Chitchat, licensed under the MIT License (MIT).
*
* Copyright (c) DemigodsRPG.com <http://www.demigodsrpg.com>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwa... |
/*
* Copyright (c) 2009 Dave Ray <daveray@gmail.com>
*
* Created on Jun 3, 2009
*/
package org.jsoar.demos.robot.events;
import org.jsoar.demos.robot.Waypoint;
import org.jsoar.demos.robot.World;
/**
* @author ray
*/
public class WaypointRemoved extends AbstractWaypointEvent
{
public WaypointRemoved(World w... |
/*
* Copyright 2011-2019 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 cn.myperf4j.asm.aop;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.commons.AdviceAdapter;
/**
* Created by LinShunkang on 2018/4/15
*/
public class ProfilingDynamicMethodVisitor extends AdviceAdapter {
private static fi... |
package slimeknights.tconstruct.library.tools.helper;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.ai.attributes.Attributes;
import net.minecraft.entity.ai.attributes.ModifiableAttributeInstance;
import net... |
package com.sme.kafka.plain.ksqldb;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sme.kafka.plain.ConfigLoader;
import com.sme.kafka.plain.model.Config;
import io.confluent.ksql.api.client.Client;
import io.confluent.ksql.api.client.Cli... |
package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyr... |
package org.apereo.cas.ticket.registry;
import lombok.extern.slf4j.Slf4j;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.services.RegisteredServiceTestUtils;
import org.apereo.cas.ticket.AbstractTicketException;
import org.apereo.cas.ticket.ServiceTicket;
import org.apereo.cas.... |
/*
* Copyright 2012-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... |
package ru.job4j.threads1.pool;
import java.util.Queue;
public class Job extends Thread {
private final Queue<Runnable> tasks;
private boolean isLock = false;
public Job(Queue<Runnable> tasks) {
this.tasks = tasks;
}
@Override
public void run() {
Runnable job;
while ... |
package me.zhengjie.service.dto;
import lombok.Data;
import me.zhengjie.annotation.Query;
import javax.validation.constraints.NotBlank;
/**
* @author tmj
* @version 1.0
* @date 2021/7/28 9:26
*/
@Data
public class AuditorQueryDto {
@Query
private String status;
@Query
@NotBlank
private Stri... |
/*
* Copyright 2017-2022 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... |
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.java.decompiler.modules.decompiler;
import org.jetbrains.java.decompiler.modules.decompiler.stats.*;
import java.util.ArrayList;
import java.util.List;
p... |
package com.china.cibn.bangtvmobile.bangtv.entity.radio;
/**
* Created by cibn on 2018/5/21.
*/
public class WxLoginInfo {
/**
* uid : 100291
* uname : yi
* pic : http://wx.qlogo.cn/mmopen/ELSbz5bUQ2FpCnkT4wKar4zjJwBjfnO4lib4m6rM6CMh8ZVCy4QmC5QFxDWBk2DknRfhfxQ3KdcJSicbqrbsvylGPJ2adBQHav/0
*... |
package org.praisenter.data.slide;
import java.awt.image.BufferedImage;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.... |
package org.nustaq.serialization.coders;
import com.fasterxml.jackson.core.io.SerializedString;
public final class FSTJsonFieldNames {
public final String TYPE; // = "typ"
public final String OBJ; // = "obj";
public final String SEQ_TYPE; // = "styp"
public final String SEQ; // = "seq";
public fin... |
package cn.ucloud.unet.client;
import cn.ucloud.unet.model.DescribeVIPParam;
import cn.ucloud.unet.model.DescribeVIPResult;
import cn.ucloud.common.pojo.Account;
import cn.ucloud.unet.pojo.UnetConfig;
import org.junit.Before;
import org.junit.Test;
/**
* @description:
* @author: codezhang
* @date: 2018-09-27 14:52... |
package org.hisp.dhis.trackedentity.action.trackedentityinstancereminder;
/*
* Copyright (c) 2004-2016, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions ... |
package org.ovirt.engine.extensions.aaa.builtin.kerberosldap;
import java.util.Properties;
import org.ovirt.engine.core.compat.Guid;
public class LdapSearchByIdParameters extends LdapBrokerBaseParameters {
private Guid id;
public LdapSearchByIdParameters(Properties configuration, String domain, Guid id) {
... |
package love.wangqi.route;
import io.netty.handler.codec.http.HttpMethod;
import io.netty.handler.codec.http.HttpRequest;
import java.util.List;
import java.util.Set;
/**
* @author: wangqi
* @description:
* @date: Created in 2018/5/30 上午9:43
*/
public interface RouteMapper {
/**
* 根据路径获取Route
* @pa... |
package sk.teamsoft.autobundler.handlers;
import android.os.Bundle;
import android.util.Log;
import java.lang.reflect.Field;
/**
* @author Dusan Bartos
*/
public final class BundleHandler implements IFieldHandler {
private static final String TAG = "BundleHandler";
@Override
public void storeValue(Fie... |
package com.example.a.testduoxuantupian;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... |
package com.iqarr.maven.plugin.support;
import java.net.URL;
import java.util.Arrays;
import org.junit.Before;
import org.junit.Test;
import com.iqarr.maven.plugin.domain.JCVConfig;
import com.iqarr.maven.plugin.domain.JCVMethodEnum;
import com.iqarr.maven.plugin.domain.YUIConfig;
import com.iqarr.maven.plugin.suppo... |
class Solution {
public int minCost(int[][] costs) {
int[][] dp = new int[costs.length][3];
dp[0][0] = costs[0][0];
dp[0][1] = costs[0][1];
dp[0][2] = costs[0][2];
for (int i = 1; i < costs.length; ++i) {
dp[i][0] = Math.min(dp[i - 1][1] + costs[i][0], dp[i - 1][... |
/*
* SlidePuzzle
* Copyright (C) 2012 Matt Boes.
* All rights reserved.
*/
package com.boes.slidepuzzle.test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.boes.slidepuzzle.model.Board;
impor... |
package org.ovirt.engine.core.common.businessentities.storage;
import java.io.Serializable;
import org.ovirt.engine.core.common.utils.ObjectUtils;
import org.ovirt.engine.core.compat.Guid;
public class DiskLunMapId implements Serializable {
private static final long serialVersionUID = -5801053874071610531L;
... |
/*
* Copyright (C) 2014 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... |
/*
* Copyright 2015-2019 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... |
/*
* The JTS Topology Suite is a collection of Java classes that
* implement the fundamental operations required to validate a given
* geo-spatial data set to a known topological specification.
*
* Copyright (C) 2001 Vivid Solutions
*
* This library is free software; you can redistribute it and/or
* modify it u... |
/**
* MIT License
* <p>
* Copyright (c) 2017-2018 nuls.io
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
package pokecube.legends.spawns;
import java.util.Collections;
import java.util.List;
import java.util.UUID;
import java.util.function.Predicate;
import com.google.common.collect.Lists;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.en... |
public class Node {
public String value;
Node left;
Node right;
Node(String value) {
this.value = value;
right = null;
left = null;
}
} |
package com.ryanthetechman.death_detector.mixin;
import net.minecraft.client.gui.hud.ChatHud;
import net.minecraft.client.gui.hud.ChatHudLine;
import net.minecraft.text.Text;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import java.util.List;
@Mixin(ChatHud.class)
public... |
package com.distrimind.bcfips.crypto.fips;
import com.distrimind.bcfips.crypto.KeyWrapperUsingSecureRandom;
import com.distrimind.bcfips.crypto.Parameters;
/**
* Base class for the approved mode KeyWrapper implementations which need a SecureRandom.
*
* @param <T> the parameters type associated with the final imple... |
package schemas.saml.authenticationcontext;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for OperationalP... |
package com.alibaba.alink.operator.batch.feature;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.operator.batch.utils.MapBatchOp;
import com.alibaba.alink.operator.common.feature.BucketizerMapper;
import com.alibaba.alink.params.feature.BucketizerParams;
/**
* Map a continuous variable i... |
package fakekube.io.model;
import javax.validation.constraints.*;
import javax.validation.Valid;
import io.swagger.annotations.ApiModelProperty;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotatio... |
package adminorder.controller;
import adminorder.entity.Order;
import adminorder.service.AdminOrderService;
import com.alibaba.fastjson.JSONObject;
import edu.fudan.common.util.Response;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.J... |
package pokecube.core.database.recipes;
import java.util.List;
import java.util.Set;
import java.util.function.Predicate;
import javax.xml.namespace.QName;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
i... |
/*
* This file was automatically generated by EvoSuite
* Fri Nov 06 18:41:32 GMT 2020
*/
package org.quickserver.net.server;
import org.junit.Test;
import static org.junit.Assert.*;
import java.net.Proxy;
import java.nio.channels.SocketChannel;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.Evo... |
package com.yi.feign.consumer.feignclient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
/**
* 通过@FeignClient("服务名"),来指定调用哪个服务
* @author YI
* @date 2018-4-17 14:41:02
*/
@FeignClient("eureka-provider")
public interface HomeClient {
/**... |
package com.kh.onemile.util;
import org.springframework.stereotype.Component;
import lombok.extern.slf4j.Slf4j;
@Component
@Slf4j
public class SetDefaut {
public String setMemberCoronaDefault(String corona) {
return (corona!="")?"Y":"N";
}
} |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/**
*/
package gluemodel.CIM.IEC61970.Informative.MarketOperations;
import gluemodel.CIM.IEC61968.Common.Document;
import gluemodel.CIM.IEC61970.Informative.InfERPSupport.ErpInvoiceLineItem;
import gluemodel.CIM.IEC61970.Informative.InfERPSupport.ErpLedgerEntry;
import java.util.Date;
import org.eclipse.emf.common... |
/*
* Copyright 2021 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... |
/*
* 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 life.calgo.logic.commands;
import static java.util.Objects.requireNonNull;
import life.calgo.model.Model;
import life.calgo.model.day.DailyGoal;
/**
* Updates daily caloric goal of user.
*/
public class GoalCommand extends Command {
// Command and related Messages
public static final String COMMA... |
/*
* 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.gitile.example.modules.common.web;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
i... |
/**
* Copyright (c) 2011-2012 University of Bolton
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this
* software and associated documentation files (the "Software"), to deal in the Software
* without restriction, including without limitation the rights to use, copy, modify, ... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugin.platform;
import android.annotation.TargetApi;
import android.app.Presentation;
import android.content.Context;
import android.... |
/*
* Copyright © 2014 - 2020 Leipzig University (Database Research 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
*
* Unles... |
package com.solomatoff.mvc.controller;
import com.solomatoff.mvc.entities.User;
import org.junit.Test;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import java.util.stream.Stre... |
/**
* Copyright 2003, 2004, 2005. CodeStreet 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 ... |
/**
* Copyright (C) 1995-2013 levigo holding gmbh.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This pro... |
class Solution {
public boolean halvesAreAlike(String s) {
int c=0;
int d=0;
for(int i=0;i<s.length()/2;i++){
if(s.charAt(i)=='a'||s.charAt(i)=='e'||s.charAt(i)=='i'||s.charAt(i)=='o'||s.charAt(i)=='u'||s.charAt(i)=='A'||s.charAt(i)=='E'||s.charAt(i)=='I'||s.charAt(i)=='O'||s.charAt(i)=='U')... |
package com.fshows.fubei.biz.merchant.model.param;
import com.alibaba.fastjson.annotation.JSONField;
import com.fshows.fubei.foundation.model.BaseBizContentModel;
/**
* 微信小程序授权接口参数
*
* @author John (linwei@fshows.com)
* @version $Id ParamMinaPublicAuth.java, v1.0 2019-06-11 10:34 John Exp$
*/
@SuppressWarnings("... |
/*
* Copyright 2009-2014 PrimeTek.
*
* 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 i... |
/*
* Copyright 2001-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package cz.metacentrum.perun.webgui.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.ClickEven... |
package com.playground.daggerplayground.pages.mainactivity.model;
/**
* Model of main activity.
* Created by petnagy on 2017. 05. 03..
*/
public class MainActivityModel {
private boolean isLoggedIn;
public boolean isLoggedIn() {
return isLoggedIn;
}
public void setLoggedIn(boolean logged... |
/*
* Copyright (C) 2016 Original 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 applicable law ... |
package io.prismacloud.iac.commons.util;
import java.io.PrintStream;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml... |
package io.localmotion.adminjob.commands.chatmigration_v1_0_18_v1_0_19;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import io.localmotion.adminjob.commands.deletepersonaldata.DeletePersonalDataInput;
import io.localmotion.adminjob.domain.AdminCommand;
import io.localmotion.adminjob.domain.... |
package io.tinyrpc.transport;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.tinyrpc.Constants;
import io.tinyrpc.model.Message;
import io.tinyrpc.model.Response;
public class RpcClientHandler extends SimpleChannelInboundHandler<Message<Response>> {
... |
/*
* 3D City Database - The Open Source CityGML Database
* http://www.3dcitydb.org/
*
* Copyright 2013 - 2016
* Chair of Geoinformatics
* Technical University of Munich, Germany
* https://www.gis.bgu.tum.de/
*
* The 3D City Database is jointly developed with the following
* cooperation partners:
*
* virt... |
/**
* 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 in.ashwanik.dcp.problems.p1_30.p2;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class SolutionTest {
@Test
void testProduct() {
int[] array = {3, 2, 1};
int[] result = new Solution().product(array);
assertEquals(2, result[0]);... |
package ru.job4j.calculate;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test.
*
* @author Andrey Radchenko (radchenko.a.s@yandex.ru)
* @version $Id$
* @since 15.05. 2019
*/
public class CalculateTest {
/**
* Test echo.
*/
@Tes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.