text stringlengths 7 995k |
|---|
/*
* Copyright (c) 2008-2017 Haulmont.
*
* 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... |
/**
* Breath First Search(BFS) algorithm
* Breadth-first search is a simple strategy in which the root node is expanded first,
* then all the successors of the root node are expanded next, then their successors, and so on.
*
* @author Ali ArjomandBigdeli
* @since 12.27.2018
*/
public class SearchBFS extends Sear... |
package jp.cstudio.handywedge.test.app.config;
import java.io.Serializable;
import java.util.Locale;
import java.util.Set;
import jakarta.faces.view.ViewScoped;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import com.handywedge.config.FWMessageResources;
@ViewScoped
@Named
public class MessageResource... |
/*
* (c) Copyright 2018 Micro Focus, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/*
* KINGSTAR MEDIA SOLUTIONS Co.,LTD. Copyright c 2005-2013. All rights reserved.
*
* This source code is the property of KINGSTAR MEDIA SOLUTIONS LTD. It is intended
* only for the use of KINGSTAR MEDIA application development. Reengineering, reproduction
* arose from modification of the original source, or othe... |
/*
* Copyright 2002-2013 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... |
package hu.diveino.droid;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import hu.diveino.droid.ble.UartGattAsyncTask;
import hu.diveino.droid.ble.UartGatt... |
package redis.clients.jedis;
/**
* @deprecated This will be removed in future. Prefer to use {@link HostAndPortMapper} instead.
*/
@Deprecated
public interface JedisClusterHostAndPortMap extends HostAndPortMapper {
HostAndPort getSSLHostAndPort(String host, int port);
@Override
default HostAndPort getHostAnd... |
package com.spectralogic.dsbrowser.gui.components.license;
public class LicenseModel {
private final String libraryName;
private final String license;
public LicenseModel(final String libraryName, final String license) {
this.libraryName = libraryName;
this.license = license;
}
pu... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and 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
* in the Software without restriction, including without limitation the r... |
package module1183packageJava0;
import java.lang.Integer;
public class Foo419 {
Integer int0;
public void foo0() {
new module1183packageJava0.Foo418().foo5();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
... |
/*******************************************************************************
* 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 lambdas.core.introduction;
public class Introduction {
/*
* since java is a object oriented programming
*
* way of using functional programming
*
* cleaner code
*
* parallel proccessing using lambda with streams
*
*/
public static void main(String[] args) {
... |
/**
* Copyright (c) 2013-2014. Francisco Contreras, Holland Salazar.
* Copyright (c) 2015. Tobias Strebitzer, Francisco Contreras, Holland Salazar.
* All rights reserved.
* <p/>
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following condition... |
//========================================================================
//
//File: $RCSfile: OffsetImageFigure.java,v $
//Version: $Revision: 1.6 $
//Modified: $Date: 2013/01/10 23:06:16 $
//
//(c) Copyright 2005-2014 by Mentor Graphics Corp. All rights reserved.
//
//========================================... |
/**
* Copyright (c) 2011, 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 no... |
package com.marchnetworks.device_ws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlAccessorType( XmlAccessType.FIELD )
@XmlTyp... |
/*
* Copyright (c) 2015 University of Massachusetts
*
* 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 applicabl... |
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available und... |
/*
* 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 ... |
/**
* @file: Estadisticas.java
* @info: Ficheros XML - Práctica 1. Ejercicio 1
*
*/
package ej1;
//imports
import java.io.IOException;
import org.w3c.dom.*;
import helpers.Trace;
/**
* 1
* Class for show statistics about the players
*
*/
public class Estadisticas extends XmlDom {
/*********************... |
package com.sonic.simple.models.http;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
@ApiModel("更新设备密码请求模型")
public class DevicePwdChange {
@Positive
@ApiModelProperty(value = "... |
/*
* 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 im.cave.ms.connection.packet;
import im.cave.ms.client.character.MapleCharacter;
import im.cave.ms.client.character.PortableChair;
import im.cave.ms.client.character.items.Equip;
import im.cave.ms.client.character.items.Item;
import im.cave.ms.client.character.items.PetItem;
import im.cave.ms.client.character.... |
package org.fluentjava.mockodore.util.sidripper;
import org.fluentjava.joulu.unsignedbyte.UnsignedByte;
@FunctionalInterface
public interface SidRegWriteListener {
void write(UnsignedByte newValue);
} |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
package com.czxy.demo1;
public class Demo3 {
public static void main(String[] args) {
//关系运算符
System.out.println(1==1);//true
System.out.println(1==2);//false
System.out.println(1!=1);//false
System.out.println(1!=2);//true
System.out.println("---");
System.o... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/**
* Alipay.com Inc.
* Copyright (c) 2004-2016 All Rights Reserved/
*/
package com.finder.move_feature_between_object.hide_delegate.person;
/**
*
* @author Finderhu
* @version $Id: Person.java, V 0.1 2016-11-17 11:40 Finderhu Exp $
*/
public class Person {
private Department department;
public Person... |
package sivl.platform.pay.sdk.tenpay.common.wap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import sivl.platform.pay.sdk.tenpay.common.ResponseHandler;
/**
* wap支付前台应答类
* ============================================================================
* api说明:
* getK... |
/**
* Copyright (C) 2016 Toshiro Sugii
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable... |
// Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// 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, in... |
/*
*
* Copyright 2012-2015 Eurocommercial Properties NV
*
*
* 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 req... |
package Chapter11.exercise01;
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Enter three side of triangle:");
double[] side = new double[3];
for (int i = 0; i < side.length; i++) {
side[i] = scan.nextDo... |
/*
* ====================================================================
* 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
... |
package ziyue.tjmetro;
import mtr.RegistryObject;
import mtr.item.ItemBlockEnchanted;
import mtr.mappings.BlockEntityMapper;
import net.fabricmc.api.ModInitializer;
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvent;
import net.minecraft.world.it... |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://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 "Soft... |
// =========================================================================
// Copyright 2018 T-Mobile, US
//
// 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... |
/*
* Copyright 2018 Masayuki Suda
*
* The MIT License
*
* 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, modif... |
/**
*
*/
package gov.va.med.imaging.exchange.business.taglib;
import gov.va.med.imaging.BaseWebFacadeRouter;
import gov.va.med.imaging.core.FacadeRouterUtility;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import org.apache.log4j.Logger;
import org.springframework.web.servlet.s... |
/*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2018 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... |
package memoizrlabs.com.a20.util7.util6.util1;
public class Ut17 {
class Foo {
public void printHey() {
System.out.println("hey");
}
}
class Foo2 {
public void printHey() {
System.out.println("hey");
}
}
class Foo3 {
public void printH... |
/*******************************************************************************
* Copyright 2021 Nail Sharipov (sharipovn@gmail.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
*
... |
/*
* 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... |
/*
* Copyright (C) 2010 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... |
/*
* NativeBehaviorSignatureEnhancerImpl.java
*
* Created on 5 de septiembre de 2005, 12:29
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Sou... |
/*
* (C) Copyright IBM Corp. 2019, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.model.resource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import javax.annotation.Generated;
import com.ibm.fhir.m... |
public class BufferReverseMethod
{
public static void main(String [] args)
{
StringBuffer sb = new StringBuffer("This is boring.");
sb.reverse();
System.out.println(sb);
}
} |
package sfms.web.conversion;
import java.text.ParseException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.format.Formatter... |
/*
* Copyright (c) 2017, Adam <Adam@sigterm.info>
* 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
* li... |
package Receptionists;
import Main.Connector;
import Main.Hospital;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
/**
*
* @author HAMDAO... |
package com.focusti.cervejaria.controller.converter;
import org.springframework.core.convert.converter.Converter;
import org.springframework.util.StringUtils;
import com.focusti.cervejaria.model.Estilo;
public class EstiloConverter implements Converter<String, Estilo> {
@Override
public Estilo convert(String codi... |
/**************************************************************************
* Copyright (c) 2001, 2002, 2003 by Acunia N.V. All rights reserved. *
* *
* This software is copyrighted by and is the sole property of Acunia N.V. *
* and its licens... |
package ch.aaap.harvestclient.api;
import java.time.Instant;
import java.util.List;
import ch.aaap.harvestclient.domain.Invoice;
import ch.aaap.harvestclient.domain.InvoicePayment;
import ch.aaap.harvestclient.domain.pagination.Pagination;
import ch.aaap.harvestclient.domain.reference.Reference;
/**
* @see <a href=... |
package com.selenium.main.support;
import java.util.HashMap;
import java.util.Map;
public final class ThreadLocalMap {
private static ThreadLocal<HashMap<String, Object>> threadLocalMap = ThreadLocal.withInitial(HashMap::new);
private ThreadLocalMap() {
}
public static void cleanup() {
thre... |
package com.luna.message.template.pojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/****
* @Author:luna
* @Description:Template构建
* @Date 2019/6/14 19:13
*****/
@ApiModel(description = "Te... |
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
package com.tugos.dst.admin.utils.filter;
import java.io.Serializable;
import java.util.TreeSet;
/**
* @author qinming
* @date 2020-11-26 23:13:42
* <p> 敏感词节点,每个节点包含了以相同的2个字符开头的所有词 </p>
*/
public class SensitiveNode implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 头两... |
package com.rayhanhanaputra.moviecataloguevm.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragmen... |
package ru.kireev.singleton;
/**
* @author sergey
* created on 19.09.18.
*/
class Singleton {
private Singleton() {
System.out.println("lazy creation");
}
private static class SingletonHolder {
static final Singleton instance = new Singleton();
}
static Singleton getInstance() {
return Singl... |
/**
* Created by fred on 5/8/16.
*/
package dr.fpe;
/**
* The reporter is an accumulator of sorts that reduces
* the results into a single object.
*/
public interface IReducer {
/**
* Handle a message.
*
* @param update
* @return
*/
Boolean report(final NamedEntityTree.Update upd... |
package com.rrgy.industry.service;
import java.util.Map;
import com.rrgy.core.base.service.IService;
import com.rrgy.industry.model.Industry;
/**
* Generated by Blade.
* 2017-01-04 14:59:34
*/
public interface IndustryService extends IService<Industry>{
boolean updateStatus(String ids, Object status);
Map<S... |
/*
* Copyright 2002-2015 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... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package org.radargun.reporting.html;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import org.jfree.chart.axis.AxisState;
import org.jfree.chart.axis.NumberTick;
import org.jfree.chart.axis.NumberTickUnitSource;
import org.jfree... |
/**
* Copyright (C) 2018-2020
* All rights reserved, Designed By www.yixiang.co
* 注意:
* 本软件为www.yixiang.co开发研制,未经购买不得使用
* 购买后可获得全部源代码(禁止转卖、分享、上传到码云、github等开源平台)
* 一经发现盗用、分享等行为,将追究法律责任,后果自负
*/
package com.boplus.modules.system.service;
import com.boplus.common.service.BaseService;
import com.boplus.modules.system.domai... |
package org.ovirt.engine.core.dao;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import o... |
package konstantin.petrukhnov.keenanrock.chatcore.model;
import lombok.Data;
/**
* Do we need to manage it? Close, delete, etc?
*
* Created by Konstantin Petrukhnov on 2017-03-26.
*/
@Data
public class Topic {
private String id;
private String channelId;
private String userId; //author of original mes... |
/*
* Copyright 2012 GitHub 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 ... |
/**
*
* Copyright (C) 2012-2013 DuyHai DOAN
*
* 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 com.lightrun.demo.jms;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class JmsApplicationTests {
@Test
void contextLoads() {
}
} |
package com.epam.courses.paycom.web_app.validators;
import com.epam.courses.paycom.model.Company;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.validation.BeanPropertyBindingResult;
import org.springframework.validation.BindingResult;... |
/**
@author Farheen Bano
References-
https://leetcode.com/problems/symmetric-tree/
https://www.geeksforgeeks.org/symmetric-tree-tree-which-is-mirror-image-of-itself/
*/
import java.io.*;
import java.util.*;
import java.lang.*;
/**
* Definition for a binary tree node.
* public class TreeNode {
* int val;... |
/*
* Copyright LWJGL. All rights reserved.
* License terms: http://lwjgl.org/license.php
*/
package org.lwjgl.system;
import org.lwjgl.BufferUtils;
import org.lwjgl.PointerBuffer;
import java.nio.*;
import java.util.Arrays;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.Checks.*;
import ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
// Copyright 2017 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... |
/**
* Copyright 2016 Netflix, 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 w... |
/*
* Copyright (c) 1998, 2013, 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 2020 The Netty Project
*
* The Netty Project licenses this file to you 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 r... |
package io.pivotal.sensor;
import io.pivotal.sensor.messaging.RFIDReceiver;
import io.pivotal.sensor.messaging.TiltSwitchReceiver;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicEx... |
/*
* Copyright (c) 2015 The CyanogenMod 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 ... |
/*
* Copyright @ 2015 Atlassian Pty 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 ag... |
// BSD 3-Clause License
//
// Copyright (c) 2020, Scott Petersen
// 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,... |
/*
* 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 ... |
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 licenses ... |
/*
* 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 cz.muni.fi.mir.tools;
import cz.muni.fi.mir.db.domain.Annotation;
import cz.muni.fi.mir.db.domain.User;
/**
*
* @author Dom... |
/*
* Copyright © 2019-2022 Forb Yuan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package model;
public class TrendData implements Comparable<TrendData> {
private String value;
private Integer count;
/**
* Class constructor
*
* @param value
*/
public TrendData(String value) {
this.setValue(value);
this.setCount(0);
}
/**
* Class constructor
*
* @param value
* @param ... |
package com.youmai.search.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.youmai.search.service.ItemSearchService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestC... |
package com.sequenceiq.freeipa.sync;
import static com.sequenceiq.cloudbreak.util.Benchmark.checkedMeasure;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import javax.inject.Inject;
import org.quartz.DisallowConcurrentExec... |
package repository.specialities;
import models.specialities.UserIdSubSpecialityId;
import models.specialities.UserSubSpeciality;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* Created by pkonwar on 7/3/2016.
*/
@Repository
public interface UserS... |
package org.firstinspires.ftc.teamcode.subsystems;
import com.arcrobotics.ftclib.command.SubsystemBase;
import com.arcrobotics.ftclib.geometry.Pose2d;
import com.arcrobotics.ftclib.geometry.Rotation2d;
import com.arcrobotics.ftclib.hardware.GyroEx;
import com.arcrobotics.ftclib.hardware.motors.Motor;
import com.acmer... |
/**************************************************************************
* copyright file="EmailAddressDictionary.java" company="Microsoft"
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Defines the EmailAddressDictionary.java.
*************************************************************... |
package uk.gov.hmcts.ccd.domain.service.search.elasticsearch.security;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import stat... |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.firebase.tubesock;
// Referenced classes of package com.firebase.tubesock:
// WebSocket
static class WebSocket$3
{
static final int $Swi... |
package com.scooter1556.sms.android.activity.tv;
import android.os.Bundle;
import com.scooter1556.sms.android.R;
public class TvMusicActivity extends TvBaseActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activ... |
package com.silrais.sss.xml;
import java.io.File;
import java.io.InputStream;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class SimpleXPathDocument extends SimpleXPathReader {
public SimpleXPathDocument(String ccfile) throws SimpleXPathException {
super(ccfile);
}
public Simp... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2015 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... |
package rainbow.db.model;
import java.util.List;
/**
* 数据模型,未来加上模型依赖,就可以把一个大模型拆分成多个文件
*
* @author lijinghui
*
*/
public class Model extends Unit {
private String name;
private String comment;
private List<TagDef> tableTags;
private List<TagDef> fieldTags;
public String getName() {
return name;
}
... |
package be;
import java.util.ArrayList;
/**
*
* @author Philip
*/
public class SchoolClass
{
private String name;
private ArrayList<Student> students;
public SchoolClass(String name)
{
this.name=name;
students = new ArrayList<>();
}
public void addStudent(Student x)
{
students.add(x);
}
public Array... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.