text
stringlengths
7
995k
package io.indexr.query.expr.arith; import com.google.common.collect.Lists; import java.util.Collections; import java.util.List; import io.indexr.query.expr.Expression; import io.indexr.query.row.InternalRow; import io.indexr.query.types.DataType; public class BitwiseNot extends Expression { public Expression c...
package indiv.rakesh.springcloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class RatingApplication { public static void main(String[] args) { SpringApplication.run(RatingApplication.class, args); } }
/* * 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 Apereo * * 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 wr...
/* * Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made * available under the terms of the MIT License. See the LICENSE file in the project root for more information. */ package com.microsoft.sqlserver.jdbc.databasemetadata; import static org.junit.jupi...
/******************************************************************************* * Copyright (c) 2018 Fraunhofer IEM, Paderborn, Germany. * * Contributors: * Oshando Johnson (oshando.johnson@iem.fraunhofer.de ) - initial implementation ******************************************************************************/...
package za.redbridge.controller.SANE; import org.encog.ml.data.MLData; import org.encog.ml.data.basic.BasicMLData; import org.encog.neural.networks.BasicNetwork; import sim.util.Double2D; import za.redbridge.controller.NEATM.sensor.SensorMorphology; import za.redbridge.simulator.phenotype.Phenotype; import za.redbridg...
/* * Copyright (c) 2018 ACINO Consortium * * 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...
/* $Id$ */ /**************************************************************************** MESSAGE PASSING INTERFACE TEST CASE SUITE Copyright IBM Corp. 1995 IBM Corp. hereby grants a non-exclusive license to use, copy, modify, and distribute this software for any purpose and without fee provided that the above ...
/* * Copyright 2016 DTCC, Fujitsu Australia Software Technology, IBM - 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/LICEN...
/* * Copyright 2014-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * 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...
/** * Copyright (C) 2015 Red Hat, 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...
package aero.champ.cargojson.flightstatus; import aero.champ.cargojson.common.IATAAirportCode; import aero.champ.cargojson.flightstatus.events.*; import java.time.LocalDateTime; import java.util.*; import java.util.stream.Collectors; public class FlightStatusGrouping { public static class Station { publ...
/* ### * 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 writing,...
import java.util.*; import java.io.*; class Node { Node left; Node right; int data; Node(int data) { this.data = data; left = null; right = null; } } class Tree_Postorder_Traversal { /* you only have to complete the function given below. Node is defined as class ...
// The code file was created by <a href="https://www.nsleaf.cn">nsleaf</a> (email:nsleaf@foxmail.com) on 2020/5/7. package cs.ohms.subsystem.utils; import cs.ohms.subsystem.exception.NSParseFieldException; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.springframework.u...
/** * Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2016-2019 * * 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 engineering.everest.lhotse.axon.command.validators; import engineering.everest.lhotse.axon.command.validation.UsersBelongToOrganizationValidatableCommand; import engineering.everest.lhotse.axon.common.domain.User; import engineering.everest.lhotse.users.services.UsersReadService; import org.junit.jupiter.api.B...
package com.atguigu.gulimall.oms.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 仓库信息...
package slidingwindow; // 1208-尽可能使字符串相等 // get-equal-substrings-within-budget //给你两个长度相同的字符串,s 和 t。 // // 将 s 中的第 i 个字符变到 t 中的第 i 个字符需要 |s[i] - t[i]| 的开销(开销可能为 0),也就是两个字符的 ASCII 码值的差的 //绝对值。 // // 用于变更字符串的最大预算是 maxCost。在转化字符串时,总开销应当小于等于该预算,这也意味着字符串的转化可能是不完全的。 // // 如果你可以将 s 的子字符串转化为它在 t 中对应的子字符串,则返回可以转化的最大长度。 // // 如果...
/** * Copyright The Apache 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 Li...
package com.github.bordertech.swagger.test; import com.github.bordertech.lde.api.LdeLauncher; import io.restassured.RestAssured; import io.restassured.http.ContentType; import org.hamcrest.core.IsEqual; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * Test Jersey and Swagger start correc...
public class Do_while_loop{ public static void main(String[] args){ int a = 23; do{ System.out.println(a); a++; }while(a > 100); } }
package r.demo.graphql.types; import lombok.Getter; @Getter public class Link { private final String source; private final String target; public Link(String source, String target) { this.source = source; this.target = target; } }
package ch.frostnova.spring.boot.platform.web.controller; import ch.frostnova.spring.boot.platform.model.UserInfo; import ch.frostnova.spring.boot.platform.service.JWTSigningService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import io.swagger...
/* * @test /nodynamiccopyright/ * @bug 5077054 * @summary Conditional operator applies assignment conversion * @author Tim Hanson, BEA * * @compile Conditional.java * @compile/fail/ref=Conditional.out -XDrawDiagnostics -source 7 -Xlint:-options Conditional.java */ import java.util.*; class Conditional { v...
package org.springframework.samples.petclinic.enumerate; public enum TipoAutorizacion { TRANSPORTE, USOIMAGEN,RESPONSABILIDADLESION,EXCURSIONES; public static TipoAutorizacion fromNombre(String nombre) { for(TipoAutorizacion a : TipoAutorizacion.values()) { if(a.name().equals(nombre)) { return a; } } return...
/* * Copyright 2009-2021 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 * * Unles...
package com.tq.entity.querymodel; import java.sql.Date; public class OperationRecordQuerymodel { private Date from; private Date end; private String moudleId; private int pageIndex; private int pageSize; public Date getFrom() { return this.from; } public void setFrom(Date from) { this.from ...
/* * $Id: DisplayControlWrapper.java,v 1.6 2007/04/16 21:32:37 jeffmc Exp $ * * Copyright 1997-2019 Unidata Program Center/University Corporation for * Atmospheric Research, P.O. Box 3000, Boulder, CO 80307, * support@unidata.ucar.edu. * * This library is free software; you can redistribute it and/or modify it ...
/* * Copyright 2002-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...
/* * Copyright (C) 2004-2008 Jive Software. 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 require...
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
package com.planet_ink.coffee_mud.Exits; 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.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.c...
/** * 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 org.senro.demo.good; import javax.persistence.Entity; import javax.persistence.Inheritance; import org.apache.commons.lang.builder.EqualsBuilder; import java.io.Serializable; @Entity @Inheritance public class Apple extends Fruit implements Serializable { public Apple() { super(); //...
/** * Copyright 2017-2021 Fred Feng (paganini.fy@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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/** * 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 2002-2016 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 com.inspo.solutions; import java.util.List; public class Helper { public static List<Person> persons = List.of( new Person.Builder().setName("Abhik").setAge(7).setLocation(Location.TORONTO).setSalary(250000.00).build(), new Person.Builder().setName("Jaysen").setAge(2).setLocation(Location.TORONTO).setS...
/* * Copyright 2002-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...
package uk.gov.defra.plants.backend.mapper.dynamicscase; import static uk.gov.defra.plants.common.constants.DynamicsMappedFields.COUNTRY_OF_EXPORT; import com.google.common.collect.ImmutableMap; import java.util.Arrays; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.function....
package com.turkraft.springfilter.parser.generator.query; import java.util.Objects; import java.util.stream.Collectors; import org.antlr.v4.runtime.CharStreams; import org.antlr.v4.runtime.CommonTokenStream; import com.turkraft.springfilter.exception.UnimplementFilterOperationException; import com.turkraft.springfil...
package com.foxware.sites; import android.app.Fragment; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener...
package imooc.naga.core.client.azkaban.response; import imooc.naga.core.client.azkaban.model.Execution; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FetchFlowExec...
package com.djp.bootswagger; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class BootSwaggerApplicationTests { @Test public v...
package com.lga.transparentstatusbar; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; public class Color1Activity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea...
/* * Copyright Terracotta, 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 ...
/* * 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") + yo...
package com.nephelo.mybatis.dao; import com.nephelo.mybatis.pojo.User; public interface UserDao { void addUser(User user); }
package com.example.websocket.Dao; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.springf...
/* * Copyright (c) 2004-2021, 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 retain the above copyright notice, this * list o...
package com.packt.chapter10; import io.smallrye.reactive.messaging.annotations.Channel; import org.jboss.resteasy.annotations.SseElementType; import org.reactivestreams.Publisher; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaTyp...
/* * Copyright 2002-2018 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 io.gravicore.app.custom.plugin; import io.gravicore.app.custom.service.GroupService; import io.gravicore.app.custom.service.UserService; import org.camunda.bpm.engine.impl.identity.ReadOnlyIdentityProvider; import org.camunda.bpm.engine.impl.interceptor.Session; import org.camunda.bpm.engine.impl.interceptor.S...
/* * Copyright 2015-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* * Copyright 2014 Red Hat, Inc. * * Red Hat 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.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package fr.vergne.data.access.impl.advanced; import static org.junit.Assert.*; import org.junit.Test; public class ControlledPropertyTest { @Test public void testSetGetAlignment() { ControlledProperty<Integer> property = new ControlledProperty<Integer>(); property.set(3); assertEquals(3, (Object) property....
import java.time.ZonedDateTime; public class ToDo { protected String type; protected String content; protected ZonedDateTime dateTime; protected boolean done; protected ToDo(String type, String content, ZonedDateTime dateTime, boolean done) { this.type = type; this.content = content; this.date...
/* * Copyright 2016-2021 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...
/* * 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.common.security.shiro; import org.apache.shiro.authc.AuthenticationException; public class IncorrectCaptchaException extends AuthenticationException { private static final long serialVersionUID = 6146451562810994591L; public IncorrectCaptchaException() { super(); } public IncorrectCaptchaException...
/* * Copyright (c) 2018. cldt All Rights Reserved. * 类名称:UacRoleActionService.java * 联系方式:cldt * 博客地址: http://blog.cldt * 项目官网: http://cldt */ package com.cldt.provider.service; import com.cldt.provider.model.domain.UacRoleAction; import com.cldt.common.core.support.IService; import java.util.List; import j...
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
package com.codethales.classesutilitarias.instant.test; import java.time.Instant; import java.time.LocalDateTime; //A classe instant trabalha com nano segundos. public class InstantTest01 { public static void main(String[] args) { Instant now = Instant.now(); System.out.println(now);//prints 2022-...
package com.example.experimentify; import android.icu.text.SimpleDateFormat; import com.google.firebase.Timestamp; import java.util.ArrayList; import java.util.Date; /** * This is a class that models an answer to a question. */ public class chatAnswer { private String description; private String UID; ...
/* * Copyright 2012-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...
package org.oagi.srt.cache.impl; import org.oagi.srt.cache.DatabaseCacheWatchdog; import org.oagi.srt.data.ASCCP; import org.oagi.srt.repository.ASCCPRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class ASCCPDatabaseCacheWa...
/*- * #%L * Bobcat * %% * Copyright (C) 2016 Wunderman Thompson Technology * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
/** * Copyright (C) 2006-2017 Talend Inc. - www.talend.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...
package com.mouse.api.client.mall; import com.mouse.api.base.GlobalExceptionHandler; import com.mouse.api.feign.mall.TopicFeign; import com.mouse.api.service.GoodsService; import com.mouse.api.service.TopicService; import com.mouse.core.base.BusinessException; import com.mouse.core.base.R; import com.mouse.core.utils....
package niuliu.cheng.demo.mapper; import niuliu.cheng.demo.entity.AddressBean; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Update; @Mapper public interface AddressMapper { @Insert("INSER...
package org.deviceconnect.android.deviceplugin.host.recorder.camera; import org.deviceconnect.android.libmedia.streaming.rtsp.session.video.H265VideoStream; import org.deviceconnect.android.libmedia.streaming.video.VideoEncoder; public class CameraH265VideoStream extends H265VideoStream { /** * 映像用エンコーダ. ...
/* * 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 org.linlinjava.litemall.db.service; import com.github.pagehelper.PageHelper; import org.linlinjava.litemall.db.dao.LitemallCategoryMapper; import org.linlinjava.litemall.db.domain.LitemallCategory; import org.linlinjava.litemall.db.domain.LitemallCategoryExample; import org.springframework.stereotype.Service; ...
/******************************************************************************* * Copyright 2019 alladin-IT GmbH * * 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.apa...
package marquez.spark.agent.client; import static org.apache.hc.core5.http.HttpHeaders.AUTHORIZATION; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.J...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
package com.example.jingbin.cloudreader.ui.wan.child; import android.arch.lifecycle.Observer; import android.content.Context; import android.databinding.DataBindingUtil; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.FragmentActivity; import android.support.v4.widge...
package wcs.core; import COM.FutureTense.Interfaces.ICS; /** * Setup interface. Dispatched will call this class to perform setup * * @author msciab * */ public interface Setup { public String exec(ICS ics, String site, String username, String password); }
import java.util.Arrays; import java.util.Scanner; public class scheduler { public static void main(String[] args){ // TODO Auto-generated method stub int c; //is the number of processes int h; //length of array int burstTime; String name; int waitTime; int quantumTime; w...
package com.boku.auth.http.keyprovider; import com.boku.auth.http.AuthorizationHeader; /** * Retrieve an API key by {@link AuthorizationHeader#getPartnerId() partner ID} and * {@link AuthorizationHeader#getKeyId() key ID}. */ public interface KeyProvider { /** * Retrieve a key by the given partner ID and...
/* * Copyright 2011-2018 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...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
package com.google.android.datatransport.runtime.scheduling.jobscheduling; import android.app.job.JobInfo; import android.app.job.JobScheduler; import android.content.ComponentName; import android.content.Context; import android.os.PersistableBundle; import android.util.Base64; import com.google.android.datatransport....
/* * 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...
package fi.nls.oskari.servlet; import fi.nls.oskari.cache.JedisManager; import fi.nls.oskari.db.DatasourceHelper; import org.oskari.helpers.FlywaydbMigrator; import fi.nls.oskari.log.LogFactory; import fi.nls.oskari.log.Logger; import fi.nls.oskari.scheduler.SchedulerService; import fi.nls.oskari.util.ConversionHelper...
/* * Copyright (c) 2018 Titan Robotics Club (http://www.titanrobotics.com) * * 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 ...
/* Copyright (c) 2014, Effektif GmbH. * * 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.lesson4; import java.util.Set; import java.util.TreeSet; public class TreeSetEx { public static void main(String[] args) { Set<Integer> set = new TreeSet<>(); set.add(1); set.add(5); set.add(3); set.add(2); set.add(6); set.add(8); set.add...
import java.util.Collection; //tag::userdao[] public interface UserDao { User findUserById(int userId); boolean storeUser(int userId, User user); boolean removeUser(int userId); Collection<Integer> allUserIds(); } //end::userdao[]
package br.ufrj.ppgi.greco.kettle.dbpedia.utils; public class Page { private String title; private String text; }
/* * 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-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
package uk.gov.ida.stub.idp.resources; import uk.gov.ida.stub.idp.Urls; import uk.gov.ida.stub.idp.dtos.IdpUserDto; import uk.gov.ida.stub.idp.exceptions.IdpUserNotFoundException; import uk.gov.ida.stub.idp.services.UserService; import uk.gov.ida.stub.idp.validation.ValidationResponse; import javax.inject.Inject; imp...
package com.sun.corba.se.PortableActivationIDL; /** * com/sun/corba/se/PortableActivationIDL/_ServerManagerImplBase.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u121/8372/corba/src/share/classes/com/sun/corba/se/PortableActivationID...
/** * 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.tramchester.unit.domain; import com.tramchester.domain.ServiceTimeLimits; import org.junit.jupiter.api.Test; import java.time.LocalTime; import static org.junit.jupiter.api.Assertions.*; class ServiceTimeLimitsTest { private final ServiceTimeLimits timeLimits = new ServiceTimeLimits(); @Test ...
/* * 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...