text stringlengths 7 995k |
|---|
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from proj.djinni
package com.ezored.dataservices;
import java.util.ArrayList;
import java.util.concurrent.atomic.AtomicBoolean;
public abstract class TodoDataService {
public static void truncate()
{
CppProxy.truncate();
}
... |
/*
* Copyright 2002-2021 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 ru.avicomp.d2rq;
import de.fuberlin.wiwiss.d2rq.jena.CachingGraph;
import de.fuberlin.wiwiss.d2rq.jena.GraphD2RQ;
import de.fuberlin.wiwiss.d2rq.utils.JenaModelUtils;
import org.apache.jena.graph.Graph;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Pa... |
package com.hyd.ssdb.sharding;
import com.hyd.ssdb.SsdbClientException;
import com.hyd.ssdb.SsdbException;
import com.hyd.ssdb.SsdbNoClusterAvailableException;
import com.hyd.ssdb.conf.Cluster;
import com.hyd.ssdb.conf.SPOFStrategy;
import com.hyd.ssdb.conf.Sharding;
import com.hyd.ssdb.util.DebugLogger;
import com.hy... |
/*
* Copyright 2013-2018 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 org.yxs.cors.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class CorsController {
@GetMapp... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package com.primeton.dgs.kernel.core.web.ontolog;
import com.primeton.dgs.kernel.core.cache.ICache;
import com.primeton.dgs.kernel.core.common.SpringContextHelper;
import com.primeton.dgs.workspace.system.common.UserProfile;
import javax.servlet.http.HttpSession;
public class AppDispatchCommand extends AppBaseDi... |
import java.util.Scanner;
public class Climbing_Stairs70 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the n value : ");
int n = sc.nextInt();
int[] arr = new int[n+1];
for (int i=0; i < arr.length; i++) {
arr[i] = -1;
}
int totalPaths =... |
package cn.lastwhisper;
/**
* jdk5新特性:自动拆箱与装箱
* 语法糖,使开发的效率更高
* IntegerCache缓存池,享元模式
* @author lastwhisper
*/
public class AutoBox {
public static void main(String[] args) {
// 语法糖
//Integer it = 555;//自动装箱
//int i = it;//自动拆箱
}
} |
package com.android.picshow.editor.crop;
import android.graphics.Rect;
public class AspectRatioUtil {
public static float calculateAspectRatio(float left, float top, float right, float bottom) {
final float width = right - left;
final float height = bottom - top;
final float aspectRatio ... |
/*
* Copyright 2008-2010 Digital Enterprise Research Institute (DERI)
*
* 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
*
* Unle... |
/*
* Copyright (c) 2021 lokka30.
*
* This code is part of Treasury, an Economy API for Minecraft servers. Please see <https://github.com/lokka30/Treasury> for more information on this resource.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated document... |
package com.lambdaschool.school;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;
import org.springframework.web.servlet.config.annotat... |
package com.fasterxml.jackson.databind.jsontype;
import java.util.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.BaseMapTest;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.velocypack.TestVelocypackMapper;
/**
* Testing to verify tha... |
/*
* Copyright 2002-2004 Jeremias Maerki.
*
* 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 de.adorsys.psd2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Gets or Sets exchangeRateTypeCode
*/
public enum ExchangeRateTypeCode {
SPOT("SPOT"),
SALE("SALE"),
AGRD("AGRD");
private String value;
ExchangeRateTypeCode(Str... |
package org.kilocraft.essentials.provided;
import com.mojang.brigadier.Command;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
import net.minecraft.server.command.LocateCommand;
impor... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package uni.akilis.dao;
import static org.jooq.impl.DSL.*;
import static uni.akilis.jooq.generated.Tables.*;
import java.math.BigDecimal;
import java.sql.*;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.jooq.Comparator;
import org.jooq.Condition;
import org.jooq.DSLContext;
imp... |
package me.zoro.kitetsu.distributed.lock;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
/**
* @author luguanquan
* @date 2020-03-16 16:55
*/
@Service
public class RedisLockJob {
/**
*
* 在等待时间内完成任务
* 任务执行时间5s, 锁超时时间20s, 其他线程等待时间20s
* 所以并发两个任务,两个都能完... |
package frc.robot.Utils;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.button.Button;
/**
* Makes a joystick trigger like a button using a threshold.
*
* @author Nicholas Contreras
* @author Nathan Sariowan
*/
public class AxisButton e... |
package ru.stqa.pft.addressbook.tests;
import org.hamcrest.CoreMatchers;
import org.hamcrest.junit.MatcherAssert;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.Contacts;
i... |
/*
* Copyright 2016 Vitaly Litvak (vitavaque@gmail.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
package com.reise.reise.web.rest;
import com.reise.reise.domain.Compartilhamento;
import com.reise.reise.repository.CompartilhamentoRepository;
import com.reise.reise.service.CompartilhamentoService;
import com.reise.reise.web.rest.errors.BadRequestAlertException;
import java.net.URI;
import java.net.URISyntaxExceptio... |
/*
* eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency,
* accountability and the service delivery of the government organizations.
*
* Copyright (C) 2017 eGovernments Foundation
*
* The updated version of eGov suite of products as by eGovernments Foundation
* ... |
package com.ideal.flyerteacafes.ui.fragment.page;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClic... |
/*
* Copyright 2014 Realm 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 in wr... |
/*
* Copyright 2009-2012 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... |
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... |
/*
* Copyright 2002-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 ap... |
package cn.sliew.rtomde.config;
public class ModuleOptions extends AbstractOptions {
private static final long serialVersionUID = 8567503820669808978L;
} |
package jadx.core.dex.nodes;
import java.util.List;
public interface IBranchRegion extends IRegion {
/**
* Return list of branches in this region.
* NOTE: Contains 'null' elements for indicate empty branches.
*/
List<IContainer> getBranches();
} |
package edu.uci.ics.deid;
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 DeidApplicationTests {
@Test
public void contextLoads... |
//
// Decompiled by Procyon v0.5.36
//
package org.w3c.dom.html;
public interface HTMLTitleElement extends HTMLElement
{
String getText();
void setText(final String p0);
} |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
package co.adun.mvnejb3jpa.web.controller.service;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier... |
import java.awt.Color;
import java.io.File;
import java.util.Scanner;
public class Card{
private int id;
private int color;
//white blue green red black
private int[] cost;
private int level;
private int pointValue;
private String flavor;
public Card(String line){
Scanner sc = new Scanner(line);
id = sc.... |
package edu.mssm.pharm.maayanlab.G2N.web;
import edu.mssm.pharm.maayanlab.G2N.enrichment.G2Nweb;
import edu.mssm.pharm.maayanlab.common.web.JSONify;
import edu.mssm.pharm.maayanlab.common.web.PartReader;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annot... |
public class RectangleIntersection {
/*
5.11
*/
public static Rectangle intersectRectangle(Rectangle r1, Rectangle r2) {
return new Rectangle(1,1,1, 1);
}
} |
package command;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.Estabelecimento;
import service.EstabelecimentoService;
public class CarregarAvaliaca... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package agsml;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transfo... |
/*
* 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 <%=packageName%>.config;
import <%=packageName%>.config.cassandra.CassandraConfiguration;
import org.apache.cassandra.config.DatabaseDescriptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.cassandra.CassandraProperties;
import org.springframework.conte... |
package junitdemo;
import java.util.List;
public class ToDoList {
public ToDoList(String technology, List<String> itemsToAdd, List<String> itemsToCheck, int expectedItemsLeft) {
this.technology = technology;
this.itemsToAdd = itemsToAdd;
this.itemsToCheck = itemsToCheck;
this.expec... |
/*
* Copyright 2009 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 required by ... |
package com.employee.Employee_Service.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
private Long id;
private String name;
private String manager;
} |
package com.skytala.eCommerce.domain.accounting.relations.fixedAsset.query.maint;
import java.util.ArrayList;
import java.util.List;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.DelegatorFactory;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apache.ofbiz.entity.GenericVal... |
package crats.mvcbaseproject.view;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import crats.mvcbaseproject.R;
pu... |
/*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... |
/*
* Copyright 2011 Splunk, 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.lambdaschool.javacities;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Data
@Entity
public class City {
private @Id @GeneratedValue Long id;
private String name;
private int price;
private int affordability;
... |
package de.uni.bielefeld.sc.hterhors.psink.obie.projects.soccerplayer.ontology.interfaces;
import de.uni.bielefeld.sc.hterhors.psink.obie.core.ontology.annotations.AssignableSubInterfaces;
import de.uni.bielefeld.sc.hterhors.psink.obie.core.ontology.annotations.ImplementationClass;
import de.uni.bielefeld.sc.hterhors.... |
package com.solvd.insurance.interfaces;
import com.solvd.insurance.Main;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class MotorcycleRisk implements IRiskyClient{
private static final Logger logger = LogManager.getLogger(Main.class);
@Override
public boolean ... |
package io.github.easy.archetype.generate.config;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ClassUtil;
import java.util.HashMap;
import java.util.Map;
/**
* 变量配置
*
* @author luyanan
* @since 2021/1/31
**/
public class VariableConfig {
private Map<String, String> variableMap =... |
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*********************************************************************************
* *
* The MIT License (MIT) *
* ... |
/*
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.resolve.constants.evaluate;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithI... |
/*
* Copyright 2020 John "topjohnwu" Wu
*
* 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... |
package com.yqh.mapper.model;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
/**
* @author yangq
* Create time in 2019-... |
/**
*
*/
package jk.core.excel.cellinfo;
/**
* @author Jack lee
*
*/
public enum Charsets {
ANSI(0),
DEFAULT(1),
SYMBOL(2),
MAC(77),
SHIFTJIS(128),
HANGEUL(129),
JOHAB(130),
GB2312(134),
CHINESEBIG5(136),
GREEK(161),
TURKISH(162),
VIETNAMESE(163),
... |
/*
* Copyright (c) 2015 IBM Corporation and others.
*
* 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 2019 Miroslav Pokorny (github.com/mP1)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/*
* Copyright 2012-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.dragontalker.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
public class TestJdbc {
public static void main(String[] args) {
String jdbcUrl = "jdbc:mysql://localhost:3306/hb_student_tracker?useSSL=false&serverTimezone=UTC";
String user = "hbstudent";
String ... |
package com.mapbox.mapboxsdk.android.testapp;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.mapbox.mapboxsdk.api.ILatLng;
import com.mapbox.m... |
package edu.rice.pliny.apitrans.examples;
import com.github.javaparser.JavaParser;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.visitor.VoidVisitorAdapter;
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jd... |
import java.util.concurrent.locks.ReentrantLock;
public class Interruptible {
public static void main(String[] args) throws InterruptedException {
final ReentrantLock loc0 = new ReentrantLock();
final ReentrantLock loc1 = new ReentrantLock();
Thread t0 = new Thread() {
public vo... |
package uk.gov.hmcts.ccd.data.casedetails.query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.data.casedetails.CaseDetailsEntity;
import uk.gov.hmcts.ccd.data.casedetails.search.MetaData;
import javax.persistence.EntityManager;... |
import org.junit.Test;
import static org.junit.Assert.*;
import static org.hamcrest.Matchers.*;
public class StringCalculatorTest {
public StringCalculator stringCalculatorInstance = new StringCalculator();
//An empty string returns zero
@Test
public void emptyStringTest() throws Exception {
as... |
package com.akkademy;
import akka.actor.AbstractActor;
import akka.actor.ActorRef;
import akka.cluster.Cluster;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import akka.japi.pf.ReceiveBuilder;
import java.util.ArrayList;
import java.util.List;
import static akka.cluster.ClusterEvent.*;
public class ... |
package goja.castor;
import goja.castor.castor.DateTimeCastor;
class DefaultCastorSetting {
public void setup(DateTimeCastor<?, ?> c) {
}
} |
import java.util.Arrays;
import java.util.Stack;
class Solution {
public String longestWord(String[] words) {
Arrays.sort(words);
int cursor = 0;
String result = "";
Stack<String> stack = new Stack<>();
stack.add(result);
while (cursor < words.length) {
... |
/* ====================================================================
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... |
package net.gdface.common;
import static org.junit.Assert.*;
import org.junit.Test;
public class BitmapTest {
@Test
public void test() {
fail("尚未实现");
}
} |
/*
* Copyright (C) 2004-2011 John Currier
* Copyright (C) 2018 Nils Petzaell
*
* This file is a part of the SchemaSpy project (http://schemaspy.org).
*
* SchemaSpy is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Sof... |
package edu.lab12;
public class Main {
public static void main(String[] args) {
new CMainForm("Gra kółko - krzyżyk").setVisible(true);
}
} |
package org.openmrs.module.initializer.api.loc;
import org.openmrs.LocationTag;
import org.openmrs.api.LocationService;
import org.openmrs.module.initializer.api.BaseLineProcessor;
import org.openmrs.module.initializer.api.CsvLine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... |
/*
* Copyright (c) 2004-2005 SLF4J.ORG
* Copyright (c) 2004-2005 QOS.ch
*
* All rights reserved.
*
* 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
*... |
/*
* ******************************************************************************
* Copyright 2014-2019 Spectra Logic Corporation. 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 i... |
/*
* 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.lynden.gmapsfx.javascript;
import javafx.concurrent.Worker;
/**
* Provides an abstraction to the web engine, so that a m... |
package com.example.fragment_in_fragment.fragment;
import com.apollographql.apollo.api.GraphqlFragment;
import com.apollographql.apollo.api.ResponseField;
import com.apollographql.apollo.api.ResponseFieldMapper;
import com.apollographql.apollo.api.ResponseFieldMarshaller;
import com.apollographql.apollo.api.ResponseRe... |
package warc;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.JobContext;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.lib.... |
/*
* 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 org.infinispan.rest.logging;
import java.util.concurrent.TimeUnit;
import org.infinispan.util.logging.LogFactory;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.FullHttpResponse;
/**
* Logging filter that can be used to ... |
package com.newardassociates.hearts;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class TrickTests {
Game game;
Round round;
Trick trick;
Trick setupTrick(int numPlayers, boolean jack) {
Game.Options options = new Game.Options();
options... |
/*
Derby - Class org.apache.derbyTesting.perf.basic._Suite
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... |
package uk.gov.pay.adminusers.fixtures;
import org.apache.commons.lang3.RandomStringUtils;
import uk.gov.pay.adminusers.app.util.RandomIdGenerator;
import uk.gov.pay.adminusers.utils.DatabaseTestHelper;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import static java.time.temporal.ChronoUnit.MINUTES;
impo... |
/*
* Copyright (C) 2013 salesforce.com, 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 ... |
/*******************************************************************************
* Copyright 2006, 2017 Jerry Huxtable, Martin Davis
*
* 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
*
*... |
package core.server.connection;
import org.java_websocket.WebSocket;
import org.java_websocket.handshake.ClientHandshake;
import org.java_websocket.server.WebSocketServer;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.util.HashMap;
import java.util.Map;
impor... |
/*
* 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 ... |
/*************************************************************************
/* DumpDefault11.java -- Dumps the default symbols for the US local to debug
/*
/* Copyright (c) 1999 Aaron M. Renn (arenn@urbanophile.com)
/*
/* This program is free software; you can redistribute it and/or modify
/* it under the terms of the G... |
/*
* ******************************************************************************
* * Copyright (c) 2021 Deeplearning4j Contributors
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.or... |
package com.hui.controller;
import com.fasterxml.jackson.annotation.JsonView;
import com.hui.bean.User;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.annotation.AuthenticationPrincipa... |
package org.epodia.dto;
public class ChatChannelInitializationDTO {
private long userIdOne;
private long userIdTwo;
public ChatChannelInitializationDTO() {}
public void setUserIdOne(long userIdOne) {
this.userIdOne = userIdOne;
}
public void setUserIdTwo(long userIdTwo) {
this.userIdTwo... |
package com.revature.beans;
public class Employee {
private int empID;
private String firstName;
private String lastName;
private String userName;
private String password;
private double availableR;
private int supervisorID;
private int deptHeadID;
public int getEmpID() {
return empID;
}
public void se... |
/*
* This file is part of the SMT project.
* Copyright 2010 David R. Cok
* Created August 2010
*/
package org.smtlib.command;
import java.io.IOException;
import org.smtlib.ICommand.Iset_logic;
import org.smtlib.IExpr.ISymbol;
import org.smtlib.IParser.ParserException;
import org.smtlib.IResponse;
import org.smtli... |
package com.example.androidweatherdemo.util;
import okhttp3.OkHttpClient;
import okhttp3.Request;
public class HttpUtil {
public static void sendOkHttpRequest(String address ,okhttp3.Callback callback){
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder().url(address).... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.