text
stringlengths
7
995k
package org.carlspring.strongbox.client; import org.carlspring.strongbox.config.ClientConfig; import org.carlspring.strongbox.service.ProxyRepositoryConnectionPoolConfigurationService; import javax.inject.Inject; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.slf4j.Logger; imp...
package org.checkerframework.framework.util.typeinference.constraint; import java.util.Set; /** * AFReducer implementations reduce AFConstraints into one or more "simpler" AFConstraints until these * constraints are irreducible * @see org.checkerframework.framework.util.typeinference.constraint.AFConstraint#isIrre...
/* * Copyright (C) 2017 优客服-多渠道客服系统 * Modifications copyright (C) 2018 Chatopera Inc, <https://www.chatopera.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...
public class BSqMatrix { private final int mSize; private boolean[][] mEntries; private BSqMatrix(int n) { mSize = n; mEntries = new boolean[n][n]; } public BSqMatrix(boolean[][] m) { for (int i = 0; i < m.length; i++) { assert m.length == m[i].length : "m must be a square matrix"; } mSize = m.len...
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opencl; import javax.annotation.*; import org.lwjgl.system.*; import static org.lwjgl.system.MemoryUtil.*; /** * Instances of this class may be passed to the {@li...
/* * 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.indiabana.Fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.fragment.app.Fragment; import com.indiabana.R; /** * A simple {@link Fragment} subclass. * Use the {@link SellersFragment#newInstance} factory met...
/* * Copyright 2020 Fraunhofer Institute for Software and Systems Engineering * * 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 * * Un...
package com.change_vision.astah.xmi.exception; public class IllegalUseByCommunityEditionException extends RuntimeException { private static final long serialVersionUID = 1529712599781054066L; }
package com.company; /** * Created by shijiawei * 记录树之间的关联信息 */ public class TreeRelation { BiTreeNode current; TreeRelation ralation1; //一棵树最多和两棵树有关联 TreeRelation ralation2; }
/* * Copyright (c) 2021 Microsoft Corporation * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0 * * SPDX-License-Identifier: Apache-2.0 * * Contributors: * Micr...
package org.clinical3po.backendservices.rule.compiler; import org.clinical3po.backendservices.rule.Rule; import org.slf4j.LoggerFactory; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.refl...
package com.irccloud.android.data.model; public class ImageURLInfo { public String thumbnail; public String mp4; public String title; public String description; public String original_url; }
package com.datadistillr.dateinfer.elements; public class Hour12 extends DateElement { public Hour12() { directive = "%I"; } @Override public boolean isNumerical() { return true; } @Override public boolean isMatch(String token) { int tokenValue; try { tokenValue = Integer.parseInt...
package com.ngsky.design.singleton; import java.io.Serializable; /** * <dl> * <dt>Singleton11</dt> * <dd>Description:单例与系列化</dd> * <dd>CreateDate: 11/2/2018 12:12 AM</dd> * </dl> * * @author daxiong */ public class Singleton11 implements Serializable { private static volatile Singleton11 instance; pri...
package com.bugs.bunny.interfaces; import com.bugs.bunny.controllers.ScreensController; import javafx.application.HostServices; public interface ScreenTransitionManager { void setScreenParent(ScreensController screenPage); void setHostServices(HostServices hostServices); }
/* * Zorbage: an algebraic data hierarchy for use in numeric processing. * * Copyright (c) 2016-2021 Barry DeZonia 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 so...
package compilador; import java.util.HashMap; public class Ts{ private HashMap<Token, InfIdentificador> tabelaSimbolos; // Tabela de simbolos public Ts() { tabelaSimbolos = new HashMap<Token, InfIdentificador>(); // Inserindo as palavras reservadas Token word; word = new Token(Tag.KW,...
package org.uberfire.annotations.processors; import com.google.gwt.user.client.ui.IsWidget; import com.google.gwt.user.client.ui.SimplePanel; import org.uberfire.client.annotations.WorkbenchPartTitle; import org.uberfire.client.annotations.WorkbenchPartView; import org.uberfire.client.annotations.WorkbenchScreen; @Wo...
/* MIT License Copyright (c) 2016 Tango Agency Modifications Copyright(C) 2016 Fred Grott(GrottWorkShop) 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 li...
/* * 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...
/*- * #%L * Elastic APM Java agent * %% * Copyright (C) 2018 - 2020 Elastic and contributors * %% * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. ...
public class IdGenerator { private final Object lock = new Object(); private int id = 0; public int nextId() { synchronized (lock) { id += 1; return id; } } }
import lombok.Value; @Value class ValueStaticField { static int x; static String PASSWORD = "Ken sent me"; }
package com.bernard.beaconportal.activities.schedule.edit; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.Fragment; import and...
package kind; import java.io.File; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.mime.MultipartEnt...
package startup.cube; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public void addition_...
package eu.midnightdust.picturesign.mixin; import eu.midnightdust.lib.util.screen.TexturedOverlayButtonWidget; import eu.midnightdust.picturesign.PictureSignClient; import eu.midnightdust.picturesign.config.PictureSignConfig; import eu.midnightdust.picturesign.screen.PictureSignHelperScreen; import net.minecraft.block...
/* * This file is generated by jOOQ. */ package de.jottyfan.camporganizer.db.jooq.tables; import de.jottyfan.camporganizer.db.jooq.Camp; import de.jottyfan.camporganizer.db.jooq.enums.EnumCamprole; import de.jottyfan.camporganizer.db.jooq.tables.records.VRegistrationRecord; import java.sql.Date; import javax.annot...
package net.noobsters.kern.paper.shield.jcedeno.demo; import java.util.List; import java.util.Random; import com.mongodb.MongoClientSettings; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoDatabase; import com.mongodb.client.model.Filters; import com.mongodb.client.result.DeleteResult; imp...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2013.12.20 at 1...
package edu.stts.fatburner.ui.register; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.view.WindowManager; import android.widget.EditText; import android.widget.ImageButton; import android.widget.Toast; import edu.stts...
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright 2014-2017 Richard Linsdale. * * 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 o...
// Copyright (c) 2013 Intel Corporation. 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.xwalk.app.runtime; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.util.Attribute...
package com.versionone.taskview.views.editors; import org.eclipse.core.runtime.Assert; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.CellEditor; import org.eclipse.jface.viewers.EditingSupport; import org.eclipse.jface.viewers.ISelectionProvider; import org.eclipse.jface.viewers.Stru...
package com.example.android.sunshine; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; /** * Created by harish on 26-06-2017. */ public class ForecastAdapter ex...
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import java.util.List; import seedu.address.commons.core.Messages; import seedu.address.commons.core.index.Index; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.Model; import seedu.addre...
/* * @lc app=leetcode.cn id=1524 lang=java * * [1524] 和为奇数的子数组数目 */ // @lc code=start class Solution { private final int MOD = (int) (1e9 + 7); public int numOfSubarrays(int[] arr) { // 前缀[0-i]的和为奇数和偶数的个数 // 特殊情况:空数组累计和为0是偶数 int countEven = 1; int countOdd = 0; // ...
/* * Copyright (c) 2010 WiYun Inc. * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, d...
/* * Copyright 2013-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...
/***** BEGIN LICENSE BLOCK ***** * Version: EPL 1.0/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Eclipse Public * License Version 1.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.eclipse.org/legal/epl-...
package org.rockey.wechat.mp.sdk.util; import java.util.ResourceBundle; import org.apache.commons.lang3.StringUtils; import org.rockey.wechat.mp.sdk.vo.JsonRtn; import com.alibaba.fastjson.JSONObject; /** * * @author RockeyHoo */ public class JsonRtnUtil { private static final String WECHAT_GLOBAL_MESSAGE_FI...
package org.TexasTorque.TexasTorque2013.autonomous.intake; import org.TexasTorque.TexasTorque2013.autonomous.AutonomousCommand; import org.TexasTorque.TexasTorque2013.subsystem.manipulator.Intake; public class AutonomousOuttake extends AutonomousCommand { public AutonomousOuttake() { super(); } ...
package com.hotbitmapgg.ohmybilibili.module.home.partition; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import com.hotbi...
package net.minecraft.util; import java.util.List; import net.minecraft.command.CommandException; import net.minecraft.command.EntityNotFoundException; import net.minecraft.command.ICommandSender; import net.minecraft.command.PlayerSelector; import net.minecraft.entity.Entity; public class ChatComponentProcessor { p...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://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 "Softwar...
package com.kit.imagelib.imagelooker; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.view.ViewPager.OnPageChangeListener; import android.view.View; import android.view.View.OnClickListener; import android.view.Window; import android.wi...
package org.tio.utils.quartz; import java.util.HashMap; import java.util.Map; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.tio.utils.SystemTimer; import org.tio.utils.date.DateUtils; /** * @...
/** * Copyright 2014 NAVER Corp. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
package org.fifthgen.colouringbooks.model; import android.content.Context; import org.fifthgen.colouringbooks.listener.OnThemeListLoadListener; import org.fifthgen.colouringbooks.model.bean.ThemeBean; import org.fifthgen.colouringbooks.model.db.FCDBHelper; import java.util.List; /** * Created by GameGFX Studio on ...
package com.gentics.cr.util; import java.util.Map.Entry; import java.util.Properties; import java.util.concurrent.ConcurrentHashMap; import org.apache.log4j.Logger; import com.gentics.cr.CRConfigUtil; import com.gentics.cr.configuration.GenericConfiguration; import com.gentics.cr.rest.ContentRepository; /** * Read...
/* WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY. This file was generated from .idl using "rtiddsgen". The rtiddsgen tool is part of the RTI Connext distribution. For more information, type 'rtiddsgen -help' at a command shell or consult the RTI Connext manual. */ package rapid; import java.util.Collection; i...
/* * Copyright 2014-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 "licen...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://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 "Softwar...
package me.ramswaroop.botkit.slackbot.core.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; /** * @author ramswaroop * @version 21/06/2016 */ @JsonIgnoreProperties(ignoreUnknown = true) public class RichMessage { private String username; private String iconEmoji; private String cha...
/* * Copyright (c) 2005, 2019, 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 ...
import java.util.*; class GraphNode { private String name; private int index; private ArrayList<GraphNode> neighbors = new ArrayList<GraphNode>(); private boolean isVisited = false; private GraphNode parent; public GraphNode(String name, int index) { this.name = name; this.index = index; } public String...
import java.util.Scanner; public class QuersummeBerechnenUndAusgeben { public static void main(String[] args) { System.out.print("Gebe eine zahl zwischen 1 und 10000 ein: "); Scanner s = new Scanner(System.in); String zahl = Integer.toString(s.nextInt()); System.out.print("Quersumme: "); for (int i =...
/* * Copyright 1999-2018 Alibaba Group Holding 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 applica...
package sk.upjs.paz1c.homer; import java.awt.Graphics2D; import java.awt.Image; import java.awt.RenderingHints; import java.awt.image.BufferedImage; import java.awt.image.ImageObserver; import java.awt.image.RenderedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io...
/* * Copyright 2018 Lookout, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
package pieces; import plateau.Case; public class Dame extends Piece { public Dame(boolean couleur) { super(couleur); } @Override public boolean verifDeplacement(Case case_p) { return !this.getCase().memeCase(case_p) && (this.case_piece.estRectiligne(case_p) || this.case_piece.estDiag...
/** Copyright 2013 Intel Corporation, 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 or agr...
package stubidp.saml.test.builders; import stubidp.utils.security.security.Certificate; import stubidp.test.devpki.TestCertificateStrings; public class CertificateBuilder { private boolean useCertificateOfIssuerId = true; private String issuerId = TestCertificateStrings.TEST_ENTITY_ID; private String cert...
/* * Copyright (C) 2012 RoboVM AB * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distribu...
package com.didiglobal.sds.client.test; import com.didiglobal.sds.client.bean.SdsStrategy; import com.didiglobal.sds.client.counter.PowerfulCycleTimeCounter; import com.didiglobal.sds.client.service.SdsPowerfulCounterService; import com.didiglobal.sds.client.service.SdsStrategyService; import org.junit.Assert; import ...
package com.mz.user.adapter.shortener.impl; import com.mz.reactivedemo.common.util.Logger; import com.mz.reactivedemo.shortener.api.event.ShortenerChangedEvent; import com.mz.reactivedemo.shortener.api.event.ShortenerEventType; import com.mz.reactivedemo.shortener.api.topics.ShortenerTopics; import com.mz.user.UserApp...
package com.simonalong.neo.entity; import lombok.Getter; import lombok.Setter; import lombok.ToString; import lombok.experimental.Accessors; /** * @author zhouzhenyong * @since 2019/6/30 上午12:58 */ @Setter @Getter @Accessors(chain = true) @ToString public class TestEntity { private String userName; private...
/* * Copyright 2010-2020 Australian Signals Directorate * * 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 appl...
package com.example.administrator.app9; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; public class MainActivity extends Activity { ...
package zamorozka.event.events; import zamorozka.event.Event; import net.minecraft.network.Packet; public class EventPacketSend extends Event { public boolean cancel; public Packet packet; public EventPacketSend(Packet packet) { this.packet = packet; } public Packet getPacket() { ...
package kaptainwutax.featureutils.structure; import kaptainwutax.biomeutils.biome.Biome; import kaptainwutax.biomeutils.biome.Biomes; import kaptainwutax.biomeutils.source.BiomeSource; import kaptainwutax.featureutils.structure.generator.piece.StructurePiece; import kaptainwutax.featureutils.structure.generator.piece....
package com.github.mengweijin.quickboot.framework.util; import cn.hutool.core.util.HexUtil; import cn.hutool.core.util.IdUtil; import cn.hutool.crypto.KeyUtil; import cn.hutool.crypto.SecureUtil; import cn.hutool.crypto.symmetric.AES; import cn.hutool.crypto.symmetric.SymmetricAlgorithm; import com.github.mengweijin.q...
package uk.gov.hmcts.reform.sscscorbackend.domain; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; @JsonIgnoreProperties(ignoreUnknown = true) public class Statement { @ApiModelProperty(example = "t...
/* * JBoss, Home of Professional Open Source. * Copyright 2012 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...
/** * Copyright (c) 2013 Puppet Labs, Inc. and other contributors, as listed below. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution, and is available at * http://www.apache.org/licenses/...
/* * Copyright 2016 Ali. * * 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 wri...
package org.jboss.resteasy.tracing.providers.jsonb; import org.jboss.resteasy.tracing.api.RESTEasyTracingInfoFormat; import org.jboss.resteasy.tracing.api.providers.TextBasedRESTEasyTracingInfo; import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; public class JSONBJsonFormatRESTEasyTracingInfo extends...
/*Copyright (c) 2008 Nikos Siatras Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, su...
package com.kp.core; import org.json.JSONObject; /** * Asynchtask Callback interface * @author kaushal * */ public interface ICallBack { public void onSuccess(JSONObject result); public void onFailure(Throwable throwable,String error); }
/* * Copyright 2006-2007 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...
package mage.cards.k; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.constants.SubType; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.dynamicvalue.commo...
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
/* * 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 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...
package cn.ibizlab.core.workflow.client; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.HashMap; import java.util.Collection; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.we...
/* * 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 com.iramml.uberclone.driverapp.Model; public class Notification { public String title; public String body; public Notification(String title, String body) { this.title = title; this.body = body; } }
import configs.DataConfig; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.jdbc.datasource.DriverManagerDataSource; import org.springframework.orm.jpa.JpaTransactionManager; import org.springframework.orm.jpa.LocalContainerEntit...
/* * Copyright (c) 2013, 2015 Oracle and/or its affiliates. All rights reserved. This * code is released under a tri EPL/GPL/LGPL license. You can use it, * redistribute it and/or modify it under the terms of the: * * Eclipse Public License version 1.0 * GNU General Public License version 2 * GNU Lesser General ...
package com.allanperes.studies.datastructure; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; class CircularLinkedListTest { @Test void shouldAddDataToLinkedList() { CircularLinkedList<Long> list = new CircularLinkedList<>(); list.add(35L); ...
/* * 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 &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.gen.service; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Servi...
package aljourda.fdf; import minilibX.Mlx; public class MlxLine { public static int gradient(int start, int end, double steps){ double r; double g; double b; int ret; if (steps > 0) { r = (end >> 16) & 0xff; r -= (start >> 16) & 0xff; r = Math.round(r / steps); g = (end >> 8) & 0xff; g ...
/* * 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.alphawallet.app.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.text.TextUtils; import android.util.AttributeSet; import android.view.View; import android.widget.ImageView; import android.widget.ProgressBar; import and...
package com.example.sqlcipherdemo; import android.content.ContentValues; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; import a...
package org.libex.test.jms.validation.capture; import static com.google.common.base.Preconditions.checkNotNull; import java.util.Collection; import java.util.Map; import javax.annotation.ParametersAreNonnullByDefault; import javax.annotation.concurrent.NotThreadSafe; import org.apache.camel.Exchange; import org.lib...
import javafx.scene.shape.Rectangle; import java.util.concurrent.ThreadLocalRandom; public class RectangleMove implements Runnable { private final Rectangle rect; public RectangleMove(Rectangle rect) { this.rect = rect; } @Override public void run() { int dX = makeDelta(); ...