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 bssentials.fabric;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.io.*;
import java.util.Scanner;
public class BssTest {
private static String JRE = "C:\\Program Files\\Eclipse Adoptium\\... | Bssentials/Bssentials-2 | Bssentials-Fabric/src/main/java/bssentials/fabric/BssTest.java | Java | gpl-3.0 | 3,087 |
/*
* (C) Copyright 2009-2011 Cristian Dinu <goc9000@gmail.com>
*
* Licensed under the GPL-3.
*/
package uniarchive.models.archive;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import uniarchive.models.archive.IMArchive.Account;
import uniarchi... | goc9000/UniArchive | src/uniarchive/models/archive/ConversationsQuery.java | Java | gpl-3.0 | 3,449 |
/**
* Copyright (c) 2015 TerraFrame, Inc. All rights reserved.
*
* This file is part of Geoprism(tm).
*
* Geoprism(tm) 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 3 of the
* L... | terraframe/geodashboard | net.geoprism.oda.driver.ui/src/net/geoprism/oda/driver/ui/provider/QueryFacadeUtil.java | Java | gpl-3.0 | 4,267 |
package evercraft.NEMESIS13cz.Items.Dusts;
import java.util.List;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import cpw.mods.fml... | NEMESIS13cz/Evercraft | java/evercraft/NEMESIS13cz/Items/Dusts/ItemSuperalloyDust.java | Java | gpl-3.0 | 1,354 |
package org.paradise.microservice.userpreference.service.writer;
import org.junit.Test;
/**
* Created by terrence on 1/4/17.
*/
public class PDFFileWriterTest {
@Test
public void write() throws Exception {
}
@Test
public void write1() throws Exception {
}
@Test
public void gener... | TerrenceMiao/AWS | dynamodb-java/src/test/java/org/paradise/microservice/userpreference/service/writer/PDFFileWriterTest.java | Java | gpl-3.0 | 366 |
//
// 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: 2014.08.02 at 08:00... | ramsodev/DitaManagement | dita/dita.topic/src/net/ramso/dita/topic/Shape.java | Java | gpl-3.0 | 1,782 |
/*
* Copyright (C) 2014 Brockmann Consult GmbH (info@brockmann-consult.de)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any late... | arraydev/snap-engine | snap-core/src/test/java/org/esa/snap/framework/dataop/resamp/BilinearInterpolationResamplingTest.java | Java | gpl-3.0 | 5,629 |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// GenLayerIsland, GenLayerFuzzyZoom, GenLayerAdd... | sethten/MoDesserts | mcp50/temp/src/minecraft_server/net/minecraft/src/GenLayer.java | Java | gpl-3.0 | 5,267 |
/*
* Copyright 2010, 2011, 2012 mapsforge.org
*
* This program 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 3 of the License, or (at your option) any later version.
*
* This pro... | tghoward/geopaparazzi | geopaparazzimapsforge/src/org/mapsforge/android/maps/overlay/OverlayItem.java | Java | gpl-3.0 | 4,733 |
package com.lixin_computer.com.newsettingfragment;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will exe... | Great-Li-Xin/Android | NewSettingFragment/app/src/androidTest/java/com/lixin_computer/com/newsettingfragment/ExampleInstrumentedTest.java | Java | gpl-3.0 | 783 |
/*
* 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 ... | mstine/polyglot-osgi | lib/osgi/felix/org.apache.felix.framework-1.8.1/src/main/java/org/apache/felix/framework/util/manifestparser/R4Library.java | Java | gpl-3.0 | 4,564 |
/*
* Copyright (C) 2007-2019 Crafter Software Corporation. 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 3 of the License, or
* (at your option) any... | avasquez614/engine | src/main/java/org/craftercms/engine/exception/GraphQLBuildException.java | Java | gpl-3.0 | 1,112 |
/*
Copyright 2016, David R. Smith, All Rights Reserved
This file is part of TweetPepper.
TweetPepper 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) a... | buttermilk-crypto/tweetPepper | src/main/java/com/cryptoregistry/tweet/pepper/key/SecretBoxKeyContents.java | Java | gpl-3.0 | 1,465 |
/*
Copyright 2015 Jose Robson Mariano Alves
This file is part of bgfinancas.
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.
... | jmptrader/bgfinancas | src/badernageral/bgfinancas/template/cena/CenaItem.java | Java | gpl-3.0 | 2,858 |
package com.habitrpg.android.habitica.utils;
import android.annotation.SuppressLint;
import android.support.annotation.Nullable;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google... | AlbRoehm/habitica-android | Habitica/src/main/java/com/habitrpg/android/habitica/utils/CustomizationDeserializer.java | Java | gpl-3.0 | 7,245 |
/*
* This file is part of *** M y C o R e ***
* See http://www.mycore.de/ for details.
*
* MyCoRe 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)... | MyCoRe-Org/mycore | mycore-base/src/main/java/org/mycore/frontend/jersey/access/MCRRequestScopeACLFilter.java | Java | gpl-3.0 | 1,498 |
/*
* Copyright 2012 Devoteam http://www.devoteam.com
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This file is part of Multi-Protocol Test Suite (MTS).
*
* Multi-Protocol Test Suite (MTS) is free software: you can redistribute
* it and/or modify it under the terms of the GNU General... | yongs2/mts-project | mts/src/main/java/com/devoteam/srit/xmlloader/core/report/ReportStatus.java | Java | gpl-3.0 | 1,881 |
/*
* This file is part of amumag,
* a finite-element micromagnetic simulation program.
* Copyright (C) 2006-2008 Arne Vansteenkiste
*
* 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... | barnex/amumag | amu/mag/time/Extrapolator.java | Java | gpl-3.0 | 962 |
/*
* Copyright (C) 2010 Marcin Kacprzak <martin.kacprzak 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 Foundation, either version 3 of the License, or
* (at your option) any lat... | kacprzak/wkuwacz | src/main/java/pl/kacprzak/wkuwacz/SWTUtil.java | Java | gpl-3.0 | 1,417 |
package de.uni_hd.giscience.helios.core.scanner.detector;
import org.apache.commons.math3.geometry.euclidean.threed.Rotation;
import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
import de.uni_hd.giscience.helios.core.scene.RaySceneIntersection;
import de.uni_hd.giscience.helios.core.scene.Scene;
publ... | nlukac/helios-FWF | src/main/java/de/uni_hd/giscience/helios/core/scanner/detector/SingleRayPulseRunnable.java | Java | gpl-3.0 | 1,739 |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | Dato0011/btb-sms | QKSMS/src/main/java/com/bitblocker/messenger/common/google/ItemLoadedCallback.java | Java | gpl-3.0 | 1,100 |
package org.openpnp.vision.pipeline.stages;
import java.awt.Color;
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.Scalar;
import org.openpnp.vision.FluentCv;
import org.openpnp.vision.pipeline.CvPipeline;
import org.openpnp.vision.pipeline.CvStage;
import org.openpnp.vision.pipeline.P... | ChrisPVille/openpnp | src/main/java/org/openpnp/vision/pipeline/stages/MaskHsv.java | Java | gpl-3.0 | 7,049 |
/*
*
* Copyright (c) PLUX S.A., All Rights Reserved.
* (www.plux.info)
*
* This software is the proprietary information of PLUX S.A.
* Use is subject to license terms.
*
*/
package info.plux.pluxapi;
public class CommandArguments {
//BITalino
private boolean isBITalino2;
private boolean isBLE;
priva... | BITalinoWorld/revolution-android-api | api/src/main/java/info/plux/pluxapi/CommandArguments.java | Java | gpl-3.0 | 1,710 |
/**
*
*/
package org.transitime.core.dataCache;
import java.util.Collections;
import java.util.Comparator;
import java.util.Date;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.LinkedList;
import java.util.List;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;... | sheldonabrown/core | transitime/src/main/java/org/transitime/core/dataCache/TripDataHistoryCache.java | Java | gpl-3.0 | 8,523 |
package fi.pyramus.rest.controller;
import java.util.Date;
import java.util.List;
import javax.ejb.Stateless;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import fi.pyramus.dao.grading.CourseAssessmentDAO;
import fi.pyramus.dao.grading.CourseAssessmentRequestDAO;
import fi.pyramus.domainmod... | leafsoftinfo/pyramus | rest/src/main/java/fi/pyramus/rest/controller/AssessmentController.java | Java | gpl-3.0 | 3,245 |
/**
* Copyright (C) 2010 The UAPI Authors
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at the LICENSE file.
*
* You must gained the permission from the authors if you want to
* use the project into a commercial product
*/
package uapi.service;
import... | minjing/uapi | uapi.kernel/src/main/java/uapi/service/IService.java | Java | gpl-3.0 | 849 |
package main.java.controller;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.ResourceBundle;
import javax.imageio.I... | Plinz/Hive_Game | src/main/java/controller/GameScreenController.java | Java | gpl-3.0 | 42,984 |
package com.yc.ht.service;
import com.yc.ht.entity.Comments;
import com.yc.ht.entity.PaginationBean;
import com.yc.ht.entity.Song;
public interface CommentService {
boolean updateComment(Comments comments);
PaginationBean<Comments> listComment(String pageS, String currP);
}
| CuteHuiHui/htm | ht/src/main/java/com/yc/ht/service/CommentService.java | Java | gpl-3.0 | 295 |
package com.yc.novelist.service;
import java.util.List;
import com.yc.novelist.eneity.BookType;
public interface BookTypeService {
List<BookType> findAllBookTypes();
int addBookType(BookType bookType);
int delBookType(List<Integer> b);
int updateBookTypes(BookType bookType);
}
| zhonglonggit/Novelist | Novelist/src/main/java/com/yc/novelist/service/BookTypeService.java | Java | gpl-3.0 | 309 |
package net.minecraft.server;
import javax.annotation.Nullable;
public abstract class NavigationAbstract {
private static int f = 20;
protected EntityInsentient a;
protected World b;
@Nullable
protected PathEntity c;
protected double d;
private final AttributeInstance g;
private int h... | bergerkiller/SpigotSource | src/main/java/net/minecraft/server/NavigationAbstract.java | Java | gpl-3.0 | 8,006 |
package net.shadowmage.ancientwarfare.structure.gui;
import net.shadowmage.ancientwarfare.core.container.ContainerBase;
import net.shadowmage.ancientwarfare.core.gui.GuiContainerBase;
import net.shadowmage.ancientwarfare.core.gui.elements.Button;
import net.shadowmage.ancientwarfare.structure.container.ContainerG... | shadowmage45/AncientWarfare2 | src/main/java/net/shadowmage/ancientwarfare/structure/gui/GuiGateControl.java | Java | gpl-3.0 | 942 |
/*
* Copyright (c) 2017 OBiBa. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*... | Rima-B/mica2 | mica-core/src/main/java/org/obiba/mica/micaConfig/service/InvalidFormSchemaException.java | Java | gpl-3.0 | 620 |
/*
* FocusEditorConnectionComboCommand.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 ... | redsoftbiz/executequery | src/org/executequery/actions/othercommands/FocusEditorConnectionComboCommand.java | Java | gpl-3.0 | 1,312 |
/*
Copyright 2015 Ricardo Arruda Sowek
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 program is distributed in the hope that it will be ... | ricardaotsi/Android_Pong | app/src/main/java/com/dream/arruda/pong/MainActivity.java | Java | gpl-3.0 | 3,184 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2014 Oleg Dolya
*
* 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.
*
* ... | Lobz/reforged-pixel-dungeon | src/com/shatteredpixel/shatteredpixeldungeon/windows/IconTitle.java | Java | gpl-3.0 | 3,220 |
package org.fossasia.openevent.api;
/**
* Created by championswimmer on 23/5/15.
*/
public abstract class Urls {
public static final String API_VERSION = "v1";
/**
* Change Event Id Here *
*/
public static final int EVENT_ID = 1;
public static final String WEB_APP_URL_BASIC = "http://fos... | Yathannsh/open-event-android | app/src/main/java/org/fossasia/openevent/api/Urls.java | Java | gpl-3.0 | 932 |
package orion_spur.remoteObjects.Service;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.uti... | hauke96/orion_spur_client_prototype | client/src/orion_spur/remoteObjects/Service/RemoteObjectServiceProxy.java | Java | gpl-3.0 | 3,792 |
package de.codehat.mcwrapper.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.*;
/**
* MCWrapper's config class representation.
*/
public class Config {
// Application version
public int version;
//public ArrayList<String> NAMES;
/**
* Config instance.
... | Pixelhash/mcwrapper | src/main/java/de/codehat/mcwrapper/util/Config.java | Java | gpl-3.0 | 3,371 |
package name.glen.xml;
import gov.nasa.worldwind.geom.Angle;
import gov.nasa.worldwind.geom.Position;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentB... | FracturedPlane/GpsdInspector | src/name/glen/xml/XMLGPSParser.java | Java | gpl-3.0 | 6,004 |
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following lice... | qt-haiku/LibreOffice | bridges/test/java_uno/any/TestAny.java | Java | gpl-3.0 | 120,890 |
package com.school.xiaoshidai.bean;
/**
* Created by hjs on 2016/3/26.
*/
public class ShouyeListViewBean {
private String topTextView;
private String bottomTextView;
public int getShouyeListImage() {
return shouyeListImage;
}
public void setShouyeListImage(int shouyeListImage) {
... | hjshpu/xiaoshidai | app/src/main/java/com/school/xiaoshidai/bean/ShouyeListViewBean.java | Java | gpl-3.0 | 995 |
package edu.ithaca.dragon.tecmap.io.reader;
import edu.ithaca.dragon.tecmap.io.reader.CSVReader;
import java.io.IOException;
import java.util.List;
/**
*This is tha child class for zybooks files, with its specific function for reading in the student names
* it will call super to the parent class, CSVReader, and pa... | tobydragon/ConceptKnowledgeCalculator | src/main/java/edu/ithaca/dragon/tecmap/io/reader/ZybooksReader.java | Java | gpl-3.0 | 1,679 |
package helpers.reader;
import java.io.IOException;
public interface HttpReader {
String readLine() throws IOException;
String readHttpRequest() throws IOException;
}
| kostovhg/SoftUni | JavaWeb/JavaWebDevelopmentBasics/c_StateManagement/src/helpers/reader/HttpReader.java | Java | gpl-3.0 | 179 |
/*
* Copyright (C) 2007-2019 Crafter Software Corporation. 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 3 of the License, or
* (at your option) any... | craftercms/test-suite | src/test/java/org/craftercms/studio/test/cases/contenttestcases/VerifyThatStudioDisplaysProperContentStateTest.java | Java | gpl-3.0 | 10,699 |
/*
* 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 javaapplication6;
/**
*
* @author noah.franck
*/
public class JavaApplication6 {
/**
* @param args the command li... | ultimatedeath11/CSC125-Java | JavaApplication6/src/javaapplication6/JavaApplication6.java | Java | gpl-3.0 | 1,100 |
/*
* Copyright 2018 Gunnar Flötteröd
*
* 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.
*
* This program... | gunnarfloetteroed/java | experimental/src/main/java/org/matsim/contrib/opdyts/objectivefunction/MATSimObjectiveFunctionSum.java | Java | gpl-3.0 | 2,051 |
package com.theminequest.common.impl.v1parser;
import java.util.List;
import java.util.Map;
import com.theminequest.api.Managers;
import com.theminequest.api.quest.QuestDetails;
import com.theminequest.api.targeted.QuestTarget;
import com.theminequest.common.quest.v1.V1Parser;
import com.theminequest.doc.DocArgType;
... | Minequest/Common | src/main/java/com/theminequest/common/impl/v1parser/TargetHandler.java | Java | gpl-3.0 | 1,271 |
/**
* ====================================================================
* UPA (Unstructured Persistence API)
* Yet another ORM Framework
* ++++++++++++++++++++++++++++++++++
* Unstructured Persistence API, referred to as UPA, is a genuine effort
* to raise programming language frameworks managing relational da... | thevpc/upa | upa-api/src/main/java/net/thevpc/upa/config/ConfigInfo.java | Java | gpl-3.0 | 5,946 |
/*
* Copyright 2013-2016 Erwin Müller <erwin.mueller@deventm.org>
*
* This file is part of prefdialog-misc-swing.
*
* prefdialog-misc-swing 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 ... | devent/prefdialog | prefdialog-misc-swing/src/main/java/com/anrisoftware/prefdialog/miscswing/docks/api/LayoutInterruptedException.java | Java | gpl-3.0 | 1,255 |
/*
* Copyright (C) 2013-2022 Byron 3D Games Studio (www.b3dgs.com) Pierre-Alexandre (contact@b3dgs.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 Foundation, either version 3 of the Licen... | b3dgs/lionengine | lionengine-game/src/test/java/com/b3dgs/lionengine/game/feature/tile/map/collision/CollisionGroupConfigTest.java | Java | gpl-3.0 | 4,511 |
package org.cgiar.ccafs.marlo.data.model;
// Generated Feb 5, 2018 11:32:15 AM by Hibernate Tools 3.4.0.CR1
import org.cgiar.ccafs.marlo.data.IAuditLog;
import com.google.gson.annotations.Expose;
public class ReportSynthesisFlagshipProgressPolicy extends MarloAuditableEntity
implements java.io.Serializable, IAudi... | CCAFS/MARLO | marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/model/ReportSynthesisFlagshipProgressPolicy.java | Java | gpl-3.0 | 2,340 |
package org.thoughtcrime.securesms;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.graphics.Co... | alex/TextSecure | src/org/thoughtcrime/securesms/RegistrationProgressActivity.java | Java | gpl-3.0 | 25,995 |
package components.entity.enemies.overworld;
import components.map.rooms.Room;
import utility.Images;
public class ArmosGreen extends Armos
{
public ArmosGreen(int x, int y, Room room)
{
super(x, y, room);
immobile = Images.Enemies.Armos.ARMOS_GREEN;
}
}
| Ryan10145/Legend-Of-Zelda-in-Java | src/components/entity/enemies/overworld/ArmosGreen.java | Java | gpl-3.0 | 285 |
/*There are a total of n courses you have to take, labeled from 0 to n - 1.
Some courses may have prerequisites,
for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs,
return the ordering of courses you shou... | haiweiosu/2017_Coding_Algorithm | Graph_Search/course_schedule_II.java | Java | gpl-3.0 | 1,738 |
package com.epam.wilma.sequence.helper;
/*==========================================================================
Copyright since 2013, EPAM Systems
This file is part of Wilma.
Wilma is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
... | epam/Wilma | wilma-application/modules/wilma-message-sequence/src/main/java/com/epam/wilma/sequence/helper/SequenceIdUtil.java | Java | gpl-3.0 | 2,804 |
package ch.bbv.timemanagement.task.service;
/**
* Used when no task has been found.
*/
public class NoSuchTaskException extends RuntimeException {
public NoSuchTaskException(final String message) {
super(message);
}
}
| kapitarg/time-management | time-management-task-interface/src/main/java/ch/bbv/timemanagement/task/service/NoSuchTaskException.java | Java | gpl-3.0 | 230 |
package com.yc.news.service.impl;
import static org.junit.Assert.assertEquals;
import java.util.Date;
import org.junit.Test;
import com.yc.news.entity.Comment;
import com.yc.news.service.CommentService;
public class CommentServiceImplTest {
@Test
public void testAddComment() {
CommentService cs... | yl199610/KuGou | news/test/com/yc/news/service/impl/CommentServiceImplTest.java | Java | gpl-3.0 | 489 |
/*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2016 Evan Debenham
*
* Lovecraft Pixel Dungeon
* Copyright (C) 2016-2017 Leon Horn
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | TypedScroll/Lovercraft.Pixel.Dungeon | core/src/main/java/com/shatteredpixel/lovecraftpixeldungeon/actors/mobs/npcs/ImprisonedThieves.java | Java | gpl-3.0 | 3,997 |
package deprecated;
/*
* Copyright (C) 2017 Washington iGEM <uwigem@uw.edu>
*
* 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 la... | uwigem/uwigem2017 | Deprecated/src/deprecated/Blink.java | Java | gpl-3.0 | 1,554 |
/*
* Copyright (C) 2015 Edward Raff
*
* 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.
*
* This program is distri... | EdwardRaff/JSAT | JSAT/test/jsat/io/CSVTest.java | Java | gpl-3.0 | 21,075 |
/*
* Copyright (C) 2011 The Android Open Source Project
* Copyright (C) 2011 Jake Wharton <jakewharton@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... | koying/transdroid | external/JakeWharton-ActionBarSherlock/library/src/android/support/v4/app/FragmentActivity.java | Java | gpl-3.0 | 46,030 |
package com.spring.world.io.process.common.push;
import java.nio.ByteOrder;
import org.apache.mina.common.ByteBuffer;
import com.snail.mina.protocol.info.impl.BaseRoomResp;
public class PushResp extends BaseRoomResp {
private String info;
@Override
public void resp2Bytes(ByteBuffer buffer, ByteOrder order) {
... | bozhbo12/demo-spring-server | spring-world/src/main/java/com/spring/world/io/process/common/push/PushResp.java | Java | gpl-3.0 | 472 |
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main{
public static void main(String[] args) throws IOException {
Scanner sn = new Scanner(System.in);
PrintWriter pw = new PrintWriter(System.out);
int numCase=1;
while(true){
... | PuzzlesLab/PuzzlesCon | PuzzlesCon Bronze League/Bronze League IX/A/6995134_khooi8913_A.java | Java | gpl-3.0 | 976 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.industrialbioinformatics.libincubascan;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
... | kl0n/incubascan2 | src/net/industrialbioinformatics/libincubascan/PlateMapper.java | Java | gpl-3.0 | 3,929 |
package net.minecraft.server;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonArray;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonParseException;
import java.lang.re... | bergerkiller/SpigotSource | src/main/java/net/minecraft/server/DataConverterSignText.java | Java | gpl-3.0 | 4,134 |
package com.epam.wilma.stubconfig.json.parser;
/*==========================================================================
Copyright since 2013, EPAM Systems
This file is part of Wilma.
Wilma is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... | epam/Wilma | wilma-application/modules/wilma-stub-configuration-parser/src/main/java/com/epam/wilma/stubconfig/json/parser/ConditionDescriptorJsonParser.java | Java | gpl-3.0 | 7,066 |
package com.hartwig.hmftools.svtools.mult_biopsy;
import static com.hartwig.hmftools.common.utils.ConfigUtils.addLoggingOptions;
import static com.hartwig.hmftools.common.utils.ConfigUtils.setLogLevel;
import static com.hartwig.hmftools.common.utils.FileWriterUtils.addOutputDir;
import static com.hartwig.hmftools.comm... | hartwigmedical/hmftools | sv-tools/src/main/java/com/hartwig/hmftools/svtools/mult_biopsy/MultipleBiopsyAnalyser.java | Java | gpl-3.0 | 20,992 |
package lejos.robotics.filter;
import lejos.hardware.LCD;
import lejos.robotics.SampleProvider;
public class Dump extends AbstractFilter {
String format="%7.3f";
public Dump(SampleProvider source) {
super(source);
}
public Dump(SampleProvider source, String format) {
super(source);
... | SnakeSVx/ev3 | Lejos/src/main/java/lejos/robotics/filter/Dump.java | Java | gpl-3.0 | 713 |
/**
* Copyright (c) 2000-present 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 la... | moltam89/OWXP | modules/micro-maintainance-candidate/micro-maintainance-candidate-service/src/main/java/com/liferay/micro/maintainance/candidate/model/impl/CandidateEntryModelImpl.java | Java | gpl-3.0 | 20,794 |
import javax.swing.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import java.io.*;
import java.util.*;
public class Screen extends JPanel implements Runnable{
//runner
public Thread thread = new Thread(this);
public static boolean isFirst = true;
public static int myWidth, myH... | Xenocidel/AJAY-Tower-Defense-2012 | Screen.java | Java | gpl-3.0 | 6,698 |
/*
* Copyright (C) 2017 GedMarc
*
* 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.
*
* This program is distribute... | GedMarc/JWebSwing-BootstrapPlugin | src/main/java/com/jwebmp/plugins/bootstrap/panel/BSPanelFeatures.java | Java | gpl-3.0 | 920 |
/**
* Copyright 2009 - 2021 Jörgen Lundgren
*
* This file is part of org.macroing.cel4j.
*
* org.macroing.cel4j 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 3 of the Lice... | macroing/CEL4J | src/main/java/org/macroing/cel4j/java/binary/classfile/attributeinfo/ArrayValueUnion.java | Java | gpl-3.0 | 8,208 |
/*
** Class WakeUpScreen
** src/com/CharmySoft/charminder/activities/WakeUpScreen.java
*/
package com.CharmySoft.charminder.activities;
import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.RelativeLayout;
//This activity is only used for waking up the scre... | CharmySoft/charminder | app/src/main/java/com/CharmySoft/charminder/activities/WakeUpScreen.java | Java | gpl-3.0 | 1,049 |
package org.dibek.postcode.service;
import org.glassfish.jersey.client.JerseyClientBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.embedded.LocalServerPort;
import javax.ws.rs.client.AsyncInvoker... | dibek/codicepostale | src/main/java/org/dibek/postcode/service/RestClient.java | Java | gpl-3.0 | 1,045 |
/*******************************************************************************
*Copyright (c) 2009 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, only version ... | sosilent/euca | clc/modules/core/src/main/java/edu/ucsb/eucalyptus/cloud/InlineDataTooLargeException.java | Java | gpl-3.0 | 3,973 |
/*
* This source is part of the
* _____ ___ ____
* __ / / _ \/ _ | / __/___ _______ _
* / // / , _/ __ |/ _/_/ _ \/ __/ _ `/
* \___/_/|_/_/ |_/_/ (_)___/_/ \_, /
* /___/
* repository.
*
* Copyright (C) 2013 Benoit 'BoD' Lubek (BoD@JRAF.org)
*
* This program is free s... | BoD/bikey | handheld/src/main/java/org/jraf/android/bikey/backend/location/LocationPair.java | Java | gpl-3.0 | 3,226 |
/**
* Copyright 2010 Neuroph Project http://neuroph.sourceforge.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/LICENSE-2.0
*
* Unl... | sigma-phi-delta-beta-nu/liars-dice-ai | lib/neuroph-2.92/sources/neuroph-2.92/Core/src/main/java/org/neuroph/nnet/learning/BackPropagation.java | Java | gpl-3.0 | 4,655 |
//
// 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: 2014.08.02 at 08:19... | ramsodev/DitaManagement | dita/dita.glossgroup/src/net/ramso/dita/glosssgroup/Param.java | Java | gpl-3.0 | 1,762 |
/**
* Copyright (C) 2013 Gundog Studios LLC.
*
* 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.
*
* This ... | jlaws/gundog-engine | GaTCore/src/com/godsandtowers/core/commands/ExecuteSpecialCommand.java | Java | gpl-3.0 | 4,124 |
package engine.data.config;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.NoSuchElementException;
import java.util.Vector;
public class Configuration implements IConfigurable... | mes59/ChromeConflict | KosCode/src/engine/data/config/Configuration.java | Java | gpl-3.0 | 13,280 |
/*******************************************************************************
* Copyright (c) 2015 Federal Institute for Risk Assessment (BfR), Germany
*
* 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 ... | SiLeBAT/FSK-Lab | org.hsh.bfr.db/src/org/hsh/bfr/db/gui/dbtable/header/TableRowHeaderResizer.java | Java | gpl-3.0 | 3,248 |
package com.baoyb.gittest;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);... | baoyinbo/test | GitTest/app/src/main/java/com/baoyb/gittest/MainActivity.java | Java | gpl-3.0 | 377 |
package ru.mitrakov.self.cdm.client.gui;
import de.lessvoid.nifty.controls.*;
import de.lessvoid.nifty.NiftyEventSubscriber;
import ru.mitrakov.self.cdm.client.json.commands.cmd.*;
/**
*
* @author Tommy
*/
public final class GuiInviteController extends GuiPopupController implements Controller {
... | mitrakov/cdm | src/ru/mitrakov/self/cdm/client/gui/GuiInviteController.java | Java | gpl-3.0 | 831 |
/* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This file is part of Cerberus.
*
* Cerberus 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... | afnogueira/Cerberus | source/src/main/java/org/cerberus/entity/Parameter.java | Java | gpl-3.0 | 1,527 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ca.pfv.spmf.algorithms.sequentialpatterns.gsp_AGP.items.patterns;
import ca.pfv.spmf.algorithms.sequentialpatterns.gsp_AGP.items.abstractions.ItemAbstractionPair;
import java.util.ArrayList;
import java.util.Lis... | Quanhua-Guan/spmf | ca/pfv/spmf/algorithms/sequentialpatterns/gsp_AGP/items/patterns/PatternCreator.java | Java | gpl-3.0 | 3,272 |
package org.polaric.cluttr.comparators;
import org.polaric.cluttr.data.Album;
public class AlbumAlphabetical extends AlbumComparator {
private boolean ascending = true;
public AlbumAlphabetical(boolean ascending) {
this.ascending = ascending;
}
@Override
public int compare(Album album, A... | garretyoder/Cluttr | app/src/main/java/org/polaric/cluttr/comparators/AlbumAlphabetical.java | Java | gpl-3.0 | 537 |
package yapto.picturebank.sqlfile;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import com.google.common.cache.CacheLoader;
/**
* A {@link CacheLoader} loading {@link BufferedImage} from the file system.
*
* @author benobiwan
*
*/
public final class BufferedImageCac... | BenObiWan/yapto | src/yapto_core/src/yapto/picturebank/sqlfile/BufferedImageCacheLoader.java | Java | gpl-3.0 | 1,136 |
package net.obsearch.index.utils;
/*
OBSearch: a distributed similarity search engine
This project is to similarity search what 'bit-torrent' is to downloads.
Copyright (C) 2007 Kyushu Institute of Technology
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Gener... | amuller/obsearch | src/main/java/net/obsearch/index/utils/IntegerHolder.java | Java | gpl-3.0 | 2,430 |
/*******************************************************************************
* Copyright (c) 2017, BGI-Shenzhen
*
* 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... | wangwl/SOAPgaeaDevelopment4.0 | src/main/java/org/bgi/flexlab/gaea/data/mapreduce/input/bam/GaeaAnySAMInputFormat.java | Java | gpl-3.0 | 6,701 |
package org.activityinfo.server.command.handler;
/*
* #%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 versi... | LeoTremblay/activityinfo | server/src/main/java/org/activityinfo/server/command/handler/CommandHandler.java | Java | gpl-3.0 | 2,019 |
package com.koushikdutta.async.http;
import android.text.TextUtils;
import com.koushikdutta.async.util.TaggedList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* Created by koush on 7/21/14.
*/
public class Headers {
public Headers() {
}
public Headers(Map<String, Li... | omerjerk/RemoteDroid | app/src/main/java/com/koushikdutta/async/http/Headers.java | Java | gpl-3.0 | 3,908 |
package eu.siacs.conversations.utils;
import android.Manifest;
import android.content.pm.PackageManager;
public class PermissionUtils {
public static boolean allGranted(int[] grantResults) {
for (int grantResult : grantResults) {
if (grantResult != PackageManager.PERMISSION_GRANTED) {
... | SamWhited/Conversations | src/main/java/eu/siacs/conversations/utils/PermissionUtils.java | Java | gpl-3.0 | 1,050 |
package com.entrepidea.core.basic;
public class StringTests {
////Morgan Stanley phone interview, 05/14/18
//TODO Is String immutable? what's the benefit of immutable class? Why is String immutable?
/*String is immutable. Being immutable, a class is secure, thread-safe and somehow performant since its val... | entrepidea/projects | java/java.core/src/test/java/com/entrepidea/core/basic/StringTests.java | Java | gpl-3.0 | 824 |
package com.stt.webscoket.undertow.snake;
/**
* Created by Administrator on 2017-02-16.
*
* @author shitongtong
*/
public class Location {
public int x;
public int y;
public static final int GRID_SIZE = 10;
public static final int PLAYFIELD_HEIGHT = 480;
public static final int PLAYFIELD_WIDTH... | shitongtong/libraryManage | spring-boot-demo/websocket-undertow/src/main/java/com/stt/webscoket/undertow/snake/Location.java | Java | gpl-3.0 | 1,427 |
/*
* Copyright (C) 2013 jonas.oreland@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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This ... | darander/runnerup | app/src/org/runnerup/export/EndomondoSynchronizer.java | Java | gpl-3.0 | 17,335 |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | s20121035/rk3288_android5.1_repo | packages/apps/Dialer/src/com/android/dialer/PhoneCallDetailsHelper.java | Java | gpl-3.0 | 10,697 |
package appeng.block.crafting;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import appeng.api.AEApi;
import appeng.block.AEBaseItemBlock;
import appeng.core.AEConfig;
import appeng.core.features.AEFeature;
public class ItemCraftingStorage extends AEBaseItemBlock
{
public ItemCraftingStorag... | Mazdallier/Applied-Energistics-2 | src/main/java/appeng/block/crafting/ItemCraftingStorage.java | Java | gpl-3.0 | 646 |
package qhichwa.openoffice;
import com.sun.star.beans.PropertyValue;
import com.sun.star.frame.XDesktop;
import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.lang.Locale;
import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiComponentFactory;
import com.sun.star.lang.XServiceDis... | hinantin/LibreOfficePlugin | qhichwa_extended/src/openoffice/Main.java | Java | gpl-3.0 | 9,389 |
/**
* Genji Scrum Tool and Issue Tracker
* Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions
* <a href="http://www.trackplus.com">Genji Scrum Tool</a>
*
* 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... | trackplus/Genji | src/main/java/com/aurel/track/beans/base/BaseTTextBoxSettingsBean.java | Java | gpl-3.0 | 13,179 |
package cc;
/**
* Created by dokyungsong on 2/18/17.
*/
public abstract class FunctionPass extends Pass {
public abstract boolean runOnFunction(Function F);
}
| dokyungsong/cc | src/cc/FunctionPass.java | Java | gpl-3.0 | 166 |