text stringlengths 7 1.01M |
|---|
package com.slidingmenu.lib.app;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import com.google.android.maps.MapActivity;
import com.slidingmenu.lib.SlidingMenu;
public abstract class SlidingMapActivity extends MapActivity implements Sl... |
/*
* Copyright (c) 2006-2017 DMDirc Developers
*
* 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,... |
package cn.rongcloud.im;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.app.FragmentActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import java.util.HashMap;
import java.util.Map;... |
package com.san.allergy;
import org.springframework.data.repository.CrudRepository;
public interface AllergyRepository extends CrudRepository<Allergy, Integer> {
}
|
/*
* 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 2015-2020 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 (c) 1991, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/*
Copyright (c) 2018 LinkedIn Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... |
package emufog.docker;
import java.util.ArrayList;
import java.util.List;
/**
* This docker image represents a fog computing node in the topology.
* It can serve a fixed number of clients and is associated with deployment costs.
*/
public class FogType extends DockerType {
/* maximal number of clients this im... |
package com.ruoyi.common.exception;
/**
* 验证异常
*
* @author jack
*/
public class ValidateCodeException extends Exception {
private static final long serialVersionUID = 3887472968823615091L;
public ValidateCodeException() {
}
public ValidateCodeException(String msg) {
super(msg);
}
} |
package ru.job4j.condition;
public class Driver {
private char license = 'N';
public void passExamOn(char category) {
this.license = category;
}
public boolean hasLicense(){
return this.license == 'A' || this.license == 'B' || this.license == 'C';
}
public boolean canDrive(cha... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002, 2014 Oracle and/or its affiliates. All rights reserved.
*
*/
package com.sleepycat.je.rep;
import java.util.List;
/**
* NetworkRestoreConfig defines the configuration parameters used to configure
* a NetworkRestore operation.
... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* (c) Copyright 2020 Palantir Technologies 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 ... |
/*******************************************************************************
* Copyright 2009 OpenSHA.org in partnership with
* the Southern California Earthquake Center (SCEC, http://www.scec.org)
* at the University of Southern California and the UnitedStates Geological
* Survey (USGS; http://www.usgs.gov)
*... |
package com.smart.smartchart.utils;
import android.content.Context;
import android.os.Handler;
import android.widget.TextView;
import com.smart.smartchart.R;
public class CountDownUtils {
private Context context;
private int iTime = 60;
private TextView v;
private Handler countdownHandler;
pub... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
package com.kzmen.sczxjf.ebean;
import java.io.Serializable;
/**
* Created by Administrator on 2015/10/29.
*/
public class User implements Serializable{
/**
* own_id : 63235
* own_name : 312312hrfhhrr个护肤
* email : null
* own_mob_no : 13594015206
* own_logname : 13594015206
* acc_... |
package org.dddjava.jig.domain.model.parts.relation.packages;
import org.dddjava.jig.domain.model.parts.classes.type.TypeIdentifier;
import org.dddjava.jig.domain.model.parts.packages.PackageIdentifier;
import org.dddjava.jig.domain.model.parts.relation.class_.ClassRelation;
/**
* 相互依存
*/
public class Bidirectional... |
package vazkii.quark.experimental.block;
import net.minecraft.block.Block;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net... |
package org.nico.honeycomb.tests;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.Atomi... |
package com.coolweather.app.activity;
import com.coolweather.app.service.AutoUpdateService;
import com.coolweather.app.util.HttpCallbackListener;
import com.coolweather.app.util.HttpUtil;
import com.coolweather.app.util.Utility;
import android.app.Activity;
import android.content.Intent;
import android.content.Shared... |
package com.alipay.api.response;
import java.util.Date;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.fund.auth.order.freeze response.
*
* @author auto create
* @since 1.0, 2021-03-04 10:32:32
*/
public class AlipayFundAuthOrderFree... |
/*
* $RCSfile: FPXUtils.java,v $
*
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
*
* Use is subject to license terms.
*
* $Revision: 1.1 $
* $Date: 2005-02-11 04:55:41 $
* $State: Exp $
*/
package com.sun.media.jai.codecimpl.fpx;
import java.io.IOException;
import java.text.DecimalFormat;
i... |
/*
* This source file is part of the FIUS ICGE project.
* For more information see github.com/FIUS/ICGE2
*
* Copyright (c) 2019 the ICGE project authors.
*
* This software is available under the MIT license.
* SPDX-License-Identifier: MIT
*/
package de.unistuttgart.informatik.fius.icge.ui;
/**
* The inte... |
/**
* Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith... |
package com.salesmanager.web.entity.catalog.product.attribute;
import java.io.Serializable;
import java.util.List;
public class PersistableProductOptionValue extends ProductOptionValueEntity
implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private List<Produc... |
package office ;
import com4j.*;
@IID("{000C0357-0000-0000-C000-000000000046}")
public interface HTMLProjectItems extends office._IMsoDispObj,Iterable<Com4jObject> {
// Methods:
/**
* @param index Mandatory java.lang.Object parameter.
* @return Returns a value of type office.HTMLProjectItem
*/
@DISP... |
package play.data.validation;
import play.libs.F.*;
import static play.libs.F.*;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.*;
import java.lang.annotation.*;
import javax.validation.*;
import javax.validation.metadata.*;
import java.util.*;
/**
* Defines ... |
package listener;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.FloatControl;
import javax.sound.... |
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 Marc de Verdelhan, 2017-2018 Ta4j Organization
* & respective authors (see AUTHORS)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* ... |
package com.scoreboard.app.comment.repository;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Column;
import javax.persist... |
/*
* JBoss, Home of Professional Open Source
* Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... |
package headfirst.factory.pizzas;
/**
* Created by Gavin on 2017/3/9.
*/
public class ClamPizza extends Pizza {
public ClamPizza() {
name = "Clam Pizza";
dough = "Thin crust";
sauce = "White garlic sauce";
toppings.add("Clams");
toppings.add("Grated parmesan cheese");
... |
/**
* 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.sunzn.cube.sample;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on a... |
package org.fintx.httpagent;
import javax.servlet.annotation.WebInitParam;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
@WebServlet(displayName = "AdminServlet" , //描述
name = "AdminServlet", //servlet名称
urlPatterns = { "/admin","/admin" }, //url
loadOnStartup = 1, //启动项
i... |
package eu.bcvsolutions.idm.core.monitoring.service.impl;
import java.util.List;
import java.util.UUID;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.apache.commons.co... |
package com.u_call_34010;
import android.app.Application;
import android.content.Context;
import com.facebook.react.PackageList;
import com.facebook.react.ReactApplication;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.face... |
package lib.tarek.quiz;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android devic... |
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2005, 2006, 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (t... |
/*
* Copyright (c) 2018-present, iQIYI, Inc. 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. Redistributions of source code must retain the above copyright notice,
* this list o... |
package designpattern.factory.factory;
import designpattern.factory.factory.pizza.Pizza;
/**
* 芝加哥比萨
*
* @author wangdongxing
* @since 2018/11/15 2:59 PM
*/
public class ChicagoPizzaStore extends PizzaStore {
@Override
public Pizza createPizza(String type) {
SimplePizzaFactory factory = new Chica... |
package sch.frog.sparrow.doodle;
import java.util.Arrays;
/**
* 深度优先搜索算法演示
*/
public class DFS {
public static void main(String[] args){
int len = 3;
dfsSearch(6, 0, 1, new int[len], len);
}
/**
* 把正整数num分解为3个不同的正整数, 如: 6 = 1 + 2 + 3, 排在后面的数必须大于等于前面的数, 输出所有方案.
* @param num 需要... |
/*
* Copyright 2011 CodeGist.org
*
* 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 br.com.cod3r.strategy.worker;
import br.com.cod3r.strategy.worker.jobs.Developer;
import br.com.cod3r.strategy.worker.jobs.HispsterDeveloper;
import br.com.cod3r.strategy.worker.jobs.Pilot;
import br.com.cod3r.strategy.worker.jobs.Worker;
public class Client {
public static void presentYourself(Wor... |
/*
* Copyright 2017 PayPal
*
* 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 2021 Fausto Spoto
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
di... |
/*
* Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package com.example.ordermgr;
import org.springframework.context.annotation.Bean;
import io.opentracing.contrib.metrics.MetricLabel;
import io.opentracing.contrib.metrics.label.BaggageMetricLabel;
import io.opentracing.contrib.metrics.label.ConstMetricLabel;
import org.springframework.context.annotation.Configuration... |
package Radium.PostProcessing.Effects;
import Radium.Graphics.Shader.Shader;
import Radium.PostProcessing.EffectField;
import Radium.PostProcessing.PostProcessingEffect;
public class Sharpen extends PostProcessingEffect {
@EffectField
public float intensity = 0.8f;
public Sharpen() {
name = "sha... |
/*
* 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 Apache License,
* Version 2.0 (the "License"); you may... |
/*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C) 1999-2007 Shigeru Chiba. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Alternatively, the contents o... |
package com.hk.lua;
class LuaBody extends LuaBlock
{
private final String func;
LuaBody(LuaStatement[] sts, String source, String func)
{
super(sts, source);
this.func = func;
}
Object execute(LuaInterpreter interp, Environment fenv, String[] argNames, LuaObject[] args)
{
Environment env = interp.env;
... |
package org.wso2.developerstudio.datamapper.diagram.preferences;
import org.eclipse.gmf.runtime.diagram.ui.preferences.AppearancePreferencePage;
import org.wso2.developerstudio.datamapper.diagram.part.DataMapperDiagramEditorPlugin;
/**
* @generated
*/
public class DiagramAppearancePreferencePage extends AppearanceP... |
package com.example.daily.common;
/**
* @author: zhiyuan
* @date: 2017年12月5日
* @project: spring-boot-demo
* @description:
*/
public enum Color {
RED("红色", "0001"), GREEN("绿色", "0002"), BLANK("白色", "0003"), YELLO("黄色", "0004");
// 成员变量
private String name;
private String code;
// 构造方法
private Color(String... |
package mg.news.service;
import lombok.AllArgsConstructor;
import mg.news.util.RadiotUrlBuilder;
import mg.utils.JSONConsumer;
import mg.utils.JSONHelper;
import org.json.JSONArray;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
@Transactional
... |
package com.company.eshop.domain;
import java.io.Serializable;
public class OpinionPK implements Serializable{
private static final long serialVersionUID = 1L;
private int opinionId;
public int getOpinionId() {
return opinionId;
}
public void setOpinionId(int opinionId) {
this.opinionId =... |
package com.example.gpc1.datamodel;
public class DataModel1 {
private int id;
private String timestamp;
private String result;
public DataModel1(String timestamp, String result) {
this.timestamp = timestamp;
this.result = result;
}
public int getId() {
return id;
}... |
package com.tg.tgt.ui;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.text.InputFilter;
import android.text.TextUtils;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
i... |
package com.yahtzee.core;
public class Globals {
public static final int MAX_PLAYERS = 3;
public static final int MAX_ROLLS = 3;
public static final int MAX_ROUNDS = 13;
public static final int UPPER_SECTION_BONUS_SCORE = 35;
public static final int FULL_HOUSE_SCORE = 25;
public static final i... |
/*
* Copyright (C) 2011 The Android Open Source Project
* Copyright (C) 2014 kaytat
*
* 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... |
/*
* MIT License
*
* Copyright (c) ReformCloud-Team
* Copyright (c) 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, including without limitation th... |
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
/*
* Copyright (C) 2019 Lightbend Inc. <https://www.lightbend.com>
*/
package jdoc.akka.serialization.jackson.v2a;
import com.fasterxml.jackson.annotation.JsonCreator;
import jdoc.akka.serialization.jackson.MySerializable;
import java.util.Optional;
// #add-optional
public class ItemAdded implements MySerializabl... |
/*
* 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 cz.habarta.typescript.generator.parser;
import cz.habarta.typescript.generator.ExcludingTypeProcessor;
import cz.habarta.typescript.generator.OptionalProperties;
import cz.habarta.typescript.generator.Settings;
import cz.habarta.typescript.generator.TypeProcessor;
import cz.habarta.typescript.generator.util.Pa... |
/*
* Copyright 2000-2016 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 de.dominikschadow.javasecurity.logging.home;
public class Login {
private String username;
private String password;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() ... |
/*****************************************************************
JADE - Java Agent DEvelopment Framework is a framework to develop
multi-agent systems in compliance with the FIPA specifications.
Copyright (C) 2000 CSELT S.p.A.
GNU Lesser General Public License
This library is free software; you can redistribute i... |
package com.tokelon.toktales.tools.tiled.model;
import java.util.List;
import com.tokelon.toktales.tools.tiled.ITiledMapLevelHolder;
public interface ITiledMapObjectgroup extends ITiledMapLevelHolder {
public String getName();
public String getColor();
public float getOpacity();
public boolean isVisible()... |
package io.github.idilantha.pos.business;
public interface SuperBO {
}
|
package com.stylefeng.guns.api.cinema.model;
import lombok.Data;
import java.io.Serializable;
@Data
public class AreaVo implements Serializable {
private Integer areaId;
private String areaName;
private boolean isActive;
}
|
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. 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
*
* Un... |
package cn.loltime.zone.utils;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import android.os.Handler;
import android.os.Message;
public class HttpUtils {
public static void getJSON(final String url, final Handle... |
/****************************************************************
* 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... |
package weixin.popular.bean.paymch;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class MchRevers... |
/*
* Copyright 2000-2016 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 sonar.logistics.api.connecting;
import net.minecraft.util.EnumFacing;
import sonar.core.api.utils.BlockCoords;
import sonar.core.utils.IWorldPosition;
import sonar.logistics.api.cache.INetworkCache;
/** implemented by Tile Entities which can connect to Data Cables */
public interface ILogicTile extends IWorld... |
package cz.cuni.mff.java.mbeans.rmi;
import java.io.IOException;
import java.net.MalformedURLException;
import javax.management.*;
import javax.management.remote.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Client {
public static void main(String[] args) {
... |
package com.karogath.enhancedvanilla.block;
import net.minecraftforge.registries.ObjectHolder;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.common.ToolType;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;
import ... |
package com.google.api.ads.dfp.jaxws.v201408;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Updates... |
/*
* The MIT License
*
* Copyright 2016 kanjiowl.
*
* 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... |
package io.qameta.allure.aspects;
import io.qameta.allure.Allure;
import io.qameta.allure.AllureLifecycle;
import io.qameta.allure.model.Parameter;
import io.qameta.allure.model.Status;
import io.qameta.allure.model.StepResult;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
impor... |
package ConditionalStatementsAndLoops;
import java.util.Scanner;
public class CaloriesCounter {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int number = Integer.parseInt(input.nextLine());
String food = "";
int counter = 0;
int cheese =... |
package com.alibaba.chaosblade.exec.plugin.jvm.cpu;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import com.alibaba.chaosblade.exec.common.aop.EnhancerModel;
import com.alibaba.chaosblade.exec.common.model.action.ActionExecutor;
import com.alibaba.chaosblade.exec.common.util.Str... |
/*
* 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 ... |
import static org.junit.Assert.*;
/*
* Exercício - Introducao ao JUnit
*
* Descomentar o teste, ver o teste falar e fazer
* a mudança necessária para o teste passar.
*
*/
public class JUnitBasicoTest {
public void testAssertTrue() {
assertTrue(false);
}
public void testAssertFalse() {
asse... |
/*
* Copyright (C) 2013 Intel Corporation
* All rights reserved.
*/
package com.intel.mtwilson.setup.tasks;
import com.intel.dcsg.cpg.io.Platform;
import com.intel.dcsg.cpg.validation.ObjectModel;
import com.intel.mtwilson.Folders;
import com.intel.mtwilson.My;
import com.intel.mtwilson.setup.AbstractSetu... |
/*
* 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 ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.redhat.ceylon.compiler.typechecker.util;
import java.util.HashSet;
import java.util.Set;
import com.redhat.ceylon.compiler.typechecker.model.Declaration;
import com.redhat.ceylon.compiler.typechecker.model.... |
//
// From.java
//
// Copyright (c) 2017 Couchbase, 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 ... |
package ru.job4j.calculate;
/**Car класс для определения пробега машины
* @author alexVoronin
* @since 05.04.2019
* @version 1
*/
public class Car {
private double volume;
boolean result;
/**drive метод определяет оставшийся пробег машины
* @param kilometer пробег
*/
public void drive(... |
import com.hydra.tool.object.PojoConstantsUtil;
/**
* Created by ZhengGong on 15/8/3.
* Description 挪账、结算Vo
*/
public class MoveAccountSettleVo {
private String merchantCode;
private String amountTran;
private String amountNoTran;
private long merchantsettleId;
private long merchantsettlemoveacc... |
package org.onvif.ver10.schema;
import java.util.HashMap;
import java.util.Map;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
imp... |
/*
* 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 ... |
/*
* 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 file="Contact.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
package com.microsoft.store.par... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE129_Improper_Validation_of_Array_Index__PropertiesFile_array_write_no_check_13.java
Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml
Template File: sources-sinks-13.tmpl.java
*/
/*
* @description
* CWE: 129 Improper Validation of Array In... |
package carpet.script;
import carpet.script.bundled.BundledModule;
import carpet.CarpetSettings;
import carpet.CarpetServer;
import carpet.script.bundled.FileModule;
import carpet.script.bundled.Module;
import carpet.script.exception.InvalidCallbackException;
import carpet.script.value.FunctionValue;
import carpet.scr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.