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 |
|---|---|---|---|---|---|
/**
* UPnP PortMapper - A tool for managing port forwardings via UPnP
* Copyright (C) 2015 Christoph Pirkl <christoph at users.sourceforge.net>
*
* 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 Founda... | Bitl/RBXLegacy-src | Cut/UPnP/src/main/java/org/chris/portmapper/model/PortMapping.java | Java | gpl-3.0 | 5,702 |
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at... | Bunsan/ForestryMC | src/main/java/forestry/core/inventory/wrappers/InventoryCopy.java | Java | gpl-3.0 | 2,944 |
public class Solution {
public List<Integer> lexicalOrder(int n) {
/* List<Integer> list = new ArrayList<Integer>();
for(int i = 1 ; i <= n ;i++){
list.add(i);
}
Collections.sort(list,new Comparator<Integer>(){
@Override
public int compare(Inte... | zhaoch93/leetcode | 386. Lexicographical Numbers.java | Java | gpl-3.0 | 1,196 |
package net.draconia.jobsemailcollector.parsers;
import net.draconia.jobsemailcollector.model.MimePart;
public class SinglePartParser extends MultipartParser
{
private static final long serialVersionUID = 6330956075640235166L;
private String msCharacterSet, msContentTransferEncoding, msContentType, msText;
pub... | sfulmer/JobsEmailCollector | src/main/java/net/draconia/jobsemailcollector/parsers/SinglePartParser.java | Java | gpl-3.0 | 1,892 |
package com.haozhi.mapper;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunn... | haozhi-ly/haozhi | newhaozhiwang/src/test/java/com/haozhi/mapper/CourseAnswerMapperTest.java | Java | gpl-3.0 | 752 |
/*******************************************************************************
* Copyright (c) 2013 Stephen F. Siegel, University of Delaware.
*
* This file is part of SARL.
*
* SARL is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as publis... | byu-vv-lab/sarl | src/edu/udel/cis/vsl/sarl/collections/Collections.java | Java | gpl-3.0 | 1,318 |
/**
* This file is part of tera-api.
*
* tera-api 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.
* tera-api is distributed in ... | xGamers665/tera-emu | com.tera.gapi.auth/src/main/java/com/tera/gapi/auth/service/impl/CReconnectService.java | Java | gpl-3.0 | 1,861 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.pepsoft.worldpainter;
import java.awt.Point;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import ... | nfloersch/wpgis | org/pepsoft/worldpainter/World.java | Java | gpl-3.0 | 13,602 |
package com.baeldung.java10.list;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
public class CopyListServiceUnitTest {
@Test(expected = UnsupportedOperationException.class)
public void whenModifyCopyOfList_thenThrowsException() {
List<Integer> copyList = List.copyOf(Arrays.a... | Niky4000/UsefulUtils | projects/tutorials-master/tutorials-master/core-java-modules/core-java-10/src/test/java/com/baeldung/java10/list/CopyListServiceUnitTest.java | Java | gpl-3.0 | 348 |
package org.drugis.addis.models;
import org.apache.commons.collections.list.UnmodifiableList;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by daan on 18-8-16.
*/
@Entity
public class FunnelPlot {
@Id
@GeneratedValue(strategy = Genera... | ConnorStroomberg/addis-core | src/main/java/org/drugis/addis/models/FunnelPlot.java | Java | gpl-3.0 | 1,783 |
package com.gavinflood.edumate;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
public class PrefManager {
public static final String PREF_NAME = "PEOPLE_PREFERENCES";
public static final int MODE = Context.MODE_PRIVATE;
publi... | gavinflud/edumate | src/com/gavinflood/edumate/PrefManager.java | Java | gpl-3.0 | 2,249 |
package com.badlogic.gdx.backends.android.surfaceview;
import android.content.Context;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceHolder.Callback;
import android.view.SurfaceView;
public class GLSurfaceViewICS extends SurfaceView
implements SurfaceHolder.Callback... | isnuryusuf/ingress-indonesia-dev | apk/classes-ekstartk/com/badlogic/gdx/backends/android/surfaceview/GLSurfaceViewICS.java | Java | gpl-3.0 | 6,166 |
/*****************************************************************************
* FileNGramMatcher.java
*****************************************************************************
* $Id: FileNGramMatcher.java, v 20111130
*****************************************************************************
* Copyright (C)... | antot/DELiC4MT | evaluate/ie/dcu/delic4mt/FileNGramMatcher.java | Java | gpl-3.0 | 27,363 |
package org.srdbs.web;
import net.sf.json.JSONObject;
import org.srdbs.core.DbConnect;
import org.srdbs.messenger.Sender;
import org.srdbs.scheduler.RunMessageJob;
import org.srdbs.sftp.Sftp;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | thilinapiy/SRDBS | src/main/java/org/srdbs/web/CloudStatus.java | Java | gpl-3.0 | 1,409 |
package revenue.entity;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax... | mnemotron/Revenue | revenue.entity/src/revenue/entity/BondHeader.java | Java | gpl-3.0 | 3,208 |
package com.glue.api.application;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.Set;
import org.apache.common... | pgillet/Glue | glue-api/src/main/java/com/glue/api/application/GlueImpl.java | Java | gpl-3.0 | 6,582 |
/*
Vault 3
(C) Copyright 2009, Eric Bergman-Terrell
This file is part of Vault 3.
Vault 3 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 ... | lallousx86/Vault3 | src/mainPackage/IPhotoListener.java | Java | gpl-3.0 | 839 |
package by.cooper.android.retailaccounting.viewmodel;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.databinding.ObservableBoolean;
import an... | andreycooper/retail-accounting | app/src/main/java/by/cooper/android/retailaccounting/viewmodel/LoginViewModel.java | Java | gpl-3.0 | 7,011 |
package nl.tue.declare.appl.util.swing;
import javax.swing.JButton;
public class ButtonOk extends JButton{
/**
*
*/
private static final long serialVersionUID = -8587073711875401234L;
public ButtonOk(){
super("ok");
}
}
| ijlalhussain/LogGenerator | DeclareDesigner/src/nl/tue/declare/appl/util/swing/ButtonOk.java | Java | gpl-3.0 | 237 |
package ru.pfur.skis.command;
import ru.pfur.skis.model.Bar;
import ru.pfur.skis.model.Model;
import ru.pfur.skis.model.Stiffness;
public class AddStiffnessCommand extends AbstractCommand implements Command {
private Bar bar = null;
private Stiffness stiffness = null;
public AddStiffnessCommand(Model m... | MusayevKamran/pfur-skis-model-3d | src/main/java/ru/pfur/skis/command/AddStiffnessCommand.java | Java | gpl-3.0 | 845 |
package hsb.ess.chat.entities;
import hsb.ess.chat.xml.Element;
import java.util.HashSet;
import java.util.Set;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.ContentValues;
import android.database.Cursor;
public class Contact {
public static final Str... | GitESS/SyncChatAndroid | src/hsb/ess/chat/entities/Contact.java | Java | gpl-3.0 | 8,060 |
package organizations;
/**
* @author G. Razis
*/
public class QueryConfiguration {
public static final String queryGraphOrganizations = "http://linkedeconomy.org/Organizations";
public static final String connectionString = "jdbc:virtuoso://************:1111/autoReconnect=true/charset=UTF-8/log_enable=2";
p... | YourDataStories/harvesters | DiavgeiaProjectHarvester/src/organizations/QueryConfiguration.java | Java | gpl-3.0 | 423 |
/**
* Global Sensor Networks (GSN) Source Code
* Copyright (c) 2006-2016, Ecole Polytechnique Federale de Lausanne (EPFL)
*
* This file is part of GSN.
*
* GSN 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,... | LSIR/gsn | gsn-extra/src/main/java/ch/epfl/gsn/charts/GsnChartJfreechart.java | Java | gpl-3.0 | 3,369 |
/*
* 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 distributed in the hope that it w... | waikato-datamining/adams-base | adams-imaging/src/main/java/adams/data/objectfilter/MakeSquare.java | Java | gpl-3.0 | 5,861 |
package com.github.infovip.core.data;
import com.github.infovip.core.es.type.IgnoreField;
/**
*
* @author Attila Barna
*
* @param <T>
*/
public class UserPublicElement<T> extends UserPublicFormElement<T> implements ESDataElement<UserPublicElement<T>> {
@IgnoreField
private String documentId;
public UserP... | emraxxor/infovip | infovip-common/src/main/java/com/github/infovip/core/data/UserPublicElement.java | Java | gpl-3.0 | 558 |
package supportclasses;
/**
* The Class Protocol implements the protocol and provides functions to help implementing
* the protocol. This protocol is for Group 7, Mod02 BIT/INF 2016/2017, UTWENTE
*/
public class Protocol {
/**
* Server to client messages.
* @author Merel Meekes
*/
public class Server {
... | wildd0g/softsys_project | softsys_project/src/supportclasses/Protocol.java | Java | gpl-3.0 | 3,153 |
package com.tingtingapps.securesms.util;
public @interface VisibleForTesting {
}
| odotopen/SecureMessages | src/com/tingtingapps/securesms/util/VisibleForTesting.java | Java | gpl-3.0 | 82 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.pepsoft.worldpainter.layers.bo2;
import java.io.ObjectStreamException;
import java.io.Serializable;
import javax.vecmath.Point3i;
import org.pepsoft.minecraft.Material;
/**
*
* @author pepijn
*/
public c... | nfloersch/wpgis | org/pepsoft/worldpainter/layers/bo2/Bo2BlockSpec.java | Java | gpl-3.0 | 1,332 |
/**
* 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.
*
* You should have received a copy of the GNU General Public ... | andune/anduneCommonBukkitLib | src/main/java/com/andune/minecraft/commonlib/perm/Wepif.java | Java | gpl-3.0 | 6,814 |
/*********************************************************************************************
*
*
* 'Parameter.java', in plugin 'msi.gama.headless', is part of the source code of the GAMA modeling and simulation
* platform. (v. 1.8.1)
*
* (c) 2007-2020 UMI 209 UMMISCO IRD/UPMC & Partners
*
* Visit https://gi... | gama-platform/gama | msi.gama.headless/src/msi/gama/headless/job/Parameter.java | Java | gpl-3.0 | 2,704 |
package nl.esciencecenter.eecology.classification;
import java.io.File;
import nl.esciencecenter.eecology.classification.commands.ClassifyCommand;
import nl.esciencecenter.eecology.classification.commands.CreateOutputPagesCommand;
import nl.esciencecenter.eecology.classification.commands.OutputFeaturesInCsvCommand;
i... | NLeSC/eEcology-Classification | src/main/java/nl/esciencecenter/eecology/classification/App.java | Java | gpl-3.0 | 3,638 |
package minerful.concept.constraint.relation;
public abstract class UnidirectionalRelationConstraint extends RelationConstraint {
} | cdc08x/MINERful | src/minerful/concept/constraint/relation/UnidirectionalRelationConstraint.java | Java | gpl-3.0 | 133 |
package com.winthier.chat.channel;
import com.winthier.chat.ChatPlugin;
import java.util.Arrays;
import java.util.List;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.bukkit.entity.Player;
@Getter @RequiredArgsConstructor
public final class PartyCommand implements CommandResponder {
priva... | StarTux/Chat | src/main/java/com/winthier/chat/channel/PartyCommand.java | Java | gpl-3.0 | 978 |
/*
* Copyright (C) 2014 Dominik Schürmann <dominik@dominikschuermann.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 later ... | jason-callaway/open-keychain | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyFinalFragment.java | Java | gpl-3.0 | 11,317 |
/*
* 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 Model;
import Model.ItemDao;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author koxmoz
*/
public class Ite... | ingmarcosp/jkorrer | JKorrer/src/Model/ItemDaoImplement.java | Java | gpl-3.0 | 1,452 |
/**
* Overrides any F commands with the given percentage.
*/
/*
Copyright 2016-2017 Will Winder
This file is part of Universal Gcode Sender (UGS).
UGS 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 Fo... | winder/Universal-G-Code-Sender | ugs-core/src/com/willwinder/universalgcodesender/gcode/processors/FeedOverrideProcessor.java | Java | gpl-3.0 | 2,000 |
/**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | neo4j-contrib/java-rest-binding | src/main/java/org/neo4j/rest/graphdb/converter/TypeInformation.java | Java | gpl-3.0 | 3,697 |
package is.idega.idegaweb.egov.application.component;
import is.idega.idegaweb.egov.application.ApplicationConstants;
import is.idega.idegaweb.egov.application.bean.Applicant;
import is.idega.idegaweb.egov.application.business.ApplicationBusiness;
import is.idega.idegaweb.egov.application.data.Application;
import jav... | idega/is.idega.idegaweb.egov.application | src/java/is/idega/idegaweb/egov/application/component/UserChooser.java | Java | gpl-3.0 | 6,459 |
package coderslagoon.badpeggy;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.net.URLEncoder;
import java... | coderslagoon/BadPeggy | src/coderslagoon/badpeggy/GUI.java | Java | gpl-3.0 | 50,175 |
package name.cantanima.chineseremainderclock;
import android.view.View;
import static android.view.View.INVISIBLE;
import static android.view.View.VISIBLE;
/**
* Created by cantanima on 8/22/17.
*/
public abstract class CRC_Quiz {
/**
* User wants to take a quiz. Only sets up the basics, including hiding th... | johnperry-math/Chinese-Remainder-Clock | app/src/main/java/name/cantanima/chineseremainderclock/CRC_Quiz.java | Java | gpl-3.0 | 3,373 |
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
public static int daysBetween(Calendar calendar1, Calendar calendar2) {
if (compare(calendar1, calendar2) > 0) {
Calendar temp = calendar1;
calendar1 = calendar2;
calendar2 = temp;
... | regulskimichal/DateUtils-for-JDK1.3 | src/DateUtils.java | Java | gpl-3.0 | 4,898 |
package net.jr.util;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.security.MessageDigest;
public class HashUtil {
private static final String ALG_MD5 = "MD5";
private static final String ALG_SHA1 = "SHA-1";
private static final String ALG_SHA256 = "SHA-256";
public... | jrialland/parserjunior | old/common/src/main/java/net/jr/util/HashUtil.java | Java | gpl-3.0 | 1,871 |
/*
* Copyright (c) 2017. slownet5
* This file is part of RootPGPExplorer also known as CryptoFM
*
* RootPGPExplorer a 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 o... | slownet5/RootPGPExplorer | app/src/main/java/com/slownet5/pgprootexplorer/startup/fragments/PasswordsFragment.java | Java | gpl-3.0 | 1,526 |
package app.retake.domain.dto;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@XmlRootElement(name = "vets")
@XmlAccessorType(XmlAccessType.FIELD)
public class VetWrapperXMLImportDTO {
@XmlElement(name = "vet")
private List<VetXMLImportDTO> vets;
public VetWrapp... | kostovhg/SoftUni | Java_DBFundamentals-Jan18/DBAdvanced_HibernateSpring/q_Exam_Preparation/DB-Frameworks-Oct-2017-Retake/src/main/java/app/retake/domain/dto/VetWrapperXMLImportDTO.java | Java | gpl-3.0 | 551 |
/* Copyright 2017 Thomas Schneider
*
* This file is a part of Fedilab
*
* 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 versi... | stom79/mastalab | app/src/main/java/app/fedilab/android/asynctasks/PostActionAsyncTask.java | Java | gpl-3.0 | 11,163 |
package me.koeb.ResPlan.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import me.koeb.ResPlan.core.Address;
import me.koeb.ResPlan.core.Category;
import me.koeb.ResPlan.core.RequiredDate;
import org.joda.time.LocalDate;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.tweak.ResultSe... | akoeb/ResPlan | ResPlan/src/main/java/me/koeb/ResPlan/dao/RequiredDateResultMapper.java | Java | gpl-3.0 | 1,097 |
package cheetatech.com.colorhub.adapters;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android... | CheetaTech/ColorHub | app/src/main/java/cheetatech/com/colorhub/adapters/YourColorAdapter.java | Java | gpl-3.0 | 4,806 |
package org.thoughtcrime.securesms.lang;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;
public class BhoTextView extends TextView {
Context c;
private static Typeface t;
public BhoTextView(Context context, AttributeSet attrs) {
... | guardianproject/TextSecure | src/org/thoughtcrime/securesms/lang/BhoTextView.java | Java | gpl-3.0 | 764 |
/**
* File ./src/main/java/de/lemo/dms/connectors/moodle_2_7/mapping/RoleLMS.java
* Lemo-Data-Management-Server for learning analytics.
* Copyright (C) 2015
* Leonard Kappe, Andreas Pursian, Sebastian Schwarzrock, Boris Wenzlaff
*
* This program is free software: you can redistribute it and/or modify
* i... | LemoProject/Lemo-Data-Management-Server | src/main/java/de/lemo/dms/connectors/moodle_2_7/mapping/RoleLMS.java | Java | gpl-3.0 | 2,528 |
package dewdddfree;
import java.util.logging.Logger;
import org.bukkit.plugin.java.JavaPlugin;
import dewddtran.tr;
public class Main extends JavaPlugin {
Logger log;
DigEventListener2 ax = new DigEventListener2();
public void onDisable() {
getServer().getPluginManager().disablePlugin(this);... | dewtx29/dewdd_minecraft_plugins | new/dewdd_minecraft_plugins/dewdd_dfree/src/main/java/dewdddfree/Main.java | Java | gpl-3.0 | 730 |
/*****************************************************************************
* Java Record Cleaner
* Copyright (C) 2017 William Rey
*
* 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 Fou... | wrey75/WaveCleaner | src/main/java/com/oxande/wavecleaner/util/StereoSampleQueue.java | Java | gpl-3.0 | 6,321 |
/*
* 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 edu.uniandes.ecos.modelo;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
... | deividosorio/psp01 | src/main/java/edu/uniandes/ecos/modelo/counterLOC.java | Java | gpl-3.0 | 2,739 |
package org.epm.math.settings;
import androidx.preference.PreferenceFragment;
import android.os.Bundle;
import org.epm.math.app.R;
/**
* A placeholder fragment containing a simple view.
*/
public class SettingsFragment extends PreferenceFragment {
public SettingsFragment() {
}
@Override
public v... | epman/mathops_android | app/src/main/java/org/epm/math/settings/SettingsFragment.java | Java | gpl-3.0 | 461 |
import CLIPSJNI.*;
import java.util.Scanner;
public class ClipsREPL
{
Environment clips = null;
ClipsREPL()
{
/* Instantiating a new environment */
clips = new Environment();
/* clearing it */
clips.clear();
}
void repl()
{
boolean endInteraction = false;
Scanner in = new Scann... | arranger1044/icse-1415 | lectures/lecture_4/scripts/ClipsREPL.java | Java | gpl-3.0 | 877 |
// Generated from Corundum.g4 by ANTLR 4.9.2
package com.az.gitember.controller.lang.ruby;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;
/**
* This class provides an empty implementation of {@link CorundumListener},
... | iazarny/gitember | src/main/java/com/az/gitember/controller/lang/ruby/CorundumBaseListener.java | Java | gpl-3.0 | 27,063 |
import java.math.*;
public class arrayInfo {
public static void main(String[] args) {
int[] arr = new int[10];
for(int i = 0; i < arr.length; i++){
arr[i] = (int)(Math.random() * 100);
}
for(int i : arr){
System.out.print(i + " ");
}
System.out.println();
int av = 0;
for(int i : arr){
av +... | WWHS-8-CS/array_info | arrayInfo.java | Java | gpl-3.0 | 1,023 |
package org.openconcerto.modules.extensionbuilder.list;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import org.openconcerto.erp.config.ComptaPropsConfiguration;
import org.openconcerto.modul... | mbshopM/openconcerto | Modules/Module Extension Builder/src/org/openconcerto/modules/extensionbuilder/list/FieldTreeModel.java | Java | gpl-3.0 | 3,674 |
/*
* Copyright 2013 - 2014 Felix Müller
*
* This file is part of CodeQ Invest.
*
* CodeQ Invest 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) an... | CodeQInvest/codeq-invest | quality-assessment/src/test/java/org/codeqinvest/quality/CriteriaTest.java | Java | gpl-3.0 | 1,015 |
package example.api;
import org.springframework.stereotype.Component;
import example.business.objects.Movie;
import example.business.objects.Movie.Rating;
import example.business.objects.Movie.Title;
import example.common.Transformer;
@Component
class MovieResourceToMovieTransformer implements Transformer<MovieReso... | nt-ca-aqe/blog-drafts | junit5-stereotype-checks/src/main/java/example/api/MovieResourceToMovieTransformer.java | Java | gpl-3.0 | 669 |
package net.ellisw.quvault.client;
import java.util.List;
import net.ellisw.quvault.core.ProblemHeader;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.logical.shared.HasSelectionHandle... | ellis/2009QuVault | old/server/src/net/ellisw/quvault/client/ProblemSearchWidget.java | Java | gpl-3.0 | 6,601 |
package hu.unimiskolc.iit.distsys;
import java.util.List;
import hu.mta.sztaki.lpds.cloud.simulator.Timed;
import hu.mta.sztaki.lpds.cloud.simulator.iaas.IaaSService;
import hu.mta.sztaki.lpds.cloud.simulator.iaas.PhysicalMachine;
import hu.mta.sztaki.lpds.cloud.simulator.iaas.VMManager.VMManagementException;
... | akossandor/dcf-exercises | src/main/java/hu/unimiskolc/iit/distsys/CustomPMFiller.java | Java | gpl-3.0 | 4,561 |
package de.jClipCorn.util.lambda;
@FunctionalInterface
public interface Func3to0<TInput1, TInput2, TInput3> {
void invoke(TInput1 value1, TInput2 value2, TInput3 value3);
}
| Mikescher/jClipCorn | src/main/de/jClipCorn/util/lambda/Func3to0.java | Java | gpl-3.0 | 175 |
package com.alexaegis.progtech.window.elements;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumnModel;
import java.awt.*;
import java.awt.event.ActionE... | AlexAegis/elte-progtech-2 | movie-registry/src/main/java/com/alexaegis/progtech/window/elements/ButtonColumn.java | Java | gpl-3.0 | 6,208 |
package com.amarsoft.mobile.util.tool;
public class BaseUtil {
public static boolean isEmpty(String obj){
if(obj == null || "".equals(obj))
return true;
return false;
}
public static boolean isEmpty(String... obj){
for(String o : obj){
if(isEmpty(o))return true;
}
return false;
}
}
| lzs0420/mytest | amarsoft/wxweb/src/com/amarsoft/mobile/util/tool/BaseUtil.java | Java | gpl-3.0 | 305 |
/**
* **************************************************************************
* AdvOptionsDialog.java
* ****************************************************************************
* Copyright © 2015 VLC authors and VideoLAN
* Author: Geoffrey Métais
*
* This program is free software; you can redistribute it ... | mkjung/ivi-media-player | app/src/main/java/io/github/mkjung/iviplayer/gui/dialogs/AdvOptionsDialog.java | Java | gpl-3.0 | 27,298 |
/*
* Copyright (C) 2013 Universitat Pompeu Fabra
*
* 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 prog... | GWASpi/GWASpi | src/main/java/org/gwaspi/reports/PlinkReportLoaderCombined.java | Java | gpl-3.0 | 7,493 |
package semrau.brian.gaslawsdemo.client;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
import semrau.brian.gaslawsdemo.GasLawsDemo;
public class HtmlLauncher extends GwtApplication {
@Override
... | briansemrau/GasLawsDemo | html/src/semrau/brian/gaslawsdemo/client/HtmlLauncher.java | Java | gpl-3.0 | 550 |
/*
Copyright 2012-2018 Michael Pozhidaev <michael.pozhidaev@gmail.com>
This file is part of LUWRAIN.
LUWRAIN 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 ... | luwrain/app-reader | src/main/java/org/luwrain/app/reader/filters/GDotCom.java | Java | gpl-3.0 | 2,641 |
package gov.cdc.android.news.fragment.statistics;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import android.content.Context;
import android.os.AsyncTask;
import android.view.View;
import android.widget.TextView;
import gov.cdc.android.news.R;
import gov.cdc.android.news.utils.IOUtils;
class... | CDCIMTech/newsroom-widget | src/gov/cdc/android/news/fragment/statistics/StatisticsBinderTask.java | Java | gpl-3.0 | 1,676 |
package com.firebirdberlin.nightdream.events;
public class OnLightSensorValueTimeout {
public float value;
public OnLightSensorValueTimeout(float last_value) {
this.value = last_value;
}
}
| firebirdberlin/nightdream | src/com/firebirdberlin/nightdream/events/OnLightSensorValueTimeout.java | Java | gpl-3.0 | 212 |
package com.gms.gui;
import gnu.io.CommPortIdentifier;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.ImageIcon;
import java.... | ValleyForgeTech/2014-03-26_GardenMonitorStation | gui/src/com/gms/gui/RealTimePanel.java | Java | gpl-3.0 | 8,586 |
package net.torocraft.toroquest;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.WrongUsageException;
import net.minecraft.entity.player.EntityPlayer;
i... | Knight-Gokhan/ToroQuest | java/net/torocraft/toroquest/ToroQuestCommand.java | Java | gpl-3.0 | 4,341 |
package de.dagere.kopeme.junit.exampletests.runner;
import static org.junit.Assert.fail;
import org.junit.Test;
import org.junit.runner.RunWith;
import de.dagere.kopeme.annotations.PerformanceTest;
import de.dagere.kopeme.junit.testrunner.PerformanceTestRunnerJUnit;
@RunWith(PerformanceTestRunnerJUnit.class)
public... | DaGeRe/KoPeMe | kopeme-junit/src/test/java/de/dagere/kopeme/junit/exampletests/runner/ExampleNormalJUnitTestWithKoPeMe.java | Java | gpl-3.0 | 650 |
package shop.app.server.repository;
import com.athena.server.repository.SearchInterfaceImpl;
import org.springframework.stereotype.Repository;
import shop.app.shared.location.City;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import com.athena.annot... | applifireAlgo/OnlineShopEx | onlineshopping/src/main/java/shop/app/server/repository/CityRepositoryImpl.java | Java | gpl-3.0 | 6,534 |
package aginsun.journey.universal.items;
import java.util.List;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import aginsun.journey.server.ap... | aginsun/Journey-of-Legends | Journey of Legends/aginsun/journey/universal/items/ItemExcaliburSword.java | Java | gpl-3.0 | 1,299 |
package org.tornado.scripts.tornadoitemmagician.nodes;
import org.tornado.core.api.utils.Do;
import org.tornado.core.api.utils.Get;
import org.tornado.core.api.utils.Time;
import org.tornado.core.api.utils.Widgets;
import org.tornado.framework.node.impl.ConfigurableNode;
import org.tornado.framework.script.Configurabl... | Bvink/Sirocco | src/org/tornado/scripts/tornadoitemmagician/nodes/RetrieveItems.java | Java | gpl-3.0 | 1,554 |
/*
* StopCommand.java
*
* Copyright (C) 2002-2013 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 pr... | Black-millenium/rdb-executequery | java/src/org/executequery/actions/queryeditor/StopCommand.java | Java | gpl-3.0 | 1,194 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7-b41
// 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: 2016.09.01 at 06:... | DSRCorporation/imf-conversion | itunes-metadata-tv/src/main/java/com/apple/itunes/importer/tv/MovieParticipantLocale.java | Java | gpl-3.0 | 7,148 |
/*
* 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/actors/buffs/Blindness.java | Java | gpl-3.0 | 1,701 |
package mswift42.com.github.good_notes;
import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* A simple {@link Fragment} subclass.
* Activities that contain this f... | mswift42/good-notes | app/src/main/java/mswift42/com/github/good_notes/NewTaskFragment.java | Java | gpl-3.0 | 3,626 |
package com.ecom.safecom.services.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
imp... | lobomacz/safecom | src/main/java/com/ecom/safecom/services/impl/ConfigPaginaMenuLateral.java | Java | gpl-3.0 | 5,504 |
package org.ovirt.engine.core.aaa;
import java.util.ArrayList;
import java.util.Collection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.ovirt.engine.api.extensions.Base;
import org.ovirt.engine.api.extensions.ExtKey;
import org.ovirt.engine.api.extensions.ExtMap;
import org.ovirt.engine.api.e... | jtux270/translate | ovirt/backend/manager/modules/aaa/src/main/java/org/ovirt/engine/core/aaa/AuthzUtils.java | Java | gpl-3.0 | 10,220 |
package net.cyclestreets.util;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.View;
public class MessageBox
{
public static final DialogInterface.OnClickListener NoAction = (arg0, arg1) -> { };
public static... | cyclestreets/android | libraries/cyclestreets-view/src/main/java/net/cyclestreets/util/MessageBox.java | Java | gpl-3.0 | 3,632 |
package de.rwth.idsg.steve.extensions.plugsurfing.service;
import de.rwth.idsg.steve.extensions.plugsurfing.dto.ExternalChargePointSelect;
import de.rwth.idsg.steve.extensions.plugsurfing.repository.OcppExternalTagRepository;
import de.rwth.idsg.steve.extensions.plugsurfing.repository.SessionRepository;
import de.rwth... | RWTH-i5-IDSG/steve-plugsurfing | src/main/java/de/rwth/idsg/steve/extensions/plugsurfing/service/PlugSurfingOcppAbstractMediator.java | Java | gpl-3.0 | 1,520 |
/*
* Copyright (C) 2012 www.amsoft.cn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | justingboy/AncientPoem | src/com/justing/poem/annotation/Id.java | Java | gpl-3.0 | 1,026 |
package org.cendra.commons.util.dao.ex;
public class UpdateNullException extends IllegalArgumentException {
/**
*
*/
private static final long serialVersionUID = 3990822778761403423L;
public UpdateNullException() {
super("Se intento actualizar un objeto nulo.");
}
}
| org-geobject/geoobject_api_java | other_files/examples_src/src/main/java/org/cendra/commons/util/dao/ex/UpdateNullException.java | Java | gpl-3.0 | 282 |
package at.mgm.bbm.gui;
import at.mgm.bbm.gui.screens.Application;
import org.junit.Test;
import org.newdawn.slick.AppGameContainer;
public class TestStateBasedBame {
@Test
public void testStateBasedGame() {
try {
AppGameContainer container = new AppGameContainer(new Application("Map Edit... | MichaelJ2/big-buum-man | source/bbm-map-editor/src/test/java/at/mgm/bbm/gui/TestStateBasedBame.java | Java | gpl-3.0 | 602 |
package com.zhonghuasheng.basic.java.thread.thread;
public class NewThreadRunnable {
public static void main(String[] args) {
// run方法运行
new NewRunnable().run();
// start方法运行
NewRunnable newRunnable = new NewRunnable();
Thread thread = new Thread(newRunnable);
... | zhonghuasheng/JAVA | basic/src/main/java/com/zhonghuasheng/basic/java/thread/thread/NewThreadRunnable.java | Java | gpl-3.0 | 665 |
package ch.puzzle.modjprof.agent;
import java.lang.reflect.Method;
import org.junit.Test;
public class AgentControlTest {
@Test
public void shouldInvokeStartAgentWithoutException() throws Exception {
//when
invokeAgent("startAgent");
//then
//no Exception should be thrown
... | gro-gg/modjprof | modjprof-agent/src/test/java/ch/puzzle/modjprof/agent/AgentControlTest.java | Java | gpl-3.0 | 1,482 |
package com.fh.taolijie.dto;
import com.fh.taolijie.domain.CouponModel;
/**
* Created by whf on 11/19/15.
*/
public class CouponInfoDto {
private CouponModel coupon;
private Integer total;
private Integer left;
public CouponInfoDto(CouponModel coupon, Integer tot, Integer left) {
this.coup... | wanghongfei/taolijie | src/main/java/com/fh/taolijie/dto/CouponInfoDto.java | Java | gpl-3.0 | 816 |
package mine.allen.api.translate;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import mine.allen.util.net.NetL;
/**
* Created by Allen on 2017.03.31.
*/
public class BaiduTrans {
public static void main(String[] args) {
System.out.println(translate("我爱你","auto","en"));
... | lzs0420/mytest | myApi/src/main/java/mine/allen/api/translate/BaiduTrans.java | Java | gpl-3.0 | 1,514 |
package at.jku.dke.sqlm.interpreter;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import at.jku.dke.sqlm.parser.ASTDimensionHierarchyID;
import at.jku.dke.sqlm.parser.ASTMultilevelCubeCoordinate;
import at.jku.dke.sqlm.pa... | xtoph85/HH-DW | src/at/jku/dke/hhdw/sqlm/interpreter/DataDictionary.java | Java | gpl-3.0 | 14,794 |
package de.bund.bfr.knime.fsklab.nodes.v1_9;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import org.knime.core.node.ExecutionContext;
import org.knime.core.node.NodeLogger;
import org.knime.core.util.FileUtil;
import org.knime.python2.kernel.PythonKernel;
import org.knime.pyt... | SiLeBAT/FSK-Lab | de.bund.bfr.knime.fsklab.deprecatednodes/src-1_9_0/de/bund/bfr/knime/fsklab/nodes/v1_9/PythonScriptHandler.java | Java | gpl-3.0 | 4,501 |
/*************************************************************************
* Copyright 2009-2012 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 ... | grze/parentheses | clc/modules/msgs/src/main/java/com/eucalyptus/ws/handlers/HmacHandler.java | Java | gpl-3.0 | 7,260 |
package fr.bouml;
class UmlJoinPseudoState extends UmlBaseJoinPseudoState {
/**
* returns a string indicating the king of the element
*/
public String sKind() {
return "join pseudo state";
}
/**
* the constructor, do not call it yourself !!!!!!!!!!
*/
public UmlJoinPseudoState(long id) {... | cabralje/niem-tools | niemtools-bouml/src/fr/bouml/UmlJoinPseudoState.java | Java | gpl-3.0 | 347 |
/**
* Copyright (C) 2015 Jose Manuel Barba Gonzalez <zk at wordpress.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... | zerokullneo/PCTR | PCTR-Practicas/EjerciciosPropuestos/Poligono.java | Java | gpl-3.0 | 3,815 |
/**
* 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/learning/unsupervised/evaluation/oneoff_experiments/GPKHNumIterTweaker.java | Java | gpl-3.0 | 8,968 |
package l2s.gameserver.network.l2.s2c;
import l2s.gameserver.model.Player;
import l2s.gameserver.model.instances.NpcInstance;
/**
* @author Bonux
*/
public class ExChangeToAwakenedClass extends L2GameServerPacket
{
private int _classId;
public ExChangeToAwakenedClass(Player player, NpcInstance npc, int classId)
... | pantelis60/L2Scripts_Underground | gameserver/src/main/java/l2s/gameserver/network/l2/s2c/ExChangeToAwakenedClass.java | Java | gpl-3.0 | 448 |
/*******************************************************************************************************
*
* msi.gama.util.graph.AbstractGraphEdgeAgent.java, in plugin msi.gama.core,
* is part of the source code of the GAMA modeling and simulation platform (v. 1.8.1)
*
* (c) 2007-2020 UMI 209 UMMISCO IRD/SU & Part... | gama-platform/gama | msi.gama.core/src/msi/gama/util/graph/AbstractGraphEdgeAgent.java | Java | gpl-3.0 | 2,280 |
/*
* Copyright (C) 2009-2011 RtcNbClient Team (http://rtcnbclient.wmi.amu.edu.pl/)
*
* This file is part of RtcNbClient.
*
* RtcNbClient 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 ... | RtcNbClient/RtcNbClient | RtcNbClientWorkItems/RtcNbClientWorkItemsUI/src/main/java/pl/edu/amu/wmi/kino/rtc/client/ui/workitems/presenter/WorkItemPresenterManagerFactory.java | Java | gpl-3.0 | 2,376 |