text stringlengths 7 1.01M |
|---|
package com.ateam.paw_pals.model.entity;
import javax.persistence.*;
import com.ateam.paw_pals.model.SecurityRoleName;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Entity(name = "security_role")
public class RoleEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Lo... |
package com.apicatalog.jsonld.suite;
import java.net.URI;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import javax.json.JsonObject;
import javax.json.JsonString;
import javax.json.JsonValue;
import com.apicatalog.jsonld.api.JsonLdErrorCode;
import com.apicatalog.jsonld.api.Jso... |
package com.capitalone.dashboard.repository;
import com.capitalone.dashboard.model.Build;
import com.capitalone.dashboard.model.GenericCollectorItem;
import org.bson.types.ObjectId;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.data.repository.CrudRepository;
import ja... |
package net.sf.esfinge.metadata.locate.conventions.mapping;
import net.sf.esfinge.metadata.annotation.container.ContainerFor;
import net.sf.esfinge.metadata.annotation.container.ContainsAnnotation;
import net.sf.esfinge.metadata.container.ContainerTarget;
import net.sf.esfinge.metadata.locate.conventions.annotations.P... |
package no.ntnu;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
/**
* Repository interface for accessing Book data in the database.
* Spring will auto-generate necessary methods.
*/
public interface BookRepository extends CrudRepository<Book, Integer> {
List<Book> findByGenr... |
package JavaCode.random_records.N1301_1400;
/**
* author:fangjie
* time:2020/3/17
*/
public class N1381_design_a_stack_with_increment_operation {
class CustomStack {
private int size;
private final int maxSize;
private Node head;
private Node tail;
public CustomStack(int ... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
package com.onlinepayments.client.android.exampleapp.view;
import android.view.View;
/**
* ViewInterface that depicts a contract all views should follow
*
* Copyright 2020 Global Collect Services B.V
*/
public interface GeneralView {
View getRootView();
}
|
package uam.mx.ayd.proyecto.presentacion;
import javax.swing.JOptionPane;
import uam.mx.ayd.proyecto.Aplicacion;
import uam.mx.ayd.proyecto.negocio.ControlCatalogo;
/**
*
* @author Omar JRZ
*/
public class VentanaAltaModelo extends javax.swing.JFrame {
private ControlCatalogo controlC;
private Aplicacion a... |
package com.perosa.bot.traffic.core.common;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.jupiter.api.Assertions.*;
public class EnvConfigurationTest {
private static final Logger LOGGER = LoggerFactory.getLogger(EnvConfigurationTest.class);
... |
package je.techtribes.component.activity;
import je.techtribes.AbstractComponentTestsBase;
import je.techtribes.domain.Activity;
import je.techtribes.domain.ContentSource;
import je.techtribes.domain.Person;
import je.techtribes.domain.Tribe;
import je.techtribes.util.DateUtils;
import org.junit.After;
import org.juni... |
package com.lanking.uxb.zycon.book.api;
import java.util.List;
import com.lanking.cloud.domain.common.baseData.School;
import com.lanking.cloud.domain.common.resource.book.BookVersion;
import com.lanking.cloud.domain.yoomath.school.UserSchoolBook;
import com.lanking.cloud.sdk.bean.Status;
import com.lanking.c... |
package com.xiaoxin.guid.activity;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import android.widget.TextV... |
package org.broadinstitute.hellbender.tools.spark.pipelines.metrics;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadinstitute.hellbender.cmdline.StandardArgumentDefinitions;
import org.broadinstitute.hellbender.engine.filters.ReadFilterLibrary;
import org.broadinstitute.hellbender.metrics... |
/*
* 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 ... |
/*
* 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 Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.core.ilm;
import org.elasticsearch... |
/*
* 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 com.huang.hm.member;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class HmMemberApplicationTests {
@Test
void contextLoads() {
}
}
|
/*
* Copyright (c) 2017 Strapdata (http://www.strapdata.com)
* Contains some code from Elasticsearch (http://www.elastic.co)
*
* 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 2010 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 in w... |
package tests.unit.com.microsoft.azure.sdk.iot.service;
import com.microsoft.azure.sdk.iot.deps.serializer.ConfigurationContentParser;
import com.microsoft.azure.sdk.iot.service.ConfigurationContent;
import org.junit.Assert;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static junit.f... |
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
package ai.classifai.ui.component.os;
public interface OS {
boolean openLogInEditor();
boolean openBrowser();
}
|
package com.dazhuang.mall.product.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 品牌分类关联
*
* @author dazhuangf
* @email 1743460289@qq.com
* @date 2021-08-02 14:22:45
... |
/*
* 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... |
//
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT MIT, ERCIM, Keio University, Beihang, 2012.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css3;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.v... |
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 ... |
/*
* 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 law or... |
package hmm;
public enum Direction {
North(0, -1), West(-1, 0), South(0, 1), East(1, 0);
private Direction opposite;
public final int dx, dy;
static {
North.opposite = South;
South.opposite = North;
West.opposite = East;
East.opposite = West;
}
Direction(int dx, int dy) {
this.dx = dx;
this.dy =... |
/*
* 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... |
import java.io.*;
import java.util.*;
/**
* Expander is the class handling expansions of strings. It recognizes
* ${X} and ${=X} sequences. Detection of sequences are not fast at the
* moment.
*
* @author Brian Schau
* @since 0.1
*/
public class Expander {
private Properties properties;
private PathManager pM... |
// File: Trap.java
// Purpose: Calculate area using trapezoidal rule
//
// Input: a: left endpoint of interval
// b: right endpoint of interval
// n: number of trapezoids
// Output: estimate of area between the x-axis, x = a, x = b, and
// the graph of f(x) using n trapezoids
... |
/*
* Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
package de.metas.ui.web.session;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.springframework.session.events.SessionDestroyedEvent;
import org.springframework.stereotype.Component;
import de.metas.ui.web.notification.UserNotification... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
package org.opensearch.kn... |
package it;
import com.atlassian.confluence.plugin.functest.AbstractConfluencePluginWebTestCase;
import com.atlassian.confluence.plugin.functest.JWebUnitConfluenceWebTester;
import com.atlassian.confluence.plugin.functest.TesterConfiguration;
import junit.framework.Assert;
import java.io.IOException;
import java.util... |
package com.google.codeu.servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.api.users.Us... |
/*
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... |
/*
* Copyright 2000-2009 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... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package client_state_policies;
import client_store.ClientState;
import client_store.StatePolicy;
import common.StoreAction;
import client_store_actions.ClientDiscardObjectCardAction;
public class DiscardObjectCardStatePolicy implements StatePolicy {
@Override
public ClientState apply(ClientState state, StoreA... |
/*******************************************************************************
* Copyright (c) 2013 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution,... |
package top.tangyh.lamp.msg.dao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.basic.base.request.PageParams;
import top.tangyh.lamp.msg.dto.MsgPageResult;
import top.tangyh.lamp.msg.dto.MsgQuery;
import top.tangyh.lamp.msg.entity.Msg;
import or... |
package com.fnklabs.nast.network.echo;
import com.fnklabs.nast.network.AbstractServerChannelHandler;
import com.fnklabs.nast.network.io.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.ByteBuffer;
import java.util.concurrent.CompletableFuture;
public class ServerNoOpChannelHandler ex... |
/* ###
* IP: GHIDRA
*
* 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 com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 附件撤回(服务商->支付宝) API
*
* @author auto create
* @since 1.0, 2021-03-02 13:27:43
*/
public class AlipayInsSceneInsserviceprodSerattachmentDeleteModel extends AlipayObject {
private... |
// 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... |
/*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
/*
* 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 openinghoursevaluator;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.time.LocalDateTime;
import java.util.Locale;
import org.juni... |
package org.basex.query.util.pkg;
import static org.basex.query.QueryError.*;
import static org.basex.query.util.pkg.PkgText.*;
import static org.basex.util.Token.*;
import java.io.*;
import org.basex.io.*;
import org.basex.query.*;
import org.basex.query.value.item.*;
import org.basex.query.value.node.*;
import org... |
package br.com.utfpr.porta.controle;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.logging.log4j.util.Strings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.data.web.PageableDefault;
... |
package com.autumn.ui.actionFactory.element;
/*-
* #%L
* autumn-ui
* %%
* Copyright (C) 2021 Deutsche Telekom AG
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... |
package cn.zengjingfang.box.android.rxhandler;
import android.os.Build;
import cn.zengjingfang.box.android.rxhandler.rx.Observable;
import cn.zengjingfang.box.android.rxhandler.rx.Scheduler;
import cn.zengjingfang.box.android.rxhandler.rx.schedulers.Schedulers;
import cn.zengjingfang.box.android.rxhandler.rx.Subscrib... |
package GameAuthoringEnvironment.AuthoringScreen;
import Configs.Behaviors.Behavior;
import Configs.Configurable;
import javafx.application.Application;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.collections.FXCollections;
import javafx.event.EventHa... |
package com.lanking.cloud.domain.yoo.activity.imperialExamination;
import com.lanking.cloud.sdk.bean.Valueable;
/**
* 科举考试第二期的考试逻辑需要
*
* @since 3.9.4
* @author <a href="mailto:qiuxue.jiang@elanking.com">qiuxue.jiang</a>
* @version 2017年11月17日
*/
public enum ImperialExaminationExamTag implements Valu... |
package com.it.vo;
import java.util.List;
public class TypeTimeVO {
private String type;
private String code;
private List<String> x;
private List<Long> y;
public TypeTimeVO() {
super();
// TODO Auto-generated constructor stub
}
public TypeTimeVO(String type, String code, List<String> x, List<Long> y... |
/*
* Copyright 1999-2017 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... |
/*
* 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
* distributed ... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2019 <mickael.jeanroy@gmail.com>
*
* 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 ... |
/*
* 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 com.technology.jep.jepriashowcase.custom.auto;
/*
public class CustomAutoImpl<A extends JepRiaShowcaseAuto> extends ApplicationEntranceAuto<A, JepRiaShowcasePageManager> implements CustomAuto {
public CustomAutoImpl(A jepRiaShowcaseAuto, JepRiaShowcasePageManager pageManager) {
super(jepRiaShowcaseAut... |
/*
* 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
* distributed u... |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_7538 {
}
|
package org.hl7.fhir.r4.model;
/*
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 copyrigh... |
package net.anotheria.moskito.core.snapshot;
import net.anotheria.moskito.core.dynamic.OnDemandStatsProducer;
import net.anotheria.moskito.core.predefined.ServiceStats;
import net.anotheria.moskito.core.registry.ProducerRegistryFactory;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.as... |
package com.example.exa1_intermedios_acreditar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
imp... |
package net.jodah.failsafe;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;
@Test
public class AbstractExecutionTest {
public void testRandomizeDelayForFactor() {
assertEquals(AbstractExecution.randomizeDelay(100, .5, 0), 150);
assertEquals(AbstractExecution.randomizeDelay... |
// Author: Jamie Hunter, 2019
// Refer to LICENSE.TXT for copyright and license information
//
package org.jprolog.flags;
import org.jprolog.bootstrap.Interned;
import org.jprolog.exceptions.FutureFlagError;
import org.jprolog.exceptions.PrologDomainError;
import org.jprolog.execution.Environment;
import org.jprolog.e... |
package com.example.android_hw2;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class ResultActivity extends AppCompatActivity {
TextView test;
int currentScore;
@Override
protected void onCreate(Bundle savedInstanceState) {
s... |
package br.edu.utfpr.cp.emater.midmipsystem.entity.pulverisation;
import br.edu.utfpr.cp.emater.midmipsystem.entity.base.AuditingPersistenceEntity;
import br.edu.utfpr.cp.emater.midmipsystem.entity.mip.GrowthPhase;
import br.edu.utfpr.cp.emater.midmipsystem.entity.survey.Survey;
import br.edu.utfpr.cp.emater.midmipsys... |
package io.localmotion.initiative.controller;
import com.coxautodev.graphql.tools.GraphQLQueryResolver;
import io.localmotion.initiative.projection.InitiativeProjection;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import javax.inject.Inject;
import javax.inject.Singleton;
@Slf4j
@Singleton
@No... |
package br.com.zup.mercadolivre.categoria;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
@Entity
public class Categoria {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@NotBlank
@Column(unique = true)
private String nome;
@ManyToOne
... |
package com.vscode4teaching.vscode4teachingserver.services.websockets;
import com.google.gson.Gson;
import com.vscode4teaching.vscode4teachingserver.model.User;
import com.vscode4teaching.vscode4teachingserver.services.exceptions.EmptyJSONObjectException;
import com.vscode4teaching.vscode4teachingserver.services.excep... |
/*
* Copyright © 2014-2020 Vladlen V. Larionov and others as noted.
*
* 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 com.javaweb.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import com.javaweb.handler.MultipleDataSourceManage;
@Aspect
public class DataSourceAspect {
//切入点execution
@Pointcut("e... |
package org.occideas;
import org.occideas.common.NodeType;
import org.occideas.entity.JobModule;
import org.occideas.entity.PossibleAnswer;
import org.occideas.entity.Question;
import org.occideas.mapper.ModuleMapperImpl;
import org.occideas.mapper.PossibleAnswerMapperImpl;
import java.util.ArrayList;
import java.uti... |
package api.press.repo;
import api.press.model.Question;
import api.press.repo.IRepo.IQuestionRepo;
import api.press.util.QueryUtil;
import lombok.RequiredArgsConstructor;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stere... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
/*******************************************************************************
* Copyright (C) 2018 Joao Sousa
*
* 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, in... |
package io.onedev.server.infomanager;
import java.io.File;
import java.util.Date;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.joda.time.DateTime;
import com.google.common.collect.Lists;
import io.onedev.commons.loader.Listen;
import io.onedev.server.event.codecomment.CodeCommentEvent;
imp... |
package com.froobworld.nabsuite.modules.admin.command;
import cloud.commandframework.Command;
import cloud.commandframework.arguments.standard.StringArgument;
import cloud.commandframework.context.CommandContext;
import com.froobworld.nabsuite.command.NabCommand;
import com.froobworld.nabsuite.command.argument.argumen... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package kr.ac.kopo.kopo44.DAO;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import kr.ac.kopo.kopo44.DTO.UserDTO;
public class UserDAOImpl implements UserDAO {
private Connection conn;//자바와 데이터베이스 연결
private PreparedStatement... |
/*
* Copyright 2018-2020 adorsys GmbH & Co KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* Copyright 2016-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 servlets;
import helpClasses.BadParameterException;
import helpClasses.DBAccessClient;
import helpClasses.MessageFactory;
import helpClasses.ParamCheck;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import j... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... |
/*-
* =========================LICENSE_START==================================
* heimdall-gateway
* ========================================================================
* Copyright (C) 2018 Conductor Tecnologia SA
* ========================================================================
* Licensed under the ... |
package com.kakaopay.coupon.util;
public class TestUtil {
public static double mean(double[] array) {
double sum = 0.0;
for (double d : array) sum += d;
return sum / array.length;
}
// 모집단 표준편차
public static double standardDeviation(double[] array) {
if (array.length... |
package ru.stqa.pft.addressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class SessionHelper extends HelperBase {
public SessionHelper(WebDriver wd) {
super(wd);
}
public void login(String userName, String password) {
type(By.name("user"), userName);
... |
package PopulationSimulator.model.entities;
import PopulationSimulator.model.enums.Gender;
import PopulationSimulator.model.enums.SexualOrientation;
import org.jetbrains.annotations.NotNull;
import java.util.Objects;
import static PopulationSimulator.controllers.SimulationController.currentTime;
import static Popula... |
package ru.job4j.condition;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class PointTest {
@Test
public void pointTest() {
Point a = new Point(10, 5);
Point b = new Point(-3, -3);
double result = a.distanceTo(b);
... |
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------------------... |
/*
* Copyright 2002-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 ap... |
/**
* Copyright (C) 2008 Stratio (http://stratio.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 ap... |
package com.sdtbu.gulimall.gateway;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class GulimallGatewayApplicationTests {
@Test
void contextLoads() {
}
}
|
package com.olacabs.jackhammer.handler;
import com.google.inject.Inject;
import com.olacabs.jackhammer.enums.Handler;
import com.olacabs.jackhammer.exceptions.AbstractException;
import com.olacabs.jackhammer.exceptions.HandlerNotFoundException;
import com.olacabs.jackhammer.models.Upload;
import com.olacabs.jackhammer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.