text stringlengths 7 995k |
|---|
package com.trainer;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
@Override
protected String getMainComponentName() {
ret... |
package com.pd.danim.Form.Request;
import com.pd.danim.DTO.PlanPlace;
public class PlanRequest {
private String title;
private String startDate;
private String endDate;
private PlaceRequest[][] places;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
... |
package headfirst.observer.wetterobservable;
import java.util.Observable;
import java.util.Observer;
public class StatistikAnzeige implements Observer, AnzeigeElement {
private float maxTemp = 0.0f;
private float minTemp = 200;
private float tempSum= 0.0f;
private int anzMesswerte;
public StatistikAnzeige(Obser... |
/*
* 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 org.spike.makeEasyToChange;
/**
* https://medium.com/thomas-benard/refactoring-is-stupid-454ba11c31e1
*
* Clean Code should be easy to understand, but all code that is easy to understand is not Clean.
* Clean Code is also easy to change.
*
*/ |
// Copyright (C) 2018 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 ... |
package softuni.winelovers.data.models.base;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class BaseEntity {
@Id
@Generated... |
/*
* This file is released under terms of BSD license
* See LICENSE file for more information
*/
package claw.tatsu.primitive;
import claw.tatsu.TatsuConstant;
import claw.tatsu.xcodeml.abstraction.DimensionDefinition;
import claw.tatsu.xcodeml.abstraction.PromotionInfo;
import claw.tatsu.xcodeml.abstraction.Reshap... |
/*
* 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 arez.spy;
import arez.ComputableValue;
import arez.Disposable;
/**
* Enum to control scheduling priority of observers/reactions.
* Observers with higher priorities will react first. If observers have equal priorities then observers
* scheduled first will react first. Observers must not depend upon Computab... |
/*
* This file is part of the Benno4j project.
*
* Copyright (c) 2021, stwe <https://github.com/stwe/Benno4j>
*
* 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... |
/*
* Copyright (C) 2020 Dremio
*
* 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 wr... |
package com.croparia.mod.Entity.Seafarer;
import com.croparia.mod.Entity.AI.EntityAIBaseAttack;
import com.croparia.mod.Init.ItemMod;
import com.croparia.mod.World.Dim.WaterDim;
import net.minecraft.entity.Entity;
import net.minecraft.entity.IEntityLivingData;
import net.minecraft.entity.SharedMonsterAttributes;
impo... |
package com.coolweather.android.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by lenovo on 2017/5/3.
*/
public class Basic {
@SerializedName("city")
public String cityName;
@SerializedName("id")
public String weatherId;
public Update update;
public class Update ... |
package io.renren.modules.generator.dao;
import io.renren.modules.generator.entity.GfScoreEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 成绩
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2022-03-14 14:19:56
*/
@Mapper
public interf... |
package pl.kamfonik.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
import javax... |
package controllers;
import play.mvc.*;
public class HomeController extends Controller {
public Result index(Http.Request request) {
String url = routes.SearchController.socket().webSocketURL(request);
return ok(views.html.index.render(url));
}
} |
/*
* Copyright (C) 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
/*-
* -\-\-
* github-api
* --
* Copyright (C) 2016 - 2020 Spotify AB
* --
* 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
*
* U... |
/*
* Copyright (C) 2014 Camptocamp
*
* This file is part of MapFish Print
*
* MapFish Print 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 3 of the License, or
* (at your option) any l... |
package com.vailsys.persephony.api;
import static com.vailsys.persephony.json.PersyGson.gson;
import java.util.ArrayList;
import java.lang.IndexOutOfBoundsException;
import java.io.IOException;
import java.io.StringReader;
import com.google.gson.JsonElement;
import cucumber.api.java.en.Given;
import cucumber.api.ja... |
package com.cg.dms.controller;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import ... |
/*
* Copyright (c) 2020 Dzikoysk
*
* 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 2021. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless ... |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import models.*;
import org.junit.*;
import org.omg.CORBA.TIMEOUT;
import play.mvc.*;
import play.test.*;
import play.data.DynamicForm;
import play.data.validation.ValidationError;
import play.data.validation.Constraints.RequiredValidator;
imp... |
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2012 Dirk Beyer
* 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... |
/*
* Copyright 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 to in ... |
/*
* Copyright 2019 FormDev 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 or ... |
package timely.configuration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackageClasses = { SpringBootstrap.class })
public class SpringBootstrap {
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package docs.services.test;
import com.lightbend.lagom.javadsl.api.*;
import static com.lightbend.lagom.javadsl.api.Service.*;
public interface GreetingService extends Service {
ServiceCall<String, String> greeting();
default Descriptor descrip... |
/*
* 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 ... |
/*
* 3D City Database - The Open Source CityGML Database
* https://www.3dcitydb.org/
*
* Copyright 2013 - 2021
* Chair of Geoinformatics
* Technical University of Munich, Germany
* https://www.lrg.tum.de/gis/
*
* The 3D City Database is jointly developed with the following
* cooperation partners:
*
* Virtua... |
package fr.kysio.forgeguicreator.commands;
public class CommandArg {
} |
package org.apache.lucene.store;
/**
* 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, Versi... |
package rpc.json.message;
import static org.junit.Assert.*;
import org.json.JSONObject;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class RpcResponseTest {
@BeforeClass
public static void setUpBeforeClass() throws Except... |
/*
* Copyright 2019 dc-square 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 or agree... |
package ru.job4j.cars.dao;
/**
* @author madrabit on 04.08.2020
* @version 1$
* @since 0.1
*/
public interface AdvertisementDao {
void update(int id, boolean completed);
} |
/**
*
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
*
* 1. Definitions.
*
* "License" shall mean the terms and condi... |
package com.thinkinginjava.source.control;//: control/ForEachInt.java
import static net.mindview.util.Range.*;
import static net.mindview.util.Print.*;
public class ForEachInt {
public static void main(String[] args) {
for(int i : range(10)) // 0..9
printnb(i + " ");
print();
for(int i : range(5, 1... |
package io.dronefleet.mavlink.ardupilotmega;
import io.dronefleet.mavlink.annotations.MavlinkEntryInfo;
import io.dronefleet.mavlink.annotations.MavlinkEnum;
/**
*
*/
@MavlinkEnum
public enum GoproHeartbeatStatus {
/**
* No GoPro connected
*/
@MavlinkEntryInfo(0)
GOPRO_HEARTBEAT_STATUS_DISC... |
package graphql.schema;
import graphql.Internal;
import graphql.PublicApi;
import graphql.language.UnionTypeDefinition;
import graphql.util.TraversalControl;
import graphql.util.TraverserContext;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util... |
package edu.foreverfit.utils;
import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
public class Keyboard {
public static void hide(Context context, View view) {
InputMethodManager imm = (InputMethodManager) context.getS... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.formrecognizer.training;
import com.azure.ai.formrecognizer.FormRecognizerServiceVersion;
import com.azure.ai.formrecognizer.implementation.Constants;
import com.azure.ai.formrecognizer.implementation.... |
package com.hz.learnboot.es.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
* 城市信息
*
* @Author hezhao
* @Time 2018-06-30 23:53
*/
@Data @Builder @NoArgsConstructor @AllArgsConstructor
pu... |
/*
* Copyright (C) 2013 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 ... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.salesforce.samples.smartsyncexplorer;
public final class Manifest {
public static final class permission {
/**
... |
package com.linkedin.avro.fastserde.generated.deserialization.AVRO_1_10;
import java.io.IOException;
import java.util.List;
import com.linkedin.avro.api.PrimitiveLongList;
import com.linkedin.avro.fastserde.FastDeserializer;
import com.linkedin.avro.fastserde.primitive.PrimitiveLongArrayList;
import org.apache.avro.Sc... |
package org.indiarose.indiarosetimebar.adapter;
import java.util.ArrayList;
import java.util.List;
import org.indiarose.indiarosetimebar.R;
import org.indiarose.indiarosetimebar.views.AjouterView;
import org.indiarose.indiarosetimebar.views.PeriodeView;
import org.indiarose.indiarosetimebar.views.core.ListElementView... |
/*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
/**
* クラスを横断して再帰的にメソッドを呼び出す例です。
*/
package p06; |
package fakescript.syntree;
public class yield_stmt extends syntree_node
{
public syntree_node m_time;
@Override
public esyntreetype gettype()
{
return esyntreetype.est_yield;
}
@Override
public String dump(int indent)
{
String ret = "";
ret += gentab(indent);
ret += "[yield]:\n";
ret += gentab(in... |
/*
* 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.moxi.mogublog.admin.restapi;
import com.moxi.mogublog.admin.annotion.AuthorityVerify.AuthorityVerify;
import com.moxi.mogublog.admin.annotion.AvoidRepeatableCommit.AvoidRepeatableCommit;
import com.moxi.mogublog.admin.annotion.OperationLogger.OperationLogger;
import com.moxi.mogublog.admin.global.SysConf;... |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.refactoring.introduce.constant;
import com.intellij.ide.util.*;
import com.intellij.openapi.application.WriteAction;
import com.intellij.open... |
// Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... |
package com.cnews.guji.smart.base;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.Layou... |
package test.rse4j.demo.services.tree.impl;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
import rse4j.demo.services.tree.TreeNode;
import rse4j.demo.services.tree.impl.TreeDatasource;
public class TreeDatasourceTest {
@Test
void testGetBigTree() {
TreeData... |
import java.util.*;
public class rec
{
int a;int b;int j=1;
void input()
{
Scanner sc=new Scanner(System.in);
int c=0;
System.out.println("Enter number 1");
a=sc.nextInt();
System.out.println("Enter number 2");
b=sc.nextInt();
c=a;
pow(... |
package org.astraea.cost;
import java.util.Objects;
public interface NodeInfo extends Comparable<NodeInfo> {
static NodeInfo of(org.apache.kafka.common.Node node) {
return of(node.id(), node.host(), node.port());
}
static NodeInfo of(int id, String host, int port) {
return new NodeInfo() {
@Over... |
package org.smartregister.immunization.domain;
import com.google.gson.reflect.TypeToken;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.moc... |
/**
* The MIT License
*
* Copyright (C) 2007 - 2015 Asterios Raptis
*
* 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... |
package br.com.zup.lidiane.proposta.criacaoproposta;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication
@EnableFeignClients
public class CriacaoPropostaApplicatio... |
package org.broadinstitute.hellbender.tools.walkers.haplotypecaller;
import htsjdk.samtools.SAMFileHeader;
import htsjdk.samtools.SAMSequenceDictionary;
import htsjdk.samtools.reference.ReferenceSequenceFile;
import htsjdk.variant.variantcontext.*;
import htsjdk.variant.variantcontext.writer.Options;
import htsjdk.var... |
package com.app.learn.UI;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.util.AttributeSet;
import android.view.View;
import com.app.learn.R;
/**
* Created by Codpoe on 2016/8/12.
*/
public ... |
/*
* Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazonaws.services.kinesis.connectors.impl;
import com.amazonaws.services.kinesis.connectors.interfaces.IFilter;
/**
* This class is a basic implementation of IFilter that returns true... |
package com._7aske.grain.security.config;
import com._7aske.grain.component.Default;
import com._7aske.grain.component.Grain;
import com._7aske.grain.http.HttpMethod;
import com._7aske.grain.logging.Logger;
import com._7aske.grain.logging.LoggerFactory;
import com._7aske.grain.security.config.builder.SecurityConfigura... |
/*
* Copyright 2018 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/* 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 android.support.fragment;
public final class R {
public static final class attr {
public static final int coordinat... |
package org.logstash.ackedqueue.io;
import org.logstash.ackedqueue.SequencedList;
import java.io.Closeable;
import java.io.IOException;
public interface PageIO extends Closeable {
// the concrete class should be constructed with the pageNum, capacity and dirPath attributes
// and open/recover/create must fi... |
package io.quarkus.jdbc.mariadb.runtime.graal;
import org.mariadb.jdbc.internal.logging.Logger;
import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;
@TargetClass(org.mariadb.jdbc.internal.util.pool.Pool.class)
public final class P... |
/**
* Copyright 2010-2015 Axel Fontaine
*
* 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 o... |
/*
* 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.dotmarketing.portlets.workflows.util;
import com.dotmarketing.business.APILocator;
import com.dotmarketing.business.Role;
import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.exception.DotSecurityException;
import com.dotmarketing.portlets.workflows.model.WorkflowActionClassParameter... |
package _MCD;
public class MCD {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(mcd(50, 70, 30, 100));
}
public static int mcd(int... a) {
int prod = 1;
int counter;
int max = min(a);
for (int div = 1; div <= max; div++) {
counter = 0;
if (!primo... |
package org.xmlpull.v1;
import java.io.PrintStream;
public class XmlPullParserException
extends Exception
{
protected int column = -1;
protected Throwable detail;
protected int row = -1;
public XmlPullParserException(String paramString)
{
super(paramString);
}
public XmlPullParserException(S... |
//////////////////////////////////////////////////////////////////////
// //
// JCSP ("CSP for Java") Libraries //
// Copyright (C) 1996-2018 Peter Welch, Paul Austin and Neil Brown //
// 2001-2004 Quicksto... |
package io.swagger.client.api;
import io.swagger.client.CollectionFormats.*;
import retrofit2.Call;
import retrofit2.http.*;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import okhttp3.MultipartBody;
import io.swagger.client.model.Order;
import java.util.ArrayList;
import java.util.HashMap;
import ja... |
package com.schoolproject.shoppingcart.nackademinshoppingcart.callbackhandler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.schoolproject.shoppingcart.nackademinshoppingcart.callbackhandler.callbackinput.*;
import org.springframework.beans.factory.annotation.... |
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.mobile.beacon.device.add response.
*
* @author auto create
* @since 1.0, 2019-03-08 15:29:11
*/
public class AlipayMobileBeaconDeviceAddResponse extends AlipayRespons... |
/*
* Copyright 2011 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... |
package data;
import common.Observer;
import common.Visitor;
public class SimpleNode extends TreeNode{
private FolderNode folder;
private String content;
private String author;
private String url;
private Integer like = 0;
private Integer share = 0;
private Integer dislike = 0;
... |
package dev.marksman.gauntlet.prop;
import com.jnape.palatable.lambda.adt.product.Product2;
import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.lambda.functions.Fn2;
import dev.marksman.collectionviews.Vector;
import dev.marksman.enhancediterables.ImmutableNonEmptyFiniteIterable;
import dev.mar... |
/*
* Copyright (c) 2016-2017, Cameron Moberg <Moberg@tuta.io>
* Copyright (c) 2017, Adam <Adam@sigterm.info>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... |
package com.atguigu.gulimall.ware;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
@EnableFeignClients
@Enab... |
package de.unibremen.beduino.dcaf.datastructures;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
i... |
/*
* Copyright 2016 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 applic... |
package ca.pfv.spmf.gui.patternvizualizer.filters;
/*
* Copyright (c) 2008-2015 Philippe Fournier-Viger
*
* This file is part of the SPMF DATA MINING SOFTWARE
* (http://www.philippe-fournier-viger.com/spmf).
*
* SPMF is free software: you can redistribute it and/or modify it under the
* terms of the GNU General ... |
/*
* Copyright (C) 2013 - 2018 Michael Bulla [michaelbulla@gmail.com]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
package com.wildbeeslabs.sensiblemetrics.diffy.common.event.iface;
import java.util.Arrays;
import java.util.List;
/**
* Interface towards the Event Handling components of an application. This interface provides a friendlier API toward
* the event bus. The EventGateway allows for components to easily publish events... |
package io.localtest;
import io.ebean.DB;
import io.ebean.Database;
import io.ebean.annotation.PersistBatch;
import io.ebean.annotation.Platform;
import io.ebeaninternal.api.SpiEbeanServer;
import org.junit.jupiter.api.extension.ExtendWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Type... |
/*
* Copyright 2004-2014 Brian McCallister
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014-2020 Groupon, Inc
* Copyright 2020-2020 Equinix, Inc
* Copyright 2014-2020 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not ... |
package algorithms.disjointSets;
import junit.framework.TestCase;
public class DisjointSet2Test extends TestCase {
public void test0() throws Exception {
a1(false);
a1(true);
}
private void a1(boolean useUnionChooseY) {
DisjointSet2Helper disjointSetHelper = new Disj... |
package com.king.aware;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author wmx
* @version 1.0
* @ClassName TestAware
* @Description
* @date 2021/8/25 9:23
*/
public class TestAware {
public static void main(String[] args) {
ClassPathXmlApplicationContext ac = new ClassPa... |
/**
* Copyright 2013 Canada Health Infoway, 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 applicab... |
package com.example.clockviewExample;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
publi... |
package io.electrum.giftcard.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.Utils;
import io.electrum.vas.model.Customer;
import io.electrum.vas.model.Transaction;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.c... |
package org.javers.common.collections;
/**
* @author Maciej Zasada
*/
public interface Function<F, T> {
T apply(F input);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.