text stringlengths 7 995k |
|---|
/**
* Copyright © 2020 SOLTEKNO.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 applicable law or agreed... |
package suda.sudamodweather.util;
import android.text.TextUtils;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by ghbha on 2016/5/2.
*/
public class DateTimeUtil {
static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("MM月dd日");
static Simple... |
package com.mb3364.twitch.api.handlers;
import com.mb3364.twitch.api.models.Emoticon;
import java.util.List;
public interface EmoticonsResponseHandler extends BaseFailureHandler {
void onSuccess(List<Emoticon> emoticons);
} |
/*
* Copyright (c) 2021, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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.apac... |
package com.lzhlyle.leetcode.recite.no62;
import java.util.Arrays;
public class UniquePaths_DP_Adv {
public int uniquePaths(int m, int n) {
if (m == 0 || n == 0) return 0;
int[] dp = new int[n];
Arrays.fill(dp, 1);
for (int r = 1; r < m; r++) {
for (int c = 1; c < n; c... |
package io.github.laminalfalah.inventory.service.impl;
/*
* Copyright (C) 2022 the original author laminalfalah All Right Reserved.
*
* io.github.laminalfalah.inventory.service.impl
*
* This is part of the inventory.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* you may not use this fil... |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package douyin.jesson.com.fangdouyin.widget;
import android.content.Context;
import android.graphics.Point;
import android.graphics.SurfaceTexture;
import android.hardware.Camera;
import android.opengl.GLSurfaceView;
import android.util.AttributeSet;
import android.view.MotionEvent;
import javax.microedition.khronos.e... |
/*
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package com.sun.org.apache.bcel.internal.generic;
/* ====================================================================
* The Apache Software License, Version 1... |
/*
* 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 2009 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 ... |
package org.tests.model.onetoone;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Version;
@Entity
public class OtoPrimeExtra {
@Id
Long eid;
String extra;
@Version
Long version;
public OtoPrimeExtra(String extra) {
this.extra = extra;
}
@Override
publ... |
package com.project.inc;
import java.io.DataOutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import com.google.android.c2dm.C2DMessaging;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
impo... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.network.fluent.models.AzureFirewallFqd... |
package excel ;
import com4j.*;
@IID("{00024426-0001-0000-C000-000000000046}")
public interface IComments extends Com4jObject,Iterable<Com4jObject> {
// Methods:
/**
* <p>
* Getter method for the COM property "Application"
* </p>
* @return Returns a value of type excel._Application
*/
@VTID(7)... |
/*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you m... |
package test.java.xyz.srclab.common.utils;
import org.testng.Assert;
import org.testng.annotations.Test;
import xyz.srclab.common.test.TestLogger;
import xyz.srclab.common.utils.About;
import xyz.srclab.common.utils.Author;
import xyz.srclab.common.utils.SemVer;
import java.util.Collections;
public class AboutTest {... |
package com.ojas.ra.rest.resources;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletContext;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.... |
package com.sap.olingo.jpa.processor.core.api;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class JPAODataClaimsProviderTest {
pr... |
package com.wildbeeslabs.jentle.algorithms.toolset.impl;
public class Timer {
long start;
long lapStart;
public Timer() {
this.start = this.lapStart = System.currentTimeMillis();
}
public long getLap() {
long lap = System.currentTimeMillis() - lapStart;
lapStart = System.... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ql.expression.predicate;
import org.elasticse... |
package demo1001.demo2_2;
import org.noear.solon.Solon;
/**
* @author noear 2021/12/28 created
*/
public class App {
public static void main(String[] args) {
Solon.start(App.class, args);
}
} |
package org.ovirt.engine.ui.uicommonweb.models.disks;
import org.ovirt.engine.core.common.businessentities.Disk;
import org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType;
import org.ovirt.engine.core.common.businessentities.DiskImage;
import org.ovirt.engine.core.common.businessentities.LunDisk;
impor... |
package systemtests;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import seedu.address.logic.commands.AddAliasCommand;
import seedu.address.logic.commands.AliasesCommand;
import seedu.address.logic.commands.DeleteAliasCommand;
import seedu.address.model.Model;
import seedu.address.model.alias.Al... |
/* Copyright (c) 2019 PaddlePaddle Authors. 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 applicable law or ... |
/*
* Copyright 2016-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... |
package com.atyume.modules.system.service.impl;
import com.atyume.modules.base.service.impl.BaseService;
import com.atyume.modules.system.dto.ResourceDto;
import com.atyume.modules.system.enums.ResourceType;
import com.atyume.modules.system.mapper.ResourceMapper;
import com.atyume.modules.system.po.Resource;
import or... |
/* $Id$
*****************************************************************************
* Copyright (c) 2009 Contributors - see below
* 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, and i... |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... |
/*
* 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... |
/*
* 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.tools.core.convert.impl;
import java.util.Map;
import com.tools.core.convert.AbstractConverter;
import com.tools.core.map.MapUtil;
import com.tools.core.util.ObjectUtil;
/**
* {@link StackTraceElement} 转换器<br>
* 只支持Map方式转换
*
* @author Looly
* @since 3.0.8
*/
public class StackTraceElementConverter ... |
package xyz.lannt.market.response.bittrex;
import java.util.List;
import com.google.gson.internal.LinkedTreeMap;
public class BittrexBalancesResponse extends BittrexResponse {
public BittrexBalancesResponse(Boolean success, String message, List<LinkedTreeMap<String, Object>> result) {
super(success, message, ... |
/*
* 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.twineworks.tweakstreet.api.services;
import com.twineworks.tweakflow.lang.values.ValueProvider;
import com.twineworks.tweakstreet.api.services.context.StepServiceContext;
import com.twineworks.tweakstreet.api.desc.settings.SettingDesc;
import org.slf4j.Logger;
import java.util.Collections;
import java.uti... |
// Template Source: IBaseEntityRequestBuilder.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ----------------------------... |
/*
* Copyright (C) 2013-2021 Samuel Audet
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
* the Free Software Foundation (subject to the "Classpath" exception),
* either version 2, or any later version (collectively... |
/*
* 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 com.facebook.react.fabric.mounting.mountitems;
import static com.facebook.react.fabric.FabricComponents.getFabricComponent... |
package mage.cards.w;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import ma... |
/*
* Copyright 2019 Project OpenUBL, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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://w... |
/*
* Copyright 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 applica... |
package com.google.inject.internal.util;
import com.google.inject.internal.Nullable;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.ListIterator;
import java.util.NoSuchElementException;
public final class Iterators
{
static final Iterator<Object> EMPTY_ITERATO... |
package net.serenitybdd.junit.finder;
import java.util.ArrayList;
import java.util.List;
/**
* Returns all of the Thucydides classes under the specified package.
*/
public class NormalTestFinder extends TestFinder {
public NormalTestFinder(final String rootPackage) {
super(rootPackage);
}
@Over... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Copyright 2013-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 info.tongrenlu;
import info.tongrenlu.file.FileService;
import info.tongrenlu.jdbc.FileManager;
import java.io.File;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.FileUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframe... |
package com;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.*;
public class WordsChecker {
private static Set<String> dictionary = new HashSet<>(297510);
public static List<String> check(char[] word) {
initializeDictionary();
Set<String> wordsSet = CombinationsGe... |
/*
* 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... |
/*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... |
/*
* SerialDebugConverter - Utilities
*/
package net.joaolopesf.util;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
public class ShowException {
public static void show (String messa... |
package org.firstinspires.ftc.teamcode.PreProduction.Depreciated.Waypoints;
import com.acmerobotics.roadrunner.geometry.Pose2d;
//It's not really necessary to store this in it's own class but I'm pretty sure this is the safer
// way and it's also how roadrunner recommends so I'll do it like this.
public class PoseSto... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... |
package com.kingcall.seckill.common.error;
public class BusinessException extends Exception implements CommonError {
private CommonError commonError;
public BusinessException (CommonError commonError){
super();
this.commonError = commonError;
}
public BusinessException (String errorMe... |
package io.renren.modules.test.service.impl;
import io.renren.common.exception.RRException;
import io.renren.modules.test.dao.*;
import io.renren.modules.test.entity.*;
import io.renren.modules.test.handler.FileExecuteResultHandler;
import io.renren.modules.test.handler.FileResultHandler;
import io.renren.modules.test... |
/**
*
* dry-redis: In-memory pure java implementation to Redis
* Copyright (c) 2016, Sandeep Gupta
*
* http://sangupta.com/projects/dry-redis
*
* 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 L... |
package org.meridor.perspective.rest.data.converters;
import org.meridor.perspective.beans.Project;
import org.meridor.perspective.rest.data.beans.*;
import java.util.stream.Stream;
public final class ProjectConverters {
public static Stream<Cloud> projectToCloud(Project p) {
return Stream.of(new Cl... |
package com.linkedin.datahub.graphql.resolvers.glossary;
import com.google.common.collect.ImmutableList;
import com.linkedin.common.urn.Urn;
import com.linkedin.datahub.graphql.QueryContext;
import com.linkedin.datahub.graphql.generated.EntityType;
import com.linkedin.datahub.graphql.generated.GetRootGlossaryEntitiesI... |
/*
* 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 2017, Yahoo Holdings Inc.
// Licensed under the terms of the Apache License 2.0. Please see LICENSE file in project root for terms.
package com.yahoo.maha.maha_druid_lookups.query.lookup.namespace;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
i... |
package utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import play.Configuration;
/**
* 常量配置
* @author luobotao
* Date: 2015年4月18日 上午11:46:25
*/
public class Constants {
public static final S... |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright 2018-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
Copyright 2017 Olga Miller <olga.rgb@gmail.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 applicable law or agreed to in ... |
package pokecube.legends.proxy;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import pokecube.legends.init.PlantsInit;
import pokecube.legends.worldgen.dimension.UltraSpaceConfig;
import pokecube.legends.worldgen.structures.StructuresInit;
import thut.core.common.Proxy;
public class CommonProxy i... |
/*
* Copyright 2017 Denis Kokorin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*******************************************************************************
* Copyright (C) 2017-2019 Kat Fung Tjew
*
* 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 restri... |
package ton.sdk;
public class TONSDKJsonApi {
static {
System.loadLibrary("tonclient");
}
public interface IResultHandler {
void invoke(String resultJson, String errorJson, int flags);
}
public static native int createContext();
public static native void destroyContext(int con... |
/*
* Copyright 2017 OPS4J Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package com.deliveryit.challenge.thiago.infrastructure;
import com.deliveryit.challenge.thiago.core.data.InvoiceRequest;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.scheduling.annotation.Async;
@AllArgsConst... |
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
package avro.examples.baseball;
@SuppressWarnings("all")
public class Player extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord {
public static final org.apache.avro.Schema SCHEMA$ = org.apache.avro.Sche... |
package net.avicus.hook.temp.packages;
import lombok.Getter;
import net.avicus.hook.wrapper.HookClient;
public class InitialPackage extends Package {
@Getter
private final int deleteDelay;
@Getter
private final int cooldown;
public InitialPackage(int price, String successMessage, int deleteDelay, int cool... |
package <%=packageName%>.config;
<%_ if (hibernateCache == 'hazelcast' || clusteredHttpSession == 'hazelcast') { _%>
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.config.JHipsterProperties;
import com.hazelcast.config.Config;
import com.hazelcast.core.HazelcastInstance;
import com.haze... |
package telephony;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String[] phoneNumbers = rea... |
package com.palantir.product;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.Generated;
@Generated("com.palantir.conjure.java.types.AliasGenerator")
public final class AliasedBoolean {
private final boolean value;
private Aliase... |
package tester;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import javax.net.SocketFactory;
import javax.net.ssl.*;
import javax.xml.bind.DatatypeConverter;
import java.io.IOException;
import java.security.*;
import java.security.cert.CertificateExcepti... |
package li.strolch.soql.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.antlr.v4.runtime.tree.ParseTree;
import org.junit.Test;
/**
* @author msmock
*/
public class StatementTest extends... |
/*
* Copyright (c) 2012 OMP Inc. All rights reserved.
* This software is the confidential and proprietary information of OMP Inc.
* You shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you entered into
* with OMP Inc.
*/
package zes.op... |
package edu.gdei.gdeiassistant.Pojo.Entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import edu.gdei.gdeiassistant.Annotation.ExcelField;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import java.io.Serializable;
@Component
@Scope("prototyp... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* STS临时token获取
*
* @author auto create
* @since 1.0, 2019-04-25 15:34:20
*/
public class AlipayOpenStsTokenGetModel extends AlipayObject {
private static final long serialVersionUID = 5656444... |
package com.lms.backend.repositories;
import com.lms.backend.models.SystemRole;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import java.util.L... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package com.dranawhite.forum.dao;
import org.springframework.stereotype.Repository;
/**
* @author dranawhite
* @version 1.0.0
*/
@Repository
public interface BoardMapper extends BaseDao {
} |
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://47.104.82.199
*
* 版权所有,侵权必究!
*/
package io.renren.common.exception;
/**
* 自定义异常
*
* @author Mark sunlightcs@gmail.com
*/
public class RRException extends RuntimeException {
private static final long serialVersionUID = 1L;
private Str... |
/*
* Copyright (C) 2012 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package com.ofg.infrastructure.property;
public class PropertyUtils {
public static String getProperty(String name, String defValue) {
final String valOrNull = System.getProperty(name);
if (valOrNull == null) {
final String envValueOrNull = System.getenv(name);
return envValueOrNull != null ? envValueOrNul... |
package leetcode.problems;
import leetcode.models.TreeNode;
/** 700. Search in a Binary Search Tree
* You are given the root of a binary search tree (BST) and an integer val.
*
* Find the node in the BST that the node's value equals val and return the subtree rooted with that node.
* If such a node does not exist... |
/*
* Copyright (C) 2020 Reincarnation Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package reincarnation.coder.java.imports.ext... |
/*
* 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... |
//
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
/*
* Copyright 2014, MP Objects, http://www.mp-objects.com
*/
package com.mpobjects.formats.sofalife.spec.reader;
import java.io.InputStream;
import org.junit.Assert;
import org.junit.Test;
import com.mpobjects.formats.sofalife.spec.FormatSpec;
/**
*
*/
public class SpecLoaderTest {
@Test
public void testSpe... |
package io.nutz.demo.zbus.rpc.service;
import io.zbus.rpc.Remote;
@Remote
public interface TimeService {
long now();
} |
package com.koti.rest.repository;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import com.koti.rest.entity.Instructor;
@Reposito... |
package com.github.microtweak.jvolumes.google.emulator;
import com.google.cloud.ServiceRpc;
import com.google.cloud.spi.ServiceRpcFactory;
import com.google.cloud.storage.StorageOptions;
public class MinioServiceRpcFactory implements ServiceRpcFactory<StorageOptions> {
@Override
public ServiceRpc create(Stor... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.rollup.job;
import org.elasticsearch.act... |
package com.mkyong.web.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configurati... |
package com.nkanaev.comics.view;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextVie... |
/**
* Provides set of classes to analyze Java class files.
*/
package fr.ubordeaux.jmetrics.analysis; |
package com.atlassian.clover.reporters.html;
import clover.org.apache.velocity.runtime.RuntimeServices;
import clover.org.apache.velocity.runtime.log.LogChute;
import com.atlassian.clover.Logger;
public class VelocityLogAdapter implements LogChute {
private Logger mLogger;
public VelocityLogAdapter(Logger a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.