text stringlengths 7 995k |
|---|
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
package net.minecraft.server;
public class TileEntityLightDetector extends TileEntity implements IUpdatePlayerListBox {
public TileEntityLightDetector() {}
public void c() {
if (this.world != null && !this.world.isClientSide && this.world.getTime() % 20L == 0L) {
this.e = this.w();
... |
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
im... |
package gitlet.commands.factories;
import gitlet.commands.Command;
import gitlet.commands.RmRemoteCommand;
public class RmRemoteCommandFactory implements CommandFactory {
@Override
public String getCommandName() {
return "rm-remote";
}
@Override
public String getCommandDescriptio... |
/*
* Copyright 2015-2020 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 animfix.asm;
import net.minecraft.launchwrapper.IClassTransformer;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.InsnList;
impor... |
package com.glume.common.core.constant;
/**
* @author tuoyingtao
* @create 2021-12-13 11:35
*/
public class CartConstant {
/** 临时用户 */
public static final String TEMP_USER_COOKIE_KEY = "user-key";
/** Cookie 过期时间 */
public static final int TEMP_USER_COOKIE_TIMEOUT = 60 * 60 * 24 * 30;
/** 购物车KE... |
/*
* Copyright 2017 Huawei Technologies Co., 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... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2019 Am... |
/*
* 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 org.esfinge.querybuilder.neo4j.dynamic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.lang.reflect.Method;
import org.esfinge.querybuilder.neo4j.Neo4JVisitorFactory;
import org.esfinge.querybuilder.neo4j.TestQue... |
package com.zebra.deviceorientationservice;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebView;
public class LicenceActivity extends AppCompatActivity {
WebView mWebView = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
s... |
package io.renren.feign.req;
import lombok.Data;
import java.io.Serializable;
@Data
public class Request<T> implements Serializable {
private T data;
public Request(){
}
public Request(T data){
this.data = data;
}
} |
/*
* Copyright 2019 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
package lab5_eliasgiron;
public class Carta {
//contendran Nombre, Daño, Puntos de Vida, Objetivo (Aereos, Terrestres o Aereos y Terrestres), Velocidad (Alta, Media y Baja)
//y Coste de Elixir. Pueden Comun, Especial, Epica y Legendaria.
private String nombre;
private int dano;
private int puntos;
... |
package org.ff4j.couchdb.document;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.ektorp.support.CouchDbDocument;
/*
* #%L
* ff4j-store-couchdb
* %%
* Copyright (C) 2013 - 2019 FF4J
* %%
* Licensed under the Apache License, Version 2.0 (th... |
package org.spongepowered.tools.obfuscation.interfaces;
import org.spongepowered.asm.mixin.injection.struct.MemberInfo;
import org.spongepowered.asm.obfuscation.mapping.IMapping;
import org.spongepowered.asm.obfuscation.mapping.common.MappingField;
import org.spongepowered.asm.obfuscation.mapping.common.MappingMethod;... |
public class Solution {
/**
* @param nums: a list of integers
* @return: find a majority number
*/
public int majorityNumber(ArrayList<Integer> nums) {
// write your code
int res = 0;
int cnt = 0;
for (int num : nums) {
if (cnt == 0) {
... |
/*
* An XML document type.
* Localname: expectedMediaType
* Namespace: http://www.w3.org/2004/06/xmlmime
* Java type: org.w3.www._2004._06.xmlmime.ExpectedMediaTypeDocument
*
* Automatically generated - do not modify.
*/
package org.w3.www._2004._06.xmlmime;
/**
* A document containing one expectedMediaType(@... |
//,temp,TestFileBasedCopyListing.java,406,427,temp,TestFileBasedCopyListing.java,301,321
//,3
public class xxx {
private void caseGlobTargetMissingMultiLevel(boolean sync) {
try {
Path listFile = new Path("/tmp1/listing");
Path target = new Path("/tmp/target");
addEntries(listFile, "/tmp/*/*")... |
package com.sixtyfour.test;
import java.io.FileInputStream;
import java.util.HashMap;
import java.util.Map;
import com.sixtyfour.Assembler;
import com.sixtyfour.Basic;
import com.sixtyfour.Loader;
import com.sixtyfour.config.CompilerConfig;
import com.sixtyfour.plugins.impl.RamSystemCallListener;
import com.sixtyfour... |
package sdkontologyjmc;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jacks... |
/*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package cn.wecloud.sdk.storage.response;
import cn.wecloud.sdk.common.api.WeCloudResponse;
import cn.wecloud.sdk.storage.data.WeCloudStorageUserFileInfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @author 陈俊雄
* @since 2020/10/22
**/
@Data
@EqualsAndHashCode(cal... |
package com.messedcode.openshoppinglist.ui.list;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ValueAnimator;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
im... |
package com.safecharge.request;
import javax.validation.ConstraintViolationException;
import javax.validation.Valid;
import javax.validation.constraints.Size;
import com.safecharge.model.Addendums;
import com.safecharge.model.DynamicDescriptor;
import com.safecharge.request.builder.SafechargeTransactionBuilder;
impor... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_connect_tcp_postdec_75a.java
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-75a.tmpl.java
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: connect_tcp Read data using an outbound tcp... |
package com.example.control.ui.home;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx... |
package ru.job4j.array;
import java.util.Arrays;
/**
* Сортировка пузырьком.
* @author Alexander Abramov (alllexe@mail.ru)
* @version 1
* @since 21.01.2019
*/
public class BubbleSort {
private int count = 0;
/**
* Сортировка пузырьком.
* @param array входящий массив для сортировки.
* @re... |
package com.ghx.hackaton.analytcis.agent.sender;
import com.ghx.hackaton.analytcis.agent.logger.base.ExecutionInfo;
import java.util.Map;
/**
* @author Alexey Sheukun <asheukun@exadel.com> on 01.07.2015.
*/
public interface Sender {
void send(String serverId, Map<String, ExecutionInfo> info);
} |
package com.atguigu.gmall.ums.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gmall.common.bean.PageResultVo;
import com.atguigu.gmall.common.bean.PageParamVo;
import com.atguigu.gmall.ums.entity.UserCollectSubjectEntity;
import java.util.Map;
/**
* 关注活动表
*
* @author fengge... |
/*
* 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 ru.job4j.trackingsystem.io;
import java.util.List;
/**
* Класс эмулирующий поведение пользователя, реализует интерфейс Input.
*/
public class StubInput implements Input {
/**
* Это поле содержит последовательность ответов пользователя.
* Например. Если пользователь
* хочет выбрать добавле... |
/*
Copyright 2006 Jerry Huxtable
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
d... |
package net.pladema.person.repository;
import net.pladema.person.repository.domain.CompletePersonVo;
import net.pladema.person.repository.domain.PersonalInformation;
import net.pladema.person.repository.entity.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.rep... |
/*
* 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 ... |
/**
* LineItemSummaryDuration.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201311;
public class LineItemSummaryDuration implements java.io.Serializable {
private java.lang.String _value_;
pr... |
/*
* Copyright 1998-2014 University Corporation for Atmospheric Research/Unidata
*
* Portions of this software were developed by the Unidata Program at the
* University Corporation for Atmospheric Research.
*
* Access and use of this software shall impose the following obligations
* and understandings on... |
package com.prototype.microservice.commons.utils;
public final class Base64 {
private Base64() {
}
/**
* Decode a Base64 URL Safe encoded string into a byte array.
*
* @param base64UrlSafeString
* @return
* @throws Exception
*/
public static byte[] UriBase64ToBytes(final ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.aad.msal4j;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.util.Map;
@Test(groups = { "checkin" })
public class HttpHeaderTest {
@Test
public void testHttpHeaderC... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
package br.com.zup.estrelas.sme.dto;
public class TokenDto {
private String token;
private String tipo;
public TokenDto(String token, String tipo) {
this.token = token;
this.tipo = tipo;
}
public String getToken() {
return token;
}
public String getTipo() {
return tipo;
}
} |
package org.eshow.demo.activity;
import android.Manifest;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.widget.T... |
package starter.viewitem;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.questions.Text;
import starter.search.SearchResultBox;
import java.util.List;
public class DisplayedItems {
public static Question<List<String>> descriptions() {
return Text.of(SearchResultBox.TITLE).a... |
package dimas.sumbawatour.webview;
/*
* Android Smart WebView is an Open Source Project available on GitHub (https://github.com/mgks/Android-SmartWebView).
* Initially developed by Ghazi Khan (https://github.com/mgks) under MIT Open Source License.
* This program is free to use for private and commercial purposes.
... |
package cn.lxb.blog.web;
import cn.lxb.blog.constant.BlogConstant;
import cn.lxb.blog.service.BloggerService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMetho... |
package com.xtlog.rants.intercepter;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Created by admin on 2017/4/17... |
package com.<project>.core.models;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.models.annotations.Default;
import org.apache.sling.models.annotations.Model;
import org.apache.sling.models.annotations.injectorspecific.InjectionStrategy;
import org.apache.sling.models.annotations.injectorspeci... |
/*
* MIT License
*
* Copyright (c) 2021 pumbas600
*
* 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, copy, modify... |
/*
Copyright 2019 The Alcor 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... |
package fm.pattern.tokamak.server;
import java.util.Arrays;
import java.util.stream.Collectors;
import org.assertj.core.api.AbstractAssert;
import org.assertj.core.api.Assertions;
import fm.pattern.valex.Reportable;
import fm.pattern.valex.ReportableException;
import fm.pattern.valex.Result;
public class ResultAsse... |
package com.redhat.pantheon.servlet;
import com.redhat.pantheon.asciidoctor.AsciidoctorService;
import com.redhat.pantheon.conf.GlobalConfig;
import com.redhat.pantheon.extension.Events;
import com.redhat.pantheon.extension.events.document.DocumentVersionPublishedEvent;
import com.redhat.pantheon.model.HashableFileRes... |
/*
* Copyright (C) 2017-2018 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... |
/*
honeybird - Fluent queries for Google Analytics
src/java/com/threerings/honeybird/FilterSource.java
Copyright 2009 Three Rings Design, 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... |
package fr.eisti.service;
/**
* Created by ivan on 10/01/17.
*/
public interface SecurityService {
String findLoggedInUsername();
void autoLogin(String username, String password);
} |
package upstart.util.concurrent;
import upstart.util.exceptions.ThrowingConsumer;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Executor;
import java.util.concurrent.ForkJoinPool;
import java.util.function... |
/**
* 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.github.ddth.tsc.test;
import com.github.ddth.tsc.DataPoint;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* @author Thanh Nguyen <btnguyen2k@gmail.com>
* @since 0.7.0
*/
public abstract class BaseSeriesDataPointTest extends BaseCounterTest {
/**
* Create the test case
... |
/*
*Copyright 2016 Rodrigo Agerri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
/*
* Copyright 1997-2020 Optimatika
*
* 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, copy, modify, merge, publish... |
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
package com.Updater.update;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.text.TextUtils;
import android.util.Log;
import android.widget.Toast;
import org.json.JSONException;
import org.json.JSONObject;
class CheckUpdateTask extends AsyncTask<Void, V... |
package com.wintertodt.scouter;
import net.runelite.client.RuneLite;
import net.runelite.client.externalplugins.ExternalPluginManager;
public class WintertodtScouterPluginTest
{
public static void main(String[] args) throws Exception
{
ExternalPluginManager.loadBuiltin(WintertodtScouterPlugin.class);
RuneLite.m... |
package com.fantasticsource.instances.blocksanditems.blocks;
import com.fantasticsource.instances.Instances;
import com.fantasticsource.instances.blocksanditems.BlocksAndItems;
import com.fantasticsource.instances.blocksanditems.tileentities.TEEntryPortal;
import com.fantasticsource.instances.server.Teleport;
import n... |
// This is a generated file. Not intended for manual editing.
package org.elixir_lang.psi;
import com.ericsson.otp.erlang.OtpErlangObject;
import com.intellij.navigation.ItemPresentation;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiPolyVariantReference;
import com.intellij.psi.PsiReference;
import c... |
/*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package org.ditto.cloud.repository;
import org.ditto.cloud.model.Breed;
import org.ditto.cloud.model.Dog;
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
import org.apache.ignite.configuration.CacheConfiguration;
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.s... |
package com.free4lab.account.api.action.billing;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.perf4j.aop.Profiled;
import com.free4lab.account.common.Constants;
import com.free4lab.account.manage... |
/*
* 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 nodagumi.ananPJ.Editor.EditCommand;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import nodagumi.ananPJ.Editor.MapEditor;
import nodagumi.ananPJ.NetworkMap.Area.MapArea;
import nodagumi.ananPJ.NetworkMap.Area.MapAreaRectangle;
import nodagumi.ananPJ.NetworkMap.MapPartGroup;
import nodagumi.an... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 银行二清商户入驻接口
*
* @author auto create
* @since 1.0, 2017-09-23 20:46:27
*/
public class AlipayBossProdSubmerchantCreateModel extends AlipayObject {
private static final long serialVersionUID =... |
package org.tucke.inferior.client;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStat... |
package org.aksw.rdfunit.model.interfaces.results;
import java.util.Set;
import org.aksw.rdfunit.model.helper.PropertyValuePair;
public interface ShaclTestCaseResult extends ShaclLiteTestCaseResult {
Set<PropertyValuePair> getResultAnnotations();
} |
/**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... |
/*
* 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 2018-2019 Jacek Papis, Michał Piątek
*
* 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 re... |
package net.minecraft.block;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockS... |
package com.github.east196.terminator.xtend.bot;
import com.google.common.base.CaseFormat;
import com.google.common.base.Charsets;
import com.google.common.io.Files;
import java.io.File;
import java.io.FileInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import javax.... |
/*
* 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.course.generator.util;
public class Field {
private String name; // 字段名:course_id
private String nameHump; // 字段名小驼峰:courseId
private String nameBigHump; // 字段名大陀峰:CourseId
private String nameCn; // 中文名:课程
private String type; // 字段类型:char(8)
private String javaType; // java类型:Stri... |
package edu.yctc.project.system.knowledgePicture.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springfr... |
/*
* Copyright 2018 SNU Data Mining Lab.
*
* 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... |
package Java_02;
import java.util.Scanner;
public class StringContains {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String text = scanner.nextLine();
}
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.customerinsights.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import co... |
package com.github.bachelorpraktikum.visualisierbar.view.legend;
import com.github.bachelorpraktikum.visualisierbar.model.Shapeable;
import com.github.bachelorpraktikum.visualisierbar.model.Shapeable.VisibleState;
import com.github.bachelorpraktikum.visualisierbar.view.DataSourceHolder;
import java.io.IOException;
imp... |
/*
* 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 2017-2022 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 synctrl;
import java.util.concurrent.locks.ReentrantLock;
public class IntLock implements Runnable {
public static ReentrantLock lock1 = new ReentrantLock();
public static ReentrantLock lock2 = new ReentrantLock();
int lock;
/**
* 控制加锁顺序,方便构造死锁
* @param lock
*/
public IntLoc... |
package io.github.slawomirr.library.repository;
import io.github.slawomirr.library.domain.Copy;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
import java.util.List;
import java.util.Optional;
@Transactional
@Reposi... |
/*
* Copyright 2011 by Graz University of Technology, Austria
* MOCCA has been developed by the E-Government Innovation Center EGIZ, a joint
* initiative of the Federal Chancellery Austria and Graz University of Technology.
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
* the Europ... |
/*
Copyright (c) 2015, Alcatel-Lucent Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
package br.com.otimo.reviv.modelo;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
p... |
package com.quickblox.q_municate_user_cache;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
... |
package com.bluedot.commons.security;
public enum AccountType {
EMISOR_ELECTRONICO
} |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... |
package com.keqi.seed.core.exception;
import java.io.Serializable;
/**
* 未登录异常类
*
* @author keqi
*/
public class NoAuthException extends RuntimeException implements Serializable {
private static final long serialVersionUID = 9205040918500095861L;
} |
/*
* Copyright 2013-2017 consulo.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 required by applicable law or agreed to ... |
/*
* Copyright 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 applic... |
/*-
*
* * Copyright 2015 Skymind,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
* *
* * ... |
/*
* PExpTextRenderingVisitor.java
* ---------------------------------
* Copyright (c) 2017
* RESOLVE Software Research Group
* School of Computing
* Clemson University
* All rights reserved.
* ---------------------------------
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.