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 org.gradle.test.performance.mediummonolithicjavaproject.p14;
public class Production291 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | oehme/analysing-gradle-performance | commons/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p14/Production291.java | Java | apache-2.0 | 1,889 |
package org.apache.mesos.wildfly.json;
import java.io.IOException;
import javax.enterprise.context.ApplicationScoped;
import org.apache.mesos.wildfly.message.JsonMessage;
import org.apache.mesos.wildfly.message.protocol.Uptime;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.Serializatio... | jan-zajic/mesos-wildfly | commons/src/main/java/org/apache/mesos/wildfly/json/JsonMapper.java | Java | apache-2.0 | 1,076 |
/*
* Copyright 2015 Wojciech Zankowski
*
* http://www.zankowski.pl
*
* 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... | WojciechZankowski/yahoo-finance-api | blazar-yahoo-finance-api/src/main/java/pl/zankowski/yahoofinanceapi/RequestURLFactory.java | Java | apache-2.0 | 2,923 |
package br.com.compositeam.gradplanner.model;
public class ClassPeriod {
private int semester;
private int academicYear;
public int getSemester() {
return semester;
}
public void setSemester(int semester) {
this.semester = semester;
}
public int getAcademicYear() {
return academicYear;
}
public voi... | ComposiTeam/gradPlanner | gradPlanner/src/main/java/br/com/compositeam/gradplanner/model/ClassPeriod.java | Java | apache-2.0 | 402 |
package controller;
import static br.com.caelum.vraptor.view.Results.json;
import java.util.List;
import modelo.Vendas;
import modelo.VendasEmProgresso;
import dao.ItensDAO;
import dao.VendasDAO;
import br.com.caelum.vraptor.Delete;
import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Post;
import br.com.... | wmacibnc/biometria | src/controller/VendasController.java | Java | apache-2.0 | 2,473 |
/* ###
* IP: GHIDRA
*
* 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 writin... | NationalSecurityAgency/ghidra | Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/AutoAnalysisWorkerTest.java | Java | apache-2.0 | 13,840 |
/*
* 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... | reinhard/run-jetty-run | plugin/src/runjettyrun/Plugin.java | Java | apache-2.0 | 4,367 |
/*
* Ninja Trials is an old school style Android Game developed for OUYA & using
* AndEngine. It features several minigames with simple gameplay.
* Copyright 2013 Mad Gear Games <madgeargames@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | jjhaggar/ninja-trials | src/com/madgear/ninjatrials/sequences/Intro1Scene.java | Java | apache-2.0 | 26,459 |
/*
* $Id$
*
* SARL is an general-purpose agent programming language.
* More details on http://www.sarl.io
*
* Copyright (C) 2014-2017 the original authors 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 ma... | jgfoster/sarl | contribs/io.sarl.examples/io.sarl.examples.tests/src/test/java/io/sarl/examples/tests/ExamplesTest.java | Java | apache-2.0 | 8,216 |
/*
* 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/UINib.java | Java | apache-2.0 | 1,011 |
/*
* Copyright 2018 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 law... | google/firing-range | src/tests/invalidframingconfig/FrameAncestorsSelfNoXFOSameOrigin.java | Java | apache-2.0 | 1,676 |
/*
* Copyright (C) 2007 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... | Xaerxess/guava | android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java | Java | apache-2.0 | 7,607 |
package me.kkuai.kuailian.adapter;
import java.util.ArrayList;
import me.kkuai.kuailian.R;
import me.kkuai.kuailian.adapter.OwnerProfileListViewAdapter.ViewHolder;
import me.kkuai.kuailian.bean.OwnerPhotoBean;
import me.kkuai.kuailian.http.KImageLoader;
import me.kkuai.kuailian.log.Log;
import me.kkuai.kuailian.log.L... | pepoc/CustomViewGather | KuaiKuai/src/me/kkuai/kuailian/adapter/AutoViewPagerAdapter.java | Java | apache-2.0 | 2,037 |
/*
* 作者:钟勋 (e-mail:zhongxunking@163.com)
*/
/*
* 修订记录:
* @author 钟勋 2017-08-22 15:42 创建
*/
package org.antframework.configcenter.biz;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.antframework.configcenter.facade.vo.RedisConstant;
import org.antframework.configcente... | zhongxunking/configcenter | configcenter-biz/src/main/java/org/antframework/configcenter/biz/BizConfiguration.java | Java | apache-2.0 | 2,177 |
/*
* Copyright (c) 2017, 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.o... | lgobinath/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/stream/output/sink/Sink.java | Java | apache-2.0 | 5,209 |
package com.alcedomoreno.sirme.business.data;
import com.alcedomoreno.sirme.business.transform.ContactTransform;
import com.alcedomoreno.sirme.business.transform.Transformator;
public class Contact implements BusinessObject,Cloneable{
private int idContact;
private String nameContact;
private String dataContact;
... | ganzux/SIRME | SIRME-business/src/main/java/com/alcedomoreno/sirme/business/data/Contact.java | Java | apache-2.0 | 1,025 |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | GorK-ChO/selenium | java/server/src/org/openqa/grid/internal/utils/configuration/GridHubConfiguration.java | Java | apache-2.0 | 9,607 |
//License
/***
* Java Modbus Library (jamod)
* Copyright (c) 2002-2004, jamod development team
* 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 re... | graham22/Classic | j2modlite/src/main/java/ca/farrelltonsolar/j2modlite/msg/ReadMEIRequest.java | Java | apache-2.0 | 7,201 |
package com.google.api.ads.adwords.jaxws.v201509.cm;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* Returns a list of conversion trackers that match th... | gawkermedia/googleads-java-lib | modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201509/cm/ConversionTrackerServiceInterfacequery.java | Java | apache-2.0 | 1,823 |
/*
* Copyright 2015 Kevin Herron
*
* 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... | digitalpetri/opc-ua-stack | stack-core/src/main/java/com/digitalpetri/opcua/stack/core/types/structured/EUInformation.java | Java | apache-2.0 | 3,719 |
/*
* 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-elasticache/src/main/java/com/amazonaws/services/elasticache/model/ProcessedUpdateAction.java | Java | apache-2.0 | 7,887 |
/*
* 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
* d... | OSEHRA/ISAAC | core/model/src/main/java/sh/isaac/model/semantic/version/StringVersionImpl.java | Java | apache-2.0 | 5,108 |
import CSTime.DateTime;
import java.util.Calendar;
public class Test {
public static void main(String[] args) {
DateTime now = new DateTime(Calendar.getInstance());
DateTime real = new DateTime(now.getYears(), now.getMonthNumeric(), now.getDayOfMonth());
System.out.println(now.getDateTim... | tarekMohamedIT/CSTime | test/Test.java | Java | apache-2.0 | 402 |
package com.compomics.rover.general.quantitation.source.MaxQuant;
import com.compomics.rover.general.db.accessors.IdentificationExtension;
import org.apache.log4j.Logger;
import com.compomics.rover.general.quantitation.RatioGroup;
import com.compomics.rover.general.quantitation.RatioGroupCollection;
import com.compom... | compomics/compomics-rover | src/main/java/com/compomics/rover/general/quantitation/source/MaxQuant/MaxQuantRatioGroup.java | Java | apache-2.0 | 8,197 |
package me.manage.domain.service.bianwu.editing;
import me.manage.application.security.SaltUser;
import me.manage.domain.model.bianwu.editing.Editing;
import me.manage.domain.model.bianwu.editing.EditingStatus;
import me.manage.domain.model.bianwu.editing.IEditingRepository;
import me.manage.domain.model.user.User;
im... | febwindy/manage | src/main/java/me/manage/domain/service/bianwu/editing/EditingService.java | Java | apache-2.0 | 5,859 |
/*
* 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... | webos21/xi | java/jcl/src/java/org/apache/harmony/security/provider/cert/Cache.java | Java | apache-2.0 | 12,481 |
package carldav.jackrabbit.webdav.io;
import net.fortuna.ical4j.data.ParserException;
import net.fortuna.ical4j.model.Calendar;
import net.fortuna.ical4j.model.Property;
import net.fortuna.ical4j.model.ValidationException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import o... | ksokol/carldav | src/main/java/carldav/jackrabbit/webdav/io/DavInputContext.java | Java | apache-2.0 | 3,593 |
/**
* Copyright © 2017 DELL Inc. or its subsidiaries. All Rights Reserved.
*/
package com.dell.isg.smi.wsmanclient.utilities;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.uti... | phelpdh/smi-lib-wsman-client | src/main/java/com/dell/isg/smi/wsmanclient/utilities/XMLTool.java | Java | apache-2.0 | 14,369 |
package com.java110.api.listener.owner;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.java110.api.bmo.owner.IOwnerBMO;
import com.java110.api.bmo.ownerAttr.IOwnerAttrBMO;
import com.java110.api.listener.AbstractServiceApiPlusListener;
import com.java110.core.annotation.Java1... | java110/MicroCommunity | service-api/src/main/java/com/java110/api/listener/owner/SaveOwnerListener.java | Java | apache-2.0 | 6,795 |
package com.sd.lib.pulltorefresh.loadingview;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageView;
public abstract class SimpleImageLoadingView extends BaseLoadingView
{
public SimpleImageLoadingView(Context context)
{
s... | zj565061763/pulltorefresh | lib/src/main/java/com/sd/lib/pulltorefresh/loadingview/SimpleImageLoadingView.java | Java | apache-2.0 | 1,004 |
package io.quarkus.it.kubernetes;
import static io.restassured.RestAssured.given;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.entry;
import static org.hamcrest.Matchers.is;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Collections;
... | quarkusio/quarkus | integration-tests/kubernetes/quarkus-standard-way/src/test/java/io/quarkus/it/kubernetes/KubernetesWithMetricsNoAnnotationsTest.java | Java | apache-2.0 | 3,364 |
package name.valery1707.java.kazakh.spi.util;
import java.text.DateFormatSymbols;
import java.util.*;
import java.util.spi.CalendarNameProvider;
import static name.valery1707.java.kazakh.constants.KazakhLocales.LOCALES_ARRAY;
import static name.valery1707.java.kazakh.constants.KazakhLocales.SOURCE_LOCALE;
import stat... | valery1707/java-locale-kazakh | src/main/java/name/valery1707/java/kazakh/spi/util/KazakhCalendarNameProvider.java | Java | apache-2.0 | 4,052 |
/*
* Copyright 2012-2017 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... | dagnir/aws-sdk-java | aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/CloseInstancePublicPortsResult.java | Java | apache-2.0 | 4,002 |
/*
*
* * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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.o... | opensingular/singular-core | lib/wicket-utils/src/test/java/org/opensingular/lib/wicket/util/model/SupplierReloadableDetachableModelTest.java | Java | apache-2.0 | 1,992 |
package org.wx.sdk.poi.object;
import java.util.List;
/**
* 更新门店参数数据
* @author Rocye
* @version 2017.10.16
*/
public class PoiPara {
/** 门店ID */
private String poi_id ;
/** 商户自己的id,用于后续审核通过收到poi_id 的通知时,做对应关系 */
private String sid;
/** 门店的电话(纯数字,区号、分机号均由“-”隔开) */
private String telephone;
... | rocye/wx-idk | src/main/java/org/wx/sdk/poi/object/PoiPara.java | Java | apache-2.0 | 3,866 |
/*
* 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-iam/src/main/java/com/amazonaws/services/identitymanagement/model/AttachUserPolicyResult.java | Java | apache-2.0 | 2,350 |
/**
* Spring Security configuration.
*/
package com.av001.security;
| taharBakir/av001 | src/main/java/com/av001/security/package-info.java | Java | apache-2.0 | 70 |
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | huihoo/olat | olat7.8/src/main/java/org/olat/lms/wiki/WikiForumCallback.java | Java | apache-2.0 | 2,174 |
package com.luseen.arch;
import android.arch.lifecycle.LifecycleRegistry;
import android.arch.lifecycle.LifecycleRegistryOwner;
import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.CallSuper;
import android.support.annotation.Nullable;
import android.support.v4.... | armcha/MVP-Architecture-Components | arch/src/main/java/com/luseen/arch/BaseFragment.java | Java | apache-2.0 | 1,740 |
package org.zhwen.test;
import org.apache.thrift.TException;
public class HelloWorldImpl implements HelloWorldService.Iface {
public HelloWorldImpl() {
}
public String sayHello(String username) throws TException {
String ret = "Hi," + username + " welcome to my zhwen.org";
System.out.println(ret);
retur... | helight/helight_code | java_code/thrift_test/src/main/java/org/zhwen/test/HelloWorldImpl.java | Java | apache-2.0 | 333 |
package ru.job4j.test;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test test task of chapter_001.
*
* @author apermyakov
* @since 12.10.2017
* @version 1.0
*/
public class TestTaskTest {
/**
* Test when check word in base word then re... | AlexanderZf44/APermyakov | chapter_001/src/test/java/ru/job4j/test/TestTaskTest.java | Java | apache-2.0 | 1,467 |
/*
* 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 u... | sjaco002/vxquery | vxquery-core/src/main/java/org/apache/vxquery/runtime/functions/numeric/AbstractNumericScalarEvaluatorFactory.java | Java | apache-2.0 | 7,083 |
package com.borqs.server.market.utils;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Hex;
import javax.crypto.*;
import javax.crypto.spec.DESKeySpec;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;... | wutongservice/virtualgoogdsman | Server/src/main/java/com/borqs/server/market/utils/EncryptUtils.java | Java | apache-2.0 | 3,128 |
package org.securegraph.tools;
import com.beust.jcommander.Parameter;
import org.apache.commons.codec.binary.Base64;
import org.json.JSONArray;
import org.json.JSONObject;
import org.securegraph.*;
import org.securegraph.property.StreamingPropertyValue;
import org.securegraph.util.JavaSerializableUtils;
import java.i... | lumifyio/securegraph | securegraph-tools/src/main/java/org/securegraph/tools/GraphBackup.java | Java | apache-2.0 | 6,148 |
/*
* Copyright 2014 Grigory Pykhov
*
* 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... | s1-platform/s1 | s1-core/src/java/org/s1/objects/ObjectDiff.java | Java | apache-2.0 | 4,981 |
/*
* Copyright 2015-2017 GetSocial B.V.
*
* 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... | getsocial-im/getsocial-android-sdk | example/src/main/java/im/getsocial/demo/fragment/RootFragment.java | Java | apache-2.0 | 9,767 |
package com.example.android.miwok;
import android.app.Activity;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import java.util.... | kboul/MiwokApp | app/src/main/java/com/example/android/miwok/ColorsActivity.java | Java | apache-2.0 | 4,163 |
/*
* 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 ... | afiantara/apache-wicket-1.5.7 | src/wicket-util/src/main/java/org/apache/wicket/util/LazyInitializer.java | Java | apache-2.0 | 1,651 |
/*
* <!--
* ~ Copyright 2015-2017 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
* ~
* ~ Unl... | opencb/biodata | biodata-tools/src/main/java/org/opencb/biodata/tools/commons/Converter.java | Java | apache-2.0 | 1,233 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-dialogflow/v3beta1/1.31.0/com/google/api/services/dialogflow/v3beta1/model/GoogleCloudDialogflowCxV3beta1VersionVariants.java | Java | apache-2.0 | 2,430 |
package autoWired118;
/**
* Created by AOleynikov on 01.08.2018.
*/
public class Foo {
}
| misterflud/aoleynikov | spring4book/chapter003/src/main/java/autoWired118/Foo.java | Java | apache-2.0 | 92 |
/**
* @FileName: MessageMethod.java
* @Package: com.asura.framework.rabbitmq
* @author sence
* @created 3/15/2016 5:51 PM
* <p/>
* Copyright 2015 ziroom
*/
package com.asura.framework.rabbitmq;
/**
* <p></p>
* <p/>
* <PRE>
* <BR> 修改记录
* <BR>-----------------------------------------------
* <BR> 修改日期 修改人... | AsuraTeam/asura | asura-rabbitmq/src/main/java/com/asura/framework/rabbitmq/MessageMethod.java | Java | apache-2.0 | 736 |
package models;
import javax.persistence.Entity;
import play.db.jpa.Model;
@Entity
public abstract class Role extends Model {
public static Role findOrCreateByName(String name) {
// TODO complete
return null;
}
@Override
public abstract String toString();
public abstract boolean isAdmin();
}
| nmldiegues/palm | app/models/Role.java | Java | apache-2.0 | 308 |
/*
* Copyright 2001-2009 Terracotta, 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 applicabl... | xqiang26/quartz-source-node | src/main/java/org/quartz/impl/jdbcjobstore/StdJDBCConstants.java | Java | apache-2.0 | 32,757 |
package org.bridgejs.android.phonebridge.library.ui;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.ClipDrawable;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.RectShape;
import android.graphics.dra... | bridgejs/bridgejs | android/PhoneBridgeLibrary/src/org/bridgejs/android/phonebridge/library/ui/StylizedProgressBarFactory.java | Java | apache-2.0 | 1,426 |
package com.carrotsearch.progresso.views.console;
import java.util.IdentityHashMap;
import java.util.Set;
import java.util.function.Consumer;
import com.carrotsearch.progresso.Task;
import com.carrotsearch.progresso.Task.Status;
/**
* Simplifies status transition management a bit.
*/
public class TaskStatusRecover... | carrotsearch/progresso | progresso/src/main/java/com/carrotsearch/progresso/views/console/TaskStatusRecovery.java | Java | apache-2.0 | 1,547 |
package com.mine.lucidastarutils.utils;
import android.content.Context;
//import android.support.compat.BuildConfig;
import com.mine.lucidastarutils.log.KLog;
/**
* Created by hanxiaoxing on 16/12/27.
*/
public class Utils {
private static Context context;
private Utils() {
throw new Unsupported... | Lucidastar/hodgepodgeForAndroid | lucidastarutils/src/main/java/com/mine/lucidastarutils/utils/Utils.java | Java | apache-2.0 | 1,375 |
package org.spincast.testing.junitrunner;
import org.junit.runner.notification.Failure;
/**
* Provides a method that will be called each time a test fails. This can help
* debuging the problem by setting a breakpoint in that method.
*
* To use with {@link org.spincast.testing.junitrunner.SpincastJUnitRunner Spin... | spincast/spincast-framework | spincast-testing/spincast-testing-junit-runner/src/main/java/org/spincast/testing/junitrunner/TestFailureListener.java | Java | apache-2.0 | 430 |
package info.u250.c2d.box2d;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Mesh;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureWrap;
import com.ba... | shiguang1120/c2d-engine | c2d/src/info/u250/c2d/box2d/PolygonActor.java | Java | apache-2.0 | 3,976 |
package com.chenpan.commoner.widget.musicview;
import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.chenpan.commoner.R;
import com.chenpan.commoner.utils.ContextUtils;
/**
* 播放页Indicator
* Cre... | a616707902/Commoner | Commoner/app/src/main/java/com/chenpan/commoner/widget/musicview/IndicatorLayout.java | Java | apache-2.0 | 1,862 |
package com.huawei.esdk.tp.professional.local.impl.utils;
public abstract class Base64Utils
{
/**
* 对数据进行Base64编码
*
* @param btData 数据
* @return 以Base64编码的数据
*/
public static String encode(byte[] btData)
{
int iLen = 0;
boolean l_bFlag;
int l_iGroup;
... | eSDK/esdk_tp_native_java | source/esdk_tp_native_professional_java/src/main/java/com/huawei/esdk/tp/professional/local/impl/utils/Base64Utils.java | Java | apache-2.0 | 5,451 |
/**
* Copyright 2013 MegaFon
*
* 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... | MegafonWebLab/histone-java | src/test/java/ru/histone/acceptance/tests/synthetic/Synthetic17Test.java | Java | apache-2.0 | 1,011 |
// ========================================================================
// Copyright (c) 2008-2009 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the terms o... | wang88/jetty | jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java | Java | apache-2.0 | 5,803 |
package com.znet.reconnaissance.server.notifications;
public class Notification {
private String type;
private String target;
private String message;
public Notification() {
super();
}
public Notification(String type, String message) {
this(type, null, message);
}
public Notification(String type, St... | nicholashagen/Reconnaissance | server/src/main/java/com/znet/reconnaissance/server/notifications/Notification.java | Java | apache-2.0 | 771 |
package com.ubikgs.androidsensors.persistence.repositories.gps;
import com.ubikgs.androidsensors.persistence.DaggerTestBedComponent;
import com.ubikgs.androidsensors.persistence.repositories.RecordRepositoryIntegrationTest;
import com.ubikgs.androidsensors.records.gps.RawGPSStatusRecord;
import org.junit.Before;
imp... | ubikgs/AndroidSensorsPersistence | android-sensors-persistence/src/androidTest/java/com/ubikgs/androidsensors/persistence/repositories/gps/RawGPSStatusRepositoryIntegrationTest.java | Java | apache-2.0 | 1,544 |
package com.johnstarich.moviematcher.models;
import com.johnstarich.moviematcher.controllers.AbstractMongoDBTest;
import com.johnstarich.moviematcher.utils.HttpException;
import org.bson.types.ObjectId;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
/**
* Test... | JohnStarich/ee461l | src/test/java/com/johnstarich/moviematcher/models/UserTest.java | Java | apache-2.0 | 6,023 |
/*
* This code was written by Bear Giles <bgiles@coyotesong.com> and he
* 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
*... | beargiles/project-student | student-webservices/student-ws-server/src/main/java/com/invariantproperties/project/student/webservice/server/rest/AbstractResource.java | Java | apache-2.0 | 4,559 |
/*
* Copyright (C) 2008 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 ... | sonatype/sisu-guice | core/src/com/google/inject/internal/State.java | Java | apache-2.0 | 10,206 |
/*
* Axamit, gc.support@axamit.com
*/
package com.axamit.gc.core.servlets;
import com.axamit.gc.api.GCContext;
import org.apache.felix.scr.annotations.sling.SlingServlet;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.servlets.H... | axamit/gathercontent-aem-integration | core/src/main/java/com/axamit/gc/core/servlets/GCMeServlet.java | Java | apache-2.0 | 1,671 |
package org.dg.wifi;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
import java.nio.channels.AlreadyConnectedException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.Semaphore;
import org... | jachu51/DiamentowyGrant | NavigationDG/src/org/dg/wifi/WifiScanner.java | Java | apache-2.0 | 8,660 |
/*
* Copyright 2016 Martin W. Kirst
*
* 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... | macaroons-io/macaroons-io.github.io | jmacaroons2js/src/main/java/com/googlecode/future/FutureIncrementalAction.java | Java | apache-2.0 | 2,490 |
/*******************************************************************************
* Copyright (c) 2001-2013 Mathew A. Nelson and Robocode contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this di... | programus/j-bots | eclipse/base/robocode-src/robocode.tests/src/test/java/net/sf/robocode/test/robots/TestSocketAttack.java | Java | apache-2.0 | 1,427 |
/**
* Copyright (C) 2012 Alfredo Morresi
*
* This file is part of RainbowLibs 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/LICENS... | rainbowbreeze/rainbowlibs | src/main/java/it/rainbowbreeze/libs/data/RainbowBaseContentProviderDao.java | Java | apache-2.0 | 13,192 |
/*
* Copyright 2015 Max Schuster.
*
* 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... | maxschuster/Vaadin-AutocompleteTextField | vaadin-autocompletetextfield/src/main/java/eu/maxschuster/vaadin/autocompletetextfield/AutocompleteQuery.java | Java | apache-2.0 | 4,296 |
package com.cnblogs.yjmyzz.handler;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.struts2.rest.handler.ContentTypeHandler;
import org.springframework.beans.BeanUtils;
public class Jackson... | T5750/maven-archetype-templates | SpringMultiOrm/spring-struts-hibernate-mybatis/src/main/java/com/cnblogs/yjmyzz/handler/JacksonHandler.java | Java | apache-2.0 | 1,019 |
package nam.ui.section;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;
import nam.model.Project;
import nam.ui.Section;
import nam.ui.design.AbstractDomainElementWizard;
import nam.ui.design.SelectionContext;
import org.apache.commo... | tfisher1226/ARIES | nam/nam-view/src/main/java/nam/ui/section/SectionWizard.java | Java | apache-2.0 | 2,967 |
package com.shareyourproxy.api.service;
import com.shareyourproxy.api.domain.model.User;
import java.util.HashMap;
import retrofit.http.Body;
import retrofit.http.GET;
import retrofit.http.PUT;
import retrofit.http.Path;
import rx.Observable;
/**
* User Observable.
*/
@SuppressWarnings("unused")
public interface... | ProxyApp/Proxy | Application/src/main/java/com/shareyourproxy/api/service/UserService.java | Java | apache-2.0 | 1,186 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/enums/change_event_resource_type.proto
package com.google.ads.googleads.v10.enums;
public interface ChangeEventResourceTypeEnumOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v10.en... | googleads/google-ads-java | google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/enums/ChangeEventResourceTypeEnumOrBuilder.java | Java | apache-2.0 | 398 |
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwindx.applications.worldwindow.util.measuretool;
import gov.nasa.worldwind.*;
import gov.nasa.worldwind.avlist.*;
import gov.... | aleo72/ww-ceem-radar | src/main/java/gov/nasa/worldwindx/applications/worldwindow/util/measuretool/WWOMeasureTool.java | Java | apache-2.0 | 42,999 |
/**
* 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 ... | blerer/horizondb | src/main/java/io/horizondb/db/series/TimeSeriesPartition.java | Java | apache-2.0 | 16,790 |
package io.quarkus.cache.test.runtime;
import static org.junit.jupiter.api.Assertions.assertNotSame;
import static org.junit.jupiter.api.Assertions.assertSame;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
impo... | quarkusio/quarkus | extensions/spring-cache/deployment/src/test/java/io/quarkus/cache/test/runtime/BasicTest.java | Java | apache-2.0 | 4,959 |
/*
* Copyright 2015 Cisco Systems, 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 a... | foundation-runtime/monitoring | monitoring-api/src/main/java/com/cisco/oss/foundation/monitoring/MonitoringImplementationNotFoundException.java | Java | apache-2.0 | 1,011 |
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | crate/crate | libs/sql-parser/src/main/java/io/crate/sql/tree/NamedProperties.java | Java | apache-2.0 | 2,161 |
package liquibase.datatype.core;
import liquibase.change.core.LoadDataChange;
import liquibase.database.Database;
import liquibase.database.core.*;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.LiquibaseDataType;
import liquibase.statement.DatabaseFunctio... | fossamagna/liquibase | liquibase-core/src/main/java/liquibase/datatype/core/MediumIntType.java | Java | apache-2.0 | 2,158 |
/*
* 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 ... | spepping/fop-cs | src/java/org/apache/fop/apps/FOUserAgent.java | Java | apache-2.0 | 22,313 |
package com.luxoft.sqa.webtest;
import com.luxoft.sqa.model.ContactData;
import org.testng.annotations.Test;
public class ContactDeletionTest extends TestBase {
@Test(enabled = false)
public void testContactDeletion() {
app.getNavigationHelper().goToHomePage();
if (!app.getContac... | knedozorova/sqa-046 | webtests/src/test/java/com/luxoft/sqa/webtest/ContactDeletionTest.java | Java | apache-2.0 | 668 |
/*
* Copyright (C) 2008 ZXing authors
* Copyright 2011 Robert Theis
* Copyright 2015 Ashish Ranjan
*
* 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/lice... | r-ashish/myOCR | oCRTest/src/main/java/com/android/ashish/release/myOCR/CaptureActivityHandler.java | Java | apache-2.0 | 7,300 |
package carbon.view;
import android.content.Context;
import android.graphics.Rect;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.method.TransformationMethod;
import android.view.View;
import java.util.Locale;
/**
* Transformation method used for... | ZieIony/Carbon | carbon/src/main/java/carbon/view/AllCapsTransformationMethod.java | Java | apache-2.0 | 1,437 |
package org.devdom.influencer.model.dto;
import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistenc... | developersdo/developer-influencers | src/main/java/org/devdom/influencer/model/dto/GroupAdmin.java | Java | apache-2.0 | 2,310 |
package com.eumji.zigzag;
/**
*
* S形
*
* @email eumji025@gmail.com
* @author: EumJi
* @date: 2017/8/3
* @time: 12:54
*/
public class Solution {
/**
* 第一种解法
* @param s 待排序的字符串
* @param numRows 几行
* @return 新字符串
*/
public String convert(String s, int numRows) {
char[] ch... | eumji025/leetcode-program | src/com/eumji/zigzag/Solution.java | Java | apache-2.0 | 2,897 |
package de.tudresden.inf.lat.born.core.rule;
import java.util.ArrayList;
import java.util.List;
import de.tudresden.inf.lat.born.core.term.Clause;
import de.tudresden.inf.lat.born.core.term.Term;
/**
* This is a rule for ProbLog.
*
* @author Julian Mendez
*
*/
public class TR3Rule implements CompletionRule {
... | julianmendez/born | born-owlapi/src/main/java/de/tudresden/inf/lat/born/core/rule/TR3Rule.java | Java | apache-2.0 | 1,217 |
package org.sample.todo.data.api;
public interface IDataService {
}
| orekoya/osgi-todo | org.sample.todo.app/src/org/sample/todo/data/api/IDataService.java | Java | apache-2.0 | 70 |
package net.authorize;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment spe... | setrar/scalaWSDL | src/main/java/net/authorize/GetSettledBatchList.java | Java | apache-2.0 | 2,498 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/services/keyword_plan_idea_service.proto
package com.google.ads.googleads.v9.services;
/**
* <pre>
* Url Seed
* </pre>
*
* Protobuf type {@code google.ads.googleads.v9.services.UrlSeed}
*/
public final class UrlSeed e... | googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/UrlSeed.java | Java | apache-2.0 | 20,553 |
/*
* Copyright 2020 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | googleapis/java-service-management | proto-google-cloud-service-management-v1/src/main/java/com/google/api/servicemanagement/v1/OperationMetadata.java | Java | apache-2.0 | 82,707 |
/*
* Copyright (c) 2013-2017 Cinchapi 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... | dubex/concourse | concourse-server/src/main/java/com/cinchapi/concourse/server/cli/data/ListDataCli.java | Java | apache-2.0 | 2,007 |
/**
* 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... | yahoojapan/multiple-dimension-spread | src/example/src/test/java/jp/co/yahoo/dataplatform/mds/example/spread/expand/TestUseExpandSpread1.java | Java | apache-2.0 | 1,389 |
/*
* Copyright 2010-2016 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 "l... | dump247/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iotdata/model/transform/DeleteThingShadowResultJsonUnmarshaller.java | Java | apache-2.0 | 2,036 |
package org.apereo.cas.ticket.registry;
import org.apereo.cas.ComponentSerializationPlan;
import org.apereo.cas.ComponentSerializationPlanConfigurator;
import org.apereo.cas.authentication.CoreAuthenticationTestUtils;
import org.apereo.cas.config.CasCoreTicketCatalogConfiguration;
import org.apereo.cas.config.CasCoreT... | GIP-RECIA/cas | support/cas-server-support-memcached-ticket-registry/src/test/java/org/apereo/cas/ticket/registry/MemcachedTicketRegistryTests.java | Java | apache-2.0 | 3,745 |
package com.travelport.schema.air_v29_0;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous comp... | DimkaGorhover/zaremba | src/main/java/com/travelport/schema/air_v29_0/FareRuleShortRef.java | Java | apache-2.0 | 1,415 |