text stringlengths 7 995k |
|---|
/*
* Copyright © 2014 - 2018 Leipzig University (Database Research 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
*
* Unles... |
package at.medunigraz.imi.bst.trec.evaluator;
import at.medunigraz.imi.bst.trec.model.Metrics;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.util.*;
import java.util.concurrent.TimeUnit;
public abstract class AbstractEvaluator implement... |
package com.fc.test.model.custom.email;
public class MailInfo {
private String fullname;
private String email;
private String tel;
private String company;
private String title;
private String content;
public String getFullname() {
return fullname;
}
public void setFullna... |
/*
* 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 ... |
/*
* 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... |
/*
* 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 module5;
import de.fhpotsdam.unfolding.data.PointFeature;
import processing.core.PGraphics;
/** Implements a visual marker for earthquakes on an earthquake map
*
* @author UC San Diego Intermediate Software Development MOOC team
* @HsiaoJungYeh
*
*/
public abstract class EarthquakeMarker extends CommonM... |
package com.fiona.mall.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 yue
* @email wahtever@gmail.com
* @date 2020-12-04 16:47:40
*/
@Data
@Table... |
package com.lockit;
import android.support.v7.widget.RecyclerView;
import android.view.View;
public class ItemClickSupport {
private final RecyclerView mRecyclerView;
private OnItemClickListener mOnItemClickListener;
private OnItemLongClickListener mOnItemLongClickListener;
private View.OnClickListene... |
package io.quarkus.qute.runtime.extensions;
import static io.quarkus.qute.TemplateExtension.ANY;
import static io.quarkus.qute.TemplateExtension.DEFAULT_PRIORITY;
import java.util.Optional;
import org.eclipse.microprofile.config.ConfigProvider;
import io.quarkus.qute.Results.Result;
import io.quarkus.qute.TemplateE... |
package edu.oregonstate.cs496.merdlera.androidui.main.locations;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* Created by alec on 8/4/17.
*/
public class MySQLiteHelper extends SQLiteOpenHelper {
p... |
/*
* 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.marklogic.spring.batch.bind;
import com.marklogic.junit.Fragment;
import com.marklogic.junit.NamespaceProvider;
import com.marklogic.spring.batch.JobExecutionTestUtils;
import com.marklogic.spring.batch.JobParametersTestUtils;
import com.marklogic.spring.batch.SpringBatchNamespaceProvider;
import com.markl... |
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.source.doctree;
import java.util.List;
/**
* A tree node for an @serial block tag.
... |
/*
* Copyright 1999-2017 Alibaba Group Holding 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 applica... |
/*
* 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 n... |
package ca.bc.gov.open.pssg.rsbc.dps.dpsemailpoller.email.configuration;
import ca.bc.gov.open.pssg.rsbc.dps.dpsemailpoller.email.services.*;
import microsoft.exchange.webservices.data.core.ExchangeService;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Te... |
package com.jfjessup.zuul.service.downstreamapi;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class DownstreamApiApplicationTests {
... |
package it.unipd.stage.sl.controllers;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.MediaType;
import io.micronaut.http.annotation.*;
... |
package com.cyberlink.cosmetic.modules.circle.dao.hibernate;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import com.cyberlink.core.dao.hibernate.AbstractDaoCosmet... |
/******************************************************************
* File: LogReplay.java
* Created by: Dave Reynolds
* Created on: 27 Mar 2013
*
* (c) Copyright 2013, Epimorphics Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... |
package org.mintleaf.vo;
import java.util.List;
public class PageFrame {
private List list;
private Long pageNum;
private Long pageSize;
private Long pages;
private Long total;
public List getList() {
return list;
}
public void setList(List list) {
this.list = list;... |
/*
* 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 app... |
package com.mc.spring.samples.console.persistence.dao;
import com.mc.spring.samples.console.persistence.model.User;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* This DAO is using the... |
/*
* Copyright (c) 2008-2017, 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 ... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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: 2019.07.... |
package dev.itsmeow.quickhomes.forge;
import dev.itsmeow.quickhomes.QuickHomesMod;
import net.minecraftforge.fml.ModList;
public class QuickHomesModImpl {
public static boolean isJoinMessageEnabled() {
return QuickHomesModForge.SERVER_CONFIG.joinMessageEnabled.get();
}
public static String getMod... |
/*
* Copyright 2002-2015 SCOOP 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.0
*
* Unless required by applicable law... |
package com.api.com.api.testing.SubScripts;
import org.testng.annotations.DataProvider;
import com.api.com.api.testing.Constant;
import com.api.com.api.testing.ExcelUtil;
import com.api.com.api.testing.SetupClass;
import com.relevantcodes.extentreports.LogStatus;
public class Dataprov extends SetupClass{
privat... |
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
* Copyright 2009-2016 Aarhus University
*
* 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... |
package mekanism.api.recipes.chemical;
import java.util.function.Predicate;
import javax.annotation.ParametersAreNonnullByDefault;
import mcp.MethodsReturnNonnullByDefault;
import mekanism.api.annotations.FieldsAreNonnullByDefault;
import mekanism.api.annotations.NonNull;
import mekanism.api.chemical.Chemical;
import ... |
import java.util.ArrayList;
import java.util.List;
public class Herd implements Movable {
private List<Movable> herd;
public Herd() {
this.herd = new ArrayList<>();
}
public void addToHerd(Movable movable) {
herd.add(movable);
}
@Override
public void move(int dx, int dy) ... |
/*-
* Copyright (C) 2020 Confluent, Inc.
*/
package io.confluent.parallelconsumer.integrationTests;
import io.confluent.csid.utils.StringUtils;
import io.confluent.parallelconsumer.OffsetMapCodecManager;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.kafka.clie... |
package com.gazeboindustries.friday;
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 Android device.
... |
package net.la.lega.mod.item;
import net.la.lega.mod.initializer.LItemGroups;
import net.la.lega.mod.loader.LLoader;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
impor... |
package com.prabalhub.design.patterns.structural.adapter.object;
import java.util.List;
public class AdapterObjectDemo {
public static void main(String[] args) {
EmployeeClient client = new EmployeeClient();
List<Employee> employees = client.getEmployees();
System.out.println(employees);
}
} |
package com.wangxl.yikemall.member.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.w... |
/*
* Copyright 2015 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... |
/**
* Copyright 2015 StreamSets Inc.
*
* Licensed under 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 Lice... |
@ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package eutros.coverseverywhere.impl.asm;
import mcp.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault; |
package DAO.DAO.custom;
import DAO.CRUDDAO;
import DAO.SuperDAO;
import Entities.OrderDetails;
import java.sql.SQLException;
import java.util.List;
public interface OrderDetailsDAO extends CRUDDAO<OrderDetails,String> {
public String getQtyByCode(String itemcode);
} |
/*
* CapitalizeStream.java
*
* Copyright (C) 2004-2005 Peter Graves
* $Id$
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any l... |
package backtype.storm.hooks.info;
public class SpoutAckInfo {
public Object messageId;
public int spoutTaskId;
public Long completeLatencyMs; // null if it wasn't sampled
public SpoutAckInfo(Object messageId, int spoutTaskId,
Long completeLatencyMs) {
this.messageId = messageId;
this.spoutTaskId = spoutTa... |
package com.github.jasonmfehr.combiner.output;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Map;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;... |
package io.g740.pigeon.biz.object.entity.df;
import io.g740.commons.constants.DatabaseConstants;
import io.g740.commons.types.BaseDo;
import io.g740.components.uid.tinyid.TinyId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Where;
import javax.persistence.Column;
import javax.... |
package fr.ece.android.casclient;
@SuppressWarnings("serial")
public class CasProtocolException extends Exception {
public CasProtocolException() {
super();
}
public CasProtocolException(String message) {
super(message);
}
} |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for
* license information.
*/
package com.microsoft.azure.spring.integration.core.api;
import org.springframework.messaging.Message;
import java.util.concurrent.CompletableFuture;
/**... |
/*
* Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics
*
* 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-... |
/**
* 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
* distribu... |
package daos;
import com.avaje.ebean.Model;
import models.Publicacao;
import java.util.Optional;
public class PublicacaoDAO {
private Model.Finder<Long, Publicacao> publicacoes = new Model.Finder<>(Publicacao.class);
public Optional<Publicacao> comId(Long id) {
Publicacao publicacao = publicacoes.... |
package simulation.ruleSet;
import java.util.Random;
import simulation.cell.*;
import simulation.neighborhoods.Neighborhood;
import simulation.neighborhoods.SquareNeighborhood;
import simulation.ruleSet.neighborManager.*;
/**
* Calculates updated cell states based on Fire Ruleset simulation.
*
* RULES:
* Tree Ce... |
/*
* GraphHopper Directions API
* You use the GraphHopper Directions API to add route planning, navigation and route optimization to your software. E.g. the Routing API has turn instructions and elevation data and the Route Optimization API solves your logistic problems and supports various constraints like time wind... |
package com.reactnativenavigation.viewcontrollers;
import android.app.Activity;
import androidx.fragment.app.FragmentActivity;
import android.widget.FrameLayout;
import com.facebook.react.ReactInstanceManager;
import com.reactnativenavigation.BaseTest;
import com.reactnativenavigation.parse.ExternalComponent;
import ... |
package com.xuyu.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TbItemCatExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TbItemCatExample() {
oredCriteria = new ArrayList<Criter... |
package com.beatshadow.shop.pojo;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* @author gnehcgnaw
*/
public class TradePayExample implements Serializable {
protected String orderByClause;
protected boolean distinct;
protected List<Cri... |
package warehouse;
import java.util.Iterator;
import java.lang.Iterable;
import java.util.ConcurrentModificationException;
import java.util.NoSuchElementException;
public class OrbicularRelatedTilt<T> implements Iterable<T> {
private final warehouse.Nucleus<T> surveillance;
private int tell;
private int modeEnu... |
/*
* 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 lvyerose.observer;
import java.util.Observable;
import java.util.Observer;
/**
* Created by lvyeRose on 17/3/5.
*/
public class Coder implements Observer {
private String name;
public Coder(String name) {
this.name = name;
}
public String getName() {
return name;
}
... |
/*
* 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... |
package br.com.lacomida.persistence;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class MockedSharedPreferences implements android.content.SharedPreferences {
private Map<String, String> values = new HashMap<>();
@Override
public Map<String, ?> getAll() {
return values;
}
@Ov... |
/*
* Copyright (C) 2008 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 agreed ... |
package com.jh.cavy.boot.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
@Configuration
public class CorsConfig {
private CorsConfiguration buildConfig() {
CorsConfiguration corsConfiguration = new CorsConfiguration();
cor... |
public class MetamorphicRock extends Rock
{
public MetamorphicRock(int num, double grams)
{
super(num, grams);
setDescription("Any rock can become a metamorphic rock " +
"\nif the rock is moved into an environment in which the " +
"\nminerals which make up the rock become unstable an... |
package zmaster587.advancedRocketry.tile.multiblock.machine;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net... |
package com.smilehappiness.utils;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
/**
* <p>
* JSONUtils
* <p/>
*
* @author smilehappiness
* @Date 2020/8/15 16:59
*/
@Slf4j
public class JsonParseUtils {... |
/**
* Copyright (c) 2010-2019 Mark Allen, Norbert Bartels.
*
* 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 com.github.ethendev.jdruid;
import com.github.ethendev.jdruid.query.Interval;
import org.junit.Test;
import java.time.ZonedDateTime;
import static org.junit.Assert.assertEquals;
/**
* @author: Ethan
* @Date: 2018/9/16
*/
public class IntervalTest {
@Test
public void getInterval1() {
Stri... |
package org.plumelib.reflection;
import java.util.regex.Pattern;
import org.checkerframework.checker.regex.qual.Regex;
// This is defined outside the Checker Framework because it is generally useful, and so that it can
// be used in both the checker/ and framework/ subprojects of the Checker Framework.
/**
* This cl... |
/*
* Copyright 2020, Verizon Media.
* Licensed under the terms of the Apache 2.0 license.
* Please see LICENSE file in the project root for terms.
*/
package com.yahoo.oak;
/**
* UnionCodec is combining two or three integers into one long
*
* IMPORTANT: The 3 parameters (first, second and third) cannot be nega... |
package befaster.solutions.HLO;
import befaster.runner.SolutionNotImplementedException;
import java.text.MessageFormat;
import java.util.Optional;
public class HelloSolution {
public String hello(String friendName) {
String name = Optional.ofNullable(friendName).orElse("World");
return MessageFor... |
package com.revengemission.sso.oauth2.server.service.impl;
import com.github.dozermapper.core.Mapper;
import com.revengemission.sso.oauth2.server.domain.AlreadyExistsException;
import com.revengemission.sso.oauth2.server.domain.JsonObjects;
import com.revengemission.sso.oauth2.server.domain.LoginHistory;
import com.re... |
package com.github.xiaolyuh.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
... |
package com.facebook.react.views.drawer;
import android.view.View;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import com.facebook.react.bridge.Dynamic;
import com.facebook.react.bridge.JSApplicationIllegalArgumentException;
import com.facebook.react.bridge.ReadableArray;... |
/**
* 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 Yahoo 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 (c) 2012 CommonsWare, 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 writin... |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
* Copyright © 2009 HotPads (admin@hotpads.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... |
package znu.visum;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Configuration;
@Configuration
class VisumApplicationTests {
@Test
void contextLoads() {
}
} |
// Reverse an array without affecting special characters
// Input: str = "a,b$c"
// Output: str = "c,b$a"
// Note that $ and , are not moved anywhere.
// Only subsequence "abc" is reversed
//
// Input: str = "Ab,c,de!$"
// Output: str = "ed,c,bA!$"
class Main{
static String revString(String strr){
int l=... |
/*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.cfa.postprocessing.global.singl... |
package org.ithang.application.account.bean;
/**
* 个人和团队的投资统计
* @author Administrator
*
*/
public class Teams {
private Integer customer_id;//用户ID
private Integer account_id;//用户账户ID
private Integer from_user;//用户上级,即推荐人
private Integer grade;//用户等级,数字的值 表示用户的上级有多少级
private String uname;//用户昵称
private Doubl... |
package com.github.tangyi.gateway.filters;
import cn.hutool.core.util.StrUtil;
import com.github.tangyi.common.basic.properties.SysProperties;
import com.github.tangyi.common.core.constant.CommonConstant;
import com.github.tangyi.common.core.utils.AesUtil;
import com.github.tangyi.gateway.constants.GatewayConstant;
im... |
package com.cloudimpl.outstack.runtime;
import com.cloudimpl.outstack.runtime.domainspec.*;
import reactor.core.publisher.Mono;
public abstract class UnboundedCommandHandler<T extends RootEntity,C extends Command, R> extends EntityCommandHandler<T, C, Mono<R>>{
public Mono<EntityContext<T>> emitAsync(EntityCon... |
package main.java.venkyvb.odata;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import java.util.logging.Logger;... |
package config;
import ga.rugal.demo.core.dao.CourseDao;
import ga.rugal.demo.core.dao.RegistrationDao;
import ga.rugal.demo.core.dao.StudentDao;
import ga.rugal.demo.core.service.CourseService;
import ga.rugal.demo.core.service.RegistrationService;
import ga.rugal.demo.core.service.StudentService;
import com.fasterx... |
// 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.firebase.client.core.utilities;
import com.firebase.client.core.Path;
import java.util.ArrayList;
// Referenced classes of package com.fireba... |
/*
* Copyright © 2013-2016 The Nxt Core Developers.
* Copyright © 2016-2019 Jelurida IP B.V.
*
* See the LICENSE.txt file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with Jelurida B.V.,
* no part of the Nxt software, in... |
package com.zhengxiaoyao0716.net;
public class PushGrade implements Runnable{
private int level, score;
private String name;
private long time;
public PushGrade(int level, int score, String name, long time)
{
this.level = level;
this.score = score;
this.name = name;
... |
package com.mygdx.game.clientserver;
import java.io.*;
import java.net.*;
/**
* questa classe definisce il thread del server per ricevere i pacchetti dai diversi client
*
* @author Cotogni, Mari, Oberti
*/
public class ServerThread extends Thread {
private DatagramSocket socket;
private InetAddress addre... |
package org.anvard.introtojava.swing;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.UIManager;
public... |
// Generated code from Butter Knife. Do not modify!
package com.justwayward.reader.view;
import android.support.annotation.CallSuper;
import android.support.annotation.UiThread;
import android.view.View;
import android.webkit.WebView;
import android.widget.ProgressBar;
import butterknife.Unbinder;
import butterknife.i... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
package com.github.agjacome.httpserver.model.repository.exception;
import com.github.agjacome.httpserver.model.Entity;
import static java.util.Objects.requireNonNull;
public class EntityAlreadyExistsException extends RepositoryException {
private static final long serialVersionUID = 1L;
private final Entit... |
package com.app.barber.net;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.app.barber.R;
import com.app.barber.core.BarberApplication;
import com.app.barber.util.CommonUtils;
import com.app.barber.util.... |
package com.wzb.member.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wzb.member.base.Page;
import com.wzb.member.base.Result;
import com.wzb.member.entity.Clockin;
import com.wzb.member.entity.Student;
import com.wzb.me... |
/*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with the License. You may obtain a
* c... |
package idworker;
import idworker.strategy.DefaultWorkerIdStrategy;
public class Id {
private static WorkerIdStrategy workerIdStrategy;
private static IdWorker idWorker;
static {
configure(DefaultWorkerIdStrategy.instance);
}
public static synchronized void configure(WorkerIdStrategy cu... |
package io.github.isharipov.gson.adapters;
import java.math.BigDecimal;
public class CommissionEmployee extends Employee {
private final BigDecimal grossSales;
private final BigDecimal commissionRate;
public CommissionEmployee(
String id, String type, String firstName, String lastName, Strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.