text stringlengths 7 1.01M |
|---|
import java.util.HashMap;
public class Solution {
public int solution(int[] a){
if (a.length==0) return 0;
HashMap<Integer,Integer> leaderBoard = new HashMap<>();
int leader=a[0];
int valuesLeft=0;
int countValues=0;
int equiLeaders=0;
for (int j : a) {
... |
package com.mc.onmusic_relase.utils;
public class EXPlayer {
public static void play() {
}
}
|
/*
Copyright 2006 by Sean Luke and George Mason University
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package sim.app.wcss.tutorial07;
import sim.engine.*;
import sim.field.continuous.*;
import sim.util.*;
import sim.field.network.*;
public class Student ... |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... |
package at.jku.sea.cloud.rest.pojo.listener.property;
import at.jku.sea.cloud.rest.pojo.PojoObject;
import at.jku.sea.cloud.rest.pojo.PojoProperty;
import at.jku.sea.cloud.rest.pojo.PojoVersion;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* @author Dominik Muttenthaler
* @author Florian Weger
*/
@J... |
/*
* 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 mb.p_raffrayi.impl;
import org.metaborg.util.functions.Action0;
import org.metaborg.util.functions.Action1;
import org.metaborg.util.functions.Function0;
import org.metaborg.util.functions.Function1;
import org.metaborg.util.unit.Unit;
import mb.scopegraph.oopsla20.diff.BiMap;
public abstract class StateSumm... |
/*
* Copyright (c) 2019, 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/l... |
/*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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 agre... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.delbrueg.predictor.position;
import de.delbrueg.steering.classification.CircleSituation;
import de.delbrueg.steering.classification.LineSituation;
import java.awt.geom.Point2D;
import javax.vecmath.Point2d;
... |
package com.example.gabri.botoesimagem;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an ... |
/*
* (C) Copyright 2009 Nuxeo SA (http://nuxeo.com/) and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/*
* 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")... |
package org.basex.query.expr.ft;
import static org.basex.query.QueryText.*;
import org.basex.query.*;
import org.basex.query.util.ft.*;
import org.basex.query.var.*;
import org.basex.util.*;
import org.basex.util.ft.*;
import org.basex.util.hash.*;
import org.basex.util.list.*;
/**
* FTScope expression.
*
* @auth... |
package com.lyd.mall.product.dao;
import com.lyd.mall.product.entity.SpuCommentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品评价
*
* @author liuyunda
* @email man021436@163.com
* @date 2020-12-28 21:58:56
*/
@Mapper
public interface SpuComme... |
package edu.pitt.apollo.db.exceptions;
/**
*
* Author: Nick Millett
* Email: nick.millett@gmail.com
* Date: Jul 8, 2014
* Time: 11:26:49 AM
* Class: ApolloDatabaseStatusNotFoundForRunIdException
*/
public class ApolloDatabaseStatusNotFoundForRunIdException extends ApolloDatabaseException {
/**
*
*/
p... |
/*
* Copyright (c) 2007, 2020, 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 me.vrnsky.server.config;
import org.keycloak.adapters.KeycloakConfigResolver;
import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver;
import org.keycloak.adapters.springsecurity.KeycloakConfiguration;
import org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider;
i... |
/*
*
* * Copyright 2013-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
*... |
// Generated by Haxe 3.4.0
package haxe.lang;
import haxe.root.*;
@SuppressWarnings(value={"rawtypes", "unchecked"})
public class VarArgsFunction extends haxe.lang.VarArgsBase
{
public VarArgsFunction(haxe.lang.Function fun)
{
//line 54 "C:\\HaxeToolkit\\haxe\\std\\java\\internal\\Function.hx"
super(-1, -1);
... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
import org.sql2o.*;
import java.util.ArrayList;
import java.util.List;
public class Rangers {
private int id;
private String name;
private String badge_number;
private String email;
public Rangers(String name, String badge_number, String email) {
if(name.equals("")||badge_number.equals(""... |
package com.coderdream.first_act;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.DeploymentBuilder;
public class SchemaErrorTest {
public static void main(String[] args) {
// 新建流... |
package net.minestom.server.world.biomes;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import net.minestom.server.utils.NamespaceID;
import org.jglrxavpok.hephaistos.nbt.NBTCompound;
import java.util.concurrent.atomic.AtomicInteger;
@Getter
@Builder
@ToString
... |
/**
*
*/
package com.app.domain.model.types.itemsevaluables;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import com.app.domain.model.types.ItemEvaluable;
@Entity
@Access(AccessType.PROPERTY)
/**
* @author David
*
*/
public class Examen extends ItemEv... |
package vn.map4d.map.map4d_map;
import vn.map4d.map.annotations.MFBitmapDescriptor;
import vn.map4d.types.MFLocationCoordinate;
/** Receiver of Marker configuration options. */
interface FMFMarkerOptionsSink {
void setConsumeTapEvents(boolean consumeTapEvents);
void setPosition(MFLocationCoordinate position);
... |
/*******************************************************************************
* Copyright 2019 alladin-IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... |
package com.sparkweb.util;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
/**
* 一些额外的特殊字符转义
*
* @author yswang
* @version 1.0
*/
public class EscapeUtils
{
/**
* 转义JSON值中的特殊字符
* @param str
* @return
*/
public static String escapeJSON(String str)
{
if(str == null || str.tri... |
package org.testng;
import org.testng.collections.Lists;
import org.testng.collections.Maps;
import org.testng.internal.ClassHelper;
import org.testng.internal.ConfigurationGroupMethods;
import org.testng.internal.Constants;
import org.testng.internal.DynamicGraph;
import org.testng.internal.IConfigurationListener;
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 ... |
// Copyright (c) 2022, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.shaking;
import static com.android.tools.r8.ir.code.Opcodes.INSTANCE_GET;
im... |
package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
import org.traccar.model.Command;
public class Gt06ProtocolEncoderTest extends ProtocolTest {
@Test
public void testEncode() throws Exception {
var encoder = new Gt06ProtocolEncoder(null);
Command command ... |
package com.viktor.ttt.taskTracker.v1.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Vali... |
/*
* Copyright (C) 2008 ZXing 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 law or agr... |
package com.shirc.redisdelayqueuespringdemo;
import com.shirc.redis.delay.queue.common.RunTypeEnum;
import com.shirc.redis.delay.queue.iface.RedisDelayQueue;
import com.shirc.redisdelayqueuespringdemo.bo.MyArgs;
import com.shirc.redisdelayqueuespringdemo.delayqueues.TopicEnums;
import org.junit.jupiter.api.Test;
impor... |
/*
The MIT License (MIT)
Copyright (c) 2015-2017 HyperTrack (http://hypertrack.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
t... |
/*******************************************************************************
* Copyright 2011 Antti Havanko
*
* This file is part of Motiver.fi.
* Motiver.fi is licensed under one open source license and one commercial license.
*
* Commercial license: This is the appropriate option if you want to use ... |
package br.com.fatecesiii.core.implementacao.negocio;
import java.util.Date;
import br.com.fatecesiii.core.IStrategy;
import br.com.fatecesiii.dominio.entidadedominio.EntidadeDominio;
public class ComplementarDataCadastro implements IStrategy {
@Override
public String processar(EntidadeDominio entidade)... |
package com.manulaiko.assetsobscurer.assets;
import com.google.gson.Gson;
import com.manulaiko.assetsobscurer.main.EncryptionManager;
import com.manulaiko.assetsobscurer.main.Settings;
import com.manulaiko.tabitha.log.Console;
import com.manulaiko.tabitha.log.ConsoleManager;
import lombok.Data;
import java.io.File;
i... |
package github.zayn.fsm.collectionstatemode;
/**
* @ClassName Action
* @DESCRIPTION TODO
* @Author zhangjiayi07
* @Date 2021/3/16 下午8:36
**/
public enum Action {
INSERT_COIN,
PASS;
}
|
package com.domblack.icu.psi;
import com.intellij.psi.PsiNameIdentifierOwner;
public interface IcuNamedElement extends PsiNameIdentifierOwner {
}
|
package is.xyz.filepicker;
import androidx.annotation.NonNull;
/**
* Some utility methods
*/
public class Utils {
private static final String SEP = "/";
/**
* Append the second pathString to the first. The result will not end with a /.
* In case two absolute paths are given, e.g. /A/B/, and /C/D... |
/*
* Copyright 2019 Netflix, Inc.
* <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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agr... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... |
/*
* Copyright 2010-2015 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... |
package com.xwder.manage.system.mapper;
import java.util.List;
import com.xwder.manage.system.domain.SysOperLog;
/**
* 操作日志 数据层
*
* @author ruoyi
*/
public interface SysOperLogMapper
{
/**
* 新增操作日志
*
* @param operLog 操作日志对象
*/
public void insertOperlog(SysOperLog operLog);
/**
... |
/*
* 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 practica1ana;
/**
*
* @author Alumno
*/
public class main {
public static void main (String args[]){
... |
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package com.webside.ofp.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.webside.base.baseservice.impl.AbstractService;
import com.webside.ofp.mapper.ProductMapper;
import com.... |
// you can also use imports, for example:
// import java.util.*;
// you can write to stdout for debugging purposes, e.g.
// System.out.println("this is a debug message");
class Solution {
public int solution(int X, int Y, int D) {
// write your code in Java SE 8
double distance = Y - X;
r... |
package com.jiuxian.netty.handler.action;
import com.jiuxian.netty.handler.message.NettyMessage;
import io.netty.channel.ChannelHandlerContext;
/**
* Author: LIU ZEJUN
* Date: 2019-05-08 12:56:00
* Comment: 消息处理接口
*/
public interface NettyMessageTypeAction {
void action(ChannelHandlerContext ctx, NettyMessag... |
/**
* 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 2015 JAXIO http://www.jaxio.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 law... |
package com.umiwi.ui.beans.updatebeans;
import com.google.gson.annotations.SerializedName;
import com.umiwi.ui.beans.BaseGsonBeans;
import java.util.ArrayList;
/**
* Created by Administrator on 2017/3/17.
*/
public class DetailsCoumnBean extends BaseGsonBeans {
@SerializedName("e")
private String e;
... |
package com.github.phenomics.ontolib.ser;
import com.github.phenomics.ontolib.base.OntoLibRuntimeException;
/**
* Unchecked exception thrown on problems with data serialization and deserialization.
*
* @author <a href="mailto:manuel.holtgrewe@charite.de">Manuel Holtgrewe</a>
*/
public class SerializationRuntimeEx... |
/*
* Copyright 1999-2011 Alibaba 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 by appl... |
/*
* 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 use... |
/**
* 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.jayqqaa12.jbase.cache.core;
import com.jayqqaa12.jbase.cache.util.CacheException;
public interface Cache {
CacheObject get(String key) throws CacheException;
void set(String key, CacheObject value) throws CacheException;
void set(String key, CacheObject value, int expire) throws CacheException... |
/*
* 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 uk.gov.hmcts.reform.civil.handler.callback.camunda.businessprocess;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import uk.gov.hmcts.reform.ccd.client.model.AboutToStartOrSubmitCallbackResponse;
import uk.gov.hmcts.reform.ccd.client.mod... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
package il.co.ilrd.enumtest;
public class testWeekDays {
public static void main(String[] args) {
WeekDays day = WeekDays.MONDAY;
System.out.println(day.getStringWeekDay() + "\n");
System.out.println(day.fromValue(3) + "\n");
System.out.println(day.fromValue(3) + "\n");
System.out.println(day.toString());
... |
/*
* Copyright (c) 2017.
*
* Oliver Crawford <o.crawford@hotmail.co.uk>
* Lucian Carata <lc525@cam.ac.uk>
*
* 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.o... |
package projetointegrador.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
@Configuration
public class PasswordEncoderConfig {
@Bean
public BCryptPasswordEncoder pa... |
package net.alanbinu.springboot.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class HelloController {
@GetMapping({"/", "/he... |
/*
* 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 ... |
static int find(int x) {
return parent[x] == x ? x : (parent[x] = find(parent[x]));
} |
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppä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 us... |
/*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... |
/*
* Copyright (c) 2011-2020 Contributors to the Eclipse Foundation
*
* 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.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... |
package com.food.delivery.dao;
import com.food.delivery.config.WebAppConfig;
import com.food.delivery.model.Ingredient;
import com.food.delivery.service.IngredientService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
imp... |
/*
* Copyright 2012 - 2018 Manuel Laggner
*
* 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 2015 - 2019 Anton Tananaev (anton@traccar.org)
*
* 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 b... |
/*
* Copyright 2012 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 in ... |
package com.qinsong.qspay.uppay;
import org.qinsong.qspay.core.PayInfo;
//https://open.unionpay.com/tjweb/acproduct/list?apiSvcId=450&index=5
public class UPPayInfo extends PayInfo {
public String tn;//后台返回的订单号
public String ext;
@Override
public String payParam() {
return tn;
}
} |
/* Copyright (C) 2013-2014 Computer Sciences 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 ap... |
package com.salesmanager.web.admin.controller.orders;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servle... |
package com.fengaihua.swagger.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHan... |
package syberia.support.lottie.model.content;
import android.graphics.PointF;
import android.support.annotation.FloatRange;
import syberia.support.lottie.model.CubicCurveData;
import syberia.support.lottie.utils.MiscUtils;
import java.util.ArrayList;
import java.util.List;
public class ShapeData {
private final L... |
/*
* 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 xyz.kaungsithu.news.fragments;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
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 ... |
package com.lovemesomecoding.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import or... |
//: innerclasses/BigEgg.java
// An inner class cannot be overriden like a method.
import static net.mindview.util.Print.*;
class Egg {
private Yolk y;
protected class Yolk {
public Yolk() { print("Egg.Yolk()"); }
}
public Egg() {
print("New Egg()");
y = new Yolk();
}
}
public cla... |
/*
* #%L
* SciJava Common shared library for SciJava software.
* %%
* Copyright (C) 2009 - 2021 SciJava developers.
* %%
* 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... |
package westcoastcompassdealer.demo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import westcoastcompassdealer.demo.domain.Car;
import westcoastcompassdealer.demo.domain.User;
@Repository
public interface UserRepository extends Jpa... |
package mage.cards.j;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.*;
import mage.constants.CardType;
import mage.constants.Outcome;
import ... |
package net.dzikoysk.funnyguilds.listener.region;
import net.dzikoysk.funnyguilds.FunnyGuilds;
import net.dzikoysk.funnyguilds.basic.guild.Guild;
import net.dzikoysk.funnyguilds.basic.guild.Region;
import net.dzikoysk.funnyguilds.basic.guild.RegionUtils;
import net.dzikoysk.funnyguilds.basic.user.User;
import net.dzik... |
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
public class Carte {
private String name, genre;
private int NumberOfChapters = 0;
public Carte(String name, String genre, int numberOfChapters) {
this.name = name;
this.genre = genre;
NumberOfChapters = numberOfChapters;
}
public Carte(String name, String genre) {
super();
this.name = name;
... |
/**
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U <br>
* This file is part of FI-WARE project.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License.
* </p>
* <p>
* You may obtain a copy of the License at:<br>
*... |
package com.qaqtutu.ofdbox.core.xmlobj.enums;
public enum LineCapStyle {
Butt,
Round,
Square;
public static final LineCapStyle defaultValue=LineCapStyle.Butt;
}
|
class Solution {
public String toLowerCase(String str) {
char[] ca = str.toCharArray();
for (int i = 0; i < ca.length; ++i) {
if (ca[i] >= 'A' && ca[i] <= 'Z')
ca[i] = (char)(ca[i] - 'A' + 'a');
}
return new String(ca);
}
} |
package ru.tolstonogov.entities.file;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.Objects;
public class GameFl {
private FileType type;
private long approxSize;
private GregorianCalendar date;
private String description;
private String name;
private long si... |
/*
* Copyright (C) 2000-2013 Heinz Max Kabutz
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Heinz Max Kabutz licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... |
/*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
package services.deadbolt;
import be.objectify.deadbolt.java.ConfigKeys;
public enum HandlerKeys {
DEFAULT(ConfigKeys.DEFAULT_HANDLER_KEY),
ALT("altHandler");
public final String key;
private HandlerKeys(String key){
this.key = key;
}
}
|
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.util.*;
import java.io.*;
import java.net.*;
/**
* An implementation of Resolver that sends one query to one server.
* SimpleResolver handles TCP retries, transaction security (TSIG), and
* EDNS 0.
* @see Resolver... |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.depgraph;
/**
* Callback interface for receiving {@link ResolutionFailure} notifications.
*/
public interface ResolutionFailureListener {
/**
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.