text stringlengths 7 995k |
|---|
package enigma;
/**
* A class representing a group of rotor objects
*
* @author Kushal Galrani
*/
public class RotorGroup {
//a one dimensional array representing all the rotors present in the enigma.RotorGroup object
private final Rotor[] rotors;
/**
*
* @param rotors An array of enigma.Ro... |
package io.github.jhipster.sample.config;
import java.time.Duration;
import org.ehcache.config.builders.*;
import org.ehcache.jsr107.Eh107Configuration;
import org.hibernate.cache.jcache.ConfigSettings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.cache.J... |
package com.shf18JUC.demo01;
//创建线程方式2: 实现runnable接口,重写run方法,
// 执行线程需要丢入runnable接口实现类,调用start方法
//推荐使用:避免单继承局限性,灵活方便,方便同一个对象被多个线程使用
public class TestThread2 implements Runnable{ // 实现接口Runnable具有多线程能力
@Override
public void run() {
// run方法线程体
for (int i = 0; i < 20; i++) {
System.ou... |
package com.example.menuoverflow;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute o... |
package liquibase.change.core;
import liquibase.change.AbstractChange;
import liquibase.change.ChangeMetaData;
import liquibase.change.DatabaseChange;
import liquibase.change.DatabaseChangeProperty;
import liquibase.database.Database;
import liquibase.exception.UnexpectedLiquibaseException;
import liquibase.exception.... |
/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.sdk;
import java.lang.ref.WeakReference;
import javax.xml.bind.DatatypeConverter;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import org.apache.co... |
package com.mercadopago.android.px.internal.features.payment_result.props;
import android.support.annotation.NonNull;
import com.mercadopago.android.px.configuration.PaymentResultScreenConfiguration;
import com.mercadopago.android.px.model.Instruction;
import com.mercadopago.android.px.model.PaymentResult;
public cla... |
package com.example.marianodato.identifyme_android_client.model;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class User {
@SerializedName("id")
@Expose
private Long id;
@SerializedName("username")
@Expose
private String username;
... |
package com.tensquare;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;
@SpringBootApplication
public class TensquareSpitApplication {
public static void main(String[] arg... |
package com.java110.order.smo.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.order.dao.ICenterServiceDAO;
import com.java110.order.smo.ICenterServiceSMO;
import com.java110.utils.cache.AppRouteCache;
import com.java110.utils.cache.MappingCache;
import com.java11... |
/*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
package uk.davidwei.perfmock.test.acceptance.junit4;
import junit.framework.TestCase;
import testdata.jmock.acceptance.junit4.JUnit4WithRulesExamples;
public class JUnit4WithRulesTestRunnerTests extends TestCase {
FailureRecordingRunListener listener = new FailureRecordingRunListener();
public void test... |
package com.ipusoft.utils;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* author : GWFan
* time : 7/14/21 3:42 PM
* desc :
*/
public class MapUtils {
/**
... |
/*
* Copyright 2009-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... |
/*
* Copyright (C) 2015 Haruki Hasegawa
*
* 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 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.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 com.blackstone.goldenquran.models;
/**
* Created by Abdullah on 6/11/2017.
*/
public class ChangeIconEvent {
} |
package com.bv.core.utils;
/**
* @ProjectName: mall
* @Package: com.bv.core.utils
* @ClassName: SnowflakeIdUtils
* @Author: blovus
* @Description: 基于雪花算法实现的id生成器
* @Date: 2019/5/14 22:21
* @Version: 1.0
*/
public class SnowflakeIdUtils {
private static SnowflakeIdWorker idWorker;
static {
// 使... |
package value;
/**
* Created by rain on 2016/11/6.
*/
public class MyMessage {
int uid;
String name;
String type;
String sendtime;
String content;
public MyMessage(int uid, String name, String type, String sendtime, String content) {
this.uid = uid;
this.name = name;
... |
package org.typesense.api;
import junit.framework.TestCase;
import org.typesense.model.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
public class DocumentsTest extends TestCase {
public Client client;
private Hel... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* 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 www.bwsensing.com.domain.system.model.organization;
import lombok.Data;
import java.util.List;
/**
* @author macos-zyj
*/
@Data
public class SystemDept {
/** 部门ID */
private Integer id;
/**组织结构编号*/
private Integer structureId;
/** 父部门ID */
private Integer parentId;
/** 子类部门 */... |
package org.workcraft.plugins.dfs;
import org.workcraft.annotations.IdentifierPrefix;
import org.workcraft.annotations.VisualClass;
@IdentifierPrefix("p")
@VisualClass(VisualPopRegister.class)
public class PopRegister extends BinaryRegister {
} |
/*
* Copyright (c) 1998, 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 2008 The Closure Compiler 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 applicable... |
/*
* Copyright 2017 Yuriy Kiselev (uze@yandex.ru)
*
* 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... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
/*
* Copyright 2014 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 "license" ... |
/*
* Copyright 2017 IBM Corp. 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 applicable law o... |
package com.viaoa.hub;
import org.junit.Test;
import static org.junit.Assert.*;
import com.viaoa.OAUnitTest;
import test.xice.tsac3.model.oa.*;
public class HubListenerAdapterTest extends OAUnitTest {
@Test
public void test() {
}
} |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
/*
* 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
* "Licen... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License")... |
package com.cloderia.helion.client.shared.model;
import java.util.Date;
import javax.validation.constraints.NotNull;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import ja... |
/*
* Copyright (c) 2011-2018 Pivotal Software 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
*
* Unles... |
package org.riverframework.core.lotus.domino._remote;
import lotus.domino.NotesThread;
import org.junit.AfterClass;
import org.junit.BeforeClass;
public class ViewTest extends org.riverframework.core.AbstractViewTest {
@BeforeClass
public static void before() {
NotesThread.sinitThread();
}
@AfterClass
public... |
package org.linghuxiong.spring.batch.admin.quartz;
import org.linghuxiong.spring.batch.admin.dao.QuartzJobFireHistoryDao;
import org.linghuxiong.spring.batch.admin.model.QuartzJobFireHistoryEntity;
import org.quartz.*;
import org.quartz.impl.matchers.EverythingMatcher;
import org.quartz.spi.ClassLoadHelper;
import org... |
package engine.opengl.vbo;
import static org.lwjgl.opengl.GL15.*;
public abstract class BufferObject {
public static int BUFFER_TARGET_ARRAY_BUFFER = GL_ARRAY_BUFFER;
public static int BUFFER_TARGET_ELEMENT_ARRAY_BUFFER = GL_ELEMENT_ARRAY_BUFFER;
public static int USAGE_HINT_STATIC_DRAW = GL_STATIC_DRAW... |
/*
* 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 ru.kontur.vostok.hercules.auth;
/**
* The type of authentication.
*
* @author Gregory Koshelev
*/
public enum AuthenticationType {
/**
* Authenticated by master api key
*/
MASTER,
/**
* Authenticated by ordinary api key
*/
ORDINARY,
/**
* Not authenticated
... |
/*
* Copyright (c) 2017 txchangecoin
*
* 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... |
/*
* 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) 2011, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"). You may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LIC... |
/*
* Copyright 2014 Randy McEoin
*
* 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 org.onvif.client;
import de.onvif.discovery.OnvifDiscovery;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Class calls OnvifDiscovery and for each device URL ... |
/*
* Copyright (C) 2010 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... |
/**
* 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... |
// Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.bullet.Bullet3OpenCL;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.bullet.Bullet3Common.*;
import static o... |
// ============================================================================
//
// Copyright (C) 2006-2019 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... |
package happynumbers.mapper;
import happynumbers.mapper.IMapper;
public class SumOfDigitsSquaredMapper implements IMapper {
@Override
public String getLabel() {
return "Sum of the digits squared";
}
@Override
public int map(int input, int radix) {
String nr = Integer.toString(inp... |
package com.ghost.controller;
import java.io.PrintWriter;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.beans.... |
/**
* Copyright 2012-2019 The Feign 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 applicable law or agree... |
package ezjob.config;
import java.io.IOException;
import java.util.Collection;
import java.util.Set;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.annotation.Configuration;
import org.springframew... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
package ai.vespa.example;
import ai.vespa.models.evaluation.ModelsEvaluator;
import com.yahoo.component.chain.Chain;
import com.yahoo.container.jdisc.HttpRequest;
import com.yahoo.container.jdisc.HttpResponse;... |
package org.jsonex.snapshottest;
import org.jsonex.jsoncoder.JSONCoder;
import org.jsonex.jsoncoder.JSONCoderOption;
import lombok.Getter;
import lombok.Setter;
public class SnapshotSerializerJsonCoder implements SnapshotSerializer<JSONCoderOption, SnapshotSerializerJsonCoder> {
@Getter @Setter private transient JS... |
package audiosteganography.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import javax.sound.sampled.AudioFileFormat.Type;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
public f... |
package llc.ufwa.widget;
import llc.ufwa.util.StopWatch;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import android.content.Context;
import android.database.DataSetObserver;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView.OnItemClickListener;
import android.... |
package engine.server.network.packet.s2c;
import configuration.Config;
import engine.game.GameData;
import engine.server.network.PacketBuf;
import engine.server.network.packet.Packet;
import java.io.IOException;
import java.util.HashMap;
public class PacketGameData implements Packet {
private String playerWorld... |
/*
* Copyright (C) 2018 Bell Canada.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Copyright 2017 MovingBlocks
*
* 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 leetcode.S019;
public class Solution {
public ListNode removeNthFromEnd(ListNode head, int n) {
ListNode dummy = new ListNode(0);
dummy.next = head;
int length = 0;
ListNode first = head;
while (first != null) {
length++;
first = first.next;
... |
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, cop... |
package com.peony.engine.framework.data;
import com.peony.engine.framework.control.annotation.Service;
import com.peony.engine.framework.data.cache.CacheEntity;
import com.peony.engine.framework.data.cache.CacheService;
import com.peony.engine.framework.data.cache.KeyParser;
import com.peony.engine.framework.data.pers... |
/*-
* ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
* The Apache Software License, Version 2.0
* ——————————————————————————————————————————————————————————————————————————————
* Copyright (C) 2013 - 2020 Autonomic, LLC - All rights reserved
* ———————————————————————————————————————... |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.github.ystromm.learn_selenium.webapp_angular1.spring;
import com.github.ystromm.learn_selenium.backend_api.Todo;
public final class Todos {
static Todo todo() {
return todo(false);
}
static Todo checkedTodo() {
return todo(true);
}
private static Todo todo(boolean do... |
/*
* 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 ... |
/*
MIT License
Copyright (c) 2017 Universidad de los Andes - ISIS2603
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 com.devonfw.application.mtsj.general.service.impl.config;
import javax.inject.Inject;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.... |
/*
* 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... |
package features.domain;
import features.domain.queries.ManyToManyABarQueries;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import joist.domain.AbstractChanged;
import joist.domain.AbstractDomainObject;
import joist.domain.Changed;
import joist.domain.Shim;
import joist.domain.orm.F... |
import net.runelite.mapping.ObfuscatedName;
@ObfuscatedName("cc")
public class class98 {
@ObfuscatedName("m")
int field1306;
@ObfuscatedName("f")
int field1303;
@ObfuscatedName("q")
int[] field1304;
@ObfuscatedName("w")
int[] field1305;
@ObfuscatedName("o")
float[][] field1302;
@Obfusc... |
/*
* Copyright 2020 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 applica... |
package edu.iastate.metnet.metaomgraph.ui;
import java.awt.EventQueue;
import javax.swing.JInternalFrame;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import edu.iastate.metnet.metaomgraph.MetaOmGraph;
import edu.iastate.metne... |
package io.leitstand.inventory.service;
import static io.leitstand.commons.model.Patterns.UUID_PATTERN;
import java.util.UUID;
import javax.json.bind.annotation.JsonbTypeAdapter;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import io.leitstand.commons.model.Scalar;
impor... |
package com.netease.nim.demo.avchat.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Toast;
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 may not ... |
/*
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package com.rechat;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript.
* This is used to schedule rendering of the component.
*/
@Override
protected String getMainComponentName(... |
/**
* 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 cn.dsc.fasttest.conf;
import cn.dsc.fasttest.service.BalanaService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* @author dingshichen
*/
@Configuration
public class BalanaConfiguration {
@Bean
BalanaService balanaService() {
... |
package com.ocdsoft.bacta.swg.server.message.game.creation;
import com.ocdsoft.bacta.engine.utils.BufferUtil;
import com.ocdsoft.bacta.soe.message.GameNetworkMessage;
import com.ocdsoft.bacta.soe.message.Priority;
import com.ocdsoft.bacta.swg.shared.localization.StringId;
import java.nio.ByteBuffer;
/**
* Created b... |
/*
* Copyright 2018
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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... |
package org.gradle.test.performance.mediummonolithicjavaproject.p135;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test2705 {
Production2705 objectUnderTest = new Production2705();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... |
package shreyk.o.Framework;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Shrey on 12/16/2015.
*/
public class Pool<T> {
public interface PoolObjectFactory<T> {
public T createObject();
}
private final List<T> freeObjects;
private final PoolObjectFactory<T> factory;
... |
/*
* 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.udacity.jdnd.course3.critter.api.dtos;
import com.udacity.jdnd.course3.critter.employee.EmployeeSkill;
import java.time.DayOfWeek;
import java.util.Set;
/**
* Represents the form that employee request and response data takes. Does not map
* to the database directly.
*/
public class EmployeeSaveDTO {
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... |
package opencup.xiv.round2;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.channels.FileChannel;
import java.util.Scanner;
/**
* Helper, that write binary file for problem C
*/
public class Helper {
public static void main(Str... |
package pl.czak.cuanto;
import android.app.Application;
import android.speech.tts.TextToSpeech;
import android.util.Log;
import java.util.Locale;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
/**
* Created by czak on 22.01.2015.
*/
public class MyApplication extends Application {
private TextToSpeech ... |
package pl.sudokusolver.recognizerlib.utility.staticmethods;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.opencv.core.*;
import pl.sudokusolver.recognizerlib._INIT_;
import static org.opencv.core.CvType.CV_32FC1;
import static org.opencv.cor... |
package org.baeldung.swagger2;
import static com.google.common.collect.Lists.newArrayList;
import java.util.Collections;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMethod;
import springfox.doc... |
package g0801_0900.s0842_split_array_into_fibonacci_sequence;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.Arrays;
import java.util.Collections;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void splitIntoFibonacci() {
... |
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package ee.ut.cs.dsg.confcheck.trie;
import ee.ut.cs.dsg.confcheck.util.Utils;
import java.util.ArrayList;
import java.util.List;
public class TrieNode {
private String content; // This is a numerical representation of the activity label. Should be part of a lookup table
private int maxChildren;
private... |
package com.jerey.theme_night;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Androi... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.