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 com.intuso.housemate.client.v1_0.proxy.object;
import com.google.inject.Inject;
import com.google.inject.assistedinject.Assisted;
import com.intuso.housemate.client.v1_0.api.object.Parameter;
import com.intuso.housemate.client.v1_0.api.object.Tree;
import com.intuso.housemate.client.v1_0.api.object.view.Parame... | Intuso/housemate-client | proxy/src/main/java/com/intuso/housemate/client/v1_0/proxy/object/ProxyParameter.java | Java | apache-2.0 | 2,681 |
/**
* Copyright 2014 Christian Kreutzfeldt
*
* 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 ... | mnxfst/webtrends-kafka-producer | src/main/java/com/mnxfst/streams/webtrends/kafka/socket/WebtrendsTokenRequest.java | Java | apache-2.0 | 6,519 |
package life.catalogue.api.model;
import java.util.Objects;
public class RematchRequest extends RequestScope {
private Integer decisionKey;
private Integer estimateKey;
public static RematchRequest all() {
RematchRequest req = new RematchRequest();
req.setAll(true);
return req;
}
public st... | Sp2000/colplus-backend | colplus-api/src/main/java/life/catalogue/api/model/RematchRequest.java | Java | apache-2.0 | 1,757 |
/*
* Copyright 2013 Square 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 w... | cailingxiao/wire | wire-gson-support/src/main/java/com/squareup/wire/MessageTypeAdapter.java | Java | apache-2.0 | 8,290 |
package com.wusong.mygobang.myview;
import com.wusong.mygobang.R;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.graphics.Bitmap;... | rookieWu/gobang | src/com/wusong/mygobang/myview/GobangView.java | Java | apache-2.0 | 10,736 |
/*
* Copyright 2017 Mirko Sertic
*
* 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 ... | mirkosertic/Bytecoder | core/src/main/java/de/mirkosertic/bytecoder/core/BytecodeUnknownAttributeInfo.java | Java | apache-2.0 | 1,001 |
/*
* 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 not ... | PurelyApplied/geode | geode-core/src/main/java/org/apache/geode/management/internal/cli/commands/DisconnectCommand.java | Java | apache-2.0 | 2,685 |
package org.mingy.jmud.model.pkuxkx;
import org.eclipse.swt.SWT;
import org.mingy.jmud.model.Constants;
import org.mingy.jmud.model.Context;
import org.mingy.jmud.model.Scope;
import org.mingy.jmud.ui.pkuxkx.CharacterView;
/**
* 北大侠客行的通用配置定义。
*
* @author Mingy
* @since 1.0.0
*/
public class Configuration extend... | wuzhengmao/jmud | src/org/mingy/jmud/model/pkuxkx/Configuration.java | Java | apache-2.0 | 3,198 |
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package net.opengis.citygml.relief.util;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.XMLResource;
/**
* <!-- begin-user-doc --... | markus1978/citygml4emf | de.hub.citygml.emf.ecore/src/net/opengis/citygml/relief/util/ReliefResourceFactoryImpl.java | Java | apache-2.0 | 1,576 |
/* First created by JCasGen Fri Jan 03 13:40:15 CST 2014 */
package org.apache.ctakes.typesystem.type.refsem;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;
/** The amount of time after which a medication should stop
being used, e.g., "2 ... | schorndorfer/uima-components | annotator-parent/type-system/src/main/java/org/apache/ctakes/typesystem/type/refsem/MedicationDuration.java | Java | apache-2.0 | 2,512 |
package de.schub.docker_controller.Metadata.Storage;
import de.schub.docker_controller.Metadata.ContainerService;
import java.util.Map;
public interface ServiceDiscoveryStorage
{
/**
* @return all services running in the cluster. Container ID as key
*/
Map<String, ContainerService> getServices();
}... | Marmelatze/docker-controller | docker-controller/src/main/java/de/schub/docker_controller/Metadata/Storage/ServiceDiscoveryStorage.java | Java | apache-2.0 | 321 |
/*
* Copyright 2001-2009 The Apache Software Foundation.
*
* 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... | KurtStam/juddi | uddi-ws/src/main/java/org/apache/juddi/api_v3/Node.java | Java | apache-2.0 | 4,184 |
/*
*
* 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... | HubSpot/hbase | hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RegionsResource.java | Java | apache-2.0 | 4,132 |
package com.wolfsoft.epower;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class Tot... | harshdattani/power-consumption-android | src/com/wolfsoft/epower/Total.java | Java | apache-2.0 | 3,462 |
package com.sync.sz.web.servlet.session;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Crea... | MariShunxiang/JavaWebSample | sample-servlet/src/main/java/com/sync/sz/web/servlet/session/SessionDemo2.java | Java | apache-2.0 | 990 |
/*
* Copyright 2014-2019 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... | jentfoo/aws-sdk-java | aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/transform/DescribeAccountLimitsRequestMarshaller.java | Java | apache-2.0 | 1,809 |
/*
* Copyright 2014-2019 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... | jentfoo/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ClassicLinkDnsSupport.java | Java | apache-2.0 | 5,761 |
/* ====================================================================
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 Y... | lvweiwolf/poi-3.16 | src/java/org/apache/poi/poifs/dev/POIFSHeaderDumper.java | Java | apache-2.0 | 7,805 |
/**
*
*/
package me.learn.personal.month3;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* Title 414 :
*
* Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The t... | balajiboggaram/algorithms | src/me/learn/personal/month3/ThirdMaximumNumber.java | Java | apache-2.0 | 1,602 |
package tpl.admin.api.entities;
import org.nutz.dao.Dao;
import org.nutz.ioc.annotation.InjectName;
import org.nutz.mvc.adaptor.JsonAdaptor;
import org.nutz.mvc.annotation.AdaptBy;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.DELETE;
import org.nutz.mvc.annotation.GET;
import org.nutz.mvc.annotati... | weiht/nutz-tpl | nutz-tpl-admin/src/main/java/tpl/admin/api/entities/EntityModule.java | Java | apache-2.0 | 1,938 |
// 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.vcs.log.util;
import com.intellij.ide.IdeTooltip;
import com.intellij.ide.IdeTooltipManager;
import com.intellij.openapi.Disposable;
import com.intellij.open... | xfournet/intellij-community | platform/vcs-log/impl/src/com/intellij/vcs/log/util/VcsLogUiUtil.java | Java | apache-2.0 | 3,929 |
/*
* Copyright (c) 2010-2013 Evolveum
*
* 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 la... | sabriarabacioglu/engerek | infra/prism/src/main/java/com/evolveum/midpoint/prism/crypto/Protector.java | Java | apache-2.0 | 3,505 |
package br.edu.unipampa.geketcc.service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
/*
* Autorizador Interceptor
*
* Classe responsável por realizar a autenticação dos usuários e restringir
... | alexporthal/GerenciadorTCC_UNIPAMPA | GekeTCC/src/main/java/br/edu/unipampa/geketcc/service/AutorizadorInterceptor.java | Java | apache-2.0 | 1,777 |
package com.git.huanghaifeng.java.basis;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class SerializableDemo {
public static void main(String[] args) {
write();
read();
}
private static ... | prucehuang/quickly-start-java | src/main/java/com/git/huanghaifeng/java/basis/SerializableDemo.java | Java | apache-2.0 | 1,809 |
package edu.harvard.mgh.lcs.sprout.forms.study.to;
import java.io.Serializable;
import java.util.Date;
public class NarrativeTO implements Serializable {
private static final long serialVersionUID = -5808452918661227118L;
private String content;
public String getContent() {
return content;
... | stephenlorenz/sproutstudy | sproutStudy_ejb/src/main/java/edu/harvard/mgh/lcs/sprout/forms/study/to/NarrativeTO.java | Java | apache-2.0 | 408 |
package com.lpnpcs.yuanhelper.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
*工具类
*/
public class ToolsUtil {
public static final int getHeightInPx(Context context) {
final int height = context.getResources().getDisplayMetrics().heightP... | lpnpcs/yuanhelper | app/src/main/java/com/lpnpcs/yuanhelper/util/ToolsUtil.java | Java | apache-2.0 | 3,201 |
package ru.stqa.pft.addressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class NavigationHelper extends HelperBase {
public NavigationHelper(WebDriver wd) {
super(wd);
}
public void groupPage() {
if (isEle... | barancev/java_pft | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/appmanager/NavigationHelper.java | Java | apache-2.0 | 672 |
package noo.promise;
/**
* @author Tal Shani
*/
public interface PromiseHandler<T> {
void handle(T value);
}
| gwt-noo/promise | noo-promise/src/main/java/noo/promise/PromiseHandler.java | Java | apache-2.0 | 116 |
class Solution {
public int subarraySum(int[] nums, int k) {
int ret = 0;
for (int i = 0; i < nums.length; i++) {
int cur = nums[i];
if (cur == k) {
ret++;
}
for (int j = i+1; j < nums.length; j++) {
cur += nums[j];
... | MingfeiPan/leetcode | array/560.java | Java | apache-2.0 | 445 |
/*
* Copyright (C) 2015 The Guava 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 agre... | aiyanbo/guava | guava/src/com/google/common/io/ReaderInputStream.java | Java | apache-2.0 | 9,274 |
/*
* Copyright (C) 2008 The Guava 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 agre... | synchronoss/nio-multipart | nio-multipart-parser/src/main/java/org/synchronoss/cloud/nio/multipart/util/collect/UnmodifiableIterator.java | Java | apache-2.0 | 1,352 |
/**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.interpolation;
/**
*
*/
public class NonnegativityPreservingCubicSplineInterpolator1D extends PiecewisePolynomialInterpolator1D {
/** Seria... | McLeodMoores/starling | projects/analytics/src/main/java/com/opengamma/analytics/math/interpolation/NonnegativityPreservingCubicSplineInterpolator1D.java | Java | apache-2.0 | 1,042 |
/*
* Copyright 2014 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | netty/netty | transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoopGroup.java | Java | apache-2.0 | 8,812 |
/*
* Copyright © 2009 HotPads (admin@hotpads.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 applicable... | hotpads/datarouter | datarouter-virtual-node/src/main/java/io/datarouter/virtualnode/redundant/mixin/RedundantQueueNodeTool.java | Java | apache-2.0 | 1,555 |
package org.grobid.core.utilities.counters;
import java.io.IOException;
public interface CntManagerRepresentation {
String getRepresentation(CntManager cntManager) throws IOException;
}
| kermitt2/grobid | grobid-core/src/main/java/org/grobid/core/utilities/counters/CntManagerRepresentation.java | Java | apache-2.0 | 192 |
package com.guapiweather.android;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an And... | LJiLong/guapiweather | app/src/androidTest/java/com/guapiweather/android/ExampleInstrumentedTest.java | Java | apache-2.0 | 752 |
/*
* This file is part of jTransfo, a library for converting to and from transfer objects.
* Copyright (c) PROGS bvba, Belgium
*
* The program is available in open source according to the Apache License, Version 2.0.
* For full licensing details, see LICENSE.txt in the project root.
*/
package org.jtransfo.inter... | joachimvda/jtransfo | core/src/main/java/org/jtransfo/internal/ToDomainConverter.java | Java | apache-2.0 | 2,432 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2017, Arnaud Roques
*
* Project Info: http://plantuml.com
*
* This file is part of PlantUML.
... | Banno/sbt-plantuml-plugin | src/main/java/net/sourceforge/plantuml/hector/PinLinksContinuousSet.java | Java | apache-2.0 | 2,436 |
/**
* Copyright (C) 2015 JBoss 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 agree... | porcelli-forks/dashbuilder | dashbuilder-backend/dashbuilder-dataset-sql/src/main/java/org/dashbuilder/dataprovider/backend/sql/dialect/MySQLDialect.java | Java | apache-2.0 | 3,373 |
/**
* Copyright (c) Anton Johansson <antoon.johansson@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | anton-johansson/counter-strike-overview | src/main/java/com/antonjohansson/counterstrike/domain/CounterStrikeOverview/CounterStrikeOverviewApplicationMetadata.java | Java | apache-2.0 | 38,726 |
package com.boyuyun.common.json;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.J... | yunhai281/baseProject | src/main/java/com/boyuyun/common/json/ByyJsonUtil.java | Java | apache-2.0 | 16,571 |
/*
* 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... | querycert/qcert | compiler/parsingJava/jrulesParser/src/org/qcert/camp/data/FloatData.java | Java | apache-2.0 | 1,792 |
package ch.DB_BR_HJ.LebenslaufApp;
import java.util.ArrayList;
import java.util.UUID;
import android.annotation.SuppressLint;
import android.media.Image;
import android.os.Parcel;
@SuppressLint("ParcelCreator")
public class CV {
public String id;
public int bezeichnung;
public String name;
public S... | jherzig/ESA_Lebenslauf-App | Lebenslauf-App/src/ch/DB_BR_HJ/LebenslaufApp/CV.java | Java | apache-2.0 | 902 |
package com.contactlab.api.samples.sendcampaignoperations;
import com.contactlab.api.ws.ClabService;
import com.contactlab.api.ws.ClabService_Service;
import com.contactlab.api.ws.domain.AuthToken;
import com.contactlab.api.ws.domain.SubscriberSourceFilter;
import static com.contactlab.api.samples.ConfigProperties.AP... | contactlab/soap-api-samples | java/src/main/java/com/contactlab/api/samples/sendcampaignoperations/AddSubscriberSourceFilter.java | Java | apache-2.0 | 1,835 |
package com.cisco.axl.api._8;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for LPickupGroupMember complex type.
*
* <p>The following schema fragment s... | ox-it/cucm-http-api | src/main/java/com/cisco/axl/api/_8/LPickupGroupMember.java | Java | apache-2.0 | 6,398 |
/*
* Copyright 2013-2014 Grzegorz Ligas <ligasgr@gmail.com> and other contributors
* (see the CONTRIBUTORS file).
*
* 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... | ligasgr/intellij-xquery | src/test/java/org/intellij/xquery/util/DelegatingNode.java | Java | apache-2.0 | 10,886 |
/**
* Copyright 2013-2014 Guoqiang Chen, Shanghai, China. All rights reserved.
*
* Email: subchen@gmail.com
* URL: http://subchen.github.io/
*
* 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 Licen... | subchen/jetbrick-all-1x | jetbrick-commons/src/main/java/jetbrick/lang/CharsetUtils.java | Java | apache-2.0 | 1,354 |
/*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.task.quartzimpl.tracing;
import com.evolveum.midpoint.prism.*;
import com.evolveum.midpoint.prism.... | bshp/midPoint | repo/task-quartz-impl/src/main/java/com/evolveum/midpoint/task/quartzimpl/tracing/TracerImpl.java | Java | apache-2.0 | 26,762 |
package com.joypupil.study.tools.验证码生成;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Random;
import javax.imageio.ImageIO;
/**
... | joypupil/study | study/src/main/java/com/joypupil/study/tools/验证码生成/MakeCertPic.java | Java | apache-2.0 | 2,430 |
/**
* Copyright 2016 Milinda Pathirage
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable la... | milinda/Freshet | freshet-core/src/main/java/org/pathirage/freshet/api/data/Type.java | Java | apache-2.0 | 1,123 |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | soeminnminn/LatinIME_ICS_ported | src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | Java | apache-2.0 | 24,716 |
/**
* 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... | SarahMehddi/HelloWorld | typesystem/src/main/java/org/apache/atlas/typesystem/types/HierarchicalTypeDefinition.java | Java | apache-2.0 | 3,008 |
package com.lingganhezi.myapp;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class DBManager extends SQLiteOpenHelper {
private static final String DBName = "data.db";
private final static int version = 1;
public DBManager(C... | lingganhezi/dedecmsapp | android/myapp/src/com/lingganhezi/myapp/DBManager.java | Java | apache-2.0 | 727 |
package es.boart.rest;
import static org.hamcrest.Matchers.containsString;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResu... | priverop/boart | boart-back/src/test/java/es/boart/rest/PublicationTest.java | Java | apache-2.0 | 2,813 |
/*
* 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 ... | vladisav/ignite | modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteClientDataStructuresAbstractTest.java | Java | apache-2.0 | 15,788 |
package net.swiftos.common.presenter;
import rx.subscriptions.CompositeSubscription;
import rx.Subscription;
/**
* Created by ganyao on 2017/3/9.
*/
public class RxAsyncSubjectsQueue implements IAsyncSubjectsQueue<Subscription> {
private CompositeSubscription compositeSubscription;
@Override
public v... | ganyao114/SwiftAndroid | common/src/main/java/net/swiftos/common/presenter/RxAsyncSubjectsQueue.java | Java | apache-2.0 | 973 |
/*
* Copyright 2016-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | spencergibb/spring-cloud-vault-config | spring-cloud-vault-config-databases/src/test/java/org/springframework/cloud/vault/config/databases/VaultConfigCassandraTests.java | Java | apache-2.0 | 4,425 |
/**
* Copyright (C) 2009-2012 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | resty-gwt/resty-gwt | restygwt/src/test/java/org/fusesource/restygwt/client/codec/CredentialsWithProperty.java | Java | apache-2.0 | 1,603 |
package wzp.project.android.elvtmtn.biz.listener;
import java.util.Date;
import wzp.project.android.elvtmtn.biz.listener.base.IBaseListener;
public interface IWorkOrderReceiveListener extends IBaseListener {
void onReceiveSuccess(Date receivingTime);
void onReceiveFailure(String tipInfo);
}
| zippenwang/ElevatorMaintenance | src/wzp/project/android/elvtmtn/biz/listener/IWorkOrderReceiveListener.java | Java | apache-2.0 | 300 |
/*
* Copyright 2015-2019 the original author or authors.
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v2.0 which
* accompanies this distribution and is available at
*
* http://www.eclipse.org/legal/epl-v20.html
*/
packag... | sbrannen/junit5-demo | src/main/java/org/junit/jupiter/api/condition/DisabledOnDayOfWeek.java | Java | apache-2.0 | 924 |
/*
* Licensed to the University of California, Berkeley 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 no... | ooq/memory | core/src/test/java/tachyon/worker/WorkerServiceHandlerTest.java | Java | apache-2.0 | 8,284 |
/*
* 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 ... | robertgeiger/incubator-geode | gemfire-core/src/main/java/com/gemstone/gemfire/management/internal/cli/commands/ShellCommands.java | Java | apache-2.0 | 49,854 |
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2008-2022 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/license... | griffon/griffon | subprojects/griffon-converter-impl/src/test/java/org/codehaus/griffon/converter/LocaleConverterTest.java | Java | apache-2.0 | 2,754 |
package com.example.android.miwok;
import android.os.NetworkOnMainThreadException;
import static android.os.Build.VERSION_CODES.N;
public class Word {
// providing default translation
private String mDefaultTranslation = null;
// providing miwok word
private String mMiwokTranslation = null;
// pr... | vishwaprakashmishra/Miwok | app/src/main/java/com/example/android/miwok/Word.java | Java | apache-2.0 | 3,799 |
/*
* This code is subject to the HIEOS License, Version 1.0
*
* Copyright(c) 2008-2009 Vangent, Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY K... | kef/hieos | src/xutil/src/com/vangent/hieos/xutil/response/XCAAdhocQueryResponse.java | Java | apache-2.0 | 2,171 |
/*
* Copyright (c) 2012, Stephen Colebourne & Michael Nascimento Santos
*
* 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 copyri... | m-m-m/java8-backports | mmm-util-backport-java.time/src/test/java/javax/time/calendrical/TestChronoUnit.java | Java | apache-2.0 | 13,228 |
package example.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Customer497 {
@Id @GeneratedValue(strategy = GenerationType.AUTO) private long id;
private String firstName;
private String la... | spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/model/Customer497.java | Java | apache-2.0 | 624 |
/**
* Most of the code in the Qalingo project is copyrighted Hoteia and licensed
* under the Apache License Version 2.0 (release version 0.8.0)
* http://www.apache.org/licenses/LICENSE-2.0
*
* Copyright (c) Hoteia, 2012-2014
* http://www.hoteia.com - http://twitter.com/hoteia - contact@h... | qalingo/qalingo-engine | apis/api-core/api-core-common/src/main/java/org/hoteia/qalingo/core/web/mvc/viewbean/CustomerViewBean.java | Java | apache-2.0 | 8,590 |
package com.akjava.gwt.modelweight.client;
import com.akjava.gwt.three.client.gwt.GWTParamUtils;
import com.akjava.gwt.three.client.gwt.core.Intersect;
import com.akjava.gwt.three.client.java.ThreeLog;
import com.akjava.gwt.three.client.js.THREE;
import com.akjava.gwt.three.client.js.cameras.Camera;
import com.... | akjava/GWTModelWeight | src/com/akjava/gwt/modelweight/client/MeshVertexSelector.java | Java | apache-2.0 | 5,810 |
package com.nowcoder.interview;
import java.util.Arrays;
/*
* 现在有一个数组,请找出数组中每个元素的后面比它大的最小的元素,若不存在则为-1。
给定一个int数组A及数组的大小n,请返回每个元素所求的值组成的数组。保证A中元素为正整数,且n小于等于1000。
测试样例:
[11,13,10,5,12,21,3],7
[12,21,12,12,21,-1,-1]
*/
public class NextBiggerElementII {
public int[] findNext(int[] A, int n) {
if(A==null||n<=0)
... | pengood/CodeInterview | src/com/nowcoder/interview/NextBiggerElementII.java | Java | apache-2.0 | 1,030 |
package org.openestate.io.immobiliare_it.xml;
import java.io.Serializable;
import javax.annotation.Generated;
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 org.jvnet.jaxb2_... | OpenEstate/OpenEstate-IO | ImmobiliareIT/src/main/jaxb/org/openestate/io/immobiliare_it/xml/FeaturesProperty.java | Java | apache-2.0 | 16,285 |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | talsma-ict/umldoclet | src/plantuml-asl/src/net/sourceforge/plantuml/sequencediagram/command/CommandAutoNewpage.java | Java | apache-2.0 | 2,240 |
/*
* (c) 2005 David B. Bracewell
*
* 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, Ve... | dbracewell/mango | src/main/java/com/davidbracewell/function/SerializableConsumer.java | Java | apache-2.0 | 1,167 |
/*
* Copyright 2019 ThoughtWorks, 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 agr... | bdpiparva/gocd-ldap-authentication-plugin | src/integration/cd/go/authentication/ldap/LdapPluginIntegrationTest.java | Java | apache-2.0 | 3,775 |
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | manuel-palacio/keycloak | server-spi-private/src/main/java/org/keycloak/models/utils/RepresentationToModel.java | Java | apache-2.0 | 114,856 |
package fr.javatronic.blog.massive.annotation1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_120 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/Class_120.java | Java | apache-2.0 | 145 |
/*
* Copyright 2013 The Kava Project Developers. See the COPYRIGHT file at the top-level directory of this distribution
* and at http://kavaproject.org/COPYRIGHT.
*
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the
* MIT license <LICENSE-MIT or h... | KavaProject/KavaTouch | src/main/java/org/kavaproject/kavatouch/uikit/UIImage.java | Java | apache-2.0 | 3,517 |
package ru.asemenov.filter.servlets;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import ru.asemenov.filter.ConnectSql;
import ru.asemenov.filter.models.User;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... | Apeksi1990/asemenov | chapter_009/filter_security/src/test/java/ru/asemenov/filter/servlets/DeleteUserTest.java | Java | apache-2.0 | 1,613 |
/*
* Copyright 2012-2016 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 agr... | timzam/jetpad-mapper | model/src/main/java/jetbrains/jetpad/model/property/TextProperty.java | Java | apache-2.0 | 1,330 |
/*
* Copyright 2012 Shared Learning Collaborative, 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/LICENSE-2.0
*
* Unless required by applicabl... | inbloom/csv2xml | src/org/slc/sli/sample/entities/AdditionalCredits.java | Java | apache-2.0 | 3,691 |
/*
* Copyright 2017 Long Term Software 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/LICENSE-2.0
*
* Unless required by applicable law or... | miranda-messaging/miranda | src/main/java/com/ltsllc/miranda/event/EventManagerReadyState.java | Java | apache-2.0 | 2,252 |
/*
* Copyright 2018 prasenjit-net
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | identityOrg/identity | src/main/java/net/prasenjit/identity/controller/CryptographyController.java | Java | apache-2.0 | 1,450 |
// Copyright 2020 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... | GoogleChrome/android-browser-helper | playbilling/src/main/java/com/google/androidbrowserhelper/playbilling/digitalgoods/ConnectedBillingWrapper.java | Java | apache-2.0 | 4,590 |
package ru.stqa.pft.mantis.tests;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.lanwen.verbalregex.VerbalExpression;
import ru.stqa.pft.mantis.model.MailMessage;
import ru.stqa.pft.mantis.model.User;
import javax.mail.MessagingExce... | GornyAlex/pdt_37 | mantis-tests/src/test/java/ru/stqa/pft/mantis/tests/PasswordChangeTests.java | Java | apache-2.0 | 1,959 |
package controllers.algorithm.req_and_course;
public class ReqListForCourse {
public ReqNode first; // head node
private int pos; // Node's position
public ReqListForCourse() {
this.first = null;
}
/**
* Initialize the course link list: course1->req1->re2
*
* @param courseID
* course id
... | xixixhalu/sss | app/controllers/algorithm/req_and_course/ReqListForCourse.java | Java | apache-2.0 | 4,004 |
/**
* Copyright 2011 Modeliosoft
*
* 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 ... | juniper-project/modelling-mongodb | src/main/java/org/modelio/juniper/ide/mongodbmodeler/command/diagram/util/SimpleBoxTool.java | Java | apache-2.0 | 5,253 |
package com.alxgrk.ressign.error.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_FOUND)
public class OrgNotFoundException extends RuntimeException {
public OrgNotFoundException(String orgId) {
super("cou... | alxgrk/ressign | src/main/java/com/alxgrk/ressign/error/exceptions/OrgNotFoundException.java | Java | apache-2.0 | 373 |
/*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* 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... | porcelli-forks/guvnor | guvnor-m2repo-editor/guvnor-m2repo-editor-client/src/main/java/org/guvnor/m2repo/client/upload/UploadFormPresenter.java | Java | apache-2.0 | 3,510 |
package org.bndtools.rt.rest;
import java.util.HashMap;
import java.util.Map;
import org.osgi.framework.Constants;
import org.osgi.framework.Version;
import org.osgi.namespace.extender.ExtenderNamespace;
public final class BundleConstants {
public static final String EXTENDER_ID = "bndtools.rt.rest";
public stati... | bndtools/bndtools-rt | org.bndtools.rt.rest/src/org/bndtools/rt/rest/BundleConstants.java | Java | apache-2.0 | 617 |
/*--------------------------------------------------------------------------
* Copyright 2009 utgenome.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... | utgenome/utgb | utgb-core/src/main/java/org/utgenome/gwt/utgb/client/track/lib/TrackGenTrack.java | Java | apache-2.0 | 1,973 |
/*--------------------------------------------------------------------------
* Copyright 2008 utgenome.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... | utgenome/utgb | utgb-core/src/main/java/org/utgenome/gwt/widget/client/Icon.java | Java | apache-2.0 | 6,208 |
/*
* Copyright 2015-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 app... | nano-projects/nano-framework | nano-core/src/main/java/org/nanoframework/core/component/exception/ComponentServiceRepeatException.java | Java | apache-2.0 | 1,156 |
/*
* Copyright(C) 2014 tAsktoys. All rights reserved.
*/
package com.tasktoys.archelon.data.dao;
import com.tasktoys.archelon.data.entity.Category;
import java.util.List;
/**
* Interface of category data operations.
*
* @author mikan
* @since 0.1
*/
public interface CategoryDao {
/**
* Find categ... | tAsktoys/Archelon | src/main/java/com/tasktoys/archelon/data/dao/CategoryDao.java | Java | apache-2.0 | 1,004 |
/**
* Copyright 2016 Nikita Koksharov
*
* 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 agree... | zhoffice/redisson | redisson/src/main/java/org/redisson/api/RExecutorBatchFuture.java | Java | apache-2.0 | 811 |
package com.example.shz.hainuo_ims.fragment;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
im... | shzLoveyjw/HAINUO_IMS | app/src/main/java/com/example/shz/hainuo_ims/fragment/LocationFragment.java | Java | apache-2.0 | 6,413 |
package io.corbel.eventbus.ioc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import io.corbel.eventbus.EventHandler;
import io.corbel.eventbus... | corbel-platform/event-bus | src/main/java/io/corbel/eventbus/ioc/EventBusRegistrar.java | Java | apache-2.0 | 1,087 |
/**
* Copyright 2014
* SMEdit https://github.com/StarMade/SMEdit
* SMTools https://github.com/StarMade/SMTools
*
* 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.... | skunkiferous/SMEdit | jo_sm/src/main/java/jo/util/io/JavaCompiler.java | Java | apache-2.0 | 4,979 |
package org.jboss.aerogear.unifiedpush.service.spring;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyBoolean;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import stat... | aerobase/unifiedpush-server | service/src/test/java/org/jboss/aerogear/unifiedpush/service/spring/KeycloakServiceTest.java | Java | apache-2.0 | 6,468 |
package com.camnter.easycountdowntextureview.demo.adapter;
import android.widget.TextView;
import com.camnter.easycountdowntextureview.demo.R;
import com.camnter.easyrecyclerview.adapter.EasyRecyclerViewAdapter;
import com.camnter.easyrecyclerview.holder.EasyRecyclerViewHolder;
/**
* Description:MainAdapter
* Creat... | CaMnter/EasyCountDownTextureView | samples/src/main/java/com/camnter/easycountdowntextureview/demo/adapter/MainAdapter.java | Java | apache-2.0 | 935 |
/*
* Copyright 1999-2011 Alibaba Group Holding Ltd.
*
* 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... | xiaomozhang/druid | druid-1.0.9/src/test/java/com/alibaba/druid/bvt/sql/oracle/OracleInsertTest1.java | Java | apache-2.0 | 2,713 |