text
stringlengths
7
1.01M
package com.virmana.stickers_app.adapter; import android.app.Activity; import androidx.recyclerview.widget.RecyclerView; import android.util.TypedValue; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.virmana.stickers_app.R; import com.virmana.stickers_app.entit...
/* * Copyright (C) 2013 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...
/* * Copyright (C) 2012 Facebook, 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 ...
/* * 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 2017 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...
package com.project.convertedCode.servlets.vendor.phpunit.phpunit.src.Framework.Constraint; import com.runtimeconverter.runtime.includes.RuntimeIncludable; import com.runtimeconverter.runtime.includes.RuntimeConverterServlet; import com.runtimeconverter.runtime.RuntimeEnv; import javax.servlet.http.HttpServletRequest;...
import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util...
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */ package unittest; import org.junit.jupiter.api.Test; import com.runtimeverification.rvmonitor.java.rt.annotation.MonitorOn; public class FunctionTest { @Test @MonitorOn("unittest") void test() { Instrumented i = new Instrume...
/* * Copyright 2021 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...
package com.leammin.leetcode.easy; /** * 35. 搜索插入位置 * * <p>给定一个排序数组和一个目标值,在数组中找到目标值,并返回其索引。如果目标值不存在于数组中,返回它将会被按顺序插入的位置。</p> * * <p>你可以假设数组中无重复元素。</p> * * <p><strong>示例 1:</strong></p> * * <pre><strong>输入:</strong> [1,3,5,6], 5 * <strong>输出:</strong> 2 * </pre> * * <p><strong>示例&nbsp;2:</strong></p> ...
package io.opensphere.wfs.envoy; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.math.BigInteger; import java.net.MalformedURLException; import java.net.URL; import java.util.Collection; import java.util.Collections; import java.util.LinkedList...
/* * 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.ming.blog.config; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.con...
/** * Copyright (c) 2016, 2021, 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.conveyal.data.census; import com.conveyal.data.geobuf.GeobufDecoder; import com.conveyal.data.geobuf.GeobufFeature; import com.vividsolutions.jts.geom.*; import com.vividsolutions.jts.geom.prep.PreparedPolygon; import com.vividsolutions.jts.util.GeometricShapeFactory; import org.mapdb.DBMaker; import org.s...
/* * Gitea API. * This documentation describes the Gitea API. * * OpenAPI spec version: 1.15.0+dev-206-gae6d7860b * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package io.gitea.api; ...
package io.percy.examplepercyjavaselenium; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Exe...
package de.adorsys.ledgers.oba.rest.api.resource; import de.adorsys.ledgers.middleware.api.domain.account.AccountDetailsTO; import de.adorsys.ledgers.middleware.api.domain.um.AisConsentTO; import de.adorsys.ledgers.oba.rest.api.domain.AuthorizeResponse; import de.adorsys.ledgers.oba.rest.api.domain.ConsentAuthorizeRes...
package com.netto.core.context; public class ServerAddress { private String ip; public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public int getPort() { return port; } public void setPort(int port) { this.port = port; } public int getWeight(...
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ // O(n^2) Solution class Solution { public boolean isSubtree(TreeNode s, TreeNode t) { if (s == null && t == null) return true; ...
/* * Copyright 2018 tweerlei Wruck + Buchmeier GbR - http://www.tweerlei.de/ * * 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 * * Unl...
/* * 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 caldera.common.init; import caldera.Caldera; import caldera.common.brew.generic.component.action.ActionType; import caldera.common.brew.generic.component.action.actions.*; import caldera.common.brew.generic.component.action.actions.conversion.ConvertEntitiesActionType; import net.minecraftforge.registries.Defe...
package io.crnk.home; import java.io.IOException; import java.util.Arrays; import java.util.List; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectReader; import com.fasterxml.jackson.databind.node.ObjectNode; import io.crnk.core.boot.CrnkBoot; import io.crnk.core.engine.doc...
/* * 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 ...
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.ads.interactivemedia.v3.impl; import android.util.Log; import com.google.ads.interactivemedia.v3.a.f; import java.util.Iterator; import...
package snowGlobe; // apcs.io import apcs.Window; public class SnowGlobe { public static void main(String[] args) { // create a new window Window.size(400, 400); // Create a list of Ball objects. Snow[] list = new Snow[10]; for (int i = 0; i < 10; i++) { list[i] = new Snow(150, 150, 1, 2); } wh...
package com.scriptsbundle.opportunities; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test pu...
package com.planet_ink.coffee_mud.Abilities.Spells; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import...
/* * 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...
/* * $Header$ * $Revision: 1235 $ * $Date: 2006-11-08 09:02:21 -0800 (Wed, 08 Nov 2006) $ * * ==================================================================== * * Copyright 2000-2002 bob mcwhirter & James Strachan. * All rights reserved. * * Redistribution and use in source and binary forms, wit...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Copyright 2016-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...
/* * 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 2012-2014 Eurocommercial Properties NV * * * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
package com.coffean.sinfonia.ecs; import com.badlogic.ashley.core.Entity; import com.badlogic.ashley.core.PooledEngine; import com.badlogic.gdx.graphics.g2d.Animation; import com.badlogic.gdx.graphics.g2d.TextureAtlas; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.physics.box2d.BodyDef; i...
package org.anddev.andengine.entity.util; import org.anddev.andengine.engine.handler.IUpdateHandler; import org.anddev.andengine.util.Debug; import org.anddev.andengine.util.constants.TimeConstants; /** * (c) 2010 Nicolas Gramlich * (c) 2011 Zynga Inc. * * @author Nicolas Gramlich * @since 19:52:31 - 09.03.201...
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
// Targeted by JavaCPP version 1.5.4: DO NOT EDIT THIS FILE package org.bytedeco.opencv.opencv_stitching; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.openblas.global.openblas_nolapack.*; i...
//An exception class to model page faults //Created by James Vanderhyde, 28 March 2011 package edu.sxu.osvis.pagedmem; public class PageFault extends Exception { private int requestedPage; public PageFault(int requestedPage) { this.requestedPage = requestedPage; } public int getRequested...
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
/* * 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 Synchronizer.Lamps; import Yardmaster.Forwarder; import Compiler.Debugging; import Compiler.Litigate; import java.util.ArrayDeque; public class PapsOrganizer extends Compiler.Debugging { private java.util.ArrayDeque<Litigate> eagerJunk = null; static int significance = 1014134621; public synchronized S...
/* * Copyright (c) 2018 Gomint team * * This code is licensed under the BSD license found in the * LICENSE file in the root directory of this source tree. */ package io.gomint.world.block; /** * @author geNAZt * @version 1.0 * @stability 1 */ public interface BlockHeavyWeightedPressurePlate extends Block { }...
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import seedu.address.logic.CommandHistory; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.Model; import seedu.address.model.person.healthworker.HealthWorker; /** * Adds a HealthWorker t...
package cz.metacentrum.perun.core.impl; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonMappingException; import cz.metacentrum.perun.audit.events.AuditEvent; import cz.metacentrum.perun.cabinet.model.Author; ...
// Copyright 2021 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...
package com.lovi.quebic.sockm.server; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.util.Iterator; imp...
// http://codingbat.com/prob/p142539 public int[] fizzArray3(int start, int end) { int newArrLength = end - start; int[] newArr = new int[newArrLength]; int numberToAdd = start; for (int i = 0; i < newArrLength; ++i) { newArr[i] = numberToAdd; numberToAdd++; } return newArr; } // Recursive s...
/** * TypeTable.java * * This file was auto-generated from WSDL by the Apache Axis2 version: SNAPSHOT Built on : Nov 10, * 2010 (06:34:21 UTC) */ package org.apache.axis2.description.java2wsdl.xsd; /** * TypeTable bean class */ public class TypeTable implements org.apache.axis2.databinding.ADBBean { /*...
/******************************************************************************* * Copyright (c) 2017 RISE SICS AB. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 * and Eclipse Distribution License v1.0 which accompany t...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.nativelibs4java.opencl; import static com.nativelibs4java.util.NIOUtils.directBuffer; import static com.nativelibs4java.util.NIOUtils.get; import static com.nativelibs4java.util.NIOUtils.put; import static ...
/** * Copyright 2009-2018 PrimeTek. * * 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 ...
/** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ package com.twilio.rest.video.v1.room.participant; import com.twilio.base.Fetcher; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.excepti...
/** * Classes that know how to discover peers in the P2P network using DNS, IRC or DNS via Tor (orchid). */ package com.matthewmitchell.peercoinj.net.discovery;
/* * Do not modify this file; it is automatically * generated and any modifications will be overwritten. * * @(#) xdc-F05 */ import java.util.*; import org.mozilla.javascript.*; import xdc.services.intern.xsr.*; import xdc.services.spec.Session; public class ti_uia_scripts { static final String VERS = "@(#...
/** * dropwizard-guice-box Copyright 2018-2019 Graham Crockford * * <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 requir...
/* * JBoss, Home of Professional Open Source * Copyright 2017, Red Hat, Inc., 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"); * you may not use this fi...
package chap6; import javassist.gluonj.util.Loader; public class Runner { public static void main(String[] args) throws Throwable { Loader.run(基本解释器类.class, args, 基本求值器类.class); } }
package ru.otus; import ru.otus.example.ExampleTest; import ru.otus.processor.AnnotationProcessor; import ru.otus.processor.TestClassProcessor; public class Starter { public static void main(String[] args) throws Exception { TestResultInterpreter.showResults( new TestClassProcessor( ...
/* * The MIT License (MIT) * * Copyright (c) 2015, 2019 Patrick Reinhart * * 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 ...
package com.bugsnag.android; import static com.bugsnag.android.BugsnagTestUtils.mapToJson; import static com.bugsnag.android.BugsnagTestUtils.streamableToJson; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit....
/* * Copyright (c) 2022 vitasystems GmbH and Hannover Medical School. * * This file is part of project openEHR_SDK * * 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...
package com.imzhiqiang.rxtrans; import io.reactivex.Observable; /** * Created by zech on 2017/3/19. */ public interface TransApi { Observable<String> trans(String query, String from, String to); }
/* * 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 (c) 2013 Menny Even-Danan * * 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 agree...
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the follo...
package com.shynieke.coupons.items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class CouponItem extends Item { public CouponItem(Properties properties) { super(properties); } @Override public int getBurnTime(ItemStack itemStack) { return 200; } }
package com.hrdzkj.optional; public interface Predicate<T> { boolean test(T subject); }
/* * 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 2015 Martynas Jusevičius <martynas@atomgraph.com>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
/* * Copyright (C) 2014-2021 Philip Helger (www.helger.com) * philip[at]helger[dot]com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.rest.repository.patch.factories.impl; import org.dspace.app.rest.exception.DSpa...
package elasta.orm.query.read.builder.impl; import elasta.orm.entity.core.Field; import elasta.orm.query.expression.PathExpression; import elasta.orm.query.read.builder.ex.ObjectReaderException; import elasta.orm.query.read.impl.FieldAndIndexPair; import java.util.HashMap; import java.util.List; import java.util.Map;...
import java.util.Scanner; public class StaticBlock { static int B; static int H ; static boolean flag = true; static { Scanner sc=new Scanner(System.in); boolean flag=true; int B = sc.nextInt(); int H = sc.nextInt(); if(B>0 && H>0) { flag=true; } else { flag=false; System.out.println("java.lang.Exc...
package com.example.aop.dto; public class User { private String id; private String pw; private String email; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getPw() { return pw; } public void setPw(S...
import java.io.FileNotFoundException; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.logging.Level; import java.util.logging.Logger; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates ...
package com.example.sagar.helpthem; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test public ...
/* * Copyright (c) 2017-2021 Nitrite 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...
/* * Copyright (C) 2015 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...
/* * Copyright 2013-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
package org.chy.anubis.testengine.junit.executioner; import org.chy.anubis.exception.InterruptException; import org.chy.anubis.log.Logger; import org.chy.anubis.testengine.junit.descriptor.AbstractTestDescriptor; import org.junit.platform.engine.EngineExecutionListener; import org.junit.platform.engine.TestDescriptor;...
/* * 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 mage.player.ai; import mage.abilities.Ability; import mage.constants.RangeOfInfluence; import mage.game.Game; import org.apache.log4j.Logger; import java.util.Date; import java.util.LinkedList; import java.util.UUID; /** * @author ayratn */ public class ComputerPlayer7 extends ComputerPlayer6 { privat...
package br.senac.tads3.CRUDFuncionario; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.H...
package com.mucheng.objects; /** * Created by Administrator on 2017/9/17. */ public class Background { }
/* * Copyright 1999-2019 Seata.io Group. * * 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 (c) 2020 Northrop Grumman Systems Corporation. * * 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 a...
/** * Bloom Filter */ package com.jn.langx.util.bloom;
package com.gof.behavioral.command; public class ConcreteCommand implements Command { public Receiver Receiver; public ConcreteCommand(Receiver Receiver) { this.Receiver = Receiver; } @Override public void execute() { this.Receiver.action(); } }
/* * JBoss, Home of Professional Open Source * Copyright 2015, 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 hurrycaneblurryname.ryde; import android.content.Context; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.reflect.TypeToken; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileInputStream; import java.io.FileNotFoundException; import java....
package com.jbm.framework.service.mybatis; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.enums.SqlMethod; import com.baomidou.mybatisplus.core.metadata.TableInfo; import com.baomidou.mybatisplus.core.metadata.TableInfoHelper; import com.baomidou.mybatisplus.co...
/* * 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 2018, Strimzi authors. * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html). */ package io.strimzi.api.kafka.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.an...
package org.cloudfoundry.samples.music.domain; import static org.junit.Assert.*; import org.junit.Test; public class ApplicationInfoTest { ApplicationInfo ai = new ApplicationInfo(null, null); @Test public void test() { ai.setI("2"); System.out.println("output2: "+ai.getI()); assertEquals(""...
package nl.tudelft.jpacman.npc.ghost; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import nl.tudelft.jpacman.board.Board; import nl.tudelft.jpacman.board.Direction; import nl.tudelft.jpacman.board.Square; import nl.tudelft.jpacman.board.Unit; /** * Navigation pr...
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.submit.lookup; import gr.ekt.bte.core.Record; import java.io.IOException; import j...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__Environment_printf_04.java Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-04.tmpl.java */ /* * @description * CWE: 134 Uncontrolled Format String * BadSource: Environment Read data from an e...