text stringlengths 7 995k |
|---|
package org.ayo.ui.sample.recycler.divider;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.annotation.DimenRes;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widge... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.model;
import com.yahoo.config.application.api.ApplicationPackage;
import com.yahoo.config.application.api.DeployLogger;
import com.yahoo.config.model.api.ModelContext;
import... |
package io.github.henryssondaniel.teacup.protocol.http.node;
import io.github.henryssondaniel.teacup.core.assertion.GenericBooleanAssert;
import io.github.henryssondaniel.teacup.core.assertion.GenericIntegerAssert;
import io.github.henryssondaniel.teacup.core.assertion.GenericListAssert;
import io.github.henryssondani... |
package it.at7.gemini.boot;
import it.at7.gemini.api.Api;
import it.at7.gemini.core.Gemini;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.Banner;
import org.springframework.boot.WebApplicationType;
import org.spri... |
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE
package org.bytedeco.pytorch;
import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.byte... |
package com.web.enquiry.service.internal;
import com.app.base.data.ApiResponseResult;
import com.app.base.data.DataGrid;
import com.system.user.entity.SysUser;
import com.utils.BaseService;
import com.utils.SearchFilter;
import com.utils.UserUtil;
import com.utils.enumeration.BasicStateEnum;
import com.web.enquiry.dao... |
package pucrs.qp.exercicio;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;
public class Reader {
public int sumStringLine(String line) {
String[] splitted = line.split("\\:");
return Integer.valueOf(splitted[2]);
}
public int sumAllFileNumb... |
/*
* [Licensed per the Open Source "MIT License".]
*
* Copyright (c) 2006 - 2018 by
* Global Technology Consulting Group, Inc. at
* http://gtcGroup.com
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to d... |
/**
* Copyright 2013 Netflix, 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 ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... |
/*******************************************************************************
* (C) Copyright 2015 Hewlett Packard Enterprise Development LP
*
* 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 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 may ... |
package de.hpi.bpt.chimera.parser.fragment.bpmn.unmarshaller.xml;
import javax.xml.bind.annotation.*;
/**
*
*/
@XmlRootElement(name = "bpmn:dataInputAssociation")
@XmlAccessorType(XmlAccessType.NONE)
public class DataInputAssociation extends Edge {
@XmlAttribute
private String id;
@XmlElement(name = "bpmn:source... |
/*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package seedu.address.storage;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static seedu.address.testutil.TypicalPersons.ALICE;
import static seedu.address.testutil.TypicalPersons.HOON;
import static seedu.address.testutil.TypicalPersons.IDA;
import static seedu.addre... |
/*-
* #%L
* Microtubule tracker.
* %%
* Copyright (C) 2017 MTrack developers.
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option)... |
package cz.vhromada.web.wicket;
import javax.servlet.FilterRegistration;
import javax.servlet.ServletContext;
import org.apache.wicket.protocol.http.WicketFilter;
import org.apache.wicket.spring.SpringWebApplicationFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web... |
package employeetracker.commons.core;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
public class ConfigTest {
@Test
public void toString_... |
/*
* Copyright 2008-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.example.gmall.ums.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.gmall.ums.entity.MemberLoginLogEntity;
import com.atguigu.core.bean.PageVo;
import com.atguigu.core.bean.QueryCondition;
/**
* 会员登录记录
*
* @author mousse
* @email 958860184@qq.com
* @date 2020-11... |
package com.moping.imageshow.util;
import android.content.Context;
import android.telephony.TelephonyManager;
/**
* 设备信息管理器
*
* Created by randysu on 2018/4/9.
*/
public class DeviceInfoManager {
private static final String TAG = DeviceInfoManager.class.getName();
private static DeviceInfoManager INST... |
package io.github.reinershir.auth.core;
public class CustomManager {
Feedbacker feedbacker;
SecurityGuard securityGuard;
public void setCustomFeedback(Feedbacker feedbacker) {
this.feedbacker=feedbacker;
}
/**
* @Title: setCustomSecurityGuard
* @Description: 自定义权限验证,将会使默认的权限验证功能失效
* @author reine... |
package cc.mallet.pipe;
import java.io.*;
import java.util.HashSet;
import java.util.ArrayList;
import java.io.*;
import java.text.Normalizer;
import cc.mallet.types.Instance;
import cc.mallet.types.Token;
import cc.mallet.types.TokenSequence;
import cc.mallet.types.FeatureSequenceWithBigrams;
import cc.mallet.util.... |
package org.intermine.bio.dataconversion;
/*
* Copyright (C) 2002-2015 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/... |
/*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.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 ... |
//
// ========================================================================
// Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
package farsight.logging;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.core.config.plugins.util.PluginManager;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import farsight.logging.config.LogEntity;
@Disabled // remove if this test should run!
public class GrayLo... |
/*
* Copyright 2002-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 by ap... |
package cnet;
public class MemberInputStream {
} |
/**
* Copyright (c) 2009-2013, rultor.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: 1) Redistributions of source code must retain the above
* copyright notice, this list of conditio... |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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... |
package de.neustasd.roomsmanager.frontend.dto;
import lombok.Value;
/** Created by Adrian Tello on 04/12/2017. */
@Value
public class ExceptionDto {
private int code;
private String message;
} |
/*
* File created on Apr 6, 2016
*
* Copyright (c) 2016 Carl Harris, Jr
* 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/LI... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... |
package org.im97mori.ble.characteristic.u2b2d;
import android.bluetooth.BluetoothGattCharacteristic;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import org.im97mori.ble.ByteArrayCreator;
import static org.im97mori.ble.constants.CharacteristicUUID.EMERGENCY_ID_CHARACTE... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package com.example.datacollector;
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.*;
/**
* Instrumented test, which will execute on an Andro... |
package jetbrains.mps.make.facet.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractNonTypesystemRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.NonTypesystemRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inference.TypeCheckin... |
package es.us.lsi.hermes;
import es.us.lsi.hermes.kafka.consumer.StatusAnalyserConsumer;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Main {
private static final Logger LOG = Logger.getLogger(Ma... |
/*
* Copyright 2018-2019 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 ... |
//
// ConsoleCollapsedLogEntry.java
//
// Lunar Unity Mobile Console
// https://github.com/SpaceMadness/lunar-unity-console
//
// Copyright 2019 Alex Lementuev, SpaceMadness.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
/... |
package ru.job4j.condition;
/**
* Class SqArea calculates square of rect while
* given its sides proportion and perimeter.
* @author Vit Efremov (freshman4000@gmail.com).
* @since 28.06.2019.
* @version 1.0.
*/
public class SqArea {
/**
* Method square calculates square of rectangle.
* @param p per... |
class Solution {
class UnionFind {
int count;
int[] parent;
int[] rank;
public UnionFind(char[][] grid) {
count = 0;
int m = grid.length;
int n = grid[0].length;
parent = new int[m * n];
rank = new int[m * n];
f... |
package net.osmand.plus.views;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.osmand.PlatformUtil;
import net.osmand.access.AccessibilityActionsProvider;
import net.osmand.access.AccessibleToast;
import net.osmand.access.MapExplorer;
import net.osmand.da... |
/*
* Copyright (c) 2001-2004 Caucho Technology, Inc. All rights reserved.
*
* The Apache Software License, Version 1.1
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code mu... |
package seamshop.util.cache;
import static seamshop.util.StringBuilderUtils.removeCharsFromEnd;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author Alex Siman 2009-11-13
* @author Alex Siman 2009-11-... |
package datawave.query.iterator.builder;
import datawave.query.iterator.NestedIterator;
import datawave.query.iterator.logic.AndIterator;
import org.apache.commons.jexl2.parser.JexlNode;
import java.util.HashSet;
import java.util.Set;
public class AndIteratorBuilder extends AbstractIteratorBuilder {
Set<Jex... |
/*
* eZmax API Definition
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.3
* Contact: support-api@ezmax.ca
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tec... |
package fi.vincit.mutrproject.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.... |
/**
# Copyright Google Inc. 2016
# 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, so... |
package org.apereo.cas;
import org.apereo.cas.web.support.InMemoryThrottledSubmissionByIpAddressAndUsernameHandlerInterceptorAdapterTests;
import org.apereo.cas.web.support.InMemoryThrottledSubmissionByIpAddressHandlerInterceptorAdapterTests;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
/**
* Th... |
package ch.rts.mobile.le.jeu.requests;
import ch.rts.mobile.le.jeu.model.Questions;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
* Created by npietri on 02.02.17.
*/
public interface ArchiveService {
@GET("rts-archives-public-api/archives")
Call<Questions> getRelatedM... |
// Copyright 2019 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 writi... |
/*
* 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 ... |
package observer;
import observer.screens.CurrentConditionsScreen;
import observer.screens.ForecastScreen;
import observer.screens.HeatIndexScreen;
import observer.screens.StatisticsScreen;
public class WeatherStation {
public WeatherStation() {
WeatherData weatherData = new WeatherData();
Curren... |
/*
* 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.autoscaling.action;
import org.el... |
package org.w3c.dom.html;
import org.w3c.dom.*;
/**
* Create a grid of frames. See the FRAMESET element definition in HTML 4.0.
*/
public interface HTMLFrameSetElement extends HTMLElement {
/**
* The number of columns of frames in the frameset. See the cols attribute
* definition in HTML 4.0.
*/
publi... |
package io.openmessaging.v6;
import io.openmessaging.KeyValue;
import io.openmessaging.Message;
import io.openmessaging.MessageHeader;
import io.openmessaging.Producer;
import io.openmessaging.tester.Constants;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.u... |
package igentuman.ncsteamadditions.tile;
import igentuman.ncsteamadditions.NCSteamAdditions;
import igentuman.ncsteamadditions.processors.AbstractProcessor;
import igentuman.ncsteamadditions.processors.ProcessorsRegistry;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.registry.GameReg... |
package aurelienribon.tweenengine.primitives;
import aurelienribon.tweenengine.TweenAccessor;
/** @author Aurelien Ribon | http://www.aurelienribon.com/ */
public class MutableFloat extends Number implements TweenAccessor<MutableFloat> {
private float value;
public MutableFloat (float value) {
this.value = value... |
package com.salton123.qa.kit.network.httpurlconnection;
import android.util.Log;
import com.salton123.qa.kit.network.core.NetworkInterpreter;
import com.salton123.qa.kit.network.httpurlconnection.interceptor.DKInterceptor;
import com.salton123.qa.kit.network.httpurlconnection.interceptor.HttpChainFacade;
import com.s... |
/**
* Sencha GXT 1.0.0-SNAPSHOT - Sencha for GWT
* Copyright (c) 2006-2018, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Commercial License
* ============================================... |
/*
* Copyright 2002-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 by ap... |
// Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.pytorch;
import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static... |
/**
* Copyright (C) 2006-2016 INRIA and contributors
* Spoon - http://spoon.gforge.inria.fr/
*
* This software is governed by the CeCILL-C License under French law and
* abiding by the rules of distribution of free software. You can use, modify
* and/or redistribute the software under the terms of the CeCILL-C li... |
package com.dermacon.workshop.service;
import com.dermacon.workshop.data.Announcement;
import com.dermacon.workshop.data.AppUser;
import com.dermacon.workshop.data.Course;
import com.dermacon.workshop.data.Person;
import org.apache.log4j.Logger;
import org.springframework.core.io.ClassPathResource;
import org.springfr... |
package io.github.yuoonishi.dropwizardsample.resources;
import static com.google.common.html.HtmlEscapers.htmlEscaper;
import io.github.yuoonishi.dropwizardsample.PracticeConfiguration;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.google.c... |
/**
*/
package thing_ui.interaction;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import thing_ui.actuation.Actuator;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Form</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are su... |
/*
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package com.par... |
/**
* Copyright 2015 Flipkart Internet Pvt. Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
* Copyright 2019 ThoughtWorks, 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 agr... |
/*
* Copyright 2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package org.pantsbuild.tools.junit;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.Description;
import org.junit.runner.notification.Failure;
import org.pantsbuild.tools.junit.AntJunitXmlReportListener.UnknownFailureSuite;
import static org.junit.Assert.assertEquals;
i... |
package ui;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.util.AttributeSet;
import java.lang.reflect.InvocationTargetException;
import ja... |
/*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/* 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"); y... |
/*
* This file is part of the OWL API.
*
* The contents of this file are subject to the LGPL License, Version 3.0.
*
* Copyright (C) 2011, The University of Manchester
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... |
/*
* 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 com.coinkarasu.api.cryptocompare.data;
import com.coinkarasu.utils.CKLog;
import org.json.JSONException;
import org.json.JSONObject;
public class HistoryImpl implements History {
private static final String TAG = "HistoryImpl";
private static final boolean DEBUG = CKLog.DEBUG;
private long time;... |
package com.example.minhb.minder;
import android.app.Application;
import com.parse.Parse;
import com.parse.ParseACL;
public class ParseInit extends Application
{
@Override
public void onCreate() {
super.onCreate();
Parse.initialize(new Parse.Configuration.Builder(this)
.applic... |
package com.laegler.openbanking.api;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.swagger.annotations.*;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
import o... |
package systems.comodal.test.pagerduty;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
import java.util.List;
import java.util.ServiceLoader;
import java.util.stream.Stream;
final class ClientTestRunner {
@Disabled
@TestFactory
List<D... |
/*
* 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 com.github.yizzuide.milkomeda.comet.logger;
import com.github.yizzuide.milkomeda.comet.core.CometConfig;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConf... |
/*
* Copyright 2017 The Error Prone Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
package com.ljq.demo.springboot.activiti;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import springfox.documentation.swagger2.annotatio... |
/*
* Copyright (C) 2011 Garen J. Torikian
*
* 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 com.perforce.team.ui.mylyn.editor;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.eclipse.mylyn.internal.tasks.ui.editors.TaskEditorAttributePart;
import org.eclipse.mylyn.tasks.core.d... |
/*
* 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 under t... |
/*
* 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")... |
/*
* Copyright (C) 2018, Brian He
*
* 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 ... |
package com.luv2code.springdemo;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class AnnotationBeanScopeDemoApp {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
Coach theCoach ... |
package net.novaborn.living.app.web.api.admin;
import net.novaborn.living.app.common.tips.SuccessTip;
import net.novaborn.living.app.modular.setting.entity.Setting;
import net.novaborn.living.app.modular.setting.service.impl.SettingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... |
package com.la.service.impl;
import com.la.model.dtos.bitcoin.OrderRequest;
import com.la.model.dtos.bitcoin.OrderResult;
import com.la.model.BuyerRequest;
import com.la.model.enums.Status;
import com.la.model.Transaction;
import com.la.repository.BuyerRequestRepository;
import com.la.repository.PaymentMethodRepositor... |
package com.github.hcsp;
import java.sql.SQLException;
public interface CrawlerDao {
String getNextLinkThenDelete() throws SQLException;
void insertNewsIntoDatabase(String url, String title, String content) throws SQLException;
boolean isLinkProcessed(String link) throws SQLException;
void insert... |
/**
* Copyright 2015-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... |
/*******************************************************************************
* Copyright (c) 2005, 2012 IBM Corporation and others.
* 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, an... |
package com.imbananko;
import com.despegar.http.client.HttpClientException;
import com.despegar.http.client.HttpResponse;
import com.despegar.sparkjava.test.SparkServer;
import com.google.common.reflect.TypeToken;
import com.imbananko.config.LightweightModule;
import com.imbananko.config.Path;
import com.imbananko.mod... |
/*
* Copyright (c) 2020. ForteScarlet All rights reserved.
* Project simple-robot-core
* File NoSuchBlockNameException.java
*
* You can contact the author through the following channels:
* github https://github.com/ForteScarlet
* gitee https://gitee.com/ForteScarlet
* email ForteScarlet@163.com
* QQ ... |
/*******************************************************************************
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.