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
/* * 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 ...
plutext/ae-xmlgraphics-commons
src/java/org/apache/xmlgraphics/image/loader/cache/DefaultExpirationPolicy.java
Java
apache-2.0
2,043
package com.conversantmedia.mapreduce.tool; /* * #%L * Mara Core framework * ~~ * Copyright (C) 2015 Conversant * ~~ * 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://...
conversant/mara
core/src/test/java/com/conversantmedia/mapreduce/tool/ExpressionEvaluatorTest.java
Java
apache-2.0
3,517
/* * Original Work: Copyright 2012 The Netty Project * * Modified Work: Copyright 2016 Tek Counsel LLC * * Both licenses this file to you 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: * * h...
mwambler/xockets.io
com.tc.websocket/src/com/tc/websocket/server/handler/WebSocketValidationHandler.java
Java
apache-2.0
4,982
package pricing; import org.springframework.data.annotation.Id; /** * The Price class is defined as a serializable class for representing the return value of the HTTP GET request. * It contains the id and current_price object for representing as part of the Product and for storage in the * local repo. The json equ...
2tim/myR-java
mR/src/main/java/pricing/Price.java
Java
apache-2.0
955
package SearchEngine; import java.util.HashMap; public class InverseDocIndex { private String term; private int doc_num; private int total_term_num; private HashMap<String, Integer> docMap; private HashMap<String, Document> docIndex; public InverseDocIndex() { term = new String(); doc_num = 0; total_ter...
levythu/clusteredNews
cnews_backend/SearchEngine/src/SearchEngine/InverseDocIndex.java
Java
apache-2.0
1,938
/****************************************************************************** * Copyright AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and th...
ADVANTECH-Corp/node-alljoyn
alljoyn/services/time/java/TimeService/src/org/allseen/timeservice/test/TestClient.java
Java
apache-2.0
29,962
/** * * Copyright 2009-2013 The MITRE Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
voyagersearch/Xponents
Extraction/src/main/java/org/opensextant/extraction/TextEntity.java
Java
apache-2.0
6,755
/** * 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 distributed under ...
dorzey/assertj-core
src/test/java/org/assertj/core/api/booleanarray/BooleanArrayAssert_doesNotContain_Test.java
Java
apache-2.0
1,356
/* * 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 ...
sdinot/hipparchus
hipparchus-stat/src/main/java/org/hipparchus/stat/descriptive/rank/Min.java
Java
apache-2.0
5,341
package org.jeo.util; /** * Utility object for dealing with references that may be null. * <p> * This class is inspired by guava's Optional class. * </p> * @author Justin Deoliveira, OpenGeo */ public class Optional<T> { public static <X> Optional<X> of(X value) { return new Optional<X>(value); ...
geosolutions-it/jeo
core/src/main/java/org/jeo/util/Optional.java
Java
apache-2.0
876
package com.example.provider.settings; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteStatement; /** * DataBaseHelper */ public class DataBaseHelper extends SQLiteOpenHelper { private static fi...
fine1021/library
provider/src/main/java/com/example/provider/settings/DataBaseHelper.java
Java
apache-2.0
2,680
package org.swan.shard.mybatis.interceptor; import java.sql.Connection; import org.apache.ibatis.executor.statement.StatementHandler; import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.plugin.Intercepts; import org.apache.ibatis.plugin.Invocation; imp...
liufeiit/sharding
src/main/java/org/swan/shard/mybatis/interceptor/ShardPlugin.java
Java
apache-2.0
3,244
//****************************************************************** // // Copyright 2015 Samsung Electronics All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance...
kartben/iotivity
service/protocol-plugin/plugins/Android/plugin.gear.noti/src/oic/plugin/gear/noti/Activator.java
Java
apache-2.0
5,408
package com.draagon.meta.field; import com.draagon.meta.DataTypes; import com.draagon.meta.io.string.StringSerializationHandler; import com.draagon.meta.util.DataConverter; public abstract class PrimitiveField<T> extends MetaField<T> implements StringSerializationHandler { public PrimitiveField(String subtype, S...
Draagon/draagon-metaobjects
metadata/src/main/java/com/draagon/meta/field/PrimitiveField.java
Java
apache-2.0
798
/** * Copyright 2017 - 2018 Syncleus, Inc. * * 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...
Syncleus/AetherMUD
src/main/java/com/syncleus/aethermud/items/Loot.java
Java
apache-2.0
2,093
package fr.javatronic.blog.massive.annotation1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_471 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_471.java
Java
apache-2.0
145
package jp.scriptkidie.datacopy.sql.model.educationdb; public class CostTransfersKey { private String receptionNo; private Integer processNo; private String expenseItem; private String costTransferYm; private String accountLocationNo; public String getReceptionNo() { return recepti...
ueno-t/datacopy
src/jp/scriptkidie/datacopy/sql/model/educationdb/CostTransfersKey.java
Java
apache-2.0
1,318
/** * Copyright (C) 2016 Hurence (support@hurence.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://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Hurence/log-island
logisland-components/logisland-services/logisland-service-elasticsearch/logisland-service-elasticsearch_7_x-client/src/main/java/com/hurence/logisland/service/elasticsearch/ElasticsearchRecordConverter.java
Java
apache-2.0
5,510
package net.climaxmc.essentials.commands; import net.climaxmc.core.Core; import net.climaxmc.core.permissions.Rank; import net.climaxmc.core.player.PlayerData; import net.climaxmc.essentials.Essentials; import net.md_5.bungee.api.ChatColor; import org.apache.commons.lang.StringUtils; import org.bukkit.Bukkit; import o...
ClimaxMC/Plugins
Essentials/src/main/java/net/climaxmc/essentials/commands/AlertCommand.java
Java
apache-2.0
1,691
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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://www.apache.org/licenses/LICENSE-2...
xasx/camunda-bpm-platform
engine-rest/engine-rest/src/main/java/org/camunda/bpm/engine/rest/history/HistoricDecisionStatisticsRestService.java
Java
apache-2.0
1,569
package com.wenyu.kaijiw.fragment; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import me.maxwin.view.XListView; import me.maxwin.view.XListView.IXListViewListener; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.ba...
xingfeng2010/kai-ji-wang
src/com/wenyu/kaijiw/fragment/FootConnect.java
Java
apache-2.0
10,938
/* * Copyright (c) 2002-2018 "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 Foundatio...
HuangLS/neo4j
community/kernel/src/main/java/org/neo4j/kernel/impl/api/TwoPhaseNodeForRelationshipLocking.java
Java
apache-2.0
5,357
package org.pro.jpa.eamples.chapter7.service; import org.pro.jpa.eamples.chapter7.entity.Employee; import javax.persistence.EntityManager; import javax.persistence.NoResultException; import javax.persistence.PersistenceContext; import java.util.Collection; public class QueryServiceImpl implements QueryService { ...
wangruiling/samples
jpa/src/main/java/org/pro/jpa/eamples/chapter7/service/QueryServiceImpl.java
Java
apache-2.0
1,681
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2019 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
veggiespam/zap-extensions
addOns/openapi/src/test/java/org/zaproxy/zap/extension/openapi/v3/OpenApiUnitTest.java
Java
apache-2.0
36,377
package com.bjorktech.cayman.idea.common.guava.collections.extension; import com.google.common.collect.AbstractIterator; import com.google.common.collect.AbstractSequentialIterator; import java.util.Iterator; /** * User: sheshan * Date: 2018/8/2 * content: */ public class AbstractIteratorDemo { /** * 你实...
wanliwang/cayman
cm-idea/src/main/java/com/bjorktech/cayman/idea/common/guava/collections/extension/AbstractIteratorDemo.java
Java
apache-2.0
977
package com.hubspot.singularity; import java.util.List; import org.apache.mesos.Protos.Offer; import org.apache.mesos.Protos.TaskInfo; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.commo...
andrhamm/Singularity
SingularityBase/src/main/java/com/hubspot/singularity/SingularityTask.java
Java
apache-2.0
1,980
/* * Copyright 2003 - 2018 The eFaps Team * * 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 ...
eFaps/eFaps-Kernel
src/main/java/org/efaps/db/stmt/selection/elements/LabelElement.java
Java
apache-2.0
1,672
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/rwiki/tags/sakai-10.1/rwiki-api/api/src/java/uk/ac/cam/caret/sakai/rwiki/service/api/model/RWikiObject.java $ * $Id: RWikiObject.java 9108 2006-05-08 14:30:57Z ian@caret.cam.ac.uk $ *******...
harfalm/Sakai-10.1
rwiki/rwiki-api/api/src/java/uk/ac/cam/caret/sakai/rwiki/service/api/model/RWikiObject.java
Java
apache-2.0
6,602
/* * * 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"); y...
rajith77/splash
messaging-api/src/main/java/org/splash/messaging/management/ManagementMessageFactory.java
Java
apache-2.0
2,750
package test; import pourmaster.InvertedIndex; import pourmaster.search.RankedDocument; import pourmaster.terms.StringTerm; import test.models.TestDoc; import pourmaster.search.PhraseQuery; import org.apache.commons.io.FileUtils; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.juni...
mKaloer/PourMaster
core/src/test/java/test/PhraseQueryTest.java
Java
apache-2.0
7,792
// This file was generated automatically by the Snowball to Java compiler package org.tartarus.snowball.models; import org.tartarus.snowball.SnowballStemmer; import org.tartarus.snowball.Among; /** * Generated class implementing code defined by a snowball script. */ public class FinnishStemmer extends SnowballStemm...
JuleStar/uima-stemmer
src/main/java/org/tartarus/snowball/models/FinnishStemmer.java
Java
apache-2.0
32,390
/** * 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...
kingargyle/turmeric-bot
components/camel-web/src/main/java/org/apache/camel/web/util/JAXBContextResolver.java
Java
apache-2.0
2,100
package org.zalando.stups.fullstop.violation.service; import org.zalando.stups.fullstop.violation.entity.Stack; public interface ApplicationVersionService { Stack saveStack(String applicationId, String applicationVersion); }
zalando-stups/fullstop
fullstop-violation/fullstop-violation-jpa/src/main/java/org/zalando/stups/fullstop/violation/service/ApplicationVersionService.java
Java
apache-2.0
232
/* * Copyright 2015 Dipu. * * 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 wr...
dipu-bd/Cymric
src/org/sandsoft/cymric/view/ToolsLayout.java
Java
apache-2.0
1,772
package org.a0z.mpd; import java.net.URL; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.a0z.mpd.event.AbstractStatusChangeListener; import org.a0z.mpd.exception.MPDClientException; import org.a0z.mpd.exception.MPDServerException; /** * MPD Playlist controller. * * @ve...
eisnerd/mupeace
JMPDComm/src/org/a0z/mpd/MPDPlaylist.java
Java
apache-2.0
12,318
package org.yeastrc.xlink.www.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import org.slf4j.LoggerFactory; import org.slf4j.Logger; import org.yeastrc.xlink.db.DBConnectionFactory; /** * Table project_search * * !!! SearchDAO also has queries against project_searc...
yeastrc/proxl-web-app
proxl_web_app/src/main/java/org/yeastrc/xlink/www/dao/ProjectSearchDAO.java
Java
apache-2.0
6,559
/** */ package guizmo.layout; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.eclipse.emf.common.util.Enumerator; /** * <!-- begin-user-doc --> * A representation of the literals of the enumeration '<em><b>VAlignment Type</b></em>', * and utility methods for working with ...
osanchezUM/guizmo
src/guizmo/layout/VAlignmentType.java
Java
apache-2.0
5,964
package main.global; /** * Although a PageId is simply an integer, wrapping it provides convenient * methods and allows returning it via method parameters. */ public class PageId implements GlobalConst { /** The actual page id value. */ public int pid; // ----------------------------------------------------...
iyanu-obidele/buffer-manager
src/main/global/PageId.java
Java
apache-2.0
1,219
package com.comsysto.shop.ui.page.checkout; import com.comsysto.shop.service.authentication.api.FakeAuthenticationService; import com.comsysto.shop.service.basket.api.Basket; import com.comsysto.shop.service.checkout.api.Checkout; import com.comsysto.shop.service.order.api.OrderService; import com.comsysto.shop.servic...
zutherb/memory-leak-detection
shop/ui/src/main/java/com/comsysto/shop/ui/page/checkout/CheckoutPage.java
Java
apache-2.0
7,797
// Copyright 2012 Google Inc. All Rights Reserved. // // 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...
nafae/developer
examples/dfa_axis/src/main/java/dfa/axis/v1_19/GetCountries.java
Java
apache-2.0
2,844
package client_state_policies; import client_store.ClientState; import client_store.StatePolicy; import common.StoreAction; import client_store_actions.ClientSuppressAction; public class SuppressStatePolicy implements StatePolicy { @Override public ClientState apply(ClientState state, StoreAction action) { ...
StateStrategyPOC/Client
src/main/java/client_state_policies/SuppressStatePolicy.java
Java
apache-2.0
487
/* * Copyright 2014-2022 Web Firm Framework * * 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 o...
webfirmframework/wff
wffweb/src/main/java/com/webfirmframework/wffweb/css/css3/OBackgroundSize.java
Java
apache-2.0
13,418
//---------------------------------------------------- // The following code was generated by CUP v0.11b 20150326 //---------------------------------------------------- package org.eclipse.php.internal.core.compiler.ast.parser.php53; import java.util.*; import org.eclipse.dltk.ast.*; import org.eclipse.dltk...
vovagrechka/fucking-everything
phizdets/phizdets-idea/eclipse-src/org.eclipse.php.core/src/org/eclipse/php/internal/core/compiler/ast/parser/php53/CompilerAstParser.java
Java
apache-2.0
743,747
/* * 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 ...
veraPDF/veraPDF-pdfbox
pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java
Java
apache-2.0
21,212
package com.tobi.movies.posterdetails; import org.joda.time.LocalDate; import org.junit.Test; import rx.Observable; import rx.schedulers.Schedulers; import static junit.framework.Assert.assertEquals; import static org.mockito.Mockito.*; public class MovieDetailsUseCaseTest { private static final long ANY_MOVIE...
tobiasheine/Movies
app/src/test/java/com/tobi/movies/posterdetails/MovieDetailsUseCaseTest.java
Java
apache-2.0
2,230
package xyz.truenight.utils.interfaces; public interface Supplier<T> { T get(); }
TrueNight/Utils
utils/src/main/java/xyz/truenight/utils/interfaces/Supplier.java
Java
apache-2.0
86
/* * AVMode.java.java * * Created on 03-12-2010 06:40:42 PM * * Copyright 2010 Jonathan Colt * * 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/LICE...
jnthnclt/nicity
nicity-view/src/main/java/com/jonathancolt/nicity/view/value/AVMode.java
Java
apache-2.0
3,122
package se.bjurr.jenkinsplugins; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; public class WebInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { @Override protected Class<?>[] getServletConfigClasses() { return new Class[] { Applicat...
tomasbjerre/jenkins-plugins
web/src/main/java/se/bjurr/jenkinsplugins/WebInitializer.java
Java
apache-2.0
504
package com.sdl.dxa.modules.core.model.entity; import com.fasterxml.jackson.annotation.JsonProperty; import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticEntities; import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticEntity; import com.sdl.webapp.common.api.mapping.semantic.annotation...
sdl/dxa-modules
webapp-java/dxa-module-core/src/main/java/com/sdl/dxa/modules/core/model/entity/Location.java
Java
apache-2.0
1,512
package org.apereo.cas.config; import org.apache.commons.lang3.StringUtils; import org.apereo.cas.api.AuthenticationRequestRiskCalculator; import org.apereo.cas.api.AuthenticationRiskContingencyPlan; import org.apereo.cas.api.AuthenticationRiskEvaluator; import org.apereo.cas.api.AuthenticationRiskMitigator; import or...
Unicon/cas
support/cas-server-support-electrofence/src/main/java/org/apereo/cas/config/ElectronicFenceConfiguration.java
Java
apache-2.0
7,753
/** * */ /** * @author Vladimir Kornienko * */ package org.openntf.red.annotations;
hyarthi/project-red
src/java/org.openntf.red.main/src/org/openntf/red/annotations/package-info.java
Java
apache-2.0
89
/* * Copyright (c) 2016. Self Training Systems, Inc - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by <tien.workinfo@gmail.com - rubit1359@gmail.com - manetivinay@gmail.com>, October 2016 */ package com.coderschool.android2...
RubitOrganization/Rubit
app/src/main/java/com/coderschool/android2/rubit/utils/BitmapScaler.java
Java
apache-2.0
1,739
package org.inaetics.dronessimulator.gameengine.common.gameevent; import org.inaetics.dronessimulator.common.protocol.EntityType; import org.inaetics.dronessimulator.common.protocol.KillMessage; import org.inaetics.dronessimulator.common.protocol.ProtocolMessage; import org.inaetics.dronessimulator.gameengine.identifi...
INAETICS/Drones-Simulator
implementation/gameengine/common/src/main/java/org/inaetics/dronessimulator/gameengine/common/gameevent/DestroyBulletEvent.java
Java
apache-2.0
1,394
/** * 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 * distribu...
mkhutornenko/incubator-aurora
src/test/java/org/apache/aurora/scheduler/MesosSchedulerImplTest.java
Java
apache-2.0
11,294
/* *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * *WSO2 Inc. licenses this file to you 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/LI...
mpmunasinghe/product-ei
integration/mediation-tests/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/messaging/Sample381TestCase.java
Java
apache-2.0
3,241
/* * sshIt: simple, powerful, open-source SSH client for Android * Copyright 2014 Alpha LLC * * 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/LICE...
alphallc/connectbot
src/com/trilead/ssh2/compression/Zlib.java
Java
apache-2.0
3,605
/* * 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 ...
afs/jena-workspace
src/main/java/rdf_star/StreamRDFNoStar.java
Java
apache-2.0
1,905
package com.github.ninerules.traverser; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.stream.Collectors; import org.junit.Tes...
tamada/9rules
src/test/java/com/github/ninerules/traverser/FileVisitorTest.java
Java
apache-2.0
1,361
package com.cwjcsu.projecteuler.p1_50; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class Problem42 { // 162 public static void main(String[] args) throws Exception { do1(); } static void do1() throws IOException { BufferedReader r = new BufferedReader(new Fil...
cwjcsu/learning
basic/src/main/java/com/cwjcsu/projecteuler/p1_50/Problem42.java
Java
apache-2.0
907
package com.philosophicalhacker.rxloader; import org.junit.Test; import static org.junit.Assert.*; /** * Example local unit test, which will execute on the development machine (host). * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ public class ExampleUnitTest { @Test p...
kmdupr33/RxLoader
sample/src/test/java/com/philosophicalhacker/rxloader/ExampleUnitTest.java
Java
apache-2.0
410
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.execution.lineMarker; import com.intellij.execution.TestStateStorage; import com.intellij.execution.testframework.TestIconMapper; import com.intellij.executi...
paplorinc/intellij-community
platform/lang-impl/src/com/intellij/execution/lineMarker/RunLineMarkerContributor.java
Java
apache-2.0
4,148
import javax.swing.JPanel; import javax.swing.JFrame; import java.awt.Color; import java.awt.Graphics; import java.util.Random; @SuppressWarnings("serial") public class CirculoEQuadrado extends JPanel { int opc; int i = 0; int z = 10; Random rnd = new Random(); public CirculoEQuadrado(int opc) { ...
wesleyegberto/study
CriadorFormas/src/CirculoEQuadrado.java
Java
apache-2.0
1,798
/* * Copyright 2010-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not u...
iisi-nj/GemFireLite
Gemlite-bundle/Gemlite-launcher/src/main/java/gemlite/core/internal/support/IModuleContextCreator.java
Java
apache-2.0
1,510
package org.fossasia.adapters; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.webkit.URLUtil; import android.widget.BaseAdapter; import android.widget.ImageView; import an...
fossasia/fossasia-companion-android
app/src/main/java/org/fossasia/adapters/SpeakerAdapter.java
Java
apache-2.0
5,843
/* ************************************************************************************ * Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2011 * encuestame Development Team. * Licensed under the Apache Software License version 2.0 * You may obtain a copy of the License at http://www.apache....
cristiani/encuestame
enme-social/src/main/java/org/encuestame/social/connect/service/ConnectOperations.java
Java
apache-2.0
2,298
package lambda; import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils; import java.util.Arrays; import java.util.List; import java.util.concurrent.Callable; import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Predicate; /** ...
songzhw/Hello-kotlin
Java8-Demo/src/lambda/ObjectOrNot.java
Java
apache-2.0
2,143
package com.google.api.ads.adwords.jaxws.v201406.cm; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * Content Label for category exclusion. * <span class="constraint AdxEnabled">This is ena...
nafae/developer
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201406/cm/ContentLabel.java
Java
apache-2.0
1,717
/* * Copyright 2005 Sascha Weinreuter * * 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 t...
leafclick/intellij-community
plugins/xpath/xpath-lang/src/org/intellij/lang/xpath/completion/XPathInsertHandler.java
Java
apache-2.0
4,975
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.editor.impl; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.command.CommandEvent; import com.intellij.openap...
leafclick/intellij-community
platform/platform-impl/src/com/intellij/openapi/editor/impl/VisibleEditorsTracker.java
Java
apache-2.0
1,895
package sample.app; import com.jaynewstrom.composite.reflection.CompositeReflection; import java.util.Set; import sample.library.NavigationRegistrable; public final class Main { public static void main(String[] args) { for (NavigationRegistrable navigationRegistrable : GeneratedNavigationRegistrableModu...
JayNewstrom/Composite
integration-test-sample-java/src/main/java/sample/app/Main.java
Java
apache-2.0
739
package com.example.android.sunshine.app.sync; import android.app.AlarmManager; import android.app.IntentService; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.support.v4.content.WakefulBroadcastReceiver; import...
googlecodelabs/getting-ready-for-android-n
app/src/main/java/com/example/android/sunshine/app/sync/SunshineSyncService.java
Java
apache-2.0
4,238
package controller; import java.util.ArrayList; import java.util.List; import javax.validation.Valid; import model.ErrorMessage; import model.ValidationResponse; import model.User; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingRes...
pinkapp/spring-mvc
spring-mvc-ajax-demo/src/controller/AjaxController.java
Java
apache-2.0
1,851
package com.jaksona.app.entity.admin; import com.jaksona.app.entity.BaseEntity; import java.util.List; /** * 角色 * @author jaksona */ public class Role extends BaseEntity { // members private String name; private String descn; // relations private List<User> users; private List<Permission> permissions; //...
chenluyuan/jaksona
src/main/java/com/jaksona/app/entity/admin/Role.java
Java
apache-2.0
850
package com.maxiee.heartbeat.database.utils; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import com.maxiee.heartbeat.database.tables.EventImageRelationTable; import com.maxiee.heartbeat.database.tables.ImageTable; import com.maxiee.heartbeat.model.Image; /** ...
maxiee/HeartBeat
app/src/main/java/com/maxiee/heartbeat/database/utils/ImageUtils.java
Java
apache-2.0
4,491
/** * Copyright (C) 2015 Red Hat, Inc. * * 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...
fabric8io/kubernetes-client
kubernetes-examples/src/main/java/io/fabric8/kubernetes/examples/kubectl/equivalents/UploadDirectoryToPod.java
Java
apache-2.0
1,431
package activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.TelephonyManager; import android.text.TextUtils; import android.view.View; import project.zfy.com.mymobilesalf.R; import utils.ConstantValue; import utils.SpUtil; import util...
zengfanyu/MyMobileSalf
app/src/main/java/activity/Setup2Activity.java
Java
apache-2.0
3,112
/* * Copyright (C) 2014 Sebastien Diot. * * 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 ...
skunkiferous/Util
prototypes/src/main/java/com/blockwithme/util/proto/properties/impl/Link.java
Java
apache-2.0
3,148
/** Copyright 2014-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the "license...
Defozo/uniquiz
samples/src/main/java/helloworld/HelloWorldSpeechletRequestStreamHandler.java
Java
apache-2.0
1,751
package com.azaptree.services.commons.validation; /* * #%L * AZAPTREE-SERVICES-COMMONS * %% * Copyright (C) 2012 AZAPTREE.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 * ...
azaptree/azaptree-services
azaptree-services-commons/src/main/java/com/azaptree/services/commons/validation/ValidationException.java
Java
apache-2.0
2,171
package eu.scidipes.toolkits.palibrary.impl; import static eu.scidipes.toolkits.palibrary.utils.MiscUtils.HASH_INIT; import static eu.scidipes.toolkits.palibrary.utils.MiscUtils.HASH_PRIME; import static org.apache.commons.lang.Validate.notNull; import info.digitalpreserve.interfaces.CurationPersistentIdentifier; impo...
tommyb82/preservation-assistant
pa-library/src/main/java/eu/scidipes/toolkits/palibrary/impl/FormImpl.java
Java
apache-2.0
14,878
/* * Copyright (C) 2012 ZXing 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 applicable law or agr...
humorousz/Exercises
MyApplication/zq-3rd-part/zxinglibrary/src/main/java/com/yzq/zxinglibrary/camera/OpenCameraInterface.java
Java
apache-2.0
2,472
package magicaltechteam.com.mbaasautenticator; import magicaltechteam.com.mbaasautenticator.request.OtpRequest; import magicaltechteam.com.mbaasautenticator.response.OtpResponse; import retrofit2.Call; import retrofit2.http.Body; import retrofit2.http.POST; /** * Created by socheat on 4/6/16. */ public interface Cl...
PkayJava/MBaaS-Authenticator-Android
app/src/main/java/magicaltechteam/com/mbaasautenticator/Client.java
Java
apache-2.0
405
package com.dy.util; import java.net.URLEncoder; import android.os.AsyncTask; import android.os.Handler; import android.text.TextUtils; import com.dy.activity.MainActivity; import com.dy.app.Application; import com.dy.bean.City; import com.dy.bean.WeatherInfo; public class GetWeatherTask extends AsyncTask<Void, Voi...
dy2903/WeatherAppCool
src/com/dy/util/GetWeatherTask.java
Java
apache-2.0
3,076
package com.google.api.ads.adwords.jaxws.v201406.cm; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Gender.GenderType. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType n...
nafae/developer
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201406/cm/GenderGenderType.java
Java
apache-2.0
912
package com.google.ar.sceneform.collision; import android.support.annotation.Nullable; import com.google.ar.sceneform.common.TransformProvider; import com.google.ar.sceneform.utilities.ChangeId; import com.google.ar.sceneform.utilities.Preconditions; /** * Represents the collision information associated with a trans...
google-ar/sceneform-android-sdk
sceneformsrc/sceneform/src/main/java/com/google/ar/sceneform/collision/Collider.java
Java
apache-2.0
2,818
/* * Copyright (C) 2013-2016 Benjamin Gould, and others * * 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 ...
bgould/thriftee
libthrift-ext/src/main/java/org/thriftee/thrift/schema/ModuleSchema.java
Java
apache-2.0
6,417
package org.alfresco.repo.lotus.ws; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for anonymous ...
Alfresco/alfresco-quickr-connector
quickr/source/generated/org/alfresco/repo/lotus/ws/UpdateDocumentResponse.java
Java
apache-2.0
1,701
package fr.reivon.formation.spring.sprintbootHelloWorld.domain; import javax.validation.constraints.NotNull; public class Todo { @NotNull String title; @NotNull String description; public Todo() { } public Todo(String title, String description) { this.title = title; thi...
reivon/formationSpring
FormationSpring_18/src/main/java/fr/reivon/formation/spring/sprintbootHelloWorld/domain/Todo.java
Java
apache-2.0
665
package com.psygate.civdominion.upgrades; import java.util.Collection; import java.util.HashMap; import java.util.LinkedList; import java.util.Map.Entry; import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.logging.Logger; import org.bukkit.entity.Player; import com.psygate.civdominion.CivDomin...
jpmiii/dominion
com/psygate/civdominion/upgrades/UpgradeTimer.java
Java
artistic-2.0
3,796
/** * Copyright (c) 2009 - 2011 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org> * * This file is part of org.appwork.utils.swing.table * * This software is licensed under the Artistic License 2.0, * see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php * for details *...
friedlwo/AppWoksUtils
src/org/appwork/swing/exttable/ExtTableHeaderRenderer.java
Java
artistic-2.0
7,450
package com.caiyq.thridloginlibary.login; import android.content.Context; /** * 登入接口 * @author LZT * */ public interface Login { /** * 登入方法,实现了这个接口的方法通过调用此方法,完成登录功能。调用前需要设置相应的appid和具体的登入类。 * @param context * @param mAuthListener */ public void siginIn(Context context, LZTAuthListener mAuthL...
bigthing33/LoginDemo
ThridLoginLibary/src/com/caiyq/thridloginlibary/login/Login.java
Java
artistic-2.0
440
package cz.metacentrum.perun.rpc.methods; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import cz.metacentrum.perun.core.api.exceptions.PerunException; import cz.metacentrum.perun.core.api.exceptions.RpcException; import cz.metacentrum.perun.rpc.ApiCaller; import c...
stavamichal/perun
perun-rpc/src/main/java/cz/metacentrum/perun/rpc/methods/CabinetManagerMethod.java
Java
bsd-2-clause
19,076
/* * Copyright (c) 2014, Klaus Hauschild All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of conditions an...
klaushauschild1984/gml-tracer
src/main/java/de/hauschild/gmltracer/tracer/light/AbstractLight.java
Java
bsd-2-clause
1,502
/* * Copyright (c) 2018, Adam <Adam@sigterm.info> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * li...
abelbriggs1/runelite
runescape-api/src/main/java/net/runelite/rs/api/RSIgnoreContainer.java
Java
bsd-2-clause
1,487
/** * Created: Nov 15, 2013 2:17:27 PM */ package com.livescribe.framework.oauth.service; import java.util.List; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import com.livescribe.aws...
jackstraw66/web
livescribe/lsloginservice/src/test/java/com/livescribe/framework/oauth/service/AuthorizationServiceImplTest.java
Java
bsd-2-clause
1,658
package edu.berkeley.icsi.xnet; import javax.json.Json; import javax.json.JsonObject; import uk.ac.imperial.pipe.models.petrinet.AbstractExternalTransition; public class SuspendExternalTransition extends AbstractExternalTransition { private static final String COMMAND = "command"; private static final String SUS...
icsi-berkeley/robot-xnet
src/main/java/edu/berkeley/icsi/xnet/SuspendExternalTransition.java
Java
bsd-2-clause
732
package edu.ucsf.lava.core.audit; import java.sql.Timestamp; import java.util.Date; import edu.ucsf.lava.core.audit.model.AuditEvent; public class AuditThreadData { private static ThreadLocal auditEventThreadLocal = new ThreadLocal() { //called once per thread upon initial get.. protected synchro...
UCSFMemoryAndAging/lava
lava-core/src/edu/ucsf/lava/core/audit/AuditThreadData.java
Java
bsd-2-clause
705
package com.summer.mapper; import com.summer.pojo.TbItemParam; import com.summer.pojo.TbItemParamExample; import org.apache.ibatis.annotations.Param; import java.util.List; public interface TbItemParamMapper { /** * This method was generated by MyBatis Generator. * This method corresponds to the databa...
TomorrowOnceMore/SummerMVC
summer-manager/summer-manager-dao/src/main/java/com/summer/mapper/TbItemParamMapper.java
Java
bsd-2-clause
3,466
package cfvbaibai.cardfantasy.engine.skill; import cfvbaibai.cardfantasy.GameUI; import cfvbaibai.cardfantasy.data.Skill; import cfvbaibai.cardfantasy.engine.CardInfo; import cfvbaibai.cardfantasy.engine.EntityInfo; import cfvbaibai.cardfantasy.engine.SkillResolver; public final class KnightGuardian { public stat...
cfvbaibai/CardFantasy
workspace/CardFantasyCore/src/cfvbaibai/cardfantasy/engine/skill/KnightGuardian.java
Java
bsd-2-clause
1,302
package com.pineone.icbms.so.interfaces.database.dao; import com.pineone.icbms.so.interfaces.database.model.CompositeVirtualObjectForDB; import com.pineone.icbms.so.interfaces.database.model.NonDeviceCvoForDB; import com.pineone.icbms.so.interfaces.database.model.RuleBodyForDB; import org.springframework.stereotype.Co...
iotoasis/SO
so-if-db/src/main/java/com/pineone/icbms/so/interfaces/database/dao/CompositeVirtualObjectDao.java
Java
bsd-2-clause
2,738