text stringlengths 7 995k |
|---|
package org.poker.chess.player;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ChessStats {
@JsonProperty("last")
private Rating last;
@JsonProperty("best")
private Rating best;
@JsonProperty("record")
private Record record;
public Rating getLast() {
return las... |
package epg.duna.twowayrecyclerview.view;
import android.view.View;
import android.widget.ImageView;
import androidx.recyclerview.widget.RecyclerView;
import epg.duna.twowayrecyclerview.R;
/**
* Created by Marius Duna on 10/3/2016.
*/
public class HeaderChannelViewHolder extends RecyclerView.ViewHolder {
pub... |
package com.bitfire.uracer.screen.transitions;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;
import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import com.badlogic.gdx.utils.GdxRuntimeException;
import com.bitfire.postprocessing.utils.FullscreenQuad;
import com.bitfire.uracer.URacer;
import com.bitfire.ur... |
package yuk.dic;
public abstract class SystemDic {
// periodCode
public static final long PCODE_SEC = 1000L;
public static final long PCODE_MIN = PCODE_SEC * 60;
public static final long PCODE_Hour = PCODE_MIN * 60;
public static final long PCODE_Day = PCODE_Hour * 24;
public static final long PCODE_MONTH = PCO... |
package org.chocosolver.util.graphOperations.connectivity;
import org.chocosolver.util.objects.IntTuple2;
import org.chocosolver.util.objects.SparseSet;
import org.chocosolver.util.objects.graphs.DirectedGraph;
import org.chocosolver.util.objects.setDataStructures.ISet;
import java.util.*;
public class StrongConnect... |
/*
* Copyright 2014 Stormpath, 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... |
/*
* Copyright 2019 Treu Techologies
*
* 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 use this file except in compliance with
* the License. You ... |
/*
* (C) Copyright 2006-2007 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 re... |
/*
* Copyright (C) 2009-2012 The Project Lombok Authors.
*
* 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, ... |
/*
* 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 ... |
/*
* Generated by src/saveVersion.sh
*/
@VersionAnnotation(version="1.99.6", revision="Unknown",
user="sergey", date="Wed Apr 6 11:33:51 MSK 2016", url="file:///home/sergey/code/sqoop-1.99.6-bin-hadoop200/common")
package org.apache.sqoop.common; |
/*
* Copyright 2019 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 ... |
/*
* Copyright 2006-2008 Web Cohesion
*
* 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... |
/*******************************************************************************
* Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0... |
package jpuppeteer.cdp.client.constant.security;
/**
* A description of mixed content (HTTP resources on HTTPS pages), as defined by https://www.w3.org/TR/mixed-content/#categories
*/
public enum MixedContentType implements jpuppeteer.cdp.client.CDPEnum {
BLOCKABLE("blockable"),
OPTIONALLY_BLOCKABLE("optional... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package de.hpi.bpt.chimera.execution.controlnodes.event.behavior;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.Duration;
import java.util.Date;
/**
*
*/
public class TimeCalculator {
// For now supports dates in form of PT1M30S
pub... |
/*
* 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... |
package com.jmall.controller.common.interceptor;
import com.google.common.collect.Maps;
import com.jmall.common.Const;
import com.jmall.common.ServerResponse;
import com.jmall.pojo.User;
import com.jmall.util.CookieUtil;
import com.jmall.util.JsonUtil;
import com.jmall.util.RedisClusterUtil;
import lombok.extern.slf4j... |
/*
* IAstVisitor.java
*
* Copyright (c) 2013 Mike Strobel
*
* This source code is based on Mono.Cecil from Jb Evain, Copyright (c) Jb Evain;
* and ILSpy/ICSharpCode from SharpDevelop, Copyright (c) AlphaSierraPapa.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0.
* A ... |
package com.mercadolibre.challenge.quasar.service;
import com.mercadolibre.challenge.quasar.domain.*;
import com.mercadolibre.challenge.quasar.repository.SatelliteRepository;
import com.mercadolibre.challenge.quasar.service.exception.TopSecretException;
import com.mercadolibre.challenge.quasar.service.location.Trilate... |
package br.com.zupacademy.luizpedro.casadocodigo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CasaDoCodigoApplication {
public static void main(String[] args) {
SpringApplication.run(CasaDoCodigoApplica... |
package com.fishercoder.solutions;
import com.fishercoder.common.classes.ListNode;
/**
* 86. Partition List
*
* Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of the... |
import java.util.*;
public class Add_Two_Integers {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner( System.in);
System.out.println("Enter your First number:");
int a=sc.nextInt();
System.out.println("Enter your Second number:");
int b =... |
package com.example.myrealestate.dao;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.room.Dao;
import androidx.room.Query;
import androidx.room.RawQuery;
import com.example.myrealestate.models.Type;
import com.example.myrealestate.service.ITypeService;
@Dao
public inte... |
package pl.com.adammistal.simpledb.Interfaces;
import android.database.Cursor;
/**
* Created by Adam Miśtal on 2015-09-06.
* adam.mistal84@gmail.com
*/
public interface ICursorCallback<T> {
T onParseCursor(Cursor cursor);
void onExecuted(T object);
void onCanceled();
void onError(Throwable objec... |
package lol.maki.socks.payment;
import java.math.BigDecimal;
public class Payment {
private final BigDecimal amount;
private final BigDecimal declineOverAmount;
public Payment(BigDecimal amount, BigDecimal declineOverAmount) {
this.amount = amount;
this.declineOverAmount = declineOverAmount;
}
public BigD... |
package com.superspeed.mq.activemq;
import org.apache.activemq.ActiveMQConnectionFactory;
import javax.jms.*;
public class ActiveMQConsumer {
private static final String username = "admin";
private static final String password = "admin";
//端口可以随意定义
private static final String url = "tcp://10.7.187.2... |
package com.epam.brest.files;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Map;
public interface FileReader {
Map<Integer, BigDecimal> readData(final String filePath) throws IOException;
} |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package com.markmao.pulltorefresh.lib.listview;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.View... |
package com.moxi.mogublog.commons.feign;
import com.moxi.mogublog.commons.config.feign.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.... |
package org.jboss.resteasy.test.finegrain.methodparams;
import static org.jboss.resteasy.test.TestPortProvider.*;
import static org.jboss.resteasy.util.HttpClient4xUtils.*;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import java... |
/*
* Copyright (c) 2021, Veepee
*
* Permission to use, copy, modify, and/or distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright notice
* and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... |
/*
* 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 ufsc.bd1.org.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerato... |
/*
* 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 later version.
*
* This program is distributed in the hope that... |
/*
* 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... |
package hello.proxy.app.v1;
public class OrderControllerV1Impl implements OrderControllerV1 {
private final OrderServiceV1 orderService;
public OrderControllerV1Impl(OrderServiceV1 orderService) {
this.orderService = orderService;
}
@Override
public String request(String itemId) {
... |
/**
*
* 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 2010-2016 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... |
/* 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.camera.core;
public final class R {
private R() {}
public static final class attr {
private attr() {}... |
/*
* 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 2013-2021 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/10/8 17:00</create-date>
*
* <copyright file="PairFrequency.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.linrunsoft.com/
* This source is subject t... |
package yuck.internal;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import yuck.HttpMethod;
import yuck.Route;
import yuck.RouteMatcher;
import yuck.Target;
import yuck.annotation.Mutable;
import yuck.factory.RouteFactory;
import yuck.utils.Lists;
@Mutable
public class DefaultRouteMatcher i... |
/*
* Copyright 1999-2012 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 la... |
package com.wanggh8.netcore.bean;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;
import java.io.StringWriter;
import okhttp3.MediaType;
public class XMLBean {
/** 操作成功或失败:
成功:0
失败:非0
*/
@Element(required ... |
package main.java.com.bag.client;
import bftsmart.communication.client.ReplyListener;
import bftsmart.tom.RequestContext;
import bftsmart.tom.core.messages.TOMMessage;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.pool.KryoPool;
import main.java.com.... |
/*
* 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 ... |
/** Utility class used by ImageCruncher. Provided in an extra file for clarity. */
public class Point {
// Properties
private int x, y;
// Cnstr.
public Point(int x, int y) {
this.x = x;
this.y = y;
}
/** Get the X coordinate of the point. */
public int getX() {
ret... |
/*
* (C) Copyright IBM Corp. 2022.
*
* 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 w... |
/*
* Copyright 2013 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 applicabl... |
package net.minecraft.server.network;
import net.minecraft.network.EnumConnectionState;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.handshake.INetHandlerHandshakeServer;
import net.minecraft.network.handshake.client.C00Handshake;
import net.minecraft.network.login.server.S00PacketDisconne... |
package com.billow.job.common;
import org.springframework.core.convert.converter.Converter;
import org.springframework.util.Assert;
import java.util.ArrayList;
import java.util.List;
/**
* 分页数据
*
* @author liuyongtao
* @create 2019-11-01 9:07
*/
public class CustomPage<T> {
private List<T> tableData;
pr... |
package com.xkcoding.springbootdemorabcshiromybatis.dao;
import com.xkcoding.springbootdemorabcshiromybatis.model.MybatisShiroRole;
import com.xkcoding.springbootdemorabcshiromybatis.util.MyMapper;
import org.springframework.stereotype.Component;
@Component
public interface MybatisShiroRoleMapper extends MyMapper<Myb... |
package com.github.TKnudsen.timeseries.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import com.github.TKnudsen.timeseries.data.dataGeneration.TimeSeriesGenerator;
import com.github.TKnudsen.timeseries.data.primitives.TimeDuration;
import com.github.TKnudsen.timeseries.data.primiti... |
/* 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 login;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest... |
/*!
* Copyright 2010 - 2018 Hitachi Vantara. 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 org.appenders.log4j2.elasticsearch;
/*-
* #%L
* log4j2-elasticsearch
* %%
* Copyright (C) 2018 Rafal Foltynski
* %%
* 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
*
* ... |
package com.lyft.data.gateway.ha.config;
import java.util.List;
import lombok.Data;
@Data
public class NotifierConfiguration {
private boolean startTlsEnabled;
private boolean smtpAuthEnabled=true;
private String smtpHost = "smtp.qq.com";
private int smtpPort = 465;
private String smtpUser;
private String... |
/*
* 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 ... |
// This file was generated by Mendix Modeler.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time yo... |
/*
* Copyright (C) 2012-2018 DuyHai DOAN
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2013-2016 Denis Forveille (titou10.titou10@gmail.com)
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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... |
/**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.sample.graphene;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.image.BufferedImage;
import java.util... |
/**
* Copyright 2009-2015 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requir... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... |
/*
* Copyright 2017-2022 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 com.zbutwialypiernik.bloodbot.command;
import com.zbutwialypiernik.bloodbot.command.base.Command;
import com.zbutwialypiernik.bloodbot.command.base.CommandContext;
import com.zbutwialypiernik.bloodbot.command.util.CommandUtils;
import com.zbutwialypiernik.bloodbot.command.util.MessageFormatting;
import com.zbu... |
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.plugin.ij.util;
import com.intellij.notification.Notification;
import com.intellij.notification.NotificationListener;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.ui.popup.Balloon;
import org.jetbrains.annotations.NotNull;
... |
package org.nem.core.test;
import org.nem.core.crypto.KeyPair;
import org.nem.core.node.*;
import org.nem.core.time.NetworkTimeStamp;
import org.nem.core.time.synchronization.*;
import java.security.SecureRandom;
import java.util.*;
public class TimeSyncUtils {
private static final long MINUTE = 60L * 1000L;
priv... |
/*
* 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 connection;
import java.util.List;
import javax.persistence.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import daos.Usuario;
public class ConexionHibernate {
SessionFactory mFctory;
Session session;
... |
package gameplay;
import java.awt.geom.Point2D;
import java.net.UnknownHostException;
import java.util.ArrayList;
import java.util.List;
public class AgilePursuer extends AgileDronePlayer implements Pursuer {
private List<Point2D> relativeTrajectory;
AgilePursuer(String ip, int port, double v, double l, DronePl... |
/*
* Copyright 2002-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 a... |
package cameraview.filters;
import android.opengl.GLES20;
import androidx.annotation.NonNull;
import cameraview.filter.BaseFilter;
import cameraview.filter.TwoParameterFilter;
import cameraview.internal.GlUtils;
/**
* Applies a vignette effect to input frames.
*/
public class VignetteFilter extends BaseFilter im... |
package seedu.foodiebot.logic.parser;
import org.junit.jupiter.api.Test;
import seedu.foodiebot.logic.parser.exceptions.ParseException;
class TransactionsCommandParserTest {
private TransactionsCommandParser parser = new TransactionsCommandParser();
@Test
void parse() throws ParseException {
/*a... |
package com.sanshengshui.server;
import com.sanshengshui.bean.RpcRequest;
import com.sanshengshui.bean.RpcResponse;
import com.sanshengshui.codec.RpcDecoder;
import com.sanshengshui.codec.RpcEncoder;
import com.sanshengshui.registry.ServiceRegistry;
import com.sanshengshui.util.base.StringUtil;
import io.netty.bootstr... |
package com.superweather.android;
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.activit... |
package com.ddg.meituan.product.enums;
/**
* Description: 商品上架状态显示:
* ========================================================================
* ------------------------------------------------------------------------
*
* @author Edison
* @version 1.0
* <p>
* ==================================================... |
// "Transform 'i' into final one element array" "true"
import java.io.*;
class aa {
void f() {
final int i;
Runnable runnable = new Runnable() {
public void run() {
<caret>i = 5;
}
};
int f = i;
}
} |
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
*/
package com.huawei.javamesh.metricserver.service;
import com.huawei.javamesh.metricserver.dao.influxdb.InfluxDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... |
package org.dotwebstack.framework.transaction.flow.step;
import org.eclipse.rdf4j.model.IRI;
import org.eclipse.rdf4j.model.Model;
import org.eclipse.rdf4j.model.Resource;
public interface StepFactory {
boolean supports(IRI stepType);
Step create(Model flowModel, Resource identifier);
} |
package org.br.poorbnb.poorbnb;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
//
//@SpringBootTest
//class PoorbnbApplicationTests {
//
// @Test
// void contextLoads() {
// }
//
//} |
package codes.app.src.main.utilites;
class Node{
public String value;
public Node next;
public Node(String value){
this.value = value;
next = null;
}
} |
package com.longlong.ex.tabhostandnestedfragment;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.... |
/*******************************************************************************
*
* Copyright FUJITSU LIMITED 2016
* ... |
package org.narses.narsion.commands.guild;
import net.minestom.server.command.CommandSender;
import net.minestom.server.command.builder.CommandContext;
import net.minestom.server.entity.Player;
import net.minestom.server.utils.entity.EntityFinder;
import org.jetbrains.annotations.NotNull;
import org.narses.narsion.Nar... |
/**
* Copyright 2007-2014 Ensift Pty Ltd as trustee for the Avaz Trust and other contributors
*
* 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/LICENS... |
package com.yw.mushmall.member.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.anno... |
package br.com.jgle.acti.entity.pgr;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.F... |
package org.hl7.fhir.r4.model.codesystems;
/*
Copyright (c) 2011+, HL7, 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 copyr... |
package org.gradle.test.performance.mediummonolithicjavaproject.p430;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test8600 {
Production8600 objectUnderTest = new Production8600();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... |
/*
Copyright 2003 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 applicable l... |
package com.pfe.projectMonitoringBE.controllers;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.time.LocalDateTime;
import java.time.Period;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... |
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
/*
*******************************************************************************
* Copyright (C) 2003-2010, International Business Machines Corporation and *
* others. All Rights Reserved. ... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.