text stringlengths 7 995k |
|---|
package com.central.file.model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lom... |
package net.coreprotect.listener.block;
import java.util.Locale;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Tag;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockState;
import org.bukkit.block.Sign;
import org.bukkit.block.data.Bisected;
import org.bu... |
package preprocess;
import util.DBConnection;
import util.MD5;
import util.Page;
import java.io.*;
import java.util.ArrayList;
/**
* Created by scott on 2017/3/9.
*/
public class RawsAnalyzer {
private DBConnection dbc = new DBConnection();
private MD5 md5 = new MD5();
private int offset;
private P... |
package konsulatet;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.timeout;
import static org.mockito.Mockito.verify;
import java.util.Map;
import java.util.concurrent.CancellationException;
import java.util.concurrent.Completabl... |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... |
/*
* Copyright 2016-2021 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... |
/*
* Copyright 2016 Schibsted ASA.
*
* 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 ... |
/*
* Copyright 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 applica... |
/*
* Copyright (C) 2014 Universidad de Alicante
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This progr... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package com.ccc.demo.layout.vertical.dragtoslide.fragment;
import android.graphics.Color;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import andr... |
/*
* 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) 2018 Seoul National University
*
* 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... |
/*
* MIT License
*
* Copyright (c) 2022 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 2000-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package org.entitypedia.games.common.repository.hibernateimpl.filter;
import org.antlr.v4.runtime.ANTLRErrorListener;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseTree;
import org.entitypedia.games.common.exceptions.OrderParsingExcep... |
package cn.edu.gdut.zaoying.Option.series.graph.markLine.data.p1.label.normal;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interfac... |
package com.jumbomob.invistoo.ui;
import android.app.Dialog;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import ... |
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Juan Desimoni
*
* 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 us... |
/*
* 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 by.bsuir.kaziukovich.archive.server.logic.command.impl.record;
import by.bsuir.kaziukovich.archive.server.dataaccess.DaoException;
import by.bsuir.kaziukovich.archive.server.dataaccess.record.StudentRecordDaoFactory;
import by.bsuir.kaziukovich.archive.server.logic.command.Command;
import by.bsuir.kaziukovich.... |
/*
* Copyright (c) 2013 - 2016 Stefan Muller Arisona, Simon Schubiger
* Copyright (c) 2013 - 2016 FHNW & ETH Zurich
* All rights reserved.
*
* Contributions by: Filip Schramka, Samuel von Stachelski
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
package repository;
import domain.entities.Image;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
import java.util.List;
public class ImageRepositoryImpl implements ImageRepository {
private EntityManager entityManager;
public ImageRepositoryImpl() {
this.entityManager ... |
package br.com.swapi.commons;
public interface Constants {
String DATE_FORMAT_FULL = "dd/MM/yyyy HH:mm:ss";
String DATE_FORMAT_DATE = "dd/MM/yyyy";
String DATE_FORMAT_SHORT = "dd/MM/yy";
String DATE_FORMAT_HOUR = "hh:mm";
String DATE_FORMAT_SQL = "yyyy-MM-dd";
String DATE_FORMAT_SQL_TIMESTAMP =... |
package org.hisp.dhis.cache;
/*
* Copyright (c) 2004-2018, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyrigh... |
/*
* 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... |
package com.bitdubai.reference_wallet.crypto_customer_wallet.common.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bitdubai.fermat_android_api.ui.expandableRecicler.ExpandableRecyclerAdapter;
import com.bitdubai.fermat_... |
package com.daizor.common.exception;
/***
* 错误码和错误信息定义类
* 1. 错误码定义规则为5为数字
* 2. 前两位表示业务场景,最后三位表示错误码。例如:100001。10:通用 001:系统未知异常
* 3. 维护错误码后需要维护错误描述,将他们定义为枚举形式
* 错误码列表:
* 10: 通用
* 001:参数格式校验
* 11: 商品
* 12: 订单
* 13: 购物车
* 14: 物流
*
*
*/
public enum BizCodeEnume {
UNKNOW_EXCEPTION(10000, "系统未知异常"... |
package org.bouncycastle.asn1.x509.sigi;
import java.util.Enumeration;
import org.bouncycastle.asn1.ASN1Choice;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1... |
/*
* 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 "l... |
/*******************************************************************************
* Copyright (c) 2018 Microsoft Research. All rights reserved.
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "S... |
/*
* 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 ru.spb.devclub.flexscheduler.supplier;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.Trigger;
@RequiredArgsConstructor
public class SimpleTriggerSupplier implements TriggerSupplier {
private final Trigger trigger;
@Override
public Trigger get() {
return trig... |
package org.aksw.rdfunit.dqv;
import java.util.Collection;
import org.aksw.rdfunit.io.reader.RdfReader;
import org.aksw.rdfunit.io.reader.RdfReaderFactory;
import org.aksw.rdfunit.io.writer.RdfFileWriter;
import org.aksw.rdfunit.io.writer.RdfWriter;
import org.aksw.rdfunit.model.interfaces.results.TestExecution;
impor... |
package com.google.ads.googleads.v8.services;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
* <pre>
* A service for fetching an account-level budget.
* Account-level budgets are mutated by creating proposal resources.
* </pre>
*/
@javax.annotation.Generated(
value = "by gRPC proto compil... |
/*
* Copyright 2012-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package org.cyclops.integratedcrafting.core.part;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.inventory.Inventory;
import net.minecraft.inventory.container.Container;
import net.minecraf... |
package com.tzt.customizekt.diy.view.letterSideBar;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import and... |
//
// Generated by fetch-leetcode-submission project on GitHub.
// https://github.com/gitzhou/fetch-leetcode-submission
// Contact Me: aaron67[AT]aaron67.cc
//
// Remove Duplicates from Sorted List
// null
//
null |
// Copyright 2000-2018 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.ide.actions.runAnything.execution;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.ExecutionManager;
import com.intellij.exec... |
/*
* 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) 2022 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/***************************************************************************
* Copyright (c) 2013, Rapid7 Inc
*
* 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 2019 Symphony Communication Services, LLC.
*
* Licensed to The Symphony Software Foundation (SSF) 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... |
package ru.otus;
import io.grpc.ServerBuilder;
import ru.otus.service.RemoteDBServiceImpl;
import ru.otus.service.SequenceCreatableImpl;
import java.io.IOException;
public class Server {
public static final int SERVER_PORT = 8290;
public static void main(String[] args) throws IOException, InterruptedExcept... |
/**
* Copyright 2021 SteveJrong
* <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 applicable law or ag... |
package tw.edu.ncu.cc;
import android.app.Fragment;
import android.content.Intent;
import android.graphics.RectF;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toas... |
package com.cbw.mappers;
import com.cbw.dto.TbContent;
public interface TbContentMapper {
int deleteByPrimaryKey(Long id);
int insert(TbContent record);
int insertSelective(TbContent record);
TbContent selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(TbContent record);
int upd... |
/**
* Copyright (C) 2015 Red Hat, 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... |
import java.util.*;
public class Main {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner sc = new Scanner (System.in);
double A, B, C, TRIANGULO, CIRCULO, TRAPEZIO, QUADRADO, RETANGULO;
A = sc.nextDouble();
B = sc.nextDouble();
C = sc.nextDouble();
TRIANGULO = ... |
/*
* Dog - Core
*
* Copyright (c) 2011-2016 Dario Bonino and Luigi De Russis
*
* 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 com.linuxluigi.opendecibelmeter.models;
/**
* box for opensensemap
*/
public class SingleBox {
private String boxName;
private String boxId;
private String sensorId;
private double latitude;
private double longitude;
private double decibel;
public SingleBox(String name, String bo... |
/**
* Copyright 2013 ArcBees 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... |
/*
* Copyright (c) 2020 John Mayfield
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following d... |
package com.mossle.bpm.converter.extend;
import java.util.List;
import javax.xml.stream.XMLStreamReader;
import javax.xml.stream.XMLStreamWriter;
import org.activiti.bpmn.converter.UserTaskXMLConverter;
import org.activiti.bpmn.converter.util.BpmnXMLUtil;
import org.activiti.bpmn.model.BaseElement;
import org.apache... |
/*
* Copyright (c) 2011-2014, hubin (jobob@qq.com).
* <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>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... |
package ch.inss.springtroublemaker.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.request.NativeWebRequest;
import java.util.Optional;
impo... |
/*
* 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 models;
public class LocationSearchDecorator extends SearchDecorator{
private String eventLocation;
public LocationSearchDecorator(Search search, String location){
super(search);
this.eventLocation = location;
}
public String generateQuery() {
String query = super.ge... |
package net.java.amateras.uml.classdiagram.action;
import java.util.List;
import net.java.amateras.uml.UMLPlugin;
import net.java.amateras.uml.classdiagram.model.OperationModel;
import net.java.amateras.uml.model.AbstractUMLEntityModel;
import net.java.amateras.uml.model.AbstractUMLModel;
import org.eclipse.gef.Grap... |
/*
* Copyright 2013-2018 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... |
/*
*
* MIT License
*
* Copyright (c) 2020 TerraForged
*
* 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, m... |
package com.autumn.modules.core.service;
import com.autumn.modules.core.entity.MenuItem;
import com.autumn.modules.core.repo.MenuItemRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class MenuItemService {... |
/**
* generated by Xtext 2.19.0
*/
package org.afplib.afpText;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>MGORG</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
... |
package net.sourceforge.kolmafia.textui;
import java.io.IOException;
import java.io.LineNumberReader;
import java.util.Deque;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Stack;
import net.sourceforge.kolmafia.StaticEntity;
import org.eclipse.lsp4j.Position;
import org.eclipse.lsp4j.Range;
... |
package com.isecpartners.samplesync.test;
import java.nio.ByteBuffer;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import org.spongycastle.util.encoders.Hex;
import com.isecpartners.samplesync.AccountHelper;
import com.isecpartners.samplesync.IBlobStore;
import com.isecpartners.sa... |
/*-
* #%L
* AWS SAM HTTP Server
* %%
* Copyright (C) 2005 - 2021 Daniel Sagenschneider
* %%
* 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/LI... |
package cucumber.runtime;
import io.cucumber.stepexpression.Argument;
import cucumber.api.StepDefinitionReporter;
import gherkin.pickles.PickleStep;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.u... |
package no.nav.veilarboppfolging.controller.v2;
import lombok.RequiredArgsConstructor;
import no.nav.veilarboppfolging.controller.response.Bruker;
import no.nav.veilarboppfolging.service.AuthService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMappin... |
/*
* Copyright (C) 2009-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package jdocs.io.japi;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import com.typesafe.config.Config;
import com.type... |
package org.archivemanager.services.cache;
import java.io.Serializable;
import java.util.List;
public interface CacheService extends Serializable {
void put(String cache, String id, Object object);
List<String> getKeys(String cacheName);
Object get(String cache, String id);
void remove(String cache, String id);... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package org.minijax.rs.cdi;
import org.minijax.cdi.MinijaxProvider;
import org.minijax.rs.MinijaxContextResolver;
import org.minijax.rs.MinijaxRequestContext;
class ContextProvider<T> implements MinijaxProvider<T> {
private final Class<T> contextType;
public ContextProvider(final Class<T> contextType) {
... |
/*
* Copyright 2002-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... |
package com.commercetools.sync.commons.utils;
import io.sphere.sdk.models.Asset;
import io.sphere.sdk.models.AssetDraft;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.types.Type;
import org.junit.jupiter.api.Test;
import java.util.List;
import java.util.UUID;
import static com.commercetools.sync.common... |
package jdbc;
import jdbc.GUI.ChooseWindow;
import javax.swing.*;
public class Main {
/**
* @author Damian Mierzyński
* @since 30-01-2020
* @version 1.0
*/
public static final String URL = "url";
public static final String Login = "login";
public static final String Password = "pa... |
// This is a generated file. Not intended for manual editing.
package se.clau.intellijlux.gen.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface LuxSetLoopBreakOnly extends PsiElement {
@NotNull
PsiElement getKSetLoopBreakOnly();
} |
package org.engineFRP.Util;
import org.junit.Test;
import java.util.Objects;
import static junit.framework.TestCase.assertEquals;
import static org.junit.Assert.assertTrue;
public class NodeTests {
@Test
public void testNewNode() throws Exception {
Node<Integer> myNode = Node.newNode(0);
as... |
package Aula_14_15_Projeto_final;
public abstract class Pessoa {
protected String nome;
protected int idade;
protected char sexo;
protected double experiencia;
//metodos abstratos
protected abstract void ganharExp();
//get and set
public String getNome() {
return ... |
package io.kuzzle.sdk.core;
import android.support.annotation.NonNull;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;... |
package com.planet_lia.match_generator.libs.replays;
import static com.planet_lia.match_generator.libs.math.MathHelpers.round;
public class BooleanSection implements Section {
public String type = this.getClass().getSimpleName();
public String entityId;
public Attribute attribute;
public float endTime... |
package de.felixbrandt.autoscale;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* Policy when to start new worker instances based on a sensor value.
*/
public class ScalingPolicy
{
private static final Logger LOGGER = LogManager.getLogger();
private Sensor demand_sensor... |
package com.reason.lang.core.psi;
import com.intellij.psi.PsiElement;
import com.reason.lang.core.psi.impl.PsiBinaryCondition;
import org.jetbrains.annotations.Nullable;
public interface PsiConditional {
@Nullable
PsiBinaryCondition getCondition();
@Nullable
PsiElement getThenExpression();
@Nullable
Psi... |
package de.lwerner.flink.percentiles.util;
import redis.clients.jedis.Jedis;
/**
* Helper class for comfortably working with Jedis, a Redis client library
*
* @author Lukas Werner
*/
public class JedisHelper {
/**
* Redis key for the k value
*/
private static final String REDIS_KEY_K = "flink-p... |
package com.example.tut1;
import android.app.Activity;
import android.bluetooth.BluetoothSocket;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Bundle... |
/*
* Copyright 2012-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... |
package projects.TPSinalgo.nodes.timers;
import projects.TPSinalgo.nodes.messages.TPSinalgoMessageTemperature;
import sinalgo.nodes.timers.Timer;
import sinalgo.tools.Tools;
public class TPSinalgoTimerTemperature extends Timer {
private TPSinalgoMessageTemperature msg = null;
public TPSinalgoTimerTempera... |
package cl.getapps.sgme.ui.eventos.eventocerrado;
import java.util.List;
import cl.getapps.sgme.data.model.api.Evento;
import cl.getapps.sgme.ui.base.MvpView;
/**
* Creado por GRINGRAZ el 21-12-2016.
*/
public interface EventoCerradoMvpView extends MvpView {
void onError();
void onEventosOk(List<Evento> e... |
/*
* 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) 1998, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0... |
/******************************************************************************
* Project Strix *
* Socket Client-Server *
* *
... |
/*
* $Id$
*
* 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
* "Lice... |
package com.example.android.camera2basic.gles;
import android.content.Context;
import android.graphics.SurfaceTexture;
import android.opengl.GLES11Ext;
import android.opengl.GLES20;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
public class CameraGLSurfaceRender extends GLAbstra... |
package me.prettyprint.hector.api.query;
/**
* Counts super column for a of a key in a super column family
*
* @author Ran Tavory
*/
public interface SuperCountQuery<K, SN> extends Query<Integer>{
SuperCountQuery<K, SN> setKey(K key);
SuperCountQuery<K, SN> setColumnFamily(String cf);
SuperCountQuery<K,... |
package org.apache.helix.integration.rebalancer.WagedRebalancer;
/*
* 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 ... |
package com.mitchtalmadge.uofu_cs_bot.service.discord.role;
import com.mitchtalmadge.uofu_cs_bot.service.LogService;
import com.mitchtalmadge.uofu_cs_bot.service.discord.DiscordService;
import com.mitchtalmadge.uofu_cs_bot.util.DiscordUtils;
import net.dv8tion.jda.api.entities.Role;
import net.dv8tion.jda.api.managers... |
package io.vertx.workshop.exercise;
import io.vertx.core.Vertx;
/**
* * Create the HTTP server in the `Exercise2Verticle`
* * Deploy this verticle from this class
*/
public class Exercise2 {
public static void main(String[] args) {
// 1 - Create the Vert.x instance using Vertx.vertx (use io.vertx.core... |
package cn.paxos.odata.hub.service;
import java.util.ArrayList;
import org.apache.olingo.server.api.OData;
import org.apache.olingo.server.api.ODataHttpHandler;
import org.apache.olingo.server.api.ServiceMetadata;
import org.apache.olingo.server.api.edmx.EdmxReference;
import org.springframework.beans.factory.annotat... |
package at.medunigraz.imi.bst.retrieval;
import at.medunigraz.imi.bst.config.TrecConfig;
import at.medunigraz.imi.bst.trec.evaluator.TrecWriter;
import at.medunigraz.imi.bst.trec.model.Challenge;
import at.medunigraz.imi.bst.trec.model.Result;
import at.medunigraz.imi.bst.trec.model.ResultList;
import at.medunigraz.im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.