text stringlengths 7 1.01M |
|---|
/*
* Copyright (c) 2017 Livio, 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 conditions and... |
package de.beachboys.aoc2021;
import de.beachboys.Day;
import de.beachboys.DayTest;
import de.beachboys.IOHelper;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.List;
import java.util.stream.... |
package JAVA_Design_Model_Iterator;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
Collection collection = new MyCollection();
Iterator It = collection.iterator();
while(It.hasNext()){
System.out.println(It.next());
}
}
}
|
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package basiclibrary;
import org.junit.Test;
import static org.junit.Assert.*;
public class LibraryTest {
@Test public void testSomeLibraryMethod() {
Library classUnderTest = new Library();
assertTrue("someLibraryMethod shoul... |
import java.io.* ;
import java_cup.runtime.Symbol;
public class XmlScan {
public static void main(String arg[]) throws IOException {
Yylex yy ;
if (arg.length > 0)
yy = new Yylex(new BufferedReader(new FileReader(arg[0]))) ;
else
yy = new Yylex(new BufferedReader(new InputStreamReader(Sy... |
package com.peregud.travelhistoryrest.util;
import com.peregud.travelhistoryrest.exception.PaginationException;
import org.springframework.http.HttpStatus;
import static com.peregud.travelhistoryrest.util.AppConstants.*;
public class PageUtil {
public static void validatePageNumberAndSize(int page, int size) {
... |
package slimeknights.tconstruct.tools.modifiers.traits;
import net.minecraft.block.Block;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.world.World;
import net.minecraftforge.even... |
package examples.java11;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;
public class LocalVariableSyntax {
public static void main(String[] args) {
var text = "Banana";
// Incompatible types:
// text = 1;
// Cannot infer ty... |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* 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, an... |
package com.github.nija123098.configurationcodeloader.reader;
import com.github.nija123098.configurationcodeloader.util.ConfigurationCodeLoaderException;
import com.github.nija123098.configurationcodeloader.util.ConfigurationResults;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
impo... |
/*
Copyright 1995-2015 Esri
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... |
/*
* 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 ... |
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Ve... |
/*
* 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 ... |
/*-
* ========================LICENSE_START=================================
* Smartconfig Maven Plugin
* *
* Copyright (C) 2016 BruceZhang
* *
* 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 ... |
package com.github.alexnijjar.the_extractinator.mixin;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.github.alexnijjar.the_extractinator.TheExtractinator;
import com.github.alexnijjar.the_extractinator.util.ModUtils;
import com.google.gson.JsonElement;
import org.spongepowered.a... |
package ru.sm.liquidfab;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
package de.pretrendr.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import... |
package com.codepath.apps.restclienttemplate.models;
import org.json.JSONException;
import org.json.JSONObject;
import org.parceler.Parcel;
@Parcel
public class User {
public String name;
public String screenName;
public String profileImageUrl;
//empty constructor for parceler
public User() {}
... |
package com.javarush.task.pro.task07.task0713;
public class Human extends Terran {
}
|
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 数据维度关系模型
*
* @author auto create
* @since 1.0, 2017-08-10 16:22:11
*/
public class DataDim extends AlipayObject {
private static final long serialVersionUID = 6362995152336886218L;
/**
... |
/*
* Copyright (c) 2017 Armel Soro
*
* 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,... |
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 用户信息申请记录查询响应模型
*
* @author auto create
* @since 1.0, 2020-09-21 17:21:30
*/
public class AuthFieldRe... |
package com.wust.entity;
import java.util.Date;
public class House {
private int houseId;
private int userId;
private String houseTitle;
private String houseType;
private double houseFloorage;
private double housePrice;
private Date houseDate;
private String district;
private String street;
pr... |
/**
* 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 pl.cyfronet.datanet.web.client.model;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import pl.cyfronet.datanet.model.beans.Entity;
import pl.cyfronet.datanet.model.beans.Model;
/**
* Main purpose of this proxy is to allow creation of many new models. New model
... |
/**
* 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... |
/*
* 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 morestatecapitals;
/**
*
* @author nacer
*/
public class Capital {
private String name;
private int population;
... |
/*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2012 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
... |
package com.gyg9.android.task.delayedrunner;
import android.util.Log;
/**
* 计划任务队列
* Created by gyliu on 15/10/9.
*/
public class PendingTaskQueue {
private static final String TAG = "PendingTaskQueue";
private PendingTask head;
private PendingTask tail;
synchronized void enqueue(PendingTask pendingTask) {
... |
package com.tramchester.livedata.domain.DTO;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annot... |
/*
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/***********************************************************************************************************************
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... |
package com.hubspot.jinjava.interpret;
public class UnexpectedTokenException extends TemplateSyntaxException {
private static final long serialVersionUID = 1L;
private final String token;
public UnexpectedTokenException(String token, int lineNumber, int startPosition) {
super(token, "Unexpected token: " + ... |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2 generiert
// Siehe <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2020.0... |
/**
* This file is licensed under the University of Illinois/NCSA Open Source License. See LICENSE.TXT for details.
*/
package edu.illinois.codingspectator.ui.tests.introduceparameterobject;
import org.eclipse.jdt.internal.ui.refactoring.RefactoringMessages;
import org.eclipse.jface.dialogs.IDialogConstants;
import... |
package com.sun.amy.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.s... |
/**
* vertigo - application development platform
*
* Copyright (C) 2013-2020, Vertigo.io, team@vertigo.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/li... |
/*
* Copyright 2018-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... |
/*
* 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 org.sgdk.resourcemanager.ui.panels.projectexplorer;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;
import org.sgdk.resourcemanager.ui.ResourceManagerFrame;
import org.sgdk.resourcemanager.ui.panels.projectexplorer.modals.ExportProjectDialog;
public cla... |
package org.mltooling.core.utils.structures;
import org.mltooling.core.utils.StringUtils;
import java.io.*;
import java.util.ArrayList;
import java.util.Collection;
public class CaseInsensitiveFrequencyList extends FrequencyList<String> {
// ================ Constants ==========================================... |
package application;
public class Program {
public static void main(String[] args) {
String [] vect = new String [] {"Maria", "Bob", "Alex"};
for (int i=0; i<vect.length; i++) {
System.out.println(vect[i]);
}
// with for each
System.out.println("--------------------------");
for (String... |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
/**
* Copyright 2009-2013 Oy Vaadin 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 law or agr... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... |
/*
* Copyright (c) 2018 amy, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the... |
/*
* Copyright 2008-2011 Grant Ingersoll, Thomas Morton and Drew Farris
*
* 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
... |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.mangooa.tools.core.util;
import java.util.UUID;
/**
* 唯一标识生成器工具类,如:UUID、ObjectId(MongoDB)。
*
* @author Weimin Gao
* @since 1.0.0
**/
@SuppressWarnings("unused")
public class IdUtils {
/**
* 生成随机的通用唯一识别码(Universally Unique Identifier)。
*
* @return 唯一识别码。
*/
public static String randomUuid()... |
package mitzi;
/**
* The flags for the entries in the Transposition Table (PositionCache).
*
*/
public enum Flag {
EXACT, LOWERBOUND, UPPERBOUND
}
|
/*******************************************************************************
* Copyright (c) 1998, 2018 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... |
package com.example.inout;
/*
* SalaryCalc.java
*
* Copyright 2020 Ganesan Koundappan <ganesankoundappan@viruchith.local>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ... |
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.geom;
import gov.nasa.worldwind.globes.Globe;
/**
* ExtentHolder provides an interface to query an object's enclosing v... |
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.xmlui.aspect.administrative.controlpanel;
import java.io.Serializable;
import j... |
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
* 版权所有,侵权必究!
*/
package com.github.niefy.common.utils;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
public class H... |
/*
* The MIT License
*
* Copyright (c) 2010, Kohsuke Kawaguchi
*
* 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,... |
package com.github.megatronking.svg.sample;
import com.github.megatronking.svg.sample.animation.AnimationSampleActivity;
import com.github.megatronking.svg.sample.extend.ExtendSampleActivity;
import com.github.megatronking.svg.sample.graphics.GraphicsSampleActivity;
import com.github.megatronking.svg.sample.matrix.Mat... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
// Copyright (c) 2003 Compaq Corporation. All rights reserved.
// Portions Copyright (c) 2003 Microsoft Corporation. All rights reserved.
// Last modified on Wed 12 Jul 2017 at 16:10:00 PST by ian morris nieves
// modified on Sat 23 February 2008 at 10:15:47 PST by lamport
// modified on Fri Aug 10 15:09:07... |
package ta.jurais.amopen;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import andr... |
package org.rizki.mufrizal.spring.social.service;
import org.rizki.mufrizal.spring.social.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
impor... |
/*
* 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 2014, Google 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 cond... |
package org.d3ifcool.finpro.koor.fragments;
import android.app.ProgressDialog;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import org.d3ifcool.finpro.R... |
package sagan.search;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.springframework.security.crypto.codec.Base64;
public class SearchEntry {
private String path;
private String summary;
private String rawContent;
private String title... |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (c) 2020, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... |
/*
* 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.sena.ciclos.hagamientras;
/**
*
* @author Enrique
*/
public class Ejemplo01 {
/**
* @param args the comman... |
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... |
/*
* Copyright (C) 2021 The Dagger 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 ag... |
package top.kairuiyang.base.validator.group;
/**
* GetOne Group 用于get方法查询时
*
* @author: 陌溪
* @date: 2019年12月4日22:49:01
*/
public interface GetOne {
}
|
/**
* Java Modular Image Synthesis Toolkit (JMIST)
* Copyright (C) 2018 Bradley W. Kimmel
*
* 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 lim... |
/*******************************************************************************
* Copyright 2018 General Electric Company
*
* 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:... |
package com.mall.order.dao;
import com.mall.order.entity.OmsOrderItemEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单项信息
*
* @author mark
* @email Wyl@gmail.com
* @date 2020-07-19 15:31:41
*/
@Mapper
public interface OmsOrderItemDao extends B... |
/*
* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package io.kickflip.sdk.av;
import android.annotation.TargetApi;
import android.media.MediaCodec;
import android.media.MediaFormat;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import java.nio.ByteBuffer;
import static io.kickflip.sdk.Kickflip.isKitKat;
/**
* @hide
*/
public abstrac... |
package finergit.ast.token;
public class LEFTMETHODPAREN extends LEFTPAREN {
}
|
// Generated source.
// Generator: org.chromium.sdk.internal.wip.tools.protocolgenerator.Generator
// Origin: http://src.chromium.org/blink/trunk/Source/devtools/protocol.json@150309 with change #14672031
package org.chromium.sdk.internal.wip.protocol.input.dom;
/**
Requests that the node is sent to the caller given... |
package javax0.geci.jamal_test;
import java.util.Map;
@SuppressWarnings("FieldCanBeLocal")
public class PreprocessedFile {
public int a;
private Map myMap;
public String mimosa(Integer a, Map myMap) {
return null;
}
/*!jamal
{%@define z=13%}int i = {%z%};
{%@import res:javax0/ge... |
package com.teamalpha.aichef;
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
public void a... |
/**
* IO package.
* @since 1.0
* @author Anton Viktorov
*/
package com.antviktorov.io;
|
/*
* Copyright 2010-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 "l... |
/*
* ============LICENSE_START====================================
* DCAEGEN2-SERVICES-SDK
* =========================================================
* Copyright (C) 2019 Nokia. All rights reserved.
* =========================================================
* Licensed under the Apache License, Version 2.0 (the ... |
package com.agekt.ideastore.dao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.con... |
package cn.enilu.flash.bean.entity.system;
import lombok.Data;
import org.hibernate.annotations.Table;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;
/**
* <p>
* User: Yao
* Date: 2017-06-22 11:12:48
... |
/**
* 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.network.v2018_04_01;
import com.microsoft.azure.... |
//@@author nattanyz
package dream.fcard.logic.stats;
import java.time.LocalDateTime;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
public class UserStatsTest {
@Test
public void createUserStatsFromSessionList_verifyNoStackOverflow() {
ArrayList<Session> arrayListOfSessions = new Arr... |
/*
* Copyright 2006-2021 Prowide
*
* 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 2016-2019 The OpenZipkin 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... |
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under ... |
package us.codecraft.webmagic.scheduler;
import us.codecraft.webmagic.Request;
import us.codecraft.webmagic.Task;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
/**
* Basic Scheduler implementation.<br>
* Store urls to fetch in LinkedBlockingQueue and remove duplicate ... |
package com.adobe.acs.epic;
import static com.adobe.acs.epic.DataUtils.compareDates;
import com.adobe.acs.epic.controller.AppController;
import com.adobe.acs.epic.controller.AuthHandler;
import com.adobe.acs.epic.model.CrxPackage;
import com.adobe.acs.epic.model.PackageContents;
import com.adobe.acs.model.pkglist.Pack... |
package ch.frostnova.spring.boot.platform.service.impl;
import ch.frostnova.spring.boot.platform.model.UserInfo;
import ch.frostnova.spring.boot.platform.service.JWTVerificationService;
import ch.frostnova.spring.boot.platform.service.TokenAuthenticator;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jws;
impor... |
package com.jocher.javapattern.decorator;
/**
* Created by wubin on 2017/3/20.
*/
public class TrollDecorator implements Troll {
private Troll decorated;
public TrollDecorator(Troll decorated) {
this.decorated = decorated;
}
@Override
public void attack() {
decorated.attack();
}
@Override
... |
/*
*
* *
* * Copyright 2020 First People's Cultural Council
* *
* * 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 edu.kit.ss17.chatsys.team1.shared.StreamProcessor.Serialization;
import edu.kit.ss17.chatsys.team1.shared.StreamData.StanzaInterface;
import edu.kit.ss17.chatsys.team1.shared.StreamProcessor.Constants;
import org.dom4j.Element;
import java.time.Instant;
/**
* This abstract class provides the functionality t... |
package gov.gtas.parser.pentaho.util.test;
import static org.junit.Assert.*;
import org.junit.Test;
import gov.gtas.parser.pentaho.util.ParseDataSegment;
public class ParseDataSegmentTest {
private static final String DATA_ELEMENT_SEPARATOR = "+";
private static final String COMP_DATA_ELEMENT_SEPARATO... |
package hu.rbr.sfinapp.account.command;
import hu.rbr.sfinapp.account.AccountCommandService;
import hu.rbr.sfinapp.core.command.Handler;
import javax.inject.Inject;
import javax.inject.Singleton;
@Singleton
public class UpdateAccountCommandHandler implements Handler<UpdateAccountCommand> {
private final Accoun... |
/*
Copyright [2020] [https://www.xiaonuo.vip]
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.