text
stringlengths
7
995k
package ml.banq.android; import android.content.Context; import android.content.Intent; import android.webkit.JavascriptInterface; public class WebAppInterface { private Context context; WebAppInterface(Context context) { // We save the context of the activity to call some function which needs the co...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.resourcemanager.test; import com.azure.core.credential.TokenCredential; import com.azure.core.http.HttpClient; import com.azure.core.http.HttpPipeline; import com.azure.core.http.ProxyOptions; import com.a...
/* * Copyright (c) 2016 Nova Ordis 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 agre...
package com.kinvey.bookshelf; import android.support.multidex.MultiDexApplication; import com.kinvey.android.Client; /** * Created by Prots on 3/15/16. */ public class App extends MultiDexApplication { private Client sharedClient; @Override public void onCreate() { super.onCreate(); s...
/* ### * IP: GHIDRA * * 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 writin...
package io.connectedhealth_idaas.eventbuilder.pojos.clinical.fhir.ServiceRequestResource; import org.apache.commons.lang3.builder.ReflectionToStringBuilder; public class Speciman { public String reference; public String display; public String getDisplay() { return display; } public void setDisplay(S...
/******************************************************************************* * Copyright 2019 Fabrizio Pastore, Leonardo Mariani * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the L...
package nl.buildforce.sequoia.jpa.processor.core.query; import nl.buildforce.sequoia.jpa.processor.core.converter.JPAExpandResult; public class JPAStandardExtension implements JPAExtension { @Override public JPAExpandResult executeExpandTopSkipQuery() { return null; } }
package com.planet_ink.coffee_mud.Abilities.Common; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.Common.CraftingSkill.CraftingActivity; import com.planet_ink.coffee_mud.Abiliti...
/* * NewJDialog.java * * Created on 2007/11/22, 15:15 */ package open.dolphin.client; import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.beans.PropertyChange...
/* * The MIT License (MIT) * * Copyright (c) 2014 Tobias Kremer * * 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.google.gson; import java.lang.reflect.Field; /* 'enum' access flag removed */ /* renamed from: com.google.gson.d */ /* compiled from: FieldNamingPolicy */ class C10173d extends C10178i { C10173d(String str, int i) { super(str, i, null); } public String translateName(Field f) { ...
/* * Copyright 2013-2017 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 ap...
/* * Copyright (c) 2016, Uber Technologies, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
package de.codingair.tradesystem.utils.updates; import de.codingair.tradesystem.TradeSystem; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; public class UpdateChecker { private final String link; priv...
/* * 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.nekozouneko.nekopvp; import com.nekozouneko.nekopvp.cmd.*; import com.nekozouneko.nekopvp.listener.deathListener; import org.bukkit.plugin.java.JavaPlugin; public final class NekoPvP extends JavaPlugin { public static NekoPvP instance; public static NekoPvP getInstance() { return instance...
package co.tton.qcloud.web.controller.system; import java.util.List; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.validati...
package com.jd.binlog.mysql; /** * Created by pengan on 16-9-25. */ public class ErrorPacket extends MySQLPacket { public static final byte FIELD_COUNT = (byte) 0xff; private static final byte SQLSTATE_MARKER = (byte) '#'; private static final byte[] DEFAULT_SQLSTATE = "HY000".getBytes(); public by...
package io.github.karadkar.veggie.user.notification; import android.os.SystemClock; import android.util.Log; import com.google.firebase.messaging.FirebaseMessagingService; import com.google.firebase.messaging.RemoteMessage; import com.greentopli.Constants; import com.greentopli.model.DataMessage; import java.util.Ma...
package org.stjs.generator.writer.templates; import org.stjs.generator.GenerationContext; import org.stjs.generator.javascript.AssignOperator; import org.stjs.generator.writer.WriterContributor; import org.stjs.generator.writer.WriterVisitor; import org.stjs.generator.writer.expression.MethodInvocationWriter; import ...
package stepDefinitions; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; import domain.model.Kweet; import domain.model.User; import java.util.ArrayList; import java.util.List; import org.junit.Assert; /** * * @author Jeroen Roovers */ public class ModelAssoci...
package Beginner; // Bhaskara Formula import java.util.Scanner; public class Uri1036 { public static void main (String [] args) { double raiz, a, b, c, delta, bha2, bha3;; Scanner ler= new Scanner (System.in); a=ler.nextDouble(); b=ler.nextDouble(); c=ler.nextDouble(); delta=(b*b)-(4*a*c); if (a==0 || ...
package com.didi.hummer.compiler; import com.didi.hummer.annotation.Component; import com.didi.hummer.annotation.JsMethod; import com.didi.hummer.annotation.JsProperty; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.JavaFile; import com.squareup.javapoet.MethodSpec; import com.squareup.javapoet.P...
package org.omg.hw.maintenanceOps; /** * Generated from IDL definition of struct "HW_MaintenanceAssociation_T" * @author JacORB IDL compiler */ public final class HW_MaintenanceAssociation_THolder implements org.omg.CORBA.portable.Streamable { public org.omg.hw.maintenanceOps.HW_MaintenanceAssociation_T value; ...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the repository root. package com.microsoft.tfs.core.clients.build.internal.soapextensions; import java.util.HashMap; import java.util.Map; import com.microsoft.tfs.core.clients.build.IBuildServer; import com.micros...
package net.darktree.led.block; import net.darktree.interference.api.DropsItself; import net.darktree.led.util.DiodeVariant; import net.minecraft.block.BlockState; import net.minecraft.block.StoneButtonBlock; import net.minecraft.item.ItemStack; import net.minecraft.loot.context.LootContext; import java.util.List; p...
package cn.huangdayu.smarthome.skill.jsonbean.speech.response; import lombok.Data; @Data public class SpeechResponseProperties { private String name; private String value; }
package duelistmod.cards.pools.naturia; import com.megacrit.cardcrawl.cards.AbstractCard; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.localization.CardStrings; import com.megacrit.cardcrawl.monsters.AbstractMonster; import du...
package uk.co.alt236.tabclirun.ui.views; import java.awt.*; class FontProvider { public String getMonospaceFontName() { return getFont("Book", Font.MONOSPACED); } private String getFont(final String fontName, final String fallback) { final GraphicsEnvironment g...
/* * Copyright (c) 2005-2011, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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 * * http://www....
package com.hz.learnboot.ssl; /** * Unit primary for simple App. */ public class AppTest { public static void main(String[] args){ String str = null; StringBuffer sb = new StringBuffer(); for(int i = 0 ; i < 100000; i ++){ sb.append(i).append(";"); } str = sb....
/* * Copyright 2020 S. Webber * * 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...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE113_HTTP_Response_Splitting__listen_tcp_addHeaderServlet_21.java Label Definition File: CWE113_HTTP_Response_Splitting.label.xml Template File: sources-sinks-21.tmpl.java */ /* * @description * CWE: 113 HTTP Response Splitting * BadSource: listen_tcp Read data using a...
/* * 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 institucion.Views.Principal; import institucion.Controllers.CtrlPrincipal; import institucion.Models.Users.Principal; import j...
package com.github.code2358.javacard.jcdk.utils; /*- * #%L * jcdk-wrapper * %% * Copyright (C) 2017 code2358 * %% * 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...
package test; import org.junit.Test; import org.openqa.selenium.By; import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs; /** * Created by olga on 30.11.16. */ public class Test1 extends TestCommon{ @Test public void myFirstTest() { driver.get("https://ya.ru"); } }
package com.mms.controller; import java.util.List; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org....
package org.apereo.cas.web.support; import org.apereo.cas.CipherExecutor; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import lombok.val; import org.apache.commons.lang3.StringUtils; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import java.io.Serializabl...
package scheduler; public interface StreamingRepository<T, V> { T getById(Long id); void save(T t); ScheduledEvent<V> saveOrder(ScheduledEvent<V> scheduledEvent); void remove(Long id); boolean isEmpty(); }
/* * 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 p005cm.aptoide.p006pt.view.recycler.widget; import p005cm.aptoide.p006pt.database.realm.MinimalAd; import p005cm.aptoide.p006pt.view.recycler.displayable.GridAdDisplayable; import p026rx.p027b.C0129b; /* renamed from: cm.aptoide.pt.view.recycler.widget.b */ /* compiled from: lambda */ public final /* syntheti...
/* * Copyright 2008 Web Cohesion * * 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...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.recoveryservicesbackup.generated; import com.azure.resourcemanager.recoveryservicesbackup.models.BackupManagementType; import co...
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3...
/** * Copyright 2013-2019 Gaurav Gupta * * 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.intermine.objectstore.query.iql; /* * Copyright (C) 2002-2020 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyle...
package com.wepay.kafka.connect.bigquery.config; /* * Copyright 2016 WePay, 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 * *...
/** * Licensed to jclouds, Inc. (jclouds) under one or more * contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. jclouds licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use ...
/* * Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es) * * 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 * * Unl...
package svenhjol.charmonium.client.ambience; import net.minecraft.client.audio.SoundHandler; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.util.SoundEvent; import net.minecraft.world.biome.Biome; import svenhjol.charm.client.PlayerStateClient; import svenhjol.charmonium.base.CharmoniumSounds; i...
package rocks.teagantotally.blinkercarbrowser.ui.vms; import android.content.Context; import android.databinding.Observable; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.text.Editable; import android.text.TextWatcher; import android.view.View...
package ee.tkasekamp.ltlminer; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import org.deckfour.xes.extension.std.XConceptExtension; import org.deckfour.xes.extension.std.XLifecycleExtension; import org.deck...
/* * Copyright (C) 2018 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...
package com.notably.model.block; import java.util.List; import java.util.Objects; import java.util.logging.Logger; import com.notably.commons.LogsCenter; import com.notably.commons.path.AbsolutePath; import com.notably.model.block.exceptions.NoSuchBlockException; import javafx.beans.property.Property; import javafx....
// GrammarMain contains a main program that prompts a user for the name of a // grammar file and then gives the user the opportunity to generate random // versions of various elements of the grammar. import java.io.*; import java.util.*; public class GrammarMain { public static void main(String[] args) throws Fil...
package com.starcard.sketchimageeditor.utils.layers; import com.facebook.react.uimanager.ThemedReactContext; import android.support.annotation.Nullable; import android.text.TextUtils; import android.graphics.Typeface; public class Font { private int color; private float size; private Typeface typeface; ...
/** * MIT License * Copyright (c) 2018 yadong.zhang * 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, ...
package org.xpdojo.bank; public class Account { public int getBalance() { return balance; } int balance; protected int depositMoneyIntoAccount(int amount){ balance =balance +amount; return balance; } protected int withdrawMoneyFromAccount(int amount){ balance ...
package com.azilen.web.rest; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class ClientForwardController { /** * Forwards any unmapped paths (except those containing a period) to the client {@code index.html}. * @return f...
package com.gitofolio.api.controller.auth; import org.springframework.beans.factory.annotation.*; import org.springframework.web.bind.annotation.*; import org.springframework.stereotype.Controller; import org.springframework.http.*; import com.gitofolio.api.service.proxy.CrudProxy; import com.gitofolio.api.service.fa...
package org.mongodb.morphia.converters; import org.bson.types.Binary; import org.mongodb.morphia.annotations.Serialized; import org.mongodb.morphia.mapping.MappedField; import org.mongodb.morphia.mapping.MappingException; import org.mongodb.morphia.mapping.Serializer; import java.io.IOException; import static java....
/****************************************************************************** * 版权所有 刘大磊 2013-07-01 * * 作者:刘大磊 * * 电话:13336390671 * * email:ldlqdsd@126.com ...
/* * 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 yangchong211(github.com/yangchong211) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in...
package com.mobgen.halo.android.framework.storage.exceptions; import android.support.annotation.NonNull; import com.mobgen.halo.android.framework.common.annotations.Api; /** * Storage exception. */ public abstract class HaloStorageException extends Exception { /** * Creates the exception from a message. ...
package io.github.andypyrope.evolution.testutil; import static org.junit.jupiter.api.Assertions.assertTrue; public class TestUtil { private static final double DOUBLE_COMPARISON_PRECISION = 0.00001; public static void compareDoubles(double expected, double actual) { if (Math.abs(expected - actual) > DOU...
/* * 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 Giovanni Paolo Gibilisco * * 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.nio; import static org.hamcrest.CoreMatchers.containsString; import static org.junit.Assert.fail; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import org.junit.Test; /** * @author Administrator * @date 2019年1月4日_下...
package br.com.zupacademy.bruno.casadocodigo.Validator; import static java.lang.annotation.ElementType.CONSTRUCTOR; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Retention; import java.lang.annotation.Target; import java...
/* * Copyright (C) 2019 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...
package com.thebhakti; import android.app.Application; /** * Created by Rahul Hooda on 14/7/17. */ public class BaseApplication extends Application { AppEnvironment appEnvironment; @Override public void onCreate() { super.onCreate(); appEnvironment = AppEnvironment.SANDBOX; } p...
package com.danikula.videocachecopy.file; import java.io.File; /** * {@link DiskUsage} that uses LRU (Least Recently Used) strategy and trims cache size to max size if needed. * * @author Alexey Danilov (danikula@gmail.com). */ public class TotalSizeLruDiskUsage extends LruDiskUsage { private final long maxS...
package cz.slama.android.gtd.ui.exceptions; /** * Created by Drugnanov on 23.3.2015. */ public interface CommonApiException { String getErrorMessage(); }
/* * MIT License * <p> * Copyright (c) 2016 - 2020 Silvio Wangler (silvio.wangler@gmail.com) * <p> * 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 withou...
/* * Copyright (c) 2016 FRC Team 4931 * * 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, publi...
/* * ==================================================================== * 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 ...
/* * 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 2019 蒋文忠 * <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 law or agreed to...
/* * Copyright 2012-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* * Licensed to Elastic Search and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Elastic Search licenses this * file to you under the Apache License, Version 2.0 (the * "License"); you m...
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; class Atomics { private volatile int num; private static final AtomicIntegerFieldUpdater<Atomics> updater; static { updater = (AtomicIntegerFieldUpdater.newUpdater(Atomics.class, "num")); } public int increment() { return updater.increme...
package io.github.dunwu.javaee.servlet; import java.io.IOException; import java.io.PrintWriter; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.ht...
/** * 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 2008-2009 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 ap...
package uk.org.medworth.boilerplate.guice; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Provides; import org.junit.Test; import uk.org.medworth.boilerplate.A; import uk.org.medworth.boilerplate.C; import uk.org.medworth.boilerplate...
/* * ==================================================================== * 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 seedu.flashback.commons.util; import static java.util.Objects.requireNonNull; import javafx.scene.image.Image; import seedu.flashback.MainApp; /** * A container for App specific utility functions */ public class AppUtil { /** * Gets an {@code Image} from the specified path. */ public sta...
/* * Copyright 2011 CodeGist.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.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
package uk.bl.wa.util; /* * #%L * warc-indexer * %% * Copyright (C) 2013 - 2020 The webarchive-discovery project contributors * %% * 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...
/** * 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 cc.daleyzou.common.domain; public class ValidateCodeProperties { // 验证码图片宽度 private int width = 146; // 验证码图片高度 private int height = 33; // 验证码字符位数 private int length = 4; public int getWidth() { return width; } public void setWidth(int width) { this.width...
package com.sequenceiq.cloudbreak.workspace.model; import com.sequenceiq.cloudbreak.workspace.util.WorkspaceStatusConverter; import java.io.Serializable; import java.util.Objects; import javax.persistence.Column; import javax.persistence.Convert; import javax.persistence.Entity; import javax.persistence.GeneratedVal...
/* * Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text. * * Copyright (c) 2020, Janssen Project */ package io.jans.as.server.dev.duo; import com.fasterxml.jackson.databind.ObjectMapper; import io.jans.as.persistence.model.configuration.CustomP...
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING */ package org.apache.cassandra.thrift; /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
package org.jboss.resteasy.jose.jwe; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import org.jboss.resteasy.jose.i18n.Messages; /** * @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> * @version $Revision: 1 $ */ public enum EncryptionMethod { A128CBC_HS256(256...
package org.fluentlenium.utils; import org.assertj.core.api.Assertions; import org.junit.Test; public class UrlUtilsTest { @Test public void testBaseUrlWithoutTrailingSlash() { String test = UrlUtils.concat("http://fluentlenium.org", "abc/def"); Assertions.assertThat(test).isEqualTo("http://fl...
/* * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html */ package org.hibernate.orm.type.spi; import java.sql.Types; import java.util.Comparator...