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.jsapar.bean;
import org.jsapar.error.BeanException;
import org.jsapar.error.JSaParException;
import org.jsapar.parse.bean.BeanPropertyMap;
import org.jsapar.schema.SchemaException;
import org.jsapar.schema.Xml2SchemaBuilder;
import org.jsapar.utils.XmlTypes;
import org.w3c.dom.Element;
import org.xml.sax.S... | org-tigris-jsapar/jsapar | src/main/java/org/jsapar/bean/Xml2BeanMapBuilder.java | Java | apache-2.0 | 5,257 |
/*
* Java Base64 - A pure Java library for reading and writing Base64
* encoded streams.
*
* Copyright (C) 2007-2009 Carlo Pelliccia (www.sauronsoftware.it)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License versi... | dodan200/SimplePrograme | common/src/main/java/com/simple/common/security/Base64.java | Java | apache-2.0 | 13,136 |
package me.iwf.photopicker;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import java.util.ArrayList;
import me.iwf.photopicker.utils.PermissionsUtils;
/**
* Created by Donglua on 16/6/25.
* Builder c... | xiaolongwuhpu/pictureCompress | PhotoPicker/src/main/java/me/iwf/photopicker/PhotoPicker.java | Java | apache-2.0 | 4,428 |
package com.siondream.ld26;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Actor;
import aurelienribon.tweenengine.TweenAccessor;
public class ActorTweener implements TweenAccessor<Actor>{
public static final int Position = 1;
public static final int Scale = 2;
public static fin... | saltares/ludumdare-26 | ludum-dare/src/com/siondream/ld26/ActorTweener.java | Java | apache-2.0 | 1,522 |
package edu.xiyou.andrew.egg.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by andrew on 16-1-25.
*/
@Controller
public class ErrorPageCotroller {
@RequestMapping("/401")
public String pageError401(){
return... | wangduoxiong/Egg | egg-views/src/main/java/edu/xiyou/andrew/egg/controller/ErrorPageCotroller.java | Java | apache-2.0 | 517 |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.studio.jc.common.persistence.proxy;
import org.apache.ibatis.binding.BindingException;
import org.apache.ibatis.binding.MapperRegistry;
import org.apache.ibatis.session.Configuration;
import... | CHENJUNCHENG123/chenjuncheng | src/main/java/com/studio/jc/common/persistence/proxy/PaginationMapperRegistry.java | Java | apache-2.0 | 1,074 |
package com.airbnb.lottie;
/**
* Receive a result with either the value or exception for a {@link LottieTask}
*/
public interface LottieListener<T> {
void onResult(T result);
}
| airbnb/lottie-android | lottie/src/main/java/com/airbnb/lottie/LottieListener.java | Java | apache-2.0 | 182 |
package ru.job4j.h7testtask.t1yandex;
import java.util.List;
import java.util.ArrayList;
/**
* A container for storing a collection of Events.
*/
public class EventContainer {
/**
* A list inside the container.
*/
private List<Event> events;
/**
* The constructor.
*/
public Even... | Ravmouse/vvasilyev | chapter_005/src/main/java/ru/job4j/h7testtask/t1yandex/EventContainer.java | Java | apache-2.0 | 6,822 |
/*
* Copyright 2021 APPNEXUS 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... | appnexus/mobile-sdk-android | sdk/src/com/appnexus/opensdk/ScreenEventReceiver.java | Java | apache-2.0 | 4,602 |
package ru.job4j.loop;
/**
* class Counter made sum of even numbers.
*
* @author Evgeniy Ulanov (komrad1812@yandex.ru)
* @version $Id$
* @since 0.1
*/
public class Counter {
/**
* metod add rturn sum of even numbers.
* @param start - start number.
* @param finish - finish number.
* @return sum.
*/
... | EvgeniyUlanov/eulanov | chapter_001/src/main/java/ru/job4j/loop/Counter.java | Java | apache-2.0 | 483 |
/*
* 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 co.edu.sena.mavenproject3;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import ja... | SENA-CEET/1349397-Trimestre-4 | java/JSF/mavenproject3/src/main/java/co/edu/sena/mavenproject3/Jornada.java | Java | apache-2.0 | 4,017 |
package io.quarkus.cli.common;
import picocli.CommandLine;
public class HelpOption {
@CommandLine.Option(names = { "-h", "--help" }, usageHelp = true, description = "Display this help message.")
public boolean help;
}
| quarkusio/quarkus | devtools/cli/src/main/java/io/quarkus/cli/common/HelpOption.java | Java | apache-2.0 | 228 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/enums/gender_type.proto
package com.google.ads.googleads.v9.enums;
/**
* <pre>
* Container for enum describing the type of demographic genders.
* </pre>
*
* Protobuf type {@code google.ads.googleads.v9.enums.GenderType... | googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/enums/GenderTypeEnum.java | Java | apache-2.0 | 19,929 |
package forms;
import dao.UserDAO;
import play.data.validation.ValidationError;
import java.util.ArrayList;
import java.util.List;
/**
* @author fabiomazzone
*/
public class SignUp {
private String email;
private String username;
private String password;
public List<ValidationError> validate() ... | ifis-tu-bs/sqlalchemist | back-end/app/forms/SignUp.java | Java | apache-2.0 | 2,042 |
/*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | fbonzon/graphhopper | core/src/main/java/com/graphhopper/routing/ch/NodeContractor.java | Java | apache-2.0 | 18,526 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-secretsmanager/src/main/java/com/amazonaws/services/secretsmanager/model/transform/GetRandomPasswordRequestMarshaller.java | Java | apache-2.0 | 4,510 |
package fr.sii.ogham.core.mimetype;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.spi.FileTypeDetector;
import javax.activation.MimeType;
import javax.activation.MimeTypeParseException;
import org.slf4j.Logger;
import org.slf4j.LoggerFac... | groupe-sii/ogham | ogham-core/src/main/java/fr/sii/ogham/core/mimetype/JavaFilesProvider.java | Java | apache-2.0 | 1,971 |
/**
* Apache Licence Version 2.0
* Please read the LICENCE file
*/
package org.hypothesis.data.service;
import org.apache.log4j.Logger;
import org.hypothesis.data.interfaces.PackService;
import org.hypothesis.data.model.Pack;
import javax.enterprise.inject.Default;
/**
* @author Kamil Morong, Tilioteo Ltd
*
*... | tilioteo/hypothesis | backend/data-service/src/main/java/org/hypothesis/data/service/PackServiceImpl.java | Java | apache-2.0 | 1,114 |
package funcatron.abstractions;
import funcatron.helpers.Tuple2;
import java.io.Closeable;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
/**
* An abstraction for message brokers. What does a message broker need to
* do?
*/
public interface MessageBrok... | funcatron/funcatron | tron/src/java/funcatron/abstractions/MessageBroker.java | Java | apache-2.0 | 3,525 |
package com.noblenetwork.drwcollegeprep.cvapp;
import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;
impo... | rwoodley/Team10182 | archive/2015-16/ComputerVision/CVApp01/app/src/main/java/com/noblenetwork/drwcollegeprep/cvapp/MainActivity.java | Java | apache-2.0 | 5,560 |
/*
* 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 ... | HuaweiBigData/carbondata | processing/src/main/java/org/apache/carbondata/processing/loading/converter/impl/NonDictionaryFieldConverterImpl.java | Java | apache-2.0 | 3,699 |
package pineapple.bd.com.pineapple.presenter;
import pineapple.bd.com.pineapple.iview.IView;
/**
* Description : <Content><br>
* CreateTime : 2016/5/12 17:50
*
* @author KevinLiu
* @version <v1.0>
* @Editor : KevinLiu
* @ModifyTime : 2016/5/12 17:50
* @ModifyDescription : <Content>
*/
public class Presenter ... | DroidKOF/pineapple | pineapple/app/src/main/java/pineapple/bd/com/pineapple/presenter/Presenter.java | Java | apache-2.0 | 582 |
package com.mcms.study.spring.batch.job.simple;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.scope.context.ChunkContext;
import org.springframework.batch.core.step.tasklet.Tasklet;
import o... | mcmoulis/spring_study | spring-batch/spring-batch-simple/src/main/java/com/mcms/study/spring/batch/job/simple/SimpleTasklet.java | Java | apache-2.0 | 1,118 |
package com.etiennelawlor.imagegallery.library.adapters;
import android.content.Context;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.etiennelawl... | lawloretienne/ImageGallery | library/src/main/java/com/etiennelawlor/imagegallery/library/adapters/FullScreenImageGalleryAdapter.java | Java | apache-2.0 | 2,330 |
/*
* 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 ... | rdblue/incubator-nifi | nar-bundles/framework-bundle/framework/cluster-protocol/src/test/java/org/apache/nifi/cluster/protocol/impl/ClusterServicesBroadcasterTest.java | Java | apache-2.0 | 4,728 |
package com.github.ruediste.salta.standard.recipe;
import com.github.ruediste.salta.core.compile.FunctionRecipe;
import com.github.ruediste.salta.standard.config.DefaultConstructionRule;
/**
* {@link FunctionRecipe} used by the {@link DefaultConstructionRule} to inject
* members of an instance created with a {@link... | ruediste/salta | core/src/main/java/com/github/ruediste/salta/standard/recipe/RecipeMembersInjector.java | Java | apache-2.0 | 413 |
/*
* Copyright 2002-2019 Barcelona Supercomputing Center (www.bsc.es)
*
* 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... | mF2C/COMPSs | compss/runtime/resources/commons/src/main/java/es/bsc/compss/types/resources/Worker.java | Java | apache-2.0 | 21,794 |
package ru.nivanov;
/**
* Created by Nikolay Ivanov on 17.02.2017.
*/
public interface IO {
/**
* Read method.
* @return ..
*/
String read();
/**
* Print method.
* @param value ..
*/
void println(Object value);
}
| Piterski72/Java-a-to-z | chapter_004/SRP/src/main/java/ru/nivanov/IO.java | Java | apache-2.0 | 264 |
/**
* @File : AllMenu.java
* @Description :
*
*
* @author : WaTer
* @Date : 2016年8月11日
* @Version : V1.0
*/
package com.water9527.mp4j.modules.menu;
import java.util.List;
public class AllMenu {
private List<Menu> menu;
public List<Menu> getMenu() {
return menu;
}
public void setMenu(List<Menu> men... | WaTer9527/wechat-mp4j | src/main/java/com/water9527/mp4j/modules/menu/AllMenu.java | Java | apache-2.0 | 358 |
/*
* 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... | fabiofumarola/elasticsearch | src/main/java/org/elasticsearch/search/aggregations/metrics/cardinality/InternalCardinality.java | Java | apache-2.0 | 4,581 |
/*
* 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 ufo.vertx2.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Componen... | ufoscout/java-sample-projects | vertx2-spring4/src/main/java/ufo/vertx2/config/SpringConfig.java | Java | apache-2.0 | 1,117 |
package org.apache.lucene.search;
/**
* 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, Vers... | tokee/lucene | src/java/org/apache/lucene/search/FieldValueHitQueue.java | Java | apache-2.0 | 6,937 |
/**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
package com.ubergeek42.WeechatAndroid.utils;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Non... | jspricke/weechat-android | weechat-android/src/main/java/com/ubergeek42/WeechatAndroid/utils/UntrustedCertificateDialog.java | Java | apache-2.0 | 3,511 |
package com.squid.kraken.v4.model;
import com.fasterxml.jackson.annotation.JsonTypeName;
@JsonTypeName("DBMS")
@SuppressWarnings("serial")
public class DBMSCredentials extends DefaultCredentials implements Credentials {
private String login;
private String password;
public DBMSCredentials() {
super();
}
pub... | jtheulier/bouquet-java-sdk | src/main/java/com/squid/kraken/v4/model/DBMSCredentials.java | Java | apache-2.0 | 1,412 |
/*
* 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")... | maheshika/wso2-synapse | modules/core/src/main/java/org/apache/synapse/mediators/builtin/PropertyMediator.java | Java | apache-2.0 | 16,651 |
package org.ihtsdo.otf.security;
import java.util.Properties;
import org.ihtsdo.otf.security.dto.OtfAccount;
import org.ihtsdo.otf.security.dto.OtfApplication;
import org.ihtsdo.otf.security.dto.OtfDirectory;
import org.ihtsdo.otf.security.dto.OtfGroup;
import org.ihtsdo.otf.security.dto.UserSecurity;
public interfa... | IHTSDO/OTF-User-Module | security/src/main/java/org/ihtsdo/otf/security/UserSecurityHandler.java | Java | apache-2.0 | 2,036 |
package com.neeve.oms.sr;
import com.neeve.util.UtlPool;
import com.neeve.oms.state.Order;
final class OrderPool {
final private static class PoolItem implements UtlPool.Item<PoolItem> {
final Order order;
private UtlPool<PoolItem> pool;
public PoolItem(Order order) {
... | neeveresearch/nvx-apps | nvx-app-oms/src/main/java/com/neeve/oms/sr/OrderPool.java | Java | apache-2.0 | 1,748 |
package com.zeroseven.atomscript;
import static java.awt.event.KeyEvent.*;
import java.awt.AWTException;
import java.awt.Robot;
public class ASKeyboard {
private Robot robot;
public ASKeyboard() throws AWTException {
this.robot = new Robot();
}
public ASKeyboard(Robot robot) {
this... | arjay07/AtomScript | Desktop/src/AtomScript/src/com/zeroseven/atomscript/ASKeyboard.java | Java | apache-2.0 | 5,571 |
/**
* Copyright (C) 2009 GIP RECIA http://www.recia.fr
* @Author (C) 2009 GIP RECIA <contact@recia.fr>
* @Contributor (C) 2009 SOPRA http://www.sopragroup.com/
* @Contributor (C) 2011 Pierre Legay <pierre.legay@recia.fr>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | GIP-RECIA/esco-grouper-ui | ext/esup-commons/src/main/java/org/esupportail/commons/services/smtp/SmtpServer.java | Java | apache-2.0 | 4,170 |
/*
* Copyright 2014-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... | griffon-plugins/griffon-glazedlists-plugin | subprojects/griffon-glazedlists-core/src/main/java/griffon/plugins/glazedlists/ColumnWriter.java | Java | apache-2.0 | 1,516 |
package example.service;
import example.repo.Customer1215Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1215Service {
public Customer1215Service(Customer1215Repository repo) {}
}
| spring-projects/spring-data-examples | jpa/deferred/src/main/java/example/service/Customer1215Service.java | Java | apache-2.0 | 225 |
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Yo... | babble/babble | src/main/ed/ext/org/mozilla/javascript/RhinoException.java | Java | apache-2.0 | 9,465 |
/*
* 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 ... | kidaa/any23 | core/src/test/java/org/apache/any23/filter/ExtractionContextBlockerTest.java | Java | apache-2.0 | 2,570 |
package com.anilallewar.microservices.user.config.security;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSe... | anilallewar/microservices-basics-spring-boot | user-webservice/src/main/java/com/anilallewar/microservices/user/config/security/WebSecurityConfiguration.java | Java | apache-2.0 | 1,262 |
/*
* TestThread.java
*/
package de.christofreichardt.diagnosis;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
/**
* This Runnable will be used within several test cases to demonstrate the tracing behaviour when multiple threads are using the same tracer.
... | chr78rm/tracelogger | src/test/java/de/christofreichardt/diagnosis/TestRunnable.java | Java | apache-2.0 | 1,719 |
package cn.cerc.mis.queue;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.Session;
import javax.jms.TextMessage;
import cn.cerc.core.TDateTime;
public class QueueConnectionTest {
public static ... | cn-cerc/summer-mis | src/test/java/cn/cerc/mis/queue/QueueConnectionTest.java | Java | apache-2.0 | 2,993 |
package com.appolica.sample.ui.editor.pager;
import androidx.fragment.app.Fragment;
import com.appolica.sample.R;
import com.appolica.sample.ui.editor.pager.animations.AnimationsFragment;
import com.appolica.sample.ui.editor.pager.interpolators.InterpolatorsFragment;
import com.appolica.sample.ui.editor.pager.setting... | Appolica/Flubber | Flubber/demo/src/main/java/com/appolica/sample/ui/editor/pager/EditorFragmentType.java | Java | apache-2.0 | 1,351 |
package com.dreamliner.rvhelper.adapter;
import androidx.recyclerview.widget.RecyclerView;
import com.dreamliner.rvhelper.interfaces.ItemClickListener;
import com.dreamliner.rvhelper.interfaces.ItemLongListener;
import com.dreamliner.rvhelper.viewholder.BaseViewHolder;
import com.dreamliner.rvhelper.viewholder.Footer... | chenzj-king/RvHelper | library/src/main/java/com/dreamliner/rvhelper/adapter/BaseAdapter.java | Java | apache-2.0 | 1,313 |
package com.abilists.core.service.works.impl;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.abilists.bean.para.memo.SltMemoPara;
import com.abilists.core.service.AbstractServiceTest;
import com.abilists.core.service.works.TasksService;
public class TasksServiceImplT... | minziappa/abilists_core | src/test/java/com/abilists/core/service/works/impl/TasksServiceImplTest.java | Java | apache-2.0 | 842 |
package ${package}.login;
import java.util.Set;
import com.google.web.bindery.requestfactory.shared.ProxyForName;
import com.google.web.bindery.requestfactory.shared.ValueProxy;
@ProxyForName("${package}.login.AuthorityResponse")
public interface AuthorityResponseProxy extends ValueProxy {
public Set<Strin... | kerongbaby/risetek.archetypes | empty-frame-shiro/src/main/resources/archetype-resources/shared/src/main/java/login/AuthorityResponseProxy.java | Java | apache-2.0 | 423 |
/*
* 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 ... | apache/sling | src/main/java/org/apache/sling/engine/impl/parameters/ParameterMap.java | Java | apache-2.0 | 4,588 |
//============================================================================
//
// Copyright (C) 2006-2022 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receive... | Talend/components | components/components-marketo/components-marketo-definition/src/main/java/org/talend/components/marketo/tmarketooutput/TMarketoOutputDefinition.java | Java | apache-2.0 | 2,959 |
/* ====================================================================
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/ooxml/java/org/apache/poi/openxml4j/exceptions/InvalidFormatException.java | Java | apache-2.0 | 1,257 |
/*
* Copyright (c) 2009-2010 Clark & Parsia, LLC. <http://www.clarkparsia.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 ... | anandgsal/Empire | jena/main/src/com/clarkparsia/empire/jena/util/JenaSesameUtils.java | Java | apache-2.0 | 8,092 |
package ru.job4j.array;
/**
* Класс для переворачивания массива.
* @author Bulat Yusupov
* @since 14/10/2017
* @version 0.1
*/
public class Turn {
/**
* @param array массив.
* @return back array
*/
public int[] back(int[] array) {
for (int i = 0; i < array.length / 2; i++) {
... | yusupovbulat/byusupov | chapter_001/src/main/java/ru/job4j/array/Turn.java | Java | apache-2.0 | 526 |
/*
* Copyright (C) 2013 47 Degrees, LLC
* http://47deg.com
* hello@47deg.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
*
* ... | k525245669/coolweather | app/src/main/java/com/fortysevendeg/swipelistview/SwipeListView.java | Java | apache-2.0 | 21,119 |
/*
* Copyright (C) 2008 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 appli... | prive/prive-android | src/info/guardianproject/otr/app/im/app/WelcomeActivity.java | Java | apache-2.0 | 18,431 |
/*
* Alix, A Lucene Indexer for XML documents.
*
* Copyright 2009 Pierre Dittgen <pierre@dittgen.org>
* Frédéric Glorieux <frederic.glorieux@fictif.org>
* Copyright 2016 Frédéric Glorieux <frederic.glorieux@fictif.org>
*
* Alix is a java library to index and search XML text documents
* with Luc... | oeuvres/Alix | java/alix/lucene/util/BinaryInts.java | Java | apache-2.0 | 3,510 |
package com.mendeley.sdk.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
public class NullableList<T> implements List<T>, Nullable {
private final List<T> delegate;
private final boolean isNull;
public Nulla... | Mendeley/mendeley-android-sdk | library/src/main/java/com/mendeley/sdk/util/NullableList.java | Java | apache-2.0 | 14,668 |
/**
* Copyright 2004-2014 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 requ... | kuali/kpme | core/impl/src/main/java/org/kuali/kpme/core/principal/dao/PrincipalHRAttributesDaoOjbImpl.java | Java | apache-2.0 | 21,456 |
package com.mvplzl.contacts.functions;
import com.mvplzl.contacts.MainActivity;
import com.mvplzl.contacts.Man;
import com.mvplzl.contacts.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
pub... | mvplzl/easycontacts | src/com/mvplzl/contacts/functions/Add.java | Java | apache-2.0 | 2,060 |
/**
* Package for maximum.
*
* @author Evgeniy Vinnitskiy (mailto:report-2k8@yandex.ru)
* @version $1.0$
* @since 29.04.2017
*/
package ru.job4j.max; | EvgeniyVinnitskiy/evinnitskiy | chapter_001/src/main/java/ru/job4j/max/package-info.java | Java | apache-2.0 | 149 |
/*
* Copyright 2017 The Retrier 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 a... | ravichaturvedi/retrier | src/main/java/io/github/ravichaturvedi/retrier/Tracer.java | Java | apache-2.0 | 935 |
/*
* Copyright (C) 2016 Oleg Kan
*
* 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... | simplaapliko/Trips | app/src/main/java/com/simplaapliko/trips/di/component/LabelComponent.java | Java | apache-2.0 | 988 |
/*
* Copyright 2011-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | lettuce-io/lettuce-core | src/test/java/io/lettuce/core/support/ConnectionPoolSupportIntegrationTests.java | Java | apache-2.0 | 16,056 |
package io.crnk.core.engine.parser;
import io.crnk.core.engine.internal.utils.ExceptionUtil;
import java.lang.reflect.Constructor;
import java.util.concurrent.Callable;
public class ConstructorBasedParser<T> implements StringParser<T> {
private final Constructor constructor;
public ConstructorBasedParser(Constru... | crnk-project/crnk-framework | crnk-core/src/main/java/io/crnk/core/engine/parser/ConstructorBasedParser.java | Java | apache-2.0 | 602 |
package com.thinkgem.jeesite.mina;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.mina.core.session.IoSession;
import javax.mail.Session;
/**
* @author whl
* @Description: 单例工具类,保存所有mina客户端连接
* @date 2014-9-2... | 11653786/jeesite | src/main/java/com/thinkgem/jeesite/mina/SessionMap.java | Java | apache-2.0 | 3,089 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-ecrpublic/src/main/java/com/amazonaws/services/ecrpublic/model/SetRepositoryPolicyResult.java | Java | apache-2.0 | 7,067 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/DeleteBotChannelAssociationRequest.java | Java | apache-2.0 | 6,970 |
/* ###
* 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/Debugger-agent-dbgmodel/src/main/java/agent/dbgmodel/impl/dbgmodel/debughost/DebugHostBaseClassImpl.java | Java | apache-2.0 | 4,172 |
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.ui.toolkit.api.attribute;
/**
* This interface gives read access to the selected {@link #getSelectedValue() value} of an object.
*
* @param <V> is the templated type o... | m-m-m/multimedia | mmm-uit/mmm-uit-api/src/main/java/net/sf/mmm/ui/toolkit/api/attribute/AttributeWriteSelectionValue.java | Java | apache-2.0 | 763 |
package com.github.shadow.processing.processors;
import android.media.MediaRecorder;
import com.github.shadow.processing.AudioProcessor;
import java.io.IOException;
public class AudioSimpleMediaRecorder implements AudioProcessor {
private MediaRecorder recorder;
private int maxAmplitude;
public void ... | 452/shadow | src/com/github/shadow/processing/processors/AudioSimpleMediaRecorder.java | Java | apache-2.0 | 1,406 |
/*
* Anarres C Preprocessor
* Copyright (c) 2007-2015, Shevek
*
* 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 ... | shevek/jcpp | src/main/java/org/anarres/cpp/ChrootFileSystem.java | Java | apache-2.0 | 2,144 |
package com.javareview.common;
import java.io.*;
/**
* Created by lcyanxi on 2017/7/22.
*/
public class SerializableReview implements Serializable {
/**
* transient用于对象序列化 volatile用于线程同步
* transient是类型修饰符,只能修饰字段,在对象序列化过程中,标记为transient的变量不会被序列化
*
* volatile也是类型修饰符,只能修饰变量,volatile修饰的成员变量在每次被... | lcyanxi/JavaReview | javareview/src/main/java/com/javareview/common/SerializableReview.java | Java | apache-2.0 | 2,423 |
package com.github.joschi.nosqlunit.elasticsearch2.integration;
import com.github.joschi.nosqlunit.elasticsearch2.ElasticsearchOperation;
import com.github.joschi.nosqlunit.elasticsearch2.EmbeddedElasticsearch;
import com.github.joschi.nosqlunit.elasticsearch2.EmbeddedElasticsearchInstancesFactory;
import org.elastics... | joschi/nosqlunit-elasticsearch2 | src/test/java/com/github/joschi/nosqlunit/elasticsearch2/integration/WhenEmbeddedElasticsearchOperationsAreRequired.java | Java | apache-2.0 | 4,407 |
// Copyright 2015 The Bazel Authors. 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 appl... | ulfjack/bazel | src/test/java/com/google/devtools/build/lib/analysis/constraints/ConstraintsTest.java | Java | apache-2.0 | 56,966 |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | android-art-intel/marshmallow | art-extension/test/461-get-reference-vreg/src/Main.java | Java | apache-2.0 | 1,596 |
package com.example.android.materialdesigncodelab;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.graphics.drawable.VectorDrawableCompat;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import... | sloiza/changApp | app/src/main/java/com/example/android/materialdesigncodelab/ChangasPorCategoriaActivity.java | Java | apache-2.0 | 3,735 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.09.... | digital-antiquity/repo-metadata | src/main/java/org/purl/dc/terms/Period.java | Java | apache-2.0 | 1,072 |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202105/DateTimeRangeTargetingError.java | Java | apache-2.0 | 2,445 |
/*
* Copyright (c) 2017 Snow Volf (Artem Zhiganov).
* 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... | SnowVolf/FF-Translator | app/src/main/java/ru/SnowVolf/translate/clipboard/ClipboardWatcherService.java | Java | apache-2.0 | 6,673 |
/*
* Copyright 2017-2019 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... | dturanski/spring-cloud-data | spring-cloud-dataflow-core/src/test/java/org/springframework/cloud/dataflow/core/dsl/TaskParserTests.java | Java | apache-2.0 | 64,951 |
/*
* Copyright 2012 - 2016 Manuel Laggner
*
* 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 ... | tinyMediaManager/api-scraper | src/main/java/org/tinymediamanager/scraper/mediaprovider/IMovieMetadataProvider.java | Java | apache-2.0 | 1,628 |
package com.cedarsoftware.util;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
im... | jdereg/java-util | src/test/java/com/cedarsoftware/util/TestUrlInvocationHandlerWithPlainReader.java | Java | apache-2.0 | 10,590 |
/*
* 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 ... | yafengguo/Apache-beam | runners/flink/runner/src/main/java/org/apache/beam/runners/flink/FlinkRunner.java | Java | apache-2.0 | 22,811 |
package com.sequenceiq.cloudbreak.cmtemplate.generator.dependencies.domain;
import java.util.HashSet;
import java.util.Set;
public class Dependencies {
private Set<String> services = new HashSet<>();
public Set<String> getServices() {
return services;
}
public void setServices(Set<String> s... | hortonworks/cloudbreak | template-manager-cmtemplate/src/main/java/com/sequenceiq/cloudbreak/cmtemplate/generator/dependencies/domain/Dependencies.java | Java | apache-2.0 | 373 |
package org.apache.optima.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class IndexController {
@RequestMapping("/")
public String index() {
return "index";
}
} | haozou/optima | optima-web/src/main/java/org/apache/optima/web/IndexController.java | Java | apache-2.0 | 273 |
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.OrgaUserRel;
import com.jsh.erp.datasource.entities.OrgaUserRelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OrgaUserRelMapper {
/**
* This method was generated by MyBatis Generator.
... | jishenghua/JSH_ERP | jshERP-boot/src/main/java/com/jsh/erp/datasource/mappers/OrgaUserRelMapper.java | Java | apache-2.0 | 2,803 |
/*
* Copyright (c) 2013 ITOCHU Techno-Solutions Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | ctc-g/sinavi-jfw | validation/jfw-validation-core/src/main/java/jp/co/ctc_g/jse/core/validation/constraints/feature/greaterthan/GreaterThanValidator.java | Java | apache-2.0 | 4,465 |
package sagex.miniclient.web;
import org.eclipse.jetty.websocket.api.*;
import org.eclipse.jetty.websocket.api.annotations.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sagex.miniclient.MiniClient;
import sagex.miniclient.ServerInfo;
import sagex.miniclient.desktop.DesktopClientRenderer;
import sa... | OpenSageTV/sagetv-miniclient | desktop/app/src/main/java/sagex/miniclient/web/UIWebSocket.java | Java | apache-2.0 | 4,546 |
/*
* Copyright 2013-2021 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... | cloudfoundry/cf-java-client | cloudfoundry-client/src/main/java/org/cloudfoundry/client/v2/spaces/_ListSpaceServiceInstancesResponse.java | Java | apache-2.0 | 1,138 |
/**
* <ul>
* <li>OkioDecoratorSample</li>
* <li>com.android2ee.formation.lib.squarelibs.tool</li>
* <li>27/01/2016</li>
* <p/>
* <li>======================================================</li>
* <p/>
* <li>Projet : Mathias Seguy Project</li>
* <li>Produit par MSE.</li>
* <p/>
* /**
* <ul>
* Android Tutoria... | MathiasSeguy-Android2EE/Square | okhttp/src/main/java/com/android2ee/formation/lib/squarelibs/tool/SinkDecoratorSample.java | Java | apache-2.0 | 3,547 |
package org.togglz.slack.config;
import org.togglz.core.repository.FeatureState;
import org.togglz.slack.notification.NotificationComposer;
import java.util.Arrays;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import static org.togglz.core.util.MoreObjects.firstNonNull;
import st... | hexmind/togglz | slack/src/main/java/org/togglz/slack/config/NotificationConfiguration.java | Java | apache-2.0 | 3,689 |
/*
* Copyright (c) 2008-2016, Hazelcast, 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 ... | lmjacksoniii/hazelcast | hazelcast/src/main/java/com/hazelcast/security/SecurityContext.java | Java | apache-2.0 | 3,536 |
/*
* 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-glue/src/main/java/com/amazonaws/services/glue/model/transform/GetSecurityConfigurationResultJsonUnmarshaller.java | Java | apache-2.0 | 2,976 |
/**
* Copyright 2015 Austin Keener & Michael Ritter
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | Almighty-Alpaca/JDA | src/main/java/net/dv8tion/jda/entities/impl/RoleImpl.java | Java | apache-2.0 | 3,059 |
/**
* The CD class represents a CD object. Information about the
* CD is stored and can be retrieved.
*
* @author Michael Kolling and David J. Barnes
* @version 2008.03.30
*/
public class CD extends Item
{
private String artist;
private int numberOfTracks;
/**
* Initialize the CD.
* @para... | phantommelon/IP-Practical-19-01-15 | dome-v3/CD.java | Java | apache-2.0 | 1,199 |
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2012 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | gmaran23/zaproxy | zap/src/main/java/org/zaproxy/zap/extension/httppanel/view/syntaxhighlight/components/split/request/HttpRequestBodyPanelSyntaxHighlightTextView.java | Java | apache-2.0 | 13,720 |
/*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | thomas-bay/StereoControl | Application/tests/src/com/tbay/android/StereoControl/tests/SampleTests.java | Java | apache-2.0 | 2,342 |
/*
* 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 ... | SomeFire/ignite | modules/core/src/main/java/org/apache/ignite/internal/processors/igfs/meta/IgfsMetaUpdatePropertiesProcessor.java | Java | apache-2.0 | 4,087 |