text stringlengths 7 1.01M |
|---|
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8;
import com.android.tools.r8.cf.code.CfConstNull;
import com.android.tools.r... |
/*******************************************************************************
* 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 de.mpg.mpdl.inge.inge_validation.validator.OLDyearbook;
import com.baidu.unbiz.fluentvalidator.ValidationError;
import com.baidu.unbiz.fluentvalidator.Validator;
import com.baidu.unbiz.fluentvalidator.ValidatorContext;
import com.baidu.unbiz.fluentvalidator.ValidatorHandler;
import de.mpg.mpdl.inge.inge_valid... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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.saas.common.json;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.fasterxml.jackson.databind.ObjectMapper;
impor... |
class Solution {
public int[] sortedSquares(int[] nums) {
//Arrays.sort(nums);
for(int i=0; i<nums.length; i++){
nums[i] = (int)Math.pow(nums[i], 2);
}
Arrays.sort(nums);
return nums;
}
}
|
package com.grupo2.hoycomo;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class MenuCateg {
private Integer cId;
private String cName;
private Integer cOrder;
private List<Dish> cList;
public MenuCateg(Integer cId, String cNam... |
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
/*
* Copyright (c) 1995, 2006, 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... |
package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.security.testtest.query response.
*
* @author auto create
* @since 1.0, 2019-09-17 17:05:34
*/
public class AlipaySecurityTesttestQueryResponse extends AlipayResponse {
private static final long seria... |
package hotelmania.ontology;
import jade.content.*;
import jade.util.leap.*;
import jade.core.*;
/**
* Protege name: NotificationEndSimulation
* @author ontology bean generator
* @version 2014/05/23, 22:29:18
*/
public class NotificationEndSimulation implements Predicate {
}
|
package com.x.okr.assemble.control.jaxrs.okrconfigsercretary.exception;
import com.x.base.core.exception.PromptException;
public class UserNoLoginException extends PromptException {
private static final long serialVersionUID = 1859164370743532895L;
public UserNoLoginException( String userName ) {
super("用户未正常登录... |
/*
* Copyright (C) 2019 Machine Learning and Data Analytics Lab, Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU).
* <p>
* This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you ... |
/*
* 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 applica... |
package net.runelite.deob.deobfuscators.transformers;
import java.util.Comparator;
import java.util.HashMap;
import java.util.ListIterator;
import java.util.Map;
import net.runelite.asm.ClassFile;
import net.runelite.asm.ClassGroup;
import net.runelite.asm.Field;
import net.runelite.asm.Method;
import net.runelite.asm... |
public class TableDataBoolean implements TableData {
private boolean data;
public TableDataBoolean() {
data = rnd.nextBoolean();
}
public String toString() {
return Boolean.toString(data);
}
}
|
package com.cg.devonwithswagger.general.dataaccess.base.dao;
import com.cg.devonwithswagger.general.dataaccess.api.BinaryObjectEntity;
import com.cg.devonwithswagger.general.dataaccess.api.dao.BinaryObjectDao;
import javax.inject.Named;
/**
* Implementation of {@link BinaryObjectDao}.
*/
@Named
public class Binary... |
package com.google.api.ads.adwords.jaxws.v201506.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for mutateResponse element declaration.
*
* <p>The... |
/*
* Copyright (c) 2009-2019, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribution... |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... |
/*
* MIT License
*
* Copyright (c) 2021 Gael Rial Costas
*
* 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,... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.wpilibj2.command.C... |
package mage.abilities.common;
import mage.MageObject;
import mage.MageObjectReference;
import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.OneShotEffect;
import mage.cards.Card;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.game.Game;
impor... |
/*
* 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 ru.job4j.calculator;
/**
* BaseAction.
* Basic implementation of UserAction for a menu item.
* @author Ivan Belyaev
* @since 25.12.2019
* @version 1.0
*/
public abstract class BaseAction implements UserAction {
/** The name of the menu item. */
private String name;
/** The number of the menu ... |
package br.ortodontech;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamRead... |
/*
Copyright 2010 Selenium committers
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, sof... |
/*
* Copyright (c) 2009-2019, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribution... |
/*
* Copyright 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 applica... |
/*
* Copyright ConsenSys Software Inc., 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 agre... |
package io.example.friend;
/**
* A projection of the {@link Friend} domain object that is owned by the
* friend service.
*
* @author Avinash Erupaka
*/
public class Friend {
private Long id;
private Long userId;
private Long friendId;
public Friend() {
}
public Friend(Long userId, Long ... |
package ar.com.syswork.sysmobile.pconsultaclientes;
import android.os.Bundle;
import android.content.Intent;
import android.content.res.Configuration;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ContextMenu.ContextMenuInfo;
im... |
//
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.04... |
package com.atguigu.gmall.wms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 库存工作单
... |
/*
* Simple program to test the SL900A Set Calibration Value function in the Mercury API
*/
package samples;
// Import the API
import com.thingmagic.*;
public class SL900ASetCalibrationData
{
static void usage()
{
System.out.printf("Usage: Please provide valid arguments, such as:\n"
+ "... |
package com.manuelmaly.hn;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
im... |
package a4;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
@SuppressWarnings("serial")
public class AddTimeTicketCommand extends AbstractAction{
private GameWorld gw;
public AddTimeTicketCommand(){
super("k");
}
public void setTarget(GameWorld gw) {
this.gw = gw;
... |
package com.hansuo.rest.service.impl;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.hansuo.common.pojo.JsonUtils;
i... |
package info.smart_tools.smartactors.core.proof_of_assumption;
import info.smart_tools.smartactors.base.exception.invalid_argument_exception.InvalidArgumentException;
import info.smart_tools.smartactors.base.interfaces.istrategy.IStrategy;
import info.smart_tools.smartactors.base.interfaces.istrategy.exception.Strateg... |
/*
* Copyright 2016-2021 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) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... |
package com.bingo.common.basic.utils;
import java.lang.management.ManagementFactory;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.lang3.time.DateFormatUtils;
/**
* 时间工具类
*
* @author bingo
*/
public class DateUtils extends org.apache.commons.... |
package com.parkinfo.web.parkCulture;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.vod.model.v20170321.CreateUploadVideoResponse;
import com.aliyuncs.vod.model.v20170321.GetPlayInfoResponse;
import com.aliyuncs.vod.model.v20170321.RefreshUploadVideoResponse;
import com.parkinfo.common.Result;
im... |
package com.example.jdagnogo.alertlebonsoinappart.models;
import java.util.ArrayList;
import java.util.List;
public class AppartDetails extends Appart {
private List<String> imgsUrl;
private String phone;
private String nbRoom;
private String surface;
public List<String> getImgsUrl() {
re... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 账户信息
*
* @author auto create
* @since 1.0, 2018-03-07 11:49:38
*/
public class FaceSearchAnonymousUserInfo extends AlipayObject {
private static final long serialVersionUID = 7... |
package uk.ac.ebi.fg.annotare.prototype.datagrid.client;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.cell.client.SelectionCell;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style;
import com.google.gwt.uibinder.client.Ui... |
copyright ibm corporation rights reserved program accompanying materials terms eclipse license accompanies distribution http eclipse org legal epl html contributors ibm corporation initial api implementation org eclipse jdt internal text java org eclipse swt graphics point org eclipse swt widgets shell org eclipse jfac... |
// TODO: move to common
package BinarySearchTree;
public class Node<T extends Comparable<T>> {
T Data;
Node<T> Left;
Node<T> Right;
Node(T data) {
Data = data;
Left = Right = null;
}
public boolean eq(T data) {
return Data.compareTo(data) == 0;
}
public boolea... |
package com.rbkmoney.payouter.dao;
import com.rbkmoney.payouter.domain.tables.pojos.PayoutEvent;
import com.rbkmoney.payouter.exception.DaoException;
import java.util.List;
import java.util.Optional;
public interface PayoutEventDao extends GenericDao {
Long getLastEventId() throws DaoException;
PayoutEvent... |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQServiceFeesInitiateInputModelServiceFeesInstanceRecord;
import javax.validation... |
/**
* Generated with Acceleo
*/
package org.wso2.developerstudio.eclipse.gmf.esb.parts;
// Start of user code for imports
// End of user code
/**
*
*
*/
public interface SwitchCaseContainerPropertiesEditionPart {
/**
* Returns the internationalized title text.
*
* @return the internationalized t... |
package com.mzr.tort.core.extractor;
import com.mzr.tort.core.extractor.param.AliasParam;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
*/
public class AliasContext {
//name -> path
private Map<String, String> aliases = new HashMap<>();
... |
package com.namehillsoftware.handoff.promises.GivenAPromiseThatResolves.AndContinuingWithResponseAndRejection;
import com.namehillsoftware.handoff.promises.Promise;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Created by david on 10/17/16.
*/
public class WhenAnotherReturningPromis... |
package org.recap.controller;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.recap.BaseTestCaseUT;
import org.recap.ScsbConstants;
import org.recap.model.jpa.PermissionEntity;
import org.recap.model.jpa.RoleEntity;
import org.recap.model.search.Ro... |
package br.com.cmabreu.zodiac.federation.classes;
import java.util.ArrayList;
import java.util.List;
import br.com.cmabreu.zodiac.federation.EncoderDecoder;
import br.com.cmabreu.zodiac.federation.RTIAmbassadorProvider;
import br.com.cmabreu.zodiac.federation.objects.CoreObject;
import br.com.cmabreu.zodiac.s... |
/*
* Copyright ConsenSys AG.
*
* 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... |
package com.zhanbq.highconcurrency;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HighConcurrencyApplication {
public static void main(String[] args) {
SpringApplication.run(HighConcurrencyApplication.cla... |
package org.jcip;
import java.util.*;
/**
* Puzzle
* <p/>
* Abstraction for puzzles like the 'sliding blocks puzzle'
*
* @author Brian Goetz and Tim Peierls
*/
public interface Puzzle <P, M> {
P initialPosition();
boolean isGoal(P position);
Set<M> legalMoves(P position);
P move(P position, M... |
package com.wanderingwyatt.arkham.modules;
import dagger.Module;
import dagger.Provides;
import java.util.Set;
import javax.inject.Named;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
@Module
public class TestDatabaseImplModule {
@Provides
SessionFactory createTestEntityManagerFactor(... |
package com.ukefu.webim.web.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGene... |
/**
* Copyright 2011-2019 Asakusa Framework Team.
*
* 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... |
/*
* 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 2014-2019 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package com.appgrouplab.evaluometro.appmovil;
import android.content.Intent;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Gravity;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.... |
import java.util.*;
public class SeparateChainingHashST<Key, Value> {
private static final int INIT_CAP = 4;
private int N;
private int M;
private SequentialSearchST<Key, Value>[] st;
public SeparateChainingHashST() {
this(INIT_CAP);
}
public SeparateChainingHashST(int M) {
... |
/*
* 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... |
package com.xiaolyuh.service.impl;
import com.alibaba.csp.sentinel.Entry;
import com.alibaba.csp.sentinel.EntryType;
import com.alibaba.csp.sentinel.SphU;
import com.alibaba.csp.sentinel.Tracer;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
imp... |
//
// (C) Copyright 2015 Martin E. Nordberg III
// Apache 2.0 License
//
package org.steamflake.templates.domain.model.impl.directives.variables;
import org.steamflake.core.domain.base.model.api.utilities.IFileOrigin;
import org.steamflake.templates.domain.model.api.directives.variables.ISteamflakeTmVariableDirective... |
package org.mapdb;
import org.junit.Test;
import java.util.concurrent.ConcurrentNavigableMap;
import java.util.concurrent.ConcurrentSkipListMap;
import static org.junit.Assert.*;
import static org.mapdb.Fun.*;
@SuppressWarnings({ "unchecked", "rawtypes" })
public class FunTest {
public int compare(int[] o1, i... |
public class TestCircleWithException {
public static void main(String[] args) {
try {
CircleWithException c1 = new CircleWithException(5);
CircleWithException c2 = new CircleWithException(-5);
CircleWithException c3 = new CircleWithException(0);
}
catch (IllegalArgumentException e... |
package com.github.jasminb.jsonapi;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.jasminb.jsonapi.models.errors.Error;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* JSON API Document wrapper.
*
* @param <T> the type parameter
* @author jbegic
*/
public cl... |
/*
* Copyright (C) 2021. Mathias Jakobsen <m.jakobsen.1@research.gla.ac.uk>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package org.tropicode.checker.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang... |
/*
* Copyright 2016 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
package de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;
import javax.validation.constraints.Size;
import java.util.Objects;
/**
* This is a... |
package daniloramirezcr.util;
/**
* Created by danilo on 14/12/2016.
*/
import java.net.*; // This is for the network function
import java.io.*; // This is for the option to read the buffer
import java.util.HashMap;
import java.util.*;
/*
* This class is suppose to manage all request to other urls from any JAVA... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.0... |
package com.atguigu.gulimall.product.dao;
import com.atguigu.gulimall.product.entity.CommentReplayEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品评价回复关系
*
* @author zhangzhi
* @email zhangzhi@gmail.com
* @date 2020-06-14 08:39:59
*/
@Mapper
p... |
package com.sathy.evlo.fragment;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Color;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import andro... |
// ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... |
/*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.model.table.keywords.names;
import java.util.List;
import com.google.common.base.Joiner;
import com.google.common.base.Objects;
import com.goog... |
/*
* Copyright 2018 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 com.bascker.general.io.aio;
import com.bascker.bsutil.CharsetUtils;
import com.bascker.bsutil.Sample;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.channels.Asynchr... |
package com.freitech.kotetsu.controllers.commons;
public class SpringControllerBase<T> {
protected final String DISP = "disp";
protected final String INDEX = "index";
protected final String INPUT = "input";
protected final String CONFIRM = "confirm";
protected final String COMPLETE = "complete";
protected final ... |
package sqlite.feature.pkstring.case1;
import com.abubusoft.kripton.android.annotation.BindDataSource;
@BindDataSource(daoSet={DaoZArtist.class, DaoSong.class, DaoAlbum.class}, fileName="pk_string_case1.db", schema=true)
public interface AppDataSource {
}
|
import java.util.*;
import java.lang.*;
public class DigitExt {
public static void main(String[] args)
{
Scanner s = new Scanner(System.in);
int n=s.nextInt();
int n1=n;
int sum=0;
while(n=0)
{
int rem=n%10;
sum+=Math.pow(rem,3);
... |
/*
* Copyright (c) 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/license... |
copyright ibm corporation rights reserved program accompanying materials terms eclipse license accompanies distribution http eclipse org legal epl html contributors ibm corporation initial api implementation org eclipse pde api tools internal search org eclipse pde api tools internal provisional builder i reference ire... |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright 2015-2017 Spotify AB
* Copyright 2016-2018 The Last Pickle 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
*
* ... |
package cetus.hir;
import java.io.PrintWriter;
import java.lang.reflect.Method;
/** Represents a escape character. */
public class EscapeLiteral extends Literal {
private static Method class_print_method;
static {
Class<?>[] params = new Class<?>[2];
try {
params[0] = EscapeLiter... |
/*
* Copyright 2021 ThoughtWorks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
/*
* Copyright 2015-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 "lice... |
/*
* Copyright (c) 2002, 2003, 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 no.dcat.themes.builders;
import no.dcat.shared.DataTheme;
import no.dcat.shared.testcategories.UnitTest;
import no.dcat.themes.database.TDBInferenceService;
import no.dcat.themes.service.ThemesService;
import no.dcat.themes.database.TDBConnection;
import no.dcat.themes.database.TDBService;
import org.junit.Rul... |
package cn.lite.flow.common.model.query;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* 基础的查询模型
*/
@Data
@ToString
public class BaseQM implements Serializable {
private Long id; //id
private List<Long> ids; ... |
package com.bitmesra.bitotsav.features.flagships;
import android.content.Context;
import com.bitmesra.bitotsav.database.DataManager;
import com.bitmesra.bitotsav.database.models.flagship.FlagshipItem;
import java.util.List;
/**
* Created by Batdroid on 5/2/17 for Bitotsav.
*/
public class FlagshipPresenter imple... |
package com.example.lenovo.note.db;
import org.litepal.crud.DataSupport;
/**
* Created by Lenovo on 2018/8/20.
*/
public class Folder extends DataSupport{
private int id;
private String folderName;
private boolean isRemoved=false;
public int getId() {
return id;
}
public String ge... |
package com.virjar.vscrawler.core.selector.string.function.commonlang3;
import com.virjar.vscrawler.core.selector.string.function.SSFunction;
import org.apache.commons.lang3.StringUtils;
/**
* Created by virjar on 17/7/8.
*/
public class Trim extends SSFunction {
@Override
protected String handleSingleStr(... |
package net.seannos.example.multitenant.integration;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import java.io.File;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.FlushModeType;
import javax.per... |
package compiler.ast;
import java.util.stream.*;
import org.antlr.v4.runtime.ParserRuleContext;
public class IdentifierNode extends ExpressionNode {
public Identifier value;
public IdentifierNode(ParserRuleContext source, Identifier value) {
super(source);
this.value = value;
}
public... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.