text
stringlengths
7
995k
/* * Copyright (C) 2011 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 cn.shuaijunlan.configserver; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class ConfigServerApplicationTests { @Test ...
package com.pyy.blog; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class BlogApplicationTests { @Test void contextLoads() { } }
package com.github.sundeepk.compactcalendarview; import com.github.sundeepk.compactcalendarview.comparators.EventComparator; import com.github.sundeepk.compactcalendarview.domain.Event; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; import java.util.H...
package edu.neu.coe.info6205.union_find; import edu.neu.coe.info6205.util.Benchmark; import edu.neu.coe.info6205.util.Benchmark_Timer; public class Benchmark_UF { public static void main(String[] args) { int nRuns = 10000; int sites = 625; Benchmark<Boolean> bm_doPC = new Benchmark_Timer<...
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
/* * Copyright 2017 Austin Lehman * * 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 2000-2021 Nokia // // Licensed under the Apache License 2.0 // SPDX-License-Identifier: Apache-2.0 // package com.alcatel.as.http2.headers; public enum Header { METHOD (62, ":method", true, true), PATH (63, ":path", true, true), SCHEME (64, ":scheme", true, true), STATUS (65, ":status", t...
package nl.uscki.appcki.android.services; import android.app.IntentService; import android.content.Context; import android.content.Intent; import androidx.annotation.NonNull; import androidx.core.app.JobIntentService; import android.util.Log; import nl.uscki.appcki.android.helpers.calendar.CalendarServiceHelper; /*...
package org.wiredwidgets.cow.ac.client.utils; /** * A simple container class for two strings: one as a URL to a resource * and another as a string identifier for the resource. * @author ryanmiller */ public class StringUrl { private String text; private String url; /** * Create a StringUrl w...
/* ==================================================================== 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 Y...
import java.util.Scanner; public class WhileLoop1 { public static void main(String[]args) { System.out.println("How many repitions?"); int numberOfTimes = 0; int count = 0; int pin = 1994; int userPin = 0; Scanner myScanner = new Scanner(System.in); numberOfTimes = myScanner.nextInt(); while (count <= numb...
/* * 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 opensource.projectreactor; import org.reactivestreams.Subscription; import reactor.core.publisher.BaseSubscriber; import reactor.core.publisher.SignalType; import java.util.concurrent.atomic.AtomicInteger; public class ReactorSampleSubscriber<T> extends BaseSubscriber<T> { // 订阅者的id private final St...
import java.util.List; import java.util.Random; /** * A simple model of a rabbit. * Rabbits age, move, breed, and die. * * @author David J. Barnes and Michael Kolling * @version 2008.03.30 */ public class Rabbit extends Animal { // Characteristics shared by all rabbits (static fields). // The age at wh...
/* * Copyright (C) 2015 Square, 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...
/* * Copyright (c) 2021 Kokhaviel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
package io.github.jhipster.registry.config; import javax.annotation.PostConstruct; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import ch.qos.logback.classic...
package io.eventuate.examples.tram.ordersandcustomers.orderhistoryservice.service; import io.eventuate.examples.tram.ordersandcustomers.commondomain.OrderApprovedEvent; import io.eventuate.examples.tram.ordersandcustomers.commondomain.OrderCreatedEvent; import io.eventuate.examples.tram.ordersandcustomers.commondomain...
package ca.ubc.ece.resess.slicer.dynamic.slicer4j; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import java.util.function.Function; import ca.ubc.ece.resess.slicer.dynamic.slicer4j.datadependence.DynamicHeapAnalysis; import ca.ubc.ece.resess.slicer.dynamic.core....
package com.jpeng.demo; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Looper; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.Toast; import java.io.IOException; import okhttp3.Call; import okhttp3.Callb...
/* * 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 ...
/** * A graph consisting of arcs running from right to left (this * is used to draw the trace structure, using the fact that any * *-autonomous category has a trace. * @author Alan Jeffrey * @version v1.0 1998/06/11 */ public class Graph0IdPerp extends Graph0 { /** * Create a new inverted identity graph. ...
package seedu.address.logic.commands; import static java.util.Objects.requireNonNull; import static seedu.address.logic.parser.CliSyntax.PREFIX_GROUP_NAME; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.model.Model; import seedu.address.model.group.Group; /** * Views student c...
package nc.unc.application.data.enums; public enum Civilite { MONSIEUR, MADAME, NON_BINAIRE }
package imagegrid.rendevezous.org.imagegrid.model; import android.os.Parcelable; public class ImageElement { public Integer id; public String url; public String title; public Integer width; public Integer height; public Integer getId() { return this.id; } public String getUr...
// This file is part of CPAchecker, // a tool for configurable software verification: // https://cpachecker.sosy-lab.org // // SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> // // SPDX-License-Identifier: Apache-2.0 package org.sosy_lab.cpachecker.cpa.smg.evaluator; import com.google.common.b...
package dio.innovation.accessPointAPI.controller; import dio.innovation.accessPointAPI.dto.AccessLevelDTO; import dio.innovation.accessPointAPI.service.AccessLevelService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import org.springframework.be...
package lapr2.ClientServicesProvider.aplicationagpsd.Controllers; import lapr2.ClientServicesProvider.aplicationagpsd.Records.ServiceRecord; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.Parent; i...
/* * 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.rxjava2.android.samples.ui.operators; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.rxjava2.android.samples.R; import com.rxjava2.android.samples.utils.A...
/* * Copyright (c) 2002-2021 Gargoyle Software 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/licenses/LICENSE-2.0 * * Unless required by applicable law...
/** * 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...
/* * Created on Oct 14, 2004 */ package com.foc.desc.field; import java.awt.Component; import java.sql.Types; import com.fab.model.table.FieldDefinition; import com.foc.db.DBManager; import com.foc.desc.FocDesc; import com.foc.desc.FocObject; import com.foc.gui.table.cellControler.AbstractCellControler; import com....
/* Copyright 2010,2011 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
/* * Copyright 2006-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package ru.job4j.array; /** * Class FindLoopMod осуществляет поиск * заданного элемента в массиве * * @author Evgeniy Kapaev * @since 26.09.19 * @version 1.0 */ public class FindLoopMod { /** * indexOf ищет по элементам массива, начиная * с start и заканчивая finish. * * @param data - м...
package com.atguigu.gulimall.ware.service; import com.baomidou.mybatisplus.extension.service.IService; import com.atguigu.common.utils.PageUtils; import com.atguigu.gulimall.ware.entity.WareOrderTaskDetailEntity; import java.util.Map; /** * 库存工作单 * * @author madokast * @email 578562554@qq.com * @date 2020-05-05...
package org.intermine.web.struts; /* * Copyright (C) 2002-2020 FlyMine * * This code may be freely distributed and modified under the * terms of the GNU Lesser General Public Licence. This should * be distributed with the code. See the LICENSE file for more * information or http://www.gnu.org/copyleft/lesser.h...
package helpers.common; /** * Created by adrian on 25.08.16. */ public class CommonEmailValidatorHelper { public boolean isValidEmxailAddress(String email) { String ePattern = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,})...
package com.ripplargames.meshio.meshformats.ply; public class PlyFormatBinaryBigEndian_1_0 extends PlyFormatBinary { public PlyFormatBinaryBigEndian_1_0() { super(true, "1.0"); } }
package net.onrc.onos.core.newintent; import net.onrc.onos.api.flowmanager.FlowId; import net.onrc.onos.api.flowmanager.FlowIdGenerator; import net.onrc.onos.api.newintent.IntentId; import net.onrc.onos.api.newintent.IntentIdGenerator; import net.onrc.onos.core.topology.BaseTopology; import net.onrc.onos.core.topology...
/** * * Class EmptyFactory.java * * Generated by KMFStudio at 09 March 2004 13:29:38 * Visit http://www.cs.ukc.ac.uk/kmf * */ package ws.bpel; public interface EmptyFactory extends ws.WsFactory { /** Default builder */ public Object build(); /** Specialized builder */ public Object build(String name...
/** * Copyright (C) 2013 all@code-story.net * * 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...
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent 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 ...
package com.ixyf.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ixyf.domain.User; import com.baomidou.mybatisplus.extension.service.IService; import com.ixyf.dto.UserDto; import com.ixyf.form.*; import java.util.List; import java.util.Map; public interface UserService extends ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.extractor; import org.elasticsearch.search...
/* * Copyright 1999-2011 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Copyright (c) 2016-2018 LabKey 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 br.com.senior.platform.workflow.pojos; import java.util.List; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.NonNull; import lombok.Setter; import lombok.AllArgsConstructor; import lombok.Builder; /** * Objeto de entrada da action cancelProcessInstance. */ @Getter @Setter @Builder @No...
package org.smartregister.domain.db; import java.util.ArrayList; import java.util.List; public class Obs { private String fieldType; private String fieldDataType; private String fieldCode; private String parentCode; private List<Object> values; private String comments; private Strin...
// Copyright 2019 The Bazel Authors. 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 appl...
/* * JBoss, Home of Professional Open Source. * * Copyright 2020 Red Hat, Inc., and individual 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 Li...
package com.didichuxing.datachannel.agent.common.metrics.lib; import com.didichuxing.datachannel.agent.common.metrics.Metric; import com.didichuxing.datachannel.agent.common.metrics.MetricsVisitor; /** * * * @author liujianhui * @version:2015年12月3日 下午5:20:35 */ public class MetricReference<T> extends Metric { ...
/* * Copyright 2004 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 kotlin.p004io; import java.io.File; import java.io.IOException; import java.util.ArrayDeque; import java.util.Iterator; import kotlin.Metadata; import kotlin.NoWhenBranchMatchedException; import kotlin.Unit; import kotlin._Assertions; import kotlin.collections.AbstractIterator; import kotlin.jvm.functions.Func...
/* $Id: JobQueue.java 988245 2010-08-23 18:39:35Z kwright $ */ /** * 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 ...
package pisi.unitedmeows.violentcat.holders; public class Invite { protected String code; protected int type; protected String expiresAt; protected int uses; protected int maxUses; protected int maxAge; protected boolean temporary; protected String createdAt; /*channel*/ pro...
package com.ruoyi.web.controller.system; import java.io.File; import java.io.IOException; import java.util.List; import com.alibaba.fastjson.JSONObject; import com.ruoyi.common.config.RuoYiConfig; import com.ruoyi.common.core.domain.entity.SysStudent; import com.ruoyi.common.core.domain.model.LoginUser; import com.ru...
package org.checkerframework.dataflow.cfg.node; import com.sun.source.tree.BinaryTree; import com.sun.source.tree.Tree.Kind; import java.util.Objects; import org.checkerframework.checker.nullness.qual.Nullable; /** * A node for the integer remainder: * * <pre> * <em>expression</em> % <em>expression</em> * </pr...
/* * 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 2012-2017 Brian Campbell * * 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 ag...
/* * Copyright 2014-2019 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...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/iot/v1/device_manager.proto package com.google.cloud.iot.v1; public interface GetDeviceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.iot.v1.GetDeviceRequest) com.google.protobuf.Messag...
// ============================================================================ // // Copyright (C) 2006-2021 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 receiv...
// Leave package statement as defined by your project // as first line of this file and replace all the rest import android.os.Bundle; import android.widget.Button; import com.aldebaran.qi.sdk.QiContext; import com.aldebaran.qi.sdk.QiSDK; import com.aldebaran.qi.sdk.RobotLifecycleCallbacks; import com.aldebaran.qi.sd...
package com.example.administrator.myaudio; import android.Manifest; import android.content.pm.PackageManager; import android.media.MediaPlayer; import android.os.Environment; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import...
package com.github.florent37.depth.lib.tween; import android.os.SystemClock; /** * Created by danielzeller on 26.03.14. */ public class FrameRateCounter { private static long mLastTime; public static float timeStep() { final long time = SystemClock.uptimeMillis(); final long timeDelta = tim...
package com.evolveum.midpoint.ninja.action; import com.evolveum.midpoint.schema.result.OperationResult; import com.evolveum.midpoint.ninja.impl.RestService; import com.evolveum.midpoint.ninja.opts.TestResourceOptions; /** * Created by Viliam Repan (lazyman). */ public class TestResourceRestAction extends RestAction...
package wfsnrnet; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Scanner; import wfsnrnet.comm.mqtt.MQTTConfiguration; import wfsnrnet.comm.mqtt.MQTTModule; import wfsnrnet....
package com.tngtech.archunit.core.importer.testexamples.complexexternal; public class LowerMiddleClass extends ParentClass { public String someField; public LowerMiddleClass() { } @Override public void overrideMe() { } }
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file is autogenerated by // java_cpp_enum.py // From // ../../components/autofill/core/browser/credit_card.h package org.chromium.chrome....
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.mediaservices.v2018_06_01_preview.implementation;...
package net.mingsoft.cms.biz; import net.mingsoft.base.biz.IBaseBiz; import net.mingsoft.basic.entity.AppEntity; import net.mingsoft.cms.entity.AppEntityOverride; public interface IAppOverrideBiz extends IBaseBiz<AppEntityOverride> { /** * 获取App信息 * @return */ public AppEntityOverride getAppInf...
package com.github.rockysoft.web; import java.util.List; import org.apache.commons.lang.StringUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; impor...
package com.lanshiqin.algorithm.leetcode.a34; import java.util.ArrayList; import java.util.List; /** * 34. 在排序数组中查找元素的第一个和最后一个位置 * <p> * 给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。 * <p> * 如果数组中不存在目标值 target,返回 [-1, -1]。 * <p> * 进阶: * <p> * 你可以设计并实现时间复杂度为 O(log n) 的算法解决此问题吗? * <p> * 示例 1: * ...
/* * Copyright 2013 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 applicab...
package com.dolphin.renmaicircle.activity.personalcenter; import android.content.Intent; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.EditText; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget...
import java.util.ArrayList; public class Calculator extends SciCalc{ /** * creates a calculator instance */ public Calculator(){ super(); } /** * sets @amount to ans field */ public void toAns(double amount){ super.toAns(amount); } /** * accesses ans field *...
//,temp,DeleteVPCCmd.java,73,90,temp,CreateVpnConnectionCmd.java,150,165 //,3 public class xxx { @Override public void execute() { try { Site2SiteVpnConnection result = _s2sVpnService.startVpnConnection(getEntityId()); if (result != null) { Site2SiteVpnConnectionR...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__short_console_readLine_multiply_54e.java Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-54e.tmpl.java */ /* * @description * CWE: 191 Integer Underflow * BadSource: console_readLine Read data from the cons...
// Template Source: BaseMethodBody.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ---------------------------------------...
/* * Copyright 2014-2019 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...
/* 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.google.android.gms; public final class R { public static final class attr { /** The size of the ad. It must ...
package com.example.android.examen_ii_anthonymarin_kelinsilva; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.MediaScannerConnection; import android.net.Uri; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import an...
package com.coffeeandcookies.cursoandroidutn; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; public class ConnectionDetector { private Context _context; public ConnectionDetector(Context context) { this._context = context; } /** * Checking for all po...
/** * Copyright (C) 2017 Red Hat, 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...
package com.ot6.transacao.domains.cards.dtos; public class CardListResponse { private final String id; private final String email; public CardListResponse(String id, String email) { this.id = id; this.email = email; } public String getId() { return id; } public S...
/* * Copyright (c) Fundacion Jala. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ package org.fundacionjala.oblivion.navigator; import org.fundacionjala.oblivion.navigator.ParserMutableTreeNode; import org.fundacionjala.oblivion.navigato...
package com.ctbri.wxcc; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.HashMap; import java.util.Random; import javax.crypto.Mac; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import android.os.Handler; import android.util.Base64; import com.wookii...
package test; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class deleteTest { public static void main(String[] args) throws ClassNotFoundException, SQLException{ Connection conn = null; Statement stmt = null; ...
/* * 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 com.isalnikov.config.hendler; import org.springframework.beans.BeansException; import org.springframework.beans.factory.config...
import org.junit.Test; import static org.junit.Assert.assertTrue; public class SlowFlakyTest41 { @Test public void testFlaky1() { assertTrue(new Stupid1OutOf10().isLargerThan(2)); } @Test public void testFlaky2() { assertTrue(new Stupid1OutOf10().isLargerThan(1)); } @Test ...
/* * JBoss, Home of Professional Open Source * * 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/lic...
/** * 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 m...
/* * 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 ch.heigvd.res.lab01.impl.filters; import java.io.FilterWriter; import java.io.IOException; import java.io.Writer; /** * * @author Olivier Liechti */ public class UpperCaseFilterWriter extends FilterWriter { public UpperCaseFilterWriter(Writer wrappedWriter) { super(wrappedWriter); } @Override...
package com.jolky.magicasakurax.utils; import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputConnectionWrapper; import androidx.annotation.RestrictTo; import static androidx.annotation.RestrictTo.Scope.LIBRARY; /** * just used for fix <pre>java.lang.IndexOutOfBoundsException</pre> ...
/* * Copyright (c) 2020 nacamar GmbH - Ybrid®, a Hybrid Dynamic Live Audio Technology * * 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 ...