text stringlengths 7 995k |
|---|
/*
* Copyright 2019 The Exonum Team
*
* 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... |
/*
* 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 java.text;
public class DateFormat {
/** DateFormat styling constants */
/**
* Constant for full style pattern.
*/
public static final int FULL = 0;
/**
* Constant for long style pattern.
*/
public static final int LONG = 1;
/**
* Constant for medium st... |
package club.towr5291.Concepts;
import android.util.Log;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.util.ElapsedTime;
import java.util.HashMap;
import club.... |
/*
* Copyright (c) 2017, GoMint, BlackyPaw and geNAZt
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint.server.inventory.item;
import io.gomint.inventory.item.ItemType;
import io.gomint.server.registry.RegisterInfo;
import i... |
/*
* 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 org.knowm.xchange.examples.kraken;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.kraken.KrakenExchange;
public class KrakenExampleUtils {
private KrakenExampleUtils() {}
public static Exchange createTestExchange() {
Exchange krakenExchange = E... |
/*
* Copyright 2012-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 com.ucar.datalink.biz.service;
import com.ucar.datalink.domain.task.TaskExceptionInfo;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
* Created by sqq on 2018/3/1.
*/
public interface TaskExceptionService {
Boolean insert(TaskExceptionInfo taskExceptionIn... |
/*
* 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 org.account.util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
public class JDBCUtil {
public static final String sqlDriver = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
public static final String sqlString = "jd... |
/*
* Copyright 2012-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 ar.edu.unlam.tallerweb1.modelo;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Comuna {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String nombre;
@OneToMany
private List<Barrio> barrios = new Ar... |
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapt... |
/*
* 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... |
/**
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
// 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 in writi... |
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.tencent.tauth;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.SocketTimeoutException;
import org... |
package io.zucchiniui.backend;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.dropwizard.Configuration;
import io.dropwizard.metrics.MetricsFactory;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
@JsonIgnoreProperties(ignoreUnknown = true)
public class BackendCon... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package com.hackerrank.algorithms.slidingwindow;
import java.io.IOException;
//sliding window solution in O(n) time to find max sum in the window size k in the contiguous array of length k in array nums.
public class MaximumSumInContigousArray {
public static void main(String[] args) throws IOException {
... |
/*
* 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 saraiva;
import java.util.List;
/**
*
* @author Gabriel Mattos e Marina Barros
*/
public interface LivroDAO {
List<L... |
package com.mapstruct.demo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* 使用 map struct进行转换
* FIXME 对于复杂的字段映射,注解过于费劲
*
* @author zhoucg
* @date 2020-09-16 21:55
*/
@Mapper
public interface CarCove... |
/*
* The MIT License
*
* Copyright (c) 2012 The Broad Institute
*
* 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.philihp.weblabora.model;
public final class MoveProcessor {
private MoveProcessor() {
}
public static void processMove(Board board, String move) throws WeblaboraException {
TurnHistory history = board.getTurnHistory();
CommandParameters params = new CommandParameters(history);
Strin... |
/**
* Copyright (C) 2010-2014 eBusiness Information, Excilys Group
*
* 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 ... |
/*
* Copyright 2011-2017 Bas Leijdekkers
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*
* 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... |
/*-
* #%L
* Genome Damage and Stability Centre ImageJ Core Package
*
* Contains code used by:
*
* GDSC ImageJ Plugins - Microscopy image analysis
*
* GDSC SMLM ImageJ Plugins - Single molecule localisation microscopy (SMLM)
* %%
* Copyright (C) 2011 - 2022 Alex Herbert
* %%
* This program is free software: ... |
package org.apache.spark.sql.catalog;
/**
* A user-defined function in Spark, as returned by <code>listFunctions</code> method in {@link Catalog}.
* <p>
* param: name name of the function.
* param: database name of the database the function belongs to.
* param: description description of the function; descripti... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__float_zero_divide_31.java
Label Definition File: CWE369_Divide_by_Zero__float.label.xml
Template File: sources-sinks-31.tmpl.java
*/
/*
* @description
* CWE: 369 Divide by zero
* BadSource: zero Set data to a hardcoded value of zero
* GoodSource: ... |
package org.hl7.fhir.dstu3.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
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 co... |
// Copyright (c) 2015-2020 Vladimir Schneider <vladimir.schneider@gmail.com> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.psi.index;
import com.intellij.psi.stubs.StubIndexKey;
import com.vladsch.md.nav.psi.MdPlainText;
import org.jetb... |
/**
* Copyright 2017-2020 the original author or authors from the JHipster Online project.
*
* This file is part of the JHipster Online project, see https://github.com/jhipster/jhipster-online
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.management.network.implementation;
import com.azure.core.management.SubResource;
import com.azure.management.network.ApplicationGateway;
import com.azure.management.network.ApplicationGatewayFrontend;
impo... |
package org.xrpl.xrpl4j.codec.addresses;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import java.math.BigInteger;
public class ByteUtilsTest {
@Test
public void toByteArraySingleByteMinValue() {
assertThat(ByteUtils.toByteArray(0, 1)).isEqualTo(new byte[] {0});
}
@... |
package eu.xenit.contentcloud.scribe.generator.database.operations;
import static eu.xenit.contentcloud.scribe.generator.database.operations.NamingUtils.convertAttributeNameToColumnName;
import static eu.xenit.contentcloud.scribe.generator.database.operations.NamingUtils.convertEntityNameToTableName;
import eu.xenit.... |
package com.example.sikostumpenyewa;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
impo... |
package ru.tinkoff.qa.neptune.rabbit.mq.function.get;
import com.fasterxml.jackson.core.type.TypeReference;
import ru.tinkoff.qa.neptune.core.api.data.format.DataTransformer;
import ru.tinkoff.qa.neptune.core.api.event.firing.annotations.CaptureOnFailure;
import ru.tinkoff.qa.neptune.core.api.event.firing.annotations.... |
package com.crestech.common.utilities;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.remote.RemoteWebElement;
import com.crestech.appium.utils.CommonAppiumTest;
import io.appium.java_client.AppiumDriver;
import io.appium.java_c... |
// Tags: JDK1.1
// Copyright (C) 2002 Free Software Foundation, Inc.
// Written by Mark Wielaard (mark@klomp.org)
// This file is part of Mauve.
// Mauve 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; eithe... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// 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: 2012... |
package seedu.address.storage;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static seedu.address.testutil.TypicalPersons.getTypicalAddressBook;
import java.nio.file.Path;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jup... |
package no.nav.fo.veilarbregistrering.sykemelding;
import org.junit.Test;
import java.time.LocalDate;
import java.time.Month;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class MaksdatoTest {
@Test
public void skalVaereSykmeld... |
package cmds;
import domain.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.time.Month;
import java.util.List;
import static java.time.Month.*;
import static org.junit.Assert.*;
import static utils.DateUtils.date;... |
package org.slf4j.helpers;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import org.junit.Test;
public class BasicMDCAdapterTest extends MDCAdapterTestBase {
@Test
public void testClearingMDC() {
mdc.put("testKey", "testValue");
assertFalse(mdc.getCop... |
/*
* Copyright 2015 NEC Corporation.
*
* 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 com.docuware.dev.schema._public.services.platform;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.net.URI;
import com.docuware.dev.Extensions.*;
import java.util.concurrent.CompletableFuture;
import java.util.*;
import com.docuware.dev.schema._public.services.Link;
import java.util.... |
/*
* Copyright (c) 2016 Cloudera, 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 ... |
package com.noveogroup.preferences;
import android.content.SharedPreferences;
import com.noveogroup.preferences.api.Preference;
import com.noveogroup.preferences.mock.TestSharedPreferences;
import com.noveogroup.preferences.mock.User;
import com.noveogroup.preferences.mock.UserStrategy;
import org.junit.Before;
impo... |
/*
* Copyright 2005-2007 Open Source Applications Foundation
*
* 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... |
/*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... |
// Copyright 2020 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.components.browser_ui.widget.promo;
import android.view.View;
import org.chromium.base.Callback;
import org.chromium.ui.modelutil.P... |
// Copyright 2015-2021 Swim 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 ... |
/*
* Copyright 2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package companies.oracle.saloon.core;
public class SaloonService {
public static void main(String[] args) {
/**
* 1) Intialize the Array
* 2) Fill in the Array
* 3) ServeCustomer for the given slot
* i) Validation
* a) getSlotsFilled - count
... |
package org.bouncycastle.math.ec;
import javax.math.BigInteger;
import java.util.Hashtable;
/**
* base class for points on elliptic curves.
*/
public abstract class ECPoint
{
protected static ECFieldElement[] EMPTY_ZS = new ECFieldElement[0];
protected static ECFieldElement[] getInitialZCoords(ECCurve curv... |
/*
* 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.tencent.wxcloudrun.common.bean;
import java.io.Serializable;
public class Page implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 分页查询开始记录位置.
*/
private long offset;
/**
* 每页显示记录数.
*/
private long limit = 20;
public Page() {
}... |
/*
* Released under the terms of the MIT License.
*
* Copyright (c) 2020 objecttrouve.org <un.object.trouve@gmail.com>
*
*/
package org.objecttrouve.testing.matchers.customization;
import org.objecttrouve.testing.matchers.api.Symbols;
/**
* Symbols used in error messages when a matcher doesn't match.
*/
publi... |
/*
* Copyright (c) 2019 Aman Nougrahiya, V Krishna Nandivada, IIT Madras.
* This file is a part of the project IMOP, licensed under the MIT license.
* See LICENSE.md for the full text of the license.
*
* The above notice shall be included in all copies or substantial
* portions of this file.
*/
package imop.lib... |
/*
* 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... |
package uk.gov.phe.erdst.sc.awag.service.parameter;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.google.inject.Inject;
import uk.gov.phe.erdst.sc.awag.datamodel.Parameter;
import uk.gov.phe.erdst.sc.awag.datamodel.ParameterScore;
import uk.gov.p... |
/**
*
*/
package wusc.edu.facade.user.service;
import java.util.Map;
import wusc.edu.common.page.PageBean;
import wusc.edu.common.page.PageParam;
import wusc.edu.facade.user.entity.PmsUser;
/**
* @描述: 用户Dubbo服务接口 .
* @作者: WuShuicheng .
* @创建时间: 2015-1-26,上午1:41:38 .
* @版本号: V1.0 .
*/
public interface PmsUser... |
/*
* ====================================================================
* StreamEPS Platform
*
* Distributed under the Modified BSD License.
* Copyright notice: The copyright for this software and a full listing
* of individual contributors are as shown in the packaged copyright.txt
* file.
* All rights... |
/*
* 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 ... |
import java.util.Arrays;
import java.util.Set;
import java.util.HashSet;
public class ContainsDuplicateII {
public boolean containsDuplicate(int[] nums, int k) {
Set<Integer> set = new HashSet<>();
for(int i = 0; i < nums.length; i++) {
int num = nums[i];
if(i > k) {
... |
// This is a generated file. Not intended for manual editing.
package io.github.josehsantos.hack.lang.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTre... |
/**
* 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 may ... |
/*
Derby - Class org.apache.derby.iapi.types.SQLTimestamp
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 ... |
package com.udacity.jdnd.course3.critter.model;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
/**
* Convenience class for handling id and name values for the entities
*/
@MappedSuperclass
public class Details... |
/*
* Copyright 2014-2018 Groupon, Inc
* Copyright 2014-2018 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http... |
package de.charite.compbio.jannovar.reference;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import de.charite.compbio.jannovar.io.ReferenceDictionary;
public class CDSPositionTest {
/** this test uses this static hg19 reference dictionary */
static final ReferenceDictionary refDict = H... |
package net.magik6k.jwwf.widgets.basic;
import net.magik6k.jwwf.core.Widget;
import net.magik6k.jwwf.util.Json;
/**
* Basic container of text
*/
public class TextLabel extends Widget {
private String text;
private boolean textWrap = false;
/**
* @param text Default text
*/
public TextLabel(String text) {
... |
/*
* 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 com.dubailizards.so_cyc.boundary;
import android.content.Intent;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatDelegate;
import com.dubailizards.so_cyc.databinding.ActivityMainBinding;
import com.dubailizards.so_cyc.boundary.login.LoginActivi... |
/*
* Copyright 2010-2016 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 "l... |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... |
/*
* Copyright 2015 The AppAuth for Android Authors. 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 requi... |
package engine.util;
import javafx.scene.image.ImageView;
import util.math.num.Vector;
/**
* A Class that translates Game Coordinates to JavaFX coordinates and back.
* @author Albert
* @author estellehe
*/
public class FXProcessing {
/**
*
* @param click click location
* @param gridS size of gr... |
package routing;
/**
* A coordinate on the earth defined by the latitude and longitude.
*
* See also: http://en.wikipedia.org/wiki/Geographic_coordinate_system
*/
public class Coordinate {
/**
* The earth radius in meters.
*/
static final double earthRadius = 6378137.0; // WGS84 standard earth radius
sta... |
/*
* $Id: ELIncludeTagBeanInfo.java 471754 2006-11-06 14:55:09Z husted $
*
* 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 fil... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v4/errors/keyword_plan_ad_group_error.proto
package com.google.ads.googleads.v4.errors;
/**
* <pre>
* Container for enum describing possible errors from applying a keyword plan
* ad group.
* </pre>
*
* Protobuf type {@co... |
package com.github.anno4j.model.impl.targets;
import com.github.anno4j.model.Selector;
import com.github.anno4j.model.State;
import com.github.anno4j.model.Target;
import com.github.anno4j.model.impl.ResourceObject;
import com.github.anno4j.model.namespaces.OADM;
import org.openrdf.annotations.Iri;
import org.openrdf.... |
/**
* Copyright 2013 Diego Ceccarelli
*
* 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 ... |
package io.holunda.camunda.bpm.data.adapter.basic;
import org.camunda.bpm.engine.variable.VariableMap;
import java.util.Optional;
/**
* Read-write adapter for variable map.
*
* @param <T> type of value.
*/
public class ReadWriteAdapterVariableMap<T> extends AbstractBasicReadWriteAdapter<T> {
private final Var... |
/*
* gml-objects - A Java mapping for the OGC Geography Markup Language (GML)
* https://github.com/xmlobjects/gml-objects
*
* Copyright 2019-2020 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
import java.awt.Color;
import uchicago.src.sim.gui.SimGraphics;
import uchicago.src.sim.space.Object2DTorus;
public class WallAgent extends Agent{
public WallAgent(int id, int x, int y, Color color, Object2DTorus space) {
super(id, x, y, color, space);
}
public void draw(SimGraphics g) {
g.drawFastCircle(co... |
package org.keycloak.testsuite.adapter;
import org.keycloak.testsuite.adapter.servlet.DemoFilterServletAdapterTest;
import org.keycloak.testsuite.arquillian.annotation.AppServerContainer;
/**
* Created by zschwarz on 9/14/16.
*/
@AppServerContainer("app-server-wildfly10")
public class Wildfly10OIDCFilterAdapterTes... |
package enums;
public enum NavigationActions {SHARE_INFORMATION, TRADES, BROKERS, SHAREHOLDERS, EXIT} |
/**
* Copyright 2011, 2012 Niall Gallagher
*
* 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 org.javers.organization.structure.infrastructure;
import org.javers.core.Changes;
import org.javers.core.Javers;
import org.javers.core.diff.Change;
import org.javers.core.diff.Diff;
import org.javers.core.json.JsonConverter;
import org.javers.core.metamodel.object.CdoSnapshot;
import org.javers.organization.... |
package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, Inc.
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 copyr... |
/*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2019 Adobe
* %%
* 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... |
package net.metrosystems.mrc.stepdefinitions;
import com.codeborne.selenide.CollectionCondition;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.SelenideElement;
import io.cucumber.java.en.Then;
import org.openqa.selenium.By;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.... |
package app.zoftwhere.combinatoric.scope;
import java.math.BigInteger;
import java.util.Base64;
import org.junit.jupiter.api.Test;
import static app.zoftwhere.combinatoric.Calculator.factorial;
import static app.zoftwhere.combinatoric.TestHelper.assertClass;
import static org.junit.jupiter.api.Assertions.assertEqual... |
package xyz.msws.nope.modules.checks;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Entity;
imp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.