text stringlengths 7 1.01M |
|---|
package test;
import static org.junit.Assert.*;
import java.io.Reader;
import java.sql.Connection;
import org.apache.ibatis.cursor.Cursor;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.jdbc.ScriptRunner;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package io.stargate.web.docsapi.exception;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.jsfr.json.ErrorHandlingStrategy;
import org.jsfr.json.ParsingContext;
/** {@link ErrorHandlingStrategy} that re-throws the RuntimeExceptions */
public class RuntimeExceptionPassHandlingStrategy implements ... |
// Copyright (C) 2019 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 applicable ... |
package cz.mlcit.customers.exceptions;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
/**
* Created by Mlcit on 07.02.2017.
* DefaultNotFoundExceptionMapper catch NotFoundExceptions.
*/
@Provider
public class DefaultN... |
/*
Copyright (c) 2021-2022 by Contributors
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 writin... |
package me.vilsol.nmswrapper.wraps.unparsed;
import me.vilsol.nmswrapper.*;
import me.vilsol.nmswrapper.reflections.*;
import me.vilsol.nmswrapper.wraps.*;
@ReflectiveClass(name = "EnumProtocol")
public class NMSEnumProtocol extends NMSWrap {
public NMSEnumProtocol(Object nmsObject){
super(nmsObject);
... |
/*
* Copyright 2019-2020 NASTEL TECHNOLOGIES, 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 appl... |
package com.envisioniot.enos.iot_mqtt_sdk.core.profile;
import com.envisioniot.enos.iot_mqtt_sdk.core.login.LoginInput;
import com.envisioniot.enos.iot_mqtt_sdk.core.login.NormalDeviceLoginInput;
import com.envisioniot.enos.iot_mqtt_sdk.util.GsonUtil;
import com.google.common.base.Charsets;
import com.google.common.io... |
/**
* Copyright 2011 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 applic... |
package kg.apc.jmeter.vizualizers;
// TODO: rows in settings should have color markers for better experience
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.GraphicsEnvironment;
import java.awt.Insets;
import java.awt.eve... |
/*
* Copyright (c) 2020. 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, so... |
// Copyright 2013 The Flutter 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.editing;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Rect;
import android.os... |
package in.clouthink.daas.sbb.attachment.rest.controller;
import in.clouthink.daas.sbb.account.domain.model.User;
import in.clouthink.daas.sbb.attachment.rest.dto.*;
import in.clouthink.daas.sbb.attachment.rest.support.AttachmentRestSupport;
import in.clouthink.daas.sbb.security.SecurityContexts;
import in.clouthink.d... |
import java.sql.SQLException;
import java.util.List;
import com.itclass.dao.AbstractDAO;
import com.itclass.dao.PostDAO;
import com.itclass.model.Post;
public class TestConnection {
public static void main(String[] args) throws SQLException {
/*AbstractDAO<Integer, Post> dao = new PostDAO();
List<Post> posts ... |
package me.andrewpeng.cadence.core;
import android.os.Handler;
public class Loop {
public static int FPS = 60;
private Handler handler;
private Runnable runnable;
private final MainView mainView;
private long beginTime;
private long timeDiff;
private int sleepTime;
privat... |
/*
* Copyright 2015-2018 The OpenZipkin 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 or a... |
/*
* Copyright ยฉ 2018 Apple Inc. and the ServiceTalk project 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 requi... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright 2010-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 "lice... |
package com.huyq.evealarm.model;
/**
* ๅ็ด ็น
* @author huyiqi
* @date 2020/7/3
*/
public class Point{
public static final Point ZERO = new Point(0,0);
private int x;
private int y;
private int rgb;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public Point(int x... |
/*
* 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... |
/*
* 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 ... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 ... |
package jsortie.quicksort.selector.grubby;
public abstract class LeftHandedSelectorBase
extends RemedianSelectorBase {
protected abstract int selectLeafCandidate
( int[] vArray, int start, int count );
protected abstract int selectLeafCandidatePositionally
( int[] vArray, int start
, int elementCount... |
package chao.app.debugtools.widgets;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import androi... |
package org.extreme.model.managers;
public interface ReportSettingsManager {
}
|
/*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.jshell;
import com.sun.source.tree.CompilationUnitTree;
import com.sun.source.tree.Tree;
i... |
package com.centurylink.pctl.mod.address.domain.utils;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import java.time.LocalDat... |
/*___Generated_by_IDEA___*/
package com.twilio.example;
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
public final class R {
} |
/*
* Copyright 2015 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 1999-2101 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 com.example.hello;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/hello/myUserHomePage")
public class MyUserHomePageController {
@RequestMapping("/showa")
public String showMyUserHomePage(){
return "userHomeP... |
package com.java.util.function;
import com.java.Sneaky;
import java.util.function.Supplier;
@FunctionalInterface
public interface UncheckedSupplier<T> {
T get() throws Exception;
static <T> Supplier<T> unchecked(UncheckedSupplier<T> supplier) {
return () -> {
try {
retur... |
/* Copyright 2008, 2009, 2010 by the Oxford University Computing Laboratory
This file is part of HermiT.
HermiT is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License,... |
package com.in28minutes.concurrency;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.LongAdder;
public class ConcurrentMapRunner {
public static void main(String[] args) {
ConcurrentMap<Character, LongAdder> occurances = new ConcurrentHa... |
package fr.diabhelp.diabhelp.Connexion_inscription;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.wid... |
package ru.job4j.illustratingthread;
/**
* ะกะพะทะดะฐัั ะฟัะธะผะตั ะธะปะปััััะธััััะธะน ะฟัะพะฑะปะตะผั, ะบะพัะพััะต ะผะพะณัั ัะปััะธัััั ะฟัะธ ะธัะฟะพะปัะทะพะฒะฐะฝะธะธ ะผะฝะพะณะพะฟะพัะพัะฝะพััะธ.
*/
public class IllustratingThread implements Runnable {
private Count count;
private Count2 count2;
private IllustratingThread(Count count, Count2 count2) {
... |
package com.example.restservice;
public class Logging {
private String service;
private String message;
public Logging(String service, String message) {
this.service = service;
this.message = message;
}
public String getService() {
return service;
}
public String... |
package com.mysql.cj.protocol;
import com.mysql.cj.Messages;
import java.io.EOFException;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
public class FullReadInputStream extends FilterInputStream {
public FullReadInputStream(InputStream underlyingStream) {
super(underl... |
package com.alibaba.rocketmq.remoting;
import org.junit.Test;
import com.alibaba.rocketmq.remoting.exception.RemotingConnectException;
import com.alibaba.rocketmq.remoting.exception.RemotingSendRequestException;
import com.alibaba.rocketmq.remoting.exception.RemotingTimeoutException;
import com.alibaba.rocketmq.remot... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
/*
* 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.sendbird.uikit.widgets;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import androidx.databinding.DataBindingUtil;
import com.sendbird.android.BaseMessage;
import com.sendbird.android.... |
/**
* Copyright (C) 2011 Brian Ferris <bdferris@onebusaway.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 requ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package mage.cards.l;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.GainAbilityPairedEffect;
import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.SoulbondAbility;
import mage.cards.CardImpl;
import mag... |
/*
* 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
* distribut... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* ๅจๆ็ธๅ
ณ็ๅฐ็ไฝ็ฝฎ
*
* @author auto create
* @since 1.0, 2016-10-26 17:43:38
*/
public class NewsfeedLocationInfo extends AlipayObject {
private static final long serialVersionUID = 268... |
package com.ctrlcollege.ctrlcollege;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class AlteraSenha exte... |
package org.sculptor.dddsample.routing.serviceapi;
import static org.junit.Assert.assertFalse;
import java.util.List;
import org.junit.Test;
import org.sculptor.dddsample.routing.domain.TransitPath;
import org.sculptor.framework.test.AbstractDbUnitJpaTests;
import org.springframework.beans.factory.annotation.Autowir... |
package SWEA;
/**
* @author steve.jh.kang@gmail.com
* @time 2020. 2. 28. ์คํ 6:09:08
* @category
* @problem_description
* ์ด๊ธฐ์ ๋ฐฐ์ ๋ ๋๋ผ๋ณ ์ ์ง๋๋ฅผ ์น ํ ๋ ค๊ณ ๋ณด๋ ์ธ์ ๋ ๋๋ผ์ ์์ด ๋์ผํ ๊ฒฝ์ฐ๊ฐ ์์ด
* ๋๋ผ๋ณ ๊ตฌ๋ณ์ ์ํด ๋ค๋ฅธ ์์ผ๋ก ๋ณ๊ฒฝํด์ผํ๋ค. ์ธ์ ๋ ๋๋ผ์ ๋์ผํ ์์ ์ต์ ๋ณ๊ฒฝ์ ํตํด
* ์ง๋์ ๋ชจ๋ ๋๋ผ์ ์์ ์ง์ ํด๋ณด์. ์ต์ 3๊ฐ๊ตญ๊ฐ ์ต๋ 8๊ฐ ์์ 4๊ฐ
*
* ์
๋ ฅ: ๋๋ผ์, ๊ฐ ๋๋ผ์ ๋ฐฐ์ ๋ ์์ ๊ฐ์ด ์ซ์ 1๋ฒ๋ถํฐ 4๋ฒ๊น์ง ์ฃผ์ด์ง๋ค.
*... |
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2020 iText Group NV
Authors: Bruno Lowagie, Paulo Soares, et al.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free... |
/*
* The MIT License
*
* Copyright (c) 2015 Misakura.
*
* 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, mo... |
/*
* Copyright 2017 Alexey Andreev.
*
* 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 org.w3c.dom.html;
public interface HTMLTableRowElement extends HTMLElement {
int getRowIndex();
void setRowIndex(int var1);
int getSectionRowIndex();
void setSectionRowIndex(int var1);
HTMLCollection getCells();
void setCells(HTMLCollection var1);
String getAlign();
void setAlign... |
/**
* 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 bftsmart.microbenchmark.tpcc.table;
import java.util.Objects;
import java.util.Set;
import java.util.StringJoiner;
import org.javatuples.Quartet;
import org.javatuples.Quintet;
import org.javatuples.Tuple;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.... |
package com.atguigu.gulimall.coupon.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.ann... |
package org.osgi.service.indexer.impl;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.zip.GZIPInputStream;
imp... |
/* All Contributors (C) 2020 */
package io.github.dreamylost.practice;
import java.util.Arrays;
import java.util.Stack;
/**
* @description ๅ็จ่พ
ๅฉๆ ๅญๅจmin็ๅคงๅฐ๏ผ่ชๅฎไนไบๆ ็ปๆ
* @note:่ฃ
้ฅฐStack็ฑป
*/
public class AddMinFunctionForStack3 {
private int size;
private int min = Integer.MAX_VALUE;
private Stack<Integer> minSt... |
package com.micro.base.delegate;
import android.app.Activity;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentManager;
import com.micro.base.BaseActivity;
import com.micro.base.BaseFragment;
import com.micro.integration.Activit... |
package com.leisurexi.data.structures.leetcode;
import lombok.extern.slf4j.Slf4j;
import java.util.Arrays;
/**
* leetcode้ข่ฏ้ข 40.ๆๅฐ็kไธชๆฐ
*
* @author: leisurexi
* @date: 2020-03-20 22:26
* @since JDK 1.8
*/
@Slf4j
public class MinKNumbers {
/**
* ้ข็ฎๆ่ฟฐ:
* ่พๅ
ฅๆดๆฐๆฐ็ป arr ๏ผๆพๅบๅ
ถไธญๆๅฐ็ k ไธชๆฐใไพๅฆ๏ผ่พๅ
ฅ4ใ5ใ1ใ6ใ2ใ7ใ3ใ... |
package com.ashokvarma.gander.internal.ui.details;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LiveData;
import com.ashokvarma.gander.internal.data.GanderDatabase;
import com.ashokvarma.gander.internal.data.HttpTransaction;
import com.ashokvarma.gander... |
package de.metas.vertical.pharma.model.interceptor;
import org.adempiere.ad.modelvalidator.annotations.Interceptor;
import org.adempiere.ad.modelvalidator.annotations.ModelChange;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.model.ModelValidator;
import org.springframework.stereotype.Compone... |
package com.bertrand.android10.sample.presentation.view.fragment;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.text.Editable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import androi... |
/**
* 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.andersenlab.crm.rest.response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CountryDto {
@NotNull
private Long id;
private String name;
}
|
package com.jinhx.blog.common.config;
import com.google.code.kaptcha.impl.DefaultKaptcha;
import com.google.code.kaptcha.util.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Properties;
/**
* ้ช่ฏ็ ้
็ฝฎ
*
* @author jinhx
* @sinc... |
/*******************************************************************************
* Gorlok AO, an implementation of Argentum Online using Java.
* Copyright (C) 2019 Pablo Fernando Lillia ยซgorlokยป
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GN... |
package io.kubernetes.client.openapi.models;
import io.kubernetes.client.fluent.Nested;
import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
/**
* Generated
*/
public class V1beta1JobTemplateSpecFluentImpl<A extends io.kubernetes.client.op... |
package uk.gov.register.exceptions;
/**
* Used if there is a problem with the definition of a particular field.
* For example, if the field's definition does not match the rest of the
* environment.
*/
public class FieldDefinitionException extends RuntimeException {
public FieldDefinitionException(String message)... |
package io.digitalstate.stix.coo.extension.types;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.digitalstate.stix.coo.extension.CyberObservableExtension;
import io.digitalstate.stix.... |
package com.fangdd.tp.helper;
import java.io.*;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
/**
* @author xuwenzhen
* @date 18/1/2
*/
public class GzipHelper {
public static byte[] compress(final String str) throws IOException {
if ((str == null) || (str.length() == 0))... |
package com.samsung.esrenderengine;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will exe... |
/*
* Copyright 2011-2016 by the original author(s).
*
* 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 applicab... |
package org.nesc.ec.bigdata.service;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.nesc.ec.bigdata.cache.HomeCache;
import org.nesc.ec.bigdata.common.model.BrokerInfo;
import org.nesc.ec.bigdata.common.model.MeterMetric;
import org.nesc.ec.bigdata.common.util.ElasticS... |
// Copyright (c) YugaByte, 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 in writ... |
package com.rashwan.reactive_popular_movies.feature.movieDetails.movieReviews;
import com.rashwan.reactive_popular_movies.common.MvpView;
import com.rashwan.reactive_popular_movies.data.model.Review;
import java.util.List;
/**
* Created by rashwan on 4/20/17.
*/
public interface MovieReviewsView extends MvpView{
... |
/*
* 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
* distribut... |
/*
* Copyright (c) 2015-2020, www.dibo.ltd (service@dibo.ltd).
* <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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless ... |
package com.remondis.remap;
import com.googlecode.openbeans.BeanInfo;
import com.googlecode.openbeans.IntrospectionException;
import com.googlecode.openbeans.Introspector;
import com.googlecode.openbeans.PropertyDescriptor;
import static java.util.Objects.isNull;
import java.lang.reflect.Method;
import java.util.Arr... |
/*
* Copyright (c) 2018 J.S. Boellaard
*
* 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, merge, publ... |
package com.spark.platform.gateway.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
/**
* @author: wangdingfeng
* @Projec... |
package com.mars.citizen.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
public class UmsMenu implements Serializable {
private Long id;
@ApiModelProperty(value = "็ถ็บงID")
private Long parentId;
@ApiModelProperty(value = "ๅๅปบๆถ้ด")
private D... |
/*
* 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 services.dao;
import java.util.List;
import models.CellStyle;
/**
* @author Eva
* Interface to provide data access to CellStyle objects
*/
public interface CellStyleDAO {
/**
* Get all the cell styles that exist
* @return a java.util.List of CellStyle objects
*/
public List<CellStyle>... |
/*
* (c) Copyright 2018 Palantir 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
*
* Unless ... |
/*
* Copyright 2020 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 applica... |
/*
* 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 creos.simsg.api.loadapproximator.uncertain.multisubs.brainstorm;
import creos.simsg.api.model.Cabinet;
import java.util.*;
/**
* A bag of paths is a collection of paths (cf. {@link Path}) that share cabinets and fuses. Between two random
* bags, the intersection of cabinets and the intersection of fuses eq... |
/*
* Copyright 2012-2017 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 org.jdraft.pattern;
import com.github.javaparser.ast.body.BodyDeclaration;
import com.github.javaparser.ast.comments.BlockComment;
import com.github.javaparser.ast.expr.ObjectCreationExpr;
import com.github.javaparser.ast.Node;
import com.github.javaparser.ast.expr.Expression;
import com.github.javaparser.ast.... |
/*
* Copyright (c) 2011-2020, hubin (jobob@qq.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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by ... |
package com.sequenceiq.cloudbreak.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persist... |
/*
* 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 ... |
public class Vitoria extends Comunicado{
private String nomeJogador;
private int pontuacao;
public Vitoria(String jogador, int pontuacao) {
this.pontuacao = pontuacao;
this.nomeJogador = jogador;
}
public String getVencedor(){
return this.nomeJogador;
}
public... |
/*
* 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 io.katharsis.core.internal.jackson.mock.models;
import java.util.Collections;
import java.util.List;
import io.katharsis.resource.annotations.JsonApiId;
import io.katharsis.resource.annotations.JsonApiIncludeByDefault;
import io.katharsis.resource.annotations.JsonApiResource;
import io.katharsis.resource.anno... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.