text
stringlengths
7
1.01M
package com.lfp.zt.pattern.establish.singleton; /** * Project: zt-javabase * Title: 懒汉式单例 * Description: 利用双重校验锁方式实现。 * Date: 2019-01-02 * Copyright: Copyright (c) 2019 * Company: LFP * * @author ZhuTao * @version 2.0 */ public class LazySingleton { private volatile static LazySingleton instance; p...
package com.insoul.rental; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import org.apache.commons.io.IOUtils; public class InitSQLiteDB { public static void main(String[] args) { try { ClassLoader classLoader = InitSQLiteDB.class.getClassLoader(); ...
public class exChar { public static void main (String[] args) { char ch1, ch2, ch3, ch4; ch1 = 88; ch2 = 'Y'; ch3 = ch1++; ch4 = ch2--; System.out.println ("Символ Y в системе 88, а X 89"); System.out.println("Первая переменная равна " + ch1 + " , а вторая пе...
package pers.fcz.rabbitmq.website.topic; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.ConnectionFactory; import java.util.Scanner; /** * RabbitMQ官网教程 Topic 模式 (发送消息) * @author Mr.F * @since 2019/7/26 10:55 **/ public class EmitLogTopic { private stati...
/* * * * * * * * * * * * * */ /* * IncremenalConverter.java * Copyright (C) 2004-2012 University of Waikato, Hamilton, New Zealand * */ package weka.core.converters; /** * Marker interface for a loader/saver that can retrieve instances incrementally * * @author <a href="mailto:mhall@cs.waika...
package cz.cvut.fit.miadp.mvcgame.bridge; import cz.cvut.fit.miadp.mvcgame.config.MvcGameConfig; import cz.cvut.fit.miadp.mvcgame.model.geometry.Position; import javafx.scene.canvas.GraphicsContext; import javafx.scene.image.Image; import java.util.HashMap; import java.util.HashSet; import java.util.Map; public clas...
/* * 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 n...
package com.taolibrary.util.time; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * 文件作者:余涛 * 功能描述:日期工具 * 创建时间:2019/9/22 1...
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
package org.opensrp.service; import org.apache.commons.lang3.StringUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.joda.time.DateTime; import org.opensrp.domain.Manifest; import org.opensrp.repository.ManifestRepository; import org.springframework.beans.factory.ann...
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.itest.supertypegeneration.usage; import org.mapstruct.itest.supertypegeneration.GenBase; /** * @author Gunnar Morling */ @GenBase(2) public class ...
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
/* * Copyright © 2017 <code@io7m.com> http://io7m.com * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
/* * 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 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.hardware_acceleration; import static org.chromium.base.test.util.Restriction.RESTRICTION_TYPE_LOW_END_DEVICE; import...
package priv.kimking.base.jvm; import priv.kimking.base.jvm.classpath.Classpath; /** * <p> * * @author kim * @date 2021/11/22 */ public class App { public static void main(String[] args) { Cmd cmd = Cmd.parse(args); if (!cmd.ok || cmd.helpFlag) { System.out.println("Usage: <main...
package com.grootan.kwebtonative; import android.webkit.WebView; import android.webkit.WebViewClient; import com.google.gson.Gson; import java.util.ArrayList; import java.util.HashMap; import java.util.List; /** * Main Singleton Class to handle webview wrapper */ public class KWebToNative { public static KWeb...
package io.quarkus.deployment.steps; import java.io.File; import java.io.FileOutputStream; import java.nio.file.Path; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Set...
/* * This file was automatically generated by EvoSuite * Fri Aug 24 13:01:05 GMT 2018 */ package org.databene.jdbacl; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.runtime.EvoAssertions.*; import java.io.File; import java.io.PipedReader; import java.io.PipedWriter; import java...
package com.swee.cloudconsul.pro.core.controller; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class ConsulController { @Ge...
package com.firetower.user_service; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class UserServiceApplicationTests { @Test void contextLoads() { } }
package org.cuieney.videolife.common.utils; import android.support.design.widget.Snackbar; import android.view.View; /** * Created by codeest on 16/9/3. */ public class SnackbarUtil { public static void show(View view, String msg) { Snackbar.make(view, msg, Snackbar.LENGTH_LONG).show(); } pub...
package net.justugh.sb; import com.google.gson.GsonBuilder; import lombok.Getter; import net.dv8tion.jda.api.AccountType; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDABuilder; import net.dv8tion.jda.api.entities.Activity; import net.dv8tion.jda.api.entities.Guild; import net.justugh.sb.config.Config; ...
package industrialcraft.common.tier; public enum ItemPipeTier { WOODEN, TIN, COPPER, IRON, GOLD, BRONZE; private static final ItemPipeTier[] TIERS = values(); }
/* This file is part of the iText (R) project. Copyright (c) 1998-2020 iText Group NV Authors: iText Software. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Software Foundation ...
/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you ...
package com.viesis.viescraft.client.gui.airship.customize.balloon.sub; import org.lwjgl.input.Keyboard; import com.viesis.viescraft.api.GuiVC; import com.viesis.viescraft.common.entity.airships.EntityAirshipCore; import net.minecraft.inventory.IInventory; public class GuiCustomizeMenuBalloonTier3Pg1 extends GuiCust...
/** * Copyright 2016 vip.com. * <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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
package org.hisp.dhis.coldchain.equipment.hibernate; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.criterion.Conjunction; import org.hibernate.criterion.Projections; import org.hibernate.criterion.Restric...
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.debugger.streams.psi; import com.intellij.psi.*; import com.intellij.psi.util.InheritanceUtil; import org.jetbrains.annotations.Contract; import org.jetbrain...
/* * Copyright (C) 2010 ZXing 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 agr...
package maynoothuniversity.summercamp.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.MapColor; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.creative...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
package com.redhat.mercury.service.contactdialog.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.J...
package org.prebid.server.vertx; import io.vertx.core.Future; import io.vertx.core.Handler; import io.vertx.core.Promise; import io.vertx.core.Vertx; import io.vertx.ext.unit.Async; import io.vertx.ext.unit.TestContext; import io.vertx.ext.unit.junit.VertxUnitRunner; import org.junit.After; import org.junit.Before; im...
package com.foodee.spring.controllers; import java.util.List; import javax.servlet.http.HttpSession; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.propertyeditors.StringTrimmerEditor; import org.springframework.stereotype.Contr...
package io.microconfig.core.properties; import org.junit.jupiter.api.Test; import static io.microconfig.core.properties.ConfigFormat.PROPERTIES; import static io.microconfig.core.properties.PropertyImpl.property; import static org.junit.jupiter.api.Assertions.assertEquals; class ResolveExceptionTest { DeclaringC...
package com.github.it89.cfutils.marketdatastore.entities; import lombok.Getter; import lombok.Setter; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import ...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2004, 2021 Oracle and/or its affiliates. All rights reserved. * * Oracle 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 o...
/* * 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 ...
// ============================================================================ // // Copyright (C) 2006-2019 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
/** * 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 (c) 2010-2015 Pivotal Software, 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 req...
package com.raytheon.uf.edex.plugin.scan.process; import java.util.Date; import java.util.List; import java.util.regex.Pattern; import com.raytheon.uf.common.dataplugin.persist.PersistablePluginDataObject; import com.raytheon.uf.common.dataplugin.radar.RadarRecord; import com.raytheon.uf.common.dataplugin.radar.util....
/* * Copyright 2020. Huawei Technologies Co., Ltd. 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 * ...
/** Classes and object identifiers related to the German BSI standard BSI-TR-03111. */ package org.bouncycastle.asn1.bsi;
/* * 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 de.illonis.eduras.settings; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.lang.reflect.Field; import java.util.LinkedList; import java.util.logging.Level; import...
package com.adapter; import android.content.Context; import android.util.AttributeSet; import android.widget.ListView; public class NoScrollListView extends ListView { public NoScrollListView(Context context, AttributeSet attrs) { super(context, attrs); } public void onMeasure(int widthMeasureSpec, int heightM...
class decode { public static void main(String s) { int n,i=0,j,k; long p; String t="",m=""; while(i<s.length()) { for(j=i;j<(i+3);j++) { t=t+s.charAt(i); } p=Long.valueOf(t); if(p>122) ...
package com.yangdb.fuse.asg.strategy.propertyGrouping; /*- * #%L * fuse-asg * %% * Copyright (C) 2016 - 2019 The YangDb Graph Database 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...
/* * Copyright (C) 2016-2019 Lightbend Inc. <https://www.lightbend.com> */ package com.lightbend.lagom.javadsl.api.transport; import com.lightbend.lagom.javadsl.api.deser.ExceptionMessage; /** Exception thrown when a message can't be deserialized because its media type is not known. */ public class UnsupportedMedi...
/* * Copyright (c) 2019-2021 GeyserMC. http://geysermc.org * * 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,...
/* * 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 ...
/* * 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 ma...
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
package com.zhangguojian.json.exception; public class CastException extends JSONException{ public CastException(String msg) { super(msg); } }
package com.wuwenxu.codecamp.base.bean; import com.wuwenxu.codecamp.base.bean.BeanStruct; import com.wuwenxu.codecamp.base.utils.CheckUtil; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Field; impor...
/* * Copyright © 2019 Cask Data, 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 t...
package com.bumptech.glide.manager; import android.annotation.SuppressLint; import android.content.Context; import android.util.Log; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.VisibleForTesting; import androidx.fragment.app.Fragment; import androidx.fragment.app...
package p005cm.aptoide.p006pt.autoupdate; import org.jacoco.agent.p025rt.internal_8ff85ea.Offline; import p026rx.p027b.C0128a; /* renamed from: cm.aptoide.pt.autoupdate.AutoUpdateService$loadAutoUpdateModel$3 */ /* compiled from: AutoUpdateService.kt */ final class AutoUpdateService$loadAutoUpdateModel$3 implements C...
package org.dhis2.fhir.adapter.dhis.tracker.program; /* * Copyright (c) 2004-2018, University of Oslo * 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 r...
/********************************************************************************** * $URL$ * $Id$ *********************************************************************************** * * Copyright (c) 2007, 2008 Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); ...
package de.deadlocker8.budgetmaster.unit; import de.deadlocker8.budgetmaster.Main; import de.deadlocker8.budgetmaster.accounts.AccountService; import de.deadlocker8.budgetmaster.accounts.AccountType; import de.deadlocker8.budgetmaster.filter.FilterConfiguration; import de.deadlocker8.budgetmaster.integration.helpers.S...
package io.github.cbadenes.crosslingual.data; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Badenes Olmedo, Carlos <cbadenes@fi.upm.es> */ public class Text { private static final Logger LOG = LoggerFactory.getLogger(Text.class); private String text; public Text() { } ...
package zaizai.com; import android.content.Context; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import androi...
package duelistmod.cards; import com.megacrit.cardcrawl.cards.AbstractCard; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; import com.megacrit.cardcrawl.localization.CardStrings; import com.megacrit.card...
package org.generation.blogPessoal.model; public class UserLogin { private String nome; private String usuario; private String senha; private String token; public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public String getUsuario() { return usuario; ...
/* * Copyright 2018 Alfresco, 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 ...
import java.util.Scanner; public class PlaceTest { //returns true if p1 is equidistant from p2 and p3 public static boolean sameDistance(Place p1, Place p2, Place p3) { return p1.distance(p2) == p1.distance(p3); } public static void main(String[] args) { Scanner scanner = new Scan...
/** * 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...
// Copyright 2017 Archos SA // // 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.codebroker.core; import akka.actor.typed.ActorSystem; import com.codebroker.api.AppListener; import com.codebroker.api.IGameWorld; import com.codebroker.api.internal.IService; import com.codebroker.core.actortype.message.IGameRootSystemMessage; import com.codebroker.util.PropertiesWrapper; import java.uti...
package pers.husen.highdsa.constants; /** * Description http请求常量 * <p> * Author 何明胜 * <p> * Created at 2018/05/13 16:09 * <p> * Version 1.0.0 */ public class HttpConstants { /** 登录基础url */ public static final String BASE_URL = "http://223.3.89.104:8080/highdsa-restful-app/"; //public static final S...
package com.atommiddleware.cloud.core.annotation; import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.lang.reflect.Parameter; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHa...
package dane.com.gyl.dane; import android.os.Vibrator; import android.app.Activity; import dane.com.gyl.dane.Utilities; import android.content.ClipData; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.media.MediaPlayer; import android.support.v7.app.ActionBa...
package rakkis157.excessive_realism.item; import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder; import net.minecraft.item.ItemGroup; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; import net.minecraft.util.Identifier; import rakkis157.excessive_realism.ExcessiveRealism; public...
package com.simsi.testing.calcul.e2e; import static org.assertj.core.api.Assertions.assertThat; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.open...
package com.epam.esm.exception; public class EntityIsNotExistException extends RuntimeException { /** * Constructs a new runtime exception with {@code null} as its * detail message. The cause is not initialized, and may subsequently be * initialized by a call to {@link #initCause}. */ publ...
/* * MIT License * * Copyright (c) 2019-2020 Yoann CAPLAIN * * 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, cop...
package de.metas.vertical.healthcare_ch.forum_datenaustausch_ch.invoice_xversion.request.model.payload.body.tiers; import lombok.Builder; import lombok.NonNull; import lombok.Value; import javax.annotation.Nullable; import de.metas.vertical.healthcare_ch.forum_datenaustausch_ch.invoice_xversion.model.commontypes.Xml...
/******************************************************************************* ** Entropy.java ** Part of the Java Mutual Information toolbox ** ** Author: Adam Pocock ** Created: 20/1/2012 ** ** Copyright 2012 Adam Pocock, The University Of Manchester ** www.cs.manchester.ac.uk ** ** This file is part of MIToolb...
package com.example.exercise.myfavoritemovies.com.example.exercise.myfavoritemovies.Model; import java.util.HashMap; import java.util.Map; public class VideoDetail { private String id; private String iso6391; private String iso31661; private String key; private String name; private String sit...
package src; import club.cybet.utils.Constants; import org.junit.Test; import org.web3j.abi.datatypes.Address; import org.web3j.abi.datatypes.Type; import org.web3j.abi.datatypes.generated.Uint256; import org.web3j.crypto.CipherException; import org.web3j.crypto.Credentials; import org.web3j.crypto.ECKeyPair; import o...
/****************************************************************************** * Copyright 2009-2018 Exactpro (Exactpro Systems Limited) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
package bg.bas.iinf.sinus.wicket.common; import org.apache.wicket.ajax.IAjaxCallDecorator; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.model.IModel; /** * Disabling Ajax link * @author hok * * @param <T> */ public abstract class DisablingAjaxLink<T> extends AjaxLink<T...
package com.github.walterfan.devaid.algorithm; /****************************************************************************** * Compilation: javac In.java * Execution: java In (basic test --- see source for required files) * Dependencies: none * * Reads in data of various types from standard input, fi...
package com.autowatch.antiseptic; import androidx.annotation.NonNull; import com.bumptech.glide.load.Options; import com.bumptech.glide.load.model.GlideUrl; import com.bumptech.glide.load.model.ModelLoader; import com.bumptech.glide.load.model.ModelLoaderFactory; import com.bumptech.glide.load.model.MultiModelLoaderFa...
/***** BEGIN LICENSE BLOCK ***** * Copyright (c) 2012-2013 Karol Bucek <self@kares.org> * Copyright (c) 2006-2011 Nick Sieger <nick@nicksieger.com> * Copyright (c) 2006-2007 Ola Bini <ola.bini@gmail.com> * Copyright (c) 2008-2009 Thomas E Enebo <enebo@acm.org> * * Permission is hereby granted, free of charge, to ...
import java.nio.file.Files; import java.nio.file.Paths; class Program { public static void main(String[] args) throws Exception { Files.write(Paths.get("test.txt"), "example content".getBytes());; String fileContent = new String(Files.readAllBytes(Paths.get("test.txt")));; System.out.printl...
package liquibase.nosql.statement; /*- * #%L * Liquibase NoSql Extension * %% * Copyright (C) 2020 Mastercard * %% * 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....
/* * 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...
/* * The MIT License (MIT) * * Copyright (c) 2020-2030 The XdagJ Developers * * 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 righ...
package stacks.queues; public class Node<T> { private T value; private Node next; public Node(T value) { this.value = value; } public T getValue() { return value; } public Node getNext() { return next; } public void setValue(T value) { this.value ...
package pl.grzeslowski.jsupla; import org.junit.Test; import java.util.Arrays; import java.util.Collection; import static org.assertj.core.api.Assertions.assertThat; public class PreconditionsTestSizeMin { @Test public void shouldReturnCollectionWhenSizeIsInBounds() throws Exception { // given ...
// Generated from SQLFileHeader.g4 by ANTLR 4.5.1 package com.psygate.minecraft.spigot.sovereignty.nucleus.grammars; import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.tree.*; import java.util....
/* * Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved. * * Project and contact information: http://www.cascading.org/ * * This file is part of the Cascading project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
package org.codehaus.modello.plugins.xml.metadata; /* * Copyright (c) 2004, Codehaus.org * * 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 limitat...
/* * Copyright ConsenSys AG. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...