text stringlengths 7 1.01M |
|---|
import java.util.*;
/* 1838. Frequency of the Most Frequent Element */
public class Solution {
public int maxFrequency(int[] nums, int k) {
Arrays.sort(nums);
int n = nums.length;
long total = 0;
int l = 0, res = 1;
for (int r = 1; r < n; ++r) {
total += (long) (... |
package org.oulipo.streams.opcodes;
import java.io.IOException;
/**
* Puts meta-data into <code>DocumentFile</code>
*/
public final class PutMetaDataOp extends Op {
/**
* Constructs <code>PutMetaDataOp</code> with specified indexes
*
*/
public PutMetaDataOp(int subjectIndex, int predicateIndex, int object... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/servicecontrol/v1/service_controller.proto
package com.google.api.servicecontrol.v1;
public interface ReportResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.servicecontrol.v1.ReportResponse)
com... |
/*
* MIT License
*
* Copyright (c) 2019 Consumer Agent Portal, LLC (TrustedChoice.com)
* Superkick Ventures, LLC (Ask Kodiak)
*
* 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 t... |
package module0069_public_tests_unittests.a;
import javax.rmi.ssl.*;
import java.awt.datatransfer.*;
import java.beans.beancontext.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et ac... |
package gamejam.spy.gameObjects.tiles;
public class SpikeTile {
}
|
package Creational.AbstractFactory.GlobalCarFactory;
public class CarFactory {
private CarFactory() {
// Prevent instantiation
}
public static Car buildCar(CarType model) {
Car car = null;
// Read location property somewhere from configuration
Location location = Location.ASIA;
// Use loc... |
package com.elmakers.mine.bukkit.utility;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
import... |
/**
* This class is generated by jOOQ
*/
package org.jooq.test.mariadb.generatedclasses.tables.records;
/**
* This class is generated by jOOQ.
*
* VIEW
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class VLibraryRecord extends org.jooq.impl.TableRecordImpl<org.jooq.test.mariadb.genera... |
/*
* 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) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
/*
* Copyright (c) 2020, 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... |
/*
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package mage.cards.l;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.commo... |
package com.railone.open.api.util;
import com.railone.open.api.enums.CharsetEnum;
import org.apache.commons.lang3.StringUtils;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import javax.management.RuntimeErrorException;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorit... |
package cn.geekhall.controller;
import cn.geekhall.bean.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import o... |
package cn.izern.case4.encryption;
import cn.izern.case4.encryption.Digest.DigestAlgorithm;
import cn.izern.case4.encryption.codec.HexCoder;
import org.junit.Test;
/**
* 各种摘要算法
*
* @author: zern
* @since 1.0.0
*/
public class DigestTest {
@Test
public void digest() {
DigestAlgorithm[] digestAlgorithmVa... |
/*
* Copyright 2013-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package com.jjjzzzqqq.rpc.server;
import com.ticknet.jjjzzzqqq.entity.RpcRequest;
import com.ticknet.jjjzzzqqq.entity.RpcResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Invocat... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Copyright (C) 2020 Alberto Irurueta Carro (alberto@irurueta.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
*
* Unles... |
/*
* #%L
* hspc-client
* %%
* Copyright (C) 2014 - 2015 Healthcare Services Platform Consortium
* %%
* 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/li... |
/*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2020 Fabian Prasser and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... |
package com.synopsys.integration.detectable.detectables.go.unit;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationO... |
/**
* Copyright (C) 2009-2017 Simonsoft Nordic AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
package io.cucumber.core.options;
public final class Constants {
/**
* File name of cucumber properties file: {@value}
*/
public static final String CUCUMBER_PROPERTIES_FILE_NAME = "cucumber.properties";
/**
* Property name used to pass command line options: {@value}
* <p>
* When... |
/**
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in co... |
/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the BSD-3 License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicab... |
package com.seizedays.semall.webutils.configs;
import feign.Request;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class FeignConfig {
@Value("${service.feign.c... |
package it.unimol.tracker;
import com.mongodb.BasicDBObject;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import org.bson.Document;
import org.telegram.telegrambots.bots.TelegramLongPollingBot;
import org.telegram.telegrambots.meta.api.methods.send... |
/**
* 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) 2018 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.web.json.convention;
import java.util.Map;
import com.opengamma.core.id.ExternalSchemes;
import com.opengamma.financial.convention.FixedLegRollDateConvention;
import com.opengamma.financial.conventio... |
/*
* Copyright 2008 Android4ME
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
/**
* Copyright 2016 LinkedIn 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 applica... |
/*
* 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 foundation.rpg.sample.language.ast;
import foundation.rpg.parser.Element;
import foundation.rpg.parser.UnexpectedInputException;
// Generated token element wrapper for grammar parser.
public class ElementGt implements Element<State> {
private final foundation.rpg.common.symbols.Gt symbol;
public Elem... |
package domain;
public class FT {
private String TID;
private String FID;
private int TC;
public FT(){}
public FT(String Fid, String Tid, int tc)
{
FID=Fid;
TID=Tid;
TC=tc;
}
public String getTID() {
return TID;
}
public void setTID(String tID) {
TID = tID;
}
public String getFID() {
return F... |
package com.tvd12.ezyfox.codec;
import java.nio.ByteBuffer;
import java.util.Queue;
public class MsgPackByteToObjectDecoder implements EzyByteToObjectDecoder {
protected final EzyDefaultDecodeHandlers handlers;
protected final EzyMessageDeserializer deserializer;
public MsgPackByteToObjectDecoder(
EzyMessage... |
/*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package seedu.address.logic.parser;
import static java.util.Objects.requireNonNull;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import seedu.address.commons.core.index.Index;
import seedu.address.commons.util.StringUtil;
import seedu.address.logic.parser.exceptions.ParseException;
im... |
// SPDX-License-Identifier: Apache-2.0
// Copyright Contributors to the OpenTimelineIO Project.
package io.opentimeline.opentimelineio;
import io.opentimeline.opentime.TimeRange;
import io.opentimeline.opentimelineio.exception.OpenTimelineIOException;
import java.util.List;
public class Algorithms {
/**
*... |
package com.example.demo.infrastructure.scalars;
import com.netflix.graphql.dgs.DgsComponent;
import com.netflix.graphql.dgs.DgsRuntimeWiring;
import graphql.scalars.ExtendedScalars;
import graphql.schema.idl.RuntimeWiring;
/**
* graphql-java provides optional scalars in the graphql-java-extended-scalars library.
*... |
package ca.weblite.objc;
import ca.weblite.nativeutils.NativeUtils;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.Union;
import com.sun.jna.ptr.ByReference;
import com.sun.jna.ptr.ByteByReference;
import com.sun.jna.ptr.DoubleByReference;
import com.sun.jna.ptr.FloatByReference;
import ... |
/*
* Copyright (c) 2002-2021 Gargoyle Software 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
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/*
* Copyright (c) 2002-2014 Gargoyle Software 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 ... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.graphics.drawable.animated;
public final class R {
private R() {}
public static final class attr {
... |
package ui;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import aya.Aya;
// Initial implement... |
package br.com.u2d.nfe.schema_4.inutNFe;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java de TUf.
*
* <p>O seguinte fragmento do esquema especifica o contedo esperado contido dentro desta classe.
* <p>
* <pre>
* <simpleType name="TUf">
* <restr... |
/*
* 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 ... |
/*
* 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.ms.silverking.cloud.ring;
/**
* disjoint:
* aaaaaa
* bbbbbb
* isomorphic:
* aaaaaa
* bbbbbb
* abPartial:
* aaaaaa
* bbbbbb
* baPartial:
* aaaaaa
* bbbbbb
* aSubsumesB:
* aaaaaa aaaaaaaa aaaaaa
* bbbb bbbb bbbb
* bSubsumesA:
* aaaa aaaa aaaa
* bbbbbb bbbbbbbb bbbbbb... |
package com.fdmgroup.entities;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class SiteUser{
@Id
private String username;
private String password;
private String firstName;
private String lastName;
private String email;
private String address;
private String postcode;
public ... |
package com.browserstack.client.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Platform implements Serializable {
@JsonProperty("os")
private String os;
... |
package com.cmu.project.pianogame.MainActivity.Fragments.ShopFragments;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
i... |
package com.company.transfer.service;
import com.company.transfer.dao.AccountsDAO;
import com.company.transfer.dao.TransfersDAO;
import com.company.transfer.handlers.common.Answer;
import com.company.transfer.lock.TransferLock;
import com.company.transfer.lock.TransferLockImpl;
import com.company.transfer.model.Accoun... |
package com.kelvinhanma.todo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import androi... |
package ru.aserdyuchenko.set.task_3;
import java.util.Arrays;
import java.util.Iterator;
/**
* @author anton.
* @param <E> - element.
*/
public class MyHashTable<E> implements Iterable<E> {
/**
* @param objects - objects.
*/
private Object[] objects;
/**
* Constructor.
*/
public... |
/*
* Copyright 2004-2014 Brian McCallister
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014-2020 Groupon, Inc
* Copyright 2020-2020 Equinix, Inc
* Copyright 2014-2020 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not ... |
package tech.teslex.telegroo.telegram.api.types;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
/**
* This object contains information about a poll.
*/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public clas... |
package supply.me.server.povoador;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.appengine.api.search.Document;
import com.google.appengine.api.search.Field;
import com.google.appengine... |
/*
* Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/**
* Copyright 2008 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 agreed t... |
package com.example.contest_2019_1.part_activity;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.... |
package mont.gonzalo.phiuba.model;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.util.Range;
import java.io.Serializable;
public class UserCourse implements Serializable {
private Course course;
private CourseStatus status;
private CathedraSchedule schedule;
... |
package questao8;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.JRadioButton;
import javax.s... |
package com.senla.rakickaya.courseplanner.ui.actions.students;
import java.util.List;
import com.senla.rakickaya.courseplanner.api.beans.IStudent;
import com.senla.rakickaya.courseplanner.api.data_exchange.IRequest;
import com.senla.rakickaya.courseplanner.api.data_exchange.IResponse;
import com.senla.rakickay... |
package com.code.model;
public class Contato {
private Integer id;
private String nome;
private String telefone;
private String email;
private String nascimento;
private String endereco;
public static Contato contatoSave;
public static Contato getContatoSave() {
return con... |
package adamin90.com.qqd.moled.wandetail;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class Datas {
@SerializedName("id")
@Expose
... |
package de.karzek.diettracker.presentation.main.cookbook.recipeDetails.adapter.viewHolder;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android... |
/*
* Copyright ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing... |
/*
* Copyright 2017-2020 original 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 agre... |
package com.commerce.backend.dto;
import com.commerce.backend.validator.PasswordMatches;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Getter
@Setter
@ToStri... |
package com.customize.test.self.factory_method;
/**
* @author phil
* @date 2020/11/20 22:26
*/
public class StaticFactory {
public static YoungPeople getYoungPeople(String name){
YoungPeople youngPeople = new YoungPeople();
youngPeople.setId(1);
youngPeople.setName(name);
return youngPeople;
}
}
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* Licensed 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... |
// Copyright 2016 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.offlinepages;
/** Set of system conditions to trigger background processing. */
public class TriggerConditions {
... |
public class OutOfTimeException extends Exception {
}
|
package org.jooby.spec;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.nio.file.Path;
import java.util.List;
import org.jooby.Jooby;
import org.junit.Test;
import apps.PetApp;
public class ImportAppTest {
private Path basedir = new File(System.getProperty("user.dir")).toPath();
... |
/*
* Copyright 2000-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... |
package cn.ykf.thread;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.Socket;
import java.nio.charset.StandardCharsets;
import java.util.Scanner;
/**
* @author YuKaiFan <1092882580@qq.com>
* @date 2020-10-13
*/
public class EchoHandler implements Runnable... |
package com.example.activitytest.state;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.util.SparseArray;
import com.example.activitytest.R;
import com.example.activitytest.activit... |
package stest.tron.wallet.dailybuild.tvmnewcommand.clearabi;
import static org.hamcrest.core.StringContains.containsString;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import java.util.concurrent.TimeUnit;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.testng.annotation... |
package com.rjv.graphql.example.resource;
import com.rjv.graphql.example.service.CustomerGraphQLService;
import graphql.ExecutionResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.... |
package org.ormfux.common.utils.testcollectionutils;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import java.util.ArrayList;
import java.util.Arrays;
import org.junit.Test;
import org.ormfux.common.utils.CollectionUtils;
public class SelectFirstTest {
... |
package perf;
/**
* 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 "Lic... |
/*
Copyright [2020] [Intergral 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.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
/*
* 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.thebhakti;
/**
* Created by Yeshveer on 11/17/2018.
*/
class ChatMsg2 {
String id,name,msg,userType,time,seen;
public ChatMsg2(String id, String name, String msg, String userType, String time,String seen) {
this.id=id;
this.name=name;
this.msg=msg;
this.userType=u... |
/*
* 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 2020 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
package com.alibaba.csp.sentinel.dashboard.rule.nacos;
import com.alibaba.csp.sentinel.dashboard.datasource.entity.rule.FlowRuleEntity;
import com.alibaba.csp.sentinel.dashboard.datasource.entity.rule.ParamFlowRuleEntity;
import com.alibaba.csp.sentinel.dashboard.rule.DynamicRuleProvider;
import com.alibaba.csp.sentin... |
package io.cosmos.common;
public class ProdEnv extends EnvBase {
public String GetRestServerUrl(){
return "https://stargate.evaio.net";
}
}
|
package com.deer.wms.bill.manage.service;
import com.deer.wms.bill.manage.model.MtAloneAuditNodeOpinionTab;
import com.deer.wms.bill.manage.model.MtAloneAuditNodeOpinionTabParams;
import com.deer.wms.bill.manage.model.MtAloneAuditNodeOpinionTabVo;
import com.deer.wms.project.seed.core.service.Service;
import java.uti... |
package com.nurseryapi.model.response.lookup;
import com.nurseryapi.entity.lookup.MajorEntity;
import com.nurseryapi.utils.Mapper;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class MajorResponse {
private Long id;
private String label;
/**
*
* @param majorEntity
*/
public MajorRes... |
package com.brain.jd.domain;
/**
* @author : Brian
* @date : 2017/7/19
*/
public class RTopCategoryBean {
// "id": 分类id,
// "bannerUrl": "分类图片路径",
// "name": "分类名称"
private double id;
private String bannerUrl;
private String name;
@Override
public String toString() {
... |
package com.ssrs.platform.extend.item;
import com.ssrs.platform.MenuManager;
import com.ssrs.platform.extend.ILogType;
import com.ssrs.platform.model.Menu;
import java.util.HashMap;
import java.util.Map;
/**
* 用户菜单操作日志
*
* @author ssrs
*/
public class UserMenuLog implements ILogType {
public static final Str... |
package June2021AppleLeetcode;
import java.util.List;
public class _0093RestoreIPAddress {
public static void main(String[] args) {
System.out.println(restoreIpAddresses("25525511135"));
System.out.println(restoreIpAddresses("0000"));
System.out.println(restoreIpAddresses("1111"));
System.out.println(restor... |
package org.apereo.cas.mgmt;
import lombok.Data;
import java.io.Serializable;
/**
* Component to represent a commit message.
*
* @author Misagh Moayyed
* @since 6.3
*/
@Data
public class CommitMessage implements Serializable {
private String message;
private String title;
}
|
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.