text
stringlengths
7
1.01M
package modern.challenge.repository; import java.io.Serializable; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Random; import java.util.logging.Level; import java.util.logging.Logger; import javax.persistence.EntityManager; import javax.persistence.Persi...
/* * 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 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...
/* * 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 org.asynchttpclient.ws; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.FutureListener; /** * A listener for result of WebSocket write operations. */ public interface WebSocketWriteCompleteListener extends FutureListener<Void> { /** * Is called when a write operation comple...
package coffeeMachine; public enum CoffeeSize { SMALL(50, 50), NORMAL(100, 75), DOUBLE(200, 100); private int dosage; private int price; CoffeeSize(int dosage, int price) { this.dosage = dosage; this.price = price; } public int getDosage() { return this.dosage; } ...
package io.swagger.client.api; import io.swagger.client.CollectionFormats.*; import retrofit.Callback; import retrofit.http.*; import retrofit.mime.*; import io.swagger.client.model.Order; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public interface StoreApi {...
package de.unihamburg.informatik.nlp4web.tutorial.tut5.feature; import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token; import org.cleartk.ml.feature.extractor.CleartkExtractor; import org.cleartk.ml.feature.extractor.CoveredTextExtractor; import org.cleartk.ml.feature.extractor.FeatureExtractor1; import org...
package uk.gov.hmcts.reform.bulkscanccdeventhandler.caseupdate.controllers; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import or...
/* * Copyright 2007 skynamics AG * * 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 applic...
package com.webmvc.test.handler.beanname; import com.webmvc.test.handler.adpater.Control; import javax.servlet.http.HttpServletRequest; import java.util.HashMap; import java.util.Map; /** * @projectName: spring * @package: com.webmvc.test.handler.beanname * @className: DControl * @description: * @author: zhi *...
/* * Copyright 2016-2018 shardingsphere.io. * <p> * 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 l...
/** * This file is part of Words With Crosses. * * Copyright (this file) 2014 Wolfgang Groiss * * This file 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 3 of the License, or (at your...
package snownee.cuisine.api.prefab; import snownee.cuisine.api.Effect; import snownee.cuisine.api.Form; import snownee.cuisine.api.MaterialCategory; import snownee.cuisine.internal.material.MaterialWithEffect; import java.util.*; /** * Simple builder for a material */ public class MaterialBuilder { private fin...
package cn.xpbootcamp.tdd; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; public class GameEngineTest { private GameEngine gameEngine; private...
package gui; import javax.swing.table.DefaultTableModel; public class HeapTree{ static HeapTreeNode root; static int length; static HeapArray ha; static Object[] row=new Object[6]; public static DefaultTableModel model=new DefaultTableModel(); static Object[] columns={"Employee NO.","First Na...
package com.google.api.ads.dfp.jaxws.v201306; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * The action used for disapproving {@link Order} objects. All {@link LineItem} * objects within ...
package com.semantalytics.stardog.kibble.geo.geohash; import com.semantalytics.stardog.kibble.AbstractStardogTest; import com.stardog.stark.Literal; import com.stardog.stark.Value; import com.stardog.stark.query.BindingSet; import com.stardog.stark.query.SelectQueryResult; import org.junit.Test; import static org.ass...
package com.example.weekthree.controller.response; import lombok.*; @Setter @Getter @Builder @NoArgsConstructor @AllArgsConstructor public class MovieCreateResponse { private Long id; public static MovieCreateResponse convertToMovieResponse(Long id ){ return MovieCreateResponse.builder() ...
package org.traud.projecteuler; import java.math.BigInteger; /** * Created by traud on 4/14/2017. */ public class P592_FactorialDigits2 { public static BigInteger fac(long n) { BigInteger f = BigInteger.ONE; for (long k = 1; k <= n; ++k) { f = f.multiply(BigInteger.valueOf(k)); ...
/** * 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) 2016-2019 人人开源 All rights reserved. * <p> * https://www.renren.io * <p> * 版权所有,侵权必究! */ package io.renren.common.utils; /** * 常量 * * @author Mark sunlightcs@gmail.com */ public class Constant { /** * 超级管理员ID */ public static final int SUPER_ADMIN = 1; /** * 当前页...
package com.playzone.kidszone.adaptors; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.res.Configuration; import android.net.Uri; import android.os.Build; import android.view.LayoutInflater; import android.view.View...
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
package curso.modelo; public class Cliente { private Long codigo; private String nome; public Long getCodigo() { return codigo; } public void setCodigo(Long codigo) { this.codigo = codigo; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } }
package com.xiaojukeji.kafka.manager.service.service; import com.xiaojukeji.kafka.manager.common.bizenum.ModuleEnum; import com.xiaojukeji.kafka.manager.common.bizenum.OperateEnum; import com.xiaojukeji.kafka.manager.common.entity.dto.rd.OperateRecordDTO; import com.xiaojukeji.kafka.manager.common.entity.pojo.OperateR...
/* * 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 ...
package io.xunyss.commons.exec; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; /** * * @author XUNYSS */ public final class Environment { /** * Current process environment variables. */ private static final Environment currentEnvironment = new Environment(true);...
package com.larissa.Aula54; public class Formulario { enum Genero{ FEMININO('F'), MASCULINO('M'); private char valor; Genero(char valor){ this.valor = valor; } } private String nome; private Genero genero; }
package challenges.utilitiesTest; import challenges.utilities.AnimalShelter; import challenges.utilities.Cat; import challenges.utilities.Dog; import org.junit.Test; import static org.junit.Assert.*; public class AnimalShelterTest { @Test public void newAnimalShelterTest(){ AnimalShelter animalShelter =...
package java.sql; /* * #%L * Matos * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2010 - 2014 Orange SA * %% * 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....
/* * Copyright 2016 Goldman Sachs. * * 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 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...
package com.linkedin.android.learning_android_accessibility.activities; import android.content.Context; import android.content.Intent; import android.support.annotation.IdRes; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.os.Bundle; import android.view...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
package com.wemirr.framework.db.mybatis; import com.baomidou.mybatisplus.extension.service.IService; /** * @author battcn */ public interface SuperService<T> extends IService<T> { }
/* * 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 ...
package com.nonstoppvp.core.utils; import com.mongodb.BasicDBObject; import com.nonstoppvp.core.NSPCore; import com.nonstoppvp.core.profiles.NSPPlayer; import org.bson.Document; import org.bukkit.Bukkit; import java.util.Map; public class PlayerUtils { public static void handleJoin(final NSPPlayer player) {...
// ============================================================================ // // Copyright (C) 2006-2021 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
package org.coody.framework.serializer; import org.coody.framework.container.ThreadSetContainer; import org.coody.framework.serializer.iface.AbstractSerializer; public class ArraySerializer extends AbstractSerializer<Object[]> { @Override public String adapt(Object[] target) { if (target == null) { ...
/* * 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 applicable l...
package org.jembi.bsis.model.reporting; import java.util.Objects; public class Cohort { private String category; private Object option; private Comparator comparator; public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } pub...
package com.potato.boot.config.rocketmq; import org.apache.commons.lang3.StringUtils; import org.apache.rocketmq.client.exception.MQBrokerException; import org.apache.rocketmq.client.exception.MQClientException; import org.apache.rocketmq.client.producer.DefaultMQProducer; import org.apache.rocketmq.client.producer.Lo...
package transgenic.lauterbrunnen.lateral.example.simplehazelcast.libdomain; /** * Created by stumeikle on 28/05/16. */ public class SubjectDayTime { private String subject; private Day day; private int startHour; private int endHour; }
package org.cthul.strings.plural; import java.util.*; import java.util.ResourceBundle.Control; import org.cthul.strings.Pluralizer; /** * Manages {@linkplain Pluralizer pluralizers} for different * {@linkplain Locale locales}. * * @author Arian Treffer */ public class PluralizerRegistry { pu...
package org.qiunet.utils.scanner; import com.google.common.collect.Lists; import org.qiunet.utils.args.ArgsContainer; import org.qiunet.utils.async.LazyLoader; import org.qiunet.utils.exceptions.CustomException; import org.qiunet.utils.reflect.ReflectUtil; import org.qiunet.utils.scanner.anno.AutoWired; import org.qiu...
package com.threathunter.mock.simulator; import com.threathunter.model.Event; /** * */ public class CompositeEvent { private Event parent; private Event child; public CompositeEvent() { } public Event getParent() { return parent; } public void setParent(Event parent) { ...
/**Copyright (c) 2017, AT&T Intellectual Property. All other rights reserved.**/ package com.att.jsoneditor; import java.util.Enumeration; import java.util.Iterator; import java.util.Map.Entry; import javax.swing.tree.DefaultMutableTreeNode; import org.apache.commons.lang3.StringUtils; import com.google.gson.JsonE...
package com.jacckx.gulimall.coupon.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.math.BigDecimal; import java.io.Serializable; import java.util.Date; import lombok.Data; /** * 商品阶梯价格 * * @author Jack * @email jk.chen1104@gmail.com ...
package net.starlark.java.eval; import java.util.Iterator; /** * A StarlarkIterator value is StarlarkIterable and may be iterated by Starlark language constructs * such as {@code for} loops, list and dict comprehensions, and {@code f(*args)}. * * <p>Functionally this interface is equivalent to {@code java.lang.It...
package com.mysiteforme.admin.service.impl; import com.baomidou.mybatisplus.mapper.Condition; import com.baomidou.mybatisplus.mapper.EntityWrapper; import com.mysiteforme.admin.entity.Dict; import com.mysiteforme.admin.dao.DictDao; import com.mysiteforme.admin.service.DictService; import com.baomidou.mybatisplus.servi...
package grammar; import java.util.Queue; import Tokenizing.Lexeme; public class New_dash1 implements New_dash { Expression expr; public New_dash1(Expression expr) { this.expr = expr; } @Override public String getValue() { String res = ""; res += "int"; res += " ["; res += expr.getValue(); res +...
/* * Copyright 2014 JBoss 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...
/** * Copyright (C) 2019-2021 Philip Helger * http://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/licen...
package com.gj.app.entity; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SysLoginLogExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public SysLoginLogExample() { oredCriteria ...
package br.com.zupacademy.transacoes.kafka; import br.com.zupacademy.transacoes.transacoes.DTO.TransacaoListened; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.StringDeserializer; import org.springframework.boot.autoconfigure.kafka.KafkaProperties; import org.spr...
package org.drools.testcoverage.kieci.withoutdomain; import org.drools.testcoverage.kieci.withoutdomain.util.KJarLoadUtils; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.kie.api.KieServices; import org.kie.api.builder.ReleaseId; import org.kie.api.runtime.KieContainer; import org.k...
package com.bumptech.glide.load.engine.b; import android.content.Context; // compiled from: InternalCacheDiskCacheFactory.java public final class f extends d { public f(Context context) { this(context, "image_manager_disk_cache"); } private f(Context context, String str) { super(new g(con...
/** * */ package com.sliit.af.util; /** * @author vimukthi_r * */ public class Param { private Param() { } // this secret key is used for json web token signing public static final String SECRET = "af-final-2019"; public static final String TOKEN_PREFIX = "Bearer "; public static final String HEADER_STRIN...
package com.example.androidaptdecoder; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.Manifest; import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.BitmapFacto...
package cc.mrbird.job.domain; import java.util.Date; public class PMobileSuccess { private Long id; private String mobile; private Date createDate; private Integer status; private String createBy; private String extend1; private String extend2; private Integer userId; publi...
//,temp,TestKeyValueTextInputFormat.java,51,131,temp,TestMRKeyValueTextInputFormat.java,70,156 //,3 public class xxx { @Test public void testFormat() throws Exception { Job job = Job.getInstance(new Configuration(defaultConf)); Path file = new Path(workDir, "test.txt"); int seed = new Random().nextInt(...
package com.bt.pi.core.continuation; public interface UpdateResolver<T> { /** * The update method is called as a result of the DHT read to retrieve the existing entity. Because a DHT write may * fail due to version conflict this update method should be written to deal with multiple calls. * * ...
/** * Copyright (C) 2007-2017 Tatsuo Satoh <multisqllib@gmail.com> * * This file is part of sqlapp-core-derby. * * sqlapp-core-derby 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, either version...
package ru.resql.orm.converters.instances; import ru.resql.SqlException; import ru.resql.orm.converters.*; public class IntegralTypeToOrdinalEnumConvertor implements Converter<Enum<?>> { private final Enum<?>[] enumValues; public IntegralTypeToOrdinalEnumConvertor(Class<Enum<?>> enumType) { enumValues = enumType...
package net.iretailer.model; // Generated 2016-2-1 23:19:37 by Hibernate Tools 4.3.1.Final /** * TrStoreBusinessTime generated by hbm2java */ public class TrStoreBusinessTime implements java.io.Serializable { private String id; private String storeId; private String timeId; public TrStoreBusinessTime() { } ...
package ch.so.agi.suchedreinull; import java.util.List; import org.springframework.data.solr.repository.SolrCrudRepository; //public interface ParcelRepository extends SolrCrudRepository<Parcel, String> { // public Parcel findByEgrid(String egrid); // // public List<Parcel> findByEgridContaining(String egr...
package com.anysoftkeyboard.ui; import static androidx.test.core.app.ApplicationProvider.getApplicationContext; import android.view.MotionEvent; import android.view.View; import com.anysoftkeyboard.AnySoftKeyboardRobolectricTestRunner; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import or...
/* * 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 modelo; /** * * @author flynn */ import javax.swing.JOptionPane; public class PopUp { public static void InfoBox(Stri...
package grondag.mcmd.node; public class Heading extends Block { private int level; @Override public void accept(Visitor visitor) { visitor.visit(this); } public int getLevel() { return level; } public void setLevel(int level) { this.level = level; } }
/*** Copyright (c) 2008-2012 CommonsWare, 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 w...
package com.sx.sxblog.controller; import com.fasterxml.jackson.databind.ObjectMapper; import com.sx.sxblog.common.SendMailUtil; import com.sx.sxblog.common.UUIDUtil; import com.sx.sxblog.entity.User; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.facto...
/* * 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.google.android.exoplayer2.upstream; public interface Allocator { Allocation allocate(); int getIndividualAllocationLength(); int getTotalBytesAllocated(); void release(Allocation allocation); void release(Allocation[] allocationArr); void trim(); }
class Solution { public int XXX(int[] nums, int val) { // 快慢指针 int fastIndex = 0; int slowIndex; for (slowIndex = 0; fastIndex < nums.length; fastIndex++) { if (nums[fastIndex] != val) { nums[slowIndex] = nums[fastIndex]; slowIndex++; ...
package mage.cards.b; import java.util.ArrayList; import java.util.List; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.AttacksOrBlocksTriggeredAbility; import mage.abilities.effects.OneShotEffect; import mage.abilities.keyword.FlyingAbility; import mage.abilit...
/* * Copyright 2002-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 ap...
/* * author: Keerthana Sadam ; Date: 11/17/2017 * Included test cases which covers all functions * */ package iProlog; import java.util.Arrays; /** * runtime representation of an immutable list of goals * together with top of heap and trail pointers * and current clause tried out by head goal * as well as re...
package javalearning; public class APP { }
package legoset; import lombok.Data; import javax.xml.bind.annotation.*; @XmlAccessorType(XmlAccessType.FIELD) @Data public class Minifig { @XmlValue private String title; @XmlAttribute private int count; public Minifig() {} public Minifig(String title, int count) { this.title = ti...
/* * 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...
/* * 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 ...
/* * msmwallet * * Created by Ed Gamble <ed@msmwallet.com> on 1/22/18. * Copyright (c) 2018 msmwallet LLC * * 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, includ...
/* * 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...
/* * ORY Keto * Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. * * The version of the OpenAPI document: v0.0.0-alpha.58 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (ht...
package com.vignesh.howzat.api; import com.vignesh.howzat.model.Handshake; import com.vignesh.howzat.model.SignUpInfo; import com.vignesh.howzat.model.UserKeys; import com.vignesh.howzat.service.HowzatService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation...
/** * Copyright (c) 2016-present, RxJava 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 l...
package com.udaan.flagsnag.logic; import java.util.Locale; /* * This class provides the grammatically correct translations */ public class Translations { public static String scorePost(int score, String category, Locale locale) { String translated = null; if (locale.getLanguage().equals("es")) { translat...
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
package service_requests; import org.junit.*; import static org.junit.Assert.*; import java.util.*; import java.util.Date; import java.util.stream.*; import java.text.*; import java.util.function.*; import javax.persistence.*; import javax.enterprise.context.*; import javax.inject.*; import javax.ejb.*; import jav...
/* * This class is distributed as part of the Botania Mod. * Get the Source Code in github: * https://github.com/Vazkii/Botania * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php */ package vazkii.botania.common.block.subtile.generating; import net.minecraf...
package io.ebean; import javax.persistence.PersistenceException; /** * Captures and wraps IOException's occurring during ElasticSearch processing etc. */ public class PersistenceIOException extends PersistenceException { private static final long serialVersionUID = -7630050437148176148L; public PersistenceIOE...
/* * 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.benny.openlauncher.fragment; import android.content.SharedPreferences; import android.graphics.PorterDuff; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v7.preference.Preference; import android.support.v7.preference.PreferenceFragmentCompat; import android.supp...
public class Book implements Comparable<Book>{ private String bookName; private int pages; public Book(String bookName, int pages){ this.bookName = bookName; this.pages = pages; } public String getBookName(){ return this.bookName; } public int getPages(){ r...
/* Freeware License, some rights reserved Copyright (c) 2019 Iuliana Cosmina Permission is hereby granted, free of charge, to anyone obtaining a copy of this software and associated documentation files (the "Software"), to work with the Software within the limits of freeware distribution and fair use. This include...
/* * 文件名称:BuyerService.java * 系统名称:[系统名称] * 模块名称:[模块名称] * 软件版权:Copyright (c) 2011-2018, liming20110711@163.com All Rights Reserved. * 功能说明:[请在此处输入功能说明] * 开发人员:Rushing0711 * 创建日期:20180216 11:06 * 修改记录: * <Version> <DateSerial> <Author> <Description> * 1.0.0 20180216-01...
// 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...