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 |
|---|---|---|---|---|---|
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
*
* Applied Energistics 2 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 Software Foundation, either ver... | SKCraft/Applied-Energistics-2 | src/main/java/appeng/client/render/effects/LightningArcFX.java | Java | gpl-3.0 | 2,042 |
package com.lody.virtual.helper.ipcbus;
import android.os.Binder;
import com.lody.virtual.helper.collection.SparseArray;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
/**
* @author Lody
*/
public class ServerInterface {
private Class<?> interfaceClass;
private final Spa... | xuwakao/VirtualApp | VirtualApp/lib/src/main/java/com/lody/virtual/helper/ipcbus/ServerInterface.java | Java | gpl-3.0 | 1,424 |
package net.rdrei.android.scdl2;
import java.io.File;
public class DownloadPathValidator {
public enum ErrorCode {
INSECURE_PATH, PERMISSION_DENIED, RELATIVE_PATH, NOT_A_DIRECTORY,
};
// Injectable
public DownloadPathValidator() {
}
/**
* Using a single class to catch all validation related errors is a
... | wskplho/scdl | scdl/src/main/java/net/rdrei/android/scdl2/DownloadPathValidator.java | Java | gpl-3.0 | 1,469 |
package com.bioxx.tfc.Commands;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Blocks;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.WorldServer;
import net.minecraft.w... | AnodeCathode/TFCraft | src/Common/com/bioxx/tfc/Commands/GSPVisualCommand.java | Java | gpl-3.0 | 2,163 |
/**
* Replication Benchmarker
* https://github.com/score-team/replication-benchmarker/
* Copyright (C) 2013 LORIA / Inria / SCORE Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, ei... | LoickBriot/replication-benchmarker | src/main/java/crdt/tree/graphtree/connection/GraphConnectionPolicyInc.java | Java | gpl-3.0 | 4,700 |
package com.buschmais.jqassistant.core.analysis.api.rule;
import org.hamcrest.Matchers;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.util.Set;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Mat... | khmarbaise/jqassistant | core/analysis/src/test/java/com/buschmais/jqassistant/core/analysis/api/rule/AbstractRuleBucketTest.java | Java | gpl-3.0 | 6,330 |
/*
* Copyright (C) 2010 Brockmann Consult GmbH (info@brockmann-consult.de)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any late... | arraydev/snap-engine | ceres-glayer/src/main/java/com/bc/ceres/glevel/support/DefaultMultiLevelRenderer.java | Java | gpl-3.0 | 1,554 |
/*******************************************************************************
* This file is part of RedReader.
*
* RedReader is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the Lic... | RyanLee7/redreader | src/main/java/org/quantumbadger/redreader/views/list/ListItemView.java | Java | gpl-3.0 | 2,671 |
package org.thoughtcrime.securesms.attachments;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import org.thoughtcrime.securesms.database.AttachmentDatabase;
public abstract class Attachment {
@NonNull
private final String contentType;
private f... | ypsy/Signal-Android | src/org/thoughtcrime/securesms/attachments/Attachment.java | Java | gpl-3.0 | 1,569 |
package com.servinglynk.hmis.warehouse.service.exception;
@SuppressWarnings("serial")
public class AccountConsentNotFoundException extends RuntimeException {
/**
* Default exception message
*/
public static final String DEFAULT_MESSAGE = "consent not found";
public AccountConsentNotFoundException() {
super... | servinglynk/hmis-lynk-open-source | hmis-service-v2014/src/main/java/com/servinglynk/hmis/warehouse/service/exception/AccountConsentNotFoundException.java | Java | mpl-2.0 | 625 |
/*
* Kuali Coeus, a comprehensive research administration system for higher education.
*
* Copyright 2005-2016 Kuali, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eithe... | kuali/kc | coeus-impl/src/main/java/org/kuali/kra/negotiations/web/struts/form/NegotiationForm.java | Java | agpl-3.0 | 14,466 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2006-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | aihua/opennms | opennms-dao/src/test/java/org/opennms/netmgt/dao/PathOutageDaoIT.java | Java | agpl-3.0 | 8,238 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2010-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | tdefilip/opennms | opennms-services/src/main/java/org/opennms/netmgt/linkd/snmp/IpCidrRouteTableEntry.java | Java | agpl-3.0 | 10,182 |
package com.bradmcevoy.http.values;
/**
* A type of value which will be written into a CDATA section by its
* ValueWriter
*
* @author brad
*/
public class CData {
private final String data;
public CData( String data ) {
this.data = data;
}
public String getData() {
return data;
... | jessec/webdav-mongodb-server | src/main/java/com/bradmcevoy/http/values/CData.java | Java | agpl-3.0 | 327 |
/**
* Copyright (c) 2010-present Abixen Systems. All rights reserved.
*
* This library 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
* Software Foundation; either version 2.1 of the License, or (at your option)
* any ... | alvin-reyes/abixen-platform | abixen-platform-core/src/main/java/com/abixen/platform/core/service/impl/PageServiceImpl.java | Java | lgpl-2.1 | 4,929 |
/*
* ALMA - Atacama Large Millimiter Array
* (c) European Southern Observatory, 2002
* Copyright by ESO (in the framework of the ALMA collaboration),
* All rights reserved
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Pub... | ACS-Community/ACS | LGPL/CommonSoftware/jcont/test/alma/jconttest/DummyComponentImpl/DummyComponentHelper.java | Java | lgpl-2.1 | 2,867 |
package edu.ncsu.csc.itrust.validate;
import edu.ncsu.csc.itrust.action.SetSecurityQuestionAction;
import edu.ncsu.csc.itrust.beans.SecurityQA;
import edu.ncsu.csc.itrust.exception.ErrorList;
import edu.ncsu.csc.itrust.exception.FormValidationException;
/**
* Validates the security question and answer. This ... | qynnine/JDiffOriginDemo | examples/iTrust_v11/edu/ncsu/csc/itrust/validate/SecurityQAValidator.java | Java | lgpl-2.1 | 1,615 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package se.sics.gvod.common.msgs;
import io.netty.buffer.ByteBuf;
import se.sics.gvod.net.BaseMsgFrameDecoder;
import se.sics.gvod.net.VodAddress;
import se.sics.gvod.net.msgs.RewriteableMsg;
import se.sics.gvod.net.msg... | Decentrify/NatTraversal_Old | network/netty/src/main/java/se/sics/gvod/common/msgs/DisconnectMsg.java | Java | lgpl-3.0 | 2,791 |
package lab.s2jh.profile.web.action;
import java.util.List;
import java.util.Map;
import lab.s2jh.auth.entity.User;
import lab.s2jh.auth.security.AuthUserHolder;
import lab.s2jh.core.annotation.MetaData;
import lab.s2jh.core.service.BaseService;
import lab.s2jh.core.web.annotation.SecurityControlIgnore;
imp... | xautlx/s2jh | common-service/src/main/java/lab/s2jh/profile/web/action/SimpleParamValController.java | Java | lgpl-3.0 | 2,414 |
package org.molgenis.security.login;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.sp... | joerivandervelde/molgenis | molgenis-security/src/test/java/org/molgenis/security/login/MolgenisLoginControllerTest.java | Java | lgpl-3.0 | 2,334 |
package org.fnlp.train.parsing;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import org.fnlp.ml.eval.SeqEval;
import org.fnl... | xpqiu/fnlp | fnlp-train/src/main/java/org/fnlp/train/parsing/DepRun.java | Java | lgpl-3.0 | 1,925 |
/*
* Copyright 2012-2016 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... | lenicliu/spring-boot | spring-boot-samples/spring-boot-sample-test/src/main/java/sample/test/service/ServiceProperties.java | Java | apache-2.0 | 1,199 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-dlp/v2/1.29.2/com/google/api/services/dlp/v2/model/GooglePrivacyDlpV2CharsToIgnore.java | Java | apache-2.0 | 2,814 |
/*
* $Id$
*
* 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
* "Lice... | timgifford/tiles | tiles-servlet/src/main/java/org/apache/tiles/web/util/ServletContextAdapter.java | Java | apache-2.0 | 6,046 |
/*
* 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 ... | foryou2030/incubator-carbondata | core/src/main/java/org/apache/carbondata/scan/filter/resolver/resolverinfo/MeasureColumnResolvedFilterInfo.java | Java | apache-2.0 | 2,704 |
/*
* 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 ... | apache/wink | wink-itests/wink-itest/wink-itest-targeting/src/main/java/org/apache/wink/itest/transferencoding/TransferEncodingApplication.java | Java | apache-2.0 | 1,197 |
/*
* Copyright (C) 2016 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... | ebr11/ExoPlayer | library/core/src/main/java/com/google/android/exoplayer2/trackselection/RandomTrackSelection.java | Java | apache-2.0 | 3,927 |
/*
* 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 ... | pdxrunner/geode | geode-core/src/integrationTest/java/org/apache/geode/cache/query/functional/ComparisonOperatorsJUnitTest.java | Java | apache-2.0 | 7,209 |
package org.apache.ojb.broker.accesslayer;
/* Copyright 2002-2005 The Apache Software Foundation
*
* 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/l... | CU-CommunityApps/cu-db-ojb | src/java/org/apache/ojb/broker/accesslayer/ConnectionFactoryPooledImpl.java | Java | apache-2.0 | 10,635 |
/*
Copyright 1995-2015 Esri
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... | panchenko/geometry-api-java | src/main/java/com/esri/core/geometry/WktExportFlags.java | Java | apache-2.0 | 1,787 |
/**
* Copyright 2018 LinkedIn 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 applica... | cgtz/ambry | ambry-messageformat/src/test/java/com/github/ambry/messageformat/PutMessageFormatBlobV1InputStream.java | Java | apache-2.0 | 2,783 |
package org.zstack.sdk;
import org.zstack.sdk.FlowMeterInventory;
public class CreateFlowMeterResult {
public FlowMeterInventory inventory;
public void setInventory(FlowMeterInventory inventory) {
this.inventory = inventory;
}
public FlowMeterInventory getInventory() {
return this.inve... | zstackorg/zstack | sdk/src/main/java/org/zstack/sdk/CreateFlowMeterResult.java | Java | apache-2.0 | 336 |
/*
* 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 ... | lhaiesp/samza | samza-test/src/test/java/org/apache/samza/test/operator/RepartitionWindowApp.java | Java | apache-2.0 | 3,017 |
/*
* 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... | nvoron23/presto | presto-kafka/src/main/java/com/facebook/presto/kafka/decoder/json/CustomDateTimeJsonKafkaFieldDecoder.java | Java | apache-2.0 | 3,246 |
/*
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.activation;
import java.lang.reflect.Method;
import java.lang.reflect.Mo... | shun634501730/java_source_cn | src_en/com/sun/corba/se/impl/activation/ServerMain.java | Java | apache-2.0 | 11,760 |
/*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | tufangorel/hazelcast | hazelcast/src/main/java/com/hazelcast/mapreduce/Collator.java | Java | apache-2.0 | 1,671 |
/**
* Copyright 2015 Netflix, 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... | gjesse/RxJava | src/test/java/rx/SingleTest.java | Java | apache-2.0 | 13,611 |
/**
* 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... | ChinmaySKulkarni/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMetricsRegion.java | Java | apache-2.0 | 4,788 |
/*
* 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 ma... | pkdevbox/stratos | components/org.apache.stratos.common/src/main/java/org/apache/stratos/common/constants/StratosConstants.java | Java | apache-2.0 | 12,411 |
package org.junit.runner.manipulation;
import org.junit.runner.Description;
import org.junit.runner.Request;
import org.junit.runner.Runner;
/**
* The canonical case of filtering is when you want to run a single test method in a class. Rather
* than introduce runner API just for that one case, JUnit provides a gene... | mashuai/Open-Source-Research | JUnit/src/org/junit/runner/manipulation/Filter.java | Java | apache-2.0 | 1,893 |
/*
* 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... | jbertouch/elasticsearch | core/src/test/java/org/elasticsearch/index/store/CorruptedFileIT.java | Java | apache-2.0 | 39,322 |
/*
* 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
*
* Unles... | emacarron/mybatis-3-no-local-cache | src/test/java/com/ibatis/sqlmap/proc/DerbyProcs.java | Java | apache-2.0 | 1,326 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | ingorichtsmeier/camunda-bpm-platform | engine-cdi/src/main/java/org/camunda/bpm/engine/cdi/impl/event/CdiEventSupportBpmnParseListener.java | Java | apache-2.0 | 10,110 |
package clinit;
public class Three3 {
static int i;
{
i = 4;
}
public static String run() {
return Integer.toString(i);
}
}
| witekcc/spring-loaded | testdata/src/main/java/clinit/Three3.java | Java | apache-2.0 | 136 |
/*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | DavidMihola/moshi | moshi/src/test/java/com/squareup/moshi/ObjectAdapterTest.java | Java | apache-2.0 | 6,071 |
/*******************************************************************************
*
* Pentaho Big Data
*
* Copyright (C) 2002-2020 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the ... | smaring/big-data-plugin | legacy-core/src/main/java/org/pentaho/di/core/namedcluster/NamedClusterManager.java | Java | apache-2.0 | 13,994 |
/*
* 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 ... | robertgeiger/incubator-geode | gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/xmlcache/SerialGatewaySenderCreation.java | Java | apache-2.0 | 3,269 |
/*
* Copyright (C) 2017 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... | lukhnos/j2objc | jre_emul/android/platform/libcore/luni/src/test/java/libcore/java/time/OffsetTimeTest.java | Java | apache-2.0 | 3,476 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | camunda/camunda-cmmn-model | src/test/java/org/camunda/bpm/model/cmmn/instance/TableItemTest.java | Java | apache-2.0 | 1,446 |
/**
* 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... | fnp/pylucene | lucene-java-3.5.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedAllTermDocs.java | Java | apache-2.0 | 1,217 |
/*
* Copyright 2014 NAVER Corp.
* 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... | sjmittal/pinpoint | bootstrap-core/src/main/java/com/navercorp/pinpoint/bootstrap/plugin/test/ExpectedTrace.java | Java | apache-2.0 | 2,456 |
/*
* 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... | umadevik/log4j-android | src/main/java/org/apache/log4j/config/PropertyGetter.java | Java | apache-2.0 | 3,835 |
/*
* Copyright 2008 Novamente 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
*
* Unless required by applicable law or agreed t... | rodsol/relex-temp | src/java/relex/anaphora/Antecedents.java | Java | apache-2.0 | 7,890 |
/*
* 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... | HonzaKral/elasticsearch | server/src/main/java/org/elasticsearch/common/time/DateUtils.java | Java | apache-2.0 | 18,238 |
/*
* 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 ... | akchinSTC/systemml | src/main/java/org/apache/sysml/runtime/matrix/MatrixCharacteristics.java | Java | apache-2.0 | 15,412 |
/*
* Copyright 2017 ThoughtWorks, 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 agr... | varshavaradarajan/gocd | server/src/main/java/com/thoughtworks/go/server/sqlmigration/Migration_86.java | Java | apache-2.0 | 6,571 |
package com.orientechnologies.orient.core.record.impl;
import com.orientechnologies.orient.core.metadata.schema.OType;
import org.junit.Test;
import static org.testng.Assert.assertEquals;
/**
* Created by tglman on 25/01/16.
*/
public class OJsonReadWriteTest {
@Test
public void testCustomField(){
ODocume... | mmacfadden/orientdb | core/src/test/java/com/orientechnologies/orient/core/record/impl/OJsonReadWriteTest.java | Java | apache-2.0 | 588 |
/*
* 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... | haozhun/presto | presto-main/src/main/java/com/facebook/presto/sql/analyzer/ExpressionTreeUtils.java | Java | apache-2.0 | 3,519 |
/*
* Copyright 2010-2016 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 "l... | flofreud/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/DeleteTableResult.java | Java | apache-2.0 | 3,339 |
/**
* Copyright 2014-2016 CyberVision, 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 applicabl... | forGGe/kaa | server/common/nosql/mongo-dao/src/main/java/org/kaaproject/kaa/server/common/nosql/mongo/dao/model/MongoCredentials.java | Java | apache-2.0 | 4,702 |
/*
* 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 ... | pax95/camel | components/camel-mllp/src/main/java/org/apache/camel/component/mllp/internal/TcpSocketConsumerRunnable.java | Java | apache-2.0 | 11,739 |
/*
* Copyright 2010 JBoss 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... | pperboires/PocDrools | drools-core/src/main/java/org/drools/factmodel/Fact.java | Java | apache-2.0 | 797 |
/*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | hoangcuongflp/binnavi | src/main/java/com/google/security/zynamics/reil/translators/TranslationHelpers.java | Java | apache-2.0 | 6,018 |
/*
* 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 ... | nicolaferraro/camel | components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConsumer.java | Java | apache-2.0 | 10,572 |
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* 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... | hugosato/apache-axis | test/wsdl/omit/OmitImpl.java | Java | apache-2.0 | 864 |
/*
* 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... | XiaominZhang/presto | presto-main/src/main/java/com/facebook/presto/operator/aggregation/MultimapAggregation.java | Java | apache-2.0 | 8,236 |
/*
* Copyright 2015-2018 Red Hat, Inc, and individual contributors.
*
* 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 req... | wildfly-swarm/wildfly-swarm | docs/howto/autodetect-fractions/src/main/java/org/wildfly/swarm/howto/autodetect/MyRestApplication.java | Java | apache-2.0 | 833 |
/*
* 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 ... | datametica/calcite | core/src/main/java/org/apache/calcite/sql/validate/ParameterNamespace.java | Java | apache-2.0 | 1,804 |
/*
* 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 ... | InspurUSA/nifi | nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-client-dto/src/main/java/org/apache/nifi/web/api/entity/CreateTemplateRequestEntity.java | Java | apache-2.0 | 1,948 |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.security.transport.netty4;
import io.netty.ch... | HonzaKral/elasticsearch | x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/transport/netty4/SecurityNetty4HttpServerTransportTests.java | Java | apache-2.0 | 10,512 |
/*
Copyright 2016 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 to in wri... | goldmansachs/reladomo | reladomo/src/test/java/com/gs/fw/common/mithra/test/domain/WishListItemList.java | Java | apache-2.0 | 1,044 |
package com.github.dockerjava.netty.exec;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.github.dockerjava.api.command.StartContainerCmd;
import com.github.dockerjava.core.DockerClientConfig;
import com.github.dockerjava.netty.MediaType;
import com.github.dockerjava.netty.WebTarget;
public class... | ollie314/docker-java | src/main/java/com/github/dockerjava/netty/exec/StartContainerCmdExec.java | Java | apache-2.0 | 1,103 |
/*
*
* Derby - Class org.apache.derbyTesting.junit.LocaleTestSetup
*
* 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... | scnakandala/derby | java/testing/org/apache/derbyTesting/junit/LocaleTestSetup.java | Java | apache-2.0 | 1,917 |
/*
* Copyright 2018 StreamSets 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... | rockmkd/datacollector | container/src/main/java/com/streamsets/datacollector/blobstore/BlobStoreTaskImpl.java | Java | apache-2.0 | 13,095 |
/*
* Copyright 2011 Red Hat, Inc. and/or its affiliates.
*
* This 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 Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* ... | nmldiegues/stibt | infinispan/core/src/main/java/org/infinispan/configuration/cache/LoadersConfigurationChildBuilder.java | Java | apache-2.0 | 993 |
/*
* Copyright 2010-2012 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 "l... | SaiNadh001/aws-sdk-for-java | src/main/java/com/amazonaws/services/simpleemail/model/transform/SetIdentityFeedbackForwardingEnabledResultStaxUnmarshaller.java | Java | apache-2.0 | 2,488 |
/*
* 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 ... | clarkyzl/flink | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/readers/TimeFieldReader.java | Java | apache-2.0 | 2,680 |
/*
Derby - Class org.apache.derbyTesting.system.nstest.init.DbSetup
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 ... | scnakandala/derby | java/testing/org/apache/derbyTesting/system/nstest/init/DbSetup.java | Java | apache-2.0 | 7,434 |
package com.jdon.annotation;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Domain Model should normal live in memory n... | linqingyicen/jdonframework | src/main/java/com/jdon/annotation/Model.java | Java | apache-2.0 | 768 |
/*
* 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 ... | prasi-in/geode | geode-core/src/main/java/org/apache/geode/internal/admin/statalerts/SingleAttrDefinitionImpl.java | Java | apache-2.0 | 5,728 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2013 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.
* Y... | profjrr/zaproxy | src/org/zaproxy/zap/extension/spider/SpiderDialog.java | Java | apache-2.0 | 15,217 |
/*
* 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 ... | xiao-chen/hadoop | hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/exception/package-info.java | Java | apache-2.0 | 861 |
/*
* Copyright 2017 StreamSets 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... | rockmkd/datacollector | container/src/test/java/com/streamsets/datacollector/runner/preview/StageConfigurationBuilder.java | Java | apache-2.0 | 3,320 |
/*
* Copyright 2010-2016 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 "l... | flofreud/aws-sdk-java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/EbsBlockDevice.java | Java | apache-2.0 | 6,429 |
package com.beecavegames.concurrency;
public interface Labeled {
String getLabel();
}
| sgmiller/hiveelements | galeforce/src/main/java/com/beecavegames/concurrency/Labeled.java | Java | apache-2.0 | 91 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | falko/camunda-bpm-platform | engine/src/main/java/org/camunda/bpm/engine/impl/bpmn/parser/ConditionalEventDefinition.java | Java | apache-2.0 | 3,979 |
package com.fincatto.documentofiscal.nfe310.classes.nota;
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.nfe310.classes.NFModalidadeFrete;
import com.fincatto.documentofiscal.validadores.DFListValidador;
import com.fincatto.documentofiscal.validadores.DFStringValidador;
import org.simp... | wmixvideo/nfe | src/main/java/com/fincatto/documentofiscal/nfe310/classes/nota/NFNotaInfoTransporte.java | Java | apache-2.0 | 3,099 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | ollie314/kafka | tools/src/main/java/org/apache/kafka/tools/VerifiableLog4jAppender.java | Java | apache-2.0 | 10,984 |
/**
* 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... | ecatmur/avro | lang/java/avro/src/main/java/org/apache/avro/file/FileReader.java | Java | apache-2.0 | 1,857 |
/**
* 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... | tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/test/java/org/apache/hadoop/yarn/server/applicationhistoryservice/TestMemoryApplicationHistoryStore.java | Java | apache-2.0 | 7,688 |
/**
* 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... | narendragoyal/hbase | hbase-client/src/main/java/org/apache/hadoop/hbase/client/ZooKeeperRegistry.java | Java | apache-2.0 | 4,720 |
/*
* Copyright 2017 ThoughtWorks, 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 agr... | varshavaradarajan/gocd | server/src/test-fast/java/com/thoughtworks/go/server/service/plugins/processor/serverinfo/ServerInfoRequestProcessorTest.java | Java | apache-2.0 | 4,406 |
/*******************************************************************************
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | chanakaudaya/developer-studio | bps/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/editparts/FaultHandlerEditPart.java | Java | apache-2.0 | 5,167 |
/**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | jludvice/fabric8 | fabric/fabric-commands/src/main/java/io/fabric8/commands/ContainerCreateChildAction.java | Java | apache-2.0 | 5,818 |
/*
* 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 ... | pjain1/druid | server/src/main/java/org/apache/druid/segment/realtime/appenderator/PeonAppenderatorsManager.java | Java | apache-2.0 | 6,009 |
/*
* Copyright 2010-2016 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 "l... | flofreud/aws-sdk-java | aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/PutDestinationPolicyRequest.java | Java | apache-2.0 | 5,680 |
/*
* 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 ... | MichaelTong/cassandra-rapid | src/java/org/apache/cassandra/db/marshal/DurationType.java | Java | apache-2.0 | 3,127 |
package test.tmp;
import java.util.Random;
import org.testng.annotations.Test;
public class Tmp {
@Test(invocationCount = 10, threadPoolSize = 5)
public void f() {
ppp("START " + Thread.currentThread().getId());
try {
Thread.sleep(Math.abs(new Random().nextInt() % 300));
}
catch (Interru... | ludovicc/testng-debian | test/v4/src/test/tmp/Tmp.java | Java | apache-2.0 | 513 |
// Copyright 2000-2017 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.refactoring.extractMethod;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.util.P... | goodwinnk/intellij-community | java/java-impl/src/com/intellij/refactoring/extractMethod/JavaDuplicatesExtractMethodProcessor.java | Java | apache-2.0 | 10,894 |
import org.junit.*;
import play.mvc.*;
import static play.test.Helpers.*;
import static org.fest.assertions.Assertions.*;
public class ApplicationTest {
private static String TEST_USER = "test";
private static String FAKE_CSRF_TOKEN = "token";
@Test
public void renderTemplate() {
Content ht... | thomas-young-2013/wherehowsX | web/test/ApplicationTest.java | Java | apache-2.0 | 450 |