text stringlengths 7 1.01M |
|---|
/*
* This file is part of Noise, licensed under the MIT License (MIT).
*
* Copyright (c) Flow Powered <https://github.com/flow>
* Copyright (c) SpongePowered <https://github.com/SpongePowered>
* Copyright (c) contributors
*
* Original libnoise C++ library by Jason Bevins <http://libnoise.sourceforge.net>
* jlib... |
package caching;
import java.util.Iterator;
import java.lang.Iterable;
import java.util.ConcurrentModificationException;
import java.util.NoSuchElementException;
public class SolvedLeaning<T extends Comparable<T>> implements Iterable<T> {
public static double upstreamBorder = 0.32012359571399895;
public final Gan... |
package com.alexiscv.ejemplo3errores;
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
publi... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
/*
* Copyright 2019-2021 The Polypheny 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 applicable law or... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... |
package com.zy.leetcode;
import java.util.Arrays;
import java.util.HashMap;
/**
* @Author: Zy
* @Date: 2021/11/16 14:56
* 给定一个整数数组 nums和一个整数目标值 target,请你在该数组中找出 和为目标值 target 的那两个整数,并返回它们的数组下标。
* 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素在答案里不能重复出现。
* 你可以按任意顺序返回答案。
* 示例 1:
* 输入:nums = [2,7,11,15], target = 9
* 输出:[0,1]
* ... |
package com.mobapphome.mahads;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
... |
/*
* 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.auth.rest.api.errorhandling;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
@Provider
public class AppExceptionMapper implements ExceptionMapper<AppException> {
public Response toResponse(AppException ex) {
... |
/*
* 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 ... |
/*
* 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.roncoo.education.course.service.common.resq;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experiment... |
package com.av.mirror.apapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
i... |
/*
* Copyright (c) 2007, 2019, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for a... |
package com.alibabacloud.hipstershop.web;
import com.alibabacloud.hipstershop.common.AccessCountUtil;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
im... |
package org.nutz.boot.starter.mongodb.plus;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.PropertiesProxy;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.boot.annotation.PropDoc;
/**
* @author wizzer@qq.com
*/
@IocBean
public class ZMongoStarter {
... |
package com.bassett.health_tracker_app;
import org.junit.Test;
import static org.junit.Assert.*;
public class MainActivityTest {
@Test
public void lifeTest() {
assertEquals("hello world",MainActivity.life);
}
} |
package ro.rasel.spring.microservices.component.swagger.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ro.rasel.spring.microservices.common.utils.connection.securityclient.Sec... |
package module573packageJava0;
import java.lang.Integer;
public class Foo140 {
Integer int0;
public void foo0() {
new module573packageJava0.Foo139().foo6();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
public void foo4() {
... |
package com.example.smartmuseum.view.startpage;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bund... |
package eu.bcvsolutions.idm.connector.freeipa;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util... |
package de.pascalwagler.gso.vis;
import java.awt.Color;
import java.util.Arrays;
/**
* ColorMap: Classical linear LUT, with support for non-applicable values (
* {@link Double#NaN}) and missing values.
* <p>
* Associate a color to a scalar number. The color is taken from a linear
* interpolation within... |
public class ComissionedEmployee extends Employee {
private double baseSalary;
private double comissionRate;
private double salesVolume;
public ComissionedEmployee(Stirng name, double salary, double rate, double vol) {
super(name);
baseSalary = salary;
comissionRate = rate;
... |
package com.classic.core.event;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Activity事件类型
*
* @author classic
* @version v1.0, 2018/4/22 下午4:48
*/
@IntDef({ActivityEvent.CREATE, ActivityEvent.START, ActivityEvent.RESTART, Act... |
/*
* Copyright 2018. Gatekeeper Contributors
*
* 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... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.securityinsights.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.az... |
package jp.dodododo.dao.issue;
import static jp.dodododo.dao.unit.UnitTestUtil.*;
import static org.junit.Assert.*;
import java.text.ParseException;
import java.util.List;
import jp.dodododo.dao.Dao;
import jp.dodododo.dao.annotation.Bean;
import jp.dodododo.dao.annotation.Column;
import jp.dodododo.dao.config.DaoCo... |
package com.nirvana.code.task;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
/**
* This TaskQueue is used to queue up tasks that are supposed to run sequentially, which helps avoid problems related to thread-safety.
* @author Kris.Zhang
* 2016-09-26 10:18:20
*/
public... |
package org.xcolab.service.admin.web;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.powermock.modules.junit4.PowerMockRunner;
import org... |
package io.digitalstate.stix.validation.sequences;
import io.digitalstate.stix.validation.groups.DefaultValuesProcessor;
import io.digitalstate.stix.validation.groups.ValidateIdOnly;
import javax.validation.GroupSequence;
@GroupSequence({DefaultValuesProcessor.class, ValidateIdOnly.class})
public interface SequenceV... |
package org.cache2k.core;
/*
* #%L
* cache2k core implementation
* %%
* Copyright (C) 2000 - 2020 headissue GmbH, Munich
* %%
* 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
*
* ... |
/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.sentry.hdfs.service.thrift;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.Schem... |
package com.github.mozvip.theaudiodb.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown=true)
public class Audi... |
package com.fairy.cloud.seckill.component.trade.alipay.model.builder;
import com.google.gson.annotations.SerializedName;
import org.apache.commons.lang.StringUtils;
public class AlipayTradeCancelRequestBuilder extends RequestBuilder {
private BizContent bizContent = new BizContent();
@Override
public Bi... |
package com.rethinkdb.ast;
import com.rethinkdb.Mapifier;
import com.rethinkdb.gen.ast.*;
import com.rethinkdb.gen.exc.ReqlDriverCompileError;
import com.rethinkdb.gen.exc.ReqlDriverError;
import com.rethinkdb.model.Arguments;
import com.rethinkdb.model.MapObject;
import com.rethinkdb.model.ReqlLambda;
import java.ti... |
class TypeParameter<B> {
public <V> void doNothing() { }
}
|
package Nov2020_GfG;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class _026MergeTwoBSTs {
public static void main(String[] args) {
System.out.println(
findLongestWord("abpcplea", new ArrayList<String>(Arrays.asList("ale", "apple", "monkey", "plea"))));
System.out.print... |
/*
* Copyright (c) 2015, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditi... |
/*
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 ... |
package it.vige.businesscomponents.transactions.distributed;
public enum Format {
BOLD, ITALIC, UNDERLINE
}
|
/*
* Copyright 2012-2018 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 engine.UI;
public class Bounds {
public float x,y,w,h;
public Bounds(float x, float y, float w, float h) {
this.x = x;
this.y = y;
this.w = w;
this.h = h;
}
}
|
package org.happykit.happyboot.sys.service;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.extension.service.IService;
import org.happykit.happyboot.model.model.ModifyNodeModel;
import org.happykit.happyboot.sys.model.... |
package org.sfvl.demo;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.function.BiConsumer;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
class ProductGenerator {
static <T> List<Product> generate(BiConsumer<Product, T> setter, T... values) {
... |
package com.sequenceiq.environment.network.service.extended;
public class MlxSubnetConstants {
public static final String MLX_SUBNET_MASK = "24";
public static final int MLX_SUBNET_IP_OFFSET = 3;
public static final int MLX_SUBNET_IP_COUNT = 32;
private MlxSubnetConstants() {
}
}
|
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gen... |
package org.kiwiproject.dropwizard.util.health;
import io.dropwizard.util.Duration;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.kiwiproject.base.KiwiEnvironment;
import org.kiwiproject.dropwizard.u... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.playws.v2_0;
import io.opentelemetry.context.Context;
import org.reactivestreams.Publisher;
import play.shaded.ahc.org.asynchttpclient.handler.StreamedAsyncHandler;
public class Str... |
package co.com.yourcompany.certification.nameproject.tasks;
import co.com.yourcompany.certification.nameproject.exceptions.TechChallenge;
import co.com.yourcompany.certification.nameproject.util.challengeEnvironment.TechFrontQA;
import co.com.yourcompany.certification.nameproject.util.properties.Techproperties;
impor... |
package com.spring.cloud;
import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springfra... |
/*
* Copyright 2017 The Closure Compiler Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
package com.example.android.quakereport;
import android.text.TextUtils;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.n... |
/*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
/*
* Copyright 2012-2018 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 l2f.gameserver.model.quest;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.ap... |
package ghost.framework.context.environment;
/**
* @Author: 郭树灿{gsc-e590}
* @link: 手机:13715848993, QQ 27048384
* @Description:
* @Date: 20:48 2019/11/21
*/
public class EnvironmentInvalidException extends EnvironmentException{
private static final long serialVersionUID = -6165100532247191345L;
/**
*... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.geomapa.importer;
import br.com.geomapa.graphic.cad.geo.GeodesicPoint;
/**
*
* @author paulocanedo
*/
public interface PointImporterHandle {
public void startImport();
public void handlePoin... |
package com.djs.learn.wsclient.session_manager;
import javax.xml.ws.WebFault;
/**
* This class was generated by Apache CXF 2.4.4
* 2011-11-10T11:36:22.596+08:00
* Generated source version: 2.4.4
*/
@WebFault(name = "fault", targetNamespace = "http://www.bea.com/wsdl/wlcp/wlng/session_manager/service")
public c... |
package com.kjyl.dao;
import com.kjyl.config.Mybaties.MyMapper;
import com.kjyl.pojo.Apply;
/**
* <p> Mapper Class</p>
* @author sheryl
*
*/
public interface ApplyMapper extends MyMapper<Apply>{
}
|
/*
* Copyright 2012-2017 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.lsieben.retroscript.lang.constructs;
import com.lsieben.retroscript.lang.exceptions.errors.InvalidModuleTypeException;
import com.lsieben.retroscript.lang.validators.ModuleValidator;
import com.lsieben.retroscript.lang.visitors.ModuleVisitor;
import com.lsieben.retroscript.parser.generated.RetroScriptParse... |
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
*
* @author LevelX2
*/
public final class SpeedVsCunning extends ExpansionSet {
private static final SpeedVsCunning instance = new SpeedVsCunning();
public static SpeedVsCunning getInstanc... |
/*
* Minecraft Forge
* Copyright (c) 2016-2020.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation version 2.1
* of the License.
*
* This library is distributed in the hope that it... |
package com.xiaomi.addon.preferences;
import android.content.Context;
import android.util.AttributeSet;
public class SecureSettingCustomSeekBarPreference extends CustomSeekBarPreference {
public SecureSettingCustomSeekBarPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
... |
/*
* Copyright 2014 Alexey Andreev.
*
* 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 David Salter david@developinjava.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 a... |
package caldera.common.brew.generic.component.effect.effects.conversion;
import caldera.common.block.cauldron.Cauldron;
import caldera.common.brew.BrewTypeDeserializationContext;
import caldera.common.brew.generic.GenericBrew;
import caldera.common.brew.generic.component.effect.Effect;
import caldera.common.brew.gener... |
package ve.com.sios.gpff.message;
import ve.com.sios.gpff.sockets.CharacterField;
import ve.com.sios.gpff.sockets.DecimalField;
import ve.com.sios.gpff.sockets.MessageField;
import ve.com.sios.gpff.sockets.MessageRecord;
import java.math.BigDecimal;
import java.util.Hashtable;
/**
* Class generated by AS/400 CRTCLAS... |
package com.nathan.arch.storage.dvb.impl;
import com.nathan.arch.storage.dvb.ICallbackEpgMethod;
import com.nathan.arch.storage.tools.EmptyTool;
import java.util.concurrent.TimeUnit;
public class EpgMethodFromDVB implements ICallbackEpgMethod {
private static final long DAY_SECOND = TimeUnit.DAYS.toSeconds(1);
... |
/**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... |
package org.albianj.persistence.impl.context;
import java.util.List;
import java.util.Map;
import org.albianj.logger.IAlbianLoggerService;
import org.albianj.persistence.db.AlbianDataServiceException;
import org.albianj.persistence.db.ISqlParameter;
import org.albianj.persistence.impl.db.SqlParameter;
import org.albi... |
package org.osiam.addons.administration.controller;
import javax.inject.Inject;
import org.osiam.addons.administration.model.session.GeneralSessionData;
import org.osiam.addons.administration.util.RedirectBuilder;
import org.osiam.client.OsiamConnector;
import org.osiam.client.oauth.Scope;
import org.springframework.... |
package br.edu.uepb.nutes.ocariot.data.model.ocariot;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
@Keep
public class Weight implements Parcelable {
@Se... |
package nz.co.example.dev.integration.calls;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;
import nz.co.example.dev.domain.logic.CircuitConfigData;
import nz.co.example.dev.domain.model.SipInterface;
import nz.co.example.dev.integration.NNCService;
import org.slf4j.Logger;
im... |
package com.dfal.jobtracker.beans;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import org.primefaces.event.FlowEvent;
import com.dfal.jobtracker.beans.JobBean;
import c... |
package za.ac.unisa.lms.tool.eresources.webapp.controller;
import org.appfuse.Constants;
import org.appfuse.model.User;
import org.appfuse.service.UserManager;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttpServletRequest;
import org.sp... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.external_intents;
import android.Manifest.permission;
import android.app.Activity;
import android.content.ActivityNotFoun... |
package com.engineersk.grocerylistapp;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will exec... |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... |
package com.gerald.comsciexploration.algorithms.linkedlist;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
public class Cell <T>{
private Map<String, Object> meta = new HashMap<>();
private T value;
private Cell<T> next;
public Cell(T value) {
this.value = value;
... |
/*
* Copyright 2021-2021 Alfresco Software, 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 applicable ... |
package main.java.de.phip1611.math.matrices;
/*
* AUTHOR: PHILIPP SCHUSTER
* Web: https://phip1611.de
* Twitter: https://twitter.com/phip1611
*
* This project on GitHub:
* https://github.com/phip1611/Matrices-Java
*
* License: MIT-License
* https://github.com/phip1611/Matrices-Java/blob/master/LI... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.actionSystem;
import com.intellij.diagnostic.LoadingState;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.components.ServiceMana... |
package org.apache.ofbiz.content.content;
import lombok.experimental.FieldNameConstants;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
import org.apache.ofbiz.entity.GenericValue;
import java.util.List;
import java.util.ArrayList;
/**
* Content Approval
*/
@Fiel... |
package com.ocheck.api.controllers;
import com.ocheck.api.models.Message;
import com.ocheck.api.services.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import java.securit... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.tensor.functions;
import com.google.common.collect.ImmutableList;
import com.yahoo.tensor.IndexedTensor;
import com.yahoo.tensor.Tensor;
import com.yahoo.tensor.TensorAddress;
import com.yahoo.ten... |
public class Prog7
{
public static void main()
{
int i=3,ctr=2,j=0,flag=0;
double x=0;
while(ctr<=10001)
{
x=Math.sqrt(i);
for(j=3;j<=x;j=j+2)
{
if(i%j==0)
{
flag=1;
break;
}
}
... |
package main.java.testjavafound.concurrency;//: concurrency/AtomicEvenGenerator.java
// Atomic classes are occasionally useful in regular code.
// {RunByHand}
import java.util.concurrent.atomic.AtomicInteger;
public class AtomicEvenGenerator extends IntGenerator {
private AtomicInteger currentEvenValue =
new At... |
package de.longri.cachebox3;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.util.Log;
import com.badlogic.gdx.files.FileHandle;
import java.io.IOException;
import java.io.RandomAccessFile;
public class ExtAudioRecorder {
public static final ... |
package com.bitdubai.fermat_dap_android_desktop_sub_app_manager_bitdubai;
import android.app.Fragment;
import android.app.Service;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.vie... |
package com.cymonevo.nova.eureka.config.sp;
import com.cymonevo.nova.eureka.config.Config;
public class SessionConfig {
public static final String BASE_KEY = String.format("%s%s", Config.PACKAGE_NAME, ".session");
public static final String KEY_USER_UUID = "USER_UUID";
public static final String KEY_USER... |
package org.aksw.rdfunit.io.writer;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import lombok.extern.slf4j.Slf4j;
import org.aksw.jena_sparql_api.core.QueryExecutionFactory;
import org.aksw.rdfunit.io.IOUtils;
import org.aksw.rdfunit.services.PrefixNSService;
imp... |
/*
* Copyright 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 applica... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* Copyright 2011 Google 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 i... |
/*
* 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 ... |
/**
* Unit tests for API types.
*/
package org.librarysimplified.audiobook.tests; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.