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.ctrip.xpipe.redis.checker.healthcheck.actions.interaction;
import com.ctrip.xpipe.api.foundation.FoundationService;
import com.ctrip.xpipe.cluster.ClusterType;
import com.ctrip.xpipe.endpoint.HostPort;
import com.ctrip.xpipe.redis.checker.AbstractCheckerTest;
import com.ctrip.xpipe.redis.checker.alert.ALER... | ctripcorp/x-pipe | redis/redis-checker/src/test/java/com/ctrip/xpipe/redis/checker/healthcheck/actions/interaction/CRDTDelayPingActionCollectorTest.java | Java | apache-2.0 | 6,040 |
/*
* Copyright (c) 2010-2011, Dmitry Sidorenko. 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 require... | ushkinaz/command-me | src/test/java/com/googlecode/commandme/story/Story_MultipleActions.java | Java | apache-2.0 | 1,721 |
package com.spring.persistence.service.productdetails;
import com.spring.core.event.productdetails.*;
/**
* @author vahid hosseinzadeh
* @version 1.0
* @since 1.0
*/
public interface ProductDetailsPersistenceService {
public AllProductDetailsDetailsEvent requestAllProductDetailsDetails(RequestAllProductDetai... | garlos/ORFO | src/main/java/com/spring/persistence/service/productdetails/ProductDetailsPersistenceService.java | Java | apache-2.0 | 736 |
/*
* Copyright (c) 2016, 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.or... | lgobinath/siddhi | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/util/extension/holder/StreamProcessorExtensionHolder.java | Java | apache-2.0 | 1,910 |
/**
* Copyright (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
/**
* Integration of examples with strata-report.
*/
package com.opengamma.strata.examples.report;
| ChinaQuants/Strata | examples/src/main/java/com/opengamma/strata/examples/report/package-info.java | Java | apache-2.0 | 240 |
/*
* 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-compute | proto-google-cloud-compute-v1/src/main/java/com/google/cloud/compute/v1/PatchPacketMirroringRequest.java | Java | apache-2.0 | 53,930 |
/* ###
* 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/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/listing/DBTraceDataAdapter.java | Java | apache-2.0 | 7,497 |
/*
* 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... | xasx/assertj-core | src/main/java/org/assertj/core/api/WithAssumptions.java | Java | apache-2.0 | 35,481 |
package com.salesmanager.shop.model.references;
import com.salesmanager.shop.model.entity.Entity;
public class CountryEntity extends Entity {
/**
*
*/
private static final long serialVersionUID = 1L;
private String code;
private boolean supported;
public String getCode() {
return code;
}
public voi... | shopizer-ecommerce/shopizer | sm-shop-model/src/main/java/com/salesmanager/shop/model/references/CountryEntity.java | Java | apache-2.0 | 508 |
package com.caiyi.dailywork.utils;
import java.io.Closeable;
import java.io.IOException;
/**
* 和流有关的工具类.
* Created by HuoGuangxu on 2016/10/20.
*/
public class IOUtil {
private IOUtil() {
throw new UnsupportedOperationException("No instances!");
}
/**
* 关闭流对象,忽略异常。
*/
public sta... | authorRen/DailyWork | app/src/main/java/com/caiyi/dailywork/utils/IOUtil.java | Java | apache-2.0 | 935 |
/*
* Copyright (c) 2008-2015 Citrix 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... | netscaler/nitro | src/main/java/com/citrix/netscaler/nitro/resource/config/cache/cachepolicylabel_cachepolicy_binding.java | Java | apache-2.0 | 12,826 |
package php.runtime.memory.support;
import php.runtime.Memory;
import php.runtime.common.HintType;
import php.runtime.env.Environment;
import php.runtime.env.TraceInfo;
import php.runtime.lang.spl.ArrayAccess;
import php.runtime.memory.*;
import php.runtime.memory.helper.ShortcutMemory;
import java.util.*;
public cl... | jphp-compiler/jphp | jphp-runtime/src/php/runtime/memory/support/MemoryUtils.java | Java | apache-2.0 | 15,743 |
/**
* Copyright (C) 2013-2019 Helical IT Solutions (http://www.helicalinsight.com) - 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://... | helicalinsight/helicalinsight | core/src/main/java/com/helicalinsight/efw/components/DsTypeHandlerFactory.java | Java | apache-2.0 | 2,457 |
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.tp.ems.modules.gen.service;
import com.tp.ems.common.utils.StringUtils;
import org.apache.commons.lang3.StringEscapeUtils;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 347184068/gmenergy | src/main/java/com/tp/ems/modules/gen/service/GenTemplateService.java | Java | apache-2.0 | 1,638 |
package cz.muni.fi.network;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Arrays;
import java.util.Collections;
/**
* Created by MiHu on 2.12.2016.
*/
public class Graph extends JPanel {
double[] data;
double[] data2;
final int PAD = 20;
int xLength;... | rex1234/neural-network | src/main/java/cz/muni/fi/network/Graph.java | Java | apache-2.0 | 2,190 |
/*
* Copyright 2011 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... | cloudidentity/spring-social-live | spring-social-live/src/test/java/org/springframework/social/windows/connect/WindowsLiveAdapterTest.java | Java | apache-2.0 | 1,734 |
package org.gradle.test.performance.mediummonolithicjavaproject.p385;
public class Production7708 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p385/Production7708.java | Java | apache-2.0 | 1,891 |
package ru.job4j.service;
public class AccountService {
}
| kirillkrohmal/krohmal | chapter_011/finishspring/src/main/java/ru/job4j/service/AccountService.java | Java | apache-2.0 | 59 |
package com.terremark.api;
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.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlSchemaTyp... | herickson/terremark-api | src/main/java/com/terremark/api/Ticket.java | Java | apache-2.0 | 9,453 |
/*
* Copyright (C) 2014 Artsem Semianenka (http://art4ul.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | art4ul/jcoon | src/main/java/com/art4ul/jcoon/handlers/CookiesAnnotationBeforeHandler.java | Java | apache-2.0 | 1,888 |
/*
* Copyright 2021 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... | googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/services/TopicConstantServiceClient.java | Java | apache-2.0 | 10,902 |
package com.t3coode.togg.services.implementations;
import java.util.List;
import com.t3coode.togg.services.TogglApiResponseException;
import com.t3coode.togg.services.TogglTasks;
import com.t3coode.togg.services.dtos.TaskDTO;
import com.t3coode.togg.services.views.TaskMassUpdateView;
public class TogglTasksImpl exte... | darrillaga/togg | app/src/main/java/com/t3coode/togg/services/implementations/TogglTasksImpl.java | Java | apache-2.0 | 3,885 |
package org.mengyun.tcctransaction.sample.http.redpacket.service;
import org.mengyun.tcctransaction.sample.http.redpacket.api.RedPacketAccountService;
import org.mengyun.tcctransaction.sample.redpacket.domain.repository.RedPacketAccountRepository;
import org.springframework.beans.factory.annotation.Autowired;
import ... | changmingxie/tcc-transaction | tcc-transaction-tutorial-sample/tcc-transaction-http-sample/tcc-transaction-http-redpacket/src/main/java/org/mengyun/tcctransaction/sample/http/redpacket/service/RedPacketAccountServiceImpl.java | Java | apache-2.0 | 715 |
/* Copyright 2004-2005 Graeme Rocher
*
* 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... | erdi/grails-core | grails-web/src/main/groovy/org/codehaus/groovy/grails/web/servlet/WrappedResponseHolder.java | Java | apache-2.0 | 1,813 |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | camunda/camunda-dmn-model | src/main/java/org/camunda/bpm/model/dmn/impl/instance/RowImpl.java | Java | apache-2.0 | 1,986 |
package com.tngtech.archunit.example.layers.service;
public enum ServiceType {
STANDARD
}
| TNG/ArchUnit | archunit-example/example-plain/src/main/java/com/tngtech/archunit/example/layers/service/ServiceType.java | Java | apache-2.0 | 95 |
/*
* Copyright 2021 Allette Systems (Australia)
* http://www.allette.com.au
*
* 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... | pageseeder/ox | pso-ox-core/src/main/java/org/pageseeder/ox/core/JobStatus.java | Java | apache-2.0 | 3,210 |
package upsport.loop.business;
import org.hibernate.Session;
import upsport.loop.model.Rating;
import upsport.loop.model.RatingId;
import upsport.loop.model.Upload;
import upsport.loop.model.User;
import upsport.loop.session.TransientSessionExecutor;
import upsport.loop.transaction.Getter;
import upsport.loop.transac... | UpSport/loop | app/core/src/main/java/upsport/loop/business/RatingBusiness.java | Java | apache-2.0 | 1,786 |
package uk.ac.shef.dcs.sti;
/**
* Author: Ziqi Zhang (z.zhang@dcs.shef.ac.uk) Date: 22/10/12 Time: 12:42
*/
public class STIException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1001679235746774903L;
public STIException(final Exception e) {
super(e);
}
public STIExce... | odalic/sti | sti-main/src/main/java/uk/ac/shef/dcs/sti/STIException.java | Java | apache-2.0 | 446 |
package org.kaddiya.grorchestrator.guice.factory;
import org.kaddiya.grorchestrator.managers.DockerRemoteAPI;
import org.kaddiya.grorchestrator.models.core.latest.Host;
import org.kaddiya.grorchestrator.models.core.latest.Instance;
/**
* Created by Webonise on 14/07/16.
*/
public interface RemoveContainerFactory {
... | kaddiya/grorchestrator | src/main/groovy/org/kaddiya/grorchestrator/guice/factory/RemoveContainerFactory.java | Java | apache-2.0 | 380 |
package com.morgan.server.util.flag;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.Map;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.base.Supplier;
import com.google.common.base.Suppliers;
import com.google... | mmm2a/game-center | src/com/morgan/server/util/flag/FlagAccessorFactory.java | Java | apache-2.0 | 4,825 |
/*
* Copyright 2005-2018 Dozer 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 law or ag... | orange-buffalo/dozer | core/src/test/java/com/github/dozermapper/core/vo/NoCustomMappingsObjectPrime.java | Java | apache-2.0 | 2,286 |
/*
* Copyright 2009 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 in w... | BladeRunnerJS/brjs-JsTestDriver | JsTestDriver/src/com/google/jstestdriver/TestCase.java | Java | apache-2.0 | 1,118 |
package ru.st.selenium.applogic1;
import ru.st.selenium.applogic.NavigationHelper;
public class NavigationHelper1 extends DriverBasedHelper implements NavigationHelper {
private String baseUrl;
public NavigationHelper1(ApplicationManager1 manager) {
super(manager.getWebDriver());
this.baseUrl = manager.getBas... | Greg3dot14D/JavaWebDriverTrainingLesson3 | src/main/java/ru/st/selenium/applogic1/NavigationHelper1.java | Java | apache-2.0 | 1,076 |
package net.erel.maven.plugins.mojo;
import java.io.File;
import javax.xml.bind.JAXBException;
import net.erel.maven.plugins.domain.maven.PGXVersion;
import net.erel.maven.plugins.exception.DoException;
import net.erel.maven.plugins.exception.NoSuchProjectException;
import net.erel.maven.plugins.exception.NoSuchRele... | nherbaut/erel-maven-plugin | src/main/java/net/erel/maven/plugins/mojo/PromoteRCMojo.java | Java | apache-2.0 | 5,441 |
class Villain{
private String name;
protected void set(String name){
this.name=name;
}
public Villain(String name){
this.name=name;
}
public String toString(){
return "I'm a Villain and my name is"+name;
}
}
public class Orc extends Villain{
private int orcNumber;
public Orc(String name,int... | WuSicheng54321/Thinking-in-Java-4th | ThinkingInJava07/src/Orc.java | Java | apache-2.0 | 726 |
/*
* 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 ... | kisskys/incubator-asterixdb | asterixdb/asterix-external-data/src/main/java/org/apache/asterix/external/dataflow/FrameFullTupleForwarder.java | Java | apache-2.0 | 2,552 |
package com.lingju.assistant.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.ImageButton;
import android.widget.TextView;
import com.lingju.assistant.R;
import com.lingju.model.BaiduAddress;
/**
* Created by Administrator on 2015/7/14... | LingjuAI/AssistantBySDK | app/src/main/java/com/lingju/assistant/view/LocationSearchSuggestItemView.java | Java | apache-2.0 | 1,529 |
/*
* Copyright (c) 2014 Spotify AB.
*
* 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,... | mbruggmann/helios | helios-integration-tests/src/test/java/com/spotify/helios/system/ConfigFileJobCreationITCase.java | Java | apache-2.0 | 960 |
package com.bluejean.modules.asm;
import org.objectweb.asm.*;
import java.io.IOException;
/**
* ASM测试
* @author: wangrl
* @Date: 2016-03-25 16:37
*/
public class AsmTester {
public final static float VERSION = 1.8f;
public static void main(String[] args) throws IOException {
testRead();
}
... | wangruiling/samples | utils/src/main/java/com/bluejean/modules/asm/AsmTester.java | Java | apache-2.0 | 2,356 |
package org.aktin.broker.node;
/**
* Asynchronous broker node. Manual interaction is allowed
* before requests are forwarded to an external execution service.
*
* @author R.W.Majeed
*
*/
public abstract class AsynchronousNode extends AbstractNode {
}
| aktin/broker | broker-client/src/main/java/org/aktin/broker/node/AsynchronousNode.java | Java | apache-2.0 | 260 |
package com.github.javastudy.netty.udp;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.channel.socket.DatagramPacket;
/**
* @filename UDPSeverHandler.java
* @author code by jianghuiwen
* @mail jianghuiwen2012@163.c... | vfahrenheit/java-misc-study | netty-study/src/main/java/com/github/javastudy/netty/udp/UDPSeverHandler.java | Java | apache-2.0 | 1,461 |
/*
* Copyright 2005-2008 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by... | sbower/kuali-rice-1 | it/krad/src/test/java/org/kuali/rice/krad/service/KualiRuleServiceTest.java | Java | apache-2.0 | 16,537 |
/*
* Copyright 2014 Bernd Vogt and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | sourcepit/b2 | b2-maven-plugin/src/test/java/org/sourcepit/b2/internal/maven/MavenProjectFileFlagsProviderTest.java | Java | apache-2.0 | 5,853 |
package ml.utils;
public class BinaryNode<T extends Comparable<T>> extends Node<T> {
public BinaryNode<T> left;
public BinaryNode<T> right;
public BinaryNode(T key) {
super(key);
left = null;
right = null;
}
@Override
public BinaryNode<T> getLeft() {
return left;
}
@Override
public BinaryNode<T> ... | MingjieQian/LAML | src/ml/utils/BinaryNode.java | Java | apache-2.0 | 355 |
/*
* Copyright 2013-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... | spring-cloud/spring-cloud-contract | specs/spring-cloud-contract-spec-java/src/main/java/org/springframework/cloud/contract/spec/internal/QueryParameters.java | Java | apache-2.0 | 2,025 |
/*
* Copyright 2012 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 b... | OpenSourceConsulting/athena-chameleon | src/main/java/com/athena/chameleon/engine/entity/pdf/AnalyzeDefinition.java | Java | apache-2.0 | 11,585 |
/*-
* #%L
* commons-data
* %%
* Copyright (C) 2018 - 2019 Tomschi
* %%
* 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
*
* Unle... | Tomschi/commons | commons-data/src/main/java/com/github/tomschi/commons/data/message/DataMessages.java | Java | apache-2.0 | 1,715 |
package headfirst.iterator.dinermergercafe;
public class MenuItem {
String name;
String description;
boolean vegetarian;
double price;
public MenuItem(String name,
String description,
boolean vegetarian,
double price)
{
this.name = name;
this.description = ... | ljaljushkin/PatternPractise | from_web/HF_DP/src/headfirst/iterator/dinermergercafe/MenuItem.java | Java | apache-2.0 | 604 |
package com.albert.shiro.lesson4.credentials;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.Ehcache;
import net.sf.ehcache.Element;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.ExcessiveAttemptsException;
import org.apach... | albertchendao/shiro-study-code | lesson-4/src/main/java/com/albert/shiro/lesson4/credentials/RetryLimitHashedCredentialsMatcher.java | Java | apache-2.0 | 1,641 |
package liquibase.parser.core.xml;
import liquibase.Contexts;
import liquibase.change.*;
import liquibase.change.core.*;
import liquibase.change.custom.CustomChangeWrapper;
import liquibase.changelog.ChangeLogParameters;
import liquibase.changelog.ChangeSet;
import liquibase.changelog.DatabaseChangeLog;
import liquiba... | Vampire/liquibase | liquibase-core/src/main/java/liquibase/parser/core/xml/XMLChangeLogSAXHandler.java | Java | apache-2.0 | 32,251 |
package es.portizsan.twitrector;
public class Constants {
public static enum Unit {
km, mi;
}
}
| portizsan/twitrector | src/main/java/es/portizsan/twitrector/Constants.java | Java | apache-2.0 | 101 |
package xyz.zimuju.basekit.cipher;
import android.util.Base64;
/**
* @Description: Base64加密解密
* @author: jeasinlee
* @date: 2017-01-12 10:58
*/
public class BASE64 {
public static byte[] encode(byte[] plain) {
return Base64.encode(plain, Base64.DEFAULT);
}
public static String encodeToString... | Yumore/YuanYuan | Basekit/src/main/java/xyz/zimuju/basekit/cipher/BASE64.java | Java | apache-2.0 | 626 |
/*
* 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 u... | kitei/kitei-lessio | junit/src/test/java/org/kitei/testing/lessio/junit/AllowLocalFileAccessTest.java | Java | apache-2.0 | 2,217 |
/*
* 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 ... | waans11/incubator-asterixdb | asterixdb/asterix-app/src/test/java/org/apache/asterix/app/external/TestLibrarian.java | Java | apache-2.0 | 4,497 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/enums/ad_network_type.proto
package com.google.ads.googleads.v8.enums;
public interface AdNetworkTypeEnumOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.ads.googleads.v8.enums.AdNetworkTypeEnum)
... | googleads/google-ads-java | google-ads-stubs-v8/src/main/java/com/google/ads/googleads/v8/enums/AdNetworkTypeEnumOrBuilder.java | Java | apache-2.0 | 364 |
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | thongdv/OEPv2 | portlets/oep-core-processmgt-portlet/docroot/WEB-INF/src/org/oep/core/processmgt/service/impl/DossierStepLocalServiceImpl.java | Java | apache-2.0 | 1,674 |
package org.springframework.roo.addon.requestfactory.annotations.android;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface RooA... | rwl/requestfactory-addon | annotations/src/main/java/org/springframework/roo/addon/requestfactory/annotations/android/RooActivity.java | Java | apache-2.0 | 535 |
package org.nd4j.linalg.indexing.conditions;
import org.nd4j.linalg.api.complex.IComplexNumber;
import org.nd4j.linalg.factory.Nd4j;
/**
* Created by agibsonccc on 10/8/14.
*/
public abstract class BaseCondition implements Condition {
protected Number value;
protected IComplexNumber complexNumber;
publ... | wlin12/JNN | src/org/nd4j/linalg/indexing/conditions/BaseCondition.java | Java | apache-2.0 | 617 |
package com.intel.JACW.dmath;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
import com.intel.mttest.config.RunConfig;
import com.intel.mttest.exception.InvalidTest... | android-workloads/JACWfA | src/main/java/com/intel/JACW/dmath/DijkstraI.java | Java | apache-2.0 | 3,405 |
/*
* Copyright 2015-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 ap... | topsale/leesite | leesite-module/src/main/java/com/funtl/leesite/modules/sys/security/FormAuthenticationFilter.java | Java | apache-2.0 | 4,601 |
public class K{
public void get(Integer n){
System.out.println(n);
}
}
| dushmis/ReflectionInject | K.java | Java | apache-2.0 | 79 |
/*
* Copyright 2013-2016 Uncharted Software Inc.
*
* Property of Uncharted(TM), formerly Oculus Info Inc.
* https://uncharted.software/
*
* 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... | unchartedsoftware/influent | influent-server/src/main/java/influent/server/utilities/GuidValidator.java | Java | apache-2.0 | 1,290 |
//================================================================================
//Copyright (c) 2012, David Yu
//All rights reserved.
//--------------------------------------------------------------------------------
// Redistribution and use in source and binary forms, with or without
// modification, are permitted... | zhupan/protostuff | protostuff-runtime-registry/src/main/java/com/dyuproject/protostuff/runtime/ExplicitIdStrategy.java | Java | apache-2.0 | 31,154 |
/*
* Copyright 2011 Goldman Sachs.
*
* 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 ... | jlz27/gs-collections | serialization-tests/src/test/java/com/gs/collections/impl/tuple/AbstractImmutableEntryTest.java | Java | apache-2.0 | 1,770 |
package demo;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import javax.net.ssl.SSLContext;
import javax.script.Invocable;
import javax.script.ScriptEng... | ceharris/avaya-aes-demo | src/main/java/demo/Main.java | Java | apache-2.0 | 5,968 |
/*
* Copyright (C) 2016 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... | ened/ExoPlayer | library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/Ac3Reader.java | Java | apache-2.0 | 7,757 |
/*
* Copyright 2017 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | emmartins/wildfly-server-migration | servers/wildfly12.0/src/main/java/org/jboss/migration/wfly12/WildFlyFullServerMigrationProvider12_0.java | Java | apache-2.0 | 1,028 |
package com.yevhenpanko.pcommerce.repository;
import com.yevhenpanko.pcommerce.entity.user.UserToken;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interf... | yevhen-panko/pcommerce | main-application/service/src/main/java/com/yevhenpanko/pcommerce/repository/UserTokenRepository.java | Java | apache-2.0 | 503 |
/*
* Copyright (c) 2018 David Boissier.
*
* 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 ag... | dboissier/mongo4idea | src/main/java/org/codinjutsu/tools/mongo/view/model/MongoTreeBuilder.java | Java | apache-2.0 | 10,165 |
package com.dao;
import java.util.List;
import com.resources.Persona;
public interface PersonaDao {
public PersonaEntity createPersona(String name) throws Exception;
public PersonaEntity createPersona(Persona persona) throws Exception;
public List<PersonaEntity> getPersonas();
public PersonaEntity getP... | eleazarhdez/ApiRest | src/com/dao/PersonaDao.java | Java | apache-2.0 | 480 |
package com.intellij.plugins.haxe.ide.index;
/**
* Created by fedorkorotkov.
*/
public class HaxeIndexUtil {
public static int BASE_INDEX_VERSION = 1;
}
| submain/intellij-haxe | src/com/intellij/plugins/haxe/ide/index/HaxeIndexUtil.java | Java | apache-2.0 | 158 |
package com.mrprona.dota2assitant.joindota.customview;
import android.content.Context;
import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet;
public class CustomFontTextView extends AppCompatTextView {
public final String TAG;
public enum Gravity {
CENTER
}
pub... | mrprona92/SecretBrand | app/src/main/java/com/mrprona/dota2assitant/joindota/customview/CustomFontTextView.java | Java | apache-2.0 | 893 |
package com.example.administrator.taoyuan.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;
import android... | 1111Jin/TaoYuan_group8 | app/src/main/java/com/example/administrator/taoyuan/fragment/UnRemarkFragment.java | Java | apache-2.0 | 5,592 |
/******************************************************************************************************/
/* */
/* Infinidat Ltd. - Proprietary and Confidential Material */
/* ... | alexradzin/Mestor | core/src/test/java/org/mestor/entities/Country.java | Java | apache-2.0 | 6,808 |
package org.examples.spring.manager.user.impl;
import org.examples.spring.dao.user.UserDao;
import org.examples.spring.entity.user.SysUserInfo;
import org.examples.spring.manager.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Se... | Dustfate/examples | examples-spring/src/main/java/org/examples/spring/manager/user/impl/UserServiceImpl.java | Java | apache-2.0 | 570 |
package org.andengine.util.algorithm.hull;
/**
* (c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 13:46:22 - 14.09.2010
*/
public interface IHullAlgorithm {
// ===========================================================
// Final Fields
// ====================================... | iraupph/tictactoe-android | AndEngineGLES2/src/org/andengine/util/algorithm/hull/IHullAlgorithm.java | Java | apache-2.0 | 1,063 |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | firebase/firebase-android-sdk | transport/transport-runtime/src/test/java/com/google/android/datatransport/runtime/scheduling/persistence/StateSimulations.java | Java | apache-2.0 | 9,806 |
package org.apache.commons.jcs.utils.discovery;
/*
* 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 Apa... | mohanaraosv/commons-jcs | commons-jcs-core/src/test/java/org/apache/commons/jcs/utils/discovery/UDPDiscoveryServiceUnitTest.java | Java | apache-2.0 | 9,618 |
package com.damonlei.utils.ui;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.Toolbar;
import static com.damonlei.utils.Conf... | DanxiongLei/Vimdroid | vim-android/utils/src/main/java/com/damonlei/utils/ui/BaseActivity.java | Java | apache-2.0 | 2,485 |
package com.bylak.android.motion.recognize;
/**
* Created with IntelliJ IDEA.
* User: bylak
* Date: 28.09.13
* Time: 12:23
* To change this template use File | Settings | File Templates.
*/
public final class MotionType {
private final int id;
private final String name;
public static final int UNKNO... | arturbylak/android-motion-recognizer-library | android-motion-recognizer/src/main/java/com/bylak/android/motion/recognize/MotionType.java | Java | apache-2.0 | 552 |
/*
* Copyright 2013-2016 Netherlands Forensic 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | ccreeten/metal | core/src/main/java/io/parsingdata/metal/token/Rep.java | Java | apache-2.0 | 2,561 |
package test.service.impl.segmentservice;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import javastrava.model.StravaS... | danshannon/javastrava-test | src/main/java/test/service/impl/segmentservice/GetSegmentLeaderboardTest.java | Java | apache-2.0 | 9,957 |
package dao.impl;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import common.protocol.MBeanInfo;
import dao.MBeansDao;
import org.influxdb.InfluxDB;
import org.influxdb.InfluxDBFactory;
import org.influxdb.dto.BatchPoints;
import org.influxdb.dto.Point;
import java.util.List;
import ja... | dubin555/Kafka-Insight | src/main/java/dao/impl/MBeansInfluxDBDaoImpl.java | Java | apache-2.0 | 2,577 |
/*
* 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... | vrkansagara/elasticsearch | src/main/java/org/elasticsearch/action/admin/indices/cache/clear/ClearIndicesCacheRequestBuilder.java | Java | apache-2.0 | 2,080 |
package com.xsolla.android.sdk.api.model.psystems;
import java.util.ArrayList;
/**
*
*/
public class XPaymentSystemsManager {
private XPSQuickManager quickManger;
private XPSAllManager allManager;
private XCountryManager countryManager;
public XPaymentSystemsManager() {
}
public XPSQuic... | xsolla/xsolla-sdk-android | xsollasdk/src/main/java/com/xsolla/android/sdk/api/model/psystems/XPaymentSystemsManager.java | Java | apache-2.0 | 1,847 |
package org.apache.camel.standalone.logging;
import org.apache.logging.log4j.core.config.Configuration;
import org.apache.logging.log4j.core.config.ConfigurationFactory;
import org.apache.logging.log4j.core.config.ConfigurationSource;
import org.apache.logging.log4j.core.config.Order;
import org.apache.logging.log4j.c... | Steve973/camel-standalone | src/main/java/org/apache/camel/standalone/logging/StandaloneConfigurationFactory.java | Java | apache-2.0 | 1,324 |
/*******************************************************************************
* Copyright (c) 2013-2014 Cherry Platform
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
* 1.0 (the "Licenses"). You can se... | Sabadios/Cherry | Cherry.Platform/Modules/Cherry.Engine/src/main/java/org/Cherry/Modules/Web/Engine/Context.java | Java | apache-2.0 | 3,211 |
package io.github.tramchamploo.bufferslayer;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static io.github.tramchamploo.bufferslayer.MessageDroppedException.dropped;
import static java.util.Collections.singletonList;
import c... | tramchamploo/buffer-slayer | boundedqueue/src/main/java/io/github/tramchamploo/bufferslayer/AsyncReporter.java | Java | apache-2.0 | 13,680 |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.transformations.impl;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.psi.*;
import com.intellij.psi.impl.light.LightMeth... | leafclick/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/transformations/impl/BindableTransformationSupport.java | Java | apache-2.0 | 4,237 |
package com.sarality.app.view.list;
import android.view.View;
import com.sarality.app.view.BaseViewRenderer;
/**
* Base implementation for ViewHolder pattern based View Renderer
* <p/>
* A ViewHolder is an optimization that keeps reference to elements inside a view. Since row views are reused, keeping
* a refere... | sarality/appblocks | src/main/java/com/sarality/app/view/list/ViewHolderBasedRenderer.java | Java | apache-2.0 | 1,392 |
package com.ajjpj.afoundation.collection.immutable;
import com.ajjpj.afoundation.collection.AEquality;
import com.ajjpj.afoundation.function.AFunction1;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Iterator;
import java.util.Map;
/**
* This is an immutable hash map based on 32-way hash tri... | salyh/a-foundation | a-foundation/src/main/java/com/ajjpj/afoundation/collection/immutable/AHashMap.java | Java | apache-2.0 | 18,735 |
/**
* Verificar a profundidade de níveis de uma árvore
*/
package javaComoProgramar.cap22;
import java.util.Random;
public class Exercicio22_19
{
public static void main(String[] args)
{
Random rnd = new Random();
Tree<Integer> t = new Tree<Integer>();
System.out.println("Numeros gerados:")... | wesleyegberto/study | ExerciciosLivros/src/javaComoProgramar/cap22/Exercicio22_19.java | Java | apache-2.0 | 582 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.com.portal.education.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Ge... | llsilvacarlos/acess-education | src/main/java/br/com/portal/education/entity/Address.java | Java | apache-2.0 | 1,985 |
/*
* Copyright 2013-2016 Netherlands Forensic 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 obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | ccreeten/metal | core/src/test/java/io/parsingdata/metal/SubStructTableTest.java | Java | apache-2.0 | 4,621 |
// Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.intellij.sdk.module;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWizard.ModuleWizardStep;
i... | JetBrains/intellij-sdk-docs | code_samples/module/src/main/java/org/intellij/sdk/module/DemoModuleBuilder.java | Java | apache-2.0 | 969 |
package me.imli.newme.rx;
import android.support.v4.widget.SwipeRefreshLayout;
import rx.Observable;
/**
* Created by Em on 2015/11/27.
*/
public class RxNetworking {
public static <T> Observable.Transformer<T, T> bindRefreshing(SwipeRefreshLayout indicator) {
return observable -> observable
... | iQuick/NewsMe | app/src/main/java/me/imli/newme/rx/RxNetworking.java | Java | apache-2.0 | 589 |
/*
* Copyright 2017 Hex <hex@hex.lc>
* and other copyright owners as documented in the project's IP log.
*
* 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/... | BasinMC/Basin | faucet/src/main/java/org/basinmc/faucet/command/annotation/Option.java | Java | apache-2.0 | 3,716 |
/**
* Copyright (C) 2006-2013 phloc systems
* http://www.phloc.com
* office[at]phloc[dot]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/license... | lsimons/phloc-schematron-standalone | phloc-commons/src/main/java/com/phloc/commons/io/streams/StreamUtils.java | Java | apache-2.0 | 71,060 |
package inaetics;
import org.apache.felix.dm.annotation.api.Destroy;
import org.apache.felix.dm.annotation.api.Init;
import org.apache.felix.dm.annotation.api.Start;
import org.apache.felix.dm.annotation.api.Stop;
import inaetics.subscriber.DemoSubscriber;
import org.apache.felix.dm.tracker.ServiceTracker;
imp... | INAETICS/Drones-Simulator | drone.simulator.pubsubtest/src/main/java/inaetics/DemoPublisher.java | Java | apache-2.0 | 3,453 |