text stringlengths 7 1.01M |
|---|
/*
* Copyright 2020 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 "license" ... |
package com.example.explqrer;
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 execute on an... |
/*
* 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... |
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int cases = Integer.parseInt(in.nextLine());
for(int i = 0; i < cases; ... |
package com.google.api.ads.adwords.jaxws.v201607.cm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for AgeRange.AgeRangeType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleTy... |
/**
* Copyright (c) 2011-2021, James Zhan 詹波 (jfinal@126.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... |
/*
* Copyright (c) 2017, Manfred Constapel
* This file is licensed under the terms of the MIT license.
*/
package de.m6c7l.lib.util.geo;
import java.text.DecimalFormat;
public class Angle {
public static final ORIENTATION NORTH = ORIENTATION.NORTH;
public static final ORIENTATION EAST = ORIENTATION.EAST;
pub... |
package org.basex.query.expr;
import org.basex.query.*;
import org.basex.query.util.list.*;
import org.basex.query.value.*;
import org.basex.query.value.item.*;
import org.basex.query.var.*;
import org.basex.util.*;
import org.basex.util.hash.*;
/**
* Filter expression, caching all results.
*
* @author BaseX Team ... |
/*
* Copyright © 2016 Tinkoff Bank
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package ca.ulaval.glo2003.errors.rest.handlers;
import ca.ulaval.glo2003.errors.rest.factories.DefaultErrorFactory;
import ca.ulaval.glo2003.errors.rest.factories.ErrorFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.Set;
import javax.inject.Inject;
import spark.Request;
import spark.Respo... |
package io.left.rightmesh.libdtn.core.routing;
/**
* IllegalRoutingResult is thrown whenever a routing strategy returns an illegal result.
*
* @author Lucien Loiseau on 20/01/19.
*/
public class IllegalRoutingResult extends Exception {
}
|
package com.xt.shiro;/**
* Created by Administrator on 2017/7/11.
*/
import com.xt.entity.User;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.SimpleSession;
import org.apache.shiro.session.mgt.ValidatingSession;
import org.apache.shiro.session.mgt.eis.CachingSessionDAO;
import org.apac... |
/*
* Copyright (C) 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 agree... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 保险营销规则因子
*
* @author auto create
* @since 1.0, 2016-10-26 17:43:42
*/
public class InsMktFactorDTO extends AlipayObject {
private static final long serialVersionUID = 162924585... |
package com.zzx.config;
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@MapperScan("com.zzx.dao")
public class MybatisPlusCon... |
/*
* Copyright 2015-2020 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 net.noobsters.core.paper.Listeners;
import org.bukkit.Bukkit;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import net.noobsters.core.paper.PERMADED;
public class ListenerManager {
private PERMADED instance;
public ListenerManager(PERMADED instance) {
this.instan... |
/*
* 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
... |
package pt.ulisboa.tecnico.socialsoftware.tutor.question.domain;
import pt.ulisboa.tecnico.socialsoftware.tutor.answer.domain.ItemCombinationAnswer;
import pt.ulisboa.tecnico.socialsoftware.tutor.answer.domain.MultipleChoiceAnswer;
import pt.ulisboa.tecnico.socialsoftware.tutor.exceptions.TutorException;
import pt.ul... |
package exercise28;
class PaintJob {
static int getBucketCount(double width, double height, double areaPerBucket, int availableBucket) {
if (width <= 0 || height <= 0 || areaPerBucket <= 0 || availableBucket < 0) {
return -1;
}
double totalWallArea = width * height;
dou... |
/*
* Copyright 2020 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
package com.samuelyvon.braincramp.execution;
public class MemoryManager {
public static final int MEMORY_MAX_VAL = 256;
private int[] memory;
private int currentMemPointer;
public MemoryManager(int initSize) {
this.memory = new int[initSize];
}
public void write(int value) {
... |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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... |
/*
* (C) Copyright IBM Corp. 2022.
*
* 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... |
/*
* Copyright (c) 2015-2019, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, 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/licenses... |
/*
* Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.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 requ... |
/*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.core.scaffold.command.impl;
import com.google.common.base.Preconditions;
import io.github.nucleuspowered.nucleus.core.scaffold... |
package com.ecnu.request;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class RequestDemo7 extends HttpServlet {
/**
* The do... |
package org.firstinspires.ftc.teamcode.PPDev;
import com.google.common.collect.ListMultimap;
import com.google.common.collect.Lists;
import com.qualcomm.robotcore.util.Range;
import org.firstinspires.ftc.teamcode.PPDev.PPAuto.PositionalMarker;
import org.opencv.core.Point;
import java.util.ArrayList;
import static o... |
package com.javarush.task.pro.task17.task1707;
public class Pet {
public void printInfo(){
System.out.println("Я домашний питомец.");
}
}
|
package com.wangxinarhat.mvp.ganks;
import com.wangxinarhat.mvp.data.Gank;
/**
* Created by wang on 2016/8/2.
*/
public interface GanksItemListener {
void onGankClick(Gank clickedGank);
void onCompleteGankClick(Gank completedGank);
void onActivateGankClick(Gank activatedGank);
}
|
/*
* 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 com.cloud.ldap;
import com.cloud.legacymodel.InternalIdentity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "ldap_configura... |
/**
* Copyright 2009-2018 PrimeTek.
*
* 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 ... |
/*
* MIT License
* Copyright (c) 2017-2019 nuls.io
* 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, m... |
/**
* Copyright (C) 2012-2015 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 b... |
package core;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.apache.commons.io.filefilter.HiddenFileFilter;
import utilities.MydirectoryWalker;
import java.io.File;
import java.util.List;
public class ParseDirectory {
public List results; /*list of Files that match the criteria*/
public ... |
/*
* 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 ... |
/**
* @author Vijet Badigannavar(bvijet@gmail.com)
* @modified 28-Feb-2015
*/
package com.vijet.viewcolorpalette.exceptions;
/**
* Custom Exception that will be thrown if the value of the color is negative or above the range
*/
public class InvalidColorCodeException extends RuntimeException {
public InvalidC... |
/*
* 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.yammer.dropwizard.bundles;
import com.yammer.dropwizard.Bundle;
import com.yammer.dropwizard.config.Environment;
import com.yammer.dropwizard.servlets.AssetServlet;
import static com.google.common.base.Preconditions.checkArgument;
/**
* A bundle for serving static asset files from the classpath.
*/
pub... |
/**
* @FileName: SearchModel.java
* @Package com.asura.framework.paging
*
* @author zhangshaobin
* @created 2012-12-12 下午7:32:46
*
* Copyright 2011-2015 asura
*/
package com.asura.framework.base.paging;
import java.io.Serializable;
import java.util.List;
/**
* <p>查询模型</p>
*
* <PRE>
* <BR> 修改记录
* <BR>-... |
// ***************************************************************************************************************************
// * 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 regardi... |
package org.infinispan.container;
import org.infinispan.atomic.Delta;
import org.infinispan.commands.FlagAffectedCommand;
import org.infinispan.commands.write.ReplaceCommand;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.container.entries.InternalCacheEntry;
import org.infinispan.container.... |
/*
* 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 liquibase.sqlgenerator.core;
import liquibase.CatalogAndSchema;
import liquibase.database.Database;
import liquibase.database.core.HsqlDatabase;
import liquibase.sql.Sql;
import liquibase.sql.UnparsedSql;
import liquibase.sqlgenerator.SqlGeneratorChain;
import liquibase.statement.core.GetViewDefinitionStatemen... |
package com.mapi.docadm.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.oauth2... |
package com.bjsxt.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelPro... |
/*
* Copyright (c) 2013 Jadler contributors
* This program is made available under the terms of the MIT License.
*/
package net.jadler.stubbing.server;
import net.jadler.RequestManager;
/**
* Interface for a stub http server component.
*
* This component represents an http server which waits for http requests... |
/*
* 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 fr.skytasul.quests.requirements;
import java.util.Map;
import org.bukkit.entity.Player;
import fr.skytasul.quests.api.objects.QuestObjectClickEvent;
import fr.skytasul.quests.api.requirements.AbstractRequirement;
import fr.skytasul.quests.api.requirements.Actionnable;
import fr.skytasul.quests.edito... |
package edu.vanderbilt.isis.sm.properties;
import edu.vanderbilt.isis.sm.Interpreter;
public class AfterScope implements Scope {
private int active = INACTIVE;
public int isActive(Interpreter interpreter) {
if (active == INACTIVE && checkAfterExpression(interpreter)){
active = ACTIVE;
}
return active;
}... |
/*
* Copyright 2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* 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 mage.client.util;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import javax.swing.JMenu;
import... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
package org.jbpm.simulation.impl;
import org.jbpm.process.core.validation.ProcessValidationError;
import org.jbpm.process.core.validation.ProcessValidator;
import org.jbpm.ruleflow.core.RuleFlowProcess;
import org.kie.api.definition.process.Process;
import org.kie.api.io.Resource;
public class SimulationProcessValida... |
package com.example.live.dagger.video;
import com.example.commonlibrary.dagger.scope.PerActivity;
import com.example.live.mvp.video.VideoActivity;
import com.example.live.dagger.MainComponent;
import dagger.Component;
/**
* 项目名称: NewFastFrame
* 创建人: 陈锦军
* 创建时间: 2017/9/15 21:34
* QQ: ... |
package dispose.net.supervisor;
import dispose.log.DisposeLog;
import dispose.net.common.Config;
import dispose.net.links.Link;
import dispose.net.links.LinkBrokenException;
import dispose.net.links.MonitoredLink;
import dispose.net.links.SocketLink;
import dispose.net.message.CtrlMessage;
import dispose.net.message.L... |
package com.nitya.accounter.web.client.core;
import java.util.HashMap;
import java.util.Map;
public class ClientPortletConfiguration implements IAccounterCore {
/**
*
*/
private static final long serialVersionUID = 1019383886264751411L;
public int column;
private String portletName;
private long id;
priva... |
package bio.knowledge.web.view;
import java.util.Locale;
import com.vaadin.data.util.converter.Converter;
import bio.knowledge.model.IdentifiedConcept;
/**
* Converter class to allow for click listeners on IdentifiedConcept
* See also: https://vaadin.com/docs/v7/framework/articles/CreatingYourOwnConverterForStrin... |
package mage.cards.p;
import java.util.UUID;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.BuybackAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.Stati... |
/*-
* * Copyright 2016 Skymind, 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
* *
* * Un... |
/*
* Copyright 2012 Jakob Külzer
*
* 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.sagebionetworks.repo.manager.team;
import static org.sagebionetworks.repo.manager.EmailUtils.TEMPLATE_KEY_DISPLAY_NAME;
import static org.sagebionetworks.repo.manager.EmailUtils.TEMPLATE_KEY_ONE_CLICK_JOIN;
import static org.sagebionetworks.repo.manager.EmailUtils.TEMPLATE_KEY_REQUESTER_MESSAGE... |
package com.fish.design.model.structure.bridge.impl;
import com.fish.design.model.structure.bridge.Ink;
public class BlueInk implements Ink {
@Override
public void color() {
System.out.println("use blue color!");
}
}
|
package run.serverstatus.app.utils.infoUtils;
import run.serverstatus.app.entities.info.TimedInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Component;
import oshi.software.os.OperatingSystem;
import run.serverstatus.app.u... |
package com.example.faloka_mobile.Model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.SerializedName;
public class ProductMixMatch implements Parcelable {
private String slug;
@SerializedName("mix_and_match_image")
private String imageURL;
protected Prod... |
/*
* Copyright (c) 2014-2017 Neil Ellis
*
* 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 ... |
package br.com.informaticaf1.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import br.com.informaticaf1.models.Cliente;
public interface Clientes extends JpaRepository<Cliente, Short> {
}
|
// Copyright 2012 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.content.browser;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
im... |
package shef.nlp.supple.prolog.cafe;
import jp.ac.kobe_u.cs.prolog.lang.*;
import jp.ac.kobe_u.cs.prolog.builtin.*;
/*
* *** Please do not edit ! ***
* @(#) PRED_update_name_match_2.java
* @procedure update_name_match/2 in update_name_match.pl
*/
/*
* @version Prolog Cafe 0.8 November 2003
* @author Mutsunori B... |
package org.f1.dao.bean;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import org.f1.dao.EquipeTemporadaDao;
import org.f1.entity.EquipeTemporada;
/**
*
* @author lourenco
*
* @since v1.0.0
*/
public class EquipeTemporadaHibernateDaoBean extends HibernateDaoBean<EquipeTemporada> implemen... |
package org.sakaiproject.tool.gradebook.ui.helpers.beans;
import org.sakaiproject.tool.gradebook.AssignmentGradeRecord;
public class AssignmentGradeRecordCreator {
public AssignmentGradeRecord create(){
AssignmentGradeRecord togo = new AssignmentGradeRecord();
return togo;
}
} |
/*
* Swirepay API
* Swirepay REST APIs' are resource-oriented URLs that accept JSON-encoded request bodies, return JSON-encoded responses, and use standard HTTP response codes, authentication, and verbs. You can use the Swirepay API in test mode, which does not affect your live data or interact with the banking netwo... |
/*
* Copyright 2017, Yahoo Inc.
* Licensed under the terms of the Apache License, Version 2.0.
* See the LICENSE file associated with the project for terms.
*/
package com.yahoo.bullet.aggregations;
import com.yahoo.bullet.aggregations.sketches.FrequentItemsSketch;
import com.yahoo.bullet.common.BulletConfig;
i... |
package com.leocardz.link.preview.library;
import android.os.AsyncTask;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public abstract class BaseImagePickingStrategy implements ImagePicki... |
/**
* Copyright (c) 2015, Intel Corporation
*
* 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 conditions and t... |
package com.mber.javarush.task.task20.task2020;
import java.io.*;
import java.util.logging.Logger;
/*
Сериализация человека
*/
public class Solution {
public static class Person implements Serializable {
@Serial
private static final long serialVersionUID = 5661269254253662060L;
String fir... |
package com.mrbysco.ageingspawners.util;
import com.mrbysco.ageingspawners.config.SpawnerConfig;
import net.minecraft.util.ResourceLocation;
import org.apache.commons.lang3.math.NumberUtils;
import java.util.ArrayList;
import java.util.List;
public class AgeingHelper {
public static boolean blacklistContains(Resour... |
package com.leisurexi.data.structures.sort;
import lombok.extern.slf4j.Slf4j;
import java.util.Arrays;
/**
* @author: leisurexi
* @date: 2019-12-08 8:21 下午
* @description: 双边循环法的快速排序示例
* @since JDK 1.8
*/
@Slf4j
public class QuickSortBilateral {
/**
* 该方法通过递归的方式,实现了分而治之的思想
*
* @param array
... |
// Java Program for an ArrayList Example - 20.
import java.util.*;
public class LinkedListExample {
public static void main(String[] args) {
LinkedList<String> ll = new LinkedList<String>();
// Adding elements to the linked list.
ll.add("A");
ll.add("B");
ll.addLast("C");
... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.rest.action;
import org.elasticsearch.ac... |
package com.vaadin.tests.components.ui;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractTestUI;
import com.vaadin.ui.Label;
import com.vaadin.ui.Window;
public class WindowWithLabel extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
set... |
import java.util.Random;
import java.util.Scanner;
public class RandomizeWords {
public class RandomWords {
String random;
}
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String[] words = scanner.nextLine().split(" ");
Random rnd = new ... |
package xyz.maow.surrealj;
public abstract class SurrealContext {
public <T> Serializer<T> getSerializer(Class<T> cls) {
throw new UnsupportedOperationException();
}
public <T> Deserializer<T> getDeserializer(Class<T> cls) {
throw new UnsupportedOperationException();
}
... |
package com.cisco.restend.controller;
import com.cisco.restend.model.ResDTO;
import com.cisco.restend.model.UserDTO;
import com.cisco.restend.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("api/v1/us... |
/*
* 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... |
package com.google.copybara.transform;
import static com.google.common.truth.Truth.assertThat;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.fail;
import com.google.common.jimfs.Jimfs;
import com.google.copybara.exception.ValidationException;
import com.google.copybara.testing.... |
// Implement a trie with insert, search, and startsWith methods.
// Note:
// You may assume that all inputs are consist of lowercase letters a-z.
// Your Trie object will be instantiated and called as such:
// Trie trie = new Trie();
// trie.insert("somestring");
// trie.search("key");
class TrieNode {
HashMap<C... |
/*
* 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 net.minecraft.client.renderer;
import com.google.common.collect.Lists;
import java.util.List;
import net.minecraft.client.renderer.chunk.RenderChunk;
import net.minecraft.util.BlockRenderLayer;
import net.minecraft.util.math.BlockPos;
import zamorozka.event.events.EventRenderChunkContainer;
public abstract cl... |
/*
* <copyright> Copyright 1997-2003 BBNT Solutions, LLC under sponsorship of the
* Defense Advanced Research Projects Agency (DARPA).
* Copyright 2009 Swiss AviationSoftware Ltd.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the Cougaar Open Source Licens... |
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the “License”). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... |
// 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) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.networktables;
/** NetworkTables Remote Procedure Call. */
public final class RpcCall implements ... |
/**
* Copyright (C) 2018 iXsystems
*
* 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 conditio... |
/**
* MIT License
*
* Copyright (c) 2010 - 2020 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* 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 withou... |
package io.github.dunwu.tool.date;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class DateFieldTest {
@Test
public void ofTest() {
DateField field = DateField.of(11);
Assertions.assertEquals(DateField.HOUR_OF_DAY, field);
field = DateField.of(12);... |
/*
* Copyright 2019 etrace.io
*
* 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... |
/*
* #%L
* *********************************************************************************************************************
*
* NorthernWind - lightweight CMS
* http://northernwind.tidalwave.it - git clone https://bitbucket.org/tidalwave/northernwind-src.git
* %%
* Copyright (C) 2011 - 2021 Tidalwave s.a.s.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.