text
stringlengths
7
995k
/* * Java.java * * Copyright (C) 2002-2006 Peter Graves, Andras Simon * $Id$ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any...
package org.summerframework.core.text.parsing.token; import org.springframework.core.convert.ConversionService; import java.util.Iterator; public class GenericTokenizer<T> extends Tokenizer<T, String> { private final Class<T> targetType; private final ConversionService service; public GenericTokenizer(...
package seedu.siasa.storage; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeParseException; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import seedu.siasa.commons.exceptions.IllegalValueException; i...
package com.scylladb.cdc.replicator.operations.update; import com.datastax.driver.core.ColumnMetadata; import com.datastax.driver.core.ConsistencyLevel; import com.datastax.driver.core.DataType; import com.datastax.driver.core.Session; import com.datastax.driver.core.Statement; import com.datastax.driver.core.TableMet...
package edu.umd.cs.findbugs.detect; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.collection.IsEmptyIterable.emptyIterable; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; import java.nio.file.Paths; import org.junit.Rule; import org.junit.Test; import ...
package me.saket.dank.ui.preferences; import android.content.res.Resources; import android.graphics.Typeface; import android.os.Build; import androidx.annotation.FontRes; import androidx.annotation.NonNull; import androidx.annotation.RequiresApi; import com.f2prateek.rx.preferences2.Preference; import com.google.aut...
/* * Copyright 2015-present Open Networking Laboratory * * 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 appli...
package com.top.Ertebat.fragment; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.EnumMap; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.ut...
package amazon.robot.test; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Solution { /** * x position to the robot m...
/** * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ /** * Provide the ability to extract data using textual expressions. */ package com.opengamma.strata.report.framework.expression;
/* * 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 ...
/* * Copyright 2012-2018 MarkLogic 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...
package ru.job4j.start; import ru.job4j.models.Item; import ru.job4j.models.ItemGetString; /** * Класс вывода данных в массив. * @author Vladimir Prilepskiy * @version 1 * @since 22.12.2016 */ public class StubOutput implements Output { /** * Массив ответов. */ private String[] asks = null; /** * Выве...
package io.github.strikerrocker; import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents; import net.minecraft.block.BlockState; import net.minecraft.block.Blocks; import net.minecraft.block.SnowBlock; import net.minecraft.server.world.ChunkHolder; import net.minecraft.server.world.ServerWorld; import net.m...
/* * Copyright © 2016 Cask Data, 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 t...
package org.ovirt.mobile.movirt.util; import java.util.Comparator; public class NullPriorityComparator implements Comparator<Comparable> { @Override public int compare(Comparable o1, Comparable o2) { if (o1 == null) { return o2 == null ? 0 : -1; } else { return o2 == n...
/* MIT License Copyright (c) 2021 Kumar Chandra Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
/* * 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 n...
/* * Barebones implementation of displaying camera preview. * * Created by lisah0 on 2012-02-24 */ package com.example.lb.lbrocker.zbar.camera; import android.content.Context; import android.hardware.Camera; import android.hardware.Camera.AutoFocusCallback; import android.hardware.Camera.PreviewCallback; import a...
/****************************************************************************** * Compilation: javac InteractivePercolationVisualizer.java * Execution: java InteractivePercolationVisualizer n * Dependencies: PercolationVisualizer.java Percolation.java * StdDraw.java StdOut.java * * This pro...
package external_module_0870.a; import java.nio.file.*; import java.sql.*; import java.util.logging.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et e...
package com.varitoooo.criteria.project.domain.criteria; public abstract class ProjectStringCriteria { public boolean isSatisfiedBy(String value, String projectValue) { return projectValue != null && projectValue.contains(value); } }
package com4j; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Virtual table index of the method. * * <p> * Java doesn't let us obtain the ordinal of a method, * so we need to annotate that info...
/* * Copyright 2016 higherfrequencytrading.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 la...
package org.radargun; import org.radargun.state.MasterState; /** * A master stage is a stage that only gets executed on the master. E.g. report generation is suitable for being a * master stage, as it is only the master having access to all the reports generated by the nodes. * * @author Mircea Markus &lt;Mircea....
/** * Copyright 2015 Hello NMS. All rights reserved. */ package com.hellonms.platforms.emp_orange.server.invoker.snmp; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.net.InetAddress; import java.util.ArrayList; import java.util.Comparator; import java.util.List; imp...
/** * Generated with Acceleo */ package org.wso2.integrationstudio.gmf.esb.parts.impl; // Start of user code for imports import java.util.ArrayList; import java.util.List; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent; import org.eclipse.emf.eef...
/* * Copyright 2015-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.rjhister.app.service.dto; import com.rjhister.app.config.Constants; import com.rjhister.app.domain.Authority; import com.rjhister.app.domain.User; import javax.validation.constraints.*; import java.time.Instant; import java.util.Set; import java.util.stream.Collectors; /** * A DTO representing a user, ...
/** * Automatically generated file. DO NOT MODIFY */ package gr.scify.icsee.test; public final class BuildConfig { public static final boolean DEBUG = Boolean.parseBoolean("true"); public static final String APPLICATION_ID = "gr.scify.icsee.test"; public static final String BUILD_TYPE = "debug"; public stati...
/******************************************************************************* * Copyright (C) 2016 Black Duck Software, Inc. * http://www.blackducksoftware.com/ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this w...
package org.odk.collect.android.formmanagement; import android.content.Context; import androidx.test.core.app.ApplicationProvider; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.odk.collect.android.R; import org.odk.co...
/* * FactSet Private Markets API * FactSet Private Markets API encompasses Private Company Financials data to start. Private Company firmographics can be found in the FactSet Entity API. The future plans of this service will include additional Private Markets data, such as Private Equity/Venture Capital. * * The v...
/* * Copyright 2007-2017 Michele Mostarda ( michele.mostarda@gmail.com ). * 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...
package com.pcz.neo4j; import cn.hutool.json.JSONUtil; import com.pcz.neo4j.model.Lesson; import com.pcz.neo4j.model.Student; import com.pcz.neo4j.service.NeoService; import lombok.extern.slf4j.Slf4j; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import java.util.List; import j...
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.jms; import static io.opentelemetry.api.trace.Span.Kind.CONSUMER; import static io.opentelemetry.api.trace.Span.Kind.PRODUCER; import static io.opentelemetry.instrumentation.api.deco...
package com.diguage.truman.netty.tcp; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; import java.util.UUID; import static java.nio.charset.StandardCharsets.UTF_8; /** * @author D瓜哥, https://www.dig...
/** * Copyright (c) 2013, impossibl.com * 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 of cond...
/* * Copyright 2017-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...
/** * Copyright (C) 2014-2018 Philip Helger (www.helger.com) * philip[at]helger[dot]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/LICE...
package com.amaljoyc.kafka4hack.producer; import org.apache.kafka.clients.producer.ProducerConfig; import org.apache.kafka.common.serialization.StringSerializer; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation....
package mx.rmm.simpleconcise.roo.web.util; import java.util.Iterator; import java.util.Map; import javax.faces.FacesException; import javax.faces.application.NavigationHandler; import javax.faces.application.ViewExpiredException; import javax.faces.context.ExceptionHandler; import javax.faces.context.ExceptionHandler...
/* * 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 net.minecraft.entity.ai; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.ai.EntityAIBase; import net.minecraft.world.World; public class EntityAIOcelotAttack extends EntityAIBase { World theWorld; EntityLiving theEntity; EntityLiving...
package com.zql.app_ji.Adapter.FavoriteAdapter; import android.content.Context; import android.content.Intent; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.view.ContextMenu; import android.view.LayoutInflater; import android.view.View; import android.view.Vie...
package loon.font; import loon.canvas.LColor; import loon.geom.PointI; import loon.opengl.GLEx; import loon.opengl.LSTRFont; public class ShadowFont implements IFont { private boolean withShadow = false; private LColor shadowColor = new LColor(0f, 0f, 0f, 1f); private float shadowAlpha = 1f; private LSTRFont str...
/* * 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 n...
package com.track.trackxtreme; import android.location.Location; import com.track.trackxtreme.data.TrackStatus; import com.track.trackxtreme.data.track.Track; import com.track.trackxtreme.data.track.TrackPoint; import com.track.trackxtreme.data.track.TrackRecord; import java.util.ArrayList; import java.util.Calendar...
package io.ceph.rgw.client.model; import io.ceph.rgw.client.ObjectClient; import io.ceph.rgw.client.action.ActionFuture; import io.ceph.rgw.client.action.ActionListener; import java.nio.charset.Charset; /** * Created by zhuangshuo on 2020/3/1. */ public class PutStringRequest extends GenericPutObjectRequest<String...
package mage.cards.e; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.OneShotEffect; import mage.cards.Card; import mage.cards.CardImpl; import mage.cards.Card...
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.BQCorporateActionsExecuteInputModelCorporateActionsInstanceRecord; import org.bian...
/* */ package com.a.a.g; /* */ /* */ import java.io.UnsupportedEncodingException; /* */ /* */ /* */ public class a /* */ { /* */ public static final String a = "iso-2022-jp"; /* */ public static final String b = "ASCII"; /* */ public static final String c = "Windows-31J"...
package es.urjc.code.daw; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; @Controller public class AnuncioController { private List<Anuncio> @PostMappin...
package tconstruct.library.tools; import ic2.api.item.IBoxable; import ic2.api.item.ICustomElectricItem; import java.lang.reflect.Field; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Random; import mods.battlegear2.api.weapons.IBattlegearWeapon; im...
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University // Copyright (c) 2011, 2012 Open Networking Foundation // Copyright (c) 2012, 2013 Big Switch Networks, Inc. // This library was generated by the LoxiGen Compiler. // See the file LICENSE.txt which should have been included in the sour...
package com.dianping.cat.report.page.cdn.graph; import java.util.Date; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import com.dianping.cat.Constants; import com.dianping.cat.consumer.metric.model.entity.MetricItem; import com.dianping.cat.consumer.metric...
package com.example.studentappmessenger; import androidx.annotation.NonNull; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.FragmentTransaction; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; im...
package com.codepath.apps.restclienttemplate.models; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.parceler.Parcel; @Parcel public class Tweet { public String body; public long uid; //database ID for tweet public User user; public String createdAt; ...
package org.jeecg.modules.system.controller; import javax.servlet.http.HttpServletRequest; import org.apache.commons.lang.StringUtils; import org.jeecg.common.api.vo.Result; import org.jeecg.modules.system.mapper.SysDictMapper; import org.jeecg.modules.system.model.DuplicateCheckVo; import org.springframework.beans.f...
package com.test.maps; import java.sql.Date; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.UUID; import com.test.maps.model.Maps; import com.test.maps.repository.MapsRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframewo...
package org.powertac.rachma.broker; import org.powertac.rachma.powertac.broker.exception.BrokerNotFoundException; import java.util.Map; public interface BrokerTypeRepository { BrokerType findByName(String name) throws BrokerNotFoundException; Map<String, BrokerType> findAll(); boolean has(String name)...
package com.huaweicloud.sdk.iot.device.demo; import com.huaweicloud.sdk.iot.device.IoTDevice; import com.huaweicloud.sdk.iot.device.client.requests.DeviceMessage; import com.huaweicloud.sdk.iot.device.transport.ActionListener; import com.huaweicloud.sdk.iot.device.transport.RawMessage; import org.apache.logging.log4j...
package com.ixyf; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ChanServiceApplication { public static void main(String[] args) { SpringApplication.run(ChanServiceApplication.class, args); } ...
/******************************************************************************* * Copyright 2015 Technology Blueprint 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:...
/* * Copyright (c) 2020-2021 CertifAI Sdn. Bhd. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * Unless required by applicable law or agreed to in writing, software * d...
/** * 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 compli...
package cn.springcloud.book.feign; import com.nepxion.discovery.common.constant.DiscoveryConstant; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springfram...
package com.permissionx.app; import android.Manifest; import android.os.Bundle; import android.view.View; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import com.permissionx.app.databinding.ActivityMainJavaBinding; import com.permissionx.guolindev.PermissionX; import com.permissionx....
/* * MIT License * * Copyright (c) 2021 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...
package com.ivelum.exception; public class CubException extends Exception { public CubException(String message) { super(message); } public CubException(String message, Throwable cause) { super(message, cause); } }
/******************************************************************************* * 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 * * Unle...
package com.github.sgdc3.telegramnotificationbot.notification; import lombok.AllArgsConstructor; import lombok.Getter; import me.philippheuer.twitch4j.model.Stream; @Getter @AllArgsConstructor public class TwitchStream { private final static String CHANNEL_BASE_URL = "https://www.twitch.tv/"; private long i...
package br.com.pokemon.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; import lombok.NoArgsConstructor; @NoArgsConstructor @ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "The city entered was not found in the Weather API") public class Ci...
package com.dahafa.hais.model; import java.awt.geom.Path2D; import java.io.Serializable; import java.util.List; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.J...
/* * 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.coyotesong.coursera.cloud.domain; import javax.persistence.Entity; import javax.persistence.Id; /** * Static lookup information on unique carriers, from L_UNIQUE_CARRIERS_ID.csv * * @author bgiles */ @Entity public class LookupUniqueCarrier { private String code; private String description; ...
/* * The MIT License * * Copyright 2018 Honestleaf<Cheng.Ye.HL@hotmail.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 rig...
// PART OF THE MACHINE SIMULATION. DO NOT CHANGE. package nachos.machine; import nachos.security.*; import nachos.threads.KThread; import java.util.Vector; /** * A TCB simulates the low-level details necessary to create, context-switch, * and destroy Nachos threads. Each TCB controls an underlying JVM Thread * o...
/* * 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...
/* * Copyright © 2018-2019 Cask Data, 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 agr...
package com.subra.aem.rjs.mailer.utils; /** * @author Raghava Joijode * */ public enum EmailSenderType { NOREPLY, HELP, GREETINGS, CONNECT, REACHUS, OFFICES, REQUEST, JENKINS; }
package fuzzy4j.sets; /** * Wraps a function inside the unit interval [0, 1] * * Defined for the function f(x) * <code>U_W(x) = min(1, max(0, f(x)))</code> * * @author Soren A. Davidsen <sorend@gmail.com> */ class UnitIntervalWrapperFunction implements FuzzyFunction { private FuzzyFunction inner; ...
package jsky.app.ot.tpe; /** * Image feature categories */ public enum TpeImageFeatureCategory { target("Target"), fieldOfView("Field Of View"), ; private final String display; TpeImageFeatureCategory(String display) { this.display = display; } public String displayName() { ...
package itx.elastic.service.dto; import java.util.Objects; public class IndexName { private final String name; public IndexName(String name) { Objects.requireNonNull(name); this.name = name; } public String getName() { return name; } @Override public boolean equ...
package xeta.modules; import org.junit.Test; import xeta.library.Config; import static org.junit.Assert.*; public class AddressTest { @Test public void testRead() { final String read = Address.read("5d1KYTwseBGzwuroT3wm5793pZ1fAXRmY4e9tBNErwYk"); System.out.println(read); assertEquals("{\"balance\":{\"addre...
/* * #%L * SCIFIO fork of the Java Advanced Imaging Image I/O Tools API Core. * %% * Copyright (C) 2008 - 2016 Open Microscopy Environment: * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. * - University of Dundee * %% * Redistribution and use in source and binary forms...
package si.bismuth.mixins; import com.mojang.authlib.GameProfile; import net.minecraft.block.Block; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.init.Blocks; import net.minecraft.server.management.PlayerList...
/* * 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 (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
package project1.service; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import or...
package com.checkpoint.andela.notekeeper.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.PopupMenu; import android.widget.TextView; import com.c...
package Programs; import java.util.Random; import java.util.Scanner; public class NumberGame { public static void main(String[] args) { Scanner s=new Scanner(System.in); Random r=new Random(); int random= r.nextInt(100); boolean aswon=false; System.out.println("You need to guess a number between 0 to 100...
/******************************************************************************* * 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...
package <%=packageName%>; import <%=packageName%>.config.Constants; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfiguration; import org.springframework.boot.actuate.autoconfigure.Metr...
/* * 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 seedu.address.model.util.predicate; import java.util.List; import seedu.address.commons.util.StringUtil; import seedu.address.model.patient.Patient; /** * Tests that a {@code Patient}'s attached {@code NextOfKin} {@code Name} matches any of the keywords given. */ public class KinAddressContainsKeywordsPred...
package fitperson.ritesh.com.thefitperson; import android.content.Intent; import android.media.MediaPlayer; import android.net.Uri; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.wid...
/* * Copyright (C) 2015 Intel 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...
/* * ApplicationInsights-Java * Copyright (c) Microsoft Corporation * All rights reserved. * * MIT License * 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, inclu...