text stringlengths 7 1.01M |
|---|
package org.proteored.miapeapi.cv.ge;
import org.proteored.miapeapi.cv.ControlVocabularyManager;
import org.proteored.miapeapi.cv.ControlVocabularySet;
public class DeviceModel extends ControlVocabularySet {
/* ; */
private static DeviceModel instance;
public static DeviceModel getInstance(ControlVocabularyManag... |
package sorcer.core.context;
import net.jini.core.transaction.Transaction;
import net.jini.core.transaction.TransactionException;
import sorcer.co.tuple.ExecDependency;
import sorcer.service.*;
import sorcer.service.Strategy.Access;
import sorcer.service.Strategy.Flow;
import sorcer.service.Strategy.Opti;
import sorce... |
package ghost.framework.application.core.loader.maven;
import ghost.framework.beans.annotation.injection.Autowired;
import ghost.framework.beans.annotation.stereotype.Component;
import ghost.framework.context.application.IApplication;
import ghost.framework.context.base.ICoreInterface;
import ghost.framework.context.e... |
/*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright 2014-2019 Logo Business Solutions
* (a.k.a. LOGO YAZILIM SAN. VE TIC. A.S)
*
* 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 org.ethereum.beacon.ssz.type;
import java.util.List;
import java.util.stream.Collectors;
import org.ethereum.beacon.ssz.SSZSchemeException;
import org.ethereum.beacon.ssz.access.SSZField;
import org.ethereum.beacon.ssz.access.SSZUnionAccessor;
import tech.pegasys.artemis.util.collections.Union;
public class S... |
package tarea6_alessandroreyes_11911224;
public class Maestro extends Persona{
private int Codigo;
private String Facultad;
public Maestro() {
super();
}
public Maestro(int codigo, String facultad) {
this.Codigo = codigo;
this.Facultad = facultad;
}
public Maestro(... |
/***** BEGIN LICENSE BLOCK *****
* Version: EPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Eclipse Public
* License Version 1.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.eclipse.org/legal/epl-... |
/*
* Copyright 2018-present yangguo@outlook.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... |
package de.polocloud.network.codec;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import java.util.List;
public class PacketLengthDeserializer extends ByteToMessageDecoder {
private final int by... |
package com.sqxxcx.util.enums;
public enum StatusService implements StatusEnum {
SUCCESS(200,"处理成功"),FAIL(4404,"访问资源不存在"),PARAM_ERROR(4600,"请求参数异常"),SERVICE_ERROR(5210,"接口调用异常");
private final int code;
private final String message;
@Override
public Class<?> getStatusEnumType() {
// TODO Auto-generated m... |
package com.microboot.cn.pojo;
import lombok.Data;
import java.util.Date;
@Data
public class BBSNew {
private Long id;
private String name;
private String contact;
private Date createTime;
public BBSNew(Long id, String name, String contact, Date createTime) {
this.id = id;
this.... |
/*
* Copyright 1997-2019 Unidata Program Center/University Corporation for
* Atmospheric Research, P.O. Box 3000, Boulder, CO 80307,
* support@unidata.ucar.edu.
*
* 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
... |
package com.linln.modules.system.service.impl;
import com.linln.modules.system.domain.Scale;
import com.linln.modules.system.repository.ScaleRepository;
import com.linln.modules.system.service.ScaleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
imp... |
package com.example.bruno.ilernaauto_bruno_castro_v2;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
imp... |
/*
* 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... |
/**
* 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... |
/* 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... |
package com.everyDayUse.serviceImpl;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import com.erveryDayUse.domain.User;
import com.every... |
package org.noear.fineio.core;
import org.noear.fineio.FineException;
import java.io.IOException;
import java.net.InetSocketAddress;
/**
* 网络客户端
* */
public class NetClient<T> implements Sender<T>{
private ResourcePool<NetConnector<T>> connectors;
private final IoConfig<T> config;
public NetClient(Pro... |
/*
* Copyright (c) Facebook, Inc. and 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 applic... |
package com.java110.dto;
import com.java110.dto.fee.FeeDto;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @ClassName FloorDto
* @Description 小区房屋数据层封装
* @Author wuxw
* @Date 2019/4/24 8:52
* @Version 1.0
* add by wuxw 2019/4/24
**/
public class RoomDto extends PageDto implem... |
/*
* Copyright 2017 Smart Society Services B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.opensmartgridplatform.cucumb... |
package io.github.elkin.commandline;
public interface HelpGenerator {
String generateHelp(CommandLineConfiguration configuration);
}
|
package com.millenniumprogrammers.neocomer.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Zonasdisponibles{
private int id_zona;
private String Apodo;
private double longitud;
private double latitud... |
package org.springrain.weixin.sdk.mp.api;
import java.io.File;
import java.util.Map;
import org.springrain.weixin.sdk.common.exception.WxErrorException;
import org.springrain.weixin.sdk.common.service.IWxMpConfig;
import org.springrain.weixin.sdk.mp.bean.pay.WxPayJsSDKCallback;
import org.springrain.weixin.sd... |
package com.example.ggxiaozhi.yotucomponent.share;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
impo... |
package com.mk.portal.framework.page.html.tags;
import com.mk.portal.framework.html.objects.Tag;
public class BDOTag extends Tag {
@Override
public boolean hasEndTag() {
return true;
}
@Override
public String getTagName() {
return "bdo";
}
}
|
package com.github.bali.attachment.service;
import com.github.bali.attachment.domain.vo.Upload;
import com.github.bali.attachment.domain.vo.UploadResult;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
/**
* 附件操作
* @author Petty
*/
public interface IAttachmen... |
package io.jenkins.plugins.analysis.warnings;
import org.kohsuke.stapler.DataBoundConstructor;
import org.jenkinsci.Symbol;
import hudson.Extension;
import io.jenkins.plugins.analysis.core.model.AnalysisModelParser;
import io.jenkins.plugins.analysis.core.model.IconLabelProvider;
import io.jenkins.plugins.analysis.co... |
package org.skia.androidkit;
import android.graphics.Bitmap;
import org.skia.androidkit.Canvas;
public class Surface {
private long mNativeInstance;
private Canvas mCanvas;
/**
* Create a Surface backed by the provided Bitmap.
*
* The Bitmap must be mutable and its pixels are locked for th... |
/*
* This file is part of sChat, licensed under the MIT License.
* Copyright (C) Silthus <https://www.github.com/silthus>
* Copyright (C) sChat team and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... |
package com.stackroute.recommendationservice.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.stackroute.recommendationservice.model.Answer;
import com.stackroute.recommendationservice.model.Question;
import com.stackroute.recommendationservice.model.QuestionNode;
import com.stackroute.recomm... |
/*
* 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... |
/*
* This file is part of JourneyMapFix, licensed under the MIT License (MIT).
*
* Copyright (c) 2017 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... |
package org.laziji.commons.js.model.node;
import com.google.common.collect.ImmutableList;
import org.laziji.commons.js.model.manager.NodeConfiguration;
import java.util.Arrays;
import java.util.List;
import java.util.function.BiFunction;
public abstract class BasePlanNode extends BaseNode {
private List<BiFunct... |
package it.unibz.inf.ontop.model.term.functionsymbol.db.impl;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableTable;
import com.google.common.collect.Maps;
import it.unibz.inf.ontop.model.term.ImmutableTerm;
import it.unibz.inf.ontop.model.term.TermFactory;
import it.unibz.inf... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE506_Embedded_Malicious_Code__base64_encoded_payload_05.java
Label Definition File: CWE506_Embedded_Malicious_Code.label.xml
Template File: point-flaw-05.tmpl.java
*/
/*
* @description
* CWE: 506 Embedded Malicious Code
* Sinks: base64_encoded_payload
* GoodSi... |
/*
* Copyright 2010 James Pether Sörling
*
* 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 ag... |
package org.ovirt.engine.core.bll;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.ovirt.engine.core.bll.interfaces.BackendInternal;
import org.ovirt.engine.core.common.action.SetVmTicketParameters;
import org.ovirt.engine.core.... |
package cn.demonk.test3;
import android.util.Log;
import java.math.BigInteger;
/**
* 大数进制转换
* Created by guosen.lgs@alibaba-inc.com on 6/20/18.
*/
public class MultiNumberation2 {
//符号集,最大可转换进制为表的大小
private final static char[] SYMBOLS_MAP = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A',
... |
package com.stackroute.datacollectorservice.model;
import org.springframework.stereotype.Component;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
@Component
public class DataCollectorModel {
public String getMetrics(String inputUrl){
String inline = "";
try {
... |
package org.practice.arrays;
public class q334 {
/*
Time Complexity: O(N)
Space Complexity: O(1)
*/
class Solution {
public boolean increasingTriplet(int[] nums) {
int min = Integer.MAX_VALUE;
int secondMin = Integer.MAX_VALUE;
for (int num : nums) {
... |
/**
* @author dex
*
*/
public class First_0109 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hi World!!!");
System.out.println("Command Line Program Imported to Eclipse!!");
FreshJuice juice = new FreshJuice();
juice.size = Fre... |
package masecla.reddit4j.objects.preferences;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import masecla.reddit4j.client.Reddit4J;
import masecla.reddit4j.objects.RedditObject;
import masecla.reddit4j.objects.preferences.enums.BadCommentAutocollapse;
import masecla.reddit4j.objects.prefer... |
package com.temple.web.rest;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContex... |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl.java.stubs.index;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiAnnotation;
import com.intellij.psi.impl.search.JavaSource... |
//
// Copyright 2009 Robin Komiwes, Bruno Verachten, Christophe Cordenier
//
// 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 re... |
/*
* Decompiled with CFR 0_132.
*/
package com.enjoytheban.module.modules.combat;
import com.enjoytheban.Client;
import com.enjoytheban.api.EventHandler;
import com.enjoytheban.api.events.world.EventPacketSend;
import com.enjoytheban.api.events.world.EventPostUpdate;
import com.enjoytheban.api.events.world.EventPreU... |
/*
* MIT License
*
* Copyright (c) 2021 cybo
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... |
package com.oembedler.moon.graphql.boot;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationContext;
import org.springframework.core.io.Resource;
import java.io.IO... |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package java.io;
public class File
{
public File( File parent, String name ) {}
public boolean exists()
{
return false;
}
}
|
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package de.hybris.platform.integrationservices.model.impl;
import de.hybris.platform.integrationservices.model.AttributeSettableChecker;
import de.hybris.platform.integrationservices.model.AttributeSettableCheckerFactory;
import de.h... |
package net.zhuoweizhang.mcpelauncher.texture;
import org.json.*;
import android.graphics.Bitmap;
public final class TexturePackDescription {
public String type;
public String path;
public Bitmap img = null;
public String description = "";
public TexturePackDescription(String type, String path) {
this.type = ty... |
package de.bug0r.protocol.irc.parser.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import de.bug0r.message.irc.IIrcMessage;
import de.bug0r.message.irc.impl.ServlistMessage;
import de.bug0r.message.irc.utils.IrcMessageUtils;
import de.bug0r.protocol.irc.parser.message.IMessageParse... |
package com.blankj.utilcode.util;
import android.os.Build;
import android.support.v4.util.LongSparseArray;
import android.support.v4.util.SimpleArrayMap;
import android.util.SparseArray;
import android.util.SparseBooleanArray;
import android.util.SparseIntArray;
import android.util.SparseLongArray;
import java.lang.r... |
package com.sensordroid.flow.Bluetooth;
import android.content.Intent;
public interface BluetoothCallback {
void onDataReceived(Intent data);
}
|
package uk.gov.hmcts.reform.divorce.orchestration.service.bulk.print.helper;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import java.util.Map;
import static com.google.common.base.Strings.nullToEmpty;
import static java.lang.String.format;
import static uk.gov.hmcts.reform.divorce.orchestration.domai... |
package mezz.jei.recipes;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import mezz.jei.api.ingredients.subtypes.UidContext;
import net.minecraft.util.ResourceLocation;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMultimap;
import com.go... |
package com.javainuse.model;
public class Product {
private String type;
private int discount;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public int getDiscount() {
return discount;
}
public void setDiscount(int discount) {
... |
package com.honeyewll.lbstest;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
import java.util.Timer;
import java.util.TimerTask;
/**
* 使用 java.util.Timer 来执行定时任务
*/
public class TimeRunner {
public static void main(String[] args) {
Timer timer = new Timer();
TimerTask timerTask = new SimpleTimerTask();
// 延迟 1 秒之后,开始每隔 5 秒钟之后再执行任务
timer.schedule(timerTask, 1000L, 5000L);
}
}
|
/*
* Copyright (c) 2010-2018 Osman Shoukry
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/*
* Copyright 2010-2012 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 "lice... |
/*
* Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced belo... |
/*
* Copyright 2015 Rayco Araña
*
* 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 com.xlx.ss.shiro.chapter6.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.log4j.Logger;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org... |
package com.github.lassana.adaptable_layout;
import android.support.v7.app.ActionBarActivity;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.github.lassana.adaptable... |
package audioanalyzer.logic.helpers;
import java.util.ArrayList;
import java.util.List;
/**
* Informations about audio stream
*/
public class AudioStreamInfo {
private int m_streamIndex;
private int m_channelsCount;
private int m_sampleRate;
private int m_bitRate;
private String m_codecName;
... |
package ay2122s1_cs2103t_w16_2.btbb.testutil;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.ResolverStyle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import ay2122s1_cs2103t_w16_2.btbb.model.predicate... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.resources.models;
import com.azure.core.annotation.ExpectedResponses;
import com.azure.core.annotation.Get;
import com.azure.core.ann... |
package io.seata.sample.controller;
import io.seata.sample.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author dinghuang123@gmail.com
* @date... |
package com.otaliastudios.cameraview;
import android.Manifest;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager... |
/*
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 the Lic... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
package de.karlw.pbac.reservations;
import com.codahale.metrics.Counter;
import com.codahale.metrics.MetricRegistry;
import com.hivemq.extension.sdk.api.annotations.NotNull;
import com.hivemq.extension.sdk.api.packets.general.Qos;
import com.hivemq.extension.sdk.api.services.Services;
import com.hivemq.extension.sdk.a... |
package me.chanjar.weixin.common.util.crypto;
import org.apache.commons.codec.digest.DigestUtils;
import java.util.Arrays;
/**
* Created by Daniel Qian on 14/10/19.
*/
public class SHA1 {
/**
* 串接arr参数,生成sha1 digest
*/
public static String gen(String... arr) {
Arrays.sort(arr);
S... |
package io.github.edmm.model.support;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import io.github.edmm.model.component.RootComponent;
import io.github.edmm.model.relation.DependsOn;
import io.github.edmm.model.relation.RootRelation;
import... |
/*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package org.firstinspires.ftc.teamcode.sensors;
import com.qualcomm.robotcore.hardware.I2cAddr;
import com.qualcomm.robotcore.hardware.I2cDeviceSynch;
import com.qualcomm.robotcore.hardware.I2cDeviceSynchDevice;
import com.qualcomm.robotcore.hardware.I2cWaitControl;
import com.qualcomm.robotcore.hardware.configuration... |
package cn.pandacoder.gulimall.member.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
package com.vitahlin.ladybug.spring.bean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @author vitah
*/
@Component
public class UserService3 {
@Autowired
private OrderService1 orderService1;
public void test() {
System.o... |
package com.changfa.frame.website.controller.app;
import com.changfa.frame.model.app.Area;
import com.changfa.frame.service.mybatis.app.AreaService;
import com.changfa.frame.service.mybatis.app.impl.AreaServiceImpl;
import com.changfa.frame.website.controller.common.BaseController;
import io.swagger.annotations.Api;
i... |
package ru.job4j.map;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* class SimpleMap.
* @param <K> - key.
* @param <V> - value.
*/
public class SimpleMap<K, V> implements Iterable<V> {
/** data storage.*/
private Object[] data;
/**
* default constructor.
*/
pu... |
package ca.momoperes.client.world;
public class Location {
private double x, y;
public Location(double x, double y) {
this.x = x;
this.y = y;
}
public double getX() {
return x;
}
public void setX(double x) {
this.x = x;
}
public double getY() {
... |
package com.hihsoft.util;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Field;
import java.util.List;
import java.util.Set;
import org.apache.log4j.Logger;
import org.junit.runner.RunWith;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.test.context.Context... |
/**
* 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 ex;
import java.util.*;
/*
* Topic: 請寫一個程式讓使用者輸入體重單位 "公斤",轉換成 "磅" (1磅 = 0.45359 公斤)
* Date: 2016/09/19
* Author: 105021030 張廷毓
*/
public class ex02_105021030 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
float a=sc.nextFloat();
float b=0;
b=a*100000/45359;
System.... |
package com.easyandroidanimations.library;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.view.View;
import android.view.ViewGroup;
import andro... |
/*
If you like this, you should donate to Peter O.
at: http://peteroupc.github.io/
Licensed under the Expat License.
Copyright (C) 2013 Peter Occil
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 Softwar... |
package io.joshatron.bgt.tictactoe;
import io.joshatron.bgt.engine.action.Action;
import io.joshatron.bgt.engine.component.board.grid.GridBoardLocation;
import io.joshatron.bgt.engine.player.PlayerIndicator;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class T... |
package me.hrps.aas.web.sys.domain;
import java.util.ArrayList;
import java.util.List;
public class SysRolePermissionExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public SysRolePermissionExample() {
oredCriteria = new ArrayList<... |
/*
* Copyright (c) 2008-2020, Hazelcast, 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 ... |
package br.com.valtergodoy.testSpring.integration;
import br.com.valtergodoy.testSpring.controller.dto.CustomerRequestBody;
import br.com.valtergodoy.testSpring.model.Customer;
import br.com.valtergodoy.testSpring.repository.CustomerRepository;
import br.com.valtergodoy.testSpring.util.CustomerCreator;
import br.com.v... |
// Copyright (C) 2021 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
package org.firstinspires.ftc.teamcode.robot;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import org.firstinspires.ftc.teamcode.buttons.BUTTON_TYPE;
import org.firstinspires.ftc.teamcode.buttons.ButtonHandler;
import org.firstinspires.ftc.teamcode.bu... |
package net.lightoze.jooq.postgresql.json;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JavaType;
import org.jooq.JSONB;
import java.io.IOException;
public class JacksonJsonbConverter<T> extends AbstractJacksonConverter<JSONB, T, T> {
public JacksonJsonbConver... |
package org.bavand.sharedElement.ui.Splash;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Looper;
import android.widget.ImageView;
import org.bavand.R;
import org.bavand.sharedElement.ui.login.LoginActivity;
import androidx.annotation.RequiresApi;
import androidx... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.