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 (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | teamfx/openjfx-9-dev-rt | modules/javafx.graphics/src/main/java/javafx/stage/PopupWindow.java | Java | gpl-2.0 | 41,662 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest11696.java | Java | gpl-2.0 | 2,757 |
package org.regkas.service.rest;
import javax.enterprise.context.Dependent;
import javax.enterprise.inject.Specializes;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.MediaType;
import java.net.URL;
import java.util.function.Function;
@Specializes
@Dependent
public ... | andi-git/boatpos | regkas-server/regkas-server-service/regkas-server-service-rest/src/test/java/org/regkas/service/rest/RestTestHelper.java | Java | gpl-2.0 | 1,042 |
package com.nidzo.filetransfer;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.CheckBox;
impo... | nidzo732/FileTransfer | Android/FileTransfer/app/src/main/java/com/nidzo/filetransfer/MainActivity.java | Java | gpl-2.0 | 5,281 |
package lab.springboot.authorization.controller;
import lab.springboot.authorization.config.SecurityProperties;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;... | rojarsmith/Lab | lab-springboot/lab-springboot-security-oauth2-authorization-expansion/src/main/java/lab/springboot/authorization/controller/OauthController.java | Java | gpl-2.0 | 734 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be ... | FauxFaux/jdk9-jdk | test/java/util/concurrent/locks/Lock/Mutex.java | Java | gpl-2.0 | 3,212 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest16926.java | Java | gpl-2.0 | 2,641 |
package com.mbpr.gengjian.playface;
import java.util.List;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
/**
* Created by gengjian on 15/12/23.
*/
public class ViewPagerAdapter extends PagerAdapter {
private Lis... | gengjian1203/PlayFace | app/src/main/java/com/mbpr/gengjian/playface/ViewPagerAdapter.java | Java | gpl-2.0 | 1,100 |
package playertraits.traits;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
public class StrengthTrait extends Trait {
public StrengthTrait() {
super("Strength");
}
@Override
public void tick(EntityPlayerMP player) {
player.ad... | HexagonalDiamond/PlayerTraits | src/main/java/playertraits/traits/StrengthTrait.java | Java | gpl-2.0 | 430 |
package com.day21;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
/**
* 代理类
* @author tenlee
*
*/
public class Proxy implements InvocationHandler{
private Subject target;
public Proxy(Subject target) {
this.target = target;
}
@Override
public Object invoke(Object proxy, Method... | tenlee2012/AllCode | JAVA/CodingkeStudy/src/com/day21/Proxy.java | Java | gpl-2.0 | 549 |
package com.insane.levellingtools;
import net.minecraftforge.common.config.Configuration;
import java.io.File;
/**
* Created by Michael on 11/08/2014.
*/
public class Config {
public static int baseXP;
public static int increasePerLevel;
public static int maxLevel;
public static void doConfig(File ... | MikeLydeamore/LevellingTools | src/main/java/com/insane/levellingtools/Config.java | Java | gpl-2.0 | 877 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package delay.model;
/**
*
* @author M3 New
*/
public class Pesawat {
private String namaPesawat;
private String idPesawat;
private String idMaskapai;
public Pesawat(){
}
public... | 6306120058/Delay-Plane-Display-App | src/delay/model/Pesawat.java | Java | gpl-2.0 | 1,027 |
package edu.cmu.cs.dickerson.kpd.solver.exception;
public class SolverException extends Exception {
private static final long serialVersionUID = 1L;
public SolverException(String message) {
super(message);
}
}
| JohnDickerson/KidneyExchange | src/edu/cmu/cs/dickerson/kpd/solver/exception/SolverException.java | Java | gpl-2.0 | 219 |
package com.mediatek.gallery3d.ext;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import java.util.ArrayList;
/**
* The composite pattern class.
* It will deliver every action to its leaf hookers.
*/
public class Activ... | rex-xxx/mt6572_x201 | packages/apps/Gallery2/ext/src/com/mediatek/gallery3d/ext/ActivityHookerGroup.java | Java | gpl-2.0 | 3,654 |
/*
* Copyright (c) 2015 High Tech Kids. All rights reserved
* HighTechKids is on the web at: http://www.hightechkids.org
* This code is released under GPL; see LICENSE.txt for details.
*/
package fll.web.report;
import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;
import java.uti... | jpschewe/fll-sw | src/main/java/fll/web/report/PromptSummarizeScores.java | Java | gpl-2.0 | 4,759 |
package io.github.phantamanta44.botah.core.context;
import io.github.phantamanta44.botah.core.rate.RateLimitedChannel;
import io.github.phantamanta44.botah.util.MessageUtils;
import sx.blah.discord.api.Event;
import sx.blah.discord.handle.obj.IChannel;
import sx.blah.discord.handle.obj.IGuild;
import sx.blah.discord.h... | phantamanta44/BotAgainstHumanity | src/main/java/io/github/phantamanta44/botah/core/context/GenericEventContext.java | Java | gpl-2.0 | 2,047 |
// Test case for Issue 291
// https://code.google.com/p/checker-framework/issues/detail?id=291
// @skip-test
import java.util.regex.*;
import org.checkerframework.checker.regex.RegexUtil;
public class MatcherGroupCount {
public static void main(String[] args) {
String regex = args[0];
String conten... | biddyweb/checker-framework | checker/tests/regex/MatcherGroupCount.java | Java | gpl-2.0 | 944 |
/*
* Copyright 2016-2020 Ping Identity Corporation
* All Rights Reserved.
*/
/*
* Copyright 2016-2020 Ping Identity Corporation
*
* 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
*
* ... | UnboundID/ldapsdk | src/com/unboundid/ldap/sdk/unboundidds/tools/SplitLDIFFilterTranslator.java | Java | gpl-2.0 | 11,362 |
/*
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Fou... | unktomi/form-follows-function | mjavac/langtools/src/share/classes/javax/lang/model/type/UnknownTypeException.java | Java | gpl-2.0 | 2,970 |
/*
* Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | unktomi/form-follows-function | mjavac/langtools/test/tools/javac/generics/ArrayTypearg.java | Java | gpl-2.0 | 1,406 |
package co.edu.uniandes.csw.marketplace.providers;
import javax.ws.rs.NameBinding;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@NameBinding
@Retention(RetentionPolicy.RUNTIME)
public @interface StatusCreated {}
| MISO4203-201520/mp-books | MarketPlace.web/src/main/java/co/edu/uniandes/csw/marketplace/providers/StatusCreated.java | Java | gpl-2.0 | 253 |
/*
* RAFTools - Copyright (C) 2016 Zane van Iperen.
* Contact: zane@zanevaniperen.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, and only
* version 2 as published by the Free Software Foundation.
*
* This... | vs49688/RAFTools | src/main/java/net/vs49688/rafview/wwise/objects/EventActionObject.java | Java | gpl-2.0 | 1,110 |
package com.xebia.googlevrpanorama;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.support.annotation.UiThread;
import android.util.Log;
import android.util.Pair;
import android.util.LruCach... | Apacio/react-native-google-vr-panorama | android/src/main/java/com/xebia/googlevrpanorama/RNGoogleVRPanoramaView.java | Java | gpl-2.0 | 9,255 |
package model.protocol.osc.touchosc;
public class SnappingFader {
static final float SNAP_DELTA = 0.1f;
private double currentRealValue;
public SnappingFader(final double currentRealValue) {
this.currentRealValue = currentRealValue;
}
public void tryUpdate(final double value, final ISnappingFaderEventHandler ... | stereokrauts/stereoscope | stereoscope/src/main/java/model/protocol/osc/touchosc/SnappingFader.java | Java | gpl-2.0 | 671 |
package com.holdit.feedthemax;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;
import static com.holdit.feedthemax.MainActivity.rbt1qu;
import static ... | GreenGas48/Feed-The-Max | RobotsActivity.java | Java | gpl-2.0 | 3,148 |
package hrylab.xjtu.wifip2papp.wifidirect;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import android.net.wifi.p2p.WifiP2pDeviceList;
import android.net.wifi.p2p.WifiP2pManager.PeerListListener;
import android.util.Log;
/*
* @author NickHuang
*/
public class WifiPeerListList... | RanHuang/AndroidProject | WiFi P2p/WifiP2pApp/src/hrylab/xjtu/wifip2papp/wifidirect/WifiPeerListListener.java | Java | gpl-2.0 | 1,609 |
package org.anddev.andengine.entity.layer.tiled.tmx;
import static junit.framework.Assert.assertEquals;
import java.io.File;
import org.junit.Test;
/**
* @author Nicolas Gramlich
* @since 21:21:51 - 28.07.2010
*/
public class TMXTiledMapArtifactFixerTest {
// ====================================================... | ricardobaumann/android | libs/android_application_2d_adventure_game-master/andenginetmxtiledmapartifactfixer-6410e89ad5e3/test/org/anddev/andengine/entity/layer/tiled/tmx/TMXTiledMapArtifactFixerTest.java | Java | gpl-2.0 | 1,740 |
package Vistas;
import Conexion.ConexioSQLite;
import static Vistas.Cuenta.modeloCuenta;
import static Vistas.Cuenta.sumaProductos;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultT... | cristian0193/EstructuraDatos | ProyectoFinalBaresUCC/src/Vistas/Productos.java | Java | gpl-2.0 | 9,862 |
package helper;
import java.awt.AlphaComposite;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
public class GhostGlassPane extends JPanel
{
private AlphaComposite composite;
private BufferedImage dragged =... | pja35/ThePyBotWarPro | src/main/java/helper/GhostGlassPane.java | Java | gpl-2.0 | 1,128 |
/**
* OWASP Benchmark Project v1.2
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://owasp.org/www-project-benchmark/">https://owasp.org/www-project-benchmark/</a>.
*
* The OWASP Benchmark is free software: you can redistribute it ... | h3xstream/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest00544.java | Java | gpl-2.0 | 2,453 |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to th... | FauxFaux/jdk9-jdk | src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java | Java | gpl-2.0 | 18,582 |
/*
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | teamfx/openjfx-10-dev-rt | modules/jdk.packager/src/main/java/com/oracle/tools/packager/jnlp/JNLPBundler.java | Java | gpl-2.0 | 56,509 |
/*******************************************************************************
* Copyright (c) 2006-2007 Nicolas Richeton.
* 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 availa... | bdaum/zoraPD | org.eclipse.nebula.widgets.gallery/src/org/eclipse/nebula/widgets/gallery/AbstractGalleryItemRenderer.java | Java | gpl-2.0 | 9,697 |
package cmucoref.mention.extractor;
import cmucoref.document.Document;
import cmucoref.document.Lexicon;
import cmucoref.document.Sentence;
import cmucoref.exception.MentionException;
import cmucoref.mention.Mention;
import cmucoref.mention.eventextractor.EventExtractor;
import cmucoref.mention.extractor.relationextra... | XuezheMax/cmucoref | src/cmucoref/mention/extractor/MentionExtractor.java | Java | gpl-2.0 | 27,355 |
package it.everin.ui;
import static org.junit.Assert.*;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
public class jSignerFastTest {
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception ... | everin/jSignerFast | src/test/java/it/everin/ui/jSignerFastTest.java | Java | gpl-2.0 | 424 |
/**
* @author Eric D. Dill eddill@ncsu.edu
* @author James D. Martin jdmartin@ncsu.edu
* Copyright © 2010-2013 North Carolina State University. All rights reserved
*/
package email;
import java.util.Properties;
public class PropertiesFactory {
public static Properties getGmailProperties() {
Properties gmail =... | TheMartinLab/GlobalPackages | misc/email/PropertiesFactory.java | Java | gpl-2.0 | 536 |
package io.ravitej.selenium.extensions.tests;
import io.ravitej.selenium.extensions.WebDriverExtensions;
import org.apache.commons.lang3.tuple.Pair;
import org.assertj.core.api.SoftAssertions;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import org.openqa.selenium.*;
import org.openqa.se... | ravitej-aluru/UI-Automation-Framework.Java | selenium-extensions/src/test/java/io/ravitej/selenium/extensions/tests/WebDriverExtensionsTests.java | Java | gpl-2.0 | 4,010 |
package com.androidgames.framework.gl;
import javax.microedition.khronos.opengles.GL10;
import android.util.FloatMath;
import com.androidgames.framework.impl.GLGraphics;
import com.androidgames.framework.math.Vector2;
public class SpriteBatcher {
final float[] verticesBuffer;
int bufferIndex;
fi... | ncuongce/SleepyTrout | src/com/androidgames/framework/gl/SpriteBatcher.java | Java | gpl-2.0 | 4,487 |
/*
* This is the source code of Telegram for Android v. 5.x.x.
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Nikolai Kudashov, 2013-2018.
*/
package org.telegram.ui.Adapters;
import android.content.Context;
import andr... | tkpb/Telegram | TMessagesProj/src/main/java/org/telegram/ui/Adapters/DialogsSearchAdapter.java | Java | gpl-2.0 | 53,484 |
package controler;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.util.Observable;
import java.util.Observer;
import javax.swing.AbstractAction;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
// INTERNE
import model.Model;
import ressource... | caronpe/dessinvectoriel | controler/ActionOutilTrait.java | Java | gpl-2.0 | 1,809 |
package command;
import org.junit.Test;
/**
* Created by eder on 19/10/15.
*/
public class RemoteCeilingFanTest {
@Test
public void testRemoteControlCeilingFan(){
RemoteControl remoteControl = new RemoteControl();
CeilingFan ceilingFan = new CeilingFan("Living room");
CeilingFanHi... | EderRoger/design_pattern | test/src/command/RemoteCeilingFanTest.java | Java | gpl-2.0 | 1,075 |
/*
* Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | loverdos/javac-openjdk7 | src/main/java/openjdk7/com/sun/tools/javac/code/BoundKind.java | Java | gpl-2.0 | 1,721 |
/*
JPC: An x86 PC Hardware Emulator for a pure Java Virtual Machine
Copyright (C) 2012-2013 Ian Preston
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as published by
the Free Software Foundation.
This progra... | smeny/JPC | src/main/java/com/github/smeny/jpc/emulator/execution/opcodes/pm/fxch_ST0_ST2.java | Java | gpl-2.0 | 1,856 |
/**
* Copyright (c) 2009--2010 Red Hat, Inc.
*
* This software is licensed to you under the GNU General Public License,
* version 2 (GPLv2). There is NO WARRANTY for this software, express or
* implied, including the implied warranties of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. You should have rece... | colloquium/spacewalk | java/code/src/com/redhat/rhn/frontend/action/systems/monitoring/ProbesListSetupAction.java | Java | gpl-2.0 | 2,226 |
package com.yh.hr.res.pt.queryhelper;
import com.yh.hr.res.pt.dto.PtReportHistoryDTO;
import com.yh.platform.core.dao.DaoUtil;
import com.yh.platform.core.exception.ServiceException;
import com.yh.platform.core.util.BeanHelper;
import org.apache.commons.collections.CollectionUtils;
import java.util.List;
/**
* 获取报表... | meijmOrg/Repo-test | freelance-hr-res/src/java/com/yh/hr/res/pt/queryhelper/PtReportHistoryQueryHelper.java | Java | gpl-2.0 | 1,027 |
/*
* Copyright (C) 2009 Swedish Institute of Computer Science (SICS) Copyright (C)
* 2009 Royal Institute of Technology (KTH)
*
* KompicsToolbox 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 ver... | Decentrify/GVoD | hops/core/src/main/java/se/sics/nstream/hops/kafka/avro/AvroParser.java | Java | gpl-2.0 | 4,973 |
package com.kartoflane.superluminal2.ui.sidebar.data;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt... | kartoFlane/superluminal2 | src/java/com/kartoflane/superluminal2/ui/sidebar/data/ImageDataComposite.java | Java | gpl-2.0 | 3,552 |
// Copyright 2012,2013 Vaughn Vernon
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... | LeonardCohen/coding | IDDD_Samples-master/agilepm/src/test/java/com/saasovation/agilepm/application/product/ProductApplicationServiceTest.java | Java | gpl-2.0 | 8,537 |
package com.atux.desktop.promocion;
import com.atux.bean.precios.Local;
import com.atux.bean.precios.LocalFlt;
import com.atux.bean.promocion.Promocion;
import com.atux.bean.promocion.PromocionDetalle;
import com.atux.bean.promocion.PromocionLocal;
import com.atux.config.APDD;
import com.atux.desktop.comun.pic... | AlanGuerraQuispe/SisAtuxPerfumeria | atux-desktop/src/main/java/com/atux/desktop/promocion/PromocionPst.java | Java | gpl-2.0 | 7,829 |
package com.example.murat.gezi_yorum.Fragments;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import an... | bugdetector/Gezi-Yorum | app/src/main/java/com/example/murat/gezi_yorum/Fragments/Notifications.java | Java | gpl-2.0 | 5,164 |
package ee.esutoniagodesu.domain.jmet.table;
import org.hibernate.annotations.Immutable;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Immutable
@Table(name = "kwginf", schema = "jmet")
public final class Kwginf implements Serializable {
private static final long serialVersionUID = 42470602... | esutoniagodesu/egd-web | src/main/java/ee/esutoniagodesu/domain/jmet/table/Kwginf.java | Java | gpl-2.0 | 1,728 |
/*
* Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundati... | TheTypoMaster/Scaper | openjdk/jdk/src/share/classes/com/sun/imageio/stream/CloseableDisposerRecord.java | Java | gpl-2.0 | 1,969 |
package org.insightcentre.unlp.naisc.wordalign;
import java.util.Map;
/**
* A factory for making word alignment feature extractors
*
* @author John McCrae <john@mccr.ae>
*/
public interface WordAlignmentFeatureExtractorFactory {
/**
* An identifier for this WAFE
* @return The identifier
*/
... | jmccrae/naisc | word-align/src/main/java/org/insightcentre/unlp/naisc/wordalign/WordAlignmentFeatureExtractorFactory.java | Java | gpl-2.0 | 560 |
/**
* ownCloud Android client application
*
* @author Bartek Przybylski
* @author Tobias Kaminsky
* @author David A. Velasco
* @author masensio
* Copyright (C) 2011 Bartek Przybylski
* Copyright (C) 2016 ownCloud Inc.
* <p>
* This program is free software: you can redistribute it and/or modify
* ... | aleister09/android | src/main/java/com/owncloud/android/ui/adapter/FileListListAdapter.java | Java | gpl-2.0 | 25,342 |
/**
* JHylaFax - A java client for HylaFAX.
*
* Copyright (C) 2005 by Steffen Pingel <steffenp@gmx.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 2 of the License, o... | Distrotech/jhylafax | src/java/net/sf/jhylafax/PollDialog.java | Java | gpl-2.0 | 2,766 |
/**
*
*/
package com.airnoise.services;
import java.sql.SQLException;
import com.airnoise.core.exception.PersistenceException;
import com.airnoise.dao.DataBaseManager;
/**
* @author tomio
*
*/
public class DataBaseManagementService {
private DataBaseManager manager;
public DataBaseManagementServi... | mio-to/airnoise | airnoise/dao/src/main/java/com/airnoise/services/DataBaseManagementService.java | Java | gpl-2.0 | 947 |
/*
* Created on Jan 25, 2005
* Created by Alon Rohter
* Copyright (C) 2004-2005 Aelitis, All Rights Reserved.
*
* 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 ... | thangbn/Direct-File-Downloader | src/src/com/aelitis/azureus/core/peermanager/messaging/MessageStreamDecoder.java | Java | gpl-2.0 | 2,758 |
package org.iatoki.judgels.michael.controllers;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import org.apache.commons.lang3.EnumUtils;
import org.iatoki.judgels.play.InternalLink;
import org.iatoki.judgels.play.LazyHtml;
import org.iatoki.judgels.play.controllers.AbstractJud... | ia-toki/judgels-michael | app/org/iatoki/judgels/michael/controllers/MachineWatcherController.java | Java | gpl-2.0 | 13,764 |
//: generics/FactoryConstraint.java
interface FactoryI<T> {
T create();
}
class Foo2<T> {
private T x;
public <F extends FactoryI<T>> Foo2(F factory) {
x = factory.create();
}
// ...
}
class IntegerFactory implements FactoryI<Integer> {
public Integer create() {
return new Integer(0);
}
}
cla... | NorthFacing/step-by-Java | java-base/sourceCodeBak/Thinking in Java/generics/FactoryConstraint.java | Java | gpl-2.0 | 638 |
package e.scm;
import java.awt.*;
import javax.swing.*;
public class AnnotatedLineRenderer extends e.gui.EListCellRenderer<AnnotatedLine> {
/** Used to draw the dashed line between adjacent lines from different revisions. */
private static final Stroke DASHED_STROKE = new BasicStroke(1.0f,
BasicSt... | software-jessies-org/scm | src/e/scm/AnnotatedLineRenderer.java | Java | gpl-2.0 | 1,792 |
/**
*
*/
package agentRefactoringStrand;
/**
* @author Daavid
*
*/
public class Attribute {
private String name;
}
| danaderp/unalcol | projects/optimizationRefactoringStrand/src/agentRefactoringStrand/Attribute.java | Java | gpl-2.0 | 137 |
package com.example.kickfor;
import com.example.kickfor.team.ChangingRoomEntity;
import android.os.Handler;
import android.os.Message;
public class ProgressBarTimer implements Runnable{
private Object v=null;
private Handler handler=null;
private int what=-1;
private Object b=null;
public ProgressBarTimer(H... | yumjade/KickFor | src/com/example/kickfor/ProgressBarTimer.java | Java | gpl-2.0 | 941 |
package it.unimarconi.utils;
import it.unimarconi.beans.Job;
import java.util.Comparator;
public class JobComparator implements Comparator<Job> {
public int compare(Job a, Job b) {
return a.compareTo(b);
}
} | Kalimaha/MLS_Barbaglia | src/main/java/it/unimarconi/utils/JobComparator.java | Java | gpl-2.0 | 228 |
package com.example.jmtransfers.jmtransfer; import android.content.SharedPreferences; import android.support.v7.app.ActionBar; import android.widget.TextView;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.design.widg... | unifieddigitalmedia/Just-Money-Transfers-Android | app/src/main/java/com/example/jmtransfers/jmtransfer/MainActivity.java | Java | gpl-2.0 | 2,118 |
package me.giantcrack.gs;
import me.giantcrack.eco.BalanceCmd;
import me.giantcrack.eco.BuyCmd;
import me.giantcrack.eco.EcoFile;
import me.giantcrack.eco.EconomyCmd;
import me.giantcrack.eco.SellCmd;
import me.giantcrack.eco.ValueCmd;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukki... | markgiant/Minecraft | Shops/src/me/giantcrack/gs/Main.java | Java | gpl-2.0 | 2,167 |
package me.yugy.app.common.utils;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Environment;
import android.os.StatFs;
import java.io.File;
import java.io.IOException;
import static android.os.Envi... | jj-io/jj-android | mylibrary/src/main/java/me/yugy/app/common/utils/StorageUtils.java | Java | gpl-2.0 | 3,221 |
package de.tum.bgu.msm.utils;
import cern.colt.matrix.tdouble.DoubleMatrix2D;
import org.matsim.core.utils.collections.Tuple;
import java.util.*;
public class DeferredAcceptanceMatching {
public static Map<Integer, Integer> match(Collection<Integer> set1, Collection<Integer> set2, DoubleMatrix2D preferences) {
... | msmobility/silo | siloCore/src/main/java/de/tum/bgu/msm/utils/DeferredAcceptanceMatching.java | Java | gpl-2.0 | 2,026 |
//Pyjama compiler version:v1.5.3
package PyjamaCode.TestingDirectives.Sections;
import pj.Pyjama;
import pj.pr.*;
import pj.PjRuntime;
import pj.Pyjama;
import pi.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.conc... | ParallelAndReconfigurableComputing/Pyjama | test/PyjamaCode/TestingDirectives/Sections/section_positive_test1.java | Java | gpl-2.0 | 10,076 |
package com.fasterxml.jackson.databind.deser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.util.AccessPattern;
/**
* Helper interface implemented by classes that are to be used as
* null providers duri... | lamsfoundation/lams | 3rdParty_sources/jackson/com/fasterxml/jackson/databind/deser/NullValueProvider.java | Java | gpl-2.0 | 1,303 |
/**
* Copyright (c) 2000-2012 Liferay, Inc. 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 later... | iucn-whp/world-heritage-outlook | portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/NoSuch_sites_countryException.java | Java | gpl-2.0 | 1,074 |
/*
* Copyright 2002-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | HotswapProjects/HotswapAgent | hotswap-agent-core/src/main/java/org/hotswap/agent/util/spring/io/resource/WritableResource.java | Java | gpl-2.0 | 1,809 |
/*
* Copyright (c) 2012-2013 Open Source Community - <http://www.peerfact.org>
* Copyright (c) 2011-2012 University of Paderborn - UPB
* Copyright (c) 2005-2011 KOM - Multimedia Communications Lab
*
* This file is part of PeerfactSim.KOM.
*
* PeerfactSim.KOM is free software: you can redistribute it and/or modi... | flyroom/PeerfactSimKOM_Clone | src/org/peerfact/impl/application/infodissemination/moveModels/IMoveModel.java | Java | gpl-2.0 | 1,841 |
package sicxe.model.simulator.assembler.command.bits;
/**
* Created by maciek on 14/01/16.
*/
public class FormatFourBits extends Bits{
private final int e = 1 << 20;
private final int b = 0;
private final int p = 0;
private int x = 0;
public int getX() {
return x;
}
public void... | mwalercz/sicxe-sim-mvn | src/main/java/sicxe/model/simulator/assembler/command/bits/FormatFourBits.java | Java | gpl-2.0 | 563 |
package controllers;
import static akka.pattern.Patterns.ask;
import static play.libs.Json.toJson;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Date;
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import ja... | nazareno/diferentonas-server | app/controllers/AtualizacaoController.java | Java | gpl-2.0 | 4,867 |
/*
* nassh-relay - Relay Server for tunneling ssh through a http endpoint
*
* Website: https://github.com/zyclonite/nassh-relay
*
* Copyright 2014-2020 zyclonite networx
* http://zyclonite.net
* Developer: Lukas Prettenthaler
*/
package net.zyclonite.nassh.util;
import io.vertx.core.... | zyclonite/nassh-relay | src/main/java/net/zyclonite/nassh/util/RequestHelper.java | Java | gpl-2.0 | 953 |
package com.jack.cloud.movie;
import com.jack.cloud.config.TestConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.Enable... | a97381416/jack.github.io | my_project/springcloud/jack-spring-cloud/jack-consomer-movie-ribbon/src/main/java/com/jack/cloud/movie/ConsumerMovieRibbonApplication.java | Java | gpl-2.0 | 897 |
/**
* OWASP Benchmark Project v1.1
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The Benchmark is free software: you can redistribute it and/... | iammyr/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest05767.java | Java | gpl-2.0 | 2,444 |
/**
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2013, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute this fil... | uttmkl/etno | sites/all/modules/CKFinder/ckfinder/_sources/CKFinder for Java/CKFinder/src/main/java/com/ckfinder/connector/package-info.java | Java | gpl-2.0 | 500 |
/*
* 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 clay;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.... | MultiTool/Clay | src/clay/Things.java | Java | gpl-2.0 | 9,794 |
package edu.stanford.nlp.parser.lexparser;
import edu.stanford.nlp.trees.CompositeTreeTransformer;
import edu.stanford.nlp.trees.TreebankLanguagePack;
import edu.stanford.nlp.trees.TreeTransformer;
import edu.stanford.nlp.util.Function;
import edu.stanford.nlp.util.ReflectionLoading;
import edu.stanford.nlp.util.Strin... | chbrown/stanford-parser | edu/stanford/nlp/parser/lexparser/Options.java | Java | gpl-2.0 | 45,340 |
package org.masterylearning.domain.data;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.masterylearning.domain.Entry;
import org.... | lanoxx/masterylearning | backend/src/main/java/org/masterylearning/domain/data/EntryData.java | Java | gpl-2.0 | 1,748 |
package org.dolphinemu.dolphinemu.features.settings.ui.viewholder;
import android.view.View;
import android.widget.TextView;
import org.dolphinemu.dolphinemu.R;
import org.dolphinemu.dolphinemu.features.settings.model.view.SettingsItem;
import org.dolphinemu.dolphinemu.features.settings.model.view.SliderSetting;
impo... | riking/dolphin | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/settings/ui/viewholder/SliderViewHolder.java | Java | gpl-2.0 | 1,213 |
/*
* IdeaVim - Vim emulator for IDEs based on the IntelliJ platform
* Copyright (C) 2003-2019 The IdeaVim authors
*
* 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 ... | dhleong/ideavim | test/org/jetbrains/plugins/ideavim/action/AutoIndentTest.java | Java | gpl-2.0 | 5,517 |
/*
* LSpec.java
*
* Created on April 24, 2007, 11:06 PM
*/
package org.das2.qds.util;
import java.util.LinkedHashMap;
import java.util.Map;
import org.das2.datum.Datum;
import org.das2.datum.Units;
import org.das2.qds.ArrayDataSet;
import org.das2.qds.DDataSet;
import org.das2.qds.DataSetUtil;
impo... | autoplot/app | QDataSet/src/org/das2/qds/util/LSpec.java | Java | gpl-2.0 | 16,160 |
//{{COMPONENT_IMPORT_STMTS
package MetaRepos;
import java.util.Enumeration;
import java.util.Vector;
import versata.common.*;
import versata.common.vstrace.*;
import versata.vls.*;
import java.util.*;
import java.math.*;
import versata.vls.cache.*;
//END_COMPONENT_IMPORT_STMTS}}
/*
** Activity
*/
//{{COMPONENT_RULE... | tylerm007/MetaRepos | Source/VLS/DataObjects/WorkFlow/ActivityImpl.java | Java | gpl-2.0 | 947 |
/*
* Copyright (C) 2020 Emweb bv, Herent, Belgium.
*
* See the LICENSE file for terms of use.
*/
package eu.webtoolkit.jwt.auth;
import eu.webtoolkit.jwt.*;
import eu.webtoolkit.jwt.chart.*;
import eu.webtoolkit.jwt.servlet.*;
import eu.webtoolkit.jwt.utils.*;
import java.io.*;
import java.lang.ref.*;
import java.... | kdeforche/jwt | src/eu/webtoolkit/jwt/auth/UpdatePasswordWidget.java | Java | gpl-2.0 | 7,657 |
/*
* Copyright (c) 1998-2010 Caucho Technology -- all rights reserved
*
* This file is part of Resin(R) Open Source
*
* Each copy or derived work must preserve the copyright notice and this
* notice unmodified.
*
* Resin Open Source is free software; you can redistribute it and/or modify
* it under the terms o... | CleverCloud/Quercus | quercus/src/main/java/com/caucho/quercus/env/DefaultValue.java | Java | gpl-2.0 | 3,172 |
/*
* Copyright (C) 2013 Leszek Mzyk
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | bairutai/SinaWeibo | src/com/convenientbanner/CBLoopViewPager.java | Java | gpl-2.0 | 6,473 |
/**
* Copyright (c) 2001-2002. Department of Family Medicine, McMaster University. All Rights Reserved.
* This software is published under the GPL GNU General Public License.
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published... | scoophealth/oscar | src/main/java/org/oscarehr/common/model/ConsultationRequest.java | Java | gpl-2.0 | 10,011 |
package model.device;
/**
* Title : The Mobile Robot Explorer Simulation Environment v2.0
* Copyright: GNU General Public License as published by the Free Software Foundation
* Company : Hanze University of Applied Sciences
*
* @author Dustin Meijer (2012)
* @author Alexander Jeurissen (2012)
... | TranceCake/SoftwareEngineering | leertaak3DynamicProgramming/leertaak4MobileRobot/src/model/device/Device.java | Java | gpl-2.0 | 3,923 |
/*
* 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 ... | lamsfoundation/lams | 3rdParty_sources/commons-validator/org/apache/commons/validator/routines/AbstractCalendarValidator.java | Java | gpl-2.0 | 16,430 |
/**
*
*/
package br.com.geocab.tests.service;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import br.com.geocab.domain.entity.datasource.DataSource;
import br.com.geocab.domain.service.DataSourceService;
import br.com.geocab.tests.AbstractIntegratio... | haroldoramirez/geocab | implementation/solution/src/test/java/br/com/geocab/tests/service/DataSourceServiceTest.java | Java | gpl-2.0 | 2,971 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.cgc.bean;
import java.sql.Timestamp;
/**
*
* @author com02
*/
public class MessageBean {
private int runno;
private String message_id;
private String message_detail;
private String statu... | beckpalmx/ImportTask | src/com/cgc/bean/MessageBean.java | Java | gpl-2.0 | 3,859 |
package org.openstreetmap.osmaxil;
import org.apache.log4j.Logger;
import org.openstreetmap.osmaxil.flow.__AbstractImportFlow;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;
@Compone... | vince-from-nice/osmaxil | src/main/java/org/openstreetmap/osmaxil/Application.java | Java | gpl-2.0 | 1,528 |
package com.aw.swing.mvp.action;
import com.aw.swing.mvp.Presenter;
import com.aw.swing.mvp.navigation.Flow;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
import java.util.Iterator;
... | AlanGuerraQuispe/SisAtuxPerfumeria | atux-jrcp/src/main/java/com/aw/swing/mvp/action/BackBeanProvider.java | Java | gpl-2.0 | 1,684 |
package eu.geekhome.asymptote.model;
public abstract class SyncUpdateBase<T> implements SyncUpdate<T> {
private T _value;
@Override
public T getValue() {
return _value;
}
public void setValue(T value) {
_value = value;
}
public SyncUpdateBase(T value) {
_value = ... | tomaszbabiuk/geekhome-asymptote | asymptote/src/main/java/eu/geekhome/asymptote/model/SyncUpdateBase.java | Java | gpl-2.0 | 335 |
package com.meetup.agileim.web.rest.errors;
import java.util.List;
import org.springframework.dao.ConcurrencyFailureException;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.validation.BindingResult;
import org.springframework.v... | lazcatluc/agileim | src/main/java/com/meetup/agileim/web/rest/errors/ExceptionTranslator.java | Java | gpl-2.0 | 2,547 |
package ru.ncedu.ecomm.servlets.services.passwordRecovery;
import ru.ncedu.ecomm.data.models.dao.UserDAOObject;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import static ru.ncedu.ecomm.data.DAOFactory.getDAOFactory;
public class PasswordRecoveryService {
private final static Str... | ncedu-tlt/ecomm | src/main/java/ru/ncedu/ecomm/servlets/services/passwordRecovery/PasswordRecoveryService.java | Java | gpl-3.0 | 2,999 |
/*
* Copyright 2015 @author Unai Alegre
*
* This file is part of R-CASE (Requirements for Context-Aware Systems Engineering), a module
* of Modelio that aids the requirements elicitation phase of a Context-Aware System (C-AS).
*
* R-CASE is free software: you can redistribute it and/or modify
* it under the... | casetools/rcase | rcase/src/main/java/edu/casetools/rcase/modelio/diagrams/requirements/tools/relations/SatisfyTool.java | Java | gpl-3.0 | 3,013 |
package biz.dealnote.messenger.util;
import android.content.Context;
import android.text.Spannable;
import java.text.DateFormat;
import java.util.Date;
import biz.dealnote.messenger.R;
import biz.dealnote.messenger.link.internal.OwnerLinkSpanFactory;
/**
* Created by admin on 17.06.2017.
* phoenix
*/
public clas... | PhoenixDevTeam/Phoenix-for-VK | app/src/main/java/biz/dealnote/messenger/util/FormatUtil.java | Java | gpl-3.0 | 1,322 |