code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/*
* Copyright 2017 Crown Copyright
*
* 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... | gchq/stroom | stroom-feed/stroom-feed-impl/src/main/java/stroom/feed/impl/FeedDocObjectInfoProvider.java | Java | apache-2.0 | 2,585 |
package com.example.mypractice.gradient;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.LinearGradient;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.PorterDuff... | yujintao529/android_practice | MyPractice/app/src/main/java/com/example/mypractice/gradient/RadialGradientView.java | Java | apache-2.0 | 3,041 |
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lice... | emmettu/pnc | rest/src/main/java/org/jboss/pnc/rest/trigger/BuildTriggerer.java | Java | apache-2.0 | 11,932 |
/**
* 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... | terrancesnyder/oozie-hadoop2 | core/src/main/java/org/apache/oozie/command/UnpauseTransitionXCommand.java | Java | apache-2.0 | 2,985 |
/*
* This file is part of SQL Workbench/J, http://www.sql-workbench.net
*
* Copyright 2002-2015 Thomas Kellerer.
*
* 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.a... | Taller/sqlworkbench-plus | src/workbench/gui/tools/ColumnMapRow.java | Java | apache-2.0 | 1,507 |
package de.uniluebeck.itm.dynamixsspbridge.ui;
import de.uniluebeck.itm.dynamixsspbridge.R;
import de.uniluebeck.itm.dynamixsspbridge.core.StartService;
import de.uniluebeck.itm.dynamixsspbridge.support.Constants;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
impor... | TVLuke/DynamixBridge | src/de/uniluebeck/itm/dynamixsspbridge/ui/TolkenOverview.java | Java | apache-2.0 | 783 |
/*******************************************************************************
* 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... | usplssb/SemanticSCo | SemanticSCo/src/java/semanticsco/interactions/resolveservices/package-info.java | Java | apache-2.0 | 1,312 |
/*
* Copyright 2017 Jari Hämäläinen / https://github.com/nuumio
*
* 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... | nuumio/netsync | src/main/java/fi/nuumio/netsync/server/ServerStartException.java | Java | apache-2.0 | 911 |
package com.mageddo.config;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import io.micronaut.core.io.IOUtils;
import io.micronaut.runtime.server.EmbeddedServer;
import io.restassured.RestAssured;
import s... | mageddo/bookmark-notes | src/test/java/com/mageddo/config/TestUtils.java | Java | apache-2.0 | 1,041 |
/**
* Copyright (C) 2015 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | fabric8io/kubernetes-client | kubernetes-tests/src/test/java/io/fabric8/kubernetes/client/mock/crd/StarSpec.java | Java | apache-2.0 | 1,128 |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | PeterNSteinmetz/peternsteinmetz-bitcoinj | core/src/test/java/com/google/bitcoin/core/ChainSplitTest.java | Java | apache-2.0 | 33,318 |
/*
* WbOptionPane.java
*
* This file is part of SQL Workbench/J, http://www.sql-workbench.net
*
* Copyright 2002-2015, Thomas Kellerer
*
* 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... | Taller/sqlworkbench-plus | src/workbench/gui/components/WbOptionPane.java | Java | apache-2.0 | 2,688 |
package com.acme.apis;
import com.acme.apis.models.Contact;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.http.ResponseEntity;
import org.springframew... | yotammadem/mfp-adapter-challenge | src/test/java/com/acme/apis/ContactListApiIT.java | Java | apache-2.0 | 3,725 |
package org.ethereum.tether.db;
/**
* @author Mikhail Kalinin
* @since 09.07.2015
*/
public interface DiskStore {
void open();
void close();
}
| cegeka/tether | src/main/java/org/ethereum/tether/db/DiskStore.java | Java | apache-2.0 | 157 |
/*******************************************************************************
* Copyright 2011-2013 Sergey Tarasevich
*
* 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.... | corymail/Android-Universal-Image-Loader | library/src/com/nostra13/universalimageloader/core/LoadAndDisplayImageTask.java | Java | apache-2.0 | 15,032 |
/*
* 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 ... | kulinski/myfaces | impl/src/test/java/org/apache/myfaces/view/facelets/mock/MockResourceHandlerSupport.java | Java | apache-2.0 | 2,228 |
/*
* 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.lacv.marketplatform.services.impl;
import com.lacv.marketplatform.daos.UserJpa;
import com.lacv.marketplatform... | lacastrillov/marketplatform | src/main/java/com/lacv/marketplatform/services/impl/UserServiceImpl.java | Java | apache-2.0 | 1,019 |
package org.spoofax.terms.io;
import org.spoofax.interpreter.terms.ITermPrinter;
public class InlinePrinter implements ITermPrinter {
private final StringBuilder out;
public InlinePrinter() {
out = new StringBuilder();
}
public String getString() {
return out.toString();
}
public void print(String stri... | metaborg/mb-rep | org.spoofax.terms/src/org/spoofax/terms/io/InlinePrinter.java | Java | apache-2.0 | 929 |
package com.example.acme.kazoo.server.api;
import com.google.bits_gson.annotations.SerializedName;
/**
* Handles the response to a request to upload wifi info.
*/
public class SendWifiInfoResponse
extends StandardResponse
{
public class Data
{
@SerializedName( "frequency" )
public String fre... | baracudda/acmelabs | android/AcmeApp/appAcmeKazoo/src/main/java/com/example/acme/kazoo/server/api/SendWifiInfoResponse.java | Java | apache-2.0 | 870 |
// Copyright 2000-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 file.
package com.intellij.openapi.editor.impl;
import com.intellij.openapi.editor.EditorCustomElementRenderer;
import com.intellij.openapi.editor.Inlay;
import com.intellij.openapi.ed... | leafclick/intellij-community | platform/platform-impl/src/com/intellij/openapi/editor/impl/AfterLineEndInlayImpl.java | Java | apache-2.0 | 2,823 |
package com.cwjcsu.projecteuler.p101_150;
import java.util.BitSet;
import com.cwjcsu.projecteuler.util.Util;
/**
* 暴力法
* @author atlas
* @date 2013-4-26
*/
public class PE145 {
/**
* 608720
* @param args
*/
public static void main(String[] args) {
int N = 1000000000;
// int N = 1000;
int c = 0;
B... | cwjcsu/learning | basic/src/main/java/com/cwjcsu/projecteuler/p101_150/PE145.java | Java | apache-2.0 | 829 |
/*
* Copyright 2019 Web3 Labs 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 to in w... | web3j/web3j | codegen/src/main/java/org/web3j/codegen/TupleGenerator.java | Java | apache-2.0 | 8,751 |
package com.bachue.nginxmavenplugin;
/*-
* #%L
* nginx-maven-plugin Maven Plugin
* %%
* Copyright (C) 2017 Bachue
* %%
* 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
*
... | avivas/nginx-maven-plugin | src/main/java/com/bachue/nginxmavenplugin/StartNginxMojo.java | Java | apache-2.0 | 1,164 |
package com.danieljette.commute.network.request;
/* COPYRIGHT (C) 2014 Daniel Jette. All Rights Reserved. */
@SuppressWarnings("HardCodedStringLiteral")
public interface ApiResponse {
public static final String EXTRA_ID = "response_id";
public static final String EXTRA_RESPONSE_CODE = "response_code";
pub... | DanielJette/commute | Ottawa/ottawa/src/main/java/com/danieljette/commute/network/request/ApiResponse.java | Java | apache-2.0 | 621 |
//$Id: OneToOneCacheTest.java 8894 2005-12-21 13:22:50Z steveebersole $
package org.hibernate.test.legacy;
import java.io.Serializable;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.Transaction;
/**
* Simpl... | renmeng8875/projects | Hibernate-source/源代码及重要说明/Hibernate相关资料/hibernate-3.2.0.ga/hibernate-3.2/test/org/hibernate/test/legacy/OneToOneCacheTest.java | Java | apache-2.0 | 2,680 |
package org.apache.maven.archiva.xml;
/*
* 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 Licens... | hiredman/archiva | archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/maven/archiva/xml/LatinEntityResolutionReader.java | Java | apache-2.0 | 5,934 |
package generics.java;
import generics.java.data.Animal;
import generics.java.data.Cat;
import java.util.ArrayList;
import java.util.List;
class CopyDemo {
public <T> void copy(List<? super T> dest, List<? extends T> src) {
dest.add(src.get(0));
}
public static void main(String[] args) {
... | songzhw/Hello-kotlin | Advanced_kb/src/generics/java/CopyDemo.java | Java | apache-2.0 | 487 |
/**
* Copyright 2011 Pedro Ribeiro
*
* 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... | ribeirux/jalphanode | ui/src/main/java/org/jalphanode/ui/GroupMembersTableModel.java | Java | apache-2.0 | 2,771 |
package com.takumalee.circularringimageview;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest... | TakumaMochizuki/CircularProgressImageView | CircularProgressImageView/src/androidTest/java/com/takumalee/circularringimageview/ApplicationTest.java | Java | apache-2.0 | 366 |
/*
* Copyright (c) 2011 Carman Consulting, 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 appli... | jwcarman/Wicketopia | wicketopia/src/test/java/org/wicketopia/layout/view/CssBeanViewLayoutTestPage.java | Java | apache-2.0 | 1,019 |
/*
* 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 ... | dkhwangbo/druid | processing/src/test/java/org/apache/druid/query/TimewarpOperatorTest.java | Java | apache-2.0 | 13,159 |
package com.example.android.sunshine.app.data;
/**
* Created by Shubham on 12/9/2016.
*/
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.android.sunshine.app.data.WeatherContract.LocationEntry;
import com.example.and... | k-slugger/Sunshine | app/src/main/java/com/example/android/sunshine/app/data/WeatherDbHelper.java | Java | apache-2.0 | 4,121 |
package com.example.uweather.model;
/**
* @author Manuuuuu
* Date: 2016年8月28日
* Copyright (c) 2016, HeHeManuu@126.com All Rights Reserved.
*/
public class City {
private int id;
private String cityName;
private String cityCode;
private int provinceId;
public int getId() {
return id;
}
public void s... | HeHeManuu/UWeather | src/com/example/uweather/model/City.java | Java | apache-2.0 | 755 |
package io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotatio... | fabric8io/kubernetes-client | kubernetes-model-generator/openshift-model-miscellaneous/src/generated/java/io/fabric8/openshift/api/model/miscellaneous/metal3/v1alpha1/BareMetalHostStatus.java | Java | apache-2.0 | 8,414 |
package com.dong.design.sigle;
public enum Siglegon2 {
Instanse;
public Person person = new Person();
public Person modifyPersonName(Person person) {
person.name = "ssss";
return person;
}
}
| appledong/JavaDesignPattern | JavaDesignPattern/src/com/dong/design/sigle/Siglegon2.java | Java | apache-2.0 | 216 |
/**
* Copyright (c) 2005-2012 springside.org.cn
*/
package com.github.flying.jeelite.common.utils;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.refle... | xusheng1987/jeesite-lite | src/main/java/com/github/flying/jeelite/common/utils/Reflections.java | Java | apache-2.0 | 10,530 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.interpolation;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.Validate;
import com.opengamma.analytics.mat... | charles-cooper/idylfin | src/com/opengamma/analytics/math/interpolation/BasisFunctionGenerator.java | Java | apache-2.0 | 6,771 |
/*
* 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... | dagnir/aws-sdk-java | aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/ListDocumentsRequestMarshaller.java | Java | apache-2.0 | 2,720 |
package uk.nhs.ciao.transport.spine.route;
import static uk.nhs.ciao.logging.CiaoCamelLogMessage.camelLogMsg;
import java.util.Map;
import org.apache.camel.Exchange;
import org.apache.camel.Headers;
import org.apache.camel.LoggingLevel;
import org.apache.camel.builder.PredicateBuilder;
import org.apache.ca... | nhs-ciao/ciao-transport-spine | ciao-transport-spine/src/main/java/uk/nhs/ciao/transport/spine/route/HttpServerRoute.java | Java | apache-2.0 | 4,257 |
/*
* Copyright 2015 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... | vert-x3/vertx-auth | vertx-auth-oauth2/src/main/java/io/vertx/ext/auth/oauth2/providers/SoundcloudAuth.java | Java | apache-2.0 | 2,162 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
... | GillesMoris/OSS | src/org/zaproxy/zap/model/ContextDataFactory.java | Java | apache-2.0 | 2,252 |
package io.lnk.remoting.mina;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import o... | liufeiit/lnk | lnk-remoting/src/main/java/io/lnk/remoting/mina/MinaRemotingClient.java | Java | apache-2.0 | 15,857 |
package org.wso2.siddhi.core.util.collection.operator;
import org.wso2.siddhi.core.event.state.MetaStateEvent;
import org.wso2.siddhi.query.api.definition.AbstractDefinition;
/**
* Created by suho on 5/21/16.
*/
public class MatchingMetaStateHolder {
private int defaultStreamEventIndex;
private final int ca... | nirmal070125/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/collection/operator/MatchingMetaStateHolder.java | Java | apache-2.0 | 1,655 |
package hyweb.jo.db;
import hyweb.jo.JOProcObject;
import hyweb.jo.org.json.JSONObject;
import hyweb.jo.util.JOTools;
/**
*
* @author william
*/
public class JOPageInfo {
private int pageId; // nowPage
private JSONObject params;
private String url;
private int pageNum; // 每頁顯示幾筆... | williamyyj/mjo2 | src/main/java/hyweb/jo/db/JOPageInfo.java | Java | apache-2.0 | 2,354 |
/*
* Copyright (c) 2016, 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.or... | thiliA/siddhi | modules/siddhi-annotations/src/main/java/org/wso2/siddhi/annotation/Parameter.java | Java | apache-2.0 | 1,814 |
package cn.codepub.algorithms.strings;
import cn.codepub.algorithms.utils.StackX;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/**
* <p>
* Created with IntelliJ IDEA. 2016/1/8 19:32
* </p>
* <p>
* ClassName:ReverseString
* </p>
* <p>
* Description:反转字符串,例如abc->cba
* </P>
... | shijiebei2009/Algorithms | src/main/java/cn/codepub/algorithms/strings/ReverseString.java | Java | apache-2.0 | 1,794 |
package alien4cloud.paas.cloudify3.configuration;
import alien4cloud.ui.form.annotation.FormLabel;
import alien4cloud.ui.form.annotation.FormProperties;
import alien4cloud.ui.form.annotation.FormPropertyDefinition;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@FormProperties({ "username", "pa... | alien4cloud/alien4cloud-cloudify3-provider | alien4cloud-cloudify3-provider/src/main/java/alien4cloud/paas/cloudify3/configuration/OpenstackConfig.java | Java | apache-2.0 | 2,861 |
/**
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Cloudera, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | cloudera/flume | flume-core/src/main/java/com/cloudera/flume/core/connector/DirectDriver.java | Java | apache-2.0 | 8,855 |
package org.drools.bpel.core;
import org.drools.workflow.core.Node;
import org.drools.workflow.core.impl.ConnectionImpl;
import org.drools.workflow.core.impl.ConstraintImpl;
import org.drools.workflow.core.node.CompositeNode;
import org.drools.workflow.core.node.Join;
import org.drools.workflow.core.node.Split;
/**
... | bobmcwhirter/drools | drools-process/drools-bpel/src/main/java/org/drools/bpel/core/BPELIf.java | Java | apache-2.0 | 2,838 |
package ru.job4j.set;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test for MyHashSet.
*
* @author Ruzhev Alexander
* @since 03.11.2017
*/
public class MySimpleHashSetTest {
/**
* Test for add and get.
*/
@Test
public void w... | wolfdog007/aruzhev | chapter_005/src/test/java/ru/job4j/set/MySimpleHashSetTest.java | Java | apache-2.0 | 2,137 |
/*
* #%L
* omakase
* %%
* Copyright (C) 2015 Project Omakase LLC
* %%
* 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... | projectomakase/omakase | omakase/src/it/java/org/projectomakase/omakase/job/pipeline/DeleteDelegate.java | Java | apache-2.0 | 2,503 |
package edu.isi.karma.mapreduce.driver;
import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
i... | usc-isi-i2/Web-Karma | karma-mr/src/main/java/edu/isi/karma/mapreduce/driver/XMLElementExtractorProcessor.java | Java | apache-2.0 | 2,937 |
package org.gradle.test.performance.mediummonolithicjavaproject.p467;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test9352 {
Production9352 objectUnderTest = new Production9352();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p467/Test9352.java | Java | apache-2.0 | 2,111 |
package apple.phase;
import apple.NSObject;
import apple.foundation.NSArray;
import apple.foundation.NSMethodSignature;
import apple.foundation.NSSet;
import org.moe.natj.c.ann.FunctionPtr;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.Pointer;
import org.moe.natj.general.ann.Generated;
import org.moe.... | multi-os-engine/moe-core | moe.apple/moe.platform.ios/src/main/java/apple/phase/PHASEOccluder.java | Java | apache-2.0 | 5,213 |
package fi.dungeon.animalbomb.block;
import fi.dungeon.animalbomb.AnimalBomb;
import net.minecraft.entity.Entity;
import net.minecraft.entity.passive.EntityPig;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public class PigBomb extends AnimalBombBlock {
public PigBomb() {
super();
se... | kasbert/AnimalBombMod | src/main/java/fi/dungeon/animalbomb/block/PigBomb.java | Java | apache-2.0 | 502 |
/*
* Project Scelight
*
* Copyright (c) 2013 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the author's permission
* is prohibited and protected by Law.
*/
package hu.sllauncher.gui.comp;
import hu.sce... | icza/scelight | src-launcher/hu/sllauncher/gui/comp/SelectionListenerToolBar.java | Java | apache-2.0 | 2,448 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | jprante/elasticsearch-server | server/src/main/java/org/elasticsearch/search/aggregations/bucket/significant/InternalSignificantTerms.java | Java | apache-2.0 | 11,177 |
package org.xmlcml.ami.visitor.tree.nexml;
import nu.xom.Attribute;
import org.apache.log4j.Logger;
public class NexmlNode extends NexmlElement {
private final static Logger LOG = Logger.getLogger(NexmlNode.class);
public final static String TAG = "node";
private static final String ROOT = "root";
pr... | tarrow/ami | src/main/java/org/xmlcml/ami/visitor/tree/nexml/NexmlNode.java | Java | apache-2.0 | 627 |
package com.cloud.hypervisor.xenserver.resource.wrapper.xenbase;
import com.cloud.common.request.CommandWrapper;
import com.cloud.common.request.ResourceWrapper;
import com.cloud.hypervisor.xenserver.resource.CitrixResourceBase;
import com.cloud.legacymodel.communication.answer.Answer;
import com.cloud.legacymodel.com... | MissionCriticalCloud/cosmic | cosmic-core/server/src/main/java/com/cloud/hypervisor/xenserver/resource/wrapper/xenbase/CitrixModifySshKeysCommandWrapper.java | Java | apache-2.0 | 713 |
package org.apache.helix.integration;
/*
* 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 Licens... | kishoreg/helix-actors | helix-core/src/test/java/org/apache/helix/integration/TestRestartParticipant.java | Java | apache-2.0 | 4,270 |
package com.iyihua.commerce.module.soa.annotation;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
/***
* 解析Channel注解,获取channel的key
* @author Administrator
*
*/
public class ChannelAnnotationParser {
public static String[] getChannels(Object obj) {
Class<?> bean = obj.getClass();
... | YihuaWanglv/commerce | module_soa/src/main/java/com/iyihua/commerce/module/soa/annotation/ChannelAnnotationParser.java | Java | apache-2.0 | 900 |
package com.leonty.webinliner.form;
public class EntryForm {
private String html;
private String css;
private Boolean removeClasses;
public String getHtml() {
return html;
}
public void setHtml(String html) {
this.html = html;
}
public String getCss() {
return css;
}
public void setCss(String css) {... | Leonti/webinliner | src/main/java/com/leonty/webinliner/form/EntryForm.java | Java | apache-2.0 | 504 |
package com.elastisys.scale.cloudpool.google.compute.driver;
import static org.mockito.Mockito.atLeast;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.reset;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.stream.Co... | Eeemil/scale.cloudpool | google/compute/src/test/java/com/elastisys/scale/cloudpool/google/compute/driver/TestMultiZoneGcePoolDriverOperation.java | Java | apache-2.0 | 8,287 |
/*
* Copyright (C) 2014 - 2015 Marko Salmela, http://fuusio.org
*
* 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 ... | Fuusio/fuusio-app | fuusio.api/src/main/java/org/fuusio/api/dependency/DependencyScopeOwner.java | Java | apache-2.0 | 1,436 |
package me.chanjar.weixin.cp.api.impl;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.cp.api.ApiTestModule;
import me.chanjar.weixin.cp.api.WxCpAgentService;
import me.chanjar.weixin.cp.api.WxCpService;
import me.chanjar.weixin.cp.bean.WxCpAgent;
impor... | Wechat-Group/WxJava | weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpAgentServiceImplTest.java | Java | apache-2.0 | 3,787 |
package com.smile.spider.http;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
public class HttpClientFactory {
/**
* 设置连接的超时... | ordinary/smile | spider-akka/src/main/java/com/smile/spider/http/HttpClientFactory.java | Java | apache-2.0 | 1,489 |
/**
*
*/
package nl.wisdelft.cdf.server;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.enterprise.event.Event;
import jav... | WISDelft/AttendeeEngager | src/main/java/nl/wisdelft/cdf/server/TwitterMessageProducer.java | Java | apache-2.0 | 12,732 |
package com.lerx.style.site.vo;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;... | chenxyzy/cms | src/com/lerx/style/site/vo/SiteStyle.java | Java | apache-2.0 | 16,284 |
package ru.job4j.loop;
/**
* Class Factorial для нахождения факториала числа.
*
* @author pandrei.
* @version 1.
* @since 05.08.2017.
*/
public class Factorial {
/**
* Метод calc находит и возвращает факториал числа.
*
* @param num - число с которого вычисляют факториал.
* @return - возв... | IamStubborN/pandrei | chapter_001/src/main/java/ru/job4j/loop/Factorial.java | Java | apache-2.0 | 795 |
/*
* Copyright (C) 2012 René Jeschke <rene_jeschke@yahoo.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/LICENSE-2.0
*
* Unless required by... | rjeschke/neetutils-base | src/main/java/com/github/rjeschke/neetutils/io/ReaderIterator.java | Java | apache-2.0 | 3,193 |
/**
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.ninja.impl;
import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.prism.Pr... | bshp/midPoint | tools/ninja/src/main/java/com/evolveum/midpoint/ninja/impl/RestService.java | Java | apache-2.0 | 5,508 |
package com.example.netlibrary.net;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;
import com.android.volley.toolbox.HurlStack;
import okhttp3.OkHttpClient;
import okhttp3.OkUrlFactory;
/**
* OkHttpStack
*/
public class OkHttpStack extends HurlStack {
private final OkUrlF... | hacket/NetRequest | library/src/main/java/com/example/netlibrary/net/OkHttpStack.java | Java | apache-2.0 | 1,191 |
/*******************************************************************************
* Copyright 2006 - 2012 Vienna University of Technology,
* Department of Software Technology and Interactive Systems, IFS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | openpreserve/plato | plato/src/main/java/eu/scape_project/planning/plans/PlanSettingsView.java | Java | apache-2.0 | 11,433 |
package com.graphhopper.reader.osgb.dpn.additionalRights;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import com.grap... | engaric/graphhopper | core/src/test/java/com/graphhopper/reader/osgb/dpn/additionalRights/AdoptedByOtherCycleRouteTest.java | Java | apache-2.0 | 1,114 |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/web/api/workflow/EquellaTaskResource.java | Java | apache-2.0 | 2,149 |
package org.wildfly.swarm.examples.jaxrs.health;
import java.io.File;
import java.util.Date;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import org.wildfly.swarm.monitor.Health;
import org.wildfly.swarm.monitor.HealthStatus;
@Path("/app")
public class HealthCheckResource {
@GET
@Path("/health")
@H... | emag/wildfly-swarm-examples | jaxrs/health/src/main/java/org/wildfly/swarm/examples/jaxrs/health/HealthCheckResource.java | Java | apache-2.0 | 1,239 |
/* */ package com.abbcc.websoa.test.impl;
/* */
/* */ import com.abbcc.websoa.test.HelloWorld;
/* */ import java.io.BufferedReader;
/* */ import java.io.File;
/* */ import java.io.FileReader;
/* */ import java.io.IOException;
/* */ import java.io.PrintWriter;
/* */ import java.sql.C... | baowp/platform | biz/src/main/java/com/abbcc/websoa/test/impl/HelloWorldImpl.java | Java | apache-2.0 | 3,878 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2015, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | weld/core | environments/servlet/core/src/main/java/org/jboss/weld/environment/undertow/WeldServletExtension.java | Java | apache-2.0 | 3,364 |
package com.github.chrisblutz.trinity.lang.types;
import com.github.chrisblutz.trinity.lang.ClassRegistry;
import com.github.chrisblutz.trinity.lang.TyObject;
import com.github.chrisblutz.trinity.lang.TyRuntime;
import com.github.chrisblutz.trinity.lang.procedures.TyProcedure;
import com.github.chrisblutz.trinity.nati... | trinity-lang/trinity | src/main/java/com/github/chrisblutz/trinity/lang/types/TyProcedureObject.java | Java | apache-2.0 | 1,118 |
package demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import config.TappingLoggingSink;
@SpringBootApplication
@ComponentScan(basePackageClasses= TappingLoggingSink.class)
publ... | agilemobiledev/spring-cloud-stream | spring-cloud-stream-samples/tap/src/main/java/demo/TapApplication.java | Java | apache-2.0 | 476 |
/**
* Copyright 2013 #name#
* 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, so... | sujaybhowmick/online-code-evaluator | optimuscode-api/src/main/java/com/optimuscode/core/java/compiler/ByteArrayJavaClass.java | Java | apache-2.0 | 1,465 |
package com.unicorn.co226.controller;
import com.unicorn.co226.db.DBConnection;
import com.unicorn.co226.model.Patient;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* Project - HealthCenterProj
* Created by Dinuka Nadeeshan on 8/31/16.
* dinuka.nadeeshan1993@gmail.com
*/
public class Pati... | dinukanadeeshan/Health_Center_Proj | src/com/unicorn/co226/controller/PatientController.java | Java | apache-2.0 | 921 |
/*
* 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
* dis... | statsbiblioteket/summa | Core/src/test/java/dk/statsbiblioteket/summa/common/util/PipedStreamTest.java | Java | apache-2.0 | 4,020 |
package com.google.api.ads.dfp.jaxws.v201306;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
*
* Represents the ac... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201306/AdUnitAction.java | Java | apache-2.0 | 1,863 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | felipewmartins/aesh-extensions | src/main/java/org/jboss/aesh/extensions/text/highlight/scanner/YAMLScanner.java | Java | apache-2.0 | 11,009 |
/*
* 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 tests.fifth_lesson;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.sel... | maredenek/seleniumCourse | seleniumCourse/src/test/java/tests/fifth_lesson/CheckProductPage.java | Java | apache-2.0 | 5,500 |
/**
*
*/
package com.vraj.playground.hrank;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Scanner;
/**
* https://www.hackerrank.com/challenges/ctci-find-the-running-median/problem
*
* @author vrajori
*
*/
public class RunningMedian {
static PriorityQueue<Integer> maxHeap = n... | Alchemist-V/HackerRank | hrank/src/main/java/com/vraj/playground/hrank/RunningMedian.java | Java | apache-2.0 | 1,872 |
package com.elminster.common.util;
import java.io.File;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.Message;
import javax.mail.MessagingException;
import... | elminsterjimmy/java | Commons/src/main/java/com/elminster/common/util/MailUtil.java | Java | apache-2.0 | 4,195 |
package com.api.Chat.repository;
import com.api.Chat.domain.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, Long> {
public User findByUsername(String username);
}
| FiroTest/Testwebhook | src/main/java/com/api/Chat/repository/UserRepository.java | Java | apache-2.0 | 257 |
package org.wso2.carbon.apimgt.rest.api.store.dto;
import java.util.*;
import org.wso2.carbon.apimgt.rest.api.store.dto.APIBusinessInformationDTO;
import io.swagger.annotations.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
@ApiModel(description = "")
public ... | madusankapremaratne/carbon-apimgt | components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/dto/APIDTO.java | Java | apache-2.0 | 5,723 |
/*
* 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 ... | GoogleCloudPlatform/dataflow-sample-applications | timeseries-streaming/timeseries-java-applications/TimeSeriesPipeline/src/test/java/com/google/dataflow/sample/timeseriesflow/test/MergeAllTypeCompsInSameKeyWindowTest.java | Java | apache-2.0 | 10,803 |
/*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | ogaclejapan/dotapk | dotapk/src/main/java/com/ogaclejapan/dotapk/WebApiErrorReturns.java | Java | apache-2.0 | 970 |
package com.beamofsoul.bip.service.impl;
import static com.beamofsoul.bip.management.util.BooleanExpressionUtils.addExpression;
import static com.beamofsoul.bip.management.util.BooleanExpressionUtils.like;
import static com.beamofsoul.bip.management.util.BooleanExpressionUtils.toBooleanValue;
import static com.be... | beamofsoul/BusinessInfrastructurePlatformGroupVersion | src/main/java/com/beamofsoul/bip/service/impl/DepartmentServiceImpl.java | Java | apache-2.0 | 5,119 |
/**
* Copyright (C) 2015-2017 Łukasz Budnik <lukasz.budnik@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 ... | lukaszbudnik/gugis | src/test/java/com/github/lukaszbudnik/gugis/test/helpers/StorageService1Impl.java | Java | apache-2.0 | 1,888 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-athena/src/main/java/com/amazonaws/services/athena/model/transform/CreateNamedQueryResultJsonUnmarshaller.java | Java | apache-2.0 | 2,844 |
package se.bjorn.dotastatisticsproxy.inputdata;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class InputPlayer {
@JsonProperty("account_id")
public long id;
@JsonProperty("hero_id")
public int... | BjornArnelid/dota-statistics-proxy | src/se/bjorn/dotastatisticsproxy/inputdata/InputPlayer.java | Java | apache-2.0 | 376 |
// Copyright 2000-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 file.
package org.jetbrains.plugins.groovy.annotator.checkers;
import com.intellij.codeInsight.daemon.JavaErrorMessages;
import com.intellij.lang.annotation.AnnotationHolder;
import co... | paplorinc/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/annotator/checkers/CustomAnnotationChecker.java | Java | apache-2.0 | 9,210 |
package org.drip.product.definition;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2013 Lakshmi Krishnamurthy
* Copyright (C) 2012 Lakshmi Krishnamurthy
*
* This file is part of CreditAnalytics, a free-software/open-source library for fixed i... | tectronics/creditsuite | 2.2/src/org/drip/product/definition/Bond.java | Java | apache-2.0 | 513,084 |
package com.bytebybyte.google.geocoding.service.request;
import java.util.Map;
import com.bytebybyte.google.geocoding.service.IGeocodeRequest;
public class GeocodeRequest implements IGeocodeRequest {
protected Map<String, String> parameters;
protected GeocodeRequest() {
}
public GeocodeRequest(Map<String, Str... | gjordi/google-geocoding | src/main/java/com/bytebybyte/google/geocoding/service/request/GeocodeRequest.java | Java | apache-2.0 | 459 |
/*
* Copyright 2011 Goldman Sachs.
*
* 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 ... | jlz27/gs-collections | collections-api/src/main/java/com/gs/collections/api/list/FixedSizeList.java | Java | apache-2.0 | 1,050 |