code
stringlengths
3
1.04M
repo_name
stringlengths
5
109
path
stringlengths
6
306
language
stringclasses
1 value
license
stringclasses
15 values
size
int64
3
1.04M
/* * Copyright (c) 2014-2018 Kumuluz and/or its affiliates * and other contributors as indicated by the @author tags and * the contributor list. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
kumuluz/kumuluzee
components/jax-ws/cxf/src/main/java/com/kumuluz/ee/jaxws/cxf/ws/KumuluzWSInvoker.java
Java
mit
3,132
/* * Copyright 2015 Datalogics, Inc. */ package com.datalogics.pdf.samples.images; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.allOf; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasProperty; import static org.junit.Assert.assertTrue; ...
datalogics-coreyy/pdf-java-toolkit-samples
src/test/java/com/datalogics/pdf/samples/images/ImageDownsamplingTest.java
Java
mit
12,400
// Generated automatically from android.content.ContentProviderResult for testing purposes package android.content; import android.net.Uri; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; public class ContentProviderResult implements Parcelable { protected ContentProviderResult(...
github/codeql
java/ql/test/stubs/google-android-9.0.0/android/content/ContentProviderResult.java
Java
mit
929
package com.djs.lightStrandClient; /** * Deprecated interface, used by the Wifi code that is being deprecated * * Created by David Schmidlin on 7/4/2015. */ public interface IClient_Listener { /** * places some message into the adb log * @param msg The message the user wants to store */ vo...
nwmotogeek/HackedLights
AndroidClient/app/src/main/java/com/djs/lightStrandClient/IClient_Listener.java
Java
mit
344
package de.davherrmann.mvvm.annotations; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import de.davherrmann.mvvm.State; @Documented @Target({ ElementType.METHOD,...
cloudbearings/annoMVVM
src/main/java/de/davherrmann/mvvm/annotations/ProvidesState.java
Java
mit
450
package net.jsunit.utility; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; public class FileUtility { public static void delete(File file) { if (file.exists()) file.delete(); } public static void write(File file, String content...
wesmaldonado/test-driven-javascript-example-application
public/js-common/jsunit/java/source_core/net/jsunit/utility/FileUtility.java
Java
mit
658
package com.vsked.controller; import org.apache.log4j.Logger; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @Controller public class UserController { public Logger log = Logger.getLogger(UserController.class); @GetMapping("index") pub...
brucevsked/vskeddemolist
vskeddemos/mavenproject/springmvcmybatismysql/src/main/java/com/vsked/controller/UserController.java
Java
mit
439
package bpelviz; import java.awt.*; import java.nio.file.Path; public class Main { public static void main(String[] args) throws BPELVizException { Cli cli = new Cli(args); Path bpelFile = cli.getBpelFile(); Path htmlFile = cli.getHtmlFile(); System.out.println("...
kamdjouduplex/BPELviz
src/main/java/bpelviz/Main.java
Java
mit
665
package com.lucene; import java.io.File; import java.io.IOException; import java.util.ArrayList; import jxl.Cell; import jxl.Sheet; import jxl.Workbook; import jxl.read.biff.BiffException; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; public class CommentNews { public Commen...
MrWooJ/WJLucene-Server
src/com/lucene/CommentNews.java
Java
mit
3,720
package com.njyb.test.zhanghuacai; import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Properties; import org.junit...
Willie1234/Inforvellor-master
src/test/java/com/njyb/test/zhanghuacai/TestCountryField.java
Java
mit
3,241
package io.github.shoma2da.android_youtube_data_api_client; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ...
shoma2da/android-youtube-data-api-client
android-youtube-data-api-client/src/androidTest/java/io/github/shoma2da/android_youtube_data_api_client/ApplicationTest.java
Java
mit
381
package ca.dal.cs.scavenger; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class UserProfile extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_user...
odavison/scavenger
app/src/main/java/ca/dal/cs/scavenger/UserProfile.java
Java
mit
339
package flow.twist.reporter; import static flow.twist.config.AnalysisDirection.FORWARDS; import java.util.Set; import soot.SootMethod; import soot.Unit; import att.grappa.Edge; import att.grappa.Graph; import att.grappa.Node; import att.grappa.Subgraph; import com.google.common.collect.Sets; import flow.twist.conf...
packlnd/IFDS-RA
src/main/java/flow/twist/reporter/DebugPlotter.java
Java
mit
5,208
/* * 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...
Mayo-WE01051879/mayosapp
Build/src/tests/junit/org/apache/tools/tar/TarOutputStreamTest.java
Java
mit
1,246
package net.oschina.app.service; import android.content.Context; import android.content.Intent; import android.os.Bundle; import net.oschina.app.AppContext; import net.oschina.app.bean.Tweet; public class ServerTaskUtils { public static void pubTweet(Context context, Tweet tweet) { Intent intent = new I...
vito-kong/oschina
android-app/app/src/main/java/net/oschina/app/service/ServerTaskUtils.java
Java
mit
1,145
/** * The MIT License * * Copyright (c) 2019, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) * * 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, includi...
benas/random-beans
easy-random-core/src/test/java/org/jeasy/random/beans/Website.java
Java
mit
1,457
package com.aspose.barcode.examples.barcode_recognition.advanced_features; import com.aspose.barcode.barcoderecognition.BarCodeReader; import com.aspose.barcode.barcoderecognition.BarCodeResult; import com.aspose.barcode.barcoderecognition.QualitySettings; import com.aspose.barcode.examples.ApplyALicense; import com.a...
asposebarcode/Aspose_BarCode_Java
Examples/src/main/java/com/aspose/barcode/examples/barcode_recognition/advanced_features/FasterImageProcessingForBarcodeRecognition.java
Java
mit
1,597
package io.github.cavweb20.xml.sax.rss; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.XMLReaderFactory; import io.github.cavweb20.xml.util.XercesConstants; ...
cavweb20/tutorial-xml
src/main/java/io/github/cavweb20/xml/sax/rss/ParsingRSSEvents.java
Java
mit
1,476
/* * MIT License * * Copyright (c) 2020-2021 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors * * 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 r...
hazendaz/oshi
oshi-core/src/main/java/oshi/software/os/linux/LinuxOSFileStore.java
Java
mit
3,903
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
boggad/jdk9-sample
sample-catalog/src/main/spring.context/org/springframework/context/annotation/Condition.java
Java
mit
2,075
package org.datavaultplatform.common.crypto; import org.apache.commons.io.FileUtils; import org.bouncycastle.util.encoders.Base64; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.junit.experimental.categories.Category; import javax.crypto.Cipher; import javax.crypto.KeyGenerat...
robintaylor/datavault
datavault-common/src/test/java/org/datavaultplatform/common/crypto/EncryptionTest.java
Java
mit
19,808
/* * The MIT License (MIT) * * Copyright (c) 2015 Igor Konev * * 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, c...
yngui/jephyr
continuation/api/src/main/java/org/jephyr/continuation/DefaultContinuationProvider.java
Java
mit
1,492
package Dec2020Leetcode; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Queue; public class _0297SerializeAndDeserializeBinaryTree { static public class TreeNode { int val; TreeNode left; TreeNode right; TreeNode(int x) { val = x;...
darshanhs90/Java-InterviewPrep
src/Dec2020Leetcode/_0297SerializeAndDeserializeBinaryTree.java
Java
mit
2,061
/* * Copyright (c) 2009 WiQuery team * * 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, copy, modify, merge, publi...
openengsb-attic/forks-org.odlabs.wiquery
src/main/java/org/odlabs/wiquery/ui/sortable/SortableRevert.java
Java
mit
3,565
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2008 Oracle. All rights reserved. * * $Id: SampleDatabase.java 63573 2008-05-23 21:43:21Z trent.nelson $ */ package collections.ship.tuple; import java.io.File; import java.io.FileNotFoundException; import com.sleepycat.bind.ser...
mollstam/UnrealPy
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/db-4.7.25.0/examples_java/src/collections/ship/tuple/SampleDatabase.java
Java
mit
11,795
/* * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org...
inocybe/odl-bgpcep
bgp/bmp-impl/src/main/java/org/opendaylight/protocol/bmp/impl/message/RouteMonitoringMessageHandler.java
Java
epl-1.0
3,459
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
MikeJMajor/openhab2-addons-dlinksmarthome
bundles/org.openhab.binding.somfymylink/src/main/java/org/openhab/binding/somfymylink/internal/handler/SomfyShadeHandler.java
Java
epl-1.0
4,382
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
paulianttila/openhab2
bundles/org.openhab.binding.nibeheatpump/src/main/java/org/openhab/binding/nibeheatpump/internal/message/MessageFactory.java
Java
epl-1.0
1,936
/******************************************************************************* * Copyright (c) 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
OpenLiberty/open-liberty
dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsSharedUtilsImpl.java
Java
epl-1.0
8,999
/* * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org....
522986491/yangtools
common/util/src/test/java/org/opendaylight/yangtools/util/MapAdaptorTest.java
Java
epl-1.0
4,879
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
openhab/openhab2
bundles/org.openhab.binding.coolmasternet/src/main/java/org/openhab/binding/coolmasternet/internal/handler/HVACHandler.java
Java
epl-1.0
9,992
package org.eclipse.incquery.examples.cps.xform.m2t.monitor.util; import com.google.common.collect.Sets; import java.util.Arrays; import java.util.List; import java.util.Set; import org.eclipse.emf.ecore.EClass; import org.eclipse.incquery.examples.cps.xform.m2t.monitor.HostIpChangeMatch; import org.eclipse.in...
ZsoltKovari/incquery-examples-cps
transformations/org.eclipse.incquery.examples.cps.xform.m2t/src-gen/org/eclipse/incquery/examples/cps/xform/m2t/monitor/util/HostIpChangeQuerySpecification.java
Java
epl-1.0
5,185
/******************************************************************************* * Copyright (c) 2011-2015 The University of York. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and...
Orjuwan-alwadeai/mondo-hawk
plugins/org.hawk.neo4j-v2/src/org/hawk/neo4j_v2/util/Neo4JNode.java
Java
epl-1.0
6,636
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
openhab/openhab
bundles/binding/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/messages/Selection.java
Java
epl-1.0
28,297
/*- ******************************************************************************* * Copyright (c) 2011, 2016 Diamond Light Source Ltd. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, ...
AnthonyHullDiamond/scanning
org.eclipse.scanning.device.ui/src/org/eclipse/scanning/device/ui/model/ModelFieldLabelProvider.java
Java
epl-1.0
6,987
/** * Copyright (c) 2010-2020 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
openhab/openhab2
bundles/org.openhab.binding.omnikinverter/src/main/java/org/openhab/binding/omnikinverter/internal/handler/OmnikInverterHandler.java
Java
epl-1.0
4,175
/** * Copyright (c) Rich Hickey. All rights reserved. * The use and distribution terms for this software are covered by the * Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) * which can be found in the file epl-v10.html at the root of this distribution. * By using this softwar...
zephyrplugins/zephyr
zephyr.plugin.clojure/clojure-1.2.0/src/jvm/clojure/lang/EnumerationSeq.java
Java
epl-1.0
1,782
/** * Copyright (c) 2014-2017 by the respective copyright holders. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ pa...
vkolotov/smarthome
bundles/core/org.eclipse.smarthome.core.thing/src/main/java/org/eclipse/smarthome/core/thing/type/ThingTypeRegistry.java
Java
epl-1.0
5,966
/*- ******************************************************************************* * Copyright (c) 2011, 2016 Diamond Light Source Ltd. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, ...
AnthonyHullDiamond/scanning
org.eclipse.scanning.api/src/org/eclipse/scanning/api/event/status/AdministratorMessage.java
Java
epl-1.0
1,818
/******************************************************************************* * Copyright (c) 2016, 2020 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
OpenLiberty/open-liberty
dev/com.ibm.ws.security.jwt/src/com/ibm/ws/security/jwt/config/JwtConfig.java
Java
epl-1.0
1,585
package org.eclipse.viatra.cep.examples.sosym.tests.internal; import org.eclipse.core.databinding.observable.Realm; /** * Simple realm implementation that will set itself as default when constructed. * Invoke {@link #dispose()} to remove the realm from being the default. Does * not support asyncExec(...). */ publ...
FTSRG/viatra-cep-examples
quickfix/org.eclipse.viatra.cep.examples.sosym.tests/src/org/eclipse/viatra/cep/examples/sosym/tests/internal/DefaultRealm.java
Java
epl-1.0
986
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
MikeJMajor/openhab2-addons-dlinksmarthome
bundles/org.openhab.binding.bluetooth.am43/src/main/java/org/openhab/binding/bluetooth/am43/internal/command/ResetLimitsCommand.java
Java
epl-1.0
866
/** */ package org.cmg.ml.sam.xtext.prism.prism; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>False</b></em>'. * <!-- end-user-doc --> * * * @see org.cmg.ml.sam.xtext.prism.prism.PrismPackage#getFalse() * @model * @generated */ public interface False extends Expression { } //...
Quanticol/jSAM
LANGUAGES/PRISM/org.cmg.ml.sam.xtext.prism/src-gen/org/cmg/ml/sam/xtext/prism/prism/False.java
Java
epl-1.0
327
package com.linkonworks.df.busi.dao; import java.util.List; import com.linkonworks.df.vo.User; public interface UserDao extends BaseDao<User>{ public List<User> getAll(); }
helylinhe/Test
ps/src/com/linkonworks/df/busi/dao/UserDao.java
Java
epl-1.0
188
//$Id: Node.java 10759 2006-11-08 00:00:53Z steve.ebersole@jboss.com $ package org.hibernate.test.ops; import java.sql.Date; import java.util.HashSet; import java.util.Set; /** * @author Gavin King */ public class Node { private String name; private String description; private Date created; private Node parent...
ControlSystemStudio/cs-studio
thirdparty/plugins/org.csstudio.platform.libs.hibernate/project/testsuite/src/test/java/org/hibernate/test/ops/Node.java
Java
epl-1.0
1,674
/** * Copyright (c) 2010-2021 Contributors to the openHAB project * * See the NOTICE file(s) distributed with this work for additional * information. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse....
paulianttila/openhab2
bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/sensorjobexecutor/SceneReadingJobExecutor.java
Java
epl-1.0
3,105
/** * */ package org.cmg.ml.sam.prism; import java.math.BigInteger; import org.cmg.ml.sam.core.Probability; /** * @author loreti * */ public class Renaming extends PrismSystem { private PrismSystem argument; private int[] invMap; public Renaming( PrismSystem argument, int[] map ) { super( argument...
Quanticol/jSAM
CORE/org.cmg.ml.sam.prism/src/org/cmg/ml/sam/prism/Renaming.java
Java
epl-1.0
1,644
/* * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
arodchen/MaxSim
maxine/com.oracle.max.vm/src/com/sun/max/vm/runtime/amd64/AMD64SafepointPoll.java
Java
gpl-2.0
1,945
/* * Copyright 2009-2014 PrimeTek. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
cams7/primefaces-showcase
src/main/java/org/primefaces/showcase/view/data/treetable/SelectionView.java
Java
gpl-2.0
3,271
package bothack.bot.dungeon; import java.util.List; import bothack.bot.Alignment; import bothack.bot.IAppearance; import bothack.bot.IGame; import bothack.bot.IPosition; import bothack.bot.items.IItem; /** * Immutable representation of a tile of the dungeon. * This doesn't include monsters present on the tile. ...
krajj7/BotHack
java/bothack/bot/dungeon/ITile.java
Java
gpl-2.0
2,531
/* * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
dmlloyd/openjdk-modules
jdk/src/java.base/share/classes/java/security/KeyStore.java
Java
gpl-2.0
88,565
package com.haier.activity.fragment; import java.util.ArrayList; import java.util.Date; import java.util.List; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.View...
ChuJianan/Haier
src/com/haier/activity/fragment/NewsActivity.java
Java
gpl-2.0
6,392
/* * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
openjdk/jdk7u
jdk/src/share/classes/javax/swing/BoxLayout.java
Java
gpl-2.0
21,132
/* * jMemorize - Learning made easy (and fun) - A Leitner flashcards tool * Copyright(C) 2004-2008 Riad Djemili and contributors * * 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 v...
riadd/jMemorize
src/jmemorize/gui/swing/actions/file/AbstractExportAction.java
Java
gpl-2.0
4,581
/* Mango - Open Source M2M - http://mango.serotoninsoftware.com Copyright (C) 2006-2011 Serotonin Software Technologies Inc. @author Matthew Lohbihler 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...
sdtabilit/Scada-LTS
src/com/serotonin/mango/vo/dataSource/virtual/VirtualPointLocatorVO.java
Java
gpl-2.0
17,908
package c5.enums; import c5.consts.C5Consts; /** * Input variable type. * * @author li * @since 2014 */ public enum CaseType { UNKNOWN, NAN, NORMAL; /** * Parse string to CaseType enum. * * @param s * the input variable. * @return The corresponding enum. Return null if not found. */ ...
arging/c5
src/main/java/c5/enums/CaseType.java
Java
gpl-2.0
551
package cn.fanfan.common; import java.io.IOException; import java.io.InputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.me...
ifLab/WeCenterMobile-Android
src/cn/fanfan/common/ImageGet.java
Java
gpl-2.0
3,762
/* * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
md-5/jdk10
test/langtools/jdk/jshell/PasteAndMeasurementsUITest.java
Java
gpl-2.0
3,318
/* * Copyright 2014 IMOS * * The AODN/IMOS Portal is distributed under the terms of the GNU General Public License * */ package au.org.emii.geoserver.extensions.filters.layer.data.io; import org.geoserver.catalog.DataStoreInfo; import org.geoserver.catalog.LayerInfo; import org.geotools.data.Query; import org.ge...
aodn/DELETE_ME.geoserver-layer-filter-extension
src/main/java/au/org/emii/geoserver/extensions/filters/layer/data/io/PossibleValuesReader.java
Java
gpl-2.0
2,600
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
SpoonLabs/astor
examples/math_32/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/OutlineExtractor.java
Java
gpl-2.0
11,495
package com.codename1.samples; import com.codename1.io.AccessToken; import com.codename1.io.ConnectionRequest; import static com.codename1.ui.CN.*; import com.codename1.ui.Display; import com.codename1.ui.Form; import com.codename1.ui.Dialog; import com.codename1.ui.Label; import com.codename1.ui.plaf.UIManager; impo...
diamonddevgroup/CodenameOne
Samples/samples/GoogleLoginSample/GoogleLoginSample.java
Java
gpl-2.0
10,276
/** * OWASP Benchmark Project v1.1 * * This file is part of the Open Web Application Security Project (OWASP) * Benchmark Project. For details, please see * <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>. * * The Benchmark is free software: you can redistribute it and/...
iammyr/Benchmark
src/main/java/org/owasp/benchmark/testcode/BenchmarkTest03416.java
Java
gpl-2.0
2,096
package main.tracer.state; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.IdentityHashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; import org.json.JSONArray; import org.json.JSONObject; import main.tra...
davidstreader/JavaAutomata
src/main/tracer/state/ObjectState.java
Java
gpl-2.0
4,682
/* * 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")...
shannah/cn1
Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/drlvm/src/test/regression/H3027/AgentLibTest.java
Java
gpl-2.0
1,366
/** * Copyright (c) 2009 Pyxis Technologies inc. * * 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 2 of the License, or * (at your option) any later version. * * This software is ...
hwellmann/greenpepper-core
src/main/java/com/greenpepper/interpreter/flow/scenario/Display.java
Java
gpl-2.0
1,134
/* * #%L * Fork of JAI Image I/O Tools. * %% * Copyright (C) 2008 - 2017 Open Microscopy Environment: * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. * - University of Dundee * %% * Redistribution and use in source and binary forms, with or without * modification, ...
stelfrich/bioformats
components/forks/jai/src/jj2000/j2k/quantization/dequantizer/CBlkQuantDataSrcDec.java
Java
gpl-2.0
9,394
/* * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
zapster/graal-core
graal/com.oracle.graal.replacements/src/com/oracle/graal/replacements/nodes/arithmetic/IntegerAddExactSplitNode.java
Java
gpl-2.0
2,044
package org.wordpress.android.ui; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.support.v4.app.ActivityCompat; import android.support.v4.app.ActivityOptionsCompat; import android.text.TextUtils; import org.wordpress.android.R; import org.wordpress.android.W...
rishabh7m/WordPress-Android
WordPress/src/main/java/org/wordpress/android/ui/ActivityLauncher.java
Java
gpl-2.0
14,296
/* HeuristicCommitException.java -- Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ver...
unofficial-opensource-apple/gcc_40
libjava/javax/transaction/HeuristicCommitException.java
Java
gpl-2.0
2,050
/** Copyright (C) SYSTAP, LLC 2006-2015. All rights reserved. Contact: SYSTAP, LLC 2501 Calvert ST NW #106 Washington, DC 20008 licenses@systap.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 S...
rac021/blazegraph_1_5_3_cluster_2_nodes
bigdata/src/java/com/bigdata/journal/JournalDelegate.java
Java
gpl-2.0
8,494
/* * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
arodchen/MaxSim
maxine/com.oracle.max.vm/src/com/sun/max/vm/type/Kind.java
Java
gpl-2.0
37,235
package main; import java.awt.BorderLayout; import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JLabel; import javax.swing.JTextArea; import javax.swing.JScrollPane; import javax.swing.JButton; import javax.swing.JPasswordField; i...
mannyrivera2010/encryption-bit
src/main/main.java
Java
gpl-2.0
2,660
package com.nightscout.android.settings; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.os.Bundle; import android.preference.EditTextPreference; import android.preference.ListPreference; import android.preference.MultiSelectListPrefer...
sulkaharo/MedtronicUploader
src/com/nightscout/android/settings/SettingsFragment.java
Java
gpl-2.0
6,963
/* Copyright 2013 David Axmark Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
tybor/MoSync
runtimes/java/platforms/androidJNI/AndroidProject/src/com/mosync/pim/PIMField.java
Java
gpl-2.0
12,737
/* * 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")...
skyHALud/codenameone
Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/jdktools/modules/jdktools/src/main/java/org/apache/harmony/tools/javap/Clazz.java
Java
gpl-2.0
34,216
// PART OF THE MACHINE SIMULATION. DO NOT CHANGE. package nachos.machine; import nachos.security.*; import java.io.EOFException; import java.util.Arrays; /** * A <tt>CoffSection</tt> manages a single section within a COFF executable. */ public class CoffSection { /** * Allocate a new COFF section with th...
VictoriaLacroix/operating-system
nachos/machine/CoffSection.java
Java
gpl-2.0
6,104
package io.ph.bot.commands.fun; import io.ph.bot.commands.Command; import io.ph.bot.commands.CommandCategory; import io.ph.bot.commands.CommandData; import io.ph.bot.model.Permission; import io.ph.util.Util; import net.dv8tion.jda.core.entities.Message; /** * Make the bot say something * @author Paul *...
paul-io/momo-discord
src/io/ph/bot/commands/fun/Say.java
Java
gpl-2.0
781
/* * LispStackFrame.java * * Copyright (C) 2009 Mark Evenson * $Id: LispStackFrame.java 14572 2013-08-10 08:24:46Z mevenson $ * * 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 ver...
logicmoo/jrelisp-abcl-ws
TheRealDiffernce/lisp/LispStackFrame.java
Java
gpl-2.0
4,960
/* * #%L * Fork of JAI Image I/O Tools. * %% * Copyright (C) 2008 - 2016 Open Microscopy Environment: * - Board of Regents of the University of Wisconsin-Madison * - Glencoe Software, Inc. * - University of Dundee * %% * Redistribution and use in source and binary forms, with or without * modification, ...
imunro/bioformats
components/forks/jai/src/com/sun/media/imageioimpl/plugins/pcx/PCXConstants.java
Java
gpl-2.0
3,897
/* * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
smarr/Truffle
compiler/src/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/bytecode/BC_dcmp06.java
Java
gpl-2.0
1,725
/* * Copyright 2001-2005 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Fou...
TheTypoMaster/Scaper
openjdk/jdk/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java
Java
gpl-2.0
2,719
/* * This file is part of "SnipSnap Radeox Rendering Engine". * * Copyright (c) 2002 Stephan J. Schmidt, Matthias L. Jugel * All Rights Reserved. * * Please visit http://radeox.org/ for updates and contact. * * --LICENSE NOTICE-- * This library is free software; you can redistribute it and/or * modify it unde...
thinkberg/snipsnap
src/org/snipsnap/test/render/macro/list/ExampleListFormatterTest.java
Java
gpl-2.0
2,383
package beast.app.tools; import beast.app.beastapp.BeastLauncher; import beast.app.beastapp.BeastMain; /** Launches log-combiner * @see BeastLauncher * **/ public class LogCombinerLauncher extends BeastLauncher { public static void main(String[] args) throws Exception { if (javaVersionCheck("LogCombiner")) { ...
AlexGavruskin/tauGeodesic
beast2/src/beast/app/tools/LogCombinerLauncher.java
Java
gpl-2.0
376
/* * Copyright (C) 2013 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...
DigitalLabApp/Gramy
persianmaterialdatetimepicker/src/main/java/com/mohamadamin/persianmaterialdatetimepicker/AccessibleLinearLayout.java
Java
gpl-2.0
1,604
/************************************************************************ * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved. * * Use is subject to license terms. * * Licensed under the Apache License, Version 2.0 (the "Lic...
jbjonesjr/geoproponis
external/odfdom-java-0.8.10-incubating-sources/org/odftoolkit/odfdom/dom/attribute/text/TextTimeValueAttribute.java
Java
gpl-2.0
2,978
/******************************************************************************* * This file is part of OpenNMS(R). * * Copyright (C) 2012 The OpenNMS Group, Inc. * OpenNMS(R) is Copyright (C) 1999-2011 The OpenNMS Group, Inc. * * OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc. * * OpenNMS(R) is...
tharindum/opennms_dashboard
opennms-provision/opennms-provision-api/src/main/java/org/opennms/netmgt/provision/support/ConversationExchangeDefaultImpl.java
Java
gpl-2.0
2,269
/******************************************************************************* * This file is part of OpenNMS(R). * * Copyright (C) 2006-2011 The OpenNMS Group, Inc. * OpenNMS(R) is Copyright (C) 1999-2011 The OpenNMS Group, Inc. * * OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc. * * OpenNMS(...
tharindum/opennms_dashboard
opennms-services/src/main/java/org/opennms/netmgt/eventd/adaptors/udp/UdpProcessor.java
Java
gpl-2.0
7,734
/* * Copyright (C) 2010 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...
seadas/beam
beam-core/src/test/java/org/esa/beam/dataio/dimap/spi/GeneralFilterBandPersistableTest.java
Java
gpl-3.0
14,285
package se.idega.idegaweb.commune.block.importer.data; import java.io.File; import com.idega.block.importer.data.GenericImportFile; import com.idega.block.importer.data.ImportFile; /** * * @author bluebottle * */ public class SKVImportFile extends GenericImportFile implements ImportFile { public SKVImportFile...
idega/platform2
src/se/idega/idegaweb/commune/block/importer/data/SKVImportFile.java
Java
gpl-3.0
476
/* * Title: CloudSim Toolkit * Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds * Licence: GPL - http://www.gnu.org/copyleft/gpl.html * * Copyright (c) 2009-2012, The University of Melbourne, Australia */ package org.cloudbus.cloudsim.power.models; import static...
RaysaOliveira/cloudsim-plus
cloudsim-plus/src/test/java/org/cloudbus/cloudsim/power/models/PowerModelCubicTest.java
Java
gpl-3.0
2,041
/* FeatureVector.java * * created: Tue Oct 13 1998 * * This file is part of Artemis * * Copyright (C) 1998,1999,2000 Genome Research Limited * * 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 Foun...
satta/Artemis
uk/ac/sanger/artemis/FeatureVector.java
Java
gpl-3.0
4,313
package com.idega.builder.dynamicpagetrigger.business; public class DPTTriggerBusinessHomeImpl extends com.idega.business.IBOHomeImpl implements DPTTriggerBusinessHome { protected Class getBeanInterfaceClass(){ return DPTTriggerBusiness.class; } public DPTTriggerBusiness create() throws javax.ejb.CreateExcepti...
idega/com.idega.builder
src/java/com/idega/builder/dynamicpagetrigger/business/DPTTriggerBusinessHomeImpl.java
Java
gpl-3.0
380
package com.earth2me.essentials.commands; import com.google.common.base.Charsets; import com.google.common.io.CharStreams; import com.google.common.reflect.TypeToken; import com.google.gson.Gson; import com.google.gson.stream.JsonWriter; import com.earth2me.essentials.CommandSource; import com.earth2me.essentials.Use...
Azewilous/Essentials
Essentials/src/com/earth2me/essentials/commands/Commandcreatekit.java
Java
gpl-3.0
7,349
package cn.nukkit.command.defaults; import cn.nukkit.Player; import cn.nukkit.command.CommandSender; import cn.nukkit.command.ConsoleCommandSender; import cn.nukkit.utils.TextFormat; public class MuteCommand extends VanillaCommand { public MuteCommand(String name) { super(name, "自分をミュート状態にします。", "/mute")...
JupiterDevelopmentTeam/JupiterDevelopmentTeam
src/main/java/cn/nukkit/command/defaults/MuteCommand.java
Java
gpl-3.0
1,185
/** * UMM Schema Generator * Copyright (C) 2014 ebIX, the European forum for energy Business Information eXchange. * * 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 ...
ebIX-TT/ebix
org.ebix.umm.uml2text/xtend-gen/org/ebix/umm/uml2text/model/impl/BdtLibraryImpl.java
Java
gpl-3.0
1,569
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 // 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: 2008....
artebin/LabelMeWorkbench
src/net/trevize/labelme/jaxb/Pt.java
Java
gpl-3.0
2,164
package org.asamk.signal.manager.util; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.attribute.BasicFileAttributes; import java.nio.file.att...
AsamK/signal-cli
lib/src/main/java/org/asamk/signal/manager/util/IOUtils.java
Java
gpl-3.0
3,026
package com.quran.labs.androidquran.model.bookmark; import android.content.Context; import android.net.Uri; import androidx.annotation.NonNull; import androidx.core.content.FileProvider; import com.quran.labs.androidquran.R; import com.quran.data.model.bookmark.BookmarkData; import com.quran.labs.androidquran.databas...
quran/quran_android
app/src/main/java/com/quran/labs/androidquran/model/bookmark/BookmarkImportExportModel.java
Java
gpl-3.0
2,137
/* * Copyright (C) 2015 Mu Weiyang <young.mu@aliyun.com> * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, b...
jackwish/apkdemo
src/com/young/apkdemo/ndk/JniActivity.java
Java
gpl-3.0
3,003
// Copyright © 2010 - May 2014 Rise Vision Incorporated. // Use of this software is governed by the GPLv3 license // (reproduced in the LICENSE file). package com.risevision.ui.client.common.widgets; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.event.logical.shared.ValueChangeEvent; impo...
thinaire/rva
src/com/risevision/ui/client/common/widgets/ScaleWidget.java
Java
gpl-3.0
2,104