text stringlengths 7 1.01M |
|---|
/*
*
* * *****************************************************************************
* * Copyright (C) 2020 Testsigma Technologies Inc.
* * All rights reserved.
* * ****************************************************************************
*
*/
package com.testsigma.tasks;
import com.testsigma.model... |
package servlet;
import dao.MysqlDB;
import redis.clients.jedis.Jedis;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSessio... |
/*
* 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 tq.character.editor.data.player.attributes;
import tq.character.editor.core.errors.IllegalPlayerDataException;
public interface IAttributesData {
Integer getCharacteristicGain();
Integer getFluidGain();
Integer getUnspentAttributePoints();
void setUnspentAttributePoints(Integer attributePoi... |
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... |
/*
* Copyright 2010-2012 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 "l... |
package com.sequenceiq.cloudbreak.cloud.gcp.sql;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import javax.inject.Inject;
import org.jetbrains.annotations.NotNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereo... |
/**
* 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 atas.logic.commands.studentlist;
import static atas.commons.core.Messages.MESSAGE_INVALID_STUDENT_DISPLAYED_INDEX;
import static atas.logic.commands.CommandTestUtil.DESC_AMY;
import static atas.logic.commands.CommandTestUtil.DESC_BOB;
import static atas.logic.commands.CommandTestUtil.VALID_MATRICULATION_BOB;
i... |
/*
* Copyright 2011-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package Leetcode.Math;
public class RectangleArea_223 {
// respective area - overlap
public int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) {
int area = (C-A)*(D-B) + (G-E)*(H-F);
int left = Math.max(A, E);
int right = Math.min(C, G);
int bottom = Math.ma... |
/*
* 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 aplicacioncursos.mx.unam.fes.acatlan.mac.poo.frontend;
/**
*
* @author fernandov
*/
import java.awt.BorderLayout;
import j... |
package com.twu.biblioteca;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Scanner;
/**
* Created by alexa on 4/02/2019.
*/
public class LoginSystem {
ArrayList<Customer> customers;
Customer currentUser;
public LoginSystem() {
customers = ... |
package annotationstudy.mapper;
import org.springframework.stereotype.Repository;
@Repository
public class AppMapper {
}
|
package com.bluefireplatform.mapper;
import com.bluefireplatform.entity.OutdoorMiddleTab;
import com.bluefireplatform.entity.OutdoorMiddleTabExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OutdoorMiddleTabMapper {
/**
* This method was generated by MyBatis Generat... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
package jp.gr.java_conf.spica.plugin.gradle.jacoco.internal.domain.coverage.model;
public class ClassCoverageTitle {
private final ClassCoverageLimit limit;
public ClassCoverageTitle(ClassCoverageLimit limit) {
this.limit = limit;
}
@Override
public String toString() {
return "Class list with less... |
package com.github.switcherapi.client.model;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.github.switcherapi.client.SwitcherContext;
import com.github.switcherapi.client.exception.SwitcherException;
import com.github.switcherapi.client.factory.SwitcherE... |
/*
* Copyright (c) 2018.
* Development Lead: Cryptenet Ltd.
* Developer Credit:
* Alamgir Hossain,
* Md. Rezwanur Rahman Khan,
* Ashif Mujtoba
* This project is under Apache License 2.0
*/
package com.cryptenet.thanatos.dtmweb.home.thread_msg.mvp;
import android.content.Context;
import com... |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... |
/*
* 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 com.google.android.gms.internal.clearcut;
import java.io.IOException;
public interface zzan<T> {
T zzb(byte[] bArr) throws IOException;
}
|
package ru.job4j.oop;
public class Profession {
private String name;
private String surname;
private String education;
public Profession() {
}
public Profession(String name, String surname, String education) {
this.name = name;
this.surname = surname;
this.education = ... |
package uk.ac.lkl.client;
import java.util.ArrayList;
import java.util.HashMap;
import uk.ac.lkl.client.composer.CustomisationPopupPanel;
import uk.ac.lkl.client.composer.MacroBehaviourView;
import uk.ac.lkl.client.composer.MicroBehaviourEnhancement;
import uk.ac.lkl.client.composer.MicroBehaviourView;
import uk.ac.l... |
/**
* Copyright 2009-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
package main.edu.algorithm.week1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class MaxPairwiseProduct {
public static long getMaxPairwiseProduct(int[] numbers) {
long max_product = 0;
... |
/*
* 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 asm3.model;
public class Product {
private Integer id;
private String name;
private String description;
private Double price;
private String src;
private String type;
private String brand;
private Integer number = 1;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id =... |
package utilities.loggers.enums;
public enum LayoutTypes {
SIMPLE("SimpleLayout"),
XML("XmlLayout"),
TEST("TestLayout");
private final String name;
LayoutTypes(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
|
/*
* Copyright (c) 2010-2022. Axon Framework
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
/*
* 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.csf.dfc.classes;
public class TransactionInteret extends Transaction {
public TransactionInteret(double p_montant) {
super(TransactionType.DEBIT, p_montant, "Application d'un intérêt");
}
}
|
package com.test;
/**
* @className: MyClassTest
* @description:
* @author SunHang
* @createTime 2021/4/13 18:42
*/
public class MyClassTest {
public static void main(String[] args) {
MyClass myClass = new MyClass();
myClass.setS(100);
Object s = myClass.getS();
MyClass<String... |
package org.jtrim2.collections;
import java.util.Iterator;
import org.jtrim2.collections.RefList.ElementRef;
import org.junit.Test;
import static org.junit.Assert.*;
public class ElementRefIterableTest {
/**
* Test of iterator method, of class ElementRefIterable.
*/
@Test
public void testIterat... |
package com.termux.app;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import ... |
/*
* Copyright (c) Facebook, Inc. and 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 applic... |
/*
* 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 hawaiianhanafuda;
import java.util.ArrayList;
/**
*
* @author HentaiNeko
*/
public class HandCards extends De... |
/*
* Copyright 2020 Google 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 agreed to ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation.query;
import com.azure.cosmos.model.SqlQuerySpec;
import com.azure.cosmos.implementation.BackoffRetryUtility;
import com.azure.cosmos.implementation.DocumentClientRetryPolicy;
impor... |
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or p... |
package com.example.denaun.aoc2021.day09;
import static com.example.denaun.aoc2021.parsers.AocParsers.LEVEL_MAP;
import com.example.denaun.aoc2021.Coordinate;
import java.util.Collection;
import java.util.Comparator;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import org.jparsec.Parser;
class ... |
/*
* 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 ... |
/**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/sam/trunk/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/evaluation/TotalScoreListener.java $
* $Id: EmailListener.java 17372 2006-10-25 02:27:49Z daisyf@stanford.edu $
**... |
/*
* 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... |
/*
* Copyright (c) 2002-2020 Gargoyle Software 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 ... |
/*
* Copyright (C) 2012 The Guava 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 la... |
package com.networknt.eventuate.jdbc;
import com.networknt.eventuate.common.Int128;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
public class IdGeneratorImpl implements IdGenerator {
private Logger logger ... |
package org.develnext.jphp.core.compiler.jvm;
import org.junit.Assert;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.junit.runners.MethodSorters;
import php.runtime.Memory;
@RunWith(JUnit4.class)
@FixMethodOrder(MethodSorters.NAME_... |
/*
* 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 ©2016 TommyLemon(https://github.com/TommyLemon)
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 brown.tracingplane.baggageprotocol;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.nio.ByteBuffer;
import org.junit.Test;
import com.google.common.collect.Lists;
import br... |
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... |
package org.freebencher;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* A job made up of a number of concurrent tests
*
* @author chenjianjx@gmail.com
*
*/
public class FbJob {
private FbTarget target;
private FbJobOptions options;
priva... |
package com.github.loki4j.logback;
import com.github.loki4j.client.pipeline.PipelineConfig;
import ch.qos.logback.core.joran.spi.NoAutoStart;
/**
* Encoder that converts log batches into Protobuf format specified by Loki API
*/
@NoAutoStart
public class ProtobufEncoder extends AbstractLoki4jEncoder {
@Overrid... |
package io.jboot.admin.controller.app;
import com.alibaba.dubbo.common.utils.StringUtils;
import com.jfinal.aop.Before;
import com.jfinal.ext.interceptor.GET;
import com.jfinal.ext.interceptor.POST;
import com.jfinal.plugin.activerecord.Page;
import io.jboot.admin.base.common.BaseStatus;
import io.jboot.admin.base.com... |
package hudson.plugins.claim;
import groovy.lang.Binding;
import hudson.model.BuildBadgeAction;
import hudson.model.ProminentProjectAction;
import hudson.model.Run;
import hudson.model.Saveable;
import hudson.model.Hudson;
import hudson.model.User;
import java.io.IOException;
import java.util.Collections;
... |
/*
* Copyright (c) 2020 Karl Oczadly (karl@oczadly.uk)
* Licensed under the MIT License
*/
package uk.oczadly.karl.jnano.internal.gsonadapters;
import com.google.gson.*;
import java.lang.reflect.Type;
/**
* @author Karl Oczadly
*/
public class UnsignedLongAdapter implements JsonSerializer<Long>, JsonDeserializ... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... |
package ru.renbou;
import java.util.*;
/* Self-resizing list structure which compactly stores primitive ints
* and can be used the same way as ArrayList<Integer>
*/
public class IntList extends AbstractList<Integer> implements RandomAccess {
private static final int DEFAULT_CAPACITY = 2;
private static final... |
/*
* Copyright (c) 2016 Vivid Solutions.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* and Eclipse Distribution License v. 1.0 which accompanies this distribution.
* The Eclipse Public License is available at http://ww... |
package com.crazy.demo.other;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.BlurMaskFilter;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PixelFormat;
import and... |
/**
* Copyright © 2020 ForgeRock AS (obst@forgerock.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 app... |
// I believe in you. You can do the thing!
/*
* Copyright © 2018 Atomist, 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
*
... |
/*
* 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 1999-2015 dangdang.com.
* <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
*
* Unless required by applicable la... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package ch.nblotti.leonidas.entry.security;
import ch.nblotti.leonidas.entry.EntryPO;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;
@Entity(name = "SECURITY_ENTRY")
public class SecurityEntryPO extends EntryPO {
@NotNull(message = "Account is man... |
package tonius.thecorruptedsector.world;
import net.minecraft.entity.Entity;
import net.minecraft.util.Vec3;
import net.minecraft.world.WorldProvider;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraftforge.client.ForgeHooksClient;
import tonius.thecorruptedsector.config.TCSConfig;
import cpw.mods.f... |
package dev_Experiments;
import java.awt.Color;
import java.awt.GridLayout;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.ClientInfoStatus;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.SimpleDateF... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.apachedubbo.v2_7;
import static io.opentelemetry.api.trace.Span.Kind.CLIENT;
import static io.opentelemetry.api.trace.Span.Kind.SERVER;
import io.opentelemetry.api.trace.Span;
import io.opent... |
package com.ajts.androidmads.sqlite2xlDemo.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.ajts.androidmads.sqlite2xlDemo.model.Users;
imp... |
package com.tesco.aqueduct.pipe.logger;
import com.tesco.aqueduct.pipe.api.Message;
import com.tesco.aqueduct.pipe.api.OffsetEntity;
import com.tesco.aqueduct.pipe.api.PipeState;
import org.slf4j.Logger;
import org.slf4j.MDC;
import java.util.*;
import java.util.function.BiConsumer;
import java.util.function.Consumer... |
package cn.ucai.superwechat.activity;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import android.os.Bundle;
import android.text.TextUtils;
import android.widget.ProgressBar;
import android.widget.Toast;
import com.easemob.EMCallBack;
import com.easemob.chat.EMChatManager;
import com.easemob.... |
/*
* Copyright 2002-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Autopsy Forensic Browser
*
* Copyright 2011-2016 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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... |
package com.planet_ink.coffee_web.servlets;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;
import com.planet_ink.coffee_web.http.HTTPMethod;
import com.planet_ink.coffee_web.http.HTTPStatus;
import com.planet_ink.coffee_web.http.... |
package com.thalmic.myo.enums;
public enum XDirection {
X_DIRECTION_TOWARDS_WRIST,
X_DIRECTION_TOWARDS_ELBOW,
X_DIRECTION_UNKNOWN
} |
/*
* Copyright 2013, Unitils.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/LICENSE-2.0
*
* Unless required by applicable law or... |
/*
* 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 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... |
/*
* Copyright (C) 2006 Google 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 agreed to ... |
// 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.slipper.shiro.token;
import org.apache.shiro.authc.AuthenticationToken;
public class OAuth2Token implements AuthenticationToken {
private String token;
public OAuth2Token(String token){
this.token = token;
}
@Override
public Object getPrincipal() {
return token;
}... |
package com.qa.services;
public interface GetItemId<T> {
long getItemId(T t);
}
|
package org.ontosoft.client.components.form.formgroup.input;
import java.util.ArrayList;
import java.util.List;
import org.gwtbootstrap3.client.ui.form.error.BasicEditorError;
import org.gwtbootstrap3.client.ui.form.validator.Validator;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.client.... |
package me.dkzwm.widget.srl.sample.ui;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.w... |
package com.twu.biblioteca;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import static org.junit.Assert.assertEquals;
/**
* Created by parvez on 21/12/16.
*/
public class BibliotecaTest {
private ByteArrayOutputStream outContent ... |
package com.agile.spirit.components;
import com.agile.spirit.componentsinfo.SearchInfo;
import org.hippoecm.hst.content.beans.standard.HippoBean;
import org.hippoecm.hst.core.component.HstComponentException;
import org.hippoecm.hst.core.component.HstRequest;
import org.hippoecm.hst.core.component.HstResponse;
import o... |
/*
* 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... |
/*
* Copyright 2017 Apereo
*
* 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... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/tasks/v2beta3/cloudtasks.proto
package com.google.cloud.tasks.v2beta3;
/**
* <pre>
* Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue].
* </pre>
*
* Protobuf type {@code google.cloud.tasks.v2bet... |
package ua.training.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import ua.training.entity.order.Destination;
import java.util.Optional;
@Repository
public interface DestinationRepository extends CrudRepository<Destination, Long> {
Opti... |
package com.sap.iot.edgeservices.customhttpserver.http;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MultiValueMap;
import java.net.URI;
public class CustomResponseEntity extends ResponseEntity {
public CustomResponseEntity(HttpStatus... |
/*
* Copyright 2015 Adaptris 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 agree... |
package com.joojet.plugins.mobs.equipment.head;
import org.bukkit.ChatColor;
import org.bukkit.enchantments.Enchantment;
import com.joojet.plugins.mobs.enums.EquipmentType;
import com.joojet.plugins.mobs.enums.PlayerHead;
import com.joojet.plugins.mobs.equipment.Equipment;
import com.joojet.plugins.mobs.monsters.fact... |
package com.ecommerce.vojo.browse;
import com.ecommerce.dto.product.browse.ProductBrowseDTO;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Setter
@Getter
public class ProductBrowseWithCatVO {
private String catName;
private List<ProductBrowseDTO> products;
}
|
/*
* 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 fdmc.web.mbeans;
import fdmc.domain.model.binding.CatCreateBindingModel;
import fdmc.domain.model.service.CatServiceModel;
import fdmc.service.CatService;
import org.modelmapper.ModelMapper;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.F... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... |
package org.jhipster.health.web.rest;
import org.jhipster.health.service.AuditEventService;
import org.jhipster.health.web.propertyeditors.LocaleDateTimeEditor;
import org.joda.time.LocalDateTime;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.http.MediaType;
import org.springfram... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.