text stringlengths 7 995k |
|---|
/**
* 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.intranet.graphics.raytrace.surface.pattern2d;
import org.intranet.graphics.raytrace.primitive.Color;
public class AlignCheckUvPattern
implements UvPattern
{
private Color main;
private Color ul;
private Color ur;
private Color bl;
private Color br;
public AlignCheckUvPattern(Color main, Color ul, ... |
package cc.heikafei.se50;
/**
* 题目:两个字符串连接程序,将两个字符串拼接在一起
*/
public class myPractice46 {
public static void main(String[] args) {
String str1 = "hello";
String str2 = "ning";
String str = str1 + str2;
System.out.println(str);
}
} |
package lk.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Customer{
@Id
private String id;
private String name;
private String address;
private double salary;
public Customer() {
}
public Customer(String id, String name, String address, dou... |
/*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2007 University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... |
/*
* Copyright 2015 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
*
* Unless required by applicable l... |
/**
* Copyright (c) 2018, Mr.Wang (recallcode@aliyun.com) All rights reserved.
*/
package cn.wizzer.iot.mqtt.server.auth.service;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.asymmetric.KeyType;
import cn.hutool.crypto.asymmetric.RSA;
import cn.wizzer.iot.mqtt.server.... |
package array;
public class SumOfUniqueElements {
int[] cnt = new int[110];
/**
* @Author JaneRoad
* @Description 1748. 唯一元素的和
* @Date 15:18 2022/2/7
* @Param
* @param nums
* @return
* @return int
**/
public int sumOfUnique(int[] nums) {
for (int i : nums) cn... |
package io.swagger.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax... |
package tconstruct.tools;
import tconstruct.common.TProxyCommon;
import mantle.blocks.abstracts.InventoryLogic;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.netw... |
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2017 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation ... |
package com.logzc.webzic.reflection.fs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.JarURLConnection;
import java.net.URL;
import java.util.*;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/**
* This is the implement of jar for ZicDir.
* Creat... |
/**
*
* Copyright 2009-2011 Rickard Öberg 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 applicable law... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.http;
import com.yahoo.config.application.api.ApplicationFile;
import com.yahoo.slime.Cursor;
import com.yahoo.slime.JsonFormat;
import com.yahoo.slime.Slime;
im... |
package socialite.tables;
import socialite.util.HashCode;
import java.io.Externalizable;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.IOException;
import socialite.util.SociaLiteException;
public class Tuple_int_float_float extends Tuple implements Externalizable {
private static final long... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2010.... |
/*
* 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.zp95sky.luanniao.user.service.impl;
import cn.hutool.core.lang.Snowflake;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zp95sky.luanniao.user.dto.AddUserDto;
import com.zp95sky.luanniao.user.entity.Us... |
package net.minecraft.network.protocol.game;
import net.minecraft.core.BlockPosition;
import net.minecraft.network.PacketDataSerializer;
import net.minecraft.network.protocol.Packet;
public class PacketPlayOutSpawnPosition implements Packet<PacketListenerPlayOut> {
public final BlockPosition pos;
private fin... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* 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
*... |
package zserio.emit.cpp.types;
import java.util.List;
public class NativeHeapOptionalHolderType extends NativeOptionalHolderType
{
public NativeHeapOptionalHolderType(List<String> zserioNamespace, String zserioIncludePathRoot,
CppNativeType wrappedType)
{
super(zserioNamespace, zserioInclu... |
/*
* 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 © 2016-2022 The Thingsboard 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 applicab... |
package org.hzero.wechat.dto;
public class CreateAddConditionalMenuResultDTO extends DefaultResultDTO {
// "menuid":"208379533"
private String menuid;
public String getMenuid() {
return menuid;
}
public void setMenuid(String menuid) {
this.menuid = menuid;
}
} |
/*
* Copyright Calvin Lee Since 2016.
* All Rights Reserved.
*/
package org.calvin.Numbers;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PowerOfNTest {
private PowerOfN fixture;
@Before
public void setUp() throws Exception {
fixture... |
/*
* MIT License
*
* Copyright (c) 2020 Azercoco & Technici4n
*
* 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, ... |
package distudios.at.carcassonne.engine.logic;
import java.util.ArrayList;
import java.util.List;
public class Score {
private boolean closed = true;
private CardSide base;
private List<Integer> ppeepcount;
private List<Card> cardlist;
private List<Peep> peeplist;
public Score(CardSide base, ... |
package com.msun.thirdpartyPay.wepay.model.enums;
/**
* 退款渠道
*
* @author zxc Apr 13, 2017 6:44:21 PM
*/
public enum RefundChannel {
/**
* 原路退款
*/
ORIGINAL("ORIGINAL"),
/**
* 退款到余额
*/
BALANCE("BALANCE");
private String type;
private RefundChannel(String type) {
... |
/*
* MIT License
*
* Copyright (c) 2016 Alibaba Group
*
* 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, mo... |
package ch.admin.bag.covidcertificate.service;
import ch.admin.bag.covidcertificate.api.exception.CreateCertificateException;
import ch.admin.bag.covidcertificate.api.exception.CsvException;
import ch.admin.bag.covidcertificate.api.request.*;
import ch.admin.bag.covidcertificate.api.response.CovidCertificateCreateResp... |
/*
* Copyright (c) 2021 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.bootloader;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.A... |
package alex;
import asint.ClaseLexica;
public class ALexOperations {
private ALexico alex;
public ALexOperations(ALexico alex) {
this.alex = alex;
}
public UnidadLexica unidadInclude() {
return new UnidadLexica(alex.path(), alex.fila(), alex.columna(),ClaseLexica.INCLUDE,"#include");
}
public Unid... |
package com.amiculous.nasaview.ui.favorite_details;
import android.app.Application;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.ViewModel;
import com.amiculous.nasaview.data.Apod... |
package com.withward.repository;
import java.sql.Connection;
import java.sql.PreparedStatement;
//import java.sql.Statement;
import java.util.ArrayList;
import com.withward.model.Destination;
import com.withward.util.JDBC;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public cl... |
package com.scwang.smart.refresh.header;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.view.View;
import android.vie... |
package se.gustavkarlsson.rocketchat.jira_trigger.messages.field_creators;
import com.atlassian.jira.rest.client.api.domain.Issue;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
import static org.apache.commons.lang3.Validate.notNull;
public class CreatedFieldCreator extends AbstractFi... |
/*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* 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.robert.android.unioviscope.presentation.presenters;
import android.net.Uri;
import com.robert.android.unioviscope.domain.model.User;
import com.robert.android.unioviscope.presentation.presenters.base.BasePresenter;
import com.robert.android.unioviscope.presentation.presenters.base.BaseViewPresenter;
/**
... |
package com.kefirkb;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import... |
package com.bizzan.bitrade.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.bizzan.bitrade.entity.FavorSymbol;
import java.util.List;
public interface FavorSymbolRepository extends JpaRepository<FavorSymbol,Long>{
FavorSymbol findByMemberIdAndSymbol(Long memberId,String symbol);
... |
package com.github.charlemaznable.varystest.guice.interfacenoneconfig;
import com.github.charlemaznable.core.miner.MinerConfig;
import com.github.charlemaznable.varys.config.VarysConfig;
@MinerConfig(group = "Varys", dataId = "empty")
public interface InterfaceNoneConfig extends VarysConfig {
} |
/**
* Copyright (c) 2008 Perforce Software. All rights reserved.
*/
package com.perforce.team.ui.p4java.actions;
import org.eclipse.jface.preference.PreferenceDialog;
import com.perforce.team.core.p4java.IP4File;
import com.perforce.team.ui.P4UIUtils;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
publi... |
package com.bankslips.api.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ban... |
package com.syleiman.comicsviewer.Activities.ComicsCreation.DragLists;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.ListView;
import com.syleiman.comicsviewer.App;
/**
* Extends standart LinearLayout to support dragging
*/
public class L... |
package AlgoExSolutions.Hard.Quickselect;
// import java.util.*;
/**
* * Quickselect
*/
class Program {
public static int quickselect(int[] array, int k) {
// Write your code here.
return quickselect(array, 0, array.length - 1, k);
}
/**
* * Best: O(n) time | O(1) space
* * Average: O(n) time |... |
/*
* Copyright 2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
* Copyright (c) 2019 Oracle and/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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
package br.gov.go.saude.silt.corp.atividade_estabelecimento.entidade;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persis... |
package net.filebot.ui.rename;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
class OriginalOrder<T> implements Comparator<T> {
public static <T> Comparator<T> of(Collection<T> values) {
return new OriginalOrder(values);
}
private Map<T, Integer> index... |
/*
* Copyright 2013 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* UNIVERSIDAD ICESI
* ALGORITMOS Y PROGRAMACION II
* PROYECTO FINAL DEL CURSO
* SANTIAGO RODAS Y JULIAN ANDRES RIVERA
* GRUPO BANCARIO
*/
package application;
import excepciones.InformacionExisteExcepcion;
import excepciones.InformacionVacia;
import excepciones.NoExisteInformacionExcepcion;
import hilos.Cuad... |
package com.eduardotanaka.netflix.api.entities;
import java.io.Serializable;
import java.util.Calendar;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Generation... |
/*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.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 r... |
/**
* Copyright (c) 2018 Arthur Chan (codeyn@163.com).
* <p>
* 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, mo... |
package abi39_0_0.expo.modules.contacts.models;
import android.database.Cursor;
import android.provider.ContactsContract;
import abi39_0_0.expo.modules.contacts.EXColumns;
import static android.provider.ContactsContract.*;
public class UrlAddressModel extends BaseModel {
@Override
public String getContentTyp... |
// RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... |
/*
* SQLiteMap was created by LoRd_MuldeR <mulder2@gmx.de>.
*
* To the extent possible under law, the person who associated CC0 with SQLiteMap has waived all copyright and related or
* neighboring rights to SQLiteMap. You should have received a copy of the CC0 legalcode along with this work.
*
* If not, please re... |
package guepardoapps.timext.java.extensions;
import java.util.ArrayList;
import java.util.Locale;
import guepardoapps.timext.java.TimeXt;
import guepardoapps.timext.java.TimeXtUnit;
public class LongXt {
public static String formatMilliseconds(long milliseconds) {
ArrayList<String> arrayList = format(mi... |
package es.redmic.es.geodata.geofixedstation.mapper;
/*-
* #%L
* ElasticSearch
* %%
* Copyright (C) 2019 REDMIC Project / Server
* %%
* 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
*... |
package com.aurora.provider.user.entity;
import java.io.Serializable;
import java.util.List;
/**
* @Title: Menu.java
* @Package com.aurora.consumer.admin.entity
* @Description: 菜单实体类
* @author SSY
* @date 2018年4月11日 下午2:43:47
* @version V1.0
*/
public class Menu implements Serializable{
private static ... |
package edu.iu.miniBatchKmeans.common;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FSDataOutputStream;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import java.io.*;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
import java.util.conc... |
package com.bewitchment.common.ritual;
import com.bewitchment.Bewitchment;
import com.bewitchment.Util;
import com.bewitchment.api.capability.extendedplayer.ExtendedPlayer;
import com.bewitchment.api.registry.Curse;
import com.bewitchment.api.registry.Ritual;
import com.bewitchment.common.block.BlockGlyph;
import com.... |
package com.example.fugliara.ccs002.views.profile;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import com.example.fugliara.ccs002.R;
import... |
package main;
import common.util.Tools;
import login.LoginWindow;
public class Main {
static {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
Tools.setDefaultFont();
}
public static void ma... |
/*
* Copyright (C) 2014-2022 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... |
package com.baeldung.hll;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import net.agkn.hll.HLL;
import org.assertj.core.data.Offset;
import org.junit.Test;
import java.util.stream.LongStream;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
public clas... |
package cn.cnic.security.configuration.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 邮箱后缀-研究所-坐标的映射
*
* @author xuhuipeng
* @email xuhuipeng@cnic.com
* @date 2020-06... |
package com.test.demo.activity.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.stereotype.Component;
import com.test.demo.activity.dao.Activity... |
package de.eleon.jswap.spring;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
@Component
public class SpringStartupListener implements ApplicationListener<ContextRefreshedEvent> {
public void... |
package org.apache.isis.testing.fakedata.applib.services;
import java.util.Locale;
import java.util.Random;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;
import com.github.javafaker.Faker;
import com.github.javafaker.service.FakeValuesService;
import com.github.javafak... |
/*
* 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 ru.vyarus.dropwizard.guice.module.context.info.impl;
import com.google.common.collect.Sets;
import com.google.inject.Binding;
import ru.vyarus.dropwizard.guice.module.context.ConfigItem;
import ru.vyarus.dropwizard.guice.module.context.ConfigScope;
import ru.vyarus.dropwizard.guice.module.context.info.Extensio... |
/*
* Copyright 2019 Arcus Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package org.ekstep.genieservices.commons.bean;
import org.ekstep.genieservices.commons.bean.enums.UserProfileField;
import org.ekstep.genieservices.commons.utils.CollectionUtil;
import org.ekstep.genieservices.commons.utils.StringUtil;
import java.util.ArrayList;
import java.util.List;
/**
* Created on 6/3/18.
* s... |
/**
*
* Copyright 2015-2019 Florian Schmaus
*
* 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 ... |
/*
* Copyright (c) 2019 Nextworks s.r.l
* 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.poo.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.mysql.cj.protocol.Resultset;
import com.poo.jdbc.ConnectionFactory;
import com.poo.model.Aluno;
public class Aluno... |
package com.sun.corba.se.spi.activation.LocatorPackage;
/**
* com/sun/corba/se/spi/activation/LocatorPackage/ServerLocationHelper.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u201/12322/corba/src/share/classes/com/sun/corba/se/spi/a... |
package com.baidu.android.voicedemo.recognization.offline;
import android.app.Activity;
import android.content.SharedPreferences;
import com.baidu.android.voicedemo.recognization.CommonRecogParams;
import com.baidu.speech.asr.SpeechConstant;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.J... |
package com.demo.streams;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class ListFilterNames {
public static void main(String[] args) {
List<String> names = Arrays.asList("peter", "prateek", "Parker", "Rambo");
// Filter takes the predicate for filtering
List<Strin... |
package com.genersoft.iot.vmp.web;
import com.genersoft.iot.vmp.gb28181.bean.Device;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.b... |
package cartesianTree.heapKeyResolvers;
public class RandomHeapKeyResolverFactory implements IHeapKeyResolverFactory
{
private IRandomGeneratorFactory randomGeneratorFactory;
public RandomHeapKeyResolverFactory(IRandomGeneratorFactory randomGeneratorFactory)
{
this.randomGeneratorFactory = randomG... |
/*
* 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 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package Threads;
import Utils.Entero;
public class Decrementador extends Thread {
private int n;
private Entero ent;
public Decrementador(int n, Entero ent) {
this.n = n;
this.ent = ent;
}
public void run() {
for (int i = 0; i < n; i++) {
ent.decrementar();
}
}
} |
/**
* 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 2021 Dell 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/licen... |
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
package cn.hyn123.service;
import org.springframework.stereotype.Component;
/**
* 用户设置类:
* 1、用户更改密码
* 2、用户更改邮箱
* 3、用户绑定手机号码
*
* @author Administrator
*
*/
@Component
public interface UserSettingService {
/**
* 绑定用户手机
*
* @param phone 绑定的手机号码
* @throws Exception
*/
public void bindPhone(... |
//=============================================================================
// Copyright 2006-2010 Daniel W. Dyer
//
// 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.... |
package com.github.kmingulov.math.op;
public interface Operation {
int operandsCount();
double apply(double[] args);
} |
package speedy.model.algebra;
import speedy.model.algebra.operators.AlgebraTreeToString;
import java.util.ArrayList;
import java.util.List;
abstract class AbstractOperator implements IAlgebraOperator {
protected IAlgebraOperator father;
protected List<IAlgebraOperator> children = new ArrayList<IAlgebraOperat... |
package cgg.informatique.abl.webSocket.entites;
import javax.persistence.*;
@Entity
@Table(name="AVATARS")
public class Avatar {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(length = Integer.MAX_VALUE)
private String image;
public Avatar() {}
public Av... |
package br.com.zupacademy.romulo.ecommerce.produto;
import br.com.zupacademy.romulo.ecommerce.caracteristica.Caracteristica;
import br.com.zupacademy.romulo.ecommerce.caracteristica.CaracteristicaDTO;
import br.com.zupacademy.romulo.ecommerce.categoria.Categoria;
import br.com.zupacademy.romulo.ecommerce.usuario.Usua... |
package com.example.projeto_integrador_iv.Telas;
import androidx.appcompat.app.AppCompatActivity;
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.ListAdapter;
i... |
/*
* Copyright (c) 2020, Oracle and/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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
package com.coolweather.app.model;
/**
* Created by Blue on 2016/5/26.
*/
public class City {
private int id;
private String cityName;
private String cityCode;
private int provinceId;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
... |
package seedu.address.logic.parser.inventory;
import seedu.address.logic.commands.inventory.AddInventoryCommand;
import seedu.address.logic.parser.Parser;
import seedu.address.logic.parser.exceptions.ParseException;
/**
* Used to parse whether the user wants to add an item to the inventory list
*/
public class AddI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.