text stringlengths 7 995k |
|---|
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package com.example.accessingdatarest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class AccessingDataRestApplication {
public static void main(String[] args) {
SpringApplication.run(AccessingDataRestApplicat... |
package org.tc.provider.security;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.tc.wrapper.WrapMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import javax.servlet.ht... |
/*
* (C) Copyright IBM Corp. 2020.
*
* 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... |
package com.daq.gulimall.coupon.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 专题商品
*
* @author daiaoqi
* @email daiaoqi686@gmail.com
* @date 2021-06-06 14:47:37
*/
... |
/**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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.muplsql.transform;
/***
*
* @author arzubt
* Static version of MuPLSQL this operators could be used.
*
*/
public enum MutaOperatorType {
Mot1,
Mot2,
Mot3,
Mot4,
Mot5,
Mot6,
Mot7,
Mot8,
Mot9,
Mot10,
Mot11,
Mot12,
Mot13,
Mot14,
Mot15,
Mot16,
Mot17,
Mot18,
Mot19,
Mot20,
Mot21,
... |
package com.boot.core.kernel_core.mutidatasource.aop;
import com.boot.core.kernel_core.config.properties.MutiDataSourceProperties;
import com.boot.core.kernel_core.mutidatasource.DataSourceContextHolder;
import com.boot.core.kernel_core.mutidatasource.annotion.DataSource;
import org.aspectj.lang.ProceedingJoinPoint;
i... |
/*
* Copyright 2016-2019 Fraunhofer AISEC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... |
/*
* Copyright (c) 2020-2021 Danila Varatyntsev
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.github.easyobject.core.parse... |
package org.apereo.cas.trusted.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.model.support.jpa.JpaConfigurationContext;
import org.apereo.cas.configuration.support.JpaBeans;
import org.apereo.cas.jpa.JpaBeanFactory;
import org.apereo.cas.trusted.authenticat... |
package serenitymodel.net.thucydides.core.steps;
import serenitymodel.net.thucydides.core.annotations.Pending;
import serenitymodel.net.thucydides.core.annotations.TestAnnotations;
import java.lang.reflect.Method;
/**
* Determine the status of a method based on its annotations.
* @author johnsmart
*
*/
public fi... |
package com.interview.codechef.ccdsap_2.leetcode.tree.easy;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class MaxDepthNAryTree {
private static int max = 0;
//https://leetcode.com/problems/maximum-depth-of-n-ary-tree/
public static void main( String[] args ) {
... |
package scc.abstr.tree;
import java.util.*;
import scc.*;
import scc.abstr.*;
/**
* Seznam definicij.
*
* @author sliva
*/
public class AbsDefs extends AbsTree {
/** Elementi seznama definicij. */
private AbsDef defs[];
/**
* Ustvari nov seznam definicij.
*
* @param pos
* Polozaj stavcne ... |
package seedu.address.logic.parser;
import static java.util.Objects.requireNonNull;
import seedu.address.commons.core.index.Index;
import seedu.address.commons.util.StringUtil;
import seedu.address.logic.parser.exceptions.ParseException;
import seedu.address.model.quiz.QuizMode;
/**
* Contains utility methods used ... |
/*
/**
* 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 org.spongycastle.asn1.isismtt.ocsp;
import org.spongycastle.asn1.ASN1EncodableVector;
import org.spongycastle.asn1.ASN1Object;
import org.spongycastle.asn1.ASN1Primitive;
import org.spongycastle.asn1.ASN1Sequence;
import org.spongycastle.asn1.DEROctetString;
import org.spongycastle.asn1.DERSequence;
import org... |
/*
* Copyright © 2015 - 2021 ReSys (info@dialob.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 applicab... |
/*
* Copyright (c) 2015 Robert Atkinson
*
* Ported from the Swerve library by Craig MacFarlane
* Based upon contributions and original idea by dmssargent.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* (subject to the limitati... |
package seedu.address.model.person.exceptions;
/**
* Signals that the operation is unable to find the specified person.
*/
public class PersonNotFoundException extends Exception {} |
package com.kspt.exchangetrading.repositories.treasury;
import com.kspt.exchangetrading.models.treasury.Rate;
import com.kspt.exchangetrading.repositories.CommonRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface RateRepository extends CommonRepository<Rate> {
} |
package com.zeligsoft.domain.dds4ccm.api.QoSProfiles;
import com.zeligsoft.base.zdl.staticapi.functions.TypeSelectPredicate;
import com.zeligsoft.domain.omg.dds.api.QOS.qosProperty;
import com.zeligsoft.domain.zml.api.ZML_Core.NamedElement;
public interface QoSForEntity extends NamedElement {
java.util.List<qosPrope... |
/*
* 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 vehler;
/**
*
* @author user
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatemen... |
package util.runnable;
import items.Item;
import java.io.File;
import java.util.ArrayList;
public class ItemInit {
public static void main(String[] args){
String myDirectoryPath = "src/items";
ArrayList<String> items = new ArrayList<String>();
File dir = new File(myDirectoryPath);
System.out.println("opene... |
/*
* Serposcope - SEO rank checker https://serposcope.serphacker.com/
*
* Copyright (c) 2016 SERP Hacker
* @author Pierre Nogues <support@serphacker.com>
* @license https://opensource.org/licenses/MIT MIT License
*/
package db;
/*
* MIT License (MIT) - Copyright (c) 2015 SERP Hacker https://serphacker.com/
*... |
package com.ptsmods.morecommands.commands.client;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.FloatArgumentType;
import com.ptsmods.morecommands.miscellaneous.ClientCommand;
import net.minecraft.client.network.ClientCommandSource;
import net.minecraft.util.math.MathHelper;
pub... |
package com.fastcloud.fastcloud.auth.config;
import com.fastcloud.fastcloud.auth.security.FastCloudUserDetailsService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.sp... |
//,temp,Lambda2Producer.java,537,567,temp,Lambda2Producer.java,372,404
//,3
public class xxx {
@SuppressWarnings("unchecked")
private void untagResource(LambdaClient lambdaClient, Exchange exchange) throws InvalidPayloadException {
UntagResourceRequest request = null;
UntagResourceResponse resul... |
/**
* Copyright (c) 2012, University of Konstanz, Distributed Systems Group 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 noti... |
package it.unive.lisa.program;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import it.unive.lisa.imp.IMPFrontend;
import it.unive.lisa.imp.ParsingException;
import it.unive.lisa.program.cfg.CFG;
import org.junit.Test;
public clas... |
/*
* 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 co.edu.uniandes.theexceptions.nboletas.entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.pe... |
/*
* This file is part of RoryPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
package com.example;
public class ModifiedClassChangedMembers {
public int unchangedField = 0;
public int modifiedField = 0;
public int removedField = 0;
public void unchangedMethod() {
}
public void modifiedMethod() {
}
public void removedMethod() {
}
} |
/*******************************************************************************
* Copyright © 2019 by California Community Colleges Chancellor's Office
*
* 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
* o... |
/*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/**
* Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
*/
package com.oracle.bmc.email.model;
/**
* The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment
* into which the resource should be moved.
*
* <br/>
* Note: Objects should always... |
/*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package org.hit.internetprogramming.haim.matrix.common.mat;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
/**
* A class representing a location at some matrix.<br/>
* A location is a tuple containing ... |
package com.baomidou.mybatisplus.test.generator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generator.InjectionConfig;
import com.baomidou.mybatisplus.generator.config.DataS... |
package com.github.jkschoen.jsma.misc;
public enum Permission {
READ, ADD, MODIFY
} |
/*
* 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 db;
/**
*
* @author valmi
*/
public class DbIntegrarExcecao extends RuntimeException {
private static final long seria... |
/*
* Copyright 1999-2012 Alibaba Group.
*
* 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... |
/*
* Copyright The OpenTelemetry 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... |
package azkaban.execregister.repository;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.BeanPrope... |
package com.github.douglasjunior.libgdxTextareaHighlighting.code_editor;
import com.badlogic.gdx.Gdx;
import java.util.ArrayList;
public class Caret {
private static final String TAG = "Caret";
private int col = 0;
private int row = 0;
private ArrayList<Line> lines;
private boolean haveSelection ... |
package edu.scripps.yates.client.cache;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import edu.scripps.yates.shared.model.OrganismBean;
public class ClientCacheOrganismsByProjectTag
extends AbstractClientCacheForCollections<OrganismBean, Set<OrganismBean>, String... |
/*
* Copyright 2016 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
package model.matchpointsbased;
import model.genomes.*;
import model.patterns.Pattern;
import java.util.*;
import java.util.concurrent.ConcurrentMap;
/**
*/
public class FindPatternFromFileThread extends FindPatternsThread {
private Pattern pattern;
public FindPatternFromFileThread(Pattern pattern, Genome... |
package com.thealgorithms.conversions;
import java.util.Scanner;
/**
* Converts any Octal Number to HexaDecimal
*
* @author Tanmay Joshi
*/
public class OctalToHexadecimal {
/**
* This method converts a Octal number to a decimal number
*
* @param s The Octal Number
* @return The Decimal n... |
package annotations.el;
import java.util.*;
import annotations.*;
import annotations.util.coll.*;
/**
* An <code>AScene</code> (annotated scene) represents the annotations on a
* set of Java classes and packages along with the definitions of some or all of
* the annotation types used.
*
* <p>
* Each client of... |
/*
* Copyright (C) 2011 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... |
package io.github.daniloarcidiacono.typescriptmapper.core.mapper.injector;
import io.github.daniloarcidiacono.typescriptmapper.core.annotation.TypescriptDTO;
import io.github.daniloarcidiacono.typescriptmapper.core.mapper.field.FieldMapper;
import io.github.daniloarcidiacono.typescriptmapper.core.matcher.CompositeClas... |
/*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 TechReborn
*
* 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, inc... |
package xyz.a00000.blog.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xyz.a00000.blog.bean.common.BaseActionResult;
import xyz... |
package com.ntabnk.sales.application;
import com.ntabnk.sales.application.converters.CustomerLineConverter;
import com.ntabnk.sales.application.converters.SaleLineConverter;
import com.ntabnk.sales.application.converters.SalespersonLineConverter;
import com.ntabnk.sales.domain.SalesFileRaw;
import org.junit.jupiter.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")... |
/*
* Copyright 2018 mayabot.com 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 requir... |
package com.huaweicloud.sdk.apig.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huaweicloud.sdk.core.SdkResponse;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.function.Consumer;
/** Respo... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.datafactory.v2018_06_01;
import com.fasterxml.ja... |
/*
* 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 ca.cmbs.poker;
import ca.cmbs.poker.exception.NoSeatAvailableException;
import ca.cmbs.poker.game.Game;
import ca.cmbs.poker.player.ConsolePlayer;
import ca.cmbs.poker.player.MrStupid;
import ca.cmbs.poker.table.ChipStack;
import ca.cmbs.poker.table.Table;
import ca.cmbs.poker.table.TableBuilder;
import java.... |
package io.dropwizard.jersey.jackson;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.dropwizard.jersey.AbstractJerseyTest;
import io.dropwizard.jersey.DropwizardResourceConfig;
import io.dropwizard.jersey.errors.LoggingExceptionMapper;
import org.glassfish... |
import java.util.ArrayList;
import java.util.Iterator;
public class Order {
private Customer customer;
private Waitress waitress;
private boolean isVegan;
private Cook cook;
private ArrayList<String> orderItems;
public Order(Customer c, Waitress w) {
}
public void add(String item) {
... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
package com.zxf.lib_androidx.utils;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public final class GsonUtils {
/**
* 解析json对象
* @para... |
package com.zzboot.system.controller;
import com.zzboot.framework.core.db.entity.ILoginUserEntity;
import com.zzboot.framework.core.enums.EnumSymbol;
import com.zzboot.framework.core.vo.AjaxJson;
import com.zzboot.system.bo.TsMyShortcutBO;
import com.zzboot.system.query.impl.TsMyShortcutQueryWebImpl;
import com.zzboo... |
/*
* Copyright 2021 Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
package org.deeplearning4j.examples.dataexamples;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.image.*;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import org.deeplearning4j.api.storage.StatsSt... |
/**
* 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 org.eclipse.cargotracker.interfaces.tracking.web;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.eclipse.cargotracker.application.util.DateConverter;
import org.eclipse.cargotracker.domain.model.cargo.Cargo;
import org.eclipse.cargotr... |
package com.yiqiniu.easytrans.demos.order.impl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.yiqiniu.... |
package pl.damianszczepanik.jenkins.buildhistorymanager.model.actions;
import java.io.IOException;
import org.junit.Test;
import pl.damianszczepanik.jenkins.buildhistorymanager.utils.RunStub;
/**
* @author Damian Szczepanik (damianszczepanik@github)
*/
public class DeleteBuildActionTest {
@Test
public voi... |
/*
* Copyright 2016-present Open Networking Laboratory
*
* 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... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014-2018 Yegor Bugayenko
*
* 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
... |
package org.checkerframework.framework.source;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.processing.ProcessingEnvironment;
import javax... |
package backtype.storm.task;
import backtype.storm.generated.ShellComponent;
import backtype.storm.tuple.MessageId;
import backtype.storm.tuple.Tuple;
import backtype.storm.utils.Utils;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.Input... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* Copyright 2011-2016 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 "li... |
package udmi.schema;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Gateway State
* <p>
*
... |
package controllers;
import accessors.MediaAccessor;
import accessors.UserAccessor;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import models.Media;
import models.Tag;
import models.User;
import models.UserPhoto;
import org.junit.Ignore;
import org.junit.Test;
i... |
package org.ovirt.engine.core.bll;
import static org.ovirt.engine.core.bll.storage.disk.image.DisksFilter.ONLY_ACTIVE;
import static org.ovirt.engine.core.bll.storage.disk.image.DisksFilter.ONLY_NOT_SHAREABLE;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
im... |
/*
* © Copyright IBM Corp. 2014
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package com.arfapps.cesar_app.data.model.linked_list;
public class LinkedNode<ValueType> {
private LinkedNode<ValueType> next;
private ValueType value;
public LinkedNode<ValueType> getNext() {
return next;
}
public void setNext(LinkedNode<ValueType> next) {
this.next = next;
}
public ValueType getValue()... |
package cc.iteck.rm.model.account;
import com.baomidou.mybatisplus.annotation.TableName;
import cc.iteck.rm.model.AbstractEntity;
import lombok.*;
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("rm_user_role")
public class UserRoleEntity extends AbstractEntity {
... |
/*
* Copyright 2010-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 "lice... |
package net.corda.flask.common;
import java.io.Closeable;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.EnumSet;
public class LockFile implements Clos... |
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
package com.senseidb.search.req.mapred.functions;
import it.unimi.dsi.fastutil.longs.LongOpenHashSet;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import com.senseidb.search.req.mapred.FieldAccessor;
import com.senseidb.search.r... |
package com.noteit.note;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.noteit.auth.Users;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedVal... |
package com.stylefeng.guns.modular.auth.converter;
/**
* 基础的传输bean
*
* @author fengshuonan
* @date 2017-08-25 15:52
*/
public class BaseTransferEntity {
private String object; //base64编码的json字符串
private String sign; //签名
public String getObject() {
return object;
}
public void se... |
package net.sourceforge.pmd.lang.java.rule.strings;
import net.sourceforge.pmd.lang.java.ast.ASTName;
import net.sourceforge.pmd.lang.java.ast.ASTPrimaryExpression;
import net.sourceforge.pmd.lang.java.ast.ASTPrimaryPrefix;
import net.sourceforge.pmd.lang.java.ast.ASTPrimarySuffix;
import net.sourceforge.pmd.lang.java... |
/*******************************************************************************
* Copyright (c) 2004,2009 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ava... |
package com.sh.crm.general.exceptions;
public class UserNotAllowedException extends GeneralException {
public UserNotAllowedException(String errorMessage) {
super( "100001", errorMessage );
}
} |
package yoshikihigo.cpanalyzer;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class BugFixChangePatternMaker {
private final CPAConfig config;
public BugFixChangePatternMaker(final CPAConfig config) {
this.config = config;
}
p... |
/*******************************************************************************
* Copyright 2017 Bstek
*
* 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/l... |
package ru.gb.homeworks.hw06.task1.helpers;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class PrintAndLogHelper {
public static void printAndLog(String printMessage, String logMessage) {
System.out.println(printMessage);
log.info(logMessage);
}
public static void printAndLogE... |
package com.orange.wvfSpike.wvfTest;
import com.couchbase.client.CouchbaseClient;
import com.google.gson.Gson;
import com.orange.wvfSpike.configConnectionDataBase.ConnectToCouchbase;
import com.orange.wvfSpike.wvf.Picture;
import org.junit.Test;
import java.util.Arrays;
import java.util.Date;
/**
* Created by msaid... |
/*
* Copyright 2019 Arcus 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 applicable law or agreed to ... |
package com.itextpdf.text.io;
import java.io.IOException;
public class WindowRandomAccessSource implements RandomAccessSource {
private final long length;
private final long offset;
private final RandomAccessSource source;
public WindowRandomAccessSource(RandomAccessSource source, long offset) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.