text stringlengths 7 995k |
|---|
package openlineage.spark.agent.lifecycle;
import org.apache.spark.scheduler.ActiveJob;
import org.apache.spark.scheduler.SparkListenerJobEnd;
import org.apache.spark.scheduler.SparkListenerJobStart;
public interface ExecutionContext {
/**
* Pattern used to match a variety of patterns in job names, including ca... |
package net.haesleinhuepf.clij.macro.documentation;
import net.haesleinhuepf.clij.macro.CLIJMacroPlugin;
import net.haesleinhuepf.clij.utilities.CLIJUtilities;
import net.haesleinhuepf.clij2.utilities.HasAuthor;
import net.haesleinhuepf.clij2.utilities.HasLicense;
public class HTMLDocumentationTemplate {
private... |
package org.softeg.slartus.forpdaplus.db;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import org.softeg.slartus.forpdaapi.Forum;
import org.softeg.slartus.forpdaapi.ListInfo;
import org.softeg.slartus.forpdaplus.App;
import org.softeg.slartus.fo... |
package zephyr.concurrent.thread.aqs;
import java.io.Serializable;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.AbstractQueuedSynchronizer;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
/**
* 基于AQS实现的不可重入的独占锁
*/
public class NonReentrantLock implemen... |
/*******************************************************************************
* Copyright 2016 Gabriela D. A. Guardia
*
* 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... |
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
/**
* The {@code BWZip} class provides static methods for compressing
* and expanding a file using the Burrows-Wheeler transform combined
* with... |
package com.koltunm.skanner.machinelearning;
import com.koltunm.skanner.util.Log;
import weka.classifiers.Classifier;
import weka.classifiers.Evaluation;
import weka.classifiers.evaluation.Prediction;
import weka.classifiers.functions.LinearRegression;
import weka.core.Instances;
import java.util.List;
public class ... |
// Copyright 2013 Julian Hartline <julianh2o@gmail.com>
//
// This code is available under the MIT license.
// See the LICENSE file for details.
package controllers;
import java.nio.file.Path;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import play.mvc.Util;
import play.mvc.With;
import se... |
/*
* 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.tutorialspoint.springtutorial.helloworld;
/**
*
* @author davidchang
*/
public class HelloWorld {
private String me... |
/*
* Copyright 2014 - 2021 Blazebit.
*
* 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 cn.originx.refine;
import cn.originx.cv.OxCv;
import cn.originx.cv.em.TypeLog;
import io.vertx.core.json.JsonObject;
import io.vertx.tp.atom.modeling.builtin.DataAtom;
import io.vertx.up.commune.config.Identity;
import io.vertx.up.commune.element.JSix;
import io.vertx.up.eon.KName;
import io.vertx.up.eon.Strin... |
package me.justapie.cakedj.command.commands.music;
import me.justapie.cakedj.Constants;
import me.justapie.cakedj.audio.PlayerManager;
import me.justapie.cakedj.audio.TrackScheduler;
import me.justapie.cakedj.command.ICommand;
import me.justapie.cakedj.utils.EmbedUtils;
import net.dv8tion.jda.api.events.interaction.Sl... |
package com.leiran.security.filter;
import com.leiran.common.common.Assert;
import com.leiran.common.utils.JSONUtils;
import com.leiran.security.log.LoginLogService;
import com.leiran.security.param.WxLoginParam;
import com.leiran.security.token.WeChatAuthenticationToken;
import lombok.SneakyThrows;
import org.springf... |
package com.jfinal.ext2.testing;
import org.junit.Test;
import com.jfinal.ext2.kit.SqlKit;
public class SqlKitTest {
@Test
public void test() {
SqlKit kit = new SqlKit();
// kit.select("a","b","c").from("user").where("user=1").and("name='2'").ascOrderBy("ii").limit("1,12");
// System.out.println(kit.sql());
... |
package processing.boardobject;
import java.io.Serializable;
import processing.utility.Angle;
/**
* The Rotate Operation
*
* It is parameterized by the Angle of rotation
*
* @author Ahmed Zaheer Dadarkar
* @reviewer Rakesh Kumar
*/
public class RotateOperation implements IBoardObjectOperation, Serializable ... |
package com.orientechnologies.orient.core.storage.impl.local.paginated.wal.po.cellbtree.multivalue.v3.bucket;
import com.orientechnologies.common.serialization.types.OLongSerializer;
import com.orientechnologies.orient.core.storage.cache.OCacheEntry;
import com.orientechnologies.orient.core.storage.impl.local.paginate... |
package com.wuyue.case17.entities;
import java.util.List;
/**
* @author DeltaV235
* @version 1.0
* @className PageBean
* @description 用于响应给jsp的数据封装格式
* @date 2020/2/21 13:41
*/
public class PageBean<T> {
private Integer totalCount; // 总记录数
private Integer totalPage; // 总页数
private L... |
/*
* 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 ... |
/*
* 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.task.fibonacci;
public class Main {
public static void main(String[] args) {
Fibonacci noRecursively=new NoRecursively();
System.out.println(noRecursively.findFibonacci(3));
Fibonacci recursively = new Recursively();
System.out.println( recursively.findFibonacci(3));
... |
package com.example.m1kes.parkingdemo.util;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.TimeUnit;
public class StartupUtils ... |
package org.bf2.cos.fleetshard.sync.client;
import java.io.IOException;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.client.ClientRequestContext;
import javax.ws.rs.client.ClientRequestFilter;
import javax.ws.rs.core.HttpHeaders;
import javax.ws.rs.core.Response;
... |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.lsm.concurrency.controller;
import com.lsm.concurrency.cas.CasDemo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("")
public class HomeController {
@RequestMapping("")
public String ind... |
package net.danielhildebrandt;
import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* This class contains various methods with the aim of facilitating similar
* behavior in arrays as in {@link java.util.Arra... |
/*
* Copyright 2000-2014 Vaadin 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 applicable law or agreed... |
/*
* Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package goodman.com.sun.corba.se.impl.activation;
import goodman.java.util.*;
import com.sun.corba.se... |
package me.techygaming.mutechat;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import org.bukkit.plugin.java.JavaPlugin;
public class UpdateChecker {
private URL checkURL;
private String newVersion;
... |
/****
Copyright (c) 2015, Skyley Networks, 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... |
/*
* Encog(tm) Core v3.3 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2014 Heaton Research, 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... |
package ru.resql.transactional;
import org.slf4j.Logger;
import ru.resql.*;
public class TransactionalPipeImpl extends DbPipeBase {
TransactionalConnectionWrapper connectionWrapper;
public TransactionalPipeImpl(DbManager dbManager, Logger log, TransactionalConnectionWrapper connectionWrapper) {
super(dbManager, ... |
package org.sorenle.partitioner;
import com.google.common.hash.Hashing;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;
public class Murmur3FactoryTest {
@Test
public void test128BitPartitioner() {
Murmur3Partitioner murmur3Partitioner = Murmur3Fa... |
package fr.vilia.twxunit;
import com.thingworx.entities.utils.ThingUtilities;
import com.thingworx.entities.utils.UserUtilities;
import com.thingworx.metadata.ServiceDefinition;
import com.thingworx.security.context.SecurityContext;
import com.thingworx.security.users.User;
import com.thingworx.things.Thing;
import co... |
// This file is part of PDQ (https://github.com/ProofDrivenQuerying/pdq) which is released under the MIT license.
// See accompanying LICENSE for copyright notice and full details.
package uk.ac.ox.cs.pdq.ui;
/**
* FullMain
*/
public class GuiMain {
public static void main(String[] args) {
PDQApplicati... |
/*
* Copyright 2014-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.mopub.mobileads;
import android.app.Activity;
import android.content.SharedPreferences;
import com.mopub.common.MoPub;
import com.mopub.common.SharedPreferencesHelper;
import com.mopub.common.privacy.ConsentData;
import com.mopub.common.privacy.ConsentStatus;
import com.mopub.common.privacy.PersonalInfoMa... |
/*
* This source file is part of Cube.
*
* The MIT License (MIT)
*
* Copyright (c) 2020-2021 Shixin Cube Team.
*
* 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, ... |
package com.ittianyu.relight.widget.stateful.navigator;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.ittianyu.relight.activity.WidgetActivity;
import com.ittianyu.relight.widget.stateful.navigator.route.Route;
public class DelagationActivity extends WidgetActivity {
public sta... |
package com.officialsounding.statparse.utils;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;
@XmlRootElement(na... |
package ktrack.security.spring;
import java.util.ArrayList;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.secur... |
/*
* 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 cofh.thermal.lib.util.recipes.internal;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import java.util.List;
public interface IDynamoFuel {
List<ItemStack> getInputItems();
List<FluidStack> getInputFluids();
int getEnergy();
} |
/**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat 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 r... |
/*
* Copyright 2016 DTCC, Fujitsu Australia Software Technology, IBM - 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/LICEN... |
/*
* Copyright 2013 Japplis.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
/*
* Copyright 1999-2018 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 a... |
/*
* Copyright (c) 2018, https://runelitepl.us
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list ... |
/*
* 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... |
/*
* Copyright (c) 2002-2019 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2021 iText Group NV
Authors: Bruno Lowagie, Paulo Soares, et al.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free... |
package seedu.address.model.hirelah;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import seedu.address.commons.exceptions.IllegalValueException;
/*
* MetricList
*
* CS2103 AY19/... |
/**
* Copyright 2014 Microsoft Open Technologies Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
* Copyright © 2017 Cask Data, 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 t... |
package com.hrym.rpc.mine.dao.mapper;
import com.hrym.rpc.app.dao.model.task.FeedBack;
import org.apache.ibatis.annotations.Insert;
/**
* 意见反馈Mapper
* Created by mj on 2017/10/16.
*/
public interface FeedbackMapper {
/**
* 保存意见反馈
* @param feedBack
*/
@Insert("insert into t_feedback(phone,co... |
package metube.web.servlets;
import metube.domain.models.view.AllTubesViewModel;
import metube.services.TubeService;
import metube.util.ModelMapper;
import javax.inject.Inject;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servle... |
package dev.nocalhost.plugin.intellij.startup;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.startup.StartupActivity;
import org.j... |
/*
* 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 n... |
package uk.ac.ukc.cs.kmf.xmi;
import java.util.*;
public interface IObjectInfo {
public String getId();
public void setId(String s);
public String getIdref();
public void setIdref(String s);
public String getHref();
public void setHref(String s);
public String getLabel();
public voi... |
package com.huettermann.all;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class TestMe {
@Test
public void aComplexComputation() {
String a = "a";
String b = "a";
assertEquals(a, b);
}
@Test
public void aTest() {
Main main = new Main... |
/**
* 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 1997-2018 Optimatika
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builde... |
package org.kuse.payloadbuilder.core.parser;
import static org.kuse.payloadbuilder.core.parser.LiteralBooleanExpression.FALSE_LITERAL;
import static org.kuse.payloadbuilder.core.parser.LiteralBooleanExpression.TRUE_LITERAL;
import static org.kuse.payloadbuilder.core.parser.LiteralNullExpression.NULL_LITERAL;
import st... |
/*
* Copyright (c) 2008-2020, Hazelcast, 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 ... |
/*
* Copyright 2000-2013 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... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE89_SQL_Injection__PropertiesFile_execute_81_goodB2G.java
Label Definition File: CWE89_SQL_Injection.label.xml
Template File: sources-sinks-81_goodB2G.tmpl.java
*/
/*
* @description
* CWE: 89 SQL Injection
* BadSource: PropertiesFile Read data from a .properties file (... |
/*
* 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 ... |
import com.mongodb.client.MongoClient;
import com.mongodb.client.MongoClients;
import login.Login;
import login.UserDetails;
import login.guard.Confirmation;
import login.guard.SteamGuardAccount;
import org.bson.Document;
import org.json.simple.parser.ParseException;
import tests.SteamId_Test;
import trade.Trade;
impor... |
package seedu.address.model;
import javafx.collections.ObservableList;
import seedu.address.commons.core.GuiSettings;
import seedu.address.commons.core.index.Index;
import seedu.address.commons.util.Constants;
import seedu.address.logic.commands.exceptions.CommandException;
import seedu.address.model.modelAssignment.A... |
package ru.job4j.ood.store.foods;
import ru.job4j.ood.store.Food;
import java.math.BigDecimal;
import java.time.LocalDate;
/** Represents milk. */
public class Milk extends Food {
public Milk(LocalDate createDate, LocalDate expireDate, BigDecimal price) {
super("Milk", createDate, expireDate, price, null... |
package HomeWork6;
public class Dog extends Animal {
public Dog(String name, String color, int age, int minDistance, int maxDistance) {
super(name, color, age, minDistance, maxDistance);
}
@Override
public void run(int length) {
if ((length >= 0) && (length <= maxDistance))
... |
package com.google.android.gms.internal.ads;
/* renamed from: com.google.android.gms.internal.ads.Ee */
final /* synthetic */ class C8828Ee implements zzbei {
/* renamed from: a */
private final zzbgh f20764a;
C8828Ee(zzbgh zzbgh) {
this.f20764a = zzbgh;
}
/* renamed from: a */
publi... |
/* Copyright (C) 2014 TU Dortmund
* This file is part of LearnLib, http://www.learnlib.de/.
*
* 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/LICE... |
package com.hui.common.autoreport.model;
import java.util.List;
public class TableRowData {
//每一行数据
private List<String> dataList;
public TableRowData() {
}
public TableRowData(List<String> dataList) {
this.dataList = dataList;
}
public List<String> getDataList() {
ret... |
/**
* Copyright (c) 2012 Ephraim Tekle genzeb@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, mo... |
package org.monkey.mmq.config.modules.api;
import org.monkey.mmq.config.matedata.ModelEnum;
import org.monkey.mmq.config.modules.ModelMateData;
import org.monkey.mmq.config.modules.BaseModule;
import org.monkey.mmq.core.exception.MmqException;
import org.springframework.stereotype.Component;
import javax.annotation.P... |
package org.opensrp.repository;
import org.opensrp.domain.ReferralType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.simple.SimpleJdbcInsert;
import org.springframew... |
package net.md_5.bungee.protocol;
import com.google.common.base.Preconditions;
import com.google.common.collect.Iterables;
import gnu.trove.map.TIntObjectMap;
import gnu.trove.map.TObjectIntMap;
import gnu.trove.map.hash.TIntObjectHashMap;
import gnu.trove.map.hash.TObjectIntHashMap;
import java.util.function.Supplier... |
package com.zqlite.android.weather_lite.entity;
import android.util.Log;
import com.zqlite.android.weather_lite.constant.WeatherConstant;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.Serializable;
/**
* @author qinglian.zhang
* <p/>
* 用于解析得... |
package org.team2.unithon.openbook.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import an... |
package module1639_internal.a;
import javax.net.ssl.*;
import javax.rmi.ssl.*;
import java.awt.datatransfer.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolo... |
package org.aerogear.kryptowire;
import hudson.model.*;
import jenkins.model.GlobalConfiguration;
import jenkins.model.Jenkins;
import jenkins.model.RunAction2;
import org.json.JSONObject;
import java.io.File;
import java.io.IOException;
import java.security.KeyManagementException;
import java.security.KeyStoreExcept... |
/**
* Unit Test of the User Class.
*
* Java Runtime Environment (JRE) version used: 11.0.7
* Java Development Kit (JDK) version used: 11.0.7
*
* Styling guide: Google Java Style Guide
* (https://google.github.io/styleguide/javaguide.html) and
* Code Conventions for the Java Programming Language (Oracle:... |
package cn.tf.utils;
import java.lang.reflect.InvocationTargetException;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.beanutils.BeanUtils;
import cn.tf.domain.Category;
public class WebUtil {
public static <T> T fillBean(HttpServletRequest request,Class<T> clazz){
try {
T bean=c... |
package com.airbnb.lottie;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.ColorFilter;
import android.graphics.drawable.Drawable;
imp... |
package io.quarkus.qute.deployment.typesafe;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.Collections;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import ... |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 psiinon@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ... |
package com.github.ordinals;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
import java.util.function.Supplier;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
im... |
package com.example.coolweather;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.A... |
package com.google.android.exoplayer2.source.hls;
import android.content.Context;
import android.util.Log;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
import java.security.Key;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
... |
package org.jeffpiazza.derby.devices;
import java.awt.Color;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import jssc.SerialPort;
import jssc.SerialPortException;
import org.jeffpiazza.derby.HttpTask;
import org.jeffpiazz... |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... |
/*
* Fazer um programa em JAVA que solicita o género e a idade do utilizador.
* Informar se pode se recensear.
*/
package recenseamento;
import java.util.Scanner;
/**
*
* @author Mr Cérebro
*/
public class Recenseamento {
/**
* @param args the command line arguments
*/
public static void main... |
package com.java110.user.dao.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.core.base.dao.BaseServiceDao;
import com.java110.user.dao.IOrgServiceDao;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.exception.DAOException;
import com.java110.utils.util.DateUtil;
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 ... |
package leetcode.oo.math;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public final class NumberAtMostNTestCase {
private NumbersAtMostN alg;
/**
* Init.
*/
@Before
public void init() {
this.alg = new NumbersAtMostN();
}
@Test
public void te... |
package org.opensrp.service;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.opensrp.repository.PractitionerRepository;
import org.opensrp.search.PractitionerSearchBean;
import org.powermock.module... |
/*
* This file is generated by jOOQ.
*/
package jhi.germinate.server.database.codegen.tables;
import java.math.BigDecimal;
import java.sql.Date;
import javax.annotation.Generated;
import jhi.germinate.server.database.binding.SynonymBinding;
import jhi.germinate.server.database.codegen.GerminateDb;
import jhi.germ... |
package com.androida2z.top10downloads;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
/**
* Created by m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.