text
stringlengths
7
995k
package com.yitong.recycleviewdemo; import android.graphics.Rect; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.View; import com.yitong.recycleviewdemo.adapter.ComplexRecyclerViewAdapter; import com.yitong.recycleviewdemo.base.BaseActivity; impo...
/* * 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 jp.co.yahoo.adsdisplayapi.v4.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; imp...
/* * Copyright (c) 2002-2019 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * 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....
package com.bookstore.auth; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class BookstoreAuthorizationServerApplication { public static void main(String[] args) { SpringApplication.run(BookstoreAuthorizationSer...
version https://git-lfs.github.com/spec/v1 oid sha256:b98ade3e5bdcdd06ff59ce007433be2b59b01a6b9dd90ee1710ec899d27fe38e size 1433
package com.github.bgalek.utils.validationframework; public interface SummeringValidatorBuilder<T> { SummaryValidator<T> summary(); }
package com.barley.cms.service.index; import org.apache.solr.client.solrj.beans.Field; import lombok.Getter; import lombok.Setter; /** * * @description 建立所有的article对象 * * @author peculiar.1@163.com * @version $ID: IndexArticle.java, V1.0.0 2020年12月19日 下午3:01:31 $ */ public class IndexArticle { @Getter @Set...
/* * Copyright © 2011-2019 Chris Vest (mr.chrisvest@gmail.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 ...
/** * Copyright 2015 David Karnok and Netflix, 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...
package org.rzats.algotester.shef10; import java.util.Scanner; public class Parliament { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); long parties[] = new long[n]; for (int i = 0; i < n; i++) { parties[i] = in.next...
/* * Copyright © 2017 VMware, Inc. All Rights Reserved. * SPDX-License-Identifier: BSD-2-Clause */ package com.vmware.connectors.common.config; import com.vmware.connectors.common.json.JsonDocumentDecoder; import com.vmware.connectors.common.utils.CardTextAccessor; import com.vmware.connectors.common.utils.Connect...
package org.batfish.client; import static java.nio.charset.StandardCharsets.UTF_8; import static java.nio.file.FileVisitOption.FOLLOW_LINKS; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.JsonNode; import com.faste...
/* * Copyright (C) 2009 The Guava 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 applicable law or agre...
/* * Licensed to GraphHopper GmbH under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * GraphHopper GmbH licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not ...
/* * Copyright 2015 The Netty Project * * The Netty Project licenses this file to you 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 ...
/* * 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 ...
public class Question5_10a { public static void main(String[] args) { /* better solution - since 5 and 6 are co-prime (no common factors other than 1) divisibility by both 5 and 6 is effectively equal to divisibility by 30) First, find the smallest number greater than 100 that is divisible by 30. Also, find...
/* * Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* * Copyright 2017 Huawei Technologies Co., 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...
package lv.tsi.javacourses.bookshelf.books.model; import javax.persistence.*; import javax.validation.constraints.Size; import java.io.Serializable; import java.util.Objects; @Entity(name = "Author") @Table(name = "authors") public class AuthorEntity implements Serializable, Cloneable, WithId { @Id @Generated...
/* * Copyright 2020 Scalyr Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
package org.vaadin.osgi.bridge.uifragments; import com.vaadin.ui.Component; public interface FragmentFactory { Component getFragment(); }
package org.apache.maven.it; /* * 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, Versio...
/* * Copyright 2012-2021 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 ...
package com.onlinepayments; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import org.junit.Assert; import org.junit.Test; public class ResponseHeaderTest { @Test public void testGetDispositionFilename() { Map<String, String> testData = new LinkedHashMap<String, String>(); ...
/* * 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 under t...
package com.singularitycoder.notificationgenerator; import android.content.Context; import androidx.test.InstrumentationRegistry; import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an A...
/* * 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 com.imos.base.exception; import lombok.Getter; import lombok.Setter; import lombok.ToString; /** * * @author ameher */ @Ge...
/* * Copyright (C) 2010-2101 Alibaba Group Holding Limited. * * 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 ...
/** * 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.dryomys.exceptions; /** * * @author gabriele * */ public class NullComputedException extends RuntimeException { /** * */ public NullComputedException() { super(Messages.NULL_COMPUTED.toString()); } /** * * @param cause */ public NullComputedExc...
package net.optifine; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Iterator; import java.util.Properties; import net.acE; import net.minecraft.util.ResourceLocation; import net.optifine.Config; import net.optifine.MatchBlock; public class FontUtils { ...
package com.jeradmeisner.audioserver.mopidy; import com.jeradmeisner.audioserver.mopidy.command.MopidyCommand; import com.jeradmeisner.audioserver.mopidy.io.MopidyWebSocket; public class Mopidy { private MopidyWebSocket socket; public Mopidy(MopidyWebSocket socket) { this.socket = socket; thi...
/* TaskTestUtils.java Created by John Boyer on Sep 18, 2017 Copyright (c) 2017 Rodax Software, 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/LIC...
package com.planet_ink.coffee_mud.core.intermud.i3.packets; import com.planet_ink.coffee_mud.core.intermud.i3.server.*; 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....
package com.mentor.nucleus.bp.core.ui; //====================================================================== // // File: com/mentor/nucleus/bp/core/ui/PackageParticipantUnformalizeOnSQ_PPAction.java // // WARNING: Do not edit this generated file // Generated by: arc/create_object_action.inc // Version: $Re...
//package org.txazo.java.annotation.processing; // //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.TYPE}) //public @interface Data { //...
package io.github.vspiliop.testing.kafka; import org.junit.Test; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.annotation.DirtiesContext.ClassMode; /** * * By using @DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD) the cluster is separate for each test. * ...
/* * Copyright 2020 LINE Corporation * * LINE Corporation licenses this file to you 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 r...
package template_data.src.main.java.ru.spec.dbjpa; import org.springframework.context.support.ClassPathXmlApplicationContext; public class App { public static void main(String[] args) { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( "applicationContext"); ...
package com.google.api.ads.adwords.jaxws.v201509.cm; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AdGroup.Status. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name=...
package routing; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.PriorityQueue; import java.util.Queue; public class RoutingAlgorithmDijkstraHeuristic extends RoutingAlgorithmBase implements ...
package com.example.pai5inventory; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.lang.ClassNotFoundException; import java.net.ServerSocket; import java.net.Socket; import java.security.InvalidKeyException; import java.security.KeyFactory; import java.securi...
package com.mp.entity; import com.baomidou.mybatisplus.annotation.*; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; @Data @TableName("permission") @ApiModel("权限类") public class Permission implements Serializable { @ApiMode...
/* * 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.chikeandroid.retrofittutorial; 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 ...
/* * Copyright (C) 2020 The zfoo 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 applicable law or agreed to i...
package net.pladema.emergencycare.triage.repository.domain; import lombok.Getter; import lombok.Setter; import lombok.ToString; import net.pladema.emergencycare.triage.repository.entity.Triage; import net.pladema.emergencycare.triage.repository.entity.TriageDetails; import java.time.LocalDateTime; import java.util.Li...
/* * 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 userprofile.model; import notificationprofile.model.Notification; import foodprofile.model.FoodList; import java.io.Serializab...
package org.jn.node.message; import java.util.Collection; import java.util.Map; import java.util.stream.Collectors; import org.jn.node.client.NodeClient; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.channel.Channel; /** * JN messages for system * Message id's -1..-128 is syste...
package de.janosch.resteasy; import javax.enterprise.context.ApplicationScoped; import javax.ws.rs.*; @Path("/version") @ApplicationScoped public class VersionREST { private String version = "1.0.0"; @GET public String getVersion() { return version; } @POST public void setVersion(@Q...
/* * Copyright 2017 - 2018 Anton Tananaev (anton@traccar.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 b...
package gov.nara.opa.api.controller.export; import gov.nara.opa.api.services.export.AccountExportService; import gov.nara.opa.api.system.Constants; import gov.nara.opa.api.validation.export.DeleteAccountExportRequestParameters; import gov.nara.opa.api.validation.export.DeleteAccountExportValidator; import gov.nara.opa...
package pl.janusz.hain.socialmediawatcher; import com.twitter.sdk.android.core.models.Tweet; import java.util.Comparator; public class ComparatorTwitterTimeline implements Comparator<TwitterTimeline> { @Override public int compare(TwitterTimeline lhs, TwitterTimeline rhs) { Tweet lhsTweet = lhs.getFi...
/* This file is automatically generated. Do not edit. */ package net.runelite.api; public final class NullObjectID { public static final int NULL = 0; public static final int NULL_65 = 65; public static final int NULL_66 = 66; public static final int NULL_83 = 83; public static final int NULL_84 = 84; public sta...
/** * Spea2Fitness.java * * @author Juanjo Durillo * @version 1.0 * */ package jmetal.util; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import jmetal.base.SolutionSe...
package com.pepijndejong.ssj.service.exception; public class SoundEffectNotFoundException extends RuntimeException { }
package com.bkav.training.week2.session4; import com.bkav.training.week2.session3.MyPoint; public class MyCircle { private MyPoint center; private int radius; public MyCircle(int x, int y, int radius) { this.center = new MyPoint(x, y); this.radius = radius; } public MyCircle(MyPoint point, int radius) { ...
package it.unibz.inf.ontop.model.term.functionsymbol.impl; import com.google.common.collect.ImmutableList; import it.unibz.inf.ontop.iq.node.VariableNullability; import it.unibz.inf.ontop.model.term.ImmutableExpression; import it.unibz.inf.ontop.model.term.ImmutableTerm; import it.unibz.inf.ontop.model.term.RDFTermTyp...
package ie.ncirl.upskillnow.control; import java.io.Serializable; import java.util.logging.Logger; import javax.annotation.ManagedBean; import javax.enterprise.context.SessionScoped; //import javax.faces.bean.ManagedBean; //import javax.faces.bean.SessionScoped; import org.primefaces.model.tagcloud.DefaultTagCloudI...
package com.huaweicloud.sdk.osm.v2.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import java.util.function.Consumer; import java.util.Objects; ...
/* * 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.example.mycalendar; import android.app.Activity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import java.util.List; public class MyAdapte...
/* * docker-image-builder * -- * Copyright (c) 2016 Baidu, 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/license...
package com.springcache.springcache.entity; public class Book { private String isbn; private String title; public Book() { } public Book(String isbn, String title) { this.isbn = isbn; this.title = title; } public String getIsbn() { return isbn; } public v...
class Solution { public int searchInsert(int[] A, int target) { int low = 0, high = A.length-1; while(low <= high){ int mid = (low+high) >> 1; if(A[mid] == target) return mid; else if(A[mid] > target) high = mid-1; els...
/** * 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 2019 The TensorFlow Authors. 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 requi...
package com.stephenalexander.projects.moviecollection; import com.sun.xml.bind.v2.runtime.output.SAXOutput; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springfra...
package com.dpstudio.module.security.vo; import com.dpstudio.module.security.model.SecurityAdmin; import net.ymate.platform.validation.validate.VRequired; import net.ymate.platform.webmvc.annotation.RequestParam; /** * @Author: 徐建鹏. * @Date: 2020/10/15. * @Time: 4:11 下午. * @Description: */ public class SecurityA...
package com.herval.microservices; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; import org.springframework.cloud.netflix.zuul.filters.post.LocationRewriteFilter; import org.springfra...
/* Copyright 2020-2021. Huawei Technologies Co., Ltd. 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 https://www.apache.org/licenses/LICENSE-2.0 Un...
/* * 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 2002-2021 Echo Three, 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:/...
package com.thinkaurelius.titan.diskstorage.berkeleyje; import com.thinkaurelius.titan.StorageSetup; import com.thinkaurelius.titan.diskstorage.KeyColumnValueStoreTest; import com.thinkaurelius.titan.diskstorage.StorageException; import com.thinkaurelius.titan.diskstorage.StorageManager; import com.thinkaurelius.titan...
/* * 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 under t...
/* * This file is part of Mixin, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * 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...
/** * created by yuyh, 16/04/09 * Copyright (c) 2016, smuyyh@gmail.com All Rights Reserved. * # # * # _oo0oo_ # * # o8888888o # * # 88" . "88 ...
//package de.unidue.ltl.escrito.features.similarity; // //import java.io.File; //import java.io.FileInputStream; //import java.io.IOException; //import java.io.ObjectInputStream; //import java.util.Collection; //import java.util.Collections; //import java.util.HashMap; //import java.util.HashSet; //import java.util.Lis...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
/* * Copyright (c) 2008-2019, 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 stanhebben.zenscript.compiler; import stanhebben.zenscript.expression.*; import stanhebben.zenscript.expression.partial.*; import stanhebben.zenscript.symbols.*; import stanhebben.zenscript.util.*; import java.util.*; public class EnvironmentMethodLambda extends EnvironmentMethod { private static fi...
package com.safecharge.response; /** * Copyright (C) 2007-2017 SafeCharge International Group Limited. * <p> * Response received from the SafeCharge's servers to the {@link com.safecharge.request.SettleTransactionRequest}. * * @author <a mailto:nikolad@safecharge.com>Nikola Dichev</a> * @see com.safecharge.reque...
class Solution { public String longestCommonPrefix(String[] strs) { String result = ""; if(strs.length == 1) return strs[0]; int i = 0; while (i < 999) { int j = 0; char prev = ' '; for (String s : strs) { if(i ...
/* * Created on Nov 29, 2010 * * 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 writ...
package codemeek.dropwizard.example; import io.dropwizard.Configuration; import lombok.Data; /** * Created by jitendragangwar on 5/1/17. */ //@Data public class DropConfiguration extends Configuration{ private String appName; public String getAppName() { return appName; } public void setA...
package com.stylefeng.guns.modular.system.dao; import com.stylefeng.guns.modular.system.model.FirstVisitAssessmentTable; import com.baomidou.mybatisplus.mapper.BaseMapper; /** * <p> * 首次走访基础信息采集表 Mapper 接口 * </p> * * @author stylefeng * @since 2019-04-30 */ public interface FirstVisitAssessmentTableMapper exte...
package org.jetbrains.plugins.scaladev; import com.intellij.openapi.application.Application; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.TransactionGuard; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.externalSystem.model.task.Externa...
class MaxSumSubArrayOfSizeK { public static int findMaxSumSubArray(int k, int[] arr) { int windowSum = 0, maxSum = 0; int windowStart = 0; for (int windowEnd = 0; windowEnd < arr.length; windowEnd++) { windowSum += arr[windowEnd]; if (windowEnd >= k - 1) { ...
package com.company.luis; /** * Created by Luis Ginanjar on 08/02/2016. * Purpose : */ public class Engineer extends People { public String skill; public Engineer() { this.skill = "Software Developer"; } @Override public String toString() { return "Engineer{" + ...
/* * 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 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 * * Unless required by applica...
/* * OutSystems Project * * Copyright (C) 2014 OutSystems. * * This software is proprietary. */ package com.outsystems.android.core; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.lang.reflect.Type; import java.security.KeyManagementException; import java.security.KeyStore...
package Printers; import com.company.Student; public interface IStudentPrinter { public void StudentOut(Student st); }
package com.solace.connector.beam; import com.google.common.annotations.VisibleForTesting; import org.apache.beam.sdk.io.UnboundedSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nullable; import java.io.IOException; import java.io.Serializable; import java.util.UUID; import ja...
// Template Source: BaseEntityRequestBuilder.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -----------------------------...
/* * 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...
/* * Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
package cn.com.devopsplus.dop.server.pipeline.config; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.clsaa.rest.result.exception.*; import feign.Response; import feign.Util; import feign.codec.ErrorDecoder; import org.springframework.context.annotation.Configuration; import java....