text
stringlengths
7
995k
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright (c) 2021 FakeXposed by sanfengAndroid. * * 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...
package com.verilang.psi.factory.nodes; import com.intellij.lang.ASTNode; import com.verilang.psi.TypedDeclaration; import org.antlr.jetbrains.adaptor.psi.ANTLRPsiNode; import org.jetbrains.annotations.NotNull; public class ParameterDeclarationPsiNode extends ANTLRPsiNode implements TypedDeclaration { pu...
/* * Copyright (c) 2008-2021, 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 com.romanceabroad.ui; import com.automation.remarks.testng.VideoListener; import com.automation.remarks.video.annotations.Video; import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; import org.openqa.selenium.support.ui.ExpectedConditions; impor...
package com.gmail.picono435.picojobs.listeners.jobs; import org.bukkit.entity.Item; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerFishEvent; import org.bukkit.event.player.PlayerFishEv...
package io.quarkus.arc.impl; import io.quarkus.arc.InjectableInterceptor; import javax.enterprise.inject.spi.InterceptionType; import javax.interceptor.InvocationContext; public final class InterceptorInvocation { public static InterceptorInvocation aroundInvoke(InjectableInterceptor<?> interceptor, Object inter...
package org.intermine.sql.query; /* * Copyright (C) 2002-2013 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.ht...
/* * Copyright 2019-present Open Networking Foundation * * 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...
package com.vastsum.entity; import java.util.ArrayList; import java.util.Date; import java.util.List; public class BizExceptionExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; public BizExceptionExample() { oredCriteria = new Array...
package com.qa.ims.persistence.domain; import static org.junit.Assert.assertEquals; import org.junit.Test; public class DomainTest { @Test public void testGetDomainRight() { Domain customer = null; customer = Domain.valueOf("CUSTOMER"); assertEquals("CUSTOMER: Information about customers", customer.ge...
package com.zzp.shop.provider.service; import com.alibaba.fastjson.JSON; import com.zzp.shop.common.constant.ShopConstant; import com.zzp.shop.common.exception.CastException; import com.zzp.shop.common.utils.IDWorker; import com.zzp.shop.common.vo.ResultVo; import com.zzp.shop.provider.api.PayService; import com.zzp.s...
package zserio.runtime.array; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertTrue; import java.io.IOException; import org.junit.Test; import zserio.runtime.BitSizeOfCalculator; import zserio.r...
// Copyright 2020 Intel Corporation // SPDX-License-Identifier: Apache 2.0 package org.sdo.cri; /** * Cipher block modes defined by the secure device onboard protocol. */ public enum CipherBlockMode { CTR, CBC; }
/* * Copyright 2020 Björn Kautler * * 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...
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 核销结果返回DTO * * @author auto create * @since 1.0, 2021-12-10 11:49:32 */ public class WriteOffProcessResponseOpenApi...
package com.nikialeksey.jood.args; import com.nikialeksey.jood.JdException; import org.cactoos.Scalar; import java.io.InputStream; import java.sql.PreparedStatement; public final class BlobArg implements Arg { private final Scalar<InputStream> value; public BlobArg(final InputStream value) { this((...
public class ShowEnergy { public static void main(String[] args) { Picture inputImg = new Picture(args[0]); System.out.printf("image is %d columns by %d rows\n", inputImg.width(), inputImg.height()); inputImg.show(); SeamCarver sc = new SeamCarver(inputImg); System.out....
/* * 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.vimukti.accounter.web.server; import com.vimukti.accounter.web.client.core.AccounterCoreType; import com.vimukti.accounter.web.client.core.IAccounterCore; /** * @author Prasanna Kumar G * */ public class OperationContext { /** User who is Doing Operation */ protected String userID; /** Operation ...
package io.spring2go.seata.core.exception; /** * Created by william on May, 2020 */ public class TransactionException extends Exception { protected TransactionExceptionCode code = TransactionExceptionCode.Unknown; public TransactionExceptionCode getCode() { return code; } public Transaction...
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
package br.com.zupacademy.mario.proposta.domain.Cartao.dto; public enum EstadoCarteira { FALHA, ASSOCIADA; }
package com.alexstyl.specialdates.ui.loader; import android.content.Context; import android.support.v4.content.AsyncTaskLoader; @SuppressWarnings("all") public abstract class SimpleAsyncTaskLoader<T> extends AsyncTaskLoader<T> { public SimpleAsyncTaskLoader(Context context) { super(context); } p...
/* * 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 gui; import frames.Assignment1Frame2; import javax.swing.SwingUtilities; /** * * @author Lwdthe1 */ public class Assignmen...
/* * Copyright 2016 Dmitry Avtonomov. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/* * Copyright (c) 2009-2018, United States Government, as represented by the Secretary of Health and Human Services. * 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...
/** * Copyright 2009-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package com.mojang.datafixers.optics; import com.mojang.datafixers.FunctionType; import com.mojang.datafixers.kinds.App; import com.mojang.datafixers.kinds.App2; import com.mojang.datafixers.kinds.K2; import com.mojang.data...
/* * 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 egovframework.com.sym.ccm.zip.service.impl; import egovframework.com.sym.ccm.zip.service.Zip; import egovframework.rte.fdl.excel.EgovExcelMapping; import egovframework.rte.fdl.excel.util.EgovExcelUtil; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.ss.usermodel.Row; /** * * Excel 우편번...
package org.infinispan.it.endpoints; import org.infinispan.commons.dataconversion.MarshallerEncoder; import org.infinispan.commons.dataconversion.MediaType; /** * @since 9.1 */ public class MemcachedEncoder extends MarshallerEncoder { public MemcachedEncoder() { super(new SpyMemcachedMarshaller()); } ...
package com.royole.settingspreference.utils; import android.content.Context; import android.content.Intent; import android.content.pm.PackageInfo; import android.net.Uri; import android.os.AsyncTask; import android.widget.Toast; import com.royole.settingspreference.R; import org.apache.http.HttpResponse; import org....
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
package com.softicar.platform.db.structure.key; import com.softicar.platform.db.structure.column.IDbColumnStructure; import com.softicar.platform.db.structure.table.IDbTableStructure; import com.softicar.platform.db.structure.utils.DbKeyStructureSqlGenerator; import java.util.ArrayList; import java.util.Collection; im...
package com.iluwatar.interceptingfilter; /** * Filter Manager manages the filters and Filter Chain. * * @author joshzambales * */ public class FilterManager { private FilterChain filterChain; public FilterManager(Target target) { filterChain = new FilterChain(target); } public void addFilter(Filter fil...
package org.phenopackets.schema.validator.core; import com.google.protobuf.Message; /** * @author Jules Jacobsen <j.jacobsen@qmul.ac.uk> */ @FunctionalInterface public interface ValidationCheck<T extends Message> { public ValidationResult validate(T message); }
/* * Copyright 2011-2016 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 "li...
package com.alessiodp.core.common.logging; import lombok.Getter; import lombok.RequiredArgsConstructor; @RequiredArgsConstructor public enum ConsoleColor { RESET("\u001B[0m"), BLACK("\u001B[30m"), BLUE("\u001B[34m"), CYAN("\u001B[36m"), GREEN("\u001B[32m"), PURPLE("\u001B[35m"), RED("\u001B[31m"), YELLOW("\u0...
package de.akull.algorithms; class Quicksort { static void quicksort(int[] xs) { quicksort(xs, 0, xs.length - 1); } static void quicksort(int[] xs, int left, int right) { if (left >= right) { return; } int pivot = xs[(left + right) / 2]; int index = pa...
// Copyright 2016 Google 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 by applicable law...
package com.epicodus.hurryletsgo; 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 And...
/* * This Java source file was generated by the Gradle 'init' task. */ package org.example.lib; public class Library { public boolean someLibraryMethod() { return true; } }
package example.model; import lombok.Data; import lombok.NoArgsConstructor; import java.time.LocalDate; /** * @author dshaplov */ @Data @NoArgsConstructor public class TestDate { LocalDate date = LocalDate.now(); String name = "SDFSDF"; }
/* * Copyright 2018 Nikita Shakarun * * 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...
package com.liang.algo.tree; public class MaxPathSum { private int sum = Integer.MIN_VALUE; public int maxPathSum(TreeNode root) { rec(root); return sum; } // 以root为起始点的最大路径和 public int rec(TreeNode root) { if (root == null) { return Integer.MIN_VALUE; }...
/* * Siemens API for MicroEmulator * Copyright (C) 2003 Markus Heberling <markus@heberling.net> * * It is licensed under the following two licenses as alternatives: * 1. GNU Lesser General Public License (the "LGPL") version 2.1 or any newer version * 2. Apache License (the "AL") Version 2.0 * * You m...
package com.hsjskj.quwen.ui.user.activity; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.MotionEvent; import android.view.View; import android.widget.Button; import android.widget.EditText; import androidx.annotation.Nullable; import androidx.lifecycle...
package org.nd4j.linalg.exception; /** * This exception is thrown once if INDArray length exceeds Integer.MAX_VALUE * * @author raver119@gmail.com */ public class ND4JArraySizeException extends ND4JException { public ND4JArraySizeException() { super("INDArray length is too big to fit into JVM array"); ...
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination ...
package org.apache.batik.css.engine.sac; import java.util.Set; import org.w3c.css.sac.Selector; import org.w3c.css.sac.SimpleSelector; import org.w3c.dom.Element; import org.w3c.dom.Node; public class CSSDirectAdjacentSelector extends AbstractSiblingSelector { public CSSDirectAdjacentSelector(short var1, Selector ...
package org.anddev.andengine.entity.modifier; import org.anddev.andengine.entity.IEntity; import org.anddev.andengine.util.modifier.ease.IEaseFunction; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 23:13:01 - 19.03.2010 */ public class AlphaModifier extends Single...
// "Fix all 'Stream API call chain can be simplified' problems in file" "true" import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import java.util.stream.Stream; class MyClass { void test(String someStr) { Predicate<String> predicate = "foo"::equals; boolean...
/* * Copyright 2014 Goldman Sachs. * * 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 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright (c) 2013-2019 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
package com.ynhenc.kml; import java.util.Iterator; public interface KmlPlacemarkIterator extends Iterator<KmlPlacemark> { }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
package org.voovan.docker.message.swarm.atom; /** * * @author helyho * <p> * DockerFly Framework. * WebSite: https://git.oschina.net/helyho/JDocker * Licence: Apache v2 License */ public class CAConfig { private Long nodeCertExpiry; private ExternalCA externalCA; public CAConfig() { nodeCer...
package com.fanye.sell.form; import lombok.Data; import javax.validation.constraints.NotEmpty; @Data public class OrderForm { /** * 买家姓名 */ @NotEmpty(message = "姓名必填") private String name; /** * 买家手机号 */ @NotEmpty(message = "手机号必填") private String phone; /** * 买...
/* * 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 not ...
package com.atomic.web.controller.system; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.subject.Subj...
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writi...
// Copyright 2017 Google 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 by applicable...
package org.linlinjava.litemall.core; import org.junit.Test; import org.junit.runner.RunWith; import org.linlinjava.litemall.core.notify.NotifyService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.annotati...
// This is a generated file. Not intended for manual editing. package nl.hannahsten.texifyidea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; ...
package com.cc.jcg.jdbc; public enum JdbcOrderBy { NONE, ASC, DESC; }
package org.egov.ifix.repository; import java.util.Arrays; import java.util.List; import org.egov.common.contract.request.RequestHeader; import org.egov.ifix.models.COASearchCriteria; import org.egov.ifix.models.ChartOfAccount; import org.egov.ifix.models.ChartOfAccountRequest; import org.egov.ifix.models.ChartOfAcco...
package com.example.kedamall.product.service; import com.baomidou.mybatisplus.extension.service.IService; import com.example.common.utils.PageUtils; import com.example.kedamall.product.entity.AttrAttrgroupRelationEntity; import com.example.kedamall.product.vo.AttrGroupRelationVo; import java.util.List; import java.ut...
package edu.gdei.gdeiassistant.Controller.About.Controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; @Controller public class About...
package com.miget.hxb.wx.model; import com.alibaba.fastjson.JSONObject; import java.util.HashMap; public class TemplateData { private String touser; private String template_id; private String url; private String topcolor; private TemplateItem data; public static TemplateData New() { ...
package jswingshell.jssframe; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.beans.PropertyChangeEvent; import java.util.Locale; import javax.swing.JButton; import javax.swing.JCheckBoxMenuItem; import javax.swing.JComboBox; import javax.swing.JFileChooser; import javax.swing.JMenu...
/* * Copyright 2015 Skymind,Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/* * Copyright 2017-2020 Alfresco Software, 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 applicable ...
/* * Copyright (c) 2005-2018 Substance Kirill Grouchnikov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, * ...
/* * 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 org.basex.gui.dialog; import static org.basex.core.Text.*; import java.awt.*; import java.io.*; import java.util.*; import org.basex.core.*; import org.basex.core.cmd.*; import org.basex.data.*; import org.basex.gui.*; import org.basex.gui.layout.*; import org.basex.gui.text.*; import org.basex.io.*; import ...
/* * Copyright 2014 Daniel Kurka * * 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 net.minestom.server.network.packet.server.play; import net.minestom.server.item.ItemStack; import net.minestom.server.network.packet.server.ServerPacket; import net.minestom.server.network.packet.server.multiversion.PacketAdapter; import net.minestom.server.utils.binary.BinaryReader; import net.minestom.server...
/* * Copyright 2016 Christoph Böhme * * 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...
package module1893_public.a; import java.io.*; import java.rmi.*; import java.nio.file.*; /** * Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut * labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. * ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
/* * 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 itat.zttc.shop.web; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface Auth { public String value() default "user"; }
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package com.microsoft.sampleandroid; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import andro...
/* * Copyright (c) 2018 Jitse Boonstra */ package net.jitse.npclib.listeners; import net.jitse.npclib.NPCManager; import net.jitse.npclib.api.NPC; import org.bukkit.Bukkit; import org.bukkit.Chunk; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bu...
package com.leyou.item.service.impl; import com.leyou.item.mapper.SpecGroupMapper; import com.leyou.item.mapper.SpecParamMapper; import com.leyou.item.pojo.SpecGroup; import com.leyou.item.pojo.SpecParam; import com.leyou.item.service.SpecificationService; import org.springframework.beans.factory.annotation.Autowired;...
package ru.stqa.pft.addressbook.tests; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.ContactRequiredData; import ru.stqa.pft.addressbook.model.Contacts; import ru.stqa.pft.addressbook.model.GroupData; import ru.stqa.pft.addressbook.model.Groups; i...
package com.gof.Bridge.vers2; public class Toyota implements Model{ public void drive(String str) { System.out.println(str + "Toyota"); } }
/******************************************************************************* * Copyright 2002-2019, OpenNebula Project, OpenNebula Systems * * 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 Licens...
package org.infernus.idea.checkstyle.build; import org.gradle.api.GradleException; import org.gradle.api.Project; import org.gradle.api.artifacts.Dependency; import org.gradle.api.artifacts.ModuleDependency; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; i...
/* * 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 finddigits; import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.regex.*; public class Solution { // Complete the findDigits function below. static int findDigits(int n) { List<Integer> list = ne...
// // $Id$ package com.threerings.msoy.data; @com.threerings.util.ActionScript(omit=true) public interface MsoyUserOccupantInfo { /** * Is this user a subscriber? */ boolean isSubscriber (); /** * Is this user a member of staff? */ boolean isSupport (); /** * Update ...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_File_postinc_66a.java Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-66a.tmpl.java */ /* * @description * CWE: 190 Integer Overflow * BadSource: File Read data from file (named c:\data.txt) * GoodS...
/* * Copyright 2017, Backblaze Inc. All Rights Reserved. * License https://www.backblaze.com/using_b2_code.html */ package com.backblaze.b2.client.structures; import com.backblaze.b2.json.B2Json; import java.util.Objects; public class B2Part { @B2Json.required private final String fileId; @B2Json.requ...
/******************************************************************************* * Copyright (c) quickfixengine.org All rights reserved. * * This file is part of the QuickFIX FIX Engine * * This file may be distributed under the terms of the quickfixengine.org * license as defined by quickfixengine.org and appea...
package vip.lematech.hrun4j; import vip.lematech.hrun4j.cli.handler.Command; import vip.lematech.hrun4j.cli.handler.CommandHandler; import vip.lematech.hrun4j.cli.handler.CommandParser; import org.kohsuke.args4j.Argument; import org.kohsuke.args4j.CmdLineException; import java.io.PrintWriter; import java.io.Writer; ...
package com.spillman.client.servlet; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.spillman.client.model.PropertiesHolder; import com.spillman.client.validator.PropertiesValidator; import lombok.extern.slf4j.Slf4j; import javax.servlet.ServletExce...