text
stringlengths
7
995k
package basic.number; import java.util.List; import java.util.ArrayList; /** Source: https://leetcode.com/problems/find-all-duplicates-in-an-array/ <p>Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twice in this arra...
class Solution { public int maxSubArray(int[] nums) { int res = nums[0]; for(int i = 1; i < nums.length; i++){ nums[i] = Math.max(nums[i], nums[i] + nums[i - 1]); res = Math.max(res, nums[i]); } return nums.length != 1 ? res : nums[0]; } }
package druga_grupa; import java.util.Scanner; public class TestCd { public static void main(String[] args) { Cd[] cdovi = new Cd[10]; int i=0; // Indikator koji nam govori da li je korisnik zavrsio sa radom boolean indikator = true; // Skener za parsiranje ulaznih podataka Scanner scan...
package psidev.psi.mi.jami.utils.comparator.cv; import psidev.psi.mi.jami.model.CvTerm; import psidev.psi.mi.jami.model.Xref; import psidev.psi.mi.jami.utils.comparator.CollectionComparator; import psidev.psi.mi.jami.utils.comparator.xref.UnambiguousExternalIdentifierComparator; import java.util.ArrayList; import jav...
/** * * 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"); ...
/* * -------------------------------------------------------------------------------------------------------------------- * <copyright company="Aspose"> * Copyright (c) 2018 Aspose.Slides for Cloud * </copyright> * <summary> * Permission is hereby granted, free of charge, to any person obtaining a copy * of...
package io.github.lysu.smalltw; /** * Created by robi on 31/03/2017. */ public interface Timer { void add(TimerTask timerTask); boolean advanceClock(long timeoutMs); int size(); void shutdown(); }
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
package Atom.Annotation; 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.METHOD) public @interface MethodFuzzer { byte maxByte() default Byte.MAX...
/** * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.test.thrift; import java.util.ArrayList; import java.util.BitSet; import java.util.Collections; import java.util.EnumMap; import java.util.EnumSet; import java.util.Hash...
package bio.guoda.preston.store; import bio.guoda.preston.cmd.ActivityContext; import bio.guoda.preston.RefNodeFactory; import bio.guoda.preston.process.StatementsListener; import bio.guoda.preston.process.StatementsListenerAdapter; import org.apache.commons.lang3.tuple.Pair; import org.apache.commons.rdf.api.BlankNod...
package com.ahmedalaa.movieapp.dataBase; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by ahmed on 27/09/2017. */ public class MovieDatabaseHelper extends SQLiteOpenHelper { private static final int DATABASE_VERSION...
/** * The MIT License (MIT) * * Copyright (c) 2014 Segment.io, Inc. * * 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...
/* * 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.communote.server.core.blog.events; import com.communote.server.model.blog.BlogRole; /** * Event that is fired when topic access rights of entities (users or groups) have changed. * * @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a> */ public class EntityTopic...
package com.restful.tutorial; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringAppli...
package com.tfar.extendedfurnace.inventory; import net.minecraft.item.ItemStack; import net.minecraft.util.NonNullList; import net.minecraftforge.items.ItemStackHandler; /** * borrowed from Actually Additions */ public class AutomationSensitiveItemStackHandler extends ItemStackHandler { public static final IAc...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.resources; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson....
package com.sunofbeaches.looerpager.views; import android.annotation.SuppressLint; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.RelativeLayout; import android.widget.TextView;...
/* * Copyright 1999-2011 Alibaba 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 law or a...
package com.example.soma.cameraviewtest; /** * Created by jihaeseong on 15. 11. 3.. */ public class REQUEST{ public String result; public String message; public String device_id; public String image; public String data; public detected_faces[] detected_faces; public class detected_faces...
package com.github.davidmoten.rtree2; import com.github.davidmoten.rtree2.geometry.Geometry; import com.github.davidmoten.rtree2.geometry.HasGeometry; public interface Entry<T, S extends Geometry> extends HasGeometry { T value(); @Override S geometry(); }
package com.example.demo.aop; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.web.context.request.RequestContextHold...
package org.traccar.protocol; import org.jboss.netty.buffer.ChannelBuffers; import org.junit.Test; import org.traccar.ProtocolDecoderTest; import org.traccar.helper.ChannelBufferTools; public class AutoFon45ProtocolDecoderTest extends ProtocolDecoderTest { @Test public void testDecode() throws Exception { ...
package com.cmpl.core.events.listeners; import com.cmpl.web.core.common.event.DeletedEvent; import com.cmpl.web.core.membership.MembershipService; import com.cmpl.web.core.models.BOGroup; import com.cmpl.web.core.responsibility.ResponsibilityService; import java.util.Objects; import org.springframework.context.event.E...
package constrctorSuper22; public class A { public int x; public int y; // عند استدعائه y و x يحتوي على كونستركتور يسمح بتمرير قيم أولية للمتغيرات A الكلاس // لأنه لا يوجد كونستركتور لا يحتوي على باراميترات Subclass هنا يجب استدعاء هذا الكونستركتور في أي public A(int x, int y) { this.x = x...
package org.hkijena.jipipe.extensions.imagejalgorithms.utils; import org.hkijena.jipipe.extensions.parameters.library.ranges.PaintGenerator; import java.awt.*; public class RGBBlueTrackBackground implements PaintGenerator { private static float[] FRACTIONS = new float[2]; private static Color[] COLORS = new...
package com.javaedge.design.pattern.creational.simplefactory; /** * @author JavaEdge */ public abstract class Video { /** * 生产视频 */ public abstract void produce(); }
/* * 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 ro.nextreports.server.web.analysis; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Required; ...
/* * Java * * Copyright 2021-2022 MicroEJ Corp. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found with this software. */ package com.microej.example.image.server.connectivity; import java.io.IOException; import com.microej.example.image.server.ImageServerLogger; ...
// 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.openapi.vcs.changes; import com.intellij.ide.CommonActionsManager; import com.intellij.ide.TreeExpander; import com.intellij.ide.util.treeView.TreeState; imp...
/** * <copyright> * </copyright> * * */ package eu.hyvar.mspl.manifest.resource.hymanifest; /** * <p> * A mapping from an identifier to something else. The &quot;something else&quot; * is defined by subclasses of this interface. Implementors of such subclasses are * used during the process of resolving refe...
package org.example; public interface Sub2 extends org.example.Sub1 { public java.lang.String getSub2Elem(); public void setSub2Elem(java.lang.String value); public int getSub2Attr(); public void setSub2Attr(int value); }
/* * 文件名:LikeKey.java * 描述:数据表联合主键 * 修改人:刘可 * 修改时间:2021-02-05 */ package com.example.demo.entity.pk; import java.io.Serializable; import java.math.BigInteger; import java.time.LocalDate; import javax.persistence.*; import lombok.*; /** * 赞的联合主键。 * * @author 刘可 * @version 1.0.0.0 * @since 2021-02-05 */ @E...
package frc.robot.subsystem; // Motor controllers import edu.wpi.first.wpilibj.motorcontrol.PWMTalonSRX; // Drive train classes import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.SpeedControllerGroup; import edu.wpi.first.wpilibj.drive.DifferentialDrive; import edu.wpi.first.wpilibj.smartdashb...
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.validation.Valid; /** * CRFraudDiagnosisAnalysisEvaluateInputModelFraudDiagnosisAnal...
/* * Copyright 2007 Outerthought bvba and Schaubroeck nv * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * 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 b.l.a.a.e; import b.l.a.a.f.p.a; public final /* synthetic */ class c implements a { public static final c a = new c(); }
/* * Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text. * * Copyright (c) 2020, Janssen Project */ package io.jans.as.client.ciba.fcm; import javax.ws.rs.HttpMethod; import javax.ws.rs.core.MediaType; import org.apache.commons.lang.StringUtil...
/* * Copyright 2015 www.hyberbin.com. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011...
package in.iask.electonrush.commands; import java.util.HashSet; import java.util.Set; /** * The Command class defines a command that can be submitted to the scheduler for execution. * Commands may require one or more {@link Subsystem}. * When a Command is started, all Commands that requires one or more {@link Subs...
package com.company.adapter; //对象适配器 public class ObjectAdapter implements Target{ private Adaptee adaptee; ObjectAdapter(){ super(); adaptee = new Adaptee(); } @Override public void playFlac(Object src) { //可能需要对src作处理 adaptee.playMp3(src); } }
package org.minecarts.api.event; public interface Cancelable { /** * Returns whether the given event is canceled */ public boolean isCanceled(); /** * Sets whether the event will occur or not */ public void setCanceled(boolean cancel); }
/** * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it wil...
package cn.miozus.gulimall.member.service; import com.baomidou.mybatisplus.extension.service.IService; import cn.miozus.gulimall.common.utils.PageUtils; import cn.miozus.gulimall.member.entity.UndoLogEntity; import java.util.Map; /** * * * @author SuDongpo * @email miozus@outlook.com * @date 2021-08-09 14:13:1...
/* * 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 IO; import java.io.*; import java.util.Arrays; public class StringDemo_Copy_Java2 { public static void main(String[] args) throws Exception { try( // 輸入流 FileInputStream fis = new FileInputStream("Test.java"); InputStreamReader isr = new InputStreamReader(fis); // 輸出流 FileOutputStream fos = ...
/* * Copyright © 2017-2019 Cask Data, 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 ...
package com.stylefeng.guns.generator.engine.base; import com.baomidou.mybatisplus.generator.config.po.TableInfo; import com.stylefeng.guns.generator.engine.config.*; /** * 模板生成父类 * * @author fengshuonan * @date 2017-05-08 20:17 */ public class AbstractTemplateEngine { protected ContextConfig contextConfig; ...
/* * OpenAPI Petstore * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener...
package com.google.api.ads.adwords.jaxws.v201509.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * * Returns a list of all age range criteria. * ...
package consulo.javaee.run.configuration.state; import java.util.Collections; import javax.annotation.Nonnull; import com.intellij.execution.DefaultExecutionResult; import com.intellij.execution.ExecutionException; import com.intellij.execution.ExecutionResult; import com.intellij.execution.Executor; import com.inte...
/* * Copyright (c) 2016 Adventech <info@adventech.io> * * 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, modi...
// // Copyright (c) 2008-2011, Kenneth Bell // // 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 io.crnk.core.engine.internal.utils; import io.crnk.core.exception.ResourceException; import java.lang.annotation.Annotation; import java.lang.reflect.AnnotatedElement; import java.lang.reflect.Array; import java.lang.reflect.Field; import java.lang.reflect.GenericArrayType; import java.lang.reflect.Method; im...
/* * 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 cn.ucaner.maxwell.base.aop; /** * @Package:cn.ucaner.maxwell.base.aop * @ClassName:AopDemo * @Description: <p> AopDemo </p> * @Author: - Jason * @CreatTime:2018年5月4日 上午10:41:14 * @Modify By: * @ModifyTime: 2018年5月4日 * @Modify marker: * @version V1.0 */ public class AopDemo implements ...
package com.manniu; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import org.apache.tools.zip.ZipEntry; import org.apache.tools.zip.ZipFile; import o...
package com.felix.zhiban.bean.zhihunews; import android.os.Parcel; import android.os.Parcelable; import java.util.List; public class StroyDetailEntity implements Parcelable { private String body; private String image_source; private String title; private String image; private String share_ur...
/* * Copyright 1999-2004 The Apache Software 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 app...
package ellus.ESM.roboSys; import java.awt.Toolkit; import java.awt.datatransfer.Clipboard; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.StringSelection; import java.awt.datatransfer.UnsupportedFlavorException; import java.io.IOException; import java.util.Timer; import java.util.TimerTask; ...
package org.iotp.infomgt.data.id; import java.util.UUID; import org.iotp.infomgt.data.common.ThingType; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; public class AssetId extends DeviceId { /** * ...
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("ax") @Implements("WorldMapCacheName") public class WorldMapCacheName { @ObfuscatedName...
package com.edu.ls.respository; import com.edu.ls.model.GoodsModel; import org.springframework.data.jpa.repository.JpaRepository; public interface GoodsRepository extends JpaRepository<GoodsModel,Integer> { }
package 刷题.白板题; import java.util.Stack; /** * https://leetcode-cn.com/problems/daily-temperatures/ * * @author zhushuangquan */ public class _739_每日温度 { public int[] dailyTemperatures(int[] T) { if (T == null || T.length == 0) return null; int[] result = new int[T.length]; Stack<Intege...
package github.juteman.xmake.toolWindow; import com.intellij.execution.filters.TextConsoleBuilderFactory; import com.intellij.execution.ui.ConsoleView; import com.intellij.openapi.actionSystem.ActionGroup; import com.intellij.openapi.actionSystem.ActionManager; import com.intellij.openapi.actionSystem.ActionToolbar; i...
package moze_intel.projecte.gameObjs.container; import java.util.Objects; import java.util.function.Predicate; import javax.annotation.Nonnull; import javax.annotation.Nullable; import moze_intel.projecte.api.ItemInfo; import moze_intel.projecte.gameObjs.blocks.Condenser; import moze_intel.projecte.gameObjs.container....
package cn.tedu.store.aop; import org.springframework.stereotype.Component; @Component public class StudentAop { public void log(){ System.out.println("StudentAop.log"); } }
/* * 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 dk.camelot64.kickc.passes; import dk.camelot64.kickc.asm.*; import dk.camelot64.kickc.model.Program; import dk.camelot64.kickc.model.statements.Statement; import dk.camelot64.kickc.model.statements.StatementAsm; import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.List; import java.uti...
/* * 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 ...
/* * 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 komalhealthcare; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dialog; import java.awt.Dimension; impor...
/* * Copyright 2019 ThoughtWorks, 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 agr...
/* * 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 models; import java.util.*; import javax.persistence.*; @Entity @DiscriminatorValue("poster") @NamedQueries({ @NamedQuery( name="queryFavoratePosterByCustomerAndPoster", query="SELECT f FROM FavoratePoster f WHERE f.customer = :customer AND f.poster = :poster"), }) public class FavoratePoster ext...
package aI40ontology; import java.net.URI; import java.util.Collection; import javax.xml.datatype.XMLGregorianCalendar; import org.protege.owl.codegeneration.WrappedIndividual; import org.semanticweb.owlapi.model.OWLNamedIndividual; import org.semanticweb.owlapi.model.OWLOntology; /** * * <p> * Generated by Pro...
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.jdbc; import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers.hasClassesNamed; import static io.opentelemetry.javaagent.extension.matcher.AgentElementMatchers...
package com.acgist.snail.net.torrent.peer; import com.acgist.snail.config.SystemConfig; import com.acgist.snail.net.TcpServer; /** * <p>Peer服务端</p> * * @author acgist */ public final class PeerServer extends TcpServer<PeerMessageHandler> { private static final PeerServer INSTANCE = new PeerServer(); public...
package com.example.shiro01.repository; import com.example.shiro01.entity.User; import org.springframework.data.jpa.repository.JpaRepository; public interface UserRepository extends JpaRepository<User, Integer> { /** 通过username查找用户 */ public User findByUsername(String username); }
package tpsql.dao.pagesize; import java.util.ArrayList; import java.util.List; public class PageList<T> extends ArrayList<T> implements IPageList<T> { private static final long serialVersionUID = -7671096683461709474L; private int total; private int pageNum; private int pageSize; protected int offset; protect...
package mage.cards.c; import java.util.UUID; import mage.MageInt; import mage.abilities.common.DiesSourceTriggeredAbility; import mage.abilities.effects.common.DestroyAllEffect; import mage.abilities.keyword.TrampleAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; impo...
package org.danyuan.application.manage.sysmenu.controller; import org.danyuan.application.bean.manager.SysSystemInfo; import org.danyuan.application.common.base.BaseController; import org.danyuan.application.common.base.BaseControllerImpl; import org.springframework.web.bind.annotation.RequestMapping; import org.sprin...
package io.recheck.client.exceptions; public class KeyExchangeException extends Exception{ public KeyExchangeException(String message){ super(message); } }
package sourcecodeanalyzerrefactored.analyzer; import java.io.IOException; import org.junit.Test; public class NullAnalyzerTest { private SourceCodeAnalyzer analyzer = new NullAnalyzer(); @Test(expected = IllegalArgumentException.class) public void testCalculateLOC() throws IOException { analyzer.calculateLOC...
/* * Copyright 2012-2017 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...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package androidx.fragment; public final class R { private R() {} public static final class attr { private attr() {} ...
// Copyright 2012 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 juniebyte.javadungeons.content; import com.google.common.collect.ImmutableList; import net.minecraft.block.Blocks; import net.minecraft.util.Identifier; import net.minecraft.util.math.intprovider.ConstantIntProvider; import net.minecraft.util.registry.BuiltinRegistries; import net.minecraft.util.registry.Regis...
/* * axxell-api * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0.0 * * * 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 m...
/** * Copyright 2020-2021 JinlongLiao * <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...
package model; /** * Created by adrian on 03/11/16. */ public enum Direction { NORTH, SOUTH, EAST, WEST }
/* * Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.gridgain.internal.h2.store.fs; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io....
package com.spacechase0.minecraft.componentequipment.item; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity....
package com.lambdaschool.macroCalc.services; import com.lambdaschool.macroCalc.models.Usermetrics; import java.util.List; public interface UsermetricsService { List<Usermetrics> findAll(); Usermetrics findUserMetricsById(long id); void delete(long id); Usermetrics save(Usermetrics usermetrics); ...
package com.chutneytesting.agent.api; import com.chutneytesting.agent.api.dto.ExploreResultApiDto; import com.chutneytesting.agent.api.dto.NetworkConfigurationApiDto; import com.chutneytesting.agent.api.dto.NetworkDescriptionApiDto; import com.chutneytesting.agent.api.mapper.ExploreResultApiMapper; import com.chutneyt...
// Targeted by JavaCPP version 1.5.1: DO NOT EDIT THIS FILE package org.bytedeco.cuda.cublas; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import org.bytedeco.cuda.cudart.*; import static org.bytedeco.cuda.global.cudart.*; import static org.bytedeco.cuda.global.cublas....
/* * Copyright 2017 Expedia, 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 appli...