text stringlengths 7 1.01M |
|---|
// Exp 10 - UDP Client (Sender)
import java.io.*;
import java.net.*;
public class lab10client {
public static void main(String[] args) throws IOException {
InetAddress saddr = null;
int sport = 0;
DatagramSocket sock = new DatagramSocket();
BufferedReader userIn =
new BufferedReader(new InputStr... |
package com.javanorth.spring.springbootsecurity.filter;
import com.google.gson.Gson;
import com.javanorth.spring.springbootsecurity.service.impl.TokenServiceImpl;
import com.javanorth.spring.springbootsecurity.service.impl.UserDetailsServiceImpl;
import com.javanorth.spring.springbootsecurity.util.LogUtil;
import io.j... |
/*
* Copyright (C) 2012 Zach Melamed
*
* Latest version available online at https://github.com/zach-m/jonix
* Contact me at zach@tectonica.co.il
*
* 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 ... |
/*
* Copyright 2002-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 org.meteogroup.griblibrary.grib1;
import org.meteogroup.griblibrary.exception.BinaryNumberConversionException;
import org.meteogroup.griblibrary.grib1.model.Grib1PDS;
import org.meteogroup.griblibrary.util.BitChecker;
import org.meteogroup.griblibrary.util.BytesToPrimitiveHelper;
import java.util.ArrayList;
... |
package com.itanelse.mobileguard.activities;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import andr... |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.ai.platform.modules.sys.web;
import javax.servlet.http.HttpServletRequest;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Contro... |
/**
* generated by Xtext 2.16.0
*/
package in.handyman.dsl.impl;
import in.handyman.dsl.Abort;
import in.handyman.dsl.Action;
import in.handyman.dsl.Callprocess;
import in.handyman.dsl.Catch;
import in.handyman.dsl.Checksum;
import in.handyman.dsl.Copydata;
import in.handyman.dsl.DeleteFolder;
import in.... |
package dswork.web;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* 扩展Cookie
*/
public class MyCookie
{
private HttpServletResponse response;
private HttpServletRequest request;
/**
* 初始化cookie
* @param requ... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.subscription;
/**
* Thrown when {@link ConfigSubscriber} is closed
*
* @author bjorncs
* @deprecated Will be removed in Vespa 8. Only for internal use.
*/
@Deprecated(forRemoval = tru... |
package com.example.android.sunshine.app;
import android.annotation.TargetApi;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.PreferenceActivity;
import android.preference.Prefe... |
/*
* Copyright 2011 Google Inc. 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 ... |
package data;
import java.io.Serializable;
/**
* Created by Administrator on 2016/11/10.
*/
public class Arragementdata implements Serializable {
private String place,time_go,time_back;
private String day;
private String amount;
private int id;
private int t_year,t_month,t_day;
public boole... |
package com.smartbear.readyapi4j.testengine.execution.textrecipe;
import com.smartbear.readyapi4j.HttpBasicAuth;
import com.smartbear.readyapi4j.TestRecipe;
import com.smartbear.readyapi4j.TestRecipeBuilder;
import com.smartbear.readyapi4j.client.model.TestJobReport;
import com.smartbear.readyapi4j.execution.Execution... |
package com.tuya.smart.rnsdk.camera.activity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import androi... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... |
public boolean equals(Object o) {
Pair ob = (Pair) o;
int ff;
int ss;
if (o != null) {
ff = ob.f;
ss = ob.s;
if ((ff == this.f) && (ss == this.s))
return true;
}
return false;
} |
package com.devteam.module.account.data.db.sample;
import java.util.Arrays;
import org.junit.jupiter.api.Assertions;
import org.springframework.beans.factory.annotation.Autowired;
import com.devteam.module.account.service.AccountService;
import com.devteam.module.account.model.NewAccountModel;
import com.devteam.mod... |
/*!
* Copyright 2010 - 2013 Pentaho Corporation. 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 ap... |
/*
* 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 fjord.ast.pat;
import fjord.ast.NodeVisitor;
import fjord.ast.NodeWithChildren;
public class RecordPattern extends NodeWithChildren<FieldPattern> implements Pat {
@Override
public void accept(NodeVisitor visitor) {
visitor.visit(this);
}
}
|
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
/*
* Copyright 2015-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.mber.javarush.task.task16.task1602;
/*
My second thread
*/
public class Solution {
public static void main(String[] args) {
TestThread thread = new TestThread();
thread.start();
}
public static class TestThread extends Thread {
static {
System.out.println("... |
package com.dust.core.task.tick;
import com.dust.core.axis.TickAxis;
import com.dust.core.task.AbstractRepeatTask;
import com.dust.core.task.Task;
public abstract class AbstractTickRepeatTask extends AbstractRepeatTask {
public AbstractTickRepeatTask(Task task, long initDelayFrame, long delayFrame, int repeatMax... |
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.azure.iotsolutions.uiconfig.services.external;
import com.google.inject.ImplementedBy;
import com.microsoft.azure.iotsolutions.uiconfig.services.exceptions.ExternalDependencyException;
import java.util.concurrent.CompletionStage;
@ImplementedBy(... |
package gov.nih.nci.cananolab.security.service;
import gov.nih.nci.cananolab.security.CananoUserDetails;
import gov.nih.nci.cananolab.security.dao.UserDao;
import gov.nih.nci.cananolab.security.enums.CaNanoRoleEnum;
import gov.nih.nci.cananolab.security.utils.SpringSecurityUtil;
import gov.nih.nci.cananolab.util.Strin... |
package gopherdoc.buttercoin.trader;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.Array... |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... |
package duelistmod.cards.pools.aqua;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import dueli... |
package com.gx0c.topdownshooter.core.game.systems.render;
import com.badlogic.ashley.core.EntitySystem;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.maps.MapObject;
import com.badlogic.gdx.maps.MapProperties;
import com.badlogic.gdx.maps.objects.PolygonMapObject;
import com.badlogic.gdx... |
// Copyright 2020 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... |
/*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition 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://www.gridgain.com/products/software/community-edition... |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... |
package net.minestom.server.entity.type.ambient;
import net.minestom.server.entity.EntityCreature;
import net.minestom.server.entity.EntityType;
import net.minestom.server.entity.type.Animal;
import net.minestom.server.utils.Position;
import net.minestom.server.utils.binary.BinaryWriter;
import org.jetbrains.annotatio... |
package com.zzz.wifiview;
import android.app.*;
import android.os.*;
import java.util.*;
import java.io.*;
import android.content.*;
import android.widget.*;
import android.view.*;
import java.text.*;
import android.text.*;
import android.net.*;
public class FileActivity extends Activity {
ArrayList<Map<String, Stri... |
/**
* 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... |
package DP;
import java.util.*;
import javax.swing.Box.Filler;
public class unique_paths_62 {
//1. 分治:最优子结构(重复性)
//f(i,j) = f(i-1,j) + f(i,j-1)
//2. 状态数组/DP表
//3. 状态转移方程
public int uniquePaths(int m, int n) {
int[] dp = new int[n];
Arrays.fill(dp, 1);
for (int i = 1; i < m;... |
package com.example.maguoqing.androiddemo.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;... |
// This is a generated file. Not intended for manual editing.
package io.github.sof3.libglocal.intellij.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiT... |
package ru.job4j.tracker;
import java.util.List;
/**
* @author Konstantin Kazakov (plan.05.87@gmail.com).
* @version $Id$
* @since 0.1
*/
public interface Input {
String ask(String question);
int ask(String question, List<Integer> range);
}
|
/*
* Copyright 2015 Google Inc. 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 applica... |
package com.github.jinahya.bit.io;
/*-
* #%L
* bit-io2
* %%
* Copyright (C) 2020 Jinahya, 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/lic... |
/*
* Copyright (c) 2019 Aman Nougrahiya, V Krishna Nandivada, IIT Madras.
* This file is a part of the project IMOP, licensed under the MIT license.
* See LICENSE.md for the full text of the license.
*
* The above notice shall be included in all copies or substantial
* portions of this file.
*/
package imop.ast... |
/*
* Copyright (C) 2010-2101 Alibaba Group Holding Limited.
*
* 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 ... |
package org.myrobotlab.gp;
/**
* A GP object sends this message to its observers whenever the genetic
* algorithm has found a new best individual.
*
* @version 1.0
* @author Hans U. Gerber (<a
* href="mailto:gerber@ifh.ee.ethz.ch">gerber@ifh.ee.ethz.ch</a>)
*/
public class GPMessageBestFound extends GP... |
package cn.enilu.flash.bean.entity.front;
import javax.persistence.MappedSuperclass;
/**
* @author :enilu
* @date :Created in 2019/9/4 14:31
*/
/**这个注解表示在父类上面的,用来标识父类。
基于代码复用和模型分离的思想,在项目开发中使用JPA的@MappedSuperclass注解将实体类的多个属性分别封装到不同的非实体类中。例如,数据库表中都需要id来表示编号,id是这些映射实体类的通用的属性,交给jpa统一生成主键id编号,那么使用一个父类来封装这些通用属性,并用@Map... |
/**
* Copyright (c) 2011-2014, hubin (jobob@qq.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 ... |
/*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2020 the original authors 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 ma... |
/**
* Copyright 2000-present Liferay, 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 a... |
/**
* Classes that are filtered using groups
*/
package com.rationaleemotions.scenarios.three; |
package com.am.bp.innovations;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docke... |
package eu.mhsl.openquiz.screen;
import eu.mhsl.openquiz.OpenQuiz;
import eu.mhsl.openquiz.out.Logger;
import java.util.TreeMap;
/**
* Implements the Main or Home-Screen
*/
public class ScreenOpening implements Screen {
public final TreeMap<Integer, String> items = new TreeMap<>();
public ScreenOpening() {... |
/*
* 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 ... |
/**
* ============================== Header ==============================
* file: HTTPRequest.java
* project: FIT4Green/Manager
* created: 13 sep. 2011 by vicky@almende.org
*
* $LastChangedDate: 2011-11-09 12:42:17 +0100 (mié, 09 nov 2011) $
* $LastChangedBy: vicky@almende.org $
* $LastChangedR... |
package com.gooddata.connector;
import com.gooddata.GoodDataException;
import com.gooddata.project.Project;
import static java.lang.String.format;
/**
* Integration for given project and connector type doesn't exist
*/
public class IntegrationNotFoundException extends GoodDataException {
private final String ... |
/*
* Copyright 2017-2018, Société Générale 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 require... |
package io.spinor.ig.api.rest.dto.workingorders.otc.createOTCWorkingOrderV1;
/*
Working order type
*/
public enum Type {
/*
Limit working order
*/
LIMIT,
/*
Stop working order
*/
STOP
}
|
package br.com.srportto.dtos.request;
import br.com.srportto.dtos.general.UserDTO;
import br.com.srportto.services.validation.criacao.UserInsertValid;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotBlank;
@NoArgsConstructor
@Data
@UserInsertValid
public class UserInsertRe... |
/*
* YAGetBooleanStaticTest2.java
* Copyright 2008, 2009, 2010, 2011, 2012, 2013 Fiji Systems Inc.
* This file is part of the FIJI VM Software licensed under the FIJI PUBLIC
* LICENSE Version 3 or any later version. A copy of the FIJI PUBLIC LICENSE is
* available at fivm/LEGAL and can also be found at
* http://... |
package com.furquan.ecommerce.security;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.... |
/**
* This package contains the core-logic of the 'scenarios' or 'benchmarks' which are the heart of our client. New {@link org.polypheny.client.scenarios.Scenario} should create their own package and add themselves to the protobuf-file and add a generator to the {@link
* org.polypheny.client.scenarios.ScenarioFactor... |
package org.contentmine.ami.wordutil;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.contentmine.ami.dictionary.TermPhrase;
import org.junit.Assert;
import org.junit.Test;
public class TermPhraseTest {
private static final Logger LOG = LogManager.getLogger(TermPhraseT... |
//
// 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: 2013.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 not ... |
package com.hedera.services.fees.calculation.token.txns;
/*-
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2020 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... |
package com.flechow.pinboard.service;
import io.github.jhipster.config.JHipsterProperties;
import com.flechow.pinboard.config.audit.AuditEventConverter;
import com.flechow.pinboard.repository.PersistenceAuditEventRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.actua... |
/*
* Copyright 2013-2018 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 (C) 2017 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 law or... |
package me.lotabout.codegenerator;
import com.intellij.openapi.components.ApplicationComponent;
import me.lotabout.codegenerator.ext.Doc;
import org.jetbrains.annotations.NotNull;
public class CodeGenerator implements ApplicationComponent {
public CodeGenerator() {
}
@Override
public void initCompone... |
/*
* ====================================================================
* 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
... |
/*
* The Apache License
*
* Copyright 2009 Marcelo Guimaraes <ataxexe@backpackcloud.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/license... |
package prefuse.visual.tuple;
import prefuse.data.Graph;
import prefuse.data.Table;
import prefuse.visual.DecoratorItem;
import prefuse.visual.VisualItem;
import prefuse.visual.VisualTable;
/**
* DecoratorItem implementation that uses data values from a backing
* VisualTable.
*
* @author <a href="http://jheer.org... |
package org.gradle.test.performance.mediummonolithicjavaproject.p77;
public class Production1549 {
private Production1540 property0;
public Production1540 getProperty0() {
return property0;
}
public void setProperty0(Production1540 value) {
property0 = value;
}
priva... |
package scripting.neg.assertNotTitle;
import org.junit.Test;
import org.junit.After;
import com.xceptance.xlt.api.engine.scripting.AbstractWebDriverScriptTestCase;
import com.xceptance.xlt.api.webdriver.XltDriver;
import scripting.util.PageOpener;
/**
*
*/
public class AssertNotTitle_glob_title extends AbstractW... |
/*
* Adapted from the Wizardry License
*
* Copyright (c) 2016-2020 larryTheCoder and contributors
*
* Permission is hereby granted to any persons and/or organizations
* using this software to copy, modify, merge, publish, and distribute it.
* Said persons and/or organizations are not allowed to use the software ... |
package com.github.shuaidd.dto.message;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* 描述
*
* @author ddshuai
* date 2021-01-02 15:24
**/
public class MiniProgram {
@JsonProperty("appid")
private String appId;
private String page;
private String title;
@JsonProperty("pic_media_id... |
/*
* 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
... |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
/****************************************************************
* 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... |
package es.upm.miw.apaw_ep_javier_iglesias.exceptions;
public class NotFoundException extends RuntimeException {
private static final String DESCRIPTION = "Not Found Exception (404)";
public NotFoundException(String detail) {
super(DESCRIPTION + ". " + detail);
}
}
|
/* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.tboxreasoner;
import java.util.List;
import org.apache.jena.ontology.DatatypeProperty;
import org.apache.jena.ontology.ObjectProperty;
import org.apache.jena.ontology.Restriction;
import org.apache.jen... |
/*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.navigation.actions;
import com.google.common.annotations.VisibleForTesting;
import com.intellij.codeInsight.CodeInsightActionHandler;
import com... |
package com.lufax.jijin.daixiao.dto;
import com.lufax.jijin.base.dto.BaseDTO;
import java.math.BigDecimal;
import java.util.Date;
public class JijinExManagerDTO extends BaseDTO {
private String fundCode; //基金代码
private String manager;//基金经理
private String resume;// 基金经理简介
private Long batchId; //批次... |
package shibauth.jira.authentication.shibboleth;
import java.util.Date;
import com.atlassian.core.util.Clock;
public class AuthClock implements com.atlassian.core.util.Clock {
public Date getCurrentDate() {
return new Date();
}
}
|
package org.swtk.commons.dict.wiktionary.generated.a.l.o; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.swtk.common.dict.dto.wiktionary.Entry; import com.trimc.blogger.commons.utils.GsonUtils; public class WiktionaryALO000 { private static Map<String, Entry> map = new Has... |
package org.openapitools.virtualan.model;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.Ap... |
package controller;
import java.util.List;
import model.OrderUser;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
public interface OrderUserController {
public OrderUser createOrderUser(@RequestBody OrderUser orderUser);
public OrderUser ... |
package com.rnkit_example;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainCompone... |
package com.redisproject.solarpower.app.resources;
import com.redisproject.solarpower.app.api.MeterReading;
import com.redisproject.solarpower.app.dao.FeedDao;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.util.List;
@Path("/capacity")
@Produces(MediaType.APPL... |
/*
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
* Copyright 2018 SmartBear Software
*
* 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:/... |
package bashar.astifan.ismart.smart.mobi;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.security.MessageDigest;
import a... |
/**
* Copyright Google Inc. 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 ... |
package com.xboxcollectorsplace;
import android.app.Application;
import android.content.Context;
/**
* Class used to recover the Application context anywhere in the code
*/
public class App extends Application
{
//------------------------------------------------------------------------- ATTRIBUTES*/
private ... |
package com.diboot.framework.config;
/**
* 状态码定义
* @author Mazc@dibo.ltd
* @version 2017/8/30
*
*/
public enum Status {
OK(0, "操作成功"), // 请求处理成功
WARN_PARTIAL_SUCCESS(1001, "部分成功"), // 部分成功
WARN_PERFORMANCE_ISSUE(1002, "潜在的性能问题"), // 有性能问题
FAIL_INVALID_PARAM(4000, "请求参数不匹配"), // 传入参数不对
... |
/*
* 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 ... |
/*
* JGeneradorJTable.java
*
* Created on 5 de agosto de 2005, 17:38
*
*/
package generadorClases.modulosCodigo;
import generadorClases.*;
import utiles.*;
import ListDatos.estructuraBD.*;
public class JGeneradorJTable2 implements IModuloProyecto {
private JConexionGeneradorClass moConex; //Conexion a la b... |
package sqlancer.cockroachdb.ast;
import sqlancer.visitor.UnaryOperation;
public class CockroachDBAlias implements UnaryOperation<CockroachDBExpression>, CockroachDBExpression {
private CockroachDBExpression expr;
private String alias;
public CockroachDBAlias(CockroachDBExpression expr, String alias) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.