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.adaptris.util.text.mime;
import static com.adaptris.util.text.mime.MimeConstants.HEADER_CONTENT_ENCODING;
import static org.apache.commons.lang3.StringUtils.isBlank;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import javax.mail.MessagingException;
import j... | adaptris/interlok | interlok-core/src/main/java/com/adaptris/util/text/mime/MimeUtils.java | Java | apache-2.0 | 855 |
/*
* #%L
* wcm.io
* %%
* Copyright (C) 2019 wcm.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | cnagel/wcm-io-handler | media/src/test/java/io/wcm/handler/mediasource/dam/impl/DamAutoCroppingTest.java | Java | apache-2.0 | 2,026 |
package com.indoqa.daisy.cocoon.controller;
import org.apache.cocoon.rest.controller.annotation.SitemapParameter;
import org.apache.cocoon.rest.controller.response.RestResponse;
import org.apache.cocoon.rest.controller.response.URLResponse;
public class DocumentPartByPathController extends AbstractDocumentController ... | reinhard/daisy-integration | daisy-cocoon/src/main/java/com/indoqa/daisy/cocoon/controller/DocumentPartByPathController.java | Java | apache-2.0 | 557 |
package whelk.gui;
import whelk.PortableScript;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
public class SelectScriptPanel extends W... | libris/librisxl | gui-whelktool/src/main/java/whelk/gui/SelectScriptPanel.java | Java | apache-2.0 | 2,204 |
/**
* Copyright (C) 2013 metrics-statsd contributors
*
* 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... | researchgate/metrics-statsd | metrics3-statsd/src/main/java/com/readytalk/metrics/StatsDReporter.java | Java | apache-2.0 | 11,572 |
/*
* 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 ... | abhishekshivanna/samza | samza-core/src/main/java/org/apache/samza/coordinator/metadatastore/CoordinatorStreamStore.java | Java | apache-2.0 | 11,941 |
/*
* 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-alexaforbusiness/src/main/java/com/amazonaws/services/alexaforbusiness/model/transform/GetNetworkProfileRequestMarshaller.java | Java | apache-2.0 | 2,087 |
package org.gradle.test.performance.mediummonolithicjavaproject.p282;
public class Production5650 {
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/p282/Production5650.java | Java | apache-2.0 | 1,891 |
package com.gaojice.diskviewer.processor;
import java.io.File;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import com.gaojice.diskviewer.dao.DiskFileDao;
import com.gaojice.diskviewer.entity.DiskFile;
public class FileProcessor implements Runnable {
private DiskFileDao diskFileDao;
pr... | gaojice/diskviewer | src/main/java/com/gaojice/diskviewer/processor/FileProcessor.java | Java | apache-2.0 | 1,628 |
/**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unle... | tkao1000/pinot | pinot-common/src/main/java/com/linkedin/pinot/common/config/TableCustomConfig.java | Java | apache-2.0 | 2,332 |
/* 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... | motorina0/flowable-engine | modules/flowable-ui-idm/flowable-ui-idm-conf/src/main/java/org/flowable/app/servlet/ApiDispatcherServletConfiguration.java | Java | apache-2.0 | 2,846 |
package com.vaguehope.onosendai.payload;
import android.content.Context;
import android.content.Intent;
import com.vaguehope.onosendai.config.Account;
import com.vaguehope.onosendai.model.Meta;
import com.vaguehope.onosendai.model.MetaType;
import com.vaguehope.onosendai.model.Tweet;
import com.vaguehope.onosendai.ui... | haku/Onosendai | src/main/java/com/vaguehope/onosendai/payload/AddCommentPayload.java | Java | apache-2.0 | 1,811 |
/*******************************************************************************
* PathVisio, a tool for data visualization and analysis using biological pathways
* Copyright 2006-2019 BiGCaT Bioinformatics
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in c... | PathVisio/pathvisio | modules/org.pathvisio.core/src/org/pathvisio/core/view/DefaultLinkAnchorDelegate.java | Java | apache-2.0 | 2,844 |
/*
* Copyright 2005-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/ecl1.php
*
* Unless required by... | blackcathacker/kc.preclean | coeus-it/src/test/java/org/kuali/kra/questionnaire/question/QuestionAuthorizationServiceTest.java | Java | apache-2.0 | 2,180 |
package finalWeb.controller;
import org.springframework.stereotype.Controller;
@Controller
public class MainController {
}
| cocainism/Sham | FinalWeb/src/main/java/finalWeb/controller/MainController.java | Java | apache-2.0 | 140 |
/*
* Copyright (c) 2013-2015 Josef Hardi <josef.hardi@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | obidea/semantika | src/main/java/com/obidea/semantika/database/datatype/SqlTypeToXmlType.java | Java | apache-2.0 | 2,978 |
/*
* Copyright (C) 2017 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.system.impl.database.p... | jbb-project/jbb | domain-services/jbb-system/src/main/java/org/jbb/system/impl/database/provider/H2InMemoryManager.java | Java | apache-2.0 | 1,603 |
package com.wearit.shike.web.model.dao.weather;
import java.util.List;
import com.wearit.shike.web.model.weather.TrackWeather;
import com.wearit.shike.web.model.weather.Weather;
public interface WeatherDao {
/**
* Metodo che viene usato per elencare tutti i record appartenenti alla tabella
* Weather.
*
* @r... | ZeitnotSWE/sHike | Codice/Web/src/main/java/com/wearit/shike/web/model/dao/weather/WeatherDao.java | Java | apache-2.0 | 1,519 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | Chasego/kafka | streams/src/test/java/org/apache/kafka/streams/integration/StoreQueryIntegrationTest.java | Java | apache-2.0 | 23,416 |
/*
Copyright 2014-2016 Intel 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 by applicable law or agreed to in writing, s... | multi-os-engine/moe-core | moe.apple/moe.platform.ios/src/main/java/apple/safariservices/SFContentBlockerManager.java | Java | apache-2.0 | 6,153 |
// 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/v202108/ThirdPartyMeasurementSettings.java | Java | apache-2.0 | 13,628 |
package it.unimi.di.law.bubing.sieve;
/*
* Copyright (C) 2010-2017 Paolo Boldi, Massimo Santini, and Sebastiano Vigna
*
* 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://ww... | LAW-Unimi/BUbiNG | src/it/unimi/di/law/bubing/sieve/IdentitySieve.java | Java | apache-2.0 | 2,029 |
/*
* 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-elasticbeanstalk/src/main/java/com/amazonaws/services/elasticbeanstalk/model/DisassociateEnvironmentOperationsRoleRequest.java | Java | apache-2.0 | 4,243 |
/*
* 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-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/transform/DocumentDescriptionJsonUnmarshaller.java | Java | apache-2.0 | 10,561 |
package com.pluralsight.orderfulfillment.customer;
/**
* Domain object for a Customer
*
* @author Michael Hoffman, Pluralsight
*
*/
public class Customer {
private long id;
private String firstName;
private String lastName;
private String email;
public Customer() {
}
public Customer(long... | mikevoxcap/spring4-sample | src/main/java/com/pluralsight/orderfulfillment/customer/Customer.java | Java | apache-2.0 | 2,192 |
package com.example.wk.ybeg.fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.wk.ybeg.R;
/**
* Created by WK on 2016/11/25.
*/
public class GengDuo extends BaseFragment {
... | wkadzz/YbEg | app/src/main/java/com/example/wk/ybeg/fragment/GengDuo.java | Java | apache-2.0 | 626 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* 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. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
... | Lihuanghe/CMPPGate | src/main/java/org/marre/mime/encoder/MimeEncoder.java | Java | apache-2.0 | 3,133 |
package com.transcend.monitor.transform;
import java.util.Date;
import java.util.Map;
import java.util.TimeZone;
import org.slf4j.Logger;
import com.msi.tough.core.Appctx;
import com.msi.tough.core.DateHelper;
import com.msi.tough.monitor.common.MonitorConstants;
import com.msi.tough.query.ErrorResponse;
import com.... | TranscendComputing/TopStackMetricSearch | src/com/transcend/monitor/transform/GetMetricStatisticsRequestUnmarshaller.java | Java | apache-2.0 | 3,650 |
/**
* 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 us... | eribeiro/kafka | clients/src/main/java/org/apache/kafka/clients/ClientUtils.java | Java | apache-2.0 | 4,919 |
/*
* Copyright (C) 2010 ZXing 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 agr... | bestdpf/2dbarcode | android/src/com/google/zxing/client/android/result/supplement/SupplementalInfoRetriever.java | Java | apache-2.0 | 6,505 |
package com.blossomproject.autoconfigure.core;
import com.blossomproject.core.common.actuator.ElasticsearchTraceRepository;
import com.blossomproject.core.common.actuator.ElasticsearchTraceRepositoryImpl;
import com.blossomproject.core.common.actuator.TraceStatisticsMvcEndpoint;
import com.fasterxml.jackson.databind.O... | mgargadennec/blossom | blossom-autoconfigure/src/main/java/com/blossomproject/autoconfigure/core/ActuatorAutoConfiguration.java | Java | apache-2.0 | 2,930 |
/*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* 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 distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html... | IHTSDO/snow-owl | dependencies/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/spi/common/id/AbstractCDOIDByteArray.java | Java | apache-2.0 | 2,099 |
package com.errorplayer.lala_weather.db;
import org.litepal.crud.DataSupport;
/**
* Created by linze on 2017/7/7.
*/
public class City extends DataSupport {
private int id;
private String cityName;
private int cityCode;
private int provinceId;
public int getId() {
return id;
}
... | errorplayer/LaLa-Weather | app/src/main/java/com/errorplayer/lala_weather/db/City.java | Java | apache-2.0 | 845 |
/*
* www.yiji.com Inc.
* Copyright (c) 2016 All Rights Reserved
*/
package com.falcon.suitagent.web;
/*
* 修订记录:
* guqiu@yiji.com 2016-07-26 13:54 创建
*/
import com.falcon.suitagent.config.AgentConfiguration;
import com.falcon.suitagent.plugins.metrics.MetricsCommon;
import lombok.extern.slf4j.Slf4j;
import java.... | DevopsJK/SuitAgent | src/main/java/com/falcon/suitagent/web/Response.java | Java | apache-2.0 | 2,763 |
package pl.openrest.filters.query;
import java.io.Serializable;
import org.springframework.data.mapping.PersistentProperty;
import pl.openrest.predicate.parser.FilterPart;
import pl.openrest.predicate.parser.PredicateParts;
public interface PredicateContextBuilder {
PredicateContextBuilder withFilterTree(Filte... | konik32/openrest | openrest-filters/src/main/java/pl/openrest/filters/query/PredicateContextBuilder.java | Java | apache-2.0 | 587 |
package org.inferred.freevisitor.tests.j8;
public class TypeA extends VisitableType {}
| inferred/freevisitor | src/it/j8/main/java/org/inferred/freevisitor/tests/j8/TypeA.java | Java | apache-2.0 | 88 |
// Copyright 2011 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... | frydsh/GoogleBody | src/com/google/android/apps/body/tdl/TdlMath.java | Java | apache-2.0 | 2,574 |
/**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the Smart Developer Hub Project:
* http://www.smartdeveloperhub.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... | SmartDeveloperHub/sdh-curator-connector | src/test/java/org/smartdeveloperhub/curator/connector/io/DeliveryChannelParserTest.java | Java | apache-2.0 | 2,998 |
package org.opentosca.planbuilder.type.plugin.connectsto.core;
import java.util.List;
import java.util.Objects;
import org.eclipse.winery.model.tosca.TInterface;
import org.eclipse.winery.model.tosca.TNodeTemplate;
import org.eclipse.winery.model.tosca.TRelationshipTemplate;
import org.eclipse.winery.model.tosca.TRel... | OpenTOSCA/container | org.opentosca.planbuilder/org.opentosca.planbuilder.type.plugin.connectsto/src/main/java/org/opentosca/planbuilder/type/plugin/connectsto/core/ConfigureRelationsPlugin.java | Java | apache-2.0 | 2,350 |
/*
* Licensed to Indoqa Software Design und Beratung GmbH (Indoqa)
* under one or more contributor license agreements. See the NOTICE
* file distributed with this work for additional information
* regarding copyright ownership. Indoqa licenses this file
* to you under the Apache License, Version 2.0 (the "Licens... | reinhard/indoqa-wadldoc-maven-plugin | src/test/java/com/indoqa/maven/wadldoc/transformation/Wadl2HtmlPipelineTest.java | Java | apache-2.0 | 2,549 |
//: net/mindview/util/MapData.java
// A Map filled with data using a generator object.
package com.example.doun.chapter21concurrency.ReaderWriterMapPack;
//package net.mindview.util;
import java.util.*;
public class MapData<K, V> extends LinkedHashMap<K, V> {
// A single Pair Generator:
public MapData(Generat... | Doun2017/StudyJavaCode | Chapter21Concurrency/app/src/main/java/com/example/doun/chapter21concurrency/ReaderWriterMapPack/MapData.java | Java | apache-2.0 | 2,044 |
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the... | thescouser89/pnc | indy-repository-manager/src/test/java/org/jboss/pnc/indyrepositorymanager/AllSessionUrlsForBuildAreAlikeTest.java | Java | apache-2.0 | 2,572 |
package ru.stqa.pft.addressbook.tests;
import org.openqa.selenium.remote.BrowserType;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import ru.stqa.pft.addressbook.appmanager.ApplicationManager;
/**
* Created by Дарья on 03-Sep-16.
*/
public class TestBase {
protected static... | tsygipova/java_first | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/TestBase.java | Java | apache-2.0 | 542 |
package com.rotoplastyc.util;
public class NavDef {
private final String i[];
public final static NavDef ERRO = new NavDef("err","mood_bad","ERRO");
public final static NavDef ERRO2 = new NavDef("err","mood","ERRO");
public NavDef(String contentPointer, String icon, String displayName) {
... | lucasnoetzold/Viagens | src/java/com/rotoplastyc/util/NavDef.java | Java | apache-2.0 | 641 |
/*
* 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 ... | ilgrosso/oldSyncopeIdM | client/src/main/java/org/syncope/types/CipherAlgorithm.java | Java | apache-2.0 | 1,137 |
/*
* Copyright (c) 2017 Martin Pfeffer
*
* 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... | pepperonas/AndroidDemos | jsonlayout/src/test/java/io/celox/androiddemos/jsonlayout/ExampleUnitTest.java | Java | apache-2.0 | 1,014 |
/*
* 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... | freeVM/freeVM | enhanced/archive/classlib/java6/modules/awt/src/main/java/common/java/awt/font/ShapeGraphicAttribute.java | Java | apache-2.0 | 3,798 |
package com.jikexueyuan.classdemo;
/**
* Created by zmzp on 14-12-4.
*/
class Student{
public void tell(){
System.out.println("Hello Jikexueyuan");
}
}
public class ClassDemo03 {
public static void main(String[] args) {
// Student stu = new Student();
// stu.tell();
//匿名对象
... | bobo159357456/bobo | android_project/ClassDemo02/app/src/main/java/com/jikexueyuan/classdemo/ClassDemo03.java | Java | apache-2.0 | 365 |
package com.polarion.starter.utility;
/**
* Created by scottrichards on 9/5/15.
*/
public class URLService extends Object {
private static String baseURL = "http://54.183.27.217";
// return url formed by adding the specified ending url to the base url
static public String buildUrl(String url) {
... | scottrichards/PolarionLive2015Android | ParseStarterProject/src/main/java/com/polarion/starter/utility/URLService.java | Java | apache-2.0 | 511 |
/*
* The University of Wales, Cardiff Triana Project Software License (Based
* on the Apache Software License Version 1.1)
*
* Copyright (c) 2007 University of Wales, Cardiff. All rights reserved.
*
* Redistribution and use of the software in source and binary forms, with
* or without modification, are permitted... | CSCSI/Triana | triana-gui/src/main/java/org/trianacode/gui/help/UrlHistory.java | Java | apache-2.0 | 4,922 |
/**
Copyright (c) 2007-2013 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in the @author tags
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licen... | fmrsabino/library | src/bftsmart/demo/listvalue/BFTMapList.java | Java | apache-2.0 | 2,180 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | vovagrechka/fucking-everything | phizdets/phizdets-idea/src/vgrechka/phizdetsidea/phizdets/inspections/unresolvedReference/package-info.java | Java | apache-2.0 | 871 |
/*
* 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-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/InputTransformer.java | Java | apache-2.0 | 7,772 |
/*
*
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | springfox/springfox | swagger-contract-tests/src/main/java/springfox/test/contract/swagger/models/SameFancyPet.java | Java | apache-2.0 | 976 |
/* 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... | motorina0/flowable-engine | modules/flowable-engine/src/main/java/org/flowable/engine/impl/persistence/cache/EntityCacheImpl.java | Java | apache-2.0 | 3,610 |
/*
*=====================================================================
* This file is part of JSatTrak.
*
* Copyright 2007-2013 Shawn E. Gano
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | rrr6399/JSatTrakLib | src/name/gano/math/nonlinsolvers/TestDC.java | Java | apache-2.0 | 2,369 |
package org.ovirt.engine.core.bll;
import org.ovirt.engine.core.common.AuditLogType;
import org.ovirt.engine.core.common.action.TagsOperationParameters;
import org.ovirt.engine.core.common.businessentities.Tags;
import org.ovirt.engine.core.common.errors.EngineMessage;
import org.ovirt.engine.core.dal.dbbroker.DbFacad... | OpenUniversity/ovirt-engine | backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddTagCommand.java | Java | apache-2.0 | 1,202 |
/*
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | strepsirrhini-army/chaos-loris | src/main/java/io/pivotal/strepsirrhini/chaosloris/web/ScheduleCreateInput.java | Java | apache-2.0 | 1,325 |
package org.turbogwt.mvp;
import com.google.gwt.user.client.ui.Composite;
/**
* Abstract class for every View in the TurboGWT-MVP framework.
* <p>
* It provides access to its Presenter via the {@link #getPresenter} method.
*
* @param <P> the Presenter that is attached to this View, whenever it is displayed
*
*... | growbit/turbogwt | turbogwt-mvp/src/main/java/org/turbogwt/mvp/AbstractView.java | Java | apache-2.0 | 851 |
package redis.clients.jedis;
import com.esotericsoftware.reflectasm.MethodAccess;
import org.apache.log4j.Logger;
import java.util.Map;
public abstract class Command {
private final static Logger LOG = Logger.getLogger(Command.class);
private final static MethodAccess access = MethodAccess
.get(ShardedJedis.cl... | kelongxhu/jedis-sentinel-pool | src/main/java/redis/clients/jedis/Command.java | Java | apache-2.0 | 3,425 |
/*-------------------------------------------------------------------------+
| |
| Copyright 2005-2011 The ConQAT Project |
| |
| Licensed u... | vimaier/conqat | org.conqat.engine.text/src/org/conqat/engine/text/identifier/IdentifierProcessorBase.java | Java | apache-2.0 | 2,775 |
/*
*
* Autopsy Forensic Browser
*
* Copyright 2018 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ht... | millmanorama/autopsy | Core/src/org/sleuthkit/autopsy/commonfilesearch/InstanceCountNode.java | Java | apache-2.0 | 6,850 |
package com.java110.fee.bmo.feeDiscount;
import com.alibaba.fastjson.JSONArray;
import com.java110.po.feeDiscount.FeeDiscountPo;
import org.springframework.http.ResponseEntity;
public interface IUpdateFeeDiscountBMO {
/**
* 修改费用折扣
* add by wuxw
*
* @param feeDiscountPo
* @return
*/... | java110/MicroCommunity | service-fee/src/main/java/com/java110/fee/bmo/feeDiscount/IUpdateFeeDiscountBMO.java | Java | apache-2.0 | 433 |
/*
* Copyright 2015 Open Networking Laboratory
*
* 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... | sonu283304/onos | apps/openstacknetworking/web/src/main/java/org/onosproject/openstacknetworking/web/OpenstackSubnetWebResource.java | Java | apache-2.0 | 2,056 |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | youdonghai/intellij-community | platform/lang-impl/src/com/intellij/application/options/colors/FontOptions.java | Java | apache-2.0 | 13,068 |
package com.example.dagger2_hello_world;
import android.content.Context;
import android.support.annotation.NonNull;
import javax.inject.Named;
import dagger.Binds;
import dagger.Module;
import dagger.Provides;
@Module
public abstract class ApplicationModule {
@Provides
@NonNull
static Application myApp... | ron-k/Dagged2-Hello-World | app/src/main/java/com/example/dagger2_hello_world/ApplicationModule.java | Java | apache-2.0 | 596 |
package fr.jmini.asciidoctorj.converter.mockcode;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Collections;
import org.asciidoctor.ast.ListItem;
import org.junit.Test;
import fr.jmini.asciidoctorj.converter.code.CodeTestingUtility;
public class MockCodeGeneratorL... | jmini/asciidoctorj-experiments | code-converter/mock-code-converter/src/test/java/fr/jmini/asciidoctorj/converter/mockcode/MockCodeGeneratorListItemTest.java | Java | apache-2.0 | 2,308 |
/**
* Copyright 2014 Groupon.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | groupon/vertx-memcache | src/main/java/com/groupon/vertx/memcache/client/response/StoreCommandResponse.java | Java | apache-2.0 | 1,563 |
/*
* Copyright 2013, Edmodo, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License.
* You may obtain a copy of the License in the LICENSE file, or at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | wicloud/crop-image | CropperSample/src/com/yuqiaotech/erp/editimage/cropper/util/AspectRatioUtil.java | Java | apache-2.0 | 3,853 |
package stroom.config.global.impl;
import stroom.ui.config.shared.UserPreferences;
import java.util.Optional;
public interface UserPreferencesDao {
Optional<UserPreferences> fetch(String userId);
int update(String userId, UserPreferences userPreferences);
int delete(String userId);
}
| gchq/stroom | stroom-config/stroom-config-global-impl/src/main/java/stroom/config/global/impl/UserPreferencesDao.java | Java | apache-2.0 | 303 |
package com.cocos2dj.module.btree;
import java.util.HashMap;
import com.badlogic.gdx.ai.btree.BehaviorTree;
import com.badlogic.gdx.ai.btree.Task;
import com.badlogic.gdx.ai.btree.branch.Parallel;
import com.badlogic.gdx.ai.btree.branch.Parallel.Policy;
import com.badlogic.gdx.ai.btree.branch.Selector;
import com.bad... | mingwuyun/cocos2d-java | external/com/cocos2dj/module/btree/BhTree.java | Java | apache-2.0 | 2,892 |
package com.s24.search.solr.response;
import java.util.ArrayList;
import java.util.List;
import org.apache.lucene.analysis.util.ResourceLoader;
import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.core.SolrResourceLoader;
import org.junit.Test;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.templa... | shopping24/solr-thymeleaf | src/test/java/com/s24/search/solr/response/LuceneTemplateResolverIT.java | Java | apache-2.0 | 1,192 |
/**
* Copyright (C) 2016-2018 Harald Kuhn
*
* 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... | hkuhn42/bottery | bottery.connector.ms/src/main/java/rocks/bottery/connector/ms/model/OpenIdConfig.java | Java | apache-2.0 | 4,633 |
package org.rabix.bindings.cwl.bean;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.rabix.bindings.cwl.json.CWLStepsDeserializer;
import org.rabix.bindings.model.ValidationReport;
import org.rabix.common.json.BeanPropertyView;
import com.fasterxml.jackso... | rabix/bunny | rabix-bindings-cwl/src/main/java/org/rabix/bindings/cwl/bean/CWLWorkflow.java | Java | apache-2.0 | 3,152 |
package org.jokar.permissiondispatcher.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Register some methods which permissions are needed.
* Created by JokAr on 16/8/22.
*/
@Target(Ele... | a1018875550/PermissionDispatcher | library/src/main/java/org/jokar/permissiondispatcher/annotation/NeedsPermission.java | Java | apache-2.0 | 431 |
/*******************************************************************************
* Copyright 2017 Adobe Systems Incorporated
*
* 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:/... | Adobe-Marketing-Cloud/htl-tck | src/test/java/io/sightly/tck/html/HTMLExtractorTest.java | Java | apache-2.0 | 4,580 |
/*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | parshimers/incubator-asterixdb | asterix-installer/src/main/java/edu/uci/ics/asterix/installer/driver/InstallerUtil.java | Java | apache-2.0 | 3,396 |
/**
* Copyright 2012 52°North Initiative for Geospatial Open Source Software GmbH
*
* 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... | 52North/geoar-app | src/main/java/org/n52/geoar/newdata/InstalledPluginHolder.java | Java | apache-2.0 | 7,501 |
/*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* 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 requ... | gbif/metrics | metrics-es/src/main/java/org/gbif/metrics/es/Parameter.java | Java | apache-2.0 | 1,522 |
/*
* Copyright (c) 2011-2015, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | pacozaa/BoofCV | main/ip/benchmark/boofcv/abst/filter/convolve/BenchmarkConvolve.java | Java | apache-2.0 | 7,931 |
/*
* 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 ... | pdxrunner/geode | geode-core/src/main/java/org/apache/geode/internal/tcp/TCPConduit.java | Java | apache-2.0 | 37,478 |
package view;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java... | TibiSecurity/progkorny | src/main/java/view/FormPanel.java | Java | apache-2.0 | 12,691 |
package com.example.android.sunshine.app;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.ShareActionProvider;
import android.view.LayoutInfl... | michaeloverman/Weather | app/src/main/java/com/example/android/sunshine/app/DetailActivity.java | Java | apache-2.0 | 4,561 |
package com.youcan.core;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import com.youcan.core.l;
public class l {
protected l() {
//do nothing
System.out.println("l started.");
}
private static Logger log;
public static final boolean init(String logName) {
if ((log =... | jiaozhujun/c3f | src-core/com/youcan/core/l.java | Java | apache-2.0 | 1,306 |
/*
** 2013 October 27
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
*/
package... | NovaViper/ZeroQuest | 1.6.4-src/common/zeroquest/entity/helper/CustomJakanHelper.java | Java | apache-2.0 | 1,197 |
/*
* Copyright 2020 Yahoo Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | yahoo/athenz | libs/java/auth_core/src/test/java/com/yahoo/athenz/auth/oauth/validator/OAuthJwtAccessTokenValidatorTest.java | Java | apache-2.0 | 4,643 |
package com.churches.by.ui;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import com.churches.by.R;
public class AboutDialog extends DialogFragment {
public AboutDi... | vmatelsky/churches | Churches/com.churches.by/src/main/java/com/churches/by/ui/AboutDialog.java | Java | apache-2.0 | 684 |
/*
* Copyright (c) 2013-2014, Arjuna Technologies Limited, Newcastle-upon-Tyne, England. All rights reserved.
*/
package com.arjuna.databroker.control.comms;
import java.io.Serializable;
import java.util.Map;
public class PropertiesDTO implements Serializable
{
private static final long serialVersionUID = -482... | mtaylor/DataBroker | control-common/src/main/java/com/arjuna/databroker/control/comms/PropertiesDTO.java | Java | apache-2.0 | 727 |
/*
* Copyright 2017 Crown Copyright
*
* 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... | gchq/stroom | stroom-security/stroom-security-impl/src/main/java/stroom/security/impl/SessionListService.java | Java | apache-2.0 | 946 |
package org.lnu.is.converter.person.paper;
import org.lnu.is.annotations.Converter;
import org.lnu.is.converter.AbstractConverter;
import org.lnu.is.domain.honors.type.HonorType;
import org.lnu.is.domain.paper.type.PaperType;
import org.lnu.is.domain.person.Person;
import org.lnu.is.domain.person.paper.PersonPaper;
im... | ifnul/ums-backend | is-lnu-converter/src/main/java/org/lnu/is/converter/person/paper/PersonPaperResourceConverter.java | Java | apache-2.0 | 1,692 |
package voldemort.server.protocol.vold;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import org.apache.log4j.Logger;
import voldemort.VoldemortException;
import voldemort.common.VoldemortOpCode;
import voldemort.common.nio.ByteBufferBackedIn... | cshaxu/voldemort | src/java/voldemort/server/protocol/vold/VoldemortNativeRequestHandler.java | Java | apache-2.0 | 8,979 |
/**
* 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... | fuerve/VillageElder | src/test/java/com/fuerve/villageelder/indexing/IndexManagerTest.java | Java | apache-2.0 | 8,850 |
package com.jasonsoft.softwarevideoplayer;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory.Options;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.AsyncTask;
import andr... | jasonchuang/SoftwareVideoPlayer | src/com/jasonsoft/softwarevideoplayer/LoadThumbnailTask.java | Java | apache-2.0 | 3,200 |
package org.opendaylight.opflex.genie.content.format.meta.mdl;
import java.util.TreeMap;
import org.opendaylight.opflex.genie.content.model.mclass.MClass;
import org.opendaylight.opflex.genie.content.model.mprop.MProp;
import org.opendaylight.opflex.genie.engine.file.WriteStats;
import org.opendaylight.opflex.genie.e... | noironetworks/genie | src/main/java/org/opendaylight/opflex/genie/content/format/meta/mdl/FContDef.java | Java | apache-2.0 | 2,728 |
package com.transmem.doc;
import java.io.IOException;
import java.io.File;
import java.io.PrintWriter;
import java.io.FileReader;
import java.io.BufferedReader;
import java.util.ArrayList;
import java.util.logging.Logger;
import java.sql.SQLException;
/**
* Bitext loader loads a bilingual parallel text from two sepa... | tedwen/transmem | src/com/transmem/doc/BitextLoader.java | Java | apache-2.0 | 4,846 |
package com.indeed.proctor.common;
import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
import com.indeed.util.core.DataLoadingTimerTask;
import com.indeed.util.varexport.Export;
import com.indeed.proctor.common.model.Audit;
import com.indeed.proctor.common.model.TestMatrixArtifact;
imp... | jdcheng/proctor-git | proctor-common/src/main/java/com/indeed/proctor/common/AbstractProctorLoader.java | Java | apache-2.0 | 4,349 |
package com.dev9.crash.bad;
import com.dev9.crash.AbstractBadThing;
import org.springframework.stereotype.Service;
@Service
public class FillHeapLocalMethodOnStack extends AbstractBadThing {
public String getBadThingDescription() {
return "Fills up the heap using an object with a local method. This metho... | dev9com/crash-dummy | src/main/java/com/dev9/crash/bad/FillHeapLocalMethodOnStack.java | Java | apache-2.0 | 757 |
/*
* Copyright 2004-2013 the Seasar Foundation and the 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 ... | dbflute-test/dbflute-test-dbms-mysql | src/main/java/org/docksidestage/mysql/dbflute/allcommon/CDef.java | Java | apache-2.0 | 262,223 |
// 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... | Ardesco/selenium | java/server/src/org/openqa/selenium/grid/server/BaseServerFlags.java | Java | apache-2.0 | 3,196 |
/*
* Copyright 2015-2018 Igor Maznitsa.
*
* 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... | raydac/netbeans-mmd-plugin | mind-map/mind-map-swing-panel/src/main/java/com/igormaznitsa/mindmap/plugins/processors/ExtraJumpPlugin.java | Java | apache-2.0 | 2,189 |