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 |
|---|---|---|---|---|---|
package com.google.api.ads.dfp.jaxws.v201311;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
*
* Captures a page of {@link LineItem} objects.
* ... | nafae/developer | modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201311/LineItemPage.java | Java | apache-2.0 | 3,216 |
package org.plantuml.idea.lang.annotator;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* {@link net.sourceforge.plantuml.syntax.LanguageDescriptor}
*
* Author: Eugene Steinberg
* Date: 9/27/14
*/
public enum LanguageDescriptor {
INSTANCE;
public static final String ... | esteinberg/plantuml4idea | src/org/plantuml/idea/lang/annotator/LanguageDescriptor.java | Java | apache-2.0 | 6,038 |
package io.joynr.accesscontrol.global;
/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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... | clive-jevons/joynr | java/backend-services/domain-access-controller-servlet/src/test/java/io/joynr/accesscontrol/global/TestContextListener.java | Java | apache-2.0 | 8,601 |
package mantis.appmanager;
import mantis.model.User;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.MetadataSources;
import org.hibernate.boot.registry.StandardServiceRegistry;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import java.util.List;
/**... | SanchelliosProg/java_for_testers | mantis-tests/src/test/java/mantis/appmanager/DbHelper.java | Java | apache-2.0 | 2,030 |
/*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spring-projects/spring-framework | spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/DefaultCacheInvocationContext.java | Java | apache-2.0 | 3,068 |
package org.dfhu.thpwa.routing;
import static spark.Spark.halt;
public class Halting {
public static void haltNotFound() {
halt(404, "{\"success\":false}");
}
public static void haltNotImplemented() {
halt(501, "{\"success\":false}");
}
}
| Victory/TreasureHuntPWA | backspark/src/main/java/org/dfhu/thpwa/routing/Halting.java | Java | apache-2.0 | 258 |
/**
* Copyright (c) 2008-2012, http://www.snakeyaml.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 appl... | Mohitsharma44/Citysynth | Citysynth_v2/Yaml_reader/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue116/HiddenSpecial.java | Java | apache-2.0 | 923 |
package me.rogers.bunny;
public interface Constants {
public static final String TITLE = "Bunny Hopper";
public static final String VERSION = "0.0.0.0.0"; //major.minor.month.day.year
public static final boolean DEBUG = true;
public static final float DEF... | BossLetsPlays/BunnyHopper | source/me/rogers/bunny/Constants.java | Java | apache-2.0 | 616 |
package org.apache.lucene.benchmark.byTask.tasks;
/**
* 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 Apac... | tokee/lucene | contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/ReadTokensTask.java | Java | apache-2.0 | 4,299 |
package com.team09.qanda;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import a... | CMPUT301F14T09/Team09Project | Team09_Q'sAndA's/src/com/team09/qanda/ThreadAdapter.java | Java | apache-2.0 | 14,910 |
/** Copyright 2015 Goshi Noguchi (noggon54@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 ap... | nog54/free-square | core/src/main/java/org/nognog/freeSquare/model/life/status/influence/CuriosityInfluence.java | Java | apache-2.0 | 1,210 |
/**
*
*/
package me.yumin.mongo.client;
/**
* @author xuanyin
*
*/
public class UserDAO extends MongoDAO<POJO> {
}
| wangym/koubei-mongo | src/test/java/me/yumin/mongo/client/UserDAO.java | Java | apache-2.0 | 136 |
/*
* Copyright 2015 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | porcelli-forks/guvnor | guvnor-inbox/guvnor-inbox-backend/src/main/java/org/guvnor/inbox/backend/server/PageRowBuilder.java | Java | apache-2.0 | 1,205 |
package com.paloma.android.schemamigration;
//import com.paloma.dao.DaoMaster;
//import com.paloma.dao.LatestMigration;
import junit.framework.TestCase;
/**
* Created by kaja on 15/04/2014.
*/
public class MigrationTest extends TestCase {
public void testPerformMigration() throws MigrationFailedException {
... | PalomaMobile/android-db-migration | android-db-migration-library/src/test/java/com/paloma/android/schemamigration/MigrationTest.java | Java | apache-2.0 | 1,783 |
import java.util.ArrayList;
import java.util.Queue;
import java.util.Random;
/**
* Created by Frank on 14-Feb-17.
*/
public class Pool {
public static final int PITS_COUNT = 0b10000;
private static final int TYPE_TOP = 0x000001;
private static final int TYPE_BOTTOM = 0x000;
private final int sideId;... | FrankCharlz/Bao | src/Pool.java | Java | apache-2.0 | 5,144 |
/**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* 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 fil... | jitsni/gateway.distribution | gateway.resource.address.wsr/src/test/java/org/kaazing/gateway/resource/address/wsr/WsrSslResourceAddressFactorySpiTest.java | Java | apache-2.0 | 7,260 |
package monitoring.capacity;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.util.Iterator;
import java.util.SortedMap;
import javax.swing.JPanel;
import org.jCharts.axisChart.AxisChart;
import org.jCharts.chartData.AxisChartData... | etrange02/PerfTestMaster | src/monitoring/capacity/CapacityGraph.java | Java | apache-2.0 | 2,902 |
package org.estatio.module.capex.imports;
import org.junit.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class OrderProjectImportAdapterTest {
@Test
public void deriveOrderNumber() {
// given
OrderProjectImportAdapter adapter = new OrderProjectImportAdapter();
... | estatio/estatio | estatioapp/app/src/test/java/org/estatio/module/capex/imports/OrderProjectImportAdapterTest.java | Java | apache-2.0 | 3,847 |
/*
************************************************************************************
* Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2011
* encuestame Development Team.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.... | cristiani/encuestame | enme-utils/src/main/java/org/encuestame/utils/web/UnitLocationTypeBean.java | Java | apache-2.0 | 1,968 |
/*
* Copyright 2007 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
*
* Unless required b... | sbower/kuali-rice-1 | krad/krad-web-framework/src/main/java/org/kuali/rice/krad/uif/widget/Help.java | Java | apache-2.0 | 975 |
/*
* Copyright (c) Baidu Inc. All rights reserved.
*
* 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 Apa... | jhunters/jprotobuf | src/main/java/com/baidu/bjf/remoting/protobuf/utils/compiler/AbstractCompiler.java | Java | apache-2.0 | 2,531 |
/*
* 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... | dain/aircompressor | src/test/java/io/airlift/compress/zstd/TestZstd.java | Java | apache-2.0 | 3,083 |
package org.endeavourhealth.ui.entitymap.models;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Java class for entity... | endeavourhealth/EDS | src/eds-ui/src/main/java/org/endeavourhealth/ui/entitymap/models/EntityMap.java | Java | apache-2.0 | 1,780 |
/*
* ARX: Powerful Data Anonymization
* Copyright 2012 - 2021 Fabian Prasser and 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/LICE... | arx-deidentifier/arx | src/main/org/deidentifier/arx/metric/v2/MetricMDPrecision.java | Java | apache-2.0 | 3,883 |
package com.waspring.wasservice.net.model.comm;
import com.waspring.wasservice.net.model.BaseObject;
public class SearchGroupReqMessage extends BaseObject {
/**
*
*/
private static final long serialVersionUID = 2064862604911203616L;
public Message MESSAGE = new Message();
public static class ... | fellyvon/wasindoor | wasservice/src/com/waspring/wasservice/net/model/comm/SearchGroupReqMessage.java | Java | apache-2.0 | 392 |
/*
* Copyright © 2015 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | anthcp/cdap | cdap-app-fabric/src/main/java/co/cask/cdap/metadata/DefaultMetadataAdmin.java | Java | apache-2.0 | 7,614 |
/*
* 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")... | estatio/estatio | estatioapp/app/src/main/java/org/estatio/module/index/EstatioIndexModule.java | Java | apache-2.0 | 2,822 |
package gov.nist.javax.sip;
import gov.nist.core.net.AddressResolver;
import gov.nist.javax.sip.clientauthutils.AccountManager;
import gov.nist.javax.sip.clientauthutils.AuthenticationHelper;
import gov.nist.javax.sip.clientauthutils.SecureAccountManager;
import gov.nist.javax.sip.header.extensions.JoinHeader;
import ... | fhg-fokus-nubomedia/signaling-plane | modules/lib-sip/src/main/java/gov/nist/javax/sip/SipStackExt.java | Java | apache-2.0 | 6,103 |
package chap07;
import org.springframework.context.support.GenericXmlApplicationContext;
public class MainXmlOrder {
public static void main(String[] args) {
GenericXmlApplicationContext ctx =
new GenericXmlApplicationContext("classpath:aopOrder.xml");
Calculator implCal = ctx.getBean("implCa... | crazyfyd/springEx | spring_demo/src/main/java/chap07/MainXmlOrder.java | Java | apache-2.0 | 403 |
/*
* (c) Copyright 2018 Palantir Technologies 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 ... | palantir/atlasdb | atlasdb-config/src/main/java/com/palantir/atlasdb/factory/TransactionManagers.java | Java | apache-2.0 | 47,093 |
/*
* (c) Copyright 2020 Palantir Technologies 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 ... | palantir/atlasdb | lock-api/src/test/java/com/palantir/lock/client/BatchingCommitTimestampGetterTest.java | Java | apache-2.0 | 6,688 |
package com.legendshop.business.dao;
import com.legendshop.core.dao.BaseDao;
import com.legendshop.model.entity.ImgFile;
import com.legendshop.model.entity.Indexjpg;
import java.util.List;
public abstract interface ImgFileDao extends BaseDao
{
public abstract List<Indexjpg> getIndexJpeg(String paramString)... | covito/legend-shop | src/main/java/com/legendshop/business/dao/ImgFileDao.java | Java | apache-2.0 | 668 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.11.29 at 12:35... | ryandcarter/hybris-connector | src/main/java/org/mule/modules/hybris/model/PriceRowsDTO.java | Java | apache-2.0 | 2,091 |
package io.corbel.lib.ws.model;
public abstract class ModelValidatorTestBase {
protected static final String TEST_ANYFIELD = "TEST_ANYFIELD";
protected static final String TEST_NOTEMPTY = "TEST_NOTEMPTY";
protected static final String TEST_NOTBLANK = "TEST_NOTBLANK";
protected static final String TEST... | corbel-platform/lib-ws | src/test/java/io/corbel/lib/ws/model/ModelValidatorTestBase.java | Java | apache-2.0 | 503 |
import org.junit.Test;
import org.junit.Assert;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
imp... | JAVA201708/Homework | 201710/20171024/Team1/WangJianMin/works/work01/TestMaster.java | Java | apache-2.0 | 14,890 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2013.11.29 at 12:35... | ryandcarter/hybris-connector | src/main/java/org/mule/modules/hybris/model/ConfigProxyMetaTypeDTO.java | Java | apache-2.0 | 1,105 |
package com.github.rodbate.stats;
import io.netty.util.internal.ConcurrentSet;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedList;
... | rodbate/IntegrationTest | src/main/java/com/github/rodbate/stats/GenericM.java | Java | apache-2.0 | 2,315 |
/*
* Copyright 2015 Variacode
*
* 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... | miguelantonio/property-change-observer | src/main/java/com/variacode/utils/object/changelistener/ObservableObjectAspect.java | Java | apache-2.0 | 1,628 |
/*
* 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 br.vn.Controlador;
import br.vn.Model.Repositorio.RepositorioTipoProduto;
import br.vn.Model.TipoProduto;
import java.util.Lis... | kleriston/Restaurante | src/java/br/vn/Controlador/ControladorTipoProdutoBean.java | Java | apache-2.0 | 1,262 |
// "Replace Collection.stream().count() with Collection.size()" "true"
import java.util.Arrays;
class Test {
long cnt() {
/*count*/
return Arrays.asList('d', 'e', 'f')./*stream*/size()/*after*/;
}
} | leafclick/intellij-community | java/java-tests/testData/inspection/inefficientStreamCount/afterStreamCount.java | Java | apache-2.0 | 216 |
/*
* 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... | saketh7/Jmeter | src/core/org/apache/jmeter/testbeans/gui/GenericTestBeanCustomizer.java | Java | apache-2.0 | 30,350 |
/*
* Copyright 2014-2017 Richard Linsdale.
*
* 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... | Richard-Linsdale/hockeytracker | processing/src/main/java/uk/theretiredprogrammer/hockeytracker/topcomponents/TrackDisplayVisual.java | Java | apache-2.0 | 8,620 |
package com.jyx.servlet;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.jyx.bean.AllStoreOverview;
import com.jyx.impl.AllStoreImp;... | jyx2020/emi | emiServer/src/com/jyx/servlet/AllStoreServlet.java | Java | apache-2.0 | 1,065 |
package pl.rafalmanka.matryoshkatext;
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() {
... | RafalManka/matryoshka-text | matryoshka-text/src/androidTest/java/pl/rafalmanka/matryoshkatext/ApplicationTest.java | Java | apache-2.0 | 359 |
// 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.psi.util;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Key;
import co... | leafclick/intellij-community | platform/core-api/src/com/intellij/psi/util/PsiModificationTracker.java | Java | apache-2.0 | 5,348 |
/*
* Copyright 2013 FasterXML.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 applicable law or agreed t... | kevinjom/jackson-modules-java8 | datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/ser/InstantSerializerBase.java | Java | apache-2.0 | 4,686 |
package org.dynaform.xml.form;
/**
* @author Rein Raudjärv
*/
public class ElementCounter extends BaseFormVisitor {
private int counter;
public <E> void element(FormElement<E> element) {
counter++;
}
public int getCount() {
return counter;
}
public static int count(Form f... | reinra/dynaform | src/main/java/org/dynaform/xml/form/ElementCounter.java | Java | artistic-2.0 | 496 |
package ru.st.selenium;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.WebDriver;
import org... | georgue/test-selenium-java | src/test/java/ru/st/selenium/CreateDiscriptionFilmWithOutYeartest.java | Java | artistic-2.0 | 2,122 |
/*
* Crée le 15 sept. 08 par Ludovic Chaboud.
*
*/
package org.ludo.codegenerator.fusion.modification.bean;
/**
* Description de la classe.
*
* @author Ludovic Chaboud
* @date 15 sept. 08
* @version $Revision$ $Date$
*
*/
public interface Contenu
{
}
| ludo1026/tuto | generator-config-xml-to-source-code/src/org/ludo/codegenerator/fusion/modification/bean/Contenu.java | Java | artistic-2.0 | 266 |
package pattern.p6_abstract_factory;
public class FemaleFactory extends AbstractHumanFactory {
@Override
public Human createYellowHuman() {
return super.createHuman(YellowFemaleHuman.class);
}
@Override
public Human createWhiteHuman() {
return super.createHuman(WhiteFemaleHuman.cla... | douhao4648/Test | src/pattern/p6_abstract_factory/FemaleFactory.java | Java | artistic-2.0 | 334 |
package com.learn.CoolWeather.model;
public class Country {
private int id;
private String countyName;
private String countyCode;
private int cityId;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getCountyName() {
return countyName;
}
public void setCo... | shuicg/CoolWeather | src/com/learn/CoolWeather/model/Country.java | Java | artistic-2.0 | 642 |
package de.bht.mmi.iot.service;
import de.bht.mmi.iot.exception.EntityNotFoundException;
import org.springframework.cache.Cache;
public interface CacheService {
Iterable<String> getAllCacheNames();
Cache getOneByCacheName(String cacheName) throws EntityNotFoundException;
void clearOne(String cacheName)... | TomWieschalla/Masterprojekt-WS15-16-MMI-IoT | iot-backend/iot-friss/src/main/java/de/bht/mmi/iot/service/CacheService.java | Java | bsd-2-clause | 378 |
/*
* Copyright (c) 2018, Adam <Adam@sigterm.info>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* li... | abelbriggs1/runelite | runelite-client/src/main/java/net/runelite/client/plugins/crystalmathlabs/CrystalMathLabs.java | Java | bsd-2-clause | 4,470 |
package com.sanluan.cms.entities.cms;
// Generated 2015-5-6 15:49:39 by Hibernate Tools 4.0.0
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;... | 858888/PublicCMS | src/com/sanluan/cms/entities/cms/CmsDictionary.java | Java | bsd-2-clause | 1,490 |
/**
* Sep 3, 2006
*
* Copyright 2004 uitags
*
* 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... | UCSFMemoryAndAging/lava | uitags/uitags-maven-plugin/src/main/java/net/sf/uitags/build/StringUtils.java | Java | bsd-2-clause | 1,239 |
package cz.metacentrum.perun.core.impl.modules.attributes;
import cz.metacentrum.perun.audit.events.AttributesManagerEvents.AllAttributesRemovedForGroup;
import cz.metacentrum.perun.audit.events.AttributesManagerEvents.AllAttributesRemovedForUser;
import cz.metacentrum.perun.audit.events.AttributesManagerEvents.Attrib... | balcirakpeter/perun | perun-core/src/main/java/cz/metacentrum/perun/core/impl/modules/attributes/urn_perun_user_attribute_def_virt_eduPersonScopedAffiliations.java | Java | bsd-2-clause | 16,491 |
package pl.setblack.pongi;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.fasterxml.jackson.module.paramnames.ParameterNamesModule;
import javaslang.jackson.datatype.JavaslangModule;
impo... | javaFunAgain/ratpong | src/main/java/pl/setblack/pongi/JsonMapping.java | Java | bsd-2-clause | 1,201 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package DAO;
import DAO.exceptions.NonexistentEntityException;
import entity.Lamina;
import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Entity... | inulinux12/mundial-jpa | src/DAO/LaminaJpaController.java | Java | bsd-2-clause | 4,226 |
package visdebugger.arrays.view;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
/**
*
* This is an abstract view for Value-Histor... | bilalsal/EclipseTracer | src/visdebugger/arrays/view/ArrayValueView.java | Java | bsd-2-clause | 1,015 |
/**
* SqlJetByteArrayBuffer.java
* Copyright (C) 2009-2013 TMate Software Ltd
*
* 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; version 2 of the License.
*
* This program is distributed... | SenshiSentou/SourceFight | sqljet-1.1.7/src/org/tmatesoft/sqljet/core/internal/memory/SqlJetByteArrayBuffer.java | Java | bsd-2-clause | 12,768 |
package cz.metacentrum.perun.core.impl.modules.attributes;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.AttributeDefinition;
import cz.metacentrum.perun.core.api.AttributesManager;
import cz.metacentrum.perun.core.api.Resource;
import cz.metacentrum.perun.core.api.exceptions.Int... | licehammer/perun | perun-core/src/main/java/cz/metacentrum/perun/core/impl/modules/attributes/urn_perun_resource_attribute_def_def_apacheAuthzFile.java | Java | bsd-2-clause | 2,429 |
/*
* Copyright (c) 2013, Dwijesh Bhageerutty
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of c... | dbhage/qasp | src/forms/AskForWordDialog.java | Java | bsd-2-clause | 8,646 |
/**
* This class is generated by jOOQ
*/
package us.fok.lenzenslijper.models.jooq.routines;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.3.0" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "a... | fokus-llc/lenzenslijper | src/main/java/us/fok/lenzenslijper/models/jooq/routines/_OverviewConstraintInfo.java | Java | bsd-2-clause | 3,707 |
/*
* #%L
* SCIFIO library for reading and converting scientific file formats.
* %%
* Copyright (C) 2011 - 2021 SCIFIO developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of so... | scifio/scifio | src/main/java/io/scif/ByteArrayReader.java | Java | bsd-2-clause | 2,293 |
package uk.co.littlemike.bitshadow.web.config;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
public class BitShadowConfiguration extends Configuration {
@JsonProperty("swagger")
public BitShadowSwaggerBundleConfiguration swaggerBundleConfiguration
= new... | LittleMikeDev/bitshadow | bitshadow-web/src/main/java/uk/co/littlemike/bitshadow/web/config/BitShadowConfiguration.java | Java | bsd-2-clause | 463 |
package org.mapfish.print.processor.map;
import org.geotools.feature.DefaultFeatureCollection;
import org.geotools.feature.simple.SimpleFeatureBuilder;
import org.geotools.feature.simple.SimpleFeatureTypeBuilder;
import org.geotools.geometry.jts.JTS;
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geot... | mapfish/mapfish-print | core/src/main/java/org/mapfish/print/processor/map/CreateOverviewMapProcessor.java | Java | bsd-2-clause | 9,429 |
package new_dice_game_dev;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Peaklass2 {
private static Scanner scan;
public static void main(String[] args) {
T2ring punane = new T2ring();
M2nguv2li uusasi = new M2nguv2li(61);
boolean m2ng = true;
... | blar2x/new_dice_game | Peaklass2.java | Java | bsd-2-clause | 5,078 |
/**
*
*/
package sim.net.topology.reader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.util.ArrayList;
import java.util.List;
import sim.net.Host;
import sim.net.links.NormalLink;
import sim.net.router.Router;... | bramp/p2psim | src/sim/net/topology/reader/GTITMReader.java | Java | bsd-2-clause | 2,731 |
package SynthLang.constraints;
/*Generated by MPS */
import jetbrains.mps.smodel.runtime.base.BaseConstraintsDescriptor;
import jetbrains.mps.smodel.adapter.ids.MetaIdFactory;
import java.util.Map;
import jetbrains.mps.smodel.adapter.ids.SReferenceLinkId;
import jetbrains.mps.smodel.runtime.ReferenceConstraintsDescri... | theoneone/DSLE-SS16-Project | Synthetica/languages/SynthLang/source_gen/SynthLang/constraints/Connection_Constraints.java | Java | bsd-2-clause | 2,849 |
package fr.laas.fape.planning.core.planning.search.strategies.plans;
import fr.laas.fape.planning.core.planning.states.PartialPlan;
import java.util.LinkedList;
import java.util.List;
/**
* Used to use a sequence of PartialPlanComparator as one.
*
* The basic algorithm for comparing two partial plans is to apply ... | athy/fape | planning/src/main/java/fr/laas/fape/planning/core/planning/search/strategies/plans/SeqPlanComparator.java | Java | bsd-2-clause | 1,847 |
/**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INS... | EPapadopoulou/PersoNIS | api/java/external/src/test/java/org/societies/api/privacytrust/privacy/util/privacypolicy/DecisionUtilsTest.java | Java | bsd-2-clause | 3,751 |
/**
* This class is generated by jOOQ
*/
package us.fok.lenzenslijper.models.jooq.routines;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.3.0" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "a... | fokus-llc/lenzenslijper | src/main/java/us/fok/lenzenslijper/models/jooq/routines/Enablelongtransactions.java | Java | bsd-2-clause | 972 |
package core.menu;
import gui.FontManager;
import gui.LoadingScreenGUI;
import gui.TextureLoader;
import gui.ui.HudOverlay;
import sound.SoundManager;
import core.Frame;
import core.Frame.GameState;
/**
* Loading bar controller.
* @author Michael Cashmore
*/
public class LoadingScreen extends Screen {
int state;... | m312z/Framework | src/core/menu/LoadingScreen.java | Java | bsd-2-clause | 1,915 |
package com.glob3.mobile.owm.shared.data;
import com.glob3.mobile.owm.shared.data.Places;
public interface DialogDataListener {
public void onFinishedDownloadPlaces(final Places places);
}
| glob3mobile/g3m_owm | Shared/g3m_owm_shared/src/com/glob3/mobile/owm/shared/data/DialogDataListener.java | Java | bsd-2-clause | 197 |
import java.util.ArrayList;
class heaptm {
heaptm(int v, heaptm f, heaptm s) {
value = 1; // v;
fst = f;
snd = s;
}
int value;
heaptm fst;
heaptm snd;
int sum() {
int r = value;
if (fst != null) { r += fst.sum(); }
if (snd != null) { r += snd.sum(); }
return r;
}
static heapt... | ahiguti/pxc | pxc/tests/skip_076_ptrtiming/heaptm.java | Java | bsd-3-clause | 1,064 |
import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.util.*;
import java.util.concurrent.locks.ReentrantLock;
import java.util.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
impor... | molguin92/processing | Gravity/.build/source/Gravity.java | Java | bsd-3-clause | 11,596 |
package edu.umn.cs.crisys.tb.model.port;
import java.util.ArrayList;
import java.util.List;
import edu.umn.cs.crisys.tb.model.ModelElement;
import edu.umn.cs.crisys.tb.model.ModelElementBase;
import edu.umn.cs.crisys.tb.model.connection.PortConnection;
import edu.umn.cs.crisys.tb.model.thread.ThreadImplementation;
im... | smaccm/smaccm | fm-workbench/trusted-build/edu.umn.cs.crisys.tb/src/edu/umn/cs/crisys/tb/model/port/PortFeature.java | Java | bsd-3-clause | 4,472 |
/*
* Copyright (c) 2002-2021, City of Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the f... | rzara/lutece-core | src/java/fr/paris/lutece/portal/service/filter/LuteceFilter.java | Java | bsd-3-clause | 5,532 |
package io.toolisticon.annotationprocessor;
import io.toolisticon.annotationprocessortoolkit.TestAnnotation;
import io.toolisticon.annotationprocessortoolkit.tools.annotationutilstestclasses.ClassArrayAttributeAnnotation;
import io.toolisticon.annotationprocessortoolkit.tools.annotationutilstestclasses.ClassAttributeA... | holisticon/annotation-processor-toolkit | annotationprocessor/src/test/resources/AnnotationClassAttributeTestClass.java | Java | bsd-3-clause | 1,546 |
/**
* File: PersistenceModelObject.java Copyright (c) 2010 phyo 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 2 of the License, or (at your option) any later version. This
... | synergynet/synergyview | synergyview-core/src/synergyviewcore/model/PersistenceModelObject.java | Java | bsd-3-clause | 2,446 |
package de.plushnikov.builder.issue165;
public class BuilderTest {
public static void main(String[] args) {
System.out.println(CommonBuilder.personBuilder().withTwoKids().firstName("FirstName"));
System.out.println(CommonBuilder.petBuilder().asMickeMouse().name("Name"));
}
}
| HamsterCoders/lombok-intellij-plugin | test-manual/lombok/src/main/java/de/plushnikov/builder/issue165/BuilderTest.java | Java | bsd-3-clause | 301 |
/*
* @lc app=leetcode id=436 lang=java
*
* [436] Find Right Interval
*
* https://leetcode.com/problems/find-right-interval/description/
*
* algorithms
* Medium (48.29%)
* Total Accepted: 59.5K
* Total Submissions: 123.3K
* Testcase Example: '[[1,2]]'
*
* You are given an array of intervals, where inter... | lang010/acit | leetcode/436.find-right-interval.411823143.ac.java | Java | bsd-3-clause | 2,170 |
/*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list o... | dhis2/dhis2-android-sdk | core/src/androidTest/java/org/hisp/dhis/android/core/utils/integration/mock/BaseMockIntegrationTestEmptyEnqueable.java | Java | bsd-3-clause | 2,264 |
//======================================================================================
// Copyright 5AM Solutions Inc, Yale University
//
// Distributed under the OSI-approved BSD 3-Clause License.
// See http://ncip.github.com/caarray/LICENSE.txt for details.
//=======================================================... | NCIP/caarray | software/caarray-common.jar/src/test/java/gov/nih/nci/caarray/dao/HibernateIntegrationTestCleanUpUtility.java | Java | bsd-3-clause | 6,899 |
/*
* Copyright (c) 2015, Institute of Computer Engineering, University of Lübeck
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain th... | iti-luebeck/MARS | MARS_NB/MARS/FishSim/src/mars/FishSim/control/SwarmViewControl.java | Java | bsd-3-clause | 3,717 |
package com.demigodsrpg.aspect.bloodlust;
import com.demigodsrpg.DGData;
import com.demigodsrpg.ability.Ability;
import com.demigodsrpg.ability.AbilityResult;
import com.demigodsrpg.aspect.Aspect;
import com.demigodsrpg.aspect.Groups;
import com.demigodsrpg.model.PlayerModel;
import com.demigodsrpg.util.ItemUtil;
impo... | DemigodsRPG/DemigodsRPG | src/main/java/com/demigodsrpg/aspect/bloodlust/BloodlustAspectII.java | Java | bsd-3-clause | 3,765 |
/*
* Copyright (c) 2009-2010, Sergey Karakovskiy and Julian Togelius
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
*... | allenywang/Alex | src/ch/idsia/scenarios/Custom.java | Java | bsd-3-clause | 2,834 |
package de.kuei.metafora.reflectiontool.server.xml;
public class XMLException extends PlanningToolException
{
public XMLException(Throwable cause)
{
super(cause);
}
public XMLException(String message)
{
super(message);
}
}
| metafora-project/ReflectionTool | src/de/kuei/metafora/reflectiontool/server/xml/XMLException.java | Java | bsd-3-clause | 269 |
package Util2415;
import java.util.Vector;
/**
* Queue used to organize events in systems
*
* @author Robotics
*/
public class BlockingQueue {
private Vector queue; //events are held here
public BlockingQueue(int limit) {
queue = new Vector(limit);
}
public synchronized... | wiredcats/EventBasedWiredCats | src/Util2415/BlockingQueue.java | Java | bsd-3-clause | 991 |
package com.verisign.iot.discovery.domain;
import com.verisign.iot.discovery.commons.Constants;
import java.util.Objects;
/**
* Class to capture service instance related information. This includes both the SRV and TXT record information. It implements
* {@link Comparable} to sort services based on priority of {@li... | rpiccand/iot-discovery-services | src/main/java/com/verisign/iot/discovery/domain/ServiceInstance.java | Java | bsd-3-clause | 3,719 |
package org.pocketcampus.plugin.map.server.jsonitems;
/**
* Class used to deserialize content from the routing server
*
* @status Complete
*
* @author Jonas
*/
public class Feature {
public GeometryF geometry;
public String type;
public String id;
}
| ValentinMinder/pocketcampus | plugin/map/server/src/main/java/org/pocketcampus/plugin/map/server/jsonitems/Feature.java | Java | bsd-3-clause | 263 |
/*
* Copyright (c) 2013, Michael Alyn Miller <malyn@strangeGizmo.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyrigh... | malyn/vimserver | src/main/java/com/michaelalynmiller/vimserver/IVimDataHandler.java | Java | bsd-3-clause | 2,034 |
/*
* Copyright (c) 2002-2021, City of Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the f... | rzara/lutece-core | src/java/fr/paris/lutece/portal/business/template/CommonsInclude.java | Java | bsd-3-clause | 3,578 |
/**
*============================================================================
* The Ohio State University Research Foundation, The University of Chicago -
* Argonne National Laboratory, Emory University, SemanticBits LLC,
* and Ekagra Software Technologies Ltd.
*
* Distributed under the OSI-approved BSD 3-Clau... | NCIP/cagrid-portal | cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/diagnostics/PortalStatusDiagnosticService.java | Java | bsd-3-clause | 2,669 |
/**
*
*/
package utils.reflect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.core.io.support.ResourcePatternResolver;
import org.springframework.core.ty... | Jakegogo/concurrent | concur/src-utils/utils/reflect/PackageScanner.java | Java | bsd-3-clause | 4,416 |
package kr.ac.kaist.jsaf.nodes;
import java.lang.Double;
import java.lang.String;
import java.math.BigInteger;
import java.io.Writer;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import java.util.LinkedList;
import kr.ac.kaist.jsaf.nodes_util.*;
import kr.ac.ka... | darkrsw/safe | src/main/java/kr/ac/kaist/jsaf/nodes/NodeDepthFirstVisitor_void.java | Java | bsd-3-clause | 57,219 |
package net.minidev.ovh.api.router;
/**
* All executable types of tasks
*/
public enum OvhTaskFunctionEnum {
addDnat("addDnat"),
addDnatMaster("addDnatMaster"),
addNetwork("addNetwork"),
addNetworkMaster("addNetworkMaster"),
addPrivateLink("addPrivateLink"),
addPrivateLinkMaster("addPrivateLinkMaster"),
addPr... | UrielCh/ovh-java-sdk | ovh-java-sdk-router/src/main/java/net/minidev/ovh/api/router/OvhTaskFunctionEnum.java | Java | bsd-3-clause | 1,170 |
/*================================================================================
Copyright (c) 2013 Steve Jin. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must re... | paksv/vijava | src/com/vmware/vim25/HostSystemSwapConfigurationSystemSwapOption.java | Java | bsd-3-clause | 1,969 |
// This is a generated file. Not intended for manual editing.
package io.v.vdl.psi.impl;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiElementVisitor;
import com.intellij.psi.util.PsiTreeUtil;
import static io... | vanadium/intellij-vdl-plugin | gen/io/v/vdl/psi/impl/VdlTypeReferenceExpressionImpl.java | Java | bsd-3-clause | 1,356 |
package org.musicbrainz.search.solrwriter.xml;
import org.musicbrainz.search.solrwriter.AbstractMBWriterAreaTest;
import org.musicbrainz.search.solrwriter.MBXMLWriterTestInterface;
public class MBXMLWriterAreaTest extends AbstractMBWriterAreaTest implements MBXMLWriterTestInterface {
static {
corename = "area";
}... | metabrainz/mb-solrquerywriter | mb-solr/src/test/java/org/musicbrainz/search/solrwriter/xml/MBXMLWriterAreaTest.java | Java | bsd-3-clause | 323 |