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.sk89q.worldedit.command.tool;
import com.boydti.fawe.Fawe;
import com.boydti.fawe.FaweCache;
import com.boydti.fawe.config.BBC;
import com.boydti.fawe.object.FawePlayer;
import com.boydti.fawe.object.RunnableVal;
import com.boydti.fawe.object.brush.BrushSettings;
import com.boydti.fawe.object.brush.Movable... | DarkFort/FastAsyncWorldedit-rus-by-DarkFort | core/src/main/java/com/sk89q/worldedit/command/tool/BrushTool.java | Java | gpl-3.0 | 20,974 |
/*
* This file is part of muCommander, http://www.mucommander.com
* Copyright (C) 2002-2012 Maxence Bernard
*
* muCommander 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... | Keltek/mucommander | src/main/com/mucommander/ui/popup/MuActionsPopupMenu.java | Java | gpl-3.0 | 1,962 |
package org.maxgamer.rs.model.entity.mob.combat.mage;
import co.paralleluniverse.fibers.SuspendExecution;
import org.maxgamer.rs.model.action.Action;
import org.maxgamer.rs.model.entity.mob.Mob;
import org.maxgamer.rs.model.entity.mob.persona.Persona;
import org.maxgamer.rs.model.entity.mob.persona.player.Player... | netherfoam/Titan | src/main/java/org/maxgamer/rs/model/entity/mob/combat/mage/AlchemySpell.java | Java | gpl-3.0 | 3,779 |
package cz.neumimto.spongejs;
import jdk.internal.dynalink.beans.StaticClass;
import org.objectweb.asm.*;
import org.spongepowered.api.event.Event;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.... | NeumimTo/SpongeJS | src/main/java/cz/neumimto/spongejs/ClassGenerator.java | Java | gpl-3.0 | 8,649 |
package main;
public class ArithmeticSequenceDiv1 {
public int findMinCost(int[] x) {
int MAXD = 102;
int minCost = Integer.MAX_VALUE;
for (int i = 0; i < x.length; ++i) {
for (int d = -MAXD; d <= +MAXD; ++d) {
int cost = 0;
for (int j = 0; j < x.... | hack1nt0/AC | archive/unsorted/2018.06/2018.06.03 - 2018 TopCoder Open Algorithm/ArithmeticSequenceDiv1.java | Java | gpl-3.0 | 556 |
/*
* This file is part of EchoPet.
*
* EchoPet 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 later version.
*
* EchoPet is distributed in th... | lol768/EchoPet | modules/EchoPet/src/main/java/com/dsh105/echopet/api/pet/type/HorsePet.java | Java | gpl-3.0 | 2,940 |
/*
* This file is part of eBlast Project.
*
* Copyright (c) 2011 eBlast
*
* eBlast 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 later versi... | ThmX/epfl-ba2-ITP-eBlast | src/eblast/gui/TorrentListPanel.java | Java | gpl-3.0 | 6,350 |
package com.github.lake54.groupsio.api.util;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.type.TypeFactory;
imp... | linuxfoundation/groupsio-api-java | src/main/java/com/github/lake54/groupsio/api/util/JacksonUtils.java | Java | gpl-3.0 | 2,617 |
package com.circletech.smartconnect;
import com.circletech.smartconnect.config.CustomConfig;
import com.circletech.smartconnect.util.ConstantUtil;
import com.circletech.smartconnect.util.LoggerUtil;
import com.circletech.smartconnect.util.MonitorWatcher;
import com.circletech.smartconnect.util.ThreadPoolUtil;
import ... | unrealinux/DataProcessPlatform | src/main/java/com/circletech/smartconnect/DataProcessMonitor.java | Java | gpl-3.0 | 3,901 |
/*
* Copyright (C) 2012 Christopher Eby <kreed@kreed.org>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | owoc/teardrop | app/src/main/java/mp/teardrop/CoverView.java | Java | gpl-3.0 | 14,674 |
package mods.simwir.puremetals.items;
public class ItemBowlIron extends ItemIronDust{
public ItemBowlIron(int par1) {
super(par1);
setUnlocalizedName("bowlIron");
setMaxStackSize(16);
}
}
| simwir/puremetals | items/ItemBowlIron.java | Java | gpl-3.0 | 199 |
package com.gerolivo.stargazerdiary.config;
import java.util.concurrent.TimeUnit;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.CacheControl;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.a... | gerolvr/StargazerDiary | src/main/java/com/gerolivo/stargazerdiary/config/WebConfig.java | Java | gpl-3.0 | 710 |
package org.rom.myfreetv.view;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.event.WindowAdapter;
import javax.swing.BoxLayout;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import org.rom.myfreetv.config.Config;
public class P... | rom1v/myfreetv | src/org/rom/myfreetv/view/PlayerWaiter.java | Java | gpl-3.0 | 2,550 |
package com.taobao.api.domain;
import java.util.Date;
import com.taobao.api.TaobaoObject;
import com.taobao.api.internal.mapping.ApiField;
/**
* 旅游商品图片结构。
*
* @author auto create
* @since 1.0, null
*/
public class TravelItemsImg extends TaobaoObject {
private static final long serialVersionUID = 6615346549... | kuiwang/my-dev | src/main/java/com/taobao/api/domain/TravelItemsImg.java | Java | gpl-3.0 | 1,337 |
package quests;
import l2s.gameserver.Config;
import l2s.gameserver.model.pledge.Clan;
import l2s.gameserver.model.Player;
import l2s.gameserver.model.instances.NpcInstance;
import l2s.gameserver.model.quest.Quest;
import l2s.gameserver.model.quest.QuestState;
import l2s.gameserver.network.l2.s2c.SystemMessage;
import... | pantelis60/L2Scripts_Underground | dist/gameserver/data/scripts/quests/_508_TheClansReputation.java | Java | gpl-3.0 | 5,523 |
package it.cnr.isti.labsedc.glimpse.impl;
import java.util.HashMap;
import java.util.Vector;
import org.w3c.dom.Document;
import it.cnr.isti.labsedc.glimpse.BPMN.PathExplorer;
import it.cnr.isti.labsedc.glimpse.coverage.Activity;
public class PathExplorerImpl implements PathExplorer {
public Vector<Activity[]> la... | acalabro/glimpse | src/main/java/it/cnr/isti/labsedc/glimpse/impl/PathExplorerImpl.java | Java | gpl-3.0 | 6,810 |
package com.oryx.core.dashboard.view.dashboard;
import com.google.common.eventbus.Subscribe;
import com.oryx.core.dashboard.DashboardUI;
import com.oryx.core.dashboard.component.TopTenMoviesTable;
import com.oryx.core.dashboard.domain.DashboardNotification;
import com.oryx.core.dashboard.event.DashboardEvent.CloseOpen... | 241180/Oryx | oryx-dashboard/src/main/java/com/oryx/core/dashboard/view/dashboard/DashboardView.java | Java | gpl-3.0 | 13,003 |
/**
* @author Dennis W. Gichangi <dennis.dichangi@dewcis.com>
* @version 2011.03.29
* @since 1.6
* website www.dewcis.com
* The contents of this file are subject to the Dew CIS Solutions License
* The file should only be shared to OpenBravo.
*/
package org.baraza.com;
import java.util.logging.Lo... | enbiso/openbaraza | src/org/baraza/com/BScreenReports.java | Java | gpl-3.0 | 4,024 |
package com.baeldung.jsondateformat;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTe... | Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/spring-boot-data/src/test/java/com/baeldung/jsondateformat/ContactAppIntegrationTest.java | Java | gpl-3.0 | 4,712 |
package in.mayurshah.DTO;
import org.openqa.selenium.Platform;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
public class WebDriverConfig {
private boolean intenal;
private String remoteURL;
private String TestCaseName;
private String browserName;
private... | selenium-webdriver-software-testing/kspl-selenium-helper | src/main/java/in/mayurshah/DTO/WebDriverConfig.java | Java | gpl-3.0 | 1,867 |
package com.projectreddog.machinemod.client.gui;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.texture.ITextureObject;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import org.lwjg... | TechStack/MachineMod | src/main/java/com/projectreddog/machinemod/client/gui/GuiDumpTruck.java | Java | gpl-3.0 | 1,949 |
package pl.mrugames.commons.router.request_handlers;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.security.core.AuthenticationException;
import org.springf... | Mariusz-v7/RequestsRouter | src/main/java/pl/mrugames/commons/router/request_handlers/ExceptionHandler.java | Java | gpl-3.0 | 6,352 |
package mx.com.kosmos.connections;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.ProtocolException;
im... | therealthom/kosmos-app | src/java/mx/com/kosmos/connections/SaltEdge.java | Java | gpl-3.0 | 7,094 |
package de.luc1412.em.gui;
import de.luc1412.em.EasyMaintenance;
import de.luc1412.em.commands.CMDEasyMaintenance;
import de.luc1412.em.utils.Utils;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.inventory.Inventory;
/**
* Created by Luc1412 on 22.08.2017 at 00:19
*/
class InventoryAni... | Luc1412/EasyMaintenance | src/main/java/de/luc1412/em/gui/InventoryAnimationManager.java | Java | gpl-3.0 | 1,639 |
package se.esss.litterbox.linaclego.v2.webapp.client.contentpanels;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.InlineHTML;
import com.google.gwt.user.client.ui.VerticalPanel;
import se.esss.litterbox.linaclego.v2.webapp.client.gskel.GskelSetupApp;
import s... | se-esss-litterbox/linac-lego | LinacLegoV2WebApp/src/se/esss/litterbox/linaclego/v2/webapp/client/contentpanels/PbsLayoutPanel.java | Java | gpl-3.0 | 1,849 |
/*
* SD-DSS-Util, a Utility Library and a Command Line Interface for SD-DSS.
* Copyright (C) 2013 La Traccia http://www.latraccia.it/en/
* Developed by Francesco Pontillo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publi... | latraccia/sd-dss-util | sd-dss-util-lib/src/main/java/it/latraccia/dss/util/exception/SignaturePolicyAlgorithmMismatchException.java | Java | gpl-3.0 | 1,247 |
/*
* This file is part of l2jserver2 <l2jserver2.com>.
*
* l2jserver2 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 later version.
*
* l2jse... | l2jserver2/l2jserver2 | l2jserver2-gameserver/l2jserver2-gameserver-core/src/main/java/com/l2jserver/service/game/item/NonStackableItemsServiceException.java | Java | gpl-3.0 | 1,539 |
/*******************************************************************************
* LogDruid : Generate charts and reports using data gathered in log files
* Copyright (C) 2016 Frederic Valente (frederic.valente@gmail.com)
*
* This program is free software: you can redistribute it and/or modify it under the terms of... | fvalente/LogDruid | src/logdruid/ui/table/StatRecordingEditorTable.java | Java | gpl-3.0 | 11,941 |
package jene.samples.surface3d;
import java.util.ArrayList;
import java.util.List;
import javax.vecmath.Point3d;
import jene.AbstractOrganism;
import jene.Mutation;
import jene.Mutator;
import jene.Node;
import jene.Organism;
import jene.Pixel;
import jene.Utils;
/**
*
* @author James Stout
*
*/
public cl... | wolfmanstout/jene | src/jene/samples/surface3d/S3DOrganism.java | Java | gpl-3.0 | 2,816 |
package com.example.androidwebsocket;
import org.json.JSONArray;
import org.json.JSONObject;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.JsonHttpResponseHandler;
import com.loopj.android.http.RequestParams;
import de.tavendo.autobahn.WebSocket;
import de.tavendo.autobahn.WebSocketCon... | xzzhuo/GitStudy | AndroidWebSocket/src/com/example/androidwebsocket/MainActivity.java | Java | gpl-3.0 | 4,172 |
/**
* Copyright (C) 2016 Fernando Berti - Daniel Campodonico - Emiliano Gioria - Lucas Moretti - Esteban Rebechi - Andres Leonel Rico
* This file is part of Olimpo.
*
* Olimpo 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 ... | bertilxi/Olimpo | src/app/comun/FormateadorString.java | Java | gpl-3.0 | 3,019 |
package net.refination.refinecraft.commands;
import net.refination.refinecraft.CommandSource;
import net.refination.refinecraft.utils.DateUtil;
import net.refination.refinecraft.utils.NumberUtil;
import org.bukkit.*;
import java.lang.management.ManagementFactory;
import java.util.List;
import java.util.logging.Level;... | HkB115/RefineCraft | RefineCraft/src/net/refination/refinecraft/commands/Commandgc.java | Java | gpl-3.0 | 2,286 |
/*
* PatientView
*
* Copyright (c) Worth Solutions Limited 2004-2013
*
* This file is part of PatientView.
*
* PatientView 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,... | robworth/patientview | patientview-parent/patientview/src/test/java/org/patientview/test/utils/TimestampUtilsTest.java | Java | gpl-3.0 | 4,603 |
package com.tygrewolf.randomtp.reference;
/**
* Created by TygreWolf on 4/19/2016.
*/
public class Reference {
public static final String MOD_ID = "randomtp";
public static final String MOD_NAME = "Random Teleport";
public static final String LOWERCASE_MOD_ID = MOD_ID.toLowerCase();
public static fin... | TygreWolf/RandomTP | src/main/java/com/tygrewolf/randomtp/reference/Reference.java | Java | gpl-3.0 | 854 |
/*
* Copyright (c) 2017 "Neo4j, Inc." <http://neo4j.com>
*
* This file is part of Neo4j Graph Algorithms <http://github.com/neo4j-contrib/neo4j-graph-algorithms>.
*
* Neo4j Graph Algorithms is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... | neo4j-contrib/neo4j-graph-algorithms | algo/src/main/java/org/neo4j/graphalgo/impl/louvain/Louvain.java | Java | gpl-3.0 | 12,980 |
/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
// www.projectforge.org
//
// Copyright (C) 2001-2013 Kai Reinhard (k.reinhard@micromata.de)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redi... | developerleo/ProjectForge-2nd | src/main/java/org/projectforge/web/wicket/flowlayout/DivTextPanel.java | Java | gpl-3.0 | 3,261 |
package arcadeflex.libc;
import WIP.arcadeflex.libc_v2.UBytePtr;
/**
*
* @author shadow
*/
public class cstring {
/**
* Get string length
*
* @param str
* @return
*/
public static int strlen(String str) {
return str.length();
}
/**
* memset
*
* @par... | georgemoralis/arcadeflex037b7 | emulator_complete/src/arcadeflex/libc/cstring.java | Java | gpl-3.0 | 1,767 |
package de.gnox.rovy.server;
import java.util.concurrent.TimeUnit;
public class RovyUtility {
public static void sleep(long millis) {
try {
TimeUnit.MILLISECONDS.sleep(millis);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
| petlutz/rovy | rovy_server/src/de/gnox/rovy/server/RovyUtility.java | Java | gpl-3.0 | 258 |
package android_pmp_sandbox.photoapp;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
publi... | cfarrend/android-pmp-sandbox | photoapp/app/src/test/java/android_pmp_sandbox/photoapp/ExampleUnitTest.java | Java | gpl-3.0 | 406 |
package macbury.umbrella.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import macbury.umbrella.managers.IntentsManager;
import macbury.umbrella.service.CheckWeatherService;
/**
* Created by macbury on 27.08.14.
*/
public abstract class SyncStatus... | macbury/umbrella.alert | app/src/main/java/macbury/umbrella/receiver/SyncStatusBroadcastReceiver.java | Java | gpl-3.0 | 685 |
package com.michaelhoffmantech.recipemanager.recipedataservice.domain;
// Generated Feb 13, 2017 4:02:01 PM by Hibernate Tools 5.2.0.CR1
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import... | mikevoxcap/recipe-data-service | src/main/java/com/michaelhoffmantech/recipemanager/recipedataservice/domain/RecipeIngredient.java | Java | gpl-3.0 | 4,637 |
/** Copyright 2012-2014 Kevin Hausmann
*
* This file is part of PodCatcher Deluxe.
*
* PodCatcher Deluxe 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 ... | salema/PodCatcher-Deluxe-Android | src/net/alliknow/podcatcher/model/tags/JSON.java | Java | gpl-3.0 | 1,375 |
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; withou... | Graylog2/graylog2-server | graylog2-server/src/main/java/org/graylog/events/notifications/types/HTTPEventNotificationConfig.java | Java | gpl-3.0 | 3,210 |
package org.pale.chatcitizen;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import net.citizensnpcs.api.CitizensAPI;
import net.citizensnpcs.api.npc.NPC;
import org.alicebot.ab.AIML... | jimfinnis/ChatCitizen | ChatCitizen/src/org/pale/chatcitizen/Plugin.java | Java | gpl-3.0 | 9,666 |
/*
Copyright IBM Corp. 2010, 2016
This file is part of Anomaly Detection Engine for Linux Logs (ADE).
ADE 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
... | openmainframeproject/ade | ade-core/src/main/java/org/openmainframe/ade/impl/dataStore/TableManager.java | Java | gpl-3.0 | 5,434 |
package org.hl7.v3;
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.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/... | ricecakesoftware/CommunityMedicalLink | ricecakesoftware.communitymedicallink.hl7/src/org/hl7/v3/PRPAMT201310UV02Subject2.java | Java | gpl-3.0 | 6,019 |
package com.skalvasociety.skalva.tools;
import java.io.File;
import javax.activation.MimetypesFileTypeMap;
import org.apache.log4j.Logger;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
public class Acces {
private static Logger logger = Logger.getLogger(Acces.class);
/**
* Lit l... | skalva50/Filmotheque | src/main/java/com/skalvasociety/skalva/tools/Acces.java | Java | gpl-3.0 | 1,990 |
/*
* 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 jssdv;
import java.io.FileNotFoundException;
import java.util.logging.Level;
import java.util.logging.Logger;
import... | ploeffler/jSSDV | src/jssdv/JSSDV.java | Java | gpl-3.0 | 28,811 |
package de.dumischbaenger.ws;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java-Klasse für CalendarPermissionReadAccessType.
*
* <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enth... | dumischbaenger/ews-example | src/main/java/de/dumischbaenger/ws/CalendarPermissionReadAccessType.java | Java | gpl-3.0 | 1,607 |
package nc.noumea.mairie.model.bean.sirh;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PersistenceUnit;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
@Entity
@Table(name = "ACTIVITE")
@PersistenceUnit(unitName = ... | DSI-Ville-Noumea/sirh-ws | src/main/java/nc/noumea/mairie/model/bean/sirh/Activite.java | Java | gpl-3.0 | 799 |
class Solution {
public String licenseKeyFormatting(String S, int K) {
S = S.replaceAll("-", "").toUpperCase();
StringBuilder F = new StringBuilder();
int first = S.length() % K;
if (first > 0) {
F.append(S.substring(0, first));
}
for (int i = firs... | rishabhtulsian/problem-solving | leet-code/482-LicenseKeyFormatting.java | Java | gpl-3.0 | 523 |
/* GASdotto
* Copyright (C) 2009/2013 Roberto -MadBob- Guido <bob4job@gmail.com>
*
* This 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 ... | madbob/GASdotto | src/org/barberaware/client/GAS.java | Java | gpl-3.0 | 2,588 |
/*
EntityViewer.class Petri Dish Sim 1.1 release
By: Jonathan Zepp - @DaJMasta
A means (seperate JFrame window) to navigate the world and get fairly detailed information on whatever is in the cell being examined.
August 10, 2015
This code and program can be used according the the GPL v3 found here:... | DaJMasta/SimPetriDish | SimPetriDish/src/SimPetriDish/EntityViewer.java | Java | gpl-3.0 | 15,712 |
/*
* This file, RewardExpEvent.java, is part of MineQuest:
* A full featured and customizable quest/mission system.
* Copyright (C) 2012 The MineQuest Party
*
* 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 th... | Minequest/Minequest-RPG | src/main/java/com/theminequest/MQCoreRPG/QEvents/RewardExpEvent.java | Java | gpl-3.0 | 2,134 |
/*
* Copyright (C) Mojang AB
* All rights reserved.
*/
package kk.freecraft.entity.ai;
import kk.freecraft.block.Block;
import kk.freecraft.block.BlockDoor;
import kk.freecraft.entity.EntityLiving;
import kk.freecraft.world.EnumDifficulty;
public class EntityAIBreakDoor extends EntityAIDoorInteract {
private int... | KubaKaszycki/FreeCraft | src/main/java/kk/freecraft/entity/ai/EntityAIBreakDoor.java | Java | gpl-3.0 | 2,478 |
package com.eztouch.wimp.proxy;
public interface IProxy
{
public abstract void registerKeyBindings();
public abstract void registerRenderers();
}
| EZtouch/wimp | src/main/java/com/eztouch/wimp/proxy/IProxy.java | Java | gpl-3.0 | 150 |
/*
* Grakn - A Distributed Semantic Database
* Copyright (C) 2016 Grakn Labs Limited
*
* Grakn 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... | fppt/mindmapsdb | grakn-core/src/main/java/ai/grakn/exception/ConceptNotUniqueException.java | Java | gpl-3.0 | 1,738 |
package org.briarproject;
import java.util.Random;
import org.briarproject.api.system.SeedProvider;
public class TestSeedProvider implements SeedProvider {
private final Random random = new Random();
public byte[] getSeed() {
byte[] seed = new byte[32];
random.nextBytes(seed);
return seed;
}
}
| biddyweb/briar | briar-tests/src/org/briarproject/TestSeedProvider.java | Java | gpl-3.0 | 309 |
/**
* Copyright (C) 2011, Claus Nielsen, cn@cn-consult.dk
*
* 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 later version.
... | clanie/clanie-aspects | src/test/java/dk/clanie/actor/ActorAspectTest.java | Java | gpl-3.0 | 5,872 |
// This is mutant program.
// Author : ysma
package examples.stryker.gcd.prvou_refined.prvou_refined113;
public class Gcd
{
/*@
@ requires a >= 0 && b >= 0;
@ ensures \result >= 0;
@ ensures (\old(a) % \result == 0);
@ ensures (\old(b) % \result == 0);
@ ensures (\forall int x; x>0 && x<=\old(a) && x<=\old(b) &&... | zeminlu/comitaco | tests/examples/stryker/gcd/prvou_refined/prvou_refined113/Gcd.java | Java | gpl-3.0 | 763 |
package app;
import java.io.*;
import org.apache.log4j.Logger;
public class TXTBook implements Book {
@Override
public String getText(File file) {
String text = "";
String newline = System.getProperty("line.separator");
try (BufferedReader reader = new BufferedReader(new FileReader(f... | demidrol911/eng_rus_reader | EnglishLearn/src/app/TXTBook.java | Java | gpl-3.0 | 647 |
package com.mrgss.web.persistence.model;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persi... | nicoferre/vetsis | persistence/src/main/java/com/mrgss/web/persistence/model/SpeciesEntity.java | Java | gpl-3.0 | 1,405 |
/*
* LeaseProvider.java May 2004
*
* Copyright (C) 2004, Niall Gallagher <niallg@users.sf.net>
*
* 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/... | TehSomeLuigi/SomeLuigisPeripherals2 | src_simpleframework/trs/org/simpleframework/util/lease/LeaseProvider.java | Java | gpl-3.0 | 2,327 |
package main.utilities;
public class Config {
public static final int MAX_CLIENTS = 5;
public static final int DEFAULT_PORT = 5050;
public static final String DEFAULT_HOST = "127.0.0.1";
public static final int MAX_BORROWED_ITEMS = 3;
//20 seconds for 1 day
public static final int SIMULATED_DAY = 1 * 1 *... | IsaacGuan/AcademicTracking | src/main/utilities/Config.java | Java | gpl-3.0 | 674 |
/*
* 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 service;
import database.Database;
import database.InputOutput;
import java.io.IOException;
import java.io.Serializa... | codacy20/backEnd | app/backend/proeprest/src/java/service/OrderService.java | Java | gpl-3.0 | 4,504 |
package eu.transkribus.swt_gui.dialogs;
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
public class TableMarkupBoxTest {
public static void main(String[] args) {
// TODO Auto-generated met... | Transkribus/TranskribusSwtGui | src/test/java/eu/transkribus/swt_gui/dialogs/TableMarkupBoxTest.java | Java | gpl-3.0 | 909 |
package io.github.yodalee.FastBuild;
import io.github.yodalee.FastBuild.commands.FastBuildSetnCmd;
import io.github.yodalee.FastBuild.commands.FastBuildTogglePlaceCmd;
import io.github.yodalee.FastBuild.listeners.FastBuildPlaceListener;
import io.github.yodalee.FastBuild.listeners.FastBuildPlayerQuitListener;
import i... | yodalee/FastBuild | src/io/github/yodalee/FastBuild/FastBuild.java | Java | gpl-3.0 | 2,403 |
/*
* Copyright (C) 2013 Alexandre Thomazo
*
* This file is part of BankIt.
*
* BankIt 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 later ve... | alexthomazo/bankit | bankit-web/src/test/java/org/alexlg/bankit/dao/CategoryDaoTest.java | Java | gpl-3.0 | 3,017 |
/*
* Copyright 2011 Kai Rohr
*
*
* This file is part of mIDas.
*
* mIDas 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 opt... | agaricusb/midas-silver | src/main/java/pfaeff/IDChanger.java | Java | gpl-3.0 | 7,330 |
package org.reflaction.ii;
import java.lang.reflect.*;
interface Person {
void walk();
void sayHello(String name);
}
class MyInvokationHandler implements InvocationHandler {
/*
proxy:代表动态代理对象
method:代表正在执行的方法
args:代表调用目标方法时传入的实参。
*/
public Object invoke(Object proxy, ... | hannahwangww/mujava | ii/ProxyTest.java | Java | gpl-3.0 | 1,383 |
/*
* Created on 9 Dec 2015 ( Time 11:08:58 )
* Generated by Telosys Tools Generator ( version 2.1.1 )
*/
package com.abm.mainet.common.master.mapper;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
import org.springframework.stereotype.Component;
import com.abm.mainet.commo... | abmindiarepomanager/ABMOpenMainet | Mainet1.0/MainetServiceParent/MainetServiceCommon/src/main/java/com/abm/mainet/common/master/mapper/DepartmentServiceMapper.java | Java | gpl-3.0 | 2,563 |
package org.springframework.roo.multiselect.web;
import org.springframework.roo.addon.web.mvc.controller.annotations.ControllerType;
import org.springframework.roo.addon.web.mvc.controller.annotations.RooController;
import org.springframework.roo.addon.web.mvc.controller.annotations.responses.json.RooJSON;
import org.s... | DISID/disid-proofs | spring-roo-datatables-multiselect/src/main/java/org/springframework/roo/multiselect/web/PetsItemJsonController.java | Java | gpl-3.0 | 561 |
package de.westnordost.streetcomplete.quests.localized_name.data;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import de.westnordost.osmapi.map.data.LatLon;
import de.westnordost.osmapi.map.data.OsmLatLon;
import de.westnordost.streetcomplete.data.ApplicationDbTes... | Binnette/StreetComplete | app/src/androidTest/java/de/westnordost/streetcomplete/quests/localized_name/data/RoadNameSuggestionsDaoTest.java | Java | gpl-3.0 | 2,063 |
/*
* This source is part of the
* _____ ___ ____
* __ / / _ \/ _ | / __/___ _______ _
* / // / , _/ __ |/ _/_/ _ \/ __/ _ `/
* \___/_/|_/_/ |_/_/ (_)___/_/ \_, /
* /___/
* repository.
*
* Copyright (C) 2010 Benoit 'BoD' Lubek (BoD@JRAF.org)
*
* This program is free sof... | BoD/vtail | src/main/java/org/jraf/vtail/misc/Config.java | Java | gpl-3.0 | 1,043 |
// $Id: ClassGenerationDialog.java 16603 2009-01-14 20:49:03Z thn $
// Copyright (c) 1996-2008 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted... | ckaestne/LEADT | workspace/argouml_diagrams/argouml-app/src/org/argouml/uml/generator/ui/ClassGenerationDialog.java | Java | gpl-3.0 | 26,409 |
//TODO:change email to username
package care.hospital.virtual.virtualhospital;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import androi... | fcm2009/VirtualHospital | app/src/main/java/care/hospital/virtual/virtualhospital/LoginActivity.java | Java | gpl-3.0 | 7,520 |
package com.vmware.o11n.plugin.redis.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import co... | dimitrovvlado/o11n-plugin-redis | o11nplugin-redis-core/src/main/java/com/vmware/o11n/plugin/redis/model/Connection.java | Java | gpl-3.0 | 4,105 |
package com.whtss.assets.render.animations;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.RadialGradientPaint;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Point2D;
import com.whtss.assets.hex.HexPoint;
import com.whtss.assets.render.Anima... | Chroniaro/What-Happened-to-Station-7 | src/com/whtss/assets/render/animations/TileDamage.java | Java | gpl-3.0 | 1,042 |
/**
* This file is part of Rizzly.
*
* Rizzly 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 later version.
*
* Rizzly is distributed i... | ursfassler/rizzly | src/ast/pass/input/xml/parser/expression/ExpressionParser_Test.java | Java | gpl-3.0 | 1,646 |
package org.esa.beam.statistics;
import org.esa.beam.framework.datamodel.Product;
import org.esa.beam.framework.datamodel.ProductData;
import org.esa.beam.framework.gpf.OperatorException;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Asser... | bcdev/beam | beam-statistics-op/src/test/java/org/esa/beam/statistics/StatisticsOpTest_ValidateInputTest.java | Java | gpl-3.0 | 4,051 |
/**
* Hub Miner: a hubness-aware machine learning experimentation library.
* Copyright (C) 2014 Nenad Tomasev. Email: nenad.tomasev at gmail.com
*
* 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
* Foundatio... | datapoet/hubminer | src/main/java/util/DataSetJoiner.java | Java | gpl-3.0 | 4,361 |
package plg.generator.engine;
/**
* This class represents a thread which execution can raise an exception. It is
* fundamental, however, to use this kind of thread in combination with a
* {@link ThreadContainer}.
*
* @author Andrea Burattin
* @param <T> the type returned by the computation of this threa... | delas/plg | libPlgMaven/src/main/java/plg/generator/engine/ThreadWithException.java | Java | gpl-3.0 | 1,492 |
/*
* Project: ImpishExploration
* Module: Placeholder_Game-Core_main
* File: GuiTextList.java
*
* Created by Tim on 11/06/17 13:54 on behalf of SmithsGaming
* Copyright (c) 2017. All rights reserved.
*
* Last modified 11/06/17 13:48
*/
package com.scoutgamestudio.placeholder.client.gui.components;
import com... | Tim020/Placeholder-Game | Core/src/com/scoutgamestudio/placeholder/client/gui/components/GuiTextList.java | Java | gpl-3.0 | 4,812 |
package edu.princeton.cs.algs4.sorting;
import edu.princeton.cs.algs4.io.*;
/*************************************************************************
* Compilation: javac Insertion.java
* Execution: java Insertion < input.txt
* Dependencies: StdOut.java StdIn.java
* Data files: http://algs4.cs.princeton... | bramfoo/algorithms | src/main/java/edu/princeton/cs/algs4/sorting/Insertion.java | Java | gpl-3.0 | 6,374 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2021 Evan Debenham
*
* 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 vers... | 00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/SewerPipeRoom.java | Java | gpl-3.0 | 8,446 |
package com.xck.modules.weather.web;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... | xck503c/PersonTool | src/main/java/com/xck/modules/weather/web/NowCityController.java | Java | gpl-3.0 | 1,443 |
package tmp.generated_gcide;
import cide.gast.*;
import cide.gparser.*;
import cide.greferences.*;
import java.util.*;
public class Mult1 extends Mult {
public Mult1(OneOrMore oneOrMore, Token firstToken, Token lastToken) {
super(new Property[] {
new PropertyOne<OneOrMore>("oneOrMore", oneOrMore)
... | ckaestne/CIDE | CIDE_Language_gCIDE/src/tmp/generated_gcide/Mult1.java | Java | gpl-3.0 | 705 |
/*
* This file is part of JGrasstools (http://www.jgrasstools.org)
* (C) HydroloGIS - www.hydrologis.com
*
* JGrasstools 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,... | silviafranceschi/jgrasstools | hortonmachine/src/test/java/org/jgrasstools/hortonmachine/models/hm/TestAspect.java | Java | gpl-3.0 | 2,726 |
package com.example.questioninterface;
import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.media.MediaRecorder.AudioSource;
import android.os.Environment;
import android... | sirisharallabandi/Voice_Recorder | QuestionInterface/QuestionInterface/src/com/example/questioninterface/AudioRecorder.java | Java | gpl-3.0 | 18,760 |
package util;
import java.lang.Character.Subset;
public class Path {
public static String RelativePath(String in, String prefix, StringBuilder sb){
int inLen = in != null ? in.length() : 0;
int prefixLen = prefix != null ? prefix.length() : 0;
int inOff = 0;
int prefixOff = 0;
int i = 0, j = 0;
if(in... | Nayshlok/NayGit | src/util/Path.java | Java | gpl-3.0 | 2,053 |
package net.oschina.common.utils;
import javax.script.ScriptException;
import org.apache.commons.lang.StringUtils;
import com.asual.lesscss.LessEngine;
import com.asual.lesscss.LessException;
public class CompileUtils {
public static LessEngine engine = new LessEngine();
// 编译coffeescript
public st... | w359405949/RunJS | RunJS/src/net/oschina/common/utils/CompileUtils.java | Java | gpl-3.0 | 1,195 |
/*************************************************************************
* Copyright 2009-2014 Eucalyptus Systems, Inc.
*
* 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 3 of the ... | davenpcj5542009/eucalyptus | clc/modules/object-storage-common/src/test/java/com/eucalyptus/objectstorage/UnitTestSupport.java | Java | gpl-3.0 | 8,531 |
package se.chalmers.gdcn.hashcash;
import se.chalmers.gdcn.network.WorkerID;
import javax.crypto.SecretKey;
import java.io.UnsupportedEncodingException;
import java.security.*;
/**
* Created by weeeeeew on 2014-03-31.
*/
public class HashCash {
public final static String HASH_ALGORITHM = "SHA-1";
priv... | GDCN/GDCN | GDCN_proj/Client/src/main/java/se/chalmers/gdcn/hashcash/HashCash.java | Java | gpl-3.0 | 4,858 |
package org.bel.kachok;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.getbase.floatingactionbutton.FloatingActionsMenu;
publi... | Andrewel/Kachok2.0 | app/src/main/java/org/bel/kachok/HelpActivity2.java | Java | gpl-3.0 | 2,121 |
package com.khillynn;
//Main Hub Rules and such will be made here
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.FallingBlock;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.List... | Khillynn/MyNet | .idea/src/main/java/com/khillynn/HubServ.java | Java | gpl-3.0 | 8,952 |
/*
* DatabaseTable.java
*
* Copyright (C) 2002-2017 Takis Diakoumis
*
* 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 any later version.
*
* This ... | redsoftbiz/executequery | src/org/executequery/databaseobjects/DatabaseTable.java | Java | gpl-3.0 | 5,163 |
package net.uyghurdev.avaroid.picturebookreader;
public class BookText {
String fileName;
DecompressReader der;
public String[] booktext;
//booktext = str;
public String getText() {
return booktext[1];
}
}
| Bilkan/PictureBookReader | src/src/net/uyghurdev/avaroid/picturebookreader/BookText.java | Java | gpl-3.0 | 238 |
package com.github.bordertech.wcomponents.examples.picker;
import com.github.bordertech.wcomponents.Action;
import com.github.bordertech.wcomponents.ActionEvent;
import com.github.bordertech.wcomponents.Container;
import com.github.bordertech.wcomponents.HeadingLevel;
import com.github.bordertech.wcomponents.Mar... | Joshua-Barclay/wcomponents | wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/picker/MenuPanel.java | Java | gpl-3.0 | 9,803 |
/*
* Video Telemetry for Mountain Bike Platform back-end services.
* Copyright (C) 2017 Kyle Grund
*
* 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
* ... | KyleGrund/ViTeMBP-BEJava | ViTeMBP Services/src/com/vitembp/services/imaging/ThreeAxisGOverlayElement.java | Java | gpl-3.0 | 5,520 |
package org.activityinfo.server.util.locale;
/*
* #%L
* ActivityInfo Server
* %%
* Copyright (C) 2009 - 2013 UNICEF
* %%
* 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... | LeoTremblay/activityinfo | server/src/main/java/org/activityinfo/server/util/locale/LocaleModule.java | Java | gpl-3.0 | 1,448 |