text stringlengths 7 995k |
|---|
package sample.aop.service;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface DefaultValueReturn {
public String val() defau... |
package com.yocn.simpleleak.leakcanary;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import android.util.Log;
public final class ActivityRefWatcher {
public static final String TAG = "RefWatcher";
public static void install(Application application, RefWatcher refWatcher) ... |
/*
* 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 org.batfish.common.util;
import static org.batfish.common.util.StreamUtil.toListInRandomOrder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
import com.google.common.collect.ImmutableSet;
import java.util.List;
import... |
package org.ckan;
import java.util.List;
import java.util.Map;
import org.eclipse.swt.widgets.Shell;
import org.pentaho.di.core.CheckResult;
import org.pentaho.di.core.CheckResultInterface;
import org.pentaho.di.core.Counter;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.exception.Kettl... |
/*
* Copyright 2002-2007 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 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.fileTypes.impl;
import com.intellij.ide.scratch.ScratchUtil;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.Disposable... |
package com.cts.training.middle.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annota... |
package org.jolokia.client;
/*
* Copyright 2009-2013 Roland Huss
*
* 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... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license... |
package uk.gov.hmcts.ccd.domain.service.getdraft;
import com.google.common.collect.Lists;
import org.hamcrest.Matcher;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import uk.gov.hmct... |
package com.safetytech.osonline;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.wid... |
/*
* 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.quarkus.liquibase.test;
import static org.junit.jupiter.api.Assertions.*;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;
import javax.inject.Inject;
import org.h2.jdbc.JdbcSQLException;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.... |
package search;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
/**
* This is the frame for the application which demonstrates the five basic
* search algorithms: depth-first, breadth-first, iterated, best-first,
* and genetic.
*
* @author Joseph P. Bigus
* @author Jennife... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Cleidimar Viana
*
* 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
* ... |
/*
* Copyright (c) 2009-2019, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribution... |
/**
* Leetcode - p0875_koko_eating_bananas
*/
package com.leetcode.p0875_koko_eating_bananas;
import java.util.*;
import com.ciaoshen.leetcode.util.*;
/**
* 自己实现:二分搜索
* calculateEatAllTimes 方法实现的不好,会超时。
*/
class Solution2 implements Solution {
public int minEatingSpeed(int[] piles, int h) {
// 计算 k ... |
package ru.taximaxim.codekeeper.ui.sqledit;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.lang.reflect.InvocationTargetException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import java... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* Copyright 2019 StreamSets Inc.
* <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 applicable law o... |
package cn.cunchang.tablesql;
import org.apache.flink.table.api.EnvironmentSettings;
import org.apache.flink.table.api.Table;
import org.apache.flink.table.api.TableEnvironment;
import static org.apache.flink.table.api.Expressions.$;
/**
* TableAPI 和 SQL的使用
* Created by xuwei
*/
public class TableAPIAndSQLOpJava ... |
/* */ package org.springframework.scheduling.annotation;
/* */
/* */ import java.util.concurrent.CompletableFuture;
/* */ import java.util.concurrent.ExecutionException;
/* */ import java.util.concurrent.TimeUnit;
/* */ import org.springframework.lang.Nullable;
/* */ import org.springframew... |
package project.pinboard.Pinboard.PostitWSMessages;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import project.pinboard.Pinboard.Models.NoteFile;
import project.pinboard.Pinboard.Models.NotePicture;
i... |
package io.fabric8.maven.docker.assembly;/*
*
* Copyright 2014 Roland Huss
*
* 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
*
* U... |
/*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2008 University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... |
/**
*
*/
package com.lq.work.modules.oa.web;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import... |
package com.unionpay.mobile.android.widgets;
import android.content.Context;
import android.text.InputFilter.LengthFilter;
import com.unionpay.mobile.android.utils.i;
import org.json.JSONObject;
public final class at
extends aa
{
private int n = 0;
public at(Context paramContext, int paramInt, JSONObject par... |
package com.youran.generate.pojo.vo.chart.source.item;
/**
* 聚合排序
*
* @author: cbb
* @date: 2020-05-05
*/
public class AggOrderVO extends MetaChartSourceItemVO {
/**
* 排序方式
*/
private Integer sortType;
public Integer getSortType() {
return sortType;
}
public void setSortTy... |
package com.base.refresh.resh.util;
import android.content.Context;
import android.content.res.Resources;
public class DensityUtil {
float density;
public DensityUtil() {
density = Resources.getSystem().getDisplayMetrics().density;
}
/**
* 根据手机的分辨率从 dp 的单位 转成为 px(像素)
*/
publi... |
package com.spring.DAO;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Service;
import com.spring.dto.RoomDTO;
@Service
public class RoomDAOImpl implements RoomDAO {
@Inject
private SqlSession sql;
private static String namespace = "com.spring.map... |
package unsw.loopmania;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import org.javatuples.Pair;
import org.json.JSONArray;
import org.json.JSONObject;
import org.json.JSONTokener;
import javafx.beans.property.SimpleIntegerProperty;
import java.util.List;
/**
* Load... |
package ca.uhn.fhir.rest.param;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.narrative.DefaultThymeleafNarrativeGenerator;
import ca.uhn.fhir.rest.annotation.Re... |
package org.apache.lucene.search.vectorhighlight;
/**
* 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 Apac... |
package com.cytx.timecardmobile.dto;
/**
* 创建时间:2014年7月30日 下午3:01:09 项目名称:TimeCard
*
* @author ben
* @version 1.0 文件名称:CardDto.java 类说明: 卡信息
*/
public class CardDto {
private String cardid;
private String inuse;
private String isdelete;
private String studentid;
public String getStudentid() {
return stu... |
package com.bugsnag.android;
import android.support.annotation.NonNull;
import java.io.IOException;
/**
* Information about the current user of your application.
*/
class User implements JsonStream.Streamable {
private String id;
private String email;
private String name;
User() {}
User(Strin... |
package com.revature.services;
import com.revature.entities.Doctor;
public interface DoctorServ {
public Doctor signUp(Doctor doctor);
public Doctor doctorLogin(Doctor doctor);
public Doctor loggedInDoctor(int id);
public Doctor getDoctorById(int docId);
} |
package cours.p9heritage;
public class Animal {
protected String cri;
public void crier() {
System.out.println(cri);
}
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.automation.models;
import com.azure.core.util.Context;
import com.azure.resourcemanager.automation.fluent.models.SourceControlSy... |
public class Green implements Color {
public void bepaint(String penType, String name) {
System.out.println(penType + "��ɫ��" + name + ".");
}
} |
/*
* Copyright (c) 2013, grossmann
* 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 copyright
* notice, this list of conditions an... |
/**
*
* 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 (c) 2016-2017, Guangshan (guangshan1992@qq.com) and 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/licens... |
package ru.concerteza.util.io;
import com.google.common.base.Predicate;
import org.apache.commons.io.filefilter.IOFileFilter;
import javax.annotation.Nullable;
import java.io.File;
/**
* User: alexey
* Date: 5/8/12
*/
public class IOFileFilterPredicate implements Predicate<File> {
private final IOFileFilter ... |
package br.uefs.ecomp.PBLMetroSaoPaulo.util;
public class EntryDijkstra {
public double distance;
public Vertice cur;
public Vertice prev;
public EntryDijkstra(Vertice u, Vertice v, double d){
this.cur = u;
this.prev = v;
this.distance = d;
}
public int compareTo(Object o){
EntryDijkstra e = (EntryDijks... |
/*
* Copyright 2013 Matija Mazi.
*
* 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 2006-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 au.id.jaysee.minecraft.jira.client.auth;
import au.id.jaysee.minecraft.config.Configuration;
import com.atlassian.jira.rest.client.api.JiraRestClient;
import com.atlassian.jira.rest.client.api.RestClientException;
import com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory;
import or... |
/*
* Copyright 2019 EPAM Systems
*
* 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) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package codetoanalyze.java.eradicate;
import android.app.Activity;
import android.os.Bundle;
public class ActivityFieldNotInitial... |
package com.example.android.sunshine.app;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.CursorLoader;
import android.support.v4.conte... |
package ch.heigvd.amt.projet.services;
import ch.heigvd.amt.projet.model.Question;
import ch.heigvd.amt.projet.model.User;
import java.util.List;
public interface UserDAOLocal {
public boolean addUser(User user);
public User getUser(String email);
public List<User> getPageUser(int pageNumber);
pu... |
package com.qmplus.v3.api.models.request;
/**
* UserTypeRequest which needs to invoke from mobile device to send data to
* server side.
*
* @author gaurav.chugh
*
*/
public class UserTypeRequest extends BaseRequest
{
private Integer userId;
private Integer userLanguageId;
private Integer companyLanguageI... |
package com.example.demo.model;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import jav... |
package backend.packages.Repositories;
import backend.packages.Beans.Item;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.math.BigInteger;
import java.util.Optional;
@Repositor... |
/*
* 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.lmn.Arbiter_Android.OrderLayers;
import java.util.ArrayList;
import android.util.Log;
import com.lmn.Arbiter_Android.BaseClasses.Layer;
import com.lmn.Arbiter_Android.ListAdapters.OverlayList;
public class OrderLayersModel {
public static final String TAG = "OrderLayersModel";
private ArrayList<Layer>... |
package com.braintreepayments.api.dropin;
import android.content.Intent;
import android.os.Parcel;
import com.braintreepayments.api.test.Fixtures;
import com.braintreepayments.api.models.GooglePaymentRequest;
import com.braintreepayments.api.models.PayPalRequest;
import com.braintreepayments.api.models.ThreeDSecureAd... |
package org.milleni.dunning.ws.client.tahsilat;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous ... |
/*
* Copyright (C) 2017-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package jdoc.akka.cluster.http.management;
import akka.actor.ActorSystem;
import akka.management.scaladsl.AkkaManagement;
import akka.cluster.Cluster;
//#imports
import akka.http.javadsl.server.Route;
import akka.management.cluster.javadsl.C... |
/**
* Copyright (c) 2011-2021, James Zhan 詹波 (jfinal@126.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... |
package com.spring.boot.order.handler;
import com.spring.boot.order.entity.OrderDTO;
/**
* @author dongzonglei
* @description
* @date 2019-09-14 17:50
*/
public abstract class AbstractHandler {
public abstract String handle(OrderDTO dto);
} |
/*
* Copyright 2015-present Open Networking Foundation
* Copyright © 2020 camunda services GmbH (info@camunda.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.apach... |
/*
* 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.example.android.pets.Data;
import android.net.Uri;
import android.provider.BaseColumns;
import android.content.ContentResolver;
//make it final class because it contains only constants
public final class PetContract {
private PetContract(){};
public final static String CONTENT_AUTHORITY ="com.exa... |
/*
* Copyright 2016 Hammock and its 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 ... |
/*
* MIT License
*
* Copyright (c) 2019 Stefan Heindorf, Yan Scholten, Gregor Engels, Martin Potthast
*
* 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 w... |
package net.kenevans.git.repositorymanager.utils;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
impor... |
package hawk.modules.player;
import hawk.events.Event;
import hawk.events.listeners.EventMotion;
import hawk.events.listeners.EventReceivePacket;
import hawk.modules.Module;
import hawk.settings.ModeSetting;
import hawk.settings.Setting;
import net.minecraft.network.play.client.C03PacketPlayer;
import net.minecraft.ne... |
/** Generated by english-annotation-buster, Powered by Google Translate.**/
/*
* Copyright 2002-2018 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
*
*... |
package forms;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
@Access(... |
/*
* Copyright 2010-2019 Australian Signals Directorate
*
* 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 org.kafkahq.controllers;
import io.micronaut.http.HttpRequest;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.MediaType;
import io.micronaut.http.MutableHttpResponse;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.micronaut.http.annotation.Po... |
/*-
* Copyright (C) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle Berkeley
* DB Java Edition made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
*
* Please ... |
package org.knowm.xchange.utils.jackson;
import java.io.IOException;
import java.math.BigDecimal;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
/**
* @author Matija Mazi
*/
public class SatoshiToBt... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* 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, cop... |
package com.study.service.impl;
import cn.hutool.json.JSONObject;
import com.study.entities.CommonResult;
import com.study.mybatismbg.bean.TStorage;
import com.study.mybatismbg.bean.TStorageExample;
import com.study.mybatismbg.mappers.TStorageMapper;
import com.study.service.AccountService;
import com.study.service.St... |
package com.kingston.jforgame.server.game.player;
import com.kingston.jforgame.server.game.GameContext;
import com.kingston.jforgame.server.game.database.user.player.PlayerEnt;
public class DailyResetTask implements Runnable {
private PlayerEnt player;
public DailyResetTask(PlayerEnt player) {
this.player = pla... |
package com.xiaomaigou.mapper;
import com.xiaomaigou.pojo.TbContent;
import com.xiaomaigou.pojo.TbContentExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface TbContentMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the ... |
package com.devmarvel.creditcardentry.internal;
import android.annotation.SuppressLint;
import com.devmarvel.creditcardentry.library.CardType;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.regex.Match... |
/*
* 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 ma... |
package com.github.landyking.learnShiro.web;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.web.filter.AccessControlFilter;
import org.apache.shiro.web.util.WebUtils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.Assert;
import javax.servlet.ServletReques... |
/*
* This file was automatically generated by EvoSuite
* Mon Nov 09 00:29:38 GMT 2020
*/
package umd.cs.shop;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.StreamTokenizer;
import java.io.StringReader;
import org.evosuite.runtime.EvoRunn... |
package dao;
import models.Member;
import models.Team;
import org.sql2o.Connection;
import org.sql2o.Sql2o;
import org.sql2o.Sql2oException;
import java.util.List;
/**
* Created by Guest on 8/18/17.
*/
public class Sql2oTeamDao implements TeamDao {
private final Sql2o sql2o;
public Sql2oTeamDao(Sql2o sql... |
package com.sunsharing.eos.uddi.service;
import com.sunsharing.component.utils.base.DateUtils;
import com.sunsharing.eos.common.utils.StringUtils;
import com.sunsharing.eos.uddi.dao.SimpleHibernateDao;
import com.sunsharing.eos.uddi.model.TApp;
import com.sunsharing.eos.uddi.model.TDbChange;
import com.sunsharing.eos.... |
/*
* Copyright (c) 2005-2018 Flamingo / Substance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright noti... |
package com.linkedin.thirdeye.dashboard.resource;
import com.linkedin.thirdeye.dashboard.resources.AnomalyResource;
import com.linkedin.thirdeye.datalayer.bao.AlertConfigManager;
import com.linkedin.thirdeye.datalayer.bao.AnomalyFunctionManager;
import com.linkedin.thirdeye.datalayer.bao.DAOTestBase;
import com.linked... |
/*
* Copyright 2020 LINE Corporation
*
* LINE Corporation licenses this file to you 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 r... |
/*
* 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.zhou.mymallcoupon.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annot... |
package com.unonothing.usermgmt.service;
import com.unonothing.common.dto.BaseDTO;
import com.unonothing.common.exceptions.ExceptionFactory;
import com.unonothing.common.exceptions.ExceptionType;
import com.unonothing.usermgmt.dto.PersonalInfoDTO;
import com.unonothing.usermgmt.dto.UserInfoDTO;
import com.unonothing.u... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
package com.baeldung.junit4.runfromjava;
import org.junit.Test;
import com.baeldung.junit.runfromjava.listnode.ListNode;
import static org.junit.Assert.*;
public class ListNodeUnitTest {
@Test
public void whenListHasOneElement_thenGetExpectedValue() {
ListNode listNode = new ListNode(42);
... |
/**
* 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 ... |
import java.util.Arrays;
class Exponential
{
// Returns position of first occurrence of
// x in array
static int Exponential(int arr[],
int n, int x)
{
// If x is present at firt location itself
if (arr[0] == x)
return 0;
... |
/*
* 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.enrich.action;
import org.ela... |
package module636packageJava0;
import java.lang.Integer;
public class Foo48 {
Integer int0;
Integer int1;
public void foo0() {
new module636packageJava0.Foo47().foo3();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
} |
/*
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.