text stringlengths 7 995k |
|---|
package cn.xpbootcamp.gilded_rose.domain.entity;
public class AgedBrieGoods implements Goods {
@Override
public Integer calQuality(Integer days) {
Integer quality = getOriginalQuality() + days * 1;
return quality > 50 ? 50 : quality;
}
@Override
public String getName() {
r... |
package home.app.household.service.mappers;
import home.app.grpc.TransactionMessage;
import home.app.grpc.api.model.IMapper;
import home.app.household.service.model.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.Date;
@Component
pub... |
/*
* Copyright (C) 2006 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 app... |
package pers.cl.gulimall.product.dao;
import pers.cl.gulimall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 品牌
*
* @author chenlin
* @email chenlin@congine.cn
* @date 2020-07-24 15:33:43
*/
@Mapper
public interface BrandDa... |
/*
* Copyright 2018-2021 Prebid.org, 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 ... |
/*
* Copyright (c) 1997, 2013, 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 ... |
package com.avast.metrics.dropwizard.formatting;
import com.avast.metrics.filter.MetricsFilter;
import org.junit.Test;
import java.util.Collections;
import java.util.stream.Stream;
import static org.junit.Assert.assertEquals;
public class GraphiteFormatterTest {
private static final GraphiteFormatter formatter ... |
package cn.dev33.satoken;
import java.util.HashMap;
import java.util.Map;
import cn.dev33.satoken.action.SaTokenAction;
import cn.dev33.satoken.action.SaTokenActionDefaultImpl;
import cn.dev33.satoken.config.SaTokenConfig;
import cn.dev33.satoken.config.SaTokenConfigFactory;
import cn.dev33.satoken.context.SaTokenCon... |
package cn.edu.sicnu.cs.utils.analogy;
import java.util.List;
/**
* 方差计算
*
* @author kaier
* @date 2019-05-15 10:21
*/
public class VarianceAnalogy {
/**
* 平均值
*/
private double average;
/**
* 原始数据集合
*/
private List<Integer> values;
/**
* 方差的结果值
*/
private do... |
package com.aires.cloud.server.test.service;
import com.aires.cloud.common.entity.AiresServerConstant;
import com.aires.cloud.server.test.service.fallback.HelloServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.... |
/* 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.marriagepointcount;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f01000... |
/*
* 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 pizzaNation.app.service.api;
import org.springframework.ui.ModelMap;
public interface ILoggerService {
boolean addLog(ModelMap modelMap);
} |
package com.nrupeshpatel.university.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import com.nrupeshpatel.university.R;
public class ClassDisplayAdapter exten... |
/*
* 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
* distribute... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
package com.gm.ventas;
public class Orden {
private final int idOrden;
private final Producto productos[];
private static int contadorOrdenes;
private int contadorProductos;
private static final int maxProductos=10;
public Orden() {
this.idOrden = ++contadorOrdenes;
productos = new Producto[maxProductos... |
package seedu.address.commons.events.ui;
import seedu.address.commons.events.BaseEvent;
import seedu.address.model.distributor.Distributor;
/**
* Represents a selection change in the Distributor List Panel
*/
public class DistributorPanelSelectionChangedEvent extends BaseEvent {
private final Distributor newS... |
// This is a generated file. Not intended for manual editing.
package org.rust.lang.core.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
import org.rust.lang.core.psi.ext.RsElement;
public interface RsAsmMacroOption extends RsElement {
@NotNull
PsiElement getId... |
/*
* 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 org.opensrp.register.service.reporting.rules;
import org.opensrp.util.SafeMap;
import org.junit.Before;
import org.junit.Test;
import org.opensrp.register.service.reporting.rules.IsDeathWasCausedByPneumoniaRule;
import static junit.framework.Assert.assertTrue;
import static org.opensrp.common.util.EasyMap.cre... |
package com.burst.sdk.struct.hw;
import com.burst.sdk.library.HWPuSDKLibrary;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.burst.sdk.library.HWPuSDKLibrary;
import java.util.Arrays;
import java.util.List;
/**
* <i>native declaration : D:\HWPuSDK.h</i><br>
* Thi... |
package skyestudios.buildx.base;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
public abstract class BaseDial... |
package com.wq.shardingsphere.example.dao;
import com.wq.shardingsphere.example.model.UserAccount;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
i... |
package io.onedev.server.web.editable.pullrequest.choice;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;
import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.... |
/*
* 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 ... |
/*
* 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 eu.xenit.de.testing.behaviours;
import static eu.xenit.de.testing.Constants.TEST_WEBSCRIPTS_BASE_URI;
import static eu.xenit.de.testing.Constants.TEST_WEBSCRIPTS_FAMILY;
import com.github.dynamicextensionsalfresco.webscripts.annotations.HttpMethod;
import com.github.dynamicextensionsalfresco.webscripts.annota... |
package mireka.destination;
/**
* Destination specifies the service which must be used to transfer an incoming
* mail addressed to a specific recipient and it also contains information
* necessary for that service to do the transfer. For example an instance may
* specify that mail addressed to a specific recipient... |
/*
* 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 cgeo.geocaching.storage;
import cgeo.geocaching.utils.CollectionStream;
import cgeo.geocaching.utils.FileUtils;
import cgeo.geocaching.utils.UriUtils;
import android.content.Context;
import android.net.Uri;
import androidx.annotation.NonNull;
import java.io.File;
import java.io.IOException;
import java.util... |
import java.io.*;
import java.util.*;
class A {
A() {
System.out.println("Inside A constructor");
}
void paint() {
System.out.println("Inside A Paint Method");
}
}
class B extends A {
B() {
System.out.println("Inside B constructor");
}
B(int a) {
System.out.println("Inside B constructor : " + a);
}
... |
package net.foreach.data.pipeline.model;
/**
* Created by aitor on 2/7/17.
*/
public class PipelineParam {
private String key;
private String value;
public PipelineParam(String key, String value) {
this.key = key;
this.value = value;
}
@Override
public boolean equals(Objec... |
/*
* Copyright (c) 2013 DataTorrent, 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... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mage.client.util.gui;
import java.util.Arrays;
import javax.swing.JTable;
import javax.swing.JToggleButton;
import javax.swing... |
package io.ebean.event;
import io.ebean.Database;
import io.ebean.service.SpiContainer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import ... |
package com.company.MessageSendingClasses;
import com.company.User.User;
import java.io.Serializable;
public class ChosenChatRoomMessage implements Serializable {
static final long serialVersionUID = 190;
private String chatRoomID;
private User user;
public ChosenChatRoomMessage(String chatRoomID, U... |
package madgik.exareme.jdbc;
import java.net.URI;
import java.sql.*;
import java.util.Properties;
import java.util.logging.Logger;
/**
*
*/
public class ExaremeDriver implements Driver {
private static final Logger log = Logger.getLogger(ExaremeDriver.class.getName());
private static final String URL_PREFIX... |
/*
* Copyright (c) 2018 Karol Łukasiewicz
*
* @author Karol Łukasiewicz
* @date 15 Oct 2018
*
*/
package com.bootLogisticSystem.logic.raportGenerator.raportFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.bootLogisticSystem.excepti... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2010 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://... |
/*
* Copyright 2002-2017 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 ap... |
package com.gmail.trentech.simpletags.init;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import org.spongepowered.api.command.args.GenericArguments;
import org.spongepowered.api.command.spec.CommandSpec;
import org.spongepowered.api.command.spec.CommandSpec.Builder;
import org.spongepow... |
// Generated by delombok at Fri Jun 10 17:38:31 CEST 2016
package de.plushnikov.builder.generic.guava;
import com.google.common.collect.ImmutableSortedSet;
public class SingularGuavaSortedSet2<T> {
private ImmutableSortedSet rawTypes;
private ImmutableSortedSet<Integer> integers;
private ImmutableSortedSet<T> g... |
/*
* Copyright (c) 2021 Ford Motor Company
* 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 ... |
/*
* Copyright 2012-2022 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... |
/*
* Copyright 2014-2018 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 testes;
import static org.junit.Assert.*;
import java.io.FileNotFoundException;
import java.util.Arrays;
import java.util.List;
import org.junit.Before;
import modelo.Crossword;
import modelo.Letra;
import modelo.Tabuleiro;
import modelo.Estrategias.FabricaMostraListaDeLetrasParaJogador.TipoEstrategia;
imp... |
/*
* Copyright (C) 2015 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
/*
* Copyright (C) 2009 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 app... |
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.util.*;
import java.io.*;
import java.net.*;
/**
* An implementation of Resolver that can send queries to multiple servers,
* sending the queries multiple times if necessary.
* @see Resolver
*
* @author Brian Wel... |
package org.jruby.compiler.ir.operands;
import java.util.List;
import java.util.Map;
import org.jruby.compiler.ir.IRClass;
import org.jruby.compiler.ir.representations.InlinerInfo;
public class UnboxedValue extends Operand
{
final public Operand _value;
public UnboxedValue(Operand v) { _value = v; }
pu... |
/*
* Copyright 1999-2015 dangdang.com.
* <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/*******************************************************************************
* Copyright (C) 2017-2019 Kat Fung Tjew
*
* 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 restri... |
package com.fellas.bespoke.persistence.model;
import com.fellas.bespoke.converter.ActivityObjectConverter;
import lombok.*;
import javax.persistence.*;
@Entity
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "activities")
@Builder
public class ActivityWrapper extends DataBaseEntity {
@Id
... |
/*
* Copyright (C) 2014 Nils Strelow
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* $HeadURL$
* $Id$
*
* Copyright (c) 2007-2012 by Public Library of Science
* http://plos.org
* http://ambraproject.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
package net.corda.docs.java.tutorial.twoparty;
// DOCSTART 01
import co.paralleluniverse.fibers.Suspendable;
import net.corda.core.contracts.Command;
import net.corda.core.flows.*;
import net.corda.core.identity.Party;
import net.corda.core.transactions.SignedTransaction;
import net.corda.core.transactions.Transaction... |
/*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (th... |
/*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... |
package org.appfuse.service.impl;
import java.util.List;
import org.appfuse.dao.RoleAppDAO;
import org.appfuse.model.RoleApp;
import org.appfuse.service.RoleAppManager;
public class RoleAppManagerImpl extends BaseManager implements RoleAppManager {
private RoleAppDAO dao;
public RoleApp getRoleApp(String rolename) ... |
/*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.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
*
* Un... |
/**
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
*/
/*
* Copyright (C) 2019 Clover Network, 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
*
* https://www.apache.org... |
/**
* Copyright (c) 2007, Slick 2D
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
* conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and ... |
package app;
import java.util.ArrayList;
import java.util.Collections;
/*- Creer plusieurs instances de la classe et les stocker dans un objet "ArrayList"
- En se basant sur les elements cités au debut de ce document, trouver un moyen de trier les objets contenus dans cet objet "ArrayList".
- Afficher la liste une ... |
package com.kingyu.flappybird.util;
import java.awt.Color;
import java.awt.Font;
/**
* 常量类
*
* @author Kingyu 后续优化可写入数据库或文件中,便于修改
*/
public class Constant {
// 窗口尺寸
public static final int FRAME_WIDTH = 420;
public static final int FRAME_HEIGHT = 640;
// 游戏标题
public static final String GAME_TITLE = "Flapp... |
package de.evolvice.cars.service.impl;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import de.evolvice.cars.entity.Model;
import de... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package com.microsoft.gctoolkit.parser.unittests;
import com.microsoft.gctoolkit.parser.diary.TestLogFile;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.nio.file.Path;
import static org.junit.jupiter.api.Assertion... |
package edu.unc.ils.mrc.hive.sync.lcsh;
import java.net.URL;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPath... |
package com.mercadopago.android.px.internal.view;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.... |
package CSharp.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.openapi.editor.cells.EditorCell;
import jetbrains.mps.openapi.editor.EditorContext;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.nodeEditor.cells.EditorCell_Collection;
import jet... |
package com.yangkw.pin.api;
import com.yangkw.pin.domain.request.SaveTemplateIdRequest;
import com.yangkw.pin.infrastructure.cache.TemplateCache;
import com.yangkw.pin.service.CacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import... |
/*
* Copyright 2013 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 a... |
/*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
/*
* Copyright (C) 2012, Tomasz Zarna <Tomasz.Zarna@pl.ibm.com> and
* other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v1.0 which accompanies this
* distribution, is reproduced bel... |
/*
* 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 u... |
/*
* 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 LintCode;
// https://www.lintcode.com/en/problem/flatten-binary-tree-to-linked-list/
/**
* Flatten a binary tree to a fake "linked list" in pre-order traversal.
* Here we use the right pointer in TreeNode as the next pointer in ListNode.
*
* Notice
* Don't forget to mark the left child of each node to ... |
/**
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); ... |
package com.example.aespino.flixster;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
/**
* Created by aespino o... |
package com.cafrecode.views.circurlarpercent;
import android.graphics.Paint;
public enum StrokeCap {
/**
* The stroke ends with the path, and does not project beyond it.
*/
BUTT(Paint.Cap.BUTT),
/**
* The stroke projects out as a semicircle, with the center at the
* end of the path.
... |
package com.baomidou.mybatisplus.extension.plugins.handler;
import net.sf.jsqlparser.expression.Expression;
/**
* 数据权限处理器
*
* @author hubin
* @since 3.4.1 +
*/
public interface DataPermissionHandler {
/**
* 获取数据权限 SQL 片段
*
* @param where 待执行 SQL Where 条件表达式
* @param mappedSta... |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Copyright 2016 Fumiharu Kinoshita
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
package helpers;
/**
* Created by Pablo Canseco on 1/27/2018.
*/
public class Logger { // extend me for logging facilities.
public enum Level {
DEBUG("DEBUG"),
INFO("\u001B[36mINFO "),
WARN("\u001B[33mWARN "),
ERROR("\u001B[31mERROR"),
FATAL("\u001B[31;1mFATAL");
... |
package Ejercicios.Ejercicio7;
import java.awt.*;
import java.awt.event.*;
public class Culebrita extends Frame implements KeyListener{
/**
*
*/
private static final long serialVersionUID = 1L;
private Sprite sprite;
public Culebrita() {
initComponets();
}
public void ini... |
/*
* This file is part of examples, http://choco-solver.org/
*
* Copyright (c) 2020, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.examples.integer;
import org.chocosolver.pf4cs... |
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.fhir;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerGett... |
package com.patternmatch.ecs.textapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TextapiApplication {
public static void main(String[] args) {
SpringApplication.run(TextapiApplication.class, a... |
/*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
} |
package org.nd4j.examples.numpy_cheatsheat;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import org.nd4j.linalg.indexing.NDArrayIndex;
import org.nd4j.linalg.indexing.conditions.Conditions;
import java.io.IOException;
import java.util.Arrays;
import static org.nd4j.linalg.ops.tra... |
// Copyright 2017, 2018 Oracle Corporation and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
package oracle.kubernetes.operator;
import io.kubernetes.client.ApiException;
import io.kubernetes.client.models.V1ObjectMeta... |
/*
* -------------------------------------------------------------------
*
* Copyright (c) 2015 Dave Parfitt
*
* This file is provided 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
*
... |
/*
* Copyright 2002-2008 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 com.sgcharts.collections.sort;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class Heapsort implements Sort {
private static final Logger log = LoggerFactory.getLogger(Heapsort.class);
private Heapsort... |
package com.example.crazyball;
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
public void ... |
package fine.vmj.ml.demo;
import org.nd4j.linalg.dataset.api.iterator.DataSetIterator;
import org.deeplearning4j.datasets.iterator.impl.MnistDataSetIterator;
import org.deeplearning4j.eval.Evaluation;
import org.deeplearning4j.nn.api.OptimizationAlgorithm;
import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
i... |
package io.agora.education.rtmtoken;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.TreeMap;
import static io.agora.education.rtmtoken.Utils.crc32;
public class AccessToken {
public enum Privileges {
kJoinChannel(1),
kPublishAudioStream(2),
kPublishVid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.