text stringlengths 7 995k |
|---|
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* 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 com.mkcode.goballistic.ground;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.mkcode.goballistic.gameobjects.GroundElement;
import com.mkcode.goballistic.math.MToPx;
import com.mkcode.goballistic.... |
/*
* 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 seedu.planner.logic.commands;
import java.util.List;
import seedu.planner.commons.util.StringUtil;
import seedu.planner.model.Model;
import seedu.planner.model.module.ModuleCode;
/**
* Display currently selected student and timetable (if any).
*/
public class StatusCommand extends Command {
public sta... |
package net.minecraft.server;
import java.lang.reflect.Type;
import net.minecraft.util.com.google.gson.JsonDeserializationContext;
import net.minecraft.util.com.google.gson.JsonDeserializer;
import net.minecraft.util.com.google.gson.JsonElement;
import net.minecraft.util.com.google.gson.JsonObject;
import net.minecra... |
package io.kubernetes.client.openapi.models;
import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
public class V1RoleRefFluentImpl<A extends io.kubernetes.client.openapi.models.V1RoleRefFluent<A>> extends io.kubernetes.... |
package com.Leetcode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import com.DataStructure.BinarySearchTree;
public class BinaryTreeLevelOrderTraversal102 {
public static List<List<Integer>> levelOrder(BinarySearchTree.TreeNode root) {
if (root... |
package com.bumptech.glide.load.engine.cache;
import android.support.annotation.NonNull;
import android.support.v4.util.Pools;
import com.bumptech.glide.load.Key;
import com.bumptech.glide.util.LruCache;
import com.bumptech.glide.util.Preconditions;
import com.bumptech.glide.util.Synthetic;
import com.bumptech.glide.u... |
package com.zetcode;
import com.zetcode.conf.AppConfig;
import io.undertow.Undertow;
import io.undertow.servlet.Servlets;
import io.undertow.servlet.api.DeploymentInfo;
import org.jboss.resteasy.core.ResteasyDeploymentImpl;
import org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer;
import org.jboss.resteas... |
/**
*
* Copyright (c) 2006-2018, Speedment, Inc. 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 requ... |
/*
Copyright 2014-2016 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 agreed to in writing, s... |
/* */ package classes.lrg.insider.plugins.core.properties.hismo.classes;
/* */
/* */ import lrg.common.abstractions.entities.AbstractEntityInterface;
/* */ import lrg.common.abstractions.entities.ResultEntity;
/* */ import lrg.insider.plugins.core.properties.hismo.HismoDetail;
/* */ import lrg.inside... |
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... |
public class DogClient {
public static void main(String[] args) {
Dog p1 = new Dog("Alfie", 2, "Chihuahua");
System.out.println(p1);
}
} |
package Q7_12_Hash_Table;
import java.util.ArrayList;
public class Hasher<K, V> {
private static class LinkedListNode<K, V> {
public LinkedListNode<K, V> next;
public LinkedListNode<K, V> prev;
public K key;
public V value;
public LinkedListNode(K k, V v) {
key = k;
value = v;
}
public String ... |
package baylandtag.av_combobox_edit_in_table;
import javafx.scene.Parent;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleButton;
import javafx.scene.layout.GridPane;
public class LoginUi {
private TextField data... |
package com.bolingcavalry.messagettlproducer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MessagettlproducerApplication {
public static void main(String[] args) {
SpringApplication.run(Messagettlproduce... |
/*
* Copyright (c) 2019 tdf4j
*
* 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... |
/*
* Copyright 2014-present Facebook, 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... |
/*
* 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 distributed under t... |
package DataStructures.List;
/**
* 这个类文件实现了一个单链表。
*
* 单链表可以想数组一样,保存一系列的值。但是单链表不需要关心数据的长度,它的长度可以在
* 程序的运行过程中变长或者变短。对此单链表,增加或删除数据只能在链表头部和尾部进行。
*/
public class SinglyLinkedList {
/**
* head变量指向链表的头结点,该头结点不保存数据,只保存第一数据结点的引用。
*/
private Node head;
/**
* 表示链表的长度,当有一个数据节点时 size 值为1。
*/
... |
/*
* Copyright 2009-2021 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
*
* Unles... |
/**
* 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.codehaus.mojo.jsimport;
/*
* 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,... |
package com.baomidou.samples.seata.service.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.samples.seata.entity.Product;
import com.baomidou.samples.seata.mapper.ProductMapper;
import com.baomidou.samples.seata.service.ProductService;
import io.seata.core.context.RootContext;
import lom... |
/*
* 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... |
/*
* (C) Copyright 2017-2020, by Joris Kinable and Contributors.
*
* JGraphT : a free Java graph-theory library
*
* See the CONTRIBUTORS.md file distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* ... |
/*********************************************************************************
* *
* The MIT License (MIT) *
* ... |
/**
* This class is generated by jOOQ
*/
package com.psygate.minecraft.spigot.sovereignty.banda.db.model.tables.records;
import com.psygate.minecraft.spigot.sovereignty.banda.db.model.tables.BandaProtection;
import com.psygate.minecraft.spigot.sovereignty.banda.db.model.tables.interfaces.IBandaProtection;
import j... |
package org.observertc.webrtc.observer.repositories.tasks;
import io.micronaut.context.annotation.Prototype;
import org.observertc.webrtc.observer.common.ChainedTask;
import org.observertc.webrtc.observer.dto.MediaTrackDTO;
import org.observertc.webrtc.observer.micrometer.ExposedMetrics;
import org.observertc.webrtc.o... |
package tests;
// Test case for issue 343.
// https://github.com/typetools/checker-framework/issues/343
// This exists to just run the NestedAggregateChecker
import java.io.File;
import java.util.List;
import org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest;
import org.junit.runners.Parameterized.... |
package com.ty.order.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.sql.Time;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date... |
/*
* DiSNI: Direct Storage and Networking Interface
*
* Author: Patrick Stuedi <stu@zurich.ibm.com>
*
* Copyright (C) 2016, IBM 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 Licen... |
/*
* 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.eosrp.db;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
public class PostgresHelper {
private Connection conn;
private String strHost;
private... |
package io.devv.test;
import org.zeromq.ZMQ;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import proto.Devv.Devv;
import proto.Devv.Devv.Envelope;
import proto.Devv.Devv.FinalBlock;
import proto.Devv.Devv.Proposal;
import proto.Devv.Devv.Transaction;
import proto.... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
//... |
package me.hugeblank.allium.lua.api;
import com.google.common.base.Strings;
import com.google.gson.JsonElement;
import me.hugeblank.allium.loader.Script;
import me.hugeblank.allium.loader.ScriptResource;
import me.hugeblank.allium.lua.type.annotation.LuaWrapped;
import me.hugeblank.allium.lua.type.annotation.OptionalA... |
/**
* 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 org.codehaus.plexus.redback.authentication;
/*
* Copyright 2005 The Codehaus.
*
* 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... |
/*
* 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 br.com.senaigo.mobile.vouaprenderandroid.atividades;
import android.os.Bundle;
import android.view.View;
import br.com.senaigo.mobile.vouaprenderandroid.R;
import br.com.senaigo.mobile.vouaprenderandroid.adapters.MedicoAdapter;
import br.com.senaigo.mobile.vouaprenderandroid.entidades.Medico;
public class C... |
package com.wl.data.ui;
import android.os.Bundle;
import android.widget.TextView;
import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.guiying.module.common.base.BaseActionBarActivity;
import com.guiying.module.common.bean.EventBusBean;
... |
package 爬虫.数据解析.网易云热评爬取;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.htt... |
/*
* 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... |
// Template Source: BaseEntity.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------------------... |
package net.buildtheearth.terraminusminus.projection.transform;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.google.common.base.... |
/*
* Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
* 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, 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 may ... |
/**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unle... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... |
/*
* 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... |
/*
* 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.acgist.snail.utils;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
class DigestUtilsTest extends Performance {
@Test
void testDigestUtils() {
assertNotNull(DigestUtils.md5());
assertNotNu... |
/* GROOVE: GRaphs for Object Oriented VErification
* Copyright 2003--2011 University of Twente
*
* 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... |
package abi19_0_0.host.exp.exponent.modules.api.fbads;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import com.facebook.ads.Ad;
import com.facebook.ads.AdError;
import com.facebook.ads.AdListener;
import com.facebook.ads.AdSize;
import com.facebook.ads.AdVi... |
/**
*
*/
package hu.hw.cloud.shared.dto.task;
import hu.hw.cloud.shared.cnst.TaskAttrType;
import hu.hw.cloud.shared.dto.Dto;
/**
* @author robi
*
*/
@SuppressWarnings("serial")
public class TaskAttrDto implements Dto {
private TaskAttrType type;
private String value;
public TaskAttrDto() {}
public Ta... |
package com.interview.graph;
import java.util.LinkedList;
import java.util.Queue;
enum Cell{
SPACE,
BLOCK,
GUARD;
}
class Point{
int x;
int y;
Point(int x, int y){
this.x = x;
this.y = y;
}
}
/**
* @Date 07/05/2015
* @author Tushar Roy
*
* Given a 2 D floor plan with empty space, block and multiple ... |
package jgi;
import java.io.File;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import stream.ConcurrentGenericReadInputStream;
import stream.ConcurrentReadInputStream;
import stream.FASTQ;
import stream.FastaReadInputStream;
import stream.ConcurrentReadOutputStream;
import stream.R... |
package com.iblogstreet.base;
import com.iblogstreet.core.template.IService;
/**
* @author Lance
* @date 2018/3/6
* <p>
* <p>
* 需要组件共享的服务需要将服务在此暴露
*/
public interface TestService extends IService {
void test();
} |
package com.sayyi.software.tbp.generator.dsl.fieldstr;
/**
* @author xuchuang
* @date 2021/5/18
*/
public class JSetString implements JType{
@Override
public String getSign() {
return "setstring";
}
@Override
public String importStr() {
return "import java.util.HashSet;\n" +
... |
package com.ezlinker.app.modules.role.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ezlinker.app.common.model.XEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* <p>
* 用户角色
* </p>
*
* @author wangwenhai
* @since 2019-11-11
*/
@Data... |
package org.draxent.funwap.syntacticanalysis;
import static org.junit.Assert.assertEquals;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.powermock.api.mockito.PowerMockito.when;
impor... |
package org.mockserver.model;
import org.junit.Test;
import org.mockserver.uuid.UUIDService;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNot.not;
import static org.mockserver.character.Character.NEW_LINE;
import static org.mockserver.mo... |
package com.planet_ink.coffee_web.servlets;
import java.io.IOException;
import java.text.DateFormat;
import java.util.Date;
import com.planet_ink.coffee_web.http.HTTPMethod;
import com.planet_ink.coffee_web.http.HTTPStatus;
import com.planet_ink.coffee_web.http.MIMEType;
import com.planet_ink.coffee_web.interfaces.Si... |
/*L
* Copyright SAIC, Ellumen and RSNA (CTP)
*
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
*/
/**
* $Id$
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2007/08/14 16:53:47 bauerd
* Removed the repop... |
package it.unical.mat.parsers.asp.asp_parser_base;
// Generated from ASPGrammar.g4 by ANTLR 4.7
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.misc.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
import java.util.Iterator... |
// Copyright 2017 JanusGraph 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 agree... |
/*
* 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.gzl.dge.framework.shiro.web.session;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import org.apache.shiro.session.mgt.DefaultSessionManager;
import org.apache.shiro.session.mgt.SessionValidationScheduler;
import org.apach... |
/*
* 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 org.gwtproject.i18n.shared.cldr.impl;
import java.lang.Override;
import java.lang.String;
import javax.annotation.Generated;
import org.gwtproject.i18n.shared.cldr.DateTimeFormatInfo;
import org.gwtproject.i18n.shared.cldr.LocaleInfoImpl;
import org.gwtproject.i18n.shared.cldr.LocalizedNames;
import org.gwtpro... |
package no.ntnu.sysdev.springtutorial;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class SpringTutorialApplicationTests {
@Test
p... |
package edu.upc.eetac.dsa.beeter.client;
/**
* Created by Alex on 26/12/15.
*/
public class BeeterClientException extends Exception{
public BeeterClientException(String detailMessage) {
super(detailMessage);
}
} |
/*
Copyright 2016-2019 Bowler Hat 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 writing, softwar... |
package com.credtrip.config;
/**
* Created by caibinglong
* on 2016/11/2.
*/
public class PayConfig {
private final static boolean isDebug = false;
public static String version = "1.0";
public static String product = "01";
public static String signType = "MD5"; //SHA:SHA签名方式 MD5:MD5签名方式
public s... |
/*
* MIT License
*
* Copyright (c) 2021 IceyLeagons and 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 without restriction, including without limitation the rights
* t... |
package com.wzlab.smartsecurity.net;
/**
* Created by wzlab on 2018/6/2.
*/
public enum HttpMethod {
GET, POST
} |
package com.androidhuman.rxfirebase2.firestore;
import com.androidhuman.rxfirebase2.firestore.core.OnCompleteDisposable;
import com.google.android.gms.tasks.Task;
import com.google.firebase.firestore.DocumentReference;
import androidx.annotation.NonNull;
import io.reactivex.Completable;
import io.reactivex.Completabl... |
package net.andreho.struct.map.impl.linear;
import net.andreho.struct.map.MutableEntry;
import java.util.Iterator;
/**
* <br/>Created by a.hofmann on 09.04.2017 at 23:53.
*/
final class LinearProbingMapEntryViewIterable<K, V> implements Iterable<MutableEntry<K, V>> {
final LinearProbingHashMap<K, V> map;
fin... |
package q250;
import java.util.HashSet;
import java.util.Set;
import org.junit.runner.RunWith;
import util.runner.Answer;
import util.runner.LeetCodeRunner;
import util.runner.TestData;
import util.runner.data.DataExpectation;
/**
* https://leetcode.com/problems/contains-duplicate-ii/
*
* Given an array of integer... |
package com.linxonline.mallet.audio.android ;
import android.media.* ;
import com.linxonline.mallet.io.formats.wav.WAVHeader ;
import com.linxonline.mallet.audio.android.AndroidSound ;
import com.linxonline.mallet.audio.* ;
import com.linxonline.mallet.util.SourceCallback ;
/**
Provides the entry point in manipul... |
package com.thekua.spikes;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.Appender;
import ch.qos.logback.core.AppenderBase;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* 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 may ... |
/**
*/
package gluemodel.substationStandard.LNNodes.LNGroupY.impl;
import gluemodel.substationStandard.Dataclasses.DPL;
import gluemodel.substationStandard.Enumerations.HealthStateKind;
import gluemodel.substationStandard.LNNodes.DomainLNs.impl.DomainLNImpl;
import gluemodel.substationStandard.LNNodes.LNGroupY.Gro... |
package mage.cards.s;
import java.util.UUID;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.keyword.BuybackAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetAnyTarget;
/**
*
* @author LevelX2
*/
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... |
/*
* Copyright 2014 Google Inc. 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 ... |
//---------------------------------------------------------------------------
// Copyright 2006-2009
// Dan Roozemond, d.a.roozemond@tue.nl, (TU Eindhoven, Netherlands)
// Peter Horn, horn@math.uni-kassel.de (University Kassel, Germany)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// y... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
// Copyright 2013 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.chrome.browser.util;
import android.support.test.filters.SmallTest;
import org.junit.Assert;
import org.junit.Before;
import org.ju... |
package com.birt.common.controller;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.w... |
/*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... |
package com.github.ayberkcansever.mercury.io.event;
import com.github.ayberkcansever.mercury.event.EventListener;
import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;
public abstract class IOEventListener implements EventListener {
@Subscribe
@AllowConcurrentE... |
package com.jfixby.r3.physics;
import org.box2d.jfixby.api.BodyDef;
import org.box2d.jfixby.api.Box2DComponent;
import org.box2d.jfixby.api.Box2DWorld;
import org.box2d.jfixby.api.CircleShape;
import org.box2d.jfixby.api.FixtureDef;
import org.box2d.jfixby.api.PolygonShape;
//import com.jfixby.r3.api.unit.components.... |
package org.batfish.datamodel.questions;
import static org.batfish.datamodel.questions.BgpProcessPropertySpecifier.isRouteReflector;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import com.google.common.collect.ImmutableSortedMap;
import org.batfish.datamodel.BgpActivePeerCon... |
/*
* Copyright 2007 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... |
package com.example.peter.helloworld;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
/**
* Created by Peter on 2017/5/15.
*/
public class WeeksAdapter extends Recycle... |
package dev.utils.app.logger;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.text.TextUtils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.PrintWrite... |
/* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.