code stringlengths 572 46.5k | repo_name stringlengths 7 62 | path stringlengths 6 247 | language stringclasses 7
values | license stringclasses 15
values | size int64 572 46.5k |
|---|---|---|---|---|---|
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.core/src/com/tle/core/workflow/migrate/AddNotificationSchemaXML.java | Java | apache-2.0 | 2,942 |
// Copyright (C) 2021 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 ... | GerritCodeReview/gerrit | javatests/com/google/gerrit/acceptance/ssh/DynamicOptionsBeanParseListenerIT.java | Java | apache-2.0 | 2,424 |
package com.shoyu666.demo.derocoodemo.util;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Process;
import java.util.Iterator;
public... | shoyu666/derocoodemo | app/src/main/java/com/shoyu666/demo/derocoodemo/util/MAppInfoManager.java | Java | apache-2.0 | 2,311 |
package com.ukefu.webim.config.web;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.web.bind.su... | gtison/kf | src/main/java/com/ukefu/webim/config/web/WebConfigBeans.java | Java | apache-2.0 | 1,167 |
/*
* 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... | consulo/consulo-python | python-impl/src/main/java/com/jetbrains/python/hierarchy/PyTypeHierarchyBrowser.java | Java | apache-2.0 | 3,514 |
/*
* 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 ... | redhat-italy/hacep | hacep-core/src/main/java/it/redhat/hacep/cache/session/HAKieSessionDeltaEmpty.java | Java | apache-2.0 | 2,496 |
/*
* Copyright 2000-2013 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... | hurricup/intellij-community | java/java-impl/src/com/intellij/codeInspection/dataFlow/EditContractIntention.java | Java | apache-2.0 | 6,278 |
/*
* Copyright 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 applica... | trisberg/spring-cloud-task | spring-cloud-task-stream/src/test/java/org/springframework/cloud/task/launcher/configuration/TaskConfiguration.java | Java | apache-2.0 | 2,550 |
/**
* 版权所有 (TMS)
*/
package com.lhjz.portal.controller;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... | xiwc/tms | src/main/java/com/lhjz/portal/controller/FeedbackController.java | Java | apache-2.0 | 3,792 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | ederign/kie-wb-common | kie-wb-common-stunner/kie-wb-common-stunner-extensions/kie-wb-common-stunner-project/kie-wb-common-stunner-project-client/src/main/java/org/kie/workbench/common/stunner/project/client/screens/ProjectDiagramExplorerScreenView.java | Java | apache-2.0 | 1,868 |
package legacyhpa
import (
"fmt"
"io"
"sort"
"strings"
"github.com/spf13/cobra"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
autoscaling "k8s.io/kubernetes/pkg/apis/autoscaling"
autoscalingclient "k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset/typed/aut... | mrogers950/origin | pkg/oc/admin/migrate/legacyhpa/hpa.go | GO | apache-2.0 | 6,086 |
/*
* 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 ... | smanvi-pivotal/geode | geode-core/src/test/java/org/apache/geode/distributed/internal/locks/DLockServiceCharacterizationTests.java | Java | apache-2.0 | 4,368 |
/*
* Copyright 2014 Ingwar & co..
*
* 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 ... | ingwarsw/sputnik-maven-plugin | src/main/java/org/eu/ingwar/maven/sputnik/SputnikAbstractMojo.java | Java | apache-2.0 | 5,338 |
/*
Copyright 2016 The Kubernetes 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 agreed to in writing, ... | DongyiYang/kubernetes | pkg/genericapiserver/config.go | GO | apache-2.0 | 17,954 |
package gov.va.med.imaging.core.router;
import java.util.Date;
/**
* The base abstract class for any command processors that may be retried asynchronously.
* As long as the getRemainingRetries() returns a positive number a command that has
* failed can request that it be put back on the queue for another attempt.
... | VHAINNOVATIONS/Telepathology | Source/Java/CoreRouter/main/src/java/gov/va/med/imaging/core/router/AbstractRetryableCommandImpl.java | Java | apache-2.0 | 1,454 |
/*
* Copyright (c) 2012 Unai Aguilera
*
* 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... | unaguil/hyperion | src/floodsearch/RunningSearch.java | Java | apache-2.0 | 2,259 |
package org.castelodelego.spacedebris.battlecomponents;
import com.badlogic.gdx.graphics.Color;
/**
*
* This component indicates that the entity has an associated animation, and should be rendered as an animation.
*
* @author caranha
*
*/
public class ComponentAnimation implements ComponentInterface {
publi... | caranha/spacedebris | spacedebris/src/org/castelodelego/spacedebris/battlecomponents/ComponentAnimation.java | Java | apache-2.0 | 944 |
/*
* 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 ... | dhutchis/accumulo | test/src/main/java/org/apache/accumulo/test/ManySplitIT.java | Java | apache-2.0 | 4,133 |
package com.google.android.apps.common.testing.accessibility.framework.uielement;
import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_LENGTH;
import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_ARG_START_INDEX;
import stati... | google/Accessibility-Test-Framework-for-Android | src/main/java/com/google/android/apps/common/testing/accessibility/framework/uielement/AccessibilityNodeInfoExtraDataExtractor.java | Java | apache-2.0 | 5,159 |
// 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... | jsakamoto/selenium | java/server/src/org/openqa/selenium/remote/server/commandhandler/NoHandler.java | Java | apache-2.0 | 2,548 |
package com.alibaba.jstorm.task.execute.spout;
import java.util.Map;
import org.apache.log4j.Logger;
import backtype.storm.Config;
import backtype.storm.utils.DisruptorQueue;
import com.alibaba.jstorm.stats.CommonStatsRolling;
import com.alibaba.jstorm.task.comm.TupleInfo;
import com.alibaba.jstorm.utils.ExpiredCal... | zhangjunfang/jstorm-0.9.6.3- | jstorm-server/src/main/java/com/alibaba/jstorm/task/execute/spout/SpoutTimeoutCallBack.java | Java | apache-2.0 | 1,532 |
package com.flipkart.todolist.fragments;
import android.app.Dialog;
import android.support.v4.app.DialogFragment;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.widget.TextView;
import android.widget.TimePicker;
import java.util.Calendar;
/**
* Created by mayank.gupta on 06/01/16.
... | balasubramanian-07/TodoList | app/src/main/java/com/flipkart/todolist/fragments/TimePickerFragment.java | Java | apache-2.0 | 1,112 |
/*
* JBoss, Home of Professional Open Source
* Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | jfdenise/aesh | aesh/src/test/java/org/aesh/command/converter/AeshConverterInvocationProviderTest.java | Java | apache-2.0 | 4,714 |
package com.linkedin.metadata.model.validation;
import com.linkedin.data.schema.DataSchema;
import com.linkedin.metadata.models.EntitySpecBuilder;
import com.linkedin.pegasus.generator.DataSchemaParser;
import java.io.IOException;
/**
* Validates GMS PDL models by constructing a set of {@link EntitySpec}s from them... | linkedin/WhereHows | metadata-models-validator/src/main/java/com/linkedin/metadata/model/validation/ModelValidationTask.java | Java | apache-2.0 | 1,762 |
package com.google.launchpod.data;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fa... | googleinterns/step18-2020 | launchpod/angular-launchpod/backend/src/main/java/com/google/launchpod/data/Channel.java | Java | apache-2.0 | 3,423 |
/* 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... | roberthafner/flowable-engine | modules/flowable-dmn-engine/src/main/java/org/activiti/dmn/engine/impl/RuleEngineExecutorImpl.java | Java | apache-2.0 | 11,005 |
/*
* Copyright 2010-2013 Robert Burrell Donkin
*
* 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... | itstechupnorth/sekhmet-audio | sekhmet-audio-io/src/main/java/org/itstechupnorth/sekhmet/audio/io/builder/AudioDataPipeline.java | Java | apache-2.0 | 2,423 |
/*
* Copyright 2000-2009 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... | jexp/idea2 | platform/platform-impl/src/com/intellij/openapi/diff/impl/external/DiffManagerImpl.java | Java | apache-2.0 | 6,778 |
/*
* Copyright 2013 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... | leapframework/framework | web/htpl/src/main/java/leap/htpl/ast/IfCondition.java | Java | apache-2.0 | 2,076 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.livedata.client;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import org.fudgemsg.FudgeContext;
impor... | McLeodMoores/starling | projects/live-data/src/main/java/com/opengamma/livedata/client/DistributedSpecificationResolver.java | Java | apache-2.0 | 3,228 |
/*
* Copyright 2016 Innovative Mobile Solutions Limited and 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 req... | mobilecashout/osprey | src/main/java/com/mobilecashout/osprey/plugin/plugins/PushArtifactPlugin.java | Java | apache-2.0 | 2,333 |
/*
* Copyright 2005-2013 shopxx.net. All rights reserved.
* Support: http://www.shopxx.net
* License: http://www.shopxx.net/license
*/
package net.groupbuy.controller.admin;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import net.groupbuy.Message;
impor... | groupbuyteam/groupbuy | src/net/groupbuy/controller/admin/ProductCategoryController.java | Java | apache-2.0 | 4,904 |
// Copyright 2017 Istio 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 agreed to i... | jmuk/mixer | cmd/server/cmd/server.go | GO | apache-2.0 | 12,206 |
package cz.znj.kvr.sw.exp.java.corejava.exception;
import org.testng.Assert;
import org.testng.AssertJUnit;
import org.testng.annotations.Test;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import jav... | kvr000/zbynek-java-exp | corejava-exp/corejava-exception-exp/src/test/java/cz/znj/kvr/sw/exp/java/corejava/exception/TryWithResourcesExceptionTest.java | Java | apache-2.0 | 864 |
/*
* Seldon -- open source prediction engine
* =======================================
*
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
* ********************************************************************************************
*
* Licensed under the Apache License, V... | smrjan/seldon-server | server/src/io/seldon/topics/RecentTopicModelRecommender.java | Java | apache-2.0 | 8,049 |
package germ.model.links;
import germ.i18n.Messages;
import germ.model.Link;
import germ.model.Node;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Paint;
import java.awt.Stroke;
import java.awt.geom.Point2D;
/**
* Klasa Linka koja povezuje medjusobno: assumption/... | delicb/Germ | germ/model/links/Dependency.java | Java | apache-2.0 | 1,088 |
package org.bergefall.iobase.blp;
import java.time.LocalDateTime;
import java.util.SortedSet;
import org.bergefall.base.commondata.CommonStrategyData;
import org.bergefall.base.strategy.IntraStrategyBeanMsg;
import org.bergefall.base.strategy.StrategyToken;
import org.bergefall.common.data.MarketDataCtx;
import org.b... | drofe/metaTrader | ioBase/src/test/java/org/bergefall/iobase/blp/BlpTest.java | Java | apache-2.0 | 2,016 |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | droolsjbpm/optaplanner | optaplanner-core/src/test/java/org/optaplanner/core/config/solver/SolverConfigTest.java | Java | apache-2.0 | 8,048 |
/*
* Copyright 2016 agwlvssainokuni
*
* 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 ... | agwlvssainokuni/springapp2 | galleryapp/gallery-web/src/main/java/cherry/gallery/web/basic/ex50/BasicEx50FormBase.java | Java | apache-2.0 | 6,736 |
/*
* Copyright 2000-2009 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... | joewalnes/idea-community | platform/lang-impl/src/com/intellij/ui/tabs/FileColorsModel.java | Java | apache-2.0 | 10,048 |
/*
* 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... | jrodbx/okhttp | okhttp-urlconnection/src/main/java/okhttp3/internal/huc/OkHttpsURLConnection.java | Java | apache-2.0 | 2,556 |
/**
* 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... | linkedin/pinot | pinot-broker/src/main/java/org/apache/pinot/broker/broker/helix/BrokerResourceOnlineOfflineStateModelFactory.java | Java | apache-2.0 | 5,790 |
/*
* Copyright 2013-2018 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICEN... | GuardTime/ksi-java-sdk | ksi-service-client/src/main/java/com/guardtime/ksi/pdu/v1/PduV1Factory.java | Java | apache-2.0 | 5,381 |
/**
* 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... | deephacks/westty | westty-protobuf/src/test/java/org/deephacks/westty/protobuf/ProtobufEndpoint.java | Java | apache-2.0 | 3,245 |
package com.ss.editor.ui.control.tree.node.impl.scene;
import com.jme3.util.SafeArrayList;
import com.ss.editor.Messages;
import com.ss.editor.annotation.FromAnyThread;
import com.ss.editor.annotation.FxThread;
import com.ss.editor.extension.scene.filter.SceneFilter;
import com.ss.editor.model.scene.SceneFiltersNode;
... | JavaSaBr/jME3-SpaceShift-Editor | src/main/java/com/ss/editor/ui/control/tree/node/impl/scene/SceneFiltersTreeNode.java | Java | apache-2.0 | 1,917 |
package paMVC;
import java.awt.EventQueue;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTe... | mengliu1995/easy-Registration-system | TextMVC/src/paMVC/DeleteFrame.java | Java | apache-2.0 | 2,946 |
// Copyright (c) 2018 Cisco and/or its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | milanlenco/vpp-1 | plugins/ksr/policy_reflector.go | GO | apache-2.0 | 10,349 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudfront/model/ResponseHeadersPolicyAccessControlAllowOrigins.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/s... | aws/aws-sdk-cpp | aws-cpp-sdk-cloudfront/source/model/ResponseHeadersPolicyAccessControlAllowOrigins.cpp | C++ | apache-2.0 | 2,358 |
package se.chalmers.pd.headunit;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.ConsoleMessage;
import android.webkit.GeolocationPermissions;
import android.webkit.WebChr... | Snadde/infotainment | apps/headunit/src/se/chalmers/pd/headunit/MainActivity.java | Java | apache-2.0 | 1,254 |
/*
Copyright 2014 Xabier Crespo Álvarez
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... | satnet-project/leop-client | background.js | JavaScript | apache-2.0 | 1,001 |
/*
Copyright (c) 2016-2017 Bitnami
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, softwar... | skippbox/kubeless | vendor/github.com/kubeless/cronjob-trigger/pkg/utils/k8sutil.go | GO | apache-2.0 | 7,037 |
# -*- coding: utf-8 -*-
# Copyright 2017 GIG Technology NV
#
# 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... | rogerthat-platform/rogerthat-backend | src/rogerthat/capi/system.py | Python | apache-2.0 | 3,414 |
/**
* Copyright (C) 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 by app... | agentgt/jirm | jirm-orm/src/main/java/co/jirm/orm/builder/update/UpdateBuilderFactory.java | Java | apache-2.0 | 3,790 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/DescribeFastLaunchImagesResponse.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include ... | aws/aws-sdk-cpp | aws-cpp-sdk-ec2/source/model/DescribeFastLaunchImagesResponse.cpp | C++ | apache-2.0 | 2,226 |
/**
Copyright 2013 project Ardulink http://www.ardulink.org/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | Ardulink/Ardulink-2 | ardulink-core-base/src/test/java/org/ardulink/core/qos/Arduino.java | Java | apache-2.0 | 2,596 |
package com.xguokr.fragment;
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.... | xykhktk/FakeGuokr | app/src/main/java/com/xguokr/fragment/KexuerenArticleFragment.java | Java | apache-2.0 | 3,661 |
package com.thingtrack.konekti.service.impl.internal;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import com.thingtrack.konekti.dao.api.InvoiceLineDao;
import com.thingtrack.konekti.dao.api.InvoiceLineStatusDao;
import com.thingtrack.konekti.domain.Inv... | thingtrack/konekti | core/konekti.service.impl/src/main/java/com/thingtrack/konekti/service/impl/internal/InvoiceLineServiceImpl.java | Java | apache-2.0 | 1,725 |
// 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 com.intellij.util.concurrency;
import com.intellij.openapi.application.ModalityState;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import java.util.c... | leafclick/intellij-community | platform/util/concurrency/com/intellij/util/concurrency/EdtScheduledExecutorServiceImpl.java | Java | apache-2.0 | 1,980 |
/*
* Copyright 2000-2017 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... | leafclick/intellij-community | java/java-psi-impl/src/com/intellij/psi/impl/compiled/ClsModifierListImpl.java | Java | apache-2.0 | 6,252 |
package com.googlecode.qualitas.utils.xslt;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.tran... | lukaszbudnik/qualitas | qualitas-utils-xslt/src/test/java/com/googlecode/qualitas/utils/xslt/XSLTUtilsTest.java | Java | apache-2.0 | 4,876 |
/*
* (c) Copyright 2021 Palantir Technologies 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 ... | palantir/atlasdb | leader-election-impl/src/test/java/com/palantir/paxos/GreenNodeLeadershipAttemptHistoryTest.java | Java | apache-2.0 | 2,704 |
# import modules
import numpy as np
from reportslicestructurevalues import reportslicestructurevalues
'''
# Description.
Obtains the safety factor under the Fellenius method for any freatic level
below the slope terrain surface.
# External sub-function(s):
reportslicestructurevalues.
# Input(s).
Cell wh... | eamontoyaa/pyCSS | functions/interateffelleniussat.py | Python | bsd-2-clause | 7,130 |
package cz.metacentrum.perun.webgui.tabs.groupstabs;
import com.google.gwt.cell.client.FieldUpdater;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.resources.client.ImageResource;
import... | stavamichal/perun | perun-web-gui/src/main/java/cz/metacentrum/perun/webgui/tabs/groupstabs/GroupsTabItem.java | Java | bsd-2-clause | 8,365 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tonegod.gui.controls.scrolling;
import com.jme3.font.BitmapFont;
import com.jme3.font.LineWrapMode;
import com.jme3.input.event.MouseButtonEvent;
import com.jme3.input.event.MouseMotionEvent;
import com.jme3.inp... | repetti/jmegui | src/main/java/tonegod/gui/controls/scrolling/ScrollPanel.java | Java | bsd-2-clause | 23,095 |
/*
Copyright (c) 2014 Tenable Network Security, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions ... | tenable/rscap | includes/rscap_files.h | C | bsd-2-clause | 2,007 |
/* Copyright 1994 - 1996 LongView Technologies L.L.C. $Revision: 1.27 $ */
/* Copyright (c) 2006, Sun Microsystems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source ... | jirkadanek/Strongtalk | vm/asm/x86_mapping.hpp | C++ | bsd-3-clause | 6,283 |
package com.flash3388.flashlib.robot.systems;
import com.flash3388.flashlib.io.devices.DoubleSolenoid;
import com.flash3388.flashlib.io.devices.DoubleSolenoidGroup;
import com.flash3388.flashlib.scheduling.Subsystem;
/**
* A robot system made up of double-solenoids, controlling a valve.
*
* @since FlashLib 3.0.0
... | Flash3388/FlashLib | flashlib.core.robot/src/main/java/com/flash3388/flashlib/robot/systems/DoubleSolenoidSystem.java | Java | bsd-3-clause | 1,111 |
/*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | Caleydo/org.caleydo.view.contour | src/main/java/org/caleydo/view/relationshipexplorer/ui/util/EntityMappingUtil.java | Java | bsd-3-clause | 4,236 |
#ifndef __CONTROL_SETTING_HH__
#define __CONTROL_SETTING_HH__
#include <QString>
#include <QCoreApplication>
class Setting{
private:
//Tesseract Preferances
QString tesseractPath;
QString tessdataPath;
//GUI Preferences
QString appName;
QString interfaceLanguage;
bool windowState; //True for maximized... | rudrabhoj/decipher_text | inc/Control/Setting.hh | C++ | bsd-3-clause | 1,990 |
/*================================================================================
Copyright (c) 2012 Steve Jin. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must re... | xebialabs/vijava | src/com/vmware/vim25/ArrayOfDistributedVirtualPort.java | Java | bsd-3-clause | 2,221 |
// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/extensions/common/xwalk_extension.h"
#include "base/logging.h"
namespace xwalk {
namespace extensions {
XWalkExtension::XWalkExtension... | Shouqun/crosswalk | extensions/common/xwalk_extension.cc | C++ | bsd-3-clause | 921 |
/*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | mikem2005/vijava | src/com/vmware/vim25/DvsEventArgument.java | Java | bsd-3-clause | 1,960 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Inject, Injectable, Provider} from '@angular/core';
import {DOCUMENT} from '@angular/common';
import {CdkTabl... | angular/components | src/material-experimental/column-resize/resize-strategy.ts | TypeScript | mit | 1,329 |
/*******************************************************************************
* Copyright (c) 2000, 2011 IBM Corporation 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, an... | brunyuriy/quick-fix-scout | org.eclipse.jdt.ui_3.7.1.r371_v20110824-0800/src/org/eclipse/jdt/internal/ui/search/OccurrencesSearchResultPage.java | Java | mit | 11,937 |
package com.taotao.portal.service.impl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.taotao.common.utils.HttpClientUtil;
import com.taotao.common.utils.TaotaoResult;
import com.taotao.po.TbUser;
import com.taotao.portal.service.LoginService;
/**
... | gthulei/java-ssm | taotao-portal/src/main/java/com/taotao/portal/service/impl/LoginServiceImpl.java | Java | mit | 1,010 |
package collector
import (
"go/ast"
taskqPkg "github.com/zyndiecate/taskq"
)
var (
Verbosef = func(f string, v ...interface{}) {}
)
type Logger func(f string, v ...interface{})
func Configure(verboseLogger Logger) {
Verbosef = verboseLogger
}
type File struct {
// File path of a source code file.
Path strin... | xh3b4sd/matic | collector/collector.go | GO | mit | 2,001 |
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero Genera... | xstory61/server | scripts/reactor/2519002.js | JavaScript | gpl-2.0 | 1,425 |
/*
Copyright (c) 2003,2004,2005 Clarence Dang <dang@kde.org>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
... | serghei/kde3-kdegraphics | kolourpaint/tools/kptoolbrush.cpp | C++ | gpl-2.0 | 1,730 |
/*
* Copyright 2002-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 by ap... | deathspeeder/class-guard | spring-framework-3.2.x/spring-core/src/test/java/org/springframework/util/CollectionUtilsTests.java | Java | gpl-2.0 | 7,238 |
package teammates.ui.webapi;
import org.apache.http.HttpStatus;
import teammates.common.datatransfer.attributes.StudentAttributes;
import teammates.common.exception.EntityAlreadyExistsException;
import teammates.common.exception.EntityDoesNotExistException;
import teammates.common.util.Const;
import teammates.common.... | wkurniawan07/repo | src/main/java/teammates/ui/webapi/RegenerateStudentKeyAction.java | Java | gpl-2.0 | 3,140 |
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | arodchen/MaxSim | graal/graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/substitutions/FrameWithoutBoxingSubstitutions.java | Java | gpl-2.0 | 10,039 |
/**
* Copyright 2011 The ARIES Consortium (http://www.ariesonline.org) and
* www.integratedmodelling.org.
This file is part of Thinklab.
Thinklab is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation, ei... | Dana-Kath/thinklab | plugins/org.integratedmodelling.thinklab.clojure/src/org/integratedmodelling/clojure/rfib/RemoteController.java | Java | gpl-3.0 | 1,184 |
package pt.ist.fenixframework.backend.jvstm.pstm;
import org.joda.time.DateTime;
import pt.ist.fenixframework.backend.jvstm.pstm.TransactionStatistics.CounterStats;
// this class is used to store the statistics concerning the execution
// of the transactions during a certain amount of time. See StatisticsThread
// ... | jcarvalho/fenix-framework | backend/jvstm-common/runtime/src/main/java/pt/ist/fenixframework/backend/jvstm/pstm/TransactionStatisticsEntry.java | Java | gpl-3.0 | 1,317 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of Heimdall.
Heimdall is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | r4is3/heimdall | server/heimdall/urls.py | Python | gpl-3.0 | 3,866 |
/*Copyright 2018 LibOpt 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 agreed to in writing, software
d... | jppbsi/LibOPT-plus | include/cgp.h | C | gpl-3.0 | 1,517 |
package gov.pr.celepar.tabeliao.taglibs;
/*
Este programa é licenciado de acordo com a
LPG-AP (LICENÇA PÚBLICA GERAL PARA PROGRAMAS DE COMPUTADOR DA ADMINISTRAÇÃO PÚBLICA),
versão 1.1 ou qualquer versão posterior.
A LPG-AP deve acompanhar todas PUBLICAÇÕES, DISTRIBUIÇÕES e REPRODUÇÕES deste Programa.
Caso uma cópia d... | luiz158/ExemplosDemoiselle | fontes_tabeliao/src/gov/pr/celepar/tabeliao/taglibs/MensagemAviso.java | Java | gpl-3.0 | 2,249 |
package com.spicymango.fanfictionreader.menu.storymenu;
import java.util.List;
import com.spicymango.fanfictionreader.R;
import com.spicymango.fanfictionreader.util.Story;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | genious7/FanFictionReader | fanfictionReader/src/main/java/com/spicymango/fanfictionreader/menu/storymenu/StoryMenuAdapter.java | Java | gpl-3.0 | 3,052 |
/**
* Copyright (C) 2011 Whisper Systems
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... | DrGrill0r/TextSecure | src/org/thoughtcrime/securesms/ConversationListItem.java | Java | gpl-3.0 | 7,009 |
package be.robinj.distrohopper.desktop.launcher;
import android.content.ClipData;
import android.view.View;
import be.robinj.distrohopper.App;
import be.robinj.distrohopper.AppManager;
import be.robinj.distrohopper.ExceptionHandler;
import be.robinj.distrohopper.HomeActivity;
/**
* Created by robin on 8/21/14.
*/
... | RobinJ1995/be.robinj.ubuntu | app/src/main/java/be/robinj/distrohopper/desktop/launcher/AppLauncherLongClickListener.java | Java | gpl-3.0 | 1,202 |
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at... | covers1624/ForestryLegacy | forestry_common/core/forestry/core/gui/ContainerSocketed.java | Java | gpl-3.0 | 2,831 |
#include "combinededitfixspellingtest.h"
#include <QUrl>
#include <QFileInfo>
#include <QThread>
#include <QStringList>
#include "integrationtestbase.h"
#include "signalwaiter.h"
#include "../../xpiks-qt/Commands/commandmanager.h"
#include "../../xpiks-qt/Models/artitemsmodel.h"
#include "../../xpiks-qt/MetadataIO/meta... | gnidorah/xpiks | src/xpiks-tests/xpiks-tests-integration/combinededitfixspellingtest.cpp | C++ | gpl-3.0 | 4,373 |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/tools/quic/test_tools/quic_dispatcher_peer.h"
#include "net/tools/quic/quic_dispatcher.h"
#include "net/tools/quic/quic_packet_writer_wrapp... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtwebengine/src/3rdparty/chromium/net/tools/quic/test_tools/quic_dispatcher_peer.cc | C++ | gpl-3.0 | 2,716 |
// Copyright 2011-2012 Paulo Augusto Peccin. See licence.txt distributed with this file.
package org.javatari.atari.cartridge.formats;
import java.util.Arrays;
import org.javatari.atari.cartridge.CartridgeFormat;
import org.javatari.atari.cartridge.ROM;
/**
* Implements the simple bank switching method... | admazzola/javatari-deeplearn | javatari/src/org/javatari/atari/cartridge/formats/CartridgeBankedByMaskedRange.java | Java | agpl-3.0 | 2,892 |
/*
* Copyright 2011 Witoslaw Koczewsi <wi@koczewski.de>, Artjom Kochtchi
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero
* General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | JavierPeris/kunagi | src/main/java/scrum/client/project/RemoveRequirementFromSprintAction.java | Java | agpl-3.0 | 1,856 |
/*
* 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 ... | apache/solr | solr/core/src/java/org/apache/solr/spelling/DirectSolrSpellChecker.java | Java | apache-2.0 | 9,775 |
/**
* 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... | juwi/hbase | hbase-client/src/test/java/org/apache/hadoop/hbase/TestHColumnDescriptor.java | Java | apache-2.0 | 6,878 |
/**
* 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 m... | asoldano/wss4j | ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SamlAuthnTest.java | Java | apache-2.0 | 8,944 |
/*
* 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... | coding0011/elasticsearch | plugins/repository-azure/src/main/java/org/elasticsearch/repositories/azure/AzureBlobStore.java | Java | apache-2.0 | 4,932 |
/*
Copyright IBM Corp. 2016 All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... | phariel/fabric | orderer/sbft/consenter.go | GO | apache-2.0 | 4,035 |
/**
* 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... | smkniazi/HDFS-Distributed-BenchMark | src/main/java/io/hops/experiments/benchmarks/blockreporting/BlockReportingBenchmarkCommand.java | Java | apache-2.0 | 2,359 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.