text stringlengths 7 995k |
|---|
/*
* Copyright 2016 The Simple File Server 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 applicabl... |
/**
* Copyright 2007 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 to in ... |
package br.etec.sebrae.portal.service;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Service;
import org.springframework.ui.ModelMap;
@Service
public class VerificaAuth {
public ModelMap VerificaAuth(ModelMap model, HttpSession session) {
try {
model.addAttribute("user_token", se... |
/***
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2011 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribution... |
package com.microsoft.bingads.v11.api.test.entities.negative_site.campaign.sites;
import com.microsoft.bingads.v11.api.test.entities.Util;
import com.microsoft.bingads.v11.bulk.entities.BulkCampaignNegativeSite;
import com.microsoft.bingads.v11.bulk.entities.BulkCampaignNegativeSites;
import com.microsoft.bingads.v11.... |
package com.blanc.event.cache;
import com.blanc.event.model.EventLog;
import com.blanc.event.model.Event;
/**
* 功能:缓存抽象类
*
* @author chuchengyi
*/
public abstract class AbstractEventExecuteCache {
private static final String KEY_LINK = "_";
private static final String OK_CODE = "OK";
private stati... |
package betterwithaddons.crafting.recipes;
import betterwithaddons.item.ModItems;
import betterwithmods.common.registry.crafting.ToolDamageRecipe;
import net.minecraft.init.Items;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minec... |
/*
* 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 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 u... |
package org.osmdroid;
import android.view.MotionEvent;
public class RotationGestureDetector {
public interface RotationListener {
public void onRotate(float deltaAngle);
}
protected float mRotation;
private RotationListener mListener;
public RotationGestureDetector(RotationListener listener) {
mListener =... |
package com.camunda.training;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.ExecutionListener;
public class LogListener implements ExecutionListener {
@Override
public void notify(DelegateExecution execution) throws Exception {
System.out.println(exe... |
/**
*
*/
package com.smansoft.sl.persistence.dao.api;
import java.util.List;
import com.smansoft.sl.exceptions.DaoException;
import com.smansoft.sl.persistence.entities.AuthorityEntity;
import com.smansoft.sl.persistence.entities.UserEntity;
/**
* @author SMan
*
*/
public interface IAuthorityEntityDao extends ... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/**
* @file PessoaJuridica.java
* @brief Contém a classe PessoaJuridica e a implementação de seus métodos
* @author Samuel Lucas de Moura Ferino
* @since 27.03.2018
* @version 0.0.1
*/
/**
* @class PessoaJuridica
*/
public class PessoaJuridica extends Cliente{
/// ATRIBUTOS
/**<... |
package com.mail.coupon.dao;
import com.mail.coupon.entity.SkuFullReductionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品满减信息
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2022-03-10 14:07:33
*/
@Mapper
public interface SkuFull... |
// --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:/... |
/**
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
package com.microsoft.dynamics.customerinsights.apiclient.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Defines headers for Get-all-instan... |
package eatyourbeets.actions.animator;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardGroup;
import com.megacrit.cardcrawl.cards.curses.AscendersBane;
import com.megacrit.cardcrawl.core.Settings;
import com.megacrit.cardcrawl.helpers.CardLibrary;
import com.megacrit.cardcrawl... |
package io.basc.framework.security;
import java.io.Serializable;
import java.util.Date;
import io.basc.framework.util.StringUtils;
/**
* 一个令牌的定义
*
* @author shuchaowen
*
*/
public class Token implements Serializable, Cloneable {
private static final long serialVersionUID = 1L;
private final String token;
pr... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.monitoring.collector.ccr;
import org.elastics... |
package com.daiv.android.twitter.data.sq_lite;
import android.content.ContentValues;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHe... |
/*
* 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 Skymind, Inc.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Un... |
package com.github.verhoevenv.intellij.jess;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
public class JessIcons {
public static Icon FILE = IconLoader.getIcon("/com/github/verhoevenv/intellij/jess/icons/jess.png");
} |
/*
* Copyright (c) 2008-2018, 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 moves;
import java.io.Serializable;
import pieces.Piece;
/**
* Class to represent moves on a Chess Board.
*
* Created to keep track of moves for replaying and
* for the sake of special moves like En Passant and Castling.
*
* @author Drew Grubb
*/
public class Move implements Serializable
{
private s... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package datos;
import java.sql.Date;
/**
*
*/
public class vestudiantes {
private int Cod_Estudiantes;
private... |
/*
* Copyright (c) 2013, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"). You may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... |
package com.revature.daoimpl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.revature.beans.TransactionLog;
import com.revature.dao.TransactionsDAO;
import com.revature.util.ConnFactory;
pub... |
/*
* This file is part of the Heritrix web crawler (crawler.archive.org).
*
* Licensed to the Internet Archive (IA) by one or more individual
* contributors.
*
* The IA licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
*... |
/**
* 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.cp3.cloud.config.datasource;
import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusProperties;
import com.baomidou.mybatisplus.autoconfigure.MybatisPlusPropertiesCustomizer;
import com.cp3.base.database.datasource.defaults.BaseMaste... |
package soot.coffi;
/*-
* #%L
* Soot - a J*va Optimization Framework
* %%
* Copyright (C) 1997 Clark Verbrugge
* %%
* This program 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... |
/*
* 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 co.siempo.phone.app;
/*
Created by rajeshjadi on 10/8/17.
*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
public class HomeWatcher {
private static final String TAG = "hg";
pr... |
/**
* Copyright 2010 The Apache Software Foundation
*
* 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... |
/**
* Copyright (c) 2012 Perforce Software. All rights reserved.
*/
package com.perforce.p4java.tests.dev.unit.features123;
import static com.perforce.p4java.exception.TrustException.Type.NEW_CONNECTION;
import static com.perforce.p4java.exception.TrustException.Type.NEW_KEY;
import static org.junit.Assert.assertEq... |
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import java.io.File;
import... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2020 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Licen... |
package wikipedia.domain;
import g13.*;
/**
* Algorithm common interface
* @author G13.2
*/
public interface Algorithm {
/**
* Applies the implemented Algorithm to a graph until
* there are nCom's left or the algorithm can't be applied
* anymore, and returns the CommunityCollection of them
* @param G The ... |
/*
* SVG Salamander
* Copyright (c) 2004, Mark McKay
* 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 noti... |
package cn.kukool.downloader.util;
import android.content.ContentValues;
/**
* User: jackfengji
* Date: 12-8-22
*/
public class ContentValuesFactory {
private ContentValues mValues = new ContentValues();
public ContentValuesFactory put(java.lang.String key, java.lang.String value) {
mValues.put(ke... |
/**
* Copyright 2021 UCloud Technology Co., Ltd.
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applicabl... |
package org.jboss.resteasy.tests.typevar.sample;
import javax.ws.rs.Path;
@Path(value = "/say")
public interface HelloString extends Hello<String> {
} |
package com.christo.security.springsecuritycuriosity.controllers;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.... |
/*
* The MIT License
*
* Copyright 2017 Ayesha.
*
* 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, ... |
/*
* Copyright 2004 Outerthought bvba and Schaubroeck nv
*
* 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... |
/*
* Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.gridgain.internal.h2.index;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.gridga... |
/**
* 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 m... |
package com.st.fox.admin.service.domain;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.st.fox.admin.service.util.FastJsonUtils;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... |
package board;
import javafx.scene.paint.*;
import javafx.scene.shape.Circle;
import javafx.scene.shape.StrokeType;
import shared.PlayerColor;
/**
* Klasa reprezentująca pojedyncze, klikalne pole w grze
*/
public class Field
{
private int x; // Współrzędna X pola (kolumna)
p... |
package net.charish.aws.demo.model;
public class Demo {
private long id;
private String name;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
... |
/*-
* #%L
* Expose the Imaris XT interface as an ImageJ2 service backed by ImgLib2.
* %%
* Copyright (C) 2019 - 2021 Bitplane AG
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sou... |
/*
* Copyright 2018 Adobe Systems Incorporated
*
* 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... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/*
*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) 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
*
... |
/*
* Copyright 2005 JBoss 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 to i... |
/*
* Copyright (c) 2018-2020 bartimaeusnek
*
* 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, merge, ... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
package com.anlu.common.model;
import java.io.Serializable;
import net.sf.json.JSONObject;
/**
*
* 开发公司:itboy.net<br/>
* 版权:itboy.net<br/>
* <p>
*
* 角色{@link URole}和 权限{@link UPermission}中间表
*
* <p>
*
* 区分 责任人 日期 说明<br/>
* 创建 周柏成 2016年5月25日 <br/>
* <p>
* *******
* <p>
* @author zhou-baicheng
*... |
package com.ppdai.das.client.sqlbuilder;
public interface Includable<T> {
T when(boolean condition);
boolean isIncluded();
} |
/*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
package ch.squix.esp8266.fontconverter.rest.xbm;
// from :
// http://stackoverflow.com/questions/5940188/how-to-convert-a-24-bit-png-to-3-bit-png-using-floyd-steinberg-dithering
import java.awt.Color;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.image.BufferedImage;
import java.io.IOException... |
package com.sequenceiq.cloudbreak.repository;
import java.util.List;
import javax.transaction.Transactional;
import javax.transaction.Transactional.TxType;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.sequenceiq.cloudbreak.aspect.DisableHas... |
/**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
*
* The Apereo Foundation licenses this file to you under the Educational
* Community License, Version 2.0 (the ... |
package com.opencloud.gateway.zuul.server.service.feign;
import com.opencloud.base.client.service.IBaseAppServiceClient;
import com.opencloud.base.client.constants.BaseConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
/**
* @author: liuyadu
* @date: ... |
package org.apache.poi.ddf;
import java.io.PrintWriter;
import java.util.Collections;
import java.util.List;
import org.apache.poi.util.BitField;
import org.apache.poi.util.BitFieldFactory;
import org.apache.poi.util.HexDump;
import org.apache.poi.util.Internal;
import org.apache.poi.util.LittleEndian;
public abstrac... |
package com.pubnub.api.models.consumer.objects_api.member;
import com.pubnub.api.models.server.objects_api.EntityArrayEnvelope;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
@NoArgsConstructor
@Getter
@ToString
public class PNGetChannelMembersResult extends EntityArrayEnvelope<PNMembe... |
/***** 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 2013 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 to i... |
package org.apache.xml.serializer;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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
*
* h... |
/*
* 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 ... |
/* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.searchengine.base;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import edu.cornell.mannlib.vitro.webapp.modules... |
// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *
// * distributed with this work for additional information regardi... |
package com.example.administrator.icall;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
public class ILog {
public static String PACKAGE="com.yh";
public static void print(String s) {
Log.i(PACKAGE, s);
}
public static void e(Throwable e) {
Log.e(PACKAGE, "exception", ... |
package com.itsherman.common.dto.annotations;
import java.lang.annotation.*;
/**
* <p> </p>
*
* @author 俞淼霞
* @since 2019-09-09
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DtoMapping {
/**
* 参照源
*/
Class[] from() default Void.class;... |
/**
* 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 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) 2016 LARUS Business Automation [http://www.larus-ba.it]
* <p>
* This file is part of the "LARUS Integration Framework for Neo4j".
* <p>
* The "LARUS Integration Framework for Neo4j" is licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian... |
package jef.database.innerpool;
import java.sql.SQLException;
import jef.database.wrapper.populator.IPopulator;
import jef.database.wrapper.result.IResultSet;
import jef.tools.reflect.BeanWrapper;
public interface InstancePopulator extends IPopulator{
Object instance();
public Class<?> getObjectType();
public boo... |
/*
* Copyright (c) 2012 The 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 to use,
* copy, modify, merge, pu... |
package com.pusher.chatkit;
public interface CursorsSubscriptionListeners extends ErrorListener{
void onCursorSet(Cursor cursor);
} |
package net.wuffy.bot.jda;
import net.dv8tion.jda.api.events.ReadyEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import net.wuffy.bot.WuffyBot;
import net.wuffy.bot.command.CommandHandler;
import net.wuffy.common.logger.Logger;
public class ShardInitializer extends ListenerAdapter {
private WuffyBot core;... |
package org.mvnsearch.http.protocol;
import org.mvnsearch.http.model.HttpMethod;
import org.mvnsearch.http.model.HttpRequest;
import java.nio.charset.StandardCharsets;
import java.util.List;
public class JsonRestExecutor extends HttpExecutor {
public List<byte[]> execute(HttpRequest httpRequest) {
final... |
package com.example.coolweather.app.model;
public class Province {
private int id;
private String provinceName;
private String provinceCode;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getProvinceName() {
return provinceName;
}
public void setProvince... |
/*
* Copyright 2017, Yahoo Inc.
* Licensed under the terms of the Apache License, Version 2.0.
* See the LICENSE file associated with the project for terms.
*/
package com.yahoo.bullet.querying.aggregations.grouping;
import com.yahoo.memory.Memory;
import com.yahoo.sketches.tuple.DeserializeResult;
import com.y... |
package com.nibado.example.datastores.shared;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/product")
public class ProductController {
private final ProductDb db;
public ProductController(ProductDb db) {
this.db = d... |
/**
* Copyright (C) 2006-2018 Talend Inc. - www.talend.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 appli... |
import java.util.Scanner;
/**
* Leia 5 valores e informa o maior valor e a média entre eles.
*/
public class Ex03 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int valorMaior = 0;
int soma= 0;
for (int i = 0; i < 5; i++) {
System.out... |
package ru.job4j.servlets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import ... |
/*
* Copyright 1999-2021 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... |
/*
* 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) 2016-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the L... |
/*
* Copyright 2019 The Vitess 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 agreed t... |
import Entity.Lettino;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class LettinoTest {
@Test
public void testId(){
Lettino lettino = new Lettino();
lettino.setId("L_0000");
assertEquals(lettino.getIdLettino(), "L_0000");
}... |
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.maintenance.acl;
import com.yahoo.vespa.hosted.node.admin.configserver.noderepository.Acl;
import com.yahoo.vespa.hosted.node.admin.task.util.file.Editor;
import co... |
package com.atguigu.gmall.order.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
@Configuration
public class Th... |
package org.ligi.snackengage;
import android.Manifest;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.os.Build;
import org.junit.Test;
import org.ligi.snackengage.conditions.connectivity.IsConnectedUnMeteredOrUnknown;
import java.lang.reflect.Field;
import java.lang.... |
/*
* Copyright (C) 2016 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 app... |
package com.cango.adpickcar.model;
/**
* Created by cango on 2017/10/12.
*/
public class BaseData {
/**
* Code : 200
* Msg : string
* Data : {}
*/
private String Code;
private String Msg;
private DataBean Data;
public String getCode() {
return Code;
}
publ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.