text stringlengths 7 995k |
|---|
/*
* MRUDocumentsManager.java
*
* Created on February 8, 2003, 6:33 PM
*/
/*
* (C) Copyright 2000-2007 PharmaDM n.v. All rights reserved.
*
* This file is licensed under the terms of the GNU General Public License (GPL) version 2.
* See http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
package com.phar... |
/**
* Copyright (C) 2014 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.integration.adapter;
import org.apache.commons.lang.NotImplementedException;
import org.testng.annotations.Test;
import com.opengamma.util.test.TestGroup;
/**
* Unit tests for {@link ActActIcmaFinm... |
/*
* 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 (c) 2016 Affectiva Inc.
* See the file license.txt for copying permission.
*/
package com.affectiva.errorreporting;
import android.app.Application;
import android.content.Intent;
public class CustomApplication extends Application {
static final boolean enableCustomErrorMessage = false;
st... |
/*
* Copyright 2013-2014 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 uk.gov.hmcts.cmc.ccd.migration.ccd.services.exceptions;
public class MigrationModelMappingException extends RuntimeException {
public MigrationModelMappingException(String msg, Exception ex) {
super(msg, ex);
}
} |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* 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 me.saurpuss.blockboost.blocks.single;
import me.saurpuss.blockboost.util.AbstractBlock;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
public class PotionEffectBlock extends AbstractBlo... |
// SPDX-Copyright: © Basil Peace
// SPDX-License-Identifier: Apache-2.0
package org.fidata.about.model.extended;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.io.File;
import java.... |
package fortunedog.mail.proxy.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletInputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.sl... |
/*
* Copyright 2016 Red Hat, 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://www.apach... |
package isy.listsavingviewpage;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.ListView;
import java.util.ArrayList;
/**
* Created by justinyang on 5/10/15.
*/
public class ProfilePage1F... |
/*
* 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... |
package com.excilys.computerdatabase.daos;
import java.io.File;
import java.sql.Connection;
import javax.sql.DataSource;
import org.dbunit.DataSourceDatabaseTester;
import org.dbunit.DatabaseTestCase;
import org.dbunit.IDatabaseTester;
import org.dbunit.database.DatabaseConfig;
import org.dbunit.database.DatabaseCon... |
package com.huaweicloud.sdk.iotedge.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.huaweicloud.sdk.iotedge.v2.model.CreateRouterRe... |
package me.dorian349.bfdapi.entities.user;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class UserBots {
@SerializedName("bots")
private List<String> bots;
public List<String> getBots() {
return bots;
}
} |
/*
* Copyright 2002-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... |
package pl.beda.javaSpringSecurityIntroduction.oauth2.resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
import java.util.stream.Stream;
@RestController
public class MessageController {
@GetMapping("/api/messag... |
package com.udu3324.hytools.mcapi;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import com.udu3324.hytools.Hytools;
public class UUID {
public static String get(String str) throws Exception {
String url = "https://api.mojang.com/... |
package io.github.pleuvoir.event.listener;
import io.github.pleuvoir.event.hander.EventHandler;
public abstract class AbstractEventListener<T> implements EventListener<T> {
/**
* 事件处理流程模板方法
* @param event 事件对象
*/
@Override
public void onEvent(T event) {
EventHandler<T> eventHandler = getEventHand... |
package com.lukaspar.ep.authentication.mapper;
import com.lukaspar.ep.authentication.dto.ReceiveMessageDto;
import com.lukaspar.ep.authentication.dto.SendMessageDto;
import com.lukaspar.ep.authentication.model.Message;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import java.util.List;
@Mapper(componen... |
// Copyright 2018 The Bazel 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 appl... |
package com.engineerbetter.converger.intents;
import com.engineerbetter.converger.resolution.RelationshipResolution;
public class OrgManagerIntent implements Intent<RelationshipResolution>
{
public final OrgIntent orgIntent;
public final CfUserIntent userIntent;
private RelationshipResolution resolution;
public... |
/*
* Syncany, www.syncany.org
* Copyright (C) 2011-2015 Philipp C. Heckel <philipp.heckel@gmail.com>
*
* 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
... |
package cyclops.container.chain;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import cyclops.container.traversable.IterableX;
import cyclops.container.control.Option;
import cyclops.container.immutable.impl.Chain;
import cyclops.container.immutable.ImmutableList;
i... |
/**
* 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... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Subsystem.Swerve;
import edu.wpi.first.wpilibj.Gyro;
/**
*
* @author liamcook
*/
//is a class so we can add a compass, 2n... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.loader;
public final class R {
private R() {}
public static final class attr {
private attr() ... |
package io.micronaut.build;
import com.github.dockerjava.api.command.BuildImageCmd;
import com.google.cloud.tools.jib.plugins.common.PropertyNames;
import io.micronaut.build.jib.JibMicronautExtension;
import io.micronaut.build.services.ApplicationConfigurationService;
import io.micronaut.build.services.DockerService;
... |
package net.ryanland.empire.sys.file.database.documents;
/**
* Indicates this class extending {@link BaseDocument} is retrieved using a Discord snowflake
*/
public interface SnowflakeDocument {
String getId();
} |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 hsz Jakub Chrzanowski <jakub@hsz.mobi>
*
* 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 limita... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright 2010 James Pether Sörling
*
* 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... |
package com.codepath.apps.restclienttemplate.adapters;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.codepath.apps.restclienttemplate.frag... |
/*
* Copyright (c) 2016 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
package gov.nasa.worldwind.render;
import android.opengl.GLES20;
import gov.nasa.worldwind.util.Logger;
/**
* Represents an OpenGL shading language... |
package it.polimi.ingsw.model.board;
import java.io.Serializable;
/**
* It's composing the FaithTrack with its extensions: SimpleBox, GoldBox and PopeBox.
* The "whichVaticanSection" attribute indicates which Vatican Section contains it (0 if it's not contained by no vatican section)
* The "numberBox" attribute re... |
/*******************************************************************************
* ============LICENSE_START========================================================================
* ONAP : ccsdk feature sdnr wt
* =================================================================================================
* Co... |
package com.gracelogic.platform.db.model;
import java.io.Serializable;
import java.util.Date;
public abstract class IdObject<E extends Comparable> implements Serializable {
public static final String ID = "id";
public static final String CREATED = "created_dt";
public static final String CHANGED = "change... |
/*
* Copyright 2019-2020 Zheng Jie
*
* 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 agree... |
package com.example.a15840.coolweather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by 15840 on 2018/1/8.
*/
public class Suggestion {
@SerializedName("comf")
public Comfort comfort;
@SerializedName("cw")
public CarWash carWash;
public Sport sport;
public class Com... |
package net.minecraft.server;
import org.bukkit.event.entity.EntityCombustByEntityEvent; // CraftBukkit
public class EntitySmallFireball extends EntityFireball {
public EntitySmallFireball(World world) {
super(world);
this.setSize(0.3125F, 0.3125F);
}
public EntitySmallFireball(World wor... |
/*
* Copyright 2019-2020 Zheng Jie
*
* 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 agree... |
package com.atguigu.gmall.sms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import... |
/*
* 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.wakaleo.schemaspy;
import com.wakaleo.schemaspy.util.DatabaseHelper;
import java.io.File;
import java.util.Locale;
import org.apache.maven.plugin.testing.AbstractMojoTestCase;
/**
* SchemaSpyReport unit tests Test POM files is kept in test/resources/unit
* directory.
*
* @author john
*/
public clas... |
package org.jfrog.hudson.pipeline.dsl;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import org.jenkinsci.plugins.workflow.cps.CpsScript;
import org.jfrog.hudson.pipeline.types.ArtifactoryServer;
import org.jfrog.hudson.pipeline.types.Do... |
/**
* 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.mapbox.services.android.navigation.v5.navigation;
import android.location.Location;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Process;
import com.mapbox.services.android.navigation.v5.milestone.Milestone;
import com.mapbox.services.android.navigation.v5.routeprogress.Ro... |
/* Copyright 2019 The OpenTracing Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
/*
* Copyright (C) 2014 Camptocamp
*
* This file is part of MapFish Print
*
* MapFish Print 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) any l... |
package com.example;
public class UpdaterApi {
private static final String VERSION_PATH = "version.json";
private String mBasePath;
public UpdaterApi(final String pBasePath) {
if (pBasePath.charAt(pBasePath.length() - 1) == '/'){
mBasePath = pBasePath;
} else {
mB... |
/*
* Copyright 2020-2021 redragon.dongbin
*
* 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 applicable law o... |
package net.fortytwo.ripple.sail;
import info.aduna.iteration.CloseableIteration;
/**
* @author Joshua Shinavier (http://fortytwo.net)
*/
public class EmptyCloseableIteration<T, E extends Exception> implements CloseableIteration<T, E> {
public void close() throws E {
}
public boolean hasNext() throws E... |
/**
* MVC基础包, 封装的 Controller、Service、Mapper等
* <p>
* 为什么Controller要拆分成这么多个?而Service和Mapper不拆分
* 1,Controller 是给前端使用的,对于前端人员,看到的无用接口越少,越有利于对接
* 2,过多的 Controller 接口暴露在外,增加被人恶意攻击风险
* 3,Service和Mapper都是后端人员使用,丰富一些无所谓,就算会多个后端协同开发,因为都懂JAVA,沟通阅读起来没那么难
* 4,Service和Mapper都继承了MP的IService和BaseMapper,没得选择!
*
* @version 2.... |
/*
* Copyright 2015-2016 http://hsweb.me
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
/*
* Copyright 2014 Alexey Andreev.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.example.root.audiorecorderdemo;
import android.app.Activity;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaCodec;
import android.media.MediaCodecInfo;
import android.media.MediaFormat;
import android.media.MediaRecorder;
import android.os.Build;
import androi... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.marandaneto.concurrenthashmapsample;
import java.util.concurrent.ConcurrentHashMap;
public class MyConcurrentHashMap extends ConcurrentHashMap<String, Object> {
public static final String MY_CLASS = "myclass";
private <T> T toContextType(String key, Class<T> clazz) {
Object item = get(ke... |
package com.whut.ein3614.materialtest;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2015 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... |
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.internal.permissions;
public enum SuggestedLevel {
NONE, ADMIN, MOD, USER
} |
package org.dsw.controller.locacao;
import org.dsw.dao.LocadoraDAO;
import org.dsw.model.Locadora;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReque... |
package ca.yorku.cse.mack.demotiltballcse03076;
/**
* OneEuroFilter - for smoothing accelerometer data
*
* Initial code copied from http://www.lifl.fr/~casiez/1euro/OneEuroFilter.java
* on recommendation from Per Ola Kristensson at the CHI2013 Text Entry Workshop (Apr. 27, 2013)
*
*/
public class OneEuroFilter
... |
package com.atguigu.gmall.sms.controller;
import java.util.Arrays;
import java.util.Map;
import com.atguigu.core.bean.PageVo;
import com.atguigu.core.bean.QueryCondition;
import com.atguigu.core.bean.Resp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans... |
/*
* 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.luck.picture.lib.config;
/**
* @author:luck
* @date:2021/11/23 6:53 下午
* @describe:SelectMimeType
*/
public class SelectMimeType {
/**
* GET image or video only
* <p>
* excluding Audio
* </p>
*/
public static int ofAll() {
return TYPE_ALL;
}
/**
*... |
/*
* 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 net.gvsun.gsexam.domain;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* The persistent class for the t_course_site_group_comment database table.
*
*/
@Entity
@Table(name="t_course_site_group_comment")
@NamedQuery(name="TCourseSiteGroupComment.findAll", query="SELECT... |
package im.actor.model.api.rpc;
/*
* Generated by the Actor API Scheme generator. DO NOT EDIT!
*/
import im.actor.model.droidkit.bser.Bser;
import im.actor.model.droidkit.bser.BserParser;
import im.actor.model.droidkit.bser.BserObject;
import im.actor.model.droidkit.bser.BserValues;
import im.actor.model.droidkit.... |
package org.elasticsearch.common.netty;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.handler.codec.frame.FrameDecoder;
/**
* A marker to not remove frame decoder from the resulting jar so plugins can ... |
/*
* 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 ... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.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 ... |
/**
* 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.test.backend.util;
import java.sql.Time;
import java.time.LocalTime;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
/**
* JPA does not know how to handle Java 8 java.time.LocalTime so this converts
* LocalTime into format it can handle.
*/
@Converter(autoApply... |
package com.coolweather.android.db;
import org.litepal.crud.DataSupport;
/**
* Created by Lv on 2018/11/5.
* 存放 省
*/
public class Province extends DataSupport {
private int id ;
private String provinceName; //省份名称
private int provinceCode ; //省份代号
public int getId() {
return id... |
package com.impact.mods.gregtech.items.tools;
import gregtech.api.interfaces.IToolStats;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import java.util.List;
public interface IImpact_Tools {
... |
package com.rf.techmod;
import com.rf.techmod.util.ModRegistry;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TechMod implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to... |
/*
* 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.hbm.blocks.machine;
import java.util.Random;
import com.hbm.blocks.ModBlocks;
import com.hbm.interfaces.IDummy;
import com.hbm.main.MainRegistry;
import com.hbm.tileentity.machine.TileEntityAMSLimiter;
import com.hbm.tileentity.machine.TileEntityDummy;
import com.hbm.tileentity.machine.TileEntityDummyFlui... |
package 日期_时间;
//万年历(农历、阳历节日、阴历节日)
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.HashMap;
/**
* 农历日历。<br>
* 将农历从1901年到2100年之间各年、月的大小以及历年节气保存,然后基于这些数据进行计算。<br>
* <br>
* 新增了几个用于农历的常量属性字段,可以使用get()方法获取日历对应的值;<br>
* 农历年、月、日还可以使用set()/add()/roll()方法设置,其他农历属性自动计算... |
package bench.Crack;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import bench.BenchUtils;
import bench.Benchmark;
import bench.Transaction;
import kv_interfaces.CockroachDB;
import kv_interfaces.KvInterface;
import kvstore.exceptions.KvException;
import kvstore.exceptions.TxnException;
... |
class Foo {
static {
}
} |
package net.serenitybdd.core.pages;
import com.google.common.base.Splitter;
import io.appium.java_client.AppiumDriver;
import net.serenitybdd.core.Serenity;
import net.serenitybdd.core.SystemTimeouts;
import net.serenitybdd.core.time.InternalSystemClock;
import net.thucydides.core.ThucydidesSystemProperty;
import net.... |
package android.os;
import java.io.File;
public class Environment {
public static File getDataProfilesDePackageDirectory(int userId, String packageName) {
throw new IllegalArgumentException("STUB");
}
} |
package com.zdy.cloudweather.db;
import org.litepal.crud.DataSupport;
/**
* Created by mike_zdy on 2017/5/12.
*/
public class City extends DataSupport {
private int id;
private String cityName;
private int cityCode;
private int provinceId;
public int getId() {
return id;
}
... |
package recommender.persistence.manager.mapper;
import recommender.persistence.entity.ClassProperties;
import recommender.persistence.manager.dto.class_properties.AddClassProperties;
import recommender.persistence.manager.dto.class_properties.GetClassProperties;
public final class ClassPropertiesMapper {
public s... |
/*
* Copyright (C) 2014 Robert Stupp, Koeln, Germany, robert-stupp.de
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
package org.hunters.server;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.List;
public class MessageWriter {
private List<Message> writeQueue = new ArrayList<>();
private Message messageInProgress = null;
private int bytesWritten = 0... |
package com.example.xiaoymin;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringbootApiXiaoyminKnife4jApplicationTests {
@Test
void contextLoads() {
}
} |
/*
* Copyright 2015 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... |
package com.tom_e_white.set_game.predict;
import com.tom_e_white.set_game.model.Card;
import com.tom_e_white.set_game.model.Cards;
import com.tom_e_white.set_game.model.Triple;
import com.tom_e_white.set_game.preprocess.CardDetector;
import com.tom_e_white.set_game.preprocess.CardImage;
import java.io.File;
import jav... |
/*
* 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;
import static com.facebook.infer.annotation.ThreadConfined.ANY;
import static com.facebook.infe... |
package com.k2.mobile.app.controller.activity.menu.email;
import java.util.ArrayList;
import java.util.List;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Ke... |
package com.kids.api.store;
import java.util.List;
public interface StoreService {
int addItem(Item item);
List<Item> getItemList(int parentId);
int updateItem(Item item);
int deleteItem(int itemNo);
Item getItemByItemNo(int itemNo);
int addKidItem(KidsStore kidItem);
int del... |
/*
*
* 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
* distri... |
/*
* Copyright (c) 2008-2012, Matthias Mann
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.