text stringlengths 7 995k |
|---|
/*
* Cribl LogStream
* REST API Reference of available endpoints and their supported operations for accessing, updating, creating, or deleting resources. Product documentation available at [docs.cribl.io](http://docs.cribl.io).
*
* OpenAPI spec version: 3.1.2-abb571bc
* Contact: support@cribl.io
*
* NOTE: This c... |
package strategies.wrap_block_lib;
import org.strategoxt.stratego_lib.*;
import org.strategoxt.lang.*;
import org.spoofax.interpreter.terms.*;
import static org.strategoxt.lang.Term.*;
import org.spoofax.interpreter.library.AbstractPrimitive;
import java.util.ArrayList;
@SuppressWarnings("all") public class main_0_0 ... |
/*
* 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.interop;
import io.jans.as.client.AuthorizationRequest;
import io.jans.as.client.AuthorizationResponse;
import io.jans... |
package ru.job4j.homeworks.tasks;
//Внимание!
//В задачах 11.149—11.158 под удалением элемента массива следует понимать:
//исключение этого элемента из массива путем смещения всех следующих за ним элементов влево на 1 позицию;
//присваивание последнему элементу массива значения 0.
//
// 11.149. Удалить из масси... |
/*
* Copyright (c) 2016, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of cond... |
/*
* Copyright 2005 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 ap... |
import com.anyicomplex.xdg.utils.XDGOpen;
import com.anyicomplex.xdg.utils.XDGUtils;
public class Test {
public static void main(String[] args) {
// Set the specific path to load script.
//XDGUtils.setScriptDirPath("/path/to/scripts"); // equal as System.setProperty("com.anyicomplex.xdg.utils.scri... |
import java.util.Scanner;
public class Juliano {
static Scanner in = new Scanner(System.in);
public static void main(String args[]) {
int ano = in.nextInt();
int mes = in.nextInt();
int dia = in.nextInt();
System.out.println(jdn(ano, mes, dia));
}
static int jdn(int ano, int mes, int dia) {
if (mes... |
package com.example.android.sunshine.app.data;
import android.os.Bundle;
import android.test.AndroidTestCase;
import android.util.Log;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.ResultCallback;
import com.go... |
package com.elsoftware.notificationreminder.model;
import java.util.List;
public interface NotificationsRepository extends Repository {
int remove(String id);
void add(Notification notification);
void update(Notification notification);
void updateMany(List<Notification> notifications);
void re... |
//FVCproductions
//March 27, 2014
//Variable Declaration and Scope
import static java.lang.System.out; //importing System.out method
import java.util.Scanner; //importing Scanner method
public class MoreScope {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in); //creating Scann... |
package neqsim.thermo.component.attractiveEosTerm;
import neqsim.thermo.component.ComponentEosInterface;
/**
* <p>
* AttractiveTermUMRPRU class.
* </p>
*
* @author esol
* @version $Id: $Id
*/
public class AttractiveTermUMRPRU extends AttractiveTermPr {
private static final long serialVersionUID = 1000;
... |
/*
* 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 persistencia.entidades;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
@StaticMetamodel(Usuario.class)
public abstract class Usuario_ {
pu... |
/*
* 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 ... |
/**
* Gecad ePayment API
* ALU, short for Automatic Live Update, is intended for merchants who want to place transactions directly in the PayU system. The main advantage that ALU presents is that it allows the Merchant to also send the Shopper card data. This approach allows merchants full control over their shoppers... |
/*
* Licensed Materials - Property of IBM
* © Copyright IBM Corporation 2015. All Rights Reserved.
*/
package com.ibm.mil.cafejava;
import com.worklight.wlclient.api.WLResponseListener;
/**
* A type which is responsible for knowing how to invoke an MFP procedure. Since there are
* multiple ways to invoke a proc... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
package crafttweaker.mc1120.brackets;
import crafttweaker.CraftTweakerAPI;
import crafttweaker.annotations.*;
import crafttweaker.api.potions.IPotion;
import crafttweaker.mc1120.potions.MCPotion;
import crafttweaker.zenscript.*;
import net.minecraft.potion.*;
import stanhebben.zenscript.compiler.IEnvironmentGlobal;
i... |
/* 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... |
package com.dungeonstory.backend.data.enums;
import com.dungeonstory.backend.Labels;
public enum Skill implements I18nEnum {
ATHLETICS(Ability.STRENGTH),
ACROBATICS(Ability.DEXTERITY),
SLEIGHT_OF_HAND(Ability.DEXTERITY),
STEALTH(Ability.DEXTERITY),
ARCANA(Ability.INTELLIGENCE),
HISTORY(Abilit... |
/*
* This file is part of Sponge, 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 "Softwar... |
/*
* Copyright 2014 Red Hat, Inc.
*
* Red Hat 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 required by app... |
package msg;
/**
* msg/MessengerOperations.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from GestionMsgElectronique.idl
* Thursday, January 12, 2017 11:34:32 AM WET
*/
public interface MessengerOperations
{
int signup ();
void submit (int id, msg.Message msg);
msg.Message consult... |
/*
* Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... |
/** Notice of modification as required by the LGPL
* This file was modified by Gemstone Systems Inc. on
* $Date$
**/
// $Id: AckMcastSenderWindow.java,v 1.9 2005/07/17 11:34:20 chrislott Exp $
package com.gemstone.org.jgroups.stack;
import com.gemstone.org.jgroups.util.GemFireTracer;
import com.gemstone.org.jgr... |
/**
* SDK
*
* This library allows to interact with the payment service.
*
* 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 requir... |
package garfield.java.jersey.example.rest.provider;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.core.Context;
public class OAuthFilter implements ContainerReques... |
package com.ideal.flyerteacafes.utils;
import android.text.TextUtils;
import android.view.Gravity;
import android.widget.Toast;
import com.ideal.flyerteacafes.caff.FlyerApplication;
public class ToastUtils {
private static Toast mToast;
public static void showToast(final String text) {
if (TaskUt... |
package org.estatio.capex.dom.invoice;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;
import javax.inject.Inject;
import org.joda.time.LocalDate;
import org.apache.isis.applib.annotation.DomainService;
import org.apache.isis.applib.annotation.NatureOfService;
import org.apache.isis... |
//,temp,sample_4661.java,2,15,temp,sample_4663.java,2,15
//,3
public class xxx {
private static Class<?>[] getMapArgs(Field field) {
Type genericType = field.getGenericType();
if (genericType instanceof ParameterizedType) {
Type[] types = ((ParameterizedType)genericType).getActualTypeArguments();
if (types.length == 2 ... |
/*
* Copyright 2010 JBoss 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 i... |
/*
*
* 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.indiecharter.game;
public enum ID {
player(), enemy();
} |
/*
* Copyright 2010 Google 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... |
/*
* Copyright (C) 2012-2015 DataStax 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 app... |
// 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 applicable ... |
/*
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright 2020 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... |
// Template Source: IBaseEntityCollectionRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------... |
package net.lipecki.ngdemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
@EnableAutoConfiguration
@ComponentScan
public class NgDemoApp {
public static void main(final String[... |
package com.boydti.fawe.bukkit.adapter.mc1_16_5;
import com.boydti.fawe.bukkit.adapter.MapChunkUtil;
import net.minecraft.server.v1_16_R3.PacketPlayOutMapChunk;
public class MapChunkUtil_1_16_5 extends MapChunkUtil<PacketPlayOutMapChunk> {
public MapChunkUtil_1_16_5() throws NoSuchFieldException {
fieldX ... |
/**
* Step1: Remove Only Special Characters
*/
package removeSpecialCharecters;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;
import java.io.*;
public class K1_RemoveSpecialCharsIndex {
/**
* RemoveSpecialChars->RemoveStopwords... |
package com.thebluealliance.androidclient.viewmodels;
import android.content.Context;
import android.support.annotation.Nullable;
import android.support.annotation.WorkerThread;
public interface ViewModelRenderer<VIEWMODEL, ARGS> {
@WorkerThread
@Nullable VIEWMODEL renderToViewModel(Context context, @Nullabl... |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package org.springframework.cloud.alibaba.cloud.examples;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.... |
package de.adorsys.opba.helpers.protocol.testing.service;
import de.adorsys.xs2a.adapter.api.AspspReadOnlyRepository;
import de.adorsys.xs2a.adapter.api.model.Aspsp;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import jav... |
package cn.hutool.core.bean;
import cn.hutool.core.bean.copier.BeanCopier;
import cn.hutool.core.bean.copier.CopyOptions;
import cn.hutool.core.bean.copier.ValueProvider;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.lang.Editor;
import cn.hutool.core.map.CaseI... |
package ru.deelter.patabot.utils.database;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import org.jetbrains.annotations.NotNull;
import java.sql.Connection;
import java.sql.SQLException;
public class MySQL extends Database {
private HikariDataSource dataSource;
private... |
package scene;
public enum PersonName {
FORD,
FIRST_BODY,
} |
package module0475_public_tests_unittests.a;
import java.sql.*;
import java.util.logging.*;
import java.util.zip.*;
/**
* 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... |
/*
* Copyright 2016-present 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... |
// 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 android.support.v4.view;
import android.util.Log;
import android.view.View;
import android.view.ViewParent;
// Referenced classes of package andr... |
package cn.lcj.com.myapp2002;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_ma... |
package com.ucar.weex.okhttp.https;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.UnrecoverableKeyException;
import java.secu... |
package org.sunbird.dac.dto;
import java.io.Serializable;
import java.util.Date;
public class AuditHistoryRecord implements Serializable {
private static final long serialVersionUID = -5779950964487302125L;
private Integer id;
private String objectId;
private String objectType;
private String label;
... |
package com.zhongger.zmail.member.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 成长值变化历史记录
*
* @author zhongmingyi
* @email zhongmingyi@bytedance.com
* @date 2019-10-... |
/*
* Copyright 2015-2018 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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... |
/*
* Copyright © 2015 Packt Publishing - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
*/
package com.packtpub.rest.ch2.gson;
import com.google.gson.stream.JsonWriter;
import com.packtpub.rest.ch2.model.DateUtil;
import com.packtpub.rest.ch2.model.Employee;
import j... |
package com.lindaring.base.security.config;
import com.lindaring.base.properties.SecurityProperties;
import com.lindaring.base.security.filter.JWTAuthenticationFilter;
import com.lindaring.base.security.filter.JWTAuthorizationFilter;
import com.lindaring.base.security.service.CustomUserDetailsService;
import com.linda... |
package gov.usgs.cida.pubs.validation.constraint;
public interface DeleteChecks {
} |
package cz.cuni.mff.perestroika.perestroika_problem_5_3_0_5_0_5_8;
import cz.cuni.mff.jpddl.PDDLGoal;
import cz.cuni.mff.jpddl.PDDLState;
import cz.cuni.mff.perestroika.domain.State;
public class Goal extends PDDLGoal {
@Override
public String toPDDL() {
return "(:goal (and (alive)\n"
+ " (take... |
// 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.codeborne.selenide.commands;
import com.codeborne.selenide.Command;
import com.codeborne.selenide.SelenideElement;
import com.codeborne.selenide.impl.WebElementSource;
import org.openqa.selenium.WebElement;
import java.io.IOException;
public class GetSelectedValue implements Command<String> {
private f... |
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppä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, copy... |
package org.betterti.titanium.debugger.formatters;
import org.betterti.titanium.debugger.DebugCommand;
/**
* Created by johnsba1 on 5/29/17.
*/
public interface CommandSerializer {
String serialize(DebugCommand c) throws Exception;
} |
package com.salesmanager.core.business.repositories.catalog.product.price;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.salesmanager.core.model.catalog.product.price.ProductPrice;
public interface ProductPriceRepository extends JpaRepo... |
package com.example.bmobtest;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.widget.TextView;
import android.widget.Toast;
import com.baidu.location.BDLocation;
i... |
/* ==========================================
* Laverca Project
* https://sourceforge.net/projects/laverca/
* ==========================================
* Copyright 2015 Laverca Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the ... |
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, 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
... |
/*
* Copyright (C) 2013 Nafundi
*
* 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 com.yk.fileupload.util;
import com.yk.common.exception.file.FileSizeException;
import com.yk.common.util.AppUtils;
import com.yk.common.util.FileUtils;
import com.yk.common.util.SpringUtils;
import com.yk.common.util.TimeUtils;
import com.yk.fileupload.config.properties.FileProperties;
import com.yk.fileupload... |
// 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.napier.sem;
import java.sql.*;
import java.util.ArrayList;
public class App
{
public static void main(String[] args)
{
// Create new Application
App a = new App();
// Connect to database
if (args.length < 1)
{
a.connect("localhost:3306");
... |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... |
/*
* Copyright 2010-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 "lice... |
package com.lmax.disruptor.dsl;
import com.lmax.disruptor.ExceptionHandler;
import com.lmax.disruptor.FatalExceptionHandler;
public class ExceptionHandlerWrapper<T> implements ExceptionHandler<T>
{
private ExceptionHandler<? super T> delegate = new FatalExceptionHandler();
public void switchTo(final Exceptio... |
package com.cjz.coolweather;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreat... |
/*
* Copyright 2021 OmniFaces
*
* 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 in w... |
package faulty_programs;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* @author derricklin
*/
public class KNAPSACK {
public static int knapsack(int capacity, int[][] items) {
int weight = 0, value = 0;
int n = items.length;
int ... |
/*
* Copyright (C) 2003-2017 Paolo Boldi and Sebastiano Vigna
*
* 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... |
/*
* 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; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.monitoring.exporter.local;
import ... |
package nam.ui.userInterface;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import org.aries.ui.AbstractWizardPage;
import nam.ui.UserInterface;
import nam.ui.util.UserInterfaceUtil;
@SessionScoped
@Named("userInterfaceConfigurationSection")
public class Us... |
/*
* 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 java.io.*;
import java.util.*;
import javax.microedition.io.*;
import javax.microedition.io.file.*;
import javax... |
/*
* #%L
* wcm.io
* %%
* Copyright (C) 2016 wcm.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package com.nixmash.springdata.jpa.model.auditors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.ZonedDateTime;
/**
* This class returns the current time.
*
* From Petri Kainulainen's JPA Examples Project on GitHub
*
* spring-data-jpa-examples/query-methods/
* https://goo.gl/lY7sT5
... |
public class Calculator extends ConsoleProgram
{
public void run()
{
int first = readInt("First: ");
int second = readInt("Second: ");
int sum = first + second;
System.out.println(sum);
}
} |
/*
* 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")... |
package com.db.ms.component;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties(prefix = "user-stats-service")
public class UserStatsServiceConfig {
private String env;
public String getEnv() {
... |
/*
* Copyright (C) 2018 The Asus-SDM660 Project
* Copyright (C) 2017-2021 The LineageOS 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... |
/*
* Copyright (c) 2012 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD-3-Clause license that
* can be found in the LICENSE.txt file in the project root.
*/
package org.antlr.v4.parse;
import org.antlr.runtime.BaseRecognizer;
import org.antlr.runtime.CommonToken;
import org.antlr... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license... |
package jkind.api;
public enum Backend {
JKIND, KIND2, SALLY
} |
package lc.datastruct.dp;
public class N1143 {
public static void main(String[] args) {
System.out.println(new N1143().longestCommonSubsequence("xaxx","a"));
}
// 解法1。写得有点啰嗦。
public int longestCommonSubsequence(String text1, String text2) {
// 0.边界条件判断。略。
char[] c1 = text1.toCha... |
package com.jbielak.emulatorapi.cmd.command;
public enum PowerStateCommand {
POWER_DISPLAY("power display"),
POWER_AC("power ac %s"),
POWER_STATUS("power status %s"),
POWER_PRESENT("power present %s"),
POWER_HEALTH("power health %s"),
POWER_POWER_CAPACITY("power capacity %s");
private fin... |
package arrays;
/**
*
* 1328. Break a Palindrome
* Medium
* Given a palindromic string palindrome, replace exactly one character by any lowercase English letter so that the string becomes the lexicographically smallest possible string that isn't a palindrome.
* After doing so, return the final string. If there i... |
package nl.gogognome.lib.swing.models;
import nl.gogognome.lib.gui.Closeable;
import nl.gogognome.lib.swing.RunnableWithException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.swing.*;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
public class T... |
package br.com.zupacademy.juliana.casadocodigo.livro;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Path... |
package com.mindbodyonline.clients.api._0_5_1.appointment_service;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java c... |
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
package com.intel.pmem.llpl.examples.handlearray;
import com.intel.pmem.llpl.*;
public class HandleArrayExample {
public static void main(String[] args) {
String heapName = "/mnt/mem/HandleArray_example";
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.