code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
package edu.sjtu.jsearcher.scheduler;
import java.net.InetAddress;
import java.util.*;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import org.apache.lo... | knshen/JSearcher | src/main/java/edu/sjtu/jsearcher/scheduler/DefaultScheduler.java | Java | apache-2.0 | 7,648 |
package ru.ionlabs.easymovies.ui.movies.favorites;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.... | IvanovPvl/EasyMovies | app/src/main/java/ru/ionlabs/easymovies/ui/movies/favorites/FavoritesFragment.java | Java | apache-2.0 | 2,922 |
// Copyright (C) 2009 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 applicable ... | NextGenIntelligence/gerrit | gerrit-server/src/test/java/com/google/gerrit/testutil/InMemoryDatabase.java | Java | apache-2.0 | 5,201 |
package com.example.lcweather.gson;
import com.google.gson.annotations.SerializedName;
/**
* Created by admin on 2017/9/4.
*/
//对于复数的forecast只需要单体类,在集合声明数组即可
public class Forecast {
public String date;
@SerializedName("tmp")
public Temperature temperature;
@SerializedName("cond")
public More... | wmgylc/LcWeather | app/src/main/java/com/example/lcweather/gson/Forecast.java | Java | apache-2.0 | 573 |
/**
* 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 n... | NJUJYB/disYarn | hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/ParentQueue.java | Java | apache-2.0 | 34,050 |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2016, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | scottmarlow/wildfly-nosql | old/testsuite/nosql/src/test/java/org/jboss/as/test/compat/nosql/mongodb/jaxrs/ClientResource.java | Java | apache-2.0 | 2,905 |
/*
* 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 ... | hanahmily/sky-walking | apm-collector/apm-collector-storage/collector-storage-es-provider/src/main/java/org/apache/skywalking/apm/collector/storage/es/define/appcomp/ApplicationComponentDayEsTableDefine.java | Java | apache-2.0 | 1,464 |
/*
* Copyright 2007 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 agre... | consulo/consulo-xml | relaxng/src/main/java/org/intellij/plugins/relaxNG/compact/psi/RncName.java | Java | apache-2.0 | 918 |
/*
* Copyright 2014-present Facebook, 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... | LegNeato/buck | src/com/facebook/buck/android/AndroidBuildConfigJavaLibrary.java | Java | apache-2.0 | 5,565 |
/*
* Copyright (C) 2014 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... | summerpulse/amlexo | src/com/google/android/exoplayer/dash/DashSegmentIndex.java | Java | apache-2.0 | 2,243 |
package en.menghui.android.damp.optimizations;
import java.util.ArrayList;
import java.util.List;
import Jama.Matrix;
public class Optimizer {
public String name = "";
public String type = "";
public Matrix W;
public Matrix b;
public double regLambda = 0.01;
public double learningRate = 0.01;
public dou... | yashiro32/Damp | src/en/menghui/android/damp/optimizations/Optimizer.java | Java | apache-2.0 | 1,542 |
/*
* Copyright 2010 Henry Coles
*
* 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 w... | michaelmnich/pitest-lib | pitest-html-report/src/main/java/org/pitest/mutationtest/report/html/MutationHtmlReportListener.java | Java | apache-2.0 | 8,192 |
package org.latlab.learner.geast;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.nio.channels.FileLock;
import java.text.DateFormat;
im... | fernandoj92/mvca-parkinson | pltm-analysis/src/main/java/org/latlab/learner/geast/Log.java | Java | apache-2.0 | 11,101 |
/*
Copyright 2008-2014 Genentech 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 agreed t... | chemalot/chemalot | src/com/genentech/chemistry/openEye/MCSSComparator.java | Java | apache-2.0 | 4,092 |
package org.opencb.hpg.bigdata.analysis.tools.manifest;
/**
* Created by pfurio on 23/05/17.
*/
public class ProgrammingLanguage {
private String name;
private String version;
public ProgrammingLanguage() {
}
public ProgrammingLanguage(String name, String version) {
this.name = name;
... | opencb/hpg-bigdata | hpg-bigdata-analysis/src/main/java/org/opencb/hpg/bigdata/analysis/tools/manifest/ProgrammingLanguage.java | Java | apache-2.0 | 1,010 |
package query_translation;
import clauseObjects.*;
import com.google.gson.JsonObject;
import java.util.Map;
public class SQLAllShortestPaths {
public static StringBuilder translate(DecodedQuery dQMainPath) {
StringBuilder asp = new StringBuilder();
asp.append("WITH asp AS(SELECT tc.* FROM tclosur... | ocrawford555/cyp2sql | src/main/java/query_translation/SQLAllShortestPaths.java | Java | apache-2.0 | 3,754 |
package net.lecousin.framework.util;
import java.util.List;
import java.util.function.Consumer;
import net.lecousin.framework.concurrent.async.AsyncSupplier;
import net.lecousin.framework.concurrent.threads.Task.Priority;
/**
* Generic interface to navigate in a hierarchy.
*/
public interface HierarchyProvider {
... | lecousin/java-framework-core | net.lecousin.core/src/main/java/net/lecousin/framework/util/HierarchyProvider.java | Java | apache-2.0 | 2,143 |
package nam.ui;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation... | tfisher1226/ARIES | nam/nam-model/src/main/java/nam/ui/TreeNode.java | Java | apache-2.0 | 7,229 |
/*
* Copyright 2017 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 applica... | loom-build-tool/loom | modules/plugin-maven/src/main/java/builders/loom/plugin/maven/MavenInstallTask.java | Java | apache-2.0 | 7,755 |
package tz.gzu.oip.dm.service.impl.sp;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import tz.gzu.oip.dm.bo.ops.PageQuery;
import tz.gzu.oip.dm.po.Goods;
import tz.gzu.oip.dm.dao.sp.GoodsDao;
import tz.gzu.oip.dm.service.sp.GoodsService;
@Service
public clas... | TZClub/OMIPlatform | dao-manager/src/main/java/tz/gzu/oip/dm/service/impl/sp/GoodsServiceImpl.java | Java | apache-2.0 | 1,260 |
package io.appium.java_client.pagefactory_tests;
import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import io.appium.java_client.pagefactory.*;
import io.appium.java_client.pagefactory_tests.blocks.AndroidPageBlock;
import io.appium.java_client.remote.MobileCapabil... | d0lfin/java-client | src/test1/java/io/appium/java_client/pagefactory_tests/AndroidPageObjectBlockTest.java | Java | apache-2.0 | 6,961 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | longuyen1/elasticsearch | src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java | Java | apache-2.0 | 83,253 |
/*
* Copyright © 2016 Cask Data, 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 agreed t... | caskdata/cdap | cdap-app-templates/cdap-etl/hydrator-spark-core/src/main/java/co/cask/cdap/etl/spark/streaming/SparkStreamingExecutionContext.java | Java | apache-2.0 | 5,708 |
package org.tamacat.httpd.filter.acl;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class AccessUrlCacheTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testAccessUrlCache() {
AccessUrlCache cache... | tamacat/tamacat-httpd | src/test/java/org/tamacat/httpd/filter/acl/AccessUrlCacheTest.java | Java | apache-2.0 | 559 |
/*
* 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 ... | whitesource/cat-core | src/main/java/org/apache/rat/analysis/license/CopyrightHeader.java | Java | apache-2.0 | 3,874 |
package vehicles.cmlc;
import java.util.*;
import java.util.function.*;
import java.math.*;
import org.jetbrains.annotations.*;
import org.jooq.lambda.*;
import static java.util.Arrays.*;
import static java.util.Collections.*;
import static java.util.stream.Collectors.*;
import static org.jooq.lambda.Seq.*;
public i... | cmlang/cml-compiler | cml-modules/cml_base/tests/associations/bidirectional/expected/vehicles_cmlc_java/src/main/java/vehicles/cmlc/Corporation.java | Java | apache-2.0 | 3,212 |
package fr.sii.ogham.spring.v1.template.thymeleaf;
import java.util.Map;
import java.util.Map.Entry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.thymeleaf.context.AbstractContext;
import org.thymeleaf.context.IContext;
import fr.sii.ogham.spring.template.thymeleaf.ContextMerger;
/**
* Add a... | groupe-sii/ogham | ogham-spring-boot-v1-autoconfigure/src/main/java/fr/sii/ogham/spring/v1/template/thymeleaf/UpdateCurrentContextMerger.java | Java | apache-2.0 | 1,569 |
package org.boon.core.reflection;
import org.boon.Boon;
import org.boon.Lists;
import org.boon.core.Conversions;
import org.boon.core.Typ;
import org.boon.core.TypeType;
import org.boon.core.Value;
import org.boon.core.reflection.fields.FieldAccess;
import org.boon.core.reflection.fields.FieldAccessMode;
import org.bo... | woki/boon | boon/src/main/java/org/boon/core/reflection/MapperSimple.java | Java | apache-2.0 | 58,847 |
package com.osmet.tcs.model;
import org.hibernate.annotations.ColumnDefault;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
... | OSMET/tcs | src/main/java/com/osmet/tcs/model/Order.java | Java | apache-2.0 | 2,635 |
package vkaretko.models;
/**
* Model Body. Car body types like "sedan, jeep".
*
* @author Karetko Victor.
* @version 1.00.
* @since 23.04.2017.
*/
public class Image {
private int id;
private String url;
private Order order;
public Image() { }
public int getId() {
return id;
}
... | V1toss/JavaPA | part_10_hibernate/carstore/src/main/java/vkaretko/models/Image.java | Java | apache-2.0 | 640 |
package com.texttalk.distrib.storm;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseRichBolt;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Tuple;
import backtype.storm... | andrewboss/texttalk-backend | src/main/java/com/texttalk/distrib/storm/MP3EncoderBolt.java | Java | apache-2.0 | 2,466 |
/*
* 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 ... | aljoscha/flink | flink-libraries/flink-state-processing-api/src/test/java/org/apache/flink/state/api/output/SnapshotUtilsTest.java | Java | apache-2.0 | 5,311 |
/**
* Copyright 2012 Emmanuel Bourg
*
* 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 ... | ebourg/jsign | jsign-core/src/main/java/net/jsign/pe/Section.java | Java | apache-2.0 | 5,924 |
/*
* 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 t... | hazendaz/assertj-core | src/test/java/org/assertj/core/api/localtime/LocalTimeAssert_isBetween_Test.java | Java | apache-2.0 | 1,249 |
package usst.socialshare.core.util;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
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.net.URL;
import jav... | ivybao0628/socialshare | app/src/main/java/usst/socialshare/core/util/DownloadImage.java | Java | apache-2.0 | 2,030 |
/*
* Copyright (C) 2015 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... | vipinbpkyr/MyGitHub | DBFlowTest/dbflowtest/src/main/java/com/sysnatura/goldrate/di/component/AppComponent.java | Java | apache-2.0 | 2,027 |
package com.wjf.alipaydemo.ui;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.helper.ItemTouchHelper;
import android.view.View;
import android.widget.Button;
import com.wjf.alipa... | weijianfeng/wheels | AlipayDemo/app/src/main/java/com/wjf/alipaydemo/ui/AppStoreActivity.java | Java | apache-2.0 | 6,268 |
/*
* Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
* Copyright [2016-2018] EMBL-European Bioinformatics Institute
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | thomasmaurel/ensj-healthcheck | src/org/ensembl/healthcheck/testcase/eg_core/PeptideTranslationAttribs.java | Java | apache-2.0 | 2,681 |
package edu.psu.chemxseer.structure.subsearch.FGindex;
import java.util.ArrayList;
import java.util.Arrays;
/**
* A size-n edge entry records all graphs that are of size n
* A size-n edgeEntry is an array list of edgeArraies
*
* @author dayuyuan
*
*/
public class IN_FGindexEdgeEntry {
private int graphSize... | Santa827/Lindex | src/edu/psu/chemxseer/structure/subsearch/FGindex/IN_FGindexEdgeEntry.java | Java | apache-2.0 | 5,045 |
package de.sambalmueslie.wot_api_definition.player_ratings_api;
import de.sambalmueslie.wot_api_definition.common.WotApiFieldDefinition;
import de.sambalmueslie.wot_api_definition.common.WotApiRequestDefinition;
import de.sambalmueslie.wot_api_definition.common.WotRequestDefinition;
/**
* Method returns dates... | sambalmueslie/WOT-API-LIB | wot_api_lib_generator/src/main/java/de/sambalmueslie/wot_api_definition/player_ratings_api/PlayerRatingsDatesRequestDefinition.java | Java | apache-2.0 | 945 |
/*
* Copyright (c) 2017 Jalotsav
*
* 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... | jalotsav/JamnadasConnect | app/src/main/java/com/jalotsav/jamnadasconnect/services/FireInstanceIDService.java | Java | apache-2.0 | 1,505 |
/*
* 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 ... | zohar-mizrahi/flink | flink-runtime/src/test/java/org/apache/flink/runtime/rpc/akka/AkkaRpcActorTest.java | Java | apache-2.0 | 11,682 |
package ru.j4j.mediation.core.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.METHOD;
/**
* @author Artemiy.Shchekotov
* @since 3/21/2017
*/
@Target(METHOD)
@Retention(R... | xilaxtlt/j4j.df | mediation-core/src/main/java/ru/j4j/mediation/core/annotations/FromContext.java | Java | apache-2.0 | 412 |
/*
* Copyright 2017 James F. Bowring and CIRDLES.org.
*
* 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 appli... | CIRDLES/Squid | squidApp/src/main/java/org/cirdles/squid/gui/ProjectManagerController.java | Java | apache-2.0 | 18,304 |
package com.planet_ink.coffee_mud.Abilities.Languages;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
imp... | bozimmerman/CoffeeMud | com/planet_ink/coffee_mud/Abilities/Languages/ThievesCant.java | Java | apache-2.0 | 11,498 |
package cz.romario.opensudoku.gui;
/**
* author: ancheng
* date: 2017/6/3
* email: lzjtugjc@163.com
*/
public interface OnPuzzleSolvedListener {
void onPuzzleSolved();
}
| lzjtugjc/sudoku | Game/src/main/java/cz/romario/opensudoku/gui/OnPuzzleSolvedListener.java | Java | apache-2.0 | 180 |
/*
* $Id: DefaultActionSupport.java 651946 2008-04-27 13:41:38Z apetrelli $
*
* 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 ... | txazo/struts2 | src/main/java/org/apache/struts2/dispatcher/filter/FilterHostConfig.java | Java | apache-2.0 | 1,724 |
package net.datenstrudel.bulbs.shared.domain.model.client.common;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
* Wraps a single value to be used as REST-Api body parameter
* Created by Thomas Wendzinski.
... | datenstrudel/bulbs-shared | src/main/java/net/datenstrudel/bulbs/shared/domain/model/client/common/DtoSingleValue.java | Java | apache-2.0 | 1,193 |
/*
* Copyright 2010 John Hopper
*
* 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 writ... | zinic/jliocc | src/main/java/net/jps/lioc/IContextRegistry.java | Java | apache-2.0 | 1,414 |
/*
* Copyright 2012 Google 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 agreed to i... | Logicoin/logicoinj-alice | core/src/main/java/com/google/logicoin/store/MemoryFullPrunedBlockStore.java | Java | apache-2.0 | 17,240 |
/**
* Copyright 2005-2016 Red Hat, Inc.
*
* Red Hat 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/LICENSE-2.0
*
* Unless r... | jludvice/fabric8 | itests/basic/karaf/src/test/java/io/fabric8/itests/basic/karaf/ResolverTest.java | Java | apache-2.0 | 12,282 |
package org.skycrawl.search.commons;
import org.owasp.esapi.ESAPI;
import org.owasp.esapi.Encoder;
import org.owasp.esapi.errors.EncodingException;
public abstract class EscapeUtils
{
private static Encoder encoder = ESAPI.encoder();
public static String escapeAsTag(String input)
{
return encoder.encodeForHTM... | SkyCrawl/xss-free-search | src/org/skycrawl/search/commons/EscapeUtils.java | Java | apache-2.0 | 875 |
/**
* 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... | saandrews/pulsar | pulsar-broker/src/test/java/org/apache/pulsar/broker/service/v1/V1_ReplicatorTest.java | Java | apache-2.0 | 39,435 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | consulo/consulo-java | java-debugger-impl/src/main/java/com/intellij/debugger/engine/evaluation/expression/ConditionalExpressionEvaluator.java | Java | apache-2.0 | 2,057 |
package org.ak80.standin.verification;
/**
* Root class for all verification exceptions
*/
public abstract class StandInVerificationException extends RuntimeException {
public StandInVerificationException(String message) {
super(message);
}
}
| ak80/standin | src/main/java/org/ak80/standin/verification/StandInVerificationException.java | Java | apache-2.0 | 264 |
package jdk.lang;
/**
* 位运算
* Created by drug on 2016/3/3.
*/
public class MathB {
/**
* 求两个数的平均值。
* 求平均值,比如有两个int类型变量x、y,首先要求x+y的和,再除以2,
* 但是有可能x+y的结果会超过int的最大表示范围,所以位运算就派上用场啦。
*
* @param x
* @param y
* @return
*/
public static int avg(int x, int y) {
return (x & y) + ((x ^ y) >> 1... | whyDK37/pinenut | java-core/jdk/src/main/java/jdk/lang/MathB.java | Java | apache-2.0 | 1,279 |
/**
*
* 06/05/2014
* @author Renato Stoffalette Joao
*/
package br.curso;
public class Principal {
public static void main(String[] args){
//Comando para exibir um texto
System.out.println("Meu primeiro programa ...");
//Declaração de variável no formato CamelCase
int idadePacientes;
... | renatosjoao/Android | J_001_EstruturaBasica/src/br/curso/Principal.java | Java | apache-2.0 | 386 |
/*
* LoadNmrTest.java
* JUnit based test
*
* Created on June 25, 2004, 10:57 AM
*/
import java.text.*;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import javax.swing.event.*;
import java.net.*;
import junit.framework.*;
... | OpenVnmrJ/OpenVnmrJ | src/vjqa/vjunit/LoadNmrTest.java | Java | apache-2.0 | 7,260 |
package com.jeesms.util;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/**
* Created by LiuXunming on 2014-07-31.
*/
public class SpringCtxUtils implements ApplicationContextAware {
private stat... | ashnl007/jeesms | src/main/java/com/jeesms/util/SpringCtxUtils.java | Java | apache-2.0 | 788 |
package org.apereo.cas.web.flow;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apereo.cas.support.spnego.util.SpnegoConstants;
import org.apereo.cas.web.support.WebUtils;
import org.slf4j.Logger;
import org.... | vydra/cas | support/cas-server-support-spnego-webflow/src/main/java/org/apereo/cas/web/flow/SpnegoNegociateCredentialsAction.java | Java | apache-2.0 | 7,014 |
package net.jp2p.jxta.socket;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import net.jp2p.container.activator.AbstractJp2pService;
import net.jp2p.jxta.socket.SocketPropertySource.SocketProperties;
import net.jp2p... | chaupal/jp2p | Workspace/net.jp2p.jxta/src/net/jp2p/jxta/socket/SocketService.java | Java | apache-2.0 | 4,051 |
package org.w3c.dom;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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.apac... | Orange-OpenSource/matos-profiles | matos-android/src/main/java/org/w3c/dom/DOMLocator.java | Java | apache-2.0 | 1,048 |
package uncmn.eve;
/**
* Encapsulates entry in eve. Key and a value of type T
*
* @param <T> value type T.
*/
public class Entry<T> {
private String key;
private T value;
private Entry() {
}
/**
* Creator.
*
* @param key Entry key.
* @param value Entry value of type T.
* @param <T> type... | IsUncommon/eve | eve/src/main/java/uncmn/eve/Entry.java | Java | apache-2.0 | 790 |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.base/src/com/dytech/edge/wizard/beans/control/TreeNav.java | Java | apache-2.0 | 1,082 |
package com.vmware.action.ssh;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.util.List;
import java.util.concurrent.TimeUnit;
i... | vmware/workflowTools | core/src/main/java/com/vmware/action/ssh/ExecuteSshCommand.java | Java | apache-2.0 | 7,206 |
package com.koch.ambeth.job;
/*-
* #%L
* jambeth-job
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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/licen... | Dennis-Koch/ambeth | jambeth/jambeth-job/src/main/java/com/koch/ambeth/job/IJob.java | Java | apache-2.0 | 3,648 |
package com.moonweather.app.activity;
import com.moonweather.app.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.ImageView;
publi... | xujinghuan/Moon-Weather | src/com/moonweather/app/activity/ShouyeActivity.java | Java | apache-2.0 | 1,398 |
/*
* Copyright 2002-2018 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... | kazuki43zoo/spring-security | samples/xml/jaas/src/integration-test/java/org/springframework/security/samples/JaasXmlTests.java | Java | apache-2.0 | 2,282 |
/*
* Copyright 2015 The Netty Project
*
* The Netty Project 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/LICENSE-2.0
*
* Unless ... | taojiaenx/netty-source-study | transport-native-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java | Java | apache-2.0 | 43,009 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.document;
import com.yahoo.document.ArrayDataType;
import com.yahoo.document.CollectionDataType;
import com.yahoo.document.DataType;
import com.yahoo.document.DocumentType;
import... | vespa-engine/vespa | config-model/src/main/java/com/yahoo/searchdefinition/document/Attribute.java | Java | apache-2.0 | 18,292 |
package C10_Generatic;
/**
* 泛型类
* @author Administrator
*
*/
public class Pair<T>{
private T first;
private T second;
public Pair() {
first=null;
second=null;
}
public Pair(T first, T second) {
super();
this.first = first;
this.second = second;
}
public T getFirst() {
return first;
}
publ... | wapalxj/Java | javaworkplace/ZJXL_java/src/C10_Generatic/Pair.java | Java | apache-2.0 | 491 |
/* __ __ __ __ __ ___
* \ \ / / \ \ / / __/
* \ \/ / /\ \ \/ / /
* \____/__/ \__\____/__/.ɪᴏ
* ᶜᵒᵖʸʳᶦᵍʰᵗ ᵇʸ ᵛᵃᵛʳ ⁻ ˡᶦᶜᵉⁿˢᵉᵈ ᵘⁿᵈᵉʳ ᵗʰᵉ ᵃᵖᵃᶜʰᵉ ˡᶦᶜᵉⁿˢᵉ ᵛᵉʳˢᶦᵒⁿ ᵗʷᵒ ᵈᵒᵗ ᶻᵉʳᵒ
*/
package io.vavr.concurr... | dx-pbuckley/vavr | vavr/src/test/java/io/vavr/concurrent/ExecutorServices.java | Java | apache-2.0 | 4,698 |
package org.kuali.kpme.edo.api.workflow;
import java.io.Serializable;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind... | kuali/kpme | edo/api/src/main/java/org/kuali/kpme/edo/api/workflow/EdoWorkflowDefinition.java | Java | apache-2.0 | 9,328 |
/*
* 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
* distribut... | martint/presto | presto-main/src/main/java/io/prestosql/operator/scalar/timestamp/DateTrunc.java | Java | apache-2.0 | 3,114 |
package org.protobeans.hibernate.service;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.function.Supplier;
import javax.annotation.PostConstruct;
import javax.persistence.EntityManagerFactory;
import org.hibernate.SessionFactory;
import... | man4j/protobeans | modules/hibernate/src/main/java/org/protobeans/hibernate/service/HibernateStatsService.java | Java | apache-2.0 | 1,750 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// 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.10.... | leonmaybe/eLong-OpenAPI-JAVA-demo | src/elong/Gift.java | Java | apache-2.0 | 1,580 |
/*
* Copyright 2017-2022 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 "licen... | aws/aws-sdk-java | aws-java-sdk-lookoutmetrics/src/main/java/com/amazonaws/services/lookoutmetrics/model/transform/ListAnomalyGroupTimeSeriesResultJsonUnmarshaller.java | Java | apache-2.0 | 4,153 |
package org.vaadin.mvpcalculator.service;
public interface CalculatorService {
public void clear();
public void add(double arg);
public void multiply(double arg);
public void divide(double arg);
public double getValue();
public void setValue(double value);
} | rajeeshk/mvpcalculator | src/main/java/org/vaadin/mvpcalculator/service/CalculatorService.java | Java | apache-2.0 | 289 |
/*
* Copyright 2015 OpenCB
*
* 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... | Swaathik/cellbase | cellbase-server/src/main/java/org/opencb/cellbase/server/ws/GenericRestWSServer.java | Java | apache-2.0 | 18,207 |
package com.pj.ld.game;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.physics.box2d.*;
import com.pj.ld.screens.Game;
public class Exit {
Body spike;
public Exit(Game game){
}
public void createBody(World world, Rectangle pos){
pos.x = (pos.x + pos.width*0.5f) * Game.WORLD_... | piotr-j/LudumDare27 | LDG/src/com/pj/ld/game/Exit.java | Java | apache-2.0 | 976 |
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* 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 agre... | jexp/idea2 | java/java-impl/src/com/intellij/refactoring/introduceparameterobject/IntroduceParameterObjectDialog.java | Java | apache-2.0 | 12,683 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | zkidkid/elasticsearch | core/src/test/java/org/elasticsearch/index/mapper/ExternalFieldMapperTests.java | Java | apache-2.0 | 11,907 |
/*
* Copyright 2017 Kaiserpfalz EDV-Service, Roland T. Lichti
*
* 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
*
* ... | klenkes74/openshift-ldapsync | src/main/java/de/kaiserpfalzedv/ocp/groupsync/groups/Group.java | Java | apache-2.0 | 4,559 |
/*
* Copyright 2017 David Karnok
*
* 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... | akarnokd/Reactive4JavaFlow | src/main/java/hu/akarnokd/reactive4javaflow/impl/operators/FolyamRepeatCallable.java | Java | apache-2.0 | 6,943 |
package org.camunda.bpm.consulting.process_test_coverage;
import java.util.HashMap;
import java.util.Map;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.test.ProcessEngineTestCase;
/**
* Test case starting an in-memory database-bac... | tobiasschaefer/camunda-consulting | snippets/process-test-coverage/src/test/java/org/camunda/bpm/consulting/process_test_coverage/ProcessTestCoverageTest.java | Java | apache-2.0 | 1,862 |
/**
*
* 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"); ... | francisliu/hbase_namespace | hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterStatusServlet.java | Java | apache-2.0 | 6,393 |
/*
* Copyright 2012 Google Inc.
* Copyright 2012 Matt Corallo.
*
* 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 ... | hank/litecoinj-new | core/src/test/java/com/google/litecoin/core/FullPrunedBlockChainTest.java | Java | apache-2.0 | 8,698 |
/*
* 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 ... | dkhwangbo/druid | services/src/test/java/org/apache/druid/cli/PullDependenciesTest.java | Java | apache-2.0 | 9,005 |
/*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | nasa/OpenSPIFe | gov.nasa.ensemble.core.activityDictionary.view/src/gov/nasa/ensemble/core/activityDictionary/view/DefinitionTreeView.java | Java | apache-2.0 | 13,130 |
/*
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... | Groostav/CMPT880-term-project | intruder/benchs/batik/batik-1.7/sources/org/apache/batik/dom/svg/SVGOMUseElement.java | Java | apache-2.0 | 8,025 |
/*
* Copyright DataStax, 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 agreed to in wri... | datastax/java-driver | integration-tests/src/test/java/com/datastax/dse/driver/api/core/graph/TinkerVertexPropertyAssert.java | Java | apache-2.0 | 1,464 |
/*
* 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")... | intel-hadoop/HiTune | chukwa-hitune-dist/src/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/DuplicateProcessorException.java | Java | apache-2.0 | 1,387 |
/*******************************************************************************
* Copyright 2017 geowe.org
*
* 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.ap... | geowe/geowe-geometry-service | src/main/java/org/geowe/service/constraints/validator/SimpleGeometryValidator.java | Java | apache-2.0 | 1,756 |
/*
* 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-cdi/src/main/java/org/camunda/bpm/engine/cdi/annotation/event/TakeTransitionLiteral.java | Java | apache-2.0 | 1,115 |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | libosu/elasticsearch | src/main/java/org/elasticsearch/common/util/ByteArray.java | Java | apache-2.0 | 1,643 |
/*
* Created by Orchextra
*
* Copyright (C) 2016 Gigigo Mobile Services SL
*
* 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... | fSergio101/orchextra-android-sdk | orchextrasdk/src/main/java/com/gigigo/orchextra/domain/invoker/InteractorOutputThreadFactory.java | Java | apache-2.0 | 915 |
package com.cloud.host.dao;
import com.cloud.agent.api.VgpuTypesInfo;
import com.cloud.cluster.agentlb.HostTransferMapVO;
import com.cloud.cluster.agentlb.dao.HostTransferMapDao;
import com.cloud.dc.ClusterVO;
import com.cloud.dc.dao.ClusterDao;
import com.cloud.gpu.dao.HostGpuGroupsDao;
import com.cloud.gpu.dao.VGPUT... | remibergsma/cosmic | cosmic-core/engine/schema/src/main/java/com/cloud/host/dao/HostDaoImpl.java | Java | apache-2.0 | 50,988 |
/*
* 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 ... | kalaspuffar/pdfbox | pdfbox/src/main/java/org/apache/pdfbox/pdfparser/PDFObjectStreamParser.java | Java | apache-2.0 | 5,205 |
/**
* Copyright (c) 2008-2014, http://www.snakeyaml.org
*
* 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 appl... | PRECISE/ROSLab | lib/snakeyaml-src/src/test/java/org/yaml/snakeyaml/JavaBeanDumperTest.java | Java | apache-2.0 | 3,435 |
package ru.asemenov.Tracker;
/**
* Class Item решение задачи части 002 урока 2.
* @author asemenov
* @version 1
*/
public class Item {
/**
* id заявки.
*/
private String id;
/**
* Имя заявки.
*/
private String name;
/**
* Описание заявки.
*/
private String description;
/**
* Дата создания за... | Apeksi1990/asemenov | chapter_002/src/main/java/ru/asemenov/Tracker/Item.java | Java | apache-2.0 | 2,692 |